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

How can I upgrade Git via Chocolately from within Git For Windows?

I use Chocolatey to manage as many Windows applications as I can, including Git. I use Git For Windows (git-cmd.exe) as my default command prompt. But this means that if I do a choco upgrade all -y ...
0
votes
0answers
16 views

Is it possible to create a git repository in home network for cross platform?

At home I have a Mac Mini that handels backups and works as NAS. Normal Mac users can connect to the server to upload & download files or stream media from it using plex. Right now I have a ...
1
vote
0answers
57 views

Git for windows: fatal: open /dev/null or dup failed: No such file or directory

After some weird bug (it happened a while ago, so I don't know what caused it) this started to happen to me. Every time I try to use git on windows (installed 2.6.2 x64) I get: fatal: open /dev/null ...
0
votes
0answers
7 views

Is it a good idea to use git for configuration file version controlling?

I use Gentoo Linux and it has rather complex configuration. My question is it wise to use git for version controlling my config files? I have some git repos in my home, my guess if I put /home/** to ...
1
vote
2answers
5k 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 ...
-1
votes
0answers
13 views

Git restore files locally deleted not committed yet

I'm new to git and accidentally deleted all my local files on my desktop and library. I have not committed it yet. How do I restore the files back ? The current git status is : HEAD detached at head ...
0
votes
1answer
18 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
5 views

Deploy Git repository on remote server

I have Bitbucket set up, and files go from development environment to Bitbucket just fine. I cannot figure out, after many hours and a lot of different information I have found, but I cannot figure ...
0
votes
0answers
8 views

adduser with custom conf file: enable all users in group to read, write and execute

I am trying to enable apache to create new users for git groups, repositories and ssh access. I've managed to get apache to add users, but now apache cannot move, read and write in the home dirs of ...
0
votes
0answers
9 views

How to link a card (tracker Kanban Task) to a git commit?

I wanted to know if there is a possibility to link a commit to a card (tracker Kanban Task). Because I wanted to retrieve the commit which resolved the bug.
0
votes
1answer
21 views

Basic setup guidance needed

I set a CentOS to run our company website using Apache. Apache runs as user apache. Now, to update our website code using git, I set a user say sumit, and create a shell script that does git pull (I ...
0
votes
3answers
335 views

Git has taken over my Mac

When ever I open terminal it goes to a "git" window and git is running in my activity monitor and about 80% of the cpu. When ever I force quit it in the activity monitor, it just pop's back up in ...
0
votes
1answer
561 views

How can i exclude hostnames for using the default-proxy in git?

Is there a way to exclude the default-configured http-proxy from beeing used when checking out from local(corporate-network) git repository? We have a git repository that is only accessible when not ...
0
votes
0answers
13 views

ignored files are deleted

I have a live server where i have some config files that i have deleted in my master branch and added to .gitignore. When i now pull from master to live server all config files get deleted. Is there a ...
-3
votes
1answer
21 views

Github Clones: Where Do They Belong? [on hold]

Github Clones: Where Do They Belong? Where should I store all my git clone repositories? Obviously, I can put them anywhere I like; I'm just not sure where is best. Typically, they all just end up in ...
0
votes
0answers
10 views

Bonobo git server: How to do an incremental backup of all repos

We have Bonobo git server running on Windows server and have to copy all repos to another Windows server, so we can restore Bonobo git server even after our office has been burnt to the ground. We ...
3
votes
0answers
34 views

Migrating a git repo to AWS CodeCommit

I've followed the steps here and here. When I run the below commands I get: git config --global --edit displays an edit file containing the lines in the setup guide aws configure shows the tail end ...
1
vote
5answers
3k views

Cygwin cannot create .ssh

I'm having some trouble using Git with cygwin. "Could not create directory '/home/Craig/.ssh'. The authenticity of host 'github.com (207.97.227.239)' can't be established. RSA key fingerprint ...
3
votes
1answer
17 views

How can I cache Yubikey/U2F credentials when authenticating over SSH (specifically Git)?

I've set up my GitHub account to use U2F using Yubikey (all over SSH) but as I also use a Git bash prompt, so every time I use my terminal, I'm prompted to touch my security key. I don't quite ...
3
votes
4answers
1k 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
1answer
25 views

windows ssh doesn't accept passphrase

I've installed git-for-windows and generated a ssh key with PuTTYgen (with passphrase) and stored it in c:/users/username/.ssh/id_rsa. If I try to log in with putty and enter my passphrase and it ...
3
votes
1answer
4k views

Downloading big Git repos on Windows without getting “out of memory”

When I try downloading or cloning a large Git repo I keep getting an "out of memory" error like so: error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: aborting due to ...
0
votes
1answer
24 views

Git. How can I add folders and files under version control

I've forked a remote Git repository, so I get it on my PC. I've added two folders and two files but Git doens't recognize commit. I try to launch this command: git commit -m "my message" but my ...
0
votes
0answers
15 views

Parallels VMWare Fusion git repo on host machine slow performance

I started evaluating Parallels and VMWare Fusion to be able to use Visual Studio from my mac. I discovered, however, that both use network shares as a way to share files between Host and Guest OS. I ...
-1
votes
0answers
7 views

How to create better Intellij (Web/PhpStorm) precommit messages

I was wondering about how to create better, readable message dialogs in Web/PhpStorm when I run a precommit job with output. E.g.: In my case there is a linting job with is started before each commit ...
53
votes
8answers
69k views

How should I set the PATH variable on my Mac so the Hombrew-installed tools are found?

Trying to set up Homebrew on a new Mac (on previous Macs I would install packages from source). The first package I tried to install was Git: $ brew install git Installation went OK, but which ...
1
vote
1answer
252 views

Editor for 'git bash' on Windows (editor for mingw/msys+mintty)?

I am using 'git bash' for Windows (from 'git for Windows') which in turn consists of mingw+msys and a mintty. This mingw installation contains a 'vi' editor which works in the mintty. Good. ...
0
votes
0answers
21 views

Will adding SSD to NAS significantly improve Git performance?

I run a QNAP TS-470 Pro with three out of four HD slots equipped with WD Red SATA 6Gb/s 4TB drives. They are in RAID 5. On there, I have a Web volume running Apache. I use this as a development ...
0
votes
0answers
23 views

Downgrade git on Ubuntu 14.04

I want to downgrade git to 2.6.5 with apt-get after accidentally upgrading to 2.7.0. How is it done?
0
votes
1answer
71 views

Tuleap git plugin

I just installed Tuleap version 8.7.99.12. on CentOS 6.7. My git version on CentOS is 1.7.12.4. In Tuleap Admin panel I installed Git Plugin 4.89 and enabled it! In my project admin section I choose ...
0
votes
0answers
6 views

Make gitk with path argument show all files

I am running gitk with a path argument to only show commits that touch a particular file: gitk -- path/to/file However within these commits, in the "patch" view, gitk only shows the changes to the ...
1
vote
1answer
34 views

Git: show inline diff within context of full file

How can I view the full contents of a file, at a given revision, with 'inline' diffs; i.e. new lines prefixed with plus, lines that were removed prefixed with a minus, etc?
3
votes
1answer
5k 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
1answer
30 views

How to emulate a private IP address for local Apache webserver?

I am working on two seperate computers (office PC and home laptop) on the same project. It's a WordPress website. I use Git and Bitbucket for version control and remote branching. On both machines, ...
0
votes
0answers
22 views

How to clone repository on Git for Windows — fatal: repository does not exist

I am using Git for Widows, but I can't clone a repository. Am I typing it wrong? This is how I would do it in Linux. Why is it called '' ? J@JDM MINGW64 ~/Documents $ git clone ...
0
votes
0answers
23 views

How can I get latest changes in my Git branch without it appearing like I'm the one committing those changes and still keeping my pull request clean?

In Git, we have a develop branch from which we make feature branches for each feature. I see two ways of merging the latest changes in develop with my feature branch code. Merge the latest develop ...
0
votes
0answers
14 views

Better way to unexclude single folder in .gitignore

I have several files in my home directory under version control. My .gitignore looks like this: #gitignore * !.vimrc !*/ !.vim/* !.gitignore !.xinitrc !.bashrc to include .vim/* I had to include ...
16
votes
2answers
3k 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
24 views

Is using Git to revision KeePass database file possible?

I'm wondering if it is possible, or indeed a good/bad idea to use Git (or Mercurial) to revision the KeePass database file and share it between my co-workers, for centralized (but distributed) ...
0
votes
0answers
23 views

Git Bash delayed output

I run some program in git bash terminal on windows and redirect output to grep to search for specific keywords. Problem is that the output is delayed, so it looks like the terminal waits for a chunk ...
1
vote
1answer
17 views

Start Git-Flow repo from project dir or home dir?

I am using Git Flow and it is not clear from the documents whether I call 'git flow init' from my project root or from my home directory?
187
votes
8answers
161k views

How to tell git which private key to use?

ssh has the -i option to tell which private key file to use when authenticating: -i identity_fileSelects a file from which the identity (private key) for RSA or DSA authentication is read.  ...
0
votes
0answers
30 views

How to configure cygwin git to work behind proxy?

I am using Windows 7 x64. I have installed Git for Windows and cygwin's git. These are the installed versions for Git for Windows: user@machine MINGW64 ~ $ uname -a MINGW64_NT-6.1 machine ...
0
votes
1answer
30 views

GIT warning: unsupported ssl version tlsv1.2: using default

I am trying to clone a git repository and receiving the following warning and error message: Cloning into 'projectname'... warning: unsupported ssl version tlsv1.2: using default * Couldn't find host ...
5
votes
7answers
6k 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 ...
67
votes
5answers
95k views

How to reset master to origin/master?

Can I do following in a simpler way? git checkout origin/master git branch -D master git branch master git checkout master
0
votes
1answer
4k views

Git is in the PATH, but is not being recognized as a command

I've recently reinstalled Git, and I just can't get it to run off the native Windows command prompt anymore. I'm sure it is in Path environment variable, as you can see: C:\Users\Ult>where git ...
0
votes
0answers
12 views

Fail push github with jenkins

I'm struggling to push a commit to my github repository. I just made a fresh new configuration of jenkins in my machine, configured it to download the src of the project from a git server, and now ...
1
vote
4answers
3k views

Which version of Git to use with Windows

I wish to install Git on Windows 7. There appears to be two versions. I will be using it in conjunction with Tortoise Git. http://msysgit.github.io/ http://git-scm.com/downloads An answer on ...
0
votes
0answers
9 views

Make git merge act on paragraphs/blocks instead of lines?

I am using git to manage a "configuration file" consisting of a number of blank-line-delimited configuration blocks of the standard sort like [one] alpha=1 beta=2 Most changes to this file consist ...