-
Notifications
You must be signed in to change notification settings - Fork 0
Git
Mads edited this page Jun 19, 2024
·
1 revision
git checkout --orphan latest_branch
git add -A
git commit -am "commit message"
git branch -D main
git branch -m main
git push -f origin main
git config --global user.name myusername
git config --global user.email myemail
If you want to run the selfhosted Github runner as root:
export RUNNER_ALLOW_RUNASROOT="1"
sudo ./svc.sh install
sudo ./svc.sh start
git remote add origin git@github.com:Wraaath/test.git
git branch -M main
git push -u origin main
git branch -m main production
git fetch origin
git branch -u origin/production production
git remote set-head origin -a