{"id":133,"date":"2022-01-05T15:18:45","date_gmt":"2022-01-05T07:18:45","guid":{"rendered":"https:\/\/shiblenoman.com\/blog\/?p=133"},"modified":"2022-01-05T15:18:45","modified_gmt":"2022-01-05T07:18:45","slug":"git-clone-repo-with-specific-branch","status":"publish","type":"post","link":"https:\/\/aabirtech.com\/shiblenomanblog\/2022\/01\/05\/git-clone-repo-with-specific-branch\/","title":{"rendered":"Git clone repo with specific branch"},"content":{"rendered":"\n<p>Git clone command clones the default or master repository from git remote source. If need to clone a specific branch, we need to specify the branch name in the git clone command. Here is the command to do so <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone --branch &lt;branch-name> &lt;git-url-to-clone><\/code><\/pre>\n\n\n\n<p>Or we can write the same command as follows <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone -b &lt;branch-name> &lt;git-url-to-clone><\/code><\/pre>\n\n\n\n<p>Hope this helps. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Happy Coding \ud83d\ude42<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git clone command clones the default or master repository from git remote source. If need to clone a specific branch, we need to specify the branch name in the git clone command. Here is the command to do so Or we can write the same command as follows Hope this helps. Happy Coding \ud83d\ude42<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,2],"tags":[],"class_list":["post-133","post","type-post","status-publish","format-standard","hentry","category-git","category-quick-note-to-me"],"acf":[],"_links":{"self":[{"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":1,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/posts\/133\/revisions\/134"}],"wp:attachment":[{"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/tags?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}