美文网首页
2018-05-14

2018-05-14

作者: 流年扶苏 | 来源:发表于2018-05-14 14:43 被阅读0次

删除远程分支:

  1. git push 远程仓库 --delete 远程分支
  2. git push 远程仓库:远程分支

本地分支重命名:git branch -m 本地旧分支 本地新分支

查看分支关联信息:

  1. git remote show 远程仓库
  2. git branch -vv

建立分支关联:

  1. 第一次push的时候加-u:git push -u 远程仓库 本地分支:远程分支

当前目录的所有文件中查找字符串:grep -rn "字符串" *
-i忽略大小写

相关文章

网友评论

      本文标题:2018-05-14

      本文链接:https://www.haomeiwen.com/subject/gxxjdftx.html