| 2008-04-18 |
|
fujin
| hm, would 'git push origin master' push the changes to the master branch to remote origin no matter what branch I'm on? | 00:01 |
|
loops
| Lethalman, git checkout HEAD -- <files> should work | 00:01 |
|
fujin
| changes on | 00:01 |
|
jbunster
| Is it possible to add the old id of a commit to the log when converting with hg-fast-export ? | 00:01 |
|
Lethalman
| loops, done reset | 00:02 |
| ← schacon_ left | 00:02 |
|
Lethalman
| but i was only a stupid | 00:02 |
|
| becase i had to rebase instead | 00:02 |
|
loops
| fujin, by default it will push to the branch of the same name in the remote | 00:04 |
| ← rickbradley left | 00:04 |
|
loops
| fujin, you can change this with a config option though. | 00:04 |
|
| jbunster, you may have to ask that question on the mailing list. | 00:05 |
| → spearce joined | 00:05 |
|
loops
| fujin, so yes.. git push origin master means push my master to the origin remote, regardless of which branch i have currently checked out. | 00:06 |
| → QuercusMax joined | 00:06 |
| ← QuercusMax left | 00:07 |
| ← hector left | 00:08 |
| ← kirindav_ left | 00:08 |
| ← dsaxena left | 00:08 |
| → kirindav_ joined | 00:09 |
| → hamburglu joined | 00:10 |
| ← Lethalman left | 00:11 |
| ← kirindav_ left | 00:13 |
|
hamburglu
| Text hier eingeben...merhabalar | 00:15 |
| → flaguy joined | 00:16 |
| → mithro joined | 00:16 |
|
tmm1
| how do i reset a specific file back to HEAD ? | 00:19 |
| → kirindav_ joined | 00:20 |
| → faheem_ joined | 00:21 |
|
tmm1
| git checkout file | 00:22 |
| ← hamburglu left | 00:22 |
| ← ben_h left | 00:23 |
| ← kirindav_ left | 00:23 |
| → ben_h joined | 00:23 |
| ← faheem left | 00:27 |
| ← zedr0n left | 00:29 |
| → tjafk1 joined | 00:31 |
| ← myrizio left | 00:32 |
| → kirindav_ joined | 00:35 |
| ← tjafk2 left | 00:43 |
| ← phoenix24 left | 00:43 |
| ← pombreda left | 00:44 |
| ← kipras left | 00:45 |
| ← kirindav_ left | 00:45 |
| → kirindav_ joined | 00:46 |
| ← warlock_mza left | 00:48 |
| ← jburd left | 00:51 |
| → jburd joined | 00:52 |
| → zed_DX joined | 00:54 |
| ← robinr left | 00:57 |
| → stick joined | 00:58 |
| → thesaint4444 joined | 01:02 |
| ← kirindav_ left | 01:04 |
| → phoenix24 joined | 01:04 |
|
thesaint4444
| hi guys, I am trying to get my head around a rails deployment with git. I have checked my development app into git and created a git clone. I copied this to my server to create an external git repo. I have modifed my development app, added and commited my files. How do I update my external git repo? thanks. | 01:06 |
|
shoe
| thesaint4444: use capistrano | 01:08 |
|
KragenSitaker
| ideally log into it and use git pull | 01:08 |
|
| oh, yeah, something rails-specific for deployment instead of git might be good too :) | 01:08 |
|
| i haven't tried using git for rails | 01:09 |
|
thesaint4444
| shoe: I am using capistrano .... | 01:09 |
|
| shoe: but surely I have to keep my git repo in sync also.... | 01:09 |
|
| shoe: I think capistrano takes its source from the git repo on the server. | 01:10 |
|
shoe
| then cap will do a git pull from whatever address you specify in the cap script for :repository | 01:10 |
|
thesaint4444
| shoe: so if I make changes to my local dev source I have to keep the external git repo up to date.... | 01:10 |
|
johnw
| thesaint4444: Here's what I do when I want to start using a remote repo: commit to your local repo, rsync it over, then clone your remote repo to a local copy and start using that. This way you can just push/pull from now and things will work as you expect. | 01:11 |
|
KragenSitaker
| there is one surprising thing about doing that kind of thing though (independent of capistrano) | 01:12 |
|
shoe
| thesaint4444: oh, you're asking how to push to the external repo? | 01:12 |
|
KragenSitaker
| you don't want to "git push" to a repository that has an associate work area | 01:12 |
|
thesaint4444
| johnw: actually that is the way I have it set up... everything is working just I am not sure how to push to the external repo.... | 01:13 |
|
KragenSitaker
| associated work area | 01:13 |
|
shoe
| (independent of deployment) | 01:13 |
|
johnw
| thesaint4444: git push | 01:13 |
|
| i'm assuming you pulled using the ssh:// or git+ssh:// protocol | 01:13 |
|
shoe
| thesaint4444: ^^ but you first might need "git remote add place-you-cloned-to" | 01:14 |
|
johnw
| shoe: if he did a clone from the remote that should already have happened | 01:14 |
|
shoe
| johnw: but I think he cloned the external one. | 01:14 |
|
johnw
| what does external mean in this case? | 01:15 |
|
shoe
| meaning, not the development repo, but the repo shared between developers and deployment targets. | 01:15 |
| → Mactaylor joined | 01:16 |
|
johnw
| I understood his question to involve two repo's: his local one, and the one he's setting up on the remote server | 01:16 |
|
| if he copies from local to remote, then clones from remote, he should be all setup to push/pull | 01:16 |
|
thesaint4444
| johnw; yes... pulled using ssh://, have already added git remote add.... sorted - works... thanks! | 01:17 |
|
shoe
| right, but I don't think he cloned from remote, just went back to hacking in the "original" | 01:17 |
|
johnw
| thesaint4444: you didn't need git remote add | 01:17 |
| ← Mactaylor left | 01:17 |
|
johnw
| shoe: ah, I mentioned to him that he needs to work in the remote clone, and put "original" away after he copies it | 01:17 |
| → igorgue joined | 01:17 |
|
thesaint4444
| johnw; I have already done that during my setup... | 01:17 |
| → igorgue_ joined | 01:18 |
| ← igorgue_ left | 01:18 |
|
shoe
| ah good, that's an easy way | 01:18 |
|
thesaint4444
| johnw: to add the repo as a remote git repository... | 01:18 |
|
johnw
| thesaint4444: that is done for you by the fact that you cloned | 01:18 |
|
thesaint4444
| johnw: yeah? ok, will look at that... - will it cause any issues? | 01:19 |
|
johnw
| nope | 01:20 |
|
| I use it all the time | 01:20 |
|
thesaint4444
| cool... | 01:20 |
| ← agib left | 01:20 |
|
johnw
| just type "git-remote" after you "git-clone" and you should see the "origin" already setup for you in the list | 01:20 |
| ← asonge left | 01:20 |
|
johnw
| git branch -r will show all the remote branches that you can now checkout locally | 01:20 |
| ← jburd left | 01:20 |
|
thesaint4444
| johnw: great, a lot of stuff to cover! i have been playing with the capistrano stuff at the same time - very usefull... | 01:21 |
|
igorgue
| another rails user.... :(, 21signals should pass a check to git developers :) | 01:22 |
|
thesaint4444
| igorgue: lol... | 01:22 |
|
| igorgue: git is very nice. | 01:22 |
|
igorgue
| yep pretty cool | 01:24 |
| ← ben_h left | 01:24 |
| ← anttih- left | 01:25 |
| ← jbunster left | 01:25 |
| ← dysinger left | 01:25 |
| ← pkufranky left | 01:25 |
| ← Snadder left | 01:25 |
| ← Lemurnomicon left | 01:25 |
| ← tokkee left | 01:25 |
| ← telmich left | 01:25 |
| ← LoCusF left | 01:25 |
| ← djpig left | 01:25 |
| ← robtaylor left | 01:25 |
| ← ska-fan left | 01:25 |
| ← pjz left | 01:25 |
| ← mxey left | 01:25 |
| ← kynde left | 01:25 |
| ← thommey left | 01:25 |
| ← mqt left | 01:25 |
| ← floppyears left | 01:25 |
| ← ndim left | 01:25 |
| ← kmap left | 01:25 |
| ← jp_tix left | 01:25 |
| ← ekim|home left | 01:25 |
| ← jacobat left | 01:25 |
| ← nipuL left | 01:25 |
| ← fonseca left | 01:25 |
| ← peper left | 01:25 |
| ← normalperson left | 01:25 |
| ← Cap_J_L_Picard left | 01:25 |
| ← AlexanderS left | 01:25 |
| ← GrumpyOldMan left | 01:25 |
| ← eMBee left | 01:25 |
| → floppyea1s joined | 01:25 |
| → jacobat_ joined | 01:25 |
| → GrumpyOl1Man joined | 01:25 |
| → kynde_ joined | 01:25 |
| → tokkee joined | 01:25 |
| → fonseca joined | 01:25 |
| → jp_tix joined | 01:25 |
| → mqt joined | 01:25 |
| → robtaylor joined | 01:25 |
| → ska-fan joined | 01:25 |
| → ndim joined | 01:25 |
| → pjz_ joined | 01:25 |
| → pkufranky joined | 01:25 |
| → mxey joined | 01:25 |
| → djpig joined | 01:25 |
| → eMBee joined | 01:25 |
| → telmich joined | 01:25 |
| → thommey joined | 01:25 |
| → normalperson joined | 01:25 |
| → kmap joined | 01:25 |
| → AlexanderS joined | 01:25 |
| → LoCusF joined | 01:25 |
| → nipuL joined | 01:25 |
| → adante joined | 01:25 |
| → peper joined | 01:25 |
| → ben_h joined | 01:25 |
| → ekim|home joined | 01:25 |
| floppyea1s → floppyears | 01:25 |
| → Snadder joined | 01:25 |
|
igorgue
| good bye everyone, hello everyone | 01:26 |
| ← jerbear left | 01:27 |
| ← johan-s left | 01:27 |
| ← pygi left | 01:27 |
| ← Tv left | 01:27 |
| ← clarity_ left | 01:27 |
| ← m3y3ring left | 01:27 |
| ← tcoppi left | 01:27 |
| ← AlexB left | 01:27 |
| ← jmspeex left | 01:27 |
| ← jeremyb left | 01:27 |
| ← offby1 left | 01:27 |
| ← ft left | 01:27 |
| ← vlt left | 01:27 |
| ← gram left | 01:27 |
| ← zeenix left | 01:27 |
| ← Aeternus_ left | 01:27 |
| ← albertito left | 01:27 |
| ← Tali left | 01:27 |
| ← cods left | 01:27 |
| ← Alex left | 01:27 |
| ← com4 left | 01:27 |
| ← jast left | 01:27 |
| ← joevandyk left | 01:27 |
| ← mtkd left | 01:27 |
| ← theMuss left | 01:27 |
| ← ehamberg left | 01:27 |
| ← spleenk left | 01:27 |
| ← blackdae1on left | 01:27 |
| ← ar0x left | 01:27 |
| ← dermoth left | 01:27 |
| ← [dmp] left | 01:27 |
| ← mountie left | 01:27 |
| → Aeternus joined | 01:27 |
| → blackdaemon joined | 01:27 |
| → spleenk joined | 01:27 |
| → gram joined | 01:27 |
| → cods joined | 01:27 |
| → Tali joined | 01:27 |
| → ehamberg joined | 01:27 |
| → zeenix joined | 01:27 |
| → albertito joined | 01:27 |
| → m3y3ring` joined | 01:27 |
| → AlexB joined | 01:27 |
| → theMuss joined | 01:27 |
| → jast joined | 01:27 |
| → ft joined | 01:27 |
| → ar0x joined | 01:27 |
| → com4 joined | 01:27 |
| → [dmp] joined | 01:27 |
| → vlt joined | 01:27 |
| → jmspeex joined | 01:27 |
| → dermoth joined | 01:27 |
| → jerbear joined | 01:27 |
| → clarity_ joined | 01:27 |
| → mountie joined | 01:27 |
| → tcoppi joined | 01:27 |
| → pygi joined | 01:27 |
| → Tv joined | 01:28 |
|
thesaint4444
| KragenSitaker: hi, just reading your comments... what do you mean about not pushing to the associated work area? thanks. | 01:31 |
| → jeremyb joined | 01:32 |
| → Alex joined | 01:32 |
|
KragenSitaker
| thesaint4444: only push to "bare repositories" | 01:32 |
|
| pull the rest of the time | 01:32 |
| → ggeecko joined | 01:33 |
|
thesaint4444
| KragenSitaker: and a bare repository is? | 01:34 |
|
johnw
| one with no associated working tree, whose config file reads "bare = true" | 01:35 |
| → kirindav_ joined | 01:35 |
|
thesaint4444
| johnw: I pretty much followed the scott chacon screencast to get started....... | 01:35 |
| → Modius joined | 01:35 |
|
johnw
| if you rsync'd over your working tree + .git, you can just rm -fr the working set, move project/.git to project.git, and edit project.git/config to set bare = true | 01:35 |
|
thesaint4444
| KragenSitaker: aahh... that makes sence... thanks. | 01:35 |
|
KragenSitaker
| because push doesn't update the working tree, or the index, and so you can get into a kind of bad state | 01:36 |
| → vbgunz joined | 01:36 |
|
spearce
| johnw: for what its worth, the config having bare = true isn't usually necessary. we auto-sense bare trees most of the time. :-) | 01:37 |
|
| well, auto-sense is based on it ending in ".git". | 01:37 |
|
KragenSitaker
| you mean, having something before the .git? | 01:37 |
|
spearce
| call it "project.blargh" and you may want bare = true in your .git/config. | 01:37 |
|
| KragenSitaker: yea, its based on it being "foo.git" and not just ".git". | 01:37 |
|
KragenSitaker
| here's masukomi's recommendation for how to do this: http://weblog.masukomi.org/2008/03/11/sharing-a-public-git-repo-over-http-flow-chart | 01:38 |
|
thesaint4444
| can anyone recommend a good document to read in relation to this stuff? my main thrust is using git as the scm for rails apps which I will deploy via capistrano. | 01:38 |
|
KragenSitaker
| although i'm not expert enough to know if she got something wrong | 01:38 |
|
| well, on how to create a bare repo | 01:38 |
| ← bartman left | 01:39 |
|
johnw
| spearce: nice to know | 01:39 |
| → destruct1 joined | 01:40 |
|
johnw
| thesaint4444: finding a good document for you will depend on how well you want to understand Git, or if you just want to use it from the highest level possible | 01:40 |
|
KragenSitaker
| after my first few hours using git, i wrote a document on the things i wished i'd known when i started | 01:42 |
|
johnw
| KragenSitaker: can I read it? | 01:42 |
|
KragenSitaker
| yeah, maybe you can tell me what i got wrong | 01:43 |
|
| http://pobox.com/~kragen/tmp/git-learnings | 01:43 |
|
johnw
| please send it to me | 01:43 |
|
| reading... | 01:43 |
|
KragenSitaker
| before it infects any other newbies | 01:43 |
|
johnw
| if you git push and then git commit, it shouldn't throw away your changes, it just means that your HEAD is now on a different branch, right? | 01:44 |
|
| (in a working tree on a remote repo) | 01:44 |
|
thesaint4444
| KragenSitaker: cool, thanks... I will look and learn... | 01:45 |
|
johnw
| KragenSitaker: also, git-commint --amend only lets you edit HEAD; if you want to edit further back, you have to git-rebase -i | 01:45 |
|
thesaint4444
| johnw: I want to understand it say 3 hours more than the highest level possible (just enough so I can use it without screwing up...) | 01:46 |
|
johnw
| KragenSitaker: and isn't git-add --patch similar to what you mean by git-hunk-commit? | 01:46 |
| ← xjrn left | 01:46 |
|
johnw
| thesaint4444: that's a fair request, let me look at my collection of docs | 01:46 |
|
thesaint4444
| johnw: many thanks.... | 01:47 |
|
johnw
| I think this one might suit you: http://www.ibm.com/developerworks/linux/library/l-git/ | 01:48 |
|
| KragenSitaker: I'm using git 1.5.5 with a 4.4 Gb repository btw, maybe there were issues with 1.4? | 01:48 |
| → pombreda joined | 01:49 |
|
KragenSitaker
| johnw: yeah, maybe i should clarify that about --amend | 01:50 |
|
| slightly worse than darcs in that regard i guess, but not much | 01:50 |
|
| i haven't tried git-add --patch | 01:51 |
| ← timocratic left | 01:51 |
| ← destruct left | 01:51 |
|
KragenSitaker
| git-add --patch doesn't seem to be documented | 01:51 |
|
thesaint4444
| johnw: thanks... I pretty much understand all of that. Some of the links off there are good. cheers. | 01:52 |
|
johnw
| KragenSitaker: I wonder if you'd like this: http://raphael.slinckx.net/files/git-darcs-record | 01:52 |
|
KragenSitaker
| the name is promising :) | 01:53 |
|
johnw
| it's basically a wrapper around git-add for new files, and git-add --patch for modified files, but it merges it all together into a recording session, ala darcs | 01:53 |
|
| i'm also working on a port of darcsum.el to Git, in case you're an Emacs user | 01:54 |
|
KragenSitaker
| johnw: how many files are there in your 4GB repo? the problem I've been having is that whenever I try to commit more than a few hundred thousand new files at a time, things like git add and git commit become very slow | 01:54 |
|
| yes, i use emacs a lot | 01:54 |
|
johnw
| KragenSitaker: let me check my HEAD commit tree size | 01:54 |
|
| only 9285 files | 01:55 |
| → bartman joined | 01:55 |
|
thesaint4444
| when you run git init-db in the root of your development directory then you add the files and commit this creates a local git repo, yes? | 01:55 |
|
KragenSitaker
| thesaint4444: yes | 01:55 |
| ← Fullmoon left | 01:55 |
|
KragenSitaker
| although isn't it more fashionable to do git init rather than git init-db? | 01:55 |
|
johnw
| thesaint4444: it gets created the moment you say git-init | 01:55 |
|
thesaint4444
| KragenSitaker: the object of which is to what? Do you continue doing your development in this 'area' continuously adding files and commiting? | 01:56 |
|
johnw
| KragenSitaker: perhaps I can enlist you as a beta tester? | 01:56 |
|
KragenSitaker
| johnw: very likely. i never used darcsum though, so I don't know its UI, so I might be a little bit of a pain ;) | 01:57 |
|
thesaint4444
| KragenSitaker: with the possible intention of finally creating an external git repo..... | 01:57 |
|
KragenSitaker
| thesaint4444: yes, that's what you do. the benefits of this: | 01:57 |
|
| - if you screw something up, you can recover pretty easily by looking at a previous version. | 01:57 |
|
| - backups are dead easy. | 01:58 |
|
johnw
| KragenSitaker: the basic methodology of darcsum is to display your current changeset like a pcl-cvs buffer, but you can press RET to show all the hunk in a file, and 'm' to add/remove hunks from the index cache, and then 'c' to commit the bolded hunks/files | 01:58 |
|
KragenSitaker
| johnw: that sounds pretty awesome | 01:58 |
| → Fullmoon joined | 01:58 |
|
johnw
| in darcss there is no index cache, so the marking was done on an internal Lisp buffer, but with Git I want to use the index cache interactively | 01:58 |
|
KragenSitaker
| that makes sense | 01:58 |
|
johnw
| in a way, it's like a visual index editor | 01:59 |
| → hector joined | 01:59 |
|
KragenSitaker
| thesaint4444: apparently advanced users also use branches in git to easily suspend and resume unfinished development tasks | 01:59 |
|
thesaint4444
| KragenSitaker: ok. thanks.. so every commit is effectively a snapshot of a previous version available for use if necessary contained within the external repo.... | 01:59 |
|
johnw
| plus, and this is the really cool part, I want you to be able to dynamically change the Base/Current commits/working tree by which your changeset was determined | 01:59 |
|
thesaint4444
| KragenSitaker: yes, so I have seen.... | 01:59 |
|
KragenSitaker
| when they get interrupted with something higher priority, they can save their current work, work on something fresh, commit, and go back to what they were doing. but i haven't tried this. | 01:59 |
|
johnw
| automatically created branches as necessary if you commit changes against an earlier Base, auto-stashing your working tree if you change Current to an earlier commit, etc. | 01:59 |
|
KragenSitaker
| johnw: i don't understand the really cool part, but I think that's OK :) | 02:00 |
|
johnw
| sigh, I'm having a lot of trouble articulating it | 02:00 |
|
| I think it will require a screencast for the coolness to leak out of my brain | 02:00 |
|
| thesaint4444: every commit is a copy of your source tree at a specific point in time | 02:01 |
|
thesaint4444
| johnw: ok..... got it. | 02:01 |
|
johnw
| thesaint4444: with insane internal linking to prevent duplicate content within the repository | 02:01 |
| → garrin joined | 02:01 |
|
KragenSitaker
| johnw: what was it that aiken said about stealing ideas? | 02:01 |
|
johnw
| a "patch" is the distance between two commits | 02:01 |
|
thesaint4444
| johnw: ok.... | 02:02 |
|
KragenSitaker
| i think it was something like "don't worry about people stealing your ideas. if your ideas are any good, you'll have to cram them down their throats" | 02:02 |
|
johnw
| haha, that's awesome | 02:03 |
|
| well, this idea I have I've never seen in any VCS interface, so maybe it has earned its obfuscated nature | 02:03 |
| ← aroben left | 02:04 |
|
johnw
| though gitk could easily approach what I'm thinking, if it were also an editor/commiting tool | 02:04 |
|
| maybe I just need to play with gitk more | 02:04 |
|
spearce
| use git gui. :) | 02:04 |
|
johnw
| err, yes, that's what I just ran | 02:04 |
| ← phoenix24 left | 02:04 |
| ← vb123 left | 02:05 |
|
johnw
| hmm.. the scrollbar control is rather broken on OS X (1.5.5, Tk 8.5.2) | 02:05 |
|
| i grab it and drag, but it disconnects from the cursor and no scrolling happens | 02:05 |
| → phoenix24 joined | 02:06 |
|
thesaint4444
| so if you create a git clone: git clone --bare myapp/.git myapp.git is this linked to the initial 'development area' created with git init-db ? | 02:08 |
|
johnw
| thesaint4444: I think you're going about this the very long way around | 02:08 |
|
thesaint4444
| johnw: id be most happy to hear the short way! | 02:09 |
|
johnw
| $ rsync -av .git/ server:/tmp/foo.git/ ; cd /tmp ; git clone ssh://server/tmp/foo.git | 02:09 |
|
| that's all you need to setup a remote repository, and to start using it right away | 02:09 |
| → threeve joined | 02:09 |
|
johnw
| your remote is now at server:/tmp/foo.git, and your local working tree is in /tmp/foo | 02:09 |
|
| just tar up your original working tree and put it in your archives, then move the two repos to where they should exist from now on | 02:10 |
|
| done and done | 02:10 |
|
thesaint4444
| johnw: thats it? - when you say move the 2 repos to where they should exist from now on what do you mean? | 02:11 |
|
johnw
| go to the server and run: mv /tmp/foo.git /srv/git/foo.git, or wherever you plan to server it from | 02:11 |
|
| serve it from | 02:11 |
|
| locally, type mv /tmp/foo ~/src/foo, or wherever you plan on working in it from | 02:11 |
|
| your local working tree will already have a master branch linked to origin/master, so you can push/pull immediately | 02:12 |
|
| if you had another created, do: git-checkout -b branchname origin/branchname, then you can work on it locally and push/pull to the remote branch | 02:13 |
|
thesaint4444
| johnw: thinking.... | 02:13 |
|
| johnw: thats it? seems pretty easy! | 02:15 |
|
johnw
| most of git is, when you use it right | 02:15 |
| → GyrosGeier joined | 02:15 |
|
thesaint4444
| johnw: thats the best explination I have seen so far! thanks. | 02:15 |
| ← kirindav_ left | 02:16 |
|
johnw
| sure thing | 02:16 |
|
| i'm going to post an in depth study of GIt from the bottom up this weekend, you might like it | 02:16 |
|
| but maybe more info than you care to know | 02:17 |
|
thesaint4444
| johnw; where will I be able to find it? | 02:17 |
|
johnw
| ftp://ftp.newartisans.com/pub/Git%20from%20the%20bottom%20up.pdf | 02:17 |
|
| that's the final draft, let me know if it needs improvement | 02:17 |
| → peeja joined | 02:21 |
|
thesaint4444
| johnw: looks very good.... many thanks, just had a quick scan. I will read it in the morning. Is there an email address on there? | 02:22 |
|
krawek
| indeed, thanks johnw =) | 02:24 |
|
johnw
| please send any comments to [email@hidden.address] I am most interesting in making it clear for those who wish to know how Git does what it does | 02:25 |
|
KragenSitaker
| awesome | 02:25 |
| → imyousuf joined | 02:27 |
|
floppyears
| hi guys | 02:28 |
|
| quick question | 02:28 |
|
| I'm using git-svn | 02:28 |
|
Ramune
| 42! | 02:28 |
|
johnw
| I think you meant to say, "I'm using git-svn?" | 02:28 |
|
floppyears
| can I add a submodule, but when I commit my work back to the svn repo, not have that submodule added ? | 02:29 |
|
Eridius
| using submodules adds a .gitsubmodule file IIRC | 02:29 |
|
floppyears
| ok | 02:29 |
|
| would I add the git submodule on my master git-svn branch or in the topic branch and then merge my topic branch back to master | 02:30 |
| → ffeynman joined | 02:33 |
| ← codeFiend left | 02:33 |
|
ffeynman
| guys, I'm trying to access a git repo over ssh like this: git clone ssh://git@myserver.org:2400/var/git/project.git and it's failing... I'm getting: ssh: myserver.org:2400: Name or service not known any ideas what I'm doing wrong? | 02:35 |
| → zeom joined | 02:35 |
|
johnw
| can you ssh to that server with that port? | 02:38 |
|
ffeynman
| johnw: yep | 02:38 |
| ← Snadder left | 02:38 |
|
ffeynman
| i connect etc and get this: fatal: What do you think I am? A shell? | 02:38 |
|
| which is good... | 02:38 |
|
johnw
| i assume you're using ssh -l git -p 2400 myserver.org? | 02:39 |
|
ffeynman
| yep | 02:39 |
|
johnw
| what version of Git? | 02:39 |
|
ffeynman
| i can execute that command just fine from my laptop... but not from my server | 02:39 |
|
| $ git --version | 02:39 |
|
| git version 1.5.2.5 | 02:39 |
|
johnw
| well, your command looks OK to me, so I'm not sure at this point | 02:40 |
|
ffeynman
| on my laptop I have this: $ git --version | 02:40 |
|
| git version 1.5.4.5 | 02:40 |
| ← xenoterracide left | 02:40 |
|
ffeynman
| weird :) | 02:40 |
|
spearce
| yea, port number support on ssh was added in 1.5.4 i think. | 02:40 |
|
ffeynman
| oh | 02:41 |
|
| i'm on ubuntu... any idea how to grab latest one? | 02:41 |
|
johnw
| apt-get install git-core? | 02:41 |
|
ffeynman
| yep... and thats the one it gave me | 02:41 |
| ← Sho_ left | 02:42 |
| → xenoterracide joined | 02:42 |
|
xenoterracide
| anyone use bzr fast-export? | 02:42 |
|
johnw
| ffeynman: i build from git's repo, so I'm not sure how to help you with Ubuntu | 02:43 |
|
ffeynman
| ok | 02:43 |
|
| finally it works! I grabbed this version: http://www.backports.org/debian/pool/main/g/git-core/git-core_1.5.4.2-1~bpo40+2_amd64.deb | 02:44 |
|
| thx | 02:44 |
| → tswicegood joined | 02:44 |
|
ffeynman
| it was the old version issue... ubuntu's repo has old version | 02:44 |
|
xenoterracide
| I'm just looking for basic syntax of how to use fast-export to export bzr to git | 02:44 |
| → brosner joined | 02:46 |
|
lu_zero
| xenoterracide there is a way not involving taylor to import from bzr to git? | 02:46 |
|
| btw | 02:46 |
|
| is there a way to import from monotone? | 02:46 |
|
xenoterracide
| lu_zero: hmm? there is a way? or is that a question | 02:47 |
|
Ramune
| lu_zero: try tailor http://progetti.arstecnica.it/tailor | 02:48 |
|
lu_zero
| there is a question | 02:48 |
|
Ramune
| lu_zero: never tried it myself, so... good luck | 02:48 |
|
lu_zero
| Ramune ^^; | 02:48 |
|
xenoterracide
| fast-export has non-existant docs | 02:49 |
|
| lu_zero: pmerge-ing :P | 02:51 |
|
lu_zero
| merging what? | 02:52 |
|
xenoterracide
| whoops :P | 02:52 |
|
| I was looking at the tailor thng | 02:52 |
|
| xenoterracide should read more carefully | 02:53 |
| → a-priori joined | 02:55 |
|
xenoterracide
| lu_zero: oh and yes fast-export is a bzr plugin that should allow exporting to git | 02:55 |
|
| I haven't figured out how to use it though | 02:55 |
| ← igorgue left | 02:56 |
| ← Fullmoon left | 02:56 |
|
spearce
| xenoterracide: `mkdir foo; cd foo; git init; cd ../bzr; bzr fast-export | (cd ../foo; git fast-import)` ? | 02:59 |
| → csc` joined | 02:59 |
|
tswicegood
| hey guys - is there a line threshold for copy-and-paste to be detected? | 02:59 |
|
spearce
| might need to be at least 2 lines to avoid copying "\t}\n" all over the place. | 03:00 |
|
xenoterracide
| spearce: bzr: ERROR: unknown command "fast-export"... I have the 'fast-import' plugin installed and fast-export is a sub of that... any ideas? | 03:01 |
|
spearce
| no clue. i only briefly looked at it | 03:01 |
| → Fullmoon joined | 03:02 |
|
xenoterracide
| spearce: k | 03:03 |
|
tswicegood
| spearce: seems to be three actually... | 03:03 |
|
lu_zero
| xenoterracide old version of bzr? | 03:03 |
|
xenoterracide
| lu_zero: 1.3 | 03:04 |
|
| err... 1.1 | 03:04 |
|
| guess I forgot to run that update a few min AGO | 03:05 |
| → igorgue joined | 03:05 |
| ← phoenix24 left | 03:06 |
| ← KragenSitaker left | 03:09 |
| → KragenSitaker joined | 03:12 |
| ← david_koontz left | 03:15 |
|
wagle
| hrmm.. why does --shared mean completely different things for git-init and git-clone? | 03:18 |
|
spearce
| hysterical rasins | 03:18 |
| ← queso left | 03:18 |
|
spearce
| gah, i can't spell today | 03:19 |
|
| yea, its one of the warts in the ui | 03:19 |
| → panagos joined | 03:19 |
|
| halorgium wonders how to use git pickaxe | 03:20 |
|
dermoth
| Hi there. I'm trying to use git-svnimport and no matter what uri/path scheme I use all I get is a bunch of "Unrecognized path" errors for each rev. | 03:20 |
|
panagos
| how do i do an initial empty commit? i tried { git init; git commit -a; }; it didn't work | 03:20 |
| ← tswicegood left | 03:21 |
|
wagle
| why do you want that? | 03:21 |
|
panagos
| wagle: for completeness :) | 03:22 |
| ← Ramune left | 03:22 |
|
wagle
| you cant ever commit "nothing".. | 03:23 |
|
panagos
| wagle: i could do that with cogito though :| | 03:23 |
|
RandalSchwartz
| you didn't *create* the emptyness | 03:24 |
|
wagle
| i dunno what it mean after trying it myself, then thinking about it | 03:24 |
|
RandalSchwartz
| that was god's work. :) | 03:24 |
|
| you can only commit what you change. :) | 03:24 |
|
wagle
| means | 03:24 |
|
panagos
| so how did cogito create empty initial commits? | 03:25 |
|
wagle
| dunno | 03:25 |
|
RandalSchwartz
| and since cogito is dead, doesn't matter. | 03:25 |
|
| it probably did the primitive calls, bypassing the checks | 03:25 |
|
wagle
| a commit is a set of changes | 03:27 |
| → asdx joined | 03:29 |
|
iabervon
| cogito was before anything other than the primitive calls... | 03:33 |
|
spearce
| wagle: no, a commit is not a set of changes. its a tree snapshot and an optional message. | 03:33 |
|
iabervon
| Well, and references to zero or more parents. | 03:36 |
| ← a-priori left | 03:36 |
|
iabervon
| Incidentally, is there a good reason we have two commit object parsers in pretty.c, rather than just using parse_commit_header() whenever we need to parse a commit object? | 03:38 |
| → pergesu joined | 03:40 |
|
dermoth
| Geez, I finally managed to do an svnimport. Looks as though the path component doesn't work, so instead I used the full path for -T, -t and -b | 03:40 |
|
| now I gotta be patient as it doesn't look like it's gonna be finished by tomorow morning :) | 03:43 |
|
spearce
| iabervon: two? both in pretty.c ? | 03:43 |
|
papasi
| finally figured out how to use git to version control my home dir | 03:44 |
|
iabervon
| Yeah, parse_commit_header() and pp_header(). pp_header() is older and less clever, I think, but I don't think it's any more efficient. | 03:44 |
|
dermoth
| papasi, version control your home dir? | 03:45 |
|
spearce
| iabervon: then probably no good reason other than that nobody has cleaned this up yet. | 03:45 |
|
dermoth
| I hope you exclude .* | 03:45 |
|
papasi
| dermoth: something like this http://kitenet.net/~joey/svnhome/ | 03:45 |
|
| yes ii need to vc all the dotfiles | 03:46 |
|
| especially .emacs | 03:46 |
|
iabervon
| Okay. I'll probably do that sometime soon. | 03:46 |
|
papasi
| it's non obvious because i cannot use clone | 03:46 |
|
dermoth
| I use svn yo version-control my config files on my servers, but it's on a separate dir... | 03:47 |
|
iabervon
| Your .emacs isn't a symlink to working/dotfiles/.emacs? | 03:47 |
| → ilogger2 joined | 03:49 |
| → GyrosGeier joined | 03:49 |
| → pete__c joined | 03:49 |
| → timonator joined | 03:49 |
| → pasky joined | 03:49 |
| → vmiklos joined | 03:49 |
| → CIA-2 joined | 03:49 |
| → Amorphous joined | 03:49 |
| → ThunderChicken joined | 03:49 |
| → sverrej joined | 03:49 |
| → fearoffish joined | 03:49 |
| → Modius joined | 03:49 |
| → mitsuhiko joined | 03:49 |
| → jarod joined | 03:49 |
|
iabervon
| for i in *; if [ -f $i ]; then ln -s working/dotfiles/$i ~/.$i; fi | 03:50 |
| → IRSeekBot joined | 03:50 |
|
papasi
| is that a common practice? | 03:50 |
|
iabervon
| I don't know. I've been doing it for ages, and I know other people version control their dotfiles, but I haven't asked exactly how. | 03:51 |
|
papasi
| the only down side is that you need to keep the symlink in sync when you discover a new tool | 03:51 |
| → Hobbes joined | 03:51 |
| → offby1 joined | 03:52 |
|
papasi
| a new tool that creates its own dotfile | 03:52 |
|
iabervon
| For a lot of them, you want different ones on each machine, so you probably don't want to pick them up automatically anyway. | 03:53 |
|
papasi
| good point | 03:53 |
| → fred joined | 03:53 |
| → vlt joined | 03:53 |
| → telmich joined | 03:53 |
| → Cap_J_L_Picard joined | 03:53 |
| ← pasky left | 03:53 |
| ← pete__c left | 03:53 |
| ← vmiklos left | 03:53 |
| ← timonator left | 03:53 |
| ← GyrosGeier left | 03:53 |
| → reuss joined | 03:53 |
| → GyrosGeier joined | 03:53 |
| → pete__c joined | 03:53 |
| → pasky joined | 03:54 |
|
iabervon
| Looks like I've been doing it since Aug 9 2002. | 03:54 |
| → vmiklos joined | 03:54 |
|
iabervon
| But making symlinks didn't come until Feb 16, 2004. | 03:55 |
|
papasi
| i almost lost my svn repo (twice). so i finally take it up and convert everything to git | 03:55 |
|
| i think the only thiing i miss is checking out a submodule in svn - the git way is too complicated | 03:56 |
|
iabervon
| Yeah, I nearly lost my CVS repo sometime between 2005 and 2008. | 03:56 |
|
| Git's trying to do several tricky and clever things with submodules, and it's not quite easy yet. | 03:58 |
| → timonator joined | 03:58 |
|
papasi
| without easy access to sub module, i might need to end up like this guy | 03:58 |
|
| http://git.kitenet.net/ | 03:58 |
|
| creating tons of repo for little things | 03:59 |
|
offby1
| ah, Joey! | 03:59 |
|
| my inspiration. | 03:59 |
|
papasi
| it's another list of thing that i _dont_ want to manage | 03:59 |
|
| see, using svn i just have one repo with a directory containing everything. | 04:00 |
|
| iabervon: so you think git's submodule support will change in the future to make our lives easier? | 04:00 |
| → aLone joined | 04:00 |
|
iabervon
| Actually, I think that issue will be solved by url.*.insteadOf. | 04:01 |
| → jbunster joined | 04:01 |
|
iabervon
| You have a directory that contains all your little repos, and configure "url.<path>.insteadOf" to ":" | 04:02 |
|
papasi
| is this technique currently usable? | 04:03 |
|
iabervon
| Then you can clone ":something". | 04:03 |
|
| Except for clone, which is what you'd really want it for. | 04:04 |
|
| When builtin-clone lands (1.5.6, I expect), it'll actually be useable. | 04:04 |
| → kirindav_ joined | 04:07 |
|
iabervon
| One major point of git's submodules is that the supermodule specifies the particular commits of each submodule that go together, so you can make sure that the projects stay in sync wrt API changes and such. It's therefore no good for just collecting unrelated stuff, but the per-repository maintenance isn't a big deal for git anyway. | 04:08 |
| → jburd joined | 04:10 |
|
papasi
| yeah but the manual submodule maintenance is a big deal :) | 04:11 |
| ← kirindav_ left | 04:12 |
|
iabervon
| Hmm? Just don't use them like that. | 04:13 |
|
papasi
| so for now the only feasible way is like what joel did? | 04:14 |
|
iabervon
| Yeah, but that also works really well. | 04:15 |
|
papasi
| create tons of repos and remember the the exact path to clone a module? | 04:15 |
|
ec
| I'm getting a weird error when trying to get-rebase -i HEAD~10 | 04:15 |
|
| fatal: ref HEAD is not a symbolic ref -- Could not get HEAD | 04:15 |
|
iabervon
| Well, create tons of repos, and put them somewhere you can get a directory listing. | 04:16 |
|
| ec: does "git show HEAD" work? | 04:17 |
|
ec
| iabervon: Actaully, some other stuff was just weird, so I just removed the whole dir and re-checked out from upstream (I just pushed anwyay) | 04:17 |
|
spearce
| ec: you are on a detached HEAD. | 04:17 |
|
ec
| iabervon: thanks anyway lol | 04:17 |
|
| spearce: huh? | 04:17 |
|
spearce
| either upgrade git, or checkout a branch to start the rebase from. | 04:18 |
|
ec
| upgrade git? | 04:18 |
|
| I think I'm on the latest... wha? | 04:18 |
|
spearce
| are you on 1.5.5? i thought rebase -i was only recently fixed to run on detached heads, but that the fix was included in 1.5.5. | 04:19 |
|
ec
| Nah, sorry | 04:19 |
| → robinr joined | 04:19 |
|
ec
| 1.5.3.7 | 04:19 |
|
| I guess that's the latest macports has )-: | 04:19 |
|
| What's a detacahed head, anyway? | 04:19 |
|
| ec thinks that sounds bad d-: | 04:19 |
|
spearce
| you current state is just a commit, its not a branch. | 04:20 |
|
| this can happen if you do say `git checkout deadbeef...` or `git checkout v1.0` (where v1.0 is a tag) | 04:20 |
|
johnw
| MacPorts has 1.5.4.5 | 04:20 |
|
ec
| hmm | 04:20 |
|
spearce
| or if you are in the middle of an existing rebase | 04:20 |
|
johnw
| (for Leopard, that is) | 04:20 |
|
ec
| johnw: sudo port upgrade git-core #=> ---> Activating git-core 1.5.3.7_0+doc+svn; Error: Activating git-core 1.5.3.7_0 failed: Image error: git-core @1.5.3.7_0+doc+svn is already active. | 04:21 |
|
iabervon
| Or if you check out something like "origin", which I think is the most common. | 04:21 |
|
johnw
| ec: what does port info git-core say? I see: git-core 1.5.4.5, devel/git-core ... | 04:22 |
| → a-priori joined | 04:23 |
|
jbunster
| 0xdeadbeef :D | 04:23 |
|
ec
| Woah. | 04:24 |
|
| This project sure has one CONVOLUTED gitk graph. | 04:24 |
|
| I am so putting a screenshot of this on flickr. | 04:24 |
| ← robinr left | 04:24 |
|
ec
| http://flickr.com/photos/elliottcable/2422686718/ | 04:25 |
|
jbunster
| So, when uniting history using grafts and filter-branch ... any ideal way to mark the join point? | 04:25 |
|
ec
| Hahaha | 04:25 |
|
spearce
| ec: http://www.spearce.org/2007/07/difficult-gitk-graphs.html | 04:26 |
|
| wagle declares spearce the weiner! | 04:27 |
| → asdx_ joined | 04:27 |
| ← a-priori left | 04:27 |
|
ec
| spearce: lmao wow. | 04:28 |
|
iabervon
| Yeah, that's not convoluted, that's just repetitive. | 04:28 |
|
wagle
| though i've seen graphs witrh lots of crosses | 04:28 |
| → a-priori joined | 04:30 |
| → kirindav_ joined | 04:30 |
|
iabervon
| That graph always makes me think of weaving. | 04:32 |
|
ec
| Uh | 04:33 |
|
| I have a commit, my most recent commit, that removes a single file. | 04:33 |
|
| I have a commit, two commits before that, that works with files relating to the need to remove that file. | 04:33 |
|
| I have a merge-commit between those two. | 04:33 |
|
| Every time I try to git-rebase -i HEAD~10, so I can squash HEAD into HEAD^^, I get weird merge errors about random files from the 'middle' merge-commit | 04:34 |
|
wagle
| the world needs a 3d "flight simulator" viewer for the gitk graph.. | 04:34 |
| ← a-priori left | 04:34 |
|
ec
| wagle: agreed d-: | 04:34 |
|
| wagle: or a 'roller-coaster simulator' instead! | 04:34 |
|
johnw
| spearce: wow | 04:35 |
|
ec
| Anyway, does anybody know how I can merge those two commits? | 04:36 |
|
iabervon
| I'd do "git reset --hard HEAD~2", remove the file, "git commit --squash", and redo the merge. | 04:37 |
|
| Unless the merge was a mess of conflicts. | 04:37 |
|
johnw
| --squash? | 04:38 |
|
iabervon
| Er, --amend. | 04:38 |
|
ec
| is --squash different from --amend? | 04:38 |
|
| ah. | 04:38 |
|
iabervon
| Yes, --squash isn't really a commit option. :p | 04:38 |
|
| The commit you're trying to merge into is on the "first parent" side of the merge, right? | 04:39 |
| ← jbunster left | 04:39 |
|
ec
| Yep | 04:39 |
|
| Can I check if there is a merge 'going on'? | 04:40 |
|
| i.e. I just did a merge, and then manually fixed a conflict. | 04:40 |
|
| How would i know, if I came back at a random point of time now, that this was in the middle of a 'merge' commit? | 04:40 |
|
iabervon
| "git diff HEAD" would look really weird. | 04:41 |
|
wagle
| git-status tells you, i think | 04:41 |
|
ec
| Okay. What a convoluted little moment, but it's all cleared. | 04:42 |
|
xenoterracide
| http://trak3r.blogspot.com/2008/04/git-for-idiots-and-java-developers.html | 04:42 |
|
| lol love the title | 04:42 |
|
ec
| iabervon: So, why was the reversion necessary? Isn't this all what git-rebase -i is exactly for? | 04:42 |
|
iabervon
| rebasing past merges is not the easiest thing. | 04:43 |
| → priidu__ joined | 04:45 |
|
iabervon
| It's somewhat unclear as to whether you want to rebase the commits added to the history by the merge on top of the base or what. | 04:45 |
|
xenoterracide
| http://vim.pastey.net/85948 git import who should I be bugging the bzr repo owners? git? or the bzr-fast-export maintainer | 04:45 |
|
ec
| iabervon: nah, I don't want to deal with the merge at all - it was just an incidental child of the situation. If I hadn't merged in between the two, it would have been a simple git-commit --amend | 04:47 |
|
| iabervon: but since something happened between the two, I would have needed to do an interactive rebase. was just wondering why that wasn't working. | 04:47 |
|
iabervon
| It's that rebase doesn't know what to do with merges, because it's tricky. | 04:48 |
|
ec
| ah, so it's a special case with a merge in the middle. | 04:48 |
|
| sweet, thanks... | 04:48 |
|
iabervon
| Yeah. We'll figure it out in the fall sometime and probably make it nice. | 04:49 |
| → cartman joined | 04:53 |
| → shit_burger joined | 04:55 |
| → phoenix24 joined | 04:58 |
| → warthog9 joined | 04:59 |
| ← jburd left | 05:01 |
| ← priidu__ left | 05:03 |
| → stick joined | 05:03 |
| ← cartman left | 05:05 |
| ← tjafk2 left | 05:06 |
| → priidu__ joined | 05:06 |
| → Ramune joined | 05:10 |
| → pombreda joined | 05:17 |
| ← krawek left | 05:17 |
| → cousin_it joined | 05:19 |
| ← stick left | 05:20 |
| → stick joined | 05:20 |
| → codeFiend joined | 05:21 |
| ← stick left | 05:22 |
| → ckm joined | 05:28 |
| ← ckm left | 05:30 |
| → st1ck joined | 05:32 |
| ← st1ck left | 05:35 |
| → stick joined | 05:35 |
| → quik_ joined | 05:37 |
|
com4
| I'm trying to apply a patch i made with git-format-patch using git-am. The patch I'm trying to apply adds some new files, but git-am tells me "these files don't exist" Is there a way I can tell git-am to just make the files if they don't exist? | 05:40 |
| → johan-s joined | 05:41 |
| ← stick left | 05:44 |
| → stick joined | 05:45 |
| → eternaleye joined | 05:45 |
| → diacoti joined | 05:53 |
| → GarethAdams joined | 05:54 |
| → eetfunk joined | 05:55 |
| → eetfunk_ joined | 05:57 |
| ← eetfunk left | 05:57 |
| ← phoenix24 left | 05:58 |
| ← eetfunk_ left | 05:58 |
| → phoenix24_ joined | 05:58 |
| → eetfunk joined | 05:59 |
| ← eetfunk left | 06:02 |
| ← diacoti left | 06:08 |
| → eetfunk joined | 06:10 |
| → bousquet joined | 06:10 |
| ← eetfunk left | 06:11 |
| → namenlos joined | 06:13 |
| → berto- joined | 06:24 |
|
berto-
| i ran a git-clone on a repository and now want to make it bare. is there any way to make it bare after the fact? | 06:24 |
|
Pieter
| git config core.bare true | 06:26 |
| ← kirindav_ left | 06:26 |
|
Pieter
| and then just take the .git directory | 06:26 |
| → saintdev joined | 06:26 |
|
berto-
| Pieter: cool. So I did: "git config core.bare true"; rm -rf * | 06:28 |
|
| Pieter: ah, I can now simply rename .git to <whatever> and it no longer needs to be a hidden dir. thanks, by the way! | 06:29 |
| → _zack joined | 06:30 |
| ← johan-s left | 06:30 |
| → dsal joined | 06:34 |
| → anttih- joined | 06:35 |
| → garrin joined | 06:36 |
| → jburd joined | 06:38 |
| → panagos joined | 06:38 |
| ← asdx_ left | 06:43 |
| → kixxx joined | 06:46 |
| ← dsal left | 06:52 |
|
gitster
| might be a better idea to also set core.bare = true in .git/config (now project.git/config). | 06:56 |
| ← GarethAdams left | 06:57 |
| → devogon joined | 06:58 |
| → deavid joined | 06:58 |
| → phoenix24 joined | 06:58 |
| ← phoenix24_ left | 06:58 |
| → johnw joined | 06:59 |
| → xjrn joined | 07:10 |
| → cypher23 joined | 07:11 |
| ← aLone left | 07:11 |
| → FunkeeMonk joined | 07:12 |
| ← johnw left | 07:12 |
| → aLone joined | 07:16 |
| → mtkd joined | 07:18 |
| → johan-s joined | 07:21 |
| ← xjrn left | 07:25 |
| ← _zack left | 07:26 |
| → xjrn joined | 07:26 |
| → _zack joined | 07:27 |
| → charon joined | 07:30 |
| ← quik_ left | 07:31 |
| → FunnyMan3595 joined | 07:31 |
|
FunnyMan3595
| While trying to push: fatal: Unable to create temporary file: Permission denied | 07:32 |
|
| ... say what? | 07:32 |
| → ChrisMDP joined | 07:32 |
|
FunnyMan3595
| Plenty of free space. | 07:32 |
| ← ChrisMDP left | 07:33 |
| ← bousquet left | 07:33 |
|
FunnyMan3595
| Best guess is that there's an old temporary file somewhere that didn't get collected. Any idea where that'd be? | 07:33 |
| → leethal joined | 07:34 |
| → nud joined | 07:35 |
| ← codeFiend left | 07:41 |
| → GarethAdams joined | 07:43 |
| ← kixxx left | 07:43 |
| → kipras joined | 07:53 |
| → shaftyy joined | 07:55 |
| → rayvans joined | 07:55 |
| ← phoenix24 left | 07:58 |
| → phoenix24 joined | 07:59 |
| ← sverrej left | 08:00 |
| ← _zack left | 08:03 |
| → tjafk joined | 08:04 |
| → zedr0n joined | 08:05 |
|
ssb
| is "git-repack -a -d -f" a subset of "git-gc --aggressive" ? | 08:09 |
| → ChrisMDP joined | 08:12 |
|
| FunnyMan3595 wanders off, noting that git-update-index appears to have mysteriously fixed it. | 08:13 |
| ← FunnyMan3595 left | 08:13 |
| → imyousuf joined | 08:14 |
|
ssb
| looks so, right. | 08:15 |
| ← ChrisMDP left | 08:19 |
| ← yann left | 08:22 |
| → _zack joined | 08:23 |
| → offby1` joined | 08:30 |
| → rubydiamond joined | 08:31 |
| → kristoffer joined | 08:34 |
| → sverrej joined | 08:43 |
| ← offby1 left | 08:44 |
| → cedricv joined | 08:54 |
| ← phoenix24 left | 08:59 |
| ← zedr0n left | 09:00 |
| → mithro joined | 09:02 |
| → Tv joined | 09:03 |
|
pergesu
| if I delete a branch, can I "undelete" it? | 09:05 |
|
Pieter
| yes | 09:05 |
|
| if you're lucky you can find the ref in `git reflog` | 09:05 |
|
pergesu
| and git co a new branch, using that sha? | 09:06 |
| → phoenix24 joined | 09:06 |
|
Pieter
| yes | 09:06 |
|
cedricv
| hey all! how could I do the equivalent of "git log -p" only for a given author ? | 09:08 |
|
pergesu
| how can I find it in the reflog? is there an option I can use that will show the branch? I can't find one | 09:08 |
|
Pieter
| cedricv: git log -p --author=author | 09:09 |
|
| pergesu: there might be something that says "switched to <branchname>", search for that | 09:09 |
|
cedricv
| Pieter: ooh stupid me.. how could i missed that in the man :p sorry | 09:10 |
| → ebel joined | 09:10 |
|
pergesu
| Pieter: ah, I see it now. "Reflog message: checkout: moving from mytest to master" | 09:10 |
|
| cool, thank you | 09:10 |
| → [tla] joined | 09:12 |
| ← leethal left | 09:13 |
| → kixxx joined | 09:14 |
|
johan-s
| what should I tell people wanting to run git on windows? msysgit? | 09:15 |
|
Pieter
| probably, unless they run cygwin already | 09:16 |
|
Ramune
| iirc, cygwin's installer has msysgit in there already. | 09:17 |
|
Pieter
| that seems unlikely, as msysgit ships with it's own version of perl etc | 09:17 |
|
[tla]
| "git status" shows currently staged files (I think?). I want to commit a subset of those files so I run "git commit -o <path1> <path2> <pathN>" but git complains "error: pathspec '<truncated-path>' did not match any file(s) known to git.". This is not a valid use for commit? | 09:18 |
|
Pieter
| what does -o do? | 09:20 |
|
[tla]
| According to the manpage "--only Make a commit only from the paths specified on the command line" - it can be omitted as it is default. | 09:21 |
| ← rubydiamond left | 09:22 |
| → rubydiamond joined | 09:22 |
| → fhobia joined | 09:22 |
|
[tla]
| Ah, I think I need to use "git commit -- -o <path1> ... etc" | 09:23 |
|
| The -- seems important | 09:23 |
|
Pieter
| that specifies paths.. you can't puth -o after the --, but you probably shouldn't use -o at all | 09:24 |
|
[tla]
| Is that the right thing to do anyway? I have a load of modifications but I want to bundle them into groups with common commit messages. So I want to commit file1, file3, file5 in one commit then file2, file4 in the next? | 09:25 |
|
Pieter
| sure | 09:26 |
| ← rayvans left | 09:27 |
|
[tla]
| Pieter: ty 4 help :) | 09:31 |
| → BabelO joined | 09:32 |
| ← kixxx left | 09:33 |
|
pergesu
| can you show the content of a commit, or does it only make sense to diff two commits? | 09:35 |
|
Pieter
| pergesu: with git log -p, you can see the commit diffed against its parent(s) | 09:35 |
| ← namenlos left | 09:48 |
| ← kristoffer left | 09:52 |
| ← adante left | 09:55 |
| → proxie_ joined | 09:58 |
| ← deavid left | 09:59 |
| → proxie__ joined | 10:01 |
| ← mithro left | 10:06 |
| ← berto- left | 10:06 |
| → phoenix24_ joined | 10:06 |
| ← phoenix24 left | 10:07 |
| → chris2 joined | 10:12 |
| ← proxie_ left | 10:15 |
| → Sho_ joined | 10:22 |
| → adante joined | 10:24 |
|
mtkd
| if I've deleted a lot of files, is there a way I can quickly remove them all from the index? | 10:27 |
|
| (like using git add . to add all changed files) | 10:27 |
|
Pieter
| git add -u perhaps | 10:28 |
|
jengelh
| call git rm instead of rm :p | 10:30 |
| → frodo joined | 10:32 |
| → Husio joined | 10:34 |
| jburd → rabbibulla | 10:36 |
| ← Tv left | 10:37 |
|
mtkd
| jengelh, git rm removes all files though | 10:39 |
|
context
| uhh no | 10:39 |
|
| it removes the files you tell it to | 10:39 |
|
tpope
| what use would a command be that deleted everyting? | 10:39 |
| ← fhobia left | 10:40 |
|
Pieter
| space efficiency ;) | 10:40 |
| → swombat joined | 10:46 |
|
swombat
| hmm | 10:46 |
|
| "git revert HEAD application.rb" << doesn't work. why not? | 10:46 |
| → d0k joined | 10:47 |
|
Mikachu
| at least pretend you read the man page first | 10:47 |
|
context
| git checkout ? | 10:48 |
|
swombat
| i read the cheat sheet :-) | 10:48 |
|
| aah | 10:48 |
|
| git checkout. ok, thank you :-) | 10:48 |
|
| swombat apologises for utter n00bness on this one. | 10:48 |
|
| swombat will pretend he read the man page next time :-) | 10:48 |
| → leethal joined | 10:52 |
| ← rabbibulla left | 10:56 |
| → phoenix24 joined | 11:07 |
| ← phoenix24_ left | 11:07 |
| → _FrnchFrgg_ joined | 11:07 |
| → nicholas_ joined | 11:08 |
| ← johan-s left | 11:08 |
| → Beket joined | 11:10 |
| → bentob0x joined | 11:14 |
| → mithro joined | 11:14 |
| ← garrin left | 11:16 |
| → deavid joined | 11:26 |
| ← imyousuf left | 11:41 |
| → Rasi joined | 11:43 |
|
Rasi
| hi | 11:43 |
|
| just a quick question, because google is somewhat unfriendly to me | 11:43 |
|
| how can i simply clone a branch of some git repo? | 11:43 |
|
jengelh
| you always clone it all | 11:44 |
|
Rasi
| hmmm | 11:44 |
|
Mikachu
| you can use init + fetch to get only one branch, if it's a very large repo / low bandwidth | 11:44 |
|
Rasi
| this is a small one | 11:45 |
|
jengelh
| fetch fetches repos too, does not it | 11:45 |
|
Mikachu
| if you're confused about remote branches, see git branch -r | 11:45 |
|
Rasi
| but when i clone the git i only get the main branhc | 11:45 |
|
Mikachu
| and git checkout -b foo origin/foo | 11:45 |
|
jengelh
| Rasi: you get it all | 11:45 |
|
Mikachu
| jengelh: if you say git fetch origin foo, it will only fetch the data for the foo branch | 11:46 |
|
Rasi
| jengelh: i checked.. there is only the main branch.. and its easy to check, because its very small :) | 11:46 |
|
jengelh
| git branch -a | 11:46 |
|
| Mikachu feels ignored | 11:46 |
|
| jengelh pats Mikachu | 11:46 |
|
| Mikachu purrs | 11:46 |
| ← shaftyy left | 11:48 |
| ← aLone left | 11:48 |
| → warlock_mza joined | 11:50 |
| ← frodo left | 12:03 |
| → QuercusMax joined | 12:04 |
| ← Beket left | 12:05 |
| → mcella joined | 12:06 |
| ← phoenix24 left | 12:07 |
| ← sverrej left | 12:11 |
| → Ademan_ joined | 12:13 |
| → sverrej joined | 12:14 |
| → markkalderon joined | 12:21 |
| → a-priori joined | 12:24 |
| ← deavid left | 12:24 |
| ← QuercusMax left | 12:27 |
| → lcapitulino joined | 12:37 |
| → aLone joined | 12:40 |
| → a-priori_ joined | 12:44 |
| → a-priori__ joined | 12:48 |
| ← FunkeeMonk left | 12:51 |
| → deavid joined | 12:53 |
| ← nud left | 12:54 |
| → maddox joined | 12:58 |
| ← rubydiamond left | 12:58 |
| → nud joined | 12:58 |
| ← aLone left | 12:59 |
| ← a-priori left | 13:00 |
| → chrisb joined | 13:00 |
| → a-priori joined | 13:02 |
| → queso joined | 13:02 |
| ← a-priori_ left | 13:02 |
| → a-priori_ joined | 13:04 |
| → jlilly_ joined | 13:06 |
| → shoe joined | 13:06 |
| → a-priori___ joined | 13:07 |
| → meyering joined | 13:07 |
| ← a-priori__ left | 13:08 |
| → ironfroggy joined | 13:08 |
| ← Ademan_ left | 13:08 |
| → Ademan_ joined | 13:11 |
| ← meyering left | 13:11 |
| → meyering joined | 13:12 |
| → a-priori__ joined | 13:13 |
| ← chrisb left | 13:16 |
| ← chris2 left | 13:17 |
| → a-priori____ joined | 13:18 |
| → beeble joined | 13:19 |
| ← a-priori left | 13:20 |
| → chris2 joined | 13:21 |
| → Sigurd joined | 13:21 |
| ← a-priori_ left | 13:22 |
| ← chris2 left | 13:22 |
| ← Sigurd left | 13:22 |
| → a-priori joined | 13:22 |
| → chris2 joined | 13:23 |
| → namenlos joined | 13:26 |
| → a-priori_ joined | 13:27 |
| ← a-priori___ left | 13:28 |
| → aroben joined | 13:29 |
| → Aeternus joined | 13:29 |
| → a-priori___ joined | 13:32 |
| ← a-priori__ left | 13:33 |
| ← Aeternus left | 13:34 |
| → Aeternus_ joined | 13:34 |
| → threeve joined | 13:37 |
| → myrizio joined | 13:39 |
| → vbgunz joined | 13:39 |
| ← a-priori____ left | 13:40 |
| → a-priori__ joined | 13:40 |
| ← a-priori left | 13:42 |
| ← proxie__ left | 13:44 |
| → blastura joined | 13:46 |
| ← a-priori_ left | 13:47 |
| → krawek joined | 13:47 |
| ← a-priori__ left | 13:47 |
| → cannonball joined | 13:50 |
| → zlin joined | 13:50 |
| → a-priori joined | 13:51 |
| ← deavid left | 13:53 |
| ← a-priori___ left | 13:55 |
| → bartman joined | 13:56 |
| → peeja_ joined | 13:59 |
| → chrisb joined | 14:02 |
| → jtoy joined | 14:04 |
|
jtoy
| how can i search the repo for old code that used to be used? | 14:06 |
| ← leethal left | 14:11 |
| → flazz joined | 14:11 |
|
Pieter
| You'll have to be less abstract for an answer to that | 14:12 |
|
[tla]
| Is there a way to "git archive" the current branch including the staged files that are not committed? The use case is while developing I want to cut a tar and try it out on the destination server without having to commit on the development server. | 14:12 |
|
Pieter
| git commit -m "temp" && git archive && git reset HEAD^ | 14:13 |
| → Tv joined | 14:13 |
| → mdp79 joined | 14:13 |
|
jtoy
| haha, I just laughed very hard Pieter | 14:13 |
|
| [tla] trundles off to read what that does ;) | 14:13 |
|
mdp79
| sorry, new to git, is there a way that I can list all the files in my current working git repo and the changes to each file, I use git-diff but it only gives me back the changes I've made. Basically i just want a list of the files and whose modified each one and when. | 14:15 |
|
[tla]
| so HEAD^ is the commit before the last one? Hmm, commit, archive, roll back :) | 14:15 |
|
jtoy
| Pieter: I am trying to find a string X that appeard anywhere | 14:15 |
|
| I tried git log -S'X' but that only shows the commit? | 14:16 |
|
[tla]
| mdp79: git blame? | 14:16 |
| ← xjrn left | 14:16 |
|
Pieter
| jtoy: git log -p -S? | 14:16 |
|
jtoy
| nice! | 14:17 |
| → a-priori_ joined | 14:17 |
| → QuercusMax joined | 14:18 |
|
jtoy
| what does the -p ? I dont have man pages | 14:18 |
|
mdp79
| tla: yeah but I just want a list of each file and who modified it, not a line by line rundown for a specific file, basically the tree with each file and who touched it | 14:19 |
|
| Ok, basically I'm looking to list files the way github.com does, file name - date modified- and author | 14:20 |
|
| I'm sure it's easy, but that I'm just missing it | 14:20 |
| ← chris2 left | 14:21 |
|
Pieter
| jtoy: it gives a patch with the log | 14:22 |
|
Tv
| mdp79: you would be wrong in assuming that; even github disables that display on larger subdirs, for performance reasons | 14:23 |
|
mdp79
| TV, hah, ok so they're doing it file by file. wow | 14:23 |
|
| Tv: thanks for the clearing this up for me, I was thinking it was just a one liner | 14:24 |
| → kumbayo joined | 14:25 |
| → a-priori__ joined | 14:26 |
| → FunkeeMonk joined | 14:28 |
| ← priidu__ left | 14:30 |
| → priidu__ joined | 14:31 |
| ← a-priori left | 14:32 |
| ← priidu__ left | 14:33 |
| → johnreilly joined | 14:33 |
| → priidu__ joined | 14:34 |
| → EmilMedve joined | 14:37 |
| → a-priori joined | 14:38 |
| ← a-priori_ left | 14:42 |
| → is_null joined | 14:45 |
| → a-priori_ joined | 14:45 |
|
jtoy
| is there a way to not paginate teh results from git log -s ? | 14:46 |
|
tpope
| git --no-pager log -s | 14:47 |
| → a-priori___ joined | 14:49 |
| ← mdp79 left | 14:50 |
| → lydgate joined | 14:54 |
| → agib joined | 14:54 |
| → yec joined | 14:55 |
| → tommorris joined | 14:56 |
| → kennethkalmer joined | 14:59 |
| ← a-priori__ left | 14:59 |
| ← namenlos left | 15:01 |
| ← a-priori left | 15:01 |
| → namenlos joined | 15:01 |
| ← namenlos left | 15:01 |
| → namenlos joined | 15:02 |
| → kewark joined | 15:03 |
| → dbtid joined | 15:04 |
| → pdherbemont joined | 15:05 |
|
dbtid
| hello; i've misplaced my notes :/ -- i want to update my database to the latest 2.6.25 | 15:05 |
|
| i tried git fetch v2.6.25 | 15:05 |
|
| git didn't like that | 15:05 |
| ← a-priori_ left | 15:06 |
|
Pieter
| git fetch; git merge 1.6.25 | 15:06 |
|
| or rebase, if you want to da that | 15:06 |
|
dbtid
| how does git fetch know to pull the latest? | 15:06 |
|
Pieter
| it fetches everything on the remote | 15:07 |
|
dbtid
| i see | 15:07 |
|
Pieter
| so also the tags | 15:07 |
| → a-priori joined | 15:08 |
| → charon_ joined | 15:09 |
| → bobesponja joined | 15:10 |
| ← charon left | 15:10 |
| charon_ → charon | 15:10 |
|
dbtid
| git diff says there's no difference between one of my files and the one in the database, but it refuses to do the merge | 15:11 |
|
| what did i do wrong? | 15:11 |
|
kelvie_
| dbtid: I just find it does that sometimes... just add it | 15:12 |
|
dbtid
| thanks | 15:12 |
| → jpeeler joined | 15:12 |
|
dbtid
| says it would be overwritten by merge | 15:12 |
|
kelvie_
| though it's likely a bug.. if you can reproduce it (and if your code is releasable :o) I'd post it to the list | 15:12 |
|
| oh that's different | 15:12 |
|
dbtid
| Entry 'X' would be overwritten by merge. Cannot merge. | 15:13 |
|
queso
| how do I specify a cherry pick from another remote? | 15:13 |
|
Pieter
| queso: first fetch the remote repository, then cherry-pick the sha | 15:13 |
|
| dbtid: perhaps you don't track that file, while the remote does? | 15:13 |
|
dbtid
| since they're the same, how do i tell git to overwrite it anyway? | 15:14 |
|
queso
| so it figures out the commit it wants based on all the local sha's, eh? | 15:14 |
| ← panagos left | 15:14 |
| → a-priori_ joined | 15:14 |
| → pgssgp joined | 15:15 |
|
Pieter
| queso: you can only cherry-pick local commits, so you have to fetch them first | 15:16 |
|
queso
| do I need to "git fetch" or "git fetch remote"? | 15:16 |
|
Pieter
| git fetch remote, if the remote isn't specified as origin | 15:16 |
|
queso
| yeah | 15:17 |
| ← kennethkalmer left | 15:18 |
|
dbtid
| Pieter: how can i force the copy that is in the database over the file that's in my directory? | 15:19 |
|
| git diff says they're the same. | 15:19 |
| → a-priori__ joined | 15:19 |
| ← krawek left | 15:19 |
|
Pieter
| dbtid: if you're not tracking it currently, just delete it on your side | 15:20 |
|
| and then merge | 15:20 |
|
dbtid
| ok, how do i know if i'm tracking it? | 15:20 |
|
| i don't recall it as being one i care about | 15:21 |
| → rudi joined | 15:21 |
|
Pieter
| dbtid: what does git status path/to/file say? | 15:21 |
|
dbtid
| says i modified it... | 15:22 |
|
Pieter
| then you'll have to commit that first | 15:22 |
|
| or reset it | 15:22 |
|
dbtid
| why doesn't git diff tell me it's different? | 15:23 |
|
| i did | 15:23 |
|
Pieter
| because you added it? | 15:23 |
|
jengelh
| git diff --cached? | 15:23 |
|
Pieter
| try git diff --cached | 15:23 |
|
dbtid
| git diff p/t/f ? | 15:23 |
| ← Rasi left | 15:23 |
|
jengelh
| ptf? | 15:23 |
|
dbtid
| lots of changes | 15:23 |
|
| if i commit, i'm only committing to my local database, right? | 15:23 |
|
Pieter
| yes | 15:24 |
|
jengelh
| you are always only committing to local | 15:24 |
| ← rudi left | 15:24 |
|
Pieter
| oh, that's what you mean by database.. I was wondering about that | 15:24 |
| mithro → [tp]mithro | 15:24 |
|
dbtid
| sorry | 15:24 |
|
Pieter
| you should probably use the term 'repository' or so | 15:24 |
|
dbtid
| ok | 15:24 |
|
| someone had used the term 'object database' | 15:24 |
|
| so i shortened it; sorry | 15:24 |
|
jengelh
| repo is the short name | 15:25 |
|
Pieter
| :) the object database is only part of your repository | 15:25 |
|
dbtid
| ah | 15:25 |
| → tvachon joined | 15:25 |
|
dbtid
| git merge v2.6.25 happy chunking away now | 15:25 |
| → rayvans joined | 15:25 |
| → a-priori____ joined | 15:26 |
|
dbtid
| worked fine | 15:26 |
|
| thanks | 15:26 |
| ← markkalderon left | 15:28 |
| ← a-priori left | 15:28 |
| → vbabiy-laptop joined | 15:28 |
| ← a-priori___ left | 15:29 |
| → a-priori joined | 15:30 |
| → leethal joined | 15:31 |
|
queso
| is there a way to cherry pick only part of a commit? | 15:33 |
|
jengelh
| you only get the full cherry. otherwise, uh, do something like lemon? :D | 15:34 |
|
Pieter
| git cherry-pick -n | 15:34 |
|
| and then just commit a part | 15:34 |
| ← a-priori_ left | 15:35 |
| → tvachon_ joined | 15:36 |
| ← tvachon left | 15:36 |
| ← kumbayo left | 15:40 |
| [tp]mithro → tp_mithro | 15:41 |
| tp_mithro → mithro | 15:41 |
| ← mithro left | 15:41 |
| → mithro joined | 15:42 |
| mithro → tp_mithro | 15:44 |
| tp_mithro → mithro | 15:44 |
| ← mithro left | 15:44 |
| → mithro joined | 15:45 |
| ← a-priori__ left | 15:45 |
| mithro → tp_mithro | 15:46 |
| ← a-priori____ left | 15:46 |
| tp_mithro → mithro | 15:46 |
| → mxNet joined | 15:46 |
| mithro → tp_mithro | 15:46 |
| → a-priori_ joined | 15:47 |
| → ruphy joined | 15:49 |
|
mxNet
| hi guys. i am a little new, been working with basic svn features before. question about branching. so i create a branch, make changes in there.. then switch to master, and make changes there. but the files on filesystem have my other branch changes in them. i am trying to understand - how am i supposed to jump between branches if the my files keep all the changes together? | 15:51 |
|
beeble
| commit them | 15:52 |
| → a-priori__ joined | 15:52 |
| ← dbtid left | 15:52 |
|
cedricv
| or stash them (if you want to keep your changes but commit later) | 15:52 |
| ← jtoy left | 15:52 |
|
mxNet
| beeble: cedricv: so if i commit changes in branch B, then just switch to branch A - i will see my files the wya they were before changes in B? | 15:53 |
|
cedricv
| yes | 15:53 |
|
beeble
| jes | 15:53 |
|
| yes | 15:53 |
|
mxNet
| thanks! | 15:54 |
|
Ilari
| mxNet: Not carrying over the uncommitted changes would be destructive. | 15:54 |
| → jtoy joined | 15:55 |
|
mxNet
| Ilari: you mean, if I neither stash nor commit changes in branch B - branch A will be affected too? but once I do either of those - branch A will go back to normal? | 15:56 |
|
| Ilari: this is a little confusing, since i only have one set of files to work with, and switching branches doesn't actually switch the set of files in my working dir | 15:57 |
| ← kipras left | 15:57 |
|
mxNet
| so when i switch branch, i don't get what's happening | 15:57 |
|
threeve
| mxNet: the files *will* change if the branches are different | 15:58 |
|
Ilari
| mxNet: Consider what would happen if it just overwrote all files on checkout? | 15:58 |
| → a-priori___ joined | 15:58 |
|
beeble
| branch A is never abnormal, your changes from the WIP get merged into the other branch if you switch | 15:58 |
|
Pieter
| anyone ever created a hook that compiles latex documents and puts them somewhere after an update? | 15:59 |
|
Ilari
| mxNet: And the 'carry-over' behaviour does not affect either branch. It affects working tree and staging area only. | 15:59 |
| → janm joined | 15:59 |
| → Morphous joined | 16:01 |
|
mxNet
| threeve: beeble: Ilari: i have myFile.txt in master branch. I created a branch "test" , switched to it, and added //foo to myFile.txt. I did nothing else. Then I switch back to master branch - and //foo should not be in the file anymore? is that the case? | 16:01 |
|
threeve
| mxNet: no, you first need to commit the changes to myFile.txt. They are not in the branch until you commit, only in the working tree | 16:02 |
|
beeble
| only if you commited it of put it on the stash | 16:02 |
|
mxNet
| threeve: and working tree is shared among branches, right? | 16:02 |
|
| there's only one working tree in other words | 16:03 |
|
threeve
| mxNet: right, there is only one working tree | 16:03 |
|
Ilari
| mxNet: Yes, staging area and working tree are shared. | 16:03 |
|
mxNet
| adding stuff to index is shared too, got it | 16:03 |
|
threeve
| that is updated as you switch between branches, do pulls, merge, rebase, commit, etc | 16:03 |
| → donspaulding joined | 16:03 |
|
mxNet
| threeve: i see | 16:03 |
| tvachon_ → tvachon | 16:04 |
|
mxNet
| thank you, i think it's clear now | 16:04 |
| ← janm left | 16:05 |
| ← a-priori_ left | 16:05 |
|
donspaulding
| Hi all, I'm new to git, have used svn, and I'm feeling some pain trying to map the old way I did things in svn to git. | 16:05 |
|
beeble
| just forget them ;) | 16:06 |
|
donspaulding
| http://git.or.cz/course/svn.html has been a good starting point, but it tells me not to push to a remote that I've cloned elsewhere | 16:06 |
| ← a-priori left | 16:06 |
|
beeble
| you should only push into bare repos | 16:07 |
|
donspaulding
| what's a "bare repo"? | 16:07 |
|
beeble
| its a preository without a working tree | 16:07 |
| → codeFiend joined | 16:07 |
|
donspaulding
| so like svn export? | 16:07 |
|
Ilari
| donspaulding: Exactly the opposite? | 16:08 |
| ← codeFiend left | 16:08 |
|
donspaulding
| right, just realized that | 16:08 |
| → a-priori joined | 16:09 |
| ← namenlos left | 16:09 |
| → janm joined | 16:09 |
| ← blastura left | 16:11 |
| → m3thos joined | 16:11 |
| ← a-priori__ left | 16:13 |
| → gavinstark joined | 16:14 |
|
m3thos
| hi there, is there a channel for git-svn | 16:15 |
|
| I'm using git-svn and having some difficulties | 16:15 |
|
Mikachu
| no, but you can ask here | 16:16 |
| ← Amorphous left | 16:17 |
| ← bobesponja left | 16:19 |
| → lamont joined | 16:19 |
| ← charon left | 16:20 |
|
mxNet
| beeble: you said "you should only push into bare repos"... what do you do with non-bare ones? | 16:20 |
|
| beeble: i have repo on github and another local one | 16:21 |
|
beeble
| that on github is a bare | 16:21 |
|
mxNet
| beeble: ah , wait, got it | 16:21 |
|
beeble
| in non bare you should just pull and never push | 16:21 |
|
| as in pull from other repos not push into non bare | 16:22 |
|
mxNet
| beeble: but I can push from my local non-bare into github's bare. i see. | 16:22 |
|
beeble
| yes | 16:22 |
|
mxNet
| great | 16:23 |
| ← Modius left | 16:23 |
| → Modius joined | 16:24 |
| ← ruphy left | 16:24 |
| ← a-priori___ left | 16:24 |
| ← pombreda left | 16:25 |
| → pombreda joined | 16:26 |
| ← sbeyer left | 16:26 |
| ← nud left | 16:26 |
| → sbeyer joined | 16:26 |
|
Ilari
| mxNet: Things non-bare repos are used for: making new commits, doing merges, rebasing commits. And of course you can copy commits from other accessable repositories. | 16:26 |
| ← jtoy left | 16:27 |
| → jamesjb joined | 16:28 |
| → kynde joined | 16:28 |
| → axiom joined | 16:28 |
|
mxNet
| Ilari: i see | 16:28 |
| axiom → majoh | 16:28 |
| → ferdy joined | 16:28 |
|
mxNet
| Ilari: similar to thinking of non-bare as client+server, and bare - just server | 16:28 |
| → ndim joined | 16:28 |
|
Ilari
| mxNet: Actually, non-bare as client. | 16:29 |
|
mxNet
| Ilari: client+server. since you can push/pull from each other | 16:29 |
|
| Ilari: and it's practiced a lot | 16:29 |
| → schacon_ joined | 16:30 |
|
Ilari
| mxNet: Yes, you can push into non-bare repo, but it is best avoided if you don't understand the implications. The same goes for offering non-bare repos for fetch/pull. | 16:30 |
| ← leethal left | 16:32 |
|
mxNet
| Ilari: wait, but what about linus speech and the whole distributed approach, the whole "pulling from anyone you like" and "network of trust". github is just a hub for those not on a network. It seems quite natural to exchange between non-bares both ways. | 16:32 |
|
donspaulding
| if a bare repo is just git's metadata, and that's what I push to from my laptop, and pull from on my server, how do the files get transferred? | 16:32 |
| → Mikachu joined | 16:32 |
| → dsaxena joined | 16:32 |
|
Tv
| donspaulding: um, that question seems to be based on flawed premises | 16:33 |
|
| donspaulding: try this: http://eagain.net/articles/git-for-computer-scientists/ | 16:33 |
| → leethal joined | 16:33 |
|
donspaulding
| will I be able to read that? I'm not a computer scientist :-P | 16:34 |
| → Eridius joined | 16:35 |
| → mario_ joined | 16:35 |
|
Ilari
| mxNet: Fetching from non-bare repos can be bad because you should have buffer to fix mistakes. Pushing to them is bad because of what happens if you hit HEAD: | 16:35 |
| ← a-priori left | 16:35 |
|
mxNet
| i see | 16:35 |
| mario_ → pygi | 16:36 |
|
Ilari
| mxNet: The git standard workflow is everybody to have two repos, non-bare one for creating commits and bare one for publishing them. | 16:36 |
| → vbabiy-laptop_ joined | 16:40 |
| → halfline joined | 16:40 |
|
pasky
| donspaulding: bare repo is not just git's metadata, but git's data ) | 16:40 |
|
| only the working tree is missing | 16:40 |
| ← GarethAdams left | 16:43 |
| → siyb joined | 16:43 |
| ← vbabiy-laptop left | 16:43 |
| ← ndim left | 16:43 |
| → ndim joined | 16:43 |
|
donspaulding
| right, it's everything but my actual code, right? we're just arguing definitions then, anything git's storing that isn't my code, I call "metadata" | 16:43 |
|
siyb
| how do i remove a tag from a specific commit, i tried: git tag -d sometag HASH but somehow it does not work as expected | 16:44 |
|
Ilari
| donspaulding: Plus staging area is missing. | 16:44 |
| ← schacon_ left | 16:44 |
|
Ilari
| siyb: 'git tag -d sometag'? | 16:44 |
| → johannes joined | 16:44 |
|
siyb
| Ilari: it tells me that the tag i want to delete can not be found | 16:44 |
| → adante_ joined | 16:45 |
|
Mikachu
| then you're done | 16:45 |
|
siyb
| although it is defiantly there | 16:45 |
|
Mikachu
| you tried to delete two tags, "sometag" and "HASH", one succeeded and the other did not | 16:45 |
|
| is my guess | 16:45 |
| → jaalto`` joined | 16:45 |
|
siyb
| ah ok | 16:46 |
|
| thanks | 16:46 |
| ← eternaleye left | 16:46 |
| ← ndim left | 16:47 |
| → ndim joined | 16:47 |
| → _jarod joined | 16:47 |
| → ricky joined | 16:47 |
| ← adante left | 16:47 |
| adante_ → adante | 16:47 |
| ← jarod left | 16:49 |
| _jarod → jarod | 16:49 |
| → rphillip1 joined | 16:51 |
| ← ndim left | 16:52 |
| → ndim joined | 16:52 |
| ← siyb left | 16:57 |
| ← warlock_mza left | 16:59 |
| → shaftyy joined | 17:01 |
| → Sigurd joined | 17:04 |
| ← _zack left | 17:05 |
| ← cedricv left | 17:06 |
| ← FunkeeMonk left | 17:07 |
| ← ebel left | 17:07 |
| → Six_oneone joined | 17:13 |
| → _graham_ joined | 17:16 |
| → booyah joined | 17:16 |
| ← pombreda left | 17:16 |
|
booyah
| is anyone here using git to store dotfiles, and if so, what does your directory structure look like. Do you have one subfolder for the repo and another for a working copy of the files? | 17:18 |
|
| or can you have one location for both? | 17:18 |
| → timocratic joined | 17:18 |
|
tpope
| well, you could run git init directly in your home dir, then use a monster .gitignore | 17:19 |
|
| you could have a directory for your config files and then symlink into it | 17:19 |
| ← vbabiy-laptop_ left | 17:19 |
| → roylee17 joined | 17:21 |
|
broonie
| booyah: google for etckeeper, IIRC. | 17:21 |
|
booyah
| I'm inclined to have a directory for the config files, say $HOME/config, and create symbolic links. Can I create the repo in $HOME/config AND use the files in the folder directly, or do I need to checkout a workign copy. | 17:21 |
|
| oh broonie, I'll do that now, thanks | 17:21 |
| → krunk- joined | 17:22 |
|
tpope
| booyah: a repo has a working directory by default | 17:22 |
|
| you don't need to do anything special | 17:22 |
|
| etckeeper seems neat | 17:23 |
| ← Plouj left | 17:23 |
|
roylee17
| Is there a canned git command or option to revert "a single file" of a commit? | 17:24 |
| → angasule_ joined | 17:24 |
|
broonie
| roylee17: git checkout HEAD <file>? | 17:25 |
| → amfwrk joined | 17:25 |
| ← bartman left | 17:26 |
| → eikonos joined | 17:26 |
|
roylee17
| broonie: checkout <ref> <file> would lost the changes commited after that <ref> | 17:27 |
|
broonie
| So you want to undo the changes in some specific older commit rather than to revert to a specific version? | 17:30 |
|
roylee17
| I currently do this by 'git revert commit_A' to revert whole commit and 'git checkout HEAD <files_I_don't_want_to_revert>' | 17:30 |
|
| yes | 17:30 |
| → bartman joined | 17:30 |
|
roylee17
| I wonder if there exists a canned command or option to do the same thing? | 17:30 |
| → _zack joined | 17:32 |
| ← aroben left | 17:36 |
| ← QuercusMax left | 17:37 |
| → QuercusMax joined | 17:37 |
| → pombreda joined | 17:37 |
| ← booyah left | 17:41 |
| ← _graham_ left | 17:44 |
| → _graham_ joined | 17:44 |
| → glommer joined | 17:46 |
| → aroben joined | 17:48 |
| → codeFiend joined | 17:51 |
| → Illocution joined | 17:52 |
| → Modius_ joined | 17:54 |
| → spearce joined | 17:56 |
| ← codeFiend left | 17:56 |
| ← _graham_ left | 17:56 |
| ← adante left | 17:56 |
| ← Eridius left | 17:56 |
| ← sbeyer left | 17:56 |
| ← Modius left | 17:56 |
| ← tp_mithro left | 17:56 |
| ← gavinstark left | 17:56 |
| spearce → git_spearce | 17:56 |
| yec → student_yec | 17:57 |
| → sbeyer joined | 17:57 |
| → blackdaemon joined | 17:58 |
| → zeom joined | 17:59 |
| → many joined | 17:59 |
| ← Illocution left | 17:59 |
| → tp_mithro joined | 17:59 |
| → adante joined | 18:00 |
| → coopsh joined | 18:00 |
| → Illocution joined | 18:00 |
| tp_mithro → mithro | 18:01 |
| ← mithro left | 18:01 |
| → mithro joined | 18:01 |
| mithro → tp_mithro | 18:02 |
| → gavinstark joined | 18:02 |
| → codeFiend joined | 18:02 |
| → Beket joined | 18:03 |
| → schacon_ joined | 18:03 |
| ← pgssgp left | 18:04 |
| → Eridius joined | 18:05 |
|
amfwrk
| I did a git-svn clone ... a long time ago and now I want to strip all the svn data from it, in other words, I want my repo to look like it's been a git repo from the start. Is there a good tutorial or documentation on this? | 18:07 |
| → _graham_ joined | 18:09 |
| → Modius joined | 18:10 |
| → redondos joined | 18:10 |
| ← Six_oneone left | 18:10 |
| ← Beket left | 18:13 |
|
Ilari
| amfwrk: Basically, you need to rewrite history to omit those git-svn-id lines, fix authors/committers and perhaps fix merges. | 18:13 |
| → redondos_ joined | 18:13 |
|
Ilari
| amfwrk: Command to use is 'filter-branch' and its various submodes (relating to commits, since there is no need to modify trees)... | 18:14 |
| ← _FrnchFrgg_ left | 18:14 |
| ← redondos left | 18:15 |
| ← Modius left | 18:15 |
| redondos_ → redondos | 18:15 |
| ← zlin left | 18:15 |
| ← Ademan_ left | 18:16 |
|
amfwrk
| Ilari: That makes sense, I guess a git-svn clone --no-metadata will be easier | 18:17 |
| ← git_spearce left | 18:17 |
|
amfwrk
| Ilari: Or is rewriting history a better approach? | 18:17 |
| → jerbear joined | 18:17 |
|
Pieter
| there's an exapmel exactly describing what you want in the git-filter-branch manpage | 18:17 |
|
Ilari
| amfwrk: But just --no-metadata won't fix other stuff besides those git-svn-id lines... | 18:18 |
| ← Tv left | 18:19 |
| → zlin joined | 18:19 |
| ← schacon_ left | 18:21 |
| ← glommer left | 18:21 |
| tvachon → osaf_tvachon | 18:21 |
| ← Sho_ left | 18:21 |
| → Sho_ joined | 18:22 |
|
Ilari
| amfwrk: To fix up merges, use grafts file to mark them. Then using filter-branch will 'burn them in'. | 18:22 |
| → Tv joined | 18:22 |
| → drizzd joined | 18:22 |
|
Pieter
| burn! | 18:22 |
|
jengelh
| roof is on fire. | 18:23 |
|
amfwrk
| Ilari: Thanks for the advice! | 18:23 |
|
Ilari
| Monitor has bunred in. :-) | 18:23 |
|
jengelh
| redpun... | 18:23 |
|
Ilari
| amfwrk: Most difficult is fixing up authors/committers (assuming you don't have proper mailmap file. | 18:24 |
| → charon joined | 18:25 |
| pombreda → eclipse-pombreda | 18:25 |
|
Ilari
| amfwrk: Fixing up one author wouldn't be that difficult, but fixing multiple ones is... | 18:25 |
|
Pieter
| a couple of authors also isn't that tricky | 18:26 |
|
| just pipe through a few sed regexes ;) | 18:26 |
| angasule_ → angasule | 18:29 |
| ← bentob0x left | 18:30 |
| ← warthog9 left | 18:30 |
|
modoc
| I have a conflict merge that I have fixed in the file. How do I resolve the conflict? | 18:40 |
|
Mikachu
| git add | 18:42 |
|
drizzd
| modoc: git add file | 18:42 |
| ← charon left | 18:42 |
| → charon joined | 18:43 |
| ← devogon left | 18:43 |
|
modoc
| thanks | 18:44 |
| → yann joined | 18:45 |
| → ivanz joined | 18:45 |
|
ivanz
| Hi. How can I diff a single file between 2 branches ? | 18:45 |
| → charon_ joined | 18:45 |
| → devogon joined | 18:45 |
|
iabervon
| ivanz: git diff branch1 branch2 path? | 18:46 |
| ← charon left | 18:46 |
| charon_ → charon | 18:46 |
| offby1` → offby1 | 18:46 |
|
jengelh
| diff br1..b2 path | 18:46 |
|
ivanz
| oh oh I was setting . for current branch | 18:47 |
|
| :P | 18:47 |
|
| git diff . other-branch path was what I was trying | 18:47 |
|
jengelh
| diff br1..HEAD path | 18:47 |
|
ivanz
| how can I say "current branch" ? | 18:47 |
|
| HEAD? | 18:47 |
|
| ok | 18:47 |
|
Ilari
| ivanz: for current branch as one of them, you can do 'git diff ..b2 -- path' or 'git diff b2.. -- path' (depending which way you want the diff): | 18:48 |
|
| s/:/./2 | 18:48 |
|
ivanz
| thank you all | 18:48 |
|
Ilari
| First is from HEAD to b2, second is from b2 to HEAD. | 18:48 |
| ← aroben left | 18:49 |
|
iabervon
| You might also want "git diff b2 -- path" which uses the current branch commit you're preparing instead of the last committed state on it. | 18:50 |
| ← leethal left | 18:50 |
| → fonseca joined | 18:51 |
| → warlock_mza joined | 18:51 |
| → warthog9 joined | 18:54 |
| → a-priori joined | 18:55 |
| → dayo joined | 19:04 |
| → ceez joined | 19:04 |
|
flazz
| what is the command to put a set of diffs in a mbox? | 19:06 |
|
shd
| flazz: git format-patch ? | 19:06 |
|
flazz
| yep | 19:06 |
|
| thanks | 19:06 |
| ← student_yec left | 19:07 |
| ← chrisb left | 19:09 |
| → strangy joined | 19:11 |
| → phoenix24 joined | 19:13 |
| → zedr0n joined | 19:17 |
| → jbunster joined | 19:18 |
| → git_spearce joined | 19:19 |
|
dayo
| what's so good about git compared to svn? | 19:19 |
| ← threeve left | 19:22 |
|
Ilari
| dayo: 1) Proper merge support, 2) Ability to fix unpublished history, 3) Ability to publish previously unpublished history, 4) ability to have local branches, 5) Way faster, etc... | 19:23 |
| → gregf joined | 19:24 |
|
KragenSitaker
| dayo: it's decentralized | 19:26 |
|
| so it keeps working when your server is down, and nobody can change published history without being detected | 19:28 |
|
| also it has working branching and merging support, which is pretty much a necessity for decentralized work | 19:28 |
|
| the decentralized aspect also means that everybody gets the benefits of using the source control system, not just an anointed set of "committers", and it's easy to accept changes from third parties | 19:29 |
|
kelvie_
| dayo: a bit one is that anyone can submit a patch and have it attributed to them | 19:30 |
|
| there's a committer and an author for each commit | 19:30 |
|
| s/bit/big | 19:30 |
|
| so the committer doesn't take credit for the author's work | 19:30 |
|
Ilari
| dayo: Also, if you are not 'committer', you can easily do whole series of patches instead of just single diff with SCM tools... | 19:31 |
| → threeve_ joined | 19:31 |
| ← m3thos left | 19:31 |
| ← janm left | 19:35 |
| → jburd joined | 19:37 |
| ← priidu__ left | 19:38 |
| → priidu_ joined | 19:40 |
| → bavardage joined | 19:44 |
|
bavardage
| how do I restore a file from the git repo | 19:44 |
|
| I have forgotten | 19:44 |
|
| git ??? /path/to/file | 19:44 |
|
drizzd
| bavardage: which version? | 19:45 |
| → vbabiy-laptop joined | 19:45 |
| ← jburd left | 19:45 |
|
bavardage
| well I have a file which I have screwed up | 19:45 |
|
| and at the last commit | 19:45 |
|
| it was ok | 19:45 |
|
| I want to get that file back to how it was | 19:45 |
|
Ilari
| bavardage: 'git checkout HEAD -- path/to/file'. | 19:45 |
|
bavardage
| thanks | 19:45 |
|
| I leave the -- in? | 19:46 |
|
Ilari
| bavardage: It works in most cases without, but the -- is needed in some cases. | 19:47 |
|
drizzd
| I believe it's not necessary in this case. But it doesn't hurt either. | 19:47 |
| → jburd joined | 19:47 |
| ← tp_mithro left | 19:48 |
|
bavardage
| right this is wierd | 19:49 |
| ← sverrej left | 19:49 |
|
bavardage
| the file is not updating to the new version | 19:49 |
|
| hmm | 19:49 |
|
| in gitk | 19:49 |
|
| I choose the file | 19:49 |
|
| and select newversion | 19:50 |
|
| and it looks how I want it | 19:50 |
|
| but the checking out remains at the old version | 19:50 |
| → zedr0n_ joined | 19:50 |
| ← redondos left | 19:50 |
|
dayo
| Ilari, kelvie_, KragenSitaker : thanks | 19:51 |
| → redondos joined | 19:52 |
| → hunger joined | 19:52 |
| ← ivanz left | 19:54 |
| → ivan1 joined | 19:54 |
| ivan1 → ivanz | 19:54 |
| → tibbe joined | 19:55 |
| ← threeve_ left | 19:55 |
| ← tibbe left | 19:56 |
|
jerbear
| Tv: when i create a new project in gitosis, the permissions for the repo dir are not permissive enough for them to show up in gitweb | 19:56 |
|
Tv
| jerbear: yup, and here's the catch | 19:57 |
| ← priidu_ left | 19:57 |
|
Tv
| jerbear: 1) user git has no way to chgrp things to www-data, and shouldn't have 2) some people (me included) aren't happy fully trusting gitosis to make that call, anyway | 19:57 |
|
bavardage
| so why does the file look fine in gitk | 19:58 |
|
| but doesn't pull the correct file | 19:58 |
|
jerbear
| Tv: all i had to do was allow read by all (a+r, 755) | 19:58 |
|
Tv
| jerbear: oh eww | 19:58 |
| → hector joined | 19:59 |
|
Tv
| jerbear: you're making assumptions that are in no way universal | 19:59 |
|
jerbear
| Tv: you have a point there | 19:59 |
|
Tv
| jerbear: oh and some people might also choose to run gitweb as user git, too | 19:59 |
|
| jerbear: in fact, i'd do that if web servers didn't suck | 19:59 |
|
ReinH
| Hi folks :) | 19:59 |
|
mxNet
| anybody here does github + lighthouse? | 20:00 |
|
ReinH
| How do I create a remote branch? ie git push origin master:new-branch | 20:00 |
|
jerbear
| Tv: np.. that makes sense | 20:00 |
|
ReinH
| when new-branch doesn't exist | 20:00 |
|
Tv
| mxNet: you and just about every other RoR fanboy ;) | 20:00 |
|
| ReinH: with new enough git, that should work | 20:00 |
|
ReinH
| mxNet: I bet #github does, but feel free to ask here of course | 20:00 |
|
Tv
| ReinH: older ones want you to say refs/heads/new-branch | 20:00 |
|
ReinH
| Tv: newer than this morning? ;) | 20:00 |
|
Ilari
| ReinH: That command seems reasonable (except that naming local and remote branches differently causes some minor issues. | 20:01 |
| ← zedr0n left | 20:01 |
|
mxNet
| Tv: funny you should mention, i'm the scripteka guy, working mainly in php at this point. : ) | 20:01 |
|
ReinH
| I could just create a local branch for it actually | 20:01 |
|
| yeah, why fight it | 20:01 |
|
| ty | 20:01 |
|
mxNet
| ReinH: thakns for pointer | 20:01 |
|
ReinH
| mxNet: np :) | 20:01 |
|
mxNet
| Tv: but definitely planning next project in ror. | 20:02 |
|
| :) | 20:02 |
|
Ilari
| ReinH: Those 'minor issues' are push not pushing it by default. | 20:02 |
|
ReinH
| Ilari: I'm going with the "normal" workflow, ie creating the branch locally then pushing it | 20:02 |
| ← ivanz left | 20:03 |
| → threeve joined | 20:04 |
| ← strangy left | 20:07 |
| ← tommorris left | 20:10 |
| → aggieben_ joined | 20:13 |
| ← phoenix24 left | 20:13 |
|
ec
| I made some MAJOR changes in a branch. | 20:14 |
|
| I want to do a git-merge, but instead of -s ours, I need something like -s theirs | 20:15 |
|
| but it doesn't exist. | 20:15 |
| → ivanz joined | 20:15 |
|
ivanz
| how can I import an exported commit? | 20:15 |
|
| want to transfer a single commit over from my laptop and purge the working copy there as it is very old and not needed any more | 20:15 |
|
| I exported the last commit with git-gui | 20:15 |
|
| Actually I used the gitk "write commit to file" | 20:16 |
| → seancribbs joined | 20:16 |
|
Ilari
| ec: Create new branch starting from the head of another branch, merge master into it, and then merge the temp branch to master and delete the temp branch? | 20:17 |
| → ctennis joined | 20:18 |
| ← seancribbs left | 20:18 |
| ← ceez left | 20:20 |
| ← zedr0n_ left | 20:20 |
|
Ilari
| ec: Or do merge -s ours' from that branch, and then merge from master(?) branch. | 20:21 |
|
ivanz
| meh I will just use patch | 20:21 |
|
ec
| Hahahaha | 20:21 |
|
| My git-status on this commit is 225 lines long! | 20:22 |
|
Mikachu
| in other words, you changed ~220 files? | 20:22 |
| ← git_spearce left | 20:22 |
|
Ilari
| ec: 'git-status'? It prints about status of working tree or staging area, not about commits... | 20:22 |
|
ec
| Mikachu: yep | 20:23 |
|
| Ilari: yep | 20:23 |
| ← bavardage left | 20:24 |
|
Ilari
| ec: Maybe changing 220 files in single commit (unless most are some autogenerated stuff) is likely bit too much? | 20:26 |
|
ec
| Ilari: of course | 20:26 |
| → sgrimm joined | 20:26 |
|
ec
| Ilari: but I was doing a major change across the whole codebase - re-arranging everything, and all the interdependencies had to be updated at once. There was pretty much no way to split it up into multiple commits. | 20:26 |
|
| Ilari: So... yay, monster commit of doom! >,< | 20:26 |
| ← gavinstark left | 20:26 |
| ← cypher23 left | 20:26 |
| → drewish joined | 20:28 |
| → ag joined | 20:29 |
| ← gregf left | 20:29 |
|
drewish
| still getting used to git... i accidentally committed a file deletion. how do i roll that back? to make it more interesting i'm not sure exactly when it got deleted | 20:30 |
| ← threeve left | 20:30 |
|
Ilari
| drewish: You can only restore the file in versions that haven't yet been published... | 20:30 |
| ← agib left | 20:31 |
|
drewish
| Ilari: i'm not sure i understand the published terminology | 20:31 |
| → tommorris joined | 20:31 |
| → strangy joined | 20:32 |
| → phoenix24 joined | 20:32 |
|
drewish
| git it doesn't keep a copy of the file kicking around in .attic some place? | 20:32 |
|
Ilari
| drewish: 'git log --diff-filter=D -- path/to/file' to find what commit deleted it. | 20:33 |
|
| drewish: No, the problem is that if others have seen the commit deleting the file, you can't just remove that commit without creating a mess. | 20:34 |
| → leethal joined | 20:35 |
| ← ctennis left | 20:35 |
|
jbunster
| drewish: you committed a file deletion? You can revert that commit, but it'll also revert whatever else you did on the commit. | 20:35 |
|
drewish
| looking at it i think it might have been an earlier merge | 20:36 |
|
jbunster
| Mmmm. | 20:36 |
|
drewish
| it's a small enough file that i can just recreate it | 20:36 |
|
| but i was hoping to figure out the right way to restore it | 20:36 |
|
Ilari
| drewish: You could just fetch it from history and commit recreation... | 20:38 |
| ← BabelO left | 20:39 |
| → BabelO joined | 20:39 |
|
flazz
| i have a ton of untracked files. how can do i get rid of them. everything i want is committed, nothing is in index | 20:39 |
|
drewish
| pardon one more ignorant question, if i've got the commit id when it was initially created how would i checkout that one file | 20:39 |
|
Mikachu
| you want the commit id when it was deleted | 20:40 |
| → threeve joined | 20:40 |
|
Mikachu
| well, it doesn't matter if the file never changed of course | 20:40 |
|
Ilari
| drewish: Maybe better would be last commit containing it. | 20:40 |
|
| drewish: Which can be obtained from commit deleting it using parent operator (<commitid>^). | 20:41 |
| ← QuercusMax left | 20:42 |
|
drewish
| Ilari: the git log --diff-filter=D didn't return anything so i wasn't sure when it was deleted | 20:42 |
|
| and i don't think it changed since it was first committed | 20:42 |
|
Ilari
| drewish: Then the first version containg it is probably OK. 'git checkout <commit> -- path/to/file'. The file should appear in 'git status' output. | 20:43 |
|
drewish
| Ilari: cool! thanks for your help | 20:45 |
|
Ilari
| drewish: And those files are not saved in '.attic'. Git is not file-based but snapshot-based. | 20:46 |
| → bobesponja joined | 20:47 |
| → agib joined | 20:47 |
|
drewish
| Ilari: right, i'd just misunderstood and thought you were saying that once a delete is committed the file's gone... that just seemed totally crazy to me.. because it would be ;) | 20:47 |
|
Mikachu
| isn't it a little bit weird that git-log didn't show the delete commit? | 20:47 |
|
| hm or maybe it was detected as a copy/rename? | 20:48 |
|
Ilari
| Mikachu: But rename detection wasn't asked. | 20:48 |
|
Mikachu
| he could have diff.renames enabled, but yeah that seems unlikely :) | 20:48 |
|
flazz
| i tried to merge, it didn't work, i tried a reset --hard, seemed to work but now git status shows me a bunch of untracked and modified stuff | 20:48 |
|
| what gives? | 20:48 |
|
Ilari
| drewish: Actually, I was thinking that you wanted to undo the deletion completely. If the commit that deleted it was pushed, then that can't be done... | 20:49 |
|
| drewish: If it was pushed, the only thing doable is committing recreation of the file. | 20:50 |
| → david_koontz joined | 20:53 |
| → johan-s joined | 20:55 |
| ← lcapitulino left | 21:00 |
| ← [tla] left | 21:02 |
| ← d0k left | 21:03 |
| ← warlock_mza left | 21:06 |
| rphillip1 → rphillips | 21:07 |
| ← leethal left | 21:08 |
| → warlock_mza joined | 21:08 |
| ← flazz left | 21:09 |
| → eternaleye joined | 21:09 |
| → flazz joined | 21:09 |
|
flazz
| if i'm merging from a branch into master and i want master to be just like the branch, is there a merge strategy to do this? i see that there is a strategy called ours, but no theirs. any suggestions? | 21:13 |
| ← ironfroggy left | 21:15 |
|
Ilari
| flazz: Create temp branch staring from the other branch, merge master into it using ours, checkout master, merge temp branch into it using normal merge, delete the temp branch? | 21:15 |
|
flazz
| i'll try it | 21:16 |
| ← vbabiy-laptop left | 21:16 |
|
flazz
| how can i put the checked out master in sync with the HEAD? i have many untracked files that don't let me checkout other branches | 21:17 |
|
| rm -rf; checkout ? | 21:17 |
|
Mikachu
| you don't care about these files? | 21:17 |
|
| rm -rf actually won't let you checkout either :) | 21:18 |
|
| checkout -f will | 21:18 |
|
flazz
| no they are cruft from a failed merge | 21:19 |
| → kirindav_ joined | 21:29 |
| → SEJeff joined | 21:30 |
|
SEJeff
| From an already checked out git repo, you can do git-checkout -b newbranch vSomeTag | 21:31 |
|
| How can you check out a tag from the start instead of trunk? | 21:31 |
|
| "git checkout git:/repository -b newbranchname vTagName" doesn't work | 21:32 |
| ← phoenix24 left | 21:32 |
|
SEJeff
| And the man pages don't help | 21:32 |
|
Ilari
| SEJeff: What does 'from start instead of trunk' mean? | 21:33 |
| → Thumper_ joined | 21:33 |
| → phoenix24 joined | 21:34 |
|
SEJeff
| Ilari, Well I'm trying to pull down the Linux kernel source from linus's git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git but can not for the life of me figure out how to only pull down tag v2.6.20 from that repo | 21:35 |
|
| Ilari, Instead of cloning the repo and then checking out the v2.6.20 tag | 21:35 |
|
Ilari
| SEJeff: Init repo and fetch that tag? | 21:35 |
| → QuercusMax joined | 21:37 |
| ← johnreilly left | 21:37 |
| ← QuercusMax left | 21:37 |
|
Ilari
| SEJeff: OTOH, cloning the entiere thing wouldn't be that much larger transfer than just grabbing the one tag... | 21:38 |
| → QuercusMax joined | 21:38 |
|
SEJeff
| Ilari, Right, but it just seems wrong when you only want 2.6.20 and nothing else | 21:39 |
| ← QuercusMax left | 21:40 |
|
Ilari
| SEJeff: 'git fetch gti://... refs/tags/v2.6.20:refs/tags/v2.6.20' if you really want that... | 21:40 |
|
| SEJeff: And that needs 'git init' before that. | 21:40 |
|
SEJeff
| Ilari, Thanks, the format of that in the man pages was messing me up. I'll try that | 21:42 |
|
Ilari
| SEJeff: That should be git://... | 21:43 |
|
Mikachu
| if you only want 2.6.20, download the tarball ;) | 21:44 |
|
SEJeff
| Ilari, Right, but that didn't seem to work. is the format: repository/refs/tags/v2.6.20:refs/tags/v2.6.20? That didn't seem to work | 21:44 |
| ← Sho_ left | 21:44 |
|
SEJeff
| Mikachu, Yeah, but in git preferably | 21:44 |
|
Ilari
| SEJeff: There should be space before that first 'refs'. | 21:44 |
| → Sho_ joined | 21:45 |
|
Mikachu
| and no / | 21:45 |
| ← Sho_ left | 21:46 |
|
SEJeff
| Mikachu, Trying to convince a coworker git is easier than manually using patch and he can't even checkout 2.6.20. He is using a tarball and cursed when a patch had rejects | 21:47 |
| → Sho_ joined | 21:47 |
| → TuxCM joined | 21:48 |
|
SEJeff
| git-fetch git://... refs/tags/v2.6.20:refs/tags/v2.6.20 2.6.20 and git-fetch git://... refs/tags/v2.6.20 2.6.20 don't seem to work | 21:49 |
| ← vbgunz left | 21:50 |
|
SEJeff
| The manpage says shorthand notation of git://repo tagname localdirectoryname work, but it says couln't find remote ref | 21:50 |
|
Ilari
| SEJeff: 'git fetch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git refs/tags/v2.6.20:refs/tags/v2.6.20'. | 21:50 |
|
SEJeff
| fatal: Couldn't find remote ref 2.6.20 | 21:50 |
| ← krunk- left | 21:51 |
|
SEJeff
| git-fetch doesn't work quite like git-clone. Thats been my problem all along. Thanks for pointing out my ignorance | 21:51 |
|
ec
| Woah, weird shit going on. | 21:51 |
|
Ilari
| SEJeff: The command I gave above is WORKSFORME. | 21:51 |
|
ec
| http://pastie.org/183231 | 21:52 |
|
| "fatal: just how do you expect me to merge 0 trees?" | 21:52 |
|
| "warning: You appear to be on a branch yet to be born." | 21:52 |
|
SEJeff
| Yeah I'd been trying git init; git fetch git://repo tag foldername like you would do with git clone. Thankyou Ilari | 21:52 |
|
ec
| "error: src refspec master does not match any." | 21:52 |
|
| none of those make any sense, lmao | 21:52 |
| ← eikonos left | 21:53 |
|
Ilari
| ec: The commands don't make much sense to me... :-) | 21:53 |
|
ec
| Ilari: http://github.com/elliottcable/dotfiles/tree/master/home/.profile#L158 | 21:54 |
|
| Ilari: sorry, they're engraved by force of habit by now )-: | 21:54 |
|
Ilari
| ec: You need to make commit before you can push it. | 21:54 |
| ← ivanz left | 21:54 |
|
ec
| holy crap, I totally forgot to commit. thanks >,> | 21:54 |
|
| ec feels retarded | 21:54 |
| → Tux32 joined | 21:55 |
|
RandalSchwartz
| you must be a guy - fear of commitment. | 21:55 |
|
ec
| RandalSchwartz: lol | 21:56 |
| → nbrunson joined | 21:56 |
| ← eternaleye left | 22:02 |
| ← kirindav_ left | 22:05 |
| ← nbrunson left | 22:09 |
| → leethal joined | 22:14 |
| ← _zack left | 22:17 |
| ← threeve left | 22:22 |
| ← a-priori left | 22:24 |
| → slyphon joined | 22:24 |
|
slyphon
| anyone using gitosis? | 22:24 |
|
| i'm having a hell of a time trying to allow people access | 22:25 |
| eclipse-pombreda → pombreda | 22:25 |
|
| slyphon pokes Tv and hopes he's around (and not busy) | 22:25 |
|
Tv
| i'm here but it's late | 22:26 |
|
slyphon
| it seems gitosis is recognizing the username and the repo, but denying access, is there a way to just open up permissions on all repositories to all users with registered keys? | 22:28 |
|
Tv
| well @all is all known users | 22:29 |
|
| there's no "all repos" syntax, on purpose | 22:29 |
| → Mislav joined | 22:29 |
|
| slyphon nods | 22:29 |
|
slyphon
| it's just odd b/c *i* have access to everything, but i also have my key outside of gitosis in the authorized_keys file | 22:30 |
|
| so that's not a good test | 22:30 |
|
| Tv: can i do [group @all] ? | 22:31 |
|
| and give a 'writeable = foo/bar' | 22:31 |
|
Ilari
| slyphon: If you have such key, how you can say anything of authentication working? And what evidence you have about it 'regcognizing the username and the repo'? | 22:33 |
|
Tv
| slyphon: [group foo] members=@all | 22:33 |
|
slyphon
| Ilari: because i'm logged in as a different user | 22:33 |
|
| Ilari: and i turned on debug logging | 22:33 |
|
| DEBUG:gitosis.group.getMembership:found 'trotter' in 'systems' | 22:33 |
| ← phoenix24 left | 22:34 |
|
Tv
| slyphon: oh, you're one of those people who can't spell | 22:35 |
|
| slyphon: hint: dict writeable | 22:36 |
|
slyphon
| OMFG | 22:36 |
|
| slyphon facepalms loud enough for Tv to hear it | 22:36 |
| ← offby1 left | 22:36 |
|
slyphon
| Tv: thank you | 22:36 |
|
| Tv: uhm, perhaps i can submit a patch that will stab the user in the face if they make that mistake | 22:37 |
|
Tv
| slyphon: something like if not config.get('writable') and config.get('writeable'): log.warning("you're stoopid and shuld lern to spel") | 22:38 |
|
slyphon
| yes! | 22:38 |
|
Tv
| sry i mean "your stoopid" | 22:38 |
|
Mikachu
| there's already this | 22:38 |
| ← mxNet left | 22:38 |
|
Mikachu
| % git commit -amend | 22:38 |
|
| error: did you mean `--amend` (with two dashes ?) | 22:38 |
|
slyphon
| sys.kick_in_the_nuts(force='hard') | 22:38 |
|
Tv
| git commit --amen | 22:38 |
|
slyphon
| :D | 22:38 |
|
Tv
| that makes it final | 22:38 |
|
| can't amend it after that | 22:38 |
|
slyphon
| can i get an --amen? | 22:38 |
| → shaftyyy joined | 22:39 |
|
Tv
| ok off to read a book (again) | 22:39 |
|
slyphon
| Tv: thanks! | 22:39 |
| ← jbunster left | 22:42 |
| → ckoehler joined | 22:43 |
|
ckoehler
| just a conceptual question: | 22:43 |
|
| tracking trunk from svn in master in git, and some branch "slider" in svn in branch "slider_git" in git | 22:44 |
|
| if i want to merge those in svn, i can just merge slider_git into master, and then git svn dcommit? | 22:44 |
|
| the last inside master, of course | 22:44 |
|
context
| no | 22:44 |
|
Ilari
| ckoehler: It won't result true merge in SVN (because such thing does not exist, at least in <=1.4.X). | 22:45 |
|
context
| git-svn cant keep track of what is suppose to go where when you merge the two trees like that | 22:45 |
| ← slyphon left | 22:45 |
|
context
| since dcommit cant be told WHAT remote branch to push to | 22:45 |
| ← Mislav left | 22:46 |
|
ckoehler
| ah okay | 22:47 |
|
| so i have to merge in svn, rebase master, and then i can trash slider_git? | 22:47 |
|
Ilari
| Actually, it will likely do approximately the right thing (the right thing can't be done), if the merge isn't fast-forward (either because it can't be, or because you force it so). | 22:47 |
|
| ckoehler: Also dcommit slider_git first. | 22:48 |
|
context
| you can cherry-pick and dcommit | 22:48 |
|
ckoehler
| Ilari: yeah, make sure all the stuff from slider_git is in the svn branch | 22:49 |
|
| understood :) | 22:49 |
|
| don't really understand what you mean with approximately the right thing | 22:49 |
| → bododo joined | 22:49 |
|
ckoehler
| i guess i don't know when it doesn't do a fast forward merge | 22:49 |
|
| context, never used cherry pick | 22:50 |
|
Ilari
| ckoehler: It won't be marked as merge in SVN side. Actually, doing 'git merge --squash' would probabl be better. | 22:50 |
| → Eridius_ joined | 22:50 |
|
ckoehler
| will look at the man page | 22:50 |
|
Ilari
| ckoehler: As merge --squash will do merge like SVN does it... | 22:50 |
| ← david_koontz left | 22:51 |
|
ckoehler
| Ilari: so git merge --squash acts like svn, where the merge is just there in the working copy until you commit it? | 22:52 |
|
| so git merge --squash is git merge without the actual commit? | 22:52 |
|
| that's what i understand the man page to mean | 22:52 |
|
Ilari
| ckoehler: Actually, if merge complates without conflicts, 'git merge --squash' will commit too.. | 22:53 |
|
| ckoehler: There's seperate --no-commit. | 22:53 |
|
ckoehler
| ah okay.... | 22:53 |
|
| hm | 22:53 |
|
| confused now :) | 22:53 |
|
Ilari
| ckoehler: Git-svn is confusing and limited.... :-/ | 22:55 |
| ← flazz left | 22:55 |
|
ckoehler
| :) it's that or just svn | 22:55 |
|
| just found out that the svn merge to the slider branch was actually an import, not a copy | 22:55 |
|
| so it doesn't really matter if i properly merge it back or just merge in git and dcommit | 22:56 |
|
Ilari
| ckoehler: Because SVN can't represent merges? | 22:56 |
|
ckoehler
| but nice informative discussion, thanks for that | 22:56 |
|
| no, user error :) | 22:56 |
|
| svn import instead of svn cp | 22:56 |
|
| ah well | 22:56 |
|
| not a big branch | 22:56 |
| ← shaftyy left | 22:57 |
|
bododo
| "Better Git it in your soul" (dixit Charles Mingus) | 22:58 |
|
| now I know where Linus got the word | 22:58 |
|
RandalSchwartz
| "git er done!" - larry the cable guy | 22:58 |
|
| Eridius_ stabs RandalSchwartz | 22:58 |
| ← Eridius left | 22:58 |
|
bododo
| :p | 22:58 |
| Eridius_ → Eridius | 22:58 |
|
Eridius
| Larry the Cable Guy is the antithesis of all that is good and holy in this world | 22:58 |
| ← jpeeler left | 22:59 |
|
bododo
| RandalSchwartz: you're fine papy? | 22:59 |
|
Ilari
| 'Goddamn Idiotic Tridge'? :-> | 22:59 |
| → a-priori joined | 23:00 |
|
bododo
| Git It there | 23:01 |
|
ckoehler
| well thanks for the help guys! this is a very nice channel, thanks for that | 23:01 |
| ← a-priori left | 23:01 |
| ← cannonball left | 23:04 |
| ← ckoehler left | 23:04 |
|
bododo
| cannonball !! what a nickname! | 23:05 |
|
Mikachu
| a hell of a lot better than bododo, that's for sure! | 23:08 |
|
jarod
| :P | 23:08 |
|
bododo
| yeah! :( | 23:08 |
|
| i should have choosen something like... hum.. | 23:08 |
|
| hey! choose me one | 23:08 |
|
jarod
| /nick hum | 23:09 |
| bododo → Thelonious | 23:10 |
|
Thelonious
| what about this one? | 23:10 |
| ← EmilMedve left | 23:11 |
| hector → student_yec | 23:11 |
| Thelonious → bododo | 23:14 |
| ← dsaxena left | 23:14 |
| → spearce joined | 23:17 |
| ← anttih- left | 23:18 |
| ← leethal left | 23:26 |
| → alkh joined | 23:34 |
| → bousquet joined | 23:37 |
| ← devogon left | 23:40 |
| → thiago joined | 23:40 |
| ← BabelO left | 23:44 |
|
charon
| is there a specific rule that lets me use branch/merge "the git way" with git-svn without any strange things happening? | 23:44 |
|
tpope
| no | 23:45 |
|
charon
| damn | 23:45 |
|
Ilari
| charon: Because SVN is too limited. | 23:45 |
|
charon
| i currently cherry-pick back and forth and it's getting _very_ messy | 23:45 |
| rayvans → away | 23:45 |
| ← SEJeff left | 23:45 |
|
charon
| well, i'd be fine if there was a way to have git branches off an svn branch, then later merge them back to the svn branch, such that in svn it looks as a single commit that came from nowhere | 23:46 |
|
| but there are warnings all over the git svn docs | 23:46 |
|
| don't merge, and all that. | 23:46 |
| ← donspaulding left | 23:46 |
|
tpope
| you can merge --squash if you want | 23:47 |
| ← shaftyyy left | 23:54 |
| → deavid joined | 23:57 |