gitbash使用git 命令的准备工作

1、git下载

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

  配置用户名密码

3、git  常用命令简写配置

  git config --global alias.st status

  git config --global alias.sp 'stash pop'

#当前用户的Git配置文件(放在用户主目录下的一个隐藏文件 .gitconfig中)
[alias] b
= branch ck = checkout ci = commit st = status sl = stash list sp = stash pop [user] email = xxxx03@xxxh.cn name = xxx

彩蛋1:

  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

彩蛋2:

  VScode扩展同步

  

彩蛋3:

  vscode git配置

原文地址:https://www.cnblogs.com/wenhandi/p/9416101.html