Last active
November 9, 2021 23:24
-
-
Save billbonney/76de0f1a2e79f3a8a1a5 to your computer and use it in GitHub Desktop.
Revisions
-
billbonney revised this gist
Apr 14, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,5 +27,5 @@ Also useful comamnds are ``` make clean # Do this in the root build dir git clean -d -f -x # get rid of all not git files (be warned you could lose work if you haven't committed those changes ``` -
billbonney revised this gist
Apr 6, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ git checkout upstream/master git branch -D master git branch master git checkout master git push --force origin master #This step is only required if you pushed your 'mess' to origin ;) ``` Also useful comamnds are -
billbonney revised this gist
Apr 6, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ git checkout master git fetch upstream master git reset --hard <commit_where_it_diverges> git merge --ff-only upstream/master # if this fails you have found the point far back enough in time before the divergence git push --force origin master #This step is only required if you pushed your 'mess' to origin ;) #(Option 2) Fix by deleting master and starting again with a fresh copy #Warning this will delete any changes you have made on master -
billbonney revised this gist
Oct 4, 2014 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,4 +21,11 @@ git branch -D master git branch master git checkout master git push --force origin master ``` Also useful comamnds are ``` make clean # Do this in the root build dir git git clean -d -f -x # get rid of all not git files (be warned you could lose work if you haven't committed those changes ``` -
billbonney renamed this gist
Sep 24, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
billbonney renamed this gist
Sep 24, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
billbonney renamed this gist
Sep 24, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
billbonney created this gist
Sep 24, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ If your master branch of your fork has diverged from upstream master you can check your master by typing ``` git checkout master git fetch upstream master git merge --ff-only upstream/master # if this fails your master is not the same as upstream i.e. it won't fast-forward ``` To clean up your master try (Option 2 is simpler, Option 1 downloads less) ``` # (Option 1) Fix master from point of divergence #WARNING: you will lose your changes to master git checkout master git fetch upstream master git reset --hard <commit_where_it_diverges> git merge --ff-only upstream/master # if this fails you have found the point far back enough in time before the divergence git push --force origin master #(Option 2) Fix by deleting master and starting again with a fresh copy #Warning this will delete any changes you have made on master git checkout upstream/master git branch -D master git branch master git checkout master git push --force origin master ```