• How do i clone only “master” branch [ default protected branch? ] of repo?
  • what are the advantages & disadvantages?
  • how do i remove all other branches except master of forked repo?
  • @Shugzaurus
    link
    English
    21 year ago

    When you clone a repo only one branch is pulled from the remote, main by default so I don’t understand your question. Cloning and forking are two different things. Clone is basically pulling a git project to your local computer where forking will create a copy of a repo (with all the branches) to another repo).