Skip to content

Instantly share code, notes, and snippets.

@dody87
Last active May 16, 2017 16:26
Show Gist options
  • Save dody87/e4190ccf53ccb9aacb20fe7e06675584 to your computer and use it in GitHub Desktop.
Save dody87/e4190ccf53ccb9aacb20fe7e06675584 to your computer and use it in GitHub Desktop.
script in order to get upstream (parent repository) updated.
#!/bin/bash
echo "Updating upstream forked repository."
git remote add upstream git@GIT_REPOSITORY_URL.git
git fetch upstream
git pull upstream master
echo "Done! :)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment