... create a branch for your work, replacing TicketNumber with the actual Trac ticket number: / $ git fetch upstream $ git checkout -b ticket_TicketNumber upstream/main ...\> git fetch upstream ...\> git checkout -b ticket_TicketNumber upstream/main When ... h the actual pull request and Trac ticket numbers: / $ git fetch upstream pull/PRNumber/head:ticket_TicketNumber $ git checkout ticket_TicketNumber $ git push origin ticket_TicketNumber ...\> git fetch upstream pull/PRNumber/head:ticket_TicketNumber ... ...\> git checkout ticket_TicketNumber ...\> git push origin ticket_TicketNumber For example, to continue PR 8000 for ticket 123, run: / ... ... h from the current stable branch in the django-docs-translations repository. For example, when releasing Django 4.2: $ git checkout -b stable/4.2.x origin/stable/4.1.x $ git push origin stable/4.2.x:stable/4.2.x Write the announcement blog post for the r ... Be sure to fetch and update upstream to latest. For example, when feature freezing Django 5.2: $ git fetch upstream $ git checkout -b stable/5.2.x upstream/main $ git push upstream -u stable/5.2.x:stable/5.2.x At the same time, update the django_next_ve ... ase always begins from a release branch, so you should make sure you're on an up-to-date stable branch. For example: $ git checkout stable/4.1.x $ git pull If this is a security release, merge the appropriate patches from django-security . Rebase these p ... ... が多くなったら、この git エイリアスが役立つでしょう: [alias] pr = !sh -c \"git fetch upstream pull/${1}/head:pr/${1} && git checkout pr/${1}\" これを ~/.gitconfig に追加し、 upstream を django/django に設定してください。そして、 git pr #### を実行すると、 ... 通りのものであることを確認しましょう。準備ができたら次のようにします: / $ # Pull in the latest changes from main. $ git checkout main $ git pull upstream main $ # Rebase the pull request on main. $ git checkout pr/#### $ git rebase main $ git checkout ... main $ # Delete the pull request branch. $ git branch -d pr/xxxx ...\> REM Pull in the latest changes from main. ...\> git checkout main ...\> git pull upstream main ...\> REM Rebase the pull request on main. ...\> git checkout pr/#### ...\> git rebase m ... ... Working on a ticket When working on a ticket, create a new branch for the work, and base that work on upstream/main : git checkout -b ticket_xxxxx upstream/main The -b flag creates a new branch for you locally. Don't hesitate to create new branches even ... allest things - that's what they are there for. If instead you were working for a fix on the 1.4 branch, you would do: git checkout -b ticket_xxxxx_1_4 upstream/stable/1.4.x Assume the work is carried on the ticket_xxxxx branch. Make some changes and com ... Those patches will typically exist as pull requests on GitHub and can be easily integrated into your local repository: git checkout -b pull_xxxxx upstream/main curl -L https://github.com/django/django/pull/xxxxx.patch | git am This will create a new bran ... ... After installing Node.js , install the JavaScript test dependencies by running the following from the root of your Django checkout: / $ npm install ...\> npm install Then run the tests with: / $ npm test ...\> npm test ... ... d a point in git history before the regression was introduced (i.e. a point where the test passes). Use something like git checkout HEAD~100 to check out an earlier revision (100 commits earlier, in this case). Check if the test fails. If so, mark that p ... oint as "bad" ( git bisect bad ), then check out an earlier revision and recheck. Once you find a revision where your test passes, mark it as "good": $ git bisect good Bi ... git bisect run tests/runtests.py migrations.test_regression You should see git bisect use a binary search to automatically checkout revisions between the good and bad commits until it finds the first "bad" commit where the test fails. Now, report your re ... ... りこの機能と関連するテストを実装します。 ブランチを作る 変更を加える前に、チケット用に新しいブランチを作ります。 / $ git checkout -b ticket_99999 ...\> git checkout -b ticket_99999 ブランチ名は好きな名前で構いません。"ticket_99999" は一例です。新しいブ ... ... ds are alike, and in particular many of the supported database differ greatly from version to version. It's a good idea to checkout our notes on supported database : MySQL に関するノート SQLite に関するノート Oracle に関するノート ... ... the source tree (you can use the first part of the tutorial for guidance). With this setup, any changes made to the Django checkout will take effect immediately in the test project, allowing manual testing of contributions against a new or existing app. ... riage & review team , doing thorough reviews of contributions is a great way to earn trust. Looking for a patch to review? Check out the "Patches needing review" section of the Django Development Dashboard . Looking to get your pull request reviewed? Ens ... 2026年10月08日