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

38
votes
4answers
42k views

How to reset master to origin/master?

Can I do following in a simpler way? git checkout origin/master git branch -D master git branch master git checkout master
5
votes
1answer
2k views

Using the IdentityFile directive in ssh_config when AgentForwarding is in use

Is it possible to specify forwarded keys using the IdentityFile directive in .ssh/config? I ran into this quirk when trying to deploy some code via Capistrano/GIT on our production server. Both my ...
55
votes
3answers
41k views

Using Multiple SSH Public Keys

I have a personal account and a company account on Unfuddle. On Unfuddle SSH keys can only be used on a single account, so I need to create a seperate SSH key on my laptop for both accounts. I ran ...
1
vote
3answers
177 views

Adding “manually versioned” project to git repository

Back before I had heard of the wonders of version control, I kept projects in folders like "project x 1.0", "project x 1.1", "project x 1.2", etc. There's tons of redundancy in this approach, so I'd ...
2
votes
1answer
2k views

git: get current working dir

How I can get current working dir from console using git? something like: if I'm in: ~/projects/someproject/somesubfolder/, the console command should say /home/va1en0k/someproject/ (if there is a ...
1
vote
2answers
223 views

Backing up code on an FTP server

I have a web hosting service, I want to store my code on it. I was thinking perhaps opening a Git repo for the entire dev/ directory and somehow in the Git hooks make it upload only the files that ...
8
votes
2answers
1k views

Change tabsize in git-gui

I was wondering if it's possible to change the tabsize in git-gui from 8 characters to 4. The only thing I found was core.whitespace = tabsize=4 but that only affects diff. The reason why I'm asking ...
4
votes
2answers
9k views

gitosis: list all repositories

Is there a way to get a compact list of all git repositories managed by gitosis. I'm looking for something similiar to svn list url_to_repo I know that I can have a look at gitosis.conf, but ...
3
votes
1answer
1k views

git svn fails with fatal error

While moving our svn repository to git I got the following error message: $ git svn clone svn://abraham/eeschweiz -s Initialized empty Git repository in ...
1
vote
1answer
175 views

Running git on shared host

I have a non-sudo account on a shared host. I want to be able to run the git-core for version control. I have another server that I am using for the git-repo. How can I install a version of git ...
4
votes
2answers
1k views

How do I create a cron job that will commit my project changes to git on a weekly basis

I'm using git for the purposes of making a historical transcript of the changes made to my project. I understand it's not the ideal usage but it's the usage pattern I've chosen for various reasons ...
0
votes
1answer
965 views

Installing Gitosis on EC2/Ubuntu

I'm trying to get gitosis to work on my Ubuntu instance on EC2. I'm having a problem with getting the right key to work. I SSH to my server using the key provided in the AWS console: it's a public ...
0
votes
1answer
326 views

compiling git on HP-UX

I'm trying to compile git on an HP-UX system. and when i run make all, I get a syntax error on line 252. if i go to line 252 of the makefile, i see uname_O := $(shell sh -c 'uname -o 2>/dev/null ...
0
votes
2answers
296 views

Easy way to create repo with submodules from folder containing git repos as subfolders

My case is ~/Library/Application Support/TextMate/Pristine Copy/Bundles there I have some bundles/folders which are all git repos. If I create git repo at Bundles folder, which will be the ...
8
votes
1answer
8k views

Problem using git on Windows 7 with msysgit and .ssh keys

I'm using git on my Ubuntu machine with my existing ssh keys. Now I have to use Git on Windows 7, and need to use the same keypairs. I have set up msysgit and created an .ssh folder in ...
0
votes
1answer
903 views

GNU sort and git blame

Today I thought I was doing a simple operation: git blame file | sort -k 3 To get all the lines of file sorted by the date on which they were last changed. Unfortunately it doesn't seem to be ...
10
votes
1answer
4k views

git: how can i config git to ignore file permissions changes

I have some git projects in a linux server. i use Mac and linux to do my programming. the problem is that the mac filesystem's permissions doesn't really work well like in linux so all the files ...
4
votes
4answers
683 views

GIT not cloning on FreeBSD?

I'm running a FreeBSD 8.2 server with GIT 1.7.4.1 Attempting to clone anything, like $ git clone https://github.com/joyent/node.git node ends up, quickly, giving me this Cloning into node... ...
0
votes
1answer
427 views

Using git with cgit for decentralized/centralized development

I plan to use git for hosting my projects on my server. I've read about cgit, git-daemon, and I more or less decided to use those tools. But general use is still kind of confusing for me. What do I ...
1
vote
1answer
909 views

How to commit a change to a homebrew formula?

I made a change to some homebrew formula which fixes an issue I had. I also opened an issue to get that fix into the repository. But no one has responded yet. Now I want to update my homebrew ...
6
votes
1answer
3k views

Correct location of git on Mac OS X

On Mac OS x 10.6.6 I have git installed in /usr/bin/ I wanted to update the git version however the git installer puts it in /usr/local/git/bin/ I realise I could rearrange to path to point to the ...
0
votes
1answer
882 views

How to version large binary files?

I run Windows XP inside a virtual machine for some tasks. I attempted to use git to version the image for virtual box; however, it is about 6GB after all the service packs. I only have 6GB of ram ...
2
votes
3answers
3k views

TortoiseGit really slow on Windows 7 machine

One of my colleagues uses a Windows 7 machine with TortoiseGit and it is tortuously slow even just running a git status. He is using the TortoisePlink method of connection and key serving. Each ...
8
votes
1answer
24k views

another “SSH connect to host github.com port 22: Bad file number”

I have a problem with my first-time SSH connection. Yes, I've already done your guides, already tried your "Dealing with firewalls and proxies" article and the problem is still occuring. I am using ...
0
votes
1answer
631 views

git push fails in permissions setting up fresh gitosis on ubuntu server

I got permission prob with first test project on gitosis server, ubuntu lucid server Used this howto https://help.ubuntu.com/community/Git changes, commits and push on gitosis-admin worked. Then i ...
4
votes
1answer
2k views

Agent Forwarding Through Different Usernames (Git & Deployment)

This query isn't directly related to Git, but since one of Git's supported transports is SSH, and I'm trying to use agent-forwarding, I thought I would ask for clarification (the man pages have let me ...
2
votes
1answer
1k views

git out of memory

I went to my file directory, did $ git init $ git add and then got fatal: Out of memory? mmap failed: Cannot allocate memory One folder is maybe 2GB big because it is full of images.. the rest ...
1
vote
2answers
2k views

git fail “fatal: the remote end hung up unexpectedly”

try to get the code from the following project http://git.webvm.net/?p=npsimple;a=summary tried in git bash: git clone git://git.webvm.net/npsimple but then I got: fatal: the remote end hung up ...
0
votes
1answer
3k views

How to copy a Read-Only file and make the copy writable with a single cp command?

How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they ...
1
vote
1answer
700 views

Cloning a git repository from a machine running OS X

I'm trying to host a git repository from my home OS X machine, and I'm stuck on the last step of cloning the repository from a remote system. Here's what I've done so far: On the OS X (10.6.6) ...
14
votes
1answer
4k views

Which fork of GitX is the most active? [closed]

I've been using the original GitX but I've noticed it hasn't had any updates for quite a while. Which version of GitX is the most active, in terms of updates/stability/features? The original ...
0
votes
1answer
51 views

is there an easy way to delete files (*.pdf and *.eps) from the git archives to make the archive smaller

I use git to control revisions of a latex document with pdf and eps images generated by gnuplot. i need pdf and eps in short term to look at changes quickly. but i don't need them in long term because ...
0
votes
1answer
234 views

Strange behavior in `git log`

The date range specified by --since and --until seems not work, $ git log --format="%cd %h" --since="2009-11-20 10:25:59" --until="2009-12-25 00:00:00" --date=iso . 2009-12-23 00:07:24 +0000 fa2261b ...
3
votes
2answers
235 views

git: Get source so i can compile, not everything?

github has a download button which offers a download for .tar.gz and .zip files. Essentially i want the same thing for the latest branch or of a tag. I dont want to work on the project, i just want to ...
0
votes
0answers
191 views

How can I make FTP ignore Git Files?

Is there a way that I can have my FTP client ignore the .git directory? Is there anything like the .gitignore (.ftpignore) file with FTP?
1
vote
1answer
167 views

share git rep access on unix machine with ssh

at my school we have a student unix server with our accounts. i have installed git on my account, created a repository, and created the acl permissions on the folder repository so other users can ...
0
votes
2answers
427 views

Symlink to Files & Dirs in Dropbox

I just installed Dropbox on my Mac, so now I have this Dropbox folder in my home directory. I only have the free plan (2 GB), so I can't just throw all my files & directories in there. I ...
1
vote
2answers
574 views

Put browser bookmarks into version control system

I regularly use three different computers. I keep a lot of data between them in sync using git. This works very well for most purposes. My only problem is browser bookmarks. Firefox now keeps them in ...
1
vote
1answer
181 views

How do I add an SVN created descendent branch in git-svn?

I have two branches tracked in a Git repository from SVN. Branch B was created in r6 in SVN by copying r5 of Branch A. When I added Branch B to git-svn it only tracks back to r6. I was expecting it ...
11
votes
3answers
39k views

Using GIT on Aptana 3 standalone

The only references I see to GIT in Aptana Studio 3 (the standalone version) are under preferences where the only field is to identify an executable (do I need to do that?) and importing a project, ...
7
votes
2answers
588 views

Mount drive at /Volumes/NAME/ or similar in Cygwin

I'm using Cygwin on Windows 7. When I plug in an USB stick, the drive automatically gets mounted to /cygdrive/x . This is good and really easy to use. My problem is that the drive letter changes ...
2
votes
2answers
538 views

Ignore carriage return for a specific file with Git

I use multiple environments thanks to virtual machines, and my code directory is shared between them. I also like my code to have the native (host) line endings. When I'm on a Windows host, I ...
2
votes
1answer
675 views

Github private/public SSH key authentication

I have github. I created a private/public pair. I put the public on github. But I can never push to github. Every time, it says public denied. In order to push, I need to do this: eval ssh-agent ...
3
votes
5answers
1k views

local git code browser

I want to have a frontend to my local git repository like github, so I can send my peers links to diffs. is there anything free that does this?
7
votes
2answers
1k views

Is it safe to delete a branch from a github fork once it's been merged upstream?

I've only recently tried my hand at forking in github and would like some "best practice" advice. I created a branch in my fork, and that branch got pulled into master of the upstream project. It no ...
7
votes
4answers
4k 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.
2
votes
2answers
11k views

Mac OS X Terminal get in Macintosh HD? For using Git and Github

I wanted to get started with using Git and Github especially for installing Web software to my htdocs directory. htdocs is the folder in which you put all your websites that then run by using MAMP -- ...
1
vote
1answer
502 views

Git can no longer open emacs as its editor

I'm running Git version 1.7.3.2 that I built from source, zsh is my shell, and emacs is my editor. Recently I started seeing the following: ...
5
votes
2answers
827 views

Eclipse: Help with EGit

I want to be able to use a version control system. Although Eclipse comes with CVS, I think it's better that I use a distributed version control system, such as GIT. I was pretty much sold after ...
89
votes
3answers
67k 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 ...