git-filter-branch
How to get a list of all refs a git push would push?
We\'re trying to implement a git workflow where there exists a pre-receive hook on the remote repo to validate that all pushed refs have commit messages that contain certain required information. In o[详细]
2023-04-09 12:44 分类:问答git, filter-branch on all branches
I\'m using the following sources to expunge some large files and directories from my reposit开发者_运维百科ory:[详细]
2023-04-05 15:09 分类:问答How to move a subdirectory from a branch in one git repository to a branch in a different repository, preserving history?
I\'ve got a directory containing utility libraries that were developed in a branch in one git repository, but it turns out they really belong in a different directory in a different project. I\'ve rea[详细]
2023-04-05 07:47 分类:问答How to extract one file with commit history from a Git repo with index-filter & co?
I have a Git repo converted from SVN to Mercurial to Git, and I wanted to extract just one source file. I also had weird characters like aÌ (an encoding mismatch c开发者_StackOverflow中文版orrupted U[详细]
2023-04-04 04:56 分类:问答Why did --cached option on filter-branch remove files from working directory?
I needed to remove some Xcode files from an old repo that should have been ignored. So I ran the following command[详细]
2023-03-26 16:43 分类:问答How fix git log after use hg-fast-export.sh?
my git repo seem to be corrupted. $ git push -u origin master Counting objects: 16157, done. Delta compression using up to 4 threads.[详细]
2023-03-25 10:35 分类:问答Git remove files from repository, Github and commiters
Somebody accidentally checked in 80 megs worth of JPG\'s into our git repository and pushed it to github central repository.[详细]
2023-03-24 11:47 分类:问答Detach subdirectory (that was renamed!) into a new repo
I have a repository and I would like to detach one of its directories into a new repo. This is a perfect place to get started, there 开发者_如何学Gois one caveat, however: the directory that I want to[详细]
2023-03-18 07:51 分类:问答completely removing a file from git repo (from a certain point in time)
I\'ve got a repo with about 2030 commits. At around commit 2000 a file was modified which caused it\'s size to travel from about 20M to 1.2 GB accidently. Is it possible to rewrite the history to remo[详细]
2023-03-15 16:05 分类:问答git: How to split off library from project? filter-branch, subtree?
So, I\'ve a bigger (closed source) project, and in the context of this project created a library which could also be useful elsewhere, I think.[详细]
2023-03-13 20:00 分类:问答