| 2009-12-28 |
| ← JackTheRabbit left | 00:00 |
| ← gma left | 00:01 |
| ← Paraselene_ left | 00:01 |
| ← jlilly left | 00:04 |
| ← reprore left | 00:04 |
| → ereslibre_uni joined | 00:05 |
| → reprore joined | 00:05 |
| ← Nalwin left | 00:06 |
| ← hipe left | 00:07 |
| ← maxter left | 00:07 |
| → ferdy joined | 00:09 |
| ← ereslibre_laptop left | 00:09 |
| → JackTheRabbit joined | 00:10 |
| → Paraselene_ joined | 00:10 |
| ← Jak_o_Shadows left | 00:10 |
| ereslibre_uni → ereslibre | 00:11 |
| → Nalwin joined | 00:12 |
| ← JackTheRabbit left | 00:12 |
| ← Paraselene_ left | 00:15 |
| ← Nalwin left | 00:17 |
| → Nalwin joined | 00:17 |
| → sanity joined | 00:19 |
| ← Nalwin left | 00:19 |
| → Twisted_Mentat joined | 00:21 |
| → Nalwin joined | 00:22 |
| → otay joined | 00:22 |
| ← x|ixti|x left | 00:22 |
| ← ph^_ left | 00:24 |
| ← teukka left | 00:31 |
| ← malumalu left | 00:31 |
| → davido joined | 00:32 |
| → jumoit joined | 00:33 |
| ← kpreid_ left | 00:34 |
| ← imajes left | 00:35 |
| ← jumoit left | 00:36 |
| ← otay left | 00:37 |
| → ngw_ joined | 00:37 |
| → ph^_ joined | 00:39 |
| ← ph^_ left | 00:40 |
| → ph^_ joined | 00:40 |
| → sgh_ joined | 00:41 |
| ← TDJACR left | 00:41 |
| ← Chillance left | 00:42 |
| → jmcantrell joined | 00:46 |
| ← giallu left | 00:47 |
| ← pantsman left | 00:48 |
| kampasky → pasky | 00:51 |
| → datechman joined | 00:51 |
| ← loincloth left | 00:51 |
| psypointer → Melanchemiker | 00:52 |
| ← exygen left | 00:52 |
| → lightcap joined | 00:52 |
| ← jmcantrell left | 00:53 |
| ← sgh left | 00:54 |
| ngw_ → ngw_|away | 00:55 |
| → loincloth joined | 00:55 |
| ← eno left | 00:56 |
| → TDJACR joined | 00:57 |
| ← aleray left | 00:57 |
| mentor_ → mentor | 00:57 |
| ngw_|away → ngw_ | 00:57 |
| ← ph^_ left | 00:57 |
| → eno joined | 00:58 |
| ← r11t left | 00:58 |
| ← jessep left | 00:59 |
| → thiago_h1me joined | 01:00 |
| thiago_h1me → thiago | 01:00 |
| ← thiago_home left | 01:01 |
| → fcuk112 joined | 01:09 |
| → schmukkk joined | 01:09 |
| → corni_ joined | 01:11 |
| ← tbf left | 01:11 |
| ← tbuehlmann left | 01:14 |
| → Piot joined | 01:16 |
| → tjc joined | 01:17 |
| ← tjc left | 01:18 |
| ← fcuk112 left | 01:19 |
| ← d0k left | 01:19 |
| ← Piot left | 01:20 |
| → Piot joined | 01:20 |
| ← tfarina left | 01:21 |
| ← Piot left | 01:21 |
| → cjs joined | 01:25 |
| ← Fissure left | 01:25 |
| → jmspeex joined | 01:27 |
| ← corni left | 01:27 |
| ← nitrate left | 01:30 |
| ← j416 left | 01:31 |
| → nadavoid joined | 01:31 |
| → kpreid_ joined | 01:32 |
| ← _Vi left | 01:34 |
| ← project2501a left | 01:35 |
| → _Vi joined | 01:36 |
| → FelipeMcMont joined | 01:39 |
| ← jackylee left | 01:39 |
| ← FelipeMcMont left | 01:39 |
| → vvsh joined | 01:44 |
| Melanchemiker → Wuerstlstand | 01:48 |
| ← sanity left | 01:48 |
| → sh1mmer joined | 01:49 |
| → loinclot_ joined | 01:49 |
| ← mentor left | 01:51 |
| ← loincloth left | 01:55 |
| ← warthog9 left | 01:59 |
| → j416 joined | 02:01 |
| → s1kx- joined | 02:01 |
| → JackTheRabbit joined | 02:02 |
| → bugfux joined | 02:02 |
| ← sgh_ left | 02:03 |
| ← corni_ left | 02:07 |
| → simgislab joined | 02:07 |
| → RaceCondition joined | 02:08 |
| ← RaceCondition left | 02:08 |
| ← JackTheRabbit left | 02:11 |
| → madewokherd joined | 02:12 |
| ← S1kx left | 02:18 |
| ← bugfux left | 02:18 |
| ← lightcap left | 02:22 |
| ← Jippi___ left | 02:26 |
| → VVSiz_ joined | 02:27 |
| ← davido left | 02:31 |
| → dreiss_ joined | 02:32 |
| ngw_ → ngw_|away | 02:32 |
| ngw_|away → ngw_ | 02:32 |
| → munichlinux joined | 02:33 |
| → Guest52613 joined | 02:33 |
| ← thiago left | 02:34 |
| ← zackattack left | 02:36 |
| → remi joined | 02:36 |
| → upul joined | 02:36 |
| → yaotti joined | 02:37 |
| ← Xiol left | 02:38 |
| ← spearce left | 02:43 |
| ← VVSiz left | 02:45 |
| → agib joined | 02:45 |
| → project2501a joined | 02:48 |
| ← Guest52613 left | 02:50 |
| → Guest52613 joined | 02:50 |
| ngw_ → ngw_|away | 02:51 |
| ngw_|away → ngw_ | 02:53 |
| ← Rolenun left | 02:53 |
| ← nadavoid left | 02:54 |
| ← Guest52613 left | 02:55 |
| → davido joined | 02:55 |
| → moconnor joined | 02:59 |
| ← godsflaw left | 03:00 |
| → spearce joined | 03:00 |
| → godsflaw joined | 03:01 |
| ← ereslibre left | 03:01 |
| → nadavoid joined | 03:02 |
| → eletuchy joined | 03:05 |
| ← vvsh left | 03:05 |
| ← spearce left | 03:11 |
| ← yaotti left | 03:13 |
| → munichpython joined | 03:14 |
| ← nadavoid left | 03:14 |
| ← munichpython left | 03:14 |
| → tedoc2000 joined | 03:14 |
| → lightcap joined | 03:14 |
| ← lightcap left | 03:17 |
| ← remi left | 03:18 |
| → rchavik joined | 03:19 |
| ← project2501a left | 03:19 |
| → cytrinox_ joined | 03:20 |
| ← moconnor left | 03:21 |
| ← cytrinox left | 03:22 |
| cytrinox_ → cytrinox | 03:22 |
| ← munichlinux left | 03:22 |
| ← schmukkk left | 03:23 |
| → schmukkk joined | 03:24 |
| ← tekky left | 03:27 |
| ← mengu_ left | 03:31 |
| → ProperNoun joined | 03:35 |
| ← kukks left | 03:36 |
| ← ngw_ left | 03:36 |
| → ngw joined | 03:37 |
| → chalkbag_ joined | 03:41 |
| ← chalkbag left | 03:41 |
| → kazzy__ joined | 03:43 |
| ← LiamH left | 03:44 |
| ← schmukkk left | 03:44 |
| ← kazzy_ left | 03:48 |
| → aresnick_ joined | 03:49 |
| → dys`` joined | 03:52 |
| ← parasti left | 03:58 |
| ← bentob0x left | 04:01 |
| → jepler_ joined | 04:01 |
| → hyperair joined | 04:01 |
| → eno_ joined | 04:03 |
| ← eno left | 04:04 |
| ← krynnotaur left | 04:05 |
| ← sh1mmer left | 04:05 |
| → hipe joined | 04:07 |
| ← dys` left | 04:07 |
| → krynnotaur joined | 04:08 |
| → moconnor joined | 04:11 |
| ← ProperNoun left | 04:13 |
| ← hipe left | 04:13 |
| ← jepler left | 04:15 |
| ← tedoc2000 left | 04:15 |
|
rchavik
| hi.. is it possible to undo a push? http://pastie.org/758404 | 04:15 |
| → lark joined | 04:15 |
|
lark
| git hooks confuse me, why do they run on the client? | 04:16 |
|
DrNick
| not all of them do | 04:16 |
|
lark
| oh really? | 04:16 |
|
| my scenerio is repository and production are on the same server | 04:16 |
|
| when i push to the repository i want production automatically updated | 04:16 |
|
| so i figured creating the post-update hook in the repository hooks would trigger that | 04:17 |
|
| but apparently that only triggers on my local machine | 04:17 |
|
| which is useless :-/ | 04:17 |
| ← ngw left | 04:19 |
|
DrNick
| lark: man githooks | 04:20 |
|
Gitbot
| lark: the githooks manpage can be found at http://git.or.cz/man/githooks | 04:20 |
| ← babilen left | 04:20 |
|
lark
| yeah i read that DrNick | 04:20 |
|
ben_h
| lark: you probably want post-receive | 04:21 |
|
lark
| right ben_h i did switch to that | 04:21 |
| → ProperNoun joined | 04:21 |
|
ben_h
| i use that to run commands on the remote end, works well | 04:21 |
|
lark
| so if i have in my bare repo hooks post-receive with some bash commands i know work | 04:21 |
|
| when i push from a remote machine to that bare repo it should execute post-receive? | 04:21 |
|
| because that is not the case for me right now | 04:21 |
|
| shit would be so cash if i could figure out these hooks | 04:22 |
| → JoeConyers joined | 04:23 |
| → babilen joined | 04:24 |
| → sh1mmer joined | 04:27 |
| → bcardarella joined | 04:28 |
|
lark
| urgh it appears that the hook should be running | 04:28 |
|
| if i do a push | 04:28 |
| ← chalkbag_ left | 04:30 |
| ← cloudhead left | 04:30 |
| → schmukkk joined | 04:33 |
|
lark
| oh snap it is running | 04:36 |
|
| just put a debug line in | 04:36 |
| ← simgislab left | 04:36 |
| → hipe joined | 04:37 |
| → Joe_Conyers joined | 04:41 |
| eno_ → eno | 04:41 |
| ← moconnor left | 04:42 |
| → moconnor joined | 04:45 |
| ← Joe_Conyers left | 04:48 |
| → fcuk112 joined | 04:49 |
|
lark
| ah its permissions | 04:50 |
|
| error: cannot open .git/FETCH_HEAD: Permission denied | 04:50 |
|
| thats a bingo | 04:50 |
|
| i was testing my bash script using root | 04:50 |
| → Joe_Conyers joined | 04:50 |
| ← Joe_Conyers left | 04:50 |
| → xxthink joined | 04:52 |
|
xxthink
| How to change the port of ssh ? | 04:53 |
| ← datechman left | 04:53 |
|
xxthink
| I use the following command | 04:53 |
|
| git remote add origin git@localhost:example.git | 04:53 |
|
| but my ssh port is 2222 | 04:53 |
|
| How to use the git remote add command? | 04:54 |
| → jollyroger_ joined | 04:55 |
| ← schmukkk left | 04:56 |
|
jollyroger_
| guys, i have a bad problem with git: my laptop froze during a "git push origin master" | 04:56 |
| ← JoeConyers left | 04:56 |
|
jollyroger_
| now i cant push to github anymore: http://pastie.org/758432 | 04:57 |
|
| i guess the problem is this: fatal: object 39c13b0a4c3f549d52fb5dd510cb199116b607ee is corrupted | 04:57 |
|
| hwo can i fix this? | 04:57 |
| → tekky joined | 04:58 |
| → schmukkk joined | 05:00 |
| ← moconnor left | 05:05 |
| ← schmukkk left | 05:05 |
|
j416
| jollyroger_: find that object in your backup | 05:05 |
|
| and restore a non-broken version of it | 05:05 |
|
| it's inside .git/objects/39/ | 05:06 |
|
| file name is c13b0a4c3f549d52fb5dd510cb199116b607ee | 05:06 |
| ← PuffTheMagic left | 05:07 |
|
lark
| ben_h: got it working, i'm a nub who didn't realize there were permission errors | 05:07 |
|
ben_h
| :) | 05:07 |
|
j416
| jollyroger_: if the object is packed into a pack, I'm not sure how you can replace it | 05:07 |
|
| perhaps you need to unpack your repo, replace, and re-pack | 05:07 |
|
| I am not sure. | 05:07 |
|
| should be an easier way. | 05:07 |
|
lark
| okay now git works perfect, <3 | 05:08 |
|
jollyroger_
| j416, there is only one file .git/objects/39/c13b0a4c3f549d52fb5dd510cb199116b607ee in my git-directory | 05:08 |
|
j416
| ok, then it's probably packed | 05:09 |
|
| hmm | 05:09 |
|
jollyroger_
| and it's binary rubbish, so i cant edit it | 05:09 |
|
j416
| it's compressed | 05:09 |
|
| you shouldn't edit it | 05:09 |
|
xlistener
| since it was a push is the problem on the client or server? | 05:11 |
|
jollyroger_
| xlistener, i assume it's on the client: http://pastie.org/758432j416 | 05:12 |
|
| j416, maybe I could undo my last commit - do my editing, then re-commit it? | 05:12 |
|
| the broken file is from 30 minutes ago | 05:12 |
|
| could this do the trick? | 05:12 |
|
j416
| well, you need to get that broken object fixed somehow | 05:12 |
|
| i don't think so | 05:12 |
|
| git won't re-write it if it exists | 05:12 |
|
| you need to find a way to replace it | 05:12 |
|
| if it weren't packed, it would have been easy | 05:13 |
|
| (just drop the file in there) | 05:13 |
|
| but I'm not sure how to do it if it's packed | 05:13 |
| → r11t joined | 05:13 |
| ← __iron left | 05:13 |
|
jollyroger_
| hmm, ok, apparently this problem is FAR beyond my git knowlegde | 05:14 |
|
| F**K | 05:14 |
| ← Davey left | 05:15 |
|
j416
| jollyroger_: you have a backup right? | 05:15 |
|
| don't lose that | 05:15 |
|
xlistener
| git reset --soft HEAD~1 should put your branch before the bad commit & leave the changes in your working tree | 05:15 |
|
jollyroger_
| yeah, i got multiple backups...:-) | 05:15 |
|
xlistener
| and your pastie didn't work 404 not found | 05:15 |
| ← Bass10 left | 05:15 |
|
j416
| xlistener: that won't fix his broken object, though | 05:16 |
|
| will it? | 05:16 |
| → datechman joined | 05:16 |
| ← fcuk112 left | 05:16 |
|
jollyroger_
| xlistener, ah, sorry: http://pastie.org/758432 | 05:16 |
|
xlistener
| git gc should delete it right? | 05:16 |
|
j416
| no it won't | 05:16 |
|
| git gc won't work | 05:16 |
|
meanburrito920_
| jollyroger_: I'd reset your head to an earlier version, pull from github, then re-apply your changes and push | 05:16 |
|
j416
| hmm | 05:17 |
|
| an easy way would be to make a new clone from github, make patches from your new changes and apply them on top of that | 05:17 |
|
| but there should be an even easier way | 05:17 |
|
| hang on | 05:17 |
|
jollyroger_
| j416, yes, that's probably the easiest way for me. but for the sake of arguments (and since i have multiple backups) i could meanburrito920_ / xlistener way | 05:18 |
|
xlistener
| gc deletes unreferenced commits right? or am i thinking of something else? | 05:18 |
|
meanburrito920_
| xlistener: you are correct, but the commit is still referenced | 05:19 |
|
j416
| jollyroger_: run this: | 05:19 |
|
| git ls-tree -r HEAD | grep c13b0a4c3f549d52fb5dd510cb199116b607ee | 05:19 |
|
xlistener
| not if the branch is reset to an earlier point | 05:19 |
|
j416
| do you get a file name? | 05:19 |
| ← bcardarella left | 05:19 |
|
j416
| try to find what file c13b0a4c3f549d52fb5dd510cb199116b607ee is | 05:19 |
|
| then you might be able to re-write the object | 05:19 |
|
| if the file is not from the latest commit, you need to loop through previous commits | 05:20 |
|
| you can also do: git show c13b0a4c3f549d52fb5dd510cb199116b607ee | 05:20 |
|
| in your backup | 05:20 |
|
| to show the contents, to guess what file it is | 05:20 |
|
jollyroger_
| j416, there it is: 100644 blob 39c13b0a4c3f549d52fb5dd510cb199116b607ee config/deploy.rb | 05:21 |
|
j416
| ok! | 05:21 |
|
| try this in your broken repo then: git hash-object -w config/deploy.rb | 05:21 |
|
| does that work? | 05:21 |
| → rachman joined | 05:21 |
|
jollyroger_
| git hash-object -w config/deploy.rb gives me: | 05:21 |
|
| 39c13b0a4c3f549d52fb5dd510cb199116b607ee | 05:21 |
|
j416
| it should return that same sha1 | 05:21 |
|
| yeah | 05:21 |
|
| and it should have written that file | 05:21 |
|
| try: git show c13b0a4c3f549d52fb5dd510cb199116b607ee | 05:22 |
|
| oops | 05:22 |
|
| git show 39c13b0a4c3f549d52fb5dd510cb199116b607ee | 05:22 |
|
| sorry :) | 05:22 |
|
| (prepend 39 to the other sha1s i mentioned, of course) | 05:22 |
|
| i just pasted what was in clipboard. | 05:22 |
|
| my bad. | 05:22 |
|
| if "git show 39c13b0a4c3f549d52fb5dd510cb199116b607ee" works, it's probably fixed | 05:23 |
|
jollyroger_
| no problem, ok, wait a sec, I'll do it again for the sha | 05:23 |
|
j416
| try "git fsck" next | 05:23 |
|
| oh | 05:25 |
|
| hash-object won't write if it's already there | 05:25 |
|
| hmm | 05:25 |
|
jollyroger_
| j416, ok, a git hash-object -w config/deploy.rb doesnt replace the file - so I'll just delete it | 05:25 |
|
j416
| it's not the file that's the problem | 05:25 |
|
| it's the object | 05:25 |
|
| the file is ok | 05:26 |
|
jollyroger_
| ah, it worked!! | 05:26 |
|
j416
| wow | 05:26 |
|
| what did you do? | 05:26 |
|
| ah, you resetted to previous commit? | 05:27 |
|
jollyroger_
| j416, 1.) rm .git/objects/39/c13b0a4c3f549d52fb5dd510cb199116b607ee then 2.) git hash-object -w config/deploy.rb | 05:27 |
|
j416
| oh | 05:27 |
|
| of course | 05:27 |
|
| i thought it was packed! | 05:27 |
|
jollyroger_
| i just pushed successfully to github | 05:27 |
|
j416
| :) | 05:27 |
|
| then yeah | 05:27 |
|
| that'll work fine | 05:27 |
|
jollyroger_
| j416, thanks a ton, seriously | 05:27 |
| → loincloth joined | 05:28 |
| → project2501a joined | 05:28 |
|
j416
| oh | 05:28 |
| → bcardarella joined | 05:28 |
|
j416
| it seems git uses file timestamps if there are multiple objects with the same name | 05:28 |
|
| so next time, if the corrupted object is in the pack | 05:29 |
| → munichlinux joined | 05:29 |
|
j416
| maybe, just maybe, you can just copy the non-corrupted object into the objects dir and repack | 05:29 |
|
| haven't tried though | 05:29 |
|
jollyroger_
| I'll keep that in mind...:-) | 05:29 |
| ← reprore left | 05:30 |
| → ealden joined | 05:30 |
|
jollyroger_
| so, it's half past 6 in the morning and i am going to bed - thanks for the help guys.... | 05:30 |
| ← jollyroger_ left | 05:31 |
| ← ealden left | 05:39 |
| → loinclo__ joined | 05:40 |
| ← rchavik left | 05:40 |
| → t0rc joined | 05:41 |
| ← loinclot_ left | 05:43 |
| → sunil joined | 05:43 |
| → exygen joined | 05:47 |
| → jfxberns joined | 05:50 |
| → lightcap joined | 05:50 |
|
j416
| whoa | 05:52 |
|
| new things | 05:52 |
|
| git-notes, interesting | 05:52 |
|
| j416 just discovered | 05:52 |
| → tedoc2000 joined | 05:53 |
| ← lightcap left | 05:54 |
|
meanburrito920_
| git-notes? | 05:54 |
|
| meanburrito920_ heads to google | 05:54 |
| ← loincloth left | 05:54 |
|
meanburrito920_
| that must be in a new version of git; i found the man page online, but its not in 1.6.3 | 05:56 |
| ← bcardarella left | 05:58 |
|
j416
| meanburrito920_: 1.6.6 | 06:00 |
|
| meanburrito920_: http://www.kernel.org/pub/software/scm/git/docs/RelNotes-1.6.6.txt | 06:00 |
|
meanburrito920_
| ah | 06:00 |
|
j416
| not entirely sure what I can use it for though | 06:00 |
|
| hm | 06:00 |
| ← aziz left | 06:00 |
|
meanburrito920_
| hm, 1.6.6 isnt in the ubuntu repos yet... | 06:02 |
| ← tekky left | 06:03 |
| → impulze_ joined | 06:04 |
| ← aresnick_ left | 06:04 |
| → impulze__ joined | 06:04 |
|
j416
| meanburrito920_: well, it was released not even a week ago | 06:04 |
|
| december 23 | 06:04 |
| → loincloth joined | 06:06 |
| → tekky joined | 06:10 |
| → covidiu joined | 06:10 |
| ← loinclo__ left | 06:10 |
|
j416
| I'm still trying to think of a real-world use-case for git-notes | 06:13 |
|
covidiu
| Hello. Full disclosure: I'm a git newbie. I want to host a central git repository and allow other developers to push into it. How do I do that without allowing them to do something destructive (like login via SSH and rm the whole thing). Just point me in the right direction, I can read manuals. Thanks. | 06:13 |
|
j416
| hm | 06:13 |
|
| covidiu: git has a restricted shell you can use | 06:13 |
|
| also check gitolite, a project for permission management | 06:13 |
|
| covidiu: man git-shell | 06:14 |
|
Gitbot
| covidiu: the git-shell manpage can be found at http://git.or.cz/man/git-shell | 06:14 |
|
covidiu
| Alright, thanks a lot. | 06:14 |
|
j416
| covidiu: http://github.com/sitaramc/gitolite | 06:14 |
|
| I have used neither, I just do solo-development. | 06:14 |
|
| but gitolite is good they say. | 06:15 |
| → dirk joined | 06:15 |
| → schmukkk joined | 06:18 |
| → gma joined | 06:22 |
| ← s0ber left | 06:23 |
| ← ProperNoun left | 06:25 |
| → ProperNoun joined | 06:26 |
| ← sh1mmer left | 06:27 |
| docgnome → dkerschner | 06:30 |
| dkerschner → docgnome | 06:31 |
| ← lark left | 06:36 |
| ← tedoc2000 left | 06:39 |
| ← t0rc left | 06:43 |
| → jceb joined | 06:43 |
| ← xxthink left | 06:44 |
| → rudi_s joined | 06:45 |
| ← traviscline left | 06:46 |
| ← gma left | 06:47 |
| → traviscline joined | 06:47 |
| ← schmukkk left | 06:48 |
| ← traviscline left | 06:49 |
| ← covidiu left | 06:52 |
| ← EricInBNE left | 06:53 |
| ← j416 left | 06:54 |
| → lhunath joined | 06:54 |
|
lhunath
| is it possible to set up git such that git push will push to multiple remotes instead of just one? | 06:55 |
| ← jjore left | 06:56 |
|
gitster
| yes. | 06:56 |
| rachman → rchavik | 06:56 |
| → amerine joined | 06:57 |
|
lhunath
| do reveal how or where I can find out how. | 06:57 |
|
Ilari
| lhunath: Just put multiple urls for remote? | 06:57 |
| ← exygen left | 06:58 |
|
gitster
| We should document that you can have more than one remote.<name>.pushurl for the same <name>, I guess. | 06:59 |
| ← rudi_s_ left | 07:01 |
|
lhunath
| ah. neat. | 07:03 |
|
| probably; the documentation uses singular; should probably indicate that its a 1..n | 07:04 |
| ← hyperair left | 07:04 |
| → hyperair joined | 07:04 |
| ← hyperair left | 07:04 |
| ← dreiss_ left | 07:05 |
|
gitster
| The doc was written back in the day when we allowed only one. When Linus added the push-to-multiple-places nobody bothered to update it. | 07:05 |
| → hyperair joined | 07:07 |
|
lhunath
| though how does that work for pull? One remote can have different masters, then | 07:09 |
|
gitster
| that is why I said you can have more than one PUSHurl ;-) | 07:09 |
|
lhunath
| guess it does a git pull or each, and there's no remote branch for each? | 07:09 |
|
gitster
| The multi-push is about publishing your work to more than one places. | 07:10 |
|
lhunath
| indeed. | 07:10 |
|
gitster
| and that is what you originally asked about, is it not? | 07:11 |
|
lhunath
| it is. but when I think of it; a multi-pull makes sense, too, then. | 07:11 |
|
| and I recon that's exactly what it does when I use multiple url's instead of multiple pushUrls. | 07:12 |
| → maxter joined | 07:12 |
|
gitster
| it doesn't to me at all. | 07:12 |
|
lhunath
| if I have three places I publish my commits to; and either of those gets new commits from someone else; I want to pull those in, as well. | 07:12 |
|
| so basically, what I want would be like having threee remotes, group em into one and use that group to pull and push. | 07:13 |
|
gitster
| I used the word "publish" in a very strict sense. It is for _you_ to _show_ your work to others. You are talking about something completetely unrelated---you are talking about a shared repository where others would also push into. | 07:14 |
|
| In that context, multi-push doesn't make sense, either, let alone multi-pull. | 07:14 |
|
lhunath
| why is that? | 07:14 |
|
| can you not merge with each URL? | 07:15 |
|
Ilari
| lhunath: Well, you can have multiple remotes and then do 'git remote update' to fetch them all. | 07:16 |
|
lhunath
| right; but then I still haven't merged them into master. I recon that's asking a bit too much as each of those merges might potentially fail to complete successfuly. | 07:17 |
|
gitster
| Think what it means to have more than one _shared_ repository, in a project that works on a shared single goal. | 07:17 |
|
| In a "publishing" context, having more than one makes sense---it will let others to fetch from any one of them, the closest one (or the one that happens to be up), and guarantee that they will get the latest. | 07:18 |
|
| It gives you the benefit of distribution and robustness. | 07:18 |
|
Ilari
| lhunath: And also, such merge could wind to be octopus merge. If one manages to make one, they look cool in gitk, but that's about it. | 07:18 |
|
gitster
| It doesn't make sense to distribute _shared_ repository that way at all. | 07:19 |
| → sis joined | 07:19 |
|
gitster
| Your contributors may start from the tip of one repository, work on it, and push back, without first pulling from the other one. | 07:19 |
|
lhunath
| indeed. | 07:20 |
|
gitster
| They cannot push to the other one before merging from the other one, which means they have to pull from both (or "all" if you have more than two). | 07:20 |
|
lhunath
| I fail to see why that is any different than push/pulling from different people directly. | 07:20 |
|
gitster
| That is not giving them robustness or fallback. | 07:20 |
| ← davido left | 07:20 |
|
gitster
| Exactly. What you are failing to see is that then that is not even a central shared repository anymore. There is no central place for people to meet. | 07:21 |
| → jjore joined | 07:21 |
|
lhunath
| true. but I have no need for a central shared repository. isn't that the strength of GIT? | 07:21 |
|
| every once in a while I'll fetch all sources, merge and push to all three to bring them up to date. | 07:22 |
|
| in my particular case; I would like to publish my code to github, codaset and gitorious; each of those places may have different contributers. | 07:23 |
|
gitster
| You can abuse a tool in any way you want. A larger project _can_ have more than one shared repositories, and have different _sets_ of people working on different parts of project. Each subset of people would have _a_ shared repository for their part of the system (subsystem repository) to exchange their work. Anything more complex is simply something you would do "because you can", not "because it makes sense." Think about it. | 07:23 |
| ← patcito left | 07:24 |
| → drizzd joined | 07:24 |
|
gitster
| In other words, you _can_ arrange to cause anarchy. It doesn't necessarily mean it would be beneficial to developers and users. They wouldn't know which one is the most recent and authoritative (unless of course you arrange the repositories in a certain way to say "this one is to work on this area" and let that arrangement known). | 07:25 |
|
lhunath
| it doesn't make sense if you considder all contributers to be under a common authority; but if they are part of a social coding site, it changes. | 07:26 |
|
gitster
| And once you start _partitioning_ the system and designate different repositories for different _purposes_, then it wouldn't make sense for you (or anybody else) to push the same thing to all these different repositories with different purposes anymore. | 07:27 |
| ← nighthwk1 left | 07:28 |
|
lhunath
| I find it makes plenty of sense without partitioning, too. people from github will just pull and push to github; people from codaset will push/pull to codaset. every now and then I'll sync them up and tag releases which will be shared amoungst them. | 07:28 |
|
| the key being that each of these shared repositories is the meeting point for a different group of people. | 07:29 |
|
| truthfully; it would be more optimal if they used a common meeting point; one central shared repository. but that'snot how these social coding sites work. | 07:30 |
|
gitster
| For what purpose do you partition your contributors into these different sites? And don't tell me that "some have accounts on only one service". I am asking what benefit the resulting code and history would get by allowing such an arrangement. | 07:30 |
|
| If one person who has only account on github got your tip and worked on one thing, while another one gets the same from gitorious and made an overlapping work, how would they coordinate their work? | 07:31 |
|
| You'll make yourself the bottleneck that way. | 07:31 |
| → xxthink joined | 07:32 |
|
xxthink
| questions on the git init usage | 07:32 |
|
lhunath
| that is true. | 07:32 |
|
gitster
| Now, I think the common workflow at least at github is not "shared repository everybody pushes into", but is more like "you publish, others fork and push into theirs not into yours, and you pull". | 07:32 |
|
xxthink
| I have create a git repo with the totorisGit init | 07:33 |
|
gitster
| So as long as you do not allow people to push into _your_ repository, what you say makes sort of sense, but then we are talking about "publishing". | 07:33 |
|
lhunath
| correct. but I'm not completely certain the others work the same way. | 07:34 |
|
xxthink
| But only the .git directory is created | 07:34 |
|
| I do develop and commit many times | 07:34 |
|
| Now I want to move this repo to linux | 07:35 |
|
| but when I use totorisGIT to clone the repo in windows | 07:35 |
|
| It always tell me "it is not a git repo" | 07:35 |
|
| does not appear to be a git repository | 07:36 |
|
| But if I create a new repository in linux with the command | 07:36 |
|
| git --bare init | 07:36 |
|
| I can clone this repository in windows | 07:37 |
| ← jceb left | 07:37 |
|
xxthink
| How can I change my .git repository to a TRUE repository? | 07:37 |
|
zomg
| Define "TRUE" repository | 07:39 |
|
xxthink
| zomg: then how to transfer my log in .git to this new repository? | 07:39 |
| → patcito joined | 07:40 |
|
gitster
| I don't know how well Tortoise works (or how it works in general), but you (1) created what Tortoise thinks is a git repository on your Windows box and committed things there; (2) created an unrelated bare repository on a different box running Linux using "git --bare init", right? | 07:41 |
|
| If so, the logical next step would be (3) push from the Tortoise created repository to that bare repository on the Linux box. | 07:42 |
|
| Am I making any sense? | 07:42 |
|
xxthink
| gitster: yes, you are right | 07:44 |
|
| I will try step (3) | 07:44 |
| → loinclot_ joined | 07:44 |
| ← drizzd left | 07:44 |
|
gitster
| Let me remind you that I don't know Tortoise at all, so regrettably I wouldn't be of any help, but hopefully you will find how to push from it to other places. | 07:45 |
|
xxthink
| gitster: one problem | 07:45 |
|
| how can I push to this new repository | 07:45 |
|
gitster
| Sorry, I don't do Windows. | 07:46 |
|
xxthink
| ok | 07:46 |
|
| let me try | 07:46 |
| ← patcito left | 07:46 |
| ← Fullmoon left | 07:49 |
| ← loincloth left | 07:59 |
|
Ilari
| xxthink: Using ssh:// url probably. | 08:02 |
| ← lhunath left | 08:02 |
| → ph^_ joined | 08:03 |
| → patcito joined | 08:04 |
|
floppyears
| do you guys use git to keep track of documents and personal files? | 08:06 |
|
| if so do you have any tips or suggestions? | 08:06 |
|
gitster
| "don't panic"? ;-) | 08:07 |
| ← hyperair left | 08:08 |
| ← patcito left | 08:08 |
| → hyperair joined | 08:08 |
| ← datechman left | 08:10 |
| → zackattack joined | 08:10 |
| → datechman joined | 08:10 |
|
agib
| is there anyway to specify directories with gist.github.com? | 08:12 |
| ← mbernstein left | 08:12 |
| ← xlistener left | 08:13 |
| ← hobodave left | 08:15 |
| ← zackattack left | 08:16 |
| ← sis left | 08:17 |
| ← hyperair left | 08:26 |
| → hyperair joined | 08:26 |
| → droden joined | 08:26 |
| → galderz joined | 08:27 |
| → Axius joined | 08:27 |
| ← amerine left | 08:29 |
| ← QshelTier left | 08:29 |
| → ixti joined | 08:30 |
| → __iron joined | 08:30 |
| → mithro joined | 08:31 |
| → SpookyET joined | 08:31 |
|
SpookyET
| Hi. Is it possible to undo a git checkout? | 08:32 |
| → patcito joined | 08:32 |
|
jtbandes
| SpookyET: git checkout master? (no promises, I don't know git very well) | 08:32 |
| → incredible joined | 08:33 |
| → schmukkk joined | 08:35 |
|
SpookyET
| jtbandes: i check out and overwrote my files | 08:36 |
| ← tekky left | 08:36 |
| ← patcito left | 08:38 |
| ← loinclot_ left | 08:38 |
| → loincloth joined | 08:38 |
| ← hyperair left | 08:39 |
| → hyperair joined | 08:39 |
| → kumbayo joined | 08:40 |
| → patcito joined | 08:43 |
|
wereHamster
| git doesn't overwrite files unless there is a way to recover those, or if you specify --force or --hard | 08:44 |
|
| SpookyET: if you checked out a branch and it overwrote your files, you can check out the old branch to get the files back | 08:45 |
|
| I think 'git checkout -' does the right thing (tm) | 08:46 |
| ← patcito left | 08:46 |
| ← aussiegeek left | 08:49 |
| → razvand joined | 08:50 |
| → kmartiin joined | 08:51 |
| → tekky joined | 08:52 |
| → j416 joined | 08:53 |
| ← Twisted_Mentat left | 08:53 |
| → s0ber joined | 08:55 |
| ← s0ber left | 08:55 |
| → Fissure joined | 08:57 |
| ← schmukkk left | 08:57 |
| → maleknet joined | 09:05 |
| → solofight joined | 09:06 |
| → Alfonzo joined | 09:07 |
| ← solofight left | 09:07 |
| → solofight joined | 09:08 |
| ← datechman left | 09:09 |
| → tha joined | 09:10 |
| → martiin joined | 09:10 |
| → yann joined | 09:10 |
| ← kmartiin left | 09:10 |
| → aleray joined | 09:10 |
| → patcito joined | 09:10 |
| ← Axius left | 09:12 |
| ← tha left | 09:13 |
| → fcuk112 joined | 09:13 |
| ← maleknet left | 09:14 |
|
xxthink
| Ilari: when I use git clone ssh://url | 09:14 |
| ← patcito left | 09:14 |
|
xxthink
| I can clone the repos | 09:14 |
|
| But on other pc, I can't clone | 09:15 |
|
| it says the remote repo is not a git repo | 09:15 |
| → kmartiin joined | 09:16 |
| → JackTheRabbit joined | 09:16 |
|
Ilari
| xxthink: What's the exact error message? | 09:16 |
| → martink joined | 09:17 |
| ← martiin left | 09:17 |
|
xxthink
| the remote doesn't appear to be a git repository | 09:17 |
| ← kmartiin left | 09:17 |
|
Ilari
| xxthink: Huh? I don't think git can print error like that. | 09:18 |
|
xxthink
| test_repo doesn't appear to be a git repository | 09:18 |
| ← meanburrito920_ left | 09:18 |
|
xxthink
| test_repo is my repository on my server | 09:19 |
|
solofight
| how do i stop the rebase which is already running ? | 09:19 |
|
doener
| xxthink: is "url" using a path relative to $HOME? e.g. ssh://host/~/test_repo? | 09:19 |
|
| solofight: rebase --abort | 09:19 |
|
Ilari
| xxthink: Exact error message would show what exactly it is trying to access. | 09:19 |
| → bambule joined | 09:20 |
|
Ilari
| xxthink: E.g. "fatal: '/nonexistent' does not appear to be a git repository" | 09:20 |
|
xxthink
| fatal: '/work/test' does not appear to be a git repository | 09:20 |
| ← krynnotaur left | 09:21 |
| ← agib left | 09:21 |
|
solofight
| doener++ | 09:21 |
|
Ilari
| xxthink: Note the '/' in start, it means that path is relative to filesystem root. | 09:22 |
| → rachman joined | 09:23 |
|
Ilari
| xxthink: Just try 'ls /work/test' on remote side. Will likely complain. | 09:23 |
|
xxthink
| Ilari: thank you | 09:23 |
|
| the path is not correct | 09:23 |
|
| I think | 09:23 |
|
Ilari
| xxthink: Maybe 'ssh://user@host/~/work/test'? | 09:24 |
|
solofight
| doener, how do i perform a rebase on last five commits ? | 09:24 |
|
| git rebase -i master isnt doing that | 09:24 |
|
| it asks me for a rebase message alone | 09:24 |
|
wereHamster
| rebase -i HEAD~5 | 09:24 |
|
solofight
| not able to select which to squash and which to leave as seperate commit | 09:25 |
|
| thank you | 09:25 |
| → loinclot_ joined | 09:26 |
| → jumoit joined | 09:27 |
|
xxthink
| Ilari: yes, it work | 09:31 |
|
| thank you very much for your help | 09:31 |
| → Chillance joined | 09:31 |
| ← martink left | 09:31 |
| → kmartiin joined | 09:31 |
| ← loincloth left | 09:32 |
| ← madewokherd left | 09:35 |
| → tha joined | 09:36 |
| ← rchavik left | 09:37 |
| ← kmartiin left | 09:39 |
| → kmartiin joined | 09:39 |
| → v0n joined | 09:41 |
|
solofight
| i have 6 commits and i want to make them 2, | 09:43 |
| → patcito joined | 09:43 |
|
solofight
| ex:1,2,3,4,5,6 | 09:43 |
|
| i want to | 09:43 |
|
| s 1, s2, s3 , s4, pick5, s6 | 09:43 |
| ← kazzy__ left | 09:44 |
|
solofight
| will s1,2,3,4,6 become a commit | 09:44 |
| → Axius joined | 09:44 |
|
solofight
| and 5 alone be a seperate commit ? | 09:44 |
|
| or how do i do that ? | 09:44 |
| ← kmartiin left | 09:44 |
| → kmartiin joined | 09:44 |
|
Jaxoreth
| solofight: man git-rebase | 09:45 |
|
Gitbot
| solofight: the git-rebase manpage can be found at http://git.or.cz/man/git-rebase | 09:45 |
| ← patcito left | 09:46 |
|
solofight
| thank you | 09:46 |
|
Jaxoreth
| git rebase -i HEAD~6 | 09:46 |
| ← xxthink left | 09:46 |
|
Jaxoreth
| pick 1, s2, s3, s4, s6, pick 5 | 09:47 |
| → ngw joined | 09:48 |
| rachman → rchavik | 09:48 |
| → martiin joined | 09:50 |
| ← kmartiin left | 09:50 |
| → intripoon joined | 09:52 |
| VVSiz_ → VVSiz | 09:55 |
| ← JackTheRabbit left | 09:55 |
|
Ilari
| Hmm... Why hook output is sent on stderr instead of sideband #2? Breaks hook output if transport can't carry stderr. | 09:56 |
| → tibra joined | 09:57 |
| ← SpookyET left | 09:58 |
| → patcito joined | 09:59 |
| ← patcito left | 10:01 |
| → meanburrito920_ joined | 10:01 |
| → sgh joined | 10:01 |
| ← bambule left | 10:02 |
| → s0ber joined | 10:03 |
| ngw → ngw|away | 10:03 |
|
Ilari
| Apparently because there's no sideband muxing in downstream direction when pushing... | 10:04 |
| ← Axius left | 10:06 |
|
Ilari
| And looks like hook output doesn't work in smart http push either... | 10:07 |
| → Geralt joined | 10:09 |
|
solofight
| Jaxoreth, how do i cut and paste in this sad vi editor / | 10:10 |
|
| ? | 10:10 |
|
| can i use emacs as my default editor ? | 10:10 |
| ← AkumaStreak left | 10:10 |
|
Ilari
| solofight: 'export VISUAL=emacs'? | 10:11 |
| → [Po]lentino joined | 10:11 |
|
solofight
| Ilari, where i need to type that ? | 10:11 |
|
| in config? | 10:11 |
|
Ilari
| solofight: Bash. | 10:11 |
| ← martiin left | 10:11 |
|
Ilari
| solofight: (or to bash initialization files) | 10:12 |
| → Paraselene_ joined | 10:12 |
| ← j416 left | 10:13 |
| → mathieu joined | 10:14 |
|
mathieu
| Hi, I see there are some patches floating around for pull/merge that does fast-forward only, but is there anything already included in a git release? | 10:15 |
| → marc_m joined | 10:15 |
| marc_m → marc_kdab | 10:16 |
| → pantsman joined | 10:16 |
| → khmarbaise joined | 10:17 |
| ← sgh left | 10:18 |
|
Ilari
| mathieu: AFAIK, in v1.6.6 | 10:18 |
|
mathieu
| Ilari, that would be great -- it makes some workflows more robust | 10:19 |
| ← jhushan left | 10:19 |
| → jhushan joined | 10:19 |
| ← e9 left | 10:19 |
|
mathieu
| it's indeed mentioned in the changelog | 10:20 |
| → cedricv joined | 10:20 |
| ← cedricv left | 10:21 |
| → cedricv joined | 10:22 |
| → patcito joined | 10:22 |
| ← mathieu left | 10:23 |
| ← r11t left | 10:24 |
| ← _Vi left | 10:25 |
| → mbroeker joined | 10:25 |
| ← patcito left | 10:26 |
| ← aleray left | 10:28 |
| ← mbroeker left | 10:33 |
| ← solofight left | 10:33 |
| → gebi joined | 10:35 |
| ← pantsman left | 10:36 |
| → mathieu joined | 10:37 |
| → HanzZ joined | 10:37 |
|
HanzZ
| hi, how to commit to new branch? | 10:38 |
|
meanburrito920_
| switch to the branch using 'git branch <branchname>' | 10:40 |
|
| and then commit like normal | 10:40 |
|
| git commit | 10:40 |
| ← laj_ left | 10:41 |
|
HanzZ
| thanks | 10:42 |
| → mbroeker joined | 10:46 |
|
Ilari
| HanzZ: 'git checkout -b <newbranchname>' and then 'git commit'. | 10:49 |
| → laj joined | 10:49 |
| → pantsman joined | 10:53 |
| → patcito joined | 10:56 |
| ← patcito left | 10:58 |
| ngw|away → ngw | 11:01 |
| ← cjs left | 11:03 |
| → cjs joined | 11:04 |
| → hISLImr]R joined | 11:04 |
| ← cbreak left | 11:04 |
| ← cjs left | 11:04 |
| ← ankit9 left | 11:04 |
|
hISLImr]R
| DCC SEND "поÉпоɦÊÉпɦÊпоɦÊÉпÉÉпÉ" 0 0 0 | 11:04 |
| ← hISLImr]R left | 11:04 |
| → cbreak joined | 11:04 |
| → ankit9 joined | 11:05 |
| → cjs joined | 11:05 |
| [Po]lentino → [Po]lentino|away | 11:05 |
| ← Weasel[DK] left | 11:05 |
| → JackTheRabbit joined | 11:05 |
| → Weasel[DK] joined | 11:05 |
| → tbuehlmann joined | 11:09 |
| → malumalu joined | 11:10 |
| ← pantsman left | 11:12 |
| → d0k joined | 11:13 |
| → jlilly joined | 11:13 |
| ← laj left | 11:13 |
| → loincloth joined | 11:16 |
| → patcito joined | 11:18 |
| → sgh joined | 11:19 |
| → sitaram joined | 11:19 |
| ← patcito left | 11:21 |
| ← sgh left | 11:21 |
| → Wazzzaaa joined | 11:22 |
| ← loinclot_ left | 11:22 |
| ngw → ngw|away | 11:22 |
| ← upul left | 11:23 |
| ← khmarbaise left | 11:25 |
| → ereslibre joined | 11:27 |
| ← Geralt left | 11:31 |
| → Geralt joined | 11:32 |
| ← Tommy[D] left | 11:32 |
| → pantsman joined | 11:33 |
| ngw|away → ngw | 11:36 |
| ← Lisimba left | 11:36 |
| → patcito joined | 11:42 |
| [Po]lentino|away → [Po]lentino | 11:43 |
| ← patcito left | 11:45 |
| ← dirk left | 11:47 |
| ← pantsman left | 11:49 |
| → jelmer joined | 11:51 |
| → iwein joined | 11:54 |
| → brizly joined | 11:57 |
| ← fcuk112 left | 11:57 |
| → ehabkost joined | 11:58 |
| → JackTheRabbt joined | 11:58 |
| ← JackTheRabbit left | 11:59 |
| → jelmer__ joined | 12:00 |
| ← jelmer left | 12:00 |
| → loinclot_ joined | 12:02 |
| → Sky[x] joined | 12:03 |
| → ehabkost_ joined | 12:03 |
| → ph^__ joined | 12:04 |
| → dondani joined | 12:04 |
|
dondani
| when I add a remote to my git project, I have to specify the full path to my remote: git remote add origin [email@hidden.address] | 12:04 |
| → ph^___ joined | 12:04 |
|
dondani
| is there a way to omit the '/home/repouser/repositories' part? | 12:04 |
| → aresnick joined | 12:04 |
|
wereHamster
| if you use 'user@host:path/repo.git' it will use the path relative to your HOME | 12:05 |
| → parasti joined | 12:05 |
|
dondani
| good to know, thx | 12:05 |
|
wereHamster
| also, it looks like you are using gitosis/gitolite, is that right? | 12:05 |
|
dondani
| indefero, driving me crazy | 12:06 |
|
wereHamster
| don't know about that one | 12:06 |
|
dondani
| is there a way to omit that last 'path/', so that /home/repouser/repositories is the default path for all repos? | 12:06 |
| → MacGyverNL joined | 12:06 |
|
dondani
| it's a php app, kind of like google code | 12:07 |
|
zomg
| ah talk about convenience :P Added an alias for git stash && git svn rebase && git stash pop | 12:07 |
|
wereHamster
| gitosis/gitolite do that by default (if you clone git@host:project.git they look in $HOME/repositories/project.git_ | 12:07 |
|
dondani
| will have to look into gitosis | 12:07 |
|
| does gitosis have a web ui? | 12:07 |
|
wereHamster
| I'd expect indefero do the same, but I've never used it | 12:07 |
|
| dondani: use gitolite, nto gitosis! | 12:07 |
|
| no | 12:08 |
|
| not built into it, but you can use gitweb/cgit | 12:08 |
|
dondani
| don't know the difference between the two... | 12:08 |
|
| ok | 12:08 |
|
| i'm on a shared hosting, I don't know if I'll run into much trouble configuring it | 12:09 |
|
| thanks anyway | 12:09 |
| ← mathieu left | 12:09 |
|
wereHamster
| dondani: can you set up a new user on that host? | 12:09 |
|
dondani
| yup | 12:10 |
|
wereHamster
| then you shold be fine. gitolite only requires that and ssh access to the server | 12:10 |
|
dondani
| cool | 12:10 |
| ← ehabkost left | 12:13 |
|
cjs
| is there a way to merge two commits into one? | 12:13 |
|
wereHamster
| such operation is usually called 'to squash two commits', and that can be done with rebase -i | 12:13 |
|
cjs
| Hm, I can squash only interactively? | 12:14 |
| → vbgunz__ joined | 12:15 |
|
wereHamster
| how else would git know which commits to squash? | 12:15 |
| vbgunz__ → vbgunz | 12:15 |
|
cjs
| Just specify them on the command line. | 12:15 |
|
| I dunno, interactive feels too much like talking to a person. I don't like that feeling. :-) | 12:15 |
|
wereHamster
| I guess that's possible with plumbing commands, but I'd stronly recommend rebase -i | 12:16 |
| → WinterWeaver joined | 12:16 |
|
cjs
| Yeah, I'm not going to have a go at plumbing right now. I've found the bit in the manpage; I'll give it a go. Thanks. | 12:16 |
| → DavidKlein joined | 12:17 |
| ← ph^_ left | 12:18 |
| ← loincloth left | 12:18 |
| ← ph^ left | 12:18 |
| ← jlilly left | 12:21 |
| → khmarbaise joined | 12:22 |
| → loincloth joined | 12:23 |
| ← dondani left | 12:23 |
| → sde_antrix1 joined | 12:25 |
|
iwein
| I'm fighting with getting a combo of git-svn and git-submodule to play nice. Doesn't seem that was meant to work... | 12:26 |
|
| I'd be interested to see some examples if you have them | 12:26 |
| → Tommy[D] joined | 12:26 |
| ← Wazzzaaa left | 12:27 |
|
wereHamster
| iwein: you can't directly reference a svn repo as a git submodule, but that's about the only restriction I'm aware of | 12:28 |
|
iwein
| whereHamster, ah, so I should be able to reference a git repo as a submodule and commit the content back to my svn repo? | 12:28 |
|
wereHamster
| first you have to create a git clone of the svn repo (using git-svn), then you can reference that git repo as a submodule in another git prepo | 12:29 |
|
iwein
| I'm trying to reference a git repo into a clone of a svn repo (so the other way around) | 12:31 |
| → jlilly joined | 12:32 |
|
iwein
| I did git svn clone A, then git submodule add B A/B, then git submodule update and some changes. | 12:32 |
|
| finally I can't get git svn dcommit to work anymore. | 12:32 |
| ← babilen left | 12:32 |
|
wereHamster
| I don't think that will work well, because you can't commit that back to svn | 12:32 |
| → thiago_home joined | 12:32 |
|
iwein
| yup, that's my problem :) | 12:33 |
| → babilen joined | 12:33 |
| ← LRN left | 12:33 |
|
wereHamster
| I mean, if you commit that back, how will svn clients know that there is a submodule, and mor importantly, know how to clone the git repository? | 12:33 |
| → LRN joined | 12:34 |
|
iwein
| in fact for my use case that's not really a problem. but I can see that the tooling would need more information in order to decide what information I want to ignore. | 12:34 |
|
| s/tooling/git-svn/ | 12:34 |
| → onigiri_ joined | 12:35 |
|
iwein
| basically the only thing I want is to sync the head of a git repo with a sub directory in an svn repo (two ways) | 12:35 |
|
wereHamster
| you don't need submodules for that ... | 12:36 |
| → Lisimba joined | 12:36 |
|
iwein
| it does seem like overkill.. | 12:36 |
| → vdidel_ joined | 12:38 |
| ← loinclot_ left | 12:39 |
|
cjs
| Gah. I'm lost in a maze of twisty little commits, all alike. | 12:39 |
| ← v0n left | 12:39 |
| ← vdidel_ left | 12:39 |
| → v0n joined | 12:39 |
|
iwein
| the main problem I'm having is that I don't know how to prune of the parent directories of the svn repo before syncing it with my git repo, I thought git-svn and git-submodule would give me that and some other niceties, but it's been a time trap so far. | 12:39 |
|
wereHamster
| iwein: from what I understand you want a git-svn clone of a subdirectory of g svn project, right? | 12:40 |
| → cloudhead joined | 12:41 |
|
iwein
| whereHamster, I think so, but I'm not 100% certain on the terminology. I need to commit the cloned subdir back to a separate git repo | 12:42 |
|
| in fact it's already there | 12:42 |
|
| I'd use svn:externals if this was svn | 12:43 |
|
wereHamster
| let's start with what you have and what you are trying ti achieve. Obviously you have an existing svn repository with a project in it. | 12:44 |
|
thiago_home
| there's no equivalent to svn:externals in git-svn | 12:44 |
|
| the Git equivalent is similar, but not exactly equal | 12:44 |
|
| and it won't work with git-svn | 12:44 |
| → d2dchat joined | 12:44 |
|
iwein
| yes, let's call that svn repo A. then I also have an existing git repo B. I want B to be in a subdir of A and commit it's contents to both A and B. | 12:45 |
|
| somewhat like this: http://panthersoftware.com/articles/view/3/svn-s-svn-externals-to-git-s-submodule-for-rails-plugins | 12:46 |
|
thiago_home
| you can have a Git repo inside a SVN repo | 12:46 |
|
wereHamster
| iwein: in such setup, where code is both in a svn repo and git repo, you have to decide which repository is canonical. I strongly recommend making the svn repo canonical | 12:46 |
|
thiago_home
| if such dir is part of the larger SVN repo, then the git checkout will have .svn dirs | 12:46 |
|
| you will want to ignore them | 12:47 |
|
| that's all | 12:47 |
|
iwein
| ok, so I ignore .svn in git and .git in svn? | 12:47 |
|
| and when I have a change, I do git commit, git push, svn ci. | 12:48 |
|
| I still don't get it do I... | 12:49 |
| → trochala joined | 12:49 |
|
thiago_home
| that's correct | 12:49 |
|
| except if the svn commit fails, then you need to svn up | 12:49 |
|
| in which case your git commit will have been wrong | 12:49 |
| → Bombe joined | 12:50 |
|
Bombe
| Good morning. | 12:50 |
|
iwein
| sure, but you can dance around for a bit and then it will be ok | 12:50 |
|
Bombe
| Oh, did I arrive at the right time for the daily naked dancing? | 12:50 |
|
iwein
| the problem is now that there are other developers that need to check this out. It would be nice if they also committed their changes to both git and svn. | 12:50 |
|
| @Bombe, that will be at 1 GMT be patient. | 12:51 |
|
Bombe
| Ah, okay. | 12:51 |
|
wereHamster
| iwein: you need to decide which repository is the main one (and make the other one a mirror fo the first one) | 12:51 |
|
| everything else (commiting to both git and svn repos) just asks for trouble | 12:51 |
|
iwein
| so changes flow in one direction only? | 12:52 |
|
| that makes sense | 12:52 |
|
| but it also makes me the sync monkey :( | 12:52 |
|
wereHamster
| as said earlier, I strongly recommend that you commit to the svn repo, and make the git repo a git-svn clone | 12:52 |
|
thiago_home
| iwein: you can hire a cronjob to do the syncing | 12:52 |
|
| its time is much less expensive than yours | 12:53 |
|
| :-) | 12:53 |
| → bigmack83 joined | 12:53 |
|
iwein
| heh, I'll see if I can find new and inventive ways to screw this up. wereHamster, thiago_home: hanks for the input! | 12:56 |
| → patcito joined | 12:56 |
| ← aresnick left | 12:56 |
| ← patcito left | 12:58 |
| ← mithro left | 12:59 |
| → davido joined | 13:00 |
| ← kumbayo left | 13:03 |
| → aziz joined | 13:03 |
| ← kpreid_ left | 13:05 |
| → remi joined | 13:05 |
| → loinclot_ joined | 13:05 |
| → patcito joined | 13:06 |
| ← tibra left | 13:06 |
| → timj joined | 13:07 |
| ← patcito left | 13:10 |
| ← jelmer__ left | 13:10 |
| → beni- joined | 13:13 |
|
tbuehlmann
| I'm writing a short thesis about version control systems and could need some pictures of branching, committing changes and things. do you have any recommendations for those? | 13:13 |
|
thiago_home
| pictures as in images? | 13:13 |
|
cbreak
| http://eagain.net/articles/git-for-computer-scientists/ | 13:14 |
|
| you can make them yourself with graphviz though | 13:15 |
|
tbuehlmann
| pictures as in images, yes :) | 13:15 |
| → GNUtoo joined | 13:15 |
|
cbreak
| (this is a git alias): graphviz = "!f() { echo 'digraph git {\n node [shape="record"];' ; git log --pretty='format: \"%h\"[label=\"{%ci|%s}\"]' \"$@\" | sed 's/|\\([^}]\\{0,32\\}\\)[^}]*/|\\1/g' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g'; echo '}'; }; f" | 13:15 |
|
| it's not perfect though, but it works okish :) | 13:15 |
|
GNUtoo
| hi, is there a way to push only certain commits without using the following tricks: | 13:15 |
|
tbuehlmann
| ah, thanks so far :) | 13:16 |
|
cbreak
| is the trick to make a temporary branch? :) | 13:16 |
|
thiago_home
| GNUtoo: when you push, you push a commit and all its parents to a given branch | 13:16 |
|
| GNUtoo: there's no way around it | 13:16 |
|
GNUtoo
| ok thanks | 13:16 |
|
| so I'll avoid creating the commit and patch back after | 13:16 |
|
| yes there are several tricks: | 13:17 |
|
cbreak
| better: | 13:17 |
|
| make a branch for yourself | 13:17 |
|
GNUtoo
| rebase -i | 13:17 |
|
cbreak
| and only cherry-pick or merge to the master (the one you want to push) | 13:17 |
|
| what you want to push | 13:17 |
|
GNUtoo
| ok I wanted to avoid that but at the end I'll do that | 13:17 |
|
cbreak
| you can branch off with git checkout -b mybranch | 13:17 |
|
| and then rebase -i the master | 13:17 |
|
GNUtoo
| thanks a lot | 13:18 |
|
cbreak
| well, it's sort of clear that you can not push anything without pushing the ancestors :) | 13:18 |
|
| (because the ancestors are part of the history, and history can never change in git) | 13:19 |
| ← loincloth left | 13:20 |
| → patcito joined | 13:20 |
| ← patcito left | 13:23 |
|
GNUtoo
| ok thanks a lot | 13:23 |
| ← mm_work left | 13:24 |
| ← cedricv left | 13:24 |
| ← rudi_s left | 13:25 |
| → Axius joined | 13:25 |
| ← malumalu left | 13:26 |
| ← Axius left | 13:26 |
| → malumalu joined | 13:26 |
| ← JackTheRabbt left | 13:26 |
| [Po]lentino → [Po]lentino|away | 13:27 |
| ← hummingkid left | 13:30 |
| → Axius joined | 13:31 |
| ← ixti left | 13:32 |
| ← Axius left | 13:32 |
| → Axius joined | 13:33 |
| → giallu joined | 13:33 |
| → bentob0x joined | 13:34 |
| → patcito joined | 13:34 |
| → loincloth joined | 13:35 |
| ← Axius left | 13:35 |
| → Piot joined | 13:36 |
| ← patcito left | 13:37 |
| → Pupeno joined | 13:37 |
| ← loinclot_ left | 13:39 |
| ← munichlinux left | 13:40 |
| → tibra joined | 13:41 |
| → munichlinux joined | 13:41 |
| → cedricv joined | 13:41 |
| → kukks joined | 13:41 |
| ← cedricv left | 13:42 |
| ← munichlinux left | 13:42 |
| → ayaz joined | 13:43 |
| → yhager joined | 13:44 |
| → cedricv joined | 13:44 |
| → khinester joined | 13:44 |
|
khinester
| hello | 13:44 |
| → ereslibre_laptop joined | 13:45 |
|
Piot
| hi | 13:46 |
| → ereslibre_desk joined | 13:46 |
| ← ereslibre left | 13:46 |
| ← yhager_ left | 13:48 |
| ← beni- left | 13:48 |
| → beni- joined | 13:48 |
| → imajes joined | 13:49 |
| ← orafu left | 13:53 |
| → orafu joined | 13:53 |
| → tvw joined | 13:54 |
|
khinester
| i get an error: Untracked working tree file when i try to checkout a devel branch | 13:55 |
|
| git status currently states 'nothing to commit ...' | 13:55 |
|
wereHamster
| delete or commit the file | 13:56 |
| ← Nalwin left | 13:56 |
|
khinester
| i did update the .gitignore not to include these files | 13:56 |
| ← cedricv left | 13:57 |
|
cbreak
| did you delete them? | 13:57 |
|
| if you didn't they are still tracked | 13:57 |
|
| git doesn't ever ignore tracked files | 13:57 |
| → patcito joined | 13:57 |
| → mm_work joined | 13:58 |
|
khinester
| ok, so i'll git rm tools/compile/* where tools/compile is the files i don't want to track | 13:58 |
|
wereHamster
| and then commit | 13:59 |
| ← patcito left | 13:59 |
| → gnutoo_ joined | 14:00 |
| → mbernstein joined | 14:00 |
|
SethX
| hello hello | 14:00 |
|
| i'm still stuck on my detatched head issue | 14:01 |
|
| i had the guy redownload the entire repo | 14:01 |
| ← GNUtoo left | 14:01 |
|
SethX
| and its back to a detatched head | 14:01 |
|
khinester
| i get this tools/smarty/compile/%%0F^0FB^0... ' did not match any files | 14:01 |
|
SethX
| with no loca branch for the detatched head | 14:01 |
|
teuf
| what does he do after cloning it? | 14:01 |
|
SethX
| nothing | 14:01 |
|
| just swear i guess | 14:01 |
| → JackTheRabbit joined | 14:02 |
|
cbreak
| does the remote have a detached head? | 14:02 |
| → Nalwin joined | 14:02 |
|
cbreak
| (is that even possible?) | 14:02 |
|
SethX
| i wouldnt know how... | 14:02 |
|
khinester
| so i am unable to checkout the branch | 14:02 |
|
Piot
| fsck? | 14:02 |
|
SethX
| lemme check that out | 14:02 |
| ← Nalwin left | 14:03 |
| → Nalwin joined | 14:04 |
|
Piot
| git fsck --full | 14:04 |
| → EricInBNE joined | 14:04 |
| ← Nalwin left | 14:04 |
| → corni joined | 14:04 |
|
SethX
| Piot: that to me§? | 14:04 |
| → Aldwuin joined | 14:05 |
|
Piot
| just wanted to know if you tried it :) | 14:05 |
| → sis joined | 14:07 |
| ← yhager left | 14:07 |
| → yhager joined | 14:07 |
|
SethX
| srv:/home/gitjail/repositories/aurora.git# git branch | 14:07 |
|
| * master | 14:07 |
|
| the remote is on master | 14:07 |
| ← Aldwuin left | 14:07 |
| Wuerstlstand → Wurschtlprater | 14:07 |
| → munichlinux joined | 14:08 |
|
cbreak
| and if you clone, you aren't on master? | 14:08 |
| → Aldwuin joined | 14:08 |
|
SethX
| no | 14:09 |
|
| i just cloned | 14:09 |
|
| and git branch outputs "no branch" | 14:09 |
| → keystr0k joined | 14:09 |
| → jelmer joined | 14:10 |
| → segher_ joined | 14:11 |
|
parasti
| SethX: it must have printed a message when it failed to create the branch | 14:11 |
|
| SethX: it = git clone | 14:12 |
| ← agile left | 14:12 |
|
SethX
| if i do, its long gone, since it takes some 4 hours to clone it over a hsdpa connection | 14:12 |
| → DeFirence joined | 14:12 |
|
SethX
| anyhow ill look into it some more | 14:12 |
|
DeFirence
| hi everyone, git.exe format-patch -o "C:\Documents and Settings\Windows XP\My Documents\Visual Studio 2008\Projects\SmartIrc4Net_02_Sept_09\smartirc4net" 8b3d4fa0132baf86286909e6f890906a31985447 | 14:12 |
|
| fatal: Not a git repository (or any of the parent directories): .git | 14:12 |
|
SethX
| perhaps ill find some useful info | 14:12 |
| → munichpython joined | 14:13 |
|
SethX
| thanks in the emanwhile | 14:13 |
|
DeFirence
| im using TortoiseGit to run the command, but i dont understand why i cant format a patch... | 14:13 |
| ← hyperair left | 14:14 |
| ← beni- left | 14:14 |
| → hyperair joined | 14:14 |
| ← segher left | 14:14 |
| segher_ → segher | 14:14 |
| → altrux joined | 14:17 |
|
cbreak
| DeFirence: you have to be in a repository | 14:18 |
|
| SethX: if you can find out which hash the remote branch head is on, you could compare to the local | 14:18 |
|
DeFirence
| so TortoiseGit isnt passing the corrent working dir? | 14:18 |
|
cbreak
| no idea what that tortoise thing is | 14:18 |
|
ngw
| hi * | 14:18 |
|
cbreak
| but did you try to cd to the right place? | 14:18 |
|
ngw
| how do I reset a single file to my HEAD ? | 14:19 |
|
cbreak
| you can use git checkout HEAD -- filename I think | 14:19 |
| ← thiago_home left | 14:19 |
|
ngw
| oh will try | 14:20 |
|
| cbreak: thanks | 14:20 |
| → loinclot_ joined | 14:22 |
| → Bass10 joined | 14:23 |
| ← loincloth left | 14:23 |
| → keex joined | 14:23 |
| ← Piot left | 14:24 |
| ← bigmack83 left | 14:24 |
| ← remi left | 14:24 |
| ← HanzZ left | 14:25 |
| → OtherJakeSays joined | 14:25 |
| → bigmack83 joined | 14:25 |
| ← loinclot_ left | 14:26 |
| → loincloth joined | 14:27 |
| ← keex left | 14:27 |
| ← JakeSays left | 14:28 |
| → raboof joined | 14:29 |
| ← munichlinux left | 14:29 |
| → maioO joined | 14:29 |
| ← partisan left | 14:29 |
| → nighthwk1 joined | 14:32 |
| ← Geralt left | 14:32 |
|
maioO
| hi. I merged few branches then I pushed it into remote repo and now I want to 'unmerge' one of that branches. how should I do that? | 14:32 |
| ← d2dchat left | 14:33 |
| → tweened joined | 14:35 |
| → Fullmoon joined | 14:39 |
| ← khinester left | 14:41 |
|
charon
| maioO: unmerging is hard without rewriting history. what one usually does is: 'git revert -m 1 $the_merge' to "unmerge", and then rebase the branch on top of the revert to restore sanity | 14:41 |
|
Griffon26
| interesting, so you rebase on the commit before the merge, right? | 14:43 |
| → ArjenL joined | 14:43 |
| → cannonball joined | 14:43 |
| → Turias joined | 14:46 |
|
cbreak
| http://whygitisbetterthanx.com/ interesting | 14:46 |
|
| maioO: rewriting history of remotes is bad | 14:47 |
|
| if you really want to do it, make sure no one pulls from it | 14:47 |
| → spearce joined | 14:47 |
| → LiamH joined | 14:49 |
| ← munichpython left | 14:49 |
| → aleray joined | 14:50 |
| → sgh joined | 14:51 |
| → Boriskr joined | 14:51 |
| → laj joined | 14:52 |
| ← EricInBNE left | 14:53 |
| → EricInBNE joined | 14:53 |
| → j416 joined | 14:54 |
| ← JackTheRabbit left | 14:54 |
|
murr4y
| by chacon of course :) | 14:55 |
| ← loincloth left | 14:56 |
| → bry joined | 14:57 |
| → karbassi joined | 14:57 |
| → JackTheRabbit joined | 14:59 |
| → coolcat joined | 14:59 |
| ← ereslibre_laptop left | 15:01 |
| → ereslibre_uni joined | 15:02 |
| ← ereslibre_desk left | 15:04 |
| ← keystr0k left | 15:05 |
| → godsflaw_ joined | 15:05 |
| → agile joined | 15:06 |
| → keystr0k joined | 15:08 |
| ← maxter left | 15:11 |
| ← khmarbaise left | 15:11 |
| ← [Po]lentino|away left | 15:17 |
| → [Po]lentino joined | 15:17 |
| [Po]lentino → [Po]lentino|away | 15:17 |
| ← sgh left | 15:19 |
| ← godsflaw left | 15:19 |
| ← ereslibre_uni left | 15:19 |
| ← bigmack83 left | 15:21 |
|
phako
| is there someting like git add -pu which allows me not to add but to drop (parts of) patches? | 15:23 |
| ngw → ngw|away | 15:24 |
| → pantsman joined | 15:24 |
| ngw|away → ngw | 15:25 |
|
sitaram
| didnt the newer gits have a reverse option for this? (or am I confusing with something else...?) | 15:25 |
|
| anyway, not in one of the released ones I think | 15:26 |
| ← jelmer left | 15:26 |
| → hummingkid joined | 15:26 |
|
cbreak
| can't you git add -i? | 15:26 |
| → dejans joined | 15:26 |
|
phako
| that can only revert stuff already added | 15:27 |
| → nadavoid joined | 15:27 |
|
phako
| I want to go through all the changes and revert some of them | 15:27 |
|
| to HEAD | 15:28 |
| ngw → ngw|away | 15:28 |
| ngw|away → ngw | 15:28 |
|
dejans
| hey peeps. how can I revamp a file, with all its histroy? it was deleted months ago and I would like it back. | 15:28 |
| → jelmer joined | 15:28 |
| → ereslibre_uni joined | 15:28 |
| → loincloth joined | 15:29 |
| ← Fullmoon left | 15:29 |
| → Geralt joined | 15:30 |
| ← WinterWeaver left | 15:32 |
| ← tweened left | 15:34 |
| ← dejans left | 15:35 |
|
cbreak
| just reading a comparison between mercurial and git | 15:36 |
|
| apparently git needs "frequent manual “repacks” of its metadata. Without these, performance degrades, while space usage grows rapidly. " | 15:37 |
|
| strange that I didn't notice that | 15:37 |
| → drogue joined | 15:37 |
| ← raboof left | 15:37 |
|
DrNick
| cbreak: that's because they're automatic | 15:38 |
|
pantsman
| using mercurial requires frequent reading of hg-vs-git comparisons to convince yourself you've made the right choice | 15:38 |
|
| with made-up statistics like "git is faster but hg's speed is enough for 99.9% of users" | 15:39 |
|
bremner
| presumably hanging out in #hg also helps | 15:40 |
|
cbreak
| the comparison I just read said "git is faster... but only on linux, on windows hg is faster!" | 15:40 |
|
bremner
| that could be true? | 15:40 |
|
cbreak
| no idea | 15:40 |
|
bremner
| yeah, neither of us cares, which is arguable an issue with git :) | 15:40 |
| → munichlinux joined | 15:41 |
|
bremner
| s/arguable/arguably/ | 15:41 |
| ← ereslibre_uni left | 15:42 |
| → ereslibre_uni joined | 15:42 |
| ngw → ngw|away | 15:42 |
| ngw|away → ngw | 15:42 |
| ← aleray left | 15:43 |
| ← [Po]lentino|away left | 15:44 |
| → [Po]lentino joined | 15:44 |
| [Po]lentino → [Po]lentino|away | 15:44 |
| → rettub joined | 15:45 |
| → schierbeck joined | 15:47 |
| → WinterWeaver joined | 15:48 |
| → agib joined | 15:48 |
| ← rettub left | 15:48 |
| ← JackTheRabbit left | 15:49 |
| → rettub joined | 15:49 |
|
cbreak
| "Some Git fans claim Git is now as easy to learn as Bazaar or Mercurial. With respect, we strongly disagree. For example, read and compare the help for the log command across the various tools: 4 pages for bzr log, one page for svn log, 26 pages for git log, and one page for hg log." | 15:49 |
|
| interesting :) | 15:49 |
|
| POWER! | 15:50 |
|
hyperair
| what a fail comparison | 15:50 |
|
Griffon26
| where does that come from? | 15:50 |
| ← rettub left | 15:50 |
| → _Vi joined | 15:51 |
|
teuf
| they forgot that git is 3 letters to type while hg is just 2 letters! | 15:51 |
|
| so much faster and easier | 15:51 |
| → rettub joined | 15:51 |
|
Griffon26
| I use text-to-speech you insensitive clod! | 15:51 |
| ← rettub left | 15:52 |
|
hyperair
| git log is as easy to use as bzr log, but can do that much more, hence the extra pages | 15:52 |
|
Griffon26
| damnit, ruined it | 15:52 |
|
| cbreak: where did you read that? | 15:52 |
| → rettub joined | 15:52 |
|
cbreak
| http://doc.bazaar.canonical.com/migration/en/why-switch-to-bazaar.html | 15:52 |
| → tweened joined | 15:53 |
|
cbreak
| the first few lines of the comparison are approximately: I like bazaar more, so I'll write about it, but you better try for yourself | 15:53 |
| ← rettub left | 15:53 |
| ← tibra left | 15:54 |
| → rettub joined | 15:54 |
| → bcardarella joined | 15:54 |
| → aspotashev_ joined | 15:54 |
|
cbreak
| I guess it's good to have competition | 15:55 |
| ← rettub left | 15:55 |
| → tedoc2000 joined | 15:55 |
| → rettub joined | 15:56 |
| ← jelmer left | 15:56 |
| ← rettub left | 15:57 |
| ← nadavoid left | 15:57 |
| → rettub joined | 15:57 |
| ← ngw left | 15:58 |
| → mason-l joined | 15:59 |
| ← rettub left | 16:00 |
| → patcito joined | 16:00 |
| → sumangurung joined | 16:00 |
| ← DeFirence left | 16:00 |
| ← bentob0x left | 16:01 |
| ← patcito left | 16:02 |
| → Scorchin joined | 16:03 |
| → rettub_ joined | 16:04 |
|
ArjenL
| I always like the phrase "With respect, ...", which most of the time isn't | 16:04 |
|
Scorchin
| What's the general "best practice" when using multiple external libraries in a git project? E.g. I have a /libs folder where I have cloned libraries, should I leave these as-is so I can regularly do pulls on them to keep things up-to-date or just do clean exports of the codebase? | 16:05 |
| ← marc_kdab left | 16:05 |
| → bentob0x joined | 16:05 |
| ← rettub_ left | 16:05 |
| → rettub_ joined | 16:06 |
| ← rettub_ left | 16:07 |
| ← aspotashev left | 16:08 |
| → rettub_ joined | 16:08 |
| ← Geralt left | 16:09 |
| → jelmer joined | 16:09 |
| → JackTheRabbit joined | 16:12 |
| → dys``` joined | 16:12 |
| → patcito joined | 16:12 |
| → zuez joined | 16:12 |
| → Xaositect joined | 16:13 |
| ← _Vi left | 16:14 |
| Wurschtlprater → jemand | 16:15 |
| jemand → Jodlbjorn | 16:16 |
| ← patcito left | 16:17 |
| → nadavoid joined | 16:21 |
| ← mason-l left | 16:21 |
| ← rchavik left | 16:22 |
| ← dys`` left | 16:24 |
| → mason-l joined | 16:25 |
| → patcito joined | 16:26 |
|
charon
| Scorchin: submodules or subtree merge. discarding history is rarely a good idea | 16:26 |
|
Scorchin
| thanks charon | 16:26 |
|
| will using submodules prevent me from making local changes then? | 16:27 |
|
| or just confine those changes to that specific submodule? | 16:27 |
|
charon
| it will confine them | 16:27 |
|
| i.e. you cannot make commits that touch several repos, and a submodule is a bit like a repo of its own | 16:27 |
|
Scorchin
| brilliants, that's exactly what I want | 16:28 |
|
| *brilliant | 16:28 |
| ← giallu left | 16:29 |
| → khmarbaise joined | 16:30 |
| ← tedoc2000 left | 16:31 |
| ← patcito left | 16:32 |
| → tedoc2000 joined | 16:34 |
|
GyrosGeier
| hm | 16:34 |
|
| somehow filter-branch does something weird | 16:34 |
|
| it deletes refs/heads/master and then complains about HEAD pointing nowhere | 16:34 |
| ← jelmer left | 16:37 |
| → onigiri__ joined | 16:38 |
| ← Lisimba left | 16:41 |
| → remi joined | 16:41 |
| ← onigiri_ left | 16:42 |
| → partisan joined | 16:42 |
| ← galderz left | 16:43 |
| ← j416 left | 16:43 |
| ← TonyBurn_ left | 16:48 |
| → TonyBurn joined | 16:48 |
| ← [Po]lentino|away left | 16:48 |
| ← partisan left | 16:50 |
| → patcito joined | 16:50 |
| ← stamina_ left | 16:52 |
| → partisan joined | 16:52 |
| ← patcito left | 16:52 |
| ← remi left | 16:53 |
| → hebz0rl joined | 16:53 |
| → trs21219 joined | 16:55 |
| → r11t joined | 16:58 |
| → catalis joined | 16:59 |
| → irc2samus joined | 17:00 |
| ← irc2samus left | 17:01 |
| ← lemonchicken left | 17:01 |
| ← DavidKlein left | 17:02 |
| → patcito joined | 17:06 |
| → warthog9 joined | 17:07 |
| ← patcito left | 17:08 |
| ← JackTheRabbit left | 17:10 |
|
trs21219
| can anyone help with this? http://stackoverflow.com/questions/1970459/best-workflow-with-git-github | 17:10 |
| → lemonchicken joined | 17:12 |
| → JackTheRabbit joined | 17:12 |
|
charon
| GyrosGeier: what's your full gfb command line? | 17:13 |
| → hobodave joined | 17:13 |
| → irc2samus joined | 17:13 |
| dys``` → dys | 17:14 |
| → chuck joined | 17:15 |
| ← trs21219 left | 17:15 |
| → bambule joined | 17:15 |
|
GyrosGeier
| charon, I think I found the problem | 17:15 |
|
chuck
| Is it possible to reattribute commits that have already been made? | 17:15 |
|
| I forgot to set my email before making them | 17:15 |
|
GyrosGeier
| a --commit-filter should do more than just set variables, shouldn't it? | 17:16 |
| ← EricInBNE left | 17:17 |
| → sgh joined | 17:17 |
| ← bentob0x left | 17:17 |
|
GyrosGeier
| hm | 17:17 |
|
| an empty --commit-filter has the same effect | 17:18 |
|
| removes the entire branch | 17:18 |
| ← bambule left | 17:18 |
|
lack
| chuck: If you haven't pushed them yet, yes. | 17:19 |
|
chuck
| lack, I've already pushed them to github | 17:19 |
| → _Vi joined | 17:19 |
| → tweened1 joined | 17:19 |
|
lack
| chuck: In that case, it *can* be done, but is probably not a good idea. | 17:20 |
| ← tweened left | 17:20 |
|
chuck
| why not? | 17:20 |
|
lack
| chuck: Have you read the 'man git-rebase' section about RECOVERING FROM UPSTREAM REBASE? | 17:21 |
|
Gitbot
| chuck: the git-rebase manpage can be found at http://git.or.cz/man/git-rebase | 17:21 |
|
lack
| This would constitute rewriting history, and rewriting history can be a bad thing if other people have pulled your code. | 17:21 |
|
| If you don't care or are fairly sure no one has pulled your code yet, you can do it. | 17:21 |
|
| But just be aware of the consequences. | 17:21 |
|
chuck
| yeah, other people have pulled the code | 17:22 |
|
| does that mean it's pretty much impossible? ;-) | 17:22 |
|
| (or a very bad idea, whatever) | 17:22 |
| → Lisimba joined | 17:23 |
| ← tweened1 left | 17:24 |
|
lack
| Impossible: no. Bad idea: yes. I'm serious about reading the RECOVERING FROM UPSTREAM REBASE section of the rebase manpage. It explains what the consequences are to anyone who has based their own work on what you are thinking of rewriting. | 17:25 |
| ← tbuehlmann left | 17:30 |
| → aresnick joined | 17:30 |
| → d0ugal joined | 17:31 |
| → MetaCosm joined | 17:33 |
|
jast
| chuck: basically it means that those people get the old version of the history AND the new version of the history, and pull will attempt to combine the two. it will probably succeed since the changes are exactly the same, but everyone who does the pull will end up having that part of the history twice. | 17:35 |
| ← mbroeker left | 17:36 |
|
jast
| (once with new attributions, once with the old ones) | 17:36 |
|
cbreak
| -> ugly. | 17:37 |
|
charon
| GyrosGeier: well, as the manpage says, it must do something along the lines of git-commit-tree (but can of course do more) | 17:38 |
|
| if you just want to set variables, use --env-filter | 17:38 |
|
jepler_
| Does this ring a bell for anyone? In my gitweb there are links like <a class="list" href="/git?p=aethertool.git;a=summary"> but when I click them in my web browser the ; becomes %3b (as shown in the address bar) and the request doesn't work. | 17:38 |
| ← cytrinox left | 17:39 |
| → cytrinox joined | 17:39 |
|
lack
| jast: I wonder if we could make 'git pull' a little smarter in that respect... Check the remote branch before the fetch, check the remote branch after the fetch, and DO NOT MERGE if that update is a non-fast-forward merge? | 17:40 |
|
charon
| lack: but people would just go "why doesn't it work! i'll try again!" and suddenly it would merge | 17:40 |
| jepler_ → jepler | 17:40 |
| → fcuk112 joined | 17:41 |
| → bdiego joined | 17:41 |
|
jast
| lack: I could hack up a patch to add a command line switch for that | 17:42 |
|
jepler
| ugh, somehow mod_rewrite is tangled up in this as well | 17:42 |
|
jast
| jepler: yeah, it's apache madness, I'm afraid. I haven't quite figured out how to fix it yet. try adding [NE] to the rewrite rules... | 17:43 |
|
| but that probably won't help | 17:43 |
|
jepler
| jast: thanks, that's exactly it | 17:43 |
|
jast
| oh, great | 17:44 |
| → tbuehlmann joined | 17:44 |
|
lack
| charon: True dat. But at least *one* level of check is better than zero... | 17:44 |
|
jast
| ah, yeah, the really big problem is different | 17:44 |
|
lack
| Some people may see it... | 17:44 |
|
jast
| lack: well, git pull is sort of meant for getting real merges. :) | 17:44 |
|
| (mod_rewrite really gets hairy once you rewrite a URL with doubly-escaped things in it, or somesuch. I can't quite remember... thankfully, I might add) | 17:45 |
| → spaceonline joined | 17:47 |
|
jast
| lack: in fact, --ff-only already exists, it's just not documented | 17:48 |
|
lack
| Oh? Neat! | 17:48 |
|
jast
| I'll go and fix that :) | 17:48 |
|
lack
| jast: What version? | 17:49 |
|
jast
| lack: 1.6.6 | 17:50 |
|
lack
| Ah, I haven't upgraded that far yet. Thanks ;) | 17:50 |
| → patcito joined | 17:50 |
|
jast
| oh, and it's documented, too | 17:50 |
|
| I just haven't actually installed 1.6.6 yet :) | 17:50 |
|
| I build git from source from the master branch, usually | 17:51 |
|
| doing that right now | 17:51 |
|
| there, all new. | 17:52 |
| ← munichlinux left | 17:55 |
|
lack
| I run the latest gentoo ebuild, which has 1.6.6 but I haven't updated in a couple weeks. Probably time. | 17:56 |
|
| Now if only I can get all my co- | 17:57 |
|
| workers to update their Ubuntu VMs... | 17:57 |
| ← MetaCosm left | 17:57 |
| → JoeConyers joined | 17:57 |
| → MetaCosm joined | 17:59 |
|
lack
| jast: Hmmm... Just reading git-pull.sh in my git.git clone: Doesn't look like it's the same thing, maybe. | 17:59 |
|
| Plus I can't find the documentation for it... | 17:59 |
| → fcuk112_ joined | 18:00 |
|
lack
| Ah, there's the docs. | 18:00 |
|
| Looks like it's close to what I wanted to see... | 18:00 |
| → munichlinux joined | 18:01 |
| ← hebz0rl left | 18:01 |
| OtherJakeSays → JakeSays | 18:01 |
| ← ProperNoun left | 18:03 |
| → d2dchat joined | 18:03 |
| ← JackTheRabbit left | 18:04 |
| → ProperNoun joined | 18:05 |
| → WALoeIII joined | 18:05 |
| ← jfxberns left | 18:06 |
| → jceb joined | 18:06 |
| → gilesgoatboy joined | 18:07 |
| ← d2dchat left | 18:08 |
| ← ia left | 18:09 |
| → d2dchat joined | 18:09 |
| → ngw joined | 18:09 |
| ← ngw left | 18:09 |
| → ixti joined | 18:10 |
| ← chuck left | 18:13 |
| ← Pupeno left | 18:13 |
| ← ereslibre_uni left | 18:14 |
| → ereslibre_uni joined | 18:16 |
| ← Tommy[D] left | 18:16 |
| ← MetaCosm left | 18:16 |
| → ereslibre joined | 18:17 |
| → MetaCosm joined | 18:17 |
| ← gilesgoatboy left | 18:18 |
| → madewokherd joined | 18:19 |
| ← sgh left | 18:20 |
| → anno^da joined | 18:23 |
| → ajonat joined | 18:23 |
| ← vbgunz left | 18:24 |
| → kifkif joined | 18:24 |
| → ia joined | 18:25 |
| → aconbere joined | 18:25 |
|
kifkif
| hi , i come from mercurial, is there an equivalent to mercurial rm --after ? | 18:25 |
| → nickoe_ joined | 18:25 |
|
aconbere
| is there a good way to get a diff from my current head, to the point at wich my branch was created? | 18:25 |
|
| I guess this is the same as asking | 18:25 |
|
nickoe_
| How do you clone a specefic revision/branch/"wahtever you call it in git hope you understand"? | 18:25 |
|
aconbere
| is there a good way to get the id of when the branch was created | 18:25 |
|
nickoe_
| say this: http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd;a=tag;h=f74fdc5e4afc94b65cba4b4c357f0e67cc9d185a | 18:25 |
|
wereHamster
| nickoe_: if you clone the whole repository I'm sure you also get that revision | 18:29 |
|
aconbere
| nickoe_: you can't clone anything but the full repository, but you can just combine that and checkout | 18:29 |
| → ambuli joined | 18:29 |
|
aconbere
| git clone <uri>; git checkout <branch> | 18:30 |
|
ambuli
| hi all, i am trying git clone url. it just hanges in Initialized empty Git repository in .... | 18:30 |
|
| any clue where could be the problem ?? | 18:30 |
| → icwiener joined | 18:31 |
| ← jceb left | 18:31 |
|
wereHamster
| ambuli: how long did you wait, which url did you use to clone (http/git/ssh?) | 18:31 |
| ← MetaCosm left | 18:32 |
|
ambuli
| i use like this git clone git@hostname is that the correct one. ?? | 18:32 |
|
wereHamster
| git@hostname:path/to/repo.git .. right? | 18:33 |
|
nickoe_
| aconbere, how do I locate the branch name? | 18:33 |
| ← doener left | 18:33 |
|
wereHamster
| nickoe_: git branch | 18:33 |
| → MetaCosm joined | 18:33 |
|
wereHamster
| nickoe_: er, you can checkout directly the tag (git checkout f74fdc) | 18:33 |
|
ambuli
| wereHamster, yes.. it is something like git clone git@hostname:ttkp/module1 | 18:34 |
| → jpieper joined | 18:34 |
|
ambuli
| wereHamster, it is not even displaying what is going on ???? | 18:35 |
| ← TonyBurn left | 18:36 |
| rettub_ → rettub | 18:36 |
| → doener joined | 18:37 |
|
wereHamster
| ambuli: you could try setting GIT_TRACE | 18:38 |
| ← irc2samus left | 18:38 |
| ← catalis left | 18:40 |
| ← project2501a left | 18:46 |
| → vbgunz joined | 18:48 |
| ← aspotashev_ left | 18:48 |
| → ebneter joined | 18:49 |
|
nickoe_
| wereHamster, thank you | 18:49 |
| ← ayaz left | 18:50 |
| → Anjen1 joined | 18:50 |
| → munichpython joined | 18:51 |
| ← munichlinux left | 18:51 |
| munichpython → munichlinux | 18:51 |
| ← loincloth left | 18:51 |
| → wolf2k_ubuntu joined | 18:53 |
| → jessep joined | 18:54 |
| ← gebi left | 18:54 |
| → datechman joined | 18:54 |
|
wolf2k_ubuntu
| Afternoon. In a stroke of...stupidity I guess, I somehow caused a dangling commit. The graph here shows. http://github.com/wolfman2000/pumpproedits/network I am unable to git push the svg branch due to this. I'm fine with deleting commit 7d4009d...if I can figure out how. | 18:55 |
|
wereHamster
| that's no dangling commit, it's still referenced by the 'svg' branch | 18:56 |
|
Anjen1
| wolf2k_ubuntu, what's the message commit is splitting back? | 18:56 |
|
wereHamster
| if you don't care about that commit, why don't you delete the branch? | 18:56 |
|
Anjen1
| *spitting | 18:56 |
|
wolf2k_ubuntu
| wereHamster: ...right. I already did the merge. nevermind | 18:57 |
|
ambuli
| wereHamster, do i have to give it as parametetr ?? | 18:57 |
|
wereHamster
| ambuli: GIT_TRACE=1 git clone ... | 18:57 |
|
ambuli
| ok | 18:57 |
| → schmukkk joined | 18:57 |
| → Sigma joined | 18:58 |
| ← babilen left | 18:58 |
| → JoseLobato joined | 18:58 |
| → babilen joined | 18:58 |
| → dreiss_ joined | 18:59 |
| ← JoseLobato left | 18:59 |
| → solofight joined | 18:59 |
| ← solofight left | 19:00 |
| → solofight joined | 19:01 |
| → TonyBurn joined | 19:03 |
| ← Alfonzo left | 19:05 |
| ← solofight left | 19:07 |
| ← ajonat left | 19:07 |
| ← Anjen1 left | 19:09 |
| → defectiv joined | 19:10 |
|
Ilari
| spearce: Smart HTTP supports pushing, right? And based on my reading of the backend and hook code, hook messages would not work. | 19:11 |
| → project2501a joined | 19:12 |
| ← meanburrito920_ left | 19:14 |
| ← pantsman left | 19:15 |
| → Axius joined | 19:17 |
| ← Boriskr left | 19:17 |
| ← LiamH left | 19:17 |
| → jelmer joined | 19:17 |
| → m104 joined | 19:18 |
| → LiamH joined | 19:21 |
| ← LiamH left | 19:21 |
| → LiamH joined | 19:21 |
| ← datechman left | 19:24 |
| ← aconbere left | 19:24 |
|
spearce
| Ilari: all true | 19:25 |
| ← defectiv left | 19:27 |
| ← nickoe_ left | 19:27 |
| → zackattack joined | 19:29 |
|
Ilari
| spearce: I guess getting it to work would require protocol extension that sent hook messages in sideband... | 19:29 |
| ← vbgunz left | 19:29 |
| → SpookyET joined | 19:31 |
|
Ilari
| spearce: If it was also supported in "persistent connection" (not just "RPC") mode, it would fix hook messages for git:// and related protocols (right now ssh:// and files:// are the only ones where hook messages work). | 19:32 |
| → icwiener_ joined | 19:33 |
|
Ilari
| *file:// | 19:33 |
|
spearce
| well, really you should just implement it in the git protocol stack just like we have sideband on upload-pack | 19:33 |
|
| i actually had a patch series for this many many months ago | 19:33 |
|
| there was a conflict with something else peff was doing at the same time in receive-pack (enhanced status report i think) so i held back waiting for his work to stablize, and then i just never finished. | 19:34 |
|
| also, at the time, pushing over ssh:// and file:// were the only sane ways to push as git:// had no authentication. | 19:34 |
|
| so hooks firing on remote side echoing back by stderr wasn't important at the time | 19:34 |
| ← icwiener left | 19:34 |
| → vinse joined | 19:35 |
| → ehabkost joined | 19:36 |
|
Ilari
| The days where ssh:// and file:// are the only protocols that can run hooks and can sanely push are gone. | 19:36 |
| ← r11t left | 19:37 |
| → r11t joined | 19:37 |
| → NfNitLoop joined | 19:39 |
|
NfNitLoop
| I'm using git-svn. I've done `git svn branch my-branch` and created my own branch, but it doesn't appear to have committed any of my git revisions into it. | 19:39 |
|
| I assume I need to `git svn dcommit` to do so. Will dcommit know to use my-branch? | 19:40 |
|
| or do I need to specify it every time? | 19:40 |
|
| If it does know, how can I see what branch each of my local branches will commit to? | 19:40 |
|
spearce
| Ilari: yes, that's true, so we should implement sideband in the push-pack/receive-pack protocol | 19:40 |
| ← jessep left | 19:41 |
|
parasti
| NfNitLoop: you need to rebase your local commits on top of the new svn branch | 19:41 |
|
| NfNitLoop: "git svn dcommit -n" to see where they will go | 19:42 |
|
NfNitLoop
| they should be based on it already. It created the branch from the last svn version in my local branch. | 19:42 |
|
| thanks. | 19:42 |
|
Ilari
| spearce: IIRC, receive-pack uplink is sidebanded, but the downlink isn't. | 19:43 |
|
parasti
| NfNitLoop: "git svn branch" only creates the branch and fetches it (usually as remotes/$branchname), AFAIK | 19:43 |
|
NfNitLoop
| ah, yeah, it still wants to commit to trunk. I guess that means I always have to specify where I'm dcommitting to? | 19:43 |
|
Ilari
| NfNitLoop: Git-svn infers that from history. | 19:43 |
|
parasti
| NfNitLoop: no, that's not even possible as far as I know | 19:44 |
| → karbassi_ joined | 19:44 |
|
spearce
| Ilari: nope, uplink isn't sideband | 19:44 |
| → JackW joined | 19:44 |
| ← Axius left | 19:45 |
|
Ilari
| spearce: Ah, it only uses sideband functions in RPC mode. | 19:45 |
| ← karbassi_ left | 19:45 |
|
NfNitLoop
| Oh, hmm. So I can't 1) checkout from trunk. 2) Create a branch in git. 3) Push that branch to svn. Instead I have to: 3) fetch that branch 4) rebase my local branch onto it 5) and then commit that branch? | 19:45 |
| ← godsflaw_ left | 19:46 |
| → karbassi_ joined | 19:46 |
|
Ilari
| NfNitLoop: See if that git svn branch created any new remote tracking branches (git branch -r)? | 19:46 |
|
spearce
| Ilari: its not even sideband in RPC mode, sideband uses a 5 byte pkt-line header, RPC mode uses only 4 bytes | 19:46 |
| ← karbassi_ left | 19:47 |
|
NfNitLoop
| Ilari: it did. I'm a bit of a git n00b though and don't quite know how to work with remote tracking branches. | 19:47 |
|
| I'll read up on that. | 19:47 |
| → karbassi_ joined | 19:47 |
|
Ilari
| NfNitLoop: Rebase your changes to be on top of that and then git svn might figure out proper branch to commit to. | 19:47 |
| ← karbassi left | 19:48 |
| ← MetaCosm left | 19:49 |
|
NfNitLoop
| Ilari: aha. Thanks! | 19:49 |
|
Ilari
| spearce: There are few send_sideband() calls in send-pack. And those appear to use sideband number -1 (which gets sent as sideband #255). | 19:49 |
|
spearce
| sideband < 0 means don't include the 5th byte that has the sideband number on it | 19:50 |
|
Ilari
| Ah yeah. | 19:50 |
| ← WinterWeaver left | 19:51 |
|
NfNitLoop
| Ilari: Worked like a charm. Thanks! (@parasti too.) :) | 19:51 |
| ← ehabkost_ left | 19:53 |
| ← zackattack left | 19:53 |
| → amerine joined | 19:56 |
|
Ilari
| Also, that project to create much faster asciidoc -> manpage converter was abandoned? | 19:58 |
| ← SpookyET left | 20:01 |
| ← jtbandes left | 20:01 |
| → loincloth joined | 20:02 |
| → loinclot_ joined | 20:02 |
| → jessep joined | 20:03 |
| ← yaotti_aw left | 20:03 |
| → JackTheRabbit joined | 20:03 |
| → TeMochkiN joined | 20:05 |
| loinclot_ → loincloth_ | 20:06 |
| → warlock_mza joined | 20:07 |
| ← ehabkost left | 20:09 |
| ← TeMochkiN left | 20:14 |
| ← LiamH left | 20:15 |
| ← unreal left | 20:16 |
| → unreal joined | 20:16 |
| ← loincloth left | 20:19 |
| ← ereslibre_uni left | 20:20 |
| loincloth_ → loincloth | 20:20 |
| → LiamH joined | 20:25 |
| → Axius joined | 20:26 |
| → drizzd joined | 20:26 |
| → greboides joined | 20:28 |
| → jceb joined | 20:28 |
| ← erikvold left | 20:28 |
|
greboides
| hello, i have made some modifications on this branch but i want to add these changes on another branch to commit it, how can i do such thing cleanly? | 20:30 |
|
wereHamster
| greboides: either merge the branch into the other branch or cherry-pick the commits | 20:32 |
| → d0k_ joined | 20:32 |
|
greboides
| wereHamster: these changes were not committed yet | 20:32 |
|
| nor added | 20:32 |
|
wereHamster
| then simply checkout the othe rbranch and commit there | 20:32 |
|
greboides
| wereHamster: but it complains that i cant switch branchs | 20:33 |
|
wereHamster
| in that case, you can either use stash/checkout/stash pop or checkout -m | 20:33 |
|
greboides
| wereHamster: if i stash will the modified file still be modified on the other branch? | 20:34 |
|
wereHamster
| no | 20:34 |
|
| stash makes your working tree clean | 20:34 |
|
greboides
| is there any way to do it like this? | 20:34 |
|
wereHamster
| that's the whole point of git-stash | 20:35 |
|
| like what? | 20:35 |
|
greboides
| i want to change branches and keep the changes | 20:35 |
|
wereHamster
| I'll repeat myself, but I'll try anyway: use stash/checkout/stash pop or checkout -m | 20:35 |
| ← icwiener_ left | 20:36 |
| → johnw joined | 20:36 |
| ← jessep left | 20:36 |
|
greboides
| wereHamster: can i stash pop on the other branch? | 20:37 |
|
johnw
| sure | 20:37 |
|
wereHamster
| if you follow what I suggested, you will be on the other branch when you stash pop | 20:37 |
|
| but maybe I wasn't clear enough about that... | 20:37 |
|
greboides
| ok this is what i need i think | 20:38 |
|
wereHamster
| $ git stash && git checkout the-other-branch && git stash pop; | 20:38 |
|
greboides
| wereHamster: thank you, gonna solve some conflicts now | 20:39 |
| → datechman joined | 20:39 |
| → sgh joined | 20:39 |
| → jessep joined | 20:40 |
| gnutoo_ → GNUtoo | 20:40 |
| → hakunin joined | 20:42 |
| → catalis joined | 20:42 |
| → xlistener joined | 20:43 |
|
osfameron
| gitosis is asking me for a password when I try to 'git clone' | 20:44 |
| ← Axius left | 20:44 |
|
osfameron
| I've updated gitosis.conf and keydir/user@hostname, committed and pushed... | 20:44 |
|
| what am I missing? ;-) | 20:44 |
|
| (it's for a previously working gitosis instance, so it's not the FAQ about AllowUsers, for example. At least don't think) | 20:45 |
| → sis_ joined | 20:46 |
|
greboides
| osfameron: do you have a ssh-agent running,knowing about your key and active for your working shell(i guess you need it)? | 20:47 |
|
osfameron
| greboides: nope, never figured out ssh-agent | 20:47 |
|
| but that's not a pre-requisite for gitosis is it? | 20:47 |
|
| given that I've got it workign from various ohter places... | 20:47 |
|
greboides
| osfameron: its a pre-requisite for ssh which gitosis uses for auth | 20:48 |
|
osfameron
| greboides: um? | 20:48 |
|
| I've never set up ssh-agent anywhere | 20:48 |
| → smotchkkiss joined | 20:48 |
|
osfameron
| and I use ssh | 20:48 |
|
| unless you mean that it's running transparently in the background | 20:48 |
| → Cesario joined | 20:49 |
|
greboides
| osfameron: i use keychain to manage it for me transparently in the background | 20:49 |
|
osfameron
| right. but I don't | 20:49 |
|
greboides
| osfameron: i think you need to set it up but i can be wrong i guess | 20:49 |
|
osfameron
| I've never had to use it before | 20:49 |
| → Twisted_Mentat joined | 20:50 |
|
osfameron
| and I don't want to complicate my setup to add something that isn't related (though I appreciate I *should* learn ssh-agent at some point...) | 20:50 |
| ← sis left | 20:50 |
|
charon
| osfameron: are you sure your gitosis hook works? i've seen server moves break it because the admin forgot to copy with permissions (losing the x bit), and the initial setup will work without the hook too | 20:51 |
|
osfameron
| charon: I cloned from a working user/ssh-key recently (last week iirc) | 20:52 |
|
| and I've not moved server, and can't think of any other massive changes like that off the top of my head | 20:52 |
|
| (as I'm not a very good sysadmin, I tend to avoid such...) | 20:52 |
| ← jessep left | 20:53 |
| → calin joined | 20:54 |
| ← d0k left | 20:54 |
| d0k_ → d0k | 20:54 |
| ← fcuk112 left | 20:54 |
|
| osfameron scp's over the entire repo to the server for now... | 20:54 |
|
greboides
| osfameron: is your user on the member's list of the group u are trying to clone from?(silly i know but i already forgot it once) | 20:56 |
|
| not user, key i mean | 20:57 |
| ← mm_work left | 20:57 |
| → gmarquezWRS joined | 20:58 |
|
gmarquezWRS
| anyone familiar with gitolite (I see sitaram not online) ? | 20:59 |
|
| I can 'git clone' from users who have an account on a Git Server using password-less ssh keys, but users without accounts can't clone anything even though I have user listed in gitolite.conf and key in keydir =/ | 21:00 |
|
charon
| osfameron: another common mistake is to specify the wrong user. usually the gitosis user is 'git' or 'gitosis'. but i'm really stabbing in the dark... | 21:01 |
| ← incredible left | 21:03 |
|
gmarquezWRS
| I think I installed gitolite correctly, but the ACLs aren't being enforced. | 21:04 |
| → kumbayo joined | 21:04 |
|
gmarquezWRS
| What can I check to verify ACL are enforced or how can i enforce them? | 21:04 |
| ← d0ugal left | 21:05 |
|
Fissure
| most of the magic is in ~git/.ssh/authorized_keys | 21:05 |
| ← sde_antrix1 left | 21:06 |
| → sde_antrix1 joined | 21:06 |
|
jast
| gmarquezWRS: what happens if you ssh to the server using the gitolite account and one of the gitolite ssh keys? | 21:06 |
|
Fissure
| it uses the command option to force-run the gitolite server program when the user connects | 21:06 |
|
gmarquezWRS
| Yea as normal user I can ssh username@gitserver without login password, which means ssh authorized_keys is correct | 21:06 |
|
| but its because I have an account on the server too | 21:07 |
|
Fissure
| gmarquezWRS: that's not using gitolite at all, though | 21:07 |
|
| you need to look at the one for the git account that gitolite is installed under | 21:07 |
|
gmarquezWRS
| gitolite and gitosis is supposed to also allow for users without an account to use git from the gitolite.conf file no? | 21:07 |
|
Fissure
| right | 21:07 |
|
| but they need an account (usually 'git') to run under | 21:08 |
|
| i.e. a real system account | 21:08 |
|
gmarquezWRS
| hmm okay | 21:08 |
|
kifkif
| How can I merge only certain commits between branches ? | 21:09 |
|
_rane
| git cherry-pick | 21:10 |
| ← hyperair left | 21:10 |
| → hyperair joined | 21:12 |
|
kifkif
| seriously | 21:12 |
| ← brizly left | 21:15 |
|
gmarquezWRS
| OP gmarquezWRS, ? | 21:15 |
| ← pasky left | 21:15 |
| ← spearce left | 21:16 |
| ← anno^da left | 21:16 |
|
jast
| kifkif: seriously what? | 21:17 |
| → spearce joined | 21:18 |
| ← jceb left | 21:19 |
| ← razvand left | 21:19 |
| Jodlbjorn → HektorTheseus | 21:22 |
| → Axius joined | 21:22 |
| → anjen1 joined | 21:22 |
|
Ilari
| gmarquezWRS: Try 'ssh <user and host you pass to git> git --version'? | 21:22 |
| ← Axius left | 21:23 |
|
kifkif
| jast, How can I merge only certain commits between branches ? | 21:23 |
|
| Is that possible ? | 21:23 |
|
| (I'm a noob as you can see) | 21:23 |
| ← bdiego left | 21:23 |
|
Ilari
| kifkif: 'git merge <commit>' would grab all parents of that commit too... | 21:23 |
|
jast
| kifkif: you can copy individual patches from another branch by using git cherry-pick, as _rane said. that's not technically a merge but it gets you the changes from the commit of your choice. | 21:24 |
| → defectiv joined | 21:24 |
|
kifkif
| jast, haha I though "cherry-pick" was a joke | 21:24 |
|
| thanks | 21:25 |
|
teuf
| or if there are many of them you want to cherry-pick, you can create a temporary branch, remove the unwanted commits with git rebase -i, and then merge tha tbranch | 21:25 |
|
jast
| no, we tend to be actually helpful here ;) | 21:25 |
| → Jippi___ joined | 21:26 |
|
kifkif
| teuf, this is a really good advice | 21:26 |
|
| jast, ;-) | 21:26 |
| HektorTheseus → Kurvendiskussion | 21:26 |
| → pasky joined | 21:27 |
| ← tommd left | 21:27 |
| → Jippi_ joined | 21:27 |
| → schacon joined | 21:28 |
| ← LRN left | 21:29 |
| ← munichlinux left | 21:30 |
| → godsflaw joined | 21:30 |
| ← godsflaw left | 21:33 |
| ← khmarbaise left | 21:37 |
| ← wolf2k_ubuntu left | 21:38 |
| ← __iron left | 21:38 |
| → numberGrey joined | 21:38 |
| → khmarbaise joined | 21:38 |
| → __iron joined | 21:38 |
| ← calin left | 21:39 |
| ← sde_antrix1 left | 21:39 |
| → tommd joined | 21:40 |
| ← Jippi___ left | 21:42 |
| → khmarbaise_ joined | 21:43 |
| ← schierbeck left | 21:43 |
| → fcuk112 joined | 21:44 |
| ← defectiv left | 21:44 |
| ← lemonchicken left | 21:47 |
| ← ambuli left | 21:49 |
| → flaguy48 joined | 21:49 |
| → Wazzzaaa joined | 21:50 |
|
Wazzzaaa
| which git programme is recommended for windows? | 21:50 |
| → makeworkeasy joined | 21:50 |
|
jast
| for command line stuff, msysgit | 21:50 |
|
Wazzzaaa
| ok | 21:51 |
|
jast
| as a GUI you might like tortoisegit (I don't know how good it is, I just know that other people use it) | 21:51 |
| ← tekky left | 21:51 |
|
gmarquezWRS
| jast: do you know if you can setup multiple paths with gitolite or gitosis? | 21:52 |
|
Wazzzaaa
| I'll first try msysgit | 21:52 |
|
jast
| gmarquezWRS: multiple paths for what? | 21:53 |
|
Fissure
| gmarquezWRS: if you want to store things in separate places on the filesystem, you can always symlink them | 21:54 |
| ← madewokherd left | 21:54 |
| → godsflaw joined | 21:55 |
| ← LiamH left | 21:57 |
| ← warlock_mza left | 21:58 |
| ← anjen1 left | 21:59 |
| ← khmarbaise left | 21:59 |
| khmarbaise_ → khmarbaise | 21:59 |
| ← godsflaw left | 22:02 |
| → ambuli joined | 22:02 |
| → eletuchy_ joined | 22:03 |
| ← eletuchy left | 22:03 |
| ← JackTheRabbit left | 22:04 |
| → Pupeno_ joined | 22:04 |
| ← Sigma left | 22:05 |
| karbassi_ → karbassi | 22:05 |
| Kurvendiskussion → yy | 22:06 |
| ← MadCoder left | 22:06 |
| yy → c | 22:06 |
| → MadCoder joined | 22:06 |
| c → Guest38405 | 22:06 |
| → danigm joined | 22:07 |
| → lemonchicken joined | 22:08 |
|
danigm
| hi all, I'm trying to run gitweb with lighttpd but it doesn't work, that is my lighttpd config file http://pastebin.com/d61bda12c anyone knows anything about that? | 22:08 |
| → JackTheRabbit joined | 22:08 |
| → schierbeck joined | 22:09 |
| Guest38405 → psypointer | 22:09 |
| → tfarina joined | 22:10 |
|
Fissure
| doesn't work... how? | 22:11 |
|
| gitweb is just a normal cgi script | 22:11 |
| → LiamH joined | 22:11 |
|
danigm
| the server get me the perl file | 22:13 |
|
mugwump
| did you enable mod_cgi? | 22:14 |
|
| lighttpd can be a bit special at times | 22:14 |
|
danigm
| in server.modules i put mod_cgi | 22:14 |
|
mugwump
| yeah. well, try #lighttpd I guess | 22:14 |
|
| I've been too lazy to follow the herd to nginx | 22:15 |
|
danigm
| mugwump: I'm trying there | 22:16 |
|
Arrowmaster
| i thought nginx was mostly used for static content | 22:16 |
|
mugwump
| it suppoorts fastcgi | 22:17 |
|
wereHamster
| Arrowmaster: or as a proxy | 22:18 |
|
mugwump
| damn o key has a stutter | 22:18 |
| ← catalis left | 22:19 |
| → t0rc joined | 22:20 |
| ← r11t left | 22:20 |
| ← JackW left | 22:20 |
| → r11t joined | 22:21 |
| → meanburrito920_ joined | 22:21 |
| → erikvold joined | 22:23 |
| → gebi joined | 22:23 |
| ← yann left | 22:24 |
| ← danigm left | 22:24 |
| ← LiamH left | 22:25 |
| ← jelmer left | 22:25 |
| → nullvariable1 joined | 22:29 |
| ← nullvariable left | 22:29 |
| nullvariable1 → nullvariable | 22:29 |
| ← erikvold left | 22:29 |
| ← altrux left | 22:30 |
| ← Wazzzaaa left | 22:30 |
| ← tommd left | 22:31 |
| ← tfarina left | 22:32 |
| → tfarina joined | 22:32 |
| → EricInBNE joined | 22:34 |
| → Tureba joined | 22:34 |
| ← r11t left | 22:35 |
| → r11t joined | 22:36 |
| → [sr] joined | 22:37 |
|
[sr]
| howdy people | 22:37 |
| → univate joined | 22:37 |
|
[sr]
| i'm a very very newbie guy to git | 22:37 |
|
| after set the repo on the server | 22:38 |
|
jast
| we all were once :) | 22:38 |
|
[sr]
| i was able to clone it on other machine | 22:38 |
|
| jast: true :) | 22:38 |
|
| then i added some files, and runned: | 22:38 |
|
| git add . | 22:38 |
|
| git commit -m "aa" | 22:39 |
|
| git push | 22:39 |
|
| and i got: | 22:39 |
|
jast
| hanging out in this channel seems to magically turn people into experts, though | 22:39 |
|
[sr]
| To git://192.168.1.206/project/myproject.git | 22:39 |
|
| ! [remote rejected] master -> master (n/a (unpacker error)) | 22:39 |
|
| | 22:39 |
|
jast
| you can't normally push using the git:// protocol | 22:39 |
|
| most of the time push is used with the ssh:// protocol | 22:39 |
|
[sr]
| jast: that's what i expect :) svn is so easy for me, and git is a really a pain for me... | 22:39 |
|
| hum... | 22:40 |
|
jast
| git:// is for anonymous access only | 22:40 |
|
| and while it's possible to enable anonymous push, you typically don't want that :) | 22:40 |
|
[sr]
| well then i seem to have much more work here than i thinked | 22:40 |
| → godsflaw joined | 22:40 |
|
Ilari
| In fact, reaching that point requires enabling anonymous push... :-) | 22:40 |
|
[sr]
| about security there's no problem, 'cause this will be only internal | 22:40 |
|
| but i want to use auth anyway | 22:40 |
| ← r11t left | 22:40 |
|
Ilari
| [sr]: There are other error messages that would probably give the true cause. | 22:41 |
| → thiago_home joined | 22:41 |
| → Jak_o_Shadows joined | 22:41 |
| → r11t joined | 22:41 |
|
Ilari
| Ah, but because its git://, those other errors do not appear. | 22:42 |
|
| [sr]: Best guess: Permissions are wrong (it tries to access that repository using whatever user git-daemon is running as. | 22:42 |
|
[sr]
| it seems to be make sence that error with what you guys say... | 22:42 |
| → AkumaStreak joined | 22:43 |
|
[sr]
| let me do a chmod 777 and test :) | 22:43 |
|
Ilari
| [sr]: FAIL. | 22:43 |
| ← keystr0k left | 22:43 |
|
Ilari
| [sr]: Does 192.168.1.206 run sshd? | 22:43 |
|
[sr]
| yap | 22:43 |
|
Ilari
| [sr]: Then push over that: '<user>@192.168.1.206:path/relative/to/home/directory'. | 22:44 |
|
[sr]
| bindo, permissoes :D | 22:44 |
|
| i mean, bingo | 22:44 |
|
| ok to push using auth, let me test that... | 22:45 |
|
| but anyway, i can push using git:// | 22:45 |
|
Ilari
| [sr]: Another is 'ssh://<user>@192.168.1.206/path/relative/to/filesystm/root'. | 22:46 |
| ← greboides left | 22:47 |
| ← d0k left | 22:47 |
| → giallu joined | 22:47 |
| → r11t_ joined | 22:47 |
|
[sr]
| let me... | 22:47 |
| ← intripoon left | 22:47 |
| → d0k joined | 22:48 |
|
Ilari
| What git-daemon2 likes about trying to push over git://: 'fatal: remote error: W access for jpcrr DENIED to anonymous'. :-) | 22:49 |
| → chrizz joined | 22:50 |
|
jast
| git-daemon2? | 22:50 |
|
Arrowmaster
| git-daemon2?? | 22:50 |
|
[sr]
| hum | 22:50 |
|
| i'm trying other thing | 22:50 |
|
Ilari
| The daemon for gits:// protocol (it can also deal with git://). I should put that somewhere. | 22:50 |
|
[sr]
| dont kill me for this :) | 22:50 |
|
| with tortoiseGIT | 22:51 |
|
Arrowmaster
| gits://? | 22:51 |
|
jast
| ah, I see. was that the thing using the authentication scheme you talked about some time ago? | 22:51 |
|
[sr]
| i'm seeing how to specify the auth... | 22:51 |
|
Ilari
| jast: Yup. | 22:51 |
|
| gits:// -> Git using TLS. | 22:51 |
|
jast
| fun. once you make it available somewhere, I think it would be great if you announced it on the git list. | 22:51 |
|
Ilari
| And if something in that error message reminds of gitolite.... :-) | 22:52 |
| ← project2501a left | 22:53 |
| ← sumangurung left | 22:53 |
|
[sr]
| how would be my push command using ssh | 22:53 |
|
Ilari
| [sr]: What is the right user on remote side? | 22:53 |
|
[sr]
| "jorge" | 22:53 |
| ← Jak_o_Shadows left | 22:54 |
| ← v0n left | 22:54 |
|
Ilari
| [sr]: And what is path to that repository. Either relative to filesystem root, or jorge's home? | 22:54 |
|
jast
| Ilari: nah, no similarity at all. | 22:54 |
|
| Ilari: in fact I think that's actually not a good thing. "W" is a bit cryptic. | 22:54 |
|
[sr]
| Ilari: /home/apache/project/myproject.git | 22:55 |
| ← khmarbaise left | 22:55 |
|
Ilari
| [sr]: 'ssh://jorge@192.168.1.206/home/apache/project/myproject.git'. | 22:55 |
|
| [sr]: SSHd runs on port 22, right? | 22:55 |
|
[sr]
| yes default, but tell me | 22:55 |
|
mugwump
| Ilari, a while ago the idea of signed pushes was also mooted | 22:56 |
|
[sr]
| the git command: git push ssh://jorge@192.168.1.206/home/apache/project/myproject.git ? | 22:56 |
|
Ilari
| [sr]: Looks right. | 22:56 |
|
| mugwump: Signed pushes are very nasty for client side. | 22:56 |
|
mugwump
| you mean by that, you have to keep entering your passphrase? | 22:57 |
|
Ilari
| mugwump: Plus have tools to sign the stuff on push. And entering passphrase repeatedly is quite tiresome (as I have noticed). | 22:58 |
| ← fcuk112_ left | 22:58 |
|
mugwump
| well, you can use an agent like gnupg-agent or pageant | 22:58 |
| ← spearce left | 22:59 |
|
mugwump
| it does have some benefits thouogh | 22:59 |
| → spearce joined | 22:59 |
|
Ilari
| Yeah. Those same ones would actually work with the gits:// client I have (I protected the actual keypair with my main GPG key). | 23:00 |
|
mugwump
| mmm, they're probably complementary approaches | 23:00 |
|
[sr]
| Ilari: before that, i have two files on the git server, that were already pushed by me, i'm trying to download them on another place, everything's ok | 23:01 |
|
| my question, why are not the files in /home/apache/project/myproject.git ? | 23:01 |
|
| where they live? :) | 23:01 |
|
wereHamster
| [sr]: is the myproject.git repository bare (did you create it with git init --bare)? | 23:02 |
|
[sr]
| no, just git init myproject.git | 23:03 |
|
wereHamster
| [sr]: faq non-bare | 23:03 |
|
Gitbot
| [sr]: Pushing to non-bare repositories is discouraged. See http://git.or.cz/gitwiki/GitFaq#non-bare | 23:03 |
|
Fissure
| [sr]: then they're in a .git directory inside that | 23:03 |
| ← r11t_ left | 23:03 |
|
[sr]
| that files exists, true | 23:04 |
|
| before going to the faq, let me reask | 23:04 |
|
| starting frrom the beguinning | 23:04 |
| ← Tureba left | 23:05 |
|
[sr]
| --reuseaddr --syslog --export-all --enable=receiv | 23:05 |
|
| e-pack --verbose --base-path=/home/apache/gitprojects | 23:05 |
|
Ilari
| [sr]: Since you figured out ssh, you don't need that --enable=receive-pack option anymore. | 23:05 |
|
[sr]
| where shouls the bare repo be created, git init --bare /home/apache/gitprojects ? | 23:06 |
| → asterisco joined | 23:06 |
|
asterisco
| sorry my net ... cabum! | 23:07 |
|
Ilari
| [sr]: Presumably '/home/apache/gitprojects/fooproject' (since git repositories are per project). | 23:07 |
|
asterisco
| i'm [sr] | 23:07 |
| ← r11t left | 23:07 |
|
asterisco
| so, is the base is /home/apache/gitprojects, i have to init the bare repo there, right? | 23:08 |
|
| i didn't read that part | 23:08 |
|
Ilari
| asterisco: If you have project named 'foo', you probably should create repo for it to '/home/apache/gitprojects/foo'. | 23:09 |
| ← ixti left | 23:09 |
|
wereHamster
| asterisco: you still have to create a directory per project (mkdir /home/apache/gitprojecs/myproject.git) | 23:09 |
|
| but you type 'git init --bare' inside it instead of 'git init' | 23:09 |
|
Ilari
| Hmm... Why there isn't shell primitive to create and switch directories in one go? It would be useful in some cases. | 23:10 |
| ← GNUtoo left | 23:10 |
|
asterisco
| i have a confusion here | 23:10 |
|
| for the base dir, i have to init that directory with --bare, correct? | 23:10 |
|
| ex: git init --bare /home/apache/gitprojects | 23:10 |
|
Ilari
| asterisco: No. | 23:10 |
|
wereHamster
| no | 23:10 |
| → Th0ma5 joined | 23:11 |
| ← JackTheRabbit left | 23:11 |
|
asterisco
| them, what for the --bare creation? | 23:11 |
|
| them=then | 23:12 |
| → justin-george joined | 23:12 |
|
wereHamster
| asterisco: at some point in the past you created the directory /home/apache/project/myproject.git and ran 'git init' inside it, right? | 23:12 |
| ← [sr] left | 23:12 |
|
asterisco
| wereHamster: yap, but now i deleted all dirs and i'm starting again | 23:12 |
| asterisco → [sr] | 23:12 |
|
Ilari
| [sr]: Server side only hopefully? | 23:13 |
|
wereHamster
| now you do everything exactly the same, except you run 'git init --bare' instead of just 'git init' | 23:13 |
|
[sr]
| Ilari: yap, it's a clean server for now | 23:13 |
| ← smotchkkiss left | 23:13 |
| → zackattack joined | 23:14 |
|
[sr]
| ah... for every project, i run: git init --bare /home/apache/gitprojects/project1.git | 23:14 |
|
| git init --bare /home/apache/gitprojects/project2.git | 23:14 |
|
| and so on... correct? | 23:14 |
|
Ilari
| [sr]: Right. | 23:14 |
|
| [sr]: (assuming that also creates the directories). | 23:14 |
|
[sr]
| Ilari: hum... i've read on 2/3 places on the web that was only need git init "directory.git" | 23:15 |
| ← giallu left | 23:15 |
|
[sr]
| the extension project.git | 23:15 |
|
| is mandatory? | 23:15 |
|
Ilari
| [sr]: The .git extension is just convention. | 23:15 |
|
Arrowmaster
| but its a good convention to follow | 23:15 |
|
[sr]
| yap, i like it :) | 23:15 |
|
Ilari
| [sr]: Wheither it creates bare or non-bare repo is determined by presence or absence of --bare flag. | 23:16 |
|
[sr]
| Ilari: got that! | 23:16 |
|
| i have one problem now.. | 23:16 |
|
| no problem, dumbness mine :) | 23:17 |
|
| now gitweb show's "project.git" | 23:17 |
|
| great :) | 23:17 |
|
| now i can clone using git://192.168.1.206/project.git | 23:17 |
|
| one question (dont hit me) | 23:17 |
| → giallu joined | 23:17 |
|
[sr]
| projects ALWAYS have to be started on the server, or can they be initialized remotly? | 23:18 |
| → kpreid_ joined | 23:18 |
|
NfNitLoop
| gah, I did 'git svn init' to specify my SVN branches directory and now 'git svn fetch' is re-fetching everything. >.< | 23:18 |
|
Ilari
| [sr]: Remote initialization would require something like gitolite. | 23:19 |
|
[sr]
| ok i'll skip that! | 23:19 |
| → eletuchy joined | 23:19 |
| ← sis_ left | 23:20 |
|
[sr]
| there's something strange with this tortoiseGIT but i'll check it later | 23:22 |
|
mugwump
| NfNitLoop: it's a bit tricky, you have to make sure your refs are arranged as the fetch is expecting | 23:23 |
|
| then it should rebuild the metadata database | 23:23 |
|
[sr]
| hum, Ilari, wereHamster, there's something here that i'm missing also | 23:24 |
|
| steps, created my bare project | 23:25 |
|
| cloned it locally | 23:25 |
|
| remote i mean | 23:25 |
|
| commit, and then push, but git this: | 23:25 |
|
| $ git push ssh://jorge@192.168.1.206/home/apache/gitprojects/myproject.git No refs in common and none specified; doing nothing. Perhaps you should specify a branch such as 'master'. Everything up-to-date | 23:25 |
|
Arrowmaster
| add master to the end of the command | 23:26 |
|
Ilari
| [sr]: 'git push origin master' (push branch 'master' to 'origin'). | 23:26 |
| ← johnw left | 23:26 |
|
Ilari
| [sr]: git clone sets up name 'origin' to refer to place the repo was cloned from. | 23:26 |
| → altrux joined | 23:27 |
|
[sr]
| i believe i understood... origin = from where were cloned | master = from where is going to be pushed | 23:28 |
|
Ilari
| [sr]: No. 'master' is name of branch. | 23:28 |
|
| [sr]: 'git branch' lists known (local) branches in current repository. | 23:28 |
| → robinr joined | 23:28 |
|
[sr]
| yap, it shows, cool :) | 23:29 |
|
Ilari
| [sr]: The default is to push only what exists on both sides, and since the remote is empty, this is nothing. | 23:29 |
| ← Twisted_Mentat left | 23:30 |
|
[sr]
| i believe i've learned more today! | 23:31 |
| ← drizzd left | 23:31 |
|
[sr]
| hey one thing, the gitweb interface can't show the euro symbol | 23:31 |
|
| from an text file that contains it | 23:31 |
|
Ilari
| [sr]: Incorrect character sets? | 23:32 |
| ← schierbeck left | 23:32 |
|
[sr]
| hum... it's FF, looking at the source it is with utf8 | 23:33 |
|
| ok the file was created using ANSI, may be that the problem | 23:33 |
| → krawek joined | 23:33 |
|
Ilari
| [sr]: Maybe gitweb is assuming the file is UTF-8? | 23:33 |
| ← eletuchy_ left | 23:33 |
|
[sr]
| let me test with a file created using utf8 | 23:34 |
| ← Adlai left | 23:34 |
|
[sr]
| ok that's the problem | 23:35 |
|
| a text file created using utf8 encoding works fine | 23:35 |
| ← _Vi left | 23:35 |
| → corni_ joined | 23:35 |
| ← corni_ left | 23:36 |
|
[sr]
| i'm almost a master in git :) | 23:36 |
|
| i should NEVER delete the .git directory inside each project! | 23:37 |
|
| or i'll kill it... | 23:37 |
|
Ilari
| [sr]: Well, there's only one non-obsolete character set: UTF-8 encoded Unicode. | 23:37 |
| → _Vi joined | 23:37 |
| → erikvold joined | 23:37 |
|
Ilari
| [sr]: Also be very careful with recursive commands (best to use 'git ls-files' to get list of files). | 23:38 |
| ← erikvold left | 23:38 |
|
[sr]
| let me ask one opinion, i'm going to use git for some projects that are .php files | 23:39 |
|
| and for some that are .net projects | 23:39 |
|
| do you see any inconvinient for the .net projects? | 23:39 |
|
Ilari
| [sr]: I don't know about VS project files... | 23:40 |
|
[sr]
| Ilari: they are normal text files | 23:40 |
|
| with some images (if added), some .dll's) | 23:40 |
|
Ilari
| [sr]: And also, VS can not be configured to save Unix format. Thus, keep 'core.autocrlf' enabled. | 23:40 |
|
[sr]
| but those will work as binary files | 23:40 |
| → adamm joined | 23:41 |
|
Ilari
| [sr]: If CRLFs can work their way into repository, expect problems. | 23:41 |
| ← Chillance left | 23:41 |
|
Ilari
| [sr]: But it should be enabled by default on msysgit. To check, do 'git config --global core.autocrlf'. | 23:42 |
|
[sr]
| didn't returned any info | 23:42 |
|
| anyway, i'm going to use tortoiseGIT, since this is windows, i believe it'll work ok... | 23:43 |
| → neunon joined | 23:43 |
|
zuez
| If I want to run an arbitrary shell script after a commit gets pushed to a remote server, what hook should I be paying closer attention to? | 23:43 |
|
wereHamster
| zuez: post-receive or post-update | 23:44 |
|
Ilari
| [sr]: To set it: 'git config --global core.autocrlf true'. | 23:44 |
|
zuez
| wereHamster: Ah, okay. | 23:44 |
|
[sr]
| thank you | 23:44 |
|
Ilari
| zuez: And nitpick: It can be multiple commits. :-) | 23:44 |
|
zuez
| Ilari: Yeah. I don't want the shell script fired off for each individual commit. Typically a user will make several commits locally, then push them to a remote server. | 23:45 |
|
| Illari: I just want the trigger to go off when the git push happens. | 23:45 |
|
[sr]
| Ilari: implications if i only do anonymous push's ? besides that i won't know who did it | 23:45 |
| → RaceCondition joined | 23:45 |
|
Ilari
| [sr]: Anybody who can connect to that service can push too. | 23:46 |
|
RaceCondition
| where could I find a static binary of git? | 23:46 |
|
[sr]
| Ilari: hum ok, no problem, that's internal service, wont be exposed to the web | 23:46 |
|
Ilari
| RaceCondition: Nobody has built one because git also has critical shell parts. | 23:47 |
| psypointer → FatboyPsy | 23:47 |
|
RaceCondition
| Ilari: ahh, of course, how stupid of me, i forgot | 23:47 |
| ← _Vi left | 23:48 |
|
RaceCondition
| but can git be built and installed and used as non-root? | 23:48 |
|
Ilari
| RaceCondition: Of course. | 23:48 |
|
RaceCondition
| OK | 23:48 |
| ← Fissure left | 23:49 |
|
Ilari
| RaceCondition: I do so to get versions newer than what's in distro repo (I also have compile of pu branch version). | 23:49 |
|
[sr]
| Ilari: tell me, a textfile, created by windows, in this case with notepad++, gitweb always show in the end of its content: \ No newline at end of file | 23:49 |
|
| should i worry? | 23:49 |
|
RaceCondition
| Ilari: OK, great | 23:49 |
|
Ilari
| [sr]: That means the file ends with something else than line change. | 23:50 |
|
[sr]
| got it.. | 23:50 |
|
Ilari
| [sr]: Usually not a problem. | 23:50 |
|
[sr]
| before i put here my .net projects, i'll use the smaller one for a while for tests.. | 23:50 |
|
| to tune something that may need to be tunned.. | 23:51 |
| → \ask joined | 23:51 |
|
Ilari
| [sr]: The projects need to be huge (or contain large files) before you hit scalability limits. But its good to keep it small at beginning (to learn about workflows and that stuff). | 23:53 |
| → Geralt joined | 23:53 |
|
[sr]
| Ilari: the total size may be 100mb each one, but for contaning forms, arround 150/200 | 23:54 |
|
Ilari
| [sr]: The 'large files' refers to individual files. | 23:54 |
|
[sr]
| undertood, i believe i won't have nothing larger then 10mb per file | 23:54 |
|
| what is large for git, 100mb file? | 23:55 |
| ← kumbayo left | 23:55 |
|
Ilari
| [sr]: 100MB is already quite large. | 23:55 |
|
[sr]
| thanks, that gives me the ideia of the size i need | 23:55 |
|
Ilari
| The approximate current scalabilty limits (be careful before exeeding): 10MB per file, 100k files per project (Linux, on windows, maybe 10k), 100M revisions. | 23:56 |
|
[sr]
| hum | 23:57 |
|
| doesn't linux kernel pass that limit? | 23:57 |
|
| it has so many projects created | 23:57 |
|
cbreak
| with what command can I find out what a hash is? | 23:57 |
|
Ilari
| [sr]: Actually, that 'files per project' refers to number of files in one commit. | 23:58 |
|
wereHamster
| cbreak: what a hash is? What do you mean with that? | 23:58 |
|
bremner
| cbreak: git show $SHA1 ? | 23:58 |
|
[sr]
| Ilari: ah per commit | 23:58 |
|
| ok them :) | 23:58 |
|
cbreak
| fatal: bad object 9cfcd715f0263113efe0946bfec752974716df3e, looks bad? | 23:58 |
|
wereHamster
| cbreak: try git fsck --full | 23:58 |
|
Ilari
| [sr]: The reason why the limit it higher on Linux is that Linux has better VFS system. | 23:58 |
| ← cannonball left | 23:59 |
| ← Geralt left | 23:59 |