| 2023-10-25 |
| → utkojhamela joined | 00:00 |
| → wonko-the-sane joined | 00:01 |
| ← henry40408 left | 00:04 |
| → henry40408 joined | 00:05 |
| ← SuperLag left | 00:06 |
| → SuperLag joined | 00:07 |
| ← SuperLag left | 00:07 |
| → SuperLag joined | 00:07 |
| → jklfds joined | 00:08 |
| → JayBeeFOSS joined | 00:12 |
| ← jklfds left | 00:14 |
| → jklfds joined | 00:15 |
| ← hanneso left | 00:19 |
| ← JayBeeFOSS left | 00:19 |
| ← jklfds left | 00:20 |
| ← gsi left | 00:22 |
| → gsi joined | 00:23 |
| → ThorMojito joined | 00:33 |
| → ThorMojito1 joined | 00:33 |
| ← jacobk left | 00:34 |
| ← qqq left | 00:35 |
| → jklfds joined | 00:35 |
| → qqq joined | 00:35 |
| ← defjam left | 00:36 |
| → hanneso joined | 00:36 |
| ← bn_work left | 00:36 |
| → ThorMojito2 joined | 00:36 |
| → JayBeeFOSS joined | 00:36 |
| ← ThorMojito left | 00:37 |
| ← ThorMojito1 left | 00:38 |
| ← jklfds left | 00:41 |
| ← henry40408 left | 00:44 |
| → henry40408 joined | 00:44 |
| ← nyah left | 00:46 |
| → jklfds joined | 00:46 |
| → defjam joined | 00:49 |
| → cliluw joined | 00:52 |
| ← defjam left | 00:53 |
|
cliluw
| Is it usual for merge commit messages to have a "# Conflicts" section? I noticed Git autoadded those. Am I supposed to remove those commented-out lines with my text editor before saving the commit message? | 00:53 |
|
nedbat
| cliluw: i believe git will ignore lines starting with #. they won't appear in your commit message. | 00:54 |
|
cliluw
| Interesting. I noticed Git kept those lines if I do `git commit --no-edit` on the merge commit. I could see keeping those lines as they are somewhat helpful to track an possibly-evil merge. | 00:55 |
| ← jklfds left | 00:57 |
| ← opal left | 00:58 |
| → opal joined | 00:58 |
| ← ThorMojito2 left | 00:59 |
| → ThorMojito joined | 00:59 |
| ← Lord_of_Life left | 01:00 |
| ← JayBeeFOSS left | 01:00 |
| → Lord_of_Life joined | 01:01 |
| ← mataga left | 01:03 |
| ← BUSY left | 01:04 |
| → defjam joined | 01:06 |
| → jklfds joined | 01:09 |
| → mataga joined | 01:10 |
| ← mataga left | 01:10 |
| → mataga joined | 01:10 |
| ← vanessa left | 01:11 |
| ← defjam left | 01:12 |
| → oblivskep joined | 01:13 |
| ← oblivskep left | 01:15 |
| ← jas-maelstrom left | 01:16 |
| → nate2 joined | 01:17 |
| → JayBeeFOSS joined | 01:18 |
| → bywaterloo_ joined | 01:18 |
| ← jklfds left | 01:20 |
| ← bywaterloo left | 01:21 |
| → Betal joined | 01:22 |
| ← nate2 left | 01:22 |
| → defjam joined | 01:23 |
| ← ThorMojito left | 01:27 |
| ← defjam left | 01:29 |
| → jas-maelstrom joined | 01:33 |
| → jklfds joined | 01:34 |
| → NeatNit joined | 01:34 |
| ← jklfds left | 01:40 |
| → defjam joined | 01:40 |
| ← Dotz0cat left | 01:41 |
| → ThorMojito joined | 01:42 |
| ← leah2 left | 01:44 |
| ← defjam left | 01:47 |
| ← cousteau left | 01:47 |
| → jklfds joined | 01:47 |
| ← opal left | 01:48 |
| ← Vonter left | 01:49 |
| ← jklfds left | 01:53 |
| → jklfds joined | 01:53 |
| ← ThorMojito left | 01:55 |
| → Vonter joined | 01:56 |
| → defjam joined | 01:58 |
| ← jklfds left | 01:59 |
| → dev4449 joined | 02:02 |
| ← defjam left | 02:03 |
| → opal joined | 02:06 |
| ← FinnElija left | 02:09 |
| → finn_elija joined | 02:09 |
| finn_elija → FinnElija | 02:09 |
| → jklfds joined | 02:12 |
| → Dotz0cat joined | 02:12 |
| ← jb1277976 left | 02:13 |
| ← keypusher left | 02:15 |
| → defjam joined | 02:16 |
| → keypusher joined | 02:17 |
| ← jklfds left | 02:17 |
| → danse-nr3 joined | 02:19 |
| ← cliluw left | 02:20 |
| ← danse-nr3 left | 02:22 |
| → danse-nr3 joined | 02:22 |
| ← defjam left | 02:22 |
| ← stagas left | 02:25 |
| ← utkojhamela left | 02:26 |
| → stagas joined | 02:26 |
| ← raffaele left | 02:28 |
| → raffaele joined | 02:28 |
| → defjam joined | 02:29 |
| → jklfds joined | 02:30 |
| → jacobk joined | 02:35 |
| ← defjam left | 02:35 |
| ← jklfds left | 02:35 |
| ← jacobk left | 02:42 |
| ← criswell left | 02:42 |
| ← bloody left | 02:44 |
| → criswell joined | 02:44 |
| → jklfds joined | 02:48 |
| → defjam joined | 02:48 |
| ← jklfds left | 02:53 |
| ← defjam left | 02:54 |
| ← tirnanog left | 02:54 |
| → defjam joined | 02:54 |
| → jklfds joined | 02:58 |
| ← defjam left | 03:00 |
| ← jklfds left | 03:03 |
| → jklfds joined | 03:10 |
| → defjam joined | 03:14 |
| → jacobk joined | 03:15 |
|
Ali_nz
| Hi Guys | 03:15 |
|
| Anyone herlp me with this please? | 03:16 |
|
| https://stackoverflow.com/questions/77355818/git-in-vscode-extra-repository | 03:16 |
|
nektro
| what does the files tab look like | 03:19 |
| ← defjam left | 03:20 |
|
Ali_nz
| Doesnt look to have any git options | 03:21 |
|
| Could share a pic if you wnat? | 03:21 |
| ← dnb^ left | 03:24 |
| ← Dotz0cat left | 03:25 |
| → Dotz0cat joined | 03:25 |
|
nektro
| does it have multiple folders? | 03:27 |
|
| eg my first guess is u have a workspace | 03:28 |
| ← jklfds left | 03:29 |
|
Ali_nz
| bird-app is root folder | 03:30 |
|
| bird-project is actually created as a subfolder | 03:30 |
| → defjam joined | 03:30 |
| → jklfds joined | 03:35 |
| ← wonko-the-sane left | 03:36 |
| ← GNUmoon left | 03:36 |
| ← defjam left | 03:36 |
| → GNUmoon joined | 03:37 |
| ← mven left | 03:38 |
| ← gast0n left | 03:40 |
| ← jklfds left | 03:40 |
| → mven joined | 03:40 |
| ← Vonter left | 03:41 |
| → Vonter joined | 03:43 |
| ← bywaterloo_ left | 03:43 |
|
nektro
| is there a .git folder in bird-project? | 03:43 |
| → leah2 joined | 03:44 |
| ← GNUmoon left | 03:46 |
| → GNUmoon joined | 03:46 |
| ← danse-nr3 left | 03:46 |
| → m5zs7k joined | 03:47 |
| → danse-nr3 joined | 03:47 |
| → jklfds joined | 03:49 |
| → defjam joined | 03:49 |
| ← mven left | 03:51 |
| ← jklfds left | 03:54 |
| ← defjam left | 03:55 |
| ← jacobk left | 03:58 |
| → utkojhamela joined | 04:00 |
| ← FinnElija left | 04:00 |
| → FinnElija joined | 04:01 |
|
Ali_nz
| doesnt look to be | 04:04 |
| → jklfds joined | 04:05 |
|
Ali_nz
| a gitignore but thats it | 04:05 |
| → defjam joined | 04:07 |
| ← jklfds left | 04:10 |
| → jklfds joined | 04:10 |
| → genesis1523 joined | 04:11 |
|
Ali_nz
| Sorry it does | 04:12 |
|
| it was hidden | 04:12 |
|
| (Windows) | 04:12 |
| ← defjam left | 04:14 |
| ← jklfds left | 04:15 |
| → jklfds joined | 04:16 |
| → wonko-the-sane joined | 04:23 |
| ← genesis1523 left | 04:25 |
| ← jklfds left | 04:27 |
| → defjam joined | 04:28 |
| ← danse-nr3 left | 04:33 |
| ← defjam left | 04:34 |
| → jklfds joined | 04:39 |
| ← bket left | 04:42 |
| ← theobjectivedad left | 04:43 |
| ← jklfds left | 04:44 |
| ← opal left | 04:45 |
| → bket joined | 04:45 |
| → defjam joined | 04:46 |
| → fdan joined | 04:48 |
| → otisolsen70 joined | 04:48 |
| → jklfds joined | 04:50 |
| ← cpackham left | 04:55 |
| ← jklfds left | 04:55 |
| → danse-nr3 joined | 04:55 |
| ← otisolsen70 left | 04:58 |
| ← defjam left | 04:58 |
| → otisolsen70 joined | 04:59 |
| → jacobk joined | 05:00 |
| → R2robot joined | 05:00 |
| ← ZMarkGC left | 05:01 |
| ← fdan left | 05:02 |
| ← itaipu left | 05:05 |
| → jklfds joined | 05:05 |
| → defjam joined | 05:10 |
| ← jklfds left | 05:11 |
| ← defjam left | 05:16 |
| → derfflinger_ joined | 05:16 |
| → jklfds joined | 05:17 |
| → itaipu joined | 05:18 |
| → nate2 joined | 05:19 |
| → derfflinger__ joined | 05:21 |
| ← nate2 left | 05:23 |
| ← derfflinger_ left | 05:25 |
| ← jklfds left | 05:27 |
| ← derfflinger__ left | 05:28 |
| → defjam joined | 05:28 |
| → jmd joined | 05:32 |
| ← dsrt^ left | 05:33 |
| → ZMarkGC joined | 05:33 |
| ← defjam left | 05:33 |
| → dsrt^ joined | 05:36 |
|
alephnull
| So I am trying to replicate git fetch --depth 1 ... && git checkout using go-git. The go-git version cannot checkout and complains that the reference cannot be found. | 05:38 |
| → jklfds joined | 05:39 |
|
alephnull
| I can see that .git/refs/heads/ are present and have the correct contents. In fact, running git checkout works correctly. What I'm trying to understand is where git-checkout looks for references in a shallow clone. | 05:43 |
| ← jklfds left | 05:44 |
| → abubakarsadiq joined | 05:44 |
| → defjam joined | 05:45 |
| ← jmd left | 05:47 |
| ← GNUmoon left | 05:48 |
| → GNUmoon joined | 05:50 |
| → jklfds joined | 05:51 |
| ← defjam left | 05:51 |
| ← thiago left | 05:54 |
| ← jklfds left | 05:56 |
| → carl-- joined | 05:56 |
| ← carl-- left | 05:57 |
| → carl-- joined | 05:58 |
| → Jaxef joined | 06:00 |
| → defjam joined | 06:03 |
| → jklfds joined | 06:06 |
| ← defjam left | 06:09 |
| ← Furai left | 06:09 |
| ← jklfds left | 06:11 |
| ← wonko-the-sane left | 06:13 |
| → stats4647 joined | 06:13 |
| → masoudd joined | 06:13 |
| → Furai joined | 06:13 |
| ← stats4647 left | 06:18 |
| → jklfds joined | 06:21 |
| → defjam joined | 06:22 |
| ← ferdna_ left | 06:24 |
| → YuGiOhJCJ joined | 06:25 |
| ← jklfds left | 06:26 |
| → TheCaptain3 joined | 06:26 |
| ← defjam left | 06:28 |
| ← rama_ left | 06:28 |
| ← TheCaptain left | 06:28 |
| TheCaptain3 → TheCaptain | 06:28 |
| → defjam joined | 06:30 |
| → rama_ joined | 06:30 |
| → schne1der joined | 06:34 |
| ← rama_ left | 06:35 |
| → jklfds joined | 06:36 |
| → CO2 joined | 06:45 |
| ← Gary_Sinise left | 06:45 |
| → igemnace joined | 06:46 |
| → coot joined | 06:49 |
| ← Celelibi left | 06:50 |
| → Celelibi joined | 06:51 |
| → rama joined | 06:58 |
| → rfuentess joined | 06:59 |
| ← rama left | 07:04 |
| → rama joined | 07:06 |
| → jb1277976 joined | 07:07 |
| ← rfuentess left | 07:08 |
| → rfuentess joined | 07:09 |
| ← GNUmoon left | 07:09 |
| → iomari891 joined | 07:10 |
| → GNUmoon joined | 07:10 |
| ← jacobk left | 07:11 |
| ← rama left | 07:12 |
| → crabbedhaloablut joined | 07:13 |
| ← deltab left | 07:13 |
| → feriman joined | 07:15 |
| ← skapate left | 07:16 |
| → rama joined | 07:17 |
| → jklfds_ joined | 07:18 |
| → cpackham joined | 07:20 |
| ← jklfds left | 07:21 |
| → cart_ joined | 07:22 |
| ← Guddu left | 07:22 |
| → deltab joined | 07:23 |
| → jacobk joined | 07:29 |
| ← cart_ left | 07:34 |
| → cart_ joined | 07:34 |
| → mobidrop joined | 07:35 |
| ← danse-nr3 left | 07:35 |
| → danse-nr3 joined | 07:35 |
| ← colona left | 07:36 |
| → opal joined | 07:38 |
|
adgtl
| Which log flag do you use regularly? | 07:39 |
| ← vdamewood left | 07:45 |
| → vdamewood joined | 07:45 |
| → danse-nr3_ joined | 07:47 |
| ← danse-nr3 left | 07:47 |
| ← Albright left | 07:47 |
| → Albright joined | 07:50 |
| ← cart_ left | 07:50 |
| ← cpackham left | 07:51 |
| → cart_ joined | 07:51 |
| → chris_99 joined | 07:53 |
| ← cart_ left | 07:56 |
|
chris_99
| Hi, afaik when i do git rebase upstream/master, the hashes for my own commits will have changed, if i do 'git checkout <OLD HASH>' i can still checkout one of my commits, with history prior to rebasing, i'm just wondering that old hash, wont stay valid forever, or will it? | 07:57 |
| ← warmana left | 07:57 |
| ← opal left | 07:58 |
|
osse
| chris_99: Git will "garbage collect" it eventually | 07:59 |
| → warmana joined | 07:59 |
| → TomyWork joined | 07:59 |
|
osse
| depends a bit on settings, but without any manual intervention it'll be valid for at least 14 days | 07:59 |
|
| by default it will be valid for at least 90 I think | 08:00 |
|
chris_99
| ah interesting, thanks, so can you alter the # of days? | 08:00 |
|
osse
| yes | 08:00 |
|
chris_99
| cool, do you happen to know if you can tweak that on services like github too? | 08:01 |
|
selckin
| you can't | 08:01 |
|
chris_99
| ah | 08:02 |
|
osse
| Github likely uses vastly different settings for this stuff than what a regular repo on a normal PC does. | 08:02 |
|
| It doesn't use reflogs (I assume) so then we're back to 14 days, not 90. But I guess they garbage collect way more often than what just Git does locally | 08:02 |
|
| Imo. on servers just assume it's no longer valid immediately. Don't rely on it. | 08:03 |
|
chris_99
| sure, that's a good point, thanks | 08:03 |
|
osse
| If you *want* it to become invalid quicker than what it actually does I think you have to contact github support . (eg. you committed a password or something) | 08:04 |
|
selckin
| you can reach other peoples forks through your own repo on github | 08:04 |
| ← gryffus left | 08:05 |
| → theoceaniscool joined | 08:08 |
| → pretty_dumm_guy joined | 08:09 |
|
chris_99
| selckin: what do you mean by that out of interest, not quite sure what you mean | 08:14 |
|
selckin
| they are backed by the same "git repo", if you commit something in a fork, you can access it from the original repo with commit hash, so always assume there is garbage | 08:17 |
|
chris_99
| oh, interesting, didn't know that | 08:18 |
| ← rama left | 08:18 |
| → gryffus joined | 08:19 |
| ← pretty_dumm_guy left | 08:26 |
| ← mitrokov left | 08:27 |
| → navi joined | 08:28 |
| → colona joined | 08:33 |
| ← sukieyy left | 08:34 |
| → rosco joined | 08:34 |
| → sukieyy joined | 08:35 |
| → rama joined | 08:37 |
| → Guest13 joined | 08:37 |
| ← Guest13 left | 08:38 |
| ← danse-nr3_ left | 08:40 |
| ← rama left | 08:42 |
| → opal joined | 08:47 |
| → danse-nr3 joined | 08:51 |
| → rama joined | 08:52 |
| ← LuKaRo left | 08:52 |
|
nektro
| --oneline is my most common log flag adgtl | 08:55 |
|
selckin
| alias lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | 08:56 |
|
osse
| pro-tip. configure that format with a name in gitconfig. that way you can use it outside of that alias as well | 08:57 |
|
| (and the alias becomes a bit shorter) | 08:58 |
| ← rosco left | 09:00 |
| → cart_ joined | 09:02 |
| → pretty_dumm_guy joined | 09:04 |
| → kek_ joined | 09:06 |
| → genesis1523 joined | 09:06 |
| → stats4647 joined | 09:11 |
| ← warmana left | 09:13 |
| ← Betal left | 09:13 |
| ← utkojhamela left | 09:16 |
| ← stats4647 left | 09:18 |
| → z3bra joined | 09:19 |
|
z3bra
| Hello, I have a question about git-shell: Does it reset the environment when you run a command with -c ? | 09:20 |
|
selckin
| reset? | 09:20 |
| → nate2 joined | 09:20 |
|
selckin
| env is inherited from to child, when it exists, its gone | 09:21 |
| ← Jaxef left | 09:22 |
| ← Vonter left | 09:22 |
| → Vonter joined | 09:23 |
|
z3bra
| I have a git-shell-command which basically does: export FOO=BAR; git-shell -c "$SSH_ORIGINAL_COMMAND" | 09:23 |
|
| and it seems that my FOO=BAR is not in the env | 09:23 |
|
| so I wonder if that's expected or if it's my setup which doesn't work | 09:24 |
|
selckin
| its made to be restricted shell for security, keeping env vars would be dangerous | 09:25 |
| ← nate2 left | 09:26 |
| → TheCaptain2 joined | 09:26 |
| → Jaxef joined | 09:26 |
| ← rfuentess left | 09:27 |
| ← TheCaptain left | 09:28 |
| TheCaptain2 → TheCaptain | 09:28 |
| → nyah joined | 09:32 |
|
z3bra
| idk, it seems to work when I run it from a shell prompt | 09:33 |
| → rfuentess joined | 09:33 |
| ← kek_ left | 09:36 |
|
z3bra
| I think it's sshd which clears the environment in my case | 09:45 |
|
selckin
| it does | 09:48 |
| → Ophielle joined | 09:51 |
| ← Dotz0cat left | 09:52 |
| ← JayBeeFOSS left | 09:53 |
| → Dotz0cat_ joined | 09:53 |
| → bf_ joined | 09:53 |
| ← Noisytoot left | 09:54 |
|
Ophielle
| Ok im new to this and have a question, i have a git repo we can call it A and inside A i created a submodule B, ive done work on both of these repos and when pulling the git on another computer A pulls file but submodule init and submodule update pulls B down in the state it was in when i added it missing many changes it also dosent seem to have an upstream branch meaning i have to go into it and do git pull origin branch to update | 09:54 |
|
| it. am i doing this wrong? i just want B to be always pulled at the latest version | 09:55 |
| Dotz0cat_ → Dotz0cat | 09:55 |
| → Noisytoot joined | 09:55 |
| OnkelTem_ → OnkelTem | 09:55 |
| ← rama left | 09:58 |
| → utkojhamela joined | 09:59 |
| → rama joined | 10:04 |
| → theobjectivedad joined | 10:07 |
| ← rama left | 10:10 |
| → JayBeeFOSS joined | 10:10 |
| → arahael joined | 10:11 |
| → squealingcode joined | 10:14 |
| → stenno joined | 10:14 |
| → rama joined | 10:16 |
| ← rama left | 10:21 |
| → rama joined | 10:22 |
| ← defjam left | 10:27 |
| → mane joined | 10:37 |
| → defjam joined | 10:41 |
| ← coot left | 10:47 |
| → cousteau joined | 10:47 |
|
osse
| Ophielle: a submodule is always at a specific commit. Changing the commit of the submodule is considered a change that must be committed in the outer repo | 10:50 |
|
| That's just how it is. Maybe a submodule is not what you want | 10:51 |
|
nedbat
| Ophielle: can you say more about why you are using a submodule? There might be a better solution. | 10:53 |
| → dnh joined | 10:53 |
|
cousteau
| osse: I think that's how it should be... a commit that is working cannot suddenly stop working without doing any changes; having your repo do different things in different days because some external component changed would be confusing | 10:56 |
|
osse
| cousteau: I agree. | 10:56 |
|
| Submodules make more sense for external deps, like a library at version 1.2.3 | 10:56 |
|
cousteau
| "this worked yesterday, why doesn't it work today?" and "I reverted all the changes and that still didn't fix the problem" are two of the most frustrating things that can happen | 10:56 |
|
| (as a fun side note, a friend of mine had that happen with a program that didn't work on Wednesdays) | 10:57 |
|
osse
| cousteau: wow, how did that happen? | 11:06 |
|
| Sounds more like a logic error than an actual code change every Wednesdays :O | 11:07 |
|
cousteau
| Well, at the beginning we started saying that as a joke, because one day the program would start terminating abruptly (even without having touched anything on the source code, or having reverted all the changes), and the next day it'd work just normally. That had to be frustrating. | 11:08 |
|
| At some point, the guy using the code got tired and started trying to diagnose the issue | 11:08 |
|
| and found that the problem was when one of the components wrote the system date as a comment on a file | 11:09 |
| ← utkojhamela left | 11:09 |
|
cousteau
| "Wednesday" in Spanish is "miércoles" | 11:09 |
| → chao joined | 11:10 |
|
cousteau
| *encoding error* | 11:10 |
| ← stenno left | 11:10 |
| chao → stenno | 11:10 |
| ← YuGiOhJCJ left | 11:14 |
| ← dsimic left | 11:18 |
|
osse
| :D | 11:19 |
| → dsimic joined | 11:19 |
|
osse
| do u even utf8 everywhere | 11:19 |
| → warmana joined | 11:22 |
| ← rama left | 11:26 |
| → mitrokov joined | 11:28 |
| → cation joined | 11:31 |
| ← danse-nr3 left | 11:36 |
| → epicout joined | 11:41 |
| ← epicout left | 11:41 |
| → epicout joined | 11:41 |
| ← defjam left | 11:43 |
| → defjam joined | 11:45 |
| → rama joined | 11:46 |
| → epicout_ joined | 11:46 |
| ← epicout left | 11:50 |
| ← rama left | 11:51 |
| ← igemnace left | 11:52 |
| → igemnace joined | 11:53 |
| → humanface joined | 11:55 |
| ← cousteau left | 11:57 |
| → rosco joined | 11:58 |
| → rama joined | 11:59 |
| ← xandris left | 12:01 |
| ← epicout_ left | 12:02 |
| ← defjam left | 12:02 |
| ← Traneptora left | 12:04 |
| ← pretty_dumm_guy left | 12:04 |
| → xandris joined | 12:04 |
| → naruto69 joined | 12:05 |
| → Xaldafax joined | 12:06 |
| ← opal left | 12:13 |
| → opal joined | 12:13 |
| → defjam joined | 12:14 |
| ← humanface left | 12:15 |
| ← defjam left | 12:19 |
| → defjam joined | 12:20 |
| ← squealingcode left | 12:23 |
| → squealingcode joined | 12:24 |
| → pretty_dumm_guy joined | 12:25 |
| → danse-nr3 joined | 12:28 |
| → apathor joined | 12:28 |
| ← genesis1523 left | 12:33 |
| → genesis1523 joined | 12:38 |
| → bloody joined | 12:39 |
| ← dnh left | 12:40 |
| ← naruto69 left | 12:47 |
| → humanface joined | 12:53 |
| ← defjam left | 12:57 |
| → dnh joined | 12:57 |
| → defjam joined | 13:00 |
| ← jacobk left | 13:04 |
| → Xaros joined | 13:06 |
| ← feriman left | 13:12 |
| → Rashad joined | 13:15 |
| → jacobk joined | 13:15 |
| → rsx joined | 13:16 |
| → feriman joined | 13:19 |
| ← squealingcode left | 13:22 |
| → nate2 joined | 13:22 |
| ← mkwrz left | 13:27 |
| ← nate2 left | 13:27 |
| → mkwrz joined | 13:27 |
| ← danse-nr3 left | 13:30 |
| → danse-nr3 joined | 13:30 |
| ← arahael left | 13:32 |
| ← defjam left | 13:35 |
| → ursa joined | 13:36 |
| ← henry40408 left | 13:47 |
| → henry40408 joined | 13:48 |
| ← dav1d left | 13:49 |
| → dav1d joined | 13:50 |
| ← mcfrdy left | 13:50 |
| → mcfrdy joined | 13:50 |
| ← Ophielle left | 13:52 |
| ← qqq left | 13:53 |
| → qqq joined | 13:53 |
| ← GNUmoon left | 13:56 |
| → GNUmoon joined | 13:57 |
| ← CO2 left | 14:00 |
| ← gryffus left | 14:00 |
| → defjam joined | 14:00 |
| ← rama left | 14:04 |
| ← Jaxef left | 14:04 |
| → GNUmoon2 joined | 14:04 |
| ← Xaros left | 14:07 |
| ← schne1der left | 14:07 |
| ← jacobk left | 14:08 |
| ← geirha left | 14:08 |
| ← GNUmoon left | 14:09 |
| ← GNUmoon2 left | 14:11 |
| ← deepy left | 14:12 |
| → GNUmoon2 joined | 14:12 |
| → deepy joined | 14:13 |
| → jacobk joined | 14:15 |
| → evccyr joined | 14:19 |
| → ThorMojito joined | 14:23 |
| → thiago joined | 14:25 |
| → CO2 joined | 14:25 |
|
evccyr
| When I amend to my local git repo and then push those changes to the remote origin branch, I get this error: | 14:26 |
|
| ```sh | 14:26 |
|
| ❯ git push origin main | 14:26 |
|
| To https://github.com/evccyr/dotfiles.git | 14:26 |
|
| ! [rejected] main -> main (non-fast-forward) | 14:26 |
|
| error: failed to push some refs to 'https://github.com/evccyr/dotfiles.git' | 14:26 |
|
| hint: Updates were rejected because the tip of your current branch is behind | 14:26 |
|
| hint: its remote counterpart. If you want to integrate the remote changes, | 14:26 |
|
| hint: use 'git pull' before pushing again. | 14:26 |
|
| hint: See the 'Note about fast-forwards' in 'git push --help' for details. | 14:26 |
|
| ``` | 14:26 |
|
| but when I run push with the --force flag I have no problems. So what's exactly happening here? I also don't feel that the error was helpful. | 14:26 |
| → Jaxef joined | 14:26 |
|
selckin
| it tries to prevent you from rewriting history, since that makes it difficult for other users, and well rewrites history | 14:27 |
|
evccyr
| oh | 14:27 |
| ← jacobk left | 14:28 |
|
evccyr
| then why does the error say that the tip of your branch is behind | 14:28 |
| → utkojhamela joined | 14:28 |
|
evccyr
| shouldn't the error say what you said instead | 14:28 |
| → mven joined | 14:28 |
|
evccyr
| also is there a way to open the scm docs on a specific topic using the `git` command itself? | 14:29 |
|
| If not then what would be an easy way to search the git book for a specific topic? | 14:30 |
|
| progit book* | 14:30 |
|
| instead of having to google search and find the specific chapter | 14:31 |
|
| also the progit book website doesn't have a fast search option | 14:31 |
|
Bombe
| The error message above tells you where to get more information. It also provides a possible solution. | 14:31 |
| ← utkojhamela left | 14:32 |
|
evccyr
| btw my bad just found out that the git website does have a fast search tool | 14:32 |
|
selckin
| evccyr: that error could also mean the remote has newer commits that you don't have locally, so you never eally want to force push, but pull --rebase, but since oyu said amend it was probably rewrite | 14:32 |
| → utkojhamela joined | 14:33 |
|
evccyr
| selckin If I make a pr and I wanted to make some changes before it's merged, what would be the correct way to do that? Just making more commits for all the littlest changes? | 14:34 |
|
selckin
| if its your own branch you for it | 14:35 |
|
| +go for it | 14:35 |
|
| otherwise people might not like that they can't see what changed since last time they reviewed it for example | 14:36 |
|
| othertimes it's perfectly fine to do it | 14:36 |
| ← masoudd left | 14:36 |
| → ferdna_ joined | 14:37 |
|
evccyr
| okay thanks! | 14:37 |
| ← Rashad left | 14:37 |
| → cyberpear joined | 14:42 |
| → rama joined | 14:43 |
| ← vdamewood left | 14:45 |
| → vdamewood joined | 14:46 |
| ← raffaele left | 14:48 |
| ← evccyr left | 14:50 |
| ← chris_99 left | 14:54 |
| ← GNUmoon2 left | 14:57 |
| ← aljazmc left | 14:57 |
| → GNUmoon2 joined | 14:58 |
| ← ThorMojito left | 15:00 |
| → ThorMojito joined | 15:02 |
| ← rfuentess left | 15:08 |
| → rfuentess joined | 15:10 |
| → epicout joined | 15:14 |
| ← epicout left | 15:14 |
| → epicout joined | 15:14 |
| ← danse-nr3 left | 15:20 |
| ← mobidrop left | 15:27 |
| → admiral_frost joined | 15:29 |
| ← harv left | 15:31 |
| → harv joined | 15:32 |
| ← rfuentess left | 15:35 |
| → countach202020 joined | 15:35 |
| ← cart_ left | 15:36 |
| → danse-nr3 joined | 15:36 |
| → jmd joined | 15:37 |
| → hbautista joined | 15:37 |
| ← countach202020 left | 15:38 |
| → countach202020 joined | 15:39 |
| ← rama left | 15:43 |
| → Guest23 joined | 15:45 |
|
Guest23
| Hello | 15:46 |
| → masoudd joined | 15:46 |
| ← hrberg left | 15:46 |
| → hrberg joined | 15:46 |
| ← Guest23 left | 15:46 |
| → danse-nr3_ joined | 15:47 |
| ← danse-nr3 left | 15:49 |
| → ConfusedGit joined | 15:50 |
| → rama joined | 15:51 |
| ← epicout left | 15:59 |
| → darkAffinity0 joined | 16:07 |
| ← lojik left | 16:07 |
| → lojik joined | 16:08 |
| ← darkAffinity left | 16:09 |
| darkAffinity0 → darkAffinity | 16:09 |
| → aljazmc joined | 16:10 |
| ← CodeAgain left | 16:11 |
| ← ConfusedGit left | 16:14 |
| ← ThorMojito left | 16:14 |
| → ThorMojito joined | 16:15 |
| ← rama left | 16:15 |
| ← danse-nr3_ left | 16:16 |
| → danse-nr3_ joined | 16:17 |
| ← randm left | 16:19 |
| → randm joined | 16:19 |
| ← warmana left | 16:19 |
| ← qqq left | 16:22 |
| ← fossdd left | 16:25 |
| → IceMichael joined | 16:26 |
| ← Vonter left | 16:26 |
| ← lojik left | 16:27 |
| ← darkAffinity left | 16:27 |
| → lojik joined | 16:29 |
| → Vonter joined | 16:30 |
| → darkAffinity joined | 16:30 |
| → wo0f joined | 16:32 |
| ← stagas left | 16:35 |
| → fossdd joined | 16:36 |
| → jacekowski joined | 16:36 |
| → bywaterloo joined | 16:36 |
| → stagas joined | 16:37 |
|
jacekowski
| what is the correct way of rolling back changes that were pushed to master | 16:37 |
|
selckin
| git-revert | 16:37 |
|
nitrix
| Reverting the commit and pushing that additional commit. | 16:37 |
|
jacekowski
| i'm using tortoise git and i've done a chekout of previous commit which created a branch | 16:38 |
|
| and when i tried to merge it with master it seems to have merged | 16:38 |
|
| but git diff branch..master is showing differences | 16:38 |
|
nitrix
| Yes because that point in time has already happened and part of master. | 16:38 |
|
jacekowski
| but merge is saying everything is up to date | 16:38 |
| → cart_ joined | 16:38 |
|
nitrix
| Going back to it is useful for exploring the past locally but doesn't change that it's been merged already. | 16:39 |
|
jacekowski
| ok, so now that things are in my current state, how do i make my branch_X the new master? | 16:41 |
|
| rebase? | 16:41 |
|
nitrix
| You can't unless you do it forcefully and that'll screw up everyone that has master checked out. | 16:42 |
| → justaguy_ joined | 16:44 |
| ← Jaxef left | 16:46 |
| ← danse-nr3_ left | 16:46 |
| → rama joined | 16:49 |
| → Jaxef joined | 16:50 |
|
nitrix
| Suppose you ignore branches temporarily and you only have a master branch. It's a sequence of commits chained up. As you append new commits and lengthen the chain, people pull the additional commits to synchronize with you and lengthen theirs. The chain acts as a ledger of everything that transpired to get you from point A to point C in time. If you remove commits from it and push to origin, other people pushing to origin will just put them back because they're | 16:54 |
|
| ahead. | 16:54 |
|
| Changing any of the ulterior commits forcefully will conflict and if you still forcibly push to the origin, then now everyone's timeline wont match with the origin and they will conflict too. | 16:54 |
| ← masoudd left | 16:55 |
| → danse-nr3_ joined | 16:56 |
| → danse-nr3 joined | 16:57 |
| ← cart_ left | 16:57 |
| ← countach202020 left | 16:58 |
|
nitrix
| You can do pretty nasty things to other branches because you can always just create more branches from others branches and continue your work elsewhere, but everyone's work eventually converges on master and so it should be treated with an "append-only" mindset. | 16:58 |
| ← rsx left | 17:00 |
| ← danse-nr3_ left | 17:01 |
| ← ThorMojito left | 17:03 |
| ← dnh left | 17:06 |
| ← humanface left | 17:10 |
| → ThorMojito joined | 17:11 |
| ← ThorMojito left | 17:12 |
| → flom84 joined | 17:13 |
| ← flom84 left | 17:16 |
| ← carl-- left | 17:22 |
| → nate2 joined | 17:23 |
| ← defjam left | 17:25 |
| ← Vonter left | 17:26 |
| → defjam joined | 17:28 |
| ← nate2 left | 17:28 |
| → Vonter joined | 17:28 |
| ← genesis1523 left | 17:28 |
| ← rosco left | 17:31 |
| → flom84 joined | 17:36 |
| ← agd851201010 left | 17:42 |
| ← rustyshackleford left | 17:43 |
| → agd851201010 joined | 17:46 |
| → ___nick___ joined | 17:51 |
| → cart_ joined | 17:54 |
| → wurstwasser joined | 17:56 |
| ← ___nick___ left | 17:56 |
| → ___nick___ joined | 17:58 |
| ← ___nick___ left | 17:59 |
| → ___nick___ joined | 18:01 |
| → stats4647 joined | 18:05 |
| ← danse-nr3 left | 18:06 |
| ← ghost43 left | 18:10 |
| → ghost43 joined | 18:12 |
| → tirnanog joined | 18:17 |
| ← ghost43 left | 18:19 |
| → ghost43 joined | 18:19 |
| ← wurstwasser left | 18:22 |
| ← GNUmoon2 left | 18:24 |
| → GNUmoon2 joined | 18:25 |
| ← admiral_frost left | 18:26 |
| → mven5 joined | 18:28 |
| ← rama left | 18:28 |
| → rama joined | 18:30 |
| → LuKaRo joined | 18:30 |
| ← mven left | 18:31 |
| mven5 → mven | 18:31 |
| ← flom84 left | 18:31 |
| ← iomari891 left | 18:34 |
| ← rama left | 18:35 |
| ← defjam left | 18:36 |
| → rama joined | 18:36 |
| ← stats4647 left | 18:37 |
| → stats4647 joined | 18:37 |
| → dnh joined | 18:38 |
| ← rama left | 18:41 |
| → realies joined | 18:42 |
| → chris_99 joined | 18:42 |
| → rama joined | 18:43 |
| → Guest4 joined | 18:44 |
| ← mane left | 18:46 |
|
Guest4
| Hi there, I'm trying to do a `git commit --author="Author Name [email@hidden.address] --message="Move file"` and I'm getting this error: https://stackoverflow.com/q/29685337/253468, how can I check if there's a tracking issue and it's a known problem that `git config` execution is necessary before I can use `--author`? | 18:46 |
| → mane joined | 18:47 |
| ← rama left | 18:47 |
| → defjam joined | 18:49 |
| ← mane left | 18:52 |
|
thiago
| Guest4: my guess is that the *committer* is missing, not the author | 18:53 |
| ← defjam left | 18:53 |
| → m0viefreak joined | 18:53 |
|
thiago
| this doesn't look like a bug in Git, so nothing to track | 18:54 |
|
| you can set GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL in the environment | 18:55 |
| ← realies left | 18:55 |
|
Guest4
| :facepalm: you're right, the error message changed. Any idea why there's no `git commit --committer` arg? | 18:57 |
|
| to complete the `--author`, `--date` trio | 18:57 |
| → realies joined | 18:59 |
| → ConfusedGit joined | 19:00 |
| ← feriman left | 19:01 |
| ← jmd left | 19:01 |
|
gsish
| the difference would be that it's perfectly normal to "need to" adjust authorship or author date details when picking up external contributions | 19:02 |
|
| while there's hardly any doubt that the committer would be the one who's committing, at this very moment where the commit happens, and that rarely changes during work on a local clone | 19:02 |
| → wootehfoot joined | 19:03 |
|
gsish
| so "the trio" is not as equal as one would assume at first glance | 19:03 |
| → feriman joined | 19:03 |
|
Guest4
| "during work on a local clone" is a key part of that, I'm on a CI server :) | 19:03 |
| → jacobk joined | 19:03 |
| ← chris_99 left | 19:03 |
|
Guest4
| anyway, thank you, it still makes sense, I'll just use the config, it seems simpler than the 4 ENV vars | 19:04 |
| → Gary_Sinise joined | 19:04 |
| → rama joined | 19:04 |
| → defjam joined | 19:05 |
| → wurstwasser joined | 19:09 |
| → CaCode joined | 19:09 |
| ← jacobk left | 19:09 |
| ← defjam left | 19:10 |
|
jacekowski
| hi again, i had to disappear for a moment | 19:13 |
|
| so how do i create a commit that makes my master identical to the branch | 19:14 |
|
dodo
| squash all commits from there? or is this a trick question? | 19:15 |
|
jacekowski
| no | 19:16 |
|
dodo
| or actually, reset hard | 19:16 |
|
| but that's not a commit | 19:16 |
|
jacekowski
| i'm continuing from few hours ago | 19:16 |
|
| ive created a commit that broke few things and pushed | 19:16 |
|
dodo
| revert it? | 19:16 |
|
jacekowski
| then i've done a checkout to a new branch with working version | 19:16 |
|
| commited to this branch | 19:17 |
|
dodo
| yup, revert the bad branch and rebase on that | 19:17 |
|
jacekowski
| and now i want to make make master identical to this working branch with modifications | 19:17 |
|
| master is bad, branch is ok | 19:17 |
|
dodo
| how did you fix your branch? | 19:18 |
|
| anyway, doesn't matter. revert in master and rebase should still work | 19:18 |
|
jacekowski
| tortise git switch/checkout to previous commit with create new branch ticked | 19:19 |
|
dodo
| anyway, doesn't matter. revert in master and rebase should still work | 19:19 |
|
jacekowski
| so i need to switch to master first | 19:19 |
|
| and then rebase? | 19:19 |
|
dodo
| switch to master, revert the bad commit, switch to your branch, rebase on master | 19:20 |
| ← Jaxef left | 19:20 |
| → defjam joined | 19:21 |
| → falafel joined | 19:23 |
| ← defjam left | 19:27 |
| ← T_X left | 19:29 |
| ← Guest4 left | 19:29 |
|
nedbat
| github has .patch urls, like https://patch-diff.githubusercontent.com/raw/openedx/edx-cookiecutters/pull/79.patch what is the git command that can apply a patch like this? | 19:29 |
|
ikke
| nedbat: git am | 19:30 |
|
| (a)pply (m)ailbox | 19:30 |
|
nedbat
| ikke: i thought so, but it tells me "error: corrupt patch at line 33" | 19:30 |
|
| ikke: oh, it might be that the previous sha in the patch doesn't exist in my repo | 19:31 |
|
ikke
| that should not result in a corrupt patch message | 19:31 |
|
| and would require --3-way to matter | 19:32 |
| ← wurstwasser left | 19:35 |
| → defjam joined | 19:36 |
| ← TomyWork left | 19:37 |
| → h-erectus joined | 19:39 |
| ← realies left | 19:45 |
| → darkAffinity2 joined | 19:45 |
| ← darkAffinity left | 19:45 |
| darkAffinity2 → darkAffinity | 19:45 |
| → mane joined | 19:45 |
| ← rama left | 19:47 |
| → rama joined | 19:47 |
| → realies joined | 19:48 |
| ← igemnace left | 19:49 |
| ← defjam left | 19:52 |
| ← ChmEarl left | 19:53 |
| → wurstwasser joined | 19:54 |
| ← whatsupdoc left | 19:58 |
| ← wootehfoot left | 19:59 |
| → defjam joined | 19:59 |
| ← ___nick___ left | 20:04 |
| → igemnace joined | 20:07 |
| ← lostlazy left | 20:08 |
| ← cart_ left | 20:09 |
| ← crabbedhaloablut left | 20:09 |
| ← feriman left | 20:12 |
| ← ConfusedGit left | 20:12 |
| ← dviola left | 20:13 |
| → geirha joined | 20:14 |
| ← falafel left | 20:15 |
| → Rashad joined | 20:20 |
| ← sm1999__ left | 20:20 |
| → sm1999__ joined | 20:21 |
| ← otisolsen70 left | 20:25 |
| ← m0viefreak left | 20:25 |
| ← realies left | 20:25 |
| ← GNUmoon2 left | 20:26 |
| → GNUmoon2 joined | 20:27 |
| ← stats4647 left | 20:30 |
| → stats4647 joined | 20:31 |
| → skapata joined | 20:32 |
| ← utkojhamela left | 20:33 |
| ← mane left | 20:33 |
| ← stats4647 left | 20:35 |
| ← CaCode left | 20:42 |
| → CaCode joined | 20:51 |
| ← igemnace left | 20:52 |
| → sympt joined | 20:54 |
| ← Notgnoshi left | 20:55 |
| → cdown joined | 20:55 |
| → Notgnoshi joined | 20:56 |
| → Gaboradon joined | 21:03 |
| ← dnh left | 21:03 |
| → stats4647 joined | 21:04 |
| ← wurstwasser left | 21:06 |
| ← stats4647 left | 21:09 |
| → gcarlos8 joined | 21:14 |
| ← gcarlos8 left | 21:15 |
| → dnh joined | 21:15 |
| ← h-erectus left | 21:17 |
| → gcarlos8 joined | 21:18 |
| ← gcarlos8 left | 21:18 |
| → gcarlos8 joined | 21:19 |
| ← gcarlos8 left | 21:20 |
| → liefer396 joined | 21:20 |
| → realies joined | 21:21 |
| → utkojhamela joined | 21:21 |
| → stats4647 joined | 21:22 |
| → gcarlos8 joined | 21:23 |
| → nate2 joined | 21:25 |
| ← stats4647 left | 21:27 |
| ← de-facto left | 21:28 |
| ← nate2 left | 21:30 |
| → de-facto joined | 21:30 |
| ← dnh left | 21:31 |
| ← yoyofreeman left | 21:36 |
| ← realies left | 21:36 |
| → yoyofreeman joined | 21:36 |
| ← gcarlos8 left | 21:40 |
| → wurstwasser joined | 21:42 |
| → lostlazy joined | 21:45 |
| → jokoon joined | 21:45 |
|
jokoon
| I have a directory created, but git status doesn't list its content | 21:45 |
|
| how can I see files inside it, I don't want to add them all | 21:46 |
|
| --untracked-files | 21:47 |
| ← jokoon left | 21:48 |
| → gcarlos8 joined | 21:48 |
| → larryv joined | 21:49 |
| ← utkojhamela left | 21:55 |
| → gcarlos87 joined | 21:59 |
| ← gcarlos8 left | 22:02 |
| gcarlos87 → gcarlos8 | 22:02 |
| ← aljazmc left | 22:04 |
| ← ferdna_ left | 22:05 |
| → Gaboradon_ joined | 22:08 |
| ← gildasio left | 22:08 |
| → realies joined | 22:09 |
| → gildasio joined | 22:09 |
| ← Gaboradon left | 22:11 |
| → Yruama joined | 22:15 |
| ← Gaboradon_ left | 22:15 |
| ← project10 left | 22:16 |
| → project10 joined | 22:17 |
| ← jklfds_ left | 22:21 |
| → Gaboradon joined | 22:21 |
| → jklfds joined | 22:21 |
| ← gildasio left | 22:23 |
| → gildasio1 joined | 22:23 |
| ← gildasio1 left | 22:24 |
| → gildasio joined | 22:24 |
| ← jklfds left | 22:25 |
| → Traneptora joined | 22:27 |
| ← Rashad left | 22:29 |
| → jklfds joined | 22:31 |
| ← jklfds left | 22:32 |
| → jklfds joined | 22:33 |
| → stats4647 joined | 22:33 |
| → jacobk joined | 22:36 |
| ← stats4647 left | 22:38 |
| ← jklfds left | 22:38 |
| → jklfds joined | 22:39 |
| ← welder left | 22:40 |
| → welder joined | 22:41 |
| ← jklfds left | 22:42 |
| → jklfds joined | 22:43 |
| → rustyshackleford joined | 22:44 |
| ← jklfds left | 22:52 |
| → Rashad joined | 22:52 |
| ← rama left | 22:54 |
| → diego joined | 22:57 |
| diego → Guest6128 | 22:57 |
| ← CaCode left | 23:02 |
| → dnh joined | 23:04 |
| ← wurstwasser left | 23:06 |
| ← cyberpear left | 23:11 |
| ← pretty_dumm_guy left | 23:17 |
| ← Rashad left | 23:18 |
| ← defjam left | 23:19 |
| ← dev4449 left | 23:20 |
| → nate2 joined | 23:27 |
| → defjam joined | 23:31 |
| ← nate2 left | 23:31 |
| → de-facto_ joined | 23:34 |
| ← defjam left | 23:35 |
| → jklfds joined | 23:37 |
| ← de-facto left | 23:37 |
| de-facto_ → de-facto | 23:38 |
| ← jklfds left | 23:41 |
| ← Yruama left | 23:42 |
| ← omero left | 23:47 |
| → evccyr joined | 23:50 |
| → omero joined | 23:50 |
| ← navi left | 23:50 |
|
evccyr
| I'm unable to create this alias `gh alias set h 'help'` | 23:50 |
|
BtbN
| gh is not git | 23:51 |
|
evccyr
| Yes, I'm sorry for that. The github channel is invite only. | 23:52 |
|
BtbN
| I was more thinking that you are trying to use a git command with gh | 23:52 |
|
| But git aliases are done differently, now that I look into it | 23:52 |
|
| But yeah, try asking in the github channel. | 23:53 |
| ← farzat left | 23:53 |
|
BtbN
| It's ##github | 23:53 |
| ← nyah left | 23:54 |
| ← tirnanog left | 23:56 |