Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Pro tip: -p

Interactive staging, eg git add -p or git checkout -p

You’ll be asked, for each change, if you want to stage it. This helps tremendously in preventing commits with stray marks, console logs, etc. Try it!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: