# Git howtos
Create a new remote repo
git remote add origin /path/to/repo.git
On my local machine where it's all file paths, I've also needed to explicitly create the repo dir
#create repo dir mkdir /path/to/repo.git cd /path/to/repo.git # init the repo git init --bare
NOTE: if you've just created a remote repo, git push origin will fail with an ugly message if your local repo doesn't have anything checked in yet.
See for eg:
- GitHub: creating a repo
Last modified: {2011.02.06 14.11}