| 2012-05-30 |
| ← mmc left | 00:00 |
|
frogonwheels
| comps: but cherry-pick doesn't handle failure, continuing from failure .. or (I believe) the -i | 00:00 |
| → Anxi80 joined | 00:01 |
|
TheShagg
| for this situation, i would probably use a three aguement rebase | 00:01 |
| ← dreiss left | 00:01 |
| ← TeckniX left | 00:01 |
|
frogonwheels
| TheShagg: still need to create the temp branch so the original branch remains intact. | 00:02 |
| → rchavik joined | 00:02 |
| ← rchavik left | 00:02 |
| → rchavik joined | 00:02 |
|
TheShagg
| frogonwheels: yes | 00:02 |
|
| although the help is not telling me how to do three arguement rebase | 00:02 |
|
frogonwheels
| TheShagg: .. and I actually know the --onto form :) | 00:02 |
|
comps
| frogonwheels: no, it doesn't | 00:02 |
|
| frogonwheels: git rebase --onto HEAD~2 HEAD~7 HEAD~5 works fine for me, while being on (no branch) | 00:02 |
| → cybersphinx joined | 00:02 |
| ← b1rkh0ff left | 00:03 |
| ← chrisgeorge left | 00:03 |
|
frogonwheels
| comps: so it just leaves it as a detached head? interesting. Still, for my money, it's easier to grok with a temp branch name | 00:03 |
|
TheShagg
| i remember doing git rebase --onto=new_base oldest^..newest | 00:03 |
|
comps
| I often do things like git rebase --onto v3.3.7 v3.3.4 master since I have several commits on top of the vanilla linux kernel | 00:04 |
|
frogonwheels
| TheShagg: does it update new_base ? | 00:04 |
|
TheShagg
| in a pinch you could open up two sessions of git rebase -i, and copy commits from one into the other | 00:04 |
|
| hehe | 00:04 |
|
drags
| frogonwheels: using this strategy when I finished editing the picklist for the interactive rebase and it begings to actually replay the commits: it stops at every commit saying "Could not apply SoMeShA... commit message" | 00:04 |
|
| except there's no merge conflict to cleanup | 00:05 |
|
| I can then do rebase --continue to get by it, but I have to imagine the commit is then not being applied | 00:05 |
|
TheShagg
| new_base..... no I think it it actually updates the current branch, not the newbase | 00:05 |
| ← the_cybersphinx left | 00:05 |
| ← fly9 left | 00:05 |
|
frogonwheels
| TheShagg: exactly, and he wanted to keep the current branch as it was. | 00:05 |
| → fly9_ joined | 00:05 |
|
TheShagg
| right | 00:05 |
| ← Myhro left | 00:06 |
|
TheShagg
| so yes, checkout the current branch, type "branch newbranch" then "checkout newbranch", and then do the rebase | 00:06 |
| → grantbdev joined | 00:06 |
|
TheShagg
| as you probably said already | 00:06 |
| ← lnostdal left | 00:06 |
|
frogonwheels
| :) | 00:06 |
|
TheShagg
| I've actually been doing a lot of this | 00:06 |
|
| cleaning up commit hell from my coworker | 00:07 |
| → Myhro joined | 00:07 |
| ← andrew__ left | 00:07 |
|
TheShagg
| eventually I started doing git rebase -i | 00:07 |
|
| much better way of working | 00:07 |
|
| and git add -p | 00:07 |
| → rvsjoen joined | 00:07 |
| ← rvsjoen_ left | 00:08 |
| → lnostdal joined | 00:08 |
| ← btx94 left | 00:09 |
|
frogonwheels
| TheShagg: i've been using rebase to copy between 2 conversion of the same code (converted from dev and release of a file-based VSS style RCS) | 00:09 |
| ← libertyprime left | 00:10 |
| → libertyprime joined | 00:10 |
| → edude03 joined | 00:11 |
|
TheShagg
| frogonwheels: keeping two parallel branches? | 00:12 |
| → JEntrep joined | 00:13 |
| → mritz_ joined | 00:13 |
| ← JEntrep left | 00:13 |
| ← mritz left | 00:13 |
| ← Chillance left | 00:14 |
| ← felgru left | 00:16 |
| ← Zenith77 left | 00:16 |
|
frogonwheels
| TheShagg: I'm trying to gradually wean off one of them. nearly there. only taken a year | 00:16 |
| ← libertyprime left | 00:17 |
| ← peppyheppy left | 00:17 |
| ← panthrodeb left | 00:18 |
| → libertyprime joined | 00:18 |
| → Slim joined | 00:18 |
| ← berserkr left | 00:18 |
| ← p3rror left | 00:21 |
| ← ahayweh left | 00:21 |
|
milki
| commit hell~ | 00:21 |
| ← libertyprime left | 00:22 |
| → libertyprime joined | 00:22 |
| ← Kabaka left | 00:23 |
| → davidbanham joined | 00:23 |
| ← dinduks left | 00:24 |
| → ahayweh joined | 00:25 |
| ← fuzzybunny69y left | 00:25 |
| ← libertyprime left | 00:25 |
|
frogonwheels
| milki: you talking about my situation? yeah. but it will be worth it in the end. | 00:25 |
| → libertyprime joined | 00:26 |
|
milki
| TheShagg's actually | 00:26 |
| ← markus_ left | 00:26 |
| ← notmypudding left | 00:28 |
| → jgoss joined | 00:29 |
|
drags
| frogonwheels: thanks the temp branch strategy seems to have worked, unfortunately this is puppet configuration and not buildable (testable) code, so I'll find out in a bit if I stepped on my own toes anywhere, but at least the merge went through, woo | 00:30 |
| → sgronblo joined | 00:30 |
| → fp1 joined | 00:31 |
| ← DoniRS left | 00:31 |
| → vitor-br joined | 00:33 |
| ← nowhereman left | 00:33 |
| ← vitor-br left | 00:33 |
| → vitor-br joined | 00:34 |
| → nowhere_man joined | 00:34 |
| → p3rror joined | 00:34 |
|
jexmex
| if you delete branches how do you push those deletes through? | 00:35 |
|
bob2
| it's not conceptually really pushing at all | 00:36 |
|
| it's just that 'push' is about the only command that mutates a remote repo at all | 00:36 |
| ← kenperkins left | 00:36 |
|
jexmex
| so do I just commit my master and push? | 00:36 |
|
bob2
| ? | 00:37 |
|
jexmex
| just wondering how to tell the remote to remove those branches I just deleted | 00:37 |
|
bob2
| if you want to delete remote branch, 'git push :zomg' | 00:37 |
|
comps
| git push remotename :refs/heads/branchtodelete | 00:37 |
| → notmypudding joined | 00:39 |
|
jexmex
| ok thanks | 00:39 |
| → Davey_ joined | 00:39 |
| ← boombatower left | 00:40 |
| → whompwhomp joined | 00:40 |
|
whompwhomp
| how can i replace the contents of my git repo folder with the folder on the server? | 00:41 |
|
jexmex
| git push remote :branchname is all that is needed | 00:41 |
| → bruno_coelho joined | 00:41 |
| → kaos01 joined | 00:41 |
|
comps
| whompwhomp: clone --mirror .. ? | 00:41 |
|
kaos01
| hi how do i "clone" a git repository into a non empty directory ? | 00:42 |
|
| the directory has .gitignore and data files in it | 00:42 |
|
comps
| kaos01: why would you want to do that? | 00:42 |
|
kaos01
| true actually but unfortunatly the directory already contans the data files related to the project | 00:43 |
|
| if it was in a parent directory it would be easier :) | 00:43 |
|
comps
| just clone the project to some other dir and copy those files over .. ? | 00:44 |
| ← makubi left | 00:44 |
|
whompwhomp
| cloning the whole repo takes a long time | 00:44 |
|
| i want to clone just one folder | 00:44 |
|
comps
| that was for kaos01 | 00:44 |
| → Per4u3e joined | 00:44 |
|
comps
| whompwhomp: and you can't clone just one dir like svn can | 00:45 |
|
whompwhomp
| when i write git clone --mirror, it can't recognize the command | 00:45 |
|
comps
| whompwhomp: you can fetch one ref (like one specific branch) though | 00:45 |
| ← marcogmonteiro left | 00:46 |
| ← wilmoore left | 00:46 |
| → g0bl1n joined | 00:47 |
| ← g0bl1n left | 00:47 |
| → g0bl1n joined | 00:47 |
| ← fly9_ left | 00:47 |
|
whompwhomp
| sigh | 00:48 |
| ← davidbanham left | 00:48 |
| ← ZanQdo left | 00:49 |
| ← aboudreault left | 00:51 |
| → makubi joined | 00:51 |
| ← ryez_ left | 00:52 |
| ← boo5 left | 00:53 |
|
TheShagg
| whompwhomp: why, do you have all of your companies projects in one git repo? | 00:53 |
| → thursday joined | 00:55 |
| → Jojo1234 joined | 00:55 |
|
drags
| TheShagg: like facebook? :) | 00:56 |
|
kaos01
| comps, well copying it over is an option but not so great as everytime a change is made one nedst to copy the changes to be able to do the testing | 00:57 |
| ← jonshea left | 00:57 |
| bruno_coelho → brunocoelho | 00:57 |
| ← abetaha_ left | 00:58 |
| ← grantbdev left | 00:58 |
| → fuzzybunny69y joined | 01:00 |
| → Kabaka joined | 01:00 |
| ← teweWORK left | 01:00 |
| ← Davey_ left | 01:00 |
| → tomkralidis joined | 01:01 |
| → xiangfu joined | 01:03 |
|
tomkralidis
| hi, my pull request has 5 submodules which (somehow) have been diffed (https://github.com/GeoNode/geonode/pull/248/files#diff-31), but I want to revert to what they are in master. Any advice on how to revert submodules? tia | 01:03 |
|
bob2
| submodules :| | 01:03 |
| ← ColKurtz left | 01:03 |
| → erkules|away joined | 01:05 |
| ← erkules left | 01:07 |
| ← aantix left | 01:08 |
| → `Assassin joined | 01:08 |
| ← fisted left | 01:09 |
|
tomkralidis
| do I have to rebase the submodule's or something? | 01:09 |
| → dv310p3r joined | 01:09 |
| ← TTSDA left | 01:11 |
| → ivan12348 joined | 01:11 |
| → ivan12349 joined | 01:11 |
| → ivan12350 joined | 01:11 |
| ← ivan12347 left | 01:11 |
| ← ivan12345 left | 01:12 |
| → cenuij joined | 01:12 |
| ← cenuij left | 01:12 |
| → cenuij joined | 01:12 |
| ← TheShagg left | 01:12 |
| → Davey_ joined | 01:13 |
| → TTSDA joined | 01:14 |
| ← ivan12346 left | 01:14 |
| ← libertyprime left | 01:15 |
| → HyperNerdV2 joined | 01:15 |
| → libertyprime joined | 01:15 |
| ← asedeno_work left | 01:17 |
| → tchan joined | 01:18 |
| → tmcmahon joined | 01:19 |
| ← hakunin left | 01:19 |
| ← tchan1 left | 01:19 |
| ← Lgb left | 01:20 |
| ← libertyprime left | 01:20 |
| → intripoon_ joined | 01:20 |
| → libertyprime joined | 01:21 |
|
ProLoser|Work
| tomkralidis: stilll there? | 01:21 |
|
tomkralidis
| hi ProLoser|Work | 01:21 |
|
ProLoser|Work
| did you figure it out? | 01:21 |
|
tomkralidis
| not yet | 01:21 |
|
ProLoser|Work
| so what do you want? the submodules to be on the latest version of their master? or you want them to be at the state the parent recognizes them at? | 01:22 |
| → Lgb joined | 01:22 |
| → asedeno_work joined | 01:22 |
|
ProLoser|Work
| s/parent/primary repo/ | 01:22 |
| ← Vampire0 left | 01:22 |
| → hakunin joined | 01:23 |
|
tomkralidis
| my pull request somehow committed changes to submodules (https://github.com/GeoNode/geonode/pull/248/files#diff-31). I need to take the submodule changes out of the pull request/commit. | 01:23 |
|
| so basically go back to that commit for each submodule | 01:23 |
|
ProLoser|Work
| that's a huge commit | 01:24 |
| ← intripoon left | 01:24 |
|
ProLoser|Work
| you can ammend the commit | 01:24 |
|
tomkralidis
| so I want it such that those commits on the submodules never happened. | 01:24 |
|
ProLoser|Work
| or just make a new commit with the submodules where they should be | 01:24 |
| ← alexim left | 01:25 |
|
ProLoser|Work
| change the submodules to what they should be and then commit the parent project | 01:25 |
|
| you can just do git checkout 4c6d2ce285cfa000ed0ae108f7ac6ce5d7a804b5 | 01:25 |
|
| or what-have-you for each submodule | 01:25 |
|
tomkralidis
| I get fatal: reference is not a tree | 01:26 |
| → flippo joined | 01:26 |
| ← fuzzybunny69y left | 01:28 |
| ← thearthur left | 01:29 |
| → lunchub_ joined | 01:29 |
| ← g0bl1n left | 01:30 |
| → tonesfrommars joined | 01:31 |
| ← tewecske left | 01:32 |
| ← pheaver left | 01:32 |
| ← klj613 left | 01:32 |
| → klj613 joined | 01:32 |
| → lfaraone_ joined | 01:33 |
| ← klj613 left | 01:33 |
| → klj613 joined | 01:33 |
| ← eletuchy left | 01:33 |
| ← mocramis left | 01:34 |
| → mocramis joined | 01:34 |
|
SethRobertson
| tomkralidis: You can look at !fixup instructions on reverting commits, even commits of submodule SHA1 changes. | 01:34 |
|
gitinfo
| tomkralidis: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 01:34 |
| ← domino14 left | 01:36 |
| → g0bl1n joined | 01:36 |
| ← g0bl1n left | 01:36 |
| ← twisted` left | 01:36 |
| → Vampire0 joined | 01:36 |
|
ProLoser|Work
| tomkralidis: you have to show your folder structure and where you're running it from | 01:37 |
| ← libertyprime left | 01:38 |
| → libertyprime joined | 01:38 |
| → amigojapan joined | 01:38 |
| → zdk joined | 01:42 |
| → KiiK joined | 01:43 |
| ← Bartzy left | 01:43 |
| ← Per4u3e left | 01:44 |
| → Spudster joined | 01:44 |
|
KiiK
| I do a "git clone -l A B" on same dir. but it doesn't use hardlinks ? | 01:44 |
| → wilmoore joined | 01:45 |
|
offby1
| KiiK: I bet it is doing so, but you're not looking in the right place | 01:45 |
| → abetaha joined | 01:45 |
|
offby1
| !repro | 01:45 |
|
gitinfo
| Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting. | 01:45 |
| ← Davey_ left | 01:45 |
| → gavin_huang joined | 01:45 |
|
frogonwheels
| KiiK: ie. what are you looking at that suggests it isn't using hardlinks? | 01:46 |
| ← aristidesfl left | 01:46 |
|
offby1
| I think we both know ... :) | 01:47 |
|
| but he's playing coy | 01:47 |
|
frogonwheels
| offby1: :) | 01:47 |
| → aristidesfl joined | 01:47 |
|
KiiK
| im cloning a local repo and want to saving the space..... | 01:48 |
|
frogonwheels
| KiiK: yes.. and .. what makes you think it's not? | 01:48 |
|
| offby1 stretches and settles in ... it's gonna be a long night | 01:49 |
| → alberto56 joined | 01:49 |
|
KiiK
| frogonwheels: im looking at the space & ls -l, no symlinks | 01:49 |
|
frogonwheels
| KiiK: I suspect ls -l .git/objects/pack/ may be enlightening | 01:49 |
|
| offby1 whistles innocently | 01:50 |
|
offby1
| also !man git-clone | 01:51 |
|
gitinfo
| the git-clone manpage is available at http://git-scm.com/docs/git-clone.html | 01:51 |
|
| frogonwheels and offby1 await the dropping of the penny. | 01:51 |
| → Mark___ joined | 01:51 |
| → chaowang joined | 01:51 |
|
frogonwheels
| KiiK: you on windoze? | 01:52 |
|
KiiK
| https://gist.github.com/2832559 | 01:52 |
|
tomkralidis
| ProLoserWork|Work: structure is https://github.com/GeoNode/geonode/tree/master/src/geonode-client/externals | 01:52 |
|
| so cd ringo and git checkout <SHA>, and get reference is not a tree | 01:53 |
|
offby1
| KiiK: if you know how to read the output from "ls", the answer is right in front of you: the two big "pack-*" files have more than one link | 01:53 |
|
SethRobertson
| KiiK: Yeah, that isn't how hard links work. du will report the same size, but df will show that no more space is added | 01:53 |
| ← w09x left | 01:54 |
|
ProLoser|Work
| anyne use sublime2? | 01:54 |
|
frogonwheels
| KiiK: once there's a hard link, there's no real distinction over the 'original'.. they're just links in the directory to the same inode afaik | 01:55 |
|
tomkralidis
| ProLoser|Work: structure is https://github.com/GeoNode/geonode/tree/master/src/geonode-client/externals | 01:55 |
|
ProLoser|Work
| where are you calling the method from? | 01:56 |
|
| *command | 01:56 |
|
tomkralidis
| cd ringo/ && git checkout <SHA> | 01:56 |
| ← Araxia_ left | 01:56 |
|
SethRobertson
| KiiK: Example: df .; ln bigfile otherfile; df .; cp bigfile otherotherfile; df . | 01:57 |
|
ProLoser|Work
| try git status | 01:57 |
|
| git remote -v | 01:57 |
|
| etc | 01:58 |
|
tomkralidis
| ah, on (no branch). Check out master and then git checkout <SHA> ? | 01:58 |
|
ProLoser|Work
| well i figured you weren't on a branch | 01:58 |
|
| but that shouldn't have mattered | 01:58 |
|
| go ahead and try checkout master | 01:58 |
|
| and try pulling | 01:58 |
|
| then try checking out the sha | 01:58 |
| ← alberto56 left | 01:58 |
|
ProLoser|Work
| although fetch + checkout sha should work in theory too | 01:58 |
|
tomkralidis
| same result (fatal: ref is not a tree) | 01:58 |
|
ProLoser|Work
| how did you put the submodule into the project to begin with? | 01:59 |
| → newbie999|3 joined | 01:59 |
|
ProLoser|Work
| just copy paste or git submodule add? | 01:59 |
| ← dwmw2 left | 01:59 |
| → erkules joined | 01:59 |
| ← goshawk left | 01:59 |
| ← erkules|away left | 02:01 |
| ← jhford left | 02:01 |
| ← whompwhomp left | 02:01 |
| → dwmw2_gone joined | 02:01 |
| → peppyheppy joined | 02:01 |
| → jhford joined | 02:01 |
|
KiiK
| thanks @sethRobertson, forgonwheels, offby1 :) | 02:01 |
| ← newbie999 left | 02:01 |
| ← mlt- left | 02:02 |
| ← klj613 left | 02:03 |
| ← peppyheppy left | 02:03 |
| → boombatower joined | 02:03 |
| ← toothr left | 02:04 |
|
tomkralidis
| oh wait, I had to git pull, then git checkout SHA, that worked, thx | 02:06 |
| ← dv310p3r left | 02:06 |
| ← tomkralidis left | 02:06 |
| → Zenith77 joined | 02:07 |
| → peppyheppy joined | 02:08 |
| ← oriba_ left | 02:09 |
| → marhaban1 joined | 02:12 |
| → juvenal joined | 02:12 |
| ← marhaban left | 02:12 |
| ← jgoss left | 02:14 |
| ← rrn_ left | 02:15 |
| → AlbireoX`Laptop joined | 02:15 |
| → rrn joined | 02:16 |
| → w09x joined | 02:17 |
| ← mikepack left | 02:19 |
| ← ill1cit left | 02:19 |
| → ill1cit joined | 02:20 |
| → Chib joined | 02:20 |
| ← ProLoser|Work left | 02:20 |
| → dv310p3r joined | 02:21 |
| ← Peste_Bubonica left | 02:21 |
| → fisted joined | 02:24 |
| ← aristidesfl left | 02:25 |
| ← HyperNerdV2 left | 02:26 |
| ← apok left | 02:26 |
| → kenperkins joined | 02:26 |
| Karmaon → doesUbuntuHateAw | 02:26 |
| doesUbuntuHateAw → AwayNickAwayNick | 02:27 |
| AwayNickAwayNick → Karmaon | 02:27 |
| ← kenperkins left | 02:28 |
| → zanneth joined | 02:29 |
| → thearthur joined | 02:29 |
| ← p3rror left | 02:30 |
| ← guampa left | 02:30 |
| ← Sky[x] left | 02:30 |
| → Per4u3e joined | 02:31 |
| ← Pookz left | 02:31 |
| ← dv310p3r left | 02:32 |
| ← ill1cit left | 02:32 |
| → ill1cit joined | 02:32 |
| ← w09x left | 02:33 |
| ← libertyprime left | 02:34 |
| ← zanneth left | 02:34 |
| → zanneth joined | 02:34 |
| → libertyprime joined | 02:34 |
| → glennpratt joined | 02:35 |
| ← k-man left | 02:36 |
| ← Caelum left | 02:37 |
| → herdingcat joined | 02:37 |
| → davidbanham joined | 02:38 |
| ← Zyrkon left | 02:38 |
| ← davidbanham left | 02:39 |
| → Zyrkon joined | 02:39 |
| → mikepack joined | 02:42 |
| ← mikepack left | 02:43 |
| → p3rror joined | 02:43 |
| ← Eridius left | 02:43 |
| ← peppyheppy left | 02:43 |
| → Davey_ joined | 02:44 |
| → mdhopkins joined | 02:45 |
| → ipoval joined | 02:47 |
| → ISF joined | 02:48 |
| → mikepack joined | 02:48 |
| → Eridius joined | 02:51 |
| ← palyboy left | 02:52 |
| ← KiiK left | 02:53 |
| → bubbles10101 joined | 02:54 |
| ← amigojapan left | 02:55 |
| ← Mark___ left | 02:56 |
| ← osmosis left | 02:59 |
| ← williamcotton left | 03:00 |
| → weiyang joined | 03:01 |
| ← koo3 left | 03:01 |
| ← libertyprime left | 03:01 |
| → libertyprime joined | 03:02 |
|
scientes
| does posix git push require mmap()? | 03:03 |
|
| fatal: sha1 file './objects/pack/tmp_pack_XGJziB' write error: Operation not supported | 03:03 |
|
bremner
| "posix git push"?? | 03:05 |
|
scientes
| to a file url | 03:05 |
|
| rather than ssh:// | 03:05 |
|
| hence, POSIX | 03:06 |
| ← duckxx left | 03:06 |
| → koo4 joined | 03:08 |
| ← cccaldas left | 03:08 |
| ← Spudster left | 03:09 |
| → andrew_ joined | 03:09 |
| ← smw left | 03:11 |
| → kenperkins joined | 03:12 |
| → lonewulfcloud joined | 03:12 |
| → Hodo joined | 03:13 |
| → theCole joined | 03:13 |
| → davidbanham joined | 03:15 |
| ← drl left | 03:17 |
| → aristidesfl joined | 03:19 |
|
aristidesfl
| hi | 03:19 |
| → smw joined | 03:19 |
|
aristidesfl
| lets suppose I've committed some changes in branch B then merged them into branch A. | 03:19 |
| ← kukks left | 03:19 |
|
aristidesfl
| if I amend the commit in branch B, will the amend affect branch A as well? | 03:20 |
|
offby1
| scientes: I don't know but strace will tell you | 03:20 |
| → dreiss joined | 03:22 |
|
Eridius
| aristidesfl: no | 03:24 |
| ← Internet13 left | 03:24 |
|
Eridius
| aristidesfl: commits are immutable objects. "Ammending" a commit really creates a brand new commit and changes the branch pointer to point at the new one instead of the old one. But anything else that referenced the old one (merges, other branch pointers, etc) will continue to point at the old one | 03:24 |
| → w09x joined | 03:25 |
|
aristidesfl
| Eridius thank you | 03:26 |
| → mischat_ joined | 03:26 |
| ← mischat left | 03:27 |
| mischat_ → mischat | 03:27 |
| → drl joined | 03:31 |
|
scientes
| mmap(NULL, 613712, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f078fb25000 | 03:32 |
|
| close(3) = 0 | 03:32 |
|
| bing | 03:32 |
|
| it needs to test | 03:32 |
|
| and then fall back | 03:32 |
|
| or rather it should | 03:32 |
|
| ;) | 03:32 |
| ← davidbanham left | 03:32 |
| ← gerard0 left | 03:33 |
|
wereHamster
| it needs to test what | 03:34 |
| ← plasticboy left | 03:34 |
| ← cakehero left | 03:34 |
| ← Per4u3e left | 03:35 |
| ← kerrick left | 03:38 |
| → d4rklit3 joined | 03:38 |
| ← Davey_ left | 03:38 |
| ← kenperkins left | 03:39 |
|
scientes
| wit im not sure that was he issue | 03:41 |
| ← aristidesfl left | 03:41 |
|
scientes
| i only suspected it cause fuse doens't support mmap | 03:41 |
| → toothr joined | 03:42 |
| → aristidesfl joined | 03:43 |
|
wereHamster
| the mmap succeeded. | 03:43 |
| → kerrick joined | 03:43 |
|
wereHamster
| it returned a valid address. | 03:43 |
| → pheaver joined | 03:43 |
|
scientes
| oh | 03:44 |
| ← Eridius left | 03:46 |
| → barrbrain joined | 03:49 |
| ← Hodo left | 03:52 |
| → kenperkins joined | 03:53 |
| ← glennpratt left | 03:54 |
| ← vitor-br left | 03:56 |
| ← tmcmahon left | 03:56 |
| → Eridius joined | 03:57 |
| ← resmo left | 03:59 |
| → duckxx joined | 03:59 |
| → tshauck joined | 03:59 |
| ← marhaban1 left | 04:00 |
| ← scientes left | 04:00 |
| → singh_abhinav joined | 04:01 |
| → igotnolegs joined | 04:01 |
| ← mischat left | 04:01 |
| ← OOPMan left | 04:03 |
| → davidbanham joined | 04:04 |
| ← rchavik left | 04:04 |
| → dgs joined | 04:06 |
| → resmo joined | 04:06 |
|
dgs
| can you have two identically named git tags in two seperate branches? eg a v1.0 tag in both the development and production branches? | 04:06 |
|
| or do tag names need to be globally unique? | 04:07 |
|
| just curious to how if it would handle a checkout of the duplicate tag name - eg how would it know what branch to check it out from... | 04:08 |
| ← mdhopkins left | 04:08 |
|
offby1
| nope | 04:08 |
|
| tag names gotta be unique; and they're not in the least affected by what branch they're "on" (that doesn't even make sese) | 04:08 |
|
| sense | 04:08 |
| → WAA3I0Z joined | 04:08 |
|
offby1
| dgs: you're very confused about git's innards. | 04:08 |
|
| I recommend you read "Git For Computer Scientists" (http://eagain.net/articles/git-for-computer-scientists/) | 04:09 |
|
dgs
| yup, that was pretty much what I figured | 04:09 |
|
| just wanted to confirm | 04:09 |
|
bob2
| tag = name for a commitid | 04:09 |
|
dgs
| k. thanks. I will have a read =) | 04:09 |
|
bob2
| branch = moving label on a commitid | 04:09 |
|
offby1
| s/name/label that typically doesn't move/ | 04:09 |
| ← brunocoelho left | 04:10 |
| → renzhi joined | 04:10 |
|
bob2
| heh | 04:11 |
| → beautifulmind joined | 04:11 |
| → Per4u3e joined | 04:12 |
|
renzhi
| hide, I have the following situation. I clone a remote repo (let's call it remote A) on my local machine, do a branch --track | 04:12 |
|
| I meant "hi", sorry for that | 04:12 |
| ← madewokherd left | 04:13 |
|
renzhi
| nowhere_man, I'd like to push that branch to another remote repo (called remote B), and I'd like that remote B tracks remote A. | 04:13 |
|
| how could I do that? | 04:13 |
| → scientes joined | 04:14 |
|
offby1
| well, "git remote add B url://b/whatever" | 04:14 |
|
| then "git checkout that-branch; git push -u B:that-branch" | 04:15 |
|
| I think that'll do it | 04:15 |
| ← duckxx left | 04:15 |
| ← koo4 left | 04:15 |
|
renzhi
| :O | 04:15 |
|
| let me try this | 04:15 |
| → koo4 joined | 04:16 |
|
offby1
| I hope you can delete branches on B, in case I've given you bad advice :-| | 04:16 |
| ← singh_abhinav left | 04:16 |
| ← davidbanham left | 04:16 |
| → sangi joined | 04:18 |
| ← resmo left | 04:18 |
| → Lord_DeathMatch joined | 04:18 |
| ← optixx left | 04:18 |
|
renzhi
| I have full control of B, I just want to keep a copy on B (it's faster), but we need to share between more than one computer | 04:19 |
| ← d4rklit3 left | 04:19 |
|
renzhi
| B is supposed to be the hostname? | 04:20 |
| → optixx joined | 04:20 |
| gitinfo set mode: +v | 04:21 |
| ← batrick left | 04:21 |
| ← theCole left | 04:22 |
|
bob2
| no | 04:22 |
| ← koo4 left | 04:22 |
|
bob2
| git remote add someonename someurl | 04:22 |
| ← Goplat left | 04:22 |
| ← weiyang left | 04:23 |
|
kaos01
| is there a way to see what changes are in a remore repo without doing a fetch first ? | 04:25 |
| ← scientes left | 04:26 |
| ← beautifulmind left | 04:26 |
| ← mtytel left | 04:26 |
|
sitaram
| not without logging on to the remote machine | 04:28 |
| ← Bass10 left | 04:28 |
| ← aristidesfl left | 04:29 |
| → maleknet joined | 04:29 |
| ← d_roge left | 04:30 |
| ← mikepack left | 04:31 |
| → mikepack joined | 04:31 |
| ← Textmode left | 04:32 |
| ← Slix` left | 04:33 |
| ← p3rror left | 04:34 |
| → batrick joined | 04:34 |
| ← mikepack left | 04:36 |
| ← iwoj left | 04:37 |
| → fisted_ joined | 04:38 |
| → raatiniemi joined | 04:38 |
| → ColKurtz joined | 04:39 |
| → scientes joined | 04:39 |
| ← fisted left | 04:39 |
| ← codeM0nK3Y left | 04:42 |
| ← raatiniemi left | 04:42 |
| ← edude03 left | 04:44 |
| → weiyang joined | 04:44 |
| → codeM0nK3Y joined | 04:44 |
| ← Vert left | 04:44 |
| → edude03 joined | 04:45 |
| ← codeM0nK3Y left | 04:45 |
| ← _huoxito left | 04:46 |
| → theCole joined | 04:46 |
| → p3rror joined | 04:48 |
| → Textmode joined | 04:48 |
| ← thearthur left | 04:48 |
| → _huoxito joined | 04:49 |
| → SegFaultAX joined | 04:50 |
| → mangdood joined | 04:51 |
| → glennpratt joined | 04:51 |
| ← meisth0th left | 04:54 |
| ← Robbo_ left | 04:55 |
| → WillMarshall joined | 04:55 |
| → rsewill joined | 04:55 |
| ← xiangfu left | 04:55 |
| ← w09x left | 04:56 |
| ← makeawish left | 04:56 |
| ← boombatower left | 04:56 |
| ← EyesIsMine left | 04:56 |
| → fuzzybunny69y joined | 04:57 |
| → Hamled joined | 04:58 |
|
Hamled
| What does it mean when I use the git branch --contains command and the response is "* (no branch)" | 04:58 |
| ← Textmode left | 04:59 |
| → shruggar joined | 05:00 |
| → peppyheppy joined | 05:00 |
|
renzhi
| when I do "git push -u B:that-branch", it's always trying to consider B as a hostname and connect to that host | 05:01 |
| ← glennpratt left | 05:02 |
| ← fuzzybunny69y left | 05:03 |
|
wereHamster
| Hamled: probably because HEAD contains that commit | 05:03 |
|
| renzhi: git push <remote> <refspec> | 05:03 |
| → fuzzybunny69y joined | 05:03 |
|
wereHamster
| renzhi: you probably want git push -u origin B:that-branch | 05:03 |
|
renzhi
| wereHamster: I just do "git push --all url://repo-B" | 05:05 |
| infogulch → infogulch|afk | 05:09 |
|
mangdood
| What's a noob-friendly diff/merg tool? I'm having some difficulty understanding what exactly is happening when I'm merging | 05:10 |
| → FreeArtMan joined | 05:10 |
|
bob2
| your editor probably | 05:10 |
| → williamcotton joined | 05:11 |
| → Textmode joined | 05:11 |
|
EugeneKay
| SmartGit's 3-pane merge view works pretty good. | 05:11 |
|
bob2
| most merges are conflictless, when they do conflict, open up the files in your editor and look at them | 05:12 |
|
| merge by hand | 05:12 |
|
| then check the diff | 05:12 |
| → Robbo_ joined | 05:12 |
| ← SegFaultAX left | 05:13 |
| → cbreak-work joined | 05:13 |
| → SegFaultAX joined | 05:13 |
| → j416 joined | 05:13 |
|
mangdood
| bob2: I'm just working with a local repos of a single file, and I realized what was confusing me; I made a change in one of my commits that I wasn't supposed to.. | 05:13 |
| ← lunchub_ left | 05:13 |
| → mmc joined | 05:15 |
| → meisth0th joined | 05:15 |
| ← dhruvasagar left | 05:15 |
| ← mmc left | 05:19 |
| ← gtrak left | 05:22 |
| → fuzzybunny69y1 joined | 05:23 |
|
Hamled
| Is there something I can add to a refspec in a git pull command to cause the merge to only include the individual commit specified in the refspec | 05:24 |
| → mishok13 joined | 05:25 |
| ← rsewill left | 05:25 |
|
j416
| Hamled: to apply just a single commit, you can use git cherry-pick | 05:25 |
|
Hamled
| thanks | 05:25 |
| → Dave^| joined | 05:25 |
| ← fuzzybunny69y left | 05:25 |
| fuzzybunny69y1 → fuzzybunny69y | 05:25 |
|
bob2
| merge merges branches, it has no concept of merging a single commit | 05:25 |
|
j416
| it will replicate that commit to a new one. | 05:25 |
|
bob2
| unless you've only diverged by one commit | 05:25 |
|
mangdood
| I made an error in one of my commits; I was working with an old copy I believe (because of my editor). Is there a way I can "merge" this commit with the previous to reverse my mistake? | 05:25 |
| → resmo joined | 05:25 |
|
Hamled
| bob2, ah, thanks | 05:25 |
|
bob2
| did you push it anywhere | 05:26 |
|
j416
| mangdood: have a look at 'git revert', it can record a commit with the opposite effect of a selected commit or series of commits | 05:26 |
| ← lindenle left | 05:26 |
| ← robbyoconnor left | 05:27 |
| ← stkrzysiak left | 05:28 |
| ← Slim left | 05:28 |
| → robbyoconnor joined | 05:28 |
| → Slim joined | 05:28 |
| → w09x joined | 05:29 |
|
mangdood
| j416: does revert only revert whole files, or does it allow partial changes? | 05:29 |
|
kevlarman
| mangdood: revert operates on commits not files | 05:30 |
| ← lapistano left | 05:30 |
| → lapistano joined | 05:30 |
| → Dragooon joined | 05:30 |
|
j416
| mangdood: you can use 'git revert --no-commit' and edit what parts are being reverted, then commit the result yourself. | 05:31 |
|
mangdood
| kevlarman: It feels terrible to not know the correct terminology, even after doing a tutorial. | 05:31 |
|
j416
| but it can of course be confusing with partial reverts. :) | 05:31 |
|
| don't worry, we've all been newbies. | 05:31 |
|
| :) | 05:31 |
|
kevlarman
| mangdood: revert basically takes the diff of the commit you tell it to, applies it with -R, and commits the result if there were no conflicts | 05:32 |
| → davidbanham joined | 05:33 |
| → benjo2 joined | 05:33 |
| → airborn joined | 05:33 |
| ← FreeArtMan left | 05:33 |
| → singh_abhinav joined | 05:35 |
| ← project2501a left | 05:35 |
| ← zendeavor left | 05:35 |
| → qawsedrf joined | 05:36 |
| → Guest31877 joined | 05:36 |
|
qawsedrf
| in my project, one of my folder has subfolders and files. it's weird that they do not exist on remote repo, howcome ? :O | 05:37 |
| Guest31877 → automage | 05:38 |
| ← Textmode left | 05:38 |
|
mangdood
| Okay, so git revert doesn't make any changes for me except the conflicts. This is rather confusing | 05:38 |
| automage → zendeavor | 05:38 |
| ← singh_abhinav left | 05:40 |
|
mangdood
| ...let me rephrase that in a less confusing way: git revert isn't making any changes to my file in my working directory (only one file :P in the repos) except their conflicts. | 05:41 |
| → Textmode joined | 05:41 |
|
wereHamster
| mangdood: can you pastebin the output from git status? | 05:42 |
|
qawsedrf
| someone care to help me with this - http://pastie.org/private/edfzwxmoefop9xewcw1q ? | 05:42 |
| ← khmarbaise left | 05:42 |
| ← benjo2 left | 05:43 |
|
mangdood
| wereHamster: http://pastebin.com/E1H9pNgB | 05:43 |
| ← gavin_huang left | 05:43 |
| → tomoj joined | 05:43 |
| → warthog9 joined | 05:44 |
|
qawsedrf
| anyone ? :( | 05:44 |
|
mangdood
| qawsedrf: I looked it at, but I'm no help | 05:45 |
|
wereHamster
| mangdood: that's a conflict. Fix it, then commit. | 05:45 |
|
qawsedrf
| i am having problem on live deployment | 05:45 |
|
| need to solve it quick | 05:45 |
|
wereHamster
| qawsedrf: cd libs/vendor/fb_php_sdk; git add *; ... | 05:45 |
|
| though I'm not sure if that's really what you want... | 05:46 |
| → martinjlowm joined | 05:46 |
|
qawsedrf
| it should had been part of the entire repo | 05:46 |
|
| well, i just got cloned from github | 05:46 |
|
wereHamster
| but it's not. | 05:46 |
|
| it's a submodule | 05:46 |
|
mangdood
| wereHamster: I understand, but I expected that when I reverted, all the changes that don't conflict should be reverted, yes? | 05:46 |
|
qawsedrf
| now when i noticed its not on server, i delete libs/vendor/fb_php_sdk/.git | 05:46 |
|
wereHamster
| mangdood: correct. | 05:47 |
| → eletuchy joined | 05:47 |
|
wereHamster
| mangdood: so it looks like all the changes from the commit conflicted | 05:47 |
|
qawsedrf
| git add does nothing | 05:47 |
|
| it omplains bla blka is in submodule | 05:47 |
|
mangdood
| wereHamster: In one of the files, it only lists the the conflicts and didn't revert the other parts of the file to the file of the previous commit (forgive me for my crap use of terms) | 05:48 |
|
qawsedrf
| wat te hell | 05:48 |
| ← mocramis left | 05:49 |
|
qawsedrf
| git thinks it a submodule or something | 05:50 |
|
| doesnt makes it a part of entire repo | 05:50 |
|
| help me :| | 05:50 |
| ← bolt left | 05:50 |
|
mangdood
| qawsedrf: ...from what I understand, you shouldn't be removing your .git directory. What do you mean by "it's not on the server" | 05:50 |
|
qawsedrf
| on the live deployment | 05:50 |
|
| and remote repo | 05:50 |
|
| but i have the files on local repo | 05:50 |
|
mangdood
| qawsedrf: What do you mean by "it" when you said "it's not on the the server"? | 05:51 |
|
qawsedrf
| libs/vendor/fb_php_sdk/* | 05:51 |
| → pantsman joined | 05:51 |
| ← pantsman left | 05:51 |
| → pantsman joined | 05:51 |
|
mangdood
| qawsedrf: THat's not confusing at all. Why did you remove the .git directory? | 05:52 |
|
qawsedrf
| i removed libs/vendor/fb_php_sdk/.git | 05:53 |
|
| cuz i thought maybe thats causing the issue | 05:53 |
|
mangdood
| qawsedrf: did you try adding before you added the .git directory? | 05:53 |
|
qawsedrf
| i did'nt remove the .git in the root of my project | 05:53 |
|
mangdood
| Oh, I see | 05:53 |
| ← fuzzybunny69y left | 05:53 |
|
qawsedrf
| i didnt add the .git, i cloned from github | 05:53 |
| ← ColKurtz left | 05:53 |
|
qawsedrf
| now on my local repo, wqhen i remove all contents of fb_php_sdk, and just add a hello.txt , it doenst shows in git status | 05:54 |
|
| marked untracked | 05:54 |
|
| :| | 05:54 |
| ← Textmode left | 05:54 |
|
mangdood
| qawsedrf: have you tried adding the individual files in sdk? | 05:55 |
|
| qawsedrf: I'm thinking it might be a problem with *? | 05:55 |
|
| because shouldn't your shell expand *? | 05:56 |
| → rtjure_ joined | 05:56 |
| → jceb joined | 05:56 |
| ← shruggar left | 05:57 |
| → singh_abhinav joined | 05:57 |
|
qawsedrf
| tried that yes | 05:58 |
|
| no luck | 05:58 |
| ← j416 left | 05:59 |
| → arti_t joined | 05:59 |
|
mangdood
| qawsedrf: wait, what does git status say if you haven't added them? | 05:59 |
|
tomoj
| I have A<-B<-C and want to squash into C - that is, squash forward in time instead of backward - possible? | 05:59 |
|
mangdood
| qawsedrf: sigh, I'm sure I can't help much, but I'll do what I can | 06:00 |
| ← spaceonline left | 06:00 |
|
qawsedrf
| nothing to commit - on master rbanch | 06:00 |
| ← _huoxito left | 06:00 |
| ← rtjure left | 06:00 |
|
mangdood
| qawsedrf: wait, so why are you trying to add libs/blah/* if you haven't changed anything | 06:00 |
| ← edude03 left | 06:00 |
| → Longbeach joined | 06:02 |
|
qawsedrf
| leave it | 06:02 |
|
| i renamed the folder and it worked fine | 06:02 |
| ← scientes left | 06:02 |
|
mangdood
| qawsedrf: alright, best of luck. Back to my own git crisis | 06:02 |
|
qawsedrf
| maybe git has somewhere in config that fb_php_sdk is still a submod or w/e and so won't let me use that :| | 06:03 |
|
| hehe ok | 06:03 |
| ← qawsedrf left | 06:03 |
| ← weiyang left | 06:03 |
| ← Slim left | 06:04 |
| → thiago joined | 06:06 |
| ← tchan left | 06:06 |
| ← gchristensen left | 06:07 |
| → mocramis joined | 06:07 |
| ← thursday left | 06:09 |
|
mangdood
| How can I delete my last commit? (this has probably been asked for ages) I accidently reverted to a parent commit without any changes. | 06:10 |
| ← mishok13 left | 06:12 |
| → _huoxito joined | 06:13 |
| → Sitethief joined | 06:13 |
| → wah_ joined | 06:13 |
|
wereHamster
| mangdood: git reset HEAD^ | 06:14 |
| ← Sitethief left | 06:14 |
| → Sitethief joined | 06:15 |
| → marthinal joined | 06:15 |
|
mangdood
| sigh, I hate asking so many questions: How can I get the diff between a file between the working directory and a commit (or any two places) and save it to a file so I can resolve the changes manually? | 06:17 |
| → benjo2 joined | 06:17 |
| ← wah_ left | 06:17 |
|
bob2
| resolve? | 06:17 |
| ← benjo2 left | 06:18 |
|
mangdood
| bob2: Er... | 06:18 |
|
| (whenever I'm on IRC, I'm usually having a problem that drives me nuts) | 06:19 |
| → senny joined | 06:19 |
| → JohnBat26 joined | 06:19 |
|
mangdood
| bob2: I want to make some of the changes indicated by the diff, but not the rest | 06:19 |
|
wereHamster
| mangdood: man git-diff | 06:20 |
|
gitinfo
| mangdood: the git-diff manpage is available at http://git-scm.com/docs/git-diff.html | 06:20 |
| → ThomasLocke joined | 06:20 |
|
bob2
| maybe you just want git add -i | 06:20 |
| → papegaaij joined | 06:20 |
| → tsdh joined | 06:20 |
|
mangdood
| wereHamster: I have the manpage open, I just can't seem to find it | 06:20 |
|
Seveas
| mangdood, follow bob2's advice:if you want to add only certain parts of your changes to a commit, use git add -i | 06:21 |
| → DuzyZiemniak joined | 06:21 |
| → Sigma joined | 06:22 |
|
wereHamster
| mangdood: find what | 06:22 |
|
| "This form is to view the changes you have in your working tree relative to the named <commit>. [...]". Is that not what you want? | 06:22 |
|
mangdood
| ...git add -i is going to save my brains to live another day. bob2: thanks | 06:23 |
| ← ISF left | 06:23 |
|
bob2
| ps | 06:23 |
|
| read about xyproblem | 06:23 |
|
mangdood
| wereHamster: sorry I wasn't specific. I was looking to have the diff outputted to a file | 06:24 |
| ← MissionCritical left | 06:24 |
|
wereHamster
| git diff ... > teh-file.diff | 06:24 |
|
mangdood
| Seveas: thanks as well :D | 06:24 |
| ← Per4u3e left | 06:24 |
| → beautifulmind joined | 06:24 |
| ← nevyn left | 06:25 |
|
_ikke_
| shortcut, git add -p | 06:25 |
|
mangdood
| wereHamster: It looks like it's already being piped to less(more? never know the difference)though, which was why I was hesitant to do that | 06:25 |
| → Per4u3e joined | 06:25 |
|
wereHamster
| yes, git pipes to less if the output is a tty. If it's a file then obviously not | 06:25 |
| → harshpb joined | 06:26 |
| ← adamm left | 06:26 |
|
mangdood
| wereHamster: ...being the noob that I am, I didn't realize that programs were aware of where the output was being sent | 06:26 |
|
wereHamster
| mangdood: why didn't you just !try it ? | 06:26 |
|
gitinfo
| mangdood: [!tias] Try it and see™. You learn much more by experimentation than by asking without having even tried. If in doubt, make backups before you experiment (see !backup). http://sitaramc.github.com/1-basic-usage/tias.html may help with git-specific TIAS. | 06:26 |
| → shruggar joined | 06:27 |
| → EyesIsMine joined | 06:28 |
|
mangdood
| wereHamster: One reason was that I hoped to get the whole file with the indications of changes so I could just make the changes and add that whole file; that seemed like it would give the changes only | 06:29 |
| ← _huoxito left | 06:29 |
|
wereHamster
| eh? | 06:29 |
|
| like a blame? | 06:29 |
|
mangdood
| wereHamster: ...why is my wording so bad | 06:29 |
|
| Uh, I wanted the entire parts that were unchanged as well as the diff output, so that after I changed the parts indicated by diff, I could just commit the file | 06:31 |
| → drollwit joined | 06:32 |
|
mangdood
| add the file* FFFF | 06:32 |
|
_ikke_
| mangdood: It's still unclear | 06:33 |
|
| !xy | 06:33 |
|
gitinfo
| [!doinitrong] It sounds like you're approaching this problem in the wrong manner. Let's step back for a minute - What are you actually trying to achieve? Why are you trying to do it this way? | 06:33 |
| → Psycho_pr joined | 06:33 |
| → mneorr joined | 06:33 |
| gitinfo set mode: +v | 06:33 |
| → mishok13 joined | 06:33 |
|
Psycho_pr
| Hi. How do I checkout from master all files that have somewhere in their path a certain word? | 06:34 |
|
_ikke_
| Psycho_pr: That's not something git supports afaik | 06:34 |
| ← akiress left | 06:34 |
|
Psycho_pr
| Hrmmm | 06:35 |
|
| Ok, thanks. | 06:35 |
|
mangdood
| _ikke_: I'm trying to take the difference between a file in HEAD (I hope to whatever that I'm using the right word) and the file in the parent commit, since there are changes that I didn't want to make. I want to reverse some of these changes. | 06:35 |
| ← bubbles10101 left | 06:35 |
| → dpino joined | 06:36 |
|
_ikke_
| git checkout -p | 06:36 |
|
mangdood
| ...I'm going promptly back to that tutorial after I'm done explaining. | 06:36 |
|
_ikke_
| Is that what you want? | 06:36 |
|
| git checkout -p HEAD^ | 06:36 |
| → tchan joined | 06:37 |
| → dc5ala joined | 06:37 |
| ← SegFaultAX|work2 left | 06:37 |
| → SegFaultAX|work2 joined | 06:38 |
| → weiyang joined | 06:38 |
| ← drev1 left | 06:38 |
|
mangdood
| _ikke_: I want to reverse only some of the changes from the difference between the files of these two commits, so I don't think that's the solution | 06:38 |
| ← drollwit left | 06:39 |
| → mneorr_ joined | 06:39 |
| → w09x_ joined | 06:39 |
| → giallu joined | 06:39 |
| → akiress joined | 06:39 |
| ← mneorr left | 06:40 |
| ← p3rror left | 06:40 |
|
_ikke_
| mangdood: You can select what part you want to 'reverse' | 06:42 |
|
| mangdood: By using e, you get the editor where you can select per line if you want it reversed or not | 06:42 |
| ← w09x left | 06:42 |
|
wereHamster
| Psycho_pr: probably git ls-files piped to git checkout | 06:43 |
|
_ikke_
| wereHamster: with a grep in between I guess | 06:43 |
|
| Or can git ls-files do the filtering? | 06:43 |
|
mangdood
| _ikke_: Hm. I'm actually doing it another way at the moment, as my experimenting has led me to do. I reverted to the file of the parent commit, and now I'm using git add -i file to make the changes | 06:44 |
| → w09x joined | 06:46 |
| → ph^ joined | 06:47 |
| → strk joined | 06:47 |
|
Psycho_pr
| Thanks! | 06:47 |
|
strk
| do you know of a git2cl playing nicely with git-svn metadata ? (using revisions of SVN) | 06:48 |
| ← WillMarshall left | 06:48 |
| ← yatiohi left | 06:48 |
| ← arti_t left | 06:48 |
| → arti_t joined | 06:49 |
|
Psycho_pr
| Does git checkout take stdin, or do I need to use xargs type of thing? | 06:49 |
|
thiago
| Psycho_pr: you need xargs | 06:49 |
| ← w09x_ left | 06:50 |
|
cbreak-work
| checkout takes a ref and/or file as command line arg | 06:50 |
| ← tchan left | 06:50 |
| ← airborn left | 06:51 |
| → dhruvasagar joined | 06:51 |
| ← strk left | 06:52 |
| → p3rror joined | 06:53 |
|
mangdood
| I used add -i to add hunks of text, and now my working directory is different from the index. Should I make the file in my working directory to be the same as the index, or is it preferred to just commit it? | 06:54 |
|
_ikke_
| It depends on what you want | 06:54 |
| ← papegaaij left | 06:55 |
| ← hyperair left | 06:55 |
| → mischat joined | 06:55 |
|
mangdood
| I would like the file that is in the index and discarding the differences from the one in my working directory | 06:55 |
|
_ikke_
| git checkout -- file | 06:55 |
| ← theCole left | 06:56 |
| → hyperair joined | 06:56 |
| ← shruggar left | 06:56 |
| → lopin joined | 06:56 |
| ← thiago left | 06:56 |
| → afuentes joined | 06:58 |
| ← beautifulmind left | 06:59 |
| → beautifulmind joined | 06:59 |
|
mangdood
| Thanks a lot to the whole channel XD. I almost died | 06:59 |
| → bosspetta joined | 07:00 |
| ← mangdood left | 07:02 |
| ← Per4u3e left | 07:02 |
| ← hyperair left | 07:09 |
| → boob00 joined | 07:10 |
| ← AlbireoX`Laptop left | 07:10 |
| ← ajpiano left | 07:10 |
| → shruggar joined | 07:11 |
| ← beautifulmind left | 07:11 |
| ← b00b00 left | 07:12 |
| ← singh_abhinav left | 07:13 |
| → ajpiano joined | 07:14 |
| ← shruggar left | 07:15 |
| ← Korakoff left | 07:16 |
| → Korakoff joined | 07:16 |
| ← kerrick left | 07:17 |
| → takus joined | 07:18 |
| → kerrick joined | 07:18 |
| ← Lgb left | 07:20 |
| ← mischat left | 07:20 |
| → rurufufuss joined | 07:20 |
| ← igotnolegs left | 07:21 |
| ← andrew_ left | 07:21 |
|
Psycho_pr
| I ran this but it doesn't seem to do anything.... git ls-files | grep PDFMaker | xargs git checkout master | 07:21 |
| ← zanneth left | 07:21 |
| → gavin_huang joined | 07:21 |
| → theCole joined | 07:21 |
| → pro_metedor joined | 07:21 |
|
_ikke_
| Psycho_pr: try it with xargs echo | 07:21 |
| → Lgb joined | 07:22 |
|
Psycho_pr
| it shows everything but without new lines | 07:24 |
| → boombatower joined | 07:25 |
|
_ikke_
| That shouldn't be necessary | 07:26 |
|
| Psycho_pr: try to add -- | 07:26 |
|
| git ls-files | grep PDFMaker | xargs git checkout master -- | 07:27 |
| → hyperair joined | 07:27 |
| ← gavin_huang left | 07:28 |
|
Psycho_pr
| still nothing | 07:29 |
|
_ikke_
| if you do one manually, does it then work? | 07:29 |
| → xiangfu joined | 07:31 |
|
Psycho_pr
| It works but somehow still appears on git status as modified. | 07:31 |
|
frogonwheels
| Psycho_pr: what did you expect to happen? | 07:31 |
| → thiago joined | 07:31 |
|
frogonwheels
| oh. status as modified. you on master currently? | 07:32 |
| ← ipoval left | 07:32 |
| → gavin_huang joined | 07:33 |
| ← thiago left | 07:33 |
|
Psycho_pr
| Yes. I expected that it would be unmodified. | 07:33 |
| → thiago joined | 07:33 |
| ← davidbanham left | 07:36 |
| → ipoval joined | 07:37 |
| → jonnu joined | 07:37 |
| → MissionCritical joined | 07:38 |
| → stephanmg joined | 07:39 |
| → jargon- joined | 07:39 |
| ← ipoval left | 07:39 |
| ← zorzar_ left | 07:40 |
| → jackh joined | 07:40 |
| → OOPMan joined | 07:42 |
| → jn_ joined | 07:43 |
| ← cenuij left | 07:44 |
| → SilverWlf joined | 07:44 |
| ← takus left | 07:46 |
| → takus joined | 07:46 |
| ← eagles0513875 left | 07:47 |
| → eagles0513875 joined | 07:47 |
| ← eagles0513875 left | 07:47 |
| → eagles0513875 joined | 07:47 |
| ← Desproges left | 07:48 |
| → nevyn joined | 07:48 |
| ← kadoban left | 07:49 |
|
boob00
| hello | 07:49 |
|
| while running CCnet with git, getting timeout, any HOME var need to be set? (windows) | 07:50 |
|
cbreak-work
| what's ccnet? | 07:50 |
|
| what does it have to do with git? | 07:50 |
| → whitman joined | 07:51 |
| ← mneorr_ left | 07:52 |
| → Gentlecat joined | 07:53 |
| → singh_abhinav joined | 07:53 |
|
boob00
| CruiseControl.Net | 07:54 |
|
| CI | 07:54 |
| ← babilen left | 07:56 |
| ← fp1 left | 07:56 |
| → francisfish joined | 07:57 |
| ← pheaver left | 07:58 |
| → AlbireoX`Laptop joined | 07:59 |
| ← keltvek left | 08:00 |
| ← SilverWlf left | 08:01 |
| → keltvek joined | 08:02 |
| ← weiyang left | 08:02 |
| ← acrocity left | 08:03 |
| → und3f joined | 08:03 |
| ← pantsman left | 08:05 |
| → zorzar joined | 08:07 |
|
Psycho_pr
| Why are there many changes in git status even though I've just run git reset --hard HEAD? | 08:07 |
| ← d3vic3 left | 08:08 |
| → LimeBlast joined | 08:08 |
| → BarryCrayon joined | 08:08 |
|
wereHamster
| Psycho_pr: windows? | 08:09 |
|
cbreak-work
| untracked? | 08:09 |
| → Sitethief{afk} joined | 08:09 |
|
bob2
| bpaste.net 'git status' output | 08:10 |
| → yatiohi joined | 08:10 |
| ← Sitethief{afk} left | 08:11 |
| → d3vic3 joined | 08:11 |
| → Sitethief{afk} joined | 08:11 |
| ← Sitethief left | 08:12 |
| → shruggar joined | 08:12 |
| → marc_kdab joined | 08:13 |
| → bubbles10101 joined | 08:14 |
| ← cyphase left | 08:14 |
| → Sitethief joined | 08:14 |
| → Desproges joined | 08:15 |
| → dharrigan joined | 08:15 |
| ← dharrigan left | 08:15 |
| → dharrigan joined | 08:15 |
| ← peppyheppy left | 08:16 |
| → papegaaij joined | 08:17 |
| ← Sitethief{afk} left | 08:17 |
| ← jpic_ left | 08:18 |
| ← spb left | 08:18 |
| ← Layke left | 08:18 |
| ← Rafusek_ left | 08:19 |
| ← teukka left | 08:19 |
| → spb joined | 08:20 |
| → teukka joined | 08:20 |
| ← teukka left | 08:20 |
| → teukka joined | 08:20 |
| → Rafusek joined | 08:21 |
| → scratcha joined | 08:21 |
| ← scratcha left | 08:21 |
| → scratcha joined | 08:21 |
| ← hakunin left | 08:21 |
| → marcogmonteiro joined | 08:22 |
| ← dreiss left | 08:22 |
| → tchan joined | 08:22 |
| ← Sitethief left | 08:22 |
| → Sitethief joined | 08:23 |
| ← optixx left | 08:24 |
| → Sitethief{afk} joined | 08:24 |
| → optixx joined | 08:25 |
| ← Robbo_ left | 08:27 |
| ← Sitethief left | 08:27 |
| → Robbo_ joined | 08:28 |
| → fp1 joined | 08:28 |
| → babilen joined | 08:28 |
| → tvw joined | 08:29 |
| ← j0ran1 left | 08:30 |
| → j0ran joined | 08:30 |
| → cyphase joined | 08:30 |
| ← beneggett left | 08:30 |
| → ron joined | 08:31 |
| ← Eridius left | 08:31 |
| ← kenperkins left | 08:31 |
|
ron
| okay, say my developers and I have quite a few branches... some opened from our main branch, some opened from the sub branches. is there any way to visualize all the open branches and see which is branched off of which (and hopefully which is synchronized with which)? | 08:32 |
| ← williamcotton left | 08:32 |
|
et
| gitk --all? | 08:33 |
|
ron
| you're asking me? :) | 08:33 |
| ← xxtjaxx left | 08:33 |
|
et
| well, try and see if you get what you want | 08:33 |
| ← lonewulftp left | 08:33 |
|
ron
| ;) | 08:33 |
| → beneggett joined | 08:34 |
|
ron
| okay, looks great, thanks. | 08:35 |
| → mischat joined | 08:35 |
| ← ron left | 08:36 |
| ← pro_metedor left | 08:36 |
| → achadwick joined | 08:37 |
| → pro_metedor joined | 08:37 |
| → mneorr joined | 08:38 |
| → dark_element joined | 08:38 |
| → tatsuya_o joined | 08:40 |
| ← rtjure_ left | 08:41 |
| → Sitethief joined | 08:43 |
| ← ping-pong left | 08:44 |
| ← p3rror left | 08:44 |
| ← pro_metedor left | 08:44 |
| → pro_metedor joined | 08:45 |
| ← Sitethief{afk} left | 08:46 |
| ← ferdna left | 08:48 |
| → berserkr joined | 08:50 |
| ← d3vic3 left | 08:50 |
| → stodan joined | 08:50 |
| ← pro_metedor left | 08:51 |
| → d0k joined | 08:52 |
| → d3vic3 joined | 08:52 |
| ← dharrigan left | 08:52 |
| ← singh_abhinav left | 08:56 |
| → p3rror joined | 08:58 |
| ← boob00 left | 08:59 |
| → pro_metedor joined | 08:59 |
| → sh0ne joined | 09:01 |
| → b00b00 joined | 09:02 |
| ← Sitethief left | 09:04 |
| → Sitethief joined | 09:05 |
|
Psycho_pr
| http://bpaste.net/show/BYoZ7yt2LU1J1CA95Yys/ | 09:09 |
|
| This shows I first do a reset and then status and there are many files modified... | 09:10 |
| ← fp1 left | 09:10 |
| → TheHaven joined | 09:10 |
| → _iron joined | 09:10 |
| ← papegaaij left | 09:11 |
|
wereHamster
| Psycho_pr: what does git diff show? | 09:14 |
| ← stodan left | 09:14 |
| → psakrii joined | 09:14 |
| → tewecske joined | 09:16 |
| → stodan joined | 09:17 |
|
Psycho_pr
| All these files have new modes. | 09:18 |
| → diegoviola joined | 09:19 |
|
FauxFaux
| Psycho_pr: Running on a non-linux filesystem? man git config core.filemode | 09:19 |
|
gitinfo
| Psycho_pr: the git-config manpage is available at http://git-scm.com/docs/git-config.html | 09:19 |
| → caddoo joined | 09:19 |
|
Psycho_pr
| I'm on ubuntu. | 09:19 |
|
| and I'm tracking file-modes. | 09:20 |
| → papegaaij joined | 09:20 |
| ← j0ran left | 09:20 |
| → j0ran joined | 09:20 |
| → _Qman joined | 09:21 |
| → acrocity joined | 09:21 |
| → diegovio1a joined | 09:22 |
| → simesy joined | 09:22 |
| ← diegoviola left | 09:24 |
| ← renzhi left | 09:24 |
| → xxtjaxx joined | 09:27 |
| ← Cros79 left | 09:32 |
| → twisted` joined | 09:32 |
| ← txomon|home left | 09:33 |
| diegovio1a → diegoviola | 09:33 |
| ← vandemar left | 09:34 |
| → yizumi joined | 09:36 |
| → txomon|home joined | 09:36 |
| ← OOPMan left | 09:38 |
| → spaceonline joined | 09:38 |
| → cortana2 joined | 09:38 |
|
Psycho_pr
| How do I remove a remote branch that I'm never going to use again? | 09:39 |
|
FauxFaux
| man git push --delete | 09:39 |
|
gitinfo
| the git-push manpage is available at http://git-scm.com/docs/git-push.html | 09:39 |
| ← dhruvasagar left | 09:39 |
| → dhruvasagar joined | 09:40 |
|
Psycho_pr
| That takes references as a parameter, but I would like to give a name of a branch as a parameter. | 09:41 |
|
jast
| with --delete it will accept a branch name and magically turn it into a refspec | 09:41 |
|
Psycho_pr
| $ git push --delete remotes/OldSandboxServer/master | 09:42 |
|
| fatal: --delete doesn't make sense without any refs | 09:42 |
|
wereHamster
| Psycho_pr: git push [options] <remote> <refspec> | 09:43 |
| → dr_lepper joined | 09:43 |
| ← dr_lepper left | 09:43 |
| → dr_lepper joined | 09:43 |
|
Psycho_pr
| I don't understand, I take the name I get from branch -avv | 09:46 |
| → ethanol joined | 09:46 |
|
Psycho_pr
| and that name, I want to delete. | 09:46 |
| → Sitethief{afk} joined | 09:46 |
| ← ethanol left | 09:47 |
| → ethanol joined | 09:47 |
| ← chayin left | 09:47 |
|
ethanol
| oops. anyway, I wanted to ask. if I have svn repo locally. how can I git svn clone that into a git repo? do I need to specify the directory? or the .svn directory inside it as source? | 09:47 |
|
wereHamster
| Psycho_pr: git branch -r -d OldSandboxServer/master | 09:47 |
| → vandemar joined | 09:47 |
|
wereHamster
| Psycho_pr: that will delete the branch in your local repository | 09:48 |
|
ethanol
| I get E: 'trunk' is not a complete URL and a separate URL is not specified | 09:48 |
|
| :< | 09:48 |
| → eurek joined | 09:48 |
| ← Sitethief left | 09:49 |
| ← yizumi left | 09:49 |
| → yizumi joined | 09:50 |
| ← davv3 left | 09:50 |
| ← SunilThaha left | 09:50 |
| ← KyleXY left | 09:51 |
| → KyleXY joined | 09:51 |
| ← nutron left | 09:51 |
| ← spyro left | 09:51 |
| → cvanes joined | 09:51 |
| → b1rkh0ff joined | 09:51 |
| → davv3 joined | 09:51 |
| ← ethanol left | 09:51 |
| ← theCole left | 09:52 |
| → theCole_ joined | 09:52 |
|
Psycho_pr
| wereHamster, Thanks!\ | 09:52 |
| → G0re2 joined | 09:52 |
|
cvanes
| hi, does anyone know if it's possible to use env vars in git config? | 09:52 |
| ← kryl99 left | 09:52 |
| → nutron joined | 09:53 |
| gitinfo set mode: +v | 09:53 |
|
G0re2
| hi, my coworker commited ~6000 unecessary files, i deleted them, but not a commit lasts like forever | 09:53 |
|
| is there something i can do? | 09:53 |
|
| not = now | 09:53 |
| → kryl99 joined | 09:54 |
|
selckin
| define deleted | 09:54 |
| ← yizumi left | 09:54 |
| → spyro joined | 09:54 |
| ← jackh left | 09:54 |
| → caseymcg joined | 09:54 |
| ← Desproges left | 09:54 |
|
selckin
| rewrote history to remove the commit? | 09:54 |
|
shruggar
| G0re2: git filter-branch can rewrite old history (and git rebase -i can rewrite simple history, more-easily). buyut see !rewrite | 09:54 |
|
gitinfo
| G0re2: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 09:54 |
| → SunilThaha joined | 09:55 |
|
G0re2
| hmm | 09:56 |
|
| i deleted them and commited that change | 09:56 |
| → linusoleander joined | 09:58 |
|
selckin
| then it has to track that you did that in the history like anything else | 09:58 |
|
| if you want the repoto be smaller again and not have those files, you need to rewrite history as if it never happened | 09:59 |
|
G0re2
| oh boy | 09:59 |
|
| thx :) | 09:59 |
| ← tyatpi left | 10:00 |
| → TrahDivad joined | 10:01 |
| → harish joined | 10:01 |
|
selckin
| it's easy with rebase -i | 10:01 |
| ← AlbireoX`Laptop left | 10:01 |
|
selckin
| depending on how many other things changed since then | 10:01 |
| ← txomon|home left | 10:02 |
| → txomon|home_ joined | 10:03 |
| → dbdoclet joined | 10:03 |
| ← dbdoclet left | 10:04 |
| → pfFredd joined | 10:05 |
| ← linusoleander left | 10:06 |
| ← Sitethief{afk} left | 10:07 |
| → Desproges joined | 10:10 |
|
ohcibi
| hi, i have a repository which is just biiiiig (in file size) because at some point, someone committed a really large file... when i now want to shrink my repo, i'll delete that commit by rebasing and then force-push?? | 10:11 |
| ← dhruvasagar left | 10:11 |
|
ohcibi
| or is there a better way? | 10:11 |
| ← chaowang left | 10:11 |
| → dhruvasagar joined | 10:12 |
| → Internet13 joined | 10:12 |
|
et
| ohcibi: filter-branch maybe? see the first example of http://www.kernel.org/pub/software/scm/git/docs/v1.7.3/git-filter-branch.html | 10:12 |
|
| (with the below note) | 10:13 |
|
cehteh
| better is subjective .. but to shrink the repository really you need to be sure all traces of the big object are purged | 10:13 |
|
ohcibi
| cehteh: yes, thats what i want to do..... i just want to get rid of that object in objects database | 10:14 |
|
cehteh
| and any change in history has some headache capability as it invalidates any pre-change clones. people will curse or accidentally merge the crap in again | 10:14 |
| → beautifulmind joined | 10:15 |
|
cehteh
| ohcibi: locally you need to wipe the reflog, on the server you need to check that there are no stale branches or tags left behind, or just create a new repository with only the new branch initially | 10:15 |
|
| think about a non destructive workflow :P | 10:16 |
|
ohcibi
| cehteh: i know that... i have a bunch of students repos and some of the students made a big mess in their repo.. i now want them to clean their repository. after that, they'll of course have to clone a fresh new copy to not merge any crap | 10:16 |
|
cehteh
| that will happen again :P .. | 10:17 |
|
ohcibi
| i know | 10:17 |
|
cehteh
| you could reject pushes from a hook checking for some policies | 10:17 |
|
ohcibi
| my second name is sisyphus | 10:17 |
|
| cehteh: i could have done that in advance 8-) | 10:18 |
|
| cehteh: but now i gotta clean the mess | 10:18 |
|
| *they have to | 10:18 |
|
| but i need to tell them how 8-) | 10:18 |
| → tyatpi joined | 10:18 |
| ← Robbo_ left | 10:20 |
| ← cortana2 left | 10:20 |
| → Element9 joined | 10:21 |
|
cehteh
| bondage and dicipline :) ... pre-receive hook checking for proper formatted commit messages, file and diff sizes and so on :) | 10:21 |
| ← herdingcat left | 10:21 |
| → Robbo_ joined | 10:21 |
|
cehteh
| once i thought about running astyle on the code to reformat it sanitize/relax it a bit and compare with how it looked initially and only accept pushes which fulfil coding styles :) | 10:22 |
|
ohcibi
| cehteh: i'll keep that in mind for next year | 10:22 |
|
cehteh
| }:> | 10:23 |
|
ohcibi
| hm the filter-branch method does not quite work.. i just have a new commit without the file, but the old commit with the file still exist, so the repo has the same size | 10:24 |
|
cehteh
| iirc filter-branch leaves a backup branch behind | 10:25 |
|
| (i rarely used that and thats long ago) | 10:26 |
| ← bubbles10101 left | 10:26 |
|
cehteh
| also reflog, remotes, tags, whatsnot will have references to the old commit | 10:26 |
|
ohcibi
| ah i see, the commit with the file is now on no branch | 10:27 |
|
cehteh
| you have to purge that all carefully or what i would recommend, fix your repo in this nondestructuve way ... init a new repo and push the new sanitized branch there | 10:27 |
|
| then check this new repo very carefully .. | 10:27 |
|
| if that worked then it becomes the new working repository and you can push that to the server (also delete all old traces there) | 10:28 |
| → cortana2 joined | 10:28 |
|
cehteh
| and sooner or later delete the old repo (when you are sure everything worked in a few days/weeks) | 10:28 |
| → hotfloppy joined | 10:28 |
| → gerard0 joined | 10:28 |
|
ohcibi
| hm sounds reasonable | 10:29 |
|
| how to clean the reflog? | 10:29 |
|
cehteh
| otherwise you can git-gc or git-repack your repo but by default these preserve some cruft for some configured time to be sure nothing gets lost | 10:29 |
|
| man git-reflog | 10:29 |
|
gitinfo
| the git-reflog manpage is available at http://git-scm.com/docs/git-reflog.html | 10:29 |
| ← ipsion left | 10:30 |
|
ohcibi
| ah, so the person who committet the crap has to clean his reflog? | 10:30 |
|
cehteh
| not necessary | 10:31 |
|
| reflogs are local | 10:31 |
|
ohcibi
| yes | 10:31 |
|
cehteh
| anyone has to force update his repo from the server | 10:31 |
|
| reflogs tags and branches may have old big stuff around in unused leaves, but that will stay local | 10:32 |
|
ohcibi
| k i understand... | 10:32 |
|
cehteh
| unless they merge it in again and push it up :P | 10:32 |
|
ohcibi
| so i will do it with one of the students, he'll force-push, the others will clone | 10:32 |
|
hotfloppy
| Hi guys. I got a 1 bare repo on my server which my developer colleagues is using. Before this, everything is working but now we got a "No submodule mapping found in .gitmodules for path" error when trying to clone the repo. Actually, we did not create any submodules and there's no .gitmodules on top-level directories. How can I fix this? Is this a bug? | 10:32 |
| → arietis joined | 10:32 |
|
cehteh
| tags are good candidates for such fuckups :P | 10:32 |
|
ohcibi
| cehteh: for this purpose i always clone a new copy for myself, so after sanitizing, also the students who sanitized the remote has to clone a new repo | 10:33 |
| ← rurufufuss left | 10:33 |
| → Superlokkus joined | 10:34 |
| ← takus left | 10:34 |
| ← sangi left | 10:34 |
|
cehteh
| hotfloppy: what did you change? looks to me like something done wrong somehow | 10:34 |
| ← txomon|home_ left | 10:34 |
|
cehteh
| someone committed a submodule? | 10:35 |
| ← dhruvasagar left | 10:35 |
| ← tvw left | 10:35 |
| → tcurdt joined | 10:36 |
| ← tcurdt left | 10:36 |
|
ohcibi
| hotfloppy: some of my students copied a folder which contains a .git-directory to their repo and then commited and pushed them.. now git thinks there is a submodule, | 10:36 |
|
hotfloppy
| cehteh, that's also what I thinks. Is there's any ways to check if someone create a submodules? Log or something? And I didn't change anything. I just create and let them use. | 10:36 |
| → dhruvasagar joined | 10:36 |
|
ohcibi
| hotfloppy: i fixed it by cloning the repo.. deleting the folder with rmdir, then git rm <foldername> and then commit and push | 10:36 |
| → txomon|home joined | 10:36 |
|
hotfloppy
| ohcibi, lemme try your method first.. :) | 10:37 |
| → koo4 joined | 10:38 |
| ← babilen left | 10:39 |
| → w09x_ joined | 10:39 |
|
ohcibi
| hotfloppy: git rm -rf <foldername> wont work because git complains that <foldername> is a directory. however after deleting the folder from hard-disk, git notices that theres something missing anyway | 10:40 |
|
hotfloppy
| ohcibi, those folder name is the same name with my repo. For example, my repo is SherlockCase and those folder is on SherlockCase/Case1/Case2/SherlockCase. Is it okay to delete, commit and push? Is there any chances that this will delete the repo also? | 10:40 |
|
ohcibi
| hotfloppy: this reallly looks like my students work 8-)) i assume someone cloned the repo in a subdir of his working-copy | 10:41 |
|
hotfloppy
| f*ck.. | 10:41 |
|
ohcibi
| hotfloppy: and yes, if the folder is empty after cloning, just purge that b**sterd | 10:41 |
| ← w09x left | 10:41 |
|
hotfloppy
| ohcibi, purge from local repo or need to push? | 10:41 |
|
| I'm a bit paranoid. | 10:42 |
|
| ohcibi, oh the folder is empty. | 10:42 |
| → S1oX joined | 10:42 |
|
ohcibi
| hotfloppy: it is because git wont checkout your submodules automatically... you have to do it manually after cloning | 10:43 |
|
| hotfloppy: but since there is no submodule -> delete it | 10:43 |
| → veyres joined | 10:44 |
|
hotfloppy
| ohcibi: so, no need to push? But, the problem is, my friend use XCode and he cannot clone the repo at all because of this error. | 10:44 |
| → w09x joined | 10:44 |
|
ohcibi
| hotfloppy: of course you have to push... after all this is just a normal delete-file-from-repository operation... except that its not actually a file what youre deleting | 10:45 |
| → w09x__ joined | 10:45 |
|
ohcibi
| hotfloppy: and if you can clone it without any problems then xcode seems to do anything further (like automatically checking out submodules) which fails because of the wrong submodule-assumption | 10:46 |
|
| so maybe he can clone it normally via console and then import it into xcode, but i dont know this ide | 10:46 |
|
hotfloppy
| ohcibi: Okay. So, the steps is like this: 1. rmdir SherlockHolmes 2. git commit 3. git push | 10:46 |
|
| is it correct ? | 10:46 |
|
ohcibi
| almost | 10:46 |
|
| at step 2 you wont have anything to commit 8-) | 10:47 |
|
hotfloppy
| eh ? | 10:47 |
|
| no need to commit ? | 10:47 |
|
ohcibi
| so 1. rmdir SherlockHolmes 2. git rm SherlockHolmes 3. git commit 4. git push | 10:47 |
| ← w09x_ left | 10:47 |
|
hotfloppy
| I see.. Okay, let me try. | 10:47 |
| → khmarbaise joined | 10:48 |
| ← Jojo1234 left | 10:49 |
| → sangi joined | 10:49 |
| ← w09x left | 10:49 |
| ← neurodrone left | 10:51 |
| ← arti_t left | 10:52 |
| ← stephanmg left | 10:53 |
| → arti_t joined | 10:53 |
| ← simesy left | 10:56 |
| → tvw joined | 10:57 |
| ← `Assassin left | 10:57 |
|
teotwaki
| or just git rm -r SherlockHolmes | 10:58 |
| → barrbrain_ joined | 10:58 |
| ← jspiros left | 10:58 |
| ← xerxas left | 11:00 |
|
hotfloppy
| ohcibi & teotwaki: I've try deleting some folder from testing repo and it's seems that every folder on the level below SherlockHolmes got deleted also. For example, Sherlock/Case1/Case2/SherlockHolmesToDelete, Case1 & Case2 & SherlockHolmesToDelete will be remove. Is it really like this? | 11:01 |
|
ohcibi
| teotwaki: it wont work because SherlockHolmes is a directory | 11:01 |
| → |bnz joined | 11:02 |
|
ohcibi
| hotfloppy: if case1/case2 is empty otherwise yes | 11:02 |
| gitinfo set mode: +v | 11:02 |
|
ohcibi
| hotfloppy: git doesnt tracks directories, it tracks files... empty directories wont tracked unless you do anything fancy like your colleague did | 11:02 |
|
| *doesnt track | 11:02 |
| ← beneggett left | 11:03 |
|
teotwaki
| $ git rm -r foo/ | 11:03 |
|
| rm 'foo/bar' | 11:03 |
|
| # deleted: foo/bar | 11:03 |
|
| it works. | 11:03 |
|
|bnz
| Hi was wondering if someone could help me understand the .git directory. The client I am using is asking me if I want to stage changes to the .git directory itself. Should I? | 11:03 |
|
ohcibi
| teotwaki: SherlockHolmes is empty | 11:03 |
| → babilen joined | 11:03 |
|
_ikke_
| |bnz: You can't and you shouldn't | 11:03 |
|
teotwaki
| ohcibi: meh, weird scenario. | 11:04 |
|
|bnz
| so should i have .git in .gitignore? | 11:04 |
|
_ikke_
| |bnz: No | 11:04 |
|
hotfloppy
| ohcibi, I see. So, its safe to push eh? My fingers is already excited to hit the enter key. | 11:04 |
|
_ikke_
| |bnz: git doesn't look at the .git directory | 11:04 |
|
| |bnz: You can' | 11:04 |
|
ohcibi
| hotfloppy: push it to somewere else, clone it, and check if everything is right if you want to get sure | 11:04 |
|
_ikke_
| |bnz: You can't add .git | 11:04 |
|
|bnz
| so if i do something like local branch | 11:05 |
|
| then commit - it talks about files in .git | 11:05 |
|
hotfloppy
| teotwaki, Yes, this is a weird scenario. I'm lucky that ohcibi is here and was experiencing this before :) | 11:05 |
|
_ikke_
| |bnz: Yes | 11:05 |
|
|bnz
| should i be just making sure i do not stage those files? | 11:05 |
|
_ikke_
| |bnz: .git contains all the history | 11:05 |
|
|bnz
| or is there a better way? | 11:05 |
|
_ikke_
| |bnz: You don't have to care about that | 11:05 |
|
|bnz
| will it be actually breaking anything then? | 11:05 |
|
_ikke_
| |bnz: try git add .git; git status | 11:05 |
|
ohcibi
| teotwaki: init a repository, push it somewere, clone it into your working-copy, add and push this, then clone it again at some other place, and then try to git rm -r delete the clone in the clone 8-)) | 11:06 |
|
_ikke_
| |bnz: (nothing is added) | 11:06 |
|
|bnz
| strange | 11:06 |
|
| very confused why this is happening | 11:06 |
|
_ikke_
| |bnz: Of course not, why should git add it' | 11:06 |
|
|bnz
| if e.g. i add a new git remote repository | 11:06 |
|
_ikke_
| |bnz: Of course not, why should git add it's own repository to itself | 11:06 |
|
|bnz
| then commit, i get asked if i want to stage changes to certain files within .git | 11:06 |
| → angelsl joined | 11:07 |
|
_ikke_
| |bnz: Have you added a git repository within another git repository? | 11:07 |
|
ohcibi
| lol | 11:07 |
|
| if he did he gotta pay the beer | 11:07 |
|
| he is the third now 8-) | 11:07 |
|
|bnz
| ikke - thanks for all this, i'm not sure! | 11:07 |
|
| bit new to all this | 11:08 |
|
_ikke_
| |bnz: do you use the command line? | 11:08 |
|
|bnz
| no using aptana studio | 11:08 |
| ← Dragooon left | 11:09 |
|
_ikke_
| |bnz: It might have messed something up. Not sure | 11:09 |
| ← gavin_huang left | 11:09 |
|
_ikke_
| |bnz: I have no experience with it, so it's hard to help you with it | 11:09 |
|
|bnz
| so my .git directory should live within my project? | 11:09 |
|
_ikke_
| |bnz: It should be at the root of your project | 11:09 |
|
|bnz
| yep | 11:09 |
|
| good | 11:09 |
| ← khmarbaise left | 11:10 |
|
|bnz
| so that .git directory contains info about say, remote repositories right? | 11:10 |
| ← beautifulmind left | 11:12 |
| → gavin_huang joined | 11:12 |
| → Lummoxx joined | 11:14 |
| → delx joined | 11:14 |
| ← gavin_huang left | 11:14 |
|
delx
| Is it possible to give a git-user permissions to only read one certain subdirectory of the git-repository? | 11:15 |
| ← zdk left | 11:15 |
| → jspiros joined | 11:15 |
| → alberto56 joined | 11:15 |
|
vandemar
| |bnz: git should not be mentioning anything inside .git/ when you do git status or git add, if it does something is broken | 11:15 |
| → hakunin joined | 11:15 |
|
_ikke_
| |bnz: delx no | 11:16 |
| ← koo4 left | 11:16 |
|
|bnz
| vandemar - it only happens occasionally | 11:16 |
|
| i think its when i do things with remote repositories | 11:16 |
| ← tsdh left | 11:16 |
|
delx
| _ikke_, any alternatve? | 11:16 |
|
_ikke_
| delx: What do you want to achieve? | 11:17 |
|
| delx: And why do you need that | 11:17 |
| eregon_ → eregon | 11:17 |
|
delx
| _ikke_, my designer wants to have access to the templates of my webproject, but I don't want to give him the full repository access - then he would be able to see the code, too. | 11:17 |
|
vandemar
| |bnz: it still should not be doing that. you must be doing something crazy (and probably dangerous) to get that to happen. It might mention heads or refs informationally, but if it talks about anything inside .git/ as if they're files to be tracked, something is very wrong | 11:17 |
| → marhaban joined | 11:18 |
|
vandemar
| |bnz: can you pastebin actual messages where you see this? | 11:18 |
|
|bnz
| im trying to reproduce it at the moment | 11:18 |
|
SethRobertson
| delx: You probably want to use git-subtree to extract the subtree into a new repo which you can provide. git-filter-branch can do the same thing. | 11:19 |
| ← alberto56 left | 11:19 |
| → Peste_Bubonica joined | 11:19 |
|
|bnz
| i could but there'd be a lot of obfuscation needed | 11:19 |
|
| example though is this: | 11:19 |
|
| in aptana, add new remote repository | 11:19 |
|
| then commit | 11:19 |
|
| aptana/git asks if i want to stage .git/config | 11:19 |
|
SethRobertson
| delx: You could use !subprojects if you wanted to permanently split the templates from the code | 11:19 |
|
gitinfo
| delx: So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely seperate. Otherwise your best options are "!submodule" "!gitslave" and "!subtree" Try typing those commands into this IRC channel. | 11:19 |
|
delx
| SethRobertson, thanks for your answer. Can I merge the subtree back into my original repostory later on? | 11:19 |
|
| !subtree | 11:20 |
|
gitinfo
| The git subtree merge method is ideal to incorporate a subsidiary git repositories directly in to single git repository with "unified" git history, where you only need to pull changes in from external sources not contribute your own changes back (which if technically possible is at least difficult). See http://progit.org/book/ch6-7.html Type "!subtree_alt" for more options | 11:20 |
| ← jspiros left | 11:20 |
|
|bnz
| the change to .git/config talks about the new [remote "gitserver"] and it's url etc | 11:21 |
| ← S1oX left | 11:21 |
| → jspiros joined | 11:22 |
|
_ikke_
| |bnz: Could you try to do git status on that repository on the command line? | 11:22 |
|
delx
| SethRobertson, thanks so far. | 11:22 |
| ← delx left | 11:22 |
| → Yuuhi joined | 11:23 |
|
|bnz
| yes, i get: | 11:24 |
|
| $ git status | 11:24 |
|
| # On branch master | 11:24 |
|
| # Changes to be committed: | 11:24 |
|
| # (use "git reset HEAD <file>..." to unstage) | 11:24 |
|
| # | 11:24 |
|
| # modified: application/controllers/StuffController.php | 11:24 |
|
| # | 11:24 |
|
_ikke_
| |bnz: Please use a pastebin or something next time | 11:25 |
|
|bnz
| (from within aptana's terminal window) | 11:25 |
|
_ikke_
| |bnz: That seems all normal | 11:25 |
|
|bnz
| yes | 11:25 |
| → DoniRS joined | 11:25 |
|
_ikke_
| |bnz: So it's something with aptana | 11:25 |
|
|bnz
| is it something to do with the fact git should never be doing anything with . folders | 11:25 |
|
| i.e. hidden | 11:25 |
| ← sh0ne left | 11:25 |
|
|bnz
| but from within aptana it is | 11:25 |
|
| ? | 11:25 |
|
_ikke_
| |bnz: No | 11:25 |
|
|bnz
| should one be able to push hidden folders? | 11:26 |
|
_ikke_
| |bnz: with push, you mean add? Yes, you can add hidden folders | 11:26 |
|
| and files | 11:26 |
|
| For git they are just normal files | 11:26 |
|
|bnz
| but if .git folder contains info about say repositories | 11:26 |
|
| (which it clearly does) | 11:26 |
|
_ikke_
| |bnz: info about repositories is stored in .git/config | 11:26 |
|
|bnz
| then does it matter if those changes are under version control? | 11:27 |
|
_ikke_
| |bnz: It doesn't make sense to put them under version control | 11:27 |
| ← marc_kdab left | 11:27 |
|
|bnz
| would one usually not git add the .git directory? | 11:27 |
| ← preflex left | 11:27 |
|
|bnz
| is that what's gone wrong perhaps? | 11:27 |
|
| (perhaps aptana's gone and done it?) | 11:28 |
|
_ikke_
| |bnz: One would not, and with git itself, it's not even possible | 11:28 |
|
jast
| git doesn't add .git directories | 11:28 |
| → preflex_ joined | 11:28 |
|
_ikke_
| try git ls-files .git | 11:28 |
|
| or git ls-tree .git | 11:28 |
|
|bnz
| strange i get nothing | 11:28 |
| → koo4 joined | 11:28 |
|
vandemar
| |bnz: that's not strange, that's normal | 11:28 |
|
jast
| yeah, that's what is supposed to happen | 11:28 |
| preflex_ → preflex | 11:29 |
|
vandemar
| |bnz: whatever aptana is doing sounds dangerous and bizarre | 11:29 |
|
|bnz
| git ls-tree .git | 11:29 |
|
| returns fatal: Not a valid object name .git | 11:29 |
|
| vandemar - to be clear - it may just be the way i am using it | 11:29 |
|
jast
| yeah, that doesn't work | 11:29 |
|
|bnz
| (i may have done something wrong) | 11:29 |
|
jast
| git ls-tree HEAD:.git | 11:29 |
|
|bnz
| again not a valid object | 11:30 |
| ← jspiros left | 11:30 |
|
|bnz
| so now when i try to commit | 11:30 |
|
| i get the chances to stage .git/index and .git/objects/9aabcbdde...etc | 11:31 |
|
vandemar
| maybe aptana is trying to put .git under version control in some other repo, but trying to put dir/.git under version control in the dir/.git repo will not work | 11:31 |
|
|bnz
| could it be the way i set up my remote repository/git daemon? | 11:31 |
|
| git init -bare foo ... was what i used to set up the remote repository | 11:32 |
| → klj613 joined | 11:32 |
|
_ikke_
| nope | 11:32 |
|
vandemar
| it's bare locally or bare on some remote? | 11:32 |
| ← Element9 left | 11:32 |
|
|bnz
| on the remote | 11:32 |
|
| before i pushed to it | 11:32 |
|
| incidentally i am only playing with this at the moment and have backups etc, this is a learning experience at this point but i want to know what i am doing before i start using this properly | 11:33 |
|
vandemar
| can you dig the commands you used to set up your local and remote repos, out of your shell history, and pastebin it? | 11:34 |
|
_ikke_
| vandemar: He uses aptana | 11:34 |
|
|bnz
| local i used aptana's "initialise", and remote i used the command above | 11:35 |
|
| i.e. git init --bare foo | 11:35 |
| ← tshauck left | 11:36 |
|
jast
| the remote command is fine | 11:37 |
|
| you're not having any problems on the remote, anyway, are you :) | 11:37 |
|
|bnz
| not afaict! | 11:37 |
|
| so to be clear is git hard coded to ignore .git directories? | 11:37 |
|
_ikke_
| |bnz: yes | 11:37 |
|
|bnz
| and seemingly aptana is not | 11:37 |
|
| is it possible that its just that aptana is listing them and they are not actually being committed | 11:38 |
| → fleetfox joined | 11:38 |
|
_ikke_
| |bnz: that might be possible, depending on what aptana is actually doing | 11:38 |
|
fleetfox
| how do you force clone in non empty directory? | 11:38 |
|
_ikke_
| fleetfox: That question doesn't make sense | 11:38 |
|
| fleetfox: Oh, now it does :P | 11:39 |
|
fleetfox
| fatal: destination path '.' already exists and is not an empty directory. | 11:39 |
|
| i have some files there | 11:39 |
| ← JEEB left | 11:39 |
|
_ikke_
| fleetfox: It's not possible afiak | 11:39 |
|
| afaik* | 11:39 |
| ← w09x__ left | 11:39 |
|
fleetfox
| really? | 11:40 |
| → w09x joined | 11:40 |
|
barrbrain_
| sometimes I wonder if we need a global lock for responding to n00b questions on the mailing list | 11:40 |
|
ohcibi
| okay, now i have succesfully deleted some files from all commits and force-pushed that to the remote, so that the .git-directory of a clone consumes less space. objects seem to be gone. but on the remote they still exist. how can i delete the objects on the remote? remote is github | 11:40 |
|
_ikke_
| ohcibi: You have to wait for them to be garbage collected | 11:41 |
|
ohcibi
| so github will take care of it in this case? | 11:41 |
|
| i triggered garbage collection on my server but the directory still consumes the same space | 11:42 |
|
_ikke_
| ohcibi: Because of the reflog | 11:43 |
| → JEEB joined | 11:43 |
| ← psakrii left | 11:44 |
| ← kcj left | 11:44 |
|
ohcibi
| _ikke_: the reflog on the remote?? | 11:45 |
| ← harish left | 11:45 |
|
jast
| fleetfox: git init; git remote add origin <URL>; git fetch; git checkout master | 11:46 |
|
| inside that directory | 11:46 |
| → pyhead joined | 11:48 |
| → jspiros joined | 11:48 |
| ← eurek left | 11:48 |
| ← Mowsh left | 11:51 |
| ← dpino left | 11:53 |
|
ohcibi
| is it possible to trigger garbage collection on remote from local? | 11:53 |
|
_ikke_
| ohcibi: nope | 11:53 |
|
ohcibi
| k... if i do gc --prune=NOW, the objects will be deleted, so i guess they'll disappaer at sometime on github | 11:54 |
| ← JEEB left | 11:54 |
| → sh0ne joined | 11:55 |
| → simesy joined | 11:55 |
|
jameslord
| hi all | 11:55 |
|
_ikke_
| ohcibi: by doing gc --prune=NOW will not make it expire any quicker on a remote | 11:55 |
|
jameslord
| anybody here who know how to use repo script? | 11:55 |
|
| why google develop a tool such as repo? | 11:56 |
|
_ikke_
| ohcibi: You can only make sure that there is nothing referencing the object and just wait | 11:56 |
|
ohcibi
| _ikke_: ?? it actually does... http://stackoverflow.com/questions/1904860/how-to-remove-unreferenced-blobs-from-my-git-repo | 11:56 |
| ← madsy left | 11:56 |
| → madsy_ joined | 11:56 |
| → tshauck joined | 11:56 |
|
ohcibi
| _ikke_: see the quote in the first answer | 11:56 |
|
_ikke_
| ohcibi: I'm talking about remote repositories, not local repositories | 11:57 |
|
ohcibi
| _ikke_: i just did that on the remote repository | 11:57 |
|
| _ikke_: i copied the stuff to my server to try it out | 11:57 |
|
| _ikke_: the local is easy done by re-cloning (which is okay in my case) | 11:58 |
|
_ikke_
| ohcibi: What I meant is that doing gc on a local repository does not make it expire quicker on a remote repository | 11:59 |
| → replore joined | 11:59 |
| ← Robbo_ left | 11:59 |
|
ohcibi
| _ikke_: i know 8-)) | 11:59 |
|
| i was about to write the same 8-) | 12:00 |
| → j0k3r joined | 12:00 |
| → ph^_ joined | 12:00 |
| → erichynds joined | 12:00 |
| → cccaldas joined | 12:02 |
| ← ph^ left | 12:03 |
| → Robbo_ joined | 12:03 |
| ← twisted` left | 12:03 |
| ← Lisimba left | 12:05 |
| → Lisimba2 joined | 12:06 |
| → JEEB joined | 12:08 |
|
fleetfox
| thanks jast :\ | 12:10 |
| ← wilmoore left | 12:11 |
| → the_cybersphinx joined | 12:11 |
| ← Robbo_ left | 12:11 |
| ← hotfloppy left | 12:11 |
| → xerxas joined | 12:11 |
| → bubbles10101 joined | 12:14 |
| ← cybersphinx left | 12:14 |
| → Robbo_ joined | 12:14 |
| → SidGBF joined | 12:15 |
|
SidGBF
| Hi all :) | 12:15 |
|
| Guys, Im taking some time to finally learn how to use git. | 12:16 |
|
_ikke_
| SidGBF: !hi | 12:16 |
|
gitinfo
| SidGBF: [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice. | 12:16 |
| ← harshpb left | 12:18 |
|
SidGBF
| I was checking GitImmersion, but at this moment I have an specific doubt about how the remote hosting works. I mean, Im confused about that bare stuff... I mean, I can start working on my project, init a repository here in my machine and stuff. But, I want everything backed up in my server. In SVN I would create there a repository and check out it in my machine. Im confused about how this works on git... | 12:18 |
|
jast
| SidGBF: create a bare repository on the server and push to it | 12:19 |
|
| bare means all the history is stored, but git doesn't bother checking the files out on the server | 12:19 |
|
| which is similar to how SVN server-side repositories work, only faster and saner ;) | 12:19 |
| → ryez joined | 12:20 |
| → glennpratt joined | 12:20 |
|
SidGBF
| jast: ok, so, a BARE repository is like a 'control center', where everyone can clone from (but seem that there's also the .git file that looks like allowing you to check out from another user) | 12:20 |
|
| (checkout -> clone... Im trying hard to fix the language) | 12:21 |
| → alem0lars joined | 12:21 |
|
jast
| yeah, you can clone from non-bare repositories, too | 12:21 |
|
| but there are less complications with pushing to _bare_ repositories | 12:22 |
|
| here's an article about it: !bare | 12:22 |
|
gitinfo
| an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/ | 12:22 |
|
_ikke_
| The problem with pushing to non-bare repositories is updating the working directory | 12:22 |
| → bnz joined | 12:22 |
| gitinfo set mode: +v | 12:22 |
|
jast
| btw, one of my secret plans is to supplement gitrecipes with a series of fairly silly yet instructional videos :} | 12:23 |
| → Bass10 joined | 12:23 |
| → intransit joined | 12:23 |
|
SidGBF
| the hard part is the language transition... | 12:23 |
|
jast
| it's actually not hard at all, it just takes a bit of time. don't sweat it. | 12:23 |
|
SidGBF
| 'commit' now is to 'backup work locally' and to really "commit" is the push. | 12:24 |
|
| and I must say: it is a great idea | 12:24 |
|
| to destroy a repo, is it just rm the folder? | 12:24 |
|
bnz
| got dropped out, who was kindly helping me earlier? | 12:24 |
| ← sh0ne left | 12:25 |
|
bnz
| may be interested to know that i fired up a copy of git-scm (it's gui) and its doing the expected now | 12:25 |
|
| (i.e. not listing the stuff in .git to be committed) | 12:25 |
|
| so i have a feeling this could be something funny aptana is doing | 12:25 |
|
_ikke_
| bnz: Yes, obviously. | 12:26 |
|
bnz
| or the git gui it provides | 12:26 |
|
| ah ikke - thanks v. much for help earlier | 12:26 |
|
| do you think what has happened is actually dangerous though? | 12:26 |
|
| im not so sure | 12:26 |
| → jackh joined | 12:26 |
|
Psycho_pr
| $ git clone --bare /var/www/vtigercrm/.git/ ~jacob/source/vTiger_RedCad.git | 12:27 |
|
| Initialized empty Git repository in /home/jacob/source/vTiger_RedCad.git/ | 12:27 |
|
| Why do I get an empty Git repo instead of cloning the xisting one? | 12:27 |
| ← sangi left | 12:27 |
| → shadowe989 joined | 12:27 |
|
_ikke_
| bnz: Well, git is not built for tracking itself | 12:27 |
|
bnz
| yeah | 12:27 |
|
| i guess if you did a pull | 12:27 |
|
| it could break things actually cos i may merge changes from an old .git! | 12:28 |
| ← und3f left | 12:28 |
| ← pfFredd left | 12:29 |
| ← Kulrak left | 12:29 |
| ← jspiros left | 12:29 |
|
kkiero
| how to deal with fragile data files in git? for example I want to version file that contains password but I don't want to show this passwords in repository | 12:32 |
| ← arti_t left | 12:32 |
| ← macabre left | 12:32 |
|
cbreak-work
| kkiero: don't track it | 12:32 |
|
| track some template file instead | 12:32 |
|
_ikke_
| !config | 12:33 |
|
gitinfo
| [!configfiles] the recommended way is to change your application so that you can (perhaps optionally) store site-specific configuration/data in separate files, then keep those files out of version control. Still, see https://gist.github.com/1423106 for ways people have worked around the problem. | 12:33 |
|
bnz
| ikke - would you agree as long as i never stage/commit the .git stuff in aptana i can carry on as normal? | 12:33 |
| ← alem0lars left | 12:34 |
| → stephanmg joined | 12:34 |
|
_ikke_
| bnz: I would first try to find out what went wrong | 12:34 |
| → alem0lars joined | 12:34 |
|
bnz
| its a bug that aptana is offering them to be staged perhaps? | 12:34 |
|
| ok | 12:34 |
|
| its possible they are not being tracked either | 12:34 |
|
| i.e. selecting them for staging/committing results in nothing happening | 12:34 |
| → jspiros joined | 12:35 |
|
kkiero
| alright so how to track one file template with clear data only once, then replace this data with passwords and stop tracking it but have first version in repo all the time? | 12:35 |
| ← ronny left | 12:35 |
| ← Desproges left | 12:36 |
| → gchristensen joined | 12:36 |
| ← tyatpi left | 12:36 |
|
bremner
| kkiero: that is what the link about is about. | 12:36 |
| ← ivan12350 left | 12:38 |
| → Kulrak joined | 12:38 |
| ← Kulrak left | 12:38 |
| → Kulrak joined | 12:38 |
|
SidGBF
| jast: Dude, so, the first thing to do is a) create a local repo, with file, and then the bare in my server b) first the bare ? | 12:39 |
| → Octalot joined | 12:39 |
| ← ivan12349 left | 12:39 |
| ← ivan12348 left | 12:39 |
| → g0bl1n joined | 12:39 |
|
_ikke_
| kkiero: Best solution is to never store the config file itself into git | 12:40 |
| → Codif joined | 12:42 |
|
vandemar
| or include filedata.example but have the real filedata file in .gitignore | 12:43 |
| → bullicon joined | 12:43 |
| ← Codif left | 12:43 |
| → j0k3r_ joined | 12:44 |
| → Caelum joined | 12:44 |
| → brentratliff joined | 12:45 |
| → Hounddog joined | 12:46 |
|
Hounddog
| what was the parameter to ignore hooks? | 12:46 |
| abackstrom_ → abackstrom | 12:47 |
|
_ikke_
| Hounddog: which hooks? | 12:47 |
| → neurodrone joined | 12:47 |
|
SidGBF
| Can anyone here help me with the bare repository? how do I create it? | 12:47 |
|
cbreak-work
| Hounddog: man git-commit | 12:47 |
|
gitinfo
| Hounddog: the git-commit manpage is available at http://git-scm.com/docs/git-commit.html | 12:47 |
|
cbreak-work
| SidGBF: man git-clone/git-init | 12:47 |
|
gitinfo
| SidGBF: the git-clone manpage is available at http://git-scm.com/docs/git-clone.html | 12:47 |
|
Hounddog
| _ikke_: pre-commit hook... i have a phpmd hook with me but a co worker has not... now after pulling changes i cannot commit cause his code is shit | 12:48 |
|
_ikke_
| --no-verify | 12:48 |
| → Milossh_ joined | 12:48 |
|
Hounddog
| thx :) | 12:48 |
|
| i was looking for ignore hook :) | 12:48 |
| ← Milossh left | 12:49 |
| ← ph^_ left | 12:49 |
| ← tabakhase left | 12:49 |
| → tabakhase joined | 12:49 |
| → bartek joined | 12:49 |
|
ironfroggy
| is it possible to find all of my commits across all of my local branches? | 12:49 |
| → dzonder joined | 12:49 |
|
ironfroggy
| essentially i'm trying to answer the question "what did you do this month?" | 12:50 |
| → tyatpi joined | 12:50 |
|
cmn
| git rev-list --all | 12:50 |
|
FauxFaux
| git log --after=.. --author= .. --all | 12:50 |
| ← kaen left | 12:50 |
|
FauxFaux
| -p | 12:50 |
| → h0bbit joined | 12:51 |
|
SidGBF
| mmmm | 12:51 |
|
| got the idea | 12:51 |
| → ivan12345 joined | 12:51 |
|
ironfroggy
| FauxFaux: thank you | 12:51 |
| ← jspiros left | 12:52 |
| → ivan12346 joined | 12:52 |
| → ivan12347 joined | 12:52 |
| → pandeiro joined | 12:52 |
| → jspiros joined | 12:52 |
| ← j0k3r_ left | 12:54 |
| ← j0k3r left | 12:54 |
| → bitkiller joined | 12:55 |
|
SidGBF
| that's weird :) the bare is created AFTER | 12:55 |
| ← ben_alman left | 12:55 |
| → hellopat joined | 12:56 |
| ← axl_ left | 12:56 |
| ← ranamalo left | 12:57 |
| → revagomes joined | 12:58 |
|
_ikke_
| SidGBF: For git, it doesn't matter in what sequence | 12:58 |
|
| But you can't clone from empty bare repositories | 12:59 |
|
SidGBF
| _ikke_: yea, so, you must create first a local repo, then clone a bare, and then the things go | 12:59 |
| → alex88 joined | 12:59 |
|
SidGBF
| this is what I wasn't getting | 13:00 |
|
cbreak-work
| _ikke_: you can clone empty bare repositories | 13:00 |
|
| since git 1.6 or so? | 13:00 |
|
| maybe longer | 13:00 |
|
et
| you just get a warning | 13:00 |
| → Jackneill joined | 13:01 |
|
SidGBF
| but I can't 'git init --bare .' for instance | 13:01 |
|
| can I? | 13:01 |
|
cmn
| if it's empty, you should be able to | 13:01 |
|
| not that it makes any sense, try it | 13:01 |
| → taylanub joined | 13:02 |
| ← hide left | 13:02 |
| → ph^ joined | 13:02 |
|
alex88
| hello guys, look at this pic, http://i.imgur.com/VW29Y.png i had development and staging on the purple dot, production on the actual stage, i merged development on production and it merged correctly, done the same with staging and it created a new commit, why it didn't merged on same? | 13:02 |
| → brotspinne joined | 13:02 |
|
jast
| SidGBF: there are actually many ways to do it. you can create the bare repository before or after creating the local one. cloning from it (so creating it first) is slightly easier but by no means the only way. | 13:02 |
|
_ikke_
| cmn: I recall it giving an error about there being no branch or something | 13:02 |
| → macabre joined | 13:02 |
|
_ikke_
| cbreak-work* | 13:03 |
|
cbreak-work
| yeah | 13:03 |
|
| no big deal | 13:03 |
|
_ikke_
| ah ok | 13:03 |
|
| that used to be | 13:03 |
|
taylanub
| how do i absolutely go back to a previous commit ? is reset --hard enough ? | 13:03 |
|
cbreak-work
| of course it doesn't have a branch :) | 13:03 |
|
_ikke_
| taylanub: yes | 13:03 |
|
cbreak-work
| taylanub: you have to specify where you want to go to | 13:03 |
|
jast
| alex88: you did something like "git merge branch1 branch2", right? | 13:03 |
|
taylanub
| cbreak-work: that i know. _ikke_: ok, thanks both | 13:03 |
| → logik-bomb joined | 13:03 |
|
brotspinne
| hello! is there a way to do a git branch --contains which only compares the "content" of the commits without comparing sha sums? because I have a branch with a bunch of commits which seems to be also in the master branch but I'm not sure | 13:03 |
| → Ryback_ joined | 13:03 |
| ← Ryback_ left | 13:04 |
| → Ryback_ joined | 13:04 |
|
alex88
| jast: i've switched to staging, clickend on merge (it's sourcetree app) and selected the production stage commit | 13:04 |
|
cmn
| brotspinne: take a look at man git cherry | 13:04 |
|
gitinfo
| brotspinne: the git-cherry manpage is available at http://git-scm.com/docs/git-cherry.html | 13:04 |
|
SidGBF
| jast: Ok, let's say I have no repos. How to create the first one already being the bare one? | 13:04 |
|
jast
| alex88: the commit message suggests that you merged two branches simultaneously | 13:04 |
|
brotspinne
| thanks | 13:04 |
|
logik-bomb
| If I have uncommited/untracked files on my branch and I switch to another branch, what happens? Do those changes get carried around between branches? | 13:04 |
| → bglusman joined | 13:04 |
|
_ikke_
| logik-bomb: yes | 13:04 |
|
| logik-bomb: unless the other branch would have to overwrite them | 13:05 |
| → AaronMT joined | 13:05 |
|
_ikke_
| logik-bomb: then git aborts | 13:05 |
|
jast
| alex88: that never works as a fast-forward, because git tries to represent that you merged them simultaneously, and for that it needs to create a merge commit | 13:05 |
|
logik-bomb
| can I just stash my stuff between swapping branches? | 13:05 |
|
| *before | 13:05 |
|
FauxFaux
| logik-bomb: !float | 13:05 |
|
gitinfo
| logik-bomb: If you have made a change in your working directory and have NOT YET COMMITTED, you may "float" that change over to another (`git checkout oldbranch`) or new (`git checkout -b newbranch`) branch and commit it there. If the files you changed differ between branches, the checkout will fail. In that case, `git stash` then checkout, and `git stash apply` and go through normal conflict resolution. | 13:05 |
|
taylanub
| now i have a modified version of a specific commit. how do i merge with the latest upstream commit ? | 13:05 |
|
_ikke_
| logik-bomb: yup | 13:05 |
|
alex88
| jast: ok thank you… so merging to a commit with more then 1 branches on them creates this, thank you | 13:05 |
|
FauxFaux
| taylanub: git merge @{upstream} | 13:06 |
|
logik-bomb
| great | 13:06 |
|
| Thanks! | 13:06 |
|
taylanub
| FauxFaux: after commiting my changes, right ? | 13:06 |
|
jast
| alex88: merging one branch will create a mereg commit, too, if there are new commits in both branches. I'm still not entirely sure whether that was the case in your scenario... I can't think straight enough right now. ;) | 13:06 |
|
FauxFaux
| taylanub: Everything fun deals only with committed changes, yes. | 13:06 |
| → ben_alman joined | 13:06 |
|
alex88
| jast: not a problem, it was just for having a cleaner view on the log | 13:06 |
|
jast
| SidGBF: on server, create directory, go in there, git init --bare. | 13:06 |
|
taylanub
| FauxFaux: ok :) | 13:06 |
|
brotspinne
| cmn: sorry I can't find any option with cherry-pick which only tests for presence of a given commit or branch in another branch according to its content | 13:06 |
| ← maleknet left | 13:07 |
|
cmn
| brotspinne: that's not the command I told you about | 13:07 |
|
SidGBF
| jast: that's what I was looking for :) | 13:07 |
|
cbreak-work
| brotspinne: man git-cherry | 13:07 |
|
gitinfo
| brotspinne: the git-cherry manpage is available at http://git-scm.com/docs/git-cherry.html | 13:07 |
|
SidGBF
| now the stuff started making sense | 13:07 |
|
| cnm: Yo dude ;) | 13:07 |
|
jast
| SidGBF: sounds good! | 13:07 |
|
brotspinne
| ah just "cherry". I will have a look | 13:08 |
|
SidGBF
| this BARE was making no sense :p | 13:08 |
|
jast
| it's all explained at !bare | 13:08 |
|
gitinfo
| an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/ | 13:08 |
|
SidGBF
| jast: I mean cause most of docs will tell you to clone into a bare, and not init the bare | 13:09 |
|
jast
| though it doesn't include commands for creating a repository of any kind | 13:09 |
|
| cloning *into* a bare repository? | 13:09 |
|
| that's a pretty rare use case | 13:09 |
|
SidGBF
| yeah, git clone --bare .... | 13:09 |
|
drue
| not really. everytime you fork on github it clones into a bare repo. | 13:10 |
| → marc_kdab joined | 13:10 |
|
drue
| everytime you mirror a repo.. etc | 13:10 |
|
jast
| yeah, *it* does. you don't. :} | 13:10 |
|
| you don't create all that many mirrors, typically | 13:10 |
|
| also in that case I'd recommend git clone --mirror | 13:10 |
|
| and chances are github does something else anyway. I know repo.or.cz uses a different approach to forking, internally... | 13:11 |
|
drue
| the funny thing about git is it allows for a wide variety of use cases. it's hard to assume what people do and don't do with hit. | 13:11 |
|
jast
| indeed, but we were pretty much speaking about the first steps here | 13:11 |
|
cmn
| but if someone tells you to clone into a bare repo, soemthing's fishy | 13:12 |
|
jast
| mirroring repositories is not a 'first steps' topic | 13:12 |
| ← acrocity left | 13:12 |
| ← caseymcg left | 13:13 |
| ← fusion27 left | 13:13 |
| → juanfer joined | 13:14 |
| → j4mie joined | 13:16 |
|
brotspinne
| cmn: nice one. cherry did the job. thanks | 13:16 |
|
Psycho_pr
| Why is it that git status shows me something is staged for commit but git diff shows me the same file has no changes in it? | 13:17 |
| ← j4mie left | 13:17 |
|
cmn
| Psycho_pr: because those are two different things | 13:17 |
|
drue
| Psycho_pr, because git diff shows files that aren't staged. try git diff --staged | 13:17 |
|
_ikke_
| It shows the diff between the working dir and the index | 13:18 |
|
| if you want both, you'd do git diff HEAD | 13:18 |
|
Psycho_pr
| I see. | 13:19 |
| ← tatsuya_o left | 13:19 |
| → _huoxito joined | 13:20 |
| ← Lgb left | 13:20 |
| → tatsuya_o joined | 13:20 |
| → ehsan joined | 13:20 |
|
Psycho_pr
| Thank you. | 13:21 |
| → chrisdev joined | 13:21 |
| → Lgb joined | 13:22 |
| ← Robbo_ left | 13:22 |
| ← tomoj left | 13:23 |
| → kent\n joined | 13:23 |
| ← ph^ left | 13:23 |
| → w09x_ joined | 13:24 |
| ← PapaSierra left | 13:24 |
| → Robbo_ joined | 13:26 |
| ← w09x left | 13:26 |
| → ipalaus_ joined | 13:27 |
| → jgoss joined | 13:27 |
| → freeed joined | 13:27 |
| → ph^_ joined | 13:28 |
| ← kpreid left | 13:28 |
| ← ipalaus_ left | 13:28 |
| → ipalaus_ joined | 13:28 |
| ← tatsuya_o left | 13:28 |
| ipalaus_ → ipalaus | 13:28 |
| ← v0n left | 13:29 |
| → kpreid joined | 13:29 |
| → gavin_huang joined | 13:29 |
|
taylanub
| what's the quickest way to get events for when internet connectivity is lost/gained ? | 13:30 |
|
_ikke_
| taylanub: has this to do with git? | 13:30 |
|
taylanub
| whoops, wrong channel :P | 13:30 |
| → axl_ joined | 13:31 |
| ← marhaban left | 13:33 |
| ← pyhead left | 13:34 |
| → t4nkd joined | 13:34 |
| ← _huoxito left | 13:35 |
| ← dc5ala left | 13:35 |
| → _huoxito joined | 13:35 |
| → pyhead joined | 13:36 |
| → rjgonza joined | 13:36 |
| → NiteRain joined | 13:37 |
| → cannonball joined | 13:38 |
| → dv310p3r joined | 13:38 |
| ← brotspinne left | 13:38 |
| → ronniy joined | 13:40 |
|
imMute
| taylanub: the answer is ifplugd | 13:41 |
|
| but yeah, wrong channel | 13:41 |
| → TeckniX joined | 13:42 |
| ← bitkiller left | 13:42 |
| ← gitinfo left | 13:43 |
|
jast
| oh, I think I broke something | 13:43 |
| → hide joined | 13:43 |
| → gitinfo joined | 13:43 |
| ChanServ set mode: +o | 13:43 |
| ← w09x_ left | 13:44 |
| → bitkiller joined | 13:46 |
| ← SidGBF left | 13:47 |
| ← gavin_huang left | 13:49 |
| → eacameron joined | 13:50 |
| ← eacameron left | 13:50 |
| ← Samual left | 13:51 |
| ← NiteRain left | 13:51 |
| → kukks joined | 13:51 |
| ← t4nkd left | 13:51 |
|
taylanub
| imMute: the question was targeted to #iphonedev but thanks :P | 13:52 |
| → ToBeFree joined | 13:53 |
|
jast
| an easy mistake to make... 'iphonedev' and 'git' type pretty much the same :P | 13:54 |
| → eijk joined | 13:56 |
|
Psycho_pr
| How do I make sure all branches (including remote ones) are merged FROM my current branch? I'll explain: say I was in some branch randomly, and all my branches were synchronized to the same commit. Suddenly I found a bug and fixed it, committed it, but now I have to do tens of checkouts and merges to propagate the change.. | 13:57 |
| ← Psycho_pr left | 14:00 |
| → dcarper joined | 14:01 |
| ← jceb left | 14:02 |
| → stamina joined | 14:03 |
| ← xiangfu left | 14:04 |
| → chrisgeorge joined | 14:04 |
|
cmn
| you do the same thing you do for any other bug/feature, you identify the earliest branch point you want it to affect, create a branch off of that, fix the bug and merge wherever you need to | 14:04 |
| → Samual joined | 14:05 |
|
cehteh
| but he left :P | 14:05 |
|
cmn
| meh | 14:05 |
|
| then he doesn't get the answer | 14:05 |
| → SidGBF joined | 14:05 |
| → mdhopkins joined | 14:05 |
|
SidGBF
| guys | 14:06 |
|
| http://pastebin.com/rYxJnPHC | 14:06 |
|
| IIm failing to clone from github | 14:06 |
|
jast
| your local configuration is screwed up | 14:07 |
|
SidGBF
| May it be some git setting? | 14:07 |
|
| (wrote it before reading) | 14:07 |
| → psoo joined | 14:07 |
|
jast
| do you happen to have a http_proxy environment variable? ("set" on the command line to see all of 'em) | 14:07 |
| ← f0i left | 14:08 |
|
SidGBF
| jast: doesn't seem so... I'll check out repo configs | 14:08 |
|
jast
| shouldn't matter | 14:09 |
|
cmn
| env is probably more readable | 14:09 |
| → gusnan joined | 14:09 |
|
SidGBF
| global config has ' proxy = ' inside '[http]' | 14:09 |
| ← simesy left | 14:09 |
| ← _Qman left | 14:09 |
|
SidGBF
| may be this? | 14:09 |
| ← barrbrain_ left | 14:09 |
| ← blacktulip left | 14:10 |
|
cmn
| that looks extremely likely | 14:10 |
| → davidjdagino joined | 14:10 |
|
_ikke_
| the git rebase -i --autosquash, how does it know where it should fix it up? | 14:10 |
|
SidGBF
| yeah | 14:10 |
|
| that was it :) | 14:10 |
|
_ikke_
| (where it should squash with) | 14:10 |
| → t4nkd joined | 14:10 |
|
jast
| _ikke_: it matches the commit summaries, I think | 14:11 |
|
_ikke_
| jast: Ok | 14:11 |
| ← ph^_ left | 14:11 |
|
jast
| e.g. if you have a commit that has "add quantum entanglement" and a commit that has "fixup! add quantum entanglement" | 14:12 |
|
SidGBF
| btw, if I use git clone inside a repo, does it will work as an external (submodule) or will screw my repo? | 14:12 |
|
jast
| SidGBF: it won't automatically turn into a submodule... it will just happen to live in that particular location on your computer. but no, nothing will implode. | 14:12 |
|
| if your version of git isn't ancient, that is | 14:13 |
|
SidGBF
| I just update it | 14:13 |
|
jast
| good enough! | 14:13 |
|
cmn
| the commit message | 14:13 |
|
SidGBF
| I was getting a lot of problems cause it was a bit old | 14:13 |
|
CalimeroTeknik
| how does git manage symlinks? | 14:13 |
| → oscar_ joined | 14:13 |
| ← ThomasLocke left | 14:13 |
|
jast
| CalimeroTeknik: it records them as symlinks | 14:14 |
| → scientes joined | 14:15 |
|
SidGBF
| jast: and how should I use the command in order to be a submodule? I mean, in my idea, when I order to sync, all the submodules will be synced | 14:15 |
| ← __root__0 left | 14:15 |
|
CalimeroTeknik
| it doesn't look like it :| | 14:15 |
|
| I have new: new: etc | 14:15 |
|
| not on the symlinks but as if I had done cp -r | 14:15 |
|
| this kind of freaks me out | 14:15 |
|
cmn
| are you sure it's a symlink and not a hardlink? | 14:15 |
|
jast
| SidGBF: submodules are a topic unto its own. I keep meaning to write a decent article about 'em. in the meantime, let's try !submodule | 14:15 |
|
gitinfo
| SidGBF: git-submodule is ideal to add subsidiary git repositories to a git superproject when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes upstream. See http://book.git-scm.com/5_submodules.html | 14:15 |
|
CalimeroTeknik
| it's symlinks, yes | 14:16 |
| → gtrak joined | 14:16 |
| ← frogonwheels left | 14:16 |
|
cmn
| and where do you have "new: new:"? what happens when you commit? is it still recorded as a new file? | 14:16 |
| → frogonwheels joined | 14:17 |
|
jast
| yeah, I'd like some !repro here | 14:17 |
|
gitinfo
| Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting. | 14:17 |
|
CalimeroTeknik
| cmn: I'm not trying to commit, it's irreversible so… | 14:17 |
|
cmn
| huh? | 14:17 |
| → herdingcat joined | 14:17 |
|
CalimeroTeknik
| ah I get it, absolute symlinks | 14:17 |
| ← kerrick left | 14:17 |
|
cmn
| that makes no snese | 14:18 |
|
CalimeroTeknik
| that's why git doesn't record them as symlinks but as hard ones | 14:18 |
|
cmn
| what's an absolute symlink? | 14:18 |
|
CalimeroTeknik
| that has an URI starting with / | 14:18 |
|
cmn
| that could be it | 14:18 |
|
jast
| shouldn't matter, though | 14:18 |
|
cmn
| if it looks like it might be pointing outside the repo | 14:18 |
|
CalimeroTeknik
| yes. can I unstage everything for commit? | 14:18 |
|
jast
| normally git doesn't care where the symlink points | 14:19 |
|
cmn
| do what status tells you | 14:19 |
| → megalomania joined | 14:19 |
|
CalimeroTeknik
| I'm unsure if that's what I want | 14:19 |
|
| I don't want git to touch my sources | 14:19 |
| ← TeckniX left | 14:19 |
|
CalimeroTeknik
| checkout does that. | 14:19 |
| → TeckniX joined | 14:20 |
| ← diegoviola left | 14:20 |
|
CalimeroTeknik
| so how do I un-add? | 14:20 |
|
| reset? | 14:21 |
|
| I'd like to be sure nothing will be touched | 14:21 |
| → kerrick joined | 14:22 |
|
jast
| here's a ttyplay recording of git treating an absolute symlink as a symlink: http://jk.gs/absolute-symlink.tty | 14:22 |
| → kenperkins joined | 14:22 |
| → tatsuya_o joined | 14:22 |
|
cmn
| for some reason my system thinks wireshark should be opening that... | 14:23 |
| ← kenperkins left | 14:23 |
| → itzhack joined | 14:24 |
| ← psoo left | 14:24 |
| → masonkramer joined | 14:24 |
| → ishi joined | 14:25 |
|
ishi
| hi | 14:25 |
|
gitinfo
| ishi: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 14:25 |
| ← replore left | 14:26 |
| gitinfo set mode: +v | 14:26 |
| gitinfo set mode: +v | 14:27 |
| ← juvenal left | 14:27 |
|
cbreak-work
| git needs a patience option for git diff | 14:27 |
| gitinfo set mode: +v | 14:27 |
|
ishi
| I'm using git+gerrit. I commited, pushed... in gerrit I noticed that I forgot to do soemthing, so I did this fetch/checkout FETCH_HEAD... I amended my commit, pushed it | 14:27 |
|
| so far so good. | 14:27 |
|
itzhack
| hi, i just git rm a file but did not git commit, how do i un-rm this file and put it back in status "modified" ? | 14:27 |
|
cbreak-work
| itzhack: git checkout HEAD -- filename | 14:28 |
|
| or | 14:28 |
|
| if you did not actually use git rm but rm | 14:28 |
|
| git checkout -- filename | 14:28 |
|
itzhack
| yes, i used git rm | 14:28 |
|
ishi
| unfortunetly I continued working on my 'fix' branch... but I thought it was OK, so I commited my changes, pushed them | 14:28 |
|
cmn
| cbreak-work: git diff does have a --patience option | 14:28 |
|
itzhack
| but i had it modified | 14:28 |
|
cbreak-work
| cmn: yeah, but git add -p does not | 14:29 |
|
ishi
| but the problem is that now when I try to do git checkout master, I get the following error: | 14:29 |
|
itzhack
| checking it out wont erase my changes? | 14:29 |
|
ishi
| error: Your local changes to the following files would be overwritten by checkout: | 14:29 |
|
cbreak-work
| cmn: and git diff doesn't have a git config flag to set patience always | 14:29 |
|
ishi
| can I force this checkout? | 14:29 |
| ← juanfer left | 14:29 |
|
cbreak-work
| ishi: just undo the changes with git checkout or git reset | 14:29 |
|
| or stash them with git stash | 14:29 |
|
| or commit them with git commit | 14:29 |
|
ishi
| I don't have anything uncommited | 14:29 |
|
cmn
| cbreak-work: IIRC that was proposed on the list, though I can't remember if it got far | 14:29 |
| → jceb joined | 14:29 |
|
cbreak-work
| ishi: git disagrees | 14:30 |
| ← _huoxito left | 14:30 |
|
ishi
| $ git status | 14:30 |
|
| # On branch fix | 14:30 |
|
| nothing to commit (working directory clean) | 14:30 |
|
jast
| itzhack: you deleted the file. so, obviously, your uncommitted changes are gone. | 14:30 |
|
itzhack
| no i didn't | 14:31 |
|
cbreak-work
| git rm will delete the file | 14:31 |
|
| AND stage the file for removal | 14:31 |
| → fly9 joined | 14:31 |
|
cbreak-work
| so both the filesystem and the index will not contain the file | 14:31 |
|
itzhack
| git rm didn't remove my file | 14:31 |
|
jast
| if you did what you said you did, then yes, you deleted the file | 14:31 |
|
| otherwise you didn't do what you said you did | 14:31 |
|
cbreak-work
| git rm WILL remove the file | 14:31 |
|
| if it didn't remove the file, then you didn't use git rm but git rm --cached | 14:32 |
|
ishi
| cbreak-work: my git status tells me that it does agree | 14:32 |
|
itzhack
| i did git rm --cached <file> | 14:32 |
|
| yes | 14:32 |
|
cbreak-work
| then just git add the file again | 14:32 |
|
jast
| itzhack: well, in that case 'git status' tells you how to undo that | 14:32 |
|
itzhack
| but i don't want to add it | 14:32 |
| ← DuzyZiemniak left | 14:32 |
|
itzhack
| i want it to come back to mode "modified" | 14:32 |
|
jast
| right. do what 'git status' suggests. | 14:32 |
|
ishi
| cbreak-work: what I want to get is *exactly* the same sate I have at the moment, but on branch master (instead of branch 'fix') | 14:33 |
|
| and the origin/master has this state, afaik | 14:33 |
|
itzhack
| jast: thanks a lot | 14:33 |
|
| yes | 14:33 |
|
| it did, and did not revert the file to its un-modified state | 14:33 |
|
| great | 14:33 |
|
| thanks | 14:33 |
|
ishi
| so I could just remove the bloody thing and clone it again... but I'd rather not do it every time I bump into a problem like this :( | 14:33 |
| → NiteRain joined | 14:34 |
|
jast
| ishi: if you really don't care about things getting overwritten, checkout has a --force flag | 14:35 |
|
| if it still complains, delete the offending files | 14:35 |
| ← hide left | 14:35 |
|
ishi
| jast: but I don't have any local changes :( | 14:36 |
| → kevwil joined | 14:36 |
|
ishi
| at least not in the 'fix' branch | 14:36 |
|
| or at least that's what the git status tells me :( | 14:36 |
| → hide joined | 14:36 |
| infogulch|afk → infogulch | 14:36 |
|
jast
| ishi: the message refers to *untracked* files that you currently have that are *tracked* in the target branch | 14:36 |
|
| git tries to avoid clobbering untracked files unless you tell it otherwise | 14:37 |
| ← warthog9 left | 14:37 |
| → airborn joined | 14:38 |
| → stkrzysiak joined | 14:38 |
| → fjfish joined | 14:39 |
| ← francisfish left | 14:40 |
|
et
| who manages git-scm.com? | 14:40 |
| → guampa joined | 14:40 |
|
FauxFaux
| et: See the committers on the github link at the bottom. | 14:40 |
| → StuckMojo joined | 14:41 |
|
FauxFaux
| Which is a fucking ruby project that doesn't build, as expected, because that's what ruby projects do. Just for reference. | 14:41 |
|
StuckMojo
| morning. does git have issues with utf8 filenames? | 14:41 |
|
| i've got: カードデザイナAIテンプレート(表裏).zip | 14:41 |
|
FauxFaux
| It was poor on Windows before very recently. | 14:42 |
|
StuckMojo
| and it shows up as a bunch of escapes in git status | 14:42 |
| ← itzhack left | 14:42 |
|
StuckMojo
| this is on debian squeeze | 14:42 |
|
| with git from backports i think | 14:42 |
|
jast
| StuckMojo: they are shown escaped in some places but are stored literally (IIRC) | 14:42 |
| → juanfer joined | 14:42 |
|
jast
| not sure who thought it was a good idea to escape 'em in 'git status' | 14:42 |
|
StuckMojo
| hmmm...ok, how do i git add it ;) | 14:42 |
|
jast
| git add <filename> ;) | 14:42 |
|
et
| FauxFaux: well, that's basically true for any language | 14:42 |
|
StuckMojo
| oh wow, that worked | 14:43 |
|
| heh | 14:43 |
|
| thanks :) | 14:43 |
| → marhaban joined | 14:43 |
| ← dark_element left | 14:43 |
|
cmn
| status and others show it escaped by default just in case; you can tell it not to with some falg | 14:43 |
|
kpreid
| config core.quotepath sounds relevant | 14:44 |
|
bullicon
| StuckMojo: what does カードデザイナAIテンプレート(表裏)mean by the way | 14:44 |
|
StuckMojo
| uhhhhh | 14:45 |
|
| honestly i don't know | 14:45 |
|
bullicon
| AI Designer card templates inside and outside ! | 14:45 |
|
StuckMojo
| it's an adobe illustrator template file inside it | 14:45 |
| ← giallu left | 14:45 |
|
bullicon
| cool StuckMojo | 14:46 |
|
StuckMojo
| inside and outside, eh? it should really say "front and back" | 14:46 |
| → diegoviola joined | 14:46 |
| ← cagedwisdom left | 14:46 |
| → _huoxito joined | 14:46 |
|
StuckMojo
| i'm helping do Japanese translation of a django music site | 14:46 |
|
jast
| dang, still far from #1 on the karma top list | 14:46 |
|
_ikke_
| jast: Is gitinfo counting karma? | 14:47 |
| ← jspiros left | 14:47 |
|
jast
| _ikke_: yes, since a few days ago. but not using the ++ syntax. | 14:47 |
|
_ikke_
| jast: yeah, that's better | 14:47 |
|
| jast: probably looking for things like thanks | 14:47 |
|
jast
| yes. thanks for your thanks just now. ;) | 14:47 |
|
StuckMojo
| thanks jast | 14:48 |
|
| thanks cmn | 14:48 |
|
| thanks kpreid | 14:48 |
|
| as you all helped ;) | 14:48 |
|
_ikke_
| jast: :D | 14:48 |
| → giallu joined | 14:48 |
| ← giallu left | 14:48 |
| → giallu joined | 14:48 |
| → gavin_huang joined | 14:48 |
| → jspiros joined | 14:49 |
|
jast
| !karma | 14:49 |
|
gitinfo
| This channel tracks karma based on who has gotten lots of thanks for being helpful. If you want to help someone reach karmic nirvana, please mention their name when thanking them. | 14:49 |
| → martinjl` joined | 14:49 |
|
_ikke_
| jast: Is there an overview somewhere? | 14:49 |
|
jast
| StuckMojo: stop thanking people who are above me in the ranking, dammit! :P | 14:49 |
|
StuckMojo
| that's better than ++ because people don't have to know any magic to make it work | 14:49 |
|
jast
| yeah, there's a bot command to get a list of the top 5 or an arbitrary list of folks | 14:50 |
|
| right now it's prone to highlighting lots of people, though. I'll have to fix that before announcing it. | 14:50 |
| ← tatsuya_o left | 14:50 |
| ← martinjlowm left | 14:50 |
| → tatsuya_o joined | 14:51 |
| → edude03 joined | 14:51 |
|
_ikke_
| jast: Maybe only allow it in pm's | 14:51 |
| ← dhruvasagar left | 14:51 |
| ← jonnu left | 14:56 |
| ← marc_kdab left | 14:57 |
| ← edude03 left | 14:57 |
| → duckxx joined | 14:57 |
| → edude03 joined | 14:57 |
| → Element9 joined | 14:58 |
| → dark_element joined | 14:59 |
| ← edude03 left | 15:00 |
| ← quazimodo left | 15:00 |
| → quazimodo joined | 15:00 |
| → markgifford joined | 15:01 |
|
ishi
| jast: ok, so... what can I do with it? :) | 15:02 |
|
duckxx
| how do i display files changed in a git log ? | 15:02 |
|
ishi
| jast: as I said, I want my master to look like my 'fix' branch | 15:03 |
|
| :) | 15:03 |
| ← wolog left | 15:03 |
|
duckxx
| git log -p --online | 15:03 |
|
_ikke_
| duckxx: --stat or something | 15:03 |
| → jim0203 joined | 15:04 |
|
jast
| gotta go | 15:04 |
| → Pookz joined | 15:04 |
| ← cbreak-work left | 15:04 |
|
duckxx
| how do u add color to it ?? | 15:04 |
|
| git log is just all white | 15:04 |
| ← d3vic3 left | 15:04 |
|
duckxx
| i mean single color | 15:04 |
|
_ikke_
| duckxx: man git config | 15:05 |
|
gitinfo
| duckxx: the git-config manpage is available at http://git-scm.com/docs/git-config.html | 15:05 |
|
_ikke_
| see the color options | 15:05 |
|
bremner
| duckxx: change your terminal configuration? | 15:05 |
| → ph^ joined | 15:05 |
| ← jackh left | 15:06 |
| ← bitkiller left | 15:06 |
| → wolog joined | 15:06 |
|
StuckMojo
| ok thanks folks | 15:06 |
| ← StuckMojo left | 15:06 |
| → d3vic3 joined | 15:06 |
| → cakehero joined | 15:06 |
| → bitkiller joined | 15:08 |
| → tcurdt joined | 15:08 |
| ← tcurdt left | 15:08 |
| ← stodan left | 15:09 |
| → cbreak-work joined | 15:09 |
| ← gusnan left | 15:10 |
| ← cbreak-work left | 15:10 |
| ← d3vic3 left | 15:11 |
|
SidGBF
| how to revert all non-commited changes? | 15:12 |
| → fp1 joined | 15:12 |
|
FauxFaux
| git stash | 15:12 |
|
SidGBF
| mmm | 15:12 |
| → d3vic3 joined | 15:12 |
| ← abetaha left | 15:13 |
| → abetaha joined | 15:13 |
| → Lisimba3 joined | 15:13 |
| ← Lisimba2 left | 15:15 |
| ← dcarper left | 15:16 |
| → harshpb joined | 15:16 |
| → rath joined | 15:18 |
| → rgenito joined | 15:18 |
| → noel__ joined | 15:18 |
| ← noel__ left | 15:18 |
| → dcarper joined | 15:20 |
|
rgenito
| i run "git rebase --onto trunk master~2 master" and i get the error, "needed a single revision" | 15:20 |
|
| ...doesn't "master~2" grab the last 2 commits for the branch 'master'? | 15:20 |
| ← pro_metedor left | 15:21 |
| → andrew_ joined | 15:22 |
| → lonewulftp joined | 15:23 |
| → pdtpatrick joined | 15:24 |
| ← DoniRS left | 15:24 |
|
| rgenito *sigh* | 15:24 |
|
rgenito
| i wish #git was actually a community =\ | 15:24 |
| ← JohnBat26 left | 15:24 |
| ← jim0203 left | 15:25 |
| → aristidesfl joined | 15:25 |
| ← harshpb left | 15:26 |
| → jim0203 joined | 15:26 |
| → harshpb joined | 15:26 |
| → wilmoore joined | 15:27 |
| ← dvide left | 15:28 |
|
bremner
| a community being defined as a consultant with a <= 5 minute response time? | 15:28 |
| gitinfo set mode: +v | 15:30 |
|
bremner
| rgenito: what does "git rev-parse" return for each of those refs you pass to rebase? | 15:31 |
|
| i.e., does it error out for any of them? | 15:31 |
| → CannedCorn joined | 15:32 |
| → TrahDivad_ joined | 15:33 |
| ← TrahDivad left | 15:33 |
| TrahDivad_ → TrahDivad | 15:33 |
|
rgenito
| bremner: exactly :) | 15:33 |
|
| lemme see... | 15:34 |
| ← t4nkd left | 15:34 |
|
rgenito
| "git rev-parse" doesn't show anything | 15:34 |
|
| btw i figured out the issue where i was getting "needed a single revision" | 15:34 |
|
| now i'm trying to do, "git svn dcommit" :D | 15:34 |
| ← jceb left | 15:34 |
| → mikepack joined | 15:35 |
|
rgenito
| git tells me, "unable to determine upstream SVN information .... Perhaps the repository is empty. ...." | 15:35 |
| → kenperkins joined | 15:35 |
|
rgenito
| which is true...the svn repository is completely empty. i basically wanna push my entire GIT repository to SVN repository | 15:35 |
| → Zenopus_ joined | 15:36 |
|
rgenito
| i have a linear history on my local GIT repository; however, there's no home for this repository. and the home will be (unfortunately) SVN. so it would be nice to push the history and changes to that SVN repository | 15:36 |
|
talexb
| rgenito, Can #svn help you with that? | 15:36 |
|
rgenito
| if not, i'll just upload it. | 15:36 |
| ← hakunin left | 15:36 |
|
rgenito
| talexb: nope ;( | 15:36 |
| → Goplat joined | 15:37 |
|
kpreid
| rgenito: I would use svn to create the trunk directory, then git svn clone that and rebase your work onto it | 15:37 |
|
talexb
| rgenito, My only experience in changing VCS' is Perforce to git .. can't help you. | 15:37 |
|
rgenito
| kpreid: ahhh good idea...thanks! | 15:37 |
|
| thanks tho talexb | 15:37 |
|
kpreid
| note that git-svn is *not* an arbitrary bidir channel - what git-svn produces on the git side is *explicitly* "mirror of svn" | 15:37 |
|
| it will insert extra metadata into your git revisions | 15:38 |
| ← Zenopus left | 15:38 |
| Zenopus_ → Zenopus | 15:38 |
|
rgenito
| kpreid: wish i knew how to create the trunk directory for the svn repository lol | 15:38 |
|
| the repository is completely empty.... | 15:38 |
| ← papegaaij left | 15:38 |
|
rgenito
| google time :D | 15:38 |
|
kpreid
| rgenito: svn mkdir <repository url>/trunk/ | 15:38 |
| → rgsteele joined | 15:38 |
|
kpreid
| that will perform a commit which creates only that dir | 15:38 |
| ← jargon- left | 15:39 |
| ← mishok13 left | 15:39 |
| → blacktulip joined | 15:40 |
| → sh0ne joined | 15:40 |
| ← Robbo_ left | 15:40 |
| ← SidGBF left | 15:41 |
|
rgenito
| thanks kpreid! | 15:42 |
| → TrahDivad_ joined | 15:42 |
| ← brokenshakles left | 15:43 |
| ← bglusman left | 15:44 |
| ← nb left | 15:44 |
| → arvind_khadri joined | 15:44 |
| ← arvind_khadri left | 15:44 |
| → arvind_khadri joined | 15:44 |
| → brokenshakles joined | 15:44 |
|
rgenito
| kpreid: do you know of a way for me to "svn co" the empty svn/trunk into a new branch? | 15:44 |
| ← TrahDivad left | 15:44 |
| TrahDivad_ → TrahDivad | 15:44 |
|
rgenito
| or should i use "git svn clone" to bring it into a new branch? | 15:45 |
| ← com4 left | 15:45 |
|
kpreid
| don't bother with svn, stick to git svn clone | 15:45 |
|
rgenito
| (i have the rebasing experience... just not the svn part) | 15:45 |
| ← kenperkins left | 15:45 |
|
rgenito
| any special parameters i'll need to pass through git svn clone? (i'm looking at the help now) | 15:46 |
| ← rphillips left | 15:46 |
| ← thorie left | 15:46 |
| → jim0203_ joined | 15:46 |
| ← sontek left | 15:47 |
|
kpreid
| --stdlayout | 15:47 |
|
| other stuff is mostly if you want to make a nicer git mirror, but since you are keeping git locally and publishing svn, that doesn't matter | 15:47 |
| ← thiago left | 15:48 |
| → marc_kdab joined | 15:48 |
|
rgenito
| is that normal for it to clone into a directory? | 15:48 |
|
| ...i was thinking cloning into a branch where i could rebase to =| | 15:49 |
| → Davey_ joined | 15:49 |
| ← neurodrone left | 15:49 |
|
kpreid
| just take the new repository and copy your existing commits into it | 15:49 |
| ← jim0203 left | 15:50 |
| jim0203_ → jim0203 | 15:50 |
|
rgenito
| ooooh i got ya... pull the changes into the new git-svn repository? | 15:50 |
|
| cool...thanks :) | 15:50 |
|
| this feels like a puzzle, hehe | 15:50 |
| → kenperkins joined | 15:50 |
| ← andrew_ left | 15:51 |
| → DuzyZiemniak joined | 15:51 |
| → andrew_ joined | 15:51 |
|
rgenito
| oh wait, now how do i commit? =\ | 15:52 |
| ← Dave^| left | 15:52 |
| → iwoj joined | 15:52 |
|
rgenito
| i'm getting farther tho... thanks again | 15:52 |
|
kpreid
| You mean, how do you create SVN commits for your Git work? that is git svn dcommit's job. But first you will need to rebase onto that initial revision so that git svn knows what you want to do with them. | 15:54 |
| → maletor joined | 15:54 |
| → bglusman joined | 15:54 |
| ← cccaldas left | 15:54 |
|
rgenito
| ahh ok | 15:54 |
| ← bglusman left | 15:55 |
| → v0n joined | 15:56 |
| ← bnz left | 15:56 |
| ← |bnz left | 15:56 |
|
rgenito
| hmm, i still get "Unable to determine upstream SVN information from HEAD history." | 15:57 |
|
| let me pastie.org | 15:57 |
| ← mdhopkins left | 15:57 |
| → Robbo_ joined | 15:57 |
| ← harshpb left | 15:57 |
| ← shadowe989 left | 15:57 |
| → kadoban joined | 15:57 |
| ← abetaha left | 15:58 |
| → peppyheppy joined | 15:58 |
| ← gchristensen left | 15:58 |
| ← freeed left | 15:59 |
| ← lonewulftp left | 15:59 |
| → linusoleander joined | 16:00 |
|
rgenito
| kpreid: does this make sense? | 16:01 |
|
| http://pastie.org/private/7cco4utv9peheeu0tpioqw | 16:01 |
| ← hyperair left | 16:01 |
| → mdhopkins joined | 16:01 |
| → ShadesofGraylin| joined | 16:01 |
|
kpreid
| ok, you have that backwards | 16:02 |
| ← daethorian left | 16:02 |
| ← taylanub left | 16:02 |
|
kpreid
| you need to take your existing work and rebase *onto* the svn branch, but you did the opposite, or something — can't quite tell | 16:03 |
| ← whitman left | 16:03 |
| → comptekki joined | 16:03 |
| → lonewulftp joined | 16:03 |
|
rgenito
| when you say "svn branch", do you mean http://example.com/repository/branches/thebranch ... or do you mean a branch listed in "$ git branch -a" ? | 16:04 |
|
kpreid
| Sorry, I mean the git branch which is git-svn created. | 16:04 |
| → CannedCo_ joined | 16:04 |
| ← masonkramer left | 16:04 |
|
rgenito
| how do i create the "git-svn created" branch? | 16:04 |
|
| i think i'm lost on just that one part | 16:05 |
|
kpreid
| So, starting from after you've git svn cloned, do NOT git pull, but rather git fetch from your other repository. Then git checkout -t the other repository's branch of interest, and then on *that* branch do git rebase --onto master | 16:05 |
| → williamcotton joined | 16:05 |
| ← Davey left | 16:05 |
| Davey_ → Davey | 16:05 |
|
kpreid
| git svn clone creates it! probably named master | 16:05 |
| ← senny left | 16:05 |
|
rgenito
| ahh | 16:05 |
|
kpreid
| but when you did 'git pull' that broke things because git pull does a merge, i.e. creatign nonlinear history, by default | 16:05 |
| → Davey_ joined | 16:05 |
| ← Davey_ left | 16:05 |
| → Davey_ joined | 16:05 |
|
kpreid
| (either that or it did nothing) | 16:06 |
| ← LimeBlast left | 16:06 |
| ← lonewulf` left | 16:06 |
|
diminoten
| wait, when I check files into git, do the permissions I give those files stick with them? | 16:06 |
| ← CannedCorn left | 16:06 |
|
rgenito
| ah i see | 16:06 |
|
| thanks kpreid i'll give this a shot now :) | 16:06 |
|
kpreid
| rgenito: when mucking around like this I like to keep a `gitk --all` open to visualize the state of all the branches | 16:06 |
|
rgenito
| "git checkout -t the other repositories branch" ... | 16:07 |
|
kpreid
| diminoten: execute bit only | 16:07 |
|
diminoten
| bleh | 16:07 |
| ← axl_ left | 16:07 |
|
diminoten
| I didn't set that before checking in, how depressing | 16:08 |
|
rgenito
| kpreid: "git fetch ../cbt" warns me: "warning: no common commits" | 16:08 |
| → axl_ joined | 16:08 |
| ← jn_ left | 16:08 |
|
kpreid
| Yes, that is correct. Our rebase is to fix that :) | 16:08 |
|
rgenito
| i mean, of course there aren't going to be any common commits... | 16:08 |
|
kpreid
| "no common commits" = "no common history" | 16:08 |
|
rgenito
| ok cool >) | 16:08 |
|
| hmm, "get checkout -t svnrebase" tells me, "fatal: Missing branch name; try -b" | 16:08 |
|
| svnrebase isn't an actual branch yet lol | 16:09 |
|
| i only have master | 16:09 |
|
| oh wait! i also have the branch remotes/git-svn hehe | 16:09 |
|
kpreid
| hm | 16:09 |
| → alvaro_o joined | 16:10 |
|
rgenito
| "Then git checkout -t the other repository's branch of interest, and then on *that* branch do git rebase --onto master" | 16:10 |
| ← comptekki left | 16:10 |
|
kpreid
| You want to checkout -t what you fetched, I'm not sure what name it goes under. git branch -a will list all your branches including tracking branches | 16:10 |
|
rgenito
| so "git checkout -t master"? the branch master is the only i'm interested in | 16:10 |
| ← Chib left | 16:10 |
|
rgenito
| ahh ok | 16:10 |
|
kpreid
| No, master is your "empty" branch. You want to checkout -t the fetched copy of your work, creating ANOTHER branch off it which it is ok to mess around with it. | 16:10 |
|
rgenito
| hmm | 16:11 |
| → pheaver joined | 16:11 |
| ← fjfish left | 16:11 |
| ← candybar left | 16:11 |
|
rgenito
| if my branches are *master and remotes/git-svn ... how do i do that ? | 16:11 |
|
| "git fetch ../cbt" worked fine btw :) | 16:11 |
|
kpreid
| Sounds like the fetch didn't do anything useful. OK, we need to set up a named remote. | 16:11 |
| → aantix joined | 16:11 |
|
kpreid
| git remote add cbt ../cbt && git fetch cbt | 16:11 |
|
| Then after that git branch -a should list something like "cbt/master" | 16:12 |
| ← Hounddog left | 16:12 |
| ← aantix left | 16:12 |
| ← alvaro_o left | 16:12 |
|
kpreid
| (there's probably a nice and pretty way to get all this done simpler, but I don't know it so I'm using the basic stuff) | 16:12 |
| ← lfaraone_ left | 16:12 |
| → lfaraone_ joined | 16:13 |
| → aantix joined | 16:13 |
|
rgenito
| ok, but before i do that... | 16:13 |
|
| http://pastie.org/private/c2wjykvokgla0wzgih9q | 16:13 |
|
offby1
| If I do "git stash drop", and then later wish I hadn't ... is there a way (perhaps with "git reflog") to get that stash back? | 16:13 |
|
rgenito
| that's my actual history so you can get an idea. it's short, but shows what i did | 16:13 |
| ← Peste_Bubonica left | 16:13 |
| ← brokenshakles left | 16:13 |
|
rgenito
| offby1: from my understanding, there's no way to get it back :( | 16:13 |
| ← aantix left | 16:14 |
|
kpreid
| I said to use git remote add. | 16:14 |
| ← logik-bomb left | 16:14 |
|
rgenito
| ok will do that now | 16:14 |
|
kpreid
| That way there is a name to store what you fetched under. | 16:14 |
|
rgenito
| ok sweeet | 16:14 |
|
| $ git remote add cbt ../cbt && git fetch cbt | 16:14 |
|
| From ../cbt | 16:14 |
|
| * [new branch] master -> cbt/master | 16:14 |
|
| * [new branch] master.bak -> cbt/master.bak | 16:15 |
| ← stephanmg left | 16:15 |
|
kpreid
| Right, now you can git checkout -t svnrebase cbt/master | 16:15 |
|
| This will create your new branch 'svnrebase' which is derived from 'cbt/master' | 16:15 |
| ← kerrick left | 16:16 |
|
rgenito
| when i do "git checkout -t svnrebase cbt/master" it still says fatal: Missing branch name; try -b | 16:16 |
| ← ShadesofGraylin| left | 16:16 |
| → f0i joined | 16:16 |
|
rgenito
| ah wait, remotes/cbt/master is the branch... let me try specifying that hehe :) | 16:16 |
|
kpreid
| NO | 16:17 |
|
| Don't do that. | 16:17 |
|
rgenito
| ok that didn't work anyways so we're good | 16:17 |
|
| hehe | 16:17 |
|
kpreid
| I was just confusing git branch and git checkout | 16:17 |
| ← pheaver left | 16:17 |
|
rgenito
| ah ok | 16:17 |
| → ipoval joined | 16:17 |
|
rgenito
| sweeet i got it | 16:17 |
|
| "Branch svnrebase set up to track remote branch master from cbt." | 16:17 |
|
kpreid
| git checkout generally assumes you're asking for a branch exists; in this case -b is right. git checkout -b -t svnrebase cbt/master | 16:18 |
| → Peste_Bubonica joined | 16:18 |
|
rgenito
| cool :) from here, i think it is just rebase and then dcommit | 16:19 |
|
kpreid
| Right, but, one last point: | 16:19 |
| ← mikepack left | 16:19 |
|
kpreid
| this is a special case because we're rebasing all the way to the root of 'svnrebase', not just a portion. So instead of the usual syntax, it will be git rebase --onto master --root | 16:20 |
| → mmc joined | 16:20 |
|
| rgenito listening | 16:20 |
|
kpreid
| (ordinarily we would need to specify the "upstream" point which rebase is supposed to snip off history at) | 16:20 |
|
| That's it. | 16:20 |
| ← caddoo left | 16:20 |
| → brokenshakles joined | 16:20 |
| ← pyhead left | 16:20 |
|
rgenito
| so originally it would be master~2 or something, but here... git rebase --onto master --root ? | 16:20 |
|
kpreid
| Um, what do you think master~2 is? | 16:21 |
| ← herdingcat left | 16:21 |
|
rgenito
| ^^ that will rebase from the "root" of master into the current branch? | 16:21 |
|
| i have no idea what master~2 is haha. just got that from a bunch of google results. | 16:21 |
|
kpreid
| No, we are rebasing the current branch onto master. | 16:21 |
|
| The current branch will have more history than it used to. | 16:21 |
|
rgenito
| ahh | 16:21 |
|
kpreid
| --root means that, of the *current* branch, we are taking *all* of it back to the root rather than a more recent fragment. | 16:22 |
|
| master~2 means "master branch two commits ago" and is completely irrelevant here | 16:22 |
|
offby1
| rgenito: bum-mair | 16:22 |
|
rgenito
| holy god that's a lot of changes! | 16:22 |
| ← v0n left | 16:22 |
|
kpreid
| Yep, it's going to list every commit you have, because it is rewriting every one of them. | 16:23 |
|
rgenito
| kpreid: ty for that clarification | 16:23 |
|
kpreid
| That's what rebase *does*, and why it can be dangerous. | 16:23 |
|
rgenito
| http://pastie.org/private/c2wjykvokgla0wzgih9q | 16:23 |
|
| that probably looks about right :) hehe | 16:23 |
| ← yitz_ left | 16:23 |
| → drev1 joined | 16:23 |
|
rgenito
| yes, i can see why now | 16:24 |
|
kpreid
| Yeah, that's a normal rebase. | 16:24 |
|
| Now, here is something you can do to spot check it is good: | 16:24 |
|
| git diff svnrebase cbt/master | 16:24 |
|
| That should produce no output. | 16:24 |
| → ISF joined | 16:24 |
|
rgenito
| correct! no output :) | 16:24 |
|
kpreid
| Congratyerlations. | 16:24 |
|
rgenito
| so quick question before finalizing this... | 16:25 |
|
kpreid
| Now a git svn dcommit should succeed. | 16:25 |
|
rgenito
| when i was on branch svnrebase... | 16:25 |
|
| and then i did "git rebase --onto master --root", | 16:25 |
|
| what is that command translated to english? | 16:25 |
|
| "rebase what is on this branch onto the root of master"? | 16:26 |
|
kpreid
| You understand about the git model of a graph of commits, yes? | 16:26 |
|
rgenito
| no, i dont. i do know what gitk looks like tho. (that comment was just to make you laugh :) ) | 16:26 |
| ← Sweetshark left | 16:26 |
|
rgenito
| at this point, i would love to research/understand that model | 16:26 |
|
| dcommit is doing all sorts of awesome stuff @_@ | 16:27 |
|
kpreid
| Each "commit" object contains two relevant things: a snapshot of the current tree, and one (or more) parent commits. When you commit, the snapshot is saved and what was the head of the branch becomes the parent of the new commit. Got it? | 16:27 |
|
| Furthermore, all of the commits we are interested in here have exactly one parent (more are for merges). | 16:28 |
| → Sweetshark joined | 16:28 |
| ← Sweetshark left | 16:28 |
| → Sweetshark joined | 16:28 |
| ← alem0lars left | 16:28 |
|
rgenito
| so then... | 16:29 |
|
kpreid
| What a rebase does is it takes a series of commits and rewrites them so that the *oldest* commit has a different parent than it used to. (It also treats each one as a diff so that changes made in the parent aren't lost.) | 16:29 |
|
rgenito
| the "snapshot" of the current tree... what does that mean? | 16:29 |
| → hotfloppy joined | 16:29 |
|
kpreid
| All of your files. | 16:29 |
|
rgenito
| oooh, so the latest commit has a copy of all of the raw files | 16:29 |
|
cmn
| each commit has that | 16:30 |
|
rgenito
| that snapshot has the diff information? (so that when you revert or something... it knows how to reverse) | 16:30 |
|
kpreid
| *EVERY* commit contains a copy (well, a reference) to all of the files at the time. | 16:30 |
|
| Diffs are generated by comparing two commits' trees. | 16:30 |
|
cmn
| rgenito: snapshts and diffs are opposites | 16:30 |
|
rgenito
| ahh, ty for the clarification | 16:30 |
|
| cmn yes i understand | 16:30 |
| → dreiss joined | 16:30 |
|
kpreid
| OK, so. Rebase rewrites the oldest commit of interest's parent. What "--onto master" means is explicitly specifying that we want that parent to be the commit which is currently the master branch's head. | 16:31 |
| ← giallu left | 16:31 |
| ← noisebleed left | 16:31 |
|
kpreid
| What "--root" means is that the oldest commit of interest is the *very first* commit on the branch we are rebasing. | 16:31 |
| ← arvind_khadri left | 16:32 |
| → candybar joined | 16:33 |
| → und3f joined | 16:33 |
|
rgenito
| i understand --root, but a little hazy on "--onto master". to re-iterate: "--onto master" means "we want this branch's (svnrebase) parent to be the parent commit on master" ? | 16:33 |
|
kpreid
| Now, rebase doesn't *just* modify parents; it actually takes the diff from each commit and its parent and sequentially *applies* them onto the new base. (that's what all the "applying" lines are.) This way, the result of rebase combines the new parent with the work you are rebasing. In this particular case, master contained no files, so the result is just the same as the original. | 16:33 |
|
| rgenito: not "the parent commit on master" but "the commit which is currently master" | 16:33 |
| ← tonesfrommars left | 16:33 |
|
rgenito
| ahh | 16:33 |
| ← andrew_ left | 16:33 |
| ← meisth0th left | 16:33 |
| ← CodeVision left | 16:34 |
| ← ajpiano left | 16:34 |
| → gchristensen joined | 16:34 |
| → abetaha joined | 16:34 |
| → hyperair joined | 16:35 |
| → abetaha_ joined | 16:35 |
|
rgenito
| kpreid: you kick ass :) | 16:35 |
|
| where can i find more information on this? | 16:35 |
| ← jgoss left | 16:35 |
|
rgenito
| any git books come to mind? or online resources that explain this? | 16:35 |
|
| ...probably git's official site :) | 16:35 |
| ← afuentes left | 16:36 |
| ← tr-808 left | 16:36 |
|
kpreid
| I didn't learn git that way, so I can't say, but the channel has its official recommendations | 16:36 |
|
| !book | 16:36 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !designers !gitt !vcbe and !parable | 16:36 |
|
kpreid
| There is no official web site for git. | 16:36 |
| ← dreiss left | 16:36 |
| → Sky[x] joined | 16:36 |
| ← ill1cit left | 16:37 |
|
kpreid
| It's all decentralized and stuff, don'tchaknow. | 16:37 |
| → kerrick joined | 16:37 |
| ← ipoval left | 16:37 |
|
rgenito
| hehe | 16:37 |
| → cccaldas joined | 16:37 |
| → ill1cit joined | 16:37 |
| → ajpiano joined | 16:37 |
| → lonewulf` joined | 16:38 |
| → jgoss joined | 16:38 |
| ← jgoss left | 16:38 |
| → jgoss joined | 16:38 |
| → bglusman joined | 16:38 |
| ← rapha left | 16:39 |
| ← lapistano left | 16:39 |
| → booginga joined | 16:39 |
| → lapistano joined | 16:39 |
| ← abetaha left | 16:39 |
| ← cccaldas left | 16:39 |
|
rgenito
| thanks again! i greatly appreciate all of the help! :D | 16:39 |
| ← BarryCrayon left | 16:40 |
| ← lopin left | 16:42 |
| ← g0bl1n left | 16:44 |
| → CodeVision joined | 16:44 |
| → superdmp joined | 16:44 |
| ← kerrick left | 16:44 |
|
superdmp
| what does: previous rebase directory /home/daniele/images-2012-apr-17/django-cms/.git/rebase-apply still exists but mbox given. mean? | 16:44 |
| → apok joined | 16:44 |
| → neurodrone joined | 16:45 |
| ← fleetfox left | 16:46 |
| → mrkuchbhi joined | 16:46 |
| ← mrkuchbhi left | 16:46 |
| ← bglusman left | 16:47 |
| → beneggett joined | 16:47 |
| → raatiniemi joined | 16:48 |
| ← achadwick left | 16:48 |
|
bremner
| superdmp: at a guess, you're in the middle of a rebase already? | 16:48 |
|
superdmp
| bremner: I simply don't know! | 16:49 |
|
| I have a patch file, that want to apply with: git am -3 1117.patch | 16:49 |
|
| I did this a few days ago, but the patch has been updatd since then | 16:49 |
| → Dragooon joined | 16:50 |
| → mrkuchbhi joined | 16:50 |
|
hotfloppy
| ohcibi, thanks about the SherlockHolmes.. fixed! :D | 16:50 |
|
bremner
| superdmp: what does "git status report" | 16:50 |
|
| err, "git status" report | 16:51 |
| → thiago joined | 16:51 |
|
mrkuchbhi
| hi .. i just did a git rm -rf dirname | 16:51 |
|
| is there someway to revert that ?! | 16:51 |
|
cmn
| mrkuchbhi: do what git status says | 16:51 |
|
ohcibi
| hotfloppy: good! 8-) | 16:51 |
|
superdmp
| bremner: dpaste | 16:51 |
|
| bremner: I'll try again http://dpaste.com/753412/ | 16:52 |
| → mishok13 joined | 16:52 |
| ← robbyoconnor left | 16:52 |
|
bremner
| you are in the middle of something, because you have unmerged paths | 16:52 |
|
superdmp
| mm | 16:52 |
| → robbyoconnor joined | 16:53 |
|
superdmp
| bremner: I will try to unravel myself and get back somewhere sensible | 16:53 |
| → Shusshu joined | 16:53 |
|
mrkuchbhi
| cmn: the prob is... i added a new directory using `git add dirname` ... then realized that i only wanted a few files from it ...so without committing i did `git rm -rf dirname` ... and now i cant find the directory. ...`git status` does not show the directory or the files from that directory in untracked files or in changed files | 16:54 |
| → sirpistache joined | 16:56 |
| → lacrymology joined | 16:56 |
| → docgnome joined | 16:56 |
|
lacrymology
| if I do git push --all and I have a number of remotes, each tracking different branches, will them be respected? | 16:57 |
|
PerlJam
| mrkuchbhi: well ... you removed them. | 16:57 |
| ← lonewulftp left | 16:57 |
| ← Poapfel left | 16:58 |
|
docgnome
| i have a submodule in a submodule and it used to work fine but with 1.7.10 i can no longer git submodule update... | 16:58 |
| → Poapfel joined | 16:58 |
| → gtrak` joined | 16:59 |
| ← gtrak left | 16:59 |
|
docgnome
| i get... fatal: Not a git repository: ../../../../../../../../../lxc/cetusa/rootfs/home/docgnome/crm/.git/modules/vendor/plugins/phrails-paperclip/modules/lib/cloud/rsc | 16:59 |
| → bglusman joined | 17:00 |
|
mrkuchbhi
| PerlJam: so git rm removes it from disk as well? | 17:00 |
|
bremner
| unless you say --cached | 17:00 |
|
PerlJam
| mrkuchbhi: "Remove files from the index, or from the working tree and the index." You did the latter. | 17:01 |
|
mrkuchbhi
| :( | 17:01 |
|
| okay..thanks | 17:01 |
| → phishy joined | 17:01 |
| → Araxia_ joined | 17:01 |
| → tr-808 joined | 17:01 |
| ← bullicon left | 17:02 |
| ← phishy left | 17:02 |
| ← hyperair left | 17:03 |
| → ripero joined | 17:03 |
| ← shruggar left | 17:04 |
| → BBBThunda joined | 17:04 |
| ← koo4 left | 17:04 |
| → daethorian joined | 17:06 |
| ← tr-808 left | 17:06 |
| → kerrick joined | 17:06 |
| ← dtang_ left | 17:07 |
| ← klj613 left | 17:07 |
| → dtang joined | 17:07 |
| ← kerrick left | 17:08 |
| → kerrick joined | 17:09 |
| ← sgronblo left | 17:09 |
| → ProLoser|Work joined | 17:09 |
| ← cvanes left | 17:09 |
| → Praise- joined | 17:09 |
| ← ProLoser|Work left | 17:09 |
| ← kerrick left | 17:10 |
| ← Praise left | 17:10 |
| → kerrick joined | 17:10 |
|
ripero
| Hi; I forgot to add a file a few commits ago; is it possible to add it, keeping all commit timestamps, using some git filter-branch magic? | 17:12 |
| ← Lord_DeathMatch left | 17:12 |
| → pheaver joined | 17:13 |
| ← TrahDivad left | 17:13 |
| ← brentratliff left | 17:13 |
| → luxurymode joined | 17:13 |
| ← angelsl left | 17:13 |
| ← dark_element left | 17:14 |
| ← fisted_ left | 17:14 |
| → osmosis joined | 17:14 |
| → TheJH joined | 17:15 |
|
cmn
| mrkuchbhi: if they're cached, looking though git-fsck's dangling blobs can help you get the contents back | 17:16 |
|
| but it's a lot of work | 17:16 |
| → goshawk joined | 17:16 |
|
cmn
| s/cached/staged/ | 17:16 |
| → juvenal joined | 17:16 |
|
m1sc
| ripero: you can do this by interactive rebasing -- commit time won't be changed until you choose to do so | 17:17 |
| → koo4 joined | 17:17 |
| ← juanfer left | 17:17 |
|
m1sc
| ripero: !rewrite | 17:17 |
|
gitinfo
| ripero: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 17:17 |
| ← Shusshu left | 17:17 |
| ← hadees left | 17:18 |
| neersighted → neersighted|AFK | 17:18 |
| → fisted joined | 17:18 |
| → dreiss joined | 17:19 |
| → fuzzybunny69y joined | 17:19 |
| ← kerrick left | 17:20 |
| → acrocity joined | 17:20 |
| neersighted|AFK → neersighted | 17:20 |
| → markus_ joined | 17:20 |
| ← h0bbit left | 17:21 |
| ← zinjacoder left | 17:23 |
| → gusnan joined | 17:23 |
| → kerrick joined | 17:24 |
| ← Superlokkus left | 17:24 |
| ← cortana2 left | 17:24 |
| ← kerrick left | 17:25 |
| ← juvenal left | 17:25 |
| → khmarbaise joined | 17:26 |
| → kerrick joined | 17:27 |
| ← kerrick left | 17:27 |
| ← ipalaus left | 17:27 |
| → juvenal joined | 17:27 |
| → kerrick joined | 17:28 |
| ← markus_ left | 17:28 |
| → Superlokkus joined | 17:28 |
| → v0n joined | 17:29 |
| neersighted → neersighted|AFK | 17:29 |
| ← kerrick left | 17:29 |
| → hadees joined | 17:29 |
| neersighted|AFK → neersighted | 17:30 |
| → alberto56 joined | 17:30 |
| → AeroNotix joined | 17:30 |
| → tworkin joined | 17:30 |
|
tworkin
| !submodule_rm | 17:30 |
|
gitinfo
| [!submodules_rm] You want to delete submodules? Excellent choice! All commands are in the superproject. Edit/delete .gitmodules to remove the submodule. Then `rm -rf submodulepath; git rm -f --cached submodulepath; git commit -am "Removed submodules!"` Inspect .git/config for "submodule" entries to remove. Inspect .git/modules for caches to remove "!gitslave" or "!subtree" (type them!) might be alternatives | 17:30 |
|
tworkin
| hmmm, doesnt address the case where `git submodule add` failed in a way that left a .gitmodules entry but no folder | 17:31 |
| ← marcogmonteiro left | 17:32 |
| ← mischat left | 17:32 |
|
cmn
| skip that part | 17:32 |
| ← alberto56 left | 17:32 |
|
cmn
| do the steps that don't involve removing that directory from disc | 17:33 |
|
ripero
| m1sc: ok, thanks... but then how do I keep the old CommitDate when committing? | 17:33 |
| → kerrick joined | 17:34 |
| ← mdhopkins left | 17:36 |
| ← Spockz left | 17:36 |
| → nbari joined | 17:38 |
| ← nbari left | 17:38 |
| → nbari joined | 17:38 |
| ← daethorian left | 17:38 |
| → edude03 joined | 17:39 |
|
m1sc
| ripero: you don't have to keep it. just get familiar with interactive rebasing and you'll see (backup your repo, start playing..) | 17:41 |
|
| ripero: !book will help | 17:41 |
|
gitinfo
| ripero: There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !designers !gitt !vcbe and !parable | 17:41 |
|
nbari
| hi all, inside a branch I did a merge branchX but that deleted a directory created from branchA, now when I do a merge branchA for trying to restore the delated files, I just get an Already up-to-date. message, but the directory is not pulled | 17:41 |
|
| any idea of how to refresh or re-merge so that I can get the directories ? | 17:41 |
| ← gandhijee_ left | 17:42 |
|
bremner
| nbari: you could checkout the directory from the other branch and make a new commit. | 17:43 |
| → FreeArtMan joined | 17:43 |
| → Dave^| joined | 17:43 |
| ← peppyheppy left | 17:44 |
| ← Robbo_ left | 17:44 |
|
ripero
| m1sc : ok, so I did a first interactive rebase, and then a second one with --committer-date-is-author-date ; | 17:46 |
| → ConstantineXVI joined | 17:49 |
|
nbari
| bremner: when doing the git checkout branchA I don't get resoted the dir | 17:49 |
| ← kerrick left | 17:50 |
|
bremner
| nbari: see man git checkout, with a path | 17:50 |
|
gitinfo
| nbari: the git-checkout manpage is available at http://git-scm.com/docs/git-checkout.html | 17:50 |
| → ryez_ joined | 17:51 |
| ← ryez_ left | 17:51 |
| → ryez_ joined | 17:51 |
|
nbari
| i created another file on the branchX and later tryied to merge it | 17:51 |
| → Tinti joined | 17:51 |
|
nbari
| that worked but the other files still not been restored | 17:52 |
|
| like if the merge that deleted the files had a priority | 17:52 |
| → tr-808 joined | 17:52 |
| → kerrick joined | 17:52 |
| → daethorian joined | 17:55 |
| → edlothiol joined | 17:55 |
| → AlbireoX`Laptop joined | 17:56 |
| ← v0n left | 17:56 |
| ← tr-808 left | 17:57 |
| → bolt joined | 17:57 |
| ← kerrick left | 17:57 |
| → freeed joined | 17:57 |
| → Spockz joined | 17:57 |
| → plasticboy joined | 17:58 |
| → bullicon joined | 17:58 |
| → Eridius joined | 17:59 |
| ← awx left | 18:00 |
| ← hellopat left | 18:01 |
| → harshpb joined | 18:01 |
| → peppyheppy joined | 18:02 |
|
alex88
| i've found a webapp similar to github, someone knows the name? | 18:04 |
| ← bubbles10101 left | 18:06 |
| ← _huoxito left | 18:06 |
| ← JEEB left | 18:06 |
| ← tworkin left | 18:06 |
| → bubbles10101 joined | 18:07 |
| ← BBBThunda left | 18:08 |
|
EugeneKay
| !github_cheap | 18:08 |
|
gitinfo
| [!host_gui] If you want to mange your hosted git repos through a web GUI, you have a few options: !gitlab !gitorious and !gerrit are the big ones. Keep in mind that all of these are less flexible and more resource-intensive than !gitolite | 18:08 |
| ← jgoss left | 18:09 |
| → kerrick joined | 18:10 |
| ← juvenal left | 18:11 |
|
offby1
| rgenito: FYI -- http://stackoverflow.com/questions/89332/recover-dropped-stash-in-git | 18:11 |
| → hunterp joined | 18:12 |
| → jcromartie joined | 18:12 |
|
jcromartie
| Is this documentation wrong? http://git-scm.com/book/en/Git-Tools-Submodules | 18:12 |
|
hunterp
| I checked out the clone at a revision. However, none of the files changed. why ? | 18:12 |
|
jcromartie
| I added a submodule to my repo, but it's empty | 18:13 |
| ← ripero left | 18:13 |
| → alvaro_o joined | 18:14 |
| → HyperNerdV2 joined | 18:14 |
| ← alvaro_o left | 18:14 |
|
jcromartie
| there are so many things wrong with this tut | 18:14 |
|
| it's a shame that it's the first Google result! | 18:14 |
| ← pheaver left | 18:14 |
| ← raatiniemi left | 18:14 |
|
hunterp
| jcromartie: yes | 18:15 |
|
| I checked out the clone at a revision. However, none of the files changed. why ? | 18:15 |
| → pheaver joined | 18:15 |
| → hgb joined | 18:15 |
| → juvenal joined | 18:15 |
| → adhawkins joined | 18:16 |
|
jcromartie
| hunterp: what clone? none of which files? | 18:16 |
|
hgb
| Hi. I have this setup where we have a subversion server, a common git-svn repo which I've cloned, and where I use git svn dcommit to commit (so asynchronously, in a way), but 'git fetch/pull --rebase' to update from upstream. | 18:16 |
|
hunterp
| jcromartie: when I git checkout, my expectation is that my clone will "rewind" in time to 4 checkouts ago. Why has it not ? | 18:17 |
|
hgb
| Now, somehow there was a fuckup during my dcommit, and it failed. I did a git svn rebase (stupid), which seemed to fix things, but now my remotes/mirror/trunk (upstream trunk) is wrong. It's four commits (the four I dcommited) too old. | 18:17 |
|
| Any ideas how to fix? | 18:17 |
| → tr-808 joined | 18:18 |
|
hunterp
| hgb: cp -a your repo, and fuck around with one | 18:18 |
|
jcromartie
| hunterp: what is your checkout command, exactly | 18:18 |
| ← daethorian left | 18:18 |
|
hunterp
| git checkout <rev> | 18:18 |
| → macmartine joined | 18:18 |
|
hgb
| hunterp: I suppose that's an alternative.. However, now that I look at it, it appears that my problem might not be that my local repo is screwed, but that the common git-svn ("read-upstream") is... | 18:19 |
|
| Which is worse, I suppose... | 18:19 |
|
hunterp
| hgb: minimize your work to your goal. | 18:19 |
|
hgb
| Sounds ideal. | 18:20 |
|
jcromartie
| hunterp: that will give you a detached head at that commit | 18:20 |
| → tworkin joined | 18:20 |
|
jcromartie
| hunterp: what are you expecting, exactly? | 18:21 |
|
| you probably want to reset | 18:21 |
|
| unless you want to create a new branch at that revision | 18:21 |
|
| in which case you should use: git checkout -b my-temp-branch <rev> | 18:21 |
| → v0n joined | 18:21 |
|
hunterp
| jcromartie: I see. thank you | 18:21 |
|
jcromartie
| but otherwise, if you really just want to reset a branch to the revision, use: git reset <revision> | 18:22 |
| → com4 joined | 18:22 |
|
hunterp
| jcromartie: I reset, but nothing happened. do i need to commit after reset? | 18:22 |
| ← tr-808 left | 18:23 |
|
hgb
| hunterp: It seems I have a git-svn repo to unfuck, a repo I don't really think I have any write access to... Oh well, someone will be in in the morning to assist.. | 18:23 |
|
jcromartie
| I think you've got a mess on your hands… what is your starting point? Are you sure you didn't already checkout that commit as a detached head? | 18:23 |
|
hunterp
| jcromartie: i don';t care about the repo. the moment I get my files, I'm no longer git'ing this clone | 18:24 |
| ← oscar_ left | 18:24 |
| → tr-808 joined | 18:24 |
|
jcromartie
| OK so do you have a fresh clone? | 18:24 |
|
| is it a public repo I can look at, BTW? | 18:24 |
| ← Poapfel left | 18:24 |
| ← tatsuya_o left | 18:24 |
| → tatsuya_o joined | 18:25 |
| ← v0n left | 18:25 |
| → rphillips joined | 18:25 |
| ← vmiklos left | 18:26 |
| → v0n joined | 18:26 |
| → thorie_ joined | 18:26 |
| → hydrozen joined | 18:27 |
| → Poapfel joined | 18:27 |
| ← hotfloppy left | 18:27 |
| ← tr-808 left | 18:29 |
|
hunterp
| jcromartie: http://code.google.com/p/marketbilling/source/list | 18:29 |
| → Rotwang joined | 18:29 |
| ← optixx left | 18:29 |
| ← tatsuya_o left | 18:29 |
|
jcromartie
| OK now which commit do you want | 18:29 |
|
hunterp
| jcromartie: 6a | 18:29 |
| ← Rotwang left | 18:29 |
|
hunterp
| jcromartie: aka the first | 18:30 |
|
jcromartie
| lolwut? | 18:30 |
|
| THAT'S WHAT YOU HAVE! | 18:30 |
|
hunterp
| no | 18:30 |
| → vmiklos joined | 18:30 |
| → Rotwang joined | 18:30 |
| ← Rotwang left | 18:31 |
| ← harshpb left | 18:31 |
|
jcromartie
| yes | 18:31 |
|
| there are 4 commits in the entire repo, on a single branch | 18:31 |
| → Rotwang joined | 18:31 |
| ← pandeiro left | 18:31 |
| ← marc_kdab left | 18:31 |
|
hunterp
| jcromartie: no, i confirmed that the file AndroidManifest.xml has "singleTask" in the last (most current) revision, and lacks it in the first (6a) revision | 18:31 |
|
jcromartie
| when you clone the repo, you automatically get the default branch (master) at the latest commit (6a669ef39c) | 18:31 |
| → optixx joined | 18:31 |
| ← Rotwang left | 18:32 |
|
hunterp
| jcromartie: the latest commit is not 6a | 18:32 |
|
| its ef | 18:32 |
| → nb joined | 18:32 |
|
jcromartie
| right sorry | 18:32 |
| ← theCole_ left | 18:32 |
|
jcromartie
| OK so you want the file at that state | 18:32 |
| → Rotwang joined | 18:32 |
| → sdeboey joined | 18:33 |
| → whitman joined | 18:33 |
|
jcromartie
| that's the tip of the branch though | 18:33 |
|
hunterp
| jcromartie: i want the entire repo at 6a | 18:33 |
| → hyperair joined | 18:34 |
| ← Rotwang left | 18:34 |
| → oojacoboo joined | 18:34 |
|
jcromartie
| I'm sorry no, 6a is the latest | 18:34 |
|
| just run "git log" and see for yourself | 18:34 |
|
hunterp
| jcromartie: no, 6a is march, ef is ,may | 18:34 |
| → laen0k joined | 18:35 |
|
jcromartie
| what's the full SHA | 18:35 |
|
| 6a669ef39cc1388164f12cfb53b54699af388a5f is Mar 22 2012 | 18:35 |
|
hunterp
| correct | 18:35 |
|
jcromartie
| ef5e96db315dfbf8f9557565cb4ad572d95181ea is Apr 5 2011 | 18:35 |
|
hunterp
| that is what I need | 18:35 |
|
| I need to go back to march | 18:35 |
| ← Poapfel left | 18:36 |
|
jcromartie
| OK then: git checkout -b march 6a669ef39cc1388164f12 | 18:36 |
|
| then you'll be in a new branch at that commit | 18:36 |
| → beastd joined | 18:36 |
|
jcromartie
| but if we're looking at literally the *same* repo, then that is the latest commit anyway… but I have a feeling you are working on a private copy already with additional commits right? | 18:36 |
|
hunterp
| jcromartie: no, singleTask is still in the manifest, no files have changes | 18:36 |
|
| jcromartie: no CLEAN 100% clean | 18:36 |
|
jcromartie
| so you just cloned this repo | 18:37 |
| → ProLoser|Work joined | 18:37 |
|
jcromartie
| from Google code | 18:37 |
|
hunterp
| yes | 18:37 |
|
ProLoser|Work
| i can't figure out how to get sublime to ignore the git folder | 18:37 |
| → JEEB joined | 18:37 |
|
hunterp
| I did git checkout -b march 6a669ef39cc1388164f12 and no files have changed. WHY ? | 18:37 |
| ← gavin_huang left | 18:38 |
| ← kerrick left | 18:38 |
|
jcromartie
| because it's ALREADY THE NEWEST commit! | 18:38 |
| → sontek_ joined | 18:38 |
|
jcromartie
| OK tell me | 18:38 |
|
| in your clone | 18:38 |
| → monk12 joined | 18:38 |
|
hunterp
| :) | 18:38 |
|
jcromartie
| run this: git log --oneline | 18:38 |
|
| and paste somewhere please | 18:38 |
|
hunterp
| jcromartie: http://pastebin.com/3hXgjZcf | 18:39 |
|
monk12
| hello all, I just cloned a git repository and i would like to 'merge' in a pull request. not sure how to use git pull on the command line. all i know is it is pull request #85 in the project and a long commit number. | 18:39 |
|
jcromartie
| OK yes, so you see 6a669ef is the latest | 18:39 |
|
monk12
| (I am very new to git.) | 18:40 |
|
jcromartie
| and "singleTask" was added in 7638aa8 | 18:40 |
|
| which is a *parent* of 6a669ef | 18:40 |
|
hunterp
| jcromartie: right and 76 is in april and 6a is march. I am still not in march, i am in april | 18:40 |
|
jcromartie
| so *of course* it's "still there" in 6a669ef, and *of course* nothing has changed because 6a669ef IS THE CURRENT HEAD OF master ANYWAY! | 18:40 |
|
hunterp
| i need to get to march | 18:40 |
|
jcromartie
| you are not looking at the year | 18:40 |
|
| as I said | 18:41 |
|
| 2011 vs 2012 | 18:41 |
|
hunterp
| 6a == march == "no singleTask" | 18:41 |
|
| jcromartie: appreciate it. I see now. I am the dyslexic one :) | 18:41 |
| → oscar_ joined | 18:41 |
|
jcromartie
| HOLY SHIT | 18:41 |
|
| OK great | 18:41 |
| ← v0n left | 18:41 |
|
jcromartie
| sorry | 18:41 |
| ← barrbrain left | 18:41 |
|
PerlJam
| jcromartie++ (patience :) | 18:42 |
|
oojacoboo
| hey, if I had files that were under version control then I add the master folder to .gitignore, how do I remove that folder from version control so it's not part of the repo anymore? | 18:42 |
|
hunterp
| jcromartie++ | 18:42 |
|
Vinnie_win
| can I cherry-pick a range of commits? | 18:42 |
|
hunterp
| PerlJam++ | 18:42 |
|
jcromartie
| oojacoboo: git rm --cached | 18:42 |
|
oojacoboo
| jcromartie, that sounds so simple, is that it? | 18:42 |
|
jcromartie
| yup | 18:43 |
| → zarac joined | 18:43 |
|
oojacoboo
| where would I run that as well if I want to preserve my local files? | 18:43 |
|
PerlJam
| monk12: You're talking about github pull requests? They a help page that explains how to do it. | 18:43 |
|
jcromartie
| it will be ignored, and then removed from the index | 18:43 |
| → v0n joined | 18:43 |
|
jcromartie
| oojacoboo: that will preserve your local files | 18:43 |
|
oojacoboo
| ah ok, so it just removes the index | 18:43 |
|
| thanks jcromartie | 18:43 |
| → tr-808 joined | 18:43 |
| ← linusoleander left | 18:44 |
| → kerrick joined | 18:44 |
| → mcluskydodallas joined | 18:44 |
| ← Lummoxx left | 18:44 |
|
zarac
| Hey folks! I just read the guide for mercurial. They make use of clone quite a bit for features etc. Is this normal in git too or do branches cover the good-you-get-out-of cloning? | 18:45 |
| ← spaceonline left | 18:45 |
| → g0bl1n joined | 18:45 |
| → h0bbit joined | 18:45 |
|
bremner
| branches | 18:45 |
| → raatiniemi joined | 18:45 |
|
zarac
| Thanks! ; ) | 18:45 |
| → EtgarDizz joined | 18:45 |
| gitinfo set mode: +v | 18:46 |
|
EtgarDizz
| hi guys | 18:46 |
|
gitinfo
| EtgarDizz: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 18:46 |
|
zarac
| Why would anyone use mercurial over git? | 18:46 |
| ← peppyheppy left | 18:46 |
|
PerlJam
| zarac: dunno. | 18:46 |
|
EtgarDizz
| I have a local repository, but I'd like to push to it as another user on this computer | 18:46 |
|
bremner
| why don't you ask them? | 18:46 |
|
zarac
| Because they'll lie ; ) | 18:46 |
| ← blacktulip left | 18:46 |
|
EtgarDizz
| so I'm logged in as user a, but want to push as user b | 18:47 |
|
bremner
| zarac: mercurial users love nothing better than to talk about how much better hg is than git. | 18:47 |
|
PerlJam
| EtgarDizz: you probably want to use the ssh protocol | 18:47 |
|
zarac
| EtgarDizz: Perhaps you can just add user@ before your host | 18:47 |
|
EtgarDizz
| I've tried, it just hangs! | 18:47 |
|
zarac
| bremner: ; ) | 18:47 |
|
EtgarDizz
| I've tried to change the push remote def into ssh://b@domain.com:port/home/a/repo | 18:48 |
|
| this doesn't work | 18:48 |
| → Lummoxx joined | 18:48 |
|
zarac
| I'll just stick to git. I've had few problems with it (and those were of course due to ignorance). | 18:48 |
| ← Sigma left | 18:48 |
| ← kerrick left | 18:48 |
| ← tr-808 left | 18:48 |
|
EtgarDizz
| sorry - ssh://b@domain.com:port/home/a/repo | 18:48 |
|
zarac
| EtgarDizz: I'm not sure that's how you specify port. The path usually comes directly after the colon. | 18:49 |
|
PerlJam
| zarac: when faced with choices of hg, bzr, or git, I chose git because it fit my brain best. I'm sure for other people hg or bzr fit their brain. | 18:49 |
|
EtgarDizz
| this is how I've cloned it to another machine... | 18:49 |
| → tr-808 joined | 18:49 |
|
EtgarDizz
| git clone ssh://user@domain: port/path/to/repo | 18:49 |
|
zarac
| PerlJam: Thanks. It fits my brain well too. : ) | 18:49 |
|
bremner
| EtgarDizz: you could make an ssh host alias with the user and port | 18:49 |
| ← hunterp left | 18:49 |
|
EtgarDizz
| bremner, how's that done? | 18:49 |
|
monk12
| PerlJam, k think i found some good blog on github site explaining. | 18:50 |
|
zarac
| EtgarDizz: Is it on another port other than 21? Otherwise just do ssh://a@domain.com:/home/a/repo (b cannot push to a) | 18:50 |
| ← adhawkins left | 18:50 |
|
EtgarDizz
| bremner, I should also note that when trying to use the EXACT same command from another machine, there's no problem. just when trying to use it on the machine where the repo resides, it hangs... | 18:50 |
|
| yes it's on another port | 18:50 |
| ← ISF left | 18:50 |
|
zarac
| hmm | 18:51 |
|
bremner
| well, probably a question of ssh setup on that machine | 18:51 |
|
EtgarDizz
| what you mean "setup"? the ssh works fine when I try to use is remotely | 18:52 |
| madsy_ → Madsy | 18:52 |
|
EtgarDizz
| is there a chance it's "blocked" for local use? | 18:52 |
|
bremner
| do you have the right key locally? | 18:52 |
| → replore joined | 18:53 |
|
EtgarDizz
| bremner, I'm not even being asked for a key... it just hangs after I hit enter | 18:53 |
| → kerrick joined | 18:53 |
|
yrlnry
| Suppose I have made a bunch of commits with subjects like 'fixup! ...'. I want to squash these into the commts that they fix up. I can do git-rebase -i --autosquash, which opens the editor to edit the rebase plan, and then quit the editor without making any changes. Is there a way to skip the pointless editor step? | 18:53 |
|
bremner
| can you ssh directly without git? | 18:53 |
|
yrlnry
| git-rebase does not seem to have a --no-edit option. | 18:53 |
|
EtgarDizz
| you mean locally? | 18:53 |
|
bremner
| yes | 18:53 |
| → mdhopkins joined | 18:54 |
|
EtgarDizz
| damn! | 18:54 |
|
| no, I can't | 18:54 |
|
bremner
| good news, it's not a git problem ;) | 18:54 |
|
EtgarDizz
| ok :) where should I direct this question now?... | 18:54 |
|
bremner
| !ssh | 18:55 |
|
gitinfo
| Please use SSH to talk to remote repos. http:// and git:// are completely unsecured. You can try to configure "smart" https:// access, but it is usually much easier to just stick with ssh:// | 18:55 |
|
bremner
| hmm. | 18:55 |
| ← freeed left | 18:55 |
|
EtgarDizz
| !ssh | 18:55 |
|
gitinfo
| Please use SSH to talk to remote repos. http:// and git:// are completely unsecured. You can try to configure "smart" https:// access, but it is usually much easier to just stick with ssh:// | 18:55 |
|
EtgarDizz
| a ha | 18:55 |
|
bremner
| it has the sound of a firewall problem | 18:55 |
| → juanfer joined | 18:56 |
| → shruggar joined | 18:58 |
| ← marthinal left | 18:58 |
| ← Dulak left | 18:58 |
| → peppyheppy joined | 18:59 |
| ← FreeArtMan left | 19:00 |
| → jgoss joined | 19:01 |
|
monk12
| okay to use 'git pull' to pull in someone's changes i see on many blogs/tutorial i need to know the branch_name (to do 'git pull http:..blah.git branch_name'). i dunno how to figure that out by looking at this page: https://github.com/digitalBush/jquery.maskedinput/pull/85 | 19:02 |
|
bremner
| monk12: use git fetch | 19:02 |
| ← dv310p3r left | 19:02 |
|
osmosis
| i am trying to git push origin to put my locally created branch on the server, I get the error ! [rejected] master -> master (non-fast-forward) | 19:03 |
|
monk12
| k i shall try that. just assumed needed 'git pull' | 19:03 |
| → mneorr_ joined | 19:03 |
| → dv310p3r joined | 19:04 |
| ← docgnome left | 19:04 |
|
EtgarDizz
| osmosis, what command are you typing? | 19:05 |
| → freeed joined | 19:05 |
|
osmosis
| EtgarDizz, git push origin | 19:06 |
| ← mneorr left | 19:06 |
|
EtgarDizz
| osmosis, unless you've configured your new branch to be the default branch to act upon, you need to add the branch name in the command. so first "git status" to make sure you're on the new [branchname], and the "git push origin [branchname]" | 19:07 |
|
rgenito
| after doing, "git svn fetch" on a local branch that is tracking a remote svn repository.... | 19:09 |
|
| ...how do i merge those changes into my local branch? | 19:09 |
| ← chrisdev left | 19:10 |
|
osmosis
| EtgarDizz, thx | 19:11 |
|
EtgarDizz
| osmosis, np | 19:11 |
| ← rgsteele left | 19:11 |
| ← raatiniemi left | 19:12 |
| → dhruvasagar joined | 19:13 |
| ← bitkiller left | 19:15 |
| ← dr_lepper left | 19:16 |
| → chrisdev joined | 19:17 |
| ← replore left | 19:18 |
| → tqmz joined | 19:19 |
| ← Lgb left | 19:20 |
| ← beneggett left | 19:21 |
| ← p3rror left | 19:21 |
| ← aristidesfl left | 19:21 |
| → Lgb joined | 19:22 |
| → Codif joined | 19:22 |
| → texasmynsted joined | 19:22 |
| ← macmartine left | 19:23 |
| → fayimora joined | 19:24 |
| ← Peste_Bubonica left | 19:24 |
| ← dhruvasagar left | 19:26 |
|
texasmynsted
| what do I do with a corrupt lose object? I have one that is preventing me from gc and from repack, etc. If I git cat-file -p , I just see author, committer etc. I do not know what the file is. | 19:27 |
| ← maletor left | 19:27 |
| → jcapinc joined | 19:27 |
| → j416 joined | 19:28 |
|
texasmynsted
| if its corrupt seems like I should be able to re-fetch it from the origin/master somehome right? | 19:28 |
| ← gusnan left | 19:28 |
| → Peste_Bubonica joined | 19:28 |
| → ColKurtz joined | 19:28 |
|
cbreak
| move it out of the way | 19:28 |
|
texasmynsted
| how? | 19:28 |
|
cbreak
| mv | 19:28 |
|
jcapinc
| ok, so how am I supposed to revert back to a commit temporarily in such a way that I can go back to the tip | 19:28 |
|
cbreak
| or mouse click & drag if you like | 19:28 |
|
texasmynsted
| lol | 19:28 |
| ← Codif left | 19:29 |
|
texasmynsted
| so I just mv that file and it should get replaced? | 19:29 |
|
cbreak
| jcapinc: git checkout -b <tmpbranchname> <sha> | 19:29 |
|
| texasmynsted: I don't think it'd get replaced | 19:29 |
| → JohnBat26 joined | 19:29 |
| ← peppyheppy left | 19:29 |
|
cbreak
| but you would get a different error, maybe telling you what that blob was for | 19:29 |
| ← EugeneKay left | 19:29 |
|
cbreak
| which then allows you to easier get a working version | 19:30 |
|
texasmynsted
| can I see the content? | 19:30 |
| ← khmarbaise left | 19:30 |
|
texasmynsted
| When view it with vi, it looks binary | 19:30 |
|
cbreak
| it's compressed | 19:30 |
|
jcapinc
| thankyou, cbreak | 19:30 |
|
cbreak
| git cat-file -p shahere would show it | 19:30 |
|
| but since it's corrupted, maybe not | 19:31 |
|
texasmynsted
| I did that but it is not something that makes sense | 19:31 |
| ← mishok13 left | 19:31 |
|
texasmynsted
| ok moved it and now git gc | 19:31 |
| → EugeneKay joined | 19:32 |
|
cbreak
| I would not gc | 19:32 |
|
| you should do a git fsck | 19:32 |
|
texasmynsted
| lol, now and error that it can not be read | 19:32 |
|
| I keep having stuff like this happen. How can so many files get corrupted all the time? | 19:32 |
| ← ToBeFree left | 19:33 |
| → todd_dsm joined | 19:33 |
| ← alex88 left | 19:33 |
| → khmarbaise joined | 19:33 |
|
texasmynsted
| hmm. Looks like the file was a "missing commit" | 19:33 |
| ← koo4 left | 19:34 |
|
texasmynsted
| this does not sound good, as I have two dangling commits, a dangling blob, a dangling tree and that missing commit. | 19:34 |
| → p3rror joined | 19:35 |
|
cbreak
| texasmynsted: dangling things don't matter much | 19:35 |
| → bitkiller joined | 19:35 |
|
texasmynsted
| ok good | 19:35 |
|
cbreak
| just mean some history rewriting happened or so | 19:35 |
| ← EtgarDizz left | 19:35 |
|
cbreak
| if you have a lot of corruption, maybe your HDD or SSD is deffective | 19:35 |
|
| or a cabling/memory issue | 19:35 |
| → shreya joined | 19:35 |
|
texasmynsted
| ok | 19:35 |
|
cbreak
| my mac book pro is in repair since two weeks for a defective ssd :( | 19:35 |
|
texasmynsted
| yikes | 19:36 |
|
cbreak
| anyway, once you found the missing thing, think: do you have something locally that you want to keep? Unpushed commits or so? | 19:36 |
|
| texasmynsted doing git status | 19:36 |
|
texasmynsted
| I should not have unpublished commits, I assume that means adds that are not committed. | 19:37 |
| ← ajpiano left | 19:37 |
|
texasmynsted
| I have some submodule adds, but I they were failing so need to re-do them anyway | 19:37 |
| → dinduks joined | 19:37 |
| ← fayimora left | 19:37 |
| → ajpiano_ joined | 19:37 |
| ajpiano_ → ajpiano | 19:37 |
| ← fuzzybunny69y left | 19:38 |
|
texasmynsted
| This is a remotely mounted disk mounted of sshfs. I think that doing it this way is not ideal. I will switch to shelling in over ssh and then executing the git commands, but I would need to create a new key and can not do that at the moment | 19:39 |
|
| I think the sshfs was causing the corruption perhaps. | 19:39 |
|
| only changes to be committed are "modified: .gitmodules" | 19:39 |
|
| should I commit that then do something? | 19:39 |
|
| I think the change is from when I attempted to git submodule add | 19:40 |
|
cbreak
| texasmynsted: unpublished changes means things you have not PUSHED | 19:40 |
|
| what you can do is try to git fetch from a remote to get the missing commit object | 19:41 |
| → mbutubuntu joined | 19:41 |
|
texasmynsted
| oh, sorry. I have been wondering if there is a way to see what has/has not been pushed but I do not know how to ask (or how to look it up) | 19:41 |
| → btanaka joined | 19:41 |
|
mbutubuntu
| hello folks, is there any way to automatically run some tasks when a user commits something to a remote server? | 19:41 |
|
cbreak
| just use log/diff with the remote tracking | 19:42 |
|
| texasmynsted: what happens if you run git remote update? | 19:42 |
| → yaymukund joined | 19:42 |
| → koo4 joined | 19:42 |
|
texasmynsted
| 'git remote update' ? | 19:42 |
|
mbutubuntu
| *when a user commits and pushes | 19:42 |
|
raek
| mbutubuntu: yes, hooks in the remote repo | 19:43 |
| → littledwarf joined | 19:44 |
|
| texasmynsted going to git remote -v update | 19:44 |
| ← littledwarf left | 19:44 |
| ← j0ran left | 19:45 |
|
mbutubuntu
| raek, sorry but I'm relatively new with git... any link/resource/doc about hooks? | 19:45 |
|
texasmynsted
| = [up to date] master -> origin/master | 19:45 |
| ← axl_ left | 19:46 |
| ← Jackneill left | 19:46 |
|
cbreak
| texasmynsted: I assume the commit is still missing | 19:46 |
|
texasmynsted
| <nod> | 19:46 |
| → axl_ joined | 19:46 |
|
cbreak
| you can try to git remote add it again under a new name | 19:46 |
|
raek
| mbutubuntu: this is one place to read about them: http://git-scm.com/book/en/Customizing-Git-Git-Hooks | 19:46 |
|
cbreak
| if you remote update after that, it might download the whole thing again | 19:46 |
|
mbutubuntu
| raek, great! thanks | 19:47 |
|
cbreak
| but to be honest, if I was in your situation, I'd just either clone fresh (if I wanted to solve the problem) | 19:47 |
|
| or I'd go to the server repo, get the file, and scp it down manually | 19:47 |
|
texasmynsted
| I would like to go with plan b | 19:48 |
|
| would that exact file name exist on the server repo? | 19:48 |
| ← mcluskydodallas left | 19:48 |
|
texasmynsted
| or perhaps I could clone fresh to a different location and copy the file from the fresh copy to the original? | 19:49 |
| ← iwoj left | 19:49 |
| → maletor joined | 19:50 |
| ← Octalot left | 19:50 |
| → Chinorro joined | 19:51 |
| → grantbdev joined | 19:51 |
| ← p3rror left | 19:52 |
|
cbreak
| texasmynsted: only if it has not been packed | 19:52 |
|
| texasmynsted: but if it's packed, then there are ways to get to it anyway, like git cat-file or git unpack-objects | 19:53 |
|
rgenito
| after doing, "git svn fetch" on a local branch that is tracking a remote svn repository...how do i merge those changes into my local branch? | 19:53 |
|
cbreak
| I've not used the latter, but it should probably be able to do it | 19:53 |
|
texasmynsted
| It is packed | 19:54 |
| → beneggett joined | 19:54 |
| ← CannedCo_ left | 19:54 |
| → anjen joined | 19:55 |
|
texasmynsted
| so I would simply cd into git/objects/pack then git unpack-objects ? | 19:55 |
|
| or rather git unpack-objects foo.pack? | 19:56 |
| → alester joined | 19:56 |
|
cbreak
| I've not used it | 19:57 |
| → fuzzybunny69y joined | 19:57 |
|
cbreak
| ... make backups before using it :) | 19:57 |
|
texasmynsted
| hmm. I did "git unpack-objects < pack-aabc708407e70a20bfefcd8ffd7718c170fdbf62.pack" but I do not know where it put the objects | 19:57 |
| → mishok13 joined | 19:57 |
| → blacktulip joined | 19:57 |
|
cbreak
| texasmynsted: it'll make them loose | 19:57 |
|
| according to docs | 19:57 |
| ← __null left | 19:58 |
|
nbari
| how to force merge branch on another branch, I am doing merge branch but I just getting Already up-to-date. but I dont see the dirs | 19:58 |
|
texasmynsted
| heh | 19:58 |
|
cbreak
| so something called 14205faev | 19:58 |
| → Shusshu joined | 19:58 |
|
texasmynsted
| I do not know what that means really. I just want the file so I can copy it | 19:58 |
|
cbreak
| would be in 14/205fae and so on | 19:58 |
|
milki
| nbari: did you previously do a git revert? | 19:58 |
|
texasmynsted
| perhaps I need to git cat-file or something | 19:58 |
| → __null joined | 19:58 |
| ← tshauck left | 19:58 |
|
cbreak
| git cat-file would give you the contents, but I don't think that's as easy to use | 19:58 |
|
nbari
| yes | 19:59 |
| → ISF joined | 19:59 |
|
milki
| nbari: you cannot remerge something. this is in the warnings in the man git revert docs | 19:59 |
|
gitinfo
| nbari: the git-revert manpage is available at http://git-scm.com/docs/git-revert.html | 19:59 |
|
texasmynsted
| hmm. | 19:59 |
| → drizzd joined | 19:59 |
|
cbreak
| nbari: if you merged a branch, then it will stay merged for ever | 19:59 |
|
| you can never merge it again | 19:59 |
|
| because all the commits are already part of history | 19:59 |
| ← beneggett left | 20:00 |
|
nbari
| I have created another branch and tried to merge this branch and still dont get the files | 20:00 |
|
texasmynsted
| I am not sure what to try next | 20:00 |
|
milki
| did you rebase the branch or just make a new branch with the same history? | 20:00 |
| ← maletor left | 20:01 |
|
cbreak
| nbari: branches are identified by the commits they have | 20:01 |
| → mcluskydodallas joined | 20:01 |
|
cbreak
| just making a new branch has no purpose | 20:01 |
| ← dv310p3r left | 20:01 |
| → larpede joined | 20:01 |
|
cbreak
| in this context | 20:01 |
| → awx joined | 20:01 |
|
cbreak
| texasmynsted: if it worked then you're done | 20:01 |
|
nbari
| I created a new branch, lets say branchA an inside branhA I did a merge brachX, gut I can't et the files of branchX on bracchA | 20:01 |
|
cbreak
| if not, find out why not | 20:02 |
|
| and if in doubt, just clone again :) | 20:02 |
|
texasmynsted
| no, I did it on a fresh clone so I could copy it over | 20:02 |
| ← hagna left | 20:02 |
| → tshauck joined | 20:02 |
|
milki
| no, you want to create a new version of branchX, rebase branchX on branchA, and then merge branchX into branchA | 20:02 |
|
nbari
| I was trying to found a better way to handle themes on a code, so I decided to create a branch per each theme leaving the core intact but I think is becomiing a mess | 20:03 |
|
milki
| or simply undo the initial merge with a reset | 20:03 |
|
| and merge again | 20:03 |
|
texasmynsted
| cloning again would be a major problem in the current locaion | 20:03 |
|
nbari
| before I had evertying in a huge repositories | 20:03 |
|
cbreak
| nbari: you might think that branches are about files | 20:03 |
|
| they are not | 20:03 |
|
| they are about history | 20:03 |
|
| if history has been merged, then that's it. | 20:03 |
|
| revert can't unmerge it | 20:03 |
|
texasmynsted
| I just need a good copy of that corrupt commit | 20:03 |
|
nbari
| ok | 20:03 |
|
cbreak
| reset could nuke it away via history rewriting | 20:03 |
|
| texasmynsted: yeah, what I wrote above should give you that | 20:03 |
|
| (git unpack-objects) | 20:04 |
| ← g0bl1n left | 20:04 |
| ← anjen left | 20:04 |
|
texasmynsted
| ok will try in the original clone | 20:04 |
| → mangdood_ joined | 20:04 |
| → trend joined | 20:05 |
| ← magcius left | 20:05 |
| → iwoj joined | 20:05 |
| → magcius joined | 20:05 |
|
texasmynsted
| ok, so this is silly question but why would there be more than one pack file? | 20:05 |
|
trend
| I keep trying to add a folder, but every time I commit it thinks it is a binary file w/ 0 bytes. these folders are submodules fyi | 20:06 |
| ← nbari left | 20:06 |
| ← mcluskydodallas left | 20:06 |
| → cristian joined | 20:06 |
| ← stamina left | 20:06 |
|
texasmynsted
| ok the unpack, unpacked (used the latest pack file) | 20:06 |
|
| so then try git fsck? | 20:07 |
|
| to see if all good? | 20:07 |
|
mbutubuntu
| I'm reading this http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server to set up a git server. I'd like to know why that page says to create a repo on the server in /opt/git/project.git. I thought that repositories were stored in the 'git' $HOME. | 20:07 |
| ← Ryback_ left | 20:09 |
| → p3rror joined | 20:09 |
|
texasmynsted
| hmm. still getting "bad sha1 file: .git/objects/a4/ff96a4868ceefc38a32d995bce2f9379b28361.old" which is the "renamed" version of the file | 20:10 |
|
| and "missing commit a4ff96a4868ceefc38a32d995bce2f9379b28361" which is the orignal. | 20:10 |
| ← oscar_ left | 20:10 |
| → hakunin joined | 20:11 |
|
texasmynsted
| So I guess my only option is to blow away my clone and fetch a new clone? | 20:12 |
| ← erichynds left | 20:12 |
|
texasmynsted
| (the nuclear option) | 20:12 |
| ← eletuchy left | 20:12 |
| → jefftimesten joined | 20:12 |
|
yaymukund
| how would I show the diff for all the commits in `git log master..HEAD` | 20:13 |
| → Jippi joined | 20:15 |
|
thiago
| yaymukund: add -p | 20:16 |
| → aartist joined | 20:16 |
|
yaymukund
| git thiago it's like magic! | 20:17 |
|
| thanks | 20:17 |
| ← shreya left | 20:17 |
| → lonewulftb joined | 20:17 |
| ← tshauck left | 20:18 |
|
mbutubuntu
| hey guys, I've added an origin called foo that is mapped to a ssh://git@host:port/path/to/repo ... I'd like to use SSH key instead of sending the user password... how to do this? | 20:19 |
| ← larpede left | 20:19 |
| ← JohnBat26 left | 20:20 |
| → francisfish joined | 20:21 |
| ← karsten left | 20:21 |
| → karsten joined | 20:21 |
| → mcluskydodallas joined | 20:21 |
| → theCole joined | 20:23 |
| → fayimora joined | 20:23 |
| ← mcluskydodallas left | 20:23 |
| ← marhaban left | 20:24 |
|
wereHamster
| mbutubuntu: set up ssh keys | 20:24 |
|
mbutubuntu
| wereHamster, I've just ssh keys because I use bitbucket | 20:25 |
|
wereHamster
| I can't parse that... | 20:25 |
|
mbutubuntu
| what I'd like to know is how to use the same ssh key for both git servers (bitbucket and the other one) | 20:25 |
| ← ProLoser|Work left | 20:25 |
| ← jefftimesten left | 20:26 |
|
wereHamster
| upload the public key to whichever server you want to access | 20:26 |
|
mbutubuntu
| wereHamster, you can't parse... ahahahah!!!! :-) sorry for my enlgish | 20:26 |
|
| *english | 20:26 |
| ← francisfish left | 20:26 |
|
mbutubuntu
| wereHamster, uploaded and added to authorized_keys in the git $HOME/.ssh/ | 20:26 |
|
| I've done it yet | 20:27 |
| ← ronniy left | 20:27 |
|
wereHamster
| does 'ssh git@host' work? | 20:27 |
| ← bitkiller left | 20:27 |
|
mbutubuntu
| yes but I don't want to be able to log in with the git user | 20:28 |
| → oscar_ joined | 20:28 |
|
wereHamster
| I don't get your problem then. | 20:28 |
| → floppydisk joined | 20:29 |
|
mbutubuntu
| wereHamster, ssh git@host works but asks password... it doesn't use an ssh key | 20:29 |
|
floppydisk
| i dont have to checkout a branch to push to it right?¨ | 20:29 |
|
wereHamster
| mbutubuntu: ssh -vv git@host, and see which key it's trying to use, and why it fails | 20:29 |
| ← cristian left | 20:29 |
| ← markgifford left | 20:31 |
|
mbutubuntu
| wereHamster, it tries to use the right key but it continues ask me the git@host password and not the key password... | 20:32 |
| → mcluskydodallas joined | 20:32 |
| → alberto56 joined | 20:32 |
|
wereHamster
| looks like you did not set up the key on the server correctly | 20:33 |
| ← ill1cit left | 20:33 |
| ← megalomania left | 20:33 |
| ← mcluskydodallas left | 20:34 |
|
mbutubuntu
| wereHamster, I've appended my public key to the git $HOME/.ssh/authorized_keys on the git server | 20:34 |
|
| isn't it right?! | 20:34 |
| ← oojacoboo left | 20:35 |
| ← Pookz left | 20:35 |
|
mbutubuntu
| wereHamster, I've done what suggested on http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server | 20:35 |
|
wereHamster
| are the permissions correct? Is anything useful in the server logs? | 20:35 |
| → markgifford joined | 20:35 |
| → daethorian joined | 20:35 |
| → oojacoboo joined | 20:36 |
| ← alberto56 left | 20:37 |
| ← mneorr_ left | 20:37 |
| → mneorr joined | 20:38 |
|
mbutubuntu
| wereHamster, sorry, maybe ssh -vv git@host doesn't use a key, watch this https://gist.github.com/a7557ed248b856060c2e | 20:39 |
| → dv310p3r joined | 20:39 |
| → mischat joined | 20:39 |
| → min|dvir|us joined | 20:39 |
|
min|dvir|us
| Hi. | 20:39 |
|
gitinfo
| min|dvir|us: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 20:39 |
| → edude03_ joined | 20:39 |
|
wereHamster
| mbutubuntu: what makes you think it doesn't use the key? | 20:40 |
| ← lonewulftb left | 20:40 |
|
min|dvir|us
| I'm fairly new to git, so I apologize for my inability to understand/explain simple concepts. | 20:40 |
|
| I did `git fetch bobby dan`. | 20:40 |
| ← edude03 left | 20:40 |
| ← kadoban left | 20:40 |
|
mbutubuntu
| wereHamster, I'm guessing... :-) | 20:40 |
|
min|dvir|us
| bobby is a remote, and dan is a branch on bobby. | 20:40 |
| ← toothr left | 20:40 |
| → dr_lepper joined | 20:40 |
|
min|dvir|us
| On bobby itself, I can see changes that I can't see on my local repo. | 20:40 |
| → krosenbl joined | 20:41 |
|
min|dvir|us
| Why? | 20:41 |
|
mbutubuntu
| wereHamster, so why it asks the git@host password and not the key password? | 20:41 |
| ← tewecske left | 20:41 |
|
wereHamster
| min|dvir|us: take a look at the output from that fetch command. What do you see and what does it tell you? | 20:41 |
|
| mbutubuntu: probably because the server rejects the key | 20:41 |
| → tatsuya_o joined | 20:42 |
| → toothr joined | 20:42 |
| ← krosenbl_ left | 20:42 |
|
mbutubuntu
| wereHamster, mmhhh.... why would my server reject a key correctly added to .authorized_keys ? | 20:42 |
| ← mneorr left | 20:43 |
|
wereHamster
| do any other keys in that authorized_keys file work? | 20:44 |
|
min|dvir|us
| wereHamster: so, I'm using github. | 20:44 |
|
mbutubuntu
| wereHamster, there is only one key :-( | 20:44 |
| → barrbrain joined | 20:44 |
|
min|dvir|us
| wereHamster: I can see on github that the dan branch on the bobby remote has the data I want. | 20:44 |
|
wereHamster
| mbutubuntu: does that file have the correct permissions? | 20:44 |
|
min|dvir|us
| wereHamster: but my local repo does not. | 20:45 |
|
wereHamster
| min|dvir|us: that's not what I asked. take a look at the output from that fetch command. What do you see and what does it tell you? | 20:45 |
|
mbutubuntu
| wereHamster, owner git.git that has all read permissions | 20:45 |
| ← the_cybersphinx left | 20:45 |
|
wereHamster
| mbutubuntu: try chmod 0600 | 20:45 |
| → cybersphinx joined | 20:45 |
|
wereHamster
| mbutubuntu: and chmod 0700 $HOME/.ssh | 20:45 |
| → arooni-mobile joined | 20:45 |
| ← mischat left | 20:45 |
|
arooni-mobile
| is there a fast way to add a bunch of changes without doing one at a time? | 20:45 |
|
| i know i could do git add * | 20:46 |
|
| but i have some stuff i dont want to add too | 20:46 |
|
wereHamster
| arooni-mobile: git add -p ? | 20:46 |
|
mbutubuntu
| wereHamster, ooooh.... now it works... :-) it was a simple permissions problem!!! thank you very much | 20:46 |
|
| :-) | 20:46 |
|
min|dvir|us
| wereHamster: I see a bunch of organized colors. It tells me words I am having difficulty understanding. | 20:46 |
| gitinfo set mode: +v | 20:46 |
|
arooni-mobile
| wereHamster, so i would basically be asked for each file whether to add or not? | 20:46 |
|
wereHamster
| mbutubuntu: you would have probably seen that if you looked at the srever logs.. | 20:47 |
|
mangdood_
| ...I didn't even realize my messages weren't sending until now | 20:47 |
|
wereHamster
| min|dvir|us: maybe you could pastebin the output.. ? | 20:47 |
|
mbutubuntu
| wereHamster, sorry I'm late for an appointment... :-) | 20:47 |
| → Sigma joined | 20:47 |
| ← TheHaven left | 20:48 |
| ← hakunin left | 20:48 |
|
mangdood_
| I want to patch a renamed file with changes from another commit, how can I do this? | 20:48 |
|
min|dvir|us
| wereHamster: http://dpaste.org/6fNIo/ | 20:48 |
| → beneggett joined | 20:48 |
|
wereHamster
| min|dvir|us: like 6: From github.com:user/repo. Git fetched stuff from that repository. | 20:48 |
| → hakunin joined | 20:49 |
|
arooni-mobile
| how can i add all untracked files | 20:49 |
|
mbutubuntu
| wereHamster, this was why I didn't see the server log... sorry and thanks again | 20:49 |
| → trend_ joined | 20:49 |
| ← trend left | 20:49 |
|
arooni-mobile
| but still follow my .gitignore rules | 20:49 |
| trend_ → trend | 20:49 |
|
wereHamster
| min|dvir|us: line 7: * branch dan -> FETCH_HEAD. It fetched a branch dan from that github repository, and stored it in the local ref FETCH_HEAD. | 20:49 |
| ← oscar_ left | 20:49 |
| ← hydrozen left | 20:49 |
|
wereHamster
| min|dvir|us: now you can look at FETCH_HEAD and there will be what you are looking for | 20:49 |
|
min|dvir|us
| wereHamster: how can I confirm that? | 20:49 |
|
| What is FETCH_HEAD? | 20:49 |
|
wereHamster
| arooni-mobile: git add . | 20:50 |
|
| min|dvir|us: a ref name | 20:50 |
|
min|dvir|us
| wereHamster: how do I look at refs? What is a ref? | 20:50 |
|
wereHamster
| min|dvir|us: !book | 20:50 |
|
gitinfo
| min|dvir|us: There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !designers !gitt !vcbe and !parable | 20:50 |
| → the_cybersphinx joined | 20:51 |
| → g0bl1n joined | 20:52 |
| ← ben_alman left | 20:53 |
| ← cybersphinx left | 20:54 |
| ← Goplat left | 20:54 |
| ← freeed left | 20:54 |
| ← jcapinc left | 20:54 |
| ← booginga left | 20:55 |
| → Turicas joined | 20:55 |
| → RaptorX joined | 20:56 |
| → mcluskydodallas joined | 20:56 |
| → ilogger2 joined | 20:57 |
| → eletuchy joined | 20:57 |
| → booginga joined | 20:58 |
| → lindenle_ joined | 21:01 |
| gitinfo set mode: +v | 21:01 |
|
lindenle_
| HI can I reset a directory to match a different branch? | 21:01 |
| → ben_alman joined | 21:01 |
|
thiago
| git checkout thatbranch -- directory | 21:01 |
| → peppyheppy joined | 21:02 |
|
lindenle_
| thiago: what about files that i have removed? How can I see which ones to delete? | 21:02 |
|
thiago
| lindenle_: if you have removed the files, they have been removed already | 21:03 |
|
| lindenle_: you can't delete files that don't exist | 21:03 |
|
| lindenle_: you probably meant something else, so please rephrase | 21:03 |
|
lindenle_
| thiago: they exist in this branch, but not in the branch I want to reset this directory to match | 21:03 |
|
apok
| is there a way to undo a reset? | 21:04 |
|
thiago
| by the way, please don't say "reset" because the verb "to reset" has a special meaning in Git | 21:04 |
|
apok
| i can checkout the previous commit again, but them i'm in detached head state | 21:04 |
|
thiago
| lindenle_: when you do that checkout, it will remove the files that don't exist in the other branch | 21:04 |
|
| lindenle_: but git status will tell you what it removed. You can undo the change for specific files. | 21:04 |
|
lindenle_
| oh ok, cool that is what I want | 21:04 |
| → ipalaus_ joined | 21:04 |
| → ill1cit joined | 21:04 |
|
thiago
| apok: reset back to where you were before | 21:05 |
|
apok
| oh so just git reset --hard <commit-hash> | 21:05 |
|
thiago
| apok: yes | 21:05 |
| → linusoleander joined | 21:06 |
|
lindenle_
| thiago: it did not delet the files when I did the checkout | 21:07 |
| → mritz joined | 21:07 |
| → mneorr joined | 21:08 |
| → Araxia_ joined | 21:09 |
| → Mowsh joined | 21:10 |
|
lindenle_
| thiago: I can just delete them again if I can figure out which ones to remove | 21:10 |
| → stamina joined | 21:14 |
|
lindenle_
| So... can i compare which files exist on two branches in an easy way? | 21:16 |
|
thiago
| git diff --name-status branch1 branch2 | 21:16 |
|
apok
| so i'm confused about cherry-pick, i just tried to cherry pick one commit from one branch to another but it included changes in previous commits as well…. is that how it's supposed to work? | 21:17 |
|
| what if I only want the changes from one single commit? | 21:17 |
|
thiago
| apok: no, it's supposed to be one single commit | 21:17 |
|
apok
| hmmm guess i'm doing something wrong then | 21:17 |
|
| my test is so simple i've done it twice now | 21:18 |
|
lindenle_
| thiago: awesom thx | 21:18 |
|
| thiago: awesom ethx | 21:18 |
| → littledwarf1 joined | 21:19 |
| ← littledwarf1 left | 21:19 |
|
apok
| crazy so when i do a diff of the cherry picked commit and it's previous commit i get one change, but when i cherry pick that same commit to another branch it includes that change plus the one from the previous commit, how is that possible? | 21:19 |
| → bitkiller joined | 21:20 |
| → dv310p3r joined | 21:22 |
| ← peppyheppy left | 21:22 |
| → harish joined | 21:22 |
|
mangdood_
| How do I know what diff tool git is currently using? | 21:22 |
| → libertyprime joined | 21:24 |
| ← libertyprime left | 21:26 |
| → libertyprime joined | 21:27 |
| ← mneorr left | 21:28 |
| → peppyheppy joined | 21:29 |
| → CrazyTux[w] joined | 21:30 |
|
apok
| so does cherry-pick include all changes included in the diff between the cherry-picked commit and HEAD ? | 21:30 |
|
| or is it supposed to be only changes from the commit itself (not other changes in the diff) | 21:30 |
|
CrazyTux[w]
| I've got a local branch and a remote branch and they both have slight changes, how can I merge them back into a single branch? | 21:30 |
|
apok
| because I thought it was the latter, but it's behaving like the former.... | 21:30 |
| → kadoban joined | 21:32 |
| → johnanderson joined | 21:32 |
|
apok
| man that's kind of a bummer that it does a whole diff, i don't want all that other stuff, just the changes in that one commit >:/ | 21:34 |
| → Schweby joined | 21:34 |
| → bremner_ joined | 21:35 |
| → n2diy joined | 21:35 |
| → simesy joined | 21:36 |
| → macmartine joined | 21:36 |
| → bglusman joined | 21:36 |
| → pro_metedor joined | 21:38 |
| → codeM0nK3Y joined | 21:38 |
| → pantsman joined | 21:40 |
| ← pantsman left | 21:40 |
| → pantsman joined | 21:40 |
| ← bglusman left | 21:42 |
|
mangdood_
| :X Sorry for asking so many questions but is it a good idea to take some changes from another branch into the branch I'm on? What's the best way to do this? | 21:42 |
|
FauxFaux
| mangdood_: man git cherry-pick | 21:42 |
|
gitinfo
| mangdood_: the git-cherry-pick manpage is available at http://git-scm.com/docs/git-cherry-pick.html | 21:42 |
|
FauxFaux
| Took me far too long to type "man[tab]man". | 21:43 |
| → dougsland joined | 21:43 |
| ← dougsland left | 21:43 |
| → dougsland joined | 21:43 |
|
mangdood_
| FauxFaux: I just looked up cherry-pick, though I'm not sure that's what I want. Is it for all of the changes from its entire history to that commit or... | 21:43 |
|
apok
| yeah i'm a little confused on that point too | 21:44 |
|
| when i test it, it seems to be all of the changes, i was hoping it was limited to the changes in one commit | 21:44 |
|
FauxFaux
| mangdood_: No, it just takes the actual changes done in that commit. Like generating a patch for the commit, then applying it (but a little bit smarter (or stupider, depending on your luck)). | 21:44 |
|
apok
| though maybe i'm just doint it wrong somehow | 21:45 |
|
| FauxFaux: that's not the behavior i'm seeing | 21:45 |
| → beneggett joined | 21:45 |
|
apok
| for me it includes all changes as a result of a diff between HEAD and the commit i'm trying to cherry pick | 21:45 |
|
mangdood_
| FauxFaux: is there a way I can just get the patch from cherry pick without applying it to see what it looks like? | 21:45 |
| → vervic joined | 21:45 |
|
apok
| cherry-pick -n <commit> | 21:46 |
|
FauxFaux
| mangdood_: Why bother? Just do the cherry-pick and undo it if you don't like it. | 21:46 |
| → EugeneKay joined | 21:47 |
| ChanServ set mode: +v | 21:48 |
| → w09x joined | 21:48 |
| ← w09x left | 21:48 |
| → w09x joined | 21:48 |
|
mangdood_
| FauxFaux: This renaming is driving me mad; I'm trying to take a renamed file from another commit and take those changes, but it won't let me | 21:49 |
|
| Should I just rename the file from the branch I'm on to match the one in the other commit? or is there a better way to do this | 21:49 |
| → arooni-mobile joined | 21:50 |
|
texasmynsted
| what is the best way to maintain a directory that looks like the git archive extraction from head? | 21:50 |
| → kinetic joined | 21:50 |
|
FauxFaux
| texasmynsted: !website | 21:50 |
|
gitinfo
| texasmynsted: [!deploy] Git is not a deployment tool, but you can build one around it for simple environments. Here is an example hook to get you started: http://goo.gl/l68hq | 21:50 |
| → HelloComputer15 joined | 21:51 |
| → adamm joined | 21:52 |
| → _W_ joined | 21:52 |
| ← HelloComputer15 left | 21:55 |
| → williamcotton joined | 21:55 |
| → phin joined | 21:56 |
| → lonewulftp joined | 21:56 |
| → warrick_ joined | 21:56 |
| ← phin left | 21:57 |
| ← warrick_ left | 21:57 |
| → uncleshebly joined | 21:57 |
|
texasmynsted
| That is close but really the idea would be to avoid replicating the .git directory on the destination server. It is not an asset but rather a liability. | 21:58 |
|
| I would rather like to find a way to see the head without the .git director then replicate that to the server. | 21:59 |
| → pheaver joined | 21:59 |
|
texasmynsted
| I searched but did not see a fuse filesystem for git. That might be ideal. | 21:59 |
|
EugeneKay
| That's not really what git is for. | 22:00 |
|
| I think ! deploy, as above, is close to what you want | 22:00 |
| → b1rkh0ff joined | 22:00 |
| ← Schweby left | 22:01 |
| → madewokherd joined | 22:01 |
|
texasmynsted
| that is creating two repositories on the server. One is the production public web directory with .git and the other is the working git, if I read it correctly | 22:02 |
| ← dougsland left | 22:03 |
|
apok
| FauxFaux, lindenle_: if behavior of cherry pick is like you said then how is this possible? https://gist.github.com/2839211 | 22:03 |
| ← linusoleander left | 22:03 |
|
texasmynsted
| I suppose that I should just write a script to git archive to a directory and manage a symlink to the latest expanded archive … | 22:04 |
|
apok
| you can see i am trying to cherry pick the latest commit from branch-1 onto master, but it tries to apply changes from all commits in branch-1 since I branched from master | 22:04 |
|
texasmynsted
| :-) | 22:04 |
| → HelloComputer15 joined | 22:04 |
|
texasmynsted
| hmm. this could work | 22:04 |
| → prudnikov joined | 22:04 |
| → cagedwisdom joined | 22:05 |
| → yoklov joined | 22:05 |
| → TeckniX joined | 22:06 |
| ← madewokherd left | 22:06 |
| → madewokherd joined | 22:06 |
| ← TeckniX left | 22:06 |
| ← Araxia_ left | 22:10 |
| → Milossh joined | 22:10 |
| → Araxia_ joined | 22:11 |
| ← libertyprime left | 22:11 |
| → libertyprime joined | 22:12 |
| ← dv310p3r left | 22:12 |
| → kcj joined | 22:12 |
| → marhaban joined | 22:13 |
| → littledwarf joined | 22:13 |
| ← pantsman left | 22:14 |
| → DofLeFou joined | 22:15 |
| → Maccer joined | 22:17 |
| → rsumi joined | 22:17 |
| ← littledwarf left | 22:17 |
| → dougsland joined | 22:19 |
|
rsumi
| hello, i'm having trouble with this help of converting svn to git... http://help.github.com/import-from-subversion/... when i do "git push origin master" i get this error " ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'git@github.com:rsumiim/mytest.git'". how do i fix this? | 22:19 |
| → _root_ joined | 22:19 |
| ← peppyheppy left | 22:19 |
|
rsumi
| i'm doing to git-svn instructions | 22:20 |
|
cbreak
| you already have remote history | 22:20 |
| ← libertyprime left | 22:20 |
|
rsumi
| cbreak: i'm new to git. what is that trying to tell me? | 22:20 |
| ← arooni-mobile left | 22:20 |
|
cbreak
| there are commits that someone else pushed into that repository | 22:20 |
| → tyfighter joined | 22:20 |
|
cbreak
| you can not push divergent history | 22:20 |
|
| either merge or rebase before pushing | 22:21 |
|
| but if you convert a fresh svn repository | 22:21 |
|
| you should push to a fresh git repository too | 22:21 |
| → libertyprime joined | 22:21 |
|
rsumi
| cbreak: it's an old svn repo to a brand new git repo. there are no changes on the git end | 22:21 |
| ← prudnikov left | 22:21 |
|
rsumi
| cbreak: well, it created a README.md file on github when creating the repo. is that the problem? | 22:22 |
|
cbreak
| there is git history | 22:22 |
|
| that's why the push failed | 22:23 |
|
| it is | 22:23 |
| → g0bl1n joined | 22:23 |
| ← g0bl1n left | 22:23 |
| → g0bl1n joined | 22:23 |
|
rsumi
| cbreak: if i do a "git merge master" right before the command it says its already up to date | 22:24 |
|
| then i retry and the same error | 22:24 |
|
cbreak
| of course... | 22:24 |
|
| you are probably on master | 22:24 |
|
| merging with the current branch doesn't do anything | 22:24 |
|
| if you want to kill remote history, just git push -f | 22:24 |
|
texasmynsted
| Where can I find more information about chains of remotes. example Repository A is a clone of B which is a clone of C, where A has everything that B has but also manages a few extra things that B does not and B has everything that C has but manages a few extra things than C. | 22:26 |
|
| does that make sense? | 22:26 |
| → srtim joined | 22:28 |
| ← HelloComputer15 left | 22:29 |
|
rsumi
| cbreak: ok great that worked but my authors are still what they were in svn and not what i did with "git svn --authors-file=path/to/authors_file clone SVN_REPO_URL LOCAL_DIR". am i missing something here also? | 22:30 |
|
cbreak
| texasmynsted: it doesn't matter to git | 22:30 |
|
| rsumi: maybe. I never used that | 22:31 |
| → hedgomatic joined | 22:36 |
| → yizumi joined | 22:37 |
| → arooni-mobile joined | 22:38 |
| → fayimora_ joined | 22:38 |
| ← libertyprime left | 22:40 |
| → libertyprime joined | 22:40 |
| ← ipalaus_ left | 22:42 |
| fayimora_ → fayimora | 22:42 |
| → alberto56 joined | 22:43 |
| ← g0bl1n left | 22:43 |
| → leavittx joined | 22:44 |
| → SegFaultAX|work2 joined | 22:45 |
| ← srtim left | 22:47 |
| → pl0sh joined | 22:49 |
| ← booginga left | 22:50 |
| ← alberto56 left | 22:52 |
| ← johnanderson left | 22:57 |
| → w09x_ joined | 22:58 |
| → hyperair joined | 23:00 |
| ← w09x left | 23:01 |
| ← pheaver left | 23:03 |
| → fuzzybunny69y1 joined | 23:05 |
| ← DofLeFou left | 23:05 |
| fuzzybunny69y1 → fuzzybunny69y | 23:05 |
| → ISF joined | 23:06 |
| → john_anderson joined | 23:07 |
| → alberto56 joined | 23:08 |
| ← harish left | 23:08 |
| → btree_ joined | 23:08 |
| ← btree_ left | 23:08 |
| → btree_ joined | 23:08 |
| → w09x joined | 23:09 |
| → Praise joined | 23:09 |
|
texasmynsted
| cbreak, ok | 23:11 |
| ← alberto56 left | 23:12 |
| → palyboy joined | 23:12 |
| → dv310p3r joined | 23:12 |
| ← w09x_ left | 23:13 |
| → hadees joined | 23:15 |
| → masonkramer joined | 23:17 |
| → solussd joined | 23:19 |
| ← ISF left | 23:20 |
| → nhooey|mini joined | 23:20 |
|
nhooey|mini
| You can use `git log --grep` to search log messages, and `git log -S<string>` to search code, but is there a way to search the diffstat for a file name pattern with `git log`? | 23:21 |
| ← hedgomatic left | 23:23 |
| → Chillance joined | 23:24 |
| ← macmartine left | 23:24 |
| ← beneggett left | 23:25 |
| ← john_anderson left | 23:25 |
| → optixx joined | 23:25 |
| → Vert joined | 23:25 |
| ← dv310p3r left | 23:26 |
| → peppyheppy joined | 23:26 |
| → john_anderson joined | 23:27 |
| ← solussd left | 23:28 |
| → w09x_ joined | 23:28 |
| → dv310p3r joined | 23:28 |
| → Goplat joined | 23:30 |
| ← w09x left | 23:31 |
| → alberto56 joined | 23:34 |
| → mdhopkins joined | 23:35 |
| → davidbanham joined | 23:36 |
| → cenuij joined | 23:36 |
| ← cenuij left | 23:36 |
| → cenuij joined | 23:36 |
| ← simesy left | 23:38 |
| ← dv310p3r left | 23:39 |
| → dv310p3r joined | 23:43 |
| → solussd joined | 23:43 |
| → w09x joined | 23:44 |
| → acrocity joined | 23:44 |
| ← w09x_ left | 23:47 |
| → chayin joined | 23:47 |
| → sdeboey joined | 23:47 |
| ← sdeboey left | 23:48 |
| → stkrzysiak joined | 23:51 |
| → chrisgeorge joined | 23:54 |
| ← solussd left | 23:55 |
| → mikepack joined | 23:56 |
| ← tyfighter left | 23:59 |
| → mtytel joined | 23:59 |
| ← peppyheppy left | 23:59 |