Hacker News new | ask | show | jobs
by user3939382 1500 days ago
This is awesome although I solve these problems a different way for my workflow. If I really need to dive into git I use Tower. For adding to a commit, I basically never need to add anything less than everything. In 1 step I add everything and commit with a message without needing quotes:

  # git config
  alias.add-commit !git add -A && git commit

  # .bash_profile
  # Use like: gac this is my commit message
  function gac ()
  {
     git add-commit -m "$*" 
  }