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

0
votes
1answer
22 views

MSysGit is adding a cygwin prefix to non-cygwin paths and then failing to find its current directory

I've had Cygwin's git installed on my Windows 7 64 bit machine and it's been working fine. However, I've found myself wanting to be able to use git from non-Cygwin programs (in particular, Windows ...
0
votes
0answers
25 views

git corrupted on ubuntu vbox, power failure with proper shutdown

i use git on ubuntu headless server on virtualbox on my laptop. when i shut down the pc, i don't bother shutting down the virtualbox, i just shutdown the pc. it never was a problem. it was fine since ...
66
votes
12answers
40k 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 ...
0
votes
1answer
25 views

How is the location of .ssh determined?

On my windows machine, when I ran ssh-keygen, it created a directory at ~/.ssh with the key (and a known hosts file), and then I could use ssh to connect to sites (and git worked with ssh). On my ...
3
votes
4answers
4k views

SSH remote command no reading all environment variables

I have declared some "PATH" variables in the ".bashrc" file of a remote machine. When I login to the remote machine, all these "PATH" variables work fine. But when I do a "ssh user@remote env", the ...
1
vote
0answers
76 views

AWS git clone or pull not working and no error message

In one of AWS/AMI instance, I'm trying to git clone ... it says Cloning into '<repo name>'... but it doesn't clone the repository and not showing any error or any other messages, I have also ...
2
votes
3answers
730 views

Jenkins notification-poll-build fail with “No git consumers for URI ssh://path”

Whenever my Jenkins gets notified about a new git commit to my repository foo, I get the following log/error response on the triggering client: Scheduled polling of foo No git consumers for URI ...
0
votes
1answer
109 views

How to commit files modified by pre-commit hook in Git

Im struggling for a couple of hours to make git store metadata (permissions/flags/etc) of the files using metastore and I use hooks/pre-commit for this. The script is invoked correctly, and the file ...
0
votes
0answers
24 views

Gitolite Setup fails

I am getting the below error when I am trying to setup the gitolite. FATAL: errors found but logfile could not be created FATAL: /home/git/.gitolite/logs/gitolite-2014-06.log: No such file or ...
0
votes
0answers
28 views

git gui cannot handle non-ascii character in .gitconfig?

I just encountered a problem: The git-gui will spill an error when I have non-ascii symbols in the .gitconfig. For example, if I have an entry: recentrepo = /home/<username>/∞ π ∅ Then it ...
0
votes
0answers
6 views

GIT GUI locking access to launching folder

In recent versions of GIT GUI (obtained from http://git-scm.com/download/win ), whenever I open it from the desktop, the folder from which I opened it is made inaccessible. I can still access the same ...
0
votes
1answer
16 views

Github email questions

I am running Fedora 20 which gives me the option to set up Evolution. I do not want to but I still want github to put my real email address on my commits. How do I do this, or will github do this once ...
13
votes
5answers
20k views

How do I backup a git repo?

I am planning to switch from SVN to git. With svn I just copy my repo folder when I want to back it up. However git doesn't have one so what do I do? Should I create a clone on a separate drive and ...
3
votes
1answer
174 views

Git vs SVN: website storage efficiency [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 ...
0
votes
1answer
88 views

How to show particular 'dot' or hidden files on OS X

Is there a way to configure OSX to always show particular dot files? I'm familiar with the commands to toggle between showing and hiding hidden files. Show Hidden Files: defaults write ...
2
votes
3answers
40 views

Version control (hg): can one directory be “synced” with different repositories?

I have a directory for my work files which is under version control (Mercurial): ~/myfiles In a subpath, I have a directory with Emacs packages for my org-mode setup: ~/myfiles/org-mode As I said, ...
96
votes
9answers
159k views

How can I roll back 1 commit?

I have 2 commits that I did not push: $ git status # On branch master # Your branch is ahead of 'faves/master' by 2 commits. How can I roll back my first one (the oldest one), but keep the second ...
0
votes
3answers
21 views

Installed GIT for Mac, but cannot locate file

I'm a new MAC user running OS X Mavricks and I am trying to get git up and running on my MAC. I successfully downloaded the program from the website and ran it. However I can not find it installed ...
1
vote
1answer
48 views

Understanding implications of sudo -u -H

I'm trying to install gitlab from this guide on Ubuntu 14.04 Server. It is also worth mentioning that I'm behind a http proxy. I'm having problems with this line in particular: sudo -u git -H git ...
0
votes
0answers
45 views

Change HOMEDRIVE windows variable to be dynamic on windows 7 to use Git

I have a Windows 7 notebook from work. I use Git as my version control system. I installed Git on the system before the administrator connected my computer to the office network. he changed my ...
0
votes
0answers
327 views

Can't git push to Bitbucket.org — with ssh keys

I'm running doku-wiki on may (Ubuntu) laptop for some note taking. So, to keep backup, I was using Bitbucket and periodically pushed my wiki files there and everything worked smoothly. (a) Some time ...
0
votes
1answer
33 views

Using shared git working area on multiple hosts

I'm transitioning my personal projects from using subversion (svn) to GIT. In subversion, I've used a shared SVN working directory on several hosts (despite people telling me it wouldn't work), and ...
0
votes
0answers
35 views

What is the correct root file to import to aptana from an xampp folder/existing web app or git repository?

Very noob question - all of this is new to me - not really sure how to get started. Overview: I'm taking over an existing wep project that has been developed in aptana and deployed in xampp setup - ...
0
votes
1answer
144 views

GitHub configuration terminal says “no such file or directory”

I'm following the tutorial to configure GitHub but my mac terminal says that I have no such file or directory. iMac-di-:~ user$ git credential-osxkeychain Usage: git credential-osxkeychain ...
0
votes
1answer
187 views

Getting .net error while installing Github

Github Installation failed with the below error. Component Microsoft .NET Framework 4 (x86 and x64) has failed to install with the following error message: "A failure occurred attempting to install ...
0
votes
0answers
26 views

Use server git installation in GitHub for Windows

We are using Git as the version control for our website development. I work from a laptop, which is connected to the internal network via a WiFi connection. I've mapped the server drives as network ...
0
votes
4answers
424 views

Debugging git repo permissions on samba share

I've been working with git repositories cloned on samba share for about one year and apart from few problems with setting it up there weren't any issues with it. Recently I tried to add some files to ...
0
votes
2answers
52 views

git push/pull keeps on trying to produce GUI window

Every time I try to do git push or pull on one of our work server I get a "Error: Can't open display:" warning, unless I login with -X forwarding, in which case some ugly 90s looking window pops up ...
0
votes
0answers
31 views

Scenario for Git + SVN with remote compilation server

In my work environment we keep code in SVN repository. I have a personal laptop. And there are remote build servers. Building locally on the laptop, even thou possible, is not a good idea (due to ...
13
votes
9answers
3k views

Cygwin/Git Bizarre Terminal Issue

Alright, this is weird. First off, this is mintty running on up-to-date cygwin, with git pulled from cygwin's setup.exe. I am running zsh. $ git clone ...
0
votes
0answers
104 views

GitHub project uploading error: error, failed to publish this branch

I am new to GitHub and until today I have used the Online file creater for GitHub. Now that I want to use the Windows GitHub version. I am not able to understand why it isn't working. I have created ...
7
votes
3answers
4k views

Homebrew installation of git won't take precedence over system version (in /usr/bin/)

OS X (or Xcode) comes bundled with git 1.7.something, but after brew install git (1.8.0), which git keeps returning the old /usr/bin/git. This is what I get when I echo $PATH right now: ...
0
votes
1answer
236 views

Bitbucket ssh Read from socket failed: Connection reset by peer

I'm using ssh to access git repository on bitbucket.org. Suddenly I can no longer connect to it. Haven't installed anything or did any changes to the settings. $ ssh -v git@bitbucket.org ...
0
votes
1answer
140 views

How to create a user to for Jenkins to execute command as a root user?

When I create a Jenkins job with Git to manage the source code, I enter a local repository URL, it failed: Failed to connect to repository: Command"git ls-remote -h /myRepositoryPath HEAD" returned ...
1
vote
1answer
327 views

Colored man pages but git --help is not in ZSH

I have colored man pages according to: alias man="TERMINFO=~/.terminfo/ LESS=C TERM=mostlike PAGER=less man" so man less looks like but git blame --help is uncolored
1
vote
1answer
300 views

Is there a way to edit a commit message in github?

Is there a way to edit a commit message after committing and pushing to github? I see that there is a 'add a note' as well as inline commenting, but no actual editing of a commit message. There is ...
0
votes
0answers
45 views

Connect Dreamweawer CS6 to Bitbucket repository

I have a Git repository on Bitbucket and I would like to configure version control in Dreamweaver CS6. How do I do it?
2
votes
1answer
204 views

Problems with git and bundler

I'm trying to set up Gitorious on my Server with this tutorial and having problems over problems with gem/git. After fixing a lot of libs and dependancies, bundler now won't work with git ...
1
vote
4answers
6k views

Installed Git, not sure how to get it working

Ive installed Git on my Mac (OS 10.7.5) and it seems to be successful (I get the successful installation message). But when I open my terminal and try some basic command line, eg" git --version I just ...
0
votes
0answers
69 views

Build a jenkins project with Git to manage source code fail with “no developer tools were found at 'Applications/Xcode.app'”

I have installed XCode4.6.2 in Mac, and start up a Jenkins site as "localhost:8080", when I create a job named "My First TDD Project" with free-style software project, I choose "Git" for source code ...
0
votes
0answers
30 views

disable direct access to git repo

I have set up a local git repo on a linux machine and have users check in and check out from it: /myfolder/gitrepo/ How can I disable any modification access to that folder directly unless they ...
0
votes
1answer
214 views

Visual Studio - Using GIT and SVN

Work uses SVN. I want to use GIT for private use. I was also exploring TFS, but it doesn't seem to cooperate with multiple collections, so I stopped looking into it. Currently I use AnkhSVN. I want ...
14
votes
2answers
15k views

How do Git branches work? Can I remove the master branch?

I have a project that has 2 branches, development and production. I'm not using the master branch and each time I write git status it tells me how far ahead my branch is from the master. When I try ...
12
votes
4answers
4k views

How to amend the last commit to un-add a file?

I have modified two files a, b in the last commit. But file b should not be commited, what's the workflow to amend this?
1
vote
1answer
86 views

Unable to clone Git repository using Visual Studio Online

I'm trying to clone WinJS to my Azure Web Site using Visual Studio Online "Monaco". When I type git clone https://github.com/winjs/winjs.git in the online console I get the error Can only clone a git ...
0
votes
1answer
29 views

How to pull from remote 'A' to remote 'B' in Git

I have 2 remote branches: origin/master and origin/my_123 - my_123 was branched off of master at some point but is now behind. I'd like to pull from master into my_123 so that my_123 is in sync with ...
1
vote
2answers
281 views

How to delete origin/master in Git

I cannot remove origin/master from my server. No idea why. The error message is the following remote: error: By default, deleting the current branch is denied, because the next remote: error: ...
0
votes
0answers
11 views

Delete old files from git repo [duplicate]

is there a possibility to remove old files and folders from the complete GIT repository (also in all commits)? I´m using GIT 1.9 and Gitlab 6.8.
0
votes
0answers
20 views

Cannot add contents of a directory to git

I have a directory A which is monitored by Git. In this directory, I have another directory B which is not empty. However, Git does not add the contents of this directory. When I push the repository ...
0
votes
1answer
88 views

Version Control Foreman / Puppet

I have just setup Foreman for the first time & am not sure how to go about putting all of my configurations under version control. I know I can use Git for each module I install on my Puppet ...