git add => git commit => git push
git status
git log --oneline --graph
git diff HEAD^3 HEAD
git diff version_id_brefore version_id_after
git reset version_id (mixed, remain working file) git reset --hard version_id (remain nothing) git reset --soft version_id (remain working file and stage file)
touch .gitignore
echo "*.log" > .gitignore
git remote add origin https://github.com/MessInWind/my-repo.git
git branch -M main
git push -u origin main
git pull origin main
git remote -v
git branch
git branch branch_name
git push --set-upstream origin branch_name
git switch branch_name
git checkout branch_name
git merge A (current branch is B)
git branch -d branch_name
git branch -D branch_name
use git status to check conflict files.
modify these files manually to fix conflict.
then commit changes
git merge --abort
git checkout -b branch_name version_num
alias graph="git log --oneline --graph"
git switch branch_name git rebase target_root_branch