Based on https://gist.github.com/lopezjurip/56fbe6d00f35824988dd7684e0d6dc48. Updated for the new "main" branch naming convention and customized.
Created
June 10, 2021 12:06
-
-
Save bzamecnik/9fb9ad201fb7df0427c156933eb399af to your computer and use it in GitHub Desktop.
GitHub - code review full repo
This file contains 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 characters
# In order to make a full repo code review, fork a repo and clone the fork. | |
# Then use this script to make a new empty base branch merge the current | |
# main branch into it for the sake of code review. Then open | |
# a pull request in GitHub: "review" <- "homework". | |
git checkout --orphan review | |
git rm -rf . | |
git commit --allow-empty -m "Create empty branch" | |
git push --set-upstream origin review | |
git checkout -b homework | |
git merge main --allow-unrelated-histories | |
git push --set-upstream origin homework |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment