Get Some

General => Technology & Hardware => Topic started by: Bell on July 08, 2013, 09:37:56 pm

Title: Git...
Post by: Bell on July 08, 2013, 09:37:56 pm
Can fuck right off with the rest of programming hipsters who love it so much.

That is all.
Title: Git...
Post by: Pyromanik on July 08, 2013, 09:51:37 pm
Because Mercurial?
Title: Git...
Post by: Bell on July 08, 2013, 10:28:44 pm
My organization uses github because they wanted things to be open source so the guy before me choose it.
I mistakenly added some large files to my repo and tried to push to remote about a week later when I was deploying a new version.

The commands to fix something reasonably simple like that are retarded, if it wasn't for google i'd be fucked.
The first half is just finding the large files and printing out the file names.

Code: [Select]
#Order my repo files by size
git rev-list --objects --all | sort -k 2 > allfileshas.txt
git gc && git verify-pack -v .git/objects/pack/pack-*.idx | egrep "^\w+ blob\W+[0-9]+ [0-9]+ [0-9]+$" | sort -k 3 -n -r > bigobjects.txt
for SHA in `cut -f 1 -d\  < bigobjects.txt`; do
echo $(grep $SHA bigobjects.txt) $(grep $SHA allfileshas.txt) | awk '{print $1,$3,$7}' >> bigtosmall.txt
done;

#look at all these motherfucking params
git filter-branch -f --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch FILE_I_WANT_DEAD' --tag-name-filter cat -- --all
#now I have to just jam my modified git files into the repo overriding everything, what could go wrong?
git push origin master --force

I understand why doing this shit is more complex than svn and the like but jesus christ.
Title: Git...
Post by: Apostrophe Spacemonkey on July 09, 2013, 08:36:10 am
Agreed. We had a look a Git at my previous job, but it was unnecessarily confusing in my opinion.

I much prefer SVN, or the almighty Team Foundation Server!
Title: Git...
Post by: Pyromanik on July 09, 2013, 06:07:37 pm
Quote from: Bell;1528227
I understand why doing this shit is more complex than svn and the like but jesus christ.

Yeah ok I can agree with that. Git gets a bit stupid when you try to do complex stuff.
But over all I like git. If you're getting confused while trying to do something simple, you must be about as smart as a (code) monkey. HEYOOOO, see what I did there? 2 birds, 1 stone!

NOT having a staging area confuses the crap out of me now.
Or more to the point not having a decentralised system.


Also, git isn't for storing big binary blobs. You can get away with small things if you're eg. web developer... but otherwise you probably should be looking at git-annex or something.

Yeah yeah, svn externals. I have to say svn sounds like it's come a long way since I last used it though.
Title: Git...
Post by: Bell on July 09, 2013, 07:19:51 pm
Is there any good products made for git yet? Most of the ones i've tried had been trash.
Surely if you wrapped those types of commands into a nice gui companies would pay for it.

I come from the world of Visual Studio with integrated SVN right in the project browser and that shit is gold.
Title: Git...
Post by: Pyromanik on July 10, 2013, 05:43:01 pm
Yeah, because of the decentralisation it gets tricky I think. But there are gui tools. Just no nice ones unless you're on a mac (or so I'm told). Linux has a few, but as with most things I think they're all pretty immature and aim for function over form & usability. And then there's tortoise svn port on windows. I don't think there's any other.

But then I tend not to look at paid solutions. I think there might be a few slightly above average GUI tools floating around if you're willing to pay.
Title: Git...
Post by: Bounty Hunter on July 11, 2013, 08:14:50 am
know what confuses me about SVN? there's no fucking UI (unless you download one) but at uni all we have is a stupid right mouse click "make SVN" button and then magically it's SVN, fuck knows where it's pointing, fuck knows how to comit etc fuck the whole fucking thing! fucking fuck the fucking fucked fuckers!
Title: Git...
Post by: Xenolightning on July 11, 2013, 07:59:38 pm
Quote from: Bounty Hunter;1528316
know what confuses me about SVN? there's no fucking UI (unless you download one) but at uni all we have is a stupid right mouse click "make SVN" button and then magically it's SVN, fuck knows where it's pointing, fuck knows how to comit etc fuck the whole fucking thing! fucking fuck the fucking fucked fuckers!
What OS? If it's nix, it's probably a bash script that sets up an SVN to the name of the directory. Probably have to use CMD to commit/udpate though.
Title: Git...
Post by: Bounty Hunter on July 11, 2013, 08:29:39 pm
Quote from: Xenolightning;1528341
What OS? If it's nix, it's probably a bash script that sets up an SVN to the name of the directory. Probably have to use CMD to commit/udpate though.

nix wasn't too bad (except the gross linux labs) this was on win95 (yes, the computers in the electronics lab still run win95 - they were suppose to be updated last semester, they might be by now)
Title: Git...
Post by: Pyromanik on July 13, 2013, 10:27:55 am
Probably Tortoise SVN ?

We use Tortoise Git at work becauase no decent alternative. Makes more sense though, because distribution means any git repo is a fully functioning independent repository. Not like SVN (last I used it at least).
Title: Git...
Post by: Bounty Hunter on July 13, 2013, 12:30:07 pm
Quote from: Pyromanik;1528459
Probably Tortoise SVN ?

We use Tortoise Git at work becauase no decent alternative. Makes more sense though, because distribution means any git repo is a fully functioning independent repository. Not like SVN (last I used it at least).

It's like chatroulette, except 40% of your course grade depends on getting this crappy software to put your code in the right place.