Official blog of KEINOS but mostly for my own reference. A Japanese made in Mexico with Mexican quality. Who monkey around the jungle of codes. ;-)
With --rebase
option, you can update your local repository without creating a merge commit.
git pull --rebase
1 つ前のコミットに追加する方法。
git add .
git commit --amend --no-edit
git push --force
# One-liner
git add . && git commit --amend --no-edit && git push --force
git checkout --orphan <new-branch-name>
# Rename
git branch -m master main
git push -u origin main
Go to GitHub and change the default branch to main.
[Settings]-[Branches]-[Default branch]
Delete the old “master” branch.