pull/920/merge
yusha-g 3 years ago committed by GitHub
commit 2b6f839baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,7 +14,7 @@ In this lesson, we'll cover:
- tracking the work you do on your machine - tracking the work you do on your machine
- working on projects with others - working on projects with others
- how to contribute to open source software - how to contribute to open-source software
### Prerequisites ### Prerequisites
@ -88,7 +88,7 @@ Let's say you have a folder locally with some code project and you want to start
Typically a `git status` command tells you things like what files are ready to be _saved_ to the repo or has changes on it that you might want to persist. Typically a `git status` command tells you things like what files are ready to be _saved_ to the repo or has changes on it that you might want to persist.
1. **Add all files for tracking** 1. **Add all files for tracking**
This also called as staging files/ adding files to the staging area. This is also called staging files/ adding files to the staging area.
```bash ```bash
git add . git add .
@ -120,7 +120,7 @@ Let's say you have a folder locally with some code project and you want to start
This command helps us to unstage only a particular file at once that we don't want to include for the next commit. This command helps us to unstage only a particular file at once that we don't want to include for the next commit.
1. **Persisting your work**. At this point you've added the files to a so called _staging area_. A place where Git is tracking your files. To make the change permanent you need to _commit_ the files. To do so you create a _commit_ with the `git commit` command. A _commit_ represents a saving point in the history of your repo. Type the following to create a _commit_: 1. **Persisting your work**. At this point you've added the files to a so-called _staging area_. A place where Git is tracking your files. To make the change permanent you need to _commit_ the files. To do so you create a _commit_ with the `git commit` command. A _commit_ represents a saving point in the history of your repo. Type the following to create a _commit_:
```bash ```bash
git commit -m "first commit" git commit -m "first commit"

Loading…
Cancel
Save