Every serious developer knows that allowing your codes to sit in your computer's hard disc is quite a risk that might prove very detrimental.

Hence, there is a need to use a version control system for keeping track of changes in your codes during software development.

Git comes to the rescue here.

As a developer here a few Git commands that would help you with version control and collaboration with other developers.

1. git init - $ git init: This is used to create an empty Git repository.

2. git clone - $ git clone <remote URL>: To create a local copy in your PC for an existing remote repository.

3. git add - $ git add <file or directory name>: With this command, you can make files available in the staging area for Git.

4. git status - $ git status: This shows the current state of the repository.

5. git commit - $ git commit -m "type commit message here in quotes": This command saves or records the changes made in your code to your local repository.

6. git branch - $ git branch <branch_name>: To add a new branch to your local repository.

7. git pull - $ git pull <branch_name> <remote URL>: To get the most recent version of a repository, use this command.

8. git push - $ git push <remote URL> <branch>: This would send local commits on your PC to the remote repository.

9. git merge - $ git merge <branch_name>: This command combines the changes made in different branches of a repo together.