8 ms·
I hope that's not your real password!
by xbenjii 8y ago
I hope that's not your real password!
- speps 8y agoEDIT: 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.
- wpearse 8y agoThanks. Not the address with the WiFi garage thankfully. I was actually thinking "better not commit that" ... before, y'know, I committed it :/
- dogma1138 8y agoWell looks like a nice neighborhood at least.
- jimktrains2 8y agogit 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.
- Drdrdrq 8y agoThank you! I use 'git add -p' all the time, but didn't know the trick with commit. I am a sucker for nice commits so I will check every commit's diff multiple times. When I don't, I usually end up including pieces of code which is not ready yet, which is meant for debugging,...
- Kihashi 8y agoIt's possible to remove that from the history of your repo, although it breaks any forks. https://rtyley.github.io/bfg-repo-cleaner/ https://rtyley.github.io/bfg-repo-cleaner/
- wpearse 8y agoHeh. I think I did worse ... made a local copy of the repo, nuked it on GitHub, then re-created the three commits by hand ... less credentials. That looks like a much more useful tool, though.
- nothrabannosir 8y agoI got just the thing for you: https://gist.github.com/hraban/10c7f72ba6ec55247f2d 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.: print("debug: ", myval) becomes: print("debug: ", myval) # NOCOMMIT I end up relying on this every day I program. Can't go back.
- wpearse 8y agoThanks! I'm not sure how easy it would be to put the git hook on all my machines though? I have a collection of laptops (and one desktop) that I work on and I often don't use the same machine for a few weeks :-/ I ended up using a "env.h" file... is there a C-equivalent of the PHP (?) .env file?
- tty7 8y agohttps://direnv.net https://direnv.net Would be my recommendation
- dogma1138 8y agoWell according to Google it’s an address in Auckland NZ so I hope it’s not his address either.