Skip to content
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

Handle accidental git commit with big files #83

Open
rburghol opened this issue Sep 1, 2022 · 0 comments
Open

Handle accidental git commit with big files #83

rburghol opened this issue Sep 1, 2022 · 0 comments

Comments

@rburghol
Copy link
Collaborator

rburghol commented Sep 1, 2022

See here: https://github.com/HARPgroup/vahydro/wiki/Git-Tips-and-tricks#git-large-file-problem

  • Note: follow those instructions exactly and DO NOT TRY TO USE A REGULAR rm, then remove the cached file because it blows it all up.
  • See my latest example fixing this:
# remove the files in the GIT CACHE first before anything else
git rm --cached code/src/wqm_load/ch3d/sample/fort.13_new_2000
git commit --amend -CHEAD
git push origin p61st
# then we come in and remove this file so that it never gets added accidentally
rm code/src/wqm_load/ch3d/sample/fort.13_new_2000

Hard to do.

for i in `find code/* |grep ".*\.a$"`; do rm $i; done
for i in `find code/* |grep ".*\.exe$"`; do rm $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant