Skip to content

Instantly share code, notes, and snippets.

@muhammad-zakir
Last active May 3, 2021 09:01
Show Gist options
  • Save muhammad-zakir/8a71dbf9ec55de91d7fd9531ecc19138 to your computer and use it in GitHub Desktop.
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.
# 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