diff options
| author | Barbz <BarbzYHOOL@users.noreply.github.com> | 2020-11-12 23:20:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-12 23:20:27 +0100 |
| commit | 9f495bcd8a0649968e0e7c0f16cbbde7a4b947ba (patch) | |
| tree | 95692c75cb9c5137c0a92e76f62b33ccbed67728 /docs | |
| parent | eb9b09a12e76934a479262c8d1b19ccd76d2c9b9 (diff) | |
| download | wiki-9f495bcd8a0649968e0e7c0f16cbbde7a4b947ba.tar.gz wiki-9f495bcd8a0649968e0e7c0f16cbbde7a4b947ba.tar.bz2 wiki-9f495bcd8a0649968e0e7c0f16cbbde7a4b947ba.zip | |
fix: how to make a PR with NANO (#294)
No longer forced to use VIM which is user unfriendly
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/How-to-create-a-PR.md | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/How-to-create-a-PR.md b/docs/How-to-create-a-PR.md index 218a1c0..cde4fd8 100644 --- a/docs/How-to-create-a-PR.md +++ b/docs/How-to-create-a-PR.md @@ -117,13 +117,19 @@ First of all make sure to use the AC commit template (this should only be necess git config --local commit.template ".git_commit_template.txt" ``` -Then commit your changes using: +When you will write your commit message, it will use the default text editor `Vim` which is very hard to manipulate. You can keep it or you can instead use the much simpler `Nano` editor. Here is how to proceed, type: +``` +git config --global core.editor "nano" +``` +Then commit your changes by typing: ``` git commit ``` +You are then prompted to specify an appropriate commit message. Please, follow the format guidelines here (= every line starting by a # that will be ignored in the commit message), and you can refer to a commit like [this](https://github.com/azerothcore/mod-npc-beastmaster/commit/53cf90233091db2191b522f0fa7c4b6009dca22e) as an example. +If using `Nano`, press [ctrl]+[x] and say yes to save and exit (other commands are written at the bottom in `Nano`, and can be found easily on the net or by typing `man nano` in the terminal). -You are then prompted to specify an appropriate commit message (please follow the format guidelines here). +Verify you're satisfied by typing `git show`. Exit by pressing [q]. If not satisfied, you can recommit the **last local** commit by typing `git commit --amend`. Now it's time to push them remotely. If you use the `git push` command for the first time in this branch, |
