简易的git命令行入门教程

一、Git 全局设置

git config --global user.name "用户名"
git config --global user.email "邮件地址@163.com"

二、创建 git 仓库

mkdir 项目名
cd 项目名
git init 
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/用户名/项目名.git
git push -u origin "master"

三、已有仓库?

cd existing_git_repo
git remote add origin https://gitee.com/用户名/项目名.git
git push -u origin "master"

猜你喜欢

转载自blog.csdn.net/weixin_44778232/article/details/128886881