| 2019-10-02 |
| → omnireq joined | 00:03 |
| ← freedom left | 00:04 |
| ← fphilipe left | 00:04 |
| ← SilentGhost left | 00:05 |
| → SilentGhost joined | 00:09 |
| → perrier-jouet joined | 00:10 |
| ← Fernando-Basso left | 00:11 |
| ← perrier-jouet left | 00:16 |
| → nabil_ joined | 00:17 |
| ← bambanx left | 00:18 |
| → bambanx joined | 00:19 |
| ← d^sh left | 00:20 |
| ← nabil__ left | 00:20 |
| ← learningc left | 00:20 |
| → d^sh joined | 00:21 |
| → kerframil joined | 00:21 |
| → perrier-jouet joined | 00:21 |
| ← bambanx left | 00:27 |
| → learningc joined | 00:33 |
| ← perrier-jouet left | 00:34 |
| ← vicfred left | 00:35 |
| ← scoobertron left | 00:36 |
| → scoobertron joined | 00:36 |
| → oatmealraisin joined | 00:37 |
| → jguddas-tr3 joined | 00:37 |
| ← _ADN_ left | 00:39 |
| → Diggsey joined | 00:42 |
| ← Sasazuka left | 00:51 |
| → Murr joined | 00:51 |
| ← ketas left | 00:52 |
| → g00s joined | 00:52 |
| → freedom joined | 00:55 |
| → thiago joined | 00:55 |
| → malina joined | 00:56 |
| ← Necrocter left | 00:58 |
| ← topdownjimmy left | 01:07 |
| → Necrocter joined | 01:07 |
| ← Necrocter left | 01:08 |
| ← g00s left | 01:08 |
| → topdownjimmy joined | 01:08 |
| → yonder joined | 01:11 |
| ← jguddas-tr3 left | 01:12 |
| ← sgen left | 01:21 |
| ← azwieg103 left | 01:26 |
| ← F0rTex left | 01:37 |
| → F0rTex joined | 01:38 |
| → perrier-jouet joined | 01:40 |
| ← apetresc left | 01:42 |
| → doublex joined | 01:43 |
| → apetresc joined | 01:46 |
| → PerryHugh joined | 01:50 |
|
PerryHugh
| Hello, the command 'git add ___' is continuing to request input after hitting enter, is there a solution to this? It happens for git add . and git add -A but not git add -u | 01:52 |
| → saint_ joined | 01:54 |
| ← saint__ left | 01:57 |
| ← PerryHugh left | 01:59 |
| → fphilipe joined | 01:59 |
| → saint__ joined | 02:00 |
| ← saint_ left | 02:00 |
| → libertyprime joined | 02:01 |
| ← Envil left | 02:04 |
| ← fphilipe left | 02:04 |
| lagothrix → Guest42962 | 02:08 |
| ← Guest42962 left | 02:08 |
| → lagothrix joined | 02:08 |
| → Envil joined | 02:09 |
| ← Yossi left | 02:12 |
| → azwieg103 joined | 02:14 |
| → fairuz joined | 02:16 |
| ← malina left | 02:16 |
| ← Frobozz left | 02:16 |
| → rosco_y joined | 02:19 |
|
rosco_y
| Is there a way to compare the diff of a file in a branch I'm in, and the same file in the master? | 02:20 |
|
| I guess I've seen this in a gui, can it be done from the command-line? | 02:21 |
|
b0nn
| git diff mybranch..master -- myfile.cs | 02:23 |
| → xnaas joined | 02:25 |
| ← Cabanossi left | 02:38 |
| ← causasui left | 02:41 |
| ← nic-hartley left | 02:43 |
| → helpdeskaleer joined | 02:44 |
| → nabil__ joined | 02:46 |
| → jstimm joined | 02:47 |
| ← pks left | 02:48 |
| ← nabil_ left | 02:48 |
| ← helpdeskaleer left | 02:49 |
| → Cabanossi joined | 02:50 |
| ← xcm left | 02:51 |
| → xcm joined | 02:51 |
| → Goplat joined | 02:52 |
| ← freedom left | 02:52 |
| ← Atlenohen left | 02:54 |
| ← rosco_y left | 03:02 |
| → nabil_ joined | 03:02 |
| ← nabil__ left | 03:05 |
| → g00s joined | 03:06 |
| → jguddas-tr3 joined | 03:09 |
| ← yokisuci left | 03:09 |
| → Yossi joined | 03:09 |
| → omnireq_ joined | 03:11 |
| ← omnireq left | 03:13 |
| ← jguddas-tr3 left | 03:14 |
| → publio joined | 03:17 |
| → malina joined | 03:18 |
| → vicfred joined | 03:21 |
| ← azwieg103 left | 03:23 |
| → azwieg103 joined | 03:24 |
| → jguddas-tr3 joined | 03:41 |
| ← clime left | 03:43 |
| ← jguddas-tr3 left | 03:46 |
| → SwiftMatt joined | 03:49 |
| ← malina left | 03:49 |
| ← CodeSlingerPaul left | 03:51 |
| → causasui joined | 03:52 |
| ← azwieg103 left | 03:53 |
| → duderonomy joined | 03:53 |
| → azwieg103 joined | 03:54 |
| ← apetresc left | 03:57 |
| ← libertyprime left | 03:58 |
| → clime joined | 03:59 |
| → fphilipe joined | 04:00 |
| → freedom joined | 04:02 |
| ← fairuz left | 04:02 |
| ← g00s left | 04:02 |
| → apetresc joined | 04:03 |
| ← fphilipe left | 04:05 |
| ← freedom left | 04:08 |
| ← clime left | 04:09 |
| → g00s joined | 04:09 |
| → freedom joined | 04:10 |
| → cesario_ joined | 04:21 |
| → Atlenohen joined | 04:21 |
| ← cesario_ left | 04:23 |
| ← jstimm left | 04:23 |
| → ddevault joined | 04:25 |
| → cesario_ joined | 04:27 |
| ← Atlenohen left | 04:27 |
| ← SwiftMatt left | 04:27 |
| ← xcm left | 04:27 |
| → xcm joined | 04:28 |
| ← cesario_ left | 04:28 |
| ← Fusl left | 04:33 |
| → albel727 joined | 04:33 |
| ← _xor left | 04:34 |
| → Fusl joined | 04:34 |
| → _xor joined | 04:34 |
| ← rewt left | 04:36 |
| → rewt`` joined | 04:36 |
| → akemhp_ joined | 04:36 |
| rewt`` → rewt | 04:36 |
| ← rigid left | 04:37 |
| ← random_yanek left | 04:37 |
| ← naf left | 04:37 |
| ← maxel left | 04:37 |
| ← catsup left | 04:37 |
| → pR0Ps_ joined | 04:38 |
| → maxel_ joined | 04:38 |
| → rigid joined | 04:38 |
| → ZachGibbens joined | 04:38 |
| ← ddevault left | 04:38 |
| ← LeMike left | 04:38 |
| ← vishal left | 04:38 |
| ← dhollinger left | 04:38 |
| ← jaeckel left | 04:38 |
| ← dka left | 04:38 |
| ← bipolar left | 04:38 |
| ← lavalike left | 04:38 |
| → vishal joined | 04:38 |
| ← topdownjimmy left | 04:38 |
| ← akemhp left | 04:38 |
| ← deltab left | 04:38 |
| ← tdn left | 04:38 |
| ← mooasaurus left | 04:38 |
| ← pR0Ps left | 04:38 |
| ← tharkun left | 04:38 |
| ← nsh left | 04:38 |
| pR0Ps_ → pR0Ps | 04:38 |
| ← Cork left | 04:39 |
| → mooasaurus joined | 04:39 |
| xcm → Guest14359 | 04:39 |
| ← Guest14359 left | 04:39 |
| → xcm joined | 04:39 |
| → topdownjimmy joined | 04:39 |
| → catsup joined | 04:39 |
| → _ADN_ joined | 04:40 |
| → fairuz joined | 04:40 |
| → dzho joined | 04:40 |
| → telling joined | 04:40 |
| → deltab joined | 04:40 |
| ← stutter left | 04:40 |
| ← teward left | 04:40 |
| ← benoliver999 left | 04:40 |
| ← weltall left | 04:40 |
| → tdn joined | 04:40 |
| ← ferdna left | 04:41 |
| → SwiftMatt joined | 04:41 |
| ← kjartan left | 04:41 |
| → ddevault joined | 04:42 |
| → kjartan joined | 04:43 |
| → weltall joined | 04:44 |
| → teward joined | 04:44 |
| → Cork joined | 04:44 |
| → varesa joined | 04:44 |
| ← _ADN_ left | 04:44 |
| → lavalike joined | 04:45 |
| → naf joined | 04:45 |
| → bipolar joined | 04:46 |
| → benoliver999 joined | 04:46 |
| → dka joined | 04:47 |
| ← fairuz left | 04:49 |
| → Atlenohen joined | 04:50 |
| → random_yanek joined | 04:50 |
| → dijitol joined | 04:50 |
| → Twey joined | 04:51 |
| → dhollinger joined | 04:52 |
| ← Wetmelon left | 04:56 |
| → pks joined | 05:00 |
| ← SwiftMatt left | 05:01 |
| ← jubal left | 05:05 |
| ← Inline left | 05:06 |
| → jaeckel joined | 05:08 |
| → Anthaas_ joined | 05:10 |
| ← Anthaas left | 05:11 |
| ← vicfred left | 05:17 |
| → n3wborn joined | 05:23 |
| ← glik22 left | 05:28 |
| ← dijitol left | 05:34 |
| ← Atlenohen left | 05:35 |
| → glik22 joined | 05:37 |
| ← Muzer left | 05:39 |
| ← Cabanossi left | 05:42 |
| → yokisuci joined | 05:42 |
| → jguddas-tr3 joined | 05:42 |
| → Cabanossi joined | 05:46 |
| → Muzer joined | 05:50 |
| ← g00s left | 05:57 |
| → fphilipe joined | 06:01 |
| → g00s joined | 06:02 |
| → SkarmoutsosV joined | 06:05 |
| ← fphilipe left | 06:06 |
| ← knullare left | 06:10 |
| → Wetmelon joined | 06:10 |
| → Phylock joined | 06:15 |
| ← Wetmelon left | 06:17 |
| ← jguddas-tr3 left | 06:17 |
| → Noti joined | 06:19 |
| ← Furai left | 06:23 |
| ← thiago left | 06:24 |
| ← markzen left | 06:30 |
| → jguddas-tr3 joined | 06:31 |
| → libertyprime joined | 06:32 |
| → rfuentess joined | 06:33 |
| ← jguddas-tr3 left | 06:35 |
| → Necrocter joined | 06:35 |
| → fphilipe joined | 06:36 |
| → chele joined | 06:36 |
| → sQVe joined | 06:36 |
| → feriman joined | 06:37 |
| → Furai joined | 06:39 |
| ← cd left | 06:39 |
| ← Necrocter left | 06:39 |
| → arunkumar413 joined | 06:40 |
| ← fphilipe left | 06:41 |
| → chele_ joined | 06:43 |
| ← chele_ left | 06:44 |
| → chele_ joined | 06:45 |
| ← chele left | 06:46 |
| → fphilipe joined | 06:51 |
| → gareppa joined | 06:52 |
| → jguddas-tr3 joined | 06:55 |
| ← fphilipe left | 06:56 |
| ← lunaphyte left | 06:56 |
| → TomyWork joined | 06:56 |
| → rafasc joined | 06:57 |
| → SteffanW joined | 06:58 |
| ← Noti left | 06:59 |
| → lunaphyte joined | 06:59 |
| ← Phylock left | 06:59 |
| ← jguddas-tr3 left | 07:00 |
| ← Heirlung left | 07:10 |
| → oxymoron93 joined | 07:11 |
| → fphilipe joined | 07:11 |
| → Heirlung joined | 07:12 |
| ← Stoot left | 07:13 |
| ← vavkamil left | 07:16 |
| → asrob joined | 07:16 |
| → Phylock joined | 07:17 |
| → Ring0` joined | 07:20 |
| → vicfred joined | 07:21 |
| ← freedom left | 07:21 |
| → freedom joined | 07:22 |
| → freedom_ joined | 07:28 |
| ← bitwinery left | 07:29 |
| ← disi left | 07:30 |
| ← vicfred left | 07:30 |
| ← igemnace left | 07:30 |
| → esrse joined | 07:31 |
| ← freedom left | 07:32 |
| freedom_ → freedom | 07:32 |
| ← SteffanW left | 07:33 |
| → sinhue joined | 07:33 |
| ← SkarmoutsosV left | 07:38 |
| ← gareppa left | 07:38 |
| → Noti joined | 07:39 |
| → mobidrop joined | 07:41 |
| ← Unode left | 07:41 |
| → jguddas-tr3 joined | 07:42 |
| → igemnace joined | 07:43 |
| ← nabil_ left | 07:44 |
| → Mattiaslndstrm joined | 07:45 |
| → jguddas-tr4 joined | 07:45 |
| ← jguddas-tr3 left | 07:46 |
| ← Rhonda left | 07:47 |
| → Unode joined | 07:48 |
| → Rhonda joined | 07:49 |
| → tonythomas joined | 07:49 |
| → Jackneill joined | 07:51 |
| → mimajof joined | 07:53 |
| ← asrob left | 07:55 |
| ← kerframil left | 07:56 |
| ← libertyprime left | 08:02 |
| → SteffanW joined | 08:03 |
| → asrob joined | 08:03 |
| ← Noti left | 08:03 |
| → mikecmpbll joined | 08:06 |
| → _ADN_ joined | 08:07 |
| ← Unode left | 08:07 |
| → pks_ joined | 08:13 |
| ← pks left | 08:14 |
| pks_ → pks | 08:14 |
| → Makaveli7 joined | 08:18 |
| → Darcidride joined | 08:19 |
| → deathwishdave joined | 08:19 |
| → is_null_ joined | 08:23 |
| → vdamewood joined | 08:24 |
| → floppydh joined | 08:25 |
| ← is_null left | 08:26 |
| → LaScoumoune joined | 08:28 |
| chele_ → chele | 08:37 |
| → sazop joined | 08:41 |
| ← Diggsey left | 08:42 |
| → clime joined | 08:45 |
| ← arunkumar413 left | 08:52 |
| ← sazop left | 08:52 |
| ← deathwishdave left | 08:56 |
| ← Goplat left | 09:00 |
| ← freedom left | 09:01 |
| → ExeciN joined | 09:01 |
| → hegemoOn joined | 09:02 |
| → freedom joined | 09:02 |
|
hegemoOn
| hello there, i run 2 git one fron git-bash withing intelij and one coming from msys full install on windows10 | 09:03 |
|
| when i run a "git status" in intelij i dont have the same output than when i run it inside the msys console | 09:03 |
|
| is it normal ? | 09:03 |
| → alex_pa joined | 09:04 |
| → alex__pa joined | 09:04 |
|
hegemoOn
| i mean, it's like all files need in the git repo need to be added when using the msys git command, while in intelij everything is up to date | 09:05 |
| → enoq joined | 09:05 |
|
cdunklau
| hegemoOn: what's different about the output? | 09:07 |
| ← yonder left | 09:08 |
| → cdown joined | 09:09 |
|
hegemoOn
| cdunklau: all files are modified when runing command from the msys git | 09:13 |
|
| while all file are up to date when running command in intelij git-bash | 09:13 |
|
| inside the same folder of course | 09:13 |
|
cdunklau
| hegemoOn: what's diff show | 09:14 |
|
| i bet it's just a line ending thing | 09:14 |
|
hegemoOn
| CTRL-M | 09:14 |
| ← c0san0stra left | 09:14 |
|
hegemoOn
| yep you are right ! :) | 09:14 |
|
cdunklau
| hegemoOn: yep :) | 09:14 |
|
hegemoOn
| lol | 09:14 |
| → c0san0stra joined | 09:15 |
|
cdunklau
| hegemoOn: so the intelij git is likely using a different set of conf files | 09:15 |
|
hegemoOn
| diff.astextplain.textconv i guess ? | 09:15 |
|
cdunklau
| i'm not really sure, but that looks right | 09:15 |
|
osse
| msys git thinks it's on linux | 09:17 |
| ← ongo left | 09:17 |
|
osse
| so it interprets the line endings differently | 09:18 |
| ← freedom left | 09:20 |
| → ongo joined | 09:21 |
|
cdunklau
| ah that would explain it. so it's getting conf from the msys env, not what intelij reads | 09:22 |
|
hegemoOn
| exact | 09:23 |
| → roadie joined | 09:23 |
|
hegemoOn
| ok core.autocrlf fixed it | 09:27 |
|
| (to true) | 09:28 |
| ← |aaron left | 09:28 |
| ← g00s left | 09:29 |
|
anddam
| after I filter-branch I would like to delete ref backups, I see both efs/original/refs/heads/master and refs/original/refs/remotes/origin/master in reflog's output | 09:29 |
|
| questions: 1.) what is the proper way to list refs? 2.) how do I "clean" non-used refs? | 09:30 |
|
hegemoOn
| thank your cdunklau and osse | 09:30 |
| ← d^sh left | 09:30 |
| → Aquazi joined | 09:30 |
|
rafasc
| anddam: man git filter-branch | 09:31 |
|
gitinfo
| anddam: the git-filter-branch manpage is available at https://gitirc.eu/git-filter-branch.html | 09:31 |
| ← zamba left | 09:31 |
|
anddam
| rafasc: CHECKLIST FOR SHRINKING A REPOSITORY? | 09:32 |
|
| the caps was in original source | 09:32 |
| → d^sh joined | 09:32 |
|
rafasc
| in the CHECKLIST FOR SHRINKING A REPOSITORY, there's a part that describes. | 09:32 |
| → planetcall|work joined | 09:32 |
| → libertyprime joined | 09:33 |
| → zamba joined | 09:34 |
|
anddam
| yep, I'm on it, thanks | 09:35 |
|
| it's pretty clear btw, apart the absurd command names | 09:35 |
|
| print all the ref/original refs, delete them, expire reflogs, call garbage collector | 09:36 |
| ← asrob left | 09:40 |
| → asrob joined | 09:41 |
| ← Takkun left | 09:41 |
| ← n3wborn left | 09:45 |
|
rafasc
| making a new clone of it is much simpler. | 09:48 |
| ← cebor left | 09:52 |
| → cebor joined | 09:53 |
| ← cebor left | 09:56 |
| → cebor joined | 09:56 |
| ← zamba left | 09:56 |
| ← surfist left | 10:00 |
| → surfist joined | 10:00 |
| ← asrob left | 10:01 |
| → asrob joined | 10:01 |
| → zamba joined | 10:07 |
| ← igemnace left | 10:15 |
| → sazop joined | 10:18 |
| ← learningc left | 10:22 |
| → is_null joined | 10:23 |
| → arunkumar413 joined | 10:24 |
| ← is_null_ left | 10:26 |
| ← feriman left | 10:27 |
| ← sazop left | 10:27 |
| → royal_screwup21 joined | 10:28 |
| → nsh joined | 10:29 |
| ← Anthaas_ left | 10:32 |
| ← akemhp_ left | 10:33 |
| ← LaScoumoune left | 10:34 |
| → akemhp_ joined | 10:35 |
| → Anthaas joined | 10:35 |
|
anddam
| yes, but I wanted to figure a couple things in the meanwhile | 10:38 |
| → [twisti] joined | 10:40 |
|
anddam
| I have https://gist.github.com/anddam/801b0972f055fae3860689f7e712c8a2 and I would like the parent of 14fdadc to be 4228e02, I figure I need to rebase but doing a 'rebase 14fdadc master' resulted in a detached state and a new commit, clone of 14fdadc | 10:40 |
|
[twisti]
| how can i see whether a branch is behind, ahead or both compared to another branch/master ? | 10:40 |
|
anddam
| what am I missing,"--onto"? | 10:40 |
|
| [twisti]: does the concept of being behind and ahead even apply to branches? | 10:41 |
|
_ikke_
| [twisti]: git branch -vv | 10:41 |
|
anddam
| oh wow | 10:41 |
|
| _ikke_: I thought that was restricted to local/remote branches couple | 10:41 |
|
_ikke_
| technically you can track any branch you want, but only one at the same time | 10:42 |
|
[twisti]
| thanks, ikke | 10:42 |
|
_ikke_
| So the command I gave applies to the tracked branch | 10:42 |
|
[twisti]
| hm, no, that doesnt work, it seems to compare with upstream. what im looking for is something that tells me if local branch X is ahead, behind or both relative to local branch master | 10:43 |
|
rafasc
| anddam: you can do: git rebase --onto 4228e02 14fdadc~1 14fdadc. (the last argument works best when it is a branch name, otherwise you'll get detached head) | 10:44 |
|
_ikke_
| with man git merge-base --is-ancester you can verify if a branch is ahead of another | 10:44 |
|
gitinfo
| the git-merge-base manpage is available at https://gitirc.eu/git-merge-base.html | 10:44 |
|
_ikke_
| [twisti]: git merge-base --is-ancestor <branch1> <branch2> && echo behind || echo ahead | 10:45 |
|
anddam
| rafasc: I'm reading the --onto part in git-rebase(1) but I don't get the role of the "upstream" argument, even in your example | 10:45 |
|
[twisti]
| ouch, thats a lot more complicated than i thought :( | 10:45 |
|
| but thank you | 10:46 |
|
anddam
| rafasc: the branch name for the last arg is not issue, I can assign one | 10:46 |
|
_ikke_
| anddam: git uses upstream to calculate what commits to rebase | 10:46 |
|
| git log --oneline upstream..branch | 10:46 |
|
| (and without --onto, it's also the new base) | 10:47 |
|
anddam
| rafasc: so you are (or rather I am) telling git to: break 14fdadc history at its parent (the ~1) then attach this onto 4228e02 | 10:47 |
|
| right? | 10:47 |
|
_ikke_
| yes | 10:49 |
|
rafasc
| you can think of git rebase --onto A B C, as take commits in the range ]B,C] and apply them on top of A. | 10:49 |
|
anddam
| yes, that's what I tried to mean | 10:49 |
|
| $ git rebase --onto 4228e02 14fdadc~1 14fdadc | 10:50 |
|
| fatal: Needed a single revision | 10:50 |
| → computer2000 joined | 10:50 |
|
anddam
| invalid upstream '14fdadc~1' | 10:50 |
|
rafasc
| it isn't exactly what happens, but it's a pretty good approximation. | 10:50 |
|
anddam
| it's Good Enough™ for me | 10:50 |
| → nabil joined | 10:51 |
| ← foul_owl left | 10:51 |
|
rafasc
| anddam: is 14fdadc a root commit? | 10:51 |
|
anddam
| maybe | 10:51 |
|
oxymoron93
| always a good question :D | 10:51 |
|
anddam
| I have to google "root commit" | 10:51 |
|
_ikke_
| it must be a root commit | 10:51 |
|
oxymoron93
| initial commit | 10:51 |
| → foul_owl joined | 10:52 |
|
rafasc
| I guess, otherwise 14fdadc~1 would resolve... | 10:53 |
|
anddam
| it was the root of another repo, that I rebased onto initial commit of this one | 10:53 |
| ← oatmealraisin left | 10:53 |
|
_ikke_
| the other options is if 14fdadc does not exist at all | 10:53 |
| ← ChrisLane left | 10:53 |
|
anddam
| I thought that would have made 14fdadc a child of 291f40b | 10:54 |
|
| in my gist, doesn't the representation of vertically aligned * mean parent/child commits? | 10:54 |
|
rafasc
| anddam: use --parents, or --format='%C(auto)%h%d %s%n' | 10:55 |
|
| I have the latter configured as pretty.twoline 'format:%C(auto)%h%d %s%n' | 10:56 |
|
anddam
| yep, root commit | 10:56 |
|
| my bad | 10:56 |
|
rafasc
| gives some space for --graph do draw connections between commits. | 10:56 |
|
anddam
| so different topic, I want 14fdadc to be a child of 4228e02 | 10:56 |
| → ketas joined | 10:57 |
| → ChrisLane joined | 10:57 |
| ← ChrisLane left | 10:57 |
|
rafasc
| git reset --hard 4228e02; git cherry-pick 14fdadc; would be probably the easier route. | 10:58 |
|
| Can't remember if --root works with --onto | 10:59 |
|
anddam
| rafasc: on what branch should I run the reset --hard? | 10:59 |
|
rafasc
| git rebase --onto 4228e02 --root; maybe | 10:59 |
|
| for both, on the branch you're trying to rewrite. | 11:00 |
|
anddam
| that 14fdadc would be the root commit of develop | 11:01 |
|
rafasc
| If it's just a single commit, I find it much easier to just cherry-pick. | 11:01 |
|
anddam
| but if I checkout develop I get the working directory at the tip of develop (sorry for the possible wrong naming there) | 11:01 |
|
| that's why I'm checking out specific commits, in this case 14fdadc | 11:02 |
|
rafasc
| is that log output you pasted truncated? | 11:02 |
|
anddam
| no, it's tail -7 | 11:02 |
|
| develop has ~600 commits | 11:02 |
|
| but that's the bottom | 11:02 |
|
| basically i had a previous repo, I inited a new one and wanted to import the other repo master as develop | 11:03 |
|
rafasc
| so it is truncated... | 11:03 |
|
anddam
| yes, it is truncated | 11:03 |
|
rafasc
| of course cherry-pick will not work in that case.. | 11:03 |
| → learningc joined | 11:03 |
|
anddam
| it's not that obvious to me | 11:03 |
|
rafasc
| and you're willing to rewrite 600 commits? | 11:05 |
|
| git rebase --onto master --root develop; | 11:06 |
| → kjartan_ joined | 11:06 |
|
rafasc
| but that will flatten all merges... | 11:06 |
|
| and rewrite the entire history of develop, that could be problematic. | 11:07 |
| ← cpackham[m]2 left | 11:07 |
| ← henrebotha[m] left | 11:07 |
| ← DamienCassou left | 11:07 |
| ← Celmor[m] left | 11:07 |
| ← mebus left | 11:07 |
| ← olbat[m] left | 11:07 |
| ← jplatte left | 11:07 |
| ← MaliusArth[m] left | 11:07 |
| ← Pseudonosaur left | 11:07 |
|
anddam
| develop is linear and has is only touched by me, until now | 11:07 |
|
| s/ is// | 11:07 |
| ← rickbutton left | 11:07 |
| ← kjartan left | 11:08 |
|
anddam
| brb | 11:08 |
| ← raven-au left | 11:09 |
| ← jimInDevNull left | 11:09 |
| im0nde1 → im0nde | 11:10 |
| → raven-au joined | 11:10 |
| → jimInDevNull joined | 11:11 |
| → SkarmoutsosV joined | 11:13 |
| ← azwieg103 left | 11:13 |
| → azwieg103 joined | 11:14 |
| ← rafasc left | 11:14 |
| → lacrymology joined | 11:17 |
| ← ketas left | 11:17 |
| → emsjessec joined | 11:17 |
| → rafasc joined | 11:19 |
| → ketas joined | 11:19 |
| → atomi_ joined | 11:20 |
| → Celmor[m] joined | 11:22 |
| ← perrier-jouet left | 11:26 |
| → perrier-jouet joined | 11:29 |
|
anddam
| and we're back | 11:31 |
|
| literally | 11:31 |
| → ChrisLane joined | 11:32 |
| ← cebor left | 11:33 |
| → cebor joined | 11:34 |
| → Atlenohen joined | 11:39 |
| → varnaud joined | 11:40 |
| → oatmealraisin joined | 11:40 |
| → LearnAllTheTime joined | 11:44 |
| → jcgruenhage joined | 11:44 |
|
anddam
| rafasc, _ikke_: maybe I'm just trying to do something inappropriate | 11:44 |
|
| I have this repo with a somehow long, linear history only in master | 11:45 |
|
| I want to have a different structure, a master and develop, with stable on master so the old master branch should be imported as develop | 11:46 |
|
| that I figure should branch off the first master commit | 11:46 |
|
_ikke_
| You could just rename master to develop and create master on the commit it should be | 11:47 |
| → eblip joined | 11:51 |
| ← eb0t left | 11:52 |
| → CodeSlingerPaul joined | 11:55 |
| → jcg joined | 11:56 |
| gitinfo set mode: +v | 11:57 |
| ← arunkumar413 left | 11:58 |
|
jcg
| hello, I have a problem debugging a git hook | 11:59 |
|
anddam
| _ikke_: I was thinking about having a root master and develop branching off of it | 11:59 |
|
| _ikke_: you mean create master at the first "stable" merge, right? | 11:59 |
| ← Hoffman left | 12:00 |
|
jcg
| It's a pre-commit hook that works when I execute it manually in the repository root, but when I run 'git commit' it doesn't work | 12:00 |
| → Hoffman joined | 12:00 |
|
_ikke_
| anddam: yes, whatever you consider the new master should be | 12:00 |
|
| jcg: define works/doesn't work? | 12:01 |
|
anddam
| _ikke_: the issue with rebasing a root commit is that all hashes change, right? | 12:01 |
|
| other than that it's fine | 12:01 |
|
_ikke_
| anddam: yes, that's generally the issue indeed | 12:01 |
|
jcg
| _ikke_: this is the commit hook: https://upaste.de/bKT | 12:03 |
|
anddam
| _ikke_: willing to go that road should I delete the currently existing but separated master? | 12:03 |
|
jcg
| Works is that cargo fmt -- --check works correctly, doesn't work is that it complains it can't find the source stuff | 12:03 |
|
| So something before the format check already fails | 12:04 |
|
_ikke_
| jcg: verify what the current directory is in the hook when run by git | 12:04 |
|
| Ah, apparently you already did that | 12:04 |
|
jcg
| yeah, it's the repository root, as the githooks documentation says | 12:04 |
| → freedom joined | 12:05 |
|
_ikke_
| So where is it failing then? | 12:05 |
|
| I see that you are already changing the directory to a different path | 12:06 |
|
jcg
| I think it's failing at the checkout-index command | 12:06 |
|
_ikke_
| cd ${WORK_TREE} | 12:06 |
|
| What is the error message | 12:06 |
|
jcg
| https://upaste.de/baT is the error | 12:07 |
|
| when I remove the cleanup command (rm -rf ${WORK_TREE}) and go in there, the path is empty | 12:08 |
|
| so I think my usage of checkout-index might be wrong, but it's confusing that it works when I run the script myself | 12:09 |
| ← raven-au left | 12:11 |
| → raven-au joined | 12:13 |
|
jcg
| has anyone got an idea? | 12:16 |
| ← atomi left | 12:18 |
| ← mszyszko left | 12:20 |
| → simon816 joined | 12:21 |
| → caffeinatedcode joined | 12:22 |
| ← realies left | 12:23 |
| → Stoot joined | 12:23 |
|
jcg
| I've put up a minimal example over at https://github.com/jcgruenhage/git-hook-failure-example-2019-10-02 | 12:23 |
| → olbat[m] joined | 12:23 |
| → Pseudonosaur joined | 12:23 |
| → mebus joined | 12:23 |
| → MaliusArth[m] joined | 12:23 |
| → cpackham joined | 12:23 |
| → rickbutton joined | 12:23 |
| → DamienCassou joined | 12:23 |
| → henrebotha[m] joined | 12:23 |
| → jplatte joined | 12:23 |
| → realies joined | 12:24 |
| ← freedom left | 12:26 |
| → Raging_Hog joined | 12:27 |
| → catbusters joined | 12:28 |
|
osse
| jcg: try adding --git-dir=.git next to --work-tree=... | 12:28 |
|
| though I think GIT_DIR is laready in the environment | 12:29 |
| → lucasb joined | 12:29 |
| → nic-hartley joined | 12:30 |
|
jcg
| osse: doesn't solve it sadly | 12:30 |
|
osse
| try running git --work-tree=/tmp/wherevr checkout-index... etc. etc live in the shell | 12:31 |
|
| do you get files then? | 12:31 |
|
jcg
| yes, that works: https://stickers.t2bot.io/ | 12:33 |
|
| damn, wrong clipboard | 12:33 |
|
| https://upaste.de/HeJ | 12:33 |
|
osse
| do you see the bash -x output when committing? | 12:34 |
| ← crose left | 12:37 |
| ← enoq left | 12:37 |
| ← libertyprime left | 12:38 |
| ← roadie left | 12:38 |
| → roadie joined | 12:38 |
| ← esrse left | 12:38 |
|
jcg
| yes, I do | 12:39 |
| → tmager joined | 12:40 |
| ← eblip left | 12:40 |
|
jcg
| https://upaste.de/7bE | 12:40 |
| ← ExeciN left | 12:41 |
|
osse
| I see the same thing | 12:42 |
| ← Cabanossi left | 12:42 |
| ← royal_screwup21 left | 12:45 |
|
osse
| jcg: using git ... checkout -f -- :/ works | 12:46 |
|
| it defaults to the index contents so should do the trick | 12:47 |
|
anddam
| _ikke_: anyway I'll fix this later, for now I have a double history and that's it | 12:53 |
|
| double, unrelated branch | 12:53 |
| ← Mattiaslndstrm left | 12:54 |
|
jcg
| osse: doesn't work for me | 12:54 |
|
| + git --git-dir=.git --work-tree=/tmp/home-jcgruenhage-dev-git-hook-failure-example-2019-10-02 checkout -f -- :/fatal: Unable to create '/tmp/home-jcgruenhage-dev-git-hook-failure-example-2019-10-02/.git/index.lock': No such file or directory | 12:55 |
|
| Do I have to init the git repo over there before that? | 12:55 |
|
| I don't really want to copy the whole repo, just the current tree as it's staged | 12:55 |
| → Cabanossi joined | 12:56 |
| → libertyprime joined | 12:57 |
| ← rohieb|ptx left | 12:59 |
|
rafasc
| jcg: you can use: git checkout-index -a -f --prefix="$worktree/" | 12:59 |
| ← khisanth_ left | 13:01 |
| → Mattiaslndstrm joined | 13:02 |
|
jcg
| rafasc: Thanks! That works! | 13:04 |
|
osse
| strange | 13:05 |
|
rafasc
| Not sure if this is a bug or not. | 13:07 |
| → sbeyer joined | 13:08 |
| → royal_screwup21 joined | 13:08 |
|
rafasc
| GIT_TRACE_SETUP=1 is exactly the same.. yet yields different results. | 13:09 |
| → jguddas-tr joined | 13:10 |
| ← jguddas-tr4 left | 13:13 |
| → khisanth_ joined | 13:14 |
| → gareppa joined | 13:15 |
|
robertparkerx
| If I had to clear a branch by git reset --hard... how do I force a push | 13:18 |
|
osse
| use the --force, robert | 13:18 |
|
robertparkerx
| git push -u origin feature_123 --force ? | 13:19 |
|
osse
| I would put the --force next to the -u | 13:19 |
|
| I presume the -u isn't necessary since it's been pushed before | 13:20 |
|
robertparkerx
| git push --force feature_123 | 13:20 |
| → feriman joined | 13:21 |
| ← lmat left | 13:23 |
|
osse
| where did "origin" go? | 13:25 |
| → eb0t joined | 13:25 |
| → gschanuel7 joined | 13:26 |
| ← vdamewood left | 13:27 |
| ← vals_ left | 13:27 |
| ← gschanuel left | 13:28 |
| ← royal_screwup21 left | 13:31 |
| → sgen joined | 13:35 |
| → eblip joined | 13:35 |
| ← comptroller left | 13:35 |
| ← eb0t left | 13:36 |
| ← LearnAllTheTime left | 13:36 |
| ← yn left | 13:42 |
| → eb0t joined | 13:46 |
| → yn joined | 13:47 |
| ← Makaveli7 left | 13:49 |
| ← xcm left | 13:50 |
| → xcm joined | 13:50 |
| → comptroller joined | 13:51 |
| ← gareppa left | 13:54 |
| ← libertyprime left | 13:59 |
| ← computer2000 left | 14:00 |
| ← sgen left | 14:00 |
|
robertparkerx
| ty osse | 14:01 |
| → Inline joined | 14:04 |
| → fstd_ joined | 14:04 |
| → mehuden joined | 14:04 |
| → czart joined | 14:04 |
| ← SkarmoutsosV left | 14:05 |
| ← fstd left | 14:08 |
| → arunkumar413 joined | 14:08 |
| fstd_ → fstd | 14:08 |
| ← is_null left | 14:12 |
| → is_null joined | 14:14 |
| ← oxymoron93 left | 14:17 |
| → pllong joined | 14:19 |
| ← sQVe left | 14:19 |
| ← clime left | 14:20 |
| ← omnireq_ left | 14:22 |
| → ExeciN joined | 14:23 |
| ← doug16k left | 14:26 |
| → nerosnm joined | 14:26 |
| ← Stoot left | 14:27 |
|
snappy
| is there a way to reword a series of commit comments from the interactive rebase screen - without having to go through each individual comit | 14:29 |
| → im0nde_ joined | 14:31 |
| → Stoot joined | 14:31 |
| ← Anthaas left | 14:31 |
| → Anthaas joined | 14:32 |
| ← im0nde left | 14:34 |
| ← fstd left | 14:35 |
| → fstd joined | 14:37 |
| → thiago joined | 14:37 |
|
pllong
| Why? It's simple enough to just set the action to 'reword' and then edit the commit message. When you save and exit the editor, rebase will automatically continue. | 14:44 |
|
osse
| you can set GIT_EDITOR to a script maybe | 14:46 |
| im0nde_ → im0nde | 14:46 |
|
osse
| GIT_EDITOR='sed -i s/lol/rofl/' GIT_SEQUENCE_EDITOR=vim git rebase -i | 14:47 |
| ← [twisti] left | 14:53 |
| → royal_screwup21 joined | 14:53 |
| → greggerz joined | 14:55 |
| → nika joined | 14:57 |
| → aw1 joined | 14:58 |
| → fstd_ joined | 15:01 |
|
pllong
| If you want to sed, then maybe use 'git filter-branch' | 15:01 |
| → deathwishdave joined | 15:02 |
| ← chele left | 15:02 |
|
pllong
| git filter-branch --msg-filter='sed -i s/lol/rofl/' master..HEAD | 15:03 |
|
| (I'm assuming you want to rebase against master) | 15:03 |
| → omnireq joined | 15:04 |
| ← fstd left | 15:04 |
| fstd_ → fstd | 15:04 |
| saint__ → saint_ | 15:04 |
|
pllong
| Sorry, slightly wrong command. | 15:05 |
| ← SteffanW left | 15:05 |
|
pllong
| git filter-branch --msg-filter 'sed s/lol/rofl/' master..branch | 15:05 |
| → bjpenn joined | 15:06 |
| ← cdown left | 15:06 |
| → doug16k joined | 15:06 |
| → stennowork joined | 15:07 |
|
stennowork
| hmm i am wondering: i am doing `git pull --rebase origin <branchname>`, however after pulling, `git status` tells me "Your branch is ahead of 'origin/<branchname>' by 3 commits." | 15:08 |
| → rsrx joined | 15:08 |
|
stennowork
| how can that be? i assumed that after pulling from the origin, my local branch would be the same commit level as the origin repository | 15:09 |
| ← feriman left | 15:10 |
| ← saint_ left | 15:12 |
| ← doublex left | 15:12 |
| ← doug16k left | 15:14 |
| → saint_ joined | 15:14 |
| → ericfreese joined | 15:14 |
| ← duderonomy left | 15:14 |
| ← royal_screwup21 left | 15:15 |
| → helpdeskaleer joined | 15:18 |
| ← floppydh left | 15:20 |
|
helpdeskaleer
| Question about git cherry-pick: https://stackoverflow.com/q/58203992/18149 | 15:21 |
| → CalimeroTeknik joined | 15:21 |
| → MACscr_ joined | 15:22 |
| ← MACscr left | 15:22 |
|
CalimeroTeknik
| is there some equivalent of post-receive but for a normal repository, that runs after I pull? | 15:22 |
|
| post-merge is the closest bet I have | 15:23 |
|
bin_bash
| whoa hey CalimeroTeknik long time :D | 15:23 |
|
helpdeskaleer
| Sounds like hooks | 15:23 |
|
stennowork
| hai bin_bash | 15:23 |
|
| we meet again | 15:23 |
|
CalimeroTeknik
| hello | 15:23 |
|
stennowork
| unsurprisingly :D | 15:23 |
|
bin_bash
| heh hey stennowork | 15:24 |
|
| Hello, old friends :D | 15:24 |
| ← mobidrop left | 15:24 |
|
stennowork
| o7 | 15:24 |
| ← thiago left | 15:24 |
| ← aw1 left | 15:25 |
| ← asrob left | 15:26 |
| → akem__ joined | 15:30 |
| ← stennowork left | 15:31 |
| ← akemhp_ left | 15:33 |
| ← helpdeskaleer left | 15:35 |
| → vicfred joined | 15:36 |
| ← rfuentess left | 15:36 |
| ← Stoot left | 15:39 |
| → dijitol joined | 15:39 |
| ← lucasb left | 15:39 |
| → MACscr joined | 15:41 |
| ← MACscr_ left | 15:41 |
| ← xcm left | 15:41 |
| → doublex joined | 15:43 |
| → xcm joined | 15:43 |
| → boombatower joined | 15:44 |
| → zumba_addict joined | 15:46 |
|
zumba_addict
| What step am I doing wrong with CONFLICT during git rebase. I manually fixed the conflicts then I ran `git add .` then ran `git rebase --continue`. The conflicts came back | 15:47 |
|
_ikke_
| zumba_addict: probably nothing | 15:47 |
|
| a change might conflict with more then one commit | 15:47 |
|
zumba_addict
| it showed 2 conflicts which I fixed | 15:48 |
|
| I'll try again | 15:48 |
|
| i ran `git rebase --continue` and it opened up vi like it did earlier. I just saved it | 15:50 |
|
| it worked this time | 15:50 |
|
| hmm | 15:50 |
|
| git push failed | 15:51 |
|
| oh, --force | 15:52 |
|
| it's successful now :) | 15:52 |
|
_ikke_
| good | 15:54 |
| → asrob joined | 15:56 |
|
axsuul
| Is there a shortcut to rebase on master and squash all commits in one go? Currently the workflow is `git rebase -i master` and then I replace all "pick" commits with "f" and save | 15:58 |
|
_ikke_
| axsuul: git merge --squash | 15:59 |
|
| (followed by git commit) | 16:00 |
| ← yokisuci left | 16:01 |
| ← mikecmpbll left | 16:01 |
| → gareppa joined | 16:02 |
| ← learningc left | 16:04 |
| → mikecmpbll joined | 16:04 |
| → disi joined | 16:05 |
| ← gareppa left | 16:05 |
| → Exec1N joined | 16:06 |
| ← caskd left | 16:06 |
| → yokisuci joined | 16:06 |
| ← asrob left | 16:06 |
| → caskd joined | 16:06 |
| → MACscr_ joined | 16:06 |
| → tucked joined | 16:06 |
| ← MACscr left | 16:08 |
| ← nic-hartley left | 16:08 |
| ← disi left | 16:10 |
|
axsuul
| _ikke_ : Sorry, i don't want to merge into master, I forgot to mention I'm currently checked out of another branch (that's on top of master) and want to squash all the commits of current branch into one commit | 16:12 |
| ← nerosnm left | 16:13 |
| gschanuel7 → gschanuel | 16:13 |
| ← jguddas-tr left | 16:14 |
| ← justanotheruser left | 16:17 |
| → thiago joined | 16:17 |
| → Stoot joined | 16:19 |
|
_ikke_
| axsuul: not the pretiest solution, but this works: GIT_SEQUENCE_EDITOR='sed "2,\$s/pick/f/"' git rebase -i origin/master | 16:26 |
|
| sorry, you'd need sed -i | 16:27 |
|
axsuul
| thanks loving the approach! | 16:29 |
| → SuperL4g joined | 16:30 |
| → clime joined | 16:31 |
| → malina joined | 16:32 |
|
axsuul
| on macOS, I had to change the command to: GIT_SEQUENCE_EDITOR='sed -i '' -e "2,\$s/pick/f/"' git rebase -i master | 16:33 |
| → justanotheruser joined | 16:33 |
|
axsuul
| but it works, thanks a bunch! | 16:33 |
| ← SuperLag left | 16:33 |
| → jguddas-tr joined | 16:33 |
| → jguddas-tr1 joined | 16:36 |
| ← jguddas-tr left | 16:38 |
| ← doublex left | 16:40 |
| ← _ADN_ left | 16:42 |
| → _ADN_ joined | 16:43 |
| ← MACscr_ left | 16:44 |
| → MACscr joined | 16:44 |
| ← TomyWork left | 16:44 |
| → gareppa joined | 16:46 |
| → helpdeskaleer joined | 16:47 |
|
helpdeskaleer
| Orientation of git flow feature merges? https://stackoverflow.com/q/58205848/18149 | 16:48 |
| ← gareppa left | 16:48 |
| ← _ADN_ left | 16:48 |
| ← helpdeskaleer left | 16:48 |
| → gareppa joined | 16:50 |
| ← nabil left | 16:52 |
| → nabil joined | 16:52 |
| ← mikecmpbll left | 16:52 |
| ← arunkumar413 left | 16:54 |
| ← deathwishdave left | 16:56 |
| → helpdeskaleer joined | 16:58 |
| ← helpdeskaleer left | 17:01 |
| ← Darcidride left | 17:02 |
| ← mimajof left | 17:03 |
| → cfoch joined | 17:03 |
| → helpdeskaleer joined | 17:05 |
| ← helpdeskaleer left | 17:09 |
| → AtumT joined | 17:09 |
| ← saint_ left | 17:10 |
| → duderono_ joined | 17:17 |
| → fstd_ joined | 17:18 |
| ← planetcall|work left | 17:18 |
| ← duderono_ left | 17:20 |
| ← fstd left | 17:21 |
| fstd_ → fstd | 17:21 |
| ← SuperL4g left | 17:21 |
| → royal_screwup21 joined | 17:22 |
| ← xcm left | 17:22 |
| → xcm joined | 17:23 |
| → SuperLag joined | 17:23 |
| ← Raging_Hog left | 17:28 |
| ← SuperLag left | 17:29 |
| ← caskd left | 17:35 |
| ← jwest left | 17:38 |
| akem__ → akem | 17:38 |
| ← MACscr left | 17:40 |
| → SuperLag joined | 17:43 |
| → doublex joined | 17:46 |
| → tango_ joined | 17:48 |
|
anddam
| I want to merge the feature branch into develop at https://gist.github.com/anddam/043020e22b70e648bda896567a3d74d3 | 17:48 |
|
| I think this should just be a fast-forward | 17:48 |
|
| do I need to manually force it or will git merge pick it on its own? | 17:49 |
|
vishal
| anddam: is a fast-forward ok, or do you want to force the creation of a merge commit? | 17:49 |
|
| it will fast-forward by default | 17:49 |
|
| but you can override that | 17:49 |
|
bin_bash
| what version of git is this from https://gitirc.eu/git-checkout.html? I don't see these same options when I check the manpage | 17:51 |
|
| specifically i dont have --overwrite-ignore or --no-overwrite-ignore | 17:51 |
| → MACscr joined | 17:52 |
| ← czart left | 17:52 |
|
vishal
| the page says: Last updated 2019-07-10 11:51:04 JST so probably from the git tree thereabouts | 17:52 |
| → caskd joined | 17:56 |
| ← oatmealraisin left | 17:56 |
| ← gareppa left | 17:57 |
| → Sasazuka joined | 17:57 |
|
bin_bash
| i'm trying to confirm something i was told yesterday, whcih is that git will silently overwrite ignored files. i've never had this happen, and i cant seem to replicate it. there's an ignored file test.flag that doesn't exist. i create it, add text to it, then checkout origin/master (where the file doesnt exist). on checkout my test.flag file still exists, so git didnt delete it | 17:58 |
|
| rafasc: perhaps i misunderstood but based on what you were saying yesterday shouldnt the file have been removed? | 18:02 |
| → nicexe joined | 18:03 |
| ← ExeciN left | 18:05 |
| → fahadash joined | 18:11 |
|
Habbie
| bin_bash, you were told that git MAY do that | 18:14 |
|
| bin_bash, you were not promised destruction | 18:14 |
|
| bin_bash, git clean may do it quite bluntly; git checkout may do it if you switch between branches that do and do not have that file | 18:14 |
|
| bin_bash, but git will not actively seek out your ignored files to destroy them | 18:15 |
|
bin_bash
| Habbie: based off the documentation linked it says it's the default behavior | 18:15 |
|
| so if it's the default behavior it should happen, right? | 18:15 |
|
Habbie
| bin_bash, which documentation is that, exactly? | 18:15 |
|
bin_bash
| the one i linked above https://gitirc.eu/git-checkout.html | 18:16 |
|
| see --no-overwrite-ignore | 18:16 |
|
Habbie
| that flag is relevant when the branch you are switching to contains ignored files | 18:17 |
|
| which yours does not | 18:17 |
|
| so there is nothing to overwrite or not overwrite | 18:17 |
|
| my local manpage also lacks those options btw | 18:17 |
| ← Aquazi left | 18:17 |
| → ELFrederich joined | 18:18 |
| → jwest joined | 18:19 |
| → shabius_ joined | 18:19 |
|
_ikke_
| I think it's quite new | 18:20 |
|
bin_bash
| if the files are ignored the branch shouldn't contain them, hence my confusion | 18:20 |
|
_ikke_
| But hab | 18:21 |
| → oatmealraisin joined | 18:21 |
| nicexe → ExeciN | 18:21 |
| ← Jackneill left | 18:22 |
|
_ikke_
| Habbie is right, it's only very specific circumstances where this is an issue | 18:22 |
| ← shabius_ left | 18:22 |
|
Habbie
| bin_bash, the summary is 'git will ignore your ignored files as much as it can' | 18:22 |
|
bin_bash
| ok so then it's not true that gitignore is only meant for garbage files? or it is true? like that's basically what i'm trying to understand. | 18:22 |
|
Habbie
| it's not true | 18:23 |
|
| it's also not what's relevant | 18:23 |
|
_ikke_
| Habbie: that idea comes from the maintainer of git | 18:23 |
| ← shabius left | 18:23 |
|
bin_bash
| and previously my understanding was ignored files are ignored. if you've added the files to a repo and then ignore them, you use git clean to remove them (which deletes them) | 18:23 |
|
Habbie
| _ikke_, ah | 18:23 |
|
| bin_bash, git clean does not do that | 18:23 |
|
bin_bash
| er sorry, you're right, git clean is for removing untracked files | 18:24 |
|
| but git clean -x can remove ignore files iirc | 18:24 |
|
| was looking at this yesterday, sec | 18:24 |
|
Habbie
| yes | 18:24 |
|
| if they are not tracked | 18:24 |
|
_ikke_
| Someone complained that git ate their ignored files, when Junio replied that ignored files are deamed trashable | 18:24 |
|
Habbie
| _ikke_, right | 18:24 |
|
_ikke_
| That git has no concept of precious but ignored files yet | 18:25 |
|
Habbie
| _ikke_, i consider that subtly different than 'gitignore is for garbage files' | 18:25 |
|
| but the point is taken | 18:25 |
|
bin_bash
| ohhhhhhhh | 18:25 |
|
| okay that makes WAY more sense | 18:25 |
|
| I misunderstood yesterday | 18:25 |
|
Habbie
| bin_bash, i figured :) | 18:25 |
| → pyfgcr joined | 18:25 |
|
Habbie
| bin_bash, glad it's clear now | 18:25 |
| ← Mattiaslndstrm left | 18:26 |
| → shabius joined | 18:26 |
|
_ikke_
| If git doesn't have to touch those files, it doesn't | 18:27 |
| ← sauvin left | 18:27 |
|
_ikke_
| But when you check out a branch that does track that file, git would not complain as it usually would | 18:27 |
|
bin_bash
| to rephrase (and please correct me if i'm wrong) but git basically doesn't know or care about ignored files. it cant determine ignored trash files vs ignored precious files, so treats them the same. if you were to remove with git clean -xdf or something then all the files would get removed, even if theyre "precious", but regular behavior of git isnt going to just randomly delete them | 18:27 |
|
| <_ikke_> But when you check out a branch that does track that file, git would not complain as it usually would | 18:27 |
|
| this clarifies it a lot | 18:28 |
|
| branch where file is ignored, branch where it's not ignored, not ignored will take precendence and overwrite local file regardless of whether local file is newer since git is ignoring it | 18:28 |
| → g00s joined | 18:29 |
| → deathwishdave joined | 18:30 |
| → lucasb joined | 18:33 |
|
ELFrederich
| I want to push all branches from one remote to a new empty remote. I have not found a straight forward way to do this. Someone here told me a while ago to do "git push gov refs/remotes/origin/*:refs/heads/*" ... but that ends up pushing a branch called HEAD | 18:34 |
| ← Hoffman left | 18:35 |
| → Hoffman joined | 18:35 |
| ← Enphuego left | 18:37 |
| ← shabius left | 18:39 |
| → KeyJoo joined | 18:39 |
| ← Cabanossi left | 18:42 |
|
ELFrederich
| I looked at the --mirror option for push, but it only pushes local references, not from one remote to another | 18:48 |
| → gareppa joined | 18:48 |
| → shabius joined | 18:50 |
| → owlscientist joined | 18:52 |
|
rafasc
| bin_bash: https://upaste.de/Gy8 | 18:53 |
| → zub1n joined | 18:54 |
|
rafasc
| if you checkout i-hate-config-files, your ignored changes will be lost. | 18:54 |
| ← azwieg103 left | 18:55 |
| → azwieg103 joined | 18:56 |
|
rafasc
| this is the obvious case, but there are other not-so-obvious ones. | 18:57 |
|
bin_bash
| so it's only if you've already added an ignored file | 18:57 |
| → Cabanossi joined | 18:57 |
| ← xcm left | 18:58 |
|
rafasc
| I think I remember someone complaining that a pull could do it, but I don't remember the exact scenario. | 18:58 |
| → xcm joined | 19:00 |
|
rafasc
| the link I gave you yesterday has a more complex one: https://public-inbox.org/git/4C6A1C5B.4030304@workspacewhiz.com/ | 19:00 |
| → kleisli joined | 19:04 |
| ← kleisli left | 19:05 |
| → kleisli joined | 19:05 |
| ← azwieg103 left | 19:05 |
| ← bjpenn left | 19:06 |
|
kleisli
| hey all. i have a repo where if i do git rebase -i --root and make no changes (ie pick every commit), i get a bunch of merge conflicts. i don't understand how this is possible | 19:07 |
|
| shouldn't it be the case if i just pick every commit, that's just the same as replaying history exactly? | 19:07 |
|
rafasc
| "cant determine ignored trash files vs ignored precious files, so treats them the same." This is true. The problem is that it treats it as trashable files. | 19:07 |
|
jrnieder
| kleisli: does --rebase-merges do what you're looking for? | 19:08 |
| ← Aelius left | 19:08 |
| → leeN joined | 19:08 |
| ← fphilipe left | 19:08 |
| → Aelius joined | 19:09 |
|
kleisli
| jrnieder: hmm i just tried that. i get "error: refusing to update ref with bad name". i should be clear, i didn't write this project myself, so anything could have happened in the past | 19:11 |
|
jrnieder
| weird, sounds worth contacting [email@hidden.address] about | 19:11 |
|
| anyway, I suspect the answer to your first question is "merges" :) | 19:12 |
|
| actually, before I conclude that the error is a bug, what is the full command line you ran? | 19:12 |
| ← nika left | 19:13 |
|
kleisli
| jrnieder: https://paste.ee/p/DzAZa | 19:13 |
|
| i didn't make any changes interactively | 19:14 |
|
| i guess that's equivalent to just `git rebase --root --rebase-merges` ? | 19:14 |
| ← doublex left | 19:17 |
| → doublex joined | 19:24 |
| ← jguddas-tr1 left | 19:25 |
| → plexigras joined | 19:27 |
| → ExtraSteve joined | 19:32 |
| ← Kaivo left | 19:34 |
|
ExtraSteve
| So I'm a bit of a gitiot (git-idiot, get it?) - I don't know the right tool for what I'm trying to do. Maybe y'all can help. | 19:35 |
| ← gareppa left | 19:35 |
|
ExtraSteve
| I have a project, ProjectA, which I'd like to make a copy of: ProjectB. ProjectB will have a few key changes - we'll call them XYZ. I will be making changes to ProjectA in the future - I'd like to push those same changes to ProjectB without interfering with XYZ. | 19:35 |
|
| Is this the job of fork? If so, what do I need to do to keep my fork up to date with the original project from which it was forked? | 19:35 |
|
| Or is this the job of branching? | 19:36 |
| ← BonusPlay left | 19:36 |
|
ExtraSteve
| I just don't want to overwrite XYZ in ProjectB with the original version from ProjectA | 19:36 |
| → BonusPlay joined | 19:36 |
|
ExtraSteve
| When I make my other changes | 19:36 |
|
| If that makes sense | 19:36 |
| ← BonusPlay left | 19:37 |
| → BonusPlay joined | 19:37 |
| ← BonusPlay left | 19:37 |
| → BonusPlay joined | 19:38 |
| ← catbusters left | 19:38 |
|
vishal
| ExtraSteve: yes, sounds like a fork, and yes you'll have to choose when to sync up with the progress ProjectA makes | 19:39 |
| → macaronus joined | 19:39 |
| → jubal joined | 19:40 |
|
vishal
| XYZ won't go anywhere unless you do something like reset --hard <some-ref-from-A> | 19:40 |
|
| otherwise you can periodically do something like git merge projectA/master; <resolve conflicts> | 19:41 |
|
ExtraSteve
| So if I fork, it's not going to say, "hey XYZ exists in A but not B" when I sync? Only the changes that were made after the fork? | 19:41 |
|
vishal
| and also keep making commits on B's XYZ and they will continue to coexist | 19:41 |
|
ExtraSteve
| Right | 19:42 |
|
vishal
| I thought XYZ were changes local to B? | 19:42 |
|
ExtraSteve
| Yes, XYZ are going to be local to B | 19:43 |
|
vishal
| right so this 'sync' operation will typically be a git merge | 19:43 |
| → nabil_ joined | 19:43 |
|
ExtraSteve
| But if I make new changes (let's say ABC) to A - is git not going to say "I've got ABC to merge... you've got XYZ, so let me just kill that also" ? | 19:44 |
|
| Or is it going to give me merge conflicts every time? | 19:44 |
|
vishal
| no, it will attempt to keep both | 19:44 |
|
ExtraSteve
| And then I just have to resolve? | 19:44 |
|
| Ahhh | 19:44 |
|
vishal
| there may be merge conflicts depending on the exact nature of the changes | 19:44 |
|
ExtraSteve
| Shouldn't be anything on the same lines - and hopefully not even in the same files | 19:45 |
|
vishal
| should be straightforward then | 19:45 |
|
ExtraSteve
| Cool :) | 19:45 |
| ← BonusPlay left | 19:45 |
|
vishal
| note that merge will bring in /all/ the changes from project A | 19:46 |
| → BonusPlay joined | 19:46 |
|
vishal
| if this is what you want, great | 19:46 |
| ← nabil left | 19:46 |
|
vishal
| if not, and if you want to only bring in things selectively, you can use cherry-pick or so | 19:46 |
| ← BonusPlay left | 19:46 |
|
vishal
| both are valid directions to go in | 19:46 |
| → BonusPlay joined | 19:47 |
| ← malina left | 19:47 |
| ← emsjessec left | 19:47 |
| → gareppa joined | 19:47 |
|
vishal
| but note that a merge will attempt to bring in the entire history of A starting from the point of divergence (usually called the merge-base) | 19:48 |
| ← nabil_ left | 19:49 |
| → nabil_ joined | 19:50 |
| ← MACscr left | 19:52 |
| → n3wborn joined | 19:53 |
| → MACscr joined | 19:55 |
| → veegee joined | 20:02 |
| → malmalmal joined | 20:05 |
| ← gareppa left | 20:06 |
|
jrnieder
| kleisli: thanks! Yeah, looks like a bug, so a mail to [email@hidden.address] would be welcome | 20:09 |
| → Ignacy joined | 20:09 |
|
kleisli
| jrnieder: interesting, thanks | 20:10 |
| → SkarmoutsosV joined | 20:10 |
| ← infinisil left | 20:11 |
| → infinisil joined | 20:15 |
| → bitwinery joined | 20:17 |
| ← bitwinery left | 20:17 |
| → bitwinery joined | 20:18 |
| ← justanotheruser left | 20:26 |
| ← ELFrederich left | 20:28 |
| → arahnoid joined | 20:29 |
| ← Ignacy left | 20:37 |
| → cdown joined | 20:37 |
| ← cdown left | 20:43 |
| → justanotheruser joined | 20:46 |
| → blackmesa joined | 20:48 |
| ← arahnoid left | 20:48 |
| ← tmager left | 20:51 |
| → arahnoid joined | 20:52 |
| → nuala joined | 20:53 |
| → LaScoumoune joined | 20:54 |
| ← nuala left | 20:54 |
| → nuala joined | 20:56 |
| ← eb0t left | 21:05 |
| → fphilipe joined | 21:05 |
| → bambanx joined | 21:05 |
| ← bambanx left | 21:05 |
| ← pllong left | 21:07 |
| → blackmesa1 joined | 21:07 |
| ← Exec1N left | 21:07 |
| ← blackmesa left | 21:08 |
| → edgimar joined | 21:08 |
|
foo
| Is there a way to do a git commit and set the date? In a way that no one else can know the date was not the actual date of commit? | 21:08 |
|
j416
| foo: man git-commit look for GIT_AUTHOR_DATE, GIT_COMMITTER_DATE | 21:09 |
|
gitinfo
| foo: the git-commit manpage is available at https://gitirc.eu/git-commit.html | 21:09 |
|
Habbie
| (1) yes (2) your push, and other related operations, will no doubt also leave some trails behind | 21:09 |
|
j416
| sorry, man git-commit-tree | 21:10 |
|
gitinfo
| the git-commit-tree manpage is available at https://gitirc.eu/git-commit-tree.html | 21:10 |
|
edgimar
| I made a commit a while ago which reflects the working dir state that I would like to have for a merge I'm doing. What I want to know is if there's a way, after a 'git merge --no-commit ...' to reset ONLY THE WORKING DIR to match the working-dir state of some commit, but leave the index and everything else untouched. | 21:10 |
| ← fphilipe left | 21:12 |
| ← xcm left | 21:12 |
| → xcm joined | 21:12 |
| ← Aelius left | 21:12 |
| ← arahnoid left | 21:13 |
| ← KeyJoo left | 21:16 |
|
edgimar
| hm, I guess I could (1) reset --hard to the 'good' commit, (2) reset --soft HEAD^, and (3) merge with an ours strategy | 21:16 |
| ← sbeyer left | 21:17 |
|
edgimar
| But I would like to know if there's a way to change the working dir w/o touching the current index (i.e. a 'checkout rev -- filename' but for all files in rev). | 21:18 |
| ← Fusl left | 21:18 |
|
j416
| edgimar: probably, but with the likelyhood of fatfingering something, I'd recommend you simply commit first | 21:18 |
| → Fusl joined | 21:19 |
|
rafasc
| with lastest version you can: git restore --source=commit --worktree | 21:19 |
|
| git restore --source=commit --worktree :/ it also accepts -p, which is very nice. | 21:21 |
| ← robertparkerx left | 21:21 |
| ← Phylock left | 21:21 |
| ← jubal left | 21:21 |
|
edgimar
| hmph - 'git merge -s ours ...' results with 'Merge with strategy ours failed.' -- how is this possible? | 21:21 |
| ← deathwishdave left | 21:22 |
| → sbeyer joined | 21:22 |
| → robertparkerx joined | 21:22 |
|
edgimar
| oh, I guess I can't merge w/ changes to the working dir. | 21:23 |
|
| Is there a way to add an additional parent to an existing commit? | 21:23 |
|
j416
| edgimar: man git-replace | 21:23 |
|
gitinfo
| edgimar: the git-replace manpage is available at https://gitirc.eu/git-replace.html | 21:23 |
|
edgimar
| (i.e. convert a normal commit into a merge commit) | 21:23 |
|
j416
| never done it, but I'd assume it'd work. | 21:24 |
|
| --graft should do it. --edit would be another option. | 21:24 |
|
foo
| j416 / Habbie - thanks, looks like if I set GIT_AUTHOR_DATE, GIT_COMMITTER_DATE environment variables and the --date option ... to the same date, I suspect I'll be ok. (These are adding new files only, in my own branch not in staging, so I *think* this should be ok and not cause any challenges) | 21:25 |
|
edgimar
| I'd like to avoid replace, as it adds another layer that maps the replaced nodes. | 21:25 |
|
j416
| foo: you don't need --date; just the env vars. | 21:25 |
|
| edgimar: you can run filter-branch to make those changes permanent. | 21:25 |
|
edgimar
| j416: true. | 21:25 |
|
| but now it's getting to the tipping point where it's almost too much of a pain to take that path. | 21:26 |
|
j416
| so don't | 21:26 |
|
foo
| j416: thank you | 21:26 |
|
j416
| o/ | 21:26 |
| → jubal joined | 21:27 |
| → Fernando-Basso joined | 21:27 |
| → seebyr joined | 21:29 |
|
rafasc
| filter-branch also has a parent rewrite filter. | 21:31 |
| → crose joined | 21:31 |
| ← pyfgcr left | 21:32 |
| ← sbeyer left | 21:32 |
|
j416
| fancy | 21:33 |
|
| til | 21:33 |
| ← xcm left | 21:35 |
| → xcm joined | 21:36 |
| → coco joined | 21:37 |
|
rafasc
| but muckering the parent list is the recipe to create evil merges, so not so fancy. :P | 21:39 |
| → feriman joined | 21:41 |
|
j416
| :) | 21:42 |
| ← edgimar left | 21:43 |
| ← seebyr left | 21:45 |
| ← oatmealraisin left | 21:46 |
| ← kleisli left | 21:49 |
| ← greggerz left | 21:55 |
| → dre_ joined | 21:56 |
| ← dre_ left | 21:57 |
| ← owlscientist left | 21:57 |
| → LearnAllTheTime joined | 21:57 |
| amcclure → amcclure| | 22:01 |
| ← coco left | 22:01 |
| ← veegee left | 22:01 |
| → Jackneill joined | 22:01 |
| → m0viefreak joined | 22:02 |
| → Aelius joined | 22:03 |
| ← vicfred left | 22:05 |
| ← dijitol left | 22:06 |
| ← akem left | 22:06 |
| ← LaScoumoune left | 22:06 |
| → amcclure joined | 22:07 |
| → akemhp joined | 22:08 |
| ← feriman left | 22:13 |
| → Exec1N joined | 22:14 |
| → kleisli joined | 22:14 |
| → Newami joined | 22:16 |
| → Wetmelon joined | 22:16 |
| ← Newami left | 22:17 |
| ← Jackneill left | 22:17 |
| ← Exec1N left | 22:19 |
| tucked → disi | 22:23 |
| ← SkarmoutsosV left | 22:31 |
| → oatmealraisin joined | 22:32 |
|
foo
| git merge branchB (when I'm in branchA) gives me a merge commit in the log which makes it easier to revert compared to a rebase, correct? (I believe yes, simply want to make sure) | 22:32 |
| → jamiejackson joined | 22:32 |
|
jamiejackson
| hi folks. i can't figure out how to revert. i've never successfully done one. i want to revert the commits containing "spot debug" and here's my failed attempt: https://gist.github.com/jamiejackson/5d5cec30eb735d6b70b31f177c8585e7 | 22:33 |
| → P1RATEZ joined | 22:33 |
| ← CodeSlingerPaul left | 22:33 |
| ← kleisli left | 22:34 |
| → eb0t joined | 22:37 |
| ← royal_screwup21 left | 22:42 |
| ← malmalmal left | 22:43 |
|
vishal
| foo: correct, unless the merge can be fast forwarded, in which case there won't be a merge commit. You can override that using --no-ff which will force the creation of a merge commit | 22:45 |
|
foo
| vishal: thank you | 22:46 |
|
vishal
| jamiejackson: did you try giving it the -m option as it suggested? | 22:46 |
|
| jamiejackson: !revert_merge | 22:46 |
|
gitinfo
| jamiejackson: [!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 | 22:46 |
|
jamiejackson
| vishal, yeah, with -m, it gave `error: option `mainline' expects a number greater than zero` | 22:47 |
|
vishal
| jamiejackson: right, you need to give it 'which side' of the merge to revert | 22:49 |
|
| inspect that merge commit it is complaining about, and look at the two histories merged | 22:49 |
|
| find the one you want gone, and see which parent it is, and then supply 1 or 2 to -m | 22:50 |
| → cdown joined | 22:51 |
| ← plexigras left | 22:51 |
| ← rafasc left | 22:52 |
| ← jcg left | 22:52 |
|
jamiejackson
| okay, i'm beginning to see, but i've got to wrap up for today. thanks for the tips, vishal | 22:53 |
|
vishal
| cheers | 22:53 |
| ← lucasb left | 22:53 |
| ← omnireq left | 23:02 |
| ← kreyren left | 23:05 |
| → fphilipe joined | 23:08 |
| ← fphilipe left | 23:12 |
| → yonder joined | 23:19 |
| ← cfoch left | 23:23 |
| ← n3wborn left | 23:23 |
| ← Yossi left | 23:25 |
| ← ericfreese left | 23:28 |
| → Yossi joined | 23:30 |
| → omnireq joined | 23:37 |
| ← fahadash left | 23:39 |
| ← jamiejackson left | 23:40 |
| ← cdown left | 23:40 |
| → blackmesa joined | 23:40 |
| ← blackmesa1 left | 23:42 |
| ← nuala left | 23:42 |
| → ferdna joined | 23:42 |
| ← xcm left | 23:45 |
| → xcm joined | 23:45 |
| ← thiago left | 23:50 |
| ← g00s left | 23:54 |
| ← rsrx left | 23:56 |
| → adder` joined | 23:58 |
| → cdown joined | 23:59 |