| 2020-08-22 |
| → shush joined | 00:00 |
| → navidr joined | 00:00 |
| → downunder joined | 00:01 |
| ← tiin57 left | 00:04 |
| ← shush left | 00:05 |
| → tiin57 joined | 00:08 |
| ← Hello71 left | 00:10 |
| ← mindCrime left | 00:12 |
| → mindCrime joined | 00:12 |
| → Hello71 joined | 00:13 |
| ← kupi left | 00:14 |
| → mns joined | 00:16 |
| → orbyt_ joined | 00:17 |
| → AlexMax joined | 00:31 |
| → Case_Of joined | 00:31 |
|
AlexMax
| Is there a way for me to directly pull a specific branch from an un-named remote directly into a brank-spanking-new branch? | 00:32 |
|
| I basically want to pull a branch from somebody elses' repository into a new local branch without creating a remote and without having to merge it into an existing branch | 00:33 |
| ← tiin57 left | 00:33 |
|
rafasc
| AlexMax: git fetch url theirbranch:yourbranch | 00:36 |
|
AlexMax
| You're a peach, thank you. | 00:36 |
| → tiin57 joined | 00:37 |
| → shush joined | 00:38 |
| ← mns left | 00:38 |
| → arcatech joined | 00:42 |
| ← shush left | 00:43 |
| ← blurkis left | 00:45 |
| → blurkis joined | 00:46 |
| → sudoforge joined | 00:46 |
| → shush joined | 00:55 |
| ← shush left | 01:03 |
| ← tiin57 left | 01:03 |
| ← cdown left | 01:07 |
| → tiin57 joined | 01:07 |
| ← vicfred left | 01:07 |
| ← rafasc left | 01:07 |
| ← meropyri left | 01:08 |
| → meropyri joined | 01:08 |
| → cdown joined | 01:08 |
| → TheSecondNik joined | 01:12 |
| ← lukey left | 01:14 |
| → lukey joined | 01:16 |
| ← TheSecondNik left | 01:18 |
| ← jaziz left | 01:25 |
| → jaziz joined | 01:27 |
| ← darkbit left | 01:28 |
| ← m0viefreak left | 01:31 |
| ← tiin57 left | 01:34 |
| → disi joined | 01:36 |
| ← cdown left | 01:36 |
|
disi
| is there a way to clone into a detached HEAD state (at the tip of the repo's HEAD)? | 01:36 |
| → tiin57 joined | 01:37 |
| → leeN joined | 01:39 |
| ← F0rTex left | 01:40 |
| → F0rTex joined | 01:42 |
| ← dfee left | 01:42 |
| ← raven-au left | 01:53 |
| → raven-au joined | 01:54 |
| → dfee joined | 01:54 |
| ← dfee left | 01:55 |
| ← Brainium left | 01:56 |
| ← raven-au left | 01:59 |
| ← tiin57 left | 02:04 |
| ← gpanders left | 02:06 |
| → gpanders joined | 02:07 |
| → tiin57 joined | 02:07 |
| → blowry joined | 02:07 |
| ← walidvb left | 02:12 |
| ← bambanx left | 02:21 |
| → bambanx joined | 02:22 |
| ← bambanx left | 02:23 |
| → vicfred joined | 02:24 |
| → bambanx joined | 02:24 |
| → raven-au joined | 02:27 |
| → mustache_ride joined | 02:27 |
| ← leeN left | 02:28 |
| → uenotan joined | 02:29 |
| ← Cabanossi left | 02:30 |
| → Cabanossi joined | 02:32 |
| ← tiin57 left | 02:33 |
| → itok joined | 02:35 |
| → mithro joined | 02:36 |
| → snowkidimd joined | 02:36 |
| → bitonic joined | 02:36 |
| → tiin57 joined | 02:37 |
| ← johnny56 left | 02:38 |
| ← itok left | 02:38 |
| ← uenotan left | 02:39 |
| → itok joined | 02:39 |
| ← bambanx left | 02:40 |
| → noahmg123 joined | 02:41 |
| → envex joined | 02:44 |
| → Newami joined | 02:48 |
| ← Newami left | 02:48 |
| ← gpanders left | 02:48 |
| → gpanders_ joined | 02:48 |
| ← Maxattax left | 02:51 |
| → johnny56 joined | 02:53 |
| ← lagothrix left | 02:54 |
| → lagothrix joined | 02:54 |
| ← dunk left | 03:03 |
| ← tiin57 left | 03:03 |
| ← zalun left | 03:04 |
| → zalun joined | 03:05 |
| → kwilczynski joined | 03:06 |
| → dunk joined | 03:07 |
| ← prit left | 03:07 |
| ← SrPx left | 03:07 |
| → tiin57 joined | 03:07 |
| ← navidr left | 03:07 |
| ← dunk left | 03:08 |
| → SrPx joined | 03:08 |
| → Goplat joined | 03:09 |
| → prit joined | 03:09 |
| → dunk joined | 03:09 |
| → navidr joined | 03:10 |
| → omnidapps joined | 03:11 |
| → disruptivenl joined | 03:11 |
| → heyitsrama joined | 03:12 |
| ← johnny56 left | 03:14 |
| ← rumbler31_ left | 03:17 |
| ← FFY00 left | 03:18 |
| ← sindns left | 03:18 |
| → FFY00 joined | 03:18 |
| → bolovanos joined | 03:18 |
| → Muimi joined | 03:19 |
| → bambanx joined | 03:20 |
| → bjs joined | 03:21 |
| → libertyprime joined | 03:21 |
| ← envex left | 03:23 |
| ← FFY00 left | 03:25 |
| → FFY00 joined | 03:25 |
| → johnny56 joined | 03:28 |
| → envex joined | 03:30 |
| ← tiin57 left | 03:33 |
| ← johnny56 left | 03:34 |
| → tiin57 joined | 03:37 |
| → z8z joined | 03:41 |
| → AnAverageHuman joined | 03:44 |
| ← monr0e left | 03:46 |
| → johnny56 joined | 03:47 |
| ← g00s left | 03:49 |
| ← AnAverageHuman left | 03:52 |
| ← lucasb left | 03:54 |
| ← johnny56 left | 03:55 |
| ← bolovanos left | 03:58 |
| → johnny56 joined | 03:58 |
| → bket joined | 04:00 |
| ← orbyt_ left | 04:00 |
| ← navidr left | 04:02 |
| ← tiin57 left | 04:03 |
| ← johnny56 left | 04:04 |
| ← thomasross left | 04:05 |
| → tiin57 joined | 04:07 |
| ← g4570n left | 04:11 |
| ← FFY00 left | 04:16 |
| → FFY00 joined | 04:16 |
| → johnny56 joined | 04:18 |
| ← zalun left | 04:22 |
| → berken_ joined | 04:23 |
| → zalun joined | 04:23 |
| ← Hello71 left | 04:23 |
| berken_ → berken | 04:23 |
| ← johnny56 left | 04:24 |
| → Hello71 joined | 04:31 |
| ← tiin57 left | 04:33 |
| → tiin57 joined | 04:37 |
| → johnny56 joined | 04:38 |
| ← johnny56 left | 04:44 |
| ← FFY00 left | 04:46 |
| → FFY00 joined | 04:47 |
| ← Hello71 left | 04:52 |
| ← FFY00 left | 04:57 |
| ← Muimi left | 04:58 |
| → FFY00 joined | 04:58 |
| → shush joined | 05:01 |
| ← tiin57 left | 05:03 |
| ← astronavt left | 05:04 |
| → astronavt joined | 05:04 |
| ← shush left | 05:06 |
| → orbyt_ joined | 05:06 |
| ← snowkidimd left | 05:07 |
| → tiin57 joined | 05:07 |
| → johnny56 joined | 05:08 |
| ← arcatech left | 05:14 |
| ← johnny56 left | 05:20 |
| → Guest20 joined | 05:26 |
| → johnny56 joined | 05:28 |
| → ferdna joined | 05:32 |
| ← causasui left | 05:33 |
| ← tiin57 left | 05:33 |
| ← johnny56 left | 05:34 |
| → puppy joined | 05:36 |
| → rustyshackleford joined | 05:36 |
| → tiin57 joined | 05:38 |
| ← libertyprime left | 05:44 |
| → libertyprime joined | 05:46 |
| → johnny56 joined | 05:48 |
| → Hello71 joined | 05:52 |
| → fatalhalt joined | 05:53 |
| ← dedowsdi left | 05:56 |
| → dedowsdi joined | 06:00 |
| ← tiin57 left | 06:03 |
| ← Guest20 left | 06:03 |
| ← johnny56 left | 06:04 |
| ← Hello71 left | 06:05 |
| → tiin57 joined | 06:07 |
| → Phylock joined | 06:08 |
| ← F0rTex left | 06:10 |
| → johnny56 joined | 06:17 |
| ← thiago_ left | 06:22 |
| ← johnny56 left | 06:24 |
| ← geosmile left | 06:26 |
| ← mindCrime left | 06:30 |
| → calcul0n joined | 06:32 |
| ← Phylock left | 06:32 |
| ← libertyprime left | 06:33 |
| ← tiin57 left | 06:34 |
| → libertyprime joined | 06:34 |
| → tiin57 joined | 06:37 |
| → johnny56 joined | 06:37 |
| → fstd_ joined | 06:37 |
| ← fstd left | 06:41 |
| fstd_ → fstd | 06:41 |
| ← jaziz left | 06:44 |
| → Phylock joined | 06:46 |
| ← libertyprime left | 06:50 |
| ← orbyt_ left | 06:52 |
| ← heyitsrama left | 06:53 |
| ← johnny56 left | 06:54 |
| → mindCrime joined | 06:54 |
| → mirrorbird joined | 06:54 |
| → feriman joined | 06:59 |
| → g00s joined | 06:59 |
| ← unluckyshrubbery left | 07:01 |
| → libertyprime joined | 07:02 |
| → shush joined | 07:02 |
| ← tiin57 left | 07:04 |
| → F0rTex joined | 07:06 |
| → tiin57 joined | 07:07 |
| → johnny56 joined | 07:09 |
| ← shush left | 07:11 |
| → Kulrak joined | 07:12 |
| ← johnny56 left | 07:14 |
| ← Goplat left | 07:14 |
| ← kjartan left | 07:17 |
| → kjartan joined | 07:20 |
| → johnny56 joined | 07:24 |
| ← fatalhalt left | 07:29 |
| ← johnny56 left | 07:30 |
| ← tiin57 left | 07:33 |
| ← deAtog left | 07:36 |
| → deAtog joined | 07:37 |
| ← pmercado left | 07:37 |
| → tiin57 joined | 07:37 |
| ← dedowsdi left | 07:37 |
| → dedowsdi joined | 07:39 |
|
j416
| disi: can you clarify? | 07:42 |
| → johnny56 joined | 07:43 |
| ← g00s left | 07:49 |
| ← johnny56 left | 07:50 |
| ← thansen left | 07:50 |
| → thansen joined | 07:50 |
| ← akem left | 07:53 |
| → akem joined | 07:55 |
| ← ferdna left | 07:56 |
| ← envex left | 07:59 |
| ← Phylock left | 08:01 |
| ← mindCrime left | 08:02 |
| → johnny56 joined | 08:03 |
| ← tiin57 left | 08:03 |
| → tiin57 joined | 08:07 |
| ← johnny56 left | 08:09 |
| ← Betal left | 08:09 |
| ← cd left | 08:13 |
|
Jookia
| is there a way to fetch remote branches and have them auto update without checking out and git pull | 08:14 |
| → johnny56 joined | 08:23 |
| → qswz joined | 08:26 |
|
qswz
| hmm, I've entered `git am` mistakenly, then after git rebase --abort I lost my currect changes | 08:27 |
|
j416
| Jookia: the common way to work is to update your local branches as you work on them | 08:28 |
| ← johnny56 left | 08:29 |
|
bookworm
| qswz: define changes, stuff from before the rebase? | 08:29 |
|
| you can get it back with the !reflog | 08:29 |
|
gitinfo
| The git reflog (`git log -g`) temporarily (90 days by default) snapshots your branch states at each operation that changes the branch, making it easy to undo e.g. merges and rebases. The usual warnings about !rewriting/undoing history apply. See https://sukima.github.io/GitFixUm/ for full details. | 08:29 |
|
qswz
| bookworm: yes, pending changes, not commited | 08:29 |
|
bookworm
| ah, then that's bad yes | 08:29 |
|
qswz
| ah ok, reflog, I remember, thanks | 08:29 |
|
Jookia
| j416: ah. so i guess rebase on to origin stuff instead? | 08:30 |
| → sozuba joined | 08:30 |
|
j416
| Jookia: depends on what you want to do, really | 08:30 |
|
qswz
| can I visualize the reflog on gitk? | 08:31 |
|
j416
| Jookia: 'git fetch' will update your remote tracking branches (which are your local branches that reflect the remote, the output of git branch -r) | 08:31 |
| ← sozuba left | 08:31 |
|
j416
| Jookia: then you'll have to choose what to do with that; you can merge, rebase, reset, etc. | 08:31 |
| ← bambanx left | 08:31 |
| → sozuba joined | 08:32 |
|
Jookia
| hmm | 08:33 |
|
| that doesn't seem to work on my machine. is that new behaviour? | 08:33 |
| → unluckyshrubbery joined | 08:33 |
| ← tiin57 left | 08:33 |
| → tiin57 joined | 08:37 |
|
j416
| Jookia: !doesntwork | 08:39 |
|
gitinfo
| Jookia: Sorry to hear it doesn't work, but how about some details? At this point we don't even know whether it did nothing, spit out an error message, or abducted your pet unicorn in a flying saucer. That makes it hard to troubleshoot – unicorn abduction requires a completely different solution than an error message, for instance. So, please be specific... | 08:39 |
| → johnny56 joined | 08:40 |
|
Jookia
| j416: http://ix.io/2uSz | 08:45 |
|
j416
| Jookia: so it worked | 08:46 |
|
| Jookia: fetch does not affect your local branches (output of 'git branch | 08:46 |
|
| Jookia: fetch does not affect your local branches (output of 'git branch'), only the remote tracking branches (output of 'git branch -r') | 08:46 |
|
Jookia
| ah | 08:46 |
|
j416
| so you need to merge, rebase, etc. | 08:46 |
|
Jookia
| ugh | 08:47 |
|
j416
| pull means fetch + merge | 08:47 |
|
Jookia
| can i just directly check out remote tracking branches? | 08:47 |
|
j416
| until recently when it changed to fetch + nag to configure whether it should be merge or rebase or something else | 08:47 |
|
| Jookia: yes | 08:47 |
|
| Jookia: you'll end up with detached HEAD | 08:47 |
|
| but that's fine if you just want to view them | 08:47 |
|
Jookia
| ok i'll do that instead | 08:48 |
|
j416
| !detached | 08:48 |
|
gitinfo
| A detached HEAD (aka "no branch") occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach | 08:48 |
| ← sudoforge left | 08:49 |
|
Jookia
| yeah that's fine | 08:49 |
| ← johnny56 left | 08:50 |
|
j416
| o/ | 08:50 |
|
| Jookia: or otherwise, just 'git merge' and you're done. | 08:51 |
|
| your branches haven't diverged so it'll be a clean fast-forward (no merge commit) | 08:51 |
|
Jookia
| j416: it's annoying | 08:53 |
|
j416
| I see. | 08:53 |
|
Jookia
| i don't want to check out and merge every branch i might use | 08:53 |
|
j416
| so don't? | 08:53 |
|
| just the one you're currently working on is sufficient | 08:54 |
|
Jookia
| i'm not working on these branches | 08:54 |
|
j416
| even easier then | 08:54 |
|
Jookia
| i'm working on a WIP branch and i rebase on stable-dev-board which isn't updated after git fetch | 08:54 |
|
| and that does nothing because it's not updated | 08:54 |
|
j416
| then rebase on origin/stable-dev-board after 'git fetch' | 08:54 |
|
Jookia
| yeah, that's what i'll do | 08:55 |
| ← duderonomy left | 08:55 |
|
j416
| no need to keep a local copy of it if you're not working on it | 08:55 |
|
| just keep the remote tracking branch | 08:56 |
| → duderonomy joined | 08:56 |
|
Jookia
| longer to type | 08:56 |
|
j416
| tab completion | 08:58 |
| → jaziz joined | 09:00 |
|
Jookia
| ugh | 09:00 |
| ← mirrorbird left | 09:00 |
| ← duderonomy left | 09:00 |
|
Jookia
| it also means i have to remember which branches i interact with | 09:00 |
| ← vicfred left | 09:00 |
| → vicfred joined | 09:02 |
|
Jookia
| and detached HEADs won't update if i fetch, so i'd need a branch and to do git pull sometimes | 09:03 |
| ← tiin57 left | 09:03 |
| → johnny56 joined | 09:04 |
| → tiin57 joined | 09:07 |
| ← johnny56 left | 09:07 |
|
Jookia
| looks like hub does this: https://hub.github.com/hub-sync.1.html | 09:07 |
| ← theoceaniscool left | 09:12 |
| ← qswz left | 09:15 |
| ← nioncode left | 09:16 |
| → johnny56 joined | 09:18 |
| → nioncode joined | 09:19 |
| → i7c joined | 09:19 |
| → mirrorbird joined | 09:20 |
| ← johnny56 left | 09:22 |
| ← dedowsdi left | 09:29 |
| ← tiin57 left | 09:34 |
| ← Dara left | 09:34 |
| → YuGiOhJCJ joined | 09:35 |
| → Dara joined | 09:36 |
| → tiin57 joined | 09:36 |
| → johnny56 joined | 09:38 |
| ← FH_thecat left | 09:40 |
| → darkbit joined | 09:42 |
| → gpanders joined | 09:42 |
| ← gpanders_ left | 09:42 |
| ← johnny56 left | 09:44 |
| → emmanuelux joined | 09:45 |
| ← xelxebar left | 09:45 |
| → xelxebar joined | 09:46 |
| → paul424 joined | 09:47 |
|
paul424
| What does the git propose : " git push --set-upstream origin new-editor" as in warning : fatal: The current branch new-editor has no upstream branch. | 09:48 |
|
| what that cmd would do ? | 09:48 |
|
| ??? | 09:53 |
|
Jookia
| paul424: it tells git that you push/pull from origin for that branch | 09:56 |
| → benfelin joined | 09:57 |
| → dedowsdi joined | 09:57 |
| → johnny56 joined | 09:57 |
| → TheSecondNik joined | 09:58 |
| ← tiin57 left | 10:04 |
| ← johnny56 left | 10:04 |
| → tiin57 joined | 10:06 |
| → johnny56 joined | 10:08 |
| ← sozuba left | 10:11 |
| ← johnny56 left | 10:15 |
| → powerhouse joined | 10:16 |
| → johnny56 joined | 10:19 |
| ← TheSecondNik left | 10:22 |
| ← iNs_ left | 10:23 |
| → iNs joined | 10:23 |
| ← johnny56 left | 10:25 |
| → snowkidi_ joined | 10:26 |
| ← snowkidi_ left | 10:26 |
| → johnny56 joined | 10:29 |
| ← tiin57 left | 10:33 |
| ← deltam left | 10:36 |
| → tiin57 joined | 10:37 |
| ← johnny56 left | 10:41 |
| → FH_thecat joined | 10:42 |
| → deltam joined | 10:43 |
| ← FH_thecat left | 10:43 |
| → snowkidimd joined | 10:46 |
| ← theorangeone_ left | 10:52 |
| → millido joined | 10:54 |
| → johnny56 joined | 10:54 |
| → theorangeone_ joined | 10:56 |
| ← theorangeone_ left | 10:56 |
| ← johnny56 left | 10:59 |
| → FH_thecat joined | 11:01 |
| → sudoforge joined | 11:03 |
| ← z8z left | 11:03 |
| ← tiin57 left | 11:03 |
| → johnny56 joined | 11:04 |
| → cdown joined | 11:05 |
| → tiin57 joined | 11:07 |
| → shush joined | 11:08 |
| ← johnny56 left | 11:09 |
| → TheSecondNik joined | 11:10 |
| ← shush left | 11:13 |
| → johnny56 joined | 11:22 |
| ← Aquazi left | 11:27 |
| ← sudoforge left | 11:28 |
| ← johnny56 left | 11:30 |
| → wrobinson joined | 11:31 |
|
wrobinson
| hi | 11:31 |
|
gitinfo
| wrobinson: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on. | 11:31 |
| → calcul0n_ joined | 11:32 |
|
wrobinson
| how might I go about doing a pull request for a branch of a forked project? | 11:32 |
| ← tiin57 left | 11:33 |
| → johnny56 joined | 11:33 |
|
wrobinson
| i forked a repo; cloned locally; checked out the branch i'm interested in; did `git branch patch` and `checkout patch`; made changes and commited; pushed to my public repo; .... | 11:34 |
|
| Not sure how now to do the request-pull properly (or if I've made any mistakes in my process already) | 11:35 |
| ← calcul0n left | 11:35 |
| ← Thorn left | 11:36 |
| → tiin57 joined | 11:37 |
| → Thorn joined | 11:38 |
| ← peeps[zen] left | 11:38 |
| ← johnny56 left | 11:39 |
| → h3ck joined | 11:42 |
| → Brainium joined | 11:43 |
| → wrobinso1 joined | 11:44 |
| → Nickeeh joined | 11:46 |
| ← TheSecondNik left | 11:47 |
| ← wrobinson left | 11:47 |
| → johnny56 joined | 11:53 |
| ← FFY00 left | 11:54 |
| → FFY00 joined | 11:55 |
| → TheSecondNik joined | 11:55 |
| wrobinso1 → wrobinson | 11:57 |
| → tarkus joined | 11:58 |
| ← johnny56 left | 11:59 |
|
mackerman
| wrobinson: Git has no concept of pull request. | 12:01 |
| TheSecondNik → TheNik | 12:01 |
|
mackerman
| If you are using one of several git based systems that provde things like forks and PRs, ask their support. #github and #gitlab have channels. | 12:01 |
| ← tiin57 left | 12:03 |
|
mackerman
| Also, projects or authors may have put their own procdures in place for how "merge requests" work. | 12:04 |
| → tiin57 joined | 12:06 |
| ← Brainium left | 12:07 |
|
wrobinson
| mackerman: thanks, but what's this then: https://www.git-scm.com/docs/git-request-pull ? | 12:08 |
|
Jookia
| wrobinson: unrelated to web-based workflows | 12:09 |
|
mackerman
| An email generator. | 12:09 |
|
wrobinson
| ah i see. appreciated | 12:10 |
|
| I guess that would be explained somewhere, if I read the book :s | 12:11 |
| → Hello71 joined | 12:12 |
|
mackerman
| There is more than one !book but Pro Git does have a chapter on GitHub | 12:14 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable | 12:14 |
| → sgen joined | 12:14 |
| ← YuGiOhJCJ left | 12:15 |
| → johnny56 joined | 12:19 |
| → relipse joined | 12:24 |
|
relipse
| Good morning | 12:24 |
|
| why isn't anything showing up in my diff: diff master.. | 12:25 |
|
| .3b05302279a1 | 12:25 |
|
BtbN
| Probably because nothing is different? | 12:28 |
| → m0viefreak joined | 12:28 |
|
relipse
| no i just added a new file myclass.php in master | 12:29 |
| → liori joined | 12:29 |
| ← HumanG33k left | 12:30 |
| ← tiin57 left | 12:33 |
| ← Hello71 left | 12:34 |
| → onizu joined | 12:35 |
| ← snowkidimd left | 12:36 |
| → Hello71 joined | 12:37 |
| → tiin57 joined | 12:37 |
| → HumanG33k joined | 12:37 |
| → snowkidimd joined | 12:38 |
| ← snowkidimd left | 12:38 |
| ← HumanG33k left | 12:39 |
| → HumanG33k joined | 12:39 |
| → cuppajoeman joined | 12:41 |
| → mjh4386 joined | 12:48 |
| → computer2000 joined | 12:50 |
| ← computer2000 left | 12:51 |
| ← millido left | 12:51 |
| ← jaziz left | 12:54 |
| ← igemnace left | 12:57 |
| ← tiin57 left | 13:03 |
| → tiin57 joined | 13:06 |
| → Newami joined | 13:08 |
| → Jackneilll joined | 13:09 |
| ← Jackneill left | 13:09 |
| → Lucas_Gray joined | 13:10 |
| ← sgen left | 13:11 |
| ← TheNik left | 13:17 |
| → causasui joined | 13:23 |
| → Brainium joined | 13:26 |
| ← tiin57 left | 13:34 |
| → wootehfoot joined | 13:34 |
| → tiin57 joined | 13:36 |
| → z8z joined | 13:36 |
| ← z8z left | 13:37 |
| ← tarkus left | 13:39 |
| ← feriman left | 13:40 |
| → leonardus joined | 13:41 |
|
leonardus
| hello, is there any way to configure Git to use Tor for all of its operations over the internet? | 13:42 |
|
BtbN
| git does not have explicit tor support, like pretty much most other software. | 13:45 |
|
| you will have to route traffic through tor yourself. Or use a http proxy, if you only use http for git. | 13:46 |
| → Muimi joined | 13:47 |
|
inkbottle
| Is there an option to reproduce `git log|grep foo`? | 13:51 |
| ← m0viefreak left | 13:52 |
| → monr0e joined | 13:53 |
|
ikke
| git log --grep | 13:53 |
| → royal_screwup21 joined | 13:54 |
|
inkbottle
| of course ;) | 13:54 |
|
ikke
| depends on what you are trying to grep | 13:54 |
| → CodeSlingerPaul joined | 13:56 |
| → Phylock joined | 13:56 |
| → AnAverageHuman joined | 14:01 |
| → rafasc joined | 14:01 |
| ← dviola left | 14:02 |
| ← Phylock left | 14:03 |
| ← tiin57 left | 14:03 |
| ← royal_screwup21 left | 14:05 |
| → royal_screwup21 joined | 14:05 |
| ← mjh4386 left | 14:07 |
| → wunderbar joined | 14:07 |
| → tiin57 joined | 14:07 |
| ← diogenese left | 14:07 |
| → diogenese joined | 14:07 |
| → dmlloyd joined | 14:08 |
| → sgen joined | 14:09 |
| ← royal_screwup21 left | 14:10 |
|
inkbottle
| Is git language aware? I'm very surprised the way `git grep --function-context` is really showing the whole function. | 14:10 |
|
ikke
| in a very limited way | 14:11 |
|
inkbottle
| quite effective though | 14:11 |
| ← Dara left | 14:11 |
| ← vdamewood left | 14:12 |
| → aw1 joined | 14:12 |
| ← Lucas_Gray left | 14:12 |
| → Dara joined | 14:12 |
|
rafasc
| inkbottle: you should also look into git log -L | 14:12 |
| → xace joined | 14:13 |
|
rafasc
| the :<funcname> part in particular. | 14:13 |
|
inkbottle
| I'm on it | 14:13 |
| ← dedowsdi left | 14:14 |
| → heyitsrama joined | 14:15 |
| ← astronavt left | 14:17 |
|
inkbottle
| It is impressive | 14:17 |
| ← heyitsrama left | 14:20 |
|
aw1
| does the gh cli (https://cli.github.com/manual/) wrap around the git binary like hub (https://github.com/github/hub) does? | 14:25 |
| → roadie joined | 14:26 |
| → tarkus joined | 14:27 |
|
aw1
| I did not quite get "...wraps git in order to extend it.." part from the readme of hub | 14:27 |
|
ikke
| it means it forwards subcommands that it does not handle to git | 14:28 |
|
| I don't think gh does the same from reading that page | 14:28 |
| → jstein joined | 14:30 |
|
aw1
| thanks ikke | 14:31 |
| ← tiin57 left | 14:33 |
| → tiin57 joined | 14:36 |
|
inkbottle
| I want to create a new remote repo like so: `git push "no-history" --set-upstream [email@hidden.address] master` | 14:40 |
|
| A web search say there can be some complications... | 14:41 |
| → mitigate joined | 14:41 |
|
inkbottle
| says* | 14:41 |
| → arcatech joined | 14:41 |
|
inkbottle
| I do not want to squash or rebase before pushing | 14:42 |
| → thiago joined | 14:42 |
| → JanC_ joined | 14:43 |
| JanC_ → JanC | 14:43 |
| → royal_screwup21 joined | 14:43 |
|
inkbottle
| That, might be what I'm looking for: https://stackoverflow.com/questions/12543055/how-to-push-new-branch-without-history/34954852 | 14:44 |
|
| create a new branch with --orphan | 14:44 |
| ← royal_screwup21 left | 14:49 |
|
rafasc
| If you explain why you want this, we may be able to explain the complications. | 14:50 |
|
inkbottle
| (just as before; I think --orphan is what I'm looking for; there is no depth option with `git push`; I think I have the elements I need to do that) I want to create a remote repo with a "view" of my repo, not the complete repo itself | 14:55 |
|
| I post the solution when it's done ;) | 14:57 |
| → davispuh joined | 15:01 |
|
inkbottle
| (--orphan) According to [1] that should be the right case scenario [1](https://stackoverflow.com/a/50605543) | 15:03 |
| ← tiin57 left | 15:03 |
| → tiin57 joined | 15:07 |
| ← crose left | 15:08 |
| → lucasb joined | 15:08 |
| ← aw1 left | 15:08 |
| → aw1 joined | 15:10 |
| → royal_screwup21 joined | 15:16 |
| → shush joined | 15:19 |
| → caskd joined | 15:19 |
| ← greggerz left | 15:22 |
| ← roadie left | 15:24 |
| ← royal_screwup21 left | 15:31 |
| → enoq joined | 15:31 |
| → anakimluke joined | 15:31 |
| → royal_screwup21 joined | 15:31 |
| → independent joined | 15:32 |
| ← tiin57 left | 15:33 |
| ← relipse left | 15:34 |
| → greggerz joined | 15:34 |
| → tiin57 joined | 15:37 |
|
anakimluke
| Hi! I have a picky small question. Consider the following output https://paste.ubuntu.com/p/zzHyq2mtgP/ . On line 13 the git advice message uses `--` before `<file>`; whereas on line 6, there isn't. Why is that? | 15:38 |
| → dfee joined | 15:38 |
|
anakimluke
| I have already read the manual sections about the `--` on both `reset` and `checkout`, they have the same meaning. | 15:39 |
|
ikke
| anakimluke: You are suplying 2 arguments to git reset, which means the 2nd argument must be filenames | 15:40 |
|
| so there is no ambiguity | 15:40 |
|
| for git checkout, you only supply one argument, so git has to guess whether it's a branchane or a filename | 15:41 |
|
| by adding '--', you tell git that what follows must be filenames | 15:41 |
|
anakimluke
| ikke, cool!! I hadn't thought of that! | 15:42 |
| ← dfee left | 15:51 |
| → dfee joined | 15:53 |
|
anakimluke
| thanks :) | 15:53 |
| ← lukey left | 15:59 |
| → lukey joined | 16:01 |
| ← tiin57 left | 16:03 |
| → heyitsrama joined | 16:05 |
| ← tarkus left | 16:07 |
| → tiin57 joined | 16:07 |
| ← heyitsrama left | 16:09 |
| ← Gustavo6046 left | 16:11 |
| → Gustavo6046 joined | 16:11 |
| ← caskd left | 16:13 |
| ← royal_screwup21 left | 16:14 |
| → royal_screwup21 joined | 16:15 |
|
rafasc
| it also helps to disambiguate certain scenarios: E.g. if you have a branch named config and a file named config. | 16:16 |
|
| git checkout config -- ; would checkout the branch while git checkout -- config; would checkout the file. | 16:16 |
| → TheNik joined | 16:16 |
|
ikke
| that's the ambiguity I was refering to :) | 16:16 |
|
inkbottle
| `git branch` after `git checkout --orphan="newbranch"` shows only one branch: "master" | 16:17 |
|
ikke
| inkbottle: the branch is only actually created after you commit | 16:18 |
|
| if you run git init, git branch does not list master either | 16:18 |
| ← shush left | 16:18 |
| → clime joined | 16:18 |
| ← lukey left | 16:19 |
|
inkbottle
| okay | 16:19 |
| ← h3ck left | 16:21 |
| → h3ck joined | 16:21 |
| → tomty89 joined | 16:23 |
|
tomty89
| what should i do when git bisect(ing the kernel) points to a commit that is "based" on an older tag | 16:24 |
|
| e.g. i'm trying to bisect between v5.6 and v5.7-rc1 | 16:24 |
|
| but at some point it goes to a commit that is "described" as v5.6-rc2 blah blah | 16:25 |
| → DogManJr joined | 16:25 |
| ← enoq left | 16:25 |
|
tomty89
| and apparently if i reference with that commit the whole tree is indeed "old" | 16:25 |
|
| (i.e. excludes certain/many commits between the range) | 16:26 |
|
inkbottle
| Apparently I should have commited `master` before doing `git checkout --orphan newbranch`; I say that because `git rm --cached -r` did fail. Can I do `git checkout master`; `git commit -a`; then `git checkout --orphan newbranch` again? | 16:28 |
|
cbreak
| sure | 16:30 |
|
inkbottle
| okay | 16:30 |
|
cbreak
| but I'd recommend not doing commit -a | 16:30 |
| → Phylock joined | 16:30 |
|
cbreak
| I'd recommend to always git add -p, and/or git diff --cached before git commit | 16:30 |
| → TheresaJayne joined | 16:31 |
|
inkbottle
| Seems good advice | 16:32 |
| ← tiin57 left | 16:33 |
| ← dfee left | 16:34 |
| → tiin57 joined | 16:37 |
|
tomty89
| https://paste.linux.community/view/d105df01 anyone? | 16:39 |
| ← Hello71 left | 16:42 |
| → sudoforge joined | 16:42 |
|
demize
| `git commit -v` is also useful, often helps for writing better commit messages as well. | 16:42 |
|
mitigate
| given a commit id can i get the refs that refer to it (if any) | 16:44 |
|
ikke
| git branch --contains <hash> | 16:45 |
| → Hello71 joined | 16:45 |
| → tarkus joined | 16:45 |
|
cbreak
| mitigate: directly? | 16:45 |
|
| git rev-parse --symbolic-full-name can do it sometimes | 16:46 |
| → roadie joined | 16:48 |
| ← DogManJr left | 16:49 |
|
mitigate
| that doesnt seem to cut it. i'm trying to get it so i can stick it into a commit message of a new commit with a new history but with the same commit info and tree | 16:49 |
| ← sudoforge left | 16:49 |
|
mitigate
| i'm not sure yet if git-branch --contains | head -1 would always work | 16:51 |
| → sudoforge joined | 16:52 |
|
ikke
| I would not rely on it | 16:53 |
| → pmcnabb joined | 16:54 |
| → sindns joined | 16:54 |
| ← paul424 left | 16:55 |
|
ikke
| tomty89: using git bisect with complex history can sometimes be hard to follow | 16:58 |
|
| tomty89: does git rev-list v5.6..v5.7-rc1 | grep <commit> return it? | 16:58 |
| ← Phylock left | 16:59 |
| → heyitsrama joined | 17:02 |
|
tomty89
| ikke: yes | 17:02 |
|
| but, to make the problem more obvious: https://paste.linux.community/view/af729744 | 17:03 |
| ← tiin57 left | 17:03 |
| ← heyitsrama left | 17:05 |
| ← Dara left | 17:05 |
| → tiin57 joined | 17:07 |
| → dviola joined | 17:12 |
| → Phylock joined | 17:13 |
| → astronavt joined | 17:14 |
| ← clime left | 17:18 |
| ← mitigate left | 17:20 |
| ← Hello71 left | 17:20 |
| ← blurkis left | 17:20 |
| → blurkis joined | 17:21 |
| → Hello71 joined | 17:23 |
| ← wootehfoot left | 17:23 |
| ← gpanders left | 17:26 |
| → gpanders joined | 17:28 |
| ← pmcnabb left | 17:29 |
| ← Muimi left | 17:30 |
| → sozuba joined | 17:30 |
| → Guest20 joined | 17:30 |
| → cosimone joined | 17:32 |
| → pmcnabb joined | 17:32 |
| → tgunr joined | 17:33 |
| ← tiin57 left | 17:33 |
| ← k3yp left | 17:34 |
| ← royal_screwup21 left | 17:35 |
| → royal_screwup21 joined | 17:35 |
| ← TheNik left | 17:35 |
| → k3yp joined | 17:36 |
| → tiin57 joined | 17:37 |
|
rafasc
| tomty89: I don't immediately see a problem here. | 17:37 |
| ← cosimone left | 17:37 |
| ← Guest20 left | 17:37 |
|
rafasc
| what are you trying to show with: git rev-list --count HEAD ? | 17:38 |
|
tomty89
| rafasc: to show that the commit references a tree that is much older than the last "good" coomit | 17:40 |
|
| as in it lacks many commits after it but before the current testing commit | 17:41 |
| → wootehfoot joined | 17:42 |
|
tomty89
| rafasc: just to make this more obvious: https://paste.linux.community/view/d105df01 | 17:42 |
|
| (note that v5.6-rc2 is older than v5.6) | 17:42 |
| → ferdna joined | 17:45 |
| → averell joined | 17:46 |
| ← sozuba left | 17:47 |
| ← Hello71 left | 17:47 |
| ← pmcnabb left | 17:48 |
| ← ferdna left | 17:49 |
| ← royal_screwup21 left | 17:50 |
| → royal_screwup21 joined | 17:50 |
| → Hello71 joined | 17:51 |
| ← royal_screwup21 left | 17:55 |
| → sozuba joined | 17:57 |
|
rafasc
| you can have more than one one good commit, and thus, multiple paths that lead good commits into the bad one. | 17:58 |
|
| The search is anchored on the bad commit, not the good ones. | 17:59 |
|
| was v5.6 the only good version started bisect? | 18:00 |
|
tomty89
| rafasc: i started with v5.6 and then the first test was good | 18:01 |
|
| as you can see in my paste; if that's what you are asking | 18:01 |
|
rafasc
| your paste doesn't show the bisect start. | 18:02 |
| ← causasui left | 18:03 |
| ← tiin57 left | 18:03 |
| ← astronavt left | 18:04 |
|
tomty89
| rafasc: ah right. i started with git bisect bad v5.7-rc1 and git bisect good v5.6 | 18:04 |
| → Goplat joined | 18:04 |
|
tomty89
| rafasc: the thing is it doesn't really have to do with bisect, apparently; but like a commit in a revision list can be referencing a tree much older than the list range | 18:06 |
| → Forkk joined | 18:06 |
| → tiin57 joined | 18:06 |
|
tomty89
| rafasc: i end up trying to remedy it by merging v5.6 to the problematic commit; and then there's conflict, and then i look for some "merge v5.6 into blah blah" commit and merge that instead | 18:07 |
| ← Forkk left | 18:07 |
|
rafasc
| tomty89: imagine that I branch before v5.6 and merge it to v5.7. the fact that v5.6 is good does not tell anything about this side branch, (the one that branches before 5.6 and merges to 5.7) | 18:07 |
|
tomty89
| i think i sort of know "why" it happens, but what i really care is how to deal with it (when i bisect) | 18:09 |
| → Maxattax joined | 18:09 |
| → bolovanos joined | 18:09 |
| → Forkk joined | 18:10 |
|
rafasc
| when you mark a commit as good, you only say: ignore all descendent of this commit, ancestors of it are still uncertain. | 18:10 |
|
| how to deal with it in what way? | 18:11 |
|
tomty89
| rafasc: that have some reference to checkout with so that i get the real v5.6+something | 18:11 |
|
| instead got sling shot back to where the testing commit was first introduced or so | 18:12 |
|
| (when it was in another repo) | 18:12 |
|
rafasc
| run git bisect skip ..v5.6 ? | 18:13 |
| ← Hello71 left | 18:14 |
|
tomty89
| rafasc: doesn't seem to do anything? | 18:15 |
|
| git describe is still v5.6-rc2-876-ga2ae604da74d | 18:16 |
|
rafasc
| try v1.0..v5.6 | 18:16 |
| → feriman joined | 18:16 |
| → Hello71 joined | 18:17 |
|
tomty89
| rafasc: fatal: ambiguous argument 'v1.0..v5.6': unknown revision or path not in the working tree. | 18:17 |
|
rafasc
| (v1.0 needs to exist) | 18:17 |
|
| The ideia is that you pass a range of commits that you're not interested. | 18:17 |
|
| I don't think there's a shortcut for "everything up to v5.6" | 18:18 |
|
tomty89
| i'm trying v5.5 | 18:18 |
|
| hmm maybe i should try v5.6-rc2 | 18:18 |
|
| seem to have stalled forever | 18:22 |
|
rafasc
| git bisect skip v5.5..v5.6, but you may make it worse, as when it decides it needs something in that range, it will probably checkout 5.4. | 18:22 |
| ← darkbit left | 18:22 |
|
rafasc
| It has to write the skip list to a file, maybe it is doing that. | 18:22 |
|
| another thing you may try is use: git replace --graft; to fake the history and make bisect thing there's no ancestors of v5.6 | 18:24 |
|
| I believe bisect honors grafts, but I'm not certain. | 18:24 |
| ← Phylock left | 18:28 |
|
tomty89
| rafasc: what i really need to deal with is not exactly bisect, i think, because what i want/need is a tree (for building) with the testing commit merged onto v5.6 | 18:30 |
|
rafasc
| so you're looking for a merge in 5.6 that merged a certain commit you know? | 18:32 |
|
tomty89
| rafasc: i think so | 18:32 |
|
rafasc
| https://github.com/mhagger/git-when-merged | 18:32 |
| ← greggerz left | 18:32 |
|
rafasc
| or looking into git log --graph --oneline --ancestry-path <yourcommit>..v5.7 | 18:33 |
|
tomty89
| rafasc: ugh no, that's not what i mean | 18:33 |
|
| i mean like, to "re-merge" it so that i get such tree | 18:33 |
| ← tiin57 left | 18:33 |
|
tomty89
| because now if i checkout the testing commit it doesn't seem to give me a tree that is based on v5.6 | 18:33 |
|
| (while the commit was "ultimately" merged before the v5.7-rc1 tag) | 18:34 |
| → cosimone joined | 18:34 |
| → tiin57 joined | 18:36 |
|
tomty89
| hmm, seem like i can actually do that if i checkout to a branch | 18:37 |
| ← roadie left | 18:37 |
| → robogoat joined | 18:38 |
| ← sudoforge left | 18:39 |
|
rafasc
| bisect is designed to find the good->bad transition, marking as good/bad are merely hints to bisect. It still chooses which ones should be tested. If you need to skip revisions, (and you seem to want to skip everything up until 5.6), you have to bisect skip. good/bad purpose is completely different. | 18:40 |
| ← tgunr left | 18:40 |
| → sudoforge joined | 18:40 |
|
rafasc
| Or, I didn't understand your problem, which would not surprise me to be honest. | 18:40 |
|
tomty89
| it's odd to me that no one seem to understand me lol | 18:41 |
|
| or maybe i don't understand git | 18:41 |
| ← sudoforge left | 18:41 |
|
rafasc
| I think you may be assuming git bisect works in a way it doesn't. | 18:42 |
| → sudoforge joined | 18:42 |
|
tomty89
| or git overall | 18:42 |
|
rafasc
| is your problem that bisect is giving you commits you cannot test, because a certain commit is missing? | 18:43 |
|
| have you tried cherry-picking that commit before testing? | 18:43 |
|
tomty89
| it seem to me the problem is due to the fact that, it is okay to git that commits between two (consecutive) tags are out of order and references trees that are older than "the older tag" | 18:43 |
|
| rafasc: more like many commits are missing, i think | 18:44 |
| → roadie joined | 18:44 |
| ← roadie left | 18:44 |
| → greggerz joined | 18:44 |
|
tomty89
| at least in torvalds linux master, commits seem to be far from being linearly ordered | 18:45 |
| → pmcnabb joined | 18:46 |
|
rafasc
| what you said is indeed true. And can be even common, for example for a bug that affects 3.0, people sometimes branch from 3.0, then merge the result into 4.0,5.0,6.0, usually retagging the result as 4.1 5.1 6.1. | 18:47 |
| → orbyt_ joined | 18:47 |
|
tomty89
| rafasc: i think i can fix my building tree in every round with the checkout v5.6 first then merge/fast forward approach; just that i'm not sure if git bisect needs any fix | 18:48 |
|
rafasc
| It is a relatively common workflow, especially for "backfixes". But in this case, they're more like "forward fixes", because the fix is done on the older commit that is relevant, and "forwarded" to the newer releases. | 18:48 |
| → mindCrime joined | 18:48 |
|
rafasc
| Maybe, maybe it needs a better way to know "skip everything up to 5.6". | 18:49 |
| ← mindCrime left | 18:50 |
|
rafasc
| I'm not sure, but I think when you skip a range, it just writes every hash into a "skip" file. | 18:50 |
| → saveNexit joined | 18:50 |
|
rafasc
| tomty89: also, git rev-list has --bisect. | 18:50 |
|
| You could try write your own version of bisect around that. | 18:51 |
| ← sudoforge left | 18:51 |
|
rafasc
| tomty89: I don't think the merge ff will work. Because once the ff finishes, you'll end up marking v5.6 as good over and over again. | 18:53 |
| → gioyik joined | 18:53 |
| ← jbeaudoin left | 18:55 |
|
tomty89
| rafasc: well, i mean i have another tree for building | 18:56 |
|
| so i just mark the commit in the bisecting tree with the result of the building tree | 18:57 |
| → zillolo joined | 18:57 |
|
rafasc
| but that would be lying to bisect. Ater that you cannot trust their decisions, because they're based on false assumptions. | 18:58 |
|
| a 'bad' commit can be fastforwarded to a 'good' commit. That doesn't make it good. | 18:59 |
| ← johnny56 left | 18:59 |
|
rafasc
| you seem to be confusing the purpose of marking good/bad with skipping. | 18:59 |
| → nvmd joined | 18:59 |
|
tomty89
| rafasc: the thing is i don't know what to do other than lying lol | 19:01 |
|
| it doesn't even seem like i can always ff either | 19:01 |
|
| literally a mess | 19:01 |
|
rafasc
| you say: git bisect skip | 19:01 |
|
tomty89
| rafasc: i tried, but either it doesn't seem to do anything or it just skip to something even older | 19:02 |
|
| feels like i'm thrown to a broken time machine geez | 19:02 |
| ← tiin57 left | 19:03 |
|
tomty89
| it seems like the only way is to manually hunt for some commit that happens to be v5.6+something | 19:03 |
|
| (where manually is like randomly) | 19:04 |
|
rafasc
| maybe automate it with bisect run. If the bug was introduced in a branch that was based before 5.6 and got merged into 5.6.x, not tranversing the older commits is a bisect fail. | 19:04 |
|
| there's a feature in progress for bisect, that would probably help you find that. Some patches were sent, and I think another person is picking it up again. | 19:05 |
|
| It's about teaching git bisect "--first-parent". | 19:06 |
| ← shored left | 19:06 |
|
tomty89
| ugh i don't know how much i understand that; probably gonna give up | 19:06 |
| ← Hello71 left | 19:06 |
|
tomty89
| let me reboot and test my last miracle first | 19:06 |
| ← tomty89 left | 19:06 |
| → tiin57 joined | 19:07 |
| ← saveNexit left | 19:08 |
| → saveNexit joined | 19:08 |
| → Hello71 joined | 19:08 |
| → shored joined | 19:08 |
| ← Hello71 left | 19:13 |
| → johnny56 joined | 19:13 |
| → ferdna joined | 19:14 |
| → Betal joined | 19:16 |
| ← gioyik left | 19:16 |
| ← mirrorbird left | 19:17 |
| → gioyik joined | 19:20 |
| → mindCrime joined | 19:23 |
| ← gioyik left | 19:25 |
| → royal_screwup21 joined | 19:26 |
| ← saveNexit left | 19:30 |
| → saveNexit joined | 19:30 |
| ← tiin57 left | 19:33 |
| → gioyik joined | 19:34 |
| → tiin57 joined | 19:37 |
| ← tarkus left | 19:38 |
| → clime joined | 19:38 |
| ← royal_screwup21 left | 19:40 |
| → royal_screwup21 joined | 19:41 |
| ← h3ck left | 19:41 |
| → cd joined | 19:42 |
| ← bolovanos left | 19:44 |
| ← royal_screwup21 left | 19:46 |
| → Phylock joined | 19:46 |
| ← vicfred left | 19:47 |
| → royal_screwup21 joined | 19:52 |
| ← saveNexit left | 19:53 |
| → saveNexit joined | 19:53 |
| ← johnny56 left | 19:55 |
| → Hello71 joined | 19:56 |
| ← puppy left | 19:56 |
| → h3ck joined | 19:57 |
| ← royal_screwup21 left | 19:58 |
| → royal_screwup21 joined | 19:59 |
| ← royal_screwup21 left | 20:01 |
| ← andreas303 left | 20:01 |
| → royal_screwup21 joined | 20:02 |
| ← Hello71 left | 20:02 |
| ← tiin57 left | 20:03 |
| → andreas303 joined | 20:04 |
| → Hello71 joined | 20:05 |
| ← to1ne left | 20:05 |
| ← royal_screwup21 left | 20:07 |
| → tiin57 joined | 20:07 |
| → syr joined | 20:08 |
| ← CodeSlingerPaul left | 20:08 |
| → johnny56 joined | 20:09 |
| ← zillolo left | 20:10 |
| ← clime left | 20:10 |
| → to1ne joined | 20:14 |
| ← saveNexit left | 20:15 |
| → saveNexit joined | 20:15 |
| ← feriman left | 20:16 |
| → duderonomy joined | 20:17 |
| ← cosimone left | 20:20 |
| ← johnny56 left | 20:20 |
| → tarkus joined | 20:23 |
| → royal_screwup21 joined | 20:29 |
|
inkbottle
| I've amended a commit that I previously pushed on gitlab, and as a consequence, gitlab does not allow me to push it again | 20:29 |
|
rewt
| push -f will force push, but that will !rewrite !history | 20:30 |
|
gitinfo
| Rewriting public history is not recommended. Everyone who has pulled the old history will have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push --force-with-lease <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum | 20:30 |
|
| [!clean_history] For a pointer on how to handle history in git see this e-mail from Linus: http://thread.gmane.org/gmane.comp.video.dri.devel/34744 | 20:30 |
| ← tiin57 left | 20:33 |
| ← ferdna left | 20:34 |
| → johnny56 joined | 20:35 |
| → tiin57 joined | 20:37 |
|
inkbottle
| rewt: Thanks, it was quite messy. | 20:37 |
| ← saveNexit left | 20:38 |
| → saveNexit joined | 20:38 |
| → Lucas_Gray joined | 20:39 |
|
cbreak
| force pushing is fine, if you know what you're doing :) | 20:41 |
| ← royal_screwup21 left | 20:44 |
| → royal_screwup21 joined | 20:44 |
| ← royal_screwup21 left | 20:49 |
|
inkbottle
| Actually, gitlab did not accept the --force option; so, since it was mostly experimenting with git workflow, I deleted the project on gitlab and pushed it again. Not grand, but it thought me that I shouldn't have done it in the first place. | 20:49 |
| ← Hello71 left | 20:51 |
| → zetneteork joined | 20:51 |
| → Hello71 joined | 20:53 |
| → royal_screwup21 joined | 20:54 |
|
ikke
| inkbottle: Did you try to force push to a protected branch? | 20:55 |
| ← johnny56 left | 20:55 |
| ← royal_screwup21 left | 20:57 |
| → royal_screwup21 joined | 20:58 |
| ← saveNexit left | 21:00 |
| → saveNexit joined | 21:00 |
| ← tiin57 left | 21:03 |
| ← jstein left | 21:04 |
| → cosimone joined | 21:05 |
| → tiin57 joined | 21:06 |
|
cbreak
| inkbottle: you should fix the gitlab settings then | 21:07 |
| → jaziz joined | 21:08 |
| → sudoforge joined | 21:08 |
| → johnny56 joined | 21:10 |
| ← Hello71 left | 21:10 |
| → sunova joined | 21:11 |
| → Hello71 joined | 21:13 |
| ← johnny56 left | 21:15 |
| ← royal_screwup21 left | 21:19 |
| → royal_screwup21 joined | 21:19 |
| ← rafasc left | 21:19 |
| ← zetneteork left | 21:23 |
| ← saveNexit left | 21:26 |
| → wnbeser joined | 21:27 |
| ← lagothrix left | 21:27 |
| → johnny56 joined | 21:28 |
| → lagothrix joined | 21:28 |
| ← blurkis left | 21:29 |
| → blurkis joined | 21:31 |
| ← arcatech left | 21:31 |
| → Human_G33k joined | 21:33 |
| ← tiin57 left | 21:33 |
| ← HumanG33k left | 21:35 |
| → tiin57 joined | 21:37 |
| → causasui joined | 21:38 |
| ← libertyprime left | 21:38 |
|
inkbottle
| Yes, I should. I'll try that some other time. | 21:39 |
| ← duderonomy left | 21:43 |
| → libertyprime joined | 21:49 |
| → kantlivelong joined | 21:50 |
| ← tarkus left | 21:52 |
| ← johnny56 left | 22:01 |
| → g00s joined | 22:01 |
|
tinga
| How does "git submodule update" behave if the current repo is asking for a sha1 that is not in the submodule unless "git remote update" or "git fetch" is run for the submodule? I can't see it explained in the man page (or don't understand) and am a tad too lazy to set up a test. | 22:02 |
| ← tiin57 left | 22:03 |
| → astroid joined | 22:05 |
| → saveNexit joined | 22:06 |
| → tiin57 joined | 22:07 |
| → saveNexist joined | 22:08 |
| → johnny56 joined | 22:10 |
| ← Hello71 left | 22:10 |
| ← saveNexit left | 22:11 |
| → arcatech joined | 22:11 |
|
inkbottle
| How do you easily switch between branch when some files are tracked in one branch but not in the other? | 22:12 |
|
tinga
| (re myself: It does have a --no-fetch flag so it appears that by default, it *does* fetch. A colleague couldn't get it to work and because "git submodule update" is so fast for me (who already has all the commits locally) I was suspecting it does not fetch.) | 22:12 |
| → Hello71 joined | 22:13 |
| ← johnny56 left | 22:15 |
|
tinga
| inkbottle, heh, dunno; but where is the non-tracked file coming from? A history that relies on a non-tracked file doesn't seem to make much sense unless it's generated, and if it is, just generate it? | 22:16 |
|
| You could also use `git cat-file -p $sha1 > file` to get a copy from the other branch. | 22:17 |
|
inkbottle
| I think `git checkout -f master` would be the right solution (initially I've created the branch I'm in now with `git checkout --orphan` for the reason "you want to publish the tree from a commit without exposing its full history". So I've done some `git rm -r --cached`) | 22:18 |
|
| The files that are going to be overwritten are identical | 22:19 |
|
tinga
| But if you check out the other branch again it will delete that file. | 22:19 |
|
inkbottle
| Only I didn't want to push them, so I `git rm --cached` them | 22:19 |
|
| Not delete IMO, but overwrite with an identical file | 22:20 |
|
| Oh, "again"... | 22:20 |
|
tinga
| What I mean is if master tracks foo, but otherbranch does not, you can go from otherbranch to master via "git checkout -f master" and it won't complain; | 22:21 |
|
inkbottle
| BAck from master to unrelated-orphan-branch | 22:21 |
|
tinga
| but if you want to go from master to otherbranch, it will unlink foo, which may not be what you want. | 22:21 |
|
| But you can get a copy of the file via git cat-file as I showed. | 22:21 |
|
inkbottle
| I agree with waht you said | 22:22 |
|
| Not sure the file will be unlinked... However it wouldn't really matter in my case, plus, I can retrieve it if needed with the method you suggested | 22:23 |
| ← cbreak left | 22:25 |
|
inkbottle
| The `-f` didn't cause any issue; actually it worked very well | 22:26 |
| → cbreak joined | 22:26 |
| ← royal_screwup21 left | 22:29 |
| → royal_screwup21 joined | 22:29 |
| ← saveNexist left | 22:30 |
| → blahboybaz joined | 22:30 |
| → saveNexist joined | 22:30 |
| saveNexist → saveNexit | 22:31 |
| → leeN joined | 22:31 |
| ← orbyt_ left | 22:32 |
| → Anticom joined | 22:32 |
| ← tiin57 left | 22:33 |
| ← royal_screwup21 left | 22:35 |
| ← jaziz left | 22:35 |
| ← Hello71 left | 22:35 |
| ← sunova left | 22:37 |
| → tiin57 joined | 22:37 |
| → Hello71 joined | 22:38 |
| ← cosimone left | 22:44 |
| → johnny56 joined | 22:45 |
| → zebrag joined | 22:47 |
| ← causasui left | 22:47 |
| ← inkbottle left | 22:48 |
| ← johnny56 left | 22:51 |
| ← saveNexit left | 22:53 |
| → saveNexit joined | 22:53 |
| ← Anticom left | 22:53 |
| ← calcul0n_ left | 22:57 |
| ← powerhouse left | 22:57 |
| → sindns_ joined | 22:59 |
| ← kjartan left | 22:59 |
| → orbyt_ joined | 23:02 |
| ← sindns left | 23:02 |
| → kjartan joined | 23:02 |
| ← tiin57 left | 23:03 |
| → johnny56 joined | 23:04 |
| → dqx_ joined | 23:06 |
| → tiin57 joined | 23:07 |
| → royal_screwup21 joined | 23:09 |
| ← johnny56 left | 23:11 |
| ← leeN left | 23:11 |
| ← aw1 left | 23:13 |
| ← royal_screwup21 left | 23:14 |
| → aw1 joined | 23:14 |
| ← Lucas_Gray left | 23:14 |
| ← emmanuelux left | 23:15 |
| ← saveNexit left | 23:15 |
| → saveNexit joined | 23:15 |
| ← dviola left | 23:16 |
| → dviola joined | 23:18 |
| → dedowsdi joined | 23:19 |
| → johnny56 joined | 23:25 |
| ← dedowsdi left | 23:27 |
| → theoceaniscool joined | 23:29 |
| ← johnny56 left | 23:30 |
| ← saveNexit left | 23:30 |
| → dedowsdi joined | 23:31 |
| ← sozuba left | 23:31 |
| ← mindCrime left | 23:31 |
| ← AnAverageHuman left | 23:31 |
| → AnAverageHuman joined | 23:31 |
| ← tiin57 left | 23:33 |
| → sozuba joined | 23:33 |
| ← Phylock left | 23:33 |
| → tiin57 joined | 23:37 |
| ← wnbeser left | 23:37 |
| ← kjartan left | 23:40 |
| → kjartan joined | 23:40 |
| → byanka joined | 23:43 |
| → johnny56 joined | 23:43 |
| → powerhouse joined | 23:44 |
| ← theoceaniscool left | 23:44 |
| → leeN joined | 23:45 |
| ← leeN left | 23:45 |
| → leeN joined | 23:45 |
| ← nvmd left | 23:46 |
| ← leeN left | 23:46 |
| → vicfred joined | 23:47 |
| → g4570n joined | 23:47 |
| ← johnny56 left | 23:51 |