To github.com:holidaylandmark/holiday.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'github.com:holidaylandmark/holiday.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.

Solution
git push -f, a force push to update the remote (origin) branch.
1. Take a backup if you're working on feature branch and switch to master/develop branch by doing git checkout develop/master
2. Do git pull
3. You will get changes and merge conflicts occur when you have made changes in the same file which has not been rebased from develop/master
4. Resolve the conflicts if it occurs and do git push,this should work

I’m Abhishek, a DevOps, SRE, DevSecOps, and Cloud expert with a passion for sharing knowledge and real-world experiences. I’ve had the opportunity to work with Cotocus and continue to contribute to multiple platforms where I share insights across different domains:
-
DevOps School – Tech blogs and tutorials
-
Holiday Landmark – Travel stories and guides
-
Stocks Mantra – Stock market strategies and tips
-
My Medic Plus – Health and fitness guidance
-
TrueReviewNow – Honest product reviews
-
Wizbrand – SEO and digital tools for businesses
I’m also exploring the fascinating world of Quantum Computing.