Posted By

ragnarokkrr on 07/16/11


Tagged

Bash repository git


Versions (?)

GIT - Creating remote Repositories


 / Published in: Bash
 

URL: http://cumu.li/2008/10/1/creating-new-remote-git-repositories

  1. $ mkdir repo.git
  2. $ cd repo.git
  3. $ git init
  4. $ touch .gitignore
  5. $ git add .
  6. $ git commit -m "added .gitignore"
  7. # Down to here creates the local git repository and does first commit
  8.  
  9. $ git remote add origin ssh://user@example.com/home/user/git/repo.git
  10. $ git config branch.master.remote origin
  11. $ git config branch.master.merge refs/heads/master
  12. # Configure the Git repository
  13.  
  14. $ git push --all
  15. # push the changes to the remote Git repository.

Report this snippet  

You need to login to post a comment.