New Git Repository

new git repository (project todo-list)

$ cd /home/git
$ sudo -u git mkdir todo-list.git
$ cd todo-list.git
$ sudo -u git git init --bare

on my laptop clone the repository:

$ cd ~/projects
$ git clone ssh://git@[url]:[port]/~/todo-list

work in the repository

$ cd ~/projects/todo-list
$ vi readme [edit and :wq]
$ git add readme
$ git commit
$ git push

or work from visual studio code (also from linux)
it has loads of git functionalities integrated.