| 2023-08-17 |
| → ThorMojito joined | 00:00 |
| ← stats4647 left | 00:00 |
| ← causa_sui left | 00:03 |
| ← mz` left | 00:05 |
| → mz` joined | 00:06 |
| ← eqw left | 00:12 |
| → wonko-the-sane joined | 00:13 |
| ← w4 left | 00:14 |
| ← dijksterhuis left | 00:14 |
| → dijksterhuis joined | 00:15 |
| → abubakarsadiq joined | 00:15 |
| → TheDcoder joined | 00:15 |
| → _sa0sin_ joined | 00:16 |
|
TheDcoder
| Hi, I'm serving a repo with the dumb HTTP protocol, the `HEAD` points to the `testing` branch but when I use `git clone` the `master` branch is checked out by default, why is this? | 00:16 |
|
| How do I set the "default branch" in the dumb protocol? | 00:16 |
| → eqw joined | 00:18 |
| ← sa0 left | 00:19 |
| ← ursa left | 00:19 |
|
TheDcoder
| Nevermind, turns out I can't run the post update hook from the bare repository :P | 00:19 |
|
| It started working after I ran it manually from the tree | 00:20 |
| ← omero[naldvras] left | 00:24 |
| → konsolebox joined | 00:25 |
| → w4 joined | 00:26 |
| ← mz` left | 00:29 |
| ← dijksterhuis left | 00:30 |
| ← Noisytoot left | 00:32 |
| → countach202020 joined | 00:36 |
| ← guru_de left | 00:38 |
| ← bn_work left | 00:41 |
| → guru_de joined | 00:42 |
| ← ThorMojito left | 00:44 |
| → Noisytoot joined | 00:49 |
| ← vdamewood left | 00:49 |
| ← Noisytoot left | 00:52 |
| → diod joined | 00:52 |
| → Noisytoot joined | 00:56 |
| → ThorMojito joined | 00:59 |
| → mz` joined | 01:02 |
| ← mz` left | 01:14 |
| → mz` joined | 01:18 |
| → nate2 joined | 01:22 |
| ← hamedariyo left | 01:25 |
| → hamedariyo joined | 01:26 |
| ← nate2 left | 01:27 |
| ← Noisytoot left | 01:27 |
| ← hamedariyo left | 01:27 |
| → Noisytoot joined | 01:28 |
| ← diod left | 01:28 |
| ← navirc left | 01:30 |
| ← raffaele left | 01:41 |
| → raffaele joined | 01:41 |
| → vdamewood joined | 01:59 |
| ← forgotmynick left | 02:04 |
| ← R2robot left | 02:15 |
| → nate2 joined | 02:16 |
| ← cyberpear left | 02:25 |
| → Gary_Sinise joined | 02:35 |
| → gsi joined | 02:36 |
| ← gsi_ left | 02:40 |
| ← FinnElija left | 02:46 |
| → FinnElija joined | 02:49 |
| → bywaterloo joined | 02:52 |
| → rageshkrishna joined | 02:54 |
| → diod joined | 02:56 |
| → R2robot joined | 02:57 |
| ← Ragnor left | 02:58 |
| ← reset left | 02:59 |
| → Ragnor joined | 03:00 |
| → justinf210 joined | 03:10 |
| ← ThorMojito left | 03:11 |
| ← bloody left | 03:13 |
| → rustyshackleford joined | 03:14 |
| ← FinnElija left | 03:16 |
| → FinnElija joined | 03:17 |
| → ThorMojito joined | 03:17 |
| ← raffaele left | 03:18 |
| → raffaele joined | 03:18 |
| ← nate2 left | 03:19 |
| ← justinf210 left | 03:22 |
| ← diod left | 03:33 |
| → stolen joined | 03:33 |
| → bluesm joined | 03:37 |
| ← Valeria22 left | 03:42 |
| ← ThorMojito left | 03:48 |
| → diod joined | 03:50 |
| ← vdamewood left | 03:50 |
| ← defjam left | 03:51 |
| → duxsco joined | 03:51 |
| → defjam joined | 03:58 |
| ← wonko-the-sane left | 03:59 |
| ← yoyofreeman left | 04:01 |
| → yoyofreeman joined | 04:02 |
| ← osse left | 04:02 |
| → EvgenyK_ joined | 04:04 |
| ← Inline left | 04:05 |
| ← EvgenyK_ left | 04:09 |
| ← defjam left | 04:12 |
| → EvgenyK_ joined | 04:12 |
| ← EvgenyK_ left | 04:17 |
| ← diod left | 04:18 |
| → catlemon joined | 04:19 |
| → osse joined | 04:20 |
| ← abubakarsadiq left | 04:22 |
| ← catlemon left | 04:24 |
| → EvgenyK_ joined | 04:25 |
| ← Gary_Sinise left | 04:28 |
| → srinidhi joined | 04:34 |
| ← osse left | 04:35 |
| → defjam joined | 04:36 |
| → diod joined | 04:36 |
| → jmd joined | 04:37 |
| → YuGiOhJCJ joined | 04:40 |
| ← countach202020 left | 04:42 |
| ← EvgenyK_ left | 04:43 |
| ← srinidhi left | 04:43 |
| → EvgenyK_ joined | 04:45 |
| ← EvgenyK_ left | 04:50 |
| → gep joined | 04:51 |
| ← duxsco left | 04:54 |
| ← bywaterloo left | 04:55 |
| → EvgenyK_ joined | 04:55 |
| ← larryv left | 04:58 |
| ← konsolebox left | 05:02 |
| → osse joined | 05:03 |
| ← guru_de left | 05:03 |
| ← EvgenyK_ left | 05:03 |
| ← hbautista_ left | 05:12 |
| → nate2 joined | 05:15 |
| ← nate2 left | 05:20 |
| → EvgenyK_ joined | 05:25 |
| → bgs joined | 05:27 |
| → dlani_ joined | 05:28 |
| ← dlani_ left | 05:32 |
| ← jmd left | 05:32 |
| ← diod left | 05:34 |
| ← thiago left | 05:34 |
| → mrdlani joined | 05:35 |
| ← EvgenyK_ left | 05:35 |
| ← kjartan left | 05:36 |
| ← osse left | 05:37 |
| → osse joined | 05:41 |
| → kjartan joined | 05:41 |
| → valdemaras joined | 05:47 |
| ← bluesm left | 05:47 |
| ← leftyfb left | 05:48 |
| → leftyfb joined | 05:52 |
| → Chaser joined | 05:54 |
| → c0dehu1k joined | 05:54 |
| → jmd joined | 05:56 |
| ← YuGiOhJCJ left | 05:59 |
| → stats4647 joined | 06:01 |
| ← gast0n left | 06:07 |
| ← stats4647 left | 06:07 |
| → multi_io joined | 06:14 |
| → rfuentess joined | 06:15 |
| ← krumelmonster left | 06:17 |
| ← multi_io left | 06:20 |
| → Shinzon9 joined | 06:20 |
| ← c0dehu1k left | 06:24 |
| → konsolebox joined | 06:24 |
| → igemnace joined | 06:25 |
| ← osse left | 06:25 |
| → osse joined | 06:27 |
| → krumelmonster joined | 06:29 |
| ← valdemaras left | 06:33 |
| → carl-- joined | 06:35 |
| → theoceaniscool joined | 06:38 |
| → carl--- joined | 06:39 |
| → multi_io joined | 06:39 |
| → srinidhi joined | 06:40 |
| ← carl-- left | 06:41 |
| ← stolen left | 06:42 |
| ← dsrt^ left | 06:44 |
| → otisolsen70 joined | 06:44 |
| → dsrt^ joined | 06:47 |
| → shokohsc51089 joined | 06:48 |
| ← w4 left | 06:49 |
| ← shokohsc5108 left | 06:49 |
| shokohsc51089 → shokohsc5108 | 06:49 |
| ← Betal left | 06:59 |
| ← osse left | 07:00 |
| → Tazy joined | 07:07 |
| ← Lord_of_Life left | 07:14 |
| ← skapata left | 07:14 |
| → mobidrop joined | 07:14 |
| → osse joined | 07:17 |
| ← otisolsen70 left | 07:22 |
| ← osse left | 07:22 |
| → CR4ER30 joined | 07:23 |
| → flom_84 joined | 07:24 |
| → osse joined | 07:24 |
| ← CR4ER30 left | 07:24 |
| ← mrdlani left | 07:24 |
| → ursa joined | 07:26 |
| → mrdlani joined | 07:26 |
| → Lord_of_Life joined | 07:30 |
| → Wuzzy joined | 07:30 |
| ← mrdlani left | 07:31 |
| ← ursa left | 07:32 |
| → node1 joined | 07:37 |
| ← flom_84 left | 07:40 |
| → coot joined | 07:41 |
| → otisolsen70 joined | 07:41 |
| ← osse left | 07:43 |
| → flom_84 joined | 07:44 |
| ← mitrokov left | 07:45 |
| → osse joined | 07:47 |
| → w4 joined | 07:48 |
| ← flom_84 left | 07:48 |
| → nyah joined | 07:48 |
| → flom_84 joined | 07:49 |
| → firewyre- joined | 07:49 |
| ← firewyre left | 07:49 |
| ← rfuentess left | 07:54 |
| → meator joined | 07:54 |
| ← flom_84 left | 07:56 |
| → mrdlani joined | 07:57 |
| ← elastic_dog left | 07:57 |
| → axacx joined | 08:02 |
| ← mrdlani left | 08:03 |
| ← node1 left | 08:05 |
| ← konsolebox left | 08:07 |
| → elastic_dog joined | 08:09 |
| → ursa joined | 08:13 |
| → konsolebox joined | 08:17 |
| → flom_84 joined | 08:24 |
| → feriman joined | 08:24 |
| ← bket left | 08:26 |
| → john_johnk joined | 08:27 |
| → bket joined | 08:29 |
| → Inline joined | 08:35 |
| → danse-nr3 joined | 08:38 |
| ← otisolsen70 left | 08:39 |
| → finn_elija joined | 08:41 |
| ← FinnElija left | 08:41 |
| finn_elija → FinnElija | 08:41 |
| → otisolsen70 joined | 08:45 |
| → catlemon joined | 08:46 |
|
catlemon
| Thursday and new BSD Now: https://www.bsdnow.tv/520 | 08:47 |
| ← ackyshake left | 08:48 |
| ← konsolebox left | 08:49 |
| → gas51627 joined | 08:49 |
| ← Shinzon9 left | 08:50 |
| ← TheCatCollective left | 08:50 |
|
gas51627
| hi everyone, is it possible to reset to certain commit but except 2 root folders? | 08:51 |
| → Shinzon9 joined | 08:52 |
|
gas51627
| like there is a git project folder with say 10 folders, I want to reset everything except to to version master | 08:52 |
| ← carl--- left | 08:53 |
| ← flom_84 left | 08:53 |
| → flom_84 joined | 08:53 |
| → TheCatCollective joined | 08:54 |
| ← jmd left | 08:55 |
| ← srinidhi left | 08:56 |
| → jmd joined | 08:57 |
| ← otisolsen70 left | 08:58 |
| → valdemaras joined | 08:59 |
| ← osse left | 09:00 |
| → otisolsen70_ joined | 09:02 |
|
gas51627
| or, maybe let me start from the beginning. My branch develop went forward by, say 50 commits in different folders. Now I want to make a release from it's initial state + changes done in two folders. How would I go about it? | 09:04 |
|
jmd
| gas51627: If I was going from A to B, then I wouldn't start from A | 09:04 |
|
gas51627
| jmd how do you mean? | 09:05 |
|
grawity
| I guess I'd create a new branch off the initial state, then either `git checkout` the two specific folders from develop (loses commit history) and commit them as "Import the specific things from develop" --- or do some fancy git-merge to keep the history | 09:05 |
|
jmd
| Well if you didn't mean to release changes in certain directories why did you put those in the same branch? | 09:05 |
|
gas51627
| jmd because we suddenly found an issue and now want to make a smaller release that would contain only configuration files changes (which are in that directories), but not code changes | 09:06 |
|
| not any other changes | 09:06 |
| ← theobjectivedad left | 09:07 |
|
grawity
| yeah, definitely sounds like "branch off the previous release, then import the two folders" | 09:07 |
|
jmd
| Well then like grawity says, perhaps the best idea is to create a new branch for your release and remove those commits (or parts of commits) which you don't wish to release. | 09:07 |
|
grawity
| I didn't say anything about removing commits | 09:08 |
|
jmd
| ... and next time try to think ahead ... | 09:08 |
| ← meator left | 09:08 |
|
grawity
| but I guess that's another option | 09:08 |
| → theobjectivedad joined | 09:09 |
|
gas51627
| ok, so say I go with the obption "branch off previous release, then add changes for those folders". I switched back to previous release, created a branch from it, | 09:10 |
|
| now what should I do? | 09:10 |
| ← Spawns_Carpeting left | 09:11 |
| → flom__84__ joined | 09:12 |
|
jmd
| gas51627: Cherry pick the changes you want. | 09:12 |
|
gas51627
| I don't know all the changes | 09:13 |
|
| how can I checkout 2 specific folders from develop? | 09:13 |
|
jmd
| git log | 09:13 |
| ← flom_84 left | 09:13 |
|
jmd
| git checkout <branch> -- ./directory | 09:13 |
| ← flom__84__ left | 09:13 |
|
jmd
| What is a "folder" anyway? | 09:13 |
| → flom__84__ joined | 09:14 |
|
gas51627
| a folder in a root of the project | 09:14 |
| ← chexum left | 09:14 |
| ← flom__84__ left | 09:15 |
| → flom__84__ joined | 09:15 |
| → chexum joined | 09:15 |
|
jmd
| gas51627: Can you point me to anywhere in the git manual where the word "folder" is mentioned? | 09:16 |
| → nate2 joined | 09:16 |
| ← flom__84__ left | 09:16 |
|
gas51627
| how does it call those things? | 09:17 |
|
| directory | 09:17 |
| → flom__84__ joined | 09:17 |
|
jmd
| Oh right. | 09:17 |
| → osse joined | 09:17 |
|
jmd
| If you mean a directory, it's best to say "directory". | 09:17 |
|
| Unless of course you're talking German then you can say Verzeichnis. | 09:18 |
| → Spawns_Carpeting joined | 09:18 |
| → mrdlani joined | 09:19 |
| ← jmd left | 09:19 |
| ← nate2 left | 09:21 |
| → jmd joined | 09:21 |
| → no_gravity joined | 09:22 |
|
no_gravity
| Is it possible to retroactively combine a bunch of commits into a branch, so the repo is more structured? | 09:22 |
| ← flom__84__ left | 09:23 |
| → flom__84__ joined | 09:23 |
| ← mrdlani left | 09:23 |
|
jmd
| no_gravity: You can cherry-pick commits from one branch to another. Whether it makes it more structured is a matter of opinion and depends on a lot of things. | 09:24 |
|
| You also might, or might not have to deal with conflicts. | 09:24 |
|
no_gravity
| jmd: I think this is a misunderstanding. Let me try to explain ... | 09:24 |
|
| Say I have only the master branch. And it has the commits 1,2,3,4,5,6. Can I combine commits 3,4,5 into a branch? | 09:25 |
|
| Not a new branch. I want the repo to look as if they were in a branch in the past. | 09:25 |
|
jmd
| A branch is merely a name for a particular ref | 09:26 |
| ← igemnace left | 09:26 |
|
no_gravity
| Hmm.. When I do "git log --graph --all --decorate" it shows me which commits were in a branch in the past. | 09:26 |
|
jmd
| If there were in the branch in the past, then they are in the branch now. | 09:27 |
|
| You cannot delete commits (unless you reset and then push with --force) | 09:28 |
|
no_gravity
| I don't want to delete commits | 09:28 |
|
| Although yes, I want to rewrite history. | 09:28 |
| ← mane left | 09:28 |
|
no_gravity
| I want to mark commits 3,4,5 as "have been in branch FeatureX" | 09:28 |
|
jmd
| git branch FeatureX | 09:29 |
|
| git checkout FeatureX | 09:29 |
| → mane joined | 09:29 |
|
no_gravity
| I want that for the past | 09:29 |
|
| HEAD is at commit 6 | 09:29 |
| → carl--- joined | 09:29 |
|
no_gravity
| And I want to mark commits 3,4,5 as "FeatureX". | 09:29 |
|
jmd
| okay so you could do git reset --hard <commit 5> | 09:30 |
|
| But git has no concept of past, future, present | 09:30 |
|
no_gravity
| I have | 09:30 |
|
jmd
| except for the timestamps of commits, but they are often faked. | 09:30 |
|
| Git only knows the order in which commits have been made. | 09:31 |
|
| It's one big tree. | 09:31 |
|
no_gravity
| Hmm... I have the feeling we are talking past each other. | 09:33 |
| → node1 joined | 09:37 |
| → igemnace joined | 09:42 |
| ← catlemon left | 09:43 |
| ← rustyshackleford left | 09:54 |
| ← otisolsen70_ left | 09:57 |
| ← flom__84__ left | 09:58 |
| → stats4647 joined | 10:05 |
| ← no_gravity left | 10:09 |
| ← stats4647 left | 10:12 |
|
gas51627
| grawity: jmd: thanks a lot | 10:14 |
| → bluesm joined | 10:21 |
| ← feriman left | 10:24 |
| ← node1 left | 10:28 |
| → epicout joined | 10:29 |
| ← epicout left | 10:29 |
| → epicout joined | 10:29 |
| → epicout_ joined | 10:33 |
| ← epicout left | 10:37 |
| → dijksterhuis joined | 10:40 |
| ← valdemaras left | 10:42 |
| ← RiFo left | 10:43 |
| → RiFo joined | 10:45 |
| ← john_johnk left | 10:46 |
| → shokohsc51088 joined | 10:50 |
| ← shokohsc5108 left | 10:51 |
| shokohsc51088 → shokohsc5108 | 10:51 |
| ← Tazy left | 10:52 |
| ← gep left | 10:53 |
| ← jmd left | 10:58 |
| → ThorMojito joined | 10:58 |
| → jmd joined | 10:58 |
| → jijibao joined | 10:58 |
| → KnoP joined | 11:01 |
| ← mane left | 11:01 |
| ← jfsimon1981 left | 11:01 |
| → jfsimon1981_b joined | 11:01 |
| ← ash_m left | 11:02 |
| ← vishal left | 11:03 |
| → ash_m joined | 11:04 |
| → mane joined | 11:05 |
| → vishal joined | 11:05 |
| ← epicout_ left | 11:05 |
| → jonosterman joined | 11:05 |
| ← axacx left | 11:08 |
| → konsolebox joined | 11:09 |
| ← ThorMojito left | 11:09 |
| → clime joined | 11:12 |
| ← jfsimon1981_b left | 11:14 |
| → jfsimon1981_b joined | 11:14 |
| ← KnoP left | 11:14 |
| → Tazy joined | 11:16 |
| ← konsolebox left | 11:23 |
| → konsolebox joined | 11:23 |
| → feriman joined | 11:28 |
| → mrdlani joined | 11:29 |
| ← de-facto left | 11:30 |
| → de-facto joined | 11:30 |
| → ThorMojito joined | 11:34 |
| ← mrdlani left | 11:35 |
|
nona
| is there any difference at all between cherry-picking 3 commits, one after the other versus using abcdef1..[.]abcdef2 notation? | 11:43 |
| ← ThorMojito left | 11:48 |
| → danse-nr3_ joined | 11:52 |
| ← danse-nr3 left | 11:54 |
| → f_ joined | 11:57 |
| ← bgs left | 12:02 |
| ← danse-nr3_ left | 12:04 |
| ← mane left | 12:05 |
| → aspirin joined | 12:06 |
| → danse-nr3_ joined | 12:07 |
| → reset joined | 12:08 |
| → mane joined | 12:11 |
| → john_johnk joined | 12:12 |
| ← gryffus left | 12:26 |
| → ThorMojito joined | 12:26 |
| → flom__84__ joined | 12:29 |
| → mrdlani joined | 12:30 |
| ← bluesm left | 12:32 |
| ← troyt left | 12:35 |
| → troyt joined | 12:37 |
| ← mrdlani left | 12:37 |
| → mrdlani joined | 12:38 |
| → KaitoDaumoto joined | 12:41 |
| → epicout joined | 12:56 |
| ← epicout left | 12:56 |
| → epicout joined | 12:56 |
|
Th|ef
| hello gitmasters <3 | 12:56 |
|
| how can i be sure what this wants to pull? As I fear I have the perfect code locally, and don't wish to risk a permanent overwrite! :) | 12:56 |
|
| Thanks in advance re: https://pastebin.com/p9Pfs3ZH | 12:57 |
| → lucasta joined | 13:00 |
| ← jmd left | 13:03 |
| → node1 joined | 13:06 |
| node1 → ruckus | 13:06 |
| → bloody joined | 13:09 |
| ← theoceaniscool left | 13:13 |
| ← ThorMojito left | 13:16 |
| → nate2 joined | 13:18 |
| ← flom__84__ left | 13:21 |
|
igemnace
| Th|ef: git log [--oneline] @..@{u} | 13:21 |
| → jmd joined | 13:22 |
| ← nate2 left | 13:23 |
|
igemnace
| nona: as long as the order is the same, they should be the same. mind the difference between .. and ... | 13:23 |
| → flom84 joined | 13:29 |
| ← flom84 left | 13:30 |
| ← yoyofreeman left | 13:31 |
| ← mrdlani left | 13:35 |
| → flom84 joined | 13:35 |
| → mrdlani joined | 13:35 |
|
Th|ef
| igemnace, fatal: @..@{u}: no such path in the working tree. | 13:43 |
|
igemnace
| oh, did you type the command exactly? i had meant for [--oneline] to be interpreted as an optional flag | 13:43 |
|
Th|ef
| hm | 13:43 |
| ← mrdlani left | 13:44 |
|
igemnace
| git log @..@{u} OR git log --oneline @..@{u} | 13:44 |
|
Th|ef
| oh lol | 13:44 |
|
| sorry | 13:44 |
| ← jijibao left | 13:44 |
|
Th|ef
| thank you :) | 13:44 |
| → fuzzybear86 joined | 13:44 |
|
Th|ef
| igemnace, but what does this do ? | 13:44 |
| ← mobidrop left | 13:45 |
|
igemnace
| @ is shorthand for HEAD (where you are currently). @{u} is shorthand for HEAD@{upstream}, which is the upstream for your branch. @..@{u} means (in simple, potentially reductive terms) the commits that your upstream has that your local doesn't have | 13:45 |
| → odoood joined | 13:46 |
|
Th|ef
| ahhhh ! :) | 13:46 |
|
igemnace
| the full man text is in git help revisions | 13:46 |
|
Th|ef
| gotcha | 13:46 |
|
| no idea about it yet but ont hew ay as it were | 13:46 |
|
| https://pastebin.com/ZHcCBtH1 | 13:46 |
|
jast
| man gitrevisions btw :) | 13:47 |
|
gitinfo
| the gitrevisions manpage is available at https://gitirc.eu/gitrevisions.html | 13:47 |
|
igemnace
| jast: nice! ty | 13:47 |
|
jast
| @..@{u} is way too much to type! try: ..@{u} | 13:47 |
|
igemnace
| Th|ef: i didn't catch that last sentence, but that pastebin output is the commit that you haven't pulled | 13:47 |
| ← flom84 left | 13:47 |
| → flom84 joined | 13:47 |
|
Th|ef
| jast, cool man | 13:48 |
|
igemnace
| nice | 13:48 |
|
Th|ef
| igemnace, okay well im not going to want that pulled down into my local source tree as my local source is perfect! If anything, I want to only push the current local source ? | 13:48 |
| ← flom84 left | 13:49 |
| → flom84 joined | 13:49 |
|
igemnace
| hmm does that mean you don't want it to appear on the remote as well? that's a !rewrite if so | 13:49 |
|
gitinfo
| Rewriting public history is not recommended. Everyone who has pulled the old history will have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push --force-with-lease <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum | 13:49 |
| → countach202020 joined | 13:49 |
| → navirc joined | 13:50 |
|
igemnace
| oh, "it" being the commit you don't want | 13:50 |
|
jast
| force pushing is an option but you have to be very sure that that's actually what you want, particularly if other people are using the upstream branch too | 13:50 |
|
Th|ef
| excellent | 13:51 |
|
| this is a base source tree and strictly only for my local, so i build personal apps atm - and noone else is collaborating :) | 13:51 |
|
jast
| because if other people are involved and you force push, chances are they'll either end up bringing that destroyed commit back in anyway, or other fun times | 13:51 |
|
| right | 13:51 |
|
Th|ef
| --force it is I guess... I just wanted to know if that was the safest way and the correct way really to do so :) | 13:51 |
|
jast
| did you do something that you remember that would have replaced, rewritten or removed a commit locally? | 13:51 |
|
| because then (and because nobody else could interfere) --force is a straightforward option | 13:52 |
|
Th|ef
| would an amend count ? | 13:52 |
|
jast
| yes! | 13:52 |
|
| if you amend something that you previously pushed, you end up with a divergence | 13:52 |
|
Th|ef
| my bad! getting used to this and cli+vscode lol | 13:52 |
|
jast
| the remote has the old commit, you have the new commit | 13:52 |
|
Th|ef
| i see! | 13:52 |
|
| :D | 13:52 |
|
| thanks jast! :D | 13:52 |
| → rfuentess joined | 13:52 |
|
Th|ef
| (cool discussion)! | 13:52 |
|
jast
| amend is one of the things that we call "history rewriting" (along with rebase) | 13:52 |
|
Th|ef
| yah i see | 13:52 |
|
jast
| and it gets you these kinds of results | 13:52 |
|
Th|ef
| i dont watnto rebase but i can see how that ties in now | 13:52 |
|
igemnace
| amend is not necessarily a good or bad thing, just learn the context and apply as necessary | 13:52 |
|
Th|ef
| ahuh, okay! | 13:53 |
|
jast
| if you rewrite history that doesn't exist remotely, it's always absolutely fine to do | 13:53 |
|
Th|ef
| igemnace, indeed, very well spoken :) | 13:53 |
|
jast
| if you rewrite stuff that's already shared with others, extreme care is advised :) | 13:53 |
|
| and just so you know, even if you had pulled, it would still be possible to recover from that | 13:54 |
|
Th|ef
| jast, lucky as! | 13:54 |
|
| well im very glad i asked | 13:54 |
| → thiago joined | 13:54 |
|
Th|ef
| thank you for jumpingin and saving! :D | 13:54 |
|
jast
| low effort saving, my speciality :> | 13:54 |
| ← flom84 left | 14:00 |
| → flom84 joined | 14:01 |
| → abubakarsadiq joined | 14:01 |
| ← flom84 left | 14:04 |
| → flom84 joined | 14:04 |
| ← Inline left | 14:07 |
| → Inline joined | 14:10 |
| → ThorMojito joined | 14:11 |
|
Th|ef
| :D | 14:12 |
| ← flom84 left | 14:15 |
| ← danse-nr3_ left | 14:15 |
| → mobidrop joined | 14:16 |
| → causasui joined | 14:17 |
| → theoceaniscool joined | 14:17 |
|
Th|ef
| jast, while we're here this evening? How can I fully renew my github remote with a fresh push? Or do I need to create a new branch to do that? Keeping in mind that its only me on the coding front. | 14:17 |
| ← DPA left | 14:19 |
| ← ThorMojito left | 14:23 |
| → srinidhi joined | 14:24 |
| ← mobidrop left | 14:27 |
| → belsirk joined | 14:30 |
| ← rfuentess left | 14:32 |
| → danse-nr3 joined | 14:33 |
| → rfuentess joined | 14:34 |
| → axacx joined | 14:34 |
| ← JanC left | 14:34 |
| → JanC joined | 14:34 |
| → raffaele__ joined | 14:35 |
| ← countach202020 left | 14:36 |
| ← belsirk left | 14:36 |
| → c0dehu1k joined | 14:38 |
| ← raffaele left | 14:38 |
| → rafspiny joined | 14:39 |
| ← raffaele__ left | 14:40 |
| → raffaele joined | 14:41 |
| → fdan joined | 14:42 |
| ← rafspiny left | 14:44 |
| → iomari891 joined | 14:44 |
| → stolen joined | 14:50 |
| ← stenno left | 14:52 |
| ← fuzzybear86 left | 14:52 |
| → psukys joined | 14:59 |
| ← OnlineCop left | 15:00 |
| ← fdan left | 15:01 |
| → yoyofreeman joined | 15:01 |
| ← ruckus left | 15:03 |
| → DPA joined | 15:03 |
| → fuzzybear8 joined | 15:04 |
| → gast0n joined | 15:05 |
| → m4r35n357 joined | 15:08 |
| → Valeria22 joined | 15:11 |
| ← srinidhi left | 15:11 |
| ← clime left | 15:19 |
| ← fuzzybear8 left | 15:19 |
| ← theoceaniscool left | 15:20 |
| → Gary_Sinise joined | 15:21 |
| ← psukys left | 15:22 |
| → PantelicGR joined | 15:22 |
| → psukys joined | 15:23 |
| ← rfuentess left | 15:30 |
| → gh34 joined | 15:31 |
| → ThorMojito joined | 15:32 |
| ← SuperLag left | 15:32 |
| → SuperLag joined | 15:33 |
| ← rkta left | 15:33 |
| → rkta joined | 15:33 |
| ← Tazy left | 15:33 |
| ← RDMengineer left | 15:34 |
|
nona
| igemnace: thank you! yes, re `..` vs `...`, that's a sneaky one :P | 15:35 |
| ← yoyofreeman left | 15:36 |
| ← peeps[work] left | 15:40 |
| ← FH_thecat left | 15:40 |
| → peeps[work] joined | 15:42 |
| ← ThorMojito left | 15:43 |
| → shinonome joined | 15:44 |
| ← subopt left | 15:45 |
| → Cirdo joined | 15:47 |
| ← peeps[work] left | 15:49 |
| → peeps[work] joined | 15:50 |
| ← lucasta left | 15:54 |
| → RDMengineer joined | 15:54 |
| → lucasta joined | 15:54 |
| → [RiFo] joined | 15:57 |
| ← RiFo left | 16:00 |
| → Rashad joined | 16:03 |
| ← odoood left | 16:04 |
| ← Cirdo left | 16:06 |
| → Cirdo joined | 16:06 |
| ← nvmd left | 16:07 |
| ← c0dehu1k left | 16:12 |
| → ThorMojito joined | 16:14 |
| → raffaele__ joined | 16:19 |
| ← raffaele left | 16:22 |
| ← ThorMojito left | 16:27 |
| ← Cirdo left | 16:27 |
| ← Ragnor left | 16:30 |
| ← Inline left | 16:33 |
| ← RDMengineer left | 16:34 |
| ← lucasta left | 16:36 |
| → Ragnor joined | 16:37 |
| → bywaterloo joined | 16:39 |
| ← abubakarsadiq left | 16:40 |
| ← konsolebox left | 16:40 |
| → Inline joined | 16:41 |
| → odoood joined | 16:42 |
| → FH_thecat joined | 16:45 |
| → c0dehu1k joined | 16:47 |
| → RDMengineer joined | 16:50 |
| ← danse-nr3 left | 16:50 |
| Jck_true → WinterFlower | 16:52 |
| WinterFlower → Jck_true | 16:52 |
| → humanface joined | 16:53 |
| → crabbedhaloablut joined | 16:53 |
| → stats4647 joined | 16:54 |
| ← agd851201 left | 16:59 |
| → shokohsc51085 joined | 17:01 |
| → delay joined | 17:02 |
| ← shokohsc5108 left | 17:03 |
| shokohsc51085 → shokohsc5108 | 17:03 |
| ← jmd left | 17:03 |
| ← c0dehu1k left | 17:04 |
| ← m4r35n357 left | 17:05 |
| ← causasui left | 17:05 |
| → epicout_ joined | 17:07 |
| ← delay left | 17:07 |
| → delay joined | 17:07 |
| ← epicout left | 17:11 |
| ← delay left | 17:11 |
| → agd851201 joined | 17:14 |
| → Cirdo joined | 17:17 |
| ← RDMengineer left | 17:18 |
| → nate2 joined | 17:19 |
| → Guru_DE joined | 17:20 |
| ← carl--- left | 17:21 |
| ← agd851201 left | 17:21 |
| → agd851201 joined | 17:22 |
| ← gast0n left | 17:23 |
| ← nate2 left | 17:24 |
| ← elastic_dog left | 17:26 |
| → gast0n joined | 17:26 |
| → lostlazy joined | 17:27 |
| ← Cirdo left | 17:30 |
| ← Chaser left | 17:32 |
| → rustyshackleford joined | 17:33 |
| → nvmd joined | 17:33 |
| ← stats4647 left | 17:33 |
| → RDMengineer joined | 17:34 |
| → stats4647 joined | 17:35 |
| → konsolebox joined | 17:37 |
| → elastic_dog joined | 17:38 |
| → Chaser joined | 17:38 |
| ← stats4647 left | 17:39 |
| ← axacx left | 17:40 |
| → diod joined | 17:42 |
| → codaraxis joined | 17:48 |
| → JeffH joined | 17:50 |
| ← humanface left | 17:50 |
| ← coot left | 17:51 |
| ← nvmd left | 17:53 |
| ← john_johnk left | 17:58 |
| ← JeffH left | 18:01 |
| ← mane left | 18:03 |
| ← Rashad left | 18:03 |
| → yoyofreeman joined | 18:05 |
| → larryv joined | 18:05 |
| → hamedariyo joined | 18:10 |
| ← Gary_Sinise left | 18:11 |
| → hbautista_ joined | 18:16 |
| → nvmd joined | 18:17 |
| → skapata joined | 18:19 |
| ← reprazent left | 18:19 |
| → reprazent_ joined | 18:20 |
| reprazent_ → reprazent | 18:20 |
| → shortcircuit joined | 18:20 |
| ← lostlazy left | 18:21 |
| → stats4647 joined | 18:25 |
| → ThorMojito joined | 18:26 |
| ← kjartan left | 18:26 |
| ← gblfxt left | 18:26 |
| ← hamedariyo left | 18:27 |
| → hamedariyo joined | 18:27 |
| ← stats4647 left | 18:29 |
| ← hamedariyo left | 18:30 |
| → hamedariyo joined | 18:31 |
| ← GNUmoon left | 18:31 |
| → zer0bitz_ joined | 18:32 |
| → kjartan joined | 18:33 |
| → GNUmoon joined | 18:34 |
| ← iomari891 left | 18:34 |
| ← zer0bitz left | 18:34 |
| → causasui joined | 18:36 |
| ← odoood left | 18:43 |
| ← Tabmow left | 18:46 |
| → john_johnk joined | 18:46 |
| → Tabmow joined | 18:49 |
| ← diod left | 18:51 |
| → flom84 joined | 18:51 |
| → abubakarsadiq joined | 18:54 |
| ← nvmd left | 18:58 |
| ← overseasons left | 18:59 |
| ← Chaser left | 18:59 |
| ← konsolebox left | 19:00 |
| → nvmd joined | 19:00 |
| → coot joined | 19:01 |
| → Chaser joined | 19:02 |
| ← Chaser left | 19:02 |
| ← FTX514 left | 19:02 |
| → Chaser joined | 19:03 |
| → stats4647 joined | 19:04 |
| → FTX514 joined | 19:04 |
| ← FTX514 left | 19:07 |
| ← stats4647 left | 19:08 |
| → overseasons joined | 19:15 |
| ← overseasons left | 19:15 |
| → overseasons joined | 19:15 |
| ← bywaterloo left | 19:18 |
| ← shinonome left | 19:19 |
| ← overseasons left | 19:20 |
| ← hbautista_ left | 19:25 |
| ← gas51627 left | 19:29 |
| ← jacobk left | 19:31 |
| → overseasons joined | 19:32 |
| ← overseasons left | 19:32 |
| → overseasons joined | 19:32 |
| ← flom84 left | 19:37 |
| → bywaterloo joined | 19:37 |
| ← overseasons left | 19:38 |
| ← jonosterman left | 19:39 |
| → odoood joined | 19:43 |
| ← f_ left | 19:43 |
| ← bf_ left | 19:47 |
| → overseasons joined | 19:49 |
| ← overseasons left | 19:49 |
| → overseasons joined | 19:49 |
| ← Chaser left | 19:51 |
| ← john_johnk left | 19:52 |
| ← kjartan left | 19:53 |
| ← feriman left | 19:54 |
| ← overseasons left | 19:54 |
| → overseasons joined | 20:00 |
| ← overseasons left | 20:00 |
| → overseasons joined | 20:00 |
| ← FinnElija left | 20:01 |
| → FinnElija joined | 20:02 |
| ← dmc left | 20:04 |
| → Betal joined | 20:06 |
| → dmc joined | 20:06 |
| ← crabbedhaloablut left | 20:10 |
| → cdown joined | 20:11 |
| ← Betal left | 20:12 |
| → Betal joined | 20:12 |
| → daniel3 joined | 20:14 |
| → Siecje joined | 20:14 |
|
Siecje
| I did git mv and then changed the file. But I wanted to split my work up into two commits so I restored the git mv. Now when I add both files git doesn't automatically treat it as a move because too much of the file has changed. | 20:15 |
|
| How can I force the git mv? | 20:17 |
| → cdown_ joined | 20:19 |
| ← stolen left | 20:20 |
|
j416
| Siecje: rename first, then change | 20:21 |
|
| Siecje: two commits | 20:21 |
|
Siecje
| Okay I even copied the file then reverted everything then did git mv then copied back and it is not a move | 20:21 |
| ← cdown left | 20:21 |
|
Siecje
| j416: okay thanks | 20:21 |
| cdown_ → cdown | 20:22 |
|
j416
| I'm not sure what you mean by that | 20:22 |
|
Siecje
| I did mv $dest $dest2; git restore --staged; git restore ...; git mv; mv $dest2 $dest | 20:23 |
|
| And it didn't show up in git as a move | 20:23 |
|
| I have 2 other files that do show up as a move, I guess I will restore those as well for the second commit | 20:24 |
| ← ThorMojito left | 20:24 |
|
j416
| 'git mv' is a shorthand for 'mv' followed by 'git add'; it's nothing special apart from that | 20:25 |
|
| git doesn't record renames in a special way | 20:26 |
| → stats4647 joined | 20:28 |
| ← stats4647 left | 20:28 |
| → stats4647 joined | 20:29 |
| → jacobk joined | 20:30 |
| ← psukys left | 20:33 |
| ← stats4647 left | 20:34 |
|
Siecje
| I did it in two commits, but when I view the MR on GitLab it shows deleted and add. Does that mean history is lost? | 20:34 |
| → Cirdo joined | 20:38 |
|
j416
| are you able to link to the repo? | 20:38 |
|
osse
| most hosts show a PR one whole diff and then you can click around to view individual commits I think | 20:39 |
|
| delete + add sounds reasonable then | 20:40 |
|
j416
| Siecje: check the diff for each commit (git show <commit>), or if that's not enough, check out and compare the state at each commit to see that it is what you expected | 20:41 |
|
Siecje
| j416: No it's private. | 20:42 |
|
| each commit is fine | 20:42 |
| ← Cirdo left | 20:43 |
| → Cirdo joined | 20:43 |
| ← R2robot left | 20:44 |
|
j416
| gitlab's UI might not show the exact same output as git does; it might use its own differ/diff configuration | 20:44 |
|
osse
| then it's fine | 20:44 |
|
| there is basically only one way to record this in git's history anyway | 20:45 |
| → R2robot joined | 20:45 |
| ← dmc left | 20:50 |
| → dmc joined | 20:52 |
| ← rossome left | 20:53 |
| → vysn joined | 20:53 |
| ← makara left | 20:59 |
| ← makara1 left | 20:59 |
| ← Inline left | 21:01 |
| ← jacobk left | 21:01 |
| ← aspirin left | 21:01 |
| → diod joined | 21:02 |
| ← Dotz0cat left | 21:03 |
| → ThorMojito joined | 21:05 |
| → Dotz0cat joined | 21:05 |
| → mven2 joined | 21:05 |
| ← mven left | 21:09 |
| mven2 → mven | 21:09 |
| → makara joined | 21:11 |
| → makara1 joined | 21:12 |
| ← abubakarsadiq left | 21:16 |
| ← coot left | 21:16 |
| ← llh left | 21:20 |
| → nate2 joined | 21:21 |
| → epicout joined | 21:22 |
| ← epicout left | 21:22 |
| → epicout joined | 21:22 |
| ← epicout_ left | 21:25 |
| ← nate2 left | 21:25 |
| ← gh34 left | 21:26 |
| → humanface joined | 21:26 |
| → delay joined | 21:26 |
| ← delay left | 21:26 |
| ← ThorMojito left | 21:27 |
| ← diod left | 21:28 |
| ← Cirdo left | 21:30 |
| → chandash joined | 21:31 |
| → Cirdo joined | 21:31 |
| ← daniel3 left | 21:35 |
| ← Cirdo left | 21:35 |
| ← Dotz0cat left | 21:36 |
| → Dotz0cat joined | 21:39 |
| → Cirdo joined | 21:39 |
| → Rashad joined | 21:44 |
| → tirnanog joined | 21:55 |
| ← Siecje left | 21:59 |
| ← bywaterloo left | 21:59 |
| → szkl joined | 22:03 |
| ← Cirdo left | 22:07 |
| ← vysn left | 22:10 |
| → cliluw joined | 22:14 |
| ← igemnace left | 22:18 |
| → diod joined | 22:19 |
| ← diod left | 22:19 |
| → Techcable joined | 22:27 |
| → ThorMojito joined | 22:30 |
| → stats4647 joined | 22:30 |
| → Dotz0cat_ joined | 22:31 |
| ← Dotz0cat left | 22:31 |
| ← overseasons left | 22:33 |
| Dotz0cat_ → Dotz0cat | 22:33 |
| ← causasui left | 22:41 |
| ← nyah left | 22:42 |
| ← stats4647 left | 22:43 |
| → ThorMojito1 joined | 22:43 |
| ← ThorMojito left | 22:46 |
| → shinonome joined | 22:49 |
| → overseasons joined | 22:50 |
| ← overseasons left | 22:50 |
| → overseasons joined | 22:50 |
| → shokohsc51080 joined | 22:50 |
| ← shokohsc5108 left | 22:52 |
| shokohsc51080 → shokohsc5108 | 22:52 |
| ← overseasons left | 22:54 |
| → ferdna joined | 23:00 |
| ← yuljk left | 23:06 |
| ← Noisytoot left | 23:06 |
| → yuljk joined | 23:06 |
| → diod joined | 23:08 |
| ← humanface left | 23:10 |
| → Noisytoot joined | 23:10 |
| ← Lord_of_Life left | 23:14 |
| → Lord_of_Life joined | 23:15 |
| ← odoood left | 23:15 |
| → riposte joined | 23:18 |
| ← tomhg left | 23:18 |
| ← ThorMojito1 left | 23:19 |
| ← chandash left | 23:22 |
| → overseasons joined | 23:23 |
| ← overseasons left | 23:23 |
| → overseasons joined | 23:23 |
| ← navirc left | 23:24 |
| ← Lord_of_Life left | 23:27 |
| → Lord_of_Life joined | 23:27 |
| ← overseasons left | 23:27 |
| ← ferdna left | 23:28 |
| → tomhg joined | 23:35 |
| ← Lord_of_Life left | 23:37 |
| ← riposte left | 23:37 |
| → riposte joined | 23:38 |
| → Lord_of_Life joined | 23:39 |
| → overseasons joined | 23:39 |
| ← overseasons left | 23:39 |
| → overseasons joined | 23:39 |
| ← Ranhir left | 23:40 |
| ← cdown left | 23:41 |
| ← overseasons left | 23:43 |
| → llh joined | 23:44 |
| ← zulutango left | 23:44 |
| → zulutango joined | 23:44 |
| → chandash joined | 23:48 |
| → ackyshake joined | 23:49 |
| ← leah2 left | 23:51 |
| ← chandash left | 23:54 |
| → leah2 joined | 23:54 |
| → overseasons joined | 23:56 |
| ← overseasons left | 23:56 |
| → overseasons joined | 23:56 |
| ← riposte left | 23:57 |
| ← Rashad left | 23:57 |
| → BUSY joined | 23:58 |
| → riposte joined | 23:58 |