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分支,将在远程新建该分支)
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分支,将在远程新建该分支)
相关文章推荐
- $ git push origin test:master // 提交本地test分支 作为 远程的master分支
- git 本地新建分支操作功能后与本地master合并,然后提交到远程master
- Androidstudio Git (对已有项目提交和从远程获取项目到本地)
- Git提交本地库代码到远程服务器的操作
- 本地项目git初始化并提交远程仓库
- git 创建远程仓库,提交本地仓库到远程
- 【git】:将本地代码提交到github远程仓库的简单命令行
- git仓库创建:远程初始化仓库、本地clone远程库、本地获取提交新内容
- git远程删除分支后,本地git branch -a 依然能看到的解决办法。
- git本地仓库首次push到远程仓库出现错误 ! [rejected] master -> master (fetch first)
- git提交远程报错[rejected] master -> master (fetch first)
- Git :本地仓库提交到远程服务器
- git 将一个本地文件目录提交到远程仓库的步骤
- git创建本地master,用于提交至其他master
- git远程删除分支后,本地git branch -a 依然能看到的解决办法。
- IDEA如何初始化Git本地仓库,并提交到远程仓库
- 本地git仓库提交远程失败的解决办法
- git 创建本地分支card 发布到新远程分支card上,然后将远程分支card上的代码合并到远程主支master上
- git提交本地分支到远程分支
- git 本地使用(远程提交,更新)