user584513
user584513

Reputation: 630

Git branches content

When I create a new branch I see the same content just as it's in 'master'.

How do I separate the content so that whatever content is in the branch is only in the branch and whatever in master, stays in the master?

Thanks

Upvotes: 1

Views: 120

Answers (1)

vault
vault

Reputation: 4087

When you branch, you are already separating contents. You see the same content as in master because you haven't already committed any changes. Try to change a file and then commit. This new change will remain in your branch and will not be present in your master branch.

Read this about basic branching.

Upvotes: 5

Related Questions