GIT 的基础使用

1. gitee的使用

打开网页,注册用户,登录后,创建仓库

https://gitee.com/

 点击+号创建仓库,创建名称自已定义。

 创建后的页面:

 

 

2. git 安装

  https://www.jianshu.com/p/414ccd423efc

 

 3. git 拉取仓库

在一个文件夹中右键,打开git bash 命令窗口

 

3. 执行 第一步完成后的,下载仓库地址的命令。

git clone https://xxxxxxxxxxxxxxxxxxx.git

 

 

4. 用vscode打开,并编辑代码。代码完成后,提交代码

提交代码命令

# 代码暂存
git add .

# 代码提交到本地
git commit -m '自已填写修改的代码功能描述'


# 代码提交到服务器
git push 

 

posted @ 2025-02-17 11:07  无心々菜  阅读(13)  评论(0)    收藏  举报