Skip to content

Instantly share code, notes, and snippets.

@lhoang
Last active January 5, 2021 08:59
Show Gist options
  • Save lhoang/a1153117ab9731195fa047208e0b9d2e to your computer and use it in GitHub Desktop.
Save lhoang/a1153117ab9731195fa047208e0b9d2e to your computer and use it in GitHub Desktop.
Git configuration
git config --global http.proxy http://proxy:3128
git config --global user.name "user name"
git config --global user.email "id@email.fr"
git config --global alias.lola 'log --graph --decorate --pretty=oneline --abbrev-commit --all'
git config --global alias.undo '!f() { git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; }; f'
git config --global pull.rebase true
git config --global rerere.enabled true
# Unix
git config --global credential.helper store
# win
git config --global credential.helper wincred
## reset password git
fatal: Authentication failed for '****'
git config --unset credential.helper wincred
git config --global credential.helper wincred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment