我想創建一個新分支,獲取一個存儲庫,更改一個文件並將其推送到存儲庫。github命令
這些命令是正確的方式嗎?
git checkout -b marker_up_down //create a branch and make it as a default
git clone [email protected]:user/mygit.git // get the repository of mygit
假設我改變一個文件名爲:「main.html中」,想推,所以我做的:
git add path/main.html
git commit // add a comment of this push
git push origin marker_up_down
你的問題是什麼? – 2013-02-13 15:08:40
不,他們不是。您不能在尚未克隆的存儲庫中創建分支。 – 2013-02-13 15:09:09
@DanielHilgarth - 他想知道他在第一個街區的命令是否正確。 – webnoob 2013-02-13 15:09:14