git创建本地分支并提交到远程

创建本地分支

git branch local_branch_name

切换到本地分支

git checkout local_branch_name

提交代码

git add .
git commit -m "commit_message"

添加远程信息

git remote add origin remote_git_address

提交到远程

git push origin local_branch_name:remote_branch_name

你可能感兴趣的:(开发环境安装,git)