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

How best to backup My Documents (maybe with Git?) [closed]

I would like a good process to backup My Documents on my hard drive periodically to an external hard drive or repository. I want to have a snap shot at each backup period, and don't want to waste ...
1
vote
2answers
805 views

Which version of Git to use with Windows

I wish to install Git on Windows 7. There appears to be two versions. I will be using it in conjunction with Tortoise Git. http://msysgit.github.io/ http://git-scm.com/downloads An answer on ...
1
vote
0answers
48 views

Git suddenly started to choke on “git pull” for only one repo

Yesterday, at some point in time, my Git for Windows suddenly started to choke (hang forever) on git pull for only one repo. I managed to pull changes ten times this day, I started to fail on eleventh ...
2
votes
1answer
75 views

Git amend via tig

I often use tig to select which modifications to add, and which to commit. I scroll via the patches, push u to add, and when I am satisfied, I press C to commit the added changes. Every once in a ...
0
votes
1answer
77 views

clone from bitbucket.org in command on guest linux virtual box through proxy in host

I am using an ubuntu virtualbox guest on a windows 8 host. I am going to clone a repo from www.bitbucket.org using git command in guest. BUT the problem: I realzied that I cannot connect to ...
0
votes
0answers
31 views

How to discard all working tree changes except for assume-unchanged files in Git?

I'm looking for a command like git reset --hard except for those assume-unchaged ones. For example: user@host /d/projects/test $ git init Initialized empty Git repository in d:/projects/test/.git/ ...
1
vote
1answer
716 views

How to install Ultisnips with Snippets on Linux?

I'm using Slackware and trying to install and use Ultisnips. I use Pathogen and the documentation says the following: > Using Pathogen: UltiSnips-using-pathogen If you are a pathogen user, ...
-1
votes
1answer
412 views

how to run a shell script on git commit

1) i have a shell script which basically contains some(database testing and integrating test code) , but i have to run this shell script when ever there is commit (or any change ) in my git repo the ...
0
votes
0answers
31 views

Recompiling a python program doesn't produce executable

Today I installed Mathics from their github repository: $ git clone https://github.com/poeschko/Mathics.git $ sudo python setup.py install And then I decided to modify the source a little bit and ...
6
votes
5answers
11k views

SSL certificate verification failure in Chrome, Heartbleed bug?

For some reasons I'm running into SSL problems since a few days. When trying to clone a git repository for example I receive the following error message: fatal: unable to access ...
0
votes
1answer
987 views

Can't get vundle or neobundle to work on GVim on Windows 7 64bit

Can't get these add-ons (vundle or neobundle) to work on my Windows 7 machine. Everytime I try to install plugins I'm getting the following error messages: Error detected while processing function ...
0
votes
1answer
30 views

is git-upload-pack necessary?

I'm getting the following error when trying to pull from a git repository: sh: git-upload-pack: not found I've seen many discussions about it and all of them suggest setting some path so that the ...
1
vote
1answer
112 views

Should a vagrant project be its own repo

So I've been working with Vagrant and I find it to be excellent but I'm wondering what the best or most common use of it is I imagine that there to be two ways to use it: The first would be to create ...
0
votes
0answers
101 views

Homebrew is not installing on Mavericks

git fetch is failing during installation of homebrew. Has anyone seen this before? Here's the transcript. I've tried removing /usr/local in its entirety, I still get this problem the next time ...
0
votes
1answer
44 views

Can I assign a hotkey to a cmd/Git Shell command?

So I have a Git Shell that I use to compile stuff. Typical commands are: cls ; make ; ./bin/Executable.exe Is it possible to assign a certain hotkey to this command in the existing shell?
0
votes
1answer
261 views

Better setting of EDITOR environment variable to use Sublime Text 2 as system editor?

I want to use Sublime Text 2 for editing Git commit messages. Right now I have the following in my bash rc file: export EDITOR="sublime -nw" This works well if Sublime is already running. But if ...
1
vote
2answers
256 views

Parse Git Branch Stopped Working (OSX)

I use a method called parse_git_branch which is called by my PROMPT. I'm using zshell, but I don't understand why this would stop working. Here's the function: parse_git_branch() { ...
0
votes
2answers
186 views

git using different version of vim than zsh

I've got a plugin called YouCompleteMe installed in vim. When vim starts with this plugin installed, it will raise a warning if the version of vim is under the minimum required. I'm using vim ...
-1
votes
1answer
22 views

Creation of commit object's Index in git?

Please guide me that the SHA that is created when the commit object is created is either the SHA of only the contents of file or there are some other inputs too to the HASH function like author of ...
1
vote
1answer
187 views

Accessing gitbash commands through conemu

I have tried to access gitbash command using conemu terminal, but I am unable to do so for some reason, it does not work for me. I check all the answers given including this Git Bash Here in ConEmu ...
0
votes
0answers
86 views

500 Internal Error when adding public key - Redmine - & issue with git repos

I am experiencing a problem when i try to add public key for a user in Redmine. Everytime i paste public key into a field in redmine and i try to save this user key i get redirected to Internal Error ...
0
votes
2answers
154 views

Installation of Git on Debian 7.4 fails

I tried to install Git (from source) on Debian 7.4, but the installation fails with the following message: Writing perl.mak for Git Writing MYMETA.yml * new perl-specific parameters GEN ...
0
votes
1answer
15 views

Cloning repository within many directories

I have this tree structure: ./ ../ user1/ user2/ user.../ user20/ I want to clone for all developers. Something like: ls | xargs git clone /my/project/repository.git I thought about using find ...
5
votes
2answers
1k views

Explorer stops responding when opening Git Bash

When I open Git Bash from the Explorer context menu, Explorer stops responding, regardless whether the folder is a Git folder. Immediately when I close Git Bash, Explorer starts to respond again. My ...
0
votes
2answers
471 views

How do I link a project in Eclipse with the Git repository I imported from?

I've googled all day and there's so many Git questions, it's hard to find anything about my actual question, which is this. I have a local Git repository set up. I can pull a previously committed ...
0
votes
0answers
52 views

How to automatic add file names in git commit message?

When I am writing a commit, I usually have the format: filename: add something I want commit to automatically add filename into the commit message, is that possible? I know about commit templates, ...
1
vote
1answer
140 views

Gitlab commits have the wrong ID

Developers committing on our internal network, from the company computers (we're using iMacs) have their commits display as developerX@macY.local, where I'd expect them to display as ...
0
votes
1answer
22 views

How to drop objects from git repo?

I have a git repo for backup, I used to let it backup many useless but large files, which is a stupid mistake. I untracked those files long time ago. When I recently git clone the repo, it's really ...
2
votes
1answer
73 views

How to git clone specific linux kernel build

I know I can git clone the linux kernel using the following: git clone \ git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git \ linux-2.6 But I'm wondering how to clone a specific ...
0
votes
1answer
349 views

git clone fails with “bad object” under msys2 in a VM

When I try to git clone a github project under my Windows 7 - MSYS2 VirtualBox VM, it fails: laurent@Win7 ~/Dev $ LANG="en" GIT_TRACE="1" git clone git://github.com/nanomsg/nanomsg.git trace: ...
1
vote
1answer
49 views

Can document root of the server be on client machine

Here is my problem. In our company we have a setup like this. There is a server with apache, php and all. All the client (dev) machine has their one drive (M:) mapped to the home folder on the server ...
0
votes
1answer
99 views

Tomcat and git on ubuntu

I have a tomcat server on ubuntu and I have a directory where i store all my git repositories, how do I enable my server to accept git push via https. I use realms to allow access to the directory. ...
0
votes
1answer
33 views

Disable automatic capitalisation of git checkout BRANCH_NAME in ZSH/oh-my-zsh

I'm using zsh 5.0.2 with oh-my-zsh plugin and whenever I do tab completion on git checkout f it comes out as: git checkout Feature\ For some reason it's automatically searching uppercase branch ...
0
votes
2answers
362 views

Installing Git on Linux Mint Debian

Background I recently moved to Linux Mint. I installed the LMDE201403 and pretty much have my environment setup. However, I need to install Git for my version control. I have searched the internet ...
0
votes
1answer
43 views

How to track external code in git

I'm working on a project where some code is original to the project, some code is modified from external sources (some of which use VCS like p4), and some code is mirrored from external sources. How ...
0
votes
1answer
156 views

Using git with certificate in PHPStorm

When using PHPStorm, I want to integrate git in my project, but I can't seem to find the option where you specify the private putty key for the current project.. Any ideas?
2
votes
2answers
3k views

How to git clone private repos within Vagrant VM, using host's SSH keys?

I'm able to use PuppetLabs vcsrepo to clone public git repos, but I'd like to also be able to clone private repos, using the host's SSH keys. What would the configuration look like for Vagrantfile ...
0
votes
0answers
127 views

What is the meaning of this git warning message in octopress deployment process

When I run rake deploy, I notice a git pull warning message $ rake deploy ## Deploying branch to Github Pages ## Pulling any updates from Github Pages cd _deploy There is no tracking information ...
0
votes
0answers
12 views

TortoiseGit Resizing “Log Messages” columns

When viewing log messages in TortoiseGit is there anyway to resize the columns for the individual changed files. They don't seem to be dragable, only use half the window width, and as such doesn't ...
0
votes
0answers
74 views

Right click when git is installed

When I install git on a fresh copy of Windows 8.1 embedded, right clicking on folders takes 3-4 seconds. If I remove git, right clicking takes the normal amount of time again. How can I reduce the ...
0
votes
0answers
25 views

Push commits to own repository in submodule

I have a big repository on a private where I work in and commit my changes. Now I depend on other repositories like v8, node and other ones. I tried to add them as submodule, but then I cannot change ...
0
votes
1answer
205 views

Can't uninstall or upgrade git

I'm on Opensuse ver 12.2. My git seems to be installed in /usr/lib. rnx@linux-sh2d2:~> git --version git version 1.7.10.4 rnx@linux-sh2d2:~> which git /usr/bin/git rnx@linux-sh2d2:~> cd ...
25
votes
5answers
13k views

Can not clone any git repository from github

Since the update to OS X 10.9.2 I am not able to clone any git repository from github.com If I run the git clone command I get the following error: git clone ...
0
votes
2answers
77 views

How come git clean -Xi doesn't delete folders, only files?

My .gitignore has something like /folder /.otherFolder .file .otherFile And when I do git clean -Xi it shows that it will only delete .file and .otherFile, but not folder or otherFolder. Why is ...
2
votes
1answer
37 views

Get git-repository commit into different git-repository branch

Consider the following setup: One Repository1 sits on Bitbucket. A local working copy is situated on my machine. I change files locally, commit and push to Repository1. Changes in Repository1 (on ...
0
votes
0answers
36 views

How to create a selinux context that merges two existing contexts?

I want to have a git repository available to both: the smart http transport and thus writable by apache - this is handled by the httpd_sys_rw_content_t context. the gitweb interface - this is ...
0
votes
1answer
127 views

Vim Gitgutter to the right of the line numbers

I am using vim-gitgutter in conjunction with vim's native line numbers. The problem is, I gitgutter is showing up on the left of the line numbers and I would prefer it go on the right. Is there some ...
0
votes
1answer
110 views

authentication for git remote push to github

Github says they prefer https over ssh. Does this mean I should do something like this on my local machine: git romote add github 'https://userid:passwd@github.com/userid/repo.git' If so is sending ...
1
vote
1answer
1k views

centos 5 + nginx + git-http-backend

I've a CentOS 5 server at domain.fr. I'm trying to set a subdomain so that I can use it with git, "git.domain.fr". My repositories are in /home/git (example /home/git/repos.git). I've installed ...
0
votes
0answers
62 views

How can i exclude hostnames for using the default-proxy in git?

Is there a way to exclude the default-configured http-proxy from beeing used when checking out from local(corporate-network) git repository? We have a git repository that is only accessible when not ...