Skip to content

Instantly share code, notes, and snippets.

@mauriciogior
Created January 24, 2019 03:56
Show Gist options
  • Save mauriciogior/d24580d2bbaf09b4e6e92e40444692aa to your computer and use it in GitHub Desktop.
Save mauriciogior/d24580d2bbaf09b4e6e92e40444692aa to your computer and use it in GitHub Desktop.
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