$ git clone https://github.com/runmoon/lasoo
从远程仓库复制项目到电脑本地,同时本地初始化;会在电脑中创建.git文件夹,.git文件夹会存放好这个仓库的基本配置
$ git init “regression”
—— Initialized empty Git repository in C:/Users/Lu honghao/regression/.git/
$ git remote add origin https://github.com/runmoon/regression
——配置远程仓库的地址
新建一个全新的项目,会在电脑中创建.git文件夹
$ git add .
将本地项目保存至暂存区
$ git commit -m
将代码从暂存区正式提交至本
$ git push
将本地项目上传至远程仓库
$ git pull
拉取/同步远程仓库的代码到本地,避免下一次提交时发生冲突;每次开发前和提交前都应该pull一下
$ git config --global user.email “you@example.com”
$ git config --global user.name “Your Name”
to set your account’s default identity.
Omit --global to set the identity only in this repository.
$ git config --global user.name “Your Name”
https://www.bilibili.com/video/BV117411b7q5/?spm_id_from=333.788.videocard.2