首页 > 其他 > 详细

git 相关命令

时间:2021-04-01 14:11:53      阅读:23      评论:0      收藏:0      [点我收藏+]

git 提交代码到远程仓库

  1. git add .
  2. git commit -m ‘提交内容文案‘
  3. git push origin(远程仓库代称) 上传的分支名称

git 拉取远程仓库代码到本地

git pull origin(远程仓库代称) 要拉取的分支名称

git 查看本地分支

git branch

git 更新本地的远程分支列表

git remote update origin(远程仓库代称) -p

gIt 撤销合并状态

git merge --abort
使用场景:拉取了远程仓库分支的代码,然后想要回撤,在还没有push的时候,需要输入这一行命令,来取消之前操作的merge命令。

git 相关命令

原文:https://www.cnblogs.com/cubemmc/p/14605306.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!