Git🔗
Installation🔗
Install Git:
Configuration🔗
Edit: ~/.gitconfig
[user]
name = smk
email = [email protected]
[alias]
st = status -sb
lg = log --graph --abbrev-commit --decorate
[core]
editor = vim
Common Workflows🔗
Clone a repository
Create and push branch
Pro Tips🔗
- Rebase: Squash commits with
git rebase -i HEAD~3
. - Stash: Temporarily save changes with
git stash
. - Reflog: Recover lost commits via
git reflog
.