An error is displayed when pushing with git.
There are remote branches A, B, C.
When pushing from the local B branch to the remote C branch, it is rejected and the following error is displayed:
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.
It's been 3 weeks since I first used git, so I don't understand what this error means.
I would like you to point out your comments, including how to ask questions.
Answer # 1
In short, there are remote changes that you don't have. So it is written that
git pulltakes changes.
At that time, there is a possibility of conflicting with the commit at hand, but at that time, cancel the conflict, create a merge commit, and push it.
By the way
Push from local B branch to remote C branch
funny? Usually push from a local B branch to a remote B branch
- i get an error when i compile
- i get an error when packaging ue4
- i get an error when i use typescript map
- ruby - i get an error when rails edit is
- python - i get an error when i do driverget () in a for loop
- php - i get an error when uploading a file with ajax
- ruby on rails - i get an error when i log in
- java - i get an error when i run tomcat and i don't know what to do
- ruby - i get an error when i run rails db: seed
- python - i get a 500 error when outputting csv
- python - i get an ssl error when pip install
- linux - i get an error when vagrant up
- i get an error when i try to compile
- macos (osx) - i get an error when i open the terminal
- github - i want to fix a permission denied (public key) error
- error when executing sql in php
- github - error in writing workflows in circleci/configyml
- error when changing github username
- i'm not getting a 404 error on github pages
- java - error when declaring and how to use this
- github - i am a beginner git push can't solve the error! help me!
- how to publish unity browser games on github
- python - git deploy error: failed to push some refs to
- github desktop app does not detect files
- github - how to cancel git reset --hard orig_head
- github - cancel marge commit? want to
- macos (osx) - can't git clone from github
- does it make sense to create multiple branches in a remote repository on github?
- access to remote repository is denied due to ssh key problem when using multiple github accounts
- attempting to push when using multiple github accounts is denied by another account