These are my steps to create a remote git repository and push to it the data that I have in my local machine:
# mkdir -p git/sports.git
# cd git/
# cd sports.git/
# git init --bare
Initialized empty Git repository in /home/tirengarfio/git/sports.git/
# exit
logout
Connection to 173.203.57.258 closed.
(master)]$ git remote add origin ssh://[email protected]/home/tirengarfio/git/sports.git
(master)]$ git push --all
[email protected]'s password:
Counting objects: 1271, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (1236/1236), done.
Writing objects: 100% (1271/1271), 1.11 MiB, done.
Total 1271 (delta 37), reused 0 (delta 0)
To ssh://[email protected]/home/tirengarfio/git/sports.git
* [new branch] master -> master
When I go to /home/tirengarfio/git/sports.git/branches it is empty..