Skip to content

How to use git with multiple remote repositories? #23289

Discussion options

You must be logged in to vote

Hi @johnbartlesaccount ,

 Welcome to the GitHub Community forum!

From the line below which reads “git checkout -b ltullman-master”, what branch is the newly created  branch "ltullman-master" based on ?

It is based on the commit where you are. Remember that git is a decentralized version controll sysyem so the repository in your local machine is different from the repository on remote.

For example you clone a repository from remote where there are already some commits:

                   A—B---C—D     remote/master

                             II       (clone)

                   A—B---C—D     local/master

You are now in the HEAD (commit D) of the master branch in your local repository. N…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants