Git常用命令

1、克隆代码到本地

git clone http://xxxxx.git

2、拉取代码

git pull

3、提交代码

3.1、提交

git add .
git commit -m "feat: *"
git push

3.2、提交规范

4、本地创建分支并指向远程已有分支

git checkout -b 本地分支名 origin/远程分支名
posted @ 2025-09-26 11:10  Bruce.Chang.Lee  阅读(13)  评论(0)    收藏  举报