README.rst 848 B

1234567891011121314151617181920212223
  1. Utility scripts
  2. ===============
  3. * `fbcode_to_main_sync.sh`
  4. This shell script is used to synchronise internal changes with the main repository.
  5. To run this script:
  6. .. code:: bash
  7. chmod +x fbcode_to_main_sync.sh
  8. ./fbcode_to_main_sync.sh <commit_hash> <fork_name> <fork_main_branch>
  9. where
  10. ``commit_hash`` represents the commit hash in fbsync branch from where we should start the sync.
  11. ``fork_name`` is the name of the remote corresponding to your fork, you can check it by doing `"git remote -v"`.
  12. ``fork_main_branch`` (optional) is the name of the main branch on your fork(default="main").
  13. This script will create PRs corresponding to the commits in fbsync. Please review these, add the [FBcode->GH] prefix on the title and publish them. Most importantly, add the [FBcode->GH] prefix at the beginning of the merge message as well.