Git is an open source distributed version control system originally designed and written by Linus Torvalds. It is generally used to keep track of source code for software projects. As a DVCS, Git provides powerful help with branching, merging, and distributed development.

learn more… | top users | synonyms

1
vote
1answer
56 views

Git: show inline diff within context of full file

How can I view the full contents of a file, at a given revision, with 'inline' diffs; i.e. new lines prefixed with plus, lines that were removed prefixed with a minus, etc?
0
votes
0answers
74 views

OpenSSH Windows 7 Public Key Authentication

I installed OpenSSH on a Windows 7 machine as LOCAL_SYSTEM account as the option and also allowed key size of 2048. I am able to connect using Windows login however when i implement Public key ...
0
votes
1answer
51 views

Git autocomplete on oh-my-zsh not finding branch names

Somehow last week my git autocompletion on Oh-my-zsh, on my iterm app on mac started behaving strangely. if I type git checkout and then I used to get autocompletion on the branch names, so I was ...
0
votes
0answers
55 views

Git related Issue with Terminal commands on my Mac OS X 10.10 (Yosemite)

My question follows a previously answered question in this forum. But I have an even stranger problem. The same screenshot about Git command requiring Xcode installation is appearing on my Mac OS X ...
0
votes
1answer
160 views

vimdiff in Git for Windows gives E810 and E97

I'm using Git for Windows (git version 2.5.3.windows.1) and I've set up vimdiff as my mergetool. Running git mergetool from git bash results in the following error: E810: Cannot read or write temp ...
2
votes
3answers
520 views

Is it safe to store (encrypted) passwords on GitHub?

I am using pass to handle all my passwords. They are encrypted using GPG with a 4096 bits key, using the SHA256 algorithm. I am using a different password for every login in my password store. One of ...
2
votes
0answers
109 views

How to print absolute paths with git grep

I use the following grepcode command to recursively search a large number of git repositories. It prints the path of found files relative to the repository root, how can I print the absolute path of ...
0
votes
0answers
43 views

Why doesn't WinMerge filer .git folders although the FileFilter is in effect?

When comparing git repo clones, I am annoyed by the appearance of the .git folder and its contents in the directory compare tab. In teh Tools -> Filters... dialog, I have the Exclude Source Control ...
11
votes
2answers
6k views

git on command line no longer works on El Capitan

Having just installed OS X 10.11 last night, I was surprised to see that my Bash terminal did the following: $ git xcode-select: note: no developer tools were found at '/Applications/Xcode.app', ...
0
votes
1answer
187 views

TortoiseGit: Moving files to new folder not recognized as move

I'm trying to move some files in my repository to a new folder. I want git / TortoiseGit to recognize that this is a move instead of a delete and multiple adds. How can I make this work? I checked the ...
0
votes
0answers
28 views

git export part of bare repository?

I'd like to perform a partial "export" (only one subdirectory) of a bare repo. I've tried some solutions in the answers to Checkout Git files to a location outside the repository, however none seemed ...
1
vote
0answers
36 views

Can't push to git on local server (public key) auth and then disconnect

I recently setup a local test server with Gitlab following this guide https://www.digitalocean.com/community/tutorials/how-to-set-up-gitlab-as-your-very-own-private-github-clone I am trying to make ...
0
votes
0answers
61 views

Git for Windows - where is default commit message template stored?

When I run Git with this command line: git commit -a I get an initial commit message like this: # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and ...
0
votes
0answers
115 views

Jenkins User Credentials Not Showing In Project

So I have Jenkins-CI running with the Credentials, Credentials Binding, and Git plugins, and first what I did in order to authenticate Git with the remote repository, is I added credentials to the ...
2
votes
0answers
250 views

HTTP server doesn't seem to support byte ranges. Cannot resume. homestead up

When I used the command "homestead up" it stopped working at 45% so I closed it and restarted my computer. Now when I try to run the command homestead up, my computer says resuming download then I get ...
0
votes
0answers
14 views

File permissions resetting with git pull

On Linux, whenever I perform a git pull on a directory, all of the files lose their permissions that I have set for them. How do I keep this from happening?
0
votes
0answers
20 views

