| 2022-04-22 |
| ← causa_sui left | 00:01 |
| ← Sulky__ left | 00:02 |
| ← XV8 left | 00:03 |
| → Sulky__ joined | 00:05 |
| ← williewillus left | 00:08 |
| ← Sasazuka left | 00:09 |
| ← DNH left | 00:10 |
| ← fling left | 00:12 |
| → williewillus1 joined | 00:12 |
| ← williewillus1 left | 00:13 |
| → fling joined | 00:14 |
| → DNH joined | 00:16 |
| ← littlebobeep left | 00:17 |
| ← DNH left | 00:17 |
| → DNH joined | 00:18 |
| ← cbreak left | 00:18 |
| → caveman joined | 00:20 |
| ← caveman left | 00:21 |
| → cbreak joined | 00:21 |
| ← rgrinberg left | 00:22 |
| ← DNH left | 00:23 |
| ← vicfred left | 00:23 |
| ← Knowsin left | 00:28 |
| ← gurkenglas left | 00:28 |
| ← nyah left | 00:30 |
| ← dka left | 00:34 |
| → dka joined | 00:35 |
| ← yte3 left | 00:36 |
| → kaiseisei joined | 00:39 |
| ← blaklistd left | 00:50 |
| ← mannequin left | 01:06 |
| → vysn joined | 01:14 |
| ← duxsco left | 01:14 |
| ← fling left | 01:16 |
| → fling_ joined | 01:16 |
| fling_ → fling | 01:23 |
| ← zebrag left | 01:23 |
| ← analoq left | 01:25 |
| → analoq joined | 01:27 |
| ← pulse left | 01:28 |
| ← Murr left | 01:30 |
| → Murr joined | 01:31 |
| ← stutz left | 01:32 |
| → mgedmin joined | 01:33 |
| → stutz joined | 01:39 |
| ← stutz left | 01:39 |
| → stutz joined | 01:39 |
| → sa0 joined | 01:50 |
| → Guest69 joined | 02:05 |
| → Jong joined | 02:05 |
| → hbautista joined | 02:06 |
| → littlebobeep joined | 02:17 |
| ← Sulky__ left | 02:17 |
| ← fling left | 02:20 |
| → fling joined | 02:20 |
| ← sa0 left | 02:22 |
| → nate1 joined | 02:23 |
| ← Guest69 left | 02:24 |
| → mitrokov joined | 02:27 |
| → hbautista_ joined | 02:27 |
| ← hbautista left | 02:30 |
| ← nate1 left | 02:30 |
| ← caverton left | 02:36 |
| → caverton joined | 02:36 |
| ← duderonomy left | 02:38 |
| ← beencubed left | 02:46 |
| → TSH joined | 02:50 |
| → haasn joined | 03:01 |
| → onizu joined | 03:01 |
| ← littlebobeep left | 03:06 |
| → littlebobeep joined | 03:09 |
| ← cliluw left | 03:11 |
| ← fling left | 03:12 |
| ← littlebobeep left | 03:14 |
| → GNUmoon joined | 03:20 |
| → cliluw joined | 03:24 |
| ← cliluw left | 03:28 |
| → kaartic joined | 03:34 |
| → pulse joined | 03:35 |
| → littlebobeep joined | 03:40 |
| ← tyson2 left | 03:43 |
| ← kaartic left | 03:49 |
| ← jiffe left | 03:49 |
| → kaartic joined | 03:50 |
| ← pulse left | 03:50 |
| ← mitrokov left | 03:52 |
| ← bloody left | 03:57 |
| → mitrokov joined | 04:05 |
| → williewillus5 joined | 04:06 |
| williewillus5 → williewillus | 04:08 |
| ← mitrokov left | 04:09 |
| ← skapata left | 04:11 |
| → skapata joined | 04:11 |
| ← skapata left | 04:11 |
| → skapata joined | 04:11 |
| → mitrokov joined | 04:15 |
| ← mitrokov left | 04:16 |
| → mitrokov joined | 04:17 |
| → sa0 joined | 04:20 |
| ← littlebobeep left | 04:21 |
| → littlebobeep joined | 04:21 |
| ← riposte left | 04:22 |
| → riposte joined | 04:22 |
| ← kaartic left | 04:27 |
| ← TSH left | 04:30 |
| → Guest560 joined | 04:33 |
| ← GNUmoon left | 04:34 |
| → GNUmoon joined | 04:35 |
| ← Guest560 left | 04:36 |
| → kaartic joined | 04:38 |
| ← kaartic left | 04:47 |
| ← hololeap left | 04:51 |
| ← sa0 left | 04:52 |
| ← gast0n left | 04:53 |
| ← adanwan left | 04:54 |
| → adanwan_ joined | 04:54 |
| → hololeap joined | 04:57 |
| → madewokherd` joined | 04:59 |
| ← cbreak left | 05:01 |
| ← madewokherd left | 05:02 |
| → cbreak joined | 05:07 |
| → kaartic joined | 05:15 |
|
ikke
| .version | 05:16 |
| gitinfo changed the topic to: Welcome to #git, we like graphs | Current stable version: 2.36.0 | First visit? https://gitirc.eu | This channel is logged: https://gitirc.eu/log | 05:16 |
| → YuGiOhJCJ joined | 05:17 |
| → fling joined | 05:24 |
| → saroy joined | 05:31 |
| ← mrME2 left | 05:35 |
| → mrME2 joined | 05:36 |
| → gurkenglas joined | 05:36 |
| ← great_taste left | 05:37 |
| ← mrME2 left | 05:43 |
| ← kaartic left | 05:45 |
| → mrME2 joined | 05:45 |
| ← Murr left | 05:46 |
| → Murr joined | 05:46 |
| → kshockey joined | 05:47 |
| ← kshockey left | 05:47 |
| → kshockey joined | 05:47 |
| → kaartic joined | 05:51 |
| ← kaartic left | 05:57 |
| → kaartic joined | 05:57 |
| → coot joined | 05:58 |
| ← makara1 left | 06:04 |
| ← makara left | 06:04 |
| → makara_ joined | 06:04 |
| → makara joined | 06:05 |
| → w_lehinsun joined | 06:06 |
| ← hbautista_ left | 06:06 |
| ← thiago left | 06:08 |
| → jusski joined | 06:08 |
| ← Xaldafax left | 06:10 |
| ← kaartic left | 06:15 |
| ← fling left | 06:17 |
| → fling joined | 06:19 |
| → srinidhi joined | 06:23 |
| → kaartic joined | 06:24 |
| ← w_lehinsun left | 06:26 |
| ← jusski left | 06:29 |
| → jinsun__ joined | 06:34 |
| ← jinsun left | 06:38 |
| → EvilDMP joined | 06:41 |
| ← jensen left | 06:45 |
| → mihael joined | 06:48 |
| ← mihael left | 06:51 |
| ← xuxx left | 06:51 |
| ← llh left | 06:52 |
| → mihael joined | 06:52 |
| → lelux joined | 06:53 |
| → llh joined | 06:54 |
| ← mitrokov left | 06:54 |
| ← vdamewood left | 07:00 |
| ← Noisytoot left | 07:02 |
| ← mihael left | 07:03 |
| → vdamewood joined | 07:04 |
| ← kaartic left | 07:04 |
| → mitrokov joined | 07:08 |
| → Noisytoot joined | 07:08 |
| → daru joined | 07:09 |
| → rfuentess joined | 07:09 |
| ← jinsun__ left | 07:12 |
| → jinsun joined | 07:13 |
| → iomari891 joined | 07:14 |
| ← olbat__ left | 07:18 |
| → olbat joined | 07:18 |
| ← olbat left | 07:18 |
| → olbat joined | 07:18 |
| ← Noisytoot left | 07:20 |
| ← fling left | 07:21 |
| → fling joined | 07:22 |
| → palasso joined | 07:24 |
| ← Masklin left | 07:28 |
| → zeenk joined | 07:29 |
| ← The_Blode left | 07:31 |
| → The_Blode joined | 07:34 |
| → Gaboradon joined | 07:35 |
| ← hololeap left | 07:36 |
| → feriman joined | 07:41 |
| → jazzy2 joined | 07:44 |
| → carl-- joined | 07:45 |
| jazzy → Guest1390 | 07:46 |
| jazzy2 → jazzy | 07:46 |
| ← Guest1390 left | 07:47 |
| → carl--- joined | 07:53 |
|
Kartagis
| I have pushed my branch, but my colleague's branch happened to be merged before I did, hence conflict. How do I handle that? | 07:54 |
| ← carl-- left | 07:55 |
| ← coot left | 07:56 |
|
ikke
| Kartagis: rebase your branch, force push | 07:57 |
| ← carl--- left | 07:57 |
|
Kartagis
| with or without -i* | 07:57 |
|
| s/*/? | 07:58 |
|
ikke
| No need to be interactive | 07:58 |
|
| git rebase origin/master for example would work | 07:58 |
|
| assuming you have your branch checked out | 07:58 |
|
Kartagis
| okay | 07:59 |
| ← keypusher left | 08:00 |
|
Kartagis
| there are still conflicts | 08:01 |
|
ikke
| Did you fetch from origin before you did that? | 08:01 |
| ← zeenk left | 08:03 |
|
Kartagis
| I just did, now working out issues in composer.json | 08:06 |
| ← Gustavo6046 left | 08:06 |
| → adlternative joined | 08:07 |
| → bob518 joined | 08:07 |
| → duderonomy joined | 08:09 |
| ← vysn left | 08:09 |
| ← adlternative left | 08:10 |
| → vladoski joined | 08:11 |
| → Masklin joined | 08:12 |
| → keypusher joined | 08:12 |
| → kaartic joined | 08:14 |
| → otisolsen70 joined | 08:20 |
| ← GNUmoon left | 08:22 |
| ← fling left | 08:26 |
| → duxsco joined | 08:27 |
| → fling joined | 08:28 |
| → GNUmoon joined | 08:30 |
| → dionysus69 joined | 08:30 |
| ← madewokherd` left | 08:30 |
| → einar joined | 08:30 |
|
einar
| Why is the order of commits in `git log` different from `git rebase --interactive`, and is there a config option to make them act consistently? | 08:32 |
| → dharrigan joined | 08:32 |
|
ikke
| git log shows the newest on top, so that it's the first you see when you do git log, and you scroll back in history | 08:33 |
|
| git rebase -i shows the commits in order that they are applied (so oldest first, newer later) | 08:34 |
|
| as far as I know, you cannot change the order of the rebase todo list | 08:35 |
|
| You can do git log --reverse, but most of the time, that's not what you want | 08:36 |
| → enkeyz joined | 08:38 |
| ← xkuru left | 08:43 |
| → MajorBiscuit joined | 08:45 |
|
einar
| I just like it to be consistent. | 08:48 |
| ← m1dnight left | 08:49 |
|
ikke
| It doesn't make sense in these cases | 08:50 |
| → m1dnight joined | 08:50 |
| → sa0 joined | 08:51 |
|
ikke
| Having the todo list in the reverse order would be a lot more confusing when trying to use it | 08:51 |
| ← magic_ninja left | 08:52 |
| ← bob518 left | 08:55 |
| ← Thanatermesis left | 08:58 |
| → magic_ninja joined | 09:04 |
| → nyah joined | 09:06 |
| ← ikke left | 09:08 |
| → Sulky joined | 09:08 |
| ← sa0 left | 09:08 |
| → sa0 joined | 09:08 |
| → ikke joined | 09:09 |
| ← vladoski left | 09:11 |
| → zer0bitz joined | 09:11 |
| → distantsail joined | 09:12 |
| → kenan-office joined | 09:13 |
| ← AbleBacon left | 09:17 |
| ← jbg left | 09:18 |
| → jbg joined | 09:20 |
| → eroux joined | 09:24 |
| ← duderonomy left | 09:29 |
| ← wonko-the-sane left | 09:30 |
| ← fling left | 09:31 |
| → fling joined | 09:32 |
| → wonko-the-sane joined | 09:32 |
| ← feriman left | 09:35 |
| → feriman joined | 09:37 |
| → hxztnxt joined | 09:38 |
| ← hxztnxt left | 09:38 |
| → drogas joined | 09:54 |
| → zebrag joined | 09:58 |
| ← rudi_s left | 10:04 |
| → rudi_s joined | 10:05 |
| → tealtabbycat joined | 10:09 |
| → wakeup joined | 10:10 |
| → cmn joined | 10:13 |
| ← wonko-the-sane left | 10:15 |
| ← littlebobeep left | 10:18 |
| ← tealtabbycat left | 10:19 |
| → benni joined | 10:21 |
| ← eroux left | 10:23 |
| → knallmaus joined | 10:26 |
|
furrymcgee
| einar: there is config core.editor | 10:27 |
| ← haskl[error] left | 10:30 |
| → vladoski joined | 10:31 |
| → haskl joined | 10:33 |
| → Noisytoot joined | 10:33 |
| ← fling left | 10:35 |
| ← MiguelX413 left | 10:35 |
| → fling joined | 10:36 |
| ← drogas left | 10:36 |
| → MiguelX413 joined | 10:36 |
| → Lord_of_Life_ joined | 10:37 |
| ← Lord_of_Life left | 10:38 |
| ← Noisytoot left | 10:38 |
| → coot joined | 10:39 |
| Lord_of_Life_ → Lord_of_Life | 10:40 |
| ← wakeup left | 10:40 |
| → drogas joined | 10:41 |
| ← kaiseisei left | 10:42 |
| → TomyWork joined | 10:46 |
| → eroux joined | 10:48 |
| → wakeup joined | 10:49 |
| ← wakeup left | 10:50 |
| → Noisytoot joined | 10:57 |
| ← vishal left | 11:00 |
| ← chenqisu1 left | 11:01 |
| → vishal joined | 11:04 |
| → john_johnk joined | 11:04 |
| ← duxsco left | 11:05 |
| → gas51627 joined | 11:07 |
| → henko joined | 11:10 |
| ← john_johnk left | 11:18 |
| → carl--- joined | 11:18 |
|
einar
| okay, I see. Thank you both. | 11:20 |
| ← carl--- left | 11:25 |
| ← henko left | 11:30 |
| → coaxing joined | 11:33 |
| ← fling left | 11:37 |
| ← eroux left | 11:37 |
| ← drogas left | 11:40 |
| → fling joined | 11:40 |
| → wakeup joined | 11:45 |
| → tyson2 joined | 11:52 |
| ← zer0bitz left | 11:56 |
| ← jazzy left | 11:59 |
| ← Xenguy left | 12:02 |
| → vitali64 joined | 12:04 |
| → john_johnk joined | 12:04 |
| → ibrahim joined | 12:06 |
| → pdc joined | 12:06 |
| → pulse joined | 12:06 |
| ← baffodoro left | 12:09 |
| → mannequin joined | 12:09 |
| → mexen joined | 12:11 |
| ← pdc left | 12:14 |
| → pdc joined | 12:14 |
| ← pdc left | 12:16 |
| → Visne_ joined | 12:36 |
| ← Visne left | 12:37 |
| Visne_ → Visne | 12:37 |
| → gh34 joined | 12:40 |
| ← fling left | 12:41 |
| → Guest78 joined | 12:41 |
| → fling joined | 12:42 |
| ← Guest78 left | 12:44 |
| ← kaartic left | 12:44 |
| → kaartic joined | 12:44 |
| ← perrierjouet left | 12:50 |
| → bloody joined | 12:51 |
| ← coaxing left | 12:52 |
| → coaxing joined | 12:54 |
| ← Ram-Z left | 12:55 |
| ← coaxing left | 12:59 |
| ← benni left | 13:01 |
| → tulpa_ joined | 13:01 |
| ← nyah left | 13:02 |
| → [twisti] joined | 13:03 |
| → stef204 joined | 13:03 |
|
[twisti]
| i was reading something and saw a mention of 'tig' but at first glance, that just looks like the regular git cli. anyone know what the added value is ? | 13:04 |
| → nyah joined | 13:04 |
|
osse
| if it looks like regular git cli then you might have spelled it backwards | 13:05 |
| → Rogerspianocat joined | 13:05 |
| ← funhouse left | 13:06 |
| → coaxing joined | 13:07 |
|
osse
| that was a joke | 13:08 |
|
[twisti]
| i figured | 13:08 |
| → szkl joined | 13:09 |
|
osse
| I don't use it much myself, but I find myself running git log -p, then realizing that's too much and run git log --stat, then decided I want to take a closer look at a commit and run git show foo in a separate terminal. it's a mess. it's a mess I believe tig can help me with, but I haven't gotten around to learning it yet | 13:09 |
|
| I think much of the added benefit is just running 'tig' and then find what you want from there | 13:11 |
| → jiffe joined | 13:11 |
|
osse
| looking at 'tig --help' I realize how similar to git it looks :p | 13:11 |
| ← nyah left | 13:11 |
| → fling_ joined | 13:12 |
| ← fling left | 13:13 |
| → zer0bitz joined | 13:13 |
| → nyah joined | 13:13 |
| ← vdamewood left | 13:16 |
|
[twisti]
| oh i see now, its interactive | 13:16 |
| ← wakeup left | 13:17 |
| ← coot left | 13:17 |
| → wakeup joined | 13:17 |
|
[twisti]
| that was not clear to me at all from what i read | 13:18 |
| fling_ → fling | 13:18 |
| → PaowZ joined | 13:24 |
| ← coaxing left | 13:24 |
| → coaxing joined | 13:25 |
| → coot joined | 13:27 |
| ← stef204 left | 13:28 |
| ← wakeup left | 13:32 |
|
PaowZ
| Hi there ! I'm having an issue cloning a repo. I can connect to my git server which tends to prove my ssh key is correct (on windows, c:\users\.ssh\id_rsa) and I can clone under WSL. The error is the usual "fatal: Could not read from remote repository".. any clue ? | 13:33 |
| ← nyah left | 13:33 |
| → wakeup joined | 13:34 |
|
ikke
| path to the repo is wrong or no permissions to read the repo | 13:34 |
|
| or something like that | 13:34 |
| → rgrinberg joined | 13:34 |
| → Ram-Z joined | 13:36 |
|
PaowZ
| ikke: I figured this out.. needed PubkeyAcceptedKeyTypes +ssh-rsa | 13:37 |
|
| in /config | 13:37 |
| ← zumba_addict left | 13:38 |
| ← rgrinberg left | 13:39 |
| ← fling left | 13:45 |
| → fling joined | 13:46 |
| → Xaldafax joined | 13:47 |
| → duxsco joined | 13:57 |
| → thiago joined | 14:00 |
| → vysn joined | 14:02 |
| ← kenan-office left | 14:03 |
| BlessJah_ → BlessJah | 14:04 |
| → lgc joined | 14:05 |
| ← bkircher left | 14:07 |
| → nyah joined | 14:07 |
| ← wakeup left | 14:08 |
| ← lgc left | 14:08 |
| → jim87 joined | 14:10 |
| ← jim87 left | 14:10 |
| → rgrinberg joined | 14:11 |
| → kaiseisei joined | 14:11 |
| ← kaartic left | 14:16 |
| → kaartic joined | 14:17 |
| ← off^ left | 14:18 |
| ← YuGiOhJCJ left | 14:19 |
| ← john_johnk left | 14:23 |
| → john_johnk joined | 14:23 |
| → wakeup joined | 14:25 |
| ← tyson2 left | 14:25 |
| ← Sulky left | 14:27 |
| → gooble_gobble joined | 14:30 |
|
gooble_gobble
| hey folks, im having some trouble understanding git. I want to be able to get the commit where my branch started. But I cannot seem to find a solution for a situation where i have merges from master into my feature branch | 14:31 |
|
| can anyone help meout | 14:31 |
|
ikke
| gooble_gobble: this is not something that git tracks | 14:32 |
|
j416
| except for the reflog | 14:32 |
|
ikke
| so there is no straight-forward and reliable way to get this | 14:32 |
|
| right, but that assumes you created the branch locally and not longer than 90 days ago | 14:32 |
|
j416
| nod | 14:33 |
|
gooble_gobble
| ikke, so the reason for this was I wanted to get a list of all the files that changed in the branch. If a certain file changed, it would trigger a build. | 14:33 |
|
| But your understanding seems consistent with everything i've googled | 14:34 |
|
ikke
| gooble_gobble: if you know what branch it was created from, this is trivial | 14:34 |
|
gooble_gobble
| ikke, i dont follow | 14:34 |
|
ikke
| git diff --name-only master...branch | 14:34 |
|
gooble_gobble
| right, but if I merge master into branch, then that gets all screwed up | 14:35 |
|
| no? | 14:35 |
|
| testing, it looks like it does find changed files that only changed on my branch | 14:37 |
|
| https://pastebin.com/V8jaunqm | 14:38 |
|
| ikke, any idea how it does this? I'd imagine it must then know which commits apply to the branch? | 14:38 |
|
thiago
| when you merge, it's exactly the same as deleting the branch and creating it again from that point | 14:40 |
|
| that is to say, the comparison above compares since the last merge-base | 14:41 |
| ← coot left | 14:43 |
|
gooble_gobble
| hmmm | 14:43 |
|
| they only "solution/hack" i've seen is to tag the commit when a branch is created | 14:44 |
|
| im assuming there is no feature i can turn on and no plan to add this feature any time soon | 14:44 |
|
j416
| rebase? | 14:44 |
|
| instead of merge | 14:44 |
| ← kaartic left | 14:45 |
| → kaartic joined | 14:46 |
| → nomn joined | 14:47 |
|
nomn
| i accidentally typed `git checkout filename` when i meant branch name instead of file. what does that do? | 14:49 |
|
ikke
| it would overwrite the file with whatever is in the index (staged) | 14:49 |
| ← fling left | 14:49 |
| → gast0n joined | 14:49 |
|
thiago
| git checkout will have told you what it did | 14:49 |
|
| $ git checkout Makefile | 14:50 |
|
| Updated 0 paths from the index | 14:50 |
|
nomn
| Updated 1 path from the index | 14:50 |
|
| the file was staged | 14:50 |
|
| the editions are lost | 14:51 |
|
| or, i can't see thehm | 14:51 |
| → fling joined | 14:53 |
| ← Ram-Z left | 14:57 |
|
| bookworm points at switch | 14:58 |
|
bookworm
| exactly because of that ;) | 14:58 |
|
nomn
| yup got it lol | 14:59 |
|
| rough | 14:59 |
| ← Shentino left | 14:59 |
| → Shentino joined | 15:01 |
|
nomn
| `git remove -v` instead of `remote -v` now... i should lay off the keyboard for a while | 15:04 |
| → vdamewood joined | 15:06 |
| ← vladoski left | 15:08 |
| ← mrME2 left | 15:10 |
| → madewokherd joined | 15:10 |
| ← kaiseisei left | 15:10 |
| → mrME2 joined | 15:11 |
| → Ram-Z joined | 15:12 |
| ← PaowZ left | 15:15 |
| ← mrME2 left | 15:15 |
| → PaowZ joined | 15:22 |
|
roboirc
| Yes nomn | 15:24 |
| → xuxx joined | 15:24 |
| → stuffy joined | 15:25 |
| → mrME2 joined | 15:29 |
| ← srinidhi left | 15:30 |
| → tyson2 joined | 15:34 |
| ← MajorBiscuit left | 15:37 |
| ← rfuentess left | 15:38 |
| ← mexen left | 15:40 |
| ← Duality left | 15:42 |
| ← stuffy left | 15:45 |
| → han-solo joined | 15:45 |
| ← Murr left | 15:45 |
| → Murr joined | 15:46 |
| → srinidhi joined | 15:46 |
| → romesrf joined | 15:48 |
| ← gxt left | 15:50 |
|
gooble_gobble
| j416, you were suggesting I rebase rather than merge my commits to keep the branch history clean? | 15:52 |
|
j416
| gooble_gobble: yes | 15:52 |
|
gooble_gobble
| j416, thinking through it on paper | 15:53 |
|
| rading through this article: https://www.atlassian.com/git/tutorials/merging-vs-rebasing | 15:53 |
|
j416
| if your branch is long-lived it may prove tricky | 15:53 |
| → gxt joined | 15:53 |
|
j416
| if not, it's often a good choice | 15:53 |
| ← fling left | 15:54 |
| → fling joined | 15:55 |
| ← mrME2 left | 15:57 |
| ← aduialthin[m] left | 16:00 |
| ← Shentino left | 16:02 |
| → Shentino joined | 16:02 |
| ← john_johnk left | 16:03 |
|
gooble_gobble
| this post seems to do what i need: https://stackoverflow.com/questions/1527234/finding-a-branch-point-with-git | 16:03 |
|
| j416, but i think you and ikke agreed that revlist may not work in all situations | 16:03 |
| → wootehfoot joined | 16:05 |
|
gooble_gobble
| i think the git gc will "cleanup" and remove data from the repo after 90 days | 16:05 |
|
ikke
| Yes, mostly due to the reflog entries expiring after 90 days | 16:05 |
|
j416
| nod | 16:06 |
| → kix joined | 16:06 |
| saroy → bytehackr | 16:07 |
| → mrME2 joined | 16:07 |
| ← madewokherd left | 16:08 |
| ← Techcable left | 16:11 |
|
gooble_gobble
| help me understand how these entries work... like on my gitlab server... is gitlab removing them or is it once ive cloned the git client removes them and then pushes which tells gitlab to remove | 16:13 |
|
| wonderingif i can jsut tell gitlab to never expire and keep all | 16:13 |
| ← coaxing left | 16:13 |
|
gooble_gobble
| that ways the command always works | 16:13 |
| → coaxing joined | 16:14 |
|
imMute
| the reflog is local to the repository. it's not shared between remotes | 16:14 |
|
gooble_gobble
| imMute, so if I cloned, the reflog command wouldnt work? | 16:15 |
| ← rgrinberg left | 16:15 |
|
imMute
| each clone has it's own reflog, which is not shared with any other clone/remote. | 16:16 |
|
gooble_gobble
| imMute, so is the reflog "built"? Like if i clone an old repo (commit history took place +90 days ago), would my client be able to run the reflog commands and see events or would the automagically get GC'd? | 16:17 |
|
imMute
| no. because a fresh clone would make it's own reflog that would having nothing in it | 16:17 |
|
j416
| the reflogs are temporary, and per-repo. | 16:18 |
|
imMute
| the reflog is basically a history of what git is doing internally. like your shell's history buffer (pretend it's not written to disk) | 16:18 |
| ← rwp left | 16:19 |
|
gooble_gobble
| imMute, so when you said no, you were saying "no, reflog will not work in that case" | 16:19 |
|
imMute
| gooble_gobble: correct. | 16:20 |
|
gooble_gobble
| if the commits were younger than 90 days... it would work? | 16:20 |
|
imMute
| no | 16:21 |
|
| because the reflog on whatever clone made the branch is not shared to the remote or any other clone | 16:21 |
|
| that information only exists in that one clone | 16:21 |
| ← vysn left | 16:23 |
| ← kaartic left | 16:26 |
| → junktext joined | 16:28 |
| ← kix left | 16:28 |
| ← dionysus69 left | 16:29 |
|
OnlineCop
| I've modified a couple dozen files with lines starting with whitespace followed by "///..." that I want to add to the index. I want to exclude other changes to the files, however. Will I need to `git add --interactive --patch` and go through each file manually, or is there a different/faster/more automated way I could do this? | 16:29 |
|
| I'd be fine passing the changes to a .patch file and then removing lines that don't match, but I don't understand how the +++ and --- lines work properly, and don't know if I can automate that correctly. | 16:30 |
| → carl--- joined | 16:30 |
| → vicfred joined | 16:32 |
|
gooble_gobble
| imMute, i just cloned a repo into a new directory and it looks like the reflog command is working. So based on whatyou and j416 are saying, i am guessing the client rebuilt the reflog info? | 16:32 |
|
| ie. how was the command able to run if the info wasnt shared between the server/client? | 16:32 |
|
imMute
| which command? | 16:34 |
| ← romesrf left | 16:34 |
|
gooble_gobble
| diff --old-line-format='' --new-line-format='' <(git rev-list --first-parent "${1:-master}") <(git rev-list --first-parent "${2:-HEAD}") | head -1 | 16:35 |
|
imMute
| I don't think that's using the reflog. | 16:35 |
|
j416
| gooble_gobble: it didn't copy the reflog; that's a new reflog | 16:35 |
|
gooble_gobble
| from this article: https://stackoverflow.com/questions/1527234/finding-a-branch-point-with-git | 16:35 |
|
j416
| also rev-list is not reflog | 16:36 |
|
gooble_gobble
| j416, imMute, my mistake, I thought it WAS reflog | 16:36 |
|
| ok. then this solution should work for my needs then | 16:36 |
| ← carl--- left | 16:37 |
| → madewokherd joined | 16:42 |
| ← enkeyz left | 16:43 |
| → enkeyz joined | 16:44 |
| → Thanatermesis joined | 16:44 |
| ← enkeyz left | 16:47 |
| → enkeyz joined | 16:47 |
| ← wootehfoot left | 16:49 |
| → coot joined | 16:50 |
| → squirrel joined | 16:51 |
| → dionysus69 joined | 16:56 |
| → romesrf joined | 16:59 |
| ← jlc left | 17:01 |
| → Betal joined | 17:03 |
| → duderonomy joined | 17:05 |
| ← led_belly left | 17:08 |
| ← tyson2 left | 17:09 |
| → DF32 joined | 17:09 |
| → rgrinberg joined | 17:10 |
| ← dionysus69 left | 17:11 |
| ← mrME2 left | 17:12 |
| → mrME2 joined | 17:14 |
| → TomyLobo joined | 17:16 |
| → led_belly joined | 17:18 |
| → mrMe joined | 17:18 |
| → Sasazuka joined | 17:18 |
| ← mrME2 left | 17:18 |
| ← TomyWork left | 17:19 |
| ← iomari891 left | 17:23 |
| ← mrMe left | 17:24 |
| → great_taste joined | 17:24 |
| → mrMe joined | 17:27 |
| → kenanmarasli joined | 17:27 |
| ← wakeup left | 17:28 |
| ← rgrinberg left | 17:29 |
| ← romesrf left | 17:29 |
| → ibrahim_ joined | 17:31 |
| → rgrinberg joined | 17:31 |
| ← ibrahim left | 17:33 |
| ← mitrokov left | 17:34 |
| → jlc joined | 17:34 |
| → mitrokov joined | 17:35 |
| → rwp joined | 17:35 |
| ← rgrinberg left | 17:36 |
| → carl--- joined | 17:36 |
| → kix joined | 17:37 |
|
gooble_gobble
| anyone know off the top of their head if git diff is inclusive or exclusive | 17:39 |
|
| cant find it in manpage | 17:40 |
|
j416
| of what | 17:41 |
|
gooble_gobble
| like if i run a: git diff --name-only "${COMMIT_HASH}" HEAD | 17:42 |
|
| lets say that the commit for COMMIT_HASH is the only place i modified file X | 17:42 |
|
| will the diff command show file X in the output | 17:42 |
|
j416
| it compares the state of those two. | 17:42 |
|
gooble_gobble
| so to understand that X changed, I would want to diff the previous commit and head | 17:43 |
|
j416
| commits are states | 17:43 |
|
| yes. | 17:43 |
|
gooble_gobble
| j416, gotcha... thinking about them as "states" makes it much clearer | 17:43 |
| ← mthall left | 17:43 |
|
j416
| they _are_ states; it's not just a way of thinking | 17:44 |
|
| each commit records the entire state of your files at that point | 17:44 |
|
rewt
| out of curiosity, how were you thinking of them? as: each commit is a "set of diffs", and `git diff` combines them and shows them as one big diff? | 17:45 |
| ← Sasazuka left | 17:46 |
| → mthall joined | 17:48 |
| → Sasazuka joined | 17:50 |
|
osse
| Many version control systems actually store a commit has some form of patch against the previous commit. Eg. svn | 17:50 |
| → tyson2 joined | 17:50 |
|
osse
| *as some | 17:50 |
| ← xuxx left | 17:51 |
| → john_johnk joined | 17:52 |
| ← srinidhi left | 17:52 |
| → romesrf joined | 17:56 |
|
gooble_gobble
| rewt, as osse said, I was thinking about a commit as a patch against the previous commit | 18:03 |
| ← kix left | 18:03 |
|
gooble_gobble
| not a full copy ofthe data at that point in time | 18:03 |
| → raindrop joined | 18:04 |
| ← mitrokov left | 18:08 |
| → mrME1 joined | 18:08 |
| → mitrokov joined | 18:08 |
| → bob518 joined | 18:09 |
| → causasui joined | 18:09 |
| ← mthall left | 18:10 |
| ← mrMe left | 18:10 |
| → mthall joined | 18:12 |
| → srinidhi joined | 18:12 |
| ← mrME1 left | 18:15 |
| → mrME1 joined | 18:16 |
| → kix joined | 18:18 |
| → mrME2 joined | 18:18 |
| ← srinidhi left | 18:19 |
| ← mrME2 left | 18:20 |
| → mrME2 joined | 18:20 |
| → stuffy joined | 18:20 |
|
osse
| gooble_gobble: Weeell it's exactly a *copy* :P Only the files that are different are stored separately. | 18:21 |
| ← Betal left | 18:21 |
|
osse
| Think of a commit as a bunch of hardlinks | 18:21 |
|
| Ish kinda somewhat | 18:21 |
| ← mrME1 left | 18:21 |
| ← john_johnk left | 18:22 |
| → wakeup joined | 18:22 |
| → fattredd joined | 18:23 |
| → mrMe joined | 18:23 |
| ← mrME2 left | 18:24 |
| → karabaja4 joined | 18:26 |
| → mrME1 joined | 18:26 |
| → rgrinberg joined | 18:27 |
| ← bytehackr left | 18:27 |
| ← mrMe left | 18:29 |
| ← daru left | 18:34 |
| ← PaowZ left | 18:34 |
| → PaowZ joined | 18:35 |
| ← vicfred left | 18:36 |
| ← roadie` left | 18:36 |
| ← causasui left | 18:37 |
| ← han-solo left | 18:38 |
| ← mrME1 left | 18:42 |
| → mrME1 joined | 18:43 |
| → srinidhi joined | 18:46 |
| → mrME2 joined | 18:46 |
| ← mrME1 left | 18:48 |
| → mrMe joined | 18:50 |
| ← mrME2 left | 18:51 |
| ← distantsail left | 18:52 |
| ← mrMe left | 18:55 |
| → xuxx joined | 18:57 |
| → mrMe joined | 18:57 |
| ← DF32 left | 18:58 |
| ← julian left | 19:01 |
| ← kix left | 19:02 |
| → julian joined | 19:02 |
| → mrME1 joined | 19:03 |
| ← mitrokov left | 19:05 |
| ← mrMe left | 19:05 |
| → mitrokov joined | 19:05 |
| ← mitrokov left | 19:06 |
| → mitrokov joined | 19:06 |
| → duxco joined | 19:07 |
| ← duxsco left | 19:07 |
| duxco → duxsco | 19:07 |
| ← knallmaus left | 19:11 |
| → mrME2 joined | 19:12 |
| ← mrME1 left | 19:13 |
| ← junktext left | 19:15 |
| → junktext joined | 19:16 |
| ← vitali64 left | 19:16 |
| → Gustavo6046 joined | 19:17 |
| ← wakeup left | 19:17 |
| ← duderonomy left | 19:18 |
| ← carl--- left | 19:19 |
| ← mrME2 left | 19:19 |
| → mrME2 joined | 19:20 |
| → m0viefreak joined | 19:20 |
| ← bob518 left | 19:26 |
| ← szkl left | 19:28 |
| ← tyson2 left | 19:28 |
| → Knowsin joined | 19:30 |
| → xkuru joined | 19:30 |
| → tealtabbycat joined | 19:30 |
| ← Murr left | 19:45 |
| → Murr joined | 19:46 |
| ← splud left | 19:55 |
| ← PaowZ left | 19:57 |
| → PaowZ joined | 19:57 |
| ← tealtabbycat left | 20:00 |
| ← coot left | 20:03 |
| ← stuffy left | 20:05 |
| ← vdamewood left | 20:06 |
| ← elastic_dog left | 20:07 |
| → splud joined | 20:09 |
| → john_johnk joined | 20:09 |
| ← BrianBlaze left | 20:12 |
| → elastic_dog joined | 20:13 |
| → vdamewood joined | 20:14 |
| ← palasso left | 20:17 |
| → palasso joined | 20:20 |
| → littlebobeep joined | 20:22 |
| ← FinnElija left | 20:27 |
| → FinnElija joined | 20:28 |
| ← littlebobeep left | 20:29 |
| → tyson2 joined | 20:29 |
| → littlebobeep joined | 20:30 |
| ← Vonter left | 20:34 |
| ← kenanmarasli left | 20:35 |
| → tealtabbycat joined | 20:40 |
| ← tealtabbycat left | 20:43 |
| ← zer0bitz left | 20:44 |
| ← otisolsen70 left | 20:45 |
| → BrianBlaze joined | 20:47 |
| ← littlebobeep left | 20:48 |
| ← epony left | 20:54 |
| ← fling left | 20:59 |
| → fling joined | 20:59 |
|
nightstrike
| how do I abort a merge like I can abort a rebase? | 21:00 |
|
ikke
| git merge --abort | 21:00 |
|
nightstrike
| ikke: fatal: 'merge' is not possible because you have unmerged files. | 21:00 |
|
ikke
| are you in a conflicted merge state? | 21:01 |
|
nightstrike
| yeah | 21:01 |
|
ikke
| what does git status tell | 21:01 |
|
nightstrike
| that's why I want to abort | 21:01 |
| → famicom_guy joined | 21:01 |
|
nightstrike
| when you have conflicts while doing a rebase, you can just abort and have everything go back to normal | 21:02 |
|
ikke
| nightstrike: well, similar with merging | 21:02 |
|
nightstrike
| then you can try again | 21:02 |
|
| apparently not similar enough :) | 21:02 |
|
ikke
| What does git status return? | 21:03 |
|
nightstrike
| it lists a bunch of files "to be committed" and others as "unmerged paths" (the ones with conflicts) | 21:03 |
|
| well the one with conflicts | 21:03 |
|
| resolving a conflict before aborting seems...... dumb | 21:04 |
|
ikke
| it's not required | 21:04 |
|
| but the message says | 21:04 |
|
| "'merge' is not possible because you have unmerged files. " | 21:04 |
|
| so it somehow interprets that you want to merge | 21:05 |
|
nightstrike
| Right, well I tried a merge, the merge failed, I can't resolve the conflicts, so I want to abort | 21:05 |
|
ikke
| are you sure you specify '--abort' and not some m-dash or something similar? | 21:05 |
| ← raindrop left | 21:05 |
| → vicfred joined | 21:05 |
|
nightstrike
| I typed it, I didn't copy/paste it | 21:05 |
|
| in fact, I tried --abort before asking | 21:05 |
|
ikke
| what version of git? | 21:06 |
|
nightstrike
| for the record, there's no --abort option in 'man git-merge' | 21:06 |
|
gitinfo
| the git-merge manpage is available at https://gitirc.eu/git-merge.html | 21:06 |
|
nightstrike
| 1.7.1 | 21:06 |
|
ikke
| oh, that's quite ancient | 21:07 |
|
osse
| git reset --hard does the needful I think? | 21:08 |
|
nightstrike
| https://stackoverflow.com/a/2534968 looks like this is my answer | 21:08 |
|
| merge abort was added in 1.7.4 | 21:08 |
|
| that SO answer says to do git reset --merge | 21:08 |
|
ikke
| was added in 1.7.4 | 21:09 |
|
| yea | 21:09 |
|
nightstrike
| I have no idea what the difference is between reset merge and reset hard | 21:09 |
|
| but I'll try the merge | 21:09 |
|
| ....and it appeared to work | 21:09 |
|
| I have yet to do anything with git and think "man, I love this tool" :( | 21:09 |
|
ikke
| nightstrike: it does not help that you use such an ancient version | 21:10 |
| ← skapata left | 21:12 |
| ← chexum left | 21:18 |
| → chexum joined | 21:19 |
| → jazzy joined | 21:20 |
| ← mthall left | 21:21 |
| ← madewokherd left | 21:24 |
| ← rgrinberg left | 21:29 |
| ← gh34 left | 21:32 |
| → hbautista_ joined | 21:34 |
| → cliluw joined | 21:36 |
| ← feriman left | 21:36 |
| ← fattredd left | 21:37 |
| → caveman joined | 21:42 |
| ← tyson2 left | 21:47 |
| → madewokherd joined | 21:49 |
| ← vdamewood left | 21:53 |
| ← xuxx left | 21:53 |
| → Yruama joined | 21:53 |
| → vdamewood joined | 21:54 |
| ← PaowZ left | 21:57 |
| → PaowZ joined | 21:57 |
| ← john_johnk left | 21:59 |
| ← squirrel left | 22:00 |
| → dionysus69 joined | 22:03 |
| ← mitrokov left | 22:06 |
| ← PaowZ left | 22:13 |
| → m__ joined | 22:19 |
| → littlebobeep joined | 22:19 |
| ← coaxing left | 22:19 |
| ← m_ left | 22:22 |
| ← dionysus69 left | 22:24 |
| ← vdamewood left | 22:25 |
| ← toulene left | 22:28 |
| ← EvilDMP left | 22:38 |
| ← palasso left | 22:40 |
| → toluene joined | 22:41 |
| ← caveman left | 22:42 |
| ← srinidhi left | 22:43 |
| ← Sasazuka left | 22:45 |
| → Sasazuka joined | 22:46 |
| → clf059 joined | 22:48 |
| → jaket joined | 22:52 |
| ← romesrf left | 22:57 |
| ← gas51627 left | 22:57 |
| ← jaket left | 23:00 |
| → tealtabbycat joined | 23:00 |
| ← tealtabbycat left | 23:03 |
| ← sa0 left | 23:09 |
| → sa0 joined | 23:11 |
| ← tulpa_ left | 23:15 |
| ← sa0 left | 23:16 |
| ← Yruama left | 23:21 |
| ← enkeyz left | 23:25 |
| → tealtabbycat joined | 23:32 |
| ← wirv left | 23:37 |
| ← tealtabbycat left | 23:41 |
| → chenqisu1 joined | 23:43 |
| ← Sasazuka left | 23:44 |
| ← m0viefreak left | 23:50 |
| → n0s joined | 23:50 |
| → blahboybaz joined | 23:51 |
| ← n0s left | 23:52 |
| ← clf059 left | 23:52 |
|
blahboybaz
| I'm trying to remember.. 1: I can rebase a single commit onto another branch? 2: If I do that then the only thing that ends up on the targed branch is the single commit (without all the history leading up to it)? | 23:53 |
| ← gurkenglas left | 23:56 |
|
another|
| man git cherry-pick | 23:59 |
|
gitinfo
| the git-cherry-pick manpage is available at https://gitirc.eu/git-cherry-pick.html | 23:59 |