-
Notifications
You must be signed in to change notification settings - Fork 60.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add alternative to bfg on about-large-files-on-github.md #34950
Comments
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
@MathiasBaumgartinger Thank you for raising this issue! I'll get this triaged for review ✨ Our SME team will provide feedback regarding the best next steps for this issue - thanks for your patience! 💛 |
Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert 👀 |
Thanks for sending in a suggestion for the docs; very much appreciated. While you raise a valid point, I am concerned that the suggestion might only be applicable in special circumstances and these instructions might hurt others who don't fall into the same circumstances as you:
If we do mention git-rebase, then I think we'd need to mention that it's only applicable in special cases (linear history, you know which commit(s) added or modified the problematic file, you are familiar with what to do if conflicts arise). Rather than expand the document to cover all those cases, I think it'd be better to just have a brief mention that git-rebase can do the job in these special cases and link to upstream docs but then recommend other tool(s) instead. I'm already planning on a few big changes to the sensitive-data-removal document soon, I could modify this document at the same time to make that brief mention. |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. See this blog post on bug reports and the importance of repro steps for more information about the kind of information that may be helpful. |
Code of Conduct
What article on docs.github.com is affected?
https://github.com/github/docs/blob/main/content%2Frepositories%2Fworking-with-files%2Fmanaging-large-files%2Fabout-large-files-on-github.md
What part(s) of the article would you like to see updated?
As mentioned in my PRQ I think for many use-cases, with all due respect, BFG is an overloaded and unintuitive tool. Removing a file can be done rather straightforward with an interactive rebase.
As a clumsy git(hub) user I would have appreciated the suggestion for such a solution a lot.
Additional information
Content of Pull-Request
Alternatively,
git rebase
may be used to alter the commit in an earlier state. First, you need to identify the hash of the commit where the change happened. For instance, to modify35da8436
, you may useThe tilde (
~
) is strictly necessary to reapply the subsequent commits.git rebase
will now open your default git editor of structure:Change
pick
toedit
in the line of the commit to be modified. Once the file is saved, the HEAD of the repository will be at the named commit. The commit may now be modified. Repeat the steps mentioned previously:Consequently, you may return to the original HEAD using
git rebase --continue
and push the smaller commits usinggit push
.The text was updated successfully, but these errors were encountered: