Working on a branchBecause it's not a good idea to work on the master branch, let's create a branch.
Creating a branch is easy:
Make sure the branch has been "created":
git branch fix-readme
You will get an output similar to this:
This output means: there are 2 branches in total. The one prefixed with the * is the active branch. So currently "master" is active. We don't want that.
fix-readme * master
You can switch to the newly created branch with:
Modify README.md, add the changes (git add README.md) and commit the changes (`git commit -m "modified README.md").
git checkout fix-readme
This commit happened in the fix-readme branch and you now want it to be merged into the master branch.
For this you need to switch to the `master` branch:
...and simply `merge` the changes from the `fix-readme` branch:
git checkout master
You will get an output similar to:
git merge fix-readme
Updating 649a532..a37a62c Fast-forward README.md | 1 + 1 file changed, 1 insertion(+)