| 2022-01-09 |
| ← jstein left | 00:00 |
| → Xenguy_ joined | 00:01 |
| → rgrinberg joined | 00:03 |
| ← Xenguy left | 00:04 |
| → daoudr joined | 00:08 |
| ← pyeveryt_ left | 00:11 |
| anandn → anandn[away] | 00:15 |
| ← anandn[away] left | 00:15 |
| ← TonyStone left | 00:17 |
| ← ThePhilgrim left | 00:17 |
| → anandn joined | 00:20 |
| ← ramblebamble left | 00:22 |
| → pretty_dumm_guy joined | 00:29 |
| → chenqisu1 joined | 00:29 |
| ← dextercd left | 00:30 |
| ← TheCatBehemoth left | 00:33 |
| → duxsco joined | 00:34 |
| → jazzy joined | 00:35 |
| ← Vonter left | 00:35 |
| ← maxzor__ left | 00:40 |
| ← xx left | 00:46 |
| ← goldfish left | 00:46 |
| → Xenguy joined | 00:48 |
| ← DrowningElysium left | 00:50 |
| ← Xenguy_ left | 00:51 |
| → Vonter joined | 00:53 |
| ← Novi left | 00:54 |
| ← boxframes left | 00:57 |
| → Novi joined | 00:57 |
| → maxzor__ joined | 00:58 |
| ← xkuru left | 01:05 |
| → Kilroy joined | 01:08 |
| → anaveragehuman joined | 01:09 |
| dirigible_ → dirigible | 01:12 |
| ← dirigible left | 01:12 |
| ← srinidhi left | 01:13 |
| → pyevery__ joined | 01:17 |
| ← algae left | 01:17 |
| ← duxsco left | 01:18 |
| → dirigible joined | 01:19 |
| ← tulpa_ left | 01:20 |
| → srinidhi joined | 01:22 |
| ← pyevery__ left | 01:23 |
| ← rgrinberg left | 01:25 |
| → rgrinberg joined | 01:27 |
| ← rgrinberg left | 01:27 |
| ← Jong left | 01:34 |
| ← Vonter left | 01:35 |
| ← Gurkenglas left | 01:37 |
| → Vonter joined | 01:37 |
| ← daoudr left | 01:42 |
| → algae joined | 01:59 |
| ← bluesm left | 02:00 |
| → led_belly joined | 02:00 |
| ← fikran left | 02:00 |
| → fikran joined | 02:02 |
| → bkay joined | 02:03 |
| → vysn joined | 02:04 |
| ← beshr left | 02:04 |
| ← maxzor__ left | 02:05 |
| ← justIrresolute left | 02:05 |
| → TonyStone joined | 02:06 |
| → justIrresolute joined | 02:06 |
| ← TonyStone left | 02:11 |
| → TonyStone joined | 02:11 |
| ← travisghansen left | 02:20 |
| → travisghansen joined | 02:21 |
| → locrian9 joined | 02:22 |
| ← cliluw left | 02:23 |
| → cliluw joined | 02:23 |
| → pyevery__ joined | 02:26 |
| → trafficjam joined | 02:27 |
|
trafficjam
| hey guys, how can i ssh pull none-master branches on a github repo i own? | 02:27 |
|
| i cloned the public repo on a new system, but i can't see any branches other than master | 02:28 |
|
| and i added a new ssh key to my laptop and added it to the github ssh keys page, but that doesn't seem to have fixed it | 02:28 |
| → imp joined | 02:30 |
|
trafficjam
| also added the Id_rsa_custom to ~/.ssh/config, but still no change | 02:31 |
|
| is there some other command i have to run? | 02:31 |
|
| do i have to clone it after updating .ssh/config? | 02:32 |
|
packet_lozenge
| Just checkout the branch you want to switch to | 02:33 |
| → Maxattax97 joined | 02:34 |
| → bin101_ joined | 02:34 |
|
packet_lozenge
| Git should automatically create a local branch that's correctly linked to the remote branch | 02:34 |
| ← bin101 left | 02:34 |
|
trafficjam
| packet_lozenge: ah so the branch is there, but `git branch` just wont show it until i checkout it out first? | 02:36 |
| ← pyevery__ left | 02:36 |
|
packet_lozenge
| Right. That command only shows branches that have been created locally | 02:37 |
|
trafficjam
| oh ok, thanks, and is there a way of listing all branches on github, in my terminal? | 02:37 |
|
packet_lozenge
| You need the -a flag to see all branches - local and remote | 02:37 |
|
trafficjam
| perfect, thanks man | 02:38 |
|
packet_lozenge
| As for your SSH issue, you can try ssh -v -T [email@hidden.address] to see what keys it's trying to use with github | 02:39 |
|
| I suspect that perhaps your ssh configuration isn't correct | 02:39 |
| → Jong joined | 02:43 |
| → junebug joined | 02:46 |
| ← junebug left | 02:47 |
| ← natewrench123456 left | 02:47 |
| ← TonyStone left | 02:55 |
| → TonyStone joined | 02:56 |
| ← Yruama left | 02:58 |
| → user1 joined | 03:00 |
| → rgrinberg joined | 03:01 |
| ← justIrresolute left | 03:05 |
| → justIrresolute joined | 03:06 |
| → pyevery__ joined | 03:11 |
|
drew
| I am trying to sign my commits but I get error: gpg failed to sign the data | 03:16 |
| ← dsrt^ left | 03:16 |
|
drew
| how do I troubleshoot where gpg is going wrong? | 03:16 |
|
| I can see my key in gpg --list-secret-keys | 03:16 |
| ← cdown left | 03:17 |
| → black_13 joined | 03:22 |
| ← shailangsa left | 03:27 |
| ← locrian9 left | 03:27 |
| ← black_13 left | 03:29 |
| anandn → anandn[away] | 03:33 |
| ← anandn[away] left | 03:33 |
| ← ChmEarl left | 03:34 |
| → anandn joined | 03:39 |
| ← anandn left | 03:39 |
| → anandn joined | 03:40 |
| ← gast0n left | 03:44 |
| ← led_belly left | 03:46 |
| → led_belly joined | 03:49 |
| ← hbautista left | 03:52 |
| → hbautista joined | 03:54 |
| → shailangsa joined | 03:54 |
| → Xenguy_ joined | 03:58 |
| ← hbautista left | 04:00 |
| ← Xenguy left | 04:01 |
| ← skapata left | 04:01 |
| → hbautista joined | 04:03 |
| → locrian9 joined | 04:04 |
| ← justIrresolute left | 04:05 |
| ← hbautista left | 04:06 |
| → justIrresolute joined | 04:06 |
| → hbautista joined | 04:06 |
| ← fikran left | 04:09 |
| → fikran joined | 04:11 |
| ← algae left | 04:12 |
| → Pseudocrat joined | 04:12 |
| ← jab416171 left | 04:14 |
| ← pyevery__ left | 04:18 |
| → pyevery__ joined | 04:19 |
| → jab416171 joined | 04:20 |
| → Xenguy__ joined | 04:23 |
| ← pyevery__ left | 04:23 |
| ← Xenguy_ left | 04:26 |
| → Xenguy joined | 04:27 |
| ← Xenguy__ left | 04:29 |
| → bytehackr joined | 04:32 |
| → xx joined | 04:36 |
| ← vakera_pingveno left | 04:36 |
| → gco joined | 04:39 |
| ← tyson2 left | 04:47 |
| → madewokherd` joined | 04:50 |
| ← madewokherd left | 04:52 |
| → Xenguy_ joined | 04:54 |
| ← Xenguy left | 04:56 |
| → pyeveryt_ joined | 04:56 |
| → boxframes joined | 04:57 |
| ← R2robot left | 04:57 |
| ← rgrinberg left | 04:59 |
| → Xenguy joined | 04:59 |
| → dsrt^ joined | 04:59 |
| → rgrinberg joined | 05:00 |
| ← Xenguy_ left | 05:00 |
| → Xenguy_ joined | 05:02 |
| ← Xenguy left | 05:04 |
| ← justIrresolute left | 05:05 |
| ← srinidhi left | 05:05 |
| ← vishal left | 05:05 |
| → justIrresolute joined | 05:06 |
| ← pyeveryt_ left | 05:06 |
| → vishal joined | 05:07 |
| ← JanC left | 05:08 |
| → JanC joined | 05:08 |
| ← anaveragehuman left | 05:13 |
| ← trafficjam left | 05:19 |
| → parv joined | 05:32 |
| ← great_taste left | 05:32 |
| ← Murr left | 05:33 |
| → Murr joined | 05:33 |
| ← Vonter left | 05:36 |
| → Vonter joined | 05:37 |
| ← rgrinberg left | 05:41 |
| → murii joined | 05:42 |
| → dflick joined | 05:43 |
| → pyevery__ joined | 05:43 |
| → Xenguy__ joined | 05:46 |
| ← murii left | 05:47 |
| → trafficjam joined | 05:47 |
| ← Xenguy_ left | 05:48 |
| ← pyevery__ left | 05:49 |
| ← trafficjam left | 05:50 |
| → Xenguy_ joined | 05:50 |
| → whatsupdoc joined | 05:51 |
| → Xenguy joined | 05:53 |
| ← Xenguy__ left | 05:53 |
| ← Xenguy_ left | 05:54 |
| ← BSaboia left | 05:55 |
| ← Thanatermesis left | 05:57 |
| ← defjam left | 05:58 |
| → defjam joined | 06:00 |
| → Xenguy_ joined | 06:01 |
| → maxzor__ joined | 06:03 |
| ← Xenguy left | 06:04 |
| → rgrinberg joined | 06:04 |
| ← gco left | 06:05 |
| → srinidhi joined | 06:08 |
| → Xenguy__ joined | 06:09 |
| ← Xenguy_ left | 06:11 |
| ← fikran left | 06:18 |
| → BSaboia joined | 06:19 |
| → fikran joined | 06:20 |
| → kenanmarasli joined | 06:23 |
| ← rgrinberg left | 06:25 |
| → bt-01 joined | 06:26 |
| ← bytehackr left | 06:32 |
| → rgrinberg joined | 06:32 |
| ← zebrag left | 06:32 |
| ← Vonter left | 06:38 |
| ← stef204 left | 06:43 |
| → FH_thecat joined | 06:46 |
| ← FH_thecat left | 06:50 |
| → FH_thecat joined | 06:50 |
| ← rgrinberg left | 06:51 |
| ← YoungFrog left | 06:52 |
| → YoungFrog joined | 06:52 |
| → Xenguy_ joined | 06:53 |
| ← Xenguy__ left | 06:56 |
| ← BSaboia left | 06:57 |
| → Xenguy__ joined | 06:58 |
| ← Xenguy_ left | 07:00 |
| → Xenguy joined | 07:01 |
| ← Xenguy__ left | 07:02 |
| ← Maxattax97 left | 07:02 |
| → igemnace joined | 07:04 |
| → BSaboia joined | 07:05 |
| ← tirnanog left | 07:07 |
| → Vonter joined | 07:09 |
| ← bket left | 07:11 |
| → bket joined | 07:13 |
| ← Betal left | 07:13 |
| ← Vonter left | 07:14 |
| → rgrinberg joined | 07:15 |
| → pyeveryt_ joined | 07:15 |
| → Vonter joined | 07:16 |
| ← pyeveryt_ left | 07:17 |
| → Xenguy_ joined | 07:24 |
| ← Pseudocrat left | 07:25 |
| ← Xenguy left | 07:26 |
| → R2robot joined | 07:30 |
| → Brumaire joined | 07:38 |
| → Lemuria joined | 07:41 |
| ← Lemuria left | 07:41 |
| → xmyst joined | 07:44 |
| ← pretty_dumm_guy left | 07:44 |
| → Pseudocrat joined | 07:44 |
| ← BSaboia left | 07:44 |
| → pyevery__ joined | 07:46 |
| ← pyevery__ left | 07:48 |
| michele- → michele | 08:03 |
| ← unluckyshrubbery left | 08:04 |
| → murii joined | 08:05 |
| ← hoochmonger left | 08:05 |
| ← Vonter left | 08:07 |
| → Xenguy joined | 08:14 |
| ← Pseudocrat left | 08:15 |
| ← Xenguy_ left | 08:16 |
| → palasso joined | 08:20 |
| ← theoceaniscool left | 08:22 |
| → ankithans joined | 08:23 |
| ← hbautista left | 08:23 |
| → hbautista joined | 08:24 |
| ← ankithans left | 08:25 |
| → meator joined | 08:27 |
| ← fikran left | 08:28 |
| → Vonter joined | 08:28 |
| → fikran joined | 08:30 |
| ← alex88 left | 08:31 |
| ← xmyst left | 08:32 |
| → alex88 joined | 08:33 |
| ← Vonter left | 08:34 |
| → theoceaniscool joined | 08:35 |
| → Vonter joined | 08:36 |
| → Guest23 joined | 08:36 |
| ← Guest23 left | 08:37 |
| → pyevery__ joined | 08:39 |
| ← pyevery__ left | 08:40 |
| → Pseudocrat joined | 08:43 |
| ← theoceaniscool left | 08:44 |
| ← hbautista left | 08:47 |
| → hbautista joined | 08:47 |
| ← howdoi left | 08:47 |
| ← rgrinberg left | 08:48 |
| ← Pseudocrat left | 08:48 |
| ← bt-01 left | 08:51 |
| ← hbautista left | 08:56 |
| → theoceaniscool joined | 09:02 |
| → abu joined | 09:02 |
| → roadie joined | 09:02 |
| ← justIrresolute left | 09:05 |
| → justIrresolute joined | 09:06 |
| → rsx joined | 09:07 |
| → ___nick___ joined | 09:07 |
| → spare joined | 09:15 |
| ← Vonter left | 09:15 |
| → Xenguy_ joined | 09:16 |
| → Pseudocrat joined | 09:16 |
| → feriman joined | 09:17 |
| ← Xenguy left | 09:19 |
| ← Pseudocrat left | 09:21 |
| → ubique joined | 09:23 |
| → Xenguy__ joined | 09:26 |
| ← Xenguy_ left | 09:29 |
| → moti86 joined | 09:31 |
| ← Murr left | 09:33 |
| → Murr joined | 09:33 |
| ← moti86 left | 09:34 |
| → Gurkenglas joined | 09:35 |
| ← anandn left | 09:35 |
| → TheCatBehemoth joined | 09:39 |
| ← yanmaani left | 09:40 |
| → anandn joined | 09:42 |
| → yanmaani joined | 09:46 |
| → carl- joined | 09:48 |
| → Camilo joined | 09:48 |
| → unluckyshrubbery joined | 09:49 |
| → Pseudocrat joined | 09:50 |
| ← shailangsa left | 09:53 |
| ← Pseudocrat left | 09:56 |
| ← ubique left | 10:03 |
| → Xenguy_ joined | 10:06 |
| ← Rashad left | 10:08 |
| → Rashad joined | 10:08 |
| ← Xenguy__ left | 10:08 |
| ← FH_thecat left | 10:12 |
| → shailangsa joined | 10:18 |
| ← maxzor__ left | 10:19 |
| → bt-01 joined | 10:22 |
| JumpinBa| → JumpinBanana | 10:23 |
| ← locrian9 left | 10:27 |
| ← Oblomov left | 10:27 |
| → Pseudocrat joined | 10:27 |
| → john_johnk joined | 10:31 |
| → Vonter joined | 10:32 |
| ← Pseudocrat left | 10:32 |
| → Lord_of_Life_ joined | 10:34 |
| ← Lord_of_Life left | 10:36 |
| ← fikran left | 10:37 |
| Lord_of_Life_ → Lord_of_Life | 10:37 |
| → fikran joined | 10:39 |
| → ircs joined | 10:40 |
| → pyeveryt_ joined | 10:41 |
| ← anandn left | 10:43 |
| → OnkelTem joined | 10:43 |
| → Xenguy__ joined | 10:43 |
| ← bloody left | 10:44 |
| ← Xenguy_ left | 10:45 |
| → Pseudocrat joined | 10:46 |
| ← pyeveryt_ left | 10:46 |
| ← abu left | 10:47 |
| ← Pseudocrat left | 10:51 |
| ← ircs left | 10:52 |
| ← feriman left | 10:52 |
| → feriman joined | 10:53 |
| → Oblomov joined | 10:54 |
| → furrymcgee joined | 10:55 |
| → coot joined | 10:56 |
| → hseg joined | 10:57 |
| ← stats4647 left | 10:58 |
| ← yanmaani left | 10:58 |
|
hseg
| Hi. Have a bunch of feature branches I want to rebase on top of master and ff-merge master to | 10:58 |
|
| atm, am doing rebase --onto=master origin/master; fetch . feature:master; switch master; branch -d feature | 10:59 |
| → stats4647 joined | 10:59 |
|
hseg
| but that's getting annoying fast with my long branch names | 10:59 |
|
| any ideas of a better way? | 10:59 |
| → yanmaani joined | 11:00 |
|
j416
| hseg: why --onto? | 11:00 |
|
hseg
| bc I've been bitten in the past with rebase not doing what I expected, so I tend to be more verbose with it nowadays | 11:01 |
| ← dsrt^ left | 11:01 |
|
j416
| I see. | 11:01 |
|
| specifying it each and every time seems just as dangerous though; it's not like a fix for everything :) | 11:02 |
|
| use it when you need it | 11:02 |
| → dsrt^ joined | 11:02 |
|
hseg
| ofc not, but it does what I want frequently enough for me | 11:02 |
|
j416
| git checkout master && git pull && git checkout feature && git rebase master && git merge feature | 11:03 |
|
| then for each | 11:03 |
| → Pseudocrat joined | 11:03 |
|
j416
| git checkout feature2 && git rebase master && git checkout master && git merge feature2 | 11:03 |
|
| ? | 11:03 |
| ← stats4647 left | 11:03 |
| → ramblebamble joined | 11:03 |
|
j416
| you can tab-complete branch names. | 11:04 |
|
| and you can use "-" to mean the thing you had checked out last | 11:04 |
|
| so you can "git checkout master && git merge -" | 11:04 |
|
hseg
| oh, that looks like it might work, trying for next feature, a moment | 11:05 |
|
ramblebamble
| j416, where can I read about this - meaning the last branch checked out thing? | 11:06 |
|
j416
| ramblebamble: man gitrevisions | 11:06 |
|
gitinfo
| ramblebamble: the gitrevisions manpage is available at https://gitirc.eu/gitrevisions.html | 11:06 |
|
ramblebamble
| cheers | 11:07 |
|
| that is the only regret I have looking at git, it is so vast/comples and well documented, but finding some jewels/information proves quite difficult at times | 11:08 |
|
j416
| ah, doesn't mention it clearly | 11:08 |
|
| man git-checkout | 11:08 |
|
gitinfo
| the git-checkout manpage is available at https://gitirc.eu/git-checkout.html | 11:08 |
|
j416
| > You can use the @{-N} syntax to refer to the N-th last branch/commit checked out using "git checkout" operation. You may also specify - which is synonymous to @{-1}. | 11:08 |
|
| and the gitrevisions man page explains the @{-N} synta | 11:09 |
|
| x | 11:09 |
|
ramblebamble
| That one I actually encountered with HEAD@{} and stash@{} | 11:09 |
|
j416
| note that @{N} is not @{-N} | 11:09 |
|
ramblebamble
| so If I read this correctly @{N} referrs to the Nth commit prior to , in this case, HEAD while @{-N} referrs to the Nth branch checked out prior the current one? | 11:12 |
| → cdown joined | 11:16 |
|
ramblebamble
| currently browsing through the gitrevisions manpage, will definitely investigate some of those queries in some repo with complex history, I just have one last question, j416, how do I know the layout of the commit-ordering? e.g. in the manpages G = A^^^ = A~3, where is apparently the ancestor all the way to the left in the tree while B^2 is the 2nd from the left so E. How can I infer the ordering of | 11:17 |
|
| those commits looking at a repository? | 11:17 |
|
j416
| ramblebamble: the commits form a graph where a commit has zero or more parents | 11:18 |
|
hseg
| sure -- but given a merge M, what's M^ ? | 11:19 |
|
ramblebamble
| exactly or what is M^3 | 11:19 |
|
j416
| M^ is M^1, the first parent of the merge commit | 11:19 |
|
| M^3 would be unusual, the third parent (of an octopus merge) | 11:19 |
|
ramblebamble
| ok how do I deduce which one is the first parent? | 11:19 |
|
j416
| M^1 is the first parent | 11:19 |
|
| the branch which you merged M^2 into | 11:20 |
|
| (or commit) | 11:20 |
|
ramblebamble
| ok let me back of and ask differently, looking at a history-graph(git log --graph --oneline --all) what lets me determin the first parent of commit X, without actually trying a query like git show X^ | 11:21 |
|
| So How do I see it? | 11:21 |
|
j416
| given "git checkout master && git merge --no-ff feature", there's a new merge commit M on master. M^1 is master as it was before you merged feature. M^2 is equal to feature. | 11:22 |
|
| (M only has two parents, so M^3 does not exist) | 11:22 |
|
ramblebamble
| ok so looking at a merge-commit, the first parent is always the commit directly preceeding the merge-commit on the same branch and the 2nd parent is the last commit on the feature-branch? | 11:23 |
|
j416
| you can see the parent commits by using e.g. git log -1 --format=fuller <commit> | 11:24 |
|
| ramblebamble: yes. | 11:24 |
|
ramblebamble
| awesome thank you. | 11:24 |
| ← feriman left | 11:25 |
| ← hseg left | 11:27 |
|
ramblebamble
| Ah I also see that your command with fuller lists the first parent as first commit :) | 11:27 |
|
j416
| yes | 11:27 |
| → hseg joined | 11:27 |
|
ramblebamble
| Thank goodness I do not dabble in octopus commits, | 11:27 |
|
j416
| you can also try --format=raw | 11:27 |
|
| this is how the commit looks in its plain form | 11:28 |
|
| as in, what is stored verbatim (sans the colouring if you have that) | 11:28 |
|
| (well, sans the first line at all, the commit hash is obviously not part of the commit) | 11:28 |
|
ramblebamble
| got it and in the parent-commits left to right became up to down | 11:29 |
|
j416
| git cat-file -p <commit> | 11:29 |
|
| and I lied; never realised --format=raw indents the commit message; apparently it does. | 11:29 |
|
ramblebamble
| k didn't even notice | 11:30 |
|
j416
| (cat-file shows the actual object as stored) | 11:30 |
|
ramblebamble
| it makes sense that the id of the commit its hash is not part of the object, but where does git store those? | 11:30 |
|
ikke
| ramblebamble: as loose objects, it's the filename | 11:31 |
| → feriman joined | 11:31 |
|
ikke
| The hash names the object | 11:31 |
|
j416
| and the hash (object name) is (perhaps obviously) the hash of the contents, i.e. what cat-file output in the example above | 11:32 |
|
| (with some extra) | 11:32 |
| → Xenguy_ joined | 11:33 |
| ← Murr left | 11:33 |
|
j416
| more info https://git-scm.com/book/en/v2/Git-Internals-Git-Objects | 11:33 |
|
ramblebamble
| ikke, ah so that is pretty much the content of the files stored somewhere in git with funny looking folder(hexadecimal 2 chars only and nested)? | 11:33 |
| → zer0bitz joined | 11:33 |
| → Murr joined | 11:33 |
|
j416
| that's the basic storage format yes; and then there are packfiles which store many objects in one file to allow delta compression and faster retrieval | 11:34 |
|
ikke
| .git/objects/hash{0,2}/hash{2,40} | 11:34 |
| ← feriman left | 11:35 |
| ← Xenguy__ left | 11:35 |
|
hseg
| ok, so using - for previous checkout works -- eg merge accepts it. unfortunately, branch doesn't. | 11:36 |
|
ramblebamble
| thank you both, will have to sit on that information for a while to let it sink in, especially the git revisions stuff will keep me a bit busy, not that I will need it all, but you never know :) | 11:36 |
|
hseg
| which makes sense | 11:36 |
|
j416
| hseg: branch creates a branch; what are you after? | 11:36 |
|
hseg
| "delete this branch and switch to $branch" or "delete previously-checked-out branch" | 11:37 |
|
| eh. worst case can just copy-paste from scrollback | 11:37 |
| → Trieste_ joined | 11:37 |
|
j416
| ramblebamble: it's a lot to take in but give it time and it'll feel obvious | 11:38 |
|
| ah. | 11:38 |
| ← Trieste left | 11:38 |
|
ramblebamble
| j416, that is what I intend to do :) . You know what they say, that which does not fit into your head ought to be stacked ontop of it | 11:39 |
|
j416
| hseg: maybe you can steal something from my "kill branch" script (it deletes a branch locally and remotely, and switches to the last checked out branch) -> https://github.com/jsageryd/.config.d/blob/5eb5a1c96e68/scripts/git/workflow/kill.bash | 11:39 |
|
| ramblebamble: haha. | 11:39 |
|
ramblebamble
| what will probably amaze me to the end of days is what warped/complex use-cases have caused this type of sophisticated reference-system to occure I mean @{yesterday} ? | 11:40 |
|
foo
| j416: thanks, re: the git commit that I didn't know what branch it was in | 11:40 |
|
j416
| foo: o/ | 11:40 |
| → enoq joined | 11:40 |
| → feriman joined | 11:41 |
| Trieste_ → Trieste | 11:41 |
|
hseg
| that looks exactly like what I need | 11:41 |
|
j416
| ramblebamble: that one's handy when you lose something; like, I know I had this commit just before lunch but I lost it along the way, then you can find it by e.g. git log HEAD@{2.hours.ago} | 11:41 |
|
ramblebamble
| ok that makes sennse | 11:41 |
|
hseg
| barring the fact that these branches are all local, but thanks! | 11:42 |
|
ramblebamble
| s/nn/n/ | 11:42 |
|
j416
| hseg: then just skip the last line :) | 11:42 |
|
hseg
| (^_^ d) | 11:43 |
|
j416
| hseg: in english: if the branch is not currently checked out, just delete it. If the branch to be deleted is currently checked out, check out whatever was checked out before that first, then try to delete it. (Git won't allow you to delete the branch you are on). | 11:44 |
|
| it won't of course work if you run "git checkout mybranch" twice first, because then the last checked out branch will still be mybranch. But then maybe you have other problems. | 11:46 |
|
| (like not knowing which branch you are on, and maybe not knowing how to tie your shoes) | 11:46 |
| ← feriman left | 11:47 |
| → Yruama joined | 11:47 |
| → tyson2 joined | 11:49 |
| ← Vonter left | 11:51 |
| ← bn_work left | 11:51 |
| → Vonter joined | 11:52 |
| ← canton7 left | 11:53 |
| → feriman joined | 11:53 |
| ← imp left | 11:53 |
| → duxsco joined | 11:54 |
| → canton7 joined | 11:55 |
| ← enoq left | 11:57 |
|
hseg
| turns out my ask for "delete previous branch" does exist -- https://stackoverflow.com/a/48705399 -- branch accepts @{-1} (but not -) | 11:58 |
|
| so my flow can just be git rebase --onto=master origin/master && git switch - && git merge - && git branch -d @{-1} | 11:59 |
|
| which conveniently is portable across feature branches | 11:59 |
| ← feriman left | 12:00 |
|
j416
| didn't know it could do that. | 12:01 |
|
| and you can skip --onto. | 12:01 |
|
| that only makes sense if your local master has diverged from origin/master | 12:02 |
| → bytehackr joined | 12:02 |
|
j416
| which I assume it has not, but if it has you might want to fix that first | 12:03 |
|
hseg
| it just has some extra commits | 12:04 |
|
| haven't pushed them yet, want to still be able to rewrite history without breaking the world | 12:04 |
|
j416
| then no difference with --onto | 12:04 |
|
| because your feature branches are based on an ancestor of master | 12:05 |
| ← ramblebamble left | 12:05 |
|
osse
| you cannot simply remove --onto without changing origin/master to master | 12:05 |
| ← Vonter left | 12:05 |
|
j416
| ^ of course. | 12:06 |
|
| git rebase master, would be what you want. | 12:06 |
|
hseg
| right. don't remember what the bug was that scared me into this | 12:06 |
|
j416
| (or you'd be rebasing on origin/master) | 12:06 |
| ← Pseudocrat left | 12:06 |
|
hseg
| let's try trusting git for a while | 12:07 |
| → Vonter joined | 12:07 |
|
j416
| another question is why you have commits locally on master without having them pushed; if they're ready for master maybe they can be pushed? :) | 12:07 |
| → cvmn joined | 12:08 |
|
j416
| just, an idea. | 12:08 |
|
hseg
| was calling it "master" because it's my mainline wip branch | 12:08 |
|
j416
| (so that you don't end up needing to rebase master and subsequently all of your feature branches because origin/master had new commits before you pushed yours) | 12:08 |
|
| ah, so no one else is working on it. I see. | 12:09 |
| ← x88x88x left | 12:09 |
|
hseg
| am new to the team, want to be able to get code review | 12:09 |
| ← meator left | 12:09 |
|
hseg
| though coding practices here leave something to be desired, suspect I won't be getting any review if all tests pass | 12:09 |
| → x88x88x joined | 12:10 |
|
osse
| write a test that fails :p | 12:10 |
|
| assert(false, true, "please read my code") | 12:10 |
|
hseg
| :D | 12:10 |
|
j416
| haha. | 12:10 |
| ← Trieste left | 12:10 |
| → Trieste_ joined | 12:10 |
| → feriman joined | 12:11 |
|
j416
| nice one, might try adding some of those | 12:11 |
|
| although we don't really do code review so not much of an issue (we tend to pair or mob program instead most of the time) | 12:11 |
| Trieste_ → Trieste | 12:14 |
| ← feriman left | 12:15 |
| → Pseudocrat joined | 12:19 |
| ← chenqisu1 left | 12:20 |
| → bluesm joined | 12:20 |
| → xkuru joined | 12:21 |
| → feriman joined | 12:21 |
| ← AbleBacon left | 12:22 |
| ← fling left | 12:23 |
| ← Pseudocrat left | 12:24 |
| ← hseg left | 12:27 |
| → stats4647 joined | 12:27 |
| → hseg joined | 12:27 |
| ← feriman left | 12:28 |
| → fling joined | 12:28 |
| ← parv left | 12:32 |
| ← Vonter left | 12:32 |
| → feriman joined | 12:34 |
|
foo
| Huh, I did git branch contains mybranch | 12:35 |
|
| And it looks like a new branch "contains" was created. I meant it to be --contains, heh | 12:35 |
| → Pseudocrat joined | 12:37 |
| ← stats4647 left | 12:38 |
|
nedbat
| foo: "git branch <name> [<startfrom>]" creates a branch | 12:38 |
|
foo
| nedbat: huh, thanks. I've always done git branch -b <branch> (where startfrom was from current branch). heh, not sure how I missed this. Thank you | 12:40 |
| → peterhil joined | 12:40 |
| ← john_johnk left | 12:41 |
| ← Pseudocrat left | 12:41 |
| ← user1 left | 12:44 |
| → jstein joined | 12:45 |
| ← fikran left | 12:47 |
| → fikran joined | 12:48 |
| ← jazzy left | 12:50 |
| → Vonter joined | 12:52 |
| → john_johnk joined | 12:53 |
| → Pseudocrat joined | 12:55 |
| ← carl- left | 12:57 |
| ← feriman left | 12:58 |
| ← john_johnk left | 12:59 |
| ← bt-01 left | 13:00 |
| → meator joined | 13:01 |
| → stats4647 joined | 13:04 |
| ← OnkelTem left | 13:04 |
| → thiago joined | 13:08 |
| ← coot left | 13:10 |
| → coot joined | 13:11 |
| ← Vonter left | 13:14 |
| → pretty_dumm_guy joined | 13:17 |
| → bt-01 joined | 13:21 |
| ← kenanmarasli left | 13:22 |
| ← hseg left | 13:27 |
| → hseg joined | 13:28 |
| ← bt-01 left | 13:39 |
| ← x88x88x left | 13:44 |
| ← yanmaani left | 13:52 |
| → bt-01 joined | 13:54 |
| → ramblebamble joined | 13:59 |
| ← Pseudocrat left | 13:59 |
| ← whatsupdoc left | 14:00 |
| → x88x88x joined | 14:02 |
| ← Trieste left | 14:02 |
| ← bt-01 left | 14:06 |
| → bt-01 joined | 14:06 |
| → Trieste joined | 14:06 |
| → anaveragehuman joined | 14:11 |
| ← hseg left | 14:13 |
| → joachimo joined | 14:14 |
| → tsujp joined | 14:16 |
| → hseg joined | 14:17 |
| ← tyson2 left | 14:18 |
| → feriman joined | 14:19 |
|
joachimo
| hi i have a question related to reflog: | 14:20 |
|
| I need to do the following: | 14:20 |
|
| 1) remove last commit altogether | 14:20 |
|
| 2) remove all traces of the last commit from the reflog | 14:20 |
|
| 3) remove the file (that was added in the last commit) from staging area and working area | 14:20 |
|
| it seems that the verification script passes when I do a git reset --hard HEAD~1 and git gc. But is this the right way to go about this? | 14:20 |
| → yanmaani joined | 14:20 |
|
joachimo
| as this is an exercise, there is no remote involved | 14:20 |
| ← thiago left | 14:21 |
| → Lemuria joined | 14:24 |
|
j416
| joachimo: that doesn't remove the entry from the reflog. | 14:24 |
| ← Lemuria left | 14:24 |
|
j416
| joachimo: git show <commit> will still show your commit. | 14:24 |
|
| joachimo: you'll have to expire the reflog; man git-reflog | 14:24 |
|
gitinfo
| joachimo: the git-reflog manpage is available at https://gitirc.eu/git-reflog.html | 14:24 |
| ← feriman left | 14:30 |
| ← Rashad left | 14:36 |
| ← boxframes left | 14:37 |
| ← dsrt^ left | 14:39 |
| → Hax0r joined | 14:41 |
| ← coot left | 14:45 |
| → maxzor__ joined | 14:47 |
| ← yanmaani left | 14:51 |
| → skapata joined | 14:54 |
| ← skapata left | 14:54 |
| → skapata joined | 14:54 |
| → Pseudocrat joined | 14:54 |
| ← fikran left | 14:56 |
| ← ramblebamble left | 14:56 |
| → fikran joined | 14:58 |
| → john_johnk joined | 15:03 |
| → Thanatermesis joined | 15:06 |
| → yanmaani joined | 15:08 |
| → DrowningElysium joined | 15:09 |
| → otisolsen70 joined | 15:10 |
| → tyson2 joined | 15:11 |
| ← Brumaire left | 15:11 |
| ← bt-01 left | 15:12 |
| → bloody joined | 15:13 |
| → bt-01 joined | 15:14 |
| ← hseg left | 15:17 |
| → hseg joined | 15:18 |
| ← cvmn left | 15:22 |
| ← ___nick___ left | 15:25 |
| → ___nick___ joined | 15:27 |
| ← ___nick___ left | 15:27 |
| → ___nick___ joined | 15:29 |
|
relipse
| How do i determine the first date a file was committed? | 15:32 |
| ← meator left | 15:34 |
| ← bt-01 left | 15:34 |
| → bt-01 joined | 15:35 |
| ← TonyStone left | 15:35 |
|
relipse
| git log <file> works | 15:36 |
| ← bt-01 left | 15:38 |
| → boxframes joined | 15:40 |
| → stef204 joined | 15:42 |
| → tulpa_ joined | 15:44 |
|
silly
| lolwat!? "...assume main as the default branch name, as this is the new standard in git." | 15:47 |
|
| did i miss something? | 15:47 |
| → TonyStone joined | 15:47 |
|
ikke
| No, it's not the standard yet | 15:49 |
|
| I have not seen any recent topics around it either | 15:49 |
|
silly
| git-scm says it's master | 15:50 |
|
| https://lists.zx2c4.com/pipermail/cgit/2022-January/004671.html | 15:51 |
| ← tulpa_ left | 16:00 |
| → feriman joined | 16:00 |
|
ikke
| Although it will give you a warning, if you have not set init.defaultBranch and initialize a new repo, the first branch will still be master | 16:01 |
| ← igemnace left | 16:04 |
| ← hseg left | 16:05 |
| → igemnace joined | 16:06 |
| ← Hax0r left | 16:08 |
| ← YoungFrog left | 16:09 |
| → YoungFrog joined | 16:10 |
| → kenanmarasli joined | 16:18 |
| → coot joined | 16:18 |
| → great_taste joined | 16:22 |
| → ferdna joined | 16:24 |
| → ChmEarl joined | 16:29 |
| → hseg joined | 16:32 |
| ← The_Blode left | 16:34 |
| → madewokherd joined | 16:35 |
| → natewrench123456 joined | 16:36 |
| ← rsx left | 16:37 |
| ← madewokherd` left | 16:39 |
| ← roadie left | 16:43 |
| ← TheCatBehemoth left | 16:43 |
| → TheCatBehemoth joined | 16:44 |
| ← vysn left | 16:44 |
| ← john_johnk left | 16:48 |
| → The_Blode joined | 16:48 |
| → vakera_pingveno joined | 16:53 |
| → mark_infinite joined | 16:57 |
|
mark_infinite
| Hello! I'm new to git. Is there any aproppriate way to avoid flooding the 'git log' with commits? | 16:58 |
|
ikke
| What is the cause of flooding git log with commits? | 16:59 |
|
| Are you creating lots of small fixup commits that fix mistakes in earlier commits? | 16:59 |
|
mark_infinite
| I don't know. I'm new. I know a very tiny subset of the git's features. -_- | 16:59 |
|
| I just write my code and if it works I commit. I know this seems very bad in practice - log flooding | 17:00 |
|
OMGOMG
| that's still better than making a single commit of 20000 lines | 17:02 |
|
mark_infinite
| OMGOMG: Is creating a new branch and then merging to master a better approach? | 17:02 |
|
OMGOMG
| !rebase-i > if you want to squash commits together | 17:02 |
|
gitinfo
| [!interactive_rebase] Interactive rebase sounds similar to rebase but has completely different abilities. It can do this to commits: change the order, squash some of them together, remove some, add random existing commits from other branches, split them, and more... it's very powerful. Documentation is in the section "Interactive Rebase" in 'man git-rebase'. https://gitirc.eu/git-rebase.html | 17:02 |
|
OMGOMG
| mark_infinite: yes, often | 17:03 |
|
mark_infinite
| OMGOMG: but does it have any danger? I mean If I want to split them, can I do it? | 17:03 |
|
Nei
| mark_infinite: clean up the log with the command OMGOMG showed you | 17:03 |
|
| the "danger" starts when you start to publish + collaborate | 17:03 |
|
| the suggestion is to either never clean/change/edit the log once you published it | 17:04 |
|
mark_infinite
| Nei: No no I work locally solely. Me repos are on my computer. | 17:04 |
|
Nei
| then you can do whatever you want | 17:04 |
|
| :) | 17:04 |
|
mark_infinite
| using submodules and such | 17:04 |
|
| Nei: hahaa I can do whatever I want to "carve" my code x'D | 17:05 |
|
Nei
| don't forget to make backups though | 17:05 |
|
OMGOMG
| you're new to git, but using submodules | 17:05 |
| ← fikran left | 17:05 |
|
mark_infinite
| OMGOMG: yes! The 1st thing that worried me. How can I use a tool that I made INSIDE another tool that I made =) | 17:05 |
|
| otherwise I know nothing | 17:06 |
| ← gxt left | 17:07 |
| → fikran joined | 17:07 |
|
furrymcgee
| commit often and use --fixup | 17:07 |
| → gxt joined | 17:08 |
|
Nei
| you can check "git gui" | 17:08 |
|
| there you can "amend" the last commit | 17:09 |
|
| and you can commit parts of the code only | 17:09 |
|
OMGOMG
| i would recommend against using submodules until you're comfortable with git | 17:09 |
|
ikke
| I don't see why. If they already managed to use it | 17:10 |
|
furrymcgee
| submodules was also one of the first things when I started with git | 17:10 |
|
mark_infinite
| OMGOMG: yes, the main issue was that the submodules didn't update correct recursively, but I managed to solve that... It was much of a danger tbh. | 17:11 |
|
OMGOMG
| furrymcgee: how did that work out | 17:11 |
|
mark_infinite
| furrymcgee: yes I mean, that was what I sought besides version ctrl from git | 17:11 |
|
| nevertheless I have to say git is magnificent! I <3 this tool! | 17:12 |
| → cgar joined | 17:13 |
|
furrymcgee
| I try to always use git submodule add instead of pur git clone | 17:13 |
|
Nei
| it's not without thwarts | 17:13 |
|
furrymcgee
| just to keep things separate | 17:14 |
|
Nei
| submodules have the advantage and disadvantage that you commit the revision you have checked out | 17:14 |
| ← hseg left | 17:14 |
|
furrymcgee
| submodules may have .git files or .git directories, --absorbgitdir is good to know | 17:16 |
|
| my binary files are distributed in a submodule of the source repository, https://github.com/furrymcgee/doxygwin/tree/master/repository | 17:24 |
| ← bytehackr left | 17:27 |
| → sharpertool joined | 17:28 |
|
sharpertool
| Greetings. I'm not a new git user, and I'm well versed in the use of ssh and ssh keys, etc. | 17:29 |
|
| I'm setting up a new Windows Server (2019). Windows is always more difficult than Mac or Linux, but generally git and git bash work well. | 17:29 |
| ← natewrench123456 left | 17:31 |
|
sharpertool
| Anyway, I have this new machine, I've created a key pair, and copied it to an account o an internal bitbucket server. Same as I've done multiple other ties... but, git clone with this fails every time. I've been through all of the troubleshooting I can think of.. using 'ssh -vvv', for example.. and I cannot quite figure out what is missing here. | 17:31 |
|
| Now, there isn't a lot to go on. Just looking for "any more tips" on isolating this. I used the https protocal, and that worked - but this repo has submodules, which use ssh.. so, giving up and using https in this case won't work. | 17:33 |
| ← jstein left | 17:34 |
| → meator joined | 17:35 |
| Xenguy_ → Xenguy | 17:35 |
| → BenjiProd joined | 17:36 |
| → Cork joined | 17:36 |
| ← bloody left | 17:36 |
|
ikke
| sharpertool: Fails how? What specific messages do you get? Do you see the key being offered with ssh -vv? | 17:37 |
|
| (/-vvv) | 17:37 |
| → bloody joined | 17:38 |
|
sharpertool
| Failed git clone https://www.irccloud.com/pastebin/5ZZfqFhf/f | 17:38 |
|
| I'm 100% sure I have the proper access rights, and the repo exists. I can use https and clone, for example. I've added those keys, and even copied id_rsa/id_rsa.pub keys from another server that IS working.. | 17:39 |
|
ikke
| So, it seems like it is authenticating, just not seeing a repoi | 17:39 |
| ← igemnace left | 17:40 |
| → carl- joined | 17:42 |
|
sharpertool
| I'm also 100% certain the repo link is correct. I took it from the bitbucket server. I've even copied it from `git remote -v` on a working server, to be extra sure. | 17:43 |
|
ikke
| sharpertool: can you try to set GIT_TRACE=1 in the environment and then run the clone command again? | 17:44 |
|
sharpertool
| The only t hing I can figure is something not configured properly on the newly minted windows server 2019, related to OpenSSH. Soething lik that. | 17:44 |
|
| Result using GIT_TRACE=1 https://www.irccloud.com/pastebin/rcwnEWlk/ | 17:45 |
|
| not sure if that extra information is useful. | 17:45 |
|
mackerman
| Permission denied (publickey) | 17:46 |
| → natewrench123456 joined | 17:46 |
|
sharpertool
| that IP is internal only. | 17:46 |
|
mackerman
| You are not using the correct key | 17:46 |
| ← meator left | 17:47 |
|
sharpertool
| The correct key is installed in my ~/.ssh/ directory, that I'm certain of. SSH may be ignoring that key for some reason | 17:47 |
|
mackerman
| Which ssh package are you using, git for Windows ? | 17:48 |
|
sharpertool
| yes | 17:48 |
|
| Hopefully this does not leak any security information https://www.irccloud.com/pastebin/UjKZSUmv/ | 17:49 |
| ← victor left | 17:50 |
|
ikke
| send_pubkey_test: no mutual signature algorithm | 17:51 |
|
sharpertool
| There may be an answer in there, but I'm not able to see it.. | 17:51 |
| ← OnlineCop left | 17:51 |
|
ikke
| https://confluence.atlassian.com/bitbucketserverkb/ssh-rsa-key-rejected-with-message-no-mutual-signature-algorithm-1026057701.html | 17:51 |
| → Kartagis joined | 17:52 |
|
DoofusCanadensis
| git 2.33 removed rsa-1 support | 17:52 |
|
sharpertool
| oh..... well, that explains is. | 17:53 |
|
DoofusCanadensis
| it's been fun to deal with | 17:53 |
|
sharpertool
| many many thanks to you all.. this had me stumped.. but, now, it makes perfect sense. | 17:53 |
|
DoofusCanadensis
| but that article ikke shared shows the fix, so you can work around it | 17:53 |
| ← natewrench123456 left | 17:53 |
|
sharpertool
| booyah!! | 17:56 |
|
| yeah, so simple. Thank you all again... IRC again, FTW!!!! | 17:56 |
|
mackerman
| How exactly did git 2.33 change affect this? Not seeing rsa in the release notes. | 17:56 |
|
ikke
| mackerman: probably git-for-windows which bundles more | 17:57 |
|
DoofusCanadensis
| git-for-windows disabled rsa-1 by default | 17:57 |
|
sharpertool
| I can confirm, the windows server 2019 that works, has 2.32.x, but the new one I setup has 2.34.12... hence, I was right in the middle of that change.. and is messed me up | 17:57 |
|
mackerman
| That's an important distinction. | 17:58 |
|
ikke
| mackerman: they mentioned windows 2019, so that's the context | 17:58 |
|
DoofusCanadensis
| I didn't realize that it was only git-for-windows that was affected | 17:58 |
|
sharpertool
| yes, this is git-for-windows issue --- personally, windows has always been a PITA.. but, that's a different channel | 17:58 |
|
mackerman
| Or you could install Microsoft's ssh package. | 17:58 |
|
DoofusCanadensis
| I'm just aware of it because I support a windows env | 17:58 |
|
sharpertool
| It offers the option of using bundled ssh or not.. | 17:59 |
|
ikke
| (out outside of windows) git is just using ssh on the system, so whatever it supports, git supports | 18:01 |
|
DoofusCanadensis
| oh right, this is an ssh thing itself... git just exposed it | 18:02 |
| → dimi1947 joined | 18:02 |
| → node1 joined | 18:05 |
| → hseg joined | 18:08 |
| ← dimi1947 left | 18:09 |
| → BSaboia joined | 18:10 |
| ← BSaboia left | 18:12 |
| → BSaboia joined | 18:12 |
| → Narrat joined | 18:13 |
| ← carl- left | 18:15 |
| ← zer0bitz left | 18:15 |
| → skoma joined | 18:17 |
| → dimi1947 joined | 18:22 |
| ← dimi1947 left | 18:22 |
| ← anaveragehuman left | 18:28 |
| → hoochmonger joined | 18:28 |
| ← srinidhi left | 18:33 |
| → anaveragehuman joined | 18:33 |
| → OnlineCop joined | 18:38 |
|
jim
| Hi... | 18:41 |
| ← feriman left | 18:42 |
|
jim
| so, I have a local branch master, and a remote branch also called master... I just did git fetch origin master, how do I do the separate merge step? | 18:42 |
|
ikke
| git merge origin/master | 18:43 |
|
| (add --no-ff if you want an explicit merge) | 18:43 |
|
jim
| ok, that was easy :P thanks a lot :) | 18:46 |
| ← nrg left | 18:47 |
|
j416
| or simply, 'git merge' | 18:47 |
| → nrg joined | 18:48 |
| → feriman joined | 18:48 |
| → Jupy7er joined | 18:48 |
| ← Jupy7er left | 18:49 |
| ← skoma left | 18:53 |
| → srinidhi joined | 18:56 |
| → pyevery__ joined | 18:57 |
| → junktext joined | 18:57 |
| ← pyevery__ left | 18:59 |
| ← mannequin left | 18:59 |
| → terminalpusher joined | 19:03 |
| ← node1 left | 19:07 |
| ← hseg left | 19:08 |
| → hseg joined | 19:08 |
| ← terminalpusher left | 19:11 |
| ← fikran left | 19:14 |
| ← bkay left | 19:15 |
| ← TheCatBehemoth left | 19:17 |
| → fikran joined | 19:17 |
| ← furrymcgee left | 19:18 |
| → hololeap joined | 19:21 |
| ← spare left | 19:29 |
|
sharpertool
| rclone | 19:31 |
| → duderonomy joined | 19:33 |
| ← duxsco left | 19:52 |
| → TheCatBehemoth joined | 19:56 |
| → OnkelTem joined | 20:08 |
| ← hseg left | 20:08 |
| → hseg joined | 20:08 |
| → mat001 joined | 20:09 |
| ← tyson2 left | 20:18 |
| ← OnkelTem left | 20:20 |
| ← TheCatBehemoth left | 20:23 |
| ← ___nick___ left | 20:25 |
| → ___nick___ joined | 20:27 |
| ← ___nick___ left | 20:27 |
| → spare joined | 20:28 |
| → ___nick___ joined | 20:29 |
| ← fstd left | 20:30 |
| → fstd joined | 20:30 |
| → Pseudocr1 joined | 20:33 |
| ← Pseudocrat left | 20:35 |
| ← murii left | 20:35 |
| → john_johnk joined | 20:37 |
| → causasui joined | 20:38 |
| ← GNUmoon left | 20:40 |
| → nattiestnate joined | 20:41 |
| ← nattiestnate left | 20:42 |
| → koalillo joined | 20:43 |
| → thiago joined | 20:44 |
| → welovfree joined | 20:52 |
| ← junktext left | 20:53 |
| → hbautista joined | 20:54 |
|
Timvde
| I have a bunch of untracked files that will be overwritten by a (fast-forward) merge. Is there a simple flag to just discard my files? I could just remove them, but it's a small bunch of files and just telling git to remove everything that's conflicting would be fine. | 20:57 |
|
| I do have some other untracked files that I don't want to discard (yet), so git clean -f wouldn't work | 20:58 |
|
osse
| there is no command to do exactly that | 20:59 |
|
| i'd copy and paste the list | 20:59 |
|
j416
| I'd commit them somewhere and then go back to get them as needed | 21:00 |
|
Timvde
| I was afraid so :) Alright, I'll just do it manually then | 21:00 |
|
osse
| specifically i'd use my shell's "edit current command in editor" thingy and paste the list in there | 21:00 |
|
| and massage it into a neat rm command line | 21:00 |
|
Timvde
| Well, I'm actually 100% sure that the files have the same contents, so actually I could use commit, rebase, reset, hmm | 21:00 |
|
j416
| in that case why not just delete them instead | 21:01 |
|
Timvde
| That worked perfectly :D | 21:01 |
|
j416
| heh | 21:01 |
|
Timvde
| j416: because I'm too lazy to delete a dozen files one by one :P | 21:01 |
| ← john_johnk left | 21:01 |
|
j416
| git clean | 21:01 |
|
Timvde
| No, that'd delete too many files :P | 21:02 |
|
j416
| meh | 21:02 |
|
osse
| clean -- dir ? | 21:02 |
|
j416
| keep the important ones committed :P | 21:02 |
|
Timvde
| All in the same directory :) | 21:02 |
| → hololeap_ joined | 21:02 |
|
Timvde
| j416: it's WSDLs that I've downloaded to test stuff, but we're implementing things in parallel, and as soon as a part is finished, the WSDL is added to the repository. But I still had them untracked at my side. | 21:03 |
|
j416
| I tend to keep things like that in a separate (orphan) branch and check that out in a parallel directory using a separate worktree | 21:04 |
| ← hololeap left | 21:04 |
| ← ___nick___ left | 21:04 |
| hololeap_ → hololeap | 21:04 |
|
Timvde
| That would probably have been the smarter approach | 21:04 |
|
j416
| another way I use if there's just a couple of files that I think I'll get rid of soon, is to create a .gitignore ignoring those files _and_ .gitignore itself; that way they don't show up as untracked, and I can still use git clean (without -x) to get rid of other stuff | 21:05 |
|
| mainly to avoid committing them by mistake | 21:06 |
| ← coot left | 21:06 |
| → coot joined | 21:07 |
|
Timvde
| But if I already have to deal with SOAP, I lower my mental barrier for shrugging things off, and this kind of things happens :P | 21:07 |
|
j416
| haha. | 21:08 |
|
Timvde
| The .gitignore trick is interesting, I wonder how git would have handled the merge then | 21:08 |
|
| because the files are still there... | 21:08 |
| ← hseg left | 21:08 |
|
j416
| it would have either given you an error, or possibly proceeded to overwrite them without asking (git tends to see ignored files as not important) | 21:09 |
| → hseg joined | 21:09 |
|
j416
| not sure which in this case; don't think I've ever tried. | 21:09 |
| ← hseg left | 21:09 |
| ← duderonomy left | 21:10 |
| ← coot left | 21:11 |
|
j416
| perhaps relevant https://public-inbox.org/git/7viq39avay.fsf@alter.siamese.dyndns.org/ | 21:11 |
| ← mat001 left | 21:11 |
| → coot joined | 21:12 |
|
j416
| tried just now on Git 2.34.1 to merge a commit that adds a file, to a branch that has that same file ignored. Git silently overwrote the ignored file with the version from the other branch. | 21:13 |
| ← coot left | 21:14 |
| → coot joined | 21:14 |
| ← Orphis left | 21:17 |
| ← BenjiProd left | 21:19 |
| → marink joined | 21:21 |
|
Timvde
| So I could've added the directory to .gitignore as well | 21:22 |
|
| Good to know, thanks :) | 21:22 |
|
| I asked it specifically to learn new things, not because I couldn't work it out, so that worked out wonderfully :D | 21:22 |
| ← fikran left | 21:24 |
| ← Ugrastil2 left | 21:25 |
| → Ugrastil2 joined | 21:26 |
| → fikran joined | 21:26 |
| → jazzy joined | 21:31 |
| ← koalillo left | 21:31 |
| ← Murr left | 21:32 |
| → Murr joined | 21:33 |
| ← feriman left | 21:35 |
|
j416
| \^^/ | 21:35 |
| ← otisolsen70 left | 21:37 |
| ← marink left | 21:37 |
| → rgrinberg joined | 21:42 |
| ← zmt00 left | 21:44 |
| → AbleBacon joined | 21:44 |
| → TheCatBehemoth joined | 21:46 |
| → TheCatBe1 joined | 21:49 |
| ← TheCatBehemoth left | 21:49 |
| → lgc joined | 21:50 |
| ← lgc left | 21:50 |
| ← Galladite left | 21:52 |
| → Galladite joined | 21:52 |
| ← Galladite left | 21:53 |
| → Gaboradon joined | 21:57 |
| → pheron joined | 21:59 |
| ← spare left | 22:03 |
| → TheCatBehemoth joined | 22:04 |
| → spare joined | 22:04 |
| ← TheCatBehemoth left | 22:05 |
| → TheCatBehemoth joined | 22:05 |
| ← TheCatBehemoth left | 22:06 |
| → GNUmoon joined | 22:06 |
| ← TheCatBe1 left | 22:06 |
| ← dslegends_ left | 22:08 |
| → dslegends joined | 22:10 |
| ← yanmaani left | 22:13 |
| → yanmaani joined | 22:14 |
| ← Narrat left | 22:17 |
| → hxztnxt joined | 22:18 |
| ← hxztnxt left | 22:18 |
| → hxztnxt joined | 22:20 |
| → duderonomy joined | 22:24 |
| ← elastic_dog left | 22:24 |
| ← mark_infinite left | 22:24 |
| → elastic_dog joined | 22:25 |
| ← anaveragehuman left | 22:26 |
| → elastic_1 joined | 22:27 |
| ← elastic_dog left | 22:27 |
| ← welovfree left | 22:29 |
| → anaveragehuman joined | 22:31 |
| ← elastic_1 left | 22:31 |
| → elastic_dog joined | 22:31 |
| → Betal joined | 22:35 |
| → ThePhilgrim joined | 22:40 |
| ← pheron left | 22:46 |
| ← Thanatermesis left | 22:49 |
| ← ThePhilgrim left | 22:49 |
| ← kenanmarasli left | 22:49 |
| → ThePhilgrim joined | 22:49 |
| → koalillo joined | 22:54 |
| ← koalillo left | 22:56 |
| ← pizdets_ left | 23:02 |
| → pizdets joined | 23:03 |
| ← GNUmoon left | 23:04 |
| ← peterhil left | 23:04 |
| → GNUmoon joined | 23:04 |
| → peterhil joined | 23:04 |
| → Thanatermesis joined | 23:05 |
| ← Thanatermesis left | 23:05 |
| → anandn joined | 23:08 |
| ← yanmaani left | 23:10 |
| ← hololeap left | 23:10 |
| ← coot left | 23:15 |
| → Thanatermesis joined | 23:15 |
| ← duderonomy left | 23:18 |
| ← ThePhilgrim left | 23:19 |
| → ThePhilgrim joined | 23:19 |
| ← DrowningElysium left | 23:20 |
| ← hxztnxt left | 23:24 |
| → ramblebamble joined | 23:26 |
| ← rgrinberg left | 23:26 |
| → rgrinberg joined | 23:28 |
| → welovfree joined | 23:29 |
| ← mw_ left | 23:33 |
| → mw___ joined | 23:33 |
| ← fikran left | 23:33 |
| mw___ → mw_ | 23:34 |
| → fikran joined | 23:35 |
| → welovfree_ joined | 23:35 |
| ← welovfree left | 23:36 |
| ← welovfree_ left | 23:37 |
| → g0zart joined | 23:39 |
| ← ramblebamble left | 23:39 |
| Pseudocr1 → Pseudocrat | 23:41 |
| → hololeap joined | 23:43 |
| ← palasso left | 23:45 |
| ← Camilo left | 23:47 |
| → chenqisu1 joined | 23:55 |