Created
September 14, 2016 20:36
-
-
Save FeodorFitsner/536a24c11e509c95aa7b0ba7e4b19408 to your computer and use it in GitHub Desktop.
Cloning repo with git LFS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(-not $env:appveyor_pull_request_number) { | |
git clone --depth=1 -q -c filter.lfs.smudge= -c filter.lfs.required=false --branch=$env:appveyor_repo_branch git@github.com:$env:appveyor_repo_name.git $env:appveyor_build_folder | |
git checkout -qf $env:appveyor_repo_commit | |
git lfs pull | |
} else { | |
git clone --depth=1 -q -c filter.lfs.smudge= -c filter.lfs.required=false git@github.com:$env:appveyor_repo_name.git $env:appveyor_build_folder | |
git fetch -q origin +refs/pull/$env:appveyor_pull_request_number/merge: | |
git checkout -qf FETCH_HEAD | |
git lfs pull | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@positive07 This can be https://confluence.atlassian.com/bitbucket/current-limitations-for-git-lfs-with-bitbucket-828781638.html
Try replacing
git@github.com
withuser/password