You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because a branch in Git is in actuality a simple file that contains the 40 character SHA-1 checksum of the commit it points to, branches are cheap to create and destroy.
174
+
Because a branch in Git is actually a simple file that contains the 40 character SHA-1 checksum of the commit it points to, branches are cheap to create and destroy.
175
175
Creating a new branch is as quick and simple as writing 41 bytes to a file (40 characters and a newline).
176
176
177
177
This is in sharp contrast to the way most older VCS tools branch, which involves copying all of the project's files into a second directory.
0 commit comments