Compressing many commits into fewer, but larger, commits

I git-commit everything I do every hour. This is nice but I end up with way too many commits.

I’d like to be able to purge this so that instead of :

  • Is there an alternative to a “push” hook?
  • Creating tags with Grit
  • Is it safe to publish an app on Heroku that has api keys on there?
  • git rm --cached file vs git reset file
  • Git permanent removal of file not resulting in smaller repo?
  • Loading my private key for use in git on Mac
  • 1 hour ago
    2 hours ago
    .
    23 hours ago
    24 hours ago
    

    I just have something like:

    1 hour ago
    2 hours ago
    1 day ago
    7 days ago
    

    etc.

    Currently each hour I do:

    git-add .
    git-commit -a
    

    How can I remove certain commits? I don’t want to undo any changes. I just don’t care to have quite so many points to revert to. I’d like to have a lot of commits for the past few hours but then only a few after that (the past day, week, month, etc. or other major points that I keep on purpose).

  • Git merge to all branches
  • Bugged file path in Git - path contains backslash (\) instead of regular slash
  • Visual Studio - AppBuilder - Git Hub - .sou file issue
  • git: How to recover uncommited changes from staged deleted file?
  • How to organize a Python project with pickle files?
  • Best practice to deploy python app to use a specific version of Python with venv
  • One Solution collect form web for “Compressing many commits into fewer, but larger, commits”

    Have a look at the git rebase -i command. This lets you ‘squash’ commits into larger ones, which seems like what you want to do.

    Git Baby is a git and github fan, let's start git clone.