Skip to content

Instantly share code, notes, and snippets.

@thiagomatar
Last active April 18, 2020 21:23
Show Gist options
  • Save thiagomatar/3d10b80296a74de2d7a575b6098b7430 to your computer and use it in GitHub Desktop.
Save thiagomatar/3d10b80296a74de2d7a575b6098b7430 to your computer and use it in GitHub Desktop.

Installing git and utility tools

Ubuntu < 13

sudo add-apt-repository -y ppa:git-core/ppa

Ubuntu and Mint latest versions

sudo apt-get update && sudo apt-get install -y git git-gui gitk meld

Configure credentials

git config --global push.default simple

git config --global user.name "<seu_nome>"

git config --global user.email "<seu_email>"

Configure git to not prompt for a username and password

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

git config --global credential.helper cache

git config --global credential.helper store

Remember passwords at least until you change your password:

git config --global credential.helper cache

Remember passwords for 10 hours:

git config --global credential.helper 'cache --timeout=36000'

Reset configurations

git config --unset --global credential.helper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment