How to set up a new project
git init
How to stash changes
git stash
How to get stash , then remove stash
git stash pop
how to get stash, keep stash
git stash apply
list stash
git stash list
get stash
git stash@{n} or git stash pop n
remove a stash from list
git stash drop@{n}
move to a commit using ref
git checkout
move to a commit refrencing head
git checkout Head~n
switch to last commit
git switch -
remove changes to a file
git checkout Head
or
git restore
how to unstage a file
git resore –staged
Revert commit without changing files
Git reset
Revert commit with chaginging files
git reset–hard
Revert commit in collobaration
git revert