【问题标题】:got out of my git local branch somehow不知何故离开了我的 git 本地分支
【发布时间】:2013-09-11 09:28:54
【问题描述】:

我正在使用 git 和 sourceTree 软件。

我已经提交了一些更改

我要做的就是在本地 cancun_elad 中进行所有更改并推送到远程 cancun_elad。

但是当我尝试推送它时出现错误:

源树:

【问题讨论】:

  • git branch 得到什么?
  • $ git branch ........* (从 0c32451 分离) ........ cancun_elad

标签: java eclipse git github


【解决方案1】:

首先新建一个分支

git checkout -b mybranch

然后切换到现有分支之一

git checkout cancun_elad

然后合并旧分支中的更改

git merge mybranch

然后将您的更改推送到遥控器

git push origin cancun_elad

【讨论】:

  • 我要做的就是在本地 cancun_elad 中进行所有更改并推送到远程 cancun_elad。这符合你的答案吗?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-04-12
  • 2015-08-19
  • 2012-03-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多