Skip to content

Instantly share code, notes, and snippets.

@faruktoptas
Last active September 10, 2019 13:29
Show Gist options
  • Save faruktoptas/b47a7e6243cd7b71ac922aa759e3e5a8 to your computer and use it in GitHub Desktop.
Save faruktoptas/b47a7e6243cd7b71ac922aa759e3e5a8 to your computer and use it in GitHub Desktop.
Git commands
#Switch to dev branch, pull it then come back to my current branch
current="$(git branch | grep \* | cut -d ' ' -f2)";git checkout dev;git pull origin dev;git checkout $current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment