Skip to content

Scripts

Workflow for Forked Repo

Can set the upstream of main/master branch to genesis so everytime when you create a new branch, it's based on the remote main. This could avoid

git remote add genesis [email protected]/xxx/blabla
git branch --set-upstream-to genesis/main main
git pull & git checkout -b <your-branch>

Insert Panic before Exit

sed -i '' '/func Exit(code int) {/a\
\
    panic("os.Exit called")\
' $GOPLACE/src/os/proc.go