Skip to content

Instantly share code, notes, and snippets.

@andineck
Created November 21, 2013 13:06
Show Gist options
  • Save andineck/7581239 to your computer and use it in GitHub Desktop.
Save andineck/7581239 to your computer and use it in GitHub Desktop.
install git on ubuntu
# other things that you might need as well
# git
sudo apt-get install git-core
# configure git via file
sudo nano ~/.gitconfig
# or configure git via commands
git config --global user.name "NewUser"
git config --global user.email newuser@example.com
# keeps user credentials in cache fo 1h
git config --global credential.helper "cache --timeout=3600"
# check git settings
git config --list
@andineck
Copy link
Author

andineck commented Nov 3, 2015

install latest version

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

@andineck
Copy link
Author

andineck commented Nov 3, 2015

use git with untrusted certificates

git config --global http.sslverify false

@andineck
Copy link
Author

andineck commented Nov 4, 2015

sudo apt-get install libgnome-keyring-dev
cd /usr/share/doc/git/contrib/credential/gnome-keyring
sudo make
git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment