Reduce git repository size

I tried looking for a good tutorial on reducing repo size, but found none. How do I reduce my repo size…it’s about 10 MB, but the thing is Heroku only allows 50 MB and I’m no where near finished developing my app. I added the usual suspects (log, vendor, doc etc) to .gitignore already. Although … Read more

How to revert uncommitted changes including files and folders?

Is there a git command to revert all uncommitted changes in a working tree and index and to also remove newly created files and folders? 1 14 You can run these two commands: # Revert changes to modified files. git reset –hard # Remove all untracked files and directories. # ‘-f’ is force, ‘-d’ is … Read more