- Fork this repository (click on the Fork button in the upper right).
- From your fork on GitHub, clone the repo to your local machine:
git clone <URL FROM GITHUB>
Be sure to choose a sensible place in your filesystem to save the local repo. - Create a new branch with the name "exercise-YOURNAME" :
git checkout -b <exercise-YOURNAME>
- Create a text file with the title "YOURNAME.txt":
touch YOURNAME.txt
- Add some text to the file YOURNAME.txt, e.g. using echo:
echo Some demo text >> YOURNAME.txt
- Check the status of your repo (
git status
), then stage your changes (git add YOURNAME.txt
) and
commit the changes (git commit -m <commit message>
). - Push your changes to your forked remote:
git push
- On GitHub, initiate a pull request to merge your changes with the source repo.
- Identify the base repo (what you want to update) and head repo (where the updates come from), and
add a title and short description to the pull request.