EDIT: it's actually his address, I thought it was just a coincidence but you can the house on Street View... I removed the actual name as doxxing isn't great, sorry.
Every time you write some code you need to remember removing before commit, surround it with a comment containing "NOCOMMIT". With this script as a pre-commit hook, git will echo an error message and fail.
E.g.:
print("debug: ", myval)
becomes:
print("debug: ", myval) # NOCOMMIT
I end up relying on this every day I program. Can't go back.
EDIT: it's actually his address, I thought it was just a coincidence but you can the house on Street View... I removed the actual name as doxxing isn't great, sorry.
Thanks. Not the address with the WiFi garage thankfully.
I was actually thinking "better not commit that" ... before, y'know, I committed it :/
I got just the thing for you:
https://gist.github.com/hraban/10c7f72ba6ec55247f2d
Every time you write some code you need to remember removing before commit, surround it with a comment containing "NOCOMMIT". With this script as a pre-commit hook, git will echo an error message and fail.
E.g.:
becomes:
I end up relying on this every day I program. Can't go back.
2 replies →
It's possible to remove that from the history of your repo, although it breaks any forks.
https://rtyley.github.io/bfg-repo-cleaner/
1 reply →
git add -p
It will let you approve each hunk in a file to commit or not.
git commit -e -v
Will force you to edit the commit message and in the editor show you the diff of the commit against HEAD.
1 reply →
Well looks like a nice neighborhood at least.
Well according to Google it’s an address in Auckland NZ so I hope it’s not his address either.
hey, I'm in Auckland,maybe I can go around and hack his garage :)
Bring beer.
3 replies →