Return to Snippet

Revision: 49123
at July 16, 2011 04:26 by ragnarokkrr


Initial Code
$  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://[email protected]/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.

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

Initial Description

                                

Initial Title
GIT - Creating remote Repositories

Initial Tags
Bash, git

Initial Language
Bash