Git 如何初始化项目
程序员文章站
2022-05-21 09:43:49
...
A simple command-line tutorial:
Git global settings:
Create git repository:
Existing project?
Git global settings:
git config --global user.name "your user name" git config --global user.email "your email"
Create git repository:
mkdir Git-Test cd Git-Test git init touch README.md git add README.md git commit -m "first commit" git remote add origin https://gitee.com/username/you-git-url.git git push -u origin master
Existing project?
cd existing_git_repo git remote add origin https://gitee.com/username/you-git-url.git git push -u origin master