GIT - Creating remote Repositories


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  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.

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.