From c67735a4b761f714d8826b6488aaf506d29f64dc Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Sat, 17 Jan 2026 19:29:01 +0100 Subject: [PATCH] feat(git): add alias for undoing the last git commit (#108) Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/108 --- .bash_aliases | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index 834a76d..d416a0f 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -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 |