OpenFOAM Intermediate - 58 cleaning up Git history part ii git gc git reflog
Petroleum Downstream Crash Course Playlist:
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQ13CnhacUqEVk-tZlU4ISE
OpenFOAM for Windows 10 Beginner Playlist and some Git Repos
https://www.youtube.com/playlist?list=PLhPfNw4V4_YRhBU4IqSaToQ8_X543YQsZ
https://github.com/theodoreOnzGit/laminar_BL_OpenFOAM
OpenFOAM Intermediate Playlist and some Git Repos
https://www.youtube.com/playlist?list=PLhPfNw4V4_YSpWX6mSOlwWEOKVa6i_iuE
https://github.com/theodoreOnzGit/thin_pipeflow_snappyHexMesh
OpenFOAM Heat Transfer Playlist and GitHub Repo
https://www.youtube.com/playlist?list=PLhPfNw4V4_YR2Qa3Q9-AzNSF2J9Dc4_qT
https://github.com/theodoreOnzGit/OpenFoam_heatTrf_YouTube
Radiation Heat Transfer Learning Journal and Git Repos:
https://www.youtube.com/watch?v=uUzh9kh-WTo&list=PLhPfNw4V4_YRUUVUydQp-n6U-7uu1kJof
https://github.com/theodoreOnzGit/heatTransferTheory_YouTube
Turbulence Modelling Playlist
https://www.youtube.com/watch?v=F_Rxv9uMM3g&list=PLhPfNw4V4_YSnbYkJIBQ1kRN06Mmxe2Be
https://github.com/theodoreOnzGit/turbulenceModelling
Useful links:
https://git-scm.com/book/en/v2/Git-Internals-Maintenance-and-Data-Recovery
https://stackoverflow.com/questions/9683279/make-the-current-commit-the-only-initial-commit-in-a-git-repository/13102849#13102849
https://stackoverflow.com/questions/28312439/git-gc-aggressive-prune-all-does-not-remove-big-file-from-repository
Repo to Practice Cleaning up Git Repos
https://github.com/theodoreOnzGit/practiceGitCleanup.git
Rough list of commands to run:
git reset "commit number"
then we have to remove the remote...
git remote remove origin (or whatever your file is)
git reflog expire --expire=now --all
git gc --aggressive --prune=now
Note: aggressive gc takes a lot of time, so we may require more time to execute this command, do git gc without --aggressive to clear the logs faster (but less thoroughly)