Ultimately, though it is your choice – branch or fork – Bitbucket supports both. You are willing to give the development organization write access to a repository. You have a small group of programmers who trust each other and are in close communication. We recommend branching for development organizations on Bitbucket We use a modified form of Vincent Driessen's GitFlow technique. You want to discard experiments and changes easily. You expressly want to support independent branches. You want fine-grain control over merging. You don't want to manage user access on your repository. Generally, for hosted systems, forks work well in situations where, as a repository admin: You can google for discussions about this. Whether you use either branching or forking, and to what extent, depends on your working environment. There are lots of ways colleagues can work with and combine fork and branch functionalities. This isn't the case with a DVCS clone on your local system. For example, on Bitbucket, you can always see which repository the fork came from. The Bitbucket software adds management to forks forking a repository in Bitbucket has functionality you normally wouldn't associate with a simple DVCS clone. If you fork a repository, you get that repository and all of its branches.Īs DVCS hosting evolved, the term fork evolved. If the original repository is deleted, the fork remains. So, unlike a branch, a fork is independent from the original repository. ![]() Like a tree trunk's branch, a code branch knows about the trunk (original code base) it originated from.įork is another way of saying clone or copy. The term fork (in programming) derives from a Unix system call that creates a copy of an existing process. ![]() The code that is branched (main trunk) and the branch know and rely on each other. A repository code branch, like a branch of a tree, remains part of the original repository. Both Mercurial and Git have the concept of branches at the local level. ![]() What is a branch? What is a fork?īranching and forking provide two ways of diverging from the main code line. Each method is slightly different and is done for different reasons. There are a number of ways to get your Bitbucket Cloud repository code so that you can work on the project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |