git statusgit loggit log --one-linegit add .git commit -am ""git checkout some-branchgit checkout -b new-branchgit checkout -git switch some-branchgit stash pushgit stash popgit stash listgit stash applygit stash cleargit rebase target-branchgit rebase -i HEAD~X # merge commit since X last commitsgit reset --hard HEAD~ # hard reset last commitgit reset --hard ORIG_HEADgit cherry-pick <commit>git pullgit pushgit push -u origin new-branch
Config
git config --global user.name XXXgit config --global user.email XXX# for multiple git account# in the git repo locationgit config --local user.name XXXgit config --local user.email XXX# get list of your configgit config --listgit config --origin