/ Published in: Bash

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$ mkdir repo.git $ cd repo.git $ git init $ touch .gitignore $ git add . $ git commit -m "added .gitignore" # Down to here creates the local git repository and does first commit $ git remote add origin ssh://user@example.com/home/user/git/repo.git $ git config branch.master.remote origin $ git config branch.master.merge refs/heads/master # Configure the Git repository $ git push --all # push the changes to the remote Git repository.
URL: http://cumu.li/2008/10/1/creating-new-remote-git-repositories
Comments
