1、首先Gitee先创建一个仓库
git config --global user.name "jak" git config --global user.email "974563666@qq.com"
第三步:初始化Git,此时会生成.git文件夹git init
git add git.java git commit -m "first commit"
git remote add origin https://gitee.com/jakhyd/git_command.git
git push -u origin master
git push -u origin master -f
git pull origin master --allow-unrelated-histories
git config --global user.name "jak"
git config --global user.email "***********@qq.com"
mkdir best
cd best
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/jakhyd/best.git
git push -u origin master