Linux computer gerrit connection problems

I have searched and searched and can't find a related answer. Ok, here is my problem. I'm running Xubuntu 15.04. Have been building android for several month. Recently got into using gerrit to ...
0
votes
0answers
19 views

git merge only unconflicting commits

The idea is to merge branch B into branch A, but only merging commits which would not conflict in the process (of course this might make other commits 'become conflicting' too as they depend on a ...
0
votes
0answers
125 views

Vagrant VM is starting but ansible doesnt process anything

I have such Vagrantfile: # -*- mode: ruby -*- # vi: set ft=ruby : VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "ubuntu/trusty64" ...
0
votes
1answer
115 views

Delivering a payload to a URL, using cURL

I need help figuring out the cURL request required to send the following data to a URL. {"requestid":"555555", "partnermatchid":"10000-000-0000-0000-000", ...
0
votes
0answers
134 views

Nginx and git-http-backend - 405 error

I'm trying to configure git-http-backend over nginx, but without success. My configuration is: mkdir -p /var/git/repo1 cd /var/git/repo1 git init --bare git update-server-info chown -R nginx:nginx ...
-2
votes
3answers
61 views

How to backup and recover homebrew and all formulas after complete reinstallation of OSX?

I've just started to learn git and wondering if there is a good way to use git for recovering homebrew and all formulas after the complete reinsallation (instead of installing homebrew and all ...
1
vote
0answers
52 views

How do I pull changed file names from a git commit and put them as variables in an ftp upload command

I need to ftp files on a regular basis, even though I still use git to update a code base. So, the workflow is I do my git work and then use Cyberduck to connect and ftp the same files to basically a ...
0
votes
2answers
71 views

Setting up a ssh key connection for git between Windows and Ubuntu server

I am trying to set up a workflow where I do not need to enter the password for my server account every time I want to push to it. I am setting up a deploying system where the server is a Ubuntu ...
0
votes
1answer
15 views

undocumented gitweb output: trailing m in tree listing

I have a git repository where apparently everything is well (I don't matter piwik listed files): # git status On branch master Changes not staged for commit: (use "git add <file>..." to ...
0
votes
1answer
61 views

How to convert a string to lower case using bash 3.1 available in gitExtension

I'm writing a pre-rebase hook for Git using bash script and I need to convert a string to lowerCase or UperCase. I tried some methods doumented in Bash reference example: myString="AbcDFmk"; echo ...
0
votes
3answers
370 views

Attempting to update Git on Mac OS X and uninstall of old Git fails

I am trying to update git on my Mac OS X 10.8.5 (Mountain Lion). I downloaded this new version from this link, double-clicked on the .dmg and then dragged uninstall.sh into my terminal (following the ...
1
vote
1answer
33 views

When I run a git hook in a repo on a network share: which binaries are used?

See title. My repo is located on a network share. When I push new revs there, a post-udpate hook is run. The hook needs Perl and runs nicely. But which perl.exe is used here? The one on my machine? ...
0
votes
1answer
19 views

Is there any HandShake mechanism for GIT:// protocol?

Is there any HandShake(the connection open) mechanism when using GIT:// protocol? Just like SSh, HTTPS and... Thanks in advance.
0
votes
0answers
93 views

redmine The entry or revision was not found in the repository

I had redmine 2.x running perfectly. However I wanted to use some 3.x plugins so installed redmine 3.x next to it with the same configuration. All is working fine except for the repositories. I am ...
9
votes
1answer
2k views

What does the filesystem cache do in Windows 7?

The Diagnosing why Git is so slow article has this interesting item in it: Enable the filesystem cache Windows' filesystem layer is inherently different from Linux' (for which Git's ...
0
votes
1answer
36 views

Removing a file in a branch in git implies removing it from the master branch as well?

I just faced a situation that seems illogical to me with Git. I have a repo with a plenty of commits, so at this stage it has only one branch (master). Suppose this branch has a file called ...
0
votes
1answer
350 views

Uninstall git on linux, fedora

I installed git using sudo yum install git I believe git is corrupted in some manner, when I try to clone a repository from github it asks for my bitbucket password and the clone isn't a clone. I ...
3
votes
2answers
164 views

Accidentally worked on wrong branch in Git

I did some work on the wrong branch; I forgot to check out the right branch. Is it possible to change to the other branch and commit my changes there?
2
votes
1answer
211 views

Broken cygwin's git command

Seems that my git under Cygwin is broken, following commands /usr/bin/git.exe --version or /usr/bin/git.exe does not do anything. If I issue git.exe in particular directory from Windows terminal I get ...
0
votes
1answer
76 views

In Git Bash for windows, how to bookmark ssh hosts

I sometimes use the git bash terminal that comes with the Github app for windows to ssh into my webservers. This is easily accomplished by running ssh user@myhost and entering the password. In ...
0
votes
2answers
55 views

How to keep a Git repository always updated locally?

I use Git Tower to manage my Git repositories on OS X, so I'm looking for an answer which let me use that software or simply the Git cli. I have some Git (private GitHub) repositories cloned locally, ...
2
votes
1answer
100 views

How do I undo an ssh-add on a forwarded identity to access github?

I'm currently trying to access GitHub to clone a repository with SSH. However, when I enter the url to clone, the server hangs after Initialized empty Git repository in /export/home/nathan/myrepo, ...
0
votes
1answer
471 views

Really slow Git clone command

I tried to clone using the following command: git clone http://github.com/WinPack/boulder.git and it had speeds of 10KB/s!!!!! Why is this? How can I correct that? I should have 100 times more speed ...
1
vote
0answers
54 views

Disable read-only flag on git object and pack files

In all my local git repos all of the object and pack files (.git\object\pack) are read-only... I understand why this is but it's really messing with my attempt to sync my machine to my Synology NAS. ...
2
votes
1answer
350 views

ssh-agent running with i3wm keeps promting for password at each git push

I have installed Debian testing with i3wm, using SDDM (Simple Desktop Display Manager) to start it. In the i3 workspace, I could find the ssh-agent process already started. However, I still am being ...
0
votes
1answer
19 views

Git related regarding commits in branches

I have a quick question regarding git commits and branches. Say that I want to get two commit idn based on two dates. I do the bellow on the "Master Branch". git rev-list --since='2015-01-01' ...
1
vote
1answer
51 views

Git not pushing changes to github after pushing changes from another PC

I have the following setup concerning Git: A small server running Arch Linux and the default Git client. I have this setup to automatically make changes to certain files and then push those changes ...
0
votes
0answers
14 views

Pulling updates for multiple layers of Git submodules

I am creating a several layers of Git submodules. An example is the following: Git_repo submodule subsubmodule subsubsubmodule ... I would like to be able to pull updates from ...
4
votes
1answer
1k views

Download installer for old version of Git

I need to install Git on an isolated computer which is not connected to the internet. This computer is extremely controlled, with all installations requiring approval and admin privileges (not me). ...
1
vote
1answer
102 views

Bash not working any more?

I was trying to install home brew (I am new to the command line and was following some tutorials on how to get up and running with github). So I was following this Unofficial Update Method: Compile ...
-1
votes
1answer
77 views

/bin/bash is gone?

I typed the following command, and now bash isn't working. $ sudo chmod a-x /bin/bash_old /bin/sh_old It just says: login: /bin/bash: No such file or directory.
1
vote
0answers
236 views

Jenkins not able to poll Git repository

I'm setting up Jenkins on a Tomcat 7.0 in a Windows machine and I'm having some trouble trying to retrieve the content of a Git repository on a Unix machine. When I input the repository url, I get ...
0
votes
1answer
20 views

How can I get Git to ignore/drop files I have deleted or that are only file-system artifacts (ending in ~)?

I would like my git repository to show only files that currently exist in the directory. In particular, I just pushed my git project to a remote repository on github.com, and now it's showing all ...
0
votes
1answer
275 views

How to enable arrow keys on vim used from msysgit bash

I just need a simple solution that will enable the arrow keys in the vim included with Git For Windows. I did found a solution to enable backspace. But no solution for the arrows problem. The arrows ...