首页 > 其他 > 详细

工程化专题之git

时间:2018-10-24 10:37:46      阅读:132      评论:0      收藏:0      [点我收藏+]

1 svn:

  1)中心化版本控制,只有server知道版本的变化信息,push和pull需要联网

  2)server硬盘坏了怎们办

2 安装:

  1)git config –-global user.name ‘xx’

  2)git config –-global user.email ‘xx’

  3)ssh-keygen -t rsa -C ‘123@qq.com‘ 生成密钥公钥,位于~/.ssh

3 常用命令:

  1)git status 查询当前状态

  2)git remote

    a) git clone

    b)git init

    c)git remote add origin url

    d)git push -u origin master

  3)git fetch/pull/push

  4)回滚:git reset --hard 提交版本号

        git push -f origin master

  5)git checkout

    a)切分支

    b)撤销本地修改

  6)git commit --amend

  7)git merge 合并分支

技术分享图片

 

  8)git rebase 变基

 技术分享图片

9)git tag 

10)git alias 组合命令并起别名

11)git config --list

4 gitlab

5 git hooks

6 git-flow

技术分享图片

 

工程化专题之git

原文:https://www.cnblogs.com/winner2016/p/9834448.html

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