1、创建本地库 2、git add,git commit,写上commit message,点击commit; 3、右下角新建分支,分支名字就是Git上分支的名字 4、git -》repository-》push,点击 define remote(填写gitlab的库的url地址),由于你现在是在和远程分支名称一样的本地分支上,会发现他上传显示的就是origin/分支名称,选择刚刚的commit message,点击push。 相关文章: