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
755 views

Install Git on a Media Temple (dv) 4.0 server

I'm trying to install Git on my Media Temple (dv) 4.0 server. I've followed these instructions. It seems to have "installed", as there are a boat-load of files in the /root/git-2012-06-06 directory. ...
1
vote
1answer
696 views

-bash Mac OS X Lion “puts” returns “command not found”

I'm trying to follow along with this tutorial and the puts command returns command not found and I am not sure why. I've followed this article and looked in the various folders and do not see a puts ...
1
vote
1answer
236 views

git/gitolite: big git repo with several mini projects

I'm pretty new to the whole version control thing, and even more so with git. I recently installed git on my computer(s) and set it up on a NAS server. However, I have several client folders with ...
2
votes
1answer
4k views

Why is there no “pathspec” when I try to remove a folder in Git?

I am trying to remove a folder from my Git repository with git rm folderToRemove but Git issues this error when I try to do so. fatal: pathspec ...
1
vote
1answer
4k views

Cannot login to ssh after installing Gitolite? PTY allocation request failed on channel 0

After I installed Gitolite onto my Synology DiskStation NAS as per these instructions: http://www.bluevariant.com/2012/05/comprehensive-guide-git-gitolite-synology-diskstation/ I realized that I ...
1
vote
2answers
1k views

Problems installing GIT on Ubuntu (Jaunty) via apt-get

I am trying to install git using sudo apt-get install git-core But it fails with this error message: Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated! ...
2
votes
2answers
4k 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
269 views

How can I set a git config item as a function?

I'm trying to set up the gist gem, but I don't want to have my GitHub password stored as an environment variable or git config item. The README from the GitHub repo explains, You can also define ...
41
votes
2answers
23k views

Git - List all files currently under source control?

Is there a way to list all files currently under source control in git? (Not just those that have been modified).
7
votes
1answer
1k views

How do I resolve the git-svn error 'refs/remotes/git-svn$: command returned error: 1'?

In the process of converting a Subversion repository to git, you might encounter the following error while converting svn:ignore settings to .gitignore: config --get svn-remote.svn.fetch ...
1
vote
1answer
836 views

How to generate key for git on NAS server?

I'm trying to set up git on my NAS server (Synology DS212J), and now I've gotten to the part where you're supposed to copy my public key... but I don't really understand what it is referring to. Is ...
1
vote
1answer
4k views

How to set up git in NAS Server (git, ssh, busybox)

I'm trying to set up git using my Synology DS212J NAS Server. I've been following these instructions: http://www.wonko.de/2010/04/set-up-git-on-synology-nas.html But I am very much a beginner with ...
1
vote
0answers
174 views

Git differences between OSX and Linux

This has been driving me somewhat insane but I can't find any information on it. I have both Mac and a Linux (Ubuntu) machines. I work on both but I'm finding Git is behaving very differently during ...
1
vote
1answer
90 views

Git committing creates a file called “-”

It's very hard to search for on Google with the amount of documentation there is about git, but basically, when I do a "git commit", it creates a file called "-". It has nothing in it, and is owned ...
0
votes
1answer
81 views

git-number not working on Linux: sh: git-id: not found

I've set up the script git-number on my Cygwin computer without any problems. I've put all three required scripts in a folder in my home directory called bin/ and everything works fine. Now I'm trying ...
2
votes
1answer
503 views

Virtual host with a directory out of the DocumentRoot

I am using Git in C:\Users\MyUser\repository. I would like test the app with an Apache server although I have a server running right now and I need a virtual host. How would I configure a virtual ...
1
vote
1answer
554 views

How to properly copy/paste code from .pdf to a new file open on terminal?

I have a pdf containing the following code: #!/bin/sh echo echo “**** Pulling changes into Dev [Hub’s post-update hook]” echo case “ $1 ” in If I copy and then paste that code on my terminal, after ...
0
votes
3answers
122 views

A desktop app for viewing the latest updates to git repositories in real-time? (OS X)

Does anyone know if there is a simple OS X app that can display real-time updates to git repositories? Basically, I'm working on several repositories with multiple people, so normally I always have a ...
0
votes
0answers
2k views

Ubuntu:ssh: connect to host github.com port 22: No route to host

I am using Ubuntu 11.10 and followed the help doc at github.com to set up git and connect to github but when I got to step 5 of the set up ssh keys section :Test everything out , When I used this ...
8
votes
2answers
3k views

How do I use installed Vim in Git Bash instead of the one that came with Git?

I've installed Vim and Git to C:\Program Files (x86)\(vim|git) respectively. When I run Vim from Git Bash, it runs the internal version of Vim that came with the Git installer. Is there a way to ...
0
votes
2answers
1k views

Mac terminal keeps using SSH key with same fingerprint when running git clone

It doesn't matter what I do, create new SSH keys, add them manually to Heroku, delete all keys from Heroku and add a new one, force delete the entire ~/.ssh folder, overwrite id_rsa keys, create ...
1
vote
1answer
279 views

Git workflow: how to save and share changes in a clean way

This is a question about a best practice. It's probably simple but I'm still fairly new with Git, and I'd like to get good habits for things I do frequently. The situation is the following. I have ...
8
votes
3answers
4k views

Git corrupt master branch

I open my Git repository using gitExtensions on Windows 7 for a Visual Studio project. It is suddenly empty. The repository exists, but all my commits have disappeared. I am using the graphical ...
10
votes
2answers
6k views

How to have Sublime Text 2 show git folders and files in the sidebar?

When adding a folder to a Sublime Text 2 project, it doesn't seem to show .git subfolders. It also seems these files cannot be opened by Ctrl-P. I disabled the Git plugin but that didn't help.
4
votes
2answers
5k views

Can checkout and track git branch, but cannot pull

So we have a branch in our git repo called creative_market. I run the command git checkout --track origin/creative_market which works fine. All of the changes that should be on the creative_market ...
0
votes
2answers
91 views

Git to keep snapshots of a full Windows environment?

Is it possible/convenient to use Git to keep snapshots of a full computer running Windows? I wonder if it could use simple Git branching to jump from one state to another and have different ...
4
votes
1answer
594 views

Why every time I run gitk from a Mac OS X Terminal it opens in background?

Every time I run gitk from a Mac OS X Terminal it opens in background. In other words, gitk is always shown behind the Terminal window. Actually, gitk is the only tool manifesting this strange ...
1
vote
1answer
816 views

git cannot allocate memory - git svn rebase

I cannot run git svn rebase in my repository as I am getting: Can't fork: Cannot allocate memory at /usr/share/perl5/vendor_perl/Git.pm line 1262 The output of free indicates I have plenty of free ...
1
vote
4answers
1k views

Git still at older version after update on OSX Lion

Previous version of GIT was 1.7.5.4. I decided to update to a newer version 1.7.9.4 Installer showed it was installed, but when checking the version number in the terminal it showed that it was still ...
2
votes
1answer
334 views

Self Built MacVim on OSX 10.6 doesn't open a GUI window

I've noticed the MacVim downloads page has stopped uploading pre-compiled snapshots for OSX 10.6 (only 10.7 is supported now, with 10.6 considered LEGACY). I'm still using 10.6 and wanted to build it ...
2
votes
1answer
547 views

Make Filezilla work with .gitignore files

Is there a way to make Filezilla read the settings i added to .gitignore file and then do the same? (ignore the files specified in the gitignore file)
4
votes
4answers
7k views

Why is Git falsely noting that my files are up-to-date?

I have 2 folders A and B in my file directory that link up to the same Git repository. I created a file in folder A called "index.html". I then create a different file also called "index.html" in ...
1
vote
2answers
134 views

Installing a second version of e.g. git, perl and or python on osx lion

At the moment i am running git 1.7.5.4, perl 5.12.3 as well as python 2.7.1 on osx 10.7.3, which were all included in the basic system setup. Applying the "which" command the locations are: ...
6
votes
1answer
901 views

Git completion with aliases

I have a convenient dotfiles repo on Github for you all to look at, here. FYI, git is installed via Homebrew, as with most of the executables on my system. My git-completion in zsh works fine when I ...
1
vote
2answers
291 views

Why don't applications update by calculating difference?

I have Ubuntu computers and an Android phone, and it's always perplexed me why the default update manager on Ubuntu and Google Play on the phone don't update existing versions of applications by ...
2
votes
1answer
2k views

code.google.com: git: fatal: remote error: Repository not found

I have created a new repository in code.google.com, generated the code.google.com password and updated my ~/.netrc with machine code.google.com login <email-id> password <password> As ...
1
vote
2answers
121 views

How can I see a detailed difference between files in the last git pull?

I run a git pull and see that a file has changed. I would like to see a line by line difference of what has been added or removed. I tried git diff 12345..67890 , (newest commit)..(second newest ...
5
votes
3answers
2k views

Using git, how do I go back to first commit then go through the history?

I cloned a project from Github and now I wish to revert it to the first commit, how would I do this? Also, once I am back to the first commit, how do I go up to the second commit, and then from the ...
1
vote
1answer
296 views

Version Control for Eclipse that's like Xcode 4's version control?

I really enjoy Xcode 4's version control with git. It's all very simple and intuitive and enables me to be extremely productive. If I modify a file, a little 'M' pops up next to the file and all I ...
1
vote
2answers
126 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 ...
5
votes
2answers
3k views

How can I share a git stash?

Is there a way to share a stash in git? I work on a number of machines, and often want to be able to move my current working state from one to another. I'm looking for a way that I can push/pull a ...
0
votes
1answer
460 views

git init --bare permission denied on 16gb USB stick

I am using GIT on a Windows 7 machine (64 bit) and have been learning how to use GIT to version control my files. Now I want to be able to create a --bare repository on an external device (in this ...
1
vote
0answers
592 views

Why does git difftool not work with vimdiff?

I just set up git and set git mergetool to vimdiff and it works as expected. If I set git config --global diff.tool vimdiff it behaves strangely: git diff x y will open less and display the changes ...
0
votes
2answers
934 views

SSH Github can't connect

I went away from Git for 4 months and now returned to it, using @Treehouse Git Tutorials. I tried installing Git 1.7.9.1 but my computer Mac OSX is already installed V.1.7.5.4 from 4 months ago and ...
2
votes
2answers
3k views

Why is it that XCode cannot push my changes?

I am writing an iOS application in XCode. I associated a remote repository to it. I finished writing a View Controller file and then went to File -> Source Control -> Commit. I wrote a commit ...
6
votes
1answer
3k views

Why is git so slow with large files?

I was trying to use git to manage my pictures (backup / take snapshots). The entire library is several GB. Most of the files are JPGs of 2-3M. When I was adding the files into repository, it seemed to ...
0
votes
1answer
1k views

Git clone on an ovh host server

I want to do a git-clone from an ssh connection, on an ovh host-server, but it does not work: Here's the command I entered: git clone ssh :/ / forumdesy@ftp.forumdesthinktanks.fr / www / (and all ...
9
votes
1answer
7k views

How can you avoid being asked to enter your BitBucket password when you push to BitBucket wiki?

I'm not sure if everyone experiences this - when I edit a BitBucket wiki locally (through a git repository) I have to enter my BitBucket password for every pull and push. Is there any way around ...
5
votes
1answer
975 views

What is the difference between git svn init + fetch and git svn clone?

While trying to use locally Git at my workplace where we use SVN I was searching a lot for how to set everything up. From what I found it seems there are two approaches to the problem, either: git ...
2
votes
1answer
2k views

git clone times out even though ssh -T works fine?

I used to have a working Git installation on Windows, but for some reason, it's not working anymore, and I don't know what to do to fix it. If I were to follow GitHub's setup tutorial, it says that ...