Lines Matching +full:fetch +full:- +full:depth

1 .. _github-reviews:
10 `Source Code <https://github.com/llvm/llvm-project>`_,
11 `Releases <https://github.com/llvm/llvm-project/releases>`_,
12 `Issue Tracking <https://github.com/llvm/llvm-project/issues>`_., and
13 `Code Reviews <https://github.com/llvm/llvm-project/pulls>`_.
22 intended to be able to support "stacked" pull-request. Do not create any branches in the
23 llvm/llvm-project repository otherwise, please use a fork (see below). User branches that
24 aren't associated with a pull-request **will be deleted**.
32 Graphite will want to create branches under ``llvm/llvm-project`` rather than your
39 If you didn't do the above and Graphite created non-prefixed branches, a simple way to
40 unblock is to rename (``git -m <old name> <new name>``), and then checkout the branch
48 documentation refer to `GitHub's documentation <https://docs.github.com/pull-requests>`_.
52 (eg: precommit CI results, convenient web-based reverts, etc)
53 add the `skip-precommit-approval <https://github.com/llvm/llvm-project/labels?q=skip-precommit-approval>`_
57 ------------
65 ----------------------
67 self-contained commit initially.
74 to your `fork <https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks>`_
75 of the llvm-project and
76 `create a pull request from the fork <https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork>`_.
94 When you let the GitHub CLI create a fork of llvm-project to
96 to your fork and "upstream" points to the main llvm-project repository.
99 ----------------------
107 `built-in support for fixups <https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---fixupamendrewordltcommitgt>`_
113 built-in tool. See the section about landing your fix below.
120 git remote -v
125 ---------------------------------------
139 changes. ``--force-with-lease`` may be useful in this situation.
142 ---------
148 -------------------
170 * `Interactive rebase <https://git-scm.com/docs/git-rebase#_interactive_mode>`_
173 your local state is correct, remember to force-push to your branch and press
181 gh pr merge --squash --delete-branch
191 git fetch upstream
200 git rebase --continue
207 git push --force
208 gh pr merge --squash --delete-branch
218 Pre-merge Continuous Integration (CI)
219 -------------------------------------
221 Multiple checks will be applied on a pull-request, either for linting/formatting
227 better codebase and be more productive (by avoiding issues found post-merge and
235 However, please make sure you do not force-merge any changes that have clear
243 Even though your PR passed the pre-commit checks and is approved by reviewers, it
252 -------------------------------
263 `documentation <https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally?platform=linux&tool=webui#modifying-an-inactive-pull-request-locally>`_
273 gh repo clone llvm/llvm-project
276 cd llvm-project
277 git switch -c my_change
282 # Don't forget clang-format
283 git clang-format
286 ninja check-llvm
301 git commit file.cpp -m "Code Review adjustments"
304 git clang-format HEAD~
307 git commit -a --amend
311 # fork, use git remote -v to see. Usually origin points to your
312 # fork and upstream to llvm/llvm-project
315 Before merging the PR, it is recommended that you rebase locally and re-run test
321 git remote add upstream https://github.com/llvm/llvm-project.git
324 git fetch upstream && git rebase -i upstream/main
330 git push origin my_change --force
333 gh pr merge --squash --delete-branch
336 See more in-depth information about how to contribute in the following documentation:
350 First follow the instructions to [fork the repository](https://docs.github.com/en/get-started/quickstart/fork-a-repo?tool=webui#forking-a-repository).
352 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).
359 cd llvm-project
362 git switch -c my_change
367 # Don't forget clang-format
368 git clang-format
371 ninja check-llvm
378 # fork, use git remote -v to see. Usually origin points to your
379 # fork and upstream to llvm/llvm-project
393 git commit file.cpp -m "Code Review adjustments"
396 git clang-format HEAD~
399 git commit -a --amend
401 # Re-run tests and make sure nothing broke.
406 # fork, use git remote -v to see. Usually origin points to your
407 # fork and upstream to llvm/llvm-project
410 Before merging the PR, it is recommended that you rebase locally and re-run test
416 git remote add upstream https://github.com/llvm/llvm-project.git
419 git fetch upstream && git rebase -i upstream/main
425 git push origin my_change --force
430 See more in-depth information about how to contribute in the following documentation:
439 -----------------------------------------
447 /cherry-pick <commit> <commit> <...>
450 to cherry-pick the commit(s) to the release branch. If the commit(s) fail to
464 `a Github issue <https://github.com/llvm/llvm-project/issues/new>`_ and using the ``infrastructure`` label.
466 case-by-case basis by the LLVM admins and the role can be revoked at any point as the LLVM admins see fit.