gitlab本地创建本地和远程分支以及提交本地代码到远程新分支

git checkout -b [branch name] (远程不需要新建分支)

git add .

git commit -m "提交更改的信息"

git push origin [branch name]

你可能感兴趣的:(gitlab,git,github)