truk77
111
26
3
I wish I could say that this was the first time I'd ever done this.
Fortunately, I've got enough notes and similar code in other files to rebuild this particular script without too much pain, but it's still a kick in the teeth.
Remember kids: Commit early, commit often.
CatsAreOurGods
rm -rf /
Dreaneth
*swoosh* that's the sound of this going straight over my head.
slinkhi
just revert back to.. oh.
darkspork
You dont have shadow volumes turned on?
dudds6699
it allways goes into a git repository
DistanceGirl
Oh, god. I'm so sorry.
LordFlappingtonMcTweetGotBannedForTellingPeopleToHangThemselves
truk77
dogestyle
Dude ... creating the repo should be the first thing you do. Do you think you're going to get it right and complete on the first try ?
dogestyle
also, hmm, git init ?
truk77
Yeah, I know, I know. It was some messy proof-of-concept code that was intertwined with a different project's tree. Needed to isolate it.
dogestyle
To isolate a subdir into a new project, there's this nifty command: git filter-branch --subdirectory-filter foo -- --all (1/2)
dogestyle
but run it on a clone of the repo, or you'll lose everything else (2/2)
truk77
Thanks for the tip!