I created a directory, hello_git. In this directory I created a file, hello_git.py, which prints out a \"Hello git!\" message.
hello_git
hello_git.py
Then I made
In my case a problem was in a wrong URL.
Instead of
https://gitlab.com/username/my_repository.git
I wrote
https://gitlab.com/username/my_repository/ (copied from a browser)