# Java_2020 **Repository Path**: 8686555/Java_2020 ## Basic Information - **Project Name**: Java_2020 - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2020-05-07 - **Last Updated**: 2021-06-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 简易的命令行入门教程: ## Git 全局设置: ``` git config --global user.name "123456" git config --global user.email "123456@126.com" ``` ## 创建 git 仓库: ``` mkdir ruoyi-plus cd ruoyi-plus git init touch README.md git add README.md git commit -m "first commit" git remote add origin https://gitee.com/123456/ruoyi-plus.git git push -u origin master ``` ## 已有仓库? ``` cd existing_git_repo git remote add origin https://gitee.com/123456/ruoyi-plus.git git push -u origin master ``` # 问题: ## 1.git push错误failed to push some refs to的解决方案 这个问题是因为远程库与本地库不一致造成的,那么我们把远程库同步到本地库就可以了。 使用指令 **注意:此处我使用的是master分支,请根据自己的开发分支更换分支。** ``` git pull --rebase origin master ```