dotfiles/.zsh/.functions/git.abort
2026-08-15 19:39:06 +01:00

4 lines
103 B
Text

local branch
branch=$(git branch --show-current)
git fetch origin &&
git reset --hard "origin/$branch"