cd <fork>
git checkout master
git fetch upstream
git rebase upstream/master
git push -f
This will make your fork match up with what's upstream
cd <fork>
git checkout master
git fetch upstream
git rebase upstream/master
git push -f
sed -i "s/^M//" filenameYou need to enter ^M by pressing Ctrl and then pressing V and M in succession