Skip to content

git problems

vssatalkar edited this page Jul 26, 2017 · 3 revisions

If you're having problems pulling down the repository into your local directory from the cloud and are getting a variant of this error:

error: Your local changes to the following files would be overwritten by merge: MM2 Please, commit your changes or stash them before you can merge. Aborting

then you can force pull down from the origin with this command:

git reset --hard origin/master

Add new remote

  1. git remote add origin https://github.com/octocat/Spoon-Knife

  2. git remote

Clone this wiki locally