| 2022-02-09 |
| → foul_owl joined | 00:01 |
| ← odoood left | 00:03 |
| → Codaraxis__ joined | 00:06 |
| ← jstein left | 00:08 |
| ← Codaraxis_ left | 00:10 |
| → murii joined | 00:19 |
| ← murii left | 00:24 |
| ← pretty_dumm_guy left | 00:26 |
| → crashrep joined | 00:26 |
| → pretty_dumm_guy joined | 00:26 |
| ← vicecea left | 00:34 |
| ← vicfred left | 00:34 |
| → vicecea joined | 00:35 |
| ← tehenderz left | 00:39 |
| → tehenderz joined | 00:40 |
| → kaiseisei joined | 00:45 |
| ← dflick_ left | 00:45 |
| ← kaiseisei left | 00:47 |
| → kaiseisei joined | 00:49 |
| ← kaiseisei left | 00:50 |
| ← Shashin left | 00:52 |
| → murii joined | 00:53 |
| ← murii left | 00:57 |
| ← palasso left | 00:58 |
| → Shashin joined | 01:03 |
| ← Codaraxis__ left | 01:04 |
| ← fikran left | 01:06 |
| → ferdna joined | 01:06 |
| → fikran joined | 01:07 |
| ← Shashin left | 01:13 |
| → rgrinberg joined | 01:14 |
| ← imp left | 01:16 |
| ← mat001 left | 01:18 |
| → antani joined | 01:21 |
| → mat001 joined | 01:24 |
| → murii joined | 01:27 |
| ← rgrinberg left | 01:30 |
| → mra90 joined | 01:31 |
| ← murii left | 01:31 |
| ← x_kuru left | 01:38 |
| ← unluckyshrubbery left | 01:42 |
| → unluckyshrubbery joined | 01:42 |
| → worky joined | 01:43 |
| ← wonty left | 01:45 |
| → Shashin joined | 01:47 |
| ← chenqisu1 left | 01:47 |
| ← duuude left | 01:50 |
| ← antani left | 01:51 |
| → axisys joined | 01:56 |
|
axisys
| how to change the upstream to a different branch? https://dpaste.org/G0dW . I want to change it to origin/mainline-2.0 | 01:58 |
| → murii joined | 02:00 |
| ← ano left | 02:00 |
| ← pretty_dumm_guy left | 02:00 |
| → ano joined | 02:00 |
|
axisys
| this failed | 02:02 |
|
| git push -u origin mainline-2.0 | 02:02 |
|
| error: src refspec mainline-2.0 does not match any | 02:02 |
| ← murii left | 02:04 |
| → hqdruxn08__ joined | 02:05 |
| → duuude joined | 02:06 |
| ← nyah left | 02:09 |
| ← tyson2 left | 02:09 |
| ← hqdruxn08_ left | 02:10 |
| → murii joined | 02:18 |
| → tyson2 joined | 02:21 |
| ← murii left | 02:22 |
| ← sudoforge left | 02:27 |
| ← cdown left | 02:29 |
| ← mgedmin left | 02:30 |
| → mgedmin joined | 02:32 |
| ← mra90 left | 02:39 |
| → drbeco joined | 02:39 |
| ← ka80 left | 02:42 |
| ← skapata left | 02:43 |
| → stewie925 joined | 02:46 |
| → ka80 joined | 02:49 |
| → murii joined | 02:51 |
| ← murii left | 02:55 |
|
rewt
| axisys, on that remote, `git checkout mainline-2.0` | 02:55 |
|
| but why does it matter what's checked out on the remote? | 02:56 |
| → Vonter joined | 03:00 |
| → k8yun joined | 03:01 |
| ← Shashin left | 03:01 |
| → junebug joined | 03:02 |
| → saroy joined | 03:02 |
| → forgotmynick joined | 03:03 |
| → yolo joined | 03:04 |
|
yolo
| is there a command to search *all* sha1sums, including all branches, i.e. every sha1sum in the repo | 03:05 |
|
stewie925
| I have updated my git repo name remotely, how do I sync up my local to the remote? | 03:06 |
|
yolo
| found it, git show does it | 03:07 |
| → odoood joined | 03:11 |
| → murii joined | 03:12 |
| ← NeilRG left | 03:13 |
| ← fikran left | 03:15 |
| → chenqisu1 joined | 03:16 |
| ← murii left | 03:16 |
| → fikran joined | 03:17 |
|
yolo
| so i have a sha1sum that i can git-show but git log --oneliner does not show that, why. | 03:18 |
| ← pmcnabb left | 03:19 |
|
yolo
| git rev-list --all has it. sigh | 03:19 |
| → pmcnabb joined | 03:19 |
| ← odoood left | 03:21 |
| → pyeveryt_ joined | 03:23 |
|
yolo
| git log --all also list all commits, but I have never used --all for git log, strange | 03:23 |
| ← Swahili left | 03:29 |
| → Swahili joined | 03:29 |
|
stewie925
| hello | 03:30 |
|
| I renamed my git repo locally and remotely, and I ran git remote set-url origin <renamed repo name.git> , then when I tried to git push my changes I get `cannot resolve https` error | 03:31 |
|
| oh I got it - the remote url is incorrect.... ugh | 03:34 |
| ← ka80 left | 03:34 |
| ← durham left | 03:34 |
| ← vdamewood left | 03:35 |
| → pingpongball joined | 03:35 |
| → sudoforge joined | 03:36 |
| → Emet-Selch joined | 03:37 |
| → vdamewood joined | 03:37 |
| ← yolo left | 03:39 |
| ← Azem left | 03:40 |
| ← terrorjack left | 03:42 |
| → k8yun_ joined | 03:43 |
| → terrorjack joined | 03:43 |
| ← pycurious left | 03:43 |
| → murii joined | 03:46 |
| ← pingpongball left | 03:46 |
| ← k8yun left | 03:47 |
| ← stewie925 left | 03:47 |
| → rgrinberg joined | 03:49 |
| ← murii left | 03:51 |
| → wonty joined | 03:52 |
| ← worky left | 03:55 |
| ← haasn left | 04:00 |
| ← xx left | 04:01 |
| → haasn joined | 04:01 |
| → jazzy2 joined | 04:02 |
| → durham joined | 04:03 |
| ← junebug left | 04:03 |
| ← great_taste left | 04:05 |
| ← jazzy left | 04:05 |
| → junebug joined | 04:06 |
| → jusski joined | 04:12 |
| ← GNUmoon left | 04:14 |
| → murii joined | 04:20 |
| → mra90 joined | 04:21 |
| → atrigent joined | 04:22 |
| ← Fusl left | 04:23 |
| → anaveragehuman joined | 04:23 |
| ← murii left | 04:24 |
| ← adanwan left | 04:26 |
| → adanwan joined | 04:26 |
| ← k8yun_ left | 04:34 |
| → pingpongball joined | 04:34 |
| ← junebug left | 04:36 |
| ← anaveragehuman left | 04:38 |
| ← jelmer left | 04:38 |
| → jelmer joined | 04:39 |
| → great_taste joined | 04:41 |
| ← hbautista left | 04:46 |
| ← bket left | 04:47 |
| → bket joined | 04:49 |
| → Fusl joined | 04:52 |
| → murii joined | 04:53 |
| ← pingpongball left | 04:54 |
| ← murii left | 04:58 |
| ← chenqisu1 left | 05:02 |
| → karstensrage_ joined | 05:02 |
| ← karstensrage left | 05:02 |
| ← tyson2 left | 05:03 |
| ← drbeco left | 05:04 |
| ← vysn left | 05:06 |
| ← mra90 left | 05:06 |
| ← crashrep left | 05:12 |
| ← forgotmynick left | 05:13 |
| ← gast0n left | 05:21 |
| ← hoochmonger left | 05:22 |
| ← fikran left | 05:24 |
| → fikran joined | 05:26 |
| → murii joined | 05:28 |
| → ackyshake joined | 05:32 |
| ← murii left | 05:32 |
| ← sudoforge left | 05:39 |
| → mexen joined | 05:39 |
| → drbeco joined | 05:41 |
| ← ackyshake left | 05:43 |
| ← saroy left | 05:44 |
| → dtrainor_ joined | 05:44 |
| ← dtrainor left | 05:45 |
| → c41e3a joined | 05:47 |
| ← thiago left | 05:48 |
| → pingpongball joined | 05:51 |
| → ackyshake joined | 05:52 |
| ← bloody left | 05:54 |
| ← atrigent left | 05:57 |
| ← tsdh left | 06:02 |
| → murii joined | 06:03 |
| ← junktext left | 06:07 |
| ← murii left | 06:08 |
| ← zebrag left | 06:09 |
| → tsdh joined | 06:09 |
| → madewokherd` joined | 06:13 |
| ← great_taste left | 06:14 |
| ← madewokherd left | 06:15 |
| → otisolsen70 joined | 06:16 |
| ← otisolsen70 left | 06:17 |
| → otisolsen70 joined | 06:17 |
| → mra90 joined | 06:22 |
| ← mra90 left | 06:25 |
| → mra90 joined | 06:25 |
| ← jusski left | 06:33 |
| ← srinidhi left | 06:34 |
| → murii joined | 06:37 |
| → chenqisu1 joined | 06:37 |
| → jazzy3 joined | 06:38 |
| → jusski joined | 06:39 |
| ← drbeco left | 06:39 |
| → carl- joined | 06:42 |
| ← murii left | 06:42 |
| ← jazzy2 left | 06:42 |
| ← ChmEarl left | 06:43 |
| ← pingpongball left | 06:43 |
| → carl-- joined | 06:44 |
| ← carl- left | 06:46 |
| → murii joined | 06:47 |
| ← Thanatermesis left | 06:47 |
| ← firewyre left | 06:48 |
| → srinidhi joined | 06:52 |
| ← duuude left | 06:56 |
| → firewyre joined | 06:58 |
| ← tehenderz left | 07:00 |
| → tehenderz joined | 07:00 |
| ← murii left | 07:01 |
| ← dtrainor_ left | 07:04 |
| → pingpongball joined | 07:08 |
| ← c41e3a left | 07:11 |
| → jnors joined | 07:12 |
| → c41e3a joined | 07:12 |
| ← rgrinberg left | 07:16 |
| → vanessa joined | 07:19 |
| ← rahl left | 07:21 |
| ← stevenix1 left | 07:21 |
| → kenanmarasli joined | 07:25 |
| ← c41e3a left | 07:27 |
| → feriman joined | 07:30 |
| → zeenk joined | 07:32 |
| ← ferdna left | 07:33 |
| ← fikran left | 07:34 |
| → Shashin joined | 07:34 |
| ← hendry left | 07:35 |
| ← jnors left | 07:35 |
| → fikran joined | 07:35 |
| → hendry joined | 07:36 |
| → rfuentess joined | 07:37 |
| ← Shashin left | 07:37 |
| → MajorBiscuit joined | 07:39 |
| → ThePhilgrim joined | 07:43 |
| ← ThePhilgrim left | 07:43 |
| ← MajorBiscuit left | 07:44 |
| → ThePhilgrim joined | 07:45 |
| ← ThePhilgrim left | 07:45 |
| → MajorBiscuit joined | 07:46 |
| ← feriman left | 07:46 |
| → feriman joined | 07:48 |
| ← feriman left | 07:50 |
| → feriman joined | 07:50 |
| → masoudd joined | 07:50 |
| → yagamilito joined | 07:51 |
| ← masoudd left | 07:52 |
| → masoudd joined | 07:52 |
| ← vanessa left | 07:52 |
| ← masoudd left | 07:53 |
| → masoudd joined | 07:53 |
| → geowiesnot joined | 07:55 |
| → GNUmoon joined | 07:55 |
| → mcpackey joined | 07:57 |
| → vysn joined | 07:58 |
| → kaiseisei joined | 08:00 |
| → masoudd_ joined | 08:02 |
| ← masoudd left | 08:05 |
| ← unluckyshrubbery left | 08:07 |
| → palasso joined | 08:07 |
| → iomari891 joined | 08:12 |
| ← pingpongball left | 08:12 |
| ← Akiva left | 08:13 |
| → Shentino_ joined | 08:15 |
| ← Shentino left | 08:16 |
| ← kaiseisei left | 08:26 |
| → rahl joined | 08:27 |
| ← foul_owl left | 08:33 |
| → stevenix1 joined | 08:33 |
| → worky joined | 08:36 |
| ← wonty left | 08:39 |
| → Shashin joined | 08:44 |
| ← Betal left | 08:46 |
|
canton7
| srinidhi, right, but the error came from the fact that your lease was out of date. You were trying to force-push, and the remote side had gained commits since you last fetched, which means that force-pushing would have thrown away commits. Nothing to do with worktrees, and your question didn't even mention the fact you were force-psuing | 08:50 |
| → atrigent_ joined | 08:52 |
| → l4s8g joined | 08:54 |
| ← Shashin left | 08:55 |
| → TomyWork joined | 08:58 |
| ← ishutin left | 09:00 |
| → john_johnk joined | 09:01 |
| → dtminus joined | 09:01 |
| ← firewyre left | 09:02 |
| → ishutin joined | 09:02 |
| → TheCatBehemoth joined | 09:05 |
| ← dvanloon left | 09:05 |
| → clime joined | 09:06 |
| ← tehenderz left | 09:07 |
| → cdown joined | 09:07 |
| → tehenderz joined | 09:08 |
| ← dtminus left | 09:13 |
| ← vicecea left | 09:14 |
| → spare joined | 09:14 |
| → vicecea joined | 09:14 |
| → Tobbi_ joined | 09:16 |
| ad__ → oldwest | 09:16 |
| ← spare left | 09:17 |
| → spare joined | 09:17 |
| ← magic_ninja left | 09:18 |
| ← atrigent_ left | 09:19 |
| → magic_ninja joined | 09:20 |
| → atrigent joined | 09:21 |
| → vladoski joined | 09:21 |
| ← magic_ninja left | 09:21 |
| → DibbTubberOne joined | 09:22 |
| ← vladoski left | 09:22 |
| → cvmn joined | 09:23 |
| ← alip left | 09:23 |
| → vladoski joined | 09:24 |
| → magic_ninja joined | 09:24 |
| → alip joined | 09:24 |
| → Shashin joined | 09:24 |
| ← Shashin left | 09:25 |
| → zer0bitz joined | 09:25 |
| → Sulky joined | 09:26 |
| ← geowiesnot left | 09:27 |
| ← dtux left | 09:30 |
| ← john_johnk left | 09:31 |
| ← l4s8g left | 09:31 |
| → firewyre joined | 09:38 |
| oldwest → oldwestguest | 09:40 |
| ← fikran left | 09:43 |
| ← chenqisu1 left | 09:43 |
| ← yagamilito left | 09:43 |
| → fikran joined | 09:45 |
| → rsx joined | 09:48 |
| → l4s8g joined | 09:48 |
| ← Deknos left | 09:48 |
| → chenqisu1 joined | 09:52 |
| ← chenqisu1 left | 09:53 |
| ← DibbTubberOne left | 09:53 |
| → chenqisu1 joined | 09:53 |
| → unluckyshrubbery joined | 09:56 |
| ← bindu left | 09:58 |
|
srinidhi
| canton7: thank you for explaining this in detail! I didn't mention that I was force pushing the branch because I thought after rebasing a branch, we have to always force push. | 10:03 |
|
| and in this case, as I had also mentioned, I'm the only person working on this branch and I have double checked that the remote branch had not received any commits outside of my local branch. | 10:04 |
|
| but yeah, I do admit that I didn't follow my own advise of running "git pull" before rebasing or even making the first commit after switching to worktree workflow. | 10:05 |
| ← vysn left | 10:06 |
| ← mra90 left | 10:07 |
| → AnapodoPsalidi joined | 10:09 |
| → Rashad joined | 10:11 |
| ← AnapodoPsalidaki left | 10:11 |
| ← jazzy3 left | 10:11 |
| ← spare left | 10:16 |
| → bindu joined | 10:19 |
| → sfenik joined | 10:21 |
| ← sfenik left | 10:22 |
| → spare joined | 10:23 |
| → AnapodoPsalidaki joined | 10:28 |
| → imp joined | 10:28 |
| ← joachimo left | 10:29 |
| ← AnapodoPsalidi left | 10:29 |
| → joachimo joined | 10:31 |
| → Codaraxis joined | 10:31 |
| ← Codaraxis left | 10:31 |
| ← pizdets_ left | 10:33 |
| → pizdets joined | 10:33 |
|
ronny
| hi, anyone aware if there is a easy way to drop all blobs/trees that dont belong to heads/recent tags? i want to leave out most of the data of a few hundred git repos | 10:33 |
|
| (aka something like doing a filtered repack) | 10:36 |
| → xkuru joined | 10:36 |
| → john_johnk joined | 10:47 |
| ← spare left | 10:50 |
| → spare joined | 10:51 |
| → FH_thecat joined | 10:52 |
| ← bindu left | 10:55 |
| → dtrainor joined | 10:57 |
| → Lord_of_Life_ joined | 10:59 |
| ← Lord_of_Life left | 11:00 |
| → mihael joined | 11:00 |
| Lord_of_Life_ → Lord_of_Life | 11:00 |
| → walterwhip joined | 11:03 |
| ← mihael left | 11:09 |
| ← Lord_of_Life left | 11:11 |
| → Lord_of_Life joined | 11:11 |
| → bindu joined | 11:15 |
| ← john_johnk left | 11:16 |
| ← cvmn left | 11:16 |
| → foul_owl joined | 11:21 |
| ← walterwhip left | 11:26 |
| → va5c0 joined | 11:27 |
| ← va5c0 left | 11:27 |
| ← Swahili left | 11:29 |
| → Swahili joined | 11:29 |
| → va5c0 joined | 11:31 |
| → jalil joined | 11:32 |
| ← va5c0 left | 11:32 |
| → va5c0 joined | 11:32 |
| ← jusski left | 11:33 |
| ← va5c0 left | 11:35 |
| → va5c0 joined | 11:35 |
| ← foul_owl left | 11:36 |
| ← zeenk left | 11:36 |
| ← jalil left | 11:36 |
| ← TheCatBehemoth left | 11:41 |
| ← va5c0 left | 11:41 |
| → va5c0 joined | 11:42 |
| → vitali64 joined | 11:43 |
| ← va5c0 left | 11:44 |
| → va5c0 joined | 11:45 |
| ← FH_thecat left | 11:45 |
| ← vitali64 left | 11:46 |
| → vitali64 joined | 11:46 |
| ← Eryn83FL_Matrix[ left | 11:51 |
| → Eryn83FL_Matrix[ joined | 11:51 |
| ← fikran left | 11:52 |
| ← va5c0 left | 11:53 |
| → va5c0 joined | 11:53 |
| → fikran joined | 11:54 |
| ← va5c0 left | 11:55 |
| → va5c0 joined | 11:55 |
| ← va5c0 left | 11:55 |
| → va5c0 joined | 11:56 |
| → cdown_ joined | 11:56 |
| → pretty_dumm_guy joined | 11:56 |
| ← cdown left | 11:59 |
| cdown_ → cdown | 11:59 |
| → DrowningElysium joined | 12:00 |
| ← va5c0 left | 12:01 |
| → va5c0 joined | 12:01 |
| ← l4s8g left | 12:01 |
| ← feriman left | 12:03 |
| ← vitali64 left | 12:05 |
| ← va5c0 left | 12:07 |
| → vysn joined | 12:08 |
| → pycurious joined | 12:08 |
| ← maxxe left | 12:10 |
| ← M3troidman left | 12:11 |
| → M3troidman joined | 12:12 |
| → va5c0 joined | 12:12 |
| ← BlessJah left | 12:17 |
| → duxsco joined | 12:17 |
| → c41e3a joined | 12:18 |
| → BlessJah joined | 12:18 |
| → ThePhilgrim joined | 12:20 |
| ← ThePhilgrim left | 12:20 |
| → ThePhilgrim joined | 12:21 |
| masoudd_ → masoudd | 12:25 |
| ← duxsco left | 12:26 |
| → skapata joined | 12:32 |
| ← skapata left | 12:32 |
| → skapata joined | 12:32 |
| → tyson2 joined | 12:32 |
| → ekathva_ joined | 12:34 |
| ← bindu left | 12:35 |
| → feriman joined | 12:35 |
| ← ekathva_ left | 12:37 |
| → c41e3a_ joined | 12:42 |
| → madewokherd joined | 12:42 |
| → bindu joined | 12:42 |
| → NeilRG joined | 12:43 |
| → AnapodoPsalidi joined | 12:43 |
|
NeilRG
| how do I squash a set of commits that involve a merge? | 12:43 |
| ← c41e3a left | 12:44 |
| ← AnapodoPsalidaki left | 12:45 |
| ← madewokherd` left | 12:45 |
|
osse
| NeilRG: is it a merge of another branch that's not wholly contained in the set of commits to squash? | 12:46 |
|
NeilRG
| osse: I can show you, hang on | 12:47 |
|
| osse https://github.com/NeilGirdhar/flax/tree/default_dtypes | 12:48 |
|
| hard to see the tree though | 12:48 |
|
osse
| heh I can tell why you want to squash | 12:50 |
|
| (it was small, so I just cloned it) | 12:50 |
|
NeilRG
| okay how do I squash? | 12:51 |
|
| thanks for your help | 12:51 |
|
osse
| what do you want to squash exactly? http://sprunge.us/o5Edtj | 12:51 |
|
NeilRG
| normally, I just do git rebase -i and then use fixup | 12:51 |
|
| the whole thing | 12:51 |
|
| my changes | 12:51 |
|
| I want one commit that represents all of these commits | 12:51 |
| ← ThePhilgrim left | 12:51 |
| → ThePhilgrim joined | 12:52 |
|
NeilRG
| that stupid merge is complicating everything | 12:52 |
|
osse
| I don't know what commits "these" are | 12:52 |
| ← ThePhilgrim left | 12:52 |
| → jalil joined | 12:52 |
| → ThePhilgrim joined | 12:52 |
| ← ThePhilgrim left | 12:53 |
|
osse
| You probably started working on some feature/bug/whatever and want to squash all of those? | 12:53 |
|
| Where did you start though? | 12:53 |
| → ThePhilgrim joined | 12:53 |
|
NeilRG
| osse 52e5dc7 | 12:53 |
| ← ThePhilgrim left | 12:54 |
| → ThePhilgrim joined | 12:54 |
|
NeilRG
| can I at least linearize it? | 12:55 |
| ← ThePhilgrim left | 12:55 |
|
NeilRG
| I want to fix this c053d14 | 12:55 |
| → ThePhilgrim joined | 12:55 |
|
NeilRG
| it has two parens | 12:55 |
| ← ThePhilgrim left | 12:55 |
|
NeilRG
| isn't there a git cut? | 12:55 |
| → ThePhilgrim joined | 12:56 |
| ← ThePhilgrim left | 12:56 |
|
osse
| you've merged main. do you want to pretend you never merged main? | 12:56 |
| → ThePhilgrim joined | 12:56 |
| ← ThePhilgrim left | 12:56 |
|
osse
| or are some of your changes dependent on that? | 12:57 |
| → ThePhilgrim joined | 12:57 |
|
NeilRG
| osse: I want to keep that commit, but make it so it has no pointer to main | 12:57 |
|
| that way I can easily linearize everything | 12:57 |
| ← ThePhilgrim left | 12:57 |
|
NeilRG
| git replace --edit <sha> ? | 12:57 |
| ← chenqisu1 left | 12:57 |
| → ThePhilgrim joined | 12:57 |
|
osse
| I mean... you can just git reset --soft 52e5dc7; git commit -m 'Huge commit' | 12:57 |
| ← ThePhilgrim left | 12:58 |
|
osse
| that'll keep all the changes and content, even from the merges, but squash it all done into one commit | 12:58 |
| ← jalil left | 12:58 |
| → jalil joined | 12:58 |
|
NeilRG
| osse: Okay, I was wondering about that | 12:58 |
| ← hololeap left | 12:58 |
|
NeilRG
| I think I'll do that | 12:59 |
|
| I hope I don't lose my work | 12:59 |
|
| --soft is not necessary right? | 12:59 |
|
| hat's teh efault | 12:59 |
|
osse
| --mixed is default | 12:59 |
| ← rsx left | 12:59 |
|
lericson
| you can never lose your work if you commit it and know the ref | 13:00 |
|
| the ref is often recoverable via the reflog also | 13:00 |
|
| so in short, commit | 13:00 |
| → hololeap joined | 13:00 |
| → ThePhilgrim joined | 13:00 |
| ← ThePhilgrim left | 13:00 |
| → ThePhilgrim joined | 13:00 |
| ← ThePhilgrim left | 13:01 |
| → duxsco joined | 13:01 |
| → Shashin joined | 13:01 |
| → Fubbebubbe joined | 13:01 |
|
NeilRG
| this is pulling in other changes somehow | 13:01 |
| ← AbleBacon left | 13:02 |
|
osse
| The end result will be identical to the current last commit | 13:02 |
|
NeilRG
| osse: doesn't look like it | 13:02 |
|
| README.md is changed when I do this | 13:03 |
|
| but it's not in my pull request | 13:03 |
|
| so something is off | 13:03 |
| ← Fubbebubbe left | 13:03 |
|
osse
| then it was changed in one of the branches that was merged in | 13:03 |
|
NeilRG
| osse: exactly | 13:03 |
| → ThePhilgrim joined | 13:03 |
| ← unluckyshrubbery left | 13:03 |
|
NeilRG
| how do I squash taking that into account? | 13:04 |
|
osse
| use git rebase -i as normal. git will drop the merges. | 13:04 |
|
NeilRG
| how do i take the changes of this pull request that i see in github and turn it into a patch | 13:04 |
| ← ThePhilgrim left | 13:04 |
|
NeilRG
| osse: okay, hang on | 13:04 |
| → menace joined | 13:04 |
| ← menace left | 13:05 |
| → menace joined | 13:05 |
| menace → Deknos | 13:05 |
|
NeilRG
| grbi 52e5dc7~1? | 13:05 |
|
osse
| ... but you said "I want to keep that commit, but make it so it has no pointer to main" which I interpreted as you want to keep the content that was merged in | 13:05 |
|
| but maybe that's not the case | 13:05 |
|
NeilRG
| osse: well, I just want my PR to be identical, but only have one commit | 13:05 |
|
| that way I can rebase off origin/main until the PR is accepted | 13:05 |
|
osse
| identical to what? the current state? but the current state includes changes to README.md apparently | 13:06 |
|
NeilRG
| I mean when I look on github, it shows a set of changes | 13:07 |
|
| I want those changes to be identical after the squash | 13:07 |
|
| github isn't considering the merged in stuff | 13:07 |
|
| maybe I should reset to the merged in commit? | 13:07 |
|
| and then commit from there? | 13:07 |
|
osse
| I don't know | 13:07 |
|
NeilRG
| and what's the difference between soft and mixed? | 13:07 |
|
osse
| only whether the index is reset also | 13:08 |
|
NeilRG
| what does that mean? | 13:09 |
|
osse
| I'm pretty confident you just want a plain rebase and drop the merges | 13:09 |
| → rev1nchn joined | 13:10 |
|
NeilRG
| osse: so I should do what? | 13:11 |
| ← rudi_s left | 13:11 |
|
osse
| git reset foo: files on disk are untouched, but HEAD points to foo, so that you have a lot of changes | 13:11 |
|
NeilRG
| and then push force? | 13:12 |
|
| okay I'm doing that now | 13:12 |
|
osse
| git reset --soft foo: files on disk AND index are untouched. HEAD points to foo, so that you have a lot of changes that will appear as staged | 13:12 |
| → unluckyshrubbery joined | 13:12 |
| → rudi_s joined | 13:12 |
| ← Flow left | 13:12 |
|
osse
| I am saying you should do what you normally do, with the rebase -i and the fixups | 13:12 |
|
NeilRG
| osse: so if git diff origin/main is basically empty, nothing has been lost, right? | 13:14 |
|
osse
| main?? | 13:14 |
|
NeilRG
| sorry origin/default_dtypes | 13:15 |
| ← Shashin left | 13:16 |
|
osse
| if the diff with origin/default_types is empty then nothing has been lost | 13:16 |
|
| but nothing lost in this case means you keep the changes to README.md that you didn't want | 13:17 |
|
NeilRG
| osse: yeah but when I rebase off main, then those diffs will disappear right? | 13:18 |
|
osse
| yeah I think so | 13:18 |
|
NeilRG
| osse: okay thank you very much for your help | 13:20 |
| → humanface joined | 13:22 |
| ← c41e3a_ left | 13:27 |
| → c41e3a joined | 13:29 |
| ← c41e3a left | 13:29 |
| → molt joined | 13:30 |
| → hoochmonger joined | 13:30 |
| → vitali64 joined | 13:38 |
| ← molt left | 13:39 |
| → bloody joined | 13:39 |
| ← mcpackey left | 13:45 |
| → mannequin joined | 13:51 |
| ← vitali64 left | 13:52 |
| → Flow joined | 13:56 |
| → anaveragehuman joined | 13:59 |
| → AnapodoPsalidaki joined | 14:00 |
|
frojnd
| I would like to push some changes to test repo while in gitlab's runner. Please bare with me... when I do git branch I see: * (HEAD detached at 65df6d1); test so this mean I'm working in deteached state. I tried to git add, git commit and git push HEAD:test but I got message: fatal: You are not currently on a branch. To push the history leading to the current (detached HEAD) state now, use git push | 14:01 |
|
| HEAD:test HEAD:<name-of-remote-branch> | 14:01 |
|
| Any ideas how to push to branch while in detached HEAD? | 14:01 |
| ← AnapodoPsalidi left | 14:01 |
| ← fikran left | 14:02 |
|
frojnd
| https://stackoverflow.com/a/30471627 <- maybe what I need | 14:03 |
| → fikran joined | 14:04 |
| ← vaio left | 14:04 |
|
osse
| frojnd: you have left out the destination (ie. where to push to) | 14:05 |
| ← hololeap left | 14:05 |
|
osse
| maybe you want git push origin HEAD:test | 14:05 |
| → vaio joined | 14:06 |
| → hololeap joined | 14:06 |
|
frojnd
| Great it worked osse Now I just have to solve 403 which is permission issue. Thank you very much | 14:07 |
| → neverfindme joined | 14:09 |
| ← neverfindme left | 14:09 |
| → xx joined | 14:14 |
| → Gustavo6046 joined | 14:16 |
| ← feriman left | 14:17 |
| → Common-Lisp joined | 14:20 |
| ← zer0bitz left | 14:21 |
| ← adanwan left | 14:24 |
| → adanwan joined | 14:24 |
| → ChmEarl joined | 14:27 |
| → TheCatBehemoth joined | 14:28 |
| → michigan joined | 14:29 |
| → j`ey joined | 14:29 |
| ← j`ey left | 14:29 |
| → boxframes_ joined | 14:29 |
| ← Saloframes left | 14:32 |
| → drbeco joined | 14:34 |
|
NeilRG
| why can | 14:34 |
|
| can't I reply on github to a coe review in line? | 14:34 |
| ← Gustavo6046 left | 14:35 |
| → bkircher joined | 14:35 |
| ← Xenguy left | 14:36 |
| Emet-Selch → Azem | 14:36 |
|
mackerman
| NeilRG: More of a querstion for ##github channel | 14:37 |
|
NeilRG
| mackerman: thanks | 14:37 |
| → nyah joined | 14:40 |
| ← spare left | 14:41 |
| → spare joined | 14:41 |
| karstensrage_ → karstensrage | 14:42 |
| ← karstensrage left | 14:42 |
| → karstensrage joined | 14:42 |
| ← rev1nchn left | 14:43 |
| ← spare left | 14:44 |
| → spare joined | 14:45 |
| ← spare left | 14:46 |
| → spare joined | 14:46 |
| ← Dotz0cat left | 14:48 |
| → Dotz0cat joined | 14:54 |
| → Thanatermesis joined | 14:56 |
| oldwestguest → oldwildwest | 15:01 |
| → Shashin joined | 15:02 |
| ← NeilRG left | 15:07 |
| → c41e3a joined | 15:15 |
| ← durham left | 15:18 |
| ← Shashin left | 15:18 |
| ← Common-Lisp left | 15:20 |
| → k8yun joined | 15:21 |
| ← anaveragehuman left | 15:22 |
| → vitali64 joined | 15:26 |
| → anaveragehuman joined | 15:32 |
| → rgrinberg joined | 15:34 |
| → iateadonut joined | 15:34 |
|
iateadonut
| someone did a merge that seems to have reverted a file to an older state, but when i do "git log -p file", i don't see commits after the *older* state. | 15:34 |
| → zer0bitz joined | 15:35 |
| → thiago joined | 15:35 |
| → ferdna joined | 15:35 |
| ← shailangsa left | 15:36 |
| → odoood joined | 15:40 |
| → pingpongball joined | 15:40 |
| ← c41e3a left | 15:42 |
| ← pingpongball left | 15:45 |
| ← duxsco left | 15:46 |
| → c41e3a joined | 15:54 |
|
iateadonut
| so i'm wondering how i can show the history | 15:54 |
|
| to see the modifications up to the merge that seems to revert them | 15:55 |
| → cousteau joined | 15:56 |
| ← rgrinberg left | 15:56 |
|
cousteau
| So today I learned that gitk heavily relies on the commit date to sort the commits and generate pretty trees, rather than trying to optimize the graph shape | 15:56 |
|
| I had this workflow in which branch 1 is tracking a remote directory, and branch 2 = branch 1 + some minor fixes needed for the remote code to work on the local machine. Whenever the remote code changes, I rsync it, commit to branch 1, and then merge into branch 2, so branch 1 = remote code and branch 2 = remote code + modifications. | 15:59 |
| ← iomari891 left | 16:00 |
| → rgrinberg joined | 16:01 |
| → lgc joined | 16:02 |
|
cousteau
| This looked awesome in gitk: 2 parallel "tracks" with a few diagonals going from one track to the other. The graph was representing exactly the model I had in mind. | 16:02 |
|
| But today I changed the order in which I do the merges (I committed something to branch 1 and then merged an OLDER commit to branch 2) and everything went crazy. My two-column gitk graph spreaded into a lot of columns and became an absolute mess :( | 16:04 |
|
| I ended up having to actually change the commit date of the merge to trick gitk into understanding how it had to draw the graph :| | 16:05 |
|
| In short... it would be nice if gitk were a bit smarter about drawing trees. | 16:06 |
|
| I may submit an email to the mailing list reporting this "bug" | 16:06 |
| ← anaveragehuman left | 16:07 |
| → john_johnk joined | 16:09 |
| → anaveragehuman joined | 16:09 |
| ← lgc left | 16:10 |
| ← fikran left | 16:11 |
| ← iateadonut left | 16:11 |
| → durham joined | 16:12 |
| → fikran joined | 16:13 |
| ← masoudd left | 16:15 |
| ← tyson2 left | 16:20 |
| ← reset left | 16:24 |
| → great_taste joined | 16:26 |
| ← skapata left | 16:28 |
| → durham_ joined | 16:30 |
| ← durham left | 16:33 |
| ← anaveragehuman left | 16:34 |
| → reset joined | 16:34 |
| → anaveragehuman joined | 16:39 |
| → cdown_ joined | 16:41 |
|
cousteau
| If I stage a file, and then checkout a different commit, will the index be a copy of the PREVIOUS commit with the change on the staged file, or will it become a copy of the NEW commit with the changes merged? | 16:41 |
|
| Or does git simply refuse to checkout another commit if you have things pending to commit? | 16:42 |
| ← cdown left | 16:43 |
| cdown_ → cdown | 16:43 |
| → jinsun__ joined | 16:44 |
| ← jinsun left | 16:44 |
|
cousteau
| Or are the changes in the index discarded? | 16:44 |
| ← vladoski left | 16:45 |
| → dtrainor_ joined | 16:45 |
| ← dtrainor left | 16:48 |
| → dtux joined | 16:49 |
| → zebrag joined | 16:49 |
|
cousteau
| Oh interesting, it seems to... sort of cherry-pick the changes from HEAD to index and apply them on top of the new HEAD, is this correct? | 16:50 |
| → Akiva joined | 16:52 |
| → hseg joined | 16:59 |
| → AbleBacon joined | 17:02 |
|
cousteau
| Stackoverflow told me to go read git-read-tree, let's see... | 17:02 |
| ← tehenderz left | 17:03 |
| → tehenderz joined | 17:03 |
| ← durham_ left | 17:03 |
| → sudoforge joined | 17:04 |
|
canton7
| cousteau, gitk is heavily optimized to be able to draw a complex graph incrementally -- it doesn't need to load the entire history in order to figure out where to draw things: it needs to be able to draw what's currently in the window, then add to it as you scroll around | 17:04 |
|
| cousteau, I've seen a few requests for different graph outputs, and they've fallen foul of that single requirement | 17:04 |
| ← michigan left | 17:04 |
|
canton7
| cousteau, if you want to make a report, you'll need to explain how this can be done incrementally, in order to cope with large histories | 17:05 |
| → durham joined | 17:05 |
|
cousteau
| Hm, I see | 17:05 |
|
canton7
| cousteau, there is an option to "Strictly sort by date" in the View menu -- I used that when it decides to mess around with the order of things too much. There are some other options for sorting as well | 17:05 |
|
cousteau
| And... I guess "it should look pretty" without any code to back it would be kind of worthless, right? | 17:05 |
|
canton7
| There are other tools (I forget the names) which prefer to draw things in a nicely-structured way | 17:05 |
|
| cousteau is still convinced MS Paint is a valid programming environment | 17:06 |
|
cousteau
| canton7: yeah, strictly sort by date fixed the graph quite a bit | 17:07 |
| ← jalil left | 17:07 |
| ← jinsun__ left | 17:07 |
| ← durham left | 17:08 |
|
cousteau
| Anyway I'll consider writing a testcase and submitting it to the list to see if anyone can figure out why it looks awful and if it might be easy to fix | 17:08 |
|
| And, most importantly, to see if newer versions have fixed it. Maybe they have... | 17:08 |
| → durham joined | 17:10 |
| → michigan joined | 17:10 |
| ← durham left | 17:10 |
| → jinsun joined | 17:11 |
| ← mexen left | 17:12 |
| → zopsi joined | 17:13 |
| → durham joined | 17:13 |
| → duxsco joined | 17:14 |
| ← MajorBiscuit left | 17:14 |
| ← Shentino_ left | 17:14 |
| ← rgrinberg left | 17:16 |
| ← c41e3a left | 17:20 |
| → masoudd joined | 17:21 |
| ← Akiva left | 17:23 |
| ← cryptonector left | 17:24 |
| → hbautista joined | 17:24 |
| ← tchan left | 17:25 |
| → cryptonector joined | 17:30 |
| ← durham left | 17:31 |
| ← anaveragehuman left | 17:31 |
| → c41e3a joined | 17:32 |
| → tchan joined | 17:33 |
| → wootehfoot joined | 17:33 |
| ← ss4 left | 17:34 |
| → jalil joined | 17:34 |
| → tyson2 joined | 17:35 |
| → durham joined | 17:35 |
| ← durham left | 17:38 |
| → rgrinberg joined | 17:39 |
| ← john_johnk left | 17:39 |
| → durham joined | 17:41 |
| → gast0n joined | 17:42 |
| ← rfuentess left | 17:44 |
| ← durham left | 17:44 |
| → durham joined | 17:45 |
| ← Dotz0cat left | 17:45 |
| ← durham left | 17:49 |
| → Dotz0cat joined | 17:50 |
| → ecraven joined | 17:50 |
|
ecraven
| hello ;) | 17:50 |
| → durham joined | 17:50 |
| ← durham left | 17:50 |
|
ecraven
| I can see the changes for a given file with `git diff other-branch filename`, but how can I pull only those changes into the current working directory or staging area? | 17:50 |
| ← sgen left | 17:51 |
| → anaveragehuman joined | 17:52 |
| → durham joined | 17:52 |
| ← cousteau left | 17:59 |
| ← pycurious left | 18:01 |
| → Shentino joined | 18:06 |
| → crashrep joined | 18:06 |
| → ___nick___ joined | 18:09 |
| ← durham left | 18:12 |
| ← csm3105 left | 18:16 |
| → tirnanog joined | 18:16 |
| ← vitali64 left | 18:19 |
|
rewt
| ecraven: `git checkout other-branch -- filename` to get only filename from other-branch | 18:20 |
| ← fikran left | 18:21 |
| → vitali64 joined | 18:21 |
| → stewie925 joined | 18:22 |
| → fikran joined | 18:22 |
| ← vdamewood left | 18:24 |
| → junebug joined | 18:25 |
| ← carl-- left | 18:25 |
| ← va5c0 left | 18:27 |
| ← anaveragehuman left | 18:29 |
| ← ash_worksi left | 18:33 |
| → hornbill047 joined | 18:34 |
| → ash_worksi joined | 18:34 |
| ← ash_worksi left | 18:34 |
| → ash_worksi joined | 18:35 |
| → skapata joined | 18:35 |
| ← skapata left | 18:35 |
| → skapata joined | 18:35 |
|
ash_worksi
| I don't understand why running `git diff --cached origin/master -- path/to/unstaged/file` shows *some* of my changes but the immediate most one | 18:36 |
| ← hornbill047 left | 18:38 |
| → hornbill047 joined | 18:38 |
| → pycurious joined | 18:39 |
|
ash_worksi
| oh I see | 18:40 |
|
| nvm | 18:40 |
| ← pycurious left | 18:40 |
| hornbill047 → hornbill | 18:40 |
| → pycurious joined | 18:40 |
| hornbill → hornbill047 | 18:40 |
| hornbill047 → kurian | 18:40 |
| ← rossome left | 18:42 |
|
vaio
| hi, is there a way to revert a rebase ? | 18:43 |
| → emf_ joined | 18:44 |
| ← pycurious left | 18:44 |
| ← emf left | 18:45 |
|
vaio
| this is the last things a ran: https://0x0.st/oXfd.txt ; and it seems i lost some local changes | 18:45 |
|
| and i'd like to know if those can be recovered :s | 18:45 |
| ← kurian left | 18:46 |
| → vandito joined | 18:49 |
| → Betal joined | 18:50 |
| ← hseg left | 18:52 |
| ← vandito left | 18:52 |
| → hseg joined | 18:52 |
| ← junebug left | 18:53 |
| ← ___nick___ left | 18:53 |
| → ___nick___ joined | 18:55 |
| ← spare left | 18:55 |
| → vicfred joined | 18:56 |
| ← vitali64 left | 18:57 |
|
vaio
| (nvm, fixed with git reset --hard; sorry for the noise) | 18:59 |
| → durham joined | 19:00 |
| → humanBird joined | 19:00 |
| ← durham left | 19:00 |
| ← TomyWork left | 19:03 |
| ← LuKaRo left | 19:05 |
| → durham joined | 19:07 |
| ← durham left | 19:07 |
| ← FinnElija left | 19:07 |
| → durham joined | 19:07 |
| ← durham left | 19:07 |
| ← jalil left | 19:08 |
| → jalil joined | 19:09 |
| → jstein joined | 19:10 |
| → FinnElija joined | 19:10 |
| ← c41e3a left | 19:12 |
| ← stewie925 left | 19:14 |
| → stewie925 joined | 19:15 |
| → c41e3a joined | 19:15 |
| → Jdeep joined | 19:16 |
|
Jdeep
| guys. | 19:16 |
|
| is there a matrix bridge for this server? | 19:17 |
| ← great_taste left | 19:17 |
| → LuKaRo joined | 19:18 |
|
ikke
| you should ask in #libera | 19:18 |
|
Jdeep
| ok | 19:19 |
| ← xx left | 19:20 |
| ← hseg left | 19:22 |
| → hseg joined | 19:22 |
| ← Rashad left | 19:23 |
| ← ChmEarl left | 19:30 |
| → ChmEarl joined | 19:30 |
| → xx joined | 19:31 |
| → pycurious joined | 19:34 |
| → toma joined | 19:36 |
| ← toma left | 19:36 |
| → toma joined | 19:37 |
| → jazzy joined | 19:38 |
| ← Jdeep left | 19:40 |
| ← jalil left | 19:41 |
| ← vysn left | 19:45 |
| ← imp left | 19:48 |
| ← rgrinberg left | 19:49 |
| ← c41e3a left | 19:52 |
| ← crashrep left | 19:54 |
| → crashrep joined | 19:55 |
| ← pyeveryt_ left | 19:56 |
| ← ChmEarl left | 19:56 |
| → ChmEarl joined | 19:56 |
| → feriman joined | 19:57 |
| → jalil joined | 19:58 |
| → great_taste joined | 20:00 |
| → vdamewood joined | 20:01 |
| → pyeveryt_ joined | 20:02 |
| → CarloWood joined | 20:04 |
|
CarloWood
| Hi. I have a branch called 'libcwd' and a branch called 'lost_mouse_button_release_event'. | 20:04 |
|
| I am working on the branch 'lost_mouse_button_release_event' without doing commits. | 20:05 |
| → voltron joined | 20:05 |
|
CarloWood
| Every 2 minutes I want to compile and test, but that compile must be done on a merge of what I have in the current directory and branch 'libcwd'. | 20:05 |
|
| What is to best way to do this? | 20:06 |
|
tsdh
| CarloWood: git stash && git merge libcwd && git stash pop, or can't you for some unknown reasen not simply merge libcwd? | 20:07 |
| ← ferdna left | 20:08 |
| ← k8yun left | 20:09 |
| → vinleod joined | 20:09 |
|
CarloWood
| I'll have to do a pull request to upstream for 'lost_mouse_button_release_event' (they requested a MCVE). I can't merge that with the libcwd branch because then they can't compile it anymore. | 20:10 |
| ← vicecea left | 20:10 |
| → vicecea joined | 20:11 |
|
CarloWood
| I suppose I can create a new branch that is a merge and work there.. and then later do a cherrypick in 'lost_mouse_button_release_event' | 20:11 |
| ← vdamewood left | 20:12 |
|
tsdh
| CarloWood: Yes, sounds about right. I don't fully understand why you need the changes in the libcwd branch while upstream won't be able to compile if that's merged. But probably I don't actually want to know the details. ;-) | 20:13 |
| ← clime left | 20:14 |
| ← humanface left | 20:14 |
|
CarloWood
| I need them to get extremely detailed debug output, almost line by line, of what is happening. | 20:14 |
| ← jalil left | 20:15 |
|
CarloWood
| They can't compile/use it because they won't want to take the time to setup the environment needed to make libcwd work (my debugging library). | 20:15 |
| → viridian joined | 20:15 |
|
tsdh
| Ah, I see. | 20:16 |
|
CarloWood
| (ie, download, configure and install libcwd - create an environment with an extra git submodule and change their CMakefile's to get it to work) | 20:16 |
| → junebug joined | 20:17 |
| → rgrinberg joined | 20:17 |
|
imMute
| no idea where that came from, but pls ignore | 20:19 |
|
| oh, it was irssi/tmux making Thuryn's comment look like mine >.< | 20:19 |
|
CarloWood
| I didn't see anything | 20:20 |
|
imMute
| ugh. just irssi/tmux fucking with me. | 20:20 |
| ← voltron left | 20:26 |
| ← hseg left | 20:28 |
| → hseg joined | 20:28 |
| ← fikran left | 20:29 |
| → fikran joined | 20:32 |
| ← viridian left | 20:33 |
| → viridian joined | 20:33 |
| → yagamilito joined | 20:35 |
| ← yagamilito left | 20:35 |
| → yagamilito joined | 20:35 |
| ← hseg left | 20:37 |
| → hseg joined | 20:40 |
| ← masoudd left | 20:40 |
| ← rgrinberg left | 20:43 |
| → zeenk joined | 20:51 |
| ← pycurious left | 20:55 |
| ← TheCatBehemoth left | 20:56 |
| ← hseg left | 20:56 |
|
ecraven
| rewt: thanks! | 20:57 |
| → OnkelTem joined | 20:58 |
| → m0viefreak joined | 20:59 |
| ← crashrep left | 21:01 |
| ← stewie925 left | 21:03 |
| ← ___nick___ left | 21:04 |
| → pycurious joined | 21:07 |
| → Shashin joined | 21:08 |
| → rgrinberg joined | 21:08 |
| ← viridian left | 21:09 |
| ← toma left | 21:11 |
| ← GNUmoon left | 21:12 |
| → dsrt^ joined | 21:12 |
| → Tangent-Man joined | 21:16 |
| ← humanBird left | 21:17 |
| ← SuperLag left | 21:20 |
| → SuperLag joined | 21:22 |
|
OnlineCop
| My repo contains three submodules. One submodule's HEAD points to main, and the other two submodules' HEADs point to dev. When I'm in my main repo and change branches, it's often changing the HEAD of those submodules. Is there a setting to disable that (so I have to change the HEAD in those submodules manually)? | 21:22 |
| ← pycurious left | 21:23 |
| → pycurious joined | 21:23 |
| ← pycurious left | 21:28 |
| → zacts joined | 21:28 |
|
zacts
| hi what's the best book for learning git for a complete beginner to git? | 21:29 |
|
ikke
| !book | 21:29 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: https://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable | 21:29 |
|
zacts
| thanks | 21:29 |
| → stewie925 joined | 21:31 |
| ← cliluw left | 21:31 |
| ← otisolsen70 left | 21:33 |
| → cliluw joined | 21:34 |
| → causasui joined | 21:37 |
|
stewie925
| hey guys, whats a clean way to move files within my git repo (local) to a new folder, then PUSH it to github? | 21:37 |
|
ikke
| git mv src dst; git commit; git push? | 21:38 |
|
stewie925
| I wonder if git push process would be able to figure it out that I did a git mv locally and implement the same change ? | 21:38 |
|
ikke
| stewie925: git push does not care | 21:38 |
|
stewie925
| ikke: oh nice, just as I thought | 21:38 |
|
ikke
| stewie925: git is not a file sync program | 21:39 |
|
| you commit the changes, git push just pushes that commit | 21:39 |
|
| you can even just use mv, git rm --cached and git add | 21:39 |
|
stewie925
| ikke: "git is not a file sync program - you commit the changes, git push just pushes that commit". Well said. | 21:39 |
|
| ugh Ive been out of a job for too long and forgot my git commands | 21:40 |
| → pycurious joined | 21:41 |
| ← cliluw left | 21:43 |
| → cliluw joined | 21:44 |
|
stewie925
| yay, EZ PZ! Done-zo! | 21:47 |
| → yashraj466 joined | 21:48 |
| ← OnkelTem left | 21:49 |
| ← kilobyte1 left | 21:53 |
| → hrehf joined | 21:54 |
| → kilobyte_ch joined | 21:54 |
| ← hrehf left | 21:54 |
| → hrehf joined | 21:54 |
| ← hbautista left | 21:55 |
| → hbautista joined | 21:56 |
| → dmc joined | 21:57 |
|
hrehf
| Hmm, I have a bunch of technically unrelated repos, where someone decided to cold start every project year. I'd like to restore a continuous history in a single repo. Can I just force pull unrelated histories to achieve that and rebase? or do I need some script that copies each revision over? | 21:57 |
|
| (Files didn't change much between project years) | 21:57 |
|
ikke
| hrehf: look at man git replace --graft | 21:58 |
|
gitinfo
| hrehf: the git-replace manpage is available at https://gitirc.eu/git-replace.html | 21:58 |
|
hrehf
| ikke: do I understand right, I just replace --graft each root commit onto the last commit of previous year? | 22:02 |
|
ikke
| hendry: yes, that would be the idea | 22:03 |
|
hrehf
| Cool, gonna try that, thanks! | 22:03 |
| ← zacts left | 22:03 |
| ← pyeveryt_ left | 22:03 |
|
ikke
| after that, you use something like git filter-repo (third-party tool) to make it permanent | 22:03 |
| → duxco joined | 22:03 |
| ← duxsco left | 22:05 |
| duxco → duxsco | 22:05 |
| → GNUmoon joined | 22:06 |
|
hrehf
| ikke: hmm, why is it not permanent? Shouldn't it be part of a named branch already? Maybe I'm not getting what replacing refs means yet | 22:06 |
|
ikke
| hrehf: it relies on the replace refs being pushed and fetched, which is not being done by default | 22:07 |
| ← Shashin left | 22:07 |
| → dirigible joined | 22:07 |
| ← dmc left | 22:08 |
| → Shashin joined | 22:09 |
| ← Shashin left | 22:09 |
| → Shashin joined | 22:10 |
| ← dirigible_ left | 22:10 |
| → dmc joined | 22:11 |
| ← Shashin left | 22:11 |
| ← Deknos left | 22:12 |
| ← bkircher left | 22:13 |
| → The_Blode joined | 22:15 |
| ← The_Blod- left | 22:16 |
| ← stewie925 left | 22:19 |
| ← hrehf left | 22:19 |
| → wonty joined | 22:19 |
| → hrehf joined | 22:20 |
| ← worky left | 22:22 |
| ← duxsco left | 22:26 |
| ← cliluw left | 22:26 |
| ← junebug left | 22:28 |
| → zacts joined | 22:30 |
| ← yagamilito left | 22:32 |
| → stewie925 joined | 22:34 |
| ← ikwyl6 left | 22:37 |
| → ikwyl6 joined | 22:37 |
|
hrehf
| ikke: thanks again, that seems to work! I just run it through git-filter-repo --force, hope that's doing its job. Repo looked okay before as well, where would I expect breaking without filter-repo? | 22:38 |
| → cliluw joined | 22:38 |
| ← fikran left | 22:39 |
| ← causasui left | 22:40 |
| ← odoood left | 22:41 |
| → fikran joined | 22:41 |
| ← pycurious left | 22:43 |
| → pycurious joined | 22:45 |
| ← feriman left | 22:47 |
| ← rgrinberg left | 22:47 |
| ← pycurious left | 22:50 |
| → pycurious joined | 22:51 |
| → causasui joined | 22:52 |
| ← great_taste left | 22:54 |
| → causa_sui joined | 22:54 |
| → foul_owl joined | 22:55 |
| ← pycurious left | 22:55 |
| → pycurious joined | 22:57 |
| ← ash_worksi left | 22:57 |
| ← causa_sui left | 22:59 |
| ← pycurious left | 23:01 |
| → rev1nchn joined | 23:02 |
| → pycurious joined | 23:03 |
| ← pizdets left | 23:03 |
| → pizdets_ joined | 23:04 |
| ← mat001 left | 23:05 |
| ← foul_owl left | 23:06 |
| ← zeenk left | 23:06 |
| ← rev1nchn left | 23:07 |
| ← kenanmarasli left | 23:08 |
| → yagamilito joined | 23:13 |
| ← lechner left | 23:13 |
| → cornfeedhobo joined | 23:18 |
| → foul_owl joined | 23:21 |
|
cornfeedhobo
| question about submodules. i'm finding that sync --recursive does not pull submodule's submodules (in this case the nested submodule points to a relative path and I have no control over this) | 23:23 |
|
| however, if i use update --init --recursive, it does pull the nested submodules | 23:23 |
| ← yashraj466 left | 23:23 |
| → Xenguy joined | 23:24 |
|
cornfeedhobo
| what is the correct way to populate the submodules without making the tree change references | 23:24 |
| → paddymahoney joined | 23:25 |
|
CarloWood
| What do mean 'change references'? | 23:26 |
| → mat001 joined | 23:26 |
| → odoood joined | 23:27 |
|
cornfeedhobo
| well, these submodules are cloned at a specific commit, right? and that is maintained somewhere, right? | 23:28 |
|
CarloWood
| Yes, as commit in the module they are contained in. | 23:28 |
|
| Can you reproduce the sync case now? | 23:29 |
|
cornfeedhobo
| and so i would think that `update` would update that reference, no? | 23:29 |
|
CarloWood
| That seems unlikely :/ | 23:29 |
|
cornfeedhobo
| hmm, this brings up the question then. how do you update that reference to a newer commit? | 23:30 |
|
CarloWood
| git add subdirectory | 23:30 |
| → causa_sui joined | 23:30 |
|
CarloWood
| and then commit that | 23:30 |
|
| If you type: git submodule status | 23:31 |
|
| it prints all the refs | 23:31 |
|
| so you can easily check if they change when you do an --init --recursive or whatever. | 23:31 |
|
| And I suspect that if your sync isn't working, you'll have some prefixed with a '-' | 23:31 |
|
cornfeedhobo
| that is correct. what does the prefix mean? | 23:32 |
|
CarloWood
| I knew that, in a distant past :/ | 23:32 |
|
| I have an SO answer about it even, somewhere | 23:32 |
| → jumpcutking joined | 23:32 |
|
CarloWood
| From the top of my head it means that the submodule was never checked out (directory is empty) and you need to --init it | 23:33 |
| ← Kilroy left | 23:33 |
|
cornfeedhobo
| and so am i reading betweens the lines correctly that git expects one to cd to the submodule path and run `git pull` before running `git submodule add`? is that how one would update the ref intentionally? | 23:34 |
|
CarloWood
| I use a system myself that DOES refresh submodules to the HEAD of their branch, but that required hard work from my end :P | 23:34 |
| ← causa_sui left | 23:34 |
|
CarloWood
| Normally that should never happen - it doesn't even HAVE a branch - just a hash. How could it update that to a newer one? | 23:35 |
|
cornfeedhobo
| i don't follow | 23:36 |
|
| the directory is a full blown repo | 23:37 |
|
CarloWood
| git submodule add is to add a directory to your source tree in which a submodule is checked out. That is hardly something you do often. | 23:37 |
|
cornfeedhobo
| okay | 23:37 |
|
| so back to the question of how to intentionally update a submodule ref | 23:37 |
|
CarloWood
| Where 'update' means? | 23:37 |
|
| submodules aren't as user friendly as you think, I think... I seriously wrote a whole system around them to make them user friendly (to the deveper - not the occasional person that checks out a repo and then compiles it) | 23:38 |
|
cornfeedhobo
| Dependency bar releases a new tag and repository foo wants to update it's submodule to use this newer release of bar | 23:38 |
|
CarloWood
| developer* | 23:39 |
|
cornfeedhobo
| If you want to check for new work in a submodule, you can go into the directory and run git fetch and git merge the upstream branch to update the local code. | 23:39 |
|
| nvm found my answer | 23:39 |
|
CarloWood
| Maybe you want to try my system :) | 23:39 |
|
cornfeedhobo
| interesting `git submodule update --remote` | 23:40 |
|
CarloWood
| https://github.com/CarloWood/cwm4 | 23:40 |
|
| Still mentions autoconf, but I use cmake now - so it's mainly for that now (as in being maintained) | 23:41 |
| → causa_sui joined | 23:41 |
|
CarloWood
| What I do is run my script (./autogen.sh) which ... automagically fixes EVERYTHING. | 23:43 |
|
| :) | 23:43 |
|
| I forgot most of the rest - it Just Works(tm). | 23:43 |
|
cornfeedhobo
| lol. na this gave me the answers i needed. the subcommands are just poorly named, at least in my opinion | 23:43 |
|
CarloWood
| But among others, it adds a branch name to submodules and keeps them up to date (when I run that script) | 23:44 |
| ← causa_sui left | 23:45 |
|
CarloWood
| https://gyazo.com/84d606b3c731e59593c3ab23f5a0e799 | 23:45 |
| ← madewokherd left | 23:46 |
|
CarloWood
| It even managed to completely not fuck up the work that I'm in the middle of doing ;) | 23:48 |
| → great_taste joined | 23:49 |
| ← m0viefreak left | 23:50 |
| ← jstein left | 23:51 |
| → lechner joined | 23:52 |