![]() ![]() When your code is approved, you can merge the pull request (you’ll see a button in the pull request on GitHub). And you can also add some team member as an assignee (to check and approve your pull request). ![]() Make sure that you select develop branch for a base. Just click on the Compare & pull request button and you will see the form to submit a pull request. Usually they automatically offer you to create a pull request, when you push something on the feature branch: The easiest way to create a pull request would be going to GitHub (or any other GIT cloud provider where you push your code to) and create it there. In order to show your feature to others, you have to create a so called pull request. Make some changes in your project and commit them. Usually at least one other team member has to approve the feature before it can be merged into the develop branch. When you write all the code for the feature you would want to show it to your teammates in order to be approved. If you for some reason decide to abandon this feature (let’s say you change your mind about having a contact form), you can simply switch back to the develop branch (just double-click on it) and then right-click on the feature branch and delete it.īut more often you would want to keep the feature. All the commits you will make will be stored within this branch. Click OK.Īs you can see, a new feature/contact_form branch has been created. Write in something like contact_form (it should be descriptive).Click on the Git Flow button in the SourceTree toolbar.Let’s say we have a website and we’d like to add a contact form to it: Featureīefore you start writing some new code for your software project, create a new feature branch via git-flow. When you will be ready to push your changes into production (for example deploy your website to the server), you will create a “release” using git-flow, which will merge all the changes in the develop branch to the master branch (we’ll try this out later in the tutorial). You should never commit anything directly to the master branch. The basic understanding of a difference between the master and the develop branch is that you should always do all the software development on the develop branch. Important: Before you can execute git flow init command, you have to have a GIT repository initialized.Īs you can see, you now have two branches in your project: master and develop. In any case you’ll be then presented with some options (branch names, prefixes) where you just leave default values for each of them. Or by just clicking on the Git Flow button in the SourceTree toolbar. This is done via this Terminal command: git flow init You’re already familiar with the git init command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |