| 2011-02-01 |
|
Blazento
| so is there a command to say "scrap the mergetool and just push my changes" | 00:00 |
|
Ze_M
| SethRobertson: but i have another problem | 00:03 |
| ← chrischambers left | 00:03 |
|
SethRobertson
| Oh? | 00:03 |
| ← linusoleander left | 00:03 |
|
jdahm
| ok figured it out. If anyone cares I had to add an environment variable CVS_RSH=ssh | 00:04 |
| ← steveoh left | 00:04 |
| ← normanrichards left | 00:04 |
| ← eletuchy left | 00:06 |
| ← ph^ left | 00:07 |
| → b14ck joined | 00:09 |
|
b14ck
| Hi guys, quick questoin. I've got a git repo here. I'd like to 'view' all changes made to a single file since it was created. How can I do that? | 00:09 |
|
bremner
| git log file | 00:10 |
|
b14ck
| d'oh | 00:10 |
| ← bhosie left | 00:10 |
|
b14ck
| thanks | 00:10 |
| → linusoleander joined | 00:10 |
| → eean joined | 00:10 |
| ← radarek left | 00:11 |
| → nyceane joined | 00:13 |
| ← nyceane left | 00:13 |
| → nyceane joined | 00:13 |
| ← bitkiller left | 00:13 |
|
nyceane
| hey guys | 00:13 |
|
| on github | 00:13 |
|
| if the master has changed | 00:13 |
| ← b14ck left | 00:14 |
| ← zombor left | 00:14 |
|
nyceane
| how do i update it with branch? | 00:15 |
|
| guys? | 00:16 |
| ← bigpeted left | 00:16 |
| → normanrichards joined | 00:18 |
| → mhall joined | 00:19 |
| → banisterfiend joined | 00:19 |
|
nyceane
| anybody here? | 00:19 |
|
mhall
| No | 00:19 |
|
| :-P | 00:19 |
|
nyceane
| if forked branch has updated on github | 00:19 |
|
| i mean if master have updated | 00:19 |
|
| how do i update it on the branch? | 00:19 |
| → eletuchy joined | 00:21 |
| ← ISF left | 00:21 |
|
mhall
| I have got two people upstream of me from the same company. One of them maintains the current branch, and the stable branch. Another guy at the company has a branch forked from the current branch, which contains a feature I'd like to backport from current to stable so I can use it safely in production here. Given a clone of stable, and a clone of the current fork with the feature, I'm wondering what procedure I should follow to get the changes from the curren | 00:23 |
|
| However I'm a bit hazy on (2) because I'm short on git experience. | 00:23 |
| → t3i joined | 00:23 |
| ← JohnFlux left | 00:24 |
| ← snearch left | 00:25 |
| → MikhX joined | 00:27 |
| ← priidu left | 00:27 |
| ← hobodave left | 00:28 |
| ← jrmuizel left | 00:28 |
| ← banisterfiend left | 00:33 |
| ← beatak left | 00:34 |
| → ISF joined | 00:35 |
|
Thell
| Anyone else get vexed with all the various project management apps and IDEs/editors temp files and various other cruft that we need to either add into .gitignore files or manually deal with? | 00:37 |
| → alex__c2022 joined | 00:37 |
| Unknown[OFF] → Unknown[NF] | 00:38 |
| → project2501a joined | 00:39 |
|
Thell
| I'm pondering the idea of a patch to allow a #include token in .gitignore. Waste of time or possibly a good idea? | 00:39 |
| ← giallu left | 00:39 |
| ← malumalu left | 00:40 |
| ← Blazento left | 00:41 |
| ← bentob0x left | 00:42 |
| ← rayners left | 00:42 |
| → macrohauler joined | 00:43 |
|
macrohauler
| hi all | 00:43 |
|
| macrohauler is in dire need of help | 00:43 |
| ← muep left | 00:43 |
|
ayust
| mhall: if the clone of the fork with the feature has a branch specifically for that feature, you can just rebase the branch on your stable branch | 00:43 |
|
| otherwise, you'd have to either rebase a range of commits, or cherry-pick them | 00:43 |
| → banisterfiend joined | 00:43 |
| ← nadavoid left | 00:45 |
| ← Guest12638 left | 00:45 |
|
macrohauler
| anyone? | 00:46 |
|
Thell
| macrohauler: I think you will need to state the problem before anyone can offer assistance | 00:47 |
|
macrohauler
| ok sure | 00:47 |
|
| im trying to revert to an old commit | 00:47 |
|
| but git keeps giving me an error which i tried to follow | 00:47 |
| ← farktronix left | 00:47 |
|
macrohauler
| and it still gives me the same error | 00:47 |
| ← linusoleander left | 00:47 |
| → Neo joined | 00:48 |
|
macrohauler
| which is: | 00:48 |
|
| error: could not revert 2daec18... Added method: num | 00:49 |
|
| hint: after resolving the conflicts, mark the corrected paths | 00:49 |
|
| hint: with 'git add <paths>' or 'git rm <paths>' | 00:49 |
|
| so i tried adding the files, commiting then reverting | 00:49 |
|
| still the same error | 00:49 |
|
| so yeh | 00:51 |
| → amondracorp joined | 00:51 |
| → rgr joined | 00:52 |
| ← marcamilly left | 00:52 |
| → marcamilly joined | 00:52 |
| ← marcamilly left | 00:52 |
| → marcamilly joined | 00:52 |
| ← nyceane left | 00:53 |
| → farktronix joined | 00:54 |
| ← hyperair left | 00:55 |
| ← dreiss left | 00:55 |
| → squi joined | 00:55 |
|
squi
| hi | 00:55 |
|
| how can i find out who edited a specific line via command line? | 00:56 |
|
Eridius
| git blame | 00:56 |
| ← urbanmonk left | 00:57 |
|
ayust
| git blame -L<start>,<end> /path/to/file | 00:58 |
|
| if <start>==<end>, then you'll blame a single line | 00:58 |
| ← intripoon left | 01:01 |
| → wde joined | 01:02 |
| ← airborn left | 01:02 |
| ← jogla left | 01:02 |
|
squi
| thanks a lot | 01:03 |
| → intripoon joined | 01:03 |
| ← sako left | 01:03 |
|
squi
| when you said git blame, i just checked the help | 01:03 |
|
| easy enough | 01:03 |
| ← spearce left | 01:05 |
| → boombatower joined | 01:06 |
| ← boombatower left | 01:06 |
| → boombatower joined | 01:06 |
| → nyceane joined | 01:09 |
| ← alvaro_o left | 01:10 |
| → zombor joined | 01:10 |
| ← banisterfiend left | 01:14 |
| → bhosie joined | 01:14 |
| ← tvw left | 01:15 |
| Unknown[NF] → Unknown[OFF] | 01:15 |
| ← RaceCondition left | 01:15 |
| ← amerine left | 01:17 |
| ← gozoner left | 01:20 |
| ← shruggar_ left | 01:21 |
|
wde
| hi, i'm new to git coming from the svn world … originally i was told to do "git fetch <repo>; git checkout <branch>" … switching the to other branch was necessary because it contained some changes not yet in the central repo … so then i made some local modifications, and then ran "git diff" expecting to see some differences … however, it gives me nothing … any ideas? | 01:21 |
| ← ddkilzer left | 01:22 |
| → ahammond joined | 01:22 |
| ← eletuchy left | 01:22 |
|
Thell
| wde does git status give you anything useful? | 01:22 |
| ← bhosie left | 01:22 |
|
ahammond
| is there any way I can set change git log to default to doing --decorate? | 01:22 |
|
PerlJam
| wde: did you "git add" those items before you ran "git diff"? | 01:22 |
| → sdboyer_ joined | 01:22 |
| ← sdboyer_ left | 01:22 |
| → sdboyer_ joined | 01:22 |
|
PerlJam
| ahammond: setup an alias in your ~/.gitconfig | 01:23 |
| ← sdboyer left | 01:23 |
| ← MikhX left | 01:23 |
|
mhall
| ayust: as you posted, i was in another window experimenting | 01:23 |
|
PerlJam
| ahammond: or a shell alias | 01:23 |
|
wde
| Thell: git status does indeed list my modified files | 01:23 |
| → MikhX joined | 01:23 |
|
ahammond
| PerlJam: can I alias log as log --decorate? or will it recurse? | 01:23 |
|
wde
| PerlJam: most of my changes were in existing files | 01:23 |
|
mhall
| ayust: it seems that with the code i'm up against, some crap came along for the ride on the supposedly pristine branch for the feature | 01:23 |
|
Thell
| ahammond: check out making an alias for formatting the way you like | 01:23 |
|
mhall
| ayust: git merge had some relatively OK conflicts | 01:23 |
|
PerlJam
| wde: aye, but did you add them to the index prior to running "git diff"? | 01:23 |
|
mhall
| ayust: but i also picked up some added files that were causing build failures | 01:23 |
| ← macrohauler left | 01:23 |
|
mhall
| so what's the right way of taking files that come from a merge that you don't want, and kicking them out before committing to local HEAD? just git rm the bad guys? | 01:24 |
|
Thell
| wde: in the git status it will tell you if they are 'staged' or not, if they are (meaning you did 'git add') then git diff --cached | 01:24 |
|
ahammond
| nope... can't alias log to log --decorate. grr. I guess I'll go with l and see if I can learn to use it. :) | 01:24 |
|
wde
| PerlJam: i'm not sure what you mean, but probably no, as i didn't do anything else in git after the fetch and checkout | 01:24 |
|
ayust
| mhall: the branch might be pristine relative to the point in devel it was branched from, but that doesn't mean it's pristine relative to your stable branch | 01:24 |
| sdboyer_ → sdboyer | 01:25 |
|
Thell
| ahammond: make something like git logd | 01:25 |
|
wde
| Thell: I see stuff like this: | 01:25 |
|
| # On branch <foo> | 01:25 |
|
| # Changed but not updated: | 01:25 |
|
ayust
| if the merge-base between feature and devel is some point after your stable head, it'd pull in stuff from devel that was added before the merge-base | 01:25 |
|
wde
| # ... | 01:25 |
|
| # modified: MyFile.C | 01:25 |
|
ahammond
| Thell: yeah, it'd be really nice to have a logoptions variable I can set. Kinda like mergeoptions... | 01:25 |
|
wde
| # … etc... | 01:25 |
|
mhall
| ayust: indeed it's not ;) | 01:26 |
| ← bronson left | 01:26 |
|
mhall
| ayust: i'm alright with it, if i have an idea how to cherry pick. is it doc'ed somewhere? | 01:27 |
|
ayust
| well | 01:27 |
|
ahammond
| oh... I'm looking to set a global mergeoptions=--no-ff --no-commit... do I have to do it by branch?! | 01:27 |
|
ayust
| what version of git are you running? something fairly recent? | 01:27 |
|
| if so it's pretty simple | 01:27 |
|
| git cherry-pick A..B (where A is the merge-base between feature and devel, and B is feature) | 01:27 |
| → rlb joined | 01:28 |
|
wde
| Thell: git diff —cached shows nothing either | 01:28 |
|
mhall
| ayust: i have ubuntu 10.04 lts vm for this job, let me check version, should be fairly good | 01:28 |
|
Thell
| wde: yeah, if it has been changed but not updated, then it hasn't been staged, and git diff _should_ show the diff | 01:29 |
|
mhall
| ayust: git version 1.7.0.4 | 01:29 |
|
ayust
| i think 1.7.0 has support for cherry-picking ranges | 01:29 |
|
| so should work | 01:29 |
|
Thell
| I don't know why it wouldn't wde, perhaps someone else does... | 01:29 |
| → bronson joined | 01:30 |
|
mhall
| ayust: yeah it's in there | 01:30 |
|
| ayust: let me try this out | 01:30 |
| ← smolyn left | 01:31 |
| ← larsmoil left | 01:31 |
|
wde
| i guess part of my problem, is that the git terminology is throwing me off a bit … i found mercurial relatively easy to understand because it borrows a lot from svn … i don't quite understand what a "branch" means to git, nor do i get what it means to be "staged" or "unstaged" | 01:32 |
| ← aah left | 01:32 |
|
ayust
| wde: do you come from a computer science background at all? | 01:32 |
|
wde
| i look up the help for the git commands and i have no idea what "staged" means | 01:32 |
|
| ayust: yes | 01:32 |
|
ayust
| http://eagain.net/articles/git-for-computer-scientists/ | 01:32 |
|
| that explains branches | 01:33 |
|
| as Git sees them | 01:33 |
|
bremner
| except, that doesn't deal with staging does it? | 01:33 |
|
ayust
| getting to that bremner :) | 01:33 |
| ← kandjar left | 01:33 |
|
wde
| but i don't care about the internals | 01:33 |
| → muep joined | 01:33 |
|
ayust
| just skim it then | 01:33 |
|
| the important part is | 01:33 |
|
wde
| i know what DAGs are, i use want to *use* it | 01:33 |
|
ayust
| right | 01:34 |
|
| branches in Git are just leaves in the DAG | 01:34 |
|
| when you create a new branch, you create another leaf that points at a node | 01:34 |
| ← jfkw left | 01:35 |
|
ayust
| as for what 'staging' means in Git | 01:36 |
|
| http://www.gitready.com/beginner/2009/01/18/the-staging-area.html | 01:36 |
| ← matjas left | 01:36 |
|
wde
| alright, i'll do some reading and come back … thanks all | 01:36 |
|
mhall
| ayust: alright, getting closer. ran the cherry pick but i have conflicts. and it didn't print out what they were so not sure how to display them | 01:36 |
|
ayust
| mhall: if you're running into conflicts, it might be best to do a full rebase | 01:37 |
| → Tuller joined | 01:38 |
|
mhall
| ayust: is there a way to at least display them so i can see how bad they are | 01:38 |
|
| ayust: or does it not create the merge conflict markers like a merge does | 01:38 |
| → sako joined | 01:38 |
|
ayust
| cherry-pick I don't think does | 01:38 |
|
mhall
| ayust: hmm it makes markers | 01:39 |
|
| ayust: egrepped for them | 01:39 |
|
ayust
| try git status then? | 01:39 |
|
mhall
| sweet | 01:39 |
|
| yeah that seems to work | 01:39 |
| ← leo2007 left | 01:39 |
| ← marcamilly left | 01:40 |
|
mhall
| what command will show me the diff for my changes to fix the conflicts so I can BS check | 01:41 |
|
| NM, git diff worked | 01:41 |
|
| hehe | 01:41 |
| → owen1 joined | 01:42 |
|
owen1
| i try to deploy my project with capistrano and get: fatal: unable to create '.git/index.lock': File exists. i rm this file from the server and now i get: fatal: Could not reset index file to revision 'aef5cf446437682e64adf8dabed731203c1538a1'. any clues? | 01:42 |
| → eletuchy joined | 01:43 |
| ← SimonP86 left | 01:43 |
|
mhall
| oh sweet this is looking good now | 01:44 |
|
| ayust: i think your advice saved my ass | 01:44 |
|
ayust
| cool | 01:45 |
| → fukuyamaggoooo72 joined | 01:45 |
|
mhall
| autogen.sh and configure both ran ok | 01:45 |
|
| now time to try a compile | 01:45 |
| ← alberto56 left | 01:45 |
|
mhall
| if i want to send a patch to upstream to get it added to next rev of their stable branch (if they will permit it) what would i need to do then | 01:46 |
| → jrmuizel joined | 01:46 |
|
mhall
| that way i could try to avoid having to maintain a fork | 01:46 |
| → hobodave joined | 01:47 |
| → rayners joined | 01:48 |
| ← boombatower left | 01:48 |
|
wde
| ok, i've the git newbie links given to me and still don't understand why "git status" shows my modified files but "git diff" nor "git diff —cached" shows no changes | 01:48 |
|
| er, i've *read the git newbie pages ... | 01:48 |
|
ayust
| can you pastebin the output of 'git status'? | 01:48 |
|
| or simpler - what heading do your files show up under on git status | 01:48 |
| → montylounge joined | 01:49 |
|
wde
| % git status | 01:49 |
|
| # On branch <foo> | 01:49 |
|
| # Changed but not updated: | 01:49 |
|
| # modified: MyFile.C | 01:49 |
|
ayust
| did you 'git add' the file you changed? | 01:49 |
| → banisterfiend joined | 01:49 |
|
SethRobertson
| Could the change be whitespace? | 01:50 |
|
| What happens if you say `git diff HEAD` | 01:50 |
|
wde
| ayust: no … do i need to? it's not untracked … it sees several other files which are untracked (which is fine because i know i haven | 01:50 |
|
| (i know haven't added them yet) | 01:50 |
|
ayust
| "git add" is what marks changes to be committed | 01:50 |
| ← bousquet left | 01:51 |
|
ayust
| unlike subversion, "commit" doesn't automatically commit every change that you made locally | 01:51 |
|
| it only commits the ones you've specifically marked as wanting to commit | 01:51 |
|
wde
| <slaps face> really? | 01:51 |
|
ayust
| right.. that's why in the gitready article i linked you | 01:51 |
|
| you notice the flow of working -> staging -> repository | 01:51 |
| → zenazn joined | 01:52 |
|
ayust
| 'git add' is what takes changes from working to staging | 01:52 |
|
| then git commit takes whatever's in staging and commits it to the repository | 01:52 |
|
| now, that said | 01:52 |
|
wde
| ayust: that link didn't say i needed to add before before i could diff | 01:52 |
|
ayust
| at least one of (git diff, git diff --cached) *should* have shown your chagnes | 01:52 |
|
| changes* | 01:52 |
|
| since 'git diff' shows changes from your working that aren't staged | 01:52 |
|
| and git diff --cached shows changes that are staged | 01:53 |
|
wde
| git diff HEAD shows nothing either, btw | 01:53 |
|
ayust
| so I *am* kind of confused about why neither is apparently showing output | 01:53 |
|
wde
| does git care what my pwd is when i run git diff --cached? | 01:53 |
|
ayust
| no, as long as it's inside the repository | 01:54 |
| → mahata joined | 01:54 |
|
wde
| ok, i'm definitely in the repo … otherwise git status would show nothing as well | 01:54 |
|
ayust
| right | 01:54 |
| ← tty2 left | 01:54 |
|
ayust
| what happens if you type | 01:54 |
|
| git diff MyFile.C | 01:54 |
|
wde
| nothing | 01:55 |
|
ayust
| ok | 01:55 |
| ← ahammond left | 01:55 |
|
ayust
| how about "git diff HEAD^ HEAD" | 01:55 |
|
wde
| ok, so let me try adding it … i can undo that easily right? | 01:55 |
|
ayust
| yes | 01:55 |
| Unknown[OFF] → Unknown[NF] | 01:55 |
|
ayust
| the opposite of 'git add <path>' is 'git reset <path>' | 01:55 |
| → tty2 joined | 01:55 |
|
wde
| so i can't do "git add MyFile.C" ? | 01:56 |
|
rlb
| wde: and git status will remind you about reset. | 01:56 |
|
wde
| if i run "git branch", I get : | 01:56 |
|
| master | 01:56 |
|
| * bnranch | 01:56 |
|
| where "* <branch>" is what i did "get checkout" with | 01:57 |
|
ayust
| what error do you get with 'git add MyFile.C' | 01:58 |
|
wde
| I did "git add MyFile.C; git diff" and nothing | 01:58 |
| → dfr|mac joined | 01:58 |
|
wde
| when i do git status, I now have "MyFile.C" listed under "Changes to be committed" | 01:58 |
|
ayust
| what kind of changes did you make to MyFile.C? | 01:59 |
| ← noahcampbell left | 01:59 |
|
wde
| lots of the changes, new functions, etc. | 01:59 |
|
ayust
| well, now that it's added | 01:59 |
|
| it should be showing up under "git diff --cached", not "git diff" | 02:00 |
|
wde
| "git diff —cached" gives me nothing … also nothing for "git diff —cached MyFile.C" | 02:00 |
|
| oh crap | 02:01 |
|
| this is on solaris | 02:01 |
|
| doesn't "git diff" just shell out to diff? | 02:01 |
|
| hmm … no … diff <foo> <bar> seems to work … unless git is passing some options to solaris diff that it doesn't understand | 02:02 |
| ← shiba_yu36 left | 02:02 |
| → dl9pf joined | 02:03 |
|
wde
| when you do a "git diff", does it show in unified format? … my diff has no -u option | 02:04 |
| ← Evious left | 02:04 |
| → boombatower joined | 02:04 |
| ← dl9pf_ left | 02:04 |
| ← tjholowaychuk left | 02:05 |
| → fholgado joined | 02:06 |
| ← montylounge left | 02:07 |
| → gretch joined | 02:07 |
| ← pheaver left | 02:07 |
| → shabble joined | 02:08 |
| ← ldleworker left | 02:08 |
|
ayust
| it's -U### | 02:09 |
|
| (case-sensitive) | 02:09 |
|
| where ### is the number of lines of context to show | 02:09 |
|
| but unified diff format is the default | 02:09 |
|
| (with 3 lines of context) | 02:09 |
|
| and no, 'git diff' doesn't invoke 'diff' | 02:10 |
|
| it's a separate diff program implemented by git itself | 02:10 |
|
wde
| whoever installed git on this machine doesn't seem to have even installed the help files for it | 02:11 |
|
ayust
| "git help diff" doesn't work? | 02:11 |
| ← gretch left | 02:11 |
|
ayust
| if so, perhaps maybe the git installation is messed up? | 02:11 |
|
wde
| that's right … i get "No manual entry for git-diff" | 02:11 |
| → pheaver joined | 02:12 |
|
wde
| if i got to /usr/local/bin (where git shows up in my PATH), I see: git, git-cvsserver, git-receive-pack, git-shell, git-upload-archive, git-upload-pack, gitk | 02:12 |
| ← pheaver left | 02:12 |
| → pheaver joined | 02:13 |
|
wde
| is there some other place i should be looking to see if git-diff is supposed to work? | 02:13 |
|
| (or installed) | 02:13 |
| ← justin-george left | 02:14 |
|
ayust
| try /usr/lib/git/git-core | 02:14 |
|
| and manpages typically in /usr/share/man/man1 | 02:15 |
|
wde
| neither /usr/lib/git nor /usr/local/lib/git exists | 02:15 |
|
ayust
| (note - these may vary for solaris?) | 02:15 |
|
| i haven't worked with solaris a ton, so I don't know if those are the expected paths for Git there | 02:15 |
|
| well, if you have 'locate' available, try 'locate git-diff' | 02:16 |
| ← Orbixx left | 02:16 |
|
owen1
| i use git 1.7.1 on ubuntu and try to deploy to debian with git 1.5.6.5. is it fine? i get funny error: fatal: Out of memory, malloc failed | 02:16 |
| → Orbixx joined | 02:16 |
|
owen1
| (debian lenny) | 02:16 |
| → justin-george joined | 02:17 |
|
ayust
| owen1: pushing with git invokes processes that package up your objects, these can require at least a moderate amount of memory | 02:17 |
|
| what kind of ulimits are you working with owen1 ? | 02:17 |
| → jfelchner joined | 02:18 |
| ← silanus_ left | 02:18 |
|
owen1
| ayust: what is ulimits? | 02:19 |
|
jfelchner
| Anyone know what I need to do to configure git to diff WITHIN a line instead of entire lines? | 02:19 |
|
ayust
| http://ss64.com/bash/ulimit.html | 02:19 |
| → zenazn_ joined | 02:19 |
|
ayust
| jfelchner: --word-diff | 02:19 |
|
owen1
| ayust: unlimited | 02:19 |
|
ayust
| owen1: and on the other end? | 02:19 |
|
owen1
| ayust: that one was on the server | 02:20 |
|
ayust
| what about locally | 02:20 |
|
owen1
| ayust: the same on the client, my desktop | 02:20 |
|
ayust
| odd, then... pretty sure those git versions should be compatible | 02:21 |
|
| how much memory does the server have available? | 02:21 |
|
jfelchner
| ayust: thank you much :) | 02:21 |
| ← vitor-br left | 02:21 |
| → Heimidal joined | 02:22 |
| → smolyn joined | 02:22 |
|
owen1
| ayust: Mem: 512 464 47 | 02:22 |
| ← zenazn left | 02:22 |
| Unknown[NF] → Unknown[OFF] | 02:23 |
| ← mithun left | 02:23 |
|
owen1
| ayust: i have 7 thin servers, each one about 150MB.. WTF | 02:23 |
| → crowbar` joined | 02:24 |
| ← verto left | 02:25 |
| ← MetaCosm left | 02:26 |
| → silanus joined | 02:27 |
| → John___ joined | 02:27 |
| → Davey_ joined | 02:28 |
| ← Davey_ left | 02:28 |
| → Davey_ joined | 02:28 |
| zenazn_ → zenazn | 02:29 |
| ← justin-george left | 02:30 |
| ← pheaver left | 02:30 |
| ← crowbar` left | 02:31 |
| → Jamie joined | 02:32 |
| Jamie → Guest31053 | 02:32 |
| ← Guest31053 left | 02:32 |
| → tekmosis joined | 02:33 |
| → hyperair joined | 02:33 |
|
tekmosis
| does git have a version of vendor tags that cvs has? | 02:33 |
|
mhall
| the jk.gs domain in the channel topic seems to be down | 02:33 |
| → Sidnicious joined | 02:34 |
|
Sidnicious
| Greetz. So, I accidentally ^C'd git in the middle of checking out a different branch. Now, `git checkout` prints "error: Unable to open .git/HEAD.lock for writing". How do I fix this situation? | 02:35 |
| → lanwarder44 joined | 02:35 |
| → livingstn joined | 02:36 |
| ← lanwarder44 left | 02:37 |
|
livingstn
| Hey everyone. Is there a command to overwrite any files that I have locally if there's a newer repo version? | 02:37 |
| → lanwarder44 joined | 02:38 |
|
wde
| thx ayust … gnight all | 02:38 |
| ← wde left | 02:38 |
| ← tekmosis left | 02:38 |
| ← lanwarder44 left | 02:38 |
| ← bmahe left | 02:40 |
| ← John___ left | 02:41 |
| → gretch joined | 02:41 |
|
ayust
| Sidnicious: sudo rm .git/HEAD.lock ? | 02:42 |
|
Sidnicious
| ayust: I did that a minute ago :) still concerned that my repo is ballsed in some subtle way, though. | 02:43 |
|
| how likely is that? | 02:43 |
| → lanwarder44 joined | 02:43 |
|
Sidnicious
| (it appears to have worked) | 02:43 |
| ← dfr|mac left | 02:43 |
|
ayust
| can always 'git fsck' if you desire | 02:45 |
| ← eletuchy left | 02:45 |
| → drl joined | 02:45 |
| ← welly left | 02:45 |
| ← mhall left | 02:45 |
| ← Swimming_bird left | 02:46 |
| ← lanwarder44 left | 02:47 |
| ← Vampire0 left | 02:47 |
| ← rgr left | 02:48 |
| → jfkw joined | 02:48 |
| → zenazn_ joined | 02:49 |
| ← zenazn left | 02:51 |
| ← peshalto left | 02:51 |
| ← fukuyamaggoooo72 left | 02:51 |
| → aah joined | 02:54 |
| zenazn_ → zenazn | 02:54 |
| → tizzo joined | 02:54 |
| ← Tuller left | 02:57 |
| ← Rupan left | 02:59 |
| ← smolyn left | 03:00 |
| → Rupan joined | 03:01 |
| ← zombor left | 03:01 |
| → Vampire0 joined | 03:05 |
| → pgib joined | 03:07 |
| → mithun joined | 03:07 |
| ← spaceonline left | 03:07 |
| ← utu left | 03:08 |
| ← mithun left | 03:08 |
| ← tizzo left | 03:08 |
| ← Orbixx left | 03:09 |
| → mithun joined | 03:10 |
| → Orbixx joined | 03:11 |
| ← Orbixx left | 03:11 |
| → Orbixx joined | 03:11 |
| → heeton joined | 03:14 |
| ← chrisdarroch_ left | 03:14 |
| → chrisdarroch joined | 03:15 |
| ← drl left | 03:15 |
| ← heeton left | 03:15 |
| → heeton joined | 03:15 |
| → SirFunk_ joined | 03:15 |
| ← heeton left | 03:15 |
|
ben_alman
| is there an wasy way to see if a specified path has any modifications since the last commit? | 03:15 |
| → xanderbeedle joined | 03:16 |
| ← Elfe left | 03:16 |
|
xanderbeedle
| I'm trying to add 'time since last commit' to my bash prompt. | 03:16 |
|
| Is there a command to get that time since last commit? | 03:16 |
| → intripoon_ joined | 03:17 |
|
SethRobertson
| ben_alman: git diff <path> | 03:18 |
| → Chillance joined | 03:19 |
|
ben_alman
| ok | 03:19 |
|
SethRobertson
| xanderbeedle: You can parse git show or git log to pull out the timestamp. git log would be easier to get only the value you wanted | 03:19 |
|
| (seconds since the epoch) | 03:19 |
| → zenazn_ joined | 03:19 |
| dwmw2_gone → dwmw2_SYD | 03:20 |
| ← intripoon left | 03:20 |
| ← engla left | 03:21 |
| ← Orbixx left | 03:21 |
| ← zenazn left | 03:21 |
| ← alnewkirk left | 03:21 |
| ← zenazn_ left | 03:23 |
| → Orbixx joined | 03:24 |
| ← Orbixx left | 03:24 |
| → Orbixx joined | 03:24 |
| ← bronson left | 03:24 |
| ← alex__c2022 left | 03:26 |
| ← nyceane left | 03:26 |
| → friskd joined | 03:26 |
| ← ldh left | 03:28 |
| ← Orbixx left | 03:28 |
| ← Error404NotFound left | 03:29 |
| → drl joined | 03:29 |
| → Elfe joined | 03:29 |
| → alex__c2022 joined | 03:29 |
| → Orbixx joined | 03:31 |
| ← Orbixx left | 03:31 |
| → Orbixx joined | 03:31 |
| ← ROBOTARMY left | 03:33 |
| ← Amorphous left | 03:33 |
|
ben_alman
| if i do this: git --git-dir=/ath/to/repo/.git status --porcelain subdir-name | 03:34 |
|
| it works when i'm in the root of the repo | 03:34 |
|
| but not when i'm outside | 03:34 |
|
| even though i'm specifying --git-dir | 03:34 |
| → justin-george joined | 03:34 |
| ← alex__c2022 left | 03:34 |
|
ben_alman
| is there a way i can have it runnable from otuside the git repo? | 03:34 |
| ← flaguy48 left | 03:34 |
|
Sidnicious
| ayust: forgot to says thanks :). I completely forgot about git-fsck | 03:35 |
|
| good call | 03:36 |
| ← Sidnicious left | 03:36 |
| ← livingstn left | 03:36 |
| ← Orbixx left | 03:37 |
|
ben_alman
| i'm trying to see if there aren't just modified files but also new, untracked files | 03:37 |
|
| like git status --porcelain | 03:37 |
|
| but it doesn't give me info i need when run from outside the git repo | 03:37 |
| ← drl left | 03:38 |
| ← fholgado left | 03:38 |
| ← Schmallon left | 03:39 |
|
ben_alman
| any ideas? | 03:39 |
| Chillax → Chillaway | 03:42 |
| ← m_3 left | 03:42 |
| → Orbixx joined | 03:43 |
| ← dermoth_ left | 03:44 |
| → dermoth_ joined | 03:44 |
| → Amorphous joined | 03:47 |
| → gozoner joined | 03:48 |
| Chillaway → Chillax | 03:49 |
| → letomuaddib joined | 03:49 |
| ← JohnFord left | 03:50 |
| → drl joined | 03:51 |
| ← gozoner left | 03:52 |
| → gozoner joined | 03:52 |
| → timj__ joined | 03:52 |
| ← letomuaddib left | 03:53 |
| ← timj_ left | 03:56 |
| ← killerchicken_ left | 03:56 |
| ← SirFunk_ left | 03:56 |
| dwmw2_SYD → dwmw2_gone | 03:59 |
| → killerchicken_ joined | 04:01 |
| ← drl left | 04:01 |
|
xanderbeedle
| SethRobertson: do you know if it's possible to format the date that git log displays? | 04:01 |
|
| or any other way to get the raw timestamp (seconds since epoch or something) of the commit | 04:02 |
|
offby1
| xanderbeedle: there are a bunch of options | 04:02 |
|
| oh sure | 04:02 |
|
| --pretty=%at | 04:02 |
|
| man git-log | 04:02 |
|
xanderbeedle
| I've found the date options, awesome | 04:03 |
| → RLN joined | 04:04 |
| → Schmallon joined | 04:04 |
| → roop joined | 04:05 |
| → ROBOTARMY joined | 04:06 |
| → pheaver joined | 04:08 |
| → davetoo joined | 04:10 |
| ← friskd left | 04:10 |
| ← SethRobertson left | 04:12 |
| → friskd_ joined | 04:13 |
| → timholum1 joined | 04:13 |
|
timholum1
| hello, I am having trouble's using push and pull, I cloned my git repo edited a file, and commited it, now I am trying to merge that back into the main repo, | 04:14 |
| → drl joined | 04:15 |
|
offby1
| ... and ... ? | 04:15 |
|
timholum1
| I have tryed from the master repo git pull, and git pull /path/to/other master. and I have tryed from the other one git push and git push /path/to/other master | 04:15 |
| ← friskd_ left | 04:16 |
|
timholum1
| the file I edited does not change in the primary repo | 04:16 |
|
| but it tells me everything up-to-date | 04:16 |
|
offby1
| timholum1: can you paste a transcript? | 04:16 |
|
| I suspect you're just misunderstanding something | 04:16 |
|
timholum1
| http://pastebin.com/z886JRD4 | 04:19 |
|
offby1
| hole oj | 04:20 |
|
| on | 04:20 |
|
timholum1
| ? | 04:20 |
|
offby1
| timholum1: oh, but that doesn't show me the various pushes that you did. | 04:20 |
|
| I don't suppose you could paste everything from when you edited the file, including all of the relevant pushes and pulls? | 04:21 |
|
timholum1
| how do I get that info? | 04:21 |
|
offby1
| if you happened to have the consoles open in which you issued those commands ... | 04:21 |
| ← xanderbeedle left | 04:21 |
|
offby1
| timholum1: anyway, try running "gitk --all"; it may well explain everything. | 04:21 |
|
| perhaps you pushed into one branch, but are looking for your changes in another. | 04:21 |
| ← Gryllida left | 04:22 |
| → MattDiPasquale joined | 04:23 |
| → adiabatic joined | 04:24 |
|
timholum1
| oh, gitk is a gui, the server does not run x at all | 04:24 |
|
offby1
| if you do "ssh -X server gitk --all", it'll display on your local machine. | 04:24 |
|
| anyway, "git log --graph --pretty=oneline --abbrev-commit --decorate" is a decent text-mode substitute. | 04:25 |
|
| oops, make sure you add "--all" to that already-complex command line. | 04:25 |
| ← Shentino left | 04:27 |
|
timholum1
| http://pastebin.com/qYHcwcuq this is git log --all --decorate | 04:27 |
| → urbanmonk joined | 04:27 |
| ← Davey_ left | 04:28 |
|
timholum1
| http://pastebin.com/Jhdu0P3s this is the same command on the cloned repo | 04:29 |
|
offby1
| those aren't helpful | 04:29 |
|
| plus I don't know what the commit you "lost" looks like | 04:30 |
| ← drl left | 04:31 |
| ← sivy left | 04:31 |
| ← rettub left | 04:32 |
| ← roop left | 04:32 |
|
timholum1
| do you know is that the way I am suppose to push and pull from the repo's? | 04:33 |
|
| that is my main question | 04:34 |
| → SethRobertson joined | 04:34 |
| → smolyn joined | 04:34 |
|
timholum1
| I can wipe my demo repo out, that is not a problem I am more conserned about how to correctly do it for the future | 04:34 |
| ← muep left | 04:35 |
| → rettub joined | 04:35 |
| ← gebi left | 04:36 |
|
timholum1
| here is every git command I ever did http://pastebin.com/G31emcH3 ( simply did a history|grep git ) | 04:36 |
| → kenichi joined | 04:37 |
|
timholum1
| the first 30 lines are not about this at all thought | 04:38 |
|
RLN
| would this error: "error: git was compiled without libcurl support." be my host's error? or potentially mine? my host has git 1.6.4.4 prepackaged and i have curl enabled. i am assuming based on the error that they compiled git without libcurl support? | 04:39 |
| ← MattDiPasquale left | 04:40 |
|
RLN
| i'm using: git clone https://github.com/fabriceb/sfFacebookConnectPlugin.git plugins/sfFacebookConnectPlugin | 04:41 |
|
offby1
| timholum1: sorry, that's too hard to digest | 04:42 |
|
| RLN: well, I'm sure github has a properly working version of git. | 04:42 |
|
| RLN: so the blame is surely on the box on which you ran the "clone" command. | 04:43 |
|
RLN
| so basically i'm screwed huh? | 04:43 |
|
timholum1
| I did a git checkout master -f in the original ( the one i was trying to push to ) and it came throught, | 04:43 |
|
offby1
| RLN: not at all. Get a git that has curl support. | 04:44 |
|
| RLN: or use the ssh flavor of the URL; github always supplies both. | 04:44 |
| → drl joined | 04:44 |
|
offby1
| e.g. try git://github.com/fabriceb/sfFacebookConnectPlugin.git | 04:44 |
|
| (OK, granted, that's not SSH; but it should work as long as you don't need to push) | 04:45 |
|
| and if you have write access, then you can indeed get an SSH URL. | 04:45 |
| → harshu_ joined | 04:45 |
|
RLN
| i've tried git://github.com/fabriceb/sfFacebookConnectPlugin.git | 04:46 |
|
| still same thing | 04:46 |
|
| and its shared hosting so i don't exactly have control over the version of git | 04:46 |
|
offby1
| RLN: seriously? you typed "git clone git://..." and you saw "error: git was compiled without libcurl support"? | 04:47 |
|
| that's baffling | 04:47 |
| ← timholum1 left | 04:48 |
|
RLN
| yea, i'll double-check real quick though | 04:48 |
| ← Pacman_Home left | 04:48 |
| ← tty2 left | 04:49 |
| ← kukks left | 04:49 |
| → SirFunk_ joined | 04:51 |
| ← kenichi left | 04:51 |
| ← DrNick left | 04:51 |
| → Pacman_Home joined | 04:52 |
| → harshu___ joined | 04:53 |
| → DrNick joined | 04:54 |
| ← drl left | 04:54 |
| ← davetoo left | 04:54 |
| ← mithun left | 04:57 |
| → mithun joined | 04:57 |
|
RLN
| offby1, i went to go try and somehow everything was there already :| | 04:58 |
|
| that's even more baffling | 04:58 |
|
| offby1 laughs cruelly | 04:59 |
| → pratz joined | 04:59 |
|
offby1
| we git ninjas break into your hard drive and add missing commits. | 04:59 |
|
RLN
| hahaha | 04:59 |
|
| i think the tech guy i was talking to did it for me after i disconnected | 04:59 |
| → muep joined | 05:00 |
| ← hagabaka left | 05:01 |
|
offby1
| hm | 05:01 |
| → hagebake joined | 05:01 |
|
RLN
| but | 05:02 |
|
| i tried it just to be sure | 05:02 |
|
| github.com[0: 207.97.227.239]: errno=Connection refused | 05:03 |
|
| fatal: unable to connect a socket (Connection refused) | 05:03 |
|
| that's with git:// | 05:03 |
| ← j0su3 left | 05:04 |
| → j0su3 joined | 05:04 |
| ← smolyn left | 05:04 |
| → drl joined | 05:07 |
|
wereHamster
| rns firewall? | 05:08 |
|
| RLN: ^^ | 05:09 |
| ← mahata left | 05:09 |
|
RLN
| wereHamster, idk i'm just gonna be ignorant here and just be happy its working for now.. i've tried it on a different server and worked fine so i'm guessing tech did something magical | 05:13 |
| → dreiss joined | 05:15 |
|
RLN
| thx for help offby1 | 05:16 |
| ← RLN left | 05:16 |
| ← dermoth_ left | 05:19 |
| ← adamm left | 05:19 |
| ← Tommy[D] left | 05:19 |
| → dermoth_ joined | 05:19 |
| → dfr|mac joined | 05:19 |
| → bhosie joined | 05:19 |
| → Tommy[D] joined | 05:20 |
| ← Eridius left | 05:24 |
| ← mutex left | 05:25 |
| → jorn joined | 05:25 |
| ← drl left | 05:26 |
|
jorn
| hey, short question: I'm currently in the end phase of my of a project, it's getting hectic, committing a lot... | 05:27 |
|
| now what i want to ask is: is it possible to make git be a bit more verbose on commit? | 05:28 |
|
| like after a commit this line: | 05:28 |
|
| 17 files changed, 5943 insertions(+), 72 deletions(-) | 05:28 |
| ← ki__ left | 05:28 |
| → envi joined | 05:28 |
|
jorn
| can i somehow get it to instead print a git diff --stat HEAD^1 ? | 05:28 |
|
wereHamster
| make an alias | 05:28 |
|
| or run the diff manually | 05:29 |
|
jorn
| thought maybe there's a user wide hook, which configures what git commit prints by default | 05:29 |
| → TanEk joined | 05:30 |
|
wereHamster
| jorn: man githooks | 05:30 |
| → thermal joined | 05:30 |
| ← ISF left | 05:32 |
|
jorn
| yupp, knew that already, that's why i mentioned "user wide hook" | 05:32 |
|
| so for all repositories | 05:32 |
|
wereHamster
| there are no user wide hooks | 05:32 |
|
| make an alias | 05:32 |
|
jorn
| thanks | 05:34 |
| → amerine joined | 05:36 |
| ← MacGyverNL left | 05:36 |
| → nothingHappens_ joined | 05:37 |
| ← ceej left | 05:38 |
| → marry joined | 05:38 |
| → drl joined | 05:40 |
| ← jorn left | 05:40 |
| ← banisterfiend left | 05:41 |
| ← rayners left | 05:41 |
| → psankar joined | 05:43 |
| ← psankar left | 05:43 |
| → psankar joined | 05:43 |
| ← TanEk left | 05:43 |
| ← berto- left | 05:43 |
| ← juanjoc left | 05:46 |
| ← Heimidal left | 05:48 |
| ← marry left | 05:52 |
| ← jrmuizel left | 05:53 |
| → jrmuizel_ joined | 05:54 |
| Unknown[OFF] → Unknown[NF] | 05:54 |
| → devanjan joined | 05:56 |
| ← sako left | 05:57 |
| ← thermal left | 05:57 |
| ← t3i left | 05:57 |
| → maleknet joined | 05:58 |
| → MacGyverNL joined | 05:58 |
| ← SirFunk_ left | 05:58 |
| ← SirFunk left | 05:58 |
| → tty1 joined | 05:58 |
| → freimatz joined | 05:58 |
| → sako joined | 05:58 |
| ← zwuwmad left | 05:59 |
| → zwuwmad joined | 05:59 |
| → SirFunk_ joined | 05:59 |
| → SirFunk joined | 05:59 |
| ← drl left | 06:00 |
| → Bruce_Wayne joined | 06:05 |
| ← nothingHappens_ left | 06:05 |
| ← dreiss left | 06:05 |
| → ThomasLocke joined | 06:06 |
| → nataraj joined | 06:07 |
| ← Ze_M left | 06:08 |
| ← pgib left | 06:10 |
| → LongBeach joined | 06:11 |
| → DrNick2 joined | 06:12 |
| → j416 joined | 06:12 |
| ← Mage left | 06:13 |
| ← DrNick left | 06:13 |
| ← DrNick2 left | 06:14 |
| → banisterfiend joined | 06:14 |
| → drl joined | 06:14 |
| ← jfelchner left | 06:16 |
| yaotti_aw → yaotti | 06:17 |
| ← noyb left | 06:18 |
| → berto- joined | 06:21 |
| ← berto- left | 06:22 |
| → berto- joined | 06:22 |
| Chillax → Chillaway | 06:23 |
| ← ThomasLocke left | 06:24 |
| ← berto- left | 06:24 |
| → marcamilly joined | 06:25 |
| → eletuchy joined | 06:25 |
| → berto- joined | 06:26 |
| ← mcbonz left | 06:27 |
| → eletuchy_ joined | 06:27 |
| → DrNick joined | 06:27 |
| → ThomasLocke joined | 06:28 |
| → bronson joined | 06:28 |
| ← gozoner left | 06:28 |
| → gozoner joined | 06:29 |
| → mahata joined | 06:29 |
| ← eletuchy left | 06:30 |
| → roop joined | 06:30 |
| → jfelchner joined | 06:32 |
| → ki__ joined | 06:32 |
| → bousquet joined | 06:32 |
| ← bronson left | 06:33 |
| → jony joined | 06:34 |
| ← ymasory left | 06:34 |
| → bronson joined | 06:34 |
| ← bronson left | 06:38 |
| → bronson joined | 06:39 |
| → Sgeo joined | 06:39 |
| ← agile left | 06:40 |
| ← tro left | 06:40 |
| ← Adys left | 06:41 |
| ← drl left | 06:41 |
| → Adys joined | 06:41 |
| → tro joined | 06:43 |
| → opalka joined | 06:44 |
| ← adiabatic left | 06:46 |
| → SIGBUS joined | 06:46 |
| ← jdav_gone left | 06:47 |
| → shiba_yu36 joined | 06:48 |
| ← j416 left | 06:50 |
| ← jrmuizel_ left | 06:51 |
| → jdav_gone joined | 06:52 |
| ← Bruce_Wayne left | 06:52 |
| ← jfkw left | 06:55 |
| → drl joined | 06:55 |
| → ben225 joined | 06:57 |
| ← bronson left | 07:00 |
| → doener joined | 07:00 |
| → guardian joined | 07:00 |
| → bronson joined | 07:00 |
| → odol joined | 07:01 |
| → iband joined | 07:03 |
| ← nataraj left | 07:03 |
| → OOPMan joined | 07:03 |
| ← drl left | 07:03 |
| ← dfr|mac left | 07:05 |
| → noyb joined | 07:05 |
| ← ROBOTARMY left | 07:06 |
| → dreiss joined | 07:06 |
| → ludde joined | 07:06 |
| ← gozoner left | 07:06 |
| → ROBOTARMY joined | 07:09 |
| → matjas joined | 07:10 |
| ← ben225 left | 07:10 |
| ← jhoepken left | 07:11 |
| ← dreiss left | 07:12 |
| → thiago_home joined | 07:13 |
| ← ROBOTARMY left | 07:13 |
| ← emrebey left | 07:13 |
| → Bruce_Wayne joined | 07:13 |
| ← rettub left | 07:13 |
| → mastro joined | 07:13 |
| → Error404NotFound joined | 07:15 |
| ← Error404NotFound left | 07:15 |
| → Error404NotFound joined | 07:15 |
| ← banisterfiend left | 07:16 |
| ← bronson left | 07:16 |
| → drl joined | 07:16 |
| → bronson joined | 07:16 |
| → banisterfiend joined | 07:16 |
| → rettub joined | 07:17 |
| → jhoepken joined | 07:17 |
| ← guardian left | 07:18 |
| ← Sonder left | 07:18 |
| → joshsmith joined | 07:19 |
| ← sako left | 07:19 |
| ← LouisJB left | 07:21 |
| → keyvan joined | 07:24 |
| ← ki__ left | 07:24 |
| → dvaske joined | 07:26 |
| → shentino joined | 07:26 |
| ← shentino left | 07:26 |
| → shentino joined | 07:26 |
| → joel_falcou joined | 07:27 |
| ← madewokherd left | 07:29 |
| → ben225 joined | 07:30 |
| ← AlexP left | 07:31 |
| ← drl left | 07:32 |
| → ntoll joined | 07:32 |
| → ki__ joined | 07:32 |
| → oriba joined | 07:33 |
| → xiong joined | 07:35 |
| → babbage joined | 07:35 |
| ← bronson left | 07:37 |
| ← pheaver left | 07:37 |
| → bronson joined | 07:37 |
| → kreemer joined | 07:37 |
| ← roop left | 07:38 |
| ← amondracorp left | 07:39 |
| → Sgeo_ joined | 07:40 |
| ← shiba_yu36 left | 07:40 |
| → Titosemi joined | 07:40 |
| ← Sgeo left | 07:43 |
| ← joshsmith left | 07:43 |
| → drl joined | 07:44 |
| → bronson_ joined | 07:44 |
| ← bronson left | 07:44 |
| bronson_ → bronson | 07:44 |
|
eighty4
| I've changed the permission of a folder in my repo to 775 but whenever I pull from a remote repo the permission is reset to 755. Is there a way to avoid this? | 07:44 |
| → giallu joined | 07:45 |
| → resmo joined | 07:47 |
| → shiba_yu36 joined | 07:48 |
| ← ben225 left | 07:50 |
| ← sassyn left | 07:50 |
| → ph^ joined | 07:51 |
|
Rhonda
| eighty4: git does only store minimum permission flags, like execute or not. The rest is guided by your umask. | 07:53 |
| → engla joined | 07:53 |
| ← engla left | 07:53 |
| → engla joined | 07:53 |
| ← mahata left | 07:54 |
| → Badiss joined | 07:54 |
| → wtfness joined | 07:55 |
| ← drl left | 07:56 |
| ← SIGBUS left | 07:56 |
| → TrineLocke joined | 07:58 |
| → cjs joined | 07:58 |
|
cjs
| What's the simplest syntax to cat a specific revision of a specific file? | 07:58 |
| ← Bruce_Wayne left | 07:58 |
| → Deesl joined | 07:59 |
| ← Deesl left | 07:59 |
| → Deesl joined | 07:59 |
|
cjs
| (I.e., send it to stdout.) | 07:59 |
|
mastro
| cjs, it's not a "revision" anyway: git show <commit>:path/to/file > /tmp/myFile.recovered | 07:59 |
|
cjs
| Sorry, does "commit" have a different meaning from "revision"? | 07:59 |
|
mastro
| cjs, example: git show tag-1.2:build.xml > build.xml.old | 08:00 |
|
cjs
| Thanks for the syntax, by the way; that's exactly what I needed. | 08:01 |
| → saschpe joined | 08:01 |
|
mastro
| cjs, revision is something related to subversion :) a revision in subversion is an incremental number identify the "commit" in an unique way, in git we talk about commits and hashes because there is no such thing as a linear, incremental number in a distributed system | 08:01 |
|
| cjs, a commit is both a snapshot of the working directory and a "patch" on the previous commit | 08:02 |
| → nixness joined | 08:02 |
|
mastro
| cjs, what I said is not really true, it's "a patch" only if there if there is a single parent commit | 08:03 |
| → teweWork joined | 08:03 |
|
cjs
| mastro: Allow me to disagree in a minor way about the definition of "revision," having used SCCS, RCS and CVS for many years before Subversion even existed. :-) | 08:03 |
| → chrischambers joined | 08:04 |
| ← wtfness left | 08:04 |
|
mastro
| cjs, you are probably right :) I associate the term "revision" with subversion, I'm probably the one in error here :P | 08:04 |
|
cjs
| But "both a commit and a patch," well, I'm going to say "no," even though I'm not a git expert. A commit is a particular snapshot, or vertex in the graph, a patch is an edge in the graph. | 08:05 |
|
| mastro: Well, it depends on whose revision you're using. :-) | 08:05 |
|
| Mostly, I just want to make sure it's not unfair to call a commit a revision, if we can first agree that I have a reasonable basic understanding of git., | 08:05 |
|
| Actually, that patch vs. snapshot thing is a bit tricky. This again comes back to git's user interface; it's actually a rather simple and elegant system that hides under a somewhat complex UI. | 08:06 |
|
mastro
| cjs, actually a commit is a snapshot an nothing else... patches are computed by git automatically by comparing two commits, but since you have commands like git cherry-pick I tend to think of a commit as a "patch" somewhat... | 08:08 |
| → drl joined | 08:09 |
|
mastro
| cjs, of course that apply only when you don't have a merge commit : | 08:09 |
|
dean[w]
| What does "unmerged paths" represent in 'git status' | 08:09 |
| → thermal joined | 08:11 |
|
thiago_home
| dean[w]: conflicts | 08:11 |
| ← bronson left | 08:11 |
|
thiago_home
| dean[w]: it means the merge didn't merge everything (unmerged) | 08:11 |
|
| dean[w]: you need to fix the conflicts | 08:11 |
| → bronson joined | 08:11 |
| → radarek joined | 08:12 |
|
dean[w]
| Okay that's what I expected. So if I were to manually resolve a conflict in vim, the file remains in "unmerged paths" | 08:12 |
|
| Is it in "staging". Do I have to git add? | 08:12 |
|
thiago_home
| dean[w]: yes, git add | 08:12 |
|
dean[w]
| I'm just trying to fully understand what's going on rather than guess ;-) | 08:12 |
|
| okay, perfect | 08:12 |
| → mcbonz joined | 08:12 |
| → Jippi_mac joined | 08:12 |
| → roop joined | 08:14 |
| ← bronson left | 08:14 |
|
eighty4
| Rhonda: k, so any idea why it would change the permissions? | 08:14 |
|
cjs
| mastro: Exactly my point: patches are the paths between nodes in the graph of snapshots. This applies even to merge commits. | 08:14 |
| → darkredandyellow joined | 08:14 |
| → bronson joined | 08:14 |
| ← darkredandyellow left | 08:14 |
| → cbreak_work joined | 08:15 |
| ← ki__ left | 08:15 |
|
Rhonda
| eighty4: Because your umask is 022 and not 002 like you want it? | 08:15 |
| ← engla left | 08:15 |
| → borwar joined | 08:16 |
| ← borwar left | 08:16 |
| → borwar joined | 08:16 |
|
eighty4
| Rhonda: let me rephrase that :) I need to read up on umask and how git uses it. | 08:17 |
| → Xaphiosis joined | 08:17 |
|
eighty4
| Rhonda: thanks for the help | 08:17 |
|
Xaphiosis
| when I set g+rws on a dir and init a --shared=group repo in there, why are some of the directories not accessible by the group? | 08:17 |
| ← keyvan left | 08:18 |
| → cirwin joined | 08:18 |
|
Xaphiosis
| specifically, the permissions are correct, but the group is my own username rather than the group of the directory the repo is in | 08:18 |
| ← drl left | 08:22 |
| ← Schmallon left | 08:24 |
|
mastro
| cjs, yes but merge commits have 2 or more commits involved, so if you want to see them as "patch" you have to decide if you want to see the patch from parent A or parent B | 08:25 |
| → ningia joined | 08:25 |
| → selud joined | 08:25 |
| ← selud left | 08:25 |
| ← roop left | 08:26 |
| ← amerine left | 08:26 |
|
cjs
| Right. And those are two separate arcs in the graph. | 08:26 |
| ← xiong left | 08:27 |
| → simoncpu joined | 08:27 |
|
simoncpu
| hi | 08:27 |
|
| what's a good git web ui that i can install on my server? | 08:27 |
|
cjs
| This is why Git's porcelain is confusing: you do something like look at a particular commit, and it doesn't show you that commit, it shows you the arc between that commit and a previous commit, which is not actually something that exists in the database (except implicitly) at all. | 08:28 |
| → guardian joined | 08:28 |
|
cirwin
| agreed, it's a horribly leaky abstraction | 08:28 |
|
cbreak_work
| you can look at the commit if you want | 08:29 |
|
| you just have to ask nicely :) | 08:29 |
|
cirwin
| but that isn't a very useful thing to do :p | 08:29 |
|
cjs
| In fact, to say that "merge commits have 2 or more commits involved" is also confusing. A merge commit is just a single commit, no different from any other snapshot when viewed as a snapshot of work. It's just that there's an automated way to say, "give me a diff between that and snapshot A or snapshot B...." | 08:30 |
|
| cbreak_work: Yes, I know. cirwin: I dunno, I've checked out previous commits from time to time. :-) | 08:30 |
|
cirwin
| that looks at the tree, not the commit :p | 08:31 |
|
mastro
| simoncpu, have a look here: https://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools | 08:32 |
|
simoncpu
| mastro: okidoki, thanks | 08:32 |
|
cjs
| cirwin: Am I wrong, or is a checkout of the tree not pretty much the commit (with the exception of excluding the commit message and similar metadata?) | 08:33 |
|
thiago_home
| the checkout of a commit is the checkout of the tree associated with the commit | 08:34 |
|
mastro
| simoncpu, I'd personally go with http://www.redmine.org/ either if it is not git specific nor in that list | 08:34 |
|
cirwin
| well, you could have the same tree with multiple commits (if you tried reallly hard) at which point a checkout would show you no information | 08:34 |
|
| (or multiple commits with the same tree to put it forwards) | 08:34 |
|
mastro
| simoncpu, http://www.redmine.org/projects/redmine/wiki/Features | 08:34 |
|
cirwin
| i tend to think of commits as just convenient labels | 08:34 |
|
| all the useful stuff they point to | 08:34 |
| ← Thumper_ left | 08:35 |
| → Thumper_ joined | 08:35 |
|
mastro
| cjs, the checkout of a commit is actually just pointing the HEAD to that commit and changing your working directory to resemble that snapshot | 08:35 |
| → drl joined | 08:36 |
|
simoncpu
| whoa, google/stackoverflow has answered my questions | 08:36 |
|
| http://stackoverflow.com/questions/1130466/trac-vs-redmine-vs-jira-vs-fogbugz-for-one-man-shop | 08:36 |
|
| =) | 08:36 |
|
| simoncpu <3 gooooogllllle | 08:36 |
|
thiago_home
| one-man quartet? | 08:37 |
|
simoncpu
| yeah | 08:38 |
| ← tyteen4a03 left | 08:38 |
| → goshawk joined | 08:38 |
|
mastro
| cjs, since you HEAD point to that commit you are on THAT commit, you can have multiple commits with the same working directory / same snapshot | 08:38 |
| ← babbage left | 08:39 |
| → talespin_kit joined | 08:39 |
| ← marc_kdab left | 08:39 |
|
mastro
| simoncpu, actually I think the best software around is github, too bad you can't have the source code to install it locally | 08:39 |
| → tyteen4a03 joined | 08:39 |
| → ppawel joined | 08:39 |
|
talespin_kit
| how to remove the file only from the index. i tried git rm --cached filename , but it did not work. | 08:39 |
| ← devanjan left | 08:39 |
|
mastro
| in my opinion this is something really missing with git | 08:40 |
| → bradleyayers joined | 08:40 |
| ← tyteen4a03 left | 08:40 |
| → bigpeted joined | 08:40 |
|
talespin_kit
| ie. opposite to git add | 08:40 |
|
thiago_home
| talespin_kit: that's how you do it | 08:40 |
| → tyteen4a03 joined | 08:40 |
|
mastro
| talespin_kit, git status tell you | 08:40 |
| → rgr joined | 08:41 |
| → tyteen4a03_ joined | 08:41 |
|
simoncpu
| mastro: yepp, github is cool | 08:41 |
|
| the paid hosting is too high though | 08:42 |
| ← bigpeted left | 08:42 |
| → bigpeted joined | 08:42 |
| ← bronson left | 08:45 |
| → bronson joined | 08:45 |
| ← tyteen4a03 left | 08:45 |
| ← rgr left | 08:47 |
| → nevyn^ joined | 08:48 |
| → cenuij joined | 08:48 |
| ← cenuij left | 08:48 |
| → cenuij joined | 08:48 |
| ← matjas left | 08:49 |
| ← Xaphiosis left | 08:49 |
| → devanjan joined | 08:50 |
| ← theoros left | 08:51 |
| ← krosenvold_ left | 08:51 |
| → psoo joined | 08:51 |
|
egrouse
| just out of interest, how can i reset or revert a remote repo? earlier on i did a reset and attempted to push back to it and got an error - is the some specific method? | 08:51 |
| ← chrisdarroch left | 08:52 |
|
thiago_home
| what do you mean reset or revert? | 08:52 |
|
| what do you want to do? explain that, not what your solution is | 08:53 |
| → nicoulaj joined | 08:53 |
|
egrouse
| rollback to an earlier commit | 08:53 |
| ← drl left | 08:53 |
| ← ruied left | 08:53 |
|
thiago_home
| do you mean erase the new commits completely, from history, forever? | 08:54 |
|
egrouse
| yes, that would be ideal | 08:54 |
|
| total obliteration | 08:54 |
|
thiago_home
| do other people have those commits already? | 08:54 |
|
egrouse
| no | 08:55 |
|
thiago_home
| then reset --hard to the commit you want, then push -f | 08:55 |
|
egrouse
| push -f is force i guess? | 08:55 |
|
tango_
| yes | 08:55 |
|
egrouse
| cool. | 08:55 |
|
| thanks | 08:55 |
| → snearch joined | 08:56 |
| ← mikepack_ left | 08:57 |
| silex → Silex | 08:57 |
| → t3i joined | 08:58 |
| → gebi joined | 09:00 |
| ← gebi left | 09:00 |
| → gebi joined | 09:00 |
| ← sagsousuke left | 09:00 |
| → matjas joined | 09:00 |
| → Anubisss joined | 09:01 |
| ← oriba left | 09:03 |
| → torvalamo joined | 09:04 |
| ← tyteen4a03_ left | 09:04 |
| → mziulu joined | 09:04 |
| → drl joined | 09:05 |
| ← bauruine left | 09:07 |
|
talespin_kit
| mastro: thanks, its git reset. | 09:07 |
| → ruied joined | 09:07 |
| ← Anti-X left | 09:08 |
|
talespin_kit
| mastro: why did the git-rm man page misleads. i see these lines under --cached option, --cached | 09:08 |
|
| Use this option to unstage and remove paths only from the index. | 09:08 |
| → priidu joined | 09:09 |
|
talespin_kit
| Working tree files, whether modified or not, will be left alone. | 09:09 |
| → davidc_ joined | 09:09 |
| → tyteen4a03 joined | 09:10 |
| → LouisJB joined | 09:10 |
| → metoikos joined | 09:10 |
| → krfs joined | 09:10 |
| ← justin-george left | 09:11 |
| ← krfs left | 09:12 |
| ← ruied left | 09:12 |
| → sgillet joined | 09:13 |
| ← drl left | 09:14 |
| → serard joined | 09:14 |
| ← tyteen4a03 left | 09:14 |
| → The_Ball joined | 09:15 |
|
The_Ball
| What is the easiest way to split up a previous commit into two commits? | 09:15 |
|
selckin
| get rebase -i, edit, make 2 commits, git rebase --continue | 09:16 |
| → marc_kdab joined | 09:17 |
| ← thiago_home left | 09:18 |
| → maattd joined | 09:18 |
| → tyteen4a03 joined | 09:19 |
| → darkredandyellow joined | 09:19 |
| → fr0sty|mobile joined | 09:19 |
| → ayanes joined | 09:20 |
| ← ayanes left | 09:20 |
| → ayanes joined | 09:20 |
| → SIGBUS joined | 09:20 |
| ← The_Ball left | 09:20 |
| ← berto- left | 09:22 |
| → mahata joined | 09:23 |
| → ruied joined | 09:24 |
| ← cirwin left | 09:25 |
| → vdv joined | 09:25 |
|
mastro
| talespin_kit, you should understand what "cache" or "index" means in a git repository: it is the *ready_to_commit* state | 09:25 |
| → pfrenssen joined | 09:25 |
| yaotti → yaotti_aw | 09:26 |
| ← tyteen4a03 left | 09:26 |
|
mastro
| talespin_kit, git rm --cached is used to remove a file from the index but not from the working directory: the file is removed in the next commit but kept in the filesystem as untracked file | 09:27 |
| → drl joined | 09:27 |
| → The_Ball joined | 09:27 |
|
mastro
| talespin_kit, when you git add or git rm you update the index state, you can see it as a "stage" for the next commit | 09:27 |
| → dpino joined | 09:28 |
| ← bradleyayers left | 09:28 |
|
mastro
| talespin_kit, if you change your mind and want to do the reverse of a git add or a git rm you just have to reset the index to the current commit with git reset HEAD <file> | 09:28 |
| → sgronblo joined | 09:29 |
|
sgronblo
| Why does git say that trunk is ambiguous when doing checkout trunk on an svn repository that i cloned with standard layout? | 09:30 |
|
| Is it because of the remotes/trunk branch? | 09:30 |
|
selckin
| you never wanna checkout trunk anyway | 09:30 |
| → PigeonFriend joined | 09:30 |
|
selckin
| unless you renamed master to trunk? | 09:30 |
|
doener
| sgronblo: yes. refs/remotes/trunk and refs/heads/trunk both have the same valid shortname "trunk" | 09:31 |
|
| sgronblo: that's why you should always use something like --prefix=svn/ with git-svn | 09:32 |
| ← drl left | 09:32 |
|
talespin_kit
| mastro: thanks again, very clear description. | 09:33 |
|
mastro
| selckin, if you _really_ want to checkout a remote branch (which is not useful anyway) you can do it with git checkout remotes/trunk | 09:33 |
| → tyteen4a03 joined | 09:33 |
| → zoran119 joined | 09:34 |
|
zoran119
| is it possible to 'patch ignore' a file | 09:34 |
|
mastro
| selckin, sorry, it was mean for Sgeo_ | 09:34 |
|
| sgronblo, | 09:34 |
|
| sorry Sgeo_ :) | 09:35 |
|
zoran119
| i edit a config file (say database password) and don't want it to come up in 'git status' and 'git diff', but if i edit someting else i do want it to be reported in 'git status' and 'git diff' | 09:35 |
|
| is this possible? | 09:35 |
| → kunthar joined | 09:37 |
|
FauxFaux
| Something else in the same file? No. | 09:38 |
|
| zoran119: man git-update-index --assume-unchanged for the whole file. | 09:38 |
|
kunthar
| hi, i have a question regarding mirror supported fork of gitosis: https://github.com/dinoboff/gitosis.git | 09:38 |
|
| anyone used mirror option? | 09:39 |
|
sgronblo
| Why would you not want to check out trunk? | 09:39 |
| ← SIGBUS left | 09:39 |
| → tatsuya joined | 09:39 |
|
sgronblo
| I think I might have renamed master to trunk | 09:39 |
|
mastro
| sgronblo, what do you want to do after checking out trunk? what are you trying to achieve? | 09:39 |
|
sgronblo
| It was a while ago. Time for some merge hell. | 09:40 |
| → simplechat joined | 09:40 |
| ← GaVrA left | 09:41 |
| ← kunthar left | 09:41 |
| → tvw joined | 09:42 |
| ← tyteen4a03 left | 09:42 |
| ← Neo left | 09:43 |
| → Neo joined | 09:43 |
| → HG` joined | 09:44 |
| → arnis joined | 09:44 |
| → drl joined | 09:46 |
|
arnis
| hi | 09:47 |
| → tyteen4a03 joined | 09:47 |
| ← thermal left | 09:47 |
| ← tyteen4a03 left | 09:47 |
| → tyteen4a03 joined | 09:48 |
| ← maattd left | 09:48 |
| ← tyteen4a03 left | 09:48 |
| → tyteen4a03 joined | 09:49 |
| ← gretch left | 09:49 |
| → RaceCondition joined | 09:49 |
| ← RaceCondition left | 09:51 |
| → SIGBUS joined | 09:51 |
| ← tyteen4a03 left | 09:54 |
| ← drl left | 09:54 |
| → anjen joined | 09:55 |
| ← SIGBUS left | 09:56 |
| ← priidu left | 09:56 |
| → maattd joined | 09:57 |
| → tyteen4a03 joined | 09:57 |
| ← maattd left | 09:57 |
| → maattd joined | 09:58 |
| ← MikhX left | 09:59 |
| ← maattd left | 10:00 |
| → maattd joined | 10:00 |
| → henrikbjorn joined | 10:00 |
| → peshalto joined | 10:00 |
| ← peshalto left | 10:01 |
| ← tyteen4a03 left | 10:01 |
| → bluenovember joined | 10:02 |
| ← bronson left | 10:03 |
| → bauruine joined | 10:04 |
| → bronson joined | 10:04 |
| ← shiba_yu36 left | 10:06 |
| → tyteen4a03 joined | 10:06 |
| → RaceCondition joined | 10:07 |
| ← bronson left | 10:07 |
| → curtana joined | 10:07 |
| → bronson joined | 10:07 |
| ← ruied left | 10:08 |
| → drl joined | 10:09 |
| ← t3i left | 10:10 |
| ← bousquet left | 10:12 |
| → aeiou joined | 10:12 |
| → shiba_yu36 joined | 10:12 |
|
aeiou
| i have a directory of files, (not under git) i also have a directory inside this directory that _is_ a git repo ( http://pastebin.com/vLFQzre5 ) | 10:12 |
|
| i now want to add the non-git-dir to git, and add the directory-under-git to be a submodule | 10:13 |
| ← funfun left | 10:13 |
| → funfun joined | 10:13 |
|
aeiou
| if i do git init inside non-git-dir what do i do to add teh directory-under-git as a submodule? | 10:13 |
|
malesca
| aeiou: Probably easiest to just move the inner directory somewhere else. Like, move it to /inner_dir, then do as you would with any other submodule | 10:15 |
|
| IIRC something like: git submodule add /inner_dir where/it/should/go/inner_dir | 10:16 |
|
aeiou
| yeah that is a pain though, because the inner_dir has lots of untracked files | 10:16 |
|
| i.e cache files, uploads etc | 10:16 |
|
| thus i was wondering if it is possible to add a subdirectory manually, using the repo that is already there? | 10:16 |
|
malesca
| well, if it has gitignores and you add it as a submodule, I don't think that should be a problem | 10:16 |
|
aeiou
| i guess i could do: mv inner inner_bak; git submodule add x inner; rm -rf inner; mv inner_bak inner | 10:17 |
|
| ? | 10:17 |
|
| if i knew anything about submodule internals i would guess this is possible without this hack | 10:17 |
| ← dpino left | 10:18 |
| yaotti_aw → yaotti | 10:18 |
| → robzor joined | 10:18 |
|
malesca
| aeiou: What is x? Some remote repo? | 10:18 |
|
aeiou
| yeah | 10:18 |
|
| [email@hidden.address] | 10:19 |
|
| (ssh) | 10:19 |
|
malesca
| Oh, now I get you. So you want the cache files etc to be around afterwards. Yeah, what you said seems like it should work. I don't know submodules intimately. I'm sure someone will suggest something cooler if you stick around ;) | 10:19 |
| ← kpreid left | 10:21 |
| → chrischambers_ joined | 10:21 |
|
aeiou
| malesca, ah yeah cool :) | 10:21 |
|
| i think it will work, just feels hacky :0 | 10:22 |
| ← chrischambers left | 10:22 |
| chrischambers_ → chrischambers | 10:22 |
| → drizzd_ joined | 10:22 |
| → ruied joined | 10:24 |
| ← drizzd left | 10:26 |
| → j416 joined | 10:26 |
| → felixge joined | 10:26 |
| → airborn joined | 10:26 |
|
felixge
| Question: Sometimes I see a hunk I don't want to keep when using "git add -p". Is there any way to not only ignore the hunk, but rather remove it from my file completely? | 10:27 |
|
j416
| o/ if I create a branch with one initial commit, then in a copy of that branch I change something and commit one; how come when I merge back this copy into the first branch, there are suddenly two identical "Initial commit"s ? | 10:28 |
| ← ruied left | 10:29 |
|
j416
| felixge: I think not, since add is only about adding things to the index, not modifying your working copy. If you commit however, you can use git checkout or git reset to remove other changes. | 10:29 |
|
felixge
| j416: well, the problem is that while I want to "reset --hard" on most changes not staged after the commit, sometimes I want to keep a few hunks :) | 10:31 |
| ← gebi left | 10:31 |
| ← Neo left | 10:31 |
|
felixge
| it always felt like telling git add -p to "nuke" the hunk in question would feel most natural to my workflow | 10:31 |
|
| but I guess I'm out of luck | 10:31 |
|
| :) | 10:31 |
|
j416
| felixge: well, not adding it means it's not going into your commit | 10:32 |
| Weust`afk → Weust` | 10:32 |
|
j416
| when you're done running git add you can run git diff to see what you didn't add | 10:32 |
|
felixge
| j416: Yeah, that's what I have been doing so far. And git reset/checkout works great if I want to nuke all remaining hunks in the tree / a single file. But if I want to nuke a particular hunk in a file without commiting the others, I have to use my text editor :( | 10:33 |
| ← devanjan left | 10:33 |
|
felixge
| I guess if I could tell 'git stash' to ignore my index, life would be good | 10:34 |
|
| then I could stash the bad / good stuff away | 10:34 |
| → Neo joined | 10:34 |
| ← hobodave left | 10:35 |
|
j416
| felixge: git stash save --keep-index | 10:35 |
|
felixge
| I guess I'm in luck | 10:35 |
|
| yeah | 10:35 |
|
| just saw that | 10:35 |
|
| :) | 10:35 |
|
| j416: thanks for the help! | 10:35 |
|
j416
| you're welcome. :) | 10:35 |
|
felixge
| j416: that will help my flow :) | 10:35 |
|
| <3 gi | 10:35 |
|
| * git | 10:35 |
|
j416
| felixge: so optimally you would like a git reset -p option? | 10:36 |
|
felixge
| j416: yes | 10:36 |
| → MikhX joined | 10:36 |
|
felixge
| j416: but I just saw there is git stash -p | 10:36 |
|
j416
| well there is one. :) | 10:36 |
|
| (I just found out myself) | 10:37 |
|
felixge
| ohhhh | 10:37 |
|
| that's even much more perfect | 10:37 |
|
| doesn't get my stash dirty | 10:37 |
|
| :) | 10:37 |
|
j416
| so you should be able to add everything, then reset just that hunk | 10:37 |
|
| I guess. | 10:37 |
|
felixge
| hmm | 10:37 |
|
j416
| thanks, I learnt something new. | 10:37 |
|
felixge
| nah doesn't work that way | 10:37 |
|
| git reset -p --hard does not work | 10:38 |
|
| fatal: --patch is incompatible with --{hard,mixed,soft} | 10:38 |
| ← mahata left | 10:38 |
|
felixge
| but git stash -p will work just fine | 10:38 |
|
j416
| not --hard | 10:38 |
|
felixge
| well, I want hard | 10:38 |
|
| I want to modify my files | 10:38 |
|
j416
| what do you need that for | 10:38 |
|
felixge
| not the index | 10:38 |
|
| Scenario: I have 1 file with 2 changes | 10:38 |
|
| and I want to remove one change from the file | 10:39 |
|
j416
| git isn't a text editor.. :P | 10:39 |
|
felixge
| while keeping the other | 10:39 |
|
| j416: no, but it applies and reverts patches | 10:39 |
|
j416
| which apply to entire projects :) | 10:39 |
| ← hgb left | 10:39 |
| ← roger_padactor left | 10:39 |
| ← opalka left | 10:40 |
|
felixge
| so you're telling me I should not embrace my awesome discovery of git stash ? | 10:40 |
|
| ) | 10:40 |
|
| :) | 10:40 |
|
j416
| I see your point, but having git editing workdir files like that sounds rather dangerous | 10:40 |
|
felixge
| git stash -p | 10:40 |
|
| that is | 10:40 |
| → kpreid joined | 10:40 |
|
j416
| do whatever works best for you. :) | 10:40 |
|
felixge
| well in my scenario I usually just want to nuke debugging statements while keeping one or two temporary changes for testing | 10:41 |
| ← matjas left | 10:41 |
|
felixge
| so even if I loose all dirty files, no biggie | 10:41 |
|
j416
| felixge: you could define your own command that does git stash -p then immediately drops that stash | 10:41 |
|
| ? | 10:41 |
|
felixge
| j416: sure, probably won't even need it | 10:41 |
|
| I mean I don't care about my stash being overwritten | 10:41 |
|
| it has a history | 10:41 |
|
| and my stashes are shortlived anyway | 10:42 |
|
j416
| felixge: why not have a debug branch for such things that you rebase on top of your dev branch? | 10:42 |
|
| might be overkill | 10:42 |
|
felixge
| j416: yeah, it'd be more manual work in my case | 10:42 |
|
j416
| ok. | 10:42 |
| → opalka joined | 10:42 |
|
felixge
| j416: the real problem is that the project I work on keeps the config under version control without having a non-versioned config that can be merged over the main one | 10:43 |
| ← hyperair left | 10:43 |
| ← boombatower left | 10:43 |
|
felixge
| ;) | 10:43 |
|
j416
| hm ok | 10:43 |
|
| anyway | 10:43 |
|
| time for lunch | 10:44 |
|
| o | 10:44 |
|
| o/ | 10:44 |
| ← j416 left | 10:44 |
| → verdon joined | 10:45 |
| → gfto joined | 10:45 |
| → tcurdt joined | 10:47 |
| ← maattd left | 10:47 |
| → matjas_ joined | 10:50 |
| → mabrand joined | 10:50 |
| ← DaveIngram left | 10:50 |
| → _pingu joined | 10:52 |
| ← Thell left | 10:53 |
| → Titosemi1 joined | 10:53 |
| → devanjan joined | 10:53 |
| → avinashhm joined | 10:53 |
| ← bran left | 10:54 |
| ← Titosemi left | 10:54 |
| → petrux joined | 10:54 |
| → trasz joined | 10:54 |
|
trasz
| git-p4 submit | 10:55 |
|
| fatal: Not a valid object name HEAD~185 | 10:55 |
|
| Command failed: git cat-file commit HEAD~185 | 10:55 |
|
| what might be wrong? | 10:55 |
| → krfs joined | 10:55 |
| → k04n joined | 10:58 |
| → fr0sty-away_ joined | 10:58 |
|
k04n
| quick question...i just initialized a new repo on server (git init), then on my local machine cloned it via ssh. then, i added all local files and did git push origin master | 10:58 |
| ← fr0sty-away left | 10:58 |
| ← drl left | 10:59 |
|
k04n
| everything was uploaded, and on ther server it even looks like files are in .git... git log shows my commit | 10:59 |
|
| (forgot to mention i committed between add and push origin master) | 10:59 |
|
doener
| faq non-bare | 10:59 |
| → gebi joined | 10:59 |
|
k04n
| however, on the server, how do i get the files out of the .git directory? | 10:59 |
|
doener
| hm, ok, we're apparently out of faq bots... | 10:59 |
|
k04n
| do i have to clone it somewhere else or is there a way to make the server copy function similarly to local | 10:59 |
| → kkszysiu joined | 11:00 |
|
kkszysiu
| Hello | 11:00 |
|
| How to merge just some revisions from one branch to another? | 11:01 |
|
fr0sty|mobile
| trasz: there is no commit 185 generations before HEAD. | 11:01 |
|
| but i don't know git-p4 at all | 11:01 |
|
doener
| k04n: https://git.wiki.kernel.org/index.php/GitFaq#non-bare | 11:01 |
|
malesca
| kkszysiu: git cherry-pick | 11:01 |
| → jast joined | 11:02 |
|
k04n
| doener: awesome. got it :) thanks. | 11:02 |
| ← Jippi_mac left | 11:04 |
|
trasz
| fr0sty|mobile: could you explain the 'there is no commit'? | 11:05 |
| ← anjen left | 11:05 |
| ← ketas left | 11:09 |
| → krosenvold_ joined | 11:10 |
| ← devanjan left | 11:10 |
| → ketas joined | 11:10 |
| → tizzo joined | 11:11 |
| → drl joined | 11:12 |
|
fr0sty|mobile
| your history is not that deep | 11:12 |
| ← VladDrac left | 11:12 |
| ← psankar left | 11:13 |
| ← k04n left | 11:13 |
| → VladDrac joined | 11:13 |
| → sonnym joined | 11:13 |
|
fr0sty|mobile
| why that is or whether that is a problem, I can't say. | 11:14 |
| → ruied joined | 11:14 |
| → Jippi_mac joined | 11:14 |
| ← bronson left | 11:14 |
| → bronson joined | 11:15 |
| ← _pingu left | 11:16 |
| ← talespin_kit left | 11:16 |
|
fr0sty|mobile
| trasz: there seem to be some good questions about this issue on stackoverflow.com | 11:18 |
|
| that might be of some use. | 11:18 |
| → _Vi joined | 11:19 |
| ← ruied left | 11:19 |
| ← drl left | 11:19 |
| → hobodave joined | 11:21 |
|
arnis
| can someone tell me in few words what is branch and whats the point of it? | 11:22 |
| → priidu joined | 11:23 |
| → hyperair joined | 11:24 |
| → Ryback_ joined | 11:25 |
| → leo2007 joined | 11:25 |
|
bremner
| arnis: man gittutorial | 11:25 |
|
jast
| arnis: the 'gittutorial' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html [automatic message] | 11:25 |
| ← radarek left | 11:25 |
|
squi
| i think there is a spam bot here | 11:25 |
|
| 08:56:15][ <marcamilly> hey, how'd you get voice just now ? | 11:25 |
|
| 08:56:19][ <marcamilly> did you use the link ? | 11:25 |
| → bradleyayers joined | 11:26 |
| ← bronson left | 11:26 |
| → bronson joined | 11:27 |
| ← snearch left | 11:28 |
| ← LouisJB left | 11:29 |
| → drl joined | 11:31 |
| ← hyperair left | 11:34 |
| ← felixge left | 11:34 |
| → Puck` joined | 11:34 |
|
Puck`
| hi everyone | 11:34 |
|
| could anyone recommend an irc bot to get updates to a channel? | 11:34 |
|
selckin
| cia | 11:35 |
| → koltroll joined | 11:35 |
|
koltroll
| mac.se | 11:35 |
|
bremner
| or kgb, if you want to host it yourself | 11:36 |
|
Puck`
| thank you (: | 11:36 |
|
koltroll
| bah. that wasn't intended to get printed out. | 11:36 |
| ← kreemer left | 11:37 |
| ← Neo left | 11:39 |
| → Neo joined | 11:40 |
| ← drl left | 11:42 |
| ← bradleyayers left | 11:42 |
| ← Thumper_ left | 11:45 |
| ← bronson left | 11:45 |
| → bronson joined | 11:45 |
| ← Puck` left | 11:47 |
| → newbiz joined | 11:47 |
| ← picasso left | 11:51 |
| → zorzar joined | 11:51 |
| → alin-gym joined | 11:52 |
| ← zorzar_ left | 11:54 |
| → drl joined | 11:54 |
| → marcob joined | 11:54 |
| → JohnFord joined | 11:55 |
| → Thumper_ joined | 11:58 |
| → JoeCoolDesk joined | 11:59 |
| ← JoeCoolDesk left | 11:59 |
| → xanderbeedle joined | 11:59 |
| ← maleknet left | 12:00 |
| ← banisterfiend left | 12:00 |
| → banisterfiend joined | 12:00 |
| → maleknet joined | 12:01 |
| ← bronson left | 12:03 |
| → bitkiller joined | 12:03 |
| → bronson joined | 12:03 |
| ← sudonotplease left | 12:03 |
| ← drl left | 12:03 |
| → sudonotplease joined | 12:04 |
| → stamina joined | 12:05 |
| → spaceonline joined | 12:05 |
| → bradleyayers joined | 12:06 |
| ← bradleyayers left | 12:06 |
| ← ch077179 left | 12:06 |
| → hyperair joined | 12:07 |
| → lucs joined | 12:07 |
| ← bronson left | 12:07 |
| → bronson joined | 12:08 |
| → orafu joined | 12:09 |
| → tty2 joined | 12:10 |
| → bentob0x joined | 12:12 |
| → vitor-br joined | 12:12 |
| ← priidu left | 12:13 |
| ← sudonotplease left | 12:13 |
| ← tty1 left | 12:13 |
| → sudonotplease joined | 12:13 |
| ← mishok13 left | 12:14 |
| ← rns left | 12:15 |
| → priidu joined | 12:15 |
| → ExtraSpice joined | 12:15 |
| → mishok13 joined | 12:16 |
| ← bauruine left | 12:16 |
| ← SirFunk_ left | 12:17 |
| → drl joined | 12:17 |
| ← tizzo left | 12:18 |
| ← davidc_ left | 12:20 |
| → davidc_ joined | 12:20 |
| ← tyteen4a03 left | 12:21 |
| ← jony left | 12:21 |
| ← banisterfiend left | 12:22 |
| → banisterfiend joined | 12:22 |
| → telemachus joined | 12:22 |
| ← drl left | 12:22 |
| → ch077179 joined | 12:23 |
| → tyteen4a03 joined | 12:27 |
| ← mikemeyer left | 12:27 |
| → Yuuhi joined | 12:30 |
| ← EricInBNE left | 12:30 |
| → JohnFlux joined | 12:30 |
| → ruied joined | 12:31 |
| ← kpreid left | 12:31 |
|
JohnFlux
| git commit --interactive . | 12:31 |
|
| fatal: Paths with --interactive does not make sense. | 12:31 |
|
| It makes perfect sense ! | 12:31 |
|
| why can't I specify some paths with interactive? | 12:31 |
| ← tyteen4a03 left | 12:33 |
| → rns joined | 12:34 |
| → ramusara joined | 12:34 |
| → dpino joined | 12:37 |
| → felixge joined | 12:38 |
| ← felixge left | 12:38 |
| → felixge joined | 12:38 |
| ← JohnFord left | 12:38 |
| → MattDiPasquale joined | 12:38 |
| → kpreid joined | 12:38 |
| → tyteen4a03 joined | 12:39 |
| → picasso joined | 12:40 |
| matjas_ → matjas | 12:40 |
| → magnet joined | 12:42 |
| → arialdo joined | 12:42 |
|
arialdo
| When I have a branch and a tag with the same name (ambiguousname), I can checkout the tag with git checkout refs/tags/ambiguousname. Is it the right way? Why does git checkout refs/heads/ambiguousname take me to a detached state? | 12:44 |
|
kpreid
| detached = not on a branch | 12:44 |
|
arialdo
| kpreid: yes. That's my doubt. My question is: how can I absolutely refer to a branch and checkout it, using something like I use with tags, in git checkout refs/tags/ambiguousname? | 12:45 |
| ← magnet left | 12:46 |
|
arialdo
| kpreid: I thought that git checkout refs/heads/somebranch was equivalent to git checkout somebranch. But the first takes to detached, the second one to the right branch. I'm a bit confused | 12:47 |
|
kpreid
| hm, I see | 12:47 |
| → radarek joined | 12:48 |
|
kpreid
| Well, the manual contradicts the behavior you're seeing; it claims that you get the branch if there is a branch, else detached. | 12:48 |
|
| (but that may be bad writing...) | 12:48 |
|
arialdo
| kpreid: I know that git checkout ambiguousname takes me to the branch, and not to the tag with the same name, but it prints out a warning. Then, I suppose there's a clearer way to impose the checkout of a branch. | 12:48 |
| → lundtor joined | 12:49 |
|
arialdo
| kpreid: see what I mean? https://gist.github.com/805807 | 12:51 |
| ← shentino left | 12:51 |
|
arialdo
| kpreid: git checkout ambiguous prints a warning, but checkout a branch | 12:52 |
| ← _Vi left | 12:52 |
|
arialdo
| kpreid: git checkout refs/heads/ambiguous takes me to a detached state | 12:52 |
| → kukks joined | 12:52 |
| ← maleknet left | 12:52 |
|
arialdo
| kpreid: may be I'm missing something... I'm not that expert | 12:52 |
| → ded joined | 12:54 |
|
arialdo
| kpreid: git checkout master^0 also gets you a detached HEAD | 12:54 |
| → pmabie joined | 12:54 |
| ← lucs left | 12:54 |
|
fr0sty|mobile
| arialdo: git --version ? | 12:55 |
| → lucs joined | 12:55 |
| ← tyteen4a03 left | 12:55 |
|
ded
| I want to do something like 'git archive HEAD:dir/0002* > snapshot.tar' i.e. restrict the files going into the archive according to a pattern/glob. How? | 12:55 |
| → mahata joined | 12:56 |
|
bremner
| ded: man git-archive | 12:57 |
|
jast
| ded: the 'git-archive' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-archive.html [automatic message] | 12:57 |
| → roger_padactor joined | 12:57 |
| → wsgndh joined | 12:57 |
| ← krfs left | 12:58 |
|
bremner
| ded: is particular, check the synopsis | 12:58 |
|
| s/is/in/ | 12:58 |
|
ded
| bremner, jast: what makes you think I would ask here without looking at the manpage first? | 12:58 |
|
bremner
| because the answer is on line 4 of the man page? | 12:58 |
|
jast
| ded: what makes you think that the "[automatic message]" at the end of what I said indicates that I was speaking to you myself? | 12:59 |
|
arialdo
| fr0sty|mobile: 1.7.1 | 12:59 |
|
jast
| anyway. basically, git archive HEAD:dir '0002*' | 12:59 |
|
bremner
| err, no : | 12:59 |
|
ded
| jast, thankyou | 12:59 |
|
jast
| (does it support globbing there?) | 12:59 |
| → d0m joined | 13:00 |
| → tyteen4a03 joined | 13:00 |
|
bremner
| oh, I think just git archive HEAD dir/002* ? | 13:00 |
|
arialdo
| fr0sty|mobile: Do you have an idea which can help me? | 13:00 |
|
jast
| depends on what you want the base path of the archive to be, I suppose | 13:00 |
|
arialdo
| fr0sty|mobile: In the meanwhile, I'm reading http://sitaramc.github.com/concepts/detached-head.html | 13:00 |
| ← verdon left | 13:01 |
|
jast
| I would assume (haven't tested it) that HEAD:dir 0002* creates a tarball that contains 0002*/ directly, whereas HEAD dir/0002* gives you entries like dir/0002*/ | 13:01 |
|
xanderbeedle
| Is there a bash method that returns true / false depending on whether the current dir is a git folder or not? | 13:03 |
|
fr0sty|mobile
| arialdo: i think you are stuck with the 'ambiguous' warning if you want non-detached state. | 13:03 |
|
ded
| jast, bremner: I'm in a bare repo in case that's relevant | 13:03 |
| → m_3 joined | 13:04 |
| ← sudonotplease left | 13:04 |
|
fr0sty|mobile
| xanserbeedle: git rev-parse might help you. | 13:04 |
|
jast
| xanderbeedle: git rev-parse --is-inside-* | 13:04 |
|
arialdo
| fr0sty|mobile: Ok. It's ok for me. I just wanted to know if there's a better way. If it's the right way, I'll adopt it. Thank you! | 13:04 |
| → d0k joined | 13:04 |
|
xanderbeedle
| jast: that returns a fatal error when not inside git folder | 13:05 |
|
| jast: nevermind, i'll catch the error or something instead | 13:05 |
| → sudonotplease joined | 13:05 |
|
jast
| xanderbeedle: 2>/dev/null :) | 13:05 |
| ← nixness left | 13:06 |
|
xanderbeedle
| jast: no idea how to use dev null (bash newbie) | 13:06 |
|
| I'll work it out, thanks! | 13:07 |
|
ben_alman
| how can i get a diff of the current folder state, including un-added files, against the latest commit? | 13:07 |
|
jast
| xanderbeedle: just append that to the command to suppress the error output | 13:07 |
|
cbreak_work
| ben_alman: git diff does not care about untracked files | 13:08 |
|
ded
| bremner: 'git archive HEAD dir/002*': I'm in a bare repo so that glob matches nothing. | 13:08 |
|
ben_alman
| cbreak_work: can it? | 13:08 |
|
cbreak_work
| no | 13:08 |
|
jast
| ded: the idea is that git matches the glob rather than the shell | 13:08 |
|
cbreak_work
| you can do git diff HEAD . | 13:08 |
| → vaishali joined | 13:08 |
|
jast
| ded: if you shell complains, quote the argument | 13:08 |
|
cbreak_work
| but that will compare only tracked files | 13:08 |
|
jast
| ded: if it still doesn't work, git probably doesn't interpret globs in that command | 13:08 |
|
cbreak_work
| if you want untracked, just add them :) | 13:08 |
|
| git archive wants a treeish | 13:09 |
|
| not a shell glob | 13:09 |
| ← pmabie left | 13:09 |
|
cbreak_work
| hmm... but if the shell evaluates those, it should work | 13:10 |
| ← ruied left | 13:10 |
|
ded
| cbreak_work, right but I'm in a bare repo so no checked out dirs | 13:10 |
|
jast
| cbreak_work: it wants a treeish PLUS paths | 13:10 |
|
| (paths are optional) | 13:10 |
|
cbreak_work
| indeed | 13:10 |
|
jast
| the idea was that maybe the paths use globs | 13:10 |
|
xanderbeedle
| jast: but i want a response if the command succeeds | 13:11 |
|
jast
| I haven't checked | 13:11 |
|
xanderbeedle
| only trying to avoid the error | 13:11 |
| ← arialdo left | 13:11 |
| ← trasz left | 13:11 |
|
jast
| xanderbeedle: that 2>/dev/null only suppresses the error message, not the actual output on success | 13:11 |
|
xanderbeedle
| oh, i see | 13:11 |
|
jast
| look up stdout and stderr to see why | 13:11 |
|
| I think even Wikipedia explains them :) | 13:11 |
| → lanthan_afh joined | 13:13 |
|
ded
| jast, cbreak_work: I'm still stuck: it seems (a) we don't know how to create a treeish pointing at a set of files matching a glob, and (b) I can't use a globbed path because I'm in a bare repo. Any advance on that? | 13:13 |
| → sivy joined | 13:14 |
|
ded
| bremner: where on line 4? | 13:14 |
| ← hyperair left | 13:15 |
|
cbreak_work
| ded: a treeish is a tree | 13:15 |
|
| no glob support | 13:15 |
|
| you can just mention all the paths you want in | 13:15 |
|
| like, manual shell glob evaluation | 13:15 |
| → LouisJB joined | 13:16 |
| → agile joined | 13:16 |
|
ded
| cbreak_work: right, thanks. I'll try that approach. | 13:17 |
| → _pingu joined | 13:18 |
|
_pingu
| How can I push a new branch to a bare repo? | 13:18 |
|
| tried git bush origin test, but got: error: failed to push some refs to ... | 13:19 |
|
| s/bush/push | 13:19 |
| → jaql joined | 13:20 |
| ← normanrichards left | 13:20 |
| ← miloshadzic left | 13:20 |
| → blahdeblah joined | 13:20 |
| → Mystique joined | 13:20 |
| → nixness joined | 13:20 |
| → envi_ joined | 13:21 |
| ← envi left | 13:21 |
|
jast
| _pingu: try git push origin test:test | 13:21 |
|
Mystique
| hey all, is there a totaly newbie guide to git somewhere? I have something that is now in git format that I am trying to update; and I'm more than a little lost.. | 13:21 |
|
jast
| Mystique: man gittutorial @ | 13:22 |
|
| Mystique: the 'gittutorial' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html [automatic message] | 13:22 |
|
| assuming you haven't found that yet :) | 13:22 |
|
| it covers several different workflows | 13:22 |
|
Mystique
| I have not, thank you.. | 13:22 |
|
jast
| look at "using git for collaboration" | 13:22 |
|
Mystique
| so, trying to figure out what I did wrong.. | 13:23 |
|
blahdeblah
| Hi. I'm trying to create a local branch which tracks a remote branch. When i run 'git checkout --track origin/next', i get 'fatal: git checkout: updating paths is incompatible with switching branches.' What's up? Does my local repo not know about all the branches on origin? | 13:23 |
| ← tyteen4a03 left | 13:24 |
|
Mystique
| I'm running 5.1.1 ; did git status saw 5.1.2 and 5.2 | 13:24 |
|
blahdeblah
| Mystique: I've been using http://progit.org/book/ - seems pretty good | 13:24 |
| ← squi left | 13:24 |
|
Mystique
| did git checkout 5.1.2 and tried to do a git pull | 13:24 |
| ← nixness left | 13:24 |
|
Mystique
| and git update.. | 13:24 |
|
| neither of which did what I thought it would do.. | 13:25 |
| → jfkw joined | 13:25 |
| ← MattDiPasquale left | 13:25 |
|
RandomSort
| A workflow/git question, I'm trying to start using git on the CMS my work is maintaining/developing | 13:25 |
|
| There are a central solution that gets customized and developed, I'm interested in begin able to develop custom modules and merging them back in the master branch as well as using different templates for different solutions | 13:26 |
|
_pingu
| jast: the feedback looks fine, but the I cannot see the new branch after a new git clone. | 13:26 |
| ← lucs left | 13:26 |
| ← koo5 left | 13:26 |
| → dc5ala joined | 13:26 |
|
RandomSort
| that is have some files that will be merged back in the master branch while others are preserved from the master branch, is this possible? | 13:27 |
|
jast
| _pingu: git clone creates only one local branch, but it still clones everything hidden in the background; you can see all cloned remote branches using: git branch -r | 13:27 |
|
| RandomSort: merges are all-or-nothing. if, in your side branch, you only change the files that will be merged back eventually, that will work. if you change other files, too, a simple merge won't cut it anymore. | 13:28 |
| → tyteen4a03 joined | 13:28 |
|
jast
| Mystique: you probably checked out a tag there. tags are not meant to be worked on directly; consider working off of a branch instead. use 'git branch -r' to see a list of existing branches, then tell me which git version you're using so I can give you the simplest command to create a new branch off of one of those branches. :) | 13:29 |
|
RandomSort
| jast would it be possible to have a folder ignored? | 13:30 |
|
| then I could just have a folder for the "site specific" files | 13:30 |
|
_pingu
| jast: ok, thanks. Is there an option in git clone, that I can use git branch to show all branches like ever? | 13:30 |
|
jast
| RandomSort: no. generally, site-specific files should not be in the repository in the first place. | 13:30 |
|
| _pingu: you mean so that git clone automatically creates local branches from all remote ones? | 13:30 |
|
_pingu
| jast: yes | 13:31 |
| → Mannequin joined | 13:31 |
|
RandomSort
| okay, thanks jast, I'm back to the drawing board then :) | 13:31 |
| ← blahdeblah left | 13:31 |
|
jast
| _pingu: I'm afraid not... but you could use this command to create all of them at the same time after the clone: git push . refs/remotes/origin/*:refs/heads/* | 13:31 |
|
| it's a bit of an ugly hack, though :) | 13:31 |
|
| RandomSort: however, you could simply never commit changes in that directory. requires a bit of discipline, though. | 13:32 |
|
_pingu
| jast: it's ok, I have to learn... . thanks | 13:32 |
| ← sudonotplease left | 13:32 |
|
RandomSort
| jast, both discipline and refraining from using commit -a which I'm not confident will be a success :P | 13:32 |
| ← tyteen4a03 left | 13:32 |
| → tizzo joined | 13:33 |
|
Mystique
| jast: http://slexy.org/view/s2TIaALLF8 | 13:33 |
|
jast
| RandomSort: you could also create a hook that automatically strips out changes in particular files from all new commits as they are made | 13:33 |
|
| Mystique: ah. what version of git are you using? | 13:33 |
|
RandomSort
| jast, that seems interesting, got a link where I can enknowledge me on that topic? | 13:33 |
|
Mystique
| 1.7.2.2 (freebsd ports from whenever ago..) | 13:33 |
|
jast
| Mystique: ah, right. seems like everything should have been okay then. so, what did you expect git pull to do? | 13:34 |
|
Mystique
| well I was on 5.1.1 (which I got using git clone path/to/file.git) and then I was trying to 'update my branch to 5.1.2' and then pull the local branch up to the 5.1.2 | 13:35 |
| ← Pewpewarrows left | 13:35 |
|
jast
| RandomSort: basically, create an executable shell script in .git/hooks/pre-commit that executes something like "git reset -- <list of paths>" to automatically unstage all changes in those paths prior to committing. the hooks are documented at http://git.or.cz/man/githooks | 13:35 |
| → ldh joined | 13:36 |
|
jast
| Mystique: git checkout switched your working tree to a different branch, so "git pull" didn't really do anything because that branch was completely up-to-date :) | 13:36 |
|
RandomSort
| thanks very much jast | 13:36 |
|
Mystique
| hmm, ok :/ so how do accomplish what I was trying to do? how do I update my current branch then.. | 13:36 |
|
_pingu
| git fetch origin; git status says: Your branch is behind 'origin/hello' by 1 commit, and can be fast-forwarded. how do I resolve that? | 13:37 |
| → tyteen4a03 joined | 13:37 |
|
jast
| Mystique: so, you were on 5.1.1, right? did you make and commit any changes? | 13:37 |
|
| _pingu: git pull | 13:37 |
|
Mystique
| jast: it's readonly to me | 13:37 |
|
jast
| _pingu: or git merge origin/branchname, since you've already fetched | 13:37 |
|
| Mystique: uh, what? your local copy is read-only? | 13:37 |
|
Mystique
| my remote copy, I'm not allowed to push into only allowed to pull from.. | 13:38 |
|
_pingu
| ok | 13:38 |
|
jast
| Mystique: yes, but you can commit locally, can you not? | 13:38 |
|
Mystique
| I can commit locally yes, | 13:38 |
|
jast
| which is what I was asking about | 13:38 |
|
Mystique
| but I'm not doing that.. | 13:38 |
|
jast
| so have you made any changes to 5.1.1 yet? | 13:38 |
|
Mystique
| I'm a 'user' of this code branch | 13:38 |
| ← metoikos left | 13:38 |
| ← cjs left | 13:39 |
| → shentino joined | 13:40 |
| ← shentino left | 13:40 |
| → shentino joined | 13:40 |
| ← d0m left | 13:40 |
| → rp2 joined | 13:41 |
| ← tyteen4a03 left | 13:41 |
| ← _pingu left | 13:42 |
| ← petrux left | 13:42 |
| → nothingHappens_ joined | 13:42 |
| → angelsl joined | 13:43 |
|
rp2
| git newbie question: I have made a local git repository clone, now how do I extract the code base with a particular tag? | 13:44 |
|
avar
| git checkout that-tag | 13:44 |
| → koo5 joined | 13:44 |
|
rp2
| where will git put it? | 13:45 |
|
| hmm | 13:45 |
| → Dave^| joined | 13:45 |
|
avar
| everywhere | 13:45 |
| → tyteen4a03 joined | 13:45 |
|
fr0sty
| in your working copy. | 13:45 |
| ← ben_alman left | 13:45 |
|
rp2
| but the working copy already has the latest codebase | 13:45 |
|
| i don't want to replace that | 13:46 |
| ← tyteen4a03 left | 13:46 |
| → tyteen4a03_ joined | 13:46 |
|
fr0sty
| what _do_ you want to happen, then? | 13:46 |
| ← bronson left | 13:47 |
| ← Mystique left | 13:47 |
| → bronson joined | 13:47 |
| ← spaceonline left | 13:48 |
| → sudonotplease joined | 13:48 |
|
rp2
| I don't know, because I'm still learning how git works | 13:48 |
| → normanrichards joined | 13:48 |
|
fr0sty
| rp2: if you checkout the tag, you can checkout the 'latest' again | 13:49 |
|
| you can switch between whatever versions you want. | 13:49 |
| ← Textmode left | 13:49 |
|
rp2
| i guess i need to learn the ifference between clone and checkout | 13:49 |
|
| checkout appears to be some sort of switch, it updates the files to a particular branch or tag | 13:50 |
| ← tyteen4a03_ left | 13:51 |
|
rp2
| hm | 13:51 |
|
fr0sty
| you only clone once. That gets you every commit, tag and branch into your local repository. | 13:51 |
|
rp2
| i guess i can just cp -r the clone i made and then run git checkout on the copy | 13:51 |
|
fr0sty
| that works. | 13:52 |
|
rp2
| that way i have one copy with the latest codebase and one with the codebase with the given tag | 13:52 |
|
| i wanted to avoid pulling everything over the network twice | 13:52 |
| → tizbac joined | 13:53 |
|
rp2
| ok thanks i'll try that | 13:53 |
| ← tvw left | 13:54 |
| ← harshu_ left | 13:54 |
| ← harshu___ left | 13:54 |
| → pmabie joined | 13:54 |
|
pmabie
| Hello to all | 13:55 |
| → rseifert joined | 13:55 |
| → tyteen4a03 joined | 13:57 |
| ← tizbac left | 13:57 |
|
pmabie
| Here's what I am try to do , I have a git repo on a mounted partition , I am user clone to copy it to my home . Know where I make a check to the clone I can't push it back to the master | 13:58 |
|
| trying | 13:58 |
|
| thanks anyway | 13:59 |
| ← pmabie left | 13:59 |
| → coderdad joined | 14:00 |
| → chittoor joined | 14:00 |
| → tizbac joined | 14:01 |
| ← chittoor left | 14:01 |
| → petrux joined | 14:01 |
| → ben_alman joined | 14:02 |
| ← tyteen4a03 left | 14:02 |
| ← OOPMan left | 14:02 |
| ← avinashhm left | 14:04 |
| → t2gs joined | 14:04 |
| ← Yuuhi left | 14:04 |
| ← eean left | 14:05 |
|
t2gs
| how can I go back 10 commits on my master branch to check if my code was working and then come back to where I currently am? | 14:06 |
| → tyteen4a03 joined | 14:06 |
| ← tyteen4a03 left | 14:07 |
| → tyteen4a03 joined | 14:07 |
|
selckin
| git checkout <sha1>; make; git checkout master | 14:07 |
| ← tyteen4a03 left | 14:07 |
| → tyteen4a03 joined | 14:08 |
| → JohnFord joined | 14:08 |
| ← henrikbjorn left | 14:08 |
| ← teweWork left | 14:09 |
|
t2gs
| selckin so it's "like" checking out to a branch? | 14:09 |
| → jrmuizel joined | 14:10 |
| ← sudonotplease left | 14:11 |
| → sudonotplease joined | 14:11 |
| ← bronson left | 14:12 |
| → Pewpewarrows joined | 14:12 |
| → bronson joined | 14:12 |
|
selckin
| will put you on a detached head, so don't commit there etc | 14:12 |
|
| you can also create a real branch from the point if you want | 14:13 |
| → ruied joined | 14:13 |
|
t2gs
| selckin so I can checkout -b back in time and be a happy child? | 14:14 |
| ← kpreid left | 14:14 |
|
selckin
| sure | 14:14 |
|
t2gs
| another thing, I'm using gitk but it just sucks on UI, how do I get the sha1? :P | 14:14 |
|
selckin
| git log? | 14:14 |
|
t2gs
| thanks | 14:15 |
| → montylounge joined | 14:15 |
|
selckin
| sha1 is in the middle somewhere in gitk | 14:15 |
| opalka → opalka_away | 14:15 |
| dwmw2_gone → dwmw2_HKG | 14:15 |
| → rsewill joined | 14:15 |
|
t2gs
| selckin cool, log worked, thanks a lot | 14:16 |
| → ilogger2 joined | 14:27 |
| → _ollie joined | 14:28 |
| → MrSamuel_ joined | 14:31 |
|
MrSamuel_
| I have a sub-directory of files, some have been changed, some deleted, I want to reset to head | 14:31 |
| → DiGitalX joined | 14:31 |
|
MrSamuel_
| only this sub directory | 14:31 |
|
| how do I do it? | 14:31 |
| → charlietanksley joined | 14:32 |
|
t2gs
| you mean undo latest commit? | 14:32 |
|
MrSamuel_
| no | 14:32 |
|
| revert the chages | 14:32 |
|
Pieter
| git checkout -- path/to/dir | 14:32 |
|
t2gs
| or forget that mess you just did? | 14:32 |
|
MrSamuel_
| revert the changes | 14:32 |
|
| well actually it isn't a mess | 14:32 |
|
Pieter
| or, git checkout HEAD -- path/to/dir | 14:32 |
|
t2gs
| MrSamuel_ I was ABOUT to ask that same question o_o | 14:32 |
|
MrSamuel_
| the library I updated was broken | 14:32 |
| → avinashhm joined | 14:32 |
|
t2gs
| Pieter what do you mean pathtodir? | 14:33 |
|
Pieter
| t2gs: the name of the subdir you want to revert | 14:33 |
|
t2gs
| Pieter say I wanna revert it all | 14:33 |
| → ded``` joined | 14:33 |
|
t2gs
| git add -A; git checkout HEAD | 14:33 |
|
Pieter
| git reset --hard | 14:33 |
|
t2gs
| ? | 14:33 |
|
| oh I see | 14:34 |
|
| no commits changed by that, right? | 14:34 |
|
Pieter
| nope | 14:34 |
|
| just your working copy | 14:34 |
| → fenrig joined | 14:37 |
| → JohnFord joined | 14:38 |
| → tyteen4a03 joined | 14:38 |
|
fenrig
| If I want to set up a GIT server what guide and program do I best use (gitosis and gitolite don't seem to create a existing repo for some reason) | 14:38 |
|
| existing => new (sorry) | 14:39 |
| → bronson joined | 14:39 |
| → carli joined | 14:39 |
|
spb
| if you are sensible, you use one of those two | 14:39 |
|
fenrig
| Then I need a good guide cause I've got a lot of troubles setting it up :( (btw is it better to set up git using ssh or with http?) | 14:41 |
| ← tyteen4a03 left | 14:42 |
|
Pieter
| both are fine nowadays, but http might be a bit more work | 14:42 |
|
| if you want user accounts, you'll also need ssl etc | 14:42 |
|
fenrig
| Pieter: is there a good howto for setting git up using http and ssl? | 14:43 |
| → bronson_ joined | 14:43 |
|
Pieter
| no | 14:43 |
| ← bronson left | 14:43 |
| bronson_ → bronson | 14:43 |
| → tyteen4a03 joined | 14:43 |
| → sudonotplease joined | 14:44 |
|
Pieter
| well, you can take a look at http://anders.com/cms/384/git/https/RPC.failed.result.35 | 14:44 |
| ← carli left | 14:44 |
| ← tyteen4a03 left | 14:44 |
| → tyteen4a03 joined | 14:44 |
|
Pieter
| and also, man git-http-backend | 14:44 |
|
jast
| the 'git-http-backend' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html [automatic message] | 14:44 |
| ← ded``` left | 14:45 |
| → hyperair joined | 14:45 |
| → berto- joined | 14:47 |
| → panike joined | 14:47 |
| → drl joined | 14:48 |
| → t0rc joined | 14:48 |
| ← t0rc left | 14:48 |
| → t0rc joined | 14:48 |
| ← tyteen4a03 left | 14:48 |
| → dhruvasagar joined | 14:51 |
| → masonkramer joined | 14:52 |
| → tyteen4a03 joined | 14:52 |
| → mahata joined | 14:53 |
| → rudi_s joined | 14:54 |
| → spaceonline joined | 14:54 |
| ← drl left | 14:56 |
| ← tyteen4a03 left | 14:57 |
| → dpino joined | 14:57 |
| → d0m joined | 15:00 |
| ← d0m left | 15:00 |
| → tyteen4a03 joined | 15:01 |
| → RJD22 joined | 15:01 |
| → skoop joined | 15:02 |
|
RJD22
| does someone know if there is a way to automate the login procedure for a git-smart-http request in bash? | 15:02 |
| → Swimming_bird joined | 15:05 |
| ← tyteen4a03 left | 15:06 |
| ← masonkramer left | 15:07 |
| → bartek joined | 15:07 |
| → PerlJam joined | 15:07 |
| → drl joined | 15:09 |
|
bartek
| Hi. This might be going too far but can I use git cherry-pick in such a way that I pick out a single commit, but additionally pick out select files from that commit? Or .. perhaps split that commit on the branch into two commits (possible?) and then cherry pick the right one | 15:09 |
| → berserker joined | 15:09 |
| → tyteen4a03 joined | 15:09 |
| → tvw joined | 15:10 |
| → xiong joined | 15:11 |
| → pdkl joined | 15:11 |
| → gozoner joined | 15:11 |
| ChanServ set mode: +v | 15:12 |
|
_rane
| cherry pick it without committing | 15:12 |
|
| you'll have the diff then, and you can do whatever you please with it | 15:12 |
|
| i bet it's git cherry-pick -n | 15:12 |
|
| or --no-commit | 15:12 |
|
cbreak_work
| or... both! | 15:12 |
|
Pieter
| or cherry-pick it, then ammend the commit to whatever you want it to be | 15:12 |
| ← avinashhm left | 15:13 |
|
patrikf
| cbreak_work: actually, either ;-) | 15:13 |
| ← _ollie left | 15:15 |
| → jrmuizel joined | 15:15 |
| ← fenrig left | 15:17 |
| ← sudonotplease left | 15:17 |
| ← berserker left | 15:17 |
| → sudonotplease joined | 15:18 |
| → Helios joined | 15:19 |
| ← pdkl left | 15:20 |
| → bauruine joined | 15:21 |
| ← dpino left | 15:22 |
| → priidu joined | 15:23 |
| ← gozoner left | 15:23 |
| → gozoner joined | 15:23 |
| → Dave^| joined | 15:25 |
| ← drl left | 15:25 |
| → juangiordana joined | 15:27 |
| → MattDiPasquale joined | 15:27 |
| → jankoprowski joined | 15:27 |
| → Error404NotFound joined | 15:29 |
| → nona joined | 15:31 |
| → avinashhm joined | 15:31 |
| ← jrmuizel left | 15:34 |
| → normanrichards joined | 15:35 |
| ← tyteen4a03 left | 15:35 |
| → stringoO joined | 15:36 |
| → timholum1 joined | 15:37 |
| → dfr|mac joined | 15:37 |
| → E-shark joined | 15:37 |
| → drl joined | 15:38 |
| → alvaro_o joined | 15:38 |
| → tyteen4a03 joined | 15:39 |
| → slowneutron joined | 15:39 |
| → jxpx777 joined | 15:41 |
| ← MrSamuel_ left | 15:42 |
| → Sgeo joined | 15:45 |
|
rmk
| Is there a way to pull one file and all its revision history from one repo to another? | 15:46 |
|
| Assuming the file does not exist in the destination repo | 15:46 |
| → fowlduck joined | 15:47 |
| ← sudonotplease left | 15:47 |
| → bhosie joined | 15:47 |
| → alberto56 joined | 15:50 |
| ← stringoO left | 15:50 |
| → sebersole joined | 15:50 |
| ← sebersole left | 15:50 |
|
charon
| rmk: yes and no. you cannot just merge it in the git-pull sense. you can however use filter-branch to create a reduced history that only cares about this file, and then merge that history. | 15:51 |
| → beatak joined | 15:51 |
| → sebersole joined | 15:51 |
|
rmk
| I see -- ok, thanks | 15:51 |
|
charon
| rmk: the fastest way to do the filter-branch is to use an index filter like: git ls-files -s filename | GIT_INDEX_FILE=tmpindex git update-index --stdin --add && mv -f tmpindex $GIT_INDEX_FILE | 15:53 |
|
| or some such | 15:53 |
|
| (i.e., i haven't tested it) | 15:53 |
| → ceej joined | 15:55 |
| → pgib joined | 15:56 |
| → jnoos4 joined | 15:57 |
| → rcu joined | 15:58 |
| → d0m joined | 16:00 |
| → kpreid joined | 16:00 |
| → Tac joined | 16:00 |
| ← avinashhm left | 16:01 |
| ← slowneutron left | 16:02 |
| → ivan-kanis joined | 16:02 |
|
ivan-kanis
| say i have a local branch foo that tracks a remote a remote branch foo | 16:03 |
|
| when i do a 'git pull origin foo' it doesn't do what I expect | 16:03 |
| → trobrock joined | 16:03 |
| → sonnym joined | 16:03 |
|
ivan-kanis
| git status tells me I am ahead of origin/foo by one commit | 16:04 |
| → alex__c2022 joined | 16:05 |
|
PerlJam
| ivan-kanis: you've got a commit in your local repo that you haven't pushed upstream yet. | 16:05 |
| → dcamp joined | 16:05 |
| → ROBOTARMY joined | 16:05 |
| → Linc joined | 16:05 |
| → flazz joined | 16:07 |
| → iAsterisk joined | 16:08 |
| → alester joined | 16:08 |
| → bkosborne joined | 16:09 |
|
ivan-kanis
| i haven't made any commmit, i am trying to synchronise with the server | 16:09 |
| → cvk_cvk joined | 16:09 |
| → jfkw joined | 16:09 |
| → mikesusz joined | 16:10 |
| ← trobrock left | 16:10 |
| ← normanrichards left | 16:11 |
| ChanServ set mode: +v | 16:11 |
| ← drl left | 16:12 |
| ← dfr|mac left | 16:13 |
| → SirFunk_ joined | 16:18 |
| ChanServ set mode: +v | 16:18 |
| → jrmuizel joined | 16:19 |
| → normanrichards joined | 16:22 |
| ← jnoos4 left | 16:22 |
| → setmeaway1 joined | 16:23 |
| ← setmeaway1 left | 16:23 |
| → setmeaway joined | 16:23 |
| → tjholowaychuk joined | 16:23 |
| → }dec3pti0n{ joined | 16:23 |
|
ivan-kanis
| git pull outputs : * branch foo -> FETCH_HEAD | 16:24 |
|
}dec3pti0n{
| hi I got a small svv repo with some tags and I would like to copy that to github (including the log history) I've been reading about git-svn and git2svn , which should be better ? | 16:25 |
| → resmo joined | 16:25 |
| → drl joined | 16:25 |
| → hagebake joined | 16:26 |
| ← cvk_cvk left | 16:26 |
| → sagsousuke joined | 16:26 |
| ← rcu left | 16:27 |
| ← bauruine left | 16:28 |
| → teweWork joined | 16:29 |
| ← }dec3pti0n{ left | 16:29 |
| RJD22 → RJD22|away | 16:30 |
| → dr_lepper joined | 16:32 |
| → rcu joined | 16:33 |
|
ivan-kanis
| i have narrowed down the problem to a branch that's never been pushed | 16:33 |
| ← bkosborne left | 16:34 |
|
ivan-kanis
| for some reason the sha1 of remotes/origin/foo is not updated | 16:34 |
| → bentob0x joined | 16:34 |
| → jfelchner joined | 16:35 |
| ← panike left | 16:35 |
| → ISF joined | 16:35 |
| → hagabaka joined | 16:35 |
| ← hagabaka left | 16:35 |
| → hagabaka joined | 16:35 |
| ← hagebake left | 16:36 |
| → Guest78064 joined | 16:37 |
| → tototot joined | 16:38 |
| → bcardarella joined | 16:39 |
|
ivan-kanis
| it easy to reproduce | 16:39 |
|
| create repo1 add a branch, commit in the branch | 16:40 |
|
| do a clone of repo1 to repo2 | 16:40 |
|
| in clone1 check in a file and commit | 16:40 |
| ← bcardarella left | 16:40 |
| ← Guest78064 left | 16:41 |
|
ivan-kanis
| now go to clone2, do a "git pull origin branch" then git status | 16:41 |
| → RobertBerger joined | 16:42 |
|
ivan-kanis
| it show one commit ahead, git branch -rv shows that origin/foo is one commit too early | 16:42 |
| ← gozoner left | 16:42 |
|
ivan-kanis
| doing a git push magically fixes things... Have I found a bug? | 16:42 |
| → gozoner joined | 16:43 |
| → hagebake joined | 16:44 |
| ← hagebake left | 16:44 |
| → hagebake joined | 16:44 |
| ← sebersole left | 16:44 |
| ← hagabaka left | 16:44 |
| → ruied joined | 16:45 |
| ← drl left | 16:46 |
| → hobodave joined | 16:46 |
| → NickyP joined | 16:46 |
|
fr0sty
| ivan-kanis: no. 'git pull' doesn't update refs/remotes/origin/<branch> | 16:47 |
| → banisterfiend joined | 16:47 |
| → dr_win joined | 16:47 |
| → necromancer joined | 16:48 |
|
mikesusz
| does anyone pre-process files before commit? i'm working on a way to run compass compile on my sass dir before commit, but running then re-adding the files in git-precommit doesn't seem to work | 16:48 |
|
| i end up pushing the (version of the file before the pre-commit script ran) | 16:49 |
|
fr0sty
| doing 'git fetch origin', 'git remote update' or similar would have fixed it too. | 16:49 |
| → justin-george joined | 16:49 |
|
fr0sty
| mikesusz: re-adding? | 16:49 |
| → dreiss joined | 16:49 |
| ← MattDiPasquale left | 16:49 |
|
mikesusz
| fr0sty - i thought since i was changing the contents of the file in pre-commit i had to git add <file> again (in that script) bad assumption? | 16:50 |
| ← ROBOTARMY left | 16:50 |
| → Thell joined | 16:51 |
| → Schmallon joined | 16:51 |
| → sako joined | 16:51 |
| → sjohnson joined | 16:52 |
| → oriba joined | 16:52 |
|
fr0sty
| no, you would have to add the change. | 16:52 |
|
sjohnson
| Q: is there a way to find out the absolute base path of which repo you are in? | 16:52 |
|
fr0sty
| are you sure the git add is being called and succeeding? | 16:52 |
|
mikesusz
| fr0sty - this is what i'm trying to do https://gist.github.com/806129 | 16:52 |
|
fr0sty
| sjohnson: man git-rev-parse and look at --show-top-level | 16:52 |
|
jast
| sjohnson: the 'git-rev-parse' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-rev-parse.html [automatic message] | 16:52 |
|
sjohnson
| thanks | 16:52 |
| → MetaCosm joined | 16:52 |
|
fr0sty
| mikesusz: exec never returns to the shell. | 16:53 |
|
| don't do that. | 16:53 |
|
mikesusz
| ah! | 16:53 |
|
fr0sty
| drop the 'exec ' and just start that line with 'compass...' | 16:53 |
| → nadavoid joined | 16:54 |
|
mikesusz
| k, trying it out now. i may not need the wait then; i thought maybe the git add was firing out of sequence before the compass command returned | 16:54 |
|
sjohnson
| sweet | 16:54 |
| ← sjohnson left | 16:54 |
| → MattDiPasquale joined | 16:55 |
|
mikesusz
| fr0sty - most excellent. :) thank you! | 16:56 |
|
| wasn't sure if i was failing at shell scripting, git hooks, compass, or all of the above. | 16:56 |
| → tgunr joined | 16:58 |
| → tgunr_ joined | 16:58 |
| → MacGyverNL_ joined | 16:58 |
| ← MacGyverNL_ left | 16:58 |
| → drl joined | 16:59 |
| ← kpreid left | 16:59 |
| ← ruied left | 16:59 |
| ← jankoprowski left | 17:00 |
| ← SirFunk_ left | 17:00 |
| ← jfelchner left | 17:01 |
| ← teweWork left | 17:02 |
| ← tgunr left | 17:02 |
| ← DiGitalX left | 17:03 |
| → stringoO joined | 17:03 |
| → noahcampbell joined | 17:03 |
| ← dreiss left | 17:04 |
| → Andy19782 joined | 17:05 |
| ← Andy19782 left | 17:05 |
| → guardian joined | 17:06 |
| ← bronson left | 17:06 |
| → bronson joined | 17:06 |
| → amerine joined | 17:07 |
| → kipras_ joined | 17:07 |
| ← stringoO left | 17:08 |
| → mrconnerton joined | 17:09 |
| ← mrconnerton left | 17:09 |
| → excess^ joined | 17:09 |
| ← kipras_ left | 17:09 |
| → mrconnerton joined | 17:09 |
| → kipras joined | 17:10 |
|
mrconnerton
| crap | 17:11 |
|
| hi :-) | 17:11 |
|
| I'm having and issue with a git repo that has gotten fairly large | 17:11 |
| ← drl left | 17:11 |
|
mrconnerton
| when I run git gc I'm getting: Counting objects: 25368, done. | 17:11 |
|
| fatal: Out of memory, malloc failed9) | 17:11 |
|
| error: failed to run repack | 17:11 |
| ← bronson left | 17:11 |
| → radarek joined | 17:12 |
| → err_ok joined | 17:12 |
| ← mrconnerton left | 17:13 |
| → mrconnerton joined | 17:13 |
| ← radarek left | 17:13 |
|
mrconnerton
| hello | 17:13 |
|
| I'm not sure if I actually connected. People around in here? | 17:13 |
|
fr0sty
| patience... | 17:14 |
| ← MattDiPasquale left | 17:14 |
|
mrconnerton
| fr0sty, sorry my app rebooted just as I asked the question, I wasn't sure if it went though | 17:14 |
|
fr0sty
| also, check the header: Users:726 | 17:14 |
| → OOPMan joined | 17:14 |
|
mrconnerton
| fr0sty ya thanks. | 17:14 |
| → pheaver joined | 17:15 |
| ← pheaver left | 17:15 |
| → DiGitalX joined | 17:15 |
| → pheaver joined | 17:16 |
|
fr0sty
| mrconnerton: how much memory do you have? | 17:16 |
|
| how big is the repo's .git dir? | 17:17 |
|
mrconnerton
| 2gig on the dev server | 17:17 |
|
fr0sty
| what are you storing in it? | 17:17 |
|
mrconnerton
| .git - 2.6G | 17:18 |
|
fr0sty
| go on... | 17:18 |
| ← Linc left | 17:18 |
|
mrconnerton
| Fr0sty en entire drupal site. unfortunately the form devs put a bunch of files and sql dumps in there that didn't need to be | 17:19 |
| ← OOPMan left | 17:19 |
|
mrconnerton
| I have since added those directories to the .gitignore | 17:19 |
| → boombatower joined | 17:19 |
| → Cyd joined | 17:21 |
| ← rcu left | 17:21 |
|
mrconnerton
| however git gc, pull, etc still fail because of memory (and what I suspect is all that crap in the history) | 17:21 |
|
fr0sty
| I see. | 17:21 |
| → kenichi joined | 17:21 |
|
fr0sty
| btw, adding them to .gitignore doesn't stop the from being tracked or remove them from the history. | 17:22 |
|
mrconnerton
| fr0sty thats what I assumed, at least the history part | 17:22 |
| → rcu joined | 17:23 |
| ← necromancer left | 17:23 |
| → necromancer joined | 17:23 |
| → drl joined | 17:24 |
| → courtain joined | 17:24 |
| ← courtain left | 17:25 |
| ← justin-george left | 17:25 |
|
fr0sty
| mrconnerton: man git-filter-branch and get that crap out of the history. that will help. | 17:25 |
|
jast
| mrconnerton: the 'git-filter-branch' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html [automatic message] | 17:25 |
| ← sagsousuke left | 17:26 |
| → chrischambers_ joined | 17:26 |
|
fr0sty
| in the meantime, setting pack.windowMemory and pack.packSizeLimit (man git-config for details) might help your other problems. | 17:26 |
|
jast
| the 'git-config' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-config.html [automatic message] | 17:26 |
| chrischambers_ → chrischambers | 17:27 |
|
mrconnerton
| fr0sty got it. I will look into both of those | 17:28 |
| ← pgib left | 17:29 |
| → koo6 joined | 17:29 |
| → maattd joined | 17:29 |
| → MattDiPasquale joined | 17:29 |
| → tstclair joined | 17:30 |
| ← drl left | 17:30 |
| ← rcu left | 17:30 |
| → corni joined | 17:30 |
| → rcu joined | 17:31 |
| → numeromancer joined | 17:32 |
| ← Schmallon left | 17:32 |
| → pielgrzym joined | 17:32 |
|
pielgrzym
| could someone explain me main difference between remote tracking branch and remote branch checked out locally? | 17:33 |
|
mrconnerton
| fr0sty pack.windowMemory documentation is vague. What should I be doing here? increasing the value or lowering it. If I'm running out of memory I suspect i wan to increase it? | 17:33 |
| → GaVrA joined | 17:33 |
| → Linc joined | 17:33 |
| → Bruce_Wayne joined | 17:34 |
| → ChrisBuchholz joined | 17:36 |
| ← err_ok left | 17:36 |
| → spearce joined | 17:36 |
| → OOPMan joined | 17:37 |
| → cirwin joined | 17:37 |
|
ChrisBuchholz
| Hello. I am looking for a git book that covers all the basics as well as more advanced topics. I have used git for a year or so, but I dont feel that i "know it" - i just do what i know work. Which book are recommended? | 17:37 |
| → steph021_mac joined | 17:38 |
|
spearce
| ProGit (progit.org) is pretty good | 17:38 |
|
ChrisBuchholz
| spearce: i had that on my wishlist already - guess ill go with that one then | 17:41 |
| → ChUrP joined | 17:42 |
| → panike joined | 17:43 |
| → drl joined | 17:43 |
| → bauruine joined | 17:43 |
|
fr0sty
| mrconnerton: I think lower is better. | 17:43 |
|
rp2
| nice name | 17:44 |
| → keystr0k joined | 17:44 |
| → gnat42 joined | 17:45 |
|
mrconnerton
| fr0sty last question, what is an ideal pack size when your .git is > 2gb? | 17:45 |
| ← dcamp left | 17:45 |
|
gnat42
| suppose I have a project in git, and I'm refactoring a file into two files in two different directories | 17:45 |
|
| is there a way to keep the 'history' link between them? | 17:46 |
|
| should I even care? | 17:46 |
|
Nugget
| git tracks information, not files. | 17:46 |
|
gnat42
| is that a svn move type thing that doesn't really apply? | 17:46 |
|
| Nugget: ok - good to know, I don't personally care about tracking the 'history' but just wanted to make sure I wasn't doing it 'wrong' | 17:46 |
|
Nugget
| you're doing it right. :) | 17:47 |
|
gnat42
| perfect - thanks | 17:47 |
|
jast
| git never even stores information about renames. it's detected dynamically as needed. | 17:47 |
| → mrenouf|work joined | 17:48 |
|
fr0sty
| mrconnerton: beats me. 100M ? | 17:48 |
|
mrconnerton
| fr0sty sounds good to me | 17:48 |
| → VladDrac joined | 17:49 |
| → pedrobelo joined | 17:49 |
|
fr0sty
| gnat42: the only thing that fouls it up is deleting a file, making a bunch of commits and then re-adding the file under a different name. | 17:49 |
|
gnat42
| fr0sty thanks | 17:50 |
|
fr0sty
| as long as content is just being shuffled around git can follow it. | 17:50 |
| ← ChrisBuchholz left | 17:52 |
| → iband joined | 17:52 |
| → Titosemi joined | 17:53 |
| ← berto- left | 17:54 |
| → starcoder joined | 17:55 |
| ← rcu left | 17:58 |
| → rcu joined | 17:58 |
| → aah joined | 17:58 |
| ← drl left | 17:59 |
| ← keystr0k left | 18:01 |
| → ROBOTARMY joined | 18:02 |
|
Titosemi
| i've a remote repository which i want to change the path. would it just work in my local repo with all the branches if i run a git remote set-url? does git remote set-url also work with local paths? | 18:03 |
| ← ChUrP left | 18:03 |
| ← rcu left | 18:03 |
| → rcu joined | 18:04 |
| → torbenh3 joined | 18:05 |
| ← cirwin left | 18:06 |
| → smolyn joined | 18:07 |
| ← ivan-kanis left | 18:07 |
| ← steph021_mac left | 18:08 |
| ← rcu left | 18:09 |
| → steph021_mac joined | 18:09 |
| ← steph021_mac left | 18:09 |
| → steph021_mac joined | 18:09 |
| → rcu joined | 18:09 |
|
Titosemi
| ok, i already got it! | 18:11 |
| → drl joined | 18:11 |
| → LiamH joined | 18:13 |
| ← steph021_mac left | 18:14 |
| → CAP6478 joined | 18:14 |
| → psoo joined | 18:15 |
| → ruied joined | 18:15 |
| ← CAP6478 left | 18:15 |
| → CAP6478 joined | 18:16 |
| ← CAP6478 left | 18:16 |
| → ELREY joined | 18:16 |
|
ELREY
| anyone knows why it may happen that files modified by teammates show up in my working copy and even makes ME commit them instead of the actual file author? | 18:16 |
|
| makes no sense really | 18:17 |
| ← rcu left | 18:17 |
| → rcu joined | 18:17 |
| → Yuuhi joined | 18:17 |
| ← d0m left | 18:18 |
| → marc_kdab joined | 18:18 |
| → Schmallon joined | 18:20 |
|
bremner
| merges? | 18:20 |
| → coderdad joined | 18:20 |
| ← rcu left | 18:20 |
| ← ruied left | 18:21 |
| → rcu joined | 18:21 |
|
ELREY
| hows that | 18:23 |
| → gusnan joined | 18:23 |
| → ShooterMG joined | 18:25 |
| ← marc_kdab left | 18:25 |
|
yrlnry
| Suppose I've made a whole bunch of changes to my working tree, and my regression tests all pass. I would like to split up my changes into several commits, to make them easier to understand. | 18:26 |
|
| But I don't want to make any commits that break the regression tests. | 18:26 |
|
| What's a good workflow for arranging that? | 18:26 |
|
SethRobertson
| ELREY, are they editing in your working copy? If not, you are getting some kind of merge conflicts or the like | 18:26 |
|
| yrlnry: git add -p | 18:27 |
|
fr0sty
| yrlnry: git add -p; git stash; test; git stash pop; repeat | 18:27 |
|
yrlnry
| Oh, git stash! Duh. | 18:27 |
|
| Thanks, that was the part I was missing. | 18:27 |
|
fr0sty
| s/test/test && commit || retry/ | 18:27 |
| → berto- joined | 18:27 |
|
yrlnry
| And if the tests fail I can pop the stash and add some more stuff to the index. | 18:27 |
| → AlexP joined | 18:28 |
|
yrlnry
| No, wait, I'm missing something. | 18:28 |
|
| Won't the git-stash command stash everything, including the changes I added to the index? | 18:28 |
| → steph021_mac joined | 18:28 |
|
yrlnry
| Oh, I need a git-commit in between the add and the stash. | 18:28 |
|
| Then if I don't like it I can commit --amend. | 18:29 |
|
fr0sty
| yrlnry: or git stash --keep-index | 18:29 |
|
agile
| I've the weirdest thing going on in one of my repos, where several commands (rebasing, applying stashes etc) tell me my tree is dirty but I can't tell why.. git status shows it to be clean, even tried deleting the branch and checking it back out from origin and still insists the tree is dirty.. any ideas what might cause that? | 18:30 |
| → ChUrP joined | 18:30 |
| ← rcu left | 18:30 |
| ← steph021_mac left | 18:30 |
|
yrlnry
| Hey, the git-stash manual has a section that describes my exact situation. | 18:30 |
| → asmega joined | 18:30 |
|
yrlnry
| "Testing partial commits", | 18:30 |
|
| Thanks again. | 18:30 |
| → steph021_mac joined | 18:31 |
| ← steph021_mac left | 18:31 |
| → steph021_mac joined | 18:31 |
| ← drl left | 18:31 |
| → loincloth joined | 18:31 |
| → phaedrix joined | 18:32 |
| ← panike left | 18:32 |
| → rcu joined | 18:33 |
| → justin-george joined | 18:33 |
| ← phaedrix left | 18:33 |
| ← AlexP left | 18:33 |
| ← guardian left | 18:33 |
| → phaedrix joined | 18:33 |
| → AlexP joined | 18:34 |
| → _psychic_ joined | 18:36 |
| → koltroll joined | 18:36 |
| → tizbac joined | 18:37 |
| → LouisJB joined | 18:38 |
| ← jfkw left | 18:39 |
| → jfkw joined | 18:39 |
| → marc_kdab joined | 18:40 |
| → theoros joined | 18:40 |
| ← rcu left | 18:42 |
| → drl joined | 18:44 |
| → Bass10 joined | 18:44 |
| → TheFox21 joined | 18:44 |
| → Unknown[NF] joined | 18:45 |
| ← Bass10 left | 18:45 |
| ← AlexP left | 18:45 |
| → Bass10 joined | 18:46 |
| ← ChUrP left | 18:46 |
| ← JohnFord left | 18:46 |
| ← resmo left | 18:47 |
| → bronson joined | 18:48 |
| → TheMoonMaster joined | 18:48 |
| ← MattDiPasquale left | 18:49 |
| → siprbaum joined | 18:50 |
| ← drl left | 18:51 |
| → lovy joined | 18:51 |
| ← lovy left | 18:52 |
| ← DiGitalX left | 18:54 |
| → archis joined | 18:54 |
| ← archis left | 18:54 |
| → archis joined | 18:54 |
| Cyd → NotCyd | 18:55 |
| → larsmoil joined | 18:55 |
| NotCyd → Cyd | 18:55 |
| → chops13 joined | 18:55 |
| ← archis left | 18:55 |
| ← tvw left | 18:57 |
| → rcu joined | 18:58 |
| → emptyflask joined | 18:59 |
| → dkasak joined | 19:00 |
| → SirFunk_ joined | 19:00 |
| → cirwin joined | 19:00 |
| → Evious joined | 19:00 |
| ← ISF left | 19:01 |
| → bkosborne joined | 19:02 |
| → heptadecagram joined | 19:03 |
| ← justin-george left | 19:03 |
| → drl joined | 19:04 |
| → justin-george joined | 19:04 |
| → joel_falcou joined | 19:05 |
|
heptadecagram
| I have a very unusual use case, and could use some help. | 19:06 |
|
| I am using git parallel to a CVS repository that is large enough that tailor, cvsps, etc. all die if I try to convert them. So, I have the dirty/pristine model: | 19:07 |
|
| The pristine WD is where CVS and git interact, and the dirty WD is where I do any development work. | 19:07 |
|
| The CVS tree has just had two maintenance branches. I want to find a way for git to treat them as branches off of the trunk; I currently have them as separate checkouts (pristine WDs), that my dirty WD references as remotes. | 19:09 |
|
| But because they have no common history, git gets confused. | 19:09 |
| → MattDiPasquale joined | 19:09 |
| → elyos joined | 19:09 |
|
heptadecagram
| How do I make my git-history of the CVS branches treat those CVS branches as branches off the same trunk, rather than completely distinct repositories? | 19:10 |
| → johnw joined | 19:10 |
| → montylounge joined | 19:10 |
| → Zephyrus joined | 19:12 |
| → JohnFord joined | 19:14 |
| ← iband left | 19:15 |
| ← Bruce_Wayne left | 19:18 |
| → stephenplatz joined | 19:18 |
| ← MetaCosm left | 19:20 |
| → bmahe joined | 19:20 |
| → SimonP86 joined | 19:20 |
| ← marc_kdab left | 19:22 |
| ← flazz left | 19:23 |
| → khmarbaise joined | 19:23 |
| ← Evious left | 19:24 |
| → guardian joined | 19:24 |
| ← rcu left | 19:24 |
| → Evious joined | 19:25 |
| ← bkosborne left | 19:26 |
| → AlexP joined | 19:26 |
| ← AlexP left | 19:26 |
| → sergio_ joined | 19:26 |
| ← priidu left | 19:27 |
| → engla joined | 19:27 |
| ← engla left | 19:27 |
| → engla joined | 19:27 |
| → j416 joined | 19:29 |
| → priidu joined | 19:29 |
| → deek0146 joined | 19:29 |
| ← LouisJB left | 19:30 |
|
fr0sty
| https://git.wiki.kernel.org/index.php/GraftPoint | 19:30 |
| → djn joined | 19:30 |
| ← E-shark left | 19:31 |
| → rcu joined | 19:31 |
| → cbreak_work joined | 19:31 |
| ← rcu left | 19:32 |
| → rcu joined | 19:32 |
| ← oriba left | 19:32 |
|
SethRobertson
| Isn't git-replace the recommended replacement for grafts? | 19:33 |
| → trobrock joined | 19:34 |
| ChanServ set mode: +v | 19:35 |
| → radarek joined | 19:35 |
|
ArseneRe1
| Is there a way to export a repository uncompressed? git archive's formats are only tar and zip. | 19:36 |
| → iAsteris_ joined | 19:36 |
|
ayust
| git archive | tar -x ? | 19:36 |
|
| that's the typical way | 19:36 |
| → dcamp joined | 19:36 |
| → mitchellhislop joined | 19:36 |
| ← rcu left | 19:37 |
| → hunzinker joined | 19:37 |
|
ayust
| tar doesn't really do compression (hence why people gzip tar files) | 19:37 |
| → rcu joined | 19:37 |
|
ArseneRe1
| ayust: Oh that's right. | 19:37 |
| ← koltroll left | 19:37 |
|
ArseneRe1
| I had forgotten. Thanks! | 19:37 |
| ← dkasak left | 19:37 |
| → ruied joined | 19:38 |
| → dkasak joined | 19:38 |
| ← dkasak left | 19:38 |
| ← hunzinker left | 19:38 |
| ← iAsterisk left | 19:38 |
| ← djn left | 19:39 |
| ← bronson left | 19:39 |
|
j416
| ArseneRe1: you are aware that git archive exports files, and not the repository, right? :) | 19:39 |
| → sftp joined | 19:39 |
|
ArseneRe1
| j416: Yeah, sorry the misspeak. I just want the files. | 19:39 |
|
j416
| just checking. | 19:40 |
| ← drl left | 19:40 |
| → bronson joined | 19:41 |
| → _Vi joined | 19:42 |
| ← steph021_mac left | 19:42 |
| ← gnat42 left | 19:42 |
| ← SirFunk_ left | 19:43 |
| → Bruce_Wayne joined | 19:43 |
| ← sergio_ left | 19:44 |
| ← gusnan left | 19:45 |
| → mikepack joined | 19:45 |
| ← radarek left | 19:46 |
|
heptadecagram
| Ah, fr0sty, I didn't realize you were addressing my question. Thanks! | 19:47 |
| ← _Vi left | 19:47 |
| ← rcu left | 19:49 |
| → rcu joined | 19:49 |
| → khmarbaise_ joined | 19:49 |
| ← khmarbaise left | 19:49 |
| khmarbaise_ → khmarbaise | 19:49 |
| → marcob joined | 19:49 |
| → mutex joined | 19:49 |
| → AlexP joined | 19:49 |
| ← AlexP left | 19:49 |
| ← mrconnerton left | 19:50 |
| → dreiss joined | 19:50 |
| → drl joined | 19:53 |
| → AlexP joined | 19:54 |
| → necromancer` joined | 19:55 |
| ← necromancer left | 19:55 |
| → orafu joined | 19:56 |
| ← corni left | 19:58 |
| ← rcu left | 19:58 |
| ← deek0146 left | 19:58 |
| → rcu joined | 19:58 |
| ← coderdad left | 20:00 |
| ← ruied left | 20:02 |
| → bigpeted joined | 20:03 |
| ← orafu left | 20:03 |
| ← JohnFord left | 20:07 |
| → _ollie joined | 20:07 |
| ← berto- left | 20:07 |
| ← drl left | 20:07 |
| → brodo joined | 20:08 |
|
TrentonDAdams
| so, I was wondering. To get around the issue with git merging, and svn, couldn't git just do merges as "new" commits? i.e. for every branch you want to merge, it just goes in as a new commit, rather than it being tracked in SVN? | 20:08 |
|
| For example, if you're merging to branchX into branchY, change the commit message to branchY. | 20:09 |
|
| for the svn tracking purposes. | 20:09 |
| → rns joined | 20:09 |
| → coderdad joined | 20:09 |
| ← _ollie left | 20:09 |
| → huehnts joined | 20:10 |
| ← bartek left | 20:11 |
|
PerlJam
| TrentonDAdams: you're talking about "git merge --rebase" essentially. | 20:11 |
| → ki__ joined | 20:11 |
|
PerlJam
| TrentonDAdams: and always rebasing will help svn, yes. But it's not always the best way to work in git. | 20:12 |
| ← bigpeted left | 20:12 |
| → bartek joined | 20:12 |
| ← rcu left | 20:13 |
| ← Zephyrus left | 20:14 |
| → Buglouse joined | 20:15 |
| ← heptadecagram left | 20:15 |
| necromancer` → necromancer | 20:16 |
| → nadim_ joined | 20:17 |
| → LouisJB joined | 20:17 |
| → _ollie joined | 20:17 |
| → rcu joined | 20:18 |
| ← charlietanksley left | 20:18 |
| ← MattDiPasquale left | 20:18 |
| → Zephyrus joined | 20:18 |
| → ISF joined | 20:20 |
| → drl joined | 20:20 |
| ← Bruce_Wayne left | 20:21 |
| ← rcu left | 20:21 |
| → speakman joined | 20:21 |
| ← speakman left | 20:21 |
| ← stephenplatz left | 20:23 |
| → MetaCosm joined | 20:24 |
| ← TheFox21 left | 20:24 |
| → joshsmith joined | 20:25 |
| → rcu joined | 20:26 |
|
jefferai
| hello, I know that you can find the name of the alias for insteadOf by running e.g. git config url.git://git.example.com/.insteadOf | 20:26 |
|
| is there a way to do the opposite -- given the alias, find the URL? | 20:26 |
| ← alberto56 left | 20:26 |
| ← iAsteris_ left | 20:26 |
|
RaceCondition
| I have two main branches, master and devel, and then several local branches. how can I see which local branches are based on the master and which on the devel branch? | 20:27 |
| → giallu joined | 20:27 |
| → RobertMeta joined | 20:27 |
| ← RobertMeta left | 20:27 |
| → RobertMeta joined | 20:27 |
| ← rcu left | 20:28 |
| → iAsterisk joined | 20:28 |
| → welly joined | 20:29 |
| → koltroll joined | 20:29 |
| ← marcob left | 20:30 |
| → thiago_home joined | 20:30 |
| ← torbenh3 left | 20:30 |
|
btipling
| does git status hash all the files to check to see if there are changes or just check last modified time? | 20:31 |
| → brosner joined | 20:31 |
| → alberto56 joined | 20:31 |
| → rcu joined | 20:32 |
|
_rane
| and compare it to what? | 20:32 |
|
| wouldn't it then show that there are changes if I simply save a file after committing | 20:33 |
| → saysjonathan joined | 20:33 |
| → marc_kdab joined | 20:33 |
| → Heimidal joined | 20:34 |
| → tvw joined | 20:34 |
| ← _ollie left | 20:34 |
|
ayust
| btipling: Git always deals with file contents | 20:35 |
|
btipling
| ah | 20:35 |
|
| it's so fast | 20:35 |
|
fr0sty
| RaceCondition: 'git log <branch>..devel' will be empty if it is based on devel | 20:36 |
|
btipling
| how does it hash so many files so quickly | 20:36 |
|
| _rane: it could be combination: last modified time + hash | 20:36 |
|
| so it doesn't hash files that obviously haven't changed | 20:37 |
| ← joshsmith left | 20:37 |
| → _ollie joined | 20:37 |
|
btipling
| I dunno, just amazed at how good and fast it is | 20:37 |
|
FauxFaux
| btipling: Yes, it uses mtimes. | 20:37 |
|
fr0sty
| btipling: how big is your repository? | 20:37 |
|
btipling
| huge | 20:37 |
|
| gigabytes | 20:37 |
| ← drl left | 20:38 |
| ← hobodave left | 20:38 |
|
btipling
| I think | 20:38 |
|
FauxFaux
| du -sh .git/objects/ | 20:39 |
| ← _ollie left | 20:39 |
|
btipling
| oh much smaller than I thought | 20:39 |
|
| 109M | 20:39 |
| ← rcu left | 20:40 |
|
fr0sty
| btipling: sha hashing is fast by design. | 20:40 |
|
FauxFaux
| I do like the way the reference implementation has provably identical but significant algorithm (i.e. not implementation) ineffiencies. | 20:40 |
| ← koltroll left | 20:41 |
| → malinens joined | 20:41 |
| → rcu joined | 20:42 |
| RJD22|away → RJD22 | 20:42 |
| → koltroll joined | 20:42 |
| → Jiyn joined | 20:42 |
| ChanServ set mode: +v | 20:43 |
|
Jiyn
| hi | 20:43 |
|
| we could talk about gitosis-init here ? | 20:44 |
|
bremner
| you could, but we'll suggest you switch to gitolite. | 20:46 |
|
| someone might answer your question, but the switch to gitolite message is mandatory. | 20:46 |
| ← rcu left | 20:47 |
| → rcu joined | 20:47 |
|
Jiyn
| ok, I will try gitolite to see if I have the same problem | 20:48 |
| → t3i joined | 20:48 |
| ← rcu left | 20:49 |
| ← tizbac left | 20:49 |
| ← marc_kdab left | 20:49 |
| ← malinens left | 20:50 |
| → drl joined | 20:50 |
| ← priidu left | 20:51 |
| → rcu joined | 20:51 |
| ← rcu left | 20:52 |
| ← nona left | 20:52 |
| → PKKid-Home joined | 20:53 |
|
PKKid-Home
| Hey guys.. | 20:53 |
|
| I acidentlly the whole thing.. | 20:54 |
|
thiago_home
| PKKid-Home: you forgot the verb | 20:54 |
|
RaceCondition
| fr0sty: oh, good point.. thanks | 20:54 |
|
PKKid-Home
| Is there a way to revert bad push? | 20:54 |
|
| there were 40 commits I pushed that I need to unpush. | 20:54 |
| ← koltroll left | 20:55 |
|
RaceCondition
| fr0sty: although it'd still be cool to get a list of all branches and what they are based on with one command | 20:55 |
|
PKKid-Home
| thiago_home, Its an internet meme. ;) | 20:55 |
| ← spaceonline left | 20:55 |
|
thiago_home
| PKKid-Home: "I accidentally the whole thing" <--- missing a verb, makes no sense | 20:56 |
|
fr0sty
| RaceCondition: 'based on' is not really a concept in git. | 20:56 |
|
thiago_home
| PKKid-Home: anyway, if no one has got those commits yet, simply git push -f the commit you want the remote to have | 20:56 |
| → bkosborne joined | 20:56 |
| → bradleyayers joined | 20:56 |
|
PKKid-Home
| thiago_home, don't I need to specify the branch as well? | 20:57 |
|
thiago_home
| PKKid-Home: yes | 20:57 |
|
| PKKid-Home: git push remotename sha1:branchname | 20:57 |
| ← Heimidal left | 20:58 |
| → cjs joined | 20:58 |
| → spaceonline joined | 20:58 |
| ← joel_falcou left | 20:59 |
| → dsdjf joined | 21:00 |
| → Heimidal joined | 21:00 |
|
PKKid-Home
| thiago_home, thanks, I might have it.. pulling a new copy of it now to double check. | 21:01 |
|
| I basically ran this: "git push -f origin 1bffa7840b61:master" | 21:01 |
| → EricInBNE joined | 21:03 |
| ← jrmuizel left | 21:04 |
| ← coderdad left | 21:04 |
| → PABRR3M joined | 21:07 |
| → k04n joined | 21:07 |
| → lightcap joined | 21:07 |
| ← drl left | 21:08 |
| → MattDiPasquale joined | 21:09 |
| → marc_kdab joined | 21:09 |
| → darkredandyellow joined | 21:09 |
| ← mahata left | 21:10 |
| → joshsmith joined | 21:10 |
| → Eridius joined | 21:10 |
| → novitololo joined | 21:11 |
| → coderdad joined | 21:12 |
| ← marc_kdab left | 21:13 |
| → marc_kdab joined | 21:14 |
| → henr_k joined | 21:14 |
| → suspectx joined | 21:14 |
| → pantsman joined | 21:16 |
| ← pantsman left | 21:16 |
| → pantsman joined | 21:16 |
| → bgerber joined | 21:17 |
| ← psoo left | 21:17 |
| → cesario joined | 21:19 |
| ← coderdad left | 21:19 |
| → csgeek joined | 21:19 |
| → ppawel joined | 21:21 |
| → drl joined | 21:21 |
| ← Zephyrus left | 21:21 |
| → tizbac joined | 21:22 |
| ← j416 left | 21:22 |
| → MikhX joined | 21:22 |
| → wtfness joined | 21:23 |
| ← sonnym left | 21:23 |
| ← bronson left | 21:23 |
| → berto- joined | 21:23 |
| ← suspectx left | 21:23 |
| → awilkins joined | 21:24 |
| → Agos joined | 21:25 |
| ← k04n left | 21:25 |
| → benco joined | 21:27 |
| → jesmith joined | 21:27 |
| ← alester left | 21:27 |
| → bronson joined | 21:27 |
| ← alberto56 left | 21:28 |
| ← bkosborne left | 21:28 |
| → chessguy joined | 21:29 |
| → bkosborne joined | 21:29 |
| → angelsl joined | 21:29 |
| → tewecske joined | 21:31 |
| → smolyn_ joined | 21:33 |
| ← smolyn left | 21:33 |
| ← benco left | 21:33 |
| ← Jiyn left | 21:33 |
| → nurey joined | 21:34 |
| ← smolyn_ left | 21:35 |
| → smolyn joined | 21:35 |
| → dfr|mac joined | 21:36 |
| ← drl left | 21:36 |
| → eirikb joined | 21:38 |
|
eirikb
| If I want my submodules to always be up-to-date with the dependant project, should I use something else? Or is there a trick? I don't even know how to update it (git checkout master;git pull?) | 21:38 |
| ← bhosie left | 21:38 |
| → bhosie joined | 21:38 |
| ← bkosborne left | 21:39 |
| ← marc_kdab left | 21:39 |
| ← Tac left | 21:39 |
| → Tac joined | 21:40 |
|
rudi_s
| eirikb: AFAIK subdmodules aren't really suited for this. If I need this I just use a normal git clone and update them both with a little script. | 21:40 |
|
PKKid-Home
| thiago_home, I never said thank you before. Thanks. | 21:41 |
|
eirikb
| rudi_s: I had that before, using the Makefile from jQuery | 21:41 |
| → patmaddox joined | 21:41 |
|
fr0sty
| eirikb: ask SethRobertson about git-slave | 21:41 |
|
PKKid-Home
| actually maybe I did, but i forgot. ;-P | 21:41 |
| → bkosborne joined | 21:41 |
|
eirikb
| SethRobertson: Can I msg you about git-slave? :) | 21:42 |
| → Sonderblade joined | 21:42 |
| ← Sonderblade left | 21:42 |
| → jsemar joined | 21:42 |
| → bhosie_ joined | 21:42 |
|
jsemar
| is there a way to re merge in or checkout a non-commit tree hash | 21:42 |
| → Sonderblade joined | 21:43 |
|
eirikb
| So using a Makefile is maybe even better than submodules? I changed to submodule because I felt it was more proper (built into git, linking in github etc) | 21:43 |
| ← necromancer left | 21:43 |
|
rudi_s
| SethRobertson, eirikb: I'm curious too, what is git-slave? | 21:44 |
| → moqq joined | 21:44 |
| ← bhosie left | 21:44 |
| bhosie_ → bhosie | 21:44 |
|
moqq
| i have a .gitmodules file, `git --version` => "git version 1.7.0.4", but when i do `git submodule update --init`, `git submodule status`, or really `git submodule ANYTHING` it does nothing. no output, no error, just nothing | 21:45 |
|
| and teh same repo works fine on other machines | 21:45 |
|
| anyone have any suggestions? | 21:46 |
|
SethRobertson
| gitslave? I'm glad you asked | 21:46 |
|
fr0sty
| eirikb: if you care about dependencies between repositories you should track the relationship formally. | 21:46 |
|
SethRobertson
| rudi_s: eirikb: gitslave (http://gitslave.sf.net) is useful when you control and develop on the subprojects at more of less the same time as the superproject, and furthermore when you typically want to tag, branch, push, pull, etc all repositories at the same time. | 21:46 |
| → miloshadzic joined | 21:47 |
| → bhosie_ joined | 21:47 |
|
eirikb
| SethRobertson: Sounds like something I want | 21:47 |
|
SethRobertson
| Unlike git-submodules, there is only a strict relationship between the repositories at tags (meaning if you do not tag, you cannot trivially figure out what commit a submodule was at when a specific commit was made somewhere else) | 21:47 |
| ← skoop left | 21:47 |
|
rudi_s
| SethRobertson: Looks interesting, thanks. | 21:48 |
|
TrentonDAdams
| PerlJam: really? git rebase will prevent the commit messages from having a commit message referencing another branch? | 21:48 |
|
SethRobertson
| However, this gives you the ability to easily pull, checkout, commit, etc over all repos at the same time, unlike subtree or submodules where you have to do a little dance | 21:48 |
| → snearch joined | 21:48 |
| ← bhosie left | 21:49 |
| bhosie_ → bhosie | 21:49 |
|
SethRobertson
| It is a simplier paradigm when you are doing forward activities. It is more complex when you are doing forensics due to the lack of linkage. | 21:49 |
| → drl joined | 21:50 |
|
SethRobertson
| Or when you don't control the other repos or are not otherwise willing you make your own branches/tags/etc on them (e.g. local master of a remote project) | 21:50 |
|
eirikb
| SethRobertson: Will this be added to git native? | 21:50 |
|
SethRobertson
| Never | 21:51 |
|
Buglouse
| So i would like to receive information (logs, size) without git clone, what are methods? | 21:51 |
|
SethRobertson
| Some of the concepts (like relative URLs, which were added in 1.7.4) might go in, but not the overall system. Perhaps in contrib at most. | 21:51 |
|
Buglouse
| maybe just grab the '.git'. | 21:52 |
|
SethRobertson
| Buglouse: ssh to the remote server and run the commands there? gitweb? Really you need a clone. Grabbing a .git is cloning | 21:52 |
| ← EricInBNE left | 21:52 |
| ← guardian left | 21:53 |
| → albel727_2 joined | 21:54 |
|
eirikb
| SethRobertson: Can this co-exist with submodules? | 21:54 |
|
| Against the same dependencies | 21:55 |
|
| Just if I hook into a system (like a PaaS) where I can't control third party applications this might be a problem (as well as hackish Makefiles, but they might actually randomly work) | 21:55 |
|
SethRobertson
| eirikb: It is possible in theory. However, you would have remember to only run gits commands when you have last done a gits checkout, and only run git submodule commands when you have last run git submodule update | 21:56 |
|
| Well, as I said, you can make a local submaster for the third party. Let the remotes/thirdparty/branchnames do what they want and merge the right remote branch in your local branch (e.g. master, 2.0-release, etc) | 21:57 |
| ← MikhX left | 21:57 |
|
eirikb
| Hmm yeah, many balls in play? | 21:57 |
| ← TheMoonMaster left | 21:59 |
|
novitololo
| When using git diff: what @@ -1,7 +1,7 @@ means? | 22:00 |
| ← Heimidal left | 22:01 |
|
Nugget
| novitololo: http://stackoverflow.com/questions/987372/patch-format | 22:01 |
|
novitololo
| appreciate. | 22:02 |
| ← drl left | 22:02 |
| ← chops13 left | 22:03 |
| ← albel727_2 left | 22:03 |
| → acid joined | 22:04 |
| ← cesario left | 22:04 |
| → ice799 joined | 22:04 |
| → linusoleander joined | 22:05 |
| ChanServ set mode: +v | 22:05 |
| ← linusoleander left | 22:06 |
| → linusoleander joined | 22:06 |
| ← pantsman left | 22:06 |
| ← lightcap left | 22:07 |
| ← RobertBerger left | 22:08 |
| → _Vi joined | 22:09 |
| → asdfasdf_ joined | 22:09 |
|
eirikb
| SethRobertson: So how would you use gitslave against github, where you don't want others to depend on third party applications for git? I could for instance use gitslave personally and hook up to the dependent projects outside the actual github repo | 22:09 |
| → PABRSEI joined | 22:10 |
| → codespectator joined | 22:10 |
| ← elyos left | 22:11 |
| ← asdfasdf_ left | 22:11 |
| ← ISF left | 22:11 |
| ← mikepack left | 22:12 |
| ← darkredandyellow left | 22:12 |
| → drl joined | 22:15 |
| → nanotube joined | 22:15 |
|
SethRobertson
| eirikb: Well, without actually knowing much about how github works and whether magic happens when you fork, I see two options. First is your own project is simple enough you only want to use the master branch, and the third party repos are stable enough that you can likewise only use the master branch. You would then not really tag or create branches (at least not with gitslave). | 22:16 |
| → agateau joined | 22:16 |
| ← asmega left | 22:16 |
|
eirikb
| SethRobertson: I'm the only guy commiting code, and they are small simple projects. master branch is fine | 22:17 |
|
SethRobertson
| eirikb: The other option is to create your own fork/copy of the third party repos on github with your own branch names so that your master branch might not correspond to the thirdparty master (it might be thirdparty/2.5.1_release_branch or whatever) | 22:17 |
| → tro joined | 22:17 |
|
eirikb
| SethRobertson: I haven't even released a 1.0 yet | 22:17 |
| ← agateau left | 22:18 |
|
SethRobertson
| eirikb: Then download gitslave http://gitslave.sf.net and do the prepare and attach commands and you will magically be all set up | 22:18 |
| → agateau joined | 22:18 |
| → Ze_M joined | 22:18 |
|
eirikb
| SethRobertson: And other people that might want to fork my code will not have dependency of gitslave? | 22:18 |
|
SethRobertson
| eirikb: No, you are not forced to use gitslave. You can use normal git commands as normal. gitslave is a simple foreach loop around all the repos in a project, with output summarization. Nothing tricky is going on | 22:19 |
|
eirikb
| Interesting, I have to look into it. Thanks | 22:21 |
| → workmad3 joined | 22:22 |
| → Textmode joined | 22:22 |
| ← tro left | 22:22 |
| ← tstclair left | 22:23 |
| → cking_nj joined | 22:23 |
| ← khmarbaise left | 22:24 |
| → nothingHappens_ joined | 22:24 |
| → tro joined | 22:24 |
| → MikhX joined | 22:25 |
| ← agateau left | 22:25 |
| → bigpeted joined | 22:25 |
| ← bigpeted left | 22:25 |
| → bigpeted_ joined | 22:25 |
| → agateau joined | 22:26 |
| → Illusioneer joined | 22:26 |
|
Illusioneer
| hey, has anybody had a problem where suddenly when you try to push gitorious says Connection Refused when it was working just fine before? | 22:28 |
| ← eirikb left | 22:28 |
| → airborn joined | 22:28 |
| → Giles joined | 22:29 |
| → necromancer joined | 22:29 |
| ← LiamH left | 22:29 |
| ← bartek left | 22:29 |
|
Giles
| why is git show --oneline <commitish> showing me one line followed by some diff output? | 22:29 |
|
SethRobertson
| It is stupid that way | 22:30 |
| → marc_kdab joined | 22:30 |
| ← bkosborne left | 22:30 |
|
SethRobertson
| git log is more accomidating | 22:30 |
|
Giles
| SethRobertson: ? | 22:30 |
|
SethRobertson
| ! | 22:30 |
|
Giles
| so I want git log -1 --oneline <commitish> | 22:31 |
|
SethRobertson
| Something like that | 22:31 |
|
Giles
| gar | 22:31 |
| ← excess^ left | 22:32 |
| ← MikhX left | 22:32 |
|
charon
| Giles, SethRobertson: git-show takes -s to suppress the diff | 22:33 |
|
Giles
| charon: ta | 22:33 |
| ← drl left | 22:33 |
| → zoran119 joined | 22:33 |
|
charon
| git show is more or less git log -p --no-walk --cc | 22:34 |
| → kpreid joined | 22:34 |
|
charon
| at least with commit args | 22:34 |
| ← Titosemi left | 22:35 |
| ← alex__c2022 left | 22:35 |
|
Giles
| right | 22:36 |
| ← bronson left | 22:36 |
| → sonnym joined | 22:36 |
| → jdowdle joined | 22:38 |
| → jaql joined | 22:38 |
| ChanServ set mode: +v | 22:38 |
| ← Illusioneer left | 22:39 |
| ← novitololo left | 22:39 |
| → hobodave joined | 22:40 |
| → SethRobertson joined | 22:41 |
| ← Sonderblade left | 22:41 |
| → goshawk joined | 22:41 |
| ← nurey left | 22:41 |
| ← jdowdle left | 22:42 |
| ← agateau left | 22:44 |
| ← montylounge left | 22:44 |
| → alberto56 joined | 22:44 |
| ← MetaCosm left | 22:44 |
| ← trobrock left | 22:45 |
| → agateau joined | 22:45 |
| → eletuchy joined | 22:46 |
| ← moqq left | 22:47 |
| → drl joined | 22:47 |
| ← hyperair left | 22:48 |
| → MetaCosm joined | 22:48 |
| ← MetaCosm left | 22:48 |
| → MetaCosm joined | 22:48 |
|
piti
| Hi there. I'd like to put git rev id into the code that is under (mainly to help debugging when user comes with a bug). Is there a best way to do ? | 22:49 |
|
ayust
| smudge/clean | 22:49 |
| → _ollie joined | 22:50 |
|
SethRobertson
| I do it during make install | 22:50 |
|
ayust
| having it done by make can also work | 22:50 |
|
piti
| I thought about using a hook (post-commit), but not sare how to do it, or fetching from git during the configure.in | 22:50 |
|
| what do you mean by smudge/clean ? | 22:51 |
|
ayust
| http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html search for 'smudge' | 22:51 |
| ← ki__ left | 22:52 |
| → ki__ joined | 22:53 |
|
piti
| hum, seems great (let me dig that a while :) ) | 22:53 |
| ← fowlduck left | 22:53 |
| → priidu joined | 22:53 |
| ← drl left | 22:54 |
| → willmarshall joined | 22:54 |
| → lresende joined | 22:54 |
|
willmarshall
| How would I pull a list of branches from a remote git server? | 22:54 |
| → silence joined | 22:54 |
|
RobertLaptop
| git fetch remoteserver or git pull remoteserver | 22:54 |
| silence → Guest5107 | 22:54 |
| ← Guest5107 left | 22:55 |
|
ki__
| Hello. I have an id_rsa.pub and an id_dsa.pub key ... does that mean I can use EITHER key or is one of them configured? Where can I check which one is configured to be used? | 22:55 |
| → k04n joined | 22:55 |
| ← lresende left | 22:55 |
| ← jaql left | 22:56 |
| → MikhX joined | 22:57 |
| → elyos joined | 22:57 |
| → fr0sty-away joined | 22:58 |
| ← bigpeted_ left | 22:58 |
|
piti
| btw, I have another question: we use hooks (code formatting), but it seems to be local for each repository. is there a way to «attatch» and distribute those hooks, like just with a git clone repo ? | 22:58 |
|
cirwin
| piti: not really, it's pretty annoying — you could put them in the repo along with a script that symlinks the .git/hooks directory | 22:58 |
|
| there's probably a tool that automates that process, but don't know what it is | 22:59 |
| ← willmarshall left | 22:59 |
|
piti
| ok, good to now anyway | 22:59 |
| ← tgunr_ left | 22:59 |
| → bauruine_ joined | 23:00 |
| ← bauruine left | 23:01 |
| → tgunr joined | 23:01 |
| → eletuchy_ joined | 23:01 |
| ← Linc left | 23:02 |
| ← tizbac left | 23:03 |
| → sjohnson joined | 23:03 |
| ← necromancer left | 23:03 |
|
sjohnson
| Q: i'm trying to run a git-whatchanged by variable dirnames. is it possible to do it without chdir? i'm finding --work-tree not working for what i thought was the solution | 23:04 |
| ← eletuchy left | 23:04 |
| → zombor joined | 23:06 |
| → bronson joined | 23:06 |
|
Giles
| hmm, I broke my server, when I try to push to it its asking for a password, despite having the ssh keys setup, what could have gone wrong? | 23:07 |
| → drl joined | 23:07 |
| ← snearch left | 23:07 |
|
johnw
| Giles: what OS? | 23:07 |
| → ISF joined | 23:07 |
|
cirwin
| Giles: what are the permissions on files in your .ssh directory? | 23:07 |
|
Giles
| pushing from Linux ubuntu, to Linux Lenny | 23:08 |
|
johnw
| this is more of an SSH question, but it could be DNS, permissions, PAM, SSH settings, user not having a home directory or shell, etc. | 23:08 |
|
cirwin
| (and are you sure it's asking for a server password, not a key password) | 23:08 |
|
Giles
| cirwin: yeah, I don't have a password on this key | 23:09 |
| ← Dave^| left | 23:09 |
| ← smolyn left | 23:09 |
|
cirwin
| ok, just verify that the files in .ssh are 600 or 400 | 23:09 |
|
Giles
| johnw: well I recently added an rDNS record. | 23:09 |
|
cirwin
| any more permissive and ssh refuses to use them | 23:09 |
|
johnw
| also: The server cannot perform reverse DNS lookups on the inbound IP address | 23:09 |
| → smolyn joined | 23:09 |
|
johnw
| make sure .ssh itself is 700 | 23:09 |
|
Giles
| .ssh is u+r and g+r | 23:10 |
|
johnw
| .ssh has to be u+rx | 23:10 |
| → makubi joined | 23:10 |
|
Giles
| johnw: hmm | 23:10 |
|
| johnw: sorry yeah authorised keys is u+r and g+r | 23:11 |
|
| .ssh is u+rwx and g+rwx | 23:11 |
|
| oh no its g+rx | 23:11 |
|
Arrowmaster
| normally ~/.ssh should be 700 | 23:12 |
|
Giles
| Arrowmaster: whats 700 I am not so good with bitmasks | 23:12 |
|
Arrowmaster
| u+rwx,g-rwx,o-rwx | 23:13 |
| ← drl left | 23:13 |
| → fowlduck joined | 23:13 |
|
Giles
| Arrowmaster: well that doesn't help, but thanks for the security tip. | 23:14 |
|
piti
| on the webpage we give to me a while ago, I found: «Ident - When the attribute ident is set for a path, git replaces $Id$ in the blob object with $Id:, followed by the 40-character hexadecimal blob object name, followed by a dollar sign $ upon checkout. Any byte sequence that begins with $Id: and ends with $ in the worktree file is replaced with $Id$ upon check-in» | 23:14 |
|
| I guess that's I'm looking at, is it ? | 23:14 |
| → kulp joined | 23:15 |
|
johnw
| Giles: what I do is use sshd -d -d -p XXX on the server, and ssh -v -v -v -p XXX on the client | 23:16 |
| → archis joined | 23:16 |
| ← kipras left | 23:16 |
|
johnw
| because there can be *many* reasons why SSH might fail | 23:16 |
|
| also, SSH has three different password prompts, so it's good not to assume which one you're seeing | 23:16 |
|
Arrowmaster
| piti: thats a per file hash, it only changes when the file content does, it has nothing to do with the commit hash | 23:16 |
|
johnw
| (there's publickey pass, password auth, and keyboard-interactive) | 23:16 |
| ← zombor left | 23:16 |
| → madewokherd joined | 23:16 |
| → loa joined | 23:16 |
| ← archis left | 23:17 |
|
piti
| ok, thank you avoiding me going into dark and dangerous ways | 23:17 |
| → ls_n joined | 23:19 |
| → Pewpewarrows joined | 23:19 |
| → ptl joined | 23:20 |
| ← johnw left | 23:20 |
|
MarcWeber
| How to list all files which are present at a given revision? something like git ls-files? | 23:20 |
| → necromancer joined | 23:20 |
| ← MattDiPasquale left | 23:20 |
|
cirwin
| ls-files --with <commit> | 23:21 |
|
MarcWeber
| cirwin: --with-tree ? | 23:22 |
|
cirwin
| --with works too I think, but yes | 23:22 |
|
MarcWeber
| cirwin: I searched the help file for commit and hash but didn't find it. | 23:22 |
|
| yeah. it works. | 23:23 |
|
cirwin
| a commit is a type of tree-ish | 23:24 |
|
ls_n
| I'm getting a stream of errors from a bunch of operations all of a sudden. Starting with error: inflate: data stream error (incorrect header check) | 23:24 |
|
| sound familiar? | 23:24 |
| ← spaceonline left | 23:24 |
|
ls_n
| https://gist.github.com/b7a9b58f4dcee16331c5 | 23:25 |
| → drl joined | 23:26 |
| ← chessguy left | 23:26 |
| ← bradleyayers left | 23:26 |
| → bgy joined | 23:27 |
|
bgy
| hi | 23:27 |
| → radarek joined | 23:27 |
| ← airborn left | 23:27 |
| ← _ollie left | 23:27 |
| → airborn joined | 23:28 |
|
fr0sty
| ls_n: repo certainly looks corrupt. what does git fsck --full tell you? | 23:29 |
| → shyam_iyer joined | 23:29 |
| ← goshawk left | 23:30 |
| ← Ze_M left | 23:31 |
|
ls_n
| fr0sty: running now. spitting out the same errors. Previous runs of git fsck (not --full) did the same. | 23:31 |
| → infogulch joined | 23:31 |
| → eean joined | 23:32 |
|
infogulch
| how do i download updates from a remote source into a cloned directory? | 23:32 |
|
MarcWeber
| infogulch: git fetch origin | 23:33 |
|
| This will update the remote references show by git branch -r | 23:33 |
|
infogulch
| aah ok thanks :) | 23:33 |
|
ls_n
| fr0sty: https://gist.github.com/6bb608f2ab795c030808 | 23:33 |
| ← jesmith left | 23:33 |
|
infogulch
| um is it normal for it to have no output? | 23:33 |
|
ls_n
| so... nuke the site from orbit and reclone? | 23:33 |
|
MarcWeber
| If you want to update your local references (branches) you have to use git pull, git rebase or git merge. The first runs one of the others automatically reading some info from ~/.git/config | 23:33 |
| → shiba_yu36 joined | 23:34 |
|
MarcWeber
| infogulch: try git checkout -tb new origin/remote-branch-name and watch .git/config. This way you learn fastest how to configure git pull. the -t means "--track" and sets up the relation between local branch and remote "source". | 23:35 |
|
| if you add rebase = true rebasing will be used instead of merging when feeding remote changes into your local branch | 23:35 |
|
Giles
| Authentication refused: bad ownership or modes for directory /home/git | 23:36 |
| ← shyam_iyer left | 23:36 |
|
Sgeo
| Is there a point to deleting branches? Does it just modify history, or does it do something else? | 23:36 |
|
MarcWeber
| Sgeo: See git history as graph. braches are "pointers to commits" only. | 23:36 |
|
| deleting branches means you remove the pointers - and git gc will drop the revisions later. | 23:37 |
| ← ISF left | 23:37 |
|
MarcWeber
| If there is a point in doing so depends on your workflows. | 23:37 |
|
Sgeo
| Besides deleting branches, and rebase, does git handle branches better than mercurial? | 23:37 |
|
MarcWeber
| I love this about git - because you can also drop branches easily keeping the repo clean. | 23:37 |
| → DAA3FGO joined | 23:37 |
|
MarcWeber
| Sgeo: I found that the remotes/* location is the most useful feature git has which mercurial does not have. | 23:37 |
|
| mercurial has many plugins which to some degree mimic git behaviour. | 23:38 |
|
Sgeo
| I vaguely heard that somewhere, but don't particularly like history modification. I've played with Git via Git Extensions, haven't touched Mercurial | 23:38 |
|
MarcWeber
| However in mercurial you can't delete remote branches easily. You have to use the strip command. | 23:38 |
| → BiggFREE joined | 23:38 |
| ← starcoder left | 23:38 |
|
fr0sty
| ls_n: if you have nothing of value there, go ahead. | 23:38 |
|
MarcWeber
| Sgeo: It depends. In theory you should never get rid of data - but on the other hand human resources are limited. There is no point in keeping old bad code IMHO. But this heavily depends on the project | 23:39 |
|
ls_n
| Looks like a clean git status...don't think there's anything in branches. bleh. | 23:39 |
|
| fr0sty: thx | 23:39 |
|
MarcWeber
| Eg for sharing quick and dirty ideas I can push, talk and tidy up later easily. | 23:39 |
| ← drl left | 23:39 |
| → mt3 joined | 23:40 |
| ← bhosie left | 23:40 |
|
Sgeo
| I'm sort of planning on using either Git or Mercurial for some single-person (me) projects. So far, I like what I've seen of Git with Git Extensions. | 23:40 |
| → starcoder joined | 23:40 |
|
Sgeo
| I've used SVN for a project with one other person before | 23:41 |
|
MarcWeber
| Sgeo: There are some minor differences. Eg mercurial supports cherry-picking writing down the patchs origin branch. But in practise git never got into my way. | 23:41 |
| ← ls_n left | 23:41 |
|
Sgeo
| MarcWeber, um.. not too familiar with cherry picking, please explain? | 23:42 |
|
MarcWeber
| spb: cherry-pick means you take a patch from one branch and apply it to another. | 23:42 |
| ← dreiss left | 23:42 |
|
MarcWeber
| in git you have to add manually "was taken from brach foo" or the like. Sometimes it may be helpful - however you can script these missing pieces easily. | 23:43 |
| → ISF joined | 23:43 |
| ← iAsterisk left | 23:43 |
| → MikhX_ joined | 23:44 |
|
Sgeo
| Ah | 23:44 |
|
| By "add manually", you mean in the commit message, or the history graph? | 23:44 |
|
MarcWeber
| Sgeo: when cherry-picking you can tell git htat you want to edit the message. | 23:45 |
| → orafu joined | 23:45 |
| ← thiago_home left | 23:46 |
|
MarcWeber
| You can also edit the message later using git amend | 23:46 |
| ← awilkins left | 23:46 |
| ← MikhX left | 23:47 |
| MikhX_ → MikhX | 23:47 |
|
Sgeo
| My question is, when you said Mercurial does that automatically.. does it put it in the commit message automatically, or is it visible by looking at history? | 23:47 |
| → iAsterisk joined | 23:47 |
| → keyvan joined | 23:48 |
|
MarcWeber
| Sgeo: http://mercurial.selenic.com/wiki/TransplantExtension I haven't used it yet. | 23:48 |
| ← dcamp left | 23:48 |
| ← Giles left | 23:49 |
|
MarcWeber
| Sgeo: in git its important to know that a commit does not store to which branch it belongs. THis is stored in the reference name only. | 23:49 |
|
| However if you really care you could add a file storing this info. git is stupid by design - and I personally like this design choice. | 23:50 |
|
| Don't worry to much. I'm pretty sure that you can convert from git to mercurial and back easily. | 23:50 |
| ← Bass10 left | 23:50 |
|
Sgeo
| At this point, I've played with Git. Don't really see much point in bothering with Mercurial | 23:51 |
|
| Although I wonder if Git Extensions is warping my understanding | 23:51 |
| → shyam_iyer joined | 23:52 |
| ← shyam_iyer left | 23:52 |
| → silence joined | 23:52 |
| → shyam_iyer joined | 23:52 |
| ← silence left | 23:52 |
| ← radarek left | 23:53 |
| → drl joined | 23:54 |
| ← mt3 left | 23:56 |
| ← t3i left | 23:56 |
| → davidc_ joined | 23:57 |
| → SirFunk_ joined | 23:58 |
| ← sako left | 23:59 |