wtsang11 / TechExplore

MIT License
0 stars 0 forks source link

Introduction #173

Open wtsang11 opened 2 years ago

wtsang11 commented 2 years ago

http://localhost/TechNotes/wp-admin/post.php?post=1430&action=edit

VSC: http://localhost/lab/python/utilities/study_codes/opencodes.php?f=/Users/wtsang/Lab/development_tools/max_git/

wtsang11 commented 2 years ago

Basic Commands

git init git config --global user.email git config --global user.name git status git add . git commit -m -- correct previous commit git commit --amend git checkout git checkout -- list branches git branch -- create a branch git branch -- switch to another branch git checkout -- create a new branch and switch to it git checkout -b -- merging branches git merge git merge third-branch

wtsang11 commented 2 years ago

HEAD is the latest commit of a branch. detached head state allows viewing of a commit of a repository history. see https://careerkarma.com/blog/what-is-a-git-head/

wtsang11 commented 2 years ago

-- switching branch using git switch git switch

see https://bluecast.tech/blog/git-switch-branch/