జిందం వాఐి to LinuxEnglish • 1 year agogit: how, advantages & disadvantages of cloning "master" only, remove locallymessage-square4arrow-up16arrow-down10file-text
arrow-up16arrow-down1message-squaregit: how, advantages & disadvantages of cloning "master" only, remove locallyజిందం వాఐి to LinuxEnglish • 1 year agomessage-square4file-text
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?
minus-squareజిందం వాఐిOPlinkEnglish1•1 year ago@shugzaurus When you clone a repo only one branch is pulled from the remote, main by default No. I havent read book recommended by @[email protected], but github cheatsheet $ git clone [url] says all branches https://training.github.com/downloads/github-git-cheat-sheet
minus-squareboothinlinkfedilink1•1 year agoIt downloads the branches meaning that it will download the list of the branches that exist, but only one branch is “checked out” at a time, which is where the files are actually downloaded to your pc.
@shugzaurus
No. I havent read book recommended by @[email protected], but github cheatsheet $ git clone [url] says all branches https://training.github.com/downloads/github-git-cheat-sheet
It downloads the branches meaning that it will download the list of the branches that exist, but only one branch is “checked out” at a time, which is where the files are actually downloaded to your pc.