git config --global --add --bool push.autoSetupRemote true - https://git-scm.com/docs/git-config#Documentation/git-config.txt-pushautoSetupRemote

Change a specific commit

git rebase --interactive commit-hash~ e.g. git rebase -i 40df55a49b3574e88e50dac2bac147dd8e9d58cb~

Stage and amend the last commit Continue rebase

Working trees

https://git-scm.com/docs/git-worktree/en