Help Barry get pk60 Configurator files fixed (#2971)
[jackhill/qmk/firmware.git] / docs / getting_started_github.md
CommitLineData
7b0356d1 1# How to Use Github with QMK
b139633f 2
9f643ba8
JH
3Github can be a little tricky to those that aren't familiar with it - this guide will walk through each step of forking, cloning, and submitting a pull request with QMK.
4
303f425c 5?> This guide assumes you're somewhat comfortable with running things at the command line, and have git installed on your system.
b139633f
JH
6
7Start on the [QMK Github page](https://github.com/qmk/qmk_firmware), and you'll see a button in the upper right that says "Fork":
8
9![Fork on Github](http://i.imgur.com/8Toomz4.jpg)
10
9f643ba8 11If you're apart of an organization, you'll need to choose which account to fork it to. In most circumstances, you'll want to fork it to your personal account. Once your fork is completed (sometimes this takes a little while), click the "Clone or Download" button:
b139633f
JH
12
13![Download from Github](http://i.imgur.com/N1NYcSz.jpg)
14
15And be sure to select "HTTPS", and select the link and copy it:
16
17![HTTPS link](http://i.imgur.com/eGO0ohO.jpg)
18
19From here, enter `git clone ` into the command line, and then paste your link:
20
21```
22**[terminal]
23**[prompt you@computer]**[path ~]**[delimiter $ ]**[command git clone https://github.com/whoeveryouare/qmk_firmware.git]
24Cloning into 'qmk_firmware'...
25remote: Counting objects: 46625, done.
26remote: Compressing objects: 100% (2/2), done.
27remote: Total 46625 (delta 0), reused 0 (delta 0), pack-reused 46623
28Receiving objects: 100% (46625/46625), 84.47 MiB | 3.14 MiB/s, done.
29Resolving deltas: 100% (29362/29362), done.
30Checking out files: 100% (2799/2799), done.
b139633f
JH
31```
32
9f643ba8 33You now have your QMK fork on your local machine, and you can add your keymap, compile it and flash it to your board. Once you're happy with your changes, you can add, commit, and push them to your fork like this:
b139633f
JH
34
35```
36**[terminal]
37**[prompt you@computer]**[path ~/qmk_firmware]**[delimiter $ ]**[command git add .]
38**[prompt you@computer]**[path ~/qmk_firmware]**[delimiter $ ]**[command git commit -m "adding my keymap"]
39[master cccb1608] adding my keymap
40 1 file changed, 1 insertion(+)
41 create mode 100644 keyboards/planck/keymaps/mine/keymap.c
42**[prompt you@computer]**[path ~/qmk_firmware]**[delimiter $ ]**[command git push]
43Counting objects: 1, done.
44Delta compression using up to 4 threads.
45Compressing objects: 100% (1/1), done.
46Writing objects: 100% (1/1), 1.64 KiB | 0 bytes/s, done.
47Total 1 (delta 1), reused 0 (delta 0)
48remote: Resolving deltas: 100% (1/1), completed with 1 local objects.
49To https://github.com/whoeveryouare/qmk_firmware.git
50 + 20043e64...7da94ac5 master -> master
51```
52
d069a42c 53Your changes now exist on your fork on Github - if you go back there (`https://github.com/<whoeveryouare>/qmk_firmware`), you can create a "New Pull Request" by clicking this button:
b139633f
JH
54
55![New Pull Request](http://i.imgur.com/DxMHpJ8.jpg)
56
9f643ba8 57Here you'll be able to see exactly what you've committed - if it all looks good, you can finalize it by clicking "Create Pull Request":
b139633f
JH
58
59![Create Pull Request](http://i.imgur.com/Ojydlaj.jpg)
60
d069a42c 61After submitting, we may talk to you about your changes, ask that you make changes, and eventually accept it! Thanks for contributing to QMK :)