git手顺

国内镜像下载地址:

  https://github.com/waylau/git-for-win

设置用户名

  git config --global user.name

设置邮箱

  git config --global user.email

查询用户名和邮箱

  git config user.name, git config user.email

创建本地仓储repository

  git init

提交

  git commit -m “message”

创建SSH

  ssh-keygen -t rsa -C "mail"

github上设置ssh

关联本地仓储

  git remote add origin “adress”

连接一次保存用户名密码

  git config --global credential.helper store

用vscode git插件

原文地址:https://www.cnblogs.com/have-a-try/p/12813170.html