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.
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events