3810b93d4e15c9a492c5cee45e8b70f86e1f997f
- Author
- Pavle Portic <git@theedgeofrage.com>
- Committer
- Pavle Portic <git@theedgeofrage.com>
- Date
Message
Improve gdone function
Diff
1diff --git a/dot_config/zsh/functions/gdone b/dot_config/zsh/functions/gdone
2index 8b02ce1a5731d84b8aee539aecf00b9ee2025e3b..8e5cfc4fc8ab88bad17aef5314559e91be01f67d 100644
3--- a/dot_config/zsh/functions/gdone
4+++ b/dot_config/zsh/functions/gdone
5@@ -8,7 +8,8 @@ if [ "$current" == "$(git_main_branch)" ]; then
6 return 1
7 fi
8
9-git switch $(git_main_branch)
10 git fetch --all --prune --jobs=10
11+git branch -f $(git_main_branch) origin/$(git_main_branch)
12+git switch $(git_main_branch)
13 git branch -D $current
14 unset current