What does git remote mean?

后端 未结 3 2055
被撕碎了的回忆
被撕碎了的回忆 2020-12-12 13:51

What does remote mean? When cloning a repository located at a central location, aren\'t we creating its remote version?

When I execute the command

$          


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-12 14:03

    A remote in git is basically a bookmark for a different repository from which you may wish to pull or push code.

    The bookmarked repository may be on your local computer in a different folder, on remote server, or it may even be the repository itself ( I haven't tried this ) but the simplest analogy is a bookmark.

    The repository doesn't even have to be a version of your repository, it may even be a completely unrelated repository.

提交回复
热议问题