| 2019-09-10 |
| → nabil__ joined | 00:01 |
| ← nabil_ left | 00:02 |
| ← alystair left | 00:03 |
| ← AtumT left | 00:04 |
| ← esotericnonsense left | 00:04 |
| → esotericnonsense joined | 00:06 |
| ← nabil__ left | 00:07 |
| → causa_sui joined | 00:09 |
| ← MaximusColourum left | 00:12 |
| ← johnny56 left | 00:15 |
| → jstimm joined | 00:18 |
| ← kaokao left | 00:19 |
| ← dartmouthed left | 00:20 |
| ← b0nn left | 00:23 |
| → omnireq joined | 00:24 |
| → publio joined | 00:27 |
| ← thiago left | 00:29 |
| → b0nn joined | 00:30 |
| → ferdna joined | 00:33 |
| ← sythe left | 00:36 |
| ← sozuba left | 00:39 |
| ← rjsalts left | 00:42 |
| → rjsalts joined | 00:42 |
| ← rjsalts left | 00:43 |
| → rjsalts joined | 00:43 |
| → igemnace joined | 00:47 |
| ← RoriconKnight left | 00:48 |
| ← causa_sui left | 00:49 |
| ← stitched_unicorn left | 00:50 |
| → ghost43 joined | 00:55 |
| ← rafasc left | 00:56 |
| ← igemnace left | 00:59 |
| → howdoi joined | 00:59 |
| ← Inconveniece left | 01:04 |
| → BrianBlaze joined | 01:04 |
| ← Sasazuka left | 01:07 |
| → causa_sui joined | 01:11 |
| ← dviola left | 01:12 |
| ← amcclure left | 01:20 |
| → thiago joined | 01:20 |
| ← orbitex left | 01:21 |
| ← CryptoDavid left | 01:23 |
| → igemnace joined | 01:27 |
| → SkarmoutsosV joined | 01:29 |
| ← igemnace left | 01:29 |
| ← Fernando-Basso left | 01:29 |
| ← Atlenohen left | 01:43 |
| ← kerframil left | 01:50 |
| → Goplat joined | 01:51 |
| ← causa_sui left | 01:52 |
| ← libertyprime left | 01:56 |
| ← F0rTex left | 01:57 |
| → F0rTex joined | 01:59 |
| → alystair joined | 02:04 |
| ← javashin left | 02:05 |
| → johnny56 joined | 02:05 |
| → nabil joined | 02:05 |
| ← crose left | 02:15 |
| → fstd_ joined | 02:16 |
| ← SteenJobs left | 02:16 |
| ← ferdna left | 02:19 |
| ← fstd left | 02:20 |
| fstd_ → fstd | 02:20 |
| ← lankanmon left | 02:23 |
| → lankanmon joined | 02:25 |
| ← agg left | 02:29 |
| ← Enphuego left | 02:31 |
| → esrse joined | 02:34 |
| → libertyprime joined | 02:36 |
| → omnireq_ joined | 02:37 |
| ← omnireq left | 02:39 |
| ← spacesuitdiver left | 02:44 |
| ← chachasmooth left | 02:45 |
| → chachasmooth joined | 02:46 |
| ← nic-hartley left | 02:49 |
| ← Anthaas_ left | 02:51 |
| → Anthaas joined | 02:51 |
| → rople joined | 02:53 |
| → Takkun joined | 02:54 |
| ← Cabanossi left | 02:56 |
| lagothrix → Guest2687 | 02:56 |
| ← Guest2687 left | 02:56 |
| → lagothrix joined | 02:56 |
| ← rople left | 02:58 |
|
Takkun
| Hi! is there a way to automatically fetch updates to pc1 from git-server when pc2 git pushes? | 02:58 |
| → rople joined | 03:01 |
| → Cabanossi joined | 03:03 |
| → dege joined | 03:03 |
| → nabil_ joined | 03:11 |
| ← z8z left | 03:12 |
| ← nabil left | 03:14 |
| ← deltab left | 03:20 |
| thomasross → Guest41246 | 03:28 |
| → thomasross_ joined | 03:28 |
| ← Guest41246 left | 03:28 |
| thomasross_ → thomasross | 03:28 |
| → deltab joined | 03:30 |
| → ericfreese joined | 03:39 |
| ← dege left | 03:40 |
| → ycon_ joined | 03:50 |
|
ycon_
| Hi all, I've got a strange problem where my commits are ending up on a branch I don't intend | 03:51 |
|
| I wrote a script to automate my git, so it can automatically deploy a folder on a branch. https://dpaste.de/LqcP#L18 | 03:52 |
| → z8z joined | 03:58 |
| → im0nde_ joined | 03:59 |
| ← z8z left | 04:00 |
| → z8z joined | 04:00 |
| → pabs3 joined | 04:00 |
| ← im0nde left | 04:01 |
| ← z8z left | 04:02 |
| → z8z joined | 04:02 |
|
pabs3
| is there a command to determine if a string is a valid tree-ish for passing to git ls-tree? | 04:02 |
| ← trestopochic left | 04:03 |
| ← ycon_ left | 04:03 |
| → resetpacket joined | 04:12 |
| ← uidzer0 left | 04:15 |
| ← SkarmoutsosV left | 04:19 |
| ← resetpacket left | 04:22 |
| → uidzer0 joined | 04:24 |
| ← z8z left | 04:25 |
| → dartmouthed joined | 04:25 |
| ← waveclaw left | 04:29 |
| → nabil__ joined | 04:32 |
| ← Aquazi left | 04:33 |
| ← nabil_ left | 04:35 |
| ← publio left | 04:36 |
| ← xcm left | 04:36 |
| → xcm joined | 04:37 |
| → stitched_unicorn joined | 04:37 |
| → wilbert joined | 04:41 |
| → steven joined | 04:44 |
| → wilbert_ joined | 04:53 |
| ← wilbert left | 04:55 |
| → ycon_ joined | 04:57 |
| ← wilbert_ left | 04:58 |
| → nabil_ joined | 04:59 |
|
ycon_
| Hi all, I've got a strange problem where my commits are ending up on a branch I don't intend. Do I need to git checkout or something? I wrote a script to do it, as it's my "deploy" branch https://dpaste.de/LqcP | 04:59 |
| → SteenJobs joined | 05:01 |
| ← nabil__ left | 05:02 |
| → z8z joined | 05:02 |
| ← mszyszko left | 05:05 |
| ← malina left | 05:05 |
| → nabil joined | 05:05 |
| ← ycon_ left | 05:06 |
| → null1337 joined | 05:06 |
| → g00s joined | 05:07 |
| ← nabil_ left | 05:07 |
| → Keytap joined | 05:07 |
| ← Keytap left | 05:13 |
| Hoffman → Ron_Paul | 05:14 |
| ← nabil left | 05:14 |
| → dijitol joined | 05:14 |
| ← z8z left | 05:18 |
| → pks joined | 05:20 |
| ← stitched_unicorn left | 05:21 |
| → YuGiOhJCJ joined | 05:24 |
| ← hojang left | 05:31 |
| → sauvin joined | 05:32 |
| → stitched_unicorn joined | 05:33 |
| ← Inline left | 05:34 |
| ← dijitol left | 05:34 |
| ← SteenJobs left | 05:38 |
| → clime joined | 05:40 |
|
MACscr
| how can i get clone into a specific directory that already has contents in it? I do want it to overwrite if any files its pulling in from the git repo exist in that directory | 05:44 |
| ← ericfreese left | 05:44 |
|
MACscr
| http://paste.debian.net/1099785/ | 05:47 |
| → fphilipe joined | 05:47 |
|
thiago
| rename the directory, then clone | 05:49 |
|
| afterwards, merge the contents by your own means | 05:49 |
|
MACscr
| ugh | 05:49 |
|
| i just want to fetch some files into a directory =( | 05:50 |
| → fjellfras joined | 05:53 |
| ← thiago left | 05:56 |
| im0nde_ → im0nde | 05:59 |
| ← clime left | 06:06 |
| → TomTom joined | 06:17 |
| ← Takkun left | 06:19 |
| ← cd left | 06:19 |
| → Unode joined | 06:22 |
|
Unode
| hi all, does anyone have a command/link/reference to how to obtain the size of each commit in git history. I have a git repository with a few text files that have been changing over the years and I want to know how many bytes each commit added/removed or modified (added+removed). The goal is to know if some specific commits expanded the repository considerably or if the growth has been consistent through time. | 06:24 |
| ← Anthaas left | 06:24 |
|
Unode
| thank | 06:24 |
|
| *s | 06:24 |
| → Anthaas joined | 06:25 |
|
Unode
| I found a few snippets online but they mostly focus on individual objects (i.e. what commit added a big file). | 06:25 |
| → Takkun joined | 06:26 |
|
Unode
| In my case all files have been present since the initial commit but have been tracked over the years. | 06:26 |
| ← tufteddeer left | 06:27 |
| → sQVe joined | 06:30 |
| ← TomyLobo left | 06:31 |
| → FetusDeletus joined | 06:32 |
| → oxymoron93 joined | 06:33 |
| → rfuentess joined | 06:33 |
| ← rople left | 06:34 |
| → NwS joined | 06:34 |
| → ExeciN joined | 06:37 |
| → Jitta joined | 06:37 |
| ← alystair left | 06:39 |
| ← ExeciN left | 06:41 |
| ← fphilipe left | 06:43 |
| ← gxt left | 06:44 |
| ← oxymoron93 left | 06:45 |
| → mase-tech joined | 06:45 |
| → n3wborn joined | 06:48 |
| → courrier joined | 06:52 |
| ← courrier left | 06:52 |
| → courrier joined | 06:52 |
| → chele joined | 06:53 |
| → TomyWork joined | 06:54 |
| ← lankanmon left | 06:57 |
| → lem-fr joined | 06:58 |
| ← hussam left | 07:00 |
| → lankanmon joined | 07:00 |
| → ExeciN joined | 07:01 |
| → rople joined | 07:10 |
| → oxymoron93 joined | 07:10 |
| ← rople left | 07:11 |
| → rople joined | 07:11 |
| → fphilipe joined | 07:12 |
| ← fphilipe left | 07:13 |
| → fphilipe joined | 07:13 |
| → abbiya joined | 07:13 |
| → nabil_ joined | 07:14 |
| ← TomyWork left | 07:14 |
| ← paraxial left | 07:15 |
| → clime joined | 07:15 |
| → paraxial joined | 07:16 |
| ← stitched_unicorn left | 07:17 |
| → stitched_unicorn joined | 07:17 |
| ← stitched_unicorn left | 07:17 |
| ← paraxial left | 07:20 |
| → floppydh joined | 07:23 |
| → stitched_unicorn joined | 07:24 |
| → nabil__ joined | 07:25 |
| ← stitched_unicorn left | 07:26 |
| ← nabil_ left | 07:26 |
| → paraxial joined | 07:26 |
| ← Anthaas left | 07:27 |
| → Anthaas joined | 07:28 |
| → malina joined | 07:32 |
| → rfuentess__ joined | 07:40 |
| ← rfuentess left | 07:40 |
| → hojang joined | 07:42 |
| ← libertyprime left | 07:42 |
| → libertyprime joined | 07:44 |
| → nabil_ joined | 07:49 |
| → aweb joined | 07:50 |
| → jerry_ joined | 07:50 |
| ← FetusDeletus left | 07:50 |
| → nowhere_man joined | 07:51 |
| ← nabil__ left | 07:51 |
| → nabil__ joined | 07:51 |
| → Makaveli7 joined | 07:53 |
| ← xcm left | 07:53 |
| → xcm joined | 07:54 |
| ← nabil_ left | 07:54 |
| ← nowhere_man left | 07:57 |
| ← fphilipe left | 08:00 |
| → nowhere_man joined | 08:01 |
| → stitched_unicorn joined | 08:01 |
| → fphilipe joined | 08:03 |
| → Anticom joined | 08:03 |
| ← planigan left | 08:09 |
| → planigan joined | 08:09 |
| ← mase-tech left | 08:12 |
| ← Furai left | 08:30 |
| → feriman joined | 08:32 |
| → Furai joined | 08:33 |
| ← stitched_unicorn left | 08:35 |
| ← Anthaas left | 08:36 |
| → Anthaas joined | 08:36 |
| ← grumble left | 08:40 |
| ← n3wborn left | 08:41 |
| ← fphilipe left | 08:42 |
| ← g00s left | 08:43 |
| → fphilipe joined | 08:45 |
| → ave_milia joined | 08:50 |
| ← pabs3 left | 08:50 |
| ← hussar left | 08:50 |
| → SkarmoutsosV joined | 08:55 |
| ← xcm left | 09:00 |
| → xcm joined | 09:00 |
| ← Goplat left | 09:02 |
| → stitched_unicorn joined | 09:02 |
| ← libertyprime left | 09:02 |
| ← stitched_unicorn left | 09:03 |
| → stitched_unicorn joined | 09:05 |
| ← stitched_unicorn left | 09:09 |
| → crose joined | 09:10 |
| ← nowhere_man left | 09:15 |
| ← crose left | 09:21 |
| → crose joined | 09:22 |
| ← crose left | 09:23 |
| → crose joined | 09:24 |
| ← Joel left | 09:31 |
| → sudomann_ joined | 09:31 |
| → figuinhas joined | 09:32 |
|
sudomann_
| How can i reveal the credentials that `git` is using to push/pull to a repository I was granted access to? | 09:32 |
|
| not the email and name | 09:32 |
|
| I mean like a key or something. I assume thats what it's using since it does not ask for my username and password when I try to push | 09:33 |
|
henrebotha[m]
| It's using an ssh key then | 09:33 |
|
| Look in ~/.ssh | 09:33 |
|
sudomann_
| strangely enough that folder does not seem to exist on my filesystem | 09:33 |
|
| which is what is baffling me | 09:33 |
|
| Im on windows by the way | 09:34 |
|
henrebotha[m]
| Ah ok, not sure where Windows stores them | 09:34 |
|
| Which interface are you using for Git? | 09:34 |
| ← zamba left | 09:34 |
|
henrebotha[m]
| Check /c/Users/$your_username/.ssh | 09:35 |
|
sudomann_
| Well the command line tool works just fine for pulling and pushing, but my GUI (GitKraken) says "doublecheck your remote url then make sure your have permission to do that action on the remote and try again" | 09:36 |
|
henrebotha[m]
| Ok so that's your actual problem? CLI Git works just fine but GitKraken won't authenticate? | 09:37 |
|
sudomann_
| henrebotha[m]: I looked for the folder there and it did not exist | 09:37 |
|
| yes | 09:37 |
|
| Its works with my other repositories that I created | 09:37 |
|
| But this is someone elses repo i was added to. I cloned with the CLI tool and tried to then push from GitKraken, but it wont authenticate | 09:38 |
|
| I was hoping to figure out what key the cli tool is using so I can supply it to gitkraken and hopefully it would work | 09:38 |
| ← catsup left | 09:39 |
| → gloomy joined | 09:40 |
| → catsup joined | 09:40 |
|
henrebotha[m]
| Are you signed in to GitHub in GitKraken? | 09:40 |
| → zamba joined | 09:42 |
|
sudomann_
| yes | 09:42 |
|
| Is it possible the repo owner could have placed some sort of restriction that's preventing me from using anything but the CLI tool? | 09:43 |
| → Joel joined | 09:44 |
|
henrebotha[m]
| No, I don't think such a thing exists | 09:45 |
| ← feriman left | 09:46 |
|
sudomann_
| I think it might be important to mention that I was added to this repository via Github Classroom | 09:46 |
|
henrebotha[m]
| https://support.gitkraken.com/integrations/github/#why-cant-i-see-my-remotes-or-repositories-in-the-drop-down-menu | 09:48 |
|
| ^ That might illuminate something | 09:48 |
|
sudomann_
| But I cant see I still cant push/pull from gitkraken | 09:48 |
|
henrebotha[m]
| It sounds like GitKraken actually needs to be authorised in GitHub | 09:48 |
| → libertyprime joined | 09:49 |
| ← courrier left | 09:49 |
|
sudomann_
| aaaahhh that must be it | 09:49 |
| → deathwishdave joined | 09:50 |
|
sudomann_
| Will see my professor about this. If he'll allow me to use GitKraken for submissions, and Organization approval takes too long, I may just submit my work as pull requests instead of committing directly | 09:51 |
|
| Thanks for helping me figure that out | 09:51 |
|
henrebotha[m]
| You're welcome | 09:53 |
| ← jerry_ left | 09:53 |
| ← aweb left | 09:54 |
| ← gloomy left | 09:56 |
| ← Newami left | 09:57 |
| ← Crocodillian left | 09:58 |
| → Crocodillian joined | 09:59 |
| ← sudomann_ left | 09:59 |
| → Newami joined | 10:00 |
| ← fphilipe left | 10:01 |
| → fphilipe joined | 10:02 |
| ← Orbitrix left | 10:10 |
| → Orbitrix joined | 10:11 |
| ← nuc left | 10:18 |
| ← NwS left | 10:19 |
| → nuc joined | 10:20 |
| → feriman joined | 10:20 |
| ← nuc left | 10:22 |
| → nuc joined | 10:22 |
| → rafasc joined | 10:23 |
| ← nuc left | 10:23 |
| → royal_screwup213 joined | 10:24 |
| → nuc joined | 10:24 |
| → grumble joined | 10:24 |
| → TomyWork joined | 10:34 |
| → TJ- joined | 10:37 |
| ← YuGiOhJCJ left | 10:37 |
| ← oatmealraisin left | 10:45 |
| ← fjellfras left | 10:45 |
| ← rople left | 10:47 |
| → rople joined | 10:48 |
| → enoq joined | 10:57 |
| ← Eryn_1983_FL left | 10:58 |
| → Aquazi joined | 10:59 |
| ← hojang left | 11:01 |
| → emsjessec joined | 11:03 |
| → Toxmi joined | 11:07 |
| ← dhollinger left | 11:13 |
| → dhollinger joined | 11:14 |
| ← libertyprime left | 11:18 |
| → stitched_unicorn joined | 11:18 |
| → libertyprime joined | 11:19 |
| ← cebor left | 11:24 |
| ← stitched_unicorn left | 11:25 |
| → cebor joined | 11:25 |
| → stitched_unicorn joined | 11:28 |
| → Hounddog joined | 11:28 |
| ← cebor left | 11:29 |
| → cebor joined | 11:30 |
| → Eryn_1983_FL joined | 11:38 |
| ← rople left | 11:42 |
| → rople joined | 11:42 |
| → hojang joined | 11:50 |
| ← royal_screwup213 left | 11:51 |
| ← rople left | 11:59 |
| → Fischmiep joined | 12:00 |
| → tufteddeer joined | 12:00 |
| ← stitched_unicorn left | 12:00 |
| → nerosnm joined | 12:00 |
| → MaximusColourum joined | 12:02 |
| → Franciman joined | 12:05 |
| ← Franciman left | 12:05 |
| → nic-hartley joined | 12:06 |
| → Kaivo joined | 12:07 |
| ← esrse left | 12:16 |
| ← malina left | 12:16 |
| → kerframil joined | 12:17 |
| → CodeSlingerPaul joined | 12:19 |
| → sozuba joined | 12:20 |
| ← feriman left | 12:22 |
| ← crose left | 12:24 |
| → Lucas_Gray joined | 12:25 |
| → crose joined | 12:25 |
| ← abbiya left | 12:25 |
| → boombatower joined | 12:30 |
| ← Lucas_Gray left | 12:32 |
| → Wryhder joined | 12:32 |
| Wryhder → Lucas_Gray | 12:33 |
| grumble → \emph{grumble} | 12:36 |
| → cyberpear joined | 12:51 |
|
cyberpear
| is it possible to make `git diff` automatically add `--textconv` for binary files with a specified diff driver? | 12:52 |
| → gloomy joined | 12:54 |
|
rafasc
| cyberpear: isn't that the default? | 12:54 |
| → shaarad joined | 12:54 |
|
cyberpear
| somehow it isn't on my systems, using git 2.18 | 12:55 |
|
| maybe I've got a config file somewhere? | 12:55 |
| → lucasb joined | 12:55 |
|
cyberpear
| I have to pass --textconv every time if I want t he diff driver to do its thing | 12:55 |
|
| is there a way to dump non-default config options specified? | 12:56 |
|
rafasc
| maybe you have a bad pattern in the .gitattribute? | 12:56 |
|
| cyberpear: git config -l; git var -l; git config -l --source; | 12:57 |
| also_uplime → ^ | 12:57 |
|
cyberpear
| strangely, it works when I specify `--textconv`, but it suppresses the diff w/o the flag | 13:00 |
|
| but the output from the commands you suggest show only my configured diff driver and a gitattributes file; nothing further | 13:01 |
| ← gloomy left | 13:03 |
| → azwieg103 joined | 13:04 |
| ← random_yanek left | 13:05 |
| ← hojang left | 13:06 |
|
rafasc
| cyberpear: can you show a sample of a gitattributes line where you set the diff= ? | 13:06 |
| → igemnace joined | 13:08 |
| → agowa338 joined | 13:09 |
|
rafasc
| there's a section on man gitattributes 'Marking files as binary' that may interest you. | 13:10 |
|
gitinfo
| the gitattributes manpage is available at https://gitirc.eu/gitattributes.html | 13:10 |
| ← shaarad left | 13:10 |
| → random_yanek joined | 13:11 |
| → octav1a joined | 13:12 |
| → courrier joined | 13:14 |
| ← courrier left | 13:15 |
| ← nic-hartley left | 13:15 |
| → courrier joined | 13:15 |
| → chandoo joined | 13:16 |
| ← Makaveli7 left | 13:17 |
| ← azwieg103 left | 13:20 |
| ← nerosnm left | 13:21 |
| ← Toxmi left | 13:22 |
|
cyberpear
| in my .gitattributes: `*.gz diff=gzip` | 13:22 |
|
| then in my ~/.gitconfig, I've got `diff.gzip.binary=true` and `diff.gzip.textconv=/bin/zcat` (as shown by `git var -l`) | 13:23 |
| → renihs joined | 13:29 |
| → SteenJobs joined | 13:31 |
|
rafasc
| just tested in 2.23.0, and in 2.18.0, and with that setting I always see the textconv. | 13:32 |
| → nerosnm joined | 13:32 |
|
rafasc
| can you put *.gz diff=gzip inside .git/info/attributes and try again? | 13:33 |
|
renihs
| hello, not sure if this the right channel for this question (possibly not) but i would be interested for input/ideas: i would like to use git as configuration mgmt for servers, and create a project per server: however, there are only specific trees/configs i would want to checkin like apache/haproxy/php or like (per server). is it a bad idea to structure this in branches? e.g servername +master (contains descriptions/readmes) -> + apache branch + etc branch? | 13:33 |
| ← kerframil left | 13:33 |
|
rafasc
| cyberpear: could it be you're trying to checkout something from a time where the .gitattribute wasn't set? | 13:33 |
| ← nerosnm left | 13:37 |
| ← TJ- left | 13:38 |
| ← apetresc left | 13:38 |
|
rafasc
| renihs: not a bad idea, the execution is where most people get it wrong. If the trees are not related, you could use an orphan branch per tree, see git switch --orphan= / git checkout --orphan; and keep it all inside the same repo. Then steal some ideas from !deploy to deploy those branches. | 13:39 |
|
gitinfo
| renihs: Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html | 13:39 |
| → apetresc joined | 13:42 |
| ← Hounddog left | 13:42 |
| → gloomy joined | 13:45 |
| → john2496 joined | 13:46 |
| → phobosoph joined | 13:48 |
|
phobosoph
| hi | 13:48 |
|
gitinfo
| phobosoph: 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. | 13:48 |
|
phobosoph
| So I just pulled from Github upstream master to local repo master | 13:48 |
|
| but there are conflicts | 13:48 |
| → Es0teric joined | 13:49 |
|
phobosoph
| well, I want to have the upstream on the local for that master branch thing | 13:49 |
|
| so can I force-pull everything from upstream? | 13:49 |
|
| just resolve the conflicts "theirs"? | 13:49 |
|
| anyone? :) | 13:50 |
|
| ah, git pull for fast forwarding | 13:50 |
|
| lol | 13:50 |
|
| no, it still complains | 13:51 |
|
| :( | 13:51 |
|
| oxymoron93: you are typing right now? wow, my irc client indicates that | 13:51 |
|
oxymoron93
| yeah just noticed that | 13:51 |
|
phobosoph
| nice | 13:51 |
|
oxymoron93
| well, if you are in merge procedure `git checkout --theirs -- *` would work | 13:51 |
|
phobosoph
| thanks | 13:51 |
|
| is that ... is typing an IRC thing or an extra thing from irccloud? | 13:51 |
|
henrebotha[m]
| > I want to have the upstream on the local for that master branch thing | 13:51 |
|
| What does that mean? | 13:51 |
|
oxymoron93
| that wasn't understandable yeah | 13:52 |
|
phobosoph
| henrebotha[m]: I want to clone the local master from the upstream, master branch should always be identical to upstream | 13:52 |
|
| then I can merge master to my own customized branch on local repo | 13:52 |
|
oxymoron93
| but last message. "just resolve as theirs" gave a hint for the real issue? | 13:52 |
|
phobosoph
| yes | 13:52 |
|
| git checkout --theirs -- * | 13:52 |
|
| looks right | 13:52 |
|
| I try that | 13:52 |
| → nerosnm joined | 13:52 |
|
phobosoph
| but I ned to tell git to use the upstream as source, right? | 13:52 |
|
cyberpear
| phobosoph: can you just remove your entire repo and re-clone? -- that's probably the fastest solution if you don't care about any local changes you've made | 13:53 |
|
oxymoron93
| hm... if you want it to be identical, then this isn't solution | 13:53 |
|
phobosoph
| cyberpear: hm, right. But I also got a customized branch | 13:53 |
|
| ah | 13:53 |
|
| master on local should be like master on upstream (github) | 13:53 |
|
oxymoron93
| solution is to `git reset --hard origin/master` | 13:53 |
|
phobosoph
| ah thanks | 13:53 |
|
oxymoron93
| or upstream/master | 13:53 |
|
| whatever the remote is | 13:53 |
|
phobosoph
| ok | 13:53 |
|
| hurra | 13:53 |
|
| log looks good | 13:54 |
|
| ah, the master pointer thing was moved to last log reflog, right? | 13:54 |
|
oxymoron93
| reflog keeps track of HEAD movement | 13:54 |
|
phobosoph
| ah | 13:54 |
|
oxymoron93
| simply said, it actually manages lots more | 13:55 |
|
robertson
| I have a clean filter that seems to randomly skip files and the files it skips aren't consistent in name or file extension has anyone experienced anything similar? | 13:57 |
| → stitched_unicorn joined | 13:58 |
| ← howdoi left | 13:59 |
|
renihs
| rafasc, gitinfo: thanks hmm i will look into the urls | 13:59 |
|
gitinfo
| renihs: you're welcome, but please note that I'm a bot. I'm not programmed to care. | 13:59 |
|
renihs
| its already good to know that its not a completely bad idea | 13:59 |
|
| though i am still a bit sad that i seem to lose the metainformations like filechange with git compared to svn? (still looking into that, its not a killer but would be nice to have) | 14:00 |
|
rafasc
| renihs: people use a similar setup for managing .dotfiles. You mean stuff like timestamps, etc? Yea.. git doesn't track that. | 14:01 |
|
renihs
| rafasc: yeah, specificially timestamps | 14:03 |
|
| the rest of the metadata isnt that important (to me) but ... still a bit sad git considers this "unneeded metadata" :) | 14:03 |
| ← gloomy left | 14:04 |
|
rafasc
| in git the date of commit is more important than whatever the file says. | 14:05 |
|
renihs
| yeah, and it tracks content not other things... i get that, still would have been nice | 14:05 |
| → Keytap joined | 14:05 |
|
rafasc
| oxymoron93: cyberpear: what IRC client are you guys using? typying detection on IRC? o.o | 14:06 |
|
renihs
| ah well, thanks a lot, this is helping! | 14:06 |
|
rafasc
| I meant phobosoph | 14:06 |
|
oxymoron93
| kiwiirc | 14:06 |
| ← nerosnm left | 14:07 |
|
oxymoron93
| I am on browser tho. This is the first client I used, and I never changed not did I try out any other. | 14:08 |
|
| So, don't ask me anything specific. There is no point :D | 14:08 |
|
rafasc
| Sure, I was just wondering, because that must use a different side channel to communicate that the user is typing. | 14:08 |
|
oxymoron93
| apparently I don't see when you are typing | 14:09 |
|
rafasc
| I guess the other person is using the same thing. | 14:09 |
|
oxymoron93
| "Share when I'm typing message" option seems like checked by default. And yeah, that is logical. | 14:10 |
| ← Anticom left | 14:12 |
| ← sQVe left | 14:17 |
| ← omnireq_ left | 14:20 |
| ← deathwishdave left | 14:21 |
| → macroprep joined | 14:22 |
| ← inkbottle left | 14:23 |
| → greggerz joined | 14:23 |
| ← Lucas_Gray left | 14:24 |
| → Lucas_Gray joined | 14:25 |
| → deathwishdave joined | 14:25 |
| → Anticom joined | 14:26 |
| ← macroprep left | 14:27 |
| → aweb joined | 14:27 |
| → spacesuitdiver joined | 14:28 |
| ← Lucas_Gray left | 14:30 |
| ← courrier left | 14:34 |
| → Lucas_Gray joined | 14:37 |
| → thiago joined | 14:39 |
| ← Jitta left | 14:39 |
| ← Anticom left | 14:45 |
| ← floppydh left | 14:46 |
| → Anticom joined | 14:51 |
| ← aweb left | 14:51 |
| → hojang joined | 14:52 |
| ← Lucas_Gray left | 14:52 |
| → leeN joined | 14:54 |
| → hussam joined | 14:57 |
| ← MaximusColourum left | 14:59 |
| ← SkarmoutsosV left | 15:01 |
| ← oxymoron93 left | 15:02 |
| ← Anticom left | 15:02 |
| ← vostok4 left | 15:04 |
| → vostok4 joined | 15:07 |
| ← clime left | 15:09 |
| → AbleBacon joined | 15:13 |
| ← hojang left | 15:14 |
| → acercle joined | 15:15 |
| ← leeN left | 15:17 |
| → nabil_ joined | 15:19 |
| → leeN joined | 15:21 |
| ← nabil__ left | 15:21 |
| → nabil__ joined | 15:22 |
| → hojang joined | 15:24 |
| ← rfuentess__ left | 15:24 |
| ← nabil_ left | 15:25 |
| → nabil joined | 15:28 |
| ← Fischmiep left | 15:29 |
| ← nabil__ left | 15:30 |
| → dijitol joined | 15:32 |
| ← AbleBacon left | 15:33 |
| → AbleBacon joined | 15:34 |
| ← AbleBacon left | 15:34 |
| → AbleBacon joined | 15:34 |
| ← AbleBacon left | 15:34 |
| → AbleBacon joined | 15:35 |
| ← AbleBacon left | 15:35 |
| → omnireq joined | 15:35 |
| → AbleBacon joined | 15:35 |
| ← AbleBacon left | 15:35 |
| ← TomyWork left | 15:38 |
| ← phobosoph left | 15:42 |
| → nabil_ joined | 15:42 |
| ← nabil left | 15:42 |
| → stfn joined | 15:45 |
| → nabil__ joined | 15:46 |
| ← nabil_ left | 15:47 |
| ← craigo left | 15:48 |
| → sainathvd joined | 15:49 |
| → nabil_ joined | 15:54 |
| → mszyszko joined | 15:56 |
| ← nabil__ left | 15:56 |
| ← sainathvd left | 15:56 |
| ← thiago left | 15:57 |
| → magic_ninja_work joined | 15:58 |
| → Anticom joined | 15:59 |
| → hussar joined | 15:59 |
| ← dAnjou left | 16:02 |
| ← treehug88 left | 16:03 |
| → aweb joined | 16:07 |
| → timer91 joined | 16:07 |
| → oxymoron93 joined | 16:09 |
| ← timer91 left | 16:13 |
| → alystair joined | 16:14 |
| ← aweb left | 16:16 |
| → aweb joined | 16:16 |
| → nika joined | 16:27 |
| → Jitta joined | 16:27 |
| ← deathwishdave left | 16:31 |
| ← fphilipe left | 16:34 |
| → nabil__ joined | 16:35 |
| ← aweb left | 16:35 |
| ← alystair left | 16:37 |
| ← nabil_ left | 16:37 |
| ← tchan left | 16:42 |
| ← Keytap left | 16:42 |
| → tchan joined | 16:42 |
| → gaurav1620 joined | 16:43 |
| ← Anticom left | 16:43 |
| ← agowa338 left | 16:43 |
|
gaurav1620
| zrhoffman: hello | 16:44 |
| ← gaurav1620 left | 16:47 |
| ← stitched_unicorn left | 16:54 |
| → thiago joined | 17:00 |
| Ron_Paul → Hoffman | 17:02 |
| → miklcct joined | 17:02 |
| → AtumT joined | 17:03 |
| ← JanC left | 17:10 |
| → fission6 joined | 17:12 |
| ← crose left | 17:12 |
| → crose joined | 17:12 |
| → AtumT_ joined | 17:13 |
| ← AtumT left | 17:14 |
| → Keytap joined | 17:14 |
| ← xcm left | 17:16 |
| ← BonusPlay left | 17:16 |
| → BonusPlay joined | 17:16 |
| → xcm joined | 17:16 |
| → veegee_ joined | 17:17 |
| ← veegee left | 17:18 |
| ← enoq left | 17:20 |
| ← vavkamil left | 17:22 |
| → czart joined | 17:23 |
| ← rafasc left | 17:23 |
| ← figuinhas left | 17:25 |
| → vavkamil joined | 17:27 |
| ← AtumT_ left | 17:29 |
| → rafasc joined | 17:31 |
| → wootehfoot joined | 17:31 |
| → causasui joined | 17:32 |
| ← acercle left | 17:34 |
| → acercle joined | 17:35 |
| → JanC joined | 17:36 |
| ← JanC left | 17:38 |
| → gareppa joined | 17:38 |
| → JanC joined | 17:38 |
| → nerosnm joined | 17:41 |
| → gloomy joined | 17:41 |
|
foo
| Huh, I have a merge in my git log... but I have no idea what it is or how it got there. If I do git show <commit> - shouldn't it show me the changes in the merge? It's blank. | 17:47 |
| ← tango_ left | 17:47 |
| → tango_ joined | 17:47 |
| ← gloomy left | 17:49 |
|
rafasc
| foo: no. A merge has two parents, so to you need to specify against which one you want to compare. | 17:50 |
| ← Newami left | 17:50 |
|
foo
| rafasc: is there a way to see, from the git log, what two parents were merged? | 17:50 |
|
rafasc
| usually it's the mainline: git diff merge^..merge | 17:50 |
| → gloomy joined | 17:51 |
|
rafasc
| foo: git log --graph --oneline merge; is a visual way. | 17:51 |
|
| with git show --format=raw; you can see the parent list. | 17:52 |
|
foo
| rafasc: thanks, that helps. What's odd is it shows the merge under my user but I don't remember doing this. :) | 17:53 |
|
| Will look into it | 17:53 |
|
rafasc
| foo: !pull | 17:53 |
|
gitinfo
| foo: pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/ | 17:53 |
| ← chele left | 17:53 |
| ← Es0teric left | 17:54 |
|
rafasc
| you either don't remember; have merged without realising by making a pull; someone is forging authorship of your commits. | 17:54 |
|
foo
| rafasc: ahhhh. that would explain it. I probably did a git pull, and it merged remote staging into my local staging... that's probably what I'm seeing | 17:54 |
|
| rafasc: thank you | 17:55 |
|
rafasc
| yw. | 17:55 |
| ← gareppa left | 17:58 |
| → Es0teric joined | 17:59 |
| → Samian joined | 18:01 |
|
Samian
| hi | 18:01 |
|
| I want to go back to a previous commit just to play with the program in an earlier state, and then go back to latest | 18:02 |
|
| I thought that would be easy | 18:02 |
|
| but it's not | 18:02 |
| → nabil_ joined | 18:02 |
|
Samian
| I can't go to my history log and say I want to get version X | 18:02 |
| ← ave_milia left | 18:02 |
| → shaarad joined | 18:02 |
| ← Es0teric left | 18:03 |
| → kerframil joined | 18:03 |
| ← czart left | 18:03 |
|
bin_bash
| Samian: usually what i do is check out a new branch and then reset to the previous committ | 18:04 |
|
| that way you dont lose anything on the main feature branch | 18:04 |
|
oxymoron93
| or simply checkout the revision you want. It will left you in detached HEAD state, but you can look around! | 18:05 |
| ← nabil__ left | 18:05 |
|
oxymoron93
| and if you, in case, decide to work on it, you can create branch while being there | 18:05 |
|
foo
| q/w 2 | 18:06 |
|
| w/w 2 | 18:06 |
|
oxymoron93
| mind, that if you have uncommited or unstashed changes, git may forbid you to checkout | 18:06 |
|
Samian
| I freaking hate git. I suck at it. I need to dedicate time to learning it for real | 18:07 |
|
| do any of you use tortoise? | 18:07 |
| → Sasazuka joined | 18:07 |
|
Samian
| If git were a person, I'd want to strangle git with my bare hands! | 18:07 |
| → Es0teric joined | 18:13 |
|
Samian
| hi oxymoron93 | 18:14 |
|
oxymoron93
| Hello, and I do not use any git client. :D | 18:14 |
| ← shaarad left | 18:15 |
| → m1dnight_ joined | 18:15 |
|
vishal
| Samian: step 1: remove tortoise. step 2: read !parable and !book | 18:16 |
|
gitinfo
| Samian: 'The git parable' provides some good reasoning behind git. http://tom.preston-werner.com/2009/05/19/the-git-parable.html | 18:16 |
|
| Samian: 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 | 18:16 |
| → e^1 joined | 18:17 |
|
e^1
| I commited my work, after that in experimentation i lost the track of all the content that i was dealing, is it possible to jump back to the last commit that i had made and undo all the mess i did ? | 18:18 |
|
vishal
| e^1: !reflog | 18:18 |
|
gitinfo
| e^1: 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 http://sethrobertson.github.com/GitFixUm/ for full details. | 18:18 |
|
Samian
| bin_bash when I create a branch, it clones the entire thing? | 18:19 |
|
bin_bash
| no it checks out a new branch | 18:19 |
|
Samian
| vishal what's wrong with tortoise ? | 18:19 |
|
vishal
| unless the commit is still in your history (git log), and in that case, just git reset --hard <sha> | 18:19 |
|
bin_bash
| oxymoron93: oh cool i didnt realize you could do that | 18:19 |
|
Samian
| bin_bash but you said <bin_bash> Samian: usually what i do is check out a new branch and then reset to the previous committ | 18:19 |
|
vishal
| Samian: it won't let you develop the right mental model for git that you need to really understand things | 18:20 |
|
e^1
| vishal: bit complicated for those starting with git | 18:20 |
|
| anyways thanks :) | 18:20 |
|
vishal
| e^1: is the commit in your git log? | 18:20 |
|
| if so, just use the resaet --hard command above | 18:20 |
|
e^1
| vishal: i have pushed the commit to github | 18:20 |
|
| yes it's there | 18:20 |
|
Samian
| man it's been over 10 years since I graduated with my CS degree and got my first software dev job, and still I hate git and suck at it | 18:20 |
|
| I feel pathetic | 18:21 |
|
e^1
| vishal: at HEAD -> master | 18:21 |
| ← rkta left | 18:21 |
|
bin_bash
| Samian: yeah that is what i do, because i didnt know you could checkout a specific revision | 18:21 |
|
vishal
| yep, so the reset should get you to its state, and you'll lose any changes (committed or otherwise) made after that commit | 18:21 |
| → rkta joined | 18:21 |
|
Samian
| bin_bash cool I'll just checkout a sepcific revision | 18:21 |
|
oxymoron93
| `git checkout` has many forms. :) | 18:21 |
|
Samian
| and when I want to go back to the latest checkin what do I do? git latest ? | 18:21 |
|
e^1
| vishal: all the changes are shown as untracked and not stage for commit | 18:22 |
|
| vishal: what will be the command ? | 18:22 |
|
vishal
| e^1: right, you will lost them, which is what you want right | 18:22 |
|
| git reset --hard <sha> | 18:22 |
|
e^1
| yes right | 18:22 |
|
oxymoron93
| the changes which are not staged. Clearly, git doesn't care about untracked files. | 18:22 |
| ← sauvin left | 18:23 |
|
oxymoron93
| except for identifying them | 18:23 |
|
e^1
| e^1: still it is showing untracked files | 18:23 |
| → lmat joined | 18:23 |
| ← Orbitrix left | 18:23 |
|
vishal
| reset wont touch untracked files. do you just need to remove them? | 18:23 |
|
bin_bash
| isn't git clean used for that | 18:24 |
|
| (removing untracked files) | 18:24 |
|
vishal
| correct | 18:24 |
|
lmat
| When I git commit; git opens vi for a commit message, but I would like to use vim. running git config core.editer; and git config --global core.editor; returns nothing. echo $EDITOR $VISUAL; returns "vim vim" | 18:24 |
|
oxymoron93
| Or you want to ignore them? | 18:24 |
|
bin_bash
| git clean -f --dry-run iirc to test | 18:24 |
| → Orbitrix joined | 18:24 |
|
e^1
| vishal: yes all of them | 18:24 |
|
vishal
| git clean -fdx to remove all untracked files, recursively | 18:24 |
|
lmat
| Oh yeah, I checked $PROJECTROOT/.git/config and ~/.gitconfig and neither have "editor" in them. | 18:24 |
|
| I guess I'm missing something. | 18:25 |
|
bin_bash
| -f =file -d=directory, what's -x | 18:25 |
|
lmat
| bin_bash: "Don't use the standard ignore rules" | 18:25 |
|
bin_bash
| ah cool | 18:25 |
|
lmat
| bin_bash: So git will remove files and directories even if they are git-ignored. | 18:25 |
|
bin_bash
| interesting | 18:26 |
|
| useful for like .swo/swp files | 18:26 |
|
lmat
| bin_bash: sure, and 'bin' directory, .o files, etc., etc. :-) | 18:26 |
|
bin_bash
| ya | 18:26 |
|
lmat
| Ah, here's something weird... EDITOR=vim git commit --amend; opens vim :-o echo $EDITOR; shows vim. | 18:27 |
|
| I ran export EDITOR; and now git commit --amend; does the right thing. :sigh: | 18:27 |
|
e^1
| cool it's done , git is amazing | 18:29 |
| ← e^1 left | 18:30 |
| ← SteenJobs left | 18:38 |
| → SteenJobs joined | 18:39 |
| ← nerosnm left | 18:41 |
| ← oxymoron93 left | 18:41 |
| ← fling left | 18:44 |
| → fling joined | 18:44 |
| → nabil joined | 18:45 |
| → Sasazuka__ joined | 18:46 |
| ← magic_ninja_work left | 18:47 |
| ← nabil_ left | 18:47 |
| ← Sasazuka left | 18:48 |
| → catbusters joined | 18:48 |
| → alystair joined | 18:49 |
| → nabil_ joined | 18:53 |
| ← JanC left | 18:54 |
| ← nabil left | 18:56 |
| ← sozuba left | 18:57 |
| → ericfreese joined | 18:58 |
| → comptroller joined | 19:00 |
| ← fission6 left | 19:03 |
| ← TomTom left | 19:03 |
| → fission6 joined | 19:05 |
| ← SteenJobs left | 19:05 |
| ← gloomy left | 19:05 |
| → JanC joined | 19:08 |
| ← tufteddeer left | 19:09 |
| → tufteddeer joined | 19:10 |
| → gloomy joined | 19:14 |
| ← tufteddeer left | 19:15 |
| → tufteddeer joined | 19:15 |
| ← mojisun left | 19:19 |
| → nerosnm joined | 19:19 |
| → mojisun joined | 19:20 |
| ← tufteddeer left | 19:21 |
| → tufteddeer joined | 19:21 |
| ← tufteddeer left | 19:21 |
| ← nika left | 19:21 |
| → tufteddeer joined | 19:21 |
| ← tufteddeer left | 19:24 |
| → tufteddeer joined | 19:24 |
| → m0viefreak joined | 19:24 |
| ← esotericnonsense left | 19:24 |
| ← tufteddeer left | 19:29 |
| → tufteddeer joined | 19:29 |
| ← tufteddeer left | 19:29 |
| ← xcm left | 19:33 |
| ← john2496 left | 19:33 |
| → xcm joined | 19:33 |
| → john2496 joined | 19:34 |
| ← emsjessec left | 19:34 |
| → freeman42[NixOS] joined | 19:35 |
| Sasazuka__ → Sasazuka | 19:36 |
| ← pks left | 19:37 |
| ← freeman42[NixOS] left | 19:38 |
| → pks joined | 19:42 |
| ← thiago left | 19:42 |
| → thiago joined | 19:43 |
| → sbeyer joined | 19:44 |
| ← tombusby left | 19:45 |
| → Shentino_ joined | 19:45 |
| → tombusby joined | 19:46 |
| ← gloomy left | 19:48 |
| ← Shentino left | 19:49 |
| ← vavkamil left | 19:53 |
| → n3wborn joined | 19:54 |
| ← fission6 left | 19:57 |
| → deanc joined | 20:01 |
| → g00s joined | 20:01 |
| → fission6 joined | 20:09 |
| → SteenJobs joined | 20:11 |
| ← xcm left | 20:12 |
| → xcm joined | 20:14 |
| ← wootehfoot left | 20:18 |
| → andecy joined | 20:19 |
| ← null1337 left | 20:21 |
| ← StuartMI left | 20:21 |
| ← fission6 left | 20:21 |
| → feriman joined | 20:22 |
| → enoq joined | 20:24 |
| → null1337 joined | 20:26 |
| ← feriman left | 20:26 |
| → feriman joined | 20:28 |
| ← nerosnm left | 20:32 |
| → gloomy joined | 20:32 |
| ← sborza left | 20:33 |
| → sborza joined | 20:33 |
| → clime joined | 20:34 |
| ← ChrisLane left | 20:35 |
| → ChrisLane joined | 20:36 |
| ← clime left | 20:40 |
| → amcclure joined | 20:43 |
| → iNs joined | 20:44 |
| → rsrx joined | 20:46 |
| → greatgatsby joined | 20:48 |
| ← profmac left | 20:49 |
| ← feriman left | 20:49 |
| ← daurnimator left | 20:49 |
| ← greatgatsby left | 20:54 |
| → waveclaw joined | 20:56 |
| ← catbusters left | 20:58 |
| ← g00s left | 21:00 |
| → Sasazuka__ joined | 21:01 |
| → profmac joined | 21:02 |
| ← Jitta left | 21:04 |
| ← Sasazuka left | 21:04 |
| ← xcm left | 21:06 |
| → xcm joined | 21:07 |
| ← profmac left | 21:07 |
| → profmac joined | 21:08 |
| → stnv joined | 21:10 |
| → _ikke_ joined | 21:14 |
| → AtumT joined | 21:17 |
| → roflincopter joined | 21:23 |
| ← roflin left | 21:23 |
| → greatgatsby joined | 21:23 |
| ← roflincopter left | 21:24 |
| → kfoonamalik joined | 21:24 |
| ← Es0teric left | 21:25 |
| → Es0teric joined | 21:28 |
| → roflin joined | 21:29 |
| ← igemnace left | 21:30 |
| ← profmac left | 21:31 |
| ← thiago left | 21:31 |
| → strongdev joined | 21:33 |
| ← sgn left | 21:34 |
| → profmac joined | 21:34 |
| → sgn joined | 21:35 |
| → nabil__ joined | 21:43 |
| ← dijitol left | 21:44 |
| → malina joined | 21:44 |
| ← nabil_ left | 21:46 |
| ← octav1a left | 21:47 |
| → daurnimator joined | 21:47 |
| ← john2496 left | 21:47 |
| ← rsrx left | 21:48 |
| → bambanx joined | 21:49 |
| → Fernando-Basso joined | 21:50 |
| ← greatgatsby left | 21:50 |
| ← Kulrak left | 21:51 |
| → Kulrak joined | 21:51 |
| ← SteenJobs left | 21:53 |
| → Stoot joined | 21:54 |
| → SteenJobs joined | 21:55 |
| → Sasazuka joined | 21:57 |
| ← Sasazuka__ left | 21:58 |
| → Xeyame joined | 21:59 |
| → ferdna joined | 22:06 |
| ← Es0teric left | 22:06 |
| ← gloomy left | 22:09 |
| ← Keytap left | 22:14 |
| ← zamba left | 22:14 |
| → Es0teric joined | 22:15 |
| → Stoot35 joined | 22:17 |
| ← ExeciN left | 22:18 |
| ← Stoot left | 22:20 |
| Stoot35 → Stoot | 22:21 |
| ← sbeyer left | 22:21 |
| → thiago joined | 22:21 |
| → craigo joined | 22:22 |
| ← greggerz left | 22:27 |
| → zamba joined | 22:27 |
| ← Es0teric left | 22:28 |
| ← SteenJobs left | 22:29 |
| ← CodeSlingerPaul left | 22:29 |
| → SteenJobs joined | 22:31 |
|
jadax
| I have a daily rebase automated job that simply does rebase on our internal git repo. The problem is that after rebase sometimes code doesn't compile. Do you think I can do some sort of dry rebase first to understand if state of the git repo afterwards is good or not? | 22:32 |
|
| and then if something is off - fall back to pre-rebase state? | 22:32 |
| ← leeN left | 22:37 |
| ← enoq left | 22:37 |
| ← stnv left | 22:38 |
|
rafasc
| jadax: what's stopping you? | 22:40 |
|
jadax
| I'm thinking of implementation | 22:41 |
|
| I could have separate repo or branch for the test rebase | 22:41 |
|
rafasc
| besides the fact that automating merges/rebases like that are a bad idea™ | 22:41 |
|
jadax
| but maybe git supports some of that? | 22:41 |
|
| what's wrong with automated rebases? | 22:41 |
|
| I was thinking of 'roll-back' transaction type of thing | 22:41 |
|
rafasc
| rebases/merges are something that were never meant to be automated. They assume a human reviews the result. | 22:42 |
|
jadax
| that's fine, we live in world that is dynamic and agile and stuff changes | 22:43 |
|
rafasc
| even successful rebase/merges can be wrong. | 22:43 |
|
jadax
| what about continuous integration? | 22:43 |
|
| and working on open-source project mixed with non-open-source stuff? | 22:43 |
|
rafasc
| then rebase, compile, if it failt, reset --hard back. | 22:43 |
|
jadax
| that's some option, yeah | 22:43 |
|
| we also use gerrit for code reviews, I was thinking of going through gerrit for automated rebases | 22:44 |
|
| every day it would create code review for rebase | 22:44 |
|
| and only after it successfully builds and tests - only then the code review would be approved and patch merged (= successful rebase) | 22:44 |
|
rafasc
| you could detach, and and try it. If it succeeds, move then branch to point that commit with branch -f. | 22:45 |
|
| jadax: a small trick you can use: git rebase master feature-branch@{0}; | 22:48 |
| ← tgunr left | 22:48 |
|
rafasc
| then, if all your criteria succeeds, git branch -f feature-branch HEAD; | 22:48 |
|
| or git rebase master HEAD; | 22:51 |
|
| if you're already on feature-branch. | 22:51 |
| → duderonomy joined | 22:52 |
| → nowhere_man joined | 22:59 |
| → Newami joined | 23:04 |
| ← lucasb left | 23:05 |
| ← omnireq left | 23:07 |
| → dviola joined | 23:12 |
| → localhorse joined | 23:12 |
| ← xcm left | 23:16 |
| → xcm joined | 23:16 |
| ← duderonomy left | 23:20 |
| ← qqx left | 23:20 |
| → qqx joined | 23:21 |
| ← causasui left | 23:23 |
| → duderonomy joined | 23:24 |
| ← acercle left | 23:25 |
| ← AtumT left | 23:30 |
| ← rafasc left | 23:31 |
| → fphilipe joined | 23:32 |
| ← n3wborn left | 23:33 |
| ← comptroller left | 23:33 |
| ← Fernando-Basso left | 23:35 |
| ← BrianBlaze left | 23:35 |
|
foul_owl
| How do I revert a previous commit, but keep that commit in history? I tried doing "git checkout <hash>" but that puts me a in a detached head state. I also tried "git reset --hard <hash>" but I can't commit anything. | 23:36 |
|
| Let's say the history is: a -> b -> c and I want it to look like: a -> b -> c -> a (reverting to a but keeping b and c in history) | 23:37 |
| ← fphilipe left | 23:38 |
| ← lankanmon left | 23:39 |
| ← ericfreese left | 23:40 |
| ← jstimm left | 23:41 |
| → comptroller joined | 23:44 |
|
vishal
| foul_owl: you use git revert, and give it a list or range of commits | 23:44 |
| ← meLon left | 23:45 |
|
vishal
| it will create a new commit, which is the opposite of the commit being reverted | 23:45 |
|
| so you'll end up with a->b->c->b'->c' | 23:45 |
|
| but the state of the tree will be the same as a | 23:45 |
| → BrianBlaze joined | 23:45 |
|
vishal
| b' and c' will be the 'inversion' of b and c | 23:45 |
|
| man git-revert | 23:45 |
|
gitinfo
| the git-revert manpage is available at https://gitirc.eu/git-revert.html | 23:45 |
| → magic_ninja_work joined | 23:49 |
| ^ → also_uplime | 23:50 |
|
wwalker
| I get this message "hint: The 'hooks/update' hook was ignored because it's not set as executable. | 23:50 |
|
| hint: You can disable this warning with `git config advice.ignoredHook false`. | 23:51 |
|
| I run the git config command and I can see it has added it to the .gitconfig file. But I still get the Hint the next time I push. Any ideas? | 23:51 |
| → lankanmon joined | 23:52 |
|
vishal
| wwalker: is this a hook on the remote side? | 23:53 |
|
wwalker
| ah. Didn't look thanks | 23:53 |
|
| Sure enough. Thanks! | 23:54 |
| → jsahlsa joined | 23:57 |
| ← BrianBlaze left | 23:57 |
| → nerosnm joined | 23:58 |