Github提交代码及分支管理

时间:2023-03-08 20:13:52

#提交代码
cd <Cat>
git init
git add .
git status
git commit -m "注释"
git remote add origin <address>
git push origin <branchName>

Github提交代码及分支管理

Github提交代码及分支管理

Github提交代码及分支管理

Github提交代码及分支管理

#查看所有的分支
git branch -a

#查看远程分支
git branch -r  
Github提交代码及分支管理#创建远程分支
git branch <branchName>
git push origin <branchName>

#删除远程分支
git push origin --delete <branchName>

#创建本地分钟
git branch <branchName>

#删除本地分支
git branch -d <branchName>

Github提交代码及分支管理