git 上传项目到分支

来源:互联网 发布:实矩阵的奇异值分解 编辑:程序博客网 时间:2024/06/04 18:55
 - git init - git add . - git commit -m'代码描述' - git remote add origin 远程仓库地址 - git branch xxx  # 创建新分支 - git checkout xxx  # 转换到新建分支下,也可以一步到位 git checkout -b xxx - git push -u origin xxx

补充:

git branch  # 查看分支 
原创粉丝点击