I have a project on Github, but I'm struggling to get the changes from it to my local machine. I recently deployed an app using Fortrabbit, which involved creating a new remote repo to push all the files to – now (I'm a noob) I'm struggling to return to pulling and pushing changes to the origin
.
If I run git status
On branch master
Your branch is up-to-date with 'fortrabbit/master'.
nothing to commit, working directory clean
If I run git fetch origin
I get no errors, just back to the command line.
If I run git status
again I still get
On branch master
Your branch is up-to-date with 'fortrabbit/master'.
nothing to commit, working directory clean
I want this to say Your branch is up-to-date with 'origin/master'.
git remote -v
Gives me the two repos (I think?)
fortrabbit git@git8.eu1.frbit.com:app.git (fetch)
fortrabbit git@git8.eu1.frbit.com:app.git (push)
origin https://github.com/djave/app.git (fetch)
origin https://github.com/djave/app.git (push)
I just need to git change repo origin
or something? How do I tell git that I want to go back to syncing with origin?