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

How to get git > v.1.8.2 on RHEL 6?

I've just realized that the version of git that ships with RHEL6 is 6 years old. That would be version 1.7.1. This does not support a feature that was added in git v.1.8.2 (which itself is 3-1/2 ...
0
votes
1answer
23 views

Syncing 10 remote repositories to one local directory with 10 projects in it

I have a local directory with ten projects in it. I want to sync all ten projects with ten remote github repositories. How would I accomplish this using git more efficiently than manually pushing all ...
2
votes
0answers
51 views

Git - Git Pull Not Working In Cygwin

Just recently, git in Cygwin has not been behaving correctly. When I try to run a command like git pull it does not show anything about the pull. The git status command works just fine and shows the ...
3
votes
1answer
135 views

Git can't invoke gpg-agent to sign commits

I have Git 2.8.1 running in Ubuntu 15.10, and I've set it up to GPG sign all of my commits using my keybase key. It used to work well. At one point, I'm not sure what caused it, I started getting ...
0
votes
1answer
149 views

How to switch git user at terminal?

I am trying to push a project to a remote repository from the command line. From inside my local directory, I hit: $ git push and obtain the following error: remote: Permission to username1/repo....
0
votes
1answer
19 views

Show git diff with GITG on Fedora

I am using this tool https://wiki.gnome.org/Apps/Gitg/ as a git GUI. In Ubuntu when I open the application inside a git project is shows the unstaged/unadded files in the top left and I can easily ...
0
votes
1answer
56 views

git commit hash in zsh prompt

I'd like to see the current commit hash (just the first 8 or so characters) in my zsh prompt. I have this so far: https://github.com/calebmeyer/cpm-zsh-theme/blob/master/cpm.zsh-theme#L3 ...
0
votes
0answers
13 views

Limit POST method of Apache by location

I have tried to set the settings in Apache for limiting the POST method according to location as below <Location /Project/ModuleA> AuthType Basic AuthName "GIT Repository" AuthUserFile ...
0
votes
1answer
59 views

How can I add git.exe to Visual Studios command line path?

I've just set up a new computer. When I installed Visual Studio I didn't install Git because I don't want to use it from within VS. Instead I installed Git for Windows. However, a script we use to ...
7
votes
2answers
761 views

Can you GPG sign old commits?

Git now has the ability to sign commits with git commit -S, which is great, but sometimes I forget the flag to commit, and sometimes I mail myself patches which I apply with am, and that command doesn'...
1
vote
0answers
29 views

Git inside git: is this a solution?

Consider the following directory structure: ~ | ---~/everything | ---.gitignore | ---.git/ | ---code/ | ---project1/ ...
1
vote
0answers
19 views

GitHub error on new repository

I am using Github for the first time in android studio. I shared the project on github using import into version control but I am unable to see my files on the repository created. Please help Android ...
1
vote
1answer
32 views

git pull -u without ref name works only with remotes other than origin

When checking out a new branch (git checkout -b $BRANCH), I often want to push it to a specific remote using the same branch name. I have two remotes, one named “origin” and one named “mine”. When I ...
0
votes
1answer
26 views

ssh authentication works, but git doesn't

I am using cygwin on Windows 10. When using ssh user@server.com ssh correctly loads my id_rsa, asks me for the passphrase and then authenticates me on the server. However, when I try to git push ssh:...
0
votes
0answers
31 views

Setting up authentication and authorization for Git on Windows

We have simply installed the Git for Windows on our Windows server and also installed Apache 2.4 for Windows. Say we located our Git Repository at D:/GitRepos folder. And the project hierarchy as ...
0
votes
1answer
55 views

Git GUI on Windows not seeing .git folder from Samba share

THE SCENARIO I am using Vagrant,Windows environment and running Ubuntu inside the virtual box for my development work. I have setup an instance of Samba server and I run the I access the virtual ...
0
votes
1answer
53 views

git-send-email Causes “Must issue a STARTTLS command first” Error

I am attempting to send a patch with git-send-email through my Postfix mail server. Unfortunately, whenever I do, I just get this error spat back to me: <recipient@example.com>: host domain....
0
votes
1answer
10 views

What is the format of git p4.largeFileExtensions for multiple extensions?

What is the correct format for this config? My team is transitioning from P4 to git with LFS and I want to maintain commit history when we do so, so preconfiguring the extensions prior to checking ...
9
votes
3answers
2k views

Can I delete my fork before the pull request gets accepted? [closed]

I made a fork of a project on github, did a small correction and submitted a pull request. However, from every pull request “in line”, I can see that this developer will take a long time before ...
1
vote
2answers
255 views

Tmux: Automatically run a Git command whenever I switch to a pane?

I would like to have a tmux pane where everytime I switch to it runs a command like git diff so that I automatically see the new version of the output. Can this be done?
0
votes
2answers
51 views

As an unprivileged user, how can I configure sshd to allow only specified commands to be executed when it's autheticated with a password?

I usually log in to a SSH server (where I'm an unprivileged user) by using my public keys. I also use authentication by a password when I use the server as a git-annex repository. What I want to do ...
0
votes
0answers
29 views

Launch ConEmu with Git Bash as default, when using running cmd.exe

I currently have ConEmu launching when I run cmd.exe, which is great. But it is using the Windows command prompt when doing so. If I run ConEmu itself, it starts off with Git Bash (like I intended) ...
0
votes
1answer
35 views

Launch ConEmu with Git Bash as default, when running cmd.exe

Somehow I wasn't logged in to my account, so I have to repost my question. Sorry about that. What I currently have: When I open ConEmu.exe, it opens Git Bash When I run cmd.exe, it runs ConEmu but ...
0
votes
0answers
11 views

How to make ConEmu execute .sh in the same window with Git for Windows?

I'm using ConEmu on Windows with Git for Windows installed. When I try to execute an .sh script, the software starts an instance of Windows' default console and executes the script there. How can I ...
-2
votes
2answers
338 views

Setting SSH for windows Permission denied (publickey)

I am following the thread to set up SSH But I get below error on 5th step $ ssh -T git@github.com Warning: Permanently added the RSA host key for IP address 'xxx.xx.xxx.xxx' to the list of known ...
0
votes
1answer
385 views

OSX 10.11 Bad SSH2 KexAlgorithms '+diffie-hellman-group1-sha1'

I have updated my /etc/ssh/sshd_config file based on the answers provided here - OSX 10.11 enable ssh diffie-hellman-group1-sha1 http://stackoverflow.com/questions/26424621/algorithm-negotiation-fail-...
8
votes
3answers
7k views

Trouble getting latest version of Git

I am using Ubuntu 10.04 LTS. I'm looking at using git as source control for personal projects and Github as a remote repository. I was having trouble pushing a commit to my remote github repo getting ...
0
votes
0answers
40 views

Use PuTTY with Git for Windows in cmd

I am using git in cmd. I want it to use PuTTY for SSH connections but it uses OpenSSH instead. I set the GIT_SSH variable to plink.exe. I tried reinstalling Git and selecting plink during installation....
1
vote
1answer
164 views

Git clone “checking connectivity” - what is it?

When doing a git clone of a repo over SSH or HTTP, you get output that looks something like this: Cloning into 'some_directory'... remote: Counting objects: 7, done. remote: Compressing objects: 100% ...
1
vote
1answer
177 views

Git GUI on Windows not working with self-signed SSL certificates - gives errors (fatal: SSL certificate)

I'm using git GUI on Windows 7. I need to clone the repository and simply want to just use it. However, when cloning, pulling, pushing to/from repo with self-signed certificate, I'm getting this ...
7
votes
3answers
7k views

Git Syntax: How to archive a repository?

So I have a git repository on my local computer that I want to archive (zip is fine) and upload to my server. Once the file has been uploaded to the server, I will extract the archive. I don't need ...
11
votes
5answers
6k views

how do I add the 'tree' command to git-bash on Windows?

I'm using git-bash on Windows 7. I'd like to see a tree of the current directory. However: jcollum@DEVELOPER01 ~/Dev/express_coffee $ tree . sh....
0
votes
1answer
2k views

Ubuntu:ssh: connect to host github.com port 22: No route to host

I am using Ubuntu 11.10 and followed the help doc at github.com to set up git and connect to github but when I got to step 5 of the set up ssh keys section :Test everything out , When I used this ...
1
vote
0answers
78 views

502 Proxy error when connecting a GIT repo with Openproject

I've recently installed Openproject in a Linux box (Ubuntu 14.04) and I wanted to link a Project to an already existing GIT (bare) repository. To do this I've followed the configuration instructions: ...
1
vote
3answers
754 views

Brew update: error: Your local changes to the following files would be overwritten by merge

I'm very new to homebrew and git. I've done changes to httpd24.rb formula which is in homebrew/apache tap. (Just added the --enable-so configuration argument in the existing formula file) Now when ...
0
votes
0answers
50 views

Why can't I override mkdir with Git for Windows's version?

I've installed Git for Windows with the "overwrite native commands" option checked. I've checked my PATH: C:\Users\Domenic>echo %PATH% C:\Program Files\Git\usr\bin;C:\Program Files\Git\cmd;C:\...
0
votes
0answers
25 views

Keep track of linux terminal commands in git

Is there a way we can keep track of commands executed in linux terminal in git? I would like to commit each command entered.
13
votes
3answers
14k views

How to view only the unmerged files in git after a merge failure

While merging some of the files failed to merge. git status shows both the successful and failed merges. How to view only the unsuccessful merge files(conflict). Currently i am using the ...
5
votes
2answers
3k views

Add a parent directory to a git repositoy

I have created a git repository for the C implementation of a program. I am about to add a Matlab implementation and I would like to have a single repository with two subdirectories: one for the C ...
7
votes
4answers
11k views

How to clone a git project from the website to your desktop?

When I try to clone a git repository to my Desktop it always takes me to the download page but it is already downloaded. How can I clone it directly from the browser to PC ?
0
votes
0answers
31 views

Symantec cloud antivirus now blocks Git, SSH, Cygwin

I run Symantec Cloud Antivirus on Windows. Recently, after an upgrade, it started blocking SSH, Git, Cygwin. In particular, it deletes git, says it fails a SONAR Heuristic, and doesn't seem to give ...
2
votes
0answers
470 views

SSL error when connecting to git from Mac OS X 10.11.3 (El Capitan)

When I try to clone / pull / fetch from a git repository via https from a Mac System I keep getting an error: error: RPC failed; result=56, HTTP code = 200 fatal: The remote end hung up unexpectedly ...
4
votes
0answers
25 views

Why symlinks can slowdown git?

I keep my current working project on SSD drive but git folder inside is symlinked from another (encrypted) disk with mklink /J /D. SmartGit warned me that using symlinked git folder may have a ...
1
vote
2answers
6k 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 /home/valter.silva/Development/git/...
1
vote
0answers
134 views

“git mv *” returns “bad source” in Powershell

When inside a git repository in Powershell or CMD, issuing git mv * whatever will return fatal: bad source, source=*, destination=whatever This works fine when using MSYS (Git Bash).
7
votes
2answers
11k views

Git (Windows): Newbie: Can't commit new repository … “did not match any files(s) known to git”

I just installed Git on Windows XP Pro and I'm trying to apply it to my project. I'm trying git-ize a legacy directory structure: C:\src>git init C:\src>git add *.c C:\src>git commit -m '...
0
votes
0answers
53 views

“fork: Resource temporarily unavailable” from git in MacOS El Capitan

Sometimes when I am using Git and cannot do a sudo command, it reports fork: Resource temporarily unavailable What does this mean, and what should I do about it?
0
votes
0answers
6 views

Apply patch transparent on local branch

I'm working on a master branch regulary, pushing to and rebasing from origin/master The issue I have is that I often apply a local patch to the branch for adding some developer tools that is only ...
1
vote
0answers
65 views

Jenkins - ssh credentials and editing credentials issues

Can't connect to bitbucket through ssh in Jenkins I can get it to work using https and providing my bitbucket account password, butI can't get it to work using an ssh key and ssh passphrase. I have ...
0
votes
0answers
7 views

Bash autocompletion for git checkout when file is missing

Let's say you have a git directory with: foo/bar.txt foo/qux.txt and you rm foo/bar.txt. Is there any way to get bash+git to autocomplete when you type git checkout -- foo/b<TAB>?