Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
Mateusz Łoskot
git lfs fetch origin --all
You don't need to change origin, just add new remote
and then you can git lfs push --all newremote as per https://github.com/git-lfs/git-lfs/issues/516#issuecomment-140002103
Once you are happy with the migration, update origin in local repo(s)
Balin Mateusz Łoskot (Gitter): Terrific. Thank you so much for your help ... got hit by the fact that the importer of the new institutional product migrates the lfs stubs, but not the underlying data, while happily recognizing the stub and telling you the file is lfsed ... with a non-exisiting pointer ... LOVELY.
Balin This also helps in this context: git remote rename origin old-origin
Mateusz Łoskot
Balin Here's what I do now:
Balin 1) git clone GITHUB_REPO
2) cd REPO_DIR && git lfs install --local
3) git lfs fetch origin --all
4) git lfs pull
5) git remote rename origin old-origin
6) git remote add origin git@<NEW_URL>:<NEW_REPO>.git
7) git push -u origin --all
8) git push -u origin --tags
Balin Reads about right?
Mateusz Łoskot
I think so
Amit Prasad
What is the disadvantage of multiple repo
for single project
@all did any one impelemented github scanner(To scan scerets or credentials if we commit bymistake to github it has scan)
for more info https://github.com/dxa4481/truffleHog
Can anyone help me setup this ?
hello people
Hi there. I want to clone a large repo using git lfs, but my windows parition does not have enough space and unfortunaltely, that is the tempDir of git lfs. I wanted to know if there is a way to change the tempDir which is shown in the output of command "git lfs env"
I finally figured out how to change the tempDir. this may be useful to others so I'm posting it here:
git config --global lfs.tempdir "some directory"

I installed everyting properly.

  1. Added a test.jpg file in root (it is tracked)
  2. Running git lfs status shows that file to be committedcategory
  3. After I commit test.jpg
  4. Running git lfs status does not show that file in to be pushed category

What am I doing wrong ?

That hooks are all updated using git lfs update
John Skoteiniotis
Hi, how can I config git to pull lfs files with git clone? I'm trying to write a backup script which works fine but all the cloned repos don't have the lfs files. For some reason my laptop is doing what I want but my server doesn't behave the same :(
Mateusz Łoskot
@j0hnskot after installing Git LFS, You should be ready to go, no additional configs should be needed and git clone just pulls all LFS
Bas Nijholt
This message was deleted
hello - i have an issue where i'm trying to push to a new repo, but git lfs is giving me 'unable to find source for object'
i do not have access to the original repo, how can i remove these files?
so all i have is the files in their current state
Mateusz Łoskot
@geraldolsribeiro your case seems similar to this, git-lfs/git-lfs#3923, there are pieces of good advice in comments
Amit Prasad
Hi All
I have a problem of using the data and form the response in case class
lets say i have Seq[CaseA(uuid, data)] and Seq[CaseB(uuid,Data1,Data2)] and Seq[CaseC(uuid,Datax,Datay)]
I want to form the reponse from all based on common UUID
Any help will be appreciated.
git lfs fetch
fetch: Fetching reference refs/heads/master
batch response: Authentication required: Unable to parse HTTP response for POST : ../.. invalid character '\n' in string literal
error: failed to fetch some objects from ...
any pointers on the solution?
Wu-Jung Lee
Hello All
I am trying to migrate some large files currently sitting in a github repo to use LFS, but I am at lost on what would happen to the existing forks once the history is "rewritten" after using the BFG-repo-cleaner. Does anyone have experience on this and have comments or workflow for reference?
Any help is much appreciated!
Yair Ivan Medina Cota
Hrishikesh Bawane
Hey guys, I am eager to get started with open source contributions on git but as many beginners I am confused about where to start! Any help would be appreciated. This is my github link if you want to check out: https://github.com/hrishibawane
Shahar Evron
Hello all, I'm wondering if there has ever been a discussion on allowing some custom metadata attributes to be specified as part of the batch API. Specifically, it could help us if there was a way to specify the file's original name for upload / download batch API operations. I've seen this mentioned here: git-lfs/git-lfs#850 but this was never merged.
So I'm wondering if there has been any other discussion on that area
Some context: I'm working on a Git LFS server implementation in Python (https://github.com/datopian/giftless) as part of a project aimed at integrating Git LFS (and git) into the CKAN data management system. I admit it's a fairly unique use case, but we really think the Git LFS protocol is the way forward for us. It does raise some unique needs, for example storing more original file metadata.
t-summer hae guys
Hi people! I have a connection which could in no way be defined as stellar, so I've been wondering what is the proper way to resume (not restart) a clone after a connection loss. Should I just do a git checkout -f HEAD as Git suggests or something along the lines of git lfs fetch and git lfs pull?

Quoting @hrishibawane:

Hey guys, I am eager to get started with open source contributions on git but as many beginners I am confused about where to start! Any help would be appreciated. This is my github link if you want to check out: https://github.com/hrishibawane

Check the repository of the project you would like to contribute to, get acquainted with the codebase, coding style and language used, check issues and contribution guide if available. Fork the repository and make a pull request. PR feedback should provide you further guidance.

I've got HTTP basic auth in front of the https endpoint of my gitlab, which is making my git LFS confused. I do not get prompted for the HTTP basic auth password, and I'm wondering how I get this to work?
the git config is a ssh remote, but when I try to do git lfs push origin master it adds to my .git/config a lfs line that is the https endpoint
it seems if I set my LFS endpoint to have the first layer basic auth credentials, it will pass that, but then fail on the gitlab authentication (because I think it is using the same credentials, which wont work)
if I set gitlab access token to be the htpasswd basic auth, then things work, but that is a bit ugly
can anyone help me with a github page? has its not working after I push it from mkdocs
Muli Yulzary
Can anyone help me with downloading a file from git LFS programmatically? I can't seem to figure it out (setup works using the git client - my question revolves around requesting a single file via api request)
Francois Budin
I have been using an older version of git-lfs until now (2.13.2) and when cloning the repo with git clone repo_name, it was applying the exclusion filter from my .lfsconfig file. I am trying to update git-lfs (I have tried 3.0.2, on Ubuntu, and 3.1.4, on Windows, with git-bash). But when I am cloning my repository, it now downloads all LFS objects. If I interrupt this step, or skip it with GIT_LFS_SKIP_SMUDGE=1, and then run git lfs fetch from within my clone repository, I get the expected result with lfs.fetchexclude working. Any idea why? Has the behavior changed on purpose between git-lfs 2.X and 3.X? Is there a new option to set?
Francois Budin
Note that the issue I was mentioning above has been solved in git-lfs 3.2.0 .