#1Recap
Congratulations on reaching the end of the first chapter!
Here's a recap of everything we have learned in this chapter:
- git init for creating a new repository on our local machine - git remote for connecting our local repository to GitHub - git branch for renaming our branch - git add and git commit for staging and committing our changes - git status for checking the status of our files - git push for pushing our code to GitHub
This is a lot to digest! So make sure to save this quick reference:
git init
git remote add origin <repository_url>
git branch -M main
git add .
git commit -m 'Your commit message here!'
git status
git push -u origin main#3Create a README
Let's wrap up the chapter with something fun and creative!
If you recall, we didn't include a README.md file when we created our first repository! This file is important for documenting what a repository is about, what the code does, or how it's maintained. It can be made locally in your working directory, and then pushed to GitHub.
Steps to create and push a README: 1. Create a new file in your project folder called README.md 2. Open the file in your code editor and add some text to describe your repository 3. Save the file and commit it to your local repository 4. Push the changes to GitHub
Note: README.md files are written in Markdown, a markup language that lets you add styled text, links, and even tables. This file documents what a repo is about, what the code does, or how it's maintained.
Take a look at some examples of README.md files that other users have created!