| 2021-06-21 |
| ← ultralisk left | 00:09 |
| ← thelounge66 left | 00:09 |
| ← lucerne left | 00:09 |
| → arcatech joined | 00:13 |
| → hmmmas joined | 00:21 |
| ← Murr left | 00:23 |
| → Murr joined | 00:23 |
| → wallbroken joined | 00:24 |
|
wallbroken
| hello | 00:24 |
|
| git push -u origin multi-user:multi-user | 00:24 |
|
| ! [rejected] multi-user -> multi-user (non-fast-forward) | 00:24 |
|
| i explain what my goal is: | 00:25 |
|
| i had 2 branch | 00:26 |
|
| 1) multi-user | 00:26 |
|
| 2) multi-user-registration | 00:26 |
|
| my goal is remove multi-user | 00:26 |
|
| and then rename multi-user-registration to multi-user | 00:26 |
|
BtbN
| renaming branches is not a thing I believe | 00:27 |
|
| just force push the desired commit there | 00:27 |
|
wallbroken
| so on the client side i removed multi-user branch | 00:27 |
|
| then i renamed multi-user-registration | 00:27 |
|
| to multi-user | 00:27 |
|
| but something gone wrong | 00:27 |
|
BtbN
| You're trying to do a non-fast-forward push | 00:28 |
|
| can't do that without force | 00:28 |
|
wallbroken
| what does it mean | 00:28 |
|
BtbN
| Keep in mind that anyone trying to pull that will get issues after that | 00:28 |
|
| so don't force-push branches people actively use | 00:28 |
| ← lgc left | 00:28 |
|
wallbroken
| is there anybody here able to help me with my current problem? | 00:30 |
|
BtbN
| I just told you what the problem is? | 00:31 |
|
| You can't just push unrelated commits on top of one another | 00:31 |
|
| if you want to overwrite the remote branch anyway, you need to --force push | 00:32 |
|
| Just be aware of the issues that brings if the branch is in shared use | 00:32 |
|
wallbroken
| no, it's not clear what the problem is | 00:33 |
|
BtbN
| If you are fine with overwriting the history, just force push, reylly | 00:33 |
|
| *really | 00:33 |
|
wallbroken
| ... | 00:33 |
|
| your explaining sucks | 00:34 |
|
BtbN
| I can't explain the entirety of gits inner working to you in a few lines of chat... | 00:34 |
|
| If you don't understand how branches and remotes work, I'm not sure it's possible to explain this | 00:34 |
|
wallbroken
| i came across this problem some time ago and i wrote this: https://dpaste.org/4bkr | 00:35 |
|
| but it looks like not working | 00:35 |
|
BtbN
| You can't really "rename" branches | 00:36 |
|
| you just make a new one, (re)set it to the desired commit, and delete the old one | 00:36 |
|
| If it's not already on the right commit to begin with | 00:36 |
|
| Same if the "new" one already exists. Just reset it to the desired commit | 00:37 |
|
| reset --hard if you don't care about anything in there | 00:37 |
|
| or in your working tree. So be careful with hard resets | 00:37 |
|
wallbroken
| well, to troubleshot the problem i thing you should have me asking some traceback logging | 00:38 |
|
BtbN
| To troubleshot a non-fast-forward push? | 00:38 |
|
wallbroken
| you don't know what my current situation is | 00:38 |
|
BtbN
| You're quite literally just missing --force | 00:38 |
|
wallbroken
| which branches are still alive | 00:38 |
|
| you don't know anything bout this | 00:39 |
|
| and i don't want to destroy projects | 00:39 |
| → thelounge66 joined | 00:39 |
|
BtbN
| Well, I told you the repercurssions of it. I can't know your projects structure or manage it for you. You will need to figure that out yourself. | 00:39 |
| → lucerne joined | 00:40 |
|
BtbN
| If it's literally only you working on those branches, and you want to delete it anyway, just force push really | 00:40 |
|
wallbroken
| then i'll wait for somebody else which will help me in a non dangerous way | 00:40 |
|
BtbN
| lol | 00:40 |
| ← hegstal left | 00:41 |
| → bddba joined | 00:41 |
|
BtbN
| Nobody will be able to give you that kind of help, unless you literally hire someone to do it for you | 00:41 |
|
OMGOMG
| i mean, good instincts to avoid the -f, honestly | 00:41 |
| → nyah joined | 00:42 |
|
BtbN
| The goal is to rename a branch, you very much need to force push for that no matter what | 00:42 |
|
| You can probably shift around it by deleting it on the remote first, but the end result will be the same as when you force pushed | 00:42 |
|
wallbroken
| cbreak helped me in a efficient way | 00:42 |
|
OMGOMG
| BtbN: yeah, be more efficient, seriously | 00:43 |
|
BtbN
| This is IRC, not some helpdesk that's paid of some software you paid for. | 00:44 |
|
| If you want someone to do work for you, this is not the place | 00:44 |
|
wallbroken
| "if you want someone to do work for you" ? | 00:44 |
|
BtbN
| If you want to understand git and have specific issues with it, this is the place | 00:44 |
|
wallbroken
| what are you saying? | 00:44 |
|
| which work? | 00:44 |
|
| i came into a problem just "making my own work" | 00:45 |
|
BtbN
| You are treating this channel like a paid helpdesk. It is not. | 00:45 |
|
wallbroken
| ... | 00:45 |
| ← ano left | 00:45 |
|
wallbroken
| it just surprises me that you give suggestion without wanting to know what the current situation is | 00:45 |
|
| how many branhes i have both local and remote side | 00:46 |
|
BtbN
| You came with a specific problem, and I gave you a ton of info regarding that specific problem | 00:46 |
|
wallbroken
| which command i already executed | 00:46 |
|
BtbN
| I'm not going to ask the personal backstory of everyone asking a question here | 00:46 |
|
| You showed the output of a failing push, what do you mean which command you executed? | 00:46 |
|
wallbroken
| because it's not the only command i executed | 00:47 |
|
| that's for you is a not important detail? | 00:47 |
|
OMGOMG
| BtbN: man, i can't believe how inefficient you are | 00:47 |
|
BtbN
| It's not overly important how you got into that situation really. It's a non-fast-forward push | 00:47 |
|
wallbroken
| OMGOMG: GO AWAY | 00:47 |
|
BtbN
| The solution is to either not do that, or to force push | 00:47 |
|
| Which one is correct depends on if you are okay with altering the remotes history. Which I told you about twice. | 00:48 |
|
wallbroken
| BtbN: seriously, there are some other details to consider | 00:48 |
|
BtbN
| Well, if you know about them, why didn't you provide them? | 00:48 |
|
wallbroken
| idk why on github i have old branches | 00:48 |
|
| locally i have the new ones | 00:49 |
|
| https://github.com/ClaudioViti/lookbook | 00:49 |
|
| here you can see single-user, multi-user, multi-user-registration | 00:49 |
|
| ok? | 00:49 |
|
BtbN
| what? | 00:49 |
|
wallbroken
| what? | 00:49 |
|
BtbN
| You mean your local branches are ahead of the remote ones on Github? | 00:50 |
|
| Or are they completely detached, and you can't push them? | 00:50 |
|
| because your changes are non-fast-forward | 00:50 |
|
OMGOMG
| i bet cbreak would ask way more efficient questions than that | 00:51 |
|
wallbroken
| https://www.dropbox.com/s/yw9ja7uq8jrb780/untitledd2.png?dl=0 | 00:52 |
|
| BtbN: see here | 00:52 |
|
| OMGOMG: go away | 00:52 |
|
BtbN
| That's your local branches and the remote branches, yes. | 00:52 |
|
| Nothing overly special there | 00:52 |
| → PaMeDa joined | 00:52 |
|
wallbroken
| locally i have the -registration renamed | 00:53 |
|
| and the old multi-user deleted | 00:53 |
|
| but remotely i still have the old situation | 00:53 |
|
| githt? | 00:53 |
|
BtbN
| So force-push the multi-user branch, and then delete the -registration one on the remote. | 00:53 |
|
| _if_ a force push works for your project situation | 00:54 |
|
| if that's the case, I cannot tell you | 00:54 |
| → ano joined | 00:54 |
|
wallbroken
| well but when i wrote that mini tutorial | 00:54 |
|
| all was working | 00:54 |
|
| why now is no more working? | 00:54 |
|
BtbN
| You "renamed" the branch locally, yes | 00:54 |
|
| Github does not care what you do locally until you push it | 00:54 |
|
| assuming your working dir is clean, that rename procedure is equialent of hard-resetting multi-user to ..-registration, and then deleting the later | 00:55 |
| → sheepduck joined | 00:55 |
| ← apauli left | 00:55 |
|
wallbroken
| but is what i've done | 00:56 |
|
| why when i do push i get an error? | 00:56 |
|
BtbN
| Because you are trying to do a non-fast-forward push | 00:56 |
|
wallbroken
| multi-user that now i see on client side is the multi-user-registration after renaming | 00:56 |
|
BtbN
| you can only (non-force) push commits that are direct children of the remote HEAD | 00:56 |
|
wallbroken
| i don't get this point | 00:56 |
|
| what is non-fast-forwwrd push? | 00:57 |
|
BtbN
| a push that's not only directly child commits of the remote HEAD | 00:57 |
| ← nyah left | 00:57 |
|
BtbN
| i.e. you are rewriting history | 00:57 |
|
OMGOMG
| BtbN: i can't believe you didn't explain this until now | 00:57 |
| ← schmillin_ left | 00:57 |
| → schmillin joined | 00:58 |
| ← mns left | 01:00 |
|
wallbroken
| BtbN: if i do -f i'll loose the history? | 01:02 |
| ← patchie left | 01:03 |
| → patchie joined | 01:03 |
| ← thiago left | 01:07 |
| → betelgeuse joined | 01:09 |
| ← schmillin left | 01:18 |
| ← mikail left | 01:21 |
| ← reillybrogan left | 01:23 |
| ← bddba left | 01:25 |
| ← Adoi left | 01:25 |
| → Murr- joined | 01:31 |
| ← Murr left | 01:31 |
| → bddba joined | 01:31 |
| Murr- → Murr | 01:31 |
| ← bddba left | 01:31 |
| → pete443 joined | 01:36 |
| ← pete443_ left | 01:36 |
| → igemnace joined | 01:38 |
| → blue_penquin joined | 01:39 |
| ← igemnace left | 01:39 |
| → igemnace joined | 01:40 |
| → aquijoule__ joined | 01:43 |
| → vicfred joined | 01:44 |
| ← aquijoule_ left | 01:45 |
| ← m0viefreak left | 01:47 |
| ← frobnic left | 01:48 |
| → frobnic joined | 01:48 |
| → reillybrogan joined | 02:00 |
| → AnAverageHuman joined | 02:02 |
| → consolers joined | 02:02 |
|
consolers
| anyone have git-instaweb working with lighttpd to export a single repository? | 02:03 |
| → discipulus joined | 02:08 |
| → jetchisel joined | 02:14 |
| → vicfred_ joined | 02:18 |
| ← consolers left | 02:20 |
| ← vicfred_ left | 02:20 |
| ← vicfred left | 02:21 |
| ← Murr left | 02:23 |
| → Murr joined | 02:23 |
|
s17
| k | 02:31 |
| → finn_elija joined | 02:36 |
| ← FinnElija left | 02:36 |
| finn_elija → FinnElija | 02:36 |
| → mrquincy_ joined | 02:38 |
| ← Xenguy left | 02:44 |
| ← pretty_dumm_guy left | 02:46 |
| → mns joined | 02:54 |
| ← gco left | 02:57 |
| → Jonno_FTW joined | 02:58 |
| → bin101 joined | 02:59 |
| ← skapata left | 03:24 |
| → gco joined | 03:25 |
| ← Karyon left | 03:26 |
| → Karyon joined | 03:29 |
| → hackinghorn joined | 03:33 |
| → Lord_of_Life_ joined | 03:35 |
| ← arcatech left | 03:36 |
| ← Lord_of_Life left | 03:36 |
| Lord_of_Life_ → Lord_of_Life | 03:36 |
| → x88x88x joined | 03:39 |
| ← zebrag left | 03:39 |
| ← gast0n left | 03:53 |
| ← forgotmynick left | 03:58 |
| → Murr- joined | 04:00 |
| → R2robot_ joined | 04:00 |
| → jazzy2 joined | 04:00 |
| → thelounge661 joined | 04:01 |
| → ThorMojito1 joined | 04:01 |
| → cornduk joined | 04:02 |
| → LouWestin_ joined | 04:02 |
| → betelgeuse7 joined | 04:02 |
| → reinhardt joined | 04:02 |
| → patchyy joined | 04:02 |
| → blue_penquin_ joined | 04:02 |
| → randm_ joined | 04:02 |
| → FFY00_ joined | 04:02 |
| → hnOsmium0001_ joined | 04:03 |
| → finn_elija joined | 04:04 |
| ← FinnElija left | 04:04 |
| finn_elija → FinnElija | 04:04 |
| → sudoforg1 joined | 04:04 |
| → LuKaRo_ joined | 04:04 |
| → chronon_ joined | 04:05 |
| → thunfisch_ joined | 04:05 |
| → apauli joined | 04:05 |
| → Karyon_ joined | 04:07 |
| → reillybrogan_ joined | 04:08 |
| → bin101_ joined | 04:09 |
| ← Karyon left | 04:09 |
| ← gco left | 04:09 |
| ← bin101 left | 04:09 |
| ← Murr left | 04:09 |
| ← reillybrogan left | 04:09 |
| ← frobnic left | 04:09 |
| ← blue_penquin left | 04:09 |
| ← betelgeuse left | 04:09 |
| ← patchie left | 04:09 |
| ← PaMeDa left | 04:09 |
| ← thelounge66 left | 04:09 |
| ← cronos left | 04:09 |
| ← jazzy left | 04:09 |
| ← sudoforge left | 04:09 |
| ← mschorm left | 04:09 |
| ← R2robot left | 04:09 |
| ← LuKaRo left | 04:09 |
| ← chronon left | 04:09 |
| ← Tuju left | 04:09 |
| ← hnOsmium0001 left | 04:09 |
| ← stkrdknmibalz left | 04:09 |
| ← FFY00 left | 04:09 |
| ← ThorMojito left | 04:09 |
| ← cornduck left | 04:09 |
| ← thunfisch left | 04:09 |
| ← randm left | 04:09 |
| ← elastic_dog left | 04:09 |
| ← LouWestin left | 04:09 |
| randm_ → randm | 04:09 |
| Murr- → Murr | 04:09 |
| reillybrogan_ → reillybrogan | 04:09 |
| thelounge661 → thelounge66 | 04:09 |
| blue_penquin_ → blue_penquin | 04:09 |
| hnOsmium0001_ → hnOsmium0001 | 04:09 |
| → elastic_dog joined | 04:10 |
| ← thelounge66 left | 04:10 |
| ← lucerne left | 04:10 |
| → frobnic joined | 04:10 |
| ← sheepduck left | 04:11 |
| → sheepduck joined | 04:12 |
| → mschorm joined | 04:16 |
| ← hmmmas left | 04:16 |
| → li joined | 04:21 |
| → Guest42 joined | 04:29 |
|
Guest42
| hi | 04:29 |
| → Guest42_ joined | 04:30 |
| ← reset left | 04:30 |
| ← ferdna left | 04:31 |
| ← Scotty_Trees left | 04:32 |
| ← x88x88x left | 04:32 |
| → Tuju joined | 04:33 |
| ← sheepduck left | 04:39 |
| LouWestin_ → LouWestin | 04:43 |
|
Guest42
| i have some commits, those commits are committed by the developers | 04:43 |
|
| i want a way to somehow hide that since the commit has some keys | 04:43 |
|
ikke
| you cannot hide it | 04:44 |
|
Guest42
| ikke is there any other ways to atleast modify that and try to conceal somehow | 04:44 |
|
ikke
| You can rewrite the commit (and everything following it) to remove the key | 04:44 |
|
| but consider those keys compromised | 04:45 |
|
Guest42
| we have rotated long back | 04:45 |
|
| but when i use some scanners like gitleaks - it still shows me that commit | 04:45 |
|
ikke
| aha | 04:45 |
|
| then you would probable need to rewrite a lot | 04:46 |
|
| there are tools that can help with it, but it has consequences for everyone using that repo | 04:46 |
|
| !filter-repo | 04:46 |
|
gitinfo
| A new git add-on that greatly improves on git-filter-branch: https://github.com/newren/git-filter-repo | 04:46 |
| ← jetchisel left | 04:47 |
|
Guest42
| ikke what do you suggest for me.. is there any other git scanners that will scan my repo for only my active commits | 04:48 |
|
ikke
| I have no idea | 04:49 |
| ← YuGiOhJCJ left | 04:53 |
| ← AnAverageHuman left | 04:55 |
| ← vishal left | 04:55 |
| → vishal joined | 04:57 |
| → thelounge661 joined | 04:58 |
| → lucerne joined | 04:59 |
| → thiago joined | 05:05 |
| → x88x88x joined | 05:05 |
|
Guest42
| ikke what is the use of git filter branch | 05:09 |
| ← thiago left | 05:10 |
|
ikke
| it allows you to automatically rewrite commits in the entire repo by applying some operation on them | 05:11 |
|
| filter-repo (not filter-branch) has options to censor secrets | 05:11 |
|
Guest42
| if there are 100 commits, 100 commits are going to be rewritten | 05:11 |
|
| ? | 05:11 |
| ← Guest42 left | 05:12 |
| → Guest42 joined | 05:12 |
|
Guest42
| ikke will it break anything? what about the existing code? that will be still be there | 05:13 |
|
ikke
| it changes what you tell it to change | 05:14 |
|
Guest42
| i am going to run this command git filter-branch --index-filter 'git rm --cached --ignore-unmatched' <somefile> HEAD | 05:15 |
|
| here <somefile> has some secret | 05:15 |
| ← FFY00_ left | 05:15 |
| ← hnOsmium0001 left | 05:15 |
| → FFY00_ joined | 05:16 |
|
ikke
| that would remove the entire file from history | 05:27 |
|
| make sure to pass -- --all instead of HEAD to rewrite all commits, not just a single branch | 05:28 |
| ← Guest42_ left | 05:28 |
| ← Guest42 left | 05:29 |
| ← Gustavo6046 left | 05:34 |
| ← AbleBacon left | 05:35 |
| → Gustavo6046 joined | 05:35 |
| ← R2robot_ left | 05:39 |
| → R2robot_ joined | 05:44 |
| ← x88x88x left | 05:53 |
| ← sudoforg1 left | 05:55 |
| → zeenk joined | 05:55 |
| → filePeter joined | 06:01 |
| ← ThorMojito1 left | 06:04 |
| thunfisch_ → thunfisch | 06:07 |
| → ahunt joined | 06:08 |
| ← Gustavo6046 left | 06:10 |
| → Gustavo6046 joined | 06:15 |
| → Guest9 joined | 06:22 |
| ← jazzy2 left | 06:27 |
| ← thelounge661 left | 06:33 |
| ← lucerne left | 06:33 |
| → lkor joined | 06:44 |
| ← R2robot_ left | 06:48 |
| lkor → lionkor | 06:51 |
| → jhulten joined | 06:54 |
| ← chronon_ left | 06:54 |
| → TomyWork joined | 06:55 |
| → jancoow joined | 07:01 |
|
jancoow
| Hi. I want to setup a project structure to work with submodules. In development; it happens that things change inside the submodule. What is the best way to commit/push this to the repository of this submodule? | 07:03 |
| ← unluckyshrubbery left | 07:04 |
| ← jhulten left | 07:04 |
| ← igemnace left | 07:10 |
| → pulse joined | 07:13 |
| → rfuentess joined | 07:13 |
| → GoLiath_ joined | 07:13 |
| → Guest42 joined | 07:14 |
| → Guest42_ joined | 07:14 |
| → envex joined | 07:14 |
| → GoLiath__ joined | 07:17 |
| ← GoLiath_ left | 07:17 |
| → ackyshake joined | 07:18 |
| → tsujp joined | 07:27 |
|
tsujp
| You know the command `git rebase :/somestring` picks all commits AFTER the first occurance of `somestring` in a commit message, is there a way to have this include the commit with `somestring` too? | 07:28 |
|
osse
| tsujp: try git rebase :/somestring~1 | 07:30 |
|
| not sure if it considers ~1 part of the text or not | 07:30 |
|
tsujp
| invalid upstream | 07:30 |
|
| osse | 07:30 |
|
osse
| HEAD^{/somestring}~1 then | 07:31 |
|
| that's a mouthful | 07:31 |
| ← mrquincy_ left | 07:31 |
| → rothandr_ joined | 07:31 |
|
tsujp
| and finally is there a way to order the commits on the pick screen to be newest at the top rather than newest at the bottom? | 07:32 |
|
| I assume not since it's ordered specifically top-to-bottom for execution? | 07:32 |
| ← rothandrew left | 07:33 |
|
tsujp
| actually reversing the git log output would do the same, i just find it confusing that git log is newest at top, and git pick is newest at the bottom | 07:33 |
|
osse
| I can't find a way to reorder it | 07:34 |
|
tsujp
| hmm `git log --reverse` does indeed reverse but then I still have to press `G` to go to the bottom | 07:35 |
| → thelounge661 joined | 07:35 |
|
osse
| hmm | 07:35 |
| → lucerne joined | 07:36 |
|
osse
| the outpout is reversed, so why do you want to go to the bottom | 07:36 |
|
tsujp
| because with --reverse the `HEAD` is at the bottom | 07:36 |
|
| if I want to view more than my terminal's height of commits (which is often) I need to now press `G` | 07:37 |
|
osse
| wasn't that what you wanted? | 07:37 |
| → hmmmas joined | 07:37 |
|
tsujp
| It is | 07:37 |
|
| Okay imagine you have 100 commits, `git log` shows `HEAD` the top | 07:37 |
|
| Now `git log --reverse` shows the oldest commit at the top (good) but now because there are so many commits you have to scroll all the way down to view `HEAD` | 07:38 |
|
| Is there a flag (I cannot see any) that automatically focuses `HEAD` with git log? | 07:38 |
|
| So that I don't have to press `G` (vim command for "go to the end") with `git log` | 07:38 |
| → igemnace joined | 07:38 |
|
osse
| you could override the pager | 07:39 |
|
| git config pager.log 'less +/HEAD' | 07:40 |
|
tsujp
| Ah ok | 07:40 |
|
| Yeah I was gonna ask how to do that via git config instead of bash alias | 07:40 |
|
| Okay this is awesome, thanks for the help osse :) | 07:40 |
|
osse
| it also sounds a bit like you just want git log -n 10 or git log origin/master..master or something like that | 07:41 |
| ← rothandr_ left | 07:44 |
| → rothandrew joined | 07:44 |
| → theoceaniscool joined | 07:49 |
| → mrquincy_ joined | 07:49 |
| → chronon joined | 07:52 |
| ← hmmmas left | 07:53 |
| ← mrquincy_ left | 07:56 |
| ← lucerne left | 07:58 |
| ← thelounge661 left | 07:58 |
| ← acid left | 08:01 |
| → acid joined | 08:02 |
| → R2robot_ joined | 08:05 |
| ← Guest9 left | 08:08 |
| ← Guest42_ left | 08:09 |
| ← Guest42 left | 08:09 |
| ← envex left | 08:13 |
| → hegstal joined | 08:13 |
| ← GoLiath__ left | 08:14 |
| → GoLiath_ joined | 08:14 |
| → jazzy joined | 08:14 |
| → envex joined | 08:15 |
| ← ahunt left | 08:17 |
| → maroloccio joined | 08:18 |
| ← hegstal left | 08:19 |
| → hegstal joined | 08:19 |
| → adlternative joined | 08:25 |
| → maroloccio1 joined | 08:26 |
| → feriman joined | 08:27 |
| ← maroloccio left | 08:29 |
| → AnapodoPsalidaki joined | 08:29 |
| → Scotty_Trees joined | 08:31 |
| → ubique joined | 08:47 |
| → dka_ joined | 08:50 |
| → tsdh joined | 08:51 |
| ← dka_ left | 08:52 |
| → dka joined | 08:52 |
| ← hegstal left | 08:53 |
| → lacrymology joined | 08:58 |
| → Jck_true joined | 09:03 |
|
Jck_true
| So I ran a "git pull origin BRANCH" to merge in some work on another branch. I resolved the merge conflicts but now I can't update my submodules and get an error "fatal: No url found for submodule path 'xxx/yy/zzz' in .gitmodules" | 09:04 |
| → x88x88x joined | 09:06 |
|
Jck_true
| But theres only been one addition to the .gitmodules. Unrelated to merge. I tried to remove the submodule that was causing issues... But now it fails on another submodule... | 09:06 |
|
ross
| nedbat: re "did you get your answer?" - I did, thank you! Timdve pointed me towards repo duping followed by git-filter-repo | 09:08 |
| → unluckyshrubbery joined | 09:11 |
| → hmmmas joined | 09:12 |
| ← maroloccio1 left | 09:15 |
| → DevAntoine joined | 09:21 |
|
DevAntoine
| Hi, I'm not able to add a file to my previous (pushed) commit (on a feature branch, don't worry it's not develop nor master). | 09:22 |
|
| "git add myFile" => "git commit -v --no-edit --amend" => "git push --force" | 09:22 |
|
| Resulting in "Everything up-to-date" | 09:22 |
|
| What am I missing? | 09:22 |
|
| Does my brain is still sleeping in my bed? | 09:23 |
| → i7c joined | 09:23 |
|
osse
| does the add actually stage some differences? does git commit actually make new commit? | 09:24 |
|
| also, what does 'git config push.default' say? | 09:25 |
|
DevAntoine
| osse: the add does stage the file | 09:27 |
| ← tejr left | 09:27 |
| ← chexum left | 09:27 |
| ← ano left | 09:27 |
| ← adanwan left | 09:27 |
|
DevAntoine
| osse: git config push.default returns nothing | 09:27 |
| ← feriman left | 09:29 |
| ← jmcantrell left | 09:30 |
| → adanwan joined | 09:30 |
| ← hmmmas left | 09:30 |
| ← pulse left | 09:31 |
| → tejr joined | 09:32 |
| → chexum joined | 09:32 |
| → ano joined | 09:33 |
| ← alzgh left | 09:37 |
| → pretty_dumm_guy joined | 09:38 |
|
DevAntoine
| osse: I know | 09:42 |
|
| osse: I've got a git hook running some commands inside docker but the stack wasn't up... | 09:42 |
|
| Now everything is fine. | 09:42 |
|
| Thank you. | 09:42 |
| → maroloccio joined | 09:43 |
| → nazarii[m] joined | 09:44 |
| ← AnapodoPsalidaki left | 09:44 |
| → vdamewood joined | 09:48 |
| R2robot_ → R2robot | 09:53 |
| → feriman joined | 09:53 |
| → vinleod joined | 09:56 |
| ← vdamewood left | 09:57 |
| vinleod → vdamewood | 09:57 |
| ← betelgeuse7 left | 09:58 |
| ← Betal left | 09:58 |
| → betelgeuse7 joined | 09:59 |
| → skapata joined | 10:05 |
| reinhardt → cronos | 10:05 |
| → Cork joined | 10:07 |
| → jl4 joined | 10:08 |
| ← aquijoule__ left | 10:10 |
| → rsx joined | 10:15 |
| ← nazarii[m] left | 10:18 |
| → nazarii[m] joined | 10:18 |
| → richbridger joined | 10:21 |
| ← pizdets_ left | 10:23 |
| → pizdets joined | 10:25 |
| ← nazarii[m] left | 10:26 |
| ← GoLiath_ left | 10:26 |
| → nazarii[m] joined | 10:26 |
| → pulse joined | 10:32 |
| → sa joined | 10:33 |
| → fling joined | 10:34 |
| → lgc joined | 10:36 |
| ← jl4 left | 10:38 |
| → lgc_ joined | 10:40 |
| ← lgc left | 10:43 |
| → jakesyl joined | 10:43 |
| → jla joined | 10:50 |
| ← jla left | 10:51 |
| ← Cork left | 10:51 |
| ← zeenk left | 10:52 |
| ← Nalt left | 10:52 |
| ← milosz left | 11:08 |
| → milosz joined | 11:09 |
| → Exagone313 joined | 11:15 |
| → tomek_ joined | 11:15 |
| ← Eustachy_Kapusta left | 11:15 |
| → Fabricio20 joined | 11:16 |
| ← pretty_dumm_guy left | 11:17 |
| Exagone313 → Exa | 11:17 |
| → Xenguy joined | 11:29 |
| ← maroloccio left | 11:30 |
| → cation joined | 11:33 |
| → dimi1947 joined | 11:36 |
| ← dimi1947 left | 11:38 |
| → anton joined | 11:43 |
| ← anton left | 11:43 |
| → anton joined | 11:43 |
| → reset joined | 11:44 |
| → GoLiath_ joined | 11:45 |
| → otisolsen70 joined | 11:49 |
| ← GoLiath_ left | 11:50 |
| → GoLiath_ joined | 11:50 |
| ← shored left | 11:53 |
| → dimi1947 joined | 11:55 |
| ← feriman left | 11:55 |
| → adelks joined | 12:00 |
|
adelks
| Hello! I would like to know if git offers COW on checkout. Afaik each commited file version is stored inside the .git directory. And is restored back to the working directory on checkout. I would like to know if that restore can be made with "reflinks"/COW. Or maybe it's already the case ? | 12:01 |
|
| of course, if the underlying file system supports it | 12:02 |
| ← dimi1947 left | 12:04 |
| ← ano left | 12:06 |
|
BtbN
| That seems like a bad idea, even if it was possible, which I doubt | 12:06 |
| → dimi1947 joined | 12:07 |
|
BtbN
| Most of the stuff is stored in compressed packages, not just one file for every file. That'd be pretty inefficient | 12:07 |
| → ano joined | 12:07 |
|
adelks
| BtbN: Thanks for your input. I am unaware of the inner workings of git, yeah if things are compressed then it's not that simple anymore. Got it! | 12:08 |
| → Wuzzy joined | 12:10 |
|
adelks
| I guess it would be possible if files do not get compressed and the file system's seamless compression is used ? | 12:14 |
| → Samian joined | 12:18 |
|
Samian
| for 2 factor authentication, github makes me use this super long string when pushing to the cloud | 12:19 |
| ← Noisytoot left | 12:19 |
|
Samian
| anyway to use a regular password again? | 12:19 |
| ← lionkor left | 12:20 |
|
osse
| adelks: consider the contents of .git to be a huge binary blob that looks nothing like the actual files it holds | 12:20 |
| → lionkor joined | 12:20 |
| → Noisytoot joined | 12:21 |
|
osse
| the hash of a file (which git uses all over the place) is actually the hash of the file but with some other git-specific data prepended. so I think you're screwed already there | 12:21 |
| ← jimklimov left | 12:22 |
|
adelks
| osse: thanks for your input. To use the filesystem's seamless compression instead, I think the change would be significant anyway. For the git-specific data prepended, that could be done to bare files too, so that's not a blocker for this alleged idea of using the filesystem's compression instead no ? | 12:24 |
|
BtbN
| Samian, what do you mean, pushing to the cloud? | 12:25 |
|
| Can't you use ssh keys? | 12:25 |
|
Samian
| ne? | 12:25 |
|
adelks
| I am asking this because I would like to keep several copies of the kernel source code, with different patches applied. So I thought having cow would be nice. Since the patches change a very small number of files | 12:25 |
|
osse
| adelks: but then the files would appear with the extra data in them | 12:26 |
|
bremner
| adelks: you'll really need to read up a bit on git internals before this can be a sensible discussion | 12:26 |
|
Samian
| I don't get the 2 factor thing on github. it's just substituting one password for another. wtf is 2 factor about that | 12:26 |
|
bremner
| not that being a sensible discussion is mandatory on the internet | 12:26 |
|
adelks
| osse: got it | 12:26 |
|
| bremner: You are absolutely right. I only wanted to ask the yes/no question :P | 12:27 |
|
osse
| you can share .git data between several repos | 12:27 |
|
| there is also the worktree feature | 12:27 |
|
adelks
| osse: yes I used that! it's better, I just expected it to have some kind of COW x) | 12:28 |
| → AnapodoPsalidaki joined | 12:29 |
| → mrquincy_ joined | 12:30 |
|
adelks
| bremner: I have in mind that, fundamentally, git handles copies of files through their hash. Remembering that filesystems compress on their own now, "one file for every file" sounded viable to me if the kind of compression git does is similar. And wanted to get some feedback on this second idea. Of course, real git is more complex. But sometimes I find it interesting to discuss "simple" ideas. | 12:33 |
| → AnAverageHuman joined | 12:37 |
| → jimklimov joined | 12:40 |
| ← Karyon_ left | 12:40 |
| ← x88x88x left | 12:40 |
| → Karyon joined | 12:41 |
|
Samian
| BtbN: "pushing to the cloud" == pushing to github.com | 12:43 |
|
BtbN
| Yeah, just use ssh keys for that | 12:44 |
|
Samian
| even so, I don't understand how it's "2 factor" when it's merely just replacing one password for another password | 12:44 |
| ← Karyon left | 12:45 |
| → Karyon joined | 12:45 |
| → sudoforg1 joined | 12:47 |
| ← vdamewood left | 12:47 |
|
osse
| "For GitHub, the second form of authentication is a code that's generated by an application on your mobile device or sent as a text message (SMS)." | 12:49 |
|
| sounds like something other than what you're doing | 12:49 |
| ← blue_penquin left | 12:50 |
|
mgedmin
| IIRC when you enable 2FA for your github account, git pushes over https no longer allow username+password auth; you must use ssh keys or private tokens instead | 12:50 |
| → x88x88x joined | 12:50 |
| ← ano left | 12:50 |
|
mgedmin
| this is a side effect; the primary effect is that web logins require username + password + second factor | 12:51 |
| ← budo left | 12:51 |
| → ano joined | 12:52 |
| → shored joined | 12:56 |
| ← elastic_dog left | 12:59 |
| ← Kill-Anirnals left | 13:00 |
| → maroloccio joined | 13:01 |
| → Nalt joined | 13:02 |
| ← shored left | 13:04 |
| → shored1 joined | 13:04 |
| → budo joined | 13:04 |
| → elastic_dog joined | 13:05 |
| ← adelks left | 13:05 |
|
Seveas
| that is correct. And if you enable sso/saml for an org, you can do thing like require org members to use 2fa's and to have separate ssh keys for org repos | 13:09 |
| → Adoi joined | 13:10 |
|
Seveas
| And with SSO you can make it 4 factor auth if you really want to annoy your staff: separate passwords and 2fa tokens for github and the sso step. | 13:11 |
|
| Samian: the token is only valid for git pushes, not for other authenticated operations (like changing your password...). It's less safe than using an ssh key, but better than having to type in a 2fa token for every git operation. | 13:14 |
|
Samian
| but it's not 2 factor. 2 factor is when you type a password and then a temporary code is sent to your phone | 13:15 |
|
| or a phone app pops up saying "did you just try to do such and such on your computer" and you tap yes | 13:15 |
|
Seveas
| correct. But it's what enables you to have 2 factor authentication for web operations on github.com while keeping git operations usable | 13:16 |
| ← Adoi left | 13:20 |
| → alzgh joined | 13:21 |
| → kikijiki joined | 13:21 |
| → pflanze joined | 13:23 |
| → soifou joined | 13:25 |
| ← soifou left | 13:29 |
| → soifou joined | 13:33 |
| ← betelgeuse7 left | 13:34 |
| ← Xenguy left | 13:34 |
| → betelgeuse7 joined | 13:35 |
| → pretty_dumm_guy joined | 13:37 |
| ← betelgeuse7 left | 13:38 |
| → ahunt joined | 13:39 |
| → betelgeuse7 joined | 13:40 |
| → consolers joined | 13:40 |
| → Masklin_Gurder joined | 13:42 |
| ← lionkor left | 13:49 |
| → arcatech joined | 13:52 |
| → bdeferme joined | 13:52 |
| → vdamewood joined | 13:54 |
| → xkuru joined | 13:57 |
| → LemurP joined | 13:58 |
| → vinleod joined | 14:00 |
| ← vdamewood left | 14:02 |
| vinleod → vdamewood | 14:02 |
|
Samian
| how can I scroll faster through git log on a macbook> | 14:03 |
|
| there isn't a page down key | 14:03 |
|
| wffff | 14:03 |
|
osse
| Ctrl-D and Ctrl-F | 14:03 |
|
mgedmin
| don't macs page down when you press command+down or something? | 14:04 |
|
consolers
| osse have you used gitweb | 14:04 |
|
mgedmin
| also, spacebar in less pages down | 14:04 |
|
Samian
| osse: what are those shortcuts short for? | 14:04 |
|
| it works! btw | 14:05 |
|
osse
| Samian: what they are for? They are for scrolling | 14:05 |
|
| or is there some layer to the question I don't get | 14:05 |
|
mgedmin
| emacs keybindings ctrl-u/d (for up/down, scrolling by lines), ctrl-f/b (for forward/backward, scrolling by pages) | 14:05 |
|
| helpful to know and try in random situations (e.g. when you get a grub boot menu over a serial console and arrow keys don't work) | 14:06 |
|
bremner
| fwiw, ctrl-u is not up in emacs | 14:06 |
|
mgedmin
| yeah I don't actually use emacs | 14:06 |
| → justBull joined | 14:06 |
| ← kikijiki left | 14:06 |
|
mgedmin
| to me ctrl-w is the emacs keybinding for delete word backwards, because that's what it does in bash, but turns out emacs uses a different key for that | 14:07 |
|
| naming things is hard | 14:07 |
|
osse
| these bindings are more like vim | 14:07 |
|
| Ctrl-n and p go by lines, u/d by half pages, f/b by whole pages | 14:08 |
|
| consolers: no | 14:08 |
| → Cork joined | 14:09 |
|
Samian
| thanks osse for telling me about the shortcuts | 14:13 |
| → argento joined | 14:14 |
| → thiago joined | 14:15 |
| ← chexum left | 14:15 |
|
henk
| n(ext), p(revious) for completeness sake (; | 14:16 |
|
mgedmin
| oops I rarely use ^u/^d, forgot what they meant! | 14:19 |
|
cornduk
| anyone know how i would specify a non-default keyring file with `git-crypt add-gpg-user`? the keys i want to import are stored in a separate keyring like ~/.gnupg/some_keyring.gpg | 14:20 |
|
| i figure it should look in all the keyrings in that directory, but i guess it doesn't (?) | 14:21 |
|
| its not finding keys which are not in the default keyring | 14:21 |
| ← Murr left | 14:22 |
| → Murr joined | 14:23 |
|
cornduk
| it looks like git-crypt wraps the gpg binary https://github.com/AGWA/git-crypt/blob/master/gpg.cpp | 14:25 |
| ← frobnic left | 14:28 |
| → frobnic joined | 14:28 |
| ← frobnic left | 14:28 |
| → feriman joined | 14:29 |
| → frobnic joined | 14:29 |
| ← consolers left | 14:31 |
| ← AnapodoPsalidaki left | 14:31 |
| → AnapodoPsalidaki joined | 14:34 |
|
argento
| hi, when you issue `git commit` you are presented with a text file with some commented lines. Is there a way to include `git log -10 --oneline` in those commented lines? | 14:34 |
|
adlternative
| hi, how can I `git rebase -i <first commit>^1`? | 14:35 |
|
osse
| argento: if you're in vim you can do: :r !git log -10 --oneline | 14:36 |
| ← Shentino left | 14:36 |
|
osse
| argento: but you might be interested in the prepare-commit-msg hook | 14:36 |
| ← pretty_dumm_guy left | 14:36 |
|
cornduk
| perhaps my problem lies elsewhere | 14:36 |
|
argento
| ^1 is for the previous commit. So maybe `git rebase -i <first commit>` | 14:36 |
|
osse
| argento: or git log ... > tmp; git commit -eF tmp | 14:37 |
|
| adlternative: --root | 14:37 |
|
argento
| osse: thanks I'll check that out | 14:37 |
|
adlternative
| osse: ok, I get it. | 14:37 |
| ← rothandrew left | 14:39 |
| → Shentino joined | 14:39 |
|
Samian
| What do you guys think about using git switch --detach <commit id> as a way go back to the state of any commit ? | 14:42 |
|
| mgedmin isn't comfortable with these newfangled git subcommands and still uses git checkout <commit> for this while shaking his cane at the kids on the lawn | 14:43 |
| ← GoLiath_ left | 14:45 |
| → GoLiath_ joined | 14:46 |
| ← jazzy left | 14:46 |
|
Oblomov
| OK there is a situation I can't explain myself | 14:47 |
| ← madewokherd left | 14:47 |
|
Oblomov
| a section of code disappeared and I cannot find the commit that deleted it. git log -S string_in_disappeared_code only comes up with the commit that introduced it as the most recent | 14:47 |
| ← pac1_ left | 14:48 |
| → shored joined | 14:49 |
| ← shored1 left | 14:49 |
|
| Oblomov is pretty sure the fsck up is happening in one of the merges | 14:52 |
| → Adoi joined | 14:54 |
| → bynx joined | 14:56 |
|
pcarphin
| The first thing I do in this kind of situation is open up `gitk --all` and try to scroll through the commits. This only works if you have a bit of an idea of where to look and it requires that you recognize commit messages. | 14:56 |
|
| Oblomov There is also `git history FILE` which I rarely use because the preceding technique ususally allows me to find what I'm looking for quickly. | 14:57 |
|
| man git-history | 14:57 |
|
| !man git-history | 14:58 |
|
gitinfo
| The git man pages are available online at https://gitirc.eu/git.html. Or were you looking for the "man git-foo" syntax (without the !)? | 14:58 |
|
pcarphin
| !history | 14:58 |
|
gitinfo
| [!clean_history] For a pointer on how to handle history in git see this e-mail from Linus: http://thread.gmane.org/gmane.comp.video.dri.devel/34744 | 14:58 |
|
Oblomov
| pcarphin: I'll have a look | 14:58 |
|
pcarphin
| My links aren't working lol | 14:59 |
|
Oblomov
| hm well it's not git history obviously since it doesn't seem to be recognized as a command | 14:59 |
| ← argento left | 14:59 |
|
pcarphin
| Maybe that's why my links weren't working lol. | 14:59 |
|
| Anyway, try gitk (with --all, very important) and then someone else will tell you what the .... | 15:00 |
|
| Oh I know, you just do `git log FILE` | 15:00 |
|
Oblomov
| I usually get by with git log file but I really can't find the change in the merges, some of them were pretty messy 8-P | 15:01 |
|
pcarphin
| If the code you are looking for is made by a commit that hasn't been merged yet, then `git log --all FILE` might give more results. | 15:02 |
|
Oblomov
| oh found it | 15:04 |
|
pcarphin
| Nice, how? | 15:04 |
|
Oblomov
| through a different error | 15:04 |
|
| apparently an original file was duplicated and split into two other files and a piece of code that should have gone in derivated file B went into derived file C instead | 15:04 |
| → blaisebool_ joined | 15:05 |
| → Anarchic joined | 15:09 |
|
adlternative
| hi, I meet a strang situation. | 15:11 |
|
| when I use `git rebase -i`, I stop at a commit and use `git add -i (patch mode)` to add some contents. | 15:12 |
|
| oh sorry, I forget to say: I stop at a commit and git reset HEAD~ and use `git add -i (patch mode)` to add some contents. | 15:14 |
|
| and then `git commit`, it work. | 15:14 |
|
| but use `git rebase --continue`, it report an error: | 15:14 |
|
| You have uncommitted changes in your working tree. Please commit them | 15:14 |
|
| first and then run 'git rebase --continue' again. | 15:14 |
| → argento joined | 15:16 |
| → GNUcifer joined | 15:16 |
| → BSaboia joined | 15:16 |
| ← cehteh left | 15:16 |
| GNUcifer → cehteh | 15:17 |
| ← BSaboia left | 15:19 |
| → Guest42 joined | 15:21 |
| → madewokherd joined | 15:24 |
| → AbleBacon joined | 15:25 |
| → raffaele__ joined | 15:26 |
| → Torr joined | 15:26 |
| ← discipulus left | 15:26 |
| ← rsx left | 15:28 |
| ← betelgeuse7 left | 15:29 |
| → betelgeuse7 joined | 15:30 |
| ← Guest42 left | 15:32 |
| ← betelgeuse7 left | 15:34 |
| ← ano left | 15:34 |
| → ano joined | 15:35 |
| → betelgeuse7 joined | 15:35 |
| ← blaisebool_ left | 15:38 |
| → blaisebool joined | 15:38 |
| ← betelgeuse7 left | 15:38 |
| → betelgeuse7 joined | 15:39 |
| ← AnapodoPsalidaki left | 15:41 |
| ← TomyWork left | 15:41 |
| ← betelgeuse7 left | 15:42 |
| → betelgeuse7 joined | 15:44 |
|
imMute
| adlternative: you have to leave the working tree in a completely clean state before you can continue the rebase. either commit the uncomitted bits or revert them and then you can continue. | 15:45 |
| → nate1 joined | 15:48 |
| ← ahunt left | 15:49 |
| → ThorMojito joined | 15:50 |
| → omnonq9 joined | 15:54 |
| ← Adoi left | 15:56 |
| → Crassus joined | 15:58 |
| ← anton left | 15:59 |
| → shored1 joined | 16:00 |
| ← shored left | 16:01 |
| → jla joined | 16:01 |
| ← rfuentess left | 16:03 |
| ← Anarchic left | 16:04 |
| ← LemurP left | 16:08 |
| ← x88x88x left | 16:09 |
| → Guest71 joined | 16:09 |
| ← jla left | 16:12 |
| → mikail joined | 16:15 |
| → stkrdknmibalz joined | 16:17 |
| → tg joined | 16:18 |
| → Anarchic joined | 16:18 |
| ← vdamewood left | 16:18 |
| ← nate1 left | 16:20 |
| gordonfish- → gordonfish | 16:20 |
| → jla joined | 16:21 |
| ← jla left | 16:24 |
| ← Anarchic left | 16:25 |
| → Anarchic joined | 16:26 |
| → anton joined | 16:26 |
| ← anton left | 16:26 |
| → anton joined | 16:27 |
| ← anton left | 16:27 |
| → anton joined | 16:27 |
| ← anton left | 16:27 |
| ← mschorm left | 16:28 |
| → jhulten joined | 16:30 |
| ← Guest71 left | 16:31 |
| ← Gustavo6046 left | 16:33 |
| → Gustavo6046 joined | 16:34 |
| → anton joined | 16:35 |
| ← Anarchic left | 16:35 |
| ← anton left | 16:35 |
| → anton joined | 16:35 |
| ← anton left | 16:35 |
| → jetchisel joined | 16:35 |
| → anton joined | 16:35 |
| ← anton left | 16:35 |
| → Anarchic joined | 16:36 |
| → anton joined | 16:36 |
| ← anton left | 16:36 |
| → anton joined | 16:36 |
| ← AnAverageHuman left | 16:37 |
| → singh joined | 16:39 |
| ← Crassus left | 16:39 |
| ← Anarchic left | 16:39 |
| → Anarchic joined | 16:40 |
| → AnAverageHuman joined | 16:43 |
| ← betelgeuse7 left | 16:43 |
| → betelgeuse7 joined | 16:45 |
| → jla joined | 16:47 |
| ← betelgeuse7 left | 16:48 |
| → betelgeuse7 joined | 16:49 |
|
anddam
| hello, semi-OT how do I get tab completion for git branches on macOS 11? | 16:49 |
| ← jla left | 16:50 |
|
R2robot
| depends on your shell | 16:51 |
| ← betelgeuse7 left | 16:52 |
| → Crassus joined | 16:53 |
| → betelgeuse7 joined | 16:53 |
| ← betelgeuse7 left | 16:56 |
| → betelgeuse7 joined | 16:58 |
| ← Nalt left | 16:59 |
| → Nalt joined | 17:01 |
| ← betelgeuse7 left | 17:01 |
|
pcarphin
| anddam You can take one of the files in https://github.com/git/git/tree/master/contrib/completion | 17:01 |
| → betelgeuse7 joined | 17:02 |
|
pcarphin
| I use fish for my interactive shell on MacOS and it's already installed. For bash or zsh, they should also be installed in a location where they are auto-loaded | 17:02 |
| ← Nalt left | 17:03 |
|
pcarphin
| But if they arent't, you can just download one of those files (or find it where git is installed) and source it yourself in you .zshrc | 17:03 |
| → Nalt joined | 17:04 |
| ← Nalt left | 17:05 |
| ← betelgeuse7 left | 17:06 |
| → Nalt joined | 17:07 |
| → betelgeuse7 joined | 17:07 |
| ← argento left | 17:07 |
|
anddam
| R2robot: it's zsh, actually I was not able to figure how to enable completion | 17:09 |
| ← Nalt left | 17:09 |
|
pcarphin
| Oh so you have to enable it? You might want to look at oh-my-zsh https://github.com/ohmyzsh/ohmyzsh | 17:10 |
| ← betelgeuse7 left | 17:10 |
|
anddam
| pcarphin: I think so, I was looking at the completion link you pasted | 17:10 |
| → Nalt joined | 17:11 |
| → betelgeuse7 joined | 17:12 |
| ← Nalt left | 17:12 |
| ← mikail left | 17:12 |
| → Nalt joined | 17:13 |
| ← xkuru left | 17:14 |
| → xkuru joined | 17:14 |
| ← betelgeuse7 left | 17:15 |
| → betelgeuse7 joined | 17:16 |
| → cliluw joined | 17:18 |
| ← xkuru left | 17:19 |
| → xkuru joined | 17:19 |
| ← betelgeuse7 left | 17:19 |
| → betelgeuse7 joined | 17:21 |
| → orbyt joined | 17:22 |
| → rsx joined | 17:22 |
| ← Nalt left | 17:23 |
| ← amanita_ left | 17:23 |
| ← betelgeuse7 left | 17:24 |
| → Nalt joined | 17:24 |
| ← Nalt left | 17:25 |
| → betelgeuse7 joined | 17:25 |
| → Nalt joined | 17:27 |
| ← betelgeuse7 left | 17:28 |
| ← Nalt left | 17:28 |
| → ausserz joined | 17:29 |
| → betelgeuse7 joined | 17:29 |
| ← cliluw left | 17:30 |
| → Nalt joined | 17:30 |
| → amanita joined | 17:30 |
| ← Nalt left | 17:32 |
| → Nalt joined | 17:32 |
| ← betelgeuse7 left | 17:32 |
| ← rsx left | 17:33 |
| ← Nalt left | 17:33 |
| → Nalt joined | 17:34 |
| → betelgeuse7 joined | 17:34 |
| → goldfish joined | 17:35 |
| ← betelgeuse7 left | 17:37 |
| → betelgeuse7 joined | 17:38 |
|
R2robot
| yeah, I use Fish as well, but used to use zsh. I don't remember how to do it with the default zsh though. I have zsh/fish installed via brew which makes it easier, IMO. | 17:40 |
| ← betelgeuse7 left | 17:41 |
| → betelgeuse7 joined | 17:43 |
| ← ubique left | 17:45 |
| ← betelgeuse7 left | 17:46 |
| → betelgeuse7 joined | 17:47 |
| → mschorm joined | 17:48 |
| → Sasazuka joined | 17:49 |
| ← maroloccio left | 17:49 |
| ← betelgeuse7 left | 17:50 |
| → betelgeuse7 joined | 17:52 |
| → haltux joined | 17:54 |
| ← betelgeuse7 left | 17:55 |
| → betelgeuse7 joined | 17:56 |
| ← betelgeuse7 left | 17:59 |
| → betelgeuse7 joined | 18:00 |
| → hbautista_ joined | 18:02 |
| ← hbautista_ left | 18:02 |
| → hbautista joined | 18:02 |
| ← betelgeuse7 left | 18:04 |
| tomek_ → EUstachy_Kapusta | 18:04 |
| EUstachy_Kapusta → Eustachy_Kapusta | 18:04 |
| ← Anarchic left | 18:05 |
| → mokulus joined | 18:05 |
| → betelgeuse7 joined | 18:05 |
| → mikail joined | 18:05 |
| → Anarchic joined | 18:06 |
| ← betelgeuse7 left | 18:08 |
| → randallb joined | 18:09 |
| ← Crassus left | 18:09 |
| → betelgeuse7 joined | 18:10 |
| ← betelgeuse7 left | 18:13 |
| ← Anarchic left | 18:13 |
| → Anarchic joined | 18:14 |
| → betelgeuse7 joined | 18:14 |
| → oriba joined | 18:16 |
| ← betelgeuse7 left | 18:17 |
| → betelgeuse7 joined | 18:19 |
| ← betelgeuse7 left | 18:22 |
| → x_kuru joined | 18:23 |
| → betelgeuse7 joined | 18:23 |
| ← xkuru left | 18:26 |
| ← Noisytoot left | 18:26 |
| → Crassus joined | 18:26 |
| ← betelgeuse7 left | 18:26 |
| ← Gustavo6046 left | 18:26 |
| → betelgeuse7 joined | 18:28 |
| ← betelgeuse7 left | 18:31 |
| → Gustavo6046 joined | 18:31 |
| ← GoLiath_ left | 18:32 |
| → betelgeuse7 joined | 18:32 |
| → rGSAmMZpPYEz joined | 18:32 |
|
rGSAmMZpPYEz
| lurinG freeN0de us3r5 hEr3 iS Impud3nt tH3fT | 18:32 |
| ← rGSAmMZpPYEz left | 18:32 |
|
ikke
| fun times | 18:32 |
| → Noisytoot joined | 18:34 |
|
bremner
| if it continues, we can make the channel +R for a bit | 18:34 |
| ← betelgeuse7 left | 18:35 |
|
ikke
| ahuh | 18:35 |
|
| does libera have +R? | 18:35 |
|
| I thought you need to use extban here | 18:35 |
|
bremner
| oh, probably correct | 18:35 |
|
| ban $~a, I guess | 18:36 |
|
ikke
| nod | 18:36 |
|
| or quiet | 18:36 |
| → betelgeuse7 joined | 18:36 |
|
bremner
| yeah, if someone wanted to stay opped, could also set +z | 18:37 |
| ← betelgeuse7 left | 18:39 |
| → betelgeuse7 joined | 18:41 |
| ← betelgeuse7 left | 18:44 |
| → hVtaoBNohOSU joined | 18:44 |
|
hVtaoBNohOSU
| LuRin9 freEnOD3 uS3Rs hErE Is IMpud3Nt ThEft | 18:44 |
| ← hVtaoBNohOSU left | 18:44 |
| ChanServ set mode: +o | 18:45 |
| ikke set mode: +q | 18:45 |
|
bremner
| ip ban? | 18:45 |
| → betelgeuse7 joined | 18:45 |
|
bremner
| oh, or that | 18:45 |
|
| it's one guy afaict | 18:45 |
| ikke set mode: +b | 18:45 |
| ikke set mode: -q | 18:46 |
|
ikke
| would be fun if you could hell-ban someone | 18:46 |
| ← alzgh left | 18:47 |
| → Guest9 joined | 18:48 |
| → Betal joined | 18:50 |
| ← omnonq9 left | 18:53 |
| betelgeuse7 → betelgeuse | 18:54 |
|
pcarphin
| R2robot just out of curiosity, have you set fish as your system shell. I did that and its non-posix-ness caused problems with things that would run shell commands like emacs. | 18:55 |
|
| What I ended up doing was to have an `if [[ $- == *i* ]] && another_check ; then exec fish`. And the other check is sort of a kill switch that I can activate by creating a file. | 18:57 |
| → lionkor joined | 18:57 |
|
pcarphin
| It seems super sketchy but it has served me well for many years. | 18:58 |
| → Nalt| joined | 18:59 |
| ← Nalt left | 19:01 |
| → omnonq9 joined | 19:06 |
| ← dimi1947 left | 19:07 |
| → dimi1947 joined | 19:08 |
| ← Scotty_Trees left | 19:08 |
| ← dimi1947 left | 19:10 |
| → forgotmynick joined | 19:10 |
| → Scotty_Trees joined | 19:11 |
| → zeenk joined | 19:11 |
| → amanita_ joined | 19:12 |
| → natrys joined | 19:12 |
| ← amanita left | 19:15 |
| → dimi1947 joined | 19:16 |
|
imMute
| pcarphin: as ssystem shell, do you mean /bin/sh or your user's shell noted in /etc/passwd? | 19:16 |
| ← Guest9 left | 19:19 |
| → Guest9 joined | 19:20 |
| ← haltux left | 19:21 |
| ← dimi1947 left | 19:22 |
| → Guest71 joined | 19:22 |
| → brcolow joined | 19:22 |
|
pcarphin
| I mean in /etc/passwd | 19:23 |
| → duckonomy joined | 19:23 |
| ← bynx left | 19:24 |
| → Adoi joined | 19:24 |
| ← AnAverageHuman left | 19:28 |
|
R2robot
| pcarphin: it's my default shell. I haven't had any issues (i use vim (fite me!)) other than a few syntactical things | 19:30 |
|
| pcarphin: I added it to /etc/shells and then did a chsh to change it | 19:31 |
| ← thebombzen left | 19:31 |
| → thebombzen joined | 19:33 |
| ← ausserz left | 19:34 |
| → cbreak joined | 19:35 |
| → Gustavo6046_ joined | 19:40 |
| ← Gustavo6046 left | 19:41 |
| → alzgh joined | 19:42 |
| Gustavo6046_ → Gustavo6046 | 19:43 |
| ← mokulus left | 19:43 |
| → dmang joined | 19:49 |
| ← anton left | 19:50 |
| ← Vonter left | 19:51 |
| → alfredb joined | 19:52 |
| → Codaraxis__ joined | 19:52 |
| ← Codaraxis__ left | 19:52 |
| → Codaraxis joined | 19:53 |
| ← Adoi left | 19:53 |
| → hnOsmium0001 joined | 19:54 |
| → AnAverageHuman joined | 19:54 |
| ← feriman left | 19:55 |
| ← shored1 left | 19:55 |
| → shored joined | 19:57 |
| → sheepduck joined | 19:58 |
| ← randallb left | 20:01 |
| → snood1205 joined | 20:06 |
| → ht85 joined | 20:09 |
|
ht85
| I'd like to submit an RFC, is there anywhere to browse existing ones? Or is it just the mailing list? | 20:09 |
| ← alfredb left | 20:11 |
| → alfredb joined | 20:11 |
| → gast0n joined | 20:12 |
| → pretty_dumm_guy joined | 20:12 |
|
ikke
| Just the mailing list | 20:12 |
|
| https://lore.kernel.org/git/ | 20:12 |
|
ht85
| Thanks ikke | 20:13 |
| ← pretty_dumm_guy left | 20:14 |
|
pcarphin
| R2robot, I use Emacs in evil mode as a kind of orgmode agenda IDE and vim for the rest so we have no beef :) | 20:15 |
| ← sheepduck left | 20:16 |
| → sheepduck joined | 20:16 |
| ← snood1205 left | 20:16 |
| → snood1205 joined | 20:17 |
| → furrymcgee joined | 20:17 |
| → fstd_ joined | 20:22 |
| ← Murr left | 20:22 |
| → Murr joined | 20:23 |
| ← fstd left | 20:23 |
| ← betelgeuse left | 20:25 |
| → betelgeuse joined | 20:26 |
| ← snood1205 left | 20:27 |
| ← alzgh left | 20:28 |
| ← betelgeuse left | 20:29 |
| → betelgeuse joined | 20:31 |
| ← betelgeuse left | 20:34 |
| → betelgeuse joined | 20:35 |
| ← AnAverageHuman left | 20:35 |
| ← betelgeuse left | 20:38 |
| ← alfredb left | 20:39 |
| → argento joined | 20:39 |
| → betelgeuse joined | 20:39 |
| → alfredb joined | 20:39 |
| ← betelgeuse left | 20:43 |
| → snood1205 joined | 20:43 |
| ← snood1205 left | 20:43 |
| → betelgeuse joined | 20:44 |
|
R2robot
| pcarphin: fair enough :P | 20:44 |
| ← otisolsen70 left | 20:45 |
| → AnAverageHuman joined | 20:46 |
| ← betelgeuse left | 20:47 |
| → Gustavo6046_ joined | 20:47 |
| ← Gustavo6046_ left | 20:47 |
| → Gustavo6046_ joined | 20:47 |
| → qunzhong_luxian joined | 20:48 |
| ← Gustavo6046 left | 20:48 |
| → betelgeuse joined | 20:48 |
| → anton joined | 20:50 |
| ← betelgeuse left | 20:51 |
| → Gustavo6046 joined | 20:52 |
| → betelgeuse joined | 20:53 |
| → tmz joined | 20:53 |
| ← Gustavo6046_ left | 20:54 |
| ← betelgeuse left | 20:56 |
| → betelgeuse joined | 20:57 |
| ← madewokherd left | 20:58 |
|
Oblomov
| ok, let's say I have a file A.cc, and I do some refactoring such that most of the code from A.cc goes into B.cc, and A.cc is left with only a small part. | 20:59 |
| ← Gustavo6046 left | 21:00 |
|
Oblomov
| now I want to rebase my work on top of a branch where only A.cc exists and some changes have been made to it that should actually go into B.cc | 21:00 |
| ← betelgeuse left | 21:00 |
|
Oblomov
| git doesn't really reconize the 'A/B split' as a copy or move, which would help immensely. is there something within git or some external tool I can use to deal with this situation? | 21:01 |
| → betelgeuse joined | 21:02 |
| ← alfredb left | 21:02 |
| → Gustavo6046 joined | 21:03 |
|
osse
| Oblomov: try git rebase -X find-renames=30% or whatever | 21:04 |
|
| Oblomov: default is 50% | 21:04 |
| ← ht85 left | 21:04 |
| → hoochmonger joined | 21:04 |
| ← mikail left | 21:05 |
| ← betelgeuse left | 21:05 |
| → betelgeuse joined | 21:06 |
|
Oblomov
| ah, find-renames | 21:06 |
|
| I was looking for something like -C | 21:06 |
| ← arcatech left | 21:07 |
|
squirrel
| .дщп | 21:07 |
|
| oops sorry ignore that | 21:07 |
| ← betelgeuse left | 21:09 |
| → ht85 joined | 21:09 |
| → betelgeuse joined | 21:10 |
| → mikail joined | 21:11 |
| → arcatech joined | 21:11 |
| ← furrymcgee left | 21:11 |
| ← jaggz left | 21:12 |
| → m0viefreak joined | 21:12 |
| ← qunzhong_luxian left | 21:12 |
| → alfredb joined | 21:13 |
|
Oblomov
| osse: damn, still not good. there's still too much of the old A 8-/ | 21:13 |
| ← alfredb left | 21:13 |
| ← betelgeuse left | 21:14 |
| → betelgeuse joined | 21:15 |
| ← ht85 left | 21:15 |
| → mikail_ joined | 21:16 |
| ← mikail left | 21:16 |
| ← betelgeuse left | 21:18 |
| → haltux joined | 21:19 |
| → betelgeuse joined | 21:20 |
| → alfredb joined | 21:20 |
| ← Crassus left | 21:20 |
| ← alfredb left | 21:22 |
| ← betelgeuse left | 21:22 |
| ← lacrymology left | 21:23 |
| → betelgeuse joined | 21:24 |
| → unixbhaskar joined | 21:25 |
| → foo joined | 21:27 |
|
foo
| If I do git add someDir - how do I then undo that? | 21:27 |
|
osse
| foo: git reset someDir | 21:27 |
| ← Nalt| left | 21:27 |
|
osse
| Oblomov: I don't know then | 21:27 |
|
foo
| osse: thank you | 21:29 |
| → alfredb joined | 21:30 |
| ← alfredb left | 21:30 |
| → cliluw joined | 21:33 |
| → madewokherd joined | 21:35 |
|
squirrel
| why does git suggest that i should edit merge message when merging main branch into feature branch? | 21:37 |
|
osse
| because git likes it when you explain why | 21:39 |
| → chexum joined | 21:39 |
|
squirrel
| yes but i would understand if it was feature->master but why is it master->feature? | 21:43 |
|
mackerman
| Branch names are meaningless words to git, makes no difference. | 21:43 |
|
osse
| git generally doesn't care what your branches are called | 21:43 |
|
squirrel
| nothing to do with names | 21:44 |
| ← goldfish left | 21:44 |
| → goldfish joined | 21:44 |
|
osse
| what else? | 21:45 |
|
squirrel
| > Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch. | 21:45 |
|
| -- git | 21:45 |
|
| well it's actually "upstream" but the idea is the same | 21:45 |
|
osse
| I don't get your point | 21:47 |
| → alfredb joined | 21:47 |
|
squirrel
| well this has nothing to do with names, does it | 21:47 |
|
| not sure why you talk about names | 21:48 |
| ← alfredb left | 21:48 |
|
osse
| all you said were "feature" and "master". What else is there to go by | 21:48 |
| → Nalt joined | 21:48 |
|
squirrel
| i'm completely lost | 21:49 |
|
osse
| I can tell *from the names* which is the main line of development and which is a temporary branch | 21:50 |
|
| But Git can' | 21:50 |
|
| t | 21:50 |
|
squirrel
| a "feature" branch is not a branch named "feature" | 21:50 |
|
osse
| I know | 21:50 |
|
squirrel
| so this doesn't have anything to do with names | 21:50 |
|
osse
| But how does Git know which is which? | 21:50 |
| → pretty_dumm_guy joined | 21:50 |
|
squirrel
| why does git have to know it | 21:51 |
|
osse
| Don't you want to figure out when you ask you for a message and when not to? | 21:51 |
|
| or do you want it always not to? | 21:51 |
|
| *want Git to figure out | 21:51 |
|
squirrel
| ok let't start over | 21:52 |
|
osse
| good idea | 21:52 |
|
squirrel
| git is telling me, and i quote, > Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch | 21:53 |
|
| i feel like that of all situations this is one that needs no explanation | 21:53 |
|
| i just want to understand this message | 21:54 |
|
cbreak
| check your hooks. | 21:54 |
|
| then go talk to who ever made it | 21:54 |
|
osse
| no it's default | 21:54 |
|
squirrel
| this is the default message | 21:54 |
| → goldfish_ joined | 21:55 |
|
osse
| from the commit message that added it: "The sentence about justification is one of the few things about standard git that are not agnostic to the workflow that the user chose. However, f824628 was proposed by Linus specifically to discourage users from merging unrelated upstream progress into topic branches. So we may as well take another step in the same direction." | 21:55 |
| ← betelgeuse left | 21:56 |
| ← goldfish left | 21:56 |
|
mackerman
| git::f26af3fcbcbd27392b8c94b1e4eb6e671b2466ab | 21:56 |
|
gitinfo
| Git web link: https://github.com/git/git/commit/f26af3fcbcbd27392b8c94b1e4eb6e671b2466ab | 21:56 |
|
osse
| git::f824628 | 21:56 |
|
gitinfo
| Git web link: https://github.com/git/git/commit/f824628 | 21:56 |
|
osse
| So, eh... I dunno | 21:56 |
|
mackerman
| Feel free to ignore the suggestion and not enter a useful message. | 21:57 |
| → betelgeuse joined | 21:57 |
| → YuGiOhJCJ joined | 21:57 |
| ← forgotmynick left | 21:57 |
| → jazzy joined | 21:58 |
| ← betelgeuse left | 22:00 |
|
squirrel
| on one hand these merges often are unnecessary after it's all finished, on the other one you do them to make sure that your changes play nicely with upstream, and to simplify further merges | 22:00 |
| → betelgeuse joined | 22:01 |
|
osse
| I misunderstood your question | 22:02 |
|
| I haven't really paid much attention to the commentary in the editor :p | 22:02 |
| ← betelgeuse left | 22:04 |
| → betelgeuse joined | 22:06 |
| → devslash joined | 22:08 |
| ← betelgeuse left | 22:08 |
|
devslash
| I need help remembering the right commands. I went to push local changes to github and got an error that the remote location contains changes that I guess arent reflected locally. Can anyone help me remember the command to compare the differences between the remote and local server ? | 22:10 |
| → betelgeuse joined | 22:10 |
| ← amanita_ left | 22:11 |
| → amanita joined | 22:12 |
| ← devslash left | 22:13 |
| ← betelgeuse left | 22:13 |
| → betelgeuse joined | 22:14 |
|
unixbhaskar
| devslash git pull ....that all you need | 22:14 |
|
| devslash: even better git fetch , then see the changes locally with git diff | 22:16 |
|
osse
| that's all well and good, but they left | 22:17 |
| ← betelgeuse left | 22:17 |
|
unixbhaskar
| osse: it's their loss :) | 22:18 |
| → betelgeuse joined | 22:19 |
| ← betelgeuse left | 22:22 |
| ← Murr left | 22:22 |
| → Oblomov joined | 22:22 |
| → Murr joined | 22:22 |
| ← oriba left | 22:22 |
| → betelgeuse joined | 22:23 |
| ← orbyt left | 22:26 |
| ← betelgeuse left | 22:26 |
| ← Guest71 left | 22:27 |
| → betelgeuse joined | 22:28 |
| ← mikail_ left | 22:28 |
| → ausserz joined | 22:29 |
| ← betelgeuse left | 22:31 |
| → betelgeuse joined | 22:32 |
| → BlessJah joined | 22:33 |
| ← Codaraxis left | 22:34 |
| → Codaraxis joined | 22:34 |
| ← Guest9 left | 22:34 |
| ← betelgeuse left | 22:35 |
| ← arcatech left | 22:35 |
| ← Nalt left | 22:36 |
| → betelgeuse joined | 22:37 |
| ← betelgeuse left | 22:40 |
| → Xenguy joined | 22:40 |
| → Vonter joined | 22:41 |
| → betelgeuse joined | 22:41 |
| ← betelgeuse left | 22:44 |
| → betelgeuse joined | 22:45 |
| ← betelgeuse left | 22:48 |
| ← hackinghorn left | 22:49 |
| → betelgeuse joined | 22:50 |
| ← betelgeuse left | 22:53 |
| → betelgeuse joined | 22:54 |
| ← betelgeuse left | 22:57 |
| → Kill-Anirnals joined | 22:58 |
| → betelgeuse joined | 22:59 |
| ← GeorgeK left | 23:00 |
| ← Xenguy left | 23:01 |
| ← jsrnop left | 23:01 |
| ← betelgeuse left | 23:02 |
| → Celelibi_ joined | 23:02 |
| ← chexum left | 23:02 |
| → jsrnop joined | 23:02 |
| → Nalt joined | 23:02 |
| → Xenguy joined | 23:02 |
| → betelgeuse joined | 23:03 |
| ← m0viefreak left | 23:05 |
| → lkor joined | 23:05 |
| ← lionkor left | 23:06 |
| ← betelgeuse left | 23:06 |
| → Nalt| joined | 23:07 |
| → betelgeuse joined | 23:07 |
| ← mrquincy_ left | 23:08 |
| Celelibi_ → Celelibi | 23:09 |
| ← Nalt left | 23:10 |
| ← betelgeuse left | 23:10 |
| → betelgeuse joined | 23:12 |
| ← Xenguy left | 23:12 |
| Nalt| → Nalt | 23:13 |
| ← zeenk left | 23:14 |
| → tchan joined | 23:14 |
| ← betelgeuse left | 23:15 |
| → kaisyu joined | 23:15 |
| → betelgeuse joined | 23:16 |
| ← betelgeuse left | 23:19 |
| → betelgeuse joined | 23:21 |
| ← betelgeuse left | 23:24 |
| → betelgeuse joined | 23:25 |
| ← goldfish_ left | 23:29 |
| ← pretty_dumm_guy left | 23:32 |
| → Xenguy joined | 23:33 |
| ← Vonter left | 23:35 |
| ← BlessJah left | 23:36 |
| → BlessJah joined | 23:43 |
| ← lgc_ left | 23:45 |
| ← haltux left | 23:45 |
| ← Wuzzy left | 23:50 |
| → drew joined | 23:53 |
| ← omnonq9 left | 23:53 |
| ← betelgeuse left | 23:55 |
| ← hbautista left | 23:56 |
| → betelgeuse joined | 23:56 |
| → hbautista joined | 23:56 |
| ← drew left | 23:58 |
| ← lkor left | 23:59 |
| ← betelgeuse left | 23:59 |