| 2011-05-08 |
| → saschagehlich joined | 00:00 |
| ← v0n left | 00:00 |
| → dotblank joined | 00:01 |
|
dotblank
| Anyone know very easy to understand git tutorials? Need to link instructions in a wiki. | 00:02 |
| ← sylr left | 00:02 |
| → Err404NotFound joined | 00:02 |
|
canton7
| git pro is good | 00:03 |
| ← malumalu left | 00:03 |
| → kenneth_reitz joined | 00:09 |
| ← candybar left | 00:09 |
| → aquabu joined | 00:11 |
| ← unreal left | 00:12 |
| ← Prism left | 00:13 |
| ← TomyLobo left | 00:14 |
| → lukeman joined | 00:18 |
| → sbell joined | 00:18 |
| → unreal joined | 00:19 |
| ← jjuran left | 00:19 |
| → __sorin__ joined | 00:20 |
| → candybar joined | 00:21 |
| ← aruiz left | 00:21 |
| → Freakshow joined | 00:24 |
| ← canton7 left | 00:27 |
| ← coldboot|home left | 00:29 |
| ← rendar left | 00:30 |
| → v0n joined | 00:33 |
| ← Leemp left | 00:33 |
| ← candybar left | 00:35 |
| → jjuran joined | 00:38 |
| ← gigamonkey left | 00:40 |
| → candybar joined | 00:41 |
| ← SethRobertson left | 00:41 |
| ← tty2 left | 00:43 |
| → tty3 joined | 00:46 |
| ← NetHawk left | 00:49 |
| → NetHawk joined | 00:50 |
| ← pantsman left | 00:50 |
| ← aquabu left | 00:50 |
| → thews joined | 00:51 |
| → hackez_work joined | 00:54 |
| ← candybar left | 00:56 |
| ← Bauer left | 01:01 |
| → hvgotcodes joined | 01:02 |
| ← babilen left | 01:02 |
| ← deekayen left | 01:05 |
| ← saschagehlich left | 01:05 |
| → Swimming_bird joined | 01:06 |
| → goldins73 joined | 01:07 |
| ← fs-sylr left | 01:08 |
| → fs-sylr joined | 01:08 |
| yaotti_aw → yaotti | 01:08 |
| ← elb0w left | 01:08 |
| ← Yuuhi left | 01:08 |
| ← Bucciarati left | 01:08 |
| → elb0w joined | 01:09 |
| ← RaceCondition left | 01:09 |
| → Bucciarati joined | 01:10 |
| → candybar joined | 01:13 |
| ← arunce left | 01:15 |
| → arunce joined | 01:15 |
| ← g0bl1n left | 01:17 |
| ← thews left | 01:17 |
| ← davidcoallier left | 01:18 |
| → davidcoallier joined | 01:18 |
| → ezkl joined | 01:21 |
| → SethRobertson joined | 01:21 |
| ← eletuchy left | 01:22 |
| ← davidcoallier left | 01:23 |
| ← goldins73 left | 01:24 |
| → davidcoallier joined | 01:24 |
| ← jophish left | 01:26 |
| → thews joined | 01:30 |
| ← superdmp left | 01:32 |
| → ianawilson joined | 01:38 |
| ← thews left | 01:40 |
| ← lolfrenz left | 01:40 |
| → Bauer joined | 01:42 |
| → thews joined | 01:43 |
| → darkthought joined | 01:44 |
| → mikepack joined | 01:44 |
| → seivan joined | 01:45 |
| ← BeWilled left | 01:45 |
| ← SimonP86_ left | 01:47 |
| ← MissionCritical left | 01:47 |
| → alexandernst joined | 01:47 |
| ← Vampire0_ left | 01:48 |
|
ianawilson
| anybody have experience with gitosis? I'm having a terrible time getting users added to it | 01:48 |
|
alexandernst
| Removing a file and then going "svn up" will get the latest file from the repo. What's the equivalent in git to that? | 01:48 |
| ← NetHawk left | 01:49 |
| ← paeva left | 01:50 |
| → rgr joined | 01:52 |
| → FylGood joined | 01:52 |
| → eletuchy joined | 01:52 |
| ← eletuchy left | 01:52 |
| ← FylGood left | 01:52 |
| → eletuchy joined | 01:52 |
| ← linusoleander left | 01:54 |
| → paeva joined | 01:55 |
| → linusoleander joined | 01:58 |
| SavoxAway → Savoxis | 01:59 |
| → NetHawk joined | 01:59 |
| ← AAA_awright left | 02:01 |
| → AAA_awright_ joined | 02:01 |
| → Vampire0_ joined | 02:02 |
| ← Arafangion left | 02:04 |
| ← kenneth_reitz left | 02:04 |
|
cirwin
| alexandernst: git requires you to think more than that. Probably git fetch && git checkout origin/master <file> | 02:04 |
|
alexandernst
| cirwin: thanks. I was just reading man | 02:04 |
|
| did it with checout <file> | 02:04 |
|
| s/checout/checkout | 02:04 |
|
cirwin
| ok | 02:04 |
| ← davidcoallier left | 02:06 |
| → deekayen joined | 02:09 |
| ← kukks left | 02:10 |
| ← __sorin__ left | 02:11 |
|
ianawilson
| anybody have experience with gitosis? | 02:12 |
|
SethRobertson
| !gitosis | 02:13 |
|
jast
| [automatic message] gitosis is no longer maintained and supported by the author; we usually recommend gitolite instead which has much better documentation and more features: http://github.com/sitaramc/gitolite | 02:13 |
|
ianawilson
| o | 02:14 |
|
| wow | 02:14 |
|
| that would have saved a ton of time | 02:14 |
| ← sion2k left | 02:14 |
|
SethRobertson
| tell that to whomever recommended gitosis | 02:14 |
|
ianawilson
| the first two things i read about it (https://help.ubuntu.com/community/Git) and some git + redmine recommended gitosis | 02:14 |
|
| i assumed that i could trust the help.ubuntu.com guide | 02:14 |
|
SethRobertson
| file a ticket against ubuntu then | 02:14 |
|
ianawilson
| huh | 02:14 |
| ← Destos left | 02:15 |
| ← jnylen left | 02:15 |
| → MissionCritical joined | 02:15 |
|
ianawilson
| do you have any suggestions for a guide to get me started with gitolite? | 02:15 |
| ← linusoleander left | 02:16 |
|
SethRobertson
| The URL above is probably the best palce to get started | 02:16 |
| ← deekayen left | 02:16 |
| ← sergio left | 02:17 |
|
ianawilson
| ok | 02:17 |
|
| well thank you! | 02:17 |
|
| seriously saved me from pounding my head against it and google | 02:18 |
|
rudi_s
| !gitolite | 02:18 |
|
| Hm. | 02:18 |
|
ianawilson
| hah | 02:18 |
|
| :) | 02:18 |
|
rudi_s
| Worth a try ;-) | 02:19 |
| ← MikhX left | 02:19 |
|
sitaram
| rudi_s: <bang>gitosis I think. Although it would be nice if !gitolite replied with http://sitaramc.github.com/gitolite/doc/overkill.html :-) | 02:21 |
| → n8o-mba joined | 02:21 |
|
rudi_s
| jast: ^ | 02:21 |
|
| Yeah, !gitosis works, I thought !gitolite would provide some more details. | 02:22 |
|
jast
| Yeah: [automatic message] gitosis is no longer maintained and supported by the author; we usually recommend gitolite instead which has much better documentation and more features: http://github.com/sitaramc/gitolite | 02:22 |
|
rudi_s
| Hehe. | 02:22 |
| → jnylen joined | 02:22 |
|
rudi_s
| jast: ^ - maybe only reply if the nick exists in the channel | 02:22 |
| → kukks joined | 02:23 |
| ← vanmik left | 02:24 |
| ← LekeFly left | 02:25 |
| → Leemp joined | 02:25 |
| ← cybernd left | 02:27 |
| → verto joined | 02:28 |
| → MikhX joined | 02:28 |
| → brienna joined | 02:28 |
| ← blorbx left | 02:30 |
| ← drev1 left | 02:31 |
| → DrDogwelder joined | 02:33 |
| ← brienna left | 02:33 |
| ← n8o-mba left | 02:33 |
| ← MikhX left | 02:33 |
| → g0bl1n joined | 02:35 |
| → Arafangion joined | 02:35 |
| ← lastk left | 02:35 |
| → MikhX joined | 02:36 |
| → shiba_yu36 joined | 02:36 |
| → gigamonkey joined | 02:37 |
| → Textmode joined | 02:37 |
| → __sorin__ joined | 02:38 |
| ← Heimidal left | 02:38 |
| ← Behi left | 02:39 |
| → intripoon joined | 02:42 |
| → iori joined | 02:46 |
| ← intripoon_ left | 02:46 |
| → Rotham joined | 02:46 |
| ← jjuran left | 02:46 |
| → zhengyang joined | 02:48 |
| → mando joined | 02:49 |
| → verto_ joined | 02:50 |
| ← verto left | 02:50 |
| ← Anubisss left | 02:51 |
| → davidcoallier joined | 02:53 |
| ← hobodave left | 02:54 |
| → FrancisHaibin joined | 02:55 |
| → t3i joined | 02:56 |
| ← DrDogwelder left | 03:03 |
| ← Chillance left | 03:04 |
| ← sraue left | 03:09 |
| AAA_awright_ → AAA_awright | 03:11 |
| → sraue joined | 03:11 |
| ← tty1 left | 03:12 |
| ← tty3 left | 03:13 |
| ← v0n left | 03:14 |
| → dl9pf_ joined | 03:14 |
| ← FrancisHaibin left | 03:15 |
| ← dl9pf left | 03:15 |
| ← theoretical left | 03:15 |
| → FrancisHaibin joined | 03:20 |
| ← gigamonkey left | 03:30 |
| ← aef left | 03:34 |
| → blorbx joined | 03:36 |
| → arunce_ joined | 03:37 |
| → aef joined | 03:38 |
| ← arunce left | 03:39 |
| ← alip left | 03:41 |
| → v0n joined | 03:42 |
| → alip joined | 03:44 |
| ← pyroscope left | 03:45 |
| → Corren joined | 03:46 |
| ← tyteen4a03 left | 03:47 |
| ← Textmode left | 03:47 |
| ← Corren left | 03:49 |
| → Guest1729 joined | 03:49 |
| ← mikepack left | 03:53 |
| ← g0bl1n left | 03:54 |
| → ianmcorvidae joined | 03:57 |
| ← ianmcorvidae left | 03:57 |
| → ianmcorvidae joined | 03:57 |
| → nadirvardar joined | 03:59 |
| ← mando left | 04:01 |
| → xxoxx joined | 04:02 |
| ← bremner_ left | 04:02 |
| ← MikhX left | 04:03 |
| ← OOPMan left | 04:03 |
| → bremner_ joined | 04:03 |
| → warthog9 joined | 04:05 |
| → warthog19 joined | 04:07 |
| ← warthog9 left | 04:10 |
| ← nadirvardar left | 04:11 |
| → LongBeach joined | 04:11 |
| ← hvgotcodes left | 04:12 |
| → MikhX joined | 04:15 |
| → tty1 joined | 04:18 |
| → verto__ joined | 04:18 |
| → tty2 joined | 04:18 |
| ← verto_ left | 04:18 |
| → orbiting joined | 04:19 |
| → tty3 joined | 04:20 |
| → ajpiaNOU joined | 04:21 |
| ← iori left | 04:22 |
| ← tty2 left | 04:22 |
| → OOPMan joined | 04:22 |
| ← tty1 left | 04:23 |
| → tty2 joined | 04:23 |
| → tty1 joined | 04:29 |
| ← blorbx left | 04:31 |
| ← tty3 left | 04:32 |
| ← tty2 left | 04:32 |
| → tty2 joined | 04:33 |
| ← MikhX left | 04:33 |
| ← oc80z left | 04:35 |
| ← ymasory left | 04:36 |
| → oc80z joined | 04:36 |
| ← engla left | 04:37 |
| → drev1 joined | 04:37 |
| → dermoth_ joined | 04:39 |
| → tty3 joined | 04:40 |
| ← tty2 left | 04:42 |
| ← dermoth|home left | 04:42 |
| ← tty1 left | 04:42 |
| → tty1 joined | 04:42 |
| ← __sorin__ left | 04:43 |
| ← jfkw left | 04:45 |
| → blorbx joined | 04:47 |
| → sechrist joined | 04:48 |
| → f0i joined | 04:49 |
| → MikhX joined | 04:49 |
| ← tty3 left | 04:51 |
| ← tty1 left | 04:52 |
| ← ianawilson left | 04:57 |
| → caseymcg joined | 04:58 |
|
Escherial
| say i'm doing a merge and i just want to take any differences from the branch i'm merging when resolving conflicts | 04:58 |
|
| how would i go about doing that? :\ | 04:58 |
|
| i'm already halfway through manually merging them and it's a bit tedious | 04:58 |
| ← drizzd left | 05:00 |
| ← kukks left | 05:00 |
| ← cirwin left | 05:04 |
| → cesario joined | 05:05 |
| → bindaas joined | 05:09 |
| → angelsl joined | 05:10 |
| warthog19 → warthog9 | 05:14 |
| ← ajpiaNOU left | 05:16 |
| ← blorbx left | 05:22 |
| ← codeshah left | 05:23 |
| → pyroscope joined | 05:23 |
| ← falican left | 05:24 |
| → falican joined | 05:25 |
| → jjuran joined | 05:31 |
| → xiangfu joined | 05:33 |
| ← Guest1729 left | 05:33 |
| → dr_ick joined | 05:34 |
| → adaptee joined | 05:35 |
| ← adaptee left | 05:36 |
| → adaptee joined | 05:36 |
| → jablko joined | 05:37 |
| ← sechrist left | 05:41 |
| ← metcalfc left | 05:42 |
| → sechrist joined | 05:42 |
| → Corren joined | 05:42 |
| ← joel_falcou left | 05:44 |
| ← bauruine left | 05:47 |
| ← Corren left | 05:49 |
| yaotti → yaotti_aw | 05:51 |
| yaotti_aw → yaotti | 05:51 |
| ← falican left | 05:54 |
| → Guest1729 joined | 05:55 |
| ← Guest1729 left | 05:55 |
| → maleknet joined | 05:56 |
|
jmcantrell
| isn't there a way to echo the root directory of a repo or the directory that '.git' sits in? | 05:57 |
|
| Escherial: i think you can do something like git merge -s theirs | 06:02 |
|
Escherial
| jmcantrell: thanks :) i'll remember that for next time | 06:02 |
|
| for the time being, i just manually merged them | 06:02 |
| → blorbx joined | 06:06 |
| yaotti → yaotti_aw | 06:08 |
| ← [intra]lanman left | 06:09 |
| → iAsterisk joined | 06:10 |
| → aminpy joined | 06:14 |
| → Behi joined | 06:14 |
| → cirwin joined | 06:16 |
| ← OOPMan left | 06:16 |
| → genbattle joined | 06:19 |
| ← drev1 left | 06:20 |
| → legumbre_ joined | 06:22 |
| → tvw joined | 06:23 |
| → namemon joined | 06:23 |
| ← legumbre left | 06:23 |
| ← jablko left | 06:25 |
| ← bgerber left | 06:25 |
| ← TML left | 06:25 |
| → sirvaliance joined | 06:26 |
| ← dreiss left | 06:26 |
| ← sirvaliance left | 06:27 |
| ← orbiting left | 06:27 |
| → tore_ joined | 06:36 |
| → drev1 joined | 06:36 |
| ← heinrich5991 left | 06:37 |
| → bgerber joined | 06:37 |
| → TML joined | 06:38 |
| → heinrich5991 joined | 06:38 |
| → ggregori joined | 06:39 |
| → tyfighter joined | 06:44 |
| → Heimidal joined | 06:44 |
| ← tore_ left | 06:45 |
| → Dreadnaught joined | 06:45 |
| ← Dreadnaught left | 06:45 |
| → Dreadnaught joined | 06:45 |
| ← Kulrak left | 06:45 |
| → tore_ joined | 06:46 |
| ← blorbx left | 06:47 |
| ← davidcoallier left | 06:48 |
| → d0k joined | 06:51 |
| → urkud joined | 06:55 |
| ← amirite left | 07:04 |
| → amirite joined | 07:05 |
| ← smolyn left | 07:05 |
| → Raging_Hog joined | 07:08 |
| → hubertchang joined | 07:09 |
| → robertdavid joined | 07:10 |
| ← up_the_irons left | 07:12 |
| → ph^ joined | 07:13 |
| ← cesario left | 07:13 |
| → SimonNa joined | 07:13 |
| → glcrazy joined | 07:15 |
| → cesario joined | 07:16 |
| → Spockz joined | 07:20 |
| ← Raging_Hog left | 07:23 |
| → Raging_Hog joined | 07:23 |
| ← caseymcg left | 07:23 |
| → sirvaliance joined | 07:24 |
| → caseymcg joined | 07:26 |
| → up_the_irons joined | 07:27 |
| ← cthuluh left | 07:27 |
| ← sirvaliance left | 07:28 |
| ← guardian1 left | 07:29 |
| ← dr_ick left | 07:29 |
| → guardian joined | 07:29 |
| ← hubertchang left | 07:30 |
| ← warthog9 left | 07:31 |
| → ThomasLocke joined | 07:32 |
| → tewecske joined | 07:33 |
| ← tyfighter left | 07:34 |
| ← Spockz left | 07:36 |
| → envi joined | 07:36 |
| ← tvw left | 07:43 |
| ← ESphynx left | 07:54 |
| → Wizek_ joined | 07:56 |
| ← ajt left | 07:56 |
| ← alberto56 left | 07:57 |
| ← t3i left | 07:57 |
| → alberto56 joined | 07:57 |
| ← coldboot left | 07:58 |
| ← elb0w left | 07:58 |
| → simplechat joined | 07:58 |
| ← simplechat left | 07:58 |
| → simplechat joined | 07:58 |
| ← dermoth_ left | 07:58 |
| ← Mpenz left | 07:58 |
| → elb0w joined | 07:59 |
| ← Tommy[D] left | 07:59 |
| → coldboot joined | 07:59 |
| → Mpenz joined | 07:59 |
| → dermoth_ joined | 07:59 |
| → Tommy[D] joined | 08:01 |
| → vdv joined | 08:01 |
| ← darkthought left | 08:02 |
| → workmad3 joined | 08:03 |
| → serverhorror_ joined | 08:04 |
| → ESphynx joined | 08:04 |
| → darkthought joined | 08:05 |
| → amirite_ joined | 08:07 |
| ← workmad3 left | 08:08 |
| → leo2007 joined | 08:09 |
| → freshmilk joined | 08:09 |
| ← amirite left | 08:10 |
| ← verto__ left | 08:11 |
| ← drev1 left | 08:12 |
| adamholt → adamholt_away | 08:12 |
| adamholt_away → adamholt | 08:12 |
| ← Tommy[D] left | 08:13 |
| ← coldboot left | 08:14 |
| ← dermoth_ left | 08:14 |
| ← ggregori left | 08:14 |
| ← elb0w left | 08:14 |
| → dermoth_ joined | 08:15 |
| ← larva left | 08:16 |
| → Tommy[D] joined | 08:16 |
| → coldboot joined | 08:16 |
| → elb0w joined | 08:17 |
| → ch077179 joined | 08:18 |
| ← Mek left | 08:19 |
| → larva joined | 08:20 |
| → workmad3 joined | 08:20 |
| → verto__ joined | 08:23 |
| → warthog9 joined | 08:27 |
| → Mek joined | 08:28 |
| ← FrancisHaibin left | 08:32 |
| → n1ck3 joined | 08:32 |
| ← giallu left | 08:33 |
| ← v0n left | 08:35 |
| → jablko joined | 08:38 |
| ← jablko left | 08:38 |
| → jablko joined | 08:38 |
| ← seivan left | 08:39 |
| → Dave^| joined | 08:39 |
| ← workmad3 left | 08:40 |
| ← jjuran left | 08:40 |
| → Spockz joined | 08:44 |
| → seivan joined | 08:46 |
| ← dpino left | 08:46 |
| ← Spockz left | 08:47 |
| ← mdel left | 08:49 |
| → jjuran joined | 08:51 |
| ← darkthought left | 08:53 |
| ← cirwin left | 08:54 |
| → babilen joined | 08:55 |
| ← jepler left | 08:55 |
| → rendar joined | 08:55 |
| → TomyLobo joined | 08:56 |
| → cybernd joined | 08:57 |
| → superdmp joined | 08:57 |
| ← n1ck3 left | 08:59 |
| ← adaptee left | 08:59 |
| ← genbattle left | 08:59 |
| → airborn joined | 09:06 |
| → jepler joined | 09:07 |
| ← caseymcg left | 09:11 |
| adamholt → adamholt_away | 09:11 |
| adamholt_away → adamholt | 09:12 |
| ← cesario left | 09:13 |
| → drizzd joined | 09:14 |
| ← stamina left | 09:20 |
| → psoo joined | 09:25 |
| ← namemon left | 09:29 |
| ← leo2007 left | 09:29 |
|
setmeaway
| i have question. how can i remove invalid refspec from git repository? | 09:31 |
| ← Heimidal left | 09:31 |
| → caseymcg joined | 09:31 |
| → aruiz joined | 09:31 |
| ← rendar left | 09:31 |
| → pantsman joined | 09:33 |
| ← pantsman left | 09:33 |
| → pantsman joined | 09:33 |
|
setmeaway
| solved. git push origin :refs/for/master | 09:35 |
| → leo2007 joined | 09:36 |
| ← Derander left | 09:36 |
| → Derander joined | 09:37 |
| ← dermoth_ left | 09:37 |
| ← madewokherd left | 09:37 |
| ← Buglouse left | 09:38 |
| → dermoth_ joined | 09:39 |
| ← caseymcg left | 09:40 |
| → setmeaway2 joined | 09:40 |
| ← marc_kdab left | 09:40 |
| ← setmeaway left | 09:43 |
| ← shiba_yu36 left | 09:44 |
| → shiba_yu36 joined | 09:45 |
| → hubertchang joined | 09:45 |
| → saschagehlich joined | 09:46 |
| ← hubertchang left | 09:49 |
| ← freshmilk left | 09:51 |
| ← aruiz left | 09:51 |
| → bauruine joined | 09:52 |
| → tansell-laptop joined | 09:52 |
| → freshmilk joined | 09:54 |
| → workmad3 joined | 09:54 |
| → amerine joined | 09:56 |
| ← workmad3 left | 09:56 |
| → TrineLocke joined | 09:59 |
| ← TrineLocke left | 09:59 |
| → TrineLocke joined | 09:59 |
| → helvete joined | 09:59 |
| ← Savoxis left | 10:00 |
| ← TrineLocke left | 10:00 |
| → Savoxis joined | 10:00 |
| → dpy joined | 10:02 |
| ← jayne left | 10:05 |
| → RaceCondition joined | 10:07 |
| → saschpe joined | 10:07 |
| → Fullmoon joined | 10:09 |
| ← Fullmoon left | 10:09 |
| → jstemmer joined | 10:11 |
| → carl-eric joined | 10:12 |
| → radarek joined | 10:14 |
|
carl-eric
| Hi - is there a way for a hook (or something similar) to intercept a merge and possibly to prevent the merge? | 10:14 |
| ← freshmilk left | 10:14 |
| ← pantsman left | 10:16 |
| → pantsman joined | 10:16 |
| ← pantsman left | 10:16 |
| → pantsman joined | 10:16 |
|
bremner_
| intercept where? in your local repo? | 10:17 |
|
carl-eric
| bremner_: yes. | 10:17 |
|
| We have a number of similarly named branches (organization and hysterical reasons, don't ask), and we have a defined merge direction between the various branches | 10:18 |
|
bremner_
| you know you can just undo it, right? | 10:18 |
|
nevyn
| carl-eric: yes. | 10:18 |
|
carl-eric
| I'd like to recognize when I merge in the "wrong" direction by accident | 10:18 |
| → jayne joined | 10:18 |
| ← saschpe left | 10:18 |
|
carl-eric
| bremner, yes, I know it's undoable, but we've had it happen that it wasn't caught until a few days later, making it a bit more of a hassle | 10:18 |
|
nevyn
| ooh that'd be useful for me actually. | 10:19 |
|
carl-eric
| I couldn't find a hook that would let me do that (there is no pre-merge hook, for reasons unknown to me) | 10:19 |
|
nevyn
| you can hook incomming tho | 10:19 |
|
| you mean in your repo. | 10:20 |
|
carl-eric
| Yes. | 10:20 |
|
bremner_
| carl-eric: a heuristic would be to check in pre-commit | 10:20 |
| ← Octalot left | 10:20 |
|
carl-eric
| I'd like to catch it when I do "git merge <wrong-branch>" | 10:20 |
|
| Let me have a look at pre-commit | 10:20 |
|
bremner_
| oh, and use --no-fast-forward, so you always get a commit | 10:20 |
|
| not ideal perhaps | 10:20 |
| → saschpe joined | 10:21 |
|
carl-eric
| Ah, yes this only works when there are no fast-forwards. Those are nice to have though | 10:21 |
|
bremner_
| hmm. No clever ideas. You could replace git-merge with a wrapper... | 10:22 |
|
carl-eric
| I tried that - but I can't alias it (existing commands can't be shadowed by a git alias) | 10:22 |
|
nevyn
| carl-eric: read throught the pre-rebase.sample. | 10:22 |
|
| might have some ideas. | 10:23 |
|
bremner_
| carl-eric: well, you can always put a script git-merge in your path | 10:24 |
|
carl-eric
| Hm, I might try *post*-merge and just reset back to before the merge. | 10:24 |
|
nevyn
| carl-eric: rollback if it now has commits that are not in the branch it should have come from ? | 10:24 |
|
carl-eric
| nevyn: Something along those lines, yes. | 10:25 |
|
| I'm going to try something and then post it here if it works. | 10:25 |
|
bremner_
| personally I'd just report an error, rather than trying to reset from a hook | 10:26 |
|
carl-eric
| Well yes, I'm not going to silently reset ;-) Ideally I would like it to recognize where the merge is coming from, and if this particular merge hasn't been done before, ask whether to proceed. | 10:27 |
| → freshmilk joined | 10:28 |
| → TrineLocke joined | 10:28 |
| ← tansell-laptop left | 10:29 |
| → seivan_ joined | 10:29 |
| → genbattle joined | 10:30 |
|
carl-eric
| bleh, post-merge is not called when there was a conflict. | 10:31 |
| ← freshmilk left | 10:31 |
| ← seivan left | 10:31 |
| → _iron joined | 10:33 |
| → io2 joined | 10:34 |
| ← TrineLocke left | 10:35 |
|
albel727
| hmm, isn't that kind of a bug? I guess, git should invoke post-merge on commit with several heads. | 10:36 |
|
nevyn
| albel727: it'd be nice if there were a pre-merge hook | 10:37 |
| → plause joined | 10:37 |
| → freshmilk joined | 10:38 |
| → awilkins joined | 10:38 |
|
carl-eric
| from the githooks manpage, about post-merge: "This hook cannot affect the outcome of git merge and is not executed, if the merge failed due to conflicts." | 10:38 |
|
| Yes, a pre-merge hook would be very nice. | 10:38 |
| ← plause left | 10:38 |
|
albel727
| nevyn: well, there is. kind of. prepare-commit-msg. | 10:39 |
| ← RaceCondition left | 10:39 |
|
albel727
| it receives, what kind of commit is pending. regular, merge etc. | 10:39 |
|
| and can abort committing. | 10:40 |
|
carl-eric
| That looks interesting. Maybe prepare-commit-msg together with post-merge can do it. | 10:40 |
| → mbroeker joined | 10:40 |
|
carl-eric
| Still feels like a kludge, but not having pre-merge, I'll give it a shot. | 10:41 |
| → ningia joined | 10:41 |
| ← babilen left | 10:44 |
|
albel727
| well, a more honest approach might be pre-commit hook with checking, whether .git/MERGE_HEAD exists. | 10:44 |
| ← freshmilk left | 10:44 |
| → babilen joined | 10:45 |
| → RaceCondition joined | 10:46 |
|
carl-eric
| albel727: yes, but that won't fire if it's a fast-forward merge | 10:46 |
| ← tro left | 10:46 |
| → Anubisss joined | 10:46 |
|
carl-eric
| that's where I'd fall back to post-merge | 10:47 |
|
albel727
| oh. well, I'm pretty sure prepare-commit-msg will also not detect fast-forwards. | 10:47 |
|
| you can force --non-ff merges. | 10:47 |
| ← rgr left | 10:48 |
|
albel727
| (btw) | 10:48 |
|
carl-eric
| I know, but I'd like to have ff merges. | 10:49 |
|
| I'm going to try and see whether post-merge fires for ff. | 10:49 |
|
cbreak
| fast forward merges are not real merges | 10:49 |
| → Spockz joined | 10:51 |
| → tro joined | 10:51 |
|
superdmp
| when I see a list of deleted files, like: http://dpaste.com/540020/ how can I delete them all at once using git rm? | 10:52 |
| → brodo joined | 10:52 |
|
carl-eric
| superdmp: git ls-files --deleted | xargs -I file git rm "file" | 10:53 |
|
superdmp
| carl-eric: wow, that's one mouthful of syntax! | 10:53 |
|
carl-eric
| That's why I put it in a script as "git-rma" in my path | 10:54 |
|
| Now I can just say: git rma | 10:54 |
|
albel727
| superdmp: you man git add -u | 10:54 |
|
jast
| superdmp: [automatic message] the 'git-add' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-add.html | 10:54 |
|
superdmp
| i can imagine | 10:54 |
|
albel727
| superdmp: or better yet, you learn of git add --all. | 10:55 |
|
superdmp
| actually, git add -u seems not to touch them | 10:56 |
|
carl-eric
| albel727: the git add options all assume that you just want everything added, on top of removing the deleted files. | 10:56 |
|
superdmp
| (I'm using an old git, btw) | 10:56 |
|
albel727
| superdmp: that's because you forgot to add pathspec. do "git add -u ." (note the dot) in top level dir. | 10:56 |
|
carl-eric
| with my rma script I can just have it rm everything I deleted, but still pick what I want added | 10:56 |
|
superdmp
| albel727: no, I did git add -u . | 10:57 |
|
| oh | 10:57 |
|
| ahem | 10:57 |
|
| I can't read | 10:57 |
|
albel727
| superdmp: they're changes to be committed already. | 10:57 |
|
superdmp
| albel727: yes | 10:58 |
|
| thanks guys | 10:58 |
| → Fullmoon joined | 11:01 |
| → hubertchang joined | 11:01 |
| ← babilen left | 11:01 |
| ← RaceCondition left | 11:03 |
| → RaceCondition joined | 11:06 |
| ← s0undt3ch left | 11:08 |
| → s0undt3ch joined | 11:10 |
| → tansell-laptop joined | 11:12 |
| ← ThomasLocke left | 11:12 |
| ← aminpy left | 11:15 |
| ← carl-eric left | 11:15 |
| → aminpy joined | 11:16 |
| ← tansell-laptop left | 11:18 |
| → mkramer1 joined | 11:18 |
| ← hubertchang left | 11:18 |
| ← Escherial left | 11:19 |
| → engla joined | 11:19 |
| → lolfrenz joined | 11:19 |
| → canton7 joined | 11:20 |
| ← mkramer left | 11:20 |
| → Prism joined | 11:21 |
| → mkramer joined | 11:21 |
| → babilen joined | 11:21 |
| ← pantsman left | 11:21 |
| → freshmilk joined | 11:22 |
| ← mkramer1 left | 11:23 |
| ← babilen left | 11:23 |
| → babilen_ joined | 11:23 |
| ← babilen_ left | 11:26 |
| → babilen joined | 11:27 |
| ← babilen left | 11:27 |
| ← jjuran left | 11:27 |
| ← dpy left | 11:31 |
| → berserkr joined | 11:32 |
| → LekeFly joined | 11:33 |
| ← f0i left | 11:35 |
| → babilen joined | 11:35 |
| ← Fullmoon left | 11:35 |
| ← mkramer left | 11:40 |
| ← Rotham left | 11:40 |
| → mkramer joined | 11:40 |
| ← brodo left | 11:40 |
| → Rotham joined | 11:40 |
| → Yuuhi joined | 11:42 |
| ← ph^ left | 11:44 |
| → ph^ joined | 11:45 |
| → f0i joined | 11:48 |
| → jophish joined | 11:49 |
| ← psoo left | 11:49 |
| ← engla left | 11:54 |
| → engla joined | 11:54 |
| → FrancisHaibin joined | 11:55 |
| → Juo joined | 12:01 |
| ← leo2007 left | 12:02 |
| → hvoigt joined | 12:04 |
| → brodo joined | 12:07 |
| ← saschpe left | 12:09 |
| ← Yuuhi left | 12:10 |
| → theoretical joined | 12:11 |
| → jfkw joined | 12:11 |
| ← MikhX left | 12:14 |
| ← f0i left | 12:16 |
| ← genbattle left | 12:17 |
| → sion2k joined | 12:21 |
| → gebbione joined | 12:24 |
|
gebbione
| hi all, beginners question ... i have a bare repo somewhere and i want to fetch it so that i can work on the proj locally | 12:25 |
|
| do i need to create the repo locally first and then fetch from the remote bare repo? | 12:25 |
|
| or am i supposed to just fetch it and git will recreate the local copy | 12:26 |
| → deuterium joined | 12:27 |
| → rgr joined | 12:29 |
| ← FrancisHaibin left | 12:29 |
|
daethorian
| gebbione: Just clone it and git will create it for you. | 12:30 |
| ← brodo left | 12:33 |
| → reliability joined | 12:33 |
|
reliability
| hi | 12:33 |
|
gebbione
| daethorian thanks | 12:33 |
| → brodo joined | 12:34 |
| ← serverhorror_ left | 12:35 |
| ← urkud left | 12:37 |
| → f0i joined | 12:37 |
| ← tango_ left | 12:39 |
| → tango_ joined | 12:40 |
| → namemon joined | 12:41 |
| ← hyperair left | 12:41 |
| → hyperair joined | 12:42 |
| Teo`` → Teo` | 12:43 |
| ← sraue left | 12:43 |
| → urkud joined | 12:44 |
| → jjuran joined | 12:46 |
| → _Qman joined | 12:49 |
| → serverhorror_ joined | 12:54 |
| → berserkr1 joined | 12:55 |
| ← aminpy left | 12:56 |
| ← LongBeach left | 12:56 |
|
Aleric
| I just did a commit, but I wanted to do an amend... how can I correct that? I also have local changes in my working directory that have to be preserved but which weren't staged. | 12:56 |
| ← berserkr left | 12:57 |
|
Aleric
| What I'd like it to just undo the last commit, and then commit --amend it . | 12:57 |
|
rudi_s
| Aleric: git reset HEAD~ and then git add ... git commit --amend | 12:57 |
|
Aleric
| I have to do the add again? | 12:57 |
|
| Can I reset it so it ends up staged? | 12:58 |
|
rudi_s
| Aleric: I think so - if you have uncommitted changes in your repository do a git stash first. | 12:58 |
| → leo2007 joined | 12:58 |
|
rudi_s
| Ah, I think it's git reset --soft - but I'm not sure. | 12:59 |
|
Aleric
| What about, ... yeah | 12:59 |
|
rudi_s
| Yeah, it's --soft. | 12:59 |
| berserkr1 → berserkr | 12:59 |
|
rudi_s
| Man page mentions it. | 12:59 |
|
Aleric
| So, git reset --soft HEAD~ | 12:59 |
|
| ? | 12:59 |
|
rudi_s
| Yes. | 12:59 |
|
lolfrenz
| that's ironic | 12:59 |
|
| fucking up when trying to fix previous fuckup | 12:59 |
|
Aleric
| It's not like that.. I thought I already pushed the previous commit - but then after my intentional commit I found out it wasn't, so I changed my mind. | 13:00 |
| → SimonP86 joined | 13:02 |
| → rolfb joined | 13:02 |
| ← _iron left | 13:03 |
| → whaley joined | 13:03 |
| ← berserkr left | 13:04 |
| → berserkr joined | 13:04 |
| ← brodo left | 13:04 |
| → brodo joined | 13:05 |
| ← maleknet left | 13:05 |
| → RichardBronosky_ joined | 13:07 |
| → sraue joined | 13:07 |
| ← RichardBronosky left | 13:07 |
| → Yuuhi joined | 13:11 |
| ← sion2k left | 13:12 |
| ← Dreamer3 left | 13:12 |
| ← urkud left | 13:14 |
| ← bidi left | 13:14 |
| ← berserkr left | 13:14 |
| → Yuuhi` joined | 13:16 |
| → Chillance joined | 13:17 |
| → berserkr joined | 13:19 |
| → oriba joined | 13:20 |
| → crakdmirror joined | 13:20 |
| ← brodo left | 13:20 |
| ← Yuuhi left | 13:20 |
| ← hvoigt left | 13:21 |
| ← oriba left | 13:21 |
| → __name__ joined | 13:22 |
| ← __name__ left | 13:22 |
| → __name__ joined | 13:22 |
| → berserkr1 joined | 13:22 |
| ← berserkr1 left | 13:22 |
| → khmarbaise joined | 13:26 |
| ← verto__ left | 13:33 |
| ← namemon left | 13:36 |
| ← seivan_ left | 13:37 |
| → hubertchang joined | 13:38 |
| → barf00 joined | 13:45 |
| ChanServ set mode: +v | 13:46 |
|
barf00
| hi, how can I revert something that has been committed to master but not yet pushed? | 13:46 |
| → sion2k joined | 13:48 |
|
mastro
| barf00, if it is the last commit and you are on master you can change it and to a commit --amend | 13:48 |
|
canton7
| barf00, you've got two options. You can either remove the thing permanently from history, or create a commit that undoes the changes you want to undo | 13:49 |
|
mastro
| if you want to get rid of the last commit (all) you can reset: git reset --hard HEAD~ | 13:49 |
| → Saur joined | 13:49 |
|
mastro
| if it is a commit back in the log you can use git rebase interactive | 13:49 |
|
canton7
| if you want to create a commit that undoes the changes, look up git-revert | 13:49 |
| → workmad3 joined | 13:51 |
| → thm joined | 13:52 |
|
barf00
| thanks and bye :) | 13:52 |
| ← barf00 left | 13:52 |
| → Adaptee joined | 13:58 |
| ← radarek left | 14:01 |
| → aminpy joined | 14:02 |
| → __sorin__ joined | 14:02 |
| ← workmad3 left | 14:04 |
| ← freshmilk left | 14:05 |
| → ianawilson joined | 14:05 |
| ← ianawilson left | 14:05 |
| zz_rickbradley → rickbradley | 14:07 |
| ← hubertchang left | 14:08 |
| → tyteen4a03 joined | 14:11 |
| ← rickbradley left | 14:11 |
| → n1ck3 joined | 14:15 |
| ← dim_ left | 14:23 |
| → dim_ joined | 14:25 |
| → the_sniff joined | 14:26 |
|
the_sniff
| i made a git bare (hub) and a git regular repo's. added a post-update script between them | 14:27 |
|
| in one of this "dev" env i have a "Merge branch 'master' of ../hub" | 14:27 |
|
| everytime the script ran | 14:27 |
|
| in another one i dont | 14:27 |
|
| why is this? | 14:27 |
| ← superdmp left | 14:27 |
| ← jjuran left | 14:29 |
|
thiago_home
| I guess the other one did a fast-forward | 14:29 |
| → gusnan joined | 14:32 |
| → seivan joined | 14:32 |
| → jshanab_wcw joined | 14:32 |
|
jshanab_wcw
| I have msysgit installed on my win7 64bit machine and am in the gitbash shell. I can't run a script because it does not have the execute flag set, so I try to chmod it and it won't change. No error, just no effect. Any suggestions? | 14:34 |
|
the_sniff
| thiago_home where is that defined? i do a regular pull. where is the default in it? | 14:34 |
| ← RobertLaptop left | 14:35 |
| ← kermit left | 14:35 |
|
canton7
| jshanab_wcw, windows file associations? | 14:36 |
|
| right-click, open with, select your preferred intepreter and make sure "always use this..." is checked | 14:37 |
|
thiago_home
| the_sniff: the default is to do a fast-forward if it can be done | 14:37 |
|
jshanab_wcw
| I am at the command prompt typing chmod +x ./filename, how do associations come into play? | 14:37 |
|
the_sniff
| thiago_home i never touched that definition so why is one doing a fast-forward and the other is doing recursive? | 14:37 |
| ← gebbione left | 14:37 |
|
canton7
| windows doesn't really support chmod -- file permissions aren't done in the same way at all | 14:37 |
|
thiago_home
| the_sniff: because one can do a fast-forward and the other can't | 14:37 |
| ← d0k left | 14:37 |
|
canton7
| there's no way to make a file as "executable" | 14:38 |
|
| you just tell windows what program you'd like to open that sort of file with | 14:38 |
|
| and it'll use that program when you next try and open the file | 14:38 |
|
the_sniff
| thiago_home why wouldnt it if its the exact same files in both sides? | 14:38 |
|
thiago_home
| the_sniff: probably because one the one that didn't do a fast-forward made the fast-forward possible | 14:38 |
|
| the_sniff: are you starting from the same commit? | 14:38 |
|
| the_sniff: merging the same commit? | 14:38 |
|
the_sniff
| yes its a live dev env | 14:38 |
|
| yes | 14:38 |
|
| always | 14:38 |
| → Corren joined | 14:38 |
|
thiago_home
| are you sure? | 14:39 |
|
| let me repeat: are you merging the same commit in both cases, starting from the same commit? | 14:39 |
|
jshanab_wcw
| canton7 other files have the execute bit set and work fine :-) Newer windblows file systems have equivilent, does gitbash not yet support this? How do they instructions for chmoding the ssh file get followed? | 14:39 |
|
the_sniff
| you mean merging the sdame comming in both all 4 repos? then no | 14:40 |
|
canton7
| jshanab_wcw, not come across that ever working, so afraid I can't help in that case | 14:40 |
|
thiago_home
| the_sniff: then that's the difference | 14:40 |
|
| the_sniff: if a fast-forward is possible, a fast-forward will be made. | 14:40 |
|
jshanab_wcw
| Too bad. I was really enjoying having a decent shell in windows for a change ;-) | 14:41 |
|
the_sniff
| thiago_home why would a fast-forward not be possible | 14:42 |
| → smolyn joined | 14:42 |
|
the_sniff
| is the merge is always for the same versions? | 14:42 |
|
jshanab_wcw
| canton7. But, duh, it is a cmd script, LOL so hwo do I run that from gitbash LOL. (more coffee is indicated) | 14:42 |
|
the_sniff
| i mean when i do A -> B. B was the same as A was before | 14:42 |
|
| same goes for the other case, i do X -> Y. Y was the same as X was before | 14:43 |
|
thiago_home
| the_sniff: a fast-forward is not possible if the current commit is not an ancestor commit of what you're trying to merge | 14:43 |
| → joel_falcou joined | 14:43 |
|
canton7
| jshanab_wcw, if you've got testy.cmd, just type "testy.cmd" and hit enter ;0 | 14:43 |
|
the_sniff
| thiago_home so if i dont start from a "git clone" then a fast-forward is not possible? | 14:44 |
|
jshanab_wcw
| canton7. That won't work, bash doesnot know what to make, I have to switch to a command prompt. I was in GIT-BASH | 14:44 |
|
thiago_home
| the_sniff: it depends on the commit you're in, not how you got there | 14:45 |
|
the_sniff
| well the thing is it "should" be an 'anscetral' commit | 14:45 |
|
canton7
| jshanab_wcw, I just tried running a .cmd file from git bash, and it was reasonable happy..... although, thinking about it, there won't have been any batchfile-specific stuff in there | 14:45 |
|
the_sniff
| in the above example | 14:45 |
|
| B was git init'd and git commit -a'd | 14:45 |
|
| and A pulled from it | 14:46 |
|
| then A was changes and B started pulling from it | 14:46 |
|
| nothig else | 14:46 |
|
| just A changed | 14:46 |
|
jshanab_wcw
| canton7. right, I do not know what I was thinking. It would be an interesting tol for the bash shell, to run .bat commands. | 14:46 |
|
canton7
| jshanab_wcw, true :) | 14:47 |
| ← glcrazy left | 14:48 |
|
jshanab_wcw
| I am using a framework that uses cmake to generate build files on linux,mac and windows, but the prep script is in each OS's shell language. | 14:48 |
|
thiago_home
| the_sniff: that's why | 14:48 |
|
the_sniff
| im missing the point | 14:49 |
| → glcrazy joined | 14:49 |
|
thiago_home
| the_sniff: a fast-forward is possible if the current commit is an ancestor of the commit being merged | 14:49 |
|
| the_sniff: you've just described that case | 14:49 |
|
| when A pulled B, B made a recursive merge | 14:50 |
|
| now that repository is in commit C | 14:50 |
|
| A is an ancestor of C | 14:50 |
|
| so when you pull it into A, it's a fast-forward | 14:50 |
|
the_sniff
| so is there a way to flip it around> | 14:51 |
|
| ? | 14:51 |
| ← Err404NotFound left | 14:51 |
|
thiago_home
| yes, don't do what you're doing | 14:51 |
|
| invert what you're doing | 14:51 |
|
the_sniff
| but A is a bare repo | 14:51 |
| ← jshanab_wcw left | 14:51 |
|
the_sniff
| how would i insert the files locally into it? | 14:52 |
|
thiago_home
| then use a non-bare | 14:52 |
|
the_sniff
| B is non bare | 14:52 |
|
| A is bare so that everyone could commit into it | 14:52 |
|
thiago_home
| you cannot commit in a bare | 14:52 |
|
| you can push to it | 14:52 |
|
the_sniff
| yeah i meant push my bad | 14:52 |
|
thiago_home
| why do you want to invert? | 14:52 |
|
the_sniff
| this is the type of git im using http://joemaller.com/990/a-web-focused-git-workflow/ | 14:53 |
| ← mtx_init left | 14:53 |
|
the_sniff
| i think this would explain better then me | 14:53 |
| → mtx_init joined | 14:53 |
|
thiago_home
| irrelevant | 14:54 |
|
the_sniff
| why? i want to invert because A is the 'source' B is just the way apache see's it | 14:55 |
|
thiago_home
| why? | 14:55 |
|
| why does it matter? | 14:55 |
|
the_sniff
| i get a lot of logs for 'git merge of X...' and i dont want them | 14:56 |
| → brian_g joined | 14:56 |
| → radarek joined | 14:57 |
|
thiago_home
| then use rebase | 14:57 |
|
the_sniff
| after i push i should do a rebase on A to make it the same as B? | 14:57 |
|
thiago_home
| don't pull; rebase | 14:58 |
|
| or pull --rebase | 14:59 |
|
the_sniff
| do a pull --rebase in B everytime i want to get from A? | 15:00 |
| → Fuwex joined | 15:01 |
|
thiago_home
| yes | 15:01 |
|
the_sniff
| ok thank you i will give this a try | 15:01 |
| ← Prism left | 15:04 |
|
canton7
| the_sniff, you may like the config key branch.autosetuprebase | 15:06 |
| ← awilkins left | 15:07 |
|
the_sniff
| thiago_home lol pull gives me error: unknown option `rebase' :S | 15:07 |
|
thiago_home
| which git version are you using? | 15:08 |
|
the_sniff
| git version 1.7.2.5 | 15:08 |
|
thiago_home
| git pull --rebase should work in that version | 15:08 |
|
| it does a fetch followed by a rebase | 15:09 |
|
the_sniff
| http://pastebin.com/qrhBwTnP | 15:10 |
|
wereHamster
| the_sniff: git pull --rebase hub master | 15:10 |
|
the_sniff
| haha | 15:11 |
|
| ok thanks | 15:11 |
|
| btw should git pull --ff hub master do the same? | 15:11 |
| → mdel joined | 15:11 |
|
wereHamster
| no | 15:11 |
|
thiago_home
| --ff is only to negate a previous --no-ff | 15:11 |
|
| it doesn't make a fast-forward possible where one wasn't before | 15:11 |
| → RobertLaptop joined | 15:12 |
|
the_sniff
| ok | 15:12 |
|
| thanks | 15:12 |
| → workmad3 joined | 15:12 |
| ← dr_win left | 15:15 |
| → d0k joined | 15:22 |
| ← mtx_init left | 15:23 |
| → mtx_init joined | 15:23 |
| → n3m joined | 15:25 |
| ← n3m left | 15:26 |
| → kayue joined | 15:30 |
| ← ph^ left | 15:31 |
| ← the_sniff left | 15:31 |
| → ph^ joined | 15:33 |
| → coldboot|home joined | 15:34 |
| ← kayue left | 15:34 |
| → kukks joined | 15:36 |
| → psoo joined | 15:36 |
| → iori joined | 15:37 |
| ← jfelchner left | 15:37 |
| ← jophish left | 15:38 |
| → jophish_ joined | 15:38 |
| ← Adaptee left | 15:38 |
| → pantsman joined | 15:39 |
| ← pantsman left | 15:39 |
| → pantsman joined | 15:39 |
| ← __name__ left | 15:39 |
| → dannas joined | 15:40 |
| ← xiangfu left | 15:41 |
| → jorfan joined | 15:42 |
| → kermit joined | 15:43 |
| ← psoo left | 15:45 |
| ChanServ set mode: +v | 15:46 |
|
jorfan
| Hello everyone ! | 15:46 |
| ← dannas left | 15:46 |
| ← Corren left | 15:47 |
|
CareBear\
| yasso | 15:47 |
| → Buglouse joined | 15:48 |
| ← selckin left | 15:49 |
| ← jablko left | 15:51 |
| ← flaguy48 left | 15:52 |
| ← f0i left | 15:53 |
| → JohnBat26 joined | 15:55 |
| ← workmad3 left | 15:55 |
|
jorfan
| guys can some1 help me with 1 modification... | 15:56 |
|
canton7
| can try... | 15:56 |
|
jorfan
| im trying to figure out how to make a custom build of the GAIA MANAGER FOR PS3 | 15:57 |
|
| i just want to remove a button thats all :( | 15:57 |
| → davidcoallier joined | 15:57 |
| → dannas joined | 15:57 |
|
canton7
| jorfan, sounds like you might have more luck in a more related channel | 15:58 |
| → dreiss joined | 15:58 |
|
jorfan
| :( | 15:58 |
| ← jophish_ left | 15:58 |
|
CareBear\
| jorfan : how on earth did you end up in #git ? :) | 15:59 |
|
| jorfan : sorry, we have no idea about that stuff | 15:59 |
| → aquabu joined | 15:59 |
|
jorfan
| well, i was reading on the authors notices.. and in some part it said that he uses #git to update some things. | 16:00 |
|
| so i downloadeed git. opened his GPL project | 16:00 |
|
| and stuck on here | 16:00 |
| → Corren joined | 16:00 |
| → workmad3 joined | 16:01 |
|
CareBear\
| git is the source code management tool | 16:01 |
|
canton7
| jorfan, git is the system he uses to version his files. it has nothing to do with the content of those files | 16:01 |
|
jorfan
| sorry guys. now i got in | 16:02 |
|
canton7
| it's a bit like asking microsoft, because he happened to write his project in notepad | 16:02 |
|
| :P | 16:02 |
|
jorfan
| yeap. sorry obout it | 16:02 |
|
| :P | 16:02 |
| ← jorfan left | 16:02 |
|
canton7
| no worries :) | 16:02 |
| ← dreiss left | 16:03 |
| ← paeva left | 16:03 |
| ← serverhorror_ left | 16:03 |
| ← Pilif12p left | 16:03 |
|
CareBear\
| canton7 : so you are like, microsoft? | 16:04 |
|
| CareBear\ never knew | 16:04 |
|
canton7
| I was stuck for a tool which he both knows, and knows the maker of :P | 16:04 |
|
| canton7 is quite glad this isn't #microsoft | 16:04 |
| → whyking joined | 16:05 |
| → flaguy48 joined | 16:05 |
|
CareBear\
| canton7 : would you consider it a bug in git if git am gets confused by arbitrary commit messages? | 16:06 |
| ← rgr left | 16:06 |
| → ISF joined | 16:07 |
|
canton7
| random question? depends how arbitrary | 16:07 |
| ← seivan left | 16:08 |
| ← workmad3 left | 16:08 |
| → urkud joined | 16:08 |
| → madewokherd joined | 16:09 |
|
CareBear\
| canton7 : should it? | 16:09 |
| ← Corren left | 16:09 |
| → rendar joined | 16:10 |
| → dv310p3r joined | 16:10 |
|
CareBear\
| canton7 : the problem I had was with commit messages containing what looks like a patch, which trips git am up | 16:11 |
|
canton7
| if the commit message screws with the markers that git am uses, then it's excusable i would have though? Not used git am / format-patch much though | 16:11 |
|
CareBear\
| what are those markers? | 16:12 |
|
canton7
| yeah, can see how that would trip it up. The man page says that "---\n", "diff -" and "Index: " are markers of the start of the patch | 16:12 |
|
CareBear\
| is it the --- ? | 16:12 |
| → f0i joined | 16:12 |
|
CareBear\
| ah, either of the three | 16:13 |
|
canton7
| i would have thought that git format-patch would escape them, but that's a complete assumption | 16:13 |
|
CareBear\
| I would have expected the same | 16:13 |
|
| or.. not neccessarily escaped, because that is ugly | 16:13 |
| → Eaven joined | 16:13 |
|
canton7
| at least a warning | 16:13 |
|
CareBear\
| but I would expect that output from format-patch would always work with am | 16:13 |
|
| canton7 goes in search of answers | 16:13 |
| → workmad3 joined | 16:14 |
|
CareBear\
| awesome :) | 16:14 |
|
| thank you so much! | 16:14 |
| → freshmilk joined | 16:14 |
| ← robertdavid left | 16:15 |
| ← apassi left | 16:15 |
| → apassi joined | 16:17 |
| → Gunni joined | 16:19 |
| → seivan joined | 16:19 |
| ← empity left | 16:19 |
| ← f0i left | 16:20 |
| → SimonP86_ joined | 16:20 |
| ← Ramblurr left | 16:20 |
| ← leo2007 left | 16:20 |
| → Ramblurr joined | 16:21 |
| → SimonP86__ joined | 16:21 |
| ← SimonP86 left | 16:23 |
| ← __sorin__ left | 16:23 |
| → f0i joined | 16:24 |
| → Corren joined | 16:24 |
| → VaL_ joined | 16:25 |
| ← SimonP86_ left | 16:25 |
| ← angelsl left | 16:26 |
| ← aminpy left | 16:28 |
|
canton7
| CareBear\, hmmm. I can confirm that git format-patch does indeed leave "---" intact, with no warning. There doesn't seem to be any vaguely related flags, and I'm not familiar enough with the git source to find where emails are put together | 16:28 |
| ← Corren left | 16:29 |
|
CareBear\
| canton7 : mm | 16:29 |
|
| git grep Subject: ? :) | 16:29 |
| ← whaley left | 16:32 |
| → OOPMan joined | 16:34 |
|
canton7
| CareBear\, well it looks like it's builtin/log.c, somewhere around line 800 | 16:35 |
| → nevyn^_ joined | 16:35 |
| → noonoooo joined | 16:35 |
| ← jfkw left | 16:40 |
| → mando joined | 16:40 |
| ← nevyn^_ left | 16:43 |
| ← madewokherd left | 16:44 |
|
CareBear\
| canton7 : question is if the issue is best handled at input or output | 16:44 |
|
| canton7 : to handle on input requires either seeking or buffering the full patch | 16:44 |
|
| this might be new | 16:44 |
|
| and is undesirable of course | 16:45 |
|
canton7
| CareBear\, well it's more complex... can also refuse to commit messages which might confused format-patch, but i don't like this | 16:45 |
| → leo2007 joined | 16:45 |
|
canton7
| i'd be tempted to deal with it in format-patch. the patch emails follow a set format, and format-patch allows you to violate this with no warnings | 16:46 |
| → aminpy joined | 16:48 |
| → brodo joined | 16:50 |
|
jmcantrell
| isn't there a way to echo the root directory of a repo or the directory that '.git' sits in? | 16:50 |
| ← seivan left | 16:50 |
| ← workmad3 left | 16:51 |
|
CareBear\
| canton7 : OTOH patches can come from other sources too, right? | 16:51 |
|
canton7
| jmcantrell, I've got a ruby snippet -- might be useful in some way | 16:52 |
|
| begin | 16:52 |
|
| break if Dir.entries(".").include?(".git") | 16:52 |
|
| cwd = Dir.pwd | 16:52 |
|
| Dir.chdir("..") | 16:52 |
|
| @path_to_root << "../" | 16:52 |
|
| end while cwd != Dir.pwd | 16:52 |
| ← babilen left | 16:52 |
|
drizzd
| jmcantrell: git rev-parse --git-dir | 16:52 |
|
CareBear\
| canton7 : at the very least it's a nice side-effect that git am accepts an email with an inline patch, and just works<tm> | 16:52 |
| ← urkud left | 16:52 |
|
drizzd
| or git rev-parse --show-cdup | 16:52 |
|
jmcantrell
| drizzd: very nice. thank you | 16:53 |
| ← kpreid left | 16:54 |
| ← VaL_ left | 16:54 |
| → urkud joined | 16:54 |
|
canton7
| CareBear\, am I right in thinking that git-format-patch is the only tool that creates an email? and that the issue only appears when parsing patches in emails? | 16:55 |
|
CareBear\
| canton7 : lots of tools can create emails with inline patches | 16:56 |
|
| canton7 : but within git there's also rebase, which might or might not use format-patch as-is | 16:57 |
| ← radarek left | 16:57 |
| → Dreamer3 joined | 16:57 |
| ← Dreamer3 left | 16:57 |
|
CareBear\
| canton7 : and there's also send-email | 16:57 |
| → nevyn^_ joined | 16:58 |
|
canton7
| CareBear\, I thought git-send-email took patches generated by format patch, and just sent them? | 16:58 |
| ← gusnan left | 16:59 |
|
CareBear\
| canton7 : send-email does not need patches as input | 16:59 |
| → workmad3 joined | 16:59 |
| → Dreamer3 joined | 16:59 |
| ← Juo left | 17:00 |
| → Juo joined | 17:00 |
| → serverhorror_ joined | 17:01 |
| → robertdavid joined | 17:03 |
| → babilen joined | 17:03 |
| → mishok13 joined | 17:03 |
| ← workmad3 left | 17:04 |
| → radarek joined | 17:04 |
| → codeshah joined | 17:05 |
| ← zhengyang left | 17:07 |
|
canton7
| CareBear\, it looks like send-email uses format-patch internally | 17:07 |
| → zhengyang joined | 17:07 |
|
canton7
| git-send-email.perl line 537 | 17:07 |
| ← madsy left | 17:08 |
|
CareBear\
| ok | 17:08 |
|
| makes sense | 17:09 |
|
| I just was not sure | 17:09 |
| → madsy joined | 17:09 |
| ← madsy left | 17:09 |
| → madsy joined | 17:09 |
| → unhygienix joined | 17:10 |
| → dr_win joined | 17:10 |
| → gusnan joined | 17:10 |
| ← gusnan left | 17:13 |
| ← phaedrix left | 17:13 |
|
canton7
| CareBear\, not sure what rebase uses (still need to learn the ins and outs of the plumbling), but I'd be surprised if it used the format-patch syntax | 17:13 |
| → phaedrix joined | 17:13 |
|
wereHamster
| jmcantrell: git rev-parse --show-cdup | 17:14 |
| → jfkw joined | 17:14 |
| ← phaedrix left | 17:14 |
| ← madsy left | 17:15 |
| → zhengyang_ joined | 17:15 |
| → madsy joined | 17:15 |
| ← madsy left | 17:15 |
| → madsy joined | 17:15 |
| ← Saur left | 17:15 |
| → phaedrix joined | 17:16 |
| ← shiba_yu36 left | 17:16 |
| ← Dave^| left | 17:16 |
| ← KKA left | 17:17 |
| ← zhengyang left | 17:17 |
| zhengyang_ → zhengyang | 17:17 |
| ← sion2k left | 17:18 |
| → KKA joined | 17:18 |
| → Dave^| joined | 17:19 |
| ← nevyn^_ left | 17:19 |
| → ereslibre joined | 17:20 |
| ← zhengyang left | 17:20 |
| ← radarek left | 17:20 |
| ← davidcoallier left | 17:22 |
| → cesario joined | 17:24 |
| → Phabtar joined | 17:26 |
| ChanServ set mode: +v | 17:27 |
|
Phabtar
| Hi! | 17:27 |
| → Corren joined | 17:27 |
| ← babilen left | 17:28 |
| → davidcoallier joined | 17:29 |
| → lut4rp joined | 17:29 |
|
Phabtar
| I'm new to git, can anyone help | 17:29 |
| ← lut4rp left | 17:29 |
| → lut4rp joined | 17:29 |
| ← mando left | 17:30 |
|
wereHamster
| Phabtar: !doc | 17:30 |
|
jast
| Phabtar: [automatic message] a list of useful documentation of all kinds is here: http://git-scm.com/documentation -- or try the wiki at http://git.wiki.kernel.org/ | 17:30 |
|
Phabtar
| I'm using msysgit in windows | 17:31 |
| → cthuluh joined | 17:31 |
|
Phabtar
| and also tried tortoisegit | 17:31 |
|
| but couldn't clone a repository in gitorious.org | 17:31 |
|
| it gets stuck halfway | 17:31 |
|
| Also, I have a working copy of the corresponding SVN repository of the same project | 17:32 |
| ← dr_win left | 17:33 |
| → metcalfc joined | 17:34 |
| → engla_ joined | 17:34 |
| → ymasory joined | 17:36 |
| ← robertdavid left | 17:36 |
|
Phabtar
| But I want to make a shared branch of the project on gitorious and have a git working copy, | 17:36 |
| ← engla left | 17:37 |
|
Phabtar
| I'm afraid there is no solution other than cloning the git repo, is there jast or wereHamster? | 17:37 |
| ← JohnBat26 left | 17:39 |
| ← davidcoallier left | 17:39 |
| ← DrNick left | 17:40 |
| ← Rotham left | 17:42 |
| → Rotham joined | 17:42 |
| → babilen joined | 17:43 |
| → whaley joined | 17:47 |
| → workmad3 joined | 17:47 |
| → drev1 joined | 17:47 |
| → d03boy joined | 17:48 |
| ← brodo left | 17:48 |
|
d03boy
| I initialized a repo but I want to delete it and start over. How do I do that (I haven't committed anything to server yet) | 17:48 |
| → radarek joined | 17:49 |
| → brodo joined | 17:49 |
|
cbreak
| just delete the .git folder | 17:49 |
|
| all of git is inside that | 17:49 |
|
d03boy
| ok. that's what I figured | 17:50 |
| ← envi left | 17:51 |
| ← lolfrenz left | 17:51 |
| → ThomasLocke joined | 17:52 |
| → jophish joined | 17:52 |
| → [intra]lanman joined | 17:53 |
| ← noonoooo left | 17:58 |
| ← berserkr left | 17:58 |
| → robertdavid joined | 17:59 |
| ← Freakshow left | 18:01 |
| ← brodo left | 18:02 |
| → brodo joined | 18:04 |
| ← workmad3 left | 18:05 |
| ← jophish left | 18:06 |
| → rgr joined | 18:08 |
| → workmad3 joined | 18:10 |
| ← n1ck3 left | 18:15 |
| ← khmarbaise left | 18:17 |
| ← thews left | 18:17 |
| ← mastertheknife left | 18:18 |
| → mastertheknife joined | 18:19 |
| → khmarbaise joined | 18:21 |
| ← metcalfc left | 18:21 |
| → qfyre joined | 18:22 |
| ← coldboot|home left | 18:23 |
| → mastorna joined | 18:24 |
| ← legumbre_ left | 18:24 |
| → metcalfc joined | 18:25 |
| → paullik joined | 18:25 |
| ← qfyre left | 18:25 |
| → qfyre joined | 18:26 |
| ChanServ set mode: +v | 18:26 |
|
mastorna
| hey, when installing git, do you the dmg installs it in /usr/local/git and not /usr/local/bin - is that correct? | 18:26 |
| ← serverhorror_ left | 18:27 |
| → serverhorror_ joined | 18:27 |
| → kipras joined | 18:28 |
|
paullik
| Hi. I'm wondering what should i do when i have like 10 commits and no push and some one in my team pushed while i was commited, i cannot push...what shoud i do then? | 18:28 |
|
canton7
| paullik, clarify? "you cannot push" - what do you try, and what does git say? | 18:29 |
|
paullik
| canton7, its a hypothetical situation, like: what happens if... | 18:33 |
| → ciupicri joined | 18:33 |
|
ciupicri
| how can I see the patch/diff for a single file from a single commit and then apply that to another file? | 18:33 |
| → DrNick joined | 18:34 |
|
canton7
| you can either merge their commits into your branch, or rebase your commits on top of theirs | 18:34 |
|
ciupicri
| canton7, the problem is that they're different files | 18:34 |
|
canton7
| sorry, was replying to paullik | 18:34 |
|
paullik
| ciupicri, yeah.. | 18:34 |
|
ciupicri
| canton7, a sample file was modified and I want to update my work which of course is based on that | 18:35 |
|
| ok | 18:35 |
| ← glcrazy left | 18:36 |
|
paullik
| canton7, yeah but if i merge their commits won't they change my modifications? | 18:37 |
| ← airborn left | 18:37 |
|
canton7
| paullik, git is pretty smart here. if you've both changed the same line, that'll cause a merge conflict, which you'll have to resolve by hand. However, if you haven't stepped on each other's toes (haven't edited the same lines), git can merge them automagically | 18:38 |
|
| that's a bit simplified, but it's basically it... | 18:38 |
|
paullik
| canton7, ok thanks | 18:39 |
|
canton7
| paullik, I believe you'll get the exact same conflicts if you rebase, so it's up to how you want your history to look | 18:40 |
| → airborn joined | 18:40 |
|
paullik
| canton7, pff preety complicated... | 18:41 |
| → mikepack joined | 18:41 |
| ← RobertLaptop left | 18:41 |
| ← mikepack left | 18:42 |
| ← metcalfc left | 18:42 |
|
canton7
| paullik, if two people are editing the same files, and both change the same line in different ways, you've got a situation where someone's got to decide which of those two people to listen to. | 18:42 |
| → sskceg joined | 18:42 |
|
canton7
| in instances where the changes are compatible, (you've edited separate functions, for example), git is smart, and can merge both sets of changes | 18:43 |
|
| you can't really avoid that | 18:43 |
| ← sskceg left | 18:43 |
| → glcrazy joined | 18:43 |
| → flavius joined | 18:44 |
|
paullik
| canton7, ok, thanks | 18:44 |
|
flavius
| Hi. If I have a remote, how do I create a branch attached to it so I can then do the diff? | 18:44 |
| → sskceg joined | 18:44 |
|
canton7
| paullik, put it this way - it's better than locking files ;) | 18:45 |
| → starlays joined | 18:45 |
| ← workmad3 left | 18:45 |
|
canton7
| flavius, what diff? :P | 18:45 |
|
paullik
| canton7, i see | 18:45 |
| ← aminpy left | 18:45 |
| ← robertdavid left | 18:45 |
|
flavius
| canton7: between the two branches :D | 18:45 |
|
canton7
| flavius, so you want to diff a local branch against a remote one? | 18:46 |
| ← fr0stbyte left | 18:47 |
|
flavius
| canton7: I have a forked project from mine and my project, and I want to pick commits from the fork on an individual basis and merge them in | 18:47 |
|
| I've set up the fork as a remote | 18:48 |
|
| fetched it | 18:48 |
|
canton7
| flavius, you can diff just by git diff local_branch remote/remote_branch | 18:48 |
|
| if you're picking commits, look at git-cherry-pick | 18:48 |
|
| use gitk / git log to find the sha1's of the commits you want to pick | 18:48 |
|
| you don't need to create a local branch of the project you forked, though of course you could | 18:49 |
|
flavius
| and if I wanted, how would I do that? | 18:50 |
|
canton7
| git checkout -t local_name remote/remote_name if you wanted it to track the remote branch | 18:51 |
|
| and git checkout -b local_name remote/remote_name if you didn't | 18:51 |
|
flavius
| thanks | 18:51 |
|
canton7
| np | 18:51 |
| → Heimidal joined | 18:51 |
| ← airborn left | 18:52 |
| ← xxoxx left | 18:53 |
| → legumbre joined | 18:54 |
| → AAA_awright_ joined | 18:55 |
| → hvgotcodes joined | 18:55 |
| ← ch077179 left | 18:56 |
| → Phabtar_ joined | 18:57 |
| ← Phabtar left | 18:57 |
| → xxoxx joined | 18:57 |
| ← AAA_awright left | 18:58 |
| ← vdv left | 18:59 |
| → AAA_awright joined | 18:59 |
| ← Phabtar_ left | 19:00 |
| → jatt joined | 19:01 |
| → serverhorror__ joined | 19:01 |
| → DTrejo joined | 19:02 |
| ← AAA_awright_ left | 19:02 |
| ← Corren left | 19:02 |
|
DTrejo
| hello, would anyone be able to help me figure out how a rebase, such as in this case: https://github.com/joyent/node/pull/1024 | 19:02 |
|
| I don't have that commit on it's own branch, which makes things more complicated right? | 19:03 |
|
FauxFaux
| DTrejo: Single commit? Why not cherry-pick? | 19:04 |
|
DTrejo
| (I've never done a rebase or a cherry pick) | 19:04 |
| ← serverhorror_ left | 19:04 |
|
DTrejo
| FauxFaux: looking up cherry pick now | 19:05 |
| → airborn joined | 19:06 |
|
DTrejo
| FauxFaux: I'm really tempted to just save my changes somewhere, delete my fork and re-fork, check out v0.4, and then commit | 19:06 |
|
FauxFaux
| As a non-github user, it's really hard for me to work out wtf their interface means; someone else can probably tell you what you mean. | 19:07 |
| → davidcoallier joined | 19:07 |
|
DTrejo
| FauxFaux: basically: delete my whole repo, clone again, checkout the correct tag, and then commit again | 19:08 |
| → theoros_ joined | 19:08 |
|
DTrejo
| *correct branch | 19:08 |
| ← theoros_ left | 19:08 |
| → jophish joined | 19:10 |
| → RobertLaptop joined | 19:12 |
| → archis joined | 19:13 |
| ← sskceg left | 19:14 |
| ← archis left | 19:14 |
| → paeva joined | 19:15 |
| ← jophish left | 19:15 |
| → arand joined | 19:16 |
| ← Swimming_bird left | 19:16 |
|
arand
| I'm trying to add a git-svn clone as a new branch in an already existing git repository, how would I do this? | 19:17 |
| ← iAsterisk left | 19:17 |
| → fr0stbyte joined | 19:18 |
| ← dannas left | 19:20 |
| ← DTrejo left | 19:23 |
| → DTrejo joined | 19:23 |
|
DTrejo
| thank you for the advice FauxFaux :) have a good week | 19:23 |
| ← DTrejo left | 19:23 |
| → gunmuc joined | 19:23 |
| ← paeva left | 19:25 |
|
albel727
| arand: try "git fetch <path to svn repo> <branchinsvnrepo>:<branchtocreateinexistingrepo>" | 19:25 |
|
arand
| albel727: Cheers | 19:26 |
| → dannas joined | 19:27 |
| ← dannas left | 19:28 |
| → dannas joined | 19:28 |
| → caseymcg joined | 19:28 |
| ← glcrazy left | 19:29 |
| → glcrazy joined | 19:30 |
|
albel727
| arand: that said, if you're going to continuously update the new branch from git-svn repo, you'd be better off adding a git-remote and setting up a tracking branch. | 19:30 |
|
arand
| albel727: If I use just git I get Unable to find remote helper for 'svn' and If it use with git svn I get http://paste.debian.net/116397/ and nothing more happens | 19:30 |
| ← paullik left | 19:31 |
| ← airborn left | 19:31 |
|
arand
| albel727: How would I do that? | 19:31 |
|
| Can I use git remote add with svn? | 19:31 |
|
albel727
| wait a sec. I thought you have an already cloned git-svn repo. | 19:31 |
| → airborn joined | 19:32 |
|
arand
| Well I have an stand-alone clone via git svn clone, but I'd like to add this to an already existing git repo, is there any way to link it directly to the remote svn without going through my local clone? | 19:33 |
| → khmarbaise_ joined | 19:33 |
|
albel727
| arand: well, you actually can pull your existing git repo into that git-svn clone, so you will have no intermediate repos. | 19:34 |
| ← electrogeek left | 19:34 |
| ← lamont left | 19:34 |
| ← drev1 left | 19:35 |
| ← khmarbaise left | 19:35 |
| khmarbaise_ → khmarbaise | 19:35 |
| → drev1 joined | 19:35 |
| ← phantomcircuit left | 19:35 |
| ← Tianon left | 19:35 |
|
albel727
| arand: that will require doing it all the other way round. i.e. "git remote add mylocalrepo <pathtoyourexistinggitrepo>" "git fetch mylocalrepo" | 19:36 |
|
| after that you'll be able to "git checkout -t mylocalrepo/somebranch", and work on that. | 19:36 |
| ← khmarbaise left | 19:36 |
| → ch077179 joined | 19:36 |
| ← Neo left | 19:37 |
|
albel727
| well, to avoid confusion you do that checkout -t only once, to create a local branch. | 19:37 |
|
| you'll also need to change the url for mylocalrepo remote to point to your original repo at github or wherever. | 19:37 |
| → drev1_ joined | 19:37 |
| ← SJS left | 19:38 |
| ← Wizek_ left | 19:38 |
|
albel727
| and for what it's worth, you can name your "mylocalrepo" remote "origin" instead. | 19:38 |
| ← drev1_ left | 19:38 |
| → fubada joined | 19:38 |
| → drev1_ joined | 19:38 |
|
arand
| Thanks!, I'm on it. | 19:38 |
|
albel727
| so that it becomes more familiar. | 19:38 |
|
| k | 19:39 |
| → Swimming_bird joined | 19:39 |
| ← jatt left | 19:39 |
| ← starlays left | 19:39 |
| → starlays joined | 19:39 |
|
starlays
| hello to all | 19:39 |
| → Neo joined | 19:39 |
|
fubada
| hi can someone please help im having trouble adding a new user. On my gitolite sevrer I "git clone /var/lib/gitolite/repositories/gitolite-admin.pub", I add my new user.pub to the keydir folder, try to commit but get an erro: http://pastie.org/1878838 | 19:40 |
| → ki__ joined | 19:40 |
|
starlays
| i need some help with this problem, i can`t make a pull request, i get this error: You asked to pull from the remote 'dotophp', but did not specify | 19:40 |
|
| a branch. Because this is not the default configured remote | 19:40 |
|
| for your current branch, you must specify a branch on the command line. | 19:40 |
| → davidrussell joined | 19:40 |
| → btf joined | 19:40 |
| ← drev1_ left | 19:40 |
|
fubada
| please help :P | 19:40 |
| ← lut4rp left | 19:41 |
|
albel727
| sitaram: ^ | 19:41 |
| → SJS joined | 19:41 |
| ← drev1 left | 19:41 |
|
starlays
| any help? | 19:41 |
|
albel727
| starlays: what's pull request? | 19:41 |
|
CareBear\
| no help | 19:41 |
|
albel727
| just git pull? | 19:41 |
| ← davidcoallier left | 19:42 |
|
starlays
| yes | 19:42 |
|
thiago_home
| starlays: the error message you got is your help | 19:42 |
|
fubada
| albel727: you were really helpful the last time, any chance you can explain to me what im doing wrong | 19:42 |
|
starlays
| albel727: only git pull | 19:42 |
|
thiago_home
| starlays: you ran "git pull" | 19:42 |
| ← RaceCondition left | 19:42 |
|
thiago_home
| starlays: you need to tell it what to pull | 19:42 |
|
starlays
| thiago_home: don`t get it | 19:42 |
|
| thiago_home: how? | 19:42 |
|
thiago_home
| starlays: by passing the extra arguments | 19:42 |
|
| starlays: the remote name and the branch name | 19:43 |
|
CareBear\
| fubada : that looks like a gitolite problem, nothing related to git | 19:43 |
|
albel727
| fubada: I'm afraid, that's beyond my knowledge of gitolite. it looks like some internal error to me. I'm afraid you'll have to wait for sitaram. | 19:43 |
|
starlays
| thiago_home: how can i do that? | 19:43 |
|
thiago_home
| starlays: type more | 19:43 |
|
CareBear\
| starlays : type. see man git pull | 19:43 |
|
jast
| [automatic message] the 'git-pull' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-pull.html | 19:43 |
| ← ciupicri left | 19:44 |
|
sitaram
| fubada: gitolite does not like being cloned via something other than ssh. If you really want to administer the gitolite-admin repo directly from the server (judging by your clone URL -- a local file path), it can be done but I would not advise it | 19:44 |
| → cirwin joined | 19:45 |
|
starlays
| 10x guys | 19:46 |
|
fubada
| sitearm I dont have my other pc with me that has the ssh key | 19:46 |
|
| and i dont have any other means to add another key | 19:46 |
| ← tore_ left | 19:46 |
|
fubada
| what are my options | 19:46 |
| → giallu joined | 19:46 |
|
fubada
| i mean i only have one key in my gitolite-admin repo, and that key is not with me | 19:46 |
|
albel727
| starlays: for future reference, if you're going to push back to that repo, use push's --set-upstream option. that will eliminate the need to specify branch in most cases. | 19:47 |
|
sitaram
| fubada: what version of gitolite is this? | 19:47 |
|
fubada
| ii gitolite 1.5.4-1ubuntu0.1 | 19:47 |
| → lut4rp joined | 19:48 |
| → balau joined | 19:48 |
| → jzellman joined | 19:48 |
|
sitaram
| fubada: that's far too old for me to remember how; lots of things have changed and you'll also be missing some of the convenience programs that gitolite now comes with | 19:49 |
|
fubada
| shit | 19:49 |
|
sitaram
| fubada: your best bet, if you *really*, *truly* understand ssh, is to do the following: | 19:49 |
| ← starlays left | 19:50 |
|
fubada
| i am open to upgrading | 19:51 |
|
| do you have a ppa? | 19:51 |
|
sitaram
| generate a local keypair (if you dont already have one) using ssh-keygen, then manually add it to the ~/.ssh/authorized_keys file, as a new line, and then manually prefix it with the same long sequence (command="...", and those options) etc | 19:51 |
|
| fubada: that assumes you have a decent editor, and you know how to not make it wrap lines etc :) | 19:51 |
|
| fubada: what's a PPA? | 19:51 |
|
fubada
| launchpad ppa, ubuntu packages | 19:52 |
| ← jzellman left | 19:52 |
|
sitaram
| fubada: sorry; I don't do packaging. I'm what is called "upstream" I believe ;-) | 19:52 |
|
fubada
| i can add-apt-repository ppa:gitolite-admin and apt-get install your latest package | 19:52 |
|
sitaram
| Rhonda: ping | 19:52 |
|
fubada
| if you had that | 19:52 |
| → davidcoallier joined | 19:52 |
| ← airborn left | 19:53 |
|
fubada
| ah ok i see what youre saying with ssh keys | 19:53 |
|
| ill do that | 19:53 |
| → airborn joined | 19:53 |
|
fubada
| that way i can add my key over ssh after | 19:53 |
| ← ki__ left | 19:53 |
|
sitaram
| fubada: there are probably saner methods but I would have to remember lots of forgotten details now. A *lot* has changed in the past year | 19:54 |
|
fubada
| im gonna give it a go now, thank you so much | 19:54 |
| ← davidrussell left | 19:54 |
|
sitaram
| fubada: make a backup of the file first, just in case (authkeys file) | 19:54 |
| ← OOPMan left | 19:55 |
| ← ISF left | 19:55 |
|
sitaram
| fubada: and it's 1:25am here, so I'm only going to turn up again in about 5 hours... sorry! | 19:55 |
|
| need sleep | 19:55 |
| ← unhygienix left | 19:55 |
| → lamont joined | 19:55 |
|
sitaram
| good luck | 19:55 |
| → hungrygruffalo joined | 19:55 |
| ← hungrygruffalo left | 19:56 |
| ← gunmuc left | 19:56 |
| ← engla_ left | 19:57 |
| → engla_ joined | 19:57 |
| → hungrygruffalo joined | 19:57 |
| → verto joined | 19:59 |
| ← aesy left | 19:59 |
| → aesy joined | 19:59 |
| ← leo2007 left | 20:00 |
| ← mastorna left | 20:00 |
| → serverhorror_ joined | 20:00 |
| → drev1 joined | 20:01 |
| → phantomcircuit joined | 20:01 |
| → Tianon joined | 20:02 |
| ← Tianon left | 20:02 |
| → Tianon joined | 20:02 |
| ← serverhorror__ left | 20:02 |
| → Pilif12p joined | 20:03 |
| → xanonus joined | 20:03 |
| → electrogeek joined | 20:03 |
| ← electrogeek left | 20:03 |
| → electrogeek joined | 20:03 |
| ← dannas left | 20:03 |
|
fubada
| sitaram: i did all this. now im trying to remote clone it, but im gettinmg "object corrupt" | 20:04 |
| ← Juo left | 20:04 |
|
fubada
| and an md5 string | 20:04 |
|
| any idea why? | 20:04 |
|
thiago_home
| probably a SHA-1 string | 20:04 |
|
fubada
| ? | 20:04 |
|
chrisf|work
| something's deeply wrong if a sha1-based system gives you md5 strings ;) | 20:04 |
|
fubada
| yea | 20:04 |
|
| thats what i meant | 20:04 |
| → paeva joined | 20:05 |
| ← lut4rp left | 20:06 |
| → Phabtar joined | 20:06 |
| ← btf left | 20:06 |
| ← flavius left | 20:06 |
| → jfelchner joined | 20:06 |
| → btf joined | 20:07 |
| ← paeva left | 20:07 |
| → bsajsb joined | 20:08 |
| → OOPMan joined | 20:08 |
| → paeva joined | 20:08 |
|
fubada
| Cloning into gitolite-admin... | 20:09 |
|
| fatal: object 8b2f014904d4fe0099ac9ea8875cdc2273f03e38 is corrupted | 20:09 |
|
| fatal: The remote end hung up unexpectedly | 20:09 |
|
| like that.... | 20:09 |
| → paeva_ joined | 20:09 |
| ← ph^ left | 20:10 |
| → ph^ joined | 20:12 |
| ← paeva left | 20:13 |
|
albel727
| now that's a real problem. you'll have to run git fsck and do all other stuff to repair it. do you per-chance still have that clone of admin repo, that you did locally? | 20:14 |
|
fubada
| you know i added my second key to the wrong place | 20:14 |
|
| i should of added it to /var/lib/gitolite/.ssh | 20:14 |
|
| not /home/myuser/sh | 20:14 |
|
| .ssh | 20:14 |
| ← Phabtar left | 20:15 |
| ← airborn left | 20:15 |
|
albel727
| private key should go to myuser. | 20:15 |
|
| public key should go to gitolite/.ssh | 20:15 |
|
fubada
| right | 20:15 |
|
| i didnt add the pubkey to the right place | 20:15 |
|
| thanks | 20:15 |
| → airborn joined | 20:16 |
| ← guardian left | 20:16 |
| → vdv joined | 20:16 |
| → jzellman joined | 20:17 |
|
albel727
| well, the cloning error message doesn't look like it was the problem with keys. let's hope it helps... | 20:17 |
| → muneeb joined | 20:18 |
| → RichiH joined | 20:19 |
| ← hungrygruffalo left | 20:19 |
| → hungrygruffalo joined | 20:19 |
|
RichiH
| is there a built-in way to fetch and then only merge to the newest signed & trusted tag? | 20:19 |
| ← airborn left | 20:19 |
| → airborn joined | 20:20 |
| → robertdavid joined | 20:20 |
|
albel727
| sorry, I'm not sure I'm getting your problem. simple fetch + merge do not work for you? | 20:21 |
| ← hungrygruffalo left | 20:21 |
|
albel727
| the tag, even signed, should behave just like every other tag, if I'm not much mistaken. | 20:22 |
| → unhygienix joined | 20:23 |
| ← simplechat left | 20:23 |
|
fubada
| albel727: i added the new key and commit the change | 20:24 |
| → gunmuc joined | 20:24 |
| → blorbx joined | 20:24 |
| ← paeva_ left | 20:24 |
|
fubada
| but now i get a corrupt messgae when i git clone gitolite@server/myrepo | 20:24 |
|
| does the user.pub need to match the username on my workstation? | 20:25 |
| ← unhygienix left | 20:25 |
| ← balau left | 20:25 |
| ← mtx_init left | 20:25 |
| → mtx_init joined | 20:26 |
| ← d0k left | 20:26 |
| → guardian joined | 20:26 |
| → unhygienix joined | 20:26 |
| ← unhygienix left | 20:26 |
| → unhygienix joined | 20:27 |
|
albel727
| fubada: what is "server", exactly? is that just a regular url, that you've snipped for your convenience, or is it a ssh virtual host, that gitolite have created for you during setup? or what? | 20:27 |
| ← unhygienix left | 20:27 |
|
albel727
| fubada: and by the way, is that server/myrepo, or server:myrepo? | 20:28 |
| ← bindaas left | 20:29 |
|
fubada
| server:repo | 20:30 |
|
albel727
| and my first question? | 20:30 |
| ← sechrist left | 20:30 |
|
fubada
| snipped | 20:30 |
|
| for convinience | 20:30 |
| ← btf left | 20:30 |
| ← dwmw2_gone_ left | 20:31 |
|
albel727
| ok. is that "workstation" the same user, where you've set up your gitolite from? | 20:31 |
|
| or rather, what does ssh -v gitolite@server:myrepo say? | 20:31 |
|
fubada
| one sec im so confuse dheh | 20:31 |
|
| appreciate the help | 20:31 |
|
| :( | 20:31 |
| → RaceCondition joined | 20:32 |
| ← jfelchner left | 20:33 |
| → hungrygruffalo joined | 20:33 |
| ← Dreadnaught left | 20:35 |
| → jfelchner joined | 20:35 |
| → sechrist joined | 20:36 |
| → dr_ick joined | 20:38 |
| → jjuran joined | 20:39 |
| ← freshmilk left | 20:40 |
| ← eletuchy left | 20:41 |
| ← jstemmer left | 20:44 |
| → ISF joined | 20:44 |
|
fubada
| albel727: hi can you please help me figure this out | 20:48 |
|
| http://pastie.org/private/rvmmaybksqcclt3olctv0g | 20:48 |
|
| i added ateda.pub, pushed it | 20:48 |
|
| i see the entry for it in /var/lib/gitolite/.ssh/authorized_keys | 20:48 |
|
| seems like i can log in without a pw | 20:49 |
| ← bsajsb left | 20:49 |
|
fubada
| but i cant seem to checkout as that user | 20:49 |
| ← airborn left | 20:49 |
|
fubada
| i can do it no problem with another user | 20:49 |
| ← urkud left | 20:49 |
| → urkud_ joined | 20:49 |
| → airborn joined | 20:49 |
| → Prism joined | 20:50 |
| → freshmilk joined | 20:50 |
| ← RobertLaptop left | 20:50 |
| ← urkud_ left | 20:52 |
|
fubada
| someone ? | 20:52 |
|
| http://pastie.org/private/rvmmaybksqcclt3olctv0g | 20:53 |
|
albel727
| fubada: may you paste what does ssh [email@hidden.address] and git clone say for that another user? | 20:53 |
|
fubada
| k | 20:53 |
|
albel727
| incidentally, what is the git --version on the server? | 20:55 |
|
| and on your client, too. | 20:55 |
| ← SimonNa left | 20:55 |
| ← dr_ick left | 20:55 |
|
fubada
| albel727: yikes | 20:56 |
|
| the other user cant clone that repo either | 20:56 |
|
| problem must be repo side | 20:56 |
|
albel727
| I see. | 20:57 |
|
fubada
| i can simply recreate the repo | 20:57 |
|
| whats the best way to blow it away and re-add | 20:57 |
|
albel727
| hmm, nothing short of commenting out the line from gitolite config, pushing that, going to the server, removing repo directory, uncommenting the line and pushing again, comes to mind. | 20:58 |
|
| that would be cleanest of all, ofc. but you can also just create a new repo, add necessary remote and force-push that. | 21:00 |
| → jablko joined | 21:01 |
| ← jablko left | 21:01 |
| → jablko joined | 21:01 |
|
fubada
| error: insufficient permission for adding an object to repository database ./objects | 21:02 |
|
| sigh | 21:02 |
|
| constant problems it seems | 21:02 |
|
RichiH
| albel727: sorry for the late reply | 21:02 |
| → RobertLaptop joined | 21:02 |
|
RichiH
| what i want to do is that i only merge what's been signed with a trusted key | 21:03 |
|
albel727
| fubada: that was from git push in gitolite-admin? | 21:03 |
|
fubada
| yes | 21:03 |
|
| RichiH is managing his config files with git and wants to protect against injected configs | 21:03 |
|
fubada
| after changing the config to remove the repo im having toruble with | 21:03 |
| ← ThomasLocke left | 21:03 |
|
cbreak
| you can only merge whole lines of history | 21:04 |
|
| you can not take selected commits out and not merge them unless you rewrite history | 21:04 |
|
albel727
| fubada: oh well. I'd say you somehow screwed up your ssh config. or that old gitolite is buggy in some respect. | 21:04 |
|
fubada
| ok | 21:04 |
|
cbreak
| so either make sure that all who sign only do so if they want to sign the whole line of history | 21:04 |
|
fubada
| im not fond of gitolite | 21:04 |
|
| is there a way to host my own git server and users | 21:04 |
|
| without gitolite | 21:04 |
|
cbreak
| or rewrite history before merging | 21:04 |
|
| sure | 21:04 |
|
| gitolite only makes it easier | 21:04 |
|
| it does NOT make it possible | 21:04 |
|
fubada
| obviously not :P | 21:04 |
|
cbreak
| obviously it does :) | 21:05 |
|
| without it, you have to make system users | 21:05 |
|
| git init --shared the repositories | 21:05 |
|
fubada
| thats...fine i gues | 21:05 |
|
| system users | 21:05 |
|
cbreak
| create user accounts on the server for the people who you want to push/pull | 21:05 |
|
| and put them into the group that you set for the git repo folder | 21:05 |
|
albel727
| fubada: https://github.com/sitaramc/gitolite/blob/pu/doc/overkill.mkd | 21:05 |
|
cbreak
| (well, init needs --bare obviuosly) | 21:06 |
|
| without gitolite you will not have all the nice features like branch level permissions, read only access, wildchar repos or similar | 21:06 |
|
| but basic pushing/pulling will work | 21:06 |
|
fubada
| i have 3 users | 21:06 |
|
| i think im gonan rid of gitolite | 21:06 |
| ← f0i left | 21:06 |
| → sechrist_ joined | 21:07 |
|
cbreak
| fubada: seems your repo is corroupted | 21:07 |
|
RichiH
| cbreak: what i want is to merge everything up to the most current signed tag | 21:08 |
|
| there not be any branches, so "most current" makes sense in my repos | 21:08 |
|
cbreak
| RichiH: you could use git describe, it will use the most recent annotated tag as base | 21:08 |
|
| you have to check yourself if they are signed and if the signature is valid | 21:09 |
|
| and if you trust the signing key | 21:09 |
|
| and if you trust the person that posesses the signing key | 21:09 |
|
RichiH
| ok, i had hoped there was a ready-made solution, but i'll just script it. thanks :) | 21:09 |
|
cbreak
| I am not aware of one | 21:09 |
|
albel727
| and if you trust your trust to the person that possesses the signing key =) | 21:09 |
|
fubada
| hows gitorious? | 21:09 |
|
cbreak
| gitorious is a service | 21:10 |
|
| it's comparable to github | 21:10 |
|
fubada
| k | 21:10 |
|
albel727
| well, it does have an engine. | 21:10 |
|
| which, theoretically, one can install. | 21:10 |
| ← karstensrage left | 21:10 |
|
bremner_
| well, you can install it yourself too, but if you find gitolite confuzzling | 21:10 |
| ← reliability left | 21:10 |
|
bremner_
| you will probably not like setting up gitorious | 21:10 |
| ← sechrist left | 21:10 |
|
cbreak
| yeah, gitolite is much simpler and more userfriendly :) | 21:10 |
| → karstensrage joined | 21:11 |
|
cbreak
| almost no dependencies, simple instructions | 21:11 |
|
fubada
| i think ununtu gitolite is just old | 21:11 |
|
| buggy | 21:11 |
|
cbreak
| ubuntu? hahaha | 21:11 |
|
| the whole thing is ancient :D | 21:11 |
|
fubada
| what is | 21:11 |
|
| ubuntu is? | 21:11 |
|
cbreak
| yes | 21:11 |
|
| prehistoric | 21:11 |
| karstensrage → Guest84212 | 21:11 |
|
fubada
| i think its the best distro to date | 21:11 |
|
bremner_
| fubada: it's easy to install gitolite from source. | 21:11 |
|
cbreak
| some weeks ago someone came here with git 1.5.something | 21:11 |
|
fubada
| debian is even farther behind | 21:11 |
|
bremner_
| fubada: that is neither true nor relevant | 21:11 |
|
| albel727 remembers that moment ) | 21:11 |
|
bremner_
| at the moment | 21:12 |
|
cbreak
| I mean, I started with git 1.5.4 many years ago | 21:12 |
|
| even apple's git is newer :) | 21:12 |
|
| anyway, I recommend installing both git and gitolite from their respective git repositories | 21:12 |
|
albel727
| ok, cbreak, just advise him a new distro =) | 21:12 |
|
cbreak
| that's what I did at work | 21:12 |
|
| we use RHEL, but it's similarly prehistoric | 21:13 |
|
RichiH
| next question: I am using sed in a pre-commit hook to change a file i added. the change happens, but it's not actually commited | 21:13 |
|
cbreak
| only thing I used the stock stuff was to clone the new versions and compile from source | 21:13 |
|
| RichiH: of course not | 21:13 |
|
| RichiH: you change the file, right? | 21:13 |
|
| git doesn't commit the files | 21:13 |
|
| git commits the stuff that is staged | 21:14 |
|
albel727
| it commits index | 21:14 |
|
cbreak
| I don't know if it's valid to change the index in that hook either | 21:14 |
| ← Fuwex left | 21:14 |
|
albel727
| RichiH: you may want to look at clean/smudge filter functionality. | 21:15 |
| ← rolfb left | 21:15 |
|
albel727
| what is that you use your sed for? | 21:15 |
| ← kinesis left | 21:15 |
|
cbreak
| I read somewhere that sed is turing complete | 21:16 |
|
| so ... potentially anything :) | 21:16 |
|
albel727
| lol | 21:16 |
|
cbreak
| but if he wants to change a commit behind the back of a user | 21:17 |
|
| it's probably nefarious | 21:17 |
|
albel727
| Well, it might be turing complete, but writing anything complex on it will be harder than even on assembler. I'd write a higher level language and call it Ced++ )) | 21:17 |
|
fubada
| so ok, without gitolite, just git, i need to add my pubkeys to /home/git/.ssh/authorized_keys? | 21:17 |
|
| thats it | 21:17 |
|
| ? | 21:18 |
|
cbreak
| fubada: no | 21:18 |
|
RichiH
| albel727: i keep on hearing smudge filters... i really need to check them out :p | 21:18 |
|
cbreak
| you need to create one user per user | 21:18 |
| ← io2 left | 21:18 |
| → dajhorn joined | 21:18 |
| → brodo_ joined | 21:19 |
|
albel727
| cbreak: I gave him gitolite-overkill link. it explains how to work with --shared repo. | 21:19 |
|
cbreak
| and put the public key of that user into the ~username/.ssh/authorized_keys | 21:19 |
|
RichiH
| if it git added all staged files after my sed, that would work as well, no? | 21:19 |
|
| albel727: replacing passwords and/or gpg-encrypting the file | 21:19 |
|
cbreak
| RichiH: that sounds stupid | 21:19 |
|
albel727
| RichiH: as cbreak said, it might work, or it might not. and even if it works, not sure if that's supposed to. | 21:19 |
|
RichiH
| *shrug* | 21:19 |
|
cbreak
| and I wouldn't rely on it to work | 21:19 |
|
| it might change in other versions too | 21:20 |
|
RichiH
| i only want it for low-security passwords anyway | 21:20 |
|
cbreak
| how about not committing passwords? :) | 21:20 |
|
RichiH
| if i want to keep, e.g., my pianobar config in git, i need to commit the password _somehow_ | 21:20 |
| ← brodo left | 21:21 |
| brodo_ → brodo | 21:21 |
|
albel727
| RichiH: well, you certainly can use clean/smudge filter for that. read http://progit.org/book/ch7-2.html "keyword expansion" section. and man gitattributes. | 21:21 |
|
jast
| RichiH: [automatic message] the 'gitattributes' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html | 21:21 |
|
fubada
| ok | 21:22 |
|
| thanks gjys | 21:22 |
|
| guys | 21:22 |
| ← robertdavid left | 21:23 |
|
RichiH
| thanks, i'll have a look | 21:23 |
|
arand
| Is there a way to do this more quickly in a rebase conflict: "git show :3:debian/changelog > debian/changelog" "git add debian/changelog" If I already know which version I want to pick for all conflicts? | 21:24 |
|
RichiH
| whoah, the diffing of binary files is awesome | 21:25 |
| → f0i joined | 21:26 |
| ← candybar left | 21:26 |
| → cynic_spasm joined | 21:26 |
| → candybar joined | 21:27 |
|
jast
| arand: replace first step with, for example, git checkout --theirs <files> | 21:27 |
|
| I think --theirs corresponds to stage 3 | 21:27 |
|
arand
| Ok, cheers | 21:27 |
| → ajt joined | 21:28 |
| → paeva_ joined | 21:29 |
| → dpy joined | 21:30 |
|
RichiH
| hmm, there is no merge strategy that basically says "don't even try, just dump a copy of each version in my working tree and let me figure out the rest"? | 21:30 |
|
| at least the manpage does not seems to list anything i could make act that way | 21:31 |
|
wereHamster
| RichiH: dump that when? In case of a conflict? Or always? | 21:31 |
| ← sechrist_ left | 21:36 |
|
RichiH
| in case of conflict, yes | 21:36 |
|
arand
| I have three branches, one completely independent and two in a liner history. How can I rebase so that the two branches gets attached to the top of the one independent branch? | 21:37 |
|
albel727
| RichiH: there is. it's called binary merge strategy. | 21:37 |
|
fubada
| ok | 21:38 |
|
| i got it working with just git | 21:38 |
|
albel727
| RichiH: well, actually it just leaves an unmodified copy of your file and signals conflict, but you can easily checkout all other versions of files, using checkout --theirs checkout --ours and checkout --base, iirc. | 21:38 |
|
fubada
| is it still possible to do a post-commit hook? | 21:38 |
| → workmad3 joined | 21:38 |
|
fubada
| i want at the time of commit, for the server to refresh stuff under htdocs/foo | 21:38 |
|
wereHamster
| RichiH: in case of a conflict, you can access the versions using <n>:<path>, e.g. :0:README, :README. man git-rev-parse | 21:38 |
|
jast
| RichiH: [automatic message] the 'git-rev-parse' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-rev-parse.html | 21:38 |
|
arand
| ...I'm trying to get something in order for a svn commit, but when I simply merge it squashes everything and only commits one thing with the merge as the commit message... | 21:39 |
| ← infid left | 21:40 |
| → MikhX joined | 21:40 |
| → Ziaix joined | 21:41 |
| → infid joined | 21:41 |
|
Ziaix
| Hey #git, I need a little help. I've messed up a branch, and want to revert to the last upstream commit. Can anyone tell me how to do this? | 21:42 |
|
wereHamster
| Ziaix: git reset --hard @{u} | 21:42 |
| → berserkr joined | 21:43 |
|
Ziaix
| I now get an odd message from git status: "# Your branch and 'origin/master' have diverged, and have 3 and 9 different commit(s) each, respectively." Any idea what I should do about that? | 21:44 |
|
wereHamster
| Ziaix: git reset --hard origin/master | 21:44 |
|
Ziaix
| Thanks :) | 21:45 |
|
wereHamster
| @{u} shoudl be the same as origin/master, I have no idea why the first command didn't work. | 21:45 |
|
| but I'm too lazy to find out why | 21:45 |
| ← workmad3 left | 21:45 |
| ← smolyn left | 21:46 |
|
albel727
| oh well, aren't we all? | 21:46 |
| ← kipras left | 21:46 |
|
Ziaix
| Heh. Not as important, but am I able to do that to the changes on the remote branch too? | 21:46 |
|
albel727
| you mean you have pushed your screwup before? | 21:47 |
|
Ziaix
| yep. Some of my screwup got pushed before I noticed what I'd done. | 21:48 |
|
| (I'm not used to working with an upstream repo, have only used a single remote previously.) | 21:48 |
|
albel727
| oh, then it's a problem. if you're sure nobody have pulled that, you can fix it with git reset and a force-push. otherwise, use git-revert. | 21:48 |
| ← glcrazy left | 21:49 |
|
Ziaix
| Yeah, no-one will have pulled it. (I know for a fact that the other person is asleep) | 21:49 |
| ← berserkr left | 21:50 |
| → berserkr joined | 21:50 |
|
albel727
| well then, use git reset --hard <commit> to reset your master to the point of history you want, and then git push --force origin master:master (or whatever is your remote and branches are) | 21:51 |
|
| wait a sec. single remote? you mean you have origin and upstream? | 21:52 |
|
| oh well, it's not important. unless you've somehow screwed up upstream. | 21:52 |
|
Ziaix
| No, my changes haven't been pulled into upstream. | 21:52 |
|
albel727
| yeah, I thought that it's improbable. | 21:53 |
|
Ziaix
| Origin is a fork of the upstream repo, and I forgot to pull in changes before writing and committing stuff. | 21:53 |
|
albel727
| that's not so much of an error. | 21:53 |
| ← aalex-home_ left | 21:53 |
| ← aalex left | 21:53 |
|
albel727
| in itself. | 21:53 |
| → wafcio joined | 21:54 |
|
albel727
| I'd say it's not an error at all. It's easily fixed by just pulling the upstream and pushing again. | 21:54 |
| → Corren joined | 21:54 |
|
Ziaix
| Not that bad, but the changes clashed with the upsteam commits, and I don't think I could safely merge them. | 21:54 |
|
albel727
| why not? doing conflict resolution is usually easier than writing from scratch. | 21:55 |
| → aalex joined | 21:56 |
| ← Corren left | 21:56 |
|
Ziaix
| I'd made minor changes, but couldn’t work out how to merge properly. | 21:56 |
| ← wafcio left | 21:56 |
| → tansell-laptop joined | 21:57 |
| ← serverhorror_ left | 21:58 |
|
albel727
| well, I guess it also happens from time to time. | 21:59 |
| → JohnnyL joined | 21:59 |
|
JohnnyL
| Any of you use fossil? | 21:59 |
| ← hvgotcodes left | 21:59 |
|
albel727
| sounds familiar... | 21:59 |
| → Corren joined | 22:00 |
|
albel727
| oh, it's a vcs too. how nice. | 22:00 |
|
Ziaix
| Why is it that after a revert I have untracked files? | 22:02 |
|
JohnnyL
| It's very nice. Just haven't figured out a way to go back to a previous version (aborting commit changes) then recomiting. You can undo an update, just not a commit. (afaik) | 22:02 |
|
albel727
| Ziaix: you went with git-revert? | 22:03 |
|
JohnnyL
| I checked out a pervious version. Hm, perhaps I didn't go back 'twice'. | 22:03 |
|
Ziaix
| Yes. | 22:03 |
| ← kingfishr left | 22:05 |
|
albel727
| no idea, then. it shouldn't have happened. maybe you've reverted .gitignore or something. | 22:05 |
|
Ziaix
| They aren't things that would be in .gitignore :S | 22:05 |
| ← Corren left | 22:05 |
|
Ziaix
| Gah, I seem to just be making more mess. | 22:05 |
|
Arrowmaster
| a revert only applies the opposite of a specific commit, if you had untracked files before you did the revert you will still have untracked files | 22:06 |
|
albel727
| as long as history is fine - everything is fine. | 22:06 |
| ← Dave^| left | 22:06 |
|
albel727
| untracked files can be gotten rid of with git clean. | 22:06 |
|
Ziaix
| albel727: my history is fine, I'm just having trouble getting it back. | 22:06 |
|
albel727
| why not git-reset + force-push? | 22:06 |
| ← canton7 left | 22:07 |
|
Ziaix
| I tried that. | 22:07 |
|
albel727
| and what happened? | 22:07 |
|
Ziaix
| I ended up with untracked stuff, I think. | 22:07 |
|
albel727
| or rather, show me your git reset and push command. | 22:07 |
|
JohnnyL
| yeah this is no good, if you check out to a previous version in fossil it will include all changes even after the previous version. | 22:08 |
| ← ISF left | 22:09 |
| → ISF_ joined | 22:09 |
|
Ziaix
| How insensible would be removing the local stuff, and starting again by fetching the remote? | 22:09 |
|
albel727
| very. there's nothing you can do with git clone, that you can't do with git-reset | 22:10 |
|
| you just need to show me your commands. | 22:11 |
|
| albel727 sounds like a child molester. =/ | 22:12 |
| ← Corey left | 22:12 |
|
albel727
| ...especially because my persuasion is not working. | 22:12 |
| → jophish joined | 22:13 |
|
Ziaix
| Heh. Well, I currently have a terminal with a long backlog of various attempts to fix things. | 22:13 |
|
albel727
| pastebin it, why don't you? | 22:13 |
|
Ziaix
| http://pastebin.com/2EjXvpAy | 22:14 |
|
albel727
| also give me the output of "git log --graph --oneline --decorate --all" and tell me where you want your master to be. | 22:14 |
| → sgeigerbot joined | 22:15 |
|
albel727
| oh my, what a mess. | 22:15 |
|
nowhere_man
| I went throug git(1) but didn't find the command to remove commits for the object store, which one is it? | 22:15 |
|
albel727
| well, we'll be fixin all that in a jiffy. | 22:15 |
|
Arrowmaster
| nowhere_man: gc or repack | 22:15 |
| ← ereslibre left | 22:16 |
|
| FauxFaux needs to get the actual pasting bit of http://gitpad.goeswhere.com/ to work properly. | 22:16 |
|
Ziaix
| http://pastebin.com/H7HgNsm8 and trying to get back to: 0b793e8 | 22:16 |
|
| And yeah, I've made a mess. | 22:17 |
| ← sgeigerbot left | 22:17 |
|
Ziaix
| I've gone the lead pipe route, in a somewhat silly attempt to make it work on my own. | 22:17 |
|
albel727
| Ziaix: git checkout master; git reset --hard 0b793e8; (check that everything is in order); git push --force origin master:master | 22:18 |
| ← RobertLaptop left | 22:18 |
|
Ziaix
| Done git checkout master; git reset --hard 0b793e8; have an untracked folder. | 22:19 |
|
RichiH
| albel727: the manpage does not list "binary" as merge strategy | 22:19 |
|
nowhere_man
| Arrowmaster: gc or repack won't remove commits that are still reachable... | 22:19 |
| ← phaedrix left | 22:19 |
|
RichiH
| or should i simply mark the files as binary in .gitattributes ? | 22:19 |
|
Arrowmaster
| nowhere_man: you cant remove commits that are still reachable, unless you mean still reachable in the reflog but nowhere else | 22:20 |
| → smolyn joined | 22:21 |
|
nowhere_man
| what if I did a bunch of commits and just want to get rid of them? | 22:21 |
| → Engin joined | 22:21 |
|
nowhere_man
| like 'hg strip' with Mercurial? | 22:21 |
|
albel727
| Ziaix: well, you did have it untracked at that point of history, then. you'll be able to read it if you want afterwards. you can do git merge upstream/master before the push. you may also remove all untracked files with git clean -fd, prior to merge. | 22:21 |
|
| *able to add | 22:21 |
|
Engin
| there's no central repository, I zipped and send my repo to my friend, he did changes, I did changes. What is the proper way to go from now ? | 22:21 |
| → phaedrix joined | 22:22 |
|
albel727
| Ziaix: thing is, I strongly suspect, that that folder came from upstream history. you're not going to lose it if you remove it anyway, and it will reappear after the merge. | 22:23 |
| ← drizzd left | 22:23 |
|
albel727
| RichiH: yeah, that's what I meant by binary merge strategy, sorry if it confused you. | 22:24 |
|
spetrea
| can I put google analytics on my github account page ? | 22:25 |
|
Ziaix
| albel727: Okay, this all seems to have worked. | 22:25 |
|
bremner_
| spetrea: sounds like a question for #github | 22:25 |
| ← Adys left | 22:25 |
| → diegoviola joined | 22:26 |
|
albel727
| Ziaix: sure? the directory reappeared? the history and contents of master and origin/master look ok? | 22:26 |
|
spetrea
| bremner_: asked there, no answer | 22:26 |
| ← Guest84212 left | 22:26 |
| ← giallu left | 22:26 |
|
Ziaix
| Yep, everything seems to be there | 22:26 |
|
spetrea
| bremner_: so I decided to ask questions all over the place | 22:26 |
|
albel727
| that's fine then. | 22:26 |
| → karstensrage joined | 22:26 |
| dpy → dpy_zzz | 22:28 |
| ← vdv left | 22:29 |
|
RichiH
| albel727: ok, great, thanks | 22:30 |
| → madewokherd joined | 22:30 |
| → babbio joined | 22:31 |
| ← arand left | 22:31 |
|
RichiH
| albel727: when running git pull, the smudge filter is run first, then the clean filter is run. that's not how i understood the docs | 22:32 |
| → Adys joined | 22:32 |
| ← ningia left | 22:32 |
|
albel727
| RichiH: merges right after adding smudge filter is an edge case. the main thing, is that the end result of merge is right. is it? | 22:34 |
| ← Ziaix left | 22:35 |
|
albel727
| and btw, I think I might have misunderstood you about binary strategy. you meant setting "binary" attribute, or setting "-merge"/"merge=false" attribute? | 22:35 |
| → davidrussell joined | 22:35 |
|
albel727
| and by the way, how do you check the order of filter runs? | 22:36 |
| ← freshmilk left | 22:36 |
| ← airborn left | 22:37 |
| ← radarek left | 22:38 |
| → Kuwaga joined | 22:39 |
| ← ch077179 left | 22:40 |
| ← qfyre left | 22:40 |
| ← smolyn left | 22:41 |
|
RichiH
| albel727: yes, the end result is correct | 22:41 |
|
| albel727: i just want to make sure certain files are _never_ merged | 22:42 |
|
| albel727: smudge gpg encrypts, clean gpg decrypts. if i need to enter the password once, it's clean. if i need to enter it once, it's the smudge filter. | 22:43 |
| ← babbio left | 22:43 |
|
RichiH
| also, when pulling, i can enter the wrong password in the smudge after pulling and it's still OK | 22:43 |
| ← davidcoallier left | 22:44 |
| ← candybar left | 22:44 |
|
albel727
| encrypting in clean/smudge filter, huh? now that is not very good idea. | 22:44 |
|
| at least unless you write a wrapper script which will ask for the correct password and call gpg as many times as necessary to produce correct output. | 22:45 |
| → rsewill joined | 22:46 |
|
RichiH
| albel727: i will use keys for production anyway | 22:46 |
| ← jablko left | 22:46 |
|
RichiH
| that way, gpg can simply exit non-zero | 22:46 |
|
albel727
| well then, I'm not sure, how it ended up ok with entering wrong password. try debugging it all with redirecting all streams erros etc to some files. | 22:47 |
|
| *errors | 22:47 |
|
RichiH
| atm, i am using symmetric encpryption and a passphrase | 22:47 |
| ← dim_ left | 22:48 |
|
albel727
| then how do you distinguish clean from smudge? | 22:49 |
| ← saschagehlich left | 22:49 |
|
albel727
| in any case, that doesn't affect in the slightest, how you should debug the filters. | 22:49 |
| ← dpy_zzz left | 22:50 |
| ← rsewill left | 22:52 |
|
albel727
| RichiH: btw, did you read about clean/smudge invariants, that you should uphold? the clean+clean=clean identity and smudge+smudge+clean=clean identity? | 22:52 |
|
| that would be relatively bothersome to implement for encryption, I'd say. | 22:53 |
|
RichiH
| albel727: smudge encrypts, clean decrypts | 22:53 |
| → ch077179 joined | 22:53 |
|
albel727
| yeah. so smudge+smudge+clean = 2encrypts +1 decrypt = 1 encrypt | 22:53 |
|
RichiH
| albel727: hmm, i will need a wrapper for that | 22:53 |
| → workmad3 joined | 22:54 |
| ← kermit left | 22:54 |
|
albel727
| note that in general, smudge+smudge+smudge+smudge+...+clean should be = clean. and clean+clean+...+clean should be = clean. don't expect git to run only clean+clean and smudge+smudge+clean combinations. | 22:55 |
|
| are you really sure, that you need to keep encrypted files in your repo? | 22:56 |
| ← jophish left | 22:56 |
|
RichiH
| yah, i will simply parse the first line.. or just run file on it | 22:56 |
|
albel727
| well, that's how I imagined it, indeed. | 22:57 |
| ← cesario left | 22:57 |
| → candybar joined | 22:59 |
| ← mdel left | 23:00 |
|
fubada
| albel727: i got most thjings working, but have a slight issue with pushing to another remote (production) | 23:01 |
| ← nag left | 23:01 |
|
fubada
| it says it cant allow me to push to another remote because..one sec | 23:01 |
| → jophish joined | 23:02 |
|
fubada
| http://pastie.org/private/vlwbfzk4ykmkjycpq8vmg | 23:03 |
|
| can someone clarify why i cant do this | 23:03 |
|
jast
| what part of the message isn't clear? | 23:03 |
|
fubada
| im assuming its because theres no way to push the same change to origin at the same time | 23:03 |
| ← nazgul101 left | 23:03 |
|
fubada
| its clear but..how can I push to "origin" most times, and when im ready to "production" | 23:04 |
|
jast
| it has nothing to do with how many repositories you are pushing to | 23:04 |
|
| it's because the target repository is a so-called non-bare repository, i.e. one that has a working tree (i.e. a place you can directly edit the files) | 23:04 |
|
albel727
| fubada: I suppose, your production repo is actually a directory with a web homepage? | 23:04 |
|
jast
| origin is a bare repository, so it works there, but production apparently isn't, hence the detailed message explaining what's going on | 23:05 |
| ← thiago_home left | 23:05 |
|
fubada
| production is just a git clone | 23:05 |
|
| of /home/git/repos/myrepo | 23:05 |
|
albel727
| fubada: the point is, do you really have to have the files checked out in that dir? | 23:05 |
| → nazgul101 joined | 23:05 |
| → eydaimon joined | 23:05 |
|
eydaimon
| how can I check a remote if I'm ahead or behind? | 23:06 |
|
FauxFaux
| git fetch && gitk --all | 23:06 |
| ← brian_g left | 23:06 |
|
fubada
| albel727: im sorry i dont understand the question. | 23:06 |
|
| i guess, yes | 23:06 |
|
albel727
| eydaimon: or git fetch + git status. or git fetch + git log --graph --oneline --decorate --all | 23:06 |
|
| fubada: did you install the post-receive hook I told you about? | 23:06 |
|
eydaimon
| albel727: thanks | 23:07 |
|
fubada
| my post-receive hook does a "cd /home/www/dev/ftns.co/bla & git pull" | 23:07 |
| ← caseymcg left | 23:07 |
|
eydaimon
| albel727: i swear I did some command that showed me that "remote repository is ahead by 1 checkin" | 23:08 |
|
fubada
| i want to be able to push to "production" remote which is a git clone of /home/git/repos/myrepo under /home/www/prod/htdocs/blah | 23:08 |
|
albel727
| fubada: you should have not reinvented a wheel and used an already made hook, that covers all the cases. in any case, wait a sec, I always forget that git config option name... | 23:08 |
|
| eydaimon: that's what git status usually tells, if you're indeed ahead or behind the remote. | 23:09 |
|
fubada
| albel727: i dont necessarily want to auto deploy to "prod" with every commit | 23:09 |
|
| i do that for "dev" | 23:09 |
|
jast
| eydaimon: git checkout without args, or git branch -vv to see it for all branches (of course all of this is only up-to-date if you fetched recently) | 23:09 |
| ← hungrygruffalo left | 23:09 |
|
fubada
| i only want to change prod files if I push to remote "prod" | 23:09 |
|
eydaimon
| albel727: but it doesn't always check with the remote... sometimes I do git status, and it says nothing about remote even though it is ahead. in fact, if it had to check remote for every git status, then it wouldn't be good decentralized practice it would seem like | 23:09 |
| ← workmad3 left | 23:10 |
|
fubada
| thanks albel727 | 23:10 |
| ← ch077179 left | 23:10 |
|
albel727
| fubada: as long as you need those files in prod, there's no helping it. do "git config receive.denyCurrentBranch false" in prod remote. | 23:10 |
|
jast
| eydaimon: well, the only things that actually talk to the remote are "git fetch" and "git ls-remote" (which just lists all refs along with their current SHA1 IDs in the remote repository) | 23:11 |
|
| for receiving information, that is. there are also a few obscure additional things that are not relevant to the current situation. | 23:11 |
|
fubada
| albel727: so if I push to remote 'production' what is the state of remote 'origin"? | 23:11 |
| ← Amorphous left | 23:11 |
|
fubada
| does it also get the changes? | 23:11 |
|
albel727
| fubada: ofc not. | 23:11 |
|
fubada
| ok i dont think thatd ever be a case anyways | 23:12 |
| → PovAddict joined | 23:12 |
|
eydaimon
| jast: ok, thanks | 23:12 |
|
PovAddict
| is it possible to keep GIT_COMMITTER_* untouched after rebasing? | 23:12 |
|
| rebase keeps the author, but sets the committer to my own data | 23:12 |
|
fubada
| albel727: your post-receive hook can handle dev and prod cases? | 23:12 |
|
| if so, do you mind sharing it again | 23:12 |
| ← davidrussell left | 23:13 |
|
albel727
| fubada: that post receive hook just does what your hook does, but it does it always correctly and with consideration to some edge-cases. | 23:13 |
|
| !faq non-ff | 23:13 |
|
jast
| [automatic message] Your push would lose changes on the remote: please see https://git.wiki.kernel.org/index.php/GitFaq#non-ff | 23:13 |
|
fubada
| thanks | 23:13 |
|
albel727
| you'll find a link to it there ^ | 23:13 |
| → mikepack joined | 23:13 |
|
PovAddict
| guess I'll have to patch rebase | 23:14 |
|
| albel727 thinks so too | 23:14 |
|
albel727
| it's really a bug. | 23:14 |
|
| don't hesitate to ping the git mailing list with your patch. | 23:15 |
|
PovAddict
| I tried a complete abomination involving a post-rewrite hook to store the committer info and a filter-branch script later to set it back in the new commits using the info stored by the hook | 23:15 |
|
albel727
| I feel your pain =/ | 23:16 |
|
PovAddict
| but it behaved wrongly if the rebase removed commits (I got the committer of the rewritten A set to the committer of the deleted A^) | 23:16 |
|
jast
| at least it's a very straightforward patch | 23:16 |
|
PovAddict
| well sort of | 23:16 |
|
jast
| note that you actually have to edit git-am.sh (which rebase uses) | 23:16 |
|
| though I guess tracing back the previous information might be a bit tricky | 23:17 |
|
PovAddict
| rebase-i doesn't | 23:17 |
|
| and for both rebase and rebase-i I'll have to add a new function like get_author_ident_from_commit but for committer info | 23:18 |
| ← crakdmirror left | 23:19 |
| ← xanonus left | 23:20 |
| ← tewecske left | 23:20 |
| → kermit joined | 23:21 |
| → Corren joined | 23:23 |
| ← TomyLobo left | 23:26 |
| → Amorphous joined | 23:27 |
| ← kukks left | 23:27 |
| ← tansell-laptop left | 23:28 |
| → bryanl joined | 23:30 |
| → tansell-laptop joined | 23:30 |
| ← pantsman left | 23:33 |
| → mdel joined | 23:34 |
| ← codeshah left | 23:35 |
| ← cynic_spasm left | 23:35 |
| → DrkShadow joined | 23:37 |
|
DrkShadow
| Trying to pop changes off the stash, what does it mean, "Cannot apply to a dirty working tree, please stage your changes", specifically "stage your changes" ? | 23:37 |
|
PovAddict
| 'git add' = staging | 23:38 |
|
DrkShadow
| ah. Thanks.. :-) | 23:38 |
|
AAA_awright
| cache=index=stage. I prefer stage and so do a lot of people but cache.h is where the code is and index is how the functions are named so go figure | 23:39 |
| → frogonwheels joined | 23:40 |
|
DrkShadow
| any way I can pop multiple stashes?.. | 23:40 |
| ← Sonderblade left | 23:40 |
|
DrkShadow
| I have three items stashed, trying to pop them.. | 23:41 |
| → moura joined | 23:41 |
| ← Rotham left | 23:41 |
|
frogonwheels
| DrkShadow: prob one at a time. | 23:41 |
| → Rotham joined | 23:42 |
|
fission6
| i am trying to push to my origin and i am getting, error: failed to push some refs to | 23:42 |
|
frogonwheels
| ie you may need to create a (temporary) commit to squish all the pops into | 23:42 |
|
DrkShadow
| frogon: any way I can do it without commiting after each pop? :-/ I stash pop, make the changes according to the merge that's required, but it's still in the list.. if I pop it again, I have to make the merge corrections again. | 23:42 |
|
fission6
| i tried to do git commit --amend and i think it messed something | 23:42 |
|
DrkShadow
| hmm. Amend.. | 23:42 |
|
albel727
| after a push... | 23:42 |
|
DrkShadow
| nope. | 23:42 |
|
PovAddict
| DrkShadow: if "pop" gets a conflict, it won't remove the stash from the stack | 23:42 |
|
fission6
| git commit -aAborting commit due to empty commit message. got this too | 23:43 |
|
PovAddict
| DrkShadow: after solving the conflicts and all, if you want to get rid of it from the stash stack, use 'git stash drop' | 23:43 |
|
DrkShadow
| povaddict: got it; pop, merge, correct, remove. :-) | 23:43 |
|
| Thanks! | 23:43 |
| ← whaley left | 23:43 |
|
fission6
| " ! [rejected] v.1 -> v.1 (non-fast forward)" | 23:44 |
|
albel727
| !faq non-ff | 23:44 |
|
jast
| [automatic message] Your push would lose changes on the remote: please see https://git.wiki.kernel.org/index.php/GitFaq#non-ff | 23:44 |
|
fission6
| so what do i do | 23:44 |
|
frogonwheels
| fission6: ok, so I'd look at gitk which will probably explain what you've done. | 23:44 |
|
| fission6: did you try and ammend a pushed commit? | 23:44 |
|
fubada
| albel727: if i have remote: origin, dev, and prod..is there any way to automatically push to origin when i push to either prod or dev | 23:44 |
| ← PovAddict left | 23:44 |
|
fission6
| i think so frogonwheels | 23:44 |
|
fubada
| this whole decentralized thing is tough to grasp :P | 23:45 |
|
fission6
| i know my code is fine on my side and i am the only person using it | 23:45 |
|
| so i just need to get a nice commit on my side and push it and it will be fine | 23:45 |
| → PovAddict joined | 23:46 |
|
CareBear\
| fubada : but oh so sweet once you do | 23:46 |
|
PovAddict
| augh | 23:46 |
|
frogonwheels
| fission6: you _can_ just force the push if that is the case. | 23:46 |
|
fission6
| yea | 23:46 |
|
PovAddict
| turns out my patch to git-rebase--interactive to make it keep the committer info only works in uncommon cases such as squash | 23:46 |
|
| not in the simple 'pick' | 23:46 |
|
fission6
| i think thats fine, how do i do that git push --force | 23:46 |
|
PovAddict
| because 'pick' just delegates to cherry-pick | 23:46 |
|
| and cherry-pick is C | 23:46 |
|
frogonwheels
| fission6: normally I'd avise against it unless you have a really good reason.. since it mucks up other developers. | 23:46 |
|
fission6
| im the only developer, how else would i "properly" resolve | 23:47 |
| ← Rotham left | 23:47 |
|
frogonwheels
| fission6: just rebase your commits onto the remote branch, and edit the commit to reflect that you've done that. | 23:47 |
|
| fission6: the ability to force push is useful when it is really needed though :) | 23:48 |
|
fission6
| hmm ok | 23:49 |
|
| thanks | 23:49 |
| ← ph^ left | 23:49 |
| → daviddoria joined | 23:49 |
|
fubada
| 19:44 < jast> [automatic message] Your push would lose changes on the remote: please see https://git.wiki.kernel.org/index.php/GitFaq#non-ff | 23:49 |
| → petar joined | 23:49 |
|
fubada
| sorry | 23:50 |
|
| 19:44 < jast> [automatic message] Your push would lose changes on the remote: please see https://git.wiki.kernel.org/index.php/GitFaq#non-ff | 23:50 |
|
petar
| is there a way to use sdiff with git-mergetool? | 23:50 |
| ← alip left | 23:50 |
|
albel727
| fubada: no, it's not possible, unfortunately. unless you write a script. | 23:50 |
| chrisf|work → ihptru | 23:50 |
| ← daviddoria left | 23:50 |
| ihptru → chrisf|work | 23:51 |
|
fubada
| albel727: if I have people push mainly to "dev" remote, and they forget to push 'origin' what type of a bad situation can result? | 23:51 |
|
| do i want to stress pushing to origin first | 23:51 |
| ← rendar left | 23:52 |
|
cmyers
| fubada: it is kinda not intuitive for people used to centralized, when all the sudden you have many different remote repos and branches to push to. | 23:52 |
|
fubada
| right...im coming from svn | 23:52 |
|
albel727
| fubada: I'd say, make them push wherever you want and update the other remotes from the first one yourself. | 23:52 |
|
fubada
| gotcha | 23:52 |
|
cmyers
| in my experience, it is bad to have people learn "the workflow" and mindlessly parrot it | 23:52 |
|
fubada
| thanks | 23:52 |
|
cmyers
| in git, it is really tough to make a workflow that always works | 23:52 |
| ← petar left | 23:53 |
|
cmyers
| there are conflicts, non-FF pushes, etc. people have to look at the branches, understand the situation, then understand how to use the tools to resolve it. | 23:53 |
|
| There are a few resources I can recommend though, lemme look 'em up | 23:53 |
|
fubada
| thanks | 23:53 |
|
cmyers
| http://marklodato.github.com/visual-git-guide/index-en.html <-- " | 23:53 |
|
| "Visual Git" is very helpful to people I think | 23:53 |
|
| shows with pictures what is going on | 23:54 |
| ← deuterium left | 23:54 |
|
cmyers
| http://nathaniel.themccallums.org/2010/10/18/using-git-fast-forward-merging-to-keep-branches-in-sync/ has a lot of example merges | 23:54 |
|
| and http://www.ndpsoftware.com/git-cheatsheet.html is a good command reference for folks | 23:54 |
| ← micro`_ left | 23:54 |
| ← deadaim left | 23:54 |
| → alip joined | 23:54 |
| → micro`_ joined | 23:54 |
| → deadaim joined | 23:55 |
| ← kermit left | 23:55 |
|
fubada
| thank you albel727 and cmyers | 23:56 |
|
| and all the others | 23:56 |
|
| bye | 23:56 |
| ← fubada left | 23:56 |
| ← Chibby_ left | 23:58 |
| ← PovAddict left | 23:59 |