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

51
votes
4answers
13k views

Forward SSH traffic through a middle machine

SSH tunneling is very confusing to me. I am wondering if I can do this in Linux. I have 3 machines.. A. My local machine at home. B. Machine at work that I can SSH into (middle man). C. My desktop ...
2
votes
2answers
1k views

How to keep my OSX settings under version-control?

Coming from Linux, I've gotten in the habit of keeping my config files under a git repository. Since I got a macbook however, I've made a lot of tweaks through defaults write and preferences panels, ...
60
votes
12answers
38k views

How to get git-completion.bash to work on Mac OS X?

I have followed http://blog.bitfluent.com/post/27983389/git-utilities-you-cant-live-without to add git-completion.bash to my /opt/local/etc/bash_completion.d/git-completion and I put ...
38
votes
2answers
8k views

Git Bash Here in ConEmu

How do I create a right-click context menu entry to open Git Bash at a given folder within ConEmu? See Git Bash Here in Console2 for the equivalent question for Console2.
40
votes
4answers
9k views

Git Bash Here in Console2?

MSysGit installs a context menu item that opens a Git Bash prompt at the currently selected folder; however, this opens a cmd.exe window and I would like it to open in Console2 instead. What ...
8
votes
5answers
16k views

Installing Git on CentOS [closed]

How install git on CentOS? I find this manual. Is it good?
0
votes
2answers
3k views

Install git on server without sudo

I'm trying to install git on a server with a user that does not have root access. I've seen a lot of tutorials that suggest using ./configure, but when I downloaded the latest git zip from github, ...
52
votes
3answers
38k 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 ...
83
votes
3answers
56k 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 ...
6
votes
8answers
2k views

Git Client for OS X & Windows? [closed]

Does anybody know of a stable release of a GUI Git Client? Preferrably one that can run on both Mac OS X & Windows..... Heard about SmartGit but it's still in Beta and i'm not sure I have time ...
2
votes
4answers
1k views

Can't install Git

Im following the tutorial below to install git. https://help.github.com/articles/set-up-git However when I get to the end where I need to install the helper into the same directory where Git itself ...
1
vote
1answer
322 views

How to build a custom command with options

I want to make a command on my Mac to do the following: git add . git commit -m CUSTOM_COMMEND_BY_COMMAND git push cap deploy I seem to be calling those very often. I was wondering what's the best ...
78
votes
7answers
54k views

How do I ensure Git doesn't ask me for my GitHub username and password?

I am working with a repo on GitHub and everytime I try to push something, it asks for my GitHub username and password. I don't want it doing that. I tried the instructions on setting your email in ...
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 ...
23
votes
5answers
9k views

Can you specify git-shell in .ssh/authorized_keys to restrict access to only git commands via ssh?

I'd like to be able to use a ssh key for authentication, but still restrict the commands that can be executed over the ssh tunnel. With Subversion, I've achieved this by using a .ssh/authorized_keys ...
20
votes
2answers
5k views

Tmux and ZSH custom prompt : bug with window name

I have customized my ZSH prompt with oh-my-zsh to make it more readable and add information about git if I'm in a repository. Example : bob@inf [~/docs] % bob@inf [~/src/nicest] master % (in a git ...
9
votes
2answers
3k views

Tweaking zsh git autocompletion

I just switched from bash to using zsh 4.3.4 on Ubuntu Hardy. I'm developing with git and I find myself constantly fighting with the default git completions: filename completion tries to be smart by ...
7
votes
3answers
4k views

Despite the fact that GIT does NOT store file deltas, can you still rollback to previous file versions (unlimited times?)

I've read that Git does not store file deltas. If this is true, how does it support file rollback to previous versions? If it's storing the entire file the repository space on disk must grow to be ...
4
votes
2answers
3k views

Rescuing files and commits from “no branch” in git

I started working on some files I had in a git submodule under another project. However, since it was a git submodule it never checked out "master" and instead just checked out the head and placed all ...
4
votes
1answer
2k views

