Advertisement
Guest User

updateGit.sh

a guest
Aug 25th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. echo "Fetch upstream updates"
  4. git fetch upstream
  5.  
  6. echo "Applying upstream updates from upstream/develop to current branch"
  7. git rebase upstream/develop
  8.  
  9. echo "Pushing $(git rev-parse --symbolic-full-name --abbrev-ref HEAD) to remote fork"
  10. git push origin HEAD --force
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement