Git 工具在Linux 上是集成的,只要cmd命令行执行 sudo apt-get install git-core 命令即可。

Windows 系统需要到 https://git-for-windows.github.io/ 进行下载即可,页面如下(直接按download进行下载即可):

Git下载工具地址及其简单命令

 创建提交用户名和邮箱

git config --global user.name "Tony"

git config --global user.email "[email protected]"

 

在指定文件夹创建git 仓库,进入指定文件夹鼠标右键单击选中 Git Base Here 执行一下语句即创建完成

git init 

全部提交代码到本地仓库

git add .        需要先全部添加

git commit -m "First commit" 提交到本地  "" 双引号里面填写的是提交自己标注的日志信息

关于git 先说到此,如有疑问可查找    郭霖      的个人博客,他哪里有详细的解释。

 

 

 

 

 

相关文章:

  • 2021-11-21
  • 2021-12-05
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
猜你喜欢
  • 2021-12-23
  • 2021-12-01
  • 2021-12-05
  • 2021-04-11
  • 2021-08-10
  • 2022-01-22
  • 2021-09-20
相关资源
相似解决方案