feat(git): add alias for undoing the last git commit

This commit is contained in:
Victor Westerlund 2026-01-17 19:28:04 +01:00
parent 61e0e59df8
commit 1b04151774
Signed by: vlw
GPG key ID: D0AD730E1057DFC6

View file

@ -6,6 +6,8 @@ alias n="nano"
alias phpa="sudo update-alternatives --config php"
# Restart all code-server processes. Sometimes it hangs on first startup
alias restart_vscode="sudo systemctl restart code-server@vlw.service"
# Force undo and unstage the last commit from git and git remote
alias gitundo="git reset HEAD^ && git push origin +HEAD"
# +-------------------+
# | Directory & Files |