Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 320 Bytes

Git命令.md

File metadata and controls

19 lines (14 loc) · 320 Bytes
#初始化
git init

#添加文件到暂存区
git add *

#将暂存区内容添加到仓库中
git commit -m

#远程连接
git branch -M main 让本地的仓库也是main可以直接push
git remote -v 查看连接的哪个仓库
git remote add origin ... 连接仓库

#push
git push -u origin main