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

Cannot clone repo on windows fatal: unable to access. The requested URL returned error: 403

I have set up Gerrit repository on non-standard port 10002. I have generated my HTTP password in Gerrit. I can successfully clone this repo over HTTP protocol on Unix machines and on most of ...
123
votes
6answers
104k 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_file Selects a file from which the identity (private key) for RSA or DSA authentication is read. ...
0
votes
1answer
21 views

Creating deb file in Debian using github source code and debuild tools

I want to compile nginx (with custom libs) using up-to-date source code from GitHub. But if I download the code from GitHub, obviously, there is no "debian" folder and inner files. So, when I use ...
0
votes
0answers
6 views

How to change diff color in eclipse in compare mode

Let's say I select a file, then Show in > History then I select a file from the history "commit list" and I select Compare with Workspace: Here, I get gray-white color for the diff. How to ...
0
votes
1answer
13 views

How to delete/remove files from a pushed commit?

is it possible to delete/remove some unwanted files from remote and local repository? I was a bit to fast and pushed 5 files to the remote repo. Now my colleague pushed his work and saw to late these ...
1
vote
0answers
27 views

How to test whether one git commit can reach another?

I have two git commit IDs. How can I tell if either is a derivative of the other (and if so, which one)? In other words, can one git commit reach the other git commit by following parent commit ...
-1
votes
0answers
20 views

GIT - can't install

I have strange problem. I download git from git-scm.com on my new computer. I clicked the installer, chose standard (simple context menu and all associate .*), "use git from fit bash only", and ...
7
votes
1answer
3k views

Corrupted files in Git

I have recently removed some folders from my git repos history using the following command: git filter-branch --index-filter 'git rm -r --cached var' -- --all Unfortunately I cannot pull anymore ...
1
vote
0answers
19 views

GitLab.com times out on Linux

I'm currently using Linux Mint 17 on my laptop and I'm almost unable to work with GitLab. The issue is pretty weird: GitLab.com times out every time I want to save my profile info GitLab.com times ...
1
vote
0answers
14 views

How to resolve dependencies while installing application on linux (CentOS 7.1)

When I tried install deluge on my CentOS 7.1 I was facing dependecy problems due to some el6 which are not meant for CentOS 7.1. So, I found this page: ...
0
votes
1answer
28 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" ...
1
vote
0answers
41 views

Simplest way to setup my own remote private git server

First of all, I've read all the git-server-setup documents on the internet, but still, there is one thing missing -- I want to setup a simple GIT server in (Ubuntu) Virtual Machine for myself, not for ...
3
votes
1answer
2k views

How do I pull big repos from git on windows without getting “Out of memory”?

I am using the Git Gui provided with the git client fromt he git website. The cygwin version has the same problem. error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: ...
0
votes
1answer
17 views

How to stage git commits using meld (like git add -p)?

git add -p allows to stage selected parts of working tree changes to the index so that an uncommitted set of changes can be split into multiple commits. Instead of git add -p, I would like to use ...
5
votes
3answers
4k views

How can I make git commit files in a symlinked folder

I have two folders: /home/me/code/project/ /srv/www/projectfiles/ In the /home/me/code/project folder, I have symlinked static to /srv/www/projectfiles/ i.e. /home/me/code/project/static/ -> ...
0
votes
3answers
30 views

Bitbucket git SSH key error: “Bad owner or permissions on /home/centos/.ssh/config”

I've followed Bitbucket's instructions to add my SSH keys and use git without having to authenticate each time. I followed the instructions here. Then I get to ssh -T git@bitbucket.org I get the ...
1
vote
3answers
1k 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
24 views

Enable tab autocomplete in PhpStorm terminal on mac?

I am using PhpStorm for a pretty big project. We use Git for our versioning control. Needless to say, this leads to me switching back and forth all day between branches. I'm using the terminal window ...
0
votes
0answers
17 views

Git Bash on Windows 8 open to specific directory except when using Git Bash Here context menu

When I right click and choose Git Bash here it works as expected and the shell launches in the correct window. When clicking just the icon, despite changing the Start In settings, the directory is ...
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, ...
1
vote
2answers
3k 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 ...
3
votes
3answers
4k 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 ...
4
votes
2answers
1k views

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

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 ...
0
votes
1answer
7 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
8 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
37 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 ...
42
votes
2answers
23k 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
57 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
13 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
13 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
12 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
2answers
2k views

How do I add as editor Dreamweaver to work in GIT?

How do I add Dreamweaver as the editor in Git? git config --global core.editor??? $ slime README.md sh.exe": slime: command not found
0
votes
1answer
38 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
32 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
3k views

Setting up git, path errors when pushing/cloning from local to NAS

I'm setting up a NAS server with Git for the first time, so please forgive the noobish questions (it also means I am super thankful for any detailed explanations you can give me, because I am kind of ...
2
votes
2answers
6k 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
2k 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
5k 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 ...
3
votes
1answer
646 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
32 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 ...
2
votes
1answer
2k views

Can't clone from Bitbucket - Get stuck at “Cloning into…”

Maybe you can help me out. I have a server which I'm accessing thru a SSH tunnel. On this server, I want to clone a git repo from bitbucket, but bitbucket uses Port 22 as well, I assume. So how can I ...
0
votes
2answers
2k views

How to Compile and Install Remmina From GIT Repository for Ubuntu (KDE)?

Gentlemen, I would like to compile a version of Remmina directly from the GIT repository, because I need to apply a patch to fix a problem. With the command sequence below I can compile it and ...
68
votes
4answers
19k 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
9k 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
3k 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
17 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
39 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
9 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
4k 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 ...
8
votes
4answers
6k 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. ...