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

How to use github via HTTPS?

I'm trying with this to create a simple static HTML website using github. I already created a repository named: "GITHUBUSERNAMEANDREPO". #!/bin/bash git config --global user.name ...
0
votes
0answers
10 views

Using GitHub for Windows with MSysGit

I have both GitHub for Windows and MSysGit installed on my PC. As GitHub for Windows provides its own copy of Git, I feel as if having MSysGit also installed is redundant. However, I enjoy the ...
0
votes
0answers
8 views

Git: fatal: not a git repository, followed by 'Everything up-to-date'

I'm configuring git for web deployment purposes and have had a bear of a time. After sorting out various permissions issues, I got the error "remote: fatal: not a git repository" and then it lists the ...
0
votes
0answers
5 views

tortoisegit create a patch on win7

First time i used tortoisegit to control version. and i needed to create a patch(after my first commit). this how i tried to do. ①Right click on base folder -> tortoisegit -> create patch serial... ...
-1
votes
1answer
22 views

Should I use Git from Windows's command prompt?

I am new to Git and learning it these days .I was installing git and it asked me to choose any of three option that whether I wish to use it through gitbash or through cmd and so on .I was confused to ...
0
votes
1answer
54 views

Gitlab 7.10 install doesn't create proper ssh git user config?

I am setting up a Gitlab instance on my home VM lab and am baffled with the way SSH is configured in Gitlab so I would appreciate some insight into whether I am doing something wrong or is Gitlab ...
0
votes
0answers
20 views

Git Permission Denied (Public Key)

I cannot fetch or pull. $ ssh -vT git@github.com debug1: Authentications that can continue: publickey debug1: Offering RSA public key: usersnewkey debug1: Authentications that can ...
1
vote
1answer
36 views

My computer can't find the git command

I recently installed git on my computer (OSX 10.10.1) and when I run git I get git: error: unable to find utility "git", not a developer tool or in PATH. So I checked, found that I didn't have the ...
0
votes
2answers
12 views

Run git command from an external directory in fish function

In a fish function, can I run a command from a certain directory without changing into it? or Can I run a git command (push) from outside the repository by specifying its path somehow? I'd like ...
1
vote
3answers
27 views

Copy ssh key onto another machine so I can use GitHub there?

I have a remote server. I can already ssh successfully onto that remote server - my key is in authorized_keys on the remote server. Now I want to pull from GitHub directly onto that remote server. ...
0
votes
0answers
16 views

How to setup an automatic git commit?

I have a git repository on my hard drive. At a predefined time, such as 11:59 PM every day, I want an automated commit to be made with the current state of the repository (all modified files checked, ...
0
votes
0answers
16 views

bash completion in msysgit by single or double tab

Single tab used to make bash complete current line, and double tab shown all possible variants. For example, if I have files (or git branches, or whatever is suitable in current context) "abc", "abd" ...
0
votes
0answers
16 views

Issues with git on Hyper-V Vagrant box

I am running Ubuntu 12.04 on a Hyper-V box with Vagrant on Windows 8.1. I can git clone all of my smaller repositories from BitBucket and Github, but I have a repository that is decent sized (>10MB) ...
0
votes
1answer
16 views

Website updating from git (over ssh)

I have a script that I run over SSH, which updates my website from a Git repo. cd website-git git checkout master git pull # Update protected directory rsync -v -a --delete --exclude=db ...
0
votes
0answers
8 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
14 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
12 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
12 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
27 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
36 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
13 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
34 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 ...
3
votes
0answers
41 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.
0
votes
1answer
20 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
20 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
9 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
46 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
12 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
18 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
12 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
18 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
14 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
23 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
28 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
22 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
27 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
16 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
19 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
22 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
37 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
20 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
33 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
17 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
50 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
36 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
42 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
29 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 ...