Using Git as a Version control system is a lot like working with a normal project. You will still write code and store those in files and folders, only now you have access to a Git commands to manipulate those files.
Quick Reference
git init
- Create a Git repository in the current folder.
git status
- View the status of each file in a repository.
git add <file>
- Stage a file for the next commit.
git commit
- Commit the staged files with a descriptive message.
git log
- View a repository’s commit history.
git config --global user.name "<name>"
- Define the author name to be used in all repositories.
git config --global user.email <email>
- Define the author email to be used in all repositories.