Git¶
SSH Key¶
C:\Users\*Username*> ssh-keygen
If you get unable to start ssh-agent service, error :1058
Start-SshAgent
Delete local and remote¶
# Local
git branch -d *branch*
# Remote
git push origin -d *branch*
Rebase¶
If you want to rebase on the last 5 commit
git rebase HEAD~5
Then use the proposed command for each commit
Force push origin¶
git push origin *branch* -f
Undo commit¶
git reset --soft HEAD~1
git reset --hard HEAD~1
Last update: September 27, 2021 09:50:41