文件名 .gitignore
文件位置:readme.md文件同层
文件内容:
.idea/
*.iml
/**/.settings
/**/.project
.flattened-pom.xml
target/
git回滚已经push到远程的代码(只回滚远程)
git log //查询commitId(最上面是最近一次提交)
git reset --hard [commit id] //回退本次提交
git push --force //强制push本地修改到远程
git拉取远程分支或者创建远程分支和本地分支进行开发
git checkout -b 本地分支 origin/远程分支 //会关联本地分支与远程分支
其他方式新建远程和本地分支
查询分支关联关系
git branch -vv
查询所有分支
git branch -a
查询远程分支
git branch -r