1. 程式人生 > >git push 提示 Everything up-to-date

git push 提示 Everything up-to-date

remote ranch 分享 mage 一個 自己 提示 master 分支

服務器倉庫是完全空的,
不包含任何一個分支(branch),因此剛開始 Push 時需要指定一個。
執行 git remote -v 後看到自己的 remote 端名字為 origin:

技術分享圖片

執行 git branch 後看到自己當下用的分支是 master:

技術分享圖片

因此在本地 commit 後,再執行 git push origin master 即可。

技術分享圖片

git push 提示 Everything up-to-date