跳到主要內容

Git 注意事項

使用 Git 的一些技巧

1. git pull 的時候可以用 --rebase 比較不會有多餘的 merge point

2. 善用 squash commit,squash 完心情都很好

3. commit 之前一定要先 format code 一次,不然多出來的 reformat commit 會很難整理

4. 拆 commit,盡可能讓每個 commit 都可以 build & test,也比較好回到上游

5. 如果 local 修改的整理過的 commit tree 要 rebase 上去就只能用 rebase onto

e.g.,

git fetch upstream

git checkout -B local-rebase-branch upstream/feature/binance-futures

git rebase -i upstream/main

.... 改改改

git push -f origin HEAD


-B 會洗掉原本就有的 local branch





留言

這個網誌中的熱門文章

Daniel Gross 寫的太好了

Daniel Gross 顯然是一位天才,他在 19 歲就創辦 Cue ,拿到 Sequoia 投資,是他們當時投資過最年輕的創業家,最後被 Apple 收購並在其中負責 ML。之後加入 YC,26 歲又成為 YC 最年輕的 partner,專注在 AI 領域。現在則成立自己的純 remote 天使基金, Pioneer 。 - A new Google     需要下  Query Operators 的搜尋引擎代表壞掉了 - The Bionic Market     給菁英用戶的思考與生產力工具的市場分析 - 10X: Metrics for Early Stage Startups     早期新創的 Growth 指標

Implicit Factor Model - A Cross-Sectional Regression Approach

  Equity Factor Models - Build one in R with a few lines of codes A step-by-step guide to build your own fundamental factor model using R and cross-sectional regressions Alexander Popov — unsplash Multi-factor models are a must-have for investors looking to understand their portfolio’s performance drivers . It helps explain the actual return of factors such as countries, sectors, and styles, independent of other factors’ effects. In this article, we will focus on the mechanics of such models, and how to  code them in R . We also introduce a visualization that lets you visualize the factor performance contributions overtime. A Factor Model, what’s that? A factor model also called a multi-factor model, is a model that employs multiple factors to explain individual securities or a portfolio of securities. It exists at least three types of factor models: Statistical factor models  — They use methods similar to  principal component analysis  (PCA). In these models, b...