Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
git pull & push
#!/bin/bash
branch="$(git rev-parse --abbrev-ref HEAD)"
git pull origin $branch
#!/bin/bash
branch="$(git rev-parse --abbrev-ref HEAD)"
git push origin $branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment