# Git-it
### Checking whether you have Git installed
```bash=
git --version
```
Should result with an output like below
![](https://i.imgur.com/92vL6lm.png)
## Introducing to Git
First check if Git knows you already
```git=
git config --list
```
![](https://i.imgur.com/fc48CWc.png)
Setting your Email and Username
```git=
git config --global user.name "<Your Name>"
git config --global user.email "<youremail@yourdomain.com>"
```
## Setting Default Text Editor
```bash=
git config --global core.editor notepad
```
## Creating a Repository
```git=
git init <folder_name>
```
![](https://i.imgur.com/bT91zvo.png)
This creates a repository inside the *<folder_name>* that you've set.
* To work on the project/repo, you work inside the *<folder_name>*
* Open the folder in a Code Editor
* In your terminal, change the directory to the folder
```bash=
cd <folder_name>
```
## Checking Repo Status
```git=
git status
```
![](https://i.imgur.com/fIEXjKO.png)
Depending upon whether or not you are in a folder that is alreadytracked, you might get an error message as shown below as well.
![](https://i.imgur.com/1Xur4ni.png)
## Staging Files/Folders
```git=
# To add all files and folders
git add *
```
```git=
# To add specific file
git add <file>
```
```git=
# To add specific folder
git add <folder>
```
```git=
# To add one by one
git add -p
```
### Exercise 1
* Create a folder for repository
## Committing the staged changes
```git=
# Commit Message should be meaningful
git commit -m "<Commit Message>"
```
## Working with Branches
## Working with Remote Repositories
## Interactive Practice
https://learngitbranching.js.org/
---
# :100: :muscle: :tada:
---
### Wrap up
- Introducing yourself to Git
- Creating a Repo
- Staging
- Committing
- Working with Branches
- Working with Remote Repositories
---
### Thank you!