# <筆記>十分鐘學會正確的github工作流 ref: https://www.youtube.com/watch?v=uj8hjLyEBmU ## 1.先clone一份下來  ## 2.建立一個分支(checkout -b branch)  ## 3.開發程式(變更內容) ## 4.檢查差異(diff)  ## 5.新增暫存(add)  ## 6.git commit  ## 7.repo push branch  ## 8.更新原main內容(別人更新的做同步過來) git checkout main git pull origin master   ## 9. local 更新自己的分支 (checkout 、rebase)   ## 10. repo 更新自己的分支 (push)  ## 11. new pull request      
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up