1. git使用
1.1. gitee上传代码
1.1.1. https方法
1、在项目目录下执行初始化本地库
git init
2、输入个人信息(代码提交者)
git config --global user.name "fazcube"
git config --global user.email 1473074805@qq.com
3、添加本地文件(注意这个点)
git add .
4、添加此次更新的内容备注
git commit -m "添加此次更新的内容备注"
5、本地库连接远程库
git remote add origin https://gitee.com/xxx
6、提交到码云(远程库)
git push -u origin master
7、如果报错执行
git pull origin master --allow-unrelated-histories
1.1.2. 一些报错
1、提示origin已存在:git remote rm origin
2、remote: Invalid username or password.fatal: Authentication failed for ‘xxx’
身份验证失败,输入以下代码重新push,会重新验证身份。
git config --system --unset credential.helper
JAVA的模板 忽略文件
# Compiled class file
*.class
# Eclipse
.project
.classpath
.settings/
# Intellij
*.ipr
*.iml
*.iws
.idea/
# Maven
target/
# Gradle
build
.gradle
# Log file
*.log
log/
# out
**/out/
# Mac
.DS_Store
# others
*.jar
*.war
*.zip
*.tar
*.tar.gz
*.pid
*.orig
temp/