| 2022-01-14 |
| ← Gustavo6046 left | 00:01 |
| ← yagamilito left | 00:02 |
| → Gustavo6046 joined | 00:06 |
|
puff
| Evening. Long story short, I backed up my linux laptop to an external drive a couple months ago, upgraded the hard drive, restored... and because the external drive was vfat, it mangled the file perms. | 00:10 |
|
| Now "git status" is telling me the file perms on a bunch of files are different. | 00:10 |
|
| I'm trying to decide the best way to fix this. So far my bright idea is to pipe "git status" into a file to get the list of problem files, then use emacs to massage that into a brute force shell script to chmod everything to what git thinks it should be. | 00:11 |
| ← rgrinberg left | 00:13 |
|
Nei
| given that you don't have any other changes, you could git reset --hard | 00:15 |
|
| be careful lest you throw away some uncommitted changes tho | 00:16 |
| ← hasu left | 00:16 |
| → hbautista joined | 00:16 |
|
puff
| Nei: hm... | 00:17 |
|
| That might actually be easiest. | 00:17 |
| ← fikran left | 00:19 |
|
puff
| well, I still have the backups, let's give this a shot. | 00:20 |
|
| Nei: Thanks. | 00:20 |
|
Nei
| wrong perms can be a pita :) | 00:20 |
| → fikran joined | 00:20 |
| ← phylaz left | 00:21 |
|
bookworm
| git doesn't track permissions but the execute bit | 00:23 |
|
| so... backing up a fs in git isn't exactly working | 00:24 |
|
puff
| bookworm: ? | 00:24 |
|
| bookworm: Was that to me? If so, I'm not following. | 00:24 |
| → Gaboradon joined | 00:24 |
| → chenqisu1 joined | 00:25 |
|
Nei
| it cannot perfectly restore your perms | 00:27 |
|
| but probably good enough for your repo anyway | 00:27 |
|
| ;-)) | 00:27 |
| → hasu joined | 00:28 |
| ← TonyStone left | 00:31 |
| ← palasso left | 00:32 |
| ← anaveragehuman left | 00:39 |
| → causasui joined | 00:42 |
| ← chenqisu1 left | 00:44 |
| → fabrao joined | 00:45 |
| ← Yruama left | 00:49 |
| ← m0viefreak left | 00:52 |
| → jazzy joined | 00:53 |
| ← hasu left | 00:59 |
| ← mat001_ left | 01:03 |
| ← Strom left | 01:10 |
| → Strom joined | 01:12 |
| ← pretty_dumm_guy left | 01:12 |
| → Xenguy joined | 01:14 |
| ← madewokherd left | 01:21 |
| ← Gaboradon left | 01:22 |
| ← nyah left | 01:22 |
| ← perrierjouet left | 01:26 |
| ← Murr left | 01:28 |
| → Murr joined | 01:28 |
| ← igemnace left | 01:35 |
| ← ColdKeyboard left | 01:36 |
| → Gaboradon joined | 01:38 |
| → rgrinberg joined | 01:49 |
| → TonyStone joined | 02:05 |
| ← kaichiuc1u left | 02:06 |
| ← rgrinberg left | 02:06 |
| → rgrinberg joined | 02:08 |
| → perrierjouet joined | 02:08 |
| ← Gurkenglas left | 02:17 |
| → kaichiuchu joined | 02:19 |
| ← rewt left | 02:21 |
| → rewt joined | 02:23 |
| ← rewt left | 02:24 |
| → anaveragehuman joined | 02:26 |
| ← perrierjouet left | 02:26 |
| → rewt joined | 02:26 |
| ← rewt left | 02:26 |
| → madewokherd joined | 02:27 |
| ← BSaboia left | 02:27 |
| ← fikran left | 02:28 |
| → chenqisu1 joined | 02:28 |
| → BSaboia joined | 02:29 |
| ← fstd_ left | 02:29 |
| → fstd joined | 02:29 |
| → perrierjouet joined | 02:30 |
| → fikran joined | 02:30 |
| → rewt joined | 02:33 |
| ← rgrinberg left | 02:36 |
| → thumbs joined | 02:36 |
| → rgrinberg joined | 02:38 |
| ← xkoncek left | 02:40 |
| → xkoncek joined | 02:41 |
| → vagabond_ joined | 02:41 |
|
vagabond_
| Hello | 02:42 |
|
| I got here after being told from another channel of #git on freenode. | 02:43 |
|
| Am I in the right place? | 02:43 |
|
| I have some questions about git submodules, and need to find help. | 02:44 |
|
mackerman
| Yes, this is the #git that was formerly on freenode. | 02:47 |
|
vagabond_
| Thank you. | 02:47 |
| ← Swahili left | 02:48 |
| → Swahili joined | 02:49 |
| ← pmcnabb left | 02:49 |
|
vagabond_
| So, about submodules, I have managed to clone one into my project. But the submodule itself is not quite enough to be used right away, and I needed to add some small patches to make it work with my project. | 02:50 |
|
| Now, what do I do to make the patch available when cloning my project? | 02:50 |
|
| My research has led me to answers that says I have to push my patch into the upstream submodule. | 02:52 |
|
| Is there a way to make the patch unique to my project only? | 02:52 |
|
| Or is there a way to achieve the same result with git subtree? | 02:52 |
| ← Swahili left | 02:53 |
| ← tkazi left | 02:56 |
| → tkazi joined | 02:57 |
| ← duderonomy left | 02:59 |
| ← FinnElija left | 03:10 |
| → finn_elija joined | 03:10 |
| finn_elija → FinnElija | 03:10 |
| ← anaveragehuman left | 03:20 |
| ← vagabond_ left | 03:21 |
| hendry1 → hendry | 03:22 |
| → vagabond_ joined | 03:25 |
| ← pyeve____ left | 03:26 |
| → ColdKeyboard joined | 03:26 |
| ← perrierjouet left | 03:30 |
| ← fabrao left | 03:37 |
| → mven joined | 03:40 |
| ← justsomeguy left | 03:45 |
| → kaiseisei joined | 03:55 |
| ← vagabond_ left | 03:55 |
| → perrierjouet joined | 03:56 |
| → jdeep joined | 04:00 |
| ← jdeep left | 04:03 |
| ← cdown left | 04:07 |
| ← perrierjouet left | 04:18 |
| ← ChmEarl left | 04:19 |
| ← fikran left | 04:21 |
| ← atrigent left | 04:21 |
| ← bket left | 04:23 |
| ← tyson2 left | 04:30 |
| → bket joined | 04:32 |
| ← ferdna left | 04:32 |
| → Kilroy7 joined | 04:41 |
| ← SleePy left | 04:41 |
| → SleePy joined | 04:42 |
| ← Kilroy left | 04:42 |
| Kilroy7 → Kilroy | 04:42 |
| → vysn joined | 04:45 |
| ← rgrinberg left | 04:49 |
| → rgrinberg joined | 04:50 |
| → rapiz joined | 04:52 |
| ← Thanatermesis left | 04:53 |
| → Thanatermesis joined | 04:53 |
| ← rapiz left | 04:54 |
| ← wwwi left | 04:55 |
| ← arcatech left | 04:55 |
| → wwwi joined | 04:57 |
| → bytehackr joined | 05:03 |
| ← swistak left | 05:06 |
| ← Quack left | 05:07 |
| ← tar_xvf left | 05:08 |
| ← shokohsc left | 05:10 |
| ← ghost43 left | 05:12 |
| ← bindu left | 05:12 |
| → shokohsc joined | 05:12 |
| → bindu joined | 05:13 |
| → crashrep joined | 05:13 |
| → ghost43 joined | 05:13 |
| ← crashrep left | 05:15 |
| → crashrep joined | 05:15 |
| ← crashrep left | 05:15 |
| → crashrep joined | 05:15 |
| → madewokherd` joined | 05:18 |
| → lgc joined | 05:20 |
| ← lgc left | 05:20 |
| ← crashrep left | 05:21 |
| ← madewokherd left | 05:21 |
| → crashrep joined | 05:21 |
| ← The_Blode left | 05:22 |
| ← Ashburry left | 05:24 |
| → domini_ joined | 05:24 |
| ← domini_ left | 05:25 |
| → jusski joined | 05:25 |
| ← crashrep left | 05:29 |
| → crashrep joined | 05:29 |
| → The_Blode joined | 05:30 |
| → swistak joined | 05:31 |
| → Quack joined | 05:33 |
| ← crashrep left | 05:33 |
| → crashrep joined | 05:33 |
| ← hbautista left | 05:38 |
| ← crashrep left | 05:49 |
| → crashrep joined | 05:49 |
| ← andypandy_ left | 05:51 |
| → andypandy joined | 05:54 |
|
hendry
| i'm looking to generate some output to go into a slack channel when there is a git update. is there any guidance how to get a nicely formatted slack message showing the Author, Commit message, summary of file changes? | 05:55 |
|
ikke
| hendry: not sure what slack expects, but you can do some things with git log --format | 05:56 |
| ← Thanatermesis left | 05:56 |
| → ephemer0l joined | 05:59 |
|
hendry
| i want to show details of a particular commit push, `git log` afaict does a listing right? ... i think what i'm after is something like `git show --stat --oneline` | 05:59 |
| ← AbleBacon left | 05:59 |
|
ikke
| You'd use something like a post-update hook, that shows you want commits were pushed | 06:00 |
|
| git log also can show --stat | 06:00 |
| ← Anu left | 06:06 |
| → Anu joined | 06:06 |
| ← skapata left | 06:19 |
| ← jusski left | 06:21 |
| ← bloody left | 06:21 |
| → whatsupdoc joined | 06:24 |
| ← cbreak left | 06:25 |
| → cbreak joined | 06:26 |
| ← causasui left | 06:27 |
| → cerill joined | 06:28 |
| ← keypusher left | 06:31 |
| ← thiago left | 06:34 |
|
hendry
| i'm puzzled how to just show author name and email from HEAD now. git show --format='%an <%ae>' HEAD // shows the diff too | 06:35 |
| ← cdleonard left | 06:36 |
| → cdleonard joined | 06:36 |
|
ikke
| add -s | 06:37 |
| → loki_val joined | 06:38 |
|
hendry
| ikke: thank you | 06:39 |
| ← crabbedhaloablut left | 06:39 |
| → causasui joined | 06:43 |
| → mat001 joined | 06:44 |
| → GlitterCooper joined | 06:45 |
|
GlitterCooper
| .random | 06:47 |
|
gitinfo
| <+artagnon> Analytical neuroscience tastes good. [12] | 06:47 |
| ← causasui left | 06:47 |
| → jazzy2 joined | 06:49 |
| ← jazzy2 left | 06:50 |
| → jazzy2 joined | 06:50 |
| ← molt left | 06:51 |
| ← mat001 left | 06:51 |
| → mat001_ joined | 06:51 |
| ← trilobite left | 06:52 |
| → trilobite joined | 06:52 |
| ← jazzy left | 06:52 |
| → Xavier7 joined | 06:53 |
| ← MichaelK left | 06:56 |
| ← jazzy2 left | 06:59 |
| → jazzy2 joined | 06:59 |
| → causasui joined | 06:59 |
| ← causasui left | 07:04 |
| → carl-- joined | 07:05 |
| ← xkuru left | 07:08 |
| → murii joined | 07:09 |
| ← GlitterCooper left | 07:11 |
| ← Masklin_Gurder left | 07:14 |
| → causasui joined | 07:15 |
| → atrigent joined | 07:16 |
| ← Novi left | 07:18 |
| ← causasui left | 07:19 |
| → Novi joined | 07:22 |
| ← mat001_ left | 07:28 |
| ← great_taste left | 07:32 |
| → causasui joined | 07:32 |
| ← causasui left | 07:37 |
| ← wyre left | 07:40 |
| → wyre joined | 07:41 |
| ← emf left | 07:45 |
| → emf joined | 07:47 |
| → kenanmarasli joined | 07:49 |
| → a6a45081-2b83 joined | 07:51 |
| ← mw_ left | 07:51 |
| → mw_ joined | 07:51 |
| frobnic_ → frobnic | 07:54 |
| ← hoochmonger left | 07:56 |
| → hoochmonger joined | 07:58 |
| → palasso joined | 07:58 |
| ← Jenna16bit left | 08:02 |
| → Jenna16bit joined | 08:02 |
| → dansan_ joined | 08:03 |
| ← dansan left | 08:03 |
| ← Xavier7 left | 08:04 |
| ← unluckyshrubbery left | 08:04 |
| → otisolsen70 joined | 08:08 |
| → coot joined | 08:16 |
| → feriman joined | 08:18 |
| → TheCatBehemoth joined | 08:18 |
| ← Karyon left | 08:19 |
| → Karyon_ joined | 08:19 |
| ← a6a45081-2b83 left | 08:22 |
| → causasui joined | 08:22 |
| ← rgrinberg left | 08:24 |
| → Lemuria joined | 08:25 |
| ← Lemuria left | 08:25 |
| ← causasui left | 08:27 |
| ← bytehackr left | 08:28 |
| ← Gaboradon left | 08:37 |
| → Gaboradon joined | 08:37 |
| → gustik joined | 08:39 |
| → causasui joined | 08:39 |
| ← Gaboradon left | 08:40 |
| → Gaboradon joined | 08:41 |
| ← atrigent left | 08:41 |
| ← causasui left | 08:44 |
| → AnapodoPsalidi joined | 08:47 |
| ← AnapodoPsalidaki left | 08:50 |
| ← crashrep left | 08:51 |
| → crashrep joined | 08:52 |
| ← crashrep left | 08:53 |
| → AnapodoPsalidaki joined | 08:54 |
| ← AnapodoPsalidi left | 08:55 |
| → causasui joined | 08:56 |
| → Gurkenglas joined | 08:57 |
| → crashrep joined | 08:58 |
| → igemnace joined | 08:58 |
| ← Codaraxis_ left | 09:00 |
| → structoha joined | 09:01 |
| → Codaraxis_ joined | 09:01 |
| ← causasui left | 09:01 |
| → Ashburry joined | 09:01 |
| ← GreenAlpaca left | 09:03 |
| → GreenAlpaca joined | 09:04 |
| → omnio joined | 09:05 |
| → dviola joined | 09:07 |
| ← durham left | 09:09 |
| → AnapodoPsalidi joined | 09:09 |
| → Lemuria joined | 09:11 |
| ← Lemuria left | 09:11 |
| ← elastic_dog left | 09:12 |
| ← AnapodoPsalidaki left | 09:12 |
| → causasui joined | 09:13 |
| → perrierjouet joined | 09:13 |
| → adhawkins joined | 09:14 |
|
adhawkins
| I just made a branch while on another branch, so the new branch uses the other branch as its source. I haven't made any commits yet. Is there any way to change the 'root' of the branch I've just created to master? I realise I could just delete it and recreate it, but trying to expand my knowledge. | 09:15 |
| ← fling left | 09:17 |
| ← causasui left | 09:17 |
| → elastic_dog joined | 09:17 |
| → fling joined | 09:18 |
|
j416
| adhawkins: it's not based on the other branch, it's based just on the same commit. You can delete and create it anew as you say. Or, you can check it out and reset to master. | 09:19 |
|
adhawkins
| j416: So essentially 'git reset --hard master'? | 09:20 |
|
j416
| adhawkins: yep. take care to make sure you have everything committed as reset --hard will destroy any uncommitted changes. | 09:20 |
|
| adhawkins: side-note, if you had made commits, rebase with --onto would be an easy fix. | 09:20 |
| ← Gustavo6046 left | 09:22 |
|
adhawkins
| Ok. No changes made, I realised my mistake as soon as I created the branch (I keep doing it in fact - maybe I should make an alias1) | 09:22 |
| → zen_coder joined | 09:22 |
| ← crashrep left | 09:22 |
| → crashrep joined | 09:23 |
| ← trafficjam left | 09:24 |
| → qubes joined | 09:24 |
| ← qubes left | 09:24 |
| → gittone joined | 09:25 |
| ← hgl left | 09:25 |
| → hgl joined | 09:25 |
| ← hgl left | 09:25 |
| → hgl joined | 09:25 |
|
j416
| you can also use git branch -f | 09:25 |
| ← wre^ left | 09:27 |
| ← Murr left | 09:27 |
| → Murr joined | 09:28 |
| ← crashrep left | 09:28 |
| → causasui joined | 09:29 |
| → tirnanog joined | 09:31 |
| ← causasui left | 09:33 |
| ← perrierjouet left | 09:35 |
| ← elastic_dog left | 09:36 |
|
adhawkins
| Cool. Been using git for years and still learning! Thanks j416 | 09:37 |
| ← GreenAlpaca left | 09:37 |
| ← Betal left | 09:39 |
| → zer0bitz joined | 09:41 |
| → elastic_dog joined | 09:42 |
| → causasui joined | 09:45 |
| → RiFo joined | 09:46 |
| ← causasui left | 09:50 |
| → MajorBiscuit joined | 09:51 |
| ← MajorBiscuit left | 09:51 |
| → MajorBiscuit joined | 09:51 |
| → unluckyshrubbery joined | 09:52 |
| → martti joined | 09:53 |
|
martti
| my tools keep coming up with new problems almost daily at this point. `git submodule sync --recursive; git submodule update --init --recursive --remote` in my project now fails with "Error: invalid branch: ." | 09:54 |
|
| the output has been identified as coming from elsewhere. never mind. | 09:58 |
| → dsrt^ joined | 09:58 |
| → crashrep joined | 09:59 |
| → perrierjouet joined | 10:00 |
| → abu joined | 10:02 |
| → causasui joined | 10:02 |
| ← adhawkins left | 10:03 |
| ← causasui left | 10:06 |
| → duxsco joined | 10:08 |
| ← Lord_of_Life left | 10:08 |
| martti → mar77i | 10:10 |
| → murii_ joined | 10:10 |
| ← murii left | 10:11 |
| → GreenAlpaca joined | 10:14 |
| ← GreenAlpaca left | 10:14 |
| → omnio_ joined | 10:15 |
| ← omnio left | 10:16 |
| → FollowTheRabbit joined | 10:18 |
| ← FollowTheRabbit left | 10:19 |
| → causasui joined | 10:19 |
| ← very_sneaky left | 10:20 |
| ← duxsco left | 10:21 |
| → very_sneaky joined | 10:22 |
| ← causasui left | 10:23 |
| ← Akiva left | 10:27 |
| → Swahili joined | 10:28 |
| → vaio joined | 10:28 |
| ← cerill left | 10:31 |
| → tulpa_ joined | 10:36 |
| → causasui joined | 10:37 |
| ← gustik left | 10:41 |
| ← causasui left | 10:41 |
| ← Techcable left | 10:44 |
| → ferr_ joined | 10:45 |
| ← fercell left | 10:45 |
| → Guest31 joined | 10:46 |
| → fercell joined | 10:52 |
| ← ferr_ left | 10:53 |
| ← elastic_dog left | 10:53 |
| → elastic_dog joined | 10:54 |
| ← chenqisu1 left | 10:55 |
|
makara1
| so I see there's a partial clone. How can I do a partial fetch? | 11:00 |
|
jast
| I don't think it's possible yet | 11:01 |
|
| I mean you can experiment with changing the config for an existing repo/remote: remote.foo.promisor and remote.foo.partialclonefilter | 11:03 |
| → john_johnk joined | 11:03 |
|
jast
| not sure if that use case is supported, I've never used partial clone myself | 11:03 |
| → Masklin_Gurder joined | 11:04 |
|
makara1
| im happy to wait. I just use --depth=1 but Jenkins can't generate a decent changelog between builds | 11:05 |
| → Lord_of_Life joined | 11:07 |
| → enoq joined | 11:07 |
| ← abu left | 11:09 |
| ← zer0bitz left | 11:11 |
| → causasui joined | 11:12 |
| → zer0bitz joined | 11:13 |
| ← coot left | 11:14 |
| → coot joined | 11:15 |
| ← tulpa_ left | 11:15 |
| → tulpa_ joined | 11:16 |
| ← causasui left | 11:16 |
| → tyson2 joined | 11:17 |
| ← john_johnk left | 11:17 |
| ← tyson2 left | 11:26 |
| → causasui joined | 11:28 |
| ← vishal left | 11:30 |
| ← Byteflux left | 11:32 |
| ← causasui left | 11:32 |
| → Byteflux joined | 11:33 |
| → tyson2 joined | 11:34 |
| → vishal joined | 11:36 |
| ← perrierjouet left | 11:37 |
|
furrymcgee
| submodules are kind of partial repositories, there is --depth option in submodule add command | 11:42 |
| ← crashrep left | 11:43 |
| → crashrep joined | 11:43 |
| ← Guest31 left | 11:44 |
| → nyah joined | 11:44 |
| → AnapodoPsalidaki joined | 11:46 |
| ← AnapodoPsalidi left | 11:47 |
| → AnapodoPsalidi joined | 11:48 |
| ← AnapodoPsalidaki left | 11:51 |
|
j416
| makara1: you might want to look at clone --filter; man git-clone to keep history but filter out objects | 11:52 |
|
gitinfo
| makara1: the git-clone manpage is available at https://gitirc.eu/git-clone.html | 11:52 |
|
j416
| perhaps this is the same as jast mentions (?), only as flag instead of config. | 11:53 |
|
makara1
| i don't want to use clone | 11:54 |
|
j416
| aha; I thought that was what you were doing. Maybe I misread. | 11:54 |
| ← MajorBiscuit left | 11:59 |
| → MajorBiscuit joined | 11:59 |
| ← omnio_ left | 12:00 |
| ← palasso left | 12:01 |
| ← Codaraxis_ left | 12:02 |
| → palasso joined | 12:02 |
| → Codaraxis_ joined | 12:03 |
| → cdown joined | 12:04 |
| ← CMAraujo87 left | 12:07 |
| → node1 joined | 12:07 |
| → hex_ joined | 12:07 |
| ← hex_ left | 12:07 |
| ← enoq left | 12:09 |
| ← structoha left | 12:15 |
| → causasui joined | 12:18 |
| → keypusher joined | 12:23 |
| ← node1 left | 12:24 |
| ← causasui left | 12:24 |
| ← omero left | 12:25 |
| → Techcable joined | 12:26 |
| → keypushe- joined | 12:26 |
| ← keypusher left | 12:27 |
| keypushe- → keypusher | 12:30 |
| jazzy2 → jazzy | 12:31 |
| ← whatsupdoc left | 12:33 |
| → spare joined | 12:35 |
| → causasui joined | 12:36 |
|
wwwi
| hello | 12:40 |
| → iomari891 joined | 12:41 |
| ← causasui left | 12:41 |
|
wwwi
| suppose i change a file in branch master, then in branch new I also change the file, then I run git merge to merge the differences, why would i want to do git rebase instead? | 12:41 |
| → GreenAlpaca joined | 12:43 |
|
makara1
| well you can avoid the merge commit | 12:44 |
| ← GreenAlpaca left | 12:45 |
|
jast
| wwwi: !merge_vs_rebase | 12:50 |
|
gitinfo
| wwwi: [!merge_or_rebase] For a detailed discussion of the dis-/advantages of merge and rebase, and when to best use which, see: https://coderwall.com/p/ny1hia -- and here's how Linus explains which one to use: http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg39091.html | 12:50 |
| → causasui joined | 12:55 |
| → john_johnk joined | 12:56 |
| → enoq joined | 12:56 |
| → mannequin joined | 12:58 |
| ← kenanmarasli left | 12:59 |
| ← causasui left | 13:00 |
|
wwwi
| thank you makara1 and jast | 13:02 |
| ← kaiseisei left | 13:02 |
| ← warthog9 left | 13:03 |
| → GlitterCooper joined | 13:03 |
|
wwwi
| is it ok to never use rebase and rely on merge all tgether? | 13:04 |
|
makara1
| sure | 13:05 |
|
bremner
| that depends on the project, but if it's just you, then sure | 13:05 |
|
wwwi
| makara1, ok | 13:05 |
| → goldfish joined | 13:05 |
|
wwwi
| thank you makara1 and bremner | 13:05 |
| → warthog9 joined | 13:06 |
| ← jazzy left | 13:07 |
| ← gittone left | 13:08 |
| → causasui joined | 13:11 |
| ← tsujp left | 13:13 |
| → epolanski joined | 13:14 |
| ← causasui left | 13:16 |
| → perrierjouet joined | 13:26 |
| ← Murr left | 13:27 |
| → Murr joined | 13:27 |
| ← MajorBiscuit left | 13:29 |
| → MajorBiscuit joined | 13:29 |
| → rsx joined | 13:33 |
| ← john_johnk left | 13:36 |
| ← perrierjouet left | 13:39 |
| ← troyt left | 13:41 |
| → bytehackr joined | 13:44 |
| → causasui joined | 13:45 |
| → DrowningElysium joined | 13:49 |
| → perrierjouet joined | 13:49 |
| ← GlitterCooper left | 13:50 |
| ← causasui left | 13:50 |
| ← goldfish left | 13:50 |
| Karyon_ → Karyon | 13:59 |
| → omnio_ joined | 14:00 |
| → thiago joined | 14:05 |
| → bloody joined | 14:09 |
|
fakuve
| Hi again guys , by creating simultaneous worktrees , can you simultaneously commit the changes on eachone of them ? | 14:12 |
|
| Then removing the worktrees once finnshed? (so a way to modify branches simultaneously) | 14:13 |
| → fikran joined | 14:13 |
|
fakuve
| Or it is mostly intended to compare files | 14:13 |
|
| but not modifying the current HEAD branch | 14:13 |
|
| (I mean not modifyig the rest that are not the HEAD branch) | 14:14 |
| ← enoq left | 14:14 |
| → causasui joined | 14:18 |
|
osse
| fakuve: you can commit in all worktrees yes | 14:19 |
| ← FinnElija left | 14:20 |
| → FinnElija joined | 14:20 |
|
fakuve
| osse: ok cheers | 14:21 |
| ← MajorBiscuit left | 14:21 |
| → stef204 joined | 14:22 |
| ← causasui left | 14:22 |
| ← stef204 left | 14:23 |
| ← Xenguy left | 14:24 |
| ← vakera_pingveno left | 14:31 |
| → MajorBiscuit joined | 14:32 |
| ← omnio_ left | 14:33 |
| ← kaichiuchu left | 14:34 |
| → vatralum_ joined | 14:39 |
| → PCatinean joined | 14:39 |
| ← iomari891 left | 14:40 |
| → stef204 joined | 14:40 |
| → Thanatermesis joined | 14:41 |
| → xkuru joined | 14:50 |
| ← hoochmonger left | 14:52 |
|
fakuve
| Once I commit a project can I recall previous commits oh that same project? | 14:52 |
|
| (meaning files and filestructure? ) or that is impossible? | 14:52 |
| vatralum_ → vatralum | 14:53 |
|
osse
| define recall | 14:53 |
|
fakuve
| So my case. I'm using an html template to create a website | 14:53 |
| → hoochmonger joined | 14:53 |
|
fakuve
| (pretty normal stuff in compare with what you may do guys) | 14:53 |
|
| So , I'm modifying it with my things , but I would like to be able to get back to the initial state of the template | 14:54 |
|
| Also if possible the middle commits "snapshots" ... | 14:54 |
|
| should I want to revert something back | 14:54 |
| → node1 joined | 14:55 |
|
fakuve
| Do I have to create new branches for that? | 14:55 |
|
| Or does git keeps track of every single file in the project at every single commit? | 14:55 |
|
mackerman
| "git switch" will set your working tree, the files, to that branch | 14:55 |
|
osse
| yes, to the latter. | 14:55 |
|
| and you can craeate new branches starting off at older commits | 14:56 |
|
fakuve
| Ok so thats the way to go | 14:56 |
|
| Create new branches | 14:56 |
|
osse
| makes the most sense to me | 14:57 |
|
| but you can overwrite all you have now with what you had before | 14:57 |
|
mackerman
| You also can extract any tree into a tar or zip with "git archive" | 14:57 |
|
fakuve
| mackerman: that makes sense | 14:58 |
|
mackerman
| Including tags, so you might tag a release, archive it, and package it up for use. | 14:58 |
|
fakuve
| osse: Ok so you are saying it is a bit risky if I don't pay attention | 14:58 |
| → atrigent joined | 14:58 |
|
osse
| No I'm not saying that | 14:59 |
| → gast0n joined | 14:59 |
|
fakuve
| Ok , alright I see | 14:59 |
|
| I will do my research from here | 14:59 |
|
osse
| I mean intentionally overwrite, in a new commit | 14:59 |
|
| which you can revert as you please | 14:59 |
|
fakuve
| Oks | 15:00 |
|
osse
| as long as you commit, nothing is risky. sort of | 15:00 |
|
fakuve
| Ok I see , thanks again! | 15:00 |
| ← node1 left | 15:01 |
| ← tyson2 left | 15:03 |
|
fakuve
| One thing you may know or not know in here (this is more github) , are there any implications with naming a branch `gh-pages` ? I could post a website regardless of naming it `gh-pages` or `master` or whatever | 15:09 |
| → great_taste joined | 15:09 |
| ← dsrt^ left | 15:10 |
|
osse
| with gh-pages github will host it for you, no? | 15:12 |
|
| as in actually render it | 15:12 |
| → causasui joined | 15:12 |
| ← gast0n left | 15:12 |
|
fakuve
| osse: it renders anyways I guess | 15:13 |
|
| I don't know if it is a matter of this `jekyll` pages | 15:13 |
|
| but static pages are been served regardless of the branchName | 15:14 |
| → skapata joined | 15:14 |
| ← skapata left | 15:14 |
| → skapata joined | 15:14 |
| ← vatralum left | 15:15 |
|
mackerman
| Branch name to build GitHub pages should be configurable. | 15:15 |
|
Nei
| in the first version of github, they were only rendered when the branch was named gh-pages | 15:15 |
|
mackerman
| For more on that see ##github channel | 15:15 |
| → vatralum joined | 15:15 |
|
Nei
| nowadays I think it's still the default but freely configurable | 15:15 |
| ← causasui left | 15:17 |
| ← vatralum left | 15:18 |
| → vatralum joined | 15:18 |
| → Vonter joined | 15:18 |
| ← AnapodoPsalidi left | 15:19 |
| → Student joined | 15:20 |
|
Student
| Is that 760 people connected to this chat? | 15:22 |
|
OnlineCop
| In my repo, I've got both new and modified files. I want to stash one of the new files: `git add my_script.sh; git stash push --[some_commands_here]` but I don't want it to stash any of the other new/modified files. Will `stash push`ing with no arguments (other than `-m` commit message) stash only this single file that I've added to the index? | 15:23 |
|
| 760 people, bots, or (most likely) bouncers. | 15:23 |
|
osse
| OnlineCop: seems like you can give a list of files to stash | 15:24 |
|
| git stash push -- my_script.sh | 15:25 |
|
OnlineCop
| Cool; let me try that. | 15:25 |
|
| Yup, that's what I needed. Thanks! | 15:26 |
| → enoq joined | 15:26 |
| ← Murr left | 15:27 |
| → Murr joined | 15:27 |
| ← Student left | 15:28 |
| → causasui joined | 15:30 |
| ← Techcable left | 15:30 |
| → Techcable joined | 15:31 |
| ← GeorgeK left | 15:31 |
| ← causasui left | 15:34 |
| ← spare left | 15:35 |
| ← vatralum left | 15:36 |
| ← stef204 left | 15:36 |
| → vatralum joined | 15:36 |
| ← vatralum left | 15:37 |
| → vatralum joined | 15:37 |
| → causasui joined | 15:47 |
| → mat001 joined | 15:48 |
| ← causasui left | 15:51 |
| rossome_ → rossome | 15:53 |
| ← mat001 left | 15:53 |
| → madewokherd joined | 15:56 |
| → john_johnk joined | 15:56 |
| ← madewokherd` left | 15:59 |
| → structoha joined | 16:00 |
| → tyson2 joined | 16:02 |
| → causasui joined | 16:03 |
| → stef204 joined | 16:03 |
| → graywolf joined | 16:04 |
| ← john_johnk left | 16:05 |
| → GlitterCooper joined | 16:05 |
| ← causasui left | 16:07 |
|
graywolf
| Hi, I've question regarding git fetch. When I have up-to-date repository, git fetch still fetches over 4MB of data. Is that 1. expected 2. something that can be optimized? I originally expected that fetch on up-to-date repo is almost free, but that does not seem to be the case. | 16:08 |
| ← GlitterCooper left | 16:09 |
|
mackerman
| Network transfer, or space on disk? | 16:10 |
|
graywolf
| Network transfer | 16:10 |
|
| (number is reported by `GIT_SSH_COMMAND='ssh -v' git fetch`) | 16:10 |
|
imMute
| Are you absolutely sure you already had everything? what happens if you do git fetch a second time very shortly after the first? | 16:11 |
|
graywolf
| imMute: yeah I'm sure, I've tried this multiple times and it happens every time. | 16:12 |
|
imMute
| 4MB does seem a little excessive. maybe it's a very large repo? | 16:12 |
|
graywolf
| du -sh .git reports 259M | 16:13 |
| ← structoha left | 16:13 |
| ← BSaboia left | 16:14 |
| → structoha joined | 16:14 |
| → BSaboia joined | 16:14 |
|
graywolf
| It looks (based on -v), that vast majority of the transfer happens as response to `Sending command: git-upload-pack '/foo/bar.git'`; Are there any server-side optimizations that could help? Somehow telling git to gc or whatever? | 16:14 |
| ← stef204 left | 16:19 |
|
mackerman
| Does the remote share history, in particular were either cloned from each other? | 16:19 |
| ← fikran left | 16:20 |
| → causasui joined | 16:20 |
|
mackerman
| man git fetch-pack implies that there are corner cases where it prints everything. | 16:20 |
|
gitinfo
| the git-fetch-pack manpage is available at https://gitirc.eu/git-fetch-pack.html | 16:20 |
| vatralum → vatralum_ | 16:21 |
| ← rsx left | 16:21 |
| ← stkrdknmibalz left | 16:22 |
| → fikran joined | 16:22 |
|
graywolf
| yeah local was created using git clone $REMOTE, and it also happens on clean clone I've tried just now | 16:23 |
| → m0viefreak joined | 16:23 |
| → OnkelTem joined | 16:23 |
| ← causasui left | 16:25 |
|
graywolf
| The repository has fairly large number of tags (25k), could it be related? I'm not sure what exactly is inside the fetched pack. Can I explore that somehow? | 16:26 |
|
imMute
| the two sides have to exchange a list of branches/tags and what commits they're at so they know what objects need to be transferred. a large number of branches/tags was going to be my next guess | 16:28 |
| → Akiva joined | 16:29 |
| ← Vonter left | 16:29 |
| → marc-o joined | 16:29 |
|
graywolf
| Ah, so it actually fetches everything and not just current branch. I assumed tags would not be an issues unless --tags was provided to the fetch :/ | 16:30 |
| ← carl-- left | 16:31 |
| → Vonter joined | 16:35 |
|
imMute
| I wouldn't think so either. I think there's a command line that makes fetch get tags without the --tags flag, maybe check if you have that turned on? | 16:37 |
| → sudoforge joined | 16:38 |
| → causasui joined | 16:38 |
| ← EvilDMP left | 16:38 |
| → EvilDMP joined | 16:40 |
| ← Akiva left | 16:42 |
| ← causasui left | 16:42 |
| → Betal joined | 16:43 |
| ← coot left | 16:43 |
| → spare joined | 16:47 |
|
wwwi
| an automatic merge occurs when git is sure that there not any conflicts? | 16:48 |
| → meator joined | 16:48 |
|
wwwi
| *are not | 16:48 |
|
imMute
| if the merge didn't complain about conflicts, then there weren't conflicts and the merge succeeded... | 16:49 |
|
| a merge won't happen without you telling git to do it though | 16:49 |
|
wwwi
| imMute, I see, thank you | 16:50 |
| → panekadamek joined | 16:52 |
| → causasui joined | 16:54 |
| → snowyforest joined | 16:55 |
| → gasbag joined | 16:57 |
| → ozoned joined | 16:58 |
| → vicfred joined | 16:58 |
| ← causasui left | 16:59 |
| ozoned → odoood | 17:05 |
| ← MajorBiscuit left | 17:05 |
| → durham joined | 17:09 |
| ← vatralum_ left | 17:11 |
| → causasui joined | 17:11 |
| ← panekadamek left | 17:12 |
| → mat001 joined | 17:13 |
| → Narrat joined | 17:14 |
| ← epolanski left | 17:14 |
| ← gxt left | 17:14 |
| → gxt joined | 17:15 |
| ← causasui left | 17:16 |
| → ChmEarl joined | 17:18 |
| ← ano left | 17:21 |
| → ano joined | 17:21 |
| ← Murr left | 17:27 |
| → Murr joined | 17:27 |
| → rgrinberg joined | 17:27 |
| → goldfish joined | 17:28 |
| → causasui joined | 17:28 |
| → hbautista joined | 17:28 |
| ← spare left | 17:29 |
| ← tulpa_ left | 17:29 |
| → spare joined | 17:30 |
| ← spare left | 17:30 |
| → duxsco joined | 17:31 |
| → john_johnk joined | 17:31 |
| ← causasui left | 17:33 |
| ← bytehackr left | 17:35 |
| → bytehackr joined | 17:36 |
| ← mat001 left | 17:37 |
| → mat001 joined | 17:39 |
| → constxd joined | 17:39 |
|
constxd
| kings | 17:39 |
|
| i ran git merge other-branch -Xignore-all-space | 17:39 |
|
| and yet the line endings in a bunch of files changed | 17:39 |
|
| am i misunderstanding what that flag should do | 17:40 |
| ← Vonter left | 17:43 |
| → causasui joined | 17:45 |
|
graywolf
| imMute: I've tried it with --no-tags, and it's still slow. So that is probably not. If I read the manpage correctly, tags that points into histories being fetched are also fetched, however it's slow even when I try --no-tags :/ | 17:46 |
| ← snowyforest left | 17:46 |
|
rewt
| constxd, the way I read man git-merge is that if other-branch has non-whitespace changes on that line, and your branch only has whitespace changes (or no changes), then it will take the other-branch's line as is, including whatever whitespace they have | 17:48 |
|
gitinfo
| constxd: the git-merge manpage is available at https://gitirc.eu/git-merge.html | 17:48 |
| ← causasui left | 17:49 |
|
constxd
| rewt: i want to keep my whitespace but take their non-whitespace changes | 17:49 |
|
| is there any easy way to do that | 17:49 |
|
| that you know of | 17:49 |
|
rewt
| i don't think git can do that | 17:50 |
| ← OnkelTem left | 17:51 |
| ← rgrinberg left | 17:53 |
| ← Maxattax left | 17:58 |
| ← PCatinean left | 18:01 |
| → kenanmarasli joined | 18:01 |
| ← structoha left | 18:02 |
| → causasui joined | 18:02 |
| → snowyforest joined | 18:03 |
| → Maxattax joined | 18:03 |
| → Guest509 joined | 18:05 |
| → coot joined | 18:05 |
| → mat001_ joined | 18:06 |
| ← causasui left | 18:07 |
| ← mat001 left | 18:07 |
| → spare joined | 18:08 |
| ← Guest509 left | 18:08 |
| → tulpa_ joined | 18:09 |
| → Akiva joined | 18:13 |
| ← zen_coder left | 18:13 |
| ← murii_ left | 18:13 |
| → zen_coder joined | 18:15 |
| → murii joined | 18:15 |
| → causasui joined | 18:18 |
| → AbleBacon joined | 18:22 |
| ← causasui left | 18:23 |
| → wre^ joined | 18:25 |
| → omero joined | 18:29 |
| ← fikran left | 18:30 |
| → fikran joined | 18:31 |
| ← bytehackr left | 18:34 |
| → causasui joined | 18:35 |
| justIrresolute → justJustache | 18:38 |
| ← coot left | 18:38 |
| ← john_johnk left | 18:38 |
| ← Akiva left | 18:39 |
| ← causasui left | 18:39 |
| → maxzor joined | 18:43 |
| ← snowyforest left | 18:43 |
| → snowyforest joined | 18:43 |
| → pyevery__ joined | 18:44 |
| ← duxsco left | 18:45 |
| ← zen_coder left | 18:48 |
| → maxzor_ joined | 18:49 |
| → jlucas joined | 18:51 |
| ← maxzor left | 18:51 |
|
jlucas
| ... | 18:52 |
| → causasui joined | 18:53 |
| ← vicfred left | 18:54 |
| ← goldfish left | 18:55 |
| ← Noisytoot left | 18:57 |
| ← maxzor_ left | 18:57 |
| ← causasui left | 18:58 |
| ← vysn left | 19:00 |
| → whatsupdoc joined | 19:01 |
| → node1 joined | 19:09 |
| ← graywolf left | 19:09 |
| → causasui joined | 19:10 |
| ← causasui left | 19:14 |
| → carl--- joined | 19:18 |
| → coot joined | 19:23 |
| ← node1 left | 19:24 |
| ← Murr left | 19:27 |
| → causasui joined | 19:27 |
| → Murr joined | 19:27 |
| ← mat001_ left | 19:30 |
| → mat001 joined | 19:31 |
| ← causasui left | 19:32 |
| ← mat001 left | 19:34 |
| → mat001 joined | 19:35 |
| ← cmbengue left | 19:36 |
| ← snowyforest left | 19:43 |
| → vatralum joined | 19:44 |
| → GlitterCooper joined | 19:54 |
| → terminalpusher joined | 19:58 |
| → Noisytoot joined | 20:01 |
| → causasui joined | 20:01 |
| → snowyforest joined | 20:02 |
| ← mud left | 20:03 |
| ← causasui left | 20:06 |
| → duxsco joined | 20:14 |
| ← duxsco left | 20:17 |
| → causasui joined | 20:19 |
| ← vatralum left | 20:20 |
| ← causasui left | 20:23 |
| ← snowyforest left | 20:28 |
| → mud joined | 20:30 |
| ← spare left | 20:34 |
| ← mud left | 20:34 |
| ← wre^ left | 20:36 |
| → causasui joined | 20:37 |
| → wre^ joined | 20:38 |
| ← fikran left | 20:38 |
| ← chexum left | 20:39 |
| → chexum joined | 20:40 |
| → fikran joined | 20:41 |
| ← causasui left | 20:41 |
| → cvmn joined | 20:44 |
| → snowyforest joined | 20:45 |
| ← TheCatBehemoth left | 20:46 |
| → jstein joined | 20:50 |
| ← murii left | 20:53 |
| → Codaraxis__ joined | 20:54 |
| → duderonomy joined | 20:54 |
| → causasui joined | 20:55 |
| ← Codaraxis_ left | 20:58 |
| → johnjaye joined | 20:58 |
|
johnjaye
| is there a guide or best practice on how to backup a git repository? | 20:58 |
|
| would git clone followed by tar and gzip be sufficient? | 20:58 |
| → hedgecoder joined | 20:58 |
| ← causasui left | 20:59 |
|
Marmotte
| backup a git repository ? | 21:01 |
| ← meator left | 21:01 |
|
Marmotte
| git clone (with or without --bare) and git fetch to "backup" from remote to local, simply git push to "backup" from local to remote | 21:02 |
| → duxsco joined | 21:02 |
|
Marmotte
| nothing else IMHO | 21:02 |
| → molt joined | 21:05 |
| ← duxsco left | 21:05 |
| ← molt left | 21:07 |
| ← kenanmarasli left | 21:08 |
| ← jstein left | 21:08 |
| → kenanmarasli joined | 21:08 |
| ← EvilDMP left | 21:10 |
| ← Narrat left | 21:10 |
| → causasui joined | 21:11 |
| → murii joined | 21:12 |
| ← causasui left | 21:16 |
| → kn07_ joined | 21:22 |
|
hedgecoder
| My git repo kind of needs to be organized in 2 different ways for 2 different use cases which doesn't play well with history, so I want to use a script to copy files out of the git repo for testing purposes. is my approach wrong? more info https://upaste.de/4si | 21:27 |
| → causasui joined | 21:28 |
|
Nei
| why cant you organise your repo to match the required structure? | 21:30 |
|
hedgecoder
| i suppose I can just make those empty folders but it doesnt really change the main problem (I can't have 2 git repos living in my dedicated server's root folder) | 21:32 |
| ← causasui left | 21:32 |
|
hedgecoder
| i suppose i can just make the structure match exactly* i mean | 21:32 |
|
Nei
| does the server support symbolic links? | 21:32 |
|
| then you could change "just" a singe link instead of all files | 21:33 |
|
hedgecoder
| i'd have to check. you can symlink folders right? | 21:33 |
|
Nei
| yes | 21:34 |
|
hedgecoder
| that sounds like it would probably work. thanks. then I only have to clean up a few symlinks, and no worries about cp not dealing with removed or renamed files | 21:35 |
| → Rashad joined | 21:35 |
|
Nei
| yes. if it works | 21:35 |
| ← hedgecoder left | 21:36 |
| ← Rashad left | 21:38 |
| ← gasbag left | 21:38 |
| ← mat001 left | 21:40 |
| → donald1 joined | 21:41 |
|
donald1
| Hello. I want to use the command "cargo tarpaulin --ciserver travis-ci --coveralls <my SECRET token>" on travis ci with the yml file to setup coverall on github. But how to get <my SECRET token> if I can not hard code it in the yml file please? | 21:43 |
|
Nei
| travis ci has a concept of "secrets" that you put somewhere externally in their UI | 21:44 |
| → causasui joined | 21:44 |
|
Nei
| then you can use placeholders in the yml file and the secret is only there on travis | 21:44 |
|
donald1
| Nei could you detail the steps please? | 21:44 |
|
| ah | 21:44 |
|
| then if I create a file know as .coverall nobody could read it and hack me? | 21:45 |
|
Nei
| https://docs.travis-ci.com/user/environment-variables/#defining-variables-in-repository-settings | 21:46 |
|
| none of this is git related btw :) | 21:46 |
| ← causasui left | 21:48 |
| ← snowyforest left | 21:49 |
| → snowyforest joined | 21:50 |
| → mat001 joined | 21:55 |
| → jab416171 joined | 22:01 |
| ← odoood left | 22:04 |
| ← dansan_ left | 22:07 |
| → EvilDMP joined | 22:10 |
| → gustik joined | 22:12 |
| ← terminalpusher left | 22:12 |
| → ZacSharp joined | 22:12 |
| ← gustik left | 22:13 |
| → zebrag joined | 22:13 |
| ← donald1 left | 22:14 |
| → dansan joined | 22:15 |
| ← carl--- left | 22:17 |
| ← fstd left | 22:24 |
| → fstd_ joined | 22:24 |
| ← FinnElija left | 22:26 |
| → finn_elija joined | 22:26 |
| finn_elija → FinnElija | 22:26 |
| → Celeo joined | 22:30 |
| ← fstd_ left | 22:31 |
| ← ZacSharp left | 22:34 |
| → TheCatBehemoth joined | 22:34 |
| ← GlitterCooper left | 22:35 |
| ← cvmn left | 22:35 |
| → rgrinberg joined | 22:37 |
| ← enoq left | 22:38 |
| → fstd joined | 22:39 |
| ← duderonomy left | 22:42 |
| → Rashad joined | 22:43 |
| → duderonomy joined | 22:46 |
| → mat001_ joined | 22:47 |
| ← fikran left | 22:48 |
| → ramblebamble joined | 22:48 |
| ← Rashad left | 22:49 |
| ← mat001 left | 22:49 |
| ← hoochmonger left | 22:49 |
| → fikran joined | 22:50 |
| ← thiago left | 22:56 |
| ← murii left | 22:57 |
| ← rgrinberg left | 23:02 |
| ← pizdets_ left | 23:02 |
| → pizdets joined | 23:03 |
| → rgrinberg joined | 23:09 |
| → ferdna joined | 23:09 |
| heftig[m] → heftig | 23:11 |
| ← zebrag left | 23:13 |
| ← pyevery__ left | 23:14 |
| → pyevery__ joined | 23:14 |
| ← pyevery__ left | 23:20 |
| ← rgrinberg left | 23:21 |
| → causasui joined | 23:22 |
| ← otisolsen70 left | 23:24 |
| ← causasui left | 23:27 |
| → anaveragehuman joined | 23:27 |
| ← Pseudocrat left | 23:27 |
| → Pseudocrat joined | 23:28 |
| ← kenanmarasli left | 23:29 |
| ← EvilDMP left | 23:29 |
| ← tulpa_ left | 23:31 |
| → causasui joined | 23:39 |
| ← causasui left | 23:44 |
| ← Celeo left | 23:46 |
| → Xenguy joined | 23:51 |
| → chenqisu1 joined | 23:53 |
| → Guest81 joined | 23:54 |
| → jazzy joined | 23:54 |
| ← Guest81 left | 23:54 |
| → thiago joined | 23:55 |
| ← coot left | 23:58 |
| ← TheCatBehemoth left | 23:58 |