| 2020-04-15 |
| ← fission6 left | 00:00 |
| ← sidetrack left | 00:00 |
| ← g00s left | 00:00 |
| → przemoc joined | 00:03 |
|
refried_
| nedbat: it looks like you'd have to `fetch` it from the server, and that many servers are configured to disallow asking for arbitrary commits, even known ones | 00:03 |
|
Eugene
| No, the git protocol does not permit you to fetch arbitrary objects. You can only fetch refs, and then hope that the object is included in the packfile you receive | 00:08 |
| ← Paradisee left | 00:09 |
|
Eugene
| I'm sure you could cobble together `git clone <URL> --mirror` and `git checkout <treeish>` into a one-liner without too much inventiveness ;-) | 00:09 |
| ← tiin57 left | 00:14 |
| ← m0viefreak left | 00:14 |
| ← perrier-jouet left | 00:16 |
| ← BlessJah left | 00:17 |
| → BlessJah joined | 00:17 |
| ← cdown left | 00:17 |
| → tiin57 joined | 00:17 |
| → cdown joined | 00:17 |
| ← dedowsdi left | 00:19 |
| → sidetrack joined | 00:20 |
| ← Wetmelon left | 00:21 |
| ← shush left | 00:21 |
| ← relipse left | 00:21 |
| ← expert975 left | 00:22 |
| → shush joined | 00:24 |
| → dedowsdi joined | 00:24 |
| → gnomadik joined | 00:24 |
| ← gnomadik left | 00:24 |
| → gnomadik joined | 00:25 |
| ← sidetrack left | 00:25 |
| → Wetmelon joined | 00:26 |
| ← cdown left | 00:30 |
| → cdown joined | 00:32 |
| ← shush left | 00:32 |
| → shush joined | 00:33 |
| → rjcarr joined | 00:35 |
| ← cdown left | 00:37 |
| → cdown joined | 00:37 |
|
rjcarr
| I had 5 modified files: A B C D E and wanted to commit only D and E. I staged them, but when I did a commit, I accidentally did a -am switch so all files were commited. Now, I’d like to backout those changes, but still leave the changes in my local workspace. I think I need to do something with “checkout”, but not sure. And if it matters, the changes were already pushed to master. Thanks! | 00:38 |
| ← cdown left | 00:39 |
| → cdown joined | 00:39 |
| ← cdown left | 00:42 |
| ← tiin57 left | 00:44 |
| ← troulouliou_div2 left | 00:44 |
| ← BPL left | 00:46 |
| ← shush left | 00:46 |
| → shush joined | 00:47 |
| → tiin57 joined | 00:47 |
| → cdown joined | 00:49 |
| ← rjcarr left | 00:49 |
| → sidetrack joined | 00:51 |
| ← yawkat left | 00:53 |
| → YuGiOhJCJ joined | 00:54 |
| ← shush left | 00:55 |
| → troulouliou_div2 joined | 00:57 |
|
Eugene
| !undo | 01:00 |
|
gitinfo
| [!fixup] So you lost or broke something or need to otherwise find, fix, or delete commits? Look at https://sukima.github.io/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 01:00 |
| ← gnomadik left | 01:02 |
| → gnomadik joined | 01:03 |
| ← cdown left | 01:03 |
| → cdown joined | 01:04 |
| ← Wetmelon left | 01:05 |
|
Hello71
| they left fifteen minutes ago | 01:05 |
| ← AtumT left | 01:05 |
| ← sidetrack left | 01:05 |
| ← Sasazuka left | 01:06 |
| ← clime left | 01:06 |
|
rafasc
| maybe !logs | 01:07 |
|
gitinfo
| [!irclog] Public logs of #git are kept at: https://gitirc.eu/log | 01:07 |
| ← gnomadik left | 01:07 |
| ← emmanuelux left | 01:08 |
| → yawkat joined | 01:08 |
| ← topdownjimmy left | 01:11 |
| ← thiago left | 01:11 |
| → topdownjimmy joined | 01:12 |
| ← refried_ left | 01:12 |
| → thiago joined | 01:13 |
| ← SpeakerToMeat left | 01:14 |
| ← tiin57 left | 01:14 |
| ← ntqz left | 01:15 |
| ← akem left | 01:18 |
| → tiin57 joined | 01:18 |
| → inkbottle joined | 01:18 |
| ← zebrag left | 01:19 |
| ← pthomas left | 01:20 |
| ← dartmouthed left | 01:20 |
| ← xco left | 01:21 |
| → SpeakerToMeat joined | 01:23 |
| ← NODE left | 01:23 |
|
Hello71
| someone who only waited 11 minutes for an answer is gonna go read the logs? | 01:24 |
| ← lagothrix left | 01:24 |
| ← Benett left | 01:25 |
| → refried_ joined | 01:25 |
| ← rafasc left | 01:26 |
| → cd joined | 01:26 |
| → Benett joined | 01:27 |
| ← SpeakerToMeat left | 01:28 |
| → shush joined | 01:28 |
| → lagothrix joined | 01:31 |
| → zacts joined | 01:37 |
| ← zacts left | 01:37 |
| → soft_concrete joined | 01:39 |
| → SpeakerToMeat joined | 01:42 |
| ← dmc left | 01:43 |
| ← tiin57 left | 01:44 |
| → jaziz joined | 01:45 |
| ← Metalsutton left | 01:47 |
| ← davispuh left | 01:47 |
| → tiin57 joined | 01:47 |
| → Onionnion joined | 01:48 |
| ← refried_ left | 01:51 |
|
brezanac
| Any recommendation for a standalone Git LFS server? One that is reliable and doesn't require too much tinkering to setup. | 01:53 |
| andres_ → andres | 01:54 |
| ← g4570n left | 01:58 |
| ← cdown left | 02:02 |
| → dmc joined | 02:03 |
| ← shush left | 02:05 |
| → shush joined | 02:06 |
| → cdown joined | 02:07 |
| ← shush left | 02:08 |
| ← tiin57 left | 02:14 |
| → tiin57 joined | 02:18 |
| ← Cabanoss- left | 02:30 |
| ← thiago left | 02:34 |
| ← ewitz left | 02:34 |
| ← Brainium left | 02:38 |
| ← chachasmooth left | 02:38 |
| → chachasmooth joined | 02:40 |
| → Cabanossi joined | 02:40 |
| → Wetmelon joined | 02:43 |
| ← tiin57 left | 02:44 |
| → tiin57 joined | 02:48 |
| → sidetrack joined | 02:49 |
| → dqx_ joined | 02:49 |
| → Goplat joined | 02:52 |
| ← kupi left | 02:53 |
| ← sidetrack left | 02:54 |
| ← lagothrix left | 02:55 |
| → lagothrix joined | 02:55 |
| ← opal left | 03:00 |
| ← libertyprime left | 03:02 |
| → opal joined | 03:03 |
| → sidetrack joined | 03:05 |
| → libertyprime joined | 03:08 |
| ← sidetrack left | 03:10 |
| ← tiin57 left | 03:14 |
| → tiin57 joined | 03:18 |
| ← canadev left | 03:18 |
| ChanServ set mode: +o | 03:19 |
|
Eugene
| No, I'm just an incompetent op who doesn't look at join/part messages :v | 03:19 |
| Eugene changed the topic to: Welcome to #git, home of your favorite distributed blockchain database | First visit? https://gitirc.eu | Current stable version: 2.26.1 | Getting "cannot send to channel"? /msg gitinfo .voice | This channel is logged: https://gitirc.eu/log | git-outhouse: when even plumbing commands are too nice | 03:19 |
| Eugene kicked Eugene (de-op) | 03:20 |
| → Eugene joined | 03:20 |
| → Sasazuka joined | 03:21 |
|
Hello71
| is that also why you don't do /mode #git -o Eugene | 03:22 |
|
Eugene
| Close: somewhere, I have a pisg stats bot | 03:22 |
| ← veegee left | 03:22 |
| ← Sasazuka left | 03:22 |
|
Hello71
| or are you just checking that your kick alias is working ;) | 03:22 |
|
Eugene
| It's apparently been broken since February, again | 03:22 |
|
| Also it's a good conversation starter | 03:23 |
|
| Hi, how are you? | 03:23 |
| ← Wetmelon left | 03:25 |
| → veegee joined | 03:27 |
| → MylesBorins joined | 03:28 |
| ← libertyprime left | 03:30 |
| → sidetrack joined | 03:32 |
| → onizu joined | 03:36 |
| ← Benett left | 03:39 |
| ← MylesBorins left | 03:42 |
| ← veegee left | 03:43 |
| ← sidetrack left | 03:44 |
| ← tiin57 left | 03:44 |
| → Benett joined | 03:44 |
| → veegee joined | 03:45 |
| ← Maxattax left | 03:45 |
| → tiin57 joined | 03:47 |
| → sidetrack joined | 03:51 |
| ← mowcat left | 03:52 |
| ← sidetrack left | 03:57 |
|
inkbottle
| How can I have a path or a reference to a local file but related to a specific commit? | 03:59 |
| → enriooooooo joined | 04:00 |
| ← lankanmon_ left | 04:01 |
| → lankanmon joined | 04:04 |
| ← tiin57 left | 04:14 |
| → fstd joined | 04:15 |
| → MylesBorins joined | 04:17 |
| → tiin57 joined | 04:18 |
| → Cabanoss- joined | 04:19 |
| ← Cabanossi left | 04:19 |
| Cabanoss- → Cabanossi | 04:19 |
| → libertyprime joined | 04:19 |
| ← fstd left | 04:22 |
| → fstd joined | 04:22 |
|
_ikke_
| inkbottle: <commit>:path/to/file | 04:30 |
| → blahboybaz joined | 04:31 |
| ← enriooooooo left | 04:34 |
| ← raven-au left | 04:35 |
| → raven-au joined | 04:35 |
|
inkbottle
| _ikke_: tx | 04:36 |
| ← retroj- left | 04:37 |
| ← Onionnion left | 04:38 |
| → NightQuest joined | 04:39 |
| ← libertyprime left | 04:40 |
| ← fitzgerald1337 left | 04:41 |
| ← tiin57 left | 04:44 |
| → libertyprime joined | 04:45 |
| ← cliluw left | 04:47 |
| → tiin57 joined | 04:47 |
| → clara97 joined | 04:53 |
| → sidetrack joined | 04:54 |
| ← sidetrack left | 04:58 |
| → th_ joined | 04:59 |
| → pks_ joined | 05:02 |
| ← umask077 left | 05:03 |
| → umask077 joined | 05:03 |
| ← pks left | 05:04 |
| pks_ → pks | 05:04 |
| → sauvin joined | 05:06 |
| ← Heirlung left | 05:07 |
| ← blahboybaz left | 05:12 |
| ← tiin57 left | 05:14 |
| → Heirlung joined | 05:15 |
| → tiin57 joined | 05:18 |
| → TomTom joined | 05:25 |
| ← thomasross left | 05:27 |
| ← NightQuest left | 05:31 |
| ← hqdruxn08_ left | 05:35 |
| → hqdruxn08 joined | 05:38 |
| → Phylock joined | 05:38 |
| → mightyjens joined | 05:42 |
| ← tiin57 left | 05:44 |
| ← nabil left | 05:46 |
| → tiin57 joined | 05:47 |
| → feriman joined | 05:59 |
| → mbalmer joined | 06:01 |
| ← Phylock left | 06:02 |
| → Naptra joined | 06:03 |
| ← Betal left | 06:04 |
| ← mbalmer left | 06:05 |
| ← tiin57 left | 06:14 |
| ← ferdna left | 06:16 |
| ← donofrio left | 06:16 |
| → tiin57 joined | 06:17 |
| → g00s joined | 06:18 |
| ← Goplat left | 06:24 |
| → Abdullah joined | 06:24 |
| → IoannisJVM joined | 06:26 |
| ← IoannisJVM left | 06:27 |
| ← tpaper left | 06:28 |
| → Wetmelon joined | 06:29 |
| → tpaper joined | 06:30 |
| ← hussam left | 06:31 |
| ← dqx_ left | 06:31 |
| → nickodd joined | 06:31 |
| → crose joined | 06:34 |
| ← Jackneill left | 06:34 |
| ← gordonfish left | 06:41 |
| ← Wetmelon left | 06:44 |
| ← tiin57 left | 06:44 |
| → tiin57 joined | 06:47 |
| → rfuentess joined | 06:48 |
| → Aquazi joined | 06:48 |
| → dartmouthed joined | 06:48 |
| ← causasui left | 06:50 |
| → Jackneill joined | 06:53 |
| → fstd_ joined | 07:00 |
| ← clara97 left | 07:03 |
| ← fstd left | 07:04 |
| fstd_ → fstd | 07:04 |
| → clime joined | 07:08 |
| ← soft_concrete left | 07:09 |
| → tonythomas joined | 07:12 |
| → mbalmer joined | 07:13 |
| ← tiin57 left | 07:14 |
| → wootehfoot joined | 07:14 |
| → calcul0n joined | 07:15 |
| → covid20 joined | 07:16 |
| → Borkr joined | 07:17 |
| ← mbalmer left | 07:18 |
| → tiin57 joined | 07:18 |
| ← ephemera_ left | 07:20 |
| → Paradisee joined | 07:22 |
| → SerialSmile joined | 07:27 |
| → ephemera_ joined | 07:28 |
|
wootehfoot
| Aloha, how much or little can be gained by | 07:31 |
|
| by PGO+LTO when building git* | 07:31 |
|
| tried to google, but git and 'compiling' is hitting way too many results, haven't found traces of 'lto' in git repo, but I figured some madman has already done this | 07:32 |
| → mobidrop joined | 07:38 |
| ← tiin57 left | 07:44 |
| → nabil joined | 07:45 |
| → mbalmer joined | 07:46 |
| → tiin57 joined | 07:48 |
| → xco joined | 07:48 |
| ← mbalmer left | 07:50 |
| → mbalmer joined | 07:50 |
| ← mat001__ left | 07:56 |
| ← Jackneill left | 07:58 |
| → akem joined | 08:00 |
| ← akem left | 08:00 |
| → akem joined | 08:01 |
| → wrksx_ joined | 08:01 |
| → wrksx__ joined | 08:03 |
| ← wrksx left | 08:04 |
| → dionysus69 joined | 08:05 |
| ← wrksx_ left | 08:06 |
| ← wrksx__ left | 08:08 |
| → wrksx__ joined | 08:10 |
| → Jackneill joined | 08:13 |
| ← tiin57 left | 08:14 |
| → tiin57 joined | 08:18 |
| ← Borkr left | 08:18 |
| → abraxxas joined | 08:24 |
| ← mbalmer left | 08:25 |
| → mbalmer joined | 08:25 |
| ← mbalmer left | 08:30 |
| ← xSke left | 08:31 |
| → xSke joined | 08:32 |
| → Daisae joined | 08:32 |
| ← tiin57 left | 08:44 |
| → tiin57 joined | 08:48 |
| ← libertyprime left | 08:49 |
| → libertyprime joined | 08:51 |
| ← xSke left | 08:55 |
| ← ExeciN left | 08:56 |
| → Squarism joined | 09:01 |
| ← Daisae left | 09:01 |
| ← YuGiOhJCJ left | 09:03 |
| → YuGiOhJCJ joined | 09:03 |
|
Squarism
| If you fork a repository "A" into a new one "B". Delete some files you dont want in B. Further along someone changes stuff files the files (deleted in B) of A. Someone pulls master from A into B. The deleted files will re-appear. | 09:04 |
|
| Is there some trick to avoid this? Can you say yo're not interested in certain files when pulling? | 09:04 |
|
_ikke_
| No, not really | 09:06 |
| ← YuGiOhJCJ left | 09:06 |
|
_ikke_
| rebasing is your best option, but conflicts are inevitlbl | 09:08 |
| → currybullen joined | 09:09 |
| ← currybullen left | 09:09 |
| → currybullen joined | 09:11 |
| → selckin joined | 09:12 |
|
currybullen
| if i do a 'git diff master...HEAD', is there any way to include any current unstaged changes in the displayed diff? | 09:12 |
| ← tiin57 left | 09:14 |
| ← Qizzy left | 09:15 |
| → Qizzy joined | 09:15 |
| ← crater2150 left | 09:16 |
| ← SerialSmile left | 09:16 |
| → thefatbird joined | 09:16 |
| → crater2150 joined | 09:17 |
| → tiin57 joined | 09:17 |
| → ablackack joined | 09:17 |
| → hightower2 joined | 09:19 |
|
hightower2
| Hey folks, I had two branches - master and dev which was branched from master. Because there were various commits to both, I first merged master into dev and resolved all conflicts. Now I would like to move the complete thing back to master. What's the right way to do this? | 09:21 |
| → mbalmer joined | 09:24 |
|
Habbie
| hightower2, merge dev into master - should be painless at this point | 09:24 |
|
hightower2
| hmm strange, not sure why it gave me a ton of conflicts then.. let me check what the nature of the reported conflicts is then | 09:26 |
| ← mbalmer left | 09:30 |
|
cdunklau
| hightower2: did you _commit_ the conflict resolution? | 09:31 |
|
| it would help to see your terminal session | 09:31 |
|
Habbie
| hightower2, it should be painless *now that master is merged into dev* as you said | 09:32 |
| ← svm_invictvs left | 09:34 |
| → svm_invictvs joined | 09:35 |
| → bolovanos joined | 09:38 |
| → mauz555 joined | 09:39 |
| → umask078 joined | 09:40 |
| → igemnace joined | 09:40 |
| ← umask078 left | 09:43 |
| ← tiin57 left | 09:44 |
| ← umask077 left | 09:44 |
| → umask077 joined | 09:45 |
| → tiin57 joined | 09:48 |
| ← libertyprime left | 09:55 |
| ← rustyshackleford left | 09:57 |
| ← nabil left | 09:59 |
| → mbalmer joined | 10:05 |
| ← mbalmer left | 10:07 |
| → cousteau joined | 10:11 |
|
cousteau
| Hi! | 10:11 |
| ← abraxxas left | 10:12 |
|
cousteau
| What's the difference between git ls-files --ignored and --others? | 10:13 |
| ← chiastre left | 10:14 |
|
cousteau
| git ls-files --ignored --exclude-standard doesn't seem to show all ignored files | 10:14 |
| ← tiin57 left | 10:14 |
| → chiastre joined | 10:15 |
|
osse
| it's not either-or | 10:15 |
|
| --others show untracked files. you use --ignored *with* --others to filter the result to only ignored files | 10:16 |
|
cousteau
| OK so ignore others shows files that are ignored AND untracked | 10:17 |
| → calcul0n_ joined | 10:17 |
|
cousteau
| Whereas others by itself shows only untracked files | 10:17 |
|
| And ignored by itself shows... uh... files that are tracked despite of being in .gitignore maybe? | 10:18 |
| → tiin57 joined | 10:18 |
|
osse
| yes | 10:19 |
|
| tracked files that also match in .gitignore (ie. they would have been ignored) | 10:19 |
|
cousteau
| In general, if I want to list all files that are not part of the commit I'd do git ls-files --others, right? | 10:19 |
| ← akem left | 10:19 |
|
cousteau
| I see, thanks! | 10:19 |
|
osse
| yes | 10:19 |
| → akem joined | 10:20 |
| ← calcul0n left | 10:20 |
| ← akem left | 10:20 |
|
cousteau
| OK then that's exactly what I wanted | 10:20 |
|
osse
| you can also use --exclude to customize what you want to ignore | 10:20 |
| → akem joined | 10:20 |
|
osse
| might be useful for enumeration only certain types of ignored files | 10:20 |
|
| *enumerating | 10:20 |
| ← calcul0n_ left | 10:21 |
|
cousteau
| Good, but for the time being I just wanted to know which files had been generated by this project | 10:21 |
| → nabil joined | 10:23 |
| → calcul0n joined | 10:23 |
|
cousteau
| Now I'm gonna see if I figure out the right git submodule foreach command | 10:23 |
| → hussam joined | 10:26 |
|
cousteau
| OK it was trivial, BUT the problem is that git submodule foreach shows paths relative to the repository home | 10:27 |
| → chloekek joined | 10:27 |
| → HumanGeek joined | 10:28 |
|
_ikke_
| guardian: Might be a similar case to what you ran into: https://lore.kernel.org/git/87zhbdcflb.fsf@igel.home/T/#t | 10:29 |
|
chloekek
| Hi, I am looking for a command that would change the parent commit of a given commit, but no more than that (in contrast with rebase, which computes applies changes on top of something, rather than retain the exact snapshot of the tree). | 10:29 |
|
osse
| cousteau: within the foreach script snippet there are some vars you can use | 10:29 |
|
cousteau
| In fact I think this is more likely a task for find -newer | 10:29 |
|
| osse: thanks, will look into them | 10:30 |
| → mbalmer joined | 10:30 |
| ← Human_G33k left | 10:31 |
|
chloekek
| It seems like what I’m looking for is grafts. I’ll try that. | 10:32 |
|
cousteau
| Anyway yes, I think I'll just use find, since I would also like to track WHEN files were created | 10:32 |
| → troulouliou_dev joined | 10:32 |
|
osse
| cousteau: it's exactly that you're after. git replaced --graft | 10:34 |
|
| oops, that was for chloekek | 10:34 |
|
cousteau
| :) | 10:34 |
|
osse
| chloekek: note that this will only work in the local repository. you can use filter-branch or equivalent to actually (re)write the object in properly, which necessitates force push and all the rest of it | 10:34 |
| ← mbalmer left | 10:35 |
|
chloekek
| osse: Thanks. Actually I just found a third-party command git-reparent which does automates this. :) | 10:38 |
| ← JanC left | 10:41 |
| → JanC joined | 10:42 |
| ← tiin57 left | 10:44 |
| → tiin57 joined | 10:47 |
| ← chloekek left | 10:49 |
| ← Anty0 left | 10:50 |
| ← g00s left | 10:56 |
| → pepa joined | 10:58 |
|
pepa
| to do the equivalent of svn update would be git pull right? | 10:58 |
|
_ikke_
| pepa: Not quite | 11:00 |
|
| in the sense that they are not directly equivalent | 11:00 |
|
pepa
| I want to get code from remote | 11:00 |
|
| which git command should I use | 11:01 |
| → mbalmer joined | 11:02 |
|
_ikke_
| git pull would work, but if you run that arbitrarily, you will also get a lot of merges in you history, which would make it hard to follow | 11:02 |
|
| pepa: did you create commits locally already? | 11:02 |
|
pepa
| my real issue is | 11:04 |
| → mowcat joined | 11:04 |
|
pepa
| I do "git pull" and I get "failed to connect... timed out" | 11:04 |
|
| any suggestions on how to debug this? | 11:04 |
|
| like is there any git command built for debugging stuff like this? | 11:05 |
|
_ikke_
| GIT_TRACE=1 git pull | 11:06 |
|
| but that goes low level | 11:06 |
|
| what does git remote -v return? | 11:06 |
| ← ryzokuken left | 11:08 |
| → ryzokuken joined | 11:08 |
|
pepa
| GIT_TRACE=1 git pull ------------> GIT_TRACE is not recognized as an internal or external command | 11:09 |
| ← mbalmer left | 11:10 |
| ← ryzokuken left | 11:10 |
|
_ikke_
| oh, you are on windows | 11:10 |
| → ryzokuken joined | 11:10 |
| ← tiin57 left | 11:14 |
| → tiin57 joined | 11:18 |
| ← fstd left | 11:19 |
| → fstd joined | 11:20 |
|
lineos
| The repository has the structure: develop branch and branches for features. If feature2 depends on feature1, but feature1 has not been merged to develop yet, what would be a good strategy to start working on feature2 before this happens? Make feature2 branch from feature1? When doing this in the past I have always had a lot of merge conflicts. Is there a better strategy to avoid this? Maybe branch from develop and pick | 11:24 |
|
| changes from feature1? | 11:24 |
| ← [Brain] left | 11:24 |
| ← shicks2525 left | 11:25 |
| → shicks2525 joined | 11:25 |
| → fermion joined | 11:27 |
| → fitzgerald1337 joined | 11:27 |
| → LiENUS joined | 11:27 |
| → nickmass joined | 11:28 |
| → holdsworth joined | 11:28 |
| ← Technodrome left | 11:28 |
| → thevisitor joined | 11:29 |
| ← bket left | 11:30 |
| ← osse left | 11:30 |
| → bket joined | 11:30 |
| → osse joined | 11:31 |
|
lineos
| or it's the same anyway | 11:32 |
|
bkhl
| Branching from feature1 seems most straight forward based on what you describe. | 11:32 |
|
lineos
| and after feature1 is merged, merge develop into feature2 or merge feature1 into feature2? | 11:33 |
| → c0san0stra joined | 11:33 |
| ← fitzgerald1337 left | 11:34 |
|
_ikke_
| You could just merge feature2 into develop when feature2 is ready | 11:34 |
|
lineos
| No need to update feature2 before merging? | 11:35 |
|
_ikke_
| merging feature1 into feature2 makes no sense, as feature2 is based on feature1 | 11:35 |
|
bkhl
| _ikke_: except if there are minor changes to feature1, or develop is merged into the feature1 branch | 11:36 |
| → fitzgerald1337 joined | 11:37 |
| → thiago joined | 11:37 |
|
bkhl
| Anyway even if you do, it should then be no problem to either first merge feature1 and then feature2, or just feature2 directly (which will also include feature1) | 11:37 |
|
| … to develop I mean. | 11:37 |
|
lineos
| Thank you, I'll try that then. | 11:38 |
| ← feriman left | 11:39 |
| → thomas_25 joined | 11:40 |
| ← tiin57 left | 11:44 |
| → tiin57 joined | 11:48 |
| → xSke joined | 11:48 |
|
_ikke_
| For merge conflicts it does not matter anyway what you merge into what | 11:48 |
| → silviof joined | 11:50 |
| → caterfxo joined | 11:52 |
| → mescalinum joined | 11:54 |
| ← Jackneill left | 11:55 |
| → aliss joined | 11:59 |
| ← mescalinum left | 12:00 |
| ← fitzgerald1337 left | 12:01 |
| → mescalinum joined | 12:03 |
| ← mescalinum left | 12:07 |
| → Janni joined | 12:09 |
|
Janni
| Hello there! I have some questions concerninge "automatic merge strategies". A bit of background... | 12:09 |
|
| In our company we have decided to go with a testing/branching pattern where tests are done (mostly) in a single shared environment. | 12:10 |
| → Jackneill joined | 12:11 |
|
Janni
| (I'm not here to discuss this particular choice, actually it's working out quite fine so far.) | 12:11 |
|
nkuttler
| what do you mean by tests? | 12:11 |
|
| like, a feature branch? | 12:11 |
| → bsjd joined | 12:12 |
|
Janni
| Alright, I'll explain. | 12:12 |
|
| Developers will work on their own feature branches. However, the (entire) application is not that easy to deploy so we want to avoid too many versions being deployed at the same time. | 12:13 |
| ← tiin57 left | 12:14 |
|
Janni
| Also, the mental capacities of the testers are... limited. They tend to be confused by having to look at different versions of the application in order to test different features. | 12:14 |
|
| So we have decided to keep feature branches for the developers, but to deploy a wild mixture of untested features together in a single application. | 12:15 |
|
| So we have a branch "test" into which everyone can merge their features. This branch is then automatically deployed (after each change). | 12:15 |
| ← dedowsdi left | 12:16 |
|
Janni
| This approach is working out quite well so far, except for the obvious problem... conflicts. | 12:16 |
|
| We were thinking a solution as follows: we merge features automatically into the testing branch. | 12:17 |
|
| Let's say we take all open PR on our github repository (potentially only those tagged with a certain label). | 12:17 |
| → tiin57 joined | 12:18 |
|
Janni
| Then each time there is a new PR (or a PR changes) we recreate the "test" branch, by resetting it to master and then merging the PRs one-by-one, skipping over any PR that causes a conflict, triggering some sort of notification. | 12:19 |
|
| I was just wondering whether anyone here already had experience with that sort of approach and whether they could recommend a strategy (or even a tool). | 12:19 |
|
_ikke_
| Sounds a bit like what Junio (the git maintainer) does for the pu branch | 12:20 |
|
Janni
| I'm not too worried btw, whether the approach will work or not. The non-automatic approach we're currently using is working alright, and the automisation will makes things even more practical. | 12:20 |
|
_ikke_
| look also in man git rerere to let git automatically resolve conflicts that you solved before | 12:21 |
|
gitinfo
| the git-rerere manpage is available at https://gitirc.eu/git-rerere.html | 12:21 |
|
Janni
| ikke: *looking into it* | 12:21 |
|
| Thanks. | 12:21 |
| → Brainium joined | 12:22 |
| → fission6 joined | 12:23 |
| → cruxeternus joined | 12:30 |
| → fassl joined | 12:35 |
| ← Jackneill left | 12:35 |
| ← karoshi left | 12:36 |
| → Wetmelon joined | 12:39 |
| ← tiin57 left | 12:44 |
| → ar1el joined | 12:45 |
| ← theorangeone left | 12:46 |
| → tiin57 joined | 12:48 |
| → mbalmer joined | 12:50 |
| → Maxattax joined | 12:50 |
| → Jackneill joined | 12:50 |
| ← FFY00 left | 12:51 |
| → theorangeone joined | 12:51 |
| → FFY00 joined | 12:52 |
| ← mbalmer left | 12:56 |
| ← Wetmelon left | 12:56 |
| → CodeSlingerPaul joined | 12:59 |
| → kristofferR joined | 13:00 |
| ← thiago left | 13:01 |
| ← xcm left | 13:02 |
| → xcm joined | 13:02 |
| → thiago joined | 13:03 |
| → g4570n joined | 13:04 |
| ← FFY00 left | 13:04 |
| → FFY00 joined | 13:05 |
| ← jaziz left | 13:07 |
| → c0c0 joined | 13:09 |
| → mat001 joined | 13:10 |
| → dostoyevsky joined | 13:11 |
|
dostoyevsky
| is there a good way to completely remove files from the git repo? Sometimes I check in large blobs to make sure e.g. some code runs reliably, but later I might find a way to do it without the blob... and would like to slim the repo down again, at the price of breaking older versions in git | 13:12 |
| ← aliss left | 13:13 |
| → thebope joined | 13:13 |
|
selckin
| !paste | 13:14 |
|
gitinfo
| Please use a pastebin for snippets longer than one line. Persistent and can be used with a GitHub account: https://gist.github.com/ - one hour auto-delete: https://upaste.de/ | 13:14 |
| ← tiin57 left | 13:14 |
|
selckin
| dostoyevsky: depends what you mean with good, this is a sript i keep around https://upaste.de/oGE | 13:15 |
|
| but probably 'no' | 13:15 |
|
dostoyevsky
| selckin: my go to solution in the past has always been: create a new repo... based on the state without the large blobs... that seems to be cleanest... so I'd have repos like: project, project2 ... and the highest number is the one that's currently active | 13:17 |
| → tiin57 joined | 13:18 |
|
dostoyevsky
| selckin: thanks for the script! | 13:19 |
| → rustyshackleford joined | 13:19 |
| ← cousteau left | 13:26 |
| ← kristofferR left | 13:27 |
| → Phylock joined | 13:30 |
| ← roadie left | 13:30 |
| → refried_ joined | 13:35 |
| → Borkr joined | 13:43 |
| ← tiin57 left | 13:44 |
| → coet-i3 joined | 13:46 |
|
coet-i3
| Hi everyone! How can I know why is 'git push' asking for a user and password of github.com instead of using my ssh key? I thought I had everything setup properly, but it's still asking me for user/passwd | 13:46 |
|
osse
| coet-i3: what does git remote -v print? | 13:47 |
| → tiin57 joined | 13:48 |
|
coet-i3
| osse: origin https://github.com/myuser/myrepo.git (fetch) | 13:48 |
| → FH_thecat joined | 13:48 |
| → chandoo joined | 13:48 |
|
coet-i3
| and the same but with (push) | 13:48 |
|
Hello71
| what's the point of censoring your username | 13:48 |
|
osse
| coet-i3: git remote set-url origin [email@hidden.address] and try again | 13:48 |
| → vdamewood joined | 13:48 |
|
coet-i3
| osse: yay! that worked, thanks! | 13:49 |
| ← JanC left | 13:50 |
|
coet-i3
| I didn't know that the usage of ssh keys depends on the way you clone the repository :S | 13:50 |
| → JanC joined | 13:50 |
| → relipse joined | 13:51 |
|
osse
| well... technically it doesn't since we were able to fix it :p | 13:52 |
|
| the URL matters. | 13:52 |
|
leah2
| how can i resolve REVISION:PATH to a BLOB id? | 13:53 |
|
| git show will display it, but i need the hash | 13:53 |
|
osse
| rev-parse | 13:54 |
|
leah2
| can i do that for many such strings at once? | 13:54 |
|
osse
| yes | 13:55 |
|
Hello71
| coet-i3: well you need to use ssh to use ssh | 13:55 |
| → amahl_ joined | 13:56 |
|
coet-i3
| Hello71: yes, that makes sense :P | 13:57 |
|
leah2
| osse: but just via cmdline, not stdin? | 13:58 |
|
osse
| yes | 13:58 |
|
leah2
| why >.> | 13:58 |
|
osse
| huh? | 13:59 |
|
leah2
| name-rev etc all have --stdin | 13:59 |
|
osse
| oh | 13:59 |
| → aliss joined | 13:59 |
|
osse
| i misunderstood | 13:59 |
| → cdown_ joined | 14:01 |
|
osse
| Would be useful to read stdin | 14:01 |
|
leah2
| i want to find all blobs that belong to a filename over the history | 14:02 |
|
| perhaps parsing git-log --raw is better | 14:02 |
|
osse
| yeah that or rev-list | 14:02 |
|
leah2
| how does rev-list help? | 14:02 |
|
osse
| it's basically log without the prettiness | 14:02 |
|
| also it has a --stdin flag | 14:03 |
|
leah2
| and without the diff-tree | 14:03 |
|
| so i dont get the blob ids? | 14:03 |
|
osse
| diffing is not related | 14:03 |
|
leah2
| or print the tree | 14:03 |
| ← cdown left | 14:03 |
| cdown_ → cdown | 14:03 |
|
osse
| try git rev-list --objects master -- filename | grep filename | 14:04 |
| ← Janni left | 14:05 |
|
leah2
| aah | 14:05 |
|
osse
| awk -v f=filename '$2 == f { print 41 }' | 14:05 |
|
leah2
| perfect | 14:05 |
| ← vdamewood left | 14:05 |
| → gordonfish joined | 14:05 |
| ← bsjd left | 14:05 |
| ← theorangeone left | 14:06 |
|
osse
| awk -v f=filename '$2 == f { print $1 }' | 14:06 |
| ← FH_thecat left | 14:07 |
| → theorangeone joined | 14:07 |
|
leah2
| ofc | 14:07 |
|
| i didnt see --objects at first | 14:07 |
|
osse
| take a look at --filter too | 14:08 |
|
leah2
| yep, but here i just need all blobs | 14:08 |
|
osse
| might be able to get away without any grepping or awking | 14:09 |
|
leah2
| this is a perl script anyway | 14:09 |
| ← mowcat left | 14:11 |
| ← dmc left | 14:12 |
| ← sgn left | 14:12 |
| ← tiin57 left | 14:14 |
| → mowcat joined | 14:14 |
| → sgn joined | 14:14 |
| → theoceaniscool joined | 14:15 |
|
pepa
| can you please look at this stack trace? https://pastebin.com/BvEfqq3C | 14:17 |
| → tiin57 joined | 14:17 |
|
pepa
| it seems the problem only happens from the console, not from a web browser for example | 14:18 |
|
Habbie
| is something like telnet able to connect to the port from the console? | 14:18 |
|
_ikke_
| Is there a proxy involved? | 14:19 |
|
tango_
| g22 | 14:20 |
|
| ehm sorry | 14:20 |
|
Habbie
| _ikke_, i put in five bucks | 14:21 |
|
pepa
| telnet is not recognized as an internal command | 14:21 |
|
| wtf | 14:21 |
|
| windows doesn't have telnet anymore? | 14:21 |
|
Habbie
| you have to install it | 14:21 |
|
| some pkg command | 14:21 |
|
pepa
| in windows | 14:21 |
|
Habbie
| yes | 14:21 |
|
coet-i3
| why does _ikke_ have an '@' in front of the nickname? | 14:21 |
|
Habbie
| but any other tool that can connect to a port would work too | 14:21 |
|
| like an ftp client or ssh or curl or wget | 14:21 |
|
| pepa, dism /online /Enable-Feature /FeatureName:TelnetClient | 14:22 |
|
pepa
| but anyway I am also connecting to the same url and port from a web browser | 14:22 |
|
Habbie
| yes | 14:22 |
|
| we read that :) | 14:22 |
|
pepa
| so that works that there is a connection | 14:22 |
|
| so that shows that there is a connection | 14:22 |
|
| if that was your question | 14:22 |
|
Habbie
| no | 14:23 |
|
| the question was whether any other software *in the console* can make the connection | 14:23 |
|
_ikke_
| pepa: set | findstr http | 14:24 |
| → donofrio joined | 14:25 |
|
pepa
| so it's telnet host:port | 14:25 |
|
| right? | 14:25 |
|
Habbie
| it's 'telnet host port' on my linux | 14:26 |
|
pepa
| I'm on windows | 14:26 |
|
Habbie
| just telling you what i know - it's probably a space for you too | 14:27 |
| ← coet-i3 left | 14:28 |
|
pepa
| well my partner can do the git pull | 14:28 |
|
| and the telnet does not work for him either | 14:28 |
|
Habbie
| how does it fail? | 14:28 |
|
| can he also look at 'set | findstr http' and compare the output with yours? | 14:29 |
|
pepa
| could not open connection to the host, on port 443: connect failed | 14:29 |
|
| what does 'set | findstr http' do? | 14:30 |
|
Habbie
| it looks for environment variables with http in their name, is my guess | 14:30 |
| ← Eduard_Munteanu left | 14:31 |
|
pepa
| it doesn't show anything | 14:31 |
|
| result is empty | 14:31 |
|
Habbie
| on both systems? | 14:32 |
|
pepa
| yes | 14:33 |
|
Habbie
| then i'm out of ideas | 14:34 |
|
pepa
| it says | 14:35 |
|
| "Couldn't find host yyyyyyyyyyyyyyyyyy in the _netrc file" | 14:35 |
|
| what is the _netrc file? | 14:35 |
| → royal_screwup21 joined | 14:35 |
| ← tanuki left | 14:36 |
| → tanuki joined | 14:38 |
| → mbalmer joined | 14:39 |
|
Habbie
| i don't know | 14:40 |
|
| weird host name btw ;) | 14:40 |
| → roadie joined | 14:41 |
| → Newami joined | 14:41 |
| → BPL joined | 14:41 |
| ← Newami left | 14:42 |
| → sidetrack joined | 14:43 |
|
_ikke_
| pepa: curl (which git uses in the background) uses a netrc file to specify some rules per host | 14:43 |
|
| that it cannot find it is not an issue | 14:43 |
| → feriman joined | 14:43 |
|
Habbie
| ah | 14:43 |
|
| so we can get curl -v? | 14:43 |
| ← fraktor left | 14:43 |
|
Habbie
| from both systems? | 14:43 |
|
| that should be useful | 14:43 |
|
_ikke_
| libcurl does not met curl as a command is installed | 14:44 |
| ← mbalmer left | 14:44 |
| ← tiin57 left | 14:44 |
|
Habbie
| right | 14:45 |
|
| then can we get useful debugging out of the working system perhaps? | 14:45 |
| ← figuinhas left | 14:47 |
| → tiin57 joined | 14:48 |
|
pepa
| so it's curl -v host:443 | 14:48 |
| → malmalmal joined | 14:48 |
|
_ikke_
| curl -v http://hos | 14:49 |
|
| curl -v https://hos | 14:49 |
|
pepa
| so I did git remote -v | 14:52 |
|
| in the working system | 14:52 |
|
| this returned a url ending in .git | 14:52 |
| ← HumanGeek left | 14:52 |
|
pepa
| then I did | 14:53 |
|
| curl -v https://.....git | 14:53 |
|
| and it says "failed to connect to xxxx: timed out" | 14:53 |
|
| this is in the working system | 14:53 |
| ← SirD_P left | 14:57 |
|
pepa
| any ideas? | 14:57 |
| ← random_yanek left | 15:01 |
| ← mowcat left | 15:01 |
|
_ikke_
| No, sorry | 15:02 |
|
amahl_
| for some personal projects I've used git in a silly way | 15:04 |
|
| where master branch has hundreds of tiny commits. each is a small change | 15:05 |
| ← thansen left | 15:05 |
|
amahl_
| now I wanted to squash it a little | 15:06 |
| → SirD_P joined | 15:06 |
|
amahl_
| and all web tutorials say I should use merge. its supposed to be fast forward. one branch | 15:06 |
|
| and yet I'm getting merge conflicts | 15:06 |
|
| I first created a new branch from the very first commit | 15:07 |
| → thansen joined | 15:07 |
|
amahl_
| and tried to do "git merge xxx" where xxx is a dozen commits forward | 15:07 |
|
| actually git merge --squash xxx | 15:07 |
| → random_yanek joined | 15:08 |
|
amahl_
| merge conflicts out of nowhere | 15:09 |
| → zhuoz joined | 15:09 |
| ← theoceaniscool left | 15:09 |
| ← feriman left | 15:10 |
|
amahl_
| am I supposed to use rebase instead? if I want a new squashed master | 15:10 |
| → feriman joined | 15:10 |
|
amahl_
| shouldn't merge and rebase achieve the same goal when dealing with just one branch? | 15:11 |
|
osse
| amahl_: to squash the N latest commit you can do: git reset --soft HEAD~N; git commit | 15:11 |
|
| using merge for this seems strange | 15:11 |
|
| to squash some commits between now and M commits ago you can git rebase -i HEAD~M | 15:12 |
|
| and then change pick to fixup/squash as you please | 15:12 |
| → ferdna joined | 15:12 |
|
amahl_
| I see | 15:13 |
|
pepa
| how is it possible that telnet host 443 does not work ...... but git pull does work? | 15:13 |
| ← tiin57 left | 15:14 |
|
Habbie
| pepa, you'll have to find out what git is doing differently. maybe he does have a netrc? | 15:14 |
|
pepa
| this is in the pc that works "fine" | 15:15 |
|
| also.... | 15:15 |
|
| the pc working wrong "sometimes" works | 15:15 |
|
| so it's more of an intermitent issue | 15:16 |
|
Habbie
| 'fun' | 15:16 |
| ← BPL left | 15:18 |
| → tiin57 joined | 15:18 |
| ← akem left | 15:19 |
|
pepa
| actually | 15:19 |
|
| everything is working | 15:19 |
|
| because | 15:19 |
|
| "git remote -v" | 15:19 |
|
| is working | 15:19 |
|
| that means the connection to the server is successful right? | 15:20 |
|
_ikke_
| no | 15:20 |
|
| It just lists what is configured locally | 15:20 |
|
pepa
| what git command can I try that's light and short to test connection | 15:20 |
|
_ikke_
| git ls-remote | 15:20 |
|
| git remote show origin as well | 15:21 |
|
pepa
| so that connects with the server | 15:22 |
|
_ikke_
| yes | 15:22 |
|
pepa
| I mean git ls-remote | 15:22 |
|
_ikke_
| it does | 15:22 |
|
pepa
| so if that works the connection works as well | 15:22 |
|
_ikke_
| yes | 15:23 |
| → akem joined | 15:26 |
| ← refried_ left | 15:28 |
|
amahl_
| rebasing going nicely | 15:28 |
|
| but still got some "BOTH ADDED: blahblabh" nonsense | 15:28 |
|
| like.. theres just one master. whats the second whatever? | 15:29 |
| ← ShapeShifter499 left | 15:30 |
|
amahl_
| doing git rebase -i HEAD~M | 15:30 |
|
| to squash one branch onto itself | 15:30 |
| → ShapeShifter499 joined | 15:30 |
| ← justanotheruser left | 15:31 |
| → refried_ joined | 15:31 |
| → mbalmer joined | 15:33 |
| ← malmalmal left | 15:34 |
| → HumanG33k joined | 15:37 |
| ← mightyjens left | 15:37 |
|
osse
| amahl_: Did you reorder lines? Do you have any preexisting merges in that range? | 15:37 |
| ← mbalmer left | 15:38 |
| → Prestige joined | 15:38 |
|
amahl_
| didn't reorder anything. just sequences like pssssss rsssss p p pssss | 15:38 |
|
| not sure of merges | 15:39 |
| ← HumanG33k left | 15:39 |
| → HumanG33k joined | 15:40 |
|
Prestige
| I had a branch merged with master that was reverted automatically (github hook), and now I'm wanting to merge the same branch with master again. Since it was merged before, the commits exist on master but are covered by the commit that reverted the merge previously. How should I go about setting this up for a merge? | 15:40 |
|
osse
| amahl_: git log --merges HEAD~M..HEAD (but not while a rebase is in progress) | 15:40 |
|
| Prestige: !revert_merge | 15:41 |
|
gitinfo
| Prestige: [!faulty_merge] If you have published a merge commit that turned out to be faulty and you'd like to get rid of it, you can use 'git revert' but there are gotchas to be aware of. Please read: https://raw.github.com/git/git/master/Documentation/howto/revert-a-faulty-merge.txt | 15:41 |
|
osse
| hmm, maybe this only covers what you what the hook already does for you | 15:41 |
|
| anyway, it's dirty bidness | 15:41 |
| → chloekek joined | 15:42 |
| ← cdown left | 15:42 |
|
Prestige
| I was thinking of creating a diff patch by comparing HEAD and HEAD~3 and applying that on top, and creating a new commit | 15:42 |
|
| not sure if that would work | 15:43 |
|
osse
| sounds reasonable | 15:43 |
|
| but you might want to try git cherry-pick instead | 15:43 |
|
| or maybe git rebase --onto | 15:43 |
|
| (which essentially do what you described under the hood) | 15:43 |
| → cdown joined | 15:44 |
| ← tiin57 left | 15:44 |
| → justanotheruser joined | 15:47 |
| → calcul0n_ joined | 15:47 |
|
Prestige
| oh cherry pick is exactly what I needed, thanks | 15:47 |
| → tiin57 joined | 15:48 |
|
pepa
| git bring-me-an-ice-cream doesn't seem to be working | 15:48 |
| ← calcul0n left | 15:50 |
| ← archpc left | 15:51 |
| ← royal_screwup21 left | 15:53 |
| → bsjd joined | 15:56 |
| ← bsjd left | 15:56 |
| → john2496 joined | 15:56 |
| → thomasross joined | 15:57 |
| ← john2496 left | 15:58 |
| ← SilentGhost left | 15:58 |
| → john2496 joined | 15:59 |
| ← john2496 left | 15:59 |
| ← rfuentess left | 16:00 |
| → SilentGhost joined | 16:00 |
|
Hello71
| you need to run it with sudo | 16:04 |
| → fitzgerald1337 joined | 16:04 |
| ← sidetrack left | 16:08 |
| ← fission6 left | 16:09 |
| → fission6 joined | 16:13 |
| ← tiin57 left | 16:14 |
| ← irrgit left | 16:15 |
| → tiin57 joined | 16:17 |
| ← Aquazi left | 16:19 |
| ← SilentGhost left | 16:19 |
| → SilentGhost joined | 16:20 |
| → sidetrack joined | 16:23 |
| ← sidetrack left | 16:28 |
|
fuchstronaut
| after cloning it I got a "WARNING: 'new-name' is an alias for 'old-name'", is there anything I need to know about the alias? | 16:28 |
| → irrgit joined | 16:30 |
| ← tonythomas left | 16:30 |
| → fannagoganna joined | 16:30 |
| → causasui joined | 16:31 |
|
j416
| how do I check what commits (actual changes) were added for v2.26.1 since v2.26.0, in git.git? I don't get the branching model. "git log ^v2.26.0 v2.26.1" lists a bunch of tagged commits, back to v2.17.4 -- I'm not sure why. | 16:32 |
|
| I suppose it's the right list, but there are a bunch of merges; --no-merges makes it a bit cleaner | 16:34 |
| → chuffer joined | 16:34 |
|
j416
| I guess I'll just go read their branching model docs, I'm sure they've documented it. | 16:35 |
| → spaceone joined | 16:35 |
| ← chuffer left | 16:36 |
|
spaceone
| how can i show all commits in branch A which are not part if branch B? | 16:36 |
|
| if → in | 16:36 |
|
_ikke_
| git log B..A | 16:36 |
|
spaceone
| no, this shows only when then branch has been split | 16:36 |
|
| but i cherry-picked from A to B some commits, which are also in the log | 16:37 |
| → chuffer joined | 16:37 |
| → dmc joined | 16:38 |
|
_ikke_
| man git cherry then | 16:38 |
|
gitinfo
| the git-cherry manpage is available at https://gitirc.eu/git-cherry.html | 16:38 |
| ← nickodd left | 16:39 |
|
spaceone
| ah, this looks nicer! | 16:40 |
| ← chuffer left | 16:42 |
| → Quellus joined | 16:44 |
| ← tiin57 left | 16:44 |
| → nickodd joined | 16:44 |
| → tiin57 joined | 16:48 |
| ← pepa left | 16:49 |
| ← Abbott left | 16:51 |
| ← roadie left | 16:56 |
| → roadie joined | 16:56 |
| → karlding joined | 16:57 |
| ← Maxdamantus left | 17:01 |
| → Maxdamantus joined | 17:01 |
| ← maxwilliamson left | 17:03 |
| → maxwilliamson joined | 17:04 |
| ← fission6 left | 17:05 |
| → fission6 joined | 17:07 |
| → FH_thecat joined | 17:07 |
| ← FH_thecat left | 17:07 |
| → sidetrack joined | 17:10 |
| ← fission6 left | 17:12 |
| → mowcat joined | 17:12 |
| ← chloekek left | 17:12 |
| ← tiin57 left | 17:14 |
| → fission6 joined | 17:14 |
| → tiin57 joined | 17:17 |
| ← diogenese left | 17:19 |
| ← Prestige left | 17:19 |
| → diogenese joined | 17:19 |
| → mbalmer joined | 17:22 |
| → stitched_unicorn joined | 17:23 |
| ← cbreak left | 17:26 |
| ← refried_ left | 17:26 |
| → refried_ joined | 17:27 |
| → cbreak joined | 17:27 |
| ← mbalmer left | 17:35 |
|
osse
| j416: when you've understood it, be kind and write an "ELI5" type summary because it makes no sense to me | 17:38 |
|
eggbean
| I've found an old file. Is it possible to add a first commit on a repository that already has other commits? | 17:39 |
|
osse
| j416: i think the older tags are backports (or "backmerges"), so they're newer in the time sense | 17:39 |
| ← mobidrop left | 17:40 |
| → archpc joined | 17:41 |
|
j416
| osse: :D thanks for making me feel less stupid. | 17:41 |
|
| eggbean: you can have multiple roots for a repo, yes. not sure if that's what you're asking. if so, man git-checkout look for --orphan. | 17:42 |
|
gitinfo
| eggbean: the git-checkout manpage is available at https://gitirc.eu/git-checkout.html | 17:42 |
|
eggbean
| j416: Thanks, I'll have a look | 17:43 |
| ← tiin57 left | 17:44 |
| ← sidetrack left | 17:45 |
| ← Paradisee left | 17:46 |
| → tiin57 joined | 17:48 |
| → mikecmpbll joined | 17:50 |
| → sidetrack joined | 17:50 |
| → royal_screwup21 joined | 17:52 |
|
fuchstronaut
| Is "WARNING: 'new-name' is an alias for 'old-name'" while cloning a repo something to be concerned about? | 17:52 |
| ← kleisli_ left | 17:53 |
| → kleisli_ joined | 17:53 |
| ← sidetrack left | 17:55 |
| → cliluw joined | 17:56 |
| → shush joined | 17:58 |
| ← archpc left | 17:59 |
| ← royal_screwup21 left | 18:00 |
| ← squirrel left | 18:01 |
| ← kleisli_ left | 18:01 |
| ← cliluw left | 18:03 |
| → cliluw joined | 18:03 |
| → m0viefreak joined | 18:06 |
| ← mat001 left | 18:12 |
| ← bolovanos left | 18:13 |
| ← tiin57 left | 18:14 |
| ← sauvin left | 18:14 |
| → royal_screwup21 joined | 18:15 |
| → archpc joined | 18:17 |
|
j416
| fuchstronaut: sounds like something github would say | 18:17 |
| → tiin57 joined | 18:17 |
|
j416
| fuchstronaut: you might want to clone from the renamed one instead, or at least update your remote to match that | 18:17 |
| → mbalmer joined | 18:18 |
| → mat001 joined | 18:20 |
| → Betal joined | 18:21 |
| ← royal_screwup21 left | 18:22 |
| → Lucas_Gray joined | 18:23 |
| ← nickodd left | 18:25 |
| ← refried_ left | 18:25 |
| ← mbalmer left | 18:26 |
| → akem_ joined | 18:27 |
| ← akem_ left | 18:27 |
| ← Tobbi_ left | 18:27 |
| → refried_ joined | 18:29 |
| ← akem left | 18:30 |
| → sidetrack joined | 18:31 |
|
oprypin
| i have many commits and merges and whatnot. i had run `git merge origin/master` a few times, including as the last operation | 18:33 |
|
| i want to turn the entire diff against origin/master into one commit, reusinng the commit message of one particular commit among those | 18:33 |
|
| what's a non-messy way to do that? | 18:34 |
| ← sidetrack left | 18:36 |
| → squirrel joined | 18:36 |
|
oprypin
| oh. self-answer: | 18:37 |
|
| git merge origin/master && h=$(git rev-parse HEAD) && git reset --hard origin/master && git reset --soft $h && git commit --reuse-message $particularcommit | 18:37 |
|
| no that's wrong | 18:38 |
|
| git merge origin/master && h=$(git rev-parse HEAD) && git reset --hard origin/master && git checkout $h . && git commit --reuse-message $particularcommit | 18:38 |
| ← stitched_unicorn left | 18:42 |
| → mns_ joined | 18:43 |
| ← mns left | 18:43 |
| ← tiin57 left | 18:44 |
| → dqx_ joined | 18:45 |
| ← dqx_ left | 18:46 |
| → royal_screwup21 joined | 18:47 |
| → akem joined | 18:48 |
| → tiin57 joined | 18:48 |
| ← akem left | 18:48 |
| ← mns_ left | 18:48 |
| → akem joined | 18:48 |
| ← qqx left | 18:49 |
| → sidetrack joined | 18:50 |
| ← teratorn left | 18:53 |
| → qqx joined | 18:55 |
| ← calcul0n_ left | 18:56 |
| → calcul0n joined | 18:57 |
| ← shush left | 18:58 |
| → shush joined | 18:59 |
| ← currybullen left | 19:00 |
| ← shush left | 19:00 |
| → shush joined | 19:01 |
|
Kobaz
| how would i show a specific file in the stash? | 19:03 |
|
| git stash show stash@{0}:LIB/any/perl/WebServices.pm 'stash@{0}:LIB/any/perl/WebServices.pm' is not a stash-like commit | 19:03 |
|
| tried -- and .. as well | 19:04 |
| → foodz joined | 19:08 |
| ← xcm left | 19:10 |
| → stealth[] joined | 19:11 |
| → xcm joined | 19:11 |
| → mikecmpb_ joined | 19:12 |
| ← mikecmpbll left | 19:12 |
| ← kjartan left | 19:13 |
| ← maxel left | 19:14 |
| ← tiin57 left | 19:14 |
| → kjartan joined | 19:14 |
| → cagomez joined | 19:14 |
| → maxel joined | 19:14 |
| → mns joined | 19:15 |
|
cagomez
| Hi, I branched off of `master` and created branch `feature_1`. Then I branched off of `feature_1` to create `feature_2`. I did some work and now have commits from both branches. how can I undo the changes from `feature_1` branch while I'm on `feature_2`? | 19:16 |
| → mikecmpbll joined | 19:16 |
| ← sidetrack left | 19:16 |
|
selckin
| create a new branch, and cherry-pick the commits, or interactive rebase to remove feature_1 commits | 19:17 |
| ← mikecmpb_ left | 19:17 |
| → tiin57 joined | 19:18 |
| → dqx_ joined | 19:18 |
| ← royal_screwup21 left | 19:20 |
| ← troulouliou_div2 left | 19:24 |
| → mnglssrspndr joined | 19:28 |
| ← Soliton left | 19:31 |
| ← dqx_ left | 19:31 |
|
cagomez
| okay, tried something else. I pulled `feature_1` locally and got the list of files changed: `git diff --name-only $(git merge-base master HEAD)`. Then I checked out `feature_2` and checked out those files from `master`: `git checkout master -- [list_of_files]`. Then `git add .` and pushed | 19:31 |
| ← stealth[] left | 19:31 |
| → Soliton joined | 19:31 |
| ← meaningless left | 19:32 |
|
selckin
| i hope you don't have coworkers | 19:32 |
| → royal_screwup21 joined | 19:34 |
| → mescalinum joined | 19:35 |
| → stealth[] joined | 19:36 |
|
Kobaz
| cagomez: that sounds really bad. you should use merge properly | 19:36 |
|
| your method 'works' but, other people working on the repo will hate you | 19:37 |
|
| and if you ever do that on someone elses repo. they will hate you | 19:37 |
| → mikami joined | 19:37 |
|
cagomez
| is it bad because of the git history? | 19:38 |
| ← mikami left | 19:38 |
|
Kobaz
| yes | 19:38 |
|
cagomez
| what if I `get reset --soft` and re-do the commits, then `force push`? | 19:38 |
|
| not sure if that's even worse | 19:39 |
|
Kobaz
| you'll have to fix it on the remote repo, you've already pushed | 19:39 |
|
cagomez
| yup, it's been pushed. | 19:39 |
|
Kobaz
| you can undo the commits on the remote repo as long as no one else has checked them out yet | 19:39 |
|
cagomez
| people rarely check out commits. we QA the branch, then merge it into master | 19:39 |
|
| * checkout branches | 19:40 |
| ← xcm left | 19:40 |
|
Kobaz
| https://devconnected.com/how-to-undo-last-git-commit/ | 19:41 |
|
| good luck, make backups | 19:41 |
| → xcm joined | 19:41 |
|
Kobaz
| you'll need to do this on the remote repo | 19:41 |
| ← fitzgerald1337 left | 19:43 |
| ← tiin57 left | 19:44 |
| → azwieg103 joined | 19:44 |
| → soft_concrete joined | 19:45 |
| → fitzgerald1337 joined | 19:46 |
| → tiin57 joined | 19:48 |
| ← azwieg103 left | 19:51 |
| → karoshi joined | 19:53 |
| → nessonic joined | 19:54 |
| ← aliss left | 19:55 |
|
cagomez
| I `reset soft`, redid commits, and force pushed. the commit history is good now | 19:56 |
| → no_gravity joined | 19:58 |
| → clara97 joined | 19:58 |
|
no_gravity
| Can "git status" show the overall number of added/deleted lines? | 19:59 |
| ← fassl left | 19:59 |
|
_ikke_
| No, git diff can | 19:59 |
|
| git diff --stat | 19:59 |
|
| or git show -s --stat | 19:59 |
|
no_gravity
| _ikke_: Nice, thanks! | 19:59 |
|
_ikke_
| just git show --stat, not with -s | 20:00 |
|
no_gravity
| _ikke_: That shows me the info for the last commit | 20:00 |
|
_ikke_
| no sorry, git show shows HEAD | 20:00 |
| → mbalmer joined | 20:00 |
|
_ikke_
| yea | 20:00 |
|
| git diff --stat then | 20:00 |
|
no_gravity
| Yup | 20:00 |
|
osse
| y u no --shortstat | 20:01 |
|
| ironic that "--shortstat" is longer than "--stat" | 20:01 |
|
_ikke_
| yea | 20:01 |
|
| was about to answer that | 20:01 |
|
no_gravity
| It is so satisfying when a commit has more deletions then insertions. | 20:01 |
|
| The day ends on a high note then. | 20:01 |
|
_ikke_
| heh | 20:01 |
|
| Boss without a clue: "I don't pay you to remove code, I pay you to write code" :P | 20:02 |
|
no_gravity
| _ikke_: My userbase is my boss. They don't give a shit about code. They want features and performance :) | 20:03 |
|
Kartagis
| hello. remind me please? wasn't it git format-patch <hash> for a single commit? | 20:05 |
| ← mbalmer left | 20:05 |
|
_ikke_
| no | 20:06 |
| ← g4570n left | 20:06 |
|
_ikke_
| It can be used for a range | 20:06 |
|
| or limited to one commit | 20:06 |
|
Kartagis
| _ikke_: I got nothing when I used the above. | 20:07 |
| ← m0ltar left | 20:07 |
|
_ikke_
| Kartagis: try git format-patch -1 <commit> | 20:08 |
|
| and note that it's directly writing to a file | 20:08 |
| → m0ltar joined | 20:09 |
| ← Hello71 left | 20:13 |
| ← refried_ left | 20:13 |
|
Frogging101
| How do I fast-forward a branch that I'm not on? I've been using e.g. "git fetch origin master:master", but I'd be surprised if there weren't a more general way that doesn't require a remote | 20:13 |
| ← tiin57 left | 20:14 |
|
Frogging101
| There's `git branch -f`, but that will move the branch head regardless of whether it's a fast-forward | 20:14 |
| → Hello71 joined | 20:14 |
| ← no_gravity left | 20:14 |
|
_ikke_
| the only thing that has a check for only doing fast-forwards is merge | 20:15 |
|
| (and pull by extension) | 20:15 |
|
Frogging101
| fetch does too with that form | 20:15 |
|
| I've seen it reject non-ff | 20:15 |
|
_ikke_
| yes, the only other thing I should have mentioned | 20:15 |
| ← royal_screwup21 left | 20:15 |
|
Frogging101
| ah | 20:15 |
|
| And merge/pull require the target branch to be checked out? | 20:15 |
|
_ikke_
| yes | 20:15 |
| → refried_ joined | 20:16 |
|
Frogging101
| I wonder if there's a scriptable way to check if a commit is a direct ancestor (or whatever the exact criteria for a fast-forward is) | 20:16 |
|
| so then I could implement a `git branch -f` wrapper that checks first | 20:16 |
|
_ikke_
| merge-base | 20:17 |
| → royal_screwup21 joined | 20:17 |
|
_ikke_
| git merge-base --is-ancestor A B | 20:17 |
|
Frogging101
| ah. I'll look into it. Thanks :) | 20:18 |
| → tiin57 joined | 20:18 |
|
Frogging101
| Fwiw, my use case for this is that I've been maintaining patch sets (feature branches?) on many different repos, and every day I fetch from upstream and then rebase. I could just rebase onto origin/master, but I also want to keep my local master updated so I don't forget that it's behind | 20:20 |
|
| And it's nice if I can avoid the extra steps of checkout master, pull master, checkout feature | 20:20 |
|
_ikke_
| I just use git checkout -B / branch -f in that case | 20:21 |
|
| But that's because I know I have nothing on the branch that I care about | 20:21 |
|
| (checkout -B in case I have the branch checked out, branch -f otherwise) | 20:22 |
|
Frogging101
| I generally don't, but I like to be defensive. I can be forgetful | 20:22 |
|
_ikke_
| Then I cound on the reflog :) | 20:22 |
|
| count* | 20:22 |
| ← troulouliou_dev left | 20:22 |
| → troulouliou_dev joined | 20:23 |
|
Frogging101
| That works if I know that I've clobbered something. Otherwise I find out later and then get confused and waste time retracing my steps :P | 20:23 |
| → Brutus joined | 20:23 |
| gitinfo set mode: +v | 20:24 |
|
Frogging101
| So I try to set up my environment and tools in a way that helps to avert the novel ways I find to screw myself | 20:24 |
|
_ikke_
| sure | 20:24 |
|
| Just make an alias / script which does that check before doing the action | 20:25 |
|
Frogging101
| yup. I do love how Git subcommands are actually just scripts with a naming convention ^^ | 20:25 |
|
| very extensible | 20:25 |
|
_ikke_
| yes, though most git commands are compiled built-ins nowadays | 20:25 |
|
Frogging101
| indeed | 20:26 |
|
_ikke_
| but that git foo will look for git-foo is still supported | 20:26 |
| ← Maxattax left | 20:26 |
|
Frogging101
| Git does so many things right that I often look at its code as a guide for how to design things... :p | 20:27 |
|
Brutus
| does anyone know a good simple guide to follow to set up and use a repo on github? i'm trying to set up a way to store my dotfiles on it | 20:27 |
|
_ikke_
| Brutus: github itself has good docs | 20:27 |
|
Brutus
| _ikke_: yeah they talk about a lot of things, but not what i'm looking for | 20:27 |
|
| or at least, i can't find it in there | 20:27 |
|
_ikke_
| Brutus: https://help.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github | 20:27 |
|
Brutus
| yeah was already there | 20:28 |
| ← roadie left | 20:28 |
|
_ikke_
| Ok, but what are you missing then? | 20:28 |
|
Brutus
| it's mostly talking about the website stuff | 20:28 |
| → cdown_ joined | 20:28 |
|
Brutus
| so i set up git config --global with user and name | 20:29 |
|
| trying to do a commit | 20:29 |
|
| https://medium.com/toutsbrasil/how-to-manage-your-dotfiles-with-git-f7aeed8adf8b | 20:29 |
|
| trying to follow that guide | 20:29 |
|
_ikke_
| https://help.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository | 20:29 |
|
Brutus
| the part i'm missing is how to get the git client to actually do that. i get errors like fatal: No configured push destination. | 20:29 |
|
| i'm not trying to clone a repo | 20:29 |
|
_ikke_
| aha | 20:29 |
| → sidetrack joined | 20:30 |
|
Frogging101
| Brutus: git init; git remote add origin <github>; git push -u origin master | 20:30 |
|
_ikke_
| git push --set-upstream <remote> <branch> | 20:30 |
|
Brutus
| yeah the remote branch, that's below that. i don't know what that means | 20:30 |
|
Frogging101
| (skip git init if you already did it) | 20:30 |
| ← cdown_ left | 20:30 |
|
Frogging101
| The remote is the "origin" you added with "git remote add" | 20:30 |
|
| but you could call it anything. origin is just the usual name | 20:31 |
|
Brutus
| ok one moment | 20:31 |
| ← cdown left | 20:31 |
| → cdown joined | 20:31 |
|
Frogging101
| and if you already have an "origin" remote: `git remote set-url origin <repo url>` | 20:31 |
|
| (this is from memory; hope I didn't get anything wrong) | 20:31 |
|
_ikke_
| that's correct | 20:32 |
|
Frogging101
| good ^^ | 20:32 |
|
_ikke_
| Brutus: for what it's worth, I can recommend using something like chezmoi if you want to manage dotfiles with git | 20:32 |
| → sudomake joined | 20:33 |
|
Brutus
| i hoped this would explain github a bit to me | 20:33 |
|
| i'm already storing them at a cloud provider, trying to do version control with git might be worthwile | 20:34 |
|
_ikke_
| well, part of what you are doing it not unique to working with github | 20:34 |
|
| It's covered by general guides on how to use git | 20:34 |
|
Frogging101
| none of these steps are unique to github, actually | 20:34 |
|
_ikke_
| ie, !book | 20:34 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable | 20:34 |
|
Brutus
| i know, but it's the setup part that's confusing me. i used to work with subversion software | 20:34 |
| → dviola joined | 20:35 |
|
_ikke_
| Getting a good grasp of the git basics helps with that | 20:35 |
|
Brutus
| yeah that's what's confusing me. the first steps. every tutorial i found skips right over that | 20:35 |
| gitinfo set mode: +v | 20:36 |
|
Brutus
| let me check out that book | 20:36 |
| gitinfo set mode: +v | 20:36 |
|
Frogging101
| (oh, that's what that does.) | 20:36 |
| ← sidetrack left | 20:37 |
| Xiti` → Xiti | 20:42 |
| → vdamewood joined | 20:44 |
| ← tiin57 left | 20:44 |
| → kleisli_ joined | 20:44 |
| → tiin57 joined | 20:48 |
| → BPL joined | 20:51 |
| ← stealth[] left | 20:52 |
| ← lightstalker left | 20:52 |
| ← sudomake left | 20:53 |
| → sudomake joined | 20:53 |
| → mbalmer joined | 20:55 |
| → pako8128 joined | 20:55 |
| ← mbalmer left | 20:59 |
| → Sasazuka joined | 21:00 |
| ← sudomake left | 21:02 |
| ← dhollinger left | 21:03 |
| → rafasc joined | 21:04 |
| → dhollinger joined | 21:05 |
|
Brutus
| i got it working | 21:05 |
|
| had to create a new github repository, but it's now working with the same commands i used before, but now without error messages | 21:05 |
| ← nessonic left | 21:08 |
| ← mikecmpbll left | 21:13 |
|
j416
| osse: ELIF: git log --oneline v2.26.0..v2.26.1 of git.git: https://termbin.com/20zs ; bugs are fixed in the earliest version they need to be fixed in, and then merged into later versions. A bug was fixed based on 2.17.3, creating 2.17.4, and that was later merged into each maint branch for 2.18, 2.19, and so on. The last one being maint for 2.26, creating 2.26.1. Hence all the merges. | 21:14 |
| ← tiin57 left | 21:14 |
| → mikecmpbll joined | 21:14 |
|
j416
| osse: this gives a good overview of the workflow; turns out it's not that complex afterall https://git-scm.com/docs/gitworkflows | 21:14 |
|
| s/ELIF/ELI5/ | 21:15 |
|
| >.> | 21:15 |
| ← mikecmpbll left | 21:16 |
| → mikecmpbll joined | 21:17 |
| ← Xiti left | 21:17 |
|
rafasc
| j416: --simplify-by-decoration helps a lot to understand "workflows" | 21:17 |
|
j416
| osse: related announcement https://public-inbox.org/git/xmqqy2qy7xn8.fsf@gitster.c.googlers.com/ | 21:17 |
| ← Lucas_Gray left | 21:18 |
| → tiin57 joined | 21:18 |
|
j416
| rafasc: trying that, it seems like it trims away anything that can't be decorated? | 21:18 |
|
| [...] by omitting commits that are not referenced by tags. | 21:19 |
|
| huh. | 21:19 |
|
rafasc
| More or less, I think it still keeps some undercoated commits, it it determines they're necessary to show what happened. | 21:19 |
|
j416
| interesting. In this particular case it didn't help a lot. | 21:19 |
|
rafasc
| undercotated, ayy | 21:19 |
|
j416
| viewing all of the history of git.git though, it becomes clearer with --simplify-by-decoration. Might come in handy at some point. Thanks. | 21:21 |
| → Xiti joined | 21:21 |
| ← Naptra left | 21:21 |
|
j416
| especially in combination with --graph | 21:21 |
|
rafasc
| git log --graph --oneline --tags=v* --simplify-by-decoration | 21:21 |
|
| the cascade up becomes quite apparent. | 21:22 |
|
j416
| yep | 21:22 |
|
| sans --tags it's perhaps even clearer | 21:22 |
| ← mikecmpbll left | 21:23 |
| → Lucas_Gray joined | 21:24 |
| ← Nyle left | 21:25 |
|
rafasc
| yeah, assuming your HEAD contains what you are looking for. | 21:25 |
| ← ncdulo left | 21:26 |
|
j416
| nod | 21:26 |
|
rafasc
| j416: even better: git log --graph --oneline --simplify-by-decoration --decorate-refs=refs/tags/* | 21:27 |
|
j416
| haha. | 21:27 |
|
| it's nice to have the branch names there, though | 21:27 |
| → dqx_ joined | 21:27 |
|
j416
| but this is clean. | 21:27 |
| ← zhuoz left | 21:28 |
|
rafasc
| It's easier to see the "cascade up" events over time. | 21:28 |
|
j416
| looks pretty much the same here | 21:29 |
| → felix_221986 joined | 21:29 |
|
j416
| starting from master | 21:29 |
| → ncdulo joined | 21:29 |
| ← Lucas_Gray left | 21:29 |
| → Nyle joined | 21:29 |
|
rafasc
| I have a couple of extra remotes, From time to time, I fetch from gitgitgadget, and also have Junio's personal feature branches. | 21:32 |
|
| *topic branches | 21:32 |
| ← Borkr left | 21:33 |
|
j416
| I see | 21:33 |
|
rafasc
| The ones he creates from applying the patches sent to the mailing list. So the extra refs make more noise. | 21:33 |
|
j416
| nod | 21:33 |
|
rafasc
| git rev-list --tags --count --no-walk = 1621 | 21:34 |
|
| also a reason why I used the --tags=v* instead of just --tags | 21:35 |
|
j416
| check | 21:35 |
| ← feriman left | 21:35 |
|
j416
| are those your own tags? | 21:35 |
|
| 872 extra tags o_O | 21:36 |
| ← dqx_ left | 21:36 |
| ← royal_screwup21 left | 21:37 |
|
rafasc
| No, I think the bulk of them are from gitgitgadget. It tags the state of the PR when it sends it to the mailing list. | 21:38 |
|
j416
| ah. | 21:38 |
|
rafasc
| I also have fetched from some git devs, so I have some of their tags. | 21:39 |
|
| To be honest, I wish git namespaced tags as well. Kinda difficult to understand the origin of some tags. | 21:40 |
|
j416
| :) | 21:42 |
| → LuxuryMode joined | 21:42 |
| → tgamblin_ joined | 21:43 |
| ← tiin57 left | 21:44 |
| → royal_screwup21 joined | 21:44 |
|
ukleinek
| rafasc: the obvious workaround is to only fetch from remotes the stuff you really want. | 21:45 |
| ← shicks2525 left | 21:45 |
| ← tgamblin left | 21:45 |
|
rafasc
| it's not that simple. If you add a remote because you want a certain patch, fetch from it and delete it right away, you still keep the tags. | 21:46 |
| → tiin57 joined | 21:48 |
| → shicks2525 joined | 21:48 |
|
rafasc
| Performing tag cleanup is not easy, or requires you set some things in advanced. E.g. configure git to avoid fetching tags, and fetch them with a custom refspec into a namespace of your choice. | 21:48 |
| → Abbott joined | 21:48 |
|
rafasc
| But that has other issues as well. | 21:49 |
| → mbalmer joined | 21:49 |
| → sidetrack joined | 21:50 |
|
Abbott
| I have a repo with two branches that are both just a single commit. I want to consolidate them into one branch where one commit comes after the other. I know that rebase is appropriate here, but which do I need to be checked out in and which order do I enter the arguments? | 21:50 |
|
| I always mess up rebase syntax | 21:50 |
| ← felix_221986 left | 21:50 |
|
rafasc
| Abbott: the rule of thumb is that git commands almost always affect the branch you are currently at. | 21:50 |
|
| so if you want commit from branch A to be moved to the top of branch B, you need to checkout A; rebase B. | 21:51 |
| → g4570n joined | 21:51 |
| ← covid20 left | 21:52 |
| → rsrx joined | 21:52 |
| ← amahl_ left | 21:53 |
|
rafasc
| (and after that, you may want to checkout B; and merge --ff-only B; to update B to the same place) | 21:53 |
| ← shicks2525 left | 21:53 |
|
rafasc
| merge --ff-only A; | 21:53 |
| ← mbalmer left | 21:54 |
| → greatgatsby joined | 21:54 |
|
greatgatsby
| Hi. Is there any tool or technique for working with a directory of git repos? For example, if all my local repos are in ~/git/ and I want to know modified or staged files in each repo, is there any easy way to do that? | 21:57 |
|
j416
| greatgatsby: there's that android thing called... is it repo? | 21:58 |
|
| I suppose it's this https://source.android.com/setup/develop/repo | 21:59 |
|
| never tried it. | 21:59 |
|
osse
| j416: makes sense | 21:59 |
|
j416
| \^^/ | 21:59 |
| ← fannagoganna left | 22:00 |
| → Lucas_Gray joined | 22:00 |
|
greatgatsby
| j416, check it out now, thanks | 22:01 |
|
j416
| \o | 22:01 |
| → Es0teric joined | 22:02 |
| ← soft_concrete left | 22:04 |
| → jaziz joined | 22:05 |
| ← sidetrack left | 22:06 |
| ← g4570n left | 22:06 |
| ← clara97 left | 22:08 |
| ← BPL left | 22:10 |
| ← iam730 left | 22:10 |
| ← tiin57 left | 22:14 |
| → tiin57 joined | 22:18 |
| → g00s joined | 22:18 |
| → sidetrack joined | 22:20 |
| ← sidetrack left | 22:24 |
| ← ferdna left | 22:25 |
| → wrksx_ joined | 22:25 |
| → dedowsdi joined | 22:26 |
| → g4570n joined | 22:26 |
| ← wrksx__ left | 22:30 |
| ← TomTom left | 22:35 |
| ← CodeSlingerPaul left | 22:39 |
| → perrier-jouet joined | 22:40 |
| → mbalmer joined | 22:43 |
| ← tiin57 left | 22:44 |
| ← justanotheruser left | 22:44 |
| ← Phylock left | 22:46 |
| → tiin57 joined | 22:47 |
| ← mbalmer left | 22:48 |
| → expert975 joined | 22:49 |
| ← fission6 left | 22:50 |
| ← tpaper left | 22:51 |
| ← crose left | 22:55 |
| ← refried_ left | 22:57 |
| ← m0viefreak left | 22:58 |
| ← rsrx left | 23:04 |
| → justanotheruser joined | 23:06 |
| ← troulouliou_dev left | 23:06 |
| ← dionysus69 left | 23:10 |
| ← infernix left | 23:11 |
| → troulouliou_dev joined | 23:13 |
| ← tiin57 left | 23:14 |
| ← troulouliou_dev left | 23:16 |
| → tiin57 joined | 23:17 |
| → NightQuest joined | 23:18 |
| ← mescalinum left | 23:22 |
| ← Lucas_Gray left | 23:23 |
| ← onizu left | 23:27 |
| ← ar1el left | 23:27 |
| → mescalinum joined | 23:29 |
| ← gxt left | 23:29 |
| → gxt_ joined | 23:29 |
| ← calcul0n left | 23:31 |
| ← vdamewood left | 23:31 |
| ← royal_screwup21 left | 23:31 |
| ← mescalinum left | 23:35 |
| → mbalmer joined | 23:38 |
| ← mbalmer left | 23:43 |
| ← tiin57 left | 23:44 |
| → rosco_y joined | 23:45 |
| → tiin57 joined | 23:48 |
| ← mauz555 left | 23:48 |
| → Apple joined | 23:49 |
| Apple → Guest8218 | 23:49 |
| ← tgunr left | 23:52 |
| ← AppleGaming left | 23:52 |
| → tgunr joined | 23:53 |
| ← Guest8218 left | 23:54 |
| → sidetrack joined | 23:57 |