జిందం వాఐి@lemmy.world to Linux@lemmy.worldEnglish · 1 year agogit: how, advantages & disadvantages of cloning "master" only, remove locallymessage-squaremessage-square4fedilinkarrow-up16arrow-down10file-text
arrow-up16arrow-down1message-squaregit: how, advantages & disadvantages of cloning "master" only, remove locallyజిందం వాఐి@lemmy.world to Linux@lemmy.worldEnglish · 1 year agomessage-square4fedilinkfile-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జిందం వాఐి@lemmy.worldOPlinkfedilinkEnglisharrow-up1·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-squareboothin@kbin.sociallinkfedilinkarrow-up1·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.