... 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: / ... ... 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: / ... ... が多くなったら、この 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 ... ... が多くなったら、この 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 ... ... 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 ... ... 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 ... ... orking 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 ... ... orking 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 目次 JavaScript code Code ... ... 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 目次 JavaScript code Code ... 2026年10月08日