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/

819 questions
109
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,047
69
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,781
52
votes
4 answers

How to install git-lfs on Ubuntu 16.04?

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,691
50
votes
9 answers

How to clone only some directories from a git repository?

For example, I want to download PCL 3d_rec_framework. This is the git repository of PCL: https://github.com/PointCloudLibrary/pcl.git How can I download this directory? https://github.com/PointCloudLibrary/pcl/tree/master/apps I tried this, but it…
sam
  • 6,831
11
votes
5 answers

Connection timeout when accessing Github

I have exactly the same problem as described here: https://stackoverflow.com/questions/12849986/connection-timeout-when-accessing-github So I'll just copy & paste: I have some weird problems. When I try to log in my Github account, I get a…
Felipe
  • 235
9
votes
2 answers

How to clone a git repository?

I know how to clone a git repository to my system, using git clone. I cloned a repository using that command: git clone https://github.com// But when I tried to clone that repository again, which have been changed…
MikhilMC
  • 365
7
votes
1 answer

How do I show the number of lines added(and deleted) in git?

I have to display the number of lines added(and deleted) to a certain file by all commits.
johnny
  • 121
6
votes
1 answer

git: where cloned remote repository is saved?

I cloned OpenCV using: git clone https://github.com/Itseez/opencv.git Now I want to know where is downloaded in order to unpack it. All what I know is: dpkg -L git leads me to this directory: /usr/lib/
user284234
5
votes
1 answer

Getting git smudge filter to work in Ubuntu

I'm trying to get a git smudge filter to work in ubuntu, as described in this stackoverflow answer: https://stackoverflow.com/questions/2316677/can-git-automatically-switch-between-spaces-and-tabs The goal is to convert spaces to tabs on checkout.…
5
votes
3 answers

How to make gui based setup of git server?

I have 1 git server and few systems(git installed) connected to server. I'm trying to setup a gui based setup for server and clients systems both. I'm have Ubuntu on all systems. Could anyone help me in this regard? Any help would be greatly…
user10867
5
votes
1 answer

Git "fatal: protocol error: bad line length character: SSH-"

I'm trying to clone any repo by git:// protocol and get this error. fatal: protocol error: bad line length character: SSH- If I'll change protocol to https:// git will clone without errors.This error occurs only in Ubuntu (12.04, 12.10), on Debian…
5
votes
3 answers

Download files from Git + GUI

This post is related to downloading files from Git Repository on Ubuntu 11.10. I have installed 'Git' from Software Centre including the components like GUI, revision tree visualiser etc etc The files I am downloading are from the following Repo…
5
votes
1 answer

How to configure Git locally?

I installed Git in the following way: sudo apt-get install git # add-apt-repository ppa:git-core/ppa # apt update; apt install git Install in root, but with sudo. The command I use is: git config global user.name But it's all in the same…
gemita
  • 215
4
votes
2 answers

Git commit message problem

When I issue the following command on 16.04 with Git 2.7.4 from the apt repository git commit -sS --status I get the following result: Aborting commit due to empty commit message. I have configured the Git global configuration as…
Jonathan
  • 1,280
4
votes
2 answers

How can I use a git client with a GUI on a bitbucket repo which I already worked on?

I have a bitbucket account and opened a git repo there. I worked with the command line and made a few simple test commits for a few simple text files. It's actually quite simple, if I just do the, um, standard things with it, for the lack of a…
henry
  • 2,045
1
2 3 4 5