
我已經第一次提交到 github 了。但現在我已經使用“git clone”檢查了已經提交的儲存庫<repo name>
。現在,更新程式碼後,我想將新程式碼提交回我的 git 儲存庫。怎麼做 ?
答案1
如果您已使用 ssh 位址(例如 )複製了 GitHub 儲存庫[email protected]:user/repo.git
,則您需要做的就是:
git push REMOTENAME LOCALBRANCHNAME:REMOTEBRANCHNAME
喜歡:
git push origin
會將目前分支推送到名為「origin」的儲存庫(建立複製時的預設名稱)
看GitHub推播幫助頁面了解更多。