| 2012-10-03 |
| ← daniel_- left | 00:00 |
| ← Vile left | 00:00 |
| ← gtrak left | 00:01 |
| → Vile joined | 00:01 |
| ← dogarrhea2 left | 00:02 |
| → spaceonline joined | 00:02 |
| → skorgon joined | 00:03 |
| → jperry2_ joined | 00:04 |
| ← kvanderw left | 00:06 |
| → cybersphinx joined | 00:06 |
| ← nelse_ left | 00:08 |
| ← jperry2_ left | 00:09 |
| → davidban_ joined | 00:09 |
| ← the_cybersphinx left | 00:10 |
| ← aircan left | 00:10 |
| ← donri left | 00:12 |
| ← Hasbro left | 00:14 |
| → JoeQuery joined | 00:14 |
| → Eridius_ joined | 00:18 |
| ← jesseFromYVR left | 00:18 |
|
CareBear\
| retro|cz : that does not make any sense. | 00:20 |
| ← jokajak left | 00:20 |
|
retro|cz
| CareBear\, why? | 00:20 |
|
| That format looks better for me. | 00:20 |
|
CareBear\
| retro|cz : a non-git diff does not have any git information so you might as well apply it to your workdir using patch | 00:20 |
|
| what format? | 00:20 |
|
retro|cz
| I'm diffing two outputs of similar files. | 00:20 |
| → jperry2_ joined | 00:20 |
|
milki
| retro|cz: you probably just want to know what the default diff flags git uses | 00:20 |
|
CareBear\
| and you want to know how to make diff output unified diffs? | 00:21 |
| → jokajak` joined | 00:21 |
|
retro|cz
| milki, probably | 00:21 |
|
CareBear\
| try -u | 00:21 |
|
| milki always uses -rub -.- | 00:21 |
| ← Eridius left | 00:21 |
| → oxidative joined | 00:21 |
|
retro|cz
| CareBear\, ok, give me a sec | 00:21 |
| ← ikolev left | 00:22 |
| ← Bombe left | 00:23 |
| ← les_sylvains left | 00:23 |
| → maxandersen1 joined | 00:24 |
| ← TeckniX_AFK left | 00:24 |
|
CareBear\
| three minutes later | 00:24 |
|
milki
| LOL | 00:24 |
| ← simesy_work left | 00:24 |
|
retro|cz
| CareBear\, :-* | 00:25 |
| → simesy_work joined | 00:25 |
|
retro|cz
| I'm playing poker, sry :( | 00:25 |
|
milki
| wat | 00:25 |
| ← simesy_work left | 00:25 |
| → simesy_work joined | 00:25 |
|
retro|cz
| -u is what I was looking for | 00:25 |
|
milki
| tis called a unified diff | 00:26 |
|
retro|cz
| milki, and -rub is much better | 00:26 |
|
| ok, thanks | 00:26 |
| ← cakehero left | 00:26 |
| ← breck left | 00:26 |
|
retro|cz
| thank you CareBear\ and milki | 00:27 |
| ← davidban_ left | 00:27 |
| ← _Vi left | 00:27 |
| → cakehero joined | 00:27 |
| ← maxandersen left | 00:27 |
| → _Vi joined | 00:28 |
| → Bombe joined | 00:29 |
| → breck joined | 00:29 |
| → ISF joined | 00:33 |
| ← rakm left | 00:33 |
| ← cheriv left | 00:33 |
| ← dpk left | 00:34 |
| ← kenperkins left | 00:35 |
| ← oxidative left | 00:35 |
| → macabre joined | 00:37 |
| ← JoeQuery left | 00:38 |
| ← jdunck left | 00:38 |
| ← msmithng left | 00:39 |
| → msmithng joined | 00:39 |
| ← msmithng left | 00:39 |
| → legumbre_ joined | 00:40 |
| → Hasbro joined | 00:42 |
| → xiangfu joined | 00:43 |
| ← hyperair left | 00:44 |
| ← spaceonline left | 00:44 |
| → Milossh joined | 00:44 |
| ← skorgon left | 00:45 |
| → Bosox20051 joined | 00:46 |
| ← dsirijus left | 00:48 |
| ← Eridius_ left | 00:49 |
| ← madsy left | 00:49 |
| ← gavin_huang left | 00:49 |
| → mdpatrick joined | 00:50 |
| ← metcalfc left | 00:50 |
| ← ISF left | 00:52 |
| → tinti joined | 00:53 |
| ← cyphase left | 00:54 |
| ← hwrd|work left | 00:54 |
| ← breck left | 00:55 |
| ← diegoviola left | 00:56 |
| → Eridius joined | 00:57 |
| ← Bosox20051 left | 00:57 |
| ← Eridius left | 00:57 |
| ← ehsan left | 00:57 |
| → Eridius joined | 00:58 |
| → cyphase joined | 00:58 |
| → boombatower joined | 01:00 |
| → tmcmahon joined | 01:01 |
| ← pheaver left | 01:02 |
| → flippo joined | 01:03 |
| → goshawk joined | 01:04 |
| ← pdtpatrick left | 01:06 |
| ← legumbre_ left | 01:06 |
| ← reuf left | 01:07 |
| ← jcao219 left | 01:08 |
| ← boombatower left | 01:09 |
| rohan32|afk → rohan32 | 01:11 |
| → macrover joined | 01:12 |
| ← Mocramis left | 01:13 |
| → Mocramis joined | 01:14 |
| ← isomorphic left | 01:16 |
| → intripoon joined | 01:16 |
| → isomorphic joined | 01:18 |
| ← etcetera left | 01:18 |
| ← Hasbro left | 01:19 |
| ← Lgb left | 01:20 |
| ← intripoon_ left | 01:20 |
| ← mmc1 left | 01:20 |
| → hyperair joined | 01:21 |
| ← antix_ left | 01:21 |
| → Lgb joined | 01:21 |
| → antix_ joined | 01:22 |
| ← Milossh left | 01:24 |
| → Milossh joined | 01:25 |
| → kvanderw joined | 01:25 |
| ← macrover left | 01:26 |
| ← _Vi left | 01:27 |
| → Vampire0_ joined | 01:28 |
| ← DancingBear left | 01:28 |
| → _Vi joined | 01:28 |
| → fedesilva joined | 01:29 |
| ← kvanderw left | 01:31 |
| ← Vampire0 left | 01:31 |
| → Targen joined | 01:34 |
| → WillMarshall joined | 01:36 |
| ← tinti left | 01:37 |
| ← itatitat left | 01:38 |
| ← Shadeness left | 01:38 |
| ← goshawk left | 01:42 |
| ← takus left | 01:43 |
| → takus joined | 01:44 |
| → asteve joined | 01:46 |
| ← asteve left | 01:46 |
| → asteve joined | 01:46 |
| → pheaver joined | 01:46 |
| ← Akufen left | 01:46 |
| ← fedesilva left | 01:47 |
| → fedesilva joined | 01:47 |
| → steini joined | 01:49 |
| → tinti joined | 01:50 |
| → kukks joined | 01:51 |
| ← kukks left | 01:51 |
| → kukks joined | 01:51 |
| → ISF joined | 01:53 |
| → hwrd|work joined | 01:53 |
| → jalama joined | 01:54 |
| ← hwrd|work left | 01:54 |
| ← Moussekateer left | 01:54 |
| → reshtnk7 joined | 01:55 |
| → thiago joined | 01:56 |
| → les_sylvains joined | 01:57 |
| ← Eridius left | 01:57 |
| ← tinti left | 01:58 |
| → jonathan__ joined | 01:59 |
| ← pheaver left | 02:03 |
| → metcalfc joined | 02:07 |
| → jcao219 joined | 02:08 |
| ← cakehero left | 02:08 |
| ← jonathan__ left | 02:09 |
| ← glennpratt left | 02:10 |
| → cakehero joined | 02:11 |
| → Eridius joined | 02:11 |
| → Eridius_ joined | 02:11 |
| ← tmcmahon left | 02:12 |
| → tchan joined | 02:13 |
| → intripoon_ joined | 02:13 |
| ← oogatta left | 02:14 |
| ← tavisto left | 02:14 |
| ← bartek left | 02:15 |
| ← intripoon left | 02:16 |
| → adamben joined | 02:16 |
| ← Eridius_ left | 02:17 |
| ← SkAzZ1 left | 02:18 |
| → ehsan joined | 02:18 |
| ← funnyfingers left | 02:19 |
| → zastern joined | 02:19 |
| ← steini left | 02:21 |
| → sponkles joined | 02:22 |
| → apok_ joined | 02:22 |
| → Turicas joined | 02:23 |
| → oogatta joined | 02:24 |
| → pheaver joined | 02:24 |
| ← jalama left | 02:25 |
| ← apok left | 02:25 |
| apok_ → apok | 02:25 |
| ← look2thelight left | 02:28 |
| ← _Vi left | 02:28 |
| → _Vi joined | 02:29 |
| ← kpreid left | 02:30 |
| → kpreid joined | 02:30 |
| ← beneggett left | 02:30 |
| → jalama joined | 02:30 |
| ← jalama left | 02:31 |
| → kenperkins joined | 02:32 |
| ← cakehero left | 02:33 |
| ← Davey left | 02:34 |
| ← mlb- left | 02:34 |
| ← ehsan left | 02:35 |
| → mlb- joined | 02:35 |
| → ehsan joined | 02:35 |
| ← felipec left | 02:37 |
| ← kenperkins left | 02:38 |
| ← les_sylvains left | 02:40 |
| → williamherry joined | 02:42 |
| ← brentratliff left | 02:44 |
|
williamherry
| hi, I am reading a book about git, it says that within a git repo, directory that is gited(git init...) will be add as submodule, but what I see is just as normal directoy, can any one know this things? | 02:44 |
| ← orafu left | 02:45 |
| ← zastern left | 02:46 |
| → orafu joined | 02:47 |
|
rking
| williamherry: I don't follow. | 02:48 |
| ← Targen left | 02:48 |
|
rking
| When you "git init" it creates .git/ as a directory with a bunch of stuff in it. Not sure where submodules would come into play on this one. | 02:48 |
|
williamherry
| rking: with in a git directory, mkdir test, cd test, git init, git commit --allow-empty init, cd .., git add test | 02:49 |
| → DoNotDisturb joined | 02:49 |
| ← DoNotDisturb left | 02:49 |
| → DoNotDisturb joined | 02:49 |
| ← DoNotDisturb left | 02:49 |
| → DoNotDisturb joined | 02:49 |
| ← DoNotDisturb left | 02:49 |
| → DoNotDisturb joined | 02:49 |
| ← DoNotDisturb left | 02:49 |
| ← Samual left | 02:50 |
|
williamherry
| this will only add test directory, | 02:50 |
| → Samual joined | 02:50 |
| ← Samual left | 02:50 |
| → Samual joined | 02:50 |
| ← Samual left | 02:50 |
|
williamherry
| any file within test will not add | 02:50 |
|
rking
| Yeah, I don't think that's typical | 02:50 |
| → Samual joined | 02:50 |
| ← Samual left | 02:50 |
| → Samual joined | 02:50 |
| ← Samual left | 02:50 |
| → Samual joined | 02:50 |
| ← Samual left | 02:50 |
| → Samual joined | 02:50 |
| → assem joined | 02:50 |
| ← Samual left | 02:50 |
| → Samual joined | 02:50 |
| ← Samual left | 02:50 |
|
rking
| Not for me anyway; I'm used to submodules living elsewhere and being referenced via "git submodule add <url>" | 02:50 |
| → Samual joined | 02:50 |
| ← Samual left | 02:50 |
| → Samual joined | 02:50 |
| ← Samual left | 02:50 |
| → P1RATEZ joined | 02:51 |
| → Samual joined | 02:51 |
| ← Samual left | 02:51 |
| → Samual joined | 02:51 |
| ← Samual left | 02:51 |
| → Samual joined | 02:51 |
| ← Samual left | 02:51 |
| → Samual joined | 02:51 |
|
williamherry
| rking: like this http://pastie.org/4900418 | 02:52 |
| → DoNotDisturb joined | 02:52 |
| ← DoNotDisturb left | 02:52 |
| → DoNotDisturb joined | 02:52 |
| ← DoNotDisturb left | 02:52 |
| → DoNotDisturb joined | 02:53 |
| ← DoNotDisturb left | 02:53 |
| → DoNotDisturb joined | 02:53 |
| ← DoNotDisturb left | 02:53 |
| → DoNotDisturb joined | 02:53 |
| ← DoNotDisturb left | 02:53 |
| → DoNotDisturb joined | 02:53 |
| ← DoNotDisturb left | 02:53 |
| → DoNotDisturb joined | 02:53 |
|
rking
| williamherry: Are you opposed to creating the submodule somewhere else first? | 02:54 |
| ← jperry2_ left | 02:54 |
| ← Synthead left | 02:55 |
| ← kpreid left | 02:55 |
|
williamherry
| rking: I think I got this, `git add others` and `git add others/` are diff, that's what I confuse, thanks | 02:55 |
| → beneggett joined | 02:55 |
|
rking
| Aha, wow. | 02:55 |
| ← Samual left | 02:55 |
| → kpreid joined | 02:55 |
| → Synthead joined | 02:56 |
|
assem
| git clone'ing a large repo (emacs and efl) through a proxy finishes receiving objects then does fatal: The remote end hung up unexpectedly, early EOF, and index-pack failed. any hints? | 02:59 |
| ← P1RATEZ left | 02:59 |
|
assem
| from google'ing i tried git config --global http.postBuffer 3524288000 (large # chosen by me) but same result | 02:59 |
|
EugeneKay
| Don't use HTTPS | 03:00 |
|
| !ssh | 03:00 |
|
gitinfo
| Please use SSH to talk to remote repos. http:// and git:// are completely unsecured. You can try to do "smart" https://, but it is troublesome to configure(web server/cgi authentication mechanisms, ACLs, etc) and use(client CA certificates, firewalling, protocol inefficiency) | 03:00 |
| ← ajw0100 left | 03:00 |
|
assem
| EugeneKay: i have no choice at work | 03:01 |
| → noyb joined | 03:02 |
|
CareBear\
| change work | 03:02 |
|
assem
| *sadness* | 03:03 |
|
CareBear\
| seems another good reason to change work! :) | 03:03 |
|
assem
| i just thought it seemed fishy that it finishes receiving all objs and blows up (or if not all objs, then like 90%+) | 03:04 |
|
| is there any way to do an incremental clone? pick up where it left off? | 03:04 |
| → cakehero joined | 03:05 |
| ← beneggett left | 03:05 |
| ← Eridius left | 03:06 |
| ← guampa left | 03:06 |
| ← jschall_ left | 03:08 |
| ← linguini left | 03:10 |
| → beneggett joined | 03:10 |
| ← rchavik left | 03:11 |
| → Raging_Hog joined | 03:11 |
|
EugeneKay
| !resume | 03:11 |
|
gitinfo
| Git does not yet support resuming, torrenting, or parallel fetching of clones or other network traffic. You can make a single file out of a repo using 'git bundle' then use normal resumable download methods to get that file. See https://bundler.caurea.org. Also !gitolite can be told to maintain and send bundles using rsync; see https://github.com/sitaramc/gitolite/blob/master/src/commands/rsync | 03:11 |
| → ReekenX joined | 03:12 |
| ← cybersphinx left | 03:12 |
| → guampa joined | 03:12 |
| → Eridius joined | 03:14 |
| → jesseFromYVR joined | 03:15 |
| rohan32 → rohan32|sleep | 03:24 |
| ← rohan32|sleep left | 03:25 |
| ← fedesilva left | 03:27 |
| ← _Vi left | 03:28 |
| → _Vi joined | 03:29 |
| → dv310p3r joined | 03:30 |
| ← witul left | 03:30 |
| ← juvenal left | 03:31 |
| → juvenal joined | 03:33 |
| → rchavik joined | 03:34 |
| → jschall joined | 03:34 |
| ← rchavik left | 03:34 |
| → rchavik joined | 03:34 |
| ← LucasTizma left | 03:35 |
| → BiggFREE joined | 03:36 |
| → superthebobfredm joined | 03:36 |
| ← BiggFREE left | 03:36 |
| → BiggFREE joined | 03:37 |
| ← jschall left | 03:38 |
| ← BSaboia left | 03:40 |
| ← asakura left | 03:43 |
| → asakura joined | 03:45 |
| ← apok left | 03:45 |
| ← maxandersen1 left | 03:46 |
| ← frogonwheels left | 03:46 |
| → maxandersen joined | 03:47 |
| ← maxandersen left | 03:47 |
| → maxandersen joined | 03:47 |
| → maxandersen1 joined | 03:47 |
| ← maxandersen left | 03:47 |
| → irqq joined | 03:48 |
| ← kcj left | 03:49 |
| ← fletch_ left | 03:49 |
| → kcj joined | 03:50 |
| ← Raging_Hog left | 03:52 |
| → jschall joined | 03:52 |
| → yoklov joined | 03:53 |
| → jdunck joined | 03:54 |
| → fedesilva joined | 03:54 |
| ← jwmann left | 03:56 |
| → OOPMan joined | 03:56 |
| DoNotDisturb → Samual | 03:56 |
| → quazimodo joined | 03:56 |
| → aantix joined | 04:00 |
| → jwmann joined | 04:01 |
| ← banghouse left | 04:01 |
| ← sponkles left | 04:02 |
| ← OOPMan left | 04:02 |
| → diegoviola joined | 04:04 |
| ← superthebobfredm left | 04:04 |
| ← notfunk left | 04:04 |
| ← armenianeagle left | 04:05 |
| → notfunk joined | 04:05 |
| ← pheaver left | 04:08 |
| → pheaver joined | 04:09 |
| ← pheaver left | 04:10 |
| ← irqq left | 04:14 |
| ← xiangfu left | 04:18 |
| → hwrd|work joined | 04:19 |
| → OOPMan joined | 04:19 |
| ← _huoxito left | 04:21 |
| → pretty_function joined | 04:21 |
| → sangi joined | 04:22 |
| → CannedCorn joined | 04:24 |
| ← todd_dsm left | 04:25 |
| ← beneggett left | 04:27 |
| ← asteve left | 04:27 |
| ← _Vi left | 04:28 |
| → _Vi joined | 04:29 |
| ← adamben left | 04:29 |
| ← jcao219 left | 04:31 |
| → MestreLion joined | 04:31 |
| → xiangfu joined | 04:31 |
|
MestreLion
| is there any way to configure git add (or git commit, or both) to ignore commit hooks for a particular set of files? | 04:32 |
| ← juvenal left | 04:32 |
| → beneggett joined | 04:33 |
|
MestreLion
| use case: i'm setting up a git for a debian source package... and I don't want my hook to fix whitespaces and etc from upstream source code, only for my edited files | 04:35 |
| ← gregm_ left | 04:36 |
| ← kukks left | 04:37 |
| ← tomaw left | 04:37 |
| → todd_dsm joined | 04:38 |
| ChanServ set mode: +v | 04:40 |
|
EugeneKay
| MestreLion - your hook would have to do that. | 04:40 |
|
| It should be a simple matter of abusing diff to find out the changed files | 04:41 |
| → frogonwheels joined | 04:41 |
|
MestreLion
| I could customize my hook to apply changes only to debian/* files | 04:41 |
| ← jesseFromYVR left | 04:41 |
|
MestreLion
| i guess | 04:41 |
| → intransit joined | 04:44 |
| ← CannedCorn left | 04:47 |
| ← runvnc left | 04:48 |
|
MestreLion
| EugeneKay: the pre-commit hook relevant snippet starts with git diff-index --check --cached "$against" -- | ... | 04:50 |
|
EugeneKay
| Don't make me bash-fu tonight | 04:50 |
|
MestreLion
| so if I change that to git diff-index --check --cached "$against" -- Makefile debian/* | , would it get all files from debian *and its subdirs* ? | 04:50 |
| → jesseFromYVR joined | 04:50 |
|
EugeneKay
| !tryit | 04:51 |
|
gitinfo
| [!tias] 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. | 04:51 |
|
MestreLion
| ok, I promise this won't be bash-fu... I just don't know how git handles dirs when passed as parameters | 04:51 |
|
EugeneKay
| It considers all files that start with that path | 04:51 |
|
MestreLion
| nice | 04:52 |
|
| so dropping the * and using only debian/ might be all I need... thanks :) | 04:52 |
|
EugeneKay
| man gitignore has a section on pattern atching as done by git | 04:52 |
|
gitinfo
| the gitignore manpage is available at http://git-scm.com/docs/gitignore.html | 04:52 |
| ← wonder95 left | 04:52 |
|
EugeneKay
| debian/* would be globbed by your shell | 04:52 |
|
MestreLion
| yeah, that's why i think i need to drop the * | 04:53 |
|
| so just debian/ is enough for git to recurse all files and subdirs inside? | 04:53 |
|
EugeneKay
| Yup | 04:54 |
|
MestreLion
| thanks EugeneKay | 04:54 |
|
EugeneKay
| Though git doesn't care about dirs at all | 04:54 |
|
MestreLion
| I know | 04:54 |
| → StuckMojo joined | 04:55 |
|
MestreLion
| I was considering using a gitignore... but I may eventually change the source code.. I just don't want my pre-commit hook to "auto-fix" the upstream files, just my own work | 04:55 |
|
StuckMojo
| is there something like git-reset --hard that will even get rid of untracked files? | 04:55 |
|
| i.e. get me back to pristine working dir state? | 04:56 |
|
MestreLion
| StuckMojo: rm -rf && git checkout ::P | 04:56 |
|
EugeneKay
| man git-clean | 04:56 |
|
gitinfo
| the git-clean manpage is available at http://git-scm.com/docs/git-clean.html | 04:56 |
|
MestreLion
| wow, there IS a git-clean now??? this is new stuff for me :D | 04:56 |
|
StuckMojo
| ah thanks | 04:56 |
|
| i knew there had to be | 04:56 |
|
EugeneKay
| 'git reset --hard HEAD; git clean -fdx' should do the jbo | 04:57 |
|
MestreLion
| IIRC, it didn't until recently | 04:57 |
| ← jesseFromYVR left | 04:57 |
| ← quazimodo left | 04:58 |
| → jbub joined | 05:01 |
| ← dv310p3r left | 05:02 |
| ← macabre left | 05:05 |
| → private joined | 05:06 |
| → nickpresta joined | 05:06 |
| SeoZ-work[AWAY] → SeoZ | 05:08 |
| ← thiago left | 05:14 |
| → AMfish joined | 05:15 |
| ← simesy_work left | 05:15 |
| → shruggar joined | 05:16 |
| ← warthog9 left | 05:16 |
| ← Bass10 left | 05:17 |
| → simesy_work joined | 05:18 |
| → jesseFromYVR joined | 05:20 |
| ← AMfish left | 05:20 |
| ← beneggett left | 05:21 |
| ← nickpresta left | 05:26 |
| → thirdknife joined | 05:26 |
| → ehsan_ joined | 05:28 |
| ← ehsan left | 05:29 |
| ← _Vi left | 05:29 |
| → pantsman joined | 05:29 |
| ← pantsman left | 05:29 |
| → pantsman joined | 05:29 |
| → beneggett joined | 05:30 |
| → _Vi joined | 05:30 |
| → j0ran joined | 05:32 |
| → quazimodo joined | 05:32 |
| → warthog9 joined | 05:33 |
| → mrgenixus joined | 05:33 |
|
mrgenixus
| why is my 'GIT_WORK_TREE' enviroment variable set? and can I just unset it? | 05:34 |
| ← shruggar left | 05:34 |
| → imachuchu joined | 05:34 |
| → patrick85 joined | 05:36 |
|
_ikke_
| mrgenixus: Well, I don't know why it's set | 05:36 |
|
| mrgenixus: But you can unset it | 05:36 |
| → dc5ala joined | 05:37 |
| ← jschall left | 05:37 |
| → Taichou joined | 05:39 |
| → jschall joined | 05:40 |
|
mrgenixus
| ok, wierd stuff | 05:40 |
|
| that seems to have fixed me up | 05:40 |
| ← mrgenixus left | 05:40 |
| ← smw left | 05:41 |
| → skul joined | 05:45 |
| → jceb joined | 05:45 |
| ← akiress left | 05:46 |
| ← aristidesfl left | 05:47 |
| → fisted_ joined | 05:48 |
| → steveoliver joined | 05:50 |
| ← assem left | 05:50 |
| ← fisted left | 05:51 |
| → beautifulmind joined | 05:51 |
| ← warthog9 left | 05:53 |
| → smw joined | 05:54 |
| ← AlbireoX`Laptop left | 05:54 |
| → devsharpen joined | 05:54 |
| ← cakehero left | 05:57 |
| → ThomasLocke joined | 05:57 |
| ← steveoliver left | 05:57 |
| → AdrienBrault joined | 05:58 |
| ← hakunin left | 05:58 |
| → hakunin joined | 05:59 |
| ← mgorbach left | 06:00 |
| → cgs_bob joined | 06:00 |
| → cakehero joined | 06:00 |
| → maleknet joined | 06:00 |
| ← beneggett left | 06:00 |
| → mgorbach joined | 06:01 |
| → davidban_ joined | 06:01 |
|
cgs_bob
| hello all. git newbie here. how can I find the last revision for a file? currently master no longer has this file. | 06:02 |
|
imachuchu
| cgs_bob: so what you are looking for is the most recent commit that contains the file, correct? | 06:02 |
|
cgs_bob
| imachuchu: that's right | 06:03 |
| ← AdrienBrault left | 06:03 |
| → soee joined | 06:04 |
| ← hakunin left | 06:04 |
| → warthog9 joined | 06:07 |
| ← flippo left | 06:10 |
| → arturaz joined | 06:11 |
|
_ikke_
| git log -- path/to/file | 06:11 |
| → koltroll joined | 06:12 |
| ← chaiz left | 06:12 |
| ← jbub left | 06:15 |
| ← beautifulmind left | 06:17 |
| → marthinal joined | 06:17 |
| ← Sonderblade left | 06:19 |
| ← yoklov left | 06:21 |
| → shruggar joined | 06:22 |
|
imachuchu
| cgs_bob: did _ikke_'s suggestion work for you (sorry, got busy)? | 06:22 |
| ← StuckMojo left | 06:23 |
| → mikepack joined | 06:23 |
|
cgs_bob
| imachuchu: I just tried _ikke_ suggestion. worked like a charm | 06:25 |
|
| _ikke_: thanks a bunch | 06:25 |
| → papegaaij joined | 06:25 |
| ← const left | 06:25 |
|
cgs_bob
| cya later | 06:26 |
| ← cgs_bob left | 06:26 |
| → dpino joined | 06:27 |
| ← cakehero left | 06:27 |
| → friskd joined | 06:27 |
| ← unreal left | 06:29 |
| ← _Vi left | 06:29 |
| ← noyb left | 06:30 |
| → _Vi joined | 06:31 |
| ← aantix left | 06:31 |
| → drougge joined | 06:32 |
| → unreal joined | 06:32 |
| → apok joined | 06:34 |
| → jdmax joined | 06:37 |
| ← jdmax left | 06:37 |
| → jdmax joined | 06:37 |
| ← shruggar left | 06:37 |
| → thierryp joined | 06:38 |
| → senny joined | 06:39 |
| → subhojit777 joined | 06:39 |
| ← WillMarshall left | 06:41 |
| ← maleknet left | 06:42 |
| gitinfo set mode: +v | 06:42 |
|
subhojit777
| How the commit id is generated? Actually, I want to know whether the commit id is always unique? | 06:42 |
|
Sajbar
| it's always unique. | 06:44 |
| → flijten joined | 06:44 |
|
frogonwheels
| subhojit777: it uses the sha1 algorithm. | 06:44 |
|
| subhojit777: the chances of it not being unique are vanishingly small. | 06:45 |
|
subhojit777
| Where the algorithm is applied? | 06:45 |
|
frogonwheels
| subhojit777: on the contens of the commit object | 06:47 |
|
subhojit777
| frogonwheels, right.. thanks | 06:47 |
| → harshpb joined | 06:48 |
| → shruggar joined | 06:48 |
| → raatiniemi joined | 06:48 |
| → maleknet joined | 06:49 |
| → aisbaa joined | 06:49 |
| ← metcalfc left | 06:50 |
| → WillMarshall joined | 06:51 |
| ← arturaz left | 06:54 |
| ← WillMarshall left | 06:54 |
| ← fedesilva left | 06:54 |
| ← shruggar left | 06:55 |
| ← project2501b left | 06:55 |
| → soiledpants joined | 06:56 |
| → replore_ joined | 06:57 |
| → caseymcg joined | 06:58 |
| → robustus joined | 06:59 |
| → shruggar joined | 06:59 |
| ← ph^ left | 07:00 |
| ← subhojit777 left | 07:00 |
| ← OOPMan left | 07:00 |
| → Sky[x] joined | 07:00 |
| → project2501b joined | 07:01 |
| tomaw_ → tomaw | 07:05 |
| → suy_ joined | 07:06 |
| → adamben joined | 07:06 |
| ← suy_ left | 07:06 |
| → giallu joined | 07:07 |
| ← giallu left | 07:07 |
| → giallu joined | 07:07 |
| ← shruggar left | 07:07 |
| → suy joined | 07:07 |
| → afuentes joined | 07:10 |
| → angelsl joined | 07:11 |
| ← bigkm left | 07:13 |
| ← hwrd|work left | 07:13 |
| → osxorgate joined | 07:14 |
| → shruggar joined | 07:17 |
|
_ikke_
| see man git hash-object | 07:18 |
|
gitinfo
| the git-hash-object manpage is available at http://git-scm.com/docs/git-hash-object.html | 07:18 |
| ← shruggar left | 07:18 |
| → subhojit777 joined | 07:18 |
| → dhruvasagar joined | 07:19 |
| ← Lgb left | 07:20 |
| ← maleknet left | 07:21 |
| → Lgb joined | 07:22 |
| → witul joined | 07:22 |
| ← ReekenX left | 07:22 |
| ← acrocity left | 07:24 |
| → maleknet joined | 07:25 |
| → svetlyak40wt joined | 07:26 |
| → acrocity joined | 07:26 |
| ← jdmax left | 07:26 |
| ← mikepack left | 07:29 |
| ← Taichou left | 07:30 |
| ← _Vi left | 07:30 |
| → mmc1 joined | 07:30 |
| → BadDesign joined | 07:30 |
| ← BadDesign left | 07:30 |
| → BadDesign joined | 07:30 |
| → _Vi joined | 07:31 |
| ← friskd left | 07:33 |
| ← marthinal left | 07:34 |
| → ReekenX joined | 07:34 |
| → LucasTizma joined | 07:34 |
| ← osxorgate left | 07:36 |
| → xxc_michael joined | 07:36 |
| → maxagaz joined | 07:36 |
|
maxagaz
| hi | 07:36 |
| → osxorgate joined | 07:36 |
|
maxagaz
| my friend removed some files in his project and did "git add . / git commit -a / git push", but I still get these files | 07:37 |
| ← Eridius left | 07:37 |
| ← torbjorn left | 07:37 |
|
maxagaz
| after doing "git pull" | 07:37 |
| → Eridius joined | 07:37 |
|
maxagaz
| is there some cleaning to do somewhere ? | 07:38 |
| ← caseymcg left | 07:38 |
| → dangerousdave joined | 07:38 |
|
_ikke_
| maxagaz: git add . afaik only adds modified files, it doesn't remove deleted files | 07:39 |
|
| modified / new | 07:39 |
| ← guampa left | 07:39 |
| ← derrekito left | 07:41 |
|
esc
| use more bandwidth | 07:42 |
| → tapout joined | 07:43 |
| → marhaban joined | 07:43 |
| ← jceb left | 07:44 |
| ← LucasTizma left | 07:44 |
| → skorgon joined | 07:44 |
|
cmn
| maxagaz: you need to tell git that you don't want the files anymore, ask status | 07:45 |
|
maxagaz
| cmn: how to tell it ? | 07:45 |
| ← Vile left | 07:45 |
|
_ikke_
| maxagaz: git status tells you | 07:46 |
| ← eletuchy left | 07:47 |
| → friskd joined | 07:47 |
| ← j0ran left | 07:47 |
| ← tapout left | 07:47 |
| → j0ran joined | 07:47 |
| → tapout joined | 07:50 |
| ← mmc1 left | 07:50 |
| ← tapout left | 07:50 |
| → tapout joined | 07:50 |
| → WillMarshall joined | 07:50 |
| → timj1 joined | 07:51 |
| ← pretty_function left | 07:51 |
| ← Learath2 left | 07:52 |
| → exhaze joined | 07:52 |
| ← WillMarshall left | 07:53 |
| ← timj left | 07:53 |
| → Learath2 joined | 07:53 |
|
williamherry
| what git server software github use, gitosis or gitolite, or others? | 07:53 |
|
_ikke_
| williamherry: custom made | 07:54 |
|
| non open-source | 07:54 |
| → shruggar joined | 07:54 |
|
williamherry
| _ikke_: oh, thanks, why there are two git server package, which one better? | 07:55 |
|
exhaze
| there's a talk about their stack, should be easily googlable | 07:55 |
|
_ikke_
| !gitosis | 07:55 |
|
gitinfo
| gitosis is no longer maintained and supported by the author; we usually recommend gitolite instead which has much better documentation and more features: http://github.com/sitaramc/gitolite -- if you're already stuck with gitosis we'll try to help, but no promises! | 07:55 |
| → stodan joined | 07:56 |
|
williamherry
| thanks | 07:56 |
|
cmn
| they use github, hence the name | 07:56 |
| → LimeBlast joined | 07:56 |
|
cmn
| it's basically just some glue code between ssh, a mysql database and mostly-vanilla git | 07:56 |
| ← apok left | 07:58 |
| ← suy left | 07:59 |
| ← xiangfu left | 07:59 |
| → WillMarshall joined | 08:01 |
| → suy joined | 08:02 |
| ← marhaban left | 08:02 |
| ← osxorgate left | 08:04 |
| → eijk joined | 08:04 |
| → osxorgate joined | 08:04 |
| → mikecmpbll joined | 08:06 |
|
teotwaki
| that info is wrong, should "no longer maintained nor supported by the author". | 08:07 |
|
| should be* | 08:07 |
| → sebrock joined | 08:07 |
| ← pantsman left | 08:07 |
| → arvind_khadri joined | 08:07 |
| → pretty_function joined | 08:07 |
|
cmn
| being gramatically imperfect doesn't mean that the information is wrong | 08:08 |
| ← WillMarshall left | 08:12 |
|
esc
| exhaze: you have more details on that talk? | 08:12 |
| ← patrick85 left | 08:13 |
| → xiangfu joined | 08:13 |
| ← simesy_work left | 08:14 |
|
exhaze
| esc: http://zachholman.com/talk/how-to-build-a-github | 08:14 |
| → simesy_work joined | 08:15 |
|
esc
| exhaze: thanks a bunch | 08:15 |
| ← Goplat left | 08:15 |
| → Element9 joined | 08:16 |
| ← subhojit777 left | 08:19 |
| ← suy left | 08:20 |
|
| albel727 wonders, is there ever going to be a horizontal scroll in commit tree view of gitk | 08:21 |
| → Pasdefracse joined | 08:22 |
| → daniel_- joined | 08:23 |
| → shtrb joined | 08:24 |
|
shtrb
| how can I get the the last place I did git clone from ? (I did git svn clone url but lost the url) | 08:25 |
| → jargon- joined | 08:25 |
|
dr_lepper
| shtrb: look in .git/config | 08:25 |
|
shtrb
| dr_lepper, thnx | 08:25 |
| → svetlyak40wt_ joined | 08:26 |
| → Chillance joined | 08:26 |
| ← imachuchu left | 08:26 |
| → dzonder joined | 08:27 |
| ← svetlyak40wt left | 08:28 |
| → OOPMan joined | 08:28 |
| ← _Vi left | 08:30 |
| → crabmanX joined | 08:30 |
| → jkremser joined | 08:31 |
| → _Vi joined | 08:31 |
| ← LeMike1 left | 08:32 |
| → LeMike1 joined | 08:32 |
| → irqq joined | 08:32 |
| → subhojit777 joined | 08:33 |
| → psoo joined | 08:34 |
| → eletuchy joined | 08:35 |
| SeoZ → SeoZ-work[AWAY] | 08:36 |
| ← acrocity left | 08:37 |
| ← davidban_ left | 08:39 |
| → sq-one joined | 08:40 |
| ← xiangfu left | 08:41 |
| → e66 joined | 08:43 |
| → acrocity joined | 08:43 |
| → arietis joined | 08:43 |
| → mtrd`w joined | 08:44 |
| → vdedik joined | 08:44 |
| ← harshpb left | 08:47 |
| ← diegoviola left | 08:47 |
| → harshpb joined | 08:47 |
| ← jargon- left | 08:48 |
| → jargon- joined | 08:48 |
| ← MacGyver left | 08:48 |
| → Desproges joined | 08:49 |
| ← crabmanX left | 08:50 |
| → nelse_ joined | 08:50 |
|
alexander__b
| when should you use a "real tag" and when should you use a "lightweight tag"? | 08:50 |
|
| I don't see the point in signing and writing a tag msg for my use scenario, which at the moment is just to have a pointer to different release versions. | 08:50 |
|
_ikke_
| alexander__b: Well, you seem to give the answer yourself | 08:51 |
|
alexander__b
| so is just doing "git tag -a alpha-1 commithashhere" the correct way to do this? | 08:52 |
|
_ikke_
| alexander__b: Just leave out the -a | 08:52 |
|
alexander__b
| oh OK so just git tag versnr commit | 08:52 |
|
_ikke_
| alexander__b: and commit can be left out if you want to tag the current commit | 08:54 |
| ← maleknet left | 08:55 |
| ← babilen left | 08:56 |
| ← wolog left | 08:57 |
|
alexander__b
| _ikke_: yes, I got that. thanks. | 08:57 |
| → blami_ joined | 08:57 |
|
alexander__b
| unrelated: how do I checkout a file based on commit hash? I want to look at a file long since gone from a repository. | 08:58 |
| ← acrocity left | 08:58 |
| → heke80 joined | 08:58 |
| → oxidative joined | 08:58 |
| → jas4711 joined | 08:58 |
|
_ikke_
| alexander__b: git checkout <hash> -- file | 08:58 |
| → donri joined | 08:59 |
|
alexander__b
| ah! thanks | 08:59 |
| ← raatiniemi left | 08:59 |
| → marhaban joined | 08:59 |
|
heke80
| hi , I have download cakephp zip package and would like to update now with git , git://github.com/cakephp/cakephp.git , how to do it? | 09:00 |
| → acrocity joined | 09:00 |
| → MacGyver joined | 09:02 |
| ← MacGyver left | 09:02 |
| → MacGyver joined | 09:02 |
|
alexander__b
| _ikke_: uhm, how do I "untag"? | 09:03 |
| → PigeonFriend joined | 09:03 |
|
alexander__b
| _ikke_: oh found it by searching the man for "delete" instead of "remove", sorry. | 09:03 |
| ← xxc_michael left | 09:03 |
| → leo2007 joined | 09:03 |
| → xxc_michael joined | 09:03 |
| ← vdedik left | 09:03 |
| → wolog joined | 09:04 |
| ← BiggFREE left | 09:05 |
|
leo2007
| hello, in git-push.txt there is OPTIONS[[OPTIONS]], is that a typo? | 09:05 |
|
alexander__b
| _ikke_: OK, so my last thing to do now is to push the tags to origin. is git push --tags the correct thing to do? does this just make the tags available on upstream for everyone to pull? because I don't want to push any commits/changes, I only want to share these new tags. | 09:06 |
| ← fireh left | 09:06 |
| ← sq-one left | 09:07 |
| → bwidmer joined | 09:07 |
| → Vile joined | 09:08 |
| → dwijnand joined | 09:08 |
| → notVert joined | 09:09 |
| ← jesseFromYVR left | 09:09 |
|
dwijnand
| How can I make it less painful to work (diff, build commit, commit) while having some local-only changes in the working directory (to circumvent login and other local dev changes) | 09:11 |
|
FauxFaux
| !config | 09:11 |
|
gitinfo
| [!configfiles] It is recommended to store local configuration data in a file which is not tracked by git, but certain deployment scenarios(such as Heroku) may require otherwise. See https://gist.github.com/1423106 for some ideas | 09:11 |
|
_ikke_
| alexander__b: Well, it also pushes everything reachable by the taggs | 09:11 |
|
| tags | 09:11 |
| → fornext joined | 09:12 |
| ← hpa left | 09:12 |
| → berserkr joined | 09:13 |
|
dwijnand
| FauxFaux: thanks, I'll see if I find a solution for myself | 09:14 |
|
alexander__b
| _ikke_: what do you mean by reachable? the commits that are tagged? because they are long since pushed. | 09:14 |
| → the_cybersphinx joined | 09:14 |
|
_ikke_
| alexander__b: Then they don't have to be sent again of course | 09:14 |
| → btree__ joined | 09:14 |
|
alexander__b
| _ikke_: OK cool. thanks! | 09:15 |
|
| _ikke_: so now, when someone pulls, they will get the tags? also, I think github should show this as a notification somewhere, heh. | 09:16 |
| → samphippen joined | 09:16 |
| ← PigeonFriend left | 09:16 |
| → hpa joined | 09:16 |
| → PigeonFriend joined | 09:17 |
| → klj613 joined | 09:18 |
| ← btree_ left | 09:18 |
|
klj613
| how do i search for all commits (latest to oldest preferably) for the same commit message? | 09:18 |
| ← leo2007 left | 09:18 |
|
esc
| klj613: git log --oneline | grep $MESSAGE | 09:19 |
|
_ikke_
| klj613: what do you mean with the same commit message? | 09:19 |
|
esc
| is certainly one may of doing it | 09:19 |
| ← angelsl left | 09:19 |
|
_ikke_
| esc: git log has the --grep option | 09:19 |
|
esc
| then it becomes | 09:19 |
|
| git log --grep $MESSAGE | 09:19 |
|
| i suppose | 09:19 |
|
_ikke_
| But depends on what he means with the same commit message | 09:20 |
| ← ReekenX left | 09:20 |
| → leeN joined | 09:21 |
| ← psoo left | 09:21 |
| ← eletuchy left | 09:21 |
| ← marhaban left | 09:24 |
| ← unnamedwill left | 09:30 |
| → jimubao_ joined | 09:30 |
| → jimubao joined | 09:30 |
| ← _Vi left | 09:30 |
| → _Vi joined | 09:31 |
| ← Element9 left | 09:32 |
|
jimubao
| ? | 09:33 |
| → babilen joined | 09:34 |
|
_ikke_
| ?? | 09:34 |
| → und3f joined | 09:36 |
| → unnamedwill joined | 09:36 |
|
klj613
| i meant the same commit message, as i've done rebases i wanted to get list of the multiple tries ive done.. | 09:39 |
|
| does merge do a different algorithm than rebase? when it _tries_ to solve conflicts | 09:39 |
| → FrenkyNet joined | 09:40 |
|
cbreak
| klj613: kind of | 09:41 |
|
_ikke_
| klj613: There are better ways | 09:41 |
|
| klj613: git cherry looks at the patch id | 09:41 |
| ← Eridius left | 09:42 |
|
cbreak
| what does he want to do? | 09:42 |
|
_ikke_
| "i wanted to get list of the multiple tries ive done.." | 09:42 |
| ← MestreLion left | 09:43 |
|
klj613
| when i merge everything okay, when i rebase it seems to be different results (application logic error, not getting a collection from doctrine) | 09:43 |
|
cbreak
| git reflog? | 09:43 |
|
klj613
| and its not the conflicts i solve.. so must be the auto-solved conflicts. which i'd have to check it all lol | 09:43 |
|
cbreak
| what's a doctrine? | 09:43 |
|
klj613
| doctrien, ORM | 09:43 |
|
cbreak
| no idea what you are talking about | 09:43 |
| ← jdunck left | 09:43 |
|
cbreak
| normally, git rebase uses the same algorithm as merging | 09:43 |
|
| but of course, with different input | 09:43 |
|
klj613
| im doing $entity->getFriends(); type of thing and getting null. (if i use rebase). but if i use merge it works as expected. so rebase/merge doing different conflict solving algorithms i assume | 09:44 |
|
cbreak
| it's into the other direction after all, and on all individual steps | 09:44 |
|
klj613
| well. not sure whats going on then | 09:44 |
|
cbreak
| klj613: that's unrelated with git | 09:44 |
|
_ikke_
| klj613: git doesn't have any conflict resolving algorithms | 09:44 |
|
cbreak
| $entity looks like bash script or... Yuck ... php | 09:44 |
|
klj613
| cbreak, im doing a rebase, which ends up with different results than a merge | 09:44 |
|
cbreak
| or maybe perl | 09:44 |
|
klj613
| = its related to git | 09:44 |
| → marthinal joined | 09:44 |
|
_ikke_
| doctrine is php | 09:44 |
|
cbreak
| klj613: look at the results then | 09:44 |
|
| klj613: man git-bisect | 09:44 |
|
gitinfo
| klj613: the git-bisect manpage is available at http://git-scm.com/docs/git-bisect.html | 09:44 |
|
cbreak
| with rebase that should be straight forward | 09:44 |
|
klj613
| okay | 09:45 |
| → TheJH joined | 09:45 |
|
cbreak
| with git bisect, you can find the commit that introduces a bug | 09:46 |
|
| then you can look at what that commit does | 09:46 |
|
klj613
| okay thanks | 09:46 |
| → awilkins joined | 09:46 |
|
cbreak
| of course, that's not needed if you can look at the code (with a debugger or so) and see what is wrong | 09:46 |
| ← intripoon_ left | 09:46 |
| ← thirdknife left | 09:46 |
|
cbreak
| but I have no idea if php has anything advanced like a debugger | 09:46 |
|
_ikke_
| But that requires the commits to be runnable | 09:47 |
|
awilkins
| Silly question ; is there a way to clone a repository such that it is an *identical* copy, e.g. - the new repo does not have the old repo as it's origin, instead, it has all the remotes and origin of the first repo | 09:47 |
| → intripoon joined | 09:47 |
|
cbreak
| awilkins: not directly | 09:48 |
|
| you can just use rsync though | 09:48 |
|
awilkins
| This is from the POV of someone who is using git-svn and doesn't want to have to fiddle about setting up the SVN remotes again | 09:48 |
|
cbreak
| the git protocol does not expose configuration like remote URLs | 09:48 |
|
| oh, git svn you can't clone anyway | 09:48 |
|
| you will have to copy | 09:48 |
| → madsy joined | 09:49 |
| ← madsy left | 09:49 |
| → madsy joined | 09:49 |
| → beautifulmind joined | 09:49 |
| ← jimubao left | 09:49 |
| → jimubao joined | 09:49 |
| → thirdknife joined | 09:49 |
|
awilkins
| cbreak, This is a local clone of an SVN repo, so no need for protocols... it's a fairly large tree, hence I was interested in the hardlinking | 09:50 |
| → Dno joined | 09:50 |
|
awilkins
| It's a question that's been asked before but I couldn't find a simple answer | 09:50 |
| → einonm joined | 09:51 |
| → i42n joined | 09:52 |
| → Mode-M joined | 09:52 |
| → chaiz joined | 09:53 |
| ← dwijnand left | 09:53 |
|
cbreak
| awilkins: so you want to copy it on the same filesystem? | 09:53 |
|
awilkins
| cbreak, Yes, I know, cp -r seems easiest :-) | 09:54 |
|
cbreak
| or rsync, yes | 09:54 |
| ← fluxdude left | 09:54 |
|
awilkins
| Does rsync use hardlinks where available? | 09:54 |
|
jMCg
| awilkins: if you tell it to. -H | 09:54 |
|
awilkins
| Not terribly familiar with it.. it's on my list of things to learn | 09:54 |
|
cbreak
| I would not use rsync's hard linking | 09:55 |
|
| that'd hard link the config and branches too I bet | 09:55 |
|
| -> super confusing | 09:55 |
|
awilkins
| Has been pushed to the back of the list by the likes of Dropbox :-) | 09:55 |
|
cbreak
| dropbox, careful | 09:55 |
|
| they are morons | 09:55 |
|
awilkins
| I don't trust it for anything important or secure | 09:55 |
|
| But it's very handy for general managerial nonsenese | 09:56 |
|
| And it works better than Ubuntu One | 09:56 |
| ← OOPMan left | 09:56 |
|
awilkins
| Which is a shame. Neither of them do proxies right (don't understand PAC scripts, despite libraries being easily available) | 09:57 |
| ← adhawkins-away left | 10:01 |
|
cbreak
| either way, if you want a local copy of a repo, just copy it without hard links | 10:02 |
| ← SeySayux left | 10:03 |
| → amcsi_work joined | 10:03 |
| → adhawkins-away joined | 10:03 |
| adhawkins-away → Guest24033 | 10:04 |
| ← Villadelfia left | 10:04 |
| ← iori left | 10:04 |
| → OOPMan joined | 10:04 |
|
awilkins
| cbreak | 10:05 |
|
| I agree copying is probably easier, came up with a long-winded way of doing it thoguh | 10:05 |
| → Villadelfia joined | 10:05 |
| → Akufen joined | 10:05 |
| ← mikecmpbll left | 10:05 |
|
awilkins
| mkdir new-repo ; git clone --mirror old-repo new repo/.git ; cd new-repo ; git config --local --bool core.bare false ; git checkout | 10:06 |
| → SeySayux joined | 10:06 |
| → mikecmpbll joined | 10:06 |
| → xonix joined | 10:06 |
| ← blami_ left | 10:06 |
|
awilkins
| .. but doesn't clone the SVN stuff. So back to copying :-) | 10:06 |
|
| I really do prefer the bzr-svn design to the git-svn design, don't see why it couldn't work for Git TBH. | 10:07 |
|
| bzr-svn stores metadata in the SVN repo using it's arbitrary properties feature | 10:08 |
|
FauxFaux
| awilkins: You can possibly rsync the .git directory over the hardlinked clone to pick up any extra config? I can't think why that wouldn't work, unless you're using alternatives.. | 10:08 |
| ← Villadelfia left | 10:08 |
| ← SeySayux left | 10:08 |
| ← jimubao left | 10:09 |
|
awilkins
| Wheras Git stores metadata in commit descriptions, which rewrites all the revisions you push to SVN, which breaks history | 10:09 |
| → jimubao joined | 10:09 |
| → SeySayux joined | 10:09 |
| ← jimubao left | 10:09 |
| → Villadelfia joined | 10:09 |
|
cbreak
| awilkins: git stores metadata in additional files | 10:09 |
|
| that's why you can't clone it | 10:10 |
|
| you can't store the meta data in the svn repo | 10:10 |
|
| since that obviously requires write access to the svn repo | 10:10 |
|
awilkins
| cbreak, The data I'm thinking about only gets generated when you dcommit to SVN, so you need write-access for that | 10:11 |
|
| It only gets stored in the local git repo though - the data doesn't end up in the commit comments on SVN, and it rewrites the commit to store the data, which of course, breaks the history because it changes the SHA1 of that revision | 10:12 |
|
cbreak
| that's not sufficient | 10:12 |
|
| you don't have to store any additional data when committing | 10:12 |
|
| since once you have committed, the commit is a normal svn commit | 10:12 |
|
| and gets svn fetched as normal | 10:12 |
| ← jimubao_ left | 10:12 |
|
cbreak
| no difference from read only access | 10:12 |
|
| git doesn't store anything additional when dcommitting | 10:13 |
|
awilkins
| It's harder to interoperate with other people using Git though, whereas AFAICT Bazaar has an advantage in that you can share around Bazaar branches that are pulls of SVN branches, and they can all interoperate | 10:13 |
| ← samphippen left | 10:13 |
|
awilkins
| cbreak, When dcommitting, Git rewrites revisions to store a git-svn commit ID | 10:14 |
|
cbreak
| in that case, bazaar must store svn meta data in bazaar history | 10:14 |
|
| which git doesn't do | 10:14 |
|
| (not completely) | 10:14 |
|
| awilkins: no | 10:14 |
|
awilkins
| cbreak, Bazaar stores bzr metadata in svn properties | 10:14 |
|
cbreak
| it just svn fetches | 10:14 |
|
| and then nukes the local commits away | 10:14 |
|
awilkins
| And it also indexes metadata in a local sqlite db | 10:14 |
|
cbreak
| and replaces them with what it got from svn | 10:14 |
|
| awilkins: as I said: you need write access to the svn repo that way | 10:14 |
|
awilkins
| cbreak, the commits on svn dont' have the extra data in their commit description that I can see | 10:15 |
|
cbreak
| you can't store anything in svn properties without write access | 10:15 |
|
awilkins
| cbreak, Yeah, but you can't dcommit either | 10:15 |
|
cbreak
| so how would you share around bazaar svn clone branches | 10:15 |
|
| if you can't modify the svn repo? | 10:15 |
|
| git can do it just fine | 10:15 |
|
| you can share around git svn cloned repositories as you would with a normal git repo | 10:16 |
|
| the only thing that won't work is communicating with the svn remote | 10:16 |
|
| because THAT needs additional meta data | 10:16 |
|
awilkins
| You can still share around the bazaar branches ; I think my point is that if you push from a bazaar branch to SVN your history remains interoperable with the other peoples bazaar branches | 10:16 |
|
| But if you dcommit from git, you rewrite your history so everyone elses Git clone history is now disconnected from the SVN | 10:16 |
| → suy joined | 10:16 |
|
cbreak
| that's normal | 10:17 |
|
awilkins
| And you can just pull from either bzr or svn if you know the URLs | 10:17 |
|
cbreak
| and it's unavoidable | 10:17 |
|
| since once you dcommit something, it is linearized | 10:17 |
|
| it belongs to svn history | 10:17 |
|
awilkins
| I think Bazaar avoids that rewriting because rather than storing SVN metadata in it's own branches, it stores bazaar metadata in the SVN, and indexes SVN metadata in a temporary store that can be reconstituted from read access to the SVN repo | 10:20 |
|
| When you start off pulling an SVN branch from Bazaar it churns away at the metadata for a while (you could share the sqlite around to speed this up, but you don't have to ) | 10:20 |
| → knowj joined | 10:20 |
|
cbreak
| so bazaar's svn integration is completely worthless | 10:21 |
|
| unless you actually have write access | 10:21 |
|
awilkins
| Why is it worthless? | 10:21 |
|
cbreak
| because it can't work | 10:21 |
|
awilkins
| I can confirm that it does work | 10:22 |
|
cbreak
| without you modifying the svn repo | 10:22 |
|
| so, try it. | 10:22 |
|
awilkins
| You don't have to modify it to pull | 10:22 |
|
cbreak
| how do you store the meta data then? | 10:22 |
|
| how do you store which svn subdirectory was cloned? | 10:22 |
|
| how do you store which branch and tag directory was cloned? | 10:22 |
|
awilkins
| Which metadata, the metadata of the revisions you pushed to the SVN repo, when you can't because you don't have write access? | 10:22 |
|
cbreak
| how do you store the clone base? | 10:22 |
|
knowj
| I've made 2 branches for some magento updates I'm doing 1: update magento from 1.3->1.7.0.2 2: install a new payment system. Do I need to merge the 1: update 2: payment module install with the master or can I just merge the 2nd branch to merge all changes? | 10:23 |
|
cbreak
| committing to svn is not that important | 10:23 |
|
awilkins
| You just instruct Bazaar to clone an SVN url | 10:23 |
|
cbreak
| the most important part is being able to read it in the first place | 10:23 |
|
awilkins
| It reads the remote repo and constructs a local cache of metadata about it | 10:23 |
| ← sh4rm4 left | 10:23 |
|
awilkins
| If other people with write access have used bazaar to push revisions there, that metadata will be present in the svn: properties | 10:23 |
|
cbreak
| knowj: merging gives you all history | 10:24 |
|
| look at the ancestor graph or so | 10:24 |
|
knowj
| cbreak: So if I merge the payment module branch it will also merge the changes for the 1.3 -> 1.7 update? | 10:24 |
| → sh4rm4 joined | 10:24 |
| ← Vile left | 10:24 |
|
cbreak
| depends | 10:24 |
|
| is that change in the history? | 10:24 |
|
awilkins
| Bazaar only stores metadata in the SVN if you push revisions to it - which needs write access, but hey, so does dcommit | 10:25 |
|
cbreak
| no | 10:25 |
|
knowj
| cbreak: The payment update branch changes files but not all the same files as the 1.3->1.7 update | 10:26 |
|
cbreak
| dcommit is not required | 10:26 |
|
| knowj: irrelevant | 10:26 |
|
awilkins
| dcommit is required if you want to store revisions in the SVN repo? Or is there another way? | 10:26 |
|
cbreak
| file changes don't matter | 10:26 |
| ← sluther left | 10:26 |
|
cbreak
| awilkins: normal svn commit | 10:26 |
|
knowj
| cbreak: Sorry I'm very new to git. I've mainly been using it badly as a quick rollback and a safeguard for updates | 10:26 |
|
awilkins
| cbreak, Well, yes, but you need write access for that too | 10:26 |
|
cbreak
| awilkins: someone does. | 10:27 |
|
| other users can commit too | 10:27 |
|
| they won't create any meta data | 10:27 |
|
| can bazaar handle that? | 10:27 |
|
| then it doesn't need that meta data | 10:27 |
| → avjpl joined | 10:27 |
| ← avjpl left | 10:27 |
|
awilkins
| It's the extra metadata about the interaction of bzr with svn that is the interesting bit | 10:27 |
|
cbreak
| knowj: if you made a branch, that branch was branched off something | 10:28 |
| → samphippen joined | 10:28 |
|
awilkins
| So other people using bzr as their commit client will generate metadata | 10:28 |
| ← e66 left | 10:28 |
|
cbreak
| awilkins: that's hardly relevant | 10:28 |
|
awilkins
| Why not? | 10:28 |
|
cbreak
| if multiple people use something modern, why waste time with a crappy svn server? | 10:28 |
| ← awilkins left | 10:28 |
| → awilkins joined | 10:29 |
|
awilkins
| sorry, thought ctrl-w was delete word | 10:29 |
|
| Apparently in this client it's "leave" | 10:29 |
|
cbreak
| "Close Window" probably | 10:29 |
|
awilkins
| People use crappy SVN because they are being forced to by their corporate overlords | 10:29 |
|
| All sorts of reasons | 10:29 |
|
cbreak
| knowj: you can do a git log branchname | 10:29 |
|
| that will show you all commits in a branch | 10:30 |
|
| do that on both your branches | 10:30 |
|
awilkins
| The project they are contributing to is stuck in the past, etc | 10:30 |
|
cbreak
| you can also do a git log --graph --oneline --decorate --all | 10:30 |
|
| awilkins: exactly. So the client has to accomodate svn. | 10:30 |
|
awilkins
| It's not an argument to say "just use a better VCS" when discussing modules which permit VCS interop - obviously, if the newer VCS were the better option you'd be using it | 10:30 |
|
cbreak
| if you make a branch in svn, what happens? | 10:30 |
|
| a copy into a branch directory happens | 10:31 |
| ← _Vi left | 10:31 |
|
cbreak
| git svn handles that of course | 10:31 |
|
awilkins
| cbreak, You can pull that if you want | 10:31 |
|
cbreak
| what happens if you branch in git? | 10:31 |
|
| just a new ref to a commit | 10:31 |
|
| dcommit does NOT preserve git branches. | 10:31 |
|
| but git svn CAN make svn branches | 10:31 |
|
| why is that so? | 10:31 |
|
| that is so svn users also see the branches | 10:31 |
| → _Vi joined | 10:32 |
|
cbreak
| the fact that a branch was created is stored the svn way | 10:32 |
| ← shtrb left | 10:32 |
| → eletuchy joined | 10:32 |
|
cbreak
| git svn can extract branch creation from svn history without additional meta data | 10:32 |
|
| and it stores it in svn without additional meta data | 10:32 |
|
| which gives svn users maximal fidelity | 10:32 |
| → xiangfu joined | 10:32 |
| ← xiangfu left | 10:32 |
|
cbreak
| of course, you could just store some git specific meta in there | 10:32 |
|
| but that'd be worthless for svn users | 10:32 |
|
awilkins
| We're not talking about branch creation ; we're talking about rewriting the history in the Git branch | 10:33 |
|
cbreak
| git branches don't rewrite history | 10:33 |
|
awilkins
| dcommit does | 10:33 |
|
cbreak
| as I said, FETCHING svn history does | 10:33 |
|
| nope | 10:33 |
|
| the second part of dcommit does | 10:33 |
|
| getting the new svn history you just committed | 10:33 |
|
awilkins
| Ok... sorry, the result of doing a dcommit is that you end up with your branch at the tip of the SVN branch, not the branch you were on before | 10:33 |
|
irqq
| I have a ./foo file and ./bar directory. I want to mv foo bar, so I have bar/foo, but also I'd like to modify my repository as if it always was bar/foo. How? | 10:33 |
| ← oxidative left | 10:33 |
|
awilkins
| Which means that your tip is no longer the tip of anyone who for example, pulled from your branch | 10:34 |
|
knowj
| cbreak: It looks like payment-module was branched from magento-update. I merged payment module into magento-update then magento-update into master | 10:34 |
|
cbreak
| irqq: man git-filter-branch | 10:34 |
|
gitinfo
| irqq: the git-filter-branch manpage is available at http://git-scm.com/docs/git-filter-branch.html | 10:34 |
|
cbreak
| irqq: probably --index or --tree filter | 10:34 |
| → replore__ joined | 10:34 |
|
cmn
| consider it's !rewriting | 10:34 |
|
gitinfo
| [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to jump through hoops (and you have to tell them to), so it's infinitely better to just move on without rewriting. That said, you can use `git push -f` to force your new history through (may get rejected, though). See http://git-scm.com/docs/git-rebase.html#_recovering_from_upstream_rebase | 10:34 |
| ← rubious left | 10:34 |
|
awilkins
| And that person who pulled from you now has a totally different history back to the point where your SVN branch originated from | 10:34 |
|
| Which Bazaar doesn't do | 10:35 |
|
cbreak
| awilkins: think about an svn user | 10:35 |
|
| what does he see? | 10:35 |
|
awilkins
| A normal svn branch | 10:35 |
|
cbreak
| it should be obvious that a git/bazaar user has to see the same thing as an svn user | 10:35 |
|
awilkins
| He doesn't care. If he looks real hard he'll see some extra revision properties | 10:35 |
|
cbreak
| so you can not by principle store additional meta data that is required | 10:35 |
| ← replore_ left | 10:36 |
|
cbreak
| because svn users won't see that. | 10:36 |
|
awilkins
| That mean nothing to his VCS, they're just key / value paris | 10:36 |
|
cbreak
| and they won't create it if they do the same thing | 10:36 |
| ← adamben left | 10:36 |
| ← replore__ left | 10:36 |
|
awilkins
| The data isn't there for the SVN user - it's there to make the Bazaar users life easier | 10:36 |
|
cbreak
| the result of creating a branch in svn or git is the same | 10:36 |
|
awilkins
| You don't care about revisions the SVN users generated, because you can read the metadata from them already | 10:36 |
|
cbreak
| why is it the same? | 10:36 |
|
| because that's the purpose of an scm | 10:37 |
|
awilkins
| But doing stuff in Bazaar has extra metadata which you would like to see | 10:37 |
| ← eletuchy left | 10:37 |
|
cbreak
| there's no point if you have different views on history | 10:37 |
|
awilkins
| But if you exchange revisions via SVN you won't see it | 10:37 |
|
| Unless you put a copy there | 10:37 |
| → sobczyk joined | 10:37 |
|
sobczyk
| is it possible do do a shallow submodule clone? | 10:37 |
|
cbreak
| see, git is much better | 10:37 |
|
| svn users get everything | 10:37 |
|
| sobczyk: hmm? | 10:37 |
|
sobczyk
| I'd be helpful for my automated build machine | 10:38 |
|
awilkins
| cbreak, Well, that ain't true - you already said as much by saying that SVN won't see your GIt branches | 10:38 |
|
| Unless you use git to push them there | 10:38 |
|
sobczyk
| I have a lot of history in my submodules and a full history is not needed on a CI machine | 10:38 |
| ← harshpb left | 10:40 |
|
cbreak
| sobczyk: you mean a temporally shallow clone? | 10:40 |
|
sobczyk
| yes | 10:40 |
|
cbreak
| you can clone them manually instead of git submodule update --init I guess | 10:40 |
|
| no guarantees that that works | 10:40 |
|
sobczyk
| replace git submodule update --init | 10:40 |
| → harshpb joined | 10:40 |
|
cbreak
| and you would not gain much of that | 10:40 |
|
awilkins
| cbreak, Now, if I'm using Git, and I clone my co-workers clone of an SVN branch, including revisions he's not dcommitted, and he then dcommits them, any revisions I have committed are now orphans. Whereas with Bazaar, I can pull from his repo, or the SVN repo, it doesn't matter, and it just works. | 10:40 |
|
cbreak
| history is rather small | 10:40 |
|
sobczyk
| though the problem is when submodule does not point to the default head | 10:41 |
|
cbreak
| awilkins: not orphans | 10:41 |
|
awilkins
| cbreak, Revisions with a parent that is no longer a part of the history on SVN | 10:41 |
|
cbreak
| they were not in SVN's history anyway | 10:41 |
| → angelsl joined | 10:42 |
|
awilkins
| Because the revisions you get from doing a fetch are no longer the same revisions that are the ancestors of mine | 10:42 |
|
cbreak
| you will get the dcommitted commits from svn | 10:42 |
|
awilkins
| Whereas with bzr they are the same revisions | 10:42 |
| → noisebleed joined | 10:42 |
| ← noisebleed left | 10:42 |
| → noisebleed joined | 10:42 |
| ← skorgon left | 10:42 |
|
cbreak
| awilkins: it is impossible that they are the same | 10:42 |
|
| after all, if you commit in svn, you create a new commit at the end | 10:42 |
|
| what happens if someone else committed in between? | 10:42 |
|
| with git: no problem | 10:43 |
|
| the dcommitted commit is not the same as the one you used as source for dcommitting | 10:43 |
|
| it has a different history | 10:43 |
|
awilkins
| With git you have to do the same as bzr which is rebase | 10:43 |
|
| So no different | 10:43 |
|
cbreak
| (because it has a different history in svn) | 10:43 |
|
| you don't need to do a rebase | 10:43 |
|
| dcommit does that as part of its operations | 10:44 |
|
awilkins
| That's just semantics | 10:44 |
|
| If dcommit does a rebase because it has to, then you have to rebase | 10:44 |
|
| Just because it happens automatically doesn't mean it doesn't happen | 10:44 |
|
cbreak
| it doesn't do a rebase | 10:45 |
|
| it does something that looks like one | 10:45 |
|
| what it does is svn commit the new stuff | 10:45 |
|
awilkins
| Quack < sounds like a duck | 10:45 |
|
cbreak
| and then svn fetch the new history from svn | 10:45 |
|
| as you can see, no rebase happened | 10:46 |
|
awilkins
| It can't commit the new stuff - someone else committed a revision in the meantime | 10:46 |
|
cbreak
| sure it can | 10:46 |
|
awilkins
| Now, OK, SVn lets you do that | 10:46 |
|
| But git doesn't | 10:46 |
|
cbreak
| git svn does | 10:46 |
|
| I've done it a few times | 10:46 |
|
| if the svn commits don't conflict it's ok | 10:46 |
|
| if they do conflict, then you have to do a git svn rebase | 10:46 |
|
| which is a real git rebase | 10:47 |
|
awilkins
| The end result is as if you did a rebase anyway | 10:47 |
|
cbreak
| no | 10:47 |
|
| it doesn't do git's advanced rebase resolution | 10:47 |
|
awilkins
| So who cares about how you get there - just like git doesn't care if you delete a whole tree and replace it (which SVN does) | 10:47 |
|
cbreak
| it's just svn's normal committing | 10:47 |
|
| it is, as I said above, exactly what an svn user would do | 10:48 |
|
awilkins
| Incidentally, I greatly prefer Git there .. bazaar will slavishly follow the SVN instructions to delete all the files which breaks their history | 10:48 |
|
| But Git doesn't care because it versions content | 10:48 |
| ← wolog left | 10:48 |
|
cbreak
| git history is a chain of snapshots | 10:49 |
|
awilkins
| Yes, I know that | 10:49 |
|
cbreak
| svn history is per-file | 10:49 |
|
| it's quite an impedance missmatch | 10:49 |
|
awilkins
| So is Bazaars | 10:49 |
| → wolog joined | 10:49 |
| → replore joined | 10:49 |
|
cbreak
| but since git can reproduce most meta data from the content | 10:49 |
| → whitman joined | 10:49 |
|
cbreak
| it needs a lot less meta data than svn | 10:49 |
|
awilkins
| In this case, the mismatch is beneficial | 10:49 |
|
cbreak
| so it can reproduce sane history from weird stuff | 10:49 |
|
| like bunch-of-tar-files | 10:49 |
|
| or as in this case, chain-of-svn-commits | 10:49 |
|
awilkins
| Because we have several people on the project who can't use a VCS properly and just delete whole trees and replace them with the one they've been patching in another folder | 10:50 |
|
cbreak
| sounds like an svn merge. | 10:50 |
|
awilkins
| No, it's just lame user | 10:50 |
|
| One revision where every file is deleted and then mostly replaced with an identical copy is someone copying a tree from one folder to another, probably in an IDE that automates SVN deletes | 10:51 |
|
| This is why I stopped using bzr-svn and started using git svn | 10:51 |
|
| Because git just thinks "oh, it's that tree again" | 10:51 |
|
| Whereas bzr believes svn when it says all the files are new and breaks the history | 10:52 |
|
cbreak
| there are sometimes people who complain about git not storing moves/deletes | 10:52 |
|
| git stores almost no meta data at all. File name, executability, that's it. | 10:53 |
| → zloy joined | 10:53 |
|
cbreak
| probably makes it more robust than svn :) | 10:53 |
|
awilkins
| So I prefer Git because it copes with the stupids better... and it's fast, and good, etc. But I like bzr-svn better (having had experience of both) because it doesn't change the tip of your local branch to something else when you push revisions to SVN | 10:54 |
| ← j0ran left | 10:54 |
|
awilkins
| I think the "porcelain" on Bazaar is probably marginally better too (when it comes to ease-of-use and graphical utils) | 10:55 |
|
cbreak
| more meta data means more fragility | 10:55 |
|
awilkins
| I can cope with that but my average users can't | 10:55 |
|
| Although my opinion was formed first a few years ago when Git on Windows was relatively immature (I use Linux but I have to produce tools for Windows users) | 10:56 |
|
cbreak
| stay away from tortoise git | 10:56 |
|
awilkins
| I do, I'm a "CLI + GUI logging" kinda guy | 10:56 |
|
| Invoke git-gui and gitk from the command line | 10:57 |
|
| Same with bzr but qbzr log etc | 10:57 |
| → j0ran joined | 10:57 |
| → shtrb joined | 10:57 |
| ← hyperair left | 10:58 |
|
awilkins
| Also, Bazaar was more accessible to me for hacking because it's Python and my C is weak | 10:58 |
|
| My Python was weak too, but easier to learn | 10:58 |
|
| And it worked the best on Windows at the time (Mercurial - didn't like capital letters in paths, Git - too flaky on Windows, too hard for users) | 10:59 |
|
Mode-M
| imo theres no need to hack git ;) | 10:59 |
| → maleknet joined | 10:59 |
|
cmn
| there is if you want it to run well on Windows | 11:00 |
|
awilkins
| If Git on Windows had GUI tools as mature as TortoiseSVN it would be great | 11:00 |
|
| But I'm not sure some of the visual metaphors are there for the DVCS stuff yet | 11:00 |
|
Mode-M
| mmh, I'm fine with msysgit on windows | 11:01 |
|
_ikke_
| A TortoiseSVN kind of interface doesn't really make sense for git | 11:01 |
|
awilkins
| _ikke_ Hence we need newer visual metaphors for DVCS | 11:01 |
|
_ikke_
| I found things like GitExtensions quite good on windows | 11:01 |
|
awilkins
| I don't mean slavishly copy all the dialogs from TSVN, but some are still relevant | 11:02 |
|
| And need newer ones for branch / remote reference management / pull etc | 11:02 |
|
| awilkins looks at GitExtensions | 11:02 |
|
awilkins
| Not really available when I started evaluating Git on Windows and I mostly use Linux so not had a good look at this | 11:03 |
| ← exhaze left | 11:04 |
| ← Mode-M left | 11:05 |
| ← danielfi_ left | 11:06 |
| → Ecesis1 joined | 11:06 |
| ← jargon- left | 11:08 |
| ← Ecesis left | 11:09 |
| → iguanna joined | 11:09 |
|
iguanna
| hi all, if I want to create my own repository i can do: git remote add myname git@gitosis:myname.git right? | 11:10 |
|
cmn
| maybe, if gitosis creates them automatically, also !gitosis | 11:11 |
|
gitinfo
| gitosis is no longer maintained and supported by the author; we usually recommend gitolite instead which has much better documentation and more features: http://github.com/sitaramc/gitolite -- if you're already stuck with gitosis we'll try to help, but no promises! | 11:11 |
| → SkAzZ joined | 11:13 |
| → torbjorn joined | 11:14 |
| → jalama joined | 11:18 |
| ← jalama left | 11:18 |
| → gusnan joined | 11:19 |
| → blami_ joined | 11:21 |
| ← heke80 left | 11:23 |
| ← maleknet left | 11:26 |
| ← devsharpen left | 11:29 |
| → RaceCondition joined | 11:31 |
| ← _Vi left | 11:31 |
| → sgambino joined | 11:32 |
| → _Vi joined | 11:32 |
| ← reshtnk7 left | 11:32 |
| ← Dno left | 11:37 |
| → _huoxito joined | 11:38 |
| ← svetlyak40wt_ left | 11:38 |
| → asteve joined | 11:38 |
| → svetlyak40wt joined | 11:38 |
| → maleknet joined | 11:39 |
|
cbreak
| iguanna: git remote add does not create a repository | 11:39 |
| ← btree__ left | 11:39 |
|
cbreak
| if you want to create a git repository, use git init (or indirectly via git clone) | 11:40 |
|
iguanna
| ok, I think to real about git, it cann't get the picture | 11:40 |
|
| *read | 11:40 |
| ← maxagaz left | 11:43 |
| → Xethron joined | 11:46 |
|
Xethron
| heya, I was wondering, is there a way to export the "diff" view to like pdf or html? | 11:47 |
| → Dno joined | 11:47 |
|
Xethron
| I would like to show a friend not using git what changes I made to his code | 11:47 |
| ← C8H10N4O2 left | 11:48 |
|
wereHamster
| export it as plaintext | 11:48 |
|
Xethron
| meh | 11:48 |
|
wereHamster
| then send your friend an email and paste the diff there. | 11:48 |
|
Xethron
| I like the colors | 11:48 |
|
| :P | 11:48 |
|
| hehe | 11:48 |
|
| ok | 11:48 |
| → amcsi_work_ joined | 11:50 |
| ← amcsi_work left | 11:50 |
| → Davey joined | 11:50 |
| ← harshpb left | 11:51 |
| ← amcsi_work_ left | 11:51 |
| ← _Vi left | 11:52 |
| → adamben joined | 11:52 |
| ← OOPMan left | 11:52 |
| → devsharpen joined | 11:52 |
| → erichynds joined | 11:54 |
| → jtri joined | 11:55 |
|
jtri
| hello, i finished my branch code, and did a 'git merge master' | 11:55 |
|
| that went fine | 11:55 |
| → ReekenX joined | 11:55 |
|
jtri
| then i did 'git checkout master' | 11:55 |
|
| and 'git merge mybranch' | 11:56 |
|
| the second merge didn't seem to do anything | 11:56 |
|
| then i did a checkout of the branch again, and did a push | 11:56 |
|
| and did a checkout of the master and did a push | 11:56 |
|
| then i logged into my server and tried a pull | 11:56 |
|
| but the server is not getting the update? | 11:57 |
|
| any ideas/advice/debug help is appreciated | 11:57 |
| ← mikecmpbll left | 11:59 |
| → C8H10N4O2 joined | 11:59 |
|
awilkins
| Xethron, Get your friend to use an editor that colourises universal diff? | 11:59 |
| ← dc5ala left | 11:59 |
| → mikecmpbll joined | 12:00 |
|
cmn
| jtri: that second merge most likely did a fast-forward, where it didn't create a new commit but pointed the branch to the same commit | 12:01 |
| ← lu_zero left | 12:01 |
|
cmn
| push isn't branch-dependent per default, see push.default in man git config | 12:01 |
|
gitinfo
| the git-config manpage is available at http://git-scm.com/docs/git-config.html | 12:01 |
|
FauxFaux
| Xethron: There are tools named things like "ansifilter" that'll convert terminal colour codes into html for you. | 12:01 |
| → lu_zero joined | 12:01 |
| ← lu_zero left | 12:01 |
| → lu_zero joined | 12:01 |
| ← sangi left | 12:02 |
|
jtri
| cmn: hmm... so what should i do? | 12:02 |
|
| should i checkout the branch on the server? | 12:03 |
|
cmn
| we don't know what you want to do | 12:03 |
|
| the pull probably indicates you're trying to do !deploy | 12:03 |
|
gitinfo
| Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html | 12:03 |
|
jtri
| oh, i finished the branch, and wanted to merge it back to master | 12:03 |
| ← maleknet left | 12:03 |
|
cmn
| pull is precisely the wrong tool | 12:03 |
|
jtri
| but made a mistake i guess ? | 12:03 |
|
cmn
| for that, you checkout master and do git merge other-branch | 12:03 |
| → Element9 joined | 12:04 |
| → xiangfu joined | 12:04 |
| ← Davey left | 12:05 |
| → harshpb joined | 12:06 |
| → mmc1 joined | 12:06 |
| → geekbri joined | 12:08 |
| → juvenal joined | 12:08 |
| → maleknet joined | 12:08 |
| ← ReekenX left | 12:09 |
|
jtri
| here are the results of 'git branch -a': http://pastie.org/4902095 | 12:09 |
| → cannonball joined | 12:10 |
|
jtri
| shoot, i think i made a mistake about which branch i merged! | 12:10 |
| ← retro|cz left | 12:11 |
| → psoo joined | 12:12 |
| → alvesjnr joined | 12:13 |
|
alvesjnr
| hi all. I changed a file (didn't commit) and want to revert it | 12:13 |
|
| how can I do this? | 12:13 |
|
cbreak
| alvesjnr: git checkout -p filename | 12:15 |
| → e66 joined | 12:15 |
| → retro|cz joined | 12:15 |
| ← irqq left | 12:15 |
|
williamherry
| git rm --cached filename | 12:15 |
|
cmn
| williamherry: and that's meant to be what? | 12:16 |
| → hyperair joined | 12:16 |
| → irqq joined | 12:16 |
|
williamherry
| remove from index area | 12:17 |
|
| cmn: am I wrong? | 12:17 |
| → ajw0100 joined | 12:17 |
|
cbreak
| williamcotton: you are wrong insofar that it does not answer the asked question | 12:17 |
| → pmorris joined | 12:17 |
|
alvesjnr
| tk | 12:17 |
| → jargon- joined | 12:18 |
|
williamherry
| oops, sorry | 12:18 |
| ← subhojit777 left | 12:18 |
| gitinfo set mode: +v | 12:18 |
|
pmorris
| Where does git store the temporary commit message? | 12:18 |
| → bapa joined | 12:18 |
|
cmn
| .git/COMMIT_EDITMSG | 12:18 |
| → jperry2_ joined | 12:20 |
|
Xethron
| Thanks guys :D | 12:20 |
| → skyf joined | 12:23 |
| → hwrd|work joined | 12:23 |
| ← alunduil left | 12:23 |
| → tinti joined | 12:23 |
| ← harshpb left | 12:25 |
| ← TheFuzzball left | 12:27 |
| → thiago joined | 12:28 |
| ← dhruvasagar left | 12:28 |
| → khmarbaise_ joined | 12:30 |
| → guampa joined | 12:33 |
| → funnyfingers joined | 12:34 |
| → noscript joined | 12:39 |
| ← kcj left | 12:40 |
| ← daniel_- left | 12:41 |
| → prudnikov joined | 12:41 |
| → tmcmahon joined | 12:42 |
| ← asteve left | 12:42 |
| → asteve joined | 12:42 |
| jokajak` → jokajak | 12:44 |
| ← shtrb left | 12:45 |
| → ReekenX joined | 12:46 |
|
mtrd`w
| Hello! I try to get some files from a distant git repository. I first use "git clone ----" and i get the "origin" version. I'd like to get a newer version in origin/name. How can i do that ? Thank you! | 12:48 |
|
_ikke_
| mtrd`w: git clone gives you the latest version | 12:48 |
|
cbreak
| mtrd`w: git checkout that branch | 12:48 |
|
FauxFaux
| mtrd`w: 'git checkout name' | 12:48 |
|
_ikke_
| Oh, you want a different branch | 12:49 |
|
mtrd`w
| yes :) | 12:49 |
|
| okay, i'm on it! | 12:49 |
| ← skyf left | 12:49 |
| → dv310p3r joined | 12:49 |
| → leo2007 joined | 12:49 |
| → teplyakoff joined | 12:49 |
| → d3vic3 joined | 12:51 |
| → Tohuw joined | 12:51 |
|
mtrd`w
| yeah! thank you :) have a nice day | 12:51 |
|
Tohuw
| How can I view the contents of a directory from a previous commit? | 12:51 |
| → freeed joined | 12:51 |
|
_ikke_
| Tohuw: View in what way? | 12:52 |
|
cbreak
| Tohuw: ls-tree maybe? :) | 12:52 |
| ← BadDesign left | 12:52 |
| → jbrechtel joined | 12:53 |
| ← Pasdefracse left | 12:53 |
|
Tohuw
| cbreak: Yes, that's what I need. Thanks! | 12:55 |
| ← whitman left | 12:55 |
| ← dangerousdave left | 12:55 |
| → banghouse joined | 12:56 |
| → skyf joined | 12:56 |
| → dangerousdave joined | 12:56 |
| ← C8H10N4O2 left | 12:57 |
| → dansan joined | 12:58 |
| ← adamm left | 12:58 |
| ← samphippen left | 12:58 |
| → bartek joined | 12:59 |
| → adamm joined | 12:59 |
| → guns joined | 12:59 |
| → jesseFromYVR joined | 13:00 |
|
dansan
| I'm having a bit of trouble with rebase --onto. On my branch 'mmotm' (based off of remotes/mmotm/master), I have 30-odd patches. I want to rebase those onto my 'next' branch (which is based off of remotes/linux-next/master), so essentially copy my patches over. I know I can just do format-patch and them git am them, but I'm trying to learn this better | 13:00 |
|
| mmotm appears to be broken at the moment, so I want to test my patches on something that works :) | 13:01 |
| → chaiz_ joined | 13:03 |
| ← erichynds left | 13:04 |
| ← guns left | 13:04 |
| → erichynds joined | 13:04 |
| → cilly joined | 13:04 |
| → aristidesfl joined | 13:05 |
| ← chaiz left | 13:05 |
| → daniel_- joined | 13:07 |
| → Davey joined | 13:07 |
| ← arietis left | 13:07 |
| → hellopat joined | 13:08 |
| ← jtri left | 13:08 |
| → C8H10N4O2 joined | 13:09 |
| → cakehero joined | 13:09 |
|
pmorris
| My terminal hung up but git commit is still running and the editor is still running | 13:10 |
|
| How can I recover my commit message from the running editor? | 13:10 |
|
cbreak
| if the editor runs | 13:11 |
|
| just save | 13:11 |
|
| and exit the editor | 13:11 |
|
| that will make git commit continue | 13:11 |
|
pmorris
| But I can't take control of the editor since it belongs to a dead terminal | 13:11 |
| ← alexander__b left | 13:11 |
|
cbreak
| then copy .git/COMMIT_EDITMSG or so | 13:11 |
|
pmorris
| That's where it saves the message but the message wasn't saved | 13:12 |
|
| The message only exists in memory of a process belonging to a terminal that has hung up | 13:12 |
|
_ikke_
| pmorris: try ctrl+aq | 13:12 |
|
| pmorris: try ctrl+q | 13:12 |
|
cbreak
| pmorris: then attach a debugger | 13:12 |
|
| and analyze the RAM of the editor | 13:12 |
| ← chaiz_ left | 13:12 |
|
cbreak
| the message must be somewhere in there | 13:12 |
|
_ikke_
| pmorris: If you happened to hit ctrl+s, then you froze the terminal | 13:12 |
|
pmorris
| I didn't hit anything, the terminal HUNG UP | 13:13 |
|
Xethron
| well | 13:13 |
| → alexander__b joined | 13:13 |
|
_ikke_
| pmorris: well, that's the same ctrl+s does | 13:13 |
|
pmorris
| The network dies every 30 minutes on idle connections | 13:13 |
| → chaiz joined | 13:13 |
|
_ikke_
| pmorris: Are you working over ssh? | 13:13 |
|
Xethron
| Is it a terminal emulator? | 13:13 |
|
pmorris
| Yes I am SSHing | 13:13 |
|
Xethron
| Like running inside a x11 enviroment? | 13:13 |
|
| Can't you just select the text and copy it? | 13:14 |
|
cbreak
| I say: Debugger | 13:14 |
|
| that's the only way to be sure | 13:14 |
|
pmorris
| Normall when the shell hangs up nano dumps its contents into *.save and exits | 13:14 |
|
| But because git spawned it and git doesn't terminate on hangup it's still alive | 13:14 |
|
| There's probably a signal that can be sent to the nano process to make it dump to *.save and exit but I don't know which one and if I get it wrong it will exit without dumping | 13:15 |
|
| Actually I can probably just send HUP | 13:15 |
|
cbreak
| why nano? | 13:15 |
|
| you should use vim | 13:15 |
|
pmorris
| No, fuck you | 13:16 |
|
_ikke_
| !fsck | 13:16 |
|
gitinfo
| [!profanity] Hey! This is a family-safe channel, so keep it frakking clean you fierfekker! | 13:16 |
| → samphippen joined | 13:16 |
| → macabre joined | 13:16 |
| ← suy left | 13:17 |
| → suy joined | 13:17 |
| FrenkyNet → FrenkyNet|work | 13:18 |
|
dansan
| cbreak: you should use ms notepad | 13:18 |
|
cbreak
| dansan: that thing doesn't work | 13:18 |
|
dansan
| so? | 13:18 |
| ← pretty_function left | 13:19 |
| → _Vi joined | 13:19 |
|
cbreak
| dansan: honestly, get a brain | 13:19 |
|
| pmorris: honestly, get some manners, and then get a brain | 13:19 |
|
dansan
| cbreak: ahh, that's all the advice I needed, thanks so much! :) | 13:19 |
|
cbreak
| no problem. | 13:19 |
|
dansan
| I don't like nano either, but some people do | 13:19 |
| ← Lgb left | 13:20 |
|
cbreak
| so? | 13:20 |
|
dansan
| no reason to tell somebody to change just because it's not the editor you like | 13:20 |
| ← ehsan_ left | 13:20 |
|
cbreak
| if you want to remotely connect to an other editor instance | 13:20 |
|
| then vim can do that | 13:20 |
|
dansan
| but good come back anyway! :) | 13:20 |
|
cbreak
| so, use vim if you want to do something vim can do | 13:20 |
|
| got it? | 13:20 |
|
dansan
| what if you want to do something that some other text editor can do as well? | 13:20 |
|
cbreak
| http://stackoverflow.com/questions/2760014/how-can-i-configure-vim-so-that-when-i-send-the-process-a-usr1-signal-it-saves-a | 13:20 |
| ← dpino left | 13:21 |
|
dansan
| shouldn't be too hard to patch nano or emacs or some such to do the same | 13:21 |
| → Yuuhi joined | 13:21 |
|
cbreak
| do it | 13:21 |
|
| and send pmorris the patch | 13:21 |
|
dansan
| I use vim, lol!! | 13:21 |
| ← kpreid left | 13:21 |
| ← e66 left | 13:22 |
| → kpreid_ joined | 13:22 |
| → v0n joined | 13:22 |
| → Lgb joined | 13:22 |
| ← samphippen left | 13:22 |
| → chuckharmston joined | 13:22 |
| ← tmcmahon left | 13:22 |
| ← psoo left | 13:22 |
| → psoo joined | 13:23 |
| → samphippen joined | 13:24 |
| ← chaz left | 13:24 |
| ← TomWij left | 13:24 |
| → TeckniX joined | 13:25 |
| → Gx4xx joined | 13:25 |
| → TomWij joined | 13:26 |
| → legumbre_ joined | 13:27 |
| ← RaceCondition left | 13:27 |
| ← Gx4 left | 13:28 |
| ← j0ran left | 13:28 |
| → j0ran1 joined | 13:28 |
| ← bartek left | 13:28 |
| ← prudnikov left | 13:29 |
| → bartek joined | 13:29 |
| → RaceCondition joined | 13:29 |
| → chaz joined | 13:31 |
| → dpk joined | 13:31 |
| ← madewokherd left | 13:32 |
| → les_sylvains joined | 13:34 |
| → achadwick joined | 13:34 |
| → nwest joined | 13:35 |
| ← RaceCondition left | 13:36 |
| → alunduil joined | 13:37 |
| ← adamben left | 13:37 |
| → crispus joined | 13:37 |
| ← ReekenX left | 13:38 |
| ← alunduil left | 13:39 |
| → Destos joined | 13:39 |
| ← dpk left | 13:39 |
| → alunduil joined | 13:39 |
| → alunduil_ joined | 13:40 |
| → Hasbro joined | 13:40 |
| → pfFredd joined | 13:41 |
| → jbrechte_ joined | 13:43 |
| ← cagedwisdom left | 13:45 |
| ← jbrechte_ left | 13:45 |
| → jds_ joined | 13:47 |
| → e66 joined | 13:47 |
| ← e66 left | 13:47 |
|
jds_
| Heya | 13:47 |
| ← jbrechtel left | 13:47 |
|
jds_
| Anyone familiar with libgit2? I'm trying to figure out why gitx is really slow on my repo... | 13:47 |
|
| I see an awful lot of calls to git_path_dirload_with_stat on directories that are ignored by my gitignore | 13:48 |
|
| was wondering if that was expected | 13:48 |
| → derpops joined | 13:48 |
| → msmithng joined | 13:50 |
| ← samphippen left | 13:52 |
| → lacrymology joined | 13:54 |
| → glennpratt joined | 13:54 |
| ← dansan left | 13:56 |
| ← Turicas left | 13:56 |
| ← psoo left | 13:57 |
| → isomorphic_ joined | 13:57 |
| ← lu_zero left | 13:58 |
| → logik-bomb joined | 13:58 |
|
logik-bomb
| how can I check who created a remote branch? | 13:58 |
|
_ikke_
| logik-bomb: you can't | 13:58 |
|
logik-bomb
| :X | 13:58 |
| ← isomorphic left | 13:59 |
| ← beautifulmind left | 13:59 |
|
_ikke_
| logik-bomb: a branch in git is just a pointer to a commit | 13:59 |
| → prudnikov joined | 13:59 |
|
_ikke_
| logik-bomb: It's not recorded who created it | 13:59 |
| ← mikecmpbll left | 14:00 |
|
logik-bomb
| I see | 14:00 |
|
cmn
| fetch, look at the log and chances are whoever has the latest commits is the one who pushed it | 14:00 |
|
logik-bomb
| I'm just doing some clean up | 14:00 |
| → dhruvasagar joined | 14:00 |
|
logik-bomb
| and it would be usefull to know who owns what | 14:00 |
|
| :) | 14:00 |
|
| thanks cmn | 14:00 |
|
| and _ikke_ | 14:00 |
| → lu_zero joined | 14:00 |
| ← lu_zero left | 14:00 |
| → lu_zero joined | 14:00 |
| ← bartek left | 14:00 |
| → bartek joined | 14:01 |
|
cmn
| the most useful is to just ask your coworkers | 14:01 |
| ← juvenal left | 14:01 |
| → samphippen joined | 14:02 |
| ← SJr left | 14:02 |
| ← xxc_michael left | 14:02 |
| ← soee left | 14:04 |
| ← eijk left | 14:04 |
| ← samphippen left | 14:04 |
| ← bapa left | 14:05 |
| ← xiangfu left | 14:05 |
| → bapa joined | 14:05 |
| → samphippen joined | 14:05 |
| → ehsan joined | 14:07 |
| ← hyperair left | 14:08 |
| → Vile joined | 14:08 |
| → whitman joined | 14:08 |
| → RJ3000_ joined | 14:09 |
| ← RJ3000_ left | 14:09 |
| ← dr_lepper left | 14:09 |
| → RJ3000_ joined | 14:09 |
| ← Davey left | 14:10 |
| → juvenal joined | 14:10 |
| ← nelse_ left | 14:11 |
| ← skyf left | 14:11 |
| → talha joined | 14:12 |
| → trungqtran joined | 14:14 |
| → revagomes joined | 14:14 |
| → e66 joined | 14:16 |
|
C8H10N4O2
| I have 7 repos on my server and so far the two other developers have had access to all of them because they are working on all of them. Now I am bringing someone in for one project only. How do I restrict their access to my remote repo to only that one repo | 14:16 |
|
| server is ubuntu 12.04 | 14:16 |
|
_ikke_
| C8H10N4O2: How do people connect to those repostories? | 14:16 |
| ← skul left | 14:16 |
|
C8H10N4O2
| I just created users added them to the git group and they just use username@ipaddress:/path/to/repo | 14:17 |
|
cbreak
| I'd just use gitolite | 14:17 |
| ← kermit left | 14:17 |
|
cbreak
| otherwise you'll have to mess around with fs access rights | 14:17 |
| → dr_lepper joined | 14:17 |
|
_ikke_
| !gitolite | 14:17 |
|
gitinfo
| Want to host as many git repos (and users!) as you like, on your own server, with fine-grained access control? You want gitolite: https://github.com/sitaramc/gitolite - Documentation: http://sitaramc.github.com/gitolite/master-toc.html | 14:17 |
|
C8H10N4O2
| yeah but if i use gitolite or gitosis wont i have to re do everything | 14:17 |
|
cbreak
| so? | 14:18 |
|
milki
| C8H10N4O2: you'll be happier | 14:18 |
|
| trust us | 14:18 |
|
_ikke_
| C8H10N4O2: It allows for importing existing repositories | 14:18 |
|
cbreak
| it'll take less time than doing it with fs access rights :) | 14:18 |
| ← mgorbach left | 14:18 |
| → mgorbach joined | 14:19 |
| → RaceCondition joined | 14:21 |
| ← stodan left | 14:21 |
| → kermit joined | 14:22 |
| ← RaceCondition left | 14:23 |
|
C8H10N4O2
| yuck I don't want to have to set something else up. | 14:23 |
|
cbreak
| then do it yourself | 14:23 |
|
| with file system permissions | 14:23 |
|
| git doesn't do permission checking | 14:24 |
|
| git doesn't do authentication or authorisation | 14:24 |
|
_ikke_
| no ACL in general | 14:24 |
|
C8H10N4O2
| no no no ill just use gitolite or gitosis. In each repo you should be able to provide public keys | 14:24 |
| → hyperair joined | 14:24 |
|
cbreak
| with gitolite, public keys identify users | 14:25 |
|
| and users can have permissions to read and/or change repositories | 14:25 |
|
| the change part is extremely granular | 14:25 |
|
C8H10N4O2
| is it quick to install and set up? | 14:25 |
|
cbreak
| yeah | 14:25 |
|
C8H10N4O2
| ok fine ill use that | 14:25 |
| → pfFred joined | 14:25 |
|
C8H10N4O2
| now I have to change all my hooks for deployment too then right? | 14:26 |
|
cbreak
| http://sitaramc.github.com/gitolite/install.html | 14:26 |
|
| gitolite uses its own hooks | 14:26 |
|
| for update | 14:26 |
|
| the rest it doesn't care about | 14:26 |
|
| but using an update hook for deployment would be stupid anyway | 14:26 |
|
| you probably used post-receive or similar | 14:26 |
|
C8H10N4O2
| yeah | 14:26 |
|
| anyway Ill try it out | 14:27 |
| → chrisgeorge joined | 14:28 |
| ← pfFredd left | 14:28 |
| → Spockz joined | 14:29 |
| → Zenopus joined | 14:29 |
| → Psy-Q joined | 14:30 |
| → AaronMT joined | 14:30 |
| ← maleknet left | 14:31 |
| ← thiago left | 14:32 |
|
sam____
| if i have made several commits on a branch (which I've pushed to our 'central' repo), can I squash those commits up before I merge the branch with the master, and if so how? | 14:32 |
|
wereHamster
| merge --squash? | 14:32 |
|
| or rebase and squash, or soft reset and commit | 14:33 |
| → Geen_Nuar joined | 14:33 |
| ← fornext left | 14:33 |
|
sam____
| ok, I'll investigate those options. thanks! | 14:33 |
| ← Vile left | 14:33 |
| ← Spockz left | 14:33 |
| → alessand1o joined | 14:34 |
|
comps
| is it possible (somehow via --no-commit ?) to merge 4 heads into one merge commit, using the recursive strategy, merging just two heads at a time (and resolving conflits)? | 14:34 |
|
cmn
| no | 14:35 |
|
| octopus merges are only possible without conflicts | 14:35 |
|
wereHamster
| comps: do your merges, one after the other, then take the resulting tree, and commit that as a commit with 5 parents | 14:35 |
|
comps
| in theory, it's possible to merge first two heads, then merge the resulting tree with a third head, using the resulting tree for the already existing merge commit | 14:35 |
| ← zloy left | 14:36 |
|
wereHamster
| comps: this might be useful as a guide: https://blog.caurea.org/2009/11/19/subtree-octopus-merge.html | 14:36 |
| alessand1o → Spockz | 14:36 |
|
wereHamster
| see the script how I generate a merge commit and manually specify the heads that should be part of it | 14:36 |
|
comps
| okay, thanks | 14:37 |
| → rednaks joined | 14:38 |
| ← rednaks left | 14:38 |
| → rednaks joined | 14:38 |
|
comps
| the easiest solution that comes to my mind is to stack one merge on top of another, then take sha of the final tree, reset to the before-merge state and recreate the one merge commit, manually linking parents and using the final tree from the "stacked" merge | 14:38 |
| → Davey joined | 14:39 |
| ← Geen_Nuar left | 14:39 |
| → Geen_Nuar joined | 14:40 |
| ← Geen_Nuar left | 14:40 |
| → RaceCondition joined | 14:40 |
| ← v0n left | 14:41 |
| → apok joined | 14:42 |
| → MyTallest joined | 14:43 |
| ← papegaaij left | 14:44 |
| ← rchavik left | 14:45 |
| → ShadeTornado joined | 14:46 |
| ← Sky[x] left | 14:46 |
| ← MyTallest left | 14:47 |
| ← ShadeTornado left | 14:47 |
| → Vile joined | 14:47 |
|
xonix
| Hi, how can I bring my forked git repository to the latest state? | 14:47 |
| → ShadeTornado joined | 14:47 |
|
_ikke_
| xonix: define latest state | 14:48 |
| → MyTallest joined | 14:48 |
| ← Xethron left | 14:48 |
|
xonix
| _ikke_: i forked a repository and the repository from which I have forked has new commites | 14:49 |
| ← MyTallest left | 14:49 |
| → tjadc joined | 14:49 |
| → amcsi_work joined | 14:50 |
| → flavius joined | 14:50 |
|
_ikke_
| xonix: You need to clone your repo locally, add the original repository as a remote, fetch from that remote, and push to your fork | 14:50 |
| → dc5ala joined | 14:50 |
| ← banghouse left | 14:50 |
| → nelse_ joined | 14:51 |
| ← dhruvasagar left | 14:51 |
| → MyTallest joined | 14:53 |
| → dhruvasagar joined | 14:54 |
| ← hwrd|work left | 14:54 |
| → Loggie joined | 14:54 |
| ← ThomasLocke left | 14:55 |
| → NcA joined | 14:57 |
|
xonix
| _ikke_: should i see some changes after fetching from the remote? i took a look with git log but there are now changes | 14:58 |
| ← NcA left | 14:58 |
|
xonix
| _ikke_: no changes :) | 14:58 |
| → NcA^ joined | 14:58 |
|
_ikke_
| xonix: That's right, because they haven't been merged yet | 14:58 |
| ← dc5ala left | 14:58 |
| → goshawk joined | 15:00 |
| ← _ivar_ left | 15:00 |
| → hwrd|work joined | 15:01 |
| ← goshawk left | 15:01 |
| SirCmpwn → SirCmpwn_ | 15:01 |
| ← teotwaki left | 15:02 |
| → Beoran_ joined | 15:02 |
| ← Beoran__ left | 15:03 |
| → goshawk joined | 15:03 |
| → duckxx joined | 15:04 |
| → dpino joined | 15:04 |
| → teotwaki joined | 15:05 |
|
xonix
| _ikke_: thanks works fine :) | 15:06 |
| ← arvind_khadri left | 15:07 |
| ← Akufen left | 15:08 |
| → dpk joined | 15:08 |
| ← Davey left | 15:08 |
| ← juvenal left | 15:11 |
|
_ikke_
| xonix: your welcome | 15:12 |
|
| you | 15:12 |
|
| you're | 15:12 |
| → harshpb joined | 15:13 |
| → tplaner_ joined | 15:13 |
| ← goshawk left | 15:14 |
| → juvenal joined | 15:14 |
| Vampire0_ → Vampire0 | 15:15 |
| ← bapa left | 15:15 |
| → hakunin joined | 15:16 |
| ← svetlyak40wt left | 15:16 |
| ← juvenal left | 15:16 |
| ← replore left | 15:17 |
| ← senny left | 15:20 |
| → DancingBear joined | 15:21 |
| → fornext joined | 15:21 |
| → duckx joined | 15:22 |
| ← nelk left | 15:22 |
| → Harzilein joined | 15:23 |
|
Harzilein
| hi | 15:23 |
|
| what is the proper utility to check availability of a git:// repository? | 15:24 |
| → adamben joined | 15:24 |
| ← wave left | 15:24 |
| ← sebrock left | 15:24 |
| ← duckxx left | 15:24 |
| → Evanlec joined | 15:25 |
|
Evanlec
| Hey guys, I think I may have lost a bunch of code that I stashed | 15:25 |
|
| I stashed my changes in my exp branch | 15:26 |
|
| checked out master | 15:26 |
|
| and did git stash pop | 15:26 |
|
| lots of merge conflicts | 15:26 |
|
| so i did git reset hard | 15:26 |
|
| is my stashed changes gone forever now? | 15:26 |
|
| or can I still bring them back | 15:26 |
|
cmn
| have you checked? | 15:26 |
|
Evanlec
| how? | 15:26 |
| ← harshpb left | 15:27 |
| ← amcsi_work left | 15:27 |
| → elbeardmorez joined | 15:27 |
| → thiago joined | 15:27 |
|
cmn
| show, list, probably others, see man git stash | 15:27 |
|
gitinfo
| the git-stash manpage is available at http://git-scm.com/docs/git-stash.html | 15:27 |
|
Evanlec
| cmn: git stash list doesnt seem to show the stash that i saved | 15:28 |
| ← teotwaki left | 15:29 |
| → wave joined | 15:29 |
|
Evanlec
| i dont know if i named the stash or not when i saved it | 15:30 |
|
| but i dont think i did | 15:30 |
| ← trungqtran left | 15:31 |
| ← blami_ left | 15:31 |
| → goshawk joined | 15:31 |
| ← Chillance left | 15:32 |
|
cmn
| if you don't give it an explicit name, it gets the one from the commit when you stashed it | 15:32 |
|
Evanlec
| ah | 15:32 |
| → swiety joined | 15:34 |
| ← Loggie left | 15:34 |
| → trungqtran joined | 15:34 |
| ← samphippen left | 15:34 |
| ← d3vic3 left | 15:34 |
|
Evanlec
| cmn: using git fsck ---unreachable i see a bunch of blobs and commits , could it be one of those? | 15:35 |
| → OOPMan joined | 15:36 |
|
Evanlec
| cmn: the git-stash manpage says to try using: git fsck --unreachable | grep commit | cut -d\ -f3 | xargs git log --merges --no-walk --grep=WIP | 15:36 |
| → zastern joined | 15:36 |
| → kevwil joined | 15:36 |
|
milki
| Evanlec: how are we supposed to know which one it is. look at them and see | 15:36 |
|
Evanlec
| but that command fails complaining about the cut command delimiter must be a single character | 15:36 |
| → beasty joined | 15:36 |
|
Evanlec
| milki: how can I look at them? | 15:36 |
| ← beasty left | 15:36 |
| → beasty joined | 15:36 |
|
beasty
| hi guys | 15:36 |
|
gitinfo
| beasty: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on. | 15:36 |
|
milki
| they have references | 15:37 |
|
| you can git show them | 15:37 |
| ← tjadc left | 15:37 |
|
beasty
| i pondering when i do a 'git pull' on a production server | 15:37 |
|
milki
| or a sha | 15:37 |
|
Evanlec
| ok so `git show <sha1>' ? | 15:37 |
|
milki
| Evanlec: !tias | 15:37 |
|
gitinfo
| Evanlec: 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. | 15:37 |
|
beasty
| it takes up to 47 seconds before it's finished | 15:37 |
|
| is this normal ? | 15:37 |
| ← Gx4xx left | 15:37 |
|
milki
| beasty: depends on a variety of things | 15:38 |
| ← Ecesis1 left | 15:38 |
| → YoMomma joined | 15:38 |
|
beasty
| milki: like ? | 15:38 |
|
| it was just 1 file | 15:38 |
|
milki
| git doesnt pull individual files | 15:38 |
| → samphippen joined | 15:38 |
| ← osxorgate left | 15:38 |
| ← drougge left | 15:38 |
| → Mode-M joined | 15:38 |
|
beasty
| ok | 15:38 |
|
milki
| git syncs hisotry | 15:38 |
|
beasty
| but the machine is a p4 with 32gb ram | 15:39 |
| ← Zenopus left | 15:39 |
| ← hwrd|work left | 15:39 |
| → raatiniemi joined | 15:39 |
| → Loggie joined | 15:40 |
|
cmn
| it depends on the amount of references, how complex the history is, how packed or unpacked the objects in the repository are... | 15:40 |
| → Anders_J joined | 15:40 |
| ← OOPMan left | 15:40 |
|
milki
| beasty: http://git-scm.com/about/small-and-fast contains some information about what affects performance | 15:40 |
| ← ajw0100 left | 15:40 |
| ← daniel_- left | 15:42 |
| ← irqq left | 15:42 |
| → OOPMan joined | 15:44 |
| → harshpb joined | 15:44 |
|
Evanlec
| cmn: okay so my working tree of my exp branch still seems as it was before the git stash....just that the files are not tracked | 15:45 |
| → ajw0100 joined | 15:45 |
|
cmn
| branches don't have working trees | 15:46 |
|
Evanlec
| cmn: hmm, okay, | 15:46 |
| → irqq joined | 15:46 |
| → pandeiro joined | 15:47 |
|
Evanlec
| cmn: but the files seem to be as they were before i did my stashing silliness | 15:47 |
| → indel joined | 15:47 |
|
cmn
| have you actually determined that the stash was lost? | 15:47 |
|
Evanlec
| cmn: it seems to be...there is 2 saved stashes, | 15:47 |
|
| can I look at a stash particularly? | 15:48 |
| ← aisbaa left | 15:48 |
|
cmn
| yes, take some time to familiarise yourself with your tools | 15:48 |
| → turion joined | 15:48 |
| ← cakehero left | 15:48 |
|
Evanlec
| git show stash@{0} | 15:48 |
| → Zenopus joined | 15:48 |
|
Evanlec
| would that work? | 15:48 |
|
cmn
| does it? | 15:48 |
|
Evanlec
| it does | 15:49 |
|
| sorry, i know, try it yourself | 15:49 |
|
| i just dont want to lose anymore work! | 15:49 |
|
cmn
| the commands you say you did wouldn't get rid of any stashes | 15:49 |
|
thiago
| show can never destroy work | 15:49 |
| ← goshawk left | 15:50 |
|
Evanlec
| thiago: true | 15:50 |
|
| cmn: git stash pop doesn't get rid of a stash? | 15:50 |
| ← Hasbro left | 15:50 |
|
cmn
| only if it applies cleanly | 15:50 |
|
Evanlec
| it didnt | 15:51 |
|
| so i did a git reset HEAD --hard | 15:51 |
|
| so the stash is still there? | 15:51 |
| → steveoliver joined | 15:51 |
| ← FrenkyNet|work left | 15:51 |
|
cbreak
| git stash list | 15:52 |
|
Evanlec
| its funny because now back on my exp branch where I saved the stash, if i stash pop it shows conflicts | 15:52 |
|
| cbreak: i see two stashes with that...I think the latest might be the right one | 15:52 |
|
| if i didnt name the stash when i saved, what would it be called? | 15:52 |
|
cbreak
| stash@{1} or so | 15:52 |
|
Evanlec
| well yes | 15:53 |
|
| but it also says stash@{0}: On namespace: namespace refactor | 15:53 |
|
| namespace being the branch iw as on | 15:53 |
|
| and namespace refactor maybe is the stash name? | 15:53 |
| → john_anderson joined | 15:53 |
|
cbreak
| that's from the commit message you had checked out | 15:53 |
|
Evanlec
| its not a commit name | 15:53 |
|
thiago
| stashes don't have a commit message, so the command invents one for you | 15:53 |
|
| it's the branch you were on and the commit you had checked o ut | 15:54 |
|
Evanlec
| git log doesnt show any commit named "namespace refactor" | 15:54 |
|
cbreak
| yeah, and? | 15:54 |
|
Evanlec
| if I did "git stash save namespace refactor" would that explain it? | 15:54 |
| ← kevwil left | 15:54 |
|
turion
| hi! I'm having a little convoluted problem: I worked on myrepo/dev_someissue and a friend cloned my repo as "hisrepo" and did a lot of new work. Now I want to have his branch hisrepo/dev_someissue as a new branch myrepo/dev_someissue_hiswork. Should I do something like "git fetch hisrepo/dev_someissue:dev_someissue_hiswork"? | 15:54 |
|
Evanlec
| cbreak: so where did it come up with that "namespace refactor" text associated with that stash? | 15:55 |
|
cbreak
| as I said: it takes the commit message of the commit you had checked out | 15:55 |
|
Evanlec
| cbreak: right, but i cant find any such commit message | 15:56 |
|
Tohuw
| turion: So he as performed work on top of your branch, and you want those changes as a separate branch? | 15:56 |
|
Evanlec
| cbreak: if i saved it with a specific name, it wold use that instead of the commit message right? | 15:56 |
|
cbreak
| git log stash@{0} | 15:56 |
|
turion
| Tohuw, yes | 15:56 |
|
cbreak
| you can pick one if you want | 15:56 |
|
| but you said you didn't | 15:56 |
|
Evanlec
| cbreak: oh, there ti is | 15:57 |
| → psoo joined | 15:57 |
|
cbreak
| so it picked the message from your newest commit | 15:57 |
|
Evanlec
| cbreak: apparently it did | 15:57 |
|
| cbreak: strange that regular git log doesnt show that | 15:57 |
|
cbreak
| regular git log is git log HEAD | 15:57 |
|
| it only shows the current branch | 15:57 |
|
Evanlec
| oh | 15:57 |
|
cbreak
| NOT the one you happened to do git stash some time ago | 15:57 |
|
Evanlec
| i did the git stash today | 15:58 |
|
turion
| Tohuw, I'm also wondering how to set up the remote correctly. Do I have to do "git remote add -t dev_someissue hisrepo https://url"? Or is the -t switch not what I want? | 15:58 |
|
Tohuw
| turion: Furthermore, I assume you want to avoid having to do a local merge with your version of the branch (because otherwise you could simply merge in his changes, branch it, then on dev_someissue reset to an earlier commit) | 15:58 |
|
Evanlec
| the git log stash@{0} shows date oct 3 10:56 AM which sounds about right | 15:58 |
| → etcetera joined | 15:58 |
|
Evanlec
| of when i stashed | 15:58 |
|
turion
| Tohuw, yes I'd like to avoid that | 15:59 |
|
Tohuw
| turion: If you have the repo set remotely already, then you just need to push the branch. | 15:59 |
| → marshall joined | 15:59 |
|
marshall
| hey git | 15:59 |
|
gitinfo
| marshall: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on. | 15:59 |
| ← samphippen left | 15:59 |
|
EugeneKay
| You're a git | 15:59 |
| ← logik-bomb left | 15:59 |
| → kevwil joined | 15:59 |
|
turion
| Tohuw: I haven't set his repo up yet | 16:00 |
| → juvenal joined | 16:00 |
|
Tohuw
| turion: Well, how about this: checkout dev_someissue at the commit before he made changes, then create a new branch from that level, then merge in his changes from his branch. | 16:00 |
| ← Dno left | 16:00 |
|
Tohuw
| turion: Why does he need an entirely separate repo? | 16:00 |
| ← psoo left | 16:01 |
| → DanyO83 joined | 16:01 |
|
turion
| Tohuw: Well, maybe he doesnt, but we started off a bit unorganised | 16:01 |
|
marshall
| i've updated the submodules in my dotfiles and pushed to github, but every time i pull from the origin, i get unstaged new commits for each submodule. what is going wrong? | 16:01 |
|
Tohuw
| turion: In general, a project should be one repo, and all collaborators work off that repo. There are obvious exceptions to that, but for a small project, it is usually painful to have complex multi-repo setups. | 16:02 |
| → mityaz joined | 16:02 |
| ← hyperair left | 16:03 |
|
Tohuw
| turion: May I suggest you give a read through this: http://nvie.com/posts/a-successful-git-branching-model/ | 16:03 |
|
turion
| Tohuw: Ok, I'll work into that direction. So I should give him write-access and just let him push his branch under a different name? | 16:03 |
|
Tohuw
| turion: Yes, he could certainly do that. In general, when I collaborate on a repo, major changes are pushed as unique branches, because it's not too hard to merge things together when needed. It's not like you're paying by the branch. Branch away! | 16:04 |
| → bits8mybytes joined | 16:04 |
| ← bits8mybytes left | 16:04 |
| → bits8mybytes joined | 16:04 |
|
Tohuw
| IMO, the best habit you can develop when using Git is to "abuse branches". | 16:04 |
| ← notVert left | 16:04 |
| → aantix joined | 16:04 |
|
turion
| ok, that's a good advice | 16:05 |
|
Evanlec
| cbreak: thanks for your help, i popped the stash and it appears my work is restored | 16:05 |
|
| cmn: thank you as well | 16:05 |
|
cbreak
| np | 16:05 |
|
Evanlec
| cbreak: i think in the future, I should commit changes on my feature/exp branch, instead of stashing | 16:06 |
|
cbreak
| marshall: chances are that you don't understand how submodules work | 16:06 |
|
turion
| Tohuw: but in that case he has to "git checkout dev_someissue", "git checkout -b "dev_someissue_mysolution" and then "git push dev_someissue_mysolution" | 16:06 |
| ← suy left | 16:06 |
| → AlbireoX joined | 16:06 |
|
Evanlec
| unless im making a very quick change on another branch | 16:06 |
|
turion
| and somehow resetting the position of his dev_someissue to my position | 16:06 |
| ← elbeardmorez left | 16:06 |
| ← Internet13 left | 16:07 |
|
cbreak
| marshall: if you have a submodule, then that submodule is a full self contained git repository | 16:08 |
|
| the parent git repository decides on what to do with it, in particular which submodule commit it wants | 16:08 |
| ← jargon- left | 16:09 |
|
cbreak
| merging in the parent or the submodule doesn't affect the other | 16:09 |
| ← apok left | 16:09 |
|
thorbjornDX
| Hi, I have a branch with about a half dozen commits that I would like to put in another branch, and I would like to roll back the first branch to before those commits. What are my options? (none of these commits are public) | 16:09 |
|
Evanlec
| question: if git status says: changes not stashed for commit: deleted <some-file> , "use git add/rm <file> to update what will be committed", i should use git rm for deleted files right? | 16:09 |
| → SegFaultAX|work joined | 16:09 |
|
cbreak
| thorbjornDX: merge them into the other then reset them away from the first | 16:09 |
| → samphippen joined | 16:09 |
|
cbreak
| Evanlec: git add | 16:10 |
|
Evanlec
| or should I use git add, as in to "add" the deletion | 16:10 |
|
| oh k | 16:10 |
|
thorbjornDX
| cbreak: would it work to just branch off of the main branch and then 'reset' that branch? | 16:10 |
|
cbreak
| you can use git rm, but add stages everything | 16:10 |
|
Evanlec
| what would git rm do? | 16:10 |
|
| ok | 16:10 |
|
cbreak
| and if the file is already gone, you might have to use rm --cached if you opt to using rm | 16:10 |
| ← sobczyk left | 16:10 |
|
Evanlec
| ah right | 16:10 |
| ← flijten left | 16:10 |
| → imMute joined | 16:10 |
| ← imMute left | 16:10 |
| → imMute joined | 16:10 |
|
Evanlec
| i believe it is gone | 16:10 |
|
cbreak
| thorbjornDX: what? | 16:10 |
|
Evanlec
| so will i use git add or git rm --cached? | 16:11 |
|
cbreak
| your pick | 16:11 |
|
Evanlec
| doesnt matter? | 16:11 |
|
cbreak
| nope. | 16:11 |
|
Evanlec
| ok | 16:11 |
|
| cool | 16:11 |
|
cbreak
| syntax is different. result is the same. | 16:11 |
| ← _huoxito left | 16:11 |
|
thorbjornDX
| cbreak: git checkout <branch w/ commits>; git branch <newbranch>; git reset HEAD^^^^^; | 16:12 |
|
cbreak
| sure. | 16:12 |
|
| if the branch you want to move the commits into doesn't already exist | 16:12 |
|
Evanlec
| cbreak: oh git is so smart, i did git rm <file> and now it has it staged as a rename | 16:12 |
| ← jesseFromYVR left | 16:12 |
|
Evanlec
| cbreak: brecause really i just moved the file | 16:12 |
|
thorbjornDX
| cbreak: ah, yes. That's the case. Thanks :) | 16:12 |
| → Internet13 joined | 16:12 |
|
cbreak
| Evanlec: that's just rename detection. git blame is much cooler | 16:13 |
|
| that thing can even detect if you move part of a file into an other file | 16:13 |
| → ReekenX joined | 16:13 |
| ← freeed left | 16:13 |
| → Hasbro joined | 16:13 |
|
cbreak
| thorbjornDX: also, you'd probably git reset --hard 1231412 | 16:13 |
|
| --hard to also kill the working/index changes | 16:14 |
|
thorbjornDX
| cbreak: stashed already :) | 16:14 |
|
Evanlec
| ooh | 16:14 |
|
cbreak
| stashing is not the right thing to do with them | 16:14 |
|
Evanlec
| cbreak: i seem to recall rename detection not always being a feature in way older git versions | 16:15 |
|
thorbjornDX
| cbreak: well, I have unstaged changes that I don't want to deal with | 16:15 |
|
Evanlec
| i could be wrong | 16:15 |
|
cbreak
| Evanlec: it has always been a feature. | 16:15 |
|
| not sure how good it was | 16:15 |
|
Evanlec
| ok | 16:15 |
|
cbreak
| or if it was implemented | 16:15 |
| ← ISF left | 16:15 |
| ← harshpb left | 16:15 |
|
Evanlec
| well I alwys try to do 'git mv' | 16:15 |
|
cbreak
| but it was accounted for :) | 16:15 |
| ← chaz left | 16:15 |
|
thorbjornDX
| cbreak: I'm adding another developer to this project, and I'd like to roll back a WIP branch that I had (and maybe use it later) | 16:15 |
|
Evanlec
| to avoid the added / deleted stuff | 16:15 |
| ← irqq left | 16:15 |
|
cbreak
| git mv is just a shorthand for mv && git add | 16:15 |
|
Evanlec
| Ahh | 16:15 |
|
| cbreak: useful to know | 16:16 |
|
cbreak
| it does nothing special at all | 16:16 |
| → freeed joined | 16:16 |
|
cbreak
| rename detection is a feature of git diff/git log/git blame/... | 16:16 |
|
Evanlec
| and git rm is shortcut for rm ** rm --cached ? | 16:16 |
|
alexander__b
| cbreak: no it's short for mv && git rm [oldfile] && git add [newfile], right? | 16:16 |
|
Evanlec
| && | 16:16 |
|
| i mean | 16:16 |
| → jbrechtel joined | 16:16 |
|
cbreak
| alexander__b: same thing. | 16:16 |
| → alpjor joined | 16:16 |
|
cbreak
| alexander__b: if you move a file, git will tell you that you have a new untracked and an unstaged deletion | 16:17 |
|
| you can use git add to resolve both | 16:17 |
|
| or you can use git rm to resolve the unstaged deletion | 16:17 |
| → Vinnie_mac joined | 16:17 |
|
cbreak
| thorbjornDX: then staging is definitely NOT what you want | 16:18 |
|
| stashing not either | 16:18 |
|
| you'd ideally just make a new branch | 16:18 |
| ← friskd left | 16:19 |
|
thorbjornDX
| cbreak: I have two things I'm dealing with: 1) unstaged changes that I'd rather not deal with at this point (stashed), 2) un-pushed commits that I'd like to store in a non-public branch (branched + reset --hard) | 16:19 |
|
cbreak
| just commit the unstaged changes... | 16:20 |
|
| put them away in some other branch | 16:20 |
|
| stashes are way too easy to lose track off | 16:20 |
|
thorbjornDX
| cbreak: okay. Are they easy to lose just because of how they're pushed/popped? | 16:21 |
|
| (and named) | 16:21 |
| → metcalfc joined | 16:21 |
|
cbreak
| mainly because people forget that they have them | 16:21 |
|
| or where they are | 16:21 |
|
| just make a branch... | 16:21 |
|
thorbjornDX
| cbreak: point taken. Making a branch now | 16:21 |
|
Evanlec
| cbreak: agreed about stashes | 16:21 |
|
| after this scare | 16:21 |
|
thorbjornDX
| I mainly use stashes when I make changes in the wrong branch, and need to merge them with another one | 16:22 |
|
cbreak
| I don't use stashes for anything I want to keep for more than a few minutes | 16:22 |
| → Shusshu joined | 16:22 |
|
Evanlec
| thorbjornDX: yes thats hwat I do, but if the stash doesnt merge clearnly with the other branch, then you're in a mess | 16:22 |
| ← marshall left | 16:22 |
|
alexander__b
| cbreak: /msg aarolilja tippa d e siste | 16:22 |
|
| err | 16:22 |
|
Evanlec
| like I am now | 16:22 |
|
thorbjornDX
| Evanlec: ah, I gotcha | 16:23 |
| → fly9 joined | 16:23 |
|
Evanlec
| i ended up doing git reset HEAD --hard | 16:23 |
|
| but then didnt know where my stash went | 16:23 |
|
| luckily it seemed to still be around | 16:23 |
| ← Shusshu left | 16:23 |
|
Evanlec
| in git stash list | 16:23 |
|
thorbjornDX
| 'git stash list' and 'git tag -l' always confuse me, haha | 16:23 |
|
cbreak
| stash pop only pops if the popping applies cleanly | 16:23 |
|
Evanlec
| but my tree i still messed up | 16:23 |
|
| cbreak: yes, that is what saved me | 16:24 |
|
cbreak
| it won't mess up anything | 16:24 |
|
Evanlec
| it didnt apply cleanly so the stash stuck aroun | 16:24 |
|
cbreak
| it'll just apply like a cherry-pick | 16:24 |
|
| and if it fails, you have to resolve merge conflicts | 16:24 |
| ← les_sylvains left | 16:24 |
|
Evanlec
| cbreak: well what i meant to do was stash pop, and then commit only one file | 16:24 |
|
| that i wanted committed on master | 16:24 |
|
| i didnt want to merge all the changes | 16:25 |
|
| what would've been the correct course of action? | 16:25 |
|
cbreak
| stashes are everything | 16:25 |
|
Evanlec
| considering i made the change on the wrong branch, but wanted that file commit on master branch | 16:25 |
|
cbreak
| if you want to only part of a stash | 16:25 |
|
Evanlec
| yea | 16:25 |
|
cbreak
| then you'll have to manually work | 16:25 |
|
Evanlec
| hmm, well isnt there a better way thatn stash? | 16:25 |
|
cbreak
| just switch to the branch and commit | 16:26 |
|
Evanlec
| maybe just git co master, commit <blah> | 16:26 |
|
| yea | 16:26 |
|
| but it'd probably complain about overwriting working files or w/e still | 16:26 |
|
| which I think is why I stashed in the first place | 16:26 |
| ← dpino left | 16:26 |
|
Evanlec
| so maybe I should've commited, switch to master, and merge that commit | 16:27 |
|
| commited just that file I mean | 16:27 |
|
cbreak
| no | 16:27 |
| ← chaiz left | 16:27 |
|
Evanlec
| or make a new branch | 16:27 |
|
| idk | 16:27 |
|
cbreak
| if you can't switch branches, then stash | 16:27 |
|
| and at destination stash pop | 16:27 |
| → jargon- joined | 16:27 |
|
cbreak
| and then just add and commit the file you want | 16:27 |
|
Evanlec
| cbreak: but then i run into the issue i just had | 16:28 |
|
| ok | 16:28 |
|
cbreak
| what issue? | 16:28 |
|
Evanlec
| but then what to do with the mess left over? | 16:28 |
|
cbreak
| no mess | 16:28 |
|
Evanlec
| when i stash popped i got all kindds of conflicts | 16:28 |
|
cbreak
| just resolve them | 16:28 |
|
Evanlec
| and things i didnt want | 16:28 |
|
| i didnt want those | 16:28 |
|
| i just wanted to commit that one file | 16:28 |
|
cbreak
| then git stash apply instead of pop | 16:28 |
|
| and remove the rest with git checkout -p for example | 16:29 |
|
Evanlec
| or git reset hard? | 16:29 |
|
cbreak
| if you want to nuke everything | 16:29 |
|
Evanlec
| thts a dangerous command i know | 16:29 |
|
| ;p | 16:29 |
|
| master was clean before the stash pop though | 16:29 |
| → FrenkyNet joined | 16:30 |
| ← Hasbro left | 16:30 |
| → xerxas joined | 16:30 |
|
Evanlec
| cbreak: so there's no way to just git add/merge/commit a file from one branch to another? | 16:30 |
|
EugeneKay
| You can fake it by doing a merge and then reset-ing all except the file(s) you wanted to merge | 16:31 |
|
Evanlec
| leaving the rest of the changes alone | 16:31 |
| ← LimeBlast left | 16:31 |
|
EugeneKay
| This is because git merges trees | 16:31 |
|
Evanlec
| EugeneKay: ah | 16:31 |
|
| EugeneKay: seems kinda hacky | 16:31 |
|
EugeneKay
| That's because it is. The usual answer is "don't do that" | 16:31 |
|
Evanlec
| but I trust you know what you're tlaking about | 16:32 |
| → boombatower joined | 16:32 |
|
Evanlec
| its often the case though that I make a change on the wrong branch | 16:32 |
| ← klj613 left | 16:32 |
|
Evanlec
| and only want one change from that branch to be on a different brach | 16:32 |
|
| not all th changes | 16:32 |
|
EugeneKay
| cherry-pick the commit? | 16:32 |
| ← afuentes left | 16:32 |
|
Evanlec
| well usually im on an exp branch so have no committed | 16:33 |
|
| but thats anoter way | 16:33 |
|
EugeneKay
| !float | 16:33 |
|
gitinfo
| If you have made a change in your working directory and have NOT YET COMMITTED, you may "float" that change over to another (`git checkout oldbranch`) or new (`git checkout -b newbranch`) branch and commit it there. If the files you changed differ between branches, the checkout will fail. In that case, `git stash` then checkout, and `git stash apply` and go through normal conflict resolution. | 16:33 |
|
Evanlec
| exp branch doesnt matter if i make sily commits anyway | 16:33 |
| → ada1 joined | 16:33 |
| → kenperkins joined | 16:33 |
|
Evanlec
| EugeneKay: ah cool | 16:33 |
| ← Desproges left | 16:34 |
|
Evanlec
| EugeneKay: only thing is, git stash apply, i didnt want all the changes applied, just one file | 16:34 |
|
| but we covered this | 16:34 |
|
EugeneKay
| git-add just the one file, make a commit, then cherry-pick it ;-) | 16:35 |
|
alexander__b
| is there a way to view diff with vim? i.e. not to open the affected files with vim, but to just view the diff file with vim. | 16:35 |
| → jonshea joined | 16:35 |
| ← ReekenX left | 16:35 |
|
Evanlec
| EugeneKay: yea, i think thats the best way | 16:35 |
|
turion
| Tohuw: Thanks a lot, it worked very well! | 16:35 |
|
EugeneKay
| git-stash does essentially this, but it doesn't use a normal branch - it stores it under refs/stashes/(I think... I don't use it because stashes are evil) | 16:35 |
|
Evanlec
| EugeneKay: it was made evne more complicated hwoever because i also moved the file, and mad changes to it | 16:35 |
| → skyf joined | 16:35 |
| → cheriv joined | 16:35 |
| → sorin joined | 16:36 |
| ← thierryp left | 16:36 |
|
EugeneKay
| You poor git | 16:36 |
|
Evanlec
| poor git | 16:37 |
| ← turion left | 16:37 |
| ← C8H10N4O2 left | 16:38 |
|
Evanlec
| git doesnt like the way i work | 16:38 |
|
| but i like the way git works | 16:38 |
|
| mostly | 16:38 |
|
| if that makes any sense | 16:38 |
|
EugeneKay
| Have you read !concepts ? | 16:38 |
|
gitinfo
| "Git Concepts Simplified" explains the basic structures used by git, which is very helpful for understanding its concepts. http://sitaramc.github.com/gcs/ | 16:38 |
|
Evanlec
| Ah, no i havent | 16:38 |
|
EugeneKay
| It helps | 16:39 |
|
Evanlec
| EugeneKay: I'll add that to our teams developer wiki | 16:39 |
|
| we're all in process of migrating from svn to git | 16:39 |
| → Sky[x] joined | 16:39 |
|
EugeneKay
| You poor gits | 16:39 |
|
Evanlec
| im actually far ahead of the other guys with git | 16:39 |
|
| It's scary to think that because I still get completely lost like earlier today | 16:39 |
|
| scary to think of them trying to use git for anything non-trivial | 16:40 |
|
EugeneKay
| It bugs me jsut how user-unfriendly git can be | 16:40 |
|
Evanlec
| yes, myself included | 16:40 |
|
EugeneKay
| And amazes me just how well I've learned it >_> | 16:40 |
|
Evanlec
| I tried mercurial briefly because it seems to be more friendly, but | 16:40 |
|
EugeneKay
| The problem with Hg is that Linus didn't write it | 16:41 |
| ← sgambino left | 16:41 |
|
Evanlec
| then I was appauled (sp?) that it did not have lightweight branching | 16:41 |
| → sgambino_ joined | 16:41 |
|
EugeneKay
| appalled | 16:41 |
|
Evanlec
| i had to copy my entire tree to make a new branch | 16:41 |
|
EugeneKay
| Unless you're referring to PaulePanter | 16:41 |
|
Evanlec
| which was totally unacceptable | 16:41 |
|
| one of my favorite features of git is lightweight branching, one directory for EVERYTHING | 16:41 |
| ← giallu left | 16:41 |
|
Evanlec
| i hate cluttering my fs | 16:41 |
| ← raatiniemi left | 16:42 |
|
EugeneKay
| Yeah, that comes from how branches exist in git | 16:42 |
| ← microcode left | 16:42 |
|
Evanlec
| they're awesome | 16:42 |
|
EugeneKay
| It's just a reference to a commit SHA | 16:42 |
|
Evanlec
| but they confuse the shit out of svn users | 16:42 |
|
EugeneKay
| There's some stuff on top of that like the !reflog | 16:42 |
|
gitinfo
| The git reflog (`git log -g`) records the SHAs of your HEADs for 2+ weeks. `git checkout -b myrestore OLDSHA` and `git reset --hard OLDSHA` will relink to that state via a new and current branch respectively, see http://sethrobertson.github.com/GitFixUm/ for full details. WARNING: reset --hard will trash any uncommitted changes! Visualize with: gitk --all --date-order `git log -g --pretty=%H` | 16:42 |
|
EugeneKay
| Make them !unlearn ;-) | 16:42 |
|
gitinfo
| Users of centralized VCSes will need to unlearn a number of habits in order to learn git. Many commands, such as "checkout" and "revert" bear little in common to those holding the same name in other systems. | 16:42 |
|
Evanlec
| lol | 16:42 |
|
| true | 16:43 |
|
| the reflog i still havent explored much yet | 16:43 |
|
| one issue we're facing with migration, and maybe you have a good solution | 16:43 |
|
EugeneKay
| I've not used it in...... ages. | 16:43 |
| ← MyTallest left | 16:43 |
|
Evanlec
| is with svn we're using svn:externals, which allows us to do a partial checkout from our shared lib repository | 16:43 |
|
EugeneKay
| It depends how your SVN repo(s) is(are) set up. | 16:43 |
|
Evanlec
| into each application | 16:43 |
|
| with git, you cannot do a partial checkout | 16:44 |
|
EugeneKay
| Sure you can. Man git-archive | 16:44 |
|
Evanlec
| okay | 16:44 |
|
EugeneKay
| man git-archive | 16:44 |
|
gitinfo
| the git-archive manpage is available at http://git-scm.com/docs/git-archive.html | 16:44 |
|
EugeneKay
| Stupid bot | 16:44 |
|
esc
| you can also clone with --depth, right | 16:44 |
|
Evanlec
| there was another article i saw called git subtree | 16:44 |
|
EugeneKay
| You can, but don't | 16:44 |
|
| !subrepos | 16:44 |
|
gitinfo
| [!subprojects] So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely seperate. Otherwise your best options are "!submodule" "!gitslave" and "!subtree" Try typing those commands into this IRC channel. | 16:44 |
| → MyTallest joined | 16:45 |
|
EugeneKay
| It depends upon how you're !deploy ing | 16:45 |
|
gitinfo
| Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html | 16:45 |
|
Evanlec
| !subtree | 16:45 |
|
gitinfo
| The subtree merge method is great for incorporating a subsidiary git repo into your current one with "unified" history. Read http://git-scm.com/book/en/Git-Tools-Subtree-Merging for more info, or try one of the !subtree_alternatives | 16:45 |
| → Sigma joined | 16:45 |
|
EugeneKay
| Submodules are pretty common for purely library subrepos | 16:45 |
|
| But they have..... issues. | 16:45 |
|
Evanlec
| EugeneKay: but often we dont want the entire library subrepo | 16:45 |
|
| its not that its huge but | 16:45 |
|
| we'd have to re-arrange paths and such | 16:45 |
|
EugeneKay
| Just a subdir of the library? | 16:45 |
|
Evanlec
| how? | 16:46 |
|
| I mean | 16:46 |
|
EugeneKay
| I mean, what portion of the lib do you want? | 16:46 |
|
| Is it just library/foo/ ? | 16:46 |
|
Evanlec
| well for example | 16:46 |
|
| yes | 16:46 |
|
moben
| couldn't you split it up? | 16:46 |
|
Evanlec
| library/foo/ | 16:46 |
|
| i only want foo | 16:46 |
|
| in my main repo | 16:46 |
|
EugeneKay
| Then split up your library into library-foo/, library-bar/, etc | 16:46 |
|
| And submodule that | 16:46 |
|
Evanlec
| mmm...that sounds a bit ugly | 16:46 |
|
| i mean | 16:46 |
|
| there's 8 directories in the lib repo | 16:47 |
|
EugeneKay
| That's only 8 repos | 16:47 |
|
Evanlec
| ... | 16:47 |
|
imMute
| Git: I hope you have a big hard drive. sucks, but that's how git is (currently) | 16:47 |
|
Evanlec
| EugeneKay: wouldnt subtree or something be better solution? | 16:47 |
|
EugeneKay
| I have one project here with 37 submodules | 16:47 |
|
Evanlec
| EugeneKay: we have the library repo in git now btw | 16:47 |
|
EugeneKay
| subtree is for including | 16:47 |
| ← berndj left | 16:48 |
|
EugeneKay
| I think you could make it do that, but I dunno | 16:48 |
|
moben
| Evanlec: subtree is what you then use to get the split up libs into your repo | 16:48 |
|
Evanlec
| yea | 16:48 |
|
| thats kinda what I thought | 16:48 |
|
EugeneKay
| If your lib is really 8 different logical parts then each part should be its own repo | 16:48 |
|
Evanlec
| like we just want libs/Session/LDAP/ in Myrepo/LDAP | 16:48 |
|
| EugeneKay: okay fair enough but | 16:48 |
| ← jbrechtel left | 16:49 |
|
Evanlec
| EugeneKay: i dont know if thats the case | 16:49 |
|
| ive not looked at it thoroughly | 16:49 |
|
EugeneKay
| Talk to your project manager ;-) | 16:49 |
|
Evanlec
| he quit | 16:49 |
|
| i mean | 16:49 |
| → microcode joined | 16:49 |
|
EugeneKay
| HA | 16:49 |
|
Evanlec
| the guy who wrote the lib is long gone | 16:49 |
|
| :\ | 16:49 |
|
| heh | 16:49 |
|
| but yea moben i think we'll try git subtree | 16:50 |
|
| for including bits of the shared-lib repo | 16:50 |
|
EugeneKay
| You've just given me a feature idea for my git-library project | 16:50 |
|
Evanlec
| !subtree | 16:50 |
|
gitinfo
| The subtree merge method is great for incorporating a subsidiary git repo into your current one with "unified" history. Read http://git-scm.com/book/en/Git-Tools-Subtree-Merging for more info, or try one of the !subtree_alternatives | 16:50 |
|
EugeneKay
| Yay feature creep | 16:50 |
|
Evanlec
| !subtree_alternatives | 16:50 |
|
gitinfo
| [!subtree_alt] The git subtree merge method is hard to export changes from.. https://github.com/apenwarr/git-subtree provides another method which appears to be easier to export changes from. Also as a no-change-exported method, see https://metacpan.org/module/git-stitch-repo which claims to generate a unified history instead of merged branches. | 16:50 |
| ← kevwil left | 16:51 |
|
Evanlec
| hmm, hard to export changes from | 16:51 |
|
sigmonsays_
| Is there an easy command to see all changes from 2 weeks ago for each branch? | 16:51 |
|
EugeneKay
| Meaning for contributing back to your library from MyProject | 16:51 |
|
Evanlec
| I dont think we'll ever be modifying the subrepo files | 16:51 |
|
EugeneKay
| sigmonsays_ - !treeish | 16:51 |
|
gitinfo
| sigmonsays_: A tree-ish is something that looks like a tree. Read 'man gitrevisions' and http://git-scm.com/book/en/Git-Tools-Revision-Selection | 16:51 |
|
Evanlec
| EugeneKay: yea, i dont think we'll ever be doing that | 16:51 |
| → sq-one joined | 16:51 |
|
Evanlec
| EugeneKay: if anything we'd modify the library repo itself | 16:51 |
|
EugeneKay
| Evanlec - then no worries | 16:52 |
|
Evanlec
| since the repo is shared across many projects | 16:52 |
| → cakehero joined | 16:52 |
| → friskd joined | 16:52 |
| → hwrd|work joined | 16:52 |
|
Evanlec
| and thus making changes must be done very carefully | 16:52 |
|
| EugeneKay: coolness, Thank you so much for your advice | 16:52 |
| ← friskd left | 16:52 |
|
EugeneKay
| Sure. | 16:52 |
|
Evanlec
| moben: ty as well | 16:52 |
| ← funnyfingers left | 16:53 |
| → funnyfingers joined | 16:54 |
| → jbrechtel joined | 16:54 |
| ← duckx left | 16:54 |
| → alien_talk joined | 16:56 |
| ← Vinnie_mac left | 16:57 |
|
alien_talk
| hey i'm using cent-os and when i'm trying to do a "git daemon..." it says git: daemon is not a git command | 16:57 |
|
| any clues? | 16:57 |
| → ReekenX joined | 16:57 |
| ← SegFaultAX|work left | 16:57 |
|
cmn
| install it | 16:58 |
|
EugeneKay
| alien_talk - git-daemon is not installed in the git-core package. | 16:58 |
|
| alien_talk - what are you trying to do, though? | 16:58 |
| → Hasbro joined | 16:58 |
| → apok joined | 16:58 |
| ← msmithng left | 16:59 |
|
alien_talk
| was just tyring to share a repo on a remote server | 16:59 |
|
| thanks EugeneKay and cmn didn't know it wasn't part of the core | 17:00 |
|
EugeneKay
| Do it via ssh | 17:00 |
| → jesseFromYVR joined | 17:01 |
|
alien_talk
| was juts following this tutorial:http://www.davegardner.me.uk/blog/2010/01/29/setting-up-git-on-centos-5-server/ | 17:02 |
| ← jbrechtel left | 17:03 |
| ← LeMike1 left | 17:03 |
|
EugeneKay
| !blog | 17:03 |
|
gitinfo
| Blog posts, while helpful and informative, are quite often outdated, give bad advice, or are just plain wrong. Please don't rely solely upon them, or treat them as authoritative. | 17:03 |
| → LeMike joined | 17:04 |
|
EugeneKay
| And that is a terrible post - it recommends using git-daemon, which uses git://. NOT what you want for security. !ssh | 17:04 |
|
gitinfo
| Please use SSH to talk to remote repos. http:// and git:// are completely unsecured. You can try to do "smart" https://, but it is troublesome to configure(web server/cgi authentication mechanisms, ACLs, etc) and use(client CA certificates, firewalling, protocol inefficiency) | 17:04 |
| ← mtrd`w left | 17:04 |
| ← angelsl left | 17:04 |
|
EugeneKay
| !gitolite would serve a lot better for 2+ people, or if it's just you then you cna use the simple user@host:/path/to/repo.git/ syntax for git-remote | 17:05 |
|
gitinfo
| Want to host as many git repos (and users!) as you like, on your own server, with fine-grained access control? You want gitolite: https://github.com/sitaramc/gitolite - Documentation: http://sitaramc.github.com/gitolite/master-toc.html | 17:05 |
|
EugeneKay
| Which runs over SSH | 17:05 |
|
alien_talk
| thanks | 17:06 |
|
EugeneKay
| Sure | 17:06 |
| ← glennpratt left | 17:06 |
| → glennpratt joined | 17:07 |
| → eijk joined | 17:07 |
| → kukks joined | 17:08 |
| ← kukks left | 17:08 |
| → kukks joined | 17:08 |
| → psoo joined | 17:08 |
| ← psoo left | 17:08 |
| ← apok left | 17:08 |
| → apok joined | 17:09 |
| → SegFaultAX|work joined | 17:10 |
| ← Hasbro left | 17:10 |
| ← shruggar left | 17:10 |
| → jaequery joined | 17:10 |
| → fletch_ joined | 17:12 |
| ← adamben left | 17:12 |
| ← einonm left | 17:14 |
| → goshawk joined | 17:14 |
| → giallu joined | 17:14 |
| → harshpb joined | 17:15 |
| → duckxx joined | 17:16 |
| → dustingetz joined | 17:16 |
| ← fornext left | 17:17 |
| → ncr100 joined | 17:17 |
| → armenb joined | 17:17 |
| → Raging_Hog joined | 17:17 |
| ← swiety left | 17:17 |
| ← berserkr left | 17:18 |
| → marshall joined | 17:18 |
| ← Vile left | 17:19 |
| → duckx joined | 17:19 |
| → SirCmpwn joined | 17:19 |
| ← PigeonFriend left | 17:19 |
| → kumbayo joined | 17:20 |
| ← duckxx left | 17:22 |
| ← awilkins left | 17:22 |
| ← etcetera left | 17:22 |
|
armenb
| I have a git-svn-related question. do any organizations use a single git-svn checkout to front for multiple people who want to use git amongst themselves? | 17:23 |
| ← Anders_J left | 17:24 |
| ← harshpb left | 17:27 |
| ← sorin left | 17:27 |
| → harshpb joined | 17:28 |
| ← tango_ left | 17:28 |
| → jez joined | 17:28 |
| gitinfo set mode: +v | 17:28 |
|
jez
| guys, I sent a message to the git mailing list about fixing the git p4merge script and got no useful replies. Any ideas how I can get someone to care? :-) | 17:29 |
| → etcetera joined | 17:29 |
| ← duckx left | 17:30 |
| → shtrb joined | 17:30 |
| → tango_ joined | 17:30 |
| → martinjlowm joined | 17:30 |
| ← iguanna left | 17:30 |
|
milki
| more examples, motivation, test cases, and maybe an approach to a patch solution? | 17:31 |
| ← trungqtran left | 17:31 |
|
jez
| i've basically shown in my post what a patch would look like | 17:31 |
| → iguanna joined | 17:32 |
| → iguanna_ joined | 17:33 |
| ← shtrb left | 17:34 |
| → shtrb joined | 17:34 |
| → trungqtran joined | 17:34 |
|
shtrb
| I just learn the hard way that apperntly git reset --hard does not restore all info : I have some files (~20K) that are shared via a dropbox account and all files are backed up with git localy. I have a space problem so when the dropbox account was off I deleated the files then do a git --hard reset and tried to resync via the dropbox app, apperntly it had seen the delete and add operation so I just delated ~4Gb of data and started to upload that. | 17:34 |
| → les_sylvains joined | 17:35 |
| ← marthinal left | 17:36 |
| ← iguanna left | 17:36 |
| iguanna_ → iguanna | 17:36 |
| ← mvensky left | 17:36 |
|
armenb
| is there a way to push commits between two bare repositories? | 17:37 |
|
kumbayo
| Is there a way to tell git diff certain lines are "boring" like whitespace, }, END_IF, end sub, ... Lines that contain no useful information, that should be just added to a hunk instead of staying there as context between 2 hunks | 17:37 |
| ← babilen left | 17:37 |
| → marthinal joined | 17:37 |
|
armenb
| e.g. if there are users on two sides of a firewall | 17:37 |
| → sorin joined | 17:38 |
| ← Synthead left | 17:38 |
|
milki
| kumbayo: man diff or provide your own diff program | 17:39 |
| → Synthead joined | 17:39 |
| → bc joined | 17:39 |
| ← harshpb left | 17:39 |
| → nelk joined | 17:39 |
|
milki
| armenb: make a hole in the wall | 17:39 |
| → harshpb joined | 17:40 |
|
armenb
| milki: thanks, but that's not an option. | 17:40 |
|
bc
| To revert only some changes between head and a particular commit, I would use `git reset -p a3f44c' right? | 17:40 |
|
milki
| the do it offline with physical media and bundles/patches | 17:41 |
|
bremner
| armenb: what do bare repos have to do with firewalls? | 17:41 |
|
milki
| bc: !fixup | 17:41 |
|
gitinfo
| bc: 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! | 17:41 |
| → jdunck joined | 17:41 |
|
armenb
| bremner: there are two sets of users, and they cannot access each others' networks. however, the repositories lie on networks that can access each other. | 17:42 |
|
imMute
| that doesn't make sense | 17:42 |
|
EugeneKay
| armenb - sure, a bare repo can have a remote the same as a normal user | 17:42 |
|
| You can't do any work-tree operations(such as merge) however | 17:42 |
|
bremner
| armenb: can you you use hooks to mirror (essentially what EugeneKay suggests) | 17:42 |
|
armenb
| a simple solution to this seems to be to create a non-bare repo somewhere between the two bare repos and use it to just shuttle commit objects back and forth, even through a cron job | 17:43 |
|
| I want to avoid that step altogether and push between the bare repos. is this possible? | 17:43 |
| → friskd joined | 17:43 |
|
imMute
| armenb: you can push between bare repos, just like regular repos | 17:43 |
|
armenb
| hmm, ok | 17:44 |
|
bc
| milki: the problem is that I want to revert only some specific portions of code. The GitFixUm link would have me do this: git reset --hard @{u} | 17:44 |
| ← Evanlec left | 17:44 |
| ← dhruvasagar left | 17:45 |
|
milki
| reset will not do portions of commits | 17:45 |
|
| youll probably need to do this manually | 17:45 |
|
| git diff rev > patch | 17:46 |
|
| edit it and apply | 17:46 |
| → friskd_ joined | 17:47 |
| ← friskd left | 17:47 |
| friskd_ → friskd | 17:47 |
|
bc
| milki: I see, thank you | 17:47 |
| ← LekeFly left | 17:48 |
| ← rvsjoen left | 17:48 |
| → C8H10N4O2 joined | 17:49 |
| ← harshpb left | 17:49 |
| → ncd|leeN joined | 17:49 |
| ← delt0r left | 17:50 |
| → rubious joined | 17:50 |
| → arturaz joined | 17:50 |
| → irqq joined | 17:50 |
| ← Tommy[D] left | 17:51 |
| → btree joined | 17:51 |
| → rvsjoen joined | 17:51 |
| ← rvsjoen left | 17:51 |
| → rvsjoen joined | 17:51 |
| ← indel left | 17:51 |
| → btanaka joined | 17:52 |
| → Tommy[D] joined | 17:52 |
| ← leeN left | 17:53 |
| ← mmc1 left | 17:54 |
| → pantsman joined | 17:55 |
| → duckxx joined | 17:57 |
| → Goplat joined | 17:59 |
| → carpeliam joined | 17:59 |
| → jbrechtel joined | 17:59 |
| → jalama joined | 17:59 |
|
carpeliam
| hey all, how do i find which commit a particular branch split off from another branch? | 17:59 |
|
milki
| carpeliam: man git-merge-base | 18:00 |
|
| hmmm | 18:00 |
|
| carpeliam: man git-mergebase | 18:00 |
|
| hm.... | 18:00 |
|
| well itswell | 18:01 |
| → mvensky joined | 18:01 |
|
milki
| its merge-base -.- | 18:01 |
|
gitinfo
| carpeliam: the git-merge-base manpage is available at http://git-scm.com/docs/git-merge-base.html | 18:01 |
| → hyperair joined | 18:02 |
| ← mvensky left | 18:02 |
|
carpeliam
| milki: thanks. what if I'm not sure what branch a particular branch was split from? | 18:03 |
| ← erichynds left | 18:03 |
| ← btanaka left | 18:03 |
|
milki
| hmmm, visually with !lg maybe | 18:04 |
|
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" | 18:04 |
| → kpreid joined | 18:05 |
| ← nelse_ left | 18:05 |
| ← SegFaultAX|work left | 18:06 |
| ← blorbx left | 18:06 |
| → flijten joined | 18:07 |
| → TheFuzzball joined | 18:07 |
| ← kpreid_ left | 18:07 |
| ← jbrechtel left | 18:08 |
| ← marshall left | 18:09 |
| ← jalama left | 18:11 |
| ← codertux left | 18:12 |
| → taha joined | 18:13 |
| ← ada1 left | 18:13 |
| ← taha left | 18:14 |
| ← friskd left | 18:15 |
| ← tinti left | 18:15 |
| → friskd joined | 18:15 |
| ← Element9 left | 18:15 |
| ← friskd left | 18:16 |
| → frooh joined | 18:16 |
| → friskd joined | 18:16 |
| ← friskd left | 18:16 |
|
frooh
| what's the best way to list the files in a given directory in a given branch? | 18:16 |
| → babilen joined | 18:16 |
|
frooh
| I thought ls-files would work but I was mistaken | 18:16 |
|
milki
| was about to say that -.- | 18:16 |
|
| hmmm | 18:16 |
| → tinti joined | 18:17 |
|
milki
| whats wrong with ls-files? | 18:17 |
|
frooh
| milki: I think ls-files is just the checkout | 18:17 |
|
| no where does it take a branch | 18:17 |
| ← tinti left | 18:17 |
| → psoo joined | 18:18 |
|
frooh
| I think I may have used ls-tree in the past but it was pretty involved | 18:18 |
| → PapaSierra2 joined | 18:18 |
| ← LeMike left | 18:18 |
| → maletor joined | 18:18 |
|
milki
| hm | 18:18 |
|
| ls-tee with --name-only | 18:18 |
| → tinti joined | 18:19 |
| → codertux joined | 18:19 |
|
milki
| er | 18:19 |
|
| tree | 18:19 |
|
frooh
| milki: yeah, that seems to work | 18:19 |
|
| git ls-tree $branch $dir/ --name-only | 18:19 |
|
| milki++ # thanks | 18:19 |
|
milki
| oooo | 18:20 |
| → kerrick joined | 18:20 |
| ← Mode-M left | 18:23 |
| → iwoj joined | 18:23 |
| gitinfo set mode: +v | 18:23 |
|
iwoj
| I moved a bunch of files manually instead of using "git mv" | 18:24 |
|
| It's too complex for me to move them back now | 18:24 |
|
| is there a way to reattach the files to their git histories? | 18:24 |
|
imMute
| iwoj: git rm the old names and git add the new ones. | 18:25 |
|
iwoj
| (instead of causing a mass of deletes and adds?) | 18:25 |
|
imMute
| iwoj: git mv is an "alias" for git rm && git add | 18:25 |
|
milki
| iwoj wants rename detection | 18:25 |
|
iwoj
| yeah | 18:25 |
|
| move detection | 18:25 |
| → rtjure joined | 18:26 |
|
imMute
| the short of it is "you dont". git doesn't actually track renames, it just makes it look like it does when it shows history output | 18:26 |
|
| milki nods. its misleading | 18:26 |
| → reshtnk7 joined | 18:27 |
| → Targen joined | 18:27 |
| → talexb joined | 18:27 |
| ← pantsman left | 18:28 |
| → Eridius joined | 18:28 |
| → pantsman joined | 18:28 |
| ← pantsman left | 18:28 |
| → pantsman joined | 18:28 |
| → tomasm- joined | 18:28 |
|
shtrb
| git reset ? | 18:28 |
| ← bartek left | 18:29 |
|
frooh
| I want to see a list of files that were created between a given branch and the current one, the obvious solution is git diff ^from to --name-only, but that includes modified (not just created) | 18:29 |
|
| any tips? | 18:29 |
|
talexb
| is there some obvious way for me to find which commit deleted a directory, if I know which commit the directory existed in, and which commit they were gone? | 18:29 |
|
| frooh, I usually use a GUI like gitk for that. | 18:30 |
| ← eMBee left | 18:30 |
|
frooh
| I know how to do it by hand, this is for a script. | 18:30 |
| → eMBee joined | 18:30 |
| → kvothe joined | 18:31 |
| ← kvothe left | 18:31 |
| → kvothe joined | 18:31 |
| ← i42n left | 18:31 |
|
talexb
| Hmm .. Looks like I'm going to try bisect on this. | 18:31 |
|
frooh
| this is ghetto, but it works: | 18:31 |
| → fisted joined | 18:32 |
|
frooh
| git diff ^from to --stat | grep -v '-' | 18:32 |
|
| it would mistakenly skip binaries, but I don't care about them right now | 18:32 |
| ← Guest24033 left | 18:32 |
| → adhawkins joined | 18:32 |
| adhawkins → Guest85855 | 18:33 |
|
milki
| frooh: git log with --stat | 18:33 |
| ← kerrick left | 18:33 |
| ← Guest85855 left | 18:33 |
|
frooh
| milki: ... and that would be better than diff because? | 18:33 |
| ← tomasm- left | 18:33 |
| → adhawkins2 joined | 18:34 |
|
milki
| it tells you modify/delete/create with symbols i think | 18:34 |
| ← fisted_ left | 18:34 |
|
milki
| o | 18:34 |
|
| you have --stat | 18:34 |
|
| nvm | 18:34 |
| → variable joined | 18:35 |
| ← adhawkins2 left | 18:36 |
| → adhawkins joined | 18:36 |
| ← kvothe left | 18:37 |
| → uirono joined | 18:38 |
| ← aristidesfl left | 18:38 |
| ← thirdknife left | 18:38 |
|
milki
| o hey | 18:38 |
|
| --name-status is the one | 18:38 |
|
| with A, M, D | 18:39 |
| ← leo2007 left | 18:39 |
|
frooh
| aw awesome | 18:39 |
|
| milki: thanks! | 18:39 |
|
milki
| :P | 18:40 |
| → mmc1 joined | 18:40 |
|
chrisgeorge
| Is there a way to show a range of commits for a specific file, between two dates? | 18:42 |
|
| --after and --before don't work with a single file. | 18:42 |
| → bartek joined | 18:43 |
|
milki
| it doesnt? | 18:43 |
| ← etcetera left | 18:43 |
| → anabelle joined | 18:43 |
|
frooh
| milki: if interested this works perfectly: git diff HEAD ^origin/release --name-status -- var | grep -e '^A' | cut -b3- | 18:43 |
|
chrisgeorge
| it certainly isn't showing results whereas git log myfile does :\ | 18:44 |
| ← eean left | 18:44 |
|
chrisgeorge
| (after that certain date) | 18:44 |
| → kerrick joined | 18:45 |
| ← jesseFromYVR left | 18:45 |
| → rohan32 joined | 18:46 |
| ← Eridius left | 18:46 |
| ← ReekenX left | 18:46 |
| ← steveoliver left | 18:47 |
| ← sontek left | 18:47 |
| ← iguanna left | 18:47 |
|
milki
| worksforme | 18:47 |
| → jesseFromYVR joined | 18:48 |
| → iguanna joined | 18:48 |
| → Eridius joined | 18:49 |
| → etcetera joined | 18:49 |
| ← hellopat left | 18:50 |
|
cmn
| check what commits git's actually looking at | 18:50 |
| → hellopat joined | 18:50 |
| → dcs_ joined | 18:52 |
| → kvothe joined | 18:52 |
| ← kvothe left | 18:52 |
| → kvothe joined | 18:52 |
| ← dcs_ left | 18:53 |
| → Vinnie_mac joined | 18:53 |
| → _iron joined | 18:58 |
| → daniel_- joined | 18:58 |
| → jperry2__ joined | 19:00 |
| ← jperry2__ left | 19:00 |
| → Dno joined | 19:00 |
| ← kerrick left | 19:01 |
| ← hwrd|work left | 19:01 |
| → jperry2__ joined | 19:03 |
| ← jperry2_ left | 19:04 |
| ← PapaSierra2 left | 19:04 |
| → hwrd|work joined | 19:04 |
| → PapaSierra2 joined | 19:04 |
| → jbrechtel joined | 19:05 |
| ← shtrb left | 19:05 |
| ← pfFred left | 19:05 |
| ← und3f left | 19:06 |
| → artnez joined | 19:07 |
| ← arturaz left | 19:07 |
| → shtrb joined | 19:07 |
| ← carpeliam left | 19:07 |
| ← JSharpe left | 19:08 |
| ← shtrb left | 19:09 |
| → JSharpe joined | 19:09 |
| ← derpops left | 19:09 |
| ← jbrechtel left | 19:09 |
| → v0n joined | 19:09 |
| ← iwoj left | 19:10 |
| ← alunduil_ left | 19:11 |
| ← alunduil left | 19:11 |
| ← DanyO83 left | 19:12 |
| ← Vinnie_mac left | 19:12 |
| ← marthinal left | 19:13 |
| → aspotashev joined | 19:13 |
| → eletuchy joined | 19:13 |
| ← kvothe left | 19:14 |
| → dogarrhea2 joined | 19:14 |
| ← dogarrhea2 left | 19:14 |
| ← anabelle left | 19:15 |
| ← _Vi left | 19:15 |
| → und3f joined | 19:15 |
| → dogarrhea2 joined | 19:16 |
| → jbrechtel joined | 19:16 |
| ← dogarrhea2 left | 19:16 |
| → dogarrhea joined | 19:16 |
| ← mityaz left | 19:18 |
| → wilsonj joined | 19:19 |
| ← Lgb left | 19:20 |
| ← maletor left | 19:20 |
| → Lgb joined | 19:21 |
| ← dogarrhea left | 19:22 |
| → Feh joined | 19:22 |
|
esc
| sitaram: any thoughts on scaling gitolite to 10,000 users? | 19:22 |
|
_ikke_
| esc: Good luck handling that many ssh sessions ;) | 19:24 |
| → ISF joined | 19:24 |
|
PerlJam
| esc: Seems like the config file parsing would be your only slowdown (assuming you're mentioning all 10,000 users in it) | 19:25 |
| → dogarrhea joined | 19:25 |
|
dogarrhea
| what are the difference between gitlab and github | 19:25 |
| → dpino joined | 19:25 |
|
milki
| dogarrhea: gitlab is free! | 19:26 |
| → avjpl joined | 19:26 |
|
dogarrhea
| in regards to workflow/processes | 19:26 |
|
_ikke_
| dogarrhea: You can't install github yourself | 19:26 |
| ← retro|cz left | 19:26 |
|
milki
| dogarrhea: none | 19:26 |
| ← avjpl left | 19:26 |
|
milki
| not that i know the features of gitlab... | 19:26 |
|
| but it sorta looks the same >.> | 19:26 |
|
dogarrhea
| we were on github for a while. have this "upstream" stuff with a master repo and your "forked clone" which you push to. is this much different from gitlab? | 19:26 |
| ← OOPMan left | 19:26 |
| → sluther joined | 19:26 |
|
_ikke_
| dogarrhea: No, that stays basically the same | 19:27 |
|
dogarrhea
| we were also having trouble with code review integration | 19:27 |
| gitinfo set mode: +v | 19:27 |
|
wilsonj
| I'm having trouble getting gitolite mirroring to work properly. I have a master server named git_dev with all the repos, and a slave server named backup_dev. I also have gitlab implemented as well. It seems everything was configured properly, and when I push a change to git_dev, i do get this ====> remote: (26590&) git_dev ==== (gitolite-admin) ===> backup_dev, but nothing is being replicated on the backup_dev (most importantly the gitolite.conf from the | 19:27 |
|
| gitolite-admin repo) | 19:27 |
| ← hwrd|work left | 19:28 |
| → SegFaultAX|work joined | 19:28 |
| ← JSharpe left | 19:29 |
| → JSharpe joined | 19:29 |
| → hwrd|work joined | 19:30 |
| → Industrial joined | 19:32 |
| ← jbrechtel left | 19:33 |
| → maletor joined | 19:34 |
| ← Milossh left | 19:35 |
|
Industrial
| I'm running a VPS and I'd like to use git as part of the deployment of some NodeJS webservers, but I'm not sure how to configure git and/or how the workflow works. What i'd like to do is have a central git repo/server that I can push to from home and also fetch and deploy tags from. | 19:35 |
|
wereHamster
| Industrial: !deploy | 19:36 |
|
gitinfo
| Industrial: Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html | 19:36 |
|
wereHamster
| and welcome to #git :) | 19:36 |
|
Industrial
| I know how to set up a git repo and I've used github before, so I know how the setting a remote and pushing works, but I haven't done the server side. | 19:36 |
|
| hi ;) | 19:36 |
|
_ikke_
| Industrial: Use something like capistrano | 19:36 |
| gitinfo set mode: +v | 19:36 |
|
_ikke_
| Industrial: A real deployment tool | 19:36 |
|
foraks
| anyone fancy some psychic debugging? http://pastebin.com/rv6akn1r | 19:36 |
|
_ikke_
| Industrial: It's not very hard to learn | 19:36 |
|
| foraks: echo $GIT_WORK_TREE | 19:37 |
|
foraks
| it's empty | 19:37 |
|
_ikke_
| foraks: What is everyting else? | 19:37 |
| ← JSharpe left | 19:37 |
|
foraks
| all of git | 19:37 |
|
| committing, merging, rebasing | 19:37 |
| → JSharpe joined | 19:37 |
|
foraks
| diffing with `git diff` works | 19:37 |
|
| everything else works as it should except those commands (oh and add -i also doesn't work) | 19:37 |
| ← PapaSierra2 left | 19:38 |
|
_ikke_
| foraks: git add <file> does work? | 19:38 |
|
foraks
| though I'd hazard a guess that the other commands taking --patch don't work | 19:38 |
|
| _ikke_: yep | 19:38 |
| ← Dno left | 19:39 |
|
_ikke_
| foraks: I'd take it to the mailing list | 19:39 |
|
foraks
| is GIT_WORK_TREE meant to have something? | 19:39 |
|
_ikke_
| foraks: nope | 19:39 |
|
foraks
| GIT_DIR is also empty | 19:39 |
|
| okay | 19:39 |
| ← NcA^ left | 19:39 |
|
_ikke_
| git config --list --global? | 19:40 |
|
| foraks: [email@hidden.address] | 19:40 |
| ← iguanna left | 19:40 |
| → OOPMan joined | 19:41 |
| → NcA^ joined | 19:41 |
|
foraks
| _ikke_: at the bottom http://pastebin.com/rv6akn1r | 19:41 |
|
_ikke_
| foraks: What happens if you explicitly pass in --work-tree? | 19:41 |
| → svetlyak40wt joined | 19:42 |
| → \bMike\b joined | 19:42 |
|
_ikke_
| git --work-tree path/to/repo | 19:42 |
|
| and then the command | 19:42 |
| ← maxandersen1 left | 19:42 |
|
\bMike\b
| Is there a way to have `git add -p` skip whitespace changes like `git diff -b` does? | 19:42 |
| → maxandersen joined | 19:42 |
| ← maxandersen left | 19:42 |
| → maxandersen joined | 19:42 |
|
_ikke_
| foraks: Your on windows | 19:42 |
|
| ? | 19:42 |
|
foraks
| yeah | 19:42 |
| → maxandersen1 joined | 19:43 |
| ← maxandersen left | 19:43 |
|
_ikke_
| msysgit or cygwin? | 19:43 |
| ← longbeach left | 19:43 |
|
cmn
| you don't seem to have any repo-specific configuration | 19:43 |
| → derpops joined | 19:43 |
|
_ikke_
| cmn: because of the --global | 19:43 |
|
foraks
| msysgit | 19:43 |
| ← JSharpe left | 19:43 |
|
cmn
| oh, nevermind me then | 19:43 |
|
foraks
| `git --work-tree . difftool --cached` worked | 19:43 |
| → JSharpe joined | 19:43 |
|
foraks
| oh wait | 19:43 |
| ← JSharpe left | 19:43 |
|
foraks
| ignore that | 19:43 |
|
| "git difftool --cached" seems to work as well | 19:44 |
|
_ikke_
| but not without the --cached? | 19:44 |
|
foraks
| seemingly | 19:44 |
|
| just double checking | 19:44 |
| → TeckniX_ joined | 19:44 |
|
_ikke_
| because --cached doesn't need the work-tree obviously | 19:44 |
|
foraks
| good point | 19:44 |
| ← TeckniX left | 19:45 |
| TeckniX_ → TeckniX | 19:45 |
|
_ikke_
| foraks: Have you tried reinstalling msysgit? | 19:45 |
|
foraks
| no, but I probably should. | 19:45 |
| → jceb joined | 19:45 |
|
foraks
| something's messed up somewhere anyway | 19:46 |
|
_ikke_
| yeah | 19:46 |
|
| And my knowledge of git internals is too limited to be of effective help with that | 19:46 |
| ← maxandersen1 left | 19:46 |
|
foraks
| thanks for the help. good to know i'm not missing something obvious | 19:47 |
|
cmn
| if rev-parse dosen't think it's a repo, reinstalling shouldn't help | 19:47 |
|
| did the computer/disc crash? | 19:47 |
|
foraks
| nope | 19:47 |
|
cmn
| what does .git/HEAD have? | 19:47 |
|
foraks
| ref: refs/heads/master | 19:47 |
|
_ikke_
| nothing wrong with that it seems | 19:48 |
| → macrover joined | 19:48 |
| ← jesseFromYVR left | 19:48 |
| → marhaban joined | 19:48 |
| → Moussekateer joined | 19:48 |
|
talexb
| Wow -- git bisect rocks. Love it. | 19:48 |
|
cmn
| and .git/ has objects/ and refs/ inside it, presumably? | 19:49 |
| ← flijten left | 19:49 |
|
foraks
| yep | 19:49 |
|
| this happens with all repos, so I doubt the repo itself has anything wrong with it | 19:49 |
|
cmn
| oh, that's really odd | 19:49 |
|
foraks
| I can try freshly cloning something | 19:49 |
|
| sec | 19:49 |
| ← psoo left | 19:49 |
|
foraks
| yeah just cloned something | 19:50 |
|
| same thing | 19:50 |
|
| $ git add -i | 19:50 |
|
| fatal: Not a git repository: '.git' | 19:50 |
|
| rev-parse --show-prefix: command returned error: 128 | 19:50 |
|
| $ ls .git | 19:51 |
|
| HEAD config hooks info objects refs | 19:51 |
|
| branches description index logs packed-refs | 19:51 |
|
_ikke_
| seems something messed up with your git install | 19:51 |
| ← aspotashev left | 19:51 |
| ← armenb left | 19:51 |
| → aristidesfl joined | 19:51 |
|
foraks
| yup | 19:52 |
| ← patie1 left | 19:52 |
|
foraks
| are there any env variables git expects to be set | 19:52 |
|
_ikke_
| foraks: nope | 19:52 |
|
foraks
| hm | 19:52 |
|
_ikke_
| export | grep GIT doesn't return anything for me | 19:53 |
|
| those env variables are for when for example working with bare repositories | 19:53 |
|
| or for scripts | 19:53 |
|
thorbjornDX
| where's a good tutorial for someone who has no experience with rev control? | 19:53 |
|
_ikke_
| !book has several | 19:54 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable | 19:54 |
| → patie joined | 19:54 |
|
_ikke_
| !parable is a good one explaining the reasoning behind git | 19:54 |
|
gitinfo
| 'The git parable' provides some good reasoning behind git. http://tom.preston-werner.com/2009/05/19/the-git-parable.html | 19:54 |
|
foraks
| _ikke_: okay, thanks. i gotta go, but i'll try reinstall it later. if you think of anything else feel free msg me or highlight me in here | 19:55 |
|
_ikke_
| foraks: right | 19:55 |
|
| foraks: Otherwise you might want to hit the msysgit mailing list | 19:55 |
|
thorbjornDX
| _ikke_: thank you :) | 19:55 |
| ← guampa left | 19:56 |
| ← asteve left | 19:56 |
|
_ikke_
| thorbjornDX: You're welcome. If you have any questions, feel free to ask | 19:56 |
| ← TeckniX left | 19:56 |
| ← john_anderson left | 19:57 |
| → cagedwisdom joined | 19:57 |
| → arietis joined | 19:57 |
|
thorbjornDX
| _ikke_: I personally have a reasonable amount of experience w/ git, but I am attempting to train someone who doesn't come from a software background, and who hasn't used anything in the past | 19:58 |
|
_ikke_
| thorbjornDX: Ah ok | 19:58 |
|
thorbjornDX
| _ikke_: so I'm attempting to modify my vocabulary to make the transition less painful | 19:58 |
|
_ikke_
| thorbjornDX: then parrable is very good. It explains version control from the very beginning | 19:58 |
| → asteve joined | 19:59 |
|
_ikke_
| ie, it doesn't start with git, but it builts the concepts git uses up from the beginning | 19:59 |
| → srayner joined | 19:59 |
|
thorbjornDX
| _ikke_: also, I have his machine set up with the windows git gui, is this the best place to start? or should I try to get him working with git bash? | 19:59 |
| ← asteve left | 19:59 |
| → pfFredd joined | 20:00 |
| → guampa joined | 20:00 |
|
_ikke_
| thorbjornDX: Well, I don't think that person is very comfortable with the command line yet | 20:00 |
|
| thorbjornDX: Also look at GitExtensions | 20:00 |
| ← skyf left | 20:01 |
| → thillux joined | 20:01 |
|
thorbjornDX
| _ikke_: what does gitextensions provide over the default git gui? (from a beginner's perspective, mostly) | 20:02 |
|
_ikke_
| thorbjornDX: Not sure if it has extra features or something | 20:02 |
|
| thorbjornDX: Has been a while since I used it | 20:03 |
| ← cakehero left | 20:03 |
|
_ikke_
| thorbjornDX: But I have a vague recalling finding it better than git gui | 20:03 |
|
thorbjornDX
| _ikke_: okay, thanks for the suggestions | 20:03 |
| ← thillux_ left | 20:04 |
| ← chrisgeorge left | 20:05 |
| → dmsuperman joined | 20:05 |
| → kcj joined | 20:05 |
|
dmsuperman
| git checkout -- app/submodule, git submodule update and git reset app/submodule will not reset my submodule | 20:05 |
|
| which is marked dirty | 20:05 |
|
| and git diff just says "dirty" so I can't see what's dirty about it | 20:05 |
|
thorbjornDX
| dmsuperman: can you cd to the submodule and run the checkout from there? | 20:05 |
|
_ikke_
| dmsuperman: what does git status tell you | 20:06 |
| ← duckxx left | 20:06 |
| ← Raging_Hog left | 20:06 |
|
_ikke_
| thorbjornDX: git checkout doesn't really do anything | 20:06 |
|
dmsuperman
| (modified content) _ikke_ | 20:06 |
| → NcA^___ joined | 20:06 |
|
_ikke_
| dmsuperman: Then you have to go to the submodule directory, and either commit the changes, or remove them | 20:06 |
|
| dmsuperman: Before committing, make sure if you are actually on a branch | 20:06 |
|
dmsuperman
| Oh I see -- there's no way to do that without CDing into each submodule? | 20:07 |
| ← NcA^ left | 20:07 |
|
_ikke_
| dmsuperman: Nope | 20:07 |
|
dmsuperman
| Why wouldn't git checkout -- app/submodule work but cd app/submodule git checkout -- . does? | 20:07 |
| → zaafouri_ joined | 20:07 |
|
_ikke_
| dmsuperman: they're just each their own repository | 20:07 |
|
dmsuperman
| Doesn't make sense to me | 20:07 |
| → chrisgeorge joined | 20:07 |
|
dmsuperman
| Yeah but I can update them from the top level | 20:07 |
|
thorbjornDX
| dmsuperman: you can do 'git submodule foreach <somecmd>', but you can't target individual repositories with that | 20:07 |
|
dmsuperman
| and everything else | 20:07 |
|
_ikke_
| dmsuperman: Because the parent repo doesn't really know about the contents of the submodule | 20:07 |
|
dmsuperman
| sure it does, git status tells me about it :P | 20:07 |
|
| Enough to prevent me from rebasing in the parent | 20:08 |
|
| if the submodule is dirty | 20:08 |
| ← jperry2__ left | 20:08 |
|
_ikke_
| dmsuperman: Yeah, but that's all git knows | 20:08 |
| ← madsy left | 20:08 |
|
dmsuperman
| Right so if it knows that much, the ability to clean it up seems like a logical next step to me | 20:08 |
|
| anyway that answers my question | 20:08 |
|
| just pointing out the inconsistency | 20:08 |
| → abletony84 joined | 20:09 |
|
dmsuperman
| thanks | 20:09 |
|
milki
| dirty modules! | 20:09 |
| → jperry2_ joined | 20:09 |
| ← rednaks left | 20:09 |
|
abletony84
| Hey anybody know what's wrong? (I just reinstalled Windows+Cygwin) % git clone https://github.com/myforum/myforum.git | 20:09 |
|
| error: error setting certificate verify locations: CAfile: /usr/ssl/certs/ca-bundle.crt CApath: none while accessing https://github.com/myforum/myforum.git/info/refs - fatal: HTTP request failed | 20:09 |
|
cmn
| your curl doesn't have/know where to find the root CA certificates | 20:10 |
| → TeckniX joined | 20:11 |
| → JSharpe joined | 20:11 |
|
cmn
| how to fix that is curl/cygwin specific | 20:11 |
|
abletony84
| thanks | 20:11 |
| → NiveusLuna joined | 20:12 |
|
NiveusLuna
| Let's say that I already have a git repo locally, and want to make a remote version of it that I can push to. What's the best way to go about this? | 20:13 |
| → armenb joined | 20:13 |
| ← kumbayo left | 20:13 |
|
cmn
| log in to the server and run git --bare init in the appropriate place | 20:13 |
|
| if you're using gitolite, put it in the config, for other systems, use whatever they have | 20:13 |
|
NiveusLuna
| that's it? | 20:13 |
|
| then push once it's configured, obviously | 20:14 |
|
cmn
| yeah | 20:14 |
|
thorbjornDX
| NiveusLuna: it helps to have a git user if you want multiple people to access the remote, and gitolite helps with per-repo permissions quite a bit | 20:14 |
|
NiveusLuna
| wow, that's nice and easy | 20:14 |
| ← dmsuperman left | 20:14 |
| ← e66 left | 20:14 |
| ← dzonder left | 20:15 |
| ← jason237 left | 20:15 |
|
talexb
| NiveusLuna, Or 'git remote add origin git@git:$yourRepoNameHere', then 'git push origin master' .. | 20:15 |
|
| Where git@git is the appropriate way to get to your git server. | 20:16 |
|
cmn
| except for that you need the remote repository to exist or have gitolite wild repos | 20:16 |
| ← TeckniX left | 20:16 |
|
talexb
| gitolite++ | 20:16 |
|
NiveusLuna
| talexb: like, say, "user@host:/path/to/reponame" | 20:16 |
|
_ikke_
| talexb: thank sitaram for that | 20:16 |
|
talexb
| cmn Nope -- not the way I have mine set up .. pushing to the remote creates the repo for me. | 20:17 |
|
| _ikke_, I have. :) | 20:17 |
| ← srayner left | 20:17 |
|
cmn
| what? | 20:17 |
|
| you have your own system? | 20:17 |
|
talexb
| cmn My own git server? Yes. (And one at home, too.) | 20:18 |
| ← JSharpe left | 20:18 |
|
cmn
| system for managing repos | 20:18 |
| → JSharpe joined | 20:18 |
|
cmn
| since you say that you don't need gitolite wild repos | 20:18 |
|
talexb
| cmn Just git running on a server, along with gitolite for administration. | 20:18 |
|
NiveusLuna
| uhhh.... how do you modify the repo config with msysgit? | 20:19 |
|
| Git Extensions is also acceptable. I have both. | 20:19 |
|
talexb
| cmn I may have mis-communicated .. I have gitolite on my git server. | 20:19 |
|
cmn
| no, it looks like you stopped reading mid-sentence | 20:20 |
|
talexb
| cmn But I still don't need to ssh onto the server and do a git init --bare .. I just push what I have locally to the server, and It Just Works(tm). | 20:20 |
|
cmn
| you never have to do that with gitolite | 20:20 |
| ← abletony84 left | 20:21 |
|
dangerousdave
| why is restart.txt not ignored? http://pastie.org/4904487 | 20:21 |
|
cmn
| because you haven't told git to ignore it | 20:21 |
|
| the one rule you have mentioning tmp/ skips over that level | 20:22 |
|
| and the '**' isn't doing anything | 20:22 |
|
dangerousdave
| cmn: oh | 20:22 |
|
| cmn: ok, thanks | 20:23 |
| → asteve joined | 20:23 |
| → madsy joined | 20:23 |
| ← madsy left | 20:23 |
| → madsy joined | 20:23 |
|
dangerousdave
| cmn: whats the point of it? (its not my code) | 20:23 |
|
| the ** i mean | 20:23 |
| ← prudnikov left | 20:23 |
| → hidekin joined | 20:23 |
| ← JSharpe left | 20:24 |
|
_ikke_
| dangerousdave: there is no point | 20:24 |
| → JSharpe joined | 20:24 |
|
dangerousdave
| like a sphere? | 20:24 |
|
cmn
| it's a failed attempt at using rsync wildmatching | 20:25 |
|
dangerousdave
| or a sausage? | 20:25 |
|
| oh | 20:25 |
|
_ikke_
| Like the matrix | 20:25 |
|
dangerousdave
| :-) | 20:25 |
| ← flavius left | 20:25 |
|
_ikke_
| It's very simple. * matches everything except for / | 20:26 |
|
dangerousdave
| that's fortunate, because i too, am very simple | 20:27 |
| ← madsy left | 20:27 |
|
wereHamster
| dangerousdave: gitignore doesn't support ** matching | 20:27 |
|
dangerousdave
| hmm | 20:27 |
| → imachuchu joined | 20:27 |
|
wereHamster
| dangerousdave: and there is no need to use ** in your case. Just put tmp/ into your .gitignore | 20:27 |
|
dangerousdave
| i am sure that was some sort of rails standard gitignore, bare with me | 20:27 |
|
wereHamster
| I doubt that. | 20:28 |
|
NiveusLuna
| Think I got it! | 20:28 |
|
| argh, this test will take a while | 20:28 |
|
cmn
| there is work to include this wildmatching, but it probably won't be there for a while | 20:28 |
| ← JSharpe left | 20:29 |
| → john_anderson joined | 20:29 |
| → JSharpe joined | 20:29 |
|
dangerousdave
| wereHamster: _ikke_: cmn: http://railscasts.com/episodes/96-git-on-rails, http://stackoverflow.com/questions/2542353/what-is-a-good-gitignore-to-use-with-rails-on-heroku | 20:30 |
|
| there's more | 20:30 |
|
cmn
| all those say you should use tmp/**? a perfect case for !blog | 20:31 |
|
gitinfo
| Blog posts, while helpful and informative, are quite often outdated, give bad advice, or are just plain wrong. Please don't rely solely upon them, or treat them as authoritative. | 20:31 |
|
wereHamster
| dangerousdave: https://github.com/rails/rails/blob/master/railties/lib/rails/generators/rails/app/templates/gitignore | 20:31 |
| → steveoliver joined | 20:31 |
| → duckxx joined | 20:31 |
| → _Vi joined | 20:31 |
|
wereHamster
| dangerousdave: somebody probably told him that ** doesn't work. | 20:31 |
|
| dangerousdave: https://github.com/rails/rails/commit/9141c1fa6d54024d8bd73774633cf79a601d1dfa | 20:31 |
| ← njbair left | 20:31 |
| ← john_anderson left | 20:31 |
|
dangerousdave
| wereHamster: that seems like a better authority | 20:31 |
| ← jceb left | 20:32 |
|
cmn
| heh, minor fix? | 20:32 |
|
dangerousdave
| wereHamster: ha! | 20:32 |
|
| thanks guys! | 20:32 |
| → madsy joined | 20:33 |
| ← madsy left | 20:33 |
| → madsy joined | 20:33 |
|
dangerousdave
| i knew you were right, just needed proof ;-) | 20:33 |
| → alunduil joined | 20:33 |
| → njbair joined | 20:33 |
|
cmn
| man gitignore is pretty authoritative | 20:33 |
|
gitinfo
| the gitignore manpage is available at http://git-scm.com/docs/gitignore.html | 20:33 |
| ← asteve left | 20:33 |
| ← _Vi left | 20:35 |
| ← SebastianFlyte left | 20:35 |
| ← daniel_- left | 20:35 |
| ← robustus left | 20:35 |
| → _Vi joined | 20:35 |
| ← hellopat left | 20:36 |
|
thorbjornDX
| man, gitignore is pretty cool | 20:37 |
| rohan32 → rohan32|afk | 20:37 |
| → jesseFromYVR joined | 20:37 |
|
NiveusLuna
| how very interesting. | 20:37 |
|
| it works great | 20:37 |
|
| thank you guys! | 20:37 |
|
thorbjornDX
| NiveusLuna: do you know about ssh-agent? | 20:38 |
| ← _iron left | 20:38 |
|
thorbjornDX
| NiveusLuna: it saves you from typing in your ssh passphrase each time you ssh to a machine or do a git push | 20:38 |
| → daniel_- joined | 20:40 |
| → SebastianFlyte joined | 20:40 |
| → nelse_ joined | 20:40 |
| ← ncr100 left | 20:42 |
| ← geekbri left | 20:43 |
| → sontek joined | 20:43 |
| → btree_ joined | 20:44 |
| → BSaboia joined | 20:44 |
| ← chuckharmston left | 20:45 |
| ← zaafouri_ left | 20:45 |
| → chuckharmston joined | 20:46 |
| ← btree left | 20:47 |
| ← madsy left | 20:47 |
| ← kenperkins left | 20:47 |
| → kenperkins joined | 20:48 |
| ← koltroll left | 20:49 |
| ← jperry2_ left | 20:49 |
| → maxandersen joined | 20:51 |
| ← maxandersen left | 20:51 |
| → maxandersen joined | 20:51 |
| ← Loggie left | 20:52 |
| → manithree joined | 20:52 |
| → alunduil_ joined | 20:52 |
| → Shadeness joined | 20:52 |
| ← cannonball left | 20:54 |
| → john_anderson joined | 20:54 |
| ← alunduil left | 20:55 |
| → cannonball joined | 20:56 |
| → joaoh82 joined | 20:57 |
|
Industrial
| I made a clone over ssh, what is the correct way to push it back? https://gist.github.com/20b9ea6a8c98919d2002 | 20:57 |
| ← jesseFromYVR left | 20:58 |
| ← dogarrhea left | 20:58 |
| → jesseFromYVR joined | 20:58 |
| ← john_anderson left | 20:59 |
| ← tdanderson__ left | 20:59 |
| ← les_sylvains left | 20:59 |
| ← glennpratt left | 21:00 |
| → john_anderson joined | 21:00 |
|
Industrial
| I also made some local branches that I'd like to synchronize between the two (wrong thinking?), I'm not sure how :) | 21:00 |
| → asteve joined | 21:01 |
| → jcao219 joined | 21:02 |
| ← chrisgeorge left | 21:02 |
| ← joaoh82 left | 21:02 |
| → chrisgeorge joined | 21:03 |
| ← bartman`` left | 21:04 |
| ← C8H10N4O2 left | 21:04 |
| → jason237 joined | 21:05 |
| ← CrazyGir left | 21:05 |
| ← ehsan left | 21:06 |
| → bartman`` joined | 21:06 |
| → ehsan joined | 21:06 |
| → CrazyGir joined | 21:06 |
| ← bgerber left | 21:06 |
| ← nwest left | 21:06 |
| CrazyGir → Guest25439 | 21:06 |
| → skorgon joined | 21:06 |
| ← skorgon left | 21:06 |
| → skorgon joined | 21:06 |
| ← txdv left | 21:07 |
| gitinfo set mode: +v | 21:07 |
| → txdv_ joined | 21:07 |
| ← john_anderson left | 21:07 |
| → LeMike joined | 21:07 |
| ← LeMike left | 21:07 |
| → john_anderson joined | 21:08 |
| → LeMike joined | 21:08 |
|
m1sc
| Industrial: regarding your first question: !bare | 21:09 |
|
gitinfo
| Industrial: an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/ | 21:09 |
| ← LeMike left | 21:10 |
| → LeMike joined | 21:10 |
|
Industrial
| m1sc: I see | 21:11 |
|
m1sc
| Industrial: synchronize? | 21:11 |
|
imachuchu
| Industrial: to sync branches between two repos use push and pull/fetch (go read up the difference between the two) | 21:11 |
| → klj613 joined | 21:11 |
|
Industrial
| nvm, just pushing created the branches | 21:11 |
|
| er, right. | 21:11 |
| → orkz joined | 21:11 |
| → ncr100 joined | 21:11 |
| ← goshawk left | 21:12 |
| ← irqq left | 21:13 |
| ← guampa left | 21:13 |
| → glennpratt joined | 21:13 |
| ← LeMike left | 21:14 |
| ← uirono left | 21:14 |
|
Industrial
| and git clone has --bare, yay my files are Saved(tm)! | 21:14 |
| ← btree_ left | 21:15 |
| → apok_ joined | 21:15 |
| ← bartek left | 21:15 |
| ← juvenal left | 21:15 |
| → cakehero joined | 21:16 |
| ← apok left | 21:17 |
| apok_ → apok | 21:17 |
| ← txdv_ left | 21:18 |
| → uirono joined | 21:19 |
| → pdtpatrick joined | 21:20 |
| ← skorgon left | 21:21 |
| → Sonderblade joined | 21:21 |
|
Kronuz
| hello | 21:22 |
| ← sorin left | 21:22 |
|
Kronuz
| hey, I'm using git to hold some files which are utf-16 encoded | 21:22 |
| → Xethron joined | 21:22 |
| ← Guest25439 left | 21:22 |
|
Kronuz
| I added [diff "localizablestrings"] textconv = "iconv -f utf-16 -t utf-8" *and* [encoding "utf16"] textconv = "iconv -f utf-16 -t utf-8" to my .gitconfig | 21:22 |
|
| and then I have "*.csv diff=localizablestrings" in a file named .gitattributes | 21:23 |
|
| (*.csv are the utf-16 encoded files) | 21:23 |
| → diverdude joined | 21:23 |
|
Kronuz
| …now, the git diff works fine and finds the differences ok | 21:23 |
|
diverdude
| did anybody in here manage to integrate git with redmine? | 21:23 |
| ← legumbre_ left | 21:24 |
|
Kronuz
| …however, when I do `git add -p`, I don't get the differences listed there.. and neither when a merge occurs, it only says "conflicts" in binary file or something like that | 21:24 |
| → g_ joined | 21:24 |
|
Kronuz
| what am I missing? | 21:25 |
| ← talexb left | 21:25 |
|
Kronuz
| …unfortunately I couldn't find any resource anywhere explaining how to properly "fix" this issue | 21:25 |
|
| the .gitattributes and .gitconfig as I have them is as far as I could get | 21:26 |
| → bgerber joined | 21:27 |
| ← g_ left | 21:28 |
|
EugeneKay
| Kronuz - probably support for UTF-16 in git-merge. | 21:28 |
| → guampa joined | 21:28 |
| → gdoteof2 joined | 21:28 |
| ← gdoteof2 left | 21:28 |
| ← tplaner_ left | 21:28 |
| → _g joined | 21:29 |
|
_g
| i needed to move two recent commits from master to a new branch. i did it, but now master is behind remote/master by two commits, and i don't know how to push it my github repo | 21:29 |
| → Sonder joined | 21:29 |
| → CrazyGir_ joined | 21:30 |
| CrazyGir_ → Guest99989 | 21:30 |
|
imachuchu
| _g: how did you move them? Were those two commits already pushed to remote/master? | 21:30 |
|
_g
| imachuchu: yes | 21:30 |
| ← revagomes left | 21:30 |
|
_g
| i basically did this:http://stackoverflow.com/questions/1628563/move-recent-commit-to-a-new-branch | 21:30 |
| → opus joined | 21:31 |
| ← john_anderson left | 21:31 |
| → revagomes joined | 21:31 |
|
Kronuz
| http://www.entropy.ch/blog/Developer/2010/04/15/Git-diff-for-Localizable-strings-Files.html | 21:31 |
|
imachuchu
| _g: well there is the problem. Your master says "there are two newer commits on the remote" which are the two that you moved to a seperate branch | 21:31 |
|
_g
| yes i am aware :) | 21:31 |
|
| that is why i am in here | 21:31 |
|
Kronuz
| *that's what I'm using | 21:31 |
|
_g
| i am the admin of that repo | 21:31 |
| → john_anderson joined | 21:32 |
|
_g
| i just shouldn'thave made the commits there | 21:32 |
| ← devsharpen left | 21:32 |
|
_g
| i realized today | 21:32 |
| ← Xethron left | 21:32 |
|
_g
| having made them a couple days ago | 21:32 |
| ← asteve left | 21:32 |
|
moben
| and you want the commits gone from the remote? | 21:32 |
|
_g
| so i should just make a new commit that diffs against the new branch i guess | 21:32 |
|
imachuchu
| _g: if no-one else cares/has seen the remote repo then you can just force that master branch to point at the earlier commit, but that changes public history | 21:33 |
| → tomkralidis joined | 21:33 |
|
moben
| _g look at !rewrite | 21:33 |
|
gitinfo
| [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to jump through hoops (and you have to tell them to), so it's infinitely better to just move on without rewriting. That said, you can use `git push -f` to force your new history through (may get rejected, though). See http://git-scm.com/docs/git-rebase.html#_recovering_from_upstream_rebase | 21:33 |
|
imachuchu
| (sorry, didn't have the bot reference handy) | 21:33 |
| → ive joined | 21:33 |
|
_g
| ok | 21:33 |
| → txdv joined | 21:34 |
| ← SegFaultAX|work left | 21:34 |
| ← trungqtran left | 21:34 |
| ← jason237 left | 21:34 |
|
moben
| so it is best to either live with it or add them back to your master and revert them there | 21:34 |
|
_g
| so the "right" thing to do is somehow apply a diff between where i want the branch to be and where master is on the remote branch, and apply that to my local machine, and *then* push | 21:34 |
|
tomkralidis
| hi, I have a project (GitHub) where there were numerous changes made to master branch (e.g. from 10 September 2012 to today). I'd like to apply these to another branch in the repo? Any suggestions on how to do this? | 21:35 |
| ← _Vi left | 21:35 |
|
moben
| _g: add them back and 'git revert' them. that's what I'd do | 21:35 |
| ← Guest99989 left | 21:35 |
|
_g
| moben: ah revert ok thank you | 21:35 |
|
moben
| tomkralidis: another branch that you already have? | 21:36 |
|
tomkralidis
| moben: yes, the other branch exists, and was created on 10 September 2012 as part of a release. | 21:36 |
| → _Vi joined | 21:36 |
|
tomkralidis
| the truth is we neglected to apply these changes to the e.g. 1.4 branch in addition to master | 21:37 |
| ← wilsonj left | 21:37 |
|
moben
| so it is a selection of bugfixes that you want for 1.4.1? | 21:37 |
| → CrazyGir2 joined | 21:37 |
|
moben
| or do you want all of master in 1.4 too? | 21:37 |
| ← imachuchu left | 21:38 |
| ← DeviceZer0 left | 21:39 |
| ← svetlyak40wt left | 21:40 |
| → juvenal joined | 21:40 |
|
tomkralidis
| moben: preferably a selection of bugfixes (still sifting), but a wholesale push as well as an option | 21:41 |
| → iguanna joined | 21:41 |
|
moben
| you can `git cherry-pick` individual commits | 21:42 |
| ← pantsman left | 21:42 |
| ← martinjlowm left | 21:43 |
|
moben
| or just `git merge` your master branch into the other one | 21:43 |
|
| not sure if there are other options | 21:43 |
|
tomkralidis
| ah, ok. that easy. | 21:43 |
|
| tomkralidis is looking up git cherry-pick | 21:43 |
|
tomkralidis
| thanks moben | 21:43 |
| ← rohan32|afk left | 21:44 |
| ← AaronMT left | 21:44 |
| → rohan32 joined | 21:44 |
|
tomkralidis
| so I would run git cherry-pick from the e.g. 1.4 branch, and it would recognize the master branch SHAs? | 21:44 |
| → AaronMT joined | 21:45 |
| → ghartmann joined | 21:45 |
|
moben
| the commit hashes are not tied to a branch | 21:45 |
|
| well, not really | 21:45 |
|
| so you can just run `git cherry-pick 12313234`, yes | 21:46 |
| → shirish joined | 21:47 |
|
moben
| you may get to resolve conflicts | 21:48 |
| ← Sonder left | 21:48 |
| ← jesseFromYVR left | 21:48 |
|
tomkralidis
| thanks again | 21:48 |
| ← Sigma left | 21:49 |
| ← whitman left | 21:49 |
| ← timj1 left | 21:49 |
| → timj joined | 21:50 |
| → nowhere_man joined | 21:51 |
| → fir_ed joined | 21:52 |
| ← Sonderblade left | 21:53 |
|
fir_ed
| How do I download a copy of a repo? | 21:53 |
|
Vinnie_win
| fir_ed: git clone <url> | 21:53 |
|
fir_ed
| ah. clone. | 21:53 |
|
| ty. | 21:53 |
| → Sonderblade joined | 21:54 |
| ← ajw0100 left | 21:55 |
| ← dv310p3r left | 21:55 |
| ← glennpratt left | 21:56 |
| ← john_anderson left | 21:58 |
| ← iguanna left | 21:58 |
| → gaius65 joined | 21:59 |
|
gaius65
| Hey guys! | 21:59 |
|
Vinnie_win
| sup | 21:59 |
| → john_anderson joined | 21:59 |
|
gaius65
| I have two branches: master, new-feature | 21:59 |
|
Vinnie_win
| congrats | 21:59 |
| → asteve joined | 21:59 |
|
klj613
| lol | 21:59 |
|
gaius65
| Vinnie_win: ups, I hit enter to early^^ | 21:59 |
|
Vinnie_win
| You should end each transmission with "over" over. | 22:00 |
|
gaius65
| After committing a few things to new-feature, I now commited a bug-fix to master. How can I now also get the bug fix into my new-feature branch?= | 22:00 |
| ← v0n left | 22:00 |
|
Vinnie_win
| copy that gaius65, use git merge master, over. | 22:00 |
|
moben
| gaius65: or cherry-pick | 22:00 |
| ← njbair left | 22:00 |
|
Vinnie_win
| gaius65: or git rebase | 22:00 |
|
klj613
| gaius65, merge, rebase, cherry-pick. take your pick ;p | 22:00 |
|
moben
| but only use rebase if you did not push new-feature yet | 22:01 |
|
gaius65
| klj613: what's the easiest way to get just all commits from master into new-feature? | 22:01 |
| ← ncr100 left | 22:01 |
|
gaius65
| new-feature is already pushed | 22:01 |
|
tomkralidis
| gaius65: my question exactly a few minutes back! See convo | 22:01 |
| → P1RATEZ joined | 22:01 |
|
Vinnie_win
| moben: well even if you pushed new-feature to a remote, if no one else is looking at the branch then it wouldn't hurt...much | 22:01 |
|
klj613
| easiest? to make sure feature has everything master has? merge | 22:01 |
| ← FrenkyNet left | 22:01 |
|
Vinnie_win
| I have --force on a hot key | 22:02 |
| ← manithree left | 22:02 |
| → Vile joined | 22:02 |
| → jamuraa joined | 22:03 |
| → jesseFromYVR joined | 22:05 |
| → chaiz joined | 22:05 |
| ← Destos left | 22:05 |
| ← dpino left | 22:06 |
|
gaius65
| Vinnie_win, klj613: thanks, worked :) | 22:06 |
|
Vinnie_win
| Roger that | 22:06 |
| ← maxandersen left | 22:06 |
| ← derpops left | 22:07 |
| ← ncd|leeN left | 22:07 |
|
klj613
| gaius65, if master had something you didnt want to merge in... then you'd use cherry-picks. (or rewrite the whole history to your will... if you know how :p) | 22:07 |
| ← shirish left | 22:07 |
|
Vinnie_win
| with a merge though, now the order of commits is different between master and feature-branch...right? | 22:07 |
|
jamuraa
| is the easiest way to make a new branch without a specific commit, just to branch from a common ancestor and cherry-pick the ones you want? or can I make a new branch, rebase -i against a common ancestor? | 22:08 |
|
klj613
| Vinnie_win, open up a GUI tool and have a look | 22:08 |
| → StuckMojo joined | 22:08 |
|
Vinnie_win
| Yeah I think it is jlk | 22:08 |
| ← NiveusLuna left | 22:08 |
|
Vinnie_win
| *klj | 22:08 |
|
StuckMojo
| does git-push origin already use ssh/scp compression? | 22:08 |
|
gaius65
| klj613: ok. I'm trying to keep my git usage simple, so this is good :) | 22:08 |
|
klj613
| jamuraa, without a specific commit? i'd use rebase -i (cherry pick be.. easier to use). and that will be rewriting history so you'd have to force push | 22:09 |
| → DeviceZer0 joined | 22:09 |
| rohan32 → rohan32|afk | 22:09 |
|
klj613
| gaius65, make a dummy repo. spend a few hours destroying it whilst looking at a GUI. learn how git behaves :p | 22:09 |
| ← Sonderblade left | 22:09 |
| ← tomkralidis left | 22:10 |
|
sitaram
| esc: (and also _ikke_ and PerlJam) -- re scaling to 10,000 users. Let's decouple the "compile" step, which only happens once in a while, from the access check that happens for every "contact". The latter is O(1) now so it doesn't matter. Your real problem will be sshd's linear scan over the authkeys file, so if you use httpd (with mod_auth_ldap instead of htpasswd) it should work already | 22:10 |
| ← fir_ed left | 22:10 |
|
gaius65
| klj613: I already did… but I use stuff like merge once every three, four month… so it's easy to forget a bit everythime... | 22:10 |
|
| Vinnie_win: histories seem to be both be good | 22:10 |
|
Vinnie_win
| When will git-subtree become part of the official distro | 22:10 |
| → maxandersen joined | 22:10 |
| ← maxandersen left | 22:10 |
| → maxandersen joined | 22:10 |
|
klj613
| :o i use merge all the time... rebase daily (sometimes more than merge!) lol | 22:10 |
|
milki
| Vinnie_win: yesterday | 22:11 |
|
Vinnie_win
| milki: really? | 22:11 |
|
milki
| Vinnie_win: or in two months | 22:11 |
| ← sq-one left | 22:11 |
|
moben
| I thought it was already | 22:11 |
|
Vinnie_win
| there's nothing in the release notes about it | 22:11 |
|
moben
| merged to contrib/ someone said iirc | 22:11 |
| ← dangerousdave left | 22:11 |
|
jamuraa
| klj613: I don't want to rewrite history, just have a new branch (branch-two) that only has 1,3,4,5,6 of the 6 commits that I have on branch-one. (both branch from master) | 22:11 |
|
klj613
| why dont you merge back into master? or do your feature branches actually take months lol. im shocked you rarely use merge | 22:12 |
| → v0n joined | 22:12 |
| ← duckxx left | 22:13 |
| → Sonderblade joined | 22:13 |
| → SegFaultAX|work joined | 22:13 |
| ← rtjure left | 22:13 |
|
sitaram
| PerlJam: (re esc's question) fedora's config is already 11,000+ repos, and the conf file is 126,000 lines. The killer here is the POST_CREATE scripts actually, when I try it with v3 (or the eqvt in v2). Luckily fedora don't use all that. | 22:14 |
| ← ive left | 22:14 |
| ← kermit left | 22:15 |
| → storrgie joined | 22:16 |
| ← pandeiro left | 22:17 |
| ← TheJH left | 22:17 |
| ← phantomtiger left | 22:18 |
| ← ISF left | 22:18 |
|
gaius65
| cya guys | 22:19 |
| ← lacrymology left | 22:22 |
| ← P1RATEZ left | 22:23 |
| ← jargon- left | 22:23 |
| → berserkr joined | 22:23 |
| ← RaceCondition left | 22:28 |
| ← juvenal left | 22:28 |
| → RaceCondition joined | 22:29 |
| ghartmann → teste | 22:29 |
| teste → ghartmann | 22:29 |
| ← Praise left | 22:30 |
| → ShadesofGraylin| joined | 22:30 |
| → Lulzon joined | 22:30 |
| → duckxx joined | 22:31 |
| ← chrisgeorge left | 22:31 |
| ← storrgie left | 22:31 |
| → Praise joined | 22:32 |
| → yoklov joined | 22:34 |
| → xaka joined | 22:35 |
| ← _Vi left | 22:35 |
| ← ghartmann left | 22:35 |
| ← klj613 left | 22:35 |
| → _Vi joined | 22:36 |
| ← MyTallest left | 22:37 |
| → arturaz joined | 22:37 |
|
xaka
| if i want to merge A to B and A is behind master repo, should i pull the changes to A first and then do merge or i can pull changes to B from A directly? (git checkout B; git pull origin A). Which one way would be better? | 22:38 |
| adhawkins → adhawkins-away | 22:38 |
| ← und3f left | 22:39 |
|
thiago
| doesn't matter | 22:39 |
| ← arietis left | 22:40 |
| rohan32|afk → rohan32 | 22:41 |
| ← alunduil_ left | 22:41 |
| → pts\3 joined | 22:42 |
| ← gaius65 left | 22:42 |
| ← fly9 left | 22:43 |
|
pts\3
| i cloned a repo, deleted a file, now i want to resync .. yet any combination of pulling, fetching, and merging i do just says "already up to date" | 22:44 |
| ← zastern left | 22:44 |
| ← asteve left | 22:44 |
| → _huoxito joined | 22:45 |
| ← eijk left | 22:45 |
|
\bMike\b
| pts\3: What does "resync" mean? | 22:45 |
| → juvenal joined | 22:45 |
| → Chib joined | 22:46 |
|
pts\3
| i want to make my local directory match the repository , as it did when i cloned it | 22:46 |
| ← zorzar left | 22:47 |
| → cjz joined | 22:47 |
|
cjz
| hmm | 22:47 |
|
| all my gitosis repos have file called description with the name in the repo | 22:47 |
|
| all the new gitolite repos have no file called that? | 22:48 |
| ← hwrd|work left | 22:48 |
| ← v0n left | 22:48 |
|
pts\3
| i tried every command on this page to no avail. https://help.github.com/articles/fork-a-repo | 22:48 |
|
milki
| correct, its not default anymore | 22:48 |
|
cjz
| the post-receive.email script im using seems to look for that file | 22:48 |
| ← RaceCondition left | 22:48 |
|
\bMike\b
| pts\3: git reset --hard HEAD? | 22:48 |
|
Vinnie_win
| I just added a new remote, how do I check out a local branch that trakcs a remote branch in that remote? | 22:49 |
|
pts\3
| oh my, \bMike\b , that is very nice. thank you. | 22:49 |
| → Agis__ joined | 22:50 |
| ← juvenal left | 22:50 |
|
\bMike\b
| np | 22:50 |
| → storrgie joined | 22:50 |
|
Agis__
| hey guys, I have 2 local branches and I want to checkout a whole directory and it's contents from branch B to branch A (which is my current) | 22:50 |
|
| overriding the directories, any ideas? | 22:50 |
| → monokrome joined | 22:50 |
|
thiago
| git checkout B -- dirname | 22:51 |
|
monokrome
| Hi. Is it intended that after doing `git checkout --orphan somebranch`, the ,gitignore still exists in the new branch? | 22:51 |
| ← chuckharmston left | 22:51 |
|
monokrome
| seems odd | 22:51 |
|
Vinnie_win
| how do I check out a remote branch | 22:52 |
|
Agis__
| thiago: so it's git checkout <branch-name> -- example/ ? | 22:52 |
| → chuckharmston joined | 22:52 |
| ← sgambino_ left | 22:52 |
|
EugeneKay
| monokrome - !orphan, see 2nd stop | 22:53 |
|
gitinfo
| monokrome: To create an orphaned branch(unrelated to existing history): `git checkout --orphan newbranchname`. This will leave your index/worktree as-is(use `rm .git/index; git clean -dfx` to delete EVERYTHING). If you get 'error: unknown option `orphan`' see !orphan_old. For an empty/null commit see !orphan_null. | 22:53 |
|
EugeneKay
| Vinnie_win - 'git checkout -b foo remote/foo' | 22:53 |
|
Vinnie_win
| EugeneKay: Thanks | 22:53 |
| → jargon- joined | 22:53 |
|
EugeneKay
| Agis__ - rm -r foo/; git checkout bar -- foo/ | 22:53 |
|
| Agis__ - the second part will do it, but will leave any files which exist in your current branch but not the other one | 22:54 |
|
| Hence rm first | 22:54 |
| → juvenal joined | 22:54 |
| → C8H10N4O2 joined | 22:55 |
|
Agis__
| i see | 22:55 |
| ← simesy_work left | 22:55 |
|
Agis__
| and how I undo any changes I've made and not commited? | 22:55 |
|
cjz
| solved my own problem | 22:55 |
| → simesy_work joined | 22:55 |
|
cjz
| using $GL_REPO rather than looking for description | 22:55 |
|
EugeneKay
| Agis__ - man git-reset | 22:55 |
|
gitinfo
| Agis__: the git-reset manpage is available at http://git-scm.com/docs/git-reset.html | 22:55 |
| ← apok left | 22:58 |
| → apok joined | 22:59 |
| ← macabre left | 22:59 |
| ← revagomes left | 23:00 |
| → v0n joined | 23:00 |
| ← rohan32 left | 23:01 |
| → zonderH joined | 23:01 |
| → rohan32 joined | 23:01 |
| ← Sky[x] left | 23:04 |
| ← jargon- left | 23:04 |
|
moben
| !orphan_null | 23:05 |
|
gitinfo
| To create an orphan branch with the null/empty commit, use: `git checkout -b orphan $(echo "empty" | git commit-tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904)` | 23:05 |
| ← siprbaum left | 23:07 |
| → siprbaum joined | 23:07 |
| ← v0n left | 23:07 |
| ← guide left | 23:07 |
| → hwrd|work joined | 23:08 |
| → madewokherd joined | 23:08 |
| → guide joined | 23:09 |
| → ajw0100 joined | 23:11 |
| ← SirCmpwn left | 23:12 |
| → Destos joined | 23:12 |
| ← giallu left | 23:13 |
|
monokrome
| EugeneKay: So, it's basically not any easier than just pushing an empty repository's master branch to a remote branch? | 23:13 |
| ← marhaban left | 23:14 |
| ← hidekin left | 23:16 |
| ← Destos left | 23:16 |
|
EugeneKay
| Uh, huh? | 23:17 |
|
frogonwheels
| monokrome: !xy | 23:17 |
|
gitinfo
| monokrome: This sounds like an "XY Problem" http://mywiki.wooledge.org/XyProblem So let's step back for a minute. What are you actually trying to achieve? Why are you doing it this way? | 23:17 |
|
EugeneKay
| I'm not sure what you're really trying to do | 23:17 |
|
monokrome
| I'm rewriting a project and want an empty branch | 23:18 |
|
EugeneKay
| checkout --orphan gives you a branch(and HEAD) that is a new initial commit. This is roughly analogous to the state that you get from 'git init' | 23:18 |
|
| If it's a total project rewrite I would create a new repo and place for it on whatever centralized server you're using. | 23:18 |
| ← storrgie left | 23:18 |
| rohan32 → rohan32|hw | 23:19 |
| SirCmpwn_ → SirCmpwn | 23:19 |
| → akiress joined | 23:20 |
| ← SegFaultAX|work left | 23:22 |
| ← macrover left | 23:22 |
|
cbreak
| monokrome: an empty repository can not be used as source for a push | 23:24 |
|
| it has no history for pushing | 23:24 |
| → duckx joined | 23:24 |
| → storrgie joined | 23:24 |
| ← Synthead left | 23:24 |
| ← arturaz left | 23:25 |
| ← simesy_work left | 23:25 |
| ← storrgie left | 23:26 |
| → simesy_work joined | 23:26 |
| ← ShadeTornado left | 23:26 |
| ← duckxx left | 23:27 |
| → duckxx joined | 23:28 |
| ← simesy_work left | 23:29 |
| → simesy_work joined | 23:29 |
| → Chillance joined | 23:29 |
| → SegFaultAX|work joined | 23:30 |
| ← jesseFromYVR left | 23:30 |
| → jesseFromYVR joined | 23:31 |
| ← duckx left | 23:31 |
| ← guampa left | 23:33 |
| → pfFred joined | 23:34 |
| ← babilen left | 23:35 |
| ← john_anderson left | 23:35 |
| → FernandoBasso joined | 23:35 |
| ← _Vi left | 23:36 |
| → guampa joined | 23:36 |
| → _Vi joined | 23:37 |
| ← pfFredd left | 23:37 |
| ← chuckharmston left | 23:38 |
| ← pfFred left | 23:39 |
| → msmithng joined | 23:40 |
| → babilen joined | 23:41 |
| → rchavik joined | 23:42 |
| ← rchavik left | 23:42 |
| → rchavik joined | 23:42 |
| → blorbx joined | 23:43 |
| ← mmc1 left | 23:44 |
| SeoZ-work[AWAY] → SeoZ | 23:46 |
| → jperry2_ joined | 23:47 |
| → chrisf|walrus joined | 23:47 |
| ← Fandekasp left | 23:47 |
| ← gusnan left | 23:49 |
| ← SegFaultAX|work left | 23:54 |
| → Milossh joined | 23:54 |
| ← akiress left | 23:55 |
| → SegFaultAX|work joined | 23:56 |
| ← _g left | 23:57 |
| ← opus left | 23:57 |
| → adamben joined | 23:57 |
| ← hwrd|work left | 23:58 |
| → BSaboia__ joined | 23:58 |
| ← cjz left | 23:59 |
| → hwrd|work joined | 23:59 |
| ← BSaboia left | 23:59 |
| ← jperry2_ left | 23:59 |