Skip to content

Instantly share code, notes, and snippets.

@clearf
Created July 3, 2013 16:58
Show Gist options
  • Save clearf/5920477 to your computer and use it in GitHub Desktop.
Save clearf/5920477 to your computer and use it in GitHub Desktop.
Gist to properly turn in your active record homework if you didn't fork the repo.
# In your homework repo
git branch active-record
git checkout active-record
# Obviously change to your username
git remote add new-repo git@github.com:<USERNAME>/sinatra-movie-production-active-record.git
# Confirmed that it worked
git remote -v
git pull new-repo master
# Merge conflicts, keeping your code and throwing away old code
# Commit the merge
git commit -am "merge"
git push new-repo active-record:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment