1.先创建本地分支
git branch branchname
2.将文件全部提交到本地仓库
初始化git
git init
将文件添加到暂存区
git add .
将文件提交到仓库中
git commit -m "修改信息"
3.关联远程仓库
git remote add origin 仓库地址
4.将本地分支提交到远程仓库上
git push -u origin branchname
1.先创建本地分支
git branch branchname
2.将文件全部提交到本地仓库
初始化git
git init
将文件添加到暂存区
git add .
将文件提交到仓库中
git commit -m "修改信息"
3.关联远程仓库
git remote add origin 仓库地址
4.将本地分支提交到远程仓库上
git push -u origin branchname