type
status
date
slug
summary
tags
category
icon
password
本节主要展示git初始化级创建本地仓库的基本操作。
📝 流程展示
1.2本地仓库操作
(1)在安装好后首次使用需要先进行全局设置
注册指令和打印指令:

(2)创建仓库
a.创建仓库(空目录):mkdir 仓库名(目录名)

b.进入目录:cd 目录名
c.Git仓库初始化:
(注意:要设定显示隐藏文件夹,我们才能看到那个.git文件夹)

🤗 总结归纳
本节展示了如何初始化git以及创建git本地仓库的方法。注意git初始化,输入自己的邮箱及昵称就行(最好与GitHub的绑定邮箱及昵称相同)。
创建本地仓库是,需明确需要将哪个文件夹作为根目录(一般即工程项目的根目录)。
📎 参考文章
有关git安装或者使用上的问题,欢迎您在底部评论区留言,一起交流~
- Author:Naipings
- URL:https://naipings.cn/article/git02
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!
Relate Posts