帮助!我的git回购在泡菜!本地和远程git回购是不同的,但表明“已经最新”
推送和拉本地和远程分支机构说Already up-to-date.
但检查文件显示它们之间的差异。
这很复杂,因为我有两个本地分支,master和staging,每个分支都跟踪相同的远程版本。
我花了几个小时试图找出一个系统的方法来解决这个问题。但我担心我会变得更糟,并在这个过程中失去编辑。
在这些情况下是否有推荐的方法?
EDIT
->git remote show origin
* remote origin
Fetch URL: [email protected]:mygits/myrepo.git
Push URL: [email protected]:mygits/myrepo.git
HEAD branch (remote HEAD is ambiguous, may be one of the following):
master
staging
Remote branches:
master tracked
staging tracked
Local refs configured for 'git push':
master pushes to master (up to date)
staging pushes to staging (up to date)
克隆你的远程分支到第一个地方,以防你把它搞砸了。 – Alex 2012-04-23 17:09:39
你确定'git status'干净吗?假设是这样,重要的是人们能够帮助你解释你当前的分支是什么,以及你使用的是什么形式的'git pull'和'git push'命令,特别是如果你是指定其他参数。 – 2012-04-23 17:10:34
请显示您使用的命令,以便我们看到分支机构的使用情况。 – 2012-04-23 17:10:50