git-filter-branch
Using Git as a back-end for an update server, how to keep the repository small
Here\'s my use case. I have a desktop app that can download from my server media content on-demand. Every week or so, new media will be pushed/renamed/modified etc. on the server, and the clients will[详细]
2023-03-07 13:17 分类:问答Git: what is a graftcommit or a graft-id?
On git-filter-branch, it is said: To set a commit (which typically is at the tip of another history) to be the parent of the current initial commit, in order to paste the other history behind the cur[详细]
2023-03-07 10:12 分类:问答Completely remove files from Git repo and remote on GitHub
I accidentally added a folder of images and committed. Then, I made one more commit. Then I removed those files using git rm -f ./images and committed again.[详细]
2023-02-22 04:22 分类:问答Extract out changes to single file in a range of git commits
The build system I work with usually requires that the project data is committed to the local repository before a full build can be performed.This -- along with my usual habit of committing frequently[详细]
2023-02-17 10:11 分类:问答Extract git subdirectory while keeping history WITH renames
I\'m splitting a big source tree into two separate components and a shared submodule.In order to prepare for this split, I first moved the shared stuff into a single \"common\" directory, updated all[详细]
2023-02-15 21:39 分类:问答Move .git folder up in working tree hierarchy
Yesterday I did one of these operations (see code snippet below) on my git repo in order to effectively move my project up a few folders in the folder hierarchy. This basically lists all files and add[详细]
2023-02-12 22:03 分类:问答git ignores $GIT_AUTHOR_DATE -- is this a bug?
EDIT: Summary: Git does not allow dates before 1973/03/03 09:46:40 (epoch+100000000s) given in its \"internal date format\" (seconds since the epoch). This is to allow \"20110224\" as short form of \[详细]
2023-02-12 18:13 分类:问答Splitting huge git repo
I am trying to split a git repo using the recipe described in this question, but the git repo in question is huge and has thousands of commits, so command line limit kicks in when I try to run the com[详细]
2023-02-08 00:36 分类:问答After filtering master, how do I retrieve stashed changes on the old master?
I followed GitHub\'s instructions for removing sensitive files from a git repository because I wanted to remove some binaries that should not have been checked in.[详细]
2023-02-07 07:24 分类:问答git surgery - splitting out a single repository into many repositories
I have an existing git repository: my-repo/ .git/ foo/ foo-content-开发者_开发知识库goes-here bar/[详细]
2023-02-03 16:24 分类:问答