The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [git]

Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

158 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
54 views

How can I use for example SourceTree with a remote repository?

I've a server with a folder. In this folder I've did a git init to create a git repository in this folder. When I open now a file in this folder and change something, the git notices this and mark it ...
1
vote
0answers
65 views

How do I maintain a patched version of a package for unprivileged installation?

I use some common software packages frequently enough that I found it worthwhile to modify their code a bit to work more smoothly for my peculiar needs. However, I was not able to get my changes ...
1
vote
0answers
21 views

Cannot create Git remote on FreeBsd version 6.0 using git version 1.4

I'm trying to get some code in an old server running freebsd version 6 with git version 1.4.1 on to github. I'm trying to add a remote to the repo referencing GitHub.com repo. Does anyone have or ...
1
vote
1answer
29 views

How to build Postfix from Debian Salsa Git? (gbp:error: upstream/3.3.2 is not a valid treeish)

I would like to rebuild the Debian package 'postfix'. Without anything fancy, so no local patches and unsigned packages are fine. Here's what I tried: Install some dependencies: $ apt install ...
1
vote
2answers
189 views

How can I get the Linux terminal to look like Windows Git Bash?

Before anyone says it, yes, I know this is a duplicate, except when I copy/paste that code into tilde slash period bash(no period)rc, the terminal hasn't changed at all. I'm running Debian on Virtual ...
1
vote
3answers
146 views

How much space is available?

The question says Remove the entire git directory (it is not used in our tutorials). Now repeat the above calculation for disk space, but this time give the answer in blocks. I successfully deleted ...
1
vote
1answer
417 views

How to negate a gitignore pattern containing spaces?

My .gitignore starts by excluding everything, and then negating everything that I want to include, to avoid lots of noise in git status: * !awesome/ !calibre/ […] However, after installing Visual ...
1
vote
0answers
214 views

How to ssh-add elliptic curve key?

I'm trying to use a newly generated elliptic curve key with git version control for GitLab. I am using a Xubuntu 16.04. My OpenSSH version is: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar ...
1
vote
0answers
64 views

.git takes MORE space after gc

$ du -ks .git 784113 .git $ git gc Counting objects: 30237, done. Delta compression using up to 4 threads. Compressing objects: 100% (9165/9165), done. Writing objects: 100% (30237/30237), done. ...
1
vote
1answer
249 views

Can git be installed locally (including its dependencies)

I've developed a bash script which needs a specific version of git (2.11.1). Each developer in my team has his/her own virtual machine on the same remote physic server. My colleagues need that script,...
1
vote
1answer
2k views

branch name in Jenkins regular pipeline job

For a Jenkins pipeline job having web-hook trigger in Git/Bitbucket, each repo push triggers pipeline job. How we can know branch name in pipeline job on which push/change is committed. I need this ...
1
vote
1answer
80 views

git-annex created a monster that I cannot un-init

I was going to explore git-annex, but it turns out it doesn't do what I need. That would be fine except that I initialized it on a repository that I'm using (stupid, I see that now) and now all my ...
1
vote
0answers
295 views

What could be the cause of “git pull” resultingin “/bin/sh: 0: Illegal option -r”?

Whenever I try to run git pull in a repo I get the error message /bin/sh: 0: Illegal option -r and the command fails even when I add the password. It only affects the git pull command. No other git ...
1
vote
0answers
400 views

Is there any way to colorize the conflicts in the git output of merge/rebase/patch/am commands?

This is a rebound of How to colorize output of git? I want to colorize any conflicts in the git output of merge/rebase/patch/am commands. Applying: CH10: Stub file added with notes copied from video ...
1
vote
1answer
52 views

how to add whole host to git?

I want add all files that start with syslog on my host to git. That seems crazy, but I think it could manage some config snippet to git repository. My .gitignore is: $ cat /.gitignore /* !/**/...
1
vote
0answers
332 views

git mv multiple files, preserve extension

I have about 10 directories, each with contents that match this pattern: x.js x.d.ts x.ts and I want to rename these files to: index.js index.d.ts index.ts is there a mv or git mv command that I ...
1
vote
0answers
48 views

What is the recommended way to retrieve host and repository from git URL

Think of a utility like gerrit-sh which uses git config options to determine where the gerrit host is located. The context for my question is this function get_repo_remote_config(). So I want to ...
1
vote
0answers
185 views

How can git and svn use an existing ssh proxy?

Due to some apparent fiddling on a hotspot I am using I cannot use https directly (the hotspot provider seems to have fiddled with it n some way) so I have set up an http proxy for use with Firefox. ...
1
vote
0answers
118 views

Emulating git status --ignored in non-repository folder

This might be in essence a duplicate of this question, however the perl script provided did not work in my case as far as I can tell. There are also many questions about finding multiple patterns, but ...
1
vote
1answer
4k views

index.lock permissions error - .git owned by root, working tree owned by other user

On my server, I have a git repository covering a to-be-web-readable directory. The contents of this particular user's www directory will be readable and writable by that user, but I want the .git ...
1
vote
0answers
59 views

Git-annex auto merge symbolic links?

Is it possible to merge two same file automatically? For example, fileA and fileB are two same files. However, fileA is on PC and fileB is on Laptop. If I run git annex import /path/to/fileA and ...
1
vote
0answers
60 views

generating git commit info with rubber (for LaTeX, Debian)

I'm using the rubber program (in Python, from Lauchpad) to process a LaTeX document (thru pdflatex called by rubber -d) on Debian/Sid/Linux (the document is some H2020 European R&D proposal). I ...
1
vote
0answers
282 views

git ssh alias not working unless I add the key to ssh-agent (OSX)

I added a ssh alias to use a different key-pair for a certain domain. The key does not have a passphrase. I had followed the directions at https://confluence.atlassian.com/bitbucket/configure-...
1
vote
0answers
60 views

Git-annex link to different file names

Maybe this is just a crazy use case that doesn't work, but I was wondering if there's a way to build a file's history from files with different file names. I'm exploring this idea because I'd like to ...
1
vote
0answers
155 views

How to store different username-password key pair in SSH in GIT Bash?

Current Machine: Git Bash on Windows. Trying to connect to a Mac through SSH. When I execute the below command: ssh aisong@10.209.161.253 "ls" Password: <myPassword> Output (works as desired)...
1
vote
1answer
326 views

RepoForge used across many StackOverflow docs is down, What is the alternative?

I'm trying to download git. I could build from source except I have no source packages. I tried yum install git but that couldn't find it. I tried downloading the git rpm directly from Repoforge , ...
1
vote
1answer
132 views

Bash command inside .gitconfig file

I have a string (Github token) inside a file and I want this to be accessible via gitconfig only after I enter my keyring password. For this I created a file /secret/token, and then chmod it to 400. ...
1
vote
1answer
516 views

Git Bash for both Ubuntu/Linux and Windows requires ssh-agent on restart

Each time I need to use git for both my Linux server as well as my home computer running Windows 10, I need to start ssh-agent, then provide it with my GitHub RSA key, the problem being that doing so ...
1
vote
0answers
295 views

How can I ship an executable file?

I have a project that is hosted on GitHub. On my local machine I have created an executable file that installs the program. However, once uploaded to GitHub and cloned somewhere else the user must ...
1
vote
0answers
1k views

Why I can't open the kernel git repo in my GIT GUI client?

I successfully cloned the kernel using git in command line, nevertheless I find difficult to navigate throughout the repo using the cli and I got a gui client, gitkraken to be specific. The thing ...
1
vote
0answers
94 views

git-filter-branch leaving untracked files

I am trying to use git filter-branch to refactor a repository. I am trying to extract one directory from it. Since I am not familiar with the command, I have been experimenting with a copy of the ...
1
vote
1answer
989 views

Build CentOS RPM for current git release, unsuccessful rebuild with alternate prefix

I am stuck in an effort to provide an maintain an up-to-date git release for a collection of CentOS Linux servers. I was hoping to be able to create binary RPMs that I could just have published to a ...
1
vote
0answers
168 views

customized pager for Git

