Skip to content

Instantly share code, notes, and snippets.

@TeamDman
Last active May 3, 2025 17:55
Show Gist options
  • Select an option

  • Save TeamDman/5ae9a75a4d6db2c543cec6d98a16a7fd to your computer and use it in GitHub Desktop.

Select an option

Save TeamDman/5ae9a75a4d6db2c543cec6d98a16a7fd to your computer and use it in GitHub Desktop.
Renaming files with invalid characters on windows
git ls-tree HEAD 'test/gemma2:latest.Modelfile'
git ls-tree HEAD 'test/llama3.1:latest.Modelfile'
git ls-tree HEAD 'test/llama3.1:latest.model.json'
git ls-tree HEAD 'test/llama3.2:latest.Modelfile'
git ls-tree HEAD 'test/mistral-nemo:latest.Modelfile'
git ls-tree HEAD 'test/mistral-nemo:latest.model.json'
git ls-tree HEAD 'test/mxbai-embed-large:latest.Modelfile'
git ls-tree HEAD 'test/mxbai-embed-large:latest.model.json'
git ls-tree HEAD 'test/qwen2.5:latest.Modelfile'
git ls-tree HEAD 'test/starcoder2:latest.Modelfile'
git ls-tree HEAD 'test/starcoder2:latest.model.json'
git update-index --force-remove test/gemma2:latest.Modelfile
git update-index --add --cacheinfo 100644,e08aadf3fbb71d771334e0ed2210128a8d10cc2e,test/gemma2.latest.Modelfile
git update-index --force-remove test/gemma2:latest.Modelfile
git update-index --add --cacheinfo 100644,e08aadf3fbb71d771334e0ed2210128a8d10cc2e,test/gemma2.latest.Modelfile
git update-index --force-remove test/llama3.1:latest.Modelfile
git update-index --add --cacheinfo 100644,a0c05018e2e8c863da17c8cfae6c1cdfe1a87085,test/llama3.1.latest.Modelfile
git update-index --force-remove test/llama3.1:latest.model.json
git update-index --add --cacheinfo 100644,3168bbccbe6317dc235008406da0bf05e86d8bce,test/llama3.1.latest.model.json
git update-index --force-remove test/llama3.2:latest.Modelfile
git update-index --add --cacheinfo 100644,cbe856852646564564e36be01fa189e82b750c1e,test/llama3.2.latest.Modelfile
git update-index --force-remove test/mistral-nemo:latest.Modelfile
git update-index --add --cacheinfo 100644,efecbe2ec20f36558e328c62523d2cad17472f14,test/mistral-nemo.latest.Modelfile
git update-index --force-remove test/mistral-nemo:latest.model.json
git update-index --add --cacheinfo 100644,d63f4db5556285a6be5a758f062fa0197f80b9d5,test/mistral-nemo.latest.model.json
git update-index --force-remove test/mxbai-embed-large:latest.Modelfile
git update-index --add --cacheinfo 100644,1c10ec980b720ab09e3e93871aac011d03e8cafb,test/mxbai-embed-large.latest.Modelfile
git update-index --force-remove test/mxbai-embed-large:latest.model.json
git update-index --add --cacheinfo 100644,3307662b255bf40a5f60e613c3f5871c0aad9840,test/mxbai-embed-large.latest.model.json
git update-index --force-remove test/qwen2.5:latest.Modelfile
git update-index --add --cacheinfo 100644,b7cbce39074afee8168cef2e90510ccbf022a5dd,test/qwen2.5.latest.Modelfile
git update-index --force-remove test/starcoder2:latest.Modelfile
git update-index --add --cacheinfo 100644,761ecb3fa8a89ed3466e96c100adab4d46033754,test/starcoder2.latest.Modelfile
# see https://github.com/covercash2/modelfile/tree/59b59d7a372f5d71ae34132dccee1cc57e5ab8d5/test
git restore --source=HEAD :/
git ls-tree HEAD test/llama3.1:latest.model.json
git ls-tree HEAD test/mxbai-embed-large:latest.model.json
git ls-tree HEAD test/starcoder2:latest.model.json
git ls-tree HEAD test/llama3.1:latest.model.json
git update-index --force-remove test/llama3.1:latest.model.json
git update-index --add --cacheinfo 100644,3168bbccbe6317dc235008406da0bf05e86d8bce,test/llama3.1.latest.model.json
git update-index --force-remove test/mxbai-embed-large:latest.model.json
git update-index --add --cacheinfo 100644,3307662b255bf40a5f60e613c3f5871c0aad9840,test/mxbai-embed-large.latest.model.json
git update-index --force-remove test/starcoder2:latest.model.json
git update-index --add --cacheinfo 100644,1adce96327ca2ec1c52db28968504929956ac16c,test/starcoder2.latest.model.json
git update-index --force-remove test/llama3.1:latest.model.json
git update-index --add --cacheinfo 100644,3168bbccbe6317dc235008406da0bf05e86d8bce,test/llama3.1.latest.model.json
git restore test/gemma2.latest.Modelfile
git restore test/llama3.1.latest.Modelfile
git restore test/llama3.1.latest.model.json
git restore test/llama3.2.latest.Modelfile
git restore test/mistral-nemo.latest.Modelfile
git restore test/mistral-nemo.latest.model.json
git restore test/mxbai-embed-large.latest.Modelfile
git restore test/mxbai-embed-large.latest.model.json
git restore test/qwen2.5.latest.Modelfile
git restore test/starcoder2.latest.Modelfile
git restore test/starcoder2.latest.model.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment