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
export
branch. - Switch to your local version of the
utilitarianism.net
repository (the one you cloned in (1) of the previous section) - Check out the
main
branch. - 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 theexport
branch, as indicated in (2) of this section). - Commit the changes in the
export
branch. You can name the commit ‘Update with latest utilitarianism.net es version’. - Merge the
export
branch with themain
branch, resolving any conflicts if necessary. - In the
utilitarianism.net
repository, 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-es
repo to thecontent/es/
directory ofutilitarianism.net
(e.g. from~/repos/utilitarianism-es/
to~/source/utilitarianism.net/content/es/
), excluding theimages
subdirectory and the files.dir-locals
,.git
,.gitignore
andreadme.md
(i.e. the files that were not part of the original content ofcontent/es/
), overwriting the existing files. - In the
utilitarianism.net
repo, stage (s
) and commit these changes (c c
). - Push the changes (
P
, thenset-upstream
(u
) to the remote branch, e.g.<user>/improve-translations
). - 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-es
repo, checkout themain
branch and merge it with theexport
branch. This is to propagate the changes in the other direction, to ensure that the two repos are fully in sync.