Git SSH 配置详细教程
配置 Git SSH 密钥的步骤如下,适用于 GitHub、GitLab 等平台: 一、生成 SSH 密钥 打开终端(Windows:Git Bash / CMD;Mac/Linux:Terminal) 生成密钥(替换邮箱): 1ssh-keygen -t ed25519 -C "your_email@example.com" 提示保存位置:按 Enter 使用默认路径 ~/.ssh/id_ed25519 设置密码(可选):为密钥增加额外保护 💡 如果系统不支持 Ed25519,改用 RSA:ssh-keygen -t rsa -b 4096 -C "your_email@example.com" 二、将公钥添加到 Git 平台 复制公钥内容:1234567# macOS/Linuxcat ~/.ssh/id_ed25519.pub | pbcopy# Windows (Git Bash)cat ~/.ssh/id_ed25519.pub | clip# 或手动打开文件复制 添加到平台: GitHub:S...
定投指数基金,止盈做不好等于几年白玩
定投指数是一件正确的事,长期定投肯定不会亏钱。但是赚多赚少之间却有很大差别,有可能盆满钵满,也有可能一路白玩,其中关键是不但要克服贪婪,还要有一个有效的止盈策略。 我的止盈策略我的定投指数基金止盈策略是年化收益率达到15%就锁定收益。 我的结果我分别定投的几支基金:上证50、创业板、沪深300、中证500,多年定投下来的结果如下。 上证50:2021年2月份,年化收益26.24%的时候赎回本金,留下收益,继续定投,留下来的部分是为了避免踏空未来出现长牛的行情。 之后便是一路下跌,到目前(2025年6月)为止总收益率-14.09%,年化收益率-3.23%,相当于之前赚的收益又被吃回去了一部分。 4年多的时间一直在坑里,假设现在要达到年化15%,需要指数提高75%,75%是这样算的,75% = 4 * 15% + 14.09%因为已经过去了4年,假设年化15%,就是4 * 15%,在这基础上还要填平这4年的坑亏损的14.09%,所以还要加上这14.09%。如果希望1年后达成年化15%的目标,就需要现在的指数在1年后上涨 75% + 15% (90%),n年后达成就意味着指数...
Read Me
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment