Git命令

Git可以pull和push远程仓库
常用的Git命令

基础配置

1
2
git config --global user.name "你的名字或昵称"
git config --global user.email "你的邮箱"

初始化

1
git init

将所有文件添加到暂存区

1
git add .

将暂存区的文件添加到本地仓库

1
git commit -m

添加远程仓库

1
git remote add origin <你的项目地址>

仓库路径查询

1
git remote -v
作者

Smaritron

发布于

2025-02-22

更新于

2025-02-22

许可协议