{"id":1103,"date":"2022-06-06T09:30:26","date_gmt":"2022-06-06T09:30:26","guid":{"rendered":"https:\/\/www.checkmateq.com\/blog\/?p=1103"},"modified":"2023-08-07T08:53:43","modified_gmt":"2023-08-07T08:53:43","slug":"git-branching-strategies","status":"publish","type":"post","link":"https:\/\/www.checkmateq.com\/blog\/git-branching-strategies","title":{"rendered":"Git branching Strategies"},"content":{"rendered":"<h3><strong>What is a branching strategy?<\/strong><\/h3>\n<p><b>Branching <\/b>is a process of duplicating source code stored in version control or SCM, branches allow you to develop your <a href=\"https:\/\/www.checkmateq.com\/full-stack-development\">software<\/a> features parallelly, when you or your team members creates a branch from master\/main branch you can work on all the files or data of master branch from the child branch, this allows you to isolate your changes from the master branch. if your work\/experimentation goes well you can merge your changes, if your wok fails you can discard the branch.<\/p>\n<p><strong>Git Flow:<\/strong><\/p>\n<p>Git Flow is a branching strategy considered to be complex process of all available branching strategies, developers can work on new features by creating feature branch and once changes are done these features can be merged with master branch to deploy. git flow has main, develop, feature, release and hotfix branches and the process happen as following.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1309 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-19-300x135.jpeg\" alt=\"\" width=\"684\" height=\"308\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-19-300x135.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-19-1024x460.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-19-768x345.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-19.jpeg 1077w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p><strong>Master\/Main<\/strong>\u00a0 branch is where the code should be in a deployable stage and will be created when a repository is created, <strong>Develop <\/strong>branch is branched from main \/master all the developers will have this branch in common and and every developer can create a <strong>Feature<\/strong> branch from develop branch there can be any number of feature branches, you keep adding commits to feature branch\u00a0 and when you think feature is complete you will raise PR where your team will review your code and merge it back to develop branch once develop has enough features\u00a0 any type of testing or quality analysis can be done at this point, once approved\u00a0 feature branch is merged to <strong>Release<\/strong>\u00a0 branch, release branches are created\u00a0 with\u00a0 a version tag like 1.0,2.0\u00a0 after verification and testing release branch will be\u00a0 merged to master for deployment and\u00a0 develop branch to make the latest release version available for developers to work on.<\/p>\n<p><strong>Hotfix branch:<\/strong>\u00a0 in a software you may have a critical issue sometimes which needs to fix instantly and cannot go through all the above-mentioned flow, so a hot fix branch is created from main branch and work will be done on the bug\/issue reported once the problem is fixed then the hotfix branch is merged with main branch for release and to develop branch for developers to work on.<\/p>\n<h3><strong>GitHub Flow:<\/strong><\/h3>\n<p>GitHub Flow is a simpler and faster alternative to Gitfow this model doesn\u2019t have release branches, you start with the main branch, to isolate their work developers create branches directly from the master and once this individual branch that a developer is working on comes to a deployable state a PR(Pull request) is created by developer, the updated code is reviewed and merged back into main for deployment with version tags.<\/p>\n<p>The main idea behind this model is keeping the master code in a constant deployable state and to support continuous integration and continuous delivery processes, by deploying a small pieces to production constantly you can eliminate a lot of chances for errors and in case of a failure recovery is fast as you just need to roll back to previous version.<\/p>\n<p><strong>Steps and Git Commands for following a GitHub Flow<\/strong><\/p>\n<p><strong>Step-1: Add collaborators to your remote repository.\u00a0<\/strong><\/p>\n<p>To follow any branching strategy, you have to allow your teammates to work on the project repository by adding collaborators, below is the process for adding collaborators in GitHub, on your remote repository click on settings<\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-1249\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-1-300x152.jpeg\" alt=\"Git branching\" width=\"714\" height=\"362\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-1-300x152.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-1-1024x520.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-1-768x390.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-1-1536x780.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-1-1200x609.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-1.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Now click on collaborators under access then under manage access add users that you want to collaborate with<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1254 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-3-300x155.jpeg\" alt=\"\" width=\"791\" height=\"409\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-3-300x155.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-3-1024x528.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-3-768x396.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-3-1536x793.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-3-1200x619.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-3.jpeg 1862w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>here search for the git hub user for whom you want to give permission on you repo and add them to your repository<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1257 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-4-300x264.jpeg\" alt=\"\" width=\"340\" height=\"299\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-4-300x264.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-4-768x675.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-4.jpeg 850w\" sizes=\"(max-width: 340px) 85vw, 340px\" \/><\/p>\n<p><strong>Step-2: Share your repository with your team\u00a0<\/strong><\/p>\n<p>share your repository link with your team so that they can clone your repo and start working on it, on your remote repository got to <strong>code\u00a0<\/strong>to get your project repository link.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1260 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-5-300x133.jpeg\" alt=\"\" width=\"706\" height=\"313\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-5-300x133.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-5-1024x456.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-5-768x342.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-5-1536x683.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-5-1200x534.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-5.jpeg 1895w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p><strong>Step-3: Creating a branch in local repository and pushing it to remote repository<\/strong><\/p>\n<p>Now let&#8217;s go through some of the git commands that you need to know to follow GitHub flow.<\/p>\n<p>To clone a repository, use command &#8220;git clone&#8221; with the url of the repo.<\/p>\n<pre>git clone https:\/\/github.com\/aksshaayDev\/project-webFeature.git<\/pre>\n<p><img loading=\"lazy\" class=\" wp-image-1264 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-6-300x52.jpeg\" alt=\"\" width=\"761\" height=\"132\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-6-300x52.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-6-1024x176.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-6-768x132.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-6-1536x264.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-6-1200x207.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-6.jpeg 1737w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Here I cloned &#8220;project-webFeature &#8221; repository to my computer and it has a html file named hello.html with content as shown below.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1265 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-7-275x300.jpeg\" alt=\"\" width=\"501\" height=\"547\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-7-275x300.jpeg 275w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-7-768x839.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-7.jpeg 891w\" sizes=\"(max-width: 501px) 85vw, 501px\" \/><\/p>\n<p><strong>Git commands to create and check branches in your local repo.<\/strong><\/p>\n<pre>git branch\r\ngit branch branch2<\/pre>\n<p>&#8220;Git branch&#8221; gives you all the available branches on your local repository, you can also create a new branch with same command by giving a name along with the command, &#8220;branch2&#8221; is the name of branch I gave.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1268 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-8-1-300x61.jpeg\" alt=\"\" width=\"660\" height=\"134\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-8-1-300x61.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-8-1-1024x208.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-8-1-768x156.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-8-1-1536x312.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-8-1-1200x244.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-8-1.jpeg 1586w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p><strong>Git command for switching to a newly created branch on your local repo<\/strong>.<\/p>\n<pre>git checkout &lt;branch-name&gt;\r\ngit checkout branch2<\/pre>\n<p>&#8220;git checkout&#8221; is the command and &#8220;branch2&#8221; is is name of a branch<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1269 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-9-300x28.jpeg\" alt=\"\" width=\"1649\" height=\"154\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-9-300x28.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-9-1024x96.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-9-768x72.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-9-1536x144.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-9-1200x112.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-9.jpeg 1626w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p>then you can work on your code without affecting main branch, and to commit your changes\/updates use below commands.<\/p>\n<p><strong>Git commands to commit changes<\/strong><\/p>\n<pre>git add &lt;file name&gt;\r\ngit add .\r\ngit status\r\ngit commit -m 'updates to hello.html'<\/pre>\n<p><img loading=\"lazy\" class=\" wp-image-1271 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-11-300x139.jpeg\" alt=\"\" width=\"641\" height=\"297\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-11-300x139.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-11-1024x474.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-11-768x355.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-11-1536x711.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-11-1200x555.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-11.jpeg 1562w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p><strong>git add\u00a0<\/strong>will add files to staging or indexing area, staging area is where git stores the changes you can add and remove changes from the staging area, give a file name to add a particular file to staging area or you can use (.) to add all the files in that directory to staging area.<\/p>\n<p><strong>git status <\/strong>is used to display the state of staging area and state between &#8220;git add&#8217; and &#8220;git commit&#8221; commands.<\/p>\n<p><strong>git commit\u00a0<\/strong>Git considers each commit as a check point you can go back to this point if want to make any changes or if you find any bug use option &#8220;<strong>-m<\/strong>&#8221; to add a message every time you commit it will help you to find out what was changed from previous commit.<\/p>\n<p><strong>Git command to push locally created branch to remote repository<\/strong><\/p>\n<p>To push your local branch to remote repository, use the following command<\/p>\n<pre>git push -u origin branch2<\/pre>\n<p>To understand above command lets break down it, <strong>git push\u00a0<\/strong>will transfer commits from local repo to remote repository and <strong>git push origin <\/strong>pushes the branches to main branch and the flag <strong>-u<\/strong> creates a reference to track your branches that you push onto your remote repository.<\/p>\n<p>when you make changes in master\/main branch and push them, changes will directly reflect but when you push a branch you have to raise a PR (Pull Request) where a discussion can be happened on the bugs\/features and any one with push privileges can merge it with main, see below for the process to raise a PR.<\/p>\n<p><strong>Step-4: Create Pull Request<\/strong><\/p>\n<p>pull request is an event in Git where a contributor of repository asks owner of git repository to review code they have pushed and merge it into main\/master branch, follow the process to raise a PR, on your remote repo click on branches beside main<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1275 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-13-300x157.jpeg\" alt=\"\" width=\"648\" height=\"339\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-13-300x157.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-13-1024x534.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-13-768x401.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-13-1536x802.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-13-1200x626.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-13.jpeg 1876w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>and click on &#8220;New pull request&#8221; of the branch that you are working on<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1276 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-14-300x146.jpeg\" alt=\"\" width=\"718\" height=\"350\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-14-300x146.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-14-1024x498.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-14-768x373.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-14-1536x746.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-14-1200x583.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-14.jpeg 1891w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>here you can write your comments and <a href=\"https:\/\/www.checkmateq.com\/contact-us\">click<\/a> on &#8220;create pull request&#8221;<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1277 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-15-300x143.jpeg\" alt=\"\" width=\"680\" height=\"324\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-15-300x143.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-15-1024x490.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-15-768x367.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-15-1536x734.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-15-1200x574.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-15.jpeg 1830w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>and any one with merge privileges can review your changes and merge them to main branch, check below process to merge a PR.<\/p>\n<p><strong>Step-5: Merging a Pull Request<\/strong><\/p>\n<p>on remote repo go to <strong>Pull requests<\/strong>, here you can check the details and merge pull requests.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1279 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-17-300x163.jpeg\" alt=\"\" width=\"589\" height=\"320\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-17-300x163.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-17-1024x555.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-17-768x416.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-17-1536x832.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-17-1200x650.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-17.jpeg 1654w\" sizes=\"(max-width: 589px) 85vw, 589px\" \/><\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1281 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-18-1-300x147.jpeg\" alt=\"\" width=\"584\" height=\"286\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-18-1-300x147.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-18-1-1024x502.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-18-1-768x377.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-18-1-1536x753.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-18-1-1200x589.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/git-18-1.jpeg 1845w\" sizes=\"(max-width: 584px) 85vw, 584px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Author Note<\/strong><\/p>\n<p>This blog is written by M\/S Checkmate Global Technologies engineering team, You can please connect with engineering team to hire experienced <a href=\"https:\/\/www.checkmateq.com\/devops-engineering\">DevOps engineer<\/a> on part-time\/full-time\/Project basis. Our Technical Consultant are ready to share vetted engineer profile instantly.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is a branching strategy? Branching is a process of duplicating source code stored in version control or SCM, branches allow you to develop your software features parallelly, when you or your team members creates a branch from master\/main branch you can work on all the files or data of master branch from the child &hellip; <a href=\"https:\/\/www.checkmateq.com\/blog\/git-branching-strategies\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Git branching Strategies&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":1303,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[2,23,16,24,8],"_links":{"self":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/1103"}],"collection":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/comments?post=1103"}],"version-history":[{"count":35,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/1103\/revisions"}],"predecessor-version":[{"id":4323,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/1103\/revisions\/4323"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media\/1303"}],"wp:attachment":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media?parent=1103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/categories?post=1103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/tags?post=1103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}