删除历史commits,减小repo的大小 Browse files Browse the repository at this point in the history Loading branch information jinlin82 committed Feb 8, 2020 1 parent 310877b commit 5ec95ad Show file tree Hide file tree Showing 52 changed files with 27,951 additions and 0 deletions. ...
If other packages in the repo need to depend on this new version, ensure that their package.jsons are also updated too. For example, if we are creating types/history/v2, its package.json would look like: { "private": true, "name": "@types/history", "version": "2.4.9999" } ...
git_push_without_commits– Creates an initial commit if you forget and onlygit add ., when setting up a new project; git_rebase_no_changes– runsgit rebase --skipinstead ofgit rebase --continuewhen there are no changes; git_remote_delete– replacesgit remote delete remote_namewithgit remot...
# to remove the file from the unpushed history as well 将提交推送到 your GitHub Enterprise Server instance: $ git push # Push our rewritten, smaller commit 删除之前提交中添加的文件 如果在之前的提交中添加了文件,则需要将其从仓库历史记录中删除。 要从仓库历史记录中删除文件,可以使用 BFG Repo-Cle...
NameName Last commit message Last commit date Latest commit Irrelon Version upMar 28, 2023 bdeea1b· Mar 28, 2023 History2,509 Commits chrome-extension chrome-extension New version build 2.0.22 Mar 1, 2018 configData configData Added folder holder file so that git will keep it Feb 19,...
If you added a file in an earlier commit, you need to remove it from your repository history. You can remove files from your repository history using either the BFG Repo-Cleaner or thegit filter-branchcommand. For more information, see "Removing sensitive data from a repository." ...
Removing a file that was added in an earlier commit If you added a file in an earlier commit, you need to remove it from the repository's history. To remove files from the repository's history, you can use the BFG Repo-Cleaner or thegit filter-branchcommand. For more informati...
Lost signatures on commits and tags: Signatures for commits or tags depend on commit hashes; since commit hashes are modified by history rewrites, signatures would no longer be valid and many history rewriting tools (includinggit-filter-repo) will simply remove the signatures. In fact,git-filter...
Only a single commit is fetched by default, for the ref/SHA that triggered the workflow. Setfetch-depth: 0to fetch all history for all branches and tags. Referhereto learn which commit$GITHUB_SHApoints to for different events. The auth token is persisted in the local git config. This enab...
repos: - repo: local hooks: - id: trufflehog name: TruffleHog description: Detect secrets in your data. entry: bash -c 'trufflehog git file://. --since-commit HEAD --results=verified,unknown --fail' # For running trufflehog in docker, use the following entry instead: # entry: bash...