I wrote a script to display git diff. It will display the difference in stdout if the output fits in the terminal screen, or display the difference in pager otherwise. My script: #!/bin/sh if ! ...
1
vote
0answers
136 views

Git-cherry not ignoring whitespace as advertised

Given the following two versions of the foobar.txt file (excluding comments) ... ... on the upstream branch (version 1, commit 1): foo bar ... on the downstream branch (version 2, commit 2): # (...
1
vote
0answers
528 views

Bash - Parameters Reference passing (sort of)

So, I've figured out thus far how to utilize the "local -n " command, which effectively allows me to "reference pass" a variable from one function to another. this is rather helpful when parsing out ...
1
vote
0answers
126 views

How to make patch not so strict?

To give you the background, I'm trying to "port" "commit only parts of hunks" workflow from git to svn. In git there is interactive staging, and you can even edit hunks to be committed (chose which ...
1
vote
2answers
228 views

using git to version-control any file edited with my text editor

Is there any way to integrate text editor (joe in my case) with git in such a way, that every change to any file is automatically committed in git (probably with a time stamp), so that I can always go ...
1
vote
0answers
528 views

No permission to git clone?

What is possible problem, if I have SSH key, and trying to git clone one folder from git lab, but I still dont have permission for it ?
1
vote
1answer
233 views

Backup workspace without local copies of remote git repositories

I would like to backup my workspace without backing up all the content of git repositories that are online available anyway. So I think of something like, that I could backup only the file .git/...
1
vote
1answer
350 views

How to push a new branch to remote git with commit message

My remote git server does not allow me to push anything without having a commit message. Now i want to convert my perforce code to git using git p4 and push the converted code as a new branch to my ...
1
vote
1answer
456 views

How to un-commit a file in git?

I have did git commit <file> for a file and also submitted that file with git submit <file>. but now i want to un-commit the changes. i have also tried git reset HEAD~1 <file> ...
1
vote
2answers
615 views

Show git branches that diverged from remote?

Which command lists all the local branches that diverged from the remote branches they follow (either because the local branch has new commits or the remote one)?
1
vote
0answers
157 views

Dealing with git permission errors on root mounted partition

I am trying to clone a git repository from my home directory to a cifs partition, but I keep getting this file permission error. [cguest@devserver groupmount]$ pwd /mnt/groupmount [cguest@devserver ...
1
vote
1answer
834 views

virtualbox - existing folder in ubuntu as shared folder

I have some existing directory in virtualbox running ubuntu, and would like to make this folder a shared folder in virtualbox, so that the host OS, will see it. The end goal is to use git in the host ...
1
vote
2answers
90 views

Providing access permissions to 2 git repositories inside single git instance

I have two git repositories in one single git instance and need one set of users to access one repository and another set of users to access second repository. How can I create a group, and add users ...
1
vote
0answers
123 views

Problem with Bitnami Gitlab

I have installed Bitnami Gitlab on a centos 6.5, but I just see the error written below while trying to push to another project: ~/sample$ git push -u origin master git@-'s password: fatal: '...
1
vote
2answers
1k views

fatal: Reference has invalid format: 'refs/stash (1)'

I have recently upgraded from ubuntu 14.04 to 14.10 using apt-get dist-upgrade, which seems to have gone smoothly, except that I can no longer use one of my git repositories (on which I had local ...
1
vote
1answer
622 views

Opensuse 11.1 package manager outdated

I'm trying to update GIT to the latest version. The package manager for opensuse 11.1 only has up to git 1.6.0.2. I'm updating using zypper: sudo zypper install git And I get the following message: ...
1
vote
0answers
952 views

GIT on 'mountain lion' will not execute commands

Macbookpro Mountion Lion 10.8.5 I cannot get GIT to execute commands. I have been researching and trouble shooting for 2 days. Some suggestions I have tried are listed at the end. Below will just be ...
1
vote
0answers
373 views

ssh-agent on CentOS 6.5 keeps “disabling” itself

I recently installed git on my CentOS 6.5 system. During the process I setup a key/pair for GitHub so I don't have to enter a password for every git process. I did this by adding the rsa file to ssh-...