Andreas Schwab <schwab <at> linux-m68k.org> writes: > > Jingzhao Ou <jingzhao.ou <at> gmail.com> writes: > > > I guess somehow, git is confused by "origin/dev/main" and > > "origin/remotes/origin/dev/main". Especially, it cannot identify the latter > > properly. > > Try fully qualifying the remote branch (beginning with refs/heads/). > > Andreas. > Hi, Andreas, Yes, using the absolute path works like a champ! git push origin :refs/heads/remotes/origin/dev/main Thanks a lot for your help! Jingzhao -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html