git 创建仓库

Git Bash

git config --global user.name "jus" git config --global user.email "333@qq.com"

创建 git 仓库:

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

已有仓库?

cd existing_git_repo
git remote add origin git@gitee.com:ja/qct.git

  git pull origin master

  git branch --set-upstream-to=origin/master

  git pull


git push -u origin "master"
原文地址:https://www.cnblogs.com/102442/p/15810471.html