使用Git创建项目
程序员文章站
2022-05-07 16:28:36
...
SSH HTTPS private
Git global setup:
git config --global user.name "agilejzl" git config --global user.email "agilejzl@gmail.com"Create Repository
mkdir demo cd demo git init touch README git add README git commit -m 'first commit' git remote add origin git@gitlab.com:agilejzl/demo.git git push -u origin masterExisting Git Repo?
cd existing_git_repo git remote add origin git@gitlab.com:agilejzl/demo.git git push -u origin master