简体   繁体   中英

got out of my git local branch somehow

I'm using git and sourceTree software.

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.

but when I try to push it I get an error:

在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM