// 账户设置 git config --global user.name "ZeyFra" git config --global user.email "zeyfra@163.com" // 初次创建仓库和提交 git init touch README.md git add README.md git commit -m "message" git remote add origin https://gitee.com/zeyfra/xxx.git git push -u origin master // 已有仓库提交 git remote add origin https://gitee.com/zeyfra/xxx.git git push -u origin master // ! [rejected] master -> master (fetch first) git pull git push origin master // ! [rejected] master -> master (fetch first) git pull origin master --allow-unrelated-histories //把远程仓库和本地同步,消除差异 git add . git commit -m "message" git push origin master
Git常用命令【ZeyFra】
内容版权声明:除非注明,否则皆为本站原创文章。