| 2011-01-28 |
| ← keyvan- left | 00:00 |
| ← TeckniX left | 00:00 |
| ← chrischambers left | 00:02 |
| ← rcpeterson left | 00:03 |
| → tylerl joined | 00:03 |
|
tylerl
| so.. I accidentally committed my changes to "(no branch)" (detached HEAD, I think it's called?). so I switched to master (git checkout master) and tried to merge HEAD, but.. it doesn't have my changes? | 00:04 |
|
| gaa! | 00:04 |
|
| where'd my stuff go? | 00:04 |
|
Vasistha
| tylerl: ah, you can still get it back | 00:05 |
|
tylerl
| Vasistha: please tell! | 00:05 |
|
Vasistha
| Can you scroll back to where you did the commit to no branch? | 00:05 |
|
tylerl
| git scroll? | 00:05 |
| ← Cro_Crx left | 00:05 |
|
Vasistha
| tylerl: no, I mean, in your terminal | 00:05 |
|
tylerl
| oh, ok. | 00:05 |
|
karihre
| doesn't the reflog list the commit? | 00:05 |
|
Vasistha
| that might be an easier way | 00:05 |
|
cbreak
| tylerl: HEAD is where ever you are NOW | 00:06 |
|
| so when you did git checkout master, you changed HEAD | 00:06 |
|
| what you should have done is git checkout -b newbranchname | 00:06 |
|
| what you should now do is git checkout HEAD@{1} | 00:06 |
|
Arrowmaster
| reflog usage is probably going to be required for this one | 00:06 |
|
tylerl
| git checkout HEAD@e7ee2b3 -- like that? | 00:06 |
|
Vasistha
| tylerl: anyway, if you can scroll back and see what the commit number is, you can check it out (or merge it!) from that commit number | 00:07 |
| ← Agos left | 00:07 |
|
cbreak
| tylerl: no | 00:08 |
|
| read what I wrote | 00:08 |
|
| what you wrote looks totally different! | 00:08 |
|
tylerl
| cbreak: ok. I though "1" was a placeholder. OK. I think i see now. | 00:08 |
| ← keex left | 00:08 |
| → chrischambers joined | 00:09 |
| ← eletuchy left | 00:09 |
|
tylerl
| so it looks like my changes are HEAD@{2}, so I can "git checkout master" and then "git merge HEAD@{2}" to pull my changes into master, right? | 00:09 |
| ← Take left | 00:09 |
| → eletuchy joined | 00:10 |
| → panike joined | 00:10 |
|
cbreak
| no | 00:10 |
|
| tylerl: read again what I wrote above | 00:10 |
|
| also, it should be in HEAD@{1} | 00:10 |
|
| git reflog will show you the heads | 00:11 |
|
| the past heads you had | 00:11 |
| ← andrewvos left | 00:11 |
| ← priidu_ left | 00:11 |
| ← priidu left | 00:11 |
| → andrewvos joined | 00:11 |
|
tylerl
| can I merge a specific commmit referencing its sha1? How do I merge the lost commit into my branch? | 00:12 |
| ← bhosie left | 00:12 |
| ← excess^ left | 00:12 |
| ← panike left | 00:12 |
|
ayust
| git merge <sha1> | 00:12 |
|
| if it's a single commit, it might be simpler to just cherry-pick it - git cherry-pick <sha1> | 00:13 |
|
tylerl
| /sigh cherry pick. I need to learn more about git. | 00:14 |
| ← ibolmo left | 00:14 |
| ← noahcampbell left | 00:14 |
|
tylerl
| ayust: hows that different from merging it? | 00:14 |
|
cbreak
| tylerl: totally different | 00:15 |
|
| for one, it's not a merge | 00:15 |
| ← chrischambers left | 00:15 |
|
tylerl
| cbreak: i guess that goes without saying | 00:15 |
|
| otherwise they would have called it "merge" too | 00:16 |
|
ayust
| cherry-pick only grabs the commits you tell it | 00:16 |
|
| rather than grabbing all commits in the chain that aren't already in the current branch | 00:16 |
|
cbreak
| you get a new commit that contains the state of the repo as if the changes of the commit you cherry pick were applies to the branch you cherry pick into | 00:16 |
|
tylerl
| ayust: so you mean only the differences in that particular commit from the commit before it? | 00:17 |
|
lastk
| sou muiteaheau | 00:17 |
|
cbreak
| while a merge creates a commit with your current head and the commit you want to merge as parent | 00:17 |
|
tylerl
| sounds like merge is more what I'm after then. | 00:17 |
|
ayust
| cherry-pick is essentially a fancy way of creating and then applying a patch, from a single commit | 00:17 |
|
cbreak
| that means that a merge will give you ALL commits of that branch in the second line of history | 00:17 |
|
| while cherry picking only gives you a new commit with the changes of one existing commit | 00:17 |
|
| what you want is not a merge | 00:17 |
|
| it's cherry pick | 00:18 |
|
| your problem was that you committed at the wrong point in history | 00:18 |
|
| cherry pick can transfer the changes to a different point | 00:18 |
|
| merging can not | 00:18 |
|
ayust
| if you have one history that's "A -> B -> C", and another that's "A -> D -> E", then cherry-pick E will give you "A -> B -> C -> E" while merge E will give you "A -> [B -> C, D -> E] -> F" | 00:18 |
| ← Rockj left | 00:19 |
|
cbreak
| cherry picking E won't give you E | 00:19 |
|
| it'll give you something similar | 00:19 |
|
ayust
| well | 00:19 |
|
tylerl
| cbreak: ... i WANT a cherry pick? I need to pull about 4 commits, then. | 00:19 |
|
ayust
| the effects of E | 00:19 |
| → SeanLazer joined | 00:19 |
|
ayust
| tylerl - so you committed 4 times on your detached head? | 00:19 |
| ← kipras left | 00:19 |
|
cbreak
| tylerl: every single one you committed headlessly | 00:19 |
|
| pick them from the oldest to the newest | 00:19 |
|
ayust
| in newer versions of git you can actually cherry-pick a range | 00:20 |
| → Rockj joined | 00:20 |
| ← Heartbroken left | 00:20 |
|
tylerl
| what I would like is to take all the changes made in the detached head from the time it was detached and pull them into the main branch. | 00:20 |
|
ayust
| git cherry-pick origdetachedhead..lastcommitondetachedhead | 00:20 |
| ← Ryback_ left | 00:21 |
| ← SirFunk_ left | 00:22 |
| ← SimonP86 left | 00:22 |
|
tylerl
| ayust: as the origin, do I use the last commit that was part of the branch, or the first that was not? | 00:22 |
| ← ISF left | 00:23 |
| ← SeanLazer left | 00:23 |
|
ayust
| so in git, A..B means "everything after but not including A, up to and including B" | 00:24 |
|
| so A should be before you made any commits, and B should be the last commit you made | 00:24 |
|
tylerl
| ayust: ty | 00:24 |
| ← MattDiPasquale left | 00:25 |
| ← Mannequin1 left | 00:26 |
| ← shruggar left | 00:27 |
|
tylerl
| ugh. fail. conflicts. wtf. | 00:27 |
| ← kukks left | 00:28 |
| ← tizzo left | 00:28 |
| ← tvw left | 00:29 |
| ← __name__ left | 00:32 |
| ← Mab879[Away] left | 00:33 |
| → panike joined | 00:33 |
| ← Simkin left | 00:33 |
| ← eean left | 00:33 |
| ← eijk_ left | 00:33 |
| → kpreid joined | 00:34 |
| yaotti → yaotti_aw | 00:34 |
| → SimonP86 joined | 00:39 |
| ← dec left | 00:41 |
| → dec joined | 00:41 |
| → TheBorg[ReGen] joined | 00:41 |
| ← eletuchy left | 00:41 |
| → kukks joined | 00:42 |
| → jhoepken joined | 00:43 |
|
ki__
| I want to check which files were updated on a specific date | 00:43 |
|
| do I use git log for this? | 00:43 |
| ← pdelgallego__ left | 00:43 |
| ← scelis left | 00:43 |
| ← miloshadzic left | 00:43 |
|
ki__
| I am reading git help log and there are sooo many options ... what is most practical to get an idea of which files a developer updated on a specific date? | 00:43 |
|
ayust
| git whatchanged --since <date> --before <date> | 00:44 |
| ← webPragmatist left | 00:45 |
|
ayust
| dates being in YYYY-MM-DD format | 00:45 |
|
ki__
| whoa nice syntax. let me try that | 00:45 |
| ← jhoepken left | 00:46 |
|
ki__
| git whatchanged --since 2011-01-25 --before 2011-01-26 -- like that? | 00:46 |
| ← pdelgallego_ left | 00:46 |
|
ayust
| both --before and --since are non-inclusive | 00:46 |
| → eean joined | 00:46 |
| ← pdelgallego left | 00:46 |
| → SeanLazer joined | 00:46 |
|
ayust
| oh, no, sorry, im wrong | 00:46 |
|
| --since is apparently inclusive | 00:47 |
|
| so yes, that should work if you want the 25th's changed files | 00:47 |
| → keyvan- joined | 00:48 |
| ← Yuuhi left | 00:49 |
|
ki__
| it doesn't like that syntax | 00:49 |
|
ayust
| what error does it give you? | 00:49 |
| → t0rc joined | 00:49 |
| ← spaceonline left | 00:51 |
| ← SeanLazer left | 00:53 |
|
ayust
| ki__: ^ | 00:53 |
| → Noldorin_ joined | 00:53 |
| ← theoros left | 00:53 |
| → theoros joined | 00:54 |
| ← eean left | 00:54 |
| → eean joined | 00:54 |
| ← bkosborne left | 00:55 |
| → xiangfu joined | 00:55 |
| ← Noldorin left | 00:56 |
| ← dfr|mac left | 00:56 |
| → miloshadzic joined | 00:57 |
| → Slix` joined | 00:58 |
| → bcardarella joined | 00:58 |
| ← miloshadzic left | 00:58 |
| ← Vasistha left | 00:58 |
| ← gretch left | 00:58 |
| → c00kiemon5ter joined | 00:58 |
| → miloshadzic joined | 00:59 |
| → _psychic_ joined | 00:59 |
| ← sebersole left | 00:59 |
| ← TheBorg[ReGen] left | 01:00 |
| ← _psychic_ left | 01:01 |
| ← dpino left | 01:02 |
| ← gozoner left | 01:02 |
| → gozoner joined | 01:03 |
| zorzar → zorzar_away | 01:04 |
| → alnewkirk joined | 01:04 |
|
ki__
| ayust: fatal: ambiguous argument '2011-01-25': unknown revision or path not in the working tree. | 01:05 |
|
ayust
| try --since=2011-01-15 then | 01:05 |
|
| (ditto for --before) | 01:05 |
| ← c00kiemon5ter left | 01:05 |
| → TheBorg[ReGen] joined | 01:06 |
| ← deek0146 left | 01:07 |
| → bitslip_ joined | 01:07 |
| ← kenichi left | 01:07 |
| ← tjholowaychuk left | 01:08 |
| ← bitslip left | 01:08 |
| → consolers joined | 01:08 |
| → mase_wk_ joined | 01:08 |
| ← mase_wk left | 01:09 |
|
sako
| hey guys so a developer accidentally git rm a bunch of stuff :/ | 01:09 |
|
| my local repo is fine as i havent pulled in changes yet | 01:09 |
|
| can i force push my stuff through some how? | 01:09 |
|
ayust
| git push --force | 01:09 |
|
| if you want to overwrite the remote | 01:09 |
|
sako
| ayust: thanks again :) | 01:10 |
|
ayust
| (git push --force origin master) | 01:10 |
|
| would overwrite 'master' on origin with your local 'master' | 01:10 |
| → necromancer joined | 01:10 |
|
ayust
| note that if anyone -has- pulled the changes they'll need to reset back to before they pulled | 01:11 |
|
sako
| ayust: one developer has pulled | 01:11 |
| ← SimonP86 left | 01:11 |
|
sako
| so they would need to git reset --hard? | 01:11 |
| → aalex_laptop joined | 01:12 |
| ← artefon left | 01:13 |
|
sitaram
| any ops here? someone called "consolers" pm-d me asking if he can get voice because he can't access the captcha (I have no clue what all that is about!) | 01:13 |
|
Arrowmaster
| i think it has something to do with how people keep getting voice in here and i cant figure out why | 01:15 |
|
| probably some webchat client | 01:15 |
|
bremner
| Arrowmaster: see /topic | 01:15 |
|
Arrowmaster
| ah | 01:16 |
| ChanServ set mode: +v | 01:16 |
|
consolers
| thanks! | 01:16 |
|
bremner
| welcome | 01:17 |
| ChanServ set mode: +v | 01:17 |
| ← _Unode left | 01:17 |
|
Arrowmaster
| it works! | 01:17 |
| ← malfy left | 01:17 |
|
consolers
| is there a git config variable to overcome this: fatal: Refusing to fetch into current branch refs/heads/vendor of non-bare repository | 01:17 |
| → malfy joined | 01:18 |
|
consolers
| I set receive.denycurrentbranch set to warn | 01:18 |
|
sako
| ayust: what would the dev that pushed all the changes have to do? | 01:19 |
|
Eridius
| consolers: that's used for pushes, not fetches | 01:19 |
|
sako
| reset before the merge? | 01:19 |
|
consolers
| yeah, i want the same symmetric behaviour. | 01:20 |
|
| now i have to mv .git , checkout a dummy branch, rest and then fetch, | 01:20 |
|
Eridius
| consolers: there's no config variable for this, but you could fake it by claiming you're in a bare repo... git -c core.bare=true fetch ... | 01:21 |
| → Unode|Work joined | 01:21 |
|
ayust
| sako - also reset, yes | 01:21 |
| ← Anubisss left | 01:21 |
| ← aah left | 01:22 |
|
consolers
| ok i'll try that the next time | 01:22 |
|
Unode|Work
| after doing a git filter-branch shouldn't a git prune ; git repack -ad ; git gc --aggressive remove all unreferenced objects? | 01:22 |
|
| I can't seem to make git lose the 190MB of excess | 01:23 |
|
ayust
| consolers: if you're just trying to grab a certain remote revision and make it your current one, fetch to a different ref and reset to that ref | 01:23 |
|
Eridius
| try adding --expire=now to your prune | 01:23 |
|
Unode|Work
| If I clone the repository however, only 6 MB are cloned | 01:23 |
|
Eridius
| also anything referenced in the reflogs will still be rooted | 01:23 |
|
| so you may need to blow those away too | 01:23 |
| ← alvaro_o left | 01:23 |
|
Unode|Work
| Eridius, git reflog expire changed nothing | 01:23 |
|
SethRobertson
| Unode|Work: RTFM at the end of man git-filter-branch | 01:23 |
|
jast
| Unode|Work: the 'git-filter-branch' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html [automatic message] | 01:23 |
|
SethRobertson
| Unode|Work: specifically, the bits about changing the expire time | 01:24 |
|
tylerl
| How do I revert the HEAD of a branch a prior commit (removing a commit)? | 01:24 |
|
SethRobertson
| tylerl: Have you pushed? | 01:24 |
|
tylerl
| SethRobertson: no | 01:24 |
|
ayust
| tylerl: git reset --hard <older sha> | 01:24 |
|
Eridius
| note, this will blow away uncommitted changes | 01:25 |
|
| git reset --keep HEAD^ may be a bit better | 01:25 |
|
tylerl
| that's the idea | 01:25 |
|
ayust
| or "git reset --hard HEAD~X" (where X is a number of steps backwards you want to go) | 01:25 |
|
| (so "HEAD~2" would be "two steps backwards") | 01:25 |
|
Eridius
| actually I suppose --merge may be slightly nicer | 01:25 |
| ← hyperair left | 01:25 |
|
Unode|Work
| SethRobertson, if you mean git reflog expire --expire=now --all , I've done it several times with no success, same thing for git gc in combination with git prune | 01:26 |
|
Eridius
| ehh, I'm still not 100% sure of the difference between --keep and --merge. That manpage really needs some examples to illustrate it | 01:26 |
|
Unode|Work
| SethRobertson, including --expire-unreachable | 01:27 |
|
SethRobertson
| Unode|Work: Try doing a clone and see if it goes away in the clone. That helps debug the problem | 01:27 |
|
sako
| thanks ayust | 01:27 |
|
Unode|Work
| SethRobertson, it does... that's what puzzles me | 01:27 |
|
Eridius
| SethRobertson: it sure would be nice if `git fsck` had an option to identify how a particular object is rooted | 01:27 |
|
ayust
| Eridius: --keep does not touch files at all if they have local changes | 01:27 |
|
| --merge tries to merge local changes (relative to the current head) into the new head | 01:27 |
|
Eridius
| ayust: from reading --merge it kind of sounds like staged changes will get blown away | 01:28 |
|
SethRobertson
| Unode|Work: When you did a `git prune` and `git gc` did you likewise use the date options? | 01:28 |
|
Unode|Work
| git gc --prune=now yes | 01:28 |
|
ayust
| Eridius: --merge essentially applies "git diff HEAD" from before the reset to the new HEAD | 01:28 |
|
| (but slightly more intelligently) | 01:28 |
|
SethRobertson
| Unode|Work: How about `gc repack -Ad ` | 01:29 |
|
Eridius
| ayust: glad to hear it. Try doing a strict reading of the docs, though. It resets the index, and it talks about what happens if there's a difference between the index and the working tree, but nowhere does it say what happens if the index differs from HEAD (and the "resets the index" bit therefore implies those staged changes are lost) | 01:29 |
|
Unode|Work
| SethRobertson, no change | 01:29 |
|
| SethRobertson, the packed file still has 190MB in excess | 01:29 |
|
ayust
| Eridius: if you git added something, and then reverted the file to the old HEAD (but didn't add the revert), then the index will be blown away | 01:29 |
|
| but in most cases, changes that are staged are also in your working tree | 01:30 |
| ← consolers left | 01:30 |
|
Eridius
| ok | 01:30 |
|
ayust
| in the corner case where a change in the index is not also in your working tree, yes, it would be lost | 01:30 |
| ← smolyn left | 01:30 |
|
Eridius
| what if you git add something, and then have no unstaged changes? In that case the working tree doesn't differ from the index, so it sounds like those changes would be lost | 01:30 |
|
ayust
| no | 01:30 |
|
Eridius
| I'm sure that's not the case, but again, that's what the docuemntation seems to be saying | 01:30 |
|
ayust
| because the index != the current commit | 01:30 |
|
Unode|Work
| SethRobertson, any additional ideas? | 01:31 |
|
Eridius
| ayust: read the documentation on --merge and tell me how I'm reading it wrong | 01:31 |
| → mikepack joined | 01:32 |
| ← sako left | 01:32 |
|
ayust
| actually, you might be right; it may blow away index changes in favor of a file that changed | 01:32 |
|
avar
| You can still recover things that have at one point been in the index, even if you nuke those things | 01:32 |
|
| i.e. git add && git reset --hard | 01:32 |
|
Eridius
| ayust: sounds like something that should be tested | 01:32 |
|
offby1
| if anyone has found a way to use "reviewboard"'s "post-review" script with git, I'd be interesting in talking | 01:32 |
|
| s/interesting/interested/ | 01:32 |
| ← khmarbaise left | 01:33 |
|
SethRobertson
| Unode|Work: Do you have any weird refs? alternative? original? | 01:33 |
|
ayust
| I mostly just tend to not assume that git reset will keep anything uncommitted around when using anything aside from --mixed or --soft :) | 01:33 |
|
Unode|Work
| well now I seem to have broken HEAD | 01:33 |
|
| fatal: bad object HEAD | 01:33 |
|
| after doing git reflog | 01:33 |
|
SethRobertson
| fsck | 01:33 |
|
Eridius
| ayust: yep, if the file changed between HEAD and <commit>, the staged changes will be thrown out | 01:33 |
|
Unode|Work
| notice: HEAD points to an unborn branch (master) | 01:34 |
|
| yay for breaking it | 01:34 |
|
ayust
| did you somehow delete your refs/heads/master ? | 01:34 |
|
| offby1: we use post-review | 01:35 |
|
| w/git | 01:35 |
|
SethRobertson
| Unode|Work: git for-each-ref refs says? | 01:35 |
|
Unode|Work
| I think git reflog rewrote something that it shouldn't | 01:35 |
|
ayust
| git reflog doesn't rewrite anything | 01:35 |
|
Unode|Work
| git reflog expire --expire=now --all --rewrite --updateref actually | 01:35 |
|
ayust
| er | 01:36 |
|
| so you cleared out your reflog | 01:36 |
|
SethRobertson
| Remember that clone we talked about. Do you still have it? | 01:36 |
|
ayust
| and then set master to the top value of the (now empty) reflog | 01:36 |
|
| yep, that could get rid of master :P | 01:36 |
|
Unode|Work
| :P | 01:36 |
|
| SethRobertson, I can make another one from the existing backup | 01:37 |
|
| so the backup is actually a copy of the full project | 01:37 |
|
ayust
| scroll up in your terminal, see what the top item on master used to be, and git branch master <that sha> ? | 01:37 |
|
Unode|Work
| cloning it only gets rid of the full thing if done via the network | 01:37 |
|
| ayust, it reports 00000000000000...00000000 | 01:37 |
| ← tty2 left | 01:38 |
|
ayust
| i meant in your terminal history | 01:38 |
|
| from before you did the reflog expire bit :P | 01:38 |
|
Unode|Work
| oh | 01:38 |
|
ayust
| (alternatively, just do git rev-parse master, inside your backup repo) | 01:38 |
| ← tchan left | 01:38 |
|
Unode|Work
| ayust, that would be to fix the broken master right? | 01:38 |
|
ayust
| yes | 01:38 |
|
| although | 01:38 |
|
| if you rewrote a bunch of stuff via filter-branch or whatnot | 01:39 |
|
| the master in your backup repo might not be what you want to have as your master tip anymore | 01:39 |
| → eletuchy joined | 01:39 |
|
ayust
| in which case, terminal history go | 01:39 |
| → khmarbaise joined | 01:39 |
|
Unode|Work
| well now the master issue is no longer one, the backup is the result of the filter-branch stuff prior to breaking master | 01:39 |
|
ayust
| ah, k | 01:39 |
| → deek0146 joined | 01:40 |
| → tchan joined | 01:40 |
| → shyam_iyer joined | 01:40 |
| → artefon joined | 01:40 |
|
Unode|Work
| I'm just trying to understand why doesn't git lose the removed objects | 01:40 |
| ← abetaha left | 01:40 |
|
ayust
| so git prune --expire=now didn't work? | 01:40 |
|
Unode|Work
| since if I clone the current repo via the net, I get a repo with size 6MB when the current one is 194MB | 01:41 |
|
| ayust, nope | 01:41 |
|
ayust
| try doing the reflog expire but without the --updateref | 01:41 |
|
Unode|Work
| is it normal that git prune gives no output and finishes in miliseconds? | 01:41 |
|
ayust
| if it doesnt think there's anything to prune, yes | 01:41 |
|
Unode|Work
| ayust, git reflog expire --expire=now --all --rewrite ? | 01:41 |
| → Heimidal joined | 01:41 |
|
ayust
| you don't need the --rewrite | 01:42 |
|
| since you're expiring everything | 01:42 |
|
Unode|Work
| well even with the --rewrite nothing changes | 01:42 |
|
| I mean, the size remains | 01:42 |
|
ayust
| try git gc --prune=now | 01:43 |
| ← nfiniteset left | 01:43 |
| ← ki__ left | 01:43 |
|
Unode|Work
| still the same | 01:43 |
|
ayust
| if that fails, you can try adding --aggressive | 01:43 |
|
| Unode|Work scratches head | 01:43 |
|
SethRobertson
| Unode|Work: `git for-each-ref refs` what does that say | 01:44 |
|
Unode|Work
| running gc --prune=now --aggressive right now, taking a while | 01:44 |
|
ayust
| one possibility is that you still have a ref that points at your old object chain | 01:45 |
|
Unode|Work
| seems like it's still compressing the 190MB objects | 01:45 |
|
ayust
| and thus it's not getting cleaned up | 01:45 |
|
| because it's still referenced | 01:45 |
|
Unode|Work
| ayust, and would that be picked up by git clone? | 01:45 |
|
| it would right? | 01:45 |
| ← Cap_J_L_Picard left | 01:45 |
|
ayust
| if it's a head, yes | 01:45 |
|
SethRobertson
| not for unusual refs | 01:45 |
|
| Like original alternatives etc | 01:45 |
| → Cap_J_L_Picard joined | 01:45 |
|
Unode|Work
| well this is a single branch repository | 01:45 |
| → SeanLazer joined | 01:46 |
|
SethRobertson
| that doesbn | 01:46 |
|
| that doesn | 01:46 |
|
| t matter, and is why I am asking for the for-each-ref output | 01:46 |
|
Unode|Work
| and I don't think history has ever been touched apart from me today doing the --tree-filter | 01:46 |
|
| SethRobertson, sorry, still running the git gc | 01:46 |
|
ayust
| plx run what SethRobertson is mentioning | 01:46 |
|
Unode|Work
| one sec | 01:46 |
|
| it's taking quite a lot of time | 01:47 |
| ← shyam_iyer left | 01:47 |
|
ayust
| yes, --aggressive does that >.> | 01:47 |
|
Unode|Work
| :\ | 01:47 |
|
ayust
| since for-each-ref is readonly | 01:47 |
|
| you should be able to run it in another terminal | 01:48 |
|
Unode|Work
| ok | 01:48 |
| ← Slix` left | 01:48 |
| ← dr_win left | 01:48 |
|
Unode|Work
| 259ef516f19ae635afefd979e26b739b31d483d8 commit refs/heads/master | 01:48 |
|
| 3a7440f353f88b5c7458b4b13e17e608cdf94e80 commit refs/remotes/origin/HEAD | 01:48 |
|
| 3a7440f353f88b5c7458b4b13e17e608cdf94e80 commit refs/remotes/origin/master | 01:48 |
| ← jrdavid_ left | 01:48 |
|
ayust
| yeah | 01:48 |
|
Unode|Work
| duh | 01:48 |
|
ayust
| your remotes | 01:48 |
|
| are pointing at the old one | 01:48 |
|
Unode|Work
| yeah I get it xD | 01:48 |
| → Slix` joined | 01:48 |
|
Unode|Work
| sorry about that | 01:48 |
|
| well now things make sense | 01:48 |
|
| so in this case, the best way would be to remove remotes since they will need to be rebuilt anyway | 01:49 |
|
ayust
| sure, that'll work | 01:49 |
| ← linusoleander left | 01:50 |
| → linusoleander joined | 01:50 |
| ← Godslastering left | 01:51 |
|
Unode|Work
| ayust, yup that did it | 01:51 |
|
| thanks ayust and SethRobertson for the help | 01:51 |
| → gretch joined | 01:55 |
| ← gretch left | 01:55 |
| ← SeanLazer left | 01:55 |
| ← miloshadzic left | 01:55 |
| ← deek0146 left | 01:58 |
| ← Unode|Work left | 02:00 |
| ← zombor left | 02:04 |
| → jonmasters joined | 02:04 |
| → Yuffster joined | 02:05 |
| → shyam_iyer joined | 02:06 |
| ← peshalto left | 02:07 |
| Chillax → Chillaway | 02:08 |
| ← t0rc left | 02:09 |
| → t0rc joined | 02:09 |
| → project2501a joined | 02:10 |
| → p3rror joined | 02:11 |
| ← marienz left | 02:13 |
| → tty1 joined | 02:14 |
| → marienz joined | 02:16 |
| → peshalto joined | 02:16 |
| → Pewpewarrows joined | 02:17 |
| ← airborn left | 02:17 |
| ← spearce left | 02:18 |
| → smolyn joined | 02:19 |
| ← shyam_iyer left | 02:19 |
| → dreiss joined | 02:21 |
| → dfr|mac joined | 02:21 |
| → silanus_ joined | 02:22 |
| → guns joined | 02:22 |
| ← peshalto left | 02:23 |
| ← timj_ left | 02:23 |
| ← silanus left | 02:24 |
| ← artefon left | 02:25 |
| ← eletuchy left | 02:25 |
| → eletuchy joined | 02:27 |
| → SeanLazer joined | 02:30 |
| → timj joined | 02:30 |
| ← Vampire0 left | 02:31 |
| ← Evious left | 02:36 |
| → ISF joined | 02:36 |
| → bkosborne joined | 02:37 |
| ← mw left | 02:37 |
| → boombatower joined | 02:37 |
| necromancer → necromancer`bzzy | 02:38 |
| → shyam_iyer joined | 02:39 |
| ← panike left | 02:40 |
| → mw joined | 02:41 |
| ← mw left | 02:41 |
| → mw joined | 02:41 |
| ← p3rror left | 02:43 |
| ← linusoleander left | 02:44 |
| ← shyam_iyer left | 02:44 |
| → shyam_iyer joined | 02:45 |
| ← pheaver left | 02:45 |
| ← SeanLazer left | 02:46 |
| → hyperair joined | 02:47 |
| necromancer`bzzy → necromancer | 02:47 |
| → rayners joined | 02:48 |
| → gretch joined | 02:49 |
| → Vampire0 joined | 02:49 |
| → Remixman joined | 02:50 |
| ← ROBOTARMY left | 02:50 |
| → deek0146 joined | 02:55 |
|
deek0146
| Hey | 02:56 |
|
| My friend has given me space on his server, how do I upload a git repository to it? | 02:56 |
| ← bmahe left | 02:57 |
| ← tek0 left | 02:57 |
| → ROBOTARMY joined | 02:58 |
| ← guns left | 02:58 |
| ← ROBOTARMY left | 02:58 |
| → ROBOTARMY joined | 02:58 |
| → Davey_ joined | 02:58 |
|
Davey_
| Hola | 02:58 |
|
| I need help doing bad thing to my repo | 02:59 |
|
bremner
| deek0146: the best way is to have git installed on the server | 02:59 |
| ← Noldorin_ left | 02:59 |
|
deek0146
| I think it might be | 02:59 |
|
| He has a git repository on it already | 02:59 |
|
| Which I can push and pull from, but I want to create a new one | 02:59 |
|
Davey_
| I want to set commit 0735fa2286177d88074fe5fb83dda243926cacd9 on my release branch, as having been merged from 0dcc93f0836efb5e0153d918c3b56c36ec50ac05 on my master branch... is this possible? | 03:00 |
|
fr0sty-away
| deek0146: on the server: git init --bare in whatever directory you want (~/repos/project.git) | 03:00 |
| ← gozoner left | 03:01 |
|
deek0146
| I don't have ssh access | 03:01 |
|
fr0sty-away
| what access do you have> | 03:02 |
|
deek0146
| Its ftp | 03:02 |
|
fr0sty-away
| ? | 03:02 |
|
deek0146
| I'm not sure | 03:02 |
|
| I'll tell you the command i did to clone his other repo | 03:02 |
| ← madewokherd left | 03:02 |
|
fr0sty-away
| don't think git works over ftp | 03:02 |
|
| yeah, what command did you use? | 03:02 |
|
deek0146
| [email@hidden.address] | 03:02 |
|
bremner
| that looks like a gitolite setup | 03:03 |
|
fr0sty-away
| deek0146: he probably has gitolite then | 03:03 |
| → madewokherd joined | 03:03 |
|
bremner
| ssh [email@hidden.address] will tell you | 03:03 |
|
deek0146
| Is that the same thing that knows my ssh key? Will I be able to create a new repo | 03:03 |
|
bremner
| it depends | 03:04 |
|
| on the configuration | 03:04 |
|
| sitaram is impressed that people now automatically assume gitolite is involved ;-) | 03:04 |
|
deek0146
| Emm | 03:04 |
|
| that ssh command gave no warning | 03:05 |
|
| Authenticity can't be established, are you sure you want to continue blah blah | 03:05 |
|
| Permission denied: public key | 03:05 |
| → nb_ joined | 03:05 |
|
deek0146
| sitaram: Whys that impressive? Is gitolite new? Or just really cool | 03:06 |
|
sitaram
| deek0146: you couldn't have got "authenticity cant be established" if you already used that clone command... | 03:07 |
|
project2501a
| um, if i wanted to post a reward, say USD$5k for someone to fork launchpad and incorporate native git and hg support, instead of bridging which has now, where should I do it? | 03:07 |
|
bremner
| sitaram: btw, you might find http://people.debian.org/~bremner/gitolite-monkeysphere/ interesting. I'll poke you again when the project is up and running properly. | 03:07 |
|
project2501a
| and how should i put the money in escrow? | 03:07 |
|
sitaram
| bremner: I dont suppose you already know about http://sitaramc.github.com/gitolite/doc/monkeysphere.html do you? | 03:07 |
| → linusoleander joined | 03:08 |
|
bremner
| sitaram: yes I started there, and talked to Clint a fair bit. | 03:08 |
| → dmlloyd_ joined | 03:08 |
|
deek0146
| sitaram: I cloned it on a windows install, not this machine | 03:08 |
|
sitaram
| bremner: oh ok | 03:08 |
|
| deek0146: then go there and do the ssh | 03:08 |
|
deek0146
| hokay 2 secs | 03:08 |
|
sitaram
| bremner: you can create by pushing also, you dont have to do it by cloning. (I suppose you wrote it that way so people will have origin and upstream branches set correctly from the start) | 03:09 |
|
deek0146
| Err yea it asked for me my password (stupid, of course, his server doesn't know about this computer | 03:09 |
| ← dmlloyd left | 03:09 |
|
deek0146
| Then it said: | 03:09 |
|
bremner
| sitaram: I wrote it that way out if ignorance ;) | 03:09 |
|
deek0146
| ERROR:gitosis.serve.main:Need SSH_ORIGINAL_COMMAND in environment | 03:10 |
| ← Heimidal left | 03:10 |
|
deek0146
| So yea, gitosis :) What does that error mean? | 03:10 |
|
bremner
| ah, gitosis probably means no creation iirc. | 03:10 |
|
sitaram
| bremner: also, can I ask you to change the URLs? I finally got off my duff and created a whole bunch of much faster loading URLs; they all start with https://sitaramc.github.com/gitolite instead of https://github.com/sitaramc/gitolite/blob/pu | 03:11 |
|
deek0146
| Aww :( But he said I could store stuff on the server using ftp, is it not possible to set up git that way? | 03:11 |
|
sitaram
| bremner: they are statically created; github's dynamic rendering was too slow for a lot of people, plus all the distraction of the top half of the screen being gone | 03:11 |
|
bremner
| sitaram: no problem. Just search and replace the prefix? | 03:11 |
|
sitaram
| yup | 03:11 |
| ← bcardarella left | 03:11 |
|
sitaram
| and it can be http:// I guess, not https. Mistake there | 03:12 |
| → stringoO joined | 03:12 |
|
| sitaram has to head to work; be back online in an hour or so | 03:12 |
| ← Remixman left | 03:13 |
|
bremner
| sitaram: bye for now. | 03:13 |
| → bmahe joined | 03:13 |
|
fr0sty-away
| deek0146: git doesn't work over ftp | 03:14 |
|
deek0146
| sadness | 03:14 |
| → pheaver joined | 03:15 |
|
fr0sty-away
| deek0146: have your friend create a gitosis repo for you. | 03:16 |
|
deek0146
| Ok cool | 03:16 |
|
| Thanks for the help guys :D | 03:16 |
| dmlloyd_ → dmlloyd | 03:17 |
|
bremner
| sitaram: if your still here, /gitolite/doc seems not to work? | 03:18 |
|
| sitaram: nvm. must be my error | 03:19 |
| ← urbanmonk left | 03:20 |
| → nadavoid joined | 03:20 |
| ← linusoleander left | 03:20 |
|
bremner
| oic, s/mkd/html/ | 03:20 |
| → urbanmonk joined | 03:21 |
| → linusoleander joined | 03:21 |
| ← xiong left | 03:21 |
| → intripoon_ joined | 03:22 |
|
project2501a
| um, if i wanted to post a reward, say USD$5k for someone to fork launchpad and incorporate native git and hg support, instead of bridging which has now, where should I do it? and how should i put the money in escrow? | 03:22 |
| ← keyvan- left | 03:22 |
| yaotti_aw → yaotti | 03:22 |
|
bremner
| project2501a: why don't you write to the mailing list? | 03:23 |
| ← stringoO left | 03:23 |
|
project2501a
| bremner: good idea. | 03:24 |
| ← intripoon left | 03:25 |
| → SeanLazer joined | 03:28 |
| ← linusoleander left | 03:29 |
| → linusoleander joined | 03:29 |
| ← leo2007 left | 03:30 |
| ← linusoleander left | 03:30 |
| ← Amorphous left | 03:30 |
| ← hipstertrash left | 03:31 |
| → zombor joined | 03:34 |
| → Elfe joined | 03:36 |
| ← deek0146 left | 03:37 |
| ← justin-george left | 03:38 |
| → sako joined | 03:38 |
| ← Elfe_ left | 03:39 |
| ← crashanddie left | 03:39 |
| ← aalex_laptop left | 03:43 |
|
sitaram
| bremner: that whole tree is auto-generated; I guess I have to put an index.html there also, will do. Meanwhile go up one level and you'll see an index | 03:44 |
| ← urbanmonk left | 03:44 |
| → luis_ joined | 03:45 |
| → urbanmonk joined | 03:45 |
| → Amorphous joined | 03:45 |
|
sitaram
| bremner: oh yeah I forgot that part -- sorry! (mkd -> html) | 03:46 |
| ← mw left | 03:48 |
| → envi joined | 03:49 |
| → coderdad joined | 03:49 |
| → timj_ joined | 03:52 |
| ← bkosborne left | 03:53 |
| → coldpizza72i joined | 03:56 |
| ← rns left | 03:56 |
| ← timj left | 03:56 |
|
coldpizza72i
| how do i pull once you create a branch | 03:56 |
|
| git pull master? | 03:58 |
| ← zombor left | 03:58 |
| ← flaguy48 left | 03:58 |
| ← mdel left | 04:00 |
| ← beekhof left | 04:01 |
| → mdel joined | 04:01 |
| yaotti → yaotti_aw | 04:02 |
| → BiggFREE joined | 04:03 |
| ← coldpizza72i left | 04:04 |
| → beekhof joined | 04:06 |
| ← beekhof left | 04:06 |
| → beekhof joined | 04:06 |
| → dermoth|home joined | 04:06 |
| → guns joined | 04:07 |
| → Remixman joined | 04:07 |
| ← project2501a left | 04:07 |
| → noahcampbell joined | 04:08 |
| → QAALTXN joined | 04:09 |
| → OOPMan joined | 04:10 |
| → ausdroid joined | 04:12 |
| → justin-george joined | 04:15 |
| ← friskd left | 04:18 |
| ← dreiss left | 04:18 |
| → zoo-zed joined | 04:20 |
| ← zoo-zed left | 04:21 |
| ← Schmallon left | 04:23 |
| → bug__ joined | 04:25 |
| → surfdue joined | 04:26 |
|
surfdue
| Hello! | 04:27 |
|
StuckMojo
| Please, commit your changes or stash them before you can merge. | 04:27 |
|
| what's "stash"? | 04:27 |
|
surfdue
| I currently cloned a remote repo which default's branch is master, how do i switch the default branch to dev | 04:27 |
|
StuckMojo
| or is there a way i can force an overwrite? | 04:27 |
| ← bug_ left | 04:27 |
| → linusoleander joined | 04:28 |
|
StuckMojo
| surfdue: maybe with git-config | 04:29 |
|
| surfdue: what you do mean by "default" branch? | 04:29 |
|
| to switch to a different branch, it's just: git checkout branch_name | 04:29 |
| → here joined | 04:29 |
| ← lastk left | 04:29 |
|
StuckMojo
| once you switch, that sticks | 04:29 |
| ← mdel left | 04:29 |
| ← csanz left | 04:30 |
| → harshu joined | 04:30 |
|
StuckMojo
| on my "stash" question, nevermind. found the doc | 04:31 |
| ← justin-george left | 04:31 |
|
surfdue
| StuckMojo: im trying to do a git pull but it says you asked me to pull without telling me a branch | 04:32 |
|
| i want this one to only pull the origin/dev branch | 04:32 |
|
StuckMojo
| ah | 04:33 |
|
surfdue
| well this clone atleast | 04:33 |
|
| any idea? | 04:33 |
|
StuckMojo
| well, you can just: git checkout dev; git pull origin dev | 04:33 |
|
surfdue
| think i got it | 04:35 |
|
| :P | 04:35 |
|
| silly me | 04:35 |
| ← bug__ left | 04:36 |
| ← kukks left | 04:36 |
| → Heimidal joined | 04:39 |
| → vandemar joined | 04:40 |
| ← nothingHappens left | 04:40 |
| ← ceej left | 04:40 |
| → jmorris joined | 04:40 |
| → Nitecon joined | 04:41 |
|
Nitecon
| Hey folks | 04:41 |
|
| How does git handle really long filenames? I've used mercurial to version control my homedir | 04:42 |
|
| however in the last few weeks some of the stuff that I have checked in has really long windows filenames | 04:42 |
|
| which cause mercurial to die. As such I'm looking for an unbiased answer as to whether the same problem exists in git | 04:43 |
|
StuckMojo
| Nitecon: i'm very new to git, but i would think it doesn't | 04:43 |
|
Nitecon
| Yeah thats the problem, I need to make sure before I switch | 04:44 |
|
| I don't mind the switch | 04:44 |
|
StuckMojo
| you could just make a mini git repo and try it | 04:44 |
|
| how long a filename are you talking here? | 04:44 |
|
Nitecon
| but switching a 4 terrabyte homedir over takes a while :P | 04:44 |
|
StuckMojo
| just init a repo, put one of these long ass files in it, see if it works | 04:44 |
|
Nitecon
| over 256 chars | 04:44 |
|
| including multi deep paths with directories over 256 chars too | 04:45 |
|
| hmm yeah may try that instead | 04:45 |
|
| I've got about 12 more hours of backup to do before I can start playing haha | 04:45 |
|
vandemar
| this is really stupid I'm sure but how do I get back to tracking upstream: http://dpaste.com/361305/ | 04:46 |
|
wereHamster
| vandemar: git reset --hard origin/develop-olympus ? | 04:48 |
| ← dfr|mac left | 04:48 |
| ← shentino left | 04:48 |
|
StuckMojo
| Nitecon: the filename itself is long, or the pathname? | 04:49 |
|
Nitecon
| in some instances both | 04:49 |
| → hipstertrash joined | 04:49 |
|
vandemar
| wereHamster: thanks, wow I'm stupid | 04:49 |
|
StuckMojo
| i can't find anything in google about it, so i suspect it's basically the same limits as your FS | 04:49 |
|
Nitecon
| yeah thats what I'm hoping :P | 04:50 |
|
| cleaning out my extra nas so I can set up a gitweb site and try out git :) | 04:50 |
|
StuckMojo
| can you paste a filename here? | 04:50 |
|
| i'll try it for you | 04:51 |
|
here
| heya, having trouble with basic .gitignore exceptions using ! : https://gist.github.com/799848 | 04:51 |
|
StuckMojo
| well, a paste site would be better actually | 04:51 |
|
Nitecon
| one sec i'll find one in a bit | 04:51 |
|
StuckMojo
| since it's super long | 04:51 |
|
wereHamster
| here: git doesn't descend into directories which are ignored, so the !public_html/.htaccess does not even take effect | 04:52 |
| → roop joined | 04:53 |
|
here
| were, so if i want to ignore most files under public_html, with some exceptions? | 04:53 |
|
StuckMojo
| Nitecon: ok, on ext4 i can't make a file longer than 256 chars i think | 04:53 |
|
wereHamster
| here: if you only want to track a few files, just use /* and then explicitely add the files you want to track | 04:53 |
|
StuckMojo
| i've got one that's 226 not | 04:53 |
|
| now | 04:53 |
|
Nitecon
| ok cool | 04:53 |
|
here
| were: trying. | 04:53 |
|
Nitecon
| lol i'm trying to find a file now... | 04:54 |
|
wereHamster
| here: public_html/* and !public_html/<the files> | 04:54 |
|
Nitecon
| they always come up with failure but hard to pinpoint them | 04:54 |
|
StuckMojo
| ok, 254 | 04:54 |
|
wereHamster
| here: also, are you trying to store $HOME in a git repo? | 04:54 |
|
StuckMojo
| git commit worked fine | 04:54 |
|
here
| were: hrm.. there are also further rare subdirectories ( !public_html/wp-content/themes/ ) | 04:55 |
| ← SeanLazer left | 04:55 |
|
StuckMojo
| Nitecon: and cloning it was fine | 04:55 |
| ← ROBOTARMY left | 04:55 |
|
here
| were: no, but was thinking about locating the base of the repo in $HOME and picking which files to track below that. | 04:55 |
| ← vandemar left | 04:55 |
| → hipstertrash_ joined | 04:56 |
|
Nitecon
| StuckMojo:great thanks for the info | 04:56 |
|
wereHamster
| here: bad idea, for the reason you've seen. It's better to create the repo where you need it (inside public_html) | 04:56 |
| ← hipstertrash left | 04:56 |
| hipstertrash_ → hipstertrash | 04:56 |
|
StuckMojo
| Nitecon: ok works with this too: | 04:56 |
|
| ./foo/bar/baz/zip/blah/foobie/loadie/dah: | 04:56 |
|
| suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuperlong.file.txt | 04:56 |
|
Nitecon
| sweet | 04:56 |
|
| ur my hero sire | 04:56 |
|
| that should solve my problem then | 04:57 |
|
| by bye HG | 04:57 |
|
StuckMojo
| so it's higher than or as high as ext4 limits ;) | 04:57 |
|
Nitecon
| yeah | 04:57 |
|
here
| were: i feel like i'd run into the same problem. i'm only looking for files we change like .htaccess and a handful of deeper directories (themes/plugins) | 04:57 |
| ← bronson_ left | 04:58 |
| ← sivy left | 04:58 |
|
wereHamster
| here: the only sensible solution I see is to ignore everything and then explicitely add what you need (git add -f ... | 04:58 |
| yaotti_aw → yaotti | 04:59 |
|
here
| ok i'll look at that more, thx. | 04:59 |
| ← Davey_ left | 04:59 |
| ← rayners left | 04:59 |
|
wereHamster
| here: however, I still do not recommend putting your git repo inside $HOME | 04:59 |
| ← hagabaka left | 05:01 |
| ← nadavoid left | 05:01 |
| ← mrball left | 05:02 |
| → hagabaka joined | 05:02 |
| → sivy joined | 05:03 |
| → webPragmatist joined | 05:03 |
| ← webPragmatist left | 05:03 |
| → webPragmatist joined | 05:03 |
| ← lu_zero left | 05:04 |
| ← Eridius left | 05:04 |
| ← sivy left | 05:04 |
|
here
| were: public_html seems equally bad. ;/ ? | 05:05 |
| → shentino joined | 05:05 |
| ← shentino left | 05:05 |
| → shentino joined | 05:05 |
| → bronson_ joined | 05:07 |
| → ZzTribble joined | 05:07 |
| ← harshu left | 05:08 |
| → harshu joined | 05:08 |
| → napster_123 joined | 05:09 |
| ← roop left | 05:09 |
| ← Slix` left | 05:10 |
| → kylehayes joined | 05:12 |
|
StuckMojo
| how do i look at a previous revision of a file? | 05:12 |
| yaotti → yaotti_aw | 05:12 |
| → _jham_ joined | 05:13 |
|
StuckMojo
| actually, git log -p will do | 05:13 |
| → _jham__ joined | 05:13 |
| ← linusoleander left | 05:13 |
| ← _jham__ left | 05:14 |
| → lu_zero joined | 05:14 |
| ← ausdroid left | 05:16 |
| ← vitor-br left | 05:17 |
| → theoros_ joined | 05:18 |
| ← _jham_ left | 05:18 |
| → smolyn_ joined | 05:19 |
| ← theoros left | 05:20 |
| ← smolyn left | 05:21 |
| ← doener left | 05:23 |
| ← jbd left | 05:23 |
| ← ZzTribble left | 05:23 |
| → jbd joined | 05:25 |
| → aah joined | 05:26 |
| → avinashhm joined | 05:27 |
| → Samual joined | 05:33 |
| ← Samual_ left | 05:35 |
| → doener joined | 05:35 |
| → duellsy joined | 05:37 |
| → psankar joined | 05:38 |
|
duellsy
| hey gang... bit of a noob question... how do i use git to keep the framework up to date, while I keep my custom files in the project in a separate git? | 05:38 |
| ← avinashhm left | 05:39 |
| → avinashhm joined | 05:39 |
| ← jmorris left | 05:40 |
|
StuckMojo
| duellsy: two separate repos? | 05:40 |
|
| that's a good question though | 05:41 |
|
duellsy
| yeah | 05:41 |
| ← boombatower left | 05:41 |
|
StuckMojo
| i dunno for sure, i'm new too | 05:41 |
|
| but i have the same issue | 05:41 |
|
| i need boost for my project | 05:41 |
|
| so i included it right in my source tree | 05:41 |
|
| but it would make more sense for it to be a separate repo, since it almost never changes | 05:41 |
|
duellsy
| i want to be able to pull the framework when the team makes updates to it, but also be able to have a particular folder (the app folder) be controlled by a separate git only i have access to | 05:42 |
|
StuckMojo
| i guess the question is: what happens when to working directories overlay eachother | 05:42 |
|
duellsy
| guess i could ignore the app folder, and make it a git of it's own... but the app folder is already a part of the framework, so not sure that would work | 05:43 |
| ← shyam_iyer left | 05:43 |
| → j416 joined | 05:44 |
|
StuckMojo
| oh | 05:44 |
|
webPragmatist
| anyone around that uses redmine? | 05:44 |
|
StuckMojo
| so you want only you to have write access to the app folder, but everyone to have read? | 05:44 |
|
| j416: howdy | 05:44 |
|
j416
| morning | 05:44 |
|
StuckMojo
| heh, 11:44pm for me | 05:44 |
|
j416
| :) | 05:46 |
|
| 6.45 here | 05:46 |
| ← webPragmatist left | 05:48 |
| ← noahcampbell left | 05:50 |
|
here
| i'm confused moving between two local repos, how do i point git at a different local repo ? | 05:50 |
|
j416
| here: are you talking about remotes? | 05:50 |
|
| in that case, just add another remote | 05:50 |
|
| and remove the first one if you wish. | 05:50 |
| → jrm222 joined | 05:51 |
|
here
| hmm, i don't think so. they are two different directory trees on the local machine, not even connected to remotes at this point. | 05:51 |
|
j416
| ok | 05:51 |
|
| so what do you want to do? | 05:51 |
| → HG` joined | 05:52 |
|
here
| say i'm working with one repo and use 'git add ...', etc. then i want to go and work with the other one.., | 05:53 |
|
j416
| yes | 05:53 |
|
here
| seems git still thinks i'm working with the first, feel like i need to point git at the 2nd . | 05:53 |
|
j416
| git is local | 05:53 |
|
| meaning | 05:53 |
| ← envi left | 05:53 |
| ← bmahe left | 05:53 |
|
j416
| you have one directory ~/myfirstrepo | 05:54 |
|
| and another one ~/mysecondrepo | 05:54 |
|
jrm222
| Do I have a voice? | 05:54 |
|
j416
| they both contain a ".git" dir | 05:54 |
|
jrm222
| yup | 05:54 |
|
j416
| they are two separate repositories. | 05:54 |
|
here
| j416 right. | 05:54 |
|
j416
| right. | 05:54 |
| ← fadein left | 05:54 |
|
here
| how do i know which i'm affecting with the 'git add ...' command? | 05:54 |
|
j416
| so if you are in ~/myfirstrepo, you will be working against the git repo in that directory. | 05:55 |
|
| if you are in ~/mysecondrepo, you will be working against the git repo in that directory. | 05:55 |
|
here
| what if i'm in neither directory? | 05:55 |
|
j416
| then git add will not work. | 05:55 |
|
here
| hmm. seems to ;p, hehe. | 05:55 |
| → ThunderChicken joined | 05:55 |
|
j416
| in that case you have a git repo in that directory. | 05:55 |
|
ThunderChicken
| #gnu-smalltalk | 05:55 |
|
| oops. | 05:56 |
|
StuckMojo
| j416: you'd be envious of my setup at the moment | 05:56 |
|
j416
| StuckMojo: I doubt it. | 05:56 |
| → envi joined | 05:57 |
| ← bronson_ left | 05:57 |
| ← Remixman left | 05:57 |
| → amondracorp joined | 05:58 |
| ← ISF left | 05:58 |
|
StuckMojo
| j416: http://mojo.forgot.his.name/screenshot.png | 05:59 |
| ← wagle left | 05:59 |
|
StuckMojo
| j416: note that it's an ubuntu desktop, with visual studio in a window from an overlayed win7 vbox instance | 06:00 |
|
j416
| ok? | 06:00 |
| → wagle joined | 06:00 |
|
StuckMojo
| well you said you might have to do some windows dev in the near future | 06:00 |
|
j416
| yeah | 06:00 |
|
StuckMojo
| i'm only suffering juuuust enough windows to get what i want ;) | 06:01 |
|
j416
| heh | 06:01 |
| → freimatz joined | 06:01 |
|
StuckMojo
| its virtualbox "seamless" mode | 06:01 |
|
j416
| at least I'm not going to have to use visual studio | 06:01 |
|
| sure, I use that too | 06:01 |
|
StuckMojo
| actually, visual studio is a very very nice IDE | 06:01 |
|
j416
| I'll be running proper windows at work though | 06:01 |
|
StuckMojo
| at least for C++ | 06:02 |
|
| the debugger is unparalleled | 06:02 |
|
j416
| nice. | 06:02 |
| → echrsin joined | 06:03 |
|
StuckMojo
| atm, i'm actually just editing my files in vim on unbuntu, committing to git, push, then pull on windows and bulid and debug with vc | 06:04 |
|
j416
| haha what a hassle | 06:04 |
|
| does it work well? | 06:04 |
| ← chrisshattuck left | 06:04 |
|
StuckMojo
| not much hassle really | 06:04 |
|
| yeah it does | 06:04 |
|
j416
| (by the way, you said visual studio is a good IDE, how come you're doing your editing in vim? :P) | 06:05 |
|
StuckMojo
| 1) i'm just used to it now | 06:05 |
|
| 2) this way i don't have to try to git push from windows | 06:05 |
|
j416
| are you scared of (2)? | 06:05 |
|
StuckMojo
| mmmm....a little ;) | 06:05 |
|
j416
| why? is it any different from git push on unix? | 06:05 |
| → friskd joined | 06:06 |
| → dreiss joined | 06:06 |
| ← avinashhm left | 06:06 |
| ← echrsin left | 06:07 |
| → echrsin joined | 06:08 |
|
StuckMojo
| j416: i suppose not | 06:08 |
|
| oh, i'm connecting via a cifs mounted drive and a symlink | 06:08 |
|
| rather than ssh | 06:08 |
|
| so i don't really trust that | 06:09 |
|
| oh hey, with visual sourcesafe, your working tree was readonly | 06:09 |
|
j416
| cifs.. never heard of it. ok. | 06:09 |
|
StuckMojo
| so you had to "checkout" a file to edit it | 06:09 |
|
j416
| yeah | 06:09 |
|
| I remember that | 06:09 |
|
StuckMojo
| cifs = samba = windows file sharing | 06:09 |
|
j416
| ah ok | 06:09 |
|
StuckMojo
| cifs = common internet file system or some such | 06:10 |
|
j416
| ok | 06:10 |
|
StuckMojo
| it's the protocol smb uses or something. | 06:10 |
|
| anyway... | 06:10 |
|
| so i kinda liked that checkout bit, because it was harder to lose changes accidentally | 06:10 |
|
| i have p4 configured that way at work | 06:10 |
|
| it will do either way though | 06:10 |
|
| p4 opened shows all the files in your client you've checked out for edit, so it's hard to lose stuff | 06:11 |
| → kuhrt joined | 06:11 |
|
StuckMojo
| or change things you didn't mean to | 06:11 |
|
| can git work like that? | 06:11 |
|
j416
| well git is local | 06:11 |
|
StuckMojo
| "In computer networking, Server Message Block (SMB), also known as Common Internet File System (CIFS)" | 06:12 |
| → devanjan joined | 06:12 |
|
j416
| but you can rm -rf * in your working dir and get it all back | 06:12 |
|
StuckMojo
| so, just another name for it | 06:12 |
|
j416
| and you can always see what changed | 06:12 |
|
| so there's really no problem, is there? :) | 06:12 |
|
StuckMojo
| mmmm | 06:12 |
|
| well, if you had more than one working tree, you could inadvertantly work in the wrong one | 06:13 |
|
j416
| ty (smb == cifs, didn't know) | 06:13 |
|
StuckMojo
| i.e. have changes in both | 06:13 |
| → avinashhm joined | 06:13 |
|
j416
| StuckMojo: sure, but then you could generate a patch and move changes | 06:13 |
|
StuckMojo
| yeah in the linux kernel config, they call it the cifs module | 06:13 |
|
j416
| k | 06:13 |
|
StuckMojo
| dunno why. i think that started when MS finally published the protocol | 06:13 |
| ← luis_ left | 06:13 |
|
StuckMojo
| j416: yeah but you'd have to notice that you did it | 06:14 |
| ← offby1 left | 06:14 |
|
j416
| StuckMojo: that's true for sourcesafe too | 06:14 |
|
StuckMojo
| if you didn't realize that two terminals were in two diff working trees | 06:14 |
|
j416
| you can check out a file from the wrong repo | 06:14 |
|
| work with it | 06:14 |
|
| check it in | 06:14 |
|
StuckMojo
| whereas if you had to check out, one would give you an error as being readonly when you tried to change it | 06:14 |
|
j416
| then when you realise it was the wrong one, you'll have a hassle putting it back in order | 06:14 |
|
StuckMojo
| hehehe | 06:15 |
|
j416
| in git, it's a piece of cake | 06:15 |
|
StuckMojo
| ok this is not productive :) | 06:15 |
|
| arguring the merits is silly :P | 06:15 |
|
j416
| StuckMojo: if you're working in the wrong repo, you should not be working at all | 06:15 |
|
| you should be taking a break. :) | 06:15 |
|
StuckMojo
| the answer was: no | 06:15 |
|
| and that's fine | 06:15 |
|
| yeah i'm getting used to it | 06:15 |
|
j416
| no? | 06:15 |
|
StuckMojo
| i've gotten into the habit of 1) running git status a lot | 06:16 |
|
| and 2) taking care not to have multiple clones lying around | 06:16 |
|
j416
| good habit. | 06:16 |
|
| not sure why you'd want more than one clone | 06:17 |
|
StuckMojo
| i should probably just have one repo per gox | 06:17 |
|
| box | 06:17 |
|
j416
| I only have one local copy | 06:17 |
| → ThomasLocke joined | 06:17 |
|
StuckMojo
| well, i think i started with 2 for safety | 06:17 |
|
| just in case i fubared the one i work in | 06:17 |
|
j416
| backups are for safety | 06:17 |
|
| hehe ok | 06:17 |
|
StuckMojo
| since i didn't know shit, i was gunshy | 06:17 |
|
| much less so after last night, thanks to you | 06:17 |
|
j416
| :) | 06:18 |
|
| cool | 06:18 |
| → jankoprowski joined | 06:18 |
|
j416
| you should spend an afternoon reading up on git and its internals | 06:18 |
|
StuckMojo
| again: much appriciated | 06:18 |
|
j416
| it's a good investment | 06:18 |
|
| you're very welcome | 06:18 |
|
StuckMojo
| yeah i've read a bit in the progit book | 06:18 |
|
| up to now the problem has been not having call to use it | 06:19 |
|
| unfortuately after adding this small functionality change to my billing software, i probably won't touch it again for quite some time | 06:19 |
|
| and i'm stuck with p4 at $job | 06:19 |
|
j416
| StuckMojo: I learnt most of what I know from here: http://book.git-scm.com/ | 06:19 |
|
| went through it step by step | 06:20 |
|
StuckMojo
| have you checked out progit, and if so, is this better? | 06:20 |
|
j416
| ok.. regular use helps you remember. :) | 06:20 |
|
StuckMojo
| i suspect this is more complete | 06:20 |
|
j416
| I've never read progit | 06:20 |
|
StuckMojo
| progit seems like basically a primer | 06:20 |
|
j416
| maybe, dunno. | 06:20 |
|
StuckMojo
| see TOC: http://progit.org/book/ | 06:20 |
| → mdel joined | 06:20 |
|
j416
| if something is a primer, it should be Jun Hamano's book :) | 06:21 |
|
| StuckMojo goes back to hacking | 06:22 |
| ← joel_falcou left | 06:22 |
| → amerine joined | 06:23 |
| → kirthi joined | 06:24 |
| → justin-george joined | 06:25 |
| ← OOPMan left | 06:27 |
| ← guns left | 06:30 |
| ← smolyn_ left | 06:30 |
| ← duellsy left | 06:30 |
| ← justin-george left | 06:32 |
| → Utkarsh joined | 06:36 |
| → rpbertp13 joined | 06:36 |
| ← Pupeno left | 06:37 |
| ← avinashhm left | 06:38 |
| ← Utkarsh_ left | 06:39 |
| → avinashhm joined | 06:39 |
| → opalka joined | 06:40 |
| ← orafu left | 06:40 |
| → orafu joined | 06:40 |
| ← engla left | 06:41 |
| ← giallu left | 06:42 |
| ← Yuffster left | 06:42 |
| → ProLoser|Mobile joined | 06:43 |
|
ProLoser|Mobile
| how do i diff a specific file in 2 branches | 06:43 |
| ← sudonotp1ease left | 06:43 |
| ← rpbertp13 left | 06:44 |
| → sudonotplease joined | 06:44 |
| ← coderdad left | 06:45 |
| ← HG` left | 06:46 |
| → DiGitalX joined | 06:46 |
|
JohnFlux
| ProLoser|Mobile: git diff branchA branchB -- filename | 06:48 |
|
| ProLoser|Mobile: I think | 06:48 |
|
jankoprowski
| Hi | 06:48 |
| ← necromancer left | 06:49 |
|
jankoprowski
| I'm just wondering - there is so cool tools like gitalist and gitolite in example | 06:49 |
|
ProLoser|Mobile
| what's the -- for? | 06:49 |
| ← Heimidal left | 06:49 |
|
JohnFlux
| ProLoser|Mobile: just to be clearly seperate branch name and filename | 06:49 |
|
| ProLoser|Mobile: git usually guesses correctly though | 06:49 |
|
jankoprowski
| and You can't make use of it when You want choose Gitorius | 06:50 |
|
ProLoser|Mobile
| not working | 06:50 |
|
jankoprowski
| This is frustrating :| | 06:50 |
|
ProLoser|Mobile
| git diff master -- app/webroot/js/flight_options.js | 06:50 |
|
JohnFlux
| jankoprowski: what do they do? | 06:50 |
|
| ProLoser|Mobile: and you're in a branch at the moment? | 06:50 |
|
ProLoser|Mobile
| ya i'm in 1 branch and want to compare a file to another branch | 06:51 |
| → HG` joined | 06:51 |
|
JohnFlux
| ProLoser|Mobile: I mean, you're in a branch that isn't master | 06:51 |
|
ProLoser|Mobile
| it just goes back to the console input | 06:51 |
|
| i don't see anything, not even an error | 06:51 |
|
jankoprowski
| JohnFlux: The problem is Gitorius have own very stiff way they keep repository structure | 06:51 |
|
ProLoser|Mobile
| yes | 06:51 |
|
jankoprowski
| JohnFlux: Own hooks and other stuff... | 06:51 |
|
JohnFlux
| ProLoser|Mobile: you could try just "git diff master" and see if there are any changes at all | 06:51 |
|
| ProLoser|Mobile: maybe there aren't differences :-) | 06:52 |
|
ProLoser|Mobile
| eh | 06:52 |
|
| too many files | 06:52 |
|
| and, well this is stupid, but my mac is old and overheating | 06:52 |
|
JohnFlux
| ProLoser|Mobile: you could do "git log flight_options.js" | 06:52 |
|
ProLoser|Mobile
| it doesn't scroll through pages of text well :/, i get visual taering | 06:52 |
|
jankoprowski
| JohnFlux: This is not the best approach because You must choose vs "Nice GUI Gitorius" and "Cool functionality in gitolite". You can't have both. | 06:52 |
|
| JohnFlux: Onestly I discover that when I start writing gitogen - key manger/generator with LDAP/NIS integration | 06:53 |
|
sitaram
| jankoprowski: "GUI" != "cool" so problem solved ;-) | 06:53 |
|
JohnFlux
| ProLoser|Mobile: I mean, do git log flight_options.js and compare to git log master flight_options.js | 06:53 |
| → shyam_iyer joined | 06:53 |
| ← madewokherd left | 06:53 |
|
jankoprowski
| sitaram: depends on your users | 06:54 |
|
JohnFlux
| ProLoser|Mobile: so if one has more commits than the other :-) | 06:54 |
|
jankoprowski
| sitaram: not from You | 06:54 |
|
JohnFlux
| jankoprowski: what is gitalist and gitolite? I'm not getting that part. | 06:54 |
|
jankoprowski
| JohnFlux: This two cool git-related stuff very useful when You are administrator. | 06:55 |
|
| JohnFlux: First one allow You manage many repositories and access to it based on username/branchname etc... | 06:55 |
| ← amondracorp left | 06:56 |
|
jankoprowski
| JohnFlux: Second is just nice (really nice) repository browser via webpage | 06:56 |
| → j0ran joined | 06:59 |
| → edulix joined | 07:03 |
| ← sudonotplease left | 07:03 |
| → sudonotplease joined | 07:04 |
| ← VxJasonxV left | 07:07 |
| → VxJasonxV joined | 07:07 |
| ← echrsin left | 07:09 |
| ← dreiss left | 07:12 |
| → Schmallon joined | 07:13 |
| → joel_falcou joined | 07:14 |
| → cbreak_work joined | 07:14 |
| ← shyam_iyer left | 07:14 |
| → ExtraSpice joined | 07:15 |
| → odol joined | 07:15 |
| ← kuhrt left | 07:16 |
| → t_b joined | 07:17 |
| ← t_b left | 07:17 |
| ← t0rc left | 07:17 |
| → Titosemi joined | 07:17 |
| → echrsin joined | 07:18 |
| → hobodave_ joined | 07:20 |
| ← alip left | 07:23 |
| ← hobodave left | 07:23 |
| ← echrsin left | 07:24 |
| ← Bass10 left | 07:24 |
| → alip joined | 07:25 |
| → fredp2 joined | 07:25 |
| → ramonmaruko joined | 07:26 |
| → roop joined | 07:27 |
| → asmega joined | 07:28 |
| ← fredp2 left | 07:28 |
| → saidi joined | 07:28 |
| → k04n joined | 07:29 |
| ← LouisJB left | 07:29 |
| ← edulix left | 07:30 |
| → radarek joined | 07:32 |
| → hobodave joined | 07:32 |
| → echrsin joined | 07:33 |
| ← jefferai left | 07:33 |
| ← hobodave_ left | 07:33 |
| → TrineLocke joined | 07:34 |
| ← Teo` left | 07:34 |
| ← davetoo left | 07:36 |
| → priidu_ joined | 07:37 |
| → priidu joined | 07:37 |
| → thiago_home joined | 07:38 |
| ← avinashhm left | 07:38 |
| → avinashhm joined | 07:39 |
| → giallu joined | 07:43 |
| → Deesl joined | 07:43 |
|
jankoprowski
| Is it possible to use Apache SSPI with TortoiseGit? | 07:44 |
| ← tchan left | 07:44 |
|
ProLoser|Mobile
| what's sspi? | 07:44 |
| → tchan joined | 07:45 |
|
jankoprowski
| It is one of Single Sign On protocols from Microsoft | 07:45 |
| → henrikbjorn joined | 07:45 |
|
ProLoser|Mobile
| i don't get how the 2 are in any way related | 07:45 |
| → iband joined | 07:46 |
| ← sako left | 07:47 |
|
jankoprowski
| You can configure Apache to authrize user using Microsoft Domain Server | 07:47 |
| → werdan7 joined | 07:47 |
|
jankoprowski
| If You use SPNEGO in IE or Kerberos in Firefox or Chrome You are authorized by default without Basic HTTP Auth prompt | 07:47 |
| ← asmega left | 07:47 |
|
jankoprowski
| TortoiseSVN make use of it and use Your windows credential to autorize You in SVN server | 07:48 |
|
| I'm wondering Git can do that. | 07:48 |
| → pratz joined | 07:48 |
| → Teo` joined | 07:49 |
|
JohnFlux
| jankoprowski: why would anyone tie themselves in so strongly to microsoft? | 07:49 |
|
| jankoprowski: when perfectly good alternatives exist? | 07:49 |
| → saschpe joined | 07:51 |
|
jankoprowski
| JohnFlux: Noone tie to anyone. This is just support for some protocol. | 07:52 |
| yaotti_aw → yaotti | 07:52 |
| → bigpeted joined | 07:52 |
|
jankoprowski
| JohnFlux: This is feature which make Git more suitable in corporate environment | 07:52 |
|
| Git was enought long time ago for OpenSource projects | 07:52 |
|
| Projects like gitolite bring git to corporates | 07:53 |
|
cbreak_work
| git works fine here | 07:53 |
| ← kirthi left | 07:53 |
| → sdwrage_ joined | 07:54 |
| ← sdwrage left | 07:54 |
|
jankoprowski
| cbreak_work: git works fine - but git access-control/authentication abilities barely exists | 07:54 |
|
cbreak_work
| you should look at gitolite | 07:54 |
|
| it works really well | 07:54 |
|
jankoprowski
| I use gitolite | 07:54 |
|
JohnFlux
| cbreak_work: he's been talking about gitolite | 07:54 |
|
cbreak_work
| and it's very secure | 07:54 |
| Unknown[OFF] → Unknown[NF] | 07:55 |
|
jankoprowski
| I'm talkin about NTLM/SPNEGO/SSPI support which is present in Subversion world | 07:55 |
|
cbreak_work
| what's that good for? | 07:55 |
|
| more security holes? | 07:55 |
|
jankoprowski
| cbreak_work: no - goodnes of Single Sign On. | 07:55 |
|
| You are login to Windows domain | 07:56 |
|
cbreak_work
| so, more security holes | 07:56 |
|
jankoprowski
| and forgot about everything | 07:56 |
|
cbreak_work
| once I log into my computer, I don't have to enter passwords to use git either... | 07:56 |
|
jankoprowski
| cbreak_work: You don't like Windows/Microsoft stuff - be my guest. But this technology exists and this is nothing exotic to support them. | 07:56 |
|
cbreak_work
| without all that additional code that introduces potential vulnerabilities | 07:56 |
|
| so it's simply not needed | 07:57 |
|
| technology should not be used for it's own sake | 07:57 |
|
| it should be used for a purpose | 07:57 |
|
jankoprowski
| cbreak_work: Purpose is very simple - comfort of users. | 07:57 |
|
sitaram
| jankoprowski: use gitolite in smart http mode, and use those fancy schmancy schemes to authenticate to apache. Done | 07:57 |
|
cbreak_work
| how's it more comfortable? | 07:57 |
|
JohnFlux
| jankoprowski: what's the advantage over the way gitorious does it - simply upload your ssh key to them? | 07:57 |
|
jankoprowski
| sitaram: Problem is in Git clients. They don't get it. | 07:58 |
|
cbreak_work
| you have to configure those weird ALL CAPS things | 07:58 |
| → Badiss joined | 07:58 |
|
cbreak_work
| I don't have to | 07:58 |
|
| I just have to create a private key and tell the server my public key | 07:58 |
|
| done. | 07:58 |
|
JohnFlux
| jankoprowski: is there something that git itself could do to help support SSPI ? | 07:59 |
|
cbreak_work
| and it doesn't even need to piggy back on hyper text transport | 07:59 |
| → teweWork joined | 07:59 |
|
jankoprowski
| cbreak_work: good luck with > 300 users which send You > 300 keys. By the way we don't use OpenSSH implementation which more complicate everything. | 08:00 |
|
| cbreak_work: and one more thing | 08:00 |
|
cbreak_work
| if you're in a controlled environment, you can create the keys for them | 08:00 |
| → jefferai joined | 08:01 |
| → lostern joined | 08:01 |
| ← hobodave left | 08:01 |
|
jankoprowski
| cbreak_work: yeap and manage them for many SVN/GIT repositories - this smell like "new dedicated employee is needed here". | 08:01 |
| → hobodave joined | 08:02 |
| → laj joined | 08:02 |
|
cbreak_work
| it doesn't add any complication to the normal user setup | 08:02 |
|
jankoprowski
| cbreak_work: If You will see corporate world where every permission is Active Directory group ... You will understand that SSH keys without integration with this whole LDAP stuff is not so god. | 08:03 |
|
cbreak_work
| at least not if you have centralized home directory storage | 08:03 |
|
jankoprowski
| I'm already writing "gitogen" project | 08:03 |
|
cbreak_work
| I am in a company, we don't use active directory | 08:03 |
| ← Badiss left | 08:03 |
|
cbreak_work
| and we don't use this ldap stuff | 08:03 |
|
jankoprowski
| cbreak_work: many companies use LDAP stuff and ActiveDirectory and git is not enough good for them. | 08:04 |
| ← tchan left | 08:04 |
| ← mdel left | 08:04 |
|
cbreak_work
| active directory itself is rather useless | 08:05 |
|
jankoprowski
| cbreak_work: msysgit have --ntlm switch :D | 08:05 |
|
cbreak_work
| all it can deal with is windows | 08:05 |
|
| jankoprowski: what does it do? | 08:05 |
| → tchan joined | 08:05 |
| ← shentino left | 08:06 |
|
jankoprowski
| I must check exactly how this work today but somehow simplify logging from windows domain: http://goo.gl/2eCvN | 08:06 |
|
| By the way | 08:06 |
|
| If somone create client for Windows | 08:06 |
|
cbreak_work
| git client? | 08:07 |
|
jankoprowski
| This client should be windows-authentication-method compliance | 08:07 |
|
| *compliante | 08:07 |
|
cbreak_work
| there are two I know of | 08:07 |
|
| msysgit and cygwingit | 08:07 |
|
jankoprowski
| Yeap | 08:07 |
|
| TortoiseGit frontend works with msysgit... i guess | 08:08 |
|
| I must check this | 08:08 |
| ← opalka left | 08:08 |
|
cbreak_work
| it does | 08:08 |
|
| but badly | 08:08 |
|
thiago_home
| "windows authentication" is NTLM | 08:08 |
|
cbreak_work
| I think who ever made tortoise git wanted to strap svn working model onto git | 08:08 |
|
| thiago_home points to tortoisesvn | 08:09 |
|
cbreak_work
| tortoise git can't even commit properly :/ | 08:09 |
|
| you always have to manually select what you want to commit | 08:09 |
| ← odol left | 08:10 |
|
jankoprowski
| cbreak_work: What is proper git client for Windows in Your opinion? | 08:10 |
| → boombatower joined | 08:10 |
| ← TrineLocke left | 08:10 |
| ← pratz left | 08:10 |
| ← harshu left | 08:10 |
| → opalka joined | 08:10 |
|
cbreak_work
| jankoprowski: msysgit is the most proper | 08:11 |
|
thiago_home
| msysgit | 08:11 |
|
cbreak_work
| but unfortunately, windows itself is rather terrible | 08:11 |
|
| I mean the shell windows provides | 08:11 |
|
| and it seems msysgit uses that for git-bash | 08:11 |
|
| so it's not very comfortable | 08:11 |
| → ludde joined | 08:12 |
| → psoo joined | 08:12 |
| → chrischambers joined | 08:13 |
|
jankoprowski
| Yeap buy I think about some GUI stuff | 08:13 |
| → andy__ joined | 08:14 |
|
jankoprowski
| The wors thing about TortoiseGit which looks promissing they don't know how implement "saving passwords" | 08:14 |
| ← jimmy1980 left | 08:14 |
|
jankoprowski
| http://code.google.com/p/tortoisegit/issues/detail?id=522 | 08:14 |
|
| This is frustrating | 08:14 |
| → kirthi joined | 08:15 |
| → pratz joined | 08:15 |
| → odol joined | 08:15 |
|
cbreak_work
| saving passwords? | 08:15 |
| ← benishor_ left | 08:15 |
|
cbreak_work
| that's more like microsoft's job | 08:15 |
| → jimmy1980 joined | 08:15 |
|
Arrowmaster
| cbreak_work: yeah imho they should include Mintty in msysgit but they seem opposed to including anything extra in it, they wont even put nano in it | 08:15 |
|
cbreak_work
| the tortoise git authors have no means to save passwords | 08:15 |
|
jankoprowski
| Comparing TortoiseSVN when You must pass password for HTTP repository then can save it and use again | 08:15 |
| → harshu_ joined | 08:15 |
|
cbreak_work
| besides, git doesn't use passwords | 08:16 |
| → jhoepken joined | 08:16 |
|
cbreak_work
| most transports are either unauthenticated like dumb http or git | 08:16 |
|
| or they use secure authentication like ssh or openssl | 08:16 |
| ← psoo left | 08:17 |
| → psoo joined | 08:17 |
|
Arrowmaster
| for https there was a problem at one time that it didnt cache the authentication and asked multiple times for a single operation | 08:17 |
|
| but that should be fixed | 08:17 |
|
cbreak_work
| asked for? | 08:18 |
| ← pheaver left | 08:18 |
| → flaguy48 joined | 08:18 |
|
cbreak_work
| https isn't supposed to ask for passwords, just the client certificate if you want client authentication | 08:18 |
|
Arrowmaster
| i honestly cant remember if it had something to do with ssl certificates or http auth passwords | 08:18 |
|
cbreak_work
| hmm. | 08:18 |
| ← Error404NotFound left | 08:18 |
|
cbreak_work
| people still use the http password stuff? | 08:19 |
|
| I guess they don't really care about security:) | 08:19 |
|
Arrowmaster
| but that bug report on tortoisegit looks strange, i thought tortoisegit used msysgit underneath? why would _netrc work for msysgit but not tortoisegit | 08:19 |
| → OOPMan joined | 08:20 |
|
thiago_home
| NTLM http auth is a little more secure | 08:20 |
| ← andy__ left | 08:21 |
| ← psoo left | 08:21 |
| → workmad3 joined | 08:21 |
| → psoo joined | 08:22 |
| → d0k joined | 08:23 |
| → Error404NotFound joined | 08:25 |
| ← gretch left | 08:25 |
| → gretch_ joined | 08:25 |
| → agateau joined | 08:25 |
| ← gretch_ left | 08:25 |
| ← psoo left | 08:25 |
| → gretch joined | 08:26 |
| → serard joined | 08:27 |
| ← napster_123 left | 08:27 |
| → skoop joined | 08:28 |
| ← thiago_home left | 08:29 |
| → [Po]lentino joined | 08:31 |
| → mishok13 joined | 08:31 |
| ← tty1 left | 08:32 |
| ← sdwrage_ left | 08:33 |
|
jankoprowski
| thiago_home: I think exactly like You | 08:33 |
| → bluenovember joined | 08:33 |
|
jankoprowski
| +Arrowmaster: _netrc work also with TortoiseGit | 08:34 |
|
| Arrowmaster: I have just checked | 08:34 |
| ← avinashhm left | 08:38 |
| ← Schmallon left | 08:38 |
| → avinashhm joined | 08:39 |
| ← ProLoser|Mobile left | 08:39 |
| ← sejo left | 08:41 |
| → sejo joined | 08:41 |
|
jankoprowski
| cbreak_work: So Git won't ask me about password when I use SSL? | 08:41 |
|
Arrowmaster
| theres two different things, theres http auth and there are client side ssl certificates | 08:43 |
| → thermal joined | 08:44 |
|
Arrowmaster
| for example pushing to github over https only uses http auth, there are no certificates | 08:44 |
| ← bigpeted left | 08:44 |
|
cbreak_work
| jankoprowski: no | 08:44 |
|
Arrowmaster
| but you can also use http auth with normal http instead of https | 08:44 |
|
cbreak_work
| git doesn't use passwords | 08:44 |
| → tty1 joined | 08:44 |
|
Arrowmaster
| its just a VERY bad idea | 08:44 |
|
cbreak_work
| unless you use the http based authentication I guess | 08:44 |
|
| but who would do that... | 08:45 |
| → resmo_ joined | 08:45 |
|
cbreak_work
| with ssl you'd probably use certificates | 08:45 |
|
Arrowmaster
| technically git still doesnt use the password, i think it uses curl which would do the password part from _netrc | 08:45 |
| ← ormaaj left | 08:45 |
|
cbreak_work
| because they are many magnitudes more secure than any password I could come up with | 08:45 |
|
| and the passwords I come up with are probably many magnitudes more secure than passwords normal people come up with | 08:46 |
| ← xiangfu left | 08:46 |
|
cbreak_work
| in general, passwords are weak. | 08:46 |
|
| even if they are good, compared to public key crypto they are weak | 08:46 |
| ← mikepack left | 08:46 |
| → ormaaj joined | 08:47 |
|
jankoprowski
| cbreak_work: How this SSL stuff works? It just verify user based on SSL certificate key? | 08:48 |
|
cbreak_work
| ssl? | 08:48 |
|
| you generate a public and a private key | 08:48 |
| → tvw joined | 08:48 |
|
jankoprowski
| same as SSH - ok | 08:48 |
|
cbreak_work
| the public key gets signed by a certificate authority | 08:48 |
|
| it's different because you have a CA | 08:48 |
|
jankoprowski
| We have CA in our company | 08:49 |
|
cbreak_work
| the server doesn't need to know every public key | 08:49 |
|
jankoprowski
| so this is not a problem | 08:49 |
|
cbreak_work
| unlike with SSH | 08:49 |
|
jankoprowski
| ok | 08:49 |
|
| how server will now who is who? | 08:49 |
|
cbreak_work
| I am no ssl expert, but when setting up an ssl based vpn on my router, I just had to create my own ca and then tell the router to trust all certs signed by it | 08:49 |
|
| same way you know that you are talking to your bank when you do online banking | 08:50 |
| ← jimmy1980 left | 08:50 |
|
cbreak_work
| ssl certificates have a common name field | 08:50 |
|
jankoprowski
| right | 08:50 |
|
cbreak_work
| and tones of other field | 08:50 |
|
jankoprowski
| About banks: O | 08:50 |
|
cbreak_work
| the ssl standard is terrible :/ | 08:50 |
|
| (meaning the certification format) | 08:50 |
|
jankoprowski
| lol | 08:50 |
|
| However | 08:51 |
|
cbreak_work
| there were lots of problems with implementing it | 08:51 |
|
jankoprowski
| It looks like git doesn't like http + password stuff | 08:51 |
| → crashanddie joined | 08:52 |
| → nailbar joined | 08:52 |
|
jankoprowski
| So the only way is write project which link ssh keys with LDAP/NIS stuff and manage them automaticaly | 08:52 |
|
| to use gitolite without dedicated administrator in corporation | 08:52 |
|
| So I just must end my project | 08:52 |
|
| :| | 08:52 |
|
| This is the only way | 08:52 |
| → airborn joined | 08:52 |
| → benishor_ joined | 08:52 |
| ← theoros_ left | 08:53 |
|
Arrowmaster
| what version are you using? | 08:53 |
|
| i thought all the http issues got fixed | 08:53 |
|
jankoprowski
| Arrowmaster: I didn't know anything about http issues | 08:53 |
| → xiong joined | 08:53 |
|
jankoprowski
| I just see that using Git comfortable way is not support Microsoft stuff | 08:54 |
|
| And will not do this in future | 08:54 |
|
cbreak_work
| most comfortable way to use git is with ssh transport | 08:54 |
|
jankoprowski
| with gitolite | 08:54 |
|
cbreak_work
| yeah, or without | 08:54 |
|
jankoprowski
| but I see that gitolite is only half of solution | 08:54 |
|
cbreak_work
| you can use real user authentication too | 08:55 |
|
jankoprowski
| because You still must manage this stuff | 08:55 |
| ← roop left | 08:55 |
|
jankoprowski
| some extra tool which run webpage where You come-in | 08:55 |
|
cbreak_work
| web page? | 08:55 |
|
jankoprowski
| yeap | 08:55 |
|
cbreak_work
| what'd you need that for? | 08:55 |
| → jimmy1980 joined | 08:56 |
| ← emptyflask left | 08:56 |
|
jankoprowski
| Because Apache or IIS can check who You actually are (without asking You about credentials) and set REMOTE_USER variable for some PHP/Python/Ruby/PERL webpage in browser | 08:56 |
|
| Then You can ask about LDAP/AD groups | 08:56 |
|
| And based on some configuration files | 08:57 |
|
| generated SSH pair of keys | 08:57 |
|
cbreak_work
| how would they know? | 08:57 |
| ← nailbar left | 08:57 |
|
jankoprowski
| VAS/NTLM/SPNEGO/LDAP/Kerberos | 08:57 |
|
| There are many ways | 08:57 |
|
| SSPI | 08:57 |
|
cbreak_work
| hmm... | 08:58 |
|
| that'd be a way | 08:58 |
|
jankoprowski
| however | 08:58 |
|
| they generate ssh keys | 08:58 |
|
cbreak_work
| but wouldn't it be easier to just create an ssh key when users are created? | 08:58 |
|
| and deposit that into the user's home folder? | 08:58 |
|
jankoprowski
| what with existing users? | 08:58 |
|
cbreak_work
| just run some shell script some time | 08:58 |
|
| well, only works if you can access the user's homedirectories | 08:59 |
|
| so if it's server backed or similar | 08:59 |
|
j416
| you could always print the key on paper and have the user enter it. | 08:59 |
|
| :P | 08:59 |
|
cbreak_work
| that sounds painful | 08:59 |
|
j416
| it does | 08:59 |
|
| especially when you find out you made a mistake in your input | 09:00 |
| ← hobodave left | 09:00 |
|
cbreak_work
| must suck even more than installing windows | 09:01 |
|
| do you still have to call microsoft to ask for permission to use the thing you bought? :) | 09:01 |
| ← laj left | 09:01 |
| → Badiss joined | 09:02 |
| ← amerine left | 09:03 |
| ← Mage left | 09:03 |
| ← Error404NotFound left | 09:03 |
| → MikeyB joined | 09:05 |
|
j416
| :D | 09:05 |
| → napster_123 joined | 09:09 |
| → Error404NotFound joined | 09:09 |
| ← tylerl left | 09:10 |
| ← psankar left | 09:11 |
| → Agos joined | 09:12 |
| → shentino joined | 09:12 |
| ← shentino left | 09:12 |
| → shentino joined | 09:12 |
| → ryec joined | 09:14 |
| ← napster_123 left | 09:15 |
| ← BiggFREE left | 09:16 |
| → PigeonFriend joined | 09:16 |
| ← robinbowes left | 09:19 |
| ← gretch left | 09:21 |
| → gretch joined | 09:21 |
| ← echrsin left | 09:22 |
| ← timj_ left | 09:25 |
| ← lostern left | 09:25 |
| → timj joined | 09:25 |
| ← saidi left | 09:25 |
| ← MikhX left | 09:26 |
| → MikhX joined | 09:26 |
| → pdelgallego_ joined | 09:26 |
| ← GaVrA left | 09:26 |
| → napster_123 joined | 09:27 |
| → xyfix joined | 09:27 |
| → echrsin joined | 09:27 |
| → echrsin_ joined | 09:27 |
| → pfrenssen joined | 09:28 |
| → darkredandyellow joined | 09:28 |
| ← Neo left | 09:29 |
| Unknown[NF] → Unknown[OFF] | 09:29 |
| → dest joined | 09:30 |
|
dest
| Hi. Is there a way to know how many times a git repo has been cloned ? | 09:30 |
| → roop joined | 09:31 |
| ← echrsin left | 09:32 |
|
j416
| dest: no. | 09:32 |
| ← gretch left | 09:33 |
|
j416
| the repository being cloned is not modified in any way. | 09:33 |
| ← k04n left | 09:33 |
| → Neo joined | 09:33 |
|
cbz
| It's like asking 'is there any way to know how many times a file has been copied" | 09:34 |
| → gretch joined | 09:34 |
|
teweWork
| i want to push tags and if i try git push --tags looks like all the commits are pushed, or something strange happens because my pre-receive hook gets all the commits and doesn't allow the push (it checks the commit msg and old commits have invalid messages) | 09:36 |
|
| and i only have one new tag | 09:36 |
|
dest
| j416: thanks | 09:37 |
|
j416
| yw | 09:37 |
|
xyfix
| Hi, I'm new to git ( coming from cvs ), I have just committed some files from one local copy and wanted to update my second local copy with the code that I just committed. I've read a few stuff on the net ( fetch-merge or pull ) and done all of those things but I still can update my second local working dir. WindowsXP-TortoiseGit | 09:37 |
|
tango_
| xyfix: my guess is that you are trying to push from one local copy to the other | 09:38 |
|
| which you shouldn't, faq non-bare | 09:38 |
|
jast
| Pushing to non-bare repositories is discouraged: please see https://git.wiki.kernel.org/index.php/GitFaq#non-bare [automatic message] | 09:38 |
| ← avinashhm left | 09:38 |
| → avinashhm joined | 09:39 |
|
xyfix
| tango_: I committed my local copy to a repository and the tried to update my second local working dir from this repository. I've done a fresh new checkout and I can see my code that I committed | 09:39 |
|
| tango_: I'm not pushing from one local copy to another local copy | 09:41 |
| ← napster_123 left | 09:41 |
|
tango_
| first of all, small syntax change: you don't commit a local copy to a repository. you clone, push and fetch between repositories. commits are always local. | 09:41 |
|
| next: ok, going through a remote is a good thing. so what is it exactly that is failing for you? | 09:41 |
| → tizzo joined | 09:42 |
| → pdelgallego__ joined | 09:42 |
|
teweWork
| xyfix: i don't understand u can't update your second repo but if u clone a new one there are your changes? | 09:43 |
|
xyfix
| when I run an update( fetch-merge) on my second local working dir I don't see the code that I just cloned to the repository | 09:43 |
|
| yep | 09:43 |
| → pdelgallego joined | 09:43 |
| ← gretch left | 09:43 |
|
xyfix
| @ teweWork | 09:43 |
|
| when I do a fetch on my second local copy it ends up in a success | 09:44 |
| → tatsuya joined | 09:45 |
|
xyfix
| but no code that I just cloned from my first local copy | 09:45 |
| → rseifert joined | 09:45 |
|
j416
| xyfix: files are not automaticlly checked out when you fetch | 09:46 |
|
| fetch just updates your (local copies of) remote branches | 09:46 |
|
| maybe that is the issue. | 09:46 |
|
xyfix
| but how can I update my local copy from the HEAD( master ) | 09:47 |
| → robinbowes joined | 09:47 |
|
j416
| xyfix: you have to merge or rebase your local branches | 09:47 |
| → kalusn joined | 09:47 |
|
j416
| 'git pull' does 'git fetch' and 'git merge' in one go. | 09:48 |
| → koltroll joined | 09:48 |
|
teweWork
| i don't know what feedback tortoisegit gives u but if it only sais 'Success' then it's not enough information :) | 09:48 |
|
j416
| I don't know much about windows and git, sorry. | 09:49 |
|
xyfix
| this is the output of my git pull http://pastebin.com/cAYitCAQ | 09:49 |
| → ntoll joined | 09:49 |
|
j416
| xyfix: this is because you have changes in that file | 09:50 |
|
| do something with those changes first. | 09:50 |
|
xyfix
| yes but I expect a conflict resolve option | 09:50 |
|
teweWork
| back to my question why does the pre-receive hook gets all the commits if i do git push --tags ? | 09:50 |
|
j416
| xyfix: git merges committed things, you have to commit it first. | 09:50 |
|
| xyfix: any changed not staged or committed, are not in git. | 09:51 |
|
| s/changed/changes/ | 09:51 |
|
xyfix
| hmmm? but the second local copy is not finished yet ( code ways ) so I don't want to commit just update | 09:52 |
|
j416
| xyfix: then, commit and rebase. | 09:52 |
|
| git add [your stuff] && git commit -m 'Add stuff' && git pull --rebase | 09:53 |
|
| I think should do it. | 09:53 |
|
| (understand that before you run it) | 09:53 |
|
| :) | 09:53 |
| → ^Simon^ joined | 09:53 |
|
^Simon^
| Every time I merge the live branch into my working branch I get a conflict on a file that has to be different between live and dev. It's only a couple of lines that are different, the rest of the file is identical. | 09:54 |
| ← tvw left | 09:54 |
|
j416
| does anyone know what the deal is with git adding a nested repo as a submodule, but without a config file? | 09:55 |
|
| I'd be interested in any info at all on this. | 09:55 |
|
xyfix
| j416: I already added the new files in my second local copy, but I didn't know that I should also commit them because that will put them in the repository ( I think ) | 09:55 |
| ← priidu left | 09:55 |
|
j416
| xyfix: "git add" merely adds the changes to the index. You have to run "git commit" to actually put them in the branch. | 09:55 |
|
| so to speak. | 09:56 |
| ← patmaddox left | 09:56 |
| → torbenh3 joined | 09:56 |
|
j416
| xyfix: you should invest an afternoon reading this: http://book.git-scm.com/ | 09:56 |
|
| you'll be glad you did | 09:57 |
|
| especially since you seem a bit affected by your previous experience :) | 09:57 |
|
xyfix
| j416: you're absolutely right but why not start this morning ( right now) | 09:57 |
|
| :-) | 09:57 |
|
j416
| xyfix: why not :) | 09:57 |
|
^Simon^
| myfix/j416 - getting good with git is quite a good book too | 09:57 |
|
j416
| ^Simon^: but the git community book is free :P | 09:58 |
|
| (why is there an illustration of a computer mouse on the cover of that book -- I can't recall ever using the mouse when working with git) | 09:59 |
|
| haha. | 09:59 |
|
xyfix
| thanks you guys, it seems like I have homework to do :-) | 09:59 |
| ← kirthi left | 09:59 |
|
j416
| xyfix: have fun :) | 09:59 |
| → kirthi joined | 10:00 |
|
j416
| xyfix: there is a lot of good material out there, I recommended that only because I learnt most of what I know from it. | 10:00 |
|
| at least I think I did. | 10:00 |
| → gretch joined | 10:01 |
| → andrewvo1 joined | 10:01 |
| → foocraft joined | 10:01 |
|
^Simon^
| j416 - agreed yes, the git community book is free, and it's worth reading.. | 10:02 |
| → LouisJB joined | 10:02 |
| ← andrewvo1 left | 10:03 |
|
j416
| ^Simon^: not to say the book you suggest isn't good, but I seem to have no way of finding out except buying it :P | 10:03 |
|
^Simon^
| I picked it up when it was free. | 10:03 |
|
j416
| aha, sample content availabel | 10:03 |
| ← andrewvos left | 10:03 |
|
^Simon^
| it was "book of the week" or something. | 10:03 |
|
| I figured out how to use git add -i from it last night. | 10:04 |
| → andrewvos joined | 10:04 |
| ← workmad3 left | 10:04 |
|
j416
| git add -i | 10:07 |
|
| never got around that one | 10:07 |
|
| tried it a couple times | 10:07 |
|
^Simon^
| I wanted to commit a couple of parts of a file, but not all of it. | 10:07 |
|
j416
| I use "git add -p" from time to time though | 10:07 |
|
^Simon^
| git add -i | 10:07 |
|
j416
| I thought -i was too messy | 10:07 |
|
| -p is more straightforward | 10:07 |
|
^Simon^
| I think it's the same.. I chose 'p' from the menu. | 10:07 |
|
j416
| yep | 10:07 |
|
| -i is just some kind of wrapper thing for a bunch of commands | 10:08 |
|
^Simon^
| getting conflicts on the file now though :( | 10:08 |
| ← beekhof left | 10:08 |
| ← Unknown[OFF] left | 10:09 |
|
^Simon^
| I merged the live branch back into my working branch and now I have: (a) changes to be commited which are one of the files that didn't conflict.(b) Unmerged paths (the conflicting file), (c) changed but not updated - something ready to git add/git commit. | 10:09 |
|
| I resolved the conflict in the file, but don't want to commit it.. just leave it as a modified file. | 10:10 |
|
| seems to happen regularly that it goes weird | 10:10 |
|
j416
| ^Simon^: well, if you don't commit, there will be no merge | 10:11 |
|
| that means, you don't want to merge? | 10:11 |
|
| perhaps rebase is what you want | 10:11 |
|
^Simon^
| there were no new commits on my branch - they'd all been pushed and then merged into staging and pushed back to the repo. | 10:11 |
|
j416
| (not sure why you are merging the live branch back into your working branch, though) | 10:11 |
|
^Simon^
| we use the integration manager approach (or my take on it) - devs have personal repos that get pulled into staging ready to go live and then pushed back to a central repo which has updates pulled back to each personal | 10:12 |
| ← tizzo left | 10:13 |
| ← tty1 left | 10:13 |
|
^Simon^
| maybe I just don't do it right. | 10:13 |
|
| I have a branch "main" which tracks the central repository and is pretty much a copy of the live code. | 10:14 |
|
| I also have master which is my working version | 10:14 |
|
| I have to update the main branch using git checkout main; git pull | 10:15 |
|
| and then git checkout master | 10:15 |
|
| git merge main | 10:15 |
| ← echrsin_ left | 10:15 |
|
^Simon^
| should I just skip the main branch and pull the remote main branch into my working branch? | 10:16 |
| → eijk joined | 10:17 |
|
^Simon^
| I couldn't find very much useful information on exactly how to setup the integration manager method of working so cobbled it together with the few git commands I knew. :) | 10:17 |
| ← kirthi left | 10:18 |
| → kirthi joined | 10:18 |
|
j416
| ^Simon^: man gitworkflows | 10:19 |
|
jast
| the 'gitworkflows' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gitworkflows.html [automatic message] | 10:19 |
| → matjas joined | 10:19 |
|
j416
| also google git workflows | 10:19 |
| → jeeger joined | 10:19 |
|
j416
| there are many ways... | 10:19 |
|
| which is right for you, I don't know. | 10:19 |
| ← Flcn left | 10:19 |
|
jeeger
| Greetings! Is it possible to add branch directories to an svn cloned repository after the initial clone? I can't really find anything in the docs (git-config and git-svn). | 10:20 |
| → drizzd_ joined | 10:20 |
|
^Simon^
| do you mean creating a new branch on the svn repository? | 10:21 |
| → mithro joined | 10:21 |
|
^Simon^
| or just creating one in git based on the svn clone? | 10:21 |
| ← pratz left | 10:22 |
|
jeeger
| ^Simon^: I didn't pass any --branch arguments to the initial git svn clone, and want to add them later so I can push branches to svn | 10:22 |
|
^Simon^
| I'm afraid I don't know - when I cloned our svn repo, it was for the initial import into git and we just ditched svn afterwards. | 10:23 |
|
| we only once used a branch in svn | 10:23 |
| → yotaff joined | 10:23 |
|
jeeger
| *shudder* | 10:23 |
| ← drizzd left | 10:23 |
|
^Simon^
| most of the dev stuff sucked because we'd keep the files modified on the personal dev systems until the feature was ready to go live - got really messy, really quickly. | 10:24 |
|
| not to mention no way to recover a working but not ready version from a few days before if a change broke something. | 10:24 |
|
| since switching to git it's been a bit of a learning curve but on the whole it's so much tidier. | 10:25 |
| → pratz joined | 10:25 |
| → bentob0x joined | 10:26 |
| ← thermal left | 10:27 |
| → dr_win joined | 10:27 |
| → transplant joined | 10:28 |
|
avar
| what's the "git show --stat sha" that also shows you the diff? Just adds a stat to the log message | 10:30 |
| ← mithro left | 10:30 |
| ← foocraft left | 10:30 |
|
avar
| ah, just add -p | 10:31 |
| → napster_123 joined | 10:32 |
| → petrux joined | 10:33 |
| ← bauruine left | 10:35 |
| → artefon joined | 10:36 |
| → winterweaver joined | 10:38 |
| Weust`afk → Weust` | 10:38 |
| ← avinashhm left | 10:38 |
| ← Neo left | 10:38 |
| → avinashhm joined | 10:39 |
| ← roger_padactor left | 10:39 |
| ← transplant left | 10:39 |
| → tvw joined | 10:40 |
| ← tvw left | 10:40 |
| → tvw joined | 10:41 |
| → bigpeted joined | 10:41 |
| → Neo joined | 10:43 |
| → _pingu joined | 10:43 |
| → Unknown[OFF] joined | 10:43 |
| → snearch joined | 10:44 |
| → Cro_Crx joined | 10:47 |
| → fjb4 joined | 10:47 |
| ← devanjan left | 10:47 |
| → mduft joined | 10:48 |
|
mduft
| hey :) | 10:48 |
| → mithro joined | 10:49 |
|
mduft
| i have a question about moving from svn to git (acutally first of all testing git, and _possibly_ moving to it, so a git-svn side-by-side solution would be cool for the start): | 10:49 |
|
| is there a way to get multiple svn repositories into one git master branch? | 10:49 |
| ← markelikalderon left | 10:49 |
|
jeeger
| oof | 10:50 |
|
| Don't think so | 10:50 |
|
mduft
| i have https://server/{dir1,dir2}/{trunk,branches,tags}/dirNproj1 | 10:50 |
| → foocraft joined | 10:50 |
|
mduft
| and want a master git repo with dir1proj1 and dir2proj2 both in it... | 10:50 |
| → Titosemi1 joined | 10:51 |
|
mduft
| hmmm that would be bad... | 10:51 |
|
| i have approx 70 svn repositories, and don't want to end up with 70 git repositories... | 10:51 |
| ← Titosemi left | 10:51 |
|
^Simon^
| why not? | 10:52 |
|
| do you have the svn repositories as sub-directories of each other or something? | 10:52 |
|
mduft
| because i want to move stuff from one to the other... isn't this easier if all things end up in one repo? | 10:52 |
|
^Simon^
| not necessarily. | 10:52 |
|
selckin
| many small repos is usually better | 10:52 |
|
mduft
| ah, and i need to get EGit working on the repos... | 10:52 |
|
| hmmm | 10:52 |
|
^Simon^
| you can add remotes to the various repositories and pull stuff from a different repo. | 10:53 |
|
mduft
| it's a bit eclipse-driven java project with > 300 plugins... | 10:53 |
|
| hmm | 10:53 |
|
| ok, i see | 10:53 |
|
^Simon^
| might be a pain to setup if you're talking all 70 need to pull from the other 69.. but could just write a script to run in each of the repos to add the remotes. | 10:53 |
|
mduft
| right, that would not be so much of a problem | 10:54 |
|
| i just fear the developers used to svn will complain about the complexity... even though in svn it was 70 repos, they were all on the same root, so the eclipse repo browser hat one server, and multiple directories they easily navigated | 10:55 |
|
| now they'd have to add 70 repos separately and browse in the right one to get their plugins... | 10:55 |
|
| any other ideas to get this right (tm)? | 10:55 |
| ← fr0sty-away left | 10:56 |
| → nicoulaj joined | 10:56 |
| → [Po]lentino__ joined | 10:57 |
| → fr0sty-away joined | 10:57 |
| ← [Po]lentino left | 10:58 |
| → rgr joined | 10:58 |
|
^Simon^
| Not really. We moved from a single svn repo to a single central git repo + personal repos for each dev. | 10:58 |
|
| and we don't use any kind of repo browser | 10:58 |
|
| unless cd/ls counts :) | 10:59 |
|
mduft
| heh | 10:59 |
|
| yeah, thats what i use too... | 10:59 |
|
| still i need to construct something that our windows-guys can use too ;) | 10:59 |
| → Noldorin_ joined | 11:00 |
|
ndim
| mduft: If there was a git repo for a prototype plugin, and all the other plugins were basically forks of that, that would make merging things between plugins easier. However, I have no idea how to achieve that with your current svn or future git-svn setup. | 11:01 |
|
mduft
| hmmm... ok, thanks anyway. need ${food} to think about it... | 11:02 |
| → _Vi joined | 11:02 |
| → Cromulent joined | 11:04 |
|
j416
| ^Simon^: do you guys do windows dev? | 11:05 |
| → deek0146 joined | 11:05 |
|
j416
| ^Simon^: I'd love to hear your reasons for switching from svn. | 11:06 |
|
^Simon^
| it's all perl scripts/mod_perl stuff. | 11:06 |
|
j416
| ok | 11:06 |
| ← [Po]lentino__ left | 11:07 |
|
^Simon^
| main reason is that svn repo access was setup over ssh and we have a some not-very-technical people doing the website changes - html/css/images but it's all in with the perl code in the repo and didn't want them being able to commit stuff randomly. | 11:07 |
| → verdon joined | 11:08 |
|
^Simon^
| it's too easy to type "svn commit" and have it commit EVERYTHING that's changed instead of specific files. | 11:08 |
| → markelikalderon joined | 11:08 |
| → pi_benjamin joined | 11:09 |
| → [Po]lentino joined | 11:09 |
|
^Simon^
| going the integration manager approach with git means the more technical have to put stuff live, but the less technical can still use commit to save working (but not quite ready) versions of things as often as they like without impacting anything. | 11:09 |
| ← andrewvos left | 11:09 |
| ← deek0146 left | 11:10 |
|
^Simon^
| that and being able to create a branch for each new feature.. very handy.. | 11:10 |
|
| svn branching was a pain. | 11:10 |
| ← hyperair left | 11:10 |
|
^Simon^
| of course, getting the least technical web person using git is proving a bit of a struggle.. "it's too hard.. I'll never learn all these commands.. can you just put these two files live for me" | 11:11 |
| → tibbe joined | 11:14 |
|
j416
| ^Simon^: thanks | 11:14 |
|
| ^Simon^: yeah I can imagine.. | 11:14 |
|
| otoh | 11:14 |
|
| you employed the person | 11:14 |
|
| get the person to learn | 11:14 |
|
| or, employ a person who can actually do the work :) | 11:14 |
|
tibbe
| What's a good flow for maintaing bug fix branches for stable releases? I tried to look into Linus' Linux repo for inspiration but there's only a master branch there. | 11:14 |
|
| ^Simon^ laughs, "Actually, he employed me.. it's the boss!" | 11:14 |
|
j416
| hahahaha | 11:14 |
|
| fire the boss | 11:15 |
| → krfs joined | 11:16 |
|
^Simon^
| To be fair, he's got the hang of building html from templates using the command line | 11:16 |
| ← krfs left | 11:16 |
|
^Simon^
| and it's only really git add/git commit/git push that he needs to learn | 11:16 |
| → fenrig joined | 11:17 |
|
fenrig
| Hi | 11:17 |
| → voker57 joined | 11:18 |
|
j416
| sec phone | 11:18 |
|
fenrig
| i get a "fatal: 'gitosis-admin.git' does not appear to be a git repository" after following the guides on the net for setting up a git :o I tried it 2 times already and I always seem to get the same error (did this on 2 different vm's with a different linux flavor) | 11:19 |
|
voker57
| How to apply patches made by git-format-patch so git would create appropriate commits? git apply only applies the patch | 11:20 |
|
frerich
| ^Simon^: Youre situation sounds familiar. What we did was to write a little script which would run 'git commit -a && git push'. So our non-technical stuff could edit some web pages (or, documentation files in our case) and then run 'git publish' and it's live. | 11:20 |
| ← ntoll left | 11:20 |
|
frerich
| ^Simon^: It's not nice and it doesn't leverage any of the good git provides but it got the job done for him. | 11:20 |
|
| voker57: Try 'git am *.patch' | 11:21 |
|
fenrig
| after doing this: "sudo -H -u git gitosis-init < /path/to/public_key.pub" | 11:21 |
|
voker57
| frerich: Patch format detection failed. | 11:21 |
|
^Simon^
| frerich - he has a habit of dumping all kinds of work-in-progress images all over the filesystem. | 11:21 |
|
| I wouldn't want him adding and committing those files | 11:21 |
|
| fenrig - try gitolite instead :) | 11:22 |
|
voker57
| ah, never mind, patches were mangled a bit | 11:22 |
|
frerich
| ^Simon^: Hm I see. So maybe let the 'publish' script accept file names and/or directories. | 11:22 |
|
| So you run 'git add <arguments>; git commit; git push' | 11:22 |
|
fenrig
| ^Simon^: do u have a good working guide or howto? | 11:23 |
|
| ^Simon^ nods to frerich, "you can create extra git commands by putting a script somewhere to make 'git publish' valid?" | 11:23 |
|
^Simon^
| fenrig - one sec. | 11:23 |
|
frerich
| ^Simon^: Yep, actually there's a neat trick: I think you can have a script called 'git-publish' somewhere in your path and then run 'git publish' (the 'git' command will attempt to run 'git-publish'). | 11:24 |
| ← gretch left | 11:24 |
|
frerich
| ^Simon^: At least that works on Linux and Mac if I remember correctly. Not sure whether it works with batch files on Windows. | 11:24 |
|
^Simon^
| fenrig - https://github.com/sitaramc/gitolite | 11:25 |
| ← fjb4 left | 11:25 |
|
^Simon^
| the docs are pretty straightforward - if you've partially setup gitosis it's quite similar. | 11:25 |
|
| frerich - not a problem, all dev is on linux and mac anyway. | 11:26 |
|
frerich
| ^Simon^: Lucky you! :-) | 11:26 |
| → zealiod joined | 11:26 |
| ← tibbe left | 11:28 |
|
fenrig
| ^Simon^: thx :D | 11:28 |
| → StrawberryKitten joined | 11:28 |
| ChanServ set mode: +v | 11:29 |
| ← StrawberryKitten left | 11:30 |
|
fenrig
| ^Simon^: is there a trick to undo all gitosis witchcraft? | 11:30 |
|
^Simon^
| I think I just removed the gitosis-admin repository and deleted a couple of files. | 11:31 |
|
| there's a doc for migration from gitosis. | 11:31 |
|
| http://sitaramc.github.com/gitolite/doc/migrate.html | 11:31 |
|
| I used the first 4 steps from that, and then went through the install. | 11:32 |
|
| we didn't have a fully working gitosis install at that point. | 11:32 |
| ← OOPMan left | 11:33 |
|
^Simon^
| wasn't worth using gl-conf-convert | 11:33 |
| ← markelikalderon left | 11:34 |
| → simplechat joined | 11:35 |
| ← simplechat left | 11:35 |
| → simplechat joined | 11:35 |
| → eighty4 joined | 11:35 |
| ← zorzar_away left | 11:38 |
| ← Unknown[OFF] left | 11:38 |
| ← avinashhm left | 11:38 |
| → hyperair joined | 11:38 |
| → avinashhm joined | 11:39 |
| ← radarek left | 11:43 |
| ← pi_benjamin left | 11:43 |
| → pfrenssen_ joined | 11:44 |
| ← v0n left | 11:44 |
| ← angelsl left | 11:46 |
| → radarek joined | 11:46 |
|
teweWork
| why does the pre-receive hook get all the commits if i do git push --tags ? | 11:47 |
| ← pfrenssen left | 11:47 |
|
cbz
| how do i see the git dag from the command line? | 11:48 |
|
FauxFaux
| log --graph | 11:49 |
|
esc
| cbz: git log --oneline --graph --decorate --all | 11:49 |
|
FauxFaux
| I use log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | 11:50 |
| → zorzar_away joined | 11:51 |
| → rodrigo_golive joined | 11:52 |
|
rodrigo_golive
| morning all | 11:52 |
|
cbz
| can i put that in as an alias somewhere? | 11:54 |
| → dl9pf_ joined | 11:54 |
| ← dl9pf left | 11:54 |
|
rodrigo_golive
| so, I already installed gitosis successful on my personal server, but now I'm having trouble installing on a virtualized linux system; it appears to not load the .bashrc or .bash_profile PATH var | 11:54 |
| ← Cromulent left | 11:54 |
|
rodrigo_golive
| what I can do now?? | 11:54 |
|
^Simon^
| try gitolite instead? :) | 11:55 |
|
rodrigo_golive
| ^Simon^: why gitolite? | 11:55 |
|
^Simon^
| Are the virtual server and personal server running the same OS? | 11:55 |
|
divVerent
| first of all, because gitolite is still maintained | 11:56 |
| ← kirthi left | 11:56 |
|
rodrigo_golive
| ^Simon^: yes, slack13.1 | 11:56 |
|
divVerent
| but anyway | 11:56 |
|
| how are these files needed by gitosis? | 11:56 |
|
| gitolite does not use them | 11:56 |
|
rodrigo_golive
| divVerent: they contains the path to a bin dir, that have the gitosis-serve command | 11:57 |
|
divVerent
| ah, okay | 11:57 |
|
rodrigo_golive
| and others :p | 11:57 |
| ← pfrenssen_ left | 11:57 |
|
divVerent
| can you give the ssh users a forced command that sets the environment, then starts the gitosis server process? | 11:58 |
|
| of course, if you do that, the setup becomes more and more gitolite-like :P | 11:58 |
|
rodrigo_golive
| divVerent: well, I tried to force with the environmet file on .ssh dir, but not works too | 11:59 |
| → hyperboreean joined | 11:59 |
|
divVerent
| that file must be allowed in the ssh server's configuration | 11:59 |
|
rodrigo_golive
| divVerent: already done it too, and restarted the sshd, but no luck | 12:00 |
|
bluenovember
| FauxFaux, that's very nice, ty. *steals* | 12:00 |
|
divVerent
| see PermitUserEnvironment in man sshd_config | 12:00 |
|
| the option looks very dangerous to enable, though | 12:00 |
| → bauruine joined | 12:01 |
| → fjb4 joined | 12:02 |
|
^Simon^
| could you put something in /etc/profile ? | 12:03 |
|
| or the equivalent | 12:03 |
|
| not ideal, but perhaps use if to test the username and only do it if the username is 'git'? | 12:03 |
|
StuckMojo
| how do i pull in a change to a single file from one branch to another? | 12:04 |
|
divVerent
| ^Simon^: /etc/profile is also not run | 12:04 |
|
| for a non-login shell | 12:04 |
|
^Simon^
| ah. | 12:04 |
|
StuckMojo
| im in a branch, change a few files. one of those file's changes i'd like to merge into master | 12:04 |
|
rodrigo_golive
| ^Simon^: yes, I'm using a "git" user | 12:06 |
|
StuckMojo
| hmmm...git checkout branch; git checkout <commit> filename | 12:06 |
|
| then commit? | 12:06 |
| → borwar joined | 12:06 |
|
rodrigo_golive
| the problem thats is that I'm using exactly the same conf that I have used on my personal server... it's driving me crazy :p | 12:06 |
| ← srisw left | 12:06 |
|
rodrigo_golive
| maybe I'll take a look on gitolite :p | 12:07 |
|
StuckMojo
| ah yes, that did it | 12:07 |
| ← zealiod left | 12:07 |
|
^Simon^
| rodrigo_golive - http://sitaramc.github.com/gitolite/doc/migrate.html | 12:08 |
|
| migration from gitosis. | 12:08 |
|
rodrigo_golive
| ^Simon^: :) thanks | 12:08 |
|
| ^Simon^ ponders actually getting some work done this morning.. | 12:08 |
|
^Simon^
| cbz/FauxFaux - was there an answer to this?<cbz> can i put that in as an alias somewhere? | 12:10 |
| → spaceonline joined | 12:11 |
| → dthigpen joined | 12:12 |
| ← pdelgallego__ left | 12:12 |
| ← pdelgallego left | 12:13 |
| ← pdelgallego_ left | 12:13 |
| → stamina_ joined | 12:14 |
| ← ^Simon^ left | 12:15 |
| → Unknown[OFF] joined | 12:16 |
| ← borwar left | 12:19 |
| → borwar joined | 12:22 |
| ← borwar left | 12:22 |
| ← rgr left | 12:22 |
| → borwar joined | 12:23 |
|
Agos
| I have a local developement repo, and would like to “put” it on the test server... like an invese git clone. what is the way to this? | 12:24 |
|
jettero
| pushing to a checked out repo is naughty | 12:25 |
|
| pushing to a remote is called 'git push' | 12:25 |
|
| pushing to an empty directory might be ssh host (cd somewhere && git clone blarg) or maybe look at rsync | 12:26 |
|
| what is put to you? | 12:26 |
|
cbreak_work
| the inverse to git clone is rm -rf | 12:26 |
| → bartj joined | 12:26 |
|
jettero
| haha | 12:26 |
|
Agos
| ahaha | 12:26 |
|
| I mean | 12:26 |
|
cbreak_work
| remote clone? | 12:26 |
|
Agos
| I would like to clone my local repo to the remote host | 12:27 |
|
| is copying the files the same? | 12:27 |
|
cbreak_work
| usually you wold make bare clone from the other host, or just rsync over a bare clone | 12:27 |
|
jettero
| rsync would work fine... if you're not going to edit there, I would rsync -vaP --exclude .git . remotehost:/path/ | 12:27 |
|
cbreak_work
| if you want to push to it, make sure it is bare | 12:27 |
|
teweWork
| i can't find how can i set merge --no-ff the default | 12:27 |
|
| nvm found it | 12:28 |
| ← fjb4 left | 12:28 |
| → fjb4 joined | 12:28 |
| ← MikhX left | 12:28 |
|
cbreak_work
| teweWork: what was it? | 12:28 |
|
Agos
| let me rephrase. | 12:28 |
|
jettero
| please do | 12:29 |
|
cbreak_work
| teweWork: only solution I can think of is making an alias | 12:29 |
|
| didn't find a config field for it | 12:29 |
|
teweWork
| cbreak_work: git config branch.master.mergeoptions "--no-ff" | 12:29 |
|
cbreak_work
| ! clever | 12:29 |
|
jettero
| are you saying not clever or wow clever? | 12:29 |
| → goshawk joined | 12:29 |
|
cbreak_work
| ! sounds like the attention sound | 12:30 |
| → Ryback_ joined | 12:30 |
|
cbreak_work
| when enemies notice solid snake | 12:30 |
|
jettero
| :) | 12:30 |
|
teweWork
| :) | 12:30 |
|
| i wonder if i can set this globally for every master branch but guess not | 12:31 |
| yaotti → yaotti_aw | 12:31 |
|
cbreak_work
| every master branch? | 12:31 |
|
Agos
| current situation is: normal repo to which I'm committing to is on my laptop. Now the test and production hosts are ready. I'd like to set up a repo on the development server so that I can push to it as a remote | 12:31 |
|
cbreak_work
| you only have one of those per repo | 12:31 |
|
| maybe you can set it with git config --global | 12:31 |
|
teweWork
| yeah i meant that | 12:31 |
|
cbreak_work
| (so it's in ~/.gitconfig) | 12:31 |
| → pdelgallego joined | 12:32 |
| → pdelgallego_ joined | 12:32 |
|
cbreak_work
| Agos: just make a bare clone and push to that | 12:32 |
| → pdelgallego__ joined | 12:32 |
| → OOPMan joined | 12:32 |
|
cbreak_work
| and when you work on the test/production hosts, do a git pull from the bare | 12:32 |
| ← bauruine left | 12:32 |
|
Agos
| cbreak_work then I think I have a very wrong idea of what a bare clone is. | 12:33 |
|
cbreak_work
| there are some people who abuse git for deployment | 12:33 |
|
| Agos: open a .git directory | 12:33 |
|
| a bare clone is approximately that | 12:33 |
|
teweWork
| it works globally | 12:33 |
|
cbreak_work
| a repository you can push to | 12:33 |
|
| teweWork: neat. | 12:33 |
| → bkosborne joined | 12:34 |
|
cbreak_work
| teweWork: although I would hate to have --no-ff in there :) I'd probably add -ff | 12:34 |
|
Agos
| but the point is, I can't go on the server and do git clone --bare /mymachineathome/ | 12:34 |
|
| I'd love to do the inverse | 12:34 |
|
| from my machine | 12:34 |
|
cbreak_work
| Agos: you can do git clone --bare on your machine | 12:34 |
|
| and then rsync the clone over | 12:34 |
|
teweWork
| it's company policy right now (i don't think it's a good idea either but time will tell :)) | 12:34 |
|
cbreak_work
| or ftp | 12:34 |
|
Agos
| got it | 12:34 |
|
| thanks cbreak_work | 12:34 |
| → bauruine joined | 12:35 |
|
cbreak_work
| Agos: you have ssh access to the machine? without that you won't be able to push | 12:35 |
|
| at least not sanely... :) | 12:35 |
|
Agos
| cbreak_work yes, I do :) | 12:35 |
| ← nicoulaj left | 12:35 |
| ← snearch left | 12:35 |
|
teweWork
| and u can override it with --ff :) | 12:36 |
|
Agos
| cbreak_work last question: why bare? | 12:36 |
| → nicoulaj joined | 12:36 |
|
cbreak_work
| Agos: because you can only push to bare repositories (without getting into trouble) | 12:37 |
| → shruggar joined | 12:37 |
|
teweWork
| back to my previous question, why does the pre-receive hook get all the commits if i do git push --tags ? | 12:37 |
|
cbreak_work
| all commits? | 12:37 |
|
| it should get all commits pointed to by tags | 12:38 |
| ← avinashhm left | 12:38 |
| → avinashhm joined | 12:39 |
| → linusoleander joined | 12:39 |
| ← linusoleander left | 12:39 |
|
Agos
| cbreak_work that's interesting. so I'll put my bare clone somewhere (I do have a nice repos directory), then have a full-blown "normal" repo in, say, my /www/ dir which will pull from the bare clone? | 12:39 |
| → Dave^| joined | 12:39 |
|
teweWork
| cbreak_work: it gets every single commit | 12:42 |
| ← bkosborne left | 12:42 |
| ← hegge left | 12:43 |
| ← [Po]lentino left | 12:44 |
|
shruggar
| when I push into gitolite-admin, the message "already on master" is printed. Can this be avoided? | 12:45 |
| ← nullvariable left | 12:46 |
| → lostern joined | 12:46 |
|
shruggar
| it's due to "git checkout -f master", in the post-update hook. But I don't know the intended purpose of that command | 12:46 |
| ← OOPMan left | 12:47 |
|
sitaram
| shruggar: other than redirecting output to devnull, no... | 12:47 |
|
| and I'd rather not do that | 12:47 |
|
shruggar
| well I could --quiet, but same effect, I assume | 12:48 |
| ← lostern left | 12:48 |
| → nullvariable joined | 12:48 |
|
shruggar
| what is it trying to do? I'm wondering if it's something I could detect whether it's necessary | 12:48 |
| → hegge joined | 12:48 |
|
sitaram
| shruggar: does --quiet suppress only "normal" messages while allowing error messages through? (if any) | 12:48 |
|
| shruggar: if so, that would be fine | 12:49 |
|
shruggar
| I believe so | 12:49 |
| → thermal joined | 12:49 |
|
sitaram
| shruggar: ok let me try and confirm it by some experimentation and then add it | 12:49 |
|
shruggar
| but I don't know what notes about differing files being overwritten due to -f count as | 12:49 |
|
sitaram
| shruggar: why is it bothering you anyway? just mentally ignore it :) | 12:49 |
|
shruggar
| sitaram, because it's otherwise completely silent, so it means I get a cron notification instead of none | 12:50 |
|
sitaram
| you're pushing to the admin repo via *cron*? | 12:51 |
|
| shruggar: if you can confirm that --quiet thing under some common checkout errors, could you send me an email? I may not be on for a while now... going drinking ;-) | 12:51 |
|
| --quiet thing ==> does not quiet real errors | 12:52 |
|
shruggar
| yeah, that key updating thing I was trying a couple of days ago. Just updating the key database without storing it in the admin had various pointy corners which I can't recall at the moment but could probably think of if pressed | 12:52 |
|
| ah, right. I was becaause if I then made a regular change in admin, all the generated keys would be cleared out | 12:54 |
|
| I'll send myself an e-mail telling me to play with it when I get home. I'm also going to lunch now | 12:54 |
|
jeeger
| shruggar: sounds like a plan. | 12:55 |
| ← hyperair left | 12:56 |
| ← Sigma left | 12:58 |
|
fenrig
| Hahaha i've got a noob question | 12:59 |
| ← Textmode left | 12:59 |
|
fenrig
| The editor i get when doing "gl-setup" how do i close it without saving anything (I'm used to nano) | 12:59 |
| → roger_padactor joined | 13:00 |
| ← DiGitalX left | 13:01 |
| ← henrikbjorn left | 13:02 |
|
fenrig
| It would be really handy If someone can help me cause I really don't know the editor | 13:02 |
| → MAK-Jr joined | 13:02 |
|
j416
| fenrig: what is the editor? | 13:04 |
|
| (you can set the default editor in git config) | 13:04 |
| → loa joined | 13:04 |
|
loa
| hello how i can remove old commits? | 13:04 |
|
fenrig
| j416: that's what I don't know, it will be the default :o | 13:04 |
|
teukka
| fenrig: if it is vi or vim, type ":q<enter>" | 13:05 |
|
j416
| fenrig: what does it look like? | 13:05 |
|
loa
| for example i want save only 5 last commits. | 13:05 |
|
j416
| loa: do you want to remove them entirely, or do you want to log that you removed them? | 13:05 |
|
fenrig
| black with white text :p and when I press f1 the screen flashes white for a sec | 13:05 |
|
loa
| j416, just remove. | 13:05 |
|
j416
| loa: removing them entirely means you're altering your history, be careful if you have pushed your changes and others have fetched. | 13:05 |
| ← TheBorg[ReGen] left | 13:06 |
|
j416
| loa: man git-reset | 13:06 |
|
jast
| loa: the 'git-reset' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-reset.html [automatic message] | 13:06 |
|
j416
| is your friend. | 13:06 |
|
fenrig
| j416: it's not distinguisable I really don't see any help | 13:06 |
|
j416
| fenrig: are there wigglies on the left hand side? (~)? | 13:06 |
|
loa
| j416, i wont to remove "old" commits, not set to old commit state. | 13:06 |
|
j416
| loa: not sure what you mean by that | 13:07 |
|
| you want to remove commits that are early in history? | 13:07 |
| → project2501a joined | 13:07 |
| → thijso joined | 13:07 |
|
fenrig
| j416: No, it looks a lot like nano but it's not nano :s and i don't think it's vi either | 13:07 |
|
j416
| loa: in that case, man git-rebase | 13:07 |
|
jast
| loa: the 'git-rebase' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html [automatic message] | 13:07 |
|
loa
| j416, yes. | 13:07 |
|
j416
| "git rebase -i" may do what you ask. | 13:07 |
| → Cromulent joined | 13:08 |
|
j416
| for more advanced features, check out man git-filter-branch | 13:08 |
|
jast
| the 'git-filter-branch' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html [automatic message] | 13:08 |
|
j416
| fenrig: weird... o_O | 13:08 |
|
| emacs perhaps? | 13:08 |
|
fenrig
| i tried pressing escape and afterwards X | 13:08 |
|
| and twice escape and afterwards X | 13:09 |
|
j416
| fenrig: if it's emacs, I believe it's ctrl+x ctrl+c | 13:09 |
|
| to exit | 13:09 |
|
| if it's vim, it's :q | 13:09 |
| ← thermal left | 13:09 |
|
j416
| (then enter) | 13:09 |
|
fenrig
| j416: thx it's vim i think but uhm when i do :q it says "No write since last change (:quit! overrides | 13:10 |
|
j416
| fenrig: ok! | 13:10 |
|
| fenrig: if you don't want to save any of the changes you made, do :q! | 13:10 |
|
| <enter> | 13:10 |
|
| (q is shorthand for quit) | 13:11 |
|
fenrig
| j416: :quit! saved me :o but when i do that the file doesn't get saved | 13:12 |
|
j416
| fenrig: of course not | 13:12 |
|
| you said you didn't want to save the changes. | 13:12 |
|
fenrig
| :D got thx :o | 13:12 |
|
j416
| if you wanted to save it you should have done :wq | 13:13 |
|
fenrig
| but uhm I'm getting a "fatal: empty ident [email@hidden.address] not allowed" | 13:13 |
|
j416
| supposedly there was a reason it brought up the editor... | 13:13 |
| ← MAK-Jr left | 13:13 |
| → MAK-Jr joined | 13:13 |
|
j416
| perhaps setting your identity first would help | 13:13 |
| ← MAK-Jr left | 13:13 |
|
j416
| fenrig: (man git-config) | 13:14 |
|
jast
| fenrig: the 'git-config' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-config.html [automatic message] | 13:14 |
| → miloshadzic joined | 13:14 |
|
j416
| (user.name, user.email) | 13:14 |
| → mw joined | 13:15 |
| ← mw left | 13:15 |
| → mw joined | 13:15 |
|
j416
| fenrig: you might also want to set core.editor to something other than vim, if you're not friends with that yet. | 13:15 |
| → hunterloftis joined | 13:15 |
|
fenrig
| j416: I'm following the installation guide, why don't they mention this stuff | 13:16 |
| ← hunterloftis left | 13:17 |
|
j416
| fenrig: because they assume you know what you're doing? :P | 13:18 |
|
| I dunno. | 13:18 |
|
fenrig
| j416: I don't have any exp with setting up git :o and the guide says it's for people without exp :d | 13:19 |
|
j416
| dunno | 13:19 |
| ← roop left | 13:19 |
|
j416
| I never used what you mention | 13:19 |
|
fenrig
| j416: could u give me a better guide then? | 13:20 |
| ← Pewpewarrows left | 13:20 |
|
j416
| to installing git? | 13:20 |
|
| what OS? | 13:21 |
|
| and what is that you've been trying to use? where is it from? | 13:21 |
|
fenrig
| j416: for installing gitolite :) | 13:22 |
|
j416
| oh ok | 13:22 |
|
| never done that | 13:22 |
|
| sorry | 13:22 |
|
fenrig
| j416: linux (archlinux) | 13:22 |
|
j416
| can't help you thre | 13:22 |
|
| there* | 13:22 |
|
esc
| hey, what units will git cat-file output if i ask for size (-s) ? | 13:22 |
|
fenrig
| it's for setting up gitserver :o | 13:22 |
|
j416
| fenrig: perhaps sitaram can help | 13:22 |
|
| his away message says "gone drinking" so maybe he's out for a while :P | 13:23 |
| ← harshu_ left | 13:23 |
| → TheBorg[ReGen] joined | 13:23 |
|
j416
| esc: man git-cat-file explains that | 13:24 |
|
jast
| esc: the 'git-cat-file' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-cat-file.html [automatic message] | 13:24 |
|
j416
| esc: from that man page: "If -s is specified, the size of the <object> in bytes." | 13:24 |
|
schweizer
| hi | 13:24 |
|
esc
| j416: thanks | 13:24 |
|
j416
| yw | 13:24 |
| → banisterfiend joined | 13:24 |
|
schweizer
| how can i make git difff" to word-wrap the output? | 13:24 |
|
| -f | 13:25 |
|
banisterfiend
| how do i squash everything into a single commit when i merge a branch? | 13:25 |
|
j416
| schweizer: perhaps set your terminal to wrap | 13:25 |
|
| schweizer: a diff shouldn't be wrapped, or it isn't a proper diff... | 13:25 |
|
| dunno if there is an option to wrap it. | 13:25 |
|
| banisterfiend: git rebase -i | 13:25 |
|
| banisterfiend: squash first, then merge | 13:26 |
|
banisterfiend
| without rebasing | 13:26 |
|
j416
| then you don't | 13:26 |
|
banisterfiend
| i think there's like a --squash option or some shit i can pass to merge? | 13:26 |
|
malesca
| banisterfiend: git merge --squash mybranch | 13:26 |
|
j416
| ah | 13:26 |
| → juanjoc joined | 13:26 |
|
banisterfiend
| malesca: awesome thanks | 13:26 |
|
malesca
| will put the changes in your working dir, so you can make a single commit from that point | 13:26 |
|
fenrig
| aaarggh setting up git is driving me crazy :o | 13:26 |
|
j416
| that will make a commit that doesn't look like a merge, right | 13:26 |
| → jaql joined | 13:26 |
|
j416
| fenrig: I thought you were setting up gitolite | 13:27 |
|
fenrig
| j416: yeah a git server, tried it already with gitosis and gitolite :o | 13:27 |
|
j416
| gitolite is the way to go of those | 13:27 |
|
| I believe gitosis isn't very active these days | 13:27 |
|
| j416 shrugs | 13:28 |
|
j416
| fenrig: why not use github or similar if you find it hard to set up your own server? | 13:28 |
| → shiba_yu36 joined | 13:28 |
|
fenrig
| j416: cause I want my own gitserver and because it's for my internship to find out how to do it :S | 13:29 |
|
j416
| hahaha | 13:29 |
|
| ok | 13:29 |
|
| then start reading :) | 13:29 |
|
fenrig
| :D i'm doing it for 3 days long now :o i just hate when something doesn't work | 13:29 |
|
j416
| read some more then :) | 13:29 |
|
| for comparison, it took me a full two weeks to set up my first mail server. | 13:30 |
| ← miloshadzic left | 13:30 |
|
fenrig
| j416: XD i know but still it drives me crazy | 13:30 |
| ← pratz left | 13:30 |
|
j416
| fenrig: a hint, make notes of every step you do. You'll thank yourself next time. | 13:31 |
| → rcpeterson joined | 13:31 |
| → srisw joined | 13:32 |
| → kulhas joined | 13:32 |
|
cbreak_work
| bash will do that for you :_ | 13:32 |
| → OOPMan joined | 13:34 |
| → engla joined | 13:34 |
| ← engla left | 13:35 |
| → engla joined | 13:35 |
| → LiamH joined | 13:35 |
|
kulhas
| how can I compile git with static link ? | 13:36 |
|
roger_padactor
| so I untracked some things doing git rm -r --cached and later I did a clean but now a bunch of files from my working tree keep dissapearing when I do commits. how do I get this back to normal and track everything? | 13:36 |
| ← jefferai left | 13:38 |
| ← Teo` left | 13:38 |
| ← avinashhm left | 13:38 |
| → skelterjohn joined | 13:38 |
| ← alnewkirk left | 13:39 |
| → avinashhm joined | 13:39 |
| ← normanrichards left | 13:41 |
| → coderdad joined | 13:42 |
| ← winterweaver left | 13:42 |
| → tizbac joined | 13:42 |
| ← MrJeep left | 13:42 |
| → gretch joined | 13:43 |
| ← jhoepken left | 13:43 |
| ← nicoulaj left | 13:43 |
| → miloshadzic joined | 13:45 |
| → nicoulaj joined | 13:45 |
| → linusoleander joined | 13:47 |
| ← borwar left | 13:48 |
| ← linusoleander left | 13:49 |
| ← voker57 left | 13:50 |
|
selckin
| what you're saying doesn't make much sense | 13:50 |
| → _ollie joined | 13:51 |
| ← _ollie left | 13:51 |
| ← kalusn left | 13:52 |
| ← spaceonline left | 13:53 |
| ← jankoprowski left | 13:55 |
| → jxpx777 joined | 13:55 |
| → ferd joined | 13:56 |
| → salty-horse joined | 13:56 |
| ChanServ set mode: +v | 13:57 |
| ← verdon left | 13:57 |
|
ferd
| hello all - I had a hopefully quick question if anyone could help out | 13:57 |
| ← ptl left | 13:57 |
|
ferd
| i have a non-working directory that represents what should be a git branch | 13:58 |
|
| i want to make a working directory, but preserve the changes in the code | 13:58 |
|
| any tips as to how to do this? | 13:58 |
| → verdon joined | 14:00 |
| → guardian joined | 14:00 |
|
shruggar
| ferd: do you have a git checkout already? | 14:01 |
| ← project2501a left | 14:01 |
|
ferd
| i have the master branch pushed to a remote repository | 14:01 |
| → normanrichards joined | 14:02 |
|
ferd
| so i got that far... and i can clone it, and manually move the changed files to the clone.. but iw as wondering if there was an easier way to do that | 14:02 |
| → emptyflask joined | 14:02 |
|
shruggar
| there are more direct methods, but they all involve you having a local clone | 14:03 |
|
ferd
| ok i can grab a local clone | 14:03 |
|
roger_padactor
| how do I re track everything I untracked? | 14:05 |
| → mdel joined | 14:05 |
| → Pewpewarrows joined | 14:06 |
| → Teo` joined | 14:06 |
| ← Teo` left | 14:06 |
| → Teo` joined | 14:06 |
| → jefferai joined | 14:06 |
| ← urbanmonk left | 14:06 |
|
j416
| roger_padactor: remove from ignore file, add again. | 14:07 |
|
shruggar
| ferd: GIT_DIR=$new_clone/.git GIT_WORK_TREE=$the_dir git add $the_dir; will add all the files from $the_dir into the index. You can then examine the changes with git diff --cached, and commit if it's appropriate | 14:07 |
|
j416
| roger_padactor: you can add without removing from ignore file, but it's sane to remove from the ignore file, of course, if you have such a file. | 14:07 |
| → SeanLazer joined | 14:07 |
| ← Cromulent left | 14:08 |
|
ferd
| ah fantastic - thanks for your help | 14:08 |
| → RaceCondition_ joined | 14:08 |
| RaceCondition_ → RaceCondition | 14:09 |
|
RaceCondition
| hey, I just lost a commot by doing a rebase -i and messing something up, but I cannot seem to find the right commit ID from git reflog... any hints? | 14:09 |
|
fenrig
| I've got the same issue with gitolite as with gitosis | 14:09 |
|
| fatal: 'gitolite-admin' does not appear to be a git repository | 14:09 |
|
| after completing the gl-setup | 14:10 |
|
teuf
| RaceCondition: depends on why you cannot find it exactly :) You can find HEAD sha1 before the rebase, and look at git log $SHA1 | 14:10 |
| ← ben_alman left | 14:10 |
| ← koltroll left | 14:10 |
|
RaceCondition
| teuf: find HEAD sha1? how? | 14:10 |
|
roger_padactor
| so after somethings been tracked if you add it to the ignore it still gets tracked thats why you have to remove it then add it to the ignore? | 14:10 |
| ← jefferai left | 14:11 |
|
RaceCondition
| teuf: actually, I think I got it :) | 14:11 |
|
| thanks! | 14:11 |
| → \mjd joined | 14:11 |
| → posciak joined | 14:11 |
| ← Deesl left | 14:11 |
| ← odol left | 14:12 |
| → cptG joined | 14:12 |
| → rbq joined | 14:12 |
|
fenrig
| How can this be :S I tried gitolite and gitosis and none of them seem to create a existing repository on either debian or archlinux :( | 14:13 |
|
shruggar
| what do you mean by "create a existing repository" ? | 14:14 |
|
| fenrig, creation is generally something which happens to move something from a state of non-existence to a state of existence :) | 14:15 |
|
kulhas
| How can I compile git with static link? | 14:15 |
| → nevyn^ joined | 14:15 |
|
RaceCondition
| teuf: I wish there were "git show-recently-lost-commits" or smth.. would make life so much easier, especially for newcomers | 14:15 |
| → jefferai joined | 14:15 |
|
fenrig
| shruggar: I'm sorry i meant to create a repo :o I followed the sitaramc install gitolite guide but it doesn't work | 14:15 |
|
| everytime i try to check in i get that fatal :( | 14:16 |
| ← jxpx777 left | 14:16 |
| → bkosborne joined | 14:16 |
| → jxpx777 joined | 14:16 |
|
shruggar
| fenrig, hm. Are you using the latest version of git? | 14:16 |
| → meebey joined | 14:16 |
| ← nicoulaj left | 14:16 |
|
teuf
| RaceCondition: maybe git lost-found does that | 14:17 |
|
fenrig
| shruggar: I'm using archlinux, so yes | 14:17 |
|
RaceCondition
| teuf: ah | 14:17 |
|
skelterjohn
| is there an easy way to sync a git project with an hg project? | 14:17 |
| → shyam_iyer joined | 14:17 |
|
RaceCondition
| teuf: git fsck --lost-found | 14:17 |
| → nicoulaj joined | 14:18 |
|
teuf
| ah fsck, I knew there was this too but I couldn't remember its name | 14:18 |
|
shruggar
| skelterjohn, yes, though I don't know where :) | 14:18 |
|
| skelterjohn, it's not part of the main distribution yet | 14:18 |
| → Tasser joined | 14:18 |
|
RaceCondition
| teuf: but that just gives a huge list of commit ID's.. no commit messages or dates or nothing :) | 14:18 |
|
Tasser
| is there a command to start a git server in a repo so people can pull? | 14:19 |
|
skelterjohn
| or vice versa, is fine - i have a project hosted on googlecode/hg and github, but i don't like committing/pushing twice | 14:19 |
|
teuf
| RaceCondition: for sha1 in $(git ...); do git show $sha1; done or so | 14:19 |
| ← guardian left | 14:20 |
| ← nevyn^ left | 14:20 |
|
RaceCondition
| teuf: ah, cool... I thought there had to be smth like git show | 14:20 |
| ← Titosemi1 left | 14:21 |
|
shruggar
| fenrig, just to confirm, what was the URL of the install guide you used? | 14:22 |
| → nothingHappens joined | 14:22 |
|
fenrig
| shruggar: http://sitaramc.github.com/gitolite/doc/1-INSTALL.html | 14:23 |
|
shruggar
| that's the one all right | 14:23 |
|
| which method? | 14:23 |
|
fenrig
| deb/rpm method (but actually I'm using archlinux) | 14:24 |
| → panike joined | 14:24 |
|
RaceCondition
| weird, git show --online sha1 seems to ignore --online | 14:25 |
|
| oneline* | 14:25 |
|
shruggar
| fenrig, are you running the commands exactly as shown, or are you substituting some of your own values for things like username? | 14:26 |
| ← bkosborne left | 14:26 |
|
fenrig
| shruggar: unfortunatly i do :o | 14:27 |
|
| only i created the .pub file with ssh-keygen -t rsa | 14:27 |
|
| because it's not in the guide and i have it from the gitosis guides :) | 14:28 |
|
shruggar
| that should be fine | 14:28 |
|
fenrig
| shruggar: I really don't understand :( | 14:28 |
|
shruggar
| does ~gitolite/repositories exist on the remote server? | 14:29 |
| → srisw_ joined | 14:29 |
|
shruggar
| (making wild guesses here, since I didn't use the package method, I really have no idea where it tries to put it) | 14:29 |
|
fenrig
| yes it does :) | 14:29 |
|
shruggar
| is gitolite-admin.git in there? | 14:30 |
| ← srisw left | 14:30 |
| srisw_ → srisw | 14:30 |
|
fenrig
| yes | 14:30 |
|
shruggar
| and you are doing git clone gitolite@...., not git clone yourname@.... right? | 14:31 |
|
fenrig
| shruggar: Instead i named gitolite git :) because well gitolite is too long XD | 14:31 |
|
| so yes | 14:31 |
| → Anubisss joined | 14:32 |
|
fenrig
| git clone git@localhost:gitolite-admin.git (from another user in another folder) | 14:32 |
| ← jason237 left | 14:32 |
|
shruggar
| what about: git clone git@localhost:gitolite-admin ? | 14:32 |
|
fenrig
| shruggar: also not working | 14:32 |
| → Nazcafan joined | 14:33 |
| → jason237 joined | 14:33 |
|
Nazcafan
| hello | 14:33 |
|
| I made a commit in a detached state, how do I create a branch that includes this commit? | 14:33 |
|
tango_
| git checkout -b branchname | 14:34 |
| ← Gunni left | 14:35 |
|
jeeger
| Hm, where is the git alternative to svn $Revision$ tags? | 14:35 |
| Chillaway → Chillax | 14:36 |
|
shruggar
| jeeger: the keyword you're looking for is "smudge" | 14:36 |
|
| iirc | 14:36 |
|
jeeger
| australian punk band? | 14:36 |
|
shruggar
| man git-attributes | 14:37 |
|
| man gitattributes | 14:37 |
|
jast
| the 'gitattributes' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html [automatic message] | 14:37 |
|
shruggar
| there it is | 14:37 |
|
| look for smudge in there | 14:37 |
| → Lord_Khelben joined | 14:38 |
| → Anti-X joined | 14:39 |
| → montylounge joined | 14:40 |
| → sivy_ joined | 14:40 |
|
fenrig
| shruggar: I don't understand why it's not working :s I'm googling it but none of the solutions work | 14:40 |
| → angelsl joined | 14:41 |
| → sako joined | 14:41 |
|
jeeger
| shruggar: ah, thanks. | 14:41 |
| ← opalka left | 14:41 |
| → ch077179 joined | 14:41 |
| → project2501a joined | 14:41 |
| ← goshawk left | 14:41 |
| → tizzo joined | 14:41 |
|
shruggar
| fenrig: what happens when you try to just ssh git@localhost ? | 14:42 |
| ← torvalamo left | 14:42 |
|
fenrig
| I log in as git using ssh, works perfect :) | 14:42 |
|
shruggar
| fenrig: there's your problem, I bet :) | 14:43 |
|
fenrig
| shruggar: why? | 14:43 |
|
Nazcafan
| tango_, thank you | 14:43 |
|
shruggar
| fenrig: what's in ~git/.ssh/authorized_keys ? | 14:43 |
| → fjb4_ joined | 14:44 |
| ← airborn left | 14:44 |
|
fenrig
| #gitolite start | 14:44 |
|
| ... | 14:45 |
|
| #gitolite end | 14:45 |
| ← project2501a left | 14:45 |
|
shruggar
| just one key, then? And it has a command=" " part at the beginning? | 14:45 |
|
fenrig
| wow :o | 14:45 |
|
| shruggar: yes but | 14:45 |
|
| shruggar: it ends in "stage@archvm" | 14:46 |
|
| instead of | 14:46 |
|
| gip@archvm | 14:46 |
|
| so i tried doing | 14:46 |
|
| git clone stage@localhost:gitosis-admin | 14:46 |
| ← \mjd left | 14:46 |
| ← srisw left | 14:46 |
|
fenrig
| and it warns me about cloning a empty repo :) | 14:46 |
| → leo2007 joined | 14:46 |
| ← fjb4 left | 14:47 |
| ← sonnym left | 14:47 |
|
fenrig
| ls | 14:47 |
|
shruggar
| there you go, then. Looks like the install guide needs to be updated | 14:47 |
|
fenrig
| that's sooo strange | 14:47 |
|
| well i think its because of ssh keygen | 14:47 |
|
| maybe i did it in stage instead of git :o but nobody said it was important :s | 14:48 |
|
shruggar
| I don't think it is | 14:48 |
|
| what did you name it? | 14:48 |
|
fenrig
| shruggar: named what? | 14:48 |
|
shruggar
| the temporary key | 14:48 |
| ← marc_kdab left | 14:48 |
|
fenrig
| id_rsa.pub or something like that | 14:49 |
| → kukks joined | 14:49 |
| ← Nitecon left | 14:49 |
|
shruggar
| hm, okay, no idea :/ | 14:50 |
|
| I really don't know how it would even detect that stage@ was involved | 14:50 |
| ← Error404NotFound left | 14:50 |
|
shruggar
| so my only guess is "something weird about the .deb" | 14:50 |
| → project2501a joined | 14:51 |
| ← simplechat left | 14:51 |
|
fenrig
| shruggar: I used a packagebuild :s | 14:51 |
| → Gunni joined | 14:52 |
|
fenrig
| shruggar: how do i change stage to git :o properly cause stage is not intended for this | 14:52 |
| → avena joined | 14:52 |
| → siganderson joined | 14:52 |
| → dfr|mac joined | 14:52 |
| → zombor joined | 14:52 |
| → Number5_ joined | 14:52 |
|
siganderson
| how do I when I want to select a particular commit in a project tree? | 14:52 |
| → atrofast joined | 14:53 |
|
teuf
| siganderson: what do you mean exactly by "select" ? | 14:53 |
| ← fjb4_ left | 14:53 |
|
shruggar
| fenrig: clone as stage, then rename the keyfile (in the keyfiles, or whatever it's called, dir) from stage.pub to git.pub, then commit and push | 14:54 |
|
fenrig
| shruggar: but it's a empty repo :s | 14:54 |
|
atrofast
| Heya, I want to manage several drupal sites inside a drupal core repository and the problem I have is I don't want to HAVE to download all sites when I clone the core repository (since these sites add up to GBs of data)... Does anyone have a best approach to this? | 14:54 |
|
shruggar
| fenrig, ah, right... | 14:54 |
| ← sako left | 14:55 |
|
siganderson
| teuf, think when you do git-bisect, every step it selects a particular commit, I want to do that having the commit's number | 14:55 |
|
Number5_
| Hello guys, I want to compare my local master with remote master and after googling I did this: git diff master origin/master . There should be no difference in my situation, so is it normal the output will be an empty line? I see no message like "no difference detected" or something. Is this normal? | 14:55 |
|
teuf
| siganderson: you want that the content of your working directory matches what was in commit $SHA1 ? | 14:55 |
|
| siganderson: if so, git checkout $SHA1 will do that | 14:55 |
|
shruggar
| fenrig, okay, you'll probably need to re-install, 'cause it looks like it didn't finish installing. First, copy the existing ~git/.ssh/authorized_key 's key to under the #end line | 14:55 |
|
siganderson
| teuf, exactly :) | 14:55 |
|
| teuf, thank you | 14:55 |
|
teuf
| siganderson: when you do that, you are in what is called "detached head" state, meaning it's not recommended that you do commits or any changes | 14:56 |
|
shruggar
| fenrig, then re-install. I expect that may get you started | 14:56 |
|
| fenrig: come to think of it, I'm completely wrong and I have no clue how to help you :) | 14:56 |
|
siganderson
| teuf, yes, I'm doing that only for testing purposes | 14:56 |
| ← angelsl left | 14:57 |
| → mattp1 joined | 14:57 |
|
teuf
| siganderson: ok, have a nice testing session then | 14:57 |
|
| :) | 14:57 |
| ← mattp_ left | 14:57 |
|
fenrig
| shruggar: I redid the whole thing :s | 14:57 |
|
shruggar
| fenrig, fair enough | 14:58 |
|
fenrig
| shruggar: and the situation is still the same | 14:58 |
|
ferd
| how do I diff unstaged files... | 14:58 |
| ← mattp1 left | 14:58 |
|
ferd
| files that git status says are modified | 14:58 |
|
shruggar
| fenrig, all I can recommend at this point is to try another installation method | 14:58 |
| → bhosie joined | 14:58 |
| → mattp1 joined | 14:58 |
|
shruggar
| ferd, "git diff" ? | 14:58 |
|
ferd
| it only works when i stage a file | 14:58 |
|
shruggar
| ferd: I think you might be using the word "stage" wrong, in that case | 14:59 |
|
ferd
| so, git status says a file is modified but i don't want to stage it | 14:59 |
|
| probably | 14:59 |
|
| haha | 14:59 |
| ← khmarbaise left | 14:59 |
| ← rcpeterson left | 14:59 |
| → rcpeterson joined | 14:59 |
|
siganderson
| teuf, thank you again | 14:59 |
| ← mattp1 left | 14:59 |
|
ferd
| "# Changed but not updated: | 14:59 |
|
| # (use "git add <file>..." to update what will be committed)" | 14:59 |
| ← siganderson left | 14:59 |
|
ferd
| files under that , i cannot git diff | 14:59 |
| → mattp_ joined | 15:00 |
| → xiangfu joined | 15:00 |
| ← project2501a left | 15:00 |
|
shruggar
| "git diff" gives differences between the index (staging area) and the work-tree. "git diff --cached" shows differences between the index and HEAD | 15:00 |
| → Utkarsh_ joined | 15:00 |
|
fenrig
| shruggar: I'm going to reinstall my vm and try again from scratch :) | 15:00 |
| yaotti_aw → yaotti | 15:00 |
|
shruggar
| fenrig, ouch... good luck? | 15:00 |
| ← Number5_ left | 15:01 |
| → Error404NotFound joined | 15:01 |
|
fenrig
| shruggar: It's a good thing I'm doing it on a VirtualMachine first otherwise i'd be real pissed XD | 15:01 |
|
shruggar
| I just read the docs until I thought I understood things, then did it all on the live server... then sitaram held my hand for a while because I misread various things :/ | 15:02 |
| ← Utkarsh left | 15:02 |
|
shruggar
| lesson is: install when sitaram isn't out drinking ;) | 15:02 |
|
| cbreak helped too, I'll mention. credit where it's due. | 15:03 |
| → TheMoonMaster joined | 15:03 |
| → airborn joined | 15:03 |
| → guardian joined | 15:04 |
| ← bauruine left | 15:04 |
| ← verdon left | 15:05 |
| ← shyam_iyer left | 15:05 |
|
fenrig
| shruggar: hahahaha :D i'm so happy I have a VM for testing all of this cause my server is almost perfectly tuned to suit my needs :d | 15:05 |
|
| shruggar: though someone should make a better guide XD | 15:06 |
| → feindbild joined | 15:06 |
|
shruggar
| I'll guess it's a problem with the package | 15:06 |
|
feindbild
| hi ^^ | 15:06 |
| ← RaceCondition left | 15:06 |
| → khmarbaise joined | 15:07 |
|
fenrig
| shruggar: u certeanly don't know pkgbuild from archlinux. It does the manual installation in a fakeroot for me :) and then I just install the package (so actually it extracts itself to /" | 15:07 |
| ← OOPMan left | 15:08 |
| → verdon joined | 15:08 |
|
fenrig
| shruggar: you should check it out, it's a real fine and cool system helps you compile everything in a package :d | 15:08 |
|
feindbild
| is it possible to rewrite the history to be linear? some parameter to rebase so it doesn't stop all the time because of merge-conflicts? | 15:09 |
| → psundaram joined | 15:09 |
|
shruggar
| feindbild, when rebase complains of merge conflicts, it means "merge" in the low-level sense | 15:10 |
| ← psundaram left | 15:10 |
| → fowlduck joined | 15:10 |
| ← shiba_yu36 left | 15:10 |
| → nevyn^ joined | 15:11 |
|
feindbild
| shruggar: yes, but shouldn't it be able to solve it by itself? | 15:11 |
| ← xiong left | 15:11 |
|
shruggar
| feindbild, conflicts are by definition the parts of a merge which git was unable to solve by itself :) | 15:11 |
|
feindbild
| shruggar: like just doing a diff to the previous commit and applying it | 15:12 |
|
shruggar
| feindbild, that's pretty much what it does | 15:12 |
| → webPragmatist joined | 15:13 |
| ← webPragmatist left | 15:13 |
| → webPragmatist joined | 15:13 |
| ← benishor_ left | 15:13 |
| → spaceonline joined | 15:14 |
|
shruggar
| feindbild, sometimes it can be helpful to not rebase everything at the same time. For example, if you're rebasing to a point 20 commits ahead of where you were, start by rebasing to a point just 10 commits, or 5, or 1, and repeating until finished. There are sometimes fewer conflicts, and they generally are easier to resolve or at least justify | 15:14 |
|
feindbild
| shruggar: I'm trying to rebase more like 4.5k commits >.< | 15:15 |
| ← freimatz left | 15:15 |
|
shruggar
| feindbild, sorry, I meant "onto a point..." not, "to a point" | 15:16 |
| ← Drakevr left | 15:16 |
| → Drakevr joined | 15:16 |
|
patrikf
| feindbild: why? | 15:17 |
|
shruggar
| feindbild, may I ask what your situation is? What has caused this? | 15:17 |
| ← EricInBNE left | 15:17 |
| yaotti → yaotti_aw | 15:19 |
| → __name__ joined | 15:19 |
| ← __name__ left | 15:19 |
| → __name__ joined | 15:19 |
| yaotti_aw → yaotti | 15:20 |
|
schweizer
| is it possible to restore deleted files in git? | 15:21 |
|
jeeger
| schweizer: just go back to a previous version? | 15:21 |
|
schweizer
| hm how do i even delete files in git? there is no git delete | 15:22 |
| yaotti → yaotti_aw | 15:22 |
| yaotti_aw → yaotti | 15:22 |
|
schweizer
| ah git rm | 15:22 |
|
shruggar
| schweizer, of course. That's the primary thing version control systems do :) | 15:22 |
|
schweizer
| well but its not always very easy | 15:22 |
| → sako joined | 15:23 |
| → _ollie1 joined | 15:23 |
| → ben_alman joined | 15:23 |
| yaotti → yaotti_aw | 15:24 |
| yaotti_aw → yaotti | 15:24 |
| → sonnym joined | 15:24 |
| ← _ollie1 left | 15:25 |
|
shruggar
| schweizer, well how you do it depends on exactly what you want to do: make it so the delete never happened? make the file NOW be what it was THEN? re-create the file without tracking the file? Roll everything back to what it was when the file last exists? Revert the change which made the file go away, while keeping the log of it having gone away? | 15:26 |
| → Snake_Byte joined | 15:27 |
| ← guardian left | 15:27 |
|
shruggar
| that's at least four different things one might mean by "restore deleted files" | 15:27 |
| → guardian joined | 15:27 |
|
shruggar
| hm, no, it is five. I was thinking two of those were the same, but it only is in a trivial case | 15:28 |
| ← panike left | 15:28 |
|
j416
| hmm | 15:29 |
|
| did he say "restore deleted files"? | 15:29 |
|
| oh | 15:29 |
|
| yes he did. | 15:29 |
|
| j416 hides | 15:29 |
| ← ExtraSpice left | 15:30 |
| → ceej joined | 15:31 |
| yaotti → yaotti_aw | 15:31 |
| ← avena left | 15:31 |
| ← sivy_ left | 15:32 |
|
teweWork
| anyone? http://stackoverflow.com/q/4828629/299788 | 15:32 |
| → sivy joined | 15:33 |
|
doener
| teweWork: it should get each updated ref, not each commit | 15:35 |
|
| teweWork: maybe you're just using some thing like "rev-list <new-state>" which walks the whole history because you don't limit the set? | 15:36 |
|
fenrig
| shruggar: same problem allover again :( | 15:36 |
|
shruggar
| fenrig, congratulations? :) | 15:36 |
| ← rbq left | 15:37 |
|
fenrig
| shruggar: why? | 15:37 |
|
| shruggar: and now "git clone stage@..." doesn't work anymore (i consider that a good thing) | 15:38 |
|
shruggar
| fenrig, check ~git/.ssh/authorized_keys | 15:38 |
|
fenrig
| shruggar: now i get "fatal: 'gitolite-admin' does not appear to be a git repository" | 15:38 |
|
| shruggar: it has a command and stuff so it works :o | 15:39 |
|
| shruggar: I mean the authorized_keys is fine | 15:40 |
| → offby1 joined | 15:40 |
| ← vmiklos left | 15:40 |
| → smolyn joined | 15:41 |
| → ptl joined | 15:42 |
| → psankar joined | 15:42 |
| → spearce joined | 15:44 |
| ← jeeger left | 15:44 |
| → goshawk joined | 15:45 |
| → alvaro_o joined | 15:45 |
| ← saschpe left | 15:46 |
| ← jaql left | 15:46 |
| ← avinashhm left | 15:46 |
|
fenrig
| it really makes no sense :( | 15:47 |
|
feindbild
| shruggar: sorry, was called off to a meeting ^^ boss wants SVN mirror, I wasn't here for 3 months so now history is a mess of merge-commits ^^ | 15:48 |
| ← _pingu left | 15:49 |
|
shruggar
| feindbild, stall him until after this years GSoC? :) | 15:49 |
| → Yuffster joined | 15:49 |
| ← Yuffster left | 15:49 |
|
feindbild
| shruggar: why? xD | 15:49 |
| → Yuffster joined | 15:50 |
| → ROBOTARMY joined | 15:51 |
|
shruggar
| feindbild, because I remain hopeful that git-remote-svn will be finished someday :) | 15:51 |
|
feindbild
| shruggar: :o) | 15:51 |
| → shyam_iyer joined | 15:51 |
| → spike joined | 15:51 |
| → tcurdt joined | 15:51 |
| sivy → sivy_biab | 15:52 |
|
spike
| hi, I've done a git fetch and it pulled down some stuff, but git log doesn't show any of the new commits. I thought the point of fetch was that you could preview the changes before merging them. not sure what I'm doing wrong | 15:52 |
| ← sako left | 15:53 |
| ← jxpx777 left | 15:53 |
|
teuf
| spike: they are in origin/branchname, have you looked there ? | 15:53 |
|
| spike: git log origin/master for example | 15:53 |
| ← spaceonline left | 15:53 |
|
shruggar
| spike: you probably need to specify what you want to view a log of. "git log" defaults to the current HEAD, whereas "fetch" defaults to refs/remotes/<someremote>/<somebranch> | 15:53 |
|
spike
| well, I as doing --all, I thought that looked there too | 15:53 |
| → jxpx777 joined | 15:53 |
|
spike
| s/as/was/ | 15:53 |
| → err_ok joined | 15:54 |
|
shruggar
| hm, okay, I think that /is/ in fact the case | 15:54 |
| ← Error404NotFound left | 15:54 |
|
shruggar
| I think --all sorts by date, though | 15:54 |
| → scelis joined | 15:54 |
| ← gretch left | 15:55 |
| ← guardian left | 15:55 |
|
teweWork
| doener: i think u r right, my fault | 15:55 |
|
spike
| I've only got 5 commits, was just experimenting. the thing is if I throw away the clone and fetch again it says it's got 3 new objects | 15:55 |
|
| so it's clearly fetching something | 15:55 |
| → ChUrP joined | 15:55 |
|
spike
| and show up in log | 15:56 |
| → steph021 joined | 15:56 |
|
spike
| and if I do a git pull the changesets come down as expected | 15:56 |
| → chrisshattuck joined | 15:56 |
|
cbz
| git fetch does a git merge doesn't it? | 15:57 |
|
selckin
| other way around | 15:58 |
|
spike
| no, that's what pull does, altho that's what I thought | 15:58 |
|
cbz
| okay | 15:58 |
|
spike
| s/altho/at least/ | 15:58 |
|
selckin
| git pull = fetch+merge (or rebase) | 15:58 |
| → beatak joined | 15:58 |
| → _psychic_ joined | 15:59 |
|
fenrig
| could it be that i dont have a | 15:59 |
|
| ~/.ssh/config? | 15:59 |
|
shruggar
| fenrig, I doubt it | 16:01 |
|
fenrig
| shruggar: Well i don't have a /home/git/.ssh/config | 16:01 |
| → Error404NotFound joined | 16:01 |
| ← Error404NotFound left | 16:01 |
| → Error404NotFound joined | 16:01 |
| → guardian joined | 16:01 |
| ← bhosie left | 16:02 |
| ← mishok13 left | 16:02 |
| ← aah left | 16:02 |
| → nona joined | 16:02 |
| ← nothingHappens left | 16:03 |
| → necromancer joined | 16:03 |
| ← juanjoc left | 16:03 |
| ← necromancer left | 16:03 |
| → rayners joined | 16:03 |
| → pgib joined | 16:03 |
| → nicoulaj_ joined | 16:04 |
| → Mannequin joined | 16:04 |
| → krfs joined | 16:04 |
| ← krfs left | 16:05 |
|
fenrig
| shruggar: I don't have it :s is this normal | 16:05 |
| → xiong joined | 16:06 |
|
tizzo
| has anyone here used git as a backup tool? | 16:06 |
| → alberto56 joined | 16:06 |
|
shruggar
| tizzo, yes, but they all stopped shortly afterwards because git is not a backup tool | 16:06 |
|
SethRobertson
| I have heard people doing such, but it isn't precisely a good idea. | 16:07 |
|
tizzo
| shruggar & SethRobertson : why not? | 16:07 |
|
SethRobertson
| Isn't there a new linux distribution which puts all files under version control? | 16:07 |
| → aalex_laptop joined | 16:07 |
|
tizzo
| SethRobertson: idk, is there? | 16:07 |
| → spaceonline joined | 16:07 |
|
shruggar
| tizzo, generally one doesn't want the entire history of all backups ever in every place they need to back up | 16:07 |
| ← nicoulaj left | 16:07 |
|
tizzo
| shruggar: fair point, so we'd need to add backup rotation at some point | 16:08 |
|
| my use case is a web app that basically always adds files | 16:08 |
|
| they virtually never get deleted | 16:08 |
|
sitaram
| fenrig: almost everything you have would appear to be "using the wrong key or allowing the wrong key to be used" | 16:08 |
|
SethRobertson
| Foresight Linux | 16:08 |
| → agile joined | 16:08 |
|
sitaram
| fenrig: see http://sitaramc.github.com/gitolite/doc/ssh-troubleshooting.html | 16:09 |
|
fenrig
| sitaram: Can you please explain it to me XD :) | 16:09 |
|
| sitaram: I'm looking at it right now :o | 16:09 |
|
tizzo
| so with git there would be very little unnecessary objects | 16:09 |
|
shruggar
| there we go, someone competent is here. I will now leave :) | 16:09 |
|
sitaram
| fenrig: it also really, *really* helps if you read http://sitaramc.github.com/gitolite/doc/gitolite-and-ssh.html | 16:09 |
| ← fowlduck left | 16:09 |
| → marc_kdab joined | 16:10 |
|
tizzo
| SethRobertson & shruggar : so the only catch with git-as-backup is backup rotation? | 16:10 |
| ← guardian left | 16:10 |
|
SethRobertson
| Git also isn't happy with large binary files | 16:10 |
|
tizzo
| oh I didn't know that, unhappy how? | 16:10 |
|
SethRobertson
| You need at least as much ram as the size of your largest file, possibly a multiple of that size (it used to be like 2.5x, but that may have changed recently) | 16:11 |
|
shruggar
| tizzo: No, in the sense that I wouldn't call "backup rotation" a sane solution when it means "throw out all your old backups" | 16:11 |
| → warbee joined | 16:11 |
| → Schmallon joined | 16:11 |
|
tizzo
| shruggar: huh? | 16:11 |
|
SethRobertson
| shruggar: In theory you could squash commits together to reduce the size and eliminate old backups | 16:12 |
|
| Or outright delete old commits. Still, it requires a lot of infrastructure around git, and is thus no longer pure git | 16:12 |
|
tizzo
| SethRobertson: wouldn't even need to do that, rebase can just drop commits, right? | 16:12 |
|
shruggar
| tizzo: git is not a backup tool. Don't use it as a backup tool. Don't even think about using it as a backup tool. Use a /backup tool/ as a backup tool | 16:12 |
| ← ROBOTARMY left | 16:13 |
| → bhosie joined | 16:13 |
|
SethRobertson
| Dropping commits doesn't necessarily give you a consistent filesystem. Squashing does. If you add a file and later delete it and squash those commits, the file goes away. | 16:13 |
| → _ollie joined | 16:14 |
|
tizzo
| shruggar: I was using a /backup tool/ as a backup tool and I was getting frustrated with it, threw together a 2 bash scripts in about 10 minutes that give me automated git commits and fetches and it's working great | 16:14 |
|
| but I figured there has to be a reason people aren't doing this | 16:14 |
|
| SethRobertson: that makes sense | 16:14 |
|
bremner
| tizzo: large binary files | 16:14 |
|
tizzo
| bremner: is there any doco on the limitations with this? | 16:15 |
|
SethRobertson
| No, but see disucssions on the mailing list | 16:15 |
|
tizzo
| most of the files in my use case are actually pretty small but most are binary (web uploaded images) | 16:15 |
| ← cbreak_work left | 16:15 |
|
tizzo
| SethRobertson: ok, thanks | 16:15 |
| → datagrok joined | 16:17 |
| ← teweWork left | 16:17 |
| → nadavoid joined | 16:18 |
| ← spike left | 16:18 |
|
datagrok
| When using git log --graph, is there a way to force a particular branch to the left-hand side? | 16:18 |
| ← jxpx777 left | 16:18 |
| → ddkilzer joined | 16:19 |
|
fenrig
| sitaram: I read the 2 documents, and well it didn't help me fix it :( | 16:19 |
| → teweWork joined | 16:19 |
| ← Nazcafan left | 16:19 |
|
datagrok
| Oops, I meant: when using git log --graph --all, is there a way to force a particular branch to the left-hand side? | 16:20 |
|
sitaram
| fenrig: alright lets get onto /query to avoid boring everyone with YASP (yet another ssh problem) | 16:20 |
| ← alberto56 left | 16:20 |
|
shruggar
| fenrig: as you're using a VM, trying another install method seems like a very sane method of eliminating (or controlling) variables | 16:20 |
|
fenrig
| sitaram: http://sites.google.com/site/senawario/home/gitolite-tutorial ; i compared what i did with this tut and there is almost no diff, except that I used a pkgbuild from archlinux :o | 16:20 |
|
| join /query | 16:21 |
| ← napster_123 left | 16:21 |
|
fenrig
| eeeuhm what is /query? (long time not used irc anymore) :p | 16:21 |
| → keyvan- joined | 16:22 |
|
sitaram
| fenrig: archlinux... I have no idea what they would do. Please start with one of my versions so I don't have to guess if/what changes they have | 16:22 |
| ← Yuffster left | 16:23 |
| ← dfr|mac left | 16:23 |
| → kuhrt joined | 16:24 |
| ← webPragmatist left | 16:24 |
| ← jdav_gone left | 16:25 |
| → webPragmatist joined | 16:26 |
| ← webPragmatist left | 16:26 |
| → webPragmatist joined | 16:26 |
| → guardian joined | 16:27 |
| → alberto56 joined | 16:27 |
| ← nona left | 16:27 |
| sivy_biab → sivy | 16:27 |
| ← datagrok left | 16:28 |
| ← keyvan- left | 16:29 |
| ← posciak left | 16:29 |
| ← _ollie left | 16:29 |
| ← dest left | 16:30 |
| ← skoop left | 16:30 |
| → jdav_gone joined | 16:30 |
| → Heimidal joined | 16:32 |
|
romv
| i'm doing some repo maintenance and I'm getting rid of some remote branches that we don't use anymore using git push origin :branch_to_delete ... is a git fetch sufficient for the other developer to sync up? if they have any local branches tracking that deleted remote branch will it recreate it if they accidentally push on that branch? | 16:33 |
| → jxpx777 joined | 16:33 |
| ← j416 left | 16:34 |
| ← tizzo left | 16:35 |
| ← kulhas left | 16:35 |
| ← alberto56 left | 16:36 |
| ← nicoulaj_ left | 16:36 |
| Weust` → Weust`afk | 16:37 |
| → nicoulaj_ joined | 16:37 |
| → dreiss joined | 16:37 |
| ← guardian left | 16:37 |
| ← warbee left | 16:37 |
| ← Cro_Crx left | 16:40 |
| → tjholowaychuk joined | 16:40 |
| → rorist joined | 16:42 |
| → alberto56 joined | 16:42 |
| → bcardarella joined | 16:43 |
| → keyvan- joined | 16:44 |
|
homa_rano
| is there a difference between 'git reset HEAD' and 'git reset HEAD .' ? | 16:44 |
| ← alberto56 left | 16:45 |
| ← rorist left | 16:45 |
| ← teweWork left | 16:46 |
| ← marc_kdab left | 16:46 |
| ← envi left | 16:47 |
| → hipstertrash_ joined | 16:47 |
| ← hipstertrash left | 16:47 |
| hipstertrash_ → hipstertrash | 16:47 |
| → jcdny joined | 16:48 |
|
feindbild
| shruggar: /quit | 16:49 |
|
| oops | 16:49 |
|
yrlnry
| homa_rano: 'git reset HEAD .' resets only the paths in the current directory. | 16:49 |
|
feindbild
| ^^ | 16:49 |
| ← feindbild left | 16:49 |
|
yrlnry
| homa_rano: 'git reset HEAD' resets everything | 16:49 |
| → teweWork joined | 16:49 |
|
homa_rano
| yrlnry: ah, so . was a path after all; thanks | 16:49 |
|
yrlnry
| YW | 16:50 |
| ← kpreid left | 16:50 |
| → sako joined | 16:51 |
| ← nevyn^ left | 16:51 |
| ← Schmallon left | 16:51 |
| → stliu joined | 16:52 |
| ← stliu left | 16:52 |
| → stliu joined | 16:52 |
| ← Zhonghua left | 16:52 |
| → guardian joined | 16:53 |
| ← yhager left | 16:54 |
| ← steph021 left | 16:55 |
|
atrofast
| is git submodules the only way to include subdirectories that are not always downloaded when you clone a git repository | 16:55 |
| → cubuanic joined | 16:56 |
| → MattDiPasquale joined | 16:56 |
| → Dieterbe joined | 16:56 |
| ← nicoulaj_ left | 16:56 |
|
Dieterbe
| Hi, i know how to squash commits with git rebase -i, but how do i squash a commit with the very first commit? | 16:57 |
|
| when i do git rebase -i $first_commit, it starts with the commit after $first_commit | 16:57 |
|
| and if i move the squash line to the top, i get "Cannot 'squash' without a previous commit" | 16:58 |
| ← joel_falcou left | 16:58 |
| → aah joined | 16:58 |
| → joel_falcou joined | 16:58 |
|
Dieterbe
| and if i do : git rebase -i $first_commit^ i get: | 16:58 |
|
| fatal: Needed a single revision | 16:58 |
|
| Invalid base | 16:58 |
| ← keyvan- left | 16:58 |
|
offby1
| Dieterbe: I think you've got the right idea; you just need to "spell" that first_commit^ properly | 17:00 |
|
| I don't know why what you did didn't work | 17:00 |
|
| just run 'git log' or something, get the actual SHA1 for the parent of first_commit, and pass that to "git rebase -i" | 17:00 |
| → oriba joined | 17:00 |
| → _psychic__ joined | 17:00 |
|
Dieterbe
| the parent of the first commit? | 17:01 |
|
| afaict, it has no parent | 17:01 |
| ← xiangfu left | 17:01 |
| → bronson_ joined | 17:01 |
| ← teweWork left | 17:02 |
| → Angel-SL joined | 17:02 |
| ← pgib left | 17:03 |
| ← bcardarella left | 17:03 |
| → nevyn^ joined | 17:03 |
| ← _psychic_ left | 17:04 |
| _psychic__ → _psychic_ | 17:04 |
| → jrmuizel joined | 17:04 |
|
offby1
| oh. | 17:04 |
| ← smolyn left | 17:04 |
|
offby1
| well, then you can't squash it into its parent, then can you? | 17:04 |
|
| that's what squashing is -- combining a commit with its parent. | 17:04 |
| → snearch joined | 17:04 |
|
Dieterbe
| i want to squash into the first commit, not the parent of the first commit | 17:04 |
|
offby1
| oh | 17:04 |
|
| ah | 17:04 |
| ← xiong left | 17:05 |
|
offby1
| I dimly recall that this is a sort-of misfeature, or bug, in git; and that there's some trick to get around it. | 17:05 |
| ← dotCOMmie left | 17:05 |
|
offby1
| Unfortunately, my brain is too small to contain the details of the trick | 17:05 |
| ← Angel-SL left | 17:05 |
| → steph021 joined | 17:05 |
| → TheFox21 joined | 17:06 |
| ← steph021 left | 17:06 |
|
Dieterbe
| aha http://stackoverflow.com/questions/598672/git-how-to-squash-the-first-two-commits | 17:06 |
| → Angel-SL joined | 17:06 |
| ← Angel-SL left | 17:06 |
| → angelsl joined | 17:07 |
| ← serard left | 17:08 |
|
offby1
| yeah! | 17:08 |
| → alvarezp joined | 17:08 |
| ← bronson_ left | 17:08 |
|
offby1
| heh ... "OCD heaven". Who gave that guy the right to spy on me? :-) | 17:08 |
|
Dieterbe
| anyway, this will be for Monday, when i have a clear head, weekend is starting! | 17:08 |
| ← MattDiPasquale left | 17:09 |
| ← dreiss left | 17:09 |
| ← ramonmaruko left | 17:10 |
| → patmaddox joined | 17:11 |
| ← tstclair left | 17:11 |
| → ISF joined | 17:12 |
| ← montylounge left | 17:12 |
| ← Utkarsh_ left | 17:13 |
| ← airborn left | 17:14 |
| → hyperair joined | 17:14 |
| → Utkarsh_ joined | 17:15 |
| ← hipstertrash left | 17:15 |
| → amerine joined | 17:15 |
| → steph021 joined | 17:16 |
|
siyb
| how would i create aliases for branches (symbolic-ref?) so that i have an alias like experimental, which always points at the current experimental branch? | 17:16 |
| ← radarek left | 17:16 |
| → ISF_ joined | 17:17 |
| → phishy_ joined | 17:18 |
| → csanz joined | 17:18 |
|
Dieterbe
| is a shell variable ok? | 17:19 |
| → noahcampbell joined | 17:19 |
| → MattDiPasquale joined | 17:19 |
|
patrikf
| siyb: uh, you can do that, but you can also use a branching model where your experimental branch is always named experimental ;-) | 17:19 |
|
Dieterbe
| or that, of course :P | 17:19 |
| → keyvan- joined | 17:19 |
| ← ISF left | 17:20 |
| ← ptl left | 17:20 |
|
patrikf
| or your local branch is named experimental and points to some other remote branch | 17:20 |
|
| s/points to/tracks/ | 17:20 |
| ← joel_falcou left | 17:22 |
| ← keyvan- left | 17:22 |
|
siyb
| well, i was planning on creating an experimental branch at origin, which always points to the branch, which is currently used to develop in | 17:22 |
| ← bhosie left | 17:22 |
| → SimonP86 joined | 17:23 |
| ← giallu left | 17:23 |
|
siyb
| so that origin/experimental tracks origin/0.1 for instance | 17:23 |
| → krfs_ joined | 17:23 |
| ← krfs_ left | 17:23 |
| → bhosie joined | 17:23 |
|
siyb
| when 0.1 becomes sort of stable, experimental should track 0.2 and so on | 17:23 |
| ← tro left | 17:24 |
| ← angelsl left | 17:24 |
|
offby1
| I'd just advance the branch by hand | 17:24 |
|
patrikf
| why don't you develop experimental, and branch off 0.1 when it's stable? | 17:24 |
| ← fenrig left | 17:24 |
|
patrikf
| develop on* | 17:24 |
| ← krosenvold left | 17:24 |
|
patrikf
| or rather, when you start development on 0.2 | 17:24 |
| → angelsl joined | 17:24 |
|
patrikf
| or branch to "stable" and only tag it as 0.1 | 17:24 |
| ← Dieterbe left | 17:26 |
| ← Agos left | 17:26 |
|
siyb
| well, i though git is all about personalizing your workflow (please don't missunderstand me, i am not trying to be cocky!). so there isn't a way to do what i am thinking about, right? | 17:26 |
| ← Badiss left | 17:27 |
| ← nothingmuch left | 17:27 |
|
shruggar
| siyb, git is flexible, but the one which is specifically about personalizing your workflow is bazaar. Git is only about allowing you to have /sane/ workflows ;) | 17:27 |
|
patrikf
| actually, i think symbolic-ref will work out the way you described | 17:28 |
| ← ferd left | 17:28 |
|
patrikf
| our approach here is usually to solve problems instead of merely answering questions | 17:28 |
| ← nevyn^ left | 17:28 |
| ← ptrb left | 17:29 |
| ← coderdad left | 17:29 |
|
siyb
| shruggar: so my workflow isn't sane? :p | 17:29 |
| → marc_kdab joined | 17:29 |
| → ptrb joined | 17:29 |
|
shruggar
| siyb, possibly. I wasn't looking when you described it :) | 17:30 |
| → nona joined | 17:30 |
| → hipstertrash joined | 17:30 |
| ← marc_kdab left | 17:31 |
|
shruggar
| siyb, but I agree with others: if you always want to develop in a branch called "experimental", call it that :) | 17:31 |
|
siyb
| well the idea is to have an experimental branch on which users can stay and a versionized branch. experimental always reflect the newest version, while the versionized branch becomes stable eventually | 17:31 |
| → kpreid joined | 17:31 |
| → GaVrA joined | 17:32 |
| → tro joined | 17:32 |
| → j0rd joined | 17:32 |
| → leavittx joined | 17:32 |
|
siyb
| ok thanks for your help, going to figure that out now | 17:33 |
| → tizzo joined | 17:33 |
| → ben225 joined | 17:33 |
| → nothingmuch joined | 17:34 |
| ← salty-horse left | 17:35 |
| → enherit joined | 17:35 |
|
patrikf
| siyb: you are aware that you can create, delete, rename, modify branches at any time, right? | 17:35 |
|
shruggar
| siyb, your workflow sounds common, but your proposed implementation is not how to do things | 17:36 |
|
patrikf
| siyb: and also that git does not care what branch a commit is created on? | 17:36 |
| → pheaver joined | 17:37 |
| → Cro_Crx joined | 17:37 |
| → bronson_ joined | 17:37 |
| ← bronson_ left | 17:37 |
| → project2501a joined | 17:38 |
| → Schmallon joined | 17:39 |
| ← bigpeted left | 17:39 |
| ← Tasser left | 17:39 |
| ← steph021 left | 17:39 |
| → bronson_ joined | 17:40 |
| ← jotik left | 17:41 |
| ← shruggar left | 17:42 |
| → steph021 joined | 17:42 |
| ← angelsl left | 17:44 |
| ← sivy left | 17:44 |
| → hobodave joined | 17:44 |
| ← ilteris_ left | 17:45 |
|
siyb
| shachaf: what do you propose then? | 17:45 |
| → ilteris_ joined | 17:45 |
|
siyb
| sorry ... wrong nick | 17:45 |
| ← bronson_ left | 17:46 |
|
siyb
| patrikf: i do, but i am not sure how that could be helping me now | 17:46 |
|
| i know git manages objects which may have relations between them | 17:46 |
| ← PigeonFriend left | 17:47 |
| → marc_kdab joined | 17:47 |
| ← alvarezp left | 17:47 |
| ← nona left | 17:48 |
| → linusoleander joined | 17:48 |
|
siyb
| patrikf: may i hear your proposal. i am trying to implement a system where there is an experimental branch pointing at a versionized branch, both branches coexist | 17:48 |
| ← kpreid left | 17:49 |
|
siyb
| i mean i could create a hook of some kind which syncs two branches on push or something, but i am not sure | 17:49 |
|
patrikf
| siyb: i just don't get why you want that versionized branch | 17:50 |
|
| you can create it later on, when "experimental" moves on to be something else | 17:50 |
| → justin-george joined | 17:50 |
| → smolyn joined | 17:50 |
|
siyb
| if you are running debiann, you got the lenny -> stable mapping. if your sourcefile contains lenny instead of stable, you will remain on lenny, even though stable might have advanced | 17:51 |
| → nona joined | 17:51 |
| → lresende joined | 17:52 |
|
siyb
| if you are on stable, you will always be on the stable release, no matter which codename this release has | 17:52 |
| ← aalex_laptop left | 17:52 |
| → sm joined | 17:52 |
| → dfr|mac joined | 17:53 |
|
patrikf
| yes. so? | 17:53 |
|
sm
| g'day all. For a normal project tag, eg of a release, should I use git tag -a ? or just git tag ("lightweight tag") ? | 17:53 |
|
siyb
| patrikf: well that is the system i am trying to implement ... | 17:54 |
|
| that mean that the versionized branch and the experimental branch need to coexist and be linked in some manner, right? | 17:55 |
|
patrikf
| siyb: you are doing development for debian? | 17:55 |
| ← skelterjohn left | 17:56 |
| → rorist joined | 17:56 |
|
siyb
| patrikf: no. i just want to apply a similar system | 17:57 |
| ← TheMoonMaster left | 17:57 |
|
patrikf
| that's what i thought... but a git repository is not a debian package archive... | 17:57 |
| ← leavittx left | 17:57 |
|
patrikf
| i still don't know | 17:58 |
|
| sigh | 17:58 |
| → coderdad joined | 17:58 |
|
patrikf
| i still don't know *why* you want that experimental refs, but if you insist, by all means go ahead and implement it with symbolic-ref | 17:59 |
| → leavittx joined | 17:59 |
| ← LouisJB left | 17:59 |
| ← oriba left | 18:00 |
| ← marc_kdab left | 18:01 |
|
siyb
| patrikf: ok, fair enough. thanks for your help/time :) | 18:01 |
| → yhager joined | 18:01 |
| → saschpe joined | 18:02 |
| ← psankar left | 18:02 |
| ← miloshadzic left | 18:02 |
| ← _psychic_ left | 18:03 |
| → _psychic_ joined | 18:03 |
| Weust`afk → Weust` | 18:04 |
| Weust` → Weust`afk | 18:05 |
| → nothingHappens joined | 18:05 |
| ← nothingHappens left | 18:06 |
| → shruggar joined | 18:06 |
| → nothingHappens joined | 18:09 |
| → jarrod_ joined | 18:09 |
| ← nothingHappens left | 18:11 |
|
sm
| after doing tag -a, how do/will I see the tag in git log ? | 18:11 |
|
Lord_Khelben
| "git tag" will show it | 18:12 |
| → nothingHappens joined | 18:12 |
| ← rayners left | 18:13 |
| → henrikbjorn joined | 18:13 |
| → WebDragon joined | 18:14 |
|
sm
| thanks. Is there an easy way to list tags in time sequence with commits at the command line ? | 18:14 |
| ← jmil left | 18:15 |
|
cbreak
| sm: git log --decorate | 18:15 |
| → diphthong joined | 18:15 |
| ← banisterfiend left | 18:15 |
| ← bluenovember left | 18:15 |
| ← KipMacy left | 18:15 |
| ← project2501a left | 18:15 |
|
sm
| thanks | 18:16 |
| ← MikeyB left | 18:16 |
| → MikhX joined | 18:16 |
|
sm
| next q: I'm moving a github wiki repo to a full github repo. I cloned the wiki, did git remote rm origin and git remote add origin ...stuff recommended by github for the new repo... | 18:17 |
| → dreiss joined | 18:17 |
|
sm
| I was able to push to the new repo by name, but what do I need to do to make simple git push/git pull work ? | 18:18 |
| → sivy joined | 18:18 |
| ← leavittx left | 18:18 |
|
sm
| the error implies I need to configure/adjust the default refspec or something | 18:18 |
| → elmob joined | 18:18 |
|
sm
| look like I can configure the push.default preference. I want to be sure to configure this repo in a clean "default" way, so I don't cause confusion down the road | 18:20 |
|
Lord_Khelben
| if you do once "git push origin master", after that git push doesn't work ? | 18:20 |
|
sm
| Lord_Khelben: right. https://gist.github.com/800682 | 18:20 |
| → kenichi joined | 18:21 |
| ← yotaff left | 18:21 |
|
Lord_Khelben
| i don't get this message, but you can choose a behavior you want | 18:23 |
|
| for example git config push.default matching | 18:23 |
|
| wait to hear from some more knowledgeable though | 18:23 |
|
sm
| thanks, I've done that and it has fixed push | 18:24 |
|
| git pull gives different advice | 18:24 |
|
| ie, configure four variables in a configuration file - https://gist.github.com/800686 | 18:24 |
| ← tizzo left | 18:25 |
|
cbreak
| sm: do a git push -u with the correct settings | 18:25 |
| ← darkredandyellow left | 18:26 |
|
cbreak
| that will set the upstream for every local ref you push (well, branches) | 18:26 |
| → tizzo joined | 18:26 |
|
sm
| my git 1.6.3.3 doesn't support that | 18:26 |
| → xiong joined | 18:27 |
|
sm
| hopefully it's equivalent to the git config I just did | 18:27 |
| → marc_kdab joined | 18:27 |
| → j416 joined | 18:27 |
|
sm
| cbreak: would that take care of pull as well ? | 18:27 |
| → volano joined | 18:28 |
| → leavittx joined | 18:28 |
|
cbreak
| sm: try :D | 18:28 |
| ← volano left | 18:28 |
|
cbreak
| get a new git | 18:28 |
|
| 1.7 is ancient | 18:28 |
| → vortec joined | 18:28 |
|
vortec
| hi there | 18:28 |
| ← ymasory left | 18:28 |
| → SIGBUS joined | 18:28 |
| ← jxpx777 left | 18:29 |
|
vortec
| does "git show" have a functionality to show all commits in all branches? | 18:29 |
|
Lord_Khelben
| sm if you do "git config branch.master.remote origin" and "git config branch.master.merge refs/heads/master" does pull work then ? | 18:30 |
|
sm
| Lord_Khelben: yes, that takes care of it | 18:30 |
|
| phew. thank the lord | 18:30 |
| → ksmith joined | 18:31 |
|
ksmith
| hey guys | 18:31 |
|
cbreak
| vortec: no, git show only shows one thing | 18:31 |
|
| vortec: you want git log | 18:31 |
|
| just use git log --all | 18:31 |
|
| throw in more options if you want more stuff | 18:31 |
| → FylGood joined | 18:31 |
|
ksmith
| is there some way to look at all the configuration options I have set? | 18:31 |
|
sm
| next q. After pushing, how come I don't see the tag that git tag lists locally, at https://github.com/simonmichael/ledger-website ? | 18:31 |
| → ldh joined | 18:32 |
|
cbreak
| ksmith: git config -l | 18:32 |
|
| sm: pushing doesn't push tags by default | 18:32 |
|
| use git push --tags | 18:32 |
|
ksmith
| cbreak: thanks a lot :) | 18:32 |
|
| just getting started with git ... | 18:32 |
|
sm
| I see, thanks | 18:32 |
| → LouisJB joined | 18:33 |
|
vortec
| cbreak: thank you very much :) | 18:34 |
| ← tcurdt left | 18:34 |
|
sm
| it's strange to me that tags aren't shown prominently along with changes, eg at https://github.com/simonmichael/ledger-website/commits . WRT to the github ui, I guess I need to think of them as extra branches. But it's odd not to see when they happened | 18:35 |
| ← sraue left | 18:35 |
|
cbreak
| sm: maybe it only shows annotated tags | 18:36 |
|
sm
| I think that's what I made.. git tag -a -m 'some message' 'some-tag-name' | 18:37 |
| → jonata__ joined | 18:37 |
| ← jonata__ left | 18:38 |
|
cbreak
| hmm. | 18:38 |
| ← tatsuya left | 18:38 |
| → benishor_ joined | 18:38 |
| ← malfy left | 18:38 |
| → thiago_home joined | 18:38 |
| ← marc_kdab left | 18:39 |
| → jga joined | 18:39 |
| → kipras joined | 18:40 |
| → marc_kdab joined | 18:40 |
| ← resmo_ left | 18:40 |
| ← nothingHappens left | 18:41 |
| → malfy joined | 18:41 |
| → nothingHappens joined | 18:42 |
|
romv
| i'm doing some repo maintenance and I'm getting rid of some remote branches that we don't use anymore using git push origin :branch_to_delete ... is a git fetch sufficient for the other developer to sync up? if they have any local branches tracking that deleted remote branch will it recreate it if they accidentally push on that branch? | 18:42 |
| → sraue joined | 18:42 |
|
cbreak
| romv: git remote prune | 18:43 |
|
romv
| aah | 18:43 |
|
cbreak
| that will not delete local branches | 18:43 |
|
| but it will delete local remote tracking branches | 18:43 |
|
romv
| which you can't push right? | 18:43 |
|
| which means you can't push anymore* | 18:44 |
| → booginga joined | 18:44 |
|
cbreak
| sure you can push | 18:44 |
|
ksmith
| what do you guys recommend to get started with git? | 18:44 |
|
cbreak
| but you have to do it intentionally | 18:44 |
|
| default pushing only pushes matching, and if you delete the remote, there won't be anything that matches | 18:45 |
|
Nugget
| ksmith: an open terminal window and a few hours to experiment | 18:45 |
|
romv
| cbreak: right | 18:45 |
|
| cbreak: perfect ... thanks | 18:45 |
|
cbreak
| ksmith: http://eagain.net/articles/git-for-computer-scientists/ | 18:45 |
| ← FylGood left | 18:45 |
|
ksmith
| Nugget: hehehe, I'll need some info on what things are, first. I don't really get the whole concept of git right now. | 18:45 |
| ← dr_win left | 18:46 |
| ← tvw left | 18:46 |
| ← cptG left | 18:46 |
|
Nugget
| ksmith: I've been using it for years and I don't get the whole concept either. You're in good company. :) | 18:46 |
| ← aah left | 18:47 |
| ← MattDiPasquale left | 18:47 |
| → miloshadzic joined | 18:48 |
| → dr_win joined | 18:49 |
| ← thiago_home left | 18:50 |
| → radarek joined | 18:50 |
|
cbreak
| you two, read that page and you will get the concept | 18:50 |
|
| ksmith: man gitglossary also helps | 18:51 |
|
jast
| ksmith: the 'gitglossary' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gitglossary.html [automatic message] | 18:51 |
| → giallu joined | 18:51 |
| → thiago_home joined | 18:51 |
|
ksmith
| nugget: well, to be honest, I'm just starting software development. I'd like to use some kind of svm for my private projects and hope git is easy enough to learn. | 18:52 |
|
Nugget
| Does anyone have any idea why adding a pre-receive hook to a repo causes it to hang on pushes about half the time? It just sticks on git-receive-pack and never finishes | 18:53 |
|
| but not every time, just some of the time | 18:53 |
| → theoros joined | 18:53 |
| ← theoros left | 18:53 |
| → theoros joined | 18:53 |
| → bauruine joined | 18:54 |
|
ksmith
| cbreak: thanks for the links :) | 18:54 |
|
Nugget
| it doesn't appear to ever actually run the hook, but the hook being there induces the hang | 18:54 |
| → sdwrage joined | 18:54 |
|
Nugget
| git version 1.7.3.5 | 18:54 |
| → timepilot joined | 18:55 |
|
sm
| ksmith: git is not the easiest, but it's certainly one of the useful ones to know | 18:56 |
| → ki__ joined | 18:56 |
| ← petrux left | 18:56 |
|
j416
| sm: now that is entirely subjective | 18:56 |
|
cbreak
| I'd say git is easier than svn | 18:56 |
|
j416
| personally I think git is the easiest | 18:56 |
|
Lord_Khelben
| nowadays it isn't so difficult to use | 18:56 |
|
cbreak
| no need to set up a server | 18:56 |
|
Lord_Khelben
| very easy i would say | 18:56 |
|
cbreak
| you can rewrite history if you want | 18:56 |
|
| you can easily communicate with others | 18:57 |
|
| you can commit as much as you want, branch, merge, tag | 18:57 |
|
ksmith
| sm: I think they're moving to git where I work as well, so it'll come in handy when they do. | 18:57 |
|
j416
| ksmith: lucky bastard. | 18:57 |
|
| :P | 18:57 |
|
ldh
| be glad you're not still stuck in CVS land | 18:58 |
|
j416
| SVN land isn't very comfortable either | 18:58 |
|
ksmith
| ldh: well, I think it's kinda funny. they were using cvs. then one guy came along: we can keep all the data inside our git repository without any trouble. | 18:59 |
| → TheMoonMaster joined | 18:59 |
|
j416
| what, they checked in the git repo into cvs? | 19:00 |
|
| lol | 19:00 |
|
ldh
| ksmith: i have to use it because we've got a lot of build/deployment process built around CVS. but i still use git in stealth mode as my personal vcs | 19:00 |
| ← disappearedng left | 19:01 |
| ← shyam_iyer left | 19:01 |
|
Nugget
| When I migrated us from cvs to git it resulted in a profound increase in developer activity and productivity | 19:01 |
|
ksmith
| j416: I think it's the other way around. | 19:01 |
| ← nona left | 19:04 |
| ← rorist left | 19:04 |
| ← spaceonline left | 19:05 |
|
divVerent
| Nugget: when I migrated from cvs to dumping random stuff at random places in the file system, you know, directories named foo_old, foo_really_old, foo_older, foo_oldest, foo_older_than_oldest, I also got a big increase | 19:05 |
|
| just kidding, just saying, this comparison doesn't mean much for a SCM where it is a nontrivial task to just get a local copy of the files in the repo | 19:05 |
|
| export CVSROOT=..., or cryptic long -d:pserver:foo@bar.com:/path my ass (and "what was the module called again, sourceforge does not list them") :P | 19:06 |
| ← csanz left | 19:06 |
|
bremner
| cvs log. that is all. | 19:06 |
| → bookwar1 joined | 19:06 |
|
divVerent
| bremner: which part | 19:07 |
|
| the part "global revisions are overrated" | 19:07 |
|
| or the part "everyone knows what 1.3.2.2.1.109.2.1 stands for"? | 19:07 |
|
bremner
| it's a holistic pain thing | 19:07 |
|
cbreak
| commit dec32a4644330965d2236ba199dc24b943f644a1 | 19:07 |
|
divVerent
| seriously, cvs managed to have even more cryptic revision specifiers than git :P | 19:07 |
|
| with git one at least KNOWS they mean nothing :P | 19:07 |
|
cbreak
| it's a hint. | 19:08 |
|
divVerent
| cbreak: is that commit published anywhere? | 19:08 |
|
| Google doesn't have it in the index :P | 19:08 |
| ← foocraft left | 19:08 |
|
cbreak
| it's private to my company | 19:08 |
|
| well, the one I work for | 19:08 |
|
divVerent
| but seriously, it would be nice if there were some global index of git revisions | 19:08 |
| ChanServ set mode: +v | 19:08 |
|
divVerent
| so you have a revision hash, and get clone URL and branch of it :P | 19:09 |
| → saysjonathan joined | 19:09 |
|
tango_
| ldh: btw if the cvs stuff only needs a server, git can fake one | 19:09 |
|
divVerent
| I had hoped Google does it, but my quite public project is not indexed | 19:09 |
|
ldh
| tango_: good to know. unfortunately in my case it involves lots of developers (who may be hesitant to switch) and it's out of my hand | 19:09 |
|
| s | 19:09 |
|
bookwar1
| hello, nice silent company you have here ) | 19:10 |
| → _iron joined | 19:10 |
|
tango_
| I assume firing them is not an option, uh? ;-) | 19:10 |
| ← pdelgallego left | 19:11 |
| ← pdelgallego_ left | 19:11 |
| ← pdelgallego__ left | 19:11 |
| → foocraft joined | 19:11 |
| → deadlyicon joined | 19:12 |
| → raz joined | 19:13 |
| → markelikalderon joined | 19:13 |
|
bookwar1
| help me please with the small question: how to get the current revision of a folder with subfolders from a huge remote git repository? | 19:13 |
| ← leavittx left | 19:13 |
| → PigeonFriend joined | 19:13 |
|
cbreak
| folders don't have revisions | 19:13 |
| ← crashanddie left | 19:13 |
|
cbreak
| you want to get the currently checked out HEAD hash? | 19:14 |
|
| git rev-parse HEAD will give that | 19:14 |
|
j416
| cbreak: I'm going to guess he wants the latest version of the project without its history | 19:14 |
|
Lord_Khelben
| bookwar1: you want to clone a repo without all the commits ? | 19:14 |
|
cbreak
| git rev-parse master? | 19:14 |
|
Lord_Khelben
| then use --depth in clone | 19:14 |
| → bmahe joined | 19:14 |
|
bookwar1
| j416: yes, and not the whole project but some part of it | 19:15 |
|
j416
| bookwar1: then as Lord_Khelben says | 19:15 |
| → pdelgallego_ joined | 19:15 |
| → pdelgallego joined | 19:15 |
|
j416
| git clone with --depth | 19:15 |
| → pdelgallego__ joined | 19:15 |
|
j416
| bookwar1: man git-clone | 19:15 |
|
jast
| bookwar1: the 'git-clone' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-clone.html [automatic message] | 19:15 |
|
cbreak
| git can not clone only parts of a project | 19:15 |
|
| you can either clone all of it, or nothing. all --depth allows you to do is limit history | 19:16 |
|
| but such a repository is gimped | 19:16 |
| → kakos joined | 19:16 |
|
cbreak
| and won't work in many situations | 19:16 |
|
FauxFaux
| Also it's incredibly bad at actually saving space in practice. | 19:16 |
|
j416
| bookwar1: if the project has a website with gitweb or so, you should be able to get an archive with just some specific subdirectory. | 19:16 |
|
cbreak
| I don't think it'll save much space indeed | 19:16 |
| → keyvan- joined | 19:16 |
|
cbreak
| but why would you only want part of a project? | 19:16 |
|
| it'll be of no use due to dependencies | 19:17 |
|
j416
| perhaps he's just interested in a particular file or collection of files | 19:17 |
| → joel_falcou joined | 19:17 |
|
| j416 shrugs | 19:17 |
| ← miloshadzic left | 19:17 |
|
FauxFaux
| There's no reason you can't request only HEAD's tree and relevant children over dumb transports. ¬_¬ | 19:17 |
|
kakos
| I have a tracked file in my git repo that is stable and doesn't have any significant code changes, except for one line which is used point the program to a server. Devs change it to their localhost and consistently push up that file with the change because they are lazy and use "git commit -a". Is there a way to tell git to ignore an already tracked file? | 19:17 |
| → dekroning joined | 19:17 |
|
cbreak
| FauxFaux: there is | 19:18 |
|
FauxFaux
| kakos: man git-update-index --assume-unchanged | 19:18 |
|
jast
| kakos: the 'git-update-index' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-update-index.html [automatic message] | 19:18 |
|
dekroning
| how do I checkout a remote branch? git checkout origin/foobar right ? | 19:18 |
|
cbreak
| dumb transports are dumb | 19:18 |
|
FauxFaux
| dekroning: On modern enough versions, yeah. | 19:18 |
|
cbreak
| they can't unpack pack files and only send you the things you want | 19:18 |
| → bronson_ joined | 19:18 |
|
kakos
| FauxFaux: Thanks | 19:18 |
|
j416
| kakos: why don't they have their own branches? | 19:18 |
|
dekroning
| FauxFaux: what does that mean exactly? :) | 19:18 |
|
cbreak
| dekroning: don't do that | 19:18 |
|
| dekroning: use git checkout -t origin/foobar | 19:18 |
|
dekroning
| cbreak: aha why not ? | 19:18 |
|
cbreak
| because it will detach your head otherwise | 19:18 |
|
dekroning
| cbreak: -t is track right ? | 19:18 |
|
j416
| kakos: easy enough to have a local branch with local settings and rebase that | 19:18 |
|
cbreak
| yes | 19:18 |
|
bookwar1
| j416: your telepathy works great ) | 19:18 |
|
FauxFaux
| Oh, is it actually "git checkout foobar" that works in modern versions? | 19:18 |
|
kakos
| j416: Because we're highly undisciplined and it's like herding squirrels to get them to do things half-right, let alone full-right | 19:18 |
|
cbreak
| it implies -b foobar | 19:19 |
|
j416
| bookwar1: cool | 19:19 |
|
cbreak
| FauxFaux: yes | 19:19 |
|
| FauxFaux: but I don't think it's good to rely on it in here | 19:19 |
|
| since many people have old gits | 19:19 |
|
FauxFaux
| Debian'll release soon, then the problem will go away. | 19:19 |
|
cbreak
| no, they'll probably only update to 1.6 | 19:19 |
|
FauxFaux
| 1.7.2.3 is code-frozen. | 19:20 |
| ← MikhX left | 19:20 |
| → LouisJB_ joined | 19:20 |
|
cbreak
| do they still have mplayer rc2? after four years? :) | 19:20 |
|
| or did they finally give up on stupid releases and ust get svn head | 19:20 |
| ← LouisJB left | 19:22 |
| LouisJB_ → LouisJB | 19:22 |
| → MattDiPasquale joined | 19:23 |
|
stew
| it looks like it will be "1.0~rc3++final". excellent version string | 19:23 |
| → opalka joined | 19:23 |
| ← foocraft left | 19:23 |
| → coletg joined | 19:24 |
| → melvinram joined | 19:24 |
| ← bookwar1 left | 19:24 |
|
melvinram
| is there a way to undo a commit without loosing the changes? | 19:24 |
|
| I committed too much | 19:24 |
|
| I want to undo the commit and redo them as smaller commits | 19:25 |
| ← HG` left | 19:25 |
|
FauxFaux
| melvinram: FAQ undo last commit. | 19:25 |
|
cbreak
| melvinram: git reset --mixed HEAD~1 | 19:26 |
|
| you can leave away --mixed since it's the default | 19:26 |
|
| but do NOT write in --hard or --keep | 19:26 |
| ← LouisJB left | 19:27 |
|
melvinram
| thank you! | 19:27 |
|
kakos
| FauxFaux: Thank you once again. You have saved what little hair I have left | 19:27 |
| ← GaVrA left | 19:27 |
| → peshalto joined | 19:28 |
| → MikhX joined | 19:28 |
| → pantsman- joined | 19:28 |
| ← sm left | 19:28 |
| → Evious joined | 19:29 |
| → GaVrA joined | 19:30 |
| → MikhX_ joined | 19:30 |
| ← PigeonFriend left | 19:32 |
| → montylounge joined | 19:34 |
| → miloshadzic joined | 19:34 |
| → Kronuz joined | 19:34 |
|
Kronuz
| hello | 19:34 |
| ← rodrigo_golive left | 19:34 |
| → tstclair joined | 19:35 |
| ← coderdad left | 19:35 |
|
Kronuz
| hey, if I created a repository using git init… then I just put the .git folder in my server to serve my repo... | 19:35 |
| ← MikhX left | 19:35 |
| MikhX_ → MikhX | 19:35 |
|
Kronuz
| I get this error when I try to clone from it: error: The requested URL returned error: 500 while accessing https://git.myserver.com/git/project/info/refs | 19:35 |
|
| how do I create that refs? | 19:36 |
| ← ksmith left | 19:36 |
|
Lord_Khelben
| after git init, did you add any content and make commits ? | 19:36 |
| → foocraft joined | 19:36 |
|
Kronuz
| Lord_Khelben: yes, I did | 19:37 |
|
| then I copied my .git to my server | 19:37 |
|
| I thought that was the easiest to publish my repo | 19:37 |
|
| (until I got that "missing refs" error) | 19:37 |
|
Lord_Khelben
| normally you create a bare repo on the server and from your normal repo you push to it | 19:37 |
|
AAA_awright
| Kronuz: What clone method are you using? | 19:38 |
|
Kronuz
| just git clone | 19:38 |
|
| from a web server | 19:38 |
|
AAA_awright
| In the past you've had to run git update-index or something | 19:38 |
|
| If it's a stupid clone, like HTTP | 19:38 |
|
Kronuz
| it's the "smart" one or something | 19:38 |
|
| thru https | 19:39 |
|
AAA_awright
| That just means it's encrypted it has nothing do do with smart | 19:39 |
|
Lord_Khelben
| you mean git update-server-info | 19:39 |
|
AAA_awright
| If you want smart over HTTP you have to setup some CGI program | 19:39 |
|
| Kronuz: You should just git push to the repository if you can | 19:39 |
| ← ki__ left | 19:40 |
|
Kronuz
| AAA_awright: the other repos are working fine | 19:40 |
|
AAA_awright
| Yeah, git update-server-info | 19:40 |
|
Lord_Khelben
| also the config from the .git folder you copied will have bare=false | 19:40 |
| → ki__ joined | 19:40 |
| → jpalmer joined | 19:40 |
|
Lord_Khelben
| when it should have bare=true | 19:40 |
|
| change that too | 19:40 |
|
AAA_awright
| I'm not sure what that does but yeah set that too | 19:40 |
|
| How it handles HEAD? | 19:40 |
|
jpalmer
| quick question, if I want to migrate a repo from one server to another, can I just do a git clone, change the origin to the other (new) server, and git push? will it retain all the previous commits and tags/branches? | 19:41 |
| → nstorer joined | 19:41 |
|
Kronuz
| git update-server-info returns command doesn't not exist | 19:41 |
|
| I changed the bare to true | 19:41 |
|
| update-index did work, but it didn't add the refs to info/ | 19:42 |
| ← nstorer left | 19:42 |
| ← marc_kdab left | 19:42 |
| ← pantsman- left | 19:42 |
|
Lord_Khelben
| jpalmer: i think the cloned will have everything besides the hooks you may have, but i may be wrong | 19:43 |
| → PovAddict joined | 19:43 |
|
PovAddict
| can git rev-list show all commits *except* those from a certain author? | 19:43 |
|
| --not --author=foo doesn't seem to work | 19:43 |
|
cbreak
| cloning will not clone hooks, configurations, ... | 19:43 |
|
| it will only clone refs and their history | 19:43 |
|
Lord_Khelben
| i remembered it correctly then :) | 19:44 |
|
cbreak
| there are different clone methods that differ in which refs are cloned and how | 19:44 |
|
Kronuz
| in my other repos ther's a info/refs file | 19:44 |
|
| which is not in this new repo | 19:44 |
|
| I tried git init --bare | 19:45 |
|
| but it didn't either create a info/refs file | 19:45 |
|
cbreak
| don't know what that file is good for | 19:45 |
|
| just ignore it | 19:45 |
|
PovAddict
| it's for HTTP cloning | 19:45 |
|
| it's created by git update-server-info | 19:45 |
|
Kronuz
| update-server-info is giving me an error, it doesn't exist (the command) | 19:46 |
|
| :( | 19:46 |
|
Lord_Khelben
| it should be there | 19:46 |
|
Kronuz
| :P | 19:46 |
|
| I was trying update-server-index | 19:47 |
|
| sorry | 19:47 |
| ← bronson_ left | 19:47 |
| ← redondos left | 19:48 |
| → tvw joined | 19:49 |
| → aalex_laptop joined | 19:50 |
| → bronson_ joined | 19:51 |
| → Eridius joined | 19:51 |
| → PigeonFriend joined | 19:51 |
| → panike joined | 19:52 |
| ← tizzo left | 19:54 |
| → tizzo joined | 19:54 |
| → necrodearia joined | 19:56 |
|
necrodearia
| make a new branch based on the master branch, fix bug, merge back into master AND into staging branch - see http://nvie.com/posts/a-successful-git-branching-model/ | 19:57 |
| ← tgunr left | 19:57 |
| ← mkramer1 left | 19:57 |
|
necrodearia
| How do I make a new branch based on the master branch? is it simply `git checkoug -b <branchname>? | 19:57 |
| ← iband left | 19:57 |
| → iband joined | 19:57 |
|
necrodearia
| s/checkoug/checkout/ | 19:57 |
| ← malfy left | 19:58 |
| → aah joined | 19:58 |
|
Lord_Khelben
| necrodearia: if your current branch is master yes, otherwise git checkout -b branchname master | 19:59 |
|
necrodearia
| okay, thanks. | 19:59 |
| ← PovAddict left | 20:00 |
| ← TheFox21 left | 20:01 |
| → malfy joined | 20:01 |
| ← TheMoonMaster left | 20:02 |
| ← booginga left | 20:03 |
| ← dfr|mac left | 20:03 |
| → marc_kdab joined | 20:05 |
| ← _Vi left | 20:06 |
| → asmega joined | 20:06 |
| → shennyg joined | 20:06 |
| ← marc_kdab left | 20:06 |
| → marc_kdab joined | 20:06 |
| → _Vi joined | 20:07 |
| → krosenvold joined | 20:08 |
| → trobrock joined | 20:08 |
| → arkonova joined | 20:09 |
| ← hipstertrash left | 20:14 |
| ← engla left | 20:14 |
| → amondracorp joined | 20:15 |
| ← malfy left | 20:15 |
| → wtfness joined | 20:17 |
| ← foocraft left | 20:17 |
| → hipstertrash joined | 20:17 |
| ← verdon left | 20:18 |
| → malfy joined | 20:18 |
| ← marc_kdab left | 20:20 |
| ← malfy left | 20:22 |
| ← joeytwiddle left | 20:22 |
| → marc_kdab joined | 20:23 |
| → echrsin joined | 20:24 |
| ← panike left | 20:25 |
| ← marc_kdab left | 20:25 |
| → marc_kdab joined | 20:25 |
| → panike joined | 20:25 |
| → s0ber_ joined | 20:26 |
|
necrodearia
| After fixing bugs (as mentioned above) and I want to merge the new brach back into master, how do I do that? `git merge dev` outputs "Already up-to-date." | 20:26 |
|
| s/master/dev/ | 20:27 |
|
imMute
| necrodearia: switch to trunk, *then run git merge dev | 20:27 |
| → madewokherd joined | 20:27 |
| → bigpeted joined | 20:28 |
| ← s0ber left | 20:28 |
| s0ber_ → s0ber | 20:28 |
| ← fr0sty-away left | 20:28 |
|
necrodearia
| imMute, hmm, that also shows "Already up-to-date." | 20:29 |
|
imMute
| :/ I could have sworn that was how you do it.. | 20:29 |
| ← meebey left | 20:29 |
|
ldh
| should be. maybe the changes on the branch weren't committed? | 20:29 |
| ← bmahe left | 20:29 |
|
imMute
| or you didn't switch to the master branch. | 20:30 |
|
necrodearia
| imMute, While in dev branch I `git checkout -b dev.nobitcoin`ed and then made changed, commited and pushed and now I want to merge them wit the dev branch | 20:31 |
|
imMute
| necrodearia: so `git checkout dev` then `git merge dev.nobitcoin` | 20:32 |
|
necrodearia
| error: Your local changes to 'httpdocs/config.php' would be overwritten by merge. Aborting. ------ Please, commit your changes or stash them before you can merge. | 20:32 |
|
imMute
| you have uncommitted changes | 20:33 |
|
| deal with them (in either way the error told you to) | 20:33 |
|
necrodearia
| The same changes that I pushed to dev.nobitcoin | 20:33 |
|
| necrodearia nods | 20:33 |
|
ldh
| you didn't push them because they were unstaged when you committed, i'm guessing | 20:34 |
|
imMute
| which means they weren't actually comitted | 20:34 |
| → joeytwiddle joined | 20:34 |
| ← radarek left | 20:34 |
| ← joeytwiddle left | 20:34 |
| → Merbo joined | 20:35 |
| ← larsmoil left | 20:35 |
|
Merbo
| hello | 20:35 |
| → larsmoil joined | 20:35 |
| ← larsmoil left | 20:35 |
| ← aalex_laptop left | 20:36 |
| ← Merbo left | 20:36 |
| → larsmoil joined | 20:36 |
| → joeytwiddle joined | 20:36 |
| ← hipstertrash left | 20:37 |
| → aalex_laptop joined | 20:37 |
| → hipstertrash joined | 20:37 |
| ← PigeonFriend left | 20:38 |
|
Kronuz
| thnaks Lord_Khelben :) …that update-server-info made it work!! | 20:39 |
| ← larsmoil left | 20:39 |
|
Lord_Khelben
| Kronuz: i am glad it worked. actually it was AAA_awright that mentioned it | 20:40 |
|
Kronuz
| oh, thanks AAA_awright :) | 20:41 |
| ← doener left | 20:41 |
| → abetaha joined | 20:43 |
| ← yhager left | 20:43 |
| → Geralt joined | 20:44 |
| ← marc_kdab left | 20:44 |
| → bmahe joined | 20:44 |
| → morganick joined | 20:44 |
| ← rettub left | 20:44 |
| → phishy__ joined | 20:44 |
| → malfy joined | 20:44 |
|
Geralt
| Hi, how can I get the name of the branch that's currently checked out? I couldn't find a command that does that in man git, but I suppose that's a fairly common task | 20:45 |
|
jast
| Hi: the 'git' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git.html [automatic message] | 20:45 |
| ← phishy_ left | 20:45 |
| ← bronson_ left | 20:46 |
|
imMute
| Geralt: git branch | 20:46 |
|
patrikf
| git status will also tell you, iirc | 20:46 |
| → tizzo_ joined | 20:47 |
| → rettub joined | 20:47 |
|
Geralt
| oh I forgot to mention one important piece of information: I want to use it in a program, and git branch always prepends a * is there something that prints just the plain branch name? | 20:48 |
| ← malfy left | 20:49 |
| ← tizzo left | 20:50 |
| tizzo_ → tizzo | 20:50 |
|
patrikf
| Geralt: git symbolic-ref HEAD | 20:51 |
| → malfy joined | 20:51 |
| → marcamilly joined | 20:51 |
|
patrikf
| note that a git repository doesn't have to have to be at a branch at all times | 20:52 |
|
Geralt
| patrikf: thanks, however there's now way to detect if a working directory is in detached head state or if it's not a Git repo at all, the exit code is in both cases 128. | 20:52 |
|
| now=no | 20:52 |
| ← chrisshattuck left | 20:53 |
| ChanServ set mode: +v | 20:53 |
| ← echrsin left | 20:53 |
|
marcamilly
| ok...awesome | 20:53 |
| → Maletor joined | 20:53 |
|
marcamilly
| so I just did a git pull from a remote repo | 20:54 |
|
| but it destroyed a bunch of stuff I didn't want destroyed | 20:54 |
|
cbreak
| pull doesn't destroy anything | 20:54 |
|
patrikf
| Geralt: you might combine it with "rev-parse HEAD" | 20:54 |
|
marcamilly
| specifically, lots of images were deleted.....so I want to do two things: 1) I want to go back to the commit before, 2) pull down some of the changes to a new branch | 20:55 |
|
| cbreak: you are right, but the changes in the last push do | 20:55 |
|
| *did | 20:55 |
|
Geralt
| patrikf: that would work :-) Thank you! | 20:55 |
| → Chillance joined | 20:55 |
| ← malfy left | 20:55 |
| ← dmlloyd left | 20:55 |
|
cbreak
| marcamilly: if you have no local uncommitted changes, do git reset --hard HEAD@{1} | 20:56 |
|
marcamilly
| GREAT! | 20:56 |
| ← patmaddox left | 20:56 |
| ← panike left | 20:57 |
| ← stliu left | 20:58 |
| → ptl joined | 20:59 |
| ← _iron left | 20:59 |
|
marcamilly
| brilliant | 20:59 |
|
| ok....so now that I know that the pull will be destructive to some of my local images | 21:00 |
|
| but I want some of the changes to the code | 21:00 |
|
| how do I proceed ? | 21:00 |
|
| i.e., I want to keep the stuff that were added and not merge the 'deletions' | 21:00 |
| ← spearce left | 21:00 |
| → yhager joined | 21:01 |
| → dmlloyd joined | 21:01 |
| → EricInBNE joined | 21:02 |
|
Geralt
| marcamilly: git pull --no-commit then edit the pending changes to your likings :) | 21:03 |
| → dev2 joined | 21:03 |
|
marcamilly
| ahh...interesting | 21:03 |
| ← guardian left | 21:04 |
|
marcamilly
| so would it be the full path 'git pull origin master --no-commit' ? | 21:04 |
| → lresende_ joined | 21:05 |
|
dev2
| I have done a few commits. Is it possible to revert to a previous commit? I can't remember what exactly I named it | 21:05 |
| ← albel727 left | 21:05 |
|
marcamilly
| error: unknown option `no-commit' | 21:05 |
| → albel727 joined | 21:05 |
|
Lord_Khelben
| dev2: can't you see the sha1 from git log ? | 21:05 |
|
j416
| dev2: "git log" will show you the commits in the branc you're on | 21:05 |
|
| branch* | 21:05 |
| ← ChUrP left | 21:05 |
| ← friskd left | 21:06 |
|
dev2
| oh thats great! | 21:06 |
| → malfy joined | 21:06 |
|
Geralt
| marcamilly: put the --no-commit after the pull not after the remote | 21:06 |
| ← iband left | 21:06 |
|
Lord_Khelben
| dev2: then you can reset your tree to that commit. the commits you revert aren't lost, so if you mess up, reflog is your friend | 21:07 |
|
dev2
| Lord_Khelben: beautiful, I was afraid of getting berrated for asking a stupid question :) | 21:07 |
| ← lresende left | 21:08 |
| lresende_ → lresende | 21:08 |
|
shruggar
| sitaram, are you there? | 21:08 |
|
Lord_Khelben
| have you pushed the tree somewhere ? | 21:08 |
|
| if yes, then it is better to actually "revert" the commits otherwise people that try to pull will be annoyed :P | 21:09 |
| ← hacim left | 21:09 |
|
marcamilly
| Geralt: sweet...so how do I step through this now and commit what I want ? | 21:09 |
|
dev2
| Lord_Khelben: if thats in reference to me, its all good, I'm just working locally | 21:09 |
| ← malfy left | 21:10 |
| → hacim joined | 21:10 |
| ← bmahe left | 21:11 |
| → ChUrP joined | 21:12 |
| ← lresende left | 21:13 |
| → banisterfiend joined | 21:13 |
| ← vortec left | 21:14 |
| ← montylounge left | 21:14 |
| ← jga left | 21:15 |
| ← hacim left | 21:15 |
| ← phishy__ left | 21:16 |
| → hacim joined | 21:16 |
| ← ChUrP left | 21:16 |
| ← ISF_ left | 21:16 |
| → malfy joined | 21:18 |
| wtfness → foocraft | 21:20 |
| ← elmob left | 21:20 |
| ← bigpeted left | 21:20 |
| ← keyvan- left | 21:20 |
| → ChUrP joined | 21:21 |
| ← j416 left | 21:22 |
| ← hacim left | 21:22 |
| ← matjas left | 21:23 |
| ← malfy left | 21:23 |
| ← Ryback_ left | 21:23 |
| ← ChUrP left | 21:24 |
| ← Kronuz left | 21:25 |
| ← yhager left | 21:25 |
| → bmahe joined | 21:26 |
|
marcamilly
| Geralt: there ? | 21:26 |
| ← markelikalderon left | 21:26 |
| → francogrex joined | 21:27 |
| ← xiong left | 21:28 |
|
francogrex
| Hi I am on windows and downloaded the msysgit. How can I download all files in this project https://github.com/xach/linj using only the comand line? | 21:29 |
| ← snearch left | 21:29 |
| → hacim joined | 21:29 |
|
Geralt
| marcamilly: sorry, I was afk. If you type git status you'll see a list of things that are about to be commited (you can see the diffs with 'git diff --cached') if you don't want something to be in this commit use git revert HEAD -- <filename> and it won't be in that commit. If you read the lines of git status that start with # it tells you always how to undo a change or include a change | 21:30 |
| → larsmoil joined | 21:32 |
| → montylounge joined | 21:33 |
| → tty1 joined | 21:33 |
| ← francogrex left | 21:33 |
|
albel727
| Geralt: git revert HEAD -- <filename>? you mean, git RESET? | 21:33 |
| ← MattDiPasquale left | 21:33 |
| → chrischambers_ joined | 21:34 |
| → marc_kdab joined | 21:35 |
| ← chrischambers left | 21:35 |
| chrischambers_ → chrischambers | 21:35 |
|
Geralt
| albel727: oh...yes, I always have to look at the hint from "git status" before I unstage something... | 21:35 |
|
albel727
| yeah, happens. =) | 21:35 |
| → alester joined | 21:36 |
| → Mage joined | 21:36 |
|
albel727
| I guess, "READ what git tells you" is the best meta-advice out there =) | 21:36 |
| → malfy joined | 21:36 |
|
Geralt
| definitely :) | 21:37 |
| → bronson_ joined | 21:39 |
| → utu joined | 21:40 |
| → MattDiPasquale joined | 21:40 |
|
stew
| so read what #git tells you about reading what git tells you is the best meta-meta-advice | 21:40 |
| ← malfy left | 21:40 |
| → warbee joined | 21:41 |
| ← amondracorp left | 21:41 |
| → ManDay joined | 21:42 |
| → malfy joined | 21:43 |
|
ManDay
| Is there any git manpage that lists all manpages? In fact, I'd have expected git(7) to list all the manpages that come with git, but it still lacks at least a few | 21:43 |
|
wereHamster
| albel727: you can make it even shorter: READ (or RTFGO - Git Output) | 21:43 |
| → rgr joined | 21:44 |
| ← rgr left | 21:44 |
|
stew
| RTFGO or GTFO | 21:45 |
|
ManDay
| same thought here | 21:45 |
| → psoo joined | 21:46 |
|
albel727
| lol | 21:46 |
|
ManDay
| in case there is no such list, any chance git(7) will have it added in the next release? | 21:46 |
|
wereHamster
| ew, I didn't notice the similarity -.- | 21:46 |
|
| ManDay: if you make a patch, sure | 21:46 |
|
ManDay
| wereHamster: uhm well, if I find a complete list in the first place nothing easier than that | 21:46 |
| → vgr joined | 21:47 |
|
ManDay
| but i guess one of (you?) guys is quicker at addint the line? | 21:47 |
|
wereHamster
| ManDay: find /usr/share/man/ -name 'git*' | 21:48 |
|
albel727
| apropos git? | 21:48 |
| → fr0sty-away joined | 21:48 |
|
wereHamster
| some man pages have no corresponding git command | 21:48 |
| ← cubuanic left | 21:48 |
|
wereHamster
| (gitignore, gittutorial etc) | 21:48 |
|
marcamilly
| hrmm Geralt so what happens if I want something that was deleted by another developer to not be deleted on my machine after the commit ? in other words, I run git status and I see a bunch of 'new file:' those are good and I want all of those....but then I see 'deleted: <filepath>' I don't want to commit those deletes | 21:48 |
|
ManDay
| yes. there were others the name of which icant recall | 21:48 |
|
marcamilly
| how do I exclude those ? | 21:49 |
|
ManDay
| funnily enough the wiki on kernel.org states "git(7) serves as an overview of git commands and man pages." | 21:49 |
|
| I'd love that :) | 21:49 |
| → cking_nj joined | 21:49 |
|
marcamilly
| if I am not mistaken, your instructions work for the situation where I want to 'exclude' something that was added (like a file) to the repo | 21:49 |
|
| but not quite sure how to handle a delete command - where it deletes files I want to keep | 21:50 |
|
| Geralt: I hope that makes sense | 21:50 |
|
ManDay
| git: nothing appropriate | 21:50 |
| ← cking_nj left | 21:50 |
|
ManDay
| just as for the apropos | 21:50 |
| → levifig joined | 21:50 |
| → radarek joined | 21:50 |
|
Geralt
| marcamilly: use git checkout -- <filename> | 21:50 |
|
| marcamilly: wait that's wrong | 21:51 |
|
marcamilly
| hrmm | 21:51 |
|
| i was wondering | 21:51 |
|
| remember I am in between merges and commit | 21:51 |
|
| i have done a git pull | 21:51 |
| ← stamina_ left | 21:51 |
|
marcamilly
| --no-commit | 21:51 |
|
Geralt
| marcamilly: do as git tells and go with 'git reset HEAD <file>..." to unstage' | 21:51 |
|
marcamilly
| so now I have to commit only the things I want to | 21:51 |
|
| git doesn't tell me anything :| | 21:51 |
|
Geralt
| as I said above I always follow the hints in git status if I need to do some tinkering with staging area | 21:52 |
|
marcamilly
| ok, how do I see the hints ? do I need an additional flag ? because this is not giving me any hints | 21:52 |
|
| this is what I see: https://gist.github.com/801065 | 21:53 |
|
ManDay
| Can anyone who knows submodules confirm that it's perfectly all right to create submodules "inplace" - meaning not backed up by a remote/bare repository. For example two submodules A and B in an otherwise completely added C (C contains A and B)? | 21:53 |
|
Geralt
| marcamilly: strange there are really no hints | 21:53 |
|
marcamilly
| lol....that's what I said...LOL | 21:54 |
|
| :) | 21:54 |
|
| thought I was being a n00b ? | 21:54 |
|
Geralt
| marcamilly: no, I supposed you were just missing it if the output was really huge | 21:55 |
|
| marcamilly: to remove a change from the index use 'git reset HEAD -- <filename>' | 21:56 |
|
| in fact some people add a git alias so that they can use the more intuitive 'git unstage <filename>' | 21:57 |
|
marcamilly
| so in my case, I would do something like 'git reset HEAD -- 02 Login Screen.jpg' or would it be the full path like this 'git reset HEAD -- public/system/images/2/original/02 Login Screen.jpg' | 21:57 |
|
| ? | 21:57 |
|
wereHamster
| Geralt: the HEAD is implicit, and unless you have a branch with the same name as the filename, git reset <filename> is just fine | 21:57 |
|
| marcamilly: full path within the git repo | 21:58 |
|
| marcamilly: and quote the path if it has whitespace | 21:58 |
|
marcamilly
| ok | 21:58 |
|
| fatal: ambiguous argument 'public/system/images/1/original/Argentina-2010-World-Cup.jpg': unknown revision or path not in the working tree. | 21:59 |
|
| Use '--' to separate paths from revisions | 21:59 |
| → Bass10 joined | 22:00 |
|
marcamilly
| i did this: git reset "public/system/images/1/original/Argentina-2010-World-Cup.jpg" | 22:00 |
| ← goshawk left | 22:00 |
| ← Pewpewarrows left | 22:00 |
| → dirthead joined | 22:00 |
| → CarlFK joined | 22:00 |
|
wereHamster
| marcamilly: it appears the file is not trakced | 22:01 |
|
| tracked even | 22:01 |
|
marcamilly
| well I tried the suggestion Geralt had, and I get this: Unstaged changes after reset: | 22:01 |
|
| M public/system/images/1/original/Argentina-2010-World-Cup.jpg | 22:01 |
| ← Bass10 left | 22:01 |
|
marcamilly
| so was that successfully done ? | 22:01 |
| ← SeanLazer left | 22:01 |
|
dirthead
| I have a commit in a bare repository that is causing Trac problems. How can I back the commit out of the bare repository. git-reset doesn't "make sense" in a bare repository. | 22:01 |
| → Bass10 joined | 22:02 |
|
CarlFK
| I just did "git checkout origin/master episode.html" to update that single file. and stepped on some changes to it. how can I revert back? | 22:02 |
|
wereHamster
| marcamilly: that's what to be expected after the reset. | 22:02 |
|
marcamilly
| great...so it worked | 22:03 |
|
| so looks like you do need the syntax HEAD -- | 22:03 |
|
ManDay
| Can anyone help me with submodule please? | 22:03 |
|
marcamilly
| 'git reset HEAD -- <full file path>' is what works for me....fyi | 22:03 |
|
wereHamster
| marcamilly: I doubt it. The <commit> defaults to HEAD in all forms. | 22:03 |
| → Reemo joined | 22:03 |
| → acid joined | 22:03 |
|
marcamilly
| hrmm.....well iono why it's working with the HEAD and wasn't without it | 22:04 |
|
| but it is :| | 22:04 |
|
wereHamster
| CarlFK: git status | 22:04 |
|
Geralt
| marcamilly: that's ok git just removes that change from the index, but it's still in your working directory. First unstage all the "wrong changes" and then commit the "good changes" after that I'll tell you how to fix your working directory (because your git status doesn't :/) | 22:05 |
| ← sako left | 22:05 |
|
Geralt
| btw. what does git --version say? | 22:05 |
|
CarlFK
| wereHamster: http://dpaste.de/6Uip/ | 22:05 |
| → autojack joined | 22:06 |
|
wereHamster
| CarlFK: and what do you want to do? | 22:06 |
|
marcamilly
| 1.7.3.2 | 22:06 |
| → dbykov joined | 22:06 |
| ← dbykov left | 22:06 |
|
autojack
| is there a way to get git to 'print' the contents of a file in the repo, given a path and possibly a specific branch? | 22:06 |
|
marcamilly
| I will continue adding these to unstaged, then ask for advice after | 22:06 |
|
autojack
| git cat-file seems like it should do what I want but I can't really figure it out. | 22:06 |
| ← nadavoid left | 22:06 |
| ← ben_alman left | 22:06 |
|
wereHamster
| autojack: git show <rev>:<path> | 22:06 |
|
Reemo
| Hey guys, i wondered if someone could recommend a good (opensource?) scm infrastructure (talking about bugtracking, ldap account management, etc.) build around git | 22:06 |
|
| I tested gitorious on a local server, but found it too unflexible for my needs (especially the account and install procedures) | 22:07 |
|
CarlFK
| wereHamster: get the version of episode.html as it was before the checkout | 22:07 |
|
Geralt
| that's strange your git version if newer than mine so git reset without HEAD should definitely work and I don't understand why you don't see any help messages in your git status output | 22:07 |
| ← benishor_ left | 22:07 |
|
wereHamster
| CarlFK: did you have local changes which you haven't added to the index yet? | 22:07 |
|
ManDay
| submodules, anyone? :-/ | 22:08 |
| → yhager joined | 22:08 |
|
wereHamster
| ManDay: if you come across some, run screaming and kicking.. submodules are a pain in the ... | 22:08 |
| → SeanLazer joined | 22:09 |
|
autojack
| wereHamster: ideally this would be something I could run from any host, any directory, without having to check out a given repo and cd into it. is that possible? | 22:09 |
|
CarlFK
| wereHamster: not sure really. episode.html had some changes that were specific to the box it is on that I never intended on pushing to master. so I was just hack-n-slashing on it. | 22:09 |
|
wereHamster
| autojack: no | 22:09 |
| ← sonnym left | 22:09 |
|
ManDay
| wereHamster: I'm afraid so, but I think it's still the better way than creating an ugly mix of symlinks and making sure two complete repos dont interfere | 22:09 |
|
autojack
| rats. | 22:09 |
|
wereHamster
| CarlFK: if not, then you are out of luck | 22:09 |
|
CarlFK
| then I made some changes on my primary copy, pushed to master and plunked on top of my hacked ver. now I want the hacked ver back so I can merge | 22:09 |
|
wereHamster
| ManDay: google 'gitslave' | 22:09 |
|
autojack
| suppose I could pull it over http from the web interface | 22:10 |
|
wereHamster
| autojack: sure.. | 22:10 |
|
autojack
| I have a test script that needs to parse the config files from two different repos before it can run, that's all. | 22:11 |
|
| but maybe checking out the branch is my best bet. | 22:11 |
|
CarlFK
| wereHamster: is there some way to tell if anything was added to index? | 22:11 |
|
ManDay
| wereHamster: you see, it's even worse than that. In fact I got DirA and within DirA I got DirB throught DirE - I want DirA to be a repository which manages Everything BUT DirD and DirE and *one* (1) other repository to manage DirD and DirE | 22:12 |
|
| sounds like fun, eh? | 22:12 |
|
| is there perhaps any way I could configure a repository so that it does NOT follow nor account for any symlinks? | 22:13 |
|
wereHamster
| CarlFK: you could go through all unreachable blobs and see if one matches your file | 22:14 |
| ← autojack left | 22:15 |
| → thermal joined | 22:15 |
| ← SeanLazer left | 22:15 |
| ← melvinram left | 22:15 |
| → theoros_ joined | 22:15 |
| Chillax → Chillaway | 22:15 |
| ← theoros left | 22:16 |
| → desaiu joined | 22:17 |
| ← pheaver left | 22:18 |
| → pheaver joined | 22:18 |
| ← Maletor left | 22:19 |
| ← yhager left | 22:19 |
| → yhager joined | 22:19 |
|
necrodearia
| I want to set up a one minute crontask to pull from a git repository. How can I prevent the need to enter a password each `git pull` attempt? | 22:20 |
| → jxpx777 joined | 22:21 |
|
bremner
| necrodearia: you understand that pull is meant to be interactive, right? | 22:21 |
| ← tizzo left | 22:21 |
|
necrodearia
| bremner, Yes, but I am setting up a development environment that I want to pull from a local git repo so that I do not have to manually pull each time I want to view the website related to the dev branch of the repo. | 22:21 |
|
bremner
| necrodearia: can't you use hooks instead? | 22:22 |
| → janis joined | 22:22 |
|
necrodearia
| bremner, I have no idea. How can I do that? | 22:22 |
|
bremner
| necrodearia: well, the usuall answer is not to have the live files under version control, but just a snapshot generated by git-archive in a commit or post-update hook. | 22:23 |
| → avalys joined | 22:23 |
|
avalys
| is there any way to have "git status" return only the status of files under the current directory (and subdirectories) | 22:23 |
| ← jxpx777 left | 22:25 |
|
marcamilly
| ok Geralt I got it | 22:25 |
| → rbq joined | 22:25 |
|
necrodearia
| bremner, Does that mean it is not possible to automate preparing latest snapshot of git repo branch to be used in a live development environment? | 22:26 |
|
marcamilly
| Geralt: this is how it looks: https://gist.github.com/801065 | 22:26 |
| ← rbq left | 22:26 |
|
bremner
| necrodearia: not at all. It just means that pull is not the right tool for deploying websites (and neither is push). | 22:26 |
|
Geralt
| marcamilly: if you've unstaged all you want to unstage you can do a 'git commit' now | 22:27 |
|
marcamilly
| just 'git commit', not 'git commit -am "<message>"' ? | 22:27 |
| ← SIGBUS left | 22:28 |
|
bremner
| somebody should write a "if you must use git as a deployment system, here is how" howto | 22:28 |
|
Geralt
| marcamilly: don't use -a or all work will be gone! | 22:29 |
| ← rcpeterson left | 22:29 |
|
marcamilly
| ok | 22:29 |
|
| i did that and now see a textmate window open | 22:29 |
| ← atrofast left | 22:30 |
|
Geralt
| marcamilly: if you don't use any flag git opens an editor with a default message that contains a summary of the merge, I suppose you want to keep that message (and maybe add a comment of your own) | 22:30 |
|
marcamilly
| I guess it is asking for a message | 22:30 |
|
Geralt
| marcamilly: write your commit message then save&exit and your merge is commited :) | 22:31 |
|
marcamilly
| done | 22:31 |
|
| i still have those unstaged stuff | 22:31 |
|
GaVrA
| on windows i have tortoisegit which enables me to use 'git gui' and when i have some conflict when merging i can use some handy tool to see that conflic. but now im on ubuntu and just cant figure out what to do | 22:31 |
|
marcamilly
| what do I do with those ? | 22:31 |
| → kenneth joined | 22:31 |
| ← zorzar_away left | 22:31 |
|
bremner
| GaVrA: man git-mergetool | 22:31 |
|
jast
| GaVrA: the 'git-mergetool' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-mergetool.html [automatic message] | 22:31 |
|
Geralt
| if you don't want the changes in your working directory anymore use "git reset --hard" and they'll be gone with no way to get them back, so check twice before you do that | 22:31 |
| ← bartj left | 22:32 |
| ← avalys left | 22:32 |
|
marcamilly
| GREAT! | 22:32 |
|
| that worked | 22:32 |
|
| *phew* | 22:32 |
|
| thanks meng | 22:32 |
|
| wow....what a long exercise | 22:32 |
| → zorzar joined | 22:33 |
|
kenneth
| hey—i've got a git hook that does stuff. i'd like to do that stuff in the background and return immediately to the user. i tried doing ( do whatever ) & exit but it doesn't seem to work :/ | 22:33 |
|
| ideas? | 22:33 |
|
Geralt
| marcamilly: yeah, but the more you exercise the faster you'll become :) | 22:33 |
|
| not too long ago a merge took me ages toot | 22:33 |
|
| -t | 22:33 |
|
marcamilly
| cool | 22:34 |
|
necrodearia
| bremner, So I imagine to use hooks properly that I must configure the hooks with gitolite, right? | 22:35 |
|
marcamilly
| so to merge this with my other branch, all I do is checkout that branch and do 'git merge <new branch>' | 22:35 |
|
| right ? | 22:35 |
|
wereHamster
| yes | 22:35 |
| ← ormaaj left | 22:35 |
|
marcamilly
| great! | 22:35 |
| ← janis left | 22:36 |
| → Agos joined | 22:36 |
| ← joel_falcou left | 22:37 |
| ← yhager left | 22:38 |
| → ISF joined | 22:40 |
| → rgoytacaz joined | 22:40 |
|
rgoytacaz
| how do I update a git project to its latest version? | 22:40 |
| ← SimonP86 left | 22:40 |
|
wereHamster
| rgoytacaz: git pull | 22:41 |
|
rgoytacaz
| oh | 22:41 |
|
| right | 22:41 |
| → tgunr joined | 22:41 |
| → nadavoid joined | 22:41 |
|
GaVrA
| bremner: thanks man, managed to work it out ;) | 22:42 |
|
bremner
| GaVrA: \o/ | 22:42 |
| → HG` joined | 22:43 |
| → k04n joined | 22:43 |
| ← k04n left | 22:43 |
|
GaVrA
| would it be offtopic to ask what mergetool is easiest to use? | 22:43 |
|
bremner
| GaVrA: no, not offtopic. I find kdiff3 ok. Some people like meld. Lately I use emerge more, but I already know emacs. | 22:44 |
|
GaVrA
| at first i found meld a bit confusing | 22:45 |
|
| i mean i still do, so im thinking is there some easier tool for newbies :D | 22:46 |
|
bremner
| try kdiff3? there is a version kdiff3-qt which doesn't depend so much on kde | 22:46 |
| ← saschpe left | 22:47 |
| ← alvaro_o left | 22:47 |
|
GaVrA
| i type 'git mergetool --tool=kdiff3' to use that one? | 22:47 |
| → alvaro_o joined | 22:47 |
|
bremner
| think so | 22:47 |
| → Tuller joined | 22:48 |
|
ManDay
| Is there a command to "commit -a" only the changes within a particular directory? | 22:49 |
| → Tasser joined | 22:49 |
|
Tasser
| how to pull onto a new branch? | 22:49 |
|
kenneth
| i've got the following post-receive hook… anybody know why it ain't working? | 22:50 |
|
| git push unfuddle master & | 22:50 |
|
| exit | 22:50 |
| ← tstclair left | 22:50 |
|
kenneth
| erm | 22:50 |
| ← bronson_ left | 22:50 |
|
kenneth
| http://pastie.org/1507442 | 22:51 |
|
wereHamster
| kenneth: and how is it failing? | 22:51 |
| → bronson_ joined | 22:52 |
|
kenneth
| the stdin is not being passed on to the email script, which makes it fail | 22:52 |
|
ayust
| you may need to nohup the 'git push' if you're backgrounding it | 22:52 |
| ← thermal left | 22:52 |
|
ayust
| oh | 22:53 |
| → chrisshattuck joined | 22:53 |
| ← bronson_ left | 22:53 |
|
ayust
| have you tried having the script read stdin into a variable, and then sending that explicitly to the emailer's stdin? | 22:53 |
| ← Noldorin_ left | 22:54 |
|
GaVrA
| is it wise to go and alter past commits? i mean when i created git repo i still had entire zend framework in that project. so for few commits it was inside the project, all ~2000 files of zend framework... after we have moved zf to php's include path, but im thinking that my repo is now a bit 'heavy' couse of those initial commits that had zf. what should i do? i was reading something about alterign past commits and simply removing entire zf folder from each comm | 22:56 |
| ← bentob0x left | 22:56 |
| → psundaram joined | 22:56 |
| ← psundaram left | 22:56 |
|
ayust
| it depends; is your repo shared among multiple people? | 22:56 |
|
kenneth
| ayust: hmm, no. let me see if i can figure out how to do that | 22:56 |
| ← eijk left | 22:56 |
|
ayust
| rewriting shared history can be problematic | 22:57 |
| ← fr0sty-away left | 22:57 |
| ← morganick left | 22:57 |
|
GaVrA
| ayust: 3 people | 22:57 |
| → eijk joined | 22:57 |
| ← nullvariable left | 22:57 |
|
ayust
| are you familiar with the issues that 'git rebase' can cause, GaVrA ? | 22:57 |
| → jxpx777 joined | 22:57 |
|
GaVrA
| i was also thinking about just to go and delete that git repo and start new one | 22:57 |
| → fr0sty-away joined | 22:57 |
|
GaVrA
| ayust: no i am not | 22:58 |
|
ayust
| okay | 22:58 |
| ← timepilot left | 22:58 |
|
GaVrA
| but i did read a bit about it | 22:58 |
|
ayust
| well, you *can* rewrite history, but when you push that history, everyone else's history will no longer match up | 22:58 |
|
GaVrA
| ok | 22:58 |
|
ayust
| which means that everyone else will have to either reset back to your new version (losing any changes they might have made after you last pulled) | 22:58 |
| ← eijk left | 22:58 |
|
ayust
| or rebase their changes on top of the new, rewritten history | 22:59 |
|
GaVrA
| ok how about this | 22:59 |
|
ayust
| (which can vary in difficulty) | 22:59 |
|
GaVrA
| we are all on last commit | 22:59 |
|
| i rebase history | 22:59 |
|
| then it should be ok when they pull? | 22:59 |
| ← linusoleander left | 22:59 |
|
ayust
| they'll need to "git fetch && git reset --hard origin/master" | 22:59 |
|
| instead of "git pull" | 22:59 |
|
| since their local history won't match up with what's on origin anymore | 22:59 |
|
GaVrA
| and it would work? | 22:59 |
|
ayust
| so git pull would get confused | 22:59 |
| → spearce joined | 22:59 |
|
ayust
| that would work, yes. just make sure that everyone is on the same commit first. | 23:00 |
|
GaVrA
| righto | 23:00 |
|
ayust
| (and that everyone knows they need to reset afterwards) | 23:00 |
|
GaVrA
| and the process of changing history can be done how? | 23:01 |
| → ntoll joined | 23:01 |
| ← ManDay left | 23:01 |
|
ayust
| GaVrA: man git-filter-branch | 23:01 |
|
jast
| GaVrA: the 'git-filter-branch' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html [automatic message] | 23:01 |
|
kenneth
| alright, ayust so now i've got it working with your trick, but the backgrounding still doesn't seem to work… | 23:01 |
|
| http://pastie.org/1507442 | 23:01 |
| ← kuhrt left | 23:02 |
| ← rettub left | 23:02 |
|
kenneth
| i thought it should, with the &. but the git hook doesn't actually return until the scripts are done. (i still see the stdout of those scripts in the git returned value) | 23:02 |
| → nullvariable joined | 23:03 |
| → rettub joined | 23:03 |
| → Textmode joined | 23:03 |
| ← ntoll left | 23:03 |
|
GaVrA
| ayust: thanks man, bookmarked it, gonna think about what to do... cheers! | 23:03 |
| ← tizbac left | 23:04 |
| → jfelchner joined | 23:04 |
|
ayust
| kenneth: not sure what to tell you; that should background | 23:05 |
| ← utu left | 23:05 |
| → elbod joined | 23:06 |
| ← LiamH left | 23:06 |
|
GaVrA
| i was talking with friend of mine about converting some mercurial repo to git repo, does that hmm create some overhead or something? i mean like unnecessary files or something | 23:07 |
| ← mikemeyer left | 23:08 |
| ← shruggar left | 23:08 |
| → mikemeyer joined | 23:08 |
|
kenneth
| ayust: i just tested it by "backgrounding" a script that has sleep 5; echo hello and the hook waits for the script to finish and output before returning | 23:10 |
|
| i don't quite get it | 23:10 |
|
wereHamster
| GaVrA: not if the conversion is done properly | 23:10 |
|
webPragmatist
| hey all | 23:10 |
|
| i have a repo that we lost the origin to but i have a bunch of branches that are only on origin | 23:10 |
| ← jfelchner left | 23:11 |
|
webPragmatist
| how can i drop those/ | 23:11 |
|
wereHamster
| webPragmatist: git remote prune | 23:11 |
|
webPragmatist
| and the name of the branch | 23:11 |
|
| ? | 23:11 |
| ← Textmode left | 23:11 |
|
wereHamster
| webPragmatist: man git-remote | 23:11 |
|
jast
| webPragmatist: the 'git-remote' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-remote.html [automatic message] | 23:11 |
|
webPragmatist
| reading | 23:11 |
| → CarlFK1 joined | 23:12 |
| → Textmode joined | 23:12 |
| ← CarlFK left | 23:12 |
|
webPragmatist
| wereHamster: i did git remote prune origin | 23:13 |
|
| but there are still red branches listed under remotes/origin | 23:13 |
|
adnap
| how can i see all the versions of a particular file? i don't want to see a version that shows all the different changes. i want to see each instance of the file for each respective commit that modifies the file. | 23:14 |
| → rgr joined | 23:14 |
|
wereHamster
| webPragmatist: they will always be red | 23:14 |
|
| red means it's a remote trackign branch, not that it doesn't exist in the remote | 23:14 |
|
webPragmatist
| how do i drop those? | 23:14 |
|
wereHamster
| webPragmatist: git branch -r -D .. | 23:15 |
|
webPragmatist
| should i do this? | 23:15 |
|
| because i can't check them out | 23:15 |
|
wereHamster
| why do you want to delete them? | 23:15 |
|
teuf
| adnap: git log filename will show you all commits that touched this file, dunno if that's helpful to you | 23:15 |
| → bousquet joined | 23:15 |
|
floppyears
| hi guys | 23:16 |
|
webPragmatist
| wereHamster: because i can't check them out? | 23:16 |
|
wereHamster
| webPragmatist: you are not supposed to check them out | 23:16 |
|
floppyears
| there's a --git-dir option, is there a similar option to specify a remote git repository? | 23:16 |
|
adnap
| teuf: kind of. i want to see what the file looked like for each of those commits though. | 23:16 |
| ← Dave^| left | 23:16 |
| ← elbod left | 23:16 |
|
webPragmatist
| wereHamster: well they don't even exist though anymore/ | 23:16 |
| → gusnan joined | 23:16 |
|
wereHamster
| webPragmatist: then delete them | 23:16 |
| → SimonP86 joined | 23:16 |
|
Lord_Khelben
| floppyears: have you checked the git-remote manpage ? | 23:16 |
|
adnap
| teuf: rather than a single file that shows all the modifications with +/- | 23:17 |
| ← CarlFK1 left | 23:17 |
|
Lord_Khelben
| you can specify a url for a remote repository ofcourse | 23:17 |
| ← hacim left | 23:17 |
|
floppyears
| thank you Lord_Khelben . I didn't know the right man page :) | 23:17 |
|
webPragmatist
| wereHamster: i tried git branch -r -D remotes/origin/enterprise-1.9.1.1 | 23:17 |
|
teuf
| adnap: git show sha1:filename will show you the file at this revision | 23:17 |
|
wereHamster
| webPragmatist: git branch -r -D origin/enterprise-1.9.1.1 | 23:17 |
|
Lord_Khelben
| floppyears: you give it a name and use that from then on. "origin" is such a repository | 23:18 |
| ← Geralt left | 23:18 |
|
adnap
| teuf: thanks | 23:18 |
|
floppyears
| Lord_Khelben: I don't have a local copy of the repository, the repository is in another server. | 23:18 |
|
Lord_Khelben
| floppyears: then you can clone it, and the remote will be setup automatically | 23:18 |
| ← zombor left | 23:19 |
|
Lord_Khelben
| floppyears: run git clone url_of_repository | 23:19 |
| ← MattDiPasquale left | 23:19 |
|
adnap
| teuf: how can i modify the file to look exactly as it did for a particular commit? | 23:19 |
|
wereHamster
| adnap: git checkout <commit> -- <file> | 23:19 |
|
floppyears
| Lord_Khelben: I'm trying to setup redmine, but we have a bunch of webheads, and we are trying to avoid having a bunch of copies/clones of repositories (one per webhead) :( | 23:20 |
| ← theoros_ left | 23:20 |
| → theoros joined | 23:20 |
| ← theoros left | 23:20 |
| → theoros joined | 23:20 |
| ← psoo left | 23:20 |
|
adnap
| wereHamster: is this a reasonable way to resolve a merge conflic? just change it so that it did in a commit that i like? | 23:20 |
|
| wereHamster: *looks like it did | 23:20 |
|
wereHamster
| if that's what you want.. | 23:20 |
|
Lord_Khelben
| floppyears: git is a distributed vcs and everybody works on his local clone. i don't know if there is another way | 23:20 |
|
| floppyears: i am not an expert though | 23:21 |
| ← arkonova left | 23:21 |
|
floppyears
| thanks Lord_Khelben , the man page is not shedding any light | 23:21 |
|
wereHamster
| floppyears: a tutorial would though | 23:22 |
| ← radarek left | 23:22 |
|
Lord_Khelben
| floppyears: git supports shared repositories and many other tricks. wait to hear from someone with more knowledge, so he can recommend you some way of working | 23:23 |
|
webPragmatist
| wereHamster: so a normal repo that is newly cloned is *master , remotes/origin/HEAD -> origin/master, remotes/origin/maste ? | 23:23 |
| → spaceonline joined | 23:23 |
|
webPragmatist
| wereHamster: and a headless repo should just have master? | 23:23 |
|
| the "origin" in this case | 23:23 |
|
| unless there is a branch of some sort | 23:24 |
|
wereHamster
| depends on how you created it | 23:24 |
|
webPragmatist
| but that's pretty typical/ | 23:24 |
| → sonnym joined | 23:24 |
|
adnap
| if i have already checked out some different branches, is git checkout the right way to switch between them, or is there another way? | 23:24 |
|
wereHamster
| webPragmatist: what is typical? | 23:24 |
|
webPragmatist
| wereHamster: typical meaning if someone else looks at this theres limited wtf factor | 23:25 |
|
adnap
| sorry for all the noob questions | 23:25 |
|
webPragmatist
| adnap: yes | 23:25 |
|
wereHamster
| webPragmatist: I assume by 'headless' you mean bare. And how a bare repo looks depends on how you created it. WHich you haven't told me... | 23:25 |
|
webPragmatist
| wereHamster: well, i created it using --mirror… which may not have made sense… as I said before I just have one branch since we lost our original headless repo | 23:27 |
| → morganick joined | 23:27 |
|
webPragmatist
| we just have what i was working on | 23:27 |
|
wereHamster
| .. and what is it you are trying to do? | 23:27 |
| ← noahcampbell left | 23:27 |
|
webPragmatist
| well i've already done --mirror from my working copy | 23:28 |
|
| i think i created everything properly | 23:28 |
|
| i'm just trying to get the origin back up | 23:28 |
|
| with just version history from the master branch | 23:28 |
| → disappearedng joined | 23:28 |
| ← disappearedng left | 23:28 |
| → disappearedng joined | 23:28 |
|
wereHamster
| I'm confused as to which repositories you have, which ones were cloned from where, which branches they have etc. | 23:29 |
|
webPragmatist
| all i have is my working copy which only had the master branch | 23:30 |
| ← artefon left | 23:30 |
|
webPragmatist
| and that's al it | 23:31 |
|
wereHamster
| ok. And what is it you are trying to do? | 23:31 |
| → elbod joined | 23:31 |
|
webPragmatist
| create a remote repo from this | 23:31 |
| ← normanrichards left | 23:32 |
|
webPragmatist
| so at the very lseast we have changes that occured on that branch | 23:32 |
|
wereHamster
| webPragmatist: create the remote repo (git init --bare) and push into it from your existing repo (git push <url> master) | 23:32 |
|
webPragmatist
| how i did it is just the backwards way of doing it? | 23:32 |
|
wereHamster
| pretty much, yes | 23:32 |
|
webPragmatist
| git clone --mirror | 23:32 |
|
| okay well i have another one i need to do that i'll do with push :) | 23:33 |
|
| --bare won't copy the remotes? | 23:33 |
|
wereHamster
| init --bare creates an empty repo | 23:33 |
|
webPragmatist
| oh can i clone without remote? | 23:34 |
|
wereHamster
| no | 23:34 |
|
| don't use clone | 23:34 |
|
| forget it | 23:34 |
|
| create an empty repository on your server with git init --bare and then push whatever you want into it | 23:34 |
|
webPragmatist
| okay | 23:34 |
|
necrodearia
| bremner, in repositories/site.git/hooks/post-receive I placed `git archive --format=tar HEAD | (cd /var/www/ && tar xf -)` and this does almost exactly what I want. The only thing it does wrong is stores files from master branch. If I try executing `git checkout design` before that outputs: remote: fatal: This operation must be run in a work tree | 23:35 |
| ← tvw left | 23:35 |
|
necrodearia
| How can I arrange for `git archive --format=tar HEAD` to output from a branch other than master? | 23:35 |
|
webPragmatist
| wereHamster: do i have toclear the cache because when i push it just says no changes? | 23:37 |
|
| or remove the branch maybe? | 23:37 |
| → bronson_ joined | 23:37 |
|
wereHamster
| webPragmatist: pleaste pastebin the output | 23:37 |
| ← desaiu left | 23:37 |
| → dfr|mac joined | 23:38 |
|
webPragmatist
| Everything up-to-date? | 23:38 |
|
wereHamster
| is that everything? | 23:38 |
|
| and also give me the command you ran | 23:38 |
| ← opalka left | 23:38 |
| ← Evious left | 23:39 |
| ← MikhX left | 23:39 |
| → jfkw joined | 23:39 |
|
webPragmatist
| alright so… i did git init --bare on the remote … then i modified my origin on my working copy to the updated origin…. and did git push origin master | 23:39 |
| ← d0k left | 23:40 |
|
wereHamster
| webPragmatist: did you run init --bare in an exissting repository on the server? | 23:40 |
|
webPragmatist
| no | 23:40 |
| → radarek joined | 23:41 |
| ← morganick left | 23:41 |
|
wereHamster
| webPragmatist: create a new, empty directory on the server. cd into it. run 'git init --bare'. In your local repo, run this: 'git push <url> master' where <url> is an url (such as user@host:path.git) and _not_ origin | 23:41 |
|
webPragmatist
| okay | 23:42 |
|
wereHamster
| pastebin the whole output | 23:42 |
|
necrodearia
| or if anyone else is able to assist, my question above is available. | 23:42 |
| ← smolyn left | 23:42 |
|
wereHamster
| necrodearia: replace HEAD with your branch | 23:42 |
|
| ... so not obvious | 23:43 |
| ← banisterfiend left | 23:43 |
| ← Veejay left | 23:43 |
| → Evious joined | 23:44 |
| → hasrb joined | 23:44 |
| ← jrmuizel left | 23:44 |
| ← thiago_home left | 23:44 |
|
webPragmatist
| wereHamster: worked thanks | 23:44 |
|
necrodearia
| wereHamster, ooh, thanks | 23:45 |
|
| necrodearia offers a bitcoin to wereHamster for helping ^_^ | 23:45 |
| ← rseifert left | 23:46 |
| ← ThomasLocke left | 23:46 |
| → coderdad joined | 23:48 |
| → MikhX joined | 23:49 |
|
| bremner catches up on backlog a bit too late ;) | 23:50 |
| ← beatak left | 23:50 |
| ← aalex_laptop left | 23:51 |
| → jmil joined | 23:53 |
| ← jxpx777 left | 23:55 |
| → jxpx777 joined | 23:55 |
| ← chrischambers left | 23:55 |
| ← cannonball left | 23:56 |
| ← webPragmatist left | 23:56 |
| ← esc left | 23:56 |
| → keyvan- joined | 23:57 |
| ← radarek left | 23:57 |
| → TrentonDAdams joined | 23:58 |
| ← Reemo left | 23:58 |
|
TrentonDAdams
| when using git-svn, can I branch off master without "tracking" remotely, and where dcommit does nothing? | 23:59 |
| → esc joined | 23:59 |
|
TrentonDAdams
| I'm thinking I'd like to track master, but nothing else. Use git what it's good for, merging, branching, etc, and then merge back to master without messing around. | 23:59 |