Skip to content

Instantly share code, notes, and snippets.

@vanderhoop
Created December 5, 2014 21:31
Show Gist options
  • Select an option

  • Save vanderhoop/82867f205fc07b415040 to your computer and use it in GitHub Desktop.

Select an option

Save vanderhoop/82867f205fc07b415040 to your computer and use it in GitHub Desktop.
# bash <(curl -sL https://gist.githubusercontent.com/vanderhoop/82867f205fc07b415040/raw/a121d690283bc12c1a85b551524dae771ed95020/git_repo_setup_script.sh)
#################################################################################################################
# Note: This script presupposes that the user has reverted to a trashed commit that has all of their week 1 work.
#################################################################################################################
# grabs SSH clone url for fork, which we'll use to set up new repos
cd ~/dev/wdi/godot
export origin_url=$(git config --get remote.origin.url)
# moves obsolete repo to desktop and renames it
mv ~/dev/wdi/godot ~/Desktop/
mv ~/Desktop/godot ~/Desktop/wdi_godot_week_one
# clones the user's fork down
cd ~/dev/wdi
git clone $(echo $origin_url)
cd ~/dev/wdi/godot/
git remote add upstream git@github.com:ga-students/godot.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment