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

0
votes
2answers
31 views

Which version of Git to use with Windows

I wish to install Git on Windows 7. There appears to be two versions. I will be using it in conjunction with Tortoise Git. http://msysgit.github.io/ http://git-scm.com/downloads An answer on ...
0
votes
0answers
6 views

Version control for Magento: GIT better than SVN?

Currently we don't use version control for our Magentoshops. Normally we use Subversion/SVN, but when a colleague installed magento, he said it would be too many files, too much trouble with SVN. Our ...
1
vote
0answers
11 views

Git suddenly started to choke on “git pull” for only one repo

Yesterday, at some point in time, my Git for Windows suddenly started to choke (hang forever) on git pull for only one repo. I managed to pull changes ten times this day, I started to fail on eleventh ...
1
vote
0answers
6 views

Git amend via tig

I often use tig to select which modifications to add, and which to commit. I scroll via the patches, push u to add, and when I am satisfied, I press C to commit the added changes. Every once in a ...
2
votes
1answer
375 views

Trouble implementing ssh-agent forwarding across ssh and then su

I've got a web server with a dedicated unprivileged user who runs the apache instance on the box. The php code for the app the web server runs is in a private github repo that I occasionally need to ...
0
votes
1answer
9 views

clone from bitbucket.org in command on guest linux virtual box through proxy in host

I am using an ubuntu virtualbox guest on a windows 8 host. I am going to clone a repo from www.bitbucket.org using git command in guest. BUT the problem: I realzied that I cannot connect to ...
2
votes
2answers
347 views

SSL certificate verification failure in Chrome, Heartbleed bug?

For some reasons I'm running into SSL problems since a few days. When trying to clone a git repository for example I receive the following error message: fatal: unable to access ...
1
vote
4answers
240 views

How to use a text editor WITHIN the Command Prompt in a Windows OS?

Some input on this topic would be great. I would like to be able to create and edit the text of a file, all from the command line. No pop-up window (like with notepad), just create the file and start ...
2
votes
1answer
619 views

How to merge conflicts in Visual Studio 2012 using Visual Studio Tools for Git

I have VS2012 with Update 2 installed. I've installed Visual Studio Tools for Git. Now I want o fetch changes from the remote repository, but they are in conflict with my local changes? How can I ...
0
votes
1answer
16 views

How to install Ultisnips with Snippets on Linux?

I'm using Slackware and trying to install and use Ultisnips. I use Pathogen and the documentation says the following: > Using Pathogen: UltiSnips-using-pathogen If you are a pathogen user, ...
0
votes
0answers
9 views

How to discard all working tree changes except for assume-unchanged files in Git?

I'm looking for a command like git reset --hard except for those assume-unchaged ones. For example: user@host /d/projects/test $ git init Initialized empty Git repository in d:/projects/test/.git/ ...
1
vote
2answers
2k views

How to clone Git repo on my local server

I'm trying to use Git for the first time (I have used Mercurial before so I know the basic setup). Everything is ready on the server side with the following properties: User name: git Domain: ...
83
votes
3answers
55k views

Tell git which private key to use

ssh has the -i option to tell it which private key file to use when authenticating: -i identity_file Selects a file from which the identity (private key) for RSA or DSA authentication is ...
0
votes
3answers
5k views

64-bit (x64/amd64) git client for Windows 7

Is there a 64-bit command-line git client for windows (with precompiled binaries)? I have been using msysGit (32-bit) but it will not store files larger than 2GB. I hear that this restriction does ...
-1
votes
1answer
20 views

how to run a shell script on git commit

1) i have a shell script which basically contains some(database testing and integrating test code) , but i have to run this shell script when ever there is commit (or any change ) in my git repo the ...
0
votes
0answers
17 views

Recompiling a python program doesn't produce executable

Today I installed Mathics from their github repository: $ git clone https://github.com/poeschko/Mathics.git $ sudo python setup.py install And then I decided to modify the source a little bit and ...
0
votes
1answer
49 views

Can't get vundle or neobundle to work on GVim on Windows 7 64bit

Can't get these add-ons (vundle or neobundle) to work on my Windows 7 machine. Everytime I try to install plugins I'm getting the following error messages: Error detected while processing function ...
0
votes
1answer
15 views

is git-upload-pack necessary?

I'm getting the following error when trying to pull from a git repository: sh: git-upload-pack: not found I've seen many discussions about it and all of them suggest setting some path so that the ...
1
vote
1answer
35 views

Gitlab commits have the wrong ID

Developers committing on our internal network, from the company computers (we're using iMacs) have their commits display as developerX@macY.local, where I'd expect them to display as ...
1
vote
1answer
15 views

Should a vagrant project be its own repo

So I've been working with Vagrant and I find it to be excellent but I'm wondering what the best or most common use of it is I imagine that there to be two ways to use it: The first would be to create ...
0
votes
0answers
19 views

Homebrew is not installing on Mavericks

git fetch is failing during installation of homebrew. Has anyone seen this before? Here's the transcript. I've tried removing /usr/local in its entirety, I still get this problem the next time ...
0
votes
1answer
44 views

How do I avoid continual issues with multiple programs (git, ruby, python) and default network drive path problems?

I am not an advanced user. Windows 7 PC. Our network admin has a network drive (H: drive)that installs on restart.....which I do not have access to when not in the office (or is not available via ...
1
vote
1answer
1k views

How do I pull big repos from git on windows without getting “Out of memory”?

I am using the Git Gui provided with the git client fromt he git website. The cygwin version has the same problem. error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: ...
2
votes
1answer
76 views

GitStack - “Forbidden” after installation

Was looking for an easy Git-stack to install on my Windows server. Found GitStack which would be perfect for my own projects. The only problem is that it throws me a "FORBIDDEN" error after I ...
0
votes
1answer
40 views

Better setting of EDITOR environment variable to use Sublime Text 2 as system editor?

I want to use Sublime Text 2 for editing Git commit messages. Right now I have the following in my bash rc file: export EDITOR="sublime -nw" This works well if Sublime is already running. But if ...
0
votes
1answer
18 views

Can I assign a hotkey to a cmd/Git Shell command?

So I have a Git Shell that I use to compile stuff. Typical commands are: cls ; make ; ./bin/Executable.exe Is it possible to assign a certain hotkey to this command in the existing shell?
5
votes
4answers
1k views

How can I discard file change from fugitives status window?

When in the fugitive-plugin status window, accessed using :Gstatus, it's possible to diff changes for a file using D and toggle files for commit using -. Is there any similar shortcut for discarding ...
0
votes
2answers
30 views

Parse Git Branch Stopped Working (OSX)

I use a method called parse_git_branch which is called by my PROMPT. I'm using zshell, but I don't understand why this would stop working. Here's the function: parse_git_branch() { ...
0
votes
1answer
37 views

Remove a merge/commit in git

Using git I merged a branch to master and now after a few weeks and many commits I'd like to remove that feature/branch. How do I do it? it doesn't seem trivial
0
votes
2answers
279 views

How to Compile and Install Remmina From GIT Repository for Ubuntu (KDE)?

Gentlemen, I would like to compile a version of Remmina directly from the GIT repository, because I need to apply a patch to fix a problem. With the command sequence below I can compile it and ...
2
votes
2answers
2k views

Git doesn't observe new exceptions in .gitignore

[NOTE: This is not the usual "Git still tracks files I just added to .gitignore!" problem. This is the opposite of that.] I have a website's full directory structure in a Git repository. The CMS I ...
2
votes
2answers
222 views

Explorer stops responding when opening Git Bash

When I open Git Bash from the Explorer context menu, Explorer stops responding, regardless whether the folder is a Git folder. Immediately when I close Git Bash, Explorer starts to respond again. My ...
0
votes
2answers
25 views

git using different version of vim than zsh

I've got a plugin called YouCompleteMe installed in vim. When vim starts with this plugin installed, it will raise a warning if the version of vim is under the minimum required. I'm using vim ...
4
votes
2answers
458 views

I left my .git directory readable by the web server, what risks do I have?

On one of my web applications, I accidentally left the .git directory readable by the web server for the last few weeks. Index listing was disabled. Visiting the website.com/.git URL would result in a ...
-1
votes
1answer
16 views

Creation of commit object's Index in git?

Please guide me that the SHA that is created when the commit object is created is either the SHA of only the contents of file or there are some other inputs too to the HASH function like author of ...
1
vote
1answer
45 views

Accessing gitbash commands through conemu

I have tried to access gitbash command using conemu terminal, but I am unable to do so for some reason, it does not work for me. I check all the answers given including this Git Bash Here in ConEmu ...
7
votes
4answers
3k views

Can you remove a file from Mercurial without removing it from the filesystem like Git?

I've got some files in a repo that I don't want tracked, is it possible to remove them without removing the actual files from the filesystem? This would be equivalent to git's rm --cached.
0
votes
2answers
35 views

Installation of Git on Debian 7.4 fails

I tried to install Git (from source) on Debian 7.4, but the installation fails with the following message: Writing perl.mak for Git Writing MYMETA.yml * new perl-specific parameters GEN ...
1
vote
1answer
42 views

How to list files modified by git pull/git merge?

in one of our projects, MysQL-Dumps are synced with git. One file for each table in the database. After pulling/merging the dumps are imported to the local database with a hook. The problem is now, I ...
0
votes
3answers
71 views

Removing carriage returns (^M) from certain lines without modifying every line

I have some fairly long C++ files, and git diff --check is reporting that there are a few carriage returns ^M on about 15 different lines. This is on a Windows 7 machine. After searching through ...
1
vote
1answer
1k views

Mountain lion and git-completion

I have ML with Xcode installed tools (git coming from there). Later I've installed brew and install bash-completion, but git commands still not auto-completed. Brew has no such package. Google does ...
0
votes
0answers
17 views

500 Internal Error when adding public key - Redmine - & issue with git repos

I am experiencing a problem when i try to add public key for a user in Redmine. Everytime i paste public key into a field in redmine and i try to save this user key i get redirected to Internal Error ...
0
votes
3answers
157 views

how to go back after a bad git pull

I had created a shallow clone of a huge repository (for saving my time) using git clone --depth=1 ... Some days later, I thought I'd fetch the latest commits from the remote repository. I entered ...
0
votes
1answer
12 views

Cloning repository within many directories

I have this tree structure: ./ ../ user1/ user2/ user.../ user20/ I want to clone for all developers. Something like: ls | xargs git clone /my/project/repository.git I thought about using find ...
27
votes
7answers
26k views

How should I set the PATH variable on my Mac so the Hombrew-installed tools are found?

Trying to set up Homebrew on a new Mac (on previous Macs I would install packages from source). The first package I tried to install was Git: $ brew install git Installation went OK, but which ...
1
vote
2answers
119 views

Can Git be used when “experimenting”, changing drivers and software on Linux?

I have no idea how to use any backup software with Linux, but I do know Git. I hope this isn't a silly question as the obvious answer is to use some form of backup software, perhaps - but, I was ...
2
votes
1answer
332 views

Jenkins notification-poll-build fail with “No git consumers for URI ssh://path”

Whenever my Jenkins gets notified about a new git commit to my repository foo, I get the following log/error response on the triggering client: Scheduled polling of foo No git consumers for URI ...
0
votes
2answers
2k views

Installed Git, not sure how to get it working

Ive installed Git on my Mac (OS 10.7.5) and it seems to be successful (I get the successful installation message). But when I open my terminal and try some basic command line, eg" git --version I just ...
1
vote
2answers
3k views

Setting up git, path errors when pushing/cloning from local to NAS

I'm setting up a NAS server with Git for the first time, so please forgive the noobish questions (it also means I am super thankful for any detailed explanations you can give me, because I am kind of ...
0
votes
1answer
22 views

How do I link a project in Eclipse with the Git repository I imported from?

I've googled all day and there's so many Git questions, it's hard to find anything about my actual question, which is this. I have a local Git repository set up. I can pull a previously committed ...