其他分享
首页 > 其他分享> > Git命令

Git命令

作者:互联网

1.git fatal: The upstream branch of your current branch does not match the name of your current branch

参考https://stackoverflow.com/questions/24864700/fatal-the-upstream-branch-of-your-current-branch-does-not-match-the-name-of-you

git push时和远程仓库分支对不上

使用git push origin 本地分支名:远程分支名

PS E:\code\proj\vuey> git branch -a
* dev1
  master
  remotes/origin/HEAD -> origin/master
  remotes/origin/dev1
  remotes/origin/feature-vuey-v1.0.0-20200425
  remotes/origin/master
PS E:\code\proj\vuey> git push origin dev1:feature-vuey-v1.0.0-20200425
Everything up-to-date

 

标签:origin,Git,your,命令,remotes,git,branch,vuey
来源: https://www.cnblogs.com/Tiffany-YZ/p/14699906.html