Git 命令初步

2020-03-20  本文已影响0人  oneoverzero

Git 全局设置:

git config --global user.name <your_user_name>
git config --global user.email <your_email>

创建 git 仓库:

mkdir <dir_name>
cd <dir_name>
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/<your_user_name>/<dir_name>.git
git push -u origin master

如果已有仓库:

cd existing_git_repo
git remote add origin https://gitee.com/<your_user_name>/<dir_name>.git
git push -u origin master
上一篇 下一篇

猜你喜欢

热点阅读