Проблемы с получением локального Git Изменения в pu sh для удаленного филиала - PullRequest
0 голосов
/ 04 февраля 2020

У меня есть локальное Git репо, связанное с Azure Repos. У меня есть Master, Development и несколько веток функций. Я хочу записать все свои изменения в ветку разработки, а затем объединить их с Master.

Проблема в том, что мой статус git постоянно меняется с "... до даты ..." на "Ваша ветвь впереди ...". Если я использую git pull / git pu sh, мой статус git говорит, что все хорошо, но если я подожду несколько минут, статус git говорит, что моя ветвь снова впереди. Я не уверен, что я сломал.

$ git status

On branch development
Your branch is up to date with 'origin/development'.

nothing to commit, working tree clean


$ git status

On branch development
Your branch is ahead of 'origin/development' by 14 commits.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean


$ git branch -avv

  KJG---Initialize-expComputer                921b26b [origin/KJG---Initialize-expComputer] Updated output object
  KJG--Write-expLog                           cb0db50 [origin/KJG--Write-expLog] added test-function
  KJG-Continue-expComputer                    07a6edd [origin/KJG-Continue-expComputer] save
  NewFeature--Get-expADSite                   4c6d991 [origin/NewFeature--Get-expADSite] platyps update
* development                                 c38a0c5 [origin/development: ahead 14] !Deploy 4.1.4
  master                                      2e01d04 [origin/master: ahead 7] Merge branch 'master' of https://<The Azure Repo Path>
  remotes/origin/ARBranch                     7b4f849 removed mandatory bluebeam parameter from init-expComp
  remotes/origin/Development                  6e7b779 !Deploy 4.1.2
  remotes/origin/KJG---Initialize-expComputer 921b26b Updated output object
  remotes/origin/KJG--Write-expLog            cb0db50 added test-function
  remotes/origin/KJG-Continue-expComputer     07a6edd save
  remotes/origin/Master                       c33f046 Merge branch 'development' into Master
  remotes/origin/NewFeature--Get-expADSite    4c6d991 platyps update
  remotes/origin/NewFeature-expPing           2751a6d updated help

1 Ответ

0 голосов
/ 04 февраля 2020

Вы пробовали что-то явное, например git push origin development:development, чтобы убедиться, что ваша локальная ветвь development переведена в origin/development?

РЕДАКТИРОВАТЬ (04/02/2020): см. Мой комментарий ниже также об использовании development и Development в качестве двух названий вашей ветви

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...