Git

git config 配置

config --global user.name "YourName"
git config --global user.email "YourEmail@xxx.com"

git add

git add + 文件名/目录名 命令

git commit

git commit -m "first commit"

连接 GitHub 仓库

示例1

示例2

push 命令

git push -u origin main

git clone 命令

git clone [url]

示例3

上一篇
下一篇