| 2024-01-26 |
| ← tirnanog left | 00:03 |
| ← miigotu left | 00:04 |
| → miigotu joined | 00:04 |
| → tirnanog joined | 00:04 |
| ← Nixkernal left | 00:07 |
| ← sa0 left | 00:10 |
| → sa0 joined | 00:10 |
|
jb1277976
| I don't think i saw this on the book but when i do a get fetch and everything is just waiting for me to merge it. what can i do with the stuff thats waiting? do i have to merge will it go away ? | 00:10 |
| ← SleePy left | 00:15 |
| → SleePy joined | 00:15 |
| ← SleePy left | 00:15 |
|
rewt
| git fetch just gets any commits/branches from the remote that you don't already have... what you do with it is up to you | 00:15 |
|
weaksauc_
| it just exists in the repository | 00:16 |
| ← sa0 left | 00:16 |
|
weaksauc_
| it might be helpful to look at git from the ground up | 00:16 |
|
| fetch brings in all blobs(files/commits) that don't exist in your repository | 00:16 |
| → SleePy joined | 00:17 |
|
weaksauc_
| and also branches (literally just a file with a hash in it put into a special directory) | 00:18 |
| ← miigotu left | 00:20 |
| → miigotu joined | 00:20 |
| → raffaele joined | 00:23 |
| ← raffaele__ left | 00:25 |
| → stuv joined | 00:30 |
|
b0nn
| Isn't this the argument for "topic branches" so that changes to the main branch don't affect work in motion, until you rebase the topic branch to catch up with the tip of the main | 00:37 |
| ← PantelicGR left | 00:47 |
| ← innegatives_ left | 00:47 |
| → sa0 joined | 00:49 |
| → nivag joined | 00:49 |
| → Guest64 joined | 00:50 |
| ← gast0n left | 01:07 |
| ← ferdna left | 01:08 |
| ← rustyshackleford left | 01:08 |
| ← fflam left | 01:10 |
| → fflam joined | 01:12 |
| ← ossifrage left | 01:13 |
|
jb1277976
| I got to look closer at this tip stuff. i did a rebase. then pushed and it got an error about the tip. | 01:18 |
| → zloi_user joined | 01:22 |
| ← navi left | 01:22 |
| ← sa0 left | 01:25 |
| ← nivag left | 01:29 |
| ← tirnanog left | 01:32 |
| ← Lord_of_Life left | 01:34 |
| → Lord_of_Life joined | 01:34 |
| → sa0 joined | 01:38 |
| ← yuljk left | 01:38 |
| ← sa0 left | 01:43 |
| → yuljk joined | 01:54 |
| ← nyah left | 01:56 |
| ← xx left | 01:56 |
| → sa0 joined | 01:56 |
| ← aristaware443 left | 02:00 |
| ← Gary_Sinise left | 02:00 |
| → aristaware4439 joined | 02:01 |
| ← gchound left | 02:02 |
| ← hbautista_ left | 02:02 |
| → epony joined | 02:03 |
| → Gary_Sinise joined | 02:03 |
| → hbautista_ joined | 02:03 |
| ← Gary_Sinise left | 02:03 |
| ← nulixes left | 02:04 |
| → gast0n joined | 02:09 |
| ← miigotu left | 02:09 |
| → miigotu joined | 02:10 |
| → TonyStone joined | 02:11 |
| ← gast0n left | 02:16 |
| ← Ragnor left | 02:18 |
| → Ragnor joined | 02:20 |
| → gast0n joined | 02:20 |
| ← kurahaupo left | 02:20 |
| → Gary_Sinise joined | 02:21 |
| → kurahaupo joined | 02:24 |
| ← fflam left | 02:24 |
| → fflam joined | 02:27 |
| ← denysonique left | 02:27 |
| ← sa0 left | 02:29 |
| → denysonique joined | 02:30 |
| ← zloi_user left | 02:30 |
| → Pikk3wyn joined | 02:33 |
| ← stutz left | 02:33 |
| → nivag_2c joined | 02:36 |
| → stutz joined | 02:38 |
| ← stutz left | 02:38 |
| → stutz joined | 02:38 |
| ← xandris left | 02:39 |
| ← mobivme left | 02:43 |
| → sa0 joined | 02:43 |
| → mobivme joined | 02:46 |
|
jb1277976
| is there a reason why on my local repo i can do a rebase do some stuff then when im done wantt to push it to my remote repo but something about the tip not matching then i have to pull then push ? | 02:50 |
| ← fflam left | 02:53 |
| → gsi_ joined | 02:54 |
| → fflam joined | 02:55 |
| ← Betal left | 02:56 |
| ← gsi left | 02:58 |
|
b0nn
| when you rebase you change history, when you try to push to a remote repo that repos version of history is different to yours | 03:00 |
|
| So, you have a choice, get that repos version of history (pull) or push your version (with a force) | 03:01 |
| ← stuv left | 03:03 |
| ← skapata left | 03:06 |
| ← mobivme left | 03:08 |
| → Jck_true5 joined | 03:13 |
| ← Jck_true left | 03:13 |
| Jck_true5 → Jck_true | 03:13 |
| ← rigid left | 03:14 |
| ← sa0 left | 03:17 |
| → skapata joined | 03:19 |
| ← Guest64 left | 03:20 |
|
jb1277976
| wow that is dangerous espeically if your in a group or organization | 03:23 |
|
b0nn
| it depends on the nature of the rebase - most groups will prevent you from rebasing main itself, but allow you to rebase your branch, and to rebase your branches position in main | 03:24 |
|
jb1277976
| aw | 03:25 |
| → sa0 joined | 03:30 |
| ← gast0n left | 03:33 |
| ← sa0 left | 03:35 |
| ← nivag_2c left | 03:36 |
| → cappy joined | 03:40 |
| → nivag_2c joined | 03:42 |
| → sa0 joined | 03:49 |
| ← kurahaupo left | 03:52 |
| → Vonter joined | 03:55 |
| ← cpackham left | 03:57 |
| → igemnace joined | 04:11 |
| ← very_sneaky_ left | 04:15 |
| ← igemnace left | 04:18 |
| → very_sneaky joined | 04:20 |
| ← sa0 left | 04:22 |
| ← akibageek left | 04:22 |
| ← nivag_2c left | 04:25 |
| → rustyshackleford joined | 04:27 |
| ← Pikk3wyn left | 04:30 |
| → Pikk3wyn joined | 04:30 |
| → bket_ joined | 04:36 |
| → sa0 joined | 04:37 |
| ← bket left | 04:38 |
| → nivag_2c joined | 04:38 |
| ← bindu left | 04:41 |
| → EvgenyK joined | 04:41 |
| ← sa0 left | 04:42 |
| ← cappy left | 04:45 |
| → bindu joined | 04:46 |
| ← EvgenyK left | 04:47 |
| → mexen joined | 04:49 |
| ← cdown left | 04:53 |
| → sa0 joined | 04:55 |
| ← miigotu left | 04:59 |
| → EvgenyK joined | 05:00 |
| ← epony left | 05:01 |
| → epony joined | 05:02 |
| ← EvgenyK left | 05:05 |
| → EvgenyK joined | 05:17 |
| → miigotu joined | 05:18 |
| ← EvgenyK left | 05:22 |
| ← nivag_2c left | 05:26 |
| → dustisim joined | 05:27 |
| → EvgenyK joined | 05:28 |
| ← sa0 left | 05:28 |
| → akibageek joined | 05:30 |
| → YuGiOhJCJ joined | 05:31 |
| → xandris joined | 05:32 |
| ← EvgenyK left | 05:33 |
| ← koo5 left | 05:37 |
| → AAIM01 joined | 05:38 |
| ← dustisim left | 05:40 |
| → sa0 joined | 05:42 |
| ← thiago left | 05:44 |
| → EvgenyK joined | 05:44 |
| ← omero_o1 left | 05:47 |
| ← sa0 left | 05:48 |
| → omero joined | 05:49 |
| → Ox7C5_ joined | 05:51 |
| ← EvgenyK left | 05:52 |
| ← hbautista_ left | 05:54 |
| → sa0 joined | 06:01 |
| → ssserpent joined | 06:09 |
| ← astlep5504018 left | 06:11 |
| → astlep5504018 joined | 06:13 |
| → Rashad joined | 06:13 |
| ← skapata left | 06:13 |
| ← akibageek left | 06:14 |
| → akibageek joined | 06:14 |
| ← akibageek left | 06:26 |
| → xx joined | 06:26 |
| ← FinnElija left | 06:32 |
| ← reset left | 06:33 |
| → FinnElija joined | 06:33 |
| ← sa0 left | 06:34 |
| → TomyWork joined | 06:35 |
| → rosco joined | 06:39 |
| → sa0 joined | 06:49 |
| ← sa0 left | 06:53 |
| ← gnoo left | 06:54 |
| → gnoo joined | 06:55 |
| ← larryv left | 06:56 |
| → sa0 joined | 07:02 |
| → zloi_user joined | 07:07 |
| ← sa0 left | 07:07 |
| → PlasmaHH joined | 07:15 |
| → rigid joined | 07:18 |
| → sreve joined | 07:18 |
| → sa0 joined | 07:21 |
| → igemnace joined | 07:23 |
| ← Vonter left | 07:24 |
| → ipynb joined | 07:24 |
| → Vonter joined | 07:30 |
| ← jb1277976 left | 07:30 |
| → john_johnk joined | 07:34 |
| ← john_johnk left | 07:43 |
| ← zloi_user left | 07:43 |
| → zloi_user joined | 07:44 |
| ← Gary_Sinise left | 07:47 |
| → RiFo joined | 07:52 |
| ← FH_thecat left | 07:52 |
| ← sa0 left | 07:53 |
| → rfuentess joined | 08:00 |
| → coot joined | 08:02 |
| → iomari891 joined | 08:03 |
| → sa0 joined | 08:03 |
| ← chexum left | 08:06 |
| → chexum joined | 08:07 |
| ← osc4rpt left | 08:08 |
| ← sa0 left | 08:08 |
| → EvgenyK joined | 08:08 |
| ← jas-maelstrom left | 08:11 |
| ← gryffus left | 08:12 |
| → rainystorm joined | 08:12 |
| → danse-nr3 joined | 08:14 |
| ← theobjectivedad left | 08:17 |
| ← Furai left | 08:18 |
| → theobjectivedad joined | 08:19 |
| → theoceaniscool joined | 08:23 |
| → sa0 joined | 08:23 |
| ← bkircher left | 08:25 |
| → Furai joined | 08:26 |
| ← sa0 left | 08:28 |
| → zloi_user_ joined | 08:29 |
| ← zloi_user left | 08:33 |
| → bkircher joined | 08:39 |
| ← EvgenyK left | 08:41 |
| → akibageek joined | 08:42 |
| → sa0 joined | 08:42 |
| → nulixes joined | 08:43 |
| ← sreve left | 08:46 |
|
j416
| there's no need to use force push unless you actually want to destroy history on the remote | 08:49 |
| ← rfuentess left | 08:50 |
| → rfuentess joined | 08:51 |
|
bookworm
| your replacement for a rebased feature branch being what then? | 08:52 |
|
| branch_v2beta4 ? | 08:52 |
|
| just add more branches and push em all up /s ? | 08:52 |
|
osse
| I think that's a case where you actually want to destroy history on the remote | 08:54 |
|
| but "destroy history"... it's more like "rewrite a tiny bit of the history" | 08:55 |
| ← FinnElija left | 08:55 |
| ← rainystorm left | 08:55 |
| → FinnElija joined | 08:56 |
| → EvgenyK joined | 08:58 |
| ← ipynb left | 09:00 |
|
b0nn
| osse: it depends on how much of the branch is affected by the rebase, so can be anything from the whole lot to nothing | 09:01 |
| robo- → roboirc | 09:01 |
|
PlasmaHH
| its also a matter of project culture | 09:02 |
| ← FinnElija left | 09:04 |
| → FinnElija joined | 09:04 |
| ← danse-nr3 left | 09:08 |
| → danse-nr3 joined | 09:08 |
| → EvgenyK_ joined | 09:09 |
|
osse
| b0nn: I was thinking of the rebase feature branch case that bookworm brought up | 09:09 |
|
bookworm
| well, that was the topic right? I didn't bring it up as such | 09:10 |
|
osse
| (yes, technically you can start a feature branch from the root commit ... :P) | 09:10 |
| ← EvgenyK left | 09:11 |
|
osse
| I was just trying to say that the rebase feature branch scenario is a case where there is a need to use force push | 09:11 |
|
| so I don't think j416 needs to come up with an alternative strategy | 09:12 |
| → jas-maelstrom joined | 09:12 |
|
b0nn
| hmm, that's more "once the branch is complete" | 09:12 |
| → FH_thecat joined | 09:13 |
|
b0nn
| I mean, if it's been pushed and changed, then you're going to have to force push | 09:13 |
| ← sa0 left | 09:14 |
|
b0nn
| So it depends on the context :) | 09:15 |
| → benni joined | 09:17 |
| → zerox2a joined | 09:19 |
|
zerox2a
| can I resolve merge conflicts with several commits? | 09:20 |
|
bookworm
| I don't think so? | 09:20 |
| ← liana left | 09:20 |
|
bookworm
| the merge is a single commit after all, why do you want to introduce more than one commit? | 09:21 |
| ← chexum left | 09:21 |
| → chexum joined | 09:21 |
|
zerox2a
| the conflicts concern many different things so I thought it might be better to have different commits to better understand how I foxed the merge conflicts. but maybe I am over complicating things. | 09:22 |
|
b0nn
| you can take the merge commit and change it into several commits | 09:23 |
| → schne1der joined | 09:24 |
|
b0nn
| As far as I know it would be a retroactive change, the merge commit would take place, then you'd unset it and break it up | 09:24 |
|
bookworm
| that will overwrite the merge commit no? | 09:24 |
|
| meaning you loose the tracking? | 09:24 |
|
b0nn
| restrospective* | 09:24 |
| → Jaxef joined | 09:24 |
| → raffaele__ joined | 09:24 |
|
osse
| I think then you're better off creating regular commits in each branch where you make changes needed to reduce conflicts, and write a commit message explaining that | 09:25 |
|
PlasmaHH
| hm, seems like sourcetree doesn't support commit templates... * sigh * | 09:25 |
| → liana joined | 09:25 |
|
zerox2a
| I will make one merge commit to be on the safe side... thanks for your feedback! | 09:26 |
|
bookworm
| while we are there, what's your opinion on back merges? Aka merge master into feature? | 09:26 |
|
PlasmaHH
| bookworm: here it is a necessary step to get anything done and put the burden of merge conflicts mostly onto the feature branch | 09:26 |
|
bookworm
| I find criss cross merges annoying, personally and prefer rebase | 09:27 |
|
| why would it be necessary, the merge flow should be one way, not two | 09:27 |
| ← raffaele left | 09:27 |
| → sa0 joined | 09:27 |
|
PlasmaHH
| bookworm: because here the golden rule of rebasing is to only do it if nobody else has touched the branch, and like half of the branches are shared between multiple developers | 09:28 |
|
| so that leaves merge into the feature branch as the only way to get up to date with any other mainline branch | 09:28 |
|
osse
| I don't mind merging master into feature if it's a long running branch except for one thing, and I really hate that: When the last thing in the feature branch is a merge from master and then the feature branch is merged into master as a fast forward | 09:28 |
|
| Then the graph looks weird | 09:29 |
|
selckin
| it has to be long living and worked on by multiple people | 09:29 |
|
bookworm
| and first does the "wrong" thing yeah | 09:29 |
|
| first parent* | 09:29 |
|
PlasmaHH
| osse: I rarely enough look at the graph to find everything weird there ;) | 09:29 |
|
bookworm
| it's my default view when I look at commits.... | 09:30 |
| → gandhibobandhi joined | 09:30 |
|
PlasmaHH
| when I am intrested in commits, its usually just one branch and I go through them only | 09:30 |
| ← sa0 left | 09:33 |
| ← chexum left | 09:34 |
| → chexum joined | 09:34 |
| ← reprazent left | 09:36 |
| → reprazent joined | 09:37 |
|
PlasmaHH
| seems like only the mac version of sourcetree supports commit templates, why would one even do that... | 09:44 |
| ← danse-nr3 left | 09:45 |
| → sa0 joined | 09:46 |
| → sreve joined | 09:49 |
| → gryffus joined | 09:51 |
| → danse-nr3 joined | 09:54 |
| → weaksauce joined | 09:54 |
|
osse
| Atlassian don't like people | 09:56 |
| → bin101_ joined | 09:57 |
| ← bin101 left | 09:57 |
| ← weaksauc_ left | 09:57 |
| → ham2 joined | 09:58 |
| ← hamster left | 10:00 |
| → bin101 joined | 10:08 |
| ← bin101_ left | 10:09 |
| ← Rashad left | 10:11 |
| ← sa0 left | 10:11 |
| → sa0 joined | 10:12 |
|
PlasmaHH
| well, who does... | 10:15 |
|
bookworm
| it's mutual :P | 10:21 |
| → teut joined | 10:22 |
| → szkl joined | 10:22 |
| → JanC_ joined | 10:23 |
| JanC → Guest2655 | 10:23 |
| ← Guest2655 left | 10:23 |
| JanC_ → JanC | 10:23 |
| → nyah joined | 10:24 |
| → Rashad joined | 10:26 |
| → Nixkernal joined | 10:27 |
| → ggGuest2 joined | 10:28 |
| ← ggGuest left | 10:29 |
| ← Rashad left | 10:34 |
|
osse
| PlasmaHH: but commit templates are a git thing. Does Sourcetree override it somehow? | 10:34 |
|
PlasmaHH
| osse: well, the gui tools seem to work a bit different and use -m because they have like a dialogue where you enter the stuff and then hit commit... its usually not hitting commit, then a dialogue pops up to enter/edit the message | 10:35 |
| → rahl joined | 10:36 |
|
PlasmaHH
| not sure how it works on the mac version of sourcetree which seems to support that for a long time now... though maybe its their own templates, not the git ones | 10:38 |
|
| on the command line I have pre and post commit message stuff, would have been nice if that worked there too ^^ | 10:38 |
| → rainystorm joined | 10:52 |
|
osse
| I wanted to test it myself since I have Sourcetree installed. But it doesn't start... | 11:03 |
|
PlasmaHH
| thats a nice start ;) | 11:03 |
|
osse
| Now I don't have Sourcetree installed. | 11:05 |
|
| At least the uninstaller worked | 11:05 |
| → Guest64 joined | 11:05 |
|
PlasmaHH
| maybe you need to reinstall for every usage... | 11:09 |
|
jast
| yeah, embrace the shittiness :) | 11:11 |
|
| I love it when software just randomly doesn't launch and ideally doesn't even display any message that would let you know what's going on | 11:12 |
|
PlasmaHH
| thats the windows motto... make clear there is an error, but be not at all helpful whatesoever in what the error means or was caused by | 11:18 |
| → lucasta_ joined | 11:19 |
| ← lucasta_ left | 11:19 |
|
jast
| Error opening file: Success | 11:19 |
| → osc4rpt joined | 11:26 |
| ← dsimic left | 11:29 |
| → bambanxx joined | 11:30 |
| → dsimic joined | 11:30 |
| → Non-ICE joined | 11:31 |
| → Guest44 joined | 11:32 |
| ← Guest44 left | 11:33 |
| ← Nixkernal left | 11:33 |
| → wavesong joined | 11:34 |
| → bloody_ joined | 11:35 |
| ← bloody left | 11:37 |
| ← bin101 left | 11:38 |
| → reset joined | 11:40 |
|
PlasmaHH
| hm, whats the proper treatment of people that want pre commit hooks to change the code... tar and feather? | 11:42 |
|
jast
| tar and gzip | 11:50 |
| ← weko left | 11:50 |
| → weko joined | 11:52 |
| ← zerox2a left | 11:55 |
| → bin101 joined | 12:01 |
| ← akibageek left | 12:04 |
| ← teut left | 12:09 |
| ← Ox7C5_ left | 12:11 |
| ← ju left | 12:12 |
| → ju joined | 12:12 |
| → nivag_2c joined | 12:13 |
| ← danse-nr3 left | 12:16 |
| ← benni left | 12:17 |
| → Rashad joined | 12:17 |
| ← miigotu left | 12:17 |
| → miigotu joined | 12:18 |
| → navi joined | 12:28 |
| ← Guest64 left | 12:29 |
| ← bambanxx left | 12:31 |
| ← donofrio left | 12:33 |
| → Ox7C5_ joined | 12:45 |
| → a51 joined | 12:45 |
| → danse-nr3 joined | 12:46 |
| → tirnanog joined | 12:49 |
| ← nulixes left | 12:52 |
| ← xcpep left | 12:55 |
| → xcpep joined | 12:55 |
| ← nivag_2c left | 12:56 |
| → bindu_ joined | 13:00 |
| ← xcpep left | 13:01 |
| → xcpep joined | 13:01 |
|
j416
| to clarify what I said re: force push above, what I wanted to try to convey is that one should not assume force push to be the solution to any "your branches have divered" issue. Of course force push has its place, but use it when you _know_ it's correct. | 13:01 |
| ← bindu left | 13:03 |
|
j416
| mainly as a reaction to the comment right before it, which I thought may be easily misinterpreted to mean that force push is the only solution | 13:03 |
|
PlasmaHH
| j416: the main problem is that 98% of the people who say they know don't ;) | 13:04 |
| → duxsco joined | 13:04 |
|
j416
| PlasmaHH: you don't know that | 13:05 |
| ← xcpep left | 13:05 |
| → xcpep joined | 13:06 |
| → nivag joined | 13:08 |
| → bambanxx joined | 13:09 |
| → humanface joined | 13:10 |
|
j416
| 98% sure. | 13:11 |
| ← duxsco left | 13:13 |
| ← nivag left | 13:13 |
|
PlasmaHH
| they say 87% of statistics on the internet are made up on the spot | 13:15 |
| ← bindu_ left | 13:17 |
| → flower_ joined | 13:21 |
| → gast0n joined | 13:24 |
| → masber joined | 13:25 |
| → nivag joined | 13:27 |
| ← a51 left | 13:27 |
| ← szkl left | 13:28 |
| → ferdna joined | 13:31 |
| ← Celelibi left | 13:32 |
|
flower_
| I want to revert back to a previous state/ commit, but want to keep all my commits. I want to jump to a other state at any time. What is the best way to do this? Reset does rm commits, checkout commit switches branches... Hm | 13:33 |
|
selckin
| just to look around, or to keep that state | 13:34 |
|
flower_
| or should I use tags for this? | 13:34 |
|
selckin
| not clear why/what you want to do exactly | 13:35 |
| → Celelibi joined | 13:39 |
|
osse
| flower_: do you mean you want to browse around some old code? Or do you mean you want make it so that the current state becomes equal to an old one? | 13:40 |
| → donofrio joined | 13:43 |
|
flower_
| I think I want to go to a state and commit that change to the current branch. | 13:43 |
|
selckin
| git checkout commit -- . | 13:44 |
|
flower_
| that gives me a detached HEAD right? | 13:44 |
|
selckin
| no, updates workdir to state of that commit | 13:45 |
|
flower_
| ah | 13:45 |
| → lucasta joined | 13:46 |
|
osse
| Note that it won't remove any newly added files. | 13:46 |
|
flower_
| hm | 13:47 |
|
j416
| use --no-overlay | 13:48 |
| → bindu joined | 13:48 |
| ← haritz left | 13:48 |
| → haritz joined | 13:48 |
|
selckin
| oh nice didn't know that existed | 13:49 |
| ← haritz left | 13:49 |
| → haritz joined | 13:49 |
|
j416
| git-read-tree is another option | 13:50 |
| ← bambanxx left | 13:50 |
|
osse
| j416: TIL overlay | 13:51 |
|
| does read-tree also remove by default? | 13:51 |
|
j416
| read-tree updates the index to match a different tree | 13:51 |
|
osse
| ah' | 13:52 |
|
j416
| it does some more thing as well with extra flags but I haven't looked into that | 13:52 |
|
| the way I (very rarely) use it is something like, git read-tree <oldcommit> && git commit -m 'Restore state from <commit>' | 13:54 |
|
flower_
| git checkout --no-overlay commit -- . | 13:56 |
|
| seems to do what I want | 13:57 |
|
j416
| flower_: that'd work. | 13:57 |
|
flower_
| cool, now let me read about read-tree | 13:57 |
|
j416
| flower_: just make sure you're in the repo root when running checkout, otherwise you might miss files. | 13:58 |
| → alexherbo2 joined | 13:58 |
|
osse
| The disappointed face got your back | 13:58 |
| → raffaele joined | 13:58 |
|
osse
| git checkout --no-overlay commit -- :/ | 13:58 |
|
j416
| flower_: an easy way to verify is of course to diff your new state against the commit you are attempting to restore to. | 13:58 |
|
| osse: haha | 13:58 |
|
| til :/ | 13:59 |
|
flower_
| j416: repo root, you mean not in detached state? | 13:59 |
|
j416
| flower_: no, I mean that your pwd should be the root of your repo if you use "." (current dir) | 14:00 |
|
flower_
| I see | 14:00 |
|
j416
| cwd, is it | 14:00 |
|
| what's p | 14:00 |
|
osse
| cd() { if [[ $1 = :/* ]]; then builtin cd "$(git rev-parse --show-toplevel)${1#:}"; else builtin cd "$@"; fi; } # You're welcome | 14:00 |
|
j416
| I thought disappointed face only referred to the index or a commit, didn't know it could refer to the work treee | 14:01 |
|
| treeee | 14:01 |
|
flower_
| what is builtin? | 14:01 |
| ← raffaele__ left | 14:02 |
|
j416
| til builtin | 14:02 |
| ← nivag left | 14:02 |
|
j416
| flower_: I assume it's a shell cmd to avoid any aliasing | 14:02 |
|
osse
| correct | 14:02 |
|
flower_
| ok | 14:02 |
|
j416
| (or functions, in this case) | 14:03 |
|
osse
| if you override a builtin with a function or alias tou can use the "builtin" builtin to invoke the actual builtin | 14:03 |
|
| Buffalo buffalo buffalo buffalo | 14:03 |
|
j416
| alias builtin=cd | 14:04 |
|
osse
| there's also "command" for external commands | 14:04 |
|
j416
| help | 14:04 |
|
osse
| function ls() { command ls; } | 14:04 |
|
j416
| in case you didn't know, you can also prefix with backslash | 14:04 |
|
osse
| that works for aliases, not functions | 14:05 |
|
j416
| oh. | 14:05 |
|
osse
| also zsh (and bash I believe) lets you define functions that run when something is pasted in | 14:07 |
|
| so I have one that strips a/ and b/ from paths, and resolves from the root | 14:07 |
|
| it can haz useful ness | 14:07 |
|
j416
| wow, didn't know that | 14:08 |
|
| sounds a bit scary | 14:08 |
|
| what do you use that for? is it for diffing? | 14:08 |
|
osse
| typically opening a file or cd'ing to a path which I can just copy paste from e.g. git log -p output | 14:09 |
| ← mitrokov left | 14:10 |
|
osse
| the usefulnicity is that I can double click on the path, which typically selects the whole thing with a/ and b/ included, instead of fiddling around to get it exactly right, | 14:11 |
|
| Cool kids probably use some sort of fuzzy finder integration or whatever to do the same thing just as quickly. But alas I am a bit constrained (grr windoze) | 14:13 |
|
| "the same thing" = opening a file or cding to a path the can see in front of them | 14:13 |
| → nivag joined | 14:16 |
| ← xx left | 14:16 |
| ← igemnace left | 14:18 |
| → xx joined | 14:18 |
| ← iomari891 left | 14:18 |
| ← CovertDuck left | 14:18 |
| ← masber left | 14:19 |
| → CovertDuck joined | 14:19 |
|
osse
| It's really dead simple: https://raw.githubusercontent.com/Osse/dotfiles/master/.zfunctions/makegitrelative and zstyle ':bracketed-paste-magic' paste-finish makegitrelative That's it | 14:21 |
| ← CovertDuck left | 14:22 |
| → skapata joined | 14:22 |
| → cdown joined | 14:23 |
| → CovertDuck joined | 14:24 |
| ← Ox7C5_ left | 14:24 |
| ← EvgenyK_ left | 14:24 |
| → cdown_ joined | 14:30 |
|
j416
| zsh magic | 14:30 |
|
| interesting. I guess I haven't really had this use-case. | 14:31 |
|
| how do you go from the diff output to the editor? | 14:31 |
|
osse
| Maybe you misunderstood me | 14:32 |
|
| I copy the thing, then I type cd or vim or whatever then paste | 14:33 |
| ← Rashad left | 14:33 |
| ← cdown left | 14:33 |
|
osse
| or less or cat or | 14:33 |
| cdown_ → cdown | 14:33 |
|
j416
| ah | 14:33 |
|
osse
| I don't use it to go to a file in an open editor/IDE | 14:33 |
|
j416
| I never made use of the fact that I can double-click to select like that; neat | 14:34 |
|
| like, I knew I could, but I just never made use of it | 14:34 |
| → igemnace joined | 14:35 |
|
j416
| osse: there's also the git-jump contrib, in case you don't know about it | 14:35 |
|
osse
| Yes, I've been meaning to use it | 14:35 |
|
| I managed to write one or two such things before I learned git-jump exists, heh. | 14:35 |
|
j416
| me too, since 10 months | 14:35 |
|
| >.> | 14:36 |
|
osse
| I have my "git unmerged" that serves me well enough | 14:36 |
|
| (Which I am reading the docs right is the same as git jump merge) | 14:38 |
|
j416
| nice. I don't use that, yet. | 14:44 |
|
| I just tend to look through the status output and then I search for conflict markers | 14:44 |
|
| it actually works quite well | 14:45 |
|
osse
| what do you do once you've found them? | 14:45 |
|
j416
| what do you mean? | 14:45 |
|
| I fix them | 14:45 |
| ← danse-nr3 left | 14:45 |
|
osse
| ah I think we're back to the "exiting editor/IDE" thing. You mean you search for conflict markers in your already open editor? | 14:46 |
|
j416
| like, I'll run 'git status' after a failed merge and that'll show me say 2 files conflicting, I'll open those in vim and /<<<<< to find the conflicting parts, then fix one by one | 14:46 |
|
| osse: yes | 14:46 |
|
osse
| ah | 14:46 |
|
j416
| I usually have the editor open so that's faster anyway | 14:47 |
|
osse
| I got tired of doing that, so I wrote git unmerged :p | 14:47 |
|
j416
| heh | 14:47 |
|
| I don't run into conflicts very often so it's not much of an issue | 14:47 |
| ← Vonter left | 14:47 |
| ← theoceaniscool left | 14:48 |
| ← aminvakil left | 14:49 |
| ← xx left | 14:50 |
| → xx joined | 14:50 |
| → aminvakil joined | 14:51 |
| ← ssserpent left | 14:52 |
| ← YuGiOhJCJ left | 14:53 |
| → Vonter joined | 14:53 |
|
osse
| I run into them all the time. Though usually just with myself since I reorder and fixup commits way to much | 14:53 |
| → ssserpent joined | 14:53 |
|
osse
| They say it's wise to think before you speak. I sometimes commit before I think. | 14:53 |
| → danse-nr3 joined | 14:54 |
| → thiago joined | 14:55 |
| → Rashad joined | 14:56 |
| → john_johnk joined | 15:07 |
| ← ferdna left | 15:08 |
| → joakimk joined | 15:09 |
| → a51 joined | 15:09 |
|
j416
| I guess I just tend to roughly keep track of what might conflict and avoid the situation in the first place :D | 15:13 |
| → szkl joined | 15:14 |
|
j416
| but come to think of it, I actually do run into conflicts more than I realised, but smaller ones from rebase, just never from regular merge | 15:14 |
|
| for the reasons you mention | 15:14 |
| ← alexherbo2 left | 15:15 |
| → jfsimon1981 joined | 15:16 |
| ← sreve left | 15:29 |
| ← PlasmaHH left | 15:31 |
| → nulixes joined | 15:31 |
| → sahil_ joined | 15:32 |
| ← Gooberpatrol66 left | 15:33 |
| → limon joined | 15:38 |
| ← TomyWork left | 15:41 |
| → alexherbo2 joined | 15:41 |
| → PlasmaHH joined | 15:44 |
| ← john_johnk left | 15:51 |
| → akibageek joined | 15:51 |
| ← a51 left | 15:53 |
|
duszek
| how did people collaborate on open-source projects before git? | 15:54 |
|
huf
| using other version control tools | 15:55 |
|
duszek
| huf: i know that people used CVS since 1986 | 15:58 |
|
| but then how would you send an update over a 300 baud modem? | 15:58 |
|
bookworm
| patch bombs via email | 15:58 |
| → a51 joined | 15:58 |
|
huf
| duszek: patiently | 15:59 |
|
| duszek: also, there was RCS before CVS | 15:59 |
|
duszek
| huf: it was a local-only system | 15:59 |
|
huf
| and it's possible to do all this without any tool, and people did that too | 15:59 |
|
selckin
| pretty much how linux kernel collaborate today | 15:59 |
|
duszek
| meaning that it hardly scaled when you had people on another computers contributing | 16:00 |
|
bookworm
| calling the linux kernel "hardly scaled" is a fun one | 16:00 |
|
| it's one of the largest open source projects out there | 16:00 |
| ← gryffus left | 16:01 |
|
duszek
| bookworm: it uses git | 16:01 |
| ← Pikk3wyn left | 16:01 |
|
duszek
| RCS required you to do development on a single computer | 16:02 |
|
| or at least connecting to it every time you wanted to update | 16:02 |
|
huf
| you could always share stuff over floppy | 16:02 |
|
| and people did that too | 16:02 |
|
| they made do. | 16:02 |
|
selckin
| there was only a single computer for the whole school | 16:02 |
| → gryffus joined | 16:03 |
| ← rfuentess left | 16:03 |
|
duszek
| selckin: a PDP-11 with several terminals | 16:03 |
|
| but too often there was just a single one | 16:03 |
|
ikke
| Like mentioned, contributing meant sending patches, you would often not directly interact with the VCS | 16:12 |
| ← mven97 left | 16:12 |
| ← rosco left | 16:13 |
|
huf
| patch(1) didnt appear until 1985 so i dunno what people did before that | 16:14 |
|
| ed maybe? | 16:14 |
| ← Jaxef left | 16:15 |
| ← epony left | 16:18 |
|
kjetilho
| huf: diff has ed output | 16:19 |
| ← jas-maelstrom left | 16:19 |
|
kjetilho
| but it is a pain since it has no context, so it requires applying on an exact copy | 16:19 |
|
huf
| yeah so they used diff and ed after those were available | 16:20 |
|
j416
| duszek: well _nowadays_, but not so much before 2005 did it :D | 16:20 |
|
huf
| and probably did it by hand and mouth in the dark before that :D | 16:20 |
| → epony joined | 16:20 |
| ← sahil_ left | 16:23 |
| → Gooberpatrol66 joined | 16:25 |
| ← axsuul left | 16:29 |
| ← RiFo left | 16:29 |
| → axsuul joined | 16:29 |
| → masber joined | 16:32 |
| ← danse-nr3 left | 16:36 |
| ← liana left | 16:38 |
| ← nivag left | 16:39 |
| ← hvxgr left | 16:43 |
| ← joakimk left | 16:44 |
| ← davidsenk left | 16:45 |
| → bambanxx joined | 16:45 |
| → davidsenk joined | 16:45 |
| ← causasui left | 16:47 |
| ← gandhibobandhi left | 16:48 |
| → causasui joined | 16:51 |
| → hvxgr joined | 16:53 |
| ← humanface left | 16:54 |
| ← Szilva left | 16:56 |
| → Szilva joined | 16:57 |
| → humanface joined | 16:59 |
| ← PlasmaHH left | 17:03 |
| → nivag joined | 17:03 |
| ← alexherbo2 left | 17:06 |
| → alexherbo2 joined | 17:06 |
| ← BigShip left | 17:10 |
| → BigShip joined | 17:10 |
| ← flower_ left | 17:12 |
| → flower_ joined | 17:13 |
| → jmd joined | 17:14 |
| → m257 joined | 17:18 |
| → jas-maelstrom joined | 17:23 |
| ← nivag left | 17:23 |
| → texus joined | 17:24 |
| ← Dragoon left | 17:25 |
| → rosco joined | 17:25 |
| → Gary_Sinise joined | 17:27 |
| ← texus left | 17:28 |
| ← kushal__ left | 17:30 |
| ← rosco left | 17:32 |
| ← mingdao left | 17:39 |
| → mingdao joined | 17:39 |
| ← alexherbo2 left | 17:41 |
| ← ssserpent left | 17:46 |
| ← miigotu left | 17:48 |
| → miigotu joined | 17:48 |
| ← lucasta left | 17:53 |
| ← Rashad left | 17:59 |
| ← bambanxx left | 18:00 |
| → alexherbo2 joined | 18:02 |
| ← m257 left | 18:06 |
| ← davidsenk left | 18:09 |
| → davidsenk joined | 18:15 |
| → PiRATA joined | 18:19 |
| → user03 joined | 18:26 |
| user03 → gchound | 18:27 |
| ← rainystorm left | 18:29 |
| ← weko left | 18:34 |
| ← zer0bitz left | 18:39 |
| → phoenixh joined | 18:41 |
| ← phoenixh left | 18:42 |
| ← Quaack left | 18:43 |
| → weko joined | 18:44 |
| → Quack joined | 18:47 |
| → xmoforf joined | 18:48 |
| → bambanxx joined | 18:48 |
|
xmoforf
| I have a gpg key for signing commits (i think) in .gitignore with [user] signingkey = "key" | 18:48 |
|
| but not sure how to use that to make what is needed for github | 18:48 |
|
BtbN
| In gitignore? | 18:50 |
| ← joako left | 18:50 |
| → zer0bitz joined | 18:51 |
| → RiFo joined | 18:52 |
| ← foul_owl left | 18:53 |
| ← Quack left | 18:55 |
| → Quack joined | 18:55 |
| ← RiFo left | 18:57 |
| ← PiRATA left | 18:59 |
|
j416
| xmoforf: .gitignore is not made to store signing keys; store it elsewhere | 19:01 |
|
| xmoforf: .gitignore is for ignoring files | 19:01 |
| ← zloi_user_ left | 19:05 |
| ← masber left | 19:07 |
| → foul_owl joined | 19:07 |
| → joako joined | 19:07 |
| ← bambanxx left | 19:08 |
| → zloi_user joined | 19:09 |
| → nivag joined | 19:11 |
| → jb1277976 joined | 19:13 |
|
jb1277976
| if i have a file i want to send over to another branch do i submit a pr in github or do i rebase to the other branch or merge ? i think i have to add the file then merge and it should only do that one file right ? | 19:15 |
| ← fossdd left | 19:15 |
| ← Quack left | 19:16 |
| → Guest19 joined | 19:17 |
| ← Guest19 left | 19:19 |
| → Quack joined | 19:20 |
|
jb1277976
| looks complicated https://phoenixnap.com/kb/git-checkout-file-from-another-branch ill just cp the file | 19:21 |
| ← nivag left | 19:22 |
| → nivag_2c joined | 19:24 |
| ← nulixes left | 19:30 |
| → ___nick___ joined | 19:32 |
| ← ___nick___ left | 19:32 |
| → ___nick___ joined | 19:34 |
| ← ___nick___ left | 19:35 |
| ← thorsten` left | 19:36 |
| → anakimluke joined | 19:36 |
| → ___nick___ joined | 19:37 |
| ← flower_ left | 19:38 |
| ← Quack left | 19:38 |
| → flower_ joined | 19:39 |
| → g2anj joined | 19:39 |
| → Quack joined | 19:39 |
| ← nivag_2c left | 19:40 |
| ← humanface left | 19:44 |
| → larryv joined | 19:46 |
| ← Quack left | 19:49 |
| ← alexherbo2 left | 19:51 |
| → alexherbo2 joined | 19:51 |
| ← flower_ left | 19:52 |
| → flower_ joined | 19:52 |
|
BtbN
| Whatever fits your workflow really | 19:53 |
|
| Copying a random file from another branch is not something git can easily do natively if there's unrelated stuff in the same commits | 19:53 |
| → Pikk3wyn joined | 19:56 |
| → Quack joined | 19:58 |
| ← Vonter left | 19:59 |
| → rosco joined | 19:59 |
| → nulixes joined | 20:00 |
| → Vonter joined | 20:01 |
| ← Quack left | 20:04 |
| → thorsten` joined | 20:06 |
| → Quack joined | 20:06 |
| → lucasta joined | 20:08 |
| ← rosco left | 20:09 |
| → bambanxx joined | 20:13 |
| ← zloi_user left | 20:15 |
| ← Quack left | 20:19 |
| ← umbramalison left | 20:25 |
| → umbramalison joined | 20:25 |
| ← umbramalison left | 20:27 |
| → umbramalison joined | 20:27 |
| → Quack joined | 20:28 |
| → wootehfoot joined | 20:32 |
| ← Quack left | 20:40 |
|
kjetilho
| if you want to do it "right" (ie. copy history, too) it is a lot of work with filter-repo | 20:48 |
| → Quack joined | 20:52 |
| ← reset left | 20:52 |
| ← miigotu left | 20:52 |
| → miigotu joined | 20:52 |
| → axisys joined | 21:03 |
| ← ___nick___ left | 21:04 |
| ← Quack left | 21:08 |
| → Quack joined | 21:11 |
| → newpy joined | 21:20 |
|
newpy
| hi, I had a precommit fail, and the offending file is now both A & M in `git status -s` | 21:20 |
|
| what are the proper steps here? just commit --no-verify? | 21:21 |
| → otisolsen70 joined | 21:21 |
| ← Quack left | 21:21 |
|
newpy
| I manually unstaged and re-added, but not sure if that's necessary | 21:23 |
| → Quack joined | 21:25 |
| → PantelicGR joined | 21:27 |
| → kus joined | 21:29 |
| ← Quack left | 21:33 |
| ← JayBeeFOSS left | 21:36 |
| → JayBeeFOSS joined | 21:36 |
| → Quack joined | 21:37 |
|
j416
| newpy: fix the error and try to commit again? | 21:38 |
|
newpy
| j416, it was auto fixed by the precommit hook | 21:39 |
| → ___nick___ joined | 21:39 |
|
j416
| newpy: great, problem solved? | 21:39 |
|
newpy
| sort of, it didn't commit ofc, and the staging area showed all files as A, with the offending file as "AM" (A in green, M in red due to the changes made by the formatter) | 21:41 |
| ← gxt left | 21:41 |
|
j416
| and what's the issue? | 21:41 |
| → gxt joined | 21:41 |
|
newpy
| I just manually restaged the AM file w/ git reset <file> and git add <file>, but wondering if that's more work than needed | 21:41 |
|
| should I have just ran git commit again or? | 21:42 |
|
j416
| yes, just git add <file> would have sufficed | 21:42 |
|
newpy
| ah k | 21:42 |
|
j416
| must be annoying with a pre-commit hook that modifies your files | 21:42 |
|
newpy
| it should have automatically formatted on save, need to look into it | 21:43 |
| ← ghost43 left | 21:45 |
| → ghost43 joined | 21:46 |
| ← wyre left | 21:49 |
| → wyre joined | 21:50 |
| ← miigotu left | 21:51 |
| → miigotu joined | 21:52 |
| ← Quack left | 21:53 |
| ← coot left | 21:54 |
| ← SuperLag left | 21:57 |
| → SuperLag joined | 21:58 |
| → Quack joined | 21:58 |
| ← flower_ left | 21:58 |
| ← sentriz left | 22:00 |
| → sentriz joined | 22:01 |
| → zetef joined | 22:04 |
| ← zetef left | 22:06 |
| → Guest25 joined | 22:08 |
| ← Quack left | 22:09 |
| → Quack joined | 22:11 |
| → Guest40 joined | 22:11 |
|
BtbN
| Is there a way to retroactively do what --filter=blob:none would have done on clone? | 22:13 |
|
| i.e. delete all blobs that aren't currently needed? | 22:13 |
| ← Guest40 left | 22:13 |
|
BtbN
| Background: build system insists on full history for versioning, but full history is several gigabytes which I don't want to cache locally | 22:13 |
|
| And meanwhile they use bitbucket, which doesn't support filtering | 22:14 |
| ← Guest25 left | 22:14 |
| ← igemnace left | 22:15 |
| → fossdd joined | 22:22 |
| ← Quack left | 22:23 |
| → Quack joined | 22:25 |
| ← xandris left | 22:25 |
| → xandris joined | 22:27 |
| ← alexherbo2 left | 22:28 |
| → alexherbo2 joined | 22:29 |
| ← ___nick___ left | 22:29 |
|
Gooberpatrol66
| git commit stops doing anything if i run "git config --global core.hooksPath ~/directory". anyone know what's happening? | 22:29 |
| ← otisolsen70 left | 22:29 |
| → kurahaupo_ joined | 22:30 |
| kurahaupo_ → kurahaupo | 22:30 |
| ← cmc_ left | 22:31 |
| → igemnace joined | 22:33 |
| ← newpy left | 22:34 |
| → cmc_ joined | 22:37 |
| ← duszek left | 22:38 |
| ← Quack left | 22:38 |
| → duszek joined | 22:39 |
|
kurahaupo
| It seems unfortunate that “push --force” is shorter to type than “push --force-with-lease”; is there a way to make “--force-with-lease” the default on a per-branch basis? | 22:39 |
| → newpy joined | 22:41 |
| ← chiselfuse left | 22:42 |
| ← wootehfoot left | 22:42 |
|
kjetilho
| kurahaupo: TIL --force-with-lease, thanks! | 22:42 |
| → chiselfuse joined | 22:42 |
|
Gooberpatrol66
| ok it specifically fails if the dir has a pre-commit hook in it | 22:42 |
|
| it contains nothing but this rg --multiline '<{7} HEAD\p{any}*={7}\p{any}*>{7}' && echo -e 'Error: merge conflicts in working tree\n' && exit 1 | 22:43 |
|
j416
| kurahaupo: you can shorten it to --force-w | 22:44 |
|
Gooberpatrol66
| and a shebang | 22:44 |
|
| i don't see why that would cause a problem | 22:44 |
| → Quack joined | 22:44 |
| → guardianx joined | 22:45 |
| ← bambanxx left | 22:45 |
|
j416
| Gooberpatrol66: what is the exit code of that script? | 22:45 |
|
tirnanog
| Gooberpatrol66: it will never, ever exit 0. use if. | 22:52 |
| ← Quack left | 22:53 |
|
tirnanog
| as an aside, consider printing errors to stderr, rather than stdout. | 22:53 |
|
Gooberpatrol66
| i see, thanks | 22:54 |
| → sreve joined | 22:55 |
| → Quack joined | 22:58 |
| ← sreve left | 23:00 |
| ← gxt left | 23:05 |
| → gxt joined | 23:06 |
| ← schne1der left | 23:11 |
| ← Quack left | 23:17 |
| ← guardianx left | 23:18 |
| → Quack joined | 23:21 |
| ← Quack left | 23:29 |
| ← jab416171 left | 23:31 |
| ← Gary_Sinise left | 23:38 |
| → Quack joined | 23:40 |
| ← PantelicGR left | 23:43 |
| ← anakimluke left | 23:44 |
| ← xx left | 23:50 |
| ← miigotu left | 23:51 |
| → miigotu joined | 23:51 |
| → jab416171 joined | 23:55 |
| ← ghost43 left | 23:56 |
| → ghost43 joined | 23:58 |