I am using TortoiseGit on Windows 10 machine. I cloned a remote repo (a BitBucket one) to my local machine. Now in local repo I have created a tag which I want to push to remote repo. But remote repo now has some changes since I cloned it last time and I dont have those changes in my local repo and I dont want them in my local repo for now.
So I try to push my local tag to remote using TortoiseGit (Right-click on any white space to open right-click menu, then click on TortoiseGit --> Push... menu option, this open Push window, in Push window select the Include Tags option, then click OK button). But TortoiseGit rejected it and give an error
[new tag] v3.2.0.1 -> v3.2.0.1
! [rejected] master -> master (fetch first)
Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to the same ref. You may want to first integrate the remote changes (e.g., 'git pull...') before pushing again. See the 'Note about fast-forwards' in 'git push --help' for details.git did not exit cleanly (exit code 1) (8203 ms @ 2020-03-04 8:59:45 AM)
How can I solve this issue? I dont want to pull latest data from remote repo to my local repo, I just want to push my local tag to remote and nothing else.