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

2
votes
1answer
1k views

code.google.com: git: fatal: remote error: Repository not found

I have created a new repository in code.google.com, generated the code.google.com password and updated my ~/.netrc with machine code.google.com login <email-id> password <password> As ...
2
votes
1answer
240 views

Git, Powershell, %HOME% and multiple repos

I'm going to start off by saying that I'm not particularly good with either git or Windows. However, I've been successfully using msysgit on Windows 7 for a while now, keeping track of a number of ...
2
votes
1answer
4k views

“Could not resolve host: github.com” error while updating Homebrew after installing git

I'm using OS X Lion (10.7.2). I installed Homebrew on my Mac, and I executed the command below. $ brew install git and then: $ brew update error: Could not resolve host: github.com; nodename nor ...
2
votes
1answer
430 views

Trouble implementing ssh-agent forwarding across ssh and then su

I've got a web server with a dedicated unprivileged user who runs the apache instance on the box. The php code for the app the web server runs is in a private github repo that I occasionally need to ...
2
votes
1answer
206 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 ...
2
votes
1answer
257 views

How can I synchronize and backup a large number of git repositories?

I have a number of git repositories which I would like to keep synchronized and backed up. By synchronized, I mean that I work off of several different computers and want to always use the latest ...
2
votes
1answer
971 views

git - recover deleted files from a prior commit

I accidentally deleted some files in a prior commit and would like to recover them. How can I do this? I ran this and found exactly what I was looking for: git whatchanged --diff-filter=D At the ...
2
votes
1answer
126 views

Git SVN rebase to tags only

I'm extending an open source project with additional functionality. So I'll be basing my code on the released version of the source code. The open source project uses SVN and I uses Git. How would I ...
1
vote
1answer
11 views

Issue on github stays closed after I deleted a pushed commit

I closed an issue via commit message of a commit. But then I decided to revert the pushed commit with the git rebase command. Deleting worked fine; gitk shows the cleaned history as intented. ...
1
vote
1answer
45 views

Make Git Bash open to root directory from custom link

I'm using rainmeter to make a custom dashboard for windows and ran into a problem making a custom start button for git bash needing it to open to my root directory. The odd part is I have gitbash ...
1
vote
1answer
164 views

How to do full version control on OneDrive (with git?)

I'm using OneDrive to store all sorts of files (not just Office files). Unfortunately, versioning isn't supported except for Office files. I'd like to do this manually, with git or svn or anything ...
1
vote
1answer
60 views

How to push changes from a live deployment web server back to the git repository

I'm working in an environment where the developers work directly with script and image files on the live deployment web server. This is scary and has caused a few, though so far surprisingly few, ...
1
vote
1answer
50 views

git ssh store password

I am using GIT via SSH using password-based auth (publickey is not supported due to server-side encryption that uses user password as encryption key). Is it possible to store the password locally ...
1
vote
1answer
359 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
844 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 ...
1
vote
1answer
188 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 ...
1
vote
1answer
715 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
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 ...
1
vote
1answer
124 views

How to setup git for RStudio projects on shared Windows folders

I have all my RStudio projects in a shared Windows folder, say //server/share. I can successfully create a project at //server/share/project, and when I do so in an empty folder RStudio populates the ...
1
vote
1answer
48 views

GitBash to create Git Repository in Network Places?

I'm running Windows XP SP 3 on my computer. I know how to use GitBash, but I don't know how to get to my Network Places area within it so that I can create a Git Repository of a folder within a ...
1
vote
1answer
367 views

How can I set up an http proxy that does its own basic auth on mac os 10.8.5?

Background Info: End Goal: Perform Gerrit code reviews in Rubymine rather than on Gerrit's rudimentary web interface. I attempted to connect with the Gerrit IntelliJ plugin with no success. I ...
1
vote
1answer
401 views

How to set up git repo on my subdomain?

I have a centOS VPS and I have install git. However, I want to set up a git repo on a subdomain on one of the domains hosted on my vps in order so I can push there for testing. How do I do this?
1
vote
1answer
402 views

Git on Windows 8: “git-pull is broken?” error

When I run 'git pull' from TortoiseGit on my Windows 8 machine, I get the following error: fatal: 'pull' appears to be a git command, but we were not able to execute it. Maybe git-pull is broken? I ...
1
vote
1answer
180 views

Use Ruby with no-root user in Gentoo

I am just started to update my Gitlab on Gentoo server (4.2 > 5.0). For new version Gitlab need to use Ruby with user 'git'. # check ruby version for git user ( 1.9 required!! ) # gitlab shell ...
1
vote
1answer
380 views

Gitorious can not connect to Active Directory (authentication.yml)

I have set up Gitorious. With the local database, everything worked fine. All my log and configurationfiles are included. The problem is when I want to visit gitorious.localdomain when I have ...
1
vote
1answer
584 views

Removing commited versions from git history

I want to permanently delete an old revision (or revisions) of single file from Git. Specifically, I want to delete from my public git server repo my initial published version of one single file, ...
1
vote
1answer
2k views

Can't clone from Bitbucket - Get stuck at “Cloning into…”

Maybe you can help me out. I have a server which I'm accessing thru a SSH tunnel. On this server, I want to clone a git repo from bitbucket, but bitbucket uses Port 22 as well, I assume. So how can I ...
1
vote
1answer
38 views

Git find line# of change

I want to find when the last time a specific css property was removed in source on my current branch (master). I wrote: git log -Smystring --source It gave me a hash. I fired up gitk and pasted the ...
1
vote
1answer
144 views

Git says branches are up to date when they are not

I have two branches: 1.0, and IE-Fixes. I have no uncommitted changes in IE-Fixes or 1.0. Whenever I try to merge IE-fixes into 1.0, I keep getting told that it is up to date, but I know by looking at ...
1
vote
1answer
537 views

Show git diff HEAD~1 of file not touched in recent commits

In Git, to see the differences with a previous commit I run this: git diff HEAD~1 To see the commits related with a single file I would run this: git log --oneline file But if I run the ...
1
vote
1answer
474 views

How to properly copy/paste code from .pdf to a new file open on terminal?

I have a pdf containing the following code: #!/bin/sh echo echo “**** Pulling changes into Dev [Hub’s post-update hook]” echo case “ $1 ” in If I copy and then paste that code on my terminal, after ...
1
vote
1answer
112 views

Why is a branch not displayed in Msysgit?

I have a branch called "develop" in my repository (as confirmed by git branch -a). However, I do not see it in the history view of Msysgit. Is there something special about this branch that causes ...
1
vote
1answer
897 views

Git pull/fetch doesn't seem to work

I am using git over hamachi vpn and am able to clone the remote repository. However, git pull/fetch fails after hanging for a long time. The error message displayed is: Write failed: Broken pipe ...
1
vote
1answer
486 views

Can I recover history for a SVN repo from a local git-svn repo?

Our development team is currently using SVN to manage our web application development. The developer managing the SVN server is trying to migrate it from an older Win XP server to another server, but ...
1
vote
1answer
214 views

Good idea to split my personal git repo up?

I have many files in my home directory under git version control. My emacs setup, zsh source files, PhD thesis, etc. It's all in one huge git repo at the root of the home directory. (Of course the ...
1
vote
1answer
182 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 ...
1
vote
1answer
348 views

Problem using Git and CVS

I'm trying to use Git at work on Windows using msysgit (though Cygwin), but we are stuck with a central CVS repository. So what I have done is made my CVS working folder a Git repository as well. So ...
1
vote
1answer
299 views

Running git-svn with cron results in garbage in .git

I've setup a git-svn repo with cron to fetch from the svn repo daily. I have a script to do the fetching, and this is what is invoked by cron. Everything is fine with the repo, and the script works ...
0
votes
1answer
8 views

Eclipse IDE Git client - pushing code to github

I tried to push my code to github (by the eclipse) , and I encountered a problem. I did the following steps: On my project (in eclipse) : right click > team > share project > click on "git" > next. ...
0
votes
1answer
23 views

Git over Bitvise SSH produces git-upload-pack error

I have been trying to set up a simple SSH server on my PC to use with Git. The idea is to have a git repo on my PC and push any work I do from my laptop when outside. Both machines run Windows 8. I ...
0
votes
1answer
49 views

Git is in the PATH, but is not being recognized as a command

I've recently reinstalled Git, and I just can't get it to run off the native Windows command prompt anymore. I'm sure it is in Path environment variable, as you can see: C:\Users\Ult>where git ...
0
votes
1answer
13 views

How to merge a git repository once split off without history

I have a master git repository, and another repository, that contains code that once was just copied from the other codebase without history, but then versioned by git again. So the second repository ...
0
votes
1answer
109 views

CentOS yum — pre-existing rpmdb issues

I'm trying to install git on a developer box and I get the following: You could try using --skip-broken to work around the problem ** Found 3 pre-existing rpmdb problem(s), 'yum check' output ...
0
votes
1answer
10 views

zsh git completion reports _git:4113: bad set of key/value pairs for associative array

I have installed zsh and git on SLES 11 SP2. When I try to trigger an auto complete for a git command I get the following error message: zsh git completion reports _git:4113: This is my .zshrc # ...
0
votes
1answer
43 views

.odt vs .fodt: which is most space effective for git repositories?

Which is most space effective for git repositories: LibreOffice/OpenOffice .odt files or .fodt files? I think that it should be .fodt, since with the uncompressed XML format .fodt the repository ...
0
votes
1answer
41 views

Github let me commit as another user

I'm learning how to use Git, and I've noticed that there's no control over the user.name and user.email when commiting. For example, I'm inside my repository. I change my local config, $ git config ...
0
votes
1answer
77 views

How do you stop or prevent gitlab from running on startup?

I've installed gitlab on Ubuntu 14.04, from the following deb file: gitlab_6.9.2-omnibus-1_amd64.deb It works beautifully. But I want to perform some maintenance on the box without gitlab running, ...
0
votes
1answer
72 views

Daily crontab with hg, git and svn

Hello I have made a script that updates some repos from git merc and svn, then updates a git repo. The script works manually but doesn't work in crontab, here is the script: #!/bin/bash cd ...
0
votes
1answer
27 views

When downloaded code from SourceForge does not reflect the latest edits, what could be the issue and how can I solve it?

In the following sourceforge hosted libdc1394 library, Damien Douxchamps correctly added some lines of code to /usb/control.c on 2014-3-6. The latest 2.2.2 package of this library, was modified and ...
0
votes
1answer
66 views

Git: Put an existing repository on a shared server

I've tried to follow the instructions from the official git documentation to put an existing repository on a shared server. But when I try to clone the repository on the server I get an error. Can ...