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
2answers
111 views

VPS Git vs custom git service [closed]

Is there any reason I should pay for a custom git service like unfuddled or bitbucket, something to that extent? I have a vps I'm paying $5 a month for 50 gb of storage space, and it just doesn't seem ...
2
votes
2answers
122 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 ...
8
votes
3answers
3k views

Vim powerline doesn't show the current branch

I'm using the vim plugin called powerline and it isn't showing the git branch I'm on, while it's supposed to be activated by default. The fugitive plugin is installed, though I don't think it was ...
0
votes
1answer
626 views

Github's Windows application versus Git-1.7.11 (aka MSYSGit)

I was using MSYSGit. Recently installed Github's Windows application. It crashed 1-2 times while "extracting the GIT. Please wait" screen. Then worked. I got some questions Is there any chance that ...
0
votes
1answer
337 views

Cygwin - Repo with Separate Git/Working Dir Doesn't Work

Since I've switched to OS X and Vim, I've found it easiest to manage all of my 'dotfiles' (all of my configuration files and miscellaneous scripts) with Git. Having already set up my dotfiles in a ...
1
vote
2answers
1k views

using git for media libraries

Rationale: I want to manage libraries of media files (music, images) using git, there is git-annex but it requires haskel platform - but they do not play together well (also it's quite to big ...
2
votes
2answers
4k 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 ...
0
votes
1answer
2k views

ssh keychain for git pull cron

I am a bit of a newbie with linux, so must apologize straight away if this is something obvious and/or silly. I am trying to create a git pull cronjob that gets update from GitHub repo every few ...
4
votes
2answers
145 views

when checkout a previous commit, Is there a quick way to input the log commit hash?

It's really tedious to type the following command: git checkout 622fe0a9b6bffdf4723026ae6e673245b510ac66 Is there autocomplete or shortcut to do this?
0
votes
1answer
126 views

How do you use a VCS (preferably git) to synchronize local directories?

I'd like to have a simple, script-like backup solution to synchronize 2 local directories which provides a "fail-safe"-mechanism allowing to undo 1 commited unwanted modification of a file that got ...
0
votes
1answer
850 views

"Clone in Mac' fails on GitHub. Takes me to download page every time

I've reinstalled, uninstalled, restarted but "Clone in Mac' on any repository page fails and takes me to the GitHub download page every time. It was working fine earlier this week but today won't do ...
2
votes
2answers
438 views

Have git-annex control files on a partition but still use the partition the normal way?

I want to have all my files on a partition to be controlled by git-annex to be able to take them with me to other computers via an externel drive. Still I want to use the partition normally (creating, ...
1
vote
0answers
170 views

Svn analog of git-shell

I have configured git,so I can pull/push via ssh, authorization via public key, but if I try to make direct shell access, I get Last login: Mon Aug 13 20:12:20 2012 from 192.168.1.3 fatal: ...
0
votes
1answer
475 views

~/.ssh folder recover

i have created sucessfully , a public private key pair , with ssh , with github it worked perfect . but , when i did with git.assembla.com , i faced permission issue , so i tried to create a new pair ...
10
votes
1answer
2k views

ZSH tab completion of git commands is very slow. How can I turn it off?

If I type: rm <TAB> I'll see possible completions almost instantly. However, if I type: git rm <TAB> It'll hang for several seconds if it's in a git repo, or fail to show any ...
2
votes
1answer
2k views

How can I make files I check out with git on Windows writable by default in Cygwin?

I'm developing on Windows and I prefer to run git and build commands from the Windows command line, but I also enjoy using cygwin sometimes when I want to just explore the project repository using my ...
2
votes
1answer
716 views

Using local private key via putty -> shell on remote server -> github

Is this scenario possible: Using putty/pageant to connect via SSH to a remote linux server (ubuntu)? In the shell on the remote linux server doing "git push origin master" to github (url = ...
0
votes
2answers
55 views

Can I run git tools against a remote repo?

I'm working on a project on a server machine where git is not available. This is likely not going to change in a close future. I wonder if it is possible to use my local installation of git to work on ...
21
votes
2answers
6k views

How can I Resync a fork from original

I just forked a project in Github. I made modifications and sent a pull request. The owner merged my fork with the main project and after that he made some modifications. So for now my fork is not ...
5
votes
2answers
1k views

Vimdiff and git all at once

I use vimdiff as my difftool with git. Let's say that I've changed twelve files. The problem is that sometimes I run git diff and around the fourth or fifth file I see something that I want to ...
1
vote
1answer
94 views

Why does git branch info clear upon making a new tab in terminal

I've written a bash script to put git info into my bash prompt, along with still keeping the terminal's pwd in the title bar, to allow for new tabs to be opened at the current working directory. It ...
8
votes
4answers
6k views

Removing git from /usr/bin

I'm on OS X 10.8 and I'm using Homebrew. brew doctor tells me that I have 2 git installations, one in /usr/bin and the other one in /usr/local/bin. Is it a bad idea to remove git from /usr/bin? If ...
58
votes
3answers
20k 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.
2
votes
1answer
431 views

When changing branches in git, how files are replaced?

There's something I don't understand about how git manages files when changing branches: When I run git branch xxx What does happen to the existing physical files? Are they being moved? Deleted? ...
0
votes
1answer
99 views

how to checkout old version from GIT

we have a remote git repository, and a development branch. i'd like to "fork" a particualr directory for (a-la code freeze). for example, | + -dir1 | + -dir2 | + -dir3 i need to ...
1
vote
1answer
575 views

Roll back git master repository and branch commits from rollback point

I have a Git repository set up. This repository has almost 700 commits, but all of them is in the master branch. I would like to take an approach in which I roll back this master branch (this rollback ...
1
vote
2answers
5k 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, ...
0
votes
0answers
525 views

Setting up Git Redmine hosting plugin

I'm trying to configure the Redmine Git hosting plugin but I'm struggling with some difficulties in setting up the proper permissions to the web and git users. When I access the plugin settings ...
1
vote
1answer
1k views

git bash-completion on mac osx does not work following standard installation instructions

I read a bunch of instructions for installing bash-completion for git, and settled on the macport solution, which is, for example, mentioned here: How to get git-completion.bash to work on Mac OS X? ...
2
votes
1answer
929 views

Can Git GPG program be used for s3cmd?

My ultimate goal is to be able to put files onto my Amazon EC2 server. After a month of failed attempts at getting SSH access to the server, I have decided to try s3cmd and eventually migrate files ...
1
vote
1answer
1k views

How do I know what repositories my git server is serving

I have just been access to a server that someone said is "the git repository" I have not used git before, but I assume that must mean there are a set of files somewhere that are the "gold copies" ...
3
votes
1answer
1k views

How to setup GIT repo on server with need for working dir (non- bare)

I want to have configurate a GIT repo for a website. Multiple users will have a clone of the repo on their local machine and on the end of each day they push their work to the server. I can setup a ...
2
votes
1answer
1k views

Bitbucket - permission denied (public key)

I have repos in github and bitbucket. First I wanted to use same public key in bb and gh with no luck. So I created another public key, my .ssh/config file look like this: Host bb HostName ...
1
vote
1answer
2k views

git bash: navigating to project folder

I have installed Git bash and I haven't used it yet. I want to run few commands to install some modules, but I don't know how to navigate to my project folder. My project folder: ...
0
votes
1answer
178 views

How can I prevent Textmate from reloading files when I change git branches?

I use Textmate to edit source that resides in git branches. This is what I am trying to do: 1) On branch A, open file index.htm in Textmate. 2) Checkout branch B, open file index.htm in another ...
1
vote
2answers
101 views

Getting started with git

I want to use git to version control files in a new project. I have read an overview of git, but it is not clear to me if git hosts the code for you. I do not want my code to be hosted on a third ...
0
votes
2answers
109 views

How to check if bzr “Tree is up to date” ? (to only build when necessary)

I'm setting up a script to download, build and install a big project (that uses bazaar) and want to trigger the build process only if the "bzr update" does NOT return "Tree is up to date at revision ...
2
votes
2answers
2k views

git: Delete all tracked files?

I have a directory containing a git repo as well as other unrelated files which I do not want tracked (its my home directory, sorry if this is bad practice--alternative recommendations for versioning ...
0
votes
1answer
287 views

Bash Prompt Not Showing Colours (git)

I have the following in my .bash_profile, to give me git branch info in my bash prompt: # Configure colors, if available. if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then ...
1
vote
1answer
35 views

best way to record local modifications to an application's configuration files

I often install applications in Linux which don't come in package form but rather one just downloads a tarball, unpacks it, and runs the app out of the exploded folder. To adjust the application to my ...
1
vote
2answers
6k views

error: cannot fork() for status: Resource temporarily unavailable (git)

when I want to do something: add , remove, pull , push in github, I just have this error in my terminal Thanks in advance! selnaz:iOS-Tidinfo Lnaz$ git add . error: cannot fork() for status: ...
4
votes
2answers
4k views

Git — SSH Agent not working

The back story -- I've been using Git on this computer (Windows XP) for about 8 months with no problem. Suddenly, last week, it is no longer asking me for my username and password when I start Git up. ...
0
votes
1answer
3k views

fatal: pathspec for removing folder in git

I want to remove a folder from a Git repository but I get an error. I tried several commands, and here you can see my errors: selnaz:iOS Lnaz$ ls iOS-Tidinfo mockup readme.txt selnaz:iOS Lnaz$ ...
1
vote
1answer
344 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
264 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
865 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
759 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) ...