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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -