Added gfg to script not in the zshrc

This commit is contained in:
2021-10-17 14:32:13 +02:00
parent e0c7cad5cf
commit ceb24b0216
2 changed files with 3 additions and 1 deletions

3
.local/bin/gfg Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
BRANCH_GIT=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
git checkout "$BRANCH_GIT" && git fetch upstream && git pull upstream "$BRANCH_GIT"