[llvm] [Docs] Add example of making a PR with git and GitHub web interface (PR #65393)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 6 09:27:15 PDT 2023
================
@@ -207,6 +207,95 @@ See more in-depth information about how to contribute in the following documenta
* :doc:`Contributing`
* :doc:`MyFirstTypoFix`
+Example Pull Request with git
+====================================
+
+Instead of using the GitHub CLI to create a PR, you can push your code to a
+remote branch on your fork and create the PR to upstream using the GitHub web
+interface.
+
+Here is an example of making a PR using git and the GitHub web interface:
+
+First follow the instructions to [fork the repository](https://docs.github.com/en/get-started/quickstart/fork-a-repo?tool=webui#forking-a-repository).
+
+Next follow the instructions to [clone your forked repository](https://docs.github.com/en/get-started/quickstart/fork-a-repo?tool=webui#cloning-your-forked-repository).
+
+Once you've cloned your forked repository,
+
+::
+
+ # Switch to the forked repo
+ cd llvm-project
+
+ # Add upstream as a remote
----------------
michaelmaitland wrote:
I've moved it to the section that specifies those commands are optional.
https://github.com/llvm/llvm-project/pull/65393
More information about the llvm-commits
mailing list