Skip to content

Instantly share code, notes, and snippets.

@nihui
Last active September 9, 2024 09:06
Show Gist options
  • Save nihui/17c06998c59cb7d84bb327e70bd187f3 to your computer and use it in GitHub Desktop.
Save nihui/17c06998c59cb7d84bb327e70bd187f3 to your computer and use it in GitHub Desktop.
github-pr.md

曾经有一天(只需要做一次)

配置下 upstream 同步位置(只需要做一次)

我不 PR,就像让 https://github.com/nihui/ncnn.git 的内容和 upstream 一模一样,就像刚 fork 时候的那样子,不要落后了

  • cd ncnn
  • git checkout master
  • git fetch upstream
  • git merge upstream/master
  • git push

今天我要改代码(每次新 PR)

创建 PR 后还没 merge,upstream 有些更新,我还要继续改改(每次更新 PR)

  • cd ncnn
  • git checkout patch123
  • git fetch upstream
  • git merge upstream/master
  • patch123 写的不好,继续改改
  • git commit -m "456"
  • git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment