| 2021-11-02 |
| ← pah left | 00:00 |
| → pah_ joined | 00:00 |
| → w0ng joined | 00:00 |
| ← shokohsc8 left | 00:04 |
| ← pah_ left | 00:05 |
| → shokohsc8 joined | 00:05 |
| ← TJ- left | 00:07 |
| → average joined | 00:12 |
| → causaui1 joined | 00:19 |
| → ferdna joined | 00:19 |
| ← Lord_of_Life left | 00:21 |
| → Lord_of_Life_ joined | 00:21 |
| → pah joined | 00:21 |
| Lord_of_Life_ → Lord_of_Life | 00:22 |
| ← dextercd left | 00:23 |
| ← causaui1 left | 00:24 |
| → cmbengue joined | 00:25 |
| → causaui1 joined | 00:25 |
| → BUSY joined | 00:26 |
| → DoofusCanadensis joined | 00:27 |
| → perrierjouet joined | 00:27 |
| ← hbautista_ left | 00:30 |
| ← vicfred left | 00:34 |
| → ttree joined | 00:37 |
| ← causaui1 left | 00:40 |
| ← rgrinberg left | 00:40 |
| ← oriba left | 00:42 |
| ← mhi left | 00:44 |
| → mhi joined | 00:44 |
| → ThorMojito joined | 00:45 |
| → hbautista_ joined | 00:54 |
| → Codaraxis_ joined | 00:57 |
| ← Codaraxis_ left | 00:58 |
| ← hbautista_ left | 00:58 |
| → hbautista joined | 00:59 |
| ← Codaraxis left | 01:01 |
| ← ThorMojito left | 01:02 |
| → thebombzen joined | 01:05 |
| → causaui1 joined | 01:07 |
| ← michigan left | 01:09 |
| ← ferdna left | 01:10 |
| → pabs3 joined | 01:11 |
| ← causaui1 left | 01:12 |
| ← durham left | 01:12 |
| → ferdna joined | 01:14 |
| → Xenguy joined | 01:16 |
| → ThorMojito joined | 01:24 |
| ← MrC left | 01:25 |
| ← ThorMojito left | 01:40 |
| → cbreak_ joined | 01:40 |
| ← cbreak left | 01:41 |
| → rgrinberg joined | 01:51 |
| ← cbreak_ left | 01:52 |
| → cbreak joined | 01:55 |
| ← kajiryoji left | 01:57 |
| ← eschwartz left | 01:58 |
| → kajiryoji joined | 01:59 |
| ← Swahili_ left | 02:01 |
| → Swahili joined | 02:01 |
| ← jancoow left | 02:02 |
| ← xkuru left | 02:04 |
| → navidr joined | 02:04 |
| ← vdamewood left | 02:04 |
| → batrick joined | 02:05 |
| ← ttree left | 02:10 |
| ← causa_sui left | 02:10 |
| → eschwartz joined | 02:12 |
| → lgc joined | 02:12 |
| ← perrierjouet left | 02:14 |
| ← juliopcrj left | 02:17 |
| → jazzy3 joined | 02:18 |
| ← jazzy left | 02:19 |
| ← lgc left | 02:20 |
| → lgc joined | 02:20 |
| → ttree joined | 02:23 |
| ← ChmEarl left | 02:25 |
| ← average left | 02:26 |
| → causaui1 joined | 02:26 |
| ← causaui1 left | 02:31 |
| → jancoow joined | 02:36 |
| ← jetchisel left | 02:37 |
| ← jazzy3 left | 02:39 |
| → jetchisel joined | 02:39 |
| ← zmt01 left | 02:42 |
| ← emf left | 02:43 |
| → jazzy joined | 02:44 |
| → emf joined | 02:45 |
| → zmt00 joined | 02:45 |
| ← Murr left | 02:47 |
| → Murr joined | 02:47 |
| → The_Jag joined | 02:50 |
| ← The_Jag_ left | 02:52 |
| ← cmbengue left | 02:54 |
| → emf_ joined | 02:56 |
| ← emf left | 02:58 |
| ← hbautista left | 02:59 |
| → cmbengue joined | 02:59 |
| → RiFo joined | 03:00 |
| → causaui1 joined | 03:01 |
| → average joined | 03:05 |
| ← causaui1 left | 03:06 |
| → perrierjouet joined | 03:07 |
| → tWqaq joined | 03:15 |
| → Test3662 joined | 03:16 |
| ← Test3662 left | 03:18 |
| → cosmic_owl joined | 03:21 |
| → mat001 joined | 03:27 |
| ← mat001_ left | 03:30 |
| → durham joined | 03:31 |
| ← rossy_ left | 03:32 |
| ← tWqaq left | 03:35 |
| ← sudoforge left | 03:37 |
| → sudoforge joined | 03:38 |
| → tWqaq joined | 03:38 |
| ← tWqaq left | 03:39 |
| → causaui1 joined | 03:39 |
| ← cosmic_owl left | 03:40 |
| → tWqaq joined | 03:41 |
| → zmt01 joined | 03:41 |
| ← zmt00 left | 03:43 |
| ← causaui1 left | 03:43 |
| ← FinnElija left | 03:45 |
| ← tWqaq left | 03:47 |
| → FinnElija joined | 03:47 |
| → tWqaq joined | 03:48 |
| ← tWqaq left | 03:48 |
| → tWqaq joined | 03:50 |
| ← tWqaq left | 03:50 |
| → saroy joined | 03:52 |
| → tWqaq joined | 03:52 |
| ← tWqaq left | 03:53 |
| ← sudoforge left | 03:54 |
| → tWqaq joined | 03:55 |
| ← tWqaq left | 03:57 |
| → tWqaq joined | 03:58 |
| ← tWqaq left | 03:58 |
| ← DoofusCanadensis left | 03:59 |
| → tWqaq joined | 04:01 |
| ← tWqaq left | 04:01 |
| → tWqaq joined | 04:02 |
| ← tWqaq left | 04:02 |
| → tWqaq joined | 04:04 |
| ← bgs left | 04:09 |
| ← mannequin left | 04:12 |
| → bgs joined | 04:14 |
| ← zmt01 left | 04:15 |
| ← tWqaq left | 04:17 |
| → tWqaq joined | 04:19 |
| ← tWqaq left | 04:21 |
| → tWqaq joined | 04:22 |
| ← tWqaq left | 04:23 |
| → tWqaq joined | 04:24 |
| ← tWqaq left | 04:24 |
| ← navidr left | 04:24 |
| → tWqaq joined | 04:25 |
| ← tWqaq left | 04:25 |
| → tWqaq joined | 04:27 |
| ← tWqaq left | 04:27 |
| → zmt00 joined | 04:28 |
| → tWqaq joined | 04:29 |
| ← tWqaq left | 04:29 |
| ← zmt00 left | 04:35 |
| → pah_ joined | 04:38 |
| ← pah left | 04:39 |
| ← ferdna left | 04:39 |
| ← remyabel left | 04:41 |
| → remyabel joined | 04:41 |
| ← gast0n left | 04:46 |
| ← Murr left | 04:47 |
| → Murr joined | 04:47 |
| → pah joined | 04:48 |
| ← pah_ left | 04:48 |
| ← reset left | 04:49 |
| → cronos joined | 04:53 |
| ← bloody left | 04:57 |
| ← pah left | 04:58 |
| → pah joined | 04:59 |
| → enyc joined | 05:02 |
| ← pabs3 left | 05:04 |
| → zmt00 joined | 05:17 |
| __xor → _xor | 05:18 |
| ← alkino left | 05:23 |
| → alkino joined | 05:24 |
| → AsenMx joined | 05:25 |
| ← igemnace left | 05:25 |
| → igemnace joined | 05:26 |
| ← zmt00 left | 05:26 |
| → zmt00 joined | 05:28 |
| → zmt01 joined | 05:34 |
| ← tmz left | 05:34 |
| ← zmt00 left | 05:39 |
| → tmz joined | 05:40 |
| → mat001_ joined | 05:43 |
| → causaui1 joined | 05:45 |
| ← mat001 left | 05:46 |
| ← tejr left | 05:47 |
| → tejr joined | 05:47 |
| ← enyc left | 05:50 |
| ← causaui1 left | 05:50 |
| ← Xaldafax left | 05:50 |
| ← rgrinberg left | 05:53 |
| ← pah left | 05:54 |
| → zmt00 joined | 05:54 |
| ← zmt00 left | 05:55 |
| → hbautista joined | 05:56 |
| → pah joined | 05:57 |
| ← hbautista left | 05:57 |
| → hbautista joined | 05:57 |
| ← zmt01 left | 05:58 |
| ← remyabel left | 06:09 |
| → GNUmoon joined | 06:12 |
| → mallkrampus joined | 06:18 |
| → causaui1 joined | 06:19 |
| ← Swahili left | 06:24 |
| ← causaui1 left | 06:24 |
| → Swahili joined | 06:25 |
| ← thiago left | 06:29 |
| → roadie joined | 06:38 |
| ← pulse left | 06:40 |
| → molten joined | 06:41 |
| → alkino_ joined | 06:43 |
| ← alkino left | 06:43 |
| → bkircher joined | 06:44 |
| ← lavos left | 06:44 |
| ← hbautista left | 06:44 |
| ← molten left | 06:45 |
| → mat001 joined | 06:48 |
| → otisolsen70 joined | 06:48 |
| ← mat001_ left | 06:52 |
| ← Ilyu left | 07:04 |
| ← unluckyshrubbery left | 07:04 |
| ← eblip left | 07:05 |
| → kenanmarasli joined | 07:07 |
| → eblip joined | 07:07 |
| ← skapata left | 07:13 |
| → mannequin joined | 07:14 |
| ← ttree left | 07:17 |
| → lkor joined | 07:20 |
| → travisghansen joined | 07:22 |
| pah → pa | 07:28 |
| ← anddam left | 07:30 |
| → MrC joined | 07:41 |
| → mat001_ joined | 07:45 |
| ← mat001 left | 07:48 |
| → theoceaniscool joined | 07:52 |
| ← rahl left | 07:56 |
| → palasso joined | 07:57 |
| → rahl joined | 07:57 |
| → chemsmith joined | 07:59 |
| → Ilyu joined | 08:05 |
| → nad joined | 08:06 |
| → causaui1 joined | 08:09 |
| ← mat001_ left | 08:12 |
| → vladoski joined | 08:13 |
| ← causaui1 left | 08:14 |
| lkor → lionkor | 08:15 |
| → mven joined | 08:19 |
| → mven` joined | 08:23 |
| ← mven left | 08:25 |
| ← tejr left | 08:25 |
| → tejr joined | 08:25 |
| → Komputilo joined | 08:27 |
| ← Trieste_ left | 08:31 |
| → john_johnk joined | 08:32 |
| → Trieste joined | 08:36 |
| → pretty_dumm_guy joined | 08:36 |
| ← jazzy left | 08:38 |
| → spare joined | 08:41 |
| → molt joined | 08:43 |
| → causaui1 joined | 08:45 |
| ← Murr left | 08:47 |
| → Murr joined | 08:47 |
| ← causaui1 left | 08:50 |
| ← mschorm left | 08:54 |
| ← AbleBacon left | 08:56 |
| → enyc joined | 09:04 |
| ← lionkor left | 09:06 |
| → mschorm joined | 09:07 |
| → ttree joined | 09:10 |
| → lpapp joined | 09:10 |
|
lpapp
| osse: any fun with head? | 09:10 |
| → unluckyshrubbery joined | 09:13 |
| ← pa left | 09:14 |
| → drogas joined | 09:15 |
| ← dviola left | 09:15 |
|
osse
| no | 09:15 |
| → pah joined | 09:15 |
| ← spare left | 09:16 |
| → raffaele__ joined | 09:17 |
|
lpapp
| is git diff --name-status main f the best command to check what files were changed, added, deleted, etc, in a branch compared to main? | 09:18 |
| ← roadie left | 09:19 |
| → causaui1 joined | 09:20 |
| ← pah left | 09:21 |
| ← otisolsen70 left | 09:21 |
|
lpapp
| or git diff --stat --color main f? | 09:21 |
| → pah joined | 09:22 |
| → mei joined | 09:22 |
| → YuGiOhJCJ joined | 09:22 |
|
drogas
| why is the git version on my ubuntu 2.17.1? is that the latest? | 09:22 |
|
| thought I saw 2.9 somewhere | 09:23 |
|
| wonder why it hasn't been updated | 09:23 |
| ← webmariner left | 09:23 |
|
bookworm
| 2.9 is older than 2.17, just saying | 09:24 |
|
| but Ubuntu lags behind, same as any other "stable" distro | 09:24 |
|
| they only backport security fixes, not functionality between different distro versions | 09:24 |
| ← causaui1 left | 09:24 |
| ← wender left | 09:24 |
| ← ttree left | 09:24 |
| → otisolsen70 joined | 09:25 |
| ← cmbengue left | 09:25 |
|
drogas
| has there been major changes since 2.17 that one must have? | 09:25 |
|
bookworm
| are you missing anything? Then yes, else no. I personally like new features and don't like stable distros | 09:29 |
|
| you need to make your own choice | 09:29 |
| → computeiro joined | 09:30 |
| ← perrierjouet left | 09:30 |
|
drogas
| which distro are you on? arch? | 09:35 |
|
bookworm
| doesn't matter much, but yes. Gentoo has the same benefit, so does fedora (kinda) | 09:36 |
| ← alzgh left | 09:38 |
| → TJ- joined | 09:41 |
| ← wolfshappen left | 09:43 |
| → wolfshappen_ joined | 09:43 |
| ← john_johnk left | 09:46 |
| ← Shentino left | 09:48 |
| → perrierjouet joined | 09:48 |
| → Shentino joined | 09:51 |
| → dviola joined | 09:51 |
| → Lope joined | 09:52 |
|
Lope
| Is there a way to revert a commit, while keeping the working copy as is? | 09:53 |
| → gordonfish- joined | 09:54 |
| → causaui1 joined | 09:54 |
|
bookworm
| reset --soft but that's not really a revert | 09:55 |
| ← gordonfish left | 09:56 |
|
Lope
| bookworm, well, perhaps revert is the wrong terminology | 09:57 |
|
| basically I made a WIP commit like 6 commits back | 09:57 |
|
| since then I've basically merged staging into my branch about 5 times. | 09:57 |
|
| I want to keep my working copy as is, but somehow uncommit that commit that I did, about 6 commits back. | 09:57 |
| ← causaui1 left | 09:59 |
|
Lope
| So I was thinking perhaps there is a way I can revert the WIP commit, then take note of my head position (let's call it latest) then checkout the WIP then reset my head to latest. | 09:59 |
|
| I'm going to try it. | 10:00 |
|
| I've backed up my whole project incl git. | 10:00 |
| ← Swahili left | 10:04 |
| → Swahili joined | 10:04 |
|
Lope
| It seems like I was successful. | 10:11 |
|
| So this is what I did. | 10:11 |
| → pah_ joined | 10:11 |
| ← pah left | 10:11 |
|
Lope
| git revert <WIP>; git cherry-pick <WIP>; git undo; git reset; | 10:12 |
|
| git undo is from the git-extras debian package. | 10:13 |
|
| It uncommits the last commit. | 10:13 |
| ← lpapp left | 10:13 |
| → furrymcgee joined | 10:13 |
| → epolanski joined | 10:15 |
|
Lope
| Thanks self. You're awesome. | 10:16 |
|
| Thanks, you too! | 10:16 |
| ← pah_ left | 10:18 |
| → pah joined | 10:18 |
| ← nad left | 10:19 |
| → roadie joined | 10:23 |
| → vlado_ joined | 10:25 |
| ← vladoski left | 10:28 |
| ← vlado_ left | 10:30 |
| → vladoski joined | 10:31 |
| ← furrymcgee left | 10:34 |
| pah → pa | 10:36 |
| ← igemnace left | 10:37 |
| ← pa left | 10:41 |
| → pah joined | 10:43 |
| ← TJ- left | 10:47 |
| ← Murr left | 10:47 |
| → Murr joined | 10:47 |
| ← thblt left | 10:48 |
| ← pah left | 10:48 |
| → nad joined | 10:49 |
| → shad joined | 10:50 |
|
shad
| Hi, today i fucked up by commiting creds to a remote branch. This branch hasn't been merged to main, and i've saved locally the files i needed. What's the up-to-date and cleanest method of deleting all traces of that branch and its commit history so that it won't ever appear again in our gitlab ? | 10:51 |
| → pah joined | 10:52 |
| ← liefer left | 10:53 |
|
mdk
| shad: Just change the creds. | 10:54 |
|
shad
| :< | 10:55 |
|
dviola
| you could also squash all the commits in that branch to 1 commit, git reset HEAD^ to undo the commit and keep the changes, then git add/commit carefully... but then you lose your history | 10:56 |
|
| I second mdk suggestion | 10:57 |
|
shad
| the branch only has 1 commit now, the one commit i want to nuke | 10:57 |
| → liefer joined | 10:58 |
|
dviola
| shad: in that case, git reset HEAD^ to undo the last commit, remove the unwanted changes, git add files, git commit, git push --force origin branch | 11:02 |
|
| but you should be careful with force, make sure nobody else is working on it | 11:03 |
|
| you should still change your creds | 11:03 |
|
mannequin
| yes, lifer, idd, don't expect anything else | 11:04 |
| ← roadie left | 11:05 |
| → causaui1 joined | 11:05 |
| ← pah left | 11:07 |
|
shad
| dviola: no one is working on that branch ; i did git reset, git add, git commit, git push -f ... but it only created a new commit, it didn't remove the previous one | 11:08 |
|
| well, it did... weird | 11:08 |
| → roadie joined | 11:08 |
|
shad
| Gitlab mentions only one commit, the "oops" correction one, but the branch log still mentions the faulty commit | 11:08 |
|
mdk
| Anyway, change the creds, someone could have pulled right away and still have it. | 11:08 |
| → furrymcgee joined | 11:09 |
|
mannequin
| chains of the network | 11:09 |
|
shad
| This repository is private to our org, there's no risk per se | 11:09 |
| → pah joined | 11:09 |
| ← causaui1 left | 11:10 |
|
shad
| i just want to keep a git history clean, but there's no need to go full operation PURGE on that | 11:10 |
| ← liefer left | 11:13 |
| → liefer joined | 11:14 |
| ← faceface left | 11:21 |
| ← liefer left | 11:28 |
| → liefer joined | 11:29 |
|
kenanmarasli
| is it possible to revert a range of commits to a previous state, except changes made to a path? | 11:31 |
|
| I guess do a complete revert and checkout the contents from the current commit, and I didn't see an option for 'not-reverting' a pathspec in the manual | 11:32 |
| → lavos joined | 11:39 |
|
rawtaz
| perhaps you can revert it all and then pick parts of the commits you reverted back? | 11:39 |
|
| the commits are there even if you revert, see `git reflog` (or just remember their commit IDs) | 11:40 |
| ← molt left | 11:42 |
| → treefrob joined | 11:43 |
| → causaui1 joined | 11:46 |
|
kenanmarasli
| rawtaz: yeah that's what I thought | 11:47 |
| → cmbengue joined | 11:50 |
|
rawtaz
| worst case you can always edit a commit, so.. | 11:50 |
| ← causaui1 left | 11:51 |
| ← roadie left | 11:56 |
|
kenanmarasli
| true, ty | 11:56 |
|
dminuoso
| kenanmarasli: Reverting somehow and checking out that singular file seems like the quickest option | 11:58 |
|
rawtaz
| dminuoso: what do you use to pick out a single file or similar from a commit? | 12:00 |
|
kenanmarasli
| rawtaz: git checkout | 12:02 |
| ← nad left | 12:02 |
| ← fercell left | 12:03 |
| ← lavos left | 12:03 |
| → lionkor joined | 12:06 |
| ← shad left | 12:07 |
|
rawtaz
| ok | 12:14 |
| ← Ilyu left | 12:15 |
| ← GNUmoon left | 12:17 |
| → constxd joined | 12:19 |
| → roadie joined | 12:22 |
| → GNUmoon joined | 12:27 |
| ← roadie left | 12:29 |
| ← mei left | 12:32 |
| ← nrg left | 12:32 |
| → mei joined | 12:36 |
| → mat001 joined | 12:41 |
| → nrg joined | 12:45 |
| → nad joined | 12:46 |
| ← nad left | 12:46 |
| → gh34 joined | 12:46 |
| ← Murr left | 12:47 |
| → Murr joined | 12:47 |
| → fercell joined | 12:48 |
| ← mei left | 12:48 |
| ← jrofd left | 12:50 |
| → shad joined | 12:54 |
| → gas51627 joined | 12:54 |
| ← Xenguy left | 12:57 |
| → jrofd joined | 13:03 |
| ← nrg left | 13:03 |
| → mat001_ joined | 13:05 |
| ← average left | 13:06 |
| → causaui1 joined | 13:06 |
| → nrg joined | 13:07 |
| ← mat001 left | 13:08 |
| → bloody joined | 13:09 |
| → betelgeuse joined | 13:09 |
| ← YuGiOhJCJ left | 13:10 |
| ← rahl left | 13:11 |
| ← causaui1 left | 13:12 |
| ← nrg left | 13:12 |
| → ThorMojito joined | 13:15 |
| ← zulutango left | 13:18 |
| → Ilyu joined | 13:18 |
| → zulutango joined | 13:18 |
| → nrg joined | 13:19 |
| ← lemonsnicks left | 13:24 |
| → lemonsnicks joined | 13:24 |
| → AbleBacon joined | 13:25 |
| ← Ilyu left | 13:27 |
| ← fercell left | 13:28 |
| → fercell joined | 13:29 |
| ← The_Jag left | 13:34 |
| → The_Jag joined | 13:35 |
| → reset joined | 13:38 |
| → pulse joined | 13:42 |
| → mei joined | 13:46 |
| → pah_ joined | 13:47 |
| ← pah left | 13:48 |
| ← otisolsen70 left | 13:49 |
| ← mei left | 13:52 |
| → mei joined | 13:52 |
| ← mei left | 14:06 |
| ← AsenMx left | 14:07 |
| → AsenMx joined | 14:08 |
| ← zulutango left | 14:08 |
| → zulutango joined | 14:09 |
| → causaui1 joined | 14:15 |
|
wyre
| I'm a little confused with `git merge` guys, when I'm in master branch and I want to merge changes from another branch into it ... should I run `git merge <some branch>`? | 14:16 |
|
| or should I checkout <some branch> and then do `git merge master`? | 14:16 |
| → rahl joined | 14:17 |
|
osse
| wyre: the former | 14:17 |
| ← furrymcgee left | 14:18 |
| → mat001 joined | 14:21 |
| ← mat001_ left | 14:24 |
| → arcatech joined | 14:24 |
| → gast0n joined | 14:24 |
| ← Lope left | 14:25 |
|
wyre
| osse, so `git merge` is for merging another branch in the curren one where you did `git checkout`, right? | 14:26 |
|
osse
| wyre: yes | 14:33 |
|
| rule of thumb: it is always the current branch that is changed | 14:33 |
| → rgrinberg joined | 14:34 |
|
imMute
| wyre: another way to remember it is that you can merge multiple things at the same time: git merge feature-1 feature-2 # will merge feature-1 and feature-2 into the current branch | 14:37 |
|
| the only way that makes sense is if the branch you're merging in to is the implicit one - the branch that's currently checked out | 14:37 |
| → skapata joined | 14:42 |
| ← skapata left | 14:42 |
| → skapata joined | 14:42 |
| → mei joined | 14:49 |
| → frobnic joined | 14:49 |
| ← madewokherd left | 14:50 |
| → anddam joined | 14:52 |
| → junktext joined | 15:02 |
| ← ThorMojito left | 15:05 |
| → meator joined | 15:10 |
| ← pretty_dumm_guy left | 15:11 |
| → ThorMojito joined | 15:12 |
| → thiago joined | 15:13 |
| ← gas51627 left | 15:14 |
| → madewokherd joined | 15:19 |
| ← mei left | 15:20 |
| ← ThorMojito left | 15:22 |
| ← liefer left | 15:25 |
| → pretty_dumm_guy joined | 15:27 |
| → bluesm joined | 15:28 |
| → liefer joined | 15:29 |
|
bluesm
| Are pull requests github's/bitbucket’s concepts or can I discuss them here? | 15:31 |
|
osse
| Yes. | 15:32 |
|
ikke
| 0:D | 15:32 |
|
bluesm
| Yes. | 15:33 |
|
| They are and I can discuss them here. | 15:33 |
| ← mallkrampus left | 15:34 |
| ← meator left | 15:34 |
|
bluesm
| I submitted pull request on bitbucket. Now after review I want to make small adjustment. What I do now. Make new commit on the branch that I asked to merge and then make new pull request or I can do it „inside” of one pull request? | 15:35 |
|
osse
| If you push a new commit to the branch then the PR will automatically reflect that | 15:35 |
|
bluesm
| osse: Thank you | 15:36 |
| ← CrtxReavr left | 15:36 |
| saroy → bytehackr | 15:38 |
| ← bloody left | 15:38 |
| → sandipan joined | 15:38 |
| ← bytehackr left | 15:39 |
| ← sandipan left | 15:39 |
| → bytehackr joined | 15:39 |
| → saroy joined | 15:39 |
| ← saroy left | 15:39 |
| ← bytehackr left | 15:39 |
| ← rgrinberg left | 15:40 |
| → saroy joined | 15:40 |
| → bloody joined | 15:40 |
| ← liefer left | 15:44 |
| → ThorMojito joined | 15:44 |
| → liefer joined | 15:44 |
| → mallkrampus joined | 15:47 |
| → DoofusCanadensis joined | 15:51 |
| → ChmEarl joined | 15:53 |
| ← pulse left | 15:54 |
| → Null_A joined | 15:55 |
| ← Komputilo left | 15:55 |
| → zmt00 joined | 15:58 |
| ← gh34 left | 16:00 |
| → gh34 joined | 16:00 |
| → lkor joined | 16:01 |
| ← lionkor left | 16:02 |
| ← kenanmarasli left | 16:07 |
| ← GNUmoon left | 16:08 |
|
jancoow
| So, my git keeps showing changes which are not there, it's the exact same code. However, git diff -b does show the correct changes without the duplicated one | 16:08 |
|
| I believe this has something to do with line endings, but I'm unable to solv eit | 16:08 |
|
| how can I solve this? | 16:08 |
|
DoofusCanadensis
| I've seen that happen with a repo created on a case-insensitive file system where the case of the filename changed | 16:10 |
|
jancoow
| it's not that. There are parts of the code changed | 16:10 |
|
| not the whole file | 16:10 |
|
| Im on linux now but it is commited on windows | 16:11 |
|
| or well, the file was edited in my windows virtual machine on my linux file system | 16:11 |
|
| and now I switched to an editor on linux | 16:11 |
|
osse
| jancoow: what does git show HEAD:path/to/file | file - say ? | 16:15 |
| → GNUmoon joined | 16:18 |
| → gas51627 joined | 16:20 |
| → jazzy2 joined | 16:21 |
| ← ThorMojito left | 16:25 |
| → neightchan joined | 16:28 |
| → cvmn joined | 16:28 |
| ← natechan left | 16:29 |
| jazzy2 → jazzy3 | 16:29 |
| jazzy3 → jazzy | 16:29 |
| ← GNUmoon left | 16:31 |
| → dextercd joined | 16:31 |
| → lionkor joined | 16:33 |
| ← lkor left | 16:34 |
| ← chemsmith left | 16:34 |
| → chemsmith joined | 16:35 |
| → GNUmoon joined | 16:42 |
| ← Murr left | 16:46 |
| → Murr joined | 16:47 |
| → lkor joined | 16:47 |
| ← lionkor left | 16:48 |
| → ThorMojito joined | 16:48 |
| ← theoceaniscool left | 16:48 |
| → harpia joined | 16:49 |
| ← pretty_dumm_guy left | 16:50 |
| → pretty_dumm_guy joined | 16:52 |
|
constxd
| Kings | 16:54 |
|
| Is there a more concise way to write: git diff HEAD $(git merge-base HEAD master) | 16:55 |
| → kenanmarasli joined | 16:55 |
|
constxd
| ahh | 16:57 |
|
| git diff master...HEAD | 16:57 |
|
| based | 16:57 |
| ← BlessJah left | 17:00 |
| → BlessJah joined | 17:02 |
| → Xaldafax joined | 17:03 |
| pah_ → pa | 17:08 |
| ← pa left | 17:08 |
| → pa joined | 17:08 |
| ← ThorMojito left | 17:10 |
|
osse
| thank mr friberg | 17:10 |
| ← shad left | 17:13 |
|
constxd
| osse: can you explain that reference? | 17:13 |
| ← durham left | 17:14 |
| → durham joined | 17:14 |
| ← harpia left | 17:29 |
| → Rashad joined | 17:30 |
| ← vladoski left | 17:31 |
| ← saroy left | 17:32 |
| → remyabel joined | 17:32 |
| → saroy joined | 17:36 |
| → cryptone1tor joined | 17:39 |
| → raffaele_ joined | 17:40 |
| ← raffaele__ left | 17:40 |
| → ThorMojito joined | 17:40 |
| ← pa left | 17:40 |
| ← cryptonector left | 17:43 |
| → pah joined | 17:43 |
| → Null_A_ joined | 17:52 |
| → Kobaz joined | 17:52 |
| ← pah left | 17:53 |
| → ___nick___ joined | 17:54 |
| ← Null_A left | 17:54 |
| ← w0ng left | 17:55 |
|
Kobaz
| hey so... i have a shared development server multiple people might log into to make commits in one working copy... what's a good way to enforce the names... like .gitconfig would have no name set, and then maybe use an environment variable to 'log in' and set the git commit userinfo? | 17:56 |
|
imMute
| Kobaz: short answer: don't do that. | 17:57 |
|
Kobaz
| i know | 17:57 |
|
| but, if I wanted to... | 17:57 |
|
DoofusCanadensis
| give them their own account on the server | 17:58 |
|
Kobaz
| there's a method to the madness | 17:58 |
|
| yeah i was thinking of that, and then su -p to keep the original user info | 17:58 |
|
DoofusCanadensis
| no | 17:58 |
|
| just their own account, let them clone into their work directory | 17:58 |
|
| fetch and push commits | 17:58 |
|
imMute
| yeah, don't use shared working trees... | 17:58 |
|
Kobaz
| yeah, no | 17:58 |
| → pah joined | 17:58 |
|
DoofusCanadensis
| this has all been figured out already | 17:59 |
|
| don't bypass the working model | 17:59 |
| → AmR joined | 17:59 |
|
Kobaz
| we don't work like that, certain things need to be in certain places, like system config files | 17:59 |
|
| can't be in local working directories | 17:59 |
|
| apache configs, whatever | 17:59 |
|
| typically each developer has their own vm, so everything is self-contained | 17:59 |
|
DoofusCanadensis
| deploy to production, don't edit in place | 17:59 |
|
Kobaz
| but then the unit testing server... anyone can log into | 17:59 |
|
mackerman
| Write automation scripts, rather than making the work tree itself the config files. | 17:59 |
|
DoofusCanadensis
| unit tests should be done on developer machines | 18:00 |
|
| integration tests with a CI server | 18:00 |
|
mackerman
| You need etckeeper level of hacks to keep the file permissions, that git doesn't preserve | 18:00 |
|
Kobaz
| right, that's level 1 for testing | 18:00 |
|
| and then the main unit test machine will test everyone's crap | 18:01 |
| → Null_A joined | 18:01 |
| ← Null_A_ left | 18:01 |
|
Kobaz
| so then i can just do su -p then to set the username | 18:02 |
|
| if there's no like env vars for it | 18:02 |
|
| i know there's best practices and whatnot, but in this case i have my reasons and i don't mind breaking the rules | 18:02 |
| → vicfred joined | 18:02 |
|
Kobaz
| oh, i can write a wrapper for git commit | 18:03 |
|
| etc | 18:03 |
|
| that'll work pretty well actually | 18:03 |
|
imMute
| honestly if you're so insistent on it, just use the env vars | 18:04 |
|
Kobaz
| okay well that was my question :) | 18:04 |
|
| wee GIT_COMMITTER_IDENT | 18:05 |
|
| yeah i just was wondering IF there were such things | 18:05 |
| pah → pa | 18:07 |
|
Kobaz
| so this is what i ran into | 18:08 |
|
| so if i remove [user] from .gitconfig | 18:08 |
|
| it sets default committer to root <root@whatever> | 18:08 |
|
| I think there's a setting to enforce the [user] stuff to be populated before you can commit? | 18:09 |
|
imMute
| user.useConfigOnly true | 18:10 |
|
| (note that "config" also means the env vars, not just config *files*) | 18:10 |
|
Kobaz
| k | 18:11 |
| → lionkor joined | 18:12 |
| ← lkor left | 18:13 |
| ← darkstardevx left | 18:14 |
| ← unluckyshrubbery left | 18:19 |
| → Milos joined | 18:22 |
| → Komputilo joined | 18:27 |
| ← saroy left | 18:28 |
| ← lionkor left | 18:28 |
| ← arcatech left | 18:32 |
| → unluckyshrubbery joined | 18:33 |
| → darkstardevx joined | 18:35 |
| → mei joined | 18:38 |
| ← Null_A left | 18:38 |
| → Null_A joined | 18:46 |
| ← cvmn left | 18:46 |
| → cvmn joined | 18:46 |
| ← DoofusCanadensis left | 18:57 |
| → DoofusCanadensis joined | 18:57 |
| ← dsrt^ left | 18:58 |
| → sebastorama joined | 19:04 |
| ← sebastorama left | 19:04 |
| → Fortran joined | 19:05 |
| → goldfish joined | 19:06 |
| → saroy joined | 19:06 |
|
Fortran
| Hello all. I have a question about git-checkout. I think I'm reading the man page correctly, but I can't seem to get something to work. | 19:07 |
|
imMute
| Fortran: what are you trying to do? what did you expect to happen? what actually happened? | 19:08 |
|
Fortran
| I'm wondering why `git checkout --detach branch-name` doesn't work for me. The git-checkout man page seems to say it should be possible. | 19:08 |
|
| ❯ git checkout --detach develop | 19:08 |
|
| fatal: '--detach' cannot be used with '-b/-B/--orphan' | 19:08 |
| ← mfiano left | 19:08 |
|
imMute
| Fortran: do you have checkout alised to something else?? | 19:09 |
| → mfiano joined | 19:10 |
| Hash → LordOfThePings | 19:10 |
|
Fortran
| Nope. I don't think so! | 19:11 |
|
osse
| it's not possible to alias checkout | 19:12 |
|
| what does 'type git' say | 19:12 |
| → sebastorama joined | 19:12 |
|
Fortran
| ❯ type git | 19:13 |
|
| git is /Users/mathomp4/bin/git | 19:13 |
|
| ❯ git --version | 19:14 |
|
| git version 2.33.1 | 19:14 |
| ← sebastorama left | 19:14 |
|
Fortran
| Note that is a symlink to a homebrew git. It's my way to make sure I don't get Apple/BSD git :) | 19:14 |
|
osse
| try GIT_TRACE=1 git checkout --detach develop | 19:15 |
|
Fortran
| Not too exciting: | 19:15 |
|
| ❯ GIT_TRACE=1 git checkout --detach develop | 19:15 |
|
| 15:15:16.037277 git.c:455 trace: built-in: git checkout --detach develop | 19:15 |
|
| fatal: '--detach' cannot be used with '-b/-B/--orphan' | 19:15 |
| → sebastorama joined | 19:15 |
|
osse
| at least I know your timezone | 19:16 |
|
Fortran
| :) | 19:16 |
|
osse
| does develop exist? | 19:17 |
| ← saroy left | 19:17 |
|
Fortran
| oh yes. | 19:17 |
|
| ❯ git checkout develop | 19:17 |
|
| Branch 'develop' set up to track remote branch 'develop' from 'origin'. | 19:17 |
|
| Switched to a new branch 'develop' | 19:17 |
|
osse
| now it does... it didn't before | 19:17 |
|
Fortran
| Ohhhh. Grah. Okay. | 19:18 |
| ← Shentino left | 19:18 |
|
osse
| my guess: 'git checkout nonexistent' uses -b under the hood, which is incompatible with --detach | 19:18 |
|
Fortran
| I always forget about that. | 19:18 |
|
| ❯ git checkout --detach origin/develop | 19:18 |
|
| HEAD is now at 43c39a6 Merge pull request #1134 from GEOS-ESM/feature/tclune/#530-nf90-string-support | 19:18 |
|
osse
| therefore the error | 19:18 |
| → webmariner joined | 19:19 |
| ← rkta left | 19:19 |
|
Fortran
| I guess I'm so used to checkout finding the origin when it's not local. Bad me. Okay. This might clean up some scripting I'm doing. Just need to append `origin/` | 19:19 |
| → rkta joined | 19:19 |
|
osse
| --detach is not needed with origin/develop by the way | 19:20 |
|
| it only has an effect for branches | 19:20 |
| → Shentino joined | 19:20 |
| → SnowCode joined | 19:23 |
|
Fortran
| Yeah. I just wanted to prove that to myself. I'm trying to fix up a tool that calls git underneath and I always want branches to initially be in detached-head state. For now, it might just be simplest to do `git checkout deadbeef` and then `git checkout --detach`. It's a no-op on tags and hashes if deadbeef is one, and does what I want on branches. | 19:23 |
|
SnowCode
| Hello, this is a pretty dumb question from me, but I'm trying to clean a repo. I've cleaned a big part locally, but I don't know how to push it to my remote. | 19:23 |
|
Fortran
| Thanks, osse for the help :) | 19:24 |
|
osse
| Fortran: pro-tip: git checkout deadbeef^{commit} | 19:24 |
|
SnowCode
| I've cleaned it, it's 400MB on my local but it's still 700MB on my remote | 19:24 |
| ← Fortran left | 19:25 |
|
ikke
| SnowCode: You cannot push removal of history | 19:25 |
|
SnowCode
| uh ? Really? | 19:25 |
|
| How can I clean my repo then? | 19:26 |
|
ikke
| Do you have direct access to the remote rpeository? | 19:26 |
|
SnowCode
| I am the owner of the repository yes | 19:26 |
| → juliopcrj joined | 19:26 |
|
ikke
| are you able to run git gc in the remote repository? | 19:26 |
|
SnowCode
| How do I know that? | 19:27 |
| → nehsou^ joined | 19:27 |
|
ikke
| do you have ssh access, or is the repository hosted? | 19:27 |
|
SnowCode
| I've run that locally but I don't know how to run it on my repo | 19:27 |
|
| The repository is on codeberg | 19:27 |
|
ikke
| ok, then it's not something you can do | 19:27 |
|
SnowCode
| Oh F. That really sucks. Why is it like that though? | 19:27 |
|
| I guess the only thing I can do is removing the repo and creating a new one from the clean version. | 19:28 |
| ← lemonsnicks left | 19:28 |
|
ikke
| if you made sure no branches refer to the old history anymore, it will cleaned up eventually | 19:28 |
| → lemonsnicks joined | 19:28 |
|
ikke
| Is there a reason you are concerned about this? | 19:29 |
|
SnowCode
| Thanks I guess I'll do that. But I don't understand why it's not possible to do that | 19:29 |
|
| the reason why I want to do that is because it always takes ages to clone | 19:29 |
| ← mei left | 19:29 |
|
osse
| that problem is fixed once you push up the new history | 19:29 |
|
ikke
| that probably means something is still referring to it | 19:29 |
|
osse
| or that | 19:30 |
|
SnowCode
| osse:What do you mean? | 19:30 |
|
| ikke:What is reffering to what? | 19:30 |
|
ikke
| git does not send objects when you clone that are not references | 19:30 |
|
SnowCode
| (btw I used bfg to clean the repo) | 19:30 |
|
osse
| SnowCode: I mean that when you clone, the remote site does some calculations to send you want you need. IF the remote repo is huge for some unrelated reason that won't affect clones | 19:30 |
|
ikke
| SnowCode: did you force push all branches? | 19:31 |
|
SnowCode
| Yes, there is actually only one branch | 19:31 |
| → theoceaniscool joined | 19:33 |
|
osse
| git ls-remote origin | 19:35 |
|
SnowCode
| osse:What do I have to do with that? | 19:36 |
|
ikke
| execute | 19:36 |
|
osse
| tell me what it says | 19:36 |
|
ikke
| and report | 19:36 |
|
SnowCode
| 5ac55f0693b07371d7d15ac4c3a6f023699ef056 HEAD | 19:36 |
|
| 5ac55f0693b07371d7d15ac4c3a6f023699ef056 refs/heads/main | 19:36 |
|
osse
| that's all? Ok, good. | 19:37 |
|
ikke
| git rev-parse refs/heads/main | 19:37 |
|
SnowCode
| 5ac55f0693b07371d7d15ac4c3a6f023699ef056 | 19:37 |
|
ikke
| ok, also expected | 19:37 |
| → ttree joined | 19:38 |
|
SnowCode
| Why did you ask me this? | 19:38 |
|
ikke
| SnowCode: our experience tought us to verify everything | 19:39 |
|
SnowCode
| You wanted to verify I had only one branch? | 19:39 |
|
ikke
| and no tags | 19:39 |
|
SnowCode
| oh ok | 19:39 |
|
osse
| If you do a separate clone, is that also bigger than expected? Or is it approx as big as the one you have locally now? | 19:40 |
|
SnowCode
| Is there a way I can now the size of a clone without cloning (to spare time and space on my device) | 19:41 |
|
| ? | 19:41 |
|
osse
| Not that I know of | 19:41 |
|
SnowCode
| OK | 19:41 |
|
osse
| I can clone it if you want | 19:41 |
|
SnowCode
| No imma do it | 19:41 |
|
| oh,it seems the download have the right size. I'm dumb | 19:42 |
|
| Well, thanks a lot for the help | 19:42 |
| → hrinsk joined | 19:43 |
|
osse
| then codeberg probably still reports the old (and likely current size) | 19:43 |
|
| but as mentioned it'll get cleaned, it's not relevant for clones, etc etc. | 19:43 |
|
SnowCode
| oh ok, If codeberg keeps everything, even stuff that are removed it must contain a ton of junk | 19:45 |
|
ikke
| git has garbage collection which runs every so often | 19:46 |
| ← jrofd left | 19:50 |
|
ikke
| So it will get cleaned up eventually | 19:50 |
|
SnowCode
| Oh OK | 19:51 |
| → pah joined | 19:51 |
| ← pa left | 19:52 |
| ← cvmn left | 19:52 |
| ← Shentino left | 19:53 |
| → Shentino joined | 19:53 |
| ← Shentino left | 19:54 |
| → Shentino joined | 19:54 |
| → tang^ joined | 20:00 |
| ← DoofusCanadensis left | 20:01 |
| → jrofd joined | 20:02 |
| ← pah left | 20:02 |
| → pah_ joined | 20:02 |
| ← ___nick___ left | 20:05 |
| ← unluckyshrubbery left | 20:05 |
| → unluckyshrubbery joined | 20:06 |
| → ___nick___ joined | 20:07 |
| ← ___nick___ left | 20:07 |
| → ___nick___ joined | 20:08 |
| → pulse joined | 20:09 |
| ← gas51627 left | 20:10 |
| ← jrofd left | 20:11 |
| ← hrinsk left | 20:16 |
| → wootehfoot joined | 20:16 |
| ← Rashad left | 20:20 |
| ← mfiano left | 20:20 |
| ← sebastorama left | 20:23 |
| → jess joined | 20:25 |
| ← tang^ left | 20:26 |
| → DoofusCanadensis joined | 20:27 |
| → hololeap_ joined | 20:31 |
| → nobody_ joined | 20:31 |
| ← lgc left | 20:31 |
| ← hololeap left | 20:32 |
| → sebastorama joined | 20:33 |
| ← sebastorama left | 20:33 |
| → sebastorama joined | 20:34 |
| ← constxd left | 20:37 |
| ← computeiro left | 20:38 |
| → ss4 joined | 20:39 |
| ← Null_A left | 20:40 |
| → Null_A joined | 20:41 |
| ← wootehfoot left | 20:42 |
| ← luke-jr left | 20:45 |
| → n8chan joined | 20:46 |
| ← Murr left | 20:46 |
| → luke-jr joined | 20:46 |
| → Murr joined | 20:47 |
|
berndj
| i need to grab an unfortunately binary file out of a bare repository; is git show deadbeef >/usr/local/bin/foo a safe way to do it? my concern here is line endings and that kind of nonsense | 20:47 |
| ← neightchan left | 20:48 |
| → ZacSharp joined | 20:50 |
| ← ZacSharp left | 20:51 |
| → ZacSharp joined | 20:51 |
| ← sebastorama left | 20:54 |
| → Betal joined | 20:54 |
| ← Komputilo left | 20:54 |
| → sebastorama joined | 20:58 |
| → TJ- joined | 20:58 |
| ← DoofusCanadensis left | 21:00 |
|
osse
| berndj: it will work | 21:02 |
|
ikke
| piping is binary safe | 21:02 |
|
berndj
| thanks. it happened to seem to work, i just wasn't sure if it *definitely* worked | 21:03 |
| ← madewokherd left | 21:04 |
| ← ___nick___ left | 21:04 |
| ← raghavgururajan left | 21:05 |
| ← GNUmoon left | 21:06 |
| ← unmanbearpig left | 21:07 |
| → Erisa6 joined | 21:11 |
| → raghavgururajan joined | 21:12 |
| ← nobody_ left | 21:13 |
| ← Erisa left | 21:14 |
| Erisa6 → Erisa | 21:14 |
| ← TJ- left | 21:14 |
| → jstein joined | 21:14 |
| → unmanbearpig joined | 21:15 |
| → hrinsk joined | 21:16 |
| ← ss4 left | 21:21 |
| ← hrinsk left | 21:23 |
| ← epolanski left | 21:25 |
| → llh joined | 21:27 |
| ← gh34 left | 21:33 |
| → w0ng joined | 21:34 |
| → madewokherd joined | 21:41 |
| ← mallkrampus left | 21:46 |
| ← jstein left | 21:54 |
| ← mannequin left | 21:56 |
| ← pretty_dumm_guy left | 22:00 |
| → pretty_dumm_guy joined | 22:01 |
| → mallkrampus joined | 22:03 |
| ← kenanmarasli left | 22:06 |
| ← sebastorama left | 22:06 |
| ← durham left | 22:08 |
| ← AmR left | 22:08 |
| → durham joined | 22:09 |
| → GNUmoon joined | 22:09 |
| → DoofusCanadensis joined | 22:11 |
| → durham_ joined | 22:13 |
| ← durham left | 22:13 |
| → hbautista joined | 22:14 |
| ← goldfish left | 22:20 |
| → m0viefreak joined | 22:22 |
| ← jetchisel left | 22:24 |
| → rgrinberg joined | 22:27 |
| ← ThorMojito left | 22:29 |
| → ZacSharp12 joined | 22:30 |
| → kaichiuchu joined | 22:31 |
| → vdamewood joined | 22:34 |
| ← ZacSharp left | 22:34 |
| → alphasierra joined | 22:38 |
| ZacSharp12 → ZacSharp | 22:41 |
| → causa_sui joined | 22:42 |
| ← alphasierra left | 22:44 |
| → jetchisel joined | 22:46 |
| ← Murr left | 22:46 |
| → Murr joined | 22:47 |
| ← juliopcrj left | 22:50 |
| ← junktext left | 22:50 |
| → harpia joined | 22:55 |
| ← SnowCode left | 22:57 |
| → retro_ joined | 22:59 |
| ← retroid_ left | 22:59 |
| ← palasso left | 23:03 |
| ← pizdets_ left | 23:03 |
| ← harpia left | 23:03 |
| → harpia joined | 23:03 |
| → pizdets joined | 23:03 |
| ← Swahili left | 23:05 |
| ← alkino_ left | 23:05 |
| → Xenguy joined | 23:06 |
| ← loki_val left | 23:07 |
| → crabbedhaloablut joined | 23:07 |
| → alkino joined | 23:08 |
| ← dextercd left | 23:08 |
| → jrofd joined | 23:09 |
| ← i7c left | 23:09 |
| → i7c joined | 23:09 |
|
twb
| berndj: git show deadbee:porn.exe | 23:17 |
|
| berndj: if you just ask for a commit, it will show a diff | 23:17 |
|
berndj
| twb, yeah unfortunately the binary i had to pick out was one among several in the commit | 23:18 |
| ← vicfred left | 23:18 |
|
twb
| that's why you specify the binary name also (porn.exe) | 23:18 |
| → Swahili joined | 23:19 |
|
berndj
| oh i see, no i think you've fallen prey to an ambiguity in my question. my "deadbeef" was a blob id, not a commit id | 23:19 |
|
twb
| ah | 23:19 |
|
| carry on then | 23:20 |
|
berndj
| or whatchamacallit; the hex string next to the filename in whatchanged output | 23:20 |
| ← mschorm left | 23:21 |
| → masber joined | 23:22 |
| → ferdna joined | 23:22 |
| ← vdamewood left | 23:24 |
| ← rgrinberg left | 23:24 |
| → igemnace joined | 23:30 |
| → mschorm joined | 23:33 |
| → ThorMojito joined | 23:34 |
| → hbautista_ joined | 23:35 |
| ← hbautista left | 23:38 |
| → Raguile joined | 23:39 |
| ← DoofusCanadensis left | 23:39 |
| ← masber left | 23:46 |
| ← eblip left | 23:49 |
| → molt joined | 23:51 |
| ← ThorMojito left | 23:55 |
| → eblip joined | 23:55 |