Git 基本配置

STEP 0. 注册 GitHub or GitLab

 

STEP ①. 安装Git工具

Git : https://git-scm.com/ or  https://git-for-windows.github.io/ or https://gitforwindows.org/

 

STEP ②. 创建分支

 

 

 

STEP ③. 可以按照GitHub推荐的 Quick setup, 配合VS Code,快捷键 Ctrl+Shift+Y,呼出控制台,转至项目目录,输入Git命令。

 

Hint:Win10系统下使用管理员权限运行VS Code。

当按照GitHub教程,输入至 git commit -m "first commit" 时,初次或者在新电脑配置时,要配置Git账号信息

git config --global user.email "登录账号"  

git config --global user.name "账号名称"

再次运行 git commit -m "first commit"

 

就可以通过VS Code自带的Git工具进行手动的代码上传,会方便很多。

 

At the end:

推荐两个VS code 的Git插件:

① Git Graph

② Git History

 

posted @ 2022-03-01 23:50  NeoZhang  阅读(156)  评论(1)    收藏  举报