| 2012-06-26 |
| ← wagle left | 00:00 |
| ← mikepack_ left | 00:02 |
| → leilaM joined | 00:03 |
| ← Zespre left | 00:03 |
| → Zespre joined | 00:03 |
| → kukks joined | 00:04 |
| ← kukks left | 00:04 |
| → kukks joined | 00:04 |
| → aspotashev joined | 00:04 |
| ← ashphy left | 00:05 |
| ← cjz left | 00:06 |
| → yizumi joined | 00:06 |
| → p3rror joined | 00:07 |
| → oriba_ joined | 00:08 |
| ← twisted` left | 00:09 |
| ← leilaM left | 00:10 |
| ← dzonder left | 00:10 |
| → Dave^| joined | 00:10 |
| ← aselder left | 00:11 |
| ← teknopaul left | 00:11 |
| → _huoxito joined | 00:12 |
| ← oriba left | 00:12 |
| → mishok13 joined | 00:12 |
| → wagle joined | 00:13 |
| → twisted` joined | 00:13 |
| ← adammokan left | 00:14 |
| ← neurodrone left | 00:15 |
| → rchavik joined | 00:15 |
| ← rchavik left | 00:15 |
| → rchavik joined | 00:15 |
| ← ebneter left | 00:15 |
| → iwoj joined | 00:16 |
| ← LekeFly left | 00:17 |
| ← tewecske left | 00:17 |
| → jjbohn joined | 00:18 |
| ← teweWORK left | 00:18 |
| → LekeFly joined | 00:18 |
| → lnostdal__ joined | 00:19 |
| ← serj left | 00:19 |
| ← mishok13 left | 00:20 |
| → serj joined | 00:20 |
| ← raykyri left | 00:20 |
| ← serj left | 00:20 |
| ← p3rror left | 00:20 |
| ← TrahDivad left | 00:21 |
| → mritz joined | 00:21 |
| ← Sil4nc4 left | 00:21 |
| → serj joined | 00:21 |
| ← mklappstuhl left | 00:22 |
| ← lnostdal_ left | 00:22 |
| → ebneter joined | 00:22 |
| → ziggles joined | 00:23 |
| ← Destos left | 00:23 |
| → Targen joined | 00:25 |
| → zx joined | 00:25 |
| oriba_ → oriba | 00:25 |
| ← andref_dias left | 00:25 |
| → raykyri joined | 00:27 |
| → jbohn joined | 00:28 |
| → apok joined | 00:29 |
| ← hyperair left | 00:30 |
| ← jjbohn left | 00:30 |
| → hyperair joined | 00:31 |
| ← cdash004 left | 00:32 |
| ← Cromulent left | 00:33 |
| → p3rror joined | 00:33 |
| ← iamjarvo left | 00:34 |
| ← tr-808 left | 00:35 |
| → tr-808 joined | 00:35 |
| ← zx left | 00:35 |
| → kephas joined | 00:36 |
| → leo2007 joined | 00:36 |
|
leo2007
| switching branches usually causes massive recompilation, which can take a long time. Has anyone been annoyed by this problem? | 00:36 |
|
bremner
| yes | 00:37 |
| ← yizumi left | 00:37 |
| ← jbohn left | 00:37 |
| → Escherial joined | 00:38 |
|
bremner
| dunno anything sensible to do about it though. | 00:38 |
|
Escherial
| hey, is there a way when resolving merge conflicts to simply take one of the two sources? | 00:39 |
| ← toothr left | 00:39 |
| → toothrot joined | 00:39 |
| ← toothrot left | 00:39 |
| → toothrot joined | 00:39 |
| ← nowhereman left | 00:39 |
|
Escherial
| i've pulled a commit with conflicts to my base, but i know the remote's correct and i don't want to slog through manually merging it all | 00:39 |
| → jhardinee joined | 00:39 |
|
leo2007
| Escherial: checkout git merge -s theirs | 00:41 |
|
avpx
| ^ | 00:41 |
| → booginga joined | 00:42 |
| → BarryCrayon joined | 00:42 |
| ← aantix left | 00:43 |
| ← ehsan left | 00:43 |
| ← HyperNerdV2 left | 00:44 |
| ← etcetera left | 00:44 |
| → ehsan joined | 00:44 |
| → tigrang joined | 00:45 |
| ← Zespre left | 00:46 |
| → Zespre joined | 00:46 |
| → etcetera joined | 00:46 |
| ← dreiss_ left | 00:46 |
| ← ipalaus left | 00:46 |
| ← BarryCrayon left | 00:47 |
| ← SkullG4m3 left | 00:47 |
|
Escherial
| erm, is it still possible to merge now that i'm in a conflicted state? | 00:47 |
| ← ology left | 00:47 |
|
Escherial
| i'm not really sure what that means, by the way...how does git keep track of the fact that i'm conflicted? | 00:47 |
|
bremner
| Escherial: git status | 00:48 |
|
| well, technically the index | 00:48 |
| ← ehsan left | 00:49 |
| ← mritz left | 00:49 |
| ← oriba left | 00:49 |
|
bremner
| Escherial: one option is to use the output from git status -s and run git checkout remote/branch file on the appropriate files | 00:49 |
|
| a one-liner in a shell | 00:49 |
|
Escherial
| ah, if it's just a matter of checking them out from the remote branch, i think i can handle that | 00:50 |
| ← wagle left | 00:51 |
| → kenperkins joined | 00:52 |
|
Escherial
| sorry, have to go; thanks for the advice | 00:52 |
| → wagle joined | 00:52 |
|
bremner
| good luck | 00:52 |
|
Escherial
| thanks :) | 00:52 |
| ← Escherial left | 00:52 |
| ← SkAzZ left | 00:52 |
| → bigsky_ joined | 00:53 |
| ← r0bby left | 00:56 |
| → ehsan joined | 00:58 |
| ← ISF left | 01:01 |
| ← MrGlass left | 01:01 |
| → MrGlass joined | 01:02 |
| → martialcoder joined | 01:02 |
| ← andrewhl left | 01:04 |
| → Bass2 joined | 01:04 |
| ← tonsofpcs left | 01:05 |
| ← mtytel left | 01:05 |
| infogulch → infogulch|afk | 01:05 |
| ← etcetera left | 01:05 |
| ← Bass2 left | 01:05 |
| → tonsofpcs joined | 01:06 |
| → xinming_ joined | 01:06 |
| → ashphy joined | 01:06 |
| ← Goplat left | 01:07 |
| ← Bass10 left | 01:08 |
| ← avpx left | 01:08 |
| ← martialcoder left | 01:09 |
| ← xinming left | 01:09 |
| ← hwrd|work left | 01:10 |
| ← erkules left | 01:10 |
| → erkules joined | 01:11 |
| ← akiress left | 01:11 |
| → Vampire0 joined | 01:12 |
| ← maletor left | 01:14 |
| ← elnn left | 01:14 |
|
adityamenon
| ah, beautiful. so with -s theirs, what happens is git chooses 'their' versions of files, ignoring our files completely | 01:14 |
|
| I knew it was something on those lines, but did not the exact details | 01:14 |
|
| words like *merge strategy* got me petrified, thinking theres some complicated superlogic inside... | 01:15 |
| ← Vampire0_ left | 01:15 |
| ← btanaka left | 01:15 |
| → elnn joined | 01:16 |
|
milki
| aha | 01:17 |
| → brentratliff joined | 01:18 |
| → andrewhl joined | 01:19 |
| ← palm_vue left | 01:20 |
| ← Lgb left | 01:20 |
| → keller joined | 01:21 |
| → HyperNerdV2 joined | 01:21 |
| → Joseph_ joined | 01:21 |
| → palm_vue joined | 01:21 |
| → Lgb joined | 01:21 |
|
nevyn
| adityamenon: merge strategy is actually one of my fav bits of git. | 01:21 |
|
| in that they're pluggable | 01:21 |
|
| so you could have a merge strategy for arbitary data formats. | 01:22 |
| ← kermit1 left | 01:22 |
| → kermit1 joined | 01:22 |
|
adityamenon
| does that mean you write new implementations of merge to suit new data formats? | 01:22 |
| kermit1 → kermit | 01:22 |
| ← Joseph_ left | 01:23 |
| ← bgerber left | 01:23 |
| → Joseph_ joined | 01:23 |
| ← jhardinee left | 01:23 |
| → Goplat joined | 01:24 |
| ← mocramis left | 01:24 |
| ← duckxx left | 01:25 |
| → mocramis joined | 01:25 |
| ← cmullican left | 01:25 |
| → jhardinee joined | 01:26 |
| → dreiss_ joined | 01:26 |
|
adityamenon
| wat? | 01:27 |
|
| http://www.kernel.org/pub/software/scm/git/docs/git-merge.html | 01:27 |
|
| under "ours" | 01:27 |
|
| This option forces conflicting hunks to be auto-resolved cleanly by favoring our version. Changes from the other tree that do not conflict with our side are reflected to the merge result. | 01:27 |
|
| Then again | 01:27 |
|
| "This should not be confused with the ours merge strategy, which does not even look at what the other tree contains at all. It discards everything the other tree did, declaring our history contains all that happened in it. | 01:27 |
|
| " | 01:27 |
|
| WHAT should not be confused with what? | 01:28 |
|
milki
| "ours" strategy | 01:28 |
|
| and "theirs" strategy | 01:28 |
|
adityamenon
| the paragraph describes what "ours" does - then says don't confuse with itself? | 01:28 |
|
milki
| hmm? | 01:29 |
|
cmn
| there are two ours | 01:29 |
|
| one is a merge strategy, the other one an option to recursive | 01:29 |
|
adityamenon
| two ours? | 01:29 |
|
milki
| o | 01:29 |
|
| interesting.. | 01:29 |
|
| so theres "ours" and _ours_ | 01:29 |
|
| haha | 01:29 |
|
adityamenon
| indeed... the paragraph I extracted is an option to recursive | 01:29 |
| ← Joseph_ left | 01:29 |
|
cmn
| it's all in man merge | 01:29 |
| → Joseph_ joined | 01:30 |
|
cmn
| though recursive being in the middle can get confusing; use the indentation | 01:30 |
| ← imexil left | 01:30 |
| ← leo2007 left | 01:30 |
| ← suedoh left | 01:30 |
| ← jwmann left | 01:31 |
| ← ben_alman left | 01:32 |
| ← ashphy left | 01:32 |
| → jwmann joined | 01:32 |
| → adityamenon90 joined | 01:32 |
| → mikepack joined | 01:32 |
| → bgerber joined | 01:32 |
| ← lonewulf` left | 01:32 |
| → ashphy joined | 01:32 |
| ← tyatpi left | 01:33 |
| → diogogmt joined | 01:33 |
| ← jhardinee left | 01:33 |
| ← adityamenon left | 01:34 |
|
adityamenon90
| man merge is actually more beginner friendly than many blog posts | 01:34 |
| → tyatpi joined | 01:35 |
|
adityamenon90
| first time I've experienced that with any documentation | 01:35 |
| → lonewulf` joined | 01:35 |
| adityamenon90 → adityamenon | 01:35 |
| → ben_alman joined | 01:35 |
|
MetaCosm
| Any tips on emulating the integer expansion of $Rev$ in SVN on the git side | 01:35 |
|
adityamenon
| I only saw this man in a command line, and since command line can make mans look horrid, I did not read much | 01:35 |
| → intripoon_ joined | 01:37 |
|
cmn
| integer expansion? | 01:37 |
| ← ashphy left | 01:37 |
|
frogonwheels
| MetaCosm: There are many reasons not to.. but you can .. SHA1 is the safest, but the problem is you have to take out the expansion to get the sha1 of the file | 01:38 |
| → vitor-br joined | 01:38 |
|
MetaCosm
| frogonwheels: this moronic system uses it as an upward moving int value | 01:38 |
|
| based on the SVN $Rev$ | 01:38 |
|
cmn
| you can use git-describe to get the version of the tree | 01:38 |
|
MetaCosm
| to do versioning between components | 01:38 |
|
cmn
| though it won't necessarily give you a number | 01:39 |
| → Syzygy_ joined | 01:39 |
|
frogonwheels
| MetaCosm: what I have done is to use git describe to give me a version that I compile into a resource & include as s define.. so it gives me a compile-time version | 01:39 |
| → leilaM joined | 01:39 |
|
frogonwheels
| the point being that the file generated with the version is not in source-control | 01:39 |
|
cmn
| and if you need to describe dependencies, version numbers are much better than relying on revisions | 01:40 |
|
MetaCosm
| ... ugh, they got it expanded in like 10 places | 01:40 |
| ← intripoon left | 01:40 |
|
MetaCosm
| cmn: not arguing for correctness, just trying to get them off SVN | 01:40 |
| → alvaro_o joined | 01:40 |
|
MetaCosm
| so I Can start fixing stuff | 01:40 |
|
| this is the last stumbling block | 01:40 |
|
cmn
| then you need a sensible system | 01:40 |
|
frogonwheels
| MetaCosm: Is this a run-time version or source version that it's doing? | 01:40 |
|
MetaCosm
| cmn: no argument, hard to build a sensible system on svn | 01:41 |
|
| hence my new employment and moving to git | 01:41 |
|
cmn
| no harder than on anything else | 01:41 |
|
MetaCosm
| no need to beat the dead horse, I entirely agree! | 01:41 |
|
| Just trying to come up with a mid-step | 01:41 |
|
frogonwheels
| MetaCosm: I had to move my team from Beyond Compare. You got it relatively easy ;P | 01:41 |
|
| arg not beyond compare. I mean Team Coherence | 01:41 |
|
| bleah | 01:41 |
|
| brain missfire | 01:41 |
|
MetaCosm
| ... BC is a compare tool and awesome | 01:41 |
|
| don't you badmouth it! | 01:41 |
|
frogonwheels
| MetaCosm: BC is a compare tool and awesome | 01:42 |
|
cmn
| if you want a monotonically increasing number, define a tag and convince git-describe to use that one as the base | 01:42 |
|
| and take the middle par | 01:42 |
|
frogonwheels
| MetaCosm: sorry I totally agree, I use it, don't know why my brain misfired on that one. | 01:42 |
|
cmn
| that way you get pretty much the same as svn | 01:42 |
|
| but fixing the system might be easier than jumping though all these hoops | 01:43 |
| ← osmosis left | 01:43 |
|
frogonwheels
| MetaCosm: can you convince the team to #include (or whatever) a version file that is always generated from git describe? | 01:43 |
| ← Joseph_ left | 01:43 |
|
MetaCosm
| this is so incredibly dumb... it is freaking javascript | 01:44 |
| ← dsantiago left | 01:44 |
|
cmn
| what do you actually need then? | 01:44 |
|
MetaCosm
| I am just going to kludge it till I can fix it | 01:44 |
|
cmn
| something that sorts correctly or really a number? | 01:44 |
|
MetaCosm
| time since epoch - X in that slot as a post commit hook | 01:45 |
| → murr4y joined | 01:45 |
|
MetaCosm
| as the same amount of value as a goddamn svn revision | 01:45 |
|
frogonwheels
| MetaCosm: there is a man gitattributes method that allows you to expand macros :| | 01:45 |
|
gitinfo
| MetaCosm: the gitattributes manpage is available at http://git-scm.com/docs/gitattributes.html | 01:45 |
| → neurodrone joined | 01:45 |
| ← neurodrone left | 01:45 |
| → neurodrone joined | 01:45 |
|
frogonwheels
| I'm pretty sure it's gitattributes anyway. | 01:45 |
| ← diegoviola left | 01:46 |
|
MetaCosm
| ahhh | 01:46 |
|
| that could work in the short-term | 01:46 |
|
| till we get to something that makes sense | 01:46 |
| ← AaronMT left | 01:46 |
|
frogonwheels
| I think it's use has the caveat *this is dumb, but if you gotta do it, | 01:46 |
| → weiyang joined | 01:46 |
| ← mwrosen left | 01:46 |
|
frogonwheels
| MetaCosm: and anwyay, the sha1 is calculated post crlf -> lf conversion anyway.. so expanding some inline text.. well.. not so nasty | 01:47 |
| ← bitkiller left | 01:48 |
|
adityamenon
| even if I say git merge --ff | 01:49 |
|
| it says merge made by recursive | 01:49 |
|
| can I force it to just forward in some places? | 01:49 |
|
cmn
| only if it can fast-forward, it sounds like it's not possible in that case | 01:49 |
|
adityamenon
| well, I don't know what I did... I think I made a global configuration or some project specific config | 01:50 |
| ← alvaro_o left | 01:50 |
|
adityamenon
| to *always* merge by recursive | 01:50 |
|
| but actually, develop is just a straight forward branching of master | 01:51 |
|
| made a few changes like adding a couple of lines | 01:51 |
|
| then went back to master and demanded a fast-forward | 01:51 |
|
| still does a recursive | 01:51 |
|
cmn
| recursive isn't the oppsite of fast-forward | 01:52 |
|
| recursive is a side-effect of doing a real merge | 01:52 |
|
| !lol to check if it could have actually been a ff | 01:52 |
|
gitinfo
| git config --global alias.lol "log --oneline --graph --decorate" | 01:52 |
| ← jargon- left | 01:55 |
| ← Zespre left | 02:00 |
| → Zespre joined | 02:00 |
|
adityamenon
| cmn, what does the command do? | 02:01 |
|
| where can I find the global alias.lol? | 02:01 |
| ← Syzygy_ left | 02:01 |
|
adityamenon
| .lol? hard time believing that's a real extension, lol | 02:02 |
|
cmn
| the command there sets up an alias | 02:02 |
| → zdk joined | 02:02 |
|
adityamenon
| okay.. | 02:02 |
|
cmn
| and what the alias executes gives you a graph of the current branch | 02:02 |
|
| .lol is a real extension if you define it | 02:02 |
|
adityamenon
| well, of course :) | 02:03 |
|
cmn
| and it's not even an extension, it's the local part of the key | 02:03 |
|
adityamenon
| someone did define it though didn't they | 02:03 |
| → grantbdev joined | 02:03 |
|
cmn
| huh? | 02:03 |
|
adityamenon
| let's forget it | 02:04 |
|
| I don't mean to criticize it :) | 02:04 |
| ← musee left | 02:05 |
| → jackh joined | 02:05 |
|
adityamenon
| C:\Program Files (x86)\Git\etc\gitconfig | 02:05 |
|
| is that the global config file? | 02:05 |
| ← dr_diamond left | 02:06 |
|
cmn
| no, that's the system config | 02:06 |
| ← Lulzon left | 02:07 |
| → edude03 joined | 02:08 |
|
adityamenon
| okay, I also found C:\Users\username\.gitconfig | 02:08 |
| ← diogogmt left | 02:08 |
|
adityamenon
| apparently, I've not anything to mess with merge options automatically | 02:08 |
| → leeight_ joined | 02:08 |
|
adityamenon
| there's only a 'rebase autosquash true' | 02:09 |
|
| that doesn't relate to my current problem... | 02:09 |
| → diogogmt joined | 02:09 |
| ← mdhopkins left | 02:10 |
|
cmn
| and what happened to checking whether it could really be a fast-forward? | 02:10 |
|
adityamenon
| sorry, I had to quench my curiosity, I just looked at the config file for the current project in .git, it also does not have any weird rules | 02:11 |
|
| what is the command to make the alias local? | 02:12 |
|
| git config --local alias.lol "log --oneline --graph --decorate" | 02:12 |
|
| correct? | 02:12 |
|
cmn
| don't tell git to make it global | 02:12 |
|
| local is the default | 02:12 |
| → igotnolegs joined | 02:12 |
|
adityamenon
| very good, I just ran git config alias.lol "log --oneline --graph --decorate" | 02:12 |
| ← aruiz left | 02:12 |
|
adityamenon
| now... should I try the command log? | 02:12 |
|
cmn
| the command log? you can use git lol, since you've configured the alias | 02:13 |
|
| or just use the commadn that's in it | 02:13 |
|
adityamenon
| oh, I'm so dumb, thanks... just checked the local file again and see a new alias called 'lol' | 02:14 |
| infogulch|afk → infogulch | 02:14 |
|
adityamenon
| now I see what you were saying before, too | 02:14 |
| ← diogogmt left | 02:14 |
|
cmn
| yes, that's what the command says to do | 02:14 |
|
adityamenon
| I was thinking alias.lol would create a new file | 02:14 |
|
| called alias.lol | 02:14 |
|
| facepalm @ me | 02:14 |
|
| okay, just ran git lol... | 02:15 |
|
| while it's a sexy graph in the command line, the equivalent of gitk | 02:15 |
|
cmn
| yes | 02:15 |
|
adityamenon
| how can I find out if it could have been an FF? | 02:15 |
| → juvenal joined | 02:15 |
|
cmn
| see if there are any commits on the destination branch after the other branch starts off | 02:16 |
| → diogogmt joined | 02:16 |
|
adityamenon
| no, there are none | 02:16 |
| → rking joined | 02:16 |
|
adityamenon
| develop: "updated readme" | 02:16 |
|
| then it's directly merging into master | 02:17 |
|
| there's no commits in master before the merge | 02:17 |
|
| there's simply a merge commit after that | 02:17 |
|
| master: Merge branch 'develop' | 02:17 |
|
| is the command git merge --ff wrong? | 02:17 |
| ← cakehero left | 02:17 |
| → eephillip joined | 02:18 |
|
adityamenon
| I think I should try rebase | 02:18 |
|
jrdnn
| adityamenon If it says "Merge branch 'branch' into currentBranch" it wasn't a fast forward | 02:18 |
| → ISF joined | 02:19 |
|
adityamenon
| so if I want to force a fast-forward I should just rebase? | 02:19 |
|
| in the past, I didn't have to | 02:19 |
|
| if it could do a fast-forward it would | 02:19 |
|
| I don't see a reason why it can't now | 02:19 |
|
| I have no problems using rebase, of course | 02:19 |
| ← squillow left | 02:20 |
|
adityamenon
| none of the history is published yet, anyway | 02:20 |
|
| I'm simply curious why it's like this, now - when it was different before | 02:20 |
| ← Nibato left | 02:20 |
|
cmn
| git still defaults to a fast-forward | 02:20 |
| → hwrd|work joined | 02:20 |
| ← Yuuhi``` left | 02:21 |
|
jrdnn
| As long as only one branch has different commits it should fast forward (use --track when you make the branch and look in git status) | 02:21 |
|
cmn
| and --ff should take care of any other defaults | 02:21 |
| ← orafu left | 02:21 |
| ← thearthur left | 02:21 |
|
cmn
| care to pastebin the output? | 02:21 |
| → orafu joined | 02:21 |
|
adityamenon
| sure... just a second | 02:22 |
| → wrapids joined | 02:24 |
| → dsantiago joined | 02:24 |
| ← apok left | 02:25 |
| ← Mowsh left | 02:25 |
| → aruiz joined | 02:25 |
|
adityamenon
| http://pastebin.com/hT437FHk and the gitk looks like this: http://imgur.com/eDU28 | 02:25 |
| → jjbohn joined | 02:26 |
|
adityamenon
| the 'updated readme' commit could have been an FF | 02:26 |
|
jrdnn
| --ff-only | 02:27 |
|
cmn
| I don't see how that would be a fast-forward | 02:27 |
| → Nibato joined | 02:27 |
| → SuperMiguel joined | 02:27 |
| ← ebneter left | 02:27 |
|
cmn
| the merge just before the one you created now makes it impossible | 02:27 |
| ← benjo2 left | 02:27 |
|
SuperMiguel
| So i have my rep folder in my computer, and every time i edit files, i have to do git add <file_name> because they are getting listed in git commit as not staged for commit.. | 02:28 |
|
cmn
| that commit comes later than the merge base, and it's in the receiving branch | 02:28 |
|
SuperMiguel
| any idea why is not doing it automatically? | 02:28 |
|
adityamenon
| so if I do a merge --no-ff once along the lifetime, I am forever damned to use the same? :) | 02:28 |
|
cmn
| now, yo could have done a ff the other way around | 02:28 |
| ← raykyri left | 02:28 |
| → flippo joined | 02:28 |
|
cmn
| you can merge into the topic branch | 02:28 |
|
adityamenon
| SuperMiguel, "git add ." | 02:28 |
|
cmn
| then you can start doing fast-forwards | 02:28 |
| ← Araxia_ left | 02:29 |
|
adityamenon
| SuperMiguel, then "git commit -a" | 02:29 |
|
cmn
| SuperMiguel: you can use add -u or commit -a to stage the modified files | 02:29 |
|
jrdnn
| aditaymamenon You have to use non-ff until they get a common point in history, then if the one you are in when you run merge has no commits of the git merge --ff-only otherBranch doesn't have you can ff | 02:29 |
|
SuperMiguel
| adityamenon: cmn any of you use vim? | 02:29 |
|
jrdnn
| <- | 02:29 |
|
cmn
| what's that got to do with anything? | 02:29 |
| ← hwrd|work left | 02:30 |
|
jrdnn
| git is for code vim is for code :P both help programming a lot | 02:30 |
|
SuperMiguel
| cmn: jrdnn was just going to ask if you guys use any plugin for vim | 02:30 |
| → stardiviner joined | 02:30 |
| ← grantbdev left | 02:30 |
| ← eephillip left | 02:31 |
|
jrdnn
| SuperMiguel: Just .vimrc http://pastebin.com/52Cit2Aa | 02:31 |
| → adityamenon90 joined | 02:32 |
|
SuperMiguel
| jrdnn: not sure where git comes into play there? | 02:32 |
|
stardiviner
| I made a mistake, I committed a very secure file into repo, how to remove that from repo ? I use command: git rm -f --cache FILE, but after this, I still can see the commit history in repo about this file, how to remove it totally in repo instead of hard disk ? | 02:32 |
|
adityamenon90
| jrdnn, thanks for --ff-only, I thought that was just --ff | 02:33 |
|
| cmn, so I need to first merge master back into develop, then I can start doing fast forwards if I want to? | 02:33 |
| → maletor joined | 02:34 |
|
adityamenon90
| I actually made a mistake, and committed changes to master :O just now | 02:34 |
|
| then, I went to develop, asked to do git merge master --ff-only | 02:34 |
|
jrdnn
| adityamenon90 If you are in develop and run merge master, and you make some commits to develop, and not to master, you can checkout master merge develop and it will ff | 02:34 |
| → macabre joined | 02:34 |
|
cmn
| the way things are in that gitk view, you can merge into develop, and if you only do changes in develop, then you can do a ff | 02:34 |
|
adityamenon90
| it worked, now I might be able to do FFs, not sure need to test.. | 02:34 |
| ← adityamenon left | 02:35 |
|
adityamenon90
| cmn, let's say I did not make the mistake I just wrote about | 02:35 |
|
| If I were to do "git checkout develop", "git merge master" - wouldn't it say 'everything up to date' and quit? | 02:36 |
|
jrdnn
| aditayamenon90 If the branch you are currently in has no commits the branch you want to merge into it didn't have when the branch you want to merge into it was made, you can merge the other branch into it and it will be fast forward (just update pointers) | 02:36 |
| adityamenon90 → adityamenon | 02:36 |
| ← aruiz left | 02:36 |
|
adityamenon
| jrdnn, that's not happening though | 02:37 |
|
| master had no commits that develop did not have | 02:37 |
|
| oh yeah | 02:37 |
|
| there's the empty merge commit... | 02:37 |
|
| those things can cause a problem? | 02:37 |
|
SethRobertson
| a commit is a commit | 02:37 |
| ← Kulrak left | 02:38 |
| ← BlindOracle left | 02:38 |
| ← md_5|away left | 02:38 |
| → hwrd|work joined | 02:38 |
|
SuperMiguel
| jrdnn: how does ur .vimrc helps with git? | 02:39 |
|
cmn
| it woudn't say it's up to date, because it's not | 02:39 |
|
| master contains the merge | 02:39 |
|
adityamenon
| cmn, jrdnn I get it now | 02:40 |
|
| thanks :) | 02:40 |
|
jrdnn
| SuperMiguel: Sorry, it doesn't. The empty merge commit is a seperate commit, made whenever a non-ff merge happens, and it counts as a seperate commit | 02:40 |
|
| adityamenon You're welcome =) | 02:41 |
|
adityamenon
| jrdnn, I think you wanted to say that to me :D | 02:41 |
|
| the one above addressed to SuperMiguel | 02:41 |
| → Davey joined | 02:41 |
|
jrdnn
| adityamenon: "Sorry, it doesn't" was about vimrc, the rest I meant to you, sorry | 02:41 |
|
adityamenon
| :) | 02:41 |
|
| anyone else think those merge commits are super pesky? | 02:41 |
|
| to look at, at least | 02:42 |
|
| well, I guess it's because of my workflow | 02:42 |
| ← iwoj left | 02:42 |
|
jrdnn
| aditaymenon: They are good if you want to keep track of which branch a bunch of commits are from | 02:42 |
|
cmn
| it might just be that you have too many | 02:42 |
|
adityamenon
| master is not the 'holy branch' as recommended in gitflow | 02:42 |
|
| I just keep pushing everything that works | 02:42 |
| → BarryCrayon joined | 02:43 |
|
adityamenon
| every *small* thing | 02:43 |
|
| I should keep a new branch called 'testing' for the clients' purpose | 02:43 |
|
| won't matter how ugly that looks | 02:43 |
| → Kulrak joined | 02:43 |
| → BlindOracle joined | 02:43 |
| → md_5|away joined | 02:43 |
|
adityamenon
| cmn, jrdnn you're both right | 02:44 |
| ← fruers left | 02:45 |
| → ShaunR joined | 02:46 |
|
ShaunR
| when trying to clone a repo i'm getting fatal: Unable to find remote helper for 'http' | 02:47 |
|
| it's only on this machine though. | 02:47 |
|
| no firewall | 02:47 |
| ← BarryCrayon left | 02:47 |
|
ShaunR
| any ideas what may be happening? it's a old centos 4.9 server and i had to build git from source | 02:47 |
|
frogonwheels
| ShaunR: don't you need something like curl to do the transport? | 02:48 |
|
ShaunR
| ya, was just reading somthing on that | 02:48 |
|
| actually installing it now, and going to rebuild | 02:49 |
| gitinfo set mode: +v | 02:49 |
| ← igotnolegs left | 02:50 |
| ← williamcotton left | 02:50 |
|
ShaunR
| frogonwheels: yep, curl was the issue, thanks! | 02:52 |
|
frogonwheels
| ShaunR: do one thing and to it well ;) | 02:52 |
|
| *do | 02:52 |
| → FFForever joined | 02:54 |
| ← jjbohn left | 02:55 |
| ← edude03 left | 02:55 |
| ← marhaban left | 02:55 |
| ← diogogmt left | 02:55 |
| → diogogmt joined | 02:55 |
| → cooloney joined | 02:56 |
|
jrdnn
| frogonwheels: That's the UNIX philosophy +1 | 02:56 |
|
FFForever
| How come when compiling with make --prefix=/usr/local/ all it still compiles/installs in the same directory | 02:56 |
| ← hwrd|work left | 02:57 |
| → cccaldas joined | 02:57 |
| → edude03 joined | 02:57 |
| → jjbohn joined | 02:58 |
|
cmn
| because make isn't ./configure | 02:58 |
|
FFForever
| there is no ./configure | 02:58 |
|
cmn
| yes, there is, but that's not the point | 02:58 |
|
| that's not how you pass options to make | 02:59 |
|
| make PREFIX= | 02:59 |
|
FFForever
| ah, and I only have a configure.ac | 02:59 |
| → diegoviola joined | 03:00 |
|
cmn
| fine, but you should still pass the options to make properly | 03:00 |
|
FFForever
| fair enough. | 03:01 |
| gitinfo set mode: +v | 03:01 |
|
cmn
| it will call autotools for you | 03:01 |
|
dpwright
| stardiviner, not sure if somebody already answered you (I did a quick scan down the log and couldn't see anything), but man git-filter-branch and look at the examples | 03:01 |
|
gitinfo
| stardiviner: the git-filter-branch manpage is available at http://git-scm.com/docs/git-filter-branch.html | 03:01 |
| → iwoj joined | 03:01 |
| ← jjbohn left | 03:02 |
| ← diogogmt left | 03:03 |
|
dpwright
| be warned that this entails modifying history, and if you've published it this may cause problems for people who've since pulled. Google for more information on the perils of modifying public history. But that should solve your problem. | 03:03 |
| ← ShaunR left | 03:04 |
|
frogonwheels
| stardiviner: !rewrite | 03:04 |
|
gitinfo
| stardiviner: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 03:04 |
| ← phantomtiger left | 03:05 |
| ← iwoj left | 03:05 |
| → diogogmt joined | 03:05 |
| ← netj left | 03:06 |
| gerard0 → gerardo | 03:06 |
| ← diogogmt left | 03:10 |
| → diogogmt joined | 03:10 |
| ← mcluskydodallas left | 03:12 |
| ← Goplat left | 03:13 |
| ← kukks left | 03:15 |
| ← diogogmt left | 03:15 |
| ← Zespre left | 03:16 |
| → diogogmt joined | 03:16 |
| → Zespre joined | 03:17 |
| → posciak joined | 03:19 |
| ← matt_taws left | 03:20 |
| → matt_taws joined | 03:20 |
| → Goplat joined | 03:20 |
| → avpx joined | 03:23 |
| → williamcotton joined | 03:25 |
|
stardiviner
| dpwright: frogonwheels thanks, I will check out manual, about filter-branch, and rewrite, | 03:28 |
| ← jstout24 left | 03:28 |
| → ipoval joined | 03:29 |
| → iwoj joined | 03:29 |
| → kcm1700_ joined | 03:29 |
| ← Per4u3e left | 03:29 |
| ← kcm1700 left | 03:30 |
| ← elnn left | 03:30 |
| → DofLeFou joined | 03:30 |
| → elnn joined | 03:30 |
| ← alansaul left | 03:31 |
| → netj joined | 03:32 |
| → rmccue joined | 03:34 |
| → iori joined | 03:35 |
| → hwrd|work joined | 03:36 |
|
adityamenon
| in my .gitignore file, I have | 03:36 |
|
| application/config/database.php | 03:36 |
|
| .htaccess | 03:36 |
|
rmccue
| Hi, I recently moved a repository (as in, `mv olddir newdir`) and my submodules are now broken, as they're pointing to the old path. How can I fix this? | 03:36 |
|
adityamenon
| in two lines | 03:36 |
|
| but they are not being ignored | 03:36 |
|
| they are being pulled into clones | 03:36 |
|
| in a different repository, they were ignored | 03:37 |
|
| I had to manually create them by renaming | 03:37 |
|
| .htaccess.example | 03:37 |
| ← bgerber left | 03:37 |
|
adityamenon
| and application/config/database.php.example | 03:37 |
|
| as it should be... | 03:37 |
|
| but this time that's not working | 03:37 |
|
| what may I be doing wrong? | 03:37 |
|
rmccue
| adityamenon: They've probably already been added to the repository with `git add -f` | 03:37 |
|
cmn
| if they're "pulled" into repos, that means they're being tracked | 03:37 |
|
| you can't ignore tracked files | 03:37 |
|
avpx
| adityamenon: !enter | 03:38 |
|
gitinfo
| adityamenon: The enter key is not a punctuation mark. Please use fewer lines, with complete sentences on them. | 03:38 |
|
adityamenon
| avpx, sorry about that | 03:38 |
|
avpx
| No problem, just thought you should know. | 03:38 |
| → atomoul joined | 03:38 |
| ← atomoul left | 03:38 |
|
adityamenon
| I'm googling 'how to untrack files' now | 03:38 |
|
rmccue
| adityamenon: `git rm <filename>` | 03:39 |
|
adityamenon
| if I untrack these files, then later use "git add ." | 03:39 |
|
avpx
| The --cached option may be useful | 03:39 |
|
cmn
| !untrack | 03:39 |
|
gitinfo
| to stop git from tracking a file, without deleting the file, use "git rm --cached <file>". Please note that if you push/pull this untracking, the file will be actually be deleted on disk by the remote repo. | 03:39 |
|
rmccue
| Anyone know how to unhardcode my submodule paths? | 03:39 |
|
adityamenon
| will .gitignore work then? | 03:39 |
|
cmn
| rmccue: newer git versions use relative paths | 03:40 |
|
adityamenon
| in one sentence: if I untrack these files, then later use "git add .", will .gitignore work then? | 03:40 |
|
| it's a simple matter to test of course :) sorry to be lazy | 03:40 |
|
cmn
| adityamenon: yes, because they won't be tracked then, so git will ignore them | 03:40 |
|
rmccue
| cmn: Ah, so I need to upgrade git? Is there any way to do it without that? | 03:40 |
|
EugeneKay
| !tias | 03:40 |
|
gitinfo
| Try it and see™. You learn much more by experimentation than by asking without having even tried. If in doubt, make backups before you experiment (see !backup). http://sitaramc.github.com/1-basic-usage/tias.html may help with git-specific TIAS. | 03:40 |
|
adityamenon
| cmn, rmccue thank you :) | 03:40 |
|
cmn
| rmccue: it won't update them; go into the submodule and update the path in .git | 03:41 |
|
rmccue
| cmn: I accidentally rm -r'd .git/modules/module-name so I can't do that. | 03:41 |
|
cmn
| then you'll have to re-init the submodule | 03:42 |
|
| which may or may not work in this case | 03:42 |
|
rmccue
| It doesn't, unfortunately | 03:42 |
|
cmn
| hardly surprising | 03:43 |
|
rmccue
| So I'll have to upgrade then, I guess? | 03:43 |
|
cmn
| the easiest way might just be to re-clone | 03:44 |
| → atomoul joined | 03:44 |
|
rmccue
| Good idea | 03:45 |
| ← madewokherd left | 03:47 |
| ← codeM0nK3Y left | 03:47 |
| → akiress joined | 03:50 |
| ← tyatpi left | 03:51 |
|
rmccue
| cmn: Thanks for the help. | 03:51 |
| ← hwrd|work left | 03:53 |
| → ashphy joined | 03:54 |
| → bgerber joined | 03:55 |
| ← rmccue left | 03:55 |
| ← wrapids left | 03:57 |
| → netzmonster joined | 03:57 |
| ← netzmonster left | 03:57 |
| → Dave^|| joined | 03:58 |
| ← ashphy left | 03:59 |
|
adityamenon
| !backup | 03:59 |
|
gitinfo
| Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups | 03:59 |
| ← pielgrzym left | 03:59 |
| → hwrd|work joined | 04:00 |
| → mcluskydodallas joined | 04:00 |
| ← simesy_work left | 04:01 |
| → caseymcg joined | 04:01 |
| → pielgrzym joined | 04:01 |
| ← Dave^| left | 04:01 |
| ← mcluskydodallas left | 04:02 |
| ← booginga left | 04:05 |
| ← Zespre left | 04:07 |
| → Zespre joined | 04:08 |
| ← tigrang left | 04:08 |
| → ology joined | 04:11 |
| ← cilly left | 04:12 |
| → cilly joined | 04:13 |
| → Jackneill joined | 04:15 |
| ← ology left | 04:17 |
| ← brentratliff left | 04:17 |
| → jargon- joined | 04:17 |
| → fuzzybunny69y joined | 04:18 |
| ← SuperMiguel left | 04:21 |
| → jhardinee joined | 04:22 |
| ← Arrowmaster left | 04:25 |
| ← cccaldas left | 04:25 |
| ← alta left | 04:25 |
| → BiggFREE joined | 04:26 |
| → Arrowmaster joined | 04:26 |
| ← OOPMan left | 04:26 |
| → beautifulmind joined | 04:27 |
| → alta joined | 04:28 |
| ← _huoxito left | 04:29 |
| → simesy_work joined | 04:29 |
| → ashphy joined | 04:30 |
| ← hwrd|work left | 04:31 |
| ← Zenith77|2 left | 04:32 |
| → naught101 joined | 04:34 |
| → dvide joined | 04:36 |
| infogulch → infogulch|afk | 04:38 |
| → glosoli joined | 04:40 |
|
glosoli
| how can I do git pull with different user ? | 04:40 |
| ← Goplat left | 04:41 |
|
avpx
| man git-remote | 04:41 |
|
gitinfo
| the git-remote manpage is available at http://git-scm.com/docs/git-remote.html | 04:41 |
|
avpx
| glosoli: Assuming SSH, you just change the remote URL using git-remote per that man page | 04:42 |
| → gavin_huang joined | 04:42 |
|
glosoli
| well I don't want to change URL | 04:42 |
|
| is there any way ? | 04:42 |
| → PRETTY_FUNCTION joined | 04:42 |
|
glosoli
| I just want to make pull once from different account | 04:42 |
| → BarryCrayon joined | 04:43 |
| → eedeep joined | 04:43 |
| ← BiggFREE left | 04:43 |
| → jceb joined | 04:43 |
|
eedeep
| hi there. the workflow I'm trying to achieve is to squash all my commits into a single commit on my feature branch before merging it in | 04:43 |
| → igotnolegs joined | 04:44 |
|
eedeep
| I'm doing this with git rebase -i HEAD~N on my feature branch, where N is the number of commits I want to squash down | 04:44 |
|
avpx
| glosoli: Can't you just git pull <repository> and be done? | 04:44 |
|
glosoli
| nah I can't :) | 04:44 |
|
avpx
| What happens? | 04:45 |
|
glosoli
| it asks for current user password | 04:45 |
|
| afaik | 04:45 |
|
avpx
| What protocol are you using? ssh? | 04:45 |
|
eedeep
| I'm trying to understand the difference between doing git rebase -i HEAD~N on my feature branch and then doing git merge myfeature to merge the feature branch into say master and just doing git checkout master && git merge --squash myfeature | 04:45 |
| → Syzygy_ joined | 04:45 |
|
glosoli
| avpx: yes | 04:45 |
| ← diegoviola left | 04:46 |
|
eedeep
| they seem to be trying to achieve the same thing, more or less | 04:46 |
|
avpx
| glosoli: So you're using the URL git://user@remote.com/repo | 04:46 |
|
| You have the user@ part, correct? | 04:46 |
| ← tonsofpcs left | 04:47 |
| ← BarryCrayon left | 04:47 |
| → tonsofpcs joined | 04:48 |
|
glosoli
| avpx: ah nevermind, my problem is I don't understand if some git catalog is added to the computer it knwos about other user who has access ? | 04:48 |
|
avpx
| glosoli: Could you rephrase that? I don't understand. | 04:49 |
| → d4rklit3 joined | 04:49 |
|
d4rklit3
| hi | 04:50 |
|
gitinfo
| d4rklit3: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 04:50 |
|
d4rklit3
| im kind of in a bind. | 04:50 |
|
| i need to roll back a file one reviision back | 04:50 |
|
| not sure how to find the revision hash | 04:50 |
|
avpx
| eedeep: I'm trying to answer your question thoughtfully (or at all) | 04:50 |
| → tyll joined | 04:50 |
| ← iwoj left | 04:50 |
|
eedeep
| avpx: thanks. does the question make sense to you? | 04:50 |
|
avpx
| eedeep: Really, it seems to me that the difference is that rebase is just playing the diffs in the order you've selected and creating new commits, while merge is actually performing a 3-way merge like usual, and then just not making a commit | 04:51 |
|
| eedeep: That is, merge --squash is actually doing a merge but it's not creating a merge commit. But rebase -i with the "squash" command is basically just replaying patches in order. | 04:52 |
|
eedeep
| avpx: hmm ok right. I guess what I'm interested in really is just the end result...what I want is just to see a single commit on master which contains my new feature | 04:53 |
| ← jceb left | 04:54 |
|
eedeep
| avpx: so with given that --squash doesn't create a merge commit, perhaps that's not waht I'm after | 04:54 |
|
avpx
| d4rklit3: If you just want to pull that file out of a previous commit, try the git checkout command. For the previous commit, the command looks like: git checkout HEAD^ <file> | 04:54 |
| ← edude03 left | 04:54 |
|
avpx
| eedeep: That seems like a reasonable analysis. I'd say that rebase -i is what you are after. | 04:54 |
| → aruiz joined | 04:54 |
|
eedeep
| avpx: my problem with doing git rebase -i HEAD~N on my feature branches is that for some reason I seem to have to resolve tonnes of merge commits during htat process | 04:55 |
|
| I have to resolve them, do git rebase --continue, get more merge conflicts....repeat | 04:55 |
|
avpx
| Now I'm a tad confused: where are the merge commits comming from? | 04:56 |
|
| coming* | 04:56 |
|
eedeep
| avpx: you mean "where are the merge conflicts coming from? | 04:56 |
|
| " | 04:56 |
|
| ? | 04:56 |
|
avpx
| You said commits earlier, that's what I thought you meant | 04:57 |
|
eedeep
| oh! sorry, I meant "merge conflicts" | 04:57 |
|
avpx
| I see. Well, I don't know what to tell you. squash shouldn't give you merge conflicts because essentially it's just dropping certain commits | 04:58 |
|
eedeep
| I'm rebasing my feature off of develop before initiating the git rebaes -i HEAD~1 ..... I dont know if that's the source of my conflicts perhaps | 04:58 |
| → tigrang joined | 04:58 |
|
eedeep
| avpx: when you say "squash" you mean the kind of squash you do when you do git rebase -i HEAD~N yeah? | 04:58 |
|
avpx
| yeah | 04:58 |
|
| I can't see any reason why squash / fixup would produce conflicts | 04:59 |
|
| Unless you were changing the order of the commits, or something | 04:59 |
| ← Zenmaker__ left | 05:00 |
| ← redii left | 05:00 |
|
avpx
| d4rklit3: Have you resolved the problem? | 05:00 |
|
| Remember that as long as you committed something, it's probably still around. | 05:00 |
| → redii joined | 05:01 |
| → Zenmaker__ joined | 05:01 |
|
eedeep
| avpx: what I usually do during a git rebase -i HEAD~N is leave the first commit as pick and then change all those below it to squash ....is that the normal procedure? | 05:01 |
| ← mikepack left | 05:01 |
|
avpx
| Yeah | 05:01 |
|
| Hmm, unfortunately I really don't know why you would get conflicts during that. | 05:01 |
|
eedeep
| yeah though so. oh well I'll try to get to the bottom of what's going on and report back if I get a magical insight. | 05:02 |
|
avpx
| Please do | 05:02 |
|
eedeep
| thanks for your help | 05:02 |
|
avpx
| Of course | 05:02 |
| ← ziggles left | 05:04 |
| → marc_kdab_ joined | 05:04 |
| ← fisted left | 05:05 |
| ← dhruvasagar left | 05:06 |
| → hwrd|work joined | 05:08 |
| → harshpb joined | 05:09 |
| → fisted joined | 05:09 |
| ← ISF left | 05:09 |
| ← harshpb left | 05:11 |
| → ISF joined | 05:12 |
| → harshpb joined | 05:12 |
| ← tehbaut left | 05:13 |
| ← Jon30 left | 05:14 |
| ← delinquentme left | 05:15 |
| → tehbaut joined | 05:15 |
| → boobah joined | 05:16 |
| ← diogogmt left | 05:17 |
|
constant
| is there a way I can say 'git edit commit log of abc13456' without rebase -i ? | 05:18 |
| ← Zespre left | 05:18 |
| → arvind_k joined | 05:18 |
| → Zespre joined | 05:18 |
| ← neurodrone left | 05:18 |
|
avpx
| constant: No, you have to rebase | 05:18 |
|
constant
| avpx: I don't mind rebasing or whatnot | 05:19 |
|
| but I want to avoid the editor | 05:19 |
|
avpx
| Oh, I see... | 05:19 |
| ← harshpb left | 05:19 |
| → maleknet joined | 05:19 |
| ← aruiz left | 05:20 |
| → harshpb joined | 05:20 |
|
avpx
| constant: I suppose you could use git rebase -i with careful use of EDITOR | 05:20 |
|
constant
| haha true | 05:20 |
| → rmccue joined | 05:21 |
| arvind_k → arvind_khadri | 05:21 |
|
avpx
| Hmm, you could also manually apply the changes in a separate branch | 05:21 |
| ← nutron left | 05:21 |
|
avpx
| Let's see now. Let's say you have A -- B -- C | 05:21 |
| ← arvind_khadri left | 05:21 |
| → arvind_khadri joined | 05:21 |
| → JeremyWei joined | 05:21 |
|
constant
| avpx: hm? | 05:21 |
|
avpx
| constant: So in this example master points at C. Create a new branch at B, check it out, and use git commit --amend to change the log message | 05:23 |
|
| Now you'll have something like: | 05:23 |
|
| A -- B -- C <-- master | 05:23 |
|
| \ | 05:23 |
|
| B' | 05:23 |
|
constant
| yeah | 05:23 |
|
avpx
| Now you can rebase C onto B' | 05:23 |
|
constant
| I could do that | 05:23 |
|
| but then it doesn't achieve my ultimate goal | 05:24 |
|
avpx
| What is the ultimate goal? | 05:24 |
|
constant
| of being able to edit past logs in 1 command, though it does avoid rebase -i :)_ | 05:24 |
|
avpx
| Ah yeah. Well, you can cheat and use && to glue the commands together :p | 05:24 |
|
constant
| avpx: there is meta-data in commit logs which change after N commits, its annoying to go back every time with rebase -i and fix them | 05:24 |
|
avpx
| I still think that a good choice of EDITOR would allow this | 05:25 |
|
constant
| yeah | 05:26 |
|
| I could play with 'sed' or something of the like | 05:26 |
|
avpx
| Just make a simple EDITOR that replaces the "pick" on the first line with "edit" | 05:26 |
|
constant
| :-) | 05:26 |
|
avpx
| Or something similar | 05:26 |
| ← rmccue left | 05:26 |
| → iwoj joined | 05:26 |
| ← maleknet left | 05:27 |
|
constant
| avpx: EDITOR="sed 1s/pick/reword/" | 05:27 |
|
avpx
| Have you tried that? Does it work? | 05:28 |
|
constant
| trying it now | 05:28 |
|
avpx
| I can't remember if sed needs an argument to edit in-place | 05:28 |
| → maleknet joined | 05:28 |
|
avpx
| Ah, yeah, I think you'll need sed -i | 05:29 |
|
constant
| avpx: problem is | 05:29 |
| ← thornofmight left | 05:29 |
|
constant
| it also affects the "edit the commit message" EDITOR :) | 05:29 |
| → arti_t joined | 05:29 |
|
avpx
| Ooh. | 05:30 |
| → guru joined | 05:30 |
|
quazimodo
| if i have *.conf in .gitignore, will that ignore *.conf in all subdirs too? | 05:30 |
| → thornofmight joined | 05:30 |
|
avpx
| constant: I don't know what to tell you, then :p | 05:31 |
|
frogonwheels
| quazimodo: yep | 05:31 |
| ← harshpb left | 05:31 |
|
constant
| avpx: though with some playing I could probably figure out what type of file I'm seeing and either run sed or vim | 05:31 |
|
| but that would be .... | 05:31 |
|
| silly | 05:31 |
|
| :) | 05:31 |
| → boombatower joined | 05:31 |
|
avpx
| It's true. | 05:32 |
| → rmccue joined | 05:32 |
| → harshpb joined | 05:32 |
| → aruiz joined | 05:33 |
| ← leeight_ left | 05:33 |
|
frogonwheels
| constant: It's going to come up with an editor to change the commit message anyway.. or were you going to use -m ? | 05:33 |
| ← bgerber left | 05:34 |
| → ThomasLocke joined | 05:34 |
| ← stardiviner left | 05:34 |
|
constant
| frogonwheels: I'm fine with an editor to change the log message | 05:34 |
|
| but I want to avoid the middle step, when I already know which hash I need to reword | 05:34 |
|
| constant feeds frogonwheels flies | 05:34 |
|
dpwright
| constant: wouldn't defining an alias which cheats and uses && like avpx said be good enough? | 05:34 |
|
constant
| dpwright: likely | 05:35 |
|
| I'll try at some point | 05:35 |
|
avpx
| I'm not sure if you could do it with alias, but a tiny shell script maybe | 05:35 |
|
constant
| just hoping there was something like git ammend <hash> | 05:35 |
|
frogonwheels
| constant: git checkout abc13456 && git commit --amend && git rebase --onto HEAD abc123456 branchname | 05:35 |
|
| constant: something like that? | 05:35 |
|
avpx
| frogonwheels: That's what I was suggesting earlier | 05:35 |
| ← maleknet left | 05:35 |
|
constant
| avpx: frogonwheels yeah, I'll probably end up with that | 05:36 |
| → abstrusenick joined | 05:36 |
| → maleknet joined | 05:37 |
| ← macabre left | 05:40 |
| ← ashphy left | 05:41 |
| → ashphy joined | 05:41 |
| → ashphy_ joined | 05:43 |
| ← ashphy left | 05:43 |
| ← d3vic3 left | 05:45 |
| → leeight_ joined | 05:46 |
| → d3vic3 joined | 05:46 |
| ← maleknet left | 05:46 |
| → rbarraud_ joined | 05:47 |
| → maleknet joined | 05:47 |
| → twb joined | 05:51 |
| → j416 joined | 05:51 |
|
twb
| Can I /msg gitinfo with questions? I tried and it doesn't seem to work. | 05:53 |
|
cmn
| questions? | 05:53 |
| → marthinal joined | 05:53 |
|
cmn
| it responds to the same commands as in the channel | 05:53 |
| → airborn joined | 05:53 |
|
twb
| I must have picked a word he didn't have an entry for, then | 05:53 |
|
| $coworker wants something prettier than log --graph | 05:54 |
|
| I was hoping to pester gitinfo directly instead of the channel :-) | 05:54 |
|
cmn
| prettier as in what? there's gitk, --graph has --decorate | 05:55 |
|
| there also a few GUIs, but the graph they show is pretty much the same | 05:55 |
|
twb
| Well as it happens I solved his immediate issue by telling him to use --color, but he wanted to know about GUI type alternatives | 05:55 |
| ← harish left | 05:55 |
| → Blaker0111 joined | 05:55 |
|
cmn
| setting color.ui to auto would make everything prettier | 05:56 |
|
| git-scm.com has a list of the prettier ones | 05:57 |
|
| though not a lot for Linux et al | 05:57 |
|
twb
| http://jk.gs/git/bot/faq.php looks pretty barren compared to what I thought, but oh well. | 05:57 |
|
| cmn: thanks | 05:57 |
| ← maleknet left | 05:57 |
| → mishok13 joined | 05:57 |
|
Blaker0111
| Hi. I have a git repository that I would like to rename. The repository is located in /path/repo-name.git my server. I have a working copy on my local pc in /path/repo-name . Do I just rename repo-name.git to new-repo-name.git and my local directory to new-repo-name/ ? | 05:57 |
| ← ashphy_ left | 05:57 |
|
twb
| Ah, they're in http://jk.gs/git/bot/trigger.php | 05:57 |
|
cmn
| well, that's the faq for the bot/channel, not for all of git | 05:58 |
|
twb
| yeah understood | 05:58 |
|
cmn
| ah, yes, the faq is a different thing from the ! triggers | 05:58 |
| → ashphy joined | 05:58 |
|
twb
| The "list of things the bot knows" | 05:58 |
| → maleknet joined | 05:58 |
| ← iwoj left | 05:59 |
|
j416
| twb: look at git log --format | 05:59 |
| → jceb joined | 06:00 |
| ← glennpratt left | 06:00 |
|
avpx
| Blaker0111: Not exactly, no. | 06:00 |
| → herdingcat joined | 06:00 |
|
avpx
| Blaker0111: It's fine to rename the upstream repo (that is, the one on your server) but the downstream repo (the one on your PC) needs to have its remotes changed. This is done using the git remote command. See: man git-remote | 06:01 |
|
gitinfo
| Blaker0111: the git-remote manpage is available at http://git-scm.com/docs/git-remote.html | 06:01 |
|
j416
| twb: this is what I mostly use, I have an alias for it: http://dl.dropbox.com/u/3207594/24h/gitlog_format.png | 06:01 |
| → jmd joined | 06:01 |
| ← vitor-br left | 06:01 |
|
Blaker0111
| avpx: gotcha, ill talk a look -- thanks for the help :D | 06:02 |
| ← ashphy left | 06:02 |
|
avpx
| Good luck | 06:02 |
| ← kcj left | 06:02 |
| ← maleknet left | 06:04 |
| ← Fullmoon left | 06:05 |
| ← aruiz left | 06:06 |
| → toabctl joined | 06:07 |
| ← rmccue left | 06:07 |
| → afuentes joined | 06:07 |
| ← beautifulmind left | 06:07 |
| → musee joined | 06:08 |
| → sdeboey joined | 06:09 |
| ← glosoli left | 06:11 |
| ← Silex left | 06:12 |
| ← j416 left | 06:12 |
|
Blaker0111
| avpx: could i also just rename the /path/repo-name.git folder to /path/new-repo-name.git on the remote server, delete my local working copy, and re-checkout the newly named repo? | 06:13 |
| → Silex joined | 06:14 |
|
avpx
| Blaker0111: The correct term would be "re-clone" because checkout means something different in git than CVS/SVN. But yes. Still, changing the remotes is easier. | 06:14 |
|
| See also: !tias | 06:14 |
|
gitinfo
| Try it and see™. You learn much more by experimentation than by asking without having even tried. If in doubt, make backups before you experiment (see !backup). http://sitaramc.github.com/1-basic-usage/tias.html may help with git-specific TIAS. | 06:14 |
|
_ikke_
| Blaker0111: with git remote set-url you can change the urls for remotes | 06:14 |
| ← eletuchy left | 06:14 |
| → cbreak-work joined | 06:15 |
|
Blaker0111
| ah ok i was trying git remote rename, but git remote set-url was the ticket | 06:16 |
|
| thanks both of you :) | 06:16 |
|
Silex
| is it just me or !tias says "Try it and seeM- You learn..." ? | 06:17 |
|
gitinfo
| Try it and see™. You learn much more by experimentation than by asking without having even tried. If in doubt, make backups before you experiment (see !backup). http://sitaramc.github.com/1-basic-usage/tias.html may help with git-specific TIAS. | 06:17 |
| ← xtagon left | 06:17 |
|
dpwright
| constant: Knocked something together based on frogonwheels' suggestion: https://gist.github.com/2993701 | 06:17 |
|
Silex
| someone should correct the text | 06:18 |
|
_ikke_
| Silex: What should be changed? | 06:18 |
|
Blaker0111
| SIlex: to me its showing up as a TM symbol after see | 06:18 |
|
dpwright
| tested it and it seems to work, but you need to be a bit careful with it | 06:18 |
|
Silex
| the M- part | 06:18 |
|
| oh, maybe my client doens't render that symbol properly | 06:18 |
|
_ikke_
| Yup | 06:18 |
|
| Here it works | 06:18 |
|
Silex
| a'ight | 06:18 |
| → dc5ala joined | 06:20 |
| → hoschi joined | 06:21 |
| ← weiyang left | 06:23 |
| ← williamcotton left | 06:23 |
| → bgerber joined | 06:24 |
| ← Rhonda left | 06:25 |
| → Rhonda joined | 06:25 |
| → soee joined | 06:25 |
| → rtjure joined | 06:26 |
| ← andi left | 06:27 |
| ← BlindOracle left | 06:27 |
| → _Qman joined | 06:27 |
| → senny joined | 06:27 |
| → rath joined | 06:28 |
| ← _Qman left | 06:29 |
| ← Blaker0111 left | 06:29 |
| → _Qman joined | 06:30 |
| ← xreal left | 06:31 |
| ← madsy left | 06:32 |
| → tsdh joined | 06:32 |
| ← kkiero left | 06:32 |
| → boombatower_ joined | 06:32 |
| ← boombatower left | 06:32 |
| → kcj joined | 06:33 |
| → adityamenon90 joined | 06:33 |
| boombatower_ → boombatower | 06:34 |
| ← adityamenon left | 06:35 |
| → gour joined | 06:37 |
| ← toabctl left | 06:38 |
| → aristidesfl joined | 06:38 |
| ← adityamenon90 left | 06:40 |
| ← ferdna left | 06:41 |
| ← mishok13 left | 06:41 |
| → Xizor joined | 06:42 |
| → jonnu joined | 06:42 |
| → BarryCrayon joined | 06:43 |
| → eletuchy joined | 06:44 |
| ← jceb left | 06:45 |
| → ph^ joined | 06:47 |
| → superdmp joined | 06:47 |
| ← Davey left | 06:48 |
| → weiyang joined | 06:48 |
| → ottoshmidt joined | 06:48 |
| ← BarryCrayon left | 06:48 |
| ← harshpb left | 06:48 |
| → harshpb joined | 06:48 |
| ← airborn left | 06:48 |
| → beaky joined | 06:49 |
| → dhruvasagar joined | 06:50 |
| ← francisfish left | 06:52 |
| ← keller left | 06:52 |
| → adityamenon joined | 06:53 |
| → ashphy joined | 06:53 |
| ← bgerber left | 06:53 |
| ← Zespre left | 06:56 |
| md_5|away → md_5 | 06:56 |
| ← ashphy left | 06:57 |
| → Zespre joined | 06:57 |
| → ashphy joined | 06:57 |
| ← adityamenon left | 06:57 |
| → shruggar joined | 06:59 |
| → yizumi joined | 07:00 |
| ← Syzygy_ left | 07:00 |
| → thiago joined | 07:01 |
| ← Xizor left | 07:05 |
| → iwoj joined | 07:06 |
| ← avpx left | 07:06 |
| ← ashphy left | 07:06 |
| → harish joined | 07:07 |
| → pantsman joined | 07:07 |
| ← pantsman left | 07:07 |
| → pantsman joined | 07:07 |
| → ashphy joined | 07:07 |
| → madsy joined | 07:08 |
| → barmaglot joined | 07:10 |
| ← barmaglot left | 07:10 |
| → QaDeS joined | 07:10 |
| → barmaglot joined | 07:11 |
| ← ashphy left | 07:12 |
| ← aspotashev left | 07:12 |
| ← denysonique left | 07:12 |
| → aspotashev joined | 07:12 |
| → denysonique joined | 07:13 |
| → mishok13 joined | 07:15 |
| ← beaky left | 07:16 |
| → nisseni joined | 07:16 |
| → legumbre_ joined | 07:17 |
| → Huevo joined | 07:17 |
| ← hoschi left | 07:18 |
| → e-ndy- joined | 07:19 |
| → crash\ joined | 07:19 |
| ← rrs left | 07:19 |
| ← Orbitrix left | 07:19 |
| ← surfdue left | 07:19 |
| ← e-ndy left | 07:19 |
| ← malesca left | 07:19 |
| ← crash\\ left | 07:19 |
| ← CEnnis91 left | 07:19 |
| → surfsue joined | 07:19 |
| surfsue → surfdue | 07:19 |
| ← dougsland left | 07:19 |
| ← jab416171|Cloud left | 07:19 |
| → rrs joined | 07:19 |
| → dougsland joined | 07:19 |
| ← palm_vue left | 07:20 |
| ← Lgb left | 07:20 |
| → CEnnis91 joined | 07:20 |
| → jab416171|Cloud joined | 07:20 |
| → malesca joined | 07:21 |
| → antgel joined | 07:21 |
| ← redii left | 07:21 |
| ← elnn left | 07:21 |
| ← naught101 left | 07:21 |
| → Lgb joined | 07:21 |
| → palm_vue joined | 07:21 |
| ← AlbireoX`Laptop left | 07:22 |
| ← andrewhl left | 07:22 |
| → elnn joined | 07:22 |
|
antgel
| hi all. i have a question about git mv. does it apply just to the branch i'm working on? i have a branch 'master' and a branch 'foo'. if i git mv some files on foo, then git checkout master (without committing my git mv changes), git status reports the moves. yet i don't want them to apply to master. what am i doing wrong? | 07:23 |
| → oo_miguel joined | 07:23 |
|
_ikke_
| antgel: You first have to commit them | 07:23 |
| ← legumbre left | 07:23 |
| ← oo_miguel left | 07:23 |
| → oo_miguel joined | 07:24 |
|
_ikke_
| antgel: Anything that is not committed does not belong to any branch | 07:24 |
| → tigrang_ joined | 07:24 |
|
oo_miguel
| Does git also remeber file permissions? | 07:24 |
|
_ikke_
| oo_miguel: Only executable | 07:24 |
|
oo_miguel
| ok thank you | 07:24 |
| ← tigrang left | 07:24 |
| → psoo joined | 07:25 |
| ← boombatower left | 07:28 |
| ← ColKurtz left | 07:28 |
| → RickXy joined | 07:29 |
| ← agile left | 07:30 |
| ← rtjure left | 07:31 |
| → Aaeriele_ joined | 07:31 |
| → pureluck_ joined | 07:31 |
| → styx__ joined | 07:31 |
| → Ferris_ joined | 07:31 |
| → valberg_ joined | 07:31 |
| → sriehl_ joined | 07:31 |
| ← orafu left | 07:31 |
| → kdub3_ joined | 07:31 |
| → wereHams1er joined | 07:31 |
| → piotr__ joined | 07:31 |
| → Spockz_ joined | 07:32 |
| → zaiste_ joined | 07:32 |
| → telmich_ joined | 07:32 |
| ← telmich_ left | 07:32 |
| → telmich_ joined | 07:32 |
| → nipnop joined | 07:32 |
| → libertyp1ime joined | 07:32 |
| ← notfunk left | 07:32 |
| → orafu joined | 07:32 |
| → flijten joined | 07:32 |
| ← yizumi left | 07:32 |
| → cytrinox_ joined | 07:32 |
| → notfunk joined | 07:32 |
| ← igotnolegs left | 07:33 |
| ← thursday left | 07:34 |
| → [W] joined | 07:34 |
| → Gizmokid2010 joined | 07:35 |
| → neersigh^ joined | 07:35 |
| → Zenopus_ joined | 07:35 |
| ← wereHams1er left | 07:36 |
| ← rrs left | 07:36 |
| ← shruggar left | 07:36 |
| ← harshpb left | 07:36 |
| ← dc5ala left | 07:36 |
| ← JeremyWei left | 07:36 |
| ← fisted left | 07:36 |
| ← iori left | 07:36 |
| ← libertyprime left | 07:36 |
| ← Tasser left | 07:36 |
| ← Khisanth left | 07:36 |
| ← felher left | 07:36 |
| ← project2501a left | 07:36 |
| ← snappy left | 07:36 |
| ← Zenopus left | 07:36 |
| ← pureluck left | 07:36 |
| ← piotr left | 07:36 |
| ← kdub3 left | 07:36 |
| ← sriehl left | 07:36 |
| ← wereHamster left | 07:36 |
| ← eighty4 left | 07:36 |
| ← Spockz left | 07:36 |
| ← zaiste left | 07:36 |
| ← SunilThaha left | 07:36 |
| ← valberg left | 07:36 |
| ← marienz left | 07:36 |
| ← styx_ left | 07:36 |
| ← lectrick left | 07:36 |
| ← neersight[d] left | 07:36 |
| ← Gizmokid2005 left | 07:36 |
| ← keltvek left | 07:36 |
| ← telmich left | 07:36 |
| ← werring left | 07:36 |
| ← cytrinox left | 07:36 |
| ← constant left | 07:36 |
| ← Ferris left | 07:36 |
| ← Aaeriele left | 07:36 |
| cytrinox_ → cytrinox | 07:36 |
| Gizmokid2010 → Gizmokid2005 | 07:36 |
| telmich_ → telmich | 07:36 |
| Zenopus_ → Zenopus | 07:36 |
| → wereHamster joined | 07:37 |
| → teknopaul joined | 07:37 |
| → keltvek joined | 07:38 |
| → eighty4_ joined | 07:38 |
| → fisted joined | 07:39 |
| → ccapndave joined | 07:41 |
| → agile joined | 07:41 |
| e-ndy- → e-ndy | 07:42 |
| ← atomoul left | 07:42 |
| ← aspotashev left | 07:43 |
| → aspotashev joined | 07:44 |
| → _br_ joined | 07:46 |
| → Axsuul joined | 07:47 |
|
Axsuul
| is it good practice to keep around old branches (merge on commit)? | 07:47 |
| → jkremser joined | 07:47 |
| → simesy joined | 07:49 |
| ← dreiss_ left | 07:49 |
| → shruggar joined | 07:49 |
|
wereHamster
| Axsuul: do you need them? | 07:51 |
|
Axsuul
| Not really but it helps to see the history | 07:51 |
|
wereHamster
| does it? | 07:51 |
|
Axsuul
| I like seeing the history graph | 07:52 |
|
deebo
| i usually just have one called 'dev' i do everything in, then rebase it, merge to master and push changes to origin | 07:52 |
| → adityamenon joined | 07:52 |
|
wereHamster
| Axsuul: to see thi history graph you don't have to keep the refs around | 07:52 |
|
deebo
| unless i really need a branch for long term development | 07:52 |
| → maloik joined | 07:53 |
|
maloik
| I had to make some changes/deletions while I had started working on something else, normally I'd just add all the files I want in this commit and then commit, leaving out those files that belong to the next commit | 07:53 |
|
| How can I add some deletions as well ? | 07:53 |
|
wereHamster
| git add <the deleted file> | 07:53 |
|
| or run 'git status' and read | 07:54 |
|
maloik
| wereHamster: I thought so too but that doesnt seem to work | 07:54 |
| → adhawkins joined | 07:54 |
|
maloik
| when I do that, status doesnt return this deletion to the staged changes | 07:54 |
|
wereHamster
| maloik: can you pastebin the output from git status? | 07:55 |
| → whitman joined | 07:55 |
| ← shruggar left | 07:55 |
|
maloik
| wereHamster: http://pastie.org/4152988 | 07:55 |
| → bubbles10101 joined | 07:55 |
|
wereHamster
| maloik: hm. sorry. git rm --cached <the delteed file> | 07:56 |
|
maloik
| huh... i just tried that before and didnt get the impression it worked | 07:56 |
|
| seems to do the trick now, thanks | 07:56 |
| → dr_diamond joined | 07:56 |
| ← tigrang_ left | 07:57 |
| → BarryCrayon joined | 08:00 |
| ← Zespre left | 08:01 |
| → Zespre joined | 08:01 |
| → LimeBlast joined | 08:02 |
| ← ipoval left | 08:02 |
| ← ill1cit left | 08:03 |
| → Khisanth joined | 08:04 |
| → constant joined | 08:04 |
| → project2501a joined | 08:04 |
| → SunilThaha joined | 08:04 |
| → TheHaven joined | 08:05 |
| → harshpb joined | 08:05 |
| → francisfish joined | 08:05 |
| → dc5ala joined | 08:05 |
| ← pantsman left | 08:05 |
| → marhaban joined | 08:06 |
| → ziro` joined | 08:07 |
| ← d4rklit3 left | 08:07 |
| ← tsdh left | 08:08 |
| ← adityamenon left | 08:08 |
| ← thiago left | 08:09 |
| → iori joined | 08:09 |
| → Tasser joined | 08:09 |
| → felher joined | 08:09 |
| → marienz joined | 08:09 |
|
antgel
| _ikke_: thank you | 08:10 |
|
_ikke_
| antgel: your welcome | 08:10 |
|
gour
| morning | 08:11 |
| → uman joined | 08:11 |
| → yizumi joined | 08:11 |
|
jmd
| _ikke_: s/your/you're/ | 08:11 |
| ← Vile left | 08:12 |
|
_ikke_
| jmd: Ah yeah, autotypism | 08:13 |
| → blacktulip joined | 08:14 |
|
uman
| Hi, can someone give me a hint on the difference between "git push" and "git push -u" ? I didn't understand the man page's terse description | 08:14 |
|
_ikke_
| uman: -u or --set-upstream sets some config options that lets git know which remote branch your branch is tracking | 08:15 |
| ← leeight_ left | 08:15 |
| → OOPMan joined | 08:15 |
|
gour
| i've started reading pro-git book in order to learn (some) git and wonder how to have treeless repo in one location and working directory in another (that's what bzr's lightweight checkout does)? i know there is option to do: git init --bare, but waht about the 2nd part? | 08:15 |
|
_ikke_
| uman: (when git status says, your branch is behind .. and can be merged is a result of that) | 08:15 |
|
uman
| _ikke_: okay, so after I use it once to get the remote and local repositories aligned, I should only need to "git push" after that ? | 08:15 |
| → stodan joined | 08:15 |
|
_ikke_
| uman: yes | 08:15 |
|
| gour: You clone from the bare repository | 08:15 |
|
uman
| _ikke_: okay, thanks :) | 08:16 |
| ← weiyang left | 08:16 |
|
_ikke_
| uman: also look at the push.default config option | 08:16 |
|
gour
| _ikke_: and i'll get just working repo? let me try it... | 08:17 |
| ← hwrd|work left | 08:17 |
|
_ikke_
| gour: Yes | 08:18 |
| → marcogmonteiro joined | 08:18 |
| → jceb joined | 08:18 |
| → und3f joined | 08:18 |
|
gour
| _ikke_: cool...i (foolishly) thought git is too complex in comparison with other dvcs, but, although very powerful, it seems to be not so complicated... | 08:19 |
|
_ikke_
| gour: !simple | 08:19 |
|
gitinfo
| gour: At it's heart, git is made up of many concepts that are individually simple. Getting the whole picture right is often tricky, and it's usually about breaking up the complex concept into its simple, individual parts and groking those. | 08:19 |
| → lectrick joined | 08:19 |
|
gour
| :-) | 08:19 |
|
uman
| should be "grokking" | 08:20 |
| ← eletuchy left | 08:20 |
|
_ikke_
| The problem with git is that it's not afraid to inform the user about the inner workings, where that is shielded off from the user in most other SCM's | 08:20 |
|
| uman: Yeah | 08:20 |
| ← marienz left | 08:21 |
|
_ikke_
| .trigger_edit simple At it's heart, git is made up of many concepts that are individually simple. Getting the whole picture right is often tricky, and it's usually about breaking up the complex concept into its simple, individual parts and grokking those. | 08:21 |
|
gitinfo
| _ikke_: Okay. | 08:21 |
| ← jkremser left | 08:21 |
| ← yizumi left | 08:21 |
| ← iwoj left | 08:22 |
| ← sdeboey left | 08:22 |
| ← abstrusenick left | 08:22 |
| → tcurdt joined | 08:23 |
| ← tcurdt left | 08:23 |
| → yizumi_ joined | 08:23 |
| ← alanhollis left | 08:24 |
| → marienz joined | 08:24 |
| → shruggar joined | 08:25 |
| ← Pupeno_W left | 08:25 |
| ← aspotashev left | 08:25 |
| ← codeshah left | 08:25 |
| → Pupeno_W joined | 08:25 |
| → aspotashev joined | 08:25 |
| ← ocharles left | 08:26 |
| ← Mkaysi left | 08:26 |
| ← fuzzybunny69y left | 08:26 |
| → mklappstuhl joined | 08:27 |
| → puneetgoyal joined | 08:27 |
| → Lord_DeathMatch joined | 08:27 |
| → ocharles joined | 08:28 |
| → ill1cit joined | 08:28 |
| → Mkaysi_ joined | 08:29 |
| ← jim left | 08:29 |
| → kpreid joined | 08:30 |
|
luka12345
| i would like to checkout folder (and all subfolders) to specifc commit | 08:30 |
|
| anybody knows how to do that? | 08:30 |
|
| but without touching all other folders | 08:30 |
|
jmd
| That doesn't make an awfull lot of sense. | 08:31 |
|
luka12345
| well it does in my case | 08:31 |
|
jmd
| You can reset or checkout to a particular commit. | 08:31 |
|
| You can list the changes of a particular commit. | 08:32 |
|
luka12345
| and i want to do that but only on 1 folder | 08:32 |
|
jmd
| But what do you mean "folders to a specific commit"?# | 08:32 |
|
luka12345
| doing it by hand is out of option | 08:33 |
| → tatsuya_o joined | 08:33 |
|
luka12345
| i want to go back in history - checkout commit | 08:33 |
| → crippa joined | 08:33 |
|
jast
| you can't do a partial 'go back in history' | 08:33 |
|
| you *can*, however, overwrite a set of files with an old version | 08:33 |
|
| e.g.: git checkout <commit ID> <path> | 08:34 |
|
luka12345
| let me try that one | 08:34 |
| → ipalaus joined | 08:34 |
|
crippa
| I have a file called ".gitignore" in my local folder and it contains "*.class". Nevertheless, my .class files are shown when I digit "git status". How to avoid it? | 08:34 |
| → durre joined | 08:35 |
|
jast
| crippa: are your .class files already added to git? because then the rules no longer apply to them... | 08:35 |
| → berserkr joined | 08:35 |
|
crippa
| that could be the case. How can I remove them? | 08:35 |
|
jast
| git rm --cached *.class | 08:36 |
| ← elnn left | 08:36 |
|
luka12345
| jast: that was what i needed | 08:36 |
|
jast
| that won't be recursive, of course | 08:36 |
| ← ccapndave left | 08:36 |
|
durre
| I just got back from vacation and found a lot of faulty commits in the repo. whats the best practice for reverting to a certain commit? | 08:36 |
|
luka12345
| jast: thank you | 08:36 |
| → alanhollis joined | 08:36 |
|
jast
| !revert | 08:36 |
|
gitinfo
| "Revert" is a heavily overloaded term. Do you mean: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard the uncommitted changes in the working tree [git checkout -- .]; c) undo committing [git reset --soft HEAD^, but type !rewriting_public_history] ? | 08:36 |
|
crippa
| jast: thanks a lot, that made teh trick. | 08:37 |
| → elnn joined | 08:37 |
| → tasslehoff joined | 08:37 |
|
durre
| I think I mean a) :) | 08:38 |
| → jkremser joined | 08:38 |
| → Element9 joined | 08:39 |
| → shreya joined | 08:39 |
|
tasslehoff
| is there a nicer way to do "git diff master origin/master > foo.diff"? I want all the changes in my master as one patch. | 08:40 |
|
jast
| if you want it as a single patch, I don't think there is | 08:41 |
| ← ill1cit left | 08:42 |
| → ill1cit joined | 08:43 |
|
wereHamster
| tasslehoff: what is wrong with "git diff master origin/master > foo.diff" ? | 08:43 |
|
| how does that not work for you? | 08:43 |
|
luka12345
| jast: after git checkout i did also git reset <commit ID> <path> | 08:46 |
| ← Lord_DeathMatch left | 08:46 |
| ← elnn left | 08:46 |
| → Lord_DeathMatch joined | 08:46 |
| → elnn joined | 08:46 |
|
luka12345
| that way i dont have to deal with uncommited files in that commit | 08:46 |
| ← harshpb left | 08:46 |
| ← uman left | 08:47 |
| → jatt joined | 08:48 |
| → Vile joined | 08:49 |
| → weiyang joined | 08:49 |
| → Joshua_MG joined | 08:51 |
| → dzonder joined | 08:51 |
| → PigeonFriend joined | 08:51 |
|
tasslehoff
| wereHamster: I just wondered if there was a format-patch curse to do it | 08:53 |
|
Joshua_MG
| hi. Dummy question about who is starting on git: if I have a poroject with files 'a' and 'b' on my master, and create a branch that contains only the file 'a', when I update the content on master I can just merge the master on my branch and only the file 'a' will be updated (I mean, the file 'b' will not be "recreated" on my branch)? | 08:53 |
|
wereHamster
| tasslehoff: no. format-patch creates one patch for each commit | 08:53 |
|
FauxFaux
| Joshua_MG: !tias | 08:53 |
|
gitinfo
| Joshua_MG: Try it and see™. You learn much more by experimentation than by asking without having even tried. If in doubt, make backups before you experiment (see !backup). http://sitaramc.github.com/1-basic-usage/tias.html may help with git-specific TIAS. | 08:53 |
|
jast
| Joshua_MG: no | 08:54 |
|
| but there's a trick to make it happen like that | 08:54 |
| → tqmz joined | 08:54 |
|
jast
| branch off, create the commit where you delete the other file (so that your new branch has only 'a' left), then go back to master and do a git merge -s ours yourbranch | 08:54 |
|
| it's not pretty... but it works | 08:55 |
|
Joshua_MG
| uhm, got it | 08:55 |
|
| tks | 08:55 |
| → BlindOracle joined | 08:55 |
|
jast
| you do this '-s ours' thing only once, though | 08:55 |
|
| it's just to tell git: don't actually merge these changes but pretend that you did, so that they won't be applied again during a future merge | 08:56 |
| Spockz_ → Spockz | 08:57 |
| ← aspotashev left | 08:57 |
| → thiago joined | 08:57 |
| ← twb left | 08:58 |
| ← iori left | 08:59 |
| ← Tasser left | 08:59 |
| ← felher left | 08:59 |
| → harshpb joined | 08:59 |
| → felher joined | 09:00 |
| → iori joined | 09:00 |
| → Tasser joined | 09:00 |
|
tasslehoff
| When I try to apply that patch with "patch -p1 --dry-run < foo.diff", most files work, but some that should be deleted give "Reversed (or previously applied) patch detected!". Any idea what could cause that? | 09:01 |
| → kinetic joined | 09:03 |
| ← kinetic left | 09:03 |
| → ashphy joined | 09:03 |
| → andref_dias joined | 09:04 |
|
thiago
| tasslehoff: try apply the patch with git apply instead | 09:04 |
|
tasslehoff
| seems to be when it encounters binary files | 09:04 |
|
cbreak-work
| git am is for applying patches made by format-patch | 09:05 |
| → teonanacatl joined | 09:06 |
|
teonanacatl
| hello | 09:06 |
|
gitinfo
| teonanacatl: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 09:06 |
|
tasslehoff
| I haven't tried git am, but both patch and git apply struggles with the binary files | 09:06 |
|
teonanacatl
| i've got a submodule pointing to a specific tag. how do i set this to HEAD for example, or another tag? | 09:06 |
| [W] → Werring | 09:06 |
| → adityamenon joined | 09:07 |
| ← eighty4_ left | 09:07 |
| → apok joined | 09:07 |
| → eighty4 joined | 09:07 |
| gitinfo set mode: +v | 09:07 |
| gitinfo set mode: +v | 09:07 |
|
cbreak-work
| teonanacatl: submodules don't point to a tag | 09:08 |
|
| they point to a commit | 09:08 |
|
| that's the only thing they can point to | 09:08 |
|
| also, submodules are always on HEAD | 09:09 |
| → cortana2 joined | 09:09 |
| ← bubbles10101 left | 09:09 |
|
cbreak-work
| like any other git repository too, since HEAD is the current commit/branch/... | 09:09 |
|
| if you want to change to which commit a submodule points to, check it out, then add and commit in the parent | 09:09 |
|
teonanacatl
| git submodule shows: 7460ef14105be800f0ec9c7489d106748633eaa3 foo/bar (my-tag) - so i thought it is pointing to the tag "my-tag" | 09:10 |
|
| other submodules are showing heads/master | 09:10 |
| → adityamenon90 joined | 09:10 |
|
cbreak-work
| teonanacatl: that's just the repository that you have as submodule | 09:12 |
|
| submodules themselves are only recorded by commit | 09:12 |
|
teonanacatl
| i cd's into the submodule, checked out master, cd'd to the parent-project and committed - but it's still saying "my-tag" | 09:12 |
| ← adityamenon left | 09:12 |
|
teonanacatl
| this is so confusing. | 09:13 |
|
cbreak-work
| what does git status show? | 09:14 |
|
teonanacatl
| nothing to commit (working directory clean) | 09:16 |
| ← Zespre left | 09:16 |
| → Zespre joined | 09:17 |
| ← ipalaus left | 09:17 |
|
cbreak-work
| then it's ok. | 09:18 |
| ← Zespre left | 09:19 |
| ← havocologe left | 09:20 |
| ← d3vic3 left | 09:23 |
| → d3vic3 joined | 09:23 |
| ← d3vic3 left | 09:24 |
| ← jkremser left | 09:26 |
| → havocologe joined | 09:27 |
| ← simesy left | 09:27 |
| ← dhruvasagar left | 09:27 |
| → d3vic3 joined | 09:28 |
| → dhruvasagar joined | 09:28 |
| ← d3vic3 left | 09:28 |
| ← simesy_work left | 09:29 |
| → d3vic3 joined | 09:30 |
| → sylr joined | 09:31 |
| ← jceb left | 09:33 |
| → bubbles10101 joined | 09:33 |
| ← ashphy left | 09:34 |
| → theCole joined | 09:36 |
| → dr_lepper joined | 09:36 |
| ← dr_lepper left | 09:36 |
| → dr_lepper joined | 09:36 |
| ← caseymcg left | 09:37 |
| ← GameGamer43 left | 09:37 |
| → ashphy joined | 09:37 |
| ← heroux left | 09:38 |
| ← d3vic3 left | 09:39 |
| → heroux joined | 09:39 |
| → GameGamer43 joined | 09:39 |
| → jkremser joined | 09:39 |
| → tvw joined | 09:39 |
| → d3vic3 joined | 09:40 |
| → Per4u3e joined | 09:41 |
| → gusnan joined | 09:42 |
| → argoneus joined | 09:44 |
| → mabrand joined | 09:44 |
| → ipalaus joined | 09:44 |
| ← argoneus left | 09:45 |
| → argoneus joined | 09:45 |
| → achadwick joined | 09:45 |
| ← aristidesfl left | 09:47 |
| → aristidesfl joined | 09:49 |
| → rtjure joined | 09:50 |
| → kkszysiu_work joined | 09:50 |
| ← rbarraud_ left | 09:51 |
| → arietis joined | 09:51 |
| ← weiyang left | 09:51 |
| ← GameGamer43 left | 09:52 |
| ← Per4u3e left | 09:52 |
| ← jackh left | 09:52 |
| ← aristidesfl left | 09:53 |
| → GameGamer43 joined | 09:53 |
| ← ISF left | 09:54 |
| → Per4u3e joined | 09:54 |
|
shruggar
| External company sends entire month of work as a single commit, then notices they can't push a tag "we find them useful for tracking releases" | 09:56 |
|
| my mind boggles | 09:56 |
| → aristidesfl joined | 09:56 |
| → jceb joined | 09:56 |
|
shruggar
| is it really such a difficult concept that if your commit-message has bullet points listing out what changes were made, those changes ought to be separate commits? | 09:57 |
| ← puneetgoyal left | 09:57 |
| → leeight_ joined | 09:57 |
|
FauxFaux
| I was in charge of recieving zipped source trees from contractors, and asking them for the missing files necessary to make it build, at my last job. | 09:59 |
|
andres
| Poor you. | 09:59 |
| ← superdmp left | 10:00 |
| → simesy_work joined | 10:01 |
| → puneetgoyal joined | 10:01 |
| ← jmd left | 10:01 |
| → sh0ne joined | 10:01 |
| → adhawkins_ joined | 10:01 |
|
shruggar
| we've just starting working with a company in india, and I've finally been listened to regarding contractual stipulations of how code should be delivered (it must be sent in a form which is conducive to code review, and various bullet points about what that actually means) | 10:01 |
| ← sh0ne left | 10:02 |
| → sh0ne joined | 10:02 |
|
shruggar
| I still need to tell them at least once a week "No, you cannot have access to our live back-end. You have been provided with a copy of our database, scrubbed of customer data. Use that." | 10:03 |
| ← aristidesfl left | 10:03 |
|
FauxFaux
| I really like !parable, but it's obviously far too long for anyone of that type to read. | 10:03 |
|
gitinfo
| 'The git parable' provides some good reasoning behind git. http://tom.preston-werner.com/2009/05/19/the-git-parable.html | 10:03 |
| adhawkins → adhawkins-test | 10:04 |
| → maleknet joined | 10:04 |
| → aristidesfl joined | 10:04 |
| → Yuuhi joined | 10:05 |
| ← shruggar left | 10:05 |
| ← adhawkins_ left | 10:07 |
| ← aristidesfl left | 10:07 |
| → adhawkins joined | 10:07 |
| ← raek left | 10:09 |
| → aristidesfl joined | 10:11 |
| ← RaceCondition left | 10:11 |
| ← ashphy left | 10:14 |
| → Zespre joined | 10:14 |
| → robotmay joined | 10:14 |
| ← apok left | 10:14 |
| ← aristidesfl left | 10:16 |
| ← maleknet left | 10:17 |
| ← d3vic3 left | 10:17 |
| → aristidesfl joined | 10:18 |
| → d3vic3 joined | 10:19 |
| → maleknet joined | 10:19 |
| → amitprakash joined | 10:23 |
| ← ipalaus left | 10:23 |
|
amitprakash
| Hi... I made a couple of changes to a repo, and commited them.. is it possible to revert back from the commit to the staged state? | 10:24 |
| ← herdingcat left | 10:24 |
|
FauxFaux
| amitprakash: !reset Read the whole thing before running anything or you WILL LOSE ALL YOUR FILES. | 10:25 |
|
gitinfo
| amitprakash: A good resource explaining git-reset is http://progit.org/2011/07/11/reset.html | 10:25 |
|
andres
| amitprakash: not sure if its what you want but git reset --soft might be what youre looking for | 10:25 |
|
FauxFaux
| (And then we'll just point and laugh.) | 10:25 |
|
cortana2
| i think --soft is the right one | 10:25 |
|
| you will feel like indiana jones when picking out the cup of christ | 10:25 |
|
| heytrav, the git-reset man page has been rewritten since i last read it. it's a lot better now | 10:26 |
|
amitprakash
| andres, well I already did a --soft HEAD^ .. but I am unable to checkout or git-rm the files I have removed using rm command instead | 10:27 |
|
jast
| note that you can just amend your commit, too, if all you want to do is fix it | 10:27 |
|
amitprakash
| FauxFaux, also, so long as reflog is there.. I think I should be able to get back to a commit :) | 10:28 |
| ← adityamenon90 left | 10:28 |
|
FauxFaux
| You keep believing that. I'll prepare to laugh. :) | 10:28 |
|
amitprakash
| :( | 10:28 |
|
jast
| 'unable to'? !work | 10:29 |
|
gitinfo
| [!doesntwork] Sorry to hear it doesn't work. What happened? Did it fall asleep on your couch, with your sister? Eat your homework? What did you want it to do? What happened instead? Please be specific! | 10:29 |
| → noisebleed joined | 10:32 |
| ← noisebleed left | 10:32 |
| → noisebleed joined | 10:32 |
| → roychri joined | 10:32 |
| ← adhawkins-test left | 10:32 |
| → babilen joined | 10:32 |
| ← jacobrask left | 10:33 |
| ← chaowang left | 10:33 |
| → plastics joined | 10:33 |
| ← babilen left | 10:34 |
| ← nasso left | 10:35 |
| → yatiohi joined | 10:36 |
| → adityamenon joined | 10:37 |
|
linduxed
| can i write comments in the .gitmodules file? | 10:37 |
|
| and add some empty lines to make stuff more categorized? | 10:37 |
|
jast
| sure. prefix comments with # | 10:37 |
| ← plastics left | 10:37 |
|
linduxed
| ok, good thx | 10:37 |
|
jast
| same as in .git/config | 10:37 |
| ← tqmz left | 10:38 |
| → tqmz joined | 10:38 |
| → nasso joined | 10:39 |
| ← flijten left | 10:39 |
| → jacobrask joined | 10:40 |
| → ak5 joined | 10:40 |
| ← mklappstuhl left | 10:40 |
| → federic joined | 10:40 |
|
ak5
| hi if I want to delete a branch on the origin, how can I do this? I deleted it locally already | 10:40 |
| → crazyrohila joined | 10:41 |
| ← crazyrohila left | 10:41 |
| ← flaguy48 left | 10:42 |
|
adhawkins
| ak5: git push --delete origin branch | 10:42 |
|
| (I think) | 10:42 |
| → shwaiil joined | 10:42 |
|
shwaiil
| hi | 10:42 |
|
amitprakash
| jast, sorry.. by unable to I meant that on checkout of files deleted via rm -fR such as dojo library, git checkout path/ git rm path leads to 'fatal: pathspec $path did not match any files' | 10:42 |
| → RaceCondition joined | 10:42 |
|
shwaiil
| How to pull from repository and forget about anything done locally ? (suposely i'm ahead 10 commits, but this is old and not needed anymore) | 10:43 |
|
jast
| amitprakash: since you already did the soft reset, try: git checkout HEAD path/ | 10:43 |
|
| shwaiil: git fetch; git reset --hard origin/master (note that this will destroy uncommitted stuff, too) | 10:43 |
| ← Guest33096 left | 10:43 |
| → adhawkins2 joined | 10:43 |
|
ak5
| adhawkins: that works, as does git push origin :branch | 10:43 |
|
amitprakash
| jast, that works.. thanks | 10:43 |
| → totte joined | 10:43 |
|
adhawkins
| ak5: Yes, the second syntax you quote is the original, hard to remember one. | 10:43 |
|
| :) | 10:43 |
| ← adhawkins2 left | 10:44 |
|
ak5
| thanks! | 10:44 |
| ← maleknet left | 10:44 |
|
amitprakash
| jast, could you please also provide an explanation as to why the latter works but the former doesn't? | 10:44 |
|
jast
| amitprakash: git reset --soft updates the ref but not the index. git checkout without commit arg tries to get the files from the index, where they were evidently deleted earlier. | 10:44 |
|
shwaiil
| jast: thanks a lot! I was trying to do 'git reset --hard HEAD', I was on master branch, what's the diference ? your command worked, maybe I were doing something wrong, not sure. | 10:45 |
|
jast
| shwaiil: !HEAD | 10:45 |
|
gitinfo
| shwaiil: HEAD is a 'pointer' in the repository that refers to whatever is currently checked out (or the default branch in bare repositories). It's not specific to any branch. | 10:45 |
|
amitprakash
| jast, ah, that makes sense | 10:45 |
|
| thanks | 10:45 |
|
jast
| shwaiil: so, resetting to HEAD doesn't change your branch, it only throws away uncommitted changes | 10:45 |
| ← leeight_ left | 10:45 |
|
shwaiil
| I see! Well, when I do 'git push origin OTHER_BRANCH_NOT_MASTER' I get error: pathspec 'development' did not match any file(s) known to git. | 10:46 |
|
jast
| and you do have that 'development' branch locally, right? (I'm guessing that's what you tried to push) | 10:46 |
| → ISF joined | 10:47 |
| → naught101 joined | 10:48 |
| ← OOPMan left | 10:48 |
|
shwaiil
| I need to create it first and then pull ? ehh 'git checkout -b NEW_BRANCH_NAME origin/NEW_BRANCH_NAME something like this ? | 10:48 |
|
| reald world 'git checkout -b development origin/development | 10:48 |
|
| :T | 10:48 |
| → cheetsz joined | 10:49 |
| ← chrisward left | 10:51 |
| → chrisward joined | 10:51 |
| ← enmand left | 10:54 |
|
ziro`
| given a valid reference, how can i obtain the commit that this reference points to?> | 10:54 |
|
wereHamster
| ziro`: git rev-parse <ref> | 10:55 |
| ← chrisward left | 10:55 |
|
wereHamster
| ziro`: git rev-parse <ref>^{commit} | 10:55 |
|
ziro`
| does that return all the revs? | 10:55 |
|
wereHamster
| no, just one. a ref can point only to one commit | 10:55 |
| ← madsy left | 10:55 |
| → chrisward joined | 10:55 |
|
ziro`
| awesome ta :) | 10:55 |
|
wereHamster
| like a pointer. You can't have it point to multiple things. How would that work? | 10:55 |
|
ziro`
| alright, i just wondered if rev-parse returned all the commit id's | 10:56 |
|
| that are children of the reference | 10:56 |
|
| etc | 10:56 |
|
wereHamster
| that's what git rev-list is for, or git log | 10:56 |
|
ziro`
| ok, well I wasn't aware, but thank you :) | 10:56 |
| → puneet joined | 10:57 |
| ← sejo left | 10:57 |
| → cedr joined | 10:58 |
| → flijten joined | 10:58 |
| ← puneetgoyal left | 10:58 |
| ← aristidesfl left | 10:59 |
| ← ziro` left | 11:00 |
| → maleknet joined | 11:01 |
| → ipalaus joined | 11:02 |
| → aristidesfl joined | 11:02 |
| → spaceonline joined | 11:03 |
| → babilen joined | 11:04 |
| Marcux83|away → Marcux83 | 11:05 |
| ← chrisward left | 11:06 |
| ← d3vic3 left | 11:06 |
| → shruggar joined | 11:06 |
| → d3vic3 joined | 11:08 |
| ← maleknet left | 11:08 |
| → Sil4nc4 joined | 11:10 |
| ← flijten left | 11:11 |
| → netzmonster joined | 11:11 |
| → angelsl joined | 11:12 |
| ← cedr left | 11:12 |
| → chrisward joined | 11:12 |
| → cedr joined | 11:12 |
| → flyz joined | 11:13 |
| → RaceCondishun joined | 11:13 |
| ← RaceCondishun left | 11:13 |
| → RaceCondishun joined | 11:14 |
| ← roychri left | 11:14 |
| → RaceCondishun_ joined | 11:14 |
| ← ottoshmidt left | 11:16 |
| ← RaceCondition left | 11:16 |
| ← RaceCondishun left | 11:18 |
| ← shruggar left | 11:19 |
| → rtuin joined | 11:20 |
| ← marthinal left | 11:22 |
|
shwaiil
| Q: Is there a way to RM all deletes files on working directory ? I usually do it one by one | 11:24 |
| ← daniel-s left | 11:25 |
|
thiago
| git rm * | 11:25 |
|
FauxFaux
| shwaiil: man git add, flags like -u and -A. | 11:25 |
|
gitinfo
| shwaiil: the git-add manpage is available at http://git-scm.com/docs/git-add.html | 11:25 |
|
shwaiil
| thiago: won't that rm the other files ? | 11:25 |
|
| FauxFaux: I'll take a read, tks | 11:25 |
|
_ikke_
| shwaiil: yes | 11:25 |
| → daniel-s joined | 11:25 |
| ← Fandekasp left | 11:25 |
|
shwaiil
| _ikke_: yes what ? =) | 11:25 |
|
thiago
| shwaiil: you asked how to delete all files | 11:26 |
|
| shwaiil: there are no "other files" besides "all files" | 11:26 |
| → Fandekasp joined | 11:26 |
| → roychri joined | 11:26 |
|
_ikke_
| thiago: RM all deleted files | 11:26 |
| → maleknet joined | 11:26 |
|
shwaiil
| thiago: yeah, what I really ment is, I deleted some files in the working directy, I got a list of "deleted files" and I need to "GIT RM" all on that ls. | 11:26 |
| → marthinal joined | 11:27 |
|
shwaiil
| not sure if made more sense :T | 11:27 |
|
| I'm taking a read onf FauxFaux -u and -A tip | 11:27 |
|
thiago
| shwaiil: you can just commit | 11:27 |
| ← jargon- left | 11:27 |
| → programer1234 joined | 11:27 |
|
FauxFaux
| thiago: Only with -a, which people here genrally complain about. | 11:28 |
|
_ikke_
| shwail: From the man: git ls-files -z | xargs -0 rm -f | 11:28 |
| ← programer1234 left | 11:28 |
|
_ikke_
| Oh wait | 11:28 |
| → n123 joined | 11:28 |
|
_ikke_
| shwail: From the man: git ls-files -d -z | xargs -0 rm -f | 11:28 |
|
FauxFaux
| She almost certainly wants "git add -u". :p | 11:28 |
|
_ikke_
| shwail: From the man: git ls-files -d -z | xargs -0 git rm | 11:28 |
|
| got the wrong one | 11:28 |
| → mklappstuhl joined | 11:29 |
|
_ikke_
| Hmm, here is a better version: git diff --name-only --diff-filter=D -z | xargs -0 git rm --cached | 11:29 |
| → enmand joined | 11:30 |
|
shwaiil
| FauxFaux: -u works fine | 11:30 |
|
EmilyS
| heya enmand | 11:31 |
|
| long time :) | 11:31 |
|
enmand
| Hey EmilyS | 11:31 |
|
gitinfo
| enmand: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 11:31 |
|
enmand
| Do I know you EmilyS? | 11:31 |
|
EmilyS
| <-- Noia | 11:31 |
|
enmand
| Ahh | 11:31 |
| md_5 → md_5|away | 11:31 |
|
enmand
| Well, that makes more sense :p | 11:31 |
|
EmilyS
| :D | 11:31 |
|
enmand
| :D | 11:31 |
|
| How're things? | 11:32 |
|
EmilyS
| it probably raises more questions than answers but still :P | 11:32 |
|
| Good! career is taking a turn for the awesome | 11:32 |
|
enmand
| Nice! What are you working on these days? | 11:32 |
| → sejo joined | 11:33 |
| ← roychri left | 11:34 |
| → fsvend joined | 11:36 |
| → flijten joined | 11:37 |
| ← ak5 left | 11:37 |
| ← Milossh left | 11:37 |
| → simesy joined | 11:38 |
| ← maleknet left | 11:38 |
| ← spaceonline left | 11:39 |
| → maleknet joined | 11:39 |
| ← simesy left | 11:39 |
| → beautifulmind joined | 11:39 |
| → OOPMan joined | 11:40 |
| → JeremyWei joined | 11:41 |
| ← maleknet left | 11:41 |
| → spaceonline joined | 11:42 |
| → raatiniemi joined | 11:43 |
| ← zdk left | 11:45 |
| ← bubbles10101 left | 11:46 |
| Marcux83 → Marcux83|away | 11:46 |
| cedr → zombiecedr | 11:49 |
| → jjbohn joined | 11:50 |
| ← toothrot left | 11:51 |
| → AdrienBrault joined | 11:51 |
| → toothr joined | 11:53 |
| ← harshpb left | 11:54 |
| ← tango_ left | 11:54 |
| → harshpb joined | 11:55 |
| ← ketas left | 11:55 |
| → tango_ joined | 11:56 |
| ← puneet left | 11:57 |
| → puneetgoyal joined | 11:57 |
| → maleknet joined | 11:58 |
| → ketas joined | 11:59 |
| ← AdrienBrault left | 11:59 |
| ← quazimodo left | 12:00 |
| → harv_ joined | 12:01 |
| ← harv left | 12:01 |
| harv_ → harv | 12:01 |
| ← toothr left | 12:01 |
| ← marthinal left | 12:02 |
| ← n123 left | 12:02 |
| → simesy joined | 12:03 |
| → Tinti joined | 12:03 |
| ← maleknet left | 12:04 |
| → mntzn_ joined | 12:04 |
| → toothr joined | 12:04 |
| → axt_work_ joined | 12:04 |
| → maleknet joined | 12:05 |
| → ryez joined | 12:06 |
| ← mntzn_ left | 12:06 |
| ← flyz left | 12:06 |
| ← philips left | 12:06 |
| → mntzn joined | 12:06 |
|
mntzn
| Hi, If I've just checked out an empty repository(git branch gives no output), how do I then push to a specific repository that should not be named master? | 12:06 |
|
wereHamster
| mntzn: what do you want to push if there is nothign? | 12:07 |
|
| you can not push nothing. how would that work.. ? | 12:07 |
| → intransit joined | 12:07 |
|
mntzn
| touch qwe; git add . ; git commit -m 'whatever'; git push | 12:08 |
|
wereHamster
| also, master is the name of a branch, not a repository | 12:08 |
|
| and.. that doesn't work? | 12:08 |
|
mntzn
| it goes pushesh to a master branch | 12:08 |
| → jargon- joined | 12:08 |
|
wereHamster
| and how would you like to name your local branch? | 12:08 |
|
mntzn
| can I make it so that the firsh push will be to my named branch other than master? | 12:09 |
|
wereHamster
| sure you can. | 12:09 |
|
mntzn
| great, how? | 12:09 |
| → philips joined | 12:09 |
| → ziro` joined | 12:09 |
| ← crippa left | 12:09 |
|
wereHamster
| git push origin HEAD:whateverzzzzz | 12:09 |
|
jast
| you could just rename your local branch | 12:09 |
| ← mklappstuhl left | 12:11 |
|
mntzn
| and that will make that branch a default one to be pulled from ? | 12:11 |
| ← ehsan left | 12:11 |
|
mntzn
| or clones | 12:11 |
|
| cloned* | 12:11 |
|
wereHamster
| non | 12:12 |
|
_ikke_
| mntzn: No, you would have to use git symbolic-ref on the remote repository | 12:12 |
| → shruggar joined | 12:12 |
| → SkAzZ joined | 12:12 |
|
mntzn
| ok, thanks | 12:13 |
| ← zombiecedr left | 12:15 |
| ← alanhollis left | 12:16 |
| → flyz joined | 12:17 |
|
ziro`
| http://a4.sphotos.ak.fbcdn.net/hphotos-ak-ash4/311589_467733126588009_148568698_n.jpg | 12:18 |
|
| woopps | 12:18 |
|
| sorry! | 12:18 |
|
| was a little bit hasty with that one :P | 12:18 |
| ← ziro` left | 12:18 |
| → marthinal joined | 12:20 |
| → RaceCondition joined | 12:20 |
| ← soee left | 12:20 |
| → cedr joined | 12:20 |
| ← _br_ left | 12:21 |
| → _br_ joined | 12:21 |
| → n123 joined | 12:22 |
| ← _br_ left | 12:22 |
| ← toothr left | 12:23 |
| ← RaceCondishun_ left | 12:23 |
| ← jjbohn left | 12:23 |
| → soee joined | 12:23 |
| ← Torsten85 left | 12:23 |
| → cedeon joined | 12:23 |
| → _br_ joined | 12:24 |
| → toothr joined | 12:24 |
| → jackh joined | 12:25 |
| → Torsten85 joined | 12:25 |
| ← jackh left | 12:25 |
| → jackh joined | 12:27 |
| → jn_ joined | 12:28 |
| → Sebo joined | 12:29 |
| → canton7 joined | 12:29 |
| ← arti_t left | 12:30 |
|
Sebo
| Hi, How can I swich the commits which the branch points to? | 12:30 |
| → adhawkins2 joined | 12:30 |
|
FauxFaux
| git branch -f branchname newcommitname | 12:30 |
| ← nisseni left | 12:31 |
| ← adhawkins2 left | 12:32 |
|
Sebo
| FauxFaux: thats it :) | 12:33 |
| → jcromartie joined | 12:33 |
| ← ph^ left | 12:37 |
| ← jn_ left | 12:37 |
| → ph^ joined | 12:38 |
| → fatpowder joined | 12:38 |
| gitinfo set mode: +v | 12:38 |
|
fatpowder
| hi. in a git repository, whenever someone commits a specific config file, how can i reject that? | 12:39 |
|
cmn
| you can use a pre-commit hook, but you can't enforce any checks at commit time | 12:39 |
|
| the user can either remove the hook or use --no-verify | 12:40 |
|
| you can refuse an update in a central repo under your control | 12:40 |
|
fatpowder
| cmn in pre-retrieve hook? | 12:41 |
|
cbreak-work
| what's that? | 12:41 |
|
| fatpowder: man githooks | 12:41 |
|
gitinfo
| fatpowder: the githooks manpage is available at http://git-scm.com/docs/githooks.html | 12:41 |
|
cmn
| that doesn't exist | 12:41 |
| → pyhead joined | 12:41 |
|
cmn
| and how would something pre-retreival help with committing or updating a repo? | 12:42 |
| → eurek joined | 12:42 |
| ← Tinti left | 12:42 |
| ← ph^ left | 12:42 |
|
cbreak-work
| just reject pushes that touch the config file | 12:42 |
|
| (don't see the point in that though, honestly...) | 12:43 |
|
_ikke_
| You shouldn't track config files anyway | 12:43 |
|
| !config | 12:43 |
|
gitinfo
| [!configfiles] the recommended way is to change your application so that you can (perhaps optionally) store site-specific configuration/data in separate files, then keep those files out of version control. Still, see https://gist.github.com/1423106 for ways people have worked around the problem. | 12:43 |
| ← _Vi left | 12:43 |
| → buggaboo joined | 12:43 |
| → Ryback_ joined | 12:45 |
| ← Ryback_ left | 12:45 |
| → Ryback_ joined | 12:45 |
| → imexil joined | 12:45 |
| legumbre_ → legumbre | 12:46 |
| ← imexil left | 12:46 |
| → d0k joined | 12:48 |
| → cakehero joined | 12:49 |
| → bombetta98888 joined | 12:49 |
| ← maleknet left | 12:49 |
| ← bombetta98888 left | 12:50 |
| → ehsan joined | 12:50 |
| → TrahDivad joined | 12:50 |
| ← yacc left | 12:50 |
| ← ipalaus left | 12:50 |
| ← TrahDivad left | 12:51 |
| → fsvend_ joined | 12:51 |
| ← d0k left | 12:51 |
| → tommyvyo_ joined | 12:51 |
| → ToBeFree joined | 12:51 |
| → d0k joined | 12:51 |
| → jaseemabid joined | 12:52 |
| → kanzie joined | 12:53 |
|
kanzie
| how can I export all commit messages into a change log? | 12:54 |
|
jast
| redirect output of git log or something | 12:54 |
|
| it has many options to control the format of the output, notably --pretty=... | 12:54 |
| → madsy joined | 12:54 |
|
FauxFaux
| !lg !lol | 12:54 |
|
gitinfo
| git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" | 12:54 |
|
| git config --global alias.lol "log --oneline --graph --decorate" | 12:54 |
| ← anatolyspektor left | 12:54 |
|
_ikke_
| FauxFaux: That's probably not what kanzie wants | 12:55 |
| ← fsvend left | 12:55 |
|
jast
| graphs aren't that useful for changelogs, now are they :) | 12:55 |
|
FauxFaux
| I'd rather have a graph than a linear changelog. :) | 12:55 |
|
_ikke_
| lol | 12:55 |
| ← JeremyWei left | 12:55 |
|
kanzie
| yeah, I kind of need one liners | 12:55 |
|
jaseemabid
| Can I check for whitespace errors in an existing commit? I applied a patch with some w/s issues. Now I want to fix it up | 12:55 |
| ← juvenal left | 12:55 |
|
cmn
| kanzie: check out shortlog | 12:56 |
|
BinGOs
| https://metacpan.org/source/BINGOS/CPANPLUS-YACSmoke-0.82/tools/git-log.pl | 12:56 |
| → keller joined | 12:56 |
| → ij joined | 12:56 |
|
jast
| --pretty=oneline | 12:56 |
| → glennpratt joined | 12:56 |
| ← dr_diamond left | 12:56 |
|
jaseemabid
| jast git log --oneline | 12:56 |
| → juanfer joined | 12:57 |
|
ij
| When I cherry-pick, the picked commit in dest branch is a different, new one. How do I make them the same one later? Merging later just makes two commits appear in the source branch. | 12:59 |
|
cmn
| that's what a cherry-pick is | 12:59 |
|
ij
| So you mean I can't union them later as one commit? | 13:00 |
| → hellopat joined | 13:00 |
| ← hellopat left | 13:00 |
|
cmn
| no, because cherry-pick necessarily creates a new commit | 13:00 |
| → oriba joined | 13:00 |
| → cesc joined | 13:00 |
|
ij
| Hmm, okay. | 13:00 |
|
cmn
| if you want the same commits, you mere | 13:00 |
|
| merge | 13:00 |
| → hellopat joined | 13:01 |
| → lnostdal_ joined | 13:01 |
| ← harshpb left | 13:02 |
| ← cilly left | 13:02 |
| ← rvsjoen left | 13:03 |
| → rvsjoen joined | 13:03 |
| ← afuentes left | 13:03 |
| ← Targen left | 13:03 |
| → plastics joined | 13:03 |
| ← jhardinee left | 13:04 |
| → bitkiller joined | 13:04 |
| ← lnostdal__ left | 13:05 |
| → maleknet joined | 13:06 |
| → kerrick joined | 13:07 |
| → macabre joined | 13:08 |
| → TeckniX joined | 13:08 |
| ← eurek left | 13:09 |
| → ipalaus joined | 13:10 |
| → Jon30 joined | 13:11 |
| ← d3vic3 left | 13:11 |
| ← enmand left | 13:11 |
| → d3vic3 joined | 13:12 |
| ← fsvend_ left | 13:13 |
| ← dhruvasagar left | 13:13 |
| → enmand joined | 13:13 |
| ← maleknet left | 13:14 |
| → dhruvasagar joined | 13:14 |
| → quazimodo joined | 13:15 |
| ← kermit left | 13:15 |
| → AaronMT joined | 13:15 |
| ← AaronMT left | 13:15 |
| → phantomtiger joined | 13:15 |
| → AaronMT joined | 13:16 |
| ← AaronMT left | 13:16 |
| → kermit joined | 13:16 |
| ← PRETTY_FUNCTION left | 13:17 |
| → AaronMT joined | 13:17 |
| ← AaronMT left | 13:17 |
| → AaronMT joined | 13:17 |
| ← iori left | 13:18 |
| → iori joined | 13:18 |
| → ziro` joined | 13:18 |
| ← iori left | 13:18 |
|
ziro`
| is there something like $Format:%d$ which will only give me tags, not branch refs etc ? | 13:19 |
| → iori joined | 13:19 |
| ← cooloney left | 13:19 |
|
cmn
| for what command? what kind of syntax is that? | 13:19 |
| → eurek joined | 13:19 |
| → nisseni joined | 13:19 |
| ← palm_vue left | 13:20 |
| ← Lgb left | 13:20 |
|
ziro`
| that's a substitution string for archive, but git log --format="%d" | 13:20 |
| → rgsteele joined | 13:20 |
| → palm_vue joined | 13:21 |
| → Lgb joined | 13:21 |
|
kerrick
| Git GUI is missing the right-side panes (the diff and the commit/push controls). I can't figure out how to restore them. This is on OS X, if it matters. | 13:22 |
| → ph^ joined | 13:22 |
| ← iori left | 13:22 |
| ← ij left | 13:22 |
|
selckin
| tried deleting the config file? | 13:23 |
| ← d3vic3 left | 13:23 |
| ← Torsten85 left | 13:24 |
| → aruiz joined | 13:24 |
| ← toothr left | 13:27 |
| ← intransit left | 13:28 |
| ← nisseni left | 13:28 |
| → dv310p3r joined | 13:28 |
| ← durre left | 13:28 |
| → intransit joined | 13:28 |
| ← MiJyn left | 13:29 |
| → benjo2 joined | 13:30 |
| → d3vic3 joined | 13:30 |
| → MiJyn joined | 13:30 |
| → toothr joined | 13:30 |
| ← aristidesfl left | 13:31 |
| ← p3rror left | 13:32 |
| ← aruiz left | 13:32 |
| → abledea_ joined | 13:33 |
| ← abledea_ left | 13:33 |
| → loin joined | 13:34 |
| → puneet joined | 13:34 |
|
loin
| can i have the files changed in lists only display the file names | 13:34 |
|
| and not the full abstract path | 13:34 |
| ← OOPMan left | 13:35 |
| ← puneetgoyal left | 13:35 |
| ← ehsan left | 13:37 |
| → dcarper joined | 13:37 |
| → jn_ joined | 13:38 |
| ← yongleflibbit left | 13:39 |
| → Torsten85 joined | 13:39 |
| → tudorstudio joined | 13:39 |
|
selckin
| there is --short, else you'l have to use --porcelain and script it | 13:40 |
| → Syzygy_ joined | 13:40 |
| ← jackh left | 13:40 |
| → jackh joined | 13:41 |
| ← flyz left | 13:41 |
| ← dhruvasagar left | 13:42 |
| → milky joined | 13:42 |
| → bartek_ joined | 13:43 |
| ← tubbo left | 13:43 |
| ← ThomasLocke left | 13:43 |
| → neurodrone joined | 13:44 |
| → ehsan joined | 13:45 |
|
jaseemabid
| Patch application failed. error: patch failed: <file>:1 . Is there anyway I can somehow apply the patch. Its a bit big change to apply manually | 13:45 |
| → aruiz joined | 13:45 |
|
jaseemabid
| And what does that <file>:1 indicate ? | 13:45 |
| ← raatiniemi left | 13:47 |
| → ManDay joined | 13:47 |
|
ManDay
| How can I force overwrite the remote after I did a git commit --amend AFTER I pushed before? | 13:47 |
| ← cagedwisdom left | 13:47 |
| ← plastics left | 13:47 |
|
canton7
| ManDay, !rewriting_public_history | 13:48 |
|
gitinfo
| ManDay: Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 13:48 |
| → v0n joined | 13:48 |
|
cbreak-work
| jaseemabid: what does git have to do with patches? | 13:48 |
|
loin
| selckin, --short doesn't work, i get usage 'myworkingdirectory' [{blame|browser|citool}] | 13:48 |
|
cbreak-work
| ManDay: force push... | 13:48 |
|
jaseemabid
| cbreak-work, git am | 13:48 |
| ← linduxed left | 13:49 |
|
cbreak-work
| note that this won't kill remote history that was already fetched to somewhere else | 13:49 |
|
ManDay
| cbreak-work: thanks, --force worked | 13:49 |
|
| canton7: yes, I know, it's bad practice | 13:49 |
| → converge joined | 13:49 |
|
ManDay
| it's my tiny personal repo | 13:49 |
| ← Sebo left | 13:49 |
|
canton7
| ManDay, the trigger also tells you how to force-push ') | 13:49 |
|
cbreak-work
| jaseemabid: so, and are you on the commit that the patch was formated to? | 13:49 |
| → pandeiro joined | 13:49 |
|
cbreak-work
| jaseemabid: and was the patch made with format-patch? | 13:49 |
| → mklappstuhl joined | 13:49 |
|
converge
| someone knows a free private git repository ? | 13:50 |
| ← loin left | 13:50 |
|
canton7
| converge, bitbucket | 13:50 |
|
jaseemabid
| cbreak-work, It was a patch generated long time back. Its an important change and stayed as a txt file there. Was trying to apply it. But the problem is that the repo changed a *bit* | 13:50 |
| → leeight_ joined | 13:50 |
|
converge
| canton7: thanks | 13:50 |
| → cilly joined | 13:50 |
| → linduxed joined | 13:51 |
|
jaseemabid
| cbreak-work, Yes, made with fomat-patch, It was supposed to be applied on <commit:XXX> but there is no XXX anymore. I have a *very similar* YYY. I was trying to apply it ignoring the minor diff b/w XXX and YYY | 13:51 |
| ← jaseemabid left | 13:52 |
| → jaseemabid joined | 13:52 |
|
cbreak-work
| jaseemabid: then make a branch from the point when the patch was made on | 13:52 |
| ← und3f left | 13:52 |
| ← yizumi_ left | 13:52 |
|
cmn
| jaseemabid: have you tried telling it to ignore whitespace and/or to use the three-way merge? | 13:52 |
|
cbreak-work
| commits in git don't vanish. | 13:52 |
|
| just git checkout -b parentofyourpatchcommit | 13:52 |
|
| then apply it there | 13:52 |
|
jaseemabid
| cmn, I tried both. Not working. I am applying it manually after playing with it for a while. | 13:53 |
|
| cbreak-work, History rewrite, BIG TIME | 13:53 |
|
cmn
| is the patch really in mbox format? | 13:53 |
|
| it was complaining about the first line, wasn't it? | 13:53 |
|
jaseemabid
| cmn, Yes. Any other kickass patching tools? | 13:53 |
| → bgerber joined | 13:54 |
|
cbreak-work
| jaseemabid: ... | 13:54 |
| → harshpb joined | 13:54 |
|
cmn
| for mbox, that's am; for normal patches, apply | 13:54 |
|
jaseemabid
| What i am really looking for is something like meld. I use it for merge conflict fixing. I need an interactive patcher | 13:54 |
|
cbreak-work
| why didn't you commit it if it was so important? | 13:54 |
|
| that'd make everything easier | 13:54 |
|
| maybe you can find the pre-rewrite history in the reflog | 13:54 |
| ← ManDay left | 13:55 |
|
jaseemabid
| cbreak-work, ... means hopeless? lol. This is a patch i *can* manually apply. Not that big. I was trying to learn it this time. | 13:55 |
|
| Though, manually applying a patch it a pita | 13:55 |
|
cbreak-work
| not really hopeless | 13:55 |
|
| but not a git job | 13:55 |
| → revagomes joined | 13:55 |
|
cbreak-work
| you'll probably have to resort to external tools like text editors | 13:56 |
|
jaseemabid
| cbreak-work, Know any good patch tools then? | 13:56 |
|
cbreak-work
| I don't use patches. | 13:56 |
| ← philips left | 13:57 |
|
jaseemabid
| cbreak-work, This is just another ugly instance. Nevermind | 13:57 |
| ← amitprakash left | 13:58 |
|
_ikke_
| jaseemabid: Doesn't get apply work for applying patches? | 13:58 |
| → davidjdagino joined | 13:58 |
| → yangchang joined | 13:59 |
|
_ikke_
| git* | 13:59 |
| ← DofLeFou left | 13:59 |
| ← yangchang left | 13:59 |
|
jaseemabid
| _ikke_, Conflicts conflicts | 13:59 |
| ← soee left | 13:59 |
| → ij joined | 13:59 |
|
_ikke_
| Well, doesn't any patch tool have conflicts? | 13:59 |
| ← BarryCrayon left | 13:59 |
|
ij
| Why's git stash list -p showing different results? Because I've added code since I've saved them? | 14:00 |
| → yangchang joined | 14:00 |
|
_ikke_
| ij: different from what? | 14:00 |
| → philips joined | 14:00 |
|
ij
| Different from what git show stash shows for each stash commit. | 14:00 |
| ← cakehero left | 14:00 |
| → _md joined | 14:00 |
|
jaseemabid
| _ikke_, error: patch failed: <file>:1 is all I know. Its more a patch bug than a git issue. | 14:01 |
| ← oo_miguel left | 14:01 |
| → oo_miguel joined | 14:01 |
| ← puneet left | 14:01 |
|
ziro`
| if a git pull results in conflict, does it return an error code? | 14:02 |
|
| error status | 14:02 |
| → booginga joined | 14:02 |
|
bremner
| yes. But you probably don't want to script pull. At least fetch and merge seperately. | 14:03 |
| ← gour left | 14:03 |
| ← babilen left | 14:03 |
| → Zenmaker_ joined | 14:04 |
|
gdoteof
| I made two commits into master that should have been on a new branch | 14:05 |
|
_ikke_
| gdoteof: !fixup | 14:06 |
|
gitinfo
| gdoteof: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 14:06 |
|
gdoteof
| i created a new branch where it "should" have been, but i am not sure how to move the commits there | 14:06 |
|
| !fixup_hints | 14:06 |
|
gitinfo
| Hints for fixing commits are: (1) NOT PUSHED/PUBLISHED: `git rebase -i $COMMIT^` or perhaps `git commit --amend` (or `git reset HEAD^`). (2) OTHERWISE, `git revert $COMMIT` to make a reverse commit. (3) If you have pushed and MUST remove it, use rebase or filter-branch and type !rewriting_public_history in IRC. | 14:06 |
|
_ikke_
| gdoteof: How did you create that branch? | 14:06 |
|
cbreak-work
| you can't move commits. | 14:06 |
|
| best you can do is cherry-pick or merge them | 14:06 |
|
_ikke_
| or rebase them | 14:06 |
|
gdoteof
| _ikke_: git branch my_branch 18734cc | 14:06 |
|
| where 18734cc is the first commit that should have been on the new branch | 14:07 |
|
_ikke_
| combination of cherry-pick and git reset | 14:07 |
| ← marthinal left | 14:07 |
| ← benjo2 left | 14:07 |
| ← kkszysiu_work left | 14:07 |
| → Sebo joined | 14:08 |
| ← Zenmaker__ left | 14:08 |
|
_ikke_
| Something like git checkout my_branch; git cherry-pick master..master~2; git checkout master; git reset --keep HEAD~2; | 14:08 |
| → Destos joined | 14:08 |
| ← pandeiro left | 14:09 |
| ← oriba left | 14:09 |
| → plastics joined | 14:09 |
| ← ill1cit left | 14:10 |
| ← harshpb left | 14:10 |
| → ill1cit joined | 14:11 |
|
ziro`
| bremner: I'm trying to put together a command to update my local master, update the changelog, commit, tag then package for release | 14:11 |
| → harshpb joined | 14:11 |
| → cakehero joined | 14:11 |
| ← Sebo left | 14:12 |
| → beatak joined | 14:12 |
| → Sebo joined | 14:12 |
| → chrisgeorge joined | 14:13 |
| ← jettero left | 14:14 |
| ← mntzn left | 14:15 |
| ← kcj left | 14:15 |
| → randomubuntuguy joined | 14:16 |
|
Olipro
| does a "git svn rebase" get performed against the currently checked out git branch or just against master | 14:16 |
|
gdoteof
| _ikke_: thanks a lot that was almost it exactly | 14:16 |
| ← lnostdal_ left | 14:16 |
|
_ikke_
| gdoteof: What did you do different? | 14:17 |
| ← ehsan left | 14:17 |
|
blameless
| how can I see which is the most recently created of 2 particlar branches | 14:18 |
| → ferdna joined | 14:18 |
|
jast
| Olipro: against the first SVN branch found in a 'git-svn-id' line in commits of the currently checked out git branch | 14:18 |
|
| (don't ask!) | 14:19 |
| → jjbohn joined | 14:19 |
|
Olipro
| so basically, if I check out an SVN repo and that branch is master | 14:19 |
|
| if I then create branch "mybranch" and make a few commits | 14:20 |
| → Davey joined | 14:20 |
|
Olipro
| doing a "git svn rebase" will presumably rebase against the creation point of my branch | 14:20 |
| → rurufufuss joined | 14:20 |
| → pandeiro joined | 14:21 |
| ← leilaM left | 14:21 |
|
jast
| yes | 14:22 |
| ← RaceCondition left | 14:22 |
| → fly9 joined | 14:22 |
|
jast
| you should base your new branch on the SVN branch of your choice | 14:22 |
|
| and you can use 'git svn branch' to create a new one (iirc) | 14:22 |
| ← jatt left | 14:23 |
| ← gavin_huang left | 14:23 |
| ← tasslehoff left | 14:23 |
| ← axt_work_ left | 14:24 |
| → gavin_huang joined | 14:24 |
| → hwrd|work joined | 14:25 |
| → codeM0nK3Y joined | 14:25 |
| → Thanatermesis joined | 14:26 |
| ← yangchang left | 14:27 |
| → bilel joined | 14:27 |
|
converge
| I had add a wrong file to the repository, is there some way to delete it to never be listed in the history ? | 14:27 |
| ← _br_ left | 14:27 |
|
converge
| *there is a password in the file | 14:27 |
| gitinfo set mode: +v | 14:27 |
|
converge
| already added it to gitignore | 14:28 |
|
RandalSchwartz
| converge, !fixup | 14:28 |
|
gitinfo
| converge: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 14:28 |
|
RandalSchwartz
| and !rewrite | 14:28 |
|
gitinfo
| [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 14:28 |
|
RandalSchwartz
| so hopefully, you haven't pushed it anywhere, right? | 14:28 |
|
Thanatermesis
| im going to buy a wordpress plugin so i would like to made changes on it under git, one branch for the original code and another for the modifications (so that i can switch to the original sources to import updates from the original sources), from there is not a problem so i have already do that, but my question is that i want to have this as a part of an already-existing git repository (with other plugins), how i can should do that ? | 14:28 |
|
FauxFaux
| converge: 1) Change the password. 2) Get on with your life. | 14:28 |
|
| RandalSchwartz waits for converge | 14:29 |
| ← kenperkins left | 14:29 |
| → ManDay joined | 14:29 |
|
ManDay
| How can I undo the lats commit I already pushed to remote? | 14:29 |
| ← harshpb left | 14:30 |
|
converge
| FauxFaux, RandalSchwartz, thanks | 14:30 |
|
RandalSchwartz
| ManDay, !fixup and !rewrite | 14:30 |
|
gitinfo
| ManDay: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 14:30 |
|
| ManDay: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 14:30 |
| ← randomubuntuguy left | 14:30 |
|
RandalSchwartz
| I should just have that on a key. :) | 14:30 |
|
bilel
| hi, I made some test changes on my project, it's like a sandbox, so I've put them in a stash, currently it's stashed, but in the meanwhile I've made a lot of changes (new untracked files and changes), not staged for a commit, I don't want to commit this changes yet, but I'd like to go to my sandbox stash, witouth mixing this changes to the changes of the sandbox stash. how should I do? thx | 14:30 |
|
RandalSchwartz
| bilel - you must be a guy. afraid of comitting | 14:31 |
| → harshpb joined | 14:31 |
|
RandalSchwartz
| I make throw-away commits all the time | 14:31 |
|
| easy to undo later | 14:31 |
|
| git commit -a -m 'WIP' and go somewhere else | 14:31 |
|
ManDay
| thanks RandalSchwartz | 14:31 |
|
RandalSchwartz
| just. don't. push. them. :) | 14:31 |
|
ManDay
| Not an issue here | 14:32 |
|
| I don't have a big audience | 14:32 |
|
| I rather prefer a clean (false ;)) history | 14:32 |
|
RandalSchwartz
| that's for bilel | 14:32 |
|
ManDay
| come again | 14:32 |
|
RandalSchwartz
| I was talking to him not you | 14:32 |
| → opdynamiks joined | 14:32 |
| → ipoval joined | 14:32 |
|
bilel
| RandalSchwartz: yes because usually I commit only when the feature is ready, but you're right I could do some wip commits and undo, thx ;) | 14:32 |
|
RandalSchwartz
| I make commits whenever I've made forward progress | 14:33 |
|
| "feature ready" is usually about 18 steps away :) | 14:33 |
|
| if I need to squash those before push, easy enough | 14:33 |
|
_ikke_
| bilel: git stash has a branch command, in order to create a branch for the stash, based on the commit where the stash was made on | 14:34 |
| ← Lord_DeathMatch left | 14:34 |
| → guampa joined | 14:36 |
| → mikepack joined | 14:37 |
| → randomubuntuguy joined | 14:37 |
| ← mocramis left | 14:37 |
| → kkiero joined | 14:38 |
| ← ManDay left | 14:38 |
| → airborn joined | 14:39 |
| ← harshpb left | 14:40 |
| ← tqmz left | 14:40 |
|
RandalSchwartz
| I was playing with git long before git-stash was added | 14:40 |
|
| so I still think in terms of WIP commits for temp parking places. | 14:40 |
| → harshpb joined | 14:41 |
| ← ISF left | 14:41 |
|
| FauxFaux doesn't really like the stash workflow, either, if the data has to exist for more than a few minutes. | 14:41 |
|
jast
| same here | 14:42 |
| → raatiniemi joined | 14:42 |
| → ottoshmidt joined | 14:42 |
| ← naught101 left | 14:42 |
|
ij
| What's the stash workflow? | 14:42 |
|
| What do you mean by that? | 14:43 |
|
bilel
| When I do git stash list, I can see my stash, it's written : "stash@{0}: On master: form form sandbox" , when I created it, the name was "form" and the comment "form sandbox", it looks ok, but when I do git stash pop form it says the argument is ambigous, do you know why? | 14:43 |
|
ij
| Are there any more stashes? | 14:43 |
| ← Axsuul left | 14:43 |
|
bilel
| no | 14:43 |
| → hoschi joined | 14:44 |
| ← simesy left | 14:45 |
|
_ikke_
| bilel: " When no <stash> is given, stash@{0} is assumed, otherwise <stash> must be a reference of the form stash@{<revision>}" | 14:45 |
|
| bilel: You can't reference a stash by it's name | 14:45 |
| → sdeboey joined | 14:45 |
| → lotus joined | 14:46 |
| → duckxx joined | 14:47 |
| → ehsan joined | 14:47 |
| ← bgerber left | 14:47 |
| ← tvw left | 14:48 |
| → tvw joined | 14:49 |
|
lotus
| hey, I have an interesting situation. I have a remove devsite and a local devsite. I have a "master" and a "dev" branch. My dev branch is for my local devsite and has a .htaccess RedirectBase of /local/path and a database.php file of user='localDbUser' and pass='localDbPass'. My master branch has a .htaccess file with RedirectBase /remote/path and a database.php with user='remoteDbUser' and pass='remoteDbPass'. What I need is to be able to merge the dev bran | 14:49 |
| ← ipoval left | 14:49 |
|
Thanatermesis
| im going to buy a wordpress plugin so i would like to made changes on it under git, one branch for the original code and another for the modifications (so that i can switch to the original sources to import updates from the original sources), from there is not a problem so i have already do that, but my question is that i want to have this as a part of an already-existing git repository (with other plugins), how i can should do that ? | 14:49 |
| ← randomubuntuguy left | 14:49 |
| → ThomasLocke joined | 14:50 |
| → randomubuntuguy joined | 14:50 |
| → TheJH joined | 14:50 |
|
bilel
| _ikke_ : ok so I should reference it by stash@{form}, it doesn't work too, but I've made git stash pop and it worked, it looks like when I save the stash I can't give it a name, that was the issue, I had done git stash save form "form sandbox", it is wrong? | 14:51 |
|
lotus
| Thanatermesis: I'm thinking you should pull your two branches into your existing repository perhaps | 14:51 |
|
milki
| Thanatermesis: its common to use !sub | 14:51 |
|
gitinfo
| Thanatermesis: [!subtree] The git subtree merge method is ideal to incorporate a subsidiary git repositories directly in to single git repository with "unified" git history, where you only need to pull changes in from external sources not contribute your own changes back (which if technically possible is at least difficult). See http://progit.org/book/ch6-7.html Type "!subtree_alt" for more options | 14:51 |
|
jast
| that's not a name for the stash, it's more of a description | 14:51 |
| ← eurek left | 14:52 |
| ← beautifulmind left | 14:52 |
| → banghouse2 joined | 14:52 |
|
jast
| there is no 'name' argument for 'git stash save' | 14:52 |
| → Talisman joined | 14:53 |
|
_ikke_
| bilel: revision is a number | 14:53 |
| ← Talisman left | 14:54 |
|
bilel
| jast: oh yes you're right, thanks | 14:54 |
| ← mklappstuhl left | 14:54 |
|
bilel
| so we only identify stashes by descriptions, then we have to check the number doing git stash list | 14:54 |
|
jast
| yeah... you really don't want to have a ton of stashes. it gets chaotic. | 14:55 |
| ← lotus left | 14:55 |
| → lotus_ joined | 14:55 |
| → brentdanley joined | 14:55 |
| ← lotus_ left | 14:55 |
| infogulch|afk → infogulch | 14:55 |
| ← pandeiro left | 14:56 |
| → lotus joined | 14:56 |
| ← glennpratt left | 14:56 |
| → glennpratt joined | 14:56 |
|
bilel
| yes indeed, I'll only have one, to put all the dirty tests and play with the project, don't see other case :) | 14:56 |
| ← harshpb left | 14:57 |
| → harshpb joined | 14:57 |
| ← Cam left | 14:57 |
| ← lotus left | 14:57 |
| → lotus joined | 14:58 |
| → yacc joined | 14:58 |
| → Talisman joined | 14:58 |
| → xckpd7 joined | 14:58 |
| → giallu_ joined | 14:58 |
| → raek joined | 14:59 |
|
xckpd7
| question.... let's say I have a master branch... I introduce massive changes... let's say that pretty much any branch I would work on afterwards would conflict with. Let's say I would tell someone to merge the major changes first before anything else | 14:59 |
|
| what would be the correct way to circumvent that? | 14:59 |
|
| have all the subsequent branches (before that branch is merged into master) be rebased (or merged in) with the risky branch? | 15:00 |
| → leilaM joined | 15:01 |
|
milki
| i dont understand the last hypothetical statement with merging the major changes first | 15:01 |
|
| o.O | 15:01 |
| ← maloik left | 15:02 |
|
milki
| are you trying to circumvent the conflicts? | 15:02 |
| variable → Guest8000 | 15:02 |
| → mocramis joined | 15:02 |
| ← constant left | 15:02 |
| → constant joined | 15:02 |
| constant → trout | 15:02 |
|
milki
| even if you rebase, you will still have the conflicts | 15:02 |
| ← harshpb left | 15:02 |
|
milki
| you should be rebasining before merging anyways | 15:03 |
| → harshpb joined | 15:03 |
| ← Sebo left | 15:04 |
| ← jonnu left | 15:04 |
|
xckpd7
| milki: yes but put it like this... you have a branch with 1000 lines of pretty drastic code based off of master... and then you have like 2 lines of code based off of master... I want the branch with the 1000 lines merged first, because even if I have conflicts, I want the branches with the least changes to conflict | 15:04 |
| ← Talisman left | 15:04 |
| → Milossh joined | 15:04 |
|
xckpd7
| I don't really have the ability to give an order to the person that I give pull requests to | 15:05 |
| ← harshpb left | 15:06 |
|
xckpd7
| I figure for all the small commits (I don't know git as well as you guys so bear with me), I want to operate as if that one 1000 line commit was already merged in with them, except again I don't want to have to manage the conflict of 1000 lines so I want the bigger thing to appear earlier in history | 15:06 |
| ← bilel left | 15:06 |
|
xckpd7
| as if I created that small branch directly off of the 1000 line branch | 15:06 |
| → harshpb joined | 15:06 |
| ← fatpowder left | 15:07 |
|
xckpd7
| so no matter what order the guy pulls the branches in, it will merge cleanly. that's my goal | 15:07 |
| → YesJustWolf joined | 15:07 |
| → mklappstuhl joined | 15:08 |
|
selckin
| doesn't mather | 15:08 |
|
| you'll get same amount of conflicts no mather the order | 15:08 |
|
xckpd7
| selckin: but there is no way for me to manage the conflicts by just merging in the 'problem' branch into the smaller commits? | 15:09 |
| → surendra joined | 15:09 |
| ← harshpb left | 15:09 |
| ← cbreak-work left | 15:09 |
| → harshpb joined | 15:10 |
|
selckin
| maybe i don't understand what you're describing, but you can rebase all the other branches on top of that one instead of master sure | 15:10 |
|
milki
| you will always get the conflicts where there are conflicts | 15:11 |
|
| you can change your branch tips to those with least conflicts if you want | 15:11 |
|
| then it will be easier to merge | 15:11 |
| → bloony- joined | 15:11 |
|
xckpd7
| milki: ? | 15:11 |
|
milki
| but then you will eventually need to rebase the commits that will conflict | 15:11 |
| ← ben_alman left | 15:12 |
|
xckpd7
| selckin: ok so for all the smaller branches, just rebase off the problematic branch (which sorta merges) and I should be good | 15:12 |
|
milki
| if you can identify the commits that wont result in conflicts, reorder those commits so they are on a single branch and rebase that branch | 15:12 |
|
| basically, move the troublesome commits to a later point so you merge them last | 15:13 |
| ← pyhead left | 15:13 |
| ← bloony- left | 15:13 |
| → andrewhl joined | 15:13 |
| → bloony- joined | 15:13 |
| ← john_anderson left | 15:14 |
| ← harshpb left | 15:14 |
|
xckpd7
| milki: the troublesome commits are in that one branch basically. by rebasing, am I not doing what you just described? Thanks for the help by the way | 15:14 |
| gitinfo set mode: +v | 15:14 |
| gitinfo set mode: +v | 15:14 |
| → harshpb joined | 15:14 |
| → sebrock joined | 15:14 |
| → john_anderson joined | 15:14 |
| ← john_anderson left | 15:15 |
|
surendra
| hi, i have a branch called release and I want my master branch to complete sync to it and undo any extra commits in master branch. how do i do that? | 15:15 |
| ← duckxx left | 15:15 |
| → heptadecagram joined | 15:16 |
|
milki
| if you rebase all your branches on that single branch, you are effectively dealing with the conflicts now instead of later | 15:16 |
| ← psoo left | 15:16 |
|
xckpd7
| milki: yes thanks | 15:16 |
|
milki
| surendra: you could do a branch --force | 15:16 |
| → branduren joined | 15:17 |
| ← plastics left | 15:17 |
| ← MiJyn left | 15:17 |
| → MiJyn joined | 15:17 |
| ← shreya left | 15:17 |
|
Thanatermesis
| so correct me if im wrong with that: with subtree-merging im able to "git pull" and automatically update the sources from the extra sources into my actual git, right ? then if i push this complete-git it includes the subtree so that others can get it too ? | 15:18 |
|
RandalSchwartz
| you might want to look at git-subtree for that | 15:18 |
| → ben_alman joined | 15:18 |
|
RandalSchwartz
| we're using that here in production (nearly) | 15:18 |
| ← v0n left | 15:19 |
|
Thanatermesis
| RandalSchwartz, this ? http://git-scm.com/book/en/Git-Tools-Subtree-Merging | 15:19 |
| → puneetgoyal joined | 15:19 |
| ← hwrd|work left | 15:20 |
|
RandalSchwartz
| no | 15:20 |
|
| git-subtree - it's in contrib | 15:20 |
|
| possibly in mainstream soon | 15:20 |
| → duckxx joined | 15:20 |
|
RandalSchwartz
| git-subtree is what subprojects should have been. :) | 15:21 |
| ← giallu_ left | 15:21 |
| ← flijten left | 15:22 |
| → AeroNotix joined | 15:22 |
| ← maletor left | 15:23 |
| Mkaysi_ → Mkaysi | 15:23 |
| ← kidsalsa1 left | 15:24 |
| → kenperkins joined | 15:25 |
|
Thanatermesis
| now im more confused :/ | 15:25 |
|
| because i dont know what to do lol | 15:25 |
| ← n123 left | 15:25 |
| ← banghouse2 left | 15:26 |
| → marthinal joined | 15:26 |
| ← raatiniemi left | 15:27 |
|
surendra
| milki: thanks | 15:28 |
| ← surendra left | 15:28 |
| → erichynds joined | 15:28 |
| ← zackiv31 left | 15:28 |
| → juvenal joined | 15:28 |
|
milki
| np | 15:28 |
| → kpl joined | 15:31 |
| ← rtuin left | 15:31 |
| ← converge left | 15:31 |
| ← mikepack left | 15:32 |
| ← lamont left | 15:34 |
| ← neurodrone left | 15:34 |
| → lamont joined | 15:35 |
| → hwrd|work joined | 15:35 |
| ← txdv left | 15:36 |
| → txdv joined | 15:36 |
|
thorbjornDX
| how do subtrees differ from submodules? | 15:37 |
| → bubbles10101 joined | 15:37 |
| ← harshpb left | 15:37 |
| → psoo joined | 15:38 |
| → harshpb joined | 15:38 |
|
jast
| !submod | 15:38 |
|
gitinfo
| [!submodule] git-submodule is ideal to add subsidiary git repositories to a git superproject when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes upstream. See http://book.git-scm.com/5_submodules.html | 15:38 |
| → phishy joined | 15:38 |
|
jast
| !subtree | 15:38 |
|
gitinfo
| The git subtree merge method is ideal to incorporate a subsidiary git repositories directly in to single git repository with "unified" git history, where you only need to pull changes in from external sources not contribute your own changes back (which if technically possible is at least difficult). See http://progit.org/book/ch6-7.html Type "!subtree_alt" for more options | 15:38 |
| ← phishy left | 15:38 |
| → notmypudding joined | 15:39 |
| → brentratliff joined | 15:39 |
| ← matt_taws left | 15:39 |
| → matt_taws joined | 15:40 |
|
thorbjornDX
| jast: thanks. So do I have full checkout/branch control over a subtree? (and will it all show up in the superproject's history?) | 15:40 |
| ← adityamenon left | 15:41 |
|
jast
| well. with subtree, you basically merge updates from the upstream/original subproject into your main branch. | 15:41 |
| → thearthur joined | 15:41 |
|
thorbjornDX
| and the subtree will exist as it's own directory? | 15:42 |
|
jast
| so the history will be preserved, but it's basically fused together with your main project's history (i.e. you can't stay in master and switch the subtree to an different branch) | 15:42 |
|
| that's the idea, yeah | 15:42 |
|
thorbjornDX
| jast: Okay, so the files are more closely tied w/ my actual repository (superproject) | 15:42 |
|
jast
| yeah | 15:42 |
| ← dwmw2_gone left | 15:42 |
| → mdhopkins joined | 15:42 |
|
thorbjornDX
| jast: what about pushing changes back to the subtree's host? (is that a no-no?) | 15:43 |
|
jast
| you'd have to do that separately, i.e. in a separate clone of the original subproject repository | 15:43 |
|
thorbjornDX
| jast: okay, good to know | 15:43 |
|
jast
| there's one other approach to subprojects you might be interested in: !gitslave | 15:43 |
|
gitinfo
| gitslave (http://gitslave.sf.net) is useful to add subsidiary git repositories to a git superproject when you control and develop on the subprojects at more or less the same time as the superproject, and furthermore when you typically want to tag, branch, push, pull, etc. all repositories at the same time. | 15:43 |
| ← d3vic3 left | 15:43 |
| → kevwil joined | 15:44 |
| → mikepack joined | 15:44 |
| → d3vic3 joined | 15:46 |
| → dwmw2_gone joined | 15:46 |
| → edude03 joined | 15:46 |
| ← barmaglot left | 15:47 |
| → kukks joined | 15:47 |
| ← kukks left | 15:47 |
| → kukks joined | 15:47 |
| → n123 joined | 15:47 |
| ← arvind_khadri left | 15:48 |
| ← kerrick left | 15:49 |
| ← posciak left | 15:49 |
| ← psoo left | 15:49 |
| → avpx joined | 15:49 |
| ← cakehero left | 15:49 |
| ← senny left | 15:49 |
| ← sonig left | 15:50 |
| → kerrick joined | 15:50 |
| ← dwmw2_gone left | 15:50 |
| → xtagon joined | 15:51 |
| → mostafaxx joined | 15:51 |
| → Goplat joined | 15:51 |
| → markgifford joined | 15:53 |
| ← jackh left | 15:53 |
| → cviebrock joined | 15:54 |
| → bgerber joined | 15:54 |
|
cviebrock
| any idea why "git push" would try to go to a remote I have set up, instead of my origin? | 15:55 |
| ← kerrick left | 15:55 |
|
canton7
| because the current branch has tracking info set up? | 15:55 |
|
selckin
| because the remote is the tracking branch | 15:55 |
|
avpx
| Ding ding ding ding! | 15:55 |
| → simesy joined | 15:55 |
|
cviebrock
| ok … not sure how that happened, but can i switch it back? (sorry … bit of a git noob) | 15:56 |
| ← tatsuya_o left | 15:56 |
|
canton7
| git branch -vv to see what tracking is set up | 15:57 |
|
| push -u and branch --set-upstream to change it | 15:57 |
|
| s/and/or | 15:57 |
|
cviebrock
| branch -vv gives: * master 34f839f [laravel/develop: ahead 4079] remove Fontdeck | 15:57 |
|
| laravel is a remote, obv. | 15:57 |
| ← bartek_ left | 15:58 |
| → Syzygy__ joined | 15:58 |
|
canton7
| which means that the local master is set up to track the remote branch laravel/develop | 15:58 |
| → bartek joined | 15:58 |
|
cviebrock
| ok … and it should be the local master tracks remote origin/master | 15:59 |
|
| so, git branch --set-upstream origin/master ? | 15:59 |
|
canton7
| git push -u origin master (if you want to push at the same time) | 15:59 |
| → fsvend joined | 15:59 |
|
canton7
| the branch --set-upstream syntax is more unintuitive, and I can never remember it (but it's not that) | 15:59 |
|
| 'git branch --set-upsteam origin/master master' maybe? might be the other way around | 16:00 |
|
cviebrock
| i should never be pushing to laravel/develop … only pulling and merging | 16:00 |
|
| lemme RTFM :) | 16:00 |
| ← simesy left | 16:00 |
|
canton7
| man git-branch | 16:00 |
|
gitinfo
| the git-branch manpage is available at http://git-scm.com/docs/git-branch.html | 16:00 |
| ← Syzygy_ left | 16:01 |
| → codewrangler joined | 16:01 |
|
avpx
| cviebrock: Not trying to be a PITA here, but you mean "fetching and merging." | 16:02 |
|
| cviebrock: "Pulling and merging" is redundant. | 16:02 |
| ← Per4u3e left | 16:02 |
|
cviebrock
| yes, of course … too quick typing :) | 16:02 |
|
canton7
| cviebrock, oops it's the other way around: git branch --set-upstream master origin/master | 16:02 |
| → neurodrone joined | 16:02 |
| ← robotmay left | 16:02 |
|
cviebrock
| before i do that … http://pastie.org/4155127 | 16:03 |
| → Targen joined | 16:03 |
|
cviebrock
| that seems correct already, no? | 16:03 |
|
canton7
| looks sensible | 16:04 |
| ← thiago left | 16:04 |
|
cviebrock
| i haven't set the upstream yet though | 16:04 |
|
| to me, it looks like it's already correct :/ | 16:04 |
|
canton7
| that pastie didn't show tracking info | 16:04 |
| → dwmw2_gone joined | 16:04 |
| → an0maly joined | 16:05 |
|
adhawkins
| cviebrock: git branch -vv will show which branches are tracking | 16:05 |
| ← whitman left | 16:05 |
| ← mostafaxx left | 16:05 |
| → _iron joined | 16:05 |
|
cviebrock
| just the first one | 16:05 |
| ← kanzie left | 16:06 |
|
canton7
| cviebrock, do you know what a) remote-tracking branches and b) trackinfo is/are ? | 16:06 |
|
cviebrock
| reload http://pastie.org/4155127 | 16:06 |
|
| well, kinda | 16:06 |
| ← bgerber left | 16:07 |
| ← stodan left | 16:07 |
|
cviebrock
| i had this working fine until yesterday. I have my repo, and I added laravel as a remote (its a MVC framework) and would occasionally merge in changes from it | 16:07 |
|
canton7
| remote-tracking branches (e.g. 'origin/master') are local records of the states of remote branches. tracking info is a bit of config which says what branch is merged in when you run 'git pull', which remote to push to, and some other stuff | 16:07 |
| ← rath left | 16:07 |
|
cviebrock
| but, by default, all my pushes and stuff would go to my repo (without me needing to specify "origin/master" or anything) | 16:07 |
|
canton7
| there's a bit of config in your .git/config which says that the local 'master' is tracking the remote branch 'laravel/develop' | 16:08 |
| → jhardinee joined | 16:08 |
|
avpx
| When it comes down to it, I prefer to get fetch, inspect the changes from origin, and then git merge origin/master when I'm ready | 16:08 |
|
canton7
| therefore, when you type 'git push' with the 'master' branch checked out, git tries to push to the remote 'laravel', because that's what the tracking info is telling it to do | 16:08 |
|
cviebrock
| [branch "master"] | 16:09 |
|
| remote = laravel | 16:09 |
|
| merge = refs/heads/develop | 16:09 |
|
canton7
| that's the bit | 16:09 |
|
cviebrock
| (sorry for the paste flood) | 16:09 |
|
avpx
| 3 lines is hardly flood :p | 16:09 |
|
cviebrock
| :) | 16:09 |
| ← jn_ left | 16:09 |
|
canton7
| now, you said you wanted your master branch to track origin/master, not laravel/develop | 16:09 |
|
| so either change that config manually, or use branch --set-upstream to do it for you | 16:09 |
|
cviebrock
| so … I guess i could either remove those 3 lines, or "change remote = origin" | 16:09 |
| → redii joined | 16:09 |
| → adityamenon joined | 16:10 |
| ← leilaM left | 16:10 |
|
avpx
| I'd recommend using the right tool for the job, in this case branch --set-upstream | 16:10 |
|
canton7
| you could remove those 3 lines. if you changed the remote, you'd also want to change the 'merge' line to 'refs/heads/master' | 16:10 |
|
| bear in mind that if you remove those 3 lines, a 'git pull' (without any other arguments) will fail, as git won't know what to merge in | 16:10 |
|
cviebrock
| got ti | 16:11 |
|
| it | 16:11 |
| → aantix joined | 16:11 |
|
cviebrock
| ok, so it now reads: [branch "master"] | 16:11 |
|
| remote = origin | 16:11 |
|
| merge = refs/heads/master | 16:12 |
|
canton7
| looks right | 16:12 |
| ← erichynds left | 16:12 |
|
cviebrock
| thank you! | 16:12 |
|
avpx
| cviebrock: Solid | 16:12 |
|
cviebrock
| not sure how that got swapped | 16:12 |
|
| i blame the GUI git tools :) | 16:12 |
| → alester joined | 16:12 |
|
avpx
| Bah! | 16:12 |
|
jast
| good heuristic | 16:12 |
|
canton7
| if you did something like 'git checkout -b master origin/develop', or something else which created a local branch from a remote one, tracking is normally set up automatically | 16:12 |
|
cviebrock
| … which i never use :) | 16:12 |
|
| anyway … thanks a lot everyone! | 16:13 |
|
avpx
| cviebrock: Enjoy | 16:14 |
|
| Stay safe out there, etc | 16:14 |
| ← d3vic3 left | 16:14 |
|
cviebrock
| hehe | 16:14 |
| ← cviebrock left | 16:14 |
| ← oo_miguel left | 16:15 |
| adhawkins → adhawkins-away | 16:15 |
| adhawkins-away → adhawkins | 16:15 |
| → d3vic3 joined | 16:15 |
| → imrobert joined | 16:16 |
| ← Vile left | 16:16 |
| ← mishok13 left | 16:16 |
| ← thearthur left | 16:17 |
| ← fsvend left | 16:18 |
| adhawkins → adhawkins-away | 16:18 |
| ← dwmw2_gone left | 16:18 |
| ← jargon- left | 16:18 |
| → Vile joined | 16:18 |
| ← LimeBlast left | 16:19 |
| adhawkins-away → adhawkins | 16:19 |
| → _huoxito joined | 16:19 |
| → AlbireoX`Laptop joined | 16:20 |
| ← PigeonFriend left | 16:20 |
| adhawkins → adhawkins-away | 16:20 |
| ← rtjure left | 16:20 |
| ← leeight_ left | 16:20 |
| ← harshpb left | 16:21 |
| ← rchavik left | 16:21 |
| → bgerber joined | 16:21 |
| ← ill1cit left | 16:21 |
| → ill1cit joined | 16:21 |
| → harshpb joined | 16:22 |
| → shreya joined | 16:22 |
| → dwmw2_gone joined | 16:22 |
| → john_anderson joined | 16:22 |
| ← totte left | 16:22 |
| → totte joined | 16:22 |
| ← totte left | 16:23 |
| ← eicto left | 16:23 |
| → totte joined | 16:23 |
| ← mabrand left | 16:24 |
| → the_cybersphinx joined | 16:25 |
| ← theCole left | 16:25 |
| ← jkremser left | 16:25 |
| → diegoviola joined | 16:27 |
| ← cybersphinx left | 16:27 |
| → Mowsh joined | 16:28 |
| → maletor joined | 16:29 |
| → etcetera joined | 16:30 |
| ← harshpb left | 16:30 |
| → theCole joined | 16:31 |
| ← HyperNerdV2 left | 16:31 |
| ← mklappstuhl left | 16:31 |
| ← cesc left | 16:31 |
| → fsvend joined | 16:31 |
| ← francisfish left | 16:32 |
| → semigroup joined | 16:32 |
| ← _md left | 16:33 |
| → spyro joined | 16:34 |
| → fuzzybunny69y joined | 16:35 |
| ← YesJustWolf left | 16:36 |
| ← juvenal left | 16:37 |
| → j264 joined | 16:37 |
| → john2496 joined | 16:37 |
| → raykyri joined | 16:38 |
| → mcluskydodallas joined | 16:38 |
| ← j264 left | 16:38 |
| → kerrick joined | 16:39 |
| → apok joined | 16:39 |
| ← revagomes left | 16:40 |
| ← _W_ left | 16:40 |
| → juvenal joined | 16:40 |
| ← angelsl left | 16:40 |
| → jargon- joined | 16:42 |
| → Araxia joined | 16:42 |
| ← ziro` left | 16:42 |
| → superdmp joined | 16:43 |
| ← jceb left | 16:44 |
|
superdmp
| I have done git remote add <name> <address of remote repo>; now I want to merge a branch from <name> into my current working directory | 16:44 |
|
| I have obviously missed a step somewhere though | 16:44 |
|
| I though git fetch would pull the references from <name> | 16:45 |
|
canton7
| git fetch <remote>; git merge <remote>/<branch> | 16:45 |
|
EugeneKay
| !repro | 16:45 |
|
gitinfo
| Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting. | 16:45 |
|
FauxFaux
| superdmp: "git remote update" is the friendly version of fetch that fetches everything. | 16:45 |
| ← chrisf|work left | 16:45 |
|
superdmp
| ace, thank you all | 16:45 |
| ← achadwick left | 16:45 |
| → chrisf|work joined | 16:47 |
|
superdmp
| so, which was Torvalds's greater gift to the world, Linux or Git? | 16:47 |
| → SuperMiguel joined | 16:47 |
| → HyperNerdV2 joined | 16:48 |
| ← _Qman left | 16:48 |
| ← bgerber left | 16:48 |
| → alvaro_o joined | 16:48 |
|
avpx
| I think just gifting us with His Divine Presence is enough | 16:49 |
| → bgerber joined | 16:49 |
| → Sebo joined | 16:49 |
| ← HyperNerdV2 left | 16:50 |
| ← dvide left | 16:50 |
| ← ipalaus left | 16:50 |
|
EugeneKay
| I was going to make a dirty joke, but i can't find any recent photographs of his daughters. | 16:50 |
| ← alvaro_o left | 16:50 |
| ← Goplat left | 16:50 |
|
avpx
| That's reasonably creepy. | 16:50 |
| → mishok13 joined | 16:51 |
| → tyatpi joined | 16:52 |
| → plastics joined | 16:52 |
|
IcePic
| EugeneKay: browser refuses to show such content? (oh snap!) | 16:53 |
|
EugeneKay
| Nah, laziness. I gave up after the first page of google results of biographies of Linus proper. | 16:54 |
| ← k-man left | 16:55 |
|
shruggar
| is there a good way, given an object hash, to get a list of commits which introduced that object? (I also have the file's path, but I specifically want to know when this file became this object, if ever) | 16:56 |
| → Sky[x] joined | 16:57 |
|
avpx
| shruggar: I wrote a script that does something similar | 16:57 |
| Marcux83|away → Marcux83 | 16:57 |
|
avpx
| shruggar: The basic idea is to get a list of commits using rev-list, and then use ls-tree -r to find all blobs contained therein. | 16:58 |
| ← mishok13 left | 16:59 |
| ← kevwil left | 16:59 |
| ← gusnan left | 16:59 |
| → williamcotton joined | 17:00 |
| ← john_anderson left | 17:00 |
| → leilaM joined | 17:00 |
| → john_anderson joined | 17:00 |
| ← tvw left | 17:00 |
| → Tinti joined | 17:01 |
| ← mikaelj left | 17:02 |
| → kevwil joined | 17:02 |
| ← kevwil left | 17:02 |
| ← project2501a left | 17:03 |
| → himanshu_m786 joined | 17:03 |
| ← semigroup left | 17:03 |
| ← himanshu_m786 left | 17:03 |
| → brentdanley_ joined | 17:04 |
| ← brentdanley_ left | 17:04 |
| → mishok13 joined | 17:04 |
| ← ottoshmidt left | 17:05 |
| → jajang joined | 17:05 |
| ← brentdanley left | 17:05 |
| ← cedeon left | 17:05 |
| → phishy joined | 17:05 |
| ← buggaboo left | 17:06 |
| ← john_anderson left | 17:07 |
| → avandenhoven joined | 17:07 |
| ← matt_taws left | 17:07 |
| → john_anderson joined | 17:08 |
| ← fisted left | 17:08 |
| → lindenle_ joined | 17:09 |
| → eijk joined | 17:09 |
| → mwrosen joined | 17:11 |
| → _md joined | 17:12 |
| ← williamcotton left | 17:13 |
| ← jajang left | 17:14 |
| ← Xunie left | 17:15 |
| → fisted joined | 17:15 |
| → HyperNerdV2 joined | 17:17 |
| ← superdmp left | 17:18 |
| ← marhaban left | 17:18 |
| ← Cerise left | 17:18 |
| ← SuperMiguel left | 17:18 |
| ← brentratliff left | 17:19 |
| → mikaelj joined | 17:20 |
| ← apok left | 17:20 |
| → apok joined | 17:20 |
| ← shreya left | 17:21 |
| → Cerise joined | 17:21 |
| → R4p70r joined | 17:23 |
| ← marthinal left | 17:24 |
| → noscript joined | 17:24 |
| → Xizor joined | 17:24 |
| → superdmp joined | 17:25 |
| ← kpl left | 17:25 |
| → maxagaz joined | 17:25 |
|
maxagaz
| hi | 17:25 |
|
gitinfo
| maxagaz: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 17:25 |
|
maxagaz
| how to list the differents version of one file in a branch ? | 17:26 |
|
| and how to compare them ? | 17:26 |
| ← mcluskydodallas left | 17:27 |
| → whitman joined | 17:27 |
| → cakehero joined | 17:28 |
| → mcluskydodallas joined | 17:28 |
| ← superdmp left | 17:30 |
| → thearthur joined | 17:30 |
| ← macUzer left | 17:31 |
| ← marcogmonteiro left | 17:31 |
| ← notmypudding left | 17:32 |
| ← bgerber left | 17:32 |
| → martinjlowm joined | 17:33 |
| ← Silex left | 17:33 |
| ← theCole left | 17:34 |
| ← Thanatermesis left | 17:34 |
| → bgerber joined | 17:35 |
| ← Sebo left | 17:35 |
|
avpx
| maxagaz: Try git rev-list --objects <branch> | grep <path> | 17:35 |
|
| maxagaz: The git diff tool is useful for comparison | 17:36 |
| ← rgsteele left | 17:36 |
| → osmosis joined | 17:36 |
| ← n123 left | 17:36 |
| ← Targen left | 17:37 |
|
bremner
| isn't git log -- path easier? | 17:37 |
| ← cortana2 left | 17:37 |
| ← mikaelj left | 17:37 |
| → dfr|mac joined | 17:37 |
|
avpx
| bremner: Yeah, or I guess you could do that. | 17:38 |
|
| :p | 17:38 |
|
| maxagaz: Ignore me, listen to bremner. All hail bremner | 17:38 |
| ← solrize left | 17:39 |
| → z0a joined | 17:40 |
| ← kerrick left | 17:40 |
| ← mikepack left | 17:42 |
| → notmypudding joined | 17:44 |
| → aselder joined | 17:44 |
| → _W_ joined | 17:44 |
| → pdtpatrick joined | 17:45 |
| → tewecske joined | 17:45 |
| ← tewecske left | 17:45 |
| ← marc_kdab_ left | 17:46 |
| → marc_kdab_ joined | 17:46 |
| → YesJustWolf joined | 17:46 |
| → mikepack joined | 17:47 |
| → rendar joined | 17:47 |
| → Targen joined | 17:47 |
| → toabctl joined | 17:48 |
| → giallu_ joined | 17:49 |
| ← mikepack left | 17:51 |
|
maxagaz
| thanks | 17:52 |
| ← kenperkins left | 17:53 |
| → jajang joined | 17:53 |
| → abhishek__ joined | 17:54 |
| → Chillance joined | 17:55 |
| → dsiu joined | 17:55 |
| → mikaelj joined | 17:55 |
| → n123 joined | 17:56 |
| → ziro` joined | 17:56 |
| ← pdtpatrick left | 17:58 |
| → lacrymology joined | 17:58 |
| → kerrick joined | 17:58 |
| → pdtpatrick joined | 17:58 |
| → marthinal joined | 17:59 |
| → jstout24 joined | 17:59 |
| ← Davey left | 17:59 |
| ← bubbles10101 left | 18:00 |
| ← abhishek__ left | 18:00 |
| → mritz joined | 18:01 |
| ← dfr|mac left | 18:01 |
| ← kerrick left | 18:02 |
| ← Vile left | 18:02 |
| ← mritz left | 18:02 |
| → dfr|mac joined | 18:03 |
| → kerrick joined | 18:04 |
| ← dc5ala left | 18:04 |
| → j416 joined | 18:04 |
| ← rurufufuss left | 18:05 |
| ← Owner left | 18:06 |
| → kenperkins joined | 18:06 |
| → Owner joined | 18:06 |
| ← Sky[x] left | 18:10 |
| ← giallu_ left | 18:10 |
| ← randomubuntuguy left | 18:13 |
| ← juvenal left | 18:14 |
| → cesc joined | 18:15 |
| → linguini joined | 18:15 |
| → sq-one joined | 18:16 |
|
linguini
| I'm constantly committing to the wrong branch, and then realizing it a second after the commit. What is the easiest way to fix a commit on the wrong branch? git rebase? | 18:16 |
| → Escherial joined | 18:18 |
|
linguini
| Or git cherry-pick? | 18:18 |
|
Escherial
| hey, i did a pull which resulted in my branch being conflicted...is there an easy way to just take the remote's version over my own rather than manually merging each file? | 18:18 |
| → juvenal joined | 18:19 |
|
jast
| linguini: cherry-pick IMO | 18:19 |
|
EugeneKay
| Escherial - man git-merge, see "merge strategies". You probably want recursive, with the "theirs" option | 18:19 |
|
gitinfo
| Escherial: the git-merge manpage is available at http://git-scm.com/docs/git-merge.html | 18:19 |
|
Escherial
| i know you can specify theirs as a strategy to merge, but i don't know what branch i'm merging into my main one (er, for reference, i'm on local branch master, attempting to merge origin/master) | 18:19 |
|
linguini
| jast: Thanks. | 18:19 |
| → superdmp joined | 18:19 |
| → dreiss_ joined | 18:19 |
|
Escherial
| i'm kind of lost on the relationship between remote branches and local ones...merge won't let me merge anything when my branch is in a conflicted state, it seems | 18:19 |
|
RandalSchwartz
| am I missing anything in this list for git code review: crucible, gerrit, phabricator, code collaborator, barkeep, github enterprise, gitlab ? | 18:20 |
|
FauxFaux
| mailman. | 18:20 |
| ← fly9 left | 18:20 |
|
FauxFaux
| Trusting developers to ask for code review. | 18:20 |
|
jast
| pair programming | 18:20 |
|
RandalSchwartz
| other than mail-based solutions. :) | 18:20 |
| → nwp_ joined | 18:20 |
|
RandalSchwartz
| developers *will* ask if it's easy | 18:20 |
|
jast
| innovative real world-based solutions | 18:20 |
|
RandalSchwartz
| like crucible or github | 18:21 |
| ← Wooga left | 18:21 |
| adhawkins-away → adhawkins | 18:21 |
| ← ben_alman left | 18:21 |
|
FauxFaux
| Faxing patches to each other. | 18:21 |
|
avpx
| IP over avian carrier | 18:21 |
|
EugeneKay
| Escherial - !fixup will talk you through getting back to a sane state | 18:21 |
|
gitinfo
| Escherial: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 18:21 |
|
RandalSchwartz
| print the patch on paper. take PDF of it on a wooden table. email PDF. | 18:21 |
|
FauxFaux
| I'm sorry, I only had a black and white printer. | 18:22 |
|
EugeneKay
| Escherial - a remote branch is a local pointer to the state of the branch on the remote repo as it sits, nothing more. | 18:22 |
|
| Escherial - the point of this is that you can create a merge commit with the remote's current state as a parent, so you can push cleanly(without a -f) | 18:22 |
|
wereHamster
| !deploy | 18:23 |
|
gitinfo
| Git is not a deployment tool, but you can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html | 18:23 |
| → eletuchy joined | 18:23 |
|
RandalSchwartz
| !review | 18:23 |
|
gitinfo
| [!codereview] Gerrit is a code review tool for git. See http://code.google.com/p/gerrit/ You may want to enforce certain workflow to prevent people bypassing review. gitolite (and a branching workflow) or a integrator repository (distributed workflow) would be good for this. | 18:23 |
|
RandalSchwartz
| hmm. knew that already | 18:23 |
| ← superdmp left | 18:24 |
| ← hyperair left | 18:25 |
| → fly9 joined | 18:25 |
| ← dfr|mac left | 18:26 |
| → ben_alman joined | 18:28 |
| → mikepack joined | 18:30 |
| → mmc2 joined | 18:32 |
| ← ajpiano left | 18:34 |
| ← deebo left | 18:34 |
| ← d0k left | 18:35 |
| → ajpiano joined | 18:37 |
| ← mikepack left | 18:37 |
| ← nwp_ left | 18:38 |
|
cmn
| there isn't really much more for code review | 18:38 |
| ← Element9 left | 18:38 |
| → d0k joined | 18:39 |
|
cmn
| you can use github/gitorious/gitlab with pull requests for review, but you can't really enforce that much | 18:39 |
| ← akiress left | 18:40 |
| ← AeroNotix left | 18:41 |
| → mrbtie joined | 18:41 |
| → williamcotton joined | 18:42 |
|
RandalSchwartz
| yeah - I have those... but that's not the workflow that works here. | 18:45 |
| → revagomes joined | 18:45 |
| → semigroup joined | 18:45 |
| ← _iron left | 18:46 |
| → jceb joined | 18:46 |
| ← mmc2 left | 18:46 |
| → pandeiro joined | 18:47 |
| ← fly9 left | 18:47 |
| → fly9 joined | 18:47 |
| → Silex joined | 18:47 |
| ← mrbtie left | 18:48 |
| → pantsman joined | 18:48 |
| → _iron joined | 18:48 |
| → marcogmonteiro joined | 18:50 |
| → flyz_ joined | 18:52 |
| ← phishy left | 18:53 |
| ← shwaiil left | 18:53 |
| → Sky[x] joined | 18:54 |
| ← jjbohn left | 18:55 |
| → Vile joined | 18:55 |
| ← lacrymology left | 18:56 |
| ← _md left | 18:57 |
| → drizzd_ joined | 18:58 |
| → lacrymology joined | 18:58 |
| → RaceCondition joined | 19:00 |
| ← edude03 left | 19:00 |
| → eicto joined | 19:00 |
| ← drizzd left | 19:01 |
| → mmc2 joined | 19:01 |
| ← pandeiro left | 19:03 |
| → harshpb joined | 19:03 |
|
EugeneKay
| You can, in combination with an "out of band" review system, use gitolite to do review | 19:04 |
| ← booginga left | 19:04 |
| ← ph^ left | 19:05 |
|
EugeneKay
| Have people push to a user- or feature- specific branch(say, the same ID# as from the review system), and then somebody with the correct permissions can pull, merge, and push it back into your main branch | 19:05 |
| → venom00ut joined | 19:06 |
| ← notmypudding left | 19:07 |
|
venom00ut
| hi, I'm trying to diff a gzip compressed XML file (xournal's .xoj) | 19:07 |
|
| I tought I could use an external diff script which decompresses it | 19:08 |
| → xref_ joined | 19:08 |
|
venom00ut
| but I'd also like to thread the file as text file, so I can do merge easily | 19:08 |
|
| any smart way to do this? | 19:08 |
| → mikepack joined | 19:08 |
|
canton7
| venom00ut there's a lot of cool stuff in man gitattributes to do with custom diff and merge drivers | 19:09 |
|
gitinfo
| the gitattributes manpage is available at http://git-scm.com/docs/gitattributes.html | 19:09 |
| ← BlindOracle left | 19:09 |
| ← mcluskydodallas left | 19:10 |
| ← xref left | 19:10 |
| xref_ → xref | 19:10 |
| ← mikepack left | 19:10 |
|
venom00ut
| canton7, do you think that using an uncompressing diff script and a "uncompress, apply patch and recompress" merge script would work? | 19:11 |
| ← YesJustWolf left | 19:11 |
|
canton7
| venom00ut, that was my thought -- I've not tried anything similar, though, so I've got no idea how much success you'll have with it | 19:11 |
| → btree joined | 19:12 |
|
venom00ut
| I'll give a try | 19:12 |
| ← mrtazz left | 19:13 |
|
canton7
| also maybe smudge/clean filters? I guess the encryption stuff in the man page is not *too* dissimilar to what you're doing | 19:13 |
| → kevwil joined | 19:13 |
| ← netzmonster left | 19:13 |
| → superdmp joined | 19:14 |
|
venom00ut
| canton7, but a filter works upon checkout/checkin, and I'd like to have them in compressed form on the disk | 19:15 |
| → mikepack joined | 19:16 |
| ← Escherial left | 19:16 |
|
canton7
| venom00ut, fair play | 19:17 |
| → hyperair joined | 19:17 |
|
canton7
| there's also the option of having them in compressed form when checked out, but check in the uncompressed versions? That would be a bit kinder on git's delta-compression algorithm too I guess | 19:17 |
|
| but again, might not be what you're after. I'm just throwing ideas around | 19:17 |
| ← shruggar left | 19:18 |
| ← superdmp left | 19:18 |
| ← mikepack left | 19:18 |
| ← harshpb left | 19:18 |
| ← federic left | 19:19 |
| → mikepack joined | 19:19 |
| → zackiv31 joined | 19:19 |
| → dr_diamond joined | 19:19 |
| ← dr_diamond left | 19:19 |
| → dr_diamond joined | 19:19 |
|
venom00ut
| canton7, on the tree they should always be compressed, otherwise Xournal won't be able to open them | 19:19 |
| ← Lgb left | 19:20 |
| ← palm_vue left | 19:20 |
| ← tommyvyo_ left | 19:20 |
| ← mikepack left | 19:20 |
|
canton7
| I was assuming xjournal would be reading them from the working copy, rather than the tree | 19:20 |
|
| but hey -- I do think the diff/merge drivers would be a better choice, if they'll work | 19:20 |
|
venom00ut
| sorry, I meant the working copy | 19:20 |
|
| I'm not an expert with the git terminology | 19:21 |
|
canton7
| so I suggested having them compressed in the working copy but uncompressed in the tree. Not that I massively like the idea... | 19:21 |
| → Lgb joined | 19:21 |
| → palm_vue joined | 19:21 |
| → tommyvyo_ joined | 19:22 |
| ← cesc left | 19:22 |
| ← jason237 left | 19:22 |
| → cesc joined | 19:22 |
| ← Jackneill left | 19:22 |
| ← dr_lepper left | 19:23 |
| → Superlokkus joined | 19:23 |
| → marhaban joined | 19:23 |
| ← gavin_huang left | 19:23 |
| ← marhaban left | 19:24 |
| → marhaban joined | 19:24 |
| → mikepack joined | 19:25 |
| ← erasmospunk left | 19:26 |
| ← mikepack left | 19:27 |
| ← venom00ut left | 19:27 |
| ← jhardinee left | 19:28 |
| → imachuchu joined | 19:28 |
| ← bartman`` left | 19:29 |
| → mikepack joined | 19:30 |
| ← mikepack left | 19:30 |
| → rtjure joined | 19:31 |
| → codeM0nK_ joined | 19:31 |
| → ivan12348 joined | 19:31 |
| → ivan12349 joined | 19:32 |
| ← ivan12346 left | 19:32 |
| ← codeM0nK3Y left | 19:33 |
| codeM0nK_ → codeM0nK3Y | 19:33 |
| ← ivan12345 left | 19:33 |
| ← pantsman left | 19:34 |
| ← ivan12347 left | 19:34 |
| → bartman`` joined | 19:35 |
| ← diegoviola left | 19:36 |
| → bartek_ joined | 19:36 |
| ← bartek left | 19:36 |
| → ivan12345 joined | 19:37 |
| ← opdynamiks left | 19:37 |
| ← Yuuhi left | 19:38 |
| → ColKurtz joined | 19:38 |
| → nielsbusch joined | 19:38 |
|
fly9
| anyone use gitlab with ldap? need to turn off account creation + notification on a new ldap login | 19:39 |
| ← cyphase left | 19:40 |
| → cyphase joined | 19:41 |
| → btanaka joined | 19:43 |
| → afuentes joined | 19:43 |
| ← enmand left | 19:44 |
| ← marthinal left | 19:44 |
| ← bgerber left | 19:44 |
| → mikepack joined | 19:45 |
| → mrbtie joined | 19:47 |
| → Yuuhi joined | 19:51 |
| → mcluskydodallas joined | 19:52 |
| → nadirvardar joined | 19:52 |
| → i42n joined | 19:53 |
| ← mikepack left | 19:54 |
| ← toabctl left | 19:55 |
| ← hyperair left | 19:55 |
| → bgerber joined | 19:55 |
| ← Natureshadow left | 19:56 |
| → mikepack joined | 19:57 |
| → Natureshadow joined | 19:57 |
| ← blameless left | 19:57 |
| ← plastics left | 19:59 |
| → blameless joined | 19:59 |
| → Wooga joined | 20:01 |
| → hyperair joined | 20:01 |
| → mikew3 joined | 20:02 |
| gitinfo set mode: +v | 20:03 |
| ← berserkr left | 20:03 |
| → cedeon joined | 20:04 |
| ← semigroup left | 20:05 |
| → Axsuul joined | 20:05 |
| ← Natureshadow left | 20:06 |
| → semigroup joined | 20:07 |
| → Natureshadow joined | 20:07 |
| → mxweas_ joined | 20:08 |
| → yoklov joined | 20:08 |
| → offby1 joined | 20:08 |
| ← offby1 left | 20:08 |
| → offby1 joined | 20:08 |
| ← Natureshadow left | 20:09 |
| ← mikew3 left | 20:09 |
| ← hyperair left | 20:09 |
| ← _huoxito left | 20:11 |
| → marthinal joined | 20:12 |
| → Natureshadow joined | 20:13 |
| ← cedeon left | 20:13 |
| ← bgerber left | 20:15 |
| → dr_lepper joined | 20:16 |
| → hyperair joined | 20:17 |
| → diegoviola joined | 20:17 |
| → pantsman joined | 20:18 |
| ← pantsman left | 20:18 |
| → pantsman joined | 20:18 |
| ← hyperair left | 20:18 |
| → shruggar joined | 20:18 |
| ← JPT left | 20:19 |
| → bgerber joined | 20:20 |
| ← heptadecagram left | 20:20 |
| adhawkins → adhawkins-away | 20:20 |
| ← fsvend left | 20:22 |
| → JPT joined | 20:22 |
| ← Ryback_ left | 20:23 |
| ← jcromartie left | 20:24 |
| → hyperair joined | 20:24 |
| → jcromartie joined | 20:24 |
| → fsvend joined | 20:25 |
| ← mxweas_ left | 20:27 |
| ← Mowsh left | 20:28 |
| ← nielsbusch left | 20:29 |
| → randomubuntuguy joined | 20:29 |
| ← AaronMT left | 20:29 |
| ← randomubuntuguy left | 20:29 |
| → randomubuntuguy joined | 20:30 |
| ← ToBeFree left | 20:32 |
| → benjo2 joined | 20:32 |
| → heptadecagram joined | 20:33 |
| → tigrang joined | 20:33 |
| ← heptadecagram left | 20:33 |
| → nutron joined | 20:34 |
| ← nadirvardar left | 20:35 |
| ← duckxx left | 20:36 |
| → duckxx joined | 20:36 |
| → nadirvardar joined | 20:37 |
| ← jceb left | 20:38 |
| ← shruggar left | 20:39 |
| → Shusshu joined | 20:40 |
| ← Shusshu left | 20:41 |
| ← jaseemabid left | 20:41 |
| ← jajang left | 20:41 |
| → flazz joined | 20:42 |
| ← semigroup left | 20:43 |
|
flazz
| (on a topic branch T) git diff master, is there a way to export this to a visual diff tool to let me accept or reject differences from master? kinda like cherry picking but visually? | 20:44 |
| ← mishok13 left | 20:45 |
| → mishok13 joined | 20:45 |
|
canton7
| flazz, checkout -p will probably do it | 20:45 |
| ← Natureshadow left | 20:47 |
| ← fsvend left | 20:48 |
| → Natureshadow joined | 20:48 |
| → minism joined | 20:48 |
| ← minism left | 20:48 |
| → delight joined | 20:48 |
| → bauruine joined | 20:49 |
|
delight
| i was wondering is there a difference between "git rm --cached FILENAME" and "git reset HEAD FILENAME" ? | 20:49 |
| ← Xizor left | 20:49 |
| ← martinjlowm left | 20:50 |
| ← Natureshadow left | 20:50 |
| → Natureshadow joined | 20:51 |
| ← d0k left | 20:51 |
|
cmn
| they're only equivalent if the file hasn't been committed yet | 20:51 |
| → hellopat_ joined | 20:51 |
| ← delight left | 20:51 |
| ← mikepack left | 20:51 |
| → snap_ joined | 20:51 |
| → delight joined | 20:51 |
| ← xref left | 20:52 |
| ← mishok13 left | 20:52 |
|
cmn
| or more exactly, if the file didn't exist in the last commit of the current branch | 20:52 |
| → xref joined | 20:52 |
|
snap_
| hey, is there any way I can have 2 directories with identical repositories but different working branches; so I am able ot work on 2 branches at the same time and commit to one and see the changes on both without having to sync back and forth? | 20:53 |
| ← andref_dias left | 20:53 |
|
snap_
| or some altogether easier way to do that? | 20:53 |
|
rendar
| what are those files in the "t" directory in the git's source tree ? | 20:53 |
| ← dsiu left | 20:53 |
| ← tyll left | 20:54 |
| → oops joined | 20:54 |
|
delight
| snap_: just clone your repo locally .. done | 20:54 |
|
oops
| What is the wildcard character to select .foo.swp, .bar.swp, .swp but not .barswp? | 20:54 |
| ← hellopat_ left | 20:54 |
|
cmn
| rendar: tests | 20:54 |
|
rendar
| ok | 20:54 |
|
delight
| cmn: what exactly is the difference if the file pre-existed in history ? | 20:54 |
| ← hellopat left | 20:54 |
| → mikepack joined | 20:55 |
|
snap_
| delight: wouldnt i still have to pull from one to the other after a commit and from upstream on both? | 20:55 |
| → d0k joined | 20:55 |
| ← noisebleed left | 20:56 |
| → mishok13 joined | 20:57 |
|
cmn
| delight: reset will set the file's entry in the index to be that in HEAD | 20:57 |
|
| which what happens in either case, but if the file isn't in HEAD, it gets deleted | 20:57 |
|
| see man git reset for details on what reset is | 20:57 |
|
gitinfo
| the git-reset manpage is available at http://git-scm.com/docs/git-reset.html | 20:57 |
| ← kevwil left | 20:58 |
|
canton7
| oops, *.swp maybe? | 20:59 |
| → raatiniemi joined | 21:00 |
|
oops
| canton7, that doesn't select any of them. | 21:00 |
|
canton7
| snap_, what exactly are you after? even if there was some way to magically sync two repos, they've got different branches checked out -- committing in one wouuldn't directly affect the other anyway | 21:00 |
| ← mikepack left | 21:00 |
|
delight
| cmn: I'll have to double check that … but last time i used "git rm --cached FILE" I think it took it of only from the index … and the file in index was new … well I'll better double check that before averring something | 21:00 |
|
oops
| canton7, because the filenames start with a dot. there is nothing before the dot. | 21:01 |
|
cmn
| that's what rm --cached does | 21:01 |
| → psoo joined | 21:01 |
|
canton7
| oops, well it's working fine for me... | 21:02 |
|
| hang on, I'll do a pastie | 21:02 |
|
delight
| cmn: but reset HEAD does the same … all right I'll stop nagging :-D … I'll read the manual some more … thnx so far | 21:02 |
|
oops
| canton7, ok | 21:02 |
| → axl_ joined | 21:02 |
|
cmn
| delight: it will sometimes do it; I've already described the situation where it behaves that way | 21:02 |
| → Davey joined | 21:02 |
| → nielsbusch joined | 21:02 |
| → kevwil joined | 21:03 |
|
canton7
| oops, http://pastie.org/4156530 | 21:03 |
| ← sq-one left | 21:04 |
| → aspotashev joined | 21:05 |
| → eletuchy_ joined | 21:06 |
| → mklappstuhl joined | 21:06 |
|
oops
| canton7, yes, made it work. I was confused between the shell's wildcard expansion and .gitignore's. They don't seem to match. | 21:06 |
|
| canton7, are you able to select the same files using ls *.swp or echo *.swp? | 21:07 |
|
| how can I know the rules for wildcard expansion of git? | 21:07 |
| → Drakken joined | 21:07 |
| ← cesc left | 21:07 |
| ← mishok13 left | 21:07 |
|
canton7
| oops, no, they differ. I believe .gitignore uses fnmatch syntax | 21:07 |
|
EugeneKay
| man gitignore ;-) | 21:08 |
|
gitinfo
| the gitignore manpage is available at http://git-scm.com/docs/gitignore.html | 21:08 |
|
canton7
| (presumably without FNM_PERIOD set) | 21:08 |
|
Drakken
| I'm having trouble pushing some commits onto a new github repo. | 21:09 |
| ← chrisf|work left | 21:09 |
|
Drakken
| If anyone here is on #github, I posted it there. | 21:09 |
|
EugeneKay
| !repro !work | 21:09 |
|
gitinfo
| Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting. | 21:09 |
|
| [!doesntwork] Sorry to hear it doesn't work. What happened? Did it fall asleep on your couch, with your sister? Eat your homework? What did you want it to do? What happened instead? Please be specific! | 21:09 |
| → chrisf|work joined | 21:10 |
| ← eletuchy left | 21:10 |
|
Drakken
| EugeneKay is that for me? | 21:10 |
| ← noscript left | 21:10 |
|
oops
| ok so it first tries it as shell glob. If nothing found, then it tries fnmatch() | 21:10 |
|
Drakken
| output is here: http://pastebin.com/fiNW3gRH | 21:10 |
|
EugeneKay
| I make the assumption that people are smart enough to know when I'm speaking to them based upon the context. If this assumption is wrong for you, please let me know and I will alter my habits for you ;-) | 21:11 |
|
| You appear to be using HTTPS:// to speak to Github. Please use !ssh instead. | 21:11 |
|
gitinfo
| Please use SSH to talk to remote repos. http:// and git:// are completely unsecured. You can try to configure "smart" https:// access, but it is usually much easier to just stick with ssh:// | 21:11 |
|
EugeneKay
| Yes, github says to use HTTPS. They're wrong. | 21:11 |
|
cmn
| for them using username/password has less support burden than ssh | 21:12 |
|
EugeneKay
| The underlying problem is that your system's CA store(the one libcurl uses) does not contain the CA certificate that github.com is signed by. This is because SSL PKI is crappy. | 21:12 |
|
| So, use SSH and enjoy. Github even has a page on how to generate a key, which you should google up and read. | 21:13 |
| → thiago joined | 21:13 |
| ← lotus left | 21:14 |
| ← linduxed left | 21:15 |
| ← psoo left | 21:16 |
| ← eletuchy_ left | 21:17 |
| → eletuchy joined | 21:17 |
| ← Riviera left | 21:17 |
| ← Owner left | 21:18 |
| ← marthinal left | 21:18 |
| → Owner joined | 21:18 |
| ← lacrymology left | 21:19 |
| ← i42n left | 21:19 |
| ← j416 left | 21:19 |
| → shruggar joined | 21:21 |
| ← Drakken left | 21:22 |
| → AeroNotix joined | 21:23 |
|
delight
| cmn: alright I understood the difference … thnx again … basically git rm --cached prepares a "delete-commit" for a file that was committed earlier | 21:24 |
| ← benjo2 left | 21:25 |
|
snap_
| canton7: i just want to be able to have 2 arbitrary branches checkedout from the same repo and be able to commit to either without having to sync between them | 21:25 |
| ← mmc2 left | 21:27 |
| ← delight left | 21:27 |
| ← hakunin left | 21:27 |
| ← hoschi left | 21:27 |
| → hakunin joined | 21:28 |
| → linduxed joined | 21:28 |
| → kahmalo joined | 21:29 |
| ← mwrosen left | 21:29 |
| → gusnan joined | 21:29 |
| → hakunin_ joined | 21:30 |
| gitinfo set mode: +v | 21:30 |
|
kahmalo
| what's a handy way to get git diff against HEAD but list files in random order, rather than alphabetical? | 21:30 |
| ← bartek_ left | 21:30 |
| ← hakunin left | 21:30 |
| ← Dave^|| left | 21:31 |
|
EugeneKay
| man sort; see the -R flag. | 21:32 |
|
| A better question is *why* you need this. !xy ? | 21:33 |
|
gitinfo
| [!doinitrong] It sounds like you're approaching this problem in the wrong manner. Let's step back for a minute - What are you actually trying to achieve? Why are you trying to do it this way? | 21:33 |
| ← alester left | 21:33 |
|
kahmalo
| the scenario is that I run sed on a large number of files and need to verify that the result is somewhat sane; random sampling should be more reliable than looking at the first files alphabetically. | 21:33 |
|
| as there is correlation between file names and contents | 21:33 |
|
EugeneKay
| Interesting problem. Take the output of git-status(in porcelain format), sort -R that, then git-diff the individual files, using !dashes | 21:34 |
|
gitinfo
| Use a double-dash(--) to separate refs from paths, especially when dealing with ambiguous file names. Ex: git checkout master -- origin (check out the file "origin" from branch "master") | 21:34 |
| ← marc_kdab_ left | 21:35 |
|
kahmalo
| anyway, I'm at 51% of the whole diff, so I guess I'll just read to the end now | 21:36 |
| ← sh0ne left | 21:36 |
| ← Anxi80 left | 21:37 |
| → basicallyu joined | 21:37 |
| → semigroup joined | 21:37 |
| → Drakken joined | 21:37 |
| ← andrewhl left | 21:37 |
|
kahmalo
| EugeneKay: what do you mean with porcelain format? I don't see such an option in the git-status or git-commit man pages. | 21:38 |
|
| actually I'd have thought that git-ls-files was the appropriate program | 21:39 |
|
EugeneKay
| man git-status; ctrl-f for "porcelain" | 21:39 |
|
gitinfo
| the git-status manpage is available at http://git-scm.com/docs/git-status.html | 21:39 |
| ← aspotashev left | 21:39 |
| → aspotashev joined | 21:39 |
|
EugeneKay
| I presume you're diffing the index against HEAD; -status gives you a list of files staged relative to HEAD | 21:39 |
| gitinfo set mode: +v | 21:40 |
|
basicallyu
| hi, how would I go about doing this: first time clone project it gives me the .classpath file, then any modifications on it will not be seen as unstaged and will never be commited ? but when I really want to commit it then i should can do it | 21:40 |
| → giallu joined | 21:40 |
| ← giallu left | 21:40 |
| → giallu joined | 21:40 |
| ← twisted` left | 21:40 |
|
kahmalo
| hm, I seem to have stale man pages in my home directory. | 21:41 |
|
jrdnn
| basicallyu: git add .classpath git commit | 21:41 |
| → Anxi80 joined | 21:41 |
|
basicallyu
| thing is, if it's already in index then .gitignore will have no effect when .classpath file is detected as modified | 21:41 |
| → twisted` joined | 21:41 |
|
basicallyu
| jrdnn: would be cool if when i try to commit next it wouldn't detect .classpath as modified at all, but still .classpath should exist in the repo | 21:41 |
|
jrdnn
| basicallyu: git rm --cached to remove from index but leave i t in working die | 21:42 |
|
| basicallyu: If you want to leave it in index and working dir and just not update index to equal working dir, just don't' git add that file before you commit and don't use git commit -a | 21:42 |
|
basicallyu
| yeah that is what i want, but how can I ever have it in the repository if i never add it? | 21:43 |
| ← EricKamsky left | 21:43 |
| ← dzonder left | 21:43 |
|
basicallyu
| i still need the rm --cached you said above right? | 21:43 |
|
| i'm looking into that :) | 21:43 |
|
jrdnn
| basicallyu: If it's indexed and you want to unindex it and you don't want it in the repository | 21:43 |
|
basicallyu
| it's indexed but i do want it in the repository | 21:44 |
|
| and i want it on local too, but i just don't want the modifs I do in it to get detected when I do git commit (actually via Eclipse ie. egit) | 21:44 |
| ← kaen left | 21:44 |
|
jrdnn
| basicallyu: Just don't use git add on it then and don't use git commit -a. Then you can have the one in the repository unmodified, and the one in your working directory. | 21:45 |
|
| basicallyu: Or do git branch -b LocalFile git add theFile git commit | 21:45 |
|
basicallyu
| and if I modify any other files but I want them commited | 21:45 |
| → _md joined | 21:45 |
|
basicallyu
| but can it maybe not detect at all that .classpath was modified ? | 21:45 |
|
jrdnn
| basicallyu: If you make a local branch for it and put all the changes there and don't push from that branch you can version control that file without affecting the other repository | 21:45 |
| ← etcetera left | 21:46 |
| → psoo joined | 21:46 |
|
basicallyu
| hmm interesting, | 21:46 |
|
jrdnn
| basicallyu: git checkout -b MyClasspath git add .classpath git commit -m "Local classpath" git checkout originalBranch | 21:46 |
| ← whitman left | 21:46 |
| ← maxagaz left | 21:46 |
| → acl_ joined | 21:46 |
|
basicallyu
| ok that i understand, but trying to figure out what happens when im on original branch and i modify the .classpath | 21:47 |
|
| or would the original branch never actually have the file? | 21:47 |
| ← Drakken left | 21:47 |
| ← kevwil left | 21:48 |
| ← axl_ left | 21:48 |
| → lledet joined | 21:48 |
| → benjo2 joined | 21:48 |
|
basicallyu
| Here's what I actually want to do: first time user clones repo, it has a .classpath in the repo; but then if he modifies it, it shouldn't be detected by git commit -a ie. it should be ignored so that to prevent users from accidentally commiting a .classpath of their own | 21:48 |
|
jrdnn
| basicallyu: After you add it to MyClasspath, git checkout originalbranch git rm .myclasspath git commit -m "Don't track .myclasspath in this branch" echo '.myclasspath' >> .gitignore | 21:49 |
|
basicallyu
| and also when they do try to update, if they already have the .classpath file, then it should auto be ignored | 21:49 |
|
| ok that would work but it'd mean that i'd have to pull both branches to get the .classhpath in my work dir? | 21:50 |
| → etcetera joined | 21:50 |
|
jrdnn
| basicallyu: Both branches yes since it wouldn't be tracked in the main one that people push | 21:50 |
| ← macabre left | 21:51 |
|
canton7
| snap_, you can do that no problem. if you're committing to them independently, you don't need them to be synchronised all the time, no? | 21:51 |
| → dfr|mac joined | 21:51 |
|
basicallyu
| if the file exists only in the myclasspath branch would it show locally if i'm on the original branch ? | 21:51 |
|
| true that canton7 | 21:51 |
|
| trying to figure out if I'd still have the file on work dir while i'm on original branch | 21:52 |
|
| but tipically this is a great idea jrdnn | 21:52 |
|
| ty* | 21:52 |
| → superdmp joined | 21:52 |
|
jrdnn
| basicallyu: It wouldn't. Sorry. I know of no way to have a file in a branch and you get the file when you pull that branch and you modify that file in that branch and not have git commit -a add it. So I guess just only manually git add what you want to change | 21:53 |
| ← marcogmonteiro left | 21:53 |
| → madewokherd joined | 21:54 |
| ← sebrock left | 21:55 |
|
basicallyu
| yeah :/ unfortunatelly when modifying .classpath locally and say a few other files, it can just be that someone will forget to deselet .classpath from commiting (imagine in a gui, egit) but also this deselect would have to be done on every commit | 21:55 |
|
RandalSchwartz
| any experience with indefero here? | 21:55 |
|
basicallyu
| jrdnn thanks a lot for your help and time, I really do appreciate it | 21:55 |
|
jrdnn
| basicallyu: You're welcome. Sorry for no complete solution | 21:55 |
| ← nipnop left | 21:55 |
| → grantbdev joined | 21:55 |
|
basicallyu
| it's all good | 21:55 |
| → youngin joined | 21:56 |
| ← blacktulip left | 21:56 |
|
basicallyu
| oh snap, i think i just googled it :O and there's this solution: | 21:56 |
|
| git update-index --assume-unchanged <file> | 21:56 |
| ← youngin left | 21:56 |
|
basicallyu
| If you wanna start tracking changes again run the following command: git update-index --no-assume-unchanged <file> | 21:57 |
| → mikkelb joined | 21:57 |
| → kaen joined | 21:57 |
|
basicallyu
| do you think this would work? sounds ok | 21:57 |
|
mikkelb
| Hey | 21:57 |
|
gitinfo
| mikkelb: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 21:57 |
|
mikkelb
| How do I view the date of a repo's last commit? | 21:57 |
|
| sorry its probably a stupid question | 21:57 |
| ← TheHaven left | 21:58 |
| ← rtjure left | 21:58 |
| ← davidjdagino left | 21:58 |
|
canton7
| mikkelb, git log --all | 21:58 |
|
| (is one way) | 21:58 |
|
basicallyu
| aweome canton7 thx | 21:58 |
| ← chrisgeorge left | 21:59 |
| ← juanfer left | 22:00 |
| → chrisgeorge joined | 22:00 |
| → cagedwisdom joined | 22:00 |
| Marcux83 → Marcux83|away | 22:01 |
| → Pupeno_W_ joined | 22:02 |
| ← Pupeno_W left | 22:02 |
| Pupeno_W_ → Pupeno_W | 22:02 |
| ← Mkaysi left | 22:02 |
|
basicallyu
| jrdnn: that is pretty epic with assume unchanged, it works, now i only need a way to make that a default such that when cloning the repo, it would act as if the command git update-index --assume-unchanged .classpath was already executed; any ideas if this can be done? | 22:02 |
|
jrdnn
| basicallyu: I think that's what you're looking for | 22:02 |
|
mikkelb
| canton7: any way to get just the date? | 22:03 |
|
| canton7: preferably YYYY-MM-DD | 22:03 |
| → masterkaen joined | 22:03 |
|
basicallyu
| yes but I'd need a way to automatically have that set for the .classpath when the user clones the repo, so that he doesn't have to execute that command (and 3 more for more files) right after cloning | 22:04 |
| ← kermit left | 22:04 |
| ← Zenmaker_ left | 22:04 |
|
jrdnn
| basicallyu: If you set assume-unchanged and push it, whenever somebody pulls it, it should be assume-unchanged already | 22:04 |
| ← kpreid left | 22:04 |
| → Zenmaker_ joined | 22:04 |
|
canton7
| mikkelb, git log --date=short --format="%cd" -1 | 22:04 |
| → Mkaysi_ joined | 22:05 |
|
mikkelb
| canton7: sweeeeeeeeeet | 22:05 |
|
| thanks man :D | 22:05 |
| ← imachuchu left | 22:05 |
| → kermit joined | 22:05 |
| → mikepack joined | 22:05 |
|
canton7
| mikkelb, no problem. man git-log next time ;) | 22:05 |
|
gitinfo
| mikkelb: the git-log manpage is available at http://git-scm.com/docs/git-log.html | 22:05 |
|
mikkelb
| :D | 22:05 |
|
Hunner
| Why is there no man page for 'git show'? | 22:05 |
|
canton7
| man git-show | 22:05 |
|
gitinfo
| the git-show manpage is available at http://git-scm.com/docs/git-show.html | 22:05 |
|
Hunner
| (or maybe my system is broken) | 22:05 |
| ← afuentes left | 22:06 |
| → Sebo joined | 22:06 |
|
Hunner
| Yep, my system is broken :P | 22:06 |
| ← twisted` left | 22:06 |
|
canton7
| mikkelb, stick --all in there if you want the last commit across all branches | 22:06 |
| → ziggles joined | 22:06 |
|
basicallyu
| jrdnn: wow that would be epic then, i'll test | 22:07 |
| → neakretsam joined | 22:07 |
| ← markgifford left | 22:07 |
| ← mikepack left | 22:07 |
| → kcj joined | 22:07 |
| ← kaen left | 22:07 |
|
basicallyu
| jrdnn: did you mean commit after i set assume unchanged? and then push ? thing is, if i set that i cannot commit it(?) | 22:08 |
|
mikkelb
| canton7: i definitely want that yeah | 22:08 |
|
| canton7: real quick though, is there a way to apply this same command but to the second last commit? | 22:09 |
|
RandalSchwartz
| anyone have any experience here with http://crew-cr.org/ ? | 22:09 |
|
basicallyu
| jrdnn: oh i see, If you git add the file directly, it will be added to the index. | 22:09 |
| ← nielsbusch left | 22:10 |
| ← shruggar left | 22:10 |
|
jrdnn
| basicallyu: If you git add the file it works | 22:10 |
|
| basicallyu: Sorry didn't see last message | 22:10 |
|
basicallyu
| jrdnn: apparently not from withing egit, maybe works on cmd line, testing | 22:10 |
| ← masterkaen left | 22:10 |
| ← Destos left | 22:11 |
| → enmand joined | 22:11 |
| ← mattp_ left | 22:11 |
| → mattp_ joined | 22:11 |
| ← tubbo`cloud left | 22:11 |
| ← mitsuhiko left | 22:11 |
| ← MetaCosm left | 22:11 |
| ← claudiu__ left | 22:11 |
| ← desaila left | 22:11 |
| ← jmcantrell left | 22:11 |
| → Zenmaker__ joined | 22:11 |
| → MetaCosm joined | 22:11 |
|
jrdnn
| basicallyu: git add the file, update-index --assume-unchanged the file, git commit, and git push should work, don't know about GUI though | 22:11 |
| → mitsuhiko_ joined | 22:12 |
| ← neakretsam left | 22:12 |
| ← semigroup left | 22:12 |
| → berserkr joined | 22:12 |
|
basicallyu
| jrdnn: i see what you mean but git add there expects the file wasn't previously already added, which is my case | 22:12 |
| ← dv310p3r left | 22:12 |
| → sh0ne joined | 22:12 |
|
canton7
| mikkelb, not directly for all branches, no. you can do it for the current branch by sticking 'HEAD^' on the end, or --all and -2, and just pick the second line for all branches | 22:13 |
| → jmcantrell joined | 22:13 |
| → mikepack joined | 22:13 |
|
mikkelb
| canton7: cool yeah thats a good idea | 22:13 |
| → tubbo`cloud joined | 22:13 |
|
jrdnn
| basicallyu: git add --force file | 22:14 |
| ← beatak left | 22:14 |
| → AaronMT joined | 22:15 |
| ← AaronMT left | 22:15 |
| ← Zenmaker_ left | 22:15 |
| ← dfr|mac left | 22:15 |
| ← neurodrone left | 22:15 |
| → AaronMT joined | 22:15 |
| ← AaronMT left | 22:15 |
| → shruggar joined | 22:15 |
| → AaronMT joined | 22:16 |
| ← AaronMT left | 22:16 |
| ← arietis left | 22:16 |
| → AaronMT joined | 22:17 |
| ← AaronMT left | 22:17 |
| → apok_ joined | 22:17 |
|
ij
| Give me something about dealing with push -f on the other end. | 22:17 |
| → AaronMT joined | 22:17 |
| ← AaronMT left | 22:17 |
|
mikkelb
| sorry last question y'all! | 22:17 |
| ← shruggar left | 22:18 |
| → claudiu__ joined | 22:18 |
| → AaronMT joined | 22:18 |
| ← AaronMT left | 22:18 |
| ← juvenal left | 22:18 |
| → desaila joined | 22:18 |
| → bryanmv`away joined | 22:18 |
|
basicallyu
| jrdnn: awesome, seems that's all i need; just have to test now with clone ;) | 22:18 |
|
mikkelb
| is there a way to, before running a "git remote update", to check if there actually are any remote commits to update with? | 22:18 |
|
| jrdnn crosses fingers | 22:18 |
| → AaronMT joined | 22:19 |
| ← AaronMT left | 22:19 |
|
canton7
| mikkelb, you *could* use ls-remote. why not just fetch though? :) | 22:19 |
| ← Sebo left | 22:19 |
| ← flyz_ left | 22:19 |
| → AaronMT joined | 22:19 |
| ← _md left | 22:20 |
|
mikkelb
| canton7: hold up ill show u, its for this script to pull all repos in this huge collection of repos | 22:20 |
| ← apok left | 22:20 |
| apok_ → apok | 22:20 |
|
basicallyu
| jrdnn: ok wait apparently lol I am unable to git add --force file if it's assume unchanged, or I am missing something | 22:21 |
|
| canton7 doesn't like the words "pull" and "script" in the same sentence | 22:21 |
| ← superdmp left | 22:21 |
| ← TheJH left | 22:21 |
| ← tudorstudio left | 22:22 |
| ← rendar left | 22:22 |
| ← meLon left | 22:22 |
| ← john2496 left | 22:22 |
| ← revagomes left | 22:23 |
| ← n123 left | 22:24 |
| → ashphy joined | 22:24 |
| ← hyperair left | 22:24 |
| ← airborn left | 22:25 |
|
mikkelb
| hehe | 22:25 |
| → bubbles10101 joined | 22:25 |
| ← giallu left | 22:29 |
| ← AeroNotix left | 22:30 |
| ← mikkelb left | 22:30 |
| → hyperair joined | 22:31 |
| ← cakehero left | 22:32 |
| → dabd joined | 22:34 |
| ← QaDeS left | 22:34 |
| → twisted` joined | 22:34 |
| ← sh0ne left | 22:34 |
| ← Jon30 left | 22:35 |
| → theCole joined | 22:35 |
| → yaymukund joined | 22:35 |
| ← intransit left | 22:35 |
|
yaymukund
| can I fast forward a branch without checking it out? | 22:35 |
| ← twisted` left | 22:36 |
|
EugeneKay
| Sure. Overwrite the branch pointer with the ID of the revision you want it to be at. | 22:36 |
| → flaguy48 joined | 22:36 |
|
EugeneKay
| This is probably not the best of ideas, but hey.... | 22:36 |
|
canton7
| (git branch -f branch origin/branch for example. it won't ensure ff-only merges though -- you can tell it to move the branch head wherever) | 22:37 |
|
cmn
| if it's really a fast-forward, it shouldn't cause problems | 22:37 |
|
yaymukund
| haha, fair enough | 22:37 |
|
EugeneKay
| If youre just concerned about losing your current branch you can make a stash then checkout & merge as you like, switching back and popping when finished. | 22:37 |
| → twisted` joined | 22:37 |
|
canton7
| and remember that if e.g. master isn't up to date, you can do a lot of work from origin/master instead, without having to go near master | 22:38 |
| ← twisted` left | 22:38 |
|
EugeneKay
| To do the overwrite, something like: echo $(git rev-parse origin/otherbranchname) > .git/refs/heads/otherbranchname | 22:38 |
|
| Actually, you can drop the () and the echo and the > altogether..... I think I need a beer. | 22:39 |
| → twisted` joined | 22:39 |
| ← toothr left | 22:40 |
|
pragma-
| but don't drop the $? wat? | 22:40 |
| → toothrot joined | 22:40 |
|
EugeneKay
| $()* | 22:40 |
| ← d0k left | 22:40 |
|
EugeneKay
| My four key is sticky | 22:40 |
| ← yacc left | 22:40 |
|
pragma-
| I WONDER WHY THAT IS | 22:41 |
|
cmn
| erm... git branch -f otherbranchname origin/otherbranchname is much much easier to remember and type | 22:41 |
| ← grantbdev left | 22:41 |
|
EugeneKay
| Yeah, but it doesn't sound as scary. | 22:41 |
|
cmn
| ah, gotcha | 22:41 |
| ← linduxed left | 22:41 |
|
EugeneKay
| "You CAN do this, but it's a plumbing command, and could cause !weasels..... or you could just do it the right way." | 22:42 |
|
gitinfo
| The consequences of this proposal are not well-defined. A band of furious weasels may infest your undergarments, or it might work just fine. You should !backup then !tryit and let us know what happens. | 22:42 |
| ← AaronMT left | 22:42 |
| → n123 joined | 22:43 |
| ← eijk left | 22:43 |
| → wolfric joined | 22:44 |
| ← puneetgoyal left | 22:44 |
| ← mrbtie left | 22:44 |
| → yacc joined | 22:45 |
|
basicallyu
| jrdnn: wow get this, to actually force the assume unchanged file to be seen as changed i just execute git update-index --really-refresh However, this removes the assume unchanged flag apparently :/ | 22:45 |
| ← thomas_b_ left | 22:45 |
|
milki
| interesting side effect | 22:45 |
|
jrdnn
| basicallyu: =( | 22:46 |
|
EugeneKay
| Which, the weasels? | 22:46 |
| ← pantsman left | 22:47 |
| → Lulzon joined | 22:49 |
| ← bubbles10101 left | 22:50 |
|
frogonwheels
| EugeneKay: you shouldn't update refs directly like that. you should use git update-ref instead. git update-ref refs/heads/otherbranchname origin/otherbranchname | 22:50 |
|
| EugeneKay: but of course not on the your checked out branch. Who was it that you were helping? | 22:50 |
|
| EugeneKay points to yaymukund, mentions the weasels again | 22:51 |
|
yaymukund
| I just stashed | 22:51 |
|
EugeneKay
| Good. ;-) | 22:51 |
|
yaymukund
| my git fu is not strong enough, and I know better :) | 22:51 |
| ← basicallyu left | 22:51 |
| → linduxed joined | 22:52 |
|
yaymukund
| but thank you :) | 22:52 |
|
EugeneKay
| I didn't know about update-ref, but I doubt fiddling with un-checked-out branches like that is a good idea, anyway. Best to use -merge so you KNOW it's a ff | 22:52 |
|
frogonwheels
| EugeneKay: another cool thing about using update-ref is that it actually updates reflog as well :) I often will give a -m "some comment" arg to update-ref whcih goes in the reflog comment | 22:52 |
|
EugeneKay
| Nifty. | 22:52 |
| → sirdancealot joined | 22:53 |
| ← yacc left | 22:53 |
|
EugeneKay
| If I'm gonna screw up .git/ I like to do it really, really good. | 22:53 |
|
frogonwheels
| EugeneKay: Meh, it's safe enough if you know it's a fast-forward. I pretty much have gitk open all the time anyway | 22:53 |
|
EugeneKay
| Nothing pisses it off quite like overwriting files blindly | 22:53 |
|
frogonwheels
| EugeneKay: the other thing about update-ref, is that it works in packed refs as well | 22:53 |
|
| EugeneKay nods | 22:53 |
| ← aspotashev left | 22:54 |
| ← TeckniX left | 22:54 |
|
frogonwheels
| EugeneKay: (ie those that have been moved into .git/info/refs file | 22:54 |
|
| EugeneKay: oh, worth mentioning, update-ref doesn't accept shortcuts in the first param. so you must have refs/heads/blah or refs/tags/whatever :| | 22:55 |
|
cmn
| those aren't packed refs | 22:55 |
|
| .git/info/refs is for the dumb http protocol | 22:55 |
|
| and update-ref really shouldn't change it | 22:56 |
| ← Superlokkus left | 22:56 |
|
frogonwheels
| cmn: woops. Well just as well I don't rely on that information and use update-ref to mess with them :) | 22:56 |
| ← Jiyuu|Srv left | 22:57 |
| → Lord_DeathMatch joined | 22:58 |
|
frogonwheels
| cmn: but thankyou, (actually one of the things I like about an active and friendly channel like #git is that you usually have oversite to keep you from misleading people ) | 22:58 |
| → yacc joined | 22:58 |
| ← fly9 left | 22:59 |
| ← chrisgeorge left | 22:59 |
| → fly9 joined | 23:00 |
| ← john_anderson left | 23:01 |
| ← diegoviola left | 23:01 |
| → Jiyuu|Srv joined | 23:02 |
| ← RaceCondition left | 23:02 |
| → RaceCondition joined | 23:03 |
| ← yacc left | 23:03 |
| ← n123 left | 23:03 |
| ← randomubuntuguy left | 23:04 |
| → edude03 joined | 23:04 |
| ← eletuchy left | 23:04 |
| ← sdeboey left | 23:04 |
| ← thiago left | 23:05 |
| → simesy joined | 23:06 |
| ← berserkr left | 23:07 |
| → mikkelb joined | 23:10 |
|
mikkelb
| canton7: soon got my script ready for you | 23:11 |
|
| real quick though - its been a while since i dabbled with this script | 23:11 |
| ← Syzygy__ left | 23:11 |
|
mikkelb
| (basically i have a huge collection of various github repos i store for fun and learning) | 23:12 |
|
| any idea why i'd put git reset --hard @{u} after git remote update? | 23:12 |
| tommyvyo_ → tommyvyo | 23:13 |
|
frogonwheels
| mikkelb: that's a forced fast-forwarding of the branch. Dangerous ina script i'd a thought. | 23:13 |
|
mikkelb
| canton7: heres what im working on though: https://gist.github.com/2997336 | 23:13 |
|
frogonwheels
| mikkelb: but fine enough if you're not doing any changes | 23:14 |
|
mikkelb
| frogonwheels: i remember having some issues with repos that wouldnt git remote pull even though i didnt touch them, but that would git remote pull after running git reset --hard @{u}. either way thought i thought a command like that would come *before* the git remote pull.. | 23:14 |
|
| yup, no changes, i keep my own repos elsewhere so.. this collection is all other people's stuff.. | 23:15 |
|
frogonwheels
| mikkelb: well that's a remote update, not a pull. | 23:15 |
|
mikkelb
| sorry remote update | 23:15 |
|
| (typo) | 23:15 |
|
frogonwheels
| mikkelb: !pull | 23:15 |
|
gitinfo
| mikkelb: pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/ | 23:15 |
|
frogonwheels
| mikkelb: a remote-update is more a fetch i believe | 23:16 |
| ← simesy left | 23:16 |
|
mikkelb
| frogonwheels: for a script like https://gist.github.com/2997336 would pull be more suited? | 23:17 |
|
| frogonwheels: so like git remote update doesn't actually update the repo, just stores the updates elsewhere is that it? | 23:19 |
| ← avpx left | 23:19 |
| ← Targen left | 23:19 |
|
mikkelb
| gonna read that doc tomorrow morning, am super tired right now | 23:19 |
| ← apok left | 23:21 |
| → apok joined | 23:21 |
|
frogonwheels
| mikkelb: it updates refs/remotes/remotename/branchname | 23:21 |
|
| mikkelb: ie the remote tracking branch | 23:22 |
|
mikkelb
| frogonwheels: sorry im not familiar with this terminology | 23:22 |
| ← theCole left | 23:22 |
|
mikkelb
| frogonwheels: will my local clones (i.e. their files and folders) be updatedwith a git remote update? | 23:23 |
| → n123 joined | 23:23 |
|
frogonwheels
| mikkelb: ok - do a google tomorrow when you're awake ;) | 23:23 |
|
| mikkelb: no. no files will be update. | 23:23 |
|
| d | 23:23 |
|
mikkelb
| hehe will do | 23:23 |
|
| what? no shit? | 23:23 |
| → basicallyu joined | 23:23 |
|
frogonwheels
| mikkelb: it updates the .git repo with the new stuff | 23:23 |
|
mikkelb
| oh i see i see | 23:23 |
| ← joshteam left | 23:24 |
|
frogonwheels
| the reset --hard @{u} is what makes the checked out branch match the remote branch | 23:24 |
|
| the remote tracking branch | 23:24 |
|
mikkelb
| oh like that | 23:24 |
| ← teknopaul left | 23:24 |
| ← gusnan left | 23:24 |
|
frogonwheels
| here @{u} stands for the remote tracking branch of the currently checked out branch | 23:24 |
|
mikkelb
| now i understand | 23:24 |
| gitinfo set mode: +v | 23:24 |
|
basicallyu
| hey guys, back, my internet died, meanwhile i checked and noticed that if I checkout a specific commit and then switch back to master i lose the assume-unchanged flag | 23:24 |
| ← z0a left | 23:24 |
|
frogonwheels
| basicallyu: I'm not quite shure what you are doing, but have you considdered using sparse checkout? | 23:25 |
|
basicallyu
| no idea what that is, but what I'm trying to do is | 23:25 |
|
cmn
| using assume-unchanged means that you can forget anything behaving sanely | 23:25 |
|
frogonwheels
| basicallyu: you can use sparse-checkout to restrict certain files from being noticed by git | 23:25 |
|
basicallyu
| have a default .classpath file from the repo on clone, and then totally avoid commit -a for ever staging it again unless somehow forcing it | 23:26 |
| → w09x joined | 23:26 |
| ← dr_lepper left | 23:26 |
|
basicallyu
| frogonwheels: ok can you man the page for me? :) | 23:26 |
|
frogonwheels
| basicallyu: !sparse ? | 23:26 |
|
basicallyu
| man sparsecheckout | 23:26 |
|
frogonwheels
| b* | 23:26 |
|
basicallyu
| !sparse | 23:26 |
|
frogonwheels
| basicallyu: nah. wait a sec. | 23:26 |
| ← etcetera left | 23:26 |
|
basicallyu
| :) | 23:26 |
|
frogonwheels
| basicallyu: man git-read-tree | 23:27 |
|
gitinfo
| basicallyu: the git-read-tree manpage is available at http://git-scm.com/docs/git-read-tree.html | 23:27 |
| → gavin_huang joined | 23:27 |
|
basicallyu
| cool | 23:27 |
| → etcetera joined | 23:28 |
| ← dr_diamond left | 23:28 |
| → Syzygy__ joined | 23:28 |
| → angelsl joined | 23:28 |
| ← dcarper left | 23:29 |
|
frogonwheels
| basicallyu: !sparse | 23:30 |
|
gitinfo
| basicallyu: [!sparse_checkout] Sparse checkout can be used to restrict which files/folders are updated with all checkout and status operations. It cannot change the tree the checkout is rooted from. See man git-read-tree | 23:30 |
| ← psoo left | 23:30 |
|
basicallyu
| that means i could exclude certain files from git commit -a ? | 23:31 |
|
| i see that by having a list I could put in it !.classpath | 23:31 |
|
| in that file $GIT_DIR/info/sparse-checkout | 23:32 |
| ← Lord_DeathMatch left | 23:33 |
| ← thornofmight left | 23:37 |
|
frogonwheels
| basicallyu: yep. don't forget you need to enable sparse-checkout.. | 23:38 |
|
| core.sparseCheckout i | 23:38 |
| → erasmospunk joined | 23:39 |
| → w09x_ joined | 23:40 |
| ← w09x left | 23:40 |
| → Zenith77 joined | 23:41 |
| ← ketas left | 23:41 |
| ← basicallyu left | 23:42 |
| ← kerrick left | 23:42 |
| ← kahmalo left | 23:42 |
| ← argoneus left | 23:43 |
| ← etcetera left | 23:45 |
| → vitor-br joined | 23:46 |
| ← lledet left | 23:47 |
| → basicallyu joined | 23:48 |
| ← erasmospunk left | 23:48 |
| → dachew joined | 23:48 |
| ← eedeep left | 23:48 |
| ← HyperNerdV2 left | 23:49 |
| ← dachew left | 23:49 |
| gitinfo set mode: +v | 23:49 |
|
basicallyu
| my inet failed again :) is it possible to have a file on the repo which is untracked but would exist in workdir after you clone the repo ? | 23:49 |
|
canton7
| basicallyu, not really... have you read !config_files | 23:49 |
|
gitinfo
| basicallyu: [!configfiles] the recommended way is to change your application so that you can (perhaps optionally) store site-specific configuration/data in separate files, then keep those files out of version control. Still, see https://gist.github.com/1423106 for ways people have worked around the problem. | 23:49 |
| → dachew joined | 23:51 |
| → etcetera joined | 23:52 |
|
basicallyu
| thanks canton7 that is quite relevant to what i need | 23:54 |
| → Sebo joined | 23:56 |
|
mikkelb
| So hey, anybody know how I'd pull this off? | 23:57 |
|
| # Make sure repo needs updating | 23:57 |
|
| # | 23:57 |
|
| if git ls-remote ???; then | 23:57 |
| → eletuchy joined | 23:57 |
| ← dabd left | 23:58 |