Git命令

时间:2021-04-25 14:15:15   收藏:0   阅读:26

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

 

原文:https://www.cnblogs.com/Tiffany-YZ/p/14699906.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!