Merge branch 'master' of sudoman/libreCMC-wiki into master
[librecmc/librecmc-wiki.git] / How To Submit A Change To This Wiki.md
1 How To Submit A Change To This Wiki
2 ===================================
3
4 Clone this repo and:
5 --------------------
6
7     git clone https://gogs.librecmc.org/libreCMC/libreCMC-wiki.git
8
9 then
10
11     git push
12
13 or
14
15     git request-pull -p
16
17 ### git push ( In Gogs )
18
19 Clone the upstream repo in Gogs, then clone to your computer:
20
21     git clone https://yourUserName@yourURL
22
23 Add upstream repo to be able to rebase to upstream point commit:
24
25     git remote add upstream https://gogs.librecmc.org/libreCMC/libreCMC-wiki.git
26     (git checkout -b optionalBranchName)
27     git push (--all)
28
29 Create Push Request in Gogs:
30
31 * Press the little green PR button in your own repo
32 * Or go to <https://gogs.librecmc.org/libreCMC/libreCMC-wiki/pulls>
33
34 ### git request-pull -p ( Anywhere )
35
36 Clone the upstream repo to your computer.
37
38     git add changedFile.md
39     git commit ( -m Short info what changed )
40     git log ( copy commit id )
41     git request-pull -p (start) URL (end)
42     git request-pull -p (commit in upstream repo) URL master
43
44 Example for piping output to haste:
45
46     git request-pull -p b3b8926484feb37c33e5150facf315ef12b4612e https://gogs.librecmc.org/jonasbits2/libreCMC-wiki.git master | haste
47
48 * Send to hastebin.com or any site you like
49 * Paste link in IRC channel
50
51 #### Links
52
53 * <https://www.git-scm.com/docs/git-request-pull>
54 * <https://hastebin.com/about.md>
55