#init repo on local machine and first commit git init git branch //maybe not need?? git checkout -b master //for master branch!! git add * git commit -m 'commit' git remote add origin ssh://..... git push -u origin master #ssh settings in ~/.ssh/config for new ssh Host * HostKeyAlgorithms=+ssh-rsa PubkeyAcceptedKeyTypes +ssh-rsa