您的位置:首页 > 其它

git提交本地master到远程branch(bitbucket)

2014-04-03 20:50 239 查看
本地是在master上,远程建立新的分支,如何把本地的master提交到远程指定分支呢?

1.git branch

2.git status

(忘记截图了。。= =  )

大概内容是请使用

git add . 和 git commit -m "changes"

3.git add .

4.git commit -m "changes"

5.git status

6.git push origin master:branch_name

(master指本地master,branch_name指远程分支,若远程没有branch_name分支,将在远程新建该分支)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息