This repository hosts the source files for the Spanish translation of utilitarianism.net. This translation is published at utilitarismo.net.
- Clone utilitarianism.net (
M-x magit-clone RET u).- Answer "n" to "Set
remote.pushDefault...?".
- Answer "n" to "Set
- Add repository to
forge(M-x forge-add-repository).- Accept defaults in prompt.
- Pull all topics.
- Fork repository (
N c f).- Accept defaults in prompts.
- Answer "y" to "Set
remote.pushDefault...?".
- Commit and push your changes normally.
- Checkout the
exportbranch. - Switch to your local version of the
utilitarianism.netrepository (the one you cloned in (1) of the previous section) - Check out the
mainbranch. - Pull changes from the remote repository.
- Copy the contents of
content/es/toutilitarianism-es(e.g. from~/source/utilitarianism.net/content/es/to~/repos/utilitarianism-es/; the actual paths will depend on your directory structure), overwriting the existing files (make sure that you have indeed checked out theexportbranch, as indicated in (2) of this section). - Commit the changes in the
exportbranch. You can name the commit ‘Update with latest utilitarianism.net es version’. - Merge the
exportbranch with themainbranch, resolving any conflicts if necessary. - In the
utilitarianism.netrepository, create a new branch (b c).- First select
main, then name your branch with a name that describes the nature of the commits you are merging (e.g.improve-translations).
- First select
- Now copy back the files in the
utilitarianism-esrepo to thecontent/es/directory ofutilitarianism.net(e.g. from~/repos/utilitarianism-es/to~/source/utilitarianism.net/content/es/), excluding theimagessubdirectory and the files.dir-locals,.git,.gitignoreandreadme.md(i.e. the files that were not part of the original content ofcontent/es/), overwriting the existing files. - In the
utilitarianism.netrepo, stage (s) and commit these changes (c c). - Push the changes (
P p). - Create a pull request (
N c p).- As source branch, select the remote branch selected above, e.g.
<user>/improve-translations. - As target branch, select
origin/main. - Write the commit message as usual (i.e. the first line is the commit summary and the rest is the commit description).
- As source branch, select the remote branch selected above, e.g.
- Finally, go back to the
utilitarianism-esrepo, checkout themainbranch and merge it with theexportbranch. This is to propagate the changes in the other direction, to ensure that the two repos are fully in sync.