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
1answer
16 views

Suppress commit-message template with `git merge --squash` or `--no-commit`

When using git merge with an option that suppresses automatic committing (--no-commit or --squash), git apparently always generates its own template for the next commit message; the next git commit ...
0
votes
0answers
14 views

How to authenticate with git?

I have been provided with connection details to a git server: http://hgk:hgk_499@git.server1.org/clients/app_server1.git I have downloaded a git client and after entering the server as: ...
0
votes
0answers
7 views

Deploying Kudu on a server

I have setup a copy of Kudu on my local dev machine, and it works fine providing I run it from Visual Studio as Administrator I would now like to deploy it to our public UAT server so we can use it ...
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 ...
0
votes
0answers
60 views

How connect with Git repository over ssh behind evil proxy

My proxy (192.168.1.1:3128) not allow connection over ssh and I wish work with git repository like this: for clone: git clone ssh://user@server.com:2222/~/repository.git For cheat web forbidden, I ...
0
votes
0answers
11 views

How to delete revert commit history in Git

I committed about 10 commits without any change to the working directory. Like, commit -> revert. commit -> revert and the cycle repeats. All commits and reverts are merged to the public Git ...
0
votes
0answers
13 views

Download multiple branches to the same directory using repo

repo is a python script that manages cyanogenmod source code download. to download cm-10.1 branch, repo command is, cd ~/cm-10.1 repo init -u https://github.com/CyanogenMod/android.git -b ...
0
votes
1answer
7 views

Opening an existing Tower git repo from the command line

I'm running the Tower git client on OS X and want to be able to open it to a repo already on disk and added to its list. Looking at their custom URL scheme documentation, it seems like it might be ...
2
votes
2answers
3k views

Setting up git, path errors when pushing/cloning from local to NAS

I'm setting up a NAS server with Git for the first time, so please forgive the noobish questions (it also means I am super thankful for any detailed explanations you can give me, because I am kind of ...
10
votes
0answers
2k views

GitHub for Windows can not sync to repo while command line tools can

I have my git repos hosted on a server using Gitolite. I can access them using SSH like this and it works from Mac OS X/Linux: git clone git@example.net On a Windows 8 Box I now have installed ...
0
votes
0answers
5 views

How to share private links for markdown formatted view [closed]

I write some articles in markdown, they are private and I want to email this to people for viewing. Github or Bitbucket can format these nicely, but they don't provide a private link to share. Is ...
2
votes
1answer
54 views

Atlassian SourceTree: How to change line endings globally?

Is there a way either in Atlassian SourceTree or with my current git host (BitBucket) to change the line endings globally for all my repositories. I think they are currently set to Unix (I think I ...
0
votes
0answers
6 views

Have git push assume -o origin $branch

When I create a local branch with Git, I would prefer to be able to assume that a push will track origin with the same name. Right now, the following: git checkout -b $branch git push Yields ...
0
votes
0answers
6 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
17 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
26 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 ...
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: ...
4
votes
2answers
4k 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 ...
1
vote
1answer
2k 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
9 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
11 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
3k views

How do I pull big repos from git on windows without getting “Out of memory”?

I am using the Git Gui provided with the git client fromt he git website. The cygwin version has the same problem. error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: ...
0
votes
0answers
265 views

Various methods of trying to set up a git diff tool lead to “fatal: cannot exec […] : Bad address”

I'm on Linux Mint 17 64-bit. Just purged git and re-installed with apt. Deleted ~/.gitconfig. Only configuration I do after supposedly fresh install is (while inside a repo) git config diff.tool ...
1
vote
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
14 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
16 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
137 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
17 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 ...
3
votes
1answer
68 views

GitHub windows 7 sh.exe has stopped working

Every time I run an operation from the command line for GitHub for windows I get a popup that says sh.exe has stopped working. The UI seems to work correctly. The command line is using the sh.exe that ...
0
votes
1answer
46 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
65 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
142 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 ...
1
vote
2answers
3k views

How to auto commit to my git repository using cron?

I look into a lot of answers about this subject, but something is wrong here, let me explain. I create this script, to make my cron cleaner :) #!/bin/bash cd ...
0
votes
1answer
17 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
7 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
10 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
181 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 ...
0
votes
2answers
2k views

How do I add as editor Dreamweaver to work in GIT?

How do I add Dreamweaver as the editor in Git? git config --global core.editor??? $ slime README.md sh.exe": slime: command not found
2
votes
1answer
95 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 ...
5
votes
2answers
1k 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
votes
0answers
47 views

OpenSSH for windows using /cygdrive/g/.ssh as home folder

My problem is simple. I just installed OpenSSH ( I also have cygwin, but I need to have the windows command line ssh.exe working ) . When doing ssh -T git@github.com I see that ssh.exe is trying to ...
1
vote
2answers
160 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 ...
0
votes
0answers
14 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
57 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
16 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
10 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 ...