gitbash使用git 命令的准备工作

1、git下载

2、git clone http://git.missfresh.cn/...

  配置用户名密码

3、git  常用命令简写配置

  git config --global alias.st status

彩蛋

  SSH keys 允许在计算机和GitLab之间建立安全的连接,添加SSH key之前现需要生成一个。

  #检查系统是否已经有SSH key

  cat ~/.ssh/id_rsa.pub

  #创建SSH key

  ssh-keygen -t rsa -C "$your_email"

  #展示public key

  cat ~/.ssh/id_rsa.pub

猜你喜欢

转载自www.cnblogs.com/wenhandi/p/9416101.html