[desktop] Submitting a gnome-user-docs patch

Gunnar Hjalmarsson gunnarhj at ubuntu.com
Fri May 5 21:26:35 UTC 2017


Hi again,

The bug I mentioned in my previous message includes a patch.

https://bugzilla.gnome.org/show_bug.cgi?id=782198

Thanks to Jeremy's handholding it's the first properly formatted (I 
hope) git patch I've ever submitted. :) Below I summarize the steps to 
get started with git and generate such a patch.

* Install git

sudo apt install git

* Initial setup

git config --global user.name "Gunnar Hjalmarsson"
git config --global user.email gunnarhj at ubuntu.com
git config --global core.editor nano

* You can browse the gnome-user-docs repository at
   <https://git.gnome.org//browse/gnome-user-docs>. To get a local
   copy of the repository:

git clone git://git.gnome.org/gnome-user-docs

* Edit the file(s) you want to change

* Add the changes to the Index

git add *

* Commit the changes

git commit

[That command makes a nano instance show up. Enter the commit message 
there, which in my case was:

Install missing icons

https://bugzilla.gnome.org/show_bug.cgi?id=782198

and then save to complete the git command.]

* Generate the patch

git format-patch HEAD~

[That command saves a patch in the root of your local gnome-user-docs 
repository, which can be submitted to the bug.]

I think that's about it. Probably others with git experience can add 
additional tips, but this way worked for me.

-- 
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj



More information about the ubuntu-doc mailing list