Skip to content

Instantly share code, notes, and snippets.

View philipstanislaus's full-sized avatar

philipstanislaus

View GitHub Profile
@philipstanislaus
philipstanislaus / add_base_commit.sh
Last active December 1, 2023 10:58
Create empty git base commit for a full code review
# create empty base commit that will be the reference for our code review
git checkout --orphan base
git rm -r --cached .
git clean -fxd
git commit --allow-empty -m "Start of the review"
# create and checkout review branch that will include the latest code that should be reviewed
git checkout -b review
# merge main branch into that new review branch