Git 使用 git init 命令来初始化一个 Git 仓库

git init

命令行输出

Git创建仓库


在版本库中创建文件

echo demo1 > demo1.txt
echo readme > README
dir

命令行输出

Git创建仓库


将文件纳入版本控制

git add demo1.txt
git add README
git commit -m "初始化项目版本"

命令行输出

Git创建仓库


从现有 Git 仓库中拷贝项目

 git clone [email protected]:zhuzhufuzhuzhu/learngit

命令行输出

Git创建仓库

Git创建仓库

Git创建仓库


本文转自 素颜猪 51CTO博客,原文链接:http://blog.51cto.com/suyanzhu/1907122


相关文章:

  • 2021-09-02
  • 2021-09-06
  • 2021-12-27
  • 2021-08-03
  • 2021-05-14
  • 2022-02-13
  • 2021-07-09
猜你喜欢
  • 2021-12-16
  • 2021-08-04
  • 2021-12-13
相关资源
相似解决方案