第一次在git bash上传时需要设置用户:
git config --global user.name "你的用户名"
git config --global user.email "你的邮箱"
以后上传按下面的操作即可
git init;
git add ./git add 文件名
git commit -m "提交名"
git remote add origin git@gitee.com:tianxiao-blue/ssm.git
git pull --allow-unrelated-histories
(git branch xxxx //创建本地分支
git checkout xxxx //切换到这个分支将本地分支推送到远程分支)
git push origin "master"