Discussion on: Hack or maybe not: "Deleting" master when it gets too big

ozeta profile image
Marco Carrozzo

Yeah but how do i check branches size?

joelnet profile image
JavaScript Joel

master isn't gone. You still have full access to it.

You can even do:

git checkout origin/master

To see what is in origin/master without the need for creating a local branch.

You can also do:

git checkout -b new-feature origin/master

At this point, new-feature is identical to origin/master.

Be sure to run git fetch to sync any changes to the remote repo with your local.