Last active
May 3, 2021 09:01
-
-
Save muhammad-zakir/8a71dbf9ec55de91d7fd9531ecc19138 to your computer and use it in GitHub Desktop.
Collection of bash / zsh aliases to simplify git commands in a wee bit more graceful way.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Move on to another branch | |
moveon() { | |
git fetch; | |
git switch $1; | |
git pull origin $1; | |
} | |
# Update local branch | |
update() { | |
git fetch; | |
git pull origin; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment