上传本地项目到Gitlab

舞步林云 / 2023-05-23 / 原文

$ git config --global user.name "yangkai"

$ git config --glogal user.email "yangkai@ww.com"

$ git init

$ git add .

$ git commit -m "First commit"

$ git remote add origin http://192.168.0.86/yangkai/mbpt.git

$ git status

$ git commit -m 注释

$ git pull

$ git push -u origin HEAD:master --force