Git
Basics
git config --global user.name "NafiAsib"
git config --global user.email "[email protected]"
git config --global color.ui true # enable colored output in terminal
git config --global core.editor nvim
# β OLD
# git config --global credential.helper cache --timeout=3600 # cache password for 3600 second
# git config --global credential.helper cache
# git config --global --unset credential.helper
# git config --global core.editor code # only in windows
# git config --global core.autocrlf true # only in windowscd ~/.ssh
ssh-keygen -t rsa -C "[email protected]" -f "id_rsa_github"
# -t rsa β Specifies the type of key to create. In this case, it's rsa
# -C β comment
# -f β filename reset last commit
git merge conflicts
git squash last X commits
git ammend
Errors & fix
Links
Resources
Last updated