我在這裏查看當前的解決方案,我遇到的問題,但他們的答案似乎並沒有解決推動工作的問題。git不會推送到遠程分支「一切都是最新的」
我有一個名爲「dev」的本地分支,它假設跟蹤遠程分支「v1.0-7.22-dev」。
我克隆了回購,並簽出遠程分支「v1.0-7.22-dev」作爲本地「dev」。
我做了一個承諾,我的當地的「開發」,當我運行的git狀態,我得到以下幾點:
$ git status
# On branch dev
# Your branch is ahead of 'origin/v1.0-7.22-dev' by 3 commits.
#
nothing to commit (working directory clean)
當我承諾:
$ git push
Password:
Everything up-to-date
我的配置文件(服務器名稱和回購股票名稱已被編輯)
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = ssh://[server-URL]/[remote-repo-directory]
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "dev"]
remote = origin
merge = refs/heads/v1.0-7.22-dev