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

5
votes
1answer
1k views

Gist vs repository on GitHub [closed]

Say you have a couple of projects that you want to host on GitHub, and they're all pretty small (i.e. each one is a single bash script with less than 100 lines). Even though they're relatively small, ...
4
votes
3answers
5k views

Is it OK to copy (not clone) a git repository using basic Unix commands?

I’m pretty new to using git and was wondering if it’s ok to copy a Git repository with common UNIX commands (like cp or tar/untag), rather than through git clone. I’m in the situation where I have ...
0
votes
1answer
11 views

Distribute session-only git configuration on ssh login

I have a bunch of development servers (linux) that I connect to via SSH from linux workstation. On most of these servers I want to use the Git command line interface. I use a set of Git aliases that I ...
0
votes
0answers
24 views

GitBlit folder permissions on Windows

What folder permissions does GitBlit require on Windows on the repositories? I have existing repos which I'm pointing GitBlit to, and I would like to make sure it has read/write permissions. I can't ...
1
vote
2answers
41 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 ...
45
votes
2answers
26k views

Git - List all files currently under source control?

Is there a way to list all files currently under source control in git? (Not just those that have been modified).
1
vote
4answers
68 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
1answer
22 views

Git log does not show user name

My git log command does not show my user name. When I do git log I get: commit c364356360035c33e5f7b596e0bfcbcaf9284252 Author: = <me@site.com> Date: Wed May 6 10:18:51 2015 +0200 When I ...
0
votes
1answer
26 views

SSH config ignoring User parameter on OSX

My personal ~/.ssh/config: Host officenet User m.orlandin Hostname versioning.officenet.prv IdentityFile ~/.ssh/office_rsa PreferredAuthentications publickey actually my system username is my ...
0
votes
0answers
28 views

Is it possible to run gitbash over windows telnet?

I've got two windows machines, and I can telnet from one into the other just fine. However I use the git bash shell in preference to DOS and I'd like to be able to telnet from box 1 to box 2 and run ...
0
votes
1answer
49 views

Git installation hell on Linux

I have a bitnami - redmine virtual machine with Redmine 3.0.1. This came with Git pre-installed, version 1.9.5. I am now trying to update it, but I have some big difficulties. apt-get installs git ...
0
votes
0answers
62 views

GPG Agent under Windows as SSH Agent for git bash

I'm trying to set up gpg-agent as the common authentication agent under Windows. It works fine for both Putty and regular gpg use, but now I'd like to use it as ssh-agent in git bash as well. From ...
2
votes
2answers
8k views

can't add folder in git

I add new folder (actually I cloned it from another repo, and forgot that), then I did some changes there. Additionally I did a lot of changes in another places, when I tried to do git add # Changes ...
7
votes
3answers
3k 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 . ...
7
votes
3answers
6k views

How to upgrade to latest git on debian 7?

I have installed git through apt-get on debian 7 which gives me: # git --version git version 1.7.10.4 I would like to ugrade to the latests version of git. I have tried: sudo apt-get install ...
4
votes
1answer
793 views

Error while installing Perl package Term::ReadKey in Cygwin

I'm trying to use git via cygwin Well, I used this command to clone the svn content to a local git repository: git svn clone svn://path/to/my/project --username myuser Git was returning: ...
1
vote
1answer
59 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 ...
69
votes
4answers
21k views

Forward SSH traffic through a middle machine

SSH tunneling is very confusing to me. I am wondering if I can do this in Linux. I have 3 machines.. A. My local machine at home. B. Machine at work that I can SSH into (middle man). C. My desktop ...
15
votes
5answers
10k views

Using git through cygwin on windows 8

I've got a windows 8 dev preview (not sure if it's relevant, but I never had this hassle on w7) machine and I'm trying to clone a git repo from github. The problem is that my ~/.ssh/id_rsa has 440 ...
12
votes
1answer
4k views

How do i get the git pager to clean up screen output after exit?

The pager less doesn't clear the screen as it should do when i use git. I use less all the time and it usually doesn't leave output in the terminal after quit but when less gets executed via git it ...
0
votes
0answers
31 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
1answer
50 views

Eclipse IDE Git client pushing code to github and getting “deletion of the current branch prohibited”

I tried to push my code to github (by the Eclipse), and I encountered a problem. I did the following steps: On my project (in Eclipse) : right click > team > share project > click on "git" > next. ...
0
votes
0answers
19 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... ...
16
votes
1answer
5k views

Which fork of GitX is the most active? [closed]

I've been using the original GitX but I've noticed it hasn't had any updates for quite a while. Which version of GitX is the most active, in terms of updates/stability/features? The original ...
10
votes
4answers
7k views

Using git as a central repository

I have set up git for my own use--so I can access a project from 'anywhere', and keep version safety if I happen to be working on part X over here, and part Y over here, and can merge if necessary. ...
3
votes
0answers
783 views

Build an Android Rom (Make Error 41)

I tried to build a custom Rom for Android 4.4.4. I use as base the Liquid Rom (Github Link) Before I build the rom, I had insertes in the local_manifests some apps to add to the ROM and before I did ...
0
votes
1answer
340 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 ...
22
votes
8answers
30k views

git push fatal failed

I somehow deleted the whole directory of my code branch. I cloned a new one. It worked fine except pushing. ~/workspace/wtf (mybranch)]$ git push origin mybranch error: Cannot access URL [my url], ...
0
votes
0answers
319 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
463 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
38 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
190 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
32 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
2answers
1k views

Git in Visual Studio 2013 stops working abruptly

Yesterday, I went home with Git working perfectly well inside Visual Studio 2013. I could 'Compare with unmodified' for a source file, I would see the version control status of my source files, and ...
13
votes
2answers
2k views

How to reuse/extend etckeeper's metadata engine for git control of non-/etc filesystems, or extend git natively with said capability?

Overview + question I want etckeeper-like filesystem metadata control for non-/etc, git-controlled directories. Home and web-app directories, among others, are classically sensitive to metadata ...
0
votes
0answers
39 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
32 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 ...
1
vote
1answer
23 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
1answer
37 views

GitHub for Windows: commit size

When committing in GitHub for Windows, is there any way to see the total size of the files that are being committed? I am aware that we can see the repository size on the GitHub website.
0
votes
0answers
23 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
2answers
405 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
22 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

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
126 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 ...
0
votes
2answers
54 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 ...
2
votes
1answer
433 views

Installed Mysgit for windows and Git bash is returning dev/null

I did an standard installation of git for windows. However when I opened git gui these what I've seen in my screen and as for git bash. Welcome to Git (version 1.9.4-preview20140815) Run 'git ...
0
votes
0answers
40 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
95 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 ...
2
votes
0answers
60 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 ...
1
vote
2answers
1k views

Git pull/fetch doesn't seem to work

I am using git over hamachi vpn and am able to clone the remote repository. However, git pull/fetch fails after hanging for a long time. The error message displayed is: Write failed: Broken pipe ...