This is a microtask for {T256626}. See that task for more information and how to get help.
In Github, an unit of work is pull request. When you start work on a bug or a feature, you create a new git branch and several commits in a branch. When you're happy with the work, you merge the branch to the master branch.
In Gerrit, an unit of work is a commit. Similar to Github, you create a new git branch and a commit in it. When you have some code, you should push it to Gerrit. (That is covered in task {T293258}.) If you want to make changes, you don't create new commits in the branch. Instead you amend the existing commit. You can amend the commit many times. When you're happy with the work, you merge the commit to the master branch.
This task will introduce you to the Gerrit workflow of amending a commit. You have created a commit and pushed it to Gerrit in {{T293258}}.
Your task is to fetch the commit from Gerrit to your machine, make any change to the commit (like editing or creating a file), amend the commit and push it back to Gerrit.
Go to the `test/test` folder in your terminal. (You have cloned the repository in {T293258}.)
```
cd test
```
Fetch the commit. My commit is at https://gerrit.wikimedia.org/r/c/test/test/+/730561. Your commit will have a different URL. You can get commit number from the URL.
```
git review -d 730561
```
Make any change, like editing or creating a file.
```
code readme.md
```
Amend the commit. Do not change the commit message.
```
git add readme.md
git commit --amend
```
Push the amended commit back to Gerrit.
```
git review
```
For more information see [[ https://www.mediawiki.org/wiki/Gerrit/Tutorial#Amending_a_change_.28your_own_or_someone_else.27s.29 | Gerrit/Tutorial: Amending a change (your own or someone else's) ]].
# Commits and pastes
- @zeljkofilipin [[ https://gerrit.wikimedia.org/r/c/test/test/+/730561 | 730561 ]] P17483
# Tasks
previous {T293258} | next {T292853}