I am getting this error message
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://Dhanu36@bitbucket.org/Dhanu36/git-test.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Hello @Dhanunjaya Kammara,
Welcome to the Community.
This error means that the branch you're trying to update (master) has been updated by someone else since the time you last fetched its state. So basically, your "state" of that branch is older (or behind, in other words) its state in the remote repository (on Bitbucket).
You have several options at this point, but there's no universal recipe: the strategy to resolve this situation depends on the way you and others work on the repository and obviously on what changes have been applied externally. Please see this article to learn more about different strategies of pulling changes from remote repository.
Hope this helps. Let me know if you have any questions.
Cheers,
Daniil
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.