git logo

How to install git on your system: https://git-scm.com/downloads, Documentation.

You can store your repositories: github.com, gitlab.com, bitbucket.org and etc.


Create a new repository on the command line:

echo “# Git Repository” >> README.md 
git init 
git add README.md 
git commit -m “first commit" 
git branch -M master 
git remote add origin git@github.com:your-repo/your-repo-name.git
git push -u origin master 

Push an existing repository from the command line:

git remote add origin git@github.com:your-repo/your-repo-name.git 
git branch -M master 
git push -u origin master

Your repository available to view on site you chose.