Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Git uses the VIM editor by default. It can be changed to your preferred editor by setting the core.editor property. For example, if you want to use notepadNotepad++ on Windows run:

Code Block
git config --global core.editor "'d:\programs\notepadpp\notepadpp.exe' -multiInst -notabbar -nosession -noPlugin"

...

There are a couple of commits made to  into to the RESTWS-702 branch of the project module (openmrs-module-webservices.rest). We can see these commits by running the following command and then the Enter button on while in the terminal or git-bash window while in the root directory of the project,

...

Type in 'q' in the space next to the ':' character to quite quit the vim VIM screen.

After quitting the vim VIM screen, type in the following to squash commits (in this case the last 2 commits),

Code Block
git rebase -i HEAD~2


Vim The VIM editor will open showing the the last two and most recent commits in reverse order.

...

Don’t try to edit text directly because all will get messed up, instead press the 'I' key on the keyboard to enter Insert mode, edit the second line, and replace pick with f



Press the Esc key to enter command mode, then Shift + : and finally type in 

...

Type the command git log to confirm the number of commits due to your changes is one.

Finally, push changes to your fork and check the pull request to ensure only one commit is left.