Skip to content

Instantly share code, notes, and snippets.

@tbureck
Last active September 4, 2016 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbureck/faec342cc2459901db6bfdb42fa8ed00 to your computer and use it in GitHub Desktop.
Save tbureck/faec342cc2459901db6bfdb42fa8ed00 to your computer and use it in GitHub Desktop.
team-tbureck-de
# teamcity at team-tbureck-de in ~/gittest/diversity on git:eca99ff ● [13:02:35]
→ git push ../common-test split/common-library:master
To ../common-test
! [rejected] split/common-library -> master (fetch first)
error: failed to push some refs to '../common-test'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
team-tbureck-de
# teamcity at team-tbureck-de in ~/gittest/diversity on git:eca99ff ● [13:02:49]
→ git fetch ../common-test
warning: no common commits
remote: Counting objects: 2, done.
remote: Total 2 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (2/2), done.
From ../common-test
* branch HEAD -> FETCH_HEAD
team-tbureck-de
# teamcity at team-tbureck-de in ~/gittest/diversity on git:eca99ff ● [13:03:06]
→ git push ../common-test split/common-library:master
To ../common-test
! [rejected] split/common-library -> master (non-fast-forward)
error: failed to push some refs to '../common-test'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
# teamcity at team-tbureck-de in ~/gittest/diversity on git:eca99ff ● [13:12:05]
→ git push --force ../common-test split/common-library:master
error: unable to push to unqualified destination: master
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to '../common-test'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment