| 2018-05-15 |
| imp → CarGirl | 00:00 |
| ← beefjoe left | 00:01 |
| ← drodger left | 00:02 |
| ← rafasc left | 00:02 |
| ← jelmer left | 00:04 |
| ← Schrostfutz left | 00:04 |
| → jelmer joined | 00:07 |
| ← Neo4 left | 00:10 |
| → adamantium_ joined | 00:10 |
| ← mad_hatter left | 00:12 |
| → drodger joined | 00:13 |
| ← nitric left | 00:13 |
| ← adamantium left | 00:14 |
| adamantium_ → adamantium | 00:14 |
| → epelesis joined | 00:14 |
| → durham_ joined | 00:14 |
| CarGirl → imp | 00:15 |
| ← drodger left | 00:15 |
| → duderonomy joined | 00:16 |
| ← cagomez left | 00:16 |
| ← epelesis left | 00:16 |
| ← Jackneilll left | 00:17 |
| ← durham left | 00:17 |
| → Jackneilll joined | 00:17 |
| → mad_hatter joined | 00:18 |
| → epelesis joined | 00:18 |
| ← exotime left | 00:18 |
| → drodger joined | 00:18 |
| ← ProCycle left | 00:19 |
| ← durham_ left | 00:19 |
| ← thiago left | 00:20 |
| ← ferdna left | 00:20 |
| ← epelesis left | 00:21 |
| ← applecrumble left | 00:21 |
| ← Singmyr left | 00:21 |
| → exotime joined | 00:21 |
| → epelesis joined | 00:22 |
| → cagomez joined | 00:23 |
| → rchavik joined | 00:24 |
| → andyhuzhill joined | 00:24 |
| ← morenoh149 left | 00:24 |
| ← jimmyrcom_ left | 00:25 |
| ← sim590 left | 00:25 |
| → morenoh149 joined | 00:25 |
| → durham joined | 00:26 |
| ← cagomez left | 00:27 |
| ← duderonomy left | 00:29 |
| → durham_ joined | 00:30 |
| ← durham left | 00:31 |
| → camsbury joined | 00:33 |
| ← _aeris_ left | 00:34 |
| → _aeris_ joined | 00:34 |
| → sim590 joined | 00:36 |
| → igemnace joined | 00:38 |
| ← xaxxon left | 00:39 |
| ← a3Dman left | 00:39 |
| ← TomyLobo left | 00:40 |
| ← sim590 left | 00:41 |
| → a3Dman joined | 00:42 |
| → Garen_ joined | 00:44 |
| ← Oatmeal left | 00:45 |
| ← Garen left | 00:46 |
| ← sameerynho left | 00:51 |
| → sim590 joined | 00:51 |
| ← goweol left | 00:52 |
| → goweol joined | 00:52 |
| ← durham_ left | 00:55 |
| ← sim590 left | 00:58 |
| ← Gurkenglas left | 00:59 |
| → sim590 joined | 01:00 |
| → Arcaelyx joined | 01:00 |
| → nevyn joined | 01:00 |
| → duderonomy joined | 01:03 |
| ← Have-Quick left | 01:04 |
| ← Sasazuka left | 01:08 |
| → cagomez joined | 01:10 |
| ← _ADN_ left | 01:11 |
| ← camsbury left | 01:12 |
| ← Puffball left | 01:13 |
| ← cagomez left | 01:15 |
| ← rsrx left | 01:16 |
| ← manuelschneid3r left | 01:19 |
| ← dsdeiz left | 01:21 |
| → dsdeiz joined | 01:22 |
| ← dsdeiz left | 01:22 |
| → dsdeiz joined | 01:22 |
| → celo_0 joined | 01:24 |
| ← dsdeiz left | 01:25 |
| → keep_away joined | 01:25 |
| → gian-carlo joined | 01:26 |
| ← pfleck left | 01:26 |
| → Changhe joined | 01:27 |
| → dsdeiz joined | 01:27 |
| ← dsdeiz left | 01:27 |
| → dsdeiz joined | 01:27 |
| ← morenoh149 left | 01:28 |
| → finalbeta joined | 01:28 |
| → morenoh149 joined | 01:29 |
| ← keep_away left | 01:29 |
| → keep_away joined | 01:29 |
| ← keep_away left | 01:30 |
| → keep_learning joined | 01:31 |
| ← a3Dman left | 01:31 |
| → Oatmeal joined | 01:33 |
| ← jamiejackson left | 01:33 |
| → wreed joined | 01:34 |
| → camsbury joined | 01:35 |
| → anjen joined | 01:36 |
| → jameser joined | 01:36 |
| ← camsbury left | 01:37 |
| ← shinnya left | 01:38 |
| → dreiss joined | 01:38 |
| → jimmyrcom_ joined | 01:39 |
| → a3Dman joined | 01:39 |
| → muelleme joined | 01:42 |
| → arooni_team_b joined | 01:44 |
| → mlopezviedma_ joined | 01:45 |
| ← mlopezviedma left | 01:45 |
| ← ilbot3 left | 01:46 |
| ← muelleme left | 01:47 |
| → thiago joined | 01:47 |
| ← anjen left | 01:48 |
| ← morenoh149 left | 01:51 |
| → smallville7123 joined | 01:52 |
| → livingstn joined | 01:53 |
| ← Mattiaslndstrm left | 01:53 |
| ← Oatmeal left | 01:54 |
| → ilbot3 joined | 01:57 |
| ← egc left | 01:58 |
| → egc joined | 01:59 |
| → camsbury joined | 01:59 |
| ← camsbury left | 01:59 |
| → ArcaTech joined | 02:00 |
| → relipse joined | 02:02 |
| ← arooni_team_b left | 02:02 |
| ← Khisanth left | 02:02 |
| ← Xiti left | 02:04 |
| ← smallville7123 left | 02:04 |
| ← mlopezviedma_ left | 02:05 |
| ← ustekne left | 02:05 |
| → mlopezviedma joined | 02:05 |
| → arooni_team_b joined | 02:07 |
| ← livingstn left | 02:07 |
| → Xiti joined | 02:07 |
| → ferdna joined | 02:09 |
| → houami joined | 02:10 |
| → livingstn joined | 02:10 |
| ← arooni left | 02:13 |
| arooni_team_b → arooni | 02:13 |
| ← houami left | 02:14 |
| ← goweol left | 02:15 |
| → Khisanth joined | 02:15 |
| → Goplat joined | 02:18 |
| → cheater joined | 02:21 |
|
cheater
| hi | 02:21 |
|
| is there a tool that will show me a graph where the horizontal axis is time and on the vertical axis there are different committers, and the graph shows when they committed? | 02:22 |
| → morenoh149 joined | 02:22 |
| ← epelesis left | 02:23 |
| → smallville7123 joined | 02:26 |
| ← livingstn left | 02:26 |
| ← morenoh149 left | 02:27 |
| ← Changhe left | 02:28 |
| ← relipse left | 02:28 |
| → lagothrix joined | 02:31 |
| ← tchan left | 02:34 |
| ← lagothri2 left | 02:35 |
| ← wreed left | 02:36 |
| ← Praxi left | 02:37 |
| → goweol joined | 02:37 |
| → smallville7123_ joined | 02:40 |
| ← goweol left | 02:41 |
|
karstensrage
| cheater, have you tried git gui? | 02:42 |
| ← smallville7123 left | 02:42 |
|
cheater
| i use git gui, but i don't think it has that option? | 02:42 |
|
karstensrage
| ok just suggesting if you hadnt tried it it might have something of value | 02:43 |
|
| other than that i dont know of anything that does that | 02:43 |
| ← adamantium left | 02:43 |
| → livingstn joined | 02:45 |
| → BallChang-CN joined | 02:47 |
| ← smallville7123_ left | 02:47 |
| ← linuxmodder left | 02:51 |
| → linuxmodder joined | 02:53 |
| → epelesis joined | 02:54 |
| → smallville7123 joined | 02:55 |
| ← epelesis left | 02:56 |
| ← YuGiOhJCJ left | 02:57 |
|
cjohnson
| github's contributors page does this | 02:58 |
| → vdamewood joined | 03:00 |
| → orbyt_ joined | 03:01 |
| ← smallville7123 left | 03:04 |
| ← crimson_king left | 03:05 |
| → crimson_king joined | 03:06 |
| → sanscoeur joined | 03:07 |
| ← vdamewood left | 03:09 |
| ← m00sehead left | 03:10 |
| ← a3Dman left | 03:14 |
| ← crimson_king left | 03:14 |
| ← NinjaBruxo left | 03:15 |
| → NinjaBruxo joined | 03:17 |
| → howdoi joined | 03:17 |
| ← celo_0 left | 03:20 |
| ← livingstn left | 03:21 |
| ← PaulePanter left | 03:23 |
| ← Khisanth left | 03:25 |
| → penguinPerplexed joined | 03:26 |
| → a3Dman joined | 03:26 |
| ← matthiaskrgr left | 03:30 |
| → morenoh149 joined | 03:31 |
| ← philippirrip left | 03:31 |
| → matthiaskrgr joined | 03:32 |
| → philippirrip joined | 03:32 |
| matthiaskrgr → Guest81958 | 03:32 |
| → vdamewood joined | 03:33 |
| ← vdamewood left | 03:33 |
| ← d3r3k left | 03:34 |
| → boombatower joined | 03:34 |
| → vdamewood joined | 03:34 |
| ← penguinPerplexed left | 03:38 |
| ← drodger left | 03:40 |
| → smallville7123 joined | 03:42 |
| → drodger joined | 03:42 |
| → kfoonamalik joined | 03:45 |
| → penguinPerplexed joined | 03:45 |
| → Khisanth joined | 03:52 |
| ← sentriz left | 03:55 |
| ← dendazen left | 03:56 |
| ← sanscoeur left | 03:57 |
| → sentriz joined | 03:57 |
| → schleppel joined | 03:57 |
| → j0z joined | 03:59 |
| ← xdej left | 04:00 |
| → jcarpenter2 joined | 04:00 |
| ← Khisanth left | 04:06 |
| ← orbyt_ left | 04:07 |
| ← dsantiago left | 04:11 |
| → energizer joined | 04:13 |
| → dsantiago joined | 04:13 |
| → user21_zulip joined | 04:17 |
| → user231 joined | 04:17 |
| → d3nk joined | 04:18 |
| ← doppo left | 04:19 |
|
d3nk
| hi in this: git clone ssh://[user@]server/project.git . Where do I provide the port number? | 04:19 |
| → Khisanth joined | 04:20 |
|
Peng_
| Have you read "git help clone" | 04:20 |
| ← user21_zulip left | 04:20 |
|
d3nk
| oops, thanks. | 04:20 |
| → user21_zulip joined | 04:21 |
| ← user21_zulip left | 04:23 |
| → user_zulip joined | 04:24 |
| ← user231 left | 04:26 |
| ← smallville7123 left | 04:26 |
| ← user_zulip left | 04:26 |
| → doppo joined | 04:26 |
| ← doppo left | 04:31 |
| → Have-Quick joined | 04:31 |
| → doppo joined | 04:32 |
| → crtcji joined | 04:35 |
| ← doppo left | 04:38 |
| → rkazak joined | 04:39 |
| ← kent\n left | 04:40 |
| → goweol joined | 04:40 |
| → pnepe6 joined | 04:41 |
| ← robattila256 left | 04:44 |
| ← morenoh149 left | 04:44 |
| ← Have-Quick left | 04:45 |
| ← dreiss left | 04:45 |
| → Have-Quick joined | 04:50 |
| ← boombatower left | 04:51 |
| → eshlox joined | 04:52 |
| → kent\n joined | 04:54 |
| ← j0z left | 04:56 |
| → dege joined | 05:00 |
| ← Khisanth left | 05:03 |
| → tvw joined | 05:04 |
| → doppo joined | 05:08 |
| → Darcidride_ joined | 05:08 |
| → Darcidride__ joined | 05:09 |
| ← Have-Quick left | 05:09 |
| ← Darcidride_ left | 05:10 |
| ← Darcidride left | 05:10 |
| ← linuxmodder left | 05:10 |
| → robattila256 joined | 05:13 |
| → Khisanth joined | 05:16 |
| → sauvin joined | 05:17 |
| ← igemnace left | 05:19 |
| ← kini left | 05:19 |
| → igemnace joined | 05:20 |
| → linuxmodder joined | 05:23 |
| → dimi1947 joined | 05:23 |
| ← linuxmodder left | 05:24 |
| → linuxmodder joined | 05:24 |
| → cagomez joined | 05:25 |
| ← foul_owl left | 05:26 |
| → venmx joined | 05:26 |
| → mohabaks joined | 05:27 |
| ← jcarpenter2 left | 05:29 |
| ← synthmeat left | 05:29 |
| ← cagomez left | 05:29 |
| ← linuxmodder left | 05:30 |
| → synthmeat joined | 05:33 |
| ← crtcji left | 05:33 |
| ← jimmyrcom_ left | 05:35 |
| → muelleme joined | 05:37 |
| → linuxmodder joined | 05:37 |
| → theDiabolicalKid joined | 05:38 |
| → foul_owl joined | 05:39 |
| ← gian-carlo left | 05:39 |
| ← penguinPerplexed left | 05:39 |
| ← theDiabolicalKid left | 05:40 |
| → veegee joined | 05:40 |
| → KeyJoo joined | 05:40 |
| → penguinPerplexed joined | 05:41 |
| ← KeyJoo left | 05:41 |
| ← mar77i left | 05:41 |
| → mar77i joined | 05:41 |
| → KeyJoo joined | 05:41 |
| ← penguinPerplexed left | 05:42 |
| → penguinPerplexed joined | 05:43 |
| → PaulePanter joined | 05:43 |
| → ExeciN joined | 05:43 |
| → qswz joined | 05:46 |
|
qswz
| what's better between: https://stackoverflow.com/a/10421385/3183756 and https://stackoverflow.com/a/39943727/3183756 | 05:46 |
| ← el_tigro1 left | 05:48 |
|
osse
| qswz: If you need this once (or a few times), the short answer. If you do this a lot, the long answer. | 05:49 |
|
qswz
| Thanks ok | 05:50 |
| → Ekho joined | 05:52 |
| → kini joined | 05:55 |
| ← RougeR left | 05:56 |
| ← inovas left | 05:57 |
| → jcarpenter2 joined | 05:58 |
| ← doug16k left | 05:59 |
| → jungsubk joined | 05:59 |
| → Raging_Hog joined | 06:00 |
| → theDiabolicalKid joined | 06:00 |
| ← penguinPerplexed left | 06:01 |
| → pfleck joined | 06:01 |
| → inovas joined | 06:02 |
| ← theDiabolicalKid left | 06:02 |
| → penguinPerplexed joined | 06:02 |
| → solarjoe4 joined | 06:02 |
| ← pfleck left | 06:06 |
| ← venmx left | 06:07 |
| ← dminuoso left | 06:08 |
| → mda1 joined | 06:10 |
| → ok91 joined | 06:11 |
| ← metts left | 06:13 |
| ← kfoonamalik left | 06:14 |
| ← muelleme left | 06:17 |
| → theDiabolicalKid joined | 06:19 |
| → chubbyDeveloper joined | 06:19 |
| ← theDiabolicalKid left | 06:19 |
| ← TinkerT left | 06:19 |
| → TinkerT joined | 06:20 |
| ← penguinPerplexed left | 06:20 |
| ← chubbyDeveloper left | 06:21 |
| → penguinPerplexed joined | 06:21 |
| → pihpah joined | 06:21 |
| ← penguinPerplexed left | 06:22 |
| → penguinPerplexed joined | 06:22 |
| → borkr joined | 06:27 |
| ← rkazak left | 06:27 |
| ← penguinPerplexed left | 06:27 |
| → penguinPerplexed joined | 06:28 |
| → smallville7123 joined | 06:28 |
| → dreiss joined | 06:31 |
| → Masplus joined | 06:36 |
| ← penguinPerplexed left | 06:37 |
| ← smallville7123 left | 06:37 |
| → chele joined | 06:39 |
| ← Guest81958 left | 06:40 |
| → Guest81958 joined | 06:40 |
| ← Guest81958 left | 06:40 |
| → Guest81958 joined | 06:40 |
| → glebihan joined | 06:41 |
| Guest81958 → matthiaskrgr | 06:41 |
| → JeroenT joined | 06:41 |
| ← glebihan left | 06:41 |
| → glebihan joined | 06:43 |
| → smallville7123 joined | 06:43 |
| ← pihpah left | 06:43 |
| → penguinPerplexed joined | 06:43 |
| → pfleck joined | 06:44 |
| ← foul_owl left | 06:45 |
| → tkore joined | 06:46 |
| ← mniip left | 06:46 |
| ← penguinPerplexed left | 06:47 |
| → penguinPerplexed joined | 06:47 |
| → pihpah joined | 06:49 |
| ← pfleck left | 06:50 |
| ← andyhuzhill left | 06:52 |
| → wandering_vagran joined | 06:52 |
| ← dreiss left | 06:52 |
| ← penguinPerplexed left | 06:56 |
| → penguinPerplexed joined | 06:56 |
| ← \void left | 06:58 |
| ← mohabaks left | 06:58 |
| → oxymoron93 joined | 06:58 |
| → Tobbi joined | 06:59 |
| ← ok91 left | 07:01 |
| → ok91 joined | 07:01 |
| ← ArcaTech left | 07:01 |
| → andyhuzhill joined | 07:02 |
| ← ferdna left | 07:03 |
| → foul_owl joined | 07:04 |
| ← smallville7123 left | 07:10 |
| → cur8or joined | 07:11 |
| ← andyhuzhill left | 07:17 |
| → andyhuzhill joined | 07:17 |
| → cdown_ joined | 07:18 |
| → Arcaelyx_ joined | 07:18 |
| → TomyWork joined | 07:19 |
| ← cdown left | 07:20 |
| cdown_ → cdown | 07:20 |
| ← pihpah left | 07:21 |
| ← andyhuzhill left | 07:21 |
| ← armyriad left | 07:22 |
| → mikemcowie joined | 07:22 |
| → armyriad joined | 07:22 |
| ← Arcaelyx left | 07:22 |
| → andyhuzhill joined | 07:22 |
| ← cfoch left | 07:22 |
| ← vdamewood left | 07:23 |
| ← raulp left | 07:26 |
| → _xor joined | 07:33 |
| → theDiabolicalKid joined | 07:34 |
| ← theDiabolicalKid left | 07:34 |
| → mniip joined | 07:34 |
| → zefferno joined | 07:35 |
| ← thiago left | 07:38 |
| ← robattila256 left | 07:39 |
|
cheater
| cjohnson: not really. it has a somewhat similar view, but it's not all in one graph, instead with one graph per user, and it's not a scatter plot, it's a commit volume plot. | 07:40 |
| → floppydh joined | 07:41 |
| ← fatalhalt left | 07:43 |
| → mosab joined | 07:43 |
| → doug16k joined | 07:44 |
| ← armyriad left | 07:45 |
| → rfuentess joined | 07:45 |
| → rajpratik71 joined | 07:47 |
| → armyriad joined | 07:48 |
| → fatalhalt joined | 07:49 |
| ← arecaceae left | 07:51 |
| → arecaceae joined | 07:52 |
| ← mosab left | 07:53 |
| ← energizer left | 07:53 |
| → energizer joined | 07:54 |
| → abba joined | 07:55 |
| → mikecmpbll joined | 07:55 |
| → LeMike_ joined | 07:56 |
| → zayafa joined | 07:56 |
| ← byte512 left | 07:57 |
| ← veegee left | 07:59 |
| → SerialSmile joined | 08:00 |
| → bahamut24 joined | 08:01 |
| → theoceaniscool joined | 08:01 |
| → byte512 joined | 08:03 |
| → Es0teric joined | 08:07 |
| → bolovanos joined | 08:08 |
| ← energizer left | 08:09 |
| ← bolovanos left | 08:12 |
| ← byte512 left | 08:13 |
| → bolovanos joined | 08:15 |
| ← Es0teric left | 08:15 |
| → Es0teric joined | 08:16 |
| ← rajpratik71 left | 08:17 |
| ← Es0teric left | 08:21 |
| ← errr left | 08:22 |
| → revoltingPeasant joined | 08:24 |
| ← JeroenT left | 08:25 |
| → JeroenT joined | 08:26 |
| → settermjd joined | 08:26 |
| → byte512 joined | 08:26 |
| ← andyhuzhill left | 08:27 |
| → andyhuzhill joined | 08:27 |
| → Tobbi_ joined | 08:28 |
| ← settermjd left | 08:30 |
| ← Darcidride__ left | 08:30 |
| → Darcidride joined | 08:30 |
| ← andyhuzhill left | 08:31 |
| → andyhuzhill joined | 08:32 |
| → _ADN_ joined | 08:32 |
| ← mikecmpbll left | 08:32 |
| → settermjd joined | 08:33 |
| ← djb-irc left | 08:33 |
| → mikecmpbll joined | 08:34 |
| ← byte512 left | 08:34 |
| → dre_ joined | 08:34 |
| → Novae joined | 08:35 |
| → Xiti` joined | 08:35 |
| → errr joined | 08:35 |
| → byte512 joined | 08:35 |
| → manuelschneid3r joined | 08:35 |
| → plexigras joined | 08:37 |
| ← dimi1947 left | 08:37 |
| ← settermjd left | 08:38 |
| ← Xiti left | 08:38 |
| → T_UNIX joined | 08:41 |
| → dimi1947 joined | 08:42 |
| → arraen joined | 08:44 |
| ← mikemcowie left | 08:44 |
| ← cdown left | 08:44 |
| → mosab joined | 08:45 |
| → doev joined | 08:47 |
| ← saidelike_ left | 08:47 |
| ← khoyo left | 08:48 |
| → Neo4 joined | 08:48 |
| → WhiskerBiscuit joined | 08:50 |
| → saidelike joined | 08:52 |
| → sh1ba joined | 08:53 |
| ← sh1ba left | 08:53 |
| → ismithers joined | 08:59 |
| → venmx joined | 09:00 |
| ← Goplat left | 09:00 |
| ← WhiskerBiscuit left | 09:01 |
| ← andyhuzhill left | 09:01 |
| → andyhuzhill joined | 09:02 |
| → khoyo joined | 09:03 |
| ← doev left | 09:04 |
| ← borkr left | 09:04 |
| → no_gravity joined | 09:05 |
|
no_gravity
| I edited a bunch of files and now noticed that the checked out branch is the wrong one. | 09:06 |
|
| How do I go about this? | 09:06 |
| ← dimi1947 left | 09:06 |
| ← dre_ left | 09:06 |
|
no_gravity
| I think I will try stash/checkout/stash apply ... | 09:06 |
| ← abba left | 09:06 |
|
oxymoron93
| yup, it is the way to go | 09:07 |
| ← mikecmpbll left | 09:08 |
|
no_gravity
| Awesome. It worked. | 09:08 |
| → dimi1947 joined | 09:08 |
| → abba joined | 09:09 |
| ← ismithers left | 09:09 |
| → mikecmpbll joined | 09:10 |
| → arraen_ joined | 09:13 |
| → coco joined | 09:13 |
| → leeN joined | 09:14 |
| coco → Guest38812 | 09:14 |
| → gunnarx joined | 09:14 |
| ← gunnarx left | 09:14 |
| → gunnarx joined | 09:14 |
| → arraen__ joined | 09:15 |
| ← Guest38812 left | 09:16 |
| ← arraen left | 09:16 |
| → arraen joined | 09:18 |
| ← arraen_ left | 09:19 |
| → borkr joined | 09:20 |
| ← arraen__ left | 09:21 |
| ← arraen left | 09:23 |
| ← bolovanos left | 09:23 |
| → arraen joined | 09:23 |
| → crimson_king joined | 09:23 |
|
osse
| no_gravity: !float | 09:24 |
|
gitinfo
| no_gravity: If you have made a change in your working directory and have NOT YET COMMITTED, you may "float" that change over to another (`git checkout oldbranch`) or new (`git checkout -b newbranch`) branch and commit it there. If the files you changed differ between branches, the checkout will fail. In that case, `git stash` then checkout, and `git stash apply` and go through normal conflict resolution. | 09:24 |
|
osse
| That can work as a shortcut | 09:25 |
|
grawity
| no floating here | 09:25 |
|
no_gravity
| osse: stash/checkout/stash apply, right? | 09:25 |
| ← catsup left | 09:25 |
| → catsup joined | 09:25 |
|
oxymoron93
| you can go with checkout only | 09:25 |
|
| but it is not guaranteed to pass | 09:26 |
| ← catsup left | 09:26 |
| → tuxayo joined | 09:26 |
| → catsup joined | 09:26 |
|
no_gravity
| It worked. | 09:28 |
|
| Not sure how it could not? | 09:28 |
| → zulutango joined | 09:28 |
|
rts-sander
| conflicts | 09:29 |
|
grawity
| it would stop if it had to overwrite your edited files | 09:29 |
|
oxymoron93
| it says up there: "If the files you changed differ between branches, the checkout will fail", which is the git way of saving your... | 09:30 |
| ← arraen left | 09:34 |
| ← andyhuzhill left | 09:35 |
| → Repox joined | 09:35 |
|
Repox
| Hi. Odd request, maybe, but is it possible for me (somehow) to see _who_ made a checkout of a repository? | 09:36 |
|
| And when, maybe. | 09:36 |
|
grawity
| no, and no | 09:37 |
|
| unless 1) you mean "a clone" and 2) you run your own git server | 09:37 |
| ← goweol left | 09:37 |
|
Repox
| I meant a clone, but it's from GitHub. But thank you very much for a quick answer. | 09:38 |
|
grawity
| you do have general traffic graphs on Github https://blog.github.com/2014-08-12-clone-graphs/ | 09:39 |
|
tuxayo
| hi :) Is it possible to unapply changes of a past commit in the history (and leave them uncommitted). | 09:39 |
|
| Context: wants to rollback two commits implementing something to run automated tests and check that they fail. That's why I'm seeking for a quick workflow and hope to not have to rebase, revert or something else too heavy. | 09:39 |
|
grawity
| tuxayo: altering past commits always needs something heavy | 09:40 |
|
| but if `git revert` is too heavy then I don't know | 09:40 |
|
| by "rollback two commits" do you mean undo specific commits, or do you mean go two commits back? | 09:40 |
| ← g00s left | 09:42 |
|
no_gravity
| What do I do when I work on featureBranch1 that was branched from master but now I want it to use stuff from featureBranch2? Can I make it be based on featureBranch2? | 09:42 |
| → settermjd joined | 09:43 |
|
_ikke_
| no_gravity: Sure, you can rebase it onto featureBranch2 | 09:43 |
| → cdown joined | 09:43 |
|
_ikke_
| git rebase --onto featureBranch2 master featureBranch1 | 09:43 |
|
no_gravity
| Sounds good! | 09:44 |
|
_ikke_
| but you need to keep in mind that changes in featureBranch2 are not automatically incoroporated in featureBranch1 | 09:44 |
|
no_gravity
| Now I'm confused. | 09:44 |
|
_ikke_
| (new commits) | 09:44 |
|
| If you commit someting in featureBranch2 after the rebase, featureBranch1 would not contain that commit | 09:45 |
|
| just like commits in master would not be contained in the other branches | 09:45 |
|
no_gravity
| Hmm.. later I want to: 1) merge featureBranch2 into master 2) merge featureBranch1 into master. | 09:47 |
|
_ikke_
| no_gravity: that's possible | 09:47 |
| ← ok91 left | 09:48 |
|
tuxayo
| grawity: undo specific commits in the past, not the 2 two lasts. | 09:48 |
|
| For now the simplest thing I have is git revert <commitid1> <commitid1> && run_test && git reset --hard HEAD~2 | 09:48 |
|
grawity
| git revert --no-commit | 09:50 |
|
| in any case that's literally what `git revert` is for | 09:50 |
|
tuxayo
| I know there is something to just apply the changes of a commit. So I hopped the find the opposite :) | 09:52 |
| ← no_gravity left | 09:52 |
|
tuxayo
| grawity: oh thanks for the --no-commit !! | 09:52 |
| → vin_ joined | 09:54 |
| → rafasc joined | 09:55 |
| → agowa338 joined | 09:56 |
| ← mosab left | 09:57 |
| → no_gravity joined | 09:59 |
|
no_gravity
| I'm a bit confused that doing 'git checkout somebranch' keeps the files i modified in the working dir. | 09:59 |
| → mosab joined | 09:59 |
| ← Guest34373 left | 09:59 |
| → ronskisika joined | 09:59 |
| ← gunnarx left | 09:59 |
|
canton7
| no_gravity, !float | 10:00 |
|
gitinfo
| no_gravity: If you have made a change in your working directory and have NOT YET COMMITTED, you may "float" that change over to another (`git checkout oldbranch`) or new (`git checkout -b newbranch`) branch and commit it there. If the files you changed differ between branches, the checkout will fail. In that case, `git stash` then checkout, and `git stash apply` and go through normal conflict resolution. | 10:00 |
|
grawity
| well, that's how it was written to work | 10:00 |
| ← Raging_Hog left | 10:00 |
|
canton7
| the working tree isn't part of any branch, it's the files you've got on disk | 10:00 |
| ← Arcaelyx_ left | 10:00 |
|
no_gravity
| canton7: Isn't that annoying? I work on a branch, switch to another and boom the files I edited float to the other, unrelated branch. | 10:00 |
|
_ikke_
| no_gravity: uncomitted changes don't belong to any branch | 10:01 |
|
canton7
| no? The branch that's checked out only really becomes relevant when I want to commit | 10:01 |
|
| no_gravity, it means that if I want to save my changes somewhere and come back to them later, I need to explicitly save them | 10:01 |
|
| rather than git magicking my files away, and I'm left wondering where they've gone | 10:01 |
|
_ikke_
| (which is better anyway) | 10:01 |
|
no_gravity
| _ikke_: But what if I don't want to commit? Becasue the changes are not ready to commit. How can I switch to another branch to work on it? | 10:01 |
|
grawity
| you've been told about `git stash` how many times? | 10:02 |
|
oxymoron93
| you stash | 10:02 |
|
grawity
| though there's no "not ready to commit" in git | 10:02 |
|
| there's only "not ready to push" | 10:02 |
|
canton7
| no_gravity, you can create a temporary commit and undo it later (I have lots of "WIP" commits), or stash | 10:02 |
|
no_gravity
| grawity: But what if I come back to the branch I am working on in 3 days? How am I supposed to remember 'There are changes in the stach you have to apply before continuing the work'? | 10:02 |
|
| canton7: Yes, that would work. | 10:02 |
|
canton7
| no_gravity, that's when you create a temp commit | 10:02 |
| → MarioBranco joined | 10:02 |
|
no_gravity
| But it seems cumbersome. | 10:02 |
|
grawity
| no_gravity: post-it note | 10:03 |
|
no_gravity
| grawity: lol | 10:03 |
|
grawity
| where else would you put the changes? | 10:03 |
|
canton7
| not really? It means that I can back up those temp changes by pushing them, if I want to, the same as any other commit | 10:03 |
|
grawity
| on the branch? but you just said they're not ready to go on the branch | 10:03 |
| → widp joined | 10:04 |
| → Arcaelyx joined | 10:04 |
| ← alcohol left | 10:04 |
| → alcohol joined | 10:05 |
| ← no_gravity left | 10:06 |
| ← mikecmpbll left | 10:06 |
| ← vin_ left | 10:07 |
| → ok91 joined | 10:07 |
| → smallville7123 joined | 10:07 |
| ← SerialSmile left | 10:08 |
| → jost joined | 10:08 |
| → mikecmpbll joined | 10:08 |
|
tuxayo
| grawity: thanks a lot. I'm very happy with the result :) | 10:08 |
|
| git revert --no-commit <commit1> <commit2> ; run_tests ; git revert --abort | 10:08 |
| ← jameser left | 10:11 |
|
oxymoron93
| I don't seem to find any problem with previous routine, unless you had some commit-hooks behind? | 10:11 |
| ← ok91 left | 10:12 |
| ← dpyro left | 10:12 |
| ← Repox left | 10:16 |
| ← Arcaelyx left | 10:18 |
| ← settermjd left | 10:19 |
| → giraffe joined | 10:19 |
| → Fernando-Basso joined | 10:19 |
| giraffe → Guest5068 | 10:20 |
| → Arcaelyx joined | 10:24 |
| ← smallville7123 left | 10:25 |
| → smallville7123 joined | 10:28 |
| → Repox joined | 10:28 |
| ← Arcaelyx left | 10:30 |
| → kurkale6ka joined | 10:31 |
| ← Repox left | 10:34 |
| → Repox joined | 10:35 |
| → Arcaelyx joined | 10:35 |
| → settermjd joined | 10:35 |
| ← zayafa left | 10:36 |
| ← sim590 left | 10:41 |
| ← settermjd left | 10:42 |
| → sim590 joined | 10:43 |
| → gunnarx joined | 10:48 |
| ← gunnarx left | 10:48 |
| → gunnarx joined | 10:48 |
| → czart_ joined | 10:50 |
| → CodeSlingerPaul joined | 10:51 |
| ← smallville7123 left | 10:51 |
| → Raging_Hog joined | 10:53 |
| ← czart__ left | 10:53 |
| ← dsdeiz left | 10:54 |
| ← ronskisika left | 10:57 |
| ← wolfshappen left | 10:58 |
| → muehle joined | 10:59 |
| ← muehle left | 11:02 |
| → muehle joined | 11:02 |
| ← eshlox left | 11:02 |
| → dsdeiz joined | 11:02 |
| → no_gravity joined | 11:04 |
| → deltam joined | 11:04 |
|
no_gravity
| One thing I find cumbersome when I read commits is that I have to skip all those tests. | 11:04 |
|
| How do you guys manage that? | 11:04 |
|
| Wading through all the code that does not change the behaviour of the system. | 11:05 |
|
osse
| what do you mean? | 11:05 |
|
no_gravity
| osse: Say a coder pushed a feature branch. | 11:05 |
|
| osse: Then I read it via 'log -p'. | 11:05 |
|
| But >50% of it is stuff I don't care about. | 11:05 |
|
| Tests, database seeders... | 11:05 |
|
osse
| git log -p -- only/stuff/youcareabout | 11:05 |
|
no_gravity
| What do you mean? | 11:06 |
|
osse
| git log -p -- . ':!stuff/you/do/not/care/about' | 11:06 |
|
no_gravity
| Sorry, I don't understand what you mean. | 11:06 |
| → Schrostfutz joined | 11:06 |
|
osse
| I mean add a a '-- paths' to git log | 11:06 |
|
no_gravity
| Hmmm... interesting idea. | 11:06 |
| ← doppo left | 11:07 |
| ← Repox left | 11:07 |
|
no_gravity
| Say I want to see everything except stuff in tests/ | 11:08 |
|
| How would I do that? | 11:08 |
|
osse
| replace "stuff/you/do/not/care/about" with "tests/" in my above command | 11:08 |
|
no_gravity
| This? git log -p -- . ':!tests/' | 11:09 |
|
| Ok. | 11:09 |
|
| Thanks! | 11:09 |
|
osse
| The only drawback is that if a commit changes things *only* | 11:09 |
|
| in tests/ then git log won't show it at all | 11:09 |
|
no_gravity
| That's fine. | 11:09 |
| ← Kaisyu left | 11:10 |
| ← nowhereman_ left | 11:10 |
| → amirpro joined | 11:10 |
| ← Neo4 left | 11:11 |
|
no_gravity
| Is there a way to search for something in 'git log -p'? | 11:11 |
|
| seems to do some kind of search | 11:12 |
|
osse
| by default git log -p uses less, so you can search with / | 11:12 |
|
no_gravity
| But it seems I have to scroll through the whole log and scroll back first. | 11:12 |
|
rafasc
| there's -S and --grep for log. | 11:13 |
|
no_gravity
| Hmm.. I would like to scroll around in 'git log -p' | 11:13 |
|
| Ah no, it works just fine. | 11:13 |
| → doppo joined | 11:13 |
|
no_gravity
| I don't have to scroll to the end first. | 11:14 |
| → settermjd joined | 11:16 |
|
no_gravity
| What is the '--' in git log -p -- ..paths.. ? | 11:17 |
|
osse
| !-- | 11:18 |
|
gitinfo
| [!dashes] Use a double-dash(--) to separate refs or arguments from file paths. This is especially useful when dealing with ambiguous names. Ex: `git checkout origin -- master` will check out the file "master" from branch "origin" | 11:18 |
|
no_gravity
| I see | 11:18 |
|
osse
| Similar principle to rm -- foo | 11:19 |
| → crtcji joined | 11:19 |
| → pfleck joined | 11:19 |
| ← doppo left | 11:21 |
| ← amirpro left | 11:22 |
| ← agowa338 left | 11:22 |
|
no_gravity
| Funky | 11:22 |
| → wolfshappen joined | 11:23 |
| ← jost left | 11:24 |
| → amirpro joined | 11:25 |
| → dwmw2_gone joined | 11:27 |
|
_ikke_
| man gitcli | 11:27 |
|
gitinfo
| the gitcli manpage is available at https://gitirc.eu/gitcli.html | 11:27 |
|
_ikke_
| It's a common pattern in cli tools | 11:28 |
| → amaio joined | 11:33 |
|
amaio
| hello | 11:33 |
|
gitinfo
| amaio: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on. | 11:33 |
|
amaio
| my .gitignore file is being ignore, could someone help me, please? | 11:34 |
|
no_gravity
| amaio: How do you know it's ignored? | 11:35 |
|
amaio
| because files i want to ignore are being uploaded | 11:35 |
| → phluks joined | 11:35 |
|
_ikke_
| !ignore_tracked | 11:35 |
|
gitinfo
| 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. | 11:35 |
| ← Arcaelyx left | 11:35 |
| → Asider joined | 11:36 |
| ← Asider left | 11:36 |
| ← kurkale6ka left | 11:37 |
| ← qswz left | 11:39 |
| ← MarioBranco left | 11:41 |
|
no_gravity
| Anybody here working with a team of coders? | 11:41 |
| → cur8or_ joined | 11:41 |
| ← cur8or left | 11:41 |
| → cek joined | 11:42 |
|
jast
| well, yeah | 11:42 |
|
no_gravity
| jast: Do you use raw git or tools on top of it? | 11:42 |
|
_ikke_
| raw git | 11:42 |
|
no_gravity
| _ikke_: Awesome. I do the same. And for project/task management? | 11:43 |
| ← Impaloo left | 11:43 |
| → Impaloo joined | 11:43 |
| → dendazen joined | 11:44 |
|
rafasc
| no_gravity: post it notes around the screen. | 11:44 |
|
jast
| raw git, and in this particular case, github's issue tracker | 11:45 |
|
_ikke_
| no_gravity: combination of gitlab and redmine | 11:45 |
|
jast
| in general I have yet to see a task tracker that I can recommend without hesitation | 11:45 |
|
no_gravity
| _ikke_: gitlab? I thought you use raw git? | 11:45 |
| → Karyon joined | 11:46 |
|
jast
| well, you didn't clarify what you meant by "raw git" | 11:46 |
|
cek
| I have added a new submodule to .gitmodules . How do I tell it to be checked out? | 11:46 |
|
jast
| I took it to assume "use git CLI to interact with local repo" | 11:46 |
|
no_gravity
| jast: That thing git command in the repos of most distros. | 11:46 |
| → Arcaelyx joined | 11:46 |
|
jast
| cek: the normal way to add a new submodule is 'git submodule add' which does all of the setup work, not just that one step | 11:46 |
|
| no_gravity: yeah, and e.g. gitlab is what takes care of the hosting side of things. similarly, the project I'm working on is hosted by GitHub, and locally I use the standard git CLI | 11:47 |
|
no_gravity
| I see. | 11:48 |
| → farmer joined | 11:48 |
| ← Masplus left | 11:53 |
| → fission6 joined | 11:53 |
| ← amirpro left | 11:53 |
| → MarioBranco joined | 11:56 |
| → m00sehead joined | 11:57 |
| → amirpro joined | 11:58 |
| → doppo joined | 11:58 |
| ← fission6 left | 12:00 |
| → rsrx joined | 12:03 |
| → Nizumzen joined | 12:04 |
| ← topdownjimmy left | 12:05 |
| → topdownjimmy joined | 12:06 |
| → smallville7123 joined | 12:07 |
| → kurkale6ka joined | 12:07 |
| ← tuxayo left | 12:08 |
| → kurkale61 joined | 12:08 |
| ← BallChang-CN left | 12:09 |
| → mosab_ joined | 12:10 |
| ← settermjd left | 12:10 |
| ← amaio left | 12:11 |
| ← kurkale6ka left | 12:12 |
| ← crtcji left | 12:12 |
| ← mosab left | 12:14 |
| mosab_ → mosab | 12:14 |
| → houami joined | 12:16 |
| ← inovas left | 12:17 |
| ← nielsk left | 12:17 |
| → cagomez joined | 12:18 |
| ← nivag left | 12:19 |
| → sveinse joined | 12:19 |
|
sveinse
| Is there a way to get the commit id of the current checked out WC, with indication if its not clean? | 12:20 |
| → settermjd joined | 12:20 |
|
grawity
| 1) git rev-parse HEAD | 12:21 |
|
| 2) git diff --exit-code HEAD | 12:21 |
|
| actually you might want `git describe` for the former | 12:21 |
|
| if you're building a project version thing | 12:21 |
|
sveinse
| Yeah, for a build system. In hg you've got hg id, and it returns the hash with a '+' at the end if its locally edited, which is great | 12:22 |
| ← cagomez left | 12:23 |
| → inovas joined | 12:23 |
|
rafasc
| grawity: or name-rev if you want if you a more human friendly output. | 12:23 |
|
sveinse
| git name-rev HEAD returns "HEAD feature_gitconvert", so that's too fluffy | 12:24 |
| → Doow joined | 12:25 |
| → hryniuk joined | 12:26 |
| ← penguinPerplexed left | 12:27 |
|
sveinse
| btw, is there a way to specify the current WC in revision specifiers? Such as "master..WC" or similar? | 12:28 |
| ← no_gravity left | 12:28 |
|
rafasc
| WC? | 12:28 |
|
grawity
| working copy? | 12:28 |
|
sveinse
| Working copy | 12:28 |
|
grawity
| the *commit* that the working copy is at is referred to as "HEAD" (all-caps) | 12:28 |
|
sveinse
| aha, so this term isn't used in git. duly noted. | 12:28 |
| → Cavallari joined | 12:29 |
|
grawity
| the entire worktree, including dirty state, has no universal reference | 12:29 |
|
sveinse
| ok | 12:29 |
|
grawity
| in commands like `git diff` it's implicit if only one or zero commits were specified | 12:30 |
|
sveinse
| say you're on a branch and want to compare master with the working copy? You can do git diff master..HEAD, but that's not the same | 12:30 |
|
rafasc
| sveinse: git diff master | 12:30 |
|
grawity
| git diff master | 12:30 |
|
sveinse
| thanks, implicit then | 12:31 |
|
grawity
| so, `git diff --exit-code HEAD` compares working copy with the current commit, and exits 1 if it's dirty | 12:32 |
|
rafasc
| sveinse: and don't forget you also have the stage. which is neither HEAD or wc. | 12:32 |
|
sveinse
| rafasc: Can you compare the stage with another branch? | 12:33 |
|
grawity
| yes, `git diff --cached` accepts a commit | 12:34 |
|
rafasc
| git diff --cached branchA; | 12:34 |
|
sveinse
| right, thanks | 12:34 |
| → jstimm joined | 12:34 |
|
rafasc
| or --staged | 12:34 |
|
| no difference. | 12:34 |
| → BallChang-CN joined | 12:36 |
| ← Karyon left | 12:36 |
| ← m00sehead left | 12:36 |
| → RougeR joined | 12:37 |
| ← zulutango left | 12:38 |
| ← dimi1947 left | 12:42 |
| ← pfleck left | 12:43 |
| → gian-carlo joined | 12:44 |
| ← gian-carlo left | 12:44 |
| → Gurkenglas joined | 12:44 |
| → arraen joined | 12:46 |
| ← RougeR left | 12:48 |
| ← raymond left | 12:49 |
| ← MACscr left | 12:49 |
| ← z|bandito left | 12:49 |
| → z|bandito joined | 12:50 |
| → rain1 joined | 12:51 |
|
rain1
| hi | 12:51 |
|
| i was working on a pull request | 12:51 |
|
nikivi
| whats a good way to get the name of the repo being cloned? I want to write a script that will clone a repo and then instantly cd into it after clone | 12:51 |
|
rain1
| and he said "Merge in the upstream changes I've committed since you started" | 12:51 |
|
| how is that done? | 12:51 |
| ← jcarpenter2 left | 12:52 |
| → jcarpenter2 joined | 12:52 |
| → MACscr joined | 12:52 |
| ← leprechau left | 12:53 |
| ← selckin left | 12:54 |
| ← MACscr left | 12:54 |
|
_ikke_
| rain1: Do you have a separate branch for your PR? | 12:55 |
|
rain1
| no its just a clone | 12:55 |
| ← austin987 left | 12:55 |
| ← jelmer left | 12:55 |
|
_ikke_
| So you work on master? | 12:55 |
|
rain1
| yeah | 12:56 |
| → leprechau joined | 12:56 |
|
_ikke_
| Did you fork the repo? | 12:56 |
|
rain1
| yes | 12:57 |
|
_ikke_
| So first you need to add the upstream repo (the one you forked from) as a remote | 12:57 |
| → jelmer joined | 12:58 |
| → wreed joined | 12:58 |
|
_ikke_
| git remote add upstream <url> | 12:58 |
|
| upstream is just a name, you can pick whatever you want | 12:59 |
| → MACscr joined | 13:00 |
| → zayafa joined | 13:00 |
| ← zayafa left | 13:01 |
| → AndresInSpace joined | 13:01 |
| ← duderonomy left | 13:02 |
| → m00sehead joined | 13:03 |
| ← Puppet_ left | 13:04 |
| ← borkr left | 13:04 |
| ← venmx left | 13:06 |
| ← cek left | 13:07 |
| → venmx joined | 13:08 |
|
floppydh
| is there a command that gives me back the absolute path to a branch on a remote? - like I'm on 'origin/cowbar' and then I do the command and it gives me back the URL of the remote 'origin' and then appends the 'cowbar' and such? | 13:09 |
|
| guess it's not rocket science to build this oneself | 13:09 |
|
_ikke_
| floppydh: It's not really a git concept | 13:09 |
|
floppydh
| _ikke_: remotes? | 13:09 |
|
_ikke_
| remotes are | 13:09 |
|
floppydh
| I'm trying to diff two branches on 2 different remotes | 13:09 |
|
| oh... I could just add the other remote | 13:09 |
|
| I'm stupid | 13:09 |
| → wlemuel joined | 13:10 |
|
floppydh
| nvm | 13:10 |
| → arraen_ joined | 13:12 |
|
widp
| can I retroactively make a nested git repo a submodule? | 13:13 |
| ← wlemuel left | 13:13 |
|
_ikke_
| how did you add the nested repo currently? | 13:13 |
|
widp
| just cloned them | 13:14 |
|
| into the directory of an existing repo | 13:14 |
|
_ikke_
| Ok, You can, but it's a couple of manual steps | 13:14 |
| ← arraen left | 13:15 |
|
widp
| so add an entry into the gitmodules file? | 13:15 |
|
_ikke_
| that's step 1 | 13:15 |
|
| git add the directory (without a final /) | 13:15 |
|
| and officially, the .git directory of the submodule lives in the parent repo | 13:16 |
| → fr33domlover joined | 13:16 |
|
_ikke_
| with a .git file pointing to it | 13:16 |
|
widp
| git add the directory of the cloned repo? | 13:16 |
| → crtcji joined | 13:16 |
|
_ikke_
| yes | 13:16 |
|
widp
| but not its files, right? | 13:16 |
|
| ahh, makes sense, thanks. | 13:17 |
| → arraen joined | 13:17 |
|
_ikke_
| right, so that's why no final '/' | 13:17 |
|
| subtle difference | 13:17 |
| ← Raging_Hog left | 13:18 |
|
widp
| thank you _ikke_ | 13:18 |
|
_ikke_
| after you comitted that, you probably also need to run git submodule init | 13:18 |
| → arraen__ joined | 13:19 |
| gitinfo set mode: +v | 13:20 |
|
_flow__
| It appears that a (interactive) rebase operation does not preserve the git-notes if the commit's sha1 changes, is there a setting to change that behavior? | 13:20 |
| ← arraen_ left | 13:20 |
| → borkr joined | 13:21 |
| → duderonomy joined | 13:22 |
| ← arraen left | 13:23 |
| → stutter_ joined | 13:25 |
| ← duderonomy left | 13:26 |
| ← settermjd left | 13:26 |
|
_ikke_
| _flow__: I don't think there is | 13:27 |
|
| ah sorry | 13:27 |
|
| there is | 13:27 |
| ← rsrx left | 13:27 |
|
_ikke_
| git config notes.rewrite.rebase true | 13:27 |
|
| the man says that it's true bue default | 13:28 |
|
| but there is also notes.rewriteRef | 13:28 |
|
| 'git config notes.rewriteRef refs/notes/commits'\ for example | 13:29 |
| ← houami left | 13:29 |
| → cek joined | 13:30 |
|
_flow__
| _ikke_: ta | 13:30 |
|
cek
| another problem with submodules. I have updated their remote-urls (projects moved). Since then, I have pushed an updated .gitmodules. Now, how do I recheck them out on other hosts? | 13:30 |
|
| git submodule update --remote ' doesn't update remote-url | 13:30 |
|
_ikke_
| cek: git submodule sync | 13:31 |
|
cek
| yeah, sync helped. tnx | 13:31 |
| ← cur8or_ left | 13:31 |
| → SerialSmile joined | 13:31 |
| → settermjd joined | 13:33 |
| → Kumquatum joined | 13:33 |
|
cek
| despite that, another submod I have added doesn't appear in .git/modules/ on other host | 13:34 |
| → celo_0 joined | 13:34 |
|
cek
| `git submodule init` nailed it. | 13:34 |
| ← borkr left | 13:35 |
|
widp
| _ikke_: I did everything you said. How do I ensure I got everything right? | 13:35 |
|
_ikke_
| git submodule status? | 13:35 |
|
| and try to clone the repo | 13:36 |
|
widp
| right, thanks | 13:36 |
|
_ikke_
| with --recursive | 13:36 |
| → shinnya joined | 13:37 |
| ← Nizumzen left | 13:39 |
| → houami joined | 13:39 |
| ← dsdeiz left | 13:42 |
|
skalpin
| Does anyone have an alias that will show me branches with 1000 commits or more behind master? ie. stale branches | 13:42 |
|
_ikke_
| git branch -vv shows the status per branch | 13:42 |
|
skalpin
| remote branches I mean not locally | 13:43 |
|
_ikke_
| oh | 13:43 |
|
skalpin
| sorry I should have been more clear | 13:43 |
|
_ikke_
| It's hard to get this information remotely | 13:43 |
| ← venmx left | 13:43 |
| ← mad_hatter left | 13:44 |
| ← houami left | 13:44 |
| ← fatalhalt left | 13:44 |
| → dsdeiz joined | 13:45 |
| → fission6 joined | 13:47 |
| → duderonomy joined | 13:47 |
| → fatalhalt joined | 13:48 |
| → gian-carlo joined | 13:48 |
| → RougeR joined | 13:49 |
| ← RougeR left | 13:49 |
| → RougeR joined | 13:49 |
| ← duderonomy left | 13:49 |
| → _antares_ joined | 13:50 |
| → relipse joined | 13:50 |
| ← arraen__ left | 13:50 |
| → venmx joined | 13:51 |
| → duderonomy joined | 13:51 |
|
dcpc007
| Hi, does anyone had a link or doc with arguments on why or when use git (or not ?). | 13:52 |
| → Masplus joined | 13:52 |
|
dcpc007
| i try to implement git here for all the dev projects, even small ones | 13:52 |
|
| and often got first answers like : pfff i work alone, no need... or it's only a small code, or it will take me too much time to learn this | 13:53 |
|
| then, i try to make a "sales" documentation to show them in different scenario what git and tools above it could improve | 13:53 |
|
| (same for : Gitlab or JIRA ? pfff we already have an excel shared sheet) | 13:54 |
| ← _antares_ left | 13:54 |
|
skalpin
| That's frustrating, I've had a difficult time selling git to my team in the past as well. If you force it on them they will make you solve all their problems. Sorry I have no solutions only condolences. | 13:56 |
| ← solarjoe4 left | 13:56 |
| → thiago joined | 13:56 |
| ← cdown left | 13:57 |
|
Hello71
| if they never have to access old code versions, either they are shite coder or brilliant | 13:57 |
|
| either way probably they don't need git | 13:57 |
| → cdown joined | 13:57 |
|
dcpc007
| i can't force, i only have to get the right arguments. But i'm not a big specialist too | 13:57 |
|
| i use it since years but as sysadmin | 13:57 |
|
Hello71
| maybe the shite one will need it eventually, but first they need to learn to program | 13:57 |
|
dcpc007
| lol i see some are creating smal app with IHM and ZERO tools to panage the code | 13:58 |
|
| even works is on the C:\ without backup ! | 13:58 |
|
| but they are not real devs | 13:58 |
|
| not their job | 13:58 |
| ← jstimm left | 13:59 |
|
dcpc007
| for managers i prepare things like : "when when your guy will leave, how the successor will learn how the code wsas created, or why they choose this or this" | 13:59 |
| → shodan` joined | 14:00 |
| → _antares_ joined | 14:00 |
|
dcpc007
| i found many ideas on many websites | 14:00 |
|
| but boring to create a whole centralized prez | 14:00 |
| → kadoban joined | 14:02 |
| → durham joined | 14:02 |
| → adnn joined | 14:03 |
| ← adnn left | 14:03 |
|
furrymcgee
| why do you want others to use git | 14:03 |
| ← duderonomy left | 14:05 |
| ← fission6 left | 14:06 |
| ← muehle left | 14:07 |
| → morenoh149 joined | 14:08 |
| → rpage joined | 14:08 |
| → rajkane_prajta joined | 14:09 |
| ← Fernando-Basso left | 14:09 |
|
dcpc007
| because currently then often can't manage codes | 14:09 |
|
rafasc
| dcpc007: sell the git magic. | 14:09 |
|
dcpc007
| or using svn | 14:09 |
|
| or worse, dated zip | 14:10 |
|
rafasc
| say that git bisect can find bugs itself. | 14:10 |
|
dcpc007
| or multipe folders with dates, simili-versions or old, old.s, old.save_tmp | 14:10 |
|
| lol :) | 14:10 |
|
rafasc
| (which is partially true) | 14:10 |
|
dcpc007
| i think i'll keep this for later :) | 14:10 |
|
| i start with basic uses first | 14:11 |
|
| only things like create branches and commits | 14:11 |
|
| and tags | 14:11 |
|
| stage 0 :) | 14:11 |
|
rafasc
| dcpc007: they don't care about branches. Because they don't know the concept. | 14:11 |
| ← durham left | 14:12 |
| → kneeki|aa joined | 14:12 |
|
dcpc007
| that's why i create learning sessions | 14:12 |
|
| for bases | 14:12 |
|
rafasc
| if you say: oh, you can branch your code! they'll say whatever, i'll just make a new zip file. Way easier. | 14:12 |
|
dcpc007
| no, because i show what are the differences | 14:13 |
|
rafasc
| dcpc007: you need to pass the message of *why* they should use git, not *how*. | 14:13 |
| ← dsdeiz left | 14:14 |
|
rafasc
| once they accept the *why*, the *how* is easy to teach. | 14:14 |
|
_ikke_
| dcpc007: !parable | 14:14 |
|
gitinfo
| dcpc007: 'The git parable' provides some good reasoning behind git. http://tom.preston-werner.com/2009/05/19/the-git-parable.html | 14:14 |
|
oxymoron93
| that is some good sentence | 14:15 |
| → gareppa joined | 14:15 |
|
_ikke_
| ^^ | 14:15 |
| ← farmer left | 14:15 |
| ← xPucTu4 left | 14:15 |
| ← kurkale61 left | 14:16 |
|
rafasc
| but if you don't spend the time clarifying the *why* you'll get: gooosh.. whhay is git soo hhhaarrd..... omgg I cann just upload this to my ftp server wtf is a remote anyways.. | 14:16 |
| → ToBeCloud joined | 14:17 |
| gitinfo set mode: +v | 14:17 |
|
dcpc007
| rafasc, yes that was my query on the arguments :) | 14:17 |
|
| thx ikke will read this :) | 14:18 |
| → durham joined | 14:18 |
|
oxymoron93
| I should read that too, I just got into problem of teaching others... | 14:18 |
| → fission6 joined | 14:18 |
|
dcpc007
| i start a first session to show the concept of SCM, and especially with git | 14:19 |
| → dsdeiz joined | 14:19 |
| ← dsdeiz left | 14:19 |
| → dsdeiz joined | 14:19 |
|
oxymoron93
| "Most people try to teach Git by demonstrating a few dozen commands and then yelling “tadaaaaa.”" ... oops | 14:19 |
| → berendir joined | 14:19 |
|
rafasc
| I found that explaining the advantages of $git bisect, really helps people understand why they should care about the rest. | 14:19 |
|
dcpc007
| i create a mindmapping note :) | 14:19 |
|
| i speak even on more basics things tha bisect | 14:19 |
|
rafasc
| dcpc007: think bisect as a goal. | 14:20 |
|
dcpc007
| only have sources structured and historized is a great gap | 14:20 |
|
| yes, if you can make the tests functions :) | 14:20 |
|
_ikke_
| though bisect is cool, the amount of time you can use it can be limited, depending on what kind of codebase you have | 14:20 |
|
rafasc
| it's very hard to teach git to someone who is unwilling to accept it. | 14:20 |
| → Avalchfan joined | 14:21 |
|
dcpc007
| and i used git since some years without try any bisect | 14:21 |
|
| and i don't imagine working without it anymore | 14:21 |
|
| (git, not bisect) | 14:21 |
| ← gareppa left | 14:21 |
| → Nizumzen joined | 14:22 |
|
rafasc
| _ikke_: looks like we're getting bisect --first-parent, which will help a lot of projects that keep master buildable and testable. (but not necessarily the merged branches) | 14:22 |
| → jimmyrcom_ joined | 14:23 |
| ← oxymoron93 left | 14:23 |
| → elementalest joined | 14:24 |
| ← chele left | 14:25 |
| → Es0teric joined | 14:26 |
| ← RougeR left | 14:26 |
| → mad_hatter joined | 14:27 |
| ← smallville7123 left | 14:28 |
| → RougeR joined | 14:28 |
| ← jimmyrcom_ left | 14:28 |
| → houami joined | 14:29 |
| ← _antares_ left | 14:30 |
| → _antares_ joined | 14:31 |
| ← houami left | 14:33 |
| ← Avalchfan left | 14:34 |
| ← _antares_ left | 14:37 |
| ← madewokherd left | 14:37 |
| ← kyan left | 14:39 |
| → jottr joined | 14:39 |
| → smallville7123 joined | 14:41 |
| ← elementalest left | 14:42 |
| → Phylock joined | 14:44 |
| → Ishtv4n joined | 14:45 |
| ← Es0teric left | 14:45 |
| → kurkale6ka joined | 14:45 |
| → orbyt_ joined | 14:47 |
| ← cdown left | 14:48 |
| → PioneerAxon_ joined | 14:49 |
| → cdown joined | 14:49 |
| ← JeroenT left | 14:50 |
| ← durham left | 14:50 |
| ← PioneerAxon left | 14:50 |
| → durham joined | 14:51 |
| → hmoreno joined | 14:51 |
| → dragoonis joined | 14:52 |
| → Es0teric joined | 14:52 |
| ← morenoh149 left | 14:53 |
| → dunpeal joined | 14:54 |
| → Dougie187 joined | 14:55 |
|
dunpeal
| Hi. I'm trying to do the following: have two Git repos, A and B. B should be easily mergable into A, and vice-versa. Normally, they would be clones. However, B cannot see all of A's history. | 14:55 |
|
rafasc
| dunpeal: hard to do it with current implementation. | 14:56 |
| ← wandering_vagran left | 14:57 |
|
rafasc
| dunpeal: B can be a shallow clone of A, but preventing B from getting history from A is not trivial. | 14:58 |
| ← tkore left | 14:59 |
| ← rchavik left | 14:59 |
|
jedix
| how about this.. A and B are seperate git repos. someone pulls from A and squashes everything into one horrid glob of commits, and pushes to B? | 14:59 |
| ← orbyt_ left | 14:59 |
|
dunpeal
| jedix: not ideal, but could work I suppose. | 15:00 |
| hmoreno → morenoh149 | 15:01 |
|
rafasc
| dunpeal: you lose "easily mergeable" with that. | 15:01 |
| ← howdoi left | 15:01 |
|
dunpeal
| Let's say A and B are two entirely different repos (no common root). However, they track identical working trees. How elegant would it be to perform merges between them? | 15:02 |
| ← manuelschneid3r left | 15:03 |
| ← smallville7123 left | 15:03 |
|
rafasc
| keeping history separate? | 15:03 |
|
furrymcgee
| A must rebase and push only commit that should be seen by B | 15:03 |
| ← Cavallari left | 15:03 |
|
rafasc
| the easy way would be merge --allow-unrelated-histories; to merge the to histories into one. | 15:04 |
|
dunpeal
| rafasc: B shouldn't be able to see A's history from before it was split out. | 15:04 |
|
rafasc
| then forget what I said. | 15:04 |
|
| dunpeal: why do you need this? | 15:05 |
| → orbyt_ joined | 15:05 |
|
dunpeal
| rafasc: some dumbass committed a sensitive password. | 15:06 |
| ← kadoban left | 15:06 |
| ← gunnarx left | 15:06 |
|
rafasc
| dunpeal: would be easier to !filter_sensitive | 15:06 |
|
gitinfo
| dunpeal: You can use filter-branch to remove sensitive data from a repository's history. https://help.github.com/articles/remove-sensitive-data/ | 15:06 |
| ← doug16k left | 15:06 |
| → gunnarx joined | 15:06 |
| → houami joined | 15:06 |
|
rafasc
| or just assume the password was compromised. | 15:07 |
| → austin987 joined | 15:07 |
| ← settermjd left | 15:07 |
| → madewokherd joined | 15:08 |
| → doug16k joined | 15:09 |
| ← treehug88 left | 15:09 |
| ← pnepe6 left | 15:10 |
| → manuelschneid3r joined | 15:10 |
| ← schleppel left | 15:10 |
| ← batrick left | 15:10 |
|
_ikke_
| That anyway | 15:10 |
| ← BallChang-CN left | 15:10 |
| ← shodan` left | 15:10 |
| → settermjd joined | 15:11 |
| ← RougeR left | 15:11 |
| ← dragoonis left | 15:11 |
| ← houami left | 15:11 |
| ← manuelschneid3r left | 15:12 |
| → BallChang-CN joined | 15:12 |
| → _antares_ joined | 15:12 |
| → duderonomy joined | 15:12 |
| ← Es0teric left | 15:12 |
| → Es0teric joined | 15:13 |
|
rafasc
| when I said that I meant as "do not worry about posting an outdated password to the public." | 15:13 |
| ← _antares_ left | 15:16 |
| → greggerz joined | 15:16 |
| → diegoaguilar joined | 15:18 |
| ← KeyJoo left | 15:18 |
| ← diogenese left | 15:19 |
|
furrymcgee
| no, you should not post any passwords | 15:19 |
| ← linuxmodder left | 15:20 |
| ← wreed left | 15:20 |
| ← celo_0 left | 15:20 |
| → javlens joined | 15:22 |
| → cagomez joined | 15:23 |
| ← fr33domlover left | 15:24 |
| → immune2iocane joined | 15:25 |
| → joe3 joined | 15:25 |
| → Worldexe joined | 15:25 |
| → diogenese joined | 15:26 |
| → _antares_ joined | 15:27 |
| → raymond joined | 15:27 |
| ← duderonomy left | 15:27 |
| ← revoltingPeasant left | 15:28 |
| → duderonomy joined | 15:28 |
| → AnujSharma joined | 15:28 |
| ← duderonomy left | 15:29 |
| ← thiago left | 15:29 |
| ← crtcji left | 15:29 |
| → Neo4 joined | 15:29 |
| → batrick joined | 15:29 |
| ← abba left | 15:30 |
| ← mlopezviedma left | 15:31 |
| ← shinnya left | 15:31 |
| → mlopezviedma_ joined | 15:31 |
| ← widp left | 15:33 |
| → schleppel joined | 15:34 |
| ← szgyg left | 15:34 |
| → nielsk joined | 15:35 |
| → szgyg joined | 15:36 |
|
rafasc
| furrymcgee: why not? | 15:36 |
| ← berendir left | 15:36 |
| → dreiss joined | 15:37 |
| ← _antares_ left | 15:39 |
| ← Dougie187 left | 15:39 |
| → _antares_ joined | 15:40 |
| ← Arcaelyx left | 15:40 |
| ← AnujSharma left | 15:40 |
| ← schleppel left | 15:41 |
| → AnujSharma joined | 15:41 |
| → smallville7123 joined | 15:41 |
| ← mad_hatter left | 15:41 |
| ← nephyrin left | 15:41 |
| → schleppel joined | 15:42 |
| → nd joined | 15:42 |
| ← Xiti` left | 15:43 |
| ← rpage left | 15:43 |
| → Xiti joined | 15:44 |
| ← nd_ left | 15:45 |
| → Arcaelyx joined | 15:46 |
| ← riemann left | 15:47 |
| ← javlens left | 15:47 |
| → widp joined | 15:47 |
| → pfleck joined | 15:48 |
| ← schleppel left | 15:50 |
| ← orbyt_ left | 15:51 |
| ← flavius left | 15:51 |
| → fr33domlover joined | 15:51 |
| ← smallville7123 left | 15:51 |
| ← m00sehead left | 15:51 |
| → stewie925 joined | 15:52 |
| → jamiejackson joined | 15:52 |
| ← pfleck left | 15:53 |
| → flavius joined | 15:53 |
| → PHPanos joined | 15:53 |
|
PHPanos
| Hey guys | 15:53 |
| → Oatmeal joined | 15:53 |
| → manuelschneid3r joined | 15:54 |
|
PHPanos
| I'm trying to push a new remote branch to the repo, but I get the error that the branch does not match any and "failed to push some refs to repo-url" | 15:54 |
| ← dreiss left | 15:54 |
|
PHPanos
| this is the command I'm trying "git push -u origin feature/my-new-feature" | 15:55 |
| → boombatower joined | 15:55 |
|
_ikke_
| PHPanos: what does git branch return? | 15:55 |
|
| PHPanos @_ikke_ My master branch and my feature branch. I managed to push a new branch just now | 15:56 |
|
PHPanos
| Was it because the branch name wasn't exactly the same as the remote branch name? | 15:57 |
|
| I mean, must they match? | 15:57 |
|
| I think that was it | 15:57 |
| ← mosab left | 15:57 |
|
_ikke_
| PHPanos: A different name does not cause the push to fail, git would just push the branch under the name you have locally | 15:58 |
| ← rfuentess left | 15:59 |
|
_ikke_
| But you have to at least use the name as you called it locally, otherwise git does not know what to push | 15:59 |
|
| but you can tell git to push branch A to remote branch B if you want | 15:59 |
| ← gian-carlo left | 15:59 |
| → durham_ joined | 16:00 |
|
PHPanos
| my local branch name was "my-feature" and I tried to push to feature/my-feature | 16:00 |
|
_ikke_
| right | 16:00 |
|
| so you could've done: git push -u origin my-feature:feature/my-feature | 16:00 |
|
| That specifies that you want to push your local branch feature to remote branch feature/my-feature | 16:01 |
|
furrymcgee
| rafasc: bruteforce your passwords is easy if they have a pattern | 16:01 |
| ← PHPanos left | 16:01 |
| → PHPanos joined | 16:02 |
|
rafasc
| furrymcgee: don't use passwords that follow a pattern? | 16:02 |
|
PHPanos
| thanks | 16:02 |
| ← PHPanos left | 16:02 |
| ← Ishtv4n left | 16:03 |
| ← durham left | 16:04 |
| ← Tobbi_ left | 16:04 |
| ← fission6 left | 16:05 |
| → fission6 joined | 16:06 |
| ← tvw left | 16:07 |
| → raulp joined | 16:07 |
| ← zefferno left | 16:08 |
| → Naq joined | 16:09 |
| → kuzyn joined | 16:09 |
| ← Naq left | 16:09 |
| ← gunnarx left | 16:09 |
| ← stutter_ left | 16:10 |
| → jamiejackson99 joined | 16:11 |
| → stutter_ joined | 16:11 |
| ← jamiejackson left | 16:11 |
| ← _antares_ left | 16:11 |
| → thiago_ joined | 16:11 |
| ← stutter_ left | 16:12 |
| → m00sehead joined | 16:13 |
| → kes joined | 16:13 |
| → spacesuitdiver joined | 16:13 |
| ← jottr left | 16:14 |
| ← jamiejackson99 left | 16:14 |
| → jamiejackson99 joined | 16:14 |
| → schleppel joined | 16:15 |
| ← jamiejackson99 left | 16:15 |
| → _antares_ joined | 16:15 |
| → IanLiu joined | 16:16 |
| → jamiejackson joined | 16:17 |
| ← IanLiu left | 16:17 |
| → IanLiu joined | 16:18 |
| ← rajkane_prajta left | 16:18 |
| ← phluks left | 16:19 |
| → rpage joined | 16:19 |
| ← schleppel left | 16:20 |
| → joe4 joined | 16:21 |
| ← immune2iocane left | 16:21 |
| → terravires joined | 16:22 |
| → nitric joined | 16:23 |
| ← Es0teric left | 16:23 |
| → schleppel joined | 16:23 |
|
terravires
| hi all, I'm a solo dev working on a project. I've got to the point where I'd like to branch "stable" and a "dev" branch. Would the recommend way be to create two branches off master? | 16:24 |
| ← joe3 left | 16:24 |
|
rafasc
| terravires: is master stable? | 16:25 |
|
terravires
| rafasc, right now, yes it's stable. I haven't created the branches yet | 16:25 |
|
rafasc
| then yes. | 16:25 |
|
terravires
| Should master just be "stable" and "dev" branch on its own? | 16:25 |
| → nuka-cola_ joined | 16:26 |
|
grawity
| some projects do that, some do the opposite | 16:26 |
|
Zarthus
| if you want a "stable" and "dev" branch (literal names), your next question would be "what to do with master | 16:26 |
|
terravires
| Yeah, from my reading there are a lot of different ways. So was a bit confused | 16:26 |
|
grawity
| so the answer really is "whichever you prefer" | 16:26 |
|
rain1
| how do icopy bugs from one github repo to a fork? | 16:26 |
| ← Masplus left | 16:26 |
|
grawity
| as Git does not work any differently in either case | 16:26 |
|
rafasc
| rain1: you don't. | 16:27 |
|
grawity
| by convention, when someone else `git clones` your repo, they get "master" checked out, but even that can be changed | 16:27 |
| ← James0r2_ left | 16:27 |
|
grawity
| beyond that, there's no technical advantage | 16:27 |
| ← Oatmeal left | 16:28 |
| ← joe4 left | 16:29 |
| → licnep joined | 16:29 |
|
terravires
| What seems to make sense to me is creating a branch for each release. Say branch for 1.0, 1.2, etc. Then dev branches would get merged into master. Does that sound correct? | 16:29 |
| → xPucTu4 joined | 16:29 |
| → linuxmodder joined | 16:32 |
| ← linuxmodder left | 16:33 |
|
rafasc
| terravires: really depends. Each project has a different workflow. | 16:33 |
| ← Nizumzen left | 16:33 |
|
rafasc
| usually tags are used to denote releases. | 16:33 |
| → linuxmodder joined | 16:33 |
| ← floppydh left | 16:33 |
|
rafasc
| some people like to follow !gitflow | 16:34 |
|
gitinfo
| The description of the gitflow branch workflow model is at http://nvie.com/posts/a-successful-git-branching-model/ while a tool to help implement this workflow is at https://github.com/petervanderdoes/gitflow See http://sethrobertson.github.com/GitBestPractices/#workflow for other workflow suggestions/references | 16:34 |
|
terravires
| rafasc, so my understanding of a tag would just point to a commit? Wouldn't you need a branch if you wanted to then add any fixes for that release? | 16:34 |
| ← mikecmpbll left | 16:34 |
|
rafasc
| but it may be overkill. | 16:34 |
| ← SerialSmile left | 16:34 |
|
terravires
| lol, yeah I've been reading few of those links. Kind of what got me confused. :) | 16:34 |
|
rafasc
| what you said is correct. | 16:35 |
| ← bahamut24 left | 16:35 |
| → orbyt_ joined | 16:36 |
|
grawity
| yes, tags for specific releases, branches for series (e.g. stable-1.0.x branch, stable-1.2.x branch)) | 16:36 |
|
rafasc
| git help workflows | 16:36 |
| ← kurkale6ka left | 16:36 |
|
terravires
| Ok, then lets say I have stable-1.0, master, and dev branches. If I found a critical bug and needed to fix stable, would I commit that change to stable-1.0 and dev branches only? | 16:37 |
|
| I'm thinking that when ready, dev gets merged into master, and then a stable branch is made from that? | 16:38 |
| → ok91 joined | 16:38 |
| ← settermjd left | 16:42 |
| ← ok91 left | 16:42 |
| → ShekharReddy joined | 16:44 |
| ← amirpro left | 16:44 |
| → Oatmeal joined | 16:45 |
| → gian-carlo joined | 16:45 |
| → stutter_ joined | 16:45 |
| ← glebihan left | 16:48 |
| → settermjd joined | 16:48 |
| ← theoceaniscool left | 16:48 |
| ← IanLiu left | 16:48 |
| → pfleck joined | 16:49 |
| ← igemnace left | 16:49 |
| → ferdna joined | 16:49 |
| → applecrumble joined | 16:49 |
| → kfoonamalik joined | 16:50 |
| → Analatorian joined | 16:50 |
| ← Oatmeal left | 16:51 |
| ← relipse left | 16:52 |
| → sanscoeur joined | 16:53 |
| → akushner joined | 16:53 |
| ← jamiejackson left | 16:54 |
| → livingstn joined | 16:56 |
| → regedit joined | 16:58 |
| ← hryniuk left | 16:58 |
| ← durham_ left | 16:58 |
| → durham joined | 16:59 |
| → Fernando-Basso joined | 17:00 |
| ← schleppel left | 17:01 |
| → arraen joined | 17:02 |
| ← livingstn left | 17:02 |
| ← _ADN_ left | 17:03 |
| ← settermjd left | 17:05 |
| ← BallChang-CN left | 17:06 |
| ← arraen left | 17:06 |
| ← TomyWork left | 17:07 |
| → muelleme joined | 17:07 |
| → IanLiu joined | 17:07 |
| ← _antares_ left | 17:07 |
| → schleppel joined | 17:07 |
| → Alystair joined | 17:08 |
|
Alystair
| Hey all, slowly learning best practices. I only tag master with release version after a merge, not the active dev branch, right | 17:08 |
| → Praxi joined | 17:09 |
|
j416
| Alystair: that sounds like a sane approach. | 17:09 |
| → _antares_ joined | 17:09 |
|
Alystair
| it's just that I don't know how tags work - if I create a tag on a branch and merge that branch, does the tag come along with it? | 17:10 |
|
j416
| tags don't belong to branches. | 17:10 |
|
Alystair
| oh | 17:10 |
| ← qpdb left | 17:10 |
|
j416
| a tag references a commit. | 17:10 |
|
Alystair
| it's like a shortcut type of thing! got it | 17:10 |
|
j416
| whether or not that commit is on some branch or not is irrelevant | 17:10 |
|
Alystair
| ok I can see why putting a version number tag on a branch would be a bad idea | 17:10 |
|
j416
| you can't put a tag on a branch. | 17:11 |
|
| also, annotated tags are a good idea. That way you can record a message along with the tag, as well as record when the tag was created and who created it. You also have the option to sign tags, if needed. | 17:11 |
|
Alystair
| I'm in the gitlab interface right now and "new tag" allows me to select non-master branch | 17:11 |
|
j416
| man git-tag for more info on how to create an annotated tag (-a). | 17:12 |
|
gitinfo
| the git-tag manpage is available at https://gitirc.eu/git-tag.html | 17:12 |
|
j416
| sorry, I have no idea how gitlab works with tags. | 17:12 |
| ← muelleme left | 17:12 |
|
j416
| I'd recommend doing it on the cmdline. | 17:12 |
|
| if you tag a branch, that just means the tag will be referencing whatever commit that branch happens to currently reference. | 17:13 |
|
Alystair
| yeah it gives me an area to put in a message and release notes which are a gitlab feature | 17:13 |
|
j416
| i.e., the branch name is just a shortcut to name a specific commit. | 17:13 |
|
Alystair
| yeah that's how I thought it'd work, cool | 17:13 |
| ← applecrumble left | 17:13 |
|
j416
| which is what branch names are -- just easy ways to keep track of the last commit of each branch | 17:13 |
|
_ikke_
| both tags and branches are what git calls refs | 17:14 |
| → Oatmeal joined | 17:14 |
|
_ikke_
| a branch called foo is fully qualified refs/heads/foo, a tag called v1, is fully quallified refs/tags/v1 | 17:14 |
|
| git just treats tags differently from branches | 17:15 |
| → crtcji joined | 17:17 |
| ← _antares_ left | 17:18 |
| → vdv joined | 17:19 |
| ← Neo4 left | 17:20 |
| → Regon joined | 17:20 |
| ← venmx left | 17:21 |
| → _antares_ joined | 17:22 |
| → duderonomy joined | 17:25 |
| → dreiss joined | 17:26 |
| → jottr joined | 17:26 |
| ← ToBeCloud left | 17:27 |
| → wootehfoot joined | 17:27 |
| → wreed joined | 17:27 |
|
Alystair
| hmm I just cloned and I'm not seeing my dev branch, only * master | 17:28 |
| → Mattiaslndstrm joined | 17:30 |
|
_ikke_
| Alystair: git branch -r | 17:30 |
|
| Alystair: you'll see something like origin/<branchname> | 17:30 |
|
| Alystair: then you can just do git checkout <branchname> | 17:30 |
|
Alystair
| oh cool all I had to do was git checkout branchName and it... magically changed? o_O | 17:31 |
|
| wow! | 17:31 |
|
_ikke_
| Alystair: when you clone a repository, git only creates 1 'local' branch, the default branch, which is generally master | 17:31 |
| ← xPucTu4 left | 17:31 |
|
_ikke_
| You already have the other branches, but then in a different form | 17:31 |
|
Alystair
| as soon as I issue the git checkout command it magically switches all the stuff around :o | 17:31 |
|
_ikke_
| yeah, that's a git do-what-i-mean command | 17:32 |
|
Alystair
| that's so frikkin' rad | 17:32 |
|
_ikke_
| note that it won't work if you have more than one remote with the same branches | 17:32 |
| → ok91 joined | 17:33 |
|
Alystair
| well as long as when more devs start making their own branches they are uniquely named it'll work out | 17:33 |
|
| not that I need to checkout switch ever again | 17:33 |
|
_ikke_
| You'll probably need to eventually | 17:34 |
|
| But you can always directly checkout local branches | 17:34 |
| ← crtcji left | 17:35 |
| ← duderonomy left | 17:35 |
| ← stutter_ left | 17:36 |
| → Have-Quick joined | 17:36 |
| → TomyLobo joined | 17:37 |
| → jnavila joined | 17:37 |
| → stutter_ joined | 17:37 |
| → Narrat joined | 17:40 |
| → James0r joined | 17:40 |
| ← Arcaelyx left | 17:40 |
| ← Alystair left | 17:40 |
| → dpyro joined | 17:40 |
| → xPucTu4 joined | 17:41 |
| → Arcaelyx_ joined | 17:41 |
| ← Schrostfutz left | 17:41 |
| → borkr joined | 17:44 |
| → Cavallari joined | 17:44 |
| ← wreed left | 17:45 |
| → theoceaniscool joined | 17:48 |
| → royal_screwup21 joined | 17:49 |
| → wreed joined | 17:49 |
|
royal_screwup21
| I'm using an access token to allow my IDE to access my repository (for syncing settings). It's pushed the settings to the repo. Now, will I need the same access token when I want to import my settings from github? | 17:50 |
| → Nizumzen joined | 17:50 |
| → Es0teric joined | 17:50 |
| ← AnujSharma left | 17:50 |
|
royal_screwup21
| or can I generate another one? | 17:50 |
|
_ikke_
| royal_screwup21: An access token should just be that, give you access | 17:51 |
|
royal_screwup21
| _ikke_: ah okay. I thought an access token was unique to a repository. So if I delete my access token, generate new one, my IDE will still be able to access the repo | 17:52 |
| ← Impaloo left | 17:52 |
| → Impaloo joined | 17:52 |
| ← nikheizen left | 17:53 |
| ← ok91 left | 17:53 |
| → _ADN_ joined | 17:53 |
| → ok91 joined | 17:54 |
|
_ikke_
| They can be unique per repo, but it's not an encryption key or something like that | 17:54 |
| ← Impaloo left | 17:56 |
| → coco joined | 17:56 |
| coco → Guest13283 | 17:57 |
| → shabius_ joined | 17:57 |
| → Impaloo joined | 17:57 |
| ← ok91 left | 17:58 |
| ← quite_ left | 17:58 |
| ← shabius_ left | 17:58 |
| ← shabius left | 17:59 |
| → quite_ joined | 18:00 |
| ← MarioBranco left | 18:01 |
| → shabius joined | 18:01 |
| → applecrumble joined | 18:03 |
| → blackmesa joined | 18:05 |
| → jstimm joined | 18:05 |
| ← Guest13283 left | 18:07 |
| → c0c0 joined | 18:08 |
| → dviola joined | 18:09 |
| → robattila256 joined | 18:10 |
| ← _antares_ left | 18:12 |
| ← pfleck left | 18:13 |
| ← Mattiaslndstrm left | 18:14 |
| → WeirdTolkienishF joined | 18:14 |
| ← WeirdTolkienishF left | 18:14 |
| → WeirdTolkienishF joined | 18:14 |
| → dfee joined | 18:14 |
| ← robattila256 left | 18:15 |
|
dfee
| i've made significant changes, but i want to commit it as a new branch (I didn't have the foresight until I began making changes). how would i do this? | 18:15 |
|
grawity
| git checkout -b foo | 18:15 |
|
| then continue with committing | 18:15 |
| ← Tobbi left | 18:16 |
|
dfee
| any change i'll lose the changes i've made? | 18:16 |
|
grawity
| with that exact command (substitute the branch name with your own), zero | 18:16 |
|
dfee
| grawity: excellent. thanks | 18:16 |
| → robattila256 joined | 18:17 |
|
rain1
| can you help me merge changes from another fork to my fork? | 18:17 |
| → ringer1 joined | 18:17 |
|
rain1
| I did this: git remote add yhirose https://github.com/yhirose/linenoise.git | 18:17 |
|
| but git pull yhirose refs/remotes/origin/utf8-support errors, couldn't find remote ref | 18:17 |
|
| git show-ref in his fork prints: refs/remotes/origin/utf8-support im not sure how to address it | 18:17 |
|
grawity
| those are two separate repositories | 18:18 |
|
| you're fetching from github, but `git show-ref` is being run in yhirose's own PC | 18:18 |
|
| so what yhirose's local repo refers to as "refs/remotes/origin/utf8-support", is a regular branch "refs/heads/utf8-support" on Github | 18:19 |
| → sameerynho joined | 18:19 |
| ← [1]ringer1 left | 18:19 |
|
grawity
| you can see it with `git ls-remote yhirose` or `git remote show yhirose`, and get it with `git pull yhirose utf8-support` | 18:19 |
|
rain1
| nice! thank you very much | 18:19 |
|
| i understand it now, and applied the changes | 18:20 |
|
grawity
| and if you meant that *you* cloned yhirose/linenoise and ran git show-ref... the explanation is still exactly the same. | 18:20 |
| ← djapo left | 18:20 |
| → Sasazuka joined | 18:20 |
| ← flavius left | 18:21 |
| → Mattiaslndstrm joined | 18:21 |
| → djapo joined | 18:21 |
| → _antares_ joined | 18:22 |
| ← sauvin left | 18:23 |
| → freimatz joined | 18:23 |
| → flavius joined | 18:23 |
| ← Nizumzen left | 18:24 |
| → energizer joined | 18:24 |
| ← kes left | 18:27 |
| ← dreiss left | 18:27 |
| ← _antares_ left | 18:27 |
| ← rnsanchez left | 18:29 |
| ← manuelschneid3r left | 18:30 |
| ← terravires left | 18:31 |
| → venmx joined | 18:31 |
| ← wreed left | 18:32 |
| ← sim590 left | 18:33 |
| → amirpro joined | 18:33 |
| → pfleck joined | 18:34 |
| ← royal_screwup21 left | 18:36 |
| → sim590 joined | 18:36 |
| → Schrostfutz joined | 18:38 |
| → dreiss joined | 18:39 |
| Arcaelyx_ → Arcaelyx | 18:40 |
| ← Oatmeal left | 18:40 |
| ← sim590 left | 18:41 |
| ← jottr left | 18:41 |
| ← kuzyn left | 18:43 |
| ← stutter_ left | 18:44 |
| → Alystair joined | 18:44 |
| → rosspab joined | 18:46 |
| → duderonomy joined | 18:46 |
| ← rosspab left | 18:47 |
| → sim590 joined | 18:47 |
| ← linuxmodder left | 18:48 |
| → jimmyrcom_ joined | 18:48 |
| ← duderonomy left | 18:49 |
| ← dendazen left | 18:50 |
| ← Worldexe left | 18:50 |
| ← pfleck left | 18:51 |
| → duderonomy joined | 18:53 |
| → stutter_ joined | 18:55 |
| ← Es0teric left | 18:55 |
| → fabioluciano joined | 18:57 |
| ← orbyt_ left | 18:57 |
| ← c0c0 left | 18:58 |
| → nowhereman_ joined | 19:01 |
| → pfleck joined | 19:02 |
| ← ShekharReddy left | 19:05 |
| ← venmx left | 19:05 |
| → jottr joined | 19:07 |
| ← pks left | 19:09 |
| → pks joined | 19:10 |
| → manuelschneid3r joined | 19:10 |
| → rominronin joined | 19:11 |
| ← jungsubk left | 19:12 |
| → jameser joined | 19:12 |
| ← edwardly left | 19:12 |
| → Es0teric joined | 19:12 |
| ← plexigras left | 19:13 |
| ← mattcen left | 19:15 |
| ← jameser left | 19:16 |
| ← pfleck left | 19:16 |
| → edwardly joined | 19:17 |
| ← edwardly left | 19:17 |
| → edwardly joined | 19:17 |
| → mattcen joined | 19:17 |
| → KeyJoo joined | 19:18 |
| → nowhere_man joined | 19:19 |
| ← nowhereman_ left | 19:19 |
| ← nitric left | 19:20 |
| → vovs03 joined | 19:20 |
| → pfleck joined | 19:20 |
| → Nizumzen joined | 19:25 |
| ← amirpro left | 19:25 |
| ← jedix left | 19:25 |
| ← duderonomy left | 19:26 |
| → amirpro joined | 19:26 |
| → nitric joined | 19:26 |
| ← regedit left | 19:27 |
| → dp joined | 19:28 |
| → _antares_ joined | 19:28 |
| → bachler joined | 19:29 |
| → orbyt_ joined | 19:31 |
| ← cdown left | 19:32 |
| ← infinisil left | 19:33 |
| ← _antares_ left | 19:33 |
| → infinisil joined | 19:33 |
| ← jimmyrcom_ left | 19:34 |
| → jimmyrcom_ joined | 19:36 |
| → ustekne joined | 19:38 |
| ← fission6 left | 19:40 |
| → Karyon joined | 19:42 |
| ← infinisil left | 19:43 |
| → infinisil joined | 19:44 |
| → m0viefreak joined | 19:45 |
| → jungsubk joined | 19:45 |
| ws2k3 → yctn_ | 19:51 |
| → beefjoe joined | 19:51 |
| → fission6 joined | 19:53 |
| ← fission6 left | 19:54 |
| ← netlar left | 19:54 |
| → tvw joined | 19:59 |
| ← dreiss left | 19:59 |
| → jedix joined | 20:00 |
| ← m00sehead left | 20:01 |
| ← madewokherd left | 20:02 |
| ← rominronin left | 20:04 |
| → dendazen joined | 20:04 |
| ← Schrostfutz left | 20:04 |
| ← emg left | 20:05 |
| ← imp left | 20:05 |
| ← borkr left | 20:11 |
| ← Nizumzen left | 20:11 |
| ← amirpro left | 20:12 |
| → pfloyd joined | 20:13 |
|
pfloyd
| What's the easiest way to identify a large commit? Not just a large file, could have been a commit of say 1,000,000 files of 1M each or something vs. just a 1GB file. I found some instructions using git rev-list and git verify-pack but they seem specific to finding a big file. | 20:14 |
|
_ikke_
| pfloyd: not sure if it helps, but github release a tool that could identify potential issues with repositories regarding large objects | 20:15 |
| ← IanLiu left | 20:15 |
| → dreiss joined | 20:15 |
| → qswz joined | 20:15 |
|
qswz
| what's the best way to ignore tags when doing git pull? | 20:15 |
| → Cavallari1 joined | 20:15 |
|
qswz
| I want just master actually | 20:15 |
| ← nowhere_man left | 20:16 |
|
pfloyd
| _ikke_: is it "git-sizer" (https://blog.github.com/2018-03-05-measuring-the-many-sizes-of-a-git-repository/) ? | 20:16 |
| ← freimatz left | 20:16 |
| → Schrostfutz joined | 20:17 |
|
_ikke_
| pfloyd: yes, that's what I meant, couldn't find it anymore | 20:17 |
|
grawity
| git rev-list a..b | while read c; do git ls-tree -r -l $c | awk -v c=$c '{n += $4} END {print n, c}' | numfmt --to=si; done | 20:17 |
| ← j7k6 left | 20:18 |
|
rafasc
| qswz: have you tried searching man git pull for an option to pull with no-tags? | 20:18 |
|
gitinfo
| qswz: the git-pull manpage is available at https://gitirc.eu/git-pull.html | 20:18 |
| → j7k6 joined | 20:18 |
| ← Cavallari left | 20:18 |
| Cavallari1 → Cavallari | 20:18 |
| ← wootehfoot left | 20:19 |
| → Cavallari1 joined | 20:19 |
| → regedit joined | 20:19 |
|
pfloyd
| _ikke_: thanks! works great | 20:19 |
|
_ikke_
| pfloyd: yw | 20:19 |
|
| .trigger_edit git_sizer A tool to find potential issues with repositories from github, See: https://blog.github.com/2018-03-05-measuring-the-many-sizes-of-a-git-repository/ | 20:20 |
|
gitinfo
| _ikke_: Okay. | 20:20 |
| ← jstimm left | 20:20 |
| → Oatmeal joined | 20:22 |
| ← Cavallari left | 20:23 |
| → Cavallari joined | 20:23 |
| ← Cavallari1 left | 20:24 |
| ← Fernando-Basso left | 20:25 |
| ← jottr left | 20:27 |
|
qswz
| thanks | 20:28 |
| ← dendazen left | 20:29 |
|
qswz
| I'd love a gotconfig option tho | 20:29 |
|
| .gitconfig* | 20:29 |
|
| https://stackoverflow.com/a/37165609/3183756 looks good | 20:29 |
| → nivag joined | 20:30 |
| → _antares_ joined | 20:30 |
|
qswz
| well explained in the man page too | 20:30 |
| → nephyrin joined | 20:30 |
| ← Oatmeal left | 20:30 |
| ← jungsubk left | 20:33 |
| → doubtful joined | 20:34 |
| ← _antares_ left | 20:35 |
|
rafasc
| qswz: that still pulls tags though. | 20:35 |
| → madewokherd joined | 20:35 |
|
rafasc
| qswz: git clone <url> --single-branch master --no-tags | 20:38 |
| → mikecmpbll joined | 20:44 |
| ← Typhon left | 20:46 |
| → nowhere_man joined | 20:47 |
| → crtcji joined | 20:47 |
| → hmoreno joined | 20:48 |
| ← crose left | 20:48 |
| → _antares_ joined | 20:50 |
| ← rpage left | 20:50 |
| ← morenoh149 left | 20:51 |
| ← _antares_ left | 20:51 |
| ← infinisil left | 20:51 |
| → infinisil joined | 20:52 |
| → dendazen joined | 20:52 |
| → linuxmodder joined | 20:52 |
| ← linuxmodder left | 20:53 |
| → linuxmodder joined | 20:54 |
| ← crtcji left | 20:54 |
| ← linuxmodder left | 20:55 |
| → Typhon joined | 20:55 |
| → linuxmodder joined | 20:55 |
| → Cavallari1 joined | 20:56 |
| ← Phylock left | 20:58 |
| ← blackmesa left | 20:58 |
| → duderonomy joined | 20:59 |
| → blackmesa joined | 20:59 |
| ← duderonomy left | 20:59 |
| ← Cavallari left | 21:00 |
| Cavallari1 → Cavallari | 21:00 |
| ← doubtful left | 21:00 |
| ← jnavila left | 21:01 |
| → Tobbi joined | 21:01 |
| → RougeR joined | 21:03 |
| → muelleme joined | 21:04 |
| → phluks joined | 21:06 |
| → Oatmeal joined | 21:08 |
|
majuk
| Hey all. So I made a commit to 'master' on my project that I meant to create a new branch for [as it turns off some functionality to work around a temporary limitation of the system]. | 21:10 |
| ← orbyt_ left | 21:10 |
|
grawity
| create a new branch off master now, then roll back master to 1 commit ago | 21:10 |
|
majuk
| graingert: ok, the rollback bit, `git reset` command? | 21:10 |
|
| or something else? | 21:11 |
| ← muelleme left | 21:12 |
| ← stutter_ left | 21:13 |
| ← hmoreno left | 21:13 |
| → jnavila joined | 21:14 |
| ← jnavila left | 21:15 |
| ← gian-carlo left | 21:16 |
| ← Oatmeal left | 21:17 |
| ← jimmyrcom_ left | 21:18 |
|
osse
| majuk: reset is fine | 21:19 |
| ← pfleck left | 21:19 |
|
majuk
| I just did it with rebase. But of course I forgot to switch off the new branch before rebasing so now I'm just chasing my tail. | 21:20 |
|
| #fun | 21:20 |
| → jimmyrcom_ joined | 21:20 |
| ← vovs03 left | 21:20 |
| ← Cavallari left | 21:22 |
| ← Es0teric left | 21:25 |
| → orbyt_ joined | 21:25 |
| → kyan joined | 21:26 |
| ← dfee left | 21:26 |
| → gunnarx joined | 21:27 |
| ← TomyLobo left | 21:27 |
|
oprypin
| majuk, a branch is just a pointer to a commit, nothing more. just move some pointers around, it's totally fine :D | 21:28 |
|
majuk
| oprypin: Yea, it would be, but then I need to be able to re-push to bitbucket | 21:29 |
|
| So I'm using revert for the master tree. One more commit. Little ugly but se la vie. | 21:29 |
|
oprypin
| good | 21:29 |
| ← RougeR left | 21:29 |
| ← dp left | 21:30 |
| → jottr joined | 21:30 |
| ← Have-Quick left | 21:32 |
|
graingert
| majuk: have you looked in git reflog? | 21:32 |
| → m00sehead joined | 21:32 |
| ← djapo left | 21:32 |
|
graingert
| majuk: maybe delete the repo and clone out again? | 21:33 |
| ← Redfoxmoon left | 21:33 |
|
majuk
| Yea. I've got the branch I want, now it's just getting master to the right place. Almost there. | 21:33 |
| → RougeR joined | 21:33 |
|
majuk
| mebbe | 21:34 |
| → livingstn joined | 21:34 |
| → djapo joined | 21:34 |
| ← livingstn left | 21:35 |
| ← jottr left | 21:36 |
|
majuk
| Yea, revert got it. Think I'm good here. Thanks for y'alls input | 21:36 |
| ← energizer left | 21:37 |
| → energizer joined | 21:37 |
| ← phluks left | 21:39 |
| ← rafasc left | 21:40 |
| → PioneerAxon joined | 21:40 |
| ← PioneerAxon_ left | 21:41 |
| ← energizer left | 21:42 |
| → energizer joined | 21:42 |
| ← Regon left | 21:43 |
| → Redfoxmoon joined | 21:43 |
| → dfee joined | 21:44 |
| ← Redfoxmoon left | 21:48 |
| → Redfoxmoon joined | 21:48 |
| ← energizer left | 21:49 |
| → energizer joined | 21:50 |
| ← greggerz left | 21:50 |
| ← energizer left | 21:50 |
| → energizer joined | 21:50 |
| ← rain1 left | 21:51 |
| → keepguessing joined | 21:53 |
| ← tombusby left | 21:53 |
| ← spacesuitdiver left | 21:54 |
|
keepguessing
| I have a file that is listed in one of the folders in git ignore. How do I force pull that file? | 21:54 |
| → Arcaelyx_ joined | 21:54 |
| → tombusby joined | 21:54 |
|
keepguessing
| All searches on google kind of tell me how to use gitignore | 21:57 |
| ← Arcaelyx left | 21:57 |
| ← energizer left | 21:58 |
| → energizer joined | 21:58 |
|
SporkWitch
| !checkout | 22:00 |
|
gitinfo
| checkout does two different things! (1) no file/path argument: 'git checkout <ref>' = switches to a branch or commit. Uncommitted changes are carried over; if they don't apply cleanly the whole operation rolls back. (2) 'git checkout [<commit>] -- <path>' = overwrites the given files/paths with different versions, from <commit> or (if not given) from the index. | 22:00 |
| ← majuk left | 22:00 |
|
SporkWitch
| keepguessing: ^ | 22:00 |
|
keepguessing
| hmm I tried something like git checkout HEAD dir/file and it did not work. | 22:01 |
|
| Should try to find the revision where it was changed? | 22:01 |
|
SporkWitch
| does that file exist in that commit? | 22:01 |
|
keepguessing
| SporkWitch: ^^^^ | 22:01 |
|
cbreak
| git checkout X Y checks out file Y from commit X | 22:01 |
|
| you have to specify the commit that contains the state you want to have | 22:02 |
|
keepguessing
| SporkWitch: cbreak Ah ok. | 22:02 |
|
SporkWitch
| you say it's in gitignore, so you'd have had to have added the file in a previous commit, i believe it would no longer be included in future commits, but i'm not 100% sure, it could just stop tracking changes but keep it | 22:02 |
| ← schleppel left | 22:02 |
|
cbreak
| .gitignore only applies to untracked files | 22:02 |
|
| if a file is tracked, then .gitignore has no relevance at all | 22:03 |
|
| git can't track and ignore a file at the same time, so it'll just track it if there's conflicting requests :) | 22:03 |
|
SporkWitch
| ah okay, wasn't sure; normally you do it before it ever gets added, heh | 22:03 |
|
cbreak
| you can add ignored file with git add -f | 22:03 |
|
michael2
| Hi all. every time I run `git checkout somebranch', git checkout returns [fatal: Unable to create '/.git/index.lock': File exists] - this happens repeatedly in multiple repos. does anyone know what the cause of this is? | 22:03 |
|
keepguessing
| cbreak: thanks. I will try find the commit where it was last changed. | 22:04 |
|
SporkWitch
| michael2: most likely, something crashed during a previous operation | 22:04 |
|
cbreak
| michael2: sounds like the index.lock file exists | 22:04 |
|
| do you use git concurrently on the same repo? | 22:04 |
| → jottr joined | 22:04 |
|
cbreak
| keepguessing: git log --follow -- filename | 22:04 |
|
| keepguessing: that'll tell you all the commits that change that file | 22:04 |
|
SporkWitch
| cbreak: handy! didn't know about that one :) | 22:05 |
|
keepguessing
| cbreak: thanks. | 22:05 |
|
cbreak
| you only need --follow if you want to track it across renames | 22:05 |
|
| you can throw in -p if you want to see the changes | 22:06 |
| ← CEnnis91 left | 22:07 |
| → amirpro joined | 22:08 |
|
michael2
| SporkWitch: cbreak. how does a git process crash? that would imply git was an ongoing running process, like a browser or text editor or a daemon/service right? but git is usually just invoked, then exits a few milliseconds later (like say grep) - so how can git crash without me noticing? | 22:08 |
|
SporkWitch
| wtf do you think invoking it does...? | 22:09 |
|
michael2
| it starts the program | 22:09 |
|
cbreak
| michael2: if it runs, it can crash | 22:09 |
| ← jottr left | 22:09 |
|
cbreak
| some of the things git does can take a long time | 22:09 |
|
| like a big checkout, a fetch / push, or also a repack | 22:09 |
|
michael2
| but they are all interactive - im the one invoking them | 22:10 |
|
SporkWitch
| invoke program → do stuff 1 → create index.lock → do stuff 2 → delete index.lock → do stuff | 22:10 |
|
cbreak
| the lock file exists to prevent multiple git processes from changing the index at the same time | 22:10 |
| ← energizer left | 22:10 |
|
cbreak
| it exists either because an other git is running | 22:10 |
|
michael2
| It runs right in front of me. I would know if it crashed/error exited | 22:10 |
|
cbreak
| or because it ran and crashed | 22:10 |
| ← bachler left | 22:12 |
|
michael2
| yeah, so the lock file does what all lock files do. that doesn't explain the fact that I would know if the program suffered some failure | 22:12 |
|
SporkWitch
| anyone able to remote into your machine? It'll lock for a remote pushing to it, too | 22:12 |
| → jameser joined | 22:12 |
|
michael2
| no, no one else is able to remote in | 22:12 |
|
SporkWitch
| the presence of the lock file and your ignorance of when it showed up demonstrates incontravertibly that you did NOT know lol | 22:13 |
|
| it didn't just magically appear :) | 22:13 |
| ← tvw left | 22:13 |
| → bachler joined | 22:13 |
|
michael2
| yeah, and what I dont' know about git could fill a warehouse. problem is findout out what is causing this | 22:14 |
|
| as its happening repeatedly - 4, 5 times a day | 22:14 |
|
SporkWitch
| 1) you, 2) legitimate automation somewhere, 3) malware, 4) malicious user, 5) someone with access trolling you | 22:14 |
|
michael2
| i suspect 2) | 22:15 |
|
SporkWitch
| 3 and 4 are least like, 1 is most likely | 22:15 |
| ← mooasaurus left | 22:15 |
|
SporkWitch
| followed closely by 5 | 22:15 |
| → mooasaurus joined | 22:15 |
| ← crimson_king left | 22:16 |
| ← jameser left | 22:17 |
|
michael2
| 5) is like if i pay the bitcoin ransom to the crypto locker virus on my system - git will suddenly allow me to checkout different branches? otherwise I use a git wrapper: vim-fugitive. which prob does many git plumbing operations - could be that | 22:19 |
| ← Tobbi left | 22:20 |
|
michael2
| and if git failed - the wrapper would be blocking error messages from reaching me | 22:20 |
| ← pfloyd left | 22:21 |
| → fairuz joined | 22:22 |
| ← mattcen left | 22:22 |
| ← fabioluciano left | 22:23 |
| ← dunpeal left | 22:24 |
|
michael2
| as another side question. If a repository contains submodules - and that submodules upstream contains new commits - what is the correct way to fetch those updates? | 22:24 |
| ← vdv left | 22:24 |
| ← linuxmodder left | 22:25 |
|
michael2
| 1) cd into the submodule and run the usually fetch + merge etc commands | 22:25 |
| → linuxmodder joined | 22:25 |
|
michael2
| 2) run some command at the parent repo through the `git submodule ...' sub-command? | 22:26 |
| → Neo4 joined | 22:27 |
| → mattcen joined | 22:27 |
| → IanLiu joined | 22:32 |
| ← linuxmodder left | 22:33 |
| ← KeyJoo left | 22:34 |
| → spacesuitdiver joined | 22:36 |
| ← dendazen left | 22:36 |
| ← dege left | 22:41 |
| ← AndresInSpace left | 22:42 |
| → YuGiOhJCJ joined | 22:43 |
| ← brethil left | 22:44 |
| → wisp_ joined | 22:44 |
| → Have-Quick joined | 22:45 |
| → brethil joined | 22:46 |
| ← inovas left | 22:48 |
| ← Mir4g3 left | 22:49 |
| → Mir4g3 joined | 22:50 |
| ← leeN left | 22:50 |
| → duderonomy joined | 22:51 |
| ← sz0 left | 22:53 |
| ← duderonomy left | 22:53 |
| → inovas joined | 22:59 |
| ← nuka-cola_ left | 22:59 |
| ← ferdna left | 23:00 |
| ← IanLiu left | 23:01 |
| → adambrenecki joined | 23:01 |
| ← cek left | 23:01 |
| ← sanscoeur left | 23:01 |
| ← kiltzman left | 23:03 |
| ← thiago_ left | 23:03 |
| ← finalbeta left | 23:04 |
| → kiltzman joined | 23:05 |
| ← fairuz left | 23:06 |
| → thiago joined | 23:06 |
| ← Schrostfutz left | 23:08 |
| ← volestorm_ left | 23:09 |
| → volestorm joined | 23:09 |
| ← akushner left | 23:11 |
| → akushner joined | 23:11 |
| ← _ikke_ left | 23:11 |
| ← blackmesa left | 23:14 |
| → rafasc joined | 23:15 |
| → venmx joined | 23:15 |
| ← stamina left | 23:22 |
| → g00s joined | 23:23 |
| → jottr joined | 23:25 |
| ← volestorm left | 23:25 |
| → volestorm joined | 23:26 |
| ← Gurkenglas left | 23:27 |
| ← Code_Bleu left | 23:29 |
| ← jottr left | 23:30 |
| ← dfee left | 23:30 |
| → _ikke_ joined | 23:31 |
| ← diogenese left | 23:33 |
| → CEnnis91 joined | 23:33 |
| ← beefjoe left | 23:37 |
| ← englishm_work left | 23:42 |
| ← drodger left | 23:44 |
| → _antares_ joined | 23:45 |
| ← mikecmpbll left | 23:47 |
| ← orbyt_ left | 23:48 |
| → goweol joined | 23:48 |
| ← dreiss left | 23:49 |
| → drodger joined | 23:49 |
| ← _antares_ left | 23:50 |
| → diogenese joined | 23:50 |
| ← qswz left | 23:50 |
| ← applecrumble left | 23:52 |
| ← _ikke_ left | 23:53 |
| → Code_Bleu joined | 23:54 |
| → dendazen joined | 23:55 |
| → dfee joined | 23:58 |
| → alhariel joined | 23:58 |
| ← Code_Bleu left | 23:59 |
| ← thiago left | 23:59 |