Git
git push
git push origin branch0:branch1
In git :
represent <源>:<目的>
git pull
(a11y_z) PS C:\Users\v-ziaoding\Desktop\code\a11y0923\a11y-detection> git pull origin dev_org:ziao_dev10
From https://dev.azure.com/boqiao/a11y/_git/a11y-detection
! [rejected] dev_org -> ziao_dev10 (non-fast-forward)
* [new branch] dev_org -> origin/dev_org
(a11y_z) PS C:\Users\v-ziaoding\Desktop\code\a11y0923\a11y-detection> git pull origin dev_org
From https://dev.azure.com/boqiao/a11y/_git/a11y-detection
* branch dev_org -> FETCH_HEAD
git stash
git stash apply
git stash apply stash@{0}
git stash list
git stash clear
git stash push -m "message"
假设我们有以下的提交历史
main: A --- B --- C
feature: \--- D --- E
merge 后的提交历史:
main: A --- B --- C ----------- M (merge commit)
feature: \--- D --- E -----/
rebase 后的提交历史:
main: A --- B --- C --- D' --- E' (rebase后的线性历史)
执行 git rebase 时,feature 分支的提交(D 和 E)会被逐个“重新应用”到 main 的最新提交之后


git init
git clone
git status
git add
git commit -m ""
git log
git push
git pull
git merge
git branch
git checkout
git rebase
git remote -v
git config --global user.name
git config --global user.email
git stash
git fetch