github - Understanding on git remote -


i new git, , having difficulty in understanding git remote. suppose scenario me , friend ("mr x") works on project ("maptest"). have created project maptest , added repo.

now command git remote gives me result

> origin

my doubt is

1)now mr x directly clone project in local, when should use git remote add [shortname] [url] command?

2)is me or mr x should run git remote add command?

i went through many posts not able find answers these posts, sorry if dumb.

if mr x clones repository, repository shown origin in local repository. if want pull or push repository, should use remote add able use shortcut (as origin) not having specify url pull or push every time.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -