| 2012-02-20 |
| ← jrnieder left | 00:01 |
| → sattu94 joined | 00:01 |
| → johnkpaul joined | 00:02 |
|
someprimetime
| so i'm doing git clone and giving it the url of where i set my repo up on my server and it's asking me for a username and password.. is it the server username/pass or is it a git username/pass (which i haven't set up if this is the case)? | 00:02 |
| ← wuj left | 00:02 |
|
someprimetime
| the server un/pw combo won't work so i'm assuming i may have no setup a un/pw for git | 00:03 |
|
posciak
| hi, I'm doing some work on top of a huge project. I'd like to backup that work periodically, but I wouldn't like to backup the whole repo and its history of that project, because it's huge and well backed up already. So I've been thinking that instead of creating a copy of the whole repo, I could use git bundle create foo master ^origin/master and copy the file over to backup storage regularly. Is this a | 00:03 |
|
| good idea? Any better ways to do it? | 00:03 |
| ← satyanash left | 00:04 |
|
m1sc
| posciak: why not just pushing to backup-repo? | 00:04 |
| → ajt joined | 00:04 |
|
posciak
| m1sc: because the backup-repo would be very big | 00:05 |
|
| there is no need to store the entire history | 00:05 |
|
| just a few commits that I've made | 00:05 |
|
| m1sc: well, I could also use a shallow backup-repo | 00:05 |
|
| is that better? | 00:06 |
| ← dnjaramba left | 00:06 |
| ← mastro left | 00:07 |
|
sitaram
| bundle is pretty much the only sane way to backup a "top layer of commits" if the older stuff is already well protected from loss | 00:07 |
| ← [M]ax left | 00:07 |
| ← ixti left | 00:07 |
|
posciak
| ok, sounds great :) | 00:08 |
| → dnjaramba joined | 00:08 |
| → quazimodo joined | 00:09 |
| → [M]ax joined | 00:10 |
|
someprimetime
| what | 00:10 |
|
| what's the benefit of something like gitosis | 00:10 |
| ← shibayu36 left | 00:11 |
|
cmn
| currently, none !gitosis | 00:11 |
|
gitinfo
| gitosis is no longer maintained and supported by the author; we usually recommend gitolite instead which has much better documentation and more features: http://github.com/sitaramc/gitolite | 00:11 |
|
cmn
| !gitolite | 00:12 |
|
gitinfo
| Want to host as many git repos (and users!) as you like, on your own server, with fine-grained access control? You want gitolite: https://github.com/sitaramc/gitolite | 00:12 |
|
cmn
| as the bot says, access control based on user, branch, file | 00:12 |
| ← johnhamelink left | 00:12 |
| → Biopandemic joined | 00:13 |
| → dotnull joined | 00:13 |
|
someprimetime
| thanks cmn | 00:13 |
| → Danielpk|rdlBNC joined | 00:14 |
| → satyanash joined | 00:14 |
| ← [M]ax left | 00:16 |
| ← sattu94 left | 00:17 |
| ← Biopandemic left | 00:17 |
| → Biopandemic joined | 00:17 |
| → [M]ax joined | 00:17 |
| → corenet joined | 00:18 |
|
corenet
| Hello everyone. | 00:18 |
| ← ph^ left | 00:19 |
| ← snearch left | 00:19 |
|
corenet
| New to git and have a (hopefully) simple question... | 00:19 |
|
FauxFaux
| corenet: !hi | 00:20 |
|
gitinfo
| corenet: [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice. | 00:20 |
|
corenet
| If I have a bare git repository that has no working folder and I clone it, how do I get the files for the project? | 00:20 |
|
FauxFaux
| corenet: You have them. That's what clone does. | 00:20 |
|
corenet
| so if I set up a bare repository and I clone it, I have a full working copy on the new machine with all the files AND the .git folder? | 00:20 |
|
cmn
| with a normal clone, you get them automatically | 00:20 |
| ← dnjaramba left | 00:20 |
|
cmn
| you get them anyway, but a clone w/o --bare will checkout the files as well | 00:21 |
|
corenet
| But the bare repository only has the .git files, correct? Where would the local machine cloning get the working files from? | 00:21 |
|
| Thanks for entertaining a noob :) | 00:21 |
|
cmn
| .git is where all the information is | 00:22 |
|
| the working directory is for you to modify files; git has its own copy | 00:22 |
| ← Danielpk|rdlBNC left | 00:22 |
|
corenet
| So the .git directory actually has the files I am working with in addition to the local folder. | 00:22 |
|
cmn
| the .git directory is where everything is | 00:23 |
|
corenet
| Just trying to wrap my head around the notion of a bare repository for push/pull | 00:23 |
|
cmn
| the working directory is for humans | 00:23 |
|
| what you transmit on fetch/push is the history information | 00:24 |
|
| adding a working directory complicates things, it's not the other way around | 00:24 |
| → dnjaramba joined | 00:24 |
| ← tga left | 00:24 |
| → marvin_ joined | 00:24 |
| ← alexgordon left | 00:24 |
| → linusoleander joined | 00:25 |
|
posciak
| corenet: bare repository has all the files that you've commited. If you ever lose your working directory but not .git directory, you will only lose the changes that you've made since your last commit. | 00:26 |
|
| i.e. diffs, not files | 00:26 |
| ← arietis left | 00:26 |
| ← dotnull left | 00:27 |
|
cmn
| git doesn't store diffs, it stores snapshots | 00:27 |
|
posciak
| yes | 00:27 |
|
| I said he'd lose diffs | 00:27 |
|
| note store :) | 00:27 |
| → tga joined | 00:27 |
|
posciak
| but good you've clarified this actually | 00:27 |
|
| one of the common misconceptions :) | 00:27 |
|
cmn
| oh, I thought you meant to replace the "has all the files" with "all the diffs" | 00:28 |
| → arietis joined | 00:28 |
|
posciak
| ohh right, I didn't realize, sorry | 00:29 |
| ← dnjaramba left | 00:29 |
|
posciak
| I would've interpreted it this way too ;) | 00:29 |
| ← caseymcg left | 00:30 |
| → chrisdev joined | 00:30 |
| → rchavik joined | 00:30 |
| ← johnkpaul left | 00:30 |
| → cybersphinx joined | 00:32 |
| ← bitkiller left | 00:36 |
| ← the_cybersphinx left | 00:36 |
| ← crisp left | 00:36 |
| ← DrHouse|TARDIS left | 00:37 |
| → dnjaramba joined | 00:37 |
| ← cooldude left | 00:40 |
| ← dnjaramba left | 00:41 |
| → dnjaramba joined | 00:41 |
| ← Sonderblade left | 00:42 |
| → cooldude joined | 00:42 |
| ← cooldude left | 00:42 |
| → cooldude joined | 00:42 |
| ← cooldude left | 00:42 |
| → Archalia joined | 00:44 |
| → shibayu36 joined | 00:44 |
|
corenet
| Thanks for the answers everyone - had to walk away briefly. | 00:45 |
|
posciak
| corenet: you are very welcome | 00:45 |
| ← legnaleurc left | 00:45 |
| → cooldude joined | 00:45 |
| ← Archalia left | 00:46 |
| ← airborn left | 00:46 |
| ← corenet left | 00:47 |
| ← d0k left | 00:47 |
| ← marvin_ left | 00:47 |
| → g0th joined | 00:48 |
|
g0th
| hi | 00:48 |
|
| I am about to commit a really huge change | 00:48 |
| ← brian_g left | 00:48 |
|
g0th
| I thought it might be useful to somehow give this point in the history a name, I guess that would go under "tag"? | 00:49 |
| ← soulcake left | 00:49 |
| → marvin_ joined | 00:49 |
| ← iocor left | 00:49 |
|
g0th
| so do I tag now "before" the big commit? | 00:49 |
|
| or after or both? | 00:49 |
|
| or how does that work usually? | 00:49 |
|
cmn
| it doesn't matter when | 00:49 |
|
| a tag is a pointer to a commit, you can create one whenver | 00:49 |
|
g0th
| when I type tag ... | 00:50 |
|
| git tag -a .... | 00:50 |
|
| which commit does it tag? | 00:50 |
|
cmn
| it should default to HEAD | 00:50 |
|
g0th
| and that was the last one? | 00:50 |
| → alberto56 joined | 00:51 |
|
g0th
| let me put it differently, how do I get the situation back right before the big commit? | 00:51 |
|
| how after and how do I get the diff later? | 00:51 |
|
cmn
| that's called HEAD~ in this case | 00:51 |
|
| if you haven't committed, then you're interested in HEAD | 00:51 |
| → brian_g joined | 00:51 |
| ← alberto56 left | 00:51 |
|
cmn
| or you can check the name and go that way | 00:52 |
|
g0th
| I still have no clue what I should do now | 00:52 |
|
cmn
| git rev-parse HEAD will give you the commit's name | 00:52 |
|
g0th
| I never heard of that command | 00:52 |
|
cmn
| it's low level | 00:52 |
| → mikepack joined | 00:52 |
|
posciak
| g0th: tag the big commit and you can then refer to situation after by tagname and situation before by tagname~ | 00:52 |
|
g0th
| I thought tags were something simple | 00:52 |
|
cmn
| they are | 00:52 |
|
g0th
| posciak: ok, that helps :) | 00:52 |
|
cmn
| you tag whatever you want | 00:52 |
|
posciak
| g0th: but as cmn says, it doesn't matter | 00:53 |
|
cmn
| if you omit what, it defaults to HEAD | 00:53 |
|
g0th
| what is the most common practise? | 00:53 |
|
cmn
| to tag commits | 00:53 |
|
g0th
| so I first commit, then git tag -a ... ? | 00:53 |
| Z3Rt → Z3Rt|away | 00:53 |
| → legnaleurc joined | 00:53 |
|
g0th
| because then it tags HEAD commit which was the last one? | 00:53 |
|
cmn
| the order doesn't matter | 00:53 |
|
| HEAD is the last one you made | 00:54 |
|
g0th
| the order matters very much | 00:54 |
|
| if I first tag it will tag the commit before the big commit | 00:54 |
| → ploop joined | 00:54 |
|
cmn
| you can tell tag to tag whatever you want | 00:54 |
|
posciak
| g0th: you can tag both if that gives you peace of mind :) | 00:54 |
|
cmn
| it doesn't matter if you do it now or later | 00:54 |
|
g0th
| yes I get that | 00:54 |
|
cmn
| tell it to tag HEAD now or HEAD~ alter | 00:54 |
|
g0th
| but I want to do it now | 00:54 |
| ← zatan_ left | 00:54 |
|
cmn
| then do it now | 00:54 |
|
g0th
| ok, so the most common practise is to tag the big commit right? so I do the following _now_: | 00:55 |
|
cmn
| common practice is to tag important commits, usually releases | 00:55 |
|
g0th
| git commit... git tag ... and later how do I recover before/after/diff? | 00:55 |
|
cmn
| recover? | 00:55 |
|
g0th
| not to recover | 00:56 |
|
| hmm | 00:56 |
|
cmn
| man git show if you want to see the changes a commit introduced | 00:56 |
|
gitinfo
| the git-show manpage is available at http://jk.gs/git-show.html | 00:56 |
| ← dnjaramba left | 00:56 |
|
posciak
| g0th: you can always checkout your tag, you can reset your branch to it, or do whatever you wish | 00:56 |
|
g0th
| to "check back" how it was before | 00:56 |
|
cmn
| what do you want to do? | 00:56 |
|
g0th
| ah checkout, thx | 00:56 |
|
cmn
| what do you mean by check? | 00:56 |
|
g0th
| maybe recover as you mentioned | 00:56 |
|
| or to just check something which was lost in the big commit | 00:56 |
| → dnjaramba joined | 00:56 |
|
cmn
| it's not lost | 00:57 |
|
g0th
| exactly | 00:57 |
|
posciak
| g0th: nothing gets lost, even if you don't tag | 00:57 |
|
g0th
| that's why I want to know how to get it back using the tag name | 00:57 |
|
| yeah | 00:57 |
|
| but then I need to figure out exactly where etc | 00:57 |
|
| so much work | 00:57 |
|
| that's exactly why I want to tag it | 00:57 |
|
posciak
| g0th: normally, you should make your commit message informative enough to be able to find the big commit | 00:57 |
| ← libertyprime left | 00:57 |
|
g0th
| hmm, tag reference still seems simpler | 00:57 |
|
posciak
| yes, probably | 00:58 |
|
g0th
| I have no clue how to find a commit by message content | 00:58 |
|
cmn
| if there is so much in that commit that you can't figure out what it changes, you should split it into several | 00:58 |
|
posciak
| so I'm not saying don't do it | 00:58 |
|
g0th
| git checkout "tagname"? | 00:58 |
|
cmn
| yeah, just like any other ref | 00:58 |
|
g0th
| how would I show the commit diff? | 00:59 |
| ← cooldude left | 00:59 |
|
cmn
| 01:56:01 <cmn> man git show if you want to see the changes a commit introduced | 00:59 |
|
gitinfo
| the git-show manpage is available at http://jk.gs/git-show.html | 00:59 |
|
g0th
| thanks | 00:59 |
|
| I know I ask too many questions, sorry ^^ | 00:59 |
|
| I abuse you guys a bit and you are right to "rtfm" me a bit | 01:00 |
| ← [M]ax left | 01:00 |
|
g0th
| it's just that I wanted to get this right | 01:00 |
| ← Kre10s left | 01:00 |
| → cooldude joined | 01:00 |
| → jameslordhz joined | 01:01 |
| ← ceej left | 01:01 |
| ← shibayu36 left | 01:01 |
|
jameslordhz
| hi | 01:01 |
| → [M]ax joined | 01:02 |
|
posciak
| g0th: we are friendly and answer happily. Sometimes it's just easier to point to manual than to retype it here | 01:02 |
|
| g0th: but ask away if in doubt | 01:02 |
| ← pdtpatr1ck left | 01:03 |
|
g0th
| "For tags, it shows the tag message and the referenced objects." | 01:03 |
|
| so git show "mytag" doesn't show the diff? | 01:03 |
| ← arietis left | 01:03 |
|
SethRobertson
| For annotated tags | 01:03 |
|
cmn
| that means for real tags, the ones that have a message | 01:03 |
|
| "and the referenced objects" | 01:04 |
|
g0th
| ah | 01:04 |
|
SethRobertson
| But yes, it shows the diff, which is the referenced object | 01:04 |
|
g0th
| that would be the commit | 01:04 |
|
posciak
| g0th: it does show the diff too | 01:04 |
|
g0th
| the referenced object? | 01:04 |
|
cmn
| it shows whatever it would show for the object | 01:04 |
| → mikepack_ joined | 01:04 |
| → shibayu36 joined | 01:04 |
|
g0th
| referenced object===commit? | 01:04 |
|
posciak
| g0th: yes | 01:04 |
|
g0th
| ok thanks | 01:04 |
|
cmn
| in this case yes | 01:04 |
| ← mikepack left | 01:04 |
|
SethRobertson
| I wonder what would happen if you made an annotated tag on an annotated tag | 01:04 |
| ← edude03 left | 01:04 |
|
esc
| SethRobertson: the tag will point to the other tag | 01:05 |
|
cmn
| hm, interesting | 01:05 |
|
SethRobertson
| Yes yes. But what does `git show tag2` say? | 01:05 |
|
esc
| using '^{}' you can deref a tag IIRC | 01:05 |
| ← tga left | 01:05 |
|
esc
| SethRobertson: it will show the tag, the tag, and then whatever the last tag points to | 01:05 |
|
| tree, commit, or blob | 01:06 |
|
| ;) | 01:06 |
|
| at least it did that last time i checked, which is like > 12 months ago, so don't trust me on it ;) | 01:07 |
| ← mikepack_ left | 01:07 |
|
SethRobertson
| I tested it, and it does show all three objects. I find myself impressed that the dev cared enough to allow that to work | 01:07 |
| ← dnjaramba left | 01:07 |
|
SethRobertson
| I might not if I were writing it, unless recursion made sense for other reasons | 01:07 |
| → arietis joined | 01:08 |
| → txomon|home joined | 01:08 |
| ← txomon|home left | 01:08 |
| → txomon|home joined | 01:08 |
|
esc
| SethRobertson: well, it does just deref the sha of whatever if pointed to, until nothing is pointed to anymore | 01:08 |
| ← subbyyy left | 01:08 |
| → GeertB joined | 01:08 |
|
cmn
| I wouldn't be surprised if it did if (is_tag) { start_again(*tag); } | 01:08 |
|
| it makes perfect sense to me to make it recursive | 01:09 |
|
esc
| SethRobertson: no wait, it shows the diff, right? | 01:09 |
| → Redbluegreen joined | 01:09 |
|
SethRobertson
| Yes, two tags and a commit | 01:09 |
| ← Redbluegreen left | 01:10 |
|
esc
| SethRobertson: hmmm, interesting | 01:10 |
| → anjen joined | 01:10 |
|
esc
| SethRobertson: so it probably needs some additional logic, beyond the text-book recursion... | 01:11 |
|
SethRobertson
| Not really. | 01:11 |
| ← fir31ight left | 01:11 |
| → Esa_S joined | 01:12 |
| → dv310p3r joined | 01:12 |
| → apok joined | 01:12 |
| → sudoquai_ joined | 01:12 |
|
jameslordhz
| just now i check out a git project from github, and make a git repo on my vps using git init --bare, then i import this project to eclipse, git status and find some changs, so i commit it to my vps repo using git remote add vps_repo, and git push vps_repo master , after that i find it is better to make modification on my own branch, but i have made changes to master branch and pushed it to repo git repo, so how to make a new branch based on the formmer commit | 01:12 |
| → dnjaramba joined | 01:13 |
| → fir31ight joined | 01:13 |
|
cmn
| !fixup | 01:13 |
|
gitinfo
| So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info) | 01:13 |
|
cmn
| the short answer would be git branch newbranch master | 01:13 |
| → mikepack joined | 01:14 |
|
SethRobertson
| Which would take care of making the new branch, but not fixing master | 01:14 |
| Z3Rt|away → Z3Rt | 01:14 |
| ← Z3Rt left | 01:14 |
| ← Pugnax left | 01:14 |
| ← sudoquai left | 01:14 |
| → Z3Rt joined | 01:14 |
| ← anjen left | 01:15 |
|
jameslordhz
| cmn dude, i have already made change to master branch:( | 01:15 |
|
SethRobertson
| Yes. If only we had discussed that issue. | 01:15 |
|
cmn
| I should add a !dude hook to gitinfo | 01:15 |
|
SethRobertson
| Step one: make the new branch. Step two: get rid of the unwanted commit (see the fixup link) | 01:16 |
|
jameslordhz
| cmn so it is better to create a branch based on HEAD~1, but not HEAD | 01:16 |
|
cmn
| have you considered the answers? | 01:16 |
| ← hyperair left | 01:16 |
| ← Esa_S left | 01:16 |
|
cmn
| you said you wanted that commit in the new branch, why do you want to base that branch on an earlier commit? | 01:17 |
| ← dnjaramba left | 01:17 |
| → igotnolegs joined | 01:17 |
| ← chrisdev left | 01:17 |
| → lyddonb joined | 01:18 |
| ← posciak left | 01:18 |
| ← bgerber left | 01:18 |
| → dnjaramba joined | 01:18 |
|
jameslordhz
| cmn master branch is used to track project on github, and i have no priviledge to commit to that repo, and it's better that i do not pollute master branch, agree? | 01:18 |
| → herdingcat joined | 01:18 |
| → Esa_S joined | 01:18 |
|
cmn
| how is that different from anything we've said? | 01:18 |
|
| furthermore, branches aren't tied to repos | 01:19 |
|
SethRobertson
| And it is *your* master branch. You can do with it whatever you want. | 01:19 |
|
cmn
| you can push to master on your repo | 01:19 |
|
jameslordhz
| SethRobertson dude, yes it's my branch, i can do anything, but i don't want conflict when i use git pull on master branch, that branch is reserved just to track updates from github, then i can get updates to my modification branch:) | 01:20 |
| → aspotashev joined | 01:21 |
|
cmn
| then do that | 01:21 |
|
jameslordhz
| cmn dude, i do not want conflicts on master branch:( | 01:21 |
|
cmn
| we've been telling you how to do that | 01:21 |
|
SethRobertson
| You don't need to reserve master for that, you would have upstream/master for that purpose. But whatever you want. | 01:21 |
|
jameslordhz
| cmn dude, you are not:( | 01:21 |
|
SethRobertson
| (20:16:17) SethRobertson: Step one: make the new branch. Step two: get rid of the unwanted commit (see the fixup link) | 01:22 |
|
| (20:13:56) cmn: the short answer would be git branch newbranch master | 01:22 |
| → hyperair joined | 01:22 |
|
SethRobertson
| (20:13:16) cmn: !fixup | 01:22 |
|
gitinfo
| So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info) | 01:22 |
| → edude03 joined | 01:22 |
|
jameslordhz
| SethRobertson where is upstream/master branch? i can not find such branch :( | 01:22 |
|
cmn
| jameslordhz: have you looked at and tried to undestand what those do? | 01:22 |
| ← Esa_S left | 01:23 |
|
cmn
| step one is the first thing you pasted from me | 01:23 |
|
| and step two is the fixup | 01:23 |
|
SethRobertson
| jameslordhz: In order to get updates from the true upstream, the place you do not have commits from, you need to add it as a remote `git remote add upstream git://public/url/for/project | 01:23 |
|
jameslordhz
| SethRobertson dude, i have make commit to master, and pushed it the vps_repo, so the master branch now is not the one before i made commits, how can git branch newbranch master works in the way i want:( | 01:23 |
| → sattu94 joined | 01:24 |
| → Esa_S joined | 01:24 |
|
cmn
| do you know what "git branch newbranch master" does? | 01:24 |
|
SethRobertson
| (Hint, the answer is not. See man git-branch) | 01:24 |
|
gitinfo
| the git-branch manpage is available at http://jk.gs/git-branch.html | 01:24 |
|
jameslordhz
| cmn dude, create a branch based on master's current commit point, right? | 01:25 |
| → ajaykools joined | 01:25 |
| ← satyanash left | 01:25 |
|
cmn
| and how is that not exactly what you asked for? | 01:26 |
|
| and for the nth time, don't call me dude | 01:26 |
| ← dnjaramba left | 01:27 |
|
jameslordhz
| why git branch -r is different from -a? | 01:27 |
| → dnjaramba joined | 01:27 |
|
cmn
| because they're different options | 01:27 |
|
| each shows you different things | 01:28 |
| → cooloney joined | 01:28 |
|
jameslordhz
| what is the difference then? | 01:28 |
|
cmn
| man git branch | 01:28 |
|
gitinfo
| the git-branch manpage is available at http://jk.gs/git-branch.html | 01:28 |
| → fisted_ joined | 01:28 |
|
g0th
| aaarg | 01:29 |
|
| now I did the commit command without adding any files ^^ | 01:29 |
|
| lol | 01:29 |
| ← fisted left | 01:29 |
| ← [M]ax left | 01:29 |
| ← drizzd left | 01:30 |
|
g0th
| does it do anything if I do commit without any changes? | 01:30 |
| → [M]ax joined | 01:30 |
|
jameslordhz
| is it need to reserve master branch to track remote changes? | 01:30 |
| → forsto joined | 01:30 |
| → Aaaarg joined | 01:30 |
|
SethRobertson
| g0th: It prints nothing to commit (working directory clean) | 01:30 |
|
| jameslordhz: No. You may do it, but it is not required | 01:31 |
|
cmn
| g0th: if there are no changes in the index, it will complain | 01:31 |
|
SethRobertson
| jameslordhz: You could give it another name, you could just depend on merges/rebases. You have the power. | 01:31 |
|
jameslordhz
| SethRobertson dude, is it a best practise to reserve master branch to track remote repo which you have no rights to write to? | 01:32 |
|
SethRobertson
| It is not a best practice. As I said, if you are tracking the true upstream there is already a branch reserved for that. | 01:32 |
|
bremner
| is it unreasonable to want to /kick someone for overusing the word dude? | 01:32 |
| ← vandal- left | 01:32 |
|
SethRobertson
| No! | 01:32 |
|
cmn
| not at all | 01:32 |
|
| jameslordhz: branch names are just names; master is the default so many people use it, but there is no need for it | 01:33 |
| → bgerber joined | 01:33 |
|
SethRobertson
| But even when using master, reserving it to track another repo's master isn't exactly common. Some people do, some people do not | 01:35 |
| ← hyperair left | 01:35 |
|
jameslordhz
| cmn dude, the best solution is just as said, that is git branch newbranch master, right? then i could reset commits to Head~1 on master branch, that is what i want? | 01:35 |
| ChanServ set mode: +o | 01:35 |
| ← ryanisnan left | 01:36 |
|
cmn
| since you clearly can't understand simple instructions and don't bother reading any documentation, I'm going to stop here | 01:36 |
|
jameslordhz
| SethRobertson so how to reserve a clean branch to track remote changes, and only make modification on my own branch? | 01:36 |
| → hyperair joined | 01:37 |
| ← herdingcat left | 01:37 |
|
ko1
| bremner, chill, dude | 01:37 |
|
| bremner looks innocent | 01:37 |
| ← dnjaramba left | 01:37 |
| → dnjaramba joined | 01:38 |
|
SethRobertson
| I agree. We have told you N times how to do what you want jameslordhz and I have already told you that you already have reserved a clean branch. Do what we tell you to and come back if it does not work. | 01:38 |
| ← ploop left | 01:39 |
|
jameslordhz
| SethRobertson you mean a branch named remotes/master, right? | 01:39 |
|
g0th
| how can I check if it commited? | 01:39 |
| → boombatower joined | 01:40 |
|
SethRobertson
| jameslordhz: For values of "remotes" equal to the name of a non-origin remote, yhes | 01:40 |
|
cmn
| 'git commit' will have told you, git show shows HEAD by default | 01:40 |
|
g0th
| can I see a history of commits? | 01:40 |
|
cmn
| git log | 01:40 |
| → DofLeFou joined | 01:40 |
|
cmn
| you might benefit from the !book | 01:40 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !vcbe and !parable | 01:40 |
|
g0th
| in git log I don't see my message | 01:41 |
|
| does it mean it was not commited? | 01:41 |
|
| (which would be perfect) | 01:41 |
| → dfr|mac joined | 01:41 |
|
SethRobertson
| g0th: Run: gitk --all --date-order | 01:41 |
|
| Or `git log --all --date-order` | 01:42 |
|
| In case it is on a different branch | 01:42 |
|
g0th
| I still don't see it | 01:42 |
|
ko1
| git diff? | 01:42 |
|
jameslordhz
| SethRobertson you mean there is already some branches created by git to track remote updates, and these branches cannot be polluted by my modification, right? | 01:42 |
|
ko1
| git status | 01:42 |
|
cmn
| what did git say when you told it to commit? | 01:42 |
|
g0th
| git diff is huuge | 01:42 |
| ← dnjaramba left | 01:43 |
|
g0th
| it printed something like a status | 01:43 |
| ← Heimidal left | 01:43 |
|
g0th
| forgot exactly | 01:43 |
| → dnjaramba joined | 01:43 |
| → dfr|mac_ joined | 01:43 |
|
g0th
| I don't think it printed "commited ...." | 01:43 |
|
SethRobertson
| jameslordhz: Yes | 01:43 |
|
cmn
| read it next time | 01:43 |
|
g0th
| is that normal if I didn't add _anything_ | 01:43 |
|
SethRobertson
| g0th: yes | 01:43 |
|
cmn
| yeah | 01:43 |
|
g0th
| so it most probably didn't really commit? | 01:44 |
|
| nice! :-) | 01:44 |
| bremner set mode: -o | 01:44 |
| ← sekati left | 01:44 |
|
g0th
| ok, now it showed a completely different message, thanks a lot guys | 01:46 |
| ← cjuner left | 01:47 |
| ← dfr|mac left | 01:47 |
| → wuj joined | 01:47 |
| ← dnjaramba left | 01:48 |
|
jameslordhz
| say SethRobertson run git branch remotes/origin/master, what will happen? | 01:48 |
| → dnjaramba joined | 01:48 |
|
jameslordhz
| SethRobertson after that remotes/origin/master can no longer track remote changes, yes? | 01:49 |
|
SethRobertson
| After that you have a mess, but *a* remotes/origin/master will be tracking the right stuff. | 01:50 |
|
| Run `git show-ref` and you will see the full name | 01:50 |
| ← sudoquai_ left | 01:50 |
| → nutron|w joined | 01:51 |
|
SethRobertson
| However, the basic answer is do NOT create a branch with a reserved word directory component or a remote's name directory component. It may work, but it is not a good idea | 01:51 |
| → jason237 joined | 01:52 |
| ← ajaykools left | 01:53 |
| → ceej joined | 01:53 |
| ← ceej left | 01:54 |
| ← ajt left | 01:55 |
| ← Esa_S left | 01:55 |
| → ajt joined | 01:56 |
|
jameslordhz
| SethRobertson so there is no need to reserve master branch to track remote updates, right? since there is a buildin branch to do work automatically, right? | 01:57 |
|
SethRobertson
| yes | 01:57 |
|
jameslordhz
| SethRobertson dude, so if i want to read code of the not modified version, that is it only has updates from remote repo, how to do this? | 01:59 |
| → Turicas joined | 01:59 |
|
SethRobertson
| git remote update upstream; git checkout upstream/master; Assuming the remote is named upstream of course | 02:00 |
|
| You will be on a detached head, but don't let that disturb you. Just don't make commits | 02:00 |
| → ploop joined | 02:00 |
| → BIRCOPI986 joined | 02:01 |
| ← hyperair left | 02:01 |
| ← Turicas left | 02:01 |
| ← BIRCOPI986 left | 02:01 |
| → ChaoWang joined | 02:03 |
| → Turicas joined | 02:03 |
|
jameslordhz
| SethRobertson dude, git checkout remotes/origin/master will create a branch named remotes/origin/master that is /refs/heads/remotes/origin/master, not a detached branch:( | 02:03 |
| ← dnjaramba left | 02:03 |
| → dnjaramba joined | 02:03 |
|
SethRobertson
| Why are you running different commands than the ones I told you to run? | 02:03 |
|
jameslordhz
| git branch remotes/origin/master, dude, i run this command | 02:04 |
|
| after the command has been runned, i am not on a detached branch:( | 02:05 |
|
SethRobertson
| Yes. I didn't tell you to do that and bad things happened when you did. Please delete that branch and run the command I told you to | 02:06 |
|
jameslordhz
| git remote update origin? | 02:06 |
| ← matthiaskrgr left | 02:07 |
| → matthiaskrgr joined | 02:07 |
|
SethRobertson
| Have you deleted the branch? Does `git branch` print anything about remotes or anything with a / in it? | 02:08 |
| → pdtpatr1ck joined | 02:08 |
| ← marvin_ left | 02:09 |
| ← Chillance left | 02:09 |
|
jameslordhz
| http://paste.ubuntu.com/849446/ | 02:10 |
|
| yes, dude | 02:10 |
|
SethRobertson
| Good. Step one, create the remote like I told you to. Search for `git remote add` in your channel history | 02:11 |
|
| Or read the man page | 02:11 |
| ← brian_g left | 02:11 |
|
jameslordhz
| SethRobertson dude, what do you want me to do? i have already add vps_repo using git remote add:) | 02:12 |
| ← dnjaramba left | 02:12 |
|
SethRobertson
| Then do `git remote update` | 02:12 |
| → dnjaramba joined | 02:12 |
|
jameslordhz
| SethRobertson http://paste.ubuntu.com/849448/ i am still on master branch, dude , not a detached branch:( | 02:13 |
| → kurtzhong joined | 02:13 |
|
SethRobertson
| Yes, but I think you will find I told you to run a command after that. | 02:14 |
|
| (21:00:04) SethRobertson: git remote update upstream; git checkout upstream/master; Assuming the remote is named upstream of course | 02:14 |
|
| Oh, and I don't recommend naming the remote "notes" either. You might confuse people into thinking it has something to do with the notes functionality in git | 02:14 |
| ← Yuuhi` left | 02:15 |
| ← tewecske left | 02:16 |
| → Jay_Levitt joined | 02:16 |
|
jameslordhz
| SethRobertson why i should use git checkout origin/master, but git checkout remotes/orgin/master, the only difference is that the latter creates a branch with a branch name, the formmer is a detached branch:) | 02:16 |
| ← stringoO left | 02:16 |
| ← Turicas left | 02:17 |
| → BiggFREE joined | 02:17 |
|
SethRobertson
| git has rules about branch names and trying to DWIM. Just do it the way that works. the way that I told you. | 02:17 |
| ← mklappstuhl left | 02:17 |
| → Goplat joined | 02:17 |
| → zdk joined | 02:18 |
|
jameslordhz
| SethRobertson thank you: ) but what is DWIM? | 02:19 |
|
FauxFaux
| DO WHAT I MEAN | 02:19 |
| ← dr_win left | 02:20 |
| → hyperair joined | 02:21 |
| ← Destos left | 02:21 |
| → Windwaker joined | 02:22 |
|
lahwran
| Windwaker: hi | 02:22 |
| ← linusoleander left | 02:22 |
| gitinfo set mode: +v | 02:22 |
| → subbyyy joined | 02:22 |
| ← jameslordhz left | 02:22 |
|
Windwaker
| oh hai lahwran :p | 02:22 |
| → Vampire0_ joined | 02:23 |
|
Windwaker
| anyone know if you can un-squash commits in git? | 02:23 |
| ← arietis left | 02:23 |
|
FauxFaux
| Windwaker: Sure, rebase -i, edit them, then add -p the bits you want, and re-commit the part. That, or recover your deleted history from the reflog. !gka | 02:26 |
|
gitinfo
| Windwaker: For a better way to view the reflog, try: gka() { gitk --all $(git log -g --format="%h" -50) "$@"; }; gka | 02:26 |
| ← ploop left | 02:26 |
|
Windwaker
| FauxFaux: But I now have 1 commit (which were 2) and I want to un-squash them | 02:26 |
|
| or am I missing something | 02:26 |
| ← Vampire0 left | 02:26 |
| → n8o-mba joined | 02:27 |
|
SethRobertson
| Windwaker: See !fixup. You can do it in two ways. You can find the commit before the rebase or you can split the commit in another rebase | 02:27 |
|
gitinfo
| Windwaker: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info) | 02:27 |
| → xiangfu joined | 02:29 |
|
Windwaker
| It's probably just less trouble to delete the forked repo at this point actually :p | 02:29 |
|
| then re-fork | 02:30 |
| → posciak1 joined | 02:30 |
| → herdingcat joined | 02:30 |
|
SethRobertson
| Not necessary, but that provides a third and fourth method. I'd actually recommend doing it the hard way to gain experience in a setting where it doesn't make a difference | 02:30 |
|
| (The fourth way is to add the upstream repo as a remote and then reset master to upstream/master, BTW) | 02:31 |
| → simplechat joined | 02:33 |
| ← simplechat left | 02:33 |
| → simplechat joined | 02:33 |
| → TeckniX_ joined | 02:34 |
| ← aspotashev left | 02:34 |
| → n8o-mba_ joined | 02:35 |
| ← n8o-mba left | 02:35 |
| ← hyperair left | 02:35 |
| ← dnjaramba left | 02:35 |
| → dnjaramba joined | 02:36 |
| ← mikepack left | 02:37 |
| → weiyang joined | 02:37 |
| ← TeckniX left | 02:37 |
| TeckniX_ → TeckniX | 02:37 |
| ← flavius left | 02:39 |
| → vervic joined | 02:39 |
| ← jds left | 02:40 |
| → jds joined | 02:41 |
| → TTSDA joined | 02:41 |
| → hyperair joined | 02:42 |
| ← ajt left | 02:45 |
| ← TeckniX left | 02:46 |
| ← hyperair left | 02:46 |
| → dotnull joined | 02:47 |
| → posciak2 joined | 02:49 |
| ← iamjarvo left | 02:49 |
| → mklappstuhl joined | 02:50 |
|
weiyang
| hi, all, I did clone a repo and do some changes and commit, after a while I want to update the repo. So I use git fetch. Currently it works fine. But I am afraid one day I may face the conflict. So normally, what should we do if we want to do some change? create a new local branch? | 02:50 |
| ← posciak1 left | 02:51 |
| ← forsto left | 02:51 |
| ← dnjaramba left | 02:52 |
| → forsto joined | 02:53 |
| ← maek left | 02:53 |
| ← dotnull left | 02:54 |
| → zulax joined | 02:55 |
| → wroathe joined | 02:55 |
| ← groovehunter left | 02:56 |
|
wroathe
| Are there any environment variables that git sets to get the current branch? | 02:56 |
|
| like $GIT_BRANCH or something | 02:56 |
| ← Windwaker left | 02:56 |
|
FauxFaux
| git symbolic-ref HEAD | 02:56 |
| ← apok left | 02:56 |
| → hyperair joined | 02:57 |
| → resmo__ joined | 02:57 |
| ← diverdude left | 02:58 |
| → Justasic joined | 02:58 |
| ChanServ set mode: +v | 02:59 |
| → caseymcg joined | 02:59 |
| → Nathandim joined | 03:00 |
| ← pdtpatr1ck left | 03:00 |
| → rurufufuss joined | 03:00 |
| ← resmo left | 03:01 |
| ← wuj left | 03:01 |
| → tga joined | 03:02 |
| → gumnos joined | 03:04 |
| ← t0rc left | 03:05 |
|
gumnos
| I've got a custom log format that colorizes, but when I pipe it, it dumps the escape characters into the piped output. Is there a way to get git to recognize that stdout isn't a tty and suppress the escape characters? | 03:05 |
| → shergill joined | 03:05 |
|
gumnos
| log --date-order --format='format:%Cblue%ci %Cred%h %Creset%s' | 03:06 |
| → intripoon_ joined | 03:06 |
| ← twisted` left | 03:07 |
| → twisted` joined | 03:07 |
| → Balrog joined | 03:08 |
| → groovehunter joined | 03:09 |
| → dnjaramba joined | 03:09 |
|
Justasic
| does anyone in here use cgit with syntax highlighting? | 03:09 |
| → mikepack joined | 03:10 |
| ← intripoon left | 03:10 |
|
SethRobertson
| wroathe: no | 03:10 |
| ← arvind_khadri left | 03:11 |
| ← th5th left | 03:11 |
| ← Biopandemic left | 03:12 |
|
SethRobertson
| gumnos: No, because you are telling git what to do. What you could do is write a wrapper which tests the tty and calls with different arguments | 03:12 |
| ← twisted` left | 03:12 |
| → apok joined | 03:12 |
| → mxweas_ joined | 03:13 |
|
gumnos
| I guess I was hoping it would be like some *nix tools have a "--color=auto" option. Ah well. | 03:13 |
|
| Since it's an alias, I can just duplicate it, making one a colorized version, the other a pipeable versino | 03:14 |
| ← mikepack left | 03:14 |
| ← dnjaramba left | 03:14 |
| → uu joined | 03:15 |
| ← cakehero left | 03:15 |
| → wuj joined | 03:15 |
| → dnjaramba joined | 03:16 |
| ← zulax left | 03:20 |
|
weiyang
| how git diff to show change of a particular commit? I have to specify the two commit number? | 03:20 |
| ← tga left | 03:20 |
| → tga joined | 03:21 |
|
tga
| greetings | 03:21 |
|
SethRobertson
| weiyang: That is one of your many optinos | 03:22 |
| ← dnjaramba left | 03:22 |
|
weiyang
| SethRobertson, yes i think so , but i found it not convenient. I have to find the parent commit of which I really want to see | 03:22 |
| → dnjaramba joined | 03:23 |
|
SethRobertson
| gumnos: It does. git's self-colorization is enabled/disabled as necessary. You are not using that. | 03:23 |
|
weiyang
| SethRobertson, so i have to search the git log | 03:23 |
| ← mklappstuhl left | 03:23 |
|
SethRobertson
| weiyang: If you want to see a specific commit's diff, use `git show SHA`. You could also say `git diff SHA^...SHA` | 03:23 |
|
weiyang
| SethRobertson, oh, i could use SHA^ | 03:24 |
| ← n8o-mba_ left | 03:24 |
|
weiyang
| SethRobertson, i know the git show, sine I want to use git difftool, so... | 03:25 |
|
| SethRobertson, your SHA^...SHA works fine, thanks | 03:25 |
|
SethRobertson
| !thanks | 03:26 |
|
gitinfo
| Feeling thankful? Type "ExampleUser++", and ExampleUser will score karma points at http://carmivore.com (our preferred way to objectify self-worth). There's really no point to thanking me – instead, why not thank the person who made me help you? | 03:26 |
| ← metcalfc left | 03:26 |
| → mklappstuhl joined | 03:26 |
| ← p3rror left | 03:27 |
| → rtconner joined | 03:27 |
|
tga
| simple one: if I merged with another branch and got a conflict (binary file), and I want to ignore the other branch's version and keep mine | 03:27 |
| ← mxweas_ left | 03:27 |
|
tga
| do I git add my current file or what? | 03:27 |
| ← Z3Rt left | 03:29 |
| ← orafu left | 03:29 |
| → orafu joined | 03:29 |
| → n8o-mba joined | 03:29 |
| ← rcu left | 03:30 |
| ← wuj left | 03:30 |
| ← neunon left | 03:31 |
| → rcu joined | 03:31 |
| → smw_ joined | 03:31 |
|
gumnos
| SethRobertson: Is there some option/config that I missed to get auto-coloration? When I run the above log command with the color format codes and pipe it to less (or vim/xxd/od), the ANSI escape sequences are present in the output. My config for color.{diff,status,branch} are all set to auto with no other color settings specified | 03:32 |
| → neunon joined | 03:32 |
|
gumnos
| or is it that, by including color formatting codes in the format-string, it overrides these, rather than behaving like the other colorizing areas of git? | 03:32 |
| → glennpratt joined | 03:33 |
| ← caseymcg left | 03:33 |
| → Bucciarati joined | 03:34 |
| ← dnjaramba left | 03:34 |
| → dnjaramba joined | 03:34 |
|
SethRobertson
| Search for color in man git-config | 03:37 |
|
gitinfo
| the git-config manpage is available at http://jk.gs/git-config.html | 03:37 |
| → preflex joined | 03:37 |
| ← dnjaramba left | 03:38 |
| → dnjaramba joined | 03:39 |
| ← cccaldas left | 03:40 |
|
SethRobertson
| tga: Yes. You can use `git mergetool` to help you do the right thing, but you essentially cause the correct file to be placed into the index | 03:40 |
| → pdtpatr1ck joined | 03:45 |
| ← legnaleurc left | 03:46 |
| ← pdtpatr1ck left | 03:46 |
| → Jedateach joined | 03:47 |
| → macabre^ joined | 03:47 |
| gitinfo set mode: +v | 03:47 |
|
Jedateach
| is it possible to add a sub module to a directory that is already tracked by git? | 03:47 |
| ← macabre left | 03:47 |
|
SethRobertson
| git does not track directories | 03:48 |
| → VladGh joined | 03:48 |
|
SethRobertson
| So you may add a submodule in a directory which has other files tracked by git | 03:48 |
|
Jedateach
| I'm trying to add the contents of a git repo to myproject/themes/ , where myproject is git enabled | 03:49 |
|
| but I get the error 'themes' already exists in the index | 03:49 |
| → legnaleurc joined | 03:49 |
| ← mklappstuhl left | 03:50 |
|
SethRobertson
| If you have files under themes (or themes is a file) known to git, you may not hide those files with a subproject. | 03:50 |
| → drpaul joined | 03:50 |
| ← hyperair left | 03:50 |
|
Jedateach
| SethRobertson: so the directory needs to be empty, is that what you mean? | 03:51 |
|
SethRobertson
| empty or non-existant | 03:51 |
|
Jedateach
| Ok, thanks, make sense | 03:51 |
|
| SethRobertson++ | 03:52 |
| ← Jedateach left | 03:53 |
| → beautifulmind joined | 03:54 |
| → hyperair joined | 03:54 |
| → legnaleurc_ joined | 03:54 |
| ← legnaleurc left | 03:54 |
| → dnjaramba_ joined | 03:57 |
| ← [M]ax left | 03:57 |
| ← dnjaramba left | 03:57 |
| ← diegoviola left | 04:00 |
| → [M]ax joined | 04:00 |
| ← dnjaramba_ left | 04:02 |
| ← n8o-mba left | 04:03 |
| → iband joined | 04:04 |
| ← lyddonb left | 04:04 |
| ← OOPMan left | 04:05 |
| → Fandekasp joined | 04:05 |
| → arvind_khadri joined | 04:06 |
| ← arvind_khadri left | 04:06 |
| → arvind_khadri joined | 04:06 |
| → dnjaramba joined | 04:06 |
| ← legnaleurc_ left | 04:07 |
| ← BiggFREE left | 04:07 |
| → theotherguy joined | 04:08 |
| → legnaleurc joined | 04:08 |
| ← theotherguy left | 04:08 |
| → linoj joined | 04:08 |
| → Blaster joined | 04:10 |
|
Blaster
| hey how would I browse the entire contents of a file from a past commit | 04:10 |
| ← plasticle left | 04:10 |
|
wereHamster
| Blaster: git show <commit>:<file> | 04:11 |
|
Blaster
| thanks | 04:11 |
| ← weiyang left | 04:12 |
|
Blaster
| so I have to use the MD5 hash for the <commit> of that command? | 04:12 |
|
| in windows git bash I can't copy from the console | 04:12 |
|
wereHamster
| it's a sha1 hash. and take your windows problem to microsoft. | 04:13 |
|
chrisf
| Blaster: if you have some name for the commit, relative to a branch, perhaps -- you can use that | 04:14 |
| ← arvind_khadri left | 04:14 |
|
chrisf
| you actually *can* copy from the windows console | 04:14 |
|
Blaster
| I wish I could use Linux for everything! | 04:14 |
|
| chrisf: how? | 04:14 |
|
| my window says MINGW32 at the top | 04:14 |
| ← legnaleurc left | 04:14 |
|
chrisf
| turn on quick edit mode, and it's even not a huge pain in the ass | 04:15 |
| ← dnjaramba left | 04:16 |
|
Blaster
| oh ok thanks I think I got it now | 04:16 |
| → legnaleurc joined | 04:16 |
| → mikepack joined | 04:19 |
| ← hyperair left | 04:20 |
| ← legnaleurc left | 04:21 |
| ← kukks left | 04:23 |
| → legnaleurc joined | 04:24 |
| → weiyang joined | 04:27 |
| → ajt- joined | 04:28 |
| ← Blaster left | 04:28 |
| → Blaster joined | 04:28 |
| ← rtconner left | 04:29 |
| ← legnaleurc left | 04:29 |
| ← notola left | 04:29 |
| ← linoj left | 04:29 |
| ← [M]ax left | 04:29 |
| → [M]ax joined | 04:30 |
| → theotherguy joined | 04:31 |
| → gavin_huang joined | 04:31 |
| → legnaleurc joined | 04:31 |
| ← legnaleurc left | 04:36 |
| → legnaleurc_ joined | 04:37 |
| ← bgerber left | 04:38 |
| → h0bbit joined | 04:39 |
| → bgerber joined | 04:43 |
| ← legnaleurc_ left | 04:44 |
| → arvind_khadri joined | 04:45 |
| ← arvind_khadri left | 04:45 |
| → arvind_khadri joined | 04:45 |
| → hyperair joined | 04:46 |
| → legnaleurc joined | 04:52 |
| → notola joined | 04:52 |
| → ajaykools joined | 04:52 |
| ← notola left | 04:53 |
| → Z3Rt joined | 04:53 |
| ← simplechat left | 04:54 |
| → lyddonb joined | 04:54 |
|
CareBear\
| click system icon, edit->copy | 04:55 |
|
| mark by dragging while holding left mouse button depressed | 04:55 |
|
| press enter to make copy and exit copy mode | 04:56 |
| ← Z3Rt left | 04:59 |
| ← neunon left | 04:59 |
| → harshpb joined | 05:02 |
| → jony joined | 05:02 |
| ← lyddonb left | 05:03 |
| ← eletuchy left | 05:05 |
| ← arvind_khadri left | 05:06 |
| → eletuchy joined | 05:08 |
| → dc5ala joined | 05:10 |
| ← [M]ax left | 05:10 |
| ← Fandekasp left | 05:10 |
| → legnaleurc_ joined | 05:10 |
| ← legnaleurc left | 05:10 |
| → fbsddom0 joined | 05:11 |
| → mxweas_ joined | 05:12 |
| ← ajaykools left | 05:13 |
| iband → iband|away | 05:13 |
| iband|away → iband | 05:14 |
| → psakrii joined | 05:14 |
| ← orospakr left | 05:15 |
| ← infogulch left | 05:16 |
| → legnaleurc joined | 05:17 |
| ← legnaleurc_ left | 05:17 |
| → theotherguy_ joined | 05:17 |
| ← mikepack left | 05:17 |
| → arvind_khadri joined | 05:18 |
| ← arvind_khadri left | 05:18 |
| → arvind_khadri joined | 05:18 |
| → [M]ax joined | 05:18 |
| → ploop joined | 05:18 |
| ← xiangfu left | 05:18 |
| → krz joined | 05:18 |
| → vogxn joined | 05:19 |
| ← theotherguy left | 05:19 |
| theotherguy_ → theotherguy | 05:19 |
| → xiangfu_ joined | 05:20 |
| → advatar joined | 05:21 |
| ← edude03 left | 05:22 |
| ← eletuchy left | 05:22 |
| ← legnaleurc left | 05:23 |
| → ryanisnan joined | 05:23 |
| ← joshsmith left | 05:23 |
| → xsbeats joined | 05:24 |
| → legnaleurc joined | 05:25 |
| ← h0bbit left | 05:28 |
| → mikepack joined | 05:32 |
| ← Enoria left | 05:32 |
| ← harshpb left | 05:34 |
| ← legnaleurc left | 05:35 |
| → stkrzysiak joined | 05:37 |
| ← diogogmt left | 05:40 |
| → krzkrzkrz joined | 05:41 |
| ← krzkrzkrz left | 05:41 |
| → krzkrzkrz joined | 05:41 |
| → legnaleurc joined | 05:41 |
| ← nevyn_ left | 05:41 |
| → nevyn joined | 05:41 |
| ← lonewulf` left | 05:42 |
| → zweb joined | 05:43 |
| ← krz left | 05:43 |
| masterhumper → sejo | 05:43 |
| → krz joined | 05:44 |
| ← krz left | 05:44 |
| → krz joined | 05:44 |
| ← wroathe left | 05:44 |
| ← krzkrzkrz left | 05:46 |
| → lonewulf` joined | 05:46 |
| → theotherguy_ joined | 05:48 |
| iband → iband|away | 05:48 |
| ← legnaleurc left | 05:48 |
| ← stkrzysiak left | 05:49 |
| → legnaleurc joined | 05:50 |
| ← mxweas_ left | 05:50 |
| ← theotherguy left | 05:51 |
| theotherguy_ → theotherguy | 05:51 |
| → Fandekasp joined | 05:52 |
| ← Bass10 left | 05:52 |
| → JohnBat26 joined | 05:52 |
| ← theotherguy left | 05:53 |
| → theotherguy joined | 05:54 |
| ← aristidesfl left | 05:55 |
|
jmcantrell
| are there any env vars that are set when running a script as a git extension? | 05:57 |
| ← legnaleurc left | 05:57 |
| → kadoban joined | 05:57 |
| → dorkmafia joined | 05:58 |
| → legnaleurc joined | 05:59 |
|
dorkmafia
| hi | 05:59 |
|
| i just did a git pull origin and it says "Your branch is ahead of 'origin/pod' by 1950 commits" | 05:59 |
|
nevyn
| you've been busy? | 05:59 |
|
dorkmafia
| i haven't made any commits to this branch … | 05:59 |
|
| nope | 05:59 |
|
| how do i reset my branch to origin? | 06:00 |
| → theotherguy_ joined | 06:00 |
|
dorkmafia
| or see the out going commits | 06:00 |
|
| so weird | 06:00 |
|
nevyn
| git reset --hard origin/pod | 06:00 |
|
| but this is | 06:00 |
|
| distructive | 06:00 |
|
| destructive even | 06:00 |
| → Heimidal joined | 06:00 |
| ← bgerber left | 06:00 |
|
dorkmafia
| i haven't made any commits though | 06:01 |
| ← mikepack left | 06:02 |
|
nevyn
| so I'd make a reference branch of where your branch is now.. just in case | 06:02 |
| → RajeevGEC joined | 06:03 |
| ← gchristensen left | 06:03 |
| → bgerber joined | 06:03 |
| ← legnaleurc left | 06:03 |
|
nevyn
| but then I'm paranoid. | 06:03 |
| ← theotherguy left | 06:04 |
| theotherguy_ → theotherguy | 06:04 |
| ← jony left | 06:04 |
|
wereHamster
| win 19 | 06:04 |
|
dorkmafia
| well it doesn't seem to make sense to me cause i git reset —hard origin/pod and it resets me then i git pull origin red-pod and it downloads a bunch of stuff | 06:04 |
|
| and says i'm ahead of the branch by 1950 commits | 06:04 |
| → legnaleurc joined | 06:04 |
| → gchristensen joined | 06:04 |
|
weiyang
| after I run git fetch, the file I have changed seem not be updated.... | 06:05 |
| → mikepack joined | 06:05 |
|
nevyn
| dorkmafia: how many remotes do you have? | 06:05 |
|
| weiyang: fetch doesn't touch the working directory | 06:05 |
|
CareBear\
| dorkmafia : did you ever create a commit? | 06:05 |
|
nevyn
| weiyang: you may want pull (fetch & merge) or to use rebase depending on your workflow | 06:06 |
|
CareBear\
| I like git pull --rebase | 06:06 |
|
dorkmafia
| carebear no i didn't | 06:06 |
| → stkrzysiak joined | 06:06 |
|
nevyn
| dorkmafia: did upstream get rebased? | 06:06 |
|
dorkmafia
| i have no idea how could i tell? | 06:07 |
| ← RajeevGEC left | 06:07 |
|
dorkmafia
| on github? | 06:07 |
| ← hyperair left | 06:07 |
|
CareBear\
| seems the only explanation | 06:07 |
|
nevyn
| dorkmafia: who's github? yours or someone elses? | 06:07 |
|
CareBear\
| nevyn : "whose" | 06:07 |
| ← mikepack left | 06:07 |
|
CareBear\
| sorry, I'm off now | 06:07 |
|
weiyang
| nevyn, hmm.... ok, I have done the git fetch, than i need to git rebase? let me view the help of git rebase :) | 06:08 |
|
dorkmafia
| mine | 06:08 |
| ← Fretta left | 06:08 |
| → cehteh joined | 06:08 |
|
nevyn
| weiyang: it depends on your workflow | 06:08 |
|
dorkmafia
| i was asking how i could tell if there had been an upstream rebase | 06:09 |
|
nevyn
| dorkmafia: then that seems unlikely if you own the github. | 06:09 |
|
| you'd know if you'd done a force update rebase of the github | 06:09 |
|
dorkmafia
| oh there are a lot of people on the team | 06:09 |
| → nixmaniack joined | 06:09 |
| ← gchristensen left | 06:10 |
|
weiyang
| nevyn, i am relatively new. I get the repo before, on the master branch, i did some commit, now i want to update the master branch | 06:10 |
|
dorkmafia
| so when i do a git reset—hard origin/pod it takes me back to feb 4 but when i do a git pull origin pod it takes me yesterday | 06:10 |
|
nevyn
| dorkmafia: don't use pull it's going to mess you up if you're working with many remotes. try git remote update | 06:11 |
| ← sattu94 left | 06:11 |
|
nevyn
| weiyang: it depends how you want history to look | 06:11 |
|
dorkmafia
| aight | 06:11 |
|
| will that update all of my remotes? | 06:11 |
|
nevyn
| weiyang: if you want masterA => masterB => masterC => yourworkhere => (masterD and E merged) => HEAD then use merge | 06:12 |
| → hyperair joined | 06:13 |
|
nevyn
| if you want masterA => B => C => D => E => yourworkhere then use rebase | 06:13 |
|
| dorkmafia: yep | 06:13 |
|
dorkmafia
| nice | 06:13 |
|
weiyang
| nevyn, oh... thanks :) | 06:13 |
|
dorkmafia
| is there a way to do just one? | 06:13 |
|
nevyn
| fetch | 06:13 |
|
| dorkmafia: why would you want out of date remotes? | 06:14 |
| ← jds left | 06:14 |
|
dorkmafia
| yah true | 06:15 |
|
nevyn
| weiyang: be aware... this will rewrite the yourworkhere commit. | 06:15 |
| → jds joined | 06:15 |
| ← ajt- left | 06:15 |
|
nevyn
| because it's parent commit is now E not C | 06:15 |
|
dorkmafia
| just want to make sure that this branch gets updated | 06:15 |
|
weiyang
| nevyn, ok, you mean the rebase method will recommit it. while the merge method will not? | 06:16 |
| → caseymcg joined | 06:16 |
|
nevyn
| the merge method is more "true" but often less useful | 06:16 |
| iband|away → iband | 06:17 |
| ← hyperair left | 06:17 |
| ← xiangfu_ left | 06:17 |
|
weiyang
| nevyn, ok, yes, you can not change the order of the upstream | 06:17 |
|
nevyn
| weiyang: well it makes commiting your work upstream harder. | 06:17 |
|
| the rebase mechinism always has yourwork ontop of upstream | 06:17 |
|
dorkmafia
| so now that brings me to the next fun question i'm pretty sure i have an idea of how to rebase a series of commits but I was wondering if anyone had a good explanation of what's actually going on.. | 06:18 |
|
weiyang
| nevyn, oh, got it. | 06:19 |
|
| nevyn, so rebase is a better choice | 06:19 |
|
nevyn
| weiyang: sometimes | 06:19 |
| ← zweb left | 06:19 |
| ← legnaleurc left | 06:19 |
|
nevyn
| often even | 06:19 |
| → harshpb joined | 06:19 |
|
weiyang
| :) | 06:20 |
| ← glennpratt left | 06:20 |
|
nevyn
| and by often I mean frequently not a child with no parents | 06:21 |
| → ThomasLocke joined | 06:22 |
| ← igotnolegs left | 06:22 |
| → dorisabayon joined | 06:22 |
| → jony joined | 06:22 |
| → dr_win joined | 06:23 |
| ← Fandekasp left | 06:25 |
| → sattu94 joined | 06:25 |
| ← JohnBat26 left | 06:26 |
| → JohnBat26 joined | 06:26 |
| → airborn joined | 06:29 |
| → Xizor joined | 06:30 |
| → notjohn joined | 06:30 |
|
vogxn
| hello all - how do i tell which branch a certain SHA-1 belongs to? i did git show-branch c98721w389 but that showed me c98721w389 which doesn't makes sense because i don't have a branch with that name | 06:31 |
| → legnaleurc joined | 06:32 |
| → _iron joined | 06:32 |
|
wereHamster
| vogxn: git branch --contains c98721w389 | 06:32 |
| ← beautifulmind left | 06:33 |
|
vogxn
| wereHamster: thanks, that returned nothingg. now i am further confused because I can't checkin because that commit didn't have a reviewer :) | 06:33 |
|
wereHamster
| git doesn't require reviewers | 06:34 |
|
bob2
| and the first thing does make sense, since both c98721w389 and whocares/somebranch both identify branches | 06:34 |
|
vogxn
| wereHamster: that's right. but our repo has to contain a reviewed-by in its comment message without which it rejects pushes | 06:34 |
| → theotherguy_ joined | 06:34 |
|
wereHamster
| and it never refuses to commit unless there is nothing to commit or the pre-commit hook refuses | 06:34 |
|
dorkmafia
| let's say i have a branch experimental with commits A,B,C,D and I want to rebase commits B,C,D over to my-branch what's the best way to go about this? | 06:35 |
|
vogxn
| wereHamster: it must be a pre-commit hook in the remote repo. thanks again. git branch --contains was what i was looking for | 06:35 |
|
wereHamster
| there is no pre-commit hook in th remote | 06:35 |
|
| there is pre-receive though | 06:35 |
|
| commits are local | 06:36 |
| ← theotherguy left | 06:36 |
| theotherguy_ → theotherguy | 06:36 |
|
vogxn
| wereHamster: i see, that makes sense then. thanks | 06:36 |
| ← sattu94 left | 06:38 |
| ← madewokherd left | 06:38 |
| → TrineLocke joined | 06:39 |
| → pfFredd joined | 06:40 |
| ← vervic left | 06:41 |
| → legnaleurc_ joined | 06:42 |
| ← legnaleurc left | 06:43 |
| ← dfr|mac_ left | 06:46 |
| ← pfFredd left | 06:46 |
|
dorkmafia
| so i just rebased but it looks like it didn't include my last commit :( | 06:47 |
|
| or rather it didn't include the first commit i made in the series | 06:47 |
|
| i guess i need to change it to the commit before my last change | 06:48 |
| → xiangfu joined | 06:49 |
| → legnaleurc joined | 06:49 |
|
dorkmafia
| is ~1 appropriate to use in this case? | 06:49 |
|
| or is it risky? | 06:49 |
| ← legnaleurc_ left | 06:50 |
|
weiyang
| nevyn, hm... i run "git rebase master", but still not see the changes... | 06:51 |
|
| nevyn, which step i may wrong? | 06:51 |
| → sattu94 joined | 06:51 |
|
weiyang
| richard@richard:~/git/qemu$ git rebase master | 06:51 |
|
| Current branch master is up to date. | 06:51 |
| → legnaleurc_ joined | 06:53 |
| ← legnaleurc left | 06:54 |
| ← [M]ax left | 06:54 |
| ← acl_ left | 06:55 |
| → Spockz` joined | 06:57 |
| ← uu left | 06:57 |
| → marthinal joined | 06:57 |
| ← rcu left | 06:57 |
| → rickmasta joined | 06:57 |
| → jargon- joined | 06:58 |
| ← subbyyy left | 06:59 |
| ← advatar left | 06:59 |
| → [M]ax joined | 07:00 |
| ← [M]ax left | 07:00 |
| ← rickmast left | 07:00 |
| → legnaleurc joined | 07:00 |
| → rryter joined | 07:01 |
| ← legnaleurc_ left | 07:01 |
| → [M]ax joined | 07:02 |
| ← stkrzysiak left | 07:03 |
| → legnaleurc_ joined | 07:04 |
| ← legnaleurc left | 07:04 |
| ← kurtzhong left | 07:05 |
| → jutaro joined | 07:06 |
| → gmarselis joined | 07:08 |
| ← project2501b left | 07:09 |
| ← jutaro left | 07:09 |
| ← Spockz` left | 07:09 |
| ← bgerber left | 07:10 |
| → hyperair joined | 07:10 |
| → kurtzhong joined | 07:11 |
| ← ryanisnan left | 07:12 |
| ← theotherguy left | 07:12 |
| ← codewrangler left | 07:12 |
| ← Dreamer3 left | 07:13 |
| → ipalaus_ joined | 07:13 |
| → vdv joined | 07:15 |
| → cbreak-work joined | 07:16 |
| ← gmarselis left | 07:17 |
| → Dragooon joined | 07:17 |
| ← legnaleurc_ left | 07:17 |
| → pass joined | 07:17 |
| ← pass left | 07:18 |
| → papegaaij joined | 07:18 |
| → w09x joined | 07:19 |
| ← krz left | 07:19 |
| → legnaleurc joined | 07:19 |
| → jceb joined | 07:19 |
| → theotherguy joined | 07:21 |
| ← papegaaij left | 07:21 |
| → jakob joined | 07:21 |
| → papegaaij joined | 07:22 |
| ← theotherguy left | 07:23 |
| → flijten joined | 07:25 |
| → theotherguy joined | 07:25 |
| → pass joined | 07:26 |
| ← pass left | 07:26 |
| ← legnaleurc left | 07:26 |
| → legnaleurc joined | 07:28 |
| → skoop joined | 07:28 |
| → ryanisnan joined | 07:29 |
| → ajaykools joined | 07:32 |
| ← arvind_khadri left | 07:33 |
| → knilz joined | 07:33 |
| → Shusshu joined | 07:34 |
| ← Shusshu left | 07:34 |
| ← w09x left | 07:36 |
| → legnaleurc_ joined | 07:37 |
| ← legnaleurc left | 07:37 |
| ← sattu94 left | 07:38 |
| → Sitethief joined | 07:39 |
| ← TTSDA left | 07:39 |
| → netiru joined | 07:39 |
| → giallu joined | 07:41 |
| → raatiniemi joined | 07:41 |
| ← legnaleurc_ left | 07:41 |
| → legnaleurc joined | 07:42 |
| → TTSDA joined | 07:43 |
| → thiago joined | 07:45 |
| ← ipalaus_ left | 07:45 |
| ← adamm left | 07:45 |
| → glcrazy joined | 07:47 |
| → ph^ joined | 07:47 |
| ← ph^ left | 07:47 |
| ← knilz left | 07:48 |
| ← legnaleurc left | 07:48 |
| ← mishok13 left | 07:48 |
| ← glcrazy left | 07:49 |
| → teweWORK joined | 07:49 |
| → ph^ joined | 07:49 |
| → w09x joined | 07:50 |
| → sattu94 joined | 07:51 |
| → theotherguy_ joined | 07:51 |
| ← airborn left | 07:52 |
| ← tatsuya_o left | 07:54 |
| ← theotherguy left | 07:55 |
| theotherguy_ → theotherguy | 07:55 |
| ← w09x left | 07:56 |
| → h0bbit joined | 07:56 |
| → theotherguy_ joined | 07:58 |
|
dorkmafia
| I have some commits that I cherrypicked and I accidentally picked some in the wrong order then pushed… is it possible to still rebase this branch to reorder the commits? | 07:58 |
| ← cooloney left | 07:59 |
| ← theotherguy left | 08:00 |
| theotherguy_ → theotherguy | 08:00 |
| → rendar joined | 08:00 |
| ← lapistano left | 08:01 |
| → arvind_khadri joined | 08:01 |
| ← arvind_khadri left | 08:01 |
| → arvind_khadri joined | 08:01 |
|
mst
| yes, but you'll have to force push | 08:01 |
|
| but that's ok provided nobody else pulled yet | 08:02 |
| → lapistano joined | 08:02 |
| ← Goplat left | 08:05 |
| → noyb joined | 08:06 |
| → mishok13 joined | 08:08 |
| ← ryanisnan left | 08:10 |
| ← vdv left | 08:10 |
| → krz joined | 08:10 |
| ← weiyang left | 08:11 |
| → gulden joined | 08:11 |
| → GeorgeSebastian joined | 08:11 |
| ← GeorgeSebastian left | 08:11 |
| → GeorgeSebastian joined | 08:11 |
|
dorkmafia
| ok | 08:12 |
|
| what if they have? | 08:12 |
| ← justfielding left | 08:12 |
|
dorkmafia
| tell them to pull again? | 08:12 |
| → gnufied joined | 08:12 |
| ← gnufied left | 08:14 |
| → gnufied joined | 08:14 |
| ← herdingcat left | 08:14 |
| ← gnufied left | 08:15 |
| → psoo joined | 08:15 |
| → pro_metedor joined | 08:15 |
|
thiago
| no | 08:16 |
| → OOPMan joined | 08:16 |
|
thiago
| tell them to erase and clone again | 08:16 |
| ← js__ left | 08:18 |
| → brokenshakles joined | 08:18 |
| → tqmz joined | 08:18 |
|
dorkmafia
| ouch | 08:20 |
|
| i can just revert and push | 08:20 |
|
| right? | 08:20 |
|
thiago
| yes, git revert is fine | 08:21 |
| ← shergill left | 08:21 |
| → maleknet joined | 08:22 |
| ← tga left | 08:22 |
| → tga joined | 08:23 |
| ← tga left | 08:23 |
| → tga joined | 08:23 |
| → Dave^| joined | 08:24 |
| → advatar joined | 08:29 |
| ← JohnBat26 left | 08:30 |
| ← harshpb left | 08:32 |
| → chepre joined | 08:32 |
| → DrNick joined | 08:32 |
| → marvin_ joined | 08:33 |
| ← advatar left | 08:34 |
| → lb joined | 08:34 |
| → advatar joined | 08:34 |
| → gusnan joined | 08:34 |
| → JohnBat26 joined | 08:34 |
| ← advatar left | 08:35 |
| → johnhamelink joined | 08:37 |
| → codeshah joined | 08:37 |
| → harshpb joined | 08:37 |
| → milli joined | 08:38 |
| → stodan joined | 08:39 |
| ← notfunk left | 08:40 |
| → notfunk joined | 08:41 |
|
dorkmafia
| thiago: so can i revert a range of commits at once? | 08:43 |
| → ipalaus_ joined | 08:43 |
| ← QaDeS_ left | 08:43 |
|
thiago
| I think revert now accepts a range | 08:43 |
|
| but if it doesn't, you can easily revert one at a time | 08:44 |
| ← kaimi left | 08:44 |
| ← sh4rm4 left | 08:45 |
|
dorkmafia
| git revert —hard SHA..SHA | 08:45 |
|
| like that? but it gives me an error | 08:45 |
| ← lb left | 08:47 |
|
thiago
| no, not like that | 08:49 |
|
| remove the --hard | 08:49 |
|
| this is revert, not reset | 08:49 |
| → Salonce joined | 08:51 |
| → kaimi joined | 08:51 |
| → lb joined | 08:54 |
| ← olinux left | 08:55 |
| → shruggar joined | 08:55 |
|
pro_metedor
| how to return to stashed changes ? | 08:58 |
| ← [M]ax left | 08:58 |
|
shruggar
| pro_metedor: usually "git stash pop" | 08:59 |
|
pro_metedor
| thanks :) | 08:59 |
| → cooloney joined | 09:00 |
| → herdingcat joined | 09:01 |
| ← harshpb left | 09:01 |
| ← Heimidal left | 09:01 |
| → _Qman joined | 09:02 |
| → osa1 joined | 09:02 |
| → [M]ax joined | 09:02 |
|
osa1
| is there a way to see diff of two commits? I have commit hashes | 09:02 |
| → Dreamer3 joined | 09:02 |
|
someprimetime
| i want to clone a repo from my server on my local machine, but i ssh with a port number generally how can i do this with git clone? | 09:03 |
|
| git clone ssh://me@domain.com:PORT# ? | 09:03 |
| ← BlindOracle left | 09:04 |
| ← osa1 left | 09:04 |
| ← vogxn left | 09:04 |
|
someprimetime
| nvm yes | 09:05 |
|
thiago
| OOPMan: git show SHA1 | 09:07 |
|
OOPMan
| thiago: Wrong person | 09:07 |
|
thiago
| yes, sorry | 09:07 |
| → jatt joined | 09:07 |
|
thiago
| the person who asked has left | 09:07 |
| ← fayimora left | 09:08 |
| ← rue left | 09:08 |
| → fayimora joined | 09:09 |
| → beautifulmind joined | 09:09 |
| → Spockz joined | 09:09 |
| → eijk joined | 09:10 |
| → wadkar joined | 09:10 |
| → johnathanb joined | 09:10 |
| → FernandoBasso joined | 09:10 |
|
wadkar
| how do I see diff between two branches for a given file ? | 09:10 |
|
someprimetime
| so i just cloned my directory from my server into a folder on my local client machine which seemed to work fine (pulled all the contents from that repo), but when i go git branch i get: fatal: Not a git repository (or any of the parent directories): .git | 09:10 |
|
| do i need to git init within the cloned directory? | 09:10 |
|
charon
| wadkar: git diff branch1 branch2 -- filename | 09:10 |
|
wadkar
| charon: sweet ! thanks | 09:11 |
| → whitman joined | 09:11 |
|
charon
| wadkar: or perhaps more usefully, gitk branch1...branch2 -- filename | 09:11 |
|
wadkar
| whats the difference between spaces and three dots ? | 09:11 |
|
charon
| (yes, that's something entirely different, i just wanted to point it out) | 09:11 |
|
thiago
| someprimetime: you need to cd into the directory that clone created | 09:11 |
|
| wadkar: the space in git diff is equivalent to two dots | 09:11 |
|
someprimetime
| thiago: in it now | 09:11 |
|
thiago
| wadkar: A..B | 09:11 |
|
charon
| wadkar: the second one graphically looks at the difference in history between the branches, as pertaining to changes to filename | 09:11 |
|
thiago
| wadkar: A...B is A B --not $(git merge-base A B) | 09:11 |
|
someprimetime
| thiago: woops | 09:11 |
|
| no i wasn't | 09:12 |
|
| thanks | 09:12 |
| ← VladGh left | 09:12 |
|
someprimetime
| cool | 09:12 |
| → theotherguy_ joined | 09:12 |
|
charon
| thiago: except sadly in git-diff it's special-cased anyway ;) | 09:12 |
|
thiago
| charon: right | 09:12 |
|
| someprimetime: ^^^^ | 09:12 |
|
wadkar
| thiago: ohhk, thanks. I may not understand it completely but I think I get what you are trying to say | 09:12 |
| → LimeBlast joined | 09:12 |
|
wadkar
| I will go with gitk version | 09:13 |
| ← maletor left | 09:13 |
| ← theotherguy left | 09:14 |
| theotherguy_ → theotherguy | 09:14 |
|
wadkar
| errm, does it matter which branch i name first ? i mean git diff 0.1 0.2 -- foo.sql | 09:14 |
|
charon
| wadkar: they're really special-cased. 'diff A..B' is the same as 'diff A B'. 'diff A...B' is the same as 'diff M B', where M is the "fork point" where B started diverging from A (= one merge-base of) | 09:14 |
|
someprimetime
| thiago: ok i did my first commit/push from my local machine on the repo that i cloned. so i just pushed it to my server.. now how do i know that my server received my changes? | 09:15 |
|
charon
| wadkar: however, in all other commands (log, gitk, etc) A..B means "everything contained in B that is not contained in A", whereas A...B means "everything contained in A or B but not in both" | 09:15 |
|
someprimetime
| sorry didnt' mean to ask you specifically this question in here | 09:15 |
|
| i was gonna say thanks then just started adding to the message | 09:15 |
|
thiago
| someprimetime: well, git log origin/branchname should show them | 09:15 |
| → PigeonFriend joined | 09:15 |
|
thiago
| someprimetime: if git push said it was accepted without error, then it was accepted | 09:15 |
| → truzie joined | 09:16 |
|
charon
| wadkar: and yes, 'diff A B' gives the "opposite" diff of 'diff B A' :) | 09:16 |
|
thiago
| someprimetime: if you REALLY want to be sure, git ls-remote origin, then check that the SHA-1 you wanted to push shows up. | 09:16 |
|
someprimetime
| ah ok that'll do i think thanks :) | 09:16 |
|
| this is cool. | 09:16 |
|
thiago
| someprimetime: note this only works if no one else submits another change right afterwards | 09:16 |
|
wadkar
| charon: aha ! understood, thanks for the simple explanation | 09:16 |
| → BlindOracle joined | 09:17 |
| → CombatCow joined | 09:17 |
|
wadkar
| charon: wow, I never knew git is so specific about what a simple extra dot means, the order of arguments .. phew , but after reading your explanation for 3rd time (and trying out few git diff/log commands) i get it now | 09:19 |
|
| thanks charon , thiago for your quick help ! I will get back to work now | 09:20 |
|
| later :) | 09:20 |
|
charon
| wadkar: glad i could help. i also made !dots for the next unsuspecting user | 09:20 |
|
gitinfo
| wadkar: In the log family (git-log, gitk, etc.) A..B means "everything in B but not in A" [formally: ^A B] and A...B means "everything in A or B but not in both" [formally: A B --not $(git merge-base A B)]. An empty "side" of the dots implies HEAD, so 'git log master..' is very different from 'git log master'! | 09:20 |
| ← milli left | 09:20 |
|
charon
| ah, --all was missing from the merge-base. fixed | 09:21 |
| → overbythere joined | 09:21 |
|
wadkar
| lol, thats handy !dots to remind myself of the simple explanation ... sweet ! | 09:21 |
|
gitinfo
| In the log family (git-log, gitk, etc.) A..B means "everything in B but not in A" [formally: ^A B] and A...B means "everything in A or B but not in both" [formally: A B --not $(git merge-base --all A B)]. An empty "side" of the dots implies HEAD, so 'git log master..' is very different from 'git log master'! | 09:21 |
| → nax joined | 09:23 |
| ← nax left | 09:23 |
| → dpino joined | 09:24 |
| ← caseymcg left | 09:24 |
| ← thiago left | 09:24 |
| → milli joined | 09:25 |
| → Pugnax_ joined | 09:27 |
| → Tommy[D] joined | 09:28 |
| → Element9_work joined | 09:28 |
| → kpreid joined | 09:30 |
| → soulcake_ joined | 09:31 |
| ← Balrog left | 09:31 |
| → drizzd joined | 09:31 |
| → Pugnax__ joined | 09:32 |
| → flavius joined | 09:32 |
| ← Pugnax__ left | 09:32 |
| → toabctl joined | 09:32 |
| → Pugnax__ joined | 09:33 |
| ← Pugnax_ left | 09:35 |
| → achadwick joined | 09:37 |
| → akiress joined | 09:42 |
| → d3v1an7 joined | 09:42 |
| ← d3v1an7 left | 09:42 |
| ← noyb left | 09:43 |
| → ben1066 joined | 09:43 |
| ← DofLeFou left | 09:44 |
| → tatsuya_o joined | 09:44 |
| ← tatsuya_o left | 09:44 |
| → tatsuya_o joined | 09:45 |
| → dr_lepper joined | 09:45 |
| ← ben1066_ left | 09:46 |
| → eijk_ joined | 09:47 |
| ← eijk left | 09:48 |
|
someprimetime
| so it looks like i'm successfully able to create files from my server's repo and pull them onto my cloned local branch (master), but how do i do it the other way around? | 09:49 |
|
| i created a new file locally in my master branch, committed it, then when i `git push` and then go to my server and do a `git pull` i get: fatal: 'origin' does not appear to be a git repository | 09:50 |
|
bob2
| why would you run pull there? | 09:51 |
| ← shruggar left | 09:51 |
| → theotherguy_ joined | 09:52 |
|
bob2
| and i suspect you don't understand why pushing to non-bare repos is discouraged | 09:52 |
| → Cromulent joined | 09:52 |
| ← tatsuya_o left | 09:53 |
|
someprimetime
| bob2: not quite sure total noob just trying to figure out how i can start editing files locally and merging them into master | 09:53 |
| → tatsuya_o joined | 09:53 |
|
bob2
| I don't think that's what you're asking for at all | 09:53 |
| ← oc80z left | 09:53 |
| → oc80z joined | 09:53 |
| ← oc80z left | 09:53 |
|
bob2
| short answer is if you want a checked out copy of your code on a server, you'll want to push to a bare repo | 09:54 |
|
| and have that bare repo, in its' post-receive hook, update the checkec-out non-bare repo | 09:54 |
|
| e.g. bu rynning 'cd /somedir ; git fetch ; git reset --hard origin/master' | 09:54 |
| ← theotherguy left | 09:54 |
| theotherguy_ → theotherguy | 09:54 |
| → oc80z joined | 09:55 |
|
someprimetime
| oh, so will this allow me to have final say (on the server) of whatever i push locally can be eventually merged in with master? | 09:55 |
|
| or am i just confused (i think the latter) | 09:55 |
|
bob2
| very confused | 09:55 |
|
someprimetime
| :\ | 09:55 |
|
| what i don't understand is this: i make have my own local branch, i make changes, commit, push ... where the heck does that go? like how can i find out if it's been received on the server? | 09:56 |
|
bob2
| your goal is simply to edit code on your desktop, and have things works so that when you push that code, it ends up updating some files on disk on a server? | 09:56 |
|
| you're imaginging that things are much much more complicated than they are | 09:57 |
|
someprimetime
| bob2: my goal is to be able to locally create a bunch of different branches, push that code to my server.. be able to check if i want that code that local code is good enough to go live on my site | 09:57 |
|
bob2
| when you have 'master' checked out locally, 'git push', by default, will push changes from /your local branch called 'master'/ to the remote branch called 'master' | 09:57 |
|
| that's it | 09:57 |
|
| it doesn't update files on disk | 09:57 |
|
| it doesn't do any magic | 09:57 |
| → shruggar joined | 09:57 |
| → crooksey joined | 09:58 |
|
bob2
| (er it obviously updates files in the git repo, but it doesn't update your source or whatever) | 09:58 |
|
someprimetime
| oh shit really? | 09:58 |
|
| ah ok | 09:58 |
|
bob2
| but you definitely didn't read the faq or a book | 09:58 |
|
| since they all tell you to not push to a non-bare repo | 09:58 |
|
| since it will confuse you | 09:58 |
|
someprimetime
| ok i'll do that now | 09:58 |
|
bob2
| anyway | 09:59 |
|
| delete code from server | 09:59 |
|
| make a bare repo on server | 09:59 |
| ← hyperair left | 09:59 |
|
someprimetime
| does the directory of the bare repo matter? or just put it anywhere | 09:59 |
|
bob2
| somewhere you can write to that isn't toally idiotic | 09:59 |
|
someprimetime
| ok | 09:59 |
|
bob2
| /srv/git/whocares.git is fine | 09:59 |
|
| or ~/repos/whoares.git | 09:59 |
|
| etc | 09:59 |
|
| you will find things far less confusing if give bare repos a .git suffix | 10:00 |
|
someprimetime
| ok | 10:00 |
|
bob2
| then get rid of all the other stuff on the server | 10:00 |
|
| then do 'git clone /srv/git/whocares.git/' somewhere on the server | 10:01 |
| → thiago joined | 10:01 |
| → Davey_ joined | 10:01 |
| → mulletro1 joined | 10:04 |
| → zdk_ joined | 10:04 |
| → PerlPilot joined | 10:04 |
| → tychoish joined | 10:04 |
| ← thiago left | 10:04 |
| ← oc80z left | 10:04 |
| ← PigeonFriend left | 10:04 |
| ← herdingcat left | 10:04 |
| ← gusnan left | 10:04 |
| ← tqmz left | 10:04 |
| ← jceb left | 10:04 |
| ← Xizor left | 10:04 |
| ← dorisabayon left | 10:04 |
| ← orafu left | 10:04 |
| ← zdk left | 10:04 |
| ← hwrdprkns left | 10:04 |
| ← tazle_ left | 10:04 |
| ← MissionCritical left | 10:04 |
| ← Noxville left | 10:04 |
| ← tychoish_ left | 10:04 |
| ← eli left | 10:04 |
| ← zorzar left | 10:04 |
| ← PerlJam left | 10:04 |
| ← jimi_hendrix left | 10:04 |
| → ypcat joined | 10:04 |
| → tazle__ joined | 10:04 |
| zdk_ → zdk | 10:04 |
| → shennyg_ joined | 10:04 |
| → Fandekasp joined | 10:04 |
| → ouah joined | 10:04 |
| ← rryter left | 10:04 |
| → hyperboreean joined | 10:04 |
| → hwrdprkns joined | 10:04 |
| → nomadtacos joined | 10:05 |
| → unnamedwill joined | 10:05 |
| → zorzar joined | 10:05 |
| ← dorkmafia left | 10:05 |
|
ouah
| with new git version, git difftool run vimdiff in read only mode | 10:05 |
|
| ([diff] is set to "tool = vimdiff" in .gitconfig) | 10:05 |
| → PigeonFriend joined | 10:05 |
| → sattu941 joined | 10:05 |
|
ouah
| how can I change that so my files are writeable? | 10:05 |
| ← sattu941 left | 10:06 |
| ← johnathanb left | 10:06 |
| → mastro joined | 10:06 |
| → DangerousDave joined | 10:06 |
| → retoryter joined | 10:06 |
| → crash\ joined | 10:07 |
| → bgerber joined | 10:07 |
| ← retoryter left | 10:08 |
| → johnathanb joined | 10:08 |
| → orafu joined | 10:09 |
| → tqmz joined | 10:09 |
| → speakman joined | 10:09 |
| → przemoc joined | 10:09 |
| → NickASloan joined | 10:09 |
| ← xiangfu left | 10:09 |
| → Noxville joined | 10:09 |
| ← drpaul left | 10:09 |
| → oc80z joined | 10:09 |
| ← sawjig left | 10:09 |
| → thiago joined | 10:10 |
| ← LimeBlast left | 10:10 |
| → albel727 joined | 10:11 |
| → kurtzhong_ joined | 10:11 |
| → retoryter joined | 10:11 |
| → sawjig joined | 10:11 |
| → Xizor joined | 10:12 |
| ← kurtzhong left | 10:12 |
| kurtzhong_ → kurtzhong | 10:12 |
| → gusnan joined | 10:12 |
| → jimi_hendrix joined | 10:13 |
| → Fissure joined | 10:13 |
| → heinrich5991 joined | 10:13 |
| → eli joined | 10:13 |
| ← netiru left | 10:15 |
| ← retoryter left | 10:16 |
| → netiru joined | 10:16 |
| → jave joined | 10:16 |
| → Matrixiumn joined | 10:17 |
| ← boombatower left | 10:17 |
| → senny joined | 10:17 |
| → pfig joined | 10:17 |
| → arietis joined | 10:17 |
| → retoryter joined | 10:17 |
| → Mission-Critical joined | 10:17 |
| → jceb joined | 10:18 |
| → jstemmer joined | 10:18 |
| ← jstemmer left | 10:18 |
| Mission-Critical → MissionCritical | 10:20 |
| ← codeshah left | 10:20 |
| → herdingcat joined | 10:21 |
| → iocor joined | 10:21 |
| ← DrNick left | 10:23 |
| → jstemmer joined | 10:24 |
| → valtih joined | 10:25 |
| ← herdingcat left | 10:26 |
|
valtih
| why typing .classpath into the .gitignore does not have any effect? How do I stop the file being managed by git? | 10:27 |
|
FauxFaux
| valtih: .gitignore doesn't affect tracked files. See man git rm --cached. | 10:27 |
|
gitinfo
| valtih: the git-rm manpage is available at http://jk.gs/git-rm.html | 10:27 |
| ← theotherguy left | 10:28 |
| → theotherguy joined | 10:28 |
| → EyesIsServer joined | 10:29 |
|
valtih
| Actually, I do not need to remove the file from either workspace or repository. I just want to ignore it. Why gitignore works for one file but not the other? | 10:29 |
|
FauxFaux
| Perhaps you should address my statement instead of re-stating yours. | 10:30 |
|
qwertz_
| valtih, did you add and commit .gitignore? | 10:31 |
|
cmn
| qwertz_: that's not the issue | 10:31 |
|
qwertz_
| oh, i see. FauxFaux is right | 10:31 |
| ← Fandekasp left | 10:32 |
|
qwertz_
| valtih, git rm --cached fileName removes the file from git tracking, however, it leaves a copy in your working directory | 10:32 |
| → cortana2 joined | 10:33 |
|
valtih
| ok, I'll try it | 10:33 |
|
| Anyway I would like to know why not-tracked files can be gitignored but tracked can not | 10:34 |
|
cmn
| because that's the saner variant | 10:34 |
|
| you either want to track files or you dont' | 10:34 |
| ← mastro left | 10:35 |
| ← CombatCow left | 10:35 |
|
valtih
| I see that git rm --cached is going to commit a file delete. I do not want to delete it from reporsitory. | 10:36 |
|
bob2
| if you think about it for a bit, you'll probably agree that having it operate on anything other than untracked files would be super confusing | 10:36 |
| ← bgerber left | 10:36 |
|
qwertz_
| valtih, what do you want then? | 10:36 |
| → na3r joined | 10:37 |
|
valtih
| I want to have a copy of file different from repository and git do not affect it | 10:37 |
| ← GeorgeSebastian left | 10:38 |
| ← Pugnax__ left | 10:38 |
| → khmarbaise joined | 10:38 |
|
cmn
| !config | 10:38 |
|
gitinfo
| [!configfiles] the recommended way is to change your application so that you can (perhaps optionally) store site-specific configuration/data in separate files, then keep those files out of version control. Still, see https://gist.github.com/1423106 for ways people have worked around the problem. | 10:38 |
|
cmn
| or just overwrite the file and don't commit it | 10:38 |
| → tcurdt joined | 10:39 |
|
valtih
| How !config is different from gitignore and how can I keep file not commited if this prefents any git operations (like checking out different branches)? | 10:40 |
|
gitinfo
| [!configfiles] the recommended way is to change your application so that you can (perhaps optionally) store site-specific configuration/data in separate files, then keep those files out of version control. Still, see https://gist.github.com/1423106 for ways people have worked around the problem. | 10:40 |
| → ajt joined | 10:40 |
|
qwertz_
| valtih, just stash the change before checking out a new branch - then apply the stash again | 10:41 |
|
valtih
| that is interesting, thanks. | 10:41 |
| → bgerber joined | 10:42 |
|
valtih
| Though, I would like to know a less workaround method | 10:42 |
|
cmn
| what do you actually want to achieve? | 10:42 |
| ← ploop left | 10:42 |
|
FauxFaux
| The thing we've explicitly stated isn't possible without a workaround, duh. | 10:43 |
| ← shibayu36 left | 10:43 |
| ← Cromulent left | 10:46 |
| → Pugnax_ joined | 10:46 |
| → d0k joined | 10:46 |
| ← cooloney left | 10:50 |
| → xjonc joined | 10:51 |
| → sh4rm4 joined | 10:52 |
| ← _Vi left | 10:52 |
| ← [M]ax left | 10:55 |
| ← toabctl left | 10:55 |
| ← johnhamelink left | 10:55 |
| → [M]ax joined | 10:58 |
| → johnhamelink joined | 10:58 |
| → mneorr joined | 10:59 |
|
cmn
| anything other than "track file: y/n" is going to be a workaround | 11:00 |
| → dr_win_ joined | 11:02 |
| as3llus_ → as3llus | 11:02 |
|
qwertz_
| valith, maybe you can create your branch (that you don't publish) and merge the branch you want to track. if you want to publish your changes, you can rebase your local branch onto the master and leave out the commit that changes your file | 11:03 |
| ← zdk left | 11:03 |
|
Nickeeh
| I killed a git checkout, and now git bisect reset nor checkout wants to complete anymore since I have additional untracked files which weren't untracked. :/ | 11:04 |
| → ASIRINeiluj joined | 11:05 |
|
Nickeeh
| (and thus will be overwritten) | 11:05 |
| ← tga left | 11:05 |
| ← Tureos left | 11:05 |
| ← dr_win left | 11:05 |
|
cmn
| what do you mean killed and what would you like to do? | 11:06 |
|
Nickeeh
| By killed I mean I terminated the process while it was busy | 11:07 |
|
| and now I'm left with "untracked files" which weren't untracked before. | 11:07 |
| ← someprimetime left | 11:08 |
|
cmn
| what process? | 11:09 |
| → prudnikov joined | 11:09 |
|
Nickeeh
| cmn, git checkout xD | 11:10 |
|
cmn
| it sounds like you stopped the index from getting updated, so HEAD and the index disagree | 11:10 |
| ← rickmasta left | 11:10 |
| ← posciak2 left | 11:10 |
|
Nickeeh
| mmmokay | 11:11 |
| → toabctl joined | 11:11 |
|
Nickeeh
| How can I fix it? | 11:12 |
|
cmn
| that depends on what the fix is | 11:12 |
|
| what would you like to do? how should the worktree/index/branch look like? | 11:12 |
|
Nickeeh
| Like some other commit I'd like to hceckout to | 11:12 |
|
cmn
| then you can use -f | 11:12 |
|
Nickeeh
| git checkout -f ? | 11:13 |
|
cmn
| to tell git to overwrite those untracked files, since they're not really untracked | 11:13 |
|
Nickeeh
| aaah | 11:13 |
|
| great, thanks :) | 11:13 |
|
cmn
| but do be careful when using -f with anything | 11:13 |
|
Nickeeh
| of course | 11:13 |
| → boomshanka joined | 11:15 |
| → hyperair joined | 11:17 |
| ← boomshanka left | 11:17 |
| → chuck^norris joined | 11:18 |
| ← fruight left | 11:18 |
|
chuck^norris
| hello everyone, and please excuse my noobishness :) i'm playing around with git, i cloned a remote repository, did some local changes, and pushed back. git status on the remote site shows the changes, but how'd i actually coommit them please? | 11:18 |
| ← Nathandim left | 11:18 |
| → Tureos joined | 11:19 |
| → DarkAR joined | 11:19 |
| → fruight joined | 11:19 |
| ← jony left | 11:20 |
|
cmn
| you commit with git commit | 11:21 |
|
| however, it sounds like you want to push to a non-bare repo, which isn't always that good an iea | 11:21 |
|
| have you read the !book? | 11:21 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !vcbe and !parable | 11:21 |
|
chuck^norris
| cmn: i have to admit i haven't, reading now, thanks | 11:22 |
| → posciak2 joined | 11:23 |
| → twisted` joined | 11:23 |
| → legnaleurc joined | 11:26 |
| ← chuck^norris left | 11:26 |
| ← fruight left | 11:27 |
| → mklappstuhl joined | 11:30 |
| ← legnaleurc left | 11:30 |
| ← kurtzhong left | 11:32 |
| → kurtzhong joined | 11:32 |
| ← wadkar left | 11:32 |
| ← rchavik left | 11:32 |
| ← Pugnax_ left | 11:33 |
| ← [M]ax left | 11:34 |
| ← GeertB left | 11:34 |
| → [M]ax joined | 11:35 |
| → Pugnax_ joined | 11:35 |
| → kurtzhong_ joined | 11:35 |
| ← kurtzhong left | 11:36 |
| kurtzhong_ → kurtzhong | 11:36 |
| → tga joined | 11:37 |
| ← tga left | 11:37 |
| → tga joined | 11:37 |
| → angelsl joined | 11:37 |
| ← ajaykools left | 11:38 |
| ← OOPMan left | 11:38 |
| ← arvind_khadri left | 11:38 |
| → Talvino joined | 11:38 |
| → na3r_ joined | 11:39 |
| → Black joined | 11:41 |
| ← gavin_huang left | 11:42 |
| → gavin_huang joined | 11:42 |
|
pom
| Can you help me with github here? | 11:42 |
|
EugeneKay
| !ask | 11:42 |
|
gitinfo
| yes, it's okay to ask questions here... in fact, you just asked one! ;) Pretty much any question is fine. We're not terribly picky. | 11:42 |
| ← na3r left | 11:42 |
| → Lgb joined | 11:43 |
|
EugeneKay
| Though if we don't know we'll point you to #github | 11:43 |
|
pom
| I forked someones project and now it's pretty much a new project based on theirs. It's not an in-place replacement. Can I rename it or should I start a new repo? I though it'd be nice to have the history left. | 11:44 |
|
| Sorry, I'm a retard apparently. I found it. | 11:44 |
|
EugeneKay
| The "fork" convention only deals with Github's Pull Request stuff. | 11:45 |
|
FauxFaux
| pom: Seems like it'd make sense to give it a new name, so long as you give credit to the old project? | 11:45 |
|
EugeneKay
| You can delete you repo + recreate it, pushing the same history back up | 11:46 |
|
FauxFaux
| Iirc github is fine with renaming repos as many times as you want. | 11:47 |
|
pom
| There was a rename feature actually. Very simple. It's so hard when you can't manpage it. ;) | 11:47 |
|
FauxFaux
| Iirc it was even fine with me fixing the case on one of my projects. I was pretty impressed. | 11:47 |
| → legnaleurc joined | 11:48 |
| → artib joined | 11:50 |
| → arvind_khadri joined | 11:50 |
| ← psakrii left | 11:51 |
| → ajaykools joined | 11:51 |
| ← artib left | 11:53 |
| → artib joined | 11:53 |
| ← legnaleurc left | 11:53 |
| → bgy joined | 11:54 |
| ← ajt left | 11:55 |
| → ajt joined | 11:56 |
| ← lapistano left | 11:58 |
| → lapistano joined | 11:58 |
| ← nixmaniack left | 11:59 |
| → Dave^|| joined | 11:59 |
| → legnaleurc joined | 12:01 |
| → na3r__ joined | 12:01 |
| ← Dave^| left | 12:02 |
| ← na3r_ left | 12:02 |
| ← Dragooon left | 12:03 |
| → brian_g joined | 12:04 |
| ← legnaleurc left | 12:05 |
| ← kurtzhong left | 12:05 |
| → ph^_ joined | 12:06 |
| ← krz left | 12:06 |
| → fruight joined | 12:07 |
| ← keller left | 12:07 |
| → akosikeno joined | 12:08 |
| ← artib left | 12:09 |
| ← ph^ left | 12:09 |
| ← stodan left | 12:09 |
| → artib joined | 12:10 |
| → stodan joined | 12:11 |
| → legnaleurc joined | 12:11 |
| → fayimora_ joined | 12:11 |
| ← fayimora_ left | 12:11 |
| → fayimora_ joined | 12:12 |
| ← Element9_work left | 12:12 |
| → artib1 joined | 12:13 |
| ← artib left | 12:13 |
| → Element9_work joined | 12:13 |
| ← fruight left | 12:13 |
| → amigojapan joined | 12:13 |
| ← fayimora left | 12:14 |
| fayimora_ → fayimora | 12:14 |
| → keller joined | 12:16 |
| ← smw_ left | 12:16 |
| ← artib1 left | 12:21 |
| → artib joined | 12:21 |
| → ph^ joined | 12:23 |
| → jameslord joined | 12:24 |
|
jameslord
| anybody here using svn? | 12:24 |
|
cmn
| if you have problems with svn, you should ask #svn | 12:25 |
| ← ChaoWang left | 12:25 |
| ← lapistano left | 12:25 |
| → lapistano joined | 12:26 |
| ← ph^_ left | 12:27 |
| ← artib left | 12:27 |
| → erichynds joined | 12:27 |
| → martinjlowm joined | 12:28 |
| → stamina joined | 12:29 |
| → uu joined | 12:30 |
| → theotherguy_ joined | 12:32 |
|
jameslord
| cmn, dude, i just want to use svn and git both:) | 12:33 |
| → lucas joined | 12:33 |
|
jameslord
| cmn but i am not sure if they can cooperate well:) | 12:33 |
|
cmn
| do you have a question about git? | 12:33 |
|
| check man git svn | 12:33 |
|
gitinfo
| the git-svn manpage is available at http://jk.gs/git-svn.html | 12:33 |
|
jameslord
| cmn dude, yes, i know git svn, the problem is that i want to use svn , git and eclipse at the same time:) | 12:34 |
| → OOPMan joined | 12:34 |
|
jameslord
| cmn and i may switch to different platforms oftenly, sometimes i may use vim:) | 12:35 |
| ← theotherguy left | 12:35 |
| theotherguy_ → theotherguy | 12:35 |
| ← toabctl left | 12:35 |
| → Pugnax__ joined | 12:35 |
|
cmn
| you editor is irrelevant | 12:35 |
|
canton7
| I don't know if EGit can handle git-svn. I suspect not. Just use command-line git and you'll be fine | 12:35 |
|
jameslord
| EGit is bull shit:( | 12:36 |
|
cmn
| you can use git-svn and svn if you're careful | 12:36 |
|
canton7
| well, I guess you can use EGit for commits and command-line git for dcommits, but hey | 12:36 |
|
jameslord
| i choose svn because subeclipse is nice tool:) | 12:36 |
| ← tga left | 12:36 |
|
cmn
| then use svn | 12:36 |
| ← ph^ left | 12:37 |
|
jameslord
| canton7 no, i just hate egit, it is bull shit:( | 12:37 |
|
canton7
| then just use command-line git, jameslord | 12:37 |
|
jameslord
| cmn i want to have the power of git at the same time:) | 12:37 |
|
cmn
| then don't use svn | 12:37 |
| ← lucas left | 12:37 |
|
cmn
| it's your workflow, you get to decide | 12:38 |
| → ph^ joined | 12:38 |
|
cmn
| if you want the power of git, use git | 12:38 |
| ← Pugnax_ left | 12:38 |
|
jameslord
| cmn can i use svn and git at the same time | 12:38 |
|
cmn
| I've answered this already | 12:38 |
|
jameslord
| cmn for example, i can commit using svn or git | 12:38 |
| → advatar joined | 12:38 |
|
canton7
| jameslord, the only way to tie git and svn together is to have a local git repo that talk to a remote svn repo | 12:39 |
| → lucas joined | 12:39 |
|
cmn
| or use subgit | 12:39 |
|
jameslord
| cmn dude, you told me git-svn, no svn:( | 12:39 |
| → bitkiller joined | 12:39 |
|
cmn
| exactly | 12:39 |
|
| git-svn makes git interoperate with a svn repo | 12:39 |
|
| and AFAIK subgit is the only thing that makes svn interoperate with a git repo, kinda | 12:40 |
|
jameslord
| cmn but i want to use subeclipse:( | 12:40 |
|
canton7
| jameslord, you can not use a subversion tool on a git repo | 12:41 |
|
cmn
| you either want to use git or subeclipse | 12:41 |
|
jameslord
| cmn subeclipse is powerful:) | 12:41 |
|
cmn
| then use that, if it has the power you want | 12:41 |
|
jameslord
| cmn no, dude, i want to use git and subeclilpse at the same time:) | 12:41 |
|
cmn
| but you just implied it's not powerful enough for you | 12:41 |
|
canton7
| jameslord, subeclipse talks to subversion. If you want to use subeclipse, you can't use git. If you want to use git, you can't use subeclipse | 12:41 |
|
cmn
| then use subgit, as I've said severl times | 12:41 |
| ← chepre left | 12:41 |
|
jameslord
| canton7 very sad to hear that:( | 12:42 |
| ← macabre^ left | 12:42 |
| ← mneorr left | 12:42 |
|
cmn
| each tool operates with itself, is that so hard to understand? | 12:43 |
|
| take a look at subgit if you want to use svn and git to talk to the same repo | 12:43 |
|
canton7
| jameslord, it's like... I can't use use a media player to read my email. | 12:43 |
|
jameslord
| cmn subgit is not so nice:( i must have a subgit server:( | 12:43 |
|
cmn
| jameslord: exactly | 12:43 |
| ← lucas left | 12:43 |
|
cmn
| for the reasons we've outlined above | 12:44 |
|
| you need a http server to serve web pages, your mail server won't do it | 12:44 |
| → lucas joined | 12:45 |
| ← tatsuya_o left | 12:45 |
| → tatsuya_o joined | 12:47 |
| → iamjarvo joined | 12:47 |
| → Z3Rt joined | 12:49 |
|
jameslord
| hell ride:) | 12:50 |
|
| nice | 12:50 |
| ← bitkiller left | 12:50 |
| ← ajt left | 12:51 |
| ← arietis left | 12:51 |
|
jameslord
| if you with git-svn, which style of usage will you choose | 12:52 |
|
| git svn clone xxx/svn or git svn clone xxx/svn/trunk | 12:52 |
| → ajt joined | 12:52 |
|
jameslord
| which one is much attractive:) | 12:52 |
| → chepre joined | 12:52 |
|
canton7
| jameslord, if you pass -t, -T and -b correctly, then it makes no difference | 12:53 |
|
jameslord
| and why? | 12:53 |
|
| canton7 dude, what do you means? | 12:53 |
|
canton7
| jameslord, read man git-svn. When you call 'git svn clone', you tell git-svn what folders you trunk, tags, and branches are in | 12:53 |
|
gitinfo
| jameslord: the git-svn manpage is available at http://jk.gs/git-svn.html | 12:53 |
| ← dhruvasagar left | 12:54 |
|
canton7
| jameslord, git-svn is smart enough to notice when the URL you've given it ends in your trunk folder, and it removes that folder from the url | 12:54 |
| → dhruvasagar joined | 12:55 |
| ← iocor left | 12:56 |
| → bryanl joined | 12:56 |
| → Desproges joined | 12:57 |
| → theotherguy_ joined | 12:58 |
|
jameslord
| hell | 12:59 |
| ← Pugnax__ left | 12:59 |
| → toabctl joined | 12:59 |
|
jameslord
| i can init git repo using svn repo, that is git svn clone svn:// , can i init a svn repo using git repo? how to do this? | 13:00 |
| → twisted`_ joined | 13:00 |
|
cmn
| that's how you do it | 13:00 |
| ← hyperair left | 13:00 |
| ← theotherguy left | 13:00 |
| theotherguy_ → theotherguy | 13:00 |
|
jameslord
| cmn dude, how to init a svn repo using git? svn git checkout git:// ? | 13:00 |
|
cmn
| you can't | 13:01 |
| ← twisted` left | 13:01 |
| twisted`_ → twisted` | 13:01 |
| ← DangerousDave left | 13:01 |
|
cmn
| and you just said that's the opposite of what you wanted to do | 13:02 |
| → fayimora_ joined | 13:02 |
| ← fayimora_ left | 13:02 |
|
cmn
| and do read the manual pages, it's faster and more informative than asking how to use the tool every five minutes | 13:02 |
| ← ouah left | 13:03 |
|
jameslord
| cmn obviously i can init a git repo from svn repo:) but how to init a svn repo from git? | 13:03 |
|
cmn
| did you even read what I wrote? | 13:03 |
|
jameslord
| cmn yes, dude:) | 13:03 |
|
canton7
| then which part of "you can't" didn't you understand? | 13:04 |
| → glcrazy joined | 13:04 |
|
cmn
| probably the same part of "don't call me dude" the last hundred times | 13:04 |
|
jameslord
| canton7 can i init a svn repo from git repo:) | 13:04 |
| → roland joined | 13:04 |
|
canton7
| jameslord, no. no you can't. just as cmn said | 13:04 |
|
jameslord
| canon7 sorry to hear this, it is not fair:( | 13:05 |
| ← lucas left | 13:06 |
| ← theotherguy left | 13:06 |
|
canton7
| jameslord, no-one has written such a tool, because no-one has a need to. If you need one, you should write it | 13:06 |
| → lucas joined | 13:06 |
| ← fayimora left | 13:06 |
| ← iband left | 13:07 |
|
cmn
| fair? | 13:07 |
|
| if you're unhappy with the performance of svn, you should go tell them | 13:07 |
|
| it has nothing to do with us | 13:08 |
| ← marvin_ left | 13:08 |
|
cbreak-work
| jameslord: you don't have to init svn repositories | 13:09 |
| → marvin_ joined | 13:09 |
|
cbreak-work
| the sysadmin/svnadmin will do that already | 13:09 |
| ← dv310p3r left | 13:10 |
| ← ajaykools left | 13:10 |
|
cmn
| if what you're trying to do is push your work back to the svn repo, that's what git-svn does | 13:11 |
|
shruggar
| if what you're trying to do is use an svn-like interface to operate on a git repository, I want you to seek your local priest for an exorcism :) | 13:12 |
| → chrisdev joined | 13:13 |
| → Know1edge joined | 13:13 |
| ← advatar left | 13:14 |
| ← iamjarvo left | 13:17 |
| ← JEEB left | 13:17 |
| ← jameslord left | 13:18 |
| ← maleknet left | 13:18 |
| → pandeiro joined | 13:18 |
| → maleknet joined | 13:19 |
| → dv310p3r joined | 13:19 |
| → jameslord joined | 13:19 |
|
jameslord
| why i cannot use git svn? | 13:20 |
|
| http://paste.ubuntu.com/849942/ | 13:20 |
| → alberto56 joined | 13:20 |
|
mika
| because you forgot to install git-svn? | 13:21 |
|
cmn
| you need to install it | 13:21 |
| → Pugnax_ joined | 13:21 |
| ← Black left | 13:24 |
| ← Juri_Agarin left | 13:25 |
| → Juri_Agarin joined | 13:25 |
|
cbreak-work
| jameslord: did you install the normal git? | 13:27 |
|
| or some gimped precompiled binary? | 13:27 |
| ← jameslord left | 13:27 |
| → cakehero joined | 13:28 |
| → fayimora joined | 13:29 |
|
cmn
| the usual method of getting git is through the distribution | 13:30 |
| → amigojapan_ joined | 13:32 |
| ← amigojapan left | 13:33 |
| → Zet joined | 13:34 |
| ← Know1edge left | 13:34 |
| ChanServ set mode: +v | 13:35 |
|
Zet
| I made some changes, haven't committed anything, but decided the changes are stupid. How do I get back to the latest commit? | 13:35 |
| → wroathe joined | 13:36 |
| → subbyyy joined | 13:36 |
|
cmn
| checkout -f | 13:36 |
| ← dv310p3r left | 13:36 |
| ← tatsuya_o left | 13:36 |
|
shruggar
| I recommend "git stash" | 13:37 |
|
cmn
| or checkout -- . | 13:37 |
| → tatsuya_o joined | 13:37 |
|
cmn
| stash would work | 13:37 |
| → Know1edge joined | 13:37 |
|
shruggar
| reversible tends to be a good option | 13:37 |
| ← Know1edge left | 13:37 |
| → Know1edge joined | 13:37 |
| → v0n joined | 13:37 |
|
shruggar
| git add . && git commit -nm 'Well, that was a stupid idea…' && git reset --keep HEAD^ :) | 13:38 |
| ← Know1edge left | 13:38 |
| ← chrisdev left | 13:39 |
|
shruggar
| the problem with "git stash" is, every now and then I type "git stash list" and I think "wtf? what the hell was I doing then?!" so, to me, it's like a reversible delete and nothing else :) | 13:39 |
| → Bass10 joined | 13:39 |
|
Zet
| I guess checkout -f is what I want | 13:40 |
|
| the man page even says "This is used to throw away local changes." | 13:40 |
| → sdeboey joined | 13:40 |
| → QaDeS joined | 13:40 |
|
canton7
| as usual, there are many ways of achieving the same end-result | 13:41 |
| ← subbyyy left | 13:41 |
| ← fayimora left | 13:42 |
|
shruggar
| There is more than one way to do it, though usually only one applies logically to your specific situation | 13:42 |
| ← tatsuya_o left | 13:44 |
| → glennpratt joined | 13:44 |
| ← marvin_ left | 13:44 |
| → fayimora joined | 13:45 |
| → tatsuya_o joined | 13:45 |
| → Jackneill joined | 13:45 |
| ← Jackneill left | 13:45 |
| → Jackneill joined | 13:45 |
| → Brammm joined | 13:45 |
| → alexgordon joined | 13:46 |
| → drupol joined | 13:47 |
|
Brammm
| Hi everyone, completely new to Git, but wanted to teach myself something new. I'm reading Pro git, but I just want to check if I'm still up to speed (just finished chapter 1): If I make a repository on my remote server, I do the git init thing there. Then if I want to work on that project locally, I do the git clone thing on my machine. Riught? | 13:47 |
| → cabaire joined | 13:48 |
| → rgsteele joined | 13:48 |
|
bremner
| correct | 13:49 |
| → Tommy[D]_ joined | 13:49 |
| → indstry joined | 13:50 |
| ← [M]ax left | 13:50 |
|
cmn
| that's one of the basic principles, not bound to get outdated | 13:50 |
| ← mulletro1 left | 13:50 |
|
drupol
| People using Gerrit around ? | 13:50 |
|
FauxFaux
| drupol: !ask | 13:51 |
|
gitinfo
| drupol: yes, it's okay to ask questions here... in fact, you just asked one! ;) Pretty much any question is fine. We're not terribly picky. | 13:51 |
| → Cromulent joined | 13:51 |
|
drupol
| Is it possible to create a group of users who can bypass the Gerrit review process and push directly to the branch ? | 13:51 |
| → [M]ax joined | 13:51 |
| ← cabaire left | 13:52 |
| → stuntmachine joined | 13:52 |
|
Brammm
| okay, thanks bremner and cmn :p I have some really outdated SVN knowledge, but that's it. Didn't find that in any other tutorials i've read so far. Liking the pro git book though | 13:52 |
| → cabaire joined | 13:52 |
| ← Tommy[D] left | 13:52 |
| ← OOPMan left | 13:54 |
| → advatar joined | 13:55 |
| ← EricInBNE left | 13:56 |
| → Dragooon joined | 13:56 |
| → cbeams joined | 13:56 |
| → macabre joined | 13:57 |
| → corenet_ joined | 13:58 |
| ← corenet_ left | 13:59 |
| ← Dragooon left | 14:00 |
| ← Jay_Levitt left | 14:00 |
| → crashanddie joined | 14:01 |
| → cooloney joined | 14:01 |
| ChanServ set mode: +v | 14:02 |
|
cbeams
| I have a 'next' branch and a 'maint' branch, where directories have been renamed in 'next', but remain the same in 'maint'. My hope was to be able to perform backport cherry-picking from next to maint and then use `git cherry` to see which commits have not yet been backported, as people usually do. The trouble is, that `git cherry` relies on the output of `git patch-id` to determine whether an equivalent commit exists upstream. It app | 14:02 |
| → lyddonb joined | 14:02 |
| → johnkpaul joined | 14:03 |
| → Fandekasp joined | 14:03 |
|
shruggar
| cbeams: we lost you at "equivalent commit exists upstream. It app" | 14:04 |
|
cbeams
| oops. splitting up now. | 14:04 |
| ← Chib left | 14:04 |
| → krz joined | 14:05 |
|
cbeams
| I have a 'next' branch and a 'maint' branch, where directories have been renamed in 'next', but remain the same in 'maint'. My hope was to be able to perform backport cherry-picking from next to maint and then use `git cherry` to see which commits have not yet been backported, as people usually do. ... | 14:05 |
|
| The trouble is, that `git cherry` relies on the output of `git patch-id` to determine whether an equivalent commit exists upstream. It appears that `git patch-id` does not consider renamed paths in any way. Per the manpage it says that patch-id calculates the SHA1 of a patch, ignoring whitespace and line numbers. ... | 14:05 |
| → codewrangler joined | 14:05 |
|
shruggar
| I'm guessing your problem is: the cherry-picked commits have merged into different files, so the patch-id is different? | 14:05 |
|
cbeams
| It seems that what I need is a switch to patch-id that ignores paths as well (or that more intelligently recognizes renamed paths). Anyone else ran into this? Any other approaches that I might consider other than `git cherry` for detecting which commits have not yet been backported from next to maint? Thanks, and I'm on 1.7.5.4, btw. EOM | 14:05 |
| → fisted joined | 14:05 |
|
cbeams
| shruggar: that's correct. | 14:05 |
| → Sigma joined | 14:05 |
|
cbeams
| particularly, into the same files within renamed directories | 14:06 |
|
| so just renamed paths, but a rename is a rename all the same I suppose. | 14:06 |
| ← fisted_ left | 14:06 |
|
charon
| cbeams: any specific reasons why you are using a cherry-pick workflow instead of a topics-from-maint workflow? | 14:07 |
|
| (or perhaps that decision is not even up for discussion) | 14:07 |
| ← indstry left | 14:07 |
| ← valtih left | 14:08 |
| → hyperair joined | 14:08 |
| ← hyperair left | 14:08 |
| ← groovehunter left | 14:09 |
| → olinux joined | 14:10 |
|
cbeams
| charon: we're basically working on a simplest-possible-approach-that-could-work workflow, where all development is happening on 'next' and as necessary, we backport fixes to 'maint' in order to roll maintenance releases. This allows committers to think only about 'next' and a single 'backporter' (project lead) to periodically perform backports batch-style. That's why it's necessary to be able to easily see what has and has not yet been | 14:10 |
| ← advatar left | 14:10 |
| ← amigojapan_ left | 14:10 |
|
charon
| has not yet been cut off because of line length restrictions? ;) | 14:10 |
|
cbeams
| where did I get cut off? | 14:10 |
|
charon
| "has not yet been" | 14:10 |
|
cbeams
| That's why it's necessary to be able to easily see what has and has not yet been backported. I'm open to a different workflow, but it needs to be as simple as possible. (some folks on the team including the project lead have weak git-fu). EOM | 14:11 |
|
charon
| i guess it depends on how long you expect the rename divergence to last (IOW, when maint will pick up the rename) | 14:11 |
| → amigojapan joined | 14:11 |
| → subh joined | 14:11 |
| → vandal- joined | 14:12 |
| → BiggFREE joined | 14:12 |
| → nikuyoshi joined | 14:12 |
| → dangerousdave joined | 14:13 |
|
cbeams
| 'maint' is actually a branch called '3.1.x'. 'next' is actually 'master', currently representing 3.2.x development. 3.1.x will never pick up the rename. | 14:13 |
|
| When 3.2.x goes GA, a '3.2.x' branch will be spun off, at which point master will represent 3.3.x. At that point backports will not be a problem, but that will be about a year from now :( | 14:13 |
| → nixmaniack joined | 14:13 |
|
cbeams
| is it reasonable to expect here that `git cherry` (and therefore `patch-id`) actually pick up some awareness of renamed paths? | 14:14 |
| ← sdeboey left | 14:14 |
|
cbeams
| or at least provide the option to be path-ignorant completely? | 14:14 |
|
| it feels like a hole in git's otherwise pretty amazing rename-awareness. | 14:14 |
| → herdingcat joined | 14:15 |
| → na3r_ joined | 14:16 |
|
charon
| a not-so-painful way might be to have a shadow copy of next which is rewritten (with filter-branch) to have the files in the old places | 14:16 |
| → ixti joined | 14:17 |
| → sdeboey joined | 14:17 |
| → tvw joined | 14:19 |
| ← na3r__ left | 14:19 |
| → JEEB joined | 14:19 |
| → simenbrekken joined | 14:19 |
|
shruggar
| that sounds like the best option, yeah | 14:19 |
| ← Lgb left | 14:20 |
| ← glcrazy left | 14:20 |
| → mastro joined | 14:20 |
|
simenbrekken
| I removed a submodule by simply rm -Rf'ing it along with .gitmodules but now I can't even do 'git status' because it's trying to read the non-existant submodule directory | 14:21 |
| → Lgb joined | 14:21 |
| → valtih joined | 14:21 |
|
charon
| simenbrekken: git rm --cached submoduledir | 14:22 |
| ← lucas left | 14:22 |
|
charon
| cbeams: also see !workflows for more ideas on how to organize your branching workflow. usually workflows with git-cherry are suboptimal because they don't exploit git's power in doing and handling merges | 14:23 |
| → lucas joined | 14:23 |
|
charon
| er, !workflow | 14:23 |
|
gitinfo
| Finding the right workflow for you is critical for the success of any SCM project. Git is very flexible with respect to workflow. See http://sethrobertson.github.com/GitBestPractices/#workflow for a list of references about choosing branching and distributed workflows. | 14:23 |
| → Black joined | 14:23 |
| → hyperair joined | 14:23 |
|
simenbrekken
| charon: says there's no matching files, is there any command to list the cache contents? | 14:23 |
| ← hyperair left | 14:24 |
|
charon
| simenbrekken: git ls-files -s | 14:24 |
| ← Brammm left | 14:24 |
|
shruggar
| yes, "…cherry-picking… " "…as people usually do…" sounds wrong to me :) | 14:24 |
| ← notjohn left | 14:24 |
|
simenbrekken
| charon: curiously it's not in that list | 14:24 |
| → fruight joined | 14:24 |
|
cbeams
| !workflow | 14:25 |
|
gitinfo
| Finding the right workflow for you is critical for the success of any SCM project. Git is very flexible with respect to workflow. See http://sethrobertson.github.com/GitBestPractices/#workflow for a list of references about choosing branching and distributed workflows. | 14:25 |
| → notjohn joined | 14:25 |
|
simenbrekken
| charon: I appear to be in some sort of limbo :( | 14:25 |
|
charon
| simenbrekken: in that case look for remnants of the submodule in .git/config | 14:25 |
|
| simenbrekken: specifically, submodule.FOO.* | 14:25 |
|
simenbrekken
| charon: I did that and removed them from the config | 14:25 |
|
charon
| and it still wants to recurse there? | 14:25 |
|
simenbrekken
| yes | 14:25 |
| ← notjohn left | 14:26 |
|
charon
| huh. sounds like a bug. perhaps collect 'git ls-files -s', 'find . -name .gitmodules', 'git config -l' etc. and send a bug report to [email@hidden.address] | 14:26 |
|
simenbrekken
| charon: Ah, it was simply a .git ref file in a directory deep in some library folder | 14:27 |
| → dv310p3r joined | 14:28 |
|
charon
| i wish i had some clue as to how git-status detects what to recurse into | 14:28 |
| → VladGh joined | 14:29 |
| ← m1sc left | 14:30 |
| → na3r__ joined | 14:30 |
|
charon
| simenbrekken: btw i still think it's a bug that status became useless, it should never do that | 14:31 |
|
simenbrekken
| agreed, there's no reason why I shouldn't be able to recover from it or via verbose output get a clue as to why it's recursing | 14:31 |
| ← maleknet left | 14:32 |
| ← lucas left | 14:32 |
| → t4nkd joined | 14:32 |
| → lucas joined | 14:33 |
| ← na3r_ left | 14:34 |
| → Dragooon joined | 14:34 |
| ← subh left | 14:34 |
| → chrisdev joined | 14:34 |
| → RajeevGEC joined | 14:35 |
| → Raging_Hog joined | 14:35 |
|
RajeevGEC
| can i lock a git repo using a password? | 14:35 |
|
FauxFaux
| Not using the git protocol, but using ssh you get passwords for free. | 14:35 |
|
cbreak-work
| git doesn't do authentication | 14:36 |
| ← jonesy left | 14:36 |
| ← BiggFREE left | 14:37 |
|
RajeevGEC
| so if i have to create a local repo,then i would have to collect the ssh keys of each contributor,right? | 14:37 |
| ← lucas left | 14:37 |
| ← na3r__ left | 14:37 |
| ← gavin_huang left | 14:38 |
|
cbreak-work
| if you use gitolite, yes | 14:38 |
|
RajeevGEC
| i use gitosis | 14:38 |
|
cbreak-work
| :/ | 14:38 |
| → hyperair joined | 14:38 |
|
cmn
| !gitosis | 14:38 |
|
gitinfo
| gitosis is no longer maintained and supported by the author; we usually recommend gitolite instead which has much better documentation and more features: http://github.com/sitaramc/gitolite | 14:38 |
| → juanfer joined | 14:38 |
|
cbreak-work
| then you don't need passwords | 14:38 |
| ← tatsuya_o left | 14:39 |
| → TeckniX joined | 14:39 |
| → alan_w joined | 14:40 |
| → Jay_Levitt joined | 14:40 |
| → schlumpi joined | 14:40 |
| → tatsuya_o joined | 14:40 |
|
RajeevGEC
| <cbreak-work>:sorry,,,i didnt get that...i am to have multiple repos,with access to each limited to a particular group of developers | 14:40 |
| → gchristensen joined | 14:40 |
|
cmn
| that's what gitolite is for | 14:41 |
| → m1sc joined | 14:41 |
|
RajeevGEC
| ok...i will try it right away:)...thanks:) | 14:41 |
| ← lmatteis left | 14:44 |
| ← RajeevGEC left | 14:44 |
|
cbreak-work
| raj, you don't need passwords because you have public/private keys | 14:45 |
| → valtih_ joined | 14:46 |
| → diogogmt joined | 14:46 |
| → DrNick joined | 14:47 |
|
Nickeeh
| Hey guys! | 14:47 |
| → aristidesfl joined | 14:48 |
|
Nickeeh
| Suppose just cloned a repo, then want to go back a commit or thousand and only apply commits touching a certain path, how would I do that? | 14:48 |
|
cmn
| you might be looking for git-subtree | 14:49 |
|
| alternatively, git log -- file; store that in a file, and loop git cherry-pick | 14:49 |
| ← valtih left | 14:49 |
| valtih_ → valtih | 14:49 |
| ← Cromulent left | 14:50 |
| → storrgie joined | 14:50 |
| ← alan_w left | 14:51 |
|
Nickeeh
| cmn, I'll look into both, thanks | 14:53 |
|
cbreak-work
| check out man git-filter-branch | 14:53 |
|
gitinfo
| the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html | 14:53 |
|
cbreak-work
| subdirectory filter can extract spatially partial history | 14:53 |
| ← olinux left | 14:53 |
|
Nickeeh
| cbreak-work, that sounds complicated. Would it be worth it if the merges are expected to be trivial and few? | 14:55 |
|
| as in, 5 or less? | 14:55 |
|
shruggar
| I'm getting "git-shell died of signal 13" "fatal: the remote end hung up unexpectedly" other than that, everything seems just dandy. I expect one of my hooks is failing, but I don't know how to narrow it down (I've tried just adding debug statements everywhere,,, but no idea so far based on that) | 14:56 |
|
charon
| shruggar: 13 is SIGPIPE. perhaps one of your hooks doesn't read all of its input (it must)? | 14:56 |
|
shruggar
| ah, makes sense | 14:57 |
|
charon
| also see the recent "SIGPIPE means your hook is broken, so let's die() verbosely" thread between peff and jrnieder | 14:57 |
| ← nixmaniack left | 14:58 |
| → aldodelgado joined | 14:59 |
| → nixmaniack joined | 14:59 |
| → flyz joined | 15:00 |
| ← vandal- left | 15:00 |
| → babilen joined | 15:00 |
| ← fayimora left | 15:01 |
| → RaceCondition joined | 15:01 |
| ← flyz_ left | 15:01 |
| ← DrNick left | 15:01 |
|
shruggar
| yeah, that got it. I'd had a post-receive hook which was only bothering to do anything if certain pre-conditions were met. Otherwise it would just exit (without reading) | 15:02 |
| ← JohnBat26 left | 15:02 |
| ← chepre left | 15:03 |
| → shibayu36 joined | 15:04 |
| → soc42 joined | 15:05 |
| ← beautifulmind left | 15:05 |
| ← valtih left | 15:08 |
| ← diogogmt left | 15:08 |
| → diogogmt joined | 15:09 |
| → shtrb joined | 15:09 |
| ← kpreid left | 15:10 |
|
kini
| I notice that when I define aliases with `git config alias.foo '!some shell command'`, the shell command does not see git environment variables like $GIT_AUTHOR_NAME, like it would if I were using git filter-branch. Why? | 15:11 |
|
thiago
| did you define those variables in the environment before calling git foo? | 15:11 |
|
cmn
| you might need to export then if git starts a subshell | 15:12 |
|
kini
| thiago: of course not :) | 15:12 |
|
thiago
| kini: then that's why | 15:13 |
|
| kini: those variables aren't set unless you set them | 15:13 |
|
| kini: git filter-branch is a special command | 15:13 |
|
kini
| these are environment variables that git itself sets in the subshell in which it calls shell functions defined in invocation of filter-branch | 15:13 |
| → airborn joined | 15:13 |
|
kini
| hmm | 15:13 |
|
cmn
| are you sure? | 15:13 |
|
kini
| so then how is my alias shell script supposed to know things like the author name, etc? :) | 15:13 |
|
cmn
| you tell your app | 15:14 |
|
| or you query the config | 15:14 |
|
thiago
| filter-branch sets it | 15:14 |
|
| not other commands. Just filter-branch. | 15:14 |
|
kini
| oh, querying the config sounds like a plan | 15:14 |
| ← ph^ left | 15:14 |
|
kini
| thiago: OK, I see | 15:14 |
| ← Fandekasp left | 15:15 |
| ← airborn left | 15:16 |
| ← uu left | 15:16 |
|
mastro
| I remember some years ago when I introduced some windows collegue to git I made him install a substitute shell for use with msysgit... I don't remember which one, can you suggest a good windows shell that can be used with msysgit? | 15:17 |
|
cmn
| msysgit brings bash | 15:17 |
|
| it's all in there | 15:17 |
| → valtih joined | 15:17 |
|
cmn
| or you might want to use it with powershell | 15:17 |
| → stkrzysiak joined | 15:18 |
| ← stkrzysiak left | 15:18 |
|
cbreak-work
| Console2 | 15:18 |
|
| that's the one my windows-using coworkers use | 15:18 |
| → stkrzysiak joined | 15:18 |
|
cbreak-work
| with git's bash as shell | 15:19 |
| → LimeBlast joined | 15:19 |
| ← rurufufuss left | 15:22 |
| ← toabctl left | 15:22 |
| → DrNick joined | 15:23 |
| → marc_kdab joined | 15:23 |
| → Pugnax__ joined | 15:23 |
| ← diogogmt left | 15:23 |
|
mastro
| cmn, I'm talking about the virtual terminal | 15:24 |
| → axl_ joined | 15:24 |
| → diogogmt joined | 15:24 |
|
mastro
| cmn, like gnome-terminal or kterm or whatever | 15:24 |
| ← axl_ left | 15:24 |
|
cmn
| then use what cbreak said, as it's apparently a terminal emulator | 15:24 |
|
| or use the one that's already there than you can use by doulbe-clicking on the msysgit icon | 15:25 |
| → digiv joined | 15:25 |
| → axl_ joined | 15:26 |
| → iamjarvo joined | 15:26 |
|
mastro
| cbreak-work, thanks | 15:26 |
| ← Pugnax_ left | 15:26 |
|
mastro
| cmn, ah thanks I did not see his message :) | 15:26 |
| → alan_w joined | 15:27 |
| ← Pugnax__ left | 15:27 |
|
cbreak-work
| that happens me a lot | 15:29 |
| ← herdingcat left | 15:29 |
|
| cbreak-work must have ninja skills above that of a normal mortal | 15:29 |
| ← arvind_khadri left | 15:30 |
| → arvind_khadri joined | 15:31 |
| ← arvind_khadri left | 15:31 |
| → arvind_khadri joined | 15:31 |
| → olinux joined | 15:31 |
| → fayimora joined | 15:32 |
| → jonesy joined | 15:33 |
| → Destos joined | 15:34 |
| ← tatsuya_o left | 15:36 |
| → skitrees joined | 15:37 |
| ← nixmaniack left | 15:38 |
| → mjd_ joined | 15:39 |
| ← brian_g left | 15:40 |
|
kini
| can someone explain this? http://pastebin.com/LmeAbyXW | 15:41 |
| → nixmaniack joined | 15:41 |
|
cmn
| the commands gets the arguments appended | 15:42 |
| → ph^ joined | 15:42 |
| → CannedCorn joined | 15:43 |
| → diegoviola joined | 15:43 |
|
cmn
| change it to !echo and see what happens, or run it with several arguments | 15:44 |
| ← arvind_khadri left | 15:44 |
| → ceej joined | 15:44 |
|
shruggar
| also note that if you need to process arguments (and do anything other than the most basic of "alias"ing) it usually makes more sense to use a script names git-yourcommand | 15:45 |
|
cmn
| indeed | 15:45 |
| ← LimeBlast left | 15:45 |
| → edude03 joined | 15:46 |
| → tatsuya_o joined | 15:46 |
|
shtrb
| how can I get file that I used git rm back ? | 15:47 |
| ← shibayu36 left | 15:47 |
|
shruggar
| shtrb: when did you use "git rm", what have you done since? | 15:48 |
|
shtrb
| another few commits | 15:48 |
| → brian_g joined | 15:48 |
|
shtrb
| shruggar , I have the release number (using git svn) | 15:48 |
|
cmn
| release number? you mean commit id? | 15:49 |
|
shtrb
| yep | 15:49 |
|
shruggar
| git show <commit where it last existed>:<path to file> > file | 15:49 |
|
| I assume "git checkout <commit> -- <file>" would also work | 15:49 |
|
skitrees
| how do I get a diff between two branches | 15:49 |
|
| as if I had run git diff with unstaged changes | 15:49 |
|
cmn
| you give the branches to diff | 15:50 |
| ← xjonc left | 15:50 |
|
skitrees
| cmn, ok... syntax? | 15:50 |
|
cmn
| man git diff | 15:50 |
|
gitinfo
| the git-diff manpage is available at http://jk.gs/git-diff.html | 15:50 |
| ← raatiniemi left | 15:50 |
|
cmn
| third syntax | 15:51 |
| ← kermit left | 15:51 |
| → garpenlov joined | 15:52 |
| → iocor joined | 15:52 |
| ← flijten left | 15:52 |
| ← bgerber left | 15:52 |
| → Brammm joined | 15:53 |
|
kini
| cmn: aha, of course :) | 15:53 |
| → bgerber joined | 15:53 |
| ← macmartine left | 15:53 |
| → vdv joined | 15:53 |
| ← [M]ax left | 15:55 |
| → glcrazy joined | 15:55 |
|
Brammm
| Hi guys, I have succesfully set up a bare repository (it's a basic web app) on my server, I've managed to clone it on my machine and am able to push to the remote master using SSH. Now I also want to be able to view the project online. I'm guessing I have to set up a post-receive hook. But what command should it execute? | 15:55 |
|
| Should I clone the repository again on the machine and update from the bare one on push? | 15:56 |
| ← crooksey left | 15:56 |
| → flaguy48 joined | 15:57 |
| ← mastro left | 15:57 |
|
wereHamster
| Brammm: rsync the website to the server | 15:57 |
|
Brammm
| wereHamster: okay, i'll google that, I'm learning as I go :p | 15:58 |
| → tuyga joined | 15:58 |
| → mastro joined | 15:58 |
| → [M]ax joined | 15:58 |
| → mikepack joined | 15:59 |
| ← lb left | 15:59 |
| ← tqmz left | 15:59 |
| ← Desproges left | 16:00 |
| → harshpb joined | 16:00 |
| → beaufour joined | 16:00 |
| ← simenbrekken left | 16:01 |
| ← fruight left | 16:01 |
| ← harshpb left | 16:01 |
| → indstry joined | 16:02 |
|
sh4rm4
| hmm since when is git no longer hosted at kernel.org ? | 16:02 |
|
| i can't seem to find any release tarballs of newer versions... | 16:03 |
| ← brian_g left | 16:04 |
|
Brammm
| wereHamster: When I google around, I find a lot of people suggesting doing a checkout -f, is that also a solution? | 16:04 |
|
sh4rm4
| ah... thats under "older releases"... | 16:05 |
|
| hmm, y u no bz2 ? | 16:05 |
|
cbreak-work
| sh4rm4: you should be able to find a gzip tool for your system | 16:06 |
| → g0bl1n joined | 16:06 |
| ← g0bl1n left | 16:06 |
| → g0bl1n joined | 16:06 |
|
sh4rm4
| its more about smaller download and disk storage | 16:07 |
| ← gchristensen left | 16:08 |
| ← diogogmt left | 16:08 |
|
bremner
| the management will be notified of your dissatisfaction. | 16:08 |
| → diogogmt joined | 16:08 |
| → joshsmith joined | 16:09 |
|
cmn
| sh4rm4: the tarballs are on code.google.com/p/git-core | 16:10 |
| → danielrmz joined | 16:10 |
| → toni_ joined | 16:10 |
| → kukks joined | 16:10 |
|
cmn
| Brammm: so you want to use git as a deployment system, then. Don't | 16:10 |
| ← fayimora left | 16:10 |
| → QiBala joined | 16:10 |
| → betovar joined | 16:11 |
| ← dc5ala left | 16:11 |
| ChanServ set mode: +v | 16:11 |
|
Brammm
| cmn: okay, what would be the best approach then? It's only for testing and learning purposes. Use the rsync? | 16:12 |
|
cmn
| rsync is good | 16:12 |
|
| it depends on what you need | 16:12 |
|
| !website | 16:12 |
|
gitinfo
| Git is not a website deployment tool, but can sometimes play one in sufficiently simple/lax environments with a little help. One example of help is: http://toroid.org/ams/git-website-howto and another approach: https://gist.github.com/1714235 | 16:12 |
|
cmn
| the first link is that checkout -f but it's very limited in what it can deal with | 16:12 |
|
| the second link is much better | 16:12 |
| → Slydder joined | 16:13 |
| ← diogogmt left | 16:13 |
|
Slydder
| hey all. am wanting to start developing wordpress plugins and am looking for a howto on how best to setup Git so that only my plugin code is included in the repository. does anyone here maybe have a link or could point me in the right direction? | 16:13 |
| ← QiBala left | 16:13 |
| → QiBala joined | 16:13 |
|
toni_
| Hi! I'm trying to import a bazaar repo into git, but fail due to illegal characters in the bzr tags (in my case: version names with an epoch). trying bzr fast-export --plain didn't solve the problem, hand-editing the version numbers didn't help anything, too. | 16:13 |
| ← cabaire left | 16:14 |
| → diogogmt joined | 16:14 |
|
toni_
| epoch: package version 1:2.3.4-0 | 16:14 |
|
Brammm
| Right cmn that looks complicated :p At the moment I don't need much: I just want an up to date copy of my master branch viewable for anyone, don't care about bugs :p | 16:14 |
|
cmn
| that's what the second link does | 16:14 |
|
| a checkout -f might seem to work | 16:14 |
| ← cbreak-work left | 16:15 |
|
toni_
| using vi on the fast-export file yields in various other crashes related to "unknown command"s | 16:15 |
|
| s/yields in/resulted in/ | 16:15 |
|
thiago
| fast-export produces a binary output | 16:15 |
|
Brammm
| yeah, at the moment the first link doesn't even work, however, I've not done the chmod thing, testing again. | 16:15 |
|
thiago
| make sure your text editor doesn't corrupt it | 16:15 |
|
toni_
| thiago: looks like a text-file, though | 16:16 |
|
thiago
| toni_: it isn't | 16:16 |
|
| toni_: not if you have a binary file in your repo | 16:16 |
|
| toni_: each file's *exact* byte content is present in the fast-export | 16:16 |
|
toni_
| thiago: it's bazaar's fast-export file, and it's only python code that i want to export, so... | 16:16 |
| ← Sitethief left | 16:17 |
|
toni_
| (ok, some shell, makefile and similar stuff, too) | 16:17 |
| → jmoreira81_ joined | 16:17 |
| → harshpb joined | 16:17 |
|
toni_
| vi usually doesn't corrupt files, afaik | 16:17 |
|
thiago
| toni_: still, your text editor might have corrupted it | 16:17 |
|
| toni_: do a diff -u original new and check what it changed | 16:18 |
|
Brammm
| cmn: I'm getting the feeling the post-receive hook is not being executed, what could cause that? | 16:18 |
|
cmn
| wrong permissions, wrong repo | 16:18 |
|
Brammm
| i only have one repo | 16:18 |
| → ehsan joined | 16:18 |
| ← jmoreira81 left | 16:18 |
| jmoreira81_ → jmoreira81 | 16:18 |
|
cmn
| no | 16:18 |
|
Brammm
| and the push itself is succesful | 16:18 |
|
cmn
| if you can push, you have two repos | 16:18 |
| → crisp joined | 16:18 |
|
Brammm
| ah | 16:18 |
| ← soc42 left | 16:19 |
| ← diogogmt left | 16:19 |
|
Brammm
| I have a repo on my remote server and on my machine. I added the post-receive hook on the remote, do I have to add it locally? that doesn't make sense to me :/ | 16:19 |
| → ohcibi joined | 16:19 |
|
cmn
| you have to put it in the remote where you want it to be executed | 16:20 |
| ← Spockz left | 16:20 |
| → diogogmt joined | 16:20 |
|
Brammm
| I also changed the dir to the dir of my webpage | 16:20 |
| → witti joined | 16:21 |
|
cmn
| that seems sensible | 16:22 |
| ← tuyga left | 16:22 |
| ← TrineLocke left | 16:22 |
| → alansaul joined | 16:22 |
| ← betovar left | 16:23 |
| ← prudnikov left | 16:23 |
|
toni_
| thiago: umm... managed to import, but with now severely broken version numbers :/ | 16:23 |
|
cmn
| version numbers meaning what? | 16:25 |
|
Brammm
| cmn: If I just put echo 'test' in the post-receive hook, I should see that output in the git gui window when pushing, no? | 16:25 |
|
project2501a
| hey guys, how do i transform a tracking repository to a working repo? | 16:25 |
|
cmn
| any echo from the hook will the passed to the git doing the push | 16:25 |
| → macmartine joined | 16:25 |
|
cmn
| I've no idea how git-gui presents it | 16:25 |
|
shruggar
| project2501a: neither of those are git terms. Can you clarify? | 16:25 |
|
Brammm
| aight, do you see it when doing it thorugh a terminal? | 16:26 |
| → GeorgeSebastian joined | 16:26 |
| → NetRoY joined | 16:26 |
| gitinfo set mode: +v | 16:26 |
|
mjd_
| project2501a: I'm not sure just what you mean, but if /path/to/repo is a path to the repository, you can make a working copy of it with "git clone /path/to/repo". | 16:26 |
|
project2501a
| shruggar: hm. funny, i am reading the o'reilly git book and they are taking about "tracking repository" and "working repository" | 16:26 |
|
cmn
| Brammm: yes, command-line git shows it | 16:26 |
|
project2501a
| shruggar: let me go back to the book and read it one more time | 16:27 |
| → kennethreitz joined | 16:27 |
| ← diegoviola left | 16:27 |
|
cmn
| project2501a: working repo is not a git term, but it might refer to the repo where you work | 16:27 |
| ← storrgie left | 16:27 |
|
project2501a
| cmn: "working directory"? | 16:27 |
|
cmn
| tracking repo seems wrong and/or misleading | 16:27 |
|
| project2501a: that's a different thing | 16:27 |
|
shruggar
| project2501a: the nearest terms I can think of are "remote-tracking branch" and "working directory" | 16:27 |
|
Brammm
| not seeing the test, god damn, I feel I'm making some stupid mistake | 16:28 |
|
project2501a
| shruggar: those are probably it. i better go back and read and get my terminology right. | 16:28 |
| → dougsland joined | 16:28 |
| ← dougsland left | 16:28 |
| → dougsland joined | 16:28 |
|
project2501a
| sorry guys! | 16:28 |
| ← _Qman left | 16:28 |
|
shruggar
| (and there is no way to convert a remote-tracking branch into a working directory, as they are as different as pictures of apples and descriptions of someone else's apples) | 16:29 |
| ← diogogmt left | 16:30 |
|
shtrb
| shruggar, thank you it worked (at last) | 16:30 |
| → mxweas_ joined | 16:30 |
|
project2501a
| shruggar: *nod* what i really want to do is establish a chain between three points: developer->maintainer->production | 16:30 |
|
| but as i said, i think i need more rtfm | 16:30 |
| ← jatt left | 16:31 |
| → mandric joined | 16:31 |
| → diogogmt joined | 16:31 |
| ← mxweas_ left | 16:32 |
| → wuj joined | 16:33 |
| ← GeorgeSebastian left | 16:34 |
| → Shakyj joined | 16:34 |
| → gchristensen joined | 16:34 |
| → zulax joined | 16:34 |
| → vandal- joined | 16:34 |
|
Shakyj
| Hey, anyone got a decent guide for setting git with a server? All the guides google gives me seem poor | 16:35 |
| ← diogogmt left | 16:36 |
|
cmn
| what do you mean "with a server"? do you want to work with others on some project? | 16:37 |
|
Shakyj
| cmn, Yeah, but not git-hub. So need a guide that does the full setup :) | 16:37 |
| → diogogmt joined | 16:37 |
|
cmn
| !gitolite | 16:37 |
|
gitinfo
| Want to host as many git repos (and users!) as you like, on your own server, with fine-grained access control? You want gitolite: https://github.com/sitaramc/gitolite | 16:37 |
|
Shakyj
| cmn, Cheers, I will try that :) | 16:38 |
|
cmn
| "not github" covers many things, including bitbucket and gitorious | 16:38 |
| → mxweas_ joined | 16:38 |
| → KayGridley joined | 16:38 |
|
Shakyj
| cmn, self hosted. not hosted elsewhere is what I was trying to cover by not git-hub. But this looks what I was after | 16:39 |
|
cmn
| so say self-hosted then | 16:39 |
| ← amigojapan left | 16:39 |
| ← skoop left | 16:39 |
| → jweinberg joined | 16:40 |
|
Brammm
| Is a push executed when there have been no commits? | 16:40 |
| ← papegaaij left | 16:40 |
| ← dhruvasagar left | 16:40 |
| → pfFredd joined | 16:41 |
|
cmn
| a push is executed when you say to | 16:41 |
|
| if there are no differences, there is nothing to update, so it won't do that, and the update and post-receive hooks won't run | 16:42 |
| ← witti left | 16:42 |
| ← giallu left | 16:42 |
|
mjd_
| You could of course be pushing a new ref to a repo that already has all of that branch's commits. | 16:42 |
|
| So there might be something to do even if there are no new commits. | 16:43 |
| ← DarkAR left | 16:43 |
| mjd_ → yrlnry | 16:43 |
| → zagra joined | 16:43 |
| → subh joined | 16:43 |
| ← mxweas_ left | 16:44 |
| → dhruvasagar joined | 16:44 |
|
cmn
| sure, but that's covered under difference | 16:44 |
|
yrlnry
| Someone asking bramm's question has probably not thought to consider this case specifically. | 16:45 |
|
| I was answering the question that was asked, | 16:45 |
|
| . | 16:45 |
| ← Black left | 16:45 |
| ← alexgordon left | 16:47 |
| → arvind_khadri joined | 16:47 |
| → _marvin joined | 16:47 |
| ← dr_win_ left | 16:47 |
| → dr_win joined | 16:47 |
| → tokiya joined | 16:48 |
| → alexgordon joined | 16:48 |
| → brian_g joined | 16:48 |
| ← h0bbit left | 16:49 |
|
Brammm
| god damn | 16:49 |
|
| I've been testing so many times | 16:49 |
| ← jweinberg left | 16:49 |
|
Brammm
| suddenly, I see a copy of my working repo in my htdocs folder | 16:49 |
|
| and now I don't know how it happened | 16:49 |
|
| *bangs head* | 16:49 |
| → GeorgeSebastian joined | 16:49 |
| → arietis joined | 16:50 |
| ← Lisimba2 left | 16:51 |
| → Lisimba joined | 16:52 |
| ← RaceCondition left | 16:53 |
|
Brammm
| Ack, getting frustrated. How the hell can you even test this if I can't seem to get the hook working... | 16:53 |
|
cmn
| test locally first | 16:53 |
|
| see if the script even does what you want it to | 16:54 |
| → Pugnax joined | 16:54 |
|
Brammm
| it just says 'echo "test"' | 16:54 |
|
| and I'm not getting it in the bash window | 16:54 |
|
cmn
| then make sure it can be run on the remote system | 16:54 |
| ← arvind_khadri left | 16:55 |
|
cmn
| ssh in and try to run it | 16:55 |
|
Brammm
| I assume since I'm executing over ssh my account "bram" is also executing the script? So I have rights? | 16:55 |
|
| >_< "bash: permission denied | 16:55 |
|
cmn
| if you're pushing as 'bram', then that's the user that needs to be able to execute the script | 16:55 |
|
Brammm
| well, that explains a lot :p | 16:55 |
|
cmn
| it's also the first thing I told you to check | 16:55 |
| ← NetRoY left | 16:56 |
|
Brammm
| Yeah, I probably didn't get it because of my ignorance | 16:56 |
|
| god damn :p | 16:56 |
|
sitaram
| Brammm: and in general, use 'echo >&2' insteas of 'echo' | 16:56 |
| → Black joined | 16:56 |
|
sitaram
| instead* | 16:56 |
|
cmn
| huh, really? I've been using echo and haven't seen anything wrong; what could be the issues? | 16:57 |
| ← disappearedng left | 16:57 |
| → Heimidal joined | 16:57 |
| → mastroWork joined | 16:58 |
|
Brammm
| Okay, stupid as hell question, but how do I make sure I can execute the file? Google tells me chmod, but I don't understand the options | 16:58 |
|
| (Git AND linux noob) | 16:58 |
|
cmn
| you give yourself execute permission | 16:58 |
|
| chmod u+x script.sh | 16:58 |
|
sitaram
| cmn: depends on what is ttriggering the hooks. Sometimes the client side is still talking the git protocol and gets confused | 16:58 |
| → friskd joined | 16:59 |
|
Brammm
| yeah okay | 16:59 |
|
| i'm owner now | 16:59 |
|
cmn
| oh, I see, in pre-receive that would be handy | 16:59 |
|
Brammm
| and the command worked | 16:59 |
| ← dr_win left | 16:59 |
|
Brammm
| okay.... sigh | 16:59 |
|
| let's try this one more time :p | 16:59 |
| ← mastroWork left | 17:00 |
|
Brammm
| Okay | 17:00 |
| ← Heimidal left | 17:00 |
| ← Zenopus left | 17:01 |
| → Heimidal joined | 17:01 |
|
Brammm
| That's one hour of frustration I could've spent on something else | 17:01 |
|
| :p | 17:01 |
|
| thanks cmn for putting up with me, everything works now. | 17:01 |
| ← mastro left | 17:01 |
| ← stodan left | 17:01 |
|
Brammm
| sitaram: so if I want to output something like "Copied to staging server" I use "echo >&2 'copied...' " | 17:02 |
|
| ? | 17:02 |
| ← diogogmt left | 17:03 |
| ← whitman left | 17:03 |
| ← _marvin left | 17:04 |
| ← netiru left | 17:04 |
| → diogogmt joined | 17:04 |
| → dfr|mac joined | 17:05 |
| ← indstry left | 17:05 |
| ← vdv left | 17:05 |
| ← psoo left | 17:06 |
|
Brammm
| sitaram: thanks, it works ^^ I'm a happy nerd again :p | 17:06 |
|
| thanks for the help guys, cya | 17:06 |
| ← iamjarvo left | 17:06 |
| ← Brammm left | 17:06 |
| → Bass2 joined | 17:09 |
| → Psylock524 joined | 17:09 |
| ← drupol left | 17:09 |
| ← jceb left | 17:09 |
| → Spockz joined | 17:10 |
| ← Bass2 left | 17:10 |
| ← soulcake_ left | 17:10 |
| → Bass2 joined | 17:10 |
| ← senny left | 17:11 |
| → Rogi joined | 17:11 |
| ← akiress left | 17:11 |
| ← diogogmt left | 17:11 |
| → mxweas_ joined | 17:12 |
| → arvind_khadri joined | 17:12 |
| → soulcake_ joined | 17:13 |
| → diogogmt joined | 17:13 |
| → Nikoli joined | 17:14 |
| ← csgeek left | 17:14 |
| → Ksugzulut joined | 17:15 |
| ← Slydder left | 17:15 |
| ← teweWORK left | 17:16 |
| → dfr|mac_ joined | 17:17 |
| → someprimetime joined | 17:17 |
| ← arvind_khadri left | 17:18 |
| ← joshsmith left | 17:18 |
| → joshsmith joined | 17:18 |
| → matthiasgorgens joined | 17:19 |
| → csgeek joined | 17:19 |
| ← bgy left | 17:20 |
| ← dfr|mac left | 17:20 |
| → Wafflenator joined | 17:21 |
| gitinfo set mode: +v | 17:21 |
|
Wafflenator
| Hello, can someone tell me how to create a local remote or shortcut that creates an alias for a repo on my machine? | 17:21 |
|
| Every time I startup git, I have to cd to a long path and its annoying. Can't find this through google searches. | 17:22 |
|
thiago
| git remote add | 17:22 |
|
| huh? | 17:22 |
|
Wafflenator
| I tried that, it says its not a git repo (.git) | 17:22 |
|
thiago
| sorry, I didn't get it | 17:22 |
|
| can you rephrase what you meant? | 17:22 |
| harshpb → harsh_dinner | 17:22 |
|
Wafflenator
| git remote add gym "C:\Users\Waffles\Documents\Web Projects\Justin\Site" | 17:22 |
|
thiago
| and that doesn't work? | 17:23 |
|
Wafflenator
| I would like to create an alias for a local repository. | 17:23 |
|
| No. | 17:23 |
|
| fatal: Not a git repository (or any of the parent directories): .git | 17:23 |
|
| It is a repo. | 17:23 |
|
thiago
| git log | 17:23 |
|
| do you see anything? | 17:23 |
| ← gulden left | 17:24 |
| ← mishok13 left | 17:25 |
|
Wafflenator
| If I cd to it? Yes. | 17:25 |
|
thiago
| then cd to it | 17:25 |
|
| then you can run git commands | 17:25 |
|
cmn
| put in a symlink somewhere on your filesystem | 17:25 |
|
| or a shell alias | 17:25 |
|
thiago
| cmn: note that it's windows | 17:25 |
|
cmn
| then a shell alias | 17:26 |
|
Wafflenator
| How do I create a system link? I can't right? | 17:26 |
|
cmn
| NTFS doesn't support symlinks | 17:26 |
|
Wafflenator
| The idea is to not have to cd to it every time it is a long path. | 17:27 |
|
cmn
| they're symbolic links, not system links | 17:27 |
| → diegoviola joined | 17:27 |
|
cmn
| then use an alias; what shell do you use? | 17:27 |
|
Wafflenator
| How would I know? | 17:27 |
|
thiago
| Wafflenator: this is #git, we can help you with Git. | 17:27 |
|
cmn
| it tells you | 17:27 |
|
| that too | 17:27 |
|
thiago
| Wafflenator: we can't really help you with how to use your system's shell. | 17:27 |
|
Wafflenator
| Git says its version 1.7.7 | 17:28 |
|
cmn
| that's git, not your shell | 17:28 |
|
Wafflenator
| thiago: then your sure git doesn't have the ability to do this? | 17:28 |
|
| Yeah, how do I check my shell version? | 17:28 |
|
cmn
| git works on the local directory | 17:28 |
|
thiago
| Wafflenator: yes | 17:28 |
|
cmn
| how you check for the version depends on the whell | 17:29 |
|
thiago
| Wafflenator: git starts working once you're inside a repository | 17:29 |
|
cmn
| shell* | 17:29 |
|
thiago
| Wafflenator: except for git clone and git init | 17:29 |
|
Wafflenator
| Okay, nm then thanks guys. I can cd on init using a batch script I've done that before | 17:29 |
| → netiru joined | 17:29 |
| ← Wafflenator left | 17:30 |
| ← babilen left | 17:30 |
| → octoquad joined | 17:30 |
| → kenperkins joined | 17:31 |
|
flavius
| How could I split a hunk further when using git add -p file? I get this http://i.imgur.com/uuh2k.png and it doesn't let me split it down - I would like to stage only the deletion of that one line | 17:32 |
|
thiago
| press e and edit the hunk | 17:32 |
| → pdtpatr1ck joined | 17:32 |
|
thiago
| and please pastebin text, not images | 17:32 |
| ← subh left | 17:33 |
| ← johnathanb left | 17:33 |
|
flavius
| it's colored, it's easier to read, it features powerful git colors! | 17:34 |
|
| :D | 17:34 |
| ← mklappstuhl left | 17:34 |
|
cmn
| a hung of picture isn't easier to read than text | 17:34 |
|
| specially with that horrible font | 17:34 |
|
flavius
| cmn: what font would you like? I can set it :D | 17:34 |
| → Altreus joined | 17:35 |
| ← angelsl left | 17:35 |
|
cmn
| I want text | 17:35 |
|
Altreus
| I get this -- fatal: Unable to create temporary file: Permission denied -- but I'm not sure where it's trying to write the temporary file on the remote end. Can anyone help? | 17:35 |
|
| er, when trying to push | 17:35 |
| ← alan_w left | 17:35 |
|
Altreus
| error: unpack failed: index-pack abnormal exit | 17:35 |
|
cmn
| ssh into the system and check the permissions in the objects dir | 17:36 |
| ← soulcake_ left | 17:36 |
|
Altreus
| ah, it's probably doing it by group -- let me try | 17:36 |
|
| cmn: thanks that was it :) | 17:37 |
|
cmn
| you should try to figure out why that happened | 17:38 |
|
| permissions don't change automatically | 17:38 |
| ← iocor left | 17:38 |
| → srcerer joined | 17:39 |
| ← tcurdt left | 17:39 |
| ← bgerber left | 17:39 |
| → griotspeak joined | 17:40 |
|
flavius
| using images is much more convenient for small things which don't need to be line-numbered - usually for visual things, not source code | 17:40 |
|
sh4rm4
| i created a tag with -a - how can i push it upstream ? | 17:40 |
| ← mxweas_ left | 17:40 |
| ← Spockz left | 17:40 |
|
flavius
| and I'm using a script to take the screenshot, post to imgur, and copy the URL to my clipboard. what could be more convenient? | 17:40 |
|
cmn
| to let people read text however they wish | 17:41 |
| → multi_io_ joined | 17:41 |
|
cmn
| sh4rm4: git push tag tagname | 17:41 |
| ← thiago left | 17:41 |
|
cmn
| with the remote in there | 17:41 |
| ← netiru left | 17:41 |
| ← SegFaultAX left | 17:42 |
|
flavius
| cmn: come on, it's monospaced, as for programmers. and I bet you don't set the fonts "as you wish" for pastebin sites, you just use the site's / browser's default font | 17:42 |
| → bgerber joined | 17:42 |
|
flavius
| be honest to yourself, what you say is pure religion | 17:42 |
|
cmn
| so you'd rather make it harder for people who are trying to help you? | 17:43 |
| ← retoryter left | 17:43 |
|
flavius
| was it harder? be honest | 17:43 |
|
sh4rm4
| cmn++ | 17:43 |
|
cmn
| are you completely sure that everybody in this channel has perfect sight? | 17:43 |
| ← multi_io_ left | 17:43 |
| → SegFaultAX joined | 17:43 |
|
cmn
| that you're not excluding people by posting something they can't read? | 17:43 |
| → mklappstuhl joined | 17:43 |
|
cmn
| and yes, it is harder | 17:43 |
| → retoryter joined | 17:44 |
|
flavius
| I would rather not put a burden on people with problems to help me, they have (understandably) enough to deal with | 17:44 |
|
cmn
| you have to adjust to the other person's environment and find the small piece of the picture that shows the important stuff | 17:44 |
| → multi_io_ joined | 17:44 |
|
multi_io_
| I want to git push to a repo which I have access to only by moving files there via USB sticks. | 17:45 |
|
cmn
| use a bundle | 17:45 |
|
flavius
| multi_io_: use the file protocol | 17:45 |
|
multi_io_
| how do I accomplish this? | 17:45 |
| → cenuij joined | 17:45 |
| ← cenuij left | 17:45 |
| → cenuij joined | 17:45 |
| ← Element9_work left | 17:45 |
| ← mklappstuhl left | 17:45 |
| → mklappstuhl joined | 17:45 |
|
shruggar
| if it's small enough to not need line numbers, it's small enough to paste in IRC (ie: it's one line long :)) | 17:45 |
|
multi_io_
| bundle, ah | 17:45 |
| → h0bbit joined | 17:46 |
|
multi_io_
| flavius: you mean having a repo on the USB stick? | 17:46 |
|
flavius
| multi_io_: yes, you can just set the remote's url to a local path, and on the usb stick you'd have the bare repo | 17:47 |
|
multi_io_
| yeah, I get that | 17:47 |
| → iamjarvo joined | 17:47 |
| → Araxia joined | 17:47 |
| → redheadphones joined | 17:47 |
|
multi_io_
| actually I don't really have a USB stick right now, I prefer emailing files for now, so git bundle it is | 17:48 |
| ← gchristensen left | 17:48 |
| → orospakr joined | 17:48 |
|
multi_io_
| :) | 17:48 |
| → alan_w joined | 17:48 |
| ← zulax left | 17:48 |
| → f0i joined | 17:48 |
|
flavius
| patches over e-mail... I think we need git for another 20 years around so we can get rid of the stone age :D | 17:49 |
| ← digiv left | 17:49 |
|
cmn
| huh? a bundle isn't a patch | 17:49 |
| → Sadin_ joined | 17:49 |
| ← retoryter left | 17:51 |
| ← johnhamelink left | 17:52 |
| → Biopandemic joined | 17:54 |
| ← bgerber left | 17:55 |
| ← garpenlov left | 17:55 |
| → igotnolegs joined | 17:57 |
|
SethRobertson
| Better than a patch | 17:57 |
| ← igotnolegs left | 17:57 |
| ← achadwick left | 17:57 |
| ← Biopandemic left | 17:57 |
| ← diogogmt left | 17:58 |
| → OOPMan joined | 17:58 |
| → mbroeker joined | 17:59 |
| → dc5ala joined | 17:59 |
| → diogogmt joined | 18:00 |
| → airborn joined | 18:00 |
| ← toni_ left | 18:00 |
| → lacrymology joined | 18:01 |
| ← sdeboey left | 18:01 |
| → garpenlov joined | 18:02 |
| → fruight joined | 18:03 |
| → maletor joined | 18:03 |
| ← pdtpatr1ck left | 18:04 |
| ← shruggar left | 18:04 |
| → sudoquai joined | 18:05 |
| → prudnikov joined | 18:06 |
| ← tatsuya_o left | 18:08 |
| → bgerber joined | 18:08 |
| ← alansaul left | 18:08 |
| → Error404NotFound joined | 18:09 |
| → disappearedng joined | 18:09 |
| → Cromulent joined | 18:10 |
| ← overbythere left | 18:10 |
| → j416 joined | 18:11 |
| ← friskd left | 18:11 |
| ← fairuz_ left | 18:11 |
| → Russell^^ joined | 18:12 |
| → fairuz_ joined | 18:13 |
| ← KayGridley left | 18:13 |
| ← JEEB left | 18:14 |
| ← alan_w left | 18:14 |
| ← Psylock524 left | 18:14 |
| → prateekagr joined | 18:15 |
| → w09x joined | 18:15 |
| → kermit joined | 18:15 |
| ← kermit left | 18:15 |
| ← Dragooon left | 18:16 |
| → mxweas_ joined | 18:16 |
| Vampire0_ → Vampire0 | 18:17 |
| → ferdna joined | 18:17 |
| → sekati joined | 18:18 |
| → stockholm joined | 18:19 |
| harsh_dinner → harsh | 18:19 |
| gitinfo set mode: +v | 18:20 |
| harsh → harshpb | 18:20 |
| → kermit joined | 18:20 |
| ← kermit left | 18:20 |
| → thiago joined | 18:20 |
| ← dharrigan left | 18:20 |
| ← apok left | 18:20 |
| → kermit joined | 18:20 |
| ← kermit left | 18:20 |
|
stockholm
| hi | 18:20 |
|
| i have a github project | 18:21 |
|
| with changes | 18:21 |
| ← tvw left | 18:21 |
| → Lujeni joined | 18:21 |
|
stockholm
| and i want to merge them into an other github project | 18:21 |
| → pdtpatr1ck joined | 18:21 |
|
stockholm
| let me look up the URLs... | 18:21 |
| ← w09x left | 18:21 |
| → kermit joined | 18:22 |
|
SethRobertson
| stockholm: Typically you submit a pull request via the github web ui | 18:22 |
|
stockholm
| i want to merge this https://github.com/stockh0lm/setup-storage/tree/andreas/setupstoragerefactor into https://github.com/faiproject/ | 18:23 |
| → apok joined | 18:23 |
|
cmn
| do you have access to the faiproject? | 18:23 |
|
| also note that the second URL for a user, not a repo | 18:23 |
|
stockholm
| SethRobertson: this is more advanced. i used svn2git to create my stuff, and worked on that, in a branch, and later the whole project moved to github | 18:24 |
| ← nomadtacos left | 18:24 |
| ← apok left | 18:24 |
|
cmn
| why did you use svn2git when the project is already in git? | 18:24 |
|
stockholm
| oh,https://github.com/faiproject/fai-project.org ? | 18:24 |
|
SethRobertson
| Well...add their project as a remote and see if the SHA line up. If not, you will be in for some work | 18:25 |
| → Chowzzf joined | 18:25 |
| ← harshpb left | 18:25 |
|
stockholm
| cmn: it wasnt at that time. or it was still in limbo and transition | 18:25 |
| → harshpb joined | 18:25 |
|
stockholm
| SethRobertson: how do i do that? add it as a remote? | 18:25 |
|
| SethRobertson: and how do i see it the sha line up? | 18:26 |
|
SethRobertson
| git remote add faiproject git://url.that/github/profiels | 18:26 |
|
someprimetime
| http://toroid.org/ams/git-website-howto this is a good guide on writing content locally and then pushing it to the server, but basically i want to do it the other way around: e.g. initialize a repo on my server which is a folder of all the files I want to edit, then make branches locally and then push those to that repo. would this same guide apply? | 18:26 |
| → tewecske joined | 18:26 |
|
cmn
| someprimetime: that howto is for abusing git as a deployment tool | 18:26 |
| → fayimora joined | 18:26 |
|
someprimetime
| so it's a shitty one? | 18:26 |
|
SethRobertson
| someprimetime: Yes. Create the repo using your workflow and then use the toroid guide from then on | 18:27 |
|
cmn
| it's enough for some usecases | 18:27 |
| → DofLeFou joined | 18:27 |
|
cmn
| you still want to have a bare repo | 18:27 |
|
someprimetime
| it's just me going to be doing everything so i don't need gitolite or a way to manage users | 18:27 |
|
| ok i'll go with the bare repo that's what i've been hearing | 18:27 |
| → smoge joined | 18:27 |
|
SethRobertson
| stockholm: Use `gitk --all --date-order` to see if commits before your local changes have appear on the same branch or there are two branches, one for you and one for them. | 18:27 |
|
cmn
| that has nothing to do with whether that is a good idea | 18:27 |
|
| someprimetime: as you'll want to have a bare repo on the server anyway, init a repo where your files are, add them and push to the bare repo | 18:28 |
|
| all of this on the server | 18:28 |
|
someprimetime
| ok sweet thx | 18:28 |
|
cmn
| then you can use whatever method for working with your files | 18:28 |
| → dharrigan joined | 18:29 |
| ← dharrigan left | 18:29 |
| → dharrigan joined | 18:29 |
| → felkor joined | 18:29 |
| → Spockz joined | 18:30 |
|
stockholm
| SethRobertson: what url is that in "git remote add faiproject git://url.that/github/profiels | 18:30 |
|
| ? | 18:30 |
|
SethRobertson
| provides | 18:30 |
| ← mxweas_ left | 18:30 |
|
stockholm
| i am an owner of the project, but i dont get github to display a proper write-url | 18:30 |
|
cmn
| it's one of the options at the top where it shows you the url | 18:31 |
|
| but you should already have one; aren't you looking for the upsteream url? | 18:31 |
|
SethRobertson
| yes | 18:31 |
|
stockholm
| i look at this: | 18:32 |
|
| https://github.com/faiproject/fai-project.org | 18:32 |
|
cmn
| then there's no way github is going to give you a write url | 18:32 |
| ← pdtpatrick left | 18:32 |
|
SethRobertson
| It will give you a git:// URL | 18:32 |
|
stockholm
| https://github.com/faiproject/fai-project.org | 18:32 |
|
| err | 18:32 |
|
| sorry for that | 18:32 |
|
cmn
| that's the other one | 18:32 |
| → katspaugh joined | 18:32 |
|
stockholm
| [email@hidden.address] | 18:32 |
|
| but that is a read-only url, right? | 18:33 |
|
cmn
| that depends | 18:33 |
|
| it's a ssh url | 18:33 |
|
stockholm
| ah, let me try, then | 18:33 |
|
cmn
| if you're allowed to, it's a read-write url, but that's irrelevant right now | 18:33 |
| → shruggar joined | 18:33 |
|
SethRobertson
| Actually, to tell you the truth what you are going to want to do eventually is create a new repo which is a fork of faiproject and then move your changes from your old repo to that repo, and then delete your previous repo | 18:33 |
|
stockholm
| SethRobertson: yes, that sounds right | 18:34 |
|
ddilinger
| i need some help understanding git diff. I do 'git checkout master', look at some file, 'git checkout origin/master' look at same file, they are the same. 'git checkout master; git diff master origin/master' says they are different, as if its not looking at current master, but something else | 18:34 |
|
stockholm
| SethRobertson: how do i do THAT? :-) | 18:34 |
| ← OOPMan left | 18:34 |
| gitinfo set mode: +v | 18:34 |
|
katspaugh
| Hi! What's the proper way to add a third-party library to my project? The library has it's own repository, but I want to distribute the library along with my code. | 18:34 |
|
cmn
| !subrepos | 18:34 |
|
gitinfo
| [!subprojects] So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely seperate. Otherwise your best options are "!submodule" "!gitslave" and "!subtree" Try typing those commands into this IRC channel. | 18:34 |
|
felkor
| hi, why "GIT_WORK_TREE=../gitrepo.git git pull" works in shell and in a script it returns "/usr/lib/git-core/git-pull: 139: cd: can't cd to /home/user/gitrepo.git". is there a way to do it in a shell? | 18:34 |
|
katspaugh
| Thanks, cmn! | 18:34 |
|
thiago
| felkor: are you running that with the same user? | 18:35 |
|
felkor
| yes | 18:35 |
|
cmn
| felkor: that's not going to do what yo think it will | 18:35 |
|
katspaugh
| !submodule | 18:35 |
|
gitinfo
| git-submodule is ideal to add subsidiary git repositories to a git superproject when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes upstream. See http://book.git-scm.com/5_submodules.html | 18:35 |
| ← eli left | 18:35 |
|
felkor
| cmn in the shell it does | 18:35 |
|
thiago
| felkor: are you sure that gitrepo.git contains a *checkout* of your repository? | 18:35 |
|
cmn
| why do you want to use a metadata dir for storing your files | 18:35 |
|
felkor
| thiago, no it doesnt, but it works in the shell | 18:36 |
| ← lacrymology left | 18:36 |
|
cmn
| what does work mean in this case? | 18:36 |
|
| that command doesn't seem to make any sense | 18:36 |
|
felkor
| cmn, thiago I run in from the git checkout dir | 18:36 |
|
cmn
| if you run it from the checkout dir, why are you setting a different one? | 18:37 |
|
| and telling it to use a .git dir? | 18:37 |
| ← smoge left | 18:37 |
|
felkor
| because of ikiwiki | 18:37 |
|
| http://ikiwiki.info/tips/laptop_wiki_with_git/ | 18:37 |
| → joshteam joined | 18:37 |
|
felkor
| this way i would update my wiki without having to add a git remote | 18:38 |
| → samnob_ joined | 18:38 |
|
felkor
| i was truing that and it works on the shell | 18:38 |
|
| *trying | 18:38 |
|
someprimetime
| i just made a bare repo in ~/git/mydomain.com and did `git init` on the server... was i supposed to make a folder called mydomain.git within mydomain.com and then cd into that and `git init` within that (mydomain.git)? | 18:39 |
|
SethRobertson
| stockholm: Get the first repo in shape first. Then worry about forking and putting your changes on the fork | 18:39 |
|
felkor
| it updates the checkout dir without adding the original remote of the gitrepo.git, that was cloned with got clone --mirror | 18:39 |
|
| *git | 18:39 |
|
thiago
| felkor: GIT_WORK_TREE should point to a checkout | 18:39 |
|
cmn
| felkor: so ../gitrepo.git is where you're trying to pull from? | 18:40 |
| → indstry joined | 18:40 |
|
felkor
| cmn, y, i think so | 18:40 |
|
stockholm
| SethRobertson: both repos are in shape, taken as they are. | 18:40 |
|
cmn
| then telling git to checkout files there is completely the wrong thing to do | 18:40 |
|
someprimetime
| nvm got it | 18:40 |
|
stockholm
| afaik | 18:41 |
|
felkor
| thiago, checkout tree is the result of "git clone gitrepo.git" without --mirror? | 18:41 |
|
someprimetime
| i didn't `git init` locally | 18:41 |
|
SethRobertson
| stockholm: Yes, I mean answering the question about whether the SHA are the same and getting your changes to be after all remote changes, etc. | 18:41 |
| ← ipalaus_ left | 18:41 |
|
thiago
| felkor: yes | 18:41 |
| ← nikuyoshi left | 18:41 |
| → JEEB joined | 18:41 |
| ← diogogmt left | 18:42 |
| → RaceCondition joined | 18:42 |
| ← SegFaultAX left | 18:42 |
| → vacho joined | 18:42 |
|
vacho
| guys.. | 18:42 |
|
| how do I go back to an earlier commit? | 18:43 |
| → infogulch joined | 18:43 |
|
cmn
| go back to do what? | 18:43 |
| → ipalaus_ joined | 18:43 |
|
SethRobertson
| vacho: To view or to change your repo? | 18:43 |
|
vacho
| I made some changes that I am not happy with, how do I go back to my last commit? | 18:43 |
|
SethRobertson
| vacho: !fixup | 18:43 |
|
gitinfo
| vacho: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info) | 18:43 |
| → diogogmt joined | 18:43 |
| → SegFaultAX joined | 18:43 |
|
vacho
| i dont care about history.. | 18:43 |
|
| just want to go back to an earlier state | 18:44 |
|
SethRobertson
| Then follow the link and answer the questions | 18:44 |
|
cmn
| then follow thosesteps | 18:44 |
| ← skitrees left | 18:44 |
|
felkor
| what i did: git clone --mirror anothergit.git gitrepo.git; git clone gitrepo.git gitrepo ; cd gitrepo ; GIT_WORK_TREE=../gitrepo.git git pull <- it pulls from the original repo in the shell and gives error in script | 18:45 |
| → notjohn joined | 18:45 |
|
cmn
| it pulls from ../gitrepo.git because that's it's "origin" repo | 18:45 |
|
vacho
| that's an awesome website, wow!! | 18:45 |
| → skitrees joined | 18:46 |
|
someprimetime
| on my local machine i just created a folder, git init'd in it and added my bare repo from my server.. now i'm checking to see if it's added by going `git remote show origin` and it's asking me for a pw. i'm putting the pw to my server but it's telling me wrong pass | 18:46 |
| ← skitrees left | 18:46 |
|
someprimetime
| vacho ++ i totally just bookmarked that too haha | 18:47 |
|
SethRobertson
| someprimetime: `git remote show origin -vv` says what URL? | 18:47 |
|
vacho
| hehe | 18:47 |
| ← shruggar left | 18:47 |
|
someprimetime
| SethRobertson: error: unknown switch `v' | 18:47 |
| ← edude03 left | 18:47 |
|
SethRobertson
| git remote -vv show origin | 18:47 |
|
| bah | 18:47 |
| → skitrees joined | 18:47 |
| → bitslip joined | 18:47 |
| ← diogogmt left | 18:48 |
|
someprimetime
| it's asking me for my server pw again | 18:48 |
|
| i entered it, and it's saying permission denied | 18:48 |
|
| Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). | 18:48 |
|
| do i need to regenerate my keys? | 18:48 |
| → diogogmt joined | 18:48 |
|
SethRobertson
| Try `git remote -vv` | 18:48 |
| ← prateekagr left | 18:49 |
|
someprimetime
| origin ssh://someprimetime@mydomain.com:3000/~/git/mydomain.com (fetch) | 18:49 |
|
| origin ssh://someprimetime@mydomain.com:3000/~/git/mydomain.com (push) | 18:49 |
| → alanp joined | 18:50 |
|
SethRobertson
| OK. Run `ssh [email@hidden.address] and try to log in. If that works, then it is git's fault. If it does not work, then it is not git's fault. | 18:50 |
| ← SegFaultAX left | 18:50 |
| ← Shakyj left | 18:51 |
|
someprimetime
| SethRobertson: ssh: Could not resolve hostname mydomain.com:3000: nodename nor servname provided, or not known | 18:51 |
|
| but i usually prefix it with -P 3000 before i ssh to specify the port name | 18:51 |
|
| err -p rather | 18:51 |
|
| ssh -p 3000 [email@hidden.address] which works | 18:51 |
|
chrisf
| => git's fault. | 18:51 |
| ← bgerber left | 18:51 |
|
someprimetime
| so i should just restart? | 18:52 |
| ← Z3Rt left | 18:52 |
| → SegFaultAX joined | 18:52 |
| → tqmz joined | 18:52 |
| ← fairuz_ left | 18:52 |
|
SethRobertson
| someprimetime: Try `GIT_TRACE=1 git ls-remote origin` | 18:52 |
| → fairuz_ joined | 18:53 |
|
someprimetime
| SethRobertson: pardon the paste source, but pastebin is down: http://bin.cakephp.org/view/30234616 | 18:53 |
| → bgerber joined | 18:53 |
| → w09x joined | 18:54 |
|
someprimetime
| so i think i need to change my port to 3000 in my ssh config, maybe? | 18:54 |
| → shergill joined | 18:54 |
| → Shakyj joined | 18:54 |
| → shruggar joined | 18:54 |
|
SethRobertson
| Um, that's odd. Try `ssh -p 3000 [email@hidden.address] ls ~/git/mydomain.com/config` | 18:55 |
| ← felkor left | 18:56 |
| ← GeorgeSebastian left | 18:57 |
| → mxweas_ joined | 18:58 |
| → filosofo joined | 18:59 |
| ← brian_g left | 18:59 |
| ChanServ set mode: +v | 18:59 |
| ← posciak2 left | 18:59 |
| → posciak joined | 18:59 |
| → traviscj joined | 19:00 |
|
filosofo
| How can I get the author of a specific hash when my current working directory is not in the repository? | 19:00 |
| samnob_ → samnob | 19:00 |
| → advatar joined | 19:01 |
|
selckin
| git_dir it | 19:01 |
| ← SegFaultAX left | 19:01 |
|
samnob
| Is this a good channel to ask about using "repo" code.google.com/p/git-repo/ ? | 19:01 |
| → SegFaultAX joined | 19:02 |
|
SethRobertson
| filosofo: You submitted a patch or someone lied. | 19:02 |
|
| samnob: Not as such. Are you trying to use it for non-android things? | 19:02 |
|
samnob
| No it's android-ish. | 19:03 |
| ← Error404NotFound left | 19:03 |
|
SethRobertson
| You may ask, but I've never heard anyone profession great experience with it other than random users. | 19:03 |
|
someprimetime
| SethRobertson: i figured it out | 19:04 |
|
samnob
| I just want to use different projects (android forks [cyanogenmod and replicant]) without too much duplication | 19:04 |
|
someprimetime
| i created the directory as root but was trying to look for the directory that would be created as a user | 19:05 |
|
| so the home directory paths were different | 19:05 |
| ← mxweas_ left | 19:05 |
| → gv joined | 19:05 |
|
someprimetime
| cause when i'd do cd ~/ as root, it'd be diff as someprimetime cd ~/ | 19:05 |
| ← infogulch left | 19:05 |
|
someprimetime
| thanks for helping | 19:05 |
| → rickmasta joined | 19:06 |
|
SethRobertson
| samnob: If you do the cloning manually you can use --reference to try to share the second with the first. Good luck with that | 19:06 |
|
| someprimetime: So use ~user or /home/user | 19:06 |
|
stockholm
| how can i export (?) my changes as patches+commit messages and apply them as patches to an other git project? | 19:06 |
|
SethRobertson
| stockholm: First step, add the other repo as a remote and then determine if the SHA line up. | 19:07 |
|
samnob
| Ugh, I think I'm in over my head. I may just blow off the upstream. | 19:07 |
|
kevlarman
| stockholm: git-format-patch and git-am | 19:07 |
|
| stockholm: or git-send-email in place of the former | 19:07 |
|
filosofo
| selckin, thanks | 19:08 |
| ← filosofo left | 19:08 |
|
stockholm
| SethRobertson: i did add it as a remote, but i dont see any newer commits then mine. (do i need to pull?) | 19:08 |
|
chrisf
| you need to *fetch*. | 19:08 |
| ← DofLeFou left | 19:09 |
|
SethRobertson
| stockholm: You are not looking for newer commits, you are looking for older commits. Scroll (using `gitk --all --date-order`) to sometime BEFORE you made your commits. Do you see multiple lines of development with each commit appearing twice? | 19:09 |
| ← xsbeats left | 19:10 |
| → mishok13 joined | 19:10 |
|
SethRobertson
| stockholm: Assuming, yes, you have `git remote update` | 19:10 |
| ← Vampire0 left | 19:10 |
|
SethRobertson
| or fetched | 19:10 |
| → brian_g joined | 19:11 |
|
stockholm
| SethRobertson: that gives me: * [new branch] master -> faiproject/master | 19:11 |
|
| is that good? | 19:11 |
|
SethRobertson
| yes | 19:11 |
|
| not try the `gitk` thing | 19:11 |
|
stockholm
| ok | 19:11 |
| → skoop joined | 19:12 |
| → Z3Rt joined | 19:12 |
| dfr|mac_ → dfr|mac | 19:12 |
| → ketas joined | 19:13 |
| ← diogogmt left | 19:14 |
| → OOPMan joined | 19:15 |
| ← SegFaultAX left | 19:15 |
|
stockholm
| SethRobertson: now i see tons of duplicate entries. | 19:15 |
|
| SethRobertson: except my own, which are only in my branch | 19:15 |
| → diogogmt joined | 19:16 |
| ← cortana2 left | 19:16 |
|
stockholm
| SethRobertson: i guess that means that the shas dont match | 19:16 |
|
SethRobertson
| stockholm: OK. Now you want to make a local tracking branch off of the new $remote/master (or whatever branch you are interested in) . `git checkout -t othermaster $remote/master` | 19:17 |
|
| Right, the SHA do not match. You will want to cherry-pick your changes over to a new branch | 19:17 |
|
stockholm
| ok | 19:17 |
|
| and $remote is the git url that i get from github from the fai-project? | 19:18 |
| ← wuj left | 19:18 |
| ← truzie left | 19:18 |
|
SethRobertson
| No, $remote is the name in the `git remote add $remote $URL` command | 19:18 |
|
stockholm
| ah | 19:18 |
|
| ~/src/fai(master)$ git checkout -t othermaster faiproject/master | 19:19 |
|
| fatal: Missing branch name; try -b | 19:19 |
| → nikuyoshi joined | 19:19 |
| ← octoquad left | 19:19 |
| ← Spockz left | 19:20 |
|
SethRobertson
| You will need to add a -b before or after the -t. The man page doesn't say which order, in a fit of stupidity | 19:20 |
|
stockholm
| SethRobertson: ok | 19:20 |
| ← diogogmt left | 19:20 |
|
thiago
| the order shouldn't matter | 19:20 |
|
SethRobertson
| It does | 19:21 |
| ← OOPMan left | 19:21 |
|
thiago
| huh? | 19:21 |
|
| so -t takes an option? | 19:21 |
| → boombatower joined | 19:21 |
|
stockholm
| ~/src/fai(master)$ git checkout -t -b othermaster faiproject/master | 19:21 |
|
| Branch othermaster set up to track remote branch master from faiproject. | 19:21 |
|
| Switched to a new branch 'othermaster' | 19:21 |
|
| after, i guess :-) | 19:21 |
| → diogogmt joined | 19:21 |
|
cmn
| -b gets an option, so it should be the last one | 19:21 |
| ← mishok13 left | 19:21 |
|
stockholm
| SethRobertson: and now? | 19:21 |
| → gchristensen joined | 19:22 |
|
SethRobertson
| stockholm: Before you mean. Well now you will need to find the SHA of the commits you made. Are they all in a row? | 19:22 |
|
stockholm
| yes | 19:22 |
|
| they are | 19:22 |
|
thiago
| from the manual, it doesn't seem like -b takes an option | 19:22 |
| ← vacho left | 19:22 |
|
thiago
| it's just a switch | 19:22 |
| → A1kanaro joined | 19:22 |
| → Spockz joined | 19:22 |
|
SethRobertson
| stockholm: OK, then find the SHA of the first commit and the SHA of the last commit, and run `git cherry-pick FIRST...LAST` | 19:22 |
| → infogulch joined | 19:22 |
|
cmn
| oh, good point | 19:22 |
| → Vampire0 joined | 19:23 |
|
SethRobertson
| I would greatly support anyone who wants to submit a patch for this. Why, I might even give them a ++ | 19:23 |
| ← martinjlowm left | 19:23 |
|
cmn
| in modern git, the -b isn't needed, is it? | 19:24 |
| ← nikuyoshi left | 19:24 |
| → martinjlowm-lptp joined | 19:24 |
|
SethRobertson
| Well, stockholm reported an error when I tried to not include it | 19:24 |
|
cmn
| with which version, though? | 19:25 |
|
SethRobertson
| `git checkout -t randomname nonorigin/master` | 19:25 |
|
cmn
| of git, I mean | 19:25 |
|
SethRobertson
| Yes, I know. That doesn't follow the autocreation rules. | 19:25 |
|
| stockholm: `git -v`? | 19:25 |
| → smw_ joined | 19:26 |
|
SethRobertson
| Or even git --version | 19:26 |
| ← diogogmt left | 19:26 |
| → martinjlowm joined | 19:26 |
|
SethRobertson
| cmn: It fails in 1.7.8.4 | 19:27 |
|
| (rm -rf z; git init z; cd z; echo A>A; git add A; git commit -m A; git remote add other ..; git checkout -t randomname other/master) | 19:27 |
| ← [M]ax left | 19:28 |
| → diogogmt joined | 19:28 |
|
cmn
| fails with 1.7.9.rc0 (no I idea why I have that version); maybe it works for origin | 19:28 |
| → [M]ax joined | 19:29 |
| ← lyddonb left | 19:29 |
| ← brian_g left | 19:29 |
|
cmn
| hm, other/master doesn't even exist in that example | 19:29 |
|
SethRobertson
| cmn: Adding a `git remote update` doesn't help | 19:31 |
| → mxweas_ joined | 19:31 |
|
cmn
| no, what does work is git checkout -t origin/master | 19:31 |
| ← valtih left | 19:31 |
|
cmn
| was miremembering then | 19:32 |
| ← diogogmt left | 19:32 |
|
SethRobertson
| How would that work if master already existed? | 19:32 |
|
| fatal: A branch named 'master' already exists. | 19:32 |
|
| You probably wouldn't need to even use -t in that circumstance. | 19:32 |
| ← advatar left | 19:32 |
| → SegFaultAX joined | 19:32 |
|
SethRobertson
| (assuming master didn't exist I mean) | 19:33 |
|
tango_
| --set-upstream | 19:33 |
|
cmn
| I changed the line a bit | 19:33 |
|
tango_
| (if it exists) | 19:33 |
|
cmn
| 'cos I'm testing in /tmp and .. isn't a repo | 19:33 |
|
SethRobertson
| No, it errors out | 19:33 |
| → lyddonb joined | 19:33 |
| ← ASIRINeiluj left | 19:33 |
| ← mxweas_ left | 19:34 |
|
cmn
| it works if master is unborn | 19:34 |
| → brian_g joined | 19:35 |
|
cmn
| but yeah, I was thinking of something different | 19:35 |
|
SethRobertson
| You could also say `git checkout master` and it would work (if master was unborn) | 19:35 |
| ereslibre_laptop → ereslibre | 19:35 |
|
cmn
| but only for origin | 19:35 |
| ← zagra left | 19:35 |
|
SethRobertson
| Seems probable | 19:36 |
| → OOPMan joined | 19:36 |
|
cmn
| oh, apparently not | 19:36 |
|
| it works just fine if the remote is called "other" | 19:36 |
| ← shruggar left | 19:37 |
| ← samnob left | 19:38 |
|
cmn
| it just needs to be the only remote | 19:38 |
| ← indstry left | 19:41 |
|
stockholm
| http://paste.debian.net/156942/ | 19:41 |
|
| SethRobertson: what does it want from me? | 19:41 |
|
SethRobertson
| stockholm: Huh? | 19:41 |
| → apok joined | 19:43 |
|
stockholm
| SethRobertson: do you understand the paste? | 19:43 |
| → johnhamelink joined | 19:44 |
|
SethRobertson
| Sorry, I missed the paste. Run `git mergetool` | 19:44 |
| → sdeboey joined | 19:44 |
|
SethRobertson
| Or decide whether you want to delete that file or keep it | 19:44 |
| → fedesilva joined | 19:44 |
|
cbreak
| or just read what status says and resolve it | 19:44 |
| ← Cromulent left | 19:45 |
|
wereHamster
| stockholm: line 21 to be precise | 19:45 |
| → shruggar joined | 19:47 |
| → cmyk_ joined | 19:49 |
| → _marvin joined | 19:50 |
| → Element9 joined | 19:50 |
| → mastro joined | 19:51 |
| ← traviscj left | 19:52 |
| → savant joined | 19:52 |
|
savant
| hi all | 19:52 |
|
| I'm rewriting the history of a project | 19:53 |
|
| (yes, very bad) | 19:53 |
|
| to remove all files not in a specific whitelist. | 19:53 |
|
SethRobertson
| git-filter-branch | 19:53 |
|
savant
| is there a way, other than specifying the files I want to delete, to delete all files not in the whitelist? | 19:53 |
|
cbreak
| write a script | 19:54 |
| → zulax joined | 19:54 |
|
SethRobertson
| git ls-tree -r HEAD | egrep -v whitelist | 19:54 |
|
stockholm
| SethRobertson: now i decided to remove the file, and i think the merge is happy now | 19:54 |
|
cmn
| rm --cached *; git add <whitelist> | 19:54 |
|
cbreak
| or git reset HEAD instead of add | 19:54 |
|
SethRobertson
| cmn++ | 19:54 |
|
stockholm
| SethRobertson: now i push? | 19:54 |
|
| SethRobertson: how do i push? | 19:54 |
| ← garpenlov left | 19:54 |
|
SethRobertson
| stockholm: No, what you do now is fork the new upstream project branch | 19:54 |
|
stockholm
| ah | 19:56 |
| → traviscj joined | 19:56 |
|
stockholm
| hu | 19:56 |
|
| SethRobertson: can you explain why? i dont get it | 19:57 |
|
| where in the process are we just now? | 19:57 |
| ← PigeonFriend left | 19:58 |
|
SethRobertson
| stockholm: As I understand it, you now have a branch which consists of the true upstream with your patches after their commits | 19:58 |
|
| stockholm: Now, you want to submit your patches to them and continue to track their repo while doing so | 19:58 |
|
| stockholm: So, in order to use the github patch passing system, create a fork of their repo. | 19:59 |
|
stockholm
| SethRobertson: i have a local branch of their repo, with my patches applied, right? havent i created a fork already, in that way? | 19:59 |
| → kerrick joined | 20:00 |
|
stockholm
| i am an owner of the project, so i should be able to push, right? | 20:00 |
|
SethRobertson
| You have an git-only fork, which is not associated with the true upstream using github's methods. If you want to pass the patches via github (the expected way) you need to create a true github fork | 20:00 |
| ← katspaugh left | 20:00 |
|
SethRobertson
| You *can* push your changes to your repo, `git push -f origin mybranch:master` It just isn't going to get you where you want to go | 20:01 |
| → Jitse joined | 20:01 |
| gitinfo set mode: +v | 20:01 |
| → xsbeats joined | 20:02 |
|
stockholm
| SethRobertson: ok, so how do i create that fork? | 20:02 |
| ← skitrees left | 20:02 |
|
Jitse
| hey guys, i've made a git user, gave him /usr/bin/git-shell, added two keys to the authorized_keys, added git to the AllowUsers option of sshd_config, restarted the ssh daemon; but now the server just tells me i can't ssh with the git user, as i have a wrong key | 20:02 |
|
SethRobertson
| stockholm: Go to the upstream github page, where you got the URL, and there should be a button on it to Fork | 20:03 |
|
cmn
| Jitse: does your ssh know to send the right key? | 20:03 |
| ← xsbeats left | 20:04 |
|
Jitse
| yes, when i do ssh -vT [email@hidden.address] he tells me he's using my default ~/.ssh/id_rsa.pub and id_rsa | 20:04 |
|
| i'm on linux now ^^ | 20:04 |
|
stockholm
| found it, i think | 20:04 |
| ← brian_g left | 20:04 |
|
cmn
| and it logs you in? | 20:04 |
|
Jitse
| no it does not, it tries the keys and then says no more authentication methods to try | 20:04 |
|
| permission denied (publickey) | 20:04 |
|
| i'll pastebin my console output | 20:05 |
|
SethRobertson
| stockholm: Once you fork, you will want to find the read-write URL for your new repo. You will then once again `git remote add myfork url-of-new-repo; git remote update` | 20:06 |
| ← alberto56 left | 20:06 |
|
cmn
| then that's not the right key | 20:06 |
|
SethRobertson
| stockholm: Then you can run `git log myfork/master...mybranch` and ensure that only the commits you just cherry-picked are listed as being ready to be sent. Also that `git log myfork/master...mybranch` returns nothing. | 20:07 |
|
stockholm
| SethRobertson: on it... | 20:07 |
| → brian_g joined | 20:08 |
| ← arosen left | 20:08 |
|
SethRobertson
| stockholm: Then you say: `git push myfork mybranch:master` which will upload your changes, then use the github web ui to submit a "pull request" | 20:08 |
| ← brian_g left | 20:08 |
| → arosen joined | 20:08 |
|
Jitse
| this is my console output: http://pastebin.com/RSSK7JQ0 | 20:08 |
| ← dc5ala left | 20:09 |
| ← krz left | 20:09 |
|
cmn
| that doesn't say anything other than the server refusing your key | 20:09 |
| ← ipalaus_ left | 20:09 |
|
Jitse
| *cries* | 20:09 |
|
| i know | 20:09 |
| → Yuuhi joined | 20:09 |
|
cmn
| more levels of debug might help more | 20:10 |
|
| depending on what the problem actually is | 20:10 |
|
stockholm
| SethRobertson: hu? | 20:10 |
|
| ~/src/fai/trunk/bin(othermaster)$ git push myfork othermaster:master | 20:10 |
|
| Everything up-to-date | 20:10 |
|
Jitse
| how do i get more levels of debug? :p | 20:10 |
|
cmn
| make sure that key is indeed in authorised_keys | 20:10 |
|
Jitse
| i double-checked that | 20:10 |
| ← g0bl1n left | 20:10 |
|
Jitse
| it's just one line per key right? | 20:10 |
|
cmn
| you give it more v's | 20:10 |
|
| a key is one line, yes | 20:10 |
|
SethRobertson
| stockholm: But `git log myfork/master...othermaster` returned stuff? | 20:10 |
|
cmn
| have you checked to see what the server's auth logs say? | 20:11 |
|
Jitse
| let me have a look | 20:11 |
|
stockholm
| http://paste.debian.net/156953/ | 20:11 |
|
| no, git log myfork/master...othermaster does return nothing | 20:12 |
|
Jitse
| oh crap >.< "git disallowed because account is blocked" | 20:12 |
|
| how do i unlock it without giving it a password? | 20:12 |
|
| locked* | 20:12 |
|
cmn
| don't know | 20:13 |
|
| I let sitaram figure it out and use gitolite | 20:13 |
|
SethRobertson
| stockholm: `git branch` Look for the line with the *. What is that name? | 20:13 |
| → scelis joined | 20:13 |
|
stockholm
| * othermaster | 20:13 |
| → LordCrc joined | 20:14 |
|
stockholm
| SethRobertson: ^ | 20:14 |
|
SethRobertson
| Use othermaster instead of mybranch | 20:14 |
| → rickroberts_ joined | 20:14 |
|
stockholm
| ah | 20:14 |
|
someprimetime
| i initialized a bare repo on my server (added the folder on the server that i want to commit as an origin), created a local repo and added that bare repo as an origin, now when i go into my local repo and go git pull i get `Your configuration specifies to merge with the ref 'refs/head/master' from the remote, but no such ref was fetched.` here is my .git/config on my local machine: http://pastebin.com/ahS3QJyW | 20:15 |
|
LordCrc
| hi, i just made a commit to a local repository, and want to undo it as i forgot some comments in one file... how do i undo the commit (ie ala hg rollback)? | 20:15 |
|
stockholm
| SethRobertson: you used mybranch and myfork | 20:15 |
|
someprimetime
| basically i want to pull everything i committed from the server to my local branch now | 20:15 |
|
Jitse
| whippitydoo | 20:15 |
|
stockholm
| SethRobertson: "git push myfork othermaster:master" ? | 20:15 |
|
SethRobertson
| stockholm: Yes, because I either didn't know or didn't remember the branch name you used | 20:15 |
|
| stockholm: Yes, that | 20:15 |
|
stockholm
| that does nothing | 20:15 |
|
Jitse
| cmn: now it tells me interactive git shell is not enabled, git-shell-commands should exist and have read and execute access | 20:15 |
|
cmn
| Jitse: man git shell then | 20:16 |
|
gitinfo
| Jitse: the git-shell manpage is available at http://jk.gs/git-shell.html | 20:16 |
|
stockholm
| that is what i did | 20:16 |
|
| http://paste.debian.net/156953/ | 20:16 |
| ← zulax left | 20:16 |
|
SethRobertson
| Run the logs. `git log otherbranch...myfork/master` `git log myfork/master...otherbranch` | 20:17 |
| ← SegFaultAX left | 20:17 |
| → skitrees joined | 20:18 |
|
scelis
| sitaram: have you ever considered letting people create and edit shared hooks directly from the gitolite-admin repo? | 20:18 |
| ← harshpb left | 20:18 |
| ← rsaaguy left | 20:19 |
|
stockholm
| SethRobertson: i assume otherbranch == othermaster for me | 20:19 |
|
| SethRobertson: and that gives nothing | 20:19 |
| ← Lgb left | 20:20 |
|
SethRobertson
| stockholm: Um... run `gitk --all --date-order` and look for those commits you cherry-picked | 20:20 |
| → DarkAR joined | 20:21 |
| → Lgb joined | 20:21 |
| → RCMatt joined | 20:22 |
| → akiress joined | 20:22 |
| → aspotashev joined | 20:23 |
| ← Targen left | 20:24 |
|
gv
| hey everyone, i just wanted to quickly announce a git subcommand i wrote | 20:25 |
|
| it's for those days when you find yourself sending out a ton of cgit/gitweb/etc links ... | 20:25 |
| → digitalfiz joined | 20:25 |
| ← digitalfiz left | 20:25 |
| → digitalfiz joined | 20:25 |
|
gv
| ... and you just can't take the clicking any more | 20:25 |
|
| https://github.com/gvalkov/git-link | 20:25 |
| → Targen joined | 20:26 |
|
gv
| </end-of-shameless-plug> | 20:26 |
| ← Gitzilla left | 20:26 |
| ← LordCrc left | 20:27 |
| ← Talvino left | 20:27 |
| ← DarkAR left | 20:27 |
| → ploop joined | 20:27 |
|
stockholm
| doh, i dont get it, the merging seems to have gone wrong... | 20:28 |
|
SethRobertson
| stockholm: You should not have merged yet, unless you were talking about cherry-picking | 20:29 |
| → sebrock joined | 20:29 |
|
stockholm
| yes, that is what i meant | 20:29 |
|
| i thought that was a merge | 20:29 |
| ← Davey_ left | 20:30 |
| → xsbeats joined | 20:30 |
| ← griotspeak left | 20:30 |
|
SethRobertson
| No. You can only merge with common merge-bases, and since the SHA of the old commits were different, we did not merge | 20:30 |
|
CareBear\
| hallå stockholm | 20:30 |
|
stockholm
| hej CareBear\ | 20:31 |
|
SethRobertson
| stockholm: So, you cannot locate those commits you cherry-picked? | 20:31 |
| → rue joined | 20:31 |
| → _7mj joined | 20:31 |
|
stockholm
| SethRobertson: i see them, but they are in a seperate branch like before i cherrypicked | 20:31 |
|
SethRobertson
| Right. You see the original commits you made but not the ones created as a result of the cherry-pick | 20:32 |
|
| ? | 20:32 |
|
stockholm
| yes | 20:32 |
|
SethRobertson
| what does `git status` say? | 20:32 |
|
stockholm
| SethRobertson: nothing, all is fine. | 20:33 |
| → oriba joined | 20:33 |
| ← localhost left | 20:33 |
|
stockholm
| and the files that i worked on are not in the othermaster branch, but only in my own | 20:33 |
|
SethRobertson
| Well, I can think of nothing to do other than try the cherry-picks again. | 20:33 |
| ← sebrock left | 20:33 |
|
stockholm
| where i had them origianlly | 20:33 |
|
SethRobertson
| stockholm: Those files are not committed into git if you see them now | 20:33 |
|
| The ones listed under "Untracked files" | 20:34 |
| ← lyddonb left | 20:34 |
| ← prudnikov left | 20:34 |
| → prudnikov joined | 20:35 |
|
SethRobertson
| If the files are not under untracked files, please paste the git-status | 20:35 |
| → localhost joined | 20:35 |
| ← __class__ left | 20:36 |
| → lyddonb joined | 20:36 |
| → psoo joined | 20:36 |
| → __class__ joined | 20:37 |
| ← xsbeats left | 20:37 |
| → pfFred joined | 20:37 |
| ← pfFredd left | 20:38 |
|
diegoviola
| how do i show changes that hasn't been commited yet? | 20:39 |
|
| committed | 20:39 |
|
Enlik
| diegoviola: git status | 20:40 |
|
Jitse
| scp -r proj.git [email@hidden.address] -> fatal: unrecognized command 'scp -r -t -- /home/git/proj.git' lost connection | 20:40 |
|
shruggar
| "git diff" or "git diff --cached" | 20:40 |
|
Jitse
| what's wrong with that command guys? | 20:40 |
| ← dpino left | 20:40 |
|
shruggar
| depending on if they have been staged yet | 20:40 |
| → xsbeats joined | 20:41 |
|
shruggar
| Jitse: is that supposed to be a git-related question? | 20:41 |
|
| if so, then there's plenty wrong with it :) | 20:41 |
|
Jitse
| kind of, i'm copying a git repo ;-) | 20:41 |
|
| a site's telling me that's how you start an empty repo | 20:41 |
|
diegoviola
| thanks | 20:41 |
|
Jitse
| mm wait a sec, how could that work, git has the git-shell only | 20:42 |
|
| alrighty that's fixed, ignore my dumb questions | 20:43 |
| → sroy2 joined | 20:44 |
|
cmn
| why not push? | 20:44 |
|
Jitse
| cuz cuz... | 20:44 |
| ChanServ set mode: +v | 20:44 |
| ← rgsteele left | 20:44 |
| → jsick3 joined | 20:45 |
| → ipalaus_ joined | 20:45 |
|
Jitse
| i cloned it now, it tells me i cloned an empty repo, as in there haven't been any commits yet; now do i have to do anything to make it a proper working repo? | 20:46 |
|
sroy2
| Hi, any advice when "git pull" returns "Already up-to-date." when you know for a fact that there are files in the repo that you don't have? | 20:46 |
|
Jitse
| for example do a first commit before it works, or create the master branch? | 20:46 |
| ← infogulch left | 20:46 |
|
cmn
| Jitse: before it works? | 20:46 |
| → notola joined | 20:46 |
| ← notola left | 20:46 |
|
cmn
| do you have a git repo already or not? | 20:47 |
|
Jitse
| yes, and i can clone it to my client, it then tells me it's an empty repo | 20:47 |
| ← PerlPilot left | 20:47 |
|
Jitse
| but it's been cloned | 20:47 |
|
cmn
| because it's empty | 20:47 |
|
Jitse
| yup | 20:47 |
|
| however | 20:47 |
|
cmn
| but that's not what you want to do | 20:47 |
|
| you want to push to that repo on the server | 20:47 |
|
Jitse
| oh! | 20:48 |
|
| it works! | 20:48 |
|
| i just pushed to the master | 20:48 |
| → PerlJam joined | 20:48 |
|
Jitse
| let's see if i can clone this on windows now | 20:48 |
|
| wooptidooo | 20:49 |
| → LucasTizma joined | 20:49 |
|
Jitse
| why do people recommend gitolite or others nowadays? something about not having to use ssh directly? | 20:49 |
|
| or is git-shell just as safe either way | 20:49 |
|
cmn
| you do use ssh | 20:50 |
|
| gitolite simplifies user, repo and permission management | 20:50 |
|
Jitse
| right fair enough | 20:50 |
|
cmn
| and gives a unified hook set | 20:50 |
|
Jitse
| which i won't really need yet, as i'm the only user | 20:50 |
|
cmn
| and many more things | 20:50 |
| → HedgeMage joined | 20:50 |
|
Jitse
| thanks for the info! | 20:50 |
|
cmn
| it's very useful even for one user | 20:51 |
| ← Raging_Hog left | 20:51 |
|
Jitse
| why is that? | 20:51 |
|
| if i won't really need anything else but fetching, committing, pushing, merging | 20:51 |
|
sroy2
| meh nvm - had to reset the head back a ways in the repo to get it to work… :( | 20:52 |
| → Gitzilla joined | 20:52 |
|
cmn
| for the reasons I've listed | 20:52 |
|
Jitse
| fair enough | 20:53 |
|
cmn
| it also provides a way to set each repo's options | 20:53 |
| ← traviscj left | 20:53 |
|
PerlJam
| Jitse: if you're the only user, you can protect yourself from your own mistakes with gitolite and a nice config file. | 20:53 |
| → zackiv31 joined | 20:54 |
| ← xsbeats left | 20:55 |
| → stringoO joined | 20:56 |
| ← akiress left | 20:56 |
| ← flyz left | 20:56 |
|
HedgeMage
| So, if I have a git repo with a branch A with commits a1, a2, and a3, and a branch B that forks at a3 and has some commits of its own (b1, b2) what happens to branch B when I'm on HEAD of branch A (a3) and I do "git reset --hard HEAD^" ? | 20:56 |
| → mishok13 joined | 20:56 |
|
Jitse
| alright | 20:56 |
| → xsbeats joined | 20:56 |
| → akiress joined | 20:57 |
|
cmn
| HedgeMage: nothing | 20:57 |
|
| you're modifying branch A | 20:57 |
| ← h0bbit left | 20:57 |
| → yeryry joined | 20:57 |
| → traviscj joined | 20:57 |
|
HedgeMage
| cmn: right, but I'm making a3 go away, right? so then does it only exist on branch B from that point, or did I make something explode in a way I don't expect? | 20:57 |
|
cmn
| you're not making a3 go away | 20:58 |
|
shruggar
| then it's as if you branched from a2 | 20:58 |
|
| HedgeMage just wants to make sure she doesn't destroy anything important | 20:58 |
|
shruggar
| and one of the commits unique to B is a3 | 20:58 |
|
cmn
| you're setting branch A to a2 | 20:58 |
|
HedgeMage
| shruggar: thank you, that's what I hoped! | 20:58 |
|
someprimetime
| if i created a bare repo on my server, do i have to clone the directory that contains .git within that bare repo? | 20:58 |
| ← ipalaus_ left | 20:58 |
|
someprimetime
| the directory that contains .git would be where all my files live | 20:58 |
|
cmn
| a bare repo doesn't have a .git within | 20:58 |
|
someprimetime
| i know | 20:58 |
|
| that's why im wondering if within my bare repo i clone the directory that has the .git in it | 20:59 |
| ← jonesy left | 20:59 |
|
cmn
| what do you mean within your bare repo? | 20:59 |
|
| you clone a repo, not a directory | 20:59 |
|
| what are you trying to achieve? | 20:59 |
| → EricInBNE joined | 21:00 |
| ← aristidesfl left | 21:00 |
|
someprimetime
| cmn: im almost setup. i want to edit files locally and push those to my bare repo on mym server.. i set up the bare repo in ~/git/ then locally i did the same thing and then i went into the folder on my server where all my files are that i want to work with and did a git init within it | 21:01 |
| → dcarper joined | 21:01 |
|
someprimetime
| i added the origin of the bare repo locally but when i do git pull it doesn't get anything | 21:01 |
| → reliability joined | 21:01 |
|
reliability
| hi | 21:01 |
|
someprimetime
| well, it just gives me this: `Your configuration specifies to merge with the ref 'master' from the remote, but no such ref was fetched.` | 21:01 |
| ← dcarper left | 21:02 |
|
someprimetime
| this is in my .git/config locally: http://pastebin.com/ahS3QJyW | 21:02 |
|
cmn
| are you trying to pull from the bare repo? | 21:02 |
| → dorkmafia joined | 21:02 |
|
someprimetime
| cmn: yes | 21:02 |
|
cmn
| that won't work | 21:02 |
|
| by "from" I mean whilst in the bare repo | 21:02 |
|
someprimetime
| well i went into the directory that contains all my site files and did git init | 21:02 |
|
| then git commit | 21:02 |
|
| comitted all of them | 21:02 |
|
| and then i went back into the bare repo and added that as an origin | 21:03 |
|
| so i assume that the bare repo would now contain all those files i committed from the server | 21:03 |
|
cmn
| why? | 21:03 |
|
| the bare repo is the one that serves as a sync point | 21:03 |
|
someprimetime
| well so i could pull them locally from that bare repo | 21:03 |
|
| oh | 21:03 |
|
cmn
| so you need to push to it | 21:03 |
|
| !pull | 21:03 |
|
gitinfo
| pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/ | 21:03 |
|
someprimetime
| oh what | 21:03 |
|
| ok | 21:03 |
|
Jitse
| what are the correct permissions for .ssh with authorized_keys for the git user? 600 makes it go awry | 21:04 |
| ← thebignoise left | 21:04 |
|
cmn
| .ssh should probably be rw by the user | 21:05 |
|
| the dir itself would be x as well, presumably | 21:05 |
|
| and anything under would be rw | 21:05 |
|
someprimetime
| cmn: oh shit | 21:06 |
|
| it works | 21:06 |
|
| i just did git push origin master within my /app directory that contains all my site files | 21:06 |
|
| and it seems to have pushed to the bare repo | 21:06 |
|
Jitse
| 700 seems to be ok | 21:06 |
| ← savant left | 21:06 |
|
someprimetime
| and now i did git pull locally and it retrieved the objects | 21:06 |
|
cmn
| if you set 600 to .ssh/ you probably can't list the files in it | 21:06 |
|
| someprimetime: yes, doing things in the right order does help | 21:06 |
|
someprimetime
| lol | 21:06 |
|
| hell yeah man | 21:06 |
|
| FINALLY got it | 21:06 |
| ← rickroberts_ left | 21:07 |
| ← sroy2 left | 21:07 |
| ← marthinal left | 21:07 |
|
Jitse
| this is jizztastic | 21:07 |
| ← glcrazy left | 21:08 |
| → thebignoise joined | 21:08 |
|
Jitse
| cheers guys | 21:09 |
| ← Jitse left | 21:09 |
| ← xsbeats left | 21:10 |
| → xsbeats joined | 21:12 |
| → tarwich joined | 21:12 |
|
tarwich
| Will git clone + git commit work between two local folders? | 21:13 |
|
cmn
| commit is only local | 21:13 |
|
| a clone will work in the same filesystem | 21:13 |
|
| or any other local filesystem, for that matter | 21:14 |
| → tchan joined | 21:14 |
|
tarwich
| But can the clone (B) of A commit to A and A see the updates such that another clone (C ) could see them? | 21:15 |
|
cmn
| the clone of a commit? what do you mean? | 21:15 |
|
| to move changes between repos you need to push or fetch | 21:15 |
|
| you might be looking for the new-workdir script in contrib/ | 21:15 |
|
tarwich
| Ahh... | 21:15 |
|
| Thanks. I'm a recent SVN convert and thought commit pushed. | 21:16 |
|
cmn
| no, git is distributed | 21:16 |
| ← Jackneill left | 21:16 |
|
cmn
| committing is a different step from pushing out changes | 21:16 |
|
tarwich
| I see, so then I'd have to cd to A and git pull from B, then | 21:17 |
|
cmn
| that's one way | 21:17 |
|
tarwich
| LOL That's short for "But not a good one" :-) | 21:17 |
|
cmn
| but having many repos locally isn't usually a good workflow | 21:17 |
|
| many repos of the same project, that is | 21:18 |
|
tarwich
| Yes… It's just temporary while I'm waiting for our IT dept to get the GIT server online. | 21:18 |
|
cmn
| that still doesn't explain why you want three repos | 21:18 |
|
tarwich
| Ha ha ha… You're right…. In part I was just familiarizing myself with GIT. | 21:19 |
|
| But also, we're using a Synchronization service to push all files from one folder (A) to several computers on the network. | 21:19 |
|
cmn
| a synchronisation service? why? | 21:20 |
|
| that sounds more like a deployment system | 21:20 |
|
tarwich
| You're right… It's not a good idea… But it's temporary. | 21:20 |
| ← Destos left | 21:20 |
|
tarwich
| Office policy is that all work has to be in DropBox. | 21:20 |
| → Destos joined | 21:21 |
| ← w09x left | 21:21 |
|
PerlJam
| wow | 21:21 |
|
tarwich
| However, we need GIT for development because Dropbox is not working right. | 21:21 |
|
PerlJam
| double wow | 21:21 |
| ← skoop left | 21:21 |
|
tarwich
| *shamed* | 21:21 |
|
cmn
| no wonder | 21:21 |
|
| Dropbox isn't for development | 21:21 |
| ← gv left | 21:22 |
|
cmn
| you can use dropbox to put a few files for distribution, but I'm weary of any company policy that sepcifies that someone else must have all the data | 21:22 |
|
Valodim
| dropbox had some fun security desasters in its time | 21:22 |
|
PerlJam
| not to mention the security implications | 21:23 |
|
tarwich
| LOL… And don't forget security | 21:23 |
|
PerlJam
| okay, well Valodim mentioned them :) | 21:23 |
| ← xsbeats left | 21:23 |
|
cmn
| right, that's kinda part of the "someone else must have all the data" | 21:23 |
| → pandora17 joined | 21:23 |
|
PerlJam
| tarwich: how many people are supposed to follow this "office policy"? | 21:24 |
|
Valodim
| company policy to put files in dropbox == lack of a company policy to read up on how to properly use git before a couple of files were lost due to misuse of git | 21:24 |
|
PerlJam
| (I can kinda see how 2 or 3 people could come up with this and continue to use it) | 21:24 |
| ← lyddonb left | 21:24 |
|
tarwich
| Started as 3… Now we have 6 | 21:24 |
|
PerlJam
| ah, so you're just experiencing growing pains | 21:25 |
|
tarwich
| Guys thanks. I now see how it works… So we're definitely going to need that server up. | 21:25 |
|
| But I get it now. PerlJam Valodim you rock | 21:26 |
|
SethRobertson
| Also, read !book | 21:26 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !vcbe and !parable | 21:26 |
| → lyddonb joined | 21:27 |
|
rudi_s
| !vcbe | 21:28 |
|
gitinfo
| 'Version Control By Example' gives a good overview of the different VCSes available. The author will even mail you a dead-tree copy for free. http://ericsink.com/vcbe/ | 21:28 |
|
SethRobertson
| You can also /msg gitinfo those keywords to avoid spamming hte channel | 21:29 |
|
rudi_s
| Sorry, will do. | 21:29 |
| ← iamjarvo left | 21:31 |
| ← smw left | 21:33 |
| ← wroathe left | 21:34 |
| → Darren joined | 21:35 |
| ← RCMatt left | 21:35 |
| → Diniden joined | 21:36 |
| ← jsick3 left | 21:38 |
| ← shtrb left | 21:39 |
| ← mbroeker left | 21:40 |
| ← Darren left | 21:40 |
| ← olinux left | 21:41 |
|
someprimetime
| i added a new file in my local repo.. pushed it to master within the bare repo and set up a post-receive hook in the bare repo to deploy the changes to the website whenever the central bare repo is updated, but i'm not able to find the file blah.php anywhere on the server | 21:43 |
|
| blah.php is the new file i made on my local repo fwiw | 21:43 |
| ← sdeboey left | 21:43 |
| → sdeboey joined | 21:44 |
|
PerlJam
| someprimetime: so ... time for you to debug your deployment script | 21:44 |
| → giallu joined | 21:44 |
| → NiklasFiekas1 joined | 21:44 |
| ← NiklasFiekas left | 21:45 |
| → murr4y joined | 21:45 |
| → linusoleander joined | 21:45 |
|
SethRobertson
| stockholm: You have been quiet | 21:46 |
| ← krisfremen left | 21:47 |
| → krisfremen joined | 21:47 |
| ← _iron left | 21:47 |
| ← NiklasFiekas1 left | 21:47 |
| ← stuntmachine left | 21:48 |
| ← Ksugzulut left | 21:48 |
| ← kerrick left | 21:49 |
|
reliability
| Suppose I have checked out a specific branch different from the master branch and now I want to merge a remote master branch into the master branch without checking out the master branch. How do I do that? | 21:49 |
| ← stringoO left | 21:49 |
| ← Black left | 21:50 |
|
Valodim
| is it a fast forward merge? | 21:50 |
| ← [M]ax left | 21:50 |
|
reliability
| yes | 21:50 |
|
Valodim
| you can just git fetch then, and update your master ref to orgin/master's commit | 21:51 |
|
reliability
| The thing is, someone made changes to a public repository and i want to merge that repositoy with my local one but while doing that I don't want to switch from the specific branch into the master branch. | 21:51 |
|
Valodim
| what's the problem with switching branches? | 21:52 |
| → [M]ax joined | 21:52 |
|
reliability
| It's php code that's being in use... | 21:52 |
| ← bgerber left | 21:52 |
|
Valodim
| ..git clone it somewhere else? | 21:53 |
|
canton7
| you can git branch -f master origin/master, but of course you risk throwing away commits if you're not careful. Is there any reason why master has to be up to date? | 21:53 |
| → green- joined | 21:53 |
|
green-
| I'm a bit confused as to what happened to some changes in my working copy. I have a ton of changes, which are intact, but git no longer sees them as changes waiting to be added or committed. | 21:54 |
| ← dougsland left | 21:54 |
|
green-
| I ran a git pull to grab some changes another user made on some other files, and now my waiting changes no longer show via git diff or git status, etc. | 21:54 |
| → garpenlov joined | 21:55 |
|
green-
| The last 'git pull' resulted in a merge with the master, and I'm wondering if that has anything to do with it. | 21:55 |
|
| What am I missing? | 21:55 |
|
| oh, git log --name-status also does not show the changed files as having their changes committed at any time | 21:55 |
|
reliability
| locally, no changes have been made to neither master nor the specificbranch. So I could just merge origin/master with master and then checkout some specific files from master, right? | 21:55 |
| ← gchristensen left | 21:56 |
| → bgerber joined | 21:56 |
| → Galaxor joined | 21:56 |
|
Galaxor
| I'd like to see some abandoned commits... stuff that was on a branch that's been deleted. How do I do that? | 21:57 |
|
canton7
| green-, git deon't let you merge (and hence pull) if you have uncommitted changes | 21:57 |
| → linoj joined | 21:58 |
|
canton7
| Galaxor, git reflog or !gka | 21:58 |
|
gitinfo
| Galaxor: For a better way to view the reflog, try: gka() { gitk --all $(git log -g --format="%h" -50) "$@"; }; gka | 21:58 |
|
someprimetime
| PerlJam: thanks got it | 21:58 |
|
| nice username btw ;D | 21:58 |
|
green-
| canton7: then i can't make sense of what's going on. the changes were absolutely not committed. i've been coding all day and haven't committed. | 21:58 |
|
canton7
| green-, did you stash them? | 21:58 |
|
green-
| canton7: if i did, i have no idea how i did | 21:59 |
|
canton7
| green-, did you run anything like "git checkout -- <anything>", "git reset --hard", "git checkout -f", etc? | 21:59 |
|
green-
| canton7: nope. and the changes are still in the files. nothing got wiped out. git just doesn't see them as changes. | 22:00 |
| ← joshsmith left | 22:00 |
| ← sdeboey left | 22:00 |
|
reliability
| so, isn't it possible to merge master and origin/master without touch the currently checkouted branch? | 22:00 |
| ← notjohn left | 22:00 |
|
canton7
| green-, aah, if they're definitely present, then they were committed somewhere along the line. git's probably hiding the commit that introduced them because it thinks that commit is uninteresting -- a merge, for example | 22:00 |
|
| green-, did you have any conflicting merges? | 22:01 |
|
green-
| canton7: yes | 22:01 |
|
canton7
| green-, did you accidentally add your untracked files? | 22:01 |
|
green-
| they weren't untracked, they were tracked | 22:01 |
|
canton7
| reliability, you can only merge into the currently-checked-out branch. You can forcefully update master to point at origin/master, as I said | 22:01 |
|
green-
| how do i get it to stop hiding the details in git log so I can see when and if it put them in somehow | 22:01 |
|
| if it did, i can't imagine why it would commit them without giving me the opportunity to enter notes | 22:02 |
|
canton7
| green-, run git glame / git gui blame on the file? | 22:02 |
| ← tarwich left | 22:02 |
| ← rendar left | 22:03 |
| → DarkAR joined | 22:03 |
| ← drizzd left | 22:03 |
|
green-
| not sure what i'm looking at | 22:03 |
| ← milli left | 22:03 |
|
canton7
| green-, you're after oen of the lines which you don't think should be committed yet. The info on the left will tell you the commit in which that line was introduced | 22:04 |
| ← eijk_ left | 22:04 |
| → gchristensen joined | 22:04 |
| ← akosikeno left | 22:05 |
| → eijk_ joined | 22:05 |
| → alberto56 joined | 22:06 |
| ← nixmaniack left | 22:06 |
|
canton7
| green-, http://thread.gmane.org/gmane.comp.version-control.git/189629 might also be relevant | 22:06 |
|
Galaxor
| canton7: I can't figure out what to put in git reflog --expire-unreachable=X | 22:07 |
|
green-
| canton7: it looks as if they may have gone in during the recent merge, as you suggested. but ... those changes were never added, so why would it commit them .. it also gave no opportunity to enter notes .. and why wouldn't it show them in 'git log --name-status' ? | 22:07 |
|
Galaxor
| canton7: the manpage says <time>, which defaults to 30 days. It didn't accept a number, like 90, and it didn't accept an isodate, like "2012-01-01 00:00:00" | 22:08 |
|
| "unrecognized argument". | 22:08 |
|
canton7
| green-, unless i'm missing something, the merge should never have happened if you have unstaged changes anyway... Maybe someone else has an answer to that | 22:08 |
|
| Galaxor, what are you trying to do? Why are you trying to expire the reflog? | 22:08 |
|
green-
| canton7: i can see the changes via "git diff" if i do "git diff origin" ... but otherwise, they don't show. does that provide any insight into what might be going on? | 22:10 |
| → panthrodeb joined | 22:11 |
| → iocor joined | 22:11 |
|
Galaxor
| canton7: Oh. That's not what I was trying to do... I thought that meant that it was going to only show me unreachable commits newer than 30 days. I want to see older unreachable commits. | 22:11 |
| ← diegoviola left | 22:12 |
|
canton7
| green-, does adding -c, --cc, -m, or --full-history to git log help? | 22:12 |
| → milli joined | 22:13 |
|
canton7
| Galaxor, you'll just have to scroll back further I'm afraid. By default, reflog entries hang around for 90 days iirc | 22:13 |
|
green-
| canton7: yep, -m did. and it shows those files as merged/commited during that last log item | 22:13 |
| ← arosen left | 22:13 |
| → arosen joined | 22:13 |
|
green-
| canton7: but i don't get it, i didn't run git commit ... i ran git pull | 22:13 |
|
canton7
| green-, did that merge conflict? I know you said one of them did | 22:14 |
|
green-
| canton7: one file conflicted | 22:14 |
|
| (not one of the files at issue in this current problem) | 22:14 |
|
canton7
| so, you'll have run "git commit" to resolve the conflict | 22:14 |
|
Galaxor
| canton7: Dang. I think the commit I want isn't in there, then. Maybe I imagined it to begin with. | 22:14 |
|
canton7
| Galaxor, !gka might make the searching easier | 22:15 |
|
gitinfo
| Galaxor: For a better way to view the reflog, try: gka() { gitk --all $(git log -g --format="%h" -50) "$@"; }; gka | 22:15 |
| ← v0n left | 22:15 |
|
green-
| canton7: sure, for the conflicted file .. that doesn't explain why it committed all those other files when the changes weren't added ... it even deleted a file I never used git to remove ... just accidentally use a filesystem mv to rename it | 22:15 |
|
| and it deleted that file | 22:15 |
|
| i'm totally confused | 22:15 |
|
canton7
| green-, same. I have no idea why git let you start the merge. | 22:16 |
|
| green-, you definitely just 'git added' that one file, and didn't 'git add .' or 'git add -u'? | 22:17 |
|
| anyone: does anyone know why git might let the user start a merge with uncommitted changes (to tracked files) | 22:17 |
|
green-
| canton7: i didn't git add anything | 22:17 |
| ← _7mj left | 22:18 |
|
canton7
| green-, then how did you resolve the merge conflcit? | 22:18 |
|
green-
| the one file is still in conflict ... i ran 'git pull' and it notified that the one file was in conflict and committed un-added changes without my asking it to | 22:18 |
|
canton7
| wait.. so you're in the middle of a merge at the moment? | 22:18 |
|
green-
| ok, scratch that | 22:19 |
|
| ok so here's what happened | 22:19 |
|
| scrolling back through buffer | 22:19 |
| → shibayu36 joined | 22:20 |
|
green-
| so i ran "git pull" and it complained that a file was in conflict and that it wouldn't let me pull until i fixed that | 22:20 |
|
canton7
| what *exactly* did it say? | 22:20 |
|
green-
| so i didn't want changes to get lost ... so i ran (apparently) a git commit -a | 22:20 |
|
| then it committed these changes without asking for notes and said | 22:20 |
|
| master e25236d] Merge branch 'master' of file:///srv/git/njwxnet | 22:21 |
|
canton7
| ah, right I know what happened, I think | 22:21 |
|
green-
| so instead of giving me a chance to enter details of the commit | 22:21 |
|
| it just spit out that stuff about the merge | 22:21 |
| ← someprimetime left | 22:21 |
|
green-
| leaving the one file in conflict (where it remains) | 22:21 |
|
canton7
| before you ran "git pull", you'd previously started another merge. that merge had conflicted, and you'd left it in a conflicted state and carried on working | 22:21 |
|
green-
| i guess, maybe | 22:22 |
| ← t4nkd left | 22:22 |
|
canton7
| when you ran "git pull" a second time, git moaned that you were still in the middle of the previous merge, with conflicted files | 22:22 |
| ← gchristensen left | 22:22 |
|
canton7
| so you ran "commit -a". Running commit in the middle of a conflicted merge resolves the conflicts and completes the mereg | 22:22 |
|
green-
| well the conflict still exists | 22:22 |
|
canton7
| which is why it didn't ask you for a message, but rather finished the previous merge | 22:22 |
| → smoak joined | 22:23 |
|
green-
| heh, confusing | 22:23 |
| ← bgerber left | 22:23 |
|
green-
| here's how it went | 22:23 |
|
canton7
| (adding your modifications into the merge commit, creating the evil merge you're currently having a problem with) | 22:23 |
| ← linduxed left | 22:23 |
| gitinfo set mode: +v | 22:23 |
| ← Shakyj left | 22:23 |
| → bgerber joined | 22:24 |
|
green-
| tried a pull, it complained a file (import.xml) would be overwritten that was changed, so commit that file ... i commited that single file and then tried pull again ... it then tried merging import.xml and failed and said to fix conflicts ... then i ran git commit -a to get the other stuff in | 22:24 |
|
| that is when this odd merge happened | 22:24 |
|
| i think :) | 22:24 |
| → Shakyj joined | 22:24 |
|
green-
| import.xml remains in conflict | 22:24 |
| ← [M]ax left | 22:24 |
|
smoak
| im trying to squash 3 commits down into one commit using git rebase -i HEAD~3 but the commits are listed in reverse order (ie oldest first), is this normal and how its supposed to work? | 22:25 |
|
canton7
| smoak, yup | 22:25 |
|
green-
| i'd like to roll back the delete it did so that I can git mv the one file properly so i don't lose change tracking | 22:25 |
|
| can i do that? | 22:25 |
|
canton7
| green-, well for one thing, git doesn't track moves, it works them out after-the-fact | 22:26 |
| → caseymcg joined | 22:26 |
|
canton7
| that said, you'd do well to undo that dirty merge | 22:26 |
|
smoak
| canton7: but then if i try to squash the oldest (ie the top line) it says "Cannot 'squash' without a previous commit' | 22:26 |
|
canton7
| smoak, yeah, you can't use squash on the top line. use git rebase -i HEAD~4 instead | 22:26 |
|
cespare
| smoak: change the second and third to squash if you want to squash all three together. | 22:27 |
| → [M]ax joined | 22:27 |
|
smoak
| ok thank you i will try that | 22:27 |
| ← maletor left | 22:28 |
|
canton7
| green-, I'd identify the first commit you made prior to those messed-up merges, and git commit --mixed <commit> to take those merges out of history. Then sort your files out, and make some sensibe merges | 22:28 |
|
| assuming you haven't pushed any of those merges, of course | 22:28 |
|
green-
| canton7: haven't pushed them | 22:29 |
|
| canton7: can i just rollback that entire last commit? | 22:29 |
|
canton7
| green-, yeah, reset --mixed (or --soft, DO NOT use --hard) to the commit before the merge commit | 22:29 |
| → maletor joined | 22:30 |
| ← lyddonb left | 22:30 |
| → gchristensen joined | 22:30 |
| → |Agent joined | 22:31 |
| ← LucasTizma left | 22:31 |
|
canton7
| green-, of course, I'd recommend !backup if you haven't done history modification before | 22:31 |
|
gitinfo
| green-: Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups | 22:31 |
| → Zenopus joined | 22:31 |
| ← juanfer left | 22:32 |
| → nixmaniack joined | 22:33 |
|
green-
| canton7: i'm still trying to make sense of what happened. things seem to have been split into 2 commits with merges involved. I'm clueless. Here's the relevant log entries: http://pastie.org/3423484 | 22:33 |
|
| if it isn't obvious, I'm new to git :) coming from svn | 22:34 |
|
|Agent
| I merged a local branch into my local master then pushed my local master to origin/master (origin is a GitHub account). I didn't actually want to do this. I want my origin/master to come from upstream/master (upstream is the project's main repo). | 22:34 |
|
canton7
| green-, yeah, those look like two evil merges (merges which introduce new changes) | 22:34 |
|
|Agent
| So I reverted the merge and pushed the revert up to origin/master. But now I can't fetch upstream/master and push it to origin/master to make my GitHub account up-to-date, because that loses history. How can I do this? | 22:34 |
|
green-
| canton7: why are they evil? | 22:34 |
|
canton7
| green-, I'd need to see an exact scrollback (complete with the messages git gave you) to be abel to tell exactly what happened | 22:34 |
|
| green-, an evil merge is a merge which introduces changes which weren't present in either of the branches being merged | 22:35 |
|
|Agent
| (er, not fetch, but rather rebase to upstream/master and push that to origin/master) | 22:35 |
|
canton7
| green-, in your case cause by, I believe, you doing a pull, leaving it in a conflicted state, and continuing to work | 22:35 |
|
green-
| canton7: and what leads you to believe it has introduced those false changes? | 22:35 |
|
| canton7: but only 1 file was conflicted, and that file remains in conflict | 22:35 |
|
canton7
| green-, define "in conflict". How are you determining that it's in conflict? | 22:36 |
|
green-
| git says so, right in those log entries | 22:36 |
| ← digitalfiz left | 22:36 |
| → joshsmith joined | 22:36 |
|
canton7
| green-, those were conflicts which happened during the merge, and which were resolved during the merge. I thought you said that the file was *still* in conflict? | 22:37 |
| → pfFreddd joined | 22:37 |
| → linduxed joined | 22:37 |
|
dorkmafia
| is there a way to run git with group permissions? | 22:37 |
| → ryanisnan joined | 22:37 |
|
dorkmafia
| i have two users using the same git directory | 22:38 |
| ← danmackay left | 22:38 |
|
green-
| canton7: i didn't know that indicated it was resolved | 22:39 |
| ← cbeams left | 22:39 |
|
green-
| i thought the log indicated it was in conflict so nothing was done | 22:39 |
|
canton7
| green-, ah ok. Git doesn't let you finish the merge unless everything's resolved. | 22:39 |
|
green-
| i updated the paste with commands: http://pastie.org/3423484 | 22:39 |
| ← pfFred left | 22:39 |
|
green-
| if git introduced changes into import.xml, i can live with that, easily fixed | 22:39 |
|
| i'm only concerned about the other files | 22:39 |
| ← linoj left | 22:40 |
| ← oc80z left | 22:41 |
| → oc80z joined | 22:41 |
| ← shibayu36 left | 22:41 |
|
canton7
| green-, when abouts, relative to those 4 commands you pasted, were the modifications to import/datecode/mesowest, etc, made? | 22:41 |
|
green-
| i believe the other developer just committed those recently | 22:41 |
| → danmackay joined | 22:41 |
|
canton7
| green-, oh! so wait... The files you had uncommitted changes in aren't listed in lines 29-37? | 22:42 |
| ← Sadin_ left | 22:42 |
|
dorkmafia
| anyone know if there is a git configuration to run the directory as a group instead of a user? :) | 22:42 |
| ← linduxed left | 22:43 |
|
canton7
| dorkmafia, look at --shared for man git-init, and core.sharedRepository in man git-config. I can't remember exactly, but I *think* you have to re-run git init --shared (which doesn't remove any data) | 22:43 |
|
gitinfo
| dorkmafia: the git-init manpage is available at http://jk.gs/git-init.html | 22:43 |
| → TrineLocke joined | 22:43 |
|
dorkmafia
| tyty | 22:43 |
|
axl_
| what is the command to get rid of local changes? | 22:44 |
| ← mishok13 left | 22:44 |
|
canton7
| axl_, git status will tell you | 22:44 |
|
dorkmafia
| now to figure out how to get hudson/jenkins to do this by default :( | 22:44 |
| ← CannedCorn left | 22:44 |
| ← |Agent left | 22:45 |
| ← nixmaniack left | 22:45 |
| ← TrineLocke left | 22:46 |
| ← shruggar left | 22:46 |
| ← DarkAR left | 22:47 |
| ← [M]ax left | 22:48 |
| → mxweas_ joined | 22:49 |
| → zulax joined | 22:49 |
|
green-
| canton7: no, they are ... all the stuff in lib/perl mostly .. it did go in during that merge | 22:49 |
|
| they're in .. so that's good ... there are 2 issues as far as i can see | 22:49 |
| ← alexgordon left | 22:50 |
|
canton7
| green-, the fact that they're committed during a merge is *not* good -- it's very confusing, as you've found out | 22:50 |
| → [M]ax joined | 22:50 |
| ← ThomasLocke left | 22:50 |
|
canton7
| green-, if the changes were made between line 9 and line 15, I can understand what happened perfectly. If not... I'm confused | 22:51 |
|
green-
| 1) import.xml is botched and looks like it has conflict queues in it (stuff like "HEAD" and commit IDs and 2) the file Importer.pm got deleted from tracking because i used a filesystem mv instead of a git mv | 22:51 |
| ← johnkpaul left | 22:51 |
|
axl_
| is there a git command to get a list of all untracked files? | 22:51 |
|
canton7
| green-, as I said, "git mv" === "mv file && git add newfile && git rm oldfile". Git doesn't track moves | 22:51 |
| ← cakehero left | 22:51 |
|
green-
| canton7: that was misspeaking on my part, they were not committed during a merge, or i don't think .. they went in w/ commit -a as i did run that | 22:51 |
|
| but i can't tell why tehre are two log entries | 22:51 |
| ← psoo left | 22:51 |
| → alexgordon joined | 22:51 |
|
axl_
| i was trying to use git ls-files but did not find an appropriate option | 22:51 |
| ← Chowzzf left | 22:52 |
|
green-
| one maybe from a pull merge and one from the commit? i don't know why some files went in the first time and some the second | 22:52 |
|
canton7
| green-, I think the two log entries are as a result of one of the flags you passed to git log -- it's showing you the commit e252 with respect to each of its parents | 22:52 |
| → angelsl joined | 22:52 |
|
canton7
| green-, notice that the two log entries are both for the same commit | 22:52 |
| → Chowzzf joined | 22:52 |
| ← Jay_Levitt left | 22:53 |
| ← angelsl left | 22:53 |
|
green-
| that was 'git log --name-status -m' | 22:53 |
| ← j416 left | 22:53 |
|
canton7
| green-, probably the -m then | 22:53 |
| → cakehero joined | 22:53 |
|
axl_
| ok i got it: git ls-files --other --exclude-standard | 22:53 |
| ← cakehero left | 22:53 |
|
green-
| there's mentions of merges, but i'm not clear why ... the only file that should have needed to be merged was import.xml | 22:53 |
|
canton7
| green-, what I would do to fix this: First cp the repo to make a backup of it. Then git reset --mixed bb913af to undo the merge. Then git checkout -- import/config/import.xml to remove the merge markers from import/config/import.xml | 22:54 |
| → shibayu36 joined | 22:54 |
|
canton7
| green-, ok, obviously the point hasn't quite gone across. When you do a merge which conflicts, git stops in the middle of the merge and tells you to sort it out. Normally what you'd do is to edit the conflicted file(s), add them, then run "git commit" to create the merge | 22:55 |
| ← macabre left | 22:55 |
|
green-
| am i misunderstanding what a merge is in git ... if files on the master and those in my working copy differ .. it is going to try to merge those files, correct? | 22:56 |
|
canton7
| green-, what happened in your case was that git tried to merge, conflicted, stopped.... Then as well as adding the conflicted file, you added a load of other files *as well* (which I believe were modified between you running the 'git pull' which caused the conflict, and you running 'git commit -a'). You then ran 'git commit -a', whcih concluded the merge and created the merge conflict | 22:56 |
|
| In this way, you created a merge commit that does more than just fix a conflicted file -- it also adds a load of new changes. This is termed an "evil merge", for fairly good reasons | 22:56 |
|
| green-, yes, it merges files but also the histories of those files (unlike subversion, until recently) | 22:57 |
| ← dangerousdave left | 22:57 |
| → linoj joined | 22:57 |
|
green-
| crazy. hard to wrap your head around. but rolling back seems to be the thing to do. this time i'll reset those commits and commit my changed files before trying to pull | 22:57 |
| → johnkpaul joined | 22:57 |
|
green-
| but will definitely backup first | 22:57 |
|
| unfortunately, my attempt will have to wait about an hour | 22:57 |
| ← airborn left | 22:58 |
|
green-
| canton7: thanks for the guidance, sorry for the insanity. hopefully i can clean this up relatively easily. | 22:58 |
|
canton7
| green-, yeah like I said, reset --mixed back to that last good commit (bb913af), then get tid of the merge markers in import/config/import.xml with, be restoring it to how it was at bb913af | 22:58 |
| ← skitrees left | 22:58 |
|
green-
| will give that a try shortly | 22:58 |
|
| thanks again, bbiab | 22:58 |
| → ipalaus_ joined | 22:59 |
|
canton7
| green-, no worries. I've learnt a new thing that users can do to get evil merges :P I'd advise using __git_ps1 or something similar in your terminal prompt to remind you whether you're in the middle of a merge, what branch you're on, etc | 22:59 |
| ← gchristensen left | 22:59 |
|
green-
| canton7: one question as i'm on my way out: how were you able to tell that bb913af was the last good commit (which it is) | 22:59 |
| ← aspotashev left | 23:00 |
|
canton7
| green-, from the info you posted, that's the commit which was made (on line 5-7) when you committed import/config/import.xml just before that fatal 'git pull' | 23:00 |
|
green-
| nm, i think i see | 23:00 |
| → linduxed joined | 23:00 |
|
canton7
| green-, it's also the first parent of the merge commit, as you cans ee from the latter half of line 20 | 23:00 |
| ← johnkpaul left | 23:01 |
|
green-
| forgot i pasted the command and responses, but did realize you could have gotten it from the parent of the merge commit | 23:01 |
| ← dzonder left | 23:01 |
|
canton7
| :) | 23:01 |
| ← A1kanaro left | 23:01 |
| ← nutron|w left | 23:01 |
| ← ipalaus_ left | 23:02 |
| → ipalaus_ joined | 23:02 |
| ipalaus_ → ipalaus | 23:02 |
| ← d0k left | 23:02 |
| → nikuyoshi joined | 23:02 |
| ← cmyk_ left | 23:02 |
| → skitrees joined | 23:03 |
| ← reliability left | 23:03 |
| ← stkrzysiak left | 23:03 |
| ← fedesilva left | 23:04 |
| ← aldodelgado left | 23:05 |
| → psoo joined | 23:05 |
| ← psoo left | 23:05 |
| → kerrick joined | 23:05 |
| ← pdtpatr1ck left | 23:05 |
| → pdtpatr1ck joined | 23:06 |
| → sasa90 joined | 23:06 |
| ← sasa90 left | 23:06 |
| → griotspeak joined | 23:07 |
| → gchristensen joined | 23:07 |
| → axl__ joined | 23:07 |
| → johnkpaul joined | 23:08 |
| ← kermit left | 23:10 |
| ← axl_ left | 23:11 |
| → CannedCorn joined | 23:14 |
| ← Diniden left | 23:14 |
| → pdtpatr1ck_ joined | 23:15 |
| ← johnkpaul left | 23:15 |
| ← sawjig left | 23:15 |
| ← pdtpatr1ck_ left | 23:16 |
| ← prudnikov left | 23:17 |
| ← pdtpatr1ck left | 23:17 |
| → dougsland joined | 23:17 |
| ← dougsland left | 23:17 |
| → dougsland joined | 23:17 |
| ← dv310p3r left | 23:17 |
| ← linduxed left | 23:18 |
| → sawjig joined | 23:20 |
| ← FernandoBasso left | 23:20 |
| ← rbrooks left | 23:22 |
| ← nikuyoshi left | 23:23 |
| ← fayimora left | 23:24 |
| → shibayu3_ joined | 23:26 |
| ← shibayu36 left | 23:26 |
| ← tewecske left | 23:28 |
| → Jay_Levitt joined | 23:30 |
| → kermit joined | 23:31 |
| ← maletor left | 23:31 |
| ← linoj left | 23:31 |
| ← iocor left | 23:32 |
| → maletor joined | 23:32 |
| ← scelis left | 23:32 |
| ← kaimi left | 23:32 |
| → kaimi joined | 23:33 |
| ← TeckniX left | 23:33 |
| ← macmartine left | 23:34 |
| ← martinjlowm-lptp left | 23:34 |
| → ska-fan joined | 23:34 |
| ← ph^ left | 23:36 |
| ← pfFreddd left | 23:37 |
| → fayimora joined | 23:37 |
| ← Destos left | 23:37 |
| → subbyyy joined | 23:37 |
| → bigkm joined | 23:38 |
| → linduxed joined | 23:38 |
| → stuntmachine joined | 23:39 |
| → rchavik joined | 23:40 |
| ← panthrodeb left | 23:41 |
| ← vandal- left | 23:42 |
| ← maletor left | 23:42 |
| ← sekati left | 23:46 |
| ← pandeiro left | 23:46 |
| → zweb joined | 23:47 |
| → maletor joined | 23:50 |
| ← swombat left | 23:51 |
| → iocor joined | 23:51 |
| → _obiJuan joined | 23:53 |
| ← ipalaus left | 23:55 |
| ← HedgeMage left | 23:56 |
| → swombat joined | 23:57 |
| ← iocor left | 23:58 |
| ← glennpratt left | 23:58 |