Where is my zsh getting its git completion settings?

My zsh does git completion, but I did not configure this myself. How can I figure out where these settings are coming from?
2
votes
1answer
157 views

Git vs SVN: Website storage efficinecy [closed]

I know that SVN (Subversion) stores files' deltas in order to efficiently store data. Git however, is a little more complex. What I'm wondering is that if I were to store plain HTML, image and js ...
15
votes
4answers
13k views

I can't uninstall Git

I was researching Git so I downloaded the Windows version to test it out on a repository on GitHub. After about 30 minutes I couldn't work out how to use it, so I decided I probably wouldn't need a ...
11
votes
4answers
5k views

Using git through cygwin on windows 8

I've got a windows 8 dev preview (not sure if it's relevant, but I never had this hassle on w7) machine and I'm trying to clone a git repo from github. The problem is that my ~/.ssh/id_rsa has 440 ...
10
votes
3answers
1k views

How to track $HOME with git

I would like to track my $HOME dir with git. I've got many other git repos in other subdirs (eg $HOME/projects/repo_1 and so on), which shouldn't be tracked, since they already are. I have found ...
7
votes
2answers
5k views

Git: How to delete all untracked files?

I'm using Git for version control. Now I want to delete on my local machine all files in the repository that are not tracked. I can use git status to list these files, but how can I delete all of ...
7
votes
8answers
3k views

Using Git to Manage An iTunes Library?

I've been considering using Git to manage my iTunes library and allow me to sync it between computers. Can you think of any reasons why this would be a bad idea?
5
votes
4answers
10k views

How to upgrade Git on Ubuntu?

How do I upgrade Git on Ubuntu?
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 ...
2
votes
0answers
87 views

Moving two existing already-synced directory trees to git annex

I have two copies of my music files, one on a desktop Linux machine, one on a Macbook. At the moment, I run rsync periodically to keep these files in sync. I'd like to move management of this problem ...
6
votes
1answer
2k 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 ...
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 ...
4
votes
1answer
3k views

How to make git to work with pagent(putty) on Windows?

I'm using Windows x64 and I'm not able to make msysgit to work using pagent authentication. Here are some details: Putty is working without pagent without any problems. I have only one key loaded ...
3
votes
1answer
77 views

What is it that automatically checks configuration changes (such as those in /etc) into Git?

I remember reading on the Ubuntu forums some time ago about a program to automatically check configuration changes into version control for you. It was (of course) not Ubuntu-specific. I'm pretty ...
2
votes
2answers
99 views

git setup for local development

I had went through few Git Tutorial and Essential Training, I had basic knowledge for GIT. What I had learn from the tutorial, they teach me how to init git repository / github (as remote). I got a ...
0
votes
1answer
44 views

what ports to open up for GitHub to install and work?

I want to use GitHub on a server where user accounts are not supposed to be able to go online otherwise. The GitHub Windows app does not even install without users' downloading it themselves (see my ...
0
votes
1answer
42 views

how to publish the GitHub app to remote users of Windows Server 2012?

I think I have an idea what publishing apps to users mean on a Windows Server I administer. (More on that in this wiki, perhaps) However, it seems to work well with apps with exe's in the main ...
0
votes
2answers
413 views

Uninstalling Homebrew messed up git

I uninstalled Homebrew using http://superuser.com/a/203740. After running the above commands, I can't find .bashrc and .bash_profle. All files are gone from Documents , Desktop and Downloads :'( ...
0
votes
1answer
2k views

problem uninstalling GIT on windows

so, after uninstalling git, i started to receive countless popups "[hello] could not find git path" messages, uninstalling and reinstalling git didn't do anything.. finally i found this post and that ...
0
votes
3answers
876 views

Should I be concerned if my Git hosting provider stores passwords in plaintext?

I found a comment on Reddit suggesting that ProjectLocker, a free Git host, stores their passwords in plain text. I don't know (a) if this is true (b) how to verify it or (c) how worried I ...