| 2019-07-08 |
| ← kreyren left | 00:02 |
| → tufteddeer joined | 00:03 |
| → kreyren joined | 00:04 |
| ← orbyt_ left | 00:04 |
| → esran joined | 00:09 |
| → orbyt_ joined | 00:11 |
| → fphilipe_ joined | 00:11 |
| → averell joined | 00:14 |
| → tomboy64 joined | 00:14 |
| ← acercle left | 00:16 |
| ← xcm left | 00:20 |
| → xcm joined | 00:21 |
| ← kjartan left | 00:30 |
| → oatmealraisin joined | 00:31 |
| → kjartan joined | 00:31 |
| → Sasazuka joined | 00:40 |
| ← fphilipe_ left | 00:43 |
| ← beastDiv_ left | 00:43 |
| ← kreyren left | 00:45 |
| → kreyren joined | 00:46 |
| → mat001 joined | 00:48 |
| ← Peetz0r left | 00:48 |
| ← thiago left | 00:49 |
| → thiago joined | 00:50 |
| ← MoonJaCk- left | 00:51 |
| → elsheepo joined | 00:51 |
| ← mat001 left | 00:52 |
| ← kreyren left | 00:55 |
| → kreyren joined | 00:55 |
| ← AtumT_ left | 00:57 |
| ← yyy left | 00:58 |
| ← kreyren left | 01:01 |
| → kreyren joined | 01:02 |
| ← CryptoDavid left | 01:04 |
| ← bashfulshell left | 01:10 |
| ← ephemer0l left | 01:11 |
| → ephemer0l_ joined | 01:11 |
| ← elichai2 left | 01:17 |
| ← tufteddeer left | 01:17 |
| → Peetz0r joined | 01:17 |
| → tufteddeer joined | 01:18 |
| ← elsheepo left | 01:21 |
| → elichai2 joined | 01:22 |
| ← F0rTex left | 01:24 |
| → F0rTex joined | 01:25 |
| → fstd_ joined | 01:49 |
| → seds joined | 01:52 |
| ← fstd left | 01:53 |
| fstd_ → fstd | 01:53 |
| → ferdna joined | 01:54 |
| → cfoch joined | 01:54 |
| ← seds left | 01:58 |
| mns_ → mns | 02:03 |
| ← Sasazuka left | 02:07 |
| ← nic-hartley left | 02:07 |
| ← toothe left | 02:10 |
| ← mowcat left | 02:16 |
| → rotaerk joined | 02:20 |
| → esrse joined | 02:22 |
| → Rubin joined | 02:22 |
| → toothe joined | 02:27 |
| lagothrix → Guest39807 | 02:27 |
| ← Guest39807 left | 02:27 |
| → lagothrix joined | 02:27 |
| ← Viridian left | 02:28 |
| ← altendky left | 02:28 |
| → envex joined | 02:35 |
| ← jas4711 left | 02:39 |
| ← Cabanossi left | 02:39 |
| → barteks2x joined | 02:40 |
| → xorander joined | 02:42 |
| → fphilipe_ joined | 02:43 |
| ← orcainbox left | 02:47 |
| ← tomboy64 left | 02:49 |
| → Cabanossi joined | 02:49 |
| → igemnace joined | 02:49 |
| ← valuemachine left | 02:50 |
| → valuemachine joined | 02:51 |
| → tomboy64 joined | 02:51 |
| → jas4711 joined | 02:55 |
| ← kjartan left | 03:02 |
| → kjartan joined | 03:03 |
| ← ferdna left | 03:08 |
| ← netj left | 03:14 |
| ← fphilipe_ left | 03:14 |
| → netj joined | 03:14 |
| ← Rubin left | 03:15 |
| ← rotaerk left | 03:15 |
| → rotaerk joined | 03:20 |
| → Newami joined | 03:21 |
| → Rubin joined | 03:22 |
| ← thiago left | 03:24 |
| ← kjartan left | 03:28 |
| → kjartan joined | 03:29 |
| ← rkta left | 03:34 |
| → rkta joined | 03:35 |
| ← xcm left | 03:38 |
| → xcm joined | 03:39 |
| ← jayjo left | 03:40 |
| → jayjo joined | 03:40 |
| ← elichai2 left | 03:47 |
| ← kjartan left | 03:49 |
| → kjartan joined | 03:50 |
| → nowhereman joined | 03:55 |
| ← nowhere_man left | 03:55 |
| → fjellfras joined | 03:57 |
| → martylake joined | 04:01 |
| ← valuemachine left | 04:04 |
| ← martylake_ left | 04:04 |
| ← cfoch left | 04:04 |
| → valuemachine joined | 04:04 |
| ← mrCyborg left | 04:05 |
| → mrCyborg joined | 04:05 |
| ← donofrio left | 04:06 |
| ← mud left | 04:08 |
| ← Anthaas left | 04:12 |
| → Anthaas joined | 04:12 |
| → durham joined | 04:12 |
| ← finn0 left | 04:13 |
| ← kjartan left | 04:13 |
| → kjartan joined | 04:14 |
| → beastDiv_ joined | 04:15 |
| ← fatalhalt left | 04:19 |
| → AugustusCaesar24 joined | 04:20 |
| → mat001 joined | 04:22 |
| ← mat001 left | 04:27 |
| ← publio left | 04:28 |
| ← kjartan left | 04:29 |
| → TheBatzMan joined | 04:29 |
| → kjartan joined | 04:31 |
| → greggerz joined | 04:33 |
| ← RoSoDude left | 04:36 |
| ← valuemachine left | 04:37 |
| → valuemachine joined | 04:38 |
| ← valuemachine left | 04:42 |
| ← durham left | 04:42 |
| → durham joined | 04:44 |
| ← durham left | 04:45 |
| → durham joined | 04:46 |
| ← durham left | 04:46 |
| → durham joined | 04:47 |
| ← durham left | 04:47 |
| → durham joined | 04:47 |
| ← durham left | 04:48 |
| → durham joined | 04:48 |
| ← BeerLover left | 04:49 |
| ← durham left | 04:53 |
| → Ori_B joined | 04:54 |
| → SwiftMatt joined | 04:56 |
| ← greggerz left | 04:56 |
| → matheusmoreira joined | 04:58 |
| → pks_ joined | 05:01 |
| → BeerLover joined | 05:02 |
| ← pks left | 05:02 |
| pks_ → pks | 05:02 |
| ← Karyon left | 05:03 |
| → greggerz joined | 05:08 |
| ← BeerLover left | 05:11 |
| ← SwiftMatt left | 05:11 |
| → Karyon joined | 05:11 |
| → fphilipe_ joined | 05:13 |
| → valuemachine joined | 05:14 |
| → LordVoldePort joined | 05:17 |
| ← xcm left | 05:25 |
| ← kjartan left | 05:25 |
| → xcm joined | 05:25 |
| → kjartan joined | 05:26 |
| → keepLearning512 joined | 05:28 |
| ← keepLearning512 left | 05:29 |
| → keepLearning512 joined | 05:30 |
| → Sasazuka joined | 05:31 |
| ← matheusmoreira left | 05:34 |
| ← Karyon left | 05:34 |
| → matheusmoreira joined | 05:35 |
| ← AugustusCaesar24 left | 05:35 |
| ← agowa338 left | 05:42 |
| ← fphilipe_ left | 05:45 |
| → AugustusCaesar24 joined | 05:46 |
| → g00s joined | 05:47 |
| → dartmouthed joined | 05:50 |
| ← orbyt_ left | 05:57 |
| ← greggerz left | 06:01 |
| ← johnny56 left | 06:05 |
| → Karyon joined | 06:05 |
| → SkarmoutsosV joined | 06:05 |
| ← Sasazuka left | 06:13 |
| ← cd left | 06:14 |
| ← Inline left | 06:14 |
| ← kjartan left | 06:14 |
| → kjartan joined | 06:15 |
| ← xcm left | 06:16 |
| → xcm joined | 06:16 |
| → SwiftMatt joined | 06:19 |
| → Noti joined | 06:21 |
| ← SwiftMatt left | 06:23 |
| → salad joined | 06:23 |
| → rfold joined | 06:24 |
| → TomTom joined | 06:30 |
| ← SkarmoutsosV left | 06:31 |
| ← g00s left | 06:34 |
| ← nowhereman left | 06:44 |
| ← satifant left | 06:46 |
| → fphilipe_ joined | 06:47 |
| ← Newami left | 06:48 |
| → rfuentess joined | 06:50 |
| → enoq joined | 06:50 |
| → Sasazuka joined | 06:51 |
| ← jcbitter left | 06:53 |
| → n3wborn joined | 06:53 |
| ← rfold left | 06:54 |
| → jcbitter joined | 06:54 |
| ← fphilipe_ left | 06:55 |
| → carro7 joined | 06:55 |
| → Jackneill joined | 06:56 |
| → fphilipe_ joined | 06:59 |
| → howdoi joined | 07:01 |
| → mohsen_1 joined | 07:02 |
| ← carro7 left | 07:02 |
| → finn0 joined | 07:02 |
| ← tufteddeer left | 07:08 |
| ← kreyren left | 07:09 |
| → tufteddeer joined | 07:11 |
| ← beastDiv_ left | 07:11 |
| → kreyren joined | 07:11 |
| → ave_milia joined | 07:12 |
| ← fphilipe_ left | 07:12 |
| ← xcm left | 07:12 |
| → xcm joined | 07:13 |
| → g00s joined | 07:13 |
| → atomi joined | 07:15 |
| ← ave_milia left | 07:15 |
| → ave_milia joined | 07:15 |
| ← netj left | 07:16 |
| → netj joined | 07:17 |
| ← keepLearning512 left | 07:17 |
| ← ave_milia left | 07:18 |
| → keepLearning512 joined | 07:18 |
| → ave_milia joined | 07:18 |
| → MylesBorins joined | 07:19 |
| ← oatmealraisin left | 07:19 |
| → mayurvpatil joined | 07:22 |
| ← mayurvpatil left | 07:22 |
| ← keepLearning512 left | 07:22 |
| → mayurvpatil joined | 07:22 |
| ← mayurvpatil left | 07:27 |
| → fphilipe_ joined | 07:28 |
| ← g00s left | 07:28 |
| → Mattiaslndstrm joined | 07:29 |
| → g00s joined | 07:29 |
| ← tufteddeer left | 07:29 |
| → SkarmoutsosV joined | 07:29 |
| → tufteddeer joined | 07:30 |
| ← Goplat left | 07:31 |
| → agowa338 joined | 07:32 |
| → mimajof joined | 07:32 |
| → Anticom joined | 07:33 |
| → chele joined | 07:38 |
| ← xcm left | 07:44 |
| ← queip left | 07:47 |
| → xcm joined | 07:47 |
| → shored joined | 07:48 |
| → jabular joined | 07:48 |
| ← Mattiaslndstrm left | 07:50 |
| → agowa339 joined | 07:51 |
| → Mattiaslndstrm joined | 07:51 |
| ← agowa338 left | 07:55 |
| ← Mattiaslndstrm left | 07:55 |
| ← fjellfras left | 07:55 |
| → queip joined | 07:57 |
|
`whoami`
| hello, when doing a rebase i selected the wrong option (fixup instead of reword), is there a way to go backwards ? :x | 07:59 |
| ← g00s left | 08:00 |
|
jast
| `whoami`: git rebase --abort if the rebase is still in progress, otherwise undo it and start over | 08:01 |
|
`whoami`
| mhm, ok :/ | 08:01 |
|
jast
| http://undo-failed-rebase.gitrecipes.de/ | 08:02 |
|
`whoami`
| (rebase is over) | 08:02 |
|
| ah nice, tyvm will read | 08:02 |
| → Mattiaslndstrm joined | 08:04 |
|
rfuentess
| jast: nice way to redo the branch :) | 08:09 |
|
| I normally do the trick with git reflog, (or by pushing the changes before the rebase and just deleting my local branch) | 08:10 |
| → T_UNIX joined | 08:12 |
| ← martylake left | 08:13 |
| ← xcm left | 08:14 |
| → xcm joined | 08:14 |
| → martylake joined | 08:15 |
| → joe4 joined | 08:16 |
| → sudosays joined | 08:19 |
| → yyy joined | 08:22 |
|
`whoami`
| well, it seems `git reset --hard @{1}` fixed the issue | 08:26 |
|
| that's awesome.. :) | 08:27 |
| → keepLearning512 joined | 08:27 |
| → floppydh joined | 08:33 |
| ← geekodour08 left | 08:35 |
| → Ploppz joined | 08:36 |
|
Ploppz
| I have a branch with several commits and I want to reduce it to a single commit and apply it on top of master. What is the right command? | 08:36 |
| ← fieldmapper left | 08:37 |
|
canton7
| Ploppz, you can merge wish --squash? | 08:37 |
| → Nothing4You joined | 08:38 |
|
sudosays
| yeah squash the commits | 08:39 |
|
Ploppz
| ok thanks | 08:41 |
| ← yonder left | 08:42 |
| ← gde33 left | 08:44 |
| ← Sasazuka left | 08:45 |
| → rosco_y joined | 08:46 |
| → gde33 joined | 08:46 |
| ← barteks2x left | 08:49 |
| → durham joined | 08:50 |
| ← durham left | 08:54 |
| → wu7c7i joined | 08:57 |
| ← n3wborn left | 08:58 |
| ← Mattiaslndstrm left | 08:59 |
| → joe1 joined | 08:59 |
|
Ploppz
| many repos seem to not like merge but rather that you always rebase instead, right? So as to avoid a commit dedicated to merging. How would I do what I asked without merging? | 09:00 |
| ← joe4 left | 09:02 |
|
Ploppz
| I tried to checkout my branch, then `git rebase -i master` but that didn't work | 09:02 |
|
| What I did was leave the first line with "pick" and all the rest "squash". But it did not retain most of my changes it seems. I added files that suddenly were not there anymore | 09:03 |
|
jast
| typically you'd use a non-interactive rebase (i.e. without '-i') | 09:03 |
|
Ploppz
| oh wait I see now that it tries to apply each commit individually! Ok let me try that | 09:03 |
|
jast
| squashing is an option, of course, if you have a lot of "garbage" commits that fell out of just committing randomly while you were working :) | 09:04 |
|
Ploppz
| I do want to both squash and rebase | 09:04 |
|
| I did `git rebase master` but again the files I added are not there anymore | 09:04 |
| → johnny56 joined | 09:05 |
| → Lucas_Gray joined | 09:05 |
|
cdunklau
| Ploppz: did you merge other stuff onto your branch? | 09:05 |
| ← luckman212 left | 09:05 |
|
cdunklau
| or just make commits on it | 09:05 |
|
jast
| did rebase ask you about fixing conflicts? because if so, you're not actually done yet :) | 09:05 |
| → akdev joined | 09:07 |
|
Ploppz
| Yes it did ask me to fix conflicts, but I had expected that it be the conflict between my branch and master? But files from my branch were not present | 09:08 |
| → luckman212 joined | 09:08 |
|
Ploppz
| cdunklau: Earlier I did a merge from branch to master, but I reverted it with `git reset --hard @~1` but I don't think this should matte?r | 09:08 |
|
cdunklau
| Ploppz: rebase applies the changes of each commit in turn, not all at once | 09:09 |
|
| so if you get conflicts along the way, it might be in a commit that came *before* you added those files | 09:09 |
|
Ploppz
| Hm.. maybe I shoud squash first and then rebase then | 09:09 |
|
cdunklau
| Ploppz: if you didn't merge master onto your branch, then yes that's probably the nicest option | 09:10 |
|
Ploppz
| is it right to use rebase -i for squashing a series of commits? or is there a better way? | 09:11 |
| → stdedos joined | 09:11 |
| ← zamba left | 09:12 |
| → medfly joined | 09:12 |
|
medfly
| Hi. I am trying to git-minus-gitlab/github/whatever. Someone replied to me saying I should make a change and with it "reviewed-by". Am I supposed to add reviewed by to my own commit message? | 09:13 |
|
| Like what does that even mean? | 09:13 |
| → planetcall|work joined | 09:13 |
|
cdunklau
| Ploppz: i like using -i for squashing, gives more control. just gotta be careful not to remove lines | 09:14 |
| ← valuemachine left | 09:14 |
| → zamba joined | 09:15 |
| → valuemachine joined | 09:15 |
|
Ploppz
| thanks cdunklau ! | 09:16 |
|
| after rebase -i all commits I thought I had squashed still show up in `git log` | 09:16 |
|
cdunklau
| Ploppz: what's git status say | 09:17 |
|
Ploppz
| ah wait that's because they are still on remote. Sorry | 09:17 |
| ← catsup left | 09:18 |
| → joe2 joined | 09:18 |
| → catsup joined | 09:18 |
| ← catsup left | 09:19 |
| → catsup joined | 09:20 |
| → martylake_ joined | 09:20 |
| ← hussam left | 09:20 |
| ← joe1 left | 09:21 |
| ← martylake left | 09:24 |
| ← sudosays left | 09:25 |
| → sudosays joined | 09:25 |
| ← sudosays left | 09:26 |
| ← kjartan left | 09:27 |
| → kjartan joined | 09:28 |
| ← sunri5e_ left | 09:30 |
| → sunri5e joined | 09:31 |
| ← AugustusCaesar24 left | 09:33 |
|
davve
| hey, i messed up and need to revert commits between somehash and anotherhash | 09:38 |
|
| i googled how to do a ranged revert but i am getting error: empty commit set passed | 09:38 |
|
| command: git revert -n f8a139c4eea662c7f3864375279d2bf7fca059eb^..8f4447f73999c2cfdc62cb8e3527b39d8ecc0eb5 | 09:38 |
|
medfly
| imo it's easiest to rebase -i, but to each their own | 09:39 |
|
davve
| oh you can revert from there? | 09:39 |
|
| I have pushed it though so I can't just rebase | 09:39 |
|
medfly
| ah I see | 09:39 |
|
davve
| ah I needed to have the older commit first | 09:40 |
| → fjellfras joined | 09:42 |
| ← fjellfras left | 09:42 |
| → m1sosoup joined | 09:43 |
| → fjellfras joined | 09:44 |
| ← xcm left | 09:46 |
| → xcm joined | 09:47 |
| ← unreal left | 09:47 |
| → fjellfras_ joined | 09:49 |
| ← buggytom left | 09:49 |
| ← fjellfras left | 09:49 |
| ← fjellfras_ left | 09:49 |
| → fjellfras_ joined | 09:50 |
| → arunkumar413 joined | 09:50 |
| → unreal joined | 09:54 |
| ← fjellfras_ left | 09:54 |
| → dre_ joined | 09:55 |
|
phinxy
| Did I do something wrong when there was <<<< foo and >>>>> foo, stuff in the source code after stashing, pulling and applying stash? | 10:01 |
|
medfly
| well, merge conflicts happen | 10:01 |
|
phinxy
| Is the syntax <<<< from git or from the source code? | 10:02 |
|
medfly
| from git, it's having trouble merging your changes because nearby lines have changed | 10:03 |
| ← serialoverflow left | 10:03 |
|
medfly
| (Although it won't stop you from committing <<<< >>> === stuff) | 10:03 |
|
| this is a "most likely" answer | 10:05 |
| → figuinhas joined | 10:05 |
|
phinxy
| Come to think of how complex things could get when the source code of git is being worked on. Like, there must be a lots of cases where the source code is interpreted as "git commands". | 10:05 |
| ← lankanmon left | 10:05 |
|
phinxy
| eh, perhaps not. Double quotes and escape codes if probably suffucient | 10:06 |
| → BeerLover joined | 10:07 |
| ← kjartan left | 10:07 |
| ← yyy left | 10:08 |
| → kjartan joined | 10:09 |
| → serialoverflow joined | 10:09 |
| → fieldmapper joined | 10:12 |
| → bsanford joined | 10:14 |
| ← bsanford left | 10:14 |
| ← chele left | 10:16 |
| ← tufteddeer left | 10:16 |
| → tufteddeer joined | 10:17 |
| → chele joined | 10:18 |
| ← armyriad left | 10:24 |
| → chele_ joined | 10:26 |
| ← chele left | 10:26 |
| ← tufteddeer left | 10:26 |
| → fjellfras joined | 10:28 |
| ← dre_ left | 10:31 |
| ← mooasaurus left | 10:33 |
| → rchavik joined | 10:33 |
| ← Anthaas left | 10:37 |
| → Anthaas joined | 10:39 |
| ← xcm left | 10:40 |
| → eigenvalue joined | 10:41 |
| → xcm joined | 10:41 |
| ← fjellfras left | 10:41 |
| ← vsbogd left | 10:42 |
| → dege joined | 10:45 |
| ← moldybits left | 10:47 |
| ← valuemachine left | 10:49 |
| ← keepLearning512 left | 10:49 |
| → valuemachine joined | 10:49 |
| → lacrymology joined | 10:53 |
| ← inquisitiv3 left | 10:55 |
| → armyriad joined | 10:55 |
| ← ChrisLane left | 10:56 |
| → ChrisLane joined | 10:56 |
| → hussam joined | 10:57 |
| xcm → Guest42561 | 10:58 |
| → xcm joined | 10:58 |
| ← Guest42561 left | 10:59 |
| ← BeerLover left | 11:00 |
| → Mattiaslndstrm joined | 11:02 |
| → BeerLover joined | 11:02 |
| ← BeerLover left | 11:04 |
| ← valuemachine left | 11:06 |
| → valuemachine joined | 11:07 |
| → BeerLover joined | 11:10 |
| ← BeerLover left | 11:11 |
| ← johnny56 left | 11:15 |
| → BeerLover joined | 11:16 |
| ← kjartan left | 11:16 |
| → kjartan joined | 11:17 |
| → lankanmon joined | 11:24 |
| → emsjessec joined | 11:25 |
| ← rchavik left | 11:25 |
| ← arunkumar413 left | 11:30 |
| ← kjartan left | 11:30 |
| ← finn0 left | 11:30 |
| → kjartan joined | 11:31 |
| ← xcm left | 11:31 |
| → xcm joined | 11:32 |
| ← gde33 left | 11:37 |
| ← Lucas_Gray left | 11:37 |
| ← BeerLover left | 11:39 |
| ← SkarmoutsosV left | 11:39 |
| → Lucas_Gray joined | 11:40 |
| ← lacrymology left | 11:42 |
| → TheWild joined | 11:43 |
|
TheWild
| hello | 11:43 |
| ← medfly left | 11:43 |
|
TheWild
| I cloned (--mirror) repository A to X. There's also repository B (which is supposedly a fork?). Thing is that B contains pending pull request, commit of which is 5511ce0 and I want to set my master to it. | 11:45 |
|
| I can't simply reset to it because my repository has no knowledge of 5511ce0 | 11:45 |
| ← fphilipe_ left | 11:46 |
| → BeerLover joined | 11:47 |
|
rfuentess
| TheWild: you need to put repository B as a remote repository | 11:47 |
|
| with that you can run `git fetch` and you should be able to see the remote branch at B with your wished commit | 11:47 |
| ← Lucas_Gray left | 11:48 |
| → tcorneli joined | 11:48 |
| → fretta joined | 11:51 |
| → gde33 joined | 11:51 |
| → arunkumar413 joined | 11:51 |
| → Lucas_Gray joined | 11:52 |
| → fphilipe_ joined | 11:52 |
| → finn0 joined | 11:53 |
|
tcorneli
| Hi, i have something weird going on with git. I'm using one repository for multiple worktrees. When I pull from origin branch_a to the local branch_a in the corresponding worktree, the other worktrees are changed too, but git worktree list shows no changes in the current commit. When I reset the other worktrees and do a pull on one of them, they ar | 11:54 |
|
| e updated correctly, but git worktree list still show no change. I am working from a bare repository if that's important. | 11:54 |
| ← BeerLover left | 12:00 |
| → oatmealraisin joined | 12:00 |
| → deathwishdave joined | 12:01 |
| → yo-wan joined | 12:02 |
|
TheWild
| rfuentess: oh, man. Figured that out. | 12:03 |
|
| git fetch B refs/pull/1/head:master | 12:03 |
|
| thanks anyway | 12:03 |
|
| shame that it only works for branches (heads) and not commits known by hash :/ | 12:04 |
|
| Tried by hash: git fetch B 5511ce0:master | 12:05 |
|
| but I got: error: Server does not allow request for unadvertised object 5511ce0 | 12:05 |
| → BeerLover joined | 12:05 |
| → johnny56 joined | 12:05 |
| → rfold joined | 12:09 |
| ← tcorneli left | 12:10 |
| ← fretta left | 12:12 |
| ← BeerLover left | 12:14 |
|
rfuentess
| TheWild: once that your local repository knows about B you can use cherry-pick | 12:14 |
|
TheWild
| meh, cherry-pick would alter the hash | 12:14 |
|
rfuentess
| mmm then a git merge ? | 12:14 |
| → Hi-Angel joined | 12:15 |
| → thiago joined | 12:16 |
|
Hi-Angel
| I wonder, can I rewind an interactive git-rebase a few commits back? For example, I'm doing an complex rebase over many commits, and I figured that a few commits back I made a mistake. Is it possible not to start all over again, but, kind of, rewind it back in time to that commit? | 12:18 |
|
rfuentess
| Hi-Angel: I think you could do something with reflog and reset --hard... BUT, I would not do it . | 12:21 |
|
| Also, is not more easy to fix the problem after the rebase ? with another `git rebase -i` ? | 12:21 |
| → thefatma joined | 12:23 |
| → achen_ joined | 12:23 |
|
Hi-Angel
| Hmm, I don't think so. I gonna have complex conflicts in future commits, and I won't know if I solved them correctly if I can't build project. But I can't build it because of the mistake. I can though just do some changes that looks correct, and then do the second rebase… But I'm not sure I'd really like it, I'm not even sure that these changes gonna play out, i.e. that I not gonna have to call --abort on some commit. | 12:26 |
| → tufteddeer joined | 12:26 |
| → Sir_Cheer joined | 12:29 |
|
rfuentess
| Hi-Angel: ok, that sounds odd, are you rebasing your master branch ? | 12:29 |
|
Hi-Angel
| rfuentess, no, not master… Why does it sound odd? | 12:30 |
| → CodeSlingerPaul joined | 12:30 |
|
rfuentess
| Hi-Angel: normally when you are doing the `rebase -i` its over your own branch. So, you can run multiple times if necessary | 12:31 |
| ← tufteddeer left | 12:31 |
|
Hi-Angel
| Oh | 12:31 |
|
| I didn't know it. Let me try | 12:31 |
| → tufteddeer joined | 12:32 |
| ← oatmealraisin left | 12:32 |
|
rfuentess
| of course, each time you are working in the current state of the branch. But if a specific commit requires extra work, then it's OK | 12:32 |
|
Hi-Angel
| rfuentess, nope, it says "fatal: It seems that there is already a rebase-merge directory, and I wonder if you are in the middle of another rebase." | 12:32 |
|
cdunklau
| Hi-Angel: what mistake did you make | 12:32 |
|
Sir_Cheer
| ".esaber rehtona fo elddim eht ni era uoy fi rednow I dna ,yrotcerid egrem-esaber a ydaerla si ereht taht smees tI :lataf" syas ti ,epon ,ssetneufr | 12:32 |
|
rfuentess
| Hi-Angel: You first need to finish your current rebase in progress (or abort it ) | 12:33 |
|
Hi-Angel
| cdunklau, in short, I just didn't constify some part of code, and at future commits this causes build failure. | 12:34 |
|
| rfuentess, ah, in this case as I said I'd rather just do --abort, and start all over | 12:34 |
|
cdunklau
| Hi-Angel: hmm, editing code in a rebase sounds like a bad idea :) | 12:35 |
|
Hi-Angel
| Okay, anyway, nvm. It's not that important, I can just do abort. I was just wondering if it's possible to rewind rebase back. | 12:35 |
|
| cdunklau, hmm, why? This is a well established practice. | 12:35 |
|
| Like, how are you supposed to address a review otherwise? :) | 12:35 |
|
cdunklau
| make a new commit with the fix? | 12:35 |
|
| if you're trying to make it so every commit that hits master is compileable, squashing is probably the right thing | 12:37 |
|
| (i'm probably assuming a whole bunch about your situation i have no business doing :D ) | 12:37 |
|
| err, to be clear, i mean squashing the branch before merging to master | 12:38 |
|
Hi-Angel
| cdunklau, if your new commit fixes previous commit, and none of them have been merged upstream, then reviewers gonna require them squashed. Now, if the same situation happens with a commit, say, HEAD~5, then you gonna need to edit the HEAD~5 commit :) | 12:39 |
|
Sir_Cheer
| (: timmoc 5~DAEH eht tide ot deen annog uoy neht ,5~DAEH ,yas ,timmoc a htiw sneppah noitautis emas eht fi ,woN .dehsauqs meht eriuqer annog sreweiver neht ,maertspu degrem neeb evah meht fo enon dna ,timmoc suoiverp sexif timmoc wen ruoy fi ,ualknudc | 12:39 |
| → exitcode1 joined | 12:39 |
|
cdunklau
| Sir_Cheer: that's pretty annoying | 12:39 |
|
Hi-Angel
| At least Sir_Cheer put a smile at the beginning :) | 12:40 |
|
cdunklau
| Hi-Angel: what advantage does editing a commit give you though? | 12:40 |
|
Hi-Angel
| cdunklau, less work for reviewers. Also, assuming you didn't do it, and they notice your mistake in HEAD~5 commit, they gonna require you to fix it anyway. | 12:41 |
|
| cdunklau, have you contributed to open source projects? | 12:42 |
|
cdunklau
| hmm i'm still not getting why that'd be something worthwhile, especially if the commits are gonna get squashed anyway | 12:42 |
|
| Hi-Angel: yes | 12:42 |
|
Hi-Angel
| cdunklau, squashing commits is a bad practice though. | 12:43 |
|
cdunklau
| Hi-Angel: it *can* be, sure | 12:43 |
| → inkbottle joined | 12:43 |
| → lacrymology joined | 12:43 |
|
rfuentess
| Hi-Angel: Depends :P I do a lot of --fixup, --squash and then rebase -i --autosquash | 12:43 |
|
cdunklau
| say i make a feature, and submit it as a PR. the branch has several commits from me wanting to save ongoing progress | 12:44 |
|
rfuentess
| but maybe Hi-Angel need that HEAD~5 separated because it's a specific logical change that doesn't mix with the other four commits | 12:44 |
|
Hi-Angel
| rfuentess, yeah, sure | 12:44 |
|
cdunklau
| then the maintainer does a review and wants me to fix some things. i do that, make a new commit | 12:44 |
|
rfuentess
| in that case, ammend that commit is required | 12:44 |
|
cdunklau
| then everything's okay in the whole changeset, but to keep the whole feature frrom being spread out across several commits in `master`'s history, squashing is the right approach | 12:45 |
|
rfuentess
| cdunklau: yeah, the complexity for squashing that new commit will depends if the following four commits also work on the same file :) (I normally do like this) | 12:46 |
| ← netj left | 12:46 |
|
Hi-Angel
| cdunklau, but here's the thing: you do want to "spread out" the feature in history. These commits are separate logical changes, they need to be kept separately so one could git-bisect, or just quickly figure out what was happening in that specific commit. | 12:46 |
| → bashfulshell joined | 12:47 |
|
Hi-Angel
| If you squash them, the history gonna have one large commit with multiple logical changes, and if someone find regression that leads to that large commit, it would be harder to figure out why was that happening | 12:47 |
| → netj joined | 12:47 |
|
cdunklau
| makes sense | 12:48 |
| → BeerLover joined | 12:48 |
|
cdunklau
| the situation i try to avoid by squashing is where the various commits from one feature branch appear interleaved with others | 12:48 |
|
| (after merging) | 12:48 |
| ← BeerLover left | 12:49 |
|
Hi-Angel
| Btw, I recently read a nice blog post from libinput maintainer on commits organization, maybe it's a nice moment I can share it http://who-t.blogspot.com/2009/12/on-commit-messages.html | 12:50 |
|
cdunklau
| maybe i'm extra-sensitive to this because i just spent a week trying to figure out wtf happened with a borked-up merge | 12:50 |
|
| Hi-Angel: oldie-but-goodie right there | 12:52 |
|
Hi-Angel
| (= | 12:53 |
|
rfuentess
| cdunklau: that issue (the search of bad commits in disorder) is more or less mitigated with git bisect (AFAIK) | 12:53 |
|
cdunklau
| rfuentess: if you have good tests :) | 12:53 |
| → exitcode_ joined | 12:54 |
|
cdunklau
| i'm mostly sour about the debacle last week because it's my fault | 12:54 |
|
| protip: don't let PRs get stale! :D | 12:55 |
| → tcorneli joined | 12:55 |
| ← exitcode1 left | 12:56 |
|
Hi-Angel
| cdunklau, I'm a little unclear on what happened, but it sounds like you needed in your branch commits from another feature branch. And the only situation I can think of where you may have ended up with commits "interleaved" is if you tried to "git-merge" changes from another branch to yours. Well, in this case you ought to use "git rebase" instead of "git merge". | 13:01 |
|
| By doing "git rebase" you always make sure that your new commits are still on the top. | 13:01 |
|
cdunklau
| Hi-Angel: the dev branched off master, did some things, submitted PR. then they branched off their PR branch, and did more | 13:01 |
|
| then submitted another PR | 13:02 |
|
| i reviewed the first PR, they changed stuff, i came back months later and merged it | 13:02 |
|
| then merge conflicts showed up in the second PR | 13:02 |
|
Hi-Angel
| Oh, I see | 13:02 |
|
cdunklau
| yeah :D | 13:02 |
| ← magic_ninja_work left | 13:03 |
|
cdunklau
| looks like their fault, isn't though | 13:03 |
|
| had i not left this alone for months, it would have been more obvious to the dev what they did | 13:04 |
|
| but since i did, i had to clean up the mess, since they didn't remember what they did | 13:04 |
|
| and they're not all that experienced | 13:05 |
| ← esrse left | 13:05 |
|
Hi-Angel
| That's IMO a typical situation, because sometimes you need to continue working on a feature without waiting for the older branch to get merged. They shouldn't have sent the 2nd PR until the 1st one got merged though… Anyway, what I do in such situations: just use "git cherry-pick" to pick up the new commits from the 2nd branch. | 13:05 |
|
cdunklau
| there were other issues that prevented such a clean fix | 13:07 |
|
| i wound up just going commit-by-commit, annotating all the changes, until i was able to get the whole picture | 13:07 |
|
| then manually fixed the conflicts in the second PR | 13:07 |
|
| lots of ammo for my "things not to do" list, for sure :) | 13:08 |
| → BeerLover joined | 13:11 |
| ← joe2 left | 13:12 |
| ← tcorneli left | 13:12 |
| → joe2 joined | 13:13 |
| ← tufteddeer left | 13:14 |
| ← BeerLover left | 13:14 |
| → tufteddeer joined | 13:15 |
| ← LordVoldePort left | 13:19 |
| → mat001 joined | 13:19 |
| ← tufteddeer left | 13:20 |
|
Hi-Angel
| Btw, in fact right now I'm working on a code that branched off a branch that has a few weeks old merge request that nobody bothers to review. | 13:20 |
| ← inkbottle left | 13:20 |
| ← polyrob left | 13:21 |
| ← finn0 left | 13:24 |
| → SwiftMatt joined | 13:24 |
| → keepLearning512 joined | 13:26 |
| → BeerLover joined | 13:27 |
| → gxt joined | 13:29 |
| ← BeerLover left | 13:29 |
| → tufteddeer joined | 13:32 |
| → altendky joined | 13:32 |
| ← queip left | 13:33 |
| ← Mattiaslndstrm left | 13:33 |
| ← fphilipe_ left | 13:34 |
|
cdunklau
| yaaay | 13:35 |
| → fphilipe_ joined | 13:36 |
| → queip joined | 13:40 |
| ← ave_milia left | 13:41 |
|
rfuentess
| rebase over rebase over rebase : ) | 13:42 |
|
| that is where one learns to love --autosquash :) | 13:42 |
| → czart joined | 13:43 |
| → magic_ninja_work joined | 13:45 |
| → Eryn_1983_FL joined | 13:46 |
| ← fphilipe_ left | 13:46 |
| → Fabricio20 joined | 13:47 |
|
Hi-Angel
| rfuentess, even ignoring for a second the fact that I'd be required to break that squashed big commit back into logical changes, I don't see why squashing the commits would change much for me. | 13:47 |
|
rfuentess
| Hi-Angel: ah sorry, not for your case | 13:48 |
|
Hi-Angel
| Ah, okay | 13:48 |
| ← magic_ninja_work left | 13:48 |
|
rfuentess
| but having the squash! and fixup! on the PR's make more easy to force the last changes into the other PRs | 13:49 |
| → achen__ joined | 13:50 |
| ← mohsen_1 left | 13:51 |
| ← lacrymology left | 13:51 |
| ← achen_ left | 13:52 |
| ← thefatma left | 13:52 |
| → thefatma joined | 13:52 |
| ← xcm left | 13:54 |
|
Hi-Angel
| Hmm… I don't know, maybe I'm just not familiar with such workflow, but for me it's much easier to do this: given branch1 with PR, and a work-in-progress branch2 that is branched off branch1. If branch1 gets changed, I'd rather do (while on branch2): "git format-patch -10 --stdout > 1.patch", then "git reset --hard branch1", then "git am -3 1.patch". (and there's a less destructive way with cherry-pick…) | 13:55 |
| → xcm joined | 13:55 |
| ← thiago left | 13:55 |
| → fphilipe_ joined | 13:56 |
|
Hi-Angel
| (the "-10" here assumes that branch2 has 10 new commits on top of branch1) | 13:56 |
| → lacrymology joined | 13:56 |
|
rfuentess
| Hi-Angel: doesn't sound bad. I should try it :) | 13:57 |
| → thiago joined | 13:57 |
| → oxymoron93 joined | 13:57 |
| ← joe2 left | 14:00 |
| ← xcm left | 14:02 |
| ← sweatsuit left | 14:02 |
| → xcm joined | 14:03 |
| → joe2 joined | 14:05 |
| → sweatsuit joined | 14:05 |
| → elichai2 joined | 14:05 |
| ← floppydh left | 14:08 |
| → AbleBacon joined | 14:08 |
| ← xcm left | 14:10 |
| → xcm joined | 14:10 |
| → Es0teric joined | 14:11 |
| ← Lucas_Gray left | 14:12 |
| ← enoq left | 14:14 |
| → Lucas_Gray joined | 14:14 |
| ← fphilipe_ left | 14:17 |
| → ghoti joined | 14:17 |
| → AtumT joined | 14:21 |
| → fphilipe_ joined | 14:22 |
| → magic_ninja_work joined | 14:25 |
| ← Sir_Cheer left | 14:26 |
| → fphilipe joined | 14:27 |
| → oatmealraisin joined | 14:27 |
| → boombatower joined | 14:28 |
| ← fphilipe_ left | 14:28 |
| → greggerz joined | 14:29 |
| → pyfgcr joined | 14:34 |
| ← agowa339 left | 14:36 |
| ← oxymoron93 left | 14:37 |
| → davidfetter joined | 14:38 |
|
davidfetter
| hi | 14:38 |
|
| haymawk waves hi | 14:39 |
|
davidfetter
| is there a way to parallelize fetching remotes? | 14:39 |
| ← lacrymology left | 14:39 |
|
| davidfetter has an origin (always fetched first) that's a little pokey | 14:39 |
|
haymawk
| davidfetter: no I don't think you can do that | 14:41 |
|
| https://stackoverflow.com/questions/43019999/git-pull-multiple-remotes-in-parallel | 14:41 |
|
davidfetter
| ok | 14:42 |
| → rsrx joined | 14:43 |
|
foo
| Here: https://gitolite.com/deploy.html - it says under "4.1 checkout -- the "fight club" of git deployment": you always checkout to the same deploy directory you always checkout the same branch ... I want to deploy to a different directory and/or a different branch... it seems to have worked out. Anyone else done this before and seen issues? | 14:47 |
| → Phylock joined | 14:48 |
| joe2 → revoltingPeasant | 14:50 |
| → tarkus joined | 14:52 |
|
jast
| foo: it can, in theory, cause issues because the index will be updated to match each time, so git's of what files should be deleted when switching/updating a second work tree could be off | 14:54 |
|
| *git's knowledge | 14:54 |
| → polyrob joined | 14:54 |
| ← xcm left | 14:54 |
|
jast
| you can work around this by also passing different index files for each work tree (GIT_INDEX_FILE I think) | 14:54 |
| → xcm joined | 14:55 |
| ← mimajof left | 14:56 |
| → stutter joined | 14:56 |
| ← bashfulshell left | 14:57 |
|
foo
| jast: thank you. In theory, as in, it can happen but rarely does? I wonder if there's a guide on how to do this in a sane way. | 14:57 |
|
jast
| well, personally I think it's enough of a problem to avoid doing this | 14:58 |
| → achen_ joined | 15:00 |
| ← polyrob left | 15:00 |
| ← mat001 left | 15:01 |
| ← thefatma left | 15:01 |
| ← achen__ left | 15:01 |
| → thefatma joined | 15:02 |
| → polyrob joined | 15:04 |
| ← Noti left | 15:04 |
| → theoceaniscool joined | 15:06 |
| ← vdl left | 15:08 |
| → SkarmoutsosV joined | 15:09 |
| → CyberX joined | 15:09 |
| → vdl joined | 15:10 |
| ← Anticom left | 15:11 |
|
foo
| jast: thank you for sharing. Is there *any* work around? eg. right now, I just cp -Rv 'd the whole repo to a backup, then I set GIT_WORK_TREE, git checkout -f anotherbranch ... then I moved the old git repo back... heh. Probably overkill? | 15:12 |
| ← tufteddeer left | 15:13 |
| → tufteddeer joined | 15:13 |
| → navidr joined | 15:15 |
| ← thiago left | 15:16 |
| → thiago_ joined | 15:16 |
| thiago_ → thiago | 15:16 |
| → arunkumar413_ joined | 15:23 |
| ← deathwishdave left | 15:23 |
| ← tufteddeer left | 15:24 |
| ← raffo left | 15:24 |
| → tufteddeer joined | 15:24 |
| ← arunkumar413 left | 15:24 |
| ← keepLearning512 left | 15:28 |
| → raffo joined | 15:28 |
| ← wu7c7i left | 15:32 |
| ← SwiftMatt left | 15:33 |
| ← exitcode_ left | 15:34 |
| ← chele_ left | 15:34 |
| → yyy joined | 15:35 |
| → orbyt_ joined | 15:35 |
| → cjohnson joined | 15:35 |
| → tang^ joined | 15:36 |
| ← m1sosoup left | 15:38 |
|
sybariten
| so, a newbie question. I don't know if this is git or gitlab related. We have two environments for something that i would describe as config files. test and production. The files are almost identical between the environments, save for some paths or strings in them, like test.database.com and prod.database.com | 15:40 |
| ← tufteddeer left | 15:41 |
|
sybariten
| ideally i'd like to be able to work on everything in the test environment, do my push and pulls there, and when i see that it works, just simply check out the same things in the prod environment.... do versioning syustems have some sort of functionality that can dynamically change certain values like that? | 15:41 |
| ← Cabanossi left | 15:46 |
| → Cabanossi joined | 15:46 |
|
davve
| sybariten: a workflow using git branches is the norm i would say | 15:48 |
|
sybariten
| davve: aha, could you explain a little further how this would be solved or what i need to search for? | 15:48 |
| ← miklcct left | 15:49 |
|
davve
| usually you would let master be production, and have development in a another branch, maybe even named development or testing | 15:49 |
|
sybariten
| okay | 15:49 |
|
davve
| where you would then merge to master when you are in a happy state... maybe even use tags and consider them releases | 15:49 |
| ← rfuentess left | 15:49 |
| → miklcct joined | 15:50 |
| ← AbleBacon left | 15:50 |
| ← orbyt_ left | 15:54 |
|
sybariten
| ok, and.. with a simple example. If these are two files here https://pastebin.com/GRFBt65V and in the test case i have added "delta" as you can see. Could i check that in somehow, and check it out at the production place, with the delta added but the database path still being correct (prod.database.com) ? | 15:55 |
| → AbleBacon joined | 15:55 |
| ← TheWild left | 16:01 |
| → TheWild joined | 16:02 |
| → mat001 joined | 16:02 |
| ← mat001 left | 16:02 |
| → mat001 joined | 16:03 |
| → BeerLover joined | 16:06 |
|
osse
| !config | 16:06 |
|
gitinfo
| [!configfiles] It is recommended to store local configuration data in a file which is not tracked by git, but certain deployment scenarios(such as Heroku) may require otherwise. See https://gist.github.com/1423106 for some ideas | 16:06 |
| ← BeerLover left | 16:10 |
| → mowcat joined | 16:10 |
| ← thiago left | 16:12 |
| → gareppa joined | 16:13 |
| ← SkarmoutsosV left | 16:13 |
| → lacrymology joined | 16:14 |
| ← gareppa left | 16:14 |
| ← Lucas_Gray left | 16:18 |
| → durham joined | 16:20 |
| → nerosnm joined | 16:21 |
| ← tarkus left | 16:24 |
| ← TheWild left | 16:24 |
| → cdown_ joined | 16:28 |
| ← cdown left | 16:30 |
| cdown_ → cdown | 16:30 |
| ← arunkumar413_ left | 16:31 |
| ← rsrx left | 16:34 |
| ← durham left | 16:34 |
| ← Es0teric left | 16:36 |
| ← revoltingPeasant left | 16:42 |
| → elsheepo joined | 16:44 |
| ← hellauer left | 16:45 |
| ← johnny56 left | 16:45 |
| → MACscr joined | 16:47 |
| ← yyy left | 16:48 |
| → TheWild joined | 16:51 |
| → bluesmonk joined | 16:52 |
| ← n000g left | 16:54 |
| → subopt joined | 16:54 |
| ← pyfgcr left | 16:55 |
| → gracecr joined | 16:58 |
| → iam730 joined | 16:58 |
| → thiago joined | 17:04 |
| ← greggerz left | 17:06 |
| → tarkus joined | 17:07 |
| ← nerosnm left | 17:11 |
| ← elsheepo left | 17:11 |
| → johnny56 joined | 17:11 |
| → revoltingPeasant joined | 17:13 |
| ← tarkus left | 17:14 |
| ← xcm left | 17:15 |
| → fission6 joined | 17:16 |
| ← Jackneill left | 17:16 |
| → xcm joined | 17:16 |
| → Es0teric joined | 17:18 |
| ← planetcall|work left | 17:21 |
| → gloomy joined | 17:22 |
| → cfoch joined | 17:23 |
| → n000g joined | 17:26 |
| → unlimiter joined | 17:26 |
| ← figuinhas left | 17:27 |
| → mohsen_1 joined | 17:28 |
| ← unlimiter left | 17:29 |
| ← czart left | 17:31 |
| → CryptoDavid joined | 17:33 |
| → orcainbox joined | 17:34 |
| ← fphilipe left | 17:35 |
| → Laxtour joined | 17:36 |
| ← Laxtour left | 17:36 |
| → Laxtour joined | 17:36 |
| → keepLearning512 joined | 17:37 |
| ← jwest left | 17:42 |
| ← fission6 left | 17:43 |
| → appll joined | 17:43 |
| ← lacrymology left | 17:44 |
| ← keepLearning512 left | 17:46 |
| ← Hi-Angel left | 17:47 |
| → agowa338 joined | 17:50 |
| ← TheWild left | 17:51 |
| → Inline joined | 17:54 |
| ← Laxtour left | 17:55 |
| → |Fitz| joined | 17:55 |
| → Laxtour joined | 17:56 |
| ← Laxtour left | 17:56 |
| → fphilipe joined | 17:57 |
| → GeraldW joined | 17:57 |
| → rsrx joined | 17:57 |
| ← fphilipe left | 18:01 |
| → fission6 joined | 18:05 |
| → Dirak joined | 18:06 |
|
Dirak
| is it possible to have two git branches open at the same time on a single computer? | 18:06 |
|
| My usecase is I have a long running process that requires me to be checked into one branch, and I want to work on another | 18:07 |
|
cdunklau
| Dirak: clone the repo to somewhere else on the machine | 18:08 |
|
Dirak
| ah good idea. ty! | 18:08 |
| ← agowa338 left | 18:10 |
| → SwiftMatt joined | 18:10 |
|
bin_bash
| just dont forget that you did that ;) | 18:10 |
| ← Cabanossi left | 18:14 |
| → jwest joined | 18:14 |
| → SkarmoutsosV joined | 18:15 |
| ← jwest left | 18:15 |
| → wu7c7i joined | 18:17 |
| → Cabanoss- joined | 18:19 |
| → durham joined | 18:19 |
| → m0viefreak joined | 18:20 |
| ← Karyon left | 18:21 |
| ← Cabanoss- left | 18:23 |
| ← T_UNIX left | 18:23 |
| → Karyon joined | 18:26 |
| → czart joined | 18:28 |
| → Cabanossi joined | 18:28 |
| → unlimiter joined | 18:28 |
| ← sauvin left | 18:28 |
| ← armyriad left | 18:30 |
| ← unlimiter left | 18:31 |
| ← theoceaniscool left | 18:40 |
| → czart_ joined | 18:41 |
| ← xcm left | 18:43 |
| → xcm joined | 18:44 |
| ← czart left | 18:44 |
| ← SwiftMatt left | 18:53 |
| → acercle joined | 18:54 |
|
osse
| Dirak: git worktree is nice for this | 18:58 |
| → finn0 joined | 19:05 |
| ← Karyon left | 19:06 |
| → bashfulshell joined | 19:07 |
| → n3wborn joined | 19:20 |
| ← Dirak left | 19:21 |
| ← revoltingPeasant left | 19:21 |
| → elsheepo joined | 19:24 |
| → mat001_ joined | 19:24 |
| ← mat001_ left | 19:25 |
| ← czart_ left | 19:26 |
| ← gloomy left | 19:26 |
| → mat001_ joined | 19:26 |
| → alonkli joined | 19:27 |
| ← mat001 left | 19:27 |
| ← igemnace left | 19:30 |
| ← giaco left | 19:31 |
| → tufteddeer joined | 19:34 |
| ← sunri5e left | 19:34 |
| → sunri5e joined | 19:35 |
| → mat001 joined | 19:37 |
| ← emsjessec left | 19:40 |
| ← mat001_ left | 19:40 |
| → fphilipe joined | 19:42 |
| ← mingdao left | 19:43 |
| ← fission6 left | 19:43 |
| → mingdao joined | 19:44 |
| → fission6 joined | 19:48 |
| → relipse joined | 19:55 |
| → lf94 joined | 19:57 |
|
lf94
| How do paths work in a git hook? | 19:57 |
|
| Apparently one of the programs specified is running...but it really isnt or something. | 19:58 |
|
cdunklau
| lf94: you probably did something wrong. maybe! | 20:00 |
|
Ori_B
| lf94: not sure what your question is, specifically -- but you should be able to debug with a bunch of 'echo' and 'set -x' | 20:00 |
|
cdunklau
| (tell us more, then we can help) | 20:00 |
|
lf94
| http://leefallat.ca/wiki/ | 20:00 |
|
| That script in the bottom :) | 20:00 |
|
| If I invoke it manually, within the repository...it works | 20:01 |
|
| When I git push, the echos I put into a custom version print.... | 20:01 |
|
| (post-receive hook) | 20:01 |
|
| I have also replaced ~ with absolute paths | 20:02 |
|
| Same story | 20:02 |
| → dino82 joined | 20:02 |
|
osse
| You're being too vague. What precisely is happening when you push? | 20:03 |
| ← oatmealraisin left | 20:03 |
| → Dirak joined | 20:03 |
|
relipse
| Hi, I'm getting a message about my repository: This repository is currently 2.0 GB in size. If it exceeds 0 bytes it will be put into read-only mode.What can I do to free up space? | 20:04 |
| ← rsrx left | 20:05 |
|
lf94
| osse: https://gist.github.com/lf94/56ac4596fea74f3e3b177579d1f8531c | 20:05 |
|
| I'm not sure how I can be any more specific | 20:05 |
| → Sasazuka joined | 20:05 |
|
lf94
| It clearly echos "ran asciidoctor"... | 20:06 |
| → giaco joined | 20:06 |
|
cdunklau
| lf94: server-side repos are almost always "bare", they don't have a working tree | 20:07 |
|
osse
| lf94: yes, and ? | 20:07 |
|
lf94
| Ok. I think the problem is my git commands are not running as I expect them to... | 20:07 |
|
| cdunklau: I know | 20:07 |
|
osse
| the scrupt you linked to doesn't have "echo ran asciidoctor" in it | 20:07 |
|
cdunklau
| so if the script expects a working tree, it probably won't work on the server without extra hacking | 20:07 |
|
lf94
| cdunklau: that's why post-receive comes into play... | 20:08 |
|
| osse: I know - I just added it after the asciidoctor command in post-receive hook | 20:08 |
|
relipse
| is there a way to delete all my git history except the last commit? | 20:08 |
|
| that will free up space of my repository somehow | 20:09 |
|
cdunklau
| lf94: "On the remote server you need this setting so git will accept pushes on a non-bare repository " | 20:09 |
|
lf94
| I think it _is_ working, and git checkout HEAD ; git reset --hard HEAD -- ; are not working as I expect... | 20:09 |
|
cdunklau
| that sounds not-usual :) | 20:09 |
| → gloomy joined | 20:09 |
|
lf94
| It is unusual - I don't say it's normal | 20:09 |
|
| I guess I'll be explicit :p | 20:09 |
|
| How can I checkout a completely fresh version of head within the post-receive hook, then? | 20:10 |
|
| (if what I wrote earlier doesnt work...) | 20:10 |
|
cdunklau
| relipse: back up the repo, delete it from the server, clone from the backup locally, remove the .git dir from the clone (not the backup!), git init, add all the files, commit, add the remote, force push | 20:11 |
|
osse
| lf94: !deploy | 20:11 |
|
cdunklau
| err, not force push. | 20:11 |
|
gitinfo
| lf94: Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html | 20:11 |
|
cdunklau
| relipse: recreate the repo on the server, then push your adjusted repo | 20:12 |
|
lf94
| osse: yeah I know. Alternatively I could just use rsync | 20:12 |
|
cdunklau
| relipse: and stop adding big files to your repo | 20:12 |
|
| :) | 20:12 |
|
lf94
| osse: but damn, I was not far off :D | 20:13 |
|
| Thanks for the link | 20:13 |
| ← ghoti left | 20:14 |
| ← cfoch left | 20:15 |
| ← wu7c7i left | 20:18 |
| → def_jam joined | 20:18 |
| ← eb0t left | 20:19 |
| ← eblip left | 20:19 |
| → eb0t_ joined | 20:20 |
| ← im0nde| left | 20:20 |
| → im0nde_ joined | 20:20 |
| → im0nde- joined | 20:20 |
| ← im0nde left | 20:21 |
| ← eigenvalue left | 20:23 |
|
lf94
| ah ha | 20:24 |
|
| All working! | 20:24 |
| → rsrx joined | 20:24 |
|
lf94
| Thanks again osse | 20:24 |
| ← gloomy left | 20:24 |
| ← thefatma left | 20:25 |
| ← achen_ left | 20:25 |
| ← subopt left | 20:28 |
| ← lf94 left | 20:28 |
|
deltab
| relipse: using bitbucket? | 20:30 |
| → lacrymology joined | 20:31 |
| → vdv joined | 20:31 |
| ← vdv left | 20:31 |
| ← elsheepo left | 20:32 |
| → Lucas_Gray joined | 20:32 |
| → leeN joined | 20:33 |
| ← gracecr left | 20:34 |
| ← rfold left | 20:36 |
| → Jackneill joined | 20:44 |
| ← fphilipe left | 20:45 |
| ← mat001 left | 20:46 |
| → mat001 joined | 20:49 |
| ← Dirak left | 20:51 |
| ← Sasazuka left | 20:51 |
| → Dirak joined | 20:56 |
| → martylake joined | 20:56 |
| ← netj left | 20:56 |
| ← mat001 left | 20:57 |
| → netj joined | 20:57 |
| → mat001 joined | 20:58 |
| ← mat001 left | 20:58 |
| ← mort left | 20:59 |
| → mat001 joined | 20:59 |
| ← martylake_ left | 20:59 |
| ← budonyc left | 20:59 |
| ← finn0 left | 21:00 |
| ← mat001 left | 21:01 |
| → mat001 joined | 21:02 |
| ← martylake left | 21:04 |
| → nerosnm joined | 21:07 |
| ← Inline left | 21:09 |
| ← nerosnm left | 21:12 |
| → fphilipe joined | 21:12 |
| ← salad left | 21:14 |
| → paws_ joined | 21:14 |
| → nerosnm joined | 21:19 |
| ← wagle left | 21:23 |
| ← queip left | 21:24 |
| → wagle joined | 21:24 |
| ← Jackneill left | 21:24 |
| ← TomyLobo left | 21:26 |
| ← yo-wan left | 21:27 |
| → beastDiv_ joined | 21:28 |
| → queip joined | 21:29 |
| ← xcm left | 21:31 |
| → xcm joined | 21:31 |
| ← AbleBacon left | 21:31 |
| ← relipse left | 21:33 |
| ← rsrx left | 21:33 |
| → relipse joined | 21:34 |
| ← Phylock left | 21:38 |
|
elichai2
| Hi, how do I apply a commit on a subtree? | 21:38 |
|
| I want to apply this commit: https://github.com/sipa/bitcoin/commit/3fe71bbd95f68ac03de9757397706570d3ee6a6b but it applies in on `/` instead of on `/src/secp256k1` | 21:39 |
|
| (either with cherry-pick or rebasing) | 21:39 |
| ← valuemachine left | 21:43 |
| ← xcm left | 21:43 |
| → valuemachine joined | 21:43 |
| → xcm joined | 21:43 |
| → afowler joined | 21:45 |
| ← fphilipe left | 21:46 |
| → fphilipe joined | 21:47 |
| ← afowler left | 21:51 |
| → jstein_ joined | 21:56 |
| jstein_ → jstein | 21:56 |
| ← fphilipe left | 21:57 |
| ← mohsen_1 left | 21:58 |
| → seds joined | 21:58 |
| ← relipse left | 21:59 |
| ← fission6 left | 22:00 |
| → theoceaniscool joined | 22:00 |
|
deltab
| elichai2: I don't know, but maybe by editing the patch | 22:02 |
| ← dartmouthed left | 22:03 |
| ← Es0teric left | 22:08 |
| ← Shentino left | 22:09 |
| → mat001_ joined | 22:14 |
| ← seds left | 22:16 |
| ← mat001 left | 22:17 |
| → seds joined | 22:18 |
| ← dege left | 22:18 |
| ← seds left | 22:18 |
| ← nerosnm left | 22:20 |
| ← bluesmonk left | 22:21 |
| → jubal joined | 22:29 |
| → fphilipe joined | 22:30 |
| ← jstein left | 22:31 |
| ← theoceaniscool left | 22:35 |
| ← tango_ left | 22:35 |
| → oatmealraisin joined | 22:35 |
| ← Lucas_Gray left | 22:37 |
| → ghoti joined | 22:37 |
| ← lacrymology left | 22:37 |
| ← kjartan left | 22:37 |
| → Lucas_Gray joined | 22:37 |
| → lacrymology joined | 22:38 |
| → kjartan joined | 22:38 |
| ← hussam left | 22:39 |
| → Shentino joined | 22:44 |
| → SwiftMatt joined | 22:45 |
| ← tufteddeer left | 22:45 |
| → tufteddeer joined | 22:46 |
| ← tang^ left | 22:48 |
| → jubal_ joined | 22:49 |
| def_jam → eblip | 22:49 |
| ← tufteddeer left | 22:51 |
| ← jubal left | 22:51 |
| → tango_ joined | 22:52 |
| → jubal joined | 22:55 |
| → mat001 joined | 22:56 |
| ← Shentino left | 22:57 |
| ← mat001_ left | 22:57 |
| ← jubal_ left | 22:58 |
| → Shentino joined | 22:58 |
| → cd joined | 22:58 |
| → mat001_ joined | 22:58 |
| ← mat001_ left | 22:59 |
| → mat001_ joined | 22:59 |
| → yyy joined | 22:59 |
| → RoriconKnight joined | 22:59 |
| ← mat001 left | 23:00 |
| → tufteddeer joined | 23:02 |
| ← Shentino left | 23:02 |
| ← leeN left | 23:03 |
|
causaui1
| in gitignore "**/thing" is the same as just "thing" right? also "thing/*" == "thing/**" or no? I'm trying to figure out what use "**" has except sandwiched somewhere inside a path | 23:03 |
| ← fphilipe left | 23:04 |
| → ferdroid_ joined | 23:05 |
| → eigenvalue joined | 23:05 |
| ← SkarmoutsosV left | 23:06 |
| ← Ferdroid left | 23:07 |
| ferdroid_ → Ferdroid | 23:07 |
| ← Ferdroid left | 23:11 |
| ← m0viefreak left | 23:13 |
|
deltab
| causaui1: note that "It is not possible to re-include a file if a parent directory of that file is excluded.", so I guess you might exclude with foo/** so that you can include foo/bar | 23:15 |
| ← karoshii left | 23:15 |
| ← canton7 left | 23:15 |
| ← demize left | 23:15 |
| → karoshii joined | 23:15 |
| → demize joined | 23:15 |
| → seds joined | 23:16 |
|
deltab
| and as I understand it thing/* will match thing/foo but not thing/foo/bar | 23:17 |
| → nic-hartley joined | 23:17 |
| ← thiago left | 23:18 |
| → canton7 joined | 23:19 |
|
causaui1
| hm I'm testing this, I made `foo/bar/baz` and it's ignored by `foo/` and `foo/*` and `foo/**` all the same | 23:19 |
| ← seds left | 23:19 |
|
causaui1
| okay prepending "**bar/" ignores both "bar/" and "foo/bar/" etc | 23:22 |
| → elsheepo joined | 23:23 |
| → AugustusCaesar24 joined | 23:24 |
|
causaui1
| er, I feel dumb | 23:26 |
| ← mowcat left | 23:27 |
| ← misuto left | 23:28 |
| ← elsheepo left | 23:30 |
| → misuto joined | 23:32 |
| ← perrier-jouet left | 23:32 |
| → orbyt_ joined | 23:32 |
| ← queip left | 23:33 |
| ← acercle left | 23:33 |
| ← n3wborn left | 23:33 |
| ← kjartan left | 23:34 |
| → kjartan joined | 23:35 |
| → oatmealr1 joined | 23:37 |
| ← oatmealraisin left | 23:37 |
| → oatmealraisin joined | 23:37 |
| → queip joined | 23:40 |
| ← magic_ninja_work left | 23:41 |
| ← CyberX left | 23:42 |
| ← oatmealr1 left | 23:42 |
| ← nic-hartley left | 23:45 |
| → subopt joined | 23:45 |
| ← oatmealraisin left | 23:48 |
| ← mat001_ left | 23:53 |
| ← SwiftMatt left | 23:53 |