It gives you the flexibility of working on the same codebase with the “N” number of other developers. This is exactly what a branch in Git does. Once done update the latest copy with your changes. Most probably, take a copy of the latest code and do the changes on top of that. So if “n” developers are working on a project and they want to make changes to the same codebase without affecting each other’s code, what is the way to do so?Īlso check : How to clone a branch in git with just 2 commands Instead, the command to do it is a bit more complex. If I was to make a command for creating new branches, I would have made a command like “git create branch ”.ĭo you see how readable and intuitive it is? Well, but to our surprise, this is not the command that exists. This way the steps become universal for usage. Why the command line? Because once you know how to do it from the command line, you can do it for any VCS platform be it Github, Gitlab, or Atlassian git. However, all of them will involve the steps to do it from the command line. In this tutorial, I will be listing down some of the easiest ways of git to create a new branch from the current branch. So I am assuming that since you are asking the question of creating a new git branch, you might also be aware of what GIT and VCS are.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |