/Cookbook

A cookbook of delicious recipes, used for git training and practice.

Git Cookbook

Yes, this is an actual cookbook with recipes for delicious food. It is primarily used for git training.

This repo is a place you can practice Git commands and using GitHub without worrying about breaking anyone's code. It is also a place to practice or learn Markdown syntax.



How to add a recipe

To learn and practice basic Git commands, add a recipe to this cookbook. Do you have a favorite recipe for homemade bread that was passed down from your Grandma? If its not a family secret, you can share it here!

  1. Fork this repo. Click the Fork button on the GitHub page to make a copy of this repo to your local user account.
  2. Clone your repo to your local computer.
    git clone <url-of-your-fork>
  3. Create a new branch
    git branch add-Pancakes
    git checkout add-Pancakes
  4. Add a new file to the recipes/ folder and update the index.md table of contents.
    cd recipes/
    cp _template.md pancakes2.md
    # Edit pancakes2.md
    # Edit index.md to add link
  5. Stage and commit your changes.
    # Stage Changes
    git add pancakes2.md  # To add specific files
    git add -A            # -or- add all untracked files
    
    # Commit changes
    git commit -m "added new pancake recipe"
  6. Push changes to GitHub.
    git push origin add-Pancakes
  7. Make a Pull Request to merge your add-Pancakes branch to the main branch.

Here is a visual representation of what you have done. In this example, the repo owner "tagged" the merged pull request as a new release.

gitGraph
    commit
    commit
    commit
    branch add-Pancakes
    checkout add-Pancakes
    commit id: "new pancake recipe"
    commit id: "update TOC"
    checkout main
    merge add-Pancakes
    commit tag: "0.1.4"
Loading