If i waited for perfection, iâd never get anything done. Please note that this site and the posts on it are, and will always be, a work in progress. git clone -branch -depth 1.Remote: Total 19196 (delta 9353), reused 14226 (delta 5134) Often I clone only a single commit from one branch of a git repository so that. Receiving objects: 100% (78060/78060), 565.34 MiB | 1.28 MiB/s, done.Ä¥65.34 MiB git clone -depth 1 -no-single-branch git clone -depth 1 -no-single-branch into 'myBigRepo'. > Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.Trying to determine how i can only get essential git files when cloning repos and how much of a difference different ways of cloning the repo make on file size and bandwidth used. cocoapods-stats from `/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-stats-1.0.0/lib/cocoapods_plugin.rb` Integrating target `Pods-tmp` (`tmp.xcodeproj` project) Writing Manifest in `Pods/Manifest.lock` Writing Xcode project file to `Pods/Pods.xcodeproj` Installing target `AFNetworking` iOS 7.0 Since git 1.7.10, you can also limit the amount of history you clone by cloning a single branch, like so: git clone remote url -branch branchname -single-branch folder This specific hack is useful when youâre working with long running and divergent branches, or if you have lots branches and only ever need to work with a few of them. If we only want to fetch the last 10 commits, we can run: git fetch. We can also use the -depth argument instead to limit the number of commits to fetch. To pull all of the old commits on the branch that we initially cloned, we can run: git fetch -unshallow. > Installing AFNetworking 3.0.0-beta.1 (was 3.0.0-beta.1) To fetch all of the remote branches, we now need to run: git remote update. > Copying AFNetworking from `/Users/spt/Library/Caches/CocoaPods/Pods/External/AFNetworking/a89537f30f70e582e6915e54db66302b` to `Pods/AFNetworking`Ĭomparing resolved specification to the sandbox manifest Implies -single-branch unless -no-single-branch is given to fetch the histories near the tips of all branches. $ /usr/local/bin/git -C /var/folders/0k/9w0xj_jx24nfd8sn0fjxlx8r0000gn/T/d20170612-8899-c64mth checkout -quiet d284c551809ea911e90f30f872d1911b5a41cc04 However, git clone -depth supports an additional argument -no-single-branch -depth Create a shallow clone with a history truncated to the specified number of commits. > Pre-downloading: `AFNetworking` from ``, branch `2974` Using `ARCHS` setting to build architectures of target `Pods-tmp`: (``) preloading /usr/local/Cellar/proxychains-ng/4.12_1/lib/libproxychains4.dylib then the clone_argument() function would bypass the -depth 1 parameter always. It still try ls-remote and delete :branch setting from the options and return the :commit inside options. Seems the first line "return options unless options" would not return the options even if I have the :branch setting in Podfile. #Git clone branch depth 1 download#I found the "git.rb" a file from cocoapods-downloader was added a new function for pre-processing the download options.Ĩ months ago Added first batch of test coverageÄ¢9 output = Git.execute_command('git', command)Ĩ months ago Allow download strategies to preprocess download optionsÄ£0 match = /^( )\t./.match(output) We always using :git => xxx, :branch => 'xxx' for each pod lib, we're using a private GitHub to hold the libs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |