What is GIT???
Git is a version control system that records/track changes in a file. It is an open source system that can handle large projects efficiently and makes collaboration among team seamless.
How GIT works
Step One: You will need to download it on your operating system from git-scm.com/download
Step Two: Introduce yourself to git so it can store your information upon every commit.
//To do so, use
git config --global user.name <username>
git config --global user.email <email>
Step Three: Create a local repository
//To initialize a local repository
git init
Step Four: Staging your files and changes to your local repository
//Add the files independently
git add <filename>
//Add all the files automatically
git add .
Step Five: To commit your files to your local repository
git commit -m "Commit message"
NOTE: It is a must you add a commit message and if you do not want to add it, leave it as an empty string
Step Six: To push/send your committed files to your remote repository
git push -u origin master