gitlab第一次提交

     1、git init把它变成Git仓库;

     2、git add .把项目添加到仓库;

     3、git commit -m "first commit"把项目提交到仓库;

     4、git remote add origin https://github.com/xxxxxx.git将本地仓库和远程仓库进行关联;

     5、git push -u origin master把本地仓库的项目推送到远程仓库(也就是Github)上;

  6、若新建远程仓库的时候自动创建了README文件会报错,可以通过以下命令先将内容合并以下

  git pull --rebase origin master

    7、再次push

猜你喜欢

转载自www.cnblogs.com/yuzhen0228/p/11310113.html