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
0answers
65 views

Java opens a new window when I start it from mingw/msysgit, how can I stop it?

When I launch anything that uses Java, i.e., command lines beginning with java, javac, jar, mvn, etc., from cmd, I see the output in the same window. When I launch them from msysgit's bash shell on ...
1
vote
1answer
613 views

Deleting Git History Prior to a Certain Date

I accidentally committed some sensitive information to a public git repo (yikes!). Is there any way I can permanently remove all history between a certain date range? Should I just delete the entire ...
0
votes
1answer
453 views

How do I set up multiple folders for access on localhost in Ubuntu Linux?

I'm working on practicing my server setup/command line/Git/ruby on rails skills in Ubuntu, and I have set a folder up with Ruby on Rails to do so. This folder has a rails server which can be accessed ...
2
votes
1answer
110 views

Github switch master repository

I've created a new account at github for a company, and I cloned my own repository to that account. However, I would like the repository in the company account to be the master (so my account can ...
3
votes
3answers
10k views

using puttygen generated public keys in unix environment? [duplicate]

Possible Duplicate: How to convert .ppk key to OpenSSH key *under Linux*? (unix, here: ubuntu 10.4) I know how to create ssh key pairs in unix (ssh-keygen) and how to do it in windows ...
1
vote
1answer
122 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 ...
2
votes
2answers
372 views

Saving Git remotes inside the Git repository itself?

I have a few projects under version control using Git. Since it is a distributed version control system, it is very easy to have it hosted at multiple places (GitHub, Bitbucket, Google Code, etc.) ...
1
vote
1answer
938 views

how to make automatic git mirror for hg repo

I've Vim plugin project on GoogleCode using Mercurial, but users wants to have it on github to ease use it as git subrepo (to keep their ~/.vim/ on github with all plugins inside). Personally I ...
4
votes
1answer
1k views

Is gitosis or gitolite necessary to push changes via HTTP/HTTPS to remote git repository?

I have an apache2 server running a virtual host with HTTPS and basic authentication enabled. The virtual host serves GIT repositories via gitweb script. Authenticated users pull repositories from ...
2
votes
1answer
508 views

No arrow/marker in solving merging conflict in GIT

I am currently having a merge conflict, normally I can just manually edit them. But now, my problem is the file is not showing any arrow/marker(>>>>, <<<<< and ====) in which I could be ...
1
vote
1answer
130 views

Git repository migrated from Mercurial shows unnamed branches

https://github.com/lextm/sharpsnmplib/network This repository network graph shows lots of branches (were created in Mercurial), but none of them has a name. Is there a way to add names?
6
votes
1answer
456 views

.gitignoring pdf file only when a tex source is present

I'd like to set up a global .gitignore file in my home suitable for working with TeX files. So typical TeX junk files such as *.log, *.aux, *.synctex.gz would go in it. The next step, however, is ...
0
votes
1answer
187 views

zsh completion for “git log”

When I type: git log p<tab> In Bash it expands it to git log production/master (if there's only one branch at existing production remote). How can I have zsh behave like that? EDIT: This ...
4
votes
2answers
11k views

Git permission denied (public key) error

I have connected many times to github and know about generating ssh keys and putting the id_rsa.pub into github settings. But for some reason with this install I can not get it to connect. I am just ...
2
votes
1answer
1k views

Is there a way to provide GIT password on the windows command line, and to accept the servers RSA key?

I'm running the GIT client "unattended": that is, it's on a build server, so there's no way of responding "yes" to prompts. I can't log in to the build server as the user that runs the build, and I ...
0
votes
1answer
339 views

Merging Database Modifications - CVS

I'm working on a project using git for version handling. What is the best approach to include a mysql database in the cvs? For example, if I checkout the database and install it at home, make some ...
5
votes
2answers
11k views

Unable to “git stash pop” due to conflict

I have a local git repository and had several modified files. Then I needed to quickly produce a fix for something so I stashed my changes (git stash) edited file (vi file) committed (git commit) ...
17
votes
1answer
22k views

Is there way to list all existing repositories using git?

In order to clone a git repository one must have the name of the repository. When working with many repositories it can be hard to remember all the different names, so now I'm wondering if there is ...
11
votes
2answers
20k views

Connecting to github using PuTTY generated SSH key in Windows 7

On an otherwise pristine Windows 7 Enterprise install: Install PuTTY 0.62 Create public/private key pair with puttygen.exe Add public key for pasting into OpenSSH authorized_keys to github account ...
0
votes
1answer
403 views

run program packed in sh file

I downloaded jgit packed in sh file and ran it in mingw. I watched in process list that java process was started just with main class and parameters "c:\Program Files\Java\jdk1.6.0_26\bin\java.exe" ...
1
vote
1answer
81 views

Add svn-repo as branch to git

I have a git repo, but my boss wants to see the code in an SVN incl. commit-messages. Is there a way to add the SVN to git as a branch (like boss-branch), so that I can work with my own branches, ...
0
votes
1answer
558 views

run astyle on all files before git-commit

I use astyle to get my Java and C++ into a unified look. Sometimes I write something and check it into git before running astyle. So I will end up with a commit message like Run astyle which makes ...
3
votes
1answer
285 views

ssh'ing from a machine I've ssh'ed into

I'm trying to ssh into a machine (let's call it B) from a machine (let's call it A), and then run a command on that machine (B) that would usually require entering an ssh passphrase (if you're ...
0
votes
2answers
1k views

Git installation: /usr/bin/ld: cannot find -lz

I'm trying to install git from source as a non-root user. After typing "make" the following error occurs: Link git-daemon /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status I already ...
0
votes
1answer
90 views

How to archive and versionize a filesystem for Windows and MacOSX?

The problem: On a MacOSX-Snow Leopard-Server is a directory structure holding project directories containing (mostly large binary) files. The clients accessing these files via common network file ...
13
votes
2answers
2k views

How to reuse/extend etckeeper's metadata engine for git control of non-/etc filesystems, or extend git natively with said capability?

Overview + question I want etckeeper-like filesystem metadata control for non-/etc, git-controlled directories. Home and web-app directories, among others, are classically sensitive to metadata ...
12
votes
1answer
4k views

How do i get the git pager to clean up screen output after exit?

The pager less doesn't clear the screen as it should do when i use git. I use less all the time and it usually doesn't leave output in the terminal after quit but when less gets executed via git it ...
10
votes
1answer
6k views

SSH config - same host but different keys and usernames

I've set up two GitHub accounts, but I can't get ssh keys to work correctly. I've tried various configs. Host github_username1 HostName github.com IdentityFile ~/.ssh/rsa_1 User ...
1
vote
2answers
2k views

How to clone Git repo on my local server

I'm trying to use Git for the first time (I have used Mercurial before so I know the basic setup). Everything is ready on the server side with the following properties: User name: git Domain: ...
2
votes
2answers
414 views

Custom ssh rules for user

I am running a git server on archlinux. Now I want to give a certain user access to a repository. So I created a user and set its home folder to the repository directory. Now i can checkout the ...
2
votes
1answer
286 views

Is it possible to import history from a svn checkout to a new git repository?

I have a checkout from an svn repository, the host of which I no longer have access to. I would like to import this codebase into a new git repository, but I haven't been able to figure out how to ...
8
votes
1answer
8k views

Cloned GitHub repos ask for a password, while originally created don't

I've just lost a bunch of repositories from my disk, so I've cloned them from GitHub. These are now asking for username and password each time I push something to GitHub. Those that haven't been ...
15
votes
5answers
10k 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 ...
5
votes
2answers
2k views

Installing sha1sum on git-bash (MinGW)

I've been using git-bash on Windows 7 a lot. I gather it is a wrapper of MinGW. It has md5sum but not sha1sum. I'd like to install sha1sum, but I can't figure out how. When I try mingw-get, it says ...
0
votes
1answer
1k views

Setting up Git / Apache on Windows

I'm following this tutorial to set up a personal Git server on Apache on my Windows 7 box. However, when I add the following to my httpd.conf, Apache throws an error when I try to start it. Can ...
5
votes
2answers
417 views

What is causing git byte order error?

I can no longer git svn rebase (using msysgit on Windows 7). The error starts with: Byte order is not compatible at ../../lib/Storable.pm And ends with: Could not unmemoize function ...
0
votes
1answer
370 views

Git multiple config files

As it is told in git-config manual, I have three files to specify git repo configuration: $GIT_DIR/config, ~/.gitconfig and $(prefix)/etc/gitconfig. Is it possible to make git read another config file ...
2
votes
1answer
89 views

Git keeps forgetting the current directory

I've got a git repository, call it myscripts/. Within myscripts/ are subdirectories perl/, python/, and ruby/. For some reason, when I edit code in one of the subdirectories, Git forgets that the ...
1
vote
0answers
89 views

Git for windows xp crashes all the time

I am trying to clone a git repo on windwos xp. I am using GIT BASH. But everytime i try to clone it i get the error as below. I tried to restart my pc but this didn't help. Any suggestions?
3
votes
1answer
778 views

git log behaves like less

git log -{n}, when -n is sufficiently small, doesn't open in less it simply prints it to the screen. That's desirable. git log -1 should not take up the full screen. Unfortunately, in MINGW's ...
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 ...
0
votes
1answer
174 views

git client and rsa authentication

I've installed git client on windows 7 on administrator account. On first pull git asked me if i wanted to add host to trusted locations. After that '.ssh' folder was creted in user home. When i ...
0
votes
1answer
361 views

Is there a way I can manage git on a remote computer using a GUI?

I am trying to find a way to manage a git repo on a server that is on a VPS. I have SSH which is all well and good, but I am looking for some way to use a GUI over a remote connection. Is it possible? ...
1
vote
1answer
125 views

git helper script not being recognized

In git-bash (on Windows 7) I've installed a git helper script in ~/bin/git-script but when I run it I receive the following: $ git script git: 'script' is not a git command. See 'git --help'. Did ...
1
vote
1answer
636 views

fatal: Out of memory? mmap failed: Invalid argument

Upon doing git add . I get the following message - fatal: Out of memory? mmap failed: Invalid argument I am using git on cygwin on Windows 7 What does this mean?
0
votes
4answers
2k views

no gitignore file in new rails app

I created a new Rails app using version 3.0.1 (in order to follow along with a tutorial using 3.0.1), but it didn't create a gitignore file. If I create my own, what ending should I put on the file? ...
2
votes
1answer
2k views

Tell git which private key to use for a user without home folder

I was reading the question Tell git which private key to use, and the answer doesn't apply for a case were the user doesn't have any home directory. We're setting up a Jenkins server right now, and ...
0
votes
2answers
199 views

Alternative means to deleting a git branch (if git branch -d doesn't work)

I use git for software development. I do not use Microsoft OneNote. However, in some contexts OneNote comes up as an option for the right-click menu on things. I accidentally pressed it while ...
1
vote
2answers
4k views

git-svn pass password on command-line

Is it possible to pass the SVN password on the command-line or in a text file? I would like to run git-svn via a script? I know that the username can be passed on the command-line, but is it ...
2
votes
1answer
477 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 ...