| 2018-03-29 |
| ← weez17 left | 00:00 |
| ← applecrumble left | 00:00 |
| → weez17 joined | 00:00 |
| ← weijin left | 00:01 |
| ← cagomez left | 00:01 |
| ← _ikke_ left | 00:01 |
| → cagomez joined | 00:01 |
| → UTAN_dev_ joined | 00:02 |
| → rofl__ joined | 00:02 |
| → theology joined | 00:05 |
| ← UTAN_dev left | 00:05 |
| ← rafasc left | 00:06 |
| ← lagothrix left | 00:06 |
| → _ikke_ joined | 00:06 |
| → nimomo joined | 00:06 |
| ← rofl_ left | 00:07 |
| ← Fernando-Basso left | 00:08 |
| → lagothrix joined | 00:09 |
| → dreiss joined | 00:11 |
| → pTrvr joined | 00:11 |
| → dendazen joined | 00:12 |
| ← Kaisyu7 left | 00:12 |
| ← nimomo left | 00:13 |
| ← \void left | 00:13 |
| ← yeshurun left | 00:14 |
| → pTrvr0 joined | 00:14 |
| ← pTrvr left | 00:15 |
| ← cagomez left | 00:16 |
| → cagomez joined | 00:17 |
| ← pfleck left | 00:17 |
| ← cagomez left | 00:18 |
| → sat-aton__ joined | 00:18 |
| ← pTrvr0 left | 00:19 |
| ← Coop56 left | 00:19 |
| → weijin joined | 00:19 |
| ← permalink left | 00:20 |
| → nonconvergent joined | 00:21 |
| → nimomo joined | 00:21 |
| ← sat-aton left | 00:21 |
|
nonconvergent
| I'm rebase master on a feature before merging it. I finished the rebase and resolved it but I must have done something that nuked some of the files on a particular commit. Is there a way to reapply that commit in place, and I'll resolve conflicts? | 00:22 |
| → pTrvr0 joined | 00:22 |
| ← shinnya left | 00:22 |
|
nonconvergent
| The commit at issue is a very large one. | 00:23 |
|
| but only some of the files are altered. | 00:23 |
| ← weijin left | 00:24 |
| → weijin joined | 00:24 |
|
nonconvergent
| never mind I'm just going to redo the rebase | 00:24 |
| ← nimomo left | 00:26 |
| → Kaisyu7 joined | 00:26 |
| ← morenoh149 left | 00:27 |
| → ecuanaso joined | 00:27 |
| → sat-aton joined | 00:29 |
| → vamosdipa joined | 00:31 |
| ← ecuanaso left | 00:31 |
| ← lagothrix left | 00:31 |
| ← sat-aton__ left | 00:31 |
| ← vamosdipa left | 00:31 |
| ← durham left | 00:31 |
| → morenoh149 joined | 00:32 |
| → lagothrix joined | 00:33 |
| → nimomo joined | 00:34 |
| ← Bosna left | 00:34 |
| ← m0viefreak left | 00:36 |
| ← morenoh149 left | 00:37 |
| → morenoh149 joined | 00:38 |
| ← nimomo left | 00:38 |
| ← widp left | 00:38 |
| ← garo left | 00:41 |
| → garo joined | 00:42 |
|
nonconvergent
| Ugh this is killing me. It says both added and both deleted for a bunch of moved files. | 00:42 |
| ← weijin left | 00:42 |
| → cur8or_ joined | 00:42 |
|
dalias
| yes. there's no such thing as moving or even changing a file in git | 00:43 |
| ← cur8or left | 00:43 |
|
dalias
| revisions are just states of the full tree. presenting that as a diff or as "added and deleted" vs "moved" is purely a presentation-layer matter | 00:43 |
|
| git diff/log have options to search harder for moves and show you them as moves | 00:44 |
| → nimomo joined | 00:47 |
| ← RougeR left | 00:47 |
| ← g00s_ left | 00:47 |
|
nonconvergent
| dalias: what about when rebase creates a bunch of duplicate files with ~HEAD or ~<commit> appended to it and leaves them behind? | 00:49 |
| → weijin joined | 00:49 |
|
dalias
| every file is only stored once no matter how many times it occurs in different points in time (revision history) or space (the tree) | 00:51 |
| → Crypt0x joined | 00:51 |
|
dalias
| all objects in git are referenced by their sha1 hash | 00:51 |
|
nonconvergent
| intellij can't handle these (i use it for the visual reserve conflicts tool but i"m working off cli for everything else | 00:52 |
| ← nimomo left | 00:52 |
| ← VoradorPT left | 00:54 |
|
nonconvergent
| https://gist.github.com/nonconvergent/97deb936fb908eb05f08a2669233548c Intellij only shows the tracked | 00:54 |
|
dalias
| oh i think i misread | 00:55 |
|
| sorry | 00:56 |
| → nimomo joined | 00:58 |
|
nonconvergent
| oh I understand. rm with remove both | 01:01 |
| ← ShapeShifter499 left | 01:01 |
|
nonconvergent
| how do I merge this change during rebase? | 01:02 |
| ← nimomo left | 01:02 |
| → mrproper joined | 01:03 |
|
mrproper
| I have two branches and one depends on the other. Is there a way I can take two files from one of the branches and move them the other without permanently merging? I just want it temporary so when the dependency branch is merged into mainline, I can back out of that 'merge' | 01:04 |
| ← ShockingIsntIt left | 01:04 |
| ← zaayer left | 01:06 |
|
nonconvergent
| I'm trying checkout -- <file> from the good (new) branch on all the adds | 01:08 |
| → nimomo joined | 01:12 |
| → duderonomy joined | 01:12 |
| → noobineer joined | 01:15 |
| ← garo left | 01:16 |
| → garo joined | 01:16 |
| → finalbeta joined | 01:16 |
| ← nimomo left | 01:17 |
| ← piggah left | 01:17 |
| → nowhere_man joined | 01:18 |
| → fstd_ joined | 01:18 |
| ← nowhereman_ left | 01:18 |
| ← cur8or_ left | 01:18 |
| → Fuzzy_Pa_ joined | 01:19 |
| → taoqy joined | 01:20 |
| ← fstd left | 01:22 |
| fstd_ → fstd | 01:22 |
| → nowhereman_ joined | 01:22 |
| → nimomo joined | 01:22 |
| ← asphyxia left | 01:23 |
| → linuxmodder joined | 01:23 |
| ← lupine left | 01:24 |
| ← linuxmodder left | 01:24 |
| → linuxmodder joined | 01:25 |
| ← nowhere_man left | 01:26 |
| → zaayer joined | 01:26 |
| ← nimomo left | 01:27 |
| ← Sasazuka left | 01:28 |
| → Flechette joined | 01:29 |
| ← nonconvergent left | 01:29 |
| → mattcen joined | 01:30 |
| → Fissure joined | 01:31 |
| → g00s joined | 01:31 |
| ← ContessaTP left | 01:32 |
| ← pTrvr0 left | 01:32 |
| → jready joined | 01:32 |
| → nimomo joined | 01:33 |
| → IanLiu joined | 01:33 |
| → piggah joined | 01:34 |
| ← mattcen left | 01:35 |
| → mattcen joined | 01:36 |
| ← Mattiaslndstrm left | 01:36 |
| ← jready left | 01:37 |
| ← nimomo left | 01:37 |
| → pTrvr0 joined | 01:39 |
| → nimomo joined | 01:39 |
| ← zaayer left | 01:39 |
| ← piggah left | 01:40 |
| → ShockingIsntIt joined | 01:42 |
| ← afuentes left | 01:43 |
| → zaayer joined | 01:43 |
| ← pTrvr0 left | 01:43 |
| ← nimomo left | 01:44 |
| ← Mike11 left | 01:44 |
| ← ilbot3 left | 01:46 |
| → ResidentBiscuit joined | 01:50 |
| → lupine joined | 01:51 |
| ← comptroller left | 01:51 |
| → nowhere_man joined | 01:51 |
| ← nowhereman_ left | 01:54 |
| → ilbot3 joined | 01:57 |
| ← Fuzzy_Pa_ left | 01:57 |
| → xaxxon joined | 02:00 |
| ← mrproper left | 02:00 |
| → comptroller joined | 02:02 |
| → nimomo joined | 02:03 |
| → checkItOut joined | 02:03 |
| ← morenoh149 left | 02:06 |
| ← checkItOut left | 02:07 |
| ← thiago left | 02:07 |
| ← ResidentBiscuit left | 02:07 |
| ← jleclanche left | 02:07 |
| → checkItOut joined | 02:07 |
| ← nimomo left | 02:08 |
| → thiago joined | 02:09 |
| ← thiago left | 02:09 |
| → thiago joined | 02:09 |
| → navy_seal9614 joined | 02:09 |
| → widp joined | 02:11 |
| → figurehe4d joined | 02:13 |
| ← figurehe4d left | 02:16 |
| ← kuzyn left | 02:18 |
| → nimomo joined | 02:18 |
| → asphyxia joined | 02:18 |
| ← riceandbeans left | 02:19 |
| → mud joined | 02:20 |
| → jimmyrcom joined | 02:20 |
| ← nimomo left | 02:23 |
| ← SpeakerToMeat left | 02:24 |
| ← boombatower left | 02:27 |
| → SpeakerToMeat joined | 02:27 |
| → itsdennian joined | 02:27 |
| ← garo left | 02:27 |
| → garo joined | 02:27 |
| ← itsdennian left | 02:28 |
| → itsdennian joined | 02:28 |
| ← thiago left | 02:29 |
| → nimomo joined | 02:29 |
| ← sentriz left | 02:30 |
| → ecuanaso joined | 02:30 |
| → piggah joined | 02:33 |
| ← nimomo left | 02:33 |
| ← ecuanaso left | 02:34 |
| → rexan joined | 02:35 |
| → d1b joined | 02:35 |
| → Ealderson joined | 02:35 |
| → pTrvr0 joined | 02:37 |
| → inovas joined | 02:38 |
| → Goplat joined | 02:38 |
| → nimomo joined | 02:40 |
| ← IanLiu left | 02:42 |
| ← pTrvr0 left | 02:42 |
| ← garo left | 02:42 |
| → garo joined | 02:43 |
| → daidoji70 joined | 02:43 |
| ← daidoji left | 02:44 |
| ← nimomo left | 02:45 |
| ← noobineer left | 02:46 |
| ← garo left | 02:47 |
| → garo joined | 02:48 |
| → pTrvr0 joined | 02:49 |
| ← energizer left | 02:50 |
| ← raynold left | 02:52 |
| → energizer joined | 02:53 |
| ← pTrvr0 left | 02:53 |
| ← zaayer left | 02:55 |
| → weijin_ joined | 02:56 |
| → lagothri1 joined | 02:59 |
| ← weijin left | 02:59 |
| → nimomo joined | 03:01 |
| ← comptroller left | 03:01 |
| → IndianArya joined | 03:01 |
| ← xaxxon left | 03:02 |
| ← lagothrix left | 03:02 |
| ← garo left | 03:02 |
| → noobineer joined | 03:03 |
| → harrymoreno joined | 03:03 |
| → garo joined | 03:04 |
| ← nimomo left | 03:04 |
| → yeshurun joined | 03:07 |
| ← garo left | 03:12 |
| → garo joined | 03:13 |
| → ToBeCloud joined | 03:14 |
| gitinfo set mode: +v | 03:14 |
| → raynold joined | 03:15 |
| ← foul_owl left | 03:16 |
| ← MaekSo left | 03:19 |
| ← johnflux_ left | 03:20 |
| ← zivester left | 03:21 |
| → nimomo joined | 03:22 |
| ← asphyxia left | 03:22 |
| ← fr33domlover left | 03:24 |
| ← Arcaelyx left | 03:25 |
| → dino82 joined | 03:25 |
| ← dino82 left | 03:25 |
| → dino82 joined | 03:25 |
| ← govg left | 03:26 |
| → sat-aton__ joined | 03:27 |
| ← ixian left | 03:27 |
| ← nimomo left | 03:27 |
| → Arcaelyx joined | 03:28 |
| → govg joined | 03:28 |
| ← garo left | 03:28 |
| → Gurkenglas__ joined | 03:28 |
| ← sat-aton left | 03:29 |
| → foul_owl joined | 03:29 |
| ← MACscr left | 03:30 |
| → garo joined | 03:30 |
| → MaekSo joined | 03:30 |
| → canvon joined | 03:30 |
| ← canvon_ left | 03:31 |
| → uikki joined | 03:34 |
|
uikki
| hey | 03:34 |
|
gitinfo
| uikki: 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. | 03:34 |
| → nimomo joined | 03:34 |
|
uikki
| i just did "git rebase upstream/master" | 03:35 |
| ← noobineer left | 03:35 |
|
uikki
| but latest commit upstream has an issue, so i'd like to instead rebase on top of HEAD-1 on master | 03:35 |
|
| can I do that now, or is it too late? | 03:35 |
| → johnflux_ joined | 03:36 |
| ← sat-aton__ left | 03:38 |
| ← linuxmodder left | 03:38 |
| ← nimomo left | 03:39 |
| → nimomo joined | 03:43 |
| → thiago joined | 03:43 |
| → itsdenni_ joined | 03:43 |
| ← itsdenni_ left | 03:44 |
| → itsdenni_ joined | 03:45 |
| ← itsdenni_ left | 03:45 |
| ← orbyt_ left | 03:46 |
| ← mborgard left | 03:46 |
| → ixian joined | 03:47 |
| ← itsdennian left | 03:47 |
| → religious joined | 03:47 |
| → UTAN_dev joined | 03:48 |
| ← garo left | 03:48 |
| ← johnflux_ left | 03:48 |
| → garo joined | 03:48 |
| → tchan1 joined | 03:48 |
| → irqq_ joined | 03:49 |
| → lpapp__ joined | 03:49 |
| → jfr_ joined | 03:49 |
| ← nimomo left | 03:49 |
| ← qassim left | 03:49 |
| ← msp301 left | 03:49 |
| → Nugget_ joined | 03:49 |
| ← ePirat left | 03:49 |
| ← c^ left | 03:49 |
| ← Nugget left | 03:49 |
| → rory_ joined | 03:49 |
| ← rory left | 03:49 |
| ← thiago left | 03:49 |
| → sonOfRa joined | 03:49 |
| ← piggah left | 03:49 |
| → hypraware joined | 03:49 |
| ← theology left | 03:50 |
| ← lpapp left | 03:50 |
| ← Snuupy left | 03:50 |
| → Learath2 joined | 03:50 |
| → msp301 joined | 03:50 |
| religious → theology | 03:50 |
| → Snuupy_ joined | 03:50 |
| ← UTAN_dev_ left | 03:50 |
| ← jfr left | 03:50 |
| ← raymond left | 03:50 |
| → qassim joined | 03:51 |
| → zizzfizzix joined | 03:51 |
| → c^ joined | 03:51 |
| → ericnoan joined | 03:51 |
| → ePirat joined | 03:51 |
|
uikki
| heeelp | 03:51 |
|
| i just did "git rebase upstream/master" | 03:51 |
|
| but latest commit upstream has an issue, so i'd like to instead rebase on top of HEAD-1 on master | 03:51 |
|
| can I do that now, or is it too late? | 03:51 |
| ← sw1m left | 03:51 |
| ← idmistir left | 03:51 |
| ← Mixologic left | 03:51 |
| → maryo joined | 03:52 |
| ← janx left | 03:52 |
| → asphyxia joined | 03:52 |
| → Gabemo joined | 03:52 |
| → cdg joined | 03:52 |
| → Sc0rpius joined | 03:52 |
| ← Dragon092 left | 03:52 |
| ← sweatsuit left | 03:52 |
| → tang^ joined | 03:52 |
| ← holodoc left | 03:52 |
| → thiago joined | 03:53 |
| → valkyr2e joined | 03:53 |
| → sweatsuit joined | 03:53 |
| ← harrymoreno left | 03:54 |
| → Dragon092 joined | 03:54 |
| → Mixologic joined | 03:54 |
| → idmistir joined | 03:54 |
| ← idmistir left | 03:54 |
| → idmistir joined | 03:54 |
|
imMute
| uikki: like, you want to make it as if you had ran something like "git rebase upstream/master-1" (ie, one commit before upstream/master) ? | 03:55 |
| → janx joined | 03:55 |
| → sw1m joined | 03:55 |
| ← Ealderson left | 03:56 |
|
uikki
| imMute: yes | 03:56 |
| ← cdg left | 03:56 |
|
imMute
| uikki: there's probably a one liner, but the way I would do it is to now run "git rebase -i upstream/master^". That'll do an interactive rebase one more commit back, and you can remove that broken commit from the list and let the rebase run. | 03:57 |
| → raymond joined | 03:57 |
| → holodoc joined | 03:57 |
| ← rexan left | 03:58 |
| → rexan joined | 03:58 |
| ← _xor left | 03:59 |
| ← dendazen left | 04:00 |
| ← garo left | 04:00 |
| → linuxmodder joined | 04:00 |
| ← c0ded left | 04:00 |
| → firegurafiku joined | 04:01 |
| → garo joined | 04:01 |
| ← IndianArya left | 04:02 |
| → IndianArya joined | 04:02 |
| ← James0r2_ left | 04:02 |
| ← IndianArya left | 04:02 |
| ← rexan left | 04:03 |
| → rexan joined | 04:03 |
|
uikki
| ok | 04:03 |
|
| thx | 04:03 |
| ← uikki left | 04:04 |
| → nimomo joined | 04:07 |
| ← kneeki left | 04:08 |
| ← dviola left | 04:13 |
| ← nimomo left | 04:13 |
| ← linuxmodder left | 04:14 |
| ← kyan left | 04:19 |
| → _xor joined | 04:21 |
| ← widp left | 04:21 |
| ← alyptik left | 04:22 |
| → alyptik joined | 04:22 |
| → widp joined | 04:22 |
| ← mud left | 04:24 |
| → justanotheruser joined | 04:24 |
| ← justanotheruser left | 04:25 |
| ← thiago left | 04:25 |
| → justanotheruser joined | 04:25 |
| ← justan0theruser left | 04:27 |
| ← LichtMacher left | 04:33 |
| → nimomo joined | 04:34 |
| ← widp left | 04:35 |
| → widp joined | 04:36 |
| → Thominus joined | 04:39 |
| ← nimomo left | 04:39 |
| → tvw joined | 04:41 |
| ← weijin_ left | 04:43 |
| → nimomo joined | 04:45 |
| ← navy_seal9614 left | 04:47 |
| ← nimomo left | 04:50 |
| → johnflux_ joined | 04:50 |
| ← johnflux_ left | 04:50 |
| → johnflux_ joined | 04:50 |
| → xaxxon joined | 04:58 |
| → navy_seal9614 joined | 05:00 |
| ← tombusby left | 05:00 |
| ← ghost43 left | 05:00 |
| ← Thominus left | 05:00 |
| ← dermoth left | 05:00 |
| → tombusby joined | 05:00 |
| → Thominus joined | 05:02 |
| → h12o joined | 05:03 |
| → jungsubk joined | 05:03 |
| → linuxmodder joined | 05:03 |
| ← pks left | 05:04 |
| → pks_ joined | 05:04 |
| pks_ → pks | 05:05 |
| ← Tryx left | 05:05 |
| Snuupy_ → Snuupy | 05:06 |
| → Tryx joined | 05:06 |
| ← jungsubk left | 05:06 |
| ← h12o left | 05:08 |
| ← navy_seal9614 left | 05:08 |
| ← hbautista left | 05:08 |
| → navy_seal9614 joined | 05:09 |
| ← navy_seal9614 left | 05:09 |
| ← drodger left | 05:12 |
| → weijin joined | 05:13 |
| ← nowhere_man left | 05:13 |
| → venmx joined | 05:14 |
| ← max3 left | 05:14 |
| → drodger joined | 05:14 |
| ← tec__ left | 05:15 |
| ← maroloccio left | 05:16 |
| ← foul_owl left | 05:17 |
| → tec__ joined | 05:17 |
| ← drodger left | 05:19 |
| → drodger joined | 05:21 |
| ← rexan left | 05:22 |
| → h12o joined | 05:22 |
| → sauvin joined | 05:23 |
| ← jimmyrcom left | 05:23 |
| → rexan joined | 05:23 |
| → zefferno joined | 05:23 |
| ← ToBeCloud left | 05:24 |
| → jimmyrcom joined | 05:25 |
| → foul_owl joined | 05:25 |
| ← h12o left | 05:27 |
| ← widp left | 05:28 |
| → AmR|EiSa joined | 05:29 |
|
AmR|EiSa
| Hello | 05:29 |
|
| I try update qt git code But I got an error " Submodule path 'src/3rdparty/mapbox-gl-native': checked out '8c1be4ec01ef46bf453856531ebf53b48ce3dbe7' + git submodule init src/3rdparty src/3rdparty is dirty. Dirty submodule(s) present; cannot proceed. " | 05:29 |
| ← armyriad left | 05:29 |
| → skisela joined | 05:29 |
| ← weijin left | 05:32 |
| ← AmR|EiSa left | 05:34 |
| → kyan joined | 05:36 |
| ← xaxxon left | 05:40 |
|
dka
| Hi | 05:41 |
|
| In a nodejs script, I want to query a git repository using the current user private key to get the latest version, what would be a good flow for doing that ? | 05:41 |
| → widp joined | 05:41 |
| → armyriad joined | 05:42 |
| → h12o joined | 05:42 |
| → comps joined | 05:43 |
| → freimatz joined | 05:44 |
| ← garo left | 05:45 |
| → garo joined | 05:46 |
| → AmR|EiSa joined | 05:47 |
| ← Crypt0x left | 05:47 |
| ← h12o left | 05:47 |
| ← dreiss left | 05:47 |
| → subhojit777 joined | 05:51 |
| ← theology left | 05:51 |
| → Crypt0x joined | 05:53 |
| → pfleck joined | 05:54 |
| → weijin joined | 05:56 |
| ← venmx left | 05:56 |
|
doug16k
| dka, this would be the obvious way -> https://www.npmjs.com/package/git otherwise, manually -> https://nodejs.org/api/child_process.html | 05:58 |
| ← pfleck left | 05:58 |
|
dka
| doug16k, user case is, one of our developer type `start-app create app-name` and we check if the tools version is up to date before executing the process, otherwise we update | 05:59 |
|
| because the tool was installed with npm install -g , we do not have a .git configuration | 05:59 |
|
doug16k
| that explains why you asked here the. i don't know | 06:00 |
|
| then* | 06:00 |
|
AmR|EiSa
| Any help ? | 06:01 |
| → Branighan joined | 06:01 |
| ← Crypt0x left | 06:01 |
| → kes joined | 06:02 |
| → pfleck joined | 06:02 |
| → dreiss joined | 06:03 |
| ← tombusby left | 06:05 |
| → tombusby joined | 06:05 |
| → cdg joined | 06:08 |
| ← garo left | 06:08 |
| → garo joined | 06:08 |
|
dka
| AmR|EiSa, what going on/ | 06:09 |
|
AmR|EiSa
| dka: I try update qt git code But I got an error " Submodule path 'src/3rdparty/mapbox-gl-native': checked out '8c1be4ec01ef46bf453856531ebf53b48ce3dbe7' + git submodule init src/3rdparty src/3rdparty is dirty. Dirty submodule(s) present; cannot proceed. " | 06:10 |
| ← raffo left | 06:10 |
| → fr33domlover joined | 06:12 |
| ← cdg left | 06:12 |
|
dka
| I've never seen this error | 06:12 |
|
| You should try on #mapbox | 06:13 |
| → cdg joined | 06:13 |
|
AmR|EiSa
| I don't think that about mapbox I do switch for 5.10 to 5.11 | 06:14 |
| → leeN joined | 06:14 |
|
AmR|EiSa
| and I got that error | 06:14 |
| ← Thominus left | 06:15 |
|
dka
| I've never heard about git 5.11 | 06:15 |
|
AmR|EiSa
| Nop I meant Qt 5.11 | 06:16 |
| → MACscr joined | 06:16 |
| ← cdg left | 06:18 |
| ← g00s left | 06:21 |
| ← rofl__ left | 06:22 |
| → astrofog joined | 06:22 |
| → cdg joined | 06:23 |
| → dege joined | 06:24 |
| → Gurkenglas_ joined | 06:27 |
| ← staafl_ left | 06:27 |
| → staafl_ joined | 06:28 |
| ← cdg left | 06:28 |
| ← AmR|EiSa left | 06:28 |
| → ArcaTech joined | 06:30 |
| ← MACscr left | 06:30 |
| → MACscr_ joined | 06:30 |
| ← armyriad left | 06:30 |
| ← Gurkenglas__ left | 06:30 |
| → tkore\w joined | 06:31 |
| ← tkore\w left | 06:31 |
| → tkore\w joined | 06:31 |
| ← tkore\w left | 06:31 |
| → armyriad joined | 06:31 |
| → tkore\w joined | 06:31 |
| ← tkore\w left | 06:31 |
| → tkore\w joined | 06:31 |
| ← tkore\w left | 06:32 |
| → tkore\w joined | 06:32 |
| ← tkore\w left | 06:32 |
| → tkore\w joined | 06:32 |
| → ioc_ joined | 06:33 |
| → zeroed joined | 06:35 |
| → Raging_Hog joined | 06:36 |
| ← leeN left | 06:36 |
| → jcarpenter2 joined | 06:37 |
| ← astrofog left | 06:37 |
| ← arecaceae left | 06:38 |
| → arecaceae joined | 06:39 |
| ← zefferno left | 06:39 |
| → Tobbi joined | 06:40 |
| → bz6 joined | 06:42 |
| → muelleme joined | 06:42 |
| ← jrz5 left | 06:45 |
| ← jimmyrcom left | 06:45 |
| ← widp left | 06:47 |
| → widp joined | 06:49 |
| → heroux joined | 06:52 |
| → newbie|7 joined | 06:53 |
| → Nizumzen joined | 06:53 |
| → cur8or joined | 06:53 |
| ← upperdeck left | 06:55 |
| ← rexan left | 06:57 |
| → cur8or_ joined | 06:59 |
| ← cur8or left | 06:59 |
| ← subhojit777 left | 07:02 |
| → rfuentess joined | 07:02 |
| ← widp left | 07:03 |
| ← muelleme left | 07:03 |
| → widp joined | 07:03 |
| ← pfleck left | 07:03 |
| → upperdeck joined | 07:03 |
| → wandering_vagran joined | 07:07 |
| ← m1dnight_ left | 07:08 |
| ← bwn left | 07:08 |
| → rexan joined | 07:10 |
| → seschwar joined | 07:13 |
| ← ArcaTech left | 07:13 |
| → oxymoron93 joined | 07:14 |
| ← goweol2 left | 07:15 |
| ← thallada left | 07:16 |
| → scarabx joined | 07:17 |
| ← foul_owl left | 07:17 |
| → abba joined | 07:17 |
| → zefferno joined | 07:18 |
| → bwn joined | 07:19 |
| ← kgrimes left | 07:22 |
| → m1dnight_ joined | 07:22 |
| → floppydh joined | 07:25 |
| ← NerdyPepper left | 07:26 |
| → goweol joined | 07:27 |
| ← al-damiri left | 07:28 |
| → NerdyPepper joined | 07:29 |
| ← Goplat left | 07:29 |
| → thallada joined | 07:30 |
| → dmone joined | 07:31 |
| → venmx joined | 07:31 |
| → solarjoe4 joined | 07:31 |
| ← bolovanos left | 07:31 |
| → strk joined | 07:32 |
|
strk
| how can I remove merges in a branch ? I expected a squash-rebase of all commits to work without conflicts but it doesn't look like that works, unexpectedly | 07:32 |
| → foul_owl joined | 07:32 |
| → tarkus joined | 07:33 |
| → sammyg joined | 07:33 |
| → rchavik joined | 07:34 |
|
strk
| I tried also: git diff master > patch; git reset --hard master; patch -p1 < patch # and I get failures ? Hunk #1 FAILED at 15. ... | 07:35 |
| → theoceaniscool joined | 07:35 |
|
strk
| ok sorry it was just me being tired, I don't get failures | 07:35 |
|
_ikke_
| strk: rebasing 'complex' history is not guaranteed to be conflictless | 07:36 |
| → MurkyLizard joined | 07:36 |
| ← Raging_Hog left | 07:37 |
| ← widp left | 07:39 |
| → finiteautomata joined | 07:42 |
| → CaptainTartwich joined | 07:42 |
|
strk
| I was not really rebasing as I was giving it an existing base | 07:42 |
| → widp joined | 07:42 |
|
strk
| just wanted to squash some commits | 07:42 |
|
| so I picked an existing ancestor and rebased interactively to it | 07:42 |
| ← CaptainTartwich left | 07:43 |
|
strk
| and tried to "s"quash ,so didn't expect any conflict | 07:43 |
|
| ended up doing it via git diff | reset & patch | 07:43 |
|
| which worked great | 07:43 |
|
| now I've to cherry-pick the commits on top (can cherry-pick accept multiple commit as args ?) | 07:43 |
|
oxymoron93
| yes it can | 07:44 |
|
| in the order you want them to apply | 07:44 |
|
strk
| it did, great | 07:44 |
|
oxymoron93
| you can specify range also | 07:44 |
| ← scarabx left | 07:45 |
| ← dreiss left | 07:45 |
| ← widp left | 07:45 |
| → hph^ joined | 07:45 |
| → widp joined | 07:45 |
| ← john-34 left | 07:45 |
|
strk
| I'm sure I'd hit an off-by-one if I try :P | 07:46 |
| ← Cthalupa left | 07:48 |
| → schleppel joined | 07:51 |
| → Cthalupa joined | 07:51 |
| → tvale joined | 07:52 |
| ← daidoji70 left | 07:52 |
| ← Eryn_1983_FL left | 07:54 |
| → manuelschneid3r joined | 07:59 |
| ← troyt left | 07:59 |
| → muelleme joined | 07:59 |
| → piggah joined | 08:00 |
| → troyt joined | 08:01 |
| → rokups joined | 08:03 |
| ← hussam left | 08:03 |
| ← staafl_ left | 08:04 |
| ← muelleme left | 08:04 |
| → kurkale6ka joined | 08:10 |
| ← venmx left | 08:10 |
| ← flaviodesousa left | 08:11 |
| ← kyan left | 08:13 |
| → YuGiOhJCJ joined | 08:14 |
| ← kurkale6ka left | 08:16 |
| ← zeroed left | 08:16 |
| → kurkale6ka joined | 08:16 |
| ← widp left | 08:17 |
| → widp joined | 08:18 |
| ← tvale left | 08:18 |
| → SuperSeriousCat joined | 08:22 |
| → zeroed joined | 08:22 |
| ← doug16k left | 08:24 |
| → cdg joined | 08:25 |
| → dummydummydummy joined | 08:27 |
|
SuperSeriousCat
| Playing with git. Got a master with bot.py and created a develop tree with bot-dev.py. It is gone when I git checkout master so everything seem to work perfectly fine. Now how do I (the git way) change ALL content of master bot.py with bot-dev.py? It is a complete rewrite | 08:28 |
| ← Flechette left | 08:28 |
| → john-34 joined | 08:28 |
| gitinfo set mode: +v | 08:29 |
|
dummydummydummy
| Hi people, anyone know how i can get a list of files that'll be changed when I git pull? | 08:29 |
| → pfleck joined | 08:29 |
| ← cdg left | 08:29 |
|
selckin
| git pull = fetch + merge | 08:30 |
| → reprazent joined | 08:30 |
| ← m1dnight_ left | 08:31 |
| → tvale joined | 08:31 |
|
dummydummydummy
| selckin if that was to me, git fetch only gives output the first time you do it and it doesn't list files though? | 08:31 |
| → nowhere_man joined | 08:32 |
|
selckin
| then you can compare the difference between origin/master and master of example | 08:32 |
| → hussam joined | 08:33 |
| → m1dnight_ joined | 08:33 |
|
dummydummydummy
| ah, right yeah, so is origin/master the remote version and mine is master? | 08:33 |
|
selckin
| yes, see git branch -a | 08:33 |
| → x1b4 joined | 08:35 |
| ← rexan left | 08:35 |
| → rexan joined | 08:35 |
| → nowhereman_ joined | 08:36 |
| ← nowhere_man left | 08:36 |
| → joekeilty joined | 08:37 |
| ← finalbeta left | 08:37 |
| → finalbeta joined | 08:38 |
| ← freimatz left | 08:38 |
| ← Nizumzen left | 08:38 |
| ← finiteautomata left | 08:40 |
| ← energizer left | 08:40 |
|
dummydummydummy
| thanks selckin I think i'm on the right path now... | 08:40 |
| → doug16k joined | 08:41 |
| ← pfleck left | 08:41 |
| ← x1b4 left | 08:42 |
| → CodeSlingerPaul joined | 08:42 |
| → staafl_ joined | 08:43 |
| ← justanotheruser left | 08:44 |
| → nowhere_man joined | 08:45 |
| ← nowhereman_ left | 08:45 |
| → jready joined | 08:45 |
| ← tvw left | 08:46 |
| → freimatz joined | 08:46 |
| → shpoont joined | 08:47 |
|
i7c
| SuperSeriousCat, git mv bot-dev.py bot-py? :-D | 08:48 |
| → jaykay joined | 08:48 |
| gitinfo set mode: +v | 08:49 |
| → amatas_ joined | 08:49 |
|
i7c
| There is not much to do with git, if you do poor-man's "versioning" of your stuff via file names. git doesn't care much about them. | 08:49 |
| ← garo left | 08:49 |
| ← jready left | 08:50 |
|
SuperSeriousCat
| How would the "rich man" version look like? | 08:51 |
| ← freimatz left | 08:51 |
|
selckin
| why did you rename it? and "change all content of master" is very ambiguous too | 08:52 |
|
| throw away current master history and replace it with the branch? put the branch history on top of it? | 08:52 |
|
i7c
| SuperSeriousCat, you could have branched off of master and what selckin says, why rename the file if it is supposed to be the same but in a different version? | 08:52 |
|
| branches are *meant* to track the "same" files in different versions. | 08:53 |
|
jaykay
| hi! i'm writing a bash script to automate some rebase workflow. in there, i'm doing a "git rebase -i" (https://pastebin.com/dd3sajfD line 59 but its long and ugly). on two occasions when doing a reword in there, the rebase finished successfully, but the bash script continued at some seemingly random location, trying to execute some part of a comment, and a second time, parts of a previous command. i couldn't reproduce it since. anyone h | 08:53 |
| → venmx joined | 08:53 |
| → garo joined | 08:53 |
| ← tvale left | 08:53 |
| → ContessaTP joined | 08:53 |
| ← zeroed left | 08:54 |
| → tvale joined | 08:55 |
| → zeroed joined | 08:55 |
| ← widp left | 08:55 |
| → widp joined | 08:56 |
|
i7c
| For starters, git-worktree is shaky :p | 08:56 |
|
selckin
| yeah what is that trying to do | 08:57 |
|
i7c
| don't you just want a rebase --autostash ? | 08:57 |
|
| :D | 08:57 |
|
| Not sure what "without dirtying the files of the rebased commit" means | 08:57 |
|
selckin
| git stash; git svn rebase; git stash pop | 08:58 |
| ← skisela left | 08:58 |
|
jaykay
| the purpose is to perform the rebase without touching all the files that are changed in the rebased commits, that's what i'm trying to achieve. rebase --autostash sounds very nice, but that would imply touching all the files with local changes, which i tried to work around with that temporary commit | 08:59 |
|
| we have long compile times, that's why touching files is kind of unwanted ;) | 08:59 |
|
| the idea was to make the rebase in a worktree and then reset to the rebased branch. | 09:00 |
| ← zeroed left | 09:01 |
|
selckin
| doesn't make any sense to me | 09:01 |
| ← amatas_ left | 09:01 |
| → Thominus joined | 09:02 |
| → Asenar joined | 09:03 |
| → fairuz joined | 09:04 |
|
selckin
| do you not just do a normal update in the main worktree that is not dirty/developed it, and then update your "dev" to the result of that? | 09:04 |
|
jaykay
| selckin: okay, maybe i'm wrong :) but as far as i know, a normal rebase undos the commits to rebase, checks out a new branch, and re-applies the commits. as a result, all files changed in the rebased commits have a new modified date, even if they didn't actually change, and our compiler will treat them as changed. to work around this, this script performs the rebase in a worktree, and resets the original checkout to the rebased branch. | 09:04 |
|
| resetting does not seem to touch files if they didn't actually change. | 09:04 |
| → sentriz joined | 09:05 |
|
jaykay
| selckin: i didn't quite understand your second message. to clarify, this is meant to update the currently worked on branch to a new upstream master (or svn trunk in this particular case) | 09:05 |
|
| *rebase the currently worked on branch onto a new upstream master | 09:06 |
|
selckin
| why not have 2 worktrees forever | 09:06 |
|
jaykay
| this script kind of does, it keeps the second worktree | 09:06 |
| ← ioc_ left | 09:06 |
| → cpr joined | 09:07 |
|
selckin
| but its just, git stash; cd ../pristine; git svn rebase; (maybe fix conflicts); ../dev/; git checkout -- .; git stash pop | 09:07 |
| ← luckman212 left | 09:08 |
|
garo
| Situation: I forked a github rep from A, did some commits in my master and sent a pull request. I'm pretty sure A will merge it eventually into his master, but for now this hasn't happened (I barely know A) | 09:09 |
| ← Gurkenglas_ left | 09:10 |
|
garo
| Meanwhile he continued with his own commits in master, i like them and also want them. What is the "best" way to get them ? Should i do a merge from my master ? Should i create a new branch and merge them there ? something else ? | 09:10 |
|
| (This is a fictional situation at the moment, but i expect it to happen in the very near future) | 09:11 |
|
jaykay
| selckin: basically, yes. only that the script automatically creates the second worktree if needed, i replaced the stash usage by a temporary commit for less file touching, the two worktrees use different branches because they are not allowed to use the same branch, then add some error handling and the convenience --continue option, and then you have my script. | 09:11 |
| ← tvale left | 09:12 |
| → cstratak joined | 09:12 |
| → luckman212 joined | 09:12 |
| → goweol1 joined | 09:12 |
| → kuzyn joined | 09:12 |
|
selckin
| jaykay: then i'd symlink the .Git dir and not use worktree | 09:12 |
|
| jaykay: diff branches is just too much pain for this | 09:13 |
|
jast
| garo: easiest way to do this kind of thing without cluttering up your PR branch is doing your commits on a separate branch and create the PR from that | 09:13 |
|
jaykay
| garo: your two options are to rebase your master on their master, or to merge their master into your master. which option to use is a matter of taste :) | 09:13 |
| ← goweol1 left | 09:13 |
| ← NerdyPepper left | 09:14 |
|
jast
| the disadvantage of rebasing is that any commit comments and such that have been added to the PR will disappear on github | 09:14 |
|
jaykay
| but basically, the "correct" way would be what jast said. | 09:14 |
| ← goweol left | 09:14 |
| ← cpr left | 09:16 |
| → goweol joined | 09:17 |
| ← Orphis left | 09:18 |
| ← catsup left | 09:19 |
| → catsup joined | 09:19 |
|
jaykay
| selckin: could you elaborate? i'm not sure i see how that would actually simplify the script besides replacing a "git branch" with "checkout" and a reset with another checkout. also, it would actually still need a second branch since otherwise the branch of the first checkout will get changed, and aborting the rebase will need additional handling | 09:19 |
| ← widp left | 09:19 |
| ← catsup left | 09:20 |
| → widp joined | 09:20 |
| → catsup joined | 09:20 |
| → wootehfoot joined | 09:21 |
| → Orphis joined | 09:21 |
| ← Oatmeal left | 09:21 |
|
selckin
| jaykay: you want 2 checkouts, and update the git state without affecting the files in one of them, so have a "pristine" and "dev" directory, with both the same .git (symlinked), in the pristine you can just git svn rebase, and resolve conflict and do everything you want, when done, in the "dev" directory, you now just need to checkout the changes made in the first, so could even just have staged your changes | 09:22 |
|
jaykay
| selckin: i could override the "worktrees need to have different branches" with a -f switch and thus implement your proposal while still using actual worktrees. i'll look into it again with this in mind | 09:22 |
|
selckin
| without commit and then git checkout -- .; without committing or stashing | 09:22 |
| → flaviodesousa joined | 09:23 |
|
selckin
| and no need for a script. | 09:23 |
| → thiago joined | 09:23 |
| ← venmx left | 09:24 |
|
jaykay
| selckin: i thought about leaving the unstaged changes as they are and do a checkout -B instead of the reset, that's probably kind of the same thing | 09:24 |
| → mobarmeg joined | 09:24 |
| → mrkake joined | 09:25 |
|
selckin
| wait what i said doesn't work | 09:25 |
| → venmx joined | 09:26 |
| → tvale joined | 09:26 |
| ← mobarmeg left | 09:26 |
| → cpr joined | 09:27 |
| ← shpoont left | 09:27 |
|
jaykay
| something like that i've been doing in the past. (just s/symlink/worktree/ and s/stage/temporary commit/). i now want to bring this nice workflow to my fellow engineers and they said a script for that would be nice. so i write a script. i see nothing bad in that | 09:28 |
|
| (plus, the script is still faster and more fun to watch than doing the six commands manually, so i even use it myself) | 09:28 |
| ← Branighan left | 09:28 |
|
selckin
| i see the rebase being part of the script as a major pain point | 09:29 |
| → xPucTu4 joined | 09:29 |
| ← synthmeat left | 09:29 |
| ← cpr left | 09:29 |
| → afuentes joined | 09:29 |
| ← venmx left | 09:30 |
| ← hph^ left | 09:30 |
| → synthmeat joined | 09:30 |
| ← strk left | 09:30 |
| → venmx joined | 09:30 |
|
garo
| PR branch (= PRivate branch ? ) | 09:30 |
| ← Furai left | 09:30 |
|
jaykay
| selckin: well, if it runs throught cleanly it's very convenient. if there are merge conflicts, than the user will need to cd ../pristine, there's no way around that | 09:30 |
|
| garo: PR = pull request | 09:31 |
| ← doug16k left | 09:31 |
|
garo
| ok, thanks to the both of you ! | 09:31 |
|
jaykay
| selckin: or do you mean some other pain? | 09:31 |
|
| garo: np :) | 09:31 |
| ← lpapp__ left | 09:31 |
| ← johnflux_ left | 09:33 |
| → doug16k joined | 09:34 |
| → cdg joined | 09:36 |
| → johnflux_ joined | 09:37 |
| → tvw joined | 09:40 |
| ← cdg left | 09:40 |
| ← johnflux_ left | 09:42 |
| → johnflux_ joined | 09:43 |
| → muelleme joined | 09:43 |
| → jready joined | 09:45 |
| → Furai joined | 09:45 |
| → dpl joined | 09:45 |
| ← theoceaniscool left | 09:46 |
| ← jready left | 09:49 |
| → Oatmeal joined | 09:49 |
| ← muelleme left | 09:49 |
| → shpoont joined | 09:49 |
| ← Oatmeal left | 09:51 |
| ← weijin left | 09:54 |
| ← akushner left | 09:54 |
| ← cstratak left | 09:58 |
| ← tarkus left | 09:58 |
| → strk joined | 09:59 |
| → MarioBranco joined | 09:59 |
|
strk
| git branch -r # shows me a rem/branch but there's no "rem" in my `git remote -v` | 09:59 |
|
| how did that happen and how can I clean it up ? | 10:00 |
| ← npgm left | 10:00 |
|
selckin
| git branch -D rem/branch | 10:00 |
| ← tunekey left | 10:00 |
|
strk
| error: branch 'rem/branch' not found. | 10:00 |
|
selckin
| would be under remotes/rem/branch if remote (90% sure), otherwise you can use / in the name freely | 10:00 |
| → theoceaniscool joined | 10:01 |
| → cstratak joined | 10:01 |
|
strk
| error: branch 'remotes/rem/branch' not found. | 10:01 |
| → bongozig joined | 10:01 |
|
canton7
| strk, by default, 'git fetch' doesn't remove remote-tracking branches which have been deleted from the remote | 10:02 |
|
strk
| show-ref tells me refs/remotes/rem/branch | 10:02 |
| → hph^ joined | 10:02 |
|
canton7
| strk, run 'git fetch --prune', or set the config fetch.prune = true | 10:02 |
| → tarkus joined | 10:02 |
|
strk
| git fetch --prune # had not effect | 10:02 |
|
| it really looks like "rem" is a remote | 10:02 |
|
| but it is now known by "git remote -v" | 10:03 |
| → Phylock joined | 10:04 |
| → Oatmeal joined | 10:05 |
| → Zewwy joined | 10:06 |
| ← Oatmeal left | 10:07 |
|
canton7
| strk, hmm, can you post the output of 'git config --get-regexp ^remote\..+?\.fetch' ? | 10:09 |
| ← YuGiOhJCJ left | 10:09 |
| → rafasc joined | 10:10 |
| ← rewt left | 10:10 |
| → geoid joined | 10:11 |
| → rewt joined | 10:11 |
| → Master__ joined | 10:11 |
|
strk
| remote.origin.fetch +refs/heads/*:refs/remotes/origin/* | 10:11 |
|
| + another two lines replacing origin with "strk" and "exp" respectively | 10:11 |
| ← nixjdm left | 10:12 |
| ← robin left | 10:12 |
| ← rchavik left | 10:12 |
|
canton7
| right, so "rem" is definitely not a remote any more. Maybe it was at some point in the past | 10:13 |
| ← dsdeiz left | 10:13 |
| → dimi1947 joined | 10:13 |
| → nixjdm joined | 10:14 |
| → plexigras joined | 10:14 |
| → robin joined | 10:14 |
| → weijin joined | 10:14 |
| ← MarioBranco left | 10:14 |
| → escproxy joined | 10:16 |
|
strk
| right, so how do I clean that up ? | 10:17 |
| → YuGiOhJCJ joined | 10:17 |
| ← weijin left | 10:18 |
| ← Master__ left | 10:18 |
|
rafasc
| does it show with git remote show rem? | 10:19 |
| → amatas_ joined | 10:19 |
|
strk
| nope | 10:21 |
|
| fatal: 'rem' does not appear to be a git repository | 10:21 |
| → nutron|w joined | 10:22 |
| ← escproxy left | 10:23 |
| ← piggah left | 10:23 |
| → m_surf joined | 10:23 |
| ← joekeilty left | 10:24 |
| → weijin joined | 10:25 |
| → RougeR joined | 10:25 |
| → cpr joined | 10:25 |
| → rchavik joined | 10:25 |
| → joekeilty joined | 10:25 |
| ← nutron|wirk left | 10:26 |
|
dummydummydummy
| what's the neatest way to get git to tell me (my script) if i'm ahead, behind or diverged from the main repo? | 10:27 |
|
rafasc
| strk: and git remote doesn't list rem as a remote right? | 10:27 |
|
canton7
| strk, 'git update-ref -d' always works :) | 10:28 |
|
| dummydummydummy, look at how __git_ps1 does it | 10:28 |
|
strk
| rafasc: right | 10:30 |
|
| canton7: error: refusing to update ref with bad name | 10:30 |
|
| guess I have to prepend refs/remote | 10:31 |
|
canton7
| yeah, it's a low-level command that one | 10:31 |
|
strk
| yup | 10:31 |
|
dummydummydummy
| oh what a cool little app, thanks canton7 will read up | 10:31 |
|
rafasc
| might as well just delete the whole refs/remote/rem directory | 10:31 |
|
| probably also run git fsck / git gc | 10:32 |
|
strk
| fsck found an handful of dangling blobg | 10:32 |
|
dummydummydummy
| looks like they're basically just grepping for the words 'diverged', thought that might be messy but if it's good enough for them it's good enough for me :) | 10:33 |
|
rafasc
| very suspicious that git fetch --prune isn't working in your case | 10:33 |
|
strk
| nor gc drops those dangling blobs and trees | 10:34 |
|
rafasc
| dummydummydummy: errm no.. | 10:34 |
| → lightstalker joined | 10:34 |
| → FACILITY_GUY joined | 10:36 |
| ← jaykay left | 10:36 |
| → Strepsils joined | 10:37 |
|
FACILITY_GUY
| Hi, I deleted folder with git rm -r, and now I can't add this folder again | 10:37 |
|
| what can I do? | 10:37 |
| → ioc_ joined | 10:39 |
| ← cpr left | 10:39 |
| ← manuelschneid3r left | 10:39 |
| → manuelschneid3r joined | 10:40 |
| → czart__ joined | 10:40 |
|
rafasc
| dummydummydummy: git::../blob/03df4959472e7d4b5117bb72ac86e1e2bcf21723/contrib/completion/git-prompt.sh#L104 | 10:40 |
|
gitinfo
| dummydummydummy: Git web link: https://github.com/git/git/commits/../blob/03df4959472e7d4b5117bb72ac86e1e2bcf21723/contrib/completion/git-prompt.sh#L104 | 10:40 |
|
rafasc
| it's slightly more than just greping. | 10:41 |
|
dummydummydummy
| rafasc, what do you mean? ins't the line they set a diverge_pattern="# Your branch and (.*) have diverged" then see if it exists in the output, basically just searching for the word | 10:41 |
| → Master__ joined | 10:43 |
| ← czart_ left | 10:44 |
| ← widp left | 10:44 |
| → widp joined | 10:45 |
| ← shpoont left | 10:45 |
| ← amatas_ left | 10:46 |
|
rafasc
| dummydummydummy: where is this diverge_pattern you speak of? | 10:46 |
| → shpoont joined | 10:46 |
| ← FACILITY_GUY left | 10:47 |
| ← YuGiOhJCJ left | 10:48 |
| ← bartman left | 10:49 |
| ← thiago left | 10:49 |
| → ronator joined | 10:50 |
| ← widp left | 10:50 |
| → widp joined | 10:50 |
|
dummydummydummy
| sry just looking through your link now, seems kinda complex, surprised git doesn't have some flags you can set to get clean output like --porcelain oh well no worries, thanks! | 10:50 |
| ← widp left | 10:51 |
|
rafasc
| can you point me to the line you mentioned? | 10:51 |
| → maroloccio joined | 10:51 |
| → widp joined | 10:51 |
| → hfp_work joined | 10:52 |
| → hfp joined | 10:53 |
|
rafasc
| dummydummydummy: there's a one line answer to your question. | 10:55 |
|
| but I need you to tell me where this diverge_pattern= thing is. | 10:56 |
|
| or did you invent it? | 10:56 |
| ← m_surf left | 10:56 |
| ← tarkus left | 10:58 |
| ← doug16k left | 11:00 |
| → ecuanaso joined | 11:00 |
| ← widp left | 11:00 |
| → widp joined | 11:01 |
| ← cstratak left | 11:02 |
| ← widp left | 11:02 |
| → widp joined | 11:02 |
| → cstratak joined | 11:03 |
| ← ecuanaso left | 11:05 |
|
dka
| Is there an equivalent command I can use for setting default upstream and downstream ? | 11:08 |
|
rafasc
| dka: a branch can only track one branch. | 11:08 |
| → escproxy joined | 11:09 |
| → checkItO_ joined | 11:10 |
|
dka
| I want all my user to pull from `dev` by default and to push to $(whoami)-dev by default | 11:10 |
|
| My working directory is clean, there is nothing to pull or to push so no reason to use git pull or git push | 11:10 |
| → jtza8 joined | 11:10 |
| gitinfo set mode: +v | 11:10 |
| → thiago_ joined | 11:11 |
| bluepixe1 → bluepixel | 11:12 |
|
rafasc
| dka: in that case you can use a different pushurl for your dev's remote | 11:12 |
| ← laidback_01 left | 11:13 |
|
rafasc
| git remote set-url --push origin https://link.to.remote | 11:13 |
| ← checkItOut left | 11:13 |
|
rafasc
| that will override the url for push. | 11:14 |
| → Fernando-Basso joined | 11:14 |
| ← checkItO_ left | 11:14 |
|
rafasc
| I think I misread your question, you want to push to different branches, not different remotes. | 11:15 |
|
jtza8
| If I were to mark machine generated text files (xml) as binary in a .gitattributes file, would git then refuse to use a merge tool on it? (If a conflict were to happen.) | 11:16 |
|
dka
| rafasc, does it work for pull ? | 11:16 |
|
| can I do `git remote set-url --push origin https://link.to.remote` in the middle of a CI/ | 11:17 |
|
| ? | 11:17 |
|
| and do I need write the https:// url ? | 11:17 |
|
| I rather write | 11:17 |
|
| git remote set-url --push origin dka-dev | 11:17 |
|
| and | 11:17 |
|
| git remote set-url --pull origin dev | 11:17 |
| → tarkus joined | 11:18 |
|
rafasc
| set url sets the url for the remote, not for a branch. | 11:19 |
| ← Strepsils left | 11:19 |
|
rafasc
| that would work if you had different remotes for dev and dka-dev | 11:20 |
|
| --pull doesn't exist. | 11:20 |
| → ginti joined | 11:20 |
|
ginti
| hey | 11:21 |
|
| i fetched upstream and rebased. But for build-system reasons, I want to rebase to HEAD-2 (I'm currently on top, want to skip the commit below for now) | 11:21 |
|
| ideas how to do that? | 11:21 |
| → Nizumzen joined | 11:22 |
|
canton7
| ginti, so, rebase onto @{upstream}~2, rather than onto @{upstream} ? | 11:22 |
|
| I'm not sure exactly what you mean by "rebase to HEAD-2" | 11:22 |
|
dummydummydummy
| rafasc sorry it was before you'd sent that link. i'd googled git ps1 and found a slightly different script that was changing the colour of bash depending on git status. wasn't from the link you sent me | 11:23 |
|
ginti
| my history after rebase is A->B->C (my commit is A) and I want the history to be A->C | 11:23 |
| → jay-m joined | 11:23 |
|
ginti
| canton7: ^ | 11:23 |
|
canton7
| ginti, right, so rebase onto C, rather than onto B | 11:23 |
|
ginti
| i've already rebased onto B | 11:23 |
|
| so I can do the reabse onto C now? that's HEAD-2, right? | 11:23 |
|
rafasc
| dka: in short, the answer is no. You can make your devs make their upstream $(whoami)-dev, so they can push and pull from it freely, then ask them to push to the real dev branch with $git push origin $(whoami)/dev:dev | 11:24 |
|
canton7
| then undo the rebase and rebase onto B, or you can do soemthing like 'git rebase --onto C B' | 11:24 |
|
| uh, "and rebase onto C" | 11:24 |
|
ginti
| hum, no idea how rebases are undone :/ | 11:24 |
| ← dummydummydummy left | 11:24 |
|
dka
| rafasc, I am not sure you got me right | 11:25 |
|
| user will be solo on their branch | 11:25 |
|
| because they cant push on dev | 11:25 |
|
canton7
| you can use 'git reflog current-branch-name' to find the hash of the commit you were on before you did the rebase. But 'git rebase --onto C B' is probably easier | 11:25 |
|
dka
| but some user might merge their change into dev | 11:25 |
| ← fairuz left | 11:25 |
|
ginti
| --onto C B where C and B are commit hashes? canton7 | 11:25 |
|
dka
| this is why other user wont be able to merge if they try to do it without pulling from dev | 11:25 |
|
| it make sens to pull from another branch in that situation | 11:25 |
|
| so I think `git pull -u`, `git push -u` is what I want. | 11:26 |
| ← geoid left | 11:26 |
|
canton7
| ginti, where they are anything which refers to the commits C and B in your message. Those can be hashes, or relative refs (B is A^ for instance), or anything which can be turned into a commit | 11:26 |
|
dka
| it work fine when I do it, why cant I just set the same thing without using push or pull? | 11:26 |
| → geoid joined | 11:26 |
|
rafasc
| dka: git pull -u is not similar to git push -u. | 11:27 |
| ← firegurafiku left | 11:27 |
| ← shpoont left | 11:27 |
| ← jtza8 left | 11:27 |
| ← hfp_work left | 11:29 |
| → dimi1979 joined | 11:29 |
| ← solarjoe4 left | 11:30 |
| ← lightstalker left | 11:30 |
| ← joekeilty left | 11:30 |
| ← dimi1947 left | 11:30 |
| → joekeilty joined | 11:31 |
| ← geoid left | 11:31 |
| → hfp_work joined | 11:32 |
| ← Phylock left | 11:33 |
| ← VladGh_ left | 11:35 |
| ← thiago_ left | 11:36 |
| ← RougeR left | 11:36 |
| → VladGh joined | 11:36 |
|
rafasc
| dka: I think it's the responsibility of the dev to chose what he pulls into their own private tree. | 11:38 |
| ← weijin left | 11:39 |
| → daidoji joined | 11:39 |
|
dka
| rafasc, I think it is true | 11:39 |
|
| but it is for a class | 11:39 |
|
| so you should let me do for the good of the kid | 11:40 |
|
| :D | 11:40 |
|
rafasc
| teach them right the first time then ;) | 11:40 |
|
dka
| yeah | 11:40 |
|
| You do it | 11:40 |
|
| You have 2 hours | 11:40 |
|
rafasc
| I do. | 11:40 |
|
dka
| and dont forget to do whats required for you to get paid | 11:40 |
|
| ;D | 11:40 |
|
| vs reality | 11:40 |
|
rafasc
| well maybe they should find someone else more qualified to teach git to the kids ;) | 11:42 |
| → geoid joined | 11:42 |
| → dendazen joined | 11:43 |
| ← maroloccio left | 11:44 |
|
rafasc
| have them publish the work, and an integrator merging their changes into dev | 11:44 |
|
| similar how pull requests work in real life | 11:45 |
| → maroloccio joined | 11:46 |
|
ginti
| git reflog shows a commit I want my repository to be reverted to. How do I do that? | 11:47 |
|
rafasc
| way more valuable than teaching them using git in way they won't likely use elsewhere. | 11:47 |
|
| ginti: depends if you're willing to rewrite history. | 11:49 |
|
| you can git reset --hard <commit id> but you'll lose all commits you did after that commit. | 11:50 |
| → lightstalker joined | 11:51 |
|
rafasc
| this also falls under rewriting history. Since anyone who branched from these commits would have trouble merging back. | 11:51 |
|
| !rewriting_public_history | 11:52 |
|
gitinfo
| [!rewrite] 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 | 11:52 |
| ← geoid left | 11:53 |
| ← widp left | 11:53 |
| → widp joined | 11:54 |
| ← liefer left | 11:56 |
| → liefer joined | 11:57 |
|
rafasc
| ginti: another way, that doesn't rewrite is history is to checkout the contents of that reflog entry and commit that. | 11:57 |
|
| git checkout <refloghash> -- . | 11:57 |
|
| then you can commit and explain in the commit message this is a revert etc. | 11:58 |
| ← kurkale6ka left | 12:01 |
| → weijin joined | 12:03 |
| → shinnya joined | 12:03 |
| ← ginti left | 12:05 |
| ← chris_wot left | 12:05 |
| → zaayer joined | 12:07 |
| ← Bobdude left | 12:07 |
| → bartman joined | 12:08 |
| ← weijin left | 12:09 |
| ← dendazen left | 12:10 |
| → xaa joined | 12:10 |
| ← widp left | 12:13 |
| → dendazen joined | 12:13 |
| → IanLiu joined | 12:14 |
| ← nutron|w left | 12:17 |
| → kurkale6ka joined | 12:18 |
| → solarjoe4 joined | 12:18 |
| → ginti joined | 12:20 |
| → ecuanaso joined | 12:21 |
| → gadol joined | 12:22 |
| → dsdeiz joined | 12:22 |
| ← dsdeiz left | 12:22 |
| → dsdeiz joined | 12:22 |
| ← gadol left | 12:22 |
| → phluks joined | 12:23 |
| ← johnflux_ left | 12:23 |
| → johnflux joined | 12:23 |
| ← johnflux left | 12:23 |
| → johnflux joined | 12:23 |
| ← ginti left | 12:26 |
| → pfleck joined | 12:29 |
| → nutron|w joined | 12:29 |
| → boombatower joined | 12:31 |
| ← nutron|w left | 12:32 |
| → nutron|w joined | 12:32 |
| ← Arcaelyx left | 12:32 |
| ← tribly left | 12:32 |
| → tribly joined | 12:34 |
| ← alcohol left | 12:35 |
| ← johnflux left | 12:35 |
| → ghost43 joined | 12:35 |
| → alcohol joined | 12:35 |
| → dskull joined | 12:37 |
| → firegurafiku joined | 12:37 |
| ← zaayer left | 12:38 |
| → comptroller joined | 12:40 |
| → cousteau joined | 12:40 |
|
cousteau
| I just realized that I forgot to add a file and commit its changes | 12:40 |
| → synthroid joined | 12:40 |
| → weijin joined | 12:40 |
|
cousteau
| now, for the sake of elegance, I'd like to fix that, but I'm not sure how to do it | 12:41 |
| → piggah joined | 12:41 |
|
rafasc
| cousteau: have you pushed said commit? | 12:42 |
|
garo
| Suppose i have 'newbranch' based on 'master' and this newbranch has 10 new commits, can i merge only commit (for example) 3,4,7 and 9 into master and ignore the others ? | 12:42 |
|
cousteau
| indeed I have | 12:42 |
|
garo
| At the moment i'm not interested in how to do it (yet), i just want to know if it's possible | 12:43 |
|
oxymoron93
| yes you can use git cherry-pick garo | 12:43 |
|
garo
| thanks ! | 12:43 |
|
cousteau
| It's a private repository anyway so it wouldn't be too terrible if I rewrote history | 12:43 |
|
rafasc
| then you can just add the file, and run commit --amend | 12:43 |
|
oxymoron93
| tho it is not merge, it will just apply commits you want | 12:43 |
|
grawity
| if it's the last commit, just update with --amend, and push --force | 12:43 |
| → tymczenko joined | 12:43 |
|
cousteau
| but I think I'll try to do the right thing | 12:43 |
|
rafasc
| listen to grawity for the sake of completeness | 12:44 |
|
cousteau
| rafasc, grawity, the problem is that this is a couple of commits ago | 12:44 |
|
grawity
| then make a regular commit | 12:44 |
|
| and use interactive rebase to move and squash that commit | 12:44 |
| → widp joined | 12:45 |
| ← weijin left | 12:45 |
|
cousteau
| I think I'll try to do the right thing: travel back in time, add and commit the file (as I should have), commit the changes, then merge with the commit where I made the rest of related changes | 12:45 |
|
| and then merge the rest | 12:45 |
|
| ...4 commits? No way. OK I'll rebase. | 12:45 |
|
oxymoron93
| rebase! | 12:46 |
|
grawity
| your plan was basically "rebase, but manually" | 12:46 |
|
rafasc
| grawity: edit option from rebase feels so lonely. | 12:46 |
|
| grawity sends rafasc a GitHug | 12:46 |
| ← tarkus left | 12:46 |
|
cousteau
| grawity, well, it was more like "rebase, but with commits" | 12:46 |
|
rafasc
| cousteau: but that's what rebase is. | 12:47 |
|
| rebase takes the commits and apply them on top of the new base. | 12:47 |
|
Asenar
| cousteau, you can do `git rebase -i` (for interactive) then flag the commit you want to edit so the rebase process will stop to let you edit or add other commits between | 12:47 |
| → safe joined | 12:47 |
|
cousteau
| rafasc, I thought rebase modified history | 12:48 |
|
grawity
| yeah you can use 'edit' but it's the same result except IMHO slightly more complicated | 12:48 |
|
| cousteau: nearly any kind of "travelling back in time" involves modifying history | 12:48 |
|
cousteau
| not if I create a separate timeline | 12:48 |
|
rafasc
| cousteau: doing manually will also modify history. | 12:48 |
| → peacememories joined | 12:49 |
|
cousteau
| and then merge the two timelines | 12:49 |
|
| how so? The individual commits would be unaffected. | 12:49 |
|
Asenar
| Or easier, if it's just a file you forget to add to the commit <abc123> (for example, you can `git add` the file, then `git commit --fixup=abc123`. Then, `git rebase -i --autosquash` so the commit will be automatically inserted where you want to | 12:49 |
|
rafasc
| but then you will have duplicate commits on both timelines, which are way worse than a commit one top saying "oops, forgot to add these" | 12:49 |
|
Asenar
| *not inserted after, merged with | 12:50 |
|
cYmen
| What's the easiest way to look at a view commits of diffs? | 12:50 |
|
oxymoron93
| if ancestor is changed, so it is history | 12:50 |
|
cYmen
| er..diffs of commits... | 12:50 |
|
| ie what were the last view things happening in the repo | 12:50 |
|
rafasc
| git diff commitA commitB? | 12:50 |
|
cousteau
| oxymoron93, the idea was not to change ancestors, just branch and make separate commits | 12:51 |
|
cYmen
| rafasc: yeah but then I end up going git diff HEAD^, git diff HEAD^ HEAD^^, git diff HEAD^^ HEAD^^^ and it gets annoying fast | 12:51 |
|
rafasc
| git log -p | 12:51 |
|
| cYmen: ping | 12:52 |
|
cYmen
| pong | 12:52 |
|
oxymoron93
| investigate what commit you want then use its sha or ref if any for git diff | 12:52 |
|
| cYmen: | 12:52 |
| → weijin joined | 12:53 |
|
rafasc
| what he described is basically $git log -p; so I assume that's what he's looking for. | 12:53 |
|
cYmen
| rafasc: I cannot find -p in the man page. O_o | 12:53 |
|
rafasc
| --patch | 12:54 |
|
Asenar
| if you are investigating to find where in your history you made a mystake, you might use git bisect | 12:54 |
|
| !bisect | 12:54 |
|
| :/ | 12:54 |
| ← PtxDK left | 12:54 |
| → PtxDK joined | 12:55 |
|
oxymoron93
| cousteau: why separate commits? you mean just one commit which adds file? | 12:55 |
| ← duderonomy left | 12:56 |
|
Asenar
| I agree with rafasc, git log -p (for patch) is probably what's you want | 12:56 |
|
cousteau
| the file was not originally added; I should have added the original file, committed that, then modified all files (including that one) and commited that | 12:57 |
|
rafasc
| cYmen: first option after "COMMON DIFF OPTIONS" on the manpage | 12:57 |
|
cousteau
| you know what, I think I'll just add the file and forget about it | 12:57 |
| ← weijin left | 12:57 |
|
cousteau
| I have a copy of the original somewhere; it's not a tragedy that I lose it | 12:57 |
| → AndresInSpace joined | 12:57 |
| → Eryn_1983_FL joined | 12:57 |
| ← fr33domlover left | 12:58 |
| ← kuzyn left | 12:58 |
| → mborgard joined | 12:58 |
| → agowa338 joined | 12:59 |
|
cYmen
| rafasc: thank you! | 13:00 |
|
rafasc
| cousteau: if you think it's important, just write in the commit message something like: add file 123123 forgot to add | 13:00 |
| ← tymczenko left | 13:00 |
|
rafasc
| if you insist with the merge idea, I guess you could branch from the commit that missed the file, add a commit to add it, then merge it back. | 13:02 |
| ← inovas left | 13:03 |
| ← shinnya left | 13:03 |
| → fission6 joined | 13:03 |
| → inovas joined | 13:03 |
| → paxri01 joined | 13:03 |
| ← widp left | 13:07 |
|
cousteau
| I have decided that this file is zero important and that I'm not going to revert it anyway; I just want to keep a copy of it around just in case I want to modify it again in the future. | 13:07 |
|
Asenar
| :/ | 13:07 |
|
rafasc
| Maybe this was your initial idea when you said creating two timelines? Since we were talking about rebase I assumed you were trying to recreate the same branch (with 4 commits) but with the file added in the base commit. | 13:07 |
| → widp joined | 13:07 |
|
Asenar
| So you can create a branch, add the file with an appropriate commit message, then got back to your previous branch | 13:08 |
|
oxymoron93
| and rebase | 13:08 |
|
cousteau
| rafasc, yes, that's what I meant; I wanted to avoid the headache of doing a rebase, but as I thought of the idea I got even lazier and decided to also avoid the headache of keeping a perfect commit tree and just committed the modified file | 13:09 |
|
| the old version sucked anyway; I'm not going to go back | 13:09 |
|
Asenar
| But something like `git commit path/to/file --squash=<sha1> && git rebase -i <sha1>^ --autosquash` might be better if 6 month later you read your history | 13:09 |
| → kuzyn joined | 13:09 |
|
cousteau
| so far my commit history is mostly linear | 13:09 |
| → ZexaronS joined | 13:10 |
|
rafasc
| Asenar: he doesn't wan't to rewrite history. So rebase answers are ruled out. | 13:10 |
|
cousteau
| which makes sense since I'm the only "developer" of this "project" (it's actually my PhD thesis and I'm just using git to keep track of changes) | 13:10 |
| → tymczenko joined | 13:10 |
|
cousteau
| rafasc, to be honest I didn't want to rewrite history because it felt unelegant and I had already committed to my bitbucket copy | 13:11 |
|
rafasc
| and that leaves two options: either add a commit on top fixing the issue, or doing what he originally said: branching from the commit that is missing the file, add the file, and merge the two branches together. | 13:11 |
|
Asenar
| Rewriting is elegant and you can `git push --force` to bitbucket, but if you don't feel comfortable with that you have no obligation | 13:12 |
| ← strk left | 13:12 |
|
rafasc
| cousteau: the only problem about rewrite history, is when people branch of your work. Because they will need to rebase their work on top of the new history. | 13:13 |
|
cousteau
| at the end I've gone through the path of least resistance | 13:13 |
| ← plasticboy left | 13:13 |
|
Asenar
| rewriting can be something like changing «A → C → D → B» to «A → B' → C' → D'» | 13:13 |
|
rafasc
| and even on some occasions it's ok to do it. You just need to warn the people involved. | 13:14 |
| ← bongozig left | 13:15 |
| → bongozig joined | 13:16 |
| → weijin joined | 13:16 |
|
Asenar
| you cut the last 3 commits from the history, you add your file (either with a commit or by adding it to the existing one), then you paste the 3 commit you previously cutted. It's very elegant (but do as your feel, if your history is «clean», a little merge will not make a mess) | 13:16 |
|
| Since you 're the only one to use your repository, you can rewrite history safely | 13:17 |
| → jonno112 joined | 13:17 |
| ← widp left | 13:18 |
| ← rjsalts left | 13:18 |
|
cousteau
| yes but I realized it was way too much work (plus I'd need to learn how to do a rebase) | 13:18 |
| → Guest73086 joined | 13:19 |
| ← Fernando-Basso left | 13:19 |
| → rajpratik71 joined | 13:20 |
|
rafasc
| cousteau: it's not that hard. | 13:20 |
|
Asenar
| rebasing is no work | 13:20 |
| ← dimi1979 left | 13:20 |
|
rafasc
| if you used the method grawity suggested, it makes it super simple. | 13:20 |
| → stutter_ joined | 13:21 |
| ← weijin left | 13:21 |
| ← tchan1 left | 13:21 |
| → tchan joined | 13:22 |
|
rafasc
| git rebase -i <hash of commit missing the file>^ | 13:22 |
|
Asenar
| What grawity told you to is to do this : 1) do your commit where you are 2) do `git rebase -i <sha1>^` (where <sha1> is the commit where you forget to add the file) | 13:22 |
| → plasticboy joined | 13:22 |
| ← Guest73086 left | 13:23 |
|
Asenar
| then 3) in the editor that opens, move the last line that starts by `pick` at the top of the file, then save and exit | 13:24 |
| ← rchavik left | 13:24 |
|
rafasc
| Asenar: 2nd line. | 13:25 |
|
Asenar
| And if instead, you think it's better to include that file in the <sha1> commit, you can do 1) `git commit path/to/file --squash=<sha1>` (this will create a commit and generate a message to prepare the interactive) then `git rebase -i <sha1>^ --autosquash`, and your commit will be already placed at the right place | 13:25 |
| → nd joined | 13:26 |
|
Asenar
| thanks rafasc, is right 2nd line :) (the first line is the commit without the file) | 13:26 |
| → ginti joined | 13:26 |
|
rafasc
| Asenar, --squash is just syntax sugar for editing pick to squash and moving the line below the appropriate commit. | 13:27 |
|
| since he already has the commit, he could just do that himself in the todolist from rebase. | 13:28 |
| ← zarzar left | 13:28 |
|
Asenar
| And I just found there is very few documentation on internet about --squash and --fixup :/ | 13:29 |
|
rafasc
| man git commit | 13:29 |
|
gitinfo
| the git-commit manpage is available at https://gitirc.eu/git-commit.html | 13:29 |
|
rafasc
| all it's needed | 13:29 |
| ← ginti left | 13:29 |
| → LichtMacher joined | 13:30 |
| ← nd_ left | 13:30 |
| ← jay-m left | 13:30 |
| → zaayer joined | 13:31 |
| → pfleck1 joined | 13:31 |
|
Asenar
| I observed that people which are not familiar with git rebase never (or almost never) do commit order change. Maybe because the order of the commit in the file is the opposite of what `git log` gives you | 13:32 |
| ← tvw left | 13:32 |
| ← zaayer left | 13:33 |
| ← cur8or_ left | 13:33 |
| → thebope joined | 13:34 |
|
rafasc
| Asenar: people fear rebase a bit, due to everyone warning "careful cause this will rewrite history". | 13:35 |
| → x1b4 joined | 13:36 |
| ← x1b4 left | 13:37 |
|
rafasc
| .digraph rankdir=LR;edge[dir=back];a->b->c;"..."->" ..."->{a fix};fix->c;node[shape=box];c->master; | 13:37 |
|
gitinfo
| .digraph: http://g.jk.gs/Fz.png | 13:37 |
| → x1b4 joined | 13:38 |
|
rafasc
| .digraph rankdir=LR;edge[dir=back];"..."->" ..."->a->b->c->fix;node[shape=box];fix->master; | 13:38 |
|
gitinfo
| .digraph: http://g.jk.gs/FA.png | 13:38 |
| ← rajpratik71 left | 13:38 |
|
rafasc
| guess it's a matter of preference. | 13:38 |
| → shpoont joined | 13:39 |
|
rafasc
| messed up the merge one. blah | 13:40 |
| → rajpratik71 joined | 13:41 |
| → jready joined | 13:42 |
| → rjsalts joined | 13:42 |
| ← Kaisyu left | 13:44 |
| ← rajpratik71 left | 13:44 |
| → weijin joined | 13:45 |
| → rajpratik71 joined | 13:47 |
| → synthroi_ joined | 13:47 |
|
Asenar
| And with rebase it would be something like (first time I try that .digraph thing) | 13:48 |
|
| .digraph rankdir=LR;edge[dir=back];"..."->" ..."->a->fix->b->c;node[shape=box];fix->master; | 13:48 |
|
gitinfo
| .digraph: http://g.jk.gs/FB.png | 13:48 |
| ← asphyxia left | 13:48 |
| → dreiss joined | 13:49 |
|
Asenar
| .digraph rankdir=LR;edge[dir=back];"..."->" ..."->a->fix->b->c;node[shape=box];c->master; | 13:49 |
|
gitinfo
| .digraph: http://g.jk.gs/FC.png | 13:49 |
| ← arooni left | 13:49 |
| ← weijin left | 13:49 |
| → fahadash joined | 13:50 |
| ← ronator left | 13:50 |
| ← x1b4 left | 13:50 |
| → x1b4__ joined | 13:51 |
| ← x1b4__ left | 13:51 |
| ← synthroid left | 13:51 |
| ← manuelschneid3r left | 13:53 |
| → manuelschneid3r joined | 13:54 |
| → Dougie187 joined | 13:56 |
| → zarzar joined | 13:57 |
| ← Chaser left | 13:57 |
| → jonjitsu joined | 13:58 |
| ← dpyro left | 13:58 |
| ← cousteau left | 13:59 |
| ← rajpratik71 left | 14:00 |
| → arooni joined | 14:00 |
| → Gurkenglas_ joined | 14:00 |
| → muelleme joined | 14:01 |
| ← shpoont left | 14:01 |
| ← tterrag|alt left | 14:01 |
| → rajpratik71 joined | 14:03 |
| → morenoh149 joined | 14:03 |
| → YuGiOhJCJ joined | 14:03 |
| → weijin joined | 14:04 |
| → Phylock joined | 14:04 |
| ← muelleme left | 14:05 |
| → crose joined | 14:05 |
| ← piggah left | 14:06 |
| → star_prone joined | 14:07 |
| → b4dger joined | 14:07 |
| ← surfist left | 14:08 |
| ← weijin left | 14:08 |
| ← Phylock left | 14:09 |
| ← jonjitsu left | 14:09 |
| → jonjitsu joined | 14:10 |
| ← ZexaronS left | 14:10 |
| ← dendazen left | 14:10 |
| → surfist joined | 14:10 |
|
barq
| If you have a repository with a lot of branches, does it make sense to only clone master and then checkout other branches when needed from the remote? | 14:10 |
|
rafasc
| you don't clone branches, you clone the whole repo. | 14:11 |
| ← rajpratik71 left | 14:11 |
|
rafasc
| so, yes makes sense to checkout only when you need it. | 14:11 |
|
Asenar
| Branches are just «references» (which contains only the matching <sha1>) | 14:12 |
| ← peacememories left | 14:13 |
|
rafasc
| at least until you use clone --no-single-branch, but that's tale for another time. | 14:14 |
| → rajpratik71 joined | 14:14 |
| ← sammyg left | 14:15 |
| ← tvale left | 14:15 |
| → greggerz joined | 14:15 |
| → cfoch__ joined | 14:15 |
| → fairuz joined | 14:16 |
| ← star_prone left | 14:18 |
| → weijin joined | 14:19 |
| → bertschneider joined | 14:19 |
| ← oxymoron93 left | 14:20 |
| → star_prone joined | 14:20 |
| ← chachasmooth left | 14:20 |
| ← bertschneider left | 14:20 |
| ← tombusby left | 14:21 |
| → bertschneider joined | 14:21 |
| → tombusby joined | 14:21 |
| ← bertschneider left | 14:23 |
| ← madewokherd left | 14:23 |
| → MrBiogene joined | 14:23 |
| → bertschneider joined | 14:23 |
| ← weijin left | 14:24 |
| → RougeR joined | 14:24 |
| ← solarjoe4 left | 14:25 |
| ← rajpratik71 left | 14:26 |
| → jay-m joined | 14:26 |
| → chachasmooth joined | 14:27 |
| ← crose left | 14:28 |
| → dimi1979 joined | 14:28 |
| → tterrag joined | 14:28 |
| → rajpratik71 joined | 14:29 |
| → kneeki joined | 14:30 |
| → tvale joined | 14:30 |
| → thejoecarroll joined | 14:30 |
|
nikivi
| find . -name "*.bak" -type f -delete | 14:30 |
| → weijin joined | 14:30 |
|
nikivi
| How can I instead of delete file here, git rm --cache them? | 14:31 |
|
| probably better question for #bash, sorry | 14:31 |
|
canton7
| nikivi, -exec git rm --cache {} \; | 14:31 |
|
| *cached | 14:31 |
|
nikivi
| find . -name "*.bak" -type f -exec git rm --cached {} \; | 14:31 |
|
| ? | 14:31 |
|
canton7
| yep, but !backup first :) | 14:32 |
|
gitinfo
| Worried about your data while trying stuff out in your repo? The repository in its entirety lives inside the .git directory in the root of your work tree so to backup everything `cp -a path/to/workdir path/to/backup` or equivalent will suffice as long as the repo is not modified during backup. See also http://sethrobertson.github.com/GitBestPractices/#backups | 14:32 |
|
nikivi
| This will just remove it from git | 14:32 |
|
| wont delete the file | 14:32 |
|
| Just to make sure | 14:32 |
|
canton7
| correct | 14:33 |
| ← Master__ left | 14:34 |
| ← tymczenko left | 14:34 |
|
Asenar
| nikivi, do you try to delete files tracked by git ? | 14:34 |
| → tymczenko joined | 14:35 |
|
nikivi
| Asenar I just have a file that I was tracking that I want to stop tracking | 14:35 |
|
Asenar
| ops, I misread, it's the opposite, sry | 14:35 |
|
nikivi
| canton7's cmd worked tho | 14:35 |
| ← weijin left | 14:35 |
| ← bwn left | 14:35 |
| → doug16k joined | 14:35 |
| → Sonderblade joined | 14:36 |
|
Asenar
| you can also add *.bak > .gitignore | 14:36 |
| ← MoziM left | 14:37 |
|
cYmen
| How do I pull over a file from a different branch? | 14:37 |
|
Asenar
| a file ? not a commit ? | 14:37 |
|
nikivi
| Asenar That will stop tracking new .bak files. But old ones will still be tracked, no? | 14:37 |
|
Asenar
| yes | 14:37 |
|
rafasc
| cYmen: git checkou <commit> -- file | 14:38 |
|
Asenar
| no, in fact adding them in .bak will make git ignore all untracked files that ends by .bak | 14:38 |
| ← flaviodesousa left | 14:38 |
|
Asenar
| So they will not appear when you `git status` | 14:38 |
|
rafasc
| cYmen: $git show commit:file > newfile; also works | 14:38 |
|
Asenar
| unless `git status --ignored` | 14:38 |
| → cdg joined | 14:39 |
| ← rajpratik71 left | 14:39 |
| → MoziM joined | 14:39 |
| ← MurkyLizard left | 14:41 |
| ← dpl left | 14:42 |
| → rajpratik71 joined | 14:42 |
| → bwn joined | 14:43 |
| ← czart__ left | 14:44 |
| ← rajpratik71 left | 14:47 |
| ← RougeR left | 14:47 |
| → rajpratik71 joined | 14:49 |
|
Asenar
| nikivi, if you want to remove them from the whole history, you might want to use git filter-branch rm file (but do it carefully as the command will delete the files) | 14:50 |
|
nikivi
| I just wanted to remove them from HEAD | 14:50 |
|
| I think it worked | 14:50 |
| ← tvale left | 14:50 |
| ← fission6 left | 14:52 |
| → madewokherd joined | 14:52 |
| ← kuzyn left | 14:52 |
| → tvale joined | 14:52 |
| → Testerbit joined | 14:53 |
| → NerdyPepper joined | 14:53 |
|
cYmen
| rafasc: thx | 14:53 |
| ← pfleck left | 14:54 |
| pfleck1 → pfleck | 14:54 |
|
Testerbit
| I'm trying to ignore all contents of a subdirectory(/src/semantic) it's contents using `/src/semantic/**` and `/src/semantic/**/*` and it's not working. How can I ignore this subdirectory and it's contents? | 14:54 |
| → nostrora joined | 14:55 |
|
osse
| How do you determine it's not working? | 14:55 |
| → weijin joined | 14:55 |
|
nostrora
| Hi! it's a good idea to share same private and public keys in multiple computer ? Because i want to push from my desktop computer and sometime from my laptop. | 14:55 |
|
| ssh id_rsa keys* | 14:56 |
|
Testerbit
| the files are showing up in unstaged changes | 14:56 |
| → widp joined | 14:57 |
|
osse
| ah | 14:57 |
|
| Testerbit: !ignore_tr | 14:57 |
|
gitinfo
| Testerbit: [!ignore_tracked] Git only applies ignore patterns to untracked files. You can't use ignore patterns to ignore changes to files that are already tracked by git. To remove files only from git, but keeping them on disk, use git rm --cached <file>. Still, see https://gist.github.com/1423106 for ways people have worked around the problem. | 14:57 |
| ← liefer left | 14:57 |
|
Asenar
| Testerbit, `src/semantic/*` is your .gitignore should be enough | 14:57 |
| ← rexan left | 14:57 |
| → liefer joined | 14:58 |
| → rexan joined | 14:58 |
| ← weijin left | 15:00 |
| ← abba left | 15:00 |
| ← nostrora left | 15:01 |
| ← daidoji left | 15:01 |
| → denimsoft joined | 15:02 |
| → fission6 joined | 15:02 |
| ← jay-m left | 15:03 |
| → southernirc joined | 15:04 |
| ← rajpratik71 left | 15:06 |
| ← zefferno left | 15:06 |
| → durham joined | 15:08 |
| ← star_prone left | 15:08 |
| → sleepingdeforest joined | 15:08 |
| → rajpratik71 joined | 15:08 |
| ← markzen left | 15:09 |
| → star_prone joined | 15:09 |
| ← star_prone left | 15:09 |
| ← manuelschneid3r left | 15:10 |
| → al-damiri joined | 15:11 |
| → zeroed joined | 15:12 |
| → raffo joined | 15:13 |
| ← YuGiOhJCJ left | 15:13 |
| ← rajpratik71 left | 15:14 |
| ← jdogherman left | 15:17 |
| ← tkore\w left | 15:19 |
| ← Testerbit left | 15:19 |
| ← tvale left | 15:20 |
| → borkr joined | 15:25 |
| → RougeR joined | 15:26 |
| → weijin joined | 15:27 |
| ← southernirc left | 15:30 |
| ← antfoo left | 15:33 |
| ← agowa338 left | 15:33 |
| ← weijin left | 15:33 |
| → stoopkid joined | 15:33 |
| → menip joined | 15:35 |
| ← menip left | 15:35 |
| → caffeinatedcode joined | 15:36 |
| ← caffeinatedcode left | 15:36 |
| → caffeinatedcode joined | 15:36 |
| ← rexan left | 15:36 |
| ← caffeinatedcode left | 15:38 |
| → akushner joined | 15:40 |
| → cagomez joined | 15:41 |
| ← cagomez left | 15:42 |
| → cagomez joined | 15:42 |
| → applecrumble joined | 15:43 |
| ← akushner left | 15:44 |
| → weijin joined | 15:45 |
| → Oatmeal joined | 15:45 |
| ← phinxy left | 15:45 |
| → caffeinatedcode joined | 15:46 |
| ← caffeinatedcode left | 15:46 |
| → caffeinatedcode joined | 15:46 |
| ← durham left | 15:46 |
| → durham_ joined | 15:46 |
| ← widp left | 15:46 |
| → frem joined | 15:47 |
| → m0viefreak joined | 15:48 |
| → rajpratik71 joined | 15:49 |
| ← weijin left | 15:49 |
| ← rfuentess left | 15:50 |
|
[diecast]
| is there a way to have locally created branches track their origin once pushed? i'm currently editing .git/config and adding the upstream for all my branches. | 15:50 |
|
_ikke_
| [diecast]: git push --set-upstream <remote> <branchname> | 15:51 |
|
| (or -u) | 15:51 |
|
[diecast]
| ok, so add that to my initial push? | 15:51 |
|
_ikke_
| yes | 15:51 |
|
| Later you can also use git branch | 15:51 |
|
[diecast]
| is there any harm in making that an alias in bash? | 15:51 |
|
_ikke_
| No | 15:51 |
| ← ghormoon left | 15:51 |
|
[diecast]
| ok, thank you | 15:51 |
| ← wandering_vagran left | 15:52 |
| → ghormoon joined | 15:53 |
| → noobineer joined | 15:55 |
|
zxd
| Hi | 15:56 |
|
| how do I see the content of the index file stage file | 15:56 |
| → samort7 joined | 15:56 |
|
_ikke_
| zxd: git show :<filename> | 15:56 |
|
samort7
| Can anyone here give me some help with githooks? | 15:56 |
|
_ikke_
| samort7: it usually helps to ask a concrete question | 15:56 |
|
Asenar
| samort7, don't ask if you can ask | 15:57 |
|
| ;) | 15:57 |
|
zxd
| _ikke_: I want to list everything staged | 15:57 |
|
samort7
| i have a post-checkout.rb githook that's very simple: #!/usr/bin/env ruby puts"Hello" | 15:57 |
|
| But when I checkout different branches, it doesn't run | 15:58 |
| ← ProfMac left | 15:58 |
| ← fairuz left | 15:58 |
| ← djb-irc left | 15:58 |
| ← synthroi_ left | 15:58 |
|
_ikke_
| samort7: the hook should be called exactly post-checkout, without extension | 15:58 |
| → djb-irc joined | 15:58 |
|
samort7
| The post-checkout.rb is in my .git/hooks folder | 15:58 |
|
Asenar
| zxd, you want to list files or changes ? `git status` list files that have staged changes. maybe `git diff --cached` is what you want. | 15:58 |
|
samort7
| _ikke_ ah ok. I removed the extension and it still doesnt work | 15:59 |
|
| Is there something wrong with my path maybe? | 15:59 |
| → ProfMac joined | 15:59 |
|
Asenar
| samort7, rename it to post-checkout, don't forget to chmod +x to allow execution (and check the shebang is correct, just in case ) | 15:59 |
| ← jready left | 16:00 |
|
Asenar
| and _ikke already answered ↑ | 16:00 |
|
zxd
| _ikke_: I didn't know about this :<filename> colon syntax where can I read about it | 16:00 |
|
samort7
| oops staff meeting brb | 16:00 |
|
zxd
| git show --help dosen't say | 16:00 |
| → jready joined | 16:00 |
|
zxd
| Asenar: all files staged, either from commit or that have been added with git add | 16:00 |
| ← jready left | 16:00 |
| → phinxy joined | 16:01 |
| → jready joined | 16:01 |
| ← dimi1979 left | 16:01 |
|
Asenar
| so you want all files known by git ? | 16:01 |
|
zxd
| Asenar: I guess from current commit and added with git add | 16:01 |
|
Asenar
| `git status` is not enough for you ? | 16:02 |
|
zxd
| Asenar: :) | 16:02 |
|
rafasc
| zxd: git help revisions | 16:03 |
|
| is the place where you can read about the :path | 16:03 |
|
zxd
| does git pull remove non committed files but that were staged? | 16:03 |
|
_ikke_
| zxd: no | 16:03 |
|
zxd
| it warns to commit first to not lose changes correct? | 16:03 |
|
_ikke_
| yes | 16:04 |
| → devxxx joined | 16:04 |
|
devxxx
| hey i have a branch that i want to make the master branch, and discard all commits made on the master branch | 16:05 |
|
| is this possible? | 16:05 |
|
Asenar
| git pull is (by default) like «git fetch + git merge» : git fetch just «check» the remote repository. git merge do a merge. So to prevent loosing local work, if some files are modified you get the warning | 16:05 |
|
zxd
| I am just playing with git reset --hard , I noticed it dosen't delete files that weren't staged but if I did add something with 'git add' and didn't commit git reset --hard will remove it | 16:05 |
|
osse
| devxxx: git branch -M master | 16:05 |
| → weijin joined | 16:05 |
|
osse
| When you're on your chosen branch | 16:05 |
|
Asenar
| nice trick I didn't know Osse, thanks ! | 16:06 |
| → tarkus joined | 16:06 |
| → itsdennian joined | 16:07 |
|
Asenar
| zxd, git reset --hard works only for file previously added or commited. To remove untracked file, you can use git clean | 16:07 |
|
devxxx
| i'm on the master branch now... i cannot push though because of 'multiple streams' | 16:07 |
|
| fatal: The current branch master has multiple upstream branches, refusing to push. | 16:07 |
|
_ikke_
| note that master is not special, it's just a branchname | 16:07 |
| → kuzyn joined | 16:08 |
|
devxxx
| now it's trying to merge, osse | 16:08 |
|
| well that fucked up everything | 16:09 |
|
Asenar
| devxxx, so it was a wrong question | 16:09 |
| ← weijin left | 16:10 |
| ← rajpratik71 left | 16:10 |
|
Asenar
| What do you really want to do ? | 16:10 |
| ← Sonderblade left | 16:11 |
|
devxxx
| now i want to fix everything first | 16:11 |
|
Asenar
| If you want to push your «new» master branch to a remote repository, and discard all other changes, you also need to do `git push -f` | 16:11 |
|
| what is the exact error message? | 16:12 |
|
| devxxx | 16:12 |
| → rajpratik71 joined | 16:12 |
| ← ProfMac left | 16:13 |
| → ProfMac joined | 16:15 |
| → johnflux joined | 16:15 |
| ← rajpratik71 left | 16:16 |
|
devxxx
| this is confusing | 16:16 |
| → Mutter joined | 16:16 |
|
devxxx
| it's completely detached from the main branch | 16:16 |
| → weijin joined | 16:16 |
|
devxxx
| locally it says master is another branch after doing a clone | 16:17 |
|
osse
| My command forcefully renames the current branch to master, which accomplishes your goal. | 16:17 |
|
devxxx
| fatal: The current branch master has multiple upstream branches, refusing to push. | 16:17 |
|
Asenar
| first of all, if you want to be again or your previous branch, you can do `git branch -m oldbranchname` | 16:17 |
|
devxxx
| so now after renaming my branch to master, i cannot push | 16:18 |
| → Sonderblade joined | 16:18 |
| ← borkr left | 16:18 |
|
Asenar
| «multiple upstream branch» is beacause you have more than one remote repository defined | 16:18 |
| → testnick123 joined | 16:18 |
|
devxxx
| i can't do that cuse it's trying to merge | 16:18 |
|
Asenar
| check the output of `git remote -v` | 16:18 |
| → rajpratik71 joined | 16:18 |
|
osse
| Asenar: That's not necessarily what it means | 16:19 |
| → Abbott joined | 16:19 |
|
osse
| devxxx: Edit .git/config . The section corresponding to the master branch probably has more than one "merge" entry | 16:19 |
| ← Mutter left | 16:19 |
|
Abbott
| I'm trying to squash around 30 commits, but when I run `git rebase -i HEAD~30` I get: "fatal: Needed a single revision\ninvalid upstream HEAD~30" | 16:20 |
|
devxxx
| is there no way to make master another branch? | 16:20 |
|
| without having to deal with this merge bs? cuse there will obviously be merge issues | 16:20 |
|
Asenar
| mhhhh… this is either that, either `git branch -vv` which have several remote matching «master» (which is in fact probably the case due to the renaming) | 16:20 |
| ← tarkus left | 16:20 |
|
devxxx
| i cannot make any other branch master without merge? | 16:20 |
|
osse
| In hindsight it would probably have been better to delete master beforehand running my suggested command, sorry | 16:20 |
|
| There is no merging here | 16:21 |
| ← weijin left | 16:21 |
| ← noobineer left | 16:21 |
|
Asenar
| This might be fixed by `git branch --unset-upstream master` then `git branch -u origin master` | 16:22 |
| → \void joined | 16:22 |
| → rvgate joined | 16:23 |
|
devxxx
| see i don't know what those commands do | 16:24 |
| → synthroid joined | 16:24 |
|
devxxx
| git is completely counter-intuitive | 16:24 |
| ← rvgate left | 16:24 |
|
Asenar
| -u stands for --set-upstream | 16:25 |
| → rvgate joined | 16:25 |
| ← rvgate left | 16:26 |
|
Asenar
| when you do `git push` from the master branch, there is implicit values, the complete command is `git push origin master:master`. That means «push to the remote «origin» my local branch «master» and update the remote branch «master» | 16:26 |
| → energizer joined | 16:28 |
| ← cstratak left | 16:29 |
|
Asenar
| Theses links are defined in your .git/config file. Because of the command `git branch -M master`, your configuration has been updated, and contains an invalid line. | 16:29 |
|
| so devxxx you can either edit your .git/config file, find the section [branch "master"] and remove the wrong lines | 16:30 |
| → lpapp__ joined | 16:31 |
|
lpapp__
| hi, is there a way to run git branch --contains without cloning a remote repo? | 16:32 |
| ← seschwar left | 16:32 |
|
lpapp__
| git ls-remote ssh://gitserver/Git/myrepo.git -> does not give the branches so. | 16:32 |
|
Asenar
| either unset all upstream linked to master branch, then put the right one | 16:32 |
|
| devxxx, maybe this will help you to understand : http://vpaste.net/bh6fb | 16:33 |
| ← rajpratik71 left | 16:33 |
| → kfoonamalik joined | 16:33 |
| ← ioc_ left | 16:34 |
|
Asenar
| Abbott, maybe HEAD^30 works better ? | 16:34 |
|
dalias
| i suspect the problem is complex merges in the window abbott is trying to squash down | 16:35 |
|
| not sure how rebase works when some commits in base..HEAD have ancestors which are not descendants of base | 16:36 |
| → rajpratik71 joined | 16:36 |
| → muelleme joined | 16:37 |
| → weijin joined | 16:37 |
|
dalias
| it's easy to make an inextricable mess with merge commits unless you're careful only to merge at points of complete unrelated changes | 16:37 |
|
| constantly merging a colleague's wip changes back and forth will yield a mess | 16:37 |
| ← zeroed left | 16:38 |
| ← fission6 left | 16:39 |
| → peacememories joined | 16:39 |
| ← jready left | 16:40 |
| ← weijin left | 16:41 |
| → Darcidride joined | 16:43 |
| ← rajpratik71 left | 16:43 |
| ← joekeilty left | 16:44 |
| → rajpratik71 joined | 16:46 |
| ← testnick123 left | 16:47 |
| ← peacememories left | 16:48 |
| → Mattiaslndstrm joined | 16:50 |
| → qouwse joined | 16:50 |
| ← IanLiu left | 16:52 |
| → weijin joined | 16:54 |
| → kgrimes joined | 16:55 |
| → testnick123 joined | 16:55 |
| ← kurkale6ka left | 16:55 |
| ← kgrimes left | 16:56 |
| → sabu joined | 16:57 |
| → immune2iocane joined | 16:57 |
| ← venmx left | 16:58 |
| → kgrimes joined | 16:58 |
| ← sabu left | 16:58 |
|
denimsoft
| reset soft over the merge base and then do a new commit | 16:58 |
| ← muelleme left | 16:59 |
| → rexan joined | 16:59 |
| ← weijin left | 16:59 |
|
denimsoft
| git reset --soft $(git merge-base origin/master HEAD); git commit -m 'squashed commit' | 16:59 |
| ← rajpratik71 left | 17:00 |
| ← bertschneider left | 17:01 |
| ← stutter_ left | 17:01 |
| ← Anthaas left | 17:01 |
| → itsdenni_ joined | 17:01 |
| ← m0viefreak left | 17:01 |
| → rajpratik71 joined | 17:02 |
| ← djb-irc left | 17:02 |
|
Abbott
| so I can put * and !exceptionfile in a .gitignore to say "ignore everything except exceptionfile." But when I am listing files in a subdirectory, would I do subdirectory/!exceptionfile or !subdirectory/exceptionfile | 17:03 |
|
gitinfo
| [!filter_subdirectory] You can use filter-branch's subdirectory filter to split a directory from an existing repository into a new repository, keeping all history. https://help.github.com/articles/splitting-a-subfolder-out-into-a-new-repository/ | 17:03 |
|
Abbott
| my bad lol | 17:03 |
| → akushner joined | 17:04 |
| ← denimsoft left | 17:04 |
| ← itsdennian left | 17:04 |
| ← Asenar left | 17:04 |
| → tarkus joined | 17:05 |
| → _sjs joined | 17:09 |
| → sammyg joined | 17:09 |
| ← Sonderblade left | 17:09 |
| → g00s joined | 17:10 |
| ← rajpratik71 left | 17:10 |
|
samort7
| _ikke_ & Asenar - I got it to work thanks to your help! Thank you! | 17:11 |
| ← kuzyn left | 17:11 |
| → synthroi_ joined | 17:12 |
| ← synthroi_ left | 17:12 |
| → piggah joined | 17:12 |
| ← synthroid left | 17:12 |
| → synthroid joined | 17:13 |
| ← dmone left | 17:13 |
| → rajpratik71 joined | 17:13 |
| → weijin joined | 17:13 |
| ← akushner left | 17:15 |
| → evgie joined | 17:17 |
| ← weijin left | 17:18 |
| ← evgie left | 17:18 |
| → vvug joined | 17:18 |
|
vvug
| Hello. Does tagging a commit also tags the currently checked out submodule HEADs? | 17:19 |
| ← ertes-w left | 17:19 |
|
grawity
| no, only if the commit references them | 17:19 |
|
vvug
| grawity: thanks. And how can I reference them in a commit? | 17:21 |
|
grawity
| while in the parent repo, you just `git add` the submodule dirs and commit | 17:21 |
| → bertschneider joined | 17:22 |
|
vvug
| fine, thanks grawity | 17:22 |
| ← itsdenni_ left | 17:23 |
| → kuzyn joined | 17:23 |
| → weijin joined | 17:24 |
| → FOBABS joined | 17:25 |
| ← rajpratik71 left | 17:25 |
| → synthroi_ joined | 17:26 |
| → fission6 joined | 17:27 |
| → rajpratik71 joined | 17:28 |
| → pfleck1 joined | 17:28 |
| ← rajpratik71 left | 17:28 |
| ← synthroid left | 17:28 |
| → synthro__ joined | 17:28 |
| ← weijin left | 17:29 |
| → synthroid joined | 17:29 |
| ← synthroi_ left | 17:29 |
| → synthroi_ joined | 17:30 |
| ← synthroi_ left | 17:30 |
| ← synthro__ left | 17:30 |
|
aspiers
| is git show --format=%P supposed to be identical to git show --format=format:%P at all times? | 17:30 |
| → synthroi_ joined | 17:31 |
|
aspiers
| because it prints an extra newline for me | 17:31 |
| ← ProfMac left | 17:32 |
| → synthro__ joined | 17:32 |
| → dimi1979 joined | 17:33 |
| → stutter_ joined | 17:33 |
| ← synthroid left | 17:34 |
| → ProfMac joined | 17:34 |
| ← synthroi_ left | 17:35 |
| → synthroid joined | 17:35 |
| ← vvug left | 17:36 |
| ← Gurkenglas_ left | 17:36 |
| ← synthro__ left | 17:36 |
| → muelleme joined | 17:36 |
| ← floppydh left | 17:37 |
|
aspiers
| is there a better way to count a commit's parents than git show -s --format=%P $1 -- | sed 's/ /\n/g' | wc -l ? | 17:37 |
|
| that seems like an ugly hack | 17:37 |
| → scarabx joined | 17:38 |
| → IanLiu joined | 17:39 |
| ← scarabx left | 17:40 |
| ← LichtMacher left | 17:41 |
| → dviola joined | 17:41 |
| ← escproxy left | 17:42 |
| ← muelleme left | 17:42 |
|
Whiskey
| How do i marege a git brench whit my master ? | 17:42 |
| → Bobdude joined | 17:44 |
| → escproxy joined | 17:44 |
|
grawity
| aspiers: fyi, wc stands for "word count" and your `| sed 's/ /\n/g' | wc -l` is no better than just `| wc -w` | 17:45 |
| → jay-m joined | 17:45 |
| ← flying_sausages left | 17:46 |
|
aspiers
| grawity: oh yeah, nice point :) | 17:46 |
|
grawity
| you can do `git rev-parse $1^@ | wc -l` if you want | 17:46 |
| → flying_sausages joined | 17:46 |
| → Fernando-Basso joined | 17:46 |
|
aspiers
| grawity: that's even shorter than | xargs -n1 | wc -l | 17:46 |
| ← Hello71 left | 17:47 |
| ← flying_sausages left | 17:47 |
| → flying_sausages joined | 17:48 |
|
aspiers
| ok, the ^@ trick wins :) | 17:48 |
|
| grawity: thanks, both awesome tips! | 17:48 |
| ← kuzyn left | 17:49 |
| → Singmyr joined | 17:50 |
| → LichtMacher joined | 17:50 |
| ← rexan left | 17:50 |
| → Hello71 joined | 17:51 |
| → akushner joined | 17:52 |
| → synthroi_ joined | 17:52 |
| → weijin joined | 17:53 |
| ← FOBABS left | 17:54 |
| ← emg left | 17:56 |
| ← synthroid left | 17:56 |
| ← frem left | 17:56 |
| ← thebope left | 17:57 |
| ← weijin left | 17:57 |
| ← testnick123 left | 17:57 |
| ← synthroi_ left | 17:59 |
| → synthroid joined | 18:00 |
| ← ProfMac left | 18:00 |
| → emg joined | 18:00 |
| → ibiam joined | 18:01 |
| ← ibiam left | 18:01 |
| → ibiam joined | 18:01 |
|
rafasc
| aspiers rev-parse has --count | 18:02 |
|
| at least recent versions do. | 18:02 |
|
aspiers
| I guess I'm out of date then | 18:02 |
|
| 2.16.1 doesn't AFAICS | 18:02 |
|
rafasc
| forget that | 18:03 |
| ← pfleck left | 18:03 |
| pfleck1 → pfleck | 18:03 |
|
rafasc
| was thinking about rev-list | 18:03 |
| → synthroi_ joined | 18:03 |
|
aspiers
| np ;-) | 18:03 |
| ← phluks left | 18:03 |
| → Cavallari joined | 18:04 |
| → Arcaelyx joined | 18:04 |
| ← beerdrop left | 18:04 |
| → royal_screwup21 joined | 18:05 |
| → synthro__ joined | 18:05 |
| ← synthroid left | 18:05 |
|
royal_screwup21
| does the concept of left-sided or right-sided merge hold in git? For instance, if I'm on branch test and I want to merge test with master. If I do git merge master -- does that merge my test branch into master, or will it merge master into test? | 18:07 |
| → testnick123 joined | 18:07 |
| → crose joined | 18:07 |
|
royal_screwup21
| naw never mind | 18:08 |
|
| just realized git merge master vs git merge test will have the same effect | 18:08 |
| ← synthroi_ left | 18:09 |
| → koala_man joined | 18:09 |
|
koala_man
| how do I change the date of a tag? | 18:09 |
|
aspiers
| I think you have to delete it and recreate | 18:10 |
| → synthroid joined | 18:11 |
| ← kneeki left | 18:11 |
|
ibiam
| royal_screwup21, git merge master when your current branch is test merges master into test and the reverse is the same | 18:11 |
|
koala_man
| oh duh, I set GIT_COMMITTER_DATE but didn't export it :| | 18:11 |
| → Sasazuka joined | 18:11 |
| ← ibiam left | 18:12 |
| ← synthroid left | 18:13 |
| ← jonno112 left | 18:13 |
| ← synthro__ left | 18:13 |
| ← Cavallari left | 18:13 |
| → synthroid joined | 18:13 |
| → synthroi_ joined | 18:14 |
| → ibiam joined | 18:14 |
| ← dimi1979 left | 18:15 |
| → jwest joined | 18:15 |
| ← sauvin left | 18:16 |
| ← tymczenko left | 18:17 |
| ← synthroid left | 18:18 |
| → beerdrop joined | 18:19 |
| → sammyg2 joined | 18:21 |
| ← qqx left | 18:21 |
| → qqx joined | 18:22 |
| sammyg → Guest98113 | 18:22 |
| ← testnick123 left | 18:24 |
| ← synthroi_ left | 18:25 |
| ← Guest98113 left | 18:25 |
| → synthroid joined | 18:26 |
| sammyg2 → sammyg | 18:26 |
| → weijin joined | 18:27 |
| → Phylock joined | 18:29 |
|
rafasc
| aspiers: $git rev-list --no-walk --count HEAD^@ | 18:30 |
| → muelleme joined | 18:31 |
| ← weijin left | 18:31 |
| → Sasazuka__ joined | 18:31 |
| ← Sasazuka left | 18:32 |
|
rafasc
| rev-list can do it after all | 18:33 |
| ← bertschneider left | 18:34 |
| ← ibiam left | 18:34 |
| → cdg_ joined | 18:35 |
| ← cdg_ left | 18:35 |
| ← dreiss left | 18:35 |
| → ibiam joined | 18:35 |
| ← ibiam left | 18:35 |
| → cdg_ joined | 18:35 |
| → weijin joined | 18:35 |
| → ibiam joined | 18:36 |
|
royal_screwup21
| "git merge <branchname> -X theirs" is so handy! | 18:36 |
| ← ibiam left | 18:36 |
| → synthroi_ joined | 18:37 |
| → ibiam joined | 18:37 |
| → tymczenko joined | 18:37 |
| ← firegurafiku left | 18:37 |
| ← cdg left | 18:38 |
| → Narrat joined | 18:39 |
| ← tymczenko left | 18:39 |
| ← cdg_ left | 18:39 |
| ← synthroid left | 18:39 |
| ← weijin left | 18:40 |
| → zeddymac joined | 18:41 |
| → ProfMac joined | 18:41 |
| ← samort7 left | 18:41 |
| ← RougeR left | 18:41 |
| → kneeki joined | 18:42 |
| ← Darcidride left | 18:42 |
| ← zeddymac left | 18:42 |
| → hbautista joined | 18:42 |
| → synthroid joined | 18:43 |
| → pfleck1 joined | 18:46 |
| ← synthroi_ left | 18:47 |
| → jottr joined | 18:47 |
| → ioc_ joined | 18:48 |
| → hugdru joined | 18:51 |
| → borkr joined | 18:52 |
| ← ibiam left | 18:52 |
| → ibiam joined | 18:53 |
| ← Bobdude left | 18:53 |
| ← Phylock left | 18:54 |
| → Phylock joined | 18:55 |
| → iliakan joined | 18:59 |
| → adrian_1908 joined | 18:59 |
| gitinfo set mode: +v | 18:59 |
|
iliakan
| Hi | 18:59 |
|
| Is it possible that a rebase does not have conflicts, while merge has them? | 18:59 |
| → KeyJoo joined | 19:00 |
| → alexpainen joined | 19:00 |
| → ailaG joined | 19:01 |
| ← infinisil left | 19:01 |
| → MurkyLizard joined | 19:01 |
| ← MurkyLizard left | 19:02 |
|
ailaG
| Hi, I have an existing repo with code, and someone downloaded the files and extended upon them, without cloning. But it should be a new “commit”. How would you go about merging that into the repo? init then branch then merge on the server? Just init then pull, commit, push? | 19:03 |
| ← alexpainen left | 19:03 |
| → weijin joined | 19:03 |
|
cbreak
| ailaG: git checkout -b tmp basecommit | 19:03 |
|
| ailaG: where basecommit is a commit that contains the file version that was copied | 19:04 |
| ← piggah left | 19:04 |
|
cbreak
| then replace the file with the modified version, commit | 19:04 |
|
| then you can merge that branch as normal | 19:04 |
| → synthroi_ joined | 19:05 |
| ← synthroi_ left | 19:05 |
| ← b4dger left | 19:06 |
| → synthroi_ joined | 19:07 |
| ← synthroi_ left | 19:07 |
| ← synthroid left | 19:07 |
| ← weijin left | 19:07 |
| → synthroid joined | 19:07 |
| ← Tryx left | 19:08 |
| → synthroi_ joined | 19:08 |
| ← synthroi_ left | 19:10 |
| ← synthroid left | 19:10 |
| → bertschn_ joined | 19:10 |
| ← kneeki left | 19:10 |
| → synthroid joined | 19:10 |
| → rexan joined | 19:10 |
|
rafasc
| iliakan: The rebase vs merge is not a thing to prevent conflicts. It's about writing history. | 19:10 |
| → zumba_addict joined | 19:12 |
| → alexpainen joined | 19:12 |
| → goodafternoon joined | 19:12 |
| ← goodafternoon left | 19:12 |
|
ailaG
| cbreak: Thanks. So basically check out origin/master into another branch then merge it into the new code then | 19:12 |
| ← bertschn_ left | 19:13 |
|
cbreak
| if that's where it came from, sure | 19:13 |
|
ailaG
| It’s a tiny project with a single developer who I’m replacing now | 19:13 |
| → iliakan|2 joined | 19:13 |
| → bertschneider joined | 19:14 |
| → ICanHazShell joined | 19:14 |
|
ailaG
| 5 php files | 19:14 |
| ← ICanHazShell left | 19:14 |
| ← iliakan left | 19:14 |
|
ailaG
| And a couple of static files | 19:14 |
|
cbreak
| yeah, then it's easy | 19:14 |
|
| you don't even need to create a new branch | 19:14 |
| → infinisil joined | 19:15 |
| ← synthroid left | 19:15 |
|
ailaG
| I’m guessing that 4 lines have changed, I just want to do it right because I’m not completely sure what the prev. developer did | 19:15 |
| ← jottr left | 19:16 |
| ← Gianormagantrous left | 19:16 |
| → Gianormagantrous joined | 19:17 |
| → goodafternoon joined | 19:17 |
| ← goodafternoon left | 19:17 |
| ← muelleme left | 19:17 |
| ← LichtMacher left | 19:18 |
| → tunekey joined | 19:18 |
| → theology joined | 19:19 |
| → rkta joined | 19:19 |
| → boomshankerx joined | 19:20 |
| → sleepingforest joined | 19:21 |
| ← sleepingdeforest left | 19:24 |
| ← boomshankerx left | 19:24 |
| ← zumba_addict left | 19:25 |
| → zumba_addict joined | 19:25 |
| → xaxxon joined | 19:26 |
|
zumba_addict
| i git rebase and i ran git rebase --continue Now it's saying "mark them as resolved using git add". I ran git add then git commit then finally git push -u -f. It just said "Branch new-deployment set up to track remote branch new-deployment from origin." | 19:26 |
| ← bwn left | 19:26 |
|
zumba_addict
| it also said "Everything up-to-date" | 19:26 |
| ← rexan left | 19:26 |
|
zumba_addict
| I went to my merge request but my code is still old one | 19:26 |
|
_ikke_
| zumba_addict: did you finish the rebase? | 19:27 |
|
zumba_addict
| i ran git commit too | 19:27 |
|
| what command I missed? | 19:28 |
|
_ikke_
| git rebase --continue after the commit? | 19:28 |
|
| zumba_addict: what does git status say? | 19:28 |
|
zumba_addict
| ah, it says again git rebase --continue | 19:28 |
|
| No changes - did you forget to use 'git add'? | 19:28 |
|
_ikke_
| right, so the rebase wasn't finished yet, so you push the old branch that hasn't moved yet | 19:28 |
|
zumba_addict
| oh, what should I do now? | 19:28 |
|
_ikke_
| zumba_addict: because you already comitted, probably git rebase --skip | 19:29 |
|
zumba_addict
| ok | 19:29 |
|
| it just went back to the prompt | 19:29 |
|
_ikke_
| zumba_addict: what does git status say now? | 19:29 |
|
zumba_addict
| it says "Your branch and 'origin/new-deployment' have diverged," | 19:29 |
|
_ikke_
| right | 19:29 |
| → maks_ joined | 19:29 |
|
zumba_addict
| git log shows the newest commit i used | 19:30 |
|
| do I git push -f again now? | 19:30 |
| → piggah joined | 19:31 |
|
_ikke_
| yes | 19:31 |
|
zumba_addict
| I think I should do that to overwrite it | 19:31 |
|
| oh cool. thanks | 19:31 |
| ← raynold left | 19:32 |
|
zumba_addict
| what was the wrong step I did earlier? | 19:33 |
|
_ikke_
| zumba_addict: you did not finish the rebase, after git add, you could've just run git rebase --continue again | 19:33 |
|
zumba_addict
| ah, got it | 19:34 |
|
| here is what I did. I fixed conflicts and I ran git rebase --continue | 19:34 |
|
| i didn't run git add | 19:34 |
| → kneeki joined | 19:35 |
|
zumba_addict
| then I ran git status and I saw " No changes - did you forget to use 'git add'?" | 19:35 |
|
_ikke_
| right | 19:35 |
| → jottr joined | 19:35 |
|
zumba_addict
| I ran git add then git commit, then git push :D | 19:35 |
| → jungsubk joined | 19:36 |
| → anotherone joined | 19:36 |
|
anotherone
| hey guys | 19:36 |
|
gitinfo
| anotherone: 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. | 19:36 |
|
zumba_addict
| but looks like after git add, i should run git rebase --continue then git commit. RIght? | 19:36 |
| → jottr_ joined | 19:36 |
| → bwn joined | 19:36 |
|
anotherone
| i get "Permission denied (publickey)." - "Could not read from remote repository" | 19:36 |
|
| i cloned the repository it seams to work fine | 19:36 |
|
| i also set the url | 19:37 |
| → jnavila joined | 19:37 |
|
_ikke_
| zumba_addict: no need to run git commit | 19:37 |
|
| zumba_addict: git rebase takes care of that | 19:37 |
| ← cagomez left | 19:37 |
| → fr33domlover joined | 19:37 |
|
anotherone
| is it possible that a repository uses a different ssh key? | 19:37 |
| → VoradorPT joined | 19:37 |
|
_ikke_
| anotherone: no | 19:37 |
| ← sammyg left | 19:37 |
|
_ikke_
| anotherone: the key allows you to login to ssh | 19:37 |
| → cagomez joined | 19:38 |
|
anotherone
| i don't understand what could be the issue | 19:38 |
|
_ikke_
| anotherone: what kind of server is this? | 19:38 |
|
anotherone
| bitbucket | 19:38 |
| → permalink joined | 19:39 |
|
_ikke_
| anotherone: do you have access to that project? | 19:39 |
| → weijin joined | 19:39 |
| ← jottr left | 19:39 |
|
anotherone
| yes im sure so what could be i could not push with https so i decided to change to ssh don't know why i didn't use this before | 19:40 |
|
| so i did "git set-url remote ...." | 19:40 |
| → star_prone joined | 19:40 |
|
anotherone
| i also use gitflow but don't know if that should be an issue | 19:42 |
|
_ikke_
| nope | 19:42 |
| ← cagomez left | 19:43 |
|
anotherone
| im 100% sure ive added the ssh key to bitbucket i also was able to clone the repository with it and with that repository i am alos able to push | 19:43 |
|
_ikke_
| anotherone: try ssh -T [email@hidden.address] | 19:43 |
|
anotherone
| logged in as ... | 19:44 |
|
| You can use git org hg to connect to Bitbucket... | 19:44 |
|
| Shell access is disable | 19:44 |
| ← weijin left | 19:44 |
|
_ikke_
| Ok, that sounds good | 19:44 |
|
anotherone
| atleast :P | 19:45 |
| → duderonomy joined | 19:45 |
|
anotherone
| could it be a issue that i did the last commit with https configured and now try to push it with ssh ? | 19:46 |
|
| no right? | 19:46 |
|
_ikke_
| nope | 19:46 |
| → weijin joined | 19:46 |
|
_ikke_
| I think you should ask bitbucket, they can give you more accurate help | 19:46 |
| → rexan joined | 19:48 |
|
zumba_addict
| cool | 19:48 |
|
anotherone
| i would copy the whole folder to the cloned repository but this want be good for the history and so i guess | 19:48 |
|
| but don't you have any idea | 19:48 |
|
_ikke_
| well, the basics are working, your ssh key is giving you access to bitbucket | 19:48 |
|
| after that, it's bitbuckets code that decides whether you have access | 19:49 |
|
| I don't have insight in that | 19:49 |
| ← adrian_1908 left | 19:49 |
| ← weijin left | 19:50 |
| → skered joined | 19:52 |
| ← tarkus left | 19:54 |
| ← kes left | 19:54 |
|
anotherone
| ok i think i know what my mistake was | 19:57 |
|
| just wasted an hour for nothing xD | 19:57 |
|
| git remote set-url should be git remote set-url origin xD | 19:57 |
| → ZexaronS joined | 19:58 |
| ← bertschneider left | 19:59 |
| ← ecuanaso left | 20:01 |
| → Emperor_Earth joined | 20:01 |
| → manuelschneid3r joined | 20:03 |
| → firegurafiku joined | 20:03 |
| → steven joined | 20:04 |
| → dpyro joined | 20:05 |
| → bertschneider joined | 20:05 |
| → phluks joined | 20:05 |
| ← duderonomy left | 20:07 |
| ← jottr_ left | 20:11 |
| → FilipNortic joined | 20:13 |
| ← jungsubk left | 20:14 |
| ← kneeki left | 20:14 |
| ← maks_ left | 20:15 |
| ← FilipNortic_ left | 20:16 |
| → weijin joined | 20:17 |
| ← rexan left | 20:17 |
| ← hph^ left | 20:18 |
| ← ibiam left | 20:20 |
| → kneeki joined | 20:20 |
| ← weijin left | 20:21 |
| ← Mattiaslndstrm left | 20:22 |
| → cagomez joined | 20:22 |
| → Mattiaslndstrm joined | 20:22 |
| ← Olipro left | 20:22 |
| → cdg joined | 20:23 |
|
s17
| an hour for learning -- you're special | 20:23 |
| ← borkr left | 20:23 |
| ← jay-m left | 20:24 |
| ← raymond left | 20:24 |
| ← anotherone left | 20:26 |
| → dwmw2_gone joined | 20:26 |
| → Olipro joined | 20:26 |
| Olipro → Guest41553 | 20:27 |
| ← akushner left | 20:27 |
| ← hugdru left | 20:28 |
| → jottr_ joined | 20:29 |
| → jay-m joined | 20:29 |
| → akushner joined | 20:29 |
| ← felixsanz left | 20:31 |
| → cdg_ joined | 20:32 |
| ← Nizumzen left | 20:32 |
| → hph^ joined | 20:32 |
| → kgrimes1 joined | 20:32 |
| ← rafasc left | 20:32 |
| ← akushner left | 20:33 |
| → alexpainen_ joined | 20:33 |
| ← johnflux left | 20:33 |
| ← madewokherd left | 20:34 |
| ← kgrimes left | 20:34 |
| ← cdg left | 20:35 |
| → njbair joined | 20:36 |
| ← ioc_ left | 20:36 |
| → felixsanz joined | 20:37 |
| ← deltam left | 20:37 |
| ← alexpainen left | 20:37 |
| Sasazuka__ → Sasazuka | 20:37 |
| ← manuelschneid3r left | 20:39 |
| → nowhereman_ joined | 20:39 |
| ← cagomez left | 20:41 |
| → thiago joined | 20:41 |
| ← jay-m left | 20:41 |
| → cagomez joined | 20:41 |
| → Bobdude joined | 20:42 |
| ← cagomez left | 20:42 |
| → cagomez joined | 20:42 |
| ← nowhere_man left | 20:43 |
| → renken joined | 20:46 |
| ← applecrumble left | 20:48 |
| ← jonjitsu left | 20:48 |
|
renken
| hello, I'm a newbie and working with git for my first project. I have a question. I did some work on my branch X and my friend then merged his work and mine in branch Y, now I wanna basically overwrite branch X with Y content. can I do it without merging? *i don't want to create a third branch and work on it* | 20:49 |
| ← sanscoeur left | 20:50 |
| → sanscoeur joined | 20:50 |
| ← royal_screwup21 left | 20:51 |
| → jonjitsu joined | 20:52 |
| ← paxri01 left | 20:52 |
| ← alexpainen_ left | 20:53 |
| → weijin joined | 20:54 |
| ← Emperor_Earth left | 20:54 |
| ← cagomez left | 20:55 |
| → cagomez joined | 20:55 |
| ← star_prone left | 20:56 |
| ← Catatronic left | 20:57 |
| → hbautista_ joined | 20:58 |
| ← hbautista left | 20:58 |
| → reprazen_ joined | 20:59 |
| ← reprazent left | 20:59 |
| ← cagomez left | 21:00 |
| → Catatronic joined | 21:00 |
| ← jfr_ left | 21:00 |
| → sammyg joined | 21:01 |
| ← weijin left | 21:02 |
|
cbreak
| renken: why? | 21:03 |
| → jfr joined | 21:03 |
|
renken
| cbreak, what do you mean why? | 21:03 |
|
cbreak
| what's wrong with just merging his branch into yours? | 21:03 |
|
renken
| oh im lazy | 21:04 |
|
cbreak
| it's trivial | 21:04 |
|
renken
| plus merging seems hard | 21:04 |
|
cbreak
| git merge Y | 21:04 |
|
| done | 21:05 |
|
renken
| but i'd need to manually fix conflicts | 21:05 |
|
cbreak
| it should be fast forward unless you made changes since the other merge | 21:05 |
| ← IanLiu left | 21:05 |
|
cbreak
| no conflicts. | 21:05 |
|
renken
| ex: he added his functions before mine. which means conflict at line 25 | 21:05 |
|
cbreak
| he merged your code | 21:06 |
|
| now he has both | 21:06 |
|
| you have nothing he doesn't have | 21:06 |
|
| -> no conflict | 21:06 |
|
| !cs | 21:06 |
|
gitinfo
| "Git for Computer Scientists" is a quick introduction to git internals for people who are not scared by phrases like Directed Acyclic Graph. http://eagain.net/articles/git-for-computer-scientists/ See also !concepts !bottomup | 21:06 |
|
renken
| i'll try so then! | 21:08 |
| → LichtMacher joined | 21:09 |
| → weijin joined | 21:09 |
| ← rokups left | 21:10 |
|
renken
| thank you cbreak. guess I shouldn't be so scared | 21:10 |
| → m0viefreak joined | 21:10 |
| ← jnavila left | 21:10 |
|
cbreak
| renken: if a merge fails, git will tell you | 21:11 |
| → Achylles joined | 21:11 |
|
cbreak
| and you can git merge --abort to give up on it if you want | 21:11 |
|
| there's no danger in trying | 21:11 |
|
| as long as you don't have uncommitted changes :D | 21:11 |
|
| (but you can stash or commit those) | 21:11 |
|
renken
| I need to learn more about merging | 21:11 |
|
| oh no worries, I commit my stuff like CTRL+S :"D | 21:12 |
| ← piggah left | 21:12 |
| ← weijin left | 21:14 |
| ← dviola left | 21:14 |
| → piggah joined | 21:16 |
| ← jonjitsu left | 21:16 |
| ← koala_man left | 21:17 |
| ← sammyg left | 21:17 |
| ← zarzar left | 21:20 |
| ← hph^ left | 21:21 |
| ← yeshurun left | 21:22 |
| → ecuanaso joined | 21:23 |
| → yeshurun joined | 21:25 |
| → raynold joined | 21:27 |
| ← _sjs left | 21:29 |
| ← AndresInSpace left | 21:29 |
|
Sasazuka
| if I have something in git on path /x/y/z - is there some way to do a "git checkout commit -- /x/y/z/foo" from /a | 21:29 |
| ← Mattiaslndstrm left | 21:30 |
|
Sasazuka
| I think I need to manually specify the parent directory | 21:30 |
|
cbreak
| if you want to interact with git, you have to be inside the repository, or specify the repository | 21:30 |
| → weijin joined | 21:30 |
|
Sasazuka
| sounds like the latter? | 21:30 |
|
cbreak
| see --git-dir and --work-tree for the latter | 21:30 |
| ← jottr_ left | 21:31 |
| ← jstimm left | 21:33 |
| → Bonjourm8 joined | 21:33 |
|
Sasazuka
| ahh -C seems to do the trick | 21:34 |
|
| thanks! | 21:34 |
| → einnjo joined | 21:35 |
| ← Achylles left | 21:38 |
| ← weijin left | 21:38 |
| ← thiago left | 21:38 |
| ← permalink left | 21:38 |
| → RougeR joined | 21:39 |
| ← bwn left | 21:39 |
| → dreiss joined | 21:40 |
| → xfbs_ joined | 21:40 |
| ← pfleck1 left | 21:41 |
| ← thxffo left | 21:41 |
| ← piggah left | 21:42 |
| → permalink joined | 21:42 |
| ← hunterlabs left | 21:42 |
| xfbs_ → xfbs | 21:42 |
| ← fission6 left | 21:45 |
| ← staafl__ left | 21:46 |
| xfbs → xfbs-away | 21:46 |
| xfbs-away → xfbs | 21:47 |
| → cagomez joined | 21:48 |
| → chris_wot joined | 21:48 |
| → thxffo joined | 21:48 |
| → hunterlabs joined | 21:48 |
| → Mattiaslndstrm joined | 21:48 |
| → bwn joined | 21:48 |
| ← xfbs left | 21:48 |
| → xfbs joined | 21:49 |
| xfbs → xfbs_ | 21:49 |
| ← xfbs_ left | 21:51 |
| → ferdna joined | 21:52 |
| → navy_seal9614 joined | 21:52 |
| ← stoopkid left | 21:53 |
| ← KeyJoo left | 21:55 |
| ← crose left | 21:56 |
| ← Dougie187 left | 21:59 |
| → fairuz joined | 21:59 |
| ← sanscoeur left | 22:00 |
| ← cagomez left | 22:00 |
| → sanscoeur joined | 22:00 |
| → xfbs_ joined | 22:02 |
| ← emg left | 22:02 |
| ← xfbs_ left | 22:04 |
| → weijin joined | 22:06 |
| → Nizumzen joined | 22:07 |
| → madewokherd joined | 22:10 |
| → mikado joined | 22:10 |
| ← sanscoeur left | 22:11 |
| ← morenoh149 left | 22:11 |
| ← weijin left | 22:11 |
| → shpoont joined | 22:13 |
| → kn-928 joined | 22:13 |
| gitinfo set mode: +v | 22:14 |
|
mikado
| Can you recommend a production-ready git-lfs server for the enterprise? (no full-blown solutions with issue tracking, wiki etc. such as github or gitlab) | 22:14 |
| ← immune2iocane left | 22:14 |
| → star_prone joined | 22:14 |
| ← permalink left | 22:15 |
| → piggah joined | 22:19 |
| ← star_prone left | 22:20 |
| ← firegurafiku left | 22:20 |
| → nowhere_man joined | 22:22 |
| ← nowhereman_ left | 22:22 |
| → satifant joined | 22:23 |
| ← sleepingforest left | 22:24 |
| → permalink joined | 22:24 |
| → GavinMagnus1 joined | 22:27 |
| ← GavinMagnus1 left | 22:27 |
| → UTAN_dev_ joined | 22:30 |
| → jottr_ joined | 22:31 |
| → weijin joined | 22:32 |
| ← tkore left | 22:32 |
| → dedondesta joined | 22:34 |
|
dedondesta
| i'm using gogs, is there a way to autoupdate my dir (do git pull) when someone pushes changes to gogs | 22:35 |
|
nevyn
| lfs? | 22:35 |
|
| gitolite | 22:35 |
|
dedondesta
| i guess it is called auto deploy | 22:36 |
| ← weijin left | 22:37 |
|
nevyn
| eww large file storage.. just no | 22:37 |
|
dedondesta
| ok i found webhooks, thanks | 22:39 |
| → weijin joined | 22:41 |
| ← greggerz left | 22:43 |
| ← fairuz left | 22:43 |
| ← stutter_ left | 22:44 |
| → Puffball joined | 22:45 |
| ← weijin left | 22:46 |
|
mikado
| looking at gitolite right now. What is the problem with large file storage? | 22:46 |
| → th1nkf4st joined | 22:48 |
| → staff0rd joined | 22:48 |
| ← staff0rd left | 22:48 |
| ← phluks left | 22:49 |
|
th1nkf4st
| heyaa, i forked a project on github and its syncd with master, i created a new branch where i will workon but i need to pull a branch(from original repo) to my repo new_branch | 22:50 |
| → cagomez joined | 22:50 |
| ← UTAN_dev_ left | 22:51 |
|
th1nkf4st
| git pull origin master will go to my master i can do something like git pull origin original_repo_branch ? ( this wont work ofc ) but what steps should i do ? | 22:51 |
| ← inovas left | 22:51 |
| ← dsdeiz left | 22:51 |
| → IanLiu joined | 22:52 |
|
th1nkf4st
| whith git show remote_branhc:./path/to/file it show the file that i need to work with | 22:52 |
| → UTAN_dev_ joined | 22:53 |
| gitinfo set mode: +v | 22:54 |
|
UTAN_dev
| Hey all, I can't add a file, yet it doesn't seem to be ignored. https://www.pastery.net/ymtjhf/ A quick look would be much appreciated. | 22:54 |
|
| The file exists / ownership/perms seem OK / another file from that directory was added just fine | 22:54 |
|
| It's a new file, BTW | 22:55 |
| ← fahadash left | 22:55 |
|
th1nkf4st
| have u checked gitignore ? sometimes happenz lol | 22:56 |
| → fairuz joined | 22:56 |
|
stevelitt
| How do I look at, but not touch, the last committed version of a specific file? | 22:57 |
| → threenuc joined | 22:57 |
| ← th1nkf4st left | 22:57 |
|
UTAN_dev
| I did, and also used `git check-ignore includes/request-sanitizer.inc` to make sure I didn;t miss anything | 22:57 |
| ← fairuz left | 22:58 |
| ← Singmyr left | 22:59 |
| → inovas joined | 23:00 |
| ← cagomez left | 23:02 |
| → YuGiOhJCJ joined | 23:03 |
|
cbreak
| stevelitt: git cat-file can do that | 23:03 |
| ← finalbeta left | 23:04 |
| → venmx joined | 23:04 |
| → weijin joined | 23:04 |
| ← venmx left | 23:07 |
| ← newbie|7 left | 23:08 |
| ← \void left | 23:09 |
| ← weijin left | 23:09 |
| ← ecuanaso left | 23:10 |
| → ddda_ joined | 23:10 |
| → KeyJoo joined | 23:11 |
| ← ddda_ left | 23:11 |
| ← xaxxon left | 23:12 |
| → cagomez joined | 23:12 |
| ← kn-928 left | 23:12 |
| → Jitta joined | 23:14 |
| → xaxxon joined | 23:15 |
| ← dedondesta left | 23:15 |
| ← IanLiu left | 23:17 |
| → weijin joined | 23:17 |
| ← raffo left | 23:17 |
| ← mikado left | 23:17 |
| → \void joined | 23:18 |
| ← nixjdm left | 23:19 |
| ← threenuc left | 23:20 |
| → threenuc joined | 23:20 |
| ← Phylock left | 23:20 |
| → akushner joined | 23:20 |
| → Kaisyu joined | 23:21 |
| → denimsoft joined | 23:21 |
| ← schleppel left | 23:22 |
| ← weijin left | 23:22 |
| ← renken left | 23:23 |
| → dviola joined | 23:23 |
| ← UTAN_dev_ left | 23:24 |
| ← _ikke_ left | 23:25 |
| ← dege left | 23:25 |
| → sweeterss joined | 23:27 |
| ← hbautista_ left | 23:29 |
| → Bonjourm8_ joined | 23:29 |
| → weijin joined | 23:31 |
| → _ikke_ joined | 23:32 |
| ← Bonjourm8 left | 23:32 |
| → zaayer joined | 23:33 |
| → UTAN_dev_ joined | 23:34 |
| gitinfo set mode: +v | 23:34 |
| ← weijin left | 23:35 |
| → ecuanaso joined | 23:36 |
| → johnflux joined | 23:37 |
| ← johnflux left | 23:37 |
| → johnflux joined | 23:37 |
| ← shpoont left | 23:38 |
| ← cdg_ left | 23:39 |
| → rain1 joined | 23:42 |
|
rain1
| hi | 23:42 |
| ← Kaisyu7 left | 23:43 |
| ← Bonjourm8_ left | 23:43 |
| → Kaisyu7 joined | 23:44 |
| → Bonjourm8 joined | 23:44 |
| ← Bonjourm8 left | 23:45 |
| → Bonjourm8 joined | 23:45 |
| ← kneeki left | 23:46 |
| → durham joined | 23:49 |
| → weijin joined | 23:51 |
| ← nivag left | 23:51 |
| ← _ikke_ left | 23:52 |
| ← durham_ left | 23:54 |
| ← durham left | 23:54 |
| ← weijin left | 23:55 |
| → RougeT430 joined | 23:57 |
| → _ikke_ joined | 23:58 |