Reference: How to conduct a full code review on GitHub
./review.bat
Compare empty
... review
Reference: How to conduct a full code review on GitHub
./review.bat
Compare empty
... review
@REM #!/bin/bash | |
for /F "skip=1 usebackq delims=" %%a in (`git rev-parse --abbref-ref HEAD`) do ( | |
set currentBranchName=%%a | |
) | |
@REM review branch | |
git checkout --orphan review | |
@REM remove under the git | |
for /f %a in ('git ls-files') do git rm --cached %a | |
@REM remove files | |
git clean -fxd | |
@REM create start point | |
git commit --allow-empty -m "Start of the review" | |
@REM create empty branch | |
git branch empty | |
@REM merge review point | |
@REM merge with prev branch(= probably master) | |
git merge "%currentBranchName%" | |
@REM push to origin | |
git push origin review | |
git push origin empty |