Git简易的命令行入门教程

Git 全局设置:

git config --global user.name "车厘子"
git config --global user.email "xxx@outlook.com"

创建 git 仓库:

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

已有仓库?

cd existing_git_repo
git remote add origin https://gitee.com/jingsupo/working.git
git push -u origin master

 

posted @ 2020-06-28 15:57  jingsupo  阅读(45)  评论(0编辑  收藏
我要啦免费统计