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

git unable add device file?

is git unable to commit a device file? Under Linux system. For example: git clone blah@blah.com:/blah.git cd blah sudo cp -af /dev/ttyS0 . git add . git commit git msg: # On branch master ...
2
votes
1answer
1k views

git: command not found

Using github for the first time. In terminal I receive this error git: command not found If I type in terminal which git it returns nothing. If I type which github it returns ...
1
vote
1answer
55 views

Using Git, How do I see a file at a specific revision?

Using git, how do I see a file at a specific revision without checking it out? I've asked this question a thousand times and can never remember the obscure way git goes about it.
1
vote
1answer
257 views

Why doesn't git-svn respect my $PATH?

I have installed git and svn with homebrew on my mac running 10.7.4. There are two versions of svn on my machine and I have set up my path to check for homebrew things first. Unfortunately git is ...
2
votes
3answers
747 views

GIT Process: Could anyone please explain the check in/check out process?

I've used tortoise SVN for a few years but now moving into using Git. Could anyone explain what the process is for doing the following in Git: Get latest, Check in I have managed to clone the ...
3
votes
3answers
724 views

git alias for merging current branch with master

I'm trying to create a git alias that merges the currently checked out branch into the master branch. Specifically I'd want to quickly get my master branch get up to speed with what I'm working on. ...
6
votes
3answers
4k views

Sync a forked repo with original using the Github for Mac GUI client and/or the Web interface?

I want to sync a repo I forked on Github with the original. Is there any way I can do that using only the Github for Mac client and/or the Web interface? If not, is there a GUI client (for Mac OS X) ...
2
votes
2answers
1k views

upgraded local git on Lion, now what?

I reformatted my machine with Lion which had this default version of git: $ git --version git version 1.7.7.5 (Apple Git-26) I decided to upgrade git so I did: $ brew install git ==> ...
1
vote
1answer
763 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
708 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
237 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 ...
3
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
271 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 ...
42
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
843 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
511 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
566 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
123 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 ...
9
votes
2answers
4k 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
285 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
617 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
821 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
336 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
552 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
135 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
915 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
296 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
297 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 ...
6
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
466 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 ...