git 简易命令,从本地写代码,上传到 git 远处仓库 (只有本地代码,gitee上新建一个仓库,然后这样操作就可以上传到git仓库)

Git 全局设置:

git config --global user.name "乔茁"
git config --global user.email "1198604997@qq.com"

创建 git 仓库:

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

已有仓库?

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

版权声明:本文为qq_40137978原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。