1.IDEA篇
1.1快捷键
alt+7或者ctrl+f12查看源码大纲
ctrl+art+v 自动生成等式左边的数
ctrl+d 微服务启动多次
ctrl+alt+u 或者ctrl+shift+alt+u 显示当前类的继承关系图 ctrl+h类似
alt+enter 生成javadoc 文档注释
git的使用
git的流程
git init 、git clone
git add 、 git commit
git status 查看文件状态
git本地仓库常用命令
远程仓库操作命令
注意事项
分支操作的命令
处理分支冲突
标签
git常见问题
代码中有敏感信息(例如 阿里云的账号和密钥)
Enumerating objects: 576, done.
Counting objects: 100% (576/576), done.
Delta compression using up to 16 threads
Compressing objects: 100% (431/431), done.
Writing objects: 100% (575/575), 78.14 MiB | 11.51 MiB/s, done.
Total 575 (delta 67), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (67/67), done.
remote: error: GH013: Repository rule violations found for refs/heads/main.
remote:
remote: - GITHUB PUSH PROTECTION
remote: —————————————————————————————————————————
remote: Resolve the following violations before pushing again
remote:
remote: - Push cannot contain secrets
remote:
remote:
remote: (?) Learn how to resolve a blocked push
remote: https://docs.github.com/code-security/secret-scanning/pushing-a-branch-blocked-by-push-protection
remote:
remote:
remote: —— Alibaba Cloud AccessKey ID ————————————————————————
remote: locations:
remote: - commit: cbe40e8a26f057264bd90ac00583e4ddc0fdb352
remote: path: douyin_service/douyin_user/src/main/java/com/bruce/utils/AliOssUtil.java:18
remote:
remote: (?) To push, remove secret from commit(s) or follow this URL to allow the secret.
remote: https://github.com/brucecxm/brucecxm-bruce-douyin/security/secret-scanning/unblock-secret/2kaqPMTWJ4d6sDI9zyiMurEOHNS
remote:
remote:
remote: —— Alibaba Cloud AccessKey Secret ————————————————————
remote: locations:
remote: - commit: cbe40e8a26f057264bd90ac00583e4ddc0fdb352
remote: path: douyin_service/douyin_user/src/main/java/com/bruce/utils/AliOssUtil.java:19
remote:
remote: (?) To push, remove secret from commit(s) or follow this URL to allow the secret.
remote: https://github.com/brucecxm/brucecxm-bruce-douyin/security/secret-scanning/unblock-secret/2kaqPKIrbWajknlcYSyYANvtQfi
remote:
remote:
remote:
To https://github.com/brucecxm/brucecxm-bruce-douyin.git
! [remote rejected] main -> main (push declined due to repository rule violations)
error: failed to push some refs to 'https://github.com/brucecxm/brucecxm-bruce-douyin.git'
win10配置WSL环境
WSL环境比vm虚拟机相比有很多好处
这里为大家介绍如何配置此环境
右键windows键 点击启动和功能
点击右上角程序和功能 再点击启动或关闭window功能
然后重新启动
打开window商店并搜索下载ubuntu
然后就能在cmd中使用ubuntu啦
VM虚拟机快照
在实际开发过程中 linux系统经常会被损坏 因此有一个能够恢复linux状态的功能就非常重要
正好vm提供了这么一个功能 接下来将给大家介绍如何使用
1.点击虚拟机中的快照
2.点击拍摄快照 记录当前linux状态
3.需要恢复状态则点击快照管理 选择你需要的位置 双击点击恢复即可