# Git Cheat Sheet

Git is a version control system that helps people to contribute and track changes on the project.
Here are some basics Git commands to get you started with Git.

| Git Task      | Notes| Git Commands     |
| :---        |    :----:   |          :--- |
| Git Configuration| Returns a list of information about git configuration including name and email.| `git config -1`|
| Set up Git Username   | Configure the author name and email address to be used with your commits.| 1.`git config --global user.name"Sam Smith"` 2. `git config --global user.email sam@example.com`|
| Initializing a New Repository      | Creates a new local repository       | `git init` |
| Adding Files| Add one or more files to the staging area.| `git add filename` or `git add .`      |
| Status| Status of the repository|   `git status` |
| Commit   | Commit the changes| `git commit -m "Commit message"`     |
| Commit History| Shows the commit history of the repository| `git log -oneline`  |
| Connect to remote repository   | Adds a remote repository to a local one.| `git remote add origin https://repo_here`    |
| Push| Pushing all changes to the remote repository|  `git push origin master`  |

These are some of the basic commands to get you started with GIT. Book marks this page for future reference. Thanks for reading.


