I am trying to push code to a remote repo -
git push uat release/1.1:release
Counting objects: 4047, done.
Delta compression using up to 2 threads.
Compressi
I suspect you have other branches named release/<something>
on your uat
remote. The push
command you are running is trying to convert a local branch release/1.1
into a remote branch release
, but the remote refuses to remove release/<something>
because that would lose information. Try git push uat release/1.1:newrelease
or something similar to avoid the conflict of trying to have a single branch named the same thing as a "subdirectory" containing other branches (it's not truly a subdirectory, but the way git
works internally, it is sometimes stored as an actual subdirectory).
git remote show uat
or git branch -r
will show you what branches your uat
remote has.