跳到主要內容

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





留言

這個網誌中的熱門文章

All-in Summit

判斷人類發展的趨勢,找出人類下一步最缺乏的東西,然後用科學、工程的方式提出解法,只要不被物理定律限制什麼方法都有可能。

Papers on Quant Research

  The Cross-Section of Expected Stock Returns   Source  https://www.ivey.uwo.ca/media/3775518/the_cross-section_of_expected_stock_returns.pdf Comment  This is the famous Fama-French paper, which proposed the Fama-French factor model, and the basics of cross-sectional equity research methods. Value and Momentum Everywhere   Source   https://pages.stern.nyu.edu/~lpederse/papers/ValMomEverywhere.pdf Comment  A good introduction to value and momentum; they can generate abnormal returns for individual stocks within several countries, across country equity indices, government bonds, currencies, and commodities. Mean Reversion in Stock Prices: Evidence and Implications   Source   http://papers.ssrn.com/sol3/papers.cfm?abstract_id=227278 Comment  One of the earliest papers reflecting the mean-reversion nature of stock prices. Price Momentum and Trading Volume   Source   http://technicalanalysis.org.uk/volume/LeSw00.pdf Comment  Gi...
You’re not stuck at home. You’re sitting on homeground advantage. Create. Iterate. Let adversity shape the best of you. Focus. Focus. Focus. The world will restart, and when it does, don’t just come back as you were. Come back stronger.