[英]got out of my git local branch somehow
I'm using git and sourceTree software. 我正在使用git和sourceTree软件。
I have committed some changes 我做了一些改变
all i want to do is to have all change in local cancun_elad and push to remote cancun_elad. 我要做的就是在本地cancun_elad中进行所有更改,然后推送到远程cancun_elad。
but when I try to push it I get an error: 但是当我尝试推送它时,出现错误:
sourceTree: sourceTree:
First create a new branch 首先创建一个新分支
git checkout -b mybranch
Then switch to one of the existing branches 然后切换到现有分支之一
git checkout cancun_elad
Then merge in the changes from your old branch 然后合并旧分支中的更改
git merge mybranch
Then push your changes to the remote 然后将您的更改推送到遥控器
git push origin cancun_elad
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.