version control - Using Git to put newly created source into GitHub repository -
i have repository on github @ https://github.com/andrewthommo/coma
i have newly created source on local file system enter repository. after looking @ this answer tried using git command line with:
git remote -m myemail@gmail.com:andrewthommo/coma.git error: unknown switch `m'
..and also..
git remote add -m myemail@gmail.com:andrewthommo/coma.git usage: git remote add [<options>] <name> <url>
obviously, confused. can see going wrong?
(i looking through git beginners: definitive practical guide tips..)
you have put own e-mail address repo address, that's not correct. github, it's git@github.com:username/repo.git
also, there's no -m
switch remote command, see man pages.-m
switch exist, add
operation, see man pages explanation on it's usage - not needed in case.
you need specify name remote. typically it's called origin
.
assuming have issued git init
on local folder, correct command is:
git remote add origin git@github.com:andrewthommo/coma.git
Comments
Post a Comment