| 2012-07-25 |
| → kaen joined | 00:00 |
| ← kaen left | 00:00 |
| → towski joined | 00:02 |
| ← towski left | 00:03 |
| ← neurodrone left | 00:03 |
| ← Pupeno_W left | 00:04 |
| ← dvide left | 00:04 |
| → towski joined | 00:06 |
| ← btanaka left | 00:06 |
| ← thiago left | 00:06 |
| ← dreiss left | 00:08 |
| → gavin_huang joined | 00:08 |
| → bwwww joined | 00:09 |
| → iamjarvo joined | 00:09 |
| ← turtle_ left | 00:09 |
| ← bwwww left | 00:10 |
| → ehsan joined | 00:10 |
| ← lresende left | 00:11 |
| ← apok left | 00:13 |
| ← reuf left | 00:13 |
| → apok joined | 00:14 |
| → clifton joined | 00:15 |
| ← marhaban left | 00:15 |
| → Textmode joined | 00:16 |
|
clifton
| is there a way to stage a specific line of a file without going into interactive mode? | 00:17 |
| ← igotnolegs left | 00:19 |
|
cmn
| no, that's the point of interactive mode | 00:20 |
|
| you can use git-gui, but that's still interactive | 00:20 |
|
frogonwheels
| clifton: also you can use something like fugitive | 00:20 |
|
| clifton: (vim plugin) | 00:20 |
|
| clifton: or git gui | 00:20 |
|
| err yeah, cmn said that. | 00:20 |
|
clifton
| i have a pre-commit hook written that removes trailing whitespace, tabs -> spaces, and blank lines before eof | 00:21 |
| → btree joined | 00:21 |
|
cmn
| and why does that need this? | 00:21 |
|
clifton
| i just wanted to stage changes as part of the hook | 00:22 |
|
cmn
| stage the whole file | 00:22 |
| → brokenshakles joined | 00:22 |
|
cmn
| the changed lines will be updated | 00:22 |
| → duckxx joined | 00:23 |
|
frogonwheels
| clifton: and you're going to create a new commit for this? or are you going through and rewriting all the commits? | 00:23 |
|
clifton
| well, its very common we use interactive mode to add certain parts | 00:23 |
|
| to begin with | 00:23 |
|
cmn
| but here you want to add the whole file | 00:23 |
|
clifton
| no, just the lines that are affected | 00:23 |
|
| i want to keep our history and only change lines that were included in the commit | 00:24 |
|
| many of the people on my team use TextMate or ST2 and I see trailing whitespace committed often | 00:24 |
|
cmn
| no, you want to stage the whole file | 00:24 |
|
frogonwheels
| ahh crap. pre-commit. just ignore me. | 00:24 |
|
cmn
| unchanged lines won't be changed | 00:24 |
|
frogonwheels
| cmn: I see what he means. He's talking about changing the file in the wd. | 00:25 |
|
cmn
| that won't work, though | 00:25 |
|
frogonwheels
| clifton: possibly a better way would be to change the file that's in the index - ie grab it out, process it, and put it back. | 00:25 |
|
cmn
| the only sensible thing is for the pre-commit hook to change the staged file and re-stage that | 00:25 |
|
| anything else is going to be so full of edge cases it's not worth contemplating | 00:26 |
|
clifton
| hm | 00:27 |
| ← towski left | 00:27 |
|
clifton
| https://gist.github.com/3173611 | 00:27 |
|
| thats what i have | 00:27 |
|
| its so we can slowly but surely remove trailing whitespace without mucking up our history | 00:29 |
| → shawngo joined | 00:29 |
| → towski joined | 00:29 |
|
cmn
| this still has edge cases | 00:30 |
|
clifton
| any off the top of your head? | 00:31 |
|
cmn
| the file in the workdir doesn't have to be the same one that's being comitted | 00:31 |
|
frogonwheels
| clifton: looking at fugitive, it uses cat-file to read the file from the staging area, hash-object to create the object from stdin after processing it (from the vim buffer in this case) and update-index to update the file with a new blob | 00:31 |
| ← ipalaus left | 00:31 |
|
cmn
| so you're changing something that the user may or may not want to commit | 00:31 |
|
clifton
| ah frogonwheels: that's probably the best way to do it | 00:31 |
| ← btree left | 00:31 |
|
clifton
| cmn: so maybe its best to leave those changes unstaged | 00:32 |
| → w09x joined | 00:32 |
| ← Berglund left | 00:32 |
|
frogonwheels
| clifton: yeah - keep well away from the working-dir file | 00:32 |
|
cmn
| right, modify the file that's going to be committed | 00:32 |
| ← andrewhl left | 00:33 |
|
clifton
| k, any pointers on how to do that, im not very familiar with git objects | 00:33 |
|
frogonwheels
| clifton: I'm sure there's other code you could look at, but s:BufReadIndexFile and s:BufWriteIndexFile in fugitive.vim _might_ help | 00:33 |
|
clifton
| my OCD was just triggering all afternoon after seeing coworker commits | 00:33 |
|
cmn
| slap them | 00:33 |
|
| you can't force them to use the pre-commit hook anyway | 00:33 |
| → redrocket joined | 00:34 |
|
clifton
| well, technically i could | 00:34 |
|
frogonwheels
| clifton: I put the whitespace correcting code in a Vim trigger :) | 00:34 |
|
cmn
| clifton: no | 00:34 |
| → alberto56 joined | 00:34 |
|
clifton
| they could always skip the validation if they needed to | 00:34 |
|
cmn
| right, that's not forcing anything | 00:34 |
|
| reply to the commits mentioning the broken formatting | 00:34 |
|
| whitespace damange is part of the review | 00:35 |
|
clifton
| yes but they won't skip it 99% of the time, they just need something they can without thinking about it much | 00:35 |
| ← chrisgeorge left | 00:35 |
|
clifton
| can use* | 00:35 |
| ← towski left | 00:35 |
|
clifton
| yes that's a very good point but id like that to be automated for the most part | 00:36 |
| ← htroyack left | 00:36 |
|
clifton
| thanks for the help so far guys and ill check out the fugitive source in my .vim dir | 00:37 |
| ← mtytel left | 00:37 |
| ← CannedCo_ left | 00:37 |
|
clifton
| https://gist.github.com/3171463 is a post-commit example | 00:38 |
|
| but it didnt work for me | 00:39 |
|
frogonwheels
| clifton: git rev-parse :0:<filename> will give you the sha1 for the staged object. git cat-file blob <sha1> will give you the contents. git hash-object -w --stdin will write a hash object from stdin and give you the hash, git ls-files --stage <path> will give you the old 'index' entry, and git update-index --index-info will update the new entry (if you update the blob sh1 in the ls-files with the new blob) | 00:39 |
|
| clifton: that should about cover it? | 00:40 |
|
clifton
| yep that looks fantastic | 00:40 |
|
| awesome, thank you! | 00:40 |
|
frogonwheels
| clifton: np. I've delved into that code b4 trying to debug it for windoze, so I knew the rough idea | 00:40 |
|
clifton
| org | 00:41 |
|
| mt | 00:41 |
|
| ouch, windows | 00:41 |
| ← wilmoore left | 00:41 |
|
frogonwheels
| clifton: yeah. vim & git make it barable though. | 00:41 |
|
| clifton: all my other computers/devices are linux based ;) | 00:42 |
| ← SkAzZ left | 00:42 |
| → nutron joined | 00:43 |
|
clifton
| i just use macs nowadays, except when im doing sys administration here-and-there | 00:43 |
| → SkAzZ joined | 00:43 |
| ← maxwellcorbin left | 00:43 |
|
clifton
| one of the dudes on my team worked at canonical for a few years and uses a mac now too :O | 00:43 |
| → igotnolegs joined | 00:43 |
| → maxwellcorbin joined | 00:44 |
|
clifton
| used linux exclusively through CS undergrad though | 00:44 |
| → towski joined | 00:44 |
| → defts joined | 00:45 |
| ← Guest31884 left | 00:46 |
| ← defts left | 00:46 |
| ← iwoj left | 00:46 |
|
clifton
| alright ill have this hacked up very fast | 00:47 |
| → lresende joined | 00:47 |
|
clifton
| thanks again for the help | 00:47 |
| ← SkAzZ left | 00:48 |
| ← jrnieder left | 00:53 |
| → enmand joined | 00:53 |
| ← towski left | 00:54 |
| → Facetious joined | 00:54 |
| ← lteo left | 00:55 |
| → dreiss joined | 00:56 |
| → towski joined | 00:56 |
| ← mcluskydodallas left | 00:58 |
| → xiangfu joined | 01:00 |
| → cooloney joined | 01:02 |
| ← lresende left | 01:02 |
| → thursday joined | 01:03 |
| → dc5ala joined | 01:03 |
| → weiyang joined | 01:03 |
| → jsoa joined | 01:04 |
| → tiglog joined | 01:05 |
| ← ivan\ left | 01:05 |
| ← harish left | 01:07 |
| → ivan\ joined | 01:07 |
| ← TheJH left | 01:07 |
| ← towski left | 01:08 |
| ← imrobert left | 01:08 |
| ← mocramis left | 01:10 |
| → mocramis joined | 01:10 |
| ← dermoth|home left | 01:10 |
| ← weiyang left | 01:11 |
| ← duckxx left | 01:11 |
| ← notfunk_ left | 01:11 |
| ← thursday left | 01:13 |
| ← Ryback_ left | 01:14 |
| ← Vampire0 left | 01:15 |
| → mcluskydodallas joined | 01:15 |
| ← linguini left | 01:15 |
| → duckxx joined | 01:17 |
| → w09x_ joined | 01:18 |
| ← mcluskydodallas left | 01:18 |
| ← w09x left | 01:19 |
| ← palm_vue left | 01:20 |
| ← bizhanMona left | 01:20 |
| → palm_vue joined | 01:21 |
| → bizhanMona joined | 01:21 |
| → imrobert joined | 01:21 |
| ← Maccer left | 01:23 |
| ← hackez left | 01:23 |
| ← segher left | 01:26 |
| ← alberto56 left | 01:26 |
| ← maletor left | 01:26 |
| ← artnez left | 01:27 |
| → weiyang joined | 01:27 |
| → rchavik joined | 01:28 |
| ← lonewulf` left | 01:28 |
| → segher joined | 01:28 |
| → lausi joined | 01:29 |
| → Vampire0 joined | 01:29 |
| ← lausi left | 01:30 |
| ← duckxx left | 01:30 |
| → dc5ala_ joined | 01:31 |
| → mcluskydodallas joined | 01:31 |
| ← hwrd|work left | 01:31 |
| ← WillMarshall left | 01:31 |
| ← Speed left | 01:32 |
| ← w09x_ left | 01:32 |
| → neurodrone joined | 01:32 |
| ← dc5ala left | 01:34 |
| ← mcluskydodallas left | 01:34 |
| ← adityamenon90 left | 01:34 |
| → lonewulf` joined | 01:35 |
| → adityamenon joined | 01:36 |
| → harish joined | 01:36 |
| ← iamjarvo left | 01:37 |
| ← segher left | 01:37 |
| → duckxx joined | 01:37 |
| → apok_ joined | 01:38 |
| → segher joined | 01:38 |
| ← diminoten left | 01:39 |
| ← segher left | 01:39 |
| → iamjarvo joined | 01:40 |
| → segher joined | 01:40 |
| → diminoten joined | 01:41 |
| ← AaronMT left | 01:41 |
| ← duckxx left | 01:42 |
| ← hachque left | 01:42 |
| ← apok left | 01:42 |
| ← apok_ left | 01:43 |
| ← aviraldg left | 01:44 |
| → intripoon_ joined | 01:45 |
| → GNUtoo joined | 01:46 |
| ← tinti left | 01:46 |
| → hackez joined | 01:46 |
| ← alexim left | 01:47 |
| ← SeoZ-work[AWAY] left | 01:48 |
| ← intripoon left | 01:48 |
| → seo joined | 01:49 |
| seo → Guest1275 | 01:49 |
| ← Guest1275 left | 01:50 |
| → SeoZ joined | 01:50 |
| → Maccer joined | 01:51 |
| → chuckharmston joined | 01:52 |
| ← nadirvardar left | 01:53 |
| ← aruiz left | 01:54 |
| ← tiglog left | 01:56 |
| → Berglund joined | 01:56 |
| → WillMarshall joined | 01:58 |
| ← iamjarvo left | 02:02 |
|
GNUtoo
| sigh sigh sigh | 02:03 |
| → iamjarvo joined | 02:03 |
|
GNUtoo
| it's now blocked here: | 02:03 |
|
| Bisecting: 8350 revisions left to test after this (roughly 13 steps) | 02:03 |
|
| CareBear\,git checkout -f didn't work | 02:04 |
| ← arietis left | 02:04 |
|
GNUtoo
| cmn, ^^^ | 02:05 |
|
SethRobertson
| define didn't work | 02:05 |
| → lresende joined | 02:06 |
|
GNUtoo
| I'm doing a bisect.... | 02:06 |
|
| and it often repeat the same message | 02:07 |
|
| at the beginning the message change | 02:07 |
| ← iamjarvo left | 02:07 |
|
GNUtoo
| and at some point after using git bisect skip.... | 02:07 |
| ← lresende left | 02:07 |
| ← orafu left | 02:08 |
| → orafu joined | 02:08 |
|
GNUtoo
| it keep saying the same message for differents commits | 02:08 |
|
| after git bisect good or bad or skip | 02:08 |
|
| Bisecting: 8350 revisions left to test after this (roughly 13 steps) | 02:08 |
| ← Araxia left | 02:08 |
| → mshroyer joined | 02:09 |
|
acidjazz
| so this happens every now and again .. i clearly have dpl/log/hook.log in my .gitignore and its not ignoring the file on production.. | 02:09 |
|
SethRobertson
| If you git bisect visualize or git bisect log, what do you see? | 02:09 |
|
| acidjazz: Is the file committed? | 02:10 |
|
acidjazz
| ah yes at 0 bytes | 02:10 |
|
SethRobertson
| acidjazz: !ignore_tracked | 02:10 |
|
gitinfo
| acidjazz: Git only applies ignore patterns to untracked files. You can't use ignore patterns to ignore changes to files that are already tracked by git. Still, see https://gist.github.com/1423106 for ways people have worked around the problem. | 02:10 |
| ← enmand left | 02:10 |
|
acidjazz
| cant i just remove the file from my tree? | 02:11 |
|
| and itll start to ignore it? | 02:11 |
|
SethRobertson
| Yes | 02:11 |
| → iamjarvo joined | 02:11 |
| ← Stalafin left | 02:11 |
| → iwoj joined | 02:12 |
| → zdk joined | 02:12 |
| ← cooloney left | 02:13 |
|
acidjazz
| git filter-branch -f --tree-filter 'rm -rf dpl/log/hook.log' HEAD | 02:13 |
|
| this hsould do it right | 02:13 |
|
| git push w/ --force | 02:13 |
| → cilly joined | 02:14 |
|
GNUtoo
| I'll look | 02:14 |
|
| I already restarted the bisect.... | 02:15 |
| ← dinesh6654 left | 02:16 |
| ← Berglund left | 02:16 |
| ← Eridius left | 02:17 |
| ← iwoj left | 02:19 |
| → iwoj joined | 02:19 |
| → dhruvasagar joined | 02:20 |
| ← bgerber left | 02:20 |
|
CareBear\
| GNUtoo : at this point it would be very helpful if you can pastebin a full log of your commands and the git output since git bisect start | 02:22 |
| → Eridius joined | 02:23 |
| → pdgreen joined | 02:23 |
| gitinfo set mode: +v | 02:24 |
|
iwoj
| i just aborted a git rebase and it blew away the last two months of commits. | 02:24 |
| ← zdk left | 02:24 |
|
iwoj
| how to i bring back the last commit if I don't know it's hash code? | 02:24 |
| → fireh joined | 02:24 |
| ← duko left | 02:25 |
|
GNUtoo
| ok | 02:25 |
| ← chuckharmston left | 02:25 |
|
iwoj
| is there a way to undo a git rebase abort? | 02:26 |
| thallada_ → thallada | 02:26 |
| → zdk joined | 02:26 |
|
GNUtoo
| I'll try to reproduce the issue and I'll do that | 02:27 |
|
| iwoj, git reflog | 02:27 |
|
iwoj
| thanks gnutoo | 02:27 |
|
GNUtoo
| maybe it tries not to go in the skipped zone? | 02:28 |
| ← pdgreen left | 02:28 |
| → bgerber joined | 02:29 |
| ← eletuchy left | 02:29 |
|
iwoj
| git reflog show HEAD@{1} ? | 02:30 |
|
GNUtoo
| iwoj, you can even checkout it | 02:30 |
| ← nutron left | 02:30 |
| ← zdk left | 02:31 |
| → zdk joined | 02:32 |
| → cooloney joined | 02:33 |
| ← SiDz left | 02:34 |
| infogulch → infogulch|afk | 02:35 |
| → SiDz joined | 02:36 |
| ← cakehero left | 02:37 |
| → shirajermilio joined | 02:39 |
| ← rehat left | 02:41 |
| → nadirvardar joined | 02:43 |
| → QaDeS joined | 02:44 |
| ← camdenx left | 02:45 |
| ← jsoa left | 02:45 |
| → eletuchy joined | 02:46 |
| → artnez joined | 02:48 |
| ← kerrick left | 02:48 |
| → cakehero joined | 02:50 |
| → pandeiro_ joined | 02:50 |
|
iwoj
| thanks | 02:50 |
| ← plaxx left | 02:51 |
| ← shirajermilio left | 02:52 |
| → rehat joined | 02:52 |
| ← cakehero left | 02:54 |
| ← kpreid left | 02:56 |
| → kpreid joined | 02:56 |
| → duckx joined | 02:58 |
|
iwoj
| how do I bring (no branch) back into a specific branch? | 02:59 |
|
| … or how to I name (no branch) | 02:59 |
|
milki
| iwoj: git branch branchname | 03:00 |
|
iwoj
| thanks! | 03:00 |
| ← Textmode left | 03:01 |
| → kerrick joined | 03:03 |
| → CannedCorn joined | 03:04 |
| → hydrozen joined | 03:06 |
| → mankoff joined | 03:07 |
| → blorbx joined | 03:08 |
| ← iwoj left | 03:09 |
| ← Vert left | 03:10 |
| → Yuuhi``` joined | 03:11 |
| → williamcotton_ joined | 03:11 |
| ← Yuuhi`` left | 03:12 |
| ← Eridius left | 03:12 |
|
CareBear\
| iwoj : you never bring things into branches | 03:14 |
|
| iwoj : please stop for a moment and spend some time to learn the git data model, so that you can avoid further problems | 03:14 |
| ← dhruvasagar left | 03:15 |
| → Textmode joined | 03:15 |
| ← TomyLobo left | 03:15 |
| ← Anxi80 left | 03:17 |
|
CareBear\
| iwoj : the commit is central. each commit refers to a tree and usually a parent commit. the tree is sortof a snapshot of all files on disk. all commits except the very first one in each repo has one or more parent commits. | 03:18 |
| → cakehero joined | 03:19 |
| ← Davey left | 03:19 |
|
CareBear\
| iwoj : commits are immutable. once a commit has been created that commit will never change. | 03:19 |
|
| iwoj : a branch points to the latest commit. git knows what the active branch is, and updates that branch if a new commit is created. | 03:20 |
|
| iwoj : it's also possible to rewrite history of branches; that is, to replace commits on a branch with some other commits. | 03:21 |
| → dhruvasagar joined | 03:22 |
|
GNUtoo
| http://pastie.org/private/ubtrz6kjoxtakohmsfdfw | 03:24 |
|
| is that normal? | 03:24 |
| ← adityamenon left | 03:24 |
| ← maxwellcorbin left | 03:24 |
| ← Textmode left | 03:25 |
|
CareBear\
| GNUtoo : is what normal, exactly? it looks fine to me | 03:26 |
| ← goshawk left | 03:26 |
|
GNUtoo
| ok | 03:27 |
|
| the steps remaining don't change | 03:27 |
|
CareBear\
| the number of revisions does | 03:27 |
| → towski joined | 03:27 |
|
GNUtoo
| yes but very slowly.... | 03:28 |
| → Textmode joined | 03:29 |
| ← tjholowaychuk left | 03:30 |
| → apok joined | 03:30 |
| ← Wulf4 left | 03:35 |
| ← kukks left | 03:37 |
| → gcw|msrv joined | 03:37 |
| infogulch|afk → infogulch | 03:38 |
| ← osmosis left | 03:40 |
|
ivan`
| https://sites.google.com/a/chromium.org/dev/developers/how-tos/git-repo | 03:40 |
| ← segher left | 03:41 |
| → Wulf joined | 03:42 |
|
GNUtoo
| I'll go again | 03:42 |
|
| bye | 03:42 |
| ← GNUtoo left | 03:42 |
| → nutron joined | 03:43 |
| gitinfo set mode: +v | 03:43 |
| → segher joined | 03:43 |
|
gcw|msrv
| question - with git is it possible to have two branches checked out from the same (local) repository (without cloning to make a full copy) ? I've been using git for years but have not been able to come up with a solution for this... | 03:43 |
| ← segher left | 03:43 |
| → segher joined | 03:44 |
| → revagomes joined | 03:45 |
| ← cooloney left | 03:48 |
| ← segher left | 03:48 |
|
frogonwheels
| gcw|msrv: No, for most values of y. | 03:48 |
|
| gcw|msrv: If you want a 'read-only' copy somewhere, you can always export it with git-archive | 03:49 |
|
gcw|msrv
| frogonwheels: hrm ok.. | 03:49 |
|
| thx | 03:49 |
| → duckxx joined | 03:49 |
|
frogonwheels
| gcw|msrv: in the git contrib there's a shell script that allows two working directories for one repository, but I do not know the consequencex | 03:50 |
|
| s | 03:50 |
| ← revagomes left | 03:50 |
| ← duckx left | 03:50 |
| → revagomes joined | 03:50 |
| → segher joined | 03:50 |
|
frogonwheels
| gcw|msrv: (I only know of it 'cause I was fixing/hacking it to work for msysgit symlink patches.) | 03:51 |
| → cjs joined | 03:51 |
|
cjs
| How do I install git on a Linux machine that doesn't have git available in its repository (CentOS 5)? | 03:51 |
|
frogonwheels
| cjs: use another distro? wow, unbelievable .. ott - compile it from source | 03:52 |
|
cjs
| How do I get the source? | 03:52 |
|
| (That was my first idea, but I've not been having much success with that.) | 03:52 |
| → Eridius joined | 03:52 |
|
frogonwheels
| cjs: use git to fetch it ;P | 03:52 |
|
gcw|msrv
| frogonwheels: ahh ok.. thanks I really appreciate the info.. | 03:52 |
|
cjs
| (And yes, CentOS os totally OTT. The latest version, CentOS 6, uses gcc 4.4, which is no longer supported by the gcc project.) | 03:53 |
|
frogonwheels
| cjs: https://github.com/git/git [zip] possibly? | 03:55 |
|
| cjs: ott is also other than that | 03:55 |
| ← weiyang left | 03:55 |
|
frogonwheels
| gcw|msrv: 'git-new-workdir' is the script. | 03:56 |
| ← duckxx left | 03:57 |
|
frogonwheels
| gcw|msrv: it basically soft-links everything that can be. but again, I do NOT know the consequences. | 03:57 |
| → stkrzysiak_ joined | 03:57 |
|
frogonwheels
| gcw|msrv: referenced here: http://www-cs-students.stanford.edu/~blynn//gitmagic/ch07.html actually :) | 03:58 |
|
cjs
| frogonwheels: Ah, that ZIP button was the trick! I hadn't noticed that. | 03:59 |
|
frogonwheels
| cjs: btw #github is a good place to go if you want to ask github interface questions :) | 03:59 |
| → adityamenon joined | 04:00 |
| ← stkrzysiak left | 04:01 |
|
gcw|msrv
| frogonwheels: hrmmm that looks pretty dangerous... I'm thinking I'll steer clear ;-) | 04:01 |
|
frogonwheels
| gcw|msrv: lol. yeah, indeed. | 04:01 |
| ← stkrzysiak_ left | 04:01 |
| → bddn joined | 04:05 |
| ← hyperair left | 04:06 |
| ← gavin_huang left | 04:10 |
| → ReekenX joined | 04:11 |
| ← iamjarvo left | 04:11 |
| → sangi joined | 04:11 |
| ← spyro left | 04:11 |
| ← cilly left | 04:12 |
| → robbyoconnor joined | 04:13 |
| → iwoj joined | 04:14 |
| → iamjarvo joined | 04:17 |
| ← robbyoconnor left | 04:17 |
| → jonwil joined | 04:18 |
| → cilly joined | 04:18 |
| ← cakehero left | 04:20 |
| ← apok left | 04:20 |
| gitinfo set mode: +v | 04:21 |
|
jonwil
| Is there a way to display a nice graphical view of the commits and stuff in a git repository? I swear I did it before but now I cant remember how | 04:21 |
|
kpreid
| gitk | 04:22 |
|
| opinions may differ on "nice", but it's standard and it's graphical | 04:22 |
| → beautifulmind joined | 04:22 |
|
jonwil
| thats what I wanted, thanks | 04:23 |
|
| now I just gotta find where my git install put the binaries for it... | 04:23 |
|
| (its windows so its non-standard) | 04:23 |
| ← cjs left | 04:24 |
| → mikepack joined | 04:24 |
| ← kurrataW left | 04:24 |
| → jnewt joined | 04:24 |
| ← blami left | 04:25 |
|
offby1
| gitk actually (typically) looks better on Windows than on *nix | 04:25 |
|
| true story | 04:25 |
| → Tegi_ joined | 04:26 |
|
jnewt
| i'm struggling with what it means to have a local branch "track" a remote branch. I have no idea what that means, unless it's just a name mapping, but it seems important, and i can't find an explanation | 04:26 |
| → blami joined | 04:27 |
| → subhojit777 joined | 04:27 |
| ChanServ set mode: +v | 04:27 |
| ← williamcotton_ left | 04:27 |
| → Araxia joined | 04:27 |
|
jnewt
| is it just a name mapping, like "there's a branch on remote called x, but i want to call it y locally, so call it y but when i push, push it as x"? | 04:27 |
|
EugeneKay
| jnewt - it means that when you run "git pull" the remote branch will automagically be fetched and merged into your equivalent local banch, and when you push it will do the same. | 04:28 |
| → stkrzysiak joined | 04:28 |
| ← jonwil left | 04:28 |
| → spyro joined | 04:29 |
| ← spyro left | 04:29 |
| → spyro joined | 04:29 |
|
jnewt
| what do you mean by "equivalent"? if i clone a repo, all branches are equivalent. if i fetch, it will fetch all changes to my local. what is the point of tracking or not tracking, i'd say everything is tracked. | 04:29 |
|
EugeneKay
| s/equivalent/tracked | 04:29 |
|
| It means that branch X is matched to remote/X | 04:29 |
|
jnewt
| isn't that always the case by default? | 04:29 |
|
EugeneKay
| If you checkout a branch from a remote branch, yes. | 04:30 |
| → apok joined | 04:30 |
|
EugeneKay
| YOu can change the tracked branch to a local branch, or a different remote branch, or to something involving space aliens. But you usually won't. | 04:30 |
|
jnewt
| what if i just clone a remote to local, then checkout the local branch, as is the usual case, wouldn't that local branch be tracking the remote branch? | 04:31 |
| ← tazle__ left | 04:32 |
| ← subhojit777 left | 04:32 |
|
EugeneKay
| Yup. | 04:32 |
| → subhojit777 joined | 04:33 |
| ← subhojit777 left | 04:33 |
| → subhojit777 joined | 04:34 |
|
jnewt
| and the only time i'd have an untracked branch is if i created one locally, committed, but didn't push correct? | 04:35 |
|
| but then when i pushed, would i need to fetch to "enable" tracking? | 04:35 |
|
| or use --track | 04:35 |
|
EugeneKay
| The latter, yes. | 04:38 |
| ← mikepack left | 04:38 |
|
jnewt
| so even if i push a local repo back to the origin (assuming a centralized model), i haven't done something that would make the branch tracked? | 04:40 |
|
| it seems --track is default | 04:41 |
| ← iwoj left | 04:42 |
|
jnewt
| i'm reading on this page that is confusing the git out of me: http://git-scm.com/book/en/Git-Branching-Remote-Branches | 04:43 |
| ← CannedCorn left | 04:44 |
| ← revagomes left | 04:44 |
| → cooloney joined | 04:45 |
|
EugeneKay
| I advise you to stop worrying about it. If it does something you don't expect, use `git branch -avv` and `git branch --set-upstream` to make it do what you want. Then move on with your life. | 04:45 |
| → camdenx joined | 04:45 |
|
EugeneKay
| You have the basic idea, damn the details. | 04:46 |
| ← yoklov left | 04:46 |
|
jnewt
| the very bottom 2 sections are reading like "who the fuck came up with this crazy business" | 04:46 |
| → lresende joined | 04:46 |
|
jnewt
| then i remember...linus | 04:46 |
|
EugeneKay
| git is a proof of software evolution rather than intelligent design | 04:46 |
|
| Linus envisioned git as an object model. The fact that the binary has become a full-fledged VCS rather than something which is wrapped in a user-friendly GUI is frankly terrifying | 04:47 |
|
| So.... go with it. And pray it gets rewritten for v2.0 ;-) | 04:47 |
| → juvenal joined | 04:47 |
| ← bgerber left | 04:48 |
| → yoklov joined | 04:48 |
|
jnewt
| i've been using from cli, so far, and i personally would really appreciate someone writing a better gui / interface for windows than tortoiseSVN or some of the other's i've tried. they all seem confusing thus far, moreso than pecking away on git bash (win user here) | 04:49 |
| ← camdenx left | 04:49 |
| → wilmoore joined | 04:50 |
|
EugeneKay
| SmartGit | 04:52 |
|
chrisf|walrus
| jnewt: the github guys have done a 'friendly gui' for windows recently | 04:53 |
| ← avpx left | 04:54 |
|
chrisf|walrus
| jnewt: i dont know whether it's usable for repositories hosted elsewhere | 04:54 |
|
EugeneKay
| It's terrible and useless | 04:54 |
| → bgerber joined | 04:54 |
|
jnewt
| well, that's cleared up :) | 04:55 |
|
chrisf|walrus
| tbh, i dont get the appeal of a gui for version control at all, beyond a good history browser (for which tig wins) | 04:55 |
| → arvind_khadri joined | 04:58 |
| ← madewokherd left | 05:00 |
| → edude03 joined | 05:00 |
|
jnewt
| EugeneKay: just cloned a repo with smartgit, and the file list shows all untracked. smartgit looks good, but i'm right back to the misunderstanding of tracking. i just cloned it! | 05:01 |
|
EugeneKay
| Untracked or unchanged? :-p | 05:01 |
| ← bigkm left | 05:01 |
| ← Zenmaker__ left | 05:01 |
|
jnewt
| under the State Column, every single file shows untracked. granted i'm not on the tip (backed up using the log), but that seems to be at odds with what we discussed | 05:02 |
| ← rbarraud left | 05:02 |
| → Zenmaker__ joined | 05:02 |
| → bigkm joined | 05:03 |
| ← wilmoore left | 05:04 |
|
jnewt
| ok, just cloned another, tons of files are now in my local working tree. not a single file in the files list on smartgit. maybe i got a bad copy :) | 05:09 |
| ← yoklov left | 05:12 |
| ← Bass10 left | 05:14 |
| → iwoj joined | 05:14 |
| ← hydrozen left | 05:14 |
| ← towski left | 05:15 |
| → towski joined | 05:15 |
| → kleist joined | 05:16 |
| → tazle_ joined | 05:16 |
| ← lresende left | 05:18 |
| → lresende joined | 05:19 |
| ← project2501b left | 05:22 |
| ← lresende left | 05:24 |
| → lresende_ joined | 05:24 |
| ← dhruvasagar left | 05:24 |
| → Pupeno_W joined | 05:24 |
| ← adityamenon left | 05:25 |
| → samuel joined | 05:29 |
| → private joined | 05:31 |
| private → Guest58171 | 05:31 |
| → k1t joined | 05:34 |
| → andrewhl joined | 05:35 |
|
k1t
| hey folks, how might I squash the past 5 commits on origin/master ? if I do 'git rebase -i HEAD~5' it pulls up the past 7 commits, 2 of which are not mine. I just want to squash the past 5 commits from my forks remote | 05:35 |
| ← imrobert left | 05:36 |
| → JZA joined | 05:36 |
|
JZA
| hi anyone here know how can I recover from deleating my head files | 05:36 |
|
| I am trying to upload my project to gitorious but I had issues pushing my code into it. | 05:37 |
|
| so I delete the .git folder hoping it will re-generate but it seems it got worst now | 05:37 |
|
k1t
| https://github.com/whitmanc/spree_product_sort/commits/master id actually like to sqush commit 1, 3, 4 and 5... and leave 2 as its own commit, if I could | 05:38 |
|
| id be happy to read a ref if someone could point me in the right direction | 05:38 |
| ← marc_kdab left | 05:38 |
|
_ikke_
| JZA: Deleting the .git directory removes the actual repository | 05:38 |
|
| JZA: You'd have to reclone it | 05:38 |
| → longbeach joined | 05:38 |
|
_ikke_
| JZA: That's not a very smart thing you have done | 05:39 |
|
| k1t: look at man git rebase -i | 05:39 |
|
gitinfo
| k1t: the git-rebase manpage is available at http://git-scm.com/docs/git-rebase.html | 05:39 |
| ← codewrangler left | 05:40 |
|
JZA
| _ikke_: I havent yet push my code to the gitorious website, so I don't really know how to re-clone it lo | 05:41 |
| ← iamjarvo left | 05:43 |
|
k1t
| thx | 05:43 |
| → iamjarvo joined | 05:43 |
|
_ikke_
| JZA: Well, you're kind of out of luck then | 05:43 |
|
| The only thing you have left is you working copy | 05:44 |
| ← edude03 left | 05:44 |
|
JZA
| _ikke_: I have folder1/<code> deleted folder1/.git/ then created folder2/ moved my code, want to generate a new repo. | 05:44 |
|
| _ikke_: that's the point, there was always only one repo in my hd. I havent push it yet. | 05:45 |
|
| _ikke_: I want to know how to create the master, and push it for the first time. | 05:46 |
|
jnewt
| clone the github repo, then put your code in | 05:46 |
|
_ikke_
| jnewt: He's not using github | 05:46 |
|
JZA
| jnewt: is gitorious, not github. | 05:46 |
| ← glennpratt left | 05:47 |
|
JZA
| but I guess the process is the same | 05:47 |
|
jnewt
| re clone. | 05:47 |
|
_ikke_
| JZA: Is there anything on gitorious? | 05:47 |
|
jnewt
| you lose your local history, you | 05:47 |
|
JZA
| _ikke_: no | 05:47 |
| → goshawk joined | 05:47 |
| → weiyang joined | 05:47 |
|
JZA
| first time I tried to push it, it didnt recognized my publickey | 05:47 |
|
_ikke_
| JZA: git init then | 05:47 |
|
| and the copy the code to that folder | 05:47 |
|
JZA
| ok | 05:48 |
|
| _ikke_: ah I think that was it | 05:48 |
|
jnewt
| but you arent' going to push back to gitorwahtever that way | 05:48 |
|
_ikke_
| jnewt: You can | 05:48 |
|
| JZA: git remote add origin <url-to-gitorious-repo> | 05:48 |
|
jnewt
| fancy new trick for me! | 05:49 |
|
_ikke_
| JZA: the first time you push master, you'd to: git push -u origin master | 05:49 |
| ← scientes left | 05:50 |
| → marc_kdab joined | 05:50 |
| → scientes joined | 05:51 |
|
JZA
| _ikke_: I get this.. git checkout master .. error: pathspec 'master' did not match any file(s) known to git. | 05:51 |
|
| what does that mean? | 05:52 |
| → skorgon joined | 05:54 |
| → ThomasLocke joined | 05:55 |
|
_ikke_
| JZA: When you create a repo (git init), there is no actual branch called master yet | 05:55 |
|
| JZA: Just create a commit | 05:55 |
|
JZA
| ok | 05:55 |
| ← nadirvardar left | 05:56 |
| ← scientes left | 05:58 |
|
frogonwheels
| JZA: After init !HEAD contains a reference to master - the first commit will cause the branch to be created. | 05:59 |
|
gitinfo
| JZA: HEAD is a 'pointer' in the repository that refers to whatever is currently checked out (or the default branch in bare repositories). It's not specific to any branch. | 05:59 |
|
JZA
| ok I am on the same error as before. | 05:59 |
|
| I guess this is more on the gitorious end | 05:59 |
|
| git push origin master | 05:59 |
|
| Permission denied (publickey). | 05:59 |
|
| fatal: The remote end hung up unexpectedly | 05:59 |
| → nadirvardar joined | 05:59 |
|
_ikke_
| Your public key is not accepted | 05:59 |
|
frogonwheels
| JZA: yeah - you'll need to debug the ssh connection. ssh -V will help | 06:00 |
|
_ikke_
| but that has nothing to do with your repository | 06:00 |
| ← dreiss left | 06:00 |
|
frogonwheels
| JZA: set up your pubkey with gitorious, and make sure your private key is available locally. using ssh will help you pinpoint the issue | 06:00 |
|
JZA
| frogonwheels: is there an attribute to select a different key, like ssh -i .ssh/otherkey.pub | 06:02 |
| ← EyesIsMine left | 06:02 |
|
frogonwheels
| JZA: /me shrugs | 06:02 |
|
| argh | 06:02 |
|
| you know what i mean. | 06:02 |
| ← iwoj left | 06:03 |
| → edude03 joined | 06:03 |
| → sq-one joined | 06:05 |
|
_ikke_
| JZA: You'd have to use .ssh/config | 06:06 |
| → arti_t joined | 06:06 |
| ← lonewulf` left | 06:07 |
| → marthinal joined | 06:07 |
| → alexukf joined | 06:08 |
| → lonewulf` joined | 06:09 |
| → patrick85 joined | 06:09 |
| ← vlrk left | 06:10 |
| ← nadirvardar left | 06:11 |
| ← chrisward left | 06:12 |
| ← alexukf left | 06:13 |
| → michaelmartinez joined | 06:13 |
|
iamjarvo
| so i did a rebase and it rewrote the branches history. the branch was already pushed though. i am the only one working on the "feature" branch. Its probably not good practice but I am thinking i should clobber the branches on origin and push the new ones up | 06:14 |
| → cbreak-work joined | 06:14 |
|
frogonwheels
| iamjarvo: A nice way of handling this (an example I took from somebody else) kind of situation is to name your feature branch myfeature/v1 and then name it myfeature/v2 when you rebase it and push it | 06:15 |
| → sixteneighty joined | 06:15 |
|
frogonwheels
| iamjarvo: ott you can force push the branch up ( git push origin +featurebranch ) | 06:15 |
| → leeN joined | 06:15 |
| ← sixteneighty left | 06:15 |
|
iamjarvo
| i like the first version better calling it a v2 | 06:15 |
|
frogonwheels
| iamjarvo: Just be aware that if you have myfeature you can't have myfeature/v2 | 06:16 |
| → maletor joined | 06:16 |
| → chrisward joined | 06:16 |
| chrisward → Guest57760 | 06:16 |
| → quazimodo joined | 06:16 |
|
frogonwheels
| iamjarvo: just cause in the first case 'myfeature' is effectively a file, and in the second 'myfeature' is effectively a diretory :) (even though when tags are compressed that may not be strictly true) | 06:16 |
|
iamjarvo
| frogonwheels i think i will make it easier and just tack on a -v2 | 06:17 |
|
frogonwheels
| iamjarvo: ah yes. that will work as well :) | 06:17 |
|
| iamjarvo: you can then cull the old branches as necessary | 06:18 |
| → papegaaij joined | 06:18 |
| ← drl left | 06:19 |
|
iamjarvo
| thanks frogonwheels | 06:19 |
| ← skorgon left | 06:21 |
| → EyesIsMine joined | 06:21 |
| ← Dreamer3 left | 06:23 |
| → olaf_ joined | 06:24 |
| → bosspetta joined | 06:25 |
| → vlrk joined | 06:26 |
| → ottoshmidt joined | 06:28 |
| → nielsbusch joined | 06:28 |
| ← lresende_ left | 06:29 |
| ← rue_XIV left | 06:30 |
| → rue joined | 06:30 |
| → soee joined | 06:30 |
| → flijten joined | 06:30 |
| ← iamjarvo left | 06:31 |
| ← fisted_ left | 06:31 |
| ← edude03 left | 06:31 |
| → drl joined | 06:32 |
| → fisted joined | 06:32 |
| ← clifton left | 06:33 |
| ← Schwern left | 06:37 |
| ← Jay_Levitt left | 06:37 |
| ← michaelmartinez left | 06:39 |
| ← darren_ left | 06:41 |
| ← vlrk left | 06:46 |
| → Schwern joined | 06:46 |
| → tatsuya_o joined | 06:47 |
| ← _bart left | 06:47 |
| → dinesh6654 joined | 06:49 |
| ← sq-one left | 06:52 |
| → dreiss joined | 06:54 |
| ← tatsuya_o left | 06:55 |
| ← longbeach left | 06:55 |
| ← pandeiro_ left | 06:55 |
| ← ISF left | 06:56 |
| → dhruvasagar joined | 06:57 |
|
k1t
| is there a reason 1 commit wouldnt show up when i 'git rebase -i HEAD~2' ? It actually shows 4 commits, 3 from another individual from before i forked. | 06:57 |
|
| any ideas heh | 06:57 |
|
milki
| maybe its merge related | 06:58 |
| → und3f joined | 06:59 |
| → bubbles10101 joined | 06:59 |
| ← txdv_ left | 07:00 |
| → skorgon joined | 07:01 |
| → jceb_ joined | 07:02 |
| → EricKamsky_ joined | 07:02 |
| → drizzd joined | 07:02 |
|
k1t
| https://github.com/whitmanc/spree_product_sort/commits/master considering theres a merge right before, definitely a possibility | 07:03 |
| ← EricKamsky left | 07:03 |
| ← nobdrais1ntone left | 07:03 |
| → txdv joined | 07:04 |
|
k1t
| so close, just need to squash those 2 top commits | 07:04 |
|
| haha | 07:04 |
| → vlrk joined | 07:05 |
| → Chib joined | 07:05 |
| ← ottoshmidt left | 07:05 |
| ← imarcusthis left | 07:06 |
| → ottoshmidt joined | 07:06 |
| → clifton joined | 07:06 |
| → hoschi joined | 07:06 |
| → shruggar joined | 07:07 |
| ← towski left | 07:07 |
|
cbreak-work
| k1t: rewriting public history is bad | 07:07 |
| → imarcusthis joined | 07:07 |
|
k1t
| well its my fork, i was trying to clean up before i did a pull req... I should be working a branch, realy | 07:07 |
|
| really* | 07:07 |
| → kurrataW joined | 07:08 |
|
k1t
| cbreak-work: either way, i agree with you.. | 07:08 |
| → thiago joined | 07:08 |
| ← mishok13 left | 07:08 |
| → defts joined | 07:09 |
| → tatsuya_o joined | 07:09 |
| → ph^ joined | 07:09 |
|
k1t
| i dont understand why rebase wont show the 2nd commit though | 07:09 |
| ← kleist left | 07:11 |
| ← drizzd left | 07:11 |
| ← yuwang_ left | 07:12 |
|
cbreak-work
| rebase is not the correct solution | 07:13 |
|
| not if you have a merge | 07:13 |
|
ottoshmidt
| is there a good guide on how to setup git server side somewhere? | 07:13 |
|
| *anywhere | 07:13 |
|
cbreak-work
| just set up an ssh server and install git on it. done. | 07:13 |
|
| if you want access control, take a look at gitolite | 07:14 |
|
EugeneKay
| Definitely gitolite. | 07:14 |
| ← Nibato left | 07:15 |
| ← jceb_ left | 07:16 |
| → jceb_ joined | 07:16 |
|
ottoshmidt
| thanks | 07:16 |
| ← Goplat left | 07:17 |
| ← kerrick left | 07:18 |
| ← stkrzysiak left | 07:18 |
| → tqmz joined | 07:19 |
| ← bizhanMona left | 07:20 |
| ← palm_vue left | 07:20 |
| ← NimeshNeema left | 07:20 |
| ← tatsuya_o left | 07:20 |
| ← wagle left | 07:20 |
| → bizhanMona joined | 07:21 |
| → palm_vue joined | 07:21 |
| → psoo joined | 07:22 |
| → _iron joined | 07:23 |
| → tatsuya_o joined | 07:25 |
| ← shruggar left | 07:25 |
| ← Chaser left | 07:26 |
| → wagle joined | 07:26 |
| → subhojit_ joined | 07:26 |
| → Chaser joined | 07:27 |
| ← bgerber left | 07:27 |
| → kwijibo joined | 07:28 |
| → mishok13 joined | 07:28 |
| → shruggar joined | 07:28 |
| ← andrewhl left | 07:29 |
| ← apok left | 07:30 |
| ← Eridius left | 07:30 |
| → solofight joined | 07:31 |
| ← solofight left | 07:31 |
| → giallu joined | 07:32 |
| ← dreiss left | 07:32 |
| → purencool joined | 07:33 |
| ← shruggar left | 07:33 |
| ← ph^ left | 07:33 |
| ← goshawk left | 07:33 |
| → shruggar joined | 07:34 |
| → goshawk joined | 07:34 |
| → tsdh joined | 07:34 |
| ← nyuszika7h left | 07:35 |
| ← maletor left | 07:38 |
| → bgerber joined | 07:39 |
| ← tatsuya_o left | 07:39 |
| → jn_ joined | 07:40 |
| ← shruggar left | 07:42 |
| ← beautifulmind left | 07:44 |
| ← eletuchy left | 07:45 |
| → ipalaus joined | 07:47 |
| ← WillMarshall left | 07:48 |
|
clifton
| i wrote a pre-commit hook to strip trailing whitespace and a few other changes from *only* files changed, looking for feedback (mostly did it to clean up coworker commits) http://git.io/pre-commit | 07:49 |
|
SeoZ
| hello | 07:51 |
|
gitinfo
| SeoZ: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 07:51 |
| ← cooloney left | 07:52 |
|
SeoZ
| i have a question. | 07:52 |
|
_inte_
| You don't. | 07:52 |
|
SeoZ
| hehe | 07:52 |
|
| you knew it! | 07:52 |
|
| i reset my git to previous revision to remove recent history. | 07:52 |
|
| how can i push this? | 07:52 |
| → chris_dexter joined | 07:53 |
|
SeoZ
| i got | 07:53 |
|
| ! [remote rejected] HEAD -> refs/for/master (no new changes) | 07:53 |
|
| error: | 07:53 |
| gitinfo set mode: +v | 07:53 |
|
chris_dexter
| anyone can help me out with a phpStorm problem? | 07:54 |
| → polymar joined | 07:54 |
| → dpino joined | 07:54 |
| ← Cerise left | 07:55 |
|
chris_dexter
| just yesterday I have installed msysgit, but when I try to configure phpStorm to work with git, it says "Errors while executing git --version. exitCode=<some numbers>" | 07:55 |
|
| any hints on that? | 07:56 |
| → tvw joined | 07:57 |
| → WillMarshall joined | 07:57 |
| ← dinesh6654 left | 07:57 |
| → Cerise joined | 07:58 |
| ← chris_dexter left | 07:58 |
| → _bart joined | 07:59 |
| → dr_lepper joined | 07:59 |
| → chris_dexter joined | 07:59 |
| ← Guest58171 left | 07:59 |
| ← tvw left | 08:00 |
| ← patrick85 left | 08:01 |
| → Lord_DeathMatch joined | 08:03 |
|
charon
| chris_dexter: what's the actual exit code? | 08:04 |
|
| does it find the git executable? | 08:04 |
| ← WillMarshall left | 08:04 |
| gitinfo set mode: +v | 08:05 |
|
chris_dexter
| -1073741515 | 08:05 |
|
| yes it finds the executable | 08:05 |
| ← flijten left | 08:05 |
|
chris_dexter
| I have a hunch that it's because of some missing DLL | 08:06 |
| → LimeBlast joined | 08:06 |
|
chris_dexter
| oh yea, libiconv-2.dll | 08:06 |
|
| I'll try to figure it out, I'll let you know if I fixed it | 08:07 |
|
thiago
| transform that number into hex and google for it | 08:07 |
|
| c0000135 | 08:07 |
| → patrick85 joined | 08:08 |
| ← arti_t left | 08:08 |
|
chris_dexter
| thanks, I didn't know this worked | 08:08 |
| → cooloney joined | 08:08 |
| → arti_t joined | 08:08 |
| → OOPMan joined | 08:09 |
| ← igotnolegs left | 08:09 |
| gitinfo set mode: +v | 08:10 |
|
ljbo
| question about git svn: in the SVN repo /trunk/boost@38326 was copied to /devel@38327 and then /devel@38328 was copied to /trunk@38329. git svn fetch logged it was feeding refs/remotes/svn/trunk (I used --prefix=svn/) but then it restarted from the beginning, this time feeding refs/remotes/svn/trunk@ 38326 | 08:11 |
|
| I would like to understand what is going on | 08:11 |
| → flijten joined | 08:11 |
|
thiago
| ljbo: do you mean /trunk was deleted between 38326 and 32328? | 08:12 |
|
chris_dexter
| fixed it :-) added mingw/bin to the %path% | 08:12 |
| → Eridius joined | 08:13 |
|
chris_dexter
| thanks guy, sorry for bothering with a silly issue like this | 08:13 |
| ← tabakhase left | 08:13 |
| → tabakhase joined | 08:13 |
|
charon
| chris_dexter: well, we're glad to help. i hope you learned not to elide "useless" information :) | 08:13 |
|
ljbo
| Changed paths: | 08:14 |
|
| D /devel | 08:14 |
|
| A /trunk (from /devel:38328) | 08:14 |
|
| they surely did: svn copy devel trunk | 08:14 |
|
| sorry: svn mv devel trunk | 08:14 |
| ← neurodrone left | 08:15 |
|
ljbo
| yeah, sorry, dunno why I wrote "copied" above | 08:15 |
|
| need another coffee | 08:15 |
|
thiago
| ljbo: then you now understand what happened | 08:15 |
| adhawkins-away → adhawkins | 08:15 |
|
ljbo
| svn-side yes, but I don't understand what git svn is doing | 08:17 |
|
thiago
| ljbo: it's trying to follow the SVN history | 08:17 |
|
| ljbo: that doesn't mean it's succeeding | 08:17 |
|
ljbo
| so in the first phase, when it was feeding .../trunk, from where was it taking the history then? | 08:18 |
|
thiago
| moving trunk is a sure way to break it | 08:18 |
|
ljbo
| that was gonna be my next question… | 08:18 |
|
thiago
| did it finish importing? | 08:18 |
|
ljbo
| still running | 08:19 |
|
thiago
| when it finishes, inspect history and find out if it was correct | 08:19 |
|
ljbo
| it will take forever as there is a release branch to fetch next with the same issue | 08:19 |
|
| I will do | 08:19 |
|
thiago
| that's because you're using git-svn, which is SLOW | 08:19 |
| → d0k joined | 08:19 |
|
thiago
| there's an alternative for one-off imports which is much quicker, up to 20x quicker | 08:19 |
|
| svn2git | 08:19 |
|
ljbo
| I tried that and it is indeed blazingly fast | 08:20 |
|
| but the imported repo has directories trunk, branches, etc | 08:20 |
|
thiago
| you need to edit the config file to tell it how to import | 08:21 |
|
ljbo
| well, of course, it's git we are talking about | 08:21 |
|
thiago
| unlike git-svn, it doesn't guess. It needs to be told of the layout. | 08:21 |
|
ljbo
| I think I had done that correctly | 08:21 |
|
| I concluded that svn2git ignored the config file | 08:21 |
| ← kurrataW left | 08:21 |
|
ljbo
| or perhaps it has some special configuration of its own? | 08:21 |
| ← cooloney left | 08:21 |
|
thiago
| it doesn't run without a config file | 08:22 |
|
| so it can't be ignoring it | 08:22 |
|
ljbo
| so, yeah, I was going to say that I could use git replace and git filter-branch to fix things afterward | 08:22 |
|
| there was a config file | 08:22 |
|
thiago
| that's an option too | 08:22 |
|
ljbo
| but it did not honour it | 08:22 |
|
| well, if you tell me that for sure it would honour it then I'll go back to that and check right now | 08:23 |
|
thiago
| more than like, it did honour it | 08:23 |
|
| but your config file wasn't what you wanted it to do | 08:23 |
|
ljbo
| ok, great news then! | 08:23 |
|
| thanks! | 08:23 |
| → angelsl joined | 08:25 |
| → shruggar joined | 08:25 |
| → fornext joined | 08:26 |
| → kurrataW joined | 08:27 |
| ← dhruvasagar left | 08:28 |
| → dhruvasagar joined | 08:29 |
| → tweedledumber joined | 08:30 |
| ← arti_t left | 08:30 |
| → Speed joined | 08:30 |
| ← Speed left | 08:30 |
| → Speed joined | 08:30 |
| → arti_t joined | 08:30 |
| ← tweedledumber left | 08:31 |
| ← Null_Route left | 08:32 |
| → aviraldg joined | 08:32 |
| Guest57760 → chrisward | 08:34 |
| ← bigkm left | 08:34 |
| ← Speed left | 08:35 |
| → JohnBat26 joined | 08:36 |
| ← ottoshmidt left | 08:36 |
| → ottoshmidt joined | 08:37 |
| → bigkm joined | 08:38 |
| → Speed joined | 08:39 |
| ← Speed left | 08:39 |
| → Speed joined | 08:39 |
| ← werdnativ left | 08:39 |
| → cooloney joined | 08:39 |
| ← maknz left | 08:39 |
| → d0k_ joined | 08:42 |
| ← d0k left | 08:43 |
| d0k_ → d0k | 08:43 |
| ← ReekenX left | 08:43 |
| → tatsuya_o joined | 08:44 |
| → alexukf joined | 08:44 |
| ← kwijibo left | 08:44 |
| → whitman joined | 08:45 |
|
GeorgeJ
| Hello folks. | 08:45 |
|
| Can I configure my repository so that doing a `git push` on my develop branch be equivalent to `git push heroku develop:master` ? | 08:45 |
| → maknz joined | 08:45 |
| ← telmich left | 08:46 |
| → camdenx joined | 08:47 |
| → ReekenX joined | 08:48 |
| → bullicon joined | 08:48 |
| ← camdenx left | 08:48 |
| ← aviraldg left | 08:49 |
| ← JohnBat26 left | 08:49 |
| → yaydin joined | 08:49 |
|
shruggar
| I don't think you can specify the default push remote on a per-branch basis, though you can specify the develop:master part | 08:49 |
| → JohnBat26 joined | 08:50 |
|
GeorgeJ
| shruggar: How could I do so? | 08:51 |
| ← yaydin left | 08:52 |
|
shruggar
| remote.origin.push=refs/heads/develop:refs/heads/master … but again, that's not per-branch, that just means that every time you "git push" anywhere without being more-specific, it will push "develop" to "master" | 08:52 |
|
| that would be remote.heroku.push, in your case | 08:53 |
|
cmn
| you can set push.default to upstream and make heroku's master develop's upstream | 08:53 |
|
| or just make an alais | 08:53 |
|
| alias | 08:53 |
| ← thiago left | 08:54 |
| → RaceCondition joined | 08:54 |
|
shruggar
| btw, if you have a branch called "develop", you're probably doing something very wrong | 08:54 |
| ← RaceCondition left | 08:54 |
|
cmn
| why? | 08:55 |
|
shruggar
| because (especially as he's then just pushing directly back to master), it implies that you're not actually using branches | 08:56 |
| → rtuin joined | 08:56 |
|
jast
| this is heroku we're talking about | 08:56 |
| → kortti joined | 08:56 |
|
cmn
| for some people maybe | 08:57 |
|
jast
| normal rules of common sense don't apply ;) | 08:57 |
| ← alexukf left | 08:57 |
|
cmn
| but just because you're using a branch called develop it doesn't mean you're not using branches | 08:57 |
| → alexukf joined | 08:57 |
| ← oogatta left | 08:58 |
| ← ReekenX left | 08:58 |
| ← goshawk left | 08:58 |
| → oogatta joined | 08:58 |
| → ReekenX joined | 08:58 |
|
shruggar
| I'm guessing at least 99 out of 100 people who have a branch called "develop" either only work on one thing at a time, or have a lot of mixed history | 09:00 |
| ← arvind_khadri left | 09:00 |
| → RaceCondition joined | 09:02 |
| → caddoo joined | 09:03 |
| ← purencool left | 09:03 |
| → berserkr joined | 09:04 |
| ← LekeFly left | 09:04 |
|
bronsen
| git-flow encourages "develop" branch | 09:06 |
| → etcetera joined | 09:07 |
| ← k1t left | 09:07 |
| ← alexukf left | 09:07 |
|
charon
| bronsen: but it also uses a lot of topic branches | 09:08 |
|
GeorgeJ
| shruggar: Actually, the only reason I'm pushing the develop branch is to showcase the feature I'm currently working on. | 09:08 |
| ← RaceCondition left | 09:08 |
| → alexukf joined | 09:08 |
|
GeorgeJ
| I'm pushing to a 'daily' sub-domain. Which is only used for testing. | 09:09 |
|
cmn
| ok, so you've made shruggar's point | 09:09 |
|
GeorgeJ
| I am using the branches. | 09:09 |
|
| I'm pushing master to the production repository. | 09:09 |
| ← artnez left | 09:10 |
| → jhllnd joined | 09:10 |
| → pranjal710 joined | 09:11 |
|
GeorgeJ
| I'm also using feature branches. Every time I merge a feature branch into develop, I also push develop to the testing sub-domain. | 09:11 |
| ← pranjal710 left | 09:11 |
| ← fornext left | 09:11 |
| → ph^ joined | 09:12 |
| ← Sky[x] left | 09:12 |
| ← albel727 left | 09:13 |
| ← alexukf left | 09:13 |
| ← cooloney left | 09:14 |
| → irqq joined | 09:14 |
| → TheJH joined | 09:15 |
| → lb joined | 09:15 |
| → vectorshelve joined | 09:16 |
| gitinfo set mode: +v | 09:16 |
| → cooloney joined | 09:16 |
| → Davey joined | 09:16 |
| ← ph^ left | 09:16 |
| → nyuszika7h joined | 09:17 |
| → fsvend joined | 09:18 |
| → solofight_ joined | 09:18 |
| → LekeFly joined | 09:19 |
| → Vert joined | 09:23 |
| ← angelsl left | 09:26 |
| ← vectorshelve left | 09:26 |
| ← patrick85 left | 09:27 |
| → thiago joined | 09:27 |
| → fornext joined | 09:27 |
| → vervic joined | 09:31 |
| ← solofight_ left | 09:32 |
| → patrick85 joined | 09:34 |
| ← rapsys left | 09:35 |
| ← jjang left | 09:36 |
| → rbarraud joined | 09:36 |
| → jjang joined | 09:36 |
| → ph^ joined | 09:36 |
| ← ottoshmidt left | 09:37 |
| → ottoshmidt joined | 09:38 |
| ← TheJH left | 09:39 |
| ← und3f left | 09:40 |
| → Nibato joined | 09:43 |
| ← weiyang left | 09:44 |
| ← ljbo left | 09:44 |
| → Nibato` joined | 09:46 |
| ← harish left | 09:47 |
| → tvw joined | 09:48 |
| ← Nibato left | 09:48 |
| ← Lord_DeathMatch left | 09:51 |
| → Lord_DeathMatch joined | 09:51 |
| ← vervic left | 09:52 |
|
lb
| !beer | 09:52 |
|
gitinfo
| Beer! It's what's for dinner! | 09:52 |
| ← subhojit777 left | 09:53 |
| ← subhojit_ left | 09:53 |
| ← kurrataW left | 09:55 |
| ← matthiaskrgr left | 09:55 |
| ← nyuszika7h left | 09:55 |
| ← Sander^home left | 09:55 |
| → BassamJB joined | 09:57 |
| ← BassamJB left | 09:57 |
| → Camie joined | 09:57 |
| → BassamJB joined | 09:57 |
| → vervic joined | 09:58 |
| → danielpunt joined | 09:59 |
| → alexukf joined | 09:59 |
| → nyuszika7h joined | 10:00 |
| ← BassamJB left | 10:00 |
| → chowmain joined | 10:03 |
| → dvide joined | 10:03 |
| ← wagle left | 10:06 |
| ← giallu left | 10:07 |
| ← ottoshmidt left | 10:08 |
| → ottoshmidt joined | 10:09 |
| → wagle joined | 10:09 |
| → Fullmoon joined | 10:10 |
| ← Fullmoon left | 10:10 |
| → Sander^home joined | 10:11 |
| → subhojit777 joined | 10:11 |
| → subhojit_ joined | 10:11 |
| ← bosspetta left | 10:13 |
| → bosspetta joined | 10:14 |
| ← ottoshmidt left | 10:15 |
| ← subhojit_ left | 10:16 |
| ← subhojit777 left | 10:16 |
| → CaptainQuirk joined | 10:17 |
|
CaptainQuirk
| Hi ! | 10:17 |
|
gitinfo
| CaptainQuirk: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 10:17 |
| ← ph^ left | 10:17 |
|
CaptainQuirk
| I have a problem of synchronization between two git repos | 10:18 |
|
shruggar
| if you describe the problem, maybe someone will help you | 10:18 |
|
CaptainQuirk
| I had to revert from point B to point A on the local repo with reset --hard | 10:19 |
| → thm joined | 10:19 |
|
CaptainQuirk
| I then did git push -f origin master to synchronize both | 10:20 |
| → dsirijus joined | 10:20 |
|
thm
| how can I 'squash' multiple commits into one while cherry-picking? being on A, doing something like git cherry-pick B..C ? | 10:20 |
| ← bosspetta left | 10:21 |
|
CaptainQuirk
| but git log doesn't show what I would like it show | 10:21 |
|
| which is, that the HEAD has been reset to the same commit as the local one | 10:21 |
|
| git status on remote shows that I'm ahead with 9 commits | 10:22 |
|
shruggar
| sounds like !nonbare | 10:22 |
|
| !bare ? | 10:22 |
|
gitinfo
| 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/ | 10:22 |
| → bosspetta joined | 10:22 |
|
CaptainQuirk
| more precisely that branch master is ahead of branch origin/master | 10:22 |
|
shruggar
| pushing to non-bare repositories does nothing to the work-tree and usually does nothing to the checked-out branch (Unless you have specifically overridden warnings and defaults or are using an ancient version of git) | 10:23 |
|
| if you don't understand the implications, pushing to non-bare repositories is highly discouraged | 10:24 |
| → cissu joined | 10:24 |
|
shruggar
| how can I teach gitinfo about !nonbare ? | 10:24 |
| ← Schwern left | 10:25 |
| → ottoshmidt joined | 10:26 |
| ← jdav_gone left | 10:27 |
|
_ikke_
| shruggar: .trigger_edit | 10:27 |
|
| shruggar: !non-bare | 10:27 |
| ← bartman left | 10:28 |
|
CaptainQuirk
| shruggar, I don't fathom the whole implications. I know there's a hook on the remote server | 10:28 |
|
gitinfo
| shruggar: [!bare] 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/ | 10:28 |
|
CaptainQuirk
| but i don't know about its bare/non-bare property | 10:28 |
| → bartman joined | 10:28 |
|
_ikke_
| CaptainQuirk: Basically, you should not push to non-bare repositories | 10:29 |
| ← cissu left | 10:29 |
|
CaptainQuirk
| _ikke_, well, there's a hook that worked just fine until now | 10:30 |
| ← rtuin left | 10:30 |
| → dfr|mac joined | 10:31 |
| dfr|mac → dfr|moscow | 10:31 |
| → jdav_gone joined | 10:32 |
| → marhaban joined | 10:35 |
| → plazia joined | 10:36 |
|
plazia
| if a friend of mine (who is definitely not me) foolishly deleted a source file say "main.py" from his working folder ... by doing an "rm main.py" accidentally. could he use some sort of git command to restore that file? | 10:37 |
|
cmn
| plazia: ask status | 10:37 |
| ← alexukf left | 10:37 |
|
plazia
| cmn, you've lost me there matey | 10:37 |
| ← cthuluh left | 10:38 |
| → harish joined | 10:39 |
| ← berserkr left | 10:39 |
|
_ikke_
| plazia: type in: git status | 10:39 |
|
plazia
| _ikke_, have done that | 10:39 |
| ← fireh left | 10:39 |
|
plazia
| i mean my friend has | 10:39 |
|
lb
| ^^ | 10:39 |
|
plazia
| and it says main.py deleted | 10:39 |
| adhawkins → adhawkins-away | 10:40 |
|
lb
| ? "git checkout -- main.py " | 10:40 |
|
_ikke_
| plazia: read the rest | 10:40 |
| → stkrzysiak joined | 10:40 |
|
plazia
| ah | 10:40 |
|
cmn
| plazia: read what it says you should do to get it back | 10:40 |
|
plazia
| lb, that worked thanks... or at least that's what my friend says. :) | 10:40 |
|
| cmn, _ikke_, my friend also thanks you for your help too | 10:40 |
|
lb
| plazia, not very convincing, your friend ;) | 10:40 |
|
plazia
| haha | 10:41 |
| → federic joined | 10:42 |
| ← irqq left | 10:42 |
| ← jhllnd left | 10:42 |
| ← chowmain left | 10:44 |
| → chowmain joined | 10:45 |
| ← Maccer left | 10:46 |
| → cthuluh joined | 10:46 |
| ← sweet_kid left | 10:46 |
| → rtuin joined | 10:46 |
| → changedNicks joined | 10:47 |
| → babilen joined | 10:47 |
| → camdenx joined | 10:47 |
| changedNicks → sweet|kid | 10:49 |
| ← harish left | 10:49 |
| → alexukf joined | 10:50 |
| ← dhruvasagar left | 10:50 |
| → albel727 joined | 10:51 |
| → Nirvanko joined | 10:51 |
| ← camdenx left | 10:51 |
|
Nirvanko
| I've occasionally deleted a file now I have to restore it from Git repository. How to do it? | 10:52 |
| ← cilly left | 10:52 |
|
FauxFaux
| git checkout -- path/to/file | 10:52 |
| ← chowmain left | 10:52 |
|
Nirvanko
| error: pathspec 'app/config/parameters.ini' did not match any file(s) known to git. | 10:52 |
| ← dsirijus left | 10:52 |
|
canton7
| how long ago did you delete it? | 10:52 |
|
lb
| Nirvanko, then your file was not tracked by git | 10:53 |
|
Nirvanko
| Not a long time ago | 10:53 |
|
lb
| what does git status tel you? | 10:53 |
|
canton7
| as in, since the last commit? | 10:53 |
|
lb
| tell* | 10:53 |
|
Nirvanko
| This file is in .gitignore | 10:53 |
|
lb
| so it's not tracked | 10:53 |
|
| so it's not part of your repo | 10:53 |
|
| so you can't restore it from there | 10:53 |
| ← alexukf left | 10:54 |
|
Nirvanko
| But despite of that it was showed by Git as a file to be commited. | 10:54 |
| → alexukf joined | 10:54 |
|
canton7
| Did you delete it before the last commit, or after it? | 10:54 |
| → beautifulmind joined | 10:55 |
|
lb
| did you added the file by typing "git add /path/to/file" ? | 10:55 |
|
cmn
| lb: just because it's in the ignore list, it doesn't mean it's not tracked | 10:55 |
| ← ottoshmidt left | 10:56 |
| → ottoshmidt joined | 10:56 |
|
cmn
| Nirvanko: you can use git log --diff-filter=D -- path/to/file to see what commit you deleted it in, and use commit^ in the checkout line | 10:56 |
|
lb
| cmn, "not tracked" is maybe unspecific. | 10:56 |
| ← OOPMan left | 10:56 |
|
cmn
| lb: was never tracked, then | 10:57 |
|
lb
| ;) | 10:57 |
|
| cmn, i was just typing a long explanation ;) | 10:57 |
|
| cmn, but of course you're right | 10:58 |
| → Pupeno_W_ joined | 11:01 |
| ← polymar left | 11:02 |
| sweet|kid → sweet_kid | 11:02 |
| ← Pupeno_W left | 11:04 |
| Pupeno_W_ → Pupeno_W | 11:04 |
| → nghbfgfgffggsdf joined | 11:05 |
| ← nghbfgfgffggsdf left | 11:06 |
| → drizzd joined | 11:07 |
| → cn28h joined | 11:09 |
|
fluxdude
| what is the equiv of svn up /path/to/dir_or_file when you only want to update to the latest revision of a part of your tree? | 11:09 |
| → Maccer joined | 11:09 |
|
fluxdude
| git fetch; git merge does everything I think | 11:09 |
| ← danielpunt left | 11:10 |
| → arietis joined | 11:10 |
|
fluxdude
| and I can't see from git merge --help if it's possible to only merge a subtree of the working copy | 11:10 |
| ← Textmode left | 11:11 |
| → himanshu_m786 joined | 11:11 |
| ← himanshu_m786 left | 11:12 |
| → dhruvasagar joined | 11:12 |
|
lb
| fluxdude, maybe git checkout SHA path/to/file ? | 11:12 |
|
| (after git fetch of course) | 11:13 |
|
fluxdude
| lb: problem is I won't know what the SHA is without digging around and automating that is awkward | 11:13 |
| ← dfr|moscow left | 11:13 |
| ← ehsan left | 11:13 |
|
cmn
| merges work on whole trees | 11:13 |
| → landypro joined | 11:13 |
| ← zamba left | 11:13 |
|
cmn
| if you often need to grab some tree out of another commit, tagging it or pointing a branch to it can save you looking for it repeatedly | 11:14 |
| ← alexukf left | 11:15 |
| ← landypro left | 11:16 |
| ← wagle left | 11:16 |
| → landypro joined | 11:16 |
| → theCole joined | 11:16 |
| → angelsl joined | 11:17 |
| ← nyuszika7h left | 11:17 |
| → Stalafin joined | 11:17 |
| ← blacktulip left | 11:18 |
| → cissu joined | 11:18 |
| ← jjang left | 11:18 |
| → tgummerer joined | 11:19 |
|
jnewt
| cmn: that sounds like a good idea, but how would you point a branch to a portion of a tree at a specific commit? | 11:20 |
| → alberto56 joined | 11:20 |
| → jhoepken joined | 11:21 |
|
fluxdude
| '18 | 11:21 |
|
| opps wrong window | 11:21 |
|
shruggar
| well.. you could tag the subtree ;) | 11:21 |
| → dfr|moscow joined | 11:23 |
| ← bullicon left | 11:25 |
| ← ottoshmidt left | 11:26 |
| → the_cybersphinx joined | 11:26 |
| → ottoshmidt joined | 11:27 |
| ← cybersphinx left | 11:28 |
| → TomyLobo joined | 11:29 |
| ← Speed left | 11:30 |
| ← frogonwheels left | 11:30 |
| ← landypro left | 11:30 |
| → frogonwheels joined | 11:31 |
| → zackiv31 joined | 11:31 |
| ← arti_t left | 11:31 |
| → Seo9 joined | 11:32 |
| ← jhoepken left | 11:33 |
| ← zdk left | 11:33 |
| → TheJH joined | 11:34 |
|
cmn
| jnewt: you don't, you can tag a tree or make a branch to a commit | 11:35 |
| → tukja joined | 11:35 |
|
jnewt
| right, so the subtree approach he's talking about is impossible with git | 11:36 |
| → landypro joined | 11:37 |
| ← dfr|moscow left | 11:38 |
| → kleist joined | 11:39 |
| ← cooloney left | 11:40 |
| ← fsvend left | 11:41 |
| → roychri joined | 11:41 |
| ← tango_ left | 11:43 |
| → dfr|moscow joined | 11:43 |
| → aviraldg joined | 11:43 |
| ← dfr|moscow left | 11:44 |
|
roychri
| I am new to git (I used RCS (very long time ago), CVS (long time ago), SVN (until recently)). I created a topic branch (local) from my master (local) and I wonder if I can safely merge from origin in my topic branch, merge from origin in my master branch and then later merge my topic in my master safely? | 11:44 |
|
| Or should I merge origin in my master first, then merge master in my topic so I can safely merge my topic branch in my master later? | 11:44 |
|
| do I make any sense? :) | 11:44 |
|
canton7
| what do you mean by 'origin'? A remote consists of a collection of branches, not a single branch | 11:45 |
|
selckin
| depending on your definition of safely, you can merge anything you want safely | 11:45 |
| ← Twey left | 11:45 |
|
roychri
| origin/master | 11:45 |
| ← dhruvasagar left | 11:46 |
|
roychri
| selckin: safely as in: nothing breaks like in SVN. | 11:46 |
|
canton7
| both are fine. in the end, there's no real difference | 11:46 |
|
| well, depends whether master has local changes | 11:46 |
| → dhruvasagar joined | 11:47 |
|
roychri
| canton7: logically, that is what I thought too. SVN 1.4 disagress :) | 11:47 |
|
| disagrees | 11:47 |
|
selckin
| depending on your definition of breaks, you can merge anything you want | 11:47 |
|
| roychri is glad git thinks more logically | 11:47 |
|
canton7
| roychri, git won't disagree. if origin/master is at some commit, you can either merge that in, or update your local master to that commit and merge in the local master. git sees no difference | 11:47 |
|
| well, the default commit message for the merge will differ, but that's ti | 11:48 |
|
selckin
| there are however strategies that will result in less conflicts or more logical history | 11:48 |
|
roychri
| selckin: oh? Such as? | 11:48 |
|
selckin
| but it should never "break" | 11:48 |
|
canton7
| obviously, if master has local changes, then merging from origin/master will merge in different stuff than merging in the local master | 11:48 |
| → tango_ joined | 11:49 |
|
roychri
| canton7: I only merge with clean copies (no uncommitted changes) | 11:49 |
| → Twey joined | 11:49 |
|
canton7
| roychri, sorry, I wasn't talking about uncommitted stuff. iirc git doesn't let you merge at all with uncommitted changes present | 11:49 |
|
roychri
| canton7: Oh, of course :) But I can always merge from my local/master as well then, right? | 11:49 |
| ← tukja left | 11:50 |
| ← rtuin left | 11:50 |
| → nyuszika7h joined | 11:50 |
|
canton7
| roychri, sure, you can merge from either | 11:50 |
| ← Lord_DeathMatch left | 11:51 |
| → Lord_DeathMatch joined | 11:51 |
|
roychri
| canton7: at the same time I mean. Well, one after the other of course, but I mean, I don't have to choice one and stick with it. I can bring changes from both? | 11:51 |
| ← Milossh left | 11:53 |
| ← Davey left | 11:53 |
| → rtuin joined | 11:53 |
| → wagle joined | 11:54 |
| → Davey joined | 11:54 |
| ← cissu left | 11:55 |
| ← ottoshmidt left | 11:57 |
| → ottoshmidt joined | 11:57 |
| → neurodrone joined | 11:57 |
| ← quazimodo left | 12:00 |
| → iamjarvo joined | 12:01 |
| → matthiaskrgr joined | 12:02 |
| → tinti joined | 12:03 |
|
iamjarvo
| frogonwheels still around? | 12:04 |
| → ignas joined | 12:04 |
| → NimeshNeema joined | 12:05 |
|
lb
| roychri, maybe you should start using local feature / dev branches | 12:05 |
|
roychri
| lb: isn't it what my topic branch is? | 12:05 |
|
lb
| roychri, this way, you can always keep your local master up-to-date with origin/master | 12:05 |
|
| meaning you can fastforward | 12:06 |
| ← kcj left | 12:06 |
|
lb
| and afterwards merge in your changes and push back to origin | 12:06 |
| → cannonball joined | 12:06 |
|
lb
| roychri, oh, i didn't see that | 12:06 |
| ← landypro left | 12:07 |
|
roychri
| lb: no problem :) Thanks for helping me understand :) | 12:07 |
| SeoZ → SeoZ-work[AWAY] | 12:07 |
|
lb
| otherwise you can always work on feature X, keep master in sync with origin/master and merge in master from time to time (daily) in you feature branch | 12:07 |
|
| there are some nice talks from schacon available on youtube | 12:08 |
|
| should i give you the links? | 12:08 |
|
roychri
| lb: Right. I was just wondering if I can merge origin/master and local/master in my feature branch while merging origin/master into local/master anyway from time to time too. | 12:09 |
|
| lb: oh yes, please :) | 12:09 |
| → cissu_ joined | 12:09 |
| ← samuel left | 12:10 |
| ← plazia left | 12:10 |
| → achadwick joined | 12:11 |
| ← Seo9 left | 12:11 |
| → doorp joined | 12:12 |
| ← juvenal left | 12:13 |
| gitinfo set mode: +v | 12:14 |
|
doorp
| Hey, I'm trying to learn the very basics. I would like to setup GIT for a few users- is there a common approach for doing that while chrooting the users? (I tried to google, got lost very quickly) | 12:14 |
|
FauxFaux
| doorp: !gitolite | 12:14 |
|
gitinfo
| doorp: 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 | 12:14 |
|
FauxFaux
| Unless you have some requirement for the chroot beyond mandatory access control. | 12:15 |
|
lb
| doorp, gitolite is the way to go | 12:15 |
| → blacktulip joined | 12:16 |
| → intransit joined | 12:17 |
| ← roychri left | 12:19 |
| ← simesy_work left | 12:19 |
| → alexukf joined | 12:21 |
| → Ryback_ joined | 12:22 |
| ← tqmz left | 12:23 |
| → cilly joined | 12:23 |
| → Zenmaker_ joined | 12:23 |
| → Milossh joined | 12:27 |
|
doorp
| FauxFaux: Thanks- it will take me a little time to grasp it, bbs :) | 12:27 |
| ← ottoshmidt left | 12:27 |
| → ottoshmidt joined | 12:28 |
| ← Zenmaker__ left | 12:28 |
| → bullicon joined | 12:28 |
| → skyf joined | 12:28 |
| → jsoa joined | 12:29 |
| → Athlon^ joined | 12:31 |
| ← sangi left | 12:32 |
| ← Lord_DeathMatch left | 12:32 |
| → arkiver joined | 12:32 |
| → Lord_DeathMatch joined | 12:33 |
| → Kredo joined | 12:35 |
| adhawkins-away → adhawkins | 12:36 |
| ← etcetera left | 12:36 |
| ← bigkm left | 12:38 |
| → nickpresta joined | 12:38 |
| → etcetera joined | 12:38 |
| → Bass10 joined | 12:38 |
| → bigkm joined | 12:39 |
| → cakehero joined | 12:39 |
| → tommyvyo joined | 12:42 |
| ← Poapfel left | 12:42 |
| → Jay_Levitt joined | 12:43 |
| ← nielsbusch left | 12:45 |
| ← cakehero left | 12:45 |
| → plazia joined | 12:47 |
| ← unreal left | 12:47 |
| → camdenx joined | 12:48 |
| → unreal joined | 12:50 |
| → zamba joined | 12:51 |
| ← camdenx left | 12:51 |
| → adityamenon joined | 12:52 |
| → freeed joined | 12:54 |
| → chuckharmston joined | 12:56 |
| ← Chib left | 12:56 |
| ← fornext left | 12:57 |
| ← ottoshmidt left | 12:58 |
| → ottoshmidt joined | 12:58 |
| ← mshroyer left | 12:58 |
| ← etcetera left | 12:59 |
| → jkremser joined | 12:59 |
| ← Athlon^ left | 13:01 |
| → etcetera joined | 13:01 |
| ← skyf left | 13:02 |
| → macabre joined | 13:04 |
| ← Lord_DeathMatch left | 13:05 |
| → Lord_DeathMatch joined | 13:05 |
| → aib joined | 13:06 |
| → enmand joined | 13:06 |
| → AaronMT joined | 13:06 |
| ← aib left | 13:06 |
| → aib joined | 13:06 |
|
aib
| how do I remove all SVN information (created by init and fetch) so I can retry everything from scratch? | 13:06 |
|
| I also ran svn init -s inside .git by mistake once :/ anything to delete other than .git/.git ? | 13:07 |
|
jnewt
| i'm trying to figure out how to do something as a test case, and what i did was added a file.c, file_fixed.c, and a few others, then committed, and then made some changes to them and committed a few times. now i want to go back and make file_fixed.c into file.c in a commit and remove file_fixed from history. | 13:07 |
| → hyperair joined | 13:07 |
| → t0nic joined | 13:08 |
|
lb
| aib, all git information is inside the .git dir | 13:08 |
|
| so deleting it, will delete your repo | 13:08 |
|
| jnewt, if you didn't pushed your changes somewhere you can just git reset --soft STATEBEFORE, and commit your final state and your fine | 13:09 |
|
aib
| yeah. I created a git repo inside that, so I deleted it. | 13:09 |
|
| anyway, I've lost my svn refs and svn fetch still thinks everything is up to date | 13:10 |
| ← diamonds left | 13:11 |
|
jnewt
| here's my plan. git reset --hard <SHA of initial commit> git -branch fix , make changes in working tree (rename file_fixed.c), then rebase the first commit of the "changes" onto that branch, rename the branch default. sound about right? | 13:11 |
|
aib
| ah, deleting .git/svn worked | 13:11 |
| → SkAzZ joined | 13:11 |
| → und3f joined | 13:11 |
| ← ianmcorvidae left | 13:12 |
|
jnewt
| lb: it has been pushed, i cloned it this way, and want to make the changes and push it back to the origin repo | 13:12 |
| → ianmcorvidae joined | 13:12 |
| → nielsbusch joined | 13:12 |
|
jnewt
| it's gonna take me forever to look up and decide on the proper commands and switches to do this though :) | 13:13 |
| → nwest joined | 13:13 |
|
lb
| jnewt, git reset hard on pushed history and republish is always a bad idea | 13:14 |
|
| !rewriting | 13:14 |
|
gitinfo
| [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 13:14 |
|
jnewt
| lb: my pushed history is not public, it's just backup / shared source for me only so i can use from multiple locations. | 13:15 |
| → erichynds joined | 13:15 |
| → SirCmpwn_ joined | 13:15 |
|
canton7
| the same issues can occur though -- be careful | 13:15 |
| → allquixotic_ joined | 13:15 |
| → Berglund joined | 13:15 |
|
jnewt
| canton7: if i destroy it, so be it, i'll try and learn from my mistake. | 13:16 |
| → jperry2_ joined | 13:16 |
|
jnewt
| i have backups | 13:16 |
| → tchan1 joined | 13:16 |
|
lb
| jnewt, still you could use git reset SHA1fromstart ( not --hard ) and rebuild your history | 13:16 |
| → aib|2 joined | 13:16 |
| → Adys_ joined | 13:16 |
|
canton7
| jnewt, it's not destroying that's the issue, it's accidentally merging together two versions of history | 13:16 |
| → quazimodo joined | 13:17 |
| ← Berglund left | 13:17 |
|
selckin
| jnewt: google interactive rebase | 13:17 |
| ← jperry2 left | 13:18 |
| ← eightyeight left | 13:18 |
| ← chayin left | 13:18 |
| → martialcoder joined | 13:18 |
| → chayin joined | 13:18 |
| ← tchan left | 13:18 |
| ← blast_hardcheese left | 13:18 |
|
jnewt
| let me se if i can reset first, | 13:19 |
| ← SirCmpwn left | 13:19 |
| ← aib left | 13:19 |
| ← LmAt left | 13:19 |
| ← allquixotic left | 13:19 |
| ← Internet13 left | 13:19 |
| ← Adys left | 13:19 |
| ← kevlarman left | 13:19 |
| ← palm_vue left | 13:20 |
| ← bizhanMona left | 13:20 |
| → LmAt joined | 13:20 |
| → bizhanMona joined | 13:21 |
| → palm_vue joined | 13:21 |
| → dv310p3r joined | 13:21 |
| ← federic left | 13:21 |
| → bleen1 joined | 13:22 |
| → Internet13 joined | 13:22 |
| → eightyeight joined | 13:22 |
| → blast_hardcheese joined | 13:23 |
| t0nic → diamonds | 13:24 |
| → jhoepken joined | 13:26 |
| → manolo joined | 13:27 |
|
jnewt
| how much of the SHA do i need for a reset. i put the first 9 but it gives me a failed to resolve | 13:27 |
|
CareBear\
| jnewt : enough to be unique | 13:28 |
|
| jnewt : put the command you ran into a pastebin please | 13:28 |
|
| jnewt : along with the output you got | 13:28 |
| ← plazia left | 13:28 |
|
jnewt
| http://pastebin.com/de0cPM3j | 13:29 |
| → skyf joined | 13:29 |
| ← ottoshmidt left | 13:29 |
| → ottoshmidt joined | 13:29 |
| → kurrataW joined | 13:31 |
|
CareBear\
| jnewt : why -- master on the end? | 13:31 |
| → glennpratt joined | 13:31 |
| ← patrick85 left | 13:31 |
| → hseg joined | 13:32 |
|
jnewt
| CareBear\, because i read somewhere that was how it was done. | 13:32 |
| ← kermit left | 13:32 |
|
canton7
| !blog | 13:33 |
|
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. | 13:33 |
| ← LekeFly left | 13:33 |
|
CareBear\
| jnewt : strongly suggest read man git reset instead to learn how the command actually works | 13:33 |
|
gitinfo
| the git-reset manpage is available at http://git-scm.com/docs/git-reset.html | 13:33 |
| ← jhoepken left | 13:33 |
|
jnewt
| they have that -- path there too | 13:34 |
| → neurodamage joined | 13:34 |
| ← aib|2 left | 13:34 |
| → aib joined | 13:34 |
|
canton7
| that's a path to a file, not a branch | 13:35 |
| ← alexukf left | 13:35 |
|
canton7
| and not in combination with --hard | 13:35 |
| → john2496 joined | 13:35 |
|
aib
| I'm trying to base master onto an empty branch (svn trunk with a single commit) but I'm getting merge conflicts where master has branched and then merged. what can I do? | 13:35 |
|
canton7
| so you can say e.g. 'git resset HEAD [--] path/fo/file' | 13:35 |
|
aib
| rebase* | 13:36 |
| → cjdavies joined | 13:36 |
| ← tmz left | 13:36 |
| → axl_ joined | 13:36 |
| ← d0k left | 13:37 |
|
cjdavies
| I have a directory that I want to be under git version control, which contains a variety of different things (some code projects, some essays/papers, etc.) but I want the individual code projects within this repo to also be under their own individual git control | 13:37 |
|
| is this where submodules come in? | 13:37 |
|
hseg
| Hey guys. I'm getting weird behavior from git-rebase: https://gist.github.com/3176228 | 13:38 |
|
_ikke_
| cjdavies: !subprojects | 13:38 |
|
canton7
| !subrepos | 13:38 |
|
_ikke_
| gitinfo is slow | 13:38 |
|
gitinfo
| cjdavies: 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. | 13:38 |
|
| [!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. | 13:38 |
|
canton7
| yeah | 13:38 |
|
hseg
| For example, git-commit gives me # new file: FMS_5772/MainForm.h while git-status doesn't say a thing about the file. (It does exist after git-reset, so probably git-status believes it comes from a previous commit | 13:39 |
| ← vlrk left | 13:39 |
| → alexukf joined | 13:40 |
| → billy_ran_away joined | 13:40 |
|
cjdavies
| thanks guys, will read up on which is best for me | 13:40 |
|
billy_ran_away
| If I add a collaborator to my repo should they be able to push to my repo with their own ssh key? | 13:40 |
|
| On github that is... | 13:41 |
|
canton7
| billy_ran_away, yes | 13:41 |
|
billy_ran_away
| canton7: Hmm… got a friend that can't seem to push with his key even though I added him as a collaborator... | 13:42 |
|
cjdavies
| !submodule | 13:42 |
|
gitinfo
| git-submodule is ideal to add subsidiary git repositories to a git superproject when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes upstream. See http://book.git-scm.com/5_submodules.html | 13:42 |
|
canton7
| billy_ran_away, can he push to his own repos? | 13:43 |
|
cjdavies
| !gitslave | 13:43 |
|
gitinfo
| gitslave (http://gitslave.sf.net) is useful to add subsidiary git repositories to a git superproject when you control and develop on the subprojects at more or less the same time as the superproject, and furthermore when you typically want to tag, branch, push, pull, etc. all repositories at the same time. | 13:43 |
|
billy_ran_away
| canton7: Yes, here's the error he's getting. | 13:43 |
|
cjdavies
| !subtree | 13:43 |
|
gitinfo
| The git subtree merge method is ideal to incorporate a subsidiary git repositories directly in to single git repository with "unified" git history, where you only need to pull changes in from external sources not contribute your own changes back (which if technically possible is at least difficult). See http://progit.org/book/ch6-7.html Type "!subtree_alt" for more options | 13:43 |
|
canton7
| cjdavies, !msg | 13:43 |
|
gitinfo
| cjdavies: [!privmsg] You can get gitinfo keyword expansion (e.g. !doc or this one) sent directly to you by sending a private message to me: /msg gitinfo !doc. This avoids spamming the channel. Also see See http://jk.gs/git/bot/trigger.php | 13:43 |
|
billy_ran_away
| http://cl.ly/IK1U | 13:43 |
|
| It seems like it's associating his key with one of his specific repos... | 13:43 |
|
canton7
| "denied to jekhokie/test-unit-completion". what's his git remote -v output? | 13:44 |
|
jnewt
| ok, i'm reset | 13:44 |
| → reuf joined | 13:44 |
| ← alexukf left | 13:44 |
| → alexukf joined | 13:45 |
| ← Vooloo left | 13:45 |
| → smw joined | 13:45 |
|
jnewt
| now i added a file to the working directory, and ran git reset HEAD <file to remove> then git add <new file> | 13:45 |
| → juvenal joined | 13:45 |
| → Vooloo joined | 13:45 |
| ← Vooloo left | 13:45 |
| → Vooloo joined | 13:45 |
| ← Err404NotFound left | 13:46 |
|
jnewt
| i think i'm ready to commit, is there anything else i need to do first? | 13:46 |
|
FauxFaux
| jnewt: Run "git commit" with no aruments and it'll help you. | 13:46 |
|
jnewt
| it doesn't show those files as removed, but shows the new file | 13:47 |
|
| i did a reset on them | 13:47 |
| ← cjdavies left | 13:47 |
| ← reuf left | 13:48 |
|
billy_ran_away
| canton7: Sorry missed your reply, it's the ssh one, same as mine, that is [email@hidden.address] | 13:49 |
| → pandeiro_ joined | 13:50 |
| ← enmand left | 13:50 |
| ← mankoff left | 13:50 |
|
canton7
| billy_ran_away, does the string "jekhokie/test-unit-completion." appear anywhere in his .git/config ? Anything on ssh_config ? | 13:50 |
|
| s/on/in | 13:50 |
|
| anyways, I had to head I'm afraid. Good luck! | 13:50 |
| ← canton7 left | 13:50 |
|
billy_ran_away
| canton7: Figured it out after screen sharing with him, he had the ssh key associated with the specific repo and not his account. | 13:51 |
| ← alexukf left | 13:51 |
| → hellopat joined | 13:51 |
|
lb
| jnewt, git reset doesnt deetes files | 13:52 |
| → hellopat_ joined | 13:52 |
|
lb
| jnewt, and it doesn't affect your working dir as long as you dont specify --hard | 13:52 |
|
jnewt
| right, and i've reset to the sha of the very first commit, so they just won't be committed right? | 13:53 |
|
| with --hard | 13:53 |
|
lb
| jnewt, if you want to delete a file from the git repo ( in the next commit) you'll use git rm FILE | 13:53 |
| ← RichardBronosky left | 13:53 |
| ← hellopat left | 13:53 |
|
jnewt
| no, i just want the commits of those files split up | 13:53 |
| → mermeladas joined | 13:54 |
|
jnewt
| it's like i need to reset --hard to before the first commit, or do what i'm doing, on a different branch and then rebase that initial commit on top of this one | 13:54 |
| → andrewhl joined | 13:54 |
| → vlrk joined | 13:55 |
|
jnewt
| because if i reset to the initial, i'm actually working on the "next" | 13:55 |
| → alexukf joined | 13:56 |
|
lb
| jnewt, i'm not really sure about what your doing ;) i would prefer a git reset --mixed and then commiting the right things (which will create a new path in the history) | 13:56 |
|
| but it sounds a little bit logical ^^ | 13:56 |
| → RichardBronosky joined | 13:57 |
|
lb
| jnewt, git reset --hard INITIAL and then merge the commits you want to have is also possible. | 13:58 |
|
| you dont need to rebase | 13:58 |
| ← und3f left | 13:59 |
| → Err404NotFound joined | 13:59 |
|
jnewt
| crap, it went after the first commit as a new one | 14:00 |
| → cjdavies joined | 14:00 |
| → LekeFly joined | 14:00 |
| ← martialcoder left | 14:00 |
| ← iamjarvo left | 14:00 |
|
cjdavies
| basic question - if I have a git repo & I copy another git repo into the first git repo, then do git add ./git commit on the first repo, does it automatically ignore the second? | 14:01 |
|
| this is what seems to be happenning by my experiments at least | 14:01 |
| → marhaban1 joined | 14:01 |
| ← marhaban1 left | 14:01 |
| → Superlokkus joined | 14:01 |
|
fluxdude
| is it possible to have 2 checkouts from single clone repo at the same time? | 14:02 |
| → cakehero joined | 14:02 |
|
fluxdude
| I have 2 branches, 1 prod and 1 staging | 14:02 |
|
| and I want both of them accessible on the file system at the same time from the same git clone | 14:02 |
| ← EvanDotPro left | 14:02 |
|
fluxdude
| I could have 2 separate clones and then git checkout staging on the second one but it seems like a waste to have to clone the whole repo twice | 14:02 |
| ← dhruvasagar left | 14:03 |
| ← hseg left | 14:03 |
| ← soee left | 14:03 |
| → zenchaos joined | 14:04 |
| → chrisgeorge joined | 14:04 |
| → cccaldas joined | 14:07 |
|
jnewt
| i need to see the results of what i've done, i reset to the initial sha, added a file, committed, and now i only have 2 log messages, whereas i had 5-6 before. i need to see at least one more to verify the results of what i've done. how do i see those other commits so i can get a SHA to switch to? | 14:07 |
| → EvanDotPro joined | 14:09 |
| ← alexukf left | 14:09 |
| → alexukf joined | 14:09 |
|
joshc
| jnewt: you're question is a bit confusing. what do you mean by `see the results of what i've done', `initial commit' (the root commit? some commit your branch used to point to?), and `verify the results' | 14:10 |
| ← rbarraud left | 14:10 |
| ← pandeiro_ left | 14:11 |
| ← beautifulmind left | 14:11 |
|
joshc
| if I squint my eyes a bit, it sounds like what your looking for is the git-reflog, but that makes a few specific assumptions about what you're really asking :) | 14:11 |
| → kermit joined | 14:11 |
|
lb
| fluxdude, you cant | 14:11 |
|
FauxFaux
| !gka | 14:11 |
|
gitinfo
| For a better way to view the reflog, try: gka() { gitk --all $(git log -g --format="%h" -50) "$@"; }; gka | 14:11 |
| ← Davey left | 14:12 |
| → tmz joined | 14:12 |
|
fluxdude
| lb: shame | 14:13 |
| ← chrisgeorge left | 14:13 |
|
joshc
| AFAIK, git makes allows (or makes by default?) some optimizations for clones that exist on the same filesystem | 14:13 |
|
jnewt
| joshc: well, i had 4-5 commits, then i reset to the initial / root / first one ever commit, added a file, and committed. then i typed git log and i now only show 2 commits, where as i have actually made 5-6, but it seems they've disappeared. maybe the reflog is what i need, i remember reading about it, i'll take a look | 14:14 |
|
lb
| joshc, fluxdude AFAIK git clone on the local fs use hardlinks | 14:14 |
|
| so fluxdude clone the repo already existing in your fs should not waste too much space | 14:15 |
| → d0k joined | 14:15 |
| ← tango_ left | 14:16 |
| → giallu joined | 14:17 |
|
jnewt
| i expected to see an unnamed branch or something i guess | 14:17 |
| ← adityamenon left | 14:18 |
| → adityamenon joined | 14:19 |
|
fluxdude
| lb: good thinking | 14:19 |
|
jnewt
| i only have 3 things in my reflog, a clone, reset and my commit | 14:19 |
| → chrisgeorge joined | 14:20 |
| → nowhere_man joined | 14:21 |
| → KYle111111111111 joined | 14:21 |
| ← KYle111111111111 left | 14:21 |
| ← cissu_ left | 14:22 |
|
Nirvanko
| How that's possible http://pastebin.ca/2174594 | 14:23 |
| ← jn_ left | 14:23 |
| → jjbohn joined | 14:23 |
|
Nirvanko
| A file that marked as to be commited and changed but not updated. | 14:24 |
|
jnewt
| well, they're still there in smartgit, so they still live on. i think i do need a rebase here | 14:24 |
| ← axl_ left | 14:25 |
|
haarg
| Nirvanko: when you use git add, it stages the current file contents to be committed. further edits to the file aren't included in that automatically. | 14:26 |
| → axl_ joined | 14:26 |
| ← theCole left | 14:28 |
| → tango_ joined | 14:28 |
| ← stkrzysiak left | 14:29 |
|
joshc
| jnewt: could you elaborate a bit on what you are actually trying to do? its not common to reset to the root commit (essentially abandoning your 5-6 commits worth of history) and to start over. | 14:30 |
| ← jsoa left | 14:30 |
| ← alberto56 left | 14:30 |
| ← cccaldas left | 14:31 |
|
jnewt
| i was trying to split the root commit into two commits, from adding two files to adding 1 file and modifying that file | 14:31 |
| → tplaner_ joined | 14:31 |
| ← alexukf left | 14:32 |
| → alexukf joined | 14:32 |
| → jsoa joined | 14:33 |
|
cjdavies
| I've read up a bit on submodules/slave/etc. & can't quite work out which (if any) matches what I want to do, though I may be overcomplicating the situation | 14:33 |
|
| I want something a bit like this http://paste2.org/p/2082671 | 14:33 |
|
| where when I add/commit global_project it will track changes in all of the subprojects | 14:33 |
| → fly9 joined | 14:33 |
|
cjdavies
| but where I can add/commit/push the individual subprojects | 14:34 |
| Adys_ → Adys | 14:34 |
| ← Lord_DeathMatch left | 14:34 |
| ← tango_ left | 14:34 |
|
jnewt
| joshc: i understand it's not common, but once my testing is done, and i learn how to do some of this stuff (i've just been reading up to this point), i'm going to import an svn repository and attempt to make it's history something logical and not huge. there have been piles of generated files, pdfs and other garbage committed to the svn repo that i'll need to clean up | 14:35 |
|
| and commits that we're way to much at once to even make sense. | 14:36 |
| → tango_ joined | 14:36 |
|
jnewt
| it just so happened i started with a root commit, i didn't realize that would cause an issue | 14:37 |
| ← ottoshmidt left | 14:38 |
| ← ThomasLocke left | 14:38 |
| ← alexukf left | 14:39 |
| → polymar joined | 14:39 |
| → v0n joined | 14:41 |
| → lresende joined | 14:42 |
| → dzonder joined | 14:42 |
|
joshc
| jnewt: you could probably use git commit --amend to do what you are trying to do | 14:42 |
| ← papegaaij left | 14:42 |
| → ku joined | 14:42 |
|
joshc
| use it to amend the root commit | 14:42 |
| → avpx joined | 14:43 |
| Kronuz-away → Kronuz | 14:43 |
| → alberto56 joined | 14:43 |
| ← Err404NotFound left | 14:44 |
| ← etcetera left | 14:45 |
| ← billy_ran_away left | 14:45 |
| → hseg joined | 14:46 |
| → ehsan joined | 14:46 |
| → stkrzysiak joined | 14:46 |
| → t4nkd joined | 14:46 |
|
jnewt
| joshc i think i need to cherry-pick a range of revisions from origin/master and rebase onto my new commit | 14:46 |
|
hseg
| Hey. I'm experiencing weird behavior from git-rebase: https://gist.github.com/3176228 | 14:47 |
|
jnewt
| then prune origin/master | 14:47 |
| ← cagedwisdom left | 14:47 |
|
hseg
| For example, git-commit shows that FMS_5772/MainForm.h was created, but git-status does not | 14:47 |
|
rvsjoen
| anyone aware of any neat tools to generate some stats of a repo ? I tried gitstats but i'm wondering if there are others | 14:48 |
| ← lb left | 14:48 |
| → williamcotton_ joined | 14:48 |
| → camdenx joined | 14:48 |
| → xissburg joined | 14:49 |
|
joshc
| jnewt: yes. 'cherry-picking a range' is also very similar to git-rebase --onto | 14:49 |
|
xissburg
| how to remove a path from .gitignore? I removed it from the .gitignore file but I still cannot add the file that was ignored | 14:50 |
|
axrfnu
| xissburg: prepend the file to be unignored with a ! | 14:50 |
|
xissburg
| o_ O | 14:50 |
|
jnewt
| joshc: that was my first though, i tried to rebase the "old second commit" onto the "new second commit", but it just moved that commit, the rest of origin/master didn't go with it | 14:51 |
|
| s/though/thought | 14:51 |
|
axrfnu
| or remove it from your global gitignore, if it is set there | 14:51 |
|
xissburg
| axrfnu: I added to the local .gitignore | 14:52 |
|
| wait | 14:52 |
| ← psoo left | 14:52 |
|
xissburg
| where is the global gitignore? | 14:52 |
|
axrfnu
| under unix/linux typically in $HOME | 14:52 |
| ← erichynds left | 14:52 |
| ← camdenx left | 14:52 |
| ← Bass10 left | 14:53 |
| → iamjarvo joined | 14:53 |
|
xissburg
| no it's not in the global gitignore | 14:53 |
| ← xiangfu left | 14:53 |
| → urbanmonk joined | 14:53 |
|
xissburg
| What's with the ! ? | 14:53 |
|
jnewt
| ok, the cherry picking range worked, but prune completed successfully, without pruning the branch. used git prune origin/master, no changes | 14:54 |
| ← skyf left | 14:54 |
|
axrfnu
| well, if you have, say, !*.o in your local .gitignore *.o files will be added to a repository, despite they've been ignored in a global ignore file | 14:55 |
|
xissburg
| oh | 14:55 |
|
axrfnu
| xissburg: see man gitinore | 14:55 |
|
| err, man gitignore | 14:55 |
|
gitinfo
| the gitignore manpage is available at http://git-scm.com/docs/gitignore.html | 14:55 |
|
hseg
| Hey. I'm experiencing weird behavior from git-rebase: https://gist.github.com/3176228 | 14:55 |
| → Davey joined | 14:55 |
| ← ipalaus left | 14:56 |
| → SirCmpwn joined | 14:56 |
| → fireh joined | 14:56 |
|
xissburg
| axrfnu: thanks, it works C: | 14:56 |
|
fluxdude
| when cloning a repo it doesn't automatically track all the branches | 14:58 |
|
| I can fix this on my local clone easily | 14:58 |
|
| but when other ppl clone the repo they are also missing the branches | 14:58 |
|
FauxFaux
| fluxdude: They're not missing the branches. They ahve them. Use git branch -avv. | 14:58 |
|
fluxdude
| is there a way I can just get them to auto-track the branches without them having to fiddle their local clones? | 14:58 |
| ← bleen1 left | 14:58 |
|
FauxFaux
| Having all the branches as local branches is a bad thing which has no advantages at all, stop doing it. | 14:59 |
| → neil_ joined | 14:59 |
| → CannedCorn joined | 14:59 |
|
jnewt
| double crap, i tried to delete origin/master, and it did, now i just have headless branch that i can't prune. fsck me | 15:00 |
| ← thm left | 15:00 |
|
FauxFaux
| If you've messed it up, just delete and recreate the remote. It has no useful information in it. | 15:00 |
|
fluxdude
| FauxFaux: ah, I see. It does track the remote branch on first checkout | 15:00 |
|
| when I created that branch I had to go around doing git branch --set-upstream staging origin/staging | 15:01 |
| → EricKamsky joined | 15:01 |
| ← cbreak-work left | 15:01 |
|
fluxdude
| since otherwise git checkout staging was failing | 15:01 |
|
| but I'm not sure why now | 15:01 |
| ← LekeFly left | 15:02 |
| ← polymar left | 15:02 |
| → lekefly_ joined | 15:02 |
| ← EricKamsky_ left | 15:02 |
| ← flijten left | 15:02 |
| → skyf joined | 15:03 |
| → psoo joined | 15:03 |
| → airborn joined | 15:04 |
| → gioele joined | 15:04 |
| → axl__ joined | 15:05 |
|
jnewt
| ok, i managed to delete the origin/master from my local copy, but only the last commit in that branch. now it is not tagged. how can i delete the commits in that lineage? | 15:05 |
|
hseg
| Hey. I'm experiencing weird behavior from git-rebase: https://gist.github.com/3176228 - git-commit is displaying files as changed while git-status does not report them | 15:06 |
|
jnewt
| no, i guess i deleted it from both. i think | 15:06 |
| ← neil_ left | 15:06 |
|
FauxFaux
| jnewt: You are one very confused puppy. | 15:06 |
|
jnewt
| FauxFaux: and the more i read on git-scm, the worse it gets | 15:07 |
|
gioele
| hello, I would like to make the local `master` branch track the branch `extra` on the remote `server`, so I can avoid `git push server master:extra`. | 15:07 |
|
| I tried `git branch --set-upstream master server/extra` but git complains with `error: Not tracking: ambiguous information for ref refs/remotes/server/extra` | 15:07 |
|
FauxFaux
| jnewt: You never, ever want to fiddle with anything named "origin/". If you have a remote based problem, delete all your remotes, re-add them, run git remote update, /then/ see what your problem is. | 15:08 |
| ← fisted left | 15:08 |
| → pandeiro joined | 15:08 |
| → weiguan joined | 15:08 |
|
FauxFaux
| gioele: What does ls -lR .git/refs/remotes # look like? | 15:08 |
|
thiago
| hseg: I don't see what the problem is | 15:09 |
| ← axl_ left | 15:09 |
| axl__ → axl_ | 15:09 |
|
hseg
| For example, git-commit shows that FMS_5772/MainForm.h was created, but git-status does not | 15:09 |
|
gioele
| FauxFaux: .git/refs/remotes/: server/ .git/refs/remotes/server: master extra | 15:09 |
| → chris__ joined | 15:10 |
|
jnewt
| FauxFaux: maybe i should start over | 15:10 |
|
thiago
| hseg: it's there | 15:10 |
|
chris__
| i installed git with the xcode developer tools and can't move the git-credential-osxkeychain to /usr/loca/git/bin because it doesn't exist | 15:10 |
|
thiago
| # Untracked files: | 15:10 |
|
| # FMS_5772/ | 15:10 |
|
chris__
| does anybody know where this folder is when installing git with the developer tools | 15:10 |
| → diegoviola joined | 15:11 |
| → fisted joined | 15:11 |
| ← Tegi_ left | 15:11 |
|
hseg
| So it means it's not tracking the directory and all files in it (yet):? | 15:11 |
| ← tchan1 left | 15:11 |
|
thiago
| chris__: run this: git --exec-path | 15:11 |
| → tchan joined | 15:11 |
|
thiago
| hseg: correct | 15:11 |
|
hseg
| Oh. That makes my job simpler. I was trying to commit all changes to that directory separately | 15:12 |
|
chris__
| thiago thx a lot | 15:12 |
|
hseg
| thx thiago | 15:13 |
| → john_anderson joined | 15:14 |
| → OOPMan joined | 15:14 |
| ← e-ndy left | 15:15 |
| ← andrewhl left | 15:15 |
| → jbohn joined | 15:15 |
| ← Superlokkus left | 15:15 |
| → phishy joined | 15:16 |
|
hseg
| How do I stage a deletion? | 15:18 |
| ← shigekimorimoto left | 15:18 |
| ← QaDeS left | 15:18 |
| → cbreak-work joined | 15:18 |
|
hseg
| https://gist.github.com/3176739 | 15:19 |
| → beneggett joined | 15:19 |
| → Zenmaker__ joined | 15:19 |
| ← jjbohn left | 15:19 |
| ← cbreak-work left | 15:20 |
| → Harley joined | 15:20 |
| ← chris__ left | 15:20 |
| ← defts left | 15:20 |
|
crispus
| git rm <filename> | 15:20 |
| → sanguisdex1 joined | 15:20 |
| → defts joined | 15:20 |
| ← arkiver left | 15:20 |
| ← Harley left | 15:21 |
|
hseg
| thx | 15:21 |
| → ipalaus joined | 15:21 |
| ← Zenmaker_ left | 15:21 |
| ← sanguisdex1 left | 15:22 |
| ← felher left | 15:22 |
| → sanguisdex1 joined | 15:23 |
|
sanguisdex1
| is there a quick way to get around the EOL errors when trying to add files made on nother platform? | 15:24 |
|
FauxFaux
| dos2unix the files. | 15:24 |
|
| Or, if you're referring to some hook you have in place, man git commit --no-verify. | 15:25 |
|
gitinfo
| the git-commit manpage is available at http://git-scm.com/docs/git-commit.html | 15:25 |
| ← bgerber left | 15:26 |
| ← Milossh left | 15:27 |
| ← thiago left | 15:27 |
| ← phishy left | 15:27 |
| → phishy joined | 15:28 |
| ← williamcotton_ left | 15:30 |
| → bgerber joined | 15:30 |
| → felher joined | 15:30 |
|
jnewt
| what happens if you rebase and create a situation where the same named file was created twice? | 15:31 |
| → camdenx joined | 15:31 |
|
joshc
| you'll hit a conflict during the rebase | 15:32 |
|
MacGyver
| I'd assume that it simply creates a conflict within the file. | 15:32 |
| ← hseg left | 15:32 |
| → Zenmaker_ joined | 15:32 |
| ← fireh left | 15:33 |
| → arkiver joined | 15:33 |
| ← stkrzysiak left | 15:34 |
| → stkrzysiak joined | 15:34 |
| → tewecske joined | 15:35 |
| ← marhaban left | 15:36 |
| → hellopat joined | 15:36 |
| → Kaisyu joined | 15:36 |
| ← hellopat left | 15:36 |
| ← rtuin left | 15:37 |
| ← hellopat_ left | 15:37 |
| ← Zenmaker__ left | 15:37 |
| → hellopat joined | 15:37 |
| → dreiss joined | 15:38 |
|
jnewt
| ok, i've got two branches now, origin/master and master, but they are not "the same" or not "tracked" or whatever it's called, they're separate. how do i make them tracked / rewrite my new master history in to my origin history? | 15:38 |
| → erichynds joined | 15:39 |
|
shruggar
| you'll need to explain your situation a bit more, you're using some weird terminology so I'm not quite sure what you mean. Your situation could be absurdly easy to rectify, or it could just be absurd | 15:40 |
| ← beneggett left | 15:40 |
| ← tvw left | 15:40 |
|
jnewt
| i created a new branch, and committed it, then rebased master onto it. so that i could get a new initial commit. it worked. but the old line of commits is still hanging around. i want to get rid of it or overwrite it when i push. | 15:41 |
|
milki
| what do you mean by "old line of commits still hanging around" | 15:42 |
|
shruggar
| if you push to the same place, it will kill them. Problem solved? | 15:42 |
| ← cakehero left | 15:42 |
| → maletor joined | 15:42 |
| → beneggett joined | 15:42 |
|
milki
| unreferenced commits will go away with a git gc | 15:42 |
|
jnewt
| i mean my local copy, when viewed through any of my gui tools shows two branches, origin/master and master, and unlike normally when they are the same, they are completely unconnected now. | 15:43 |
| ← tsdh left | 15:43 |
|
shruggar
| when you push, they will be the same again | 15:43 |
|
jnewt
| ok | 15:43 |
| → etcetera joined | 15:43 |
|
jnewt
| i just didn't want to push a mess | 15:44 |
|
milki
| you dont push remote-tracking branches, only local ones | 15:44 |
| ← sedavand left | 15:45 |
| → thelazydeveloper joined | 15:46 |
| ← brentdanley_ left | 15:46 |
| ← thelazydeveloper left | 15:46 |
| ← diamonds left | 15:47 |
|
jnewt
| git push origin master | 15:47 |
| → andrewhl joined | 15:47 |
|
jnewt
| update were rejected because the tip of your current branch is behind it's remote counter part. Merge the remote changes before pushing again | 15:48 |
| → nikuyoshi joined | 15:48 |
| ← psoo left | 15:48 |
|
jnewt
| nothing has been changed on the remote end. how did this happen | 15:48 |
| ← nikuyoshi left | 15:49 |
| ← rchavik left | 15:49 |
| → cakehero joined | 15:49 |
|
jnewt
| not sure i want to pull, seems like it might either overwrite my commits, or try to do some merging, which i don't need/want | 15:49 |
|
joshc
| since you're !rewriting history, you'll need to force push | 15:50 |
|
gitinfo
| [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 15:50 |
|
jnewt
| ah, well, that makes sense | 15:51 |
| → thelazydeveloper joined | 15:52 |
| ← JohnBat26 left | 15:52 |
| ← jbohn left | 15:53 |
| ← sanguisdex1 left | 15:55 |
| → EdwardIII joined | 15:55 |
| ← nickpresta left | 15:55 |
|
EdwardIII
| hrm, topic is up to date, no changes have been made to master since it was started - should i just merge them? | 15:56 |
| ← hellopat left | 15:56 |
| → pppaul joined | 15:57 |
| → nickpresta joined | 15:57 |
| ← bullicon left | 15:57 |
| → systemclient joined | 15:59 |
|
systemclient
| is there a git way to push every repo into my projects/ folder to it's “github” remote? Or should I just use a bash-for-loop? | 15:59 |
| → jjbohn joined | 16:00 |
|
cjdavies
| I'm using duply/duplicity to do backups & I want to add/commit changes in git repos before the backup runs - the backup script runs as root, is it okay for root to do the add/commit even if the repos are owned by a normal user? | 16:01 |
| ← whitman left | 16:01 |
| → btanaka joined | 16:01 |
| → towski joined | 16:01 |
|
systemclient
| cjdavies: then normal users cannot use the repo any more | 16:01 |
|
| cjdavies: “git gc“ will not work it root created any new files in there | 16:02 |
| ← arkiver left | 16:02 |
| ← dpino left | 16:02 |
| ← dougsland left | 16:02 |
| ← dreiss left | 16:02 |
|
cjdavies
| systemclient: right, thanks | 16:03 |
| ← stkrzysiak left | 16:03 |
|
cjdavies
| I guess I can just set a cron job as the normal user to add/commit before the cron job that runs the backup as root | 16:03 |
| adhawkins → adhawkins-away | 16:04 |
| ← vervic left | 16:04 |
| ← skyf left | 16:06 |
| ← Davey left | 16:06 |
| → bwwrd joined | 16:06 |
| → kidsalsa joined | 16:06 |
| ← kidsalsa left | 16:07 |
| → stkrzysiak joined | 16:07 |
| → theswimmingfrog joined | 16:08 |
| ← pigeon left | 16:10 |
| → Davey joined | 16:10 |
| → Dragooon joined | 16:10 |
| ← fisted left | 16:11 |
| ← neurodrone left | 16:11 |
| ← tatsuya_o left | 16:11 |
| ← bubbles10101 left | 16:12 |
| → bubbles10101 joined | 16:13 |
| → thiago joined | 16:14 |
| → bullicon joined | 16:15 |
| → boombatower joined | 16:16 |
| → dinesh6654 joined | 16:17 |
| → jbohn joined | 16:17 |
| ← theswimmingfrog left | 16:18 |
| → wilmoore joined | 16:18 |
| → theswimmingfrog joined | 16:19 |
| ← theswimmingfrog left | 16:19 |
| ← jjbohn left | 16:20 |
| → theswimmingfrog joined | 16:20 |
| ← theswimmingfrog left | 16:21 |
| ← LimeBlast left | 16:21 |
| → theswimmingfrog joined | 16:21 |
| → rtjure joined | 16:21 |
| ← theswimmingfrog left | 16:22 |
| ← beneggett left | 16:22 |
| ← chris_dexter left | 16:23 |
| → theswimmingfrog joined | 16:24 |
| ← Kyzz left | 16:24 |
| ← theswimmingfrog left | 16:24 |
| → harish joined | 16:25 |
| ← _bart left | 16:25 |
| → theswimmingfrog joined | 16:25 |
| ← theswimmingfrog left | 16:25 |
| ← LmAt left | 16:25 |
| → Kyzz joined | 16:26 |
| → theswimmingfrog joined | 16:26 |
|
fluxdude
| I want to rename my master branch to prod, how will this affecf | 16:26 |
| ← theswimmingfrog left | 16:26 |
|
fluxdude
| affect the upsteam central repo we use and other users? | 16:26 |
|
| I want this change to propagate rather than just my local branch name being difference | 16:26 |
|
| different | 16:26 |
| → beneggett joined | 16:27 |
| → theswimmingfrog joined | 16:27 |
| ← theswimmingfrog left | 16:27 |
| → imachuchu joined | 16:27 |
| → theswimmingfrog joined | 16:28 |
| ← theswimmingfrog left | 16:28 |
| ← lonewulf` left | 16:29 |
| ← john_anderson left | 16:29 |
| → LeMike joined | 16:30 |
| → theswimmingfrog joined | 16:31 |
| ← lresende left | 16:31 |
| → john_anderson joined | 16:31 |
| ← theswimmingfrog left | 16:31 |
| → goshawk joined | 16:32 |
| → theswimmingfrog joined | 16:32 |
| → tvw joined | 16:32 |
| ← theswimmingfrog left | 16:32 |
| → enmand joined | 16:32 |
| ← jargon- left | 16:33 |
| → eletuchy joined | 16:33 |
| ← TheJH left | 16:33 |
| ← eletuchy left | 16:33 |
| → nadirvardar joined | 16:34 |
| → theswimmingfrog joined | 16:34 |
| → apok joined | 16:35 |
| ← theswimmingfrog left | 16:35 |
|
rking
| (Asking for a buddy, so I can't test it on my own easily): If he's working on a feature branch and does a "git pull", he can then simply do "git merge master" to get the updated remote's master's HEAD, right? | 16:36 |
| → theswimmingfrog joined | 16:36 |
| ← bosspetta left | 16:36 |
| ← theswimmingfrog left | 16:37 |
|
selckin
| pull = fetch+merge | 16:37 |
| → hobodave joined | 16:37 |
| ← bubbles10101 left | 16:37 |
|
selckin
| (sometimes fetch+rebase (configuration etc)) | 16:38 |
| → theswimmingfrog joined | 16:38 |
| ← theswimmingfrog left | 16:38 |
|
rking
| selckin: Right, but that's merging only the currently selected branch, no? | 16:38 |
|
selckin
| sure | 16:39 |
|
imachuchu
| rking: yeah, he'll get the remote master's head through fetch/pull (really that's it's job, to pull down a branch (by default master) and any commits that you don't already have) | 16:39 |
| → theCole joined | 16:39 |
|
fluxdude
| on my git server I did git branch -m master prod | 16:39 |
|
selckin
| so you'll need origin/master, since master is not merged or rebased | 16:39 |
|
fluxdude
| but on the clients I still see refs to master, how do I get rid of them? | 16:39 |
| → lresende joined | 16:39 |
|
selckin
| fluxdude: don't think you can | 16:40 |
| → theswimmingfrog joined | 16:40 |
|
rking
| OK. Because the only place where you could possibly have non-committed changes is the working tree, so that's the only one where the mergewould make sense to not update HEAD all the way to the remote's HEAD. (right?) | 16:40 |
|
selckin
| you can change the default "master" branch tho, for new clones | 16:40 |
|
rking
| selckin: I still really don't understand rebase. I've not manually used it even once. =\ | 16:40 |
| ← theswimmingfrog left | 16:40 |
|
selckin
| rking: just another way to merge basicly | 16:40 |
|
| rking: but no, if you type "git merge master" you won't get the freshly fetched stuff, those are in origin/master | 16:41 |
| → theswimmingfrog joined | 16:41 |
| ← mishok13 left | 16:41 |
| → artnez joined | 16:41 |
| → dpino joined | 16:41 |
| ← theswimmingfrog left | 16:41 |
| → kukks joined | 16:41 |
| ← kukks left | 16:41 |
| → kukks joined | 16:41 |
| → theswimmingfrog joined | 16:42 |
| ← theswimmingfrog left | 16:42 |
| → nhooey|mini joined | 16:42 |
|
imachuchu
| umm, I wouldn't say that rebase is akin to merge, really at all. It's a way of grafting one subtree onto another (alternatively it reapplies the changes introduced by patches, in order, at a specified point) | 16:43 |
| → lonewulf` joined | 16:44 |
| ← caddoo left | 16:44 |
| → theswimmingfrog joined | 16:44 |
| ← OOPMan left | 16:45 |
| ← theswimmingfrog left | 16:45 |
|
selckin
| they both make the history of multiple tree visible from one of them | 16:45 |
|
FauxFaux
| It's akin to merge in that it's a way to automaticially reconcile divergent histories. | 16:45 |
|
| (semi-automatically) | 16:45 |
| ← CaptainQuirk left | 16:46 |
| → theswimmingfrog joined | 16:46 |
| → Goplat joined | 16:47 |
| ← theswimmingfrog left | 16:47 |
|
imachuchu
| FauxFaux: true | 16:47 |
| → theswimmingfrog joined | 16:47 |
| → alvaro_o joined | 16:47 |
|
FauxFaux
| Does the documentation actually use a consistent term for a "history" somewhere? i.e. a branch of history, but not necessarily a git branch. | 16:47 |
| ← theswimmingfrog left | 16:48 |
| → neurodrone joined | 16:48 |
| ← alvaro_o left | 16:48 |
| → theswimmingfrog joined | 16:48 |
| ← theswimmingfrog left | 16:49 |
| → dreiss joined | 16:49 |
| ← jnewt left | 16:49 |
| → jnewt joined | 16:49 |
| → fireh joined | 16:49 |
|
selckin
| plumming commands use tree no? | 16:50 |
| → hellopat joined | 16:50 |
| → mwrosen joined | 16:50 |
| → theswimmingfrog joined | 16:51 |
| ← Nirvanko left | 16:51 |
| → cmullican joined | 16:51 |
| → sedavand joined | 16:51 |
| ← Kaisyu left | 16:51 |
| ← theswimmingfrog left | 16:51 |
|
FauxFaux
| selckin: Tree is an entirely different thing; it's a list of files, instead of a list of commits. | 16:52 |
| ← iamjarvo left | 16:53 |
| ← ipalaus left | 16:53 |
| → theswimmingfrog joined | 16:53 |
| → pranjal710 joined | 16:53 |
|
selckin
| hmm right | 16:53 |
| → dangerboy joined | 16:53 |
| → adityamenon90 joined | 16:54 |
| ← theswimmingfrog left | 16:54 |
| ← tango_ left | 16:54 |
| → ipalaus joined | 16:54 |
| ← pandeiro left | 16:54 |
| ← teotwaki left | 16:55 |
| ← adityamenon left | 16:55 |
| → tango_ joined | 16:56 |
| → tatsuya_o joined | 16:56 |
| ← beneggett left | 16:56 |
| ← rns-laptop left | 16:56 |
| → skyf joined | 16:56 |
| ← btanaka left | 16:57 |
| → horar79 joined | 16:58 |
| → Learath2 joined | 16:58 |
| → Speed joined | 16:59 |
| ← Speed left | 16:59 |
| → Speed joined | 16:59 |
| → apok_ joined | 16:59 |
| ← lresende left | 17:00 |
|
selckin
| all the manuals i checked in boredom assume you already understand the word branch | 17:00 |
| → raykyri joined | 17:00 |
| gitinfo set mode: +v | 17:00 |
| ← ignas left | 17:00 |
| ← gioele left | 17:00 |
| ← shruggar left | 17:00 |
|
FauxFaux
| Which means two different things. | 17:00 |
| → beneggett joined | 17:01 |
| ← babilen left | 17:01 |
| ← lonewulf` left | 17:03 |
| ← apok left | 17:03 |
| apok_ → apok | 17:03 |
| ← tchan left | 17:04 |
| → eletuchy joined | 17:04 |
| → vervic joined | 17:05 |
|
talexb
| Has anyone tried changing the diff options in gitweb? I'd like to add '-b' to get around checkins that merely chang line-endings. | 17:06 |
| → kevwil joined | 17:06 |
| ← kevwil left | 17:06 |
| ← airborn left | 17:06 |
|
talexb
| I know where to change it, I'm just curious to know if anyone has good/bad stories about it. | 17:06 |
| → rns-laptop joined | 17:08 |
| → mrwalker joined | 17:08 |
| ← bullicon left | 17:08 |
| ← horar79 left | 17:10 |
| → horar79 joined | 17:10 |
| ← systemclient left | 17:11 |
|
talexb
| Patch worked fine. \o/ | 17:12 |
| ← apok left | 17:12 |
| → apok joined | 17:12 |
| Marcux83|away → Marcux83 | 17:13 |
| → kenperkins joined | 17:13 |
|
mocramis
| hello. | 17:15 |
|
| is there a way to find out why a patch is corpted (or to get more details ? | 17:15 |
| ← skyf left | 17:16 |
| ← dangerboy left | 17:16 |
| → dhruvasagar joined | 17:17 |
|
talexb
| mocramis, Corrupted? Is your hard drive having problems? | 17:17 |
| → pigeon joined | 17:19 |
| → jargon- joined | 17:19 |
|
mocramis
| no, i did edi the patch a little bit, but i just found out that --recount solved my problems | 17:20 |
| → airborn joined | 17:20 |
| ← t4nkd left | 17:20 |
| ← horar79 left | 17:21 |
| ← giallu left | 17:21 |
| → tchan joined | 17:22 |
| ← tchan left | 17:22 |
| → tchan joined | 17:22 |
| → shavus joined | 17:23 |
| → lresende joined | 17:24 |
| ← warthog9 left | 17:24 |
| ← jceb_ left | 17:25 |
| ← jason237 left | 17:25 |
| ← wilmoore left | 17:26 |
| → wilmoore joined | 17:27 |
| ← john_anderson left | 17:28 |
| ← ReekenX left | 17:28 |
| ← weiguan left | 17:29 |
| ← axl_ left | 17:29 |
| → john_anderson joined | 17:29 |
| ← wilmoore left | 17:30 |
| ← rns-laptop left | 17:30 |
| → darren_ joined | 17:31 |
| → abstrusenick joined | 17:31 |
| → skyf joined | 17:32 |
| → ISF joined | 17:33 |
| → _huoxito joined | 17:34 |
| ← rehat left | 17:35 |
| → martin__ joined | 17:36 |
| ← Stalafin left | 17:36 |
| Mpenzi → mpenz | 17:36 |
| mpenz → Mpenzi | 17:36 |
| ← pppaul left | 17:36 |
| → pppaul joined | 17:37 |
| → axl_ joined | 17:37 |
| ← martin__ left | 17:38 |
| → martin__ joined | 17:38 |
| → shruggar joined | 17:38 |
| ← martin__ left | 17:39 |
| → mklappstuhl joined | 17:39 |
| → lonewulf` joined | 17:39 |
|
mklappstuhl
| hey | 17:39 |
|
| I'm looking for a way to measure "developer contribution" starting from a given commit... any ideas how I could do that? | 17:40 |
| → ph^ joined | 17:41 |
| ← ctaloi left | 17:41 |
| → maestrojed joined | 17:41 |
|
selckin
| define contribution | 17:42 |
| → Bass10 joined | 17:42 |
| → ctaloi joined | 17:42 |
| → theswimmingfrog joined | 17:43 |
| → andrew_knowles joined | 17:43 |
|
maestrojed
| Is there such thing as adding an exception in gitignore? I want to track files/foo/ but block everything else in files/. The structure of files/ is somewhat dynamic so its not ideal to block each subdirectory individually (files/bar/, files/example/, etc.) | 17:43 |
|
mklappstuhl
| selckin, something like "# of changed lines/characters" | 17:44 |
| ← theswimmingfrog left | 17:44 |
|
selckin
| maestrojed: anything tracked is not ignored | 17:44 |
| ← shruggar left | 17:44 |
| → theswimmingfrog joined | 17:44 |
|
mklappstuhl
| selckin, Problem with changed lines will be that we probably hat a lot of whitespace fixes which will add up when checking for changed lines | 17:44 |
| ← goshawk left | 17:44 |
| ← theswimmingfrog left | 17:45 |
|
selckin
| counting lines is pritty uselss for pritty much anything you want to do | 17:45 |
| → EricKamsky_ joined | 17:46 |
| ← EricKamsky left | 17:46 |
| ← sirdancealot7 left | 17:46 |
|
mklappstuhl
| selckin, I'm open to any other suggestions | 17:46 |
| → arkiver joined | 17:46 |
|
mklappstuhl
| I'd just like to have some measurement for "done work" for myself | 17:47 |
| ← tvw left | 17:47 |
|
mklappstuhl
| (I don't want to judge anybody based on that or similar | 17:47 |
| ← arkiver left | 17:47 |
| ← dinesh6654 left | 17:48 |
| → TheShagg joined | 17:48 |
| → goshawk joined | 17:48 |
|
selckin
| google gitstats i guess | 17:48 |
| gitinfo set mode: +v | 17:48 |
| → dinesh6654 joined | 17:48 |
| → arkiver joined | 17:48 |
|
TheShagg
| I setup a remote tracking branch, checked it out, and fetched, and I didn't get the most recent changes as far as I can tell | 17:48 |
| → iamjarvo joined | 17:48 |
|
TheShagg
| anyone understand how this is supposed to work? | 17:48 |
|
selckin
| what are the exact commands you ran | 17:49 |
|
iamjarvo
| say i merge in changes before doing a pull from a remote branch. and github hangs up. is it wise to do git pull? | 17:49 |
| → n1x joined | 17:50 |
|
TheShagg
| selckin: git branch --track central_master central/master; git checkout central_master; git fetch central; gitk -10 | 17:50 |
| → aantix joined | 17:50 |
| ← raykyri left | 17:50 |
| ← defts left | 17:50 |
|
selckin
| iamjarvo: sure, if you want to avoid the extra merge maybe pull --rebase | 17:50 |
| ← SirCmpwn_ left | 17:50 |
| → raykyri joined | 17:50 |
|
selckin
| TheShagg: git fetch will will update central/* only, you need merge or rebase (pull = fetch+merge) | 17:51 |
|
iamjarvo
| selckin thanks | 17:51 |
| ← clifton left | 17:51 |
| ← n1x left | 17:52 |
| adhawkins-away → adhawkins | 17:52 |
| → shruggar joined | 17:52 |
|
TheShagg
| selckin: so what are my options then, can I just use central/master like any other branch? I am guessing that if my local copy does not have any changes that the merge will more or less get what I am expecting? | 17:52 |
|
| selckin: let me clarify | 17:52 |
|
| selckin: can i just merge with central/master as if it were any other branch? | 17:53 |
|
selckin
| TheShagg: yes | 17:53 |
|
maestrojed
| selckin so you are saying track what I want, then add the parent folder to gitignore? Should work. Thx | 17:53 |
|
selckin
| maestrojed: yeah, just ignore the folder, and explicity 'git add' stuff you want git to know about | 17:54 |
| → andrew_k1owles joined | 17:54 |
| ← ctaloi left | 17:54 |
|
maestrojed
| selckin ok thanks | 17:54 |
|
mklappstuhl
| selckin, Gitstats unfortunately provides only stats based on # of commits and this is not saying a lot when people often do 1-line commits | 17:55 |
| → surripere joined | 17:55 |
| ← Vampire0 left | 17:55 |
|
selckin
| lines don't say anything either | 17:55 |
|
talexb
| This sounds like a PHB statistic to me .. | 17:55 |
|
selckin
| but one of the stats one does it i'm sure, they are multiple with the same name | 17:55 |
| ← bgerber left | 17:55 |
| ← angelsl left | 17:55 |
|
talexb
| A ten line change may take ten minutes and little thought. | 17:56 |
|
| A one line change might require tons of research and days of testing. | 17:56 |
| → berserkr joined | 17:56 |
| ← PerlJam left | 17:56 |
| → surriper1 joined | 17:56 |
| ← achadwick left | 17:56 |
|
selckin
| turning knob 5$, knowing what knob to turn priceless | 17:56 |
|
talexb
| It's probably better to look at the estimate of the complexity of the originating issues .. | 17:57 |
| → Vampire0 joined | 17:57 |
|
EugeneKay
| My experience is that reducing SLOC is a better program practice than increasing. | 17:57 |
|
maestrojed
| if your site has a blog, would you track the images added to blog posts? | 17:57 |
|
talexb
| Nicely put. | 17:57 |
|
selckin
| images good for reddit and driving traffic! | 17:57 |
|
EugeneKay
| +ming | 17:57 |
| → PerlJam joined | 17:57 |
| → tjadc joined | 17:57 |
| → bgerber joined | 17:58 |
| → fusion27 joined | 17:58 |
|
talexb
| And a high number of commits could indicate that the developer made a change that included a change, fixed the change and introduced another error, fixed the error and documented, then fixed the documentation .. | 17:58 |
|
| Rhetorical: Is that better or worse then someone who Got It Right The First Time? | 17:58 |
|
selckin
| or fixing up the errors of everyone else | 17:58 |
|
| should really look way higher level | 17:59 |
|
fusion27
| Alright a couple of Git noobies here | 17:59 |
| ← abstrusenick left | 17:59 |
|
fusion27
| We're working remotely on a Git repository hosted on an Ubuntu 10.04 box | 17:59 |
|
talexb
| Isn't everyone? ;) | 17:59 |
|
TheShagg
| selchkin; so lets say I am on master, and I do a git fetch, if I want to manually fastforward would I do something like "git rebase central/master" or "git merge central/master", is this the expected way to work if you fetch instead of pull? | 17:59 |
|
fusion27
| Developer A is working on the master, Developer B cloned the master and branched it | 18:00 |
|
selckin
| TheShagg: those will do the same thing, unless you have made commits yourself | 18:00 |
|
talexb
| TheShagg, Why wouldn't you just git rebase master? | 18:00 |
| → BD- joined | 18:00 |
|
selckin
| TheShagg: ie a fast-forward merge | 18:00 |
|
talexb
| fusion27, Why is developer A working on master? | 18:00 |
|
fusion27
| We want to merge Developer B's branch in with Developer A's master | 18:00 |
| → werdnativ joined | 18:01 |
| → HAL_9001 joined | 18:01 |
| ← HAL_9001 left | 18:01 |
| → HAL_9001 joined | 18:01 |
|
fusion27
| I think it has more to do with being a noobie than making a deliberate choice to do so | 18:01 |
|
TheShagg
| selckin: I understand, I just have never used a remote/branch pair by name in my commit merging process - I've been doing it all on my local machine | 18:01 |
|
talexb
| fusion27, So Dev A pushes, Dev B pulls and does the necessary merging .. and pushes the result. | 18:01 |
| Kronuz → Kronuz-away | 18:01 |
|
TheShagg
| talexb: wouldn't doing git rebase master pluck master and rebase it onto master (i.e. do nothing) | 18:01 |
| ← adityamenon90 left | 18:01 |
| ← ph^ left | 18:01 |
|
talexb
| fusion27, Typically no one actually does any work on master. You always create a separate branch, complete your work there, then merge back into master. | 18:02 |
| ← shruggar left | 18:02 |
|
selckin
| TheShagg: well it looks right to me | 18:02 |
|
fusion27
| Thank you | 18:02 |
| → adityamenon joined | 18:02 |
| ← arkiver left | 18:02 |
| ← Samual left | 18:02 |
| ← axl_ left | 18:02 |
|
TheShagg
| so, basically you use master as your remote tracker? and you git pull it from the remote and you never have to merge it, and then you do all the merging in your local branch, and then push it up to the remote? | 18:02 |
| → axl_ joined | 18:03 |
|
talexb
| TheShagg, If you're on master, you may be out of step with the server .. then you just do a pull, and you're up to date. | 18:03 |
| → bradrice joined | 18:03 |
|
selckin
| TheShagg: well if you just did pull, it would fetch and merge from the remote branch it is tracking | 18:03 |
|
talexb
| You may have mis-understood what 'fast-forward' means. | 18:03 |
| ← bradrice left | 18:03 |
|
TheShagg
| selckin: I hate using pull, i would rather peek around first before merging | 18:03 |
|
selckin
| TheShagg: if you do it manually, it doesn't really mather you are tracking, except for when you push | 18:04 |
| ← fusion27 left | 18:04 |
| ← juvenal left | 18:04 |
| → bradrice joined | 18:04 |
|
TheShagg
| but my understanding is you keep master "virgin" so you don't have to do any merging when you pull, and then you can do all your rebasing/merging in your topic branch using master as your source for remote commits | 18:04 |
|
| does this sound correct? | 18:04 |
|
talexb
| If you pull from master, do a bunch of commits, then push back to origin, that counts as a fast-forward merge. Although I prefer a non-ff merge, since it lumps the commits together into a recognizable blob. | 18:04 |
| → fusion27 joined | 18:04 |
|
selckin
| sounds like more work, depends on how you like to work i guess | 18:04 |
| ← resmo left | 18:04 |
|
fusion27
| TheShagg: were you just helping me? My chat client wasn't showing the ID of respondents | 18:05 |
|
| I just reset and can see now | 18:05 |
|
selckin
| like the linux kernel has a policy of only merging to master | 18:05 |
|
TheShagg
| fusion27: i think a few people are talking about the same thing, but I wasn't meaning to ;) | 18:05 |
|
| selckin: as opposed to fast forwarding? | 18:06 |
| ← tatsuya_o left | 18:06 |
|
fusion27
| thanks TheShagg | 18:07 |
|
TheShagg
| selckin: my main problem is that I do not like to pull, I like to fetch, and that is where my confusion arises | 18:07 |
|
selckin
| TheShagg: like some people like to keep mostly linear histry and rebase branches on top of master, or if you're a small team, other people prefer to like always work in branches, and then merge them in master, some ppl just git pull randomly and create a clusterfuck of a history and like that | 18:07 |
|
bradrice
| I cloned a site, did a branch, but now I can't push using git push branchname | 18:07 |
| → Synthead joined | 18:07 |
|
selckin
| TheShagg: yeah that sounds like a good thing, not sure what part is confusing you | 18:08 |
|
TheShagg
| selckin: but I think I have an idea of how this works now, a workflow that will work for me | 18:08 |
|
fusion27
| talexb: thanks for your help, we're taking a swing right now | 18:08 |
| → juvenal joined | 18:08 |
|
TheShagg
| selckin: my original confusion was that I couldn't figure out how to get the fetched commits, because my branch was unchanged after fetch, but it looks like I can get them by referencing remote/branch or creating another branch that I can just pull (master could work for this), either would work I think | 18:09 |
|
fusion27
| talexb: I'm Dev A, when you say push, are you saying to push to Gitbub? | 18:09 |
| ← grandy left | 18:09 |
|
fusion27
| I think the box I'm working on is properly set up as a Git server | 18:09 |
|
| and I'm (Dev A) working on the master right on that box | 18:10 |
| → axl__ joined | 18:10 |
|
selckin
| TheShagg: by default it's named origin, so you clone a repo, and have origin/master which is the state of the branch on the remote (update with fetch), then your own master branch is stuff you want to end up on the remote master (origin/master) when you push, and the remote had changes you didn't see yet, you have to first merge or rebase into your own master, before you can push your new stuff out | 18:11 |
|
| TheShagg: if that makes sense | 18:11 |
|
EugeneKay
| !workflow | 18:11 |
|
gitinfo
| Finding the right workflow for you is critical for the success of any SCM project. Git is very flexible with respect to workflow. See http://sethrobertson.github.com/GitBestPractices/#workflow for a list of references about choosing branching and distributed workflows. | 18:11 |
|
EugeneKay
| Grrr.... that's not the one. | 18:11 |
| ← skyf left | 18:11 |
|
EugeneKay
| !isgitbetter | 18:11 |
|
gitinfo
| We think so, but if you don't, please go away and use $YourFavoriteSystem instead. For a comparison to other VCSes, see http://thkoch2001.github.com/whygitisbetter/ | 18:11 |
|
xissburg
| :) | 18:11 |
|
EugeneKay
| fusion27 - See the workflow section of that page for some diagrams which might help bring sense to your situation | 18:12 |
|
xissburg
| git is the world standard | 18:12 |
|
fusion27
| thanks EugeneKay | 18:12 |
| → resmo__ joined | 18:12 |
| ← axl_ left | 18:12 |
| axl__ → axl_ | 18:12 |
|
TheShagg
| selckin: I get all that, I was just confused on how to get those commits from the remote to do a local merge, (assuming a fetch, not pull), and the answer is "origin/master" - I just do a git merge origin/master if I am happy with what I see, or I can do some rearranging on my side or whatnot | 18:12 |
| ← beneggett left | 18:13 |
|
selckin
| TheShagg: cool | 18:13 |
|
| TheShagg: git branch -a | 18:13 |
|
TheShagg
| selckin: although it sounds like people frown on using master as a place to work | 18:13 |
|
| all depending | 18:13 |
| → shruggar joined | 18:14 |
|
TheShagg
| but I can always do a git push HEAD:origin/master if I am on a topic branch | 18:14 |
|
selckin
| yeah, new people to git tend to use git pull a lot and create a mess, thinking its the same to svn update, but that's more like a rebase | 18:14 |
|
TheShagg
| I am using gerrit code review, which has some built in merging crap that makes things more strange, so I am trying to get a lot of commits in sync with it | 18:15 |
|
| rebasing and such | 18:15 |
| → beneggett joined | 18:15 |
|
EugeneKay
| .trigger_edit flexible git's status as a Distributed VCS really means that it is flexible - you can build any layout of repos you like to suit your !workflow. Here are some diagrams of common ones: http://git-scm.com/about#distributed | 18:15 |
|
gitinfo
| EugeneKay: Okay. | 18:15 |
|
EugeneKay
| .trigger_edit layout @!flexible | 18:15 |
|
gitinfo
| EugeneKay: Okay. | 18:15 |
| ← Bass10 left | 18:16 |
| ← resmo_ left | 18:16 |
| ← tchan left | 18:16 |
| → jeffisabelle joined | 18:16 |
|
selckin
| EugeneKay: link is wrong s,#,/, | 18:17 |
|
EugeneKay
| No it isn't? | 18:17 |
|
selckin
| unless you didn't intent to link disrubuted | 18:17 |
| ← lresende left | 18:18 |
|
EugeneKay
| Oh, lovely. git-scm has one of those "smart" interfaces that relies upon JS | 18:18 |
| ← phishy left | 18:18 |
|
EugeneKay
| The # works with JS off, but the / with it on -_- | 18:18 |
| → phishy joined | 18:18 |
| gitinfo set mode: +v | 18:19 |
|
selckin
| oh it does those # links in chrome, but / in firefox | 18:19 |
| ← meLon left | 18:19 |
|
selckin
| only / works from a fresh link for me, bad site | 18:19 |
|
EugeneKay
| This is where I begin to scream at the html5 nuts | 18:19 |
| → skyf joined | 18:19 |
|
selckin
| yeah thats pritty bad | 18:19 |
|
TheShagg
| scream in a bad way? | 18:19 |
| ← vervic left | 18:20 |
|
EugeneKay
| Murderously. | 18:20 |
|
TheShagg
| dunno anything about html5 except it does "flash" like things ;) | 18:20 |
|
EugeneKay
| The problem is people forget to make it degrade gracefully | 18:20 |
| → tatsuya_o joined | 18:20 |
|
EugeneKay
| I browse with NoScript because I beleive that if your website needs to eat 100MB of my RAM to show me a fancy flash animation then I probably don't care what you have to say | 18:21 |
| ← dv310p3r left | 18:21 |
|
selckin
| i wouldn't go that far | 18:21 |
| → dfr|moscow joined | 18:21 |
|
selckin
| but getting urls right is the minimal you can do | 18:21 |
|
| can't really do much useful without js these days | 18:21 |
|
EugeneKay
| Sure you can. | 18:21 |
| ← BD- left | 18:22 |
|
EugeneKay
| It's called STOP BOUNCING AROUND LIKE A CRACKED UP CHIHUAHUA | 18:22 |
|
selckin
| well i 'm glad i have gmail and not 1999 horde | 18:22 |
| ← beneggett left | 18:23 |
|
selckin
| if its for "websites" where you like go to read news and documentation its all good without js, but if you need interaction, ie app stuff, like for configuration & shit, you really need js | 18:23 |
| → marhaban joined | 18:24 |
| ← ipalaus left | 18:24 |
| → dv310p3r joined | 18:25 |
| → BD- joined | 18:25 |
|
selckin
| ie here, git-scm would be fine without it, maybe bit slower to swap between the pages #care | 18:25 |
| ← tatsuya_o left | 18:25 |
| ← juvenal left | 18:26 |
| ← jeffisabelle left | 18:26 |
| ← raykyri left | 18:27 |
| ← BD- left | 18:27 |
| → BD- joined | 18:27 |
| → juvenal joined | 18:29 |
| → williamcotton_ joined | 18:29 |
| ← shruggar left | 18:29 |
| ← williamcotton left | 18:30 |
| williamcotton_ → williamcotton | 18:30 |
| → ShooterMG joined | 18:30 |
| → lresende joined | 18:31 |
| ← manolo left | 18:32 |
| → ipalaus joined | 18:32 |
| → manolo joined | 18:32 |
| → clifton joined | 18:32 |
| → tchan joined | 18:33 |
| ← tchan left | 18:33 |
| → tchan joined | 18:33 |
| ← Dragooon left | 18:34 |
| → raykyri joined | 18:36 |
| → Xizor joined | 18:36 |
| → devth joined | 18:36 |
|
TheShagg
| LOL, is there a way to rebase multiple branches at once | 18:36 |
| → scientes joined | 18:37 |
| ← clifton left | 18:37 |
|
FauxFaux
| Nope. | 18:37 |
|
TheShagg
| awww, i have like 10 commits with common ancestry that need to rebase far back | 18:38 |
|
| 10 branches | 18:38 |
|
| i mean | 18:38 |
| → p3rror joined | 18:38 |
| ← bgerber left | 18:38 |
| → rehat joined | 18:38 |
|
cbreak
| TheShagg: that'd make no sense at all | 18:38 |
|
SirFunk
| i'm getting this problem "error: Your local changes to the following files would be overwritten by checkout: config/application.yml Please, commit your changes or stash them before you can switch branches." but when i git stash it says "no local changes to save" | 18:38 |
|
TheShagg
| cbreak: why not? | 18:38 |
|
cbreak
| because rebase rebases the current branch | 18:39 |
|
| only one current branch | 18:39 |
|
| only one working directory, which rebase needs to resolve conflicts | 18:39 |
|
FauxFaux
| SirFunk: Is that a tracked file? If not, then you need to deal with it in other ways. | 18:39 |
|
TheShagg
| cbreak: it could be done iteratively | 18:39 |
|
SirFunk
| FauxFaux: it was tracked then i assume unchanged it | 18:39 |
|
TheShagg
| which is what I am going to have to do by hand | 18:39 |
| → fisted joined | 18:39 |
| → bgerber joined | 18:40 |
| → SirCmpwn_ joined | 18:40 |
| ← SirCmpwn_ left | 18:40 |
|
FauxFaux
| SirFunk: If you assume-unchanged, all bets are off, and anyone's ability to help you goes down the drain, especially if you don't tell us. Have fun fixing the problem yourself. | 18:40 |
|
SirFunk
| i just told you :-P i can un-assume-unchanged it but i'm not sure if that will get the desired results. I need to the file to have a certain version in the repo (blank config file) and another version locally (for developing my app) | 18:41 |
| → sq-one joined | 18:41 |
|
selckin
| SirFunk: welcome to windows and line endings | 18:42 |
| → tqmz___ joined | 18:42 |
| ← eicto left | 18:42 |
|
SirFunk
| selckin: huh? I'm on linux | 18:42 |
|
cbreak
| SirFunk: delete the file. | 18:42 |
|
selckin
| then i dunno | 18:42 |
|
| oh yeah the file isn't tracked and was added | 18:42 |
|
cbreak
| that'll make the changes gone | 18:42 |
|
SirFunk
| cbreak: how does that make it exist in both the repo and locally? | 18:43 |
|
cbreak
| of course it's tracked | 18:43 |
| ← doorp left | 18:43 |
|
cbreak
| SirFunk: what? | 18:43 |
|
| you have a file with changes | 18:43 |
|
| git was told to assume there are no changes | 18:43 |
|
| what do you want git to do? | 18:44 |
|
| SirFunk: the sane solution would be to just kill the local changes since they are obviously worthless | 18:44 |
|
| since they are not even committed | 18:44 |
|
SirFunk
| I want a copy in my git repo (that has default configs) and then i want git to ignore it after the initial commit | 18:44 |
|
cbreak
| sounds stupid. | 18:44 |
|
| !config | 18:44 |
|
gitinfo
| [!configfiles] the recommended way is to change your application so that you can (perhaps optionally) store site-specific configuration/data in separate files, then keep those files out of version control. Still, see https://gist.github.com/1423106 for ways people have worked around the problem. | 18:44 |
| → SirCmpwn_ joined | 18:46 |
| → towski_ joined | 18:47 |
| ← dfr|moscow left | 18:47 |
| → freimatz joined | 18:48 |
| gitinfo set mode: +v | 18:48 |
| ← cjdavies left | 18:48 |
| → eicto joined | 18:48 |
| → Schwern joined | 18:48 |
| ← towski left | 18:50 |
|
freimatz
| Hi, with git status i get wrong file i.E. # Untracked files:/# "BMP/Symbole/Aktuell/A_Gr\303\266\303\237er.bmp" - the files containes german umlauts | 18:50 |
| → e-ndy joined | 18:50 |
| ← SirCmpwn_ left | 18:50 |
|
cbreak
| how's that wrong? | 18:50 |
|
thiago
| looks like UTF-8 to me | 18:50 |
|
freimatz
| hm, i expted | 18:51 |
| → Chillance joined | 18:51 |
| → schultza joined | 18:51 |
| ← dv310p3r left | 18:51 |
|
thiago
| that's not a verb | 18:51 |
|
freimatz
| BMP/Symbole/Aktuell/A_Größer.bmp | 18:51 |
| ← towski_ left | 18:52 |
|
freimatz
| (Windows 7) | 18:52 |
|
| what can i do? | 18:53 |
|
selckin
| working as intented | 18:53 |
|
thiago
| what's the problem? | 18:53 |
| → beneggett joined | 18:53 |
| ← adityamenon left | 18:54 |
| ← _huoxito left | 18:54 |
|
schultza
| warning: remote HEAD refers to nonexistent ref, unable to checkout... im doing a local bare clone of a git server (which apparently is a clone of a svn server) how do i fix this? | 18:54 |
|
fusion27
| anyone ever seen this one before? http://pastebin.com/RaeLPbJT 2 noobie git developers were able to generate this. Dev A started a project all on his own, never understanding that anyone else would ever join him. Committed all of his work to Git, working in a local repo, committing regularly, but only on the master branch. Dev A got a different job, then was re-hired by former employer to continue project. Dev B joined in. He cloned Dev A's re | 18:54 |
|
thiago
| schultza: check out the branch that you want | 18:55 |
|
selckin
| !faq nonbare | 18:55 |
|
fusion27
| how's that look bradrice | 18:55 |
|
| ? | 18:55 |
|
selckin
| !faq non-bare | 18:55 |
|
gitinfo
| Pushing to non-bare repositories is discouraged; more details available at http://jk.gs/gitfaq#non-bare | 18:55 |
| ← dpino left | 18:55 |
|
bradrice
| ok | 18:55 |
|
schultza
| it's a bare copy ... do i still have to run the checkout command? | 18:55 |
|
bradrice
| I don't quite understand why I couldn't just push my branch | 18:56 |
| ← BD- left | 18:56 |
|
bradrice
| but it is merged in master now | 18:56 |
| → BD- joined | 18:56 |
| ← rtjure left | 18:56 |
| ← dys left | 18:56 |
|
schultza
| git checkout trunk # returns # fatal: this operation must be run in a work tree | 18:56 |
| → jeffisabelle joined | 18:57 |
| → towski joined | 18:57 |
|
adhawkins
| schultza: You can't checkout into a bare repository | 18:57 |
|
| You need to clone it | 18:57 |
|
schultza
| yes... and im having that other error cloning from it | 18:58 |
|
thiago
| schultza: I meant in the repository you've just cloned | 18:58 |
|
schultza
| did i not set up the bare clone right? | 18:58 |
|
thiago
| schultza: if you want to change the branch that the bare repository points to, you need to use git symbolic-ref to change HEAD | 18:58 |
|
fusion27
| should we do a git reset —hard here?http://pastebin.com/RaeLPbJT | 18:58 |
| → AdrienBrault joined | 18:58 |
| ← enmand left | 18:59 |
| → Shusshu joined | 18:59 |
| ← BD- left | 18:59 |
|
mklappstuhl
| EugeneKay, talexb: I'm completely on your site regarding the statistics but knowing the project I'd like to have them anyway :) Actually the situation is that our CTO (only devs are him and me) apparently stopped working "real" on the project. He is only doing css stuff for weeks and when there is some "real work" he just sends me an email with the error. He is doing commits like changing one number in a css file (which is generally ok but h | 18:59 |
|
| ard to measure). I would just like to know if I'm just thinking that or if its like that for real... | 18:59 |
|
selckin
| fusion27: http://jk.gs/gitfaq#non-bare | 18:59 |
| ← Shusshu left | 18:59 |
| → pdtpatrick joined | 18:59 |
|
rking
| I've got a (git-n00b) coworker that said he ended up with like 5 siblings of a repo file, something about foo.LOCAL.ext and foo.REMOTE.ext ? What might've happened? | 18:59 |
|
bremner
| some mergetool left those | 19:00 |
| ← tango_ left | 19:00 |
|
EugeneKay
| mklappstuhl - beat the boss. I recommend an aluminum bat | 19:00 |
| ← ameoba left | 19:00 |
|
mklappstuhl
| EugeneKay, I'd like to know if I'm right with my thoughts before doing so | 19:01 |
| → tango_ joined | 19:01 |
|
selckin
| mklappstuhl: xyproblem, git log -p --author=boss | diffstat | 19:01 |
| ← beneggett left | 19:01 |
| → BD- joined | 19:01 |
| → enmand joined | 19:01 |
| → dys joined | 19:01 |
| ← kleist left | 19:02 |
| → captainfurious joined | 19:02 |
| → sungnyc joined | 19:02 |
| → _bart joined | 19:02 |
| → elux joined | 19:02 |
|
mklappstuhl
| selckin, whats xyproblem? ;) | 19:03 |
|
selckin
| google it | 19:03 |
|
mklappstuhl
| selckin, what if he is commiting from different machines with 5 different users? :D (git noob) | 19:04 |
| → dv310p3r joined | 19:04 |
|
mklappstuhl
| (he actually didnt use version control until I joined him) | 19:04 |
|
| (because he's been working alone, you know...) | 19:04 |
|
fusion27
| so selckin we're confident of what both developers have done | 19:04 |
|
adhawkins
| !xyproblem | 19:05 |
|
fusion27
| If I correctly understand the documentation, we're calling for git reset --hard | 19:05 |
|
| ? | 19:05 |
| ← nielsbusch left | 19:05 |
| → beneggett joined | 19:05 |
|
selckin
| mklappstuhl: add more --authors | 19:05 |
|
fusion27
| the pusher did a git pull from the master, then merges his branch in to it | 19:05 |
| → wilmoore joined | 19:05 |
|
mklappstuhl
| selckin, Oh cool, didnt know there is a name for that. Felt back for blaming someone so I started with Y | 19:05 |
|
fusion27
| merged | 19:05 |
| → TheJH joined | 19:06 |
|
selckin
| fusion27: isn't that output from a push? | 19:06 |
|
fusion27
| selckin: yes it is | 19:06 |
| ← skyf left | 19:06 |
|
selckin
| fusion27: then read the link i gave you twice | 19:06 |
| ← d0k left | 19:07 |
|
selckin
| or say you didn't understand what that has to do with it, but just repeating the same question is kinda futile | 19:07 |
| ← captainfurious left | 19:07 |
| → d0k joined | 19:07 |
|
schultza
| i got it working... i cant just run git clone on a bare init... had to add remote and fetch... | 19:08 |
|
| darn weekend getting in the way.. .:) | 19:08 |
|
talexb
| mklappstuhl, XY Problem: http://www.perlmonks.org/?node_id=542341 | 19:08 |
|
selckin
| you need at least 1 commit i think | 19:08 |
|
adhawkins
| schultza: clone creates the repository for you, you don't need to init it | 19:08 |
|
schultza
| clone also allows a working area... i was only setting up a bare repos for a server over ssh | 19:09 |
|
talexb
| mklappstuhl, Also, http://perl.plover.com/Questions3.html | 19:09 |
|
mklappstuhl
| talexb, found that alread | 19:10 |
|
freimatz
| yeah: commit -a was the solution for me | 19:10 |
|
selckin
| talexb: mklappstuhl i like this one http://mywiki.wooledge.org/XyProblem | 19:10 |
| adhawkins → adhawkins-away | 19:11 |
| ← beneggett left | 19:11 |
|
schultza
| now im getting it again... | 19:12 |
| ← dhruvasagar left | 19:12 |
| ← fisted left | 19:12 |
| → skyf joined | 19:12 |
| ← jeffisabelle left | 19:12 |
| → fisted_ joined | 19:12 |
| → clifton joined | 19:12 |
| → psoo joined | 19:12 |
| → tatsuya_o joined | 19:12 |
| → ameoba joined | 19:13 |
|
schultza
| i have a server running over ssh... trying to clone for work area on local machine.. have server on 2... local on 3... git clone ssh://git@2/dir/project.git responds with warning: remote head refers to nonexistent ref, uanble to checkout | 19:13 |
|
selckin
| default branch doesn't exist maybe | 19:13 |
|
mklappstuhl
| selckin, second example is great | 19:13 |
|
schultza
| again... the top originating server for this project is svn... | 19:14 |
|
| master on svn is "trunk" | 19:14 |
|
selckin
| "git svn" repos should not be shared | 19:14 |
| → Bass10 joined | 19:15 |
| ← eicto left | 19:15 |
|
selckin
| unless you know what you're doing (and even then) | 19:15 |
|
schultza
| im not planning on sending the data back up the ranks... but keeping company devopments inside | 19:15 |
|
| be back... | 19:16 |
|
selckin
| then just init a bare repo ont he server, add it as a remote in the git svn repo and push it up | 19:16 |
|
cmullican
| I'm sure this is simple, but I'm relatively new to git. I accidentally made some changes on a project branch instead on on the main branch, The project is not ready for prime time. I need to get the last three commits from that branch onto master, but not any of the previous commits. | 19:16 |
|
selckin
| git checkout main (master?); git cherry-pick sha-1 sha-2 sha-3 | 19:17 |
| ← rehat left | 19:17 |
|
selckin
| go back to branch, and remove the commits (git reset --hard sha-before-the-3) (warning will remove all uncommited changes from workdir) | 19:18 |
| ← theCole left | 19:19 |
| ← etcetera left | 19:19 |
| ← palm_vue left | 19:20 |
| ← bizhanMona left | 19:20 |
| → eicto joined | 19:20 |
|
imachuchu
| take the best of both worlds, create a new branch off of master, cherry-pick the commits you want to it, then merge it into master. You still have your old branch and you can muck around with the commits in your new merge branch | 19:20 |
| ← Wooga left | 19:20 |
|
selckin
| sounds harder for someone new to git | 19:21 |
| ← goshawk left | 19:21 |
| → bizhanMona joined | 19:21 |
| → palm_vue joined | 19:21 |
| → nielsbusch joined | 19:21 |
| ← stkrzysiak left | 19:21 |
| → nadavoid joined | 19:22 |
| ← nadavoid left | 19:22 |
| ← tqmz___ left | 19:23 |
|
schultza
| doesnt git push upload back to the server rather than download? | 19:23 |
|
selckin
| yes, | 19:24 |
| → jason237 joined | 19:24 |
|
schultza
| why would i push a bare init up to a remote server? (it has nothing) | 19:24 |
| → na3r joined | 19:25 |
| ← shavus left | 19:25 |
| ← hyperair left | 19:26 |
|
selckin
| how did you make the repo on the server | 19:26 |
| → goshawk joined | 19:26 |
| → moltar_net joined | 19:27 |
| → hyperair joined | 19:28 |
| ← p3rror left | 19:28 |
| ← camdenx left | 19:28 |
|
moltar_net
| Hi! I want to push changes to the origin, and someone has previously already commited to the branch on the origin. When I do "git pull" to sync, it creates a merge commit message. I don't think this is right, is it? Should I be doing rebase instead? When I tried rebase, it tried to rebase everything from a long time ago for some reason. Maybe I have some weird deviation from the origin or something? What is the appropriate course of action here? Thanks! | 19:29 |
|
schultza
| git --bare init ; git remote add origin git:[apache]/ofbiz.git ; git fetch (where apache is the location for apache's git server for ofbiz.git) | 19:29 |
| → beneggett joined | 19:30 |
|
schultza
| do i need to restart this whole thing over again? | 19:30 |
| ← fusion27 left | 19:30 |
|
selckin
| schultza: probably need like: git symbolic-ref HEAD refs/heads/trunk | 19:30 |
| → _huoxito joined | 19:31 |
| → etcetera joined | 19:31 |
|
schultza
| that's better | 19:31 |
| ← LeMike left | 19:31 |
| → anothervenue joined | 19:31 |
|
cbreak
| moltar_net: if you can not fast-forward push, then you have to make your local history fast-forwardable | 19:31 |
|
| either by merging or by rebasing | 19:31 |
|
| both will work, in different ways | 19:32 |
|
schultza
| nope ..still getting an error | 19:32 |
|
selckin
| moltar_net: what rebase command did you try for that? does git pull --rebase do want you want? | 19:32 |
|
moltar_net
| hmm... i did "git rebase origin" | 19:32 |
|
| not "git pull --rebase" | 19:32 |
|
| I'll try "git pull --rebase" next time. | 19:32 |
|
| thanks! | 19:32 |
|
cmullican
| Huh? https://gist.github.com/1dc0bbc5efc76f283a38 | 19:32 |
|
cbreak
| origin is bad | 19:33 |
| ← tatsuya_o left | 19:33 |
|
selckin
| cmullican: you're probably in a conflict and need to resolve it | 19:33 |
|
cbreak
| don't use remotes as branches or you'll mess up your understanding | 19:33 |
| ← bradrice left | 19:33 |
|
cbreak
| since I bet you don't know which branch origin actually refers to | 19:33 |
|
cmullican
| selckin: HOW? I thought I already had! | 19:33 |
| ← manolo left | 19:35 |
|
selckin
| cmullican: what does just git status say? if you resolved the conflict you may still need to like 'git commit' to tell git you resolved it, or like rebase --continue or merge --continue, but i think this was from a cherry pick? just commit should work | 19:35 |
| ← jkremser left | 19:35 |
|
cbreak
| no | 19:35 |
|
| to tell git that you resolved a conflict, git add is sufficient | 19:35 |
| ← dc5ala_ left | 19:35 |
|
cbreak
| commit is only needed if you want to conclude a merge that stopped due to conflict | 19:35 |
| ← urbanmonk left | 19:36 |
|
selckin
| or rebase that stopped, ro cherry pick that stopped | 19:36 |
|
cmullican
| selckin: git status is in the gist | 19:36 |
|
selckin
| cmullican: without the path | 19:36 |
| ← alberto56 left | 19:36 |
|
cmullican
| I already committed, which is why I'm confused. | 19:36 |
| → urbanmonk joined | 19:36 |
| → millerti joined | 19:36 |
|
selckin
| dunno, hard to say without knwonig what exactly you did before | 19:36 |
|
millerti
| This should be a simple question, but I'm coming up dry on Google. If I "git commit -a", I get a list of files that are going to be committed. How can I just get that list printed to the console? | 19:37 |
|
selckin
| millerti: git status | 19:37 |
|
millerti
| Thanks! | 19:37 |
|
| selckin: Actually lists a ton of untracked files. How can I restrict it to tracked files? | 19:38 |
|
FauxFaux
| You probably don't actually want to do that. Ignore the untracked files? | 19:38 |
|
selckin
| millerti: -u=no, or gitingore them | 19:38 |
|
millerti
| Well, I'll work on git ignore later. And thanks for the -u=no | 19:39 |
|
| Apparently, -uno also works. | 19:39 |
|
selckin
| can do git add -u; to stage all changes to already tracked files, then just commit that | 19:39 |
| ← AdrienBrault left | 19:40 |
| → patrick85 joined | 19:40 |
| → imrobert joined | 19:40 |
| ← imrobert left | 19:40 |
| → imrobert joined | 19:40 |
|
millerti
| selckin: I have some tracked files that I don't want to commit right now. | 19:41 |
|
selckin
| its just a really nice timesaver (and way nicer then -a) | 19:41 |
|
| so just stage those files | 19:42 |
|
millerti
| I'm not sure I understand. I'll look this up. | 19:42 |
| → branduren joined | 19:42 |
| ← raykyri left | 19:42 |
| → martinjlowm joined | 19:42 |
|
imachuchu
| millerti: git uses an opt-in system, just "git add" the files you want, then "git commit" to commit just them | 19:43 |
|
millerti
| Ah, I see. I'll have to remember thiat. | 19:43 |
|
selckin
| git add file-i-want-to-commit, check git status, it'll be at the top in green, if you then do commit it'll only commit the staged files | 19:43 |
|
FauxFaux
| Or maintain your ignore lists properly and use git add -A most of the time. | 19:43 |
|
millerti
| Ah, I see. I'll have to remember that. And yes, I was "git add"ing some files individually. | 19:43 |
|
imachuchu
| millerti: and git -p can add just sections of some files (so that you don't have to commit everything in the file) | 19:43 |
| → fayimora joined | 19:44 |
|
millerti
| My problem is that I was stupid and added some binaries to the repo. It's nice for when I want to make a release, but for the rest of the time, they're baggage, and the repo is getting bloated. | 19:44 |
|
selckin
| yeah, never a good idea | 19:44 |
|
imachuchu
| millerti: ewww | 19:44 |
|
selckin
| why don't these apparemnt listings have the address ¬|@¼ŧ^¬|#¼ | 19:45 |
|
schultza
| working with java projects.. you might want to add a "*/build/*" in your .gitignore... you may have several directories with a build subdir | 19:45 |
|
selckin
| schultza: blasphemy /target/ | 19:45 |
| → steffo joined | 19:45 |
|
schultza
| really? | 19:45 |
|
selckin
| mvn > ant :( | 19:45 |
|
schultza
| want all *.o files? | 19:45 |
|
selckin
| holy wars | 19:45 |
|
schultza
| ok ok... whats the better way to handle those bloated files? | 19:46 |
|
selckin
| i making a bad joke, ignore it | 19:47 |
| → raykyri joined | 19:47 |
|
thiago
| don't add *.o to the repository | 19:47 |
| ← enmand left | 19:47 |
| ← mklappstuhl left | 19:47 |
|
schultza
| thats why they are in the .gitignore right? | 19:47 |
|
_ikke_
| yes | 19:48 |
| ← iamjarvo left | 19:48 |
| ← raykyri left | 19:50 |
| → enmand joined | 19:50 |
| → linoj joined | 19:53 |
| ← avpx left | 19:53 |
|
linoj
| hiya, looking for help how to change the color of "! [rejected] master -> master (non-fast-forward)" when i do a git push origin master. I have some console coloring but that is in white and i frequently don't notice that the push failed. | 19:54 |
| → tatsuya_o joined | 19:55 |
|
_ikke_
| linoj: afaik, that's not supported by default | 19:55 |
|
selckin
| the output is like 5 lines longer then normal | 19:55 |
|
_ikke_
| maybe you can make your terminal color stderr different or something | 19:56 |
|
linoj
| hmm | 19:56 |
| ← mechanyancat left | 19:56 |
| ← s0ber left | 19:56 |
|
selckin
| alias mypush="git push 2>&1 | grep -15 --color rejected" super duper lame | 19:57 |
| → s0ber joined | 19:57 |
| → allan_hi_ joined | 19:57 |
| ← Freeaqingme left | 19:58 |
| ← hobodave left | 19:58 |
| ← jonmasters left | 19:58 |
| ← mermeladas left | 19:58 |
| ← Schwern left | 19:58 |
| ← olaf_ left | 19:58 |
| ← daniel-s__ left | 19:58 |
| ← sente left | 19:58 |
| ← qwertz_ left | 19:58 |
| ← ku left | 19:58 |
| → olaf_ joined | 19:58 |
| → sente joined | 19:58 |
| fisted_ → fisted | 19:58 |
| → qwertz_ joined | 19:59 |
| → robonyankitty joined | 19:59 |
| → Guest72152 joined | 19:59 |
|
selckin
| git config --global alias.mypush '!git push || echo "$(tput setaf 1)I FAILED YOU MY MASTER$(tput sgr0)"' | 19:59 |
|
| git mypush | 19:59 |
| ← netj left | 19:59 |
| → strtok_ joined | 19:59 |
| ← Tabmow left | 19:59 |
| → Schwern joined | 19:59 |
| ← strtok left | 20:00 |
| ← unreal left | 20:00 |
| ← Bucciarati left | 20:00 |
| Guest72152 → Freeaqingme | 20:00 |
| → Tabmow joined | 20:00 |
| → ku joined | 20:00 |
| ← ku left | 20:00 |
| → ku joined | 20:00 |
|
selckin
| add some "${@}" etc, yadada | 20:00 |
| ← strtok_ left | 20:00 |
| ← john_anderson left | 20:00 |
| ← beneggett left | 20:00 |
| → LeMike joined | 20:00 |
| → _daniel-s__ joined | 20:00 |
| ← lae left | 20:00 |
| → strtok joined | 20:00 |
|
strtok
| is there a nice way to keep a repository's history truncated? I want to build something that automatically truncates history at 30 days | 20:01 |
| → unreal joined | 20:01 |
| → pandeiro joined | 20:01 |
|
selckin
| no that goes against the core of git | 20:01 |
|
_ikke_
| strtok: Git is built for keeping all history | 20:01 |
|
selckin
| why do you want this? | 20:01 |
|
_ikke_
| While it's doable, it's not very simple | 20:01 |
| → lae joined | 20:01 |
|
strtok
| i understand that, but if i'm able to remove a single commit and then prune? | 20:01 |
| → beneggett joined | 20:01 |
|
_ikke_
| strtok: The problem is that all new history is dependend on old history | 20:02 |
|
selckin
| its doable, but the repo won't be easy to use, are you trying to make backups? | 20:02 |
| → netj joined | 20:02 |
|
strtok
| selckin: using git for something other than source management | 20:02 |
|
| selckin: no | 20:02 |
|
FauxFaux
| You can use replace/filter branch, git checkout --orphan and filter-branch, but it makes the entire repo unusable. strtok: !annex | 20:02 |
|
gitinfo
| Storing lots of binary files in git causes repo balloon. git-annex and git-media are two solutions to work around this by keeping the blobs out of the repo. http://git-annex.branchable.com/ and https://github.com/schacon/git-media | 20:02 |
|
_ikke_
| !UGFWIINI | 20:02 |
|
gitinfo
| You appear to be Using Git For What It Is Not Intended - https://www.google.com/search?q=UGFWIINI Are you sure git is the right tool for the job? See also !wrong | 20:02 |
|
strtok
| we're playing with using git for replication for something | 20:02 |
|
selckin
| uh oh | 20:02 |
|
| try rsync | 20:02 |
| ← aviraldg left | 20:03 |
|
FauxFaux
| _ikke_: I bet that took longer to type than the whole factoid. ¬_¬ | 20:03 |
| → shawngo_ joined | 20:03 |
|
strtok
| rsync won't work bceause i need to calculate diffs quickly between 2 points in time, which git is good at :) | 20:03 |
|
_ikke_
| FauxFaux: It doesn't help that I'm on a very slow connection right now | 20:03 |
| ← na3r left | 20:03 |
|
_ikke_
| FauxFaux: But I had it right the first time | 20:03 |
| ← _huoxito left | 20:03 |
| → Jippi joined | 20:04 |
| ← moltar_net left | 20:04 |
| ← tommyvyo left | 20:04 |
| ← enmand left | 20:05 |
| ← shawngo left | 20:05 |
| shawngo_ → shawngo | 20:05 |
| → Bucciarati joined | 20:06 |
| → Seo9 joined | 20:06 |
|
_ikke_
| Weird | 20:07 |
|
selckin
| science | 20:07 |
| ← Seo9 left | 20:08 |
|
_ikke_
| I did a git commit --amend -CHEAD, but that caused some files to be removed from git | 20:08 |
| ← Seveas left | 20:08 |
| → jonmasters joined | 20:08 |
| ← anothervenue left | 20:08 |
|
_ikke_
| while that was not staged | 20:08 |
| → adek05 joined | 20:09 |
|
selckin
| shouldn't | 20:09 |
|
_ikke_
| git status showedd the files being new and staged (after the commit), but git reset made them go away :S | 20:09 |
|
| (ie, not modified or something) | 20:10 |
| → Seveas joined | 20:10 |
| → s0ber_ joined | 20:10 |
|
_ikke_
| oh wait, they're in a directory | 20:10 |
|
| weirdness | 20:10 |
|
selckin
| you didn't mention runnning reset | 20:10 |
| → mfonda joined | 20:10 |
| → sirdancealot7 joined | 20:10 |
| ← s0ber left | 20:10 |
|
_ikke_
| No | 20:10 |
| s0ber_ → s0ber | 20:10 |
| → Seo9 joined | 20:11 |
|
selckin
| it won't list files in untracked directory, so if you amended a delete that resulted in no files being tracked in the dir | 20:11 |
|
| or something | 20:11 |
|
_ikke_
| git add <file>; git commit --amend -CHEAD; (files suddenly get deleted from git) | 20:11 |
| ← steffo left | 20:11 |
| → k1t joined | 20:11 |
| → fly9_ joined | 20:11 |
| ← fly9_ left | 20:11 |
| ← fly9 left | 20:12 |
| → fly9_ joined | 20:12 |
|
_ikke_
| Well, another git ammend fixes it | 20:12 |
|
| amend* | 20:12 |
| ← nielsbusch left | 20:12 |
|
k1t
| hey folks, i have several cloned repos in my repo (they are extensions) and now on github it shows green folders next to the folders where the extensions should be: https://github.com/whitmanc/sisbro/tree/master/vendor/extensions i was wondering if anyone could point me in the right direction | 20:12 |
|
| selckin head spins | 20:12 |
|
k1t
| im assuming those green folders are references but id like to just have the files/folders there, rather than references | 20:12 |
|
| milki points k1t to #github | 20:13 |
| ← bwwrd left | 20:13 |
| → enmand joined | 20:13 |
|
selckin
| maybe you want submodules, but probably not | 20:13 |
| → aviraldg joined | 20:14 |
|
mfonda
| i'm tasked with converting from svn to git and my experience with git is somewhat limited--i'm wondering what the "git way" of doing the following is: we have a script that does `svn export /path/to/repo/specific/file-or-folder`, but from what i understand there isn't really an equivalent in git, or at least it's not the correct way to go. any advice on best practices for this situation? | 20:16 |
|
selckin
| what does export do | 20:17 |
| → steffo joined | 20:17 |
|
selckin
| mfonda: man git-archive | 20:18 |
|
gitinfo
| mfonda: the git-archive manpage is available at http://git-scm.com/docs/git-archive.html | 20:18 |
|
_ikke_
| copy all files except the .svn direcotry | 20:18 |
|
| selckin: https://gist.github.com/bf6033b82ac6241c9a0f | 20:18 |
|
selckin
| _ikke_: that looks strange | 20:19 |
|
adek05
| I wanted to ask you guys a few questions about git diff. First of all I have file with lines like {...} {..} ... {...} (all the same number of mathchin parenthesis}, now I would like to generate HTML diffs from it taking few interesting bits of content of those parenthesis. I found git diff --word-diff option, which seems reasonable for that purpose and I would most likely use it, but the new lines may appear, can I somehow force git diff to show only word chang | 20:19 |
| ← airborn left | 20:19 |
|
adek05
| And one more question, diff always shows first file then second file line, when some change occured, right? | 20:19 |
| → giallu joined | 20:20 |
| ← chuckharmston left | 20:20 |
| → mikeshultz joined | 20:20 |
| → simesy_work joined | 20:20 |
| ← cn28h left | 20:20 |
|
mikeshultz
| So using git flow, why would it prevent me from having multiple hotfix branches? What if a high priority bug comes through that trumps whatever I'm currently working on? | 20:21 |
| ← Seo9 left | 20:21 |
| ← aviraldg left | 20:21 |
| → airborn joined | 20:21 |
|
selckin
| see no reason it should prevent it | 20:22 |
|
_ikke_
| mikeshultz: git flow is a convention | 20:22 |
| ← erichynds left | 20:22 |
|
mikeshultz
| _ikke_: Fair enough. | 20:22 |
|
selckin
| local branches are free, can like stash your current work, or make some tmp brach to store it, or create a new branch for the new stuff | 20:22 |
| ← v0n left | 20:23 |
|
mikeshultz
| I'm more curious about the reason they chose to do so. Seems strange to me. | 20:23 |
|
selckin
| ocd | 20:24 |
|
mikeshultz
| heh | 20:24 |
|
_ikke_
| mikeshultz: I don't really get the problem, could you elaborate a bit about what you mean? | 20:24 |
| ← enmand left | 20:25 |
|
mikeshultz
| _ikke_: I could give you shell output to tell the story. | 20:26 |
|
mfonda
| selckin: to reword by question--my current procedure is: git clone repo.git; cp repo/some-file some-file; rm -rf repo; -- i feel like i'm fighting againt git in doing this, and wondering what the "git way" is for just getting one specific file/folder from a repo is, or if i should be taking a different approach? | 20:26 |
| ← acidjazz left | 20:26 |
| ← pandeiro left | 20:26 |
|
selckin
| mfonda: you already have the repo locally? | 20:26 |
|
mfonda
| selckin: it will be remote | 20:27 |
| ← marthinal left | 20:27 |
|
selckin
| mfonda: don't think you can get any files without cloning then, not sure, why don't you keep a local clone around? | 20:27 |
| → tubbo joined | 20:28 |
|
mikeshultz
| _ikke_: http://pastebin.com/QwY0tr99 | 20:28 |
|
tubbo
| i believe i have written the longest commit message | 20:29 |
|
| it is 176 lines | 20:29 |
|
_ikke_
| woa | 20:29 |
|
selckin
| mikeshultz: ask git flow people? maybe they have a mailing list | 20:29 |
|
_ikke_
| selckin: git flow is created by one person | 20:30 |
|
| and it's not really a project | 20:30 |
|
| selckin: It's mostly based on a blog post | 20:30 |
|
selckin
| a comment on his uber blog then | 20:30 |
|
| still doubt many ppl use it | 20:30 |
| ← clifton left | 20:30 |
| → GNUtoo joined | 20:30 |
|
_ikke_
| mikeshultz: Oh, you're talking about the git plugin | 20:31 |
|
tubbo
| yeah there's a plugin that helps you along | 20:31 |
| → acidjazz joined | 20:31 |
|
_ikke_
| selckin: Well, mostly they use some variant of git flow | 20:31 |
|
selckin
| helps or makes it even more complicated | 20:31 |
| → mklappstuhl joined | 20:31 |
|
_ikke_
| mikeshultz: I think you should just pick the things from it that fit your project | 20:31 |
| → kaen joined | 20:32 |
|
mikeshultz
| Not sure I get to make that call, but I guess some things just have to be done without it. | 20:32 |
|
_ikke_
| fit flow is a model, it's not to be copied exactly, because it doesn't fit every project | 20:32 |
| → enmand joined | 20:32 |
|
_ikke_
| mikeshultz: If you need a second hotfix branch, just create it | 20:33 |
| → tommyvyo_ joined | 20:33 |
|
GNUtoo
| hmmm, it's still blocked on 12 steps: http://pastie.org/private/ruozignklpw2uqitpjhf3g | 20:33 |
|
| does somebody knows why? | 20:34 |
|
selckin
| is there a question? | 20:35 |
| → TeckniX joined | 20:35 |
| → aviraldg joined | 20:35 |
| → paissad joined | 20:36 |
| ← skyf left | 20:37 |
| → lacrymology joined | 20:37 |
|
GNUtoo
| yes I wonder if someone knows the cause of why it's blocked on 12 steps | 20:37 |
|
| because some people told me it's normal | 20:38 |
|
| but I'm not sure | 20:38 |
|
| I'm bisecting since too long | 20:38 |
| ← pranjal710 left | 20:38 |
|
_ikke_
| GNUtoo: Are there branches in between? | 20:38 |
|
GNUtoo
| it's the linux kernel.... | 20:39 |
|
| master/origin branch between v2.6.39 and v3.5 | 20:39 |
| ← kaen left | 20:39 |
|
GNUtoo
| so there are merge branches | 20:39 |
|
| I guess | 20:39 |
|
| I don't know the vocabulary well.... | 20:39 |
|
_ikke_
| GNUtoo: Merges confuse git bisect a bit | 20:39 |
|
GNUtoo
| ah ok | 20:39 |
|
_inte_
| merges don't really confuse git-bisect | 20:40 |
|
paissad
| hello guys, i would like to know the real interest of the -bare option of "git init" ... is it "only" useful when we want that related repository to be the "central" repo where everyone makes the pull and push ? | 20:40 |
|
| thanks in advance | 20:40 |
|
_inte_
| It might confuse *you* because its jumps are too logical for you to handle ;) | 20:40 |
| → cn28h joined | 20:40 |
| → pandeiro joined | 20:40 |
|
SaCu
| paissad, it also helps with backups, mirrors or if you want local proxy repositories | 20:40 |
|
_ikke_
| paissad: If you want to push to a branch, you want that branch to be bare | 20:40 |
|
| pasky: !bare | 20:40 |
|
gitinfo
| pasky: 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/ | 20:40 |
|
_ikke_
| paissad: * | 20:41 |
|
paissad
| ok | 20:41 |
|
GNUtoo
| basically that behaviour(keeping the same number of steps) seem to be introduced after the first git bisect skip(not in the pastebin, from yesterday) | 20:42 |
| ← chrisf|walrus left | 20:43 |
| ← sungnyc left | 20:44 |
| ← jsoa left | 20:44 |
| ← beneggett left | 20:44 |
|
GNUtoo
| maybe I should to it manually? | 20:45 |
|
| like for instance git checkout commit | 20:46 |
|
| then git bisect good|bad|skip | 20:46 |
| ← Kyzz left | 20:47 |
| → Kyzz joined | 20:47 |
| ← pandeiro left | 20:48 |
|
GNUtoo
| I'll do that | 20:48 |
| ← _iron left | 20:49 |
| ← mklappstuhl left | 20:50 |
| → sungnyc joined | 20:50 |
| → pantsman joined | 20:50 |
| ← pantsman left | 20:50 |
| → pantsman joined | 20:50 |
| → camdenx joined | 20:51 |
| ← jperry2_ left | 20:51 |
| ← enmand left | 20:52 |
| → Caritade joined | 20:52 |
| ← zenchaos left | 20:53 |
| → ameoba__ joined | 20:53 |
| ← artnez left | 20:54 |
| → jol1naras joined | 20:55 |
| → kaen joined | 20:55 |
| ← Bass10 left | 20:55 |
| ← freeed left | 20:56 |
| → michas joined | 20:57 |
| → raykyri joined | 20:57 |
| ← ameoba left | 20:57 |
|
michas
| hi, when showing patches/diffs -w ignores all whitespace. is there a way to ignore line breaks, too? | 20:58 |
| → dfr|moscow joined | 20:59 |
| → lavaman joined | 21:00 |
| ← ameoba__ left | 21:00 |
| → theCole joined | 21:00 |
| → AdrienBrault joined | 21:01 |
| ← freimatz left | 21:02 |
| ← kaen left | 21:03 |
| ← tommyvyo_ left | 21:03 |
| ← Jay_Levitt left | 21:04 |
| ← berserkr left | 21:05 |
| → cagedwisdom joined | 21:05 |
| ← tinti left | 21:05 |
| → john_anderson joined | 21:06 |
| → rehat joined | 21:06 |
| ← lacrymology left | 21:06 |
| → alanroemen joined | 21:07 |
| → shruggar joined | 21:07 |
| gitinfo set mode: +v | 21:07 |
| ← Caritade left | 21:08 |
| → teweWORK joined | 21:08 |
| ← dfr|moscow left | 21:08 |
| → mtytel joined | 21:08 |
| ← psoo left | 21:09 |
| ← alanroemen left | 21:10 |
| → alanroemen joined | 21:11 |
| → psoo joined | 21:11 |
| → kcj joined | 21:12 |
| ← spyro left | 21:12 |
| ← phishy left | 21:12 |
| → ameoba__ joined | 21:12 |
| → spyro joined | 21:13 |
| → skorgon_ joined | 21:13 |
| ← tplaner_ left | 21:13 |
|
alanroemen
| if I have a .gitmodules file already defined from another similar repo, is it possible to initialize them from the data in that file? | 21:13 |
| → shavus joined | 21:14 |
|
_ikke_
| alanroemen: afaik not | 21:14 |
| ← hoschi left | 21:14 |
| → j416 joined | 21:15 |
|
alanroemen
| _ikke_: bummer, that's what I thought but wanted to ask. thanks1 | 21:15 |
| ← olaf_ left | 21:16 |
| → mcluskydodallas joined | 21:16 |
| ← etcetera left | 21:16 |
| ← gtrak left | 21:17 |
| ← dsantiago left | 21:17 |
| ← paissad left | 21:18 |
| → Bass10 joined | 21:21 |
| → enmand joined | 21:22 |
| ← dzonder left | 21:24 |
| → alberto56 joined | 21:24 |
| ← hellopat left | 21:25 |
| ← jjasinski left | 21:27 |
| → artnez joined | 21:28 |
| ← glennpratt left | 21:29 |
| ← AaronMT left | 21:29 |
| → madewokherd joined | 21:29 |
| → glennpratt joined | 21:30 |
| → AaronMT joined | 21:31 |
| ← martinjlowm left | 21:34 |
| ← d0k left | 21:34 |
| → Wooga joined | 21:34 |
| ← adek05 left | 21:35 |
| ← lonewulf` left | 21:35 |
| ← macabre left | 21:35 |
| → dfr|moscow joined | 21:35 |
| ← blacktulip left | 21:36 |
|
GNUtoo
| I think I mistaken a skip for a bad | 21:37 |
|
| I said bad instead of skip.... | 21:37 |
| ← theCole left | 21:37 |
| → lonewulf` joined | 21:37 |
|
GNUtoo
| so I'll restart with tested good and bad from last bisect.... | 21:37 |
| ← j416 left | 21:38 |
| → jjasinski joined | 21:40 |
| ← aselder left | 21:41 |
| ← BD- left | 21:41 |
| → edude03 joined | 21:42 |
| → yoklov joined | 21:42 |
| ← linoj left | 21:44 |
| ← drizzd left | 21:44 |
| ← jol1naras left | 21:45 |
| ← elux left | 21:46 |
| → Shagane joined | 21:47 |
| ← Shagane left | 21:47 |
| ← nwest left | 21:48 |
| ← Xizor left | 21:49 |
| → w09x joined | 21:50 |
| → tty011 joined | 21:51 |
| ← cannonball left | 21:52 |
| gitinfo set mode: +v | 21:52 |
|
tty011
| anyone know how i can add a ssh pub key via the gl-auth-command? | 21:52 |
| → hobodave joined | 21:53 |
| → cannonball joined | 21:53 |
| ← EricKamsky_ left | 21:54 |
|
schultza
| i have have created a bare repos, added remoted to outside repos and fetched it.. how do i get it serving up the repos to the other local computers (one download the the entire company) and in-house checkouts from there | 21:54 |
| ← bigkm left | 21:55 |
| → osmosis joined | 21:56 |
| ← nickpresta left | 21:57 |
| ← urbanmonk left | 21:57 |
| → bigkm joined | 21:57 |
| ← dfr|moscow left | 21:57 |
| ← fly9_ left | 21:58 |
| ← kermit left | 21:59 |
|
schultza
| how do i set up git to auto track all remotes/origin branches? | 22:00 |
| ← eletuchy left | 22:01 |
| ← michas left | 22:01 |
| ← ehsan left | 22:03 |
| → jeffisabelle joined | 22:03 |
| → Textmode joined | 22:03 |
| ← shruggar left | 22:04 |
| → Milossh joined | 22:04 |
| ← intransit left | 22:04 |
| ← Ryback_ left | 22:06 |
| → Dreamer3 joined | 22:06 |
| ← TeckniX left | 22:06 |
| ← AaronMT left | 22:07 |
| → davidjdagino_ joined | 22:09 |
| ← axl_ left | 22:11 |
| ← dv310p3r left | 22:11 |
| ← CannedCorn left | 22:11 |
| ← psoo left | 22:12 |
| ← davidjdagino left | 22:12 |
| davidjdagino_ → davidjdagino | 22:12 |
| ← john2496 left | 22:12 |
| ← kenperkins left | 22:12 |
| → macIvy joined | 22:13 |
| → kenperkins joined | 22:13 |
| → Anxi80 joined | 22:13 |
|
imachuchu
| schultza: "git clone --mirror <sourceServer>"? | 22:14 |
| → TeckniX joined | 22:15 |
| ← Speed left | 22:15 |
| → toofar joined | 22:15 |
| ← raykyri left | 22:16 |
| → zastaph joined | 22:18 |
| ← Facetious left | 22:19 |
| → toddr joined | 22:20 |
|
toddr
| I've noticed that the git client is significantly slower making remote connections on CentOS 6 vs CentOS 5. I think the reason is that git is trying IPv6 first before trying IPv4. | 22:22 |
| ← Vert left | 22:22 |
|
toddr
| Does anyone know if there's a way to disable this? | 22:22 |
| ← tty011 left | 22:23 |
| ← GNUtoo left | 22:23 |
| → tinti joined | 22:24 |
| → tweedledumber joined | 22:25 |
| ← skorgon_ left | 22:25 |
| → gtrak joined | 22:26 |
| → AaronMT joined | 22:26 |
| → caseymcg joined | 22:27 |
| ← giallu left | 22:28 |
| ← tatsuya_o left | 22:28 |
| → xeon123 joined | 22:28 |
| ← shavus left | 22:29 |
|
xeon123
| I've a local repository, and I want to put a copy of my repository in a backup disk without losing the history. so, sometimes I want to push the local repository to the backup. How do i do that? | 22:30 |
| → hwrd|work joined | 22:30 |
| → kermit joined | 22:31 |
| ← thiago left | 22:32 |
| → Speed joined | 22:33 |
| ← Speed left | 22:33 |
| → Speed joined | 22:33 |
| ← pppaul left | 22:33 |
| → thiago_ joined | 22:33 |
|
imachuchu
| xeon123: on remote "git clone --mirror <workRepo>", then "git push --all --tags", I think | 22:34 |
| → mishok13 joined | 22:34 |
|
imachuchu
| xeon123: sorry "git push --all --tags <remote>" | 22:34 |
| ← pantsman left | 22:34 |
| ← lekefly_ left | 22:35 |
| → LekeFly joined | 22:35 |
| ← rehat left | 22:36 |
| → ph^ joined | 22:36 |
| ← glennpratt left | 22:37 |
| ← sq-one left | 22:39 |
| ← steffo left | 22:40 |
|
xeon123
| imachuchu: can you give me an example of <remote>? My repository locally calls test. After I did clone, it created test.git repository. | 22:41 |
|
| what I put in git push? | 22:41 |
|
| is it test or /backupdrive/repo/test.git? | 22:42 |
| ← fireh left | 22:43 |
| ← nutron left | 22:43 |
|
imachuchu
| xeon123: well we can think of two repos, local (the one we are working on) and remote (the one we want to push/pull from). It sounds like in your situation that "test.git" is your remote, so it would be push "git push --all --tags test.git" (assuming that it knows of test.git as a remote) | 22:44 |
|
| xeon123: if not, man git-remote | 22:44 |
|
gitinfo
| xeon123: the git-remote manpage is available at http://git-scm.com/docs/git-remote.html | 22:44 |
| → bubbles10101 joined | 22:45 |
| ← Samos123 left | 22:46 |
|
frogonwheels
| xeon123: did you work it out? | 22:46 |
|
xeon123
| frogonwheels: yes. | 22:47 |
| ← chrisgeorge left | 22:47 |
|
frogonwheels
| xeon123: you can also do a 'fetch' from the mirror clone to get the latest | 22:48 |
|
| xeon123: (you might want to follow up with a git gc ocassionally as well) | 22:48 |
| → LucasTizma joined | 22:49 |
|
xeon123
| frogonwheels: what is git gc? | 22:49 |
|
frogonwheels
| xeon123: (which reminds me. I need to 'garbage collect' my own backup clones) | 22:49 |
| ← bubbles10101 left | 22:50 |
| ← edude03 left | 22:50 |
|
frogonwheels
| xeon123: it gets rid of stale objects and creates pack-files. should be done every now and again. | 22:50 |
| → Berglund joined | 22:52 |
| SeoZ-work[AWAY] → SeoZ | 22:52 |
| ← patrick85 left | 22:53 |
| → jjang joined | 22:53 |
|
xeon123
| I did "git fetch /backupdrive/repo/test.git" in another dir, and I've got "Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)." | 22:53 |
|
| what iswrong? | 22:54 |
| ← Bass10 left | 22:54 |
| → EricKamsky joined | 22:55 |
| → rehat joined | 22:56 |
| gitinfo set mode: +v | 22:56 |
|
imachuchu
| xeon123: as a silly sanity check, you didn't copy this repo from your hard drive to the backup drive did you? (like through "cp")? | 22:56 |
|
xeon123
| imachuchu: no. I did it with git clone and git push | 22:57 |
| ← hobodave left | 22:58 |
|
SaCu
| xeon123, "cd /backupdrive/repo && git clone --mirror /path/to/repo" for setup and "cd /backupdrive/repo && git pull" for update - ought to be enough to set it up | 22:58 |
| ← schultza left | 22:58 |
| ← jjang left | 22:58 |
| → jjang joined | 22:59 |
|
xeon123
| that's what I did, and it's ok. | 23:00 |
|
| imachuchu: now, I'm in another dir: ~/temp/ and I want to fetch the test.git | 23:00 |
| ← SirCmpwn left | 23:00 |
|
imachuchu
| xeon123: you want to create a new repo in ~/temp, or just pull the tip of backups master? | 23:00 |
| → Samos123 joined | 23:01 |
| → CannedCorn joined | 23:01 |
|
xeon123
| just pull from the backups master | 23:01 |
| → cybersphinx joined | 23:03 |
| → axl_ joined | 23:03 |
|
imachuchu
| xeon123: "git pull /backupdrive/repo master", !pull4 but it's ok if it's just a test, or you really only want it once, else properly set up a remote | 23:04 |
|
gitinfo
| xeon123: [!fetchfour] Never use the four-word version of git-fetch or git-pull (e.g. git fetch remote refspec). It always ends in tears. Yes, if you understand the implications of FETCH_HEAD it can technically be done, but really it is easier to just fetch the whole remote (or perhaps edit the fetchspec if you never want other bits). | 23:04 |
|
EugeneKay
| !last | 23:04 |
|
gitinfo
| git-last is a script which will give you a GitHub-like view of the current directory(showing the last commiter of each dir/file): http://goo.gl/zb6xi | 23:04 |
|
imachuchu
| xeon123: but you will still need to create a repo at temp. or just "git clone /backup/repo" | 23:05 |
| ← CannedCorn left | 23:05 |
| → macabre joined | 23:05 |
| ← leeN left | 23:06 |
|
imachuchu
| EugeneKay: so kind of a blame but on a folder level instead of a file? | 23:06 |
| ← the_cybersphinx left | 23:06 |
| ← resmo__ left | 23:06 |
|
EugeneKay
| imachuchu - sort of. I just needed the link. :-p | 23:06 |
|
| It has it's issues. | 23:07 |
| ← macIvy left | 23:07 |
|
imachuchu
| !privmsg but 1. I don't think anyone here minds, and 2. I think you maintain the bot so there really isn't any reason to tell *you* this ;) | 23:07 |
|
gitinfo
| You can get gitinfo keyword expansion (e.g. !doc or this one) sent directly to you by sending a private message to me: /msg gitinfo !doc. This avoids spamming the channel. Also see See http://jk.gs/git/bot/trigger.php | 23:07 |
|
EugeneKay
| jast's bot. I'm just the chief abuser. | 23:08 |
|
xeon123
| imachuchu: it was missing the git clone. now it works. It's preferable to use git fetch or pull? | 23:09 |
| ← seungers left | 23:10 |
|
imachuchu
| xeon123: not preferable, just different. pull = fetch + merge | 23:11 |
| ← john_anderson left | 23:12 |
| ← Samos123 left | 23:13 |
| ← zackiv31 left | 23:13 |
| Marcux83 → Marcux83|away | 23:15 |
|
xeon123
| how do I merge conflicts in git? | 23:15 |
| ← AdrienBrault left | 23:15 |
|
imachuchu
| xeon123: carefully? !eekaconflict | 23:16 |
|
gitinfo
| xeon123: Merge conflicts are a natural part of collaboration. When facing one, *stay calm*. Read "How to resolve conflicts" in man git-merge. Carefully go through the conflicts. Picking one side verbatim is not always the right choice! | 23:16 |
| → nutron joined | 23:16 |
| ← thelazydeveloper left | 23:16 |
| ← lonewulf` left | 23:16 |
|
xeon123
| is there a tool to do it, or it must be in text mode? | 23:17 |
|
imachuchu
| could we change "stay calm" to "don't panic" (as a reference to Hitchhikers Guide)? | 23:17 |
|
EugeneKay
| Go forit. | 23:17 |
| → raykyri joined | 23:18 |
| → etcetera joined | 23:18 |
| → lonewulf` joined | 23:18 |
| ← Zyrkon left | 23:18 |
|
imachuchu
| xeon123: there are plenty of diff tools (I use vim), heres a list of some: http://www.handlewithlinux.com/Linux-GUI-diff-utilities-a-visual-tour | 23:19 |
|
| EugeneKay: I have no idea how/wouldn't want to mess up anything | 23:19 |
|
EugeneKay
| !bot | 23:19 |
|
gitinfo
| [!gitinfo] I am an IRC bot which responds to certain keywords to provide helpful(?) information to humans. Please see http://jk.gs/git/bot for more information about how to use me. | 23:19 |
| ← devth left | 23:19 |
| → resmo joined | 23:21 |
| ← zastaph left | 23:21 |
| ← Jippi left | 23:22 |
|
imachuchu
| EugeneKay: while I have that page bookmarked (and use it often) it doesn't say how to change anything | 23:22 |
|
| why? !cuz | 23:22 |
|
gitinfo
| [!why] Why? Because screw you, that's why. | 23:22 |
|
EugeneKay
| ianmcorvidae - yes it does ;-) | 23:22 |
| → Disreali joined | 23:23 |
|
imachuchu
| *sigh*, go go grep | 23:23 |
|
EugeneKay
| !fish | 23:23 |
|
gitinfo
| In the long run, it is much better to give pointers to answers than the answers themselves. | 23:23 |
|
EugeneKay
| ;-) | 23:23 |
| ← Chillance left | 23:24 |
|
imachuchu
| ahh, I bookmarked the trigger page, forgot there was the page before it | 23:24 |
| → SirCmpwn joined | 23:24 |
| ← SirCmpwn left | 23:24 |
| ← alanroemen left | 23:24 |
| ← segher left | 23:26 |
| → SirCmpwn joined | 23:27 |
| → macIvy joined | 23:27 |
| ← AaronMT left | 23:27 |
| ← teweWORK left | 23:27 |
| ← caseymcg left | 23:28 |
| → segher joined | 23:28 |
| → AaronMT joined | 23:28 |
| ← airborn left | 23:29 |
| ← segher left | 23:29 |
| ← gtrak left | 23:30 |
|
imachuchu
| .trigger_edit eekaconflict Merge conflicts are a natural part of collaboration. When facing one, *don't panic*. Read "How to resolve conflicts" in man git-merge. Carefully go through the conflicts. Picking one side verbatim is not always the right choice! | 23:32 |
|
gitinfo
| imachuchu: Okay. | 23:32 |
|
imachuchu
| !conflict | 23:32 |
|
gitinfo
| [!eekaconflict] Merge conflicts are a natural part of collaboration. When facing one, *don't panic*. Read "How to resolve conflicts" in man git-merge. Carefully go through the conflicts. Picking one side verbatim is not always the right choice! | 23:32 |
| → segher joined | 23:32 |
| ← Zenmaker_ left | 23:32 |
| → Zenmaker_ joined | 23:33 |
| ← boombatower left | 23:33 |
| → Samos123 joined | 23:34 |
| → pdtpatrick_ joined | 23:35 |
| ← pdtpatrick left | 23:35 |
| pdtpatrick_ → pdtpatrick | 23:35 |
| ← segher left | 23:36 |
| → segher joined | 23:36 |
| ← macIvy left | 23:38 |
| → tty01 joined | 23:39 |
| ← maestrojed left | 23:39 |
| ← AaronMT left | 23:39 |
| ← nutron left | 23:40 |
| ← tty01 left | 23:43 |
| ← toddr left | 23:45 |
| → david1010 joined | 23:45 |
| ← goshawk left | 23:48 |
| → zdk joined | 23:48 |
| ← LeMike left | 23:53 |
|
infogulch
| is there a way to exclude specific branches when i want to `git push --all` ? | 23:53 |
| → Zenmaker__ joined | 23:55 |
| ← yoklov left | 23:58 |
| ← TeckniX left | 23:58 |
| ← xeon123 left | 23:59 |
| ← Zenmaker_ left | 23:59 |