Skip to content

Instantly share code, notes, and snippets.

@bzamecnik
Created June 10, 2021 12:06
Show Gist options
  • Save bzamecnik/9fb9ad201fb7df0427c156933eb399af to your computer and use it in GitHub Desktop.
Save bzamecnik/9fb9ad201fb7df0427c156933eb399af to your computer and use it in GitHub Desktop.
GitHub - code review full repo
# 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