# on the remote mkdir my-repo cd my-repo git init git config receive.denyCurrentBranch updateInstead # on the local git remote add [remote-name] ssh://[ssh profile name]/[path to repo on the remote] git push [remote-name] master # Also relevant # https://superuser.com/questions/232373/how-to-tell-git-which-private-key-to-use # https://stackoverflow.com/questions/4565700/specify-private-ssh-key-to-use-when-executing-shell-command