Weijia Weijia - 1 year ago 134
Git Question

Confusion about remote and branch

I am pretty new to github and confused about remote and branch. Can I remote is the server version of branch?

The "Branch" here is actaully remote?

So to create a "branch" like that, I need to

checkout -b myBranch

Then I can make some changes and commit and push to a new remote?
Is that correct?

Answer Source

Yes you are correct.

In git you create branch as you did and then you do your changes.
Once your changes are ready to be committed you use the git add to add the changes to the staging area and then you commit them.

enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download