git
Branch
git branch feature/signup
git checkout feature/signup
git checkout -b feature/signup # Make branch and checkoutCommit
git commit -m "feat: Introduce user repository"Go to specific commit. The git becomes detached HEAD state. In this state git doesn't belong to any branch.
git checkout abc123Merge
Merge main to my-branch.
git checkout my-branch
git pull origin my-branch
git merge main
git push origin my-branchStash
apply doesn't delete the stash, but pop does delete the stash.
Stage
No need for period(.).
Tag
Delete tag
-d option is needed because push something that is not in local anymore. Or I can push it using refs. A remote repository will take this as deletion.
Remote, Push
Connect to remote
Make branch, commit, and push
Last updated