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

A lot of commits missing the SmartGit log

I'm using SmartGit on Windows to commit/push to a linux server, where I get the content using the commands git fetch and git reset --hard origin/master. Occasionally, I will add/commit/push some ...
1
vote
1answer
8 views

Git alias does not find the path I supplied

I'm trying set up a git alias because I type this command often: git commit -m 'update' -- hdf5_classification/output To make the alias I am doing: git config alias.up '! git commit -m 'update' -- ...
0
votes
0answers
9 views

Pull and chown from git

I've made a little script that fetches data from my bitbucket.org repository. Now when content gets created or changed the owner changes to name:name. What I want is all files to be chown to ...
0
votes
0answers
9 views

posh-git not reading my profile

I'm using posh-git (part of Github for Windows). I want to set a custom prompt as in this question. However, posh-git is not reading my profile file. I have tried: Running PowerShell as ...
0
votes
0answers
11 views

Can't connect IntelliJ to GitLab Cloud on Windows with SSH

I have been struggling to work out how to connect IntelliJ to my gitlab cloud repository using SSH on Windows. I'm new to all this, I'd very much appreciate someone checking the steps I've done so ...
1
vote
2answers
29 views

SSH-AGENT could not open connection

I try to link my SSH key with SSH Agent. I'm on Windows 7 Pro, and I'm using Git Bash console. I've this folder structure: C:\Users\MyName.ssh\id_rsa Where I've put my SSH key files as follow: ...
0
votes
0answers
14 views

Ssh remote forward over a bastion host

I need to setup a remote forward over a bastion host. Currently my config is this (~/.ssh/config): Host azurebuild HostName bastionhost.net User someuser # 1st option (works fine without ...
0
votes
0answers
6 views

atomic `git push`: don't push tag if branch push fails

I'd like to solve davidchambers/xyz#18. Assuming I have a tagged commit which I'd like to push to a remote repository, this usually works: git push "$repo" "refs/heads/$branch" "refs/tags/$tag" A ...
0
votes
0answers
30 views

How to encrypt data in bitbucket without losing git diff tools?

Based on this question:encrypt files before sending them to cloud. considering openssl: For example when using openssl we can write the files fooenc.sh: #!/bin/sh openssl enc -bf -nopad -pass ...
1
vote
0answers
20 views

How to filter commits by author in SourceTree?

In the branch view of SourceTree, I see all the commits. I'd like to filter the commits to show only the ones committed by me/someone. How can I do this? Thanks.
-1
votes
2answers
26 views

What is better way to use cURL tool on Windows? [duplicate]

What is better way to use cURL tool on Windows? because there is no proper information in official site for client tools on windows environment. I need to do an HTTPS POST to online forms, which is ...
0
votes
1answer
18 views

“Git commit” takes a very long time (> 40 seconds) to open vim. What could be happening?

When I run git commit -m 'some commit message', everything works as expected. When I run vim on its own, everything works as expected. Yet when I run git commit, which launches vim, it takes up to 40 ...
0
votes
2answers
17 views

apt-get error when installing git

I just set up a fresh Ubuntu 12.04.5 server amd64 machine on VirtualBox 4.2 (I was having install issues on OSX 10.10 using 4.3) and I'm able to do apt-get install curl but when I run apt-get install ...
0
votes
0answers
7 views

How to undo a mistaken merge using TortoiseGit

I have a TortoiseGit repository locally, which is also pushed to a remote. There are 2 branches - master (the production version), and CodeFirst (a development branch). Today I fixed a minor bug in ...
4
votes
1answer
44 views

Remove file from git version control without deleting it from the filesystem

How can I remove a file from the git tree without deleting it? It is easy to git add an untracked file to include it by the next commit, however I do not find out how to to remove the file to have ...
0
votes
0answers
9 views

npm install not working since update to mavericks

So I updated to Mavericks and had to reinstall node. i cloned a repo from github that has some private dependencies: devDependencies: { "something": ...
0
votes
1answer
14 views

Attempt to gitolite mirror says “you should pull first”

Some of the repositories we mirror using gitolite are now erroring with: % gitolite mirror push mirror-host repo/path remote: error: denying non-fast-forward refs/heads/feature/FOO-XXX-bar (you ...
0
votes
0answers
11 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
8 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
17 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
13 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
19 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 ...
1
vote
0answers
23 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
20 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 ...
0
votes
0answers
25 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
15 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
18 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
20 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
34 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
18 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
8 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
28 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
13 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
42 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
27 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
16 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
38 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
25 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
40 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 ...
1
vote
1answer
32 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
18 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
25 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
262 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
30 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
76 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 ...