git 命令速查表

已有仓

cd existing_git_repo
git remote add origin https://gitee.com/dashixiong51/test.git
git push -u origin "master"

创建 git 仓库:

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

全局配置

git config --global user.name "吃瓜群众"
git config --global user.email "pppgyas@126.com"
Last Updated:
Contributors: 刘荣杰