| 2019-04-24 |
| ← pd09041999 left | 00:00 |
| ← de-facto left | 00:01 |
| → de-facto joined | 00:02 |
| ← tm007 left | 00:04 |
| ← Phylock left | 00:04 |
| ← mat001 left | 00:05 |
| ← oatmealraisin left | 00:06 |
| ← gde33 left | 00:07 |
| → duckonomy joined | 00:09 |
| ← dfee left | 00:09 |
| ← rafasc left | 00:10 |
| ← jottr left | 00:12 |
| → gde33 joined | 00:13 |
| ← Fernando-Basso left | 00:14 |
| ← neunon left | 00:15 |
| ← Anthaas left | 00:15 |
| → Anthaas joined | 00:16 |
| → neunon joined | 00:17 |
| ← renich left | 00:19 |
| ← downer06 left | 00:24 |
| → downer06 joined | 00:26 |
| → dfee joined | 00:27 |
| ← bluezone left | 00:28 |
| ← jubal left | 00:31 |
| → thiago joined | 00:36 |
| → oatmealraisin joined | 00:36 |
| → scientes joined | 00:39 |
| → causa_sui joined | 00:41 |
| ← justanotheruser left | 00:41 |
| → jottr joined | 00:42 |
| → macaronus joined | 00:43 |
| ← duderonomy left | 00:46 |
| ← causa_sui left | 00:46 |
| ← igemnace left | 00:56 |
| → justanotheruser joined | 00:56 |
| → igemnace joined | 01:01 |
| ← jottr left | 01:06 |
| ← oatmealraisin left | 01:09 |
| ← igemnace left | 01:12 |
| ← F0rTex left | 01:16 |
| ← scientes left | 01:17 |
| → F0rTex joined | 01:18 |
| ← mooasaurus left | 01:21 |
| → mooasaurus joined | 01:21 |
| → igemnace joined | 01:22 |
| → scientes joined | 01:24 |
| → thebope joined | 01:27 |
| ← thebope left | 01:28 |
| → thebope joined | 01:28 |
| ← macaronus left | 01:29 |
| ← Mattiaslndstrm left | 01:37 |
| → jottr joined | 01:42 |
| → mven joined | 01:43 |
| ← mven left | 01:43 |
| → austin987 joined | 01:45 |
| ← jcbitter_ left | 01:47 |
| ← voidSurfr left | 01:52 |
| → jcbitter joined | 01:54 |
| → Goplat joined | 01:54 |
| ← noobineer left | 01:55 |
| ← jottr left | 01:55 |
| ← impermanence left | 01:56 |
| → oatmealraisin joined | 01:57 |
| ← dfee left | 01:57 |
| ← oatmealraisin left | 01:57 |
| → Bobdude joined | 01:59 |
| ← boombatower left | 02:04 |
| → nic-hartley joined | 02:05 |
| → dfee joined | 02:08 |
| → minimal_life joined | 02:10 |
| lagothrix → Guest13094 | 02:15 |
| ← Guest13094 left | 02:15 |
| → lagothrix joined | 02:15 |
| ← alyptik left | 02:15 |
| ← dfee left | 02:18 |
| ← arecaceae left | 02:23 |
| → jottr joined | 02:23 |
| → arecaceae joined | 02:23 |
| ← minimal_life left | 02:27 |
| ← jottr left | 02:29 |
| → duderonomy joined | 02:29 |
| ← kjartan left | 02:35 |
| → kjartan joined | 02:40 |
| → causa_sui joined | 02:42 |
| ← gordonfish left | 02:44 |
| ← bashfulshell left | 02:46 |
| ← causa_sui left | 02:47 |
| ← Emperor_Earth left | 02:48 |
| ← duderonomy left | 02:50 |
| → fphilipe_ joined | 02:58 |
| ← libertyprime left | 02:58 |
| → libertyprime joined | 03:00 |
| → gordonfish joined | 03:00 |
| ← fphilipe_ left | 03:02 |
| ← paulwood left | 03:04 |
| → mat001 joined | 03:06 |
| → paulwood_ joined | 03:07 |
| ← dpyro left | 03:08 |
| ← mat001 left | 03:11 |
| ← inkbottle left | 03:12 |
| → jottr joined | 03:16 |
| → veegee_ joined | 03:17 |
| ← veegee left | 03:17 |
| → huatou joined | 03:17 |
| ← Sasazuka left | 03:18 |
| → dfee joined | 03:19 |
| ← dfee left | 03:21 |
| ← jottr left | 03:25 |
| → SkarmoutsosV joined | 03:26 |
| → keepLearning512 joined | 03:26 |
| ← thebope left | 03:29 |
| → alyptik joined | 03:30 |
| → thebope joined | 03:30 |
| → matsaman joined | 03:30 |
| ← matsaman left | 03:34 |
| ← rkta left | 03:35 |
| ← thebope left | 03:35 |
| → rkta joined | 03:35 |
| ← troyt left | 03:36 |
| → veegee joined | 03:40 |
| ← veegee_ left | 03:42 |
| → troyt joined | 03:45 |
| → Beam_Inn_ joined | 03:46 |
| → jungsubk joined | 03:46 |
| ← cfoch left | 03:46 |
| ← duckonomy left | 03:48 |
| → polman joined | 03:48 |
| ← acidjnk left | 03:50 |
| → sauvin joined | 03:51 |
| → duderonomy joined | 03:52 |
| ← jungsubk left | 03:52 |
| → dpyro joined | 03:54 |
| → jungsubk joined | 03:54 |
| ← Noldorin left | 03:56 |
| ← keepLearning512 left | 03:56 |
| → dre_ joined | 03:59 |
| → jottr joined | 04:00 |
| ← duderonomy left | 04:00 |
| → kapil____ joined | 04:01 |
| ← jungsubk left | 04:05 |
| → czart joined | 04:10 |
| ← al-damiri left | 04:10 |
| ← mud left | 04:18 |
| ← troyt left | 04:20 |
| ← jottr left | 04:21 |
| → troyt joined | 04:21 |
| → fphilipe_ joined | 04:22 |
| ← fatalhalt left | 04:30 |
| → HotBeefDip joined | 04:37 |
| ← nic-hartley left | 04:39 |
| → causa_sui joined | 04:43 |
| ← causa_sui left | 04:49 |
| → duderonomy joined | 04:52 |
| → jubal joined | 04:53 |
| → pks_ joined | 05:02 |
| ← pks left | 05:05 |
| pks_ → pks | 05:05 |
| ← SkarmoutsosV left | 05:07 |
| ← scientes left | 05:07 |
| ← duderonomy left | 05:13 |
| ← hofmann3900 left | 05:21 |
| → Sasazuka joined | 05:26 |
| ← yuljk left | 05:32 |
| ← Inline left | 05:34 |
| ← hvxgr left | 05:38 |
| → yuljk joined | 05:38 |
| → j2mb0 joined | 05:44 |
| → hvxgr joined | 05:45 |
|
j2mb0
| hey guys, i have a current project locally and i would like to move to on a server where 3 devices pull from that server and push (same user - multiple branches) what is the best way to move the local repo to the server? the internet suggest opening a bare repo on the server but i dont know if this is a good solution. | 05:45 |
|
| (thx) | 05:45 |
| ← dre_ left | 05:51 |
| ← yuljk left | 05:54 |
| → mven joined | 05:54 |
|
HotBeefDip
| j2mb0 : I'm a complete novice so don't listen to me...however, I've been learning a lot from the pro git book that you can get for free on the official git website...in it, I think this section outlines exactly what you're trying to do: https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server | 05:55 |
|
| specifically the part that starts with "Now, you can set up an empty repository" | 05:55 |
| → thefatma joined | 05:55 |
|
HotBeefDip
| hopefully someone else can confirm that I'm pointing you in the right direction, or tell me why it's a terrible idea | 05:56 |
| → g00s joined | 05:57 |
| → blackandblue joined | 05:58 |
| → gloomy joined | 06:00 |
| ← mven left | 06:01 |
| → Beam_Inn__ joined | 06:03 |
| ← gloomy left | 06:05 |
| → dfee joined | 06:05 |
| ← Beam_Inn_ left | 06:06 |
| Beam_Inn__ → Beam_Inn_ | 06:06 |
| → howdoi joined | 06:07 |
| ← thomasross left | 06:10 |
| → SkarmoutsosV joined | 06:12 |
| ← escherial left | 06:15 |
| → jottr joined | 06:17 |
|
Whiskey
| How do i copy my git directory from a git to another... | 06:18 |
|
| Whit other words upload every commit to a new locetion whitout doing a new commit | 06:18 |
|
j2mb0
| HotBeefDip: thank you :) | 06:19 |
| ← j2mb0 left | 06:19 |
| ← dpyro left | 06:20 |
| ← dfee left | 06:20 |
| → dpyro_ joined | 06:20 |
| ← fizzizist left | 06:22 |
|
Whiskey
| so copy the git from one remote to another remote | 06:22 |
| ← thiago left | 06:22 |
|
igemnace
| Whiskey: push to the other remote | 06:22 |
|
| or if you can, pull the former from the latter | 06:23 |
|
Whiskey
| lol | 06:23 |
|
| that waa easy | 06:23 |
|
| thanks | 06:24 |
| ← Goplat left | 06:24 |
| → Noti joined | 06:25 |
| ← HotBeefDip left | 06:31 |
| → duderonomy joined | 06:31 |
| ← orbyt_ left | 06:31 |
| ← Samian left | 06:32 |
| → dfee joined | 06:33 |
| → wildermind joined | 06:36 |
| ← fphilipe_ left | 06:37 |
| ← duderonomy left | 06:38 |
| → sQVe joined | 06:42 |
| → causa_sui joined | 06:44 |
| ← kjartan left | 06:48 |
| ← causa_sui left | 06:49 |
| → wateriswet joined | 06:51 |
| wateriswet → KingOfNorway | 06:51 |
| KingOfNorway → KingOfNorwaident | 06:51 |
| ← g00s left | 06:51 |
| KingOfNorwaident → KingOfNorway | 06:52 |
| → zonixo joined | 06:52 |
| KingOfNorway → King_Of_Norway | 06:52 |
| → fphilipe_ joined | 06:52 |
| ← libertyprime left | 06:52 |
| → kjartan joined | 06:53 |
| ← jottr left | 06:53 |
| → jottr joined | 06:54 |
| → troulouliou_div2 joined | 06:57 |
| ← zonixo left | 07:00 |
| → libertyprime joined | 07:00 |
| → duderonomy joined | 07:00 |
| ← duderonomy left | 07:01 |
| ← BlessJah left | 07:02 |
| ← troulouliou_div2 left | 07:03 |
| → dege joined | 07:04 |
| ← nowhere_man left | 07:06 |
| → mat001 joined | 07:07 |
| ← jottr left | 07:07 |
| → BlessJah joined | 07:08 |
| ← Beam_Inn_ left | 07:08 |
| ← paulwood_ left | 07:08 |
| → zonixo joined | 07:10 |
| ← mat001 left | 07:12 |
| → rba joined | 07:13 |
| → paulwood joined | 07:14 |
| ← paulwood left | 07:19 |
| → paulwood joined | 07:20 |
| ← dodobrain left | 07:23 |
| → fstd_ joined | 07:25 |
| ← rba left | 07:29 |
| ← fstd left | 07:29 |
| fstd_ → fstd | 07:29 |
| → rba joined | 07:29 |
| → Darcidride joined | 07:30 |
| → pd09041999 joined | 07:30 |
| ← pd09041999 left | 07:32 |
| → pd09041999 joined | 07:32 |
| ← victorqueiroz left | 07:33 |
| → interrobangd joined | 07:37 |
| ← Bobdude left | 07:37 |
| → jottr joined | 07:38 |
| → orbyt_ joined | 07:38 |
| ← jast left | 07:38 |
| → jast joined | 07:39 |
| ← SkarmoutsosV left | 07:39 |
| → mikecmpbll joined | 07:42 |
| ← mikecmpbll left | 07:43 |
| ← staafl__ left | 07:44 |
| ← gxt left | 07:45 |
| → tm007 joined | 07:47 |
| → savolla joined | 07:48 |
| ← pd09041999 left | 07:48 |
| → oxymoron93 joined | 07:48 |
| → brethil joined | 07:49 |
| → staafl__ joined | 07:50 |
| ← blackandblue left | 07:50 |
| ← jottr left | 07:50 |
| ← Jackneill left | 07:52 |
| → Jackneill joined | 07:53 |
| → n3wborn joined | 07:53 |
| → bashfulshell joined | 07:53 |
| → mikecmpbll joined | 07:54 |
| → clime joined | 07:54 |
| → gloomy joined | 07:55 |
| → Mattiaslndstrm joined | 07:56 |
| → poniav joined | 07:56 |
| ← zonixo left | 07:57 |
| dx_ob → OtakuSenpai | 08:00 |
| → duderonomy joined | 08:02 |
| ← watabou left | 08:03 |
| → KaitoDaumoto joined | 08:03 |
| ← interrobangd left | 08:04 |
| → floppydh joined | 08:05 |
| → yyy- joined | 08:07 |
| → jungsubk joined | 08:07 |
| ← jcbitter left | 08:09 |
|
osse
| finally found a way to have a private fork of our repo at work wooo | 08:09 |
| ← orbyt_ left | 08:11 |
| ← duderonomy left | 08:11 |
| ← jungsubk left | 08:12 |
| → jcbitter joined | 08:12 |
| → yuljk joined | 08:14 |
| ← libertyprime left | 08:15 |
| → jottr joined | 08:21 |
| → zamba joined | 08:24 |
|
zamba
| every time i issue a git pull i'm prompted with an $EDITOR that has a merge branch master message | 08:24 |
|
| how can i remove everything locally? it should basically just be a read-only version of the repo | 08:25 |
|
osse
| zamba: instead of pull, do git fetch then git reset --hard @{u} | 08:26 |
| ← Ram-Z left | 08:26 |
|
osse
| you get into this situation if you either have made local commits or if someone else has force pushed | 08:26 |
|
zamba
| osse: should i continue to use git fetch or git pull? | 08:26 |
|
osse
| zamba: you can use pull from now on until this happens again | 08:26 |
|
zamba
| osse: ok, thanks :) | 08:26 |
| ← gloomy left | 08:27 |
| ← zulutango left | 08:27 |
| → Ram-Z joined | 08:27 |
|
osse
| zamba: if you're planning on automating this then don't use pull at all | 08:27 |
|
grawity
| well, nothing particularly wrong with `git pull --ff-only` if you prefer it to fail hard instead of overwriting stuff | 08:28 |
| ← jottr left | 08:28 |
|
osse
| ah, that's a good idea | 08:28 |
|
grawity
| as long as you don't let it do merges | 08:28 |
| → elichai2 joined | 08:31 |
|
zamba
| osse: what should i use if i want to automate it? | 08:32 |
| ← hussam left | 08:32 |
|
osse
| zamba: depends... If it's a CI thing then you probably are given (via env vars or otherwise) a commit to checkout, so you can just check that out directly | 08:33 |
|
| If not, then something like git fetch; git checkout origin/master | 08:34 |
| → quxgyver joined | 08:34 |
|
osse
| because in such a repo it doesn't matter that HEAD is detached | 08:34 |
| → keepLearning512 joined | 08:34 |
| → gloomy joined | 08:37 |
| → libertyprime joined | 08:37 |
| → interrobangd joined | 08:38 |
| → Beam_Inn_ joined | 08:39 |
| → nowhere_man joined | 08:45 |
| → causa_sui joined | 08:45 |
| ← yonder left | 08:47 |
| → dre_ joined | 08:49 |
| ← causa_sui left | 08:50 |
| ← Sasazuka left | 08:51 |
| ← keepLearning512 left | 08:52 |
| ← nowhere_man left | 08:58 |
| → computer2000 joined | 08:59 |
| ← j7k6__ left | 09:00 |
| ← dhollinger left | 09:00 |
| → jottr joined | 09:01 |
| → dhollinger joined | 09:01 |
| ← dpyro_ left | 09:02 |
| → lacrymology joined | 09:04 |
| → molusc joined | 09:10 |
| → zulutango joined | 09:12 |
| ← dre_ left | 09:12 |
| ← jottr left | 09:13 |
| → th3m1s joined | 09:17 |
| → T_UNIX joined | 09:17 |
| → totte_ joined | 09:20 |
| totte_ → totte | 09:22 |
| → tarNeFyS joined | 09:28 |
| ← Darcidride left | 09:28 |
| ← paulwood left | 09:29 |
|
tarNeFyS
| Hello, do you have any idea how i could do a git blame on word per word basis. My analysis so far is that i should change the generation of the commits. git config on diff only works for the git diff. I haven't find any way to change the diff algorithm used for the commit generation. | 09:31 |
|
| Thanks, | 09:31 |
| ← rba left | 09:31 |
| → rba joined | 09:31 |
| ← rba left | 09:31 |
| → jottr joined | 09:32 |
| ← clime left | 09:32 |
| ← thefatma left | 09:34 |
| → rba joined | 09:34 |
| ← queip left | 09:38 |
| → mven joined | 09:39 |
| ← yyy- left | 09:40 |
| ← rba left | 09:40 |
| → bumbar_ joined | 09:40 |
|
bumbar_
| if i want something to happen on remote machine X after i push from local to git server, is that the post-receive hook i should be looking into? | 09:41 |
| → rba joined | 09:42 |
| ← poniav left | 09:44 |
| ← rba left | 09:44 |
| → poniav joined | 09:44 |
| → rba joined | 09:45 |
| → YuGiOhJCJ joined | 09:46 |
| ← zamba left | 09:47 |
| ← mven left | 09:49 |
|
grawity
| yes, although the older post-update also does the job (with a different API) | 09:50 |
| ← computer2000 left | 09:51 |
| ← jottr left | 09:51 |
| → zamba joined | 09:51 |
| ← fakhraee left | 09:52 |
| → staafl_ joined | 09:53 |
| ← staafl left | 09:53 |
| ← hsiktas left | 09:53 |
| ← discopatrick left | 09:53 |
| ← hoek left | 09:53 |
| ← cttttt left | 09:54 |
| ← ntrrgc left | 09:54 |
| ← isimulate left | 09:54 |
| ← drupol left | 09:54 |
| ← mrbkap left | 09:54 |
| ← MichaelRomig left | 09:54 |
| → discopatrick joined | 09:54 |
| ← AndrewGazelka left | 09:54 |
| ← nezZario left | 09:55 |
| → hsiktas joined | 09:55 |
| → hoek joined | 09:56 |
| → isimulate joined | 09:56 |
| → MichaelRomig joined | 09:57 |
| → AndrewGazelka joined | 09:57 |
| → cttttt joined | 09:57 |
| → drupol joined | 09:57 |
| → ntrrgc joined | 09:57 |
| ← poniav left | 09:58 |
| → mrbkap joined | 09:58 |
| → nezZario joined | 09:58 |
| → queip joined | 09:58 |
| ← lankanmon left | 10:01 |
| ← bashfulshell left | 10:03 |
| ← alyptik left | 10:04 |
| ← Mattiaslndstrm left | 10:05 |
| → thefatma joined | 10:06 |
| → ChrisLane joined | 10:08 |
| ← cliluw left | 10:16 |
| → rtjure joined | 10:18 |
| → yyy- joined | 10:22 |
| → llinguini joined | 10:24 |
| → jottr joined | 10:25 |
| → zonixo joined | 10:26 |
| → bsanford joined | 10:27 |
| → mimajof joined | 10:31 |
| → agowa338 joined | 10:33 |
| ← jottr left | 10:36 |
| ← dfee left | 10:37 |
|
spaceone
| can i exclude a branch from being pushed to a specific remote? | 10:41 |
| → Beam_Inn__ joined | 10:41 |
| ← Beam_Inn_ left | 10:43 |
| Beam_Inn__ → Beam_Inn_ | 10:43 |
| → causa_sui joined | 10:46 |
| ← KaitoDaumoto left | 10:48 |
| ← kapil____ left | 10:50 |
|
osse
| spaceone: a pre-push hook | 10:50 |
|
| in it, check if a given branch is among those to be pushed. if it is. abort | 10:51 |
|
| s/is. /is, / | 10:51 |
| ← causa_sui left | 10:51 |
|
spaceone
| osse: ah nice, thanks | 10:51 |
| → lankanmon joined | 10:52 |
| ← bsanford left | 10:53 |
|
_ikke_
| on the server there is also receive.hideRefs | 10:53 |
|
grawity
| or a pre-receive hook? | 10:54 |
|
_ikke_
| Right, but a config setting is easier than a hook | 10:55 |
| → alyptik joined | 10:56 |
| ← molusc left | 10:57 |
| → molusc joined | 10:58 |
| → Sonderblade joined | 10:59 |
| ← Sonderblade left | 10:59 |
| → czart_ joined | 11:00 |
|
spaceone
| simple hook :-) thx https://bpaste.net/show/7aed45100bc4 | 11:01 |
| ← kjartan left | 11:01 |
|
osse
| spaceone: I don't think that would work | 11:02 |
|
spaceone
| it does | 11:03 |
|
osse
| :O | 11:03 |
|
| git checkout otherbranch; git push extern private | 11:04 |
| ← zonixo left | 11:04 |
| → dre_ joined | 11:04 |
| ← czart left | 11:04 |
|
spaceone
| okay, well, the script has no argument with the current branch name | 11:05 |
|
| but i won't push in that way from another branch | 11:05 |
|
osse
| do do you run this by hand or actually install it as a hook? | 11:05 |
|
spaceone
| install it as hook | 11:06 |
|
osse
| the pre-push hook doesn't get the remote passed as as an argument | 11:06 |
|
spaceone
| btw. are hooks ignore on --force? | 11:06 |
|
| hm, it does. at least the example says so | 11:06 |
| → kjartan joined | 11:06 |
| → emsjessec joined | 11:06 |
|
osse
| what example? | 11:06 |
| → jottr joined | 11:07 |
|
spaceone
| osse: .git/hooks/pre-commit.sample | 11:07 |
|
| .git/hooks/pre-push.sample | 11:08 |
| → mat001 joined | 11:08 |
|
osse
| goddammit why isn't that in the man page | 11:08 |
| ← jottr left | 11:12 |
| ← mat001 left | 11:12 |
| ← dre_ left | 11:12 |
| → mowcat joined | 11:14 |
|
osse
| but I would make it actually use the info on stdin to verify instead of relying on the currently checked out branch | 11:14 |
| → kyan joined | 11:14 |
| ← Murr left | 11:17 |
| ← angelo_ts left | 11:24 |
| → angelo_ts joined | 11:24 |
| → Murr joined | 11:24 |
| ← rtjure left | 11:28 |
| ← sQVe left | 11:29 |
| → alfredb joined | 11:30 |
| ← jnewt left | 11:32 |
| → jnewt joined | 11:32 |
| ← reactormonk left | 11:35 |
| → scientes joined | 11:37 |
| → zonixo joined | 11:39 |
| → jottr joined | 11:40 |
| ← savolla left | 11:40 |
| → savolla joined | 11:42 |
| → sQVe joined | 11:43 |
| ← rba left | 11:46 |
| → computer2000 joined | 11:47 |
| → reactormonk joined | 11:48 |
| → CodeSlingerPaul joined | 11:50 |
|
angelo_ts
| hi, asked already but i retry: getting "fatal: The remote end hung up unexpectedly" on a http based clone over a vpn, if any trick (tried a lot of them) welcome | 11:51 |
|
_ikke_
| Do you have other network issues over the VPN? | 11:52 |
|
| might be an MTU issue | 11:52 |
|
angelo_ts
| _ikke_, thanks. It is slow but it works. About http, i am trough a proxy also, so proxy and vpn | 11:53 |
|
| my vpn is tcp/tap. i could try to change the mtu | 11:53 |
| → azwieg103 joined | 11:55 |
| ← YuGiOhJCJ left | 11:56 |
| ← jottr left | 11:57 |
| → andrzejv joined | 12:05 |
| → royal_screwup21 joined | 12:06 |
| → rsrx joined | 12:12 |
| → mven joined | 12:13 |
| ← igemnace left | 12:16 |
| ← alfredb left | 12:16 |
| ← gloomy left | 12:18 |
| ← toothe left | 12:21 |
| ← mven left | 12:27 |
| ← computer2000 left | 12:28 |
| → computer2000 joined | 12:28 |
| ← computer2000 left | 12:28 |
| → bashfulshell joined | 12:32 |
| → Sonderblade joined | 12:35 |
| ← wildlander left | 12:37 |
| → rafasc joined | 12:39 |
| → Beam_Inn__ joined | 12:43 |
| → flavius joined | 12:44 |
| ← Beam_Inn_ left | 12:46 |
| Beam_Inn__ → Beam_Inn_ | 12:46 |
| → causa_sui joined | 12:47 |
| ← uebera|| left | 12:51 |
| → uebera|| joined | 12:52 |
| ← causa_sui left | 12:52 |
| ← zulutango left | 12:53 |
| ← goiko left | 12:53 |
| → fission6 joined | 12:55 |
| → gloomy joined | 12:57 |
| ← King_Of_Norway left | 12:59 |
| ← savolla left | 12:59 |
| → savolla joined | 13:00 |
| → mud joined | 13:00 |
| → wateriswet joined | 13:01 |
| → nic-hartley joined | 13:01 |
| → hussam joined | 13:02 |
| → mven joined | 13:02 |
| ← reactormonk left | 13:02 |
| → Candescence joined | 13:05 |
| ← mven left | 13:07 |
| → zulutango joined | 13:07 |
|
Candescence
| Hi folks, I'm trying to overcome a missing reference error when pushing using LFS, but I can't figure out how to turn on lfs.allowincompletepush. I'm using Sourcetree, btw. | 13:10 |
| → mven joined | 13:13 |
| → howell joined | 13:13 |
| ← th3m1s left | 13:13 |
| → Atlenohen joined | 13:17 |
| → pupsikov joined | 13:17 |
| ← mven left | 13:17 |
| → SerialSmile joined | 13:17 |
| → cd joined | 13:21 |
| ← howdoi left | 13:26 |
| → clime joined | 13:34 |
| ← thefatma left | 13:38 |
| ← Beam_Inn_ left | 13:39 |
| → reactormonk joined | 13:39 |
| ← savolla left | 13:40 |
| ← fission6 left | 13:41 |
| → Envil joined | 13:42 |
| ← mra90 left | 13:46 |
| ← reactormonk left | 13:47 |
| ← czart_ left | 13:48 |
| → Inline joined | 13:48 |
| ← nic-hartley left | 13:52 |
| → jottr joined | 13:53 |
| → bluezone joined | 13:53 |
| ← Sonderblade left | 13:53 |
| → hofmann3900 joined | 13:54 |
| → toothe joined | 14:00 |
| → greggerz joined | 14:00 |
| → fission6 joined | 14:01 |
| → lucasb joined | 14:01 |
| → boombatower joined | 14:03 |
| ← royal_screwup21 left | 14:04 |
| ← andrzejv left | 14:06 |
| ← wateriswet left | 14:09 |
| ← gloomy left | 14:16 |
| → wateriswet joined | 14:20 |
| ← sQVe left | 14:20 |
| → keepLearning512 joined | 14:21 |
| → mven joined | 14:23 |
| → oatmealraisin joined | 14:25 |
| → finalbeta joined | 14:26 |
| ← galaxie left | 14:27 |
| ← clime left | 14:27 |
| → galaxie joined | 14:31 |
| ← floppydh left | 14:33 |
| ← dege left | 14:34 |
| ← fission6 left | 14:34 |
| → inkbottle joined | 14:35 |
| → dege joined | 14:35 |
| → tmm88 joined | 14:36 |
| ← molusc left | 14:36 |
| → Phylock joined | 14:37 |
| → orbyt_ joined | 14:37 |
| ← bashfulshell left | 14:41 |
| → renich joined | 14:42 |
| ← jottr left | 14:43 |
| → thiago joined | 14:43 |
| ← wateriswet left | 14:45 |
| → Regon joined | 14:45 |
| → causa_sui joined | 14:48 |
| ← rsrx left | 14:48 |
| → royal_screwup21 joined | 14:50 |
| → sjoshi joined | 14:51 |
| ← causa_sui left | 14:53 |
| → jungsubk joined | 14:55 |
| ← thiago left | 14:55 |
| → rsrx joined | 14:57 |
| ← mowcat left | 14:57 |
| ← Noti left | 14:58 |
| → lmat joined | 14:58 |
| ← xcm left | 14:59 |
|
lmat
| I'm trying to set stash.showPatch rather than stash.showStat. | 14:59 |
|
| I tried git config --global stash.showPatch=1 but that didn't work. | 14:59 |
| → xcm joined | 14:59 |
|
lmat
| didn't work = git stash show; still shows a diffstat. | 15:00 |
| → Sonderblade joined | 15:01 |
|
rafasc
| lmat: git what does git config --show-origin --get-regex 'stash*' say? | 15:02 |
|
| maybe you need to also do stash.showStat=0 | 15:03 |
| → tang^ joined | 15:03 |
| → Noldorin joined | 15:04 |
| → Emperor_Earth joined | 15:05 |
| ← azwieg103 left | 15:06 |
| → igemnace joined | 15:06 |
|
lmat
| rafasc: nothing is returned. | 15:09 |
| → dpyro joined | 15:09 |
|
oxymoron93
| does that work? shouldn't it be `git config --global stash.showPatch true` | 15:09 |
|
lmat
| oxymoron93: I was hoping I had a syntax error. I'll try that. Thanks! | 15:09 |
| → azwieg103 joined | 15:09 |
|
lmat
| oxymoron93: Jackpot! | 15:09 |
|
rafasc
| git config --global stash.showPatch 1 | 15:10 |
| ← zonixo left | 15:10 |
|
rafasc
| oxymoron93: yea, true or any truthy value. I totally missed that the problem was on the setting the configuration. | 15:11 |
|
oxymoron93
| yeah sure, just not that `=` :D | 15:11 |
|
| btw, didn't you get any error lmat while trying to execute the first command? | 15:12 |
|
rafasc
| it should say something like error: invalid key: stash.showPatch=1 | 15:13 |
| → AtumT joined | 15:14 |
|
lmat
| oxymoron93: no error | 15:14 |
|
| oh... | 15:14 |
|
| maybe I did :-S | 15:15 |
|
| That would have been a dead giveaway...wonder how I missed that! | 15:15 |
|
| OOHH! My *first* command was git config --global stash.showPatch; and I didn't get an error with that. | 15:15 |
|
rafasc
| because that for is to ask the value of the configuration. And since you you didn't have it configured, it shows nothing. | 15:16 |
| ← jungsubk left | 15:18 |
|
lmat
| rafasc: :( | 15:18 |
| → jottr joined | 15:18 |
| → duderonomy joined | 15:20 |
|
rafasc
| s/for/form | 15:20 |
| ← agowa338 left | 15:21 |
|
rafasc
| $ git config --global -e; is handy to confirm. | 15:21 |
| ← duderonomy left | 15:22 |
| ← sjoshi left | 15:22 |
| → avar joined | 15:23 |
| → sjoshi joined | 15:26 |
| → th3m1s joined | 15:28 |
| → Achylles joined | 15:30 |
| ← oxymoron93 left | 15:31 |
| ← wildermind left | 15:31 |
| → opilab joined | 15:32 |
| ← jottr left | 15:33 |
| → causa_sui joined | 15:35 |
| → mowcat joined | 15:36 |
| → duderonomy joined | 15:37 |
| ← cybrNaut left | 15:37 |
| ← sjoshi left | 15:39 |
| → thomasross joined | 15:40 |
| ← wolfshappen left | 15:40 |
| ← duderonomy left | 15:40 |
| → wolfshappen joined | 15:42 |
| → clime joined | 15:42 |
| → King_DuckZ joined | 15:44 |
|
King_DuckZ
| hi, I just ran git fetch my_remote_1, now is there a way to push everything to my_remote_2? | 15:44 |
|
| git push --all my_origin_2 says "everything up to date" :/ | 15:45 |
|
| I want to push tags as well, I'm in detached head and I have no local branches | 15:45 |
| → Mr__Anderson joined | 15:46 |
|
_ikke_
| You'd have to push remote tracking branches, which git does not do by default | 15:46 |
| → thiago joined | 15:46 |
|
_ikke_
| git push my_remote_2 refs/remotes/my_remote_1/*:refs/heads/* | 15:47 |
|
| Something like that | 15:47 |
|
| (not tested) | 15:47 |
|
King_DuckZ
| hm is it easier if I just add my_remote_2 into the repo I just fetched and push --all from there then? | 15:47 |
| → SkarmoutsosV joined | 15:49 |
| → jungsubk joined | 15:49 |
| ← tm007 left | 15:50 |
| ← clime left | 15:51 |
| ← Sonderblade left | 15:53 |
| → Sasazuka joined | 15:54 |
| ← thomasross left | 15:55 |
| ← King_DuckZ left | 15:55 |
| → subopt joined | 15:55 |
| __infinity → vavkamil | 15:56 |
| ← howell left | 15:57 |
| → Ignacy joined | 16:01 |
| → savolla joined | 16:02 |
| → igi_ joined | 16:02 |
| → howell joined | 16:03 |
| ← mven left | 16:04 |
| → floppydh joined | 16:05 |
| ← Ignacy left | 16:05 |
| → jottr joined | 16:05 |
| → sahasatvik joined | 16:05 |
| ← skered left | 16:06 |
| ← orbyt_ left | 16:09 |
| ← interrobangd left | 16:09 |
| → interrobangd joined | 16:09 |
| → thebope joined | 16:10 |
| ← jottr left | 16:10 |
| → matsaman joined | 16:13 |
| ← interrobangd left | 16:14 |
| ← matsaman left | 16:14 |
| ← pupsikov left | 16:16 |
| ← opilab left | 16:17 |
| ← sahasatvik left | 16:17 |
| → nerosnm joined | 16:20 |
| ← thebope left | 16:21 |
| → mat001 joined | 16:21 |
| → skered joined | 16:21 |
| ← yyy- left | 16:23 |
| → plexigras joined | 16:24 |
| → duderonomy joined | 16:27 |
|
BtbN
| Can I point a ssh url for git to a specific private key, or do I need to configure that domain in .ssh/? | 16:28 |
| ← fphilipe_ left | 16:28 |
| ← duderonomy left | 16:30 |
| → iam730 joined | 16:30 |
| → jottr joined | 16:30 |
| → duderonomy joined | 16:31 |
| → gloomy joined | 16:32 |
| → Noti joined | 16:34 |
| → clime joined | 16:34 |
| → wxg joined | 16:35 |
|
rafasc
| you answered your own question. | 16:35 |
| ← duderonomy left | 16:37 |
| → cybrNaut joined | 16:38 |
|
rafasc
| BtbN: you can also use configure "core.sshCommand" to specify the full ssh command including the -i key | 16:38 |
| ← keepLearning512 left | 16:39 |
| → dfee joined | 16:40 |
| ← Noti left | 16:40 |
| ← mikecmpbll left | 16:41 |
| ← quxgyver left | 16:43 |
| ← wxg left | 16:44 |
| ← Sasazuka left | 16:45 |
|
BtbN
| rafasc, well, using .ssh has the issue that I can't have different keys for the same host (e.g. github) easily. So using the sshCommand is probably better. | 16:48 |
| → SwiftMatt joined | 16:49 |
|
tang^
| but you can give different aliases with different keys for the same host | 16:50 |
| ← gloomy left | 16:50 |
| → duderonomy joined | 16:56 |
| ← thiago left | 16:59 |
| → mikecmpbll joined | 17:01 |
| ← duderonomy left | 17:01 |
| ← howell left | 17:02 |
| → wootehfoot joined | 17:02 |
| → nightshift joined | 17:05 |
| → thiago joined | 17:05 |
| ← n3wborn left | 17:05 |
| → n3wborn joined | 17:06 |
| ← tmm88 left | 17:06 |
| → howell joined | 17:09 |
| → pupsikov joined | 17:10 |
| → fphilipe_ joined | 17:10 |
| ← jungsubk left | 17:13 |
| ← fphilipe_ left | 17:15 |
| ← howell left | 17:16 |
| → Mattiaslndstrm joined | 17:19 |
| → howell joined | 17:19 |
| ← dege left | 17:20 |
| → dege joined | 17:20 |
| → leeN joined | 17:23 |
| ← mimajof left | 17:24 |
| → fphilipe_ joined | 17:25 |
| ← scientes left | 17:25 |
| ← elichai2 left | 17:25 |
|
clime
| hey, if i run e.g. git for-each-ref --format='%(body)' refs/tags/tagname | 17:25 |
|
| it seems one more empty line is printed after the actual body and i have no idea why | 17:26 |
|
| - fooo | 17:26 |
|
| \n | 17:26 |
| ← sauvin left | 17:26 |
|
clime
| (the \n isn't actually there, it should have just mean <empty>) | 17:26 |
| → al-damiri joined | 17:27 |
| ← Mattiaslndstrm left | 17:29 |
| → Mattiaslndstrm joined | 17:30 |
| → nowhere_man joined | 17:30 |
| → cliluw joined | 17:32 |
| ← Atlenohen left | 17:33 |
|
clime
| seems there is a trailing new-line but i don't know if it is part of the tag or if it is added by git for-each ref. I creted the tag simply by git tag -a -m "- fooo" tagname | 17:33 |
|
| ok sry... | 17:34 |
|
| git tag -a -m "subject" -m "body" tagname | 17:34 |
|
| git for-each-ref --format="%(body)" refs/tags/tagname | 17:35 |
|
| gives: | 17:35 |
|
| body | 17:35 |
|
| ...and empty line | 17:35 |
|
| what is the empty line doing there? | 17:35 |
|
| ah okay... | 17:37 |
|
| git tag -a -m "subject" -m "body" -m "body2" tagname | 17:37 |
|
| git for-each-ref --format="%(contents)" refs/tags/tagname | 17:38 |
| → triad joined | 17:38 |
| → czart joined | 17:38 |
|
clime
| gives ... subject <empty line> body <empty line> body2 <empty line>. So -m inserts an empty line after each message probably to separate subject from the body. | 17:38 |
| → yyy- joined | 17:39 |
| ← jottr left | 17:39 |
| ← Rene left | 17:39 |
| ← triad left | 17:43 |
| ← kezimo left | 17:46 |
| ← Murr left | 17:46 |
| → Enphuego joined | 17:47 |
| → theoceaniscool_ joined | 17:49 |
| → Murr joined | 17:50 |
| ← mowcat left | 17:53 |
| → triad joined | 17:57 |
| → satifant joined | 17:59 |
| → snappy joined | 18:00 |
|
snappy
| is there a way to have git format-patch generate patches that are similar to "git diff", throwing away the commiter information | 18:01 |
|
_ikke_
| Just use git diff> | 18:01 |
|
| git diff? | 18:01 |
|
| they are valid patches | 18:01 |
|
snappy
| i want the patches to be split based on commit, the way git format-patch generates them | 18:03 |
|
| or to ask another way, is there a way to get git diff to create numbered patches based on the commits | 18:03 |
| → Sasazuka joined | 18:03 |
| ← triad left | 18:05 |
| ← nightshift left | 18:06 |
| ← thiago left | 18:06 |
| → thiago joined | 18:07 |
|
snappy
| ah nevermind, looks like git format-patch are compatible with the patch utility | 18:09 |
| ← savolla left | 18:11 |
|
_ikke_
| patch just ignores everything that comes before the diff | 18:11 |
| ← Olipro left | 18:13 |
| → Olipro joined | 18:13 |
| → jottr joined | 18:14 |
| ← azwieg103 left | 18:15 |
| → wateriswet joined | 18:15 |
| → azwieg103 joined | 18:15 |
| → Kaedenn joined | 18:17 |
|
Kaedenn
| How do I revoke/deny a pull request on github? | 18:17 |
|
| as in, "already did that, sorry" | 18:17 |
|
_ikke_
| close it? | 18:17 |
| → gloomy joined | 18:17 |
| ← cbreak left | 18:20 |
| → cbreak joined | 18:21 |
| ← Envil left | 18:24 |
| ← Olipro left | 18:25 |
| → scientes joined | 18:26 |
| ← T_UNIX left | 18:27 |
| → basiclaser joined | 18:27 |
|
Kaedenn
| Yea | 18:29 |
|
Zarthus
| that wasn't a question, it was your answer | 18:30 |
|
Kaedenn
| Ah, found the close button. | 18:30 |
|
| Wasn't looking hard enough. | 18:31 |
|
Zarthus
| :) | 18:31 |
| → duderonomy joined | 18:34 |
| ← igi_ left | 18:37 |
| → Ignacy joined | 18:38 |
| ← jstimm left | 18:40 |
| → orbyt_ joined | 18:44 |
| ← duderonomy left | 18:44 |
| ← jottr left | 18:45 |
| ← SerialSmile left | 18:47 |
| OtakuSenpai → dx_ob | 18:47 |
| → nic-hartley joined | 18:48 |
| → duderonomy joined | 18:51 |
| ← nerosnm left | 18:54 |
| ← Kaedenn left | 18:57 |
| → nightshift joined | 18:59 |
| ← clime left | 19:00 |
| ← Pistos left | 19:03 |
| → Tiders joined | 19:09 |
|
Tiders
| Hey guys i'm having a problem. I have a branch off master called X, in X i did a bunch of changes, and merged it into master. Then later made a revert commit in master to undo those changes, then aplied some more commits onto branch X to fix the problems but now when i try to merge master into my branch it's overwriting all of the stuff i still needed with the revert commit which removed it all. What should I do in this | 19:11 |
|
| situation? | 19:11 |
| → isBEKaml joined | 19:11 |
|
| nightshift makes sure irc client is logging, to catch the answer too | 19:13 |
|
rafasc
| !revert_merge | 19:13 |
|
gitinfo
| [!faulty_merge] If you have published a merge commit that turned out to be faulty and you'd like to get rid of it, you can use 'git revert' but there are gotchas to be aware of. Please read: https://raw.github.com/git/git/master/Documentation/howto/revert-a-faulty-merge.txt | 19:13 |
| → clime joined | 19:14 |
| ← nic-hartley left | 19:15 |
|
rafasc
| One option is to revert the revert commit. | 19:15 |
| → jottr joined | 19:16 |
| → svm_invictvs joined | 19:18 |
|
svm_invictvs
| Heya | 19:18 |
|
| WHy is it when I do a git merge foo, I end up with new changes in in my branch. But if do git merge <commit_id> when I basicaly do git checkout foo, copy the latest git commit from the git log, then switch back to the branch and do git merge <commit_id> it doesn't merge anything in? | 19:20 |
| → mowcat joined | 19:20 |
| ← mowcat left | 19:20 |
| → mowcat joined | 19:21 |
| ← czart left | 19:21 |
| ← orbyt_ left | 19:21 |
| ← kjartan left | 19:23 |
| → nerosnm joined | 19:25 |
| ← Achylles left | 19:25 |
| subopt → _subopt_in_repos | 19:26 |
|
rafasc
| svm_invictvs: git merge <something>; merges <something>; into your checked out branch. | 19:28 |
|
svm_invictvs
| Yeah | 19:28 |
| → kjartan joined | 19:28 |
|
rafasc
| if you checkout foo; git log -1; and do git merge <that hash>; | 19:28 |
|
| there's nothing to merge, because you have that checked out. | 19:28 |
| → orbyt_ joined | 19:28 |
|
svm_invictvs
| rafasc No, I check out the other branch | 19:28 |
| ← floppydh left | 19:29 |
|
svm_invictvs
| rafasc git checkout foo; git log - 1; git checkout bar; git merge <that hash> | 19:29 |
|
| That doesn't merge anything. | 19:29 |
|
vishal
| Tiders: the revert commit on master is just a new commit that happens to undo all the work done in X. If you merge master, you're 'bringing in' this undo into X. If you don't want to undo things in X, don't merge master. I think the question really at this point is what is your end goal? Is it to continue tweaking the feature on X? If so why merge master? | 19:29 |
|
svm_invictvs
| Or at least it didn't. | 19:29 |
|
rafasc
| svm_invictvs: that is equivalent of git checkout bar; git merge foo; | 19:30 |
|
svm_invictvs
| Yeah | 19:30 |
|
rafasc
| svm_invictvs: The only difference will be in the commit message. | 19:30 |
|
svm_invictvs
| rafasc This is for CI, so I skip the first step and let the CI system give me the commit hash | 19:30 |
|
vishal
| svm_invictvs: what does the merge command say? | 19:31 |
|
svm_invictvs
| And I Override the message w/ "Daily Build" or whatever. | 19:31 |
| ← _subopt_in_repos left | 19:31 |
| ← orbyt_ left | 19:31 |
|
svm_invictvs
| vishal let's see ... I have to wait for the cron job to process ... | 19:31 |
|
rafasc
| svm_invictvs: there's no difference for git merge if you give the commit sha, or a branch name. | 19:32 |
| → m0viefreak joined | 19:32 |
|
svm_invictvs
| rafasc That's what I thought. | 19:33 |
| → PettanShoutaKun joined | 19:33 |
| → subopt joined | 19:33 |
|
rafasc
| the only difference is when you call merge without arguments. | 19:33 |
|
| which defaults to merge the upstream branch. | 19:34 |
|
PettanShoutaKun
| I'm trying to use git diff on windows and I get an error that it could not access file, and then some long file path for a zip folder... but there's not a ton of information present about this... is it possible this is caused by a long filepath issue? | 19:34 |
|
svm_invictvs
| https://gist.github.com/ptwohig/4c265798fd9a604b0fc312bef0fb1606 | 19:34 |
| ← jottr left | 19:35 |
|
svm_invictvs
| Those are the commands I issue | 19:36 |
| → zonixo joined | 19:38 |
|
vishal
| svm_invictvs: have you verified CIRCLE_SHA1 is indeed the commit you expect? | 19:38 |
|
svm_invictvs
| vishal Yeah | 19:38 |
|
| vishal Well, it is on other jobs. | 19:38 |
|
| well ... let's echo it out and see | 19:39 |
| ← Regon left | 19:39 |
|
nightshift
| Ok. I've got a branch (template) going that isn't ready to be merged anywhere yet. But, I want to create another branch (experiment1) that will need to use some of the code in template (the code experiment1 will use IS ready, but the whole branch isn't). If experiment1 works, I'll want to merge that into either master, or a feature branch that hasn't yet been created. Would branching experiment off template | 19:41 |
|
| then merging into a totally different branch be appropriate? | 19:41 |
| → jstimm joined | 19:41 |
|
nightshift
| I'm kinda thinking I could do the experiment1 branch, but, leave it hanging, after finishing it, until after I merge template, then rebase experiment1, but not sure. (sorry, I know that's a little convoluted) | 19:43 |
| ← emsjessec left | 19:44 |
| ← SwiftMatt left | 19:44 |
| → Silenced joined | 19:45 |
|
rafasc
| you can do that, but if you merge 'experiment' that is based on 'template', you'll be indirectly merging template as well. | 19:45 |
|
| or at least merging what template was at the time you created 'experiment'. | 19:46 |
|
nightshift
| that's what I thought. | 19:46 |
| → orbyt_ joined | 19:47 |
| → moo joined | 19:47 |
|
rafasc
| nightshift: so this is an experiment that depends on 'template'. right? | 19:48 |
|
vishal
| I like rebases/cherry-picks for that sort of 'internal' orchestration (i.e. before you make a release) | 19:48 |
|
nightshift
| rafasc, yes | 19:48 |
|
vishal
| !post might be a relevant read | 19:49 |
|
gitinfo
| [!crosspost] Note: The above question was posted in both #git and #github | 19:49 |
|
vishal
| err | 19:49 |
|
| !pp | 19:49 |
|
rafasc
| I would branch off 'template', do the experiment, and keep rebasing on top of 'template'. | 19:49 |
|
nightshift
| thanks rafasc! | 19:49 |
| ← wootehfoot left | 19:50 |
|
rafasc
| the limitation is that you can only merge 'experiment' after 'template' is ready and merged. | 19:50 |
|
vishal
| !postprod | 19:50 |
|
gitinfo
| [!postproduction] So, you want to make your commit history look pretty before pushing? http://sethrobertson.github.com/GitPostProduction talks you through how to use 'rebase -i' to do this. | 19:50 |
|
vishal
| that's what I was looking for | 19:50 |
|
nightshift
| then, once template and experiment are doing what I need them to do, or I give up on experiment, I can merge into whatever other branches they need to end up, right? | 19:50 |
| ← jstimm left | 19:51 |
|
rafasc
| yes, you can just merge 'experiment', and it will bring along the commits from 'template'. | 19:51 |
|
nightshift
| I can deal with leaving experiment hanging if it is finished before template is, just wanted to make sure things would have worked the way I THOUGHT they'd work, before I started | 19:52 |
|
rafasc
| a merge is just one commit, that points to two (or more) commits. | 19:52 |
| → Olipro joined | 19:52 |
|
nightshift
| vishal: I will look at the link too, thank you | 19:52 |
|
rafasc
| nightshift: you can also merge template into your experiment, multiple times even... But the rebase is cleaner in my opinion. | 19:54 |
|
nightshift
| true on the rebase | 19:54 |
|
rafasc
| especially if this is an experiment, and you're a are free to !rewrite. | 19:54 |
|
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 | 19:54 |
|
nightshift
| yes, definitely free to rewrite | 19:55 |
|
rafasc
| how active is that 'template' branch. | 19:56 |
|
| ? | 19:56 |
|
nightshift
| I'm the only developer at this point, haven't put it out publicly yet (and, even if it was public, it's way too soon to take other contributions) | 19:56 |
|
| um, when I'm working, it's 3-5 commits a day, sometimes more. | 19:57 |
| ← kyan left | 19:57 |
|
nightshift
| it's sole purpose is to take 2 static html pages and prepare them for a script to populate certain aspects (aka, putting in references for variables, comments that indicate when loops would be needed, etc) | 19:59 |
| ← zonixo left | 19:59 |
| → zonixo joined | 20:00 |
|
svm_invictvs
| Well | 20:00 |
|
| I found the answer, I think | 20:00 |
|
| https://gist.github.com/ptwohig/93ee39f8bfc0dd72b85f167aed0ffec4 | 20:00 |
| → mven_ joined | 20:01 |
| → LionsMane joined | 20:02 |
|
rafasc
| svm_invictvs: the merge was able to fast-forward, but you can force the merge with --no-ff, if you want. | 20:02 |
| ← SkarmoutsosV left | 20:02 |
|
svm_invictvs
| rafasc I dont' follow | 20:02 |
|
| Do I need to do another commit on top of the squas merge? | 20:03 |
|
| 'cause it says doing a squash needs to a subsequent commit | 20:03 |
|
rafasc
| You don't need to do anything. The branch was updated. | 20:03 |
|
| oh, wait not updating HEAD? | 20:04 |
| → jottr joined | 20:04 |
| ← Candescence left | 20:05 |
|
svm_invictvs
| rafasc | 20:05 |
|
| rafasc I've not done many squash merges manuall before. | 20:05 |
| ← d^sh left | 20:05 |
|
rafasc
| let me test something real quick. | 20:05 |
| ← nerosnm left | 20:06 |
| → d^sh joined | 20:06 |
|
rafasc
| I think you need to commit separately. | 20:08 |
|
svm_invictvs
| Yeah | 20:09 |
|
rafasc
| --squash kind of is an implicit --no-commit. | 20:09 |
| ← oatmealraisin left | 20:10 |
|
rafasc
| and your --commit isn't overriding that. | 20:10 |
|
svm_invictvs
| git merge --squash XXXX && git commit | 20:10 |
|
| rafasc So I wasn't completely smoking crack. | 20:10 |
| → blackandblue joined | 20:10 |
|
vishal
| huh, /me didn't know that about squash | 20:10 |
| → gxt joined | 20:10 |
|
rafasc
| I am not sure if that's by design though. | 20:11 |
|
vishal
| "Produce the working tree and index state as if a real merge happened (except for the merge | 20:12 |
|
| information), but do not actually make a commit, move the HEAD, or record | 20:12 |
|
| $GIT_DIR/MERGE_HEAD..." | 20:12 |
|
rafasc
| vishal: --commit Perform the merge and commit the result. | 20:14 |
|
vishal
| ah you mean the failing override.. tryue | 20:14 |
|
rafasc
| so, it should 1) commit it, even though --squash by default doesn't. 2) error and complain that it cannot be used with --commit. | 20:14 |
|
| svm_invictvs: I am trying to search the !ml, because I have the impression I've read something about --squash before... | 20:17 |
|
| but cannot find it. Maybe you can ask on the mailing list. | 20:19 |
| ← zonixo left | 20:22 |
|
vishal
| if (squash) { | 20:22 |
|
| if (fast_forward == FF_NO) | 20:22 |
|
| die(_("You cannot combine --squash with --no-ff.")); | 20:22 |
|
| option_commit = 0; | 20:22 |
|
| } | 20:22 |
|
| so it just gets silently overwritten | 20:23 |
|
| builtin/merge.c:1307 (or thereabouts) | 20:23 |
| ← moo left | 20:25 |
|
rafasc
| vishal: problem isn't with ff per se, it's about the ambiguity of having --squash and --commit. | 20:25 |
|
vishal
| rafasc: ignore the ff bitas | 20:25 |
|
| bits* | 20:25 |
|
rafasc
| because in --squash says it will not commit. Think of it like a --squash --no-commit; | 20:26 |
|
vishal
| option_commit = 0; is the 'culprit' | 20:26 |
|
rafasc
| --squash --no-commit --commit; should commit, as latter flags usually override ealier ones. | 20:26 |
|
| oh, ok. Maybe needs another die() there with another message saying You cannot combine --squash with --commit. | 20:28 |
|
vishal
| is that sort of ordering explicitly documented/expected? between different options? | 20:28 |
|
| i.e. --no commit followed by --commit makes sense, parse-options.c will resolve that | 20:28 |
|
| but the if(squash) happens after parse-options | 20:28 |
| ← mven_ left | 20:28 |
|
vishal
| and it is the merge command overriding whatever parse-options resolved for commit | 20:29 |
|
| yeah a die or maybe even a warning seems reasonable | 20:29 |
| → mven_ joined | 20:29 |
|
rafasc
| well, I'd say making a patch adding the die() is good enough to at least start the discussion. | 20:29 |
|
| :) | 20:29 |
|
vishal
| fair enough :) | 20:29 |
|
rafasc
| are you up to it? | 20:29 |
|
vishal
| I'm happy to, but I'll give first dibs to svm_invictvs | 20:29 |
| ← boombatower left | 20:30 |
| → boombatower joined | 20:31 |
| ← subopt left | 20:32 |
| → nerosnm joined | 20:33 |
|
vishal
| rafasc: hm, this might not be as simple, because option_commit defaults to 1 | 20:33 |
|
| so you can't really if (option_commit) there, that would make squash always fail on its own | 20:33 |
|
| and afaict, the option parsing stuff doesn't have a way to tell a default on option vs something that was supplied | 20:34 |
|
| sounds more like a documentation patch to me :) | 20:37 |
| ← punto left | 20:37 |
| → punto joined | 20:37 |
| ← theoceaniscool_ left | 20:38 |
| ← nickmass left | 20:40 |
| ← alyptik left | 20:40 |
| → agowa338 joined | 20:41 |
| → in1t3r joined | 20:41 |
| ← jottr left | 20:42 |
| → jrnieder joined | 20:43 |
| ← gloomy left | 20:44 |
| ← Olipro left | 20:45 |
| → jottr joined | 20:48 |
| → Olipro joined | 20:48 |
| ← lacrymology left | 20:52 |
| ← jottr left | 20:58 |
| ← mven_ left | 20:59 |
| ← agowa338 left | 21:00 |
|
rafasc
| I think it could be more interesting if --squash were compatible with --commit. | 21:01 |
| → jottr joined | 21:01 |
| → mase-tech joined | 21:03 |
| ← mikecmpbll left | 21:04 |
|
vishal
| Yeah I can see just using the default message template that lists the commits being useful | 21:04 |
| → agowa338 joined | 21:04 |
| → SwiftMatt joined | 21:05 |
| → stcktrce joined | 21:06 |
| ← jottr left | 21:06 |
| ← SwiftMatt left | 21:07 |
| ← orbyt_ left | 21:08 |
| ← nikivi left | 21:09 |
| → Achylles joined | 21:09 |
| → nikivi joined | 21:12 |
|
vishal
| rafasc: I have a documentation patch, can cc you if you want | 21:15 |
| ← fphilipe_ left | 21:15 |
|
rafasc
| sure. Do you know my adress? | 21:15 |
|
vishal
| nope, feel free to pm me | 21:16 |
|
| or lemme know if there is a commit sha I can pick it up from :) | 21:16 |
|
rafasc
| 9ab9b5df0ee2a | 21:17 |
|
| for example | 21:17 |
| → mikecmpbll joined | 21:18 |
| ← Mr__Anderson left | 21:21 |
| → greatgatsby joined | 21:22 |
| → alyptik joined | 21:22 |
| ← rsrx left | 21:25 |
| ← clime left | 21:25 |
| ← pupsikov left | 21:26 |
| → voidSurfr joined | 21:29 |
| ← swalladge left | 21:30 |
| ← leeN left | 21:34 |
| ← libertyprime left | 21:34 |
| → oatmealraisin joined | 21:35 |
| ← renich left | 21:36 |
| → renich joined | 21:37 |
| → fphilipe_ joined | 21:37 |
| → codecutter joined | 21:38 |
|
codecutter
| by mistake i have reset to a an old commit and all the changes I made to the latest commits have now gone. is there a way to get this back? | 21:38 |
|
osse
| codecutter: where you on a branch at the time you did the faulty reset? | 21:39 |
|
| oh never mind | 21:39 |
|
bin_bash
| codecutter: did you reset --hard | 21:39 |
| → jottr joined | 21:39 |
|
osse
| codecutter: do git reflog HEAD, and find the correct commit. it's probably as easy as git reset --hard HEAD@{1} | 21:39 |
|
mmattice
| back up your directory before you go poking around in the reflog for the first time. | 21:40 |
|
codecutter
| osse i did a bunch of revert on panick too | 21:41 |
|
| https://pastebin.com/HpFgykYA | 21:41 |
|
osse
| i'm guessing HEAD@{3} then | 21:42 |
|
codecutter
| me too | 21:42 |
|
| how do i change it to that? | 21:42 |
|
osse
| first make sure it looks good: git show HEAD@{3} | 21:42 |
|
| then you just do a reset again to it | 21:43 |
|
codecutter
| oh man u guys are awesome | 21:43 |
|
| 1 sec | 21:43 |
| ← thiago left | 21:43 |
| ← howell left | 21:44 |
| ← fphilipe_ left | 21:44 |
|
codecutter
| i think thats the one | 21:44 |
|
| itb has files that are missing | 21:44 |
|
| it* | 21:44 |
| ← edwardly left | 21:44 |
| ← Silenced left | 21:46 |
|
codecutter
| osee u there? | 21:46 |
| ← nerosnm left | 21:46 |
| ← Ignacy left | 21:46 |
| ← plexigras left | 21:47 |
| ← Phylock left | 21:47 |
|
codecutter
| is this the command? git reset --hard HEAD@{3} | 21:47 |
|
| ok i will do that above command | 21:49 |
|
| the* | 21:49 |
|
| git reset --hard HEAD@{3} | 21:49 |
| → edwardly joined | 21:49 |
|
codecutter
| ah yes | 21:50 |
|
| :) | 21:50 |
| ← hqdruxn08 left | 21:50 |
|
codecutter
| life savers | 21:50 |
|
| peace | 21:52 |
| ← codecutter left | 21:52 |
| ← mikecmpbll left | 21:53 |
| → hqdruxn08 joined | 21:53 |
| yyy- → yyy | 21:53 |
| ← mase-tech left | 21:54 |
| → mase-tech joined | 21:54 |
| ← misuto left | 21:59 |
| ← jottr left | 22:00 |
| ← greatgatsby left | 22:02 |
| → Ignacy joined | 22:02 |
| ← Peetz0r left | 22:02 |
| ← agowa338 left | 22:02 |
| ← dege left | 22:02 |
| → misuto joined | 22:04 |
| → hqdruxn08_ joined | 22:04 |
| ← mase-tech left | 22:04 |
| → Peetz0r joined | 22:04 |
| ← dfee left | 22:05 |
| ← Sasazuka left | 22:06 |
| ← hqdruxn08 left | 22:07 |
| → mase-tech joined | 22:08 |
| ← hqdruxn08_ left | 22:09 |
| ← nightshift left | 22:10 |
| ← veegee left | 22:10 |
| → fphilipe_ joined | 22:12 |
| → hqdruxn08 joined | 22:14 |
| ← mase-tech left | 22:16 |
| → mikecmpbll joined | 22:16 |
| ← greggerz left | 22:17 |
| → Sasazuka joined | 22:18 |
| ← Peetz0r left | 22:20 |
| → Peetz0r joined | 22:21 |
| → jstimm joined | 22:24 |
| ← mikecmpbll left | 22:24 |
| → thiago joined | 22:25 |
| → Atlenohen joined | 22:27 |
| → bionade24 joined | 22:27 |
|
bionade24
| Does anyone know a tool to mirror a github organisation to another git server? | 22:28 |
| ← blackandblue left | 22:28 |
| ← CodeSlingerPaul left | 22:28 |
|
vishal
| bionade24: define another git server? There may be some third party support to migrate things into say gitlab, but github is different from git itself | 22:29 |
|
| and the software github runs for their features such as organizations is not open | 22:29 |
|
bionade24
| I could store everything between on a server, and it's for a long time | 22:30 |
|
vishal
| 9and the gitlab thing is just an example, I don't know if such a tool exists for it) | 22:30 |
| ← PettanShoutaKun left | 22:31 |
|
bionade24
| vishal: It just needs to fetch the repo names, clone/pull them and push them to the other | 22:31 |
|
vishal
| I see - there maybe tools - I don't know. Or you might be able to use githb's APIs to write one.. | 22:32 |
|
bionade24
| I alread wrote something a bit other purpose | 22:32 |
| → jottr joined | 22:33 |
| → mven_ joined | 22:33 |
| ← mven_ left | 22:33 |
|
bionade24
| But I could use it. I just can't believe that there are tons of tools to download all repos of a organization but not to real mirror it. | 22:33 |
|
| What are KDE and freedesktop using to mirror their repos | 22:34 |
|
| ? | 22:34 |
|
| I need it for >376 Repos | 22:34 |
| ← nikivi left | 22:35 |
| → zonixo joined | 22:41 |
| → mikecmpbll joined | 22:41 |
| ← jstimm left | 22:44 |
| ← fphilipe_ left | 22:45 |
| ← Emperor_Earth left | 22:48 |
| → nerosnm joined | 22:49 |
| ← jottr left | 22:50 |
| ← mikecmpbll left | 22:51 |
| ← toothe left | 22:55 |
|
rafasc
| clone --mirror; push --mirror in a loop? | 22:56 |
| → mikecmpbll joined | 22:56 |
| ← Ignacy left | 22:57 |
|
svm_invictvs
| vishal rafasc Wait, is this a bug? | 22:57 |
|
vishal
| svm_invictvs: I'm treating it as undocumented behavior for now | 22:58 |
|
rafasc
| svm_invictvs: it's like that by design, but we are questioning the design. | 22:58 |
|
svm_invictvs
| I see. | 22:58 |
|
vishal
| would be interesting to see what explodes if we just remove that 'option_commit = 0;' line :) | 23:00 |
| ← tang^ left | 23:00 |
| → dre_ joined | 23:01 |
| ← hussam left | 23:02 |
|
bionade24
| rafasc: For nearly 400 repos? Maybe a bit slow, but I found a tool I can possibly script | 23:02 |
| ← RustyShackleford left | 23:03 |
| ← random_yanek left | 23:03 |
| ← finalbeta left | 23:04 |
|
svm_invictvs
| vishal what is git written in? | 23:04 |
| ← mikecmpbll left | 23:04 |
|
vishal
| svm_invictvs: C, mainly | 23:04 |
|
svm_invictvs
| I thought so | 23:04 |
|
rafasc
| bionade24: gnu parallel, or xargs -P | 23:04 |
|
| svm_invictvs: git::master | 23:05 |
|
gitinfo
| svm_invictvs: Git web link: https://github.com/git/git/commits/master | 23:05 |
|
svm_invictvs
| Please supply the message using either -m or -F option. | 23:05 |
|
| uf | 23:05 |
| ← royal_screwup21 left | 23:06 |
| → mikecmpbll joined | 23:06 |
| → dfee joined | 23:06 |
|
svm_invictvs
| I thought git commit --squash=xxxxx would do it | 23:06 |
| ← mikecmpbll left | 23:06 |
| ← Habbie left | 23:09 |
| ← orcainbox left | 23:10 |
|
rafasc
| git commit --squash is something different. | 23:12 |
|
| it just modifies the commit message so it can be used with rebase --autosquash. | 23:13 |
|
| the xxxx is the commit you want do squash against. | 23:13 |
| → nightshift joined | 23:19 |
| → Habbie joined | 23:19 |
| → random_yanek joined | 23:20 |
| ← random_yanek left | 23:20 |
| ← zonixo left | 23:20 |
| ← Peetz0r left | 23:21 |
| ← nerosnm left | 23:21 |
|
svm_invictvs
| I see. | 23:23 |
|
| rafasc Yeah, but thi sis in a CI environment | 23:23 |
| → Peetz0r joined | 23:24 |
|
svm_invictvs
| rafasc So, I don't want to edit the message. I just want to commit whatever the generated squash message is | 23:24 |
|
rafasc
| svm_invictvs: git commit --squash doesn't squash anything. | 23:24 |
|
svm_invictvs
| Right now, I'm doing git merge --squash && git commit | 23:24 |
|
| And the problem is that it can't find the editor because, well it's running in a CI environment where there shoouldn't be an editor | 23:25 |
|
rafasc
| you can try git commit --no-edit | 23:25 |
|
svm_invictvs
| Ah... | 23:25 |
| → violentE joined | 23:26 |
|
svm_invictvs
| rafasc I thought there was some magic I had to do to generage the message and pipe it into -m or something | 23:27 |
|
rafasc
| you can do that. | 23:27 |
| → howdoi joined | 23:27 |
|
rafasc
| write a file with the message and do git commit -F file; | 23:28 |
| ← n3wborn left | 23:29 |
|
sangy
| is git clean -Xn the best way to know if a file that's ignored is a generated one or it is tracked | 23:30 |
|
| I guess I could also git ls-tree or so, but I wonder if there's a better way | 23:31 |
|
vishal
| svm_invictvs: rafasc: git commit -F .git/COMMIT_EDITMSG might be a cute trick :) | 23:31 |
|
rafasc
| vishal: that's what --no-edit would do. | 23:32 |
|
vishal
| ahh ok | 23:32 |
|
rafasc
| sangy: well, you cannot ignore tracked files... So not sure what you are asking. | 23:35 |
|
svm_invictvs
| heh | 23:35 |
|
| rafasc I could run it through a few awk passes first, :P | 23:35 |
| ← kjartan left | 23:36 |
|
nightshift
| vishal, would that trick allow one to push .git/description to a remote repository? | 23:36 |
|
rafasc
| sangy: there's $git check-ignore; | 23:36 |
|
vishal
| nightshift: how do you mean? | 23:36 |
|
rafasc
| nightshift: no. Anything inside .git/ cannot be committed. | 23:37 |
|
| if you mean use .git/description as commit message for a commit, then yes you could do that. | 23:37 |
|
nightshift
| thanks rafasc, didn't think so, and I already have the work around for that, was just wondering | 23:37 |
|
| No, I was wondering if there was a way to edit .git/description locally, and then get it "automatically" sent to the remote. I already have a work around, was just curious. didn't realize what vishal's trick was actually doing | 23:39 |
| → random_yanek joined | 23:39 |
| ← random_yanek left | 23:39 |
|
rafasc
| nightshift: git tag description "$(git hash-object -w .git/description)"; | 23:40 |
|
| then send the tag instead. | 23:40 |
|
vishal
| what's .git/description even used by? | 23:41 |
| → kjartan joined | 23:41 |
|
| vishal has never set it | 23:41 |
|
nightshift
| vishal: by default? gitweb | 23:41 |
|
| I'm wanting to use it under similar circumstances | 23:41 |
|
vishal
| yeah I figured visualization tools | 23:42 |
| ← alyptik left | 23:42 |
|
sangy
| rafasc: ah cool | 23:42 |
|
| vishal tends to stay away from those | 23:42 |
|
sangy
| rafasc: yeah so there was this generated file that cuold've been ignored, but I wasn't sure if it was checked in or it was just not being part of git status because it was ignored | 23:43 |
|
| one option would've been to edit it to see if it showed up on git status but I wanted to know how to do it right | 23:43 |
|
rafasc
| sangy: for manual use, ls-tree or even git show HEAD:path/to/file should be enough to check if it's tracked. | 23:45 |
|
sangy
| rafasc: ah, didn't know about :path/to/file. That's cool. Thanks! | 23:45 |
|
rafasc
| and check-ignore to see if it's untracked files are ignored or not.. | 23:46 |
|
| sangy: useful for scripting with $git rev-parse --quiet --verify HEAD:LICENSE | 23:47 |
| → random_yanek joined | 23:47 |
| ← random_yanek left | 23:47 |
| ← bionade24 left | 23:48 |
| ← oatmealraisin left | 23:52 |
| ← yyy left | 23:56 |
| → random_yanek joined | 23:56 |
| ← random_yanek left | 23:56 |
| ← Peetz0r left | 23:57 |
| → nerosnm joined | 23:57 |
| → dviola joined | 23:58 |
| ← isBEKaml left | 23:59 |
| → Beam_Inn_ joined | 23:59 |
| ← azwieg103 left | 23:59 |