Skip to content

Instantly share code, notes, and snippets.

@isaacsanders
Created December 16, 2021 15:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacsanders/defa496b60420f0357568e2ec80e4010 to your computer and use it in GitHub Desktop.
Save isaacsanders/defa496b60420f0357568e2ec80e4010 to your computer and use it in GitHub Desktop.
$ cat ~/bin/git-update-from-origin
#!/usr/bin/env zsh
git pull origin "${$(git symbolic-ref HEAD)#refs/heads/}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment