摘要: git commit --amend --no-edit 比如当前有一个提交 git commit -m 'add readme' , 但敲下这条命令才发现,readme中漏写了一行。 这时不需要撤销提交,也不需要新的提交,更改之后使用上述命令即可在同一个提交中追加内容。当然,这仅仅适用于细微的更改 阅读全文
posted @ 2021-06-23 16:17 略略略—— 阅读(223) 评论(0) 推荐(1) 编辑
摘要: 出错的git命令: git push -u origin main解决方法:git show-ref8c4c7afc8d831dcba4f8989e39eb8286c1657439 refs/heads/master新命令:git push -u origin master成功解决参考:https: 阅读全文
posted @ 2021-06-23 16:07 略略略—— 阅读(2862) 评论(0) 推荐(0) 编辑
摘要: 根据https://spring.io/guides/gs/serving-web-content/ 的步骤,运行后输入http://localhost:8080/hello 或http://localhost:8080/hello?name=sdaa 等 出现错误(网页出现http 500错误): 阅读全文
posted @ 2021-06-23 15:31 略略略—— 阅读(108) 评论(0) 推荐(0) 编辑