用 hub 從命令列建立 pr
October 13, 2020
先用 brew 安裝 hub: brew install hub 然後使用像下面範例這樣的簡單指令: hub pull-request -m "best pr ever" -b oozou:develop -h feature/awesome-improvements
或更聰明的做法:
hub pull-request -m "best pr ever" -b oozou:develop -h $(git rev-parse --abbrev-ref HEAD)
想了解建立 pull request 的更多細節,請參考 hub pull-request --help