简易的命令行入门教程(来自gitee)

简易的命令行入门教程(参考gitee)

git config --global user.name "姓名"
git config --global user.email "邮箱"

创建 git 仓库

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

已有仓库

cd repo_dirName
git remote add origin https://gitee.com/xxx.git
git push -u origin master
posted @ 2021-09-17 10:30  pizisu  阅读(85)  评论(0编辑  收藏  举报