Questions tagged [git]

Git is a distributed revision control system with an emphasis on speed.

Git is a free and open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Branching and merging are fast and easy to do.

More information can be found at http://git-scm.com/

834 questions
259
votes
16 answers

How do I show the git branch with colours in Bash prompt?

I am using this guide to show the branch name in gnome terminal (Ubuntu 15.10) when working in a git repository. Based on the above I now have the below in my ~/.bashrc file: # uncomment for a colored prompt, if the terminal has the capability;…
u123
  • 3,062
  • 7
  • 21
  • 28
228
votes
13 answers

Is there a GUI client for Git?

I am using git for version control of various projects. Is there GUI software for navigating through commits and branches of a project and for retrieving versions in git projects?
Matoeil
  • 2,477
217
votes
5 answers

Really verbose way to test Git connection over SSH?

When using GIT, I have problems with using GIT over SSH, and since it works just fine both from work, and at home with a different modem, it's obviously my home modem that is acting up. I have no problems connecting over HTTP. So, I'm assuming it is…
IQAndreas
  • 3,298
185
votes
11 answers

Enter SSH passphrase once

Before upgrade When I was running git clone git@... (using ssh) once per computer restart a window dialog appeared containing a textbox for inserting my SSH passphrase and confirmed with OK. Then the passphrase was no longer required until the next…
Ionică Bizău
  • 9,803
  • 25
  • 89
  • 129
151
votes
4 answers

How do I install the latest version of Git with apt?

I read about a security flaw in Git, which was fixed in version 2.2.1. I currently have Git 2.1.0 on my system (Ubuntu 14.10), and tried to reinstall it with apt. However, apt told me that I currently have the latest version. The Git website does…
190n
  • 1,649
  • 2
  • 12
  • 6
112
votes
8 answers

git config global file - remove settings

The following command: $git config --global --list gives me: user.name=test user user.name=gotqn I want to remove the first name. I referred to this article and have done the following commands but without any result: git config --global…
gotqn
  • 2,077
  • 7
  • 30
  • 38
90
votes
4 answers

WSL Ubuntu Distro | How to solve `Operation not permitted` on cloning repository

I am running Ubuntu 18.04, as a Subsystem for Windows. I have done this in mutliple PCs and never had this problem. I try to to git clone , and I get this: Cloning into ''... error: chmod on…
79
votes
3 answers

How to remove offending key in git when you try to push your changes?

I've done tons of search and tested different solutions, but gain no success! When I want to push my codes, I receive the following error: Warning: the ECDSA host key for 'git.mywebsite.ir' differs from the key for the IP address…
Alireza
  • 1,294
  • 4
  • 14
  • 26
76
votes
4 answers

What is the correct way to use git with gnome-keyring and http(s) repos?

Currently, whenever I git pull or git push to a http(s) repository, I get the following: $ git pull Username for 'https://gitrepos.reposdomain.com': me@mydomain.com Password for 'https://me@mydomain.com@gitrepos.reposdomain.com': This is ok for…
70
votes
3 answers

"error: gnutls_handshake() failed" when connecting to https servers

When I try to connect to any HTTPS server with git, it gives the following error: error: gnutls_handshake() failed: A TLS packet with unexpected length was received. while accessing ... fatal: HTTP request failed I think that maybe some packages…
Nyambaa
  • 1,791
69
votes
1 answer

What are the differences between the git and git-core packages?

Why there is a git package and a git-core package? Is there any difference?
c.sokun
  • 882
67
votes
3 answers

How to start git-gui?

I've installed git-gui tool via sudo apt-get install git-gui. But how do I start it? Trying with search or git-gui command did not find and UI tool for Git.
ubuntico
  • 2,872
65
votes
5 answers

How do I install git-lfs?

I am trying to install git-lfs package and it looks like expected paths are not Ubuntu friendly. From Downloads section of git-lfs I choose Linux AMD64 file name git-lfs-freebsd-amd64-1.2.1.tar.gz, because .deb files are not available for Ubuntu,…
Mike
  • 5,931
65
votes
4 answers

Nautilus Git integration

Is there any equivalent to TortoiseSVN but for Ubuntu / Git? I'd like to integrate Git commands to Nautilus.
61
votes
3 answers

Upgrade Git version on Ubuntu 14.04

Can please somebody tell me what is wrong with this? I run $ sudo apt-get purge git; sudo apt-get autoremove; sudo apt-get install git Reading package lists... Done Building dependency tree Reading state information... Done The following packages…
Fernando Montoya
  • 713
  • 1
  • 5
  • 6
1
2 3
55 56