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

Custom git init

Is it possible to create a custom git init with certain templates in place? What I wish to do is to have each of my projects have a post-commit hook command that pushes the project to my personal ...
0
votes
1answer
32 views

Can i repo initialize multiple source code branches in one directory?

repo is a tool that manages download of android source code from github. To download a branch (say b1) source code, we do,, repo init -u url -b b1 I want to download multiple branches (gingerbread, ...
0
votes
1answer
95 views

How to get latest version of git?

I am running ubuntu 14.04 LTS, need to install git 1.9.5 or above. I did sudo apt-get install git then ran git --version and it shows I currently have 1.9.1 installed. Git download url shows latest ...
11
votes
1answer
2k views

How can I selectively disable zsh's version control integration when my CWD is on a remote filesystem?

I'm running zsh on OSX and on occasion I have to work on a mounted sshfs volume. However, git is REALLY slow over sshfs mounts. My prompt makes use of the vc mode stuff that zsh provides built in, but ...
5
votes
2answers
5k views

git pull does nothing / git push just hangs / debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

I had an issue in ubuntu 13.10 and 12.10 where attempting to connect to github (git clone / pull / push or anything) would fail with no output. I checked my /.ssh directory for config and any ssh ...
2
votes
1answer
3k views

Kaleidoscope for git difftool

I tried using kaleidoscope for git difftool to compare two branches. So I installed ksdiff and setted it like follow in my .gitconfig [diff] tool = kaleidoscope [difftool "kaleidoscope"] ...
0
votes
0answers
46 views

In Jenkins, what should I specify for git branch, if I want feature aware SCM polling?

I want to use the Feature Branch Notifier Plugin so that Jenkins automatically runs mvn test whenever a git feature branch receives a new commit. Since the job is effectively polling for all ...
2
votes
2answers
1k 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
2k views

Yum Error Installing Git from kernel.org Repo

I want to install the latest version of Git using yum and the RPM repository on kernel.org, but adding the repo to yum.repos.d causes yum to fail with checksum errors. The prevailing solution to ...
0
votes
0answers
20 views

Git Extensions advanced filtering displays wrong results (commits that don't match my filters)

I'm using git extensions to do a file filter (using version 2.48). Right-click -> View -> set advanced filter I check only: ignore case file filter branches (is checked by default) but i have ...
2
votes
1answer
2k 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
15 views

How can I fetch the next N commits using git?

I am working remotely from a country with unreliable internet, and the full git fetch is just too big to actually work (it hangs indefinitely until timeout). Is there a way to tell git to fetch only N ...
0
votes
1answer
17 views

Malloc failed upon git pull

I get this error trying to git pull: $git pull origin master remote: Counting objects: 91, done. remote: Compressing objects: 100% (79/79), done. fatal: Out of memory, malloc failed (tried to ...
4
votes
5answers
4k views

Setting up SSH/Git on Cygwin yields “Bad permissions on ~/.ssh/config”

I'm attempting to setup Git with OpenSSH under Cygwin. I almost got everything setup. I have the agent and public key and all that.. but now I get this really weird error: $ git pull -u origin master ...
0
votes
1answer
501 views

Can't install Ruby 2.2.0 using rbenv

I installed rbenv from GitHub: git clone git://github.com/sstephenson/rbenv.git ~/.rbenv git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build I’m trying to install Ruby ...
0
votes
1answer
78 views

Git push fails to find repo and fails with exit code 128

I'm using CentOS 5.5 and need to install git server on it. Installed git and set home directory: yum install git mkdir -p /home/git cd /home/git/ chmod 777 -R . # yeah I know this is evil, but I ...
0
votes
1answer
132 views

SSH into Homestead Using Git Bash on Windows Characters Not Displayed Properly

After running: homestead ssh and logging into the VM everything looks okay until you're typing certain commands or viewing command results where the characters aren't rendered properly so you get ...
3
votes
2answers
98 views

Simple read-only access for git repository over http: Will it just work?

I use gitolite to manage git repositories, that are available over the internet using SSH and private keys. I want to provide read-only access to some of those repositories from my LAN. I know that ...
3
votes
1answer
148 views

Is it safe to install newer Python and Git versions from source?

I wanted to install newer versions of Python and Git to my system. I eventually used the commands below to compile and install new versions. However, I was informed that it would have been better to ...
0
votes
1answer
19 views

Linux: developement environment for testing already installed application

I have cloned repository with git, that I would like to modify and test. However I have already installed this application via apt-get and I wouldn't like to make conflicts. What are good practices to ...
0
votes
0answers
15 views

Changing Git Location on Mac OS X

I have a version of Git (1.9.3) already installed on my computer at /usr/bin. This version was installed (if I remember correctly) by XCode. I would like to install 2.2.1 (the download version from ...
0
votes
0answers
13 views

Command to search for a string in all of the previous commits of a user

I changed something about 1 week ago and I realized that it impacted something today. But the question is I have no idea what I changed, but I do have a hint of what I changed. What is the command ...
0
votes
1answer
363 views

Github for windows not working after install

Today I have installed Github For Windows. I had installed Github For windows earlier and at that time it worked fine but due to some reason I had to uninstall it. Today when I installed Github again ...
2
votes
1answer
285 views

dyld: Library not loaded: /usr/lib/libcurl.4.dylib curl SSL error

I'm not sure what happened to my system but I am having an issue with dyld/curl, affecting my overall computer performance. I am on Yosemite. I have a feeling it's the Conda openssl. How do I just ...
6
votes
2answers
2k views

Is it possible to have git gui / gitk look good on a retina Macbook Pro?

I really love git gui and gitk. They work very well for me and I know exactly how to use them. Sadly, they look really pixelated and ugly on my retina macbook. Since it's just text and chrome it would ...
1
vote
2answers
174 views

What is the usual procedure for working with remote Git repositories? [closed]

A slightly open question regarding best practices, I can find lots of functional guides for git but not much info about standard ordering of operations etc: Whats the standard/nice way of working ...
1
vote
0answers
36 views

Docker workflow with multiple packages and shared sources

Let's say I want to use Docker for an app, which consists of two parts. These parts are different, but they have some shared libraries. So, I have two folders: part1/ Dockerfile src/ part2/ ...
0
votes
1answer
151 views

Looking for 64-bit msysgit

My git operations are failing when they hit the 4GB limit memory limit for 32-bit processes. E:\source>file "C:\Program Files (x86)\Git\bin\git.exe" C:\Program Files (x86)\Git\bin\git.exe; PE32 ...
1
vote
1answer
29 views

How can I use 'git add' command on a file whose path includes a directory with spaces

I'm trying to use Git Add command to stage a couple of files for committing later. However, I can't seem to add it because Git bash doesn't like a directory with spaces in it. How can get around this ...
0
votes
1answer
12 views

How do I replace two lines each other in editor in Terminal?

I have this: pick 887b66f add 222 Dziewiecsil to flowers new title pick dc331cb new name of beginning commit And I want to get this: pick dc331cb new name of beginning commit pick 887b66f add 222 ...
0
votes
0answers
10 views

Suggestions on how to set up my dev server for dev clients (Linux and WIndows)?

I am creating web intranet systems and have always struggled with developing on multiple clients with moving files and databases over back and forth trying to keep everything in sync. I have now set ...
1
vote
1answer
1k views

Stop Thumbs.db files in certain folders

I'm a big fan of folder+file thumbnailing, so I'm all for thumbs.db files. However, I'm working on a Git project, so every time I commit my git folder to the online repository, some thumbs.db files ...
-1
votes
1answer
21 views

generate an ssh key for all users

I want to generate a ssh key on a virtual server that will be in use for all users. I did created a key for myself ssh-keygen -t rsa -C "my@gamil.com" but it's under my user only. is there a ...
0
votes
1answer
72 views

gpg-agent is not requested in git calls

In git commits (gpg), git command always asks for passphrase while gpg-agent is running. I launch gpg-agent with $ eval `gpg-agent -s --enable-ssh-support --daemon --write-env-file ...
0
votes
0answers
11 views

Git not remembering password

I made a Github repo to manage my dotfiles and figure I should test it. So, I deleted the repo, did git clone REPO and thought it would work. Now, however, if I go into REPO's directory and try to ...
117
votes
4answers
100k views

How to tell git which private key to use?

ssh has the -i option to tell which private key file to use when authenticating: -i identity_file Selects a file from which the identity (private key) for RSA or DSA authentication is read. ...
1
vote
3answers
6k views

Git pulling without root access

On a Ubuntu Server 10.10 box, I seem to require root access to use git pull (in my /var/www directory). error: cannot open .git/FETCH_HEAD: Permission denied. I have tried chmodding 0777 /var/www and ...
0
votes
1answer
25 views

Where do git environment variables go?

When I set an environment variable in git using the export command, where does that variable get stored? It's not in my .gitconfig file, and it doesn't appear to be added to my Windows environment ...
0
votes
1answer
636 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 ...
5
votes
1answer
4k views

Git log alias - fatal: ambiguous argument '%ad': unknown revision or path

I'm trying to use Git Immersion's log alias: [alias] hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short but Git responds with fatal: ambiguous argument '%ad': unknown ...
2
votes
2answers
1k views

git fatal: pack has 1 unresolved delta (index-pack failed)

I have a VERY strange and not so covered issue with a specific Windows Build Server (Jenkins Slave). In Jenkins I have a Job that pulls the latest code from a specific branch. The actual command the ...
0
votes
3answers
2k views

installing GitLab on CentOS7 failing due to create on resource user

I am trying to install gitlab on a VM under VirtualBox running CentOS 7 I am following the following instructions: https://about.gitlab.com/downloads (for CentOS) I configured gitlab.rb to contain: ...
12
votes
3answers
2k views

Rewrite git history to replace all CRLF to LF?

I'm going to transfer a private Git repository from win32 box to Ubuntu. Though I can do a final dos2unix commit, but I'd like to rewrite the whole history, so some Git GUI will display log/diff ...
1
vote
1answer
38 views

Reverse output of a command

I'm trying to get the reversed output from git log --branches --graph --oneline (Sadly you can't pass --reverse to it because it says it's incompatible with --graph) Is there a way to reverse the ...
0
votes
1answer
100 views

windows 7 file explorer crashes after mkdir via git bash

My environment: Windows 7 Git v1.9.0 Steps to reproduce my problem: open a folder in windows explorer right click in that folder and select "Git Bash" execute: "mkdir test" in the git bash ...
0
votes
1answer
136 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 ...
54
votes
3answers
17k 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.
4
votes
1answer
216 views

Tunneling ssh via a SOCKS5 Proxy on Windows

I'm using Windows 7 over my 'restricted' campus network. I use Heroku Toolbelt to work with heroku projects, which inturn uses git and ssh on port 22. However, port 22 is blocked in my campus. Can i ...
0
votes
1answer
171 views

Recover incomplete download in Android Open Source Project

I am trying to sync the following repo repo init -u git://github.com/CyanogenMod/android.git -b gingerbread and then repo sync my problem is that repo sync stuck at fetching projects 99 ...
6
votes
6answers
1k views

Emacs + git: auto commit every 5 minutes

How can I set up emacs to automatically git commit every time I save an open file or periodically?