two quick git tips

Two things I learned today:

  • If you’re committing files in a directory on a server, and getting permission errors, just change the owner of the .git directory to the account making the commits. I did chown -R batkin:staff. Changing the permissions of the other files can have unwanted side effects, so I prefer to do them only as needed.
  • To stage all files deleted outside of git on the command line, run git add -u. I learned this on Stack Overflow, which has been a tremendous resource for me.

  1. batkin posted this
Short URL for this post: http://tmblr.co/ZrpDay7wfi-I