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

What is a good fix to have 10 key work correctly with Git?

I have an Apple Macbook Pro V. 10.10.2 (14C1514) with an apple keyboard (with 10 key) I am also running Git with Zshell. When I am using git, the 10 key on my keyboard is not working. However, when ...
0
votes
0answers
7 views

How to find Git commits that share the same tree contents?

I guess I could do a tree-filter and compute it myself, but is there a quicker, native way to find commits that contain the same tree state (same files and file contents)? They are not adjacent so ...
0
votes
0answers
14 views

Mac terminal lost git knowledge

When I opened terminal and went to a git repo, it would automatically show the branch I'm on with a big green check or red X if I had any changes. Logged onto machine today and my bash profile was ...
0
votes
1answer
10 views

How can I make git understand the shortest unique abbreviation for a command?

How can I configure git to recognise the shortest unique prefix of a command, like git does with SHA hashes, or like mercurial does? e.g. git ad should be recognised as git add, or git conf as git ...
0
votes
2answers
15 views

GitHub Mac OS application is launched but its application window is hidden

I just installed GitHub Mac OS application. I do some work with that, closed it and then open it again. After that the application opens but apparently the application window is hidden. I can work ...
0
votes
0answers
9 views

How to store confidential info whilst using dot files framework

I'm trying to come up with a strategy to store my dotfiles in Git. So far, I've create a dotfiles repo on GitHub and I've thrown together an install script which simply clones the repo, then symlinks ...
0
votes
0answers
19 views

Task Manager “go to process” points to the wrong process

This is one of those weird windows things and I'm wondering what even caused this. I was trying to clone a git repo, then closed the console window after deciding against it. The window stayed up but ...
-1
votes
0answers
8 views

Why clone a git repo from backup? [closed]

Why not only unpack the .tar.gz backup? Tutorials instructs making git clone at last step when restoring a git backup done by filesystem copy. Why?
0
votes
0answers
21 views

Unable to git fetch - Connection reset by peer

I have a PHP script handling the automatic deploy to my pre-production server, using Bitbucket's hooks. The deploy script is based on this post. Everything was working fine until this Sunday. Since ...
0
votes
1answer
14 views

Github integration with git command line

In Vundle for vim, plugins are added with the following syntax: Plugin 'user/repo' This works for any github repository, and it makes for a very concise .vimrc. My question is, is it possible to ...
1
vote
0answers
17 views

Compiling this (C++) git repository code [closed]

I'm reading a statistical paper and the author was kind enough to post his code publicly on github at the following link https://github.com/mosco/crossing-probability I have a Windows operating ...
0
votes
1answer
15 views

Git branch: branches not different

For a few days, I have a problem with git. Let's assume I have a branch "master". I create a branch "normal", I "git checkout normal", and then I change my code a bit. If I "git checkout master", ...
2
votes
1answer
30 views

How to tell Git to use a different SSH config file?

I want to specify a lot of options for SSH when Git uses it. We're using ISPConfig, which sets the owner of the web users' home directory to root, which causes a lot of trouble, including that I can't ...
1
vote
0answers
15 views

How to show git branch in Emacs shell

How can I show the current git branch as part of the Emacs shell prompt? For example, I have this in my ~/.bash_profile (I'm on Mac OSX 10.9 Terminal): parse_git_branch() { git branch 2> ...
1
vote
0answers
7 views

Issue pushing git commits with large files to AWS

I'm running Phabricator on AWS and pushing to git over http. If I push commits with large files the push will terminate with an EOF. Originally this was because there wasn't enough memory. I "fixed" ...
1
vote
0answers
21 views

ssh-agent installed with git 1.9.5 faults

I am getting a fault when running ssh-agent from windows 7. I think it could be a permission issue, though UAC is off. ssh-agent.exe SSH_AUTH_SOCK=/tmp/ssh-vDq8tk2Qlatv/agent.10256; export ...
0
votes
0answers
9 views

How to sync specific files in Ubuntu with git or dropbox?

On my development machine, I have some configuration files saved at various locations. I want to save them and sync them somewhere in Cloud so that whenever I need to access the configurations I can ...
0
votes
2answers
39 views

Windows for loop through dirs, run git pull?

From Bash it's simple: for d in *; do GIT_DIR="$d/.git" git pull; done Or: for d in *; do GIT_DIR="$PWD/$d/.git" git pull; done However from Windows Command Prompt it's not quite as simple. I've ...
0
votes
0answers
15 views

How to make a github commit be authored by “unknown”/“unrecognized author”?

For fun I'm trying to create an awful git command called "git shove" that basically does this: git add -A git commit -a -m "git shoved" git push --force I would like it also so that the author is ...
0
votes
0answers
14 views

Changes to be commited half green half red

Last time I used git add . and git status after I got this output: Why is the output colored this way, and why are the paths ordered so oddly? For example: ...
1
vote
1answer
32 views

How do I change the hilighted length of git commit-messages in vim?

I'm of the opinion that the orthodox 50-character limit on git commit messages is absolutely ridiculous. (Primarily because I think using an 80-character wide Terminal in 2015 is equally ridiculous.) ...
0
votes
0answers
15 views

Impossible to clone git repository with www-data?

I´m trying to clone a repo from my php script. I´m using Apache. What I´ve done so far: Fresh Ubuntu 14.04 installation Created ssh key (located at /root/.ssh) Clone to /home/user/ successful ...
0
votes
1answer
37 views

Internal SDD + External SSD (via firewire) RAID 1 and boot drive version control (like system-wide git)

I was thinking in a theoretical realm about a certain use case, and was wondering if anybody has ever experienced anything like this. If I were to set up my internal SSD and an external SSD ...
0
votes
0answers
5 views

How can I see my contributions on github to everywhere except my own repo's? [migrated]

I want to see all contributions I made to others on github, but I do a ton of work in my own repositories so my contributions tab has my commits to my repo's overshadowing my contributions to others. ...
1
vote
1answer
26 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
17 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
12 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 ...
0
votes
0answers
22 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
0answers
21 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
1answer
11 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
1answer
166 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
7 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
29 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
58 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 ...
0
votes
0answers
26 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 ...
0
votes
0answers
15 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 ...
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
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 ...
0
votes
1answer
299 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
36 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
93 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 ...
0
votes
1answer
18 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 ...
3
votes
1answer
144 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
0answers
8 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
11 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 ...
3
votes
1answer
140 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 ...
2
votes
1answer
185 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 ...
3
votes
2answers
81 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 ...
1
vote
0answers
23 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/ ...