git tag <tag name> [commit hash]
git switch <tag name>
git switch main
git branch temp
git switch temp
git branch -f main temp
git switch main
git switch main
git merge HEAD@{1}
git branch -d temp
git rebase -i
with edit mentioned next to
commitcommmit --amend
scenariogit rebase --continue
git commit --amend
git add
git rm
git commit --amend
git rebase -i
"Forward-port local commits to the updated upstream head"
– git rebase man page
git rebase -i
$ git rebase -i HEAD~3 pick b65221c Adjusted RightLeftAuton and fixed auto-shifting pick d9aaab3 changes autonomous claw angle pick 380719d Added noop autonomous # Rebase efb7586..380719d onto efb7586 # # Commands: # p, pick = use commit # r, reword = use commit, but edit the commit message # e, edit = use commit, but stop for amending # s, squash = use commit, but meld into previous commit # f, fixup = like "squash", but discard this commit's log message # x, exec = run command (the rest of the line) using shell
git rebase --onto main client
git rebase --onto main client
git switch main
git merge client
git switch main
git merge client
git rebase --onto main server
git rebase --onto main server
git switch main
git merge server
git branch -d client
git branch -d server
git switch main
git merge server
git branch -d client
git branch -d server
git filter-branch --tree-filter 'rm -f largeFile.out'
HEAD
git filter-branch --tree-filter 'rm -rf *'
HEAD
git <command> --help
man git-<command>