How to use git

Git is a version control system for tracking changes in computer files and coordinating work on those files among multiple people.

Documentation: https://git-scm.com/docs

Website: https://git-scm.com

Manual Install:

sudo apt-get -y install git

To create a project directory.

mkdir myproject

To go to your projects’ root directory.

cd /path/to/my/codebase/myproject

To create an empty Git repository or reinitialize an existing one.

git init

To create a working copy with a local repository.

git clone /path/to/repository

To update your local repository with the newest commit.

git pull

To add files with changes to your repository.

git add .

To commit files to your GitHub repository.

git commit -m "Updated commit"

To push files into your GitHub repository.

git push origin master

Feel free to share and let’s have fun!