| 2022-02-16 |
| → evanextreme joined | 00:00 |
| evanextreme → evanextreme[away | 00:00 |
| ← evanextreme[away left | 00:01 |
| ← feriman left | 00:01 |
| → evanextreme joined | 00:04 |
| → gast0n joined | 00:06 |
| ← DoofusCanadensis left | 00:07 |
| ← _9pfs left | 00:09 |
| → _9pfs joined | 00:09 |
| → duxsco joined | 00:10 |
| ← Null_A left | 00:11 |
| ← duxsco left | 00:12 |
| ← evanextreme left | 00:12 |
| → evanextreme joined | 00:14 |
| → sudomann joined | 00:20 |
| ← Betal left | 00:21 |
| → ferdna joined | 00:22 |
| → Null_A joined | 00:27 |
| → duxsco joined | 00:29 |
| ← duxsco left | 00:31 |
| ← Null_A left | 00:32 |
| _9pfs → hello-smile48 | 00:33 |
| hello-smile48 → _9pfs | 00:33 |
| → duxsco joined | 00:33 |
| → wonty joined | 00:35 |
| → Tangent-Man joined | 00:36 |
| ← worky left | 00:37 |
| evanextreme → evanextreme[away | 00:38 |
| ← evanextreme[away left | 00:38 |
| → mexen joined | 00:42 |
| → kaiseisei joined | 00:43 |
| ← szkl left | 00:48 |
| ← Shashin left | 00:52 |
| → Shashin joined | 00:54 |
| → donofrio joined | 00:55 |
| → tyson2 joined | 00:55 |
| → va5c0 joined | 00:55 |
| ← Kohe left | 00:59 |
| ← LuxuryMode left | 00:59 |
| → Null_A joined | 01:02 |
| → szkl joined | 01:04 |
| ← Null_A left | 01:06 |
| ← va5c0 left | 01:08 |
| → crashrep joined | 01:15 |
| → worky joined | 01:18 |
| → thebombzen joined | 01:20 |
| ← wonty left | 01:21 |
| ← kaiseisei left | 01:24 |
| → kaiseisei joined | 01:25 |
| ← _9pfs left | 01:27 |
| → _9pfs joined | 01:27 |
| ← pyevery__ left | 01:32 |
| → chenqisu1 joined | 01:35 |
| → Null_A joined | 01:36 |
| ← very_sneaky left | 01:36 |
| ← geowiesnot left | 01:37 |
| ← XV9 left | 01:37 |
| → very_sneaky joined | 01:37 |
| ← Null_A left | 01:40 |
| ← pretty_dumm_guy left | 01:42 |
| → Betal joined | 01:43 |
| → skapate joined | 01:47 |
| ← skapate left | 01:47 |
| → skapate joined | 01:47 |
| ← skapata left | 01:48 |
| → cousteau_ joined | 01:50 |
| → rgrinberg joined | 01:51 |
| ← ChmEarl left | 01:53 |
| ← causa_sui left | 02:00 |
| → vysn joined | 02:00 |
| ← donofrio left | 02:01 |
| ← Shashin left | 02:02 |
| ← nyah left | 02:06 |
| → causasui joined | 02:07 |
| → jinsun__ joined | 02:09 |
| ← xx left | 02:09 |
| ← Nintenuendo left | 02:09 |
| ← emf left | 02:09 |
| → Nintenuendo joined | 02:11 |
| ← Nintenuendo left | 02:11 |
| → Nintenuendo joined | 02:11 |
| ← jinsun left | 02:11 |
| ← x_kuru left | 02:14 |
| ← cousteau_ left | 02:15 |
| → lukedashjr joined | 02:20 |
| ← luke-jr left | 02:21 |
| → xx joined | 02:21 |
| ← kaiseisei left | 02:22 |
| lukedashjr → luke-jr | 02:22 |
| → kaiseisei joined | 02:22 |
| ← Yruama left | 02:24 |
| ← dviola left | 02:34 |
| ← kaiseisei left | 02:35 |
| ← bindu left | 02:35 |
| → bindu_ joined | 02:35 |
| ← Crispy left | 02:36 |
| → kaiseisei joined | 02:36 |
| bindu_ → bindu | 02:37 |
| ← thiago left | 02:39 |
| ← Sulky left | 02:39 |
| → durham joined | 02:40 |
| → hbautista joined | 02:40 |
| ← kaiseisei left | 02:41 |
| → kaiseisei1 joined | 02:41 |
| kaiseisei1 → kaiseisei | 02:44 |
| ← chexum left | 02:45 |
| ← durham left | 02:47 |
| ← Gustavo6046 left | 02:47 |
| → Crispy joined | 02:49 |
| → a6a45081-2b83 joined | 02:50 |
| → ycon joined | 02:53 |
|
ycon
| Hi, so I'd like to revert to an old commit and then apply (progressively) the latest commit on top | 02:54 |
|
| How can I do that? I'm on the "good" commit now with `git checkout commitHash` | 02:54 |
| ← a6a45081-2b83 left | 02:55 |
| → f33f046c-a02e joined | 02:55 |
|
Betal
| ycon: if it is all on your branch, you can do an interactive rebase | 02:56 |
| → odoood joined | 02:56 |
|
ycon
| Betal: I tried that, using `git rebase -i main` (main is the name of my branch) | 02:56 |
|
Betal
| ycon: don't it show a list of commits for you? where you can pick/remove or change order of commits? | 02:57 |
| ← adanwan left | 02:57 |
| → adanwan joined | 02:58 |
|
ycon
| Betal: that's not exactly what I want, I want to progressively decide which changes to add | 02:59 |
|
| eg `git add -p latest` | 03:00 |
| ← odoood left | 03:05 |
|
ycon
| Any ideas @Betal? | 03:09 |
| → chexum joined | 03:16 |
| ← f33f046c-a02e left | 03:17 |
|
ackyshake
| ycon: I would start on the latest commit and then git rebase -i <good_commit>~ and then select the commits to edit. | 03:17 |
|
ycon
| ackyshake:But how do I select the individual changes I want to add from the "good" commit | 03:19 |
|
ackyshake
| if you check out to the "good commit" hash, you'd have to copy and paste the commit hashes to cherry-pick and edit (using git cherry-pick --no-commit), and then perform the regular edits | 03:19 |
| → thekingofbandit joined | 03:21 |
|
ycon
| ackyshake: is there a way to 1. Checkout "good commit" 2. Apply the "latest" commit on top progressively (like doing `git add -p`) | 03:21 |
|
| ? | 03:22 |
| ← thekingofbandit left | 03:22 |
|
ackyshake
| ycon: If you have the commit of the latest hash, then yes, with git cherry-pick as I mentioned above. | 03:22 |
|
ycon
| so `git checkout goodCommit` then `git cherry-pick latestCommt` will give me options of what specific code changes to add/commit? | 03:23 |
|
| ackyshake: | 03:23 |
|
ackyshake
| You want git cherry-pick --no-commit <hash> specifically, that will allow you to do so. It stages the changes by default, but you can use `git reset -p` to unstage hunks you don't want in the commit. | 03:24 |
|
ycon
| buti how do I find all the changes I don't want? Just git diff? ackyshake | 03:25 |
| → lgc joined | 03:25 |
|
ackyshake
| git diff --cached in your case. | 03:25 |
| ← Swahili left | 03:25 |
|
ycon
| can it do the "progressive" mode so I can just yes/no individually? as what happens with `git add -p`? | 03:26 |
|
ackyshake
| but essentially yeah, 1. git cherry-pick --no-commit <hash> and then if you want: (git reset && git add -p) OR (git reset -p) Finally, you can then commit what's in the index. | 03:26 |
| ← lgc left | 03:27 |
| → emf joined | 03:27 |
|
ackyshake
| ycon: yes. | 03:27 |
|
| but all of this is much more complicated than the interactive rebase method IMO. | 03:28 |
|
ycon
| git cherry-pick --no-commit didnt work because a file was deleted, is there a way to "force" it or something? | 03:28 |
|
| But interactive rebasing won't let me progressively see all the changes being added | 03:29 |
| ← gast0n left | 03:30 |
| ← mexen left | 03:31 |
|
ackyshake
| ycon: What do you mean the file was deleted? Was the file deleted on the "good commit" or the commit you're cherry-picking? | 03:32 |
|
| And yes interactive rebasing will allow you to do whatever you want essentially. | 03:32 |
|
ycon
| SO rather than cherry-picking how cna I do the interactive rebase only adding selected changes? EG from a single directoryonly | 03:32 |
| ← _9pfs left | 03:34 |
|
ackyshake
| just pick the commits you want to edit? | 03:34 |
|
ycon
| But there are several | 03:35 |
|
| All good, I thought git would have a smart/clean way to do this | 03:35 |
|
ackyshake
| It does. Interactive se is that way. | 03:36 |
|
| ycon: https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History (read the whole thing, especially the "Splitting a Commit" part) | 03:36 |
|
| s/Interactive se/Interactive rebase | 03:37 |
| → Azem joined | 03:37 |
| → _9pfs joined | 03:37 |
| ← Emet-Selch left | 03:40 |
| ← ycon left | 03:41 |
| ← causasui left | 03:43 |
| ← emf left | 03:47 |
| ← rgrinberg left | 03:49 |
| ← bloody left | 03:50 |
| ← adanwan left | 04:02 |
| → adanwan joined | 04:02 |
| ← drbeco left | 04:03 |
| → durham joined | 04:05 |
| ← durham left | 04:09 |
| ← cdown left | 04:13 |
| ← crashrep left | 04:19 |
| ← tyson2 left | 04:22 |
| → saroy joined | 04:27 |
| → va5c0 joined | 04:29 |
| ← va5c0 left | 04:34 |
| ← tchan left | 04:42 |
| ← Tangent-Man left | 04:44 |
| ← cbreak left | 04:47 |
| ← zebrag left | 04:47 |
| → tchan joined | 04:48 |
| → cbreak joined | 04:50 |
| ← hbautista left | 04:54 |
| ← Vonter left | 04:55 |
| ← ferdna left | 04:56 |
| → Null_A joined | 05:00 |
| ← Null_A left | 05:04 |
| → srinidhi joined | 05:05 |
| → thiago joined | 05:09 |
| → Vonter joined | 05:10 |
| → OnkelTem joined | 05:19 |
| ← Nintenuendo left | 05:25 |
| → pyevery__ joined | 05:28 |
| ← _9pfs left | 05:32 |
| ← pyevery__ left | 05:33 |
| → Nintenuendo joined | 05:33 |
| ← Nintenuendo left | 05:33 |
| → Nintenuendo joined | 05:33 |
| → _9pfs joined | 05:34 |
| ← oscurochu left | 05:34 |
| → karabaja4 joined | 05:37 |
| ← skapate left | 05:38 |
| → duxco joined | 05:39 |
| ← duxsco left | 05:41 |
| duxco → duxsco | 05:41 |
| → mexen joined | 05:45 |
| → dviola joined | 05:50 |
| → masoudd joined | 06:01 |
| ← sudomann left | 06:07 |
| ← Zaliek left | 06:07 |
| ← tchan left | 06:07 |
| → Zaliek joined | 06:07 |
| ← lungaro left | 06:07 |
| → lungaro joined | 06:08 |
| → thebombzen_ joined | 06:08 |
| → tchan joined | 06:08 |
| → sudomann joined | 06:08 |
| → travisghansen6 joined | 06:08 |
| ← fercell left | 06:08 |
| → fercell joined | 06:09 |
| ← travisghansen left | 06:10 |
| travisghansen6 → travisghansen | 06:10 |
| ← thebombzen left | 06:11 |
| ← cliluw left | 06:11 |
| → cliluw joined | 06:12 |
| → madewokherd` joined | 06:12 |
| ← silas left | 06:13 |
| → silas joined | 06:14 |
| ← foul_owl left | 06:14 |
| ← madewokherd left | 06:15 |
| → humanBird joined | 06:16 |
| → dtux joined | 06:22 |
| ← thebombzen_ left | 06:25 |
| → thebombzen joined | 06:25 |
| ← karabaja4 left | 06:31 |
| ← vdamewood left | 06:35 |
| → durham joined | 06:36 |
| → vdamewood joined | 06:36 |
| ← great_taste left | 06:38 |
| ← Thanatermesis left | 06:39 |
| ← durham left | 06:39 |
| ← _9pfs left | 06:40 |
| ← sudomann left | 06:40 |
| ← thiago left | 06:41 |
| → karabaja4 joined | 06:44 |
| → otisolsen70 joined | 06:44 |
| → foul_owl joined | 06:44 |
| ← vysn left | 06:45 |
| ← anaveragehuman left | 06:47 |
| → Shashin joined | 06:55 |
| → coot joined | 06:57 |
| ← Shashin left | 07:00 |
| ← samuelbernardo left | 07:02 |
| → samuelbernardo joined | 07:03 |
| ← mat001 left | 07:09 |
| → mat001 joined | 07:10 |
| ← dtux left | 07:10 |
| ← sudoforge left | 07:14 |
| → jusski joined | 07:20 |
| → iomari891 joined | 07:20 |
| → Shashin joined | 07:26 |
| ← Shashin left | 07:29 |
| → hornbill joined | 07:30 |
| → bkircher joined | 07:37 |
| → dcpc007 joined | 07:40 |
| → kenanmarasli joined | 07:41 |
| ← dcpc007 left | 07:41 |
| → Kohe joined | 07:46 |
| → spare joined | 07:47 |
| → l4s8g_ joined | 07:48 |
| ← PocketKiller left | 07:51 |
| → PocketKiller joined | 07:53 |
| → Sulky joined | 07:56 |
| → palasso joined | 08:02 |
| ← l4s8g_ left | 08:02 |
| ← spare left | 08:03 |
| → spare joined | 08:03 |
| ← steam left | 08:05 |
| → steam joined | 08:06 |
| → wonty joined | 08:06 |
| ← whatsupdoc left | 08:06 |
| ← unluckyshrubbery left | 08:06 |
| ← gnoo left | 08:07 |
| ← szkl left | 08:08 |
| ← worky left | 08:08 |
|
adgtl
| What are your most productive git commands you use everyday? | 08:12 |
| → zeenk joined | 08:15 |
|
ackyshake
| 'git blame': so I can blame someone else for issues people report and be productive (free) for the rest of the day. | 08:15 |
|
| unfortunately, most of the time that someone else ends up being me :( | 08:16 |
| → Guest1 joined | 08:16 |
|
ackyshake
| all joking aside, 'status' is most likely my most used git command. | 08:17 |
|
osse
| status and diff (and commit) are the obvious ones, I suppose. Apart from that I use commit --fixup a lot and git rebase --keep-root @{u} both of which I've aliased | 08:17 |
| → l4s8g_ joined | 08:17 |
| → rfuentess joined | 08:17 |
|
jinsun__
| --fixup is same as --amend? | 08:18 |
|
osse
| jinsun__: no, it creates a new | 08:18 |
|
| ehh | 08:18 |
|
| jinsun__: no, it creates a new commit to be squashed into another using rebase -i | 08:19 |
|
Kartagis
| these days I use diff a lot, because I have to patch the incompatible modules (Drupal) | 08:19 |
|
ackyshake
| osse: I can tell you've aliased git rebase --keep-root because "keep-root" is actually "--keep-base" :P | 08:20 |
|
osse
| lol | 08:20 |
| → gnoo joined | 08:20 |
| Guest1 → sufinameh | 08:21 |
|
jinsun__
| osse: okay, I got confused by the help text, I've used --amend only, I used to manually rebase -i when I needed to fixup | 08:21 |
| → l4s8g___ joined | 08:21 |
| ← sufinameh left | 08:21 |
| ← l4s8g___ left | 08:21 |
|
osse
| jinsun__: you reorder the list of commits and change "pick" to "fixup" right? If you use --fixup and rebase --autosquash then that happens automatically | 08:21 |
| ← l4s8g_ left | 08:23 |
| → feriman joined | 08:23 |
|
jinsun__
| yeah I did the thing in the text editor, gotta try the --autosquash and --fixup now | 08:23 |
| → l4s8g joined | 08:29 |
| → va5c0 joined | 08:30 |
| ← nivag left | 08:30 |
|
jinsun__
| osse: so I still need to do interactive rebase? just git rebase --autosquash <commit> did nothing (or nothing that I noticed) | 08:33 |
|
osse
| jinsun__: yes | 08:33 |
|
| it just saves you the manual ordering and editing | 08:33 |
|
jinsun__
| okay, so it just does the text editing part automatically for you | 08:33 |
| ← va5c0 left | 08:35 |
|
jinsun__
| I was expecting more "auto" :D, like reorder and then accept it and finish the rebase too | 08:35 |
| ← reset left | 08:36 |
|
osse
| jinsun__: that's easy: GIT_EDITOR=cat git rebase :p | 08:37 |
| → john_johnk joined | 08:37 |
|
osse
| I use that a lot | 08:37 |
|
| https://github.com/Osse/git-scripts/blob/master/git-rewrite | 08:37 |
|
ackyshake
| you could always skip the --autosquash option. This allows you to edit the commit ordering if needed, and the fixup commits will still be auto-squashed. | 08:38 |
| ← l4s8g left | 08:38 |
|
jinsun__
| osse: oh, nice | 08:38 |
| ← [twisti] left | 08:39 |
| → nivag joined | 08:43 |
| → l4s8g_ joined | 08:43 |
| → masoudd_ joined | 08:43 |
| ← l4s8g_ left | 08:43 |
| → Haohmaru joined | 08:45 |
|
Haohmaru
| what was the way to just discard my local "unstaged changes" ? (git gui) | 08:46 |
| ← masoudd left | 08:46 |
|
osse
| ackyshake: no it's the --autosquash that does the reordering | 08:47 |
|
dminuoso
| Hi I have a plumbing question. Is git able to tell me the top-most directory (where the .git directory resides in)? | 08:48 |
|
ackyshake
| osse: I meant for the non-fixup commits. | 08:48 |
|
| dminuoso: git rev-parse --show-toplevel | 08:49 |
|
osse
| ah | 08:49 |
|
dminuoso
| ackyshake: Oh that's perfect! Thanks | 08:49 |
| → va5c0 joined | 08:51 |
| → Shashin joined | 08:52 |
| ← Shashin left | 08:57 |
|
Haohmaru
| ..it seems "Branch > Reset" does it | 08:58 |
| → zer0bitz joined | 08:58 |
| ← rfuentess left | 09:00 |
| ← iomari891 left | 09:00 |
| → wootehfoot joined | 09:05 |
| ← Vonter left | 09:07 |
| ← vimal left | 09:10 |
| → Vonter joined | 09:14 |
| → iomari891 joined | 09:16 |
| ← john_johnk left | 09:17 |
| ← va5c0 left | 09:19 |
|
makara1
| hi. Im trying to use annotated tags for managing the project version number. But if I add a tag on one branch then when I switch to another branch (which doesn't include the commit that was tagged) the lastest tag is given as the one I just made | 09:20 |
|
| how can I show the latest tag that applies to commits on the current branch only? | 09:22 |
|
ackyshake
| how are you finding the "latest tag"? You probably want to use 'git describe' to find the closest tag from HEAD. | 09:23 |
| → va5c0 joined | 09:23 |
|
ikke
| Note that tags don't belong to branches, they are global. | 09:24 |
| → Shashin joined | 09:24 |
| ← Shashin left | 09:26 |
| ← cliluw left | 09:28 |
| → cliluw joined | 09:29 |
| → TheCatBehemoth joined | 09:29 |
| → john_johnk joined | 09:31 |
|
makara1
| i know that I "tag a commit". So if the commit I tagged isn't in the branch Im on, then I don't want to see it | 09:33 |
|
| ackyshake: I know that I can do `git describe --abbrev=0` | 09:35 |
| → Luther joined | 09:36 |
|
Luther
| hello, I download a repo to my local PC from github | 09:37 |
| → MajorBiscuit joined | 09:37 |
|
Luther
| after I reset to a init commit, but the code don't change | 09:38 |
|
makara1
| ok I see what's happening. How can I prune tags that point to commits that are no longer referenced by any branches? | 09:39 |
| → vimal joined | 09:41 |
|
selckin
| you want to remove the tags, or just not list them? the whole point of tags is to not remove them | 09:42 |
|
| else its called a branch | 09:42 |
|
ackyshake
| Luther: it depends on what you really want to do, but you probably want to checkout to that commit rather than reset. 'git reset <commit>' re-writes your local history. | 09:44 |
| → carl- joined | 09:45 |
| → Ilyu joined | 09:46 |
|
Luther
| https://pastebin.ubuntu.com/p/Z9FzDH6yNw/ | 09:46 |
| ← vimal left | 09:46 |
| ← humanBird left | 09:46 |
|
Luther
| please check my pastbin. | 09:47 |
|
selckin
| what does 'git status' say | 09:47 |
|
makara1
| ok i get that | 09:48 |
|
Luther
| https://pastebin.ubuntu.com/p/R799864fhV/ | 09:49 |
|
| this is the git status | 09:49 |
| → Tangent-Man joined | 09:49 |
|
selckin
| 'git checkout -- .', will restore tracked files as the output says, to remove the untracked files you can do like 'git clean -df' (careful if there are files you want to keep) | 09:50 |
|
Luther
| it works, thank you, selckin. | 09:51 |
| ← jazzy2 left | 09:51 |
| ← dmvrtx left | 09:51 |
| ← Betal left | 09:52 |
| → dmvrtx joined | 09:53 |
| → dcpc007 joined | 09:54 |
| → roadie joined | 09:55 |
| → vysn joined | 09:58 |
| → vimal joined | 09:59 |
| → unluckyshrubbery joined | 10:01 |
| ← john_johnk left | 10:10 |
| ← Akiva left | 10:12 |
| → suss joined | 10:13 |
| → worky joined | 10:15 |
|
Walex2
| one of the huge annoyances (for me) of 'git' "porcelain" is that the commands don't make clear on which stuff (working tree, draft commit, "branch", commit) they work... | 10:16 |
|
| too bad that ship sailed long ago. | 10:16 |
|
| s/draft commit/index/ in common parlance :-) | 10:17 |
| ← vicecea left | 10:17 |
|
| Walex2 likes "object oriented" command interfaces | 10:17 |
| → dimi1947 joined | 10:17 |
| ← wonty left | 10:17 |
| → vicecea joined | 10:18 |
|
selckin
| yes common problem, it grew quick & organically, git-stage etc are some attempts to clean thing upa bit more for the user commands, but when down in the low level you need to know whats up | 10:18 |
| ← dmvrtx left | 10:19 |
| → dmvrtx joined | 10:19 |
| ← roadie left | 10:20 |
| → pretty_dumm_guy joined | 10:24 |
| → roadie joined | 10:25 |
| ← dmvrtx left | 10:26 |
| → dmvrtx joined | 10:26 |
| ← foul_owl left | 10:27 |
| ← xayto_ left | 10:28 |
| → dos_ joined | 10:30 |
| → xayto joined | 10:30 |
| ← roadie left | 10:35 |
| → kaiseisei1 joined | 10:37 |
| ← kaiseisei1 left | 10:37 |
| ← ishutin left | 10:37 |
| ← kaiseisei left | 10:37 |
| → ishutin joined | 10:39 |
| → benni joined | 10:41 |
| → roadie joined | 10:42 |
| ← Vonter left | 10:43 |
| → foul_owl joined | 10:43 |
| → oscurochu joined | 10:44 |
| → vladoski joined | 10:44 |
| → Nicklificent joined | 10:46 |
| ← Millicent left | 10:46 |
| Nicklificent → Millicent | 10:46 |
| ← Ilyu left | 10:48 |
| → jstein joined | 10:57 |
| → otisolsen70_ joined | 10:58 |
| ← otisolsen70 left | 11:02 |
| ← otisolsen70_ left | 11:02 |
| → otisolsen70 joined | 11:02 |
| ← AbleBacon left | 11:03 |
| ← roadie left | 11:04 |
| → vitali64 joined | 11:05 |
| ← very_sneaky left | 11:07 |
|
wyre
| hi guys, I gues this answer https://stackoverflow.com/a/19705736/6723042 is a little outdated as I cannot use git branch in the way it points | 11:08 |
|
| I guess I should use `git checkout -b ....`, am I right? | 11:08 |
| ← ackyshake left | 11:08 |
|
selckin
| it should still work | 11:09 |
|
wyre
| selckin, where is supposed to be run that `git branch rebased-A hotfix/A` command from? | 11:11 |
| → very_sneaky joined | 11:11 |
|
wyre
| I mean, you could run that command while being in master branch? | 11:11 |
|
selckin
| anywhere | 11:11 |
| → ackyshake joined | 11:12 |
|
selckin
| create branch named rebased-1 from hotfix/A branch or tag, current branch has no effect | 11:12 |
|
wyre
| selckin, oh, sure, I've not noticed that hotfix was actually a remote ref 😆 | 11:13 |
|
| I thought from the beginning this was just a branch called hotfix/A | 11:13 |
| ← suss left | 11:18 |
| ← spare left | 11:19 |
| masoudd_ → masoudd | 11:19 |
| ← vitali64 left | 11:20 |
| → spare joined | 11:21 |
| ← Jong left | 11:22 |
| → vitali64 joined | 11:23 |
| ← OnkelTem left | 11:24 |
| → OnkelTem joined | 11:26 |
| ← vishal left | 11:28 |
| → jmcb joined | 11:30 |
| ← jmcb left | 11:30 |
| → vishal joined | 11:31 |
| ← very_sneaky left | 11:32 |
| → l4s8g joined | 11:33 |
| ← l4s8g left | 11:33 |
| → Rashad joined | 11:33 |
| → l4s8g_ joined | 11:34 |
| ← otisolsen70 left | 11:34 |
| ← l4s8g_ left | 11:37 |
| → l4s8g_ joined | 11:38 |
| ← OnkelTem left | 11:44 |
| → OnkelTem joined | 11:46 |
| → Vonter joined | 11:50 |
| ← tgummerer left | 11:51 |
| → romesrf joined | 11:52 |
| ← OnkelTem left | 11:55 |
| ← duxsco left | 11:56 |
| ← vimal left | 11:59 |
| → very_sneaky joined | 11:59 |
| → otisolsen70 joined | 12:00 |
| → duxsco joined | 12:02 |
| → GoldLeader87 joined | 12:02 |
| ← jusski left | 12:04 |
| → cdown joined | 12:10 |
| ← vitali64 left | 12:11 |
| → vitali64 joined | 12:11 |
| ← brw left | 12:12 |
| → brw joined | 12:13 |
| ← GoldLeader87 left | 12:15 |
| → lgc joined | 12:19 |
| ← lgc left | 12:20 |
| → GoldLeader87 joined | 12:26 |
| → drogas joined | 12:28 |
| ← txtsd left | 12:29 |
| → jusski joined | 12:33 |
| ← tolarz left | 12:34 |
| ← spare left | 12:38 |
| ← Misotauros left | 12:40 |
| → DrowningElysium joined | 12:40 |
| → nyah joined | 12:44 |
| → jnnnnnnnnn joined | 12:45 |
| → Shashin joined | 12:47 |
| ← Shashin left | 12:47 |
| → cvmn joined | 12:52 |
| → tsujp joined | 12:54 |
| → humanface joined | 13:03 |
| → durham joined | 13:07 |
| ← dos_ left | 13:08 |
| → astipasta joined | 13:08 |
| → donofrio joined | 13:08 |
| → dos_ joined | 13:09 |
| → john_johnk joined | 13:09 |
| ← tsujp left | 13:09 |
|
astipasta
| Hello - I have a problem where git pull and push both say up to date, but the remote has files which i cannot see in my file system, but git ls-files shows the files - what could be the reason for this? | 13:10 |
| → frost-core joined | 13:10 |
|
frost-core
| hello | 13:10 |
|
selckin
| astipasta: what does 'git status' say | 13:10 |
|
frost-core
| how do i git clone a specific folder? | 13:11 |
|
selckin
| frost-core: you can't | 13:11 |
| → hseg joined | 13:11 |
|
frost-core
| selckin : in github, what can i do then? | 13:11 |
|
astipasta
| selckin: on branch develop up to date with origin/develop some changes not staged for commit, and some untracked files, none of them are related to the missing files. | 13:11 |
|
selckin
| frost-core: clone the entire repo | 13:11 |
|
frost-core
| ok then | 13:12 |
| ← durham left | 13:12 |
|
frost-core
| but i dont want to wait very long, and thats the only option | 13:12 |
|
selckin
| you can clone only the latest version of the entire repo | 13:12 |
|
mackerman
| git clone --filter=blob:none # or don't download blobs right now | 13:13 |
|
selckin
| --depth | 13:13 |
|
frost-core
| oh its very tiny as a zip | 13:13 |
|
mackerman
| GitHub releases aren't the full repo, but maybe you only care about one tree. | 13:13 |
|
frost-core
| mackerman : this is what im downloading https://github.com/lubuntu-team/calamares-settings-ubuntu and i want the lubuntu folder only | 13:14 |
|
| but nvm, the zip is tiny | 13:14 |
| ← Kohe left | 13:14 |
|
mackerman
| Correction, that repo doesn't do real releases, that's just GitHub's zip a tree feature. | 13:15 |
| bkircher → bkircher_afk | 13:15 |
| → structoha joined | 13:15 |
|
hseg
| Looking for regressions a formatter introduced into my code, unsure how to invoke git grep appropriately for this | 13:15 |
| ← frost-core left | 13:16 |
| → tyson2 joined | 13:17 |
|
mackerman
| hseg: man git bisect # if you have a test case | 13:17 |
|
gitinfo
| hseg: the git-bisect manpage is available at https://gitirc.eu/git-bisect.html | 13:17 |
|
hseg
| the regressions look likehttp://ix.io/3PKQ | 13:17 |
|
| http://ix.io/3PKQ | 13:17 |
|
astipasta
| selckin: in a recent commit, i moved some files, when looking in gitk at that commit - most files are marked as renamed but - it seems like the problem files are marked as "new files" when though they were moved. | 13:17 |
|
hseg
| it's not a matter of bisecting -- I know what the bug looks like, but I suspect I've inserted it multiple times over | 13:18 |
|
| and am looking for all the edits I made that introduce it | 13:18 |
|
selckin
| astipasta: git doesn't track moved files, it only tries to detect it in some views | 13:18 |
| ← structoha left | 13:19 |
| ← john_johnk left | 13:20 |
|
ikke
| hseg: git log -S or -G | 13:22 |
|
hseg
| ok, will try that, thanks | 13:24 |
| ← jnnnnnnnnn left | 13:26 |
| ← KeeperoftheKeys left | 13:32 |
| ← otisolsen70 left | 13:32 |
| → bloody joined | 13:35 |
| → john_johnk joined | 13:35 |
| ← vitali64 left | 13:45 |
| → vitali64 joined | 13:45 |
| → Null_A joined | 13:45 |
| ← cvmn left | 13:46 |
| ← atrigent left | 13:46 |
|
hseg
| ikke: that doesn't seem to work with multiline patterns, though? | 13:51 |
|
| like, I'm looking for changes of the form '= new Foo();' -> '= new Foo\n{' which also match 'x.A = x.B' -> 'A = x.B' | 13:53 |
| → atrigent joined | 13:53 |
|
osse
| hseg: git log -S$'Foo\n{' (or some other way of actually injecting a newline into the argument) | 13:55 |
| → skapata joined | 13:56 |
| ← skapata left | 13:56 |
| → skapata joined | 13:56 |
| → alt-romes joined | 13:56 |
| ← vysn left | 13:56 |
|
hseg
| Foo isn't a fixed string, and the amount of whitespace between the \n and { varies as well | 13:56 |
|
| so I need -G I think | 13:56 |
|
osse
| in that case you're fucked | 13:56 |
| ← dos_ left | 13:57 |
| → Common-Lisp joined | 13:57 |
|
osse
| no wait a minute | 13:57 |
|
| -S --pickaxe-regex | 13:58 |
| → rsx joined | 13:58 |
|
osse
| but I guess that is limited to lines too | 13:58 |
|
| no wait a minute again | 13:58 |
|
| it works! | 13:58 |
| ← romesrf left | 13:59 |
|
hseg
| what's the invocation for that? | 13:59 |
|
osse
| (with the literal newline thing) git log -S$'Foo\n *{' --pickaxe-regex | 13:59 |
|
| or use [[:space:]] I guess | 13:59 |
| → kenanmarasli_ joined | 14:00 |
|
hseg
| ah, ok -S$'= new.*\n *\{' --pickaxe-regex | 14:00 |
|
| thanks | 14:01 |
|
osse
| in a shell that supports $'' which almost all do | 14:01 |
| ← Null_A left | 14:01 |
|
hseg
| now need to figure out how A) to limit the outut to matching hunks and B) run the 'x.A = x.B' -> 'A = x.B' match | 14:01 |
|
selckin
| probably need \\{ | 14:02 |
|
hseg
| that \{ is inside the quote | 14:03 |
|
selckin
| { has meaning in regex, need to escape the $'' and the regex | 14:03 |
| ← kenanmarasli left | 14:03 |
| kenanmarasli_ → kenanmarasli | 14:03 |
|
selckin
| to end up with "-S\{" you need -S$'\\{' | 14:04 |
|
hseg
| nope, because \{ is an invalid c escape and therefore is passed as-is | 14:04 |
| → aehu6ce8 joined | 14:04 |
|
hseg
| though it's good advice in general | 14:05 |
|
| (ie \{ will try and fail to escape {, and return \{, whereas \\{ will escape \ and return \{) | 14:05 |
| Azem → Emet-Selch | 14:05 |
|
hseg
| hrm, seems https://gist.github.com/phil-blain/2a1cf81a0030001d33158e44a35ceda6 has a way of doing both the "limit output" and "secondary match" parts | 14:08 |
| ← dimi1947 left | 14:08 |
| → pyeveryt_ joined | 14:09 |
| → sudoforge joined | 14:11 |
| → Gustavo6046 joined | 14:12 |
| ← Gustavo6046 left | 14:13 |
| → Gustavo6046 joined | 14:14 |
| → otisolsen70 joined | 14:17 |
| → cdown_ joined | 14:18 |
| → txtsd joined | 14:18 |
| → gh34 joined | 14:19 |
| ← cdown left | 14:20 |
| cdown_ → cdown | 14:20 |
| ← john_johnk left | 14:22 |
| → xkuru joined | 14:23 |
| ← Xenguy left | 14:23 |
| ← Gustavo6046 left | 14:29 |
| → Gustavo6046 joined | 14:29 |
| → R2robot_ joined | 14:35 |
| ← alt-romes left | 14:35 |
| → zmt01 joined | 14:35 |
| → romesrf joined | 14:36 |
| ← PocketKiller left | 14:36 |
| ← txtsd left | 14:37 |
| ← R2robot left | 14:37 |
| ← asdflkj_sh left | 14:37 |
| → kmt_ joined | 14:38 |
| ← Luther left | 14:38 |
| ← hornbill left | 14:38 |
| ← vdamewood left | 14:38 |
| ← TonyStone left | 14:38 |
| ← elastic_dog left | 14:38 |
| ← magic_ninja left | 14:38 |
| ← zmt00 left | 14:38 |
| → vdamewood joined | 14:38 |
| ← humanface left | 14:39 |
| → PocketKiller joined | 14:39 |
| → kaisyu joined | 14:39 |
| → txtsd joined | 14:40 |
| → asdflkj_sh joined | 14:40 |
| → Luther joined | 14:40 |
| → Null_A joined | 14:46 |
| ← chenqisu1 left | 14:48 |
| ← l4s8g_ left | 14:48 |
| → l4s8g joined | 14:49 |
| ← Null_A left | 14:50 |
| → TonyStone joined | 14:50 |
| → Swahili joined | 14:52 |
| → magic_ninja joined | 14:53 |
| ← R2robot_ left | 14:53 |
| ← kmt_ left | 14:55 |
| ← zulutango left | 14:56 |
| → zulutango joined | 14:57 |
| → l4s8g___ joined | 14:57 |
| ← l4s8g left | 14:58 |
| ← kenanmarasli left | 14:59 |
| → vimal joined | 15:03 |
| ← vimal left | 15:04 |
| → Shashin joined | 15:05 |
| → R2robot joined | 15:05 |
| → vimal joined | 15:05 |
| ← l4s8g___ left | 15:06 |
| → spare joined | 15:06 |
| → furrymcgee joined | 15:08 |
| ← mannequin left | 15:09 |
| ← vimal left | 15:09 |
| → vimal joined | 15:11 |
| → m0viefreak joined | 15:15 |
| → l4s8g_ joined | 15:16 |
| → reset joined | 15:17 |
| ← Oblomov left | 15:17 |
| → Null_A joined | 15:19 |
| ← vdamewood left | 15:23 |
| → vdamewood joined | 15:24 |
| ← Null_A left | 15:24 |
| ← CarloWood left | 15:25 |
| ← astipasta left | 15:25 |
| ← vitali64 left | 15:26 |
| → Torr joined | 15:28 |
|
Torr
| Hey | 15:28 |
|
| How do I specify the object from which <git show> creates the diff? | 15:29 |
|
| By default is uses <HEAD>. | 15:29 |
|
| The two objects btw. | 15:30 |
| ← Vonter left | 15:30 |
|
Torr
| Something like: git show <obj1> --diff-from=<obj2> | 15:30 |
| → OnkelTem joined | 15:31 |
|
rewt
| git show is for a single object; if you want a diff between 2 arbitrary commits, use git diff | 15:31 |
|
Torr
| rewt: But it already does a diff of two objects. | 15:32 |
|
rewt
| no, it shows a single object, which itself is the "diff" contained in that single object | 15:33 |
| → Vonter joined | 15:33 |
|
Torr
| Perhaps object is not the correct word. Lemme explain from another angle. | 15:34 |
| ← Common-Lisp left | 15:34 |
| ← va5c0 left | 15:34 |
|
ikke
| A commit is a snapshot, not a diff | 15:34 |
|
Torr
| If u run: git show <commit>, it'll create a diff from the staging area and the last commit, right? | 15:34 |
|
ikke
| No, that commit against its parent | 15:35 |
|
Torr
| Oh yes, that's what I wanted to say. | 15:35 |
| ← donofrio left | 15:36 |
| → va5c0 joined | 15:36 |
|
Torr
| But if don't specificy the commit, it'll compare with the staging area, right? | 15:36 |
|
| Like just: git show | 15:36 |
|
ikke
| It shows HEAD | 15:37 |
|
Torr
| <HEAD> against the staging area, right? | 15:37 |
|
ikke
| no | 15:37 |
|
rewt
| HEAD against HEAD^ (the prev commit) | 15:37 |
|
ikke
| against its parent | 15:37 |
|
| git diff would compare against the working tree | 15:38 |
|
rewt
| man git show | 15:38 |
|
gitinfo
| the git-show manpage is available at https://gitirc.eu/git-show.html | 15:38 |
|
rewt
| man git diff | 15:38 |
|
gitinfo
| the git-diff manpage is available at https://gitirc.eu/git-diff.html | 15:38 |
| ← benni left | 15:40 |
| ← Luther left | 15:41 |
| ← aehu6ce8 left | 15:42 |
| ← hseg left | 15:43 |
| ← mat001 left | 15:47 |
| → vitali64 joined | 15:47 |
| ← duxsco left | 15:48 |
| ← gevreeen left | 15:50 |
| → Oblomov joined | 15:50 |
|
Torr
| Right, found the commit. | 15:51 |
|
| Thank you | 15:51 |
| → jamiejackson joined | 15:53 |
| ← vitali64 left | 15:53 |
| → vitali64 joined | 15:54 |
| → Null_A joined | 15:55 |
| → zebrag joined | 15:55 |
|
jamiejackson
| hi folks, there's no way to automatically enforce a pre-commit hook for a repository, is there? the solutions i've seen require each developer to proactively do something in order to get on board. | 15:56 |
| → john_johnk joined | 15:56 |
| → thiago joined | 15:56 |
| → causasui joined | 15:56 |
| → mat001 joined | 15:56 |
| → gast0n joined | 15:56 |
|
ljharb
| jamiejackson: that's by design; it'd be a huge security vulnerability to allow hooks to be auto-installed | 15:57 |
|
causasui
| is there some way to set max depth on the status and diff commands? | 15:57 |
| ← nrg left | 15:57 |
| → odoood joined | 15:57 |
| ← Torr left | 15:57 |
|
ljharb
| jamiejackson: but also, clientside hooks are trivially bypassable; the only enforcement that matters is on the server | 15:57 |
| ← txtsd left | 15:58 |
| → duxsco joined | 15:58 |
|
jamiejackson
| okay, got it, ljharb. i'd like to restrict file size in my repos. i'm still looking for a server side hook that doesn't have holes in it. | 15:59 |
| ← Null_A left | 15:59 |
|
causasui
| jamiejackson: this is gonna be controversial but the rather unfortunately named tool 'pre-commit' has a hook that will block big files. we run it in CI. the supply chain vulnerability is too much for the linux project but depending on your threat model it might be fine for you | 16:00 |
| ← vitali64 left | 16:01 |
| → jnnnnnnnnn joined | 16:01 |
| ← vaio left | 16:02 |
| ← john_johnk left | 16:03 |
| ← GoldLeader87 left | 16:03 |
| → vaio joined | 16:03 |
| ← skapata left | 16:05 |
| ← jnnnnnnnnn left | 16:06 |
| → jnnnnnnnnn joined | 16:07 |
| ← coot left | 16:10 |
| → nrg joined | 16:12 |
| → crashrep joined | 16:13 |
| ← m0viefreak left | 16:15 |
| ← SuperLag left | 16:16 |
| → dtux joined | 16:16 |
| ← Shashin left | 16:19 |
| → Misotauros joined | 16:19 |
| → Shashin joined | 16:20 |
| → terminalpusher joined | 16:20 |
| → Thanatermesis joined | 16:20 |
| → suss joined | 16:25 |
| → durham joined | 16:28 |
| → Betal joined | 16:29 |
| → benni joined | 16:29 |
|
jamiejackson
| causasui, i'm missing a piece of your explanation. how does the CI hook prevent a *developer* from pushing problematic commits to the central repo? | 16:30 |
| ← GNUmoon left | 16:31 |
| → SuperLag joined | 16:31 |
| ← jusski left | 16:32 |
| ← spare left | 16:33 |
| ← carl- left | 16:34 |
|
mackerman
| Server hooks and CI can apply to developers as well. | 16:34 |
| → vitali64 joined | 16:35 |
| ← terminalpusher left | 16:35 |
|
ikke
| jamiejackson: it cannot prevent it from pushing it to a repo, it can preventing it from being merged in the main branch | 16:36 |
|
| If you want to prevent pushing, you need server-side hooks | 16:36 |
|
| But that means you need to control the server | 16:36 |
| → madewokherd joined | 16:36 |
|
jamiejackson
| okay, gotcha. my concern is not only preventing master from getting polluted but from the whole repo getting permanently bloated with an errant, giant file. i'm going to pursue server-side hooks, thanks. | 16:38 |
| ← madewokherd` left | 16:38 |
|
ikke
| Note that that's also what the likes of github are using to prevent you from push too large files | 16:38 |
| → Guest38 joined | 16:39 |
| ← Guest38 left | 16:40 |
| → roadie joined | 16:40 |
|
jamiejackson
| yeah, i think the limits are too high for my needs, though, ikke | 16:43 |
|
ikke
| If you want to host it on github, you do not really have the opportunity to specify server-side hooks though | 16:44 |
| → frm joined | 16:47 |
| → GNUmoon joined | 16:47 |
| ← kaisyu left | 16:49 |
| ← frm left | 16:49 |
| ← odoood left | 16:49 |
| ← tyson2 left | 16:50 |
| ← Betal left | 16:51 |
| → ChmEarl joined | 16:53 |
| → rgrinberg joined | 16:54 |
| → txtsd joined | 16:55 |
| → ___nick___ joined | 16:55 |
| ← txtsd left | 16:59 |
| → txtsd joined | 16:59 |
| ← txtsd left | 17:01 |
| → txtsd joined | 17:02 |
| → Null_A joined | 17:02 |
| ← txtsd left | 17:05 |
| ← mexen left | 17:05 |
| → txtsd joined | 17:05 |
| → isolier joined | 17:06 |
|
isolier
| Hello. I have a code base under git revision control, however, I want to split it into client code and API code. I have one branch with API code removed, and one branch with the client code removed. How do I go about essentially creating a new repo for those two respective branches. Do I just checkout a specific branch in a new directory, and | 17:11 |
|
| proceed as if I pulled a repo? What is the best practice for this? | 17:11 |
| ← benni left | 17:12 |
| → wonty joined | 17:14 |
| ← madewokherd left | 17:15 |
| → phrix joined | 17:16 |
|
mackerman
| !split_repository | 17:16 |
|
gitinfo
| [!filter_subdirectory] You can use filter-branch's subdirectory filter to split a directory from an existing repository into a new repository, keeping all history. https://help.github.com/articles/splitting-a-subfolder-out-into-a-new-repository/ | 17:16 |
| → spare joined | 17:16 |
| ← worky left | 17:16 |
|
mackerman
| Branches in one repo with only some of the tree may not be easy to maintain. | 17:18 |
| → Akiva joined | 17:19 |
| → stewie925 joined | 17:20 |
| ← vdamewood left | 17:20 |
| → vdamewood joined | 17:21 |
| ← Haohmaru left | 17:23 |
| ← Shashin left | 17:25 |
| ← jnnnnnnnnn left | 17:26 |
| ← ___nick___ left | 17:26 |
| → Shashin joined | 17:27 |
| → ___nick___ joined | 17:28 |
| → jnnnnnnnnn joined | 17:30 |
| ← durham left | 17:30 |
|
isolier
| Okay, thank you. | 17:30 |
| ← ___nick___ left | 17:31 |
| ← saroy left | 17:32 |
| → ___nick___ joined | 17:33 |
| ← Misotauros left | 17:35 |
| ← stewie925 left | 17:36 |
| ← Shashin left | 17:38 |
| ← Null_A left | 17:38 |
| → KeeperoftheKeys joined | 17:41 |
| ← dirigible left | 17:41 |
| → dirigible joined | 17:41 |
| → stewie925 joined | 17:43 |
| ← drogas left | 17:45 |
| ← l4s8g_ left | 17:48 |
| ← crashrep left | 17:49 |
| → fdan joined | 17:50 |
|
fdan
| Hi there, i had forked a repo and created a PR. the PR was in review for a long time and as a result the main repo got updated | 17:51 |
|
| how to get the latest changes to my forked repo | 17:51 |
| → odoood joined | 17:52 |
|
ikke
| add the upstream repo as a remote | 17:53 |
|
| fetch the branches | 17:53 |
|
| rebase your feature branch on the upstream main branch | 17:53 |
|
| force push to your fork | 17:53 |
|
fdan
| ikke i did a git remote add upstream | 17:54 |
|
| then git fetch upstream | 17:54 |
|
| can i do a git merge upstream/master master | 17:54 |
| → tsdh joined | 17:54 |
| → Null_A joined | 17:54 |
|
ikke
| fdan: usually projects don't like it when you add merges to pull requests | 17:55 |
| → tyson2 joined | 17:55 |
|
fdan
| aah i just did that | 17:55 |
| → humanBird joined | 17:58 |
| ← Null_A left | 17:59 |
| → ozoned joined | 17:59 |
| ← odoood left | 18:00 |
| ← mat001 left | 18:01 |
| → mat001 joined | 18:01 |
| → vicfred joined | 18:02 |
| → DoofusCanadensis joined | 18:02 |
| ← iomari891 left | 18:03 |
|
fdan
| ikke i had a merge conflict, i fixed it and then did a git add | 18:04 |
|
| when i do a git states | 18:04 |
| → vicfred_ joined | 18:04 |
|
fdan
| it says lot of changes to be committed on files which i have not worked | 18:04 |
| ← roadie left | 18:04 |
|
ikke
| fdan: did you do a rebase or a merge? | 18:05 |
|
fdan
| i did a merge | 18:05 |
|
| i did git merge upstream/master master | 18:05 |
|
| then resolved the conflict | 18:05 |
|
| and did a git add <file> | 18:06 |
| ← vicfred left | 18:07 |
|
ikke
| git commit to finish the merge | 18:08 |
|
| or git merge --continue | 18:08 |
|
fdan
| when i would do a git merge --continue | 18:09 |
| ← vicfred_ left | 18:09 |
| ← Maxattax left | 18:11 |
| ← zeenk left | 18:11 |
| → PCatinean joined | 18:13 |
| → menace joined | 18:16 |
| ← menace left | 18:16 |
| → menace joined | 18:16 |
| menace → Deknos | 18:16 |
| ← ozoned left | 18:17 |
| ← Vonter left | 18:19 |
| → crashrep joined | 18:21 |
| → Misotauros joined | 18:21 |
| → madewokherd joined | 18:23 |
| → Maxattax joined | 18:25 |
| ← crashrep left | 18:25 |
| ← Deknos left | 18:29 |
| → john_johnk joined | 18:33 |
| → crashrep joined | 18:35 |
| → great_taste joined | 18:36 |
| → Jong joined | 18:37 |
| → vysn joined | 18:38 |
| → Vonter joined | 18:42 |
| → Betal joined | 18:44 |
|
fdan
| Hi there, i tried to do a rebase and the git push origin master | 18:44 |
|
| the push didnt happen as i was getting hint: Updates were rejected because the tip of your current branch is behind | 18:45 |
|
| hint: its remote counterpart. Integrate the remote changes (e.g. | 18:45 |
|
| hint: 'git pull ...') before pushing again. | 18:45 |
|
| i did a git pull | 18:45 |
|
| and i got this message https://dpaste.org/we8P | 18:45 |
|
| can any one help? | 18:47 |
|
rewt
| with which part? | 18:48 |
|
ikke
| fdan: after you do a rebase, you should not run git pull | 18:51 |
|
| You need to force push, like I mentioned earlier | 18:51 |
| → suss` joined | 18:52 |
| ← rgrinberg left | 18:53 |
| → dflick joined | 18:53 |
| ← MajorBiscuit left | 18:54 |
| ← suss left | 18:54 |
|
fdan
| got it | 18:56 |
| ← oscurochu left | 18:59 |
| → l4s8g joined | 19:05 |
| olbat__ → olbat | 19:07 |
| ← l4s8g left | 19:09 |
| → The_Blode_ joined | 19:11 |
| ← The_Blode left | 19:12 |
| ← rektide left | 19:14 |
| → emf joined | 19:15 |
| → l4s8g joined | 19:15 |
| → kenanmarasli joined | 19:20 |
| ← igemnace left | 19:21 |
| → rgrinberg joined | 19:24 |
| ← john_johnk left | 19:26 |
| ← pyeveryt_ left | 19:28 |
| ← vysn left | 19:29 |
| ← romesrf left | 19:30 |
|
quesker
| is there some way to force git to follow .gitignore symlinks? I don't want to maintain 100 .gitignores | 19:31 |
|
| there is some new thing that it is complaining about it being a symlink | 19:31 |
|
DoofusCanadensis
| 100 .gitignores? | 19:33 |
|
| oh same one for every project | 19:33 |
|
quesker
| yep | 19:33 |
| → mannequin joined | 19:34 |
| → igemnace joined | 19:34 |
|
quesker
| I might be exaggerating by like 94 or so but still | 19:34 |
| ← rsx left | 19:34 |
|
DoofusCanadensis
| and if you delete those repos and reclone? what is your expected behaviour for that file? | 19:34 |
| ← Vonter left | 19:35 |
|
quesker
| yes my git is dumb but I like it that way. I have symlinks to other repos | 19:35 |
| ← rgrinberg left | 19:35 |
| → menace joined | 19:36 |
| ← menace left | 19:36 |
| → menace joined | 19:36 |
|
quesker
| it worked like this for many years before they "fixed" it | 19:36 |
|
Timvde
| quesker: you can set a global .gitigore on your system, but well, that wouldn't be checked in | 19:37 |
| ← fdan left | 19:37 |
|
DoofusCanadensis
| sounds like quesker is the sole user so a user or global .gitignore should be fine | 19:38 |
|
quesker
| I guess it never changes so I might as well make the 6 copies. just never understand why they fix things that don't need fixed. | 19:38 |
|
Timvde
| Yea, sorry, with "global" I meant "for your user" | 19:38 |
|
| quesker: or you just don't know the reason why it needed to be fixed :) | 19:39 |
|
DoofusCanadensis
| probably security | 19:39 |
|
quesker
| it was like that for many years, couldn't have been that broken | 19:39 |
| → jazzy joined | 19:40 |
|
DoofusCanadensis
| log4j was like that for many years too. turns out it *was* that broken | 19:40 |
|
quesker
| heh yeah | 19:40 |
| → Vonter joined | 19:40 |
| ← phrix left | 19:41 |
|
DoofusCanadensis
| anyway, git looks in several locations for gitignore configurations at a global, user, project, and directories inside a project. | 19:41 |
|
quesker
| next thing they won't allow symlinks anywhere | 19:41 |
| ← Lord_of_Life left | 19:41 |
| → Lord_of_Life_ joined | 19:41 |
|
quesker
| for "security" | 19:41 |
|
DoofusCanadensis
| symlinks aren't available on all supported platforms | 19:41 |
| ← menace left | 19:42 |
|
quesker
| well fix those platforms | 19:42 |
|
Timvde
| I have `git config --global core.excludesfile ~/.gitignore_global` | 19:42 |
|
quesker
| they sound broken | 19:42 |
|
DoofusCanadensis
| probably, but they're among the most numerous | 19:42 |
|
quesker
| thanks I will try that I guess since I am too lazy to copy 6 files | 19:42 |
|
DoofusCanadensis
| for me, everybody else who uses my project repos need to be using the same .gitignore configuration so in the project repo they go | 19:43 |
| ← vladoski left | 19:43 |
|
DoofusCanadensis
| and since I have a fish function `getignores` to fetch from the gitignore project it's part of a project setup anyway | 19:43 |
|
Timvde
| DoofusCanadensis: mostly, yes. I put project-specific things in there, not a bunch of IDE-specific things. People should put those in their personal .gitignore. | 19:43 |
| Lord_of_Life_ → Lord_of_Life | 19:44 |
|
DoofusCanadensis
| Timvde: generally, true, but I'm in control of a corporate repository and get to keep devs from stomping all over each other so IDE settings go in the project | 19:44 |
|
Timvde
| DoofusCanadensis: I'd say "train the devs" | 19:45 |
|
DoofusCanadensis
| they won't let me use my training stick | 19:45 |
|
Timvde
| but I guess that may be a tough battle :P | 19:45 |
|
DoofusCanadensis
| that said, we are starting to get some traction on the whole train the devs idea | 19:46 |
|
Timvde
| I'm happy to be in a company with a "we want to do it right" culture | 19:46 |
|
quesker
| they tried to force a corporate repo with ridiculous settings so I just made my own repo under my user. I am the only dev on this so nobody notices | 19:46 |
| ← crabbedhaloablut left | 19:48 |
| → crabbedhaloablut joined | 19:48 |
| ← emf left | 19:54 |
| → coot joined | 19:55 |
| → Null_A joined | 19:56 |
| → cvmn joined | 20:06 |
| → john_johnk joined | 20:11 |
| → lukedashjr joined | 20:14 |
| ← mat001 left | 20:15 |
| → mat001_ joined | 20:15 |
| ← Vonter left | 20:15 |
| ← luke-jr left | 20:17 |
| lukedashjr → luke-jr | 20:17 |
| ← Null_A left | 20:19 |
| ← duxsco left | 20:20 |
| ← TheCatBehemoth left | 20:23 |
| ← mat001_ left | 20:26 |
| ← cvmn left | 20:26 |
| → mat001 joined | 20:26 |
| ← Betal left | 20:27 |
|
OnlineCop
| We're just now getting around to adding `* text=auto` to our repo's .gitattributes file. 10k changed files. | 20:28 |
| ← crashrep left | 20:31 |
| → evanextreme joined | 20:31 |
| → whatsupdoc joined | 20:31 |
| ← PCatinean left | 20:35 |
| → Null_A joined | 20:37 |
| → frm joined | 20:38 |
| → duxsco joined | 20:40 |
| → Vonter joined | 20:40 |
| ← humanBird left | 20:42 |
| ← otisolsen70 left | 20:45 |
| ← ___nick___ left | 20:48 |
| → romesrf joined | 20:48 |
| → malmalmal joined | 20:53 |
| → emf joined | 20:58 |
| → pyevery__ joined | 20:59 |
| ← zulutango left | 21:01 |
| ← Vonter left | 21:02 |
| ← tyson2 left | 21:02 |
| → Yruama joined | 21:02 |
| ← DK3 left | 21:05 |
| → tyson2 joined | 21:05 |
| → zulutango joined | 21:05 |
| ← GNUmoon left | 21:06 |
| → rgrinberg joined | 21:09 |
| → Vonter joined | 21:11 |
| ← furrymcgee left | 21:11 |
| ← l4s8g left | 21:13 |
| → zeenk joined | 21:15 |
|
quesker
| I have 10 changes to be committed (stuff already git added). is there some way to commit just one of those changes for now? | 21:18 |
|
| I just want that commit to have a different message than the rest | 21:18 |
| → worky joined | 21:18 |
|
quesker
| without unstaging the others would be nice | 21:18 |
|
mackerman
| git rm --cached # will unstage paths | 21:20 |
| ← Vonter left | 21:20 |
| ← wonty left | 21:21 |
|
rudi_s
| quesker: git commit can take a path spec, but that only works if one of these changes is the only change in a single file. | 21:24 |
|
quesker
| hmm not sure what that means but I will try it | 21:25 |
|
rudi_s
| quesker: It commits all the changes of a single file. | 21:27 |
|
| So it only helps you if the single change you've added to the index is in a file and there are no other changes you don't want to commit in that file. | 21:27 |
|
quesker
| yeah I think that is what I wanted thanks | 21:27 |
|
| oh I see, my question was vague. I get it | 21:30 |
|
sudoforge
| is there any particular reason that git-diff always exits 0 when using a `-G` pickaxe search along with `--quiet`, which _should_ imply `--exit-code`? | 21:31 |
|
| seems like a bug | 21:32 |
| ← feriman left | 21:32 |
|
sudoforge
| interesting... i can recreate it when supplying a regex, e.g. '^foo' as the argument to -G | 21:36 |
| → m0viefreak joined | 21:37 |
|
sudoforge
| but not without the start-of-line marker | 21:37 |
| ← duxsco left | 21:37 |
|
sudoforge
| e.g. `git diff --cached -G '^foo' --quiet -- some/path` _always_ returns 0, whether or not the line matching ^foo has been modified | 21:38 |
| → masoudd_ joined | 21:44 |
| evanextreme → evanextreme[away | 21:45 |
| ← stewie925 left | 21:45 |
| ← jstein left | 21:47 |
| ← kenanmarasli left | 21:47 |
| ← masoudd left | 21:47 |
| ← yuljk left | 21:49 |
| → wonty joined | 21:50 |
| → yuljk joined | 21:50 |
| ← worky left | 21:53 |
| → donofrio joined | 21:55 |
| ← ackyshake left | 21:56 |
| → AbleBacon joined | 21:56 |
| ← donofrio left | 21:57 |
| → Betal joined | 21:57 |
| ← xx left | 21:57 |
| ← s1b1 left | 21:59 |
| ← DrowningElysium left | 22:00 |
| ← malmalmal left | 22:00 |
| ← madewokherd left | 22:03 |
| ← vancz left | 22:08 |
| ← vitali64 left | 22:13 |
| → GNUmoon joined | 22:14 |
| → ackyshake joined | 22:15 |
| ← Null_A left | 22:16 |
| ← pyevery__ left | 22:16 |
| ← Rashad left | 22:24 |
| → Null_A joined | 22:24 |
| ← Null_A left | 22:24 |
| → Null_A joined | 22:24 |
| → terminalpusher joined | 22:24 |
| ← wolfshappen left | 22:25 |
| ← Betal left | 22:27 |
| → vancz joined | 22:30 |
| ← Vaelatern left | 22:30 |
| ← ackyshake left | 22:31 |
| ← rgrinberg left | 22:33 |
| → rgrinberg joined | 22:35 |
| → Vaelatern joined | 22:35 |
| ← Vaelatern left | 22:35 |
| → Vaelatern joined | 22:35 |
| ← spare left | 22:36 |
| → s1b1 joined | 22:37 |
| → madewokherd joined | 22:39 |
| → vicfred joined | 22:42 |
| ← frm left | 22:44 |
| ← evanextreme[away left | 22:44 |
| → k8yun joined | 22:44 |
| → Betal joined | 22:45 |
| ← john_johnk left | 22:46 |
| → XV8 joined | 22:47 |
| ← emf left | 22:48 |
| ← cliluw left | 22:50 |
| ← terminalpusher left | 22:52 |
| → emf joined | 22:55 |
| ← gh34 left | 22:58 |
| → junebug joined | 22:58 |
| ← Null_A left | 22:59 |
| ← rgrinberg left | 22:59 |
| → stewie925 joined | 23:01 |
| → Yruama_ joined | 23:02 |
| ← Yruama left | 23:02 |
| ← pizdets left | 23:02 |
| → pizdets joined | 23:03 |
| ← romesrf left | 23:09 |
| → cliluw joined | 23:13 |
| ← leah2 left | 23:15 |
| → Null_A joined | 23:16 |
| ← coot left | 23:19 |
| ← Null_A left | 23:20 |
|
DoofusCanadensis
| I just got handed some code that does a `git checkout` followed by a `git reset --hard`. that seems duplicative | 23:23 |
| → Xenguy joined | 23:23 |
| → Xenguy_ joined | 23:26 |
| → leah2 joined | 23:27 |
| ← Xenguy left | 23:29 |
| → Shashin joined | 23:32 |
| ← braxas left | 23:35 |
| ← sa left | 23:35 |
| ← Illya left | 23:35 |
| ← cozycactus left | 23:35 |
| ← manveru left | 23:35 |
| ← Manouchehri left | 23:35 |
| ← zeenk left | 23:35 |
| → Illya joined | 23:35 |
| ← relipse left | 23:35 |
| ← offby1 left | 23:35 |
| ← mannequin left | 23:35 |
| ← nightstrike left | 23:35 |
| ← kenyon left | 23:35 |
| → offby1 joined | 23:35 |
| ← ^3^ left | 23:35 |
| ← Baughn left | 23:35 |
| ← LadyLioness left | 23:35 |
| ← gajus left | 23:35 |
| ← peac left | 23:36 |
| ← bn_work left | 23:36 |
| ← sunarch left | 23:36 |
| ← Sario left | 23:36 |
| ← whatsupdoc left | 23:36 |
| ← merpnderp left | 23:36 |
| ← fdv left | 23:36 |
| ← ross left | 23:36 |
| ← sharpertool left | 23:36 |
| ← Darkfoe left | 23:36 |
| ← englishm left | 23:36 |
| ← derfj left | 23:36 |
| ← redrambles left | 23:36 |
| ← neoweb left | 23:36 |
| ← jakesyl__ left | 23:36 |
| → manveru joined | 23:36 |
| → Manouchehri joined | 23:36 |
| → relipse joined | 23:36 |
| → ^3^ joined | 23:36 |
| → braxas joined | 23:36 |
| ← manveru left | 23:36 |
| → manveru joined | 23:36 |
| → gajus joined | 23:36 |
| ← ^3^ left | 23:36 |
| → ^3^ joined | 23:36 |
| → redrambles joined | 23:36 |
| → ross joined | 23:36 |
| ← ross left | 23:36 |
| → ross joined | 23:36 |
| → sunarch joined | 23:36 |
| → fdv joined | 23:36 |
| → peac joined | 23:36 |
| → jakesyl__ joined | 23:36 |
| → Baughn joined | 23:36 |
| → LadyLioness joined | 23:36 |
| → merpnderp joined | 23:36 |
| → Sario joined | 23:36 |
| → mannequin joined | 23:36 |
| → Darkfoe joined | 23:36 |
| → sharpertool joined | 23:36 |
| → neoweb joined | 23:36 |
| → englishm joined | 23:36 |
| → sa joined | 23:36 |
| → whatsupdoc joined | 23:36 |
| → cozycactus joined | 23:36 |
| → kenyon joined | 23:37 |
| → nightstrike joined | 23:37 |
| → derfj joined | 23:37 |
| → bn_work joined | 23:37 |
| ← n-st left | 23:38 |
| → n-st joined | 23:38 |
| ← palasso left | 23:39 |
|
sudoforge
| DoofusCanadensis: yes, that makes no sense whatsoever | 23:40 |
|
| you can delete the `git reset --hard` call | 23:40 |
|
DoofusCanadensis
| that's what I was thinking | 23:42 |
| → ackyshake joined | 23:42 |
|
rewt
| what happens with git checkout if there are modified files? | 23:43 |
| ← causasui left | 23:43 |
|
BtbN
| nothing, if what you're checking out doesn't touch them | 23:44 |
| → crashrep joined | 23:44 |
|
BtbN
| it fails if it does | 23:44 |
| → rgrinberg joined | 23:45 |
| ← Shashin left | 23:45 |
|
DoofusCanadensis
| oh thanks. need to add --force to these checkouts | 23:46 |
| ← XV8 left | 23:46 |
| ← rgrinberg left | 23:47 |
| → Null_A joined | 23:48 |
| ← jjakob left | 23:52 |
| → jjakob joined | 23:52 |
| ← Null_A left | 23:53 |
| → dimi1947 joined | 23:53 |
| → causasui joined | 23:55 |
| ← mat001 left | 23:56 |
| → causa_sui joined | 23:57 |