Update
Output from above:
+ git status
HEAD detached from origin/test-passed
nothing to commit, working directory clean
+ git reset --hard
HEAD is now at 16a2d8d updated version
+ git pull origin test
From ssh://github.com/myrepo.git
* branch test -> FETCH_HEAD
Already up-to-date.
+ git checkout origin/test
HEAD is now at 16a2d8d... updated version
+ git pull origin test-passed
From ssh://github.com/myrepo.git
* branch test-passed -> FETCH_HEAD
Already up-to-date.
+ git checkout origin/test-passed
Previous HEAD position was 16a2d8d... updated version
HEAD is now at 2aa260d... Merge branch 'dev-integration' into test
+ git merge origin/test
Updating 2aa260d..16a2d8d
Fast-forward
app/application.properties | 8 ++++----
4 files changed, 14 insertions(+), 5 deletions(-)
+ git push origin HEAD:test-passed
To ssh://[email protected]/myrepo.git
2aa260d..16a2d8d HEAD -> test-passed
+ git status HEAD detached from origin/test-passed nothing to commit, working directory clean + git reset --hard HEAD is now at 16a2d8d updated version + git pull origin test From ssh://github.com/myrepo.git * branch test -> FETCH_HEAD Already up-to-date. + git checkout origin/test HEAD is now at 16a2d8d... updated version + git pull origin test-passed From ssh://github.com/myrepo.git * branch test-passed -> FETCH_HEAD Already up-to-date. + git checkout origin/test-passed Previous HEAD position was 16a2d8d... updated version HEAD is now at 2aa260d... Merge branch 'dev-integration' into test + git merge origin/test Updating 2aa260d..16a2d8d Fast-forward app/application.properties | 8 ++++---- 4 files changed, 14 insertions(+), 5 deletions(-) + git push origin HEAD:test-passed To ssh://[email protected]/myrepo.git 2aa260d..16a2d8d HEAD -> test-passed