| 2011-02-16 |
| ← dreiss left | 00:00 |
|
devians
| i really need to just trim all the whitespace and fix all the line endings, commit that and move forward. its only 4 people on the repo, shouldn't be too painful | 00:00 |
| ← pheaver left | 00:01 |
| pheaver_ → pheaver | 00:01 |
|
SethRobertson
| devians: Do you have multiple branches? | 00:01 |
| → verto joined | 00:01 |
|
SethRobertson
| public branches | 00:01 |
|
devians
| not in upstream no | 00:01 |
|
SethRobertson
| Then you can (publicly) avoid the fake merge horror I talked about. | 00:01 |
| ← chrischambers left | 00:03 |
| ← pheaver left | 00:03 |
| → pheaver joined | 00:03 |
| ← eletuchy left | 00:03 |
| → Quex joined | 00:06 |
| ← Quex left | 00:06 |
| ← d0k left | 00:06 |
| → btipling joined | 00:06 |
| ← btipling left | 00:06 |
| → btipling joined | 00:06 |
| ← kuhrt left | 00:07 |
| ← SimonP86 left | 00:07 |
| → orospakr joined | 00:08 |
| → chrischambers joined | 00:09 |
| ← thiago_home left | 00:09 |
| ← _psychic_ left | 00:10 |
| → zivester_ joined | 00:10 |
| → eletuchy joined | 00:10 |
| ← LiamH1 left | 00:11 |
| ← _Vi left | 00:11 |
| → derek joined | 00:11 |
| ← derek left | 00:12 |
| → vanmik joined | 00:12 |
|
devians
| mmm | 00:14 |
| ← maattd left | 00:14 |
|
devians
| im still getting that whole, working dir is dirty/unstaged changes crud, even when theres nothing there, the dir is clean | 00:14 |
|
| its gotta be some sort of file permission or time or something diff that doesnt show up | 00:15 |
| → ka1ser joined | 00:17 |
| → jmorris joined | 00:18 |
| ← ka1ser left | 00:18 |
|
ayust
| devians: are you on windows | 00:18 |
| → ka1ser joined | 00:18 |
|
ka1ser
| hi | 00:18 |
| ← verto left | 00:19 |
|
devians
| ayust: osx | 00:19 |
|
ka1ser
| how to checkout a branch in a remote's tag? suppose tag "GOOD" and remote name "origin".... I'm trying: git checkout -b test origin/GOOD but it doesn't work... | 00:19 |
|
ayust
| devians: what's the output of "git diff" | 00:20 |
|
ka1ser
| any ideas? | 00:20 |
|
cirwin
| ka1ser: step 1, clone the entire repository | 00:21 |
|
ayust
| ka1ser: tags aren't pulled to refs/remotes/, they're pulled to refs/tags | 00:21 |
|
cirwin
| step 2. checkout the tag | 00:21 |
| ← normanrichards left | 00:21 |
|
ka1ser
| oh nvm... when I do the fetch I get the tags ^^.... my bad | 00:21 |
|
SethRobertson
| devians: The ctime thing didn't help? | 00:21 |
|
ayust
| so just "git checkout -b test GOOD" | 00:21 |
|
| would work | 00:21 |
|
ka1ser
| cirwin I just fetched it | 00:21 |
|
| thanks =] | 00:21 |
|
devians
| SethRobertson: it did not :( | 00:21 |
| → stice joined | 00:22 |
| ← jmil left | 00:22 |
| ChanServ set mode: +v | 00:22 |
|
SethRobertson
| Try core.ignoreCygwinFSTricks true | 00:22 |
| ← airborn left | 00:23 |
| ← j416 left | 00:23 |
|
SethRobertson
| devians: I had a typo in my first suggestion. it should have been core.trustctime w/o an e in the middle. | 00:23 |
|
stice
| Hey chan, little question. When i clone a git repo, all files are in there.. but when i del one file and then enter 'git pull' it shows me its still up to date, is that normal behaviour? | 00:23 |
|
SethRobertson
| stice: what does git status say? | 00:24 |
|
NfNitLoop
| "up to date" means you have everything that's on the server. (and more) | 00:24 |
| → jmil joined | 00:24 |
|
NfNitLoop
| as SethRobertson mentioned... try 'git status'. it'll tell you that you have more than the server. | 00:24 |
| ← ben225 left | 00:27 |
|
stice
| it says changed but not updated, is there a way to 'clone' again or ignore the actual .git informations without removing the folder and cloning by hand? | 00:27 |
|
SethRobertson
| stice: I hesitate to recommend this: `git fetch; git reset --hard @{upstream}` | 00:27 |
|
cirwin
| what do you mean by "clone again"? if you want to get the working directory into the same state as the last commit on the server, just use checkout | 00:28 |
|
| (or reset if you have already made commits) | 00:28 |
|
SethRobertson
| stice: More safely, `git status` tells you how to undo each change you made | 00:28 |
|
stice
| thanks for the help :) | 00:29 |
| ← lirakis left | 00:29 |
| ← mjf left | 00:30 |
| → devn joined | 00:31 |
| ← dropdriv1 left | 00:31 |
|
devn
| Is there any way to specify multiple committers? | 00:31 |
| → vadimkk joined | 00:31 |
| ← linusoleander left | 00:32 |
|
SethRobertson
| Multiple authors makes more sense than committers | 00:32 |
|
| Essentially no, though you could temporarily reset your user.* information | 00:33 |
| ← engla left | 00:33 |
| → engla joined | 00:33 |
|
engla
| devn: multiple for one commit? no. | 00:33 |
| ← vadimkk left | 00:34 |
| ← HopsNBarley left | 00:34 |
| ← xiong left | 00:37 |
| → dropdrive joined | 00:37 |
| → linusoleander joined | 00:38 |
| ← j0shua left | 00:38 |
| → cutmail joined | 00:39 |
| ← ironfroggy__ left | 00:39 |
| → ironfroggy__ joined | 00:39 |
| → Vaddim joined | 00:39 |
| ← ironfroggy__ left | 00:40 |
| ← Heimidal left | 00:40 |
| → MikhX joined | 00:40 |
| → Exodist joined | 00:42 |
| ← leavittx left | 00:43 |
| → robinbowes joined | 00:46 |
| → dermoth|home joined | 00:46 |
| ← mattly left | 00:47 |
| ← Vaddim left | 00:47 |
| ← dyer left | 00:47 |
| ← steph021 left | 00:48 |
| → daum_ joined | 00:48 |
| ← mando left | 00:48 |
|
daum_
| hey guys when i am trying to do my original push to a new repository i get the following: http://pastebin.com/u9QuaJKR | 00:49 |
|
FauxFaux
| daum_: Did you read what it tells you to read? | 00:49 |
|
ayust
| you don't have a local master | 00:49 |
|
daum_
| hmm weird.. | 00:50 |
|
ayust
| first, type 'git status' - did you actually commit? | 00:50 |
|
| second, type 'git branch' - are you actually on the branch you think you're on? | 00:50 |
|
daum_
| ah doh forgot to first commit...man been a long day | 00:50 |
| ← stice left | 00:50 |
| ← eijk__ left | 00:53 |
| → xiangfu joined | 00:55 |
| ← spearce left | 00:55 |
| ← obrienmd left | 00:56 |
| ← linusoleander left | 00:58 |
| ← tewecske left | 00:59 |
| → Engin joined | 01:00 |
| ← MikhX left | 01:01 |
| → MikhX joined | 01:02 |
| ← harcourtfentonm1 left | 01:08 |
| ← ddkilzer left | 01:08 |
| → ProperNoun joined | 01:09 |
| ← chrischambers left | 01:09 |
| ← ProperNoun left | 01:10 |
| ← Engin left | 01:10 |
| ← hobodave left | 01:10 |
| → lirakis joined | 01:10 |
| → _Vi joined | 01:12 |
| → Anthro joined | 01:13 |
| ← __name__ left | 01:13 |
| ← noahcampbell left | 01:14 |
|
Anthro
| Anyone know how to get the equivalent of svn log -v? I want to see the changed files in each commit, but not a full diff. | 01:15 |
|
cirwin
| git whatchanged | 01:15 |
| → shiba_yu36 joined | 01:15 |
| ← przemoc left | 01:16 |
| ← alvaro_o left | 01:16 |
|
Anthro
| cirwin: Looks like what I want, but I'm not entirely sure what I'm looking at now. There's a list of files, but I don't know what the numbers mean. | 01:17 |
| ← yxz97 left | 01:18 |
|
cirwin
| the first two columns are file permissions, you can ignore them | 01:18 |
|
| the second two columns are the start of the SHA-id of the file as it appeared in that commit | 01:18 |
|
| again, you can ignore them | 01:18 |
| ← jrmuizel left | 01:19 |
|
cirwin
| maybe git log --stat is less confusing? | 01:19 |
| → shadowhand joined | 01:19 |
| → dyer joined | 01:19 |
| ← dyer left | 01:19 |
| → dyer joined | 01:19 |
|
shadowhand
| so if "git ls-files -t" is deprecated, how can one get a list of all files that are currently tracked? | 01:20 |
|
| "git status --untracked-files=no --short" is start, but that only shows HEAD | 01:20 |
|
cirwin
| git ls-files shows you what is tracked with no arguments? | 01:20 |
| ← smolyn left | 01:21 |
| ← rns left | 01:21 |
|
Anthro
| cirwin: Ah, git log --stat is exactly the information I want. Thanks! | 01:21 |
| ← tvw left | 01:22 |
|
shadowhand
| cirwin: correct, but i need the status | 01:22 |
|
| which -t provides | 01:22 |
|
cirwin
| ah, ok | 01:22 |
| ← daum_ left | 01:23 |
| → _psychic_ joined | 01:23 |
| → przemoc joined | 01:24 |
| ← cutmail left | 01:25 |
| → bcardarella joined | 01:26 |
| ← SirFunk left | 01:28 |
| ← Anthro left | 01:28 |
| → kuhrt joined | 01:29 |
| RJD22 → RJD22|away | 01:29 |
| → Utkarsh joined | 01:30 |
| → coderdad joined | 01:32 |
| ← shabble_ left | 01:32 |
| ← Utkarsh_ left | 01:32 |
| → urkud_ joined | 01:32 |
| ← urkud left | 01:33 |
| ← justin-george left | 01:33 |
| ← BobJelly left | 01:34 |
| ← Araxia_ left | 01:34 |
| → bburhans_ joined | 01:34 |
| → rns joined | 01:34 |
| ← bburhans left | 01:35 |
| → coderdad_ joined | 01:36 |
| ← coderdad left | 01:37 |
| ← xerora left | 01:37 |
| → BobJelly joined | 01:38 |
| ← kenichi left | 01:38 |
| ← eMBee left | 01:40 |
| → eMBee joined | 01:40 |
| ← doener left | 01:40 |
| → doener joined | 01:40 |
| ← Arrowmaster left | 01:40 |
| ← oriba left | 01:41 |
| ← coderdad_ left | 01:42 |
| → coderdad joined | 01:42 |
| → pleonasm joined | 01:42 |
|
harleypig
| Is there a way I can migrate a project in a subversion subdirectory to a git repo? If I try to migrate the whole subversion repository I seem to run out of memory (I think). | 01:44 |
| → jcromartie joined | 01:45 |
|
jcromartie
| Is this a good place to talk about workflow? | 01:45 |
|
FauxFaux
| Here! | 01:47 |
|
| harleypig: Without branches or tags? Just give it the full path to the folder you want within trunk. | 01:47 |
| ← setmeaway left | 01:48 |
| → setmeaway joined | 01:48 |
| → mdel joined | 01:49 |
| ← _psychic_ left | 01:51 |
| ← museic left | 01:51 |
| ← ningia left | 01:52 |
| → obrienmd joined | 01:53 |
| RJD22|away → RJD22 | 01:54 |
| ← n3m left | 01:54 |
| ← warthog9 left | 01:55 |
| ← pdelgallego left | 01:55 |
| → Araxia_ joined | 01:56 |
| ← mithun left | 01:56 |
| ← Guest91470 left | 01:57 |
| → brosner joined | 01:57 |
| → yuwang joined | 01:59 |
| → n3m joined | 01:59 |
| ← amerine left | 01:59 |
| → stliu joined | 01:59 |
| ← stliu left | 01:59 |
| → stliu joined | 01:59 |
| → jrmuizel joined | 01:59 |
| → Maletor joined | 02:00 |
|
shadowhand
| hmm, why does "git log --reverse -n1" not show me the original commit? | 02:00 |
|
| seems like a bug | 02:00 |
|
| "git log --reverse --format='%H' |tail -1" and "git log --reverse -n1 --format='%H'" should have the same output, no? | 02:01 |
|
cirwin
| well, -1 limits the search and then --reverse changes the output | 02:01 |
| ← ericlee left | 02:01 |
| → smolyn joined | 02:02 |
|
shadowhand
| right, and i am saying shouldn't --reverse be noticed before limit? | 02:02 |
| → ericlee joined | 02:02 |
|
shadowhand
| it's like doing an SQL LIMIT before ORDER BY | 02:02 |
|
| your result will be wrong 99.9999% of the time | 02:02 |
|
cirwin
| what about git log -10 --reverse? | 02:03 |
| ← lol_h left | 02:03 |
| ← obrienmd left | 02:03 |
|
cirwin
| it seems in that case, it's much more likely that you'll want the ten most recent commits | 02:04 |
| → marc_kdab_ joined | 02:04 |
| ← Maletor left | 02:05 |
|
shadowhand
| cirwin: i see your point | 02:05 |
| → gretch joined | 02:05 |
|
shadowhand
| still seems a bit odd to me | 02:05 |
|
cirwin
| it's consistent at least | 02:05 |
|
shadowhand
| so far as i can tell, there is no log option to get the root commit | 02:05 |
| → samhassell joined | 02:06 |
|
cirwin
| what's the root commit useful for? | 02:07 |
| ← aleray left | 02:07 |
| ← eletuchy left | 02:07 |
| → mando joined | 02:07 |
| → hobodave joined | 02:07 |
| ← marc_kdab left | 02:07 |
| hachi_ → hachi | 02:08 |
| ← mando left | 02:08 |
| ← tjholowaychuk left | 02:08 |
|
cirwin
| (and I suppose, what would you expect to happen if you had more than one?) | 02:08 |
| → justin-george joined | 02:09 |
| ← jmorris left | 02:10 |
|
shadowhand
| cirwin: this all comes down to "git ls-files -t" being deprecated | 02:10 |
| → jmorris joined | 02:11 |
|
shadowhand
| so i am trying to find alternatives | 02:11 |
|
cirwin
| what are you trying to do?/ | 02:11 |
|
shadowhand
| such as: git diff --name-status --ignore-submodules=all $(git log --reverse --format="%H" | head -1) | tr '\t' ' ' | 02:11 |
|
cirwin
| at a high level? | 02:11 |
| ← jcromartie left | 02:11 |
|
shadowhand
| cirwin: i'm patching http://github.com/resmo/git-ftp | 02:11 |
| ← sh4rm4 left | 02:11 |
|
shadowhand
| it currently fails with submodules, so i am trying to use "git diff" rather than "ls-files" | 02:12 |
| ← lirakis left | 02:12 |
| ← sudonotplease left | 02:12 |
|
cirwin
| is this to find the list of files that have changed since you last deployed, or what? | 02:12 |
|
shadowhand
| is it actually possible for a root commit to be two commits?! | 02:12 |
|
| cirwin: well, yes, and no | 02:13 |
|
cirwin
| you can have two commits with no parents, yes | 02:13 |
|
shadowhand
| as a root? | 02:13 |
| ← coderdad left | 02:13 |
|
cirwin
| a commit with no parents is a root | 02:13 |
|
shadowhand
| when doing "git ftp init" it has to send all the files | 02:13 |
|
| but sending a directory (submodule) will fail | 02:14 |
|
| miserably | 02:14 |
|
| hence, i need a "ls-files" that excludes submodules | 02:14 |
| → jstein joined | 02:14 |
| ← pheaver left | 02:14 |
| → wliao joined | 02:15 |
| → Arrowmaster joined | 02:15 |
|
jstein
| hi in my project is a config file. I want to exclude this from usual git commits (even if changed) but sometimes if we have new options i want to commit a new version. How would you do that? | 02:15 |
|
cirwin
| I have no further help to give — but it sounds like you're trying to over-complicate things. | 02:16 |
| ← jrmuizel left | 02:16 |
|
cirwin
| jstein: you hope that your configuration file language lets you include a second configuration file that you can store locally, if not; you're just careful when you do git add | 02:16 |
| → NickyP joined | 02:16 |
|
shadowhand
| cirwin: maybe just a test on sending the file that checks if it is a directory? | 02:16 |
| → anjen joined | 02:18 |
| ← yuwang_ left | 02:18 |
|
jstein
| cirwin: no i only have one file. i thought i could put it into the exclude list and overwrite the excludelist with git commit my.conf manual if necessary | 02:18 |
| bburhans_ → bburhans | 02:18 |
|
cirwin
| you can't ignore a file that exists in the repository, git suckth | 02:18 |
| ← gretch left | 02:18 |
|
cirwin
| there's a hack with update-index | 02:19 |
| ← bcardarella left | 02:19 |
| → _psychic_ joined | 02:20 |
| ← anjen left | 02:20 |
|
jstein
| how do ohters solve that? many coders will have their own configs in the project... | 02:20 |
| ← _psychic_ left | 02:21 |
|
cirwin
| we have a config file template, and eveery developer creates their own copy that is not in the repository | 02:21 |
|
| which is fine as the default config has never changed | 02:21 |
| → rgr joined | 02:21 |
| ← jfkw_ left | 02:22 |
| → Heimidal joined | 02:22 |
| → ben_alman joined | 02:22 |
|
monokrome
| cirwin: I usually maintain a secondary configuration in my projects. If you have an application config, there can be a local config that is used to override the former's settings. | 02:23 |
|
shadowhand
| monokrome: ditto | 02:23 |
| ← jaeckel left | 02:23 |
|
cirwin
| that works providing you have a good configuration language | 02:23 |
| ← cwillu_at_work left | 02:23 |
|
monokrome
| The language really isn't significant | 02:23 |
| → sh4rm4 joined | 02:24 |
|
monokrome
| If you can't use two configurations, then you can always have your software check if file A is there before it uses file B | 02:24 |
| → Swimming_bird joined | 02:24 |
|
monokrome
| But I don't see any reason why you wouldn't be able to use two configurations. | 02:24 |
|
| Here's an example: https://github.com/monokrome/django-base/blob/master/bin/application.wsgi | 02:25 |
| → amerine joined | 02:26 |
|
| monokrome gets back to fighting with git-daemon | 02:26 |
|
shadowhand
| you can always include a config, and then another config | 02:26 |
|
| most languages will overwrite the options in the original with the 2nd | 02:27 |
|
| monokrome thinks so, also, | 02:27 |
|
shadowhand
| we do that in Kohana | 02:27 |
| ← mw_ left | 02:27 |
|
shadowhand
| cirwin: thanks, btw | 02:27 |
|
| i just added a simple "if [ -d ... ]" check and am skipping directories | 02:28 |
|
cirwin
| :) | 02:28 |
| ← SunilThaha left | 02:28 |
|
shadowhand
| then i just need to add some git submodule foreach magic | 02:28 |
| ← anathematic left | 02:28 |
| → jaeckel joined | 02:28 |
| ← jaeckel left | 02:28 |
| → jaeckel joined | 02:28 |
|
monokrome
| shadowhand: Kohana makes it even more easy, though - with it's cascading filesystem loading | 02:28 |
| → Auro1 joined | 02:29 |
|
Auro1
| hi | 02:29 |
|
shadowhand
| monokrome: yes indeed | 02:29 |
|
| woot | 02:30 |
|
monokrome
| shadowhand: Why don't you use .gitignore? | 02:30 |
| → rayners joined | 02:31 |
| ← Titosemi left | 02:31 |
| ← Schmallon left | 02:31 |
| ← chessguy left | 02:31 |
| ← Araxia_ left | 02:32 |
| → Titosemi joined | 02:33 |
| → Remixman joined | 02:34 |
| ← justin-george left | 02:34 |
| → justin-george joined | 02:35 |
| ← smolyn left | 02:35 |
|
harleypig
| FauxFaux: I'm following the steps found at http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/ and passing svn+ssh://user@svn.repo.com/pdev/project/trunk/devbranch for the repo url ... it churns for a few minutes, then leaves me with an empty directory. So, what am I misunderstanding? | 02:35 |
| ← Titosemi left | 02:35 |
|
devians
| SethRobertson: i think that ctime flag might have worked | 02:36 |
| → obrienmd joined | 02:37 |
| → mrevd joined | 02:37 |
|
mrevd
| can i add filemode = false to my user .gitconfig? | 02:37 |
| → hyperair joined | 02:39 |
| → TanEk joined | 02:40 |
| ← werdan7 left | 02:40 |
| ← ben225_ left | 02:41 |
| ← Yuuhi left | 02:42 |
|
ddilinger
| according to git status, my branch is ahead of 'origin/master' by 12 commits, but i havn't made any commits to master, and certainly not 12. How can i figure out whats going on? | 02:42 |
|
| err, my master branch | 02:43 |
|
| git log shows no mention of my username | 02:43 |
| → Vampire0 joined | 02:45 |
|
kpreid
| ddilinger: presumably the branch you're on thinks the corresponding remote branch is master. check .git/config. also, git log origin/master..HEAD will list those 12 commits | 02:45 |
| ← b00p3r left | 02:46 |
| → dl9pf joined | 02:46 |
| ← dl9pf left | 02:46 |
| → dl9pf joined | 02:46 |
| → Booper joined | 02:46 |
|
ddilinger
| kpreid: the branch i'm on is master | 02:46 |
| ← bronson left | 02:47 |
|
kpreid
| ok, just do the git log then. | 02:47 |
| ← ki__ left | 02:47 |
|
ddilinger
| git log shows no mention of my username | 02:47 |
| ← Vampire0_ left | 02:47 |
|
ddilinger
| i've never commited to master | 02:47 |
|
| thats only done by lead | 02:47 |
|
kpreid
| doesn't matter, those are still commits which are in master but not origin/master | 02:47 |
| ← dl9pf_ left | 02:47 |
| ← mrevd left | 02:48 |
|
ddilinger
| how do i see just those commits? there is nothing in git log with my name attached, i dont know what else to search for | 02:48 |
|
kpreid
| the command I gave should list exactly those commits | 02:48 |
|
| ...but I don't know git thoroughly | 02:48 |
|
ddilinger
| git log is 5k lines long | 02:48 |
|
| its not just the 12 commits :P | 02:49 |
|
kpreid
| git log origin/master..master is 5k lines long? | 02:49 |
|
shadowhand
| monokrome: sorry? | 02:49 |
|
| monokrome: use .gitignore for what? | 02:49 |
|
monokrome
| ignoring a file/directory | 02:49 |
|
ddilinger
| git log origin/master..master is a diff command, thats 75 lines, which according to unfuddle are the changes i just pulled from origin | 02:50 |
|
| its the stuff the lead merged in today and yesterday | 02:50 |
| → gretch joined | 02:50 |
|
kpreid
| sounds like your remotes/origin/master isn't updated for some reason! | 02:50 |
| → karstensrage joined | 02:50 |
|
ddilinger
| hmm, so what do i do? | 02:51 |
|
kpreid
| well, I would try: git fetch origin master | 02:51 |
|
karstensrage
| how come git branch --set-upstream mybranch origin/mybranch says origin/mybranch is ambiguous? | 02:51 |
| → bcardarella joined | 02:51 |
|
cirwin
| karstensrage: did you create a local branch called origin/mybranch by accident? | 02:51 |
|
| (I wish git branch would forbid that, but it doesn't) | 02:52 |
|
karstensrage
| cirwin, i don't think i did, it wasnt in my .git/config for sure | 02:52 |
|
ddilinger
| kpreid: hmm, fetch must be different than pull some way? i ran another git pull earlier and it only said i'm up to date. Now it pulled some objects, said i was up to date, and git status is back to like it should be | 02:52 |
|
cirwin
| branches don't have to be in .git/config if you've not set any configuration for them | 02:52 |
|
ddilinger
| kpreid: so summary, i'm not sure why but its fixed :) | 02:52 |
|
| kpreid: thanks | 02:52 |
| → jfkw joined | 02:52 |
|
karstensrage
| hmm | 02:52 |
|
cirwin
| `git branch` will show you | 02:52 |
|
karstensrage
| ill check tomorrow | 02:52 |
|
kpreid
| ddilinger: well, pull is fetch and merge/rebase, so ... I dunno, ask someone who knows more about exactly what git chooses to fetch or not | 02:53 |
| ← chrissbx left | 02:55 |
| → mando joined | 02:56 |
| ← mdel left | 02:57 |
| → justin_george joined | 02:57 |
| ← alip left | 02:57 |
| ← mando left | 02:58 |
| ← justin-george left | 02:58 |
| → alip joined | 02:59 |
| → smolyn joined | 03:01 |
| → mdel joined | 03:02 |
| → phaed joined | 03:02 |
|
phaed
| hi, I'm trying to cherry-pick a commit from another branch and am seeing the error: | 03:03 |
| ← Remixman left | 03:03 |
|
phaed
| Your local changes to the following files would be overwritten by merge: xxx/xxx/xxx | 03:04 |
|
| but if I run `git diff xxx/xxx/xxx` nothing is returned | 03:04 |
| ← mdel left | 03:04 |
|
phaed
| s/returned/shown | 03:04 |
| → pheaver joined | 03:04 |
| ← smolyn left | 03:04 |
|
phaed
| any idea? am I reading the error wrong? | 03:04 |
| ← sontek left | 03:06 |
| → sontek joined | 03:06 |
|
phaed
| ah well, whatever was going on, I avoided it by just running `git checkout -- xxx/xxx/xxx` and then cherry-picking again | 03:06 |
|
monokrome
| last | 03:06 |
| ← jstein left | 03:07 |
| ← jjuran left | 03:07 |
| ← c00kiemon5ter left | 03:07 |
| ← obrienmd left | 03:08 |
| → c00kiemon5ter joined | 03:08 |
| ← c00kiemon5ter left | 03:08 |
| → c00kiemon5ter joined | 03:08 |
| → steph021 joined | 03:09 |
| ← steph021 left | 03:09 |
| → steph021 joined | 03:09 |
| → sudonotplease joined | 03:09 |
| ← rgr left | 03:10 |
| → obrienmd joined | 03:12 |
| ← nadavoid left | 03:12 |
| → dwaite joined | 03:13 |
| ← phaed left | 03:14 |
| → Araxia_ joined | 03:14 |
| ← pheaver left | 03:15 |
| → nadavoid joined | 03:15 |
| ← Guest28785 left | 03:17 |
| → devanjan joined | 03:22 |
| ← Utkarsh left | 03:23 |
| → juangiordana_ joined | 03:24 |
| → jony joined | 03:24 |
| ← bcardarella left | 03:25 |
| ← juangiordana left | 03:25 |
| → normanrichards joined | 03:26 |
| → noahcampbell joined | 03:27 |
| ← doener left | 03:27 |
| ← RaceCondition left | 03:29 |
| → Remixman joined | 03:31 |
| ← kuhrt left | 03:31 |
| → eletuchy joined | 03:32 |
| → mattly joined | 03:32 |
| → pheaver joined | 03:33 |
| → doener joined | 03:33 |
| → Utkarsh joined | 03:33 |
| ← shiba_yu36 left | 03:34 |
| ← vanmik left | 03:35 |
| → intripoon joined | 03:36 |
| → Schmallon joined | 03:37 |
| ← mattly left | 03:37 |
| ← Elfe left | 03:38 |
| ← intripoon_ left | 03:39 |
| → mdel joined | 03:39 |
| → mw_ joined | 03:40 |
| ← mw_ left | 03:40 |
| → mw_ joined | 03:40 |
| ← Remixman left | 03:40 |
| ← up_the_irons left | 03:41 |
| ← BobJelly left | 03:41 |
| ← saysjona1han left | 03:42 |
| ← juangiordana_ left | 03:42 |
| ← devanjan left | 03:42 |
| → shiba_yu36 joined | 03:43 |
| → simplechat joined | 03:43 |
| ← simplechat left | 03:43 |
| → simplechat joined | 03:43 |
| → BobJelly joined | 03:45 |
| ← torvalamo left | 03:45 |
| ← Swimming_bird left | 03:47 |
| ← jmil_ left | 03:48 |
| → torvalamo joined | 03:50 |
| → vitorpc joined | 03:50 |
| ← obrienmd left | 03:51 |
| ← scelis left | 03:51 |
| ← vitor-br left | 03:51 |
| → timj_ joined | 03:52 |
| ← tk8 left | 03:54 |
| ← cylence left | 03:55 |
| → ISF_ joined | 03:56 |
| → tek0 joined | 03:56 |
| → Elfe joined | 03:56 |
| ← timj left | 03:56 |
| ← WebDragon left | 03:57 |
| ← xiangfu left | 03:58 |
| ← ISF left | 03:58 |
| → hasrb joined | 03:58 |
| → smolyn joined | 03:59 |
| ← yogione left | 03:59 |
| ← ISF_ left | 04:01 |
| ← tchan left | 04:02 |
| → tchan joined | 04:03 |
| ← torvalamo left | 04:03 |
| DrNick2 → DrNick | 04:03 |
| ← vitorpc left | 04:05 |
| → bloopletech joined | 04:05 |
| ← VladDrac left | 04:06 |
| → VladDrac joined | 04:06 |
|
bloopletech
| I'm trying to use git-apply to apply some patches but it doesn't seem to be doing anything. I just get a bunch of whitespace warnings, and git diff / git status / git log report no changes | 04:06 |
| → Swimming_bird joined | 04:07 |
| → cylence joined | 04:07 |
| → torvalamo joined | 04:08 |
| → ISF joined | 04:08 |
| ← sternocera left | 04:08 |
|
bloopletech
| is there some trick to git-apply? I'm not supplying any options to git-apply either | 04:08 |
| → devanjan joined | 04:10 |
| ← cylence left | 04:10 |
| ← eletuchy left | 04:10 |
| ← zorzar_ left | 04:10 |
| → jayzawrotny joined | 04:10 |
|
jayzawrotny
| Hello, I'm a git noob and I have a small question. What does git commit -a do? | 04:10 |
|
cirwin
| git apply --whitespace=fix | 04:10 |
|
| ^ bloopletech | 04:11 |
|
| jayzawrotny: it commits all changes to all files that you have added to the repository | 04:11 |
|
jayzawrotny
| oh, so the ones it's tracking changes on from a previous add statement then, right cirwin? | 04:11 |
|
| monokrome avoids -a | 04:11 |
|
jayzawrotny
| Oh, is it a bad practice? | 04:12 |
|
cirwin
| jayzawrotny: yes, or from the previous commit | 04:12 |
|
jayzawrotny
| Ah | 04:12 |
|
monokrome
| Not really, as long as you use `git status` before you use -a to make sure that you don't commit things that you didn't expect | 04:12 |
|
cirwin
| I use it all the time, I had to write myself a "git uncommit" though bceause I often committed too many changes by accident | 04:12 |
| ← leo2007 left | 04:12 |
|
jayzawrotny
| Ah, I see, that makes sense. So use it with care then :) | 04:13 |
|
monokrome
| yep | 04:13 |
|
ka1ser
| Is there an easy way to create a commit that reverts another one that already exists? | 04:13 |
|
cirwin
| git revert <commit> | 04:13 |
| → ki__ joined | 04:14 |
|
ka1ser
| =o | 04:14 |
|
| nice | 04:14 |
|
| lol | 04:14 |
|
| thanks cirwin | 04:14 |
|
cirwin
| thank git, not me :p | 04:14 |
|
monokrome
| lol | 04:14 |
|
ka1ser
| yeah | 04:15 |
|
| they think of everything | 04:15 |
|
| =P | 04:15 |
| → cutmail joined | 04:15 |
| ← torvalamo left | 04:15 |
| ← bloopletech left | 04:15 |
|
ka1ser
| s/of/about | 04:15 |
| → dreiss joined | 04:18 |
| ← ki__ left | 04:19 |
|
jayzawrotny
| Anyways, thanks very much for your help. I really appreciate it :) | 04:20 |
| ← jayzawrotny left | 04:20 |
| ← pabst left | 04:21 |
| ← neorab left | 04:21 |
| ← pheaver left | 04:22 |
| → zorzar_ joined | 04:23 |
| → eletuchy joined | 04:23 |
| → Yuffster joined | 04:23 |
| ← eletuchy left | 04:23 |
| → OOPMan joined | 04:24 |
| → BlindOracle joined | 04:26 |
| ← zombor left | 04:27 |
| ← Swimming_bird left | 04:27 |
| ← dwaite left | 04:28 |
| → xerothermic joined | 04:29 |
| ← ceej left | 04:29 |
| ← smolyn left | 04:31 |
| ← friskd left | 04:31 |
| ← devanjan left | 04:31 |
| → saysjonathan joined | 04:32 |
| ← tro left | 04:32 |
| ← stepnem left | 04:33 |
| → coderdad joined | 04:33 |
| → neorab joined | 04:34 |
| ← javaanse_jongens left | 04:34 |
| → vanmik joined | 04:34 |
| → obrienmd joined | 04:34 |
| ← ka1ser left | 04:34 |
| → stepnem joined | 04:36 |
| ← saysjonathan left | 04:36 |
| → javaanse_jongens joined | 04:37 |
| ← shadowhand left | 04:37 |
| → saysjonathan joined | 04:38 |
| → tro joined | 04:38 |
| → hunterloftis joined | 04:38 |
|
hunterloftis
| Okay so, made some changes, a few commits, decided to abort them, checked out maybe 3 commits previous, want to commit this to the head now to erase those later changes... why is it so hard? | 04:38 |
| → project2501a joined | 04:38 |
| ← obrienmd left | 04:39 |
|
cirwin
| hunterloftis: because you want to use git reset, not git checkout | 04:39 |
|
| (or git revert, if you want to keep the aborted commits in history for posterity) | 04:39 |
| ← dreiss left | 04:40 |
|
hunterloftis
| cirwin: thanks... I just did revert. | 04:40 |
|
| Why would that not just be implemented as a checkout then commit? | 04:40 |
|
| I guess that's probably a deep discussion | 04:40 |
|
| Using git just out of necessity, it gets frustrating | 04:40 |
|
cirwin
| so checkout checks files out of git into the current directory | 04:41 |
|
| and sometimes changes HEAD to point to a different place | 04:41 |
|
| whereas reset moves the current branch's pointer to a different commit | 04:41 |
|
| it's quite simple underneath, but the UserInterface is full of leaky abstractions and yuck | 04:41 |
| ← fr0sty left | 04:42 |
| ← saysjonathan left | 04:42 |
|
hunterloftis
| I seem to have totally lost some files | 04:43 |
|
| No idea how | 04:43 |
|
| Damn it git | 04:43 |
|
cirwin
| did you commit them? | 04:43 |
|
hunterloftis
| I reverted to a time when those files existed, but they're still not there | 04:43 |
|
cirwin
| if so they are not lost, just hiding :p | 04:43 |
|
| what does git status say? | 04:43 |
|
hunterloftis
| on branch master, nothing to commit | 04:43 |
| ← nadim__ left | 04:43 |
|
cirwin
| ok — try "git log --all -- file_name.youve_lost" | 04:44 |
|
| it will tell you which commits that file is used it | 04:44 |
|
| *in | 04:44 |
| → nadim__ joined | 04:44 |
| → bad_mantis joined | 04:44 |
|
hunterloftis
| Yep | 04:45 |
| ← Heimidal left | 04:45 |
|
hunterloftis
| should I revert to that commit? | 04:45 |
|
cirwin
| no, "reset" | 04:45 |
| ChanServ set mode: +v | 04:45 |
| jspiros_ → jspiros | 04:45 |
|
cirwin
| revert creates new commits that undo old commits — reset moves your current branch to a better place | 04:45 |
|
hunterloftis
| I don't know that I follow the difference | 04:47 |
|
| but I'll just reset (hash) | 04:47 |
|
| my file still isn't there | 04:47 |
| → fr0sty joined | 04:48 |
|
cirwin
| now if you do git status | 04:48 |
| ← pleonasm left | 04:48 |
|
cirwin
| you will see that it should be, and you can (finally) do git checkout to get it back | 04:48 |
| → pleonasm joined | 04:48 |
| ← pleonasm left | 04:48 |
| ← ISF left | 04:48 |
|
hunterloftis
| I'm not sure I follow | 04:49 |
|
| should I checkout that same revision? | 04:49 |
|
| that I just reset to? | 04:49 |
|
cirwin
| yes | 04:49 |
| ← mw_ left | 04:49 |
|
cirwin
| you will probably need -f | 04:49 |
| → lessthanzero joined | 04:50 |
|
cirwin
| there are optimisations, but this way is safer given that I can't see what I'm doing :p | 04:50 |
|
hunterloftis
| I just did git checkout -f (that hash) and still no dice | 04:51 |
|
| I appreciate your help though | 04:51 |
| ← kanru1 left | 04:51 |
| → kanru joined | 04:52 |
| ← noahcampbell left | 04:52 |
|
cirwin
| no worries — if it all gets too much, do a tutorial | 04:52 |
|
hunterloftis
| I may look for a svn or mercurial version of github | 04:53 |
|
| This is costing my team huge amounts of time | 04:53 |
|
| Just trying to figure out simple things in git that should be simple | 04:53 |
|
| Like, there's a file I deleted 3 commits ago. I just want the file back. | 04:53 |
|
cirwin
| ah, so this commit you just reset to was the commit in which you deleted the file? | 04:53 |
|
| you need to go one back from that then.. | 04:54 |
|
| git is simple | 04:54 |
| → ISF joined | 04:54 |
|
cirwin
| and if you take out half an hour to learn it, you will get a very long way | 04:54 |
|
| but it's not easy to pick up from the "I have task X I want to do" direction | 04:54 |
|
| which is a shame | 04:54 |
| ← TanEk left | 04:54 |
|
cirwin
| bitbucket.org is mercurial github | 04:55 |
| → zeshoem joined | 04:55 |
|
hunterloftis
| awesome, thanks - and I just followed your directions again on the previous commit, and got my files back | 04:55 |
|
cirwin
| that | 04:55 |
|
| that's my fault | 04:55 |
|
hunterloftis
| But honestly it just seems like... software that's not good from a "I have a task" direction is just poorly designed software | 04:55 |
|
| Without your help I would never have figured that out | 04:55 |
|
cirwin
| it's poorly designed user interface | 04:55 |
| ← ISF left | 04:55 |
|
hunterloftis
| I'm still not sure exactly why it worked | 04:55 |
|
cirwin
| so you have to understand what goes on underneath | 04:56 |
| → ISF joined | 04:56 |
|
cirwin
| try reading "git for computer scientists" | 04:56 |
|
| it's a blog post that everyone raves about | 04:56 |
|
| it'll hopefully tell you the "why", and then you can work out the "how" | 04:56 |
|
hunterloftis
| hmm ok thanks | 04:57 |
| ← kukks left | 04:57 |
| ← hobodave left | 04:57 |
| → hobodave joined | 04:57 |
|
hunterloftis
| damn it | 04:59 |
|
| it restored the friggin directory | 04:59 |
|
| not the files in it | 04:59 |
|
| I've gotta give up on this | 04:59 |
|
| it's midnight and I've been fighting with git for hours | 04:59 |
|
cirwin
| I have a shell script that can tell you which commit each file was deleted in | 05:00 |
|
| maybe that would be useful? | 05:00 |
|
| or would you prefer to sleep | 05:00 |
|
hunterloftis
| hah that would be awesome | 05:00 |
| ← ISF left | 05:00 |
|
cirwin
| http://dpaste.org/qcnA/ | 05:00 |
|
| in order to get the files back, you'll need to go to the commit before they were deleted | 05:00 |
|
| which is <sha1>^ with a caret after the hash | 05:01 |
| ← jfkw left | 05:01 |
| ← engla left | 05:01 |
| ← kanru left | 05:02 |
| → saysjonathan joined | 05:03 |
| → kanru joined | 05:03 |
| ← jkprg left | 05:05 |
| ← Marquel left | 05:07 |
| ← coderdad left | 05:07 |
| ← saysjonathan left | 05:07 |
| ← nullvariable left | 05:08 |
| → saysjonathan joined | 05:08 |
| → infid joined | 05:08 |
| → Heimidal joined | 05:08 |
| ← lessthanzero left | 05:09 |
| → avinashhm joined | 05:10 |
| ← Heimidal left | 05:12 |
| → jkprg joined | 05:12 |
| ← jkprg left | 05:13 |
| ← saysjonathan left | 05:13 |
| → _1094kms joined | 05:13 |
| → saysjonathan joined | 05:13 |
|
hunterloftis
| cirwin: is there a way to get git to sort of "refresh?" | 05:15 |
|
| I removed some submodules | 05:15 |
|
| But it won't pick up those files to add them | 05:15 |
|
cirwin
| ahhh submodules ahhhh | 05:15 |
|
hunterloftis
| I sort of need it to "git init" again | 05:15 |
|
| Yeah I fucking hate submodules | 05:15 |
|
cirwin
| I've no idea how they work, sorry. | 05:16 |
|
hunterloftis
| hah thanks | 05:16 |
|
| neither do we :/ | 05:16 |
|
cirwin
| I don't think anyone does.. | 05:16 |
| ← avinashhm left | 05:17 |
| ← saysjonathan left | 05:18 |
| → mdance joined | 05:18 |
| → pheaver joined | 05:18 |
| → hobodave_ joined | 05:19 |
| → Utkarsh_ joined | 05:19 |
| → warthog9 joined | 05:20 |
| ← hobodave left | 05:21 |
| → dreiss joined | 05:22 |
| hobodave_ → hobodave | 05:22 |
| ← Utkarsh left | 05:23 |
| ← mdance left | 05:23 |
| → mdance joined | 05:23 |
|
mdance
| i have an opensource project tracked with GIT and was not sure which files were cache/tmp files, so my initial commits are tracking the temp files. I would like to stop these files from being tracked, so I added them to .gitignore, and tried a git rm --cached cache/tmp items. The problem I am running into is if I do a git pull on the live server, it removes these files, is there any way to have git pull ignore deletions for one pull or so | 05:23 |
|
| mething similar? | 05:23 |
| → nullvariable joined | 05:24 |
|
cirwin
| mdance: heh, interesting question — not that I know of. | 05:24 |
|
| can you just temporarily move the temp files elsewhere, then git pull, then move the files back? | 05:24 |
|
infid
| how can i checkout my git repo from my desktop to my laptop? when i do 'git clone infid@infidsnetwork:~/git/test' it says 'warning: you appear to have cloned an empty repository' | 05:24 |
|
| but it's not empty | 05:25 |
| ← Eridius left | 05:25 |
| → BiggFREE joined | 05:25 |
|
cirwin
| you want to clone the .git directory | 05:25 |
|
| :~/git/test/.git | 05:25 |
| → up_the_irons joined | 05:25 |
|
infid
| i tried that | 05:25 |
| ← Nayruden left | 05:25 |
|
cirwin
| and? | 05:25 |
|
infid
| says the same thing | 05:25 |
|
cirwin
| you definitely have committed your changes? | 05:25 |
|
infid
| yes | 05:26 |
| → natek joined | 05:26 |
|
cirwin
| bizarre | 05:26 |
| → xiangfu joined | 05:26 |
|
wereHamster
| infid: what does 'git show-ref' say in he repo on the server? | 05:26 |
| ← natek left | 05:26 |
|
infid
| er i take it back | 05:26 |
|
| git status said none of them were committed, weird, thought i did | 05:27 |
| ← project2501a left | 05:27 |
|
cirwin
| ah :) | 05:27 |
|
infid
| thanks | 05:27 |
|
| why is git so much harder to use than svn | 05:27 |
|
hunterloftis
| infid: seconded | 05:27 |
|
cirwin
| because it's more powerful | 05:27 |
|
infid
| i like that it's more powerful but it's kinda crazy | 05:27 |
|
wereHamster
| infid: it's not harder to use, but it's harder to learn | 05:28 |
|
infid
| wereHamster: yeah that's more accurate | 05:28 |
| → harshu_ joined | 05:29 |
| ← hobodave left | 05:32 |
| → avinashhm joined | 05:33 |
| ← nadavoid left | 05:33 |
| → saysjonathan joined | 05:33 |
| → hobodave joined | 05:34 |
| → project2501a joined | 05:37 |
| ← saysjonathan left | 05:38 |
| → atmos joined | 05:38 |
| ← project2501a left | 05:39 |
| ← jony left | 05:40 |
|
mdance
| hmmmm just tried an git update-index --assume-unchanged and thats not going to work as it doesnt work on directories | 05:40 |
| → LongBeach joined | 05:40 |
| ← hornswoggles left | 05:40 |
|
atmos
| is there any way to do something like 'git ls-remote [email@hidden.address] refs/heads/master@{1day}' ? | 05:41 |
| → HG` joined | 05:43 |
| ← cirwin left | 05:46 |
| ← BobJelly left | 05:49 |
| ← tty2 left | 05:50 |
| → tannern joined | 05:51 |
| → cenuij joined | 05:51 |
| ← cenuij left | 05:51 |
| → cenuij joined | 05:51 |
| → tty1 joined | 05:51 |
| → freimatz joined | 05:52 |
| ← sivy left | 05:52 |
|
tannern
| I ran into this once before I just dont remember how i fixed it, Im using `git clone ...` in a deploy script over ssh and I'm getting "host key verification failed" | 05:54 |
| → Titosemi joined | 05:54 |
| → BobJelly joined | 05:55 |
| ← madewokherd left | 05:56 |
| → saysjonathan joined | 05:56 |
| ← mdance left | 05:56 |
| → slonopotamus joined | 05:57 |
| → Pupeno joined | 05:58 |
| ← rayners left | 05:58 |
| → psankar joined | 05:59 |
| ← psankar left | 05:59 |
| → psankar joined | 05:59 |
| ← saysjonathan left | 06:00 |
| ← Textmode left | 06:02 |
| → captproton joined | 06:05 |
|
captproton
| hi all | 06:05 |
|
Auro1
| PARTY | 06:05 |
| ← Auro1 left | 06:05 |
| ← sftp left | 06:05 |
|
captproton
| how do I pull the remote master and have it overide the local master? | 06:06 |
|
atmos
| git fetch origin; git reset --hard origin/master | 06:07 |
|
captproton
| howdy atmos! How's Hancock? | 06:08 |
| → saysjonathan joined | 06:08 |
|
atmos
| shit i dunno, haven't touched it in forever :) | 06:08 |
| → ThomasLocke joined | 06:09 |
|
captproton
| atmos: funny I mention an historiclal name and someone named Locke enters | 06:09 |
| → boombatower joined | 06:10 |
| ← boombatower left | 06:10 |
| → boombatower joined | 06:10 |
|
captproton
| atmos: would you still recommend using Hancock? | 06:10 |
|
| atmos: is there something better now? | 06:10 |
|
atmos
| i dunno, there's hmac auth that a lot of people use | 06:10 |
|
| similar to the aws api | 06:10 |
|
| hancock works fine if you're ok with openid as a protocol and not calling it openid to your users | 06:10 |
|
captproton
| atmos:what's up with openid anyway? DHH doesn't like it anymore | 06:11 |
| → csanz joined | 06:12 |
|
atmos
| that's kind of a loaded question but as a protocol it's not the worst | 06:12 |
| → wack joined | 06:12 |
|
atmos
| openid on the internet is kind of a shit show because it's too difficult for users | 06:12 |
| ← saysjonathan left | 06:12 |
| → werdan7 joined | 06:12 |
|
_rane
| indeed | 06:12 |
|
atmos
| things like facebook and google auth trump them because epople can say "yeah i have one of those" | 06:12 |
|
DrNick
| there's also the fact that everybody is an openid provider, but nobody is an openid consumer | 06:13 |
| ← bad_mantis left | 06:14 |
|
devians
| the stack overflow openid isnt so bad. like 2 clicks. | 06:15 |
| → TomyLobo joined | 06:16 |
| → bousquet joined | 06:16 |
| → tiagobutzke joined | 06:17 |
| → project2501a joined | 06:17 |
| ← shiba_yu36 left | 06:19 |
| ← mdel left | 06:20 |
|
captproton
| devians: it's cool if you're a tech head, but atmos is right. | 06:20 |
| → friskd joined | 06:21 |
|
devians
| its kind of like the story of how amazon 1 click came about. | 06:21 |
| ← atmos left | 06:22 |
|
captproton
| bye atmos | 06:22 |
|
| his hip hop preso is pretty good | 06:22 |
| → saysjonathan joined | 06:25 |
| → sechrist joined | 06:26 |
| ← slonopotamus left | 06:26 |
| → Goliath joined | 06:27 |
| → jjuran joined | 06:27 |
| → cirwin joined | 06:27 |
| ← Khisanth left | 06:29 |
| ← saysjonathan left | 06:30 |
| → saysjonathan joined | 06:30 |
| → Khisanth joined | 06:30 |
| ← jmorris left | 06:30 |
| ← BiggFREE left | 06:32 |
| ← saysjonathan left | 06:35 |
| ← gbacon_ left | 06:35 |
| ← Yuffster left | 06:35 |
| → saysjonathan joined | 06:36 |
| ← psankar left | 06:36 |
| → mdel joined | 06:36 |
| → gbacon_ joined | 06:37 |
| ← mikepack left | 06:37 |
| → hakunin joined | 06:38 |
| → Zhonghua joined | 06:38 |
| ← n3m left | 06:38 |
| ← halstead left | 06:38 |
| ← Zhonghua left | 06:38 |
| → Remixman joined | 06:39 |
| ← saysjonathan left | 06:40 |
| → saysjonathan joined | 06:41 |
| ← xiangfu left | 06:43 |
| ← yuwang left | 06:44 |
| → pznate joined | 06:46 |
| ← saysjonathan left | 06:46 |
| ← pznate left | 06:46 |
| → saysjonathan joined | 06:46 |
| → unreal-dude joined | 06:47 |
|
unreal-dude
| any suggestions here for setting up and configuring gitosis on debian lenny? google is finding nothing that is especially useful... | 06:48 |
| → Halerazematt joined | 06:50 |
| ← mdel left | 06:50 |
| ← freimatz left | 06:51 |
| → TrineLocke joined | 06:51 |
| → ludde joined | 06:51 |
| ← saysjonathan left | 06:51 |
| → freimatz joined | 06:51 |
| → jony joined | 06:53 |
| ← project2501a left | 06:53 |
| ← captproton left | 06:54 |
| ← Bass10 left | 06:54 |
| → project2501a joined | 06:58 |
| ← project2501a left | 06:58 |
| → xrogaan joined | 07:00 |
| → slonopotamus joined | 07:00 |
|
xrogaan
| sup | 07:00 |
| ← cutmail left | 07:01 |
|
xrogaan
| is there a way to use git svn with an already existing git repository by commiting the current history into the svn repository ? | 07:02 |
|
| I know, it's odd, but I need to put the sources into a svn repository | 07:02 |
| → envi joined | 07:03 |
| ← zivester_ left | 07:03 |
| ← Ratler_ left | 07:05 |
| → bronson joined | 07:05 |
| → Ratler joined | 07:05 |
| → cutmail joined | 07:07 |
| → JoeCoolDesk1 joined | 07:10 |
| ← JoeCoolDesk1 left | 07:10 |
| ← slonopotamus left | 07:11 |
| ← tiagobutzke left | 07:12 |
| → cbreak_work joined | 07:12 |
| ← guardian1 left | 07:12 |
| ← jony left | 07:14 |
| ← Soliton left | 07:14 |
| → project2501a joined | 07:14 |
| ← urkud_ left | 07:15 |
| ← hakunin left | 07:16 |
| ← marc_kdab_ left | 07:17 |
| ← MikhX left | 07:17 |
| → leavittx joined | 07:17 |
| → thiago_home joined | 07:18 |
| → Zinuzoid joined | 07:18 |
| → tk8 joined | 07:18 |
| → saysjonathan joined | 07:18 |
| → Utkarsh joined | 07:18 |
| → Soliton joined | 07:18 |
| → opalka joined | 07:19 |
| ← opalka left | 07:19 |
| → opalka joined | 07:19 |
| ← Utkarsh_ left | 07:20 |
| → dc5ala joined | 07:20 |
| ← pheaver left | 07:21 |
| ← c00kiemon5ter left | 07:21 |
| ← sudonotplease left | 07:21 |
| → c00kiemon5ter joined | 07:22 |
| ← c00kiemon5ter left | 07:22 |
| → c00kiemon5ter joined | 07:22 |
| ← saysjonathan left | 07:22 |
| → saysjonathan joined | 07:23 |
| → Engin joined | 07:24 |
| ← Will| left | 07:24 |
| ← boombatower left | 07:26 |
| → Will| joined | 07:27 |
| ← saysjonathan left | 07:28 |
| ← hunterloftis left | 07:28 |
| → shiba_yu36 joined | 07:28 |
| ← LouisJB left | 07:28 |
| → boombatower joined | 07:28 |
| ← boombatower left | 07:28 |
| → boombatower joined | 07:28 |
| → rchavik joined | 07:29 |
| → hunterloftis joined | 07:29 |
| ← dreiss left | 07:29 |
| → joel_falcou joined | 07:30 |
| → tiagobutzke joined | 07:32 |
| ← hasrb left | 07:32 |
| → t_b joined | 07:36 |
| → ngng joined | 07:36 |
| → DrNick2 joined | 07:36 |
| ← DrNick left | 07:38 |
| → ph^ joined | 07:40 |
| → Marquel joined | 07:42 |
| ← jmil left | 07:42 |
| ← emptyflask left | 07:42 |
| → ayanes joined | 07:44 |
| ← ayanes left | 07:44 |
| → ayanes joined | 07:44 |
| → kipras_ joined | 07:44 |
| → mziulu joined | 07:46 |
| ← kipras_ left | 07:46 |
| → kipras joined | 07:47 |
| → chrischambers joined | 07:47 |
| ← Mage left | 07:48 |
| ← gordonjcp left | 07:48 |
| → petrux joined | 07:48 |
| → disappearedng joined | 07:48 |
| ← disappearedng left | 07:48 |
| → disappearedng joined | 07:48 |
| → saysjonathan joined | 07:49 |
| ← wack left | 07:51 |
|
cebewee
| xrogaan: I don't know if you can do git svn init on an already used repository (look at the man page); but you could | 07:52 |
| → Badiss joined | 07:52 |
| ← phantomcircuit left | 07:52 |
| → phantomcircuit joined | 07:53 |
|
cebewee
| init a new repository, put the svn stuff there, pull in the commits from your existing repository and svn dcommit it | 07:53 |
| ← saysjonathan left | 07:53 |
| → jony joined | 07:53 |
|
cebewee
| but i don't know if git-svn can handle merges and stuff | 07:53 |
| → skoop joined | 07:54 |
| ← sechrist left | 07:57 |
| → saschpe joined | 07:57 |
| ← steph021 left | 07:58 |
| → saysjonathan joined | 08:00 |
| → EricInBNE joined | 08:00 |
| ← Badiss left | 08:02 |
| ← saysjonathan left | 08:04 |
| → guardian joined | 08:05 |
| ← Schmallon left | 08:05 |
| → pfrenssen joined | 08:08 |
| → henrikbjorn joined | 08:11 |
| → Badiss joined | 08:13 |
| ← vanmik left | 08:13 |
| → vanmik joined | 08:13 |
| → teweWork joined | 08:14 |
| ← NickyP left | 08:16 |
| ← stepnem left | 08:16 |
| → psankar joined | 08:16 |
| ← psankar left | 08:16 |
| → psankar joined | 08:16 |
| → MikhX joined | 08:17 |
| ← acid_ left | 08:17 |
| → saysjonathan joined | 08:17 |
| ← tiagobutzke left | 08:18 |
| → sechrist joined | 08:18 |
| → marc_kdab_ joined | 08:19 |
| → nilesh joined | 08:20 |
|
nilesh
| How do I allow a group to write to all repos except gitosis-admin? | 08:20 |
| → linusoleander joined | 08:21 |
| ← saysjonathan left | 08:21 |
| ← cirwin left | 08:22 |
| → NickyP joined | 08:22 |
| → airborn joined | 08:23 |
| → shruggar joined | 08:24 |
| ← ericlee left | 08:24 |
| ← wliao left | 08:25 |
| → ericlee joined | 08:25 |
| → serard joined | 08:25 |
| → wliao joined | 08:25 |
| → rendar joined | 08:26 |
| ← wliao left | 08:26 |
| ← lanthan_ left | 08:27 |
| ← linusoleander left | 08:27 |
| ← _rane left | 08:27 |
| → tewecske joined | 08:27 |
| → wliao joined | 08:27 |
| ← cutmail left | 08:28 |
| → runde joined | 08:28 |
| ← wliao left | 08:28 |
| → wliao joined | 08:29 |
| ← wliao left | 08:30 |
| → wliao joined | 08:31 |
| → larsrh joined | 08:31 |
| ← spike left | 08:32 |
| ← wliao left | 08:32 |
| → thierryp joined | 08:32 |
| → wliao joined | 08:32 |
| → cilly joined | 08:32 |
| → cutmail joined | 08:32 |
| ← mziulu left | 08:33 |
| → saysjonathan joined | 08:33 |
| ← ph^ left | 08:34 |
| ← iAsteris_ left | 08:35 |
| → kreemer joined | 08:36 |
| → Halerazematt_ joined | 08:36 |
| ← jony left | 08:36 |
| → jony joined | 08:36 |
| → radarek joined | 08:36 |
| adamholt → adamholt_away | 08:37 |
| adamholt_away → adamholt | 08:37 |
| ← opalka left | 08:37 |
| → hegge joined | 08:37 |
| ← saysjonathan left | 08:38 |
| → nevyn^ joined | 08:38 |
| → Gunni joined | 08:38 |
| → petrux_ joined | 08:39 |
| → ph^ joined | 08:39 |
| ← Halerazematt left | 08:39 |
| → mastro joined | 08:41 |
| ← t_b left | 08:41 |
| ← petrux left | 08:41 |
| → goshawk joined | 08:41 |
| → deuterium joined | 08:41 |
| → bradleyayers joined | 08:41 |
| → iAsterisk joined | 08:42 |
| → dpino joined | 08:43 |
| → tvw joined | 08:43 |
| → psoo joined | 08:43 |
| adamholt → adamholt_away | 08:44 |
| adamholt_away → adamholt | 08:44 |
| → saysjonathan joined | 08:45 |
| ← amerine left | 08:46 |
| ← logankoe1ter left | 08:46 |
| → linusoleander joined | 08:47 |
| ← ph^ left | 08:48 |
| ← jjuran left | 08:49 |
| ← saysjonathan left | 08:49 |
| ← thiago_home left | 08:50 |
| → rane_ joined | 08:50 |
| → ph^ joined | 08:50 |
| ← OOPMan left | 08:51 |
| adamholt → adamholt_away | 08:52 |
| adamholt_away → adamholt | 08:52 |
| ← shruggar left | 08:52 |
| ← bradleyayers left | 08:53 |
| adamholt → adamholt_away | 08:53 |
| → makkes joined | 08:53 |
| adamholt_away → adamholt | 08:54 |
| → logankoester joined | 08:55 |
| → priidu joined | 08:55 |
| ← vanmik left | 08:56 |
| → saysjonathan joined | 08:57 |
| ← justin_george left | 08:57 |
| ← makkes left | 08:57 |
| ← rns left | 08:58 |
| → davzie joined | 08:58 |
| → stepnem joined | 09:00 |
| → Nickeeh joined | 09:00 |
| → tatsuya joined | 09:01 |
| ← saysjonathan left | 09:01 |
| → ch077179 joined | 09:02 |
| → saysjonathan joined | 09:02 |
| ← avinashhm left | 09:02 |
| → jjuran joined | 09:02 |
| → fr0sty|mobile joined | 09:03 |
|
Nickeeh
| I accidently merged A with some other local branch B without --no-ff, but I actually want to. How do I redo my merge? Should I reset HEAD to the head of A to where it was before fast-forwarding B on it, then git merge --no-ff? | 09:05 |
|
| I haven't pushed my changes, of course. | 09:05 |
|
cbx33
| that's what I would think | 09:05 |
|
| but I'm no expert | 09:05 |
|
cbreak_work
| it's a reasonable thing to do | 09:05 |
| ← robotarmy left | 09:05 |
|
cbreak_work
| you could also chose to live with a nicely linear history | 09:06 |
| ← harshu_ left | 09:06 |
| ← saysjonathan left | 09:06 |
| → saysjonathan joined | 09:07 |
| → leo2007 joined | 09:09 |
| → doub joined | 09:09 |
|
Nickeeh
| cbreak_work: well, I like to know where my work was done. All the commits on branch A are commit's we're gonna release. | 09:10 |
|
| I think it looks nice. | 09:10 |
| → harshu joined | 09:10 |
|
doub
| Hi! I have some trouble related to msysgit, is this the right place to ask for help? | 09:11 |
| ← saysjonathan left | 09:11 |
| → rns joined | 09:11 |
| → ExtraSpice joined | 09:12 |
| ← dr_lepper left | 09:12 |
| → saysjonathan joined | 09:12 |
| → dr_lepper joined | 09:13 |
| ← dr_lepper left | 09:13 |
| → dr_lepper joined | 09:13 |
| → sechrist_ joined | 09:13 |
| ← shiba_yu36 left | 09:13 |
| → j416 joined | 09:15 |
| → shiba_yu36 joined | 09:17 |
| ← saysjonathan left | 09:17 |
| ← sechrist left | 09:17 |
| → RobertMeta joined | 09:18 |
| ← RobertMeta left | 09:18 |
| → RobertMeta joined | 09:18 |
| → saysjonathan joined | 09:18 |
| → Saur joined | 09:18 |
|
fr0sty|mobile
| doub: it's _a_ place to ask... | 09:19 |
|
doub
| ok, i'll have a try then :-) | 09:19 |
| ← Saur left | 09:19 |
|
doub
| i'm accessing a private gitorious repository with msysgit over ssh, and i can do most operations without problem | 09:20 |
| ← MetaCosm_ left | 09:20 |
| → nd___ joined | 09:20 |
| → dpino_ joined | 09:21 |
| ← dpino left | 09:21 |
|
doub
| but when I try to push, the command ends in a "fatal: The remote end hung up unexpectedly". the push actually succeeded (the remote repository is in the correct state), but the remote branch in my local repository has not been updated (i need to do a git fetch to update it) | 09:21 |
| ← saysjonathan left | 09:22 |
|
Arrowmaster
| sounds more like a gitorious problem than a msysgit problem | 09:22 |
|
doub
| I think the problem appeared when the remote repo admin added some push hooks that display sends some text to the client | 09:22 |
| ← nd___ left | 09:22 |
|
Arrowmaster
| sounds extremely likely | 09:22 |
|
doub
| all my colleagues can push without problem (even some on windows), so there is a problem on my computer | 09:23 |
| → nd__ joined | 09:23 |
| → saysjonathan joined | 09:23 |
|
nd__
| Aloha… I wonder, how can I use a separate ssh key for pushing? I do not want to use my default key for one project… | 09:23 |
|
Nickeeh
| ... | 09:24 |
|
| nd__: why would you not want to do that? | 09:24 |
|
charon
| nd__: man ssh_config | 09:25 |
|
nd__
| charon: Only for working with one repository... | 09:26 |
|
charon
| nd__: you can define aliases of sorts that refer to some real hostname, and use that | 09:26 |
|
nd__
| Nickeeh: Because it seems I cannot add my public key to two separate projects on github and so far I don't see the possiblity to have commit access on both accounts. | 09:26 |
|
charon
| nd__: cf. the "hostname" setting | 09:27 |
|
nd__
| charon: Ah, nice... that helps. Thanks | 09:27 |
| ← saysjonathan left | 09:27 |
| → Farsinsen joined | 09:28 |
| ← Farsinsen left | 09:28 |
| ← nevyn^ left | 09:28 |
| → nevyn^_ joined | 09:28 |
| ← samhassell left | 09:29 |
| → spaceonline joined | 09:29 |
| → darkredandyellow joined | 09:30 |
| → benishor joined | 09:31 |
| → ChUrP joined | 09:32 |
| → f00li5h joined | 09:32 |
| ← nilesh left | 09:33 |
| ← boombatower left | 09:34 |
| ← pfrenssen left | 09:35 |
| → mabrand joined | 09:35 |
| ← darkredandyellow left | 09:38 |
| → darkredandyellow joined | 09:39 |
| ← petrux_ left | 09:39 |
| → t_b joined | 09:39 |
| → avinashhm joined | 09:39 |
| → ningia joined | 09:40 |
| → saysjonathan joined | 09:41 |
| ← ketas left | 09:43 |
| ← BobJelly left | 09:43 |
| → jhaddad_ joined | 09:44 |
| ← jhaddad_ left | 09:44 |
| ← jhaddad left | 09:45 |
| ← MikhX left | 09:45 |
| ← saysjonathan left | 09:45 |
| → jhaddad joined | 09:45 |
| → smuf joined | 09:45 |
| → bluenovember joined | 09:48 |
| → BobJelly joined | 09:48 |
| ← ch077179 left | 09:49 |
| ← logankoester left | 09:50 |
| → opalka joined | 09:50 |
| ← opalka left | 09:50 |
| → opalka joined | 09:50 |
| → OOPMan joined | 09:52 |
| → urkud_ joined | 09:54 |
| ← marc_kdab_ left | 09:54 |
| ← opalka left | 09:55 |
| → randomsort joined | 09:56 |
| → pfrenssen joined | 09:57 |
| ← urkud_ left | 09:58 |
| → saysjonathan joined | 09:59 |
| → logankoester joined | 10:01 |
| ← saysjonathan left | 10:03 |
| → saysjonathan joined | 10:04 |
| ← a9b left | 10:05 |
| → shruggar joined | 10:07 |
| → marc_kdab_ joined | 10:08 |
| ← saysjonathan left | 10:08 |
| → saysjonathan joined | 10:09 |
| ← ngng left | 10:12 |
| → curtana joined | 10:12 |
| → ngng joined | 10:12 |
| ← ngng left | 10:12 |
| → bradleyayers joined | 10:13 |
| → mkramer joined | 10:13 |
| ← saysjonathan left | 10:14 |
| ← angelsl left | 10:17 |
| ← hyperair left | 10:18 |
| ← bousquet left | 10:18 |
| → Behi joined | 10:18 |
| → saysjonathan joined | 10:21 |
| → angelsl joined | 10:21 |
| → fr0sty|android joined | 10:23 |
| ← nevyn^_ left | 10:25 |
| → nevyn^ joined | 10:25 |
| ← saysjonathan left | 10:25 |
| → saysjonathan joined | 10:26 |
| ← Buglouse left | 10:26 |
| ← serard left | 10:26 |
| ← fr0sty|mobile left | 10:26 |
| ← cenuij left | 10:27 |
| → sudonotplease joined | 10:28 |
| ← jds left | 10:29 |
| ← saysjonathan left | 10:30 |
| → drizzd_ joined | 10:31 |
| → saysjonathan joined | 10:31 |
| ← hyperboreean left | 10:32 |
| → hyperboreean joined | 10:32 |
| ← Utkarsh left | 10:32 |
| ← drizzd left | 10:34 |
| ← cutmail left | 10:34 |
| ← saysjonathan left | 10:36 |
| ← Remixman left | 10:36 |
| → saysjonathan joined | 10:37 |
| → xiong joined | 10:38 |
| → Halerazematt joined | 10:38 |
| ← tvw left | 10:38 |
| ← bgerber left | 10:40 |
| ← saysjonathan left | 10:42 |
| ← Halerazematt_ left | 10:42 |
| → saysjonathan joined | 10:42 |
| → bgerber joined | 10:42 |
| → ketas joined | 10:43 |
| ← wliao left | 10:44 |
| ← kipras left | 10:44 |
| → kipras_ joined | 10:44 |
| ← saysjonathan left | 10:46 |
| → mizar99 joined | 10:47 |
| ← Weust`_ left | 10:47 |
| → icwiener joined | 10:48 |
| ← mizar99 left | 10:48 |
| ← stliu left | 10:49 |
| ← shiba_yu36 left | 10:50 |
| → saysjonathan joined | 10:53 |
| → jhoepken joined | 10:54 |
| ← saysjonathan left | 10:58 |
| ← dwmw2_gone_ left | 10:58 |
| → dwmw2_gone_ joined | 10:58 |
| → samhassell joined | 10:58 |
| → saysjonathan joined | 10:59 |
| ← deryl left | 10:59 |
| → deryl joined | 11:00 |
| ← linusoleander left | 11:01 |
| → Titosemi1 joined | 11:01 |
| ← harshu left | 11:01 |
| → urkud_ joined | 11:02 |
| → marcob joined | 11:02 |
| ← saysjonathan left | 11:03 |
| → harshu joined | 11:03 |
| ← Titosemi left | 11:04 |
| → petrux joined | 11:04 |
| → saysjonathan joined | 11:04 |
| → harshu___ joined | 11:04 |
| → alfadir joined | 11:05 |
| → koltroll joined | 11:08 |
| ← deryl left | 11:08 |
| → pulse00 joined | 11:08 |
| ← saysjonathan left | 11:09 |
|
pulse00
| hi there. is there a way i can make git overwrite untracked files when i pull a remote branch? we're getting "untracked working tree files would be overwritten by merge" | 11:09 |
| → saysjonathan joined | 11:09 |
| → juangiordana joined | 11:10 |
|
rane_
| try -f | 11:11 |
|
pulse00
| tried that already, getting the same error | 11:11 |
|
rane_
| can't you just remove the files? | 11:11 |
|
bremner
| pulse00: you could see man git-clean | 11:11 |
|
jast
| pulse00: the 'git-clean' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-clean.html [automatic message] | 11:11 |
| → deryl joined | 11:12 |
|
pulse00
| it's happening too often, and manually removing them would take too long. we're looking for some automated to get rid of the problem | 11:12 |
|
rane_
| git clean -f | 11:12 |
|
| removes untracked files | 11:12 |
|
pulse00
| the problem with that is that it also seems to remove files from .gitignore | 11:12 |
|
bremner
| no | 11:12 |
|
| not without -x | 11:13 |
|
pulse00
| ok, when i run clean -f i get "not removing path/to/file" | 11:13 |
|
Nickeeh
| clean -fd | 11:13 |
|
| "directories" | 11:13 |
|
| it won't remove directories bij default | 11:13 |
|
pulse00
| well, that definitifely removes files from gitignore in our setup | 11:14 |
| ← saysjonathan left | 11:14 |
|
Nickeeh
| it won't | 11:14 |
| → saysjonathan joined | 11:14 |
|
bremner
| pulse00: that would be a serious bug | 11:14 |
|
fr0sty|android
| indeed | 11:14 |
| → RaceCondition joined | 11:15 |
| → Determinist joined | 11:16 |
|
pulse00
| well, then it has a bug, because it just deleted the files from .gitignore | 11:17 |
| → serard joined | 11:18 |
|
pulse00
| our gitignore has the following line: lib/model/doctrine/base/* and "git clean -f -d" just deleted the directory | 11:18 |
|
bremner
| if you can duplicate this, you should send a message to the git mailing list. | 11:18 |
| ← saysjonathan left | 11:18 |
|
fr0sty|android
| was the directory empty? | 11:19 |
|
pulse00
| no | 11:19 |
|
| it contains autogenerated files | 11:19 |
| → saysjonathan joined | 11:19 |
|
fr0sty|android
| and there are no other .gitignore files in that path? | 11:20 |
|
pulse00
| there are a lot more | 11:20 |
| ← Silowyi left | 11:20 |
|
pulse00
| ah sorry, not in that path | 11:20 |
| ← bradleyayers left | 11:20 |
|
pulse00
| but there are other paths in .gitignore | 11:20 |
|
fr0sty|android
| any negating patterns? (start with !) | 11:21 |
|
pulse00
| no | 11:21 |
|
fr0sty|android
| can you paste an example to gist.github.com? | 11:21 |
| → d0k joined | 11:22 |
| → bentob0x joined | 11:22 |
|
fr0sty|android
| include git --version | 11:22 |
|
pulse00
| an example of the .gitignore? | 11:23 |
|
fr0sty|android
| create a file, demonstrate that it is being ignored, run git clean and show that it was removed. | 11:23 |
| ← saysjonathan left | 11:23 |
| ← gretch left | 11:24 |
|
fr0sty|android
| including your .gitignore might help too, | 11:24 |
|
| your info/excludes as well. | 11:25 |
| ← deryl left | 11:25 |
| → saysjonathan joined | 11:25 |
| ← josue left | 11:26 |
| → winterweaver joined | 11:29 |
| ← saysjonathan left | 11:29 |
| ← Ruudjah left | 11:30 |
| → Halerazematt_ joined | 11:30 |
| → saysjonathan joined | 11:30 |
| → linusoleander joined | 11:32 |
| ← Halerazematt left | 11:32 |
| → consolers joined | 11:32 |
|
pulse00
| https://gist.github.com/829237 | 11:33 |
| → tvw joined | 11:33 |
| ← saysjonathan left | 11:35 |
| ← davzie left | 11:35 |
| → deryl joined | 11:35 |
|
pulse00
| update https://gist.github.com/829237 which shows that the file existed | 11:35 |
| → davzie joined | 11:36 |
| → j0su3 joined | 11:36 |
| ← error_developer_ left | 11:37 |
|
fr0sty|android
| can you humor me and do git status before git clean? | 11:39 |
| ← psankar left | 11:39 |
| ← consolers left | 11:41 |
| → workmad3 joined | 11:41 |
|
fr0sty|android
| man git-clean | 11:41 |
|
jast
| the 'git-clean' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-clean.html [automatic message] | 11:41 |
| → saysjonathan joined | 11:42 |
| ← normanrichards left | 11:42 |
| → fr0sty|mobile joined | 11:43 |
| ← fr0sty|android left | 11:46 |
| ← saysjonathan left | 11:46 |
|
fr0sty|mobile
| pulse00: you have me intrigued, but i have to run. I'll be back later. | 11:47 |
| → saysjonathan joined | 11:47 |
|
pulse00
| updated version with git status before clean: https://gist.github.com/829237 | 11:48 |
| ← BobJelly left | 11:50 |
| ← saysjonathan left | 11:51 |
| → dreiss joined | 11:51 |
| → saysjonathan joined | 11:52 |
| → EugenA joined | 11:53 |
| → Dave^| joined | 11:53 |
|
EugenA
| my .gitignor file is being ignored by git, i don't want to commint some files | 11:53 |
| ← smuf left | 11:53 |
|
EugenA
| why? | 11:53 |
|
rane_
| you have those files tracked | 11:54 |
|
EugenA
| rane_: git rm ? | 11:55 |
| → sjokkis_ joined | 11:55 |
| → BobJelly joined | 11:55 |
| ← sjokkis_ left | 11:56 |
| ← saysjonathan left | 11:56 |
| → sjokkis joined | 11:57 |
|
sjokkis
| i know i can partially add a file with git add -p [file], however, this only works if the file is already under version control. how do i do this with a file that isn't already in git? | 11:57 |
| → saysjonathan joined | 11:57 |
|
rane_
| you don't because the whole file is new to git | 11:57 |
| → Error404NotFound joined | 11:58 |
|
rane_
| there are no hunks | 11:58 |
|
sjokkis
| rane_: but i only want to stage part of it. is that impossible? | 11:58 |
|
rane_
| edit the file to match what you want to stage | 11:58 |
| ← samhassell left | 12:00 |
|
sjokkis
| thanks | 12:01 |
| ← saysjonathan left | 12:02 |
| → hyperair joined | 12:02 |
| ← workmad3 left | 12:02 |
| → workmad3 joined | 12:03 |
| → marcosiegl joined | 12:04 |
| ← koltroll left | 12:04 |
| ← sechrist_ left | 12:05 |
| → Yuuhi joined | 12:06 |
| → MacGyverNL_ joined | 12:06 |
| ← MacGyverNL_ left | 12:06 |
| → MacGyverNL_ joined | 12:06 |
| ← workmad3 left | 12:06 |
| → saysjonathan joined | 12:09 |
| ← project2501a left | 12:09 |
| ← MacGyverNL left | 12:09 |
| → jcromartie joined | 12:09 |
| → djkk joined | 12:10 |
| ← djkk left | 12:11 |
| → _ollie joined | 12:11 |
| ← dreiss left | 12:11 |
| ← jdav_gone left | 12:11 |
| ← goshawk left | 12:11 |
| → dreiss joined | 12:12 |
| ← _ollie left | 12:13 |
| ← saysjonathan left | 12:13 |
|
fr0sty|mobile
| pulse00: 1.7.3.2 has the same issue, it seems. I will look into this more later... | 12:13 |
| ← hyperair left | 12:14 |
| → saysjonathan joined | 12:14 |
| → Saur joined | 12:15 |
| → samhassell joined | 12:15 |
| ← Saur left | 12:15 |
| → jdav_gone joined | 12:16 |
|
EugenA
| git commit --amend --author='Your Name [email@hidden.address] | 12:16 |
|
| what means --amend? | 12:16 |
| → hyperair joined | 12:17 |
| ← radarek left | 12:17 |
| ← saysjonathan left | 12:18 |
| → cwillu_at_work joined | 12:18 |
|
pulse00
| fr0sty|mobile: thanks | 12:18 |
|
LoRe
| EugenA: "to amend" is a synonym for "to correct" | 12:19 |
| → saysjonathan joined | 12:19 |
| ← _Vi left | 12:20 |
| ← Determinist left | 12:22 |
|
EugenA
| oh.. ok, thanks :-) | 12:22 |
| → Determinist joined | 12:22 |
|
wereHamster
| EugenA: see man git-commit | 12:23 |
|
jast
| EugenA: the 'git-commit' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-commit.html [automatic message] | 12:23 |
| ← saysjonathan left | 12:23 |
|
wereHamster
| sjokkis: git add -N <file> && git add -p <file> | 12:24 |
|
| rane_: ^^^ | 12:24 |
|
EugenA
| visit linus torvalds sometimes this irc channel? | 12:24 |
|
wereHamster
| no | 12:24 |
| → saysjonathan joined | 12:25 |
| ← tk8 left | 12:28 |
|
sjokkis
| wereHamster: i already fixed it, but that is more elegant | 12:29 |
| ← saysjonathan left | 12:30 |
| → Utkarsh joined | 12:30 |
| → saysjonathan joined | 12:30 |
| → josue joined | 12:32 |
| ← j0su3 left | 12:33 |
| ← saysjonathan left | 12:35 |
| → saysjonathan joined | 12:35 |
| ← deuterium left | 12:38 |
| ← saysjonathan left | 12:40 |
| → saysjonathan joined | 12:40 |
| ← stamina__ left | 12:40 |
| → stamina_ joined | 12:41 |
| ← EugenA left | 12:42 |
| ← dreiss left | 12:43 |
| ← jcromartie left | 12:44 |
| ← j416 left | 12:44 |
| ← saysjonathan left | 12:44 |
|
sgronblo
| Linus probably only uses mailing lists | 12:45 |
| → saysjonathan joined | 12:45 |
|
alfadir
| need some advice how to set up two git project that depend on eachother. www-templates (general templates) www-site (site specific implementation). i would like to "vendor drop" in changes when the www-template gets updated. directory structure is different but www-template:/style/x would be placed in www-site:path/style/y. is this at all possible or is there another recepie availible ? | 12:46 |
| → tb_1 joined | 12:46 |
| ← teuf left | 12:46 |
| → ymasory joined | 12:46 |
| ← ymasory left | 12:46 |
|
cebewee
| alfadir: have you already looked into submodules? | 12:47 |
|
alfadir
| yes.. but.. have not really been able to map the method to how i should do it.. but will read more | 12:48 |
|
| reading http://book.git-scm.com/5_submodules.html | 12:48 |
| ← jony left | 12:48 |
|
alfadir
| and http://stackoverflow.com/questions/769786/vendor-branches-in-git | 12:49 |
| ← t_b left | 12:49 |
|
alfadir
| a submodule is a full git ? i only need a part.. of the git .. the template dir. | 12:49 |
| ← saysjonathan left | 12:50 |
| → opalka joined | 12:50 |
| ← opalka left | 12:50 |
| → opalka joined | 12:50 |
| ← _Ants_ left | 12:50 |
| → saysjonathan joined | 12:51 |
|
alfadir
| cebewee: answer 2 from Paul at http://stackoverflow.com/questions/769786/vendor-branches-in-git seems to make most sense. but not sure how to set that up | 12:52 |
| → EugenA joined | 12:52 |
|
alfadir
| well will read more about subtree merge | 12:53 |
|
EugenA
| i'd like to commint only subdir from my project dir | 12:53 |
| ← saysjonathan left | 12:55 |
|
alfadir
| kind of this unanswered question http://stackoverflow.com/questions/4994018/how-to-replace-svns-sub-directory-vendor-branch-with-gits-subtree-merge | 12:55 |
|
| well will read more pointers welcomed. | 12:56 |
| → orm_ joined | 12:56 |
|
orm_
| heyo, more repo problems. For a while now, I have been asked to enter my password multiple times only to have git spit back at me that I failed to authenticate too many times. then after that initial round, i try again and it works. what is the deal? | 12:56 |
|
cebewee
| alfadir: Sorry, I have to leave now | 12:56 |
| → deuterium joined | 12:59 |
| → goshawk joined | 12:59 |
| ← hobodave left | 12:59 |
| → saysjonathan joined | 13:02 |
| → EnginA joined | 13:02 |
|
alfadir
| cebewee: thanks anyway | 13:03 |
|
| found this, which at least formulates my thinking (used svn for quite some time) will read up on submodules | 13:03 |
|
| http://stackoverflow.com/questions/677393/tracking-3rd-party-code-with-git | 13:03 |
| → bad_mantis joined | 13:04 |
| ← bad_mantis left | 13:04 |
| ← Engin left | 13:05 |
| → natek joined | 13:06 |
| ← saysjonathan left | 13:06 |
| ← teweWork left | 13:07 |
| q0rban|afk → q0rban | 13:07 |
| ← hyperair left | 13:07 |
| → saysjonathan joined | 13:08 |
| → radarek joined | 13:08 |
| → teuf joined | 13:09 |
| → mattayers joined | 13:09 |
| → sternocera joined | 13:10 |
| ← freimatz left | 13:10 |
| ← nullvariable left | 13:10 |
| → nullvariable joined | 13:11 |
| ← saysjonathan left | 13:12 |
| → saysjonathan joined | 13:13 |
| ← MetaCosm left | 13:14 |
| ← a7ndrew left | 13:14 |
| → vitor-br joined | 13:14 |
| → MetaCosm joined | 13:14 |
| ← MetaCosm left | 13:14 |
| → MetaCosm joined | 13:14 |
| → Metathink joined | 13:15 |
|
Metathink
| hi | 13:15 |
| → MetaCosm_ joined | 13:15 |
| ← rchavik left | 13:17 |
| ← saysjonathan left | 13:17 |
| ← RobertMeta left | 13:17 |
| ← samhassell left | 13:18 |
| → holsta joined | 13:18 |
| ← dpino_ left | 13:18 |
| → saysjonathan joined | 13:18 |
| ← pasky left | 13:18 |
|
Metathink
| I'm trying to understand with gitolite, when and how the conf/gitolite.conf is analysed after a push to perform some actions like create new repos, updating permissions, etc. Any help please ? | 13:18 |
| ← tek0 left | 13:19 |
|
cbreak_work
| Metathink: do you know what a git hook is? | 13:19 |
|
Metathink
| yes, but i don't find where is the script who perform the parsing of gitolite.conf | 13:20 |
| → _Vi joined | 13:21 |
|
cbreak_work
| just look in the hooks of the admin repo on the server | 13:21 |
|
| it should be called from there | 13:21 |
| → freimatz joined | 13:21 |
|
cbreak_work
| or wait for sitaram to be around | 13:21 |
| → gebi joined | 13:23 |
| ← gebi left | 13:23 |
| → gebi joined | 13:23 |
| → pasky joined | 13:23 |
| ← marcosiegl left | 13:23 |
| ← saysjonathan left | 13:23 |
| → mdel joined | 13:23 |
| → marcosiegl joined | 13:23 |
| → saysjonathan joined | 13:23 |
| ← marcosiegl left | 13:23 |
| → soc42 joined | 13:24 |
| → jfkw joined | 13:25 |
| ← saysjonathan left | 13:28 |
| ← rns left | 13:28 |
| → tek0 joined | 13:29 |
| → g0bl1n joined | 13:29 |
|
Metathink
| I think i found it, it's a perl script named gl-compile-conf | 13:29 |
| → girishr joined | 13:29 |
|
EugenA
| git branch -a | 13:30 |
|
| i see only one line: remotes/origin/master | 13:30 |
|
| what does it mean? | 13:30 |
| ← girishr left | 13:30 |
|
EugenA
| "remotes/origin/master" is the name of the branch? | 13:30 |
|
cbreak_work
| EugenA: it's very likely that that's a remote tracking branch | 13:31 |
|
| so you have a remote called origin, and that has a master branch | 13:32 |
| → lol_h joined | 13:32 |
|
EugenA
| i've done git remote add origin ssh://.... and afte that git fetch | 13:33 |
| ← mdel left | 13:33 |
|
cbreak_work
| yes. sounds like it worked | 13:33 |
| ← RaceCondition left | 13:33 |
| → Eelis joined | 13:33 |
|
EugenA
| now i still don't see any files in my dir, i should do "git checkout", right? | 13:33 |
|
cbreak_work
| git checkout -t origin/master | 13:33 |
|
| that will create a new branch, master, just for you | 13:34 |
|
| which tracks origin's master | 13:34 |
| → RaceCondition joined | 13:34 |
|
EugenA
| why should i do -t origin/master and not -t remotes/origin/master ? | 13:34 |
| ← Eelis left | 13:35 |
| → Eelis joined | 13:35 |
|
Eelis
| when i do "git show HEAD" i get a complete diff of all the changes made by that commit. how do i get something resembling the output of "git status -s" instead, where i can just see the number of additions/removals per file? | 13:35 |
| ← bentob0x left | 13:35 |
| → saysjonathan joined | 13:35 |
|
wereHamster
| Eelis: git diff --stat HEAD^! | 13:35 |
| ← harshu___ left | 13:35 |
|
Eelis
| perfect! thanks :) | 13:35 |
|
wereHamster
| Eelis: or even show --stat | 13:35 |
| ← mattayers left | 13:35 |
|
Eelis
| ah, even better. thanks! | 13:35 |
| ← EricInBNE left | 13:36 |
| → mattayers joined | 13:36 |
| ← RaceCondition left | 13:36 |
|
cbx33
| hey all | 13:36 |
|
| cbreak_work: you got a sec for a pm? | 13:37 |
| → IslandUsurper joined | 13:37 |
| ← harshu left | 13:37 |
| silex → Silex | 13:39 |
| → RaceCondition joined | 13:39 |
|
EugenA
| cbreak_work: how should i commit? | 13:39 |
| ← saysjonathan left | 13:39 |
|
sitaram
| Metathink: ping | 13:39 |
|
EugenA
| if i try git commit, i get info: Changed but not updated: myfile.txt | 13:40 |
|
wereHamster
| EugenA: looks like you haven't staged anything yet | 13:40 |
| → saysjonathan joined | 13:40 |
| → LouisJB joined | 13:41 |
|
EugenA
| wereHamster: what should i do? how do i stage? i'm new to git | 13:41 |
|
wereHamster
| EugenA: http://progit.org | 13:41 |
| → ben_alman_ joined | 13:42 |
| ← saysjonathan left | 13:44 |
|
EugenA
| wereHamster: should i do git add? | 13:45 |
| → flaguy48 joined | 13:45 |
| → saysjonathan joined | 13:46 |
| ← dyer left | 13:46 |
| ← ben_alman left | 13:46 |
| → teweWork joined | 13:47 |
|
cbreak_work
| EugenA: read a basic tutorial | 13:47 |
| ← ben_alman_ left | 13:47 |
| → xiangfu joined | 13:49 |
|
EugenA
| cbreak_work: i don't have basic config here... | 13:49 |
| → Ryback_ joined | 13:49 |
| ← Ryback_ left | 13:49 |
| → Ryback_ joined | 13:49 |
|
EugenA
| remote origin... and so on.. | 13:50 |
| ← saysjonathan left | 13:51 |
| ← sh4rm4 left | 13:51 |
| → sh4rm4 joined | 13:51 |
| → saysjonathan joined | 13:51 |
| → Ruudjah joined | 13:52 |
| ← soc42 left | 13:52 |
|
Davey
| what happens when I merge two branches which have cherry-picked commits from one to the other already committed? conflicts? | 13:55 |
| ← saysjonathan left | 13:55 |
| → tstclair joined | 13:56 |
|
teuf
| Davey: git should be smart enough to detect they are the same patches | 13:56 |
| → saysjonathan joined | 13:56 |
|
Davey
| teuf: OK, so if I rebase squash the manual merges, and cherry-pick instead, that might be a way to fix up my (from svn) history? | 13:56 |
| → normanrichards joined | 13:57 |
| → smolyn joined | 13:57 |
|
wereHamster
| EugenA: man gittutorial | 13:57 |
|
jast
| EugenA: the 'gittutorial' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html [automatic message] | 13:57 |
| Silex → silex | 13:58 |
|
teuf
| Davey: no idea what you are trying to achieve :) | 13:58 |
| → Maletor joined | 13:58 |
| ← BobJelly left | 13:59 |
| → coderdad joined | 13:59 |
| ← saysjonathan left | 14:00 |
| → ch077179 joined | 14:00 |
| → saysjonathan joined | 14:01 |
| silex → Silex | 14:02 |
| → BobJelly joined | 14:02 |
| ← GaVrA left | 14:04 |
| → globik joined | 14:04 |
|
alfadir
| cebewee: fyi, i think i have found my solution here (subtree merge) : http://support.github.com/discussions/repos/4733-merging-a-subdirectory-of-remote-branch-into-a-subdirectory-on-my-fork | 14:04 |
|
SethRobertson
| alfadir: Some workflows work better with gitslave than git-submodules or subtree merge. But those are your options | 14:05 |
|
cebewee
| alfadir: ah, fine | 14:05 |
|
| alfadir: have you seen http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html? | 14:06 |
| ← normanrichards left | 14:06 |
| → zivester_ joined | 14:06 |
| ← kreemer left | 14:06 |
| ← saysjonathan left | 14:06 |
| → emptyflask joined | 14:06 |
| ← emptyflask left | 14:06 |
|
alfadir
| yes, but http://progit.org/book/ch6-7.html was the first reference that really rung a bell :) | 14:06 |
| → emptyflask joined | 14:06 |
|
cebewee
| ok :) | 14:06 |
|
alfadir
| then the subdir trick i found via google :) | 14:06 |
|
| SethRobertson: ok, have not yet read about gitslave.. will see how that fits my model | 14:07 |
|
SethRobertson
| http://gitslave.sf.net | 14:07 |
|
alfadir
| SethRobertson: thanks | 14:07 |
| → nonnooo joined | 14:08 |
|
SethRobertson
| Basically to support third parties (not the normal use case) you might have local masters for those third parties. But the purpose of gitslave is to keep all repos at the tip of their branches, and eliminates the tracking of what subrepo revisions you were at when a superrepo commit was made | 14:09 |
|
| In exchange for losing that, it is much more intuitive to use. | 14:10 |
| → Pewpewarrows joined | 14:12 |
| → engla joined | 14:12 |
| ← engla left | 14:12 |
| → engla joined | 14:12 |
| → saysjonathan joined | 14:13 |
| ← vmiklos left | 14:14 |
| ← linusoleander left | 14:15 |
| → vmiklos joined | 14:15 |
| → lessthanzero joined | 14:15 |
|
lessthanzero
| I have a git repo and I'd like to "add" someone's fork. do I simply git remote add and pull forkedrepo master ? | 14:15 |
| → linusoleander joined | 14:16 |
| ← vmiklos left | 14:16 |
| ← ph^ left | 14:16 |
| ← LouisJB left | 14:17 |
| ← saysjonathan left | 14:17 |
| → saysjonathan joined | 14:18 |
| ← linusoleander left | 14:18 |
| → koltroll joined | 14:18 |
| → linusoleander joined | 14:19 |
| → vanmik joined | 14:19 |
|
engla
| lessthanzero: add the fork as a remote, use git fetch to update the remote tracking branches. use pull only if you want to merge | 14:19 |
| → agile joined | 14:19 |
| → vmiklos joined | 14:20 |
| → zombor_ joined | 14:20 |
| → dyer joined | 14:20 |
| ← dyer left | 14:20 |
| → dyer joined | 14:20 |
| zombor_ → zombor | 14:21 |
| → normanrichards joined | 14:21 |
| ← tek0 left | 14:21 |
| → GaVrA joined | 14:21 |
| → tek0 joined | 14:22 |
| ← saysjonathan left | 14:22 |
| → saysjonathan joined | 14:23 |
| ← zorzar_ left | 14:23 |
| → sivy joined | 14:23 |
| → wysek joined | 14:23 |
| → mdel joined | 14:23 |
| ChanServ set mode: +v | 14:25 |
|
wysek
| Hello, it seems like I do (git checkout some_branch; git merge master; git checkout master) a lot. Is there any other way to "push" changes to local branch some_branch? | 14:25 |
|
lessthanzero
| engla: ahh.. never really figured out the fetch vs. pull, but makes complete sense now. I'll read up on the fetch cmd and might ping back here if I have any problems - thanks! | 14:25 |
| ← GaVrA left | 14:26 |
| → cstephens4 joined | 14:27 |
| → jmil joined | 14:27 |
| ← saysjonathan left | 14:27 |
| ← cstephens4 left | 14:28 |
| → cstephens4 joined | 14:28 |
|
lteo
| is there a way for me to just view a file from another branch without checking it out? | 14:29 |
| → filipe_ joined | 14:30 |
|
bluenovember
| wyek, if that branch is a feature that will later be merged into mater, you should rebase it. (git checkout some_branch; git rebase master) | 14:31 |
|
| its parent is then master, and will have any changes made on master as part of it | 14:32 |
|
engla
| lessthanzero: great :-) | 14:32 |
|
bluenovember
| oops, sorry, @wysek. similar names | 14:33 |
|
lessthanzero
| engla: quick question? I named my remote "johndoe" and although my "git fetch johndoe" and "git fetch johndoe master" both return success style messages (no errors) I don't think it's actually pulling code - am I missing something basic? | 14:34 |
| → saysjonathan joined | 14:35 |
|
lessthanzero
| maybe I'm just fetching the wrong branch | 14:35 |
| → jherdman joined | 14:35 |
| → Mannequin joined | 14:35 |
| → wmader joined | 14:35 |
|
ddilinger
| does git diff -w consider tabs to be whitespace? someone re-indented a file, i'm trying to merge my changes in, but git diff -w is claiming every line in the file changed so its hard to figure out what the merge is | 14:36 |
|
Davey
| teuf: perhaps this is a better phrasing for my question? given two timelines in git, that *did* branch from the same source; that I have /manually/ merged patches between (because it was svn), is there anyway to like, interactively merge and squash commits that were the same? | 14:36 |
|
lessthanzero
| nope, looks like I'm trying to fetch the right branch | 14:37 |
|
engla
| lessthanzero: git fetch johndoe will fetch all its branches. johndoe/master is not where you expected it to be? | 14:38 |
| ← linoj left | 14:38 |
|
teuf
| Davey: dunno :) | 14:39 |
|
lessthanzero
| engla: yea, I noticed all of the branches got pulled in. I bet it's setup right, I just need to checkout (or merge :/) the johndoe/master branch? (sorry, first times are always tense heh) | 14:39 |
|
teuf
| Davey: I generally use git rebase to "merge" git-svn branches | 14:39 |
| → booginga joined | 14:39 |
| → p3rror joined | 14:39 |
|
Davey
| teuf: that's... possible? | 14:39 |
| ← saysjonathan left | 14:39 |
|
lessthanzero
| engla: I'm looking at a github forking guide, which is designed around creating your own fork, but it fetches upstream repo, and then merges | 14:39 |
|
teuf
| Davey: for 2 git branches created from the same git-svn branch, and as long as you only rebase git commits, yep | 14:40 |
| → saysjonathan joined | 14:40 |
| → scelis joined | 14:41 |
|
engla
| lessthanzero: I can't say what you want to do of course, you can merge right away if wanted. or, how to checkout: git checkout -t -b doe-master johndoe/master (gave the checked-out branch a new name) | 14:41 |
| → Swimming_bird joined | 14:41 |
|
bluenovember
| teuf do you merge then rebase the result? (If not how does one use rebase with multiple branches?) | 14:42 |
| ← natek left | 14:42 |
|
Davey
| bluenovember: that's my question too :) | 14:43 |
|
ddilinger
| how can i get 'git diff' to display a patch without considereing the difference between tabs and spaces? i thought 'git diff -w' wsa suppose to but its now | 14:43 |
|
| s/now/not/ | 14:43 |
|
lessthanzero
| engla: ok, so I can checkout to keep johndoe's work separate from mine, or merge to bring his work into my local master repo - I think I'll merge. Although, I think I'll be pulling in a few different forks of this same codebase - does that affect my process? (should I checkout the specific files I want from each upstream repo rather then merging them all?) | 14:43 |
|
| engla: p.s. thanks for this help - I know time doesn't come w/out a price :) | 14:43 |
| ← saysjonathan left | 14:44 |
| ← mcjb left | 14:45 |
|
engla
| lessthanzero: to reconcile branches you need to use merge, "checkout" is only used to take different viewpoints. I would merge after first reviewing the changes and seeing that they are good | 14:45 |
|
teuf
| bluenovember: no merge at all with git-svn, I'd be too afraid to break things ;) | 14:45 |
| ← normanrichards left | 14:46 |
|
teuf
| I only use git rebase when I want some poor man's merge with git svn | 14:46 |
| → bhosie joined | 14:46 |
|
ddilinger
| am i basically SOL if someone re-spaced a file? | 14:46 |
|
bluenovember
| ddilinger, perhaps some magic with auto-crlf | 14:47 |
|
wysek
| bluenovember: that branch is a placeholder for other repos, so that other repos have a place to push :), does your suggestion still apply then? | 14:47 |
|
bluenovember
| teuf, interesting. can you expand on that? How do you perform the merge? | 14:47 |
|
ddilinger
| bluenovember: whats auto-crlf? | 14:47 |
| → selckin joined | 14:47 |
| → panike joined | 14:48 |
| ← cstephens4 left | 14:48 |
|
teuf
| bluenovember: well, I don't merge at all, I just rebase stuff on top of other stuff | 14:48 |
|
bluenovember
| ddilinger, no I'm talking rubbish, that's line endings | 14:48 |
|
| teuf, ah I see. tyvm | 14:48 |
|
| Davey, ^ | 14:48 |
|
| wysek, yes, I think so. So you have one remote branch that everyone pushes to? like an integration/master? | 14:49 |
|
wysek
| bluenovember: yes | 14:49 |
|
bluenovember
| then you want to take in commits into branch you are working on that was branched from earlier in integration? | 14:49 |
|
| yes, rebase is exactly what you want | 14:49 |
| → feindbild joined | 14:49 |
|
wysek
| bluenovember: actually, only I push there, but from another machine | 14:50 |
|
feindbild
| hi :) | 14:50 |
|
bluenovember
| that's a little confusing | 14:50 |
|
| how does your local branch relate to this remote? | 14:50 |
| → coachz joined | 14:50 |
|
coachz
| hi | 14:50 |
| → Bass10 joined | 14:50 |
| → girishr joined | 14:51 |
| → sonink joined | 14:51 |
| → MacGyverNL joined | 14:51 |
| ← MacGyverNL left | 14:51 |
| → MacGyverNL joined | 14:51 |
|
wysek
| bluenovember: on localhost I develop on master, and I have branch win7 so that other machine can push there, and I can merge win7 <-> master | 14:51 |
| ← MacGyverNL left | 14:51 |
|
feindbild
| I'm trying to work out a cmd that lists all ingored files and directories, but 'git ls-files --others -i --exclude-standard' doesn't list ingored directories or files contained in them. any hint maybe? ^^ | 14:52 |
|
coachz
| i checked out an earlier commit i'll call commit 1, my head is commit 2, if i commit changes from commit 1 (which becomes commit 3) will i still be able to get to commit 2 ? | 14:52 |
| ← csanz left | 14:52 |
|
wysek
| bluenovember: the only reason win7 branch exists is that from other machine I cannot push into master if master is checked out locally | 14:52 |
| → normanrichards joined | 14:54 |
| ← henrikbjorn left | 14:54 |
| ← tb_1 left | 14:54 |
| ← coachz left | 14:54 |
|
cbreak_work
| wysek: do NOT push to non-bare repos (unless you know what you're doing) | 14:54 |
|
| you should use a bare repository for syncing | 14:54 |
| ← gebi left | 14:54 |
|
wysek
| yeah, but it will double my repository count | 14:55 |
|
| so I just doubled branch count | 14:55 |
| → pgib joined | 14:56 |
| → psundaram joined | 14:56 |
| ← psundaram left | 14:56 |
| ← zivester_ left | 14:56 |
| → poseid joined | 14:57 |
|
ddilinger
| do i cancel a merge with git reset HEAD, or something diff? | 14:57 |
| → mando joined | 14:57 |
|
ddilinger
| basically i have a merge in progress from master to my branch, but its all wack and i want to cancel | 14:57 |
|
poseid
| hello... it has been a while... how can I make git ignore: # new file: UserIF/ATMMXLDigitalModule.rc | 14:57 |
| → nevyn^_ joined | 14:57 |
|
poseid
| command /*.rc does not work | 14:58 |
|
| neither does .rc | 14:58 |
| → saysjonathan joined | 14:58 |
|
wysek
| ddilinger: if the merge succeeded in a commit, just git reset --hard HEAD~1 | 14:59 |
| ← EugenA left | 14:59 |
| ← p3rror left | 14:59 |
|
ddilinger
| wysek: it didn't even succeede, someone changed the spacing in files and its causing the merge to think entire files need to be replace | 14:59 |
| → tangledhelix joined | 14:59 |
|
ddilinger
| wysek: i'm thinking to undo the merge, apply the tab->space conversion that the other guy did, then try the merge over | 14:59 |
| ← tangledhelix left | 15:00 |
|
wysek
| ddilinger: so you can just reset --hard HEAD | 15:00 |
|
ddilinger
| wysek: ok, thanks! | 15:01 |
| ← nevyn^ left | 15:01 |
| nevyn^_ → nevyn^ | 15:01 |
|
wysek
| (I strongly suggest you read git-reset manual, though ;)) | 15:01 |
| ← ayanes left | 15:01 |
|
cbreak_work
| poseid: you already git added it? | 15:01 |
|
| git rm --cached it to stop tracking. | 15:01 |
| → alberto56 joined | 15:02 |
|
poseid
| hm.. and how do I exclude all .rc filetypes ? | 15:02 |
| ← saysjonathan left | 15:02 |
| ← freimatz left | 15:02 |
|
poseid
| app /*.rc and .rc do not have the wanted effect | 15:02 |
| → saysjonathan joined | 15:03 |
|
wysek
| *.rc | 15:03 |
|
ddilinger
| poseid: try it in .git/info/exclude | 15:03 |
|
| poseid: i think .gitignore needs full path, exclude just takes a pattern(like .*.un~ for mine) | 15:04 |
| → rayners joined | 15:04 |
|
cbreak_work
| poseid: /*.rc ignores all files in the root folder of the project ending with .rc | 15:04 |
|
| poseid: .rc ignores all files with the name .rc anywhere | 15:04 |
| ← winterweaver left | 15:05 |
|
cbreak_work
| you want *.rc, to ignore all files ending in .rc, anywhere in the project? | 15:05 |
|
poseid
| yes | 15:05 |
|
| I have tried .rc first | 15:05 |
|
wysek
| try *.rc | 15:05 |
| ← mattayers left | 15:05 |
|
cbreak_work
| as I said, .rc isn't what you thought it'd be | 15:05 |
| ← OOPMan left | 15:06 |
| → mattayers joined | 15:06 |
|
poseid
| hmm... i was thinking that the * is added automagically, if I understand this right: http://www.kernel.org/pub/software/scm/git/docs/gitignore.html | 15:06 |
| ← angelsl left | 15:07 |
|
cbreak_work
| no | 15:07 |
|
| why? | 15:07 |
| ← m_3 left | 15:07 |
| ← saysjonathan left | 15:07 |
|
poseid
| hmm "git treats the pattern as a shell glob suitable for consumption" | 15:08 |
| → psankar joined | 15:08 |
| ← psankar left | 15:08 |
| → psankar joined | 15:08 |
|
poseid
| pattern includes wildcards ? | 15:08 |
|
cbreak_work
| poseid: it does | 15:08 |
| ← mabrand left | 15:08 |
|
cbreak_work
| it's like when you type rm .rc | 15:08 |
| ← tannern left | 15:08 |
|
cbreak_work
| .rc is a shell glob pattern | 15:09 |
|
| so rm deletes all files that match | 15:09 |
| → saysjonathan joined | 15:09 |
|
poseid
| ok.. so glob is asking for wildcards too... i was thinking it was regex style... | 15:09 |
|
cbreak_work
| it's shell glob pattern style :) | 15:09 |
|
poseid
| ok.. now .gitignore does its job perfect | 15:09 |
| ← kpreid left | 15:10 |
| ← mando left | 15:10 |
|
Davey
| teuf: we're not using git-svn, it's just a converted repo (so the commits happened in SVN, and therefore it wasn't a try cherry-pick, but a manual merge) | 15:11 |
| → ISF joined | 15:12 |
|
Davey
| teuf: I'm having trouble figuring out which commit I should be rebasing on... I'm in the branch I want to contain the history of both branches; I'm doing: git rebase -i <first commit on the other branch> and all I get in my editor, are the commits that happens in the current branch :/ | 15:12 |
| → ceej joined | 15:12 |
|
cbreak_work
| Davey: git rebase otherbranchname | 15:13 |
| → beatak joined | 15:13 |
|
Davey
| cbreak_work: you're kidding right? heh | 15:13 |
| ← saysjonathan left | 15:13 |
| → m_3 joined | 15:13 |
| ← jfkw left | 15:13 |
| → Halerazematt joined | 15:14 |
| → p3rror joined | 15:14 |
| → saysjonathan joined | 15:14 |
| ← fr0sty|mobile left | 15:14 |
|
teuf
| Davey: ah, if you haven't used git cherry-pick, dunno how well git will behave at detecting the patches are the same | 15:14 |
|
Davey
| teuf: well, it breaks on merge (conflict) | 15:15 |
| → fr0sty|mobile joined | 15:15 |
|
Davey
| cbreak_work: am I rebasing <current> *onto* <otherbranchname> or the other way? | 15:15 |
|
teuf
| Davey: can't you remove the problematic commits from one of the branches and then merge ? | 15:16 |
|
Davey
| teuf: the problem is, most of them are tagged :/ | 15:16 |
| ← Halerazematt_ left | 15:17 |
| ← girishr left | 15:18 |
| ← saysjonathan left | 15:19 |
| → saysjonathan joined | 15:19 |
| Silex → silex | 15:19 |
| ← fr0sty|mobile left | 15:20 |
| → jnwhiteh joined | 15:21 |
| → Fullmoon joined | 15:21 |
| → DiGitalX joined | 15:22 |
| → fr0sty|mobile joined | 15:23 |
| ← ch077179 left | 15:23 |
| → jstemmer joined | 15:24 |
| ← saysjonathan left | 15:24 |
| → saysjonathan joined | 15:24 |
| → kpreid joined | 15:25 |
| → cannonball joined | 15:26 |
| ← cannonball left | 15:26 |
| → cannonball joined | 15:26 |
| ← tatsuya left | 15:26 |
|
rane_
| wereHamster: thanks for the correction | 15:28 |
| → mrconnerton joined | 15:28 |
| → gebi joined | 15:28 |
| ← gebi left | 15:28 |
| → gebi joined | 15:28 |
|
sternocera
| How can I check out a revision of a file associated with a particular commit/sha1 hash? | 15:29 |
| ← saysjonathan left | 15:29 |
|
frerich
| sternocera: Using "git checkout <commit> <file>" | 15:30 |
|
mrconnerton
| How do I revert an entire repository back 10 or so pulls to a specific comit? | 15:30 |
| → saysjonathan joined | 15:30 |
|
sternocera
| frerich: Great, thanks | 15:30 |
| → tangledhelix joined | 15:30 |
| ← tangledhelix left | 15:31 |
|
rane_
| mrconnerton: what kind of revert? | 15:32 |
|
frerich
| mrconnerton: It depends on what effect the 'revert' should have. If you want to revert the effect of the last 10 commits you can do 'git revert -n <commit> <commit>...'. If you want to have it look as if the last ten commits have never been done, you could use 'git rebase' or 'git reset'. | 15:33 |
|
rane_
| you could reset to HEAD~10 | 15:33 |
|
| if that works for you | 15:33 |
| → obrienmd joined | 15:33 |
|
shruggar
| how can I detect whether a particular remote is defined, in a script? I want to loop through a list of repos, and "git remote update upstream" all those which have that remote defined | 15:33 |
|
mrconnerton
| frerich, I have a staging server and a prod server. I want to be able to (I believe) rebase the staging server to the same commit as the prod server | 15:33 |
| → rgr joined | 15:33 |
|
shruggar
| git remote | grep -q '^upstream$' feels clunky | 15:34 |
| ← saysjonathan left | 15:34 |
| → saysjonathan joined | 15:35 |
| → AzaToth_work joined | 15:36 |
| → ch077179 joined | 15:36 |
| ← Pewpewarrows left | 15:37 |
| ← linusoleander left | 15:37 |
| ← dc5ala left | 15:37 |
| ← c00kiemon5ter left | 15:37 |
| → c00kiemon5ter joined | 15:37 |
| ← c00kiemon5ter left | 15:37 |
| → c00kiemon5ter joined | 15:37 |
| → jmil_ joined | 15:38 |
| → hyperair joined | 15:38 |
| → linusoleander joined | 15:38 |
| → mando joined | 15:38 |
| ← mando left | 15:39 |
|
fr0sty
| shruggar: are you looking for a particular branch in the 'upstream'? | 15:39 |
| → soc42 joined | 15:39 |
|
shruggar
| fr0sty, the end goal is to send me an e-mail about any new tags | 15:40 |
| ← saysjonathan left | 15:40 |
| ← hunterloftis left | 15:40 |
|
shruggar
| (other than that, to make pushes of our own changes, which would be based on those tags, a bit faster) | 15:41 |
|
fr0sty
| new tags from whose perspective? | 15:41 |
| → saysjonathan joined | 15:41 |
|
shruggar
| as in: "here are the current tags" -> "git remote update" -> "here are now the current tags" -> email the difference between "current" and "now the current" | 15:42 |
|
| failing anything else, I'll use "git for-each-ref" and "diff -u|grep '^+'" | 15:42 |
| → miki joined | 15:43 |
| → LemensTS joined | 15:43 |
|
LemensTS
| In GIT, how can I ignore a modified file so it is not commited at this time, but I can at a later time? | 15:44 |
|
fr0sty
| shruggar: sounds like a reasonable approach. | 15:44 |
| ← miki left | 15:44 |
|
shruggar
| LemensTS, just don't add it to the commit, and it won't be committed? | 15:44 |
|
teuf
| LemensTS: just don't add it to the index/don't use git commit -a | 15:44 |
|
SethRobertson
| LemensTS: You can just not `git add` it, or you can put it in .gitignore (and later remove it) | 15:44 |
|
fr0sty
| shruggar: btw, the output of git remote update should notify you of new tags | 15:44 |
|
LemensTS
| The file has already been added to git before | 15:44 |
|
SethRobertson
| git commit -a will not add a file not stored in git | 15:45 |
| ← EnginA left | 15:45 |
| → fission6 joined | 15:45 |
|
shruggar
| fr0sty, yeah, but I'd prefer not to get that in my e-mail unless there are new tags :) | 15:45 |
|
SethRobertson
| LemensTS: Ah, then you need to manually add files to commit. Also, see http://thomasrast.ch/git/local-config.html | 15:45 |
|
fission6
| is there a way to view the "updates" on the upstream version before pulling or better yet check the log to see what changes are there | 15:45 |
|
shruggar
| (and grepping porcelain doesn't sound fun to me) | 15:46 |
| → tcv_br joined | 15:46 |
| ← tcv_br left | 15:46 |
|
shruggar
| fission6, what are you actually trying to do? | 15:46 |
| ← saysjonathan left | 15:46 |
|
SethRobertson
| fission6: Yes, very easy. git fetch and then `git log` or `git diff` to see the changes. I have a progam to automate this | 15:46 |
|
fission6
| review the changes upstream, not nessarily the code but perhaps the log | 15:46 |
|
SethRobertson
| (Called gitin, and then the corresponding gitout) | 15:46 |
| → ben_alman joined | 15:47 |
| → saysjonathan joined | 15:47 |
| ← _Vi left | 15:47 |
|
shruggar
| fission6, but why? to save bandwidth, or because you don't want to merge and don't know about "git remote update" ? | 15:47 |
| ← LemensTS left | 15:47 |
|
SethRobertson
| fission6: http://gitslave.git.sourceforge.net/git/gitweb.cgi?p=gitslave/gitslave;a=blob_plain;f=contrib/gitin;hb=HEAD | 15:48 |
| ← opalka left | 15:48 |
| → h32Lg joined | 15:48 |
| ← sonink left | 15:48 |
| ← h32Lg left | 15:48 |
| → h32Lg joined | 15:48 |
| → PigeonFriend joined | 15:49 |
| ← nd__ left | 15:49 |
| → leavittx_ joined | 15:49 |
| ← xiong left | 15:49 |
| → Tobias__ joined | 15:50 |
| → nd__ joined | 15:50 |
| ← saysjonathan left | 15:51 |
| → saysjonathan joined | 15:52 |
| → hasrb joined | 15:52 |
| → Yuffster joined | 15:52 |
| ← smolyn left | 15:53 |
| ← NickyP left | 15:53 |
| ChanServ set mode: +v | 15:54 |
| → zerep joined | 15:54 |
| → daviddoria joined | 15:54 |
|
Tobias__
| I have a strange problem: I have a git repository (".../git-repro-dir.git") on a webserver (w/ bare = true). However, if one clones the repository only the original commit is show. If one goes into the directory on the webserver, "git log" shows all - also gitweb which accesses the directory shows all commits. Any idea? | 15:54 |
| ← ormaaj left | 15:55 |
| ← zerep left | 15:55 |
|
fr0sty
| Tobias__: does 'git log --graph --all --oneline --color --decorate' on a clone show more than one commit? | 15:55 |
| → ormaaj joined | 15:55 |
| ← ormaaj left | 15:56 |
| ← daviddoria left | 15:56 |
|
Tobias__
| fr0sty: No | 15:56 |
| ← saysjonathan left | 15:56 |
|
mrconnerton
| I have a staging server and a prod server which both have a clone of my repository. What is the best way to reset my staging repository to match the prod repository? As the staging repository might be ahead of the prod | 15:57 |
|
SethRobertson
| Tobias__: `git branch` says | 15:57 |
| ← Araxia_ left | 15:57 |
|
SethRobertson
| And `git status` | 15:57 |
| ← leavittx_ left | 15:57 |
| → ph^ joined | 15:58 |
|
Tobias__
| git branch -a on the server says "* master" and on the clone "* master" / "remotes/origin/HEAD -> origin/master" / "remotes/origin/master" | 15:58 |
| ← nevyn^ left | 15:58 |
| → nevyn^ joined | 15:58 |
| → emptyflask_work joined | 15:58 |
|
fr0sty
| Tobias__: does 'git remote update' on the clone change anything? | 15:59 |
|
Tobias__
| Regarding status: client "nothing to commit (working directory clean)" / server: "fatal: This operation must be run in a work tree" | 15:59 |
|
cbreak_work
| mrconnerton: bare or non-bare? | 16:00 |
|
Tobias__
| Regarding 'git remote update': That just says "Fetching origin" | 16:00 |
|
leo2007
| is it normal for git log to take longer in print 100 oneline logs in a big repo than a small one? | 16:00 |
| → jfkw joined | 16:00 |
|
mrconnerton
| cbreak_work, I honestly don't know what that means | 16:00 |
| → refund joined | 16:00 |
| → mattly joined | 16:01 |
|
refund
| I merged two local branches and did git pull. How can I revert back to how it was before the merge? git reset --hard did not undo the merge | 16:01 |
|
fission6
| so your suggest git fetch, git log to see the latest logs upstream? | 16:01 |
|
fr0sty
| Tobias__: what command did you use to clone? | 16:02 |
| → kukks joined | 16:02 |
|
fr0sty
| fission6: yes. | 16:02 |
|
cbreak_work
| mrconnerton: are they repositories you work on, or repositories that don't have any files themseles and you push to? | 16:02 |
|
fission6
| what if i dont want the changes? | 16:02 |
| ← bhosie left | 16:03 |
|
mrconnerton
| cbreak_work, (I come from an svn background) they aren't edited directly, they exist to pull update in. prod = www.mysite.com and staging = staging.mysite.com | 16:03 |
| → saysjonathan joined | 16:03 |
| ← skoop left | 16:04 |
|
fission6
| git fetch origin master did no show anything new in git log | 16:04 |
|
| git pull origin master did | 16:04 |
|
| whats up with that | 16:05 |
|
Tobias__
| fr0sty: git clone --progress http://.../git-repro-dir.git | 16:05 |
| → j416 joined | 16:05 |
|
mrconnerton
| cbreak_work, We develop locally push/pull to a DEV server, when things look good we pull to STAGING for client to approve, when things look good we pull to PROD for live. When we pull to staging though, we want to reset the site to match prod first before we pull in. | 16:05 |
| ← BobJelly left | 16:06 |
| → bhosie joined | 16:06 |
| → emdete joined | 16:06 |
| → v0n joined | 16:07 |
|
emdete
| hi, wasnt there a shortcut to checkout the previous state after a checkout? i left a 'detached HEAD' without noting the sha and need to get back there... | 16:07 |
| ← v0n left | 16:07 |
| → tjholowaychuk joined | 16:07 |
| ← saysjonathan left | 16:08 |
| ← tek0 left | 16:08 |
|
fr0sty
| fission6: because 'git fetch origin master' puts the changes in FETCH_HEAD, and you would need 'git log FETCH_HEAD' to see them. | 16:08 |
| → v0n joined | 16:08 |
|
fr0sty
| "git pull origin master" fetched the changes and then merged them into your current branch. | 16:08 |
|
shruggar
| fr0sty, git fetch --tags appears to produce the desired output | 16:09 |
| ← jhoepken left | 16:09 |
| → saysjonathan joined | 16:09 |
| ← petrux left | 16:09 |
| → EnginA joined | 16:10 |
| → nadavoid joined | 16:10 |
| ← mattayers left | 16:10 |
| → cwebber joined | 16:10 |
| → mattayers joined | 16:10 |
| ← mattayers left | 16:10 |
| → BobJelly joined | 16:10 |
| ← warthog9 left | 16:11 |
| ← jnwhiteh left | 16:11 |
| → jrmuizel joined | 16:11 |
|
shruggar
| GIT_DIR="$repo" { git remote | grep -q '^upstream$' && git fetch --quiet --no-tags upstream && git fetch --tags upstream; } | 16:11 |
|
fission6
| thanks fr0sty | 16:12 |
|
fr0sty
| Tobias__: and to be clear: the repository you cloned lists one commit with 'git log --all', right? | 16:12 |
|
shruggar
| grep -q -x upstream, a bit nicer | 16:13 |
| → Araxia_ joined | 16:13 |
|
fr0sty
| fission6: np | 16:13 |
| ← saysjonathan left | 16:13 |
| → leavittx_ joined | 16:13 |
|
Tobias__
| Yes. What I just saw is (from the logs) that "git clone http://" reads "info/refs" which contains "refs/heads/master" which points to the first commit; a file-system based "git clone /web/server" works. | 16:14 |
| ← radarek left | 16:14 |
| → _psychic_ joined | 16:14 |
| → saysjonathan joined | 16:14 |
| ← saschpe left | 16:15 |
| ← j416 left | 16:15 |
| ← cbreak_work left | 16:15 |
|
fr0sty
| Tobias__: there is an update-server-info script that you need to run: http://www.kernel.org/pub/software/scm/git/docs/git-update-server-info.html | 16:15 |
| → j416 joined | 16:16 |
| ← Halerazematt left | 16:17 |
| ← hasrb left | 16:18 |
| → LouisJB joined | 16:18 |
| → smolyn joined | 16:18 |
| → pheaver joined | 16:19 |
| ← gebi left | 16:19 |
|
Tobias__
| fr0sty: Thanks! | 16:19 |
| ← saysjonathan left | 16:19 |
| → gebi joined | 16:19 |
| ← gebi left | 16:19 |
| → gebi joined | 16:19 |
| → saysjonathan joined | 16:20 |
| ← pheaver left | 16:20 |
| ← pgib left | 16:20 |
| ← EnginA left | 16:21 |
| → Halerazematt joined | 16:22 |
| → alvaro_o joined | 16:23 |
| ← saysjonathan left | 16:24 |
| ← emptyflask_work left | 16:24 |
| ← Ruudjah left | 16:24 |
| ← pulse00 left | 16:24 |
| → pandur joined | 16:25 |
| → saysjonathan joined | 16:25 |
|
pandur
| hello channel | 16:25 |
| → Silowyi joined | 16:26 |
|
mrconnerton
| If there any git guru freelancers that can consult with me on something right now, please pm me and let me know what 30 minutes of your time costs | 16:27 |
|
NfNitLoop
| mrconnerton: or you could just ask your question in the channel for free. | 16:28 |
| → thoolihan joined | 16:28 |
| ← friskd left | 16:28 |
|
mrconnerton
| NfNitLoop, I have asked but haven't got help. Usually I'm a very patient person by my sprint ends today and I need to get it resolved | 16:28 |
| ← saysjonathan left | 16:29 |
| → pulse00 joined | 16:29 |
| ← thoolihan left | 16:29 |
|
pandur
| mrconnerton: ask again :) | 16:29 |
| ← Araxia_ left | 16:30 |
| ← jrmuizel left | 16:30 |
| → saysjonathan joined | 16:30 |
| ← gebi left | 16:30 |
|
mrconnerton
| pandur, It would be the third time within an hour. Thats spamming in the channels I come from :-) | 16:31 |
|
| Are people not motivated by money for some quick consulting here? | 16:31 |
|
NfNitLoop
| the overhead of getting paid for 30 minutes is not worth what you would likely pay for such information. | 16:32 |
| → ISF_ joined | 16:32 |
|
NfNitLoop
| anyway, people are in here to give free help. | 16:32 |
|
| I see your question in scrollback. | 16:32 |
|
| You want to pull and check out a particular version of your repository to a staging server. | 16:32 |
|
mrconnerton
| NfNitLoop, but people haven't told me their rates. I make $100 for the work I do, I just assume that you guys are in the same boat | 16:32 |
|
NfNitLoop
| that's a very trivial operation. "git fetch, git checkout commitID" possibly with an -f flag. | 16:33 |
|
mrconnerton
| I want to reset my staging server to match my prod server so I can then git pull to test pushing live | 16:33 |
|
NfNitLoop
| same operation. | 16:33 |
|
| git fetch, git checkout productionCommitID. | 16:33 |
|
Davey
| teuf: cbreak : what am I *seeing* in vim when I git rebase <other branch> ? | 16:34 |
| ← bhosie left | 16:34 |
|
Davey
| the commits that conflict? | 16:34 |
| → bhosie joined | 16:34 |
| ← ISF left | 16:34 |
| ← j416 left | 16:34 |
|
fr0sty
| Davey: 'git rebase -i', you mean? those are the commits you are rebasing | 16:34 |
| ← Halerazematt left | 16:35 |
| → sonink joined | 16:35 |
| ← saysjonathan left | 16:35 |
| ← ChUrP left | 16:35 |
|
Davey
| fr0sty: er, yes, and I'm confused then :/ | 16:35 |
| → _Vi joined | 16:35 |
|
NfNitLoop
| mrconnerton: you can even simplify the process by using tags. like production-release-yy-mm-dd or whatever. | 16:35 |
| → Anubisss joined | 16:35 |
| → Schmallon joined | 16:36 |
| → saysjonathan joined | 16:36 |
| ← Tobias__ left | 16:36 |
|
NfNitLoop
| mrconnerton: but reverting to a particular version and checking out a particular version should be covered in any git tutorial. That's what SCMs are for. | 16:36 |
| → pgib joined | 16:36 |
|
Davey
| fr0sty: I'm in branch "hera" and I'm git rebase -i "hera-working"; what I see in vim, are the commits in "hera"... this isn't what I expect | 16:36 |
| ← poseid left | 16:37 |
|
NfNitLoop
| mrconnerton: I don't want to get paid, and please ask questions in here so that others can benefit from our conversation. | 16:37 |
|
mrconnerton
| NfNitLoop, tutorials are great and all but getting one on one attention for a bit is far more beneficial. | 16:37 |
|
fr0sty
| mrconnerton: and if you want to just 'match' the other repository's state you shouldn't be using 'pull'... | 16:37 |
|
teuf
| Davey: I recommend a careful reading of man git-rebase, it's all explained in there | 16:37 |
|
jast
| Davey: the 'git-rebase' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html [automatic message] | 16:37 |
|
pandur
| my git status hangs. strace reveals that it is trying to read from STDIN. GIT_TRACE gives no details. any ideas? | 16:38 |
|
mrconnerton
| Ok. I need to hire a git consultant for some personal attention that is more indepth then general tutorials and specific to my project. If anyone has some availability today, please let me know. | 16:39 |
| → rajeshsr joined | 16:40 |
| ← saysjonathan left | 16:40 |
| → saysjonathan joined | 16:41 |
| ← thierryp left | 16:41 |
| → MattDiPasquale joined | 16:42 |
|
| NfNitLoop scratches his head. | 16:43 |
| ← goshawk left | 16:43 |
|
NfNitLoop
| pandur: what command were you running? | 16:44 |
|
pandur
| NfNitLoop: "git status" | 16:44 |
|
NfNitLoop
| just 'git status'? hmmm... | 16:44 |
| ← mkramer left | 16:44 |
| → robotarmy joined | 16:44 |
| ← tewecske left | 16:44 |
|
NfNitLoop
| pandur: what version of git? | 16:44 |
| → hasrb joined | 16:44 |
|
fr0sty
| you have N-on-one attention currently, the solution to your problem is 'git fetch' followed by either 'git checkout' or 'git reset'. | 16:44 |
|
pandur
| NfNitLoop: it all began yesterday while committing. the commit wnt through, but I want to rebase -i it. it hangs on step 2/4 and when I ^C I get in this situation | 16:45 |
| → cylence joined | 16:45 |
|
pandur
| NfNitLoop: 1.7.1 | 16:45 |
| ← saysjonathan left | 16:45 |
| → saysjonathan joined | 16:46 |
|
NfNitLoop
| fr0sty: I assume that was for mrconnerton. *shrug* If he would rather wait and pay someone than get free help in here, not much we can do about it. :) | 16:46 |
| → friskd joined | 16:47 |
| ← mattly left | 16:48 |
| → ShooterMG joined | 16:48 |
| → TeckniX joined | 16:48 |
| ← jmil_ left | 16:48 |
|
NfNitLoop
| pandur: have you tried resetting and doing a 'git fsck'? | 16:49 |
|
pandur
| NfNitLoop: status -u no works O.o | 16:49 |
|
| NfNitLoop: fsck --full several times, will try reset | 16:49 |
| → Heimidal joined | 16:49 |
|
mrconnerton
| fr0sty, NfNitLoop, the help in here is great and free and I really do appreciate it. and will attempt those commands in the mean time. But I prefer to pay people for consultation that is unique and special to me. I do what I do best and pay other people to do what they do best. | 16:50 |
| ← Behi left | 16:50 |
| ← saysjonathan left | 16:51 |
| ← serard left | 16:51 |
| → rgr_ joined | 16:51 |
| → saysjonathan joined | 16:51 |
| ← rgr left | 16:52 |
|
sonink
| Good morning all. I'm new to git and have read quite a bit of the manual and book.git-scm.com tutorials but am still unsure how pushes work for syncing repositories. Does the bare repository sync all of the other repositories solely from its history in the .git directory? If remote repositories pull info from .git directories, why are bare repositories better / why not sync on a main repository that does have the working files? Just looking for clarity in ho | 16:52 |
|
| push/pull works and when to use it. | 16:52 |
|
shruggar
| is there something like a "git fsck --actual-problems-only-please", ie: something suitable for running via cron? (ignoring "dangling" objects, for example) | 16:53 |
|
pandur
| NfNitLoop: no difference. I restarted the rebase with GIT_TRACE=1 and the last line is "[detached HEAD d06bc78] <my new ci msg" | 16:53 |
| → khaije|minder joined | 16:53 |
| ← priidu left | 16:53 |
| → nthompson joined | 16:53 |
|
shruggar
| sonink, "sync" is not a git term, afaik | 16:53 |
| → serard joined | 16:53 |
| ← pgib left | 16:53 |
| → dekebalus joined | 16:54 |
|
khaije|minder
| i was thinking about adding an alias for "git add --all && git commit -am 'update' && git pull && git push" to my config. any recommendations or suggestions on the alias name? the best i could think of so far is alias.syncup | 16:54 |
|
NfNitLoop
| sonink: Because if you do a merge, you *require* a working copy in which to do the work. It's best to always do a amerge on your machine. Your server shouldn't ever do merges, so it doesn't need a working copy, hence bare repositories. | 16:54 |
|
sonink
| shruggar: well I'm thinking of the bare repository as the stable, public repository. Does that make sense? | 16:55 |
| → mando joined | 16:55 |
| ChanServ set mode: +v | 16:55 |
|
NfNitLoop
| sonink: that is a good idea. :) | 16:55 |
| → offby1 joined | 16:55 |
|
nthompson
| Hello, I was hoping I could ask somebody about a git workflow I'm trying to implement and see what others thought about it. | 16:55 |
| ← rgr_ left | 16:55 |
| → brntbeer joined | 16:56 |
|
nthompson
| We use an open source software package that is hosted by Github, and we want to host our own cloned version of that to make modifications. When the source does a new release, we want to merge that into our own hosted version. | 16:56 |
|
shruggar
| sonink, the bare repository is the one whose only purpose is to hold changes for other people. "stable" would be a bad thing to pretend it represents, as public shared developer branches are not uncommon | 16:56 |
| ← saysjonathan left | 16:56 |
| ← pulse00 left | 16:57 |
|
nthompson
| I was thinking of using master to be a remote tracking branch of the main repo, and setup DEV, TEST, STAGE, and PROD branches of master, that is where we'd do coding. | 16:57 |
|
NfNitLoop
| nthompson: That will be very simple in git. Create a bare 'clone' of the upstream. Make your own branches in there to do work. | 16:57 |
|
shruggar
| sonink, "shared" meaning "accessible" in this case, not necessarily "used by multiple people" | 16:57 |
| ← alvaro_o left | 16:57 |
| ← brntbeer left | 16:57 |
| → alvaro_o joined | 16:57 |
| → LiamH joined | 16:58 |
| ← feindbild left | 16:58 |
|
sonink
| shruggar, NfNitLoop: Maybe if I just explain the environment in which I want to implement git you can advise me better :-) | 16:58 |
|
nthompson
| NfNitLoop, so would the bare clone of the upstream be master? | 16:59 |
| → t_b joined | 16:59 |
| ← yhager_ left | 17:01 |
| → sftp joined | 17:01 |
| → yhager_ joined | 17:01 |
|
pandur
| NfNitLoop: got it. I accidently added an empty file called '-' *cough* | 17:01 |
| ← alvaro_o left | 17:02 |
| → pulse00 joined | 17:02 |
| → alester joined | 17:02 |
| → alvaro_o joined | 17:02 |
| → slonopotamus joined | 17:03 |
| ← iravid left | 17:03 |
| → iravid joined | 17:03 |
|
shruggar
| better than '-rf /' :( | 17:03 |
|
| *:) | 17:03 |
| → justin-george joined | 17:03 |
| → saysjonathan joined | 17:03 |
|
pandur
| shruggar: hrr | 17:03 |
| ← nonnooo left | 17:03 |
|
pandur
| should I file a bug for this or did I just used all the rope that was given to me? | 17:04 |
|
sonink
| I have a test web server that myself and another programmer are working on (will be more programmers in the future, one of many reasons I want to get git setup). There are multiple projects on it that I want to setup as separate git repositories. We want to be able to work on separate changes on the server and see them live as it will serve the pages. | 17:04 |
|
| I'm thinking have one copy of the projects left as the stable versions and then we clone whatever we want to work on into a separate test directory so we can see our changes live on the server. Does this make sense? Will we be able to just push commits from our clones in separate directories back to the stable repos? | 17:05 |
| → noahcampbell joined | 17:05 |
| → necromancer joined | 17:06 |
| ← koltroll left | 17:07 |
| ← rajeshsr left | 17:07 |
| ← saysjonathan left | 17:08 |
| ← Badiss left | 17:08 |
| → steph021 joined | 17:08 |
| ← steph021 left | 17:08 |
| → steph021 joined | 17:08 |
| ← davzie left | 17:09 |
| → pgib joined | 17:09 |
| → Araxia_ joined | 17:09 |
| ← slonopotamus left | 17:11 |
| ← alvaro_o left | 17:11 |
| → project2501a joined | 17:11 |
| → alvaro_o joined | 17:11 |
| → radarek joined | 17:12 |
| → Buglouse joined | 17:12 |
| ← psoo left | 17:13 |
| → pheaver joined | 17:14 |
| ← pheaver left | 17:14 |
| ← avinashhm left | 17:14 |
| → pheaver joined | 17:14 |
| ← steph021 left | 17:15 |
| → hobodave joined | 17:15 |
| → gebi joined | 17:16 |
| ← gebi left | 17:16 |
| → gebi joined | 17:16 |
| ← pfrenssen left | 17:16 |
| → aah_ joined | 17:17 |
|
fr0sty
| sonink: sounds reasonable to me. | 17:18 |
|
| khaije|minder likes git, it's not simple, but it's not more complicated than it appears | 17:20 |
| ← Fullmoon left | 17:20 |
| ← cilly left | 17:20 |
| → mattly joined | 17:20 |
| ← soc42 left | 17:20 |
| → __name__ joined | 17:21 |
| ← __name__ left | 17:21 |
| → __name__ joined | 17:21 |
|
Nugget
| <nDuff> git is the biggest, most beautiful footgun around! | 17:21 |
| ← leavittx left | 17:21 |
| → cilly joined | 17:22 |
| ← p3rror left | 17:22 |
|
sonink
| fr0sty: Do I need to setup a bare repository in this case because of the merge problem that NfNitLoop described earlier? If so, how do I keep a clean copy of the files separate from the test directories to which we will copy while modifying code? | 17:23 |
| ← jmil left | 17:23 |
| ← h0st1le_ left | 17:23 |
| ← kpreid left | 17:24 |
| → h0st1le joined | 17:24 |
| ← multitallented left | 17:24 |
| → gusnan joined | 17:24 |
| ← alvaro_o left | 17:25 |
| ← joel_falcou left | 17:25 |
|
fr0sty
| if you need to coordinate work between multiple devs having a bare repository to push/pull is helpful. what do you mean 'clean copy'? | 17:25 |
| → alvaro_o joined | 17:26 |
| ← khaije|minder left | 17:26 |
| ← pgib left | 17:26 |
| → artefon joined | 17:26 |
| → steph021 joined | 17:28 |
| ← steph021 left | 17:28 |
| → steph021 joined | 17:28 |
| ← hasrb left | 17:28 |
| → amerine joined | 17:28 |
| ← teweWork left | 17:28 |
| → triptec joined | 17:28 |
| ← leavittx_ left | 17:30 |
| ← PigeonFriend left | 17:30 |
|
sonink
| Just copies of the project that update to and stay at each commit, not reflecting modifications to the code in our test directories. Copies that we can show to manager/co-workers/clients for feedback. Would I just need to clone into a different non-test folder from the bare repository? | 17:30 |
| → henrikbjorn joined | 17:31 |
| → maattd joined | 17:31 |
| → cirwin joined | 17:31 |
| ← shruggar left | 17:31 |
|
fr0sty
| that would work. you would need to either update the manually or write some hooks to keep them up to date. | 17:32 |
| → saysjonathan joined | 17:33 |
| ← artefon left | 17:33 |
|
sonink
| Okay. Do you know of any tutorials that are similar to lead me in the right direction on setting up hooks scripts to automate that? | 17:33 |
| ← bhosie left | 17:34 |
| ← mando left | 17:34 |
| ← saysjonathan left | 17:34 |
| ← refund left | 17:34 |
| ← mrconnerton left | 17:34 |
| → bhosie joined | 17:34 |
| → saysjonathan joined | 17:35 |
| → p3rror joined | 17:35 |
| DrNick2 → DrNick | 17:35 |
| → priidu joined | 17:36 |
| → leavittx joined | 17:36 |
| ← Schmallon left | 17:36 |
|
fr0sty
| http://toroid.org/ams/git-website-howto | 17:37 |
|
| sonink: that page ^ has been recommended in the past. | 17:38 |
| → rajeshsr joined | 17:38 |
| ← hyperair left | 17:41 |
| ← pulse00 left | 17:41 |
| ← deuterium left | 17:42 |
| → hyperair joined | 17:42 |
| ← Determinist left | 17:44 |
|
sonink
| fr0sty: Thanks. I'll give that a look and let you know if I have any questions. I think I had read some pages about setting up hooks while researching git but I don't remember where they were at the moment. | 17:46 |
| ← mattly left | 17:46 |
| → artefon joined | 17:46 |
| ← henrikbjorn left | 17:47 |
| ← rajeshsr left | 17:48 |
| ← alvaro_o left | 17:48 |
| → mattly joined | 17:48 |
| → alvaro_o joined | 17:48 |
| ← urkud_ left | 17:48 |
| ← linusoleander left | 17:49 |
| adamholt → adamholt_away | 17:49 |
| → ChUrP joined | 17:49 |
| adamholt_away → adamholt | 17:50 |
| → urkud_ joined | 17:50 |
| ← mutex left | 17:50 |
| ← LouisJB left | 17:50 |
| → Determinist joined | 17:51 |
| ← alvaro_o left | 17:51 |
| ← Buglouse left | 17:52 |
| → alvaro_o joined | 17:52 |
| → Utkarsh_ joined | 17:52 |
| → kakos joined | 17:52 |
| → _ollie joined | 17:53 |
| ← bronson left | 17:53 |
| ← tjholowaychuk left | 17:53 |
| ← Utkarsh left | 17:55 |
| → hornswoggles joined | 17:55 |
| ← alvaro_o left | 17:56 |
| → alvaro_o joined | 17:56 |
| ← Yuuhi left | 17:56 |
| → Yuuhi joined | 17:56 |
| → eft_ joined | 17:57 |
| ← darkredandyellow left | 17:57 |
| ← bhosie left | 17:58 |
| ← alvaro_o left | 17:59 |
| → alvaro_o joined | 17:59 |
| → bhosie joined | 17:59 |
| cbx33 → Guest94984 | 18:00 |
| → cbx33 joined | 18:01 |
|
cbx33
| hey peeps | 18:01 |
| ← hyperair left | 18:01 |
| → shyam_iyer joined | 18:02 |
|
cirwin
| hi | 18:03 |
| ← serard left | 18:03 |
|
Davey
| How can I compare two branches? (i.e. diff -ur <branch> <otherbranch>) | 18:03 |
|
cbreak
| Davey: just git diff brancha branchb | 18:03 |
|
Davey
| cbreak: hrm... then my merge didn't work (despite every commit that I manually check the patch for being there) | 18:04 |
| ← marcob left | 18:04 |
|
cbreak
| just look at the history with git log --graph --decorate | 18:05 |
| ← alvaro_o left | 18:05 |
| → alvaro_o joined | 18:05 |
| ← urkud_ left | 18:06 |
|
Davey
| cbreak: that looks fine | 18:06 |
| → linusoleander joined | 18:06 |
|
Davey
| but git diff still shows (huge) differences between them | 18:06 |
|
cbreak
| between what? | 18:06 |
|
Davey
| the two branches that I merged | 18:06 |
|
cbreak
| of course | 18:06 |
|
| that's normal | 18:07 |
|
| a merge doesn't make your branch like the one you merge | 18:07 |
|
| it just makes the changes that branch did be in your branch | 18:07 |
|
| the merge commit will be different than both the parents | 18:07 |
|
Davey
| oh, I get /that/ | 18:07 |
|
| but it shouldn't be in this case | 18:08 |
|
| lemme splain | 18:08 |
|
| two branches from the same common ancestor, the *only* changes to one of them, was cherry-pick'ed stuff from the other one | 18:08 |
|
| therefore git merge should make them identical | 18:08 |
| ← alvaro_o left | 18:10 |
| → Raging_Hog joined | 18:10 |
| → mezgani_ joined | 18:10 |
| → alvaro_o joined | 18:10 |
|
cbreak
| no | 18:10 |
|
| a merge does not change the other branch | 18:10 |
|
| only yours | 18:10 |
| → Zephyrus joined | 18:10 |
|
fr0sty
| Davey: the only changes are what was done in A that wasn't cherry-picked to B | 18:10 |
|
Davey
| right... | 18:11 |
| ← vsayer left | 18:11 |
|
| Davey draws | 18:11 |
|
cbreak
| just make a screenshot of your git log --graph --decorate --all | 18:11 |
|
| or use gitx/gitk | 18:11 |
| ← p3rror left | 18:11 |
| → vsayer joined | 18:11 |
| → tewecske joined | 18:12 |
|
fr0sty
| + --oneline | 18:12 |
|
| fr0sty doesn't need to read the full commit messages :-) | 18:13 |
|
Raging_Hog
| How do you conveniently review incoming changes, edit them, possibly leave some of them out and resolve conflicts? I've been testing out rebase and then difftool against ORIG_HEAD. Another option is merge with no-commit and no-ff and then diff --staged. Are these methods of evil? | 18:14 |
| ← _ollie left | 18:14 |
| ← BobJelly left | 18:14 |
|
cbreak
| why not just merge them? | 18:15 |
|
| and afterwards read the log? | 18:15 |
|
Davey
| http://screencast.com/t/6Hjy6H8NA <--- cbreak, fr0sty — this is what I did. the dashed lines are cherry picks. I'm merging B, into A. Shouldn't the result files on disk, be identical? | 18:15 |
| ← linusoleander left | 18:15 |
|
cbreak
| cherry picks from where to where? | 18:16 |
|
Davey
| sorry, from B -> A | 18:16 |
|
cbreak
| you are on A? | 18:16 |
|
cirwin
| what did you use to draw that, out of interest? | 18:16 |
|
Davey
| google docs | 18:17 |
|
| cbreak: when I did the merge? yes | 18:17 |
| → Wooga joined | 18:17 |
|
cbreak
| Davey: I mean while merging and cherry picking | 18:17 |
|
Davey
| yes | 18:17 |
|
Wooga
| hello, is email is only way to submit pattch for git priject? | 18:17 |
|
cbreak
| and there's no commit in A that is not also in B? | 18:17 |
| ← sudonotplease left | 18:17 |
|
Davey
| cbreak: correct | 18:17 |
|
cbreak
| then the result should be that A is like B | 18:17 |
|
Wooga
| i mean, isn't there any specific git mechanism for sending patches? | 18:17 |
|
Davey
| (actually, incorrect, but I'm seeing more in my diff than just those changes) | 18:18 |
|
cbreak
| Wooga: git send-email | 18:18 |
|
Raging_Hog
| cbreak: I'd like to see the actual changes in the code. I've been reasoning that if I do no-commit no-ff merge, I can more easily diff the changes, otherwise I need to look up my own last commit from the log and diff against that. | 18:18 |
| → sebersole joined | 18:18 |
|
Davey
| cbreak: my git diff A B, shows all the differences between A and B as they were before the merge, near as I can tell | 18:18 |
|
fr0sty
| Davey: you did 'git checkout A; git merge B'? | 18:18 |
|
Wooga
| cbreak: so, email is only way? | 18:18 |
|
cbreak
| Raging_Hog: not really | 18:18 |
|
| Raging_Hog: you can just git show somecommit | 18:18 |
| → BobJelly joined | 18:18 |
|
Davey
| fr0sty: I did: git checkout A; git merge -s recursive -X ours B | 18:18 |
|
cirwin
| Wooga: you can do whatever you like — email is what the git project itself uses | 18:19 |
|
| if you're on github, they have a much better mechanism of pull requests | 18:19 |
| → jrmuizel_ joined | 18:19 |
|
bremner
| Wooga: do you mean _a_ git project or _the_ git project? | 18:19 |
|
fr0sty
| Davey: why --ours? | 18:19 |
|
cbreak
| Wooga: no, normal people just push to some repo and let others pull | 18:19 |
|
bremner
| well, sometimes email is used for review, even by normal people | 18:19 |
|
Davey
| fr0sty: they weren't cherry-picks, manual patch/commit, so git conflicted on them | 18:19 |
| → chalkbag joined | 18:19 |
|
Davey
| which, as I understand the recursive strategy, would pick "ours" over 'theirs", whenever a conflict occurred | 18:19 |
|
cirwin
| bremner: they're not normal people if they think that diff-over-email is a good thing :p | 18:20 |
|
Wooga
| bremner: sorry, can't tell the difference due to weak knowledge of english :D | 18:20 |
|
Davey
| fr0sty: I'm trying to simplify the problem because I know my repo is a mess from our svn conversion | 18:20 |
|
bremner
| Wooga: what project do you want to submit patches for? | 18:20 |
|
Raging_Hog
| cbreak: I'd like to be able to use difftool with the diff | 18:20 |
|
cbreak
| Davey: there should not be any conflicts | 18:20 |
|
fr0sty
| Davey: do you prefer the commits in A over B (are the manual picks 'better'?) | 18:21 |
| → TheFox21 joined | 18:21 |
| ← steph021 left | 18:21 |
|
cbreak
| Raging_Hog: git difftool somecommit~1 somecommit? | 18:21 |
|
Davey
| fr0sty: I don't understand the question; the changes are the same, hence the conflict, the reason I prefer A, is because there are tags on each of those commits (it's a release branch, with hotfixes being applied for releasing) | 18:21 |
| → steph021 joined | 18:21 |
| ← steph021 left | 18:22 |
| → steph021 joined | 18:22 |
|
Wooga
| bremner: well, now i am understanding that it is worth to note that i am using github and want to test it's patch sending features. but apperently, this is not a git question, but a github one, so i'd better to read some docs on github. thanks for helping! | 18:22 |
|
bremner
| Wooga: there is also #github | 18:22 |
|
cirwin
| http://help.github.com/pull-requests/ | 18:22 |
|
Wooga
| oh, thanks! | 18:22 |
|
cbreak
| Davey: a merge doesn't change tags, no matter how you do it | 18:22 |
|
| since a merge does not change history | 18:22 |
|
Davey
| cbreak: right, but the only way I figured out how to fix the conflict, was to rebase and remove the conflicting commits... | 18:23 |
|
| I *suppose* I could /manually/ resolve the conflicts :P | 18:23 |
| Fuu` → Fuu | 18:23 |
| ← justin-george left | 18:23 |
| → linusoleander joined | 18:23 |
| ← marc_kdab_ left | 18:23 |
|
fr0sty
| Davey: if you want the result of the merge to look like B use --theirs, not ours. | 18:24 |
|
Davey
| fr0sty: I /could/ do that, now I know it wont affect the tags | 18:24 |
|
| fr0sty thinks the picked commits did not apply cleanly and the resolutions conflicted with subsequent commits on the other branch. | 18:25 |
|
Davey
| they weren't cherry-pick'ed | 18:25 |
|
| there were manual diff | patch; commit | 18:25 |
|
| (because there were done in subversion, before conversion to git) | 18:25 |
| → n3m joined | 18:25 |
| ← ptl left | 18:26 |
|
fr0sty
| doesn't matter how they were done, just whether they applied cleanly... | 18:27 |
| ← rayners left | 18:27 |
|
fr0sty
| if the patch results in a sort-of-similar-but-not-identical change the merge will conflict. | 18:28 |
|
Davey
| fr0sty: I see, git uses the /actual/ text changes to compare? I figured it was meta-data | 18:28 |
|
fr0sty
| but this discussion is academic if you are going to use --theirs. | 18:28 |
| ← wmader left | 18:28 |
| ← globik left | 18:28 |
| → LouisJB joined | 18:28 |
| → ptl joined | 18:28 |
| → rayners joined | 18:28 |
| ← ptl left | 18:28 |
| → ptl joined | 18:28 |
|
| fr0sty *chuckles* ... meta-data | 18:28 |
|
Davey
| oh hush; I'm an svn luddite :( | 18:29 |
|
fr0sty
| in git there is only content. | 18:29 |
| ← ningia left | 18:29 |
| → nona joined | 18:29 |
| → captproton joined | 18:29 |
|
fr0sty
| metadata is for those who can't post-process, or who throw away too much information. | 18:31 |
| ← emptyflask left | 18:31 |
| → mikepack joined | 18:32 |
| ← werdan7 left | 18:32 |
| ← LouisJB left | 18:33 |
| → joel_falcou joined | 18:33 |
| ← webbananaboy1 left | 18:33 |
|
cbreak
| fr0sty: commit objects are almost purely metadata | 18:33 |
| ← leavittx left | 18:33 |
|
cbreak
| and trees are also filled with rather a lot of meta data | 18:33 |
|
fr0sty
| quit being so correct... | 18:34 |
|
cbreak
| like file names... and executability bits... | 18:34 |
|
fr0sty
| ;-) | 18:34 |
| ← guardian left | 18:34 |
|
fr0sty
| and rename support... | 18:34 |
|
cbreak
| rename support? | 18:35 |
| → emptyflask joined | 18:35 |
| ← MattDiPasquale left | 18:35 |
|
fr0sty
| just kidding... | 18:35 |
| → kpreid joined | 18:35 |
| ← captproton left | 18:35 |
|
fr0sty
| it was that sort of metadata I was thinking of. | 18:35 |
|
cbreak
| that's like saying "this text file supports changing words" | 18:36 |
| → msierks joined | 18:36 |
| → dreiss joined | 18:36 |
|
fr0sty
| not if you are using CVS... | 18:37 |
|
msierks
| I am using git over http and I have to put my password in a .netrc file in plain text, is there some way to use a hashed password in that file or avoid this ? | 18:37 |
|
fr0sty
| explicit rename tracking is a feature in some VCS | 18:37 |
|
| and they tend to use metadata to support it, and you have to do it right at the time or it's forever broken. | 18:38 |
|
cbreak
| msierks: can you send the hashed password to the server? | 18:38 |
| ← agile left | 18:38 |
| → kumbayo joined | 18:38 |
|
msierks
| I am not sure, I don't think so if it is http | 18:39 |
| → Nayruden joined | 18:39 |
| → agile joined | 18:40 |
| → ashc joined | 18:40 |
| ← jefferai left | 18:40 |
| ← Teo` left | 18:40 |
| → jefferai joined | 18:41 |
| → Teo` joined | 18:41 |
| ← Teo` left | 18:41 |
| → Teo` joined | 18:41 |
|
PerlJam
| msierks: then ... don't use git over http? :) | 18:41 |
|
cbreak
| if you use https, you might be able to set up something with real public key authentication | 18:41 |
|
| and client certs | 18:41 |
|
SethRobertson
| Does curl support that? I don't think so. | 18:42 |
|
cbreak
| I wouldn't know | 18:42 |
|
| but https does | 18:42 |
|
SethRobertson
| git uses curl | 18:42 |
|
cirwin
| curl supports client certificates | 18:42 |
| → kenichi joined | 18:42 |
|
SethRobertson
| Then that is how you would have to do it. Good luck, it is painful. | 18:43 |
| → MikhX joined | 18:43 |
| ← cirwin left | 18:43 |
|
msierks
| well i was attempting to use ssh with rsa keys but was unsure of a way to add authorized_keys using php | 18:43 |
|
ashc
| any suggestions on software or scripts that can generate daily changelogs for code reviews? I looked at http://codemonkeytips.blogspot.com/2010/01/daily-commit-logs-batching-git-commit.html but the output is horrible. | 18:43 |
|
cbreak
| it's easy to do with gitolite over ssh | 18:43 |
|
| so never forget: there is salvation | 18:44 |
| → mando joined | 18:44 |
|
cbreak
| msierks: can you do perl? | 18:44 |
| ← priidu left | 18:44 |
|
msierks
| hmm I will have to look at gitolites code, I am trying to integrate git with my database | 18:44 |
|
SethRobertson
| ashc: Isn't that what gerrit is supposed to do for you? I've never used it | 18:44 |
|
msierks
| cbreak, yes | 18:44 |
|
cbreak
| gitolite is perl, and it does authorized-key management | 18:45 |
|
ashc
| SethRobertson: never heard of it... i will check it out though | 18:45 |
| → Schmallon joined | 18:45 |
|
msierks
| cbreak, okay I will look into that thanks | 18:45 |
|
| what are the chances of the git protocol getting authentication ? | 18:45 |
| → slonopotamus joined | 18:45 |
| → jmil joined | 18:45 |
|
rane_
| isn't ssh there for that… | 18:46 |
|
SethRobertson
| ashc: Another way is to have a review branch or review repo which people pull from. Some people use git-notes for code-review, but you have to arrange for those notes to be pushed and pulled. | 18:46 |
|
msierks
| rane_, I think it is, but it would be easier if git:// already had it | 18:47 |
|
cbreak
| msierks: I don't think there's a chance | 18:47 |
|
| not like it's useful | 18:47 |
| ← nona left | 18:47 |
|
cbreak
| because it'd either be too much work (rewriting ssh), orinsecure | 18:47 |
|
rane_
| basically reinventing the wheel, and for what | 18:48 |
|
msierks
| hmmm yeah I get your point okay thanks | 18:48 |
| → Cvbge joined | 18:48 |
| → nona joined | 18:49 |
| ← tvw left | 18:49 |
|
Cvbge
| Hi | 18:50 |
| ← ph^ left | 18:51 |
| → ph^ joined | 18:51 |
|
ashc
| SethRobertson: that seems to *heavy* and people would be less likely to do it... | 18:52 |
|
| looking at a Redmine plugin... maybe that will work | 18:52 |
|
SethRobertson
| ashc: Another option is for users to push to a pre-review repo and have a review process /approver be the way to get from that repo to the master repo | 18:53 |
|
cbreak
| or branch | 18:53 |
|
SethRobertson
| But if you have a workflow in mind, you should say what it is | 18:53 |
|
cbreak
| or personal branches | 18:53 |
|
| with integrator workflow | 18:53 |
| → LouisJB joined | 18:54 |
| ← nevyn^ left | 18:55 |
| ← ISF_ left | 18:55 |
| → WebDragon joined | 18:55 |
| ← ptl left | 18:56 |
| ← kpreid left | 18:57 |
| → bronson joined | 18:59 |
| → MattDiPasquale joined | 18:59 |
| → mrconnerton joined | 19:00 |
| → bitkiller joined | 19:00 |
| ← psankar left | 19:00 |
|
fission6
| how do i set up a gig project where one folder inside the project is another gig repo | 19:00 |
|
| like 3rd party source | 19:00 |
|
cbreak
| fission6: man git-submodule | 19:01 |
|
jast
| fission6: the 'git-submodule' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html [automatic message] | 19:01 |
|
fission6
| ok | 19:01 |
|
cbreak
| there are others | 19:01 |
|
| google for subtree merging and git-slave | 19:02 |
|
| although I think submodules are best for external deps | 19:02 |
|
Raging_Hog
| cbreak: thanks for your advice a while ago. I was delayed because I was forced into torture chambers because of my lack of git skills | 19:03 |
| → kpreid joined | 19:05 |
| ← Cvbge left | 19:05 |
| → Pewpewarrows joined | 19:05 |
| → spearce joined | 19:06 |
| → marc_kdab_ joined | 19:06 |
| → Cvbge joined | 19:06 |
| → goshawk joined | 19:06 |
|
unreal-dude
| ok, so, i got git up and running locally, but remotely i cant seem to find out how/why/w/e this key stuff works with nothing that actually tells me what is happening with it | 19:09 |
|
| it just continues to ask for a password | 19:09 |
| ← AzaToth_work left | 19:10 |
| → guardian joined | 19:10 |
| → Deesl joined | 19:12 |
|
Metathink
| hi, is there a command to display an entire file's content from a specific commit ? without checkout it | 19:12 |
|
rane_
| git show SHA:path/to/file | 19:13 |
|
Metathink
| I would like to display the original file, not the diff | 19:13 |
|
rane_
| indeed | 19:14 |
|
PerlJam
| Metathink: did you really want to see the diff? | 19:14 |
|
| oh, | 19:14 |
|
| PerlJam misread | 19:14 |
| ← Mkaysi left | 19:15 |
| ← MattDiPasquale left | 19:15 |
| → pgib joined | 19:15 |
| → opalka joined | 19:16 |
| ← opalka left | 19:16 |
| → opalka joined | 19:16 |
| → bcardarella joined | 19:17 |
| → pfrenssen joined | 19:17 |
| → avinashhm joined | 19:17 |
| → xerora joined | 19:18 |
| ← Exposure left | 19:18 |
|
Metathink
| all the tools i'v found was to display object's content, no file's content | 19:18 |
|
rane_
| git show SHA:path/to/file | 19:19 |
| → bkosborne joined | 19:19 |
|
Metathink
| Oh, i'v just understand what i'm supposed to do x) thank you rane_ | 19:20 |
|
rane_
| np | 19:20 |
| ← DiGitalX left | 19:21 |
| ← vsayer left | 19:21 |
| ← sebersole left | 19:21 |
| → vsayer joined | 19:22 |
| → MattDiPasquale joined | 19:22 |
| ← sonink left | 19:22 |
| ← LouisJB left | 19:22 |
| ← panike left | 19:22 |
| → rcu joined | 19:23 |
| opalka → opalka_afk | 19:24 |
| WebDragon → WebDragon|coding | 19:25 |
| ← Zephyrus left | 19:26 |
| ← saysjonathan left | 19:27 |
| → saysjonathan joined | 19:27 |
| ← SethRobertson left | 19:28 |
| ← lol_h left | 19:28 |
| → zorzar joined | 19:31 |
| ← alvaro_o left | 19:31 |
| → nchaimov joined | 19:31 |
| → alvaro_o joined | 19:31 |
| → j416 joined | 19:32 |
| opalka_afk → opalka | 19:32 |
| ← nchaimov left | 19:32 |
| → priidu joined | 19:33 |
| → nchaimov joined | 19:33 |
| ← pgib left | 19:34 |
| → tjholowaychuk joined | 19:35 |
| → Eridius joined | 19:36 |
| → ptl joined | 19:37 |
| ← ashc left | 19:38 |
| ← saysjonathan left | 19:39 |
| → Textmode joined | 19:40 |
| → saysjonathan joined | 19:40 |
| ← rcu left | 19:41 |
| → rcu joined | 19:41 |
| ← simplechat left | 19:41 |
| → SethRobertson joined | 19:42 |
| WebDragon|coding → WebDragon | 19:42 |
| → LouisJB joined | 19:42 |
| → trupheenix joined | 19:43 |
|
trupheenix
| hi. i made a commit few days back. someone else made commits on top of it. but i want to make some minor change in my old commit. what do i do? | 19:44 |
|
SethRobertson
| If you pushed, you should make a second commit | 19:44 |
|
rane_
| not a good idea to change old commit like that if it's already public | 19:45 |
| → tvw joined | 19:45 |
|
stew
| yeah, because if it is public, someone might have made commits on top of it, doh! | 19:45 |
| → psoo joined | 19:45 |
|
NfNitLoop
| if you want to show that you are making a fix to that commit, you could: 1) Create a branch at that commit. 2) put your fix on top of that. 3) Merge your branch back into mainline. | 19:46 |
| → lazzer joined | 19:46 |
|
NfNitLoop
| but it's probably easier to just put your fix in your mainline branch. :) | 19:46 |
| ChanServ set mode: +v | 19:47 |
| ← bronson left | 19:47 |
|
lazzer
| Hi! Can i configure git on the server so it is impossible to remove tags on it? | 19:48 |
| → biodegabriel joined | 19:48 |
|
biodegabriel
| When I install git on my webserver, should I avoid using git as root? Is it better to create another user with sudo powers and do "sudo git pull...." etc...?? | 19:49 |
| → mutex joined | 19:50 |
|
fr0sty
| lazzer: http://stackoverflow.com/questions/2022438/dissallow-deletion-of-master-branch-in-git | 19:50 |
|
| adapt that ^ | 19:51 |
|
| biodegabriel: don't even sudo. | 19:51 |
|
lazzer
| fr0sty: Thanks! | 19:51 |
| → mabrand joined | 19:51 |
|
fr0sty
| just give the user rights to a directory and leave it at that. | 19:51 |
| ← trupheenix left | 19:51 |
|
biodegabriel
| ok, thanks fr0sty | 19:51 |
| ← mabrand left | 19:52 |
| ← rcu left | 19:52 |
| → rcu joined | 19:52 |
| ← kpreid left | 19:53 |
| → thierryp joined | 19:53 |
| → urkud_ joined | 19:54 |
| ← SethRobertson left | 19:55 |
| ← msierks left | 19:55 |
| ← cwebber left | 19:55 |
| ← Exodist left | 19:55 |
| ← bkosborne left | 19:55 |
| → Exposure joined | 19:55 |
| ← joel_falcou left | 19:56 |
| → joel_falcou joined | 19:57 |
| ← Soliton left | 19:58 |
| ← fr0sty|mobile left | 19:59 |
| ← urkud_ left | 20:01 |
| ← Nickeeh left | 20:01 |
| → urkud_ joined | 20:02 |
| ← ptl left | 20:03 |
| → harcourtfentonmu joined | 20:03 |
| → kpreid joined | 20:03 |
| ← rcu left | 20:03 |
| ← thierryp left | 20:05 |
| → SethRobertson joined | 20:06 |
| → justin-george joined | 20:06 |
| ← _Vi left | 20:06 |
| → thierryp joined | 20:06 |
| ← mikepack left | 20:06 |
| → _Vi joined | 20:06 |
| → panike joined | 20:07 |
| → agentmagnetic joined | 20:07 |
| → Soliton joined | 20:07 |
| ← thierryp left | 20:07 |
| ← Soliton left | 20:07 |
| ← mrconnerton left | 20:08 |
| → tizbac joined | 20:08 |
| ← jrmuizel_ left | 20:09 |
| ← agentmagnetic left | 20:09 |
| → rcu joined | 20:09 |
| → Soliton joined | 20:10 |
| ← spaceonline left | 20:10 |
| ← justin-george left | 20:10 |
| → justin-george joined | 20:10 |
| → Oxf13 joined | 20:11 |
|
Oxf13
| anybody around that hacks on the GitPython module? | 20:11 |
|
| I think I've found a bug in it. | 20:11 |
| → werdan7 joined | 20:11 |
| ← tizbac left | 20:13 |
| → jrmuizel_ joined | 20:14 |
| → msierks joined | 20:14 |
| → cwebber joined | 20:14 |
| → Exodist joined | 20:14 |
| → VAAABOU joined | 20:15 |
| → flea joined | 20:15 |
| → emptyflask_work joined | 20:15 |
|
flea
| how can i use localhost filesystem path as REMOTES for push ? | 20:15 |
| ← bluenovember left | 20:15 |
|
flea
| i do not understand how the URI is specified for local | 20:15 |
|
fr0sty
| man git-clone, look at the 'GIT URLS' section | 20:16 |
|
jast
| the 'git-clone' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-clone.html [automatic message] | 20:16 |
|
flea
| ty fr0sty | 20:16 |
| ← urkud_ left | 20:16 |
| ← doener left | 20:16 |
| → mrconnerton joined | 20:17 |
| ← Soliton left | 20:19 |
| → urkud_ joined | 20:20 |
| → silence joined | 20:20 |
| silence → Guest36971 | 20:20 |
| → mabrand joined | 20:20 |
| ← Guest36971 left | 20:21 |
| ← steph021 left | 20:21 |
| ← BobJelly left | 20:23 |
| ← curtana left | 20:23 |
| → montylounge joined | 20:24 |
| ← _Vi left | 20:24 |
| → leavittx_ joined | 20:24 |
| → _Vi joined | 20:24 |
| ← Mpenz_ left | 20:25 |
| → BobJelly joined | 20:26 |
| → Nickeeh joined | 20:27 |
| → Mpenz joined | 20:27 |
| ← linusoleander left | 20:27 |
| ← TheFox21 left | 20:28 |
| → Soliton joined | 20:28 |
| → EricInBNE joined | 20:29 |
|
Davey
| am I completely missing how to tell in github what branch a commit was made to? | 20:31 |
|
fr0sty
| Davey you can only know what branches contain that commit, not what branch it was originally made on. (that is true of git in general) | 20:32 |
|
Davey
| fr0sty: OK, fine, how do I get github to tell me that? :P | 20:32 |
|
wereHamster
| you can't | 20:32 |
| ← rcu left | 20:32 |
| ← hagabaka left | 20:32 |
|
wereHamster
| but if you clone the repo git will be able to tell you all kinds of informations | 20:33 |
| → ptl_ joined | 20:33 |
|
Davey
| I have a clone; how can I tell from there? :D | 20:33 |
|
wereHamster
| git branch --contains <commit> | 20:33 |
| ← robotarmy left | 20:35 |
| ← mando left | 20:35 |
| ← maattd left | 20:36 |
| ← opalka left | 20:37 |
| ← Soliton left | 20:37 |
| ← leo2007 left | 20:38 |
| → andromak joined | 20:38 |
| → Soliton joined | 20:39 |
| ← Oxf13 left | 20:39 |
| ← priidu left | 20:40 |
| ← andromak left | 20:40 |
| ← MikhX left | 20:41 |
| ← ptl_ left | 20:42 |
| → aesy joined | 20:42 |
|
msierks
| cbreak, I setup ssh access to git but I do not want to allow shell access similar to github, how would i accomplish this ? | 20:43 |
|
cbreak
| gitolite | 20:43 |
| ← unreal-dude left | 20:44 |
| ← vitor-br left | 20:45 |
| → rcu joined | 20:45 |
| ← emptyflask_work left | 20:45 |
| → steph021 joined | 20:46 |
| ← steph021 left | 20:46 |
| → steph021 joined | 20:46 |
| ← kpreid left | 20:48 |
| ← mabrand left | 20:50 |
| ← LouisJB left | 20:51 |
| ← ChrisPitzer left | 20:52 |
|
flea
| whats the order of branch:branch (local vs remote) when doing push? | 20:52 |
|
rane_
| local:remote | 20:53 |
|
wereHamster
| <src>:<dst> | 20:53 |
|
| .. is more accurate | 20:53 |
| ← steph021 left | 20:53 |
| → steph021 joined | 20:53 |
| ← steph021 left | 20:53 |
| → steph021 joined | 20:53 |
| → pantsman joined | 20:53 |
| ← pantsman left | 20:53 |
| → pantsman joined | 20:53 |
|
flea
| ty randomsort wereHamster | 20:54 |
|
| err rane_ | 20:54 |
| → steph021_mac joined | 20:54 |
| ← steph021_mac left | 20:54 |
| → steph021_mac joined | 20:54 |
| ← steph021 left | 20:54 |
| steph021_mac → steph021 | 20:54 |
|
flea
| for me to finally begin to understand scm feels like finding the answer to life. | 20:55 |
|
wereHamster
| no, that's 42 | 20:55 |
|
flea
| hahaha | 20:55 |
| ← Yuuhi left | 20:56 |
|
flea
| understanding scm = understanding 42 | 20:56 |
| → bradleyayers joined | 20:57 |
| → kpreid joined | 20:58 |
| → unreal-dude joined | 20:58 |
| → hasrb joined | 21:00 |
| ← dekebalus left | 21:00 |
|
cbx33
| like HEAD | 21:01 |
| → sechrist joined | 21:01 |
|
cbx33
| is there something which points to the start of the repo? | 21:01 |
| ← Mannequin left | 21:01 |
| ← avinashhm left | 21:02 |
| ← jrmuizel_ left | 21:02 |
|
wereHamster
| no | 21:03 |
|
| because there can be multiple root commits | 21:03 |
| ← Raging_Hog left | 21:03 |
| → jrmuizel joined | 21:04 |
| → kipster joined | 21:05 |
| ← shyam_iyer left | 21:05 |
| → Yuuhi joined | 21:07 |
| ← pfrenssen left | 21:07 |
| → silverfix joined | 21:08 |
|
silverfix
| hello | 21:08 |
| ← javaanse_jongens left | 21:10 |
| → MikhX joined | 21:10 |
| ← stamina_ left | 21:10 |
| ← cilly left | 21:10 |
|
silverfix
| I create .gitignore in my local repo, I commit and push for make .gitignore available by all my team. But now I'd want to edit it not involving the remote repo, is there a way? | 21:11 |
| ← joel_falcou left | 21:11 |
| → coreyw joined | 21:11 |
|
fr0sty
| silverfix: use .git/info/excludes | 21:12 |
|
coreyw
| I made some updates to my project, then committed and pushed the changes to github.com, but it didn't include a directory. I must have forgetten to add it. But now when I try to do "commit -a" it says there is nothing to commit. So now my local repo is diff. from the remote one, and I don't know how to make them the same again. | 21:13 |
|
fr0sty
| coreyw: 1. get off the git commit -a habit, 2. understand that -a only updates previously added files. | 21:13 |
|
FauxFaux
| coreyw: -a doesn't make untracked files tracked, is the directory tracked? | 21:13 |
| ← mattly left | 21:13 |
|
coreyw
| FauxFaux: I think so. I used "git add directoryname" | 21:14 |
|
slonopotamus
| coreyw: git add -A && git commit | 21:14 |
| ← h32Lg left | 21:14 |
| → bentob0x joined | 21:14 |
|
coreyw
| slonopotamus: it returns "nothing to commit" | 21:14 |
|
FauxFaux
| Then the directory is committed unless add told you otherwise. | 21:15 |
|
fr0sty
| or it is ignored... | 21:15 |
|
FauxFaux
| add would tell you that. | 21:15 |
|
coreyw
| But when I try to push it, it doesn't update the remote though. | 21:15 |
|
fr0sty
| does 'git ls-files' list it? | 21:16 |
|
FauxFaux
| I care. | 21:16 |
|
| FUU | 21:16 |
|
coreyw
| fr0sty: nope | 21:16 |
| ← tstclair left | 21:16 |
|
fr0sty
| is the directory empty? | 21:16 |
|
coreyw
| Oh. Duh. Forgot to add .gitignore files | 21:17 |
|
fr0sty
| :-) | 21:17 |
|
coreyw
| thanks! | 21:17 |
| ← artefon left | 21:17 |
| → ptl_ joined | 21:18 |
| ← kipster left | 21:21 |
| → bronson joined | 21:21 |
| → shyam_iyer joined | 21:22 |
|
ceej
| is this right? git submodule foreach git submodule update | 21:24 |
|
rchady
| git submodule update should do what you want I believe | 21:24 |
| → tstclair joined | 21:25 |
|
ceej
| it doesn't seem to because if I go into the submodule and do git pull origin master it gets updates | 21:25 |
|
| git submodule foreach git pull origin master | 21:25 |
|
| works | 21:25 |
|
cbreak
| ceej: update is not supposed to pull | 21:25 |
| → javaanse_jongens joined | 21:25 |
|
cbreak
| update is supposed to get the _correct_ commit | 21:25 |
|
| NOT the newest | 21:26 |
| → thiago_home joined | 21:26 |
| ← aah_ left | 21:26 |
| ← msierks left | 21:26 |
|
SethRobertson
| ceej: If you are doing that all of the time (updating all sub repos to master), perhaps gitslave will be more to your liking. | 21:26 |
| ← icwiener left | 21:27 |
| → h32Lg joined | 21:27 |
|
ceej
| I'll have to take a look... but that command worked nicely | 21:27 |
| ← _Vi left | 21:27 |
|
cbreak
| git submodule is for strong binding of an exact commit in the submodule to a commit in the parent | 21:27 |
| ← ph^ left | 21:28 |
|
coreyw
| okay, so I just entere "git commit" and now its asking me for a commit message. How can I abort this command? I mistyped something | 21:28 |
|
SethRobertson
| gitslave is a loose binding (only tight at tags) but it is easier to use and think about, as long as you are not doing archeology | 21:28 |
|
rane_
| coreyw: just quit without saving | 21:29 |
| → mattly joined | 21:29 |
|
rane_
| how to do that depends on editor it launched… | 21:29 |
|
cbreak
| or save an empty file | 21:29 |
|
coreyw
| rane_: hmm, alright. | 21:29 |
| → silence joined | 21:29 |
| → mabrand joined | 21:30 |
| silence → Guest1817 | 21:30 |
| → pfrenssen joined | 21:30 |
| ← Guest1817 left | 21:30 |
| → Mannequin joined | 21:30 |
| → priidu joined | 21:31 |
| ← silverfix left | 21:32 |
| ← coreyw left | 21:32 |
| ← Cvbge left | 21:32 |
| ← ptl_ left | 21:33 |
| ← rayners left | 21:35 |
| → robotarmy joined | 21:35 |
| ← robotarmy left | 21:35 |
| → robotarmy joined | 21:35 |
|
kpreid
| Is there a common convention for the message for commits that are 'broken code'? | 21:35 |
|
| (obviously, don't put them on the master branch) | 21:36 |
|
| in this case I have a big change which breaks stuff; I want to go back and redo it in little, tested pieces, and I'm committing the big change on another branch so I can diff with it | 21:36 |
| ← TrineLocke left | 21:37 |
|
cbreak
| kpreid: I usually make a tag for such stuff | 21:37 |
| ← robotarmy left | 21:37 |
|
cbreak
| dead/somename | 21:37 |
|
kpreid
| never used tags, but I can see that, but I don't think that especially matters. | 21:38 |
|
j416
| I usually make a branch for it and I write "well this didn't work" for commit message | 21:38 |
|
| .. :P | 21:38 |
|
kpreid
| my question is specifically, what to put in the commit message | 21:38 |
|
bremner
| "FAIL" | 21:38 |
| → TheFox21 joined | 21:38 |
|
rane_
| I sometimes use "WIP" | 21:38 |
|
j416
| I prefix my throw-away branches with tmp | 21:38 |
|
cbreak
| "If you can see this, then you should turn back" | 21:39 |
|
j416
| that way I have them separate | 21:39 |
|
| and I know which ones to kill later | 21:39 |
|
cbreak
| I use TMP: for commits that I want to later amend | 21:39 |
|
kpreid
| eh, I'll just label it WIP | 21:39 |
| → Zhonghua joined | 21:39 |
|
kpreid
| thanks for the suggestions | 21:39 |
|
j416
| I use WIP for commit message for half-finished work | 21:39 |
|
| then I amend and write a proper message | 21:39 |
| → skyl joined | 21:39 |
| ← goshawk left | 21:40 |
|
j416
| if I'm not going to continue with it, but want to keep a reference of it | 21:40 |
| → ISF joined | 21:40 |
|
j416
| I commit it explaining what doesn't work, and create a new branch for it | 21:40 |
|
| (with tmp prefix) | 21:40 |
|
| then I delete that branch when I fixed things | 21:40 |
|
cbreak
| I only create branches for stuff I work with | 21:40 |
|
| for old stuff I just keep I make tags | 21:41 |
|
| that keeps git branch clean | 21:41 |
|
j416
| interesting. | 21:41 |
| → catalin joined | 21:41 |
|
j416
| I like to have my tags clean | 21:41 |
|
| I use tags for versions | 21:41 |
| → linusoleander joined | 21:41 |
|
cbreak
| I do that too | 21:41 |
|
| but my version tags look like v-0.1-release | 21:41 |
|
| and my keep-stuff-for-later look like dead/thishouldhaveworked | 21:42 |
| ← leavittx_ left | 21:43 |
| → OOPMan joined | 21:46 |
| → ptl joined | 21:48 |
| → kylehayes_ joined | 21:49 |
| ← g0bl1n left | 21:49 |
| → oracal joined | 21:49 |
| ← murr5y left | 21:50 |
| → dmilea joined | 21:50 |
| ← OOPMan left | 21:51 |
| ← rcu left | 21:51 |
| ← kylehayes left | 21:51 |
| kylehayes_ → kylehayes | 21:51 |
| → Dieterbe joined | 21:53 |
|
Dieterbe
| Hi all! is this not the right syntax to enable the union merge driver for a file named 'todo' in the root of the repository? | 21:54 |
|
| cat .gitattributes | 21:54 |
|
| todo merge = union | 21:54 |
| → asoltys joined | 21:54 |
|
Dieterbe
| when i do a git merge like this, it will conflict the todo file, so it still seems to be using the text merge driver | 21:54 |
| Textmode → angrymode | 21:54 |
| ← mezgani_ left | 21:55 |
| → p3rror joined | 21:55 |
| → dgao joined | 21:57 |
| ← dgao left | 21:57 |
| → Cynos joined | 21:57 |
| → leavittx_ joined | 21:58 |
| ← catalin left | 21:59 |
| ← Heimidal left | 21:59 |
|
Cynos
| Hi all, I'm trying to use a pre-commit hook to sanity check some things, and it doesn't fire when git merge does a commit? But if I use git merge --no-commit and then commit manually, it does... anyone know a way aroun dthis? | 21:59 |
| ← mrconnerton left | 21:59 |
| ← alvaro_o left | 22:00 |
| → alvaro_o joined | 22:00 |
| ← crash\ left | 22:01 |
| ← booginga left | 22:02 |
| → Heimidal joined | 22:02 |
| ← jstemmer left | 22:02 |
| ← JonasF_ left | 22:02 |
| → crash\ joined | 22:02 |
| → eletuchy joined | 22:03 |
| ChanServ set mode: +v | 22:03 |
| ← ben_alman left | 22:03 |
| → benishor_ joined | 22:04 |
| ← IslandUsurper left | 22:04 |
| ← Pewpewarrows left | 22:04 |
| → _Ants_ joined | 22:04 |
| angrymode → EGAMode | 22:05 |
| ← montylounge left | 22:05 |
| ← ISF left | 22:05 |
|
asoltys
| hi, i have an svn branch for mirroring to an svn repo using git-svn. it's way out of date so i want to take the current master branch and create a single commit that I can dcommit to the svn upstream. I was thinking i could use merge --squash but i'd rather just "patch" the svn branch. can i do this with git diff somehow? | 22:06 |
| ← bradleyayers left | 22:06 |
| ← Titosemi1 left | 22:06 |
|
context
| pretty sure you can do it with rebase | 22:06 |
|
cbreak
| asoltys: that's what git merge --squash does | 22:06 |
|
context
| or just rebase your changes on top of the svn branch and dcommit all of them | 22:07 |
| ← benishor left | 22:07 |
| → OOPMan joined | 22:07 |
| → rcu joined | 22:08 |
|
asoltys
| cbreak: but i'm getting conflicts... i almost want to "reset" it to master, but preserve the svn history | 22:08 |
| ← nona left | 22:08 |
| → khaije|minder joined | 22:09 |
| ← Ryback_ left | 22:09 |
|
khaije|minder
| heya, how do i reset my workingdir to my index? | 22:09 |
|
asoltys
| context: hmm, i might try that. would rebasing copy merge commits in master onto the svn branch as well though? cause i know git-svn doesn't like merge commits | 22:09 |
| → nona joined | 22:09 |
|
khaije|minder
| the index-stage (to be precise) | 22:09 |
| ← ShooterMG left | 22:09 |
| → Quilck joined | 22:10 |
| ← shyam_iyer left | 22:10 |
| → murr5y joined | 22:11 |
|
context
| asoltys: not sure, doubtful. | 22:11 |
|
| i avoid git-svn now | 22:12 |
| → MikhX_ joined | 22:12 |
| ← TheFox21 left | 22:12 |
|
patrikf
| khaije|minder: checkout (-f), plus clean if you want files not in the index removed | 22:12 |
| ← jherdman left | 22:13 |
| ← MikhX left | 22:13 |
| MikhX_ → MikhX | 22:13 |
| → maattd joined | 22:13 |
|
khaije|minder
| patrikf: thanks, i would expect this to co my last commit, the changes i want to restore were 'git add --all' but not committed... would what you said still work? | 22:15 |
| ← kumbayo left | 22:15 |
| ← ChUrP left | 22:15 |
| ← orm_ left | 22:16 |
| → mattly_ joined | 22:16 |
| → robotarmy joined | 22:17 |
| ← n3m left | 22:17 |
| → ormaaj joined | 22:17 |
| → vitor-br joined | 22:18 |
| ← hobodave left | 22:19 |
| ← mattly left | 22:19 |
| ← murr5y left | 22:19 |
| → mattly joined | 22:19 |
|
patrikf
| khaije|minder: yes, what you describe is what checkout HEAD would do | 22:19 |
|
| checkout without a tree-ish refers to the index | 22:20 |
| ← rcu left | 22:20 |
| → rcu joined | 22:20 |
|
patrikf
| it's actually documented! yay. although not mentioned in the description | 22:20 |
|
| how could I ever have doubted the git manpages | 22:21 |
|
khaije|minder
| ahhh! cool, i would have expected this to appear under git reset --restore-index , so i was looking in the wrong place | 22:21 |
| → JATCommand joined | 22:21 |
| ← JATCommand left | 22:21 |
| → murr5y joined | 22:21 |
| → _Vi joined | 22:22 |
| → shyam_iyer joined | 22:22 |
|
khaije|minder
| soo happy for that! I lost track on several days of work in the tangle of emacs buffers then couldn't find it, so i staged, then closed the app heheh | 22:22 |
| ← rcu left | 22:23 |
| → hobodave joined | 22:23 |
| ← mattly_ left | 22:23 |
| → rcu joined | 22:24 |
| ← fission6 left | 22:24 |
| ← Maletor left | 22:24 |
| → fission6 joined | 22:24 |
| ← ThomasLocke left | 22:24 |
| ← fission6 left | 22:25 |
| ← rcu left | 22:25 |
| ← shyam_iyer left | 22:25 |
| → shyam_iyer joined | 22:25 |
| → mando joined | 22:25 |
| → rcu joined | 22:26 |
| → frooh joined | 22:26 |
|
frooh
| is there a way to, with git add -p, add line 4 but not line 5? | 22:26 |
|
| usually directly following lines won't split apart | 22:27 |
| ← rcu left | 22:27 |
| ← priidu left | 22:28 |
| ← nona left | 22:28 |
|
cbreak
| frooh: edit mode | 22:29 |
|
| press e instead of y or n | 22:29 |
| → rcu joined | 22:29 |
|
frooh
| cbreak: I think I tried that but ended up creating a garbage diff | 22:29 |
| → helo joined | 22:29 |
|
cbreak
| well | 22:29 |
|
| you have to know what you're doing :D | 22:30 |
|
frooh
| I don't :-) | 22:30 |
| ← rcu left | 22:30 |
|
kakos
| So, "git mv" appears to just be a convenience function and git detects renaming using some combination of black magic. This is causing an issue where I move a file, make some changes to the file in its new place, and then git suddenly no longer recognises it as being a renamed file and instead treats it as the old location being deleted and the new location being a new file. Is there a way to force git to treat a new file as a mo | 22:31 |
|
| version of an tracked file? | 22:31 |
| ← ormaaj left | 22:31 |
| ← crash\ left | 22:31 |
| → rcu joined | 22:31 |
|
khaije|minder
| oh, i just realized i could have committed without changing the proper index then just reset to HEAD | 22:31 |
| ← Cynos left | 22:31 |
|
fr0sty
| kakos: no black magic, just comparing file contents. if they are similar enough it is treated as a copy/move | 22:32 |
| → darkredandyellow joined | 22:32 |
|
fr0sty
| git log takes some options to be more liberal with what it considers copying. | 22:32 |
| → crash\ joined | 22:32 |
| ← gusnan left | 22:32 |
|
patrikf
| khaije|minder: well, that way you learnt something new | 22:32 |
| → ormaaj joined | 22:32 |
|
fr0sty
| kakos: if you want to be really clear in your history make one commit that moves, and another that modifies... | 22:33 |
|
khaije|minder
| patrikf: fo'reals, it's def worth knowing that co takes the index by default | 22:33 |
| ← m_3 left | 22:33 |
| ← rcu left | 22:34 |
|
kakos
| fr0sty: How does "git log" help me when I commit? | 22:34 |
| → rcu joined | 22:34 |
|
| khaije|minder still somewhat scared to do it... | 22:34 |
|
fr0sty
| kakos: nothing in the commit records file renames. it is all detected after the fact. | 22:34 |
| → cirwin joined | 22:34 |
|
kakos
| fr0sty: Sure, but it would be nice if it was in one commit, since the move and modification is one coherent change in functionality. | 22:34 |
|
cbreak
| you can do that too | 22:34 |
|
fr0sty
| how big is the modification? | 22:34 |
|
kakos
| It's only a couple of files, but the changes in each file are enough to trip up git into thinking it wasn't renamed | 22:35 |
| → alin-gym joined | 22:35 |
| → priidu joined | 22:35 |
|
darkredandyellow
| I have the exact same problem: http://stackoverflow.com/questions/1072171/how-do-you-remove-an-invalid-remote-branch-reference-from-git | 22:35 |
| → tydeas joined | 22:36 |
|
darkredandyellow
| unfortunately the accepted solution git gc --prune=now | 22:36 |
| ← rcu left | 22:36 |
|
darkredandyellow
| didnt do anything | 22:36 |
|
khaije|minder
| kakos: you can have an intermediate commit, then squash/amend it when you're done the heavy lifting | 22:36 |
|
tydeas
| sitaram: there? | 22:36 |
|
darkredandyellow
| git branch -avv still shows remotes/origin/staging | 22:36 |
|
khaije|minder
| i sometimes keep a rolling per-session commit | 22:36 |
|
darkredandyellow
| although "staging" doesnt exist anymore remote | 22:36 |
|
fr0sty
| kakos: try 'git commit --dry-run' and see what it says about the files? | 22:36 |
|
frooh
| darkredandyellow: did you try just rm .git/refs/remotes/origin/staging? | 22:36 |
|
| darkredandyellow: kindav a giant hammer, but with a short | 22:37 |
|
| shot* | 22:37 |
|
kakos
| fr0sty: Well, if yous ay the commit history doesn't actually store anything about renames and detects it after the fact, I guess there's really nothing to do. | 22:37 |
| → chrischambers_ joined | 22:37 |
|
panike
| You can always do git remote prune <remote> | 22:37 |
|
darkredandyellow
| frooh, .git/refs/remotes/origin/ just contains HEAD | 22:37 |
| → rcu joined | 22:37 |
| ← mattly left | 22:37 |
|
fr0sty
| kakos: try the --dry-run. rename detection in 'git status' is 'rename detection lite'. | 22:37 |
|
frooh
| darkredandyellow: ok, the it's in .git/packedrefs (I think) which is just a tiny text file | 22:38 |
| ← chrischambers left | 22:38 |
| chrischambers_ → chrischambers | 22:38 |
|
kakos
| fr0sty: Okay. Thanks for the hlep | 22:38 |
|
fr0sty
| the result of 'git commit --dry-run' is the genuine article | 22:38 |
|
frooh
| darkredandyellow: editing that by hand works usually | 22:38 |
|
fr0sty
| might be different, might not. | 22:38 |
|
darkredandyellow
| panike, frooh git remote prune origin did the job, thanks for the help | 22:38 |
|
frooh
| I had problems with prune when I'd removed the remote and for some reason it didn't prune the refs for me | 22:39 |
|
| but yeah, prune is really the right answer :-) | 22:39 |
| ← gaspar|work left | 22:39 |
|
darkredandyellow
| frooh, pandur although, I just realized that it removed *every* remote reference, even for tracking branches that still exists remote | 22:39 |
|
| darkredandyellow sighs | 22:39 |
|
panike
| frooh: After you remove the remote, git does not have the url to check for what should be pruned. Then you have to do surgery | 22:39 |
| → tcv_br joined | 22:39 |
|
darkredandyellow
| git, why are doing this to me? | 22:40 |
|
frooh
| panike: right, but usually it removes all the refs for me | 22:40 |
|
helo
| i wrote this silly partial sha1 collision (only the first 7 characters) script, but it doesn't seem to ever actually collide: http://bash.pastebin.com/fdm0gbkT | 22:40 |
|
cirwin
| helo: how many trials did you do? | 22:40 |
|
panike
| darkredandyellow: just do git fetch origin. It will repopulate the remote branches | 22:40 |
| ← tcv_br left | 22:41 |
|
khaije|minder
| you mean git remote update origin ? | 22:41 |
| ← rcu left | 22:41 |
|
wereHamster
| darkredandyellow: git remote prune should not delete branchs which still exist in the remote. If it did it would be a bug | 22:41 |
|
helo
| based on a birthday attack on 28 bits, it should only take several thousand attempts to have a 50% chance, right? | 22:41 |
| → rcu joined | 22:41 |
| → m_3 joined | 22:41 |
| ← TomyLobo left | 22:41 |
|
helo
| cirwin: it's been running for weeks | 22:41 |
|
| so millions? i thought it must be a bash scripting error, but i can't find it | 22:42 |
|
darkredandyellow
| wereHamster, panike, frooh hehe, I just realized that g b -avv probably wanted to display remote references, but got stopped by error: branch 'origin/HEAD' does not point at a commit | 22:42 |
|
| like here: http://pastie.org/1572522 | 22:42 |
|
cirwin
| if you've done millions, then you should have seen a collision, so you have a bug | 22:42 |
| ← LongBeach left | 22:43 |
|
patrikf
| "--amend" sounds fishy | 22:43 |
|
darkredandyellow
| so, of to gmail to write an email that they fix my head reference...:-) | 22:43 |
|
patrikf
| do you actually keep the old commits? | 22:43 |
|
cirwin
| patrikf: yes, they're in the reflog | 22:43 |
|
wereHamster
| darkredandyellow: who do you want to fix it? | 22:43 |
|
cirwin
| helo: that said, you might have been "really" unlucky :p | 22:43 |
|
wereHamster
| darkredandyellow: the problem is in your local repo. So write an email to yourself... | 22:43 |
| ← bronson left | 22:43 |
|
helo
| heh | 22:43 |
| ← MikhX left | 22:43 |
|
cirwin
| hmm | 22:44 |
| ← nb left | 22:44 |
|
cirwin
| I don't even know what you're trying to do with that script though | 22:44 |
| ← lessthanzero left | 22:44 |
|
darkredandyellow
| wereHamster, the guys at sourcerepo. I see your point with the local repo BUT HEAD was pointing to branch "staging" remote as well. this branch doesnt exist anymore AND I can't change that remotely | 22:44 |
| ← jmil left | 22:44 |
|
darkredandyellow
| so I guess *they* need to change that for me | 22:44 |
|
fr0sty
| helo: are you saving and comparing each new sha against the millions you have already calculated? | 22:44 |
|
cirwin
| if you're just comparing the previous to the current, then you're not exploiting the birtday paradox | 22:44 |
|
darkredandyellow
| wereHamster, or why I would I be wrong with that?= | 22:45 |
|
helo
| the script takes one 7-character hex argument, and looks for collisions with that | 22:45 |
|
fr0sty
| if not you have a 1 in 268M chance of that working... | 22:45 |
|
| that's not the birthday paradox. | 22:45 |
|
patrikf
| helo: that's not how the birthday paradox works, unless that's also a commit like the ones you generate | 22:45 |
| ← BobJelly left | 22:45 |
| ← t_b left | 22:46 |
|
patrikf
| well, it *is* the birthday paradox, but the wrong side of it :P | 22:46 |
|
cirwin
| you ought to compare every commit to every other commit — but there's got to be a quicker way of doing that than using git :p | 22:46 |
|
helo
| ahh, i see | 22:46 |
|
fr0sty
| it's more the lotter-ticket-buyers-paradox... | 22:46 |
|
helo
| so a 1 in 16**7 chance | 22:46 |
|
panike
| darkredandyellow: The problem is in your local repo. I think you want to do rm .git/refs/remotes/origin/HEAD and then try again | 22:46 |
| → gfto joined | 22:46 |
|
helo
| surely i've done more than that many iterations by now... oh well | 22:47 |
|
context
| git remote set-head origin -d works also | 22:47 |
| ← pandur left | 22:47 |
| → asmega joined | 22:48 |
|
context
| i always remove remote HEAD that bothers me when i git branch -v -a | 22:48 |
|
fr0sty
| helo: doing 10 per second (generous, I think) you only do 6M/wk | 22:48 |
|
panike
| Better is git branch -D -r origin/HEAD | 22:49 |
| ← rcu left | 22:49 |
|
fr0sty
| even 100/sec is only 60M so your 50% time is ~44wks | 22:49 |
|
darkredandyellow
| panike, ah, you were totally right, thanks a ton! | 22:49 |
| → t_b joined | 22:49 |
|
panike
| np. | 22:49 |
| ← panike left | 22:49 |
| → bronson joined | 22:49 |
|
patrikf
| helo: also, if your dupe-checking logic is the one in the script, it's flawed, as has been mentioned before | 22:49 |
| → BobJelly joined | 22:50 |
|
patrikf
| er, forget it, that's the same issue | 22:50 |
| ← ExtraSpice left | 22:50 |
| ← StyleWarz left | 22:50 |
| → rcu joined | 22:50 |
| ← LiamH left | 22:50 |
| ← starcoder left | 22:51 |
| ← asmega left | 22:51 |
|
cirwin
| helo: it's really cool that you actually thought to try that — even if it did go wrong. Top marks for effort :) | 22:51 |
|
| patrikf thinks it would have been more spectacular if helo found a full sha1 collision :P but oh well... | 22:52 |
|
cirwin
| hehe — there's always a chance :D | 22:52 |
| → MikhX joined | 22:53 |
| → starcoder joined | 22:53 |
| → ldh joined | 22:54 |
| ← leavittx_ left | 22:54 |
| → McManiaC joined | 22:54 |
| → angelsl joined | 22:54 |
| → ki__ joined | 22:55 |
| ← h32Lg left | 22:55 |
| ← q0rban left | 22:55 |
|
uau
| seems that cherry-pick can trigger recursive merge code that ends up overwrite file contents on disk | 22:55 |
| ← pedrobelo left | 22:55 |
|
cirwin
| uau: git stash! | 22:55 |
|
uau
| even in cases where the cherry-pick doesn't actually do anything | 22:56 |
|
cirwin
| the cherry-pick doesn't commit if it has a conflicting merge | 22:56 |
| ← rcu left | 22:56 |
|
uau
| cirwin: i mean it's clearly buggy | 22:56 |
|
cirwin
| heh | 22:56 |
|
uau
| it ends up overwriting files on disk | 22:56 |
|
| even if it (correctly) exits with nothing to do because the change was already applied | 22:57 |
| → xiong joined | 22:57 |
|
cirwin
| ah, interesting | 22:57 |
| ← Heimidal left | 22:57 |
|
fr0sty
| uau: write up a proof_of_evil and send it to the mailing list. | 22:57 |
| ← eletuchy left | 22:58 |
| → rcu joined | 22:58 |
|
uau
| 'git cherry-pick X; echo >foo.c; git cherry-pick X' and the change to foo.c will have been silently overwritten and it's back to HEAD content | 22:58 |
| → aah_ joined | 22:58 |
| ← McManiaC left | 22:58 |
| → pedrobelo joined | 22:58 |
|
wereHamster
| uau: did the cherry-pick succeed or fail due to a conflict? | 22:59 |
|
cirwin
| uau: it is at least documented that you should use a clean HEAD with no changes | 22:59 |
|
uau
| succeed | 22:59 |
|
helo
| cirwin: heh thanks | 22:59 |
|
uau
| the overwritten files are ones unrelated to any changes in the cherry-picked commit | 23:00 |
|
wereHamster
| uau: I can't reproduce. Can you make an example? | 23:00 |
|
uau
| i think it's related to what files had been moved/renamed in other changes since the branches diverged | 23:00 |
|
wereHamster
| by example I mean a transcirpt of commands we can run locally | 23:00 |
| ← alester left | 23:01 |
| ← oracal left | 23:01 |
|
uau
| wereHamster: i think it requires some complex enough history to trigger the recursive merge code | 23:01 |
| ← deryl left | 23:01 |
|
fr0sty
| wereHamster: random question: are you aware that 'git clean -df' will remove directories filled with .gitignored files? | 23:02 |
|
wereHamster
| fr0sty: are those files tracked? | 23:02 |
| → gnat42 joined | 23:02 |
| → deryl joined | 23:02 |
|
fr0sty
| no, just ignored. | 23:02 |
| → Heimidal joined | 23:02 |
|
khaije|minder
| patrikf: git co -f doesn't seem to have worked, was there something i missed in your advice? | 23:02 |
| ← tvw left | 23:03 |
|
fr0sty
| echo "foo/*" >> .gitignore; touch foo/bar; git clean -df => removing foo/ | 23:03 |
|
gnat42
| so git newbie here, I have a project, it has a master 'branch' and a couple other branches... I was working in a branch, checked-out master and ran git merge branchname... but in reality I only wanted to cherry pick a couple commits from that branch | 23:03 |
|
| is there an undo? | 23:03 |
|
cirwin
| if you've just merged, and done no more commits, git reset HEAD^ | 23:04 |
|
wereHamster
| fr0sty: no, I was not. Ask the mailing list. For extra credits write a test | 23:04 |
|
| cirwin: ORIG_HEAD or HEAD@{1} | 23:04 |
| ← ldh left | 23:04 |
|
cirwin
| fr0sty: there's a patch set in progress about "treat ignored files as special" or something like that | 23:04 |
|
| I think it's known about | 23:04 |
|
fr0sty
| cirwin: good to know. | 23:05 |
|
| the _real_ solution is echo foo/ >>.gitignore instead of foo/* | 23:05 |
|
cirwin
| wereHamster: what is ORIG_HEAD? | 23:05 |
|
wereHamster
| it's the HEAD before the last operation | 23:06 |
|
cirwin
| does it ever differ from HEAD@{1} ? | 23:06 |
|
wereHamster
| I don't think so, but don't take my word for it | 23:06 |
|
cirwin
| ok | 23:06 |
|
| thanks | 23:06 |
|
context
| cirwin: ORIG_HEAD im pretty sure is used during merge/rebase/bisect | 23:06 |
|
wereHamster
| ORIG_HEAD is older, the reflog came much later | 23:06 |
|
gnat42
| cirwin: that didn't do anything | 23:06 |
|
cirwin
| ah, maybe in a rebase it's the head before that started | 23:07 |
|
| cirwin will play | 23:07 |
| ← deryl left | 23:07 |
| ← cbx33 left | 23:07 |
|
gnat42
| it likely did a fast forward merge if that makes a difference | 23:07 |
|
ayust
| http://stackoverflow.com/questions/964876/head-and-orig-head-in-git | 23:07 |
| → deryl joined | 23:07 |
|
uau
| revert_or_cherry_pick at builtin/revert.c:605; do_pick_commit at builtin/revert.c:510; do_recursive_merge at builtin/revert.c:350; merge_trees at merge-recursive.c:1545; process_entry at merge-recursive.c:1371; merge_content at merge-recursive.c:1298; update_file_flags at merge-recursive.c:687 | 23:07 |
|
cirwin
| gnat42: ah, yes, that does; wereHamster had it right | 23:08 |
|
uau
| that's the call path that ends up overwriting files | 23:08 |
|
helo
| fr0sty: looks like it gets about 200/s... so this will take a while :/ | 23:08 |
| ← rcu left | 23:08 |
| ← lazzer left | 23:08 |
|
gnat42
| so I should reset ORIG_HEAD ? | 23:08 |
|
wereHamster
| gnat42: that or HEAD@{1} | 23:09 |
|
gnat42
| ok so git reset ORIG_HEAD does nothing | 23:09 |
| → rcu joined | 23:09 |
|
cirwin
| HEAD@{1} will get you back to just having done the merge (before you did reset HEAD^), you might need to do HEAD@{2} to go back to before the merge too | 23:09 |
| ← shyam_iyer left | 23:09 |
| ← xiangfu left | 23:09 |
|
cirwin
| but it's now at the point where you need to look in the reflog | 23:09 |
|
gnat42
| all | 23:09 |
|
cirwin
| and get the hash out | 23:09 |
|
gnat42
| ah | 23:09 |
|
cirwin
| sorry, that's my fault | 23:09 |
| ← selckin left | 23:09 |
|
wereHamster
| if in doubt, look at git reflog | 23:10 |
|
gnat42
| *saweet* | 23:10 |
|
| thanks | 23:10 |
| ← rcu left | 23:10 |
| adamholt → adamholt_away | 23:11 |
| adamholt_away → adamholt | 23:11 |
|
gnat42
| hmm ok - that's not quite doing what I expect | 23:12 |
|
cirwin
| in what way? | 23:12 |
|
gnat42
| as part of the merge a directory in the master branch was deleted, but it never comes back | 23:12 |
| ← Zhonghua left | 23:12 |
| → davetoo joined | 23:12 |
|
cirwin
| you will need to do a git checkout after the reset | 23:12 |
|
| (or a reset --hard) | 23:12 |
|
gnat42
| ok so suppose I've run reset a couple times | 23:13 |
|
| is it safe to do the reset --hard? | 23:13 |
|
| can I get back to my 'just merged' state if I do this wrong? | 23:13 |
|
cirwin
| yes and yes | 23:13 |
| ← frooh left | 23:13 |
|
cirwin
| the only thing you can't get back is any uncommitted changes | 23:14 |
|
wereHamster
| you can get any commited state back | 23:14 |
| → rcu joined | 23:14 |
|
gnat42
| ok so I haven't committed anything... so would like to get back to the point before I ran all these reset commands | 23:14 |
|
| reset --hard ? | 23:14 |
|
davetoo
| can somebody show me where to read about how "'branch.<foo>.remote=. " works? i.e. remote =' .' | 23:14 |
|
gnat42
| or will that get me whatever I've reset to? | 23:14 |
| → lazzer joined | 23:15 |
|
davetoo
| Is this (remote=.) purely a git-svn thing? | 23:15 |
|
cirwin
| gnat42: I can't visualize what you're saying — either: go to the right commit in the reflog using reset, and then checkout -f; or go to the right commit in the reflog using reset --hard | 23:15 |
| ← xerora left | 23:16 |
|
gnat42
| cirwin: thanks, I think I figured out the issue | 23:16 |
|
uau
| according to git bisect, commit 882fd11aff6f0e8add77e75924678cce875a0eaf "merge-recursive: Delay content merging for renames" introduced the file overwrite bug | 23:16 |
|
gnat42
| obviously with your guys help | 23:16 |
| → hagabaka joined | 23:18 |
| ← hagabaka left | 23:18 |
| → hagabaka joined | 23:18 |
| ← d0k left | 23:18 |
| ← v0n left | 23:19 |
| ← dyer left | 23:19 |
| ← TeckniX left | 23:20 |
| ← bhosie left | 23:20 |
| ← alin-gym left | 23:20 |
|
gnat42
| ok so reading man git didn't answer this for me, if I want to merge a couple commits in the branch into master... is there a syntax for that? or do I simply create a diff of those commits and then apply them to master? | 23:20 |
|
jast
| the 'git' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git.html [automatic message] | 23:20 |
|
cirwin
| gnat42: git cherry-pick | 23:21 |
| ← Quilck left | 23:21 |
|
gnat42
| thansk cirwin | 23:21 |
| ← mabrand left | 23:22 |
|
gnat42
| just a clarification quesiton... do I just pass the commit hash I don't have to specify that the commits I'm looking at are on a different branch? | 23:22 |
|
cirwin
| just the hash is fine | 23:23 |
|
ayust
| commits aren't inherently "on a branch" | 23:23 |
|
| branches just happen to point to certain chains of commits | 23:23 |
|
gnat42
| ayust: yeah asking that question seems to be solidifying the idea in my head - still mainly used to svn | 23:23 |
|
ayust
| multiple branches can point to the same commit or commit-parent | 23:23 |
| ← Exposure left | 23:23 |
| ← rcu left | 23:24 |
| → rcu joined | 23:24 |
|
khaije|minder
| so i had some files staged in my index, then did a git co -f , I expected this would restore my workdir to the index state, is that not right? | 23:24 |
| ← WebDragon left | 23:24 |
|
ayust
| no, it restores it to HEAD state | 23:25 |
|
| iirc | 23:25 |
|
| though i could be wrong. | 23:25 |
| ← unreal left | 23:26 |
|
khaije|minder
| well it looks like you're right, though i was hoping it wasn't true | 23:26 |
| → mrchrisadams_ joined | 23:27 |
|
cirwin
| the docs do say the index is used if the commit is not specified — but I agree, it seems to use HEAD | 23:27 |
|
ayust
| i think it only checks out from the index if you specify a path | 23:27 |
| → Exposure joined | 23:27 |
|
cirwin
| ah | 23:27 |
|
| who wrote this stuff.. :p | 23:27 |
|
khaije|minder
| is there anyway for me to get my index back? | 23:27 |
| → unreal joined | 23:28 |
|
cirwin
| I think you can try finding objects that aren't referenced from commits using some jiggery-pokery, and some of those might contain your changes | 23:29 |
|
| but I don't know of an easy way | 23:29 |
|
khaije|minder
| it could be more clear, it would also make sense to just have an --index option | 23:29 |
|
| ok, thats what i was thinking | 23:29 |
|
| cirwin rarely uses the index, git commit --amend is easier and safer, and I can use --fixup to amend previous commits | 23:29 |
|
khaije|minder
| not familiar with --fixup , wassat? | 23:30 |
| ← Metathink left | 23:30 |
| ← envi left | 23:30 |
|
cirwin
| if you have a modern git, rebase -i will squash commits with a "fixup" command, so that they go from being two commits to being one | 23:30 |
| → madewokherd joined | 23:30 |
| ← MattDiPasquale left | 23:31 |
|
cirwin
| git commit --fixup allows you to easily create a commit that is susceptible to being squashed | 23:31 |
|
| in that manner | 23:31 |
|
| so I do lots of git commit --fixups throughout a session | 23:31 |
|
| and then a big rebase -i at the end | 23:31 |
| → jmil joined | 23:31 |
|
cirwin
| to sort out the hitsory | 23:31 |
|
khaije|minder
| ah cool, i've been doing rolling-amends ,but that clearly better | 23:32 |
| ← pantsman left | 23:32 |
| → tvw joined | 23:32 |
|
| khaije|minder puts on scuba gear and holds breath, bbl | 23:32 |
| ← bcardarella left | 23:35 |
| → pleonasm joined | 23:35 |
| → leo2007 joined | 23:36 |
| ← coderdad left | 23:37 |
| ← sternocera left | 23:38 |
| ← jmil left | 23:39 |
| ← chitragupt left | 23:40 |
| → chitragupt joined | 23:41 |
| ← t_b left | 23:44 |
| ← priidu left | 23:45 |
| → nb joined | 23:46 |
|
ivan
| is it a good idea to use merge --no-ff to indicate that the commits in the branch are broken versions of the software? | 23:46 |
| ← triptec left | 23:46 |
|
khaije|minder
| does git preserve any proir index info after a co ? i though it might, but now i'm thinking probably not..? | 23:46 |
|
mrchrisadams_
| hi guys, I'm trying to work out in my head what's happening when you add a -f to a git push command, to force a certain push. If you're storing all content in the git objects file, anyway when working with what might you lose if you force a push like so? | 23:47 |
| ← necromancer left | 23:48 |
| ← biodegabriel left | 23:48 |
| → linusoleander_ joined | 23:48 |
| ← Determinist left | 23:49 |
| ← rendar left | 23:49 |
| ← linusoleander left | 23:50 |
| linusoleander_ → linusoleander | 23:50 |
| ← tydeas left | 23:50 |
| ← bronson left | 23:50 |
| ← darkredandyellow left | 23:51 |
| ← cannonball left | 23:51 |
|
kpreid
| mrchrisadams_: stuff is lost from ordinary view if there are no refs to it (including indirectly through commit parents) | 23:51 |
| → lightcap joined | 23:52 |
|
kpreid
| mrchrisadams_: if you push -f you cause the destination repository to forget about the current history of some ref and use yours instead, so there are some commits with no refs pointing to them | 23:52 |
| → darkredandyellow joined | 23:52 |
|
asoltys
| hi, is there a way i can check-in my svn-remote config stuff to the repo so that when people checkout the branch that's tracking svn, the svn upstream will be configured for them,? i tried copying the options from .git/config into a file called ".gitconfig" in the working tree and pushign that.. no luck | 23:52 |
| ← murr5y left | 23:52 |
|
kpreid
| and that stuff will go away on a future GC. | 23:52 |
| ← kpreid left | 23:53 |
| ← gnat42 left | 23:53 |
| ← kipras_ left | 23:54 |
| → jamiew joined | 23:54 |
|
mrchrisadams_
| kpreid: I see, so when I push, I'm still sending my snapshot of the filesystem on my machine, so someone else could check it out on another machine if need be, right? | 23:55 |
| ← cwebber left | 23:56 |
|
mrchrisadams_
| and in if I used the git reflog command, I could dig around and find them still if I had the time and inclination? | 23:56 |
| → bronson joined | 23:56 |
| → murr5y joined | 23:56 |
| ← sraue left | 23:56 |
| ← RobertLaptop left | 23:57 |
| ← nadavoid left | 23:57 |
| → sraue joined | 23:57 |
| → nadavoid joined | 23:57 |
| ← project2501a left | 23:57 |
| ← skyl left | 23:58 |
| → phedhex joined | 23:58 |
| ← ketas left | 23:58 |
| → eletuchy joined | 23:58 |