diff --git a/llvm/docs/GettingStarted.rst b/llvm/docs/GettingStarted.rst index c30ebecc89e0..70e12b0f877a 100644 --- a/llvm/docs/GettingStarted.rst +++ b/llvm/docs/GettingStarted.rst @@ -528,6 +528,9 @@ that include merges, so the `git rebase` step above is required. Please ask for help if you're having trouble with your particular git workflow. + +.. _git_pre_push_hook: + Git pre-push hook ^^^^^^^^^^^^^^^^^ diff --git a/llvm/docs/Phabricator.rst b/llvm/docs/Phabricator.rst index e0e406136e62..b1adb9be85d4 100644 --- a/llvm/docs/Phabricator.rst +++ b/llvm/docs/Phabricator.rst @@ -187,7 +187,7 @@ this reason avoid using `arc land` and push commits to master directly with git after removing tags other than "Reviewed by" and "Differential Revision". You can run `llvm/utils/git/arcfilter.sh` to clean the commit message of the current "HEAD" commit automatically. You can also setup a git hook to catch this -for you (see `Getting Started `). +for you (see :ref:`git_pre_push_hook`). Committing someone's change from Phabricator