| 2012-08-14 |
| → john3 joined | 00:00 |
| ← beneggett left | 00:01 |
| ← cybersphinx left | 00:03 |
| → cybersphinx joined | 00:04 |
| ← kart0ffelsack left | 00:04 |
| → kart0ffelsack_ joined | 00:05 |
| ← alexim left | 00:05 |
| → _huoxito joined | 00:06 |
| ← ehsan left | 00:08 |
| → idoru joined | 00:08 |
| ← LekeFly left | 00:09 |
| → ChadStudmuffin joined | 00:10 |
| ← boombatower left | 00:12 |
| ← Dimitr left | 00:12 |
| ← jn_ left | 00:14 |
| ← macIvy left | 00:14 |
| → mmattice joined | 00:15 |
| ← NimeshNeema left | 00:15 |
| → corburn joined | 00:15 |
| → macabre joined | 00:16 |
| ← cybersphinx left | 00:16 |
| → cagedwisdom joined | 00:17 |
| ← FatDarrel left | 00:18 |
| ← _Vi left | 00:18 |
| sente_ → sente | 00:18 |
| → NimeshNeema joined | 00:18 |
| → _Vi joined | 00:18 |
|
AlexWaters
| FauxFaux: got it, thank you | 00:19 |
| → scwizard joined | 00:19 |
|
scwizard
| when I "git rm -r ." all the files get deleted which is what I want | 00:20 |
| → harish joined | 00:20 |
| ← maestrojed left | 00:20 |
|
scwizard
| but then when I check out a different branch, all the files get deleted from that to :( | 00:20 |
| ← harish left | 00:20 |
| ← arcanis left | 00:21 |
| → piotrj joined | 00:22 |
|
scwizard
| oh it happens if you don't commit the rm | 00:22 |
|
| i dunno | 00:23 |
|
piotrj
| Hi all | 00:23 |
|
gitinfo
| piotrj: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 00:23 |
| → oojacoboo joined | 00:23 |
| ← ChadStudmuffin left | 00:23 |
|
piotrj
| can I specify the gitattributes for paths inside the submodule | 00:23 |
|
| to be more specific - I want to use a filter attribute on a file that is in a submodule and was wondering whether it's doable at all | 00:24 |
| ← devth left | 00:24 |
|
oojacoboo
| I have a funny scenario where, we've been merging a new branch with our development branch over the past 3+ months | 00:24 |
|
| the issue is that over this time, somewhere the merges took the wrong results | 00:24 |
| → ChadStudmuffin joined | 00:24 |
|
oojacoboo
| so, now when trying to merge into development instead of the other way around, we're already brought up to a certain point and it won't recognize all the changes which we want to force at this point | 00:25 |
| → rehat joined | 00:25 |
| ← opus left | 00:25 |
|
oojacoboo
| is there something we can do on this branch we're trying to merge in to strip of it of it's history and then try and remerge in, so it find all conflicts again? | 00:25 |
|
| maybe this is what rebase does or something along those lines? | 00:25 |
| ← strobert left | 00:26 |
| ← glennpratt left | 00:27 |
| → opus joined | 00:27 |
| ← tripolar left | 00:28 |
| → TheLZA joined | 00:28 |
| ← TheLZA left | 00:29 |
| → TheLZA joined | 00:29 |
| ← jargon- left | 00:29 |
| ← Chappo left | 00:30 |
| → glennpratt joined | 00:32 |
| ← scwizard left | 00:33 |
| rohan32 → rohan|dinner | 00:33 |
| → v0n joined | 00:34 |
| → iamjarvo joined | 00:34 |
| → jargon- joined | 00:36 |
| → ology joined | 00:38 |
| → xiangfu joined | 00:38 |
| ← gavin_huang left | 00:38 |
| SeoZ-work[AWAY] → SeoZ | 00:38 |
| → aspotashev| joined | 00:39 |
| ← robbyoconnor left | 00:40 |
| ← aspotashev left | 00:40 |
| → robbyoconnor joined | 00:41 |
| ← maletor left | 00:42 |
| ← fireh left | 00:43 |
| ← kiffer84 left | 00:43 |
| ← dfr|mac left | 00:44 |
| → dreiss joined | 00:46 |
| ← hyperair left | 00:46 |
| → AaronMT joined | 00:46 |
| → mike007 joined | 00:47 |
| → Bosox20051 joined | 00:49 |
| ← corburn left | 00:50 |
| → corburn joined | 00:50 |
| ← Destos left | 00:51 |
| → tshauck joined | 00:52 |
| ← Araxia left | 00:55 |
|
frogonwheels
| oojacoboo: This is a tricky one. I think you do want something along the lines of a rebase, replacing the merge commits with the commits from the new branch. | 00:56 |
|
| frogonwheels: This of course would !rewrite history, but I suspect that's what you need to do. Start by calling the new development a new name... | 00:56 |
|
gitinfo
| frogonwheels: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 00:56 |
| ← glennpratt left | 00:56 |
|
frogonwheels
| oojacoboo: ^^^ that was for you. Talking to myself *sigh* | 00:56 |
| → cjb joined | 00:57 |
| ← iamjarvo left | 00:58 |
|
cjb
| Hi! I'd like to run a bisect against the mainline kernel, but I have a stack of ten patches that I'm going to need to apply to each bisection point to be able to exhibit the bug. Is there some concept of "git bisect, but add these patches to each step" I could use? | 00:58 |
| → BiggFREE joined | 00:58 |
| ← msmithng left | 00:58 |
|
frogonwheels
| cjb: Sounds like fun. I'd just make a script to do it. | 00:59 |
| → msmithng joined | 00:59 |
| ← SkAzZ left | 00:59 |
|
frogonwheels
| cjb: you could even use git apply -n {sh1} && git reset if you wanted to get the patches from the repo. | 01:00 |
| ← codeFiend left | 01:00 |
| ← textures2 left | 01:00 |
| → iori joined | 01:00 |
| ← kenperkins left | 01:00 |
|
cjb
| frogonwheels: oh, my git-apply doesn't have a "-n" option | 01:01 |
|
| what's that do? I'm on 1.7.11.2. | 01:01 |
|
frogonwheels
| cjb: bleh. I mean git cherry-pick -n would do it. | 01:01 |
|
| cjb: git apply takes a patch - and doesn't commit it anyway | 01:02 |
|
| cjb: you can use git apply for a patch tho'. | 01:02 |
| → flaguy48 joined | 01:02 |
|
frogonwheels
| cjb: can this bug be checked by a git bisect run ? or does it require manual intervention? | 01:03 |
| ← cmullican left | 01:03 |
| ← artnez left | 01:04 |
| → Davey joined | 01:04 |
| → dsirijus joined | 01:05 |
| ← hellopat left | 01:05 |
| ← dreiss left | 01:05 |
| ← utdemir left | 01:08 |
| ← Davey left | 01:10 |
| → cooloney joined | 01:10 |
| ← iliketurtles left | 01:11 |
| → glennpratt joined | 01:12 |
| ← glennpratt left | 01:13 |
| → jobin joined | 01:13 |
| → fireh joined | 01:15 |
| → gumnos joined | 01:15 |
| ← jjbohn left | 01:16 |
| rohan|dinner → rohan32 | 01:16 |
| → ehsan joined | 01:16 |
| → codeFiend joined | 01:18 |
| → Davey joined | 01:18 |
| ← _Vi left | 01:18 |
| → _Vi joined | 01:19 |
| ← palm_vue left | 01:20 |
| ← bizhanMona left | 01:20 |
| ← Lgb left | 01:20 |
| ← towski left | 01:20 |
| → hyperair joined | 01:22 |
| → palm_vue joined | 01:22 |
| → Lgb joined | 01:22 |
| → bizhanMona joined | 01:22 |
| ← metcalfc left | 01:23 |
| → intripoon_ joined | 01:23 |
| ← corburn left | 01:24 |
| → erynofwales joined | 01:24 |
| → cakehero joined | 01:24 |
| → corburn joined | 01:26 |
| ← intripoon left | 01:27 |
| ← mcluskyd_ left | 01:28 |
| ← hfutrell left | 01:29 |
| ← intripoon_ left | 01:32 |
|
limpc
| anyone happen to know of a great company located in Austin, TX that provides SIP trunking? | 01:33 |
|
| er wrong channel | 01:33 |
| → intripoon joined | 01:34 |
|
oojacoboo
| frogonwheels gitinfo we don't really care about the history at this point, the problem is that, the issue branch we have has continual merges that are flat out incorrect, and we need a way to merge this branch against our known good copy, the development branch, to force it to throw conflicts in an attempt to create a new clean merge. We basically want to make it forget it's ever done a merge before | 01:34 |
| → Turicas joined | 01:35 |
| → Vampire0_ joined | 01:36 |
| → tqmz___ joined | 01:37 |
| → russt joined | 01:38 |
| → zdk joined | 01:39 |
| ← Vampire0 left | 01:40 |
| ← tqmz left | 01:40 |
| ← neurodrone left | 01:40 |
| ← RaceCondition left | 01:40 |
| → reds joined | 01:40 |
| → nglorioso joined | 01:41 |
| reds → Guest50709 | 01:41 |
| ← ehsan left | 01:42 |
| gitinfo set mode: +v | 01:42 |
| nglorioso → yuriismaster | 01:42 |
| ← chihjen left | 01:43 |
| ← opus left | 01:44 |
| → opus joined | 01:44 |
| ← Guest50709 left | 01:45 |
| ← hwrd|wor_ left | 01:47 |
| gitinfo set mode: +v | 01:47 |
| ← hyperair left | 01:47 |
| ← Sym3tri left | 01:48 |
| → zivester joined | 01:49 |
| → hyperair joined | 01:49 |
| → Chib joined | 01:50 |
| → subbyyy joined | 01:51 |
| ← shruggar left | 01:53 |
| ← sorahn left | 01:55 |
| → iamjarvo joined | 01:56 |
| → efreese joined | 01:57 |
| ← duckx left | 01:57 |
| ← FernandoBasso left | 01:58 |
| ← jonshea left | 01:58 |
| → intripoon_ joined | 01:58 |
| ← TheJH left | 01:58 |
| → xMYTHICx joined | 01:58 |
| ← efreese left | 01:59 |
| → flebron joined | 01:59 |
|
flebron
| So, say I made a commit, and pushed to github, with the wrong commit message. What's an acceptable solution? | 02:00 |
| ← flavius left | 02:00 |
| → vitor-br joined | 02:00 |
| ← intripoon left | 02:00 |
| ← apok left | 02:01 |
|
corburn
| git revert creates a new commit that undoes what the last one did. | 02:02 |
| ← helgikrs left | 02:03 |
| ← graphitemaster left | 02:03 |
| ← raz left | 02:03 |
|
flebron
| corburn, so I should revert, then re-commit with a correct message? | 02:03 |
| → nothingbutlove joined | 02:04 |
| ← john3 left | 02:05 |
| ← asakura left | 02:05 |
| → john3 joined | 02:05 |
| → maletor joined | 02:06 |
| ← xMYTHICx left | 02:06 |
| → asakura joined | 02:07 |
| → igotnolegs joined | 02:09 |
| ← pdtpatrick left | 02:10 |
| → hfutrell joined | 02:10 |
| → hwrd|work joined | 02:11 |
| ← hyperair left | 02:12 |
|
flebron
| Stupid question: Will reverting the commit revert my edits locally? That is, will I revert my local repo to before the commit? | 02:12 |
| → xMYTHICx joined | 02:13 |
|
EugeneKay
| !revert | 02:14 |
|
gitinfo
| "Revert" is a heavily overloaded term. Do you mean: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard the uncommitted changes in the working tree [git checkout -- .]; c) undo committing [git reset --soft HEAD^, but type !rewriting_public_history] ? | 02:14 |
| ← Marbug left | 02:14 |
| → ehsan joined | 02:14 |
| ← _huoxito left | 02:14 |
|
EugeneKay
| flebron - if you're relatively sure that nobody has fetched your commit from github you can use `git commit --amend` to change the commit message of the last commit(or add more files to it!). If it's farther than back than that you will need to hide the !sausage | 02:14 |
|
gitinfo
| flebron: [!sausage_making] Some developers like to "hide the sausage making", transforming their commits before presenting them to the outside world. See http://sethrobertson.github.com/GitBestPractices/#sausage and !perfect | 02:14 |
|
EugeneKay
| flebron - if somebody HAS fetched the history then you should just live with the bad commit message, because !rewriting will incur the wrath of the Git Gods | 02:15 |
|
gitinfo
| flebron: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 02:15 |
|
flebron
| Haha, yeah, the commit was made just now, and I'm the sole committer in the repo :) | 02:15 |
|
EugeneKay
| flebron - when you push the new commit up to github you will need to use the -f flag | 02:15 |
|
SethRobertson
| flebron: the question isn't so much who commits, but who pulls | 02:16 |
|
flebron
| Ah, yes. That's true. | 02:16 |
|
EugeneKay
| Like I said, so long as you're pretty sure nobody has fetched ;-) | 02:16 |
| ← JStoker left | 02:17 |
|
EugeneKay
| Even on relatively busy repos a push -f within 30 seconds probably won't end up in any bad places | 02:17 |
| → artnez joined | 02:17 |
|
EugeneKay
| But get in the habit of checking your history BEFORE you push | 02:17 |
| ← ketas left | 02:18 |
| → towski joined | 02:18 |
| → ketas joined | 02:18 |
|
flebron
| Yay, that worked. :) | 02:18 |
| ← _Vi left | 02:18 |
|
flebron
| What do you mean by "checking m y history"? | 02:18 |
|
| *my history | 02:19 |
| → _Vi joined | 02:19 |
|
EugeneKay
| man git-log | 02:19 |
|
gitinfo
| the git-log manpage is available at http://git-scm.com/docs/git-log.html | 02:19 |
|
EugeneKay
| Make sure you did what you thought you wanted to did done do dang | 02:19 |
| → molixiaoge joined | 02:20 |
| → boombatower joined | 02:21 |
| → hypera1r joined | 02:21 |
|
flebron
| Yeah, looks about right :) Thanks! | 02:21 |
| ← msmithng left | 02:21 |
| → Marbug joined | 02:21 |
| ← hfutrell left | 02:24 |
| → harish joined | 02:24 |
|
frogonwheels
| oojacoboo: here's a possible way: Create a new devel branch. git checkout devel && git checkout -b devel-v2 Then git rebase -i {sha1} where this is a commit back in history where the other branch started.. and then go and find all the merge commits and replace them with picks that get the commits from your new branch that would have been introduced at that point. OR, you could just delete all the merges from that branch and put all the commits | 02:24 |
|
| from your new branch | 02:24 |
|
| oojacoboo: !backup | 02:24 |
| ← maletor left | 02:24 |
| ← tjholowaychuk left | 02:24 |
|
gitinfo
| oojacoboo: Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups | 02:25 |
| → jso_ joined | 02:26 |
| ← goshawk left | 02:27 |
|
oojacoboo
| reading... | 02:27 |
| ← jso_ left | 02:27 |
| ← pxdr left | 02:27 |
| → pxdr joined | 02:28 |
| → ehsan_ joined | 02:28 |
|
frogonwheels
| oojacoboo: creating a separate branch also gives you some protection | 02:28 |
|
| oojacoboo: actually quite a lot :) | 02:28 |
|
oojacoboo
| frogonwheels, deleting the merges sounds good | 02:28 |
|
| how can you delete the merges on a branch? | 02:28 |
| ← ehsan left | 02:28 |
|
frogonwheels
| oojacoboo: the problem then is that you lose the fact that you merged. | 02:28 |
|
oojacoboo
| I don't want any of the merged changes on this branch, they are the whole problem right now | 02:29 |
|
| b/c some of them aren't right and I don't know which ones are and aren't | 02:29 |
|
frogonwheels
| oojacoboo: remember if you do it this way,you're either doing a !rewrite of history, or dumping your old branch and creating a new one. | 02:29 |
|
gitinfo
| oojacoboo: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 02:29 |
|
oojacoboo
| this is a private issue branch on a colleagues system | 02:30 |
|
| we don't care about any history of merges and infact want the merges to have never existed | 02:30 |
|
| however, we'd like to keep all the changes made to that branch, just minus the merges | 02:30 |
| ← molixiaoge left | 02:31 |
| → molixiaoge joined | 02:31 |
| → dhruvasagar joined | 02:34 |
| ← molixiaoge left | 02:35 |
| → molixiaoge joined | 02:36 |
| → hfutrell joined | 02:36 |
| → JStoker joined | 02:37 |
| ← codeFiend left | 02:37 |
|
reactormonk
| flebron: git commit --amend -m 'new message' && git push --force | 02:37 |
| → codeFiend joined | 02:37 |
| → _class_ joined | 02:38 |
| ← toothrot left | 02:38 |
| → Araxia joined | 02:40 |
| ← codeFiend left | 02:41 |
|
frogonwheels
| oojacoboo: git rebase -i wil do that for you .. you can just remove the 'pick ' lines for the merges. | 02:41 |
| ← Eridius left | 02:42 |
| ← opus left | 02:42 |
| → Who joined | 02:43 |
| ← ehsan_ left | 02:43 |
|
Who
| Hello, anyone around ? | 02:43 |
| _class_ → __class__ | 02:43 |
|
EugeneKay
| Who - !hi | 02:43 |
|
gitinfo
| Who: [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice. | 02:43 |
| ← orafu left | 02:43 |
| ← mike007 left | 02:43 |
| → orafu joined | 02:43 |
|
Who
| Hey guys, I heard git is one of the best designed software around. I want to read the source code to find out more but it looks intimidating | 02:44 |
| → rchavik joined | 02:44 |
| ← rchavik left | 02:44 |
| → rchavik joined | 02:44 |
|
EugeneKay
| "best designed" is very questionably; it was really more of an evolutionary process. | 02:44 |
|
| The object model is a very solid piece of work, but the plumbing commands leave a lot to be desired. | 02:45 |
|
milki
| http://www.bonkersworld.net/images/2011.11.15_life_of_a_swe.png | 02:45 |
|
| like one of these? | 02:45 |
|
EugeneKay
| Are you approaching this as a research project? | 02:45 |
| → project2501b joined | 02:45 |
|
EugeneKay
| milki - exactly like | 02:45 |
|
Who
| EugeneKay: no I am a programmer (Ruby on Rails kind to be honest, though I used contribute to KDE some time back), I am curious on how do you design good software. | 02:46 |
|
milki
| ya, dont look at git >.> | 02:46 |
|
EugeneKay
| Well, git is really not a software design tool. It's just a piece in the process | 02:47 |
|
milki
| its rather better to read documentation to see how things work together | 02:47 |
|
EugeneKay
| There are many books on software design, architecting, and team management. Most of them were written by idiots. | 02:47 |
|
milki
| design first at the conceptual level before you dive into the implementation | 02:47 |
| → neurodrone joined | 02:47 |
| ← neurodrone left | 02:47 |
| → neurodrone joined | 02:47 |
| ← AaronMT left | 02:47 |
|
Who
| EugeneKay: That's why I thought of reading source of a project then a book | 02:48 |
| → ehsan joined | 02:48 |
|
EugeneKay
| It's hard to design a ship by looking at the bilge ;-) | 02:48 |
| ← rehat left | 02:49 |
|
milki
| but it can be done! | 02:49 |
|
EugeneKay
| You'll end up with a definite focus on pumps and green things | 02:49 |
|
milki
| soo goood | 02:49 |
|
oojacoboo
| frogonwheels, so is it best to just rebase on the development branch each time you do a checkout/start coding? | 02:50 |
|
| I'm not sure I quite understand the best workflow | 02:50 |
|
| we were basically doing a development branch checkout, then merging it on our issue branch | 02:50 |
| ← BiggFREE left | 02:50 |
|
EugeneKay
| oojacoboo - depends upon your workflow. I believe that merge commits were a gift from the gods, not the invention of the devil as the SVNites would have you believe. | 02:50 |
|
oojacoboo
| EugeneKay, yea, well, I come from an SVN background, I'm trying to understand this here | 02:51 |
|
| I guess had he actually done proper merges, it wouldn't have been an issue | 02:51 |
|
| but since he screwed up at least one if not more of the merges somehow, it's a huge mess | 02:51 |
| → jackh joined | 02:52 |
|
Who
| okay I am curious about how Git achieves the desired performance compare to other VCS, if possible I would just like to read about that | 02:52 |
| → hellopat joined | 02:52 |
| ← etcetera left | 02:53 |
|
EugeneKay
| Pixie dust and unicorn farts | 02:54 |
|
corburn
| Linus has commented a lot of micro-optimization goes into git. | 02:54 |
| ← hpa left | 02:54 |
| ← rohan32 left | 02:56 |
| ← Who left | 02:56 |
| → hpa joined | 02:57 |
| → etcetera joined | 02:57 |
| → Who joined | 02:58 |
|
Who
| I am sorry, I got disconnected, last message I got was corburn: Linus has commented a lot of micro-optimization goes into git. | 02:58 |
| ← yuriismaster left | 02:58 |
|
milki
| learn2screen | 02:59 |
| ← jh3 left | 02:59 |
| → jh3 joined | 02:59 |
|
oojacoboo
| milki, not everyone wants to read irc in their terminal | 02:59 |
|
| I sure don't | 02:59 |
|
milki
| o.... | 02:59 |
|
| milki forgot those people existed | 02:59 |
|
oojacoboo
| ;) | 02:59 |
|
chuckf
| milki: those people don't exist. They are figments of imagination and bots | 03:01 |
| ← Who left | 03:01 |
|
chuckf
| :) | 03:01 |
| → Chappo joined | 03:01 |
| ← dstorrs left | 03:03 |
| → opus joined | 03:03 |
|
sharpobject
| git's default behavior seems to be to replace LF with CRLF on Windows | 03:04 |
| → rehat joined | 03:05 |
| ← eletuchy left | 03:05 |
|
sharpobject
| but to present a merge conflict spanning the entire file if a CRLF revision is merged with a LF revision | 03:05 |
|
| this is basically terrible | 03:05 |
|
milki
| ya, windows -.- | 03:06 |
|
sharpobject
| it's not a Windows issue, git doesn't have to add CRLF -_- | 03:06 |
|
milki
| :P | 03:06 |
|
| well, people dont complain about it much so...you sure its default? | 03:06 |
|
sharpobject
| yes | 03:06 |
| ← etcetera left | 03:08 |
| ← tyoc213 left | 03:08 |
| → ReekenX joined | 03:10 |
|
sharpobject
| no | 03:11 |
|
| ahaha | 03:11 |
|
EugeneKay
| AFAIK git on windows uses the "native" setting as the default, which works just fine for me. No CRLFs added. I use Notepad++ for my editor. | 03:11 |
| ← xMYTHICx left | 03:11 |
|
sharpobject
| how can I see what the config core.autocrlf's current value is? | 03:11 |
|
| I want to check this on another machine | 03:11 |
|
EugeneKay
| man git-config; see --get ;-) | 03:11 |
|
gitinfo
| the git-config manpage is available at http://git-scm.com/docs/git-config.html | 03:11 |
|
sharpobject
| I think github for windows may not use git's default as its default | 03:12 |
|
EugeneKay
| github for windows is a terrible app that eats babies | 03:12 |
|
sharpobject
| helpfully, core.autocrlf is set to nothing | 03:13 |
|
| on my other install | 03:13 |
| → Yuuhi` joined | 03:13 |
|
sharpobject
| so I'm not sure what the default behavior is | 03:13 |
|
milki
| EugeneKay: but it looks so nice | 03:14 |
|
sharpobject
| hmm, after setting core.autocrlf to false, git reports that main.lua has been modified, but git diff main.lua outputs nothing | 03:15 |
| → etcetera joined | 03:15 |
|
sharpobject
| this is weird | 03:15 |
| ← Yuuhi left | 03:15 |
|
sharpobject
| is there some command other than git diff I can use to see the difference? | 03:17 |
| ← __class__ left | 03:17 |
| ← dsirijus left | 03:17 |
|
CareBear\
| sharpobject : if you mess around with autocrlf you really should also make a new checkout | 03:18 |
|
sharpobject
| alright | 03:18 |
|
| it seems strange that there is no command to see the diff though >_> | 03:19 |
| ← _Vi left | 03:19 |
| → __class__ joined | 03:19 |
| ← etcetera left | 03:19 |
| → _Vi joined | 03:19 |
| ← hellopat left | 03:20 |
| → dfr|mac joined | 03:21 |
| → gnoel joined | 03:21 |
|
EugeneKay
| sharpobject - you can use any difftool you like | 03:23 |
| → dreiss joined | 03:23 |
|
EugeneKay
| sharpobject - see man git-config; diff.tool | 03:24 |
|
gitinfo
| sharpobject: the git-config manpage is available at http://git-scm.com/docs/git-config.html | 03:24 |
| → arosen joined | 03:26 |
|
sharpobject
| I see | 03:26 |
|
| so it's not a bug for the VCS to report both that a file is different from another and that it is identical to another? | 03:26 |
|
| or rather, that the two files both differ and are equal | 03:27 |
|
arosen
| Hi, i have a patch that i want to apply but git apply patch; told me there was some errors applying it and it couldn't do it. I was wondering if there was anyway to make it apply and I'll go a head and fix the conflicts myself. | 03:27 |
|
| Or is it just not possible to even apply? | 03:27 |
|
EugeneKay
| sharpobject - as far as the built-in diff tool is concerned, a single character on each line indicates a changed line. | 03:27 |
|
sharpobject
| that does not seem to be true | 03:28 |
| ← drougge left | 03:28 |
|
sharpobject
| git diff prints 0 characters, but sit status indicates that a file has been modified | 03:28 |
|
EugeneKay
| !repro | 03:28 |
|
gitinfo
| Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting. | 03:28 |
| → drougge joined | 03:28 |
| → rohan32 joined | 03:30 |
| ← dfr|mac left | 03:30 |
| → brettgoulder joined | 03:31 |
| → codeFiend joined | 03:31 |
| ← Lanks left | 03:31 |
| gitinfo set mode: +v | 03:31 |
| ← ChadStudmuffin left | 03:32 |
|
sharpobject
| my first attempt at reproducing this is failing | 03:33 |
|
| I replaced the repo with a fresh one, so I don't have one with this problem any more | 03:33 |
|
EugeneKay
| If I had to guess, you added the files to the index. `git diff` with no further arguments compares the work-tree to the index. `git diff HEAD` shows what is to be commited(index vs HEAD) | 03:34 |
|
sharpobject
| git status was reporting it as unstaged | 03:35 |
| → graphitemaster joined | 03:35 |
| ← luke-jr left | 03:35 |
| → luke-jr joined | 03:36 |
| ← kukks left | 03:36 |
| ← jobin left | 03:36 |
| ← Chib left | 03:36 |
| ← tshauck left | 03:38 |
| ← opus left | 03:38 |
| ← simesy left | 03:40 |
| ← cakehero left | 03:43 |
| → w09x joined | 03:45 |
| ← ehsan left | 03:45 |
| → neurodrone_ joined | 03:46 |
| ← jargon- left | 03:47 |
| ← igotnolegs left | 03:48 |
| → igotnolegs joined | 03:49 |
| ← TomyLobo left | 03:50 |
| → private joined | 03:52 |
|
sharpobject
| got it | 03:52 |
|
| let me see if I can get it shorter | 03:52 |
| private → Guest49313 | 03:52 |
| → etcetera joined | 03:53 |
| ← etcetera left | 03:53 |
| ← codeFiend left | 03:54 |
| → aeontech joined | 03:54 |
| → etcetera joined | 03:54 |
| ← iamjarvo left | 03:56 |
| ← gnoel left | 03:56 |
| ← etcetera left | 03:56 |
| → iamjarvo joined | 03:57 |
| → xMYTHICx joined | 03:57 |
| ← OOPMan left | 04:00 |
|
sharpobject
| hm, the trick didn't work on OSX | 04:01 |
|
| but it works on Windows | 04:01 |
| → helgikrs joined | 04:01 |
| → duckxx joined | 04:01 |
|
sharpobject
| EugeneKay: http://pastie.org/4471032 | 04:04 |
|
EugeneKay
| Well that is interesting. | 04:05 |
| ← duckxx left | 04:06 |
| ← neurodrone left | 04:06 |
| ← hypera1r left | 04:06 |
| ← intripoon_ left | 04:06 |
| ← Lgb left | 04:06 |
| ← bizhanMona left | 04:06 |
| ← smarter_ left | 04:06 |
| ← SJS left | 04:06 |
| ← john_anderson left | 04:06 |
| ← dbr left | 04:06 |
| ← ajpiano left | 04:06 |
| ← reactormonk left | 04:06 |
| ← kpreid left | 04:06 |
| ← jstemmer left | 04:06 |
| ← Swathe left | 04:06 |
| ← bronsen left | 04:06 |
| → OOPMan joined | 04:07 |
|
sharpobject
| git version 1.7.11.msysgit.1 | 04:08 |
|
EugeneKay
| Post to the msysgit mailing list? :-p | 04:08 |
|
sharpobject
| haha | 04:08 |
|
| probably | 04:08 |
| ← vitor-br left | 04:09 |
| ← v0n left | 04:10 |
| ← dhruvasagar left | 04:11 |
| ← nothingbutlove left | 04:12 |
| → dfr|mac joined | 04:12 |
| → Eridius joined | 04:12 |
| ← OOPMan left | 04:13 |
| → hyperair joined | 04:13 |
| → dhruvasagar joined | 04:13 |
| → ferdna joined | 04:14 |
| → maestrojed joined | 04:15 |
| ← artnez left | 04:18 |
| ← _Vi left | 04:19 |
| → _Vi joined | 04:20 |
| → beautifulmind joined | 04:20 |
| ← dreiss left | 04:20 |
| ← towski left | 04:21 |
| ← centipedefarmer left | 04:23 |
| → juvenal joined | 04:24 |
| ← Davey left | 04:25 |
| → gavin_huang joined | 04:26 |
| → OOPMan joined | 04:28 |
| → pretty_function joined | 04:28 |
| ← ZyX-I left | 04:29 |
| → noyb joined | 04:29 |
| → opus joined | 04:31 |
| ← brettgoulder left | 04:31 |
| ← diegoviola left | 04:31 |
| ← beautifulmind left | 04:32 |
| ← hfutrell left | 04:32 |
| ← flebron left | 04:32 |
| → wereHamster joined | 04:32 |
| → wolftankk joined | 04:34 |
| ← xMYTHICx left | 04:36 |
| ← macabre left | 04:37 |
| → beautifulmind joined | 04:38 |
| → hobodave joined | 04:39 |
| ← aeontech left | 04:40 |
| → codeFiend joined | 04:41 |
| ← erynofwales left | 04:42 |
|
oojacoboo
| wow, really not having much luck here | 04:43 |
|
| git def makes things complicated it seems | 04:43 |
|
| I've spelled out the issue in here earlier | 04:43 |
|
| basically, there is a branch that has a bunch of merges with another branch and I want to trash all those merges | 04:44 |
| ← beautifulmind left | 04:44 |
|
oojacoboo
| or… leave them in place somehow and merge it again, but I don't want the git to think it's already merged | 04:44 |
| → etcetera joined | 04:45 |
|
oojacoboo
| basically, I just want to have it try and do a fresh merge again so it can find changes and conflicts without assuming everything is just hunky-dorey, which it is not | 04:45 |
| → beneggett joined | 04:45 |
|
EugeneKay
| Do you care about published history? | 04:45 |
|
| eg, will you be burned at the stake for doing a force-push? | 04:45 |
|
oojacoboo
| no | 04:46 |
| ← rohan32 left | 04:46 |
|
oojacoboo
| I don't care about anything but the development branch at this point | 04:46 |
| → Davey joined | 04:46 |
|
oojacoboo
| this issue branch just needs to forget that it has anything done to it except for the status of the files | 04:46 |
|
EugeneKay
| use `git reset --hard $SHA` on each branch involved to put it back to it's pre-merge state. Then just do your merges cleanly, creating new merge commits. Use the -n flag on git-merge to inspect the results of the automerge before you commit | 04:46 |
|
oojacoboo
| then I want to merge it onto development so it can perform it's diff | 04:46 |
|
EugeneKay
| Use the !lol to find the right SHA to reset to for your issue branch | 04:47 |
|
gitinfo
| git config --global alias.lol "log --oneline --graph --decorate" | 04:47 |
|
oojacoboo
| mmm | 04:47 |
|
| my god at the flags | 04:47 |
|
EugeneKay
| You should probably also reset your "development" branch to just before you started merging into it | 04:47 |
|
oojacoboo
| EugeneKay, each branch involved means what? | 04:48 |
|
EugeneKay
| The branch(es) that you're merging into the "development" branch. | 04:48 |
|
oojacoboo
| ok, so the single branch I'm referring to here then | 04:48 |
|
EugeneKay
| Sure | 04:48 |
|
oojacoboo
| and the sha I'm going to get by running that UN of flags command? | 04:49 |
|
EugeneKay
| Also the "development" branch itself | 04:49 |
|
| How you get the SHA is immaterial. `git log --oneline --graph --decorate` is just a quick, easily digestible view. | 04:50 |
|
oojacoboo
| gotcha | 04:50 |
| ← piotrj left | 04:50 |
|
oojacoboo
| I have to reset the development branch as well? | 04:50 |
|
EugeneKay
| I would, so the bad merge disappears into the mists of the objects/ dir. | 04:50 |
|
| You want to forget it anyway, so just kill it entirely. | 04:50 |
|
oojacoboo
| doesn't that kill the history though? | 04:51 |
|
| I want to maintain that on development | 04:51 |
|
EugeneKay
| Yeah, but only that merge commit. | 04:52 |
|
| You can create a new commit on development that puts it back at the exact state it was before the merge. | 04:52 |
|
| `git checkout $SHA -- .`, then commit with a message of "Going back to pre-merge state" or something. | 04:53 |
|
| Where $SHA is the one just before the merge | 04:53 |
|
oojacoboo
| TMI man | 04:53 |
|
EugeneKay
| That means you're learning ;-) | 04:53 |
| → Chibby_ joined | 04:54 |
|
oojacoboo
| yes, that's one way of putting it | 04:54 |
| → macIvy joined | 04:54 |
| ← opus left | 04:56 |
| ← beneggett left | 04:58 |
| → maleknet joined | 04:58 |
| ← etcetera left | 04:59 |
| → dstorrs joined | 04:59 |
| → duckxx joined | 04:59 |
| → intripoon_ joined | 04:59 |
| → bizhanMona joined | 04:59 |
| → Lgb joined | 04:59 |
| → smarter_ joined | 04:59 |
| → SJS joined | 04:59 |
| → john_anderson joined | 04:59 |
| → dbr joined | 04:59 |
| → ajpiano joined | 04:59 |
| → reactormonk joined | 04:59 |
| → kpreid joined | 04:59 |
| → jstemmer joined | 04:59 |
| → Swathe joined | 04:59 |
| → bronsen joined | 04:59 |
| → piotrj joined | 05:00 |
| → SwK joined | 05:01 |
| ← mrwalker left | 05:02 |
| ← cjb left | 05:02 |
| → cjb joined | 05:02 |
| ← hobodave left | 05:02 |
| → etcetera joined | 05:02 |
| ← dfr|mac left | 05:03 |
| ← w09x left | 05:03 |
| → Tankado joined | 05:03 |
| → ovnicraft joined | 05:04 |
|
Tankado
| Is there any git client that shows the branches tree in a vertical way ? (similar to IBM telelogic synergy if anyone is familiar) like master-> commit -> commit , and then a down arrow for a branch | 05:05 |
| → zapsoda joined | 05:05 |
|
zapsoda
| Hi, I was wondering if there was a way to send a pull request from the Git Bash? | 05:05 |
| ← rue_XIV left | 05:06 |
| → rue joined | 05:07 |
| → carpii joined | 05:08 |
|
carpii
| i made some temp commits on a branch, and merged it into master. thats all fine, but now i want to revert those changes (it was for website downtime). Is there a way to revert 5 or 6 commits in one go? | 05:08 |
| ← Chappo left | 05:09 |
| → leeN joined | 05:09 |
| → Chappo joined | 05:10 |
| ← cwang left | 05:10 |
| ← dhruvasagar left | 05:12 |
| → cwang joined | 05:12 |
| → dhruvasagar joined | 05:12 |
| → jgoss joined | 05:14 |
| → arvind_khadri joined | 05:15 |
|
carpii
| seems its git revert --no-commit i needed | 05:16 |
| ← arvind_khadri left | 05:17 |
| → Fullmoon joined | 05:17 |
| → jargon- joined | 05:18 |
| ← dstorrs left | 05:19 |
| ← duckxx left | 05:19 |
| ← intripoon_ left | 05:19 |
| ← Lgb left | 05:19 |
| ← bizhanMona left | 05:19 |
| ← smarter_ left | 05:19 |
| ← SJS left | 05:19 |
| ← john_anderson left | 05:19 |
| ← dbr left | 05:19 |
| ← ajpiano left | 05:19 |
| ← reactormonk left | 05:19 |
| ← kpreid left | 05:19 |
| ← jstemmer left | 05:19 |
| ← Swathe left | 05:19 |
| ← bronsen left | 05:19 |
| ← _Vi left | 05:20 |
| → _Vi joined | 05:20 |
| ← Davey left | 05:20 |
| → BadDesign joined | 05:22 |
| → NyanChat joined | 05:22 |
| ← NyanChat left | 05:22 |
| ← BadDesign left | 05:22 |
| → BadDesign joined | 05:22 |
| ← TheLZA left | 05:23 |
| → arvind_khadri joined | 05:23 |
| ← carpii left | 05:23 |
| → leila joined | 05:24 |
| → unmanbearpig joined | 05:26 |
|
oojacoboo
| EugeneKay, that !lol didn't work for me, what's the sha, the latest commit for the branch, or the first? | 05:27 |
|
gitinfo
| EugeneKay: git config --global alias.lol "log --oneline --graph --decorate" | 05:27 |
|
EugeneKay
| Look at the log, don't ask me | 05:27 |
|
oojacoboo
| oh… it adds to the log | 05:27 |
|
| doooop | 05:27 |
| ← arvind_khadri left | 05:28 |
| ← ovnicraft left | 05:29 |
| → jrondam joined | 05:29 |
| ← Fretta left | 05:29 |
|
oojacoboo
| how do I view the log… sigh | 05:29 |
| → arvind_khadri joined | 05:29 |
|
EugeneKay
| <EugeneKay> How you get the SHA is immaterial. `git log --oneline --graph --decorate` is just a quick, easily digestible view. | 05:29 |
|
| Run that ^ | 05:29 |
| → s0ber_ joined | 05:29 |
|
oojacoboo
| oh, the config was just to enable that, I assume | 05:30 |
|
| I thought that was one command | 05:30 |
| ← gavin_huang left | 05:30 |
|
oojacoboo
| thanks | 05:30 |
|
EugeneKay
| the config creates an alias named lol which does that | 05:30 |
| ← dhruvasagar left | 05:30 |
| ← Turicas left | 05:32 |
| ← s0ber left | 05:32 |
| ← pigeon left | 05:32 |
|
oojacoboo
| EugeneKay, I'm still not sure where I'm suppose to find the hash, this appears as a series of latest commits | 05:32 |
| s0ber_ → s0ber | 05:32 |
|
oojacoboo
| I feel like the biggest noob on the planet with this crap | 05:32 |
|
EugeneKay
| !treeish | 05:32 |
|
gitinfo
| A tree-ish is something that looks like a tree. Read 'man gitrevisions' and http://git-scm.com/book/en/Git-Tools-Revision-Selection | 05:32 |
|
EugeneKay
| "Short SHA" | 05:32 |
| ← jrondam left | 05:32 |
|
oojacoboo
| yes, right, but these are jsut commit hashes | 05:32 |
|
EugeneKay
| Yes.... that's what you want. | 05:33 |
|
oojacoboo
| just any one? | 05:33 |
|
| doesn't matter? | 05:33 |
|
EugeneKay
| The one just before the merge commit.... | 05:33 |
|
oojacoboo
| what if there are like 10 merge commits? | 05:33 |
|
| and I want to keep all of the other commits, just not the merges | 05:33 |
| → beautifulmind joined | 05:33 |
| → pigeon joined | 05:33 |
|
oojacoboo
| I'm not trying to roll back one bad merge commit | 05:34 |
| ← iamjarvo left | 05:34 |
|
Tankado
| Is there any git client that shows the branches tree in a vertical way ? (similar to IBM telelogic synergy if anyone is familiar) like master-> commit -> commit , and then a down arrow for a branch | 05:34 |
|
oojacoboo
| this is an issue branch where the dev thought a continual merge was the best way to stay in sync | 05:34 |
| → snearch joined | 05:34 |
|
oojacoboo
| Tankado, that's the SVN way of thinking | 05:34 |
| ← Chappo left | 05:34 |
|
oojacoboo
| branches don't belong, they are linear | 05:35 |
| → Chappo joined | 05:35 |
|
oojacoboo
| dvcs is different | 05:35 |
|
| and hard to understand | 05:35 |
| → ovnicraft joined | 05:35 |
|
Tankado
| i just want to see the branches vertically they can be linear | 05:35 |
|
oojacoboo
| Tankado, there are lots of apps out there | 05:36 |
| ← schemula left | 05:36 |
| ← wereHamster left | 05:36 |
| → pantsman joined | 05:36 |
| ← pantsman left | 05:36 |
| → pantsman joined | 05:36 |
|
oojacoboo
| EugeneKay, I'm assuming that's not going to work for my issue | 05:36 |
|
| I'm thinking a git rebase is still needed | 05:36 |
|
EugeneKay
| Continual... merge... like, at every commit? | 05:36 |
|
oojacoboo
| EugeneKay, before coding | 05:36 |
|
| EugeneKay makes a rude noise | 05:37 |
| ← rchavik left | 05:37 |
|
EugeneKay
| You're gonne have a buncha fun with rebase and/or cheryr-pick | 05:37 |
|
oojacoboo
| I know | 05:37 |
| → rchavik joined | 05:37 |
|
oojacoboo
| there has to be a way to trash this branch's history somehow | 05:37 |
|
| flatten it | 05:37 |
|
EugeneKay
| reset --hard ;-) | 05:37 |
|
oojacoboo
| disassociate it, then try and fresh merge | 05:37 |
|
EugeneKay
| You have to recreate it commit-by-commit, sans the merging | 05:37 |
|
oojacoboo
| but that kills everything to that point, no? | 05:37 |
|
EugeneKay
| Yes, but if you leave a nonce branch there you can still get the SHAs via the log, and then cherry-pick into your pristine branch | 05:38 |
| ← AlbireoX left | 05:38 |
|
oojacoboo
| ah, so, you're saying just add a new branch and cherry pick? | 05:39 |
|
| cherry-pick merge* | 05:39 |
|
| if that's even a thing | 05:40 |
|
_ikke_
| oojacoboo: dvcs is not really hard to understand, just different | 05:40 |
| ← Tankado left | 05:40 |
| ← marc_kdab_ left | 05:40 |
| → marc_kdab_ joined | 05:41 |
| → reds joined | 05:41 |
|
_ikke_
| oojacoboo: cherry-picking is not merging | 05:41 |
|
oojacoboo
| _ikke_, right, I know | 05:42 |
| reds → Guest82559 | 05:42 |
|
oojacoboo
| but can I cherry-pick merge so to speak | 05:42 |
|
| aka, grab a certain commit and merge into another branch | 05:42 |
|
_ikke_
| You don't merge it in a different branch | 05:42 |
| → gavin_huang joined | 05:42 |
|
_ikke_
| you copy it onto a different branch | 05:42 |
|
oojacoboo
| ok, sure, that too, I can do that? | 05:42 |
|
AAA_awright
| What would be the best way to search a list of local repositories for the existance of any number of commit Ids? | 05:42 |
|
_ikke_
| AAA_awright: Write a script that does that | 05:43 |
|
AAA_awright
| How is the advice I am seeking | 05:43 |
|
_ikke_
| oojacoboo: man git cherry-pick | 05:43 |
|
gitinfo
| oojacoboo: the git-cherry-pick manpage is available at http://git-scm.com/docs/git-cherry-pick.html | 05:43 |
| → Chris____ joined | 05:43 |
|
AAA_awright
| I could brute force search it but I'm thinking there's more efficent ways | 05:43 |
|
SwK
| damn it man... there needs to be a git cherry-pick --interactive like for rebase | 05:43 |
| → olaf_ joined | 05:44 |
| → irqq joined | 05:44 |
| ← juvenal left | 05:44 |
|
_ikke_
| SwK: Why do you need that? | 05:44 |
|
SwK
| _ikke_: stable branching | 05:45 |
|
| where as master continues along as dev branch and being able to interactively pull patches to say v1.x branches | 05:45 |
| → dvide joined | 05:46 |
| ← Guest82559 left | 05:46 |
| → floppyears joined | 05:48 |
| ← floppyears left | 05:48 |
| → floppyears joined | 05:48 |
| ← Kyzz left | 05:49 |
| ← Eridius left | 05:49 |
| → Eridius_ joined | 05:49 |
| → wereHamster joined | 05:51 |
| → tekbwainz joined | 05:52 |
| ← tekbwainz left | 05:52 |
| → tekbwainz joined | 05:52 |
| → j416 joined | 05:52 |
| ← gavin_huang left | 05:54 |
| ← Eridius_ left | 05:55 |
| → apok joined | 05:55 |
| → arkiver joined | 05:56 |
|
AAA_awright
| Well how about this: What's the fast way to check that a commit merely exists? | 05:56 |
| ← neurodrone_ left | 05:57 |
|
SwK
| fisheye | 05:57 |
|
AAA_awright
| actually I have a better idea | 05:57 |
| → Eridius_ joined | 05:58 |
|
_ikke_
| AAA_awright: git cat-file -s <hash> | 05:58 |
| Eridius_ → Eridius | 05:58 |
| ← cenuij left | 05:59 |
|
wereHamster
| rev-parse | 05:59 |
|
oojacoboo
| AAA_awright, http://stackoverflow.com/questions/2444100/how-can-i-determine-if-a-given-git-hash-exists-on-a-given-branch | 05:59 |
|
| git branch -a --contains 4f08c85ad | 05:59 |
| → gavin_huang joined | 06:00 |
| ← yoklov left | 06:00 |
| ← OOPMan left | 06:01 |
| ← maestrojed left | 06:02 |
| → aeontech joined | 06:02 |
| ← codeFiend left | 06:02 |
| aeontech → codeFiend | 06:02 |
|
_ikke_
| That's on a branch | 06:03 |
|
| he just want to check if it exists in the repository | 06:04 |
| → cenuij joined | 06:04 |
| ← cenuij left | 06:04 |
| → cenuij joined | 06:04 |
| ← codeFiend left | 06:08 |
| → mishok13 joined | 06:10 |
|
AAA_awright
| _ikke_: actually oojacoboo makes a good point, the commit could exist, but it's just not refereneced by any branch | 06:10 |
| → lirt joined | 06:10 |
| → afuentes joined | 06:11 |
|
_ikke_
| AAA_awright: Let's drop back for a moment. What is the thing you actually want to achieve? | 06:12 |
|
AAA_awright
| Actually, I'm trying to see if two repositories are the same (i.e., compatible versions of each other) | 06:13 |
|
wereHamster
| AAA_awright: define 'compatible' | 06:13 |
| → lb joined | 06:14 |
| ← lb left | 06:14 |
| → lb joined | 06:14 |
|
AAA_awright
| Working on that heh, uh | 06:14 |
| → cbreak-work joined | 06:14 |
| → chriskon149 joined | 06:14 |
|
AAA_awright
| They may be from different remotes/mirrors, or be forks, but they both have commits in common that are marked as the commits that I'm compatible with | 06:14 |
|
oojacoboo
| diff ? | 06:15 |
| → jkremser joined | 06:15 |
|
wereHamster
| so your criterion is that both have a common commit? | 06:15 |
| ← lirt left | 06:16 |
|
AAA_awright
| Yeah. | 06:16 |
|
wereHamster
| (certain special commit which you know by hash) | 06:16 |
|
| git branch --contains ... | 06:16 |
| ← osmosis left | 06:17 |
|
AAA_awright
| More specifically: I have a repository, and range of commits that I can check out, and another repository, and range of commits I can check out, I want to see if any of those commits are the same | 06:17 |
| ← ferdna left | 06:17 |
| ← j416 left | 06:17 |
|
oojacoboo
| AAA_awright, you could just run diff, ya know? | 06:17 |
| → arcanis joined | 06:18 |
| → papegaaij joined | 06:18 |
|
AAA_awright
| How would that help me | 06:18 |
| ← gavin_huang left | 06:18 |
|
oojacoboo
| if you want to know if they're different... | 06:18 |
|
wereHamster
| AAA_awright: 'I want to see if any of those commits are the same' - compare the commit hashes | 06:18 |
|
oojacoboo
| if you're looking to find missing commits, etc, that's a diff story | 06:18 |
| → sqlbyme joined | 06:18 |
|
AAA_awright
| That's not generally something you can run cross-repository | 06:19 |
| ← jh3 left | 06:19 |
| → sagan8972 joined | 06:19 |
| ← sqlbyme left | 06:19 |
| → jh3 joined | 06:20 |
| → marthinal joined | 06:20 |
| ← _Vi left | 06:20 |
| ← sagan8972 left | 06:20 |
| → sqlbyme joined | 06:20 |
| ← Tommy[D] left | 06:20 |
| ← jh3 left | 06:20 |
| → _Vi joined | 06:20 |
| → jh3 joined | 06:21 |
| → Tommy[D] joined | 06:21 |
| → gavin_huang joined | 06:21 |
| → codeFiend joined | 06:22 |
| → KTMBoID joined | 06:22 |
| ← KTMBoID left | 06:22 |
| ← arcanis left | 06:22 |
| → skorgon joined | 06:22 |
| ← skorgon left | 06:22 |
| → skorgon joined | 06:22 |
|
wereHamster
| AAA_awright: you can not run anything cross-repository. You always have to fetch first to get the objects into a single repo | 06:23 |
| ← chriskon149 left | 06:23 |
| → senny joined | 06:24 |
| ← sqlbyme left | 06:24 |
| → maletor joined | 06:25 |
| ← mishok13 left | 06:25 |
| → kleist joined | 06:27 |
| ← madewokherd left | 06:29 |
| ← darren left | 06:30 |
| ← maletor left | 06:30 |
| ← pantsman left | 06:31 |
| → pantsman joined | 06:32 |
| ← arkiver left | 06:33 |
| ← avpx left | 06:34 |
| → nor5trom joined | 06:35 |
| → toabctl joined | 06:37 |
| → dstorrs joined | 06:37 |
| → intripoon_ joined | 06:37 |
| → bizhanMona joined | 06:37 |
| → Lgb joined | 06:37 |
| → smarter_ joined | 06:37 |
| → SJS joined | 06:37 |
| → john_anderson joined | 06:37 |
| → dbr joined | 06:37 |
| → ajpiano joined | 06:37 |
| → reactormonk joined | 06:37 |
| → kpreid joined | 06:37 |
| → jstemmer joined | 06:37 |
| → Swathe joined | 06:37 |
| → bronsen joined | 06:37 |
| ← nor5trom left | 06:37 |
| ← reactormonk left | 06:37 |
| ← macIvy left | 06:38 |
| → rurufufuss joined | 06:39 |
| ← Chappo left | 06:42 |
| tekbwainz → phreaky | 06:42 |
| ← chepre left | 06:42 |
| → Chappo joined | 06:42 |
| ← gavin_huang left | 06:43 |
| ← maleknet left | 06:44 |
| ← leila left | 06:44 |
| → giallu joined | 06:45 |
| ← marthinal left | 06:46 |
| ← molixiaoge left | 06:47 |
| → gavin_huang joined | 06:47 |
| → marthinal joined | 06:47 |
| ← Bosox20051 left | 06:48 |
| ← codeFiend left | 06:51 |
| → aeontech joined | 06:51 |
| ← noyb left | 06:52 |
| → molixiaoge joined | 06:52 |
| → molixiaoge_ joined | 06:53 |
| ← molixiaoge_ left | 06:53 |
| ← zapsoda left | 06:57 |
| → jceb joined | 06:57 |
| → jdav_gon` joined | 06:57 |
| ← aartist left | 06:58 |
| ← Chappo left | 06:59 |
| → Chappo joined | 06:59 |
| ← dharrigan left | 07:00 |
| ← jdav_gone left | 07:00 |
| → arkiver joined | 07:01 |
| ← etcetera left | 07:01 |
| → flijten joined | 07:02 |
| ← ovnicraft left | 07:02 |
| ← subbyyy left | 07:03 |
| ← Goplat left | 07:03 |
| ← igotnolegs left | 07:03 |
| ← apok left | 07:04 |
| → alexukf joined | 07:06 |
| ← sedavand_ left | 07:06 |
| → ph^_ joined | 07:06 |
| → mishok13 joined | 07:07 |
| ← gavin_huang left | 07:08 |
| → maleknet joined | 07:08 |
| ← boombatower left | 07:08 |
| → dhruvasagar joined | 07:09 |
| ← maleknet left | 07:09 |
| ← skorgon left | 07:10 |
| → gavin_huang joined | 07:10 |
| → maleknet joined | 07:10 |
| → nor5trom joined | 07:11 |
| ← nor5trom left | 07:12 |
| → psoo joined | 07:12 |
| → nor5trom joined | 07:13 |
| → arturaz joined | 07:14 |
| → thiago joined | 07:14 |
| ← Tommy[D] left | 07:15 |
| → fornext joined | 07:16 |
| → skorgon joined | 07:18 |
| ← skorgon left | 07:18 |
| → skorgon joined | 07:18 |
| ← palm_vue left | 07:20 |
| ← bizhanMona left | 07:20 |
| ← Lgb left | 07:20 |
| ← maleknet left | 07:21 |
| → maleknet joined | 07:21 |
| ← maleknet left | 07:21 |
| → Spabby joined | 07:22 |
| gitinfo set mode: +v | 07:22 |
| → palm_vue joined | 07:22 |
| → Lgb joined | 07:22 |
| → bizhanMona joined | 07:23 |
| → etcetera joined | 07:23 |
|
Spabby
| good morning, I am trying to use git bisect to find out which commit has caused a bug, I have known good and bad revisions, but I can't seem to get it to work, should my local copy be at the good or bad revision before starting please? | 07:23 |
| → dsirijus joined | 07:23 |
| → Tommy[D] joined | 07:24 |
|
_ikke_
| Spabby: That doesn't really matter. You just specify what what is | 07:24 |
|
| Spabby: git bisect start | 07:24 |
|
| If you're on a good revision: git bisect good; git bisect bad <sha-of-bad-hash>; | 07:24 |
|
| After that, bisecting begins | 07:24 |
| ← nocturnal left | 07:25 |
| ← cdash004 left | 07:25 |
| ← rehat left | 07:25 |
|
_ikke_
| Spabby: Note that you can also do git bisect start <bad> [<good>] | 07:25 |
| ← dhruvasagar left | 07:25 |
| ← toabctl left | 07:25 |
| → dhruvasagar joined | 07:26 |
| → cdash004 joined | 07:26 |
| → dc5ala joined | 07:27 |
| → soee joined | 07:28 |
| ← gavin_huang left | 07:29 |
| → OOPMan joined | 07:30 |
| ← lb left | 07:30 |
| ← aeontech left | 07:31 |
| → lb joined | 07:32 |
|
Spabby
| _ikke_: thanks | 07:32 |
| ← SyouJyoA left | 07:32 |
| → gavin_huang joined | 07:33 |
| → _Qman joined | 07:33 |
| ← flijten left | 07:34 |
|
magn0z_
| if a branch has been pushed to other repos, and that branch needs to catch up with the master branch, what's the proper way of doing it? i find merging the master onto the branch is really ugly, since you end up with a merge commit that isn't really related to the branch. and i can't rebase, since the branch is pushed to others | 07:34 |
| → _oakdog8 joined | 07:34 |
| ← oakdog8 left | 07:34 |
| → bjensen joined | 07:35 |
| ← bjensen left | 07:35 |
| → bjensen joined | 07:35 |
|
wereHamster
| magn0z_: you can't rebase and you don't want to merge. The answer is pretty clear then. | 07:36 |
| → opus joined | 07:36 |
| ← etcetera left | 07:36 |
|
magn0z_
| wereHamster, create a new branch? | 07:37 |
|
_ikke_
| magn0z_: Are you the only one working on that branch, or are others also building on top of it? | 07:37 |
|
magn0z_
| _ikke_, well, others review it and give me suggestions on improvements. im the one working on it, but others have it in their repos | 07:38 |
| ← dzonder left | 07:38 |
| ← Spabby left | 07:38 |
|
_ikke_
| Do you really *need* to incorporate changes from master? | 07:39 |
| ← beautifulmind left | 07:39 |
| → reds joined | 07:42 |
| → rmr joined | 07:42 |
| reds → Guest18578 | 07:42 |
| → nhooey|mini__ joined | 07:42 |
| ← nhooey|mini_ left | 07:43 |
| ← Chappo left | 07:43 |
| ← ology left | 07:43 |
| ← SHAGGSTaRR left | 07:44 |
|
magn0z_
| _ikke_, usually, no.. but if a branch has fallen very far behind, will it not cause merge problems if i attempt to merge it directly with master? instead i solve the merge conflict by merging master to my branch, and then merging the branch to master. perhaps thats what i'm doing wrong? is it possible that this will ease the merge? | 07:45 |
| → TheHaven joined | 07:45 |
| → shreya joined | 07:46 |
| → kkszysiu_work joined | 07:47 |
|
_ikke_
| magn0z_: Well, merging master to branch or branch to master will not make a difference with merge conflicts | 07:47 |
| ← Guest18578 left | 07:47 |
| → Sebo joined | 07:48 |
| → Chappo joined | 07:49 |
| → polymar joined | 07:49 |
|
_ikke_
| magn0z_: And if it's a topic branch where no one else builds on, rewriting it is also not a problem | 07:49 |
|
| magn0z_: the git project also regularly rewrites published branches | 07:50 |
| ← gavin_huang left | 07:50 |
|
_ikke_
| (pu) | 07:50 |
| → landypro_ joined | 07:50 |
| ← wolftankk left | 07:50 |
| ← shreya left | 07:51 |
| → shreya joined | 07:51 |
| → wolftankk joined | 07:51 |
| ← wolftankk left | 07:52 |
| ← rmr left | 07:52 |
| → SHAGGSTaRR joined | 07:52 |
| → timthelion joined | 07:53 |
| → flijten joined | 07:53 |
| ← arkiver left | 07:54 |
| ← harish left | 07:55 |
| → Element9 joined | 07:55 |
| → und3f joined | 07:55 |
| ← gxk left | 07:55 |
| → gavin_huang joined | 07:55 |
| → LimeBlast joined | 07:56 |
| → dpino joined | 07:59 |
| → Jay_Levitt joined | 07:59 |
| ← gavin_huang left | 07:59 |
| → tvw joined | 07:59 |
| → Speed joined | 08:00 |
| → eletuchy joined | 08:00 |
| → lukosanthropos joined | 08:00 |
| ← piotrj left | 08:02 |
| ← pantsman left | 08:02 |
| ← quazimodo left | 08:04 |
| ← ReekenX left | 08:04 |
| → gavin_huang joined | 08:04 |
| → quazimodo joined | 08:06 |
| → dr_lepper joined | 08:06 |
| → ReekenX joined | 08:06 |
|
magn0z_
| _ikke_, ok, but won't people have to do git pull -f to get the new stuff? even worse, what will happen if I publish a branch for review, fix any comments, rebase the branch and then merge it to master, without publishing the new branch. in that case, the branch will be merged in my repo, and others will get the same stuff on their master, while still having this "dead" semi-complete published branch with the same name as the one i merged | 08:06 |
| → arkiver joined | 08:08 |
| ← hwrd|work left | 08:09 |
|
_ikke_
| magn0z_: If you use git pull or git pull origin, you don't have to use -f | 08:09 |
|
| And after that branch has been merged in, it can possibly be removed | 08:09 |
| ← arkiver left | 08:09 |
|
_ikke_
| But if you fix anything, you should still push that so it can be reviewed again | 08:10 |
| → d3vic3 joined | 08:10 |
| → arkiver joined | 08:10 |
| ← Eridius left | 08:11 |
| ← jkremser left | 08:11 |
| ← arturaz left | 08:14 |
| → narfnarfnarf joined | 08:15 |
| ← arkiver left | 08:16 |
| ← shreya left | 08:16 |
| → shreya joined | 08:16 |
| ← bjensen left | 08:17 |
| ← _Vi left | 08:20 |
| → _Vi joined | 08:21 |
| → BiggFREE joined | 08:21 |
| ← d3vic3 left | 08:24 |
| → d3vic3 joined | 08:25 |
| ← corburn left | 08:26 |
| ← ph^_ left | 08:27 |
| ← d3vic3 left | 08:30 |
| ← asakura left | 08:31 |
| → ph^ joined | 08:33 |
| → d3vic3 joined | 08:34 |
| ← d3vic3 left | 08:35 |
| → torbjorn joined | 08:36 |
| ← opus left | 08:36 |
| → Nibato joined | 08:36 |
| → mabrand joined | 08:36 |
| → diegoviola joined | 08:39 |
| → asakura joined | 08:39 |
| ← hays left | 08:40 |
| → Vert joined | 08:40 |
| → d3vic3 joined | 08:40 |
| ← iori left | 08:42 |
| → martinjlowm joined | 08:42 |
| ← d3vic3 left | 08:44 |
| → tinti joined | 08:45 |
| → mmc1 joined | 08:46 |
| → d3vic3 joined | 08:46 |
| ← tinti left | 08:47 |
| ← d3vic3 left | 08:47 |
| ← mabrand left | 08:47 |
| → mabrand joined | 08:48 |
| ← flijten left | 08:49 |
| ← Araxia left | 08:49 |
| ← babilen left | 08:50 |
| ← dhruvasagar left | 08:51 |
| ← und3f left | 08:51 |
| ← javawizard left | 08:51 |
| → dhruvasagar joined | 08:51 |
| → und3f joined | 08:51 |
| → jkremser joined | 08:52 |
| ← thiago left | 08:53 |
| ← mabrand left | 08:53 |
| ← snearch left | 08:53 |
| ← tweedledumber left | 08:54 |
| → tatsuya_o joined | 08:55 |
| ← OOPMan left | 08:55 |
| → tweedledumber joined | 08:56 |
| SeoZ → SeoZ-work[AWAY] | 08:56 |
| ← tqmz___ left | 08:58 |
| → tqmz joined | 08:58 |
| ← archdori left | 08:59 |
|
comps_
| what is the branches/ directory inside GIT_DIR for? .. is it for some backwards-compatibility? | 09:00 |
| → archdori joined | 09:00 |
| → archdori_ joined | 09:00 |
| ← Fandekasp left | 09:00 |
| ← dhruvasagar left | 09:00 |
| ← asakura left | 09:00 |
| → dhruvasagar joined | 09:01 |
|
_ikke_
| comps_: afaik, yes | 09:02 |
| ← oojacoboo left | 09:02 |
| → asakura joined | 09:02 |
| → ryez joined | 09:04 |
| → gusnan joined | 09:04 |
| → shruggar joined | 09:04 |
| ← john3 left | 09:05 |
| → oojacoboo joined | 09:05 |
| → gxk joined | 09:05 |
| ← ryez left | 09:05 |
| → flijten joined | 09:05 |
| → iori joined | 09:06 |
| → ashirus joined | 09:06 |
| → john3 joined | 09:06 |
| archdori_ → Fandekasp | 09:07 |
| → OOPMan joined | 09:09 |
| ← alexukf left | 09:10 |
| ← pxdr left | 09:10 |
| ← BiggFREE left | 09:11 |
| → xMYTHICx joined | 09:11 |
| ← xMYTHICx left | 09:11 |
| → xMYTHICx joined | 09:12 |
| ← polymar left | 09:13 |
| ← timthelion left | 09:17 |
| ← borwar left | 09:18 |
| → fructose joined | 09:20 |
|
fructose
| Anyone know a way to deploy (push) a git project to a webserver when the host doesn't itself support git? | 09:20 |
|
| I tried sshfs, but it was incredibly slow to run any git commands | 09:20 |
|
_ikke_
| fructose: Don't use git itself to deploy | 09:20 |
| → LekeFly joined | 09:21 |
| ← _Vi left | 09:21 |
|
fructose
| _ikke_: Can you suggest an alternative that doesn't require server support? | 09:21 |
|
_ikke_
| fructose: Just use something like git archive to extract the project, and use sftp, rsync or something else to deploy it | 09:21 |
| → borwar joined | 09:21 |
| ← e0je left | 09:21 |
| ← eletuchy left | 09:21 |
|
fructose
| _ikke_: The issue is that I do not want to copy over everything at once... don't think the host supports rsync either | 09:22 |
|
_ikke_
| fructose: rsync uses ssh | 09:22 |
| → _Vi joined | 09:22 |
|
_ikke_
| (can use) | 09:22 |
|
| fructose: What do you mean that you don't want to copy over everything at once? | 09:22 |
| → babilen joined | 09:22 |
| → achadwick joined | 09:22 |
|
fructose
| _ikke_: Just want diffs, not the whole project every time | 09:23 |
|
_ikke_
| rsync can do diffs | 09:23 |
| ← asakura left | 09:23 |
|
fructose
| _ikke_: Looking into rsync via ssh now, but the suggestion seems to be to set up public key encryption. Is that required to avoid typing a password for each file? | 09:23 |
|
_ikke_
| fructose: Not sure it's required for each file, but I do recommend setting up ssh keys | 09:24 |
| → barq joined | 09:25 |
|
fructose
| _ikke_: I'll try it out, thanks | 09:26 |
| ← john3 left | 09:27 |
| → Xilent joined | 09:27 |
| → john3 joined | 09:27 |
| → alexukf joined | 09:29 |
| → Rajesh joined | 09:32 |
| Rajesh → Guest87792 | 09:32 |
| → thiago joined | 09:34 |
| → whitman joined | 09:34 |
| → TomyLobo joined | 09:35 |
|
barq
| How can I move a github repository to a local git repository? | 09:37 |
| → SyouJyoA joined | 09:37 |
|
_ikke_
| barq: Just clone it | 09:37 |
|
barq
| So just git clone rep? | 09:38 |
|
_ikke_
| yeah | 09:38 |
| → TheJH joined | 09:40 |
| → archdori_ joined | 09:40 |
| ← Fandekasp left | 09:41 |
| ← archdori left | 09:41 |
| → berserkr joined | 09:42 |
| → reds joined | 09:42 |
| reds → Guest57559 | 09:42 |
| ← SyouJyoA left | 09:43 |
| → udantee joined | 09:43 |
| ← Guest57559 left | 09:46 |
| → d3vic3 joined | 09:47 |
| ← LekeFly left | 09:48 |
| → Fandekasp joined | 09:50 |
| → tsdh joined | 09:51 |
|
barq
| _ikke_: I think I didn't make myself clear. I want to stop using github and use a local server as a repository instead. If I just do git clone rep I'm not sure I achieve that. | 09:52 |
| ← gavin_huang left | 09:52 |
| ← archdori_ left | 09:52 |
| ← jackh left | 09:52 |
|
_ikke_
| barq: Yes, a git clone is a full clone of the repository | 09:52 |
|
cmn
| you can use --mirror | 09:52 |
|
| but that will bring in the github-specific refs | 09:52 |
|
barq
| How do I pull/push to that repository instead of github now? | 09:53 |
|
_ikke_
| barq: I would recommend looking at !gitolite | 09:53 |
|
gitinfo
| barq: Want to host as many git repos (and users!) as you like, on your own server, with fine-grained access control? You want gitolite: https://github.com/sitaramc/gitolite - Documentation: http://sitaramc.github.com/gitolite/master-toc.html | 09:53 |
|
_ikke_
| It's quite easy to set up | 09:53 |
|
| You can push your repo to gitolite, and then everyone else can clone from that | 09:54 |
|
cmn
| you do the same as you do when the repo is on github, but you use the other url | 09:54 |
| → tjadc joined | 09:57 |
| → gavin_huang joined | 09:58 |
| ← Fandekasp left | 10:01 |
|
barq
| How can I change the url from git to my local repository which needs ssh access? | 10:02 |
| ← iori left | 10:03 |
| → timthelion joined | 10:05 |
| ← OOPMan left | 10:07 |
| ← d3vic3 left | 10:07 |
| ← gavin_huang left | 10:08 |
| ← hyperair left | 10:09 |
| ← jjang left | 10:10 |
|
cmn
| man git remote set-url | 10:11 |
|
gitinfo
| the git-remote manpage is available at http://git-scm.com/docs/git-remote.html | 10:11 |
| → beautifulmind joined | 10:11 |
| ← fructose left | 10:11 |
| → asakura joined | 10:11 |
| ← fireh left | 10:12 |
| ← shruggar left | 10:12 |
| ← dhruvasagar left | 10:14 |
| → dhruvasagar joined | 10:15 |
| → iori joined | 10:22 |
| ← xMYTHICx left | 10:23 |
| → fireh joined | 10:28 |
| ← comps_ left | 10:28 |
|
barq
| I added the remote and now I get the following error when attempting to push: http://pastie.org/private/z5orayhhvcorka3bgmiq | 10:29 |
| ← f0i left | 10:30 |
| ← unmanbearpig left | 10:30 |
| → LekeFly joined | 10:30 |
|
_ikke_
| barq: read that message | 10:31 |
|
| !bare | 10:31 |
|
gitinfo
| an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/ | 10:31 |
|
barq
| Shouldn't I use a bare rep instead? | 10:31 |
| → mritz_ joined | 10:32 |
| → eletuchy joined | 10:32 |
| ← mritz left | 10:33 |
|
_ikke_
| barq: You *should* use a bare repo instead | 10:34 |
| → adityamenon joined | 10:34 |
| → jonnu joined | 10:35 |
|
barq
| That's what I was wondering before. So I should clone as bare | 10:35 |
| ← eletuchy left | 10:36 |
|
cmn
| create a bare repo and push whatever you need | 10:38 |
| → OOPMan joined | 10:39 |
| → f0i joined | 10:39 |
|
barq
| Thanks. | 10:40 |
| ← Guest87792 left | 10:44 |
| → api joined | 10:44 |
| → Fandekasp joined | 10:48 |
| → specialGuest joined | 10:48 |
| ← specialGuest left | 10:49 |
| → specialGuest joined | 10:49 |
|
barq
| Is it common for this remote to be named origin rather than master? | 10:50 |
| ← nor5trom left | 10:50 |
| ← arvind_khadri left | 10:52 |
|
_ikke_
| barq: origin -> remote, master -> branch | 10:52 |
| → arietis joined | 10:52 |
| ← specialGuest left | 10:53 |
| → nor5trom joined | 10:53 |
| ← jceb left | 10:55 |
|
cmn
| it is very uncommon for a remote to be named master | 10:55 |
| ← alexukf left | 10:55 |
| → arvind_khadri joined | 10:55 |
|
sitaram
| and for a branch to be named origin I guess :) | 10:57 |
|
muep
| origin is a kind of default name for remotes | 10:57 |
|
_ikke_
| muep: It's the name of the remote where the repository was cloned from | 10:57 |
| ← soee left | 10:58 |
| → cilly joined | 10:58 |
| → Superlokkus joined | 10:59 |
| ← eicto left | 11:00 |
| ← mbrochh left | 11:00 |
| → angelsl joined | 11:00 |
| → eicto joined | 11:01 |
| ← arvind_khadri left | 11:02 |
| ← flaguy48 left | 11:03 |
| ← cilly left | 11:04 |
| → d3vic3 joined | 11:04 |
| → arkiver joined | 11:10 |
| → aaronky- joined | 11:11 |
| → AAA_awright_ joined | 11:11 |
| → s0undt3ch_ joined | 11:11 |
| ← ReekenX left | 11:11 |
| → specialGuest joined | 11:12 |
| → aromasca_ joined | 11:13 |
| ← zdk left | 11:13 |
| → andres_f joined | 11:13 |
| ← eicto left | 11:13 |
| → pavelz_ joined | 11:13 |
| → kinlo_ joined | 11:13 |
| → raar joined | 11:13 |
| → wart____ joined | 11:13 |
| → tgummere1 joined | 11:13 |
| → alexukf joined | 11:13 |
| → svm_invi1tvs joined | 11:14 |
| raar → Guest53490 | 11:14 |
| ← adityamenon left | 11:14 |
| → saurik joined | 11:14 |
| → hendry_ joined | 11:14 |
| → malesca_ joined | 11:14 |
| → raek_ joined | 11:14 |
| → oehman joined | 11:14 |
| andres_f → andres | 11:15 |
| ← gumnos left | 11:18 |
| → gry- joined | 11:18 |
| ← gry left | 11:18 |
| ← hendry left | 11:18 |
| ← kinlo left | 11:18 |
| ← AAA_awright left | 11:18 |
| gry- → gry | 11:18 |
| → eighty4 joined | 11:19 |
| ← Xilent left | 11:19 |
| ← xiangfu left | 11:20 |
| → rwestphal joined | 11:21 |
| ← _Vi left | 11:22 |
| ← kinlo_ left | 11:22 |
| → _Vi joined | 11:23 |
| → fusion27 joined | 11:23 |
| ChanServ set mode: +v | 11:23 |
| → Mannequin joined | 11:23 |
|
jast
| EugeneKay: no, but patches welcome | 11:23 |
| → Poapfel joined | 11:23 |
| → ReekenX joined | 11:24 |
| → sontek joined | 11:25 |
| → awx joined | 11:25 |
| → daethorian joined | 11:26 |
| → hyperair joined | 11:26 |
| ← arkiver left | 11:28 |
| ← kleist left | 11:28 |
| ← Superlokkus left | 11:29 |
| ← torbjorn left | 11:29 |
| → Guest2786 joined | 11:30 |
| → utdemir joined | 11:31 |
| unreal_ → unreal | 11:33 |
| ← Guest2786 left | 11:33 |
| → torbjorn joined | 11:34 |
| → blami_ joined | 11:34 |
| ← aspotashev| left | 11:35 |
| → arkiver joined | 11:36 |
| → centipedefarmer joined | 11:38 |
| ← arkiver left | 11:40 |
| → beepbeep_ joined | 11:41 |
| → arkiver joined | 11:41 |
| → RaceCondition joined | 11:41 |
| → ipalaus joined | 11:41 |
| Chris____ → chrisward | 11:42 |
| ← dr_lepper left | 11:42 |
| → reds joined | 11:43 |
| reds → Guest52995 | 11:43 |
| ← Psycho_pr1 left | 11:43 |
| → Psycho_pr2 joined | 11:43 |
| → cannonball joined | 11:43 |
| ← dhruvasagar left | 11:45 |
|
beepbeep_
| Hey all, question, I don't get something here. I modify two files, add and commit. I try to push and git tells me that I have to pull first. Okay, I get that. I pull and get a ton of new files in. Still get this part. Now git tells me that auto merge failed on the two files I changed and that I need to merge them, when done I have to add them. So far so good. I edit and add them. Now I commit -m | 11:46 |
|
| "Merge" and push. When I check the log, I see that it looks like I was the one who made all of those new files that I pulled in, I have 109000 additions lol.. What am I missing here -_- | 11:46 |
| → dr_lepper joined | 11:46 |
| ← dr_lepper left | 11:46 |
| → dr_lepper joined | 11:46 |
|
beepbeep_
| Wall of text. sry. | 11:46 |
|
jast
| oh, that's fine. it's much better than people we have to interview for two hours to figure out what they want. ;) | 11:46 |
| ← narfnarfnarf left | 11:46 |
| → ChadStudmuffin joined | 11:46 |
|
charon
| also, finally someone who commits before pulling! | 11:47 |
|
jast
| anyway, to answer your question: you created a merge commit | 11:47 |
| ← Guest52995 left | 11:47 |
|
jast
| that is important information: it tells people that *you* combined the two lines of work | 11:47 |
|
beepbeep_
| But only two files needed merging. | 11:47 |
|
| not 89 files :( | 11:47 |
|
jast
| yes | 11:47 |
| ← pretty_function left | 11:47 |
|
jast
| the information you see tells you what the merge in total added to your current branch | 11:47 |
| → pretty_function joined | 11:47 |
|
jast
| but you can also see exactly what commits were merged in | 11:48 |
|
| let's see... | 11:48 |
|
| !lol | 11:48 |
|
gitinfo
| git config --global alias.lol "log --oneline --graph --decorate" | 11:48 |
|
jast
| !lg | 11:48 |
|
gitinfo
| git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" | 11:48 |
|
lb
| jast: u stole !lol from schacon? ;) | 11:48 |
|
gitinfo
| jast: git config --global alias.lol "log --oneline --graph --decorate" | 11:48 |
|
jast
| one of those might help visualise it | 11:48 |
|
| I don't know where it came from | 11:48 |
| ← arkiver left | 11:49 |
|
cbreak-work
| lol is old. | 11:49 |
|
FauxFaux
| lol'd, in fact. | 11:49 |
| ← denysonique left | 11:49 |
|
lb
| ^^ | 11:49 |
|
beepbeep_
| jast, I still think I didn't explain correctly and I did something wrong. Normally git automatically creates a commit msg for these merges, for me this wasn't the case, I wasn't allowed to commit without -m either. | 11:52 |
|
| how do I reset the branch to a certain rev, undoing my stuff? | 11:53 |
|
cbreak-work
| git reset --hard to what ever you want | 11:53 |
|
| you'll lose uncommitted changes as well | 11:53 |
|
charon
| beepbeep_: don't reset -- you stated that you pushed this already, so it would be !rewriting | 11:53 |
|
gitinfo
| beepbeep_: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 11:53 |
|
cbreak-work
| you'd have to reset in every repository | 11:53 |
|
charon
| beepbeep_: at least not simply because you changed the message from the autogenerated "Merge branch ..." to just "Merge" :-) | 11:53 |
|
beepbeep_
| charon, I did, because when I used git commit without the -m option, it told me that I had to specify it. I thought this wasn't the case when in the "merging phase"? | 11:54 |
|
charon
| beepbeep_: as for why it didn't offer the autogenerated message: can you explain exactly what you did around the "commit" step? normally, saying 'git commit' after resolving conflicts pops up an editor that contains the pregenerated message | 11:54 |
|
| (so that you can edit it) | 11:54 |
|
jast
| beepbeep_: what happened when you tried without -m? | 11:55 |
|
charon
| i suspect if git-commit refuses to pop up the editor, your $EDITOR is broken | 11:55 |
|
beepbeep_
| jast, I can't scroll up that much :( | 11:55 |
|
jast
| ah, too bad | 11:55 |
| → jceb joined | 11:55 |
|
cbreak-work
| theory: people who can't scroll up far are using windows. | 11:55 |
| ← beautifulmind left | 11:55 |
|
charon
| 'screen' also defaults to some 1990's value for the scrollback... 100 i think | 11:56 |
|
cbreak-work
| :O | 11:56 |
|
| that's less than a screen height | 11:56 |
|
jast
| anyway. in graph view of the history, does it show the merge commit as a merge commit? i.e. do two lines join together at that commit? | 11:56 |
|
cbreak-work
| ... well, maybe not less... bit it's little | 11:56 |
| → pretty_f_ joined | 11:57 |
| ← pretty_function left | 11:57 |
| → juvenal joined | 11:58 |
| ← OOPMan left | 11:58 |
|
beepbeep_
| jast, the graph shows it like this: | 11:58 |
|
| * | 11:58 |
|
| |\ | 11:58 |
|
| next to asterix it says b2df1c7 (HEAD, origin/master, origin/HEAD, master) Merge | 11:59 |
|
jast
| okay, then it's a proper merge | 11:59 |
| → hostingh100202 joined | 11:59 |
| ← tgummere1 left | 12:00 |
|
beepbeep_
| Still think this is weird for some reason. Darn it. At least in svn I was able to noob around and be fine, get the feeling you either have to be a git wizard or nothing. | 12:00 |
| → tgummerer joined | 12:01 |
| ← hostingh100202 left | 12:01 |
| → alexfu joined | 12:01 |
| → arkiver joined | 12:01 |
| ← arkiver left | 12:02 |
|
_ikke_
| beepbeep_: svn has a very limited model. I's a bit easier to grasp, but it's also gives you less freedom | 12:03 |
|
| beepbeep_: But you don't have to be a git wizzard to operate it | 12:03 |
| → SkAzZ joined | 12:03 |
| → arkiver joined | 12:04 |
| → OOPMan joined | 12:04 |
|
nyx
| hi | 12:04 |
|
| how do I check whether there's anything to pull from github? | 12:04 |
|
| git status does not tell me that | 12:04 |
|
nevyn
| git fetch | 12:04 |
|
charon
| !pull | 12:04 |
|
gitinfo
| pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/ | 12:04 |
|
charon
| so fetch. | 12:04 |
|
nyx
| git remote show origin does tell me, but is that the correct way | 12:05 |
| ← arkiver left | 12:05 |
|
alexfu
| +nyx: you could always do a git log and compare commits with the github repo. | 12:05 |
| ← asakura left | 12:06 |
|
alexfu
| is it possible to have Git rename a file if the file being pulled in is different from the local? | 12:06 |
| → arkiver joined | 12:06 |
|
FauxFaux
| alexfu: man git checkout --theirs kind of helps. | 12:07 |
|
gitinfo
| alexfu: the git-checkout manpage is available at http://git-scm.com/docs/git-checkout.html | 12:07 |
|
nyx
| is there something like git remote show origin to show if my local repo is up to date? git fetch downloads the changes, git log doesnt give me a summary | 12:08 |
| ← arkiver left | 12:08 |
| → asakura joined | 12:08 |
|
FauxFaux
| nyx: The only thing you can do to the remote except fetch is ls-remote; your repo is behind if it's not exactly what ls-remote says. | 12:08 |
| → arkiver joined | 12:08 |
|
C8H10N4O2
| to create a server set up of localdev(localhost) - testing (live server) - production (live server) do you just create the repo at the product use git clone from the testing server then do the same locally? So i push to testing then log in there and pusht o development? | 12:08 |
| → iamjarvo joined | 12:09 |
|
FauxFaux
| nyx: (i.e. fetch is: ls-remote && download new stuff) | 12:09 |
|
| C8H10N4O2: !deploy | 12:09 |
|
gitinfo
| C8H10N4O2: Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html | 12:09 |
|
nyx
| FauxFaux: Ok good to know! Do people ususllly just do a git pull to check? or git fetch | 12:09 |
|
| I'm doing git pull both to check and to merge in any updates | 12:10 |
|
FauxFaux
| I would just use git pull and rollback if anything went wrong, but if you prefer to see what might happen instead of what's actually going to happen, you're welcome to use fetch + guess. | 12:10 |
|
| (Many people do.) | 12:10 |
| → macIvy joined | 12:11 |
|
charon
| what guessing is there? you just 'gitk HEAD @{u}' on an alias | 12:11 |
|
| er, gitk HEAD...@{u} | 12:11 |
|
nyx
| I see! How would I check for any new updates on all branches that I'm currently tracking? | 12:11 |
|
charon
| git branch -vv | 12:11 |
|
FauxFaux
| nyx: git fetch && git branch -avv | 12:11 |
|
| charon: That's the commits that are going to merge, not the results of the merge (or rebase). | 12:11 |
|
charon
| FauxFaux: oh, you meant the conflicts. i see | 12:12 |
| ← OOPMan left | 12:12 |
| ← robbyoconnor left | 12:12 |
|
FauxFaux
| Well, even in the case where it doesn't conflict, the resulting tree is more interesting than the commits in most cases, imo. | 12:12 |
| → jacobat joined | 12:12 |
|
charon
| i'd state the exact opposite ;) | 12:13 |
|
| but i guess it depends on how big the tree is | 12:13 |
| → skyf joined | 12:13 |
|
jacobat
| I think I have some objects in my packs that are no longer referenced from anywhere, but "git gc --aggressive --prune=now" seems to leave them anyways - can this be true? | 12:13 |
|
_ikke_
| jacobat: Why do you think they're not referenced anymore? | 12:13 |
|
nyx
| FauxFaux: What is the 2nd v option flag in git branch -avv | 12:13 |
|
_ikke_
| nyx: 2nd verbose level | 12:14 |
|
nyx
| oh cool | 12:14 |
|
jacobat
| _ikke_: Because the repository has been filtered with git filter-branch by my coworker and his repository is was smaller than mine now | 12:14 |
|
nyx
| thnx! | 12:14 |
|
charon
| jacobat: there's a checklist in man git-filter-branch... | 12:14 |
|
gitinfo
| jacobat: the git-filter-branch manpage is available at http://git-scm.com/docs/git-filter-branch.html | 12:14 |
|
_ikke_
| jacobat: Well, you can have different references then your coworker, resulting in different objects still being referenced | 12:15 |
| ← macIvy left | 12:15 |
| → flaguy48 joined | 12:15 |
|
jacobat
| _ikke_: I've deleted all tags and branches except master though :/ | 12:15 |
| → pretty_function joined | 12:17 |
| ← pretty_f_ left | 12:17 |
| → toothrot joined | 12:17 |
| → OOPMan joined | 12:18 |
| ← _oakdog8 left | 12:20 |
| → archdori joined | 12:21 |
| → Ryback_ joined | 12:21 |
| ← Ryback_ left | 12:21 |
| → Ryback_ joined | 12:21 |
| ← LekeFly left | 12:24 |
| → SyouJyoA joined | 12:24 |
| → shruggar joined | 12:24 |
| ← specialGuest left | 12:25 |
| → spaceonline joined | 12:28 |
| ← ketas left | 12:29 |
| → marhaban joined | 12:31 |
| ← dvide left | 12:32 |
| ← arkiver left | 12:32 |
| ← OOPMan left | 12:32 |
| → ketas joined | 12:33 |
| → revagomes joined | 12:33 |
| → tommyvyo joined | 12:39 |
| → OOPMan joined | 12:39 |
| → dvide joined | 12:42 |
| ← segher left | 12:44 |
| → arkiver joined | 12:44 |
| → Ded joined | 12:45 |
| → segher joined | 12:45 |
| ← dsirijus left | 12:47 |
| ← marhaban left | 12:47 |
| → solderion joined | 12:47 |
| ← pretty_function left | 12:47 |
| → pretty_f_ joined | 12:47 |
| ← segher left | 12:48 |
| → segher joined | 12:49 |
| → rohan32 joined | 12:49 |
| → nwest joined | 12:51 |
| ← C8H10N4O2 left | 12:52 |
| → freeed joined | 12:52 |
| → tinti joined | 12:53 |
| → hellopat joined | 12:55 |
| ← utdemir left | 12:56 |
| → subbyyy joined | 12:57 |
| ← subbyyy left | 12:57 |
| → LekeFly joined | 12:58 |
| ← SyouJyoA left | 13:00 |
| ← OOPMan left | 13:01 |
| ← arkiver left | 13:01 |
| → snearch joined | 13:02 |
| ← und3f left | 13:02 |
| ← segher left | 13:04 |
| → yoklov joined | 13:04 |
|
alexfu
| how would I handle files that only need to be tracked once to initialize the remote repository? then when clients clone, those same files are to be ignored. | 13:05 |
| → segher joined | 13:05 |
|
_ikke_
| !config | 13:05 |
|
gitinfo
| [!configfiles] the recommended way is to change your application so that you can (perhaps optionally) store site-specific configuration/data in separate files, then keep those files out of version control. Still, see https://gist.github.com/1423106 for ways people have worked around the problem. | 13:05 |
|
_ikke_
| alexfu: What do you mean to initialize the remote repository? | 13:05 |
| ← spaceonline left | 13:06 |
| ← leeN left | 13:06 |
| → OOPMan joined | 13:06 |
| ← solderion left | 13:06 |
| → brentratliff joined | 13:07 |
| ← pretty_f_ left | 13:07 |
| → pinguinux joined | 13:07 |
| ← pinguinux left | 13:07 |
| → pinguinux joined | 13:07 |
| → pretty_function joined | 13:07 |
| ← ph^ left | 13:08 |
| → Octalot joined | 13:08 |
|
alexfu
| _ikke_: lets say I have a project and this project has a config file which is dependent on the persons computer and dependent on how they have their project setup. well, I dont want to track this config file but I do want to have a "skeleton" config file on the remote repo so that when clients clone, they can change it but not have it tracked. | 13:08 |
| ← cooloney left | 13:09 |
|
_ikke_
| alexfu: Well, don't add the actual file, but add a template | 13:09 |
| → linoj joined | 13:09 |
|
_ikke_
| alexfu: Let users copy the template to the actual file | 13:09 |
|
| alexfu: You should not have environmental settings in git | 13:10 |
| ← afuentes left | 13:10 |
|
alexfu
| _ikke_: thats a good point. not sure why I haven't thought of it. | 13:10 |
| → Chibby joined | 13:11 |
| → Davey joined | 13:11 |
| ← pretty_function left | 13:12 |
| ← Ded left | 13:13 |
| → glennpratt joined | 13:13 |
| → Textmode joined | 13:14 |
| ← api left | 13:15 |
| → arvind_khadri joined | 13:15 |
| → mrwalker joined | 13:17 |
| → polymar joined | 13:18 |
| ← alexukf left | 13:19 |
| → dv310p3r joined | 13:19 |
| ← Lgb left | 13:20 |
| ← palm_vue left | 13:20 |
| ← bizhanMona left | 13:20 |
| → untrusted joined | 13:20 |
| ← arietis left | 13:21 |
| → C8H10N4O2 joined | 13:21 |
| → pppaul joined | 13:21 |
| → ZyX-I joined | 13:21 |
| ← _Vi left | 13:22 |
| → Vile joined | 13:23 |
| gitinfo set mode: +v | 13:23 |
| → ddelrio1986 joined | 13:23 |
| → Lgb joined | 13:23 |
| → palm_vue joined | 13:23 |
|
untrusted
| sill a git noob but i find it hard to understand which actions might be bad for a public repo others might base work upon - 2 related questions: is there a convention naming branches which might cause trouble? is there a way to tell git to stop me if i want to do such an action? | 13:23 |
| → bizhanMona joined | 13:23 |
| → _Vi joined | 13:23 |
| → intransit joined | 13:23 |
| ← fusion271 left | 13:24 |
| → gefd joined | 13:24 |
| → fusion271 joined | 13:24 |
|
_ikke_
| untrusted: 1: There is no convention, 2: Git does this by default, you'd have to add extra parameters to override it | 13:24 |
| ← fusion271 left | 13:24 |
| ← Vile left | 13:25 |
| ← hendry_ left | 13:25 |
| → kevwil joined | 13:25 |
| → Vile joined | 13:25 |
|
untrusted
| _ikke_: so 2 would be solved by not using which parameter? | 13:25 |
| → kurrataW joined | 13:26 |
|
_ikke_
| untrusted: --hard, -f | 13:26 |
|
| but those are not the only ones | 13:26 |
|
untrusted
| _ikke_: and git rebase doesn't need an option? | 13:26 |
| ← barq left | 13:27 |
| → ivan\ joined | 13:27 |
|
_ikke_
| untrusted: You can rebase locally all you want. Git protests as soon as you want to push | 13:27 |
| → barq joined | 13:28 |
| ← hellopat left | 13:28 |
|
untrusted
| _ikke_: yes but i have to take care then | 13:28 |
| → Lord_DeathMatch joined | 13:28 |
|
untrusted
| _ikke_: i search for an automated way so i don't have to care | 13:28 |
|
| _ikke_: less rope please ;-) | 13:28 |
| ← kevwil left | 13:28 |
|
_ikke_
| untrusted: git is not a walled garden where you can't shoot yourself in foot | 13:29 |
|
| untrusted: But git has safety nets to get you covered in most cases | 13:29 |
|
untrusted
| _ikke_: i just wonder wether there wouldn't be an automated solution to the problem | 13:29 |
|
_ikke_
| untrusted: Because noone felt the need to build one | 13:30 |
|
untrusted
| mark some branch public or something like that | 13:30 |
|
| maybe i just worry too much | 13:30 |
| → TeckniX joined | 13:30 |
| → gfontenot joined | 13:31 |
|
untrusted
| but regarding the search results on the topic there seems quite some confusion out there ;-) | 13:31 |
|
_ikke_
| Well, I believe they were busy implementing some feature which would warn you when you rewrote published commits | 13:31 |
| ← nwest left | 13:31 |
|
_ikke_
| But not sure about the status | 13:32 |
|
untrusted
| ah sounds to be exactly what i am looking for | 13:32 |
|
_ikke_
| untrusted: Yes, but like I said, that's not inside git yet | 13:33 |
|
untrusted
| _ikke_: no problem, thanks | 13:34 |
| ← tommyvyo left | 13:34 |
|
_ikke_
| untrusted: But git has the reflog, which allows you to find commits that might have become unrefenced | 13:34 |
| → marhaban joined | 13:35 |
| → xMYTHICx joined | 13:35 |
| ← yoklov left | 13:35 |
| → tommyvyo joined | 13:36 |
| → kevwil joined | 13:36 |
| → derekpioneer joined | 13:37 |
| ← Speed left | 13:38 |
| ← marhaban left | 13:39 |
| → marhaban joined | 13:40 |
| → leeN joined | 13:40 |
| → reds joined | 13:43 |
| → Destos joined | 13:43 |
| → tonyj joined | 13:43 |
| reds → Guest46007 | 13:43 |
| → schemula joined | 13:44 |
| ← marhaban left | 13:44 |
| ← OOPMan left | 13:45 |
| ← pppaul left | 13:45 |
| rohan32 → rohan32|afk | 13:46 |
| → AaronMT joined | 13:46 |
| → ehsan joined | 13:46 |
| ← pinguinux left | 13:47 |
| ← Guest46007 left | 13:47 |
| → fly9 joined | 13:48 |
| → etcetera joined | 13:49 |
| → OOPMan joined | 13:49 |
| ← Destos left | 13:49 |
| ← ashirus left | 13:50 |
| ← etcetera left | 13:50 |
| → Dimitr joined | 13:51 |
| ← kurrataW left | 13:52 |
| → agile joined | 13:52 |
| ← martinjlowm left | 13:52 |
| ← kermit left | 13:52 |
| → kermit joined | 13:53 |
| → axl__ joined | 13:53 |
| ← nor5trom left | 13:53 |
| → jackh joined | 13:55 |
| ← jackh left | 13:55 |
| ← axl_ left | 13:55 |
| axl__ → axl_ | 13:55 |
| → dzonder joined | 13:55 |
| → clocKwize joined | 13:56 |
| → TheLZA joined | 13:56 |
|
clocKwize
| hi guys, i've put some stuff in a branch that I don't want there, how do I create a new branch, with those commits in it, and the remove them from the main branch? | 13:56 |
| ← Guest86474 left | 13:57 |
|
FauxFaux
| clocKwize: !fixup | 13:57 |
|
gitinfo
| clocKwize: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 13:57 |
| → oakdog8 joined | 13:57 |
| → nor5trom joined | 13:57 |
| → Dimitr|2 joined | 13:59 |
| ← sylr left | 13:59 |
| → orkz joined | 13:59 |
|
jh3
| why would the git-shell-commands directory be missing after installing git? from what i've been reading it should be in /usr/share/doc/git/ | 13:59 |
| ← OOPMan left | 14:00 |
|
jh3
| all i have in /usr/share/doc/git are a bunch of .txt files | 14:00 |
| ← C8H10N4O2 left | 14:00 |
| → pppaul joined | 14:00 |
| ← nor5trom left | 14:00 |
| → ryez joined | 14:00 |
|
clocKwize
| FauxFaux: thanks.. | 14:00 |
| ← Dimitr left | 14:02 |
| → specialGuest joined | 14:03 |
| → strk joined | 14:03 |
|
strk
| I created a tag named '-' by mistake, but can't delete it anymore, ideas ? | 14:03 |
|
| tried: git tag -D \- ; git tag -D -- - | 14:03 |
| → luxurymode joined | 14:04 |
|
charon
| strk: git update-ref -d refs/tags/- | 14:04 |
|
strk
| would it be safe to rm .git/refs/tags/- ? | 14:04 |
| → C8H10N4O2 joined | 14:04 |
|
strk
| update-ref did it, thanks charon | 14:05 |
| → duckxx joined | 14:05 |
| → byte-smasher joined | 14:05 |
|
luxurymode
| my colleague created a new branch and pushed it to the remote. i can see (from our site that shows the repo) that the new branch exists on the remote, but i can't seem to pull it down and when i do 'git branch -r | 14:05 |
|
| i don't see the repo | 14:05 |
|
| *apologies for the accidential CR | 14:05 |
| → duckx joined | 14:05 |
| → Destos joined | 14:06 |
|
FauxFaux
| luxurymode: Did you run git remote update? | 14:06 |
|
luxurymode
| sorry git branch branch -r doesnt show me that branch | 14:06 |
| → leila joined | 14:06 |
|
luxurymode
| FauxFaux, that did it, thank you sir! | 14:07 |
| → nor5trom joined | 14:07 |
|
byte-smasher
| git noob here.... if I want to have two different folders (on the same machine) that contain different branches, am I forced to clone the entire repository and push/pull all the time? ... or can I use the same repository for both folders/branches? | 14:07 |
|
FauxFaux
| byte-smasher: Pretty much. It'll be fast and won't waste any disc space, etc. There's git-new-workdir and things like that, but they're worse than pullpush imo. | 14:07 |
| ← polymar left | 14:08 |
| → herdingcat joined | 14:08 |
| ← iamjarvo left | 14:08 |
|
luxurymode
| whats the right way to pull down a newly created branch from the remote? | 14:09 |
| ← duckxx left | 14:09 |
| → shruggar1 joined | 14:09 |
| ← kevwil left | 14:10 |
|
FauxFaux
| luxurymode: git remote update && git checkout nameofthebranch | 14:10 |
| → neurodrone joined | 14:10 |
|
luxurymode
| ah ok, i thought checkout would work then for some reason thought checkout was only for when you have the branch locally | 14:10 |
|
charon
| strk: it's safe, but it may also be in packed-refs already. update-refs is better because it also removes it from packed-refs | 14:10 |
|
_ikke_
| FauxFaux: I don't think that works (the last command) | 14:10 |
| ← shruggar left | 14:10 |
|
grawity
| after `git remote update` or similar, I think you /will/ have the branch locally | 14:11 |
|
| so should work | 14:11 |
|
FauxFaux
| _ikke_: Why not? The defaulting to git checkout -tb foo origin/foo # has been around for aaaaages. | 14:11 |
| ← herdingcat left | 14:11 |
|
byte-smasher
| FauxFaux: my only problem with pushing/pulling all the time is that my project is 700+mb (a news based website with archives going back to 2009... files are mostly images)... and it is kinda slow as a result. | 14:11 |
|
FauxFaux
| byte-smasher: Old history shouldn't make pull/push slow; only new history. | 14:12 |
|
byte-smasher
| k, I must be doing something wrong then | 14:12 |
|
clocKwize
| so, can I branch my branch, rollback several commits from the original branch and push it and the new branch still have those commits in it? | 14:12 |
|
FauxFaux
| git clone ../local/directory # should only be doing the same work that checkout (of an entirely new tree) does. | 14:12 |
| ← BadDesign left | 14:13 |
| ← leila left | 14:13 |
|
_ikke_
| FauxFaux: Hmm, is it documented? | 14:14 |
|
m1sc
| clocKwize: y | 14:15 |
| ← jacobat left | 14:16 |
|
FauxFaux
| _ikke_: O_o I can't see it in git checkout. I swear it was. | 14:16 |
|
_ikke_
| afaik, you have to pass in -t | 14:17 |
|
FauxFaux
| Well, it works, and has for ages. | 14:17 |
|
_ikke_
| FauxFaux: Isn't that confusing? | 14:17 |
|
cmn
| it only works if it's not confusing | 14:18 |
|
FauxFaux
| It's what I expect. It only works in the unambigious case. I'd expect origin/foo to do a different thing, in fact. | 14:18 |
| ← snearch left | 14:19 |
| → macabre joined | 14:19 |
| → jjbohn joined | 14:19 |
| → geekbri joined | 14:20 |
|
FauxFaux
| _ikke_: https://github.com/git/git/blob/master/builtin/checkout.c#L823 second stanza. | 14:21 |
| ← TheLZA left | 14:21 |
|
FauxFaux
| <3 it's enabled by "dwim_ok". | 14:21 |
|
_ikke_
| ok | 14:22 |
| ← kcj left | 14:22 |
|
_ikke_
| what is dwim_ok? | 14:22 |
| ← dvide left | 14:23 |
| ← _Vi left | 14:23 |
|
grawity
| "do what I mean", I'd guess | 14:23 |
|
_ikke_
| oh lol | 14:23 |
|
FauxFaux
| Yeah. i.e. if you're not already specifying branches, or in patch mode, or whatever, just do what the user means. <3 | 14:23 |
| → _Vi joined | 14:23 |
| → dbolser joined | 14:24 |
|
dbolser
| if a repo moves, how to 'switch'? | 14:24 |
| ← rchavik left | 14:24 |
|
_ikke_
| dbolser: moves? | 14:24 |
|
grawity
| git remote set-url | 14:24 |
| → Superlokkus joined | 14:25 |
|
dbolser
| _ikke_: was a 'sandbox' project then became a real project with a new url | 14:25 |
|
| ty | 14:25 |
|
| grawity: how to see the current url? | 14:25 |
|
grawity
| git remote -v | 14:25 |
|
dbolser
| many thanks | 14:25 |
|
grawity
| or just check .git/config? | 14:25 |
| ← strk left | 14:25 |
| → zdk joined | 14:25 |
| ← Superlokkus left | 14:25 |
|
dbolser
| yups | 14:25 |
| → chrisgeorge joined | 14:26 |
| ← ReekenX left | 14:26 |
| → Dimitr joined | 14:26 |
| ← specialGuest left | 14:26 |
|
_ikke_
| git git remote show <remote> | 14:26 |
| ← iori left | 14:27 |
| ← jonnu left | 14:28 |
| ← Dimitr|2 left | 14:29 |
| ← skyf left | 14:29 |
| ← Lord_DeathMatch left | 14:30 |
| → kevwil joined | 14:31 |
| → skyf joined | 14:31 |
| ← macabre left | 14:34 |
| → etcetera joined | 14:37 |
| ← Jay_Levitt left | 14:38 |
| ← etcetera left | 14:38 |
| → etcetera joined | 14:40 |
| ← papegaaij left | 14:42 |
| → herdingcat joined | 14:42 |
| → BadDesign joined | 14:44 |
| ← lb left | 14:44 |
| ← fission6 left | 14:45 |
| ← schemula left | 14:45 |
| ← untrusted left | 14:46 |
| → Remram joined | 14:46 |
| → jackh joined | 14:47 |
| → marhaban joined | 14:47 |
| → arturaz joined | 14:48 |
| → lacrymology joined | 14:49 |
| ← dbolser left | 14:49 |
| → msmithng joined | 14:50 |
| → proradii joined | 14:50 |
|
arturaz
| Hey :) Any quick way to determine last commit time for particular file in repo? | 14:50 |
| ← BadDesign left | 14:51 |
|
FauxFaux
| arturaz: git log --format='%ct %at' -1 -- path/to/file | 14:51 |
| ← marhaban left | 14:51 |
|
arturaz
| $ git log -1 --quiet options.yml | 14:51 |
|
| pretty close :) | 14:51 |
|
| thanks! | 14:52 |
| → _iron joined | 14:52 |
| ← etcetera left | 14:52 |
| ← tsdh left | 14:52 |
| ← flijten left | 14:53 |
| → tsdh joined | 14:53 |
| → ReekenX joined | 14:53 |
| ← tsdh left | 14:53 |
| ← d3vic3 left | 14:54 |
| → tsdh joined | 14:54 |
| ← john_anderson left | 14:54 |
| → brettnem joined | 14:54 |
|
brettnem
| hello all! | 14:54 |
|
gitinfo
| brettnem: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 14:54 |
|
brettnem
| I'm a little confused by the staging area.. I made a bunch of changes to a tracked file. But then used git add -i to just stage one hunk.. when I ran commit, it committed the entire file (all changes). Am I missing something? (and how do I undo it?) Thanks! | 14:55 |
| → johntron joined | 14:56 |
|
brettnem
| btw, I committed with git commit <filename> -m 'some log text' | 14:56 |
| → corburn joined | 14:56 |
|
_ikke_
| brettnem: By specifying <filename> you say git should ignore the staging area | 14:57 |
|
brettnem
| *oh* | 14:57 |
| ← Guest49313 left | 14:57 |
|
_ikke_
| brettnem: you can undo this with git reset HEAD^ | 14:57 |
| ← johntron left | 14:57 |
| → adiabatic joined | 14:57 |
| pierre__ → nowhere_man | 14:58 |
|
brettnem
| so if I use the staging area, I don't need to specify explicit paths.. I suppose that makes good sense | 14:58 |
|
| _ikke_: thanks! | 14:58 |
|
_ikke_
| brettnem: yw | 14:58 |
| ← babilen left | 14:58 |
|
brettnem
| does that reset give me my staging area back? | 14:58 |
|
| I suspect no? | 14:58 |
|
_ikke_
| brettnem: No, you have to readd that hunk | 14:58 |
|
brettnem
| ok, thanks | 14:59 |
|
_ikke_
| brettnem: note you can do git add -p to add hunks immediatel | 14:59 |
|
| immediately | 14:59 |
|
brettnem
| like right after I make the hunk? | 14:59 |
| ← oehman left | 15:00 |
|
_ikke_
| instead of git add -i; <select option to add hunks>, you can do: git add -p | 15:00 |
|
C8H10N4O2
| when creating git branches do you do it from within the git repo or from outside of it. Like I want to create a branch for a whole folder name interested but the folder itself is the git repo. So would i do "git branch interested-issue1" from www directory or just do "git branch issue1" from within interested directory | 15:00 |
|
brettnem
| I'm using git add -i for this.. work work work work.. oh changes 2-3 and 5 are all one logical commit.. stage those, commit together.. | 15:00 |
| → leila joined | 15:00 |
|
_ikke_
| C8H10N4O2: Are you comming from SVN? git branches are global to the repository. You cannot branch seperate folders | 15:00 |
|
C8H10N4O2
| i come from svn yes lol | 15:01 |
| ← JPT_ left | 15:01 |
|
_ikke_
| brettnem: Yeah, git add -p is a shortcut for git add -i; 5 | 15:01 |
| → JPT joined | 15:01 |
|
brettnem
| cool.. yeah the thing is, and maybe it's a problem with my coding style, sometimes I end up fixing 2 or 3 different things before i commit.. so this is a way to not having to commit things that have nothing to do with each other together.. | 15:02 |
| → Nirvanko joined | 15:03 |
|
C8H10N4O2
| I guess my other confusion come from how does my IDE know which branch I am using? Sorry for the noob questions. SVN is much more simple, though now I am wishing I was a git person from the start | 15:03 |
| → ashirus joined | 15:03 |
|
C8H10N4O2
| I am reading pro git just not fast enough | 15:03 |
| → Alvo joined | 15:04 |
|
Alvo
| hi, how can i backup a stash? | 15:04 |
|
Nirvanko
| I've added a submodule to the project source tree. Now I would like to push those submodules so other people will see it. Is it possible? | 15:04 |
| → nwest joined | 15:05 |
| → elux joined | 15:05 |
|
Nirvanko
| I don't see them in commit. | 15:05 |
| ← xMYTHICx left | 15:05 |
| → maestrojed joined | 15:05 |
| → babilen joined | 15:06 |
|
m1sc
| Nirvanko: "them"? when you add a submodule, only the metadata is added in the parent repository | 15:07 |
|
brettnem
| hah.. finally cleared up months of confusion of why other hunks were automatically committed. geez I feel silly | 15:08 |
| ← asedeno_work left | 15:08 |
| ← beepbeep_ left | 15:09 |
|
cbreak-work
| git doesn't automatically commit anything | 15:09 |
| → xMYTHICx joined | 15:10 |
| ← jackh left | 15:10 |
| ← cbreak-work left | 15:11 |
| ← ryez left | 15:12 |
| ← phreaky left | 15:13 |
| ← dr_lepper left | 15:13 |
| ← corburn left | 15:15 |
| → private joined | 15:15 |
| ← Zeeshan_M left | 15:15 |
| ← ashirus left | 15:15 |
| private → Guest12935 | 15:15 |
| ← Guest12935 left | 15:15 |
| → Zeeshan_M joined | 15:16 |
| ← cagedwisdom left | 15:16 |
| → Xilent joined | 15:16 |
| → fission6 joined | 15:16 |
| → specialGuest joined | 15:17 |
| ← specialGuest left | 15:17 |
| → specialGuest joined | 15:17 |
| → asedeno_work joined | 15:21 |
| → dvide joined | 15:22 |
| ← neurodrone left | 15:22 |
| → cilly joined | 15:22 |
| → fisted joined | 15:23 |
| ← _Vi left | 15:23 |
| → apok joined | 15:24 |
| → _Vi joined | 15:24 |
| → reds joined | 15:24 |
| → ashirus joined | 15:24 |
| reds → Guest81488 | 15:25 |
| ← geekbri left | 15:26 |
| ← tsdh left | 15:26 |
| → SirCmpwn_ joined | 15:27 |
| SirCmpwn_ → SirCmpwn | 15:28 |
| → Synthead joined | 15:29 |
| ← lacrymology left | 15:29 |
| ← C8H10N4O2 left | 15:30 |
| → corburn joined | 15:30 |
| → C8H10N4O2 joined | 15:32 |
| → Speed joined | 15:33 |
| ← Speed left | 15:33 |
| → Speed joined | 15:33 |
| → AlbireoX joined | 15:34 |
| → lacrymology joined | 15:34 |
| ← duckx left | 15:36 |
| ← xMYTHICx left | 15:39 |
| ← msmithng left | 15:39 |
| ← ddelrio1986 left | 15:40 |
| → thelazydeveloper joined | 15:40 |
| ← blami_ left | 15:41 |
| → dhruvasagar joined | 15:41 |
| ← AaronMT left | 15:42 |
| ← skorgon left | 15:42 |
| ← segher left | 15:44 |
| → ovnicraft joined | 15:44 |
|
diminoten
| "your branch is ahead of 'origin/develop' by 8 commits. | 15:45 |
|
| what does that mean? | 15:45 |
|
| git merge has never gone well for me :( | 15:45 |
| ← cilly left | 15:45 |
|
cjb
| it just means that you have 8 commits that you haven't pushed out yet | 15:45 |
|
diminoten
| pushed out to where | 15:46 |
| → robbyoconnor joined | 15:46 |
|
cmn
| take a look at what gitk shows you | 15:46 |
| ← hyperair left | 15:46 |
|
diminoten
| oh shit gitk | 15:46 |
| → segher joined | 15:46 |
|
diminoten
| eff it | 15:47 |
| ← ChadStudmuffin left | 15:47 |
|
cmn
| eff what_ | 15:47 |
|
diminoten
| I'm deleting the branch | 15:47 |
|
muep
| git log --graph --all --decorate | 15:47 |
|
diminoten
| it's worthless | 15:47 |
|
cmn
| what branch? | 15:48 |
|
diminoten
| develop | 15:48 |
|
| I didn't actually develop in there | 15:48 |
|
cmn
| and yet you've made 8 commits? | 15:48 |
| ← leila left | 15:48 |
|
diminoten
| I haven't though | 15:48 |
|
| that was a merge | 15:48 |
| → gigamonkey joined | 15:48 |
|
diminoten
| I tried to merge master into develop | 15:48 |
|
cmn
| not much difference | 15:48 |
| → alexisabril joined | 15:48 |
|
cmn
| you brought those eight commits into the branch | 15:48 |
|
diminoten
| to catch it up | 15:48 |
|
| yeah they're 8 commits I won't miss | 15:49 |
| ← C8H10N4O2 left | 15:49 |
| ← arvind_khadri left | 15:49 |
| ← robbyoconnor left | 15:50 |
|
cmn
| fine, but it has little to do with the message | 15:50 |
|
muep
| if they also are part of history of some other branch, deleting the develop branch will not actually get you rid of those eight commits | 15:50 |
|
diminoten
| cmn you're right | 15:50 |
| → robbyoconnor joined | 15:51 |
| ← Alvo left | 15:52 |
| → artnez joined | 15:53 |
| → neurodrone joined | 15:53 |
| → C8H10N4O2 joined | 15:53 |
| ← artnez left | 15:54 |
| → leila joined | 15:55 |
| → dr_lepper joined | 15:56 |
| → rmr joined | 15:58 |
| ← mritz_ left | 15:59 |
| ← leila left | 15:59 |
| → OOPMan joined | 16:00 |
| ← Guest81488 left | 16:01 |
| ← clocKwize left | 16:01 |
| ← OOPMan left | 16:01 |
| → yoklov joined | 16:02 |
| ← Vert left | 16:02 |
| ← mmc1 left | 16:03 |
| → talexb joined | 16:03 |
| ← corburn left | 16:04 |
| ← whitman left | 16:04 |
| → corburn joined | 16:05 |
|
| FauxFaux sighs; using maven so version numbers are hard-coded into the build files. merge, guess what, only conflicts in the version field of the build files. | 16:05 |
| → BadDesign joined | 16:06 |
| ← dhruvasagar left | 16:06 |
| ← irqq left | 16:07 |
| ← centipedefarmer left | 16:07 |
| → leila joined | 16:07 |
| ← giallu left | 16:08 |
| → imachuchu joined | 16:08 |
| ← mishok13 left | 16:08 |
| → Hasbro joined | 16:10 |
| ← Hasbro left | 16:10 |
| → Hasbro joined | 16:10 |
| ← fisted left | 16:10 |
| → kukks joined | 16:11 |
| → boombatower joined | 16:11 |
| ← yoklov left | 16:12 |
| → mritz joined | 16:13 |
| → nglorioso joined | 16:13 |
| → ShadesofGraylin| joined | 16:14 |
| ← fornext left | 16:14 |
| → goshawk joined | 16:16 |
| → Fretta joined | 16:16 |
| ← tjadc left | 16:17 |
| AAA_awright_ → AAA_awright | 16:17 |
| ← LekeFly left | 16:18 |
| ← segher left | 16:18 |
| → rehat joined | 16:19 |
| → duckxx joined | 16:19 |
| ← psoo left | 16:19 |
| → maletor joined | 16:19 |
| → segher joined | 16:20 |
| ← asedeno_work left | 16:20 |
| ← segher left | 16:20 |
| → asedeno_work joined | 16:21 |
| → Shusshu joined | 16:21 |
| → etcetera joined | 16:22 |
| ← Shusshu left | 16:22 |
| → segher joined | 16:22 |
| ← pppaul left | 16:22 |
| ← herdingcat left | 16:22 |
| ← apok left | 16:23 |
| → reds joined | 16:23 |
| reds → Guest62982 | 16:24 |
| ← tnzr left | 16:24 |
| ← corburn left | 16:25 |
| → corburn joined | 16:26 |
| → abstrusenick joined | 16:26 |
| ← LimeBlast left | 16:27 |
| ← nor5trom left | 16:30 |
| ← Chappo left | 16:30 |
| ← senny left | 16:32 |
| → TheLZA joined | 16:33 |
| → Chappo joined | 16:34 |
| → jonshea joined | 16:34 |
| ← Guest62982 left | 16:34 |
| → msmithng joined | 16:35 |
| ← AlbireoX left | 16:37 |
| ← ShadesofGraylin| left | 16:37 |
| → hyperair joined | 16:39 |
| → spaceonline joined | 16:39 |
| ← graphitemaster left | 16:40 |
| ← f0i left | 16:40 |
| ← svm_invi1tvs left | 16:40 |
| → erynofwales joined | 16:40 |
| → nveid joined | 16:40 |
| ← specialGuest left | 16:40 |
| ← etcetera left | 16:41 |
| → hwrd|work joined | 16:41 |
| ← msmithng left | 16:42 |
| → Sigma joined | 16:42 |
| → mishok13 joined | 16:42 |
| → btanaka joined | 16:43 |
| ← Chappo left | 16:44 |
| → Chappo joined | 16:44 |
| → msmithng joined | 16:44 |
| → Koolguydude joined | 16:44 |
| → codeFiend joined | 16:44 |
| → barneybook joined | 16:44 |
| → Gentlecat_ joined | 16:45 |
| ← ovnicraft left | 16:45 |
| ← Koolguydude left | 16:45 |
| ← Gentlecat_ left | 16:45 |
| → beneggett joined | 16:46 |
| → setmeaway joined | 16:46 |
| → Gentlecat_ joined | 16:46 |
| → dreiss joined | 16:47 |
| ← Gentlecat left | 16:47 |
| → wolftankk joined | 16:48 |
| ← dstorrs left | 16:48 |
| → Sym3tri joined | 16:49 |
| ← duckxx left | 16:49 |
| ← kermit left | 16:50 |
| → skorgon joined | 16:51 |
| → apok joined | 16:51 |
| ← _Qman left | 16:52 |
| → duckxx joined | 16:54 |
| → etcetera joined | 16:54 |
| ← abstrusenick left | 16:54 |
| ← angelsl left | 16:55 |
| → hndrk joined | 16:56 |
| ← dreiss left | 16:57 |
| ← ehsan left | 16:58 |
| ← _sundar_ left | 16:58 |
| → ehsan joined | 16:58 |
| → piotrj joined | 16:59 |
|
C8H10N4O2
| if anyone is familiar with netbeans using git in the repo browser is the one that is bold the active one? I have two branches locally, develop and master and develop is in bold. | 16:59 |
| → Ecesis joined | 16:59 |
| ← Ecesis left | 17:00 |
| → iamjarvo joined | 17:00 |
| ← piotrj left | 17:00 |
| → centipedefarmer joined | 17:00 |
| → cmullican joined | 17:00 |
| ← thiago left | 17:01 |
| → btree joined | 17:01 |
| ← Chappo left | 17:02 |
| ← babilen left | 17:02 |
| ← RaceCondition left | 17:03 |
| ← erynofwales left | 17:05 |
| → msmithng_ joined | 17:05 |
| ← msmithng left | 17:05 |
| msmithng_ → msmithng | 17:05 |
| ← hndrk left | 17:05 |
| ← tvw left | 17:07 |
| ← apok left | 17:07 |
| ← beneggett left | 17:08 |
| → apok joined | 17:08 |
| ← shruggar1 left | 17:08 |
| → unmanbearpig joined | 17:08 |
| ← Vile left | 17:09 |
| → mtytel joined | 17:10 |
| → Crocell joined | 17:11 |
|
Crocell
| hi | 17:11 |
|
gitinfo
| Crocell: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 17:11 |
| → _sundar_ joined | 17:12 |
| → fisted joined | 17:13 |
| ← robbyoconnor left | 17:13 |
|
Crocell
| i'm trying to use an svn repo as a remote source for git. i did this with git svn clone -r1234:HEAD http://some.svn.server/someproj/trunk/subproj | 17:13 |
| → mcluskydodallas joined | 17:13 |
| → robbyoconnor joined | 17:13 |
| → tydeas joined | 17:13 |
|
Crocell
| works fine so far and i can commit my changes back to svn with git svn dcommit, except for this problem: | 17:13 |
| → PetrMotejlek joined | 17:13 |
| → Teo_ joined | 17:13 |
| ← Teo_ left | 17:13 |
|
tydeas
| Hello ppl I have a "flow" question. I did a commit, reverted and no I want to reintroduce what is the best way to do it ? revert the revert ? | 17:14 |
|
nglorioso
| tydeas: Yes, revert the revert | 17:14 |
| ← skyf left | 17:14 |
| → Teo_ joined | 17:14 |
|
tydeas
| Thanks nglorioso | 17:15 |
|
Crocell
| if i modify a file (e.g. myproj.pro) and don't commit it to my local git, then the git svn dcommit fails with error myproj.pro: needs update | 17:15 |
|
thorbjornDX
| are hooks only per-clone? I would like to share a few of them on a per-project basis | 17:15 |
|
Crocell
| update-index --refresh: command returned error: 1 | 17:15 |
| ← Dimitr left | 17:15 |
|
imachuchu
| tydeas: have you pushed it to anyone else? | 17:16 |
|
Crocell
| is there no way to commit to svn only the files committed to the local git without committing the other modified files? | 17:16 |
| ← gusnan left | 17:16 |
|
imachuchu
| tydeas: or have they pulled from you (does anyone else know of your change yet)? | 17:17 |
|
cbreak
| Crocell: just commit all of them | 17:17 |
| → mwrosen joined | 17:17 |
|
cbreak
| Crocell: since svn sucks, you can't partially commit things | 17:17 |
|
| there's no staging area like with git | 17:17 |
|
Crocell
| ouch | 17:17 |
|
cbreak
| commit them to a different branch | 17:17 |
| → artnez joined | 17:17 |
|
cbreak
| or use git stash for a temporary commit | 17:17 |
| → Chappo joined | 17:17 |
| → mattalexx joined | 17:17 |
|
cbreak
| afterwards, you can use git rebase to plant them on the new dcommitted commit | 17:18 |
| ← spaceonline left | 17:18 |
| → beepbeep_ joined | 17:18 |
|
Crocell
| those are temporary test changes that i can't commit to the global svn. | 17:18 |
| → kermit joined | 17:18 |
|
Crocell
| what's that stash thing? | 17:18 |
|
cbreak
| doesn't matter | 17:18 |
| ← leila left | 17:18 |
|
cbreak
| commit them in git | 17:18 |
|
| git commits are local | 17:18 |
| → hndrk joined | 17:19 |
|
Crocell
| well sure but then how do i prevent the dcommit from committing them upwards to svn? | 17:19 |
| → dinesh6654 joined | 17:19 |
| → skyf joined | 17:19 |
|
cbreak
| if the local commits are not in the branch you dcommit, then they won't get dcommitted | 17:19 |
|
Bilge
| >what's stash | 17:19 |
|
| >doesn't matter | 17:19 |
| ← robbyoconnor left | 17:19 |
|
Bilge
| Sounds legit | 17:19 |
| ← Chibby_ left | 17:20 |
| → dwmw2_gone joined | 17:20 |
|
nglorioso
| !stash | 17:20 |
|
cbreak
| Bilge: man git-stash, read it or stay a noob | 17:20 |
|
gitinfo
| Bilge: the git-stash manpage is available at http://git-scm.com/docs/git-stash.html | 17:20 |
| → LekeFly joined | 17:20 |
|
Bilge
| Enjoy getting preached at by a commit-everything faggot | 17:20 |
| ← byte-smasher left | 17:20 |
| ← nglorioso left | 17:20 |
| ChanServ set mode: +o | 17:21 |
|
Bilge
| Oh he's going to be a big man now | 17:21 |
| ← Sigma left | 17:21 |
| cbreak kicked Bilge (no calling other people faggots please) | 17:21 |
| → Bilge joined | 17:21 |
| → Merwin joined | 17:21 |
|
Bilge
| So only ops can call names then | 17:21 |
|
| Pretty good channel | 17:21 |
|
cbreak
| don't act like a moron :) | 17:22 |
|
imachuchu
| Bilge: a stash is like a stack made of degenerate commits. You can push/pop/apply them and they stick around like commits, but aren't really on any branch nor have things like commit messages | 17:22 |
|
Bilge
| I know what the stash is | 17:22 |
| cbreak set mode: -o | 17:22 |
| ← corburn left | 17:23 |
| → spaceonline joined | 17:23 |
| ← diegoviola left | 17:24 |
| ← _Vi left | 17:24 |
| ← neurodrone left | 17:25 |
| Vampire0_ → Vampire0 | 17:25 |
| → _Vi joined | 17:25 |
| → AaronMT joined | 17:25 |
| ← Chibby left | 17:25 |
| → ddelrio1986 joined | 17:26 |
| ← achadwick left | 17:26 |
|
thorbjornDX
| !hooks | 17:26 |
| → Fretta_ joined | 17:27 |
| ← Element9 left | 17:27 |
| → Element9 joined | 17:27 |
| → tplaner_ joined | 17:27 |
| ← centipedefarmer left | 17:28 |
| ← Fretta_ left | 17:28 |
| → dstorrs joined | 17:29 |
| ← rurufufuss left | 17:29 |
| ← fisted left | 17:29 |
| ← Fretta left | 17:29 |
| → rvl joined | 17:29 |
| → diegoviola joined | 17:29 |
| → irqq joined | 17:29 |
| ← mrwalker left | 17:31 |
| → yoklov joined | 17:31 |
| ← yoklov left | 17:31 |
| → opus joined | 17:33 |
| ← tydeas left | 17:33 |
| ← rvl left | 17:34 |
| → jceb__ joined | 17:34 |
| → Anubisss_ joined | 17:34 |
| → efreese joined | 17:34 |
| → OOPMan joined | 17:34 |
| → pdtpatrick joined | 17:35 |
| ← OOPMan left | 17:35 |
| → SegFaultAX|work2 joined | 17:37 |
| ← tureba left | 17:37 |
| → j416 joined | 17:37 |
| ← jceb left | 17:37 |
| ← maestrojed left | 17:37 |
| → himanshu_linux joined | 17:38 |
| ← Anubisss left | 17:38 |
| → dinesh6654_ joined | 17:39 |
| ← rmr left | 17:39 |
| ← lacrymology left | 17:39 |
|
himanshu_linux
| hi i am new . when every i am try to push . it shows me "did you run git update-server-info on the server? " . what does it mean ? | 17:39 |
| ← linoj left | 17:39 |
| → thiago joined | 17:39 |
| → Sky[x] joined | 17:40 |
| → rmr joined | 17:40 |
| → corburn joined | 17:40 |
|
himanshu_linux
| its whenever.. sorry for typing mistake . | 17:40 |
| → dunpeal joined | 17:40 |
| ← dinesh6654 left | 17:40 |
| → OOPMan joined | 17:40 |
| ← codeFiend left | 17:40 |
|
cbreak
| don't push to an http remote unless you know it is valid | 17:41 |
| → bitkiller joined | 17:41 |
|
dunpeal
| Hi. I'm on Git 1.7.11, and wanted to see the datetimes for each entry in `reflog`. Why does `git reflog --verbose` return `fatal: unrecognized argument: --verbose` despite the `--verbose` flag being listed in the help message? | 17:41 |
| ← LekeFly left | 17:42 |
| → whitman joined | 17:42 |
| ← himanshu_linux left | 17:42 |
| ← PetrMotejlek left | 17:43 |
| → cybersphinx joined | 17:43 |
|
cbreak
| dunpeal: --verbose is for expire | 17:44 |
|
| not for show | 17:44 |
| → lacrymology joined | 17:44 |
| → john_anderson joined | 17:44 |
|
dunpeal
| cbreak: oh, I see. is there a way to get human-readable datestimes for `show`? I can see that the log file itself does preserve them as "seconds since epoch" | 17:45 |
|
cbreak
| dunpeal: try git log -g | 17:45 |
| → LekeFly joined | 17:45 |
| → nelk joined | 17:45 |
|
cbreak
| although that seems to show the commit date and not the ref log update date | 17:45 |
| ← rmr left | 17:46 |
|
dunpeal
| yeah, exactly. it's a bit strange that such valuable information, while preserved, can not be readily shown. | 17:46 |
| → robbyoconnor joined | 17:46 |
| → rmr_ joined | 17:46 |
| → darren joined | 17:47 |
| → raykyri joined | 17:47 |
| ← rehat left | 17:47 |
| → Vile joined | 17:48 |
| ← alexfu left | 17:49 |
| ← dr_lepper left | 17:49 |
|
dunpeal
| I use the reflog to debug problems caused by faulty git usage, and datetimes are helpful in assembling a post-mortem crash report. | 17:49 |
| → codeFiend joined | 17:50 |
| → nor5trom joined | 17:50 |
| → tureba joined | 17:50 |
| → tsdh joined | 17:51 |
| → oliver_ joined | 17:51 |
| → beneggett joined | 17:51 |
| ← irqq left | 17:51 |
| → irqq joined | 17:53 |
| → mmc1 joined | 17:54 |
| → clocKwize joined | 17:54 |
|
cbreak
| git can crash? | 17:54 |
|
| now that's something I've yet to see myself | 17:54 |
| → beepbeepbeep_ joined | 17:54 |
| → HyperNerdV2 joined | 17:54 |
| ← gigamonkey left | 17:54 |
| ← oliver_ left | 17:54 |
| → nifty_ joined | 17:55 |
| → oliverc joined | 17:56 |
| → dhruvasagar joined | 17:56 |
|
sente
| i have a repo with no files 'git ls-files' shows nothing, git log shows no commits, but there's a 2.1MB file: ./.git/objects/pack/tmp_pack_3Q513a | 17:56 |
| ← oliverc left | 17:56 |
| ← opus left | 17:56 |
|
sente
| this was emailed to me (a .tar.gz of the .git dir), can i unpack that file somehow? | 17:57 |
| → cakehero joined | 17:57 |
|
cbreak
| why bother? | 17:57 |
|
grawity
| try `git unpack-objects < .git/objects/pack/tmp_pack_3Q513a` | 17:57 |
|
| though it's probably half-downloaded or something | 17:57 |
|
cbreak
| git will use pack files directly | 17:57 |
| → piotrj joined | 17:58 |
|
cbreak
| and without refs, object files are rather pointless | 17:58 |
| ← beepbeep_ left | 17:58 |
|
grawity
| at least you can poke around separate objects then | 17:58 |
| aep_ → aep | 17:58 |
|
grawity
| (I thought git ignores tmp_pack_* normally?) | 17:58 |
|
cbreak
| he should just throw the thing away | 17:58 |
|
imachuchu
| shouldn't they show up as dangling heads to a git fsck? | 17:58 |
|
cbreak
| and get himself a working copy | 17:58 |
|
| dangling heads? | 17:59 |
| ← jceb__ left | 17:59 |
|
cbreak
| what's that? | 17:59 |
| ← LekeFly left | 17:59 |
| ← Speed left | 17:59 |
|
imachuchu
| sorry, dangling things (trees/blobs/commits) | 18:00 |
| → pppaul joined | 18:00 |
|
cbreak
| maybe. but still, more trouble than it's worth | 18:00 |
|
| easiest way is to get a working copy | 18:00 |
| ← dwmw2_gone left | 18:01 |
| → gigamonkey joined | 18:01 |
|
imachuchu
| cbreak: "easiest" yes, but if he can't get a clean copy | 18:01 |
| ← Teo_ left | 18:01 |
|
cbreak
| then he's in for lots of puzzling :) | 18:01 |
|
imachuchu
| sente: also tell your friend about the git-bundle command if they're trying to send repos around via e-mail | 18:02 |
| ← spyro left | 18:02 |
| ← Yuuhi` left | 18:02 |
| → dr_lepper joined | 18:02 |
| → dwmw2_gone joined | 18:02 |
| → codetroll joined | 18:03 |
| → cirenyc joined | 18:03 |
| ← btree left | 18:03 |
| ← BadDesign left | 18:04 |
| → gusnan joined | 18:04 |
|
sente
| hrm, i did the unpacked it but still lack what i want | 18:04 |
| ← Tabmow left | 18:05 |
|
sente
| he uploaded it to me with curl, the post appeared to work | 18:05 |
| → fayimora joined | 18:05 |
|
sente
| i think he just messed up making the tarball or doing something else | 18:05 |
|
dunpeal
| cbreak: it's a "crash report" in the broader sense: a user used Git incorrectly, and ended up with a branching / merge / rebase / stash snafu, usually involving his inability to recover some of his changes. | 18:05 |
| ← HyperNerdV2 left | 18:06 |
| ← lonewulf` left | 18:07 |
| → shruggar joined | 18:07 |
| → HyperNerdV2 joined | 18:07 |
| → opus joined | 18:07 |
| → Yko joined | 18:07 |
| ← jkremser left | 18:07 |
| → leila joined | 18:08 |
|
cbreak
| sente: if you don't have any refs (git branch -a), then you don't have any proper history | 18:08 |
| gitinfo set mode: +v | 18:08 |
|
Yko
| Hey guys | 18:08 |
|
gitinfo
| Yko: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 18:08 |
|
dunpeal
| !backup | 18:08 |
|
gitinfo
| Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups | 18:08 |
| ← OOPMan left | 18:09 |
|
Yko
| I downloaded and install the package for git 1.7.11.3 but after installing, git --version still shows up as 1.7.5.4 on Mac OSX Lion. Any idea why? | 18:09 |
| → reds joined | 18:09 |
|
cbreak
| because you have xcode | 18:10 |
|
| xcode has its own git in /usr/bin | 18:10 |
| reds → Guest69485 | 18:10 |
| → lonewulf` joined | 18:10 |
| ← clocKwize left | 18:10 |
|
cbreak
| you can change $PATH to have /usr/local/bin first | 18:10 |
| ← arturaz left | 18:10 |
|
Yko
| Thanks much cbreak | 18:10 |
| ← ReekenX left | 18:10 |
| ← dunpeal left | 18:10 |
| → rehat joined | 18:11 |
| ← AaronMT left | 18:11 |
| ← dwmw2_gone left | 18:11 |
|
sente
| cbreak: thanks for info, imachuchu also and grawity | 18:12 |
|
| turns out the shit just isn't legit | 18:12 |
|
| which i more or less suspected from the get go | 18:12 |
| ← skorgon left | 18:13 |
| → dwmw2_gone joined | 18:13 |
| → abletony84 joined | 18:15 |
|
abletony84
| Hey | 18:15 |
|
| I accidentally did a "git stash" and then "git stash clear" and notice all my work is gone. Is there any way to restore this? | 18:15 |
| ← corburn left | 18:15 |
| → spyro joined | 18:15 |
| ← spyro left | 18:15 |
| → spyro joined | 18:15 |
|
cbreak
| abletony84: :/ | 18:16 |
|
| not easily | 18:16 |
|
| abletony84: read man git-stash | 18:16 |
|
gitinfo
| abletony84: the git-stash manpage is available at http://git-scm.com/docs/git-stash.html | 18:16 |
| → nickpresta joined | 18:16 |
|
cbreak
| there's an example at th eend | 18:16 |
|
| "Recovering stashes that were cleared/dropped erroneously" | 18:17 |
| ← diegoviola left | 18:17 |
| ← cirenyc left | 18:18 |
| ← The_Ball left | 18:18 |
|
imachuchu
| abletony84: The lesson here, I think at least, is that git stash should not really be relied upon. Yes they are essentually lite-commits, but commits are so cheap anyway just commit them and rebase them into whatever you want later | 18:18 |
| → ovnicraft joined | 18:19 |
| → sq-one joined | 18:19 |
| → corburn joined | 18:19 |
| ← Dreadnaught left | 18:19 |
|
cbreak
| yeah. I always recommend that you just commit on a temp branch | 18:19 |
|
| less likely to lose track of also :) | 18:19 |
| ← tatsuya_o left | 18:20 |
| → drizzd joined | 18:20 |
|
Yko
| @cbreak. Actually, my PATH is set to /usr/local/bin first. For some reason, my git is inside /usr/local/git/bin/git instead of /usr/local/bin. | 18:20 |
|
| Should it be inside /usr/local/bin? | 18:20 |
|
cbreak
| :/ | 18:20 |
|
| weird | 18:20 |
|
grawity
| although git makes it quite easy to recover from `stash clear` and such stuff | 18:20 |
|
jast
| yes, it should be | 18:21 |
|
cbreak
| maybe the package is broken | 18:21 |
|
jast
| the prefix was probably set to /usr/local/git | 18:21 |
|
cbreak
| make sure you also have a /usr/local/libexec/git-core | 18:21 |
| rohan32|afk → rohan32 | 18:21 |
|
cbreak
| grawity: compared to normal git recovery it's hard | 18:21 |
| ← jjbohn left | 18:21 |
| ← dwmw2_gone left | 18:21 |
| → specialGuest joined | 18:22 |
|
Yko
| cbreak, I don't have /usr/local/libexec/git-core | 18:22 |
| → jjbohn joined | 18:22 |
| → dwmw2_gone joined | 18:22 |
|
Yko
| jast, is there a way that I can change the prefix? | 18:22 |
| ← Sebo left | 18:22 |
|
cbreak
| check this /usr/local/git thing | 18:22 |
|
| you'll have to move everything inside it out one level | 18:22 |
|
jast
| Yko: no... it's defined at build time | 18:22 |
|
cbreak
| don't replace stuff though | 18:22 |
|
jast
| it *probably* won't work if you just move everything up one level | 18:23 |
|
cbreak
| reason? | 18:23 |
|
Yko
| Ya...hmmm...let me just uninstall git | 18:23 |
|
cbreak
| does git have hard coded paths? | 18:23 |
|
grawity
| cbreak: not really – `git fsck`, `git diff ..foo | git apply -R`, and such | 18:23 |
|
jast
| well, where do you think git gets the libexec path from? | 18:23 |
|
Yko
| and then retry it agian which is recommended but nothing seems to happen when I tried that | 18:23 |
|
cbreak
| grawity: see? harder :) | 18:23 |
|
grawity
| cbreak: well, not /very/ easy, but at least I have all the tools to do it | 18:23 |
| ← mcluskydodallas left | 18:23 |
|
cbreak
| normal git snafu fix is just a git checkout or git reset away | 18:23 |
| → mcluskydodallas joined | 18:24 |
|
cbreak
| thanks to the reflog | 18:24 |
|
grawity
| hmm, seems like I /can/ `git checkout foo` | 18:24 |
|
jast
| anyway, I'm going to get some food. I'll be back and stuff. :) | 18:24 |
|
Yko
| aight | 18:24 |
|
| thanks jast | 18:24 |
| → maestrojed joined | 18:24 |
| ← _Vi left | 18:24 |
|
cbreak
| jast: relative path | 18:24 |
| → _Vi joined | 18:25 |
| → The_Ball joined | 18:25 |
| → andrew__ joined | 18:26 |
| ← leila left | 18:26 |
| andrew__ → andrewhl | 18:26 |
| ← skyf left | 18:27 |
|
Yko
| This is soo confusing. I ran the uninstall.sh script and it removes git from /usr/local. Then, I ran the .pkg file for 1.7.11.3 and now it creates the folder again in /usr/local. The git-core is under /usr/local/git/libexec/git-core | 18:28 |
| ← specialGuest left | 18:28 |
| → specialGuest joined | 18:28 |
| → littlebearz joined | 18:28 |
| ← dpino left | 18:29 |
| → BadDesign joined | 18:29 |
| ← hndrk left | 18:29 |
| ← Nirvanko left | 18:30 |
|
cbreak
| Yko: sounds like the package is broken. | 18:30 |
|
Yko
| Hmmm | 18:31 |
|
| Maybe I should installing it from homebrew | 18:31 |
|
| I'll uninstall and try it from there | 18:31 |
| ← dwmw2_gone left | 18:31 |
|
cbreak
| I just install it from source :) | 18:32 |
| → dwmw2_gone joined | 18:32 |
| ← shruggar left | 18:33 |
| ← nveid left | 18:33 |
| → osmosis joined | 18:34 |
| → nveid joined | 18:34 |
| ← boombatower left | 18:34 |
| ← HyperNerdV2 left | 18:34 |
| → hndrk joined | 18:35 |
| ← The_Ball left | 18:36 |
|
Yko
| From source...good idea LOL | 18:36 |
|
| Let me try that | 18:36 |
| → skyf joined | 18:36 |
|
Yko
| Hehe | 18:36 |
| ← TheLZA left | 18:36 |
| → towski joined | 18:36 |
| → fisted joined | 18:36 |
| → Zenopus_ joined | 18:36 |
|
Yko
| So, in the package README, Step 1 - Install Package ------------------------ Double-click the package in this disk image to install. This installs git to /usr/local/git. Root access is required. | 18:36 |
|
| So, I guess it does install it to /usr/local/git | 18:37 |
|
| Instead of /usr/local/bin/git | 18:37 |
| jjbohn → jjbohn|afk | 18:37 |
| → tjholowaychuk joined | 18:37 |
|
jast
| that's a weird package you got there, then :) | 18:37 |
|
| ... and I still got to go and get food | 18:37 |
|
Yko
| LOL. It's from http://git-scm.com/downloads | 18:37 |
|
| Sigh | 18:38 |
| ← Zenopus left | 18:38 |
|
Yko
| Oh well, so it's better for it to be in usr/local/bin? | 18:38 |
| Zenopus_ → Zenopus | 18:38 |
| ← littlebearz left | 18:38 |
|
jast
| git-scm.com is the 'official' website for git, but the content is pretty much a one-man show | 18:39 |
| ← ddelrio1986 left | 18:39 |
| ← Guest69485 left | 18:39 |
| → ovnicraft_ joined | 18:39 |
|
cmn
| and the packages are done by whoever has time | 18:39 |
|
jast
| well, it doesn't matter in the end where the files are. you just need to have the right location(s) in your path. | 18:39 |
|
imachuchu
| Yko: assume they know what they are doing? | 18:39 |
| → littlebear joined | 18:40 |
|
jast
| anyway, my point about git-scm.com is that the links there are pretty much arbitrary and not officially sanctioned by 'the git team' or anything like that | 18:40 |
| ← dwmw2_gone left | 18:41 |
| ← ovnicraft left | 18:41 |
| ovnicraft_ → ovnicraft | 18:41 |
| ← beepbeepbeep_ left | 18:42 |
|
cmn
| the only official thing in git are Junio's tarballs | 18:42 |
|
Yko
| OK | 18:42 |
| → psoo joined | 18:42 |
| → dwmw2_gone joined | 18:42 |
|
Yko
| But, where is the "best" place to put git? | 18:42 |
| → praba joined | 18:43 |
|
Yko
| Now that I kno where it is, I can put my $PATH /usr/local ahead of /usr/bin but | 18:43 |
|
| is /usr/local/git or /usr/local/bin/git better? | 18:43 |
| → LekeFly joined | 18:43 |
| ← ivan\ left | 18:43 |
| ← ovnicraft left | 18:43 |
| → ovnicraft joined | 18:44 |
|
cmn
| put it wherever your system puts them, typically it would be /usr/local/ for user-installed software | 18:44 |
| ← nveid left | 18:45 |
| → Eridius joined | 18:45 |
| ← maestrojed left | 18:45 |
| → nveid joined | 18:45 |
| → Jon-- joined | 18:45 |
| → maestrojed joined | 18:46 |
|
Jon--
| is there any way to lock down a user so it can only do git fetching? a restricted shell that only allows git perhaps? | 18:46 |
| → Hamled joined | 18:46 |
|
m1sc
| Jon--: !gitolite | 18:46 |
|
gitinfo
| Jon--: Want to host as many git repos (and users!) as you like, on your own server, with fine-grained access control? You want gitolite: https://github.com/sitaramc/gitolite - Documentation: http://sitaramc.github.com/gitolite/master-toc.html | 18:46 |
|
cbreak
| Jon--: why? | 18:47 |
|
| Jon--: why bother giving that user a shell? | 18:47 |
|
| just give him a program that fetches every time he presses return | 18:47 |
|
Jon--
| cbreak, repository updating over SSH | 18:47 |
|
| I want to lock it down as much as possible | 18:47 |
|
cbreak
| ? | 18:47 |
|
| why even give a shell then? | 18:48 |
| → linguini joined | 18:48 |
|
cbreak
| you can make users via .authorized_keys that can only execute one single command | 18:48 |
|
Jon--
| oh? | 18:48 |
|
| I don't suppose you can allow anything with git, only one specific command on connect right? | 18:49 |
|
| command="string" in .authorized_keys | 18:50 |
| ← troyt left | 18:50 |
|
imachuchu
| Jon--: have you looked at git-shell? It's a restricted shell that only allows the person to use git | 18:50 |
|
Jon--
| I know this is more of a unix question, my apologies. | 18:50 |
|
| imachuchu, perfect, thnx | 18:50 |
|
cbreak
| Jon--: only one command, yes. | 18:50 |
|
imachuchu
| Jon--: read it first before you say it's perfect ;) | 18:51 |
|
cbreak
| but that's enough if you want to only allow fetch | 18:51 |
| ← ShooterMG left | 18:51 |
| ← dwmw2_gone left | 18:51 |
| → ReekenX joined | 18:51 |
| ← tsdh left | 18:51 |
|
Jon--
| cbreak, file permissions are only r, should block any nasty repo changes right? | 18:52 |
| ← changedNicks left | 18:52 |
| → changedNicks joined | 18:52 |
| changedNicks → sweet|kid | 18:52 |
|
cbreak
| uhm... it's pointless to fetch if he has only read rights | 18:52 |
| → pantsman joined | 18:52 |
|
cbreak
| the whole point of fetch is to change the repository | 18:52 |
| ← fayimora left | 18:52 |
| → dwmw2_gone joined | 18:53 |
| ← gtrak left | 18:53 |
|
Jon--
| cbreak, unset GIT DIR && git fetch origin && git reset --hard origin/master | 18:53 |
| ← rmr_ left | 18:53 |
|
Jon--
| this needs +w? | 18:53 |
|
cbreak
| looks pointless | 18:54 |
|
| and of course | 18:54 |
|
| fetching requires write access | 18:54 |
|
| how else would you fetch? | 18:54 |
|
Jon--
| I'm looking to replace whatever code I have in that repo with the latest from origin/master | 18:54 |
|
cbreak
| where do you think the fetched history ends up? | 18:54 |
| ← dwmw2_gone left | 18:54 |
|
cbreak
| then do what I wrote above | 18:55 |
|
Jon--
| I meant +w remotely on the repo, not locally. | 18:55 |
|
| Of course I have +w on that user locally | 18:55 |
|
cbreak
| make a script that fetches, and only let him execute that script via ssh | 18:55 |
|
| then all he can do is fetch | 18:55 |
| ← Merwin left | 18:56 |
|
cbreak
| (No clue why you would want something like that though) | 18:56 |
| → Merwin joined | 18:56 |
|
fission6
| if i rm a file from tracking then i checkout it out, will it automaically be tracked again? | 18:56 |
|
| if i include it in .gitignore too | 18:56 |
| ← adiabatic left | 18:57 |
| ← msmithng left | 18:57 |
|
cbreak
| fission6: depends. | 18:57 |
| ← etcetera left | 18:57 |
|
cbreak
| did you commit the removal? | 18:57 |
| ← LekeFly left | 18:57 |
|
Jon--
| cbreak, I think I am not communicating properly. I'm on box1, box1 needs the latest production code from server1. I want to grab it over ssh using a fetch. git shouldn't be run on server1 at all, it's just hosting the repo that box1 is updating. | 18:57 |
| → diegoviola joined | 18:58 |
| → dwmw2_gone joined | 18:58 |
|
cbreak
| git has to run on a server | 18:58 |
|
| you need git upload-pack there | 18:58 |
|
Jon--
| It is running | 18:58 |
| → msmithng joined | 18:58 |
|
cbreak
| it gets started if you clone/fetch via ssh | 18:58 |
|
| if you want to clone/fetch from the server, then it's easy | 18:58 |
|
| gitolite and done. | 18:59 |
|
imachuchu
| fission6: are you trying to have a file present on the remote branch that isn't in your local checkout? | 18:59 |
|
cbreak
| or use git-shell as mentioned before | 18:59 |
|
Jon--
| There are networking restrictions I have to work around. | 18:59 |
|
| All I have is an SSH tunnel. | 18:59 |
|
cbreak
| no need for a tunnel | 18:59 |
|
Jon--
| I don't believe gitolite supports ssh addressing, etc. | 18:59 |
|
cbreak
| you need an ssh connection | 18:59 |
|
| what? | 18:59 |
|
| gitolite REQUIRES ssh | 18:59 |
|
| more or less :) | 18:59 |
| ← iamjarvo left | 19:00 |
|
cbreak
| remember the authorized_keys thing I told you before about? | 19:00 |
|
| that's how gitolite works. | 19:00 |
| → the_cybersphinx joined | 19:00 |
|
abletony84
| cool | 19:01 |
|
| thanks guys | 19:01 |
|
Jon--
| Will it allow me to specify ssh://user@host:port designation? This machine only has one connection (guaranteed anyway), and it's an SSH tunnel back to server1 in this case. | 19:01 |
| ← opus left | 19:01 |
|
cbreak
| sure. | 19:01 |
|
| as long as user is the user gitolite is set up for | 19:02 |
|
abletony84
| was mostly html and css work, luckily i had the page loaded in firebug and could restore the work from there | 19:02 |
| → etcetera joined | 19:02 |
| → ZaherDirkey joined | 19:02 |
| ← ZaherDirkey left | 19:02 |
|
jast
| I set up a gitolite/HTTP setup for work recently | 19:02 |
|
Jon--
| Just seems like a pain in the ass to me | 19:02 |
|
| Overkill for what I need | 19:02 |
|
cbreak
| gitolite? 5 mins. | 19:02 |
|
| otherwise, read what I wrote above | 19:02 |
|
| you should read what I wrote above either way :D | 19:02 |
| ← psoo left | 19:03 |
|
Jon--
| which? You've said many things ;) | 19:03 |
|
cbreak
| either gitolite | 19:03 |
| ← cybersphinx left | 19:03 |
|
cbreak
| or git-shell | 19:03 |
| ← darren left | 19:03 |
|
cbreak
| combine git-shell with read only access if you want | 19:03 |
|
jast
| or just you a standard shell... works just as well if all the involved machines are trusted | 19:04 |
|
| s/you/use/ jeez, how did that happen | 19:04 |
|
Jon--
| jast, That defeats the whole purpose of hardening things, which is why I'm here. Standard user is easy :P | 19:04 |
| ← etcetera left | 19:04 |
|
jast
| right. git-shell then. | 19:04 |
|
Jon--
| cbreak, chsh to git-shell, then I can do git clone/fetch calls? | 19:04 |
|
jast
| yes | 19:04 |
|
Jon--
| I'll give it a go, thnx. | 19:05 |
|
jast
| depending on filesystem permissions | 19:05 |
| ← Destos left | 19:05 |
| → opus joined | 19:05 |
| jjbohn|afk → jjbohn | 19:06 |
| → etcetera joined | 19:06 |
|
Jon--
| I have 664, I'm the 4 in this case | 19:06 |
| ← opus left | 19:06 |
|
cbreak
| Jon--: chsh what? | 19:06 |
|
Jon--
| (on files) | 19:06 |
|
cbreak
| you just have to set it as shell for that user | 19:06 |
|
Jon--
| cbreak, chsh to git-shell, is that not how you restrict a user to using git-shell? [not sure what you're asking here] | 19:06 |
|
cbreak
| you can't git clone/fetch | 19:07 |
|
| but you can do git upload-pack | 19:07 |
|
| which is what you need for fetching | 19:07 |
|
Jon--
| will that break if there are potential local changes that I want to discard? | 19:07 |
| → leila joined | 19:07 |
|
cbreak
| irrelevant | 19:07 |
|
| fetching doesn't care about any of that | 19:08 |
|
Jon--
| so I can't use fetch? | 19:08 |
|
cbreak
| it just fetches history into remote tracking branches | 19:08 |
|
Jon--
| with git-shell? | 19:08 |
|
cbreak
| why not? | 19:08 |
|
| of course not | 19:08 |
| ← maestrojed left | 19:08 |
| → shruggar joined | 19:08 |
|
cbreak
| didn't you say above that you don't want to do git fetch? | 19:08 |
| ← leila left | 19:09 |
|
Jon--
| No, I want to restrict user compromise from causing damage, either commit, delete, or other arbitrary unix commands that could do some damage. I'm referring to using git-fetch on the box, ssh for auth, over to an account on the server with a git repo to grab changes from | 19:09 |
| → fayimora joined | 19:10 |
|
Jon--
| I want to restrict the user on that server side to being able to fetch that git code, but nothing else, if possible | 19:10 |
|
cbreak
| so... answer: | 19:10 |
|
| do you want him to run git fetch server side? | 19:10 |
|
| or not? | 19:10 |
|
| you've said both so far | 19:10 |
|
Jon--
| server side, no | 19:10 |
|
cbreak
| which is of course nonsensical | 19:10 |
| ← corburn left | 19:11 |
|
cbreak
| alright, then don't complain! | 19:11 |
| → ddelrio1986 joined | 19:11 |
|
Jon--
| I was unclear thought you meant I couldn't fetch on the remote repo | 19:11 |
| → oddover joined | 19:11 |
|
EugeneKay
| Jon-- - !xy | 19:11 |
|
gitinfo
| Jon--: This sounds like an "XY Problem" http://mywiki.wooledge.org/XyProblem So let's step back for a minute. What are you actually trying to achieve? Why are you doing it this way? | 19:11 |
|
cbreak
| you can't | 19:11 |
|
| Jon-- throws hands up | 19:11 |
|
cbreak
| you can not do anything on the remote repo appart from using the pack commands | 19:11 |
|
| so don't complain | 19:12 |
|
Jon--
| I've been very clear what I need here. | 19:12 |
|
| I am not complaining. | 19:12 |
|
cbreak
| no. you're contradiction yourself all the time | 19:12 |
| ← maletor left | 19:12 |
|
Jon--
| < Jon--> cbreak, I think I am not communicating properly. I'm on box1, box1 needs the latest production code from server1. I want to grab it over ssh using a fetch. git shouldn't be run on server1 at all, it's just hosting the repo that box1 is updating. | 19:12 |
| ← ovnicraft left | 19:12 |
| → StefanM joined | 19:13 |
|
cbreak
| then you will not be able to do anthing with git... | 19:13 |
|
Jon--
| That last bit about "git not running" means "I don't need to be able to run git commands on server1 as that user, only be able to fetch from it". | 19:13 |
|
cbreak
| as I said above: you need git on the server | 19:13 |
|
Jon--
| cbreak, for the second time. ^^^ | 19:13 |
|
cbreak
| you should read what I write :/ | 19:13 |
|
EugeneKay
| "only be able to fetch from it" tells me that you're XY-ing this. What's the point? | 19:13 |
|
cbreak
| you can not do anything on the remote repo appart from using the pack commands | 19:13 |
|
EugeneKay
| In english, not in git-commands. | 19:14 |
| ← specialGuest left | 19:14 |
|
Jon--
| EugeneKay, I want to be able to fetch the latest production code from that server, and restrict it so it can only fetch code and not make modifications. | 19:14 |
|
EugeneKay
| Ok, I just said "not in git-commands". | 19:14 |
|
| !deploy | 19:14 |
|
gitinfo
| Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html | 19:14 |
|
EugeneKay
| Read that ^ | 19:14 |
|
cbreak
| Jon--: so, what's the problem? | 19:15 |
|
| why are you still unhappy? | 19:15 |
|
| I gave you two potential solutions ages ago | 19:15 |
|
| both will work | 19:15 |
|
EugeneKay
| It sounds like you want to be able to let $USER put code on a server. Your concept of the user logging in and then pulling it down is flawed. Read deploy. | 19:15 |
|
cbreak
| just pick one and implement it! | 19:15 |
|
Jon--
| cbreak, besides you being an ass about it? | 19:15 |
|
cbreak
| you're the one assing around | 19:15 |
|
Jon--
| mostly that you seem to be contradicting yourself | 19:15 |
|
cbreak
| first you say "no git command", then "fetch on the server" then "not fetch on the server" | 19:16 |
|
| decide! | 19:16 |
|
Jon--
| Or at least, I am not clear what you mean, and feel I'm being ridiculed for it. | 19:16 |
|
cbreak
| what I say is simple: | 19:16 |
|
| use gitolite. | 19:16 |
| → specialGuest joined | 19:16 |
|
cbreak
| use git-shell | 19:16 |
|
| it's either one or the other of course | 19:16 |
|
| they don't work well together. | 19:16 |
|
bitkiller
| is there any way to replicate some repo confs (those that may make sense in replicating) from bare to clones? | 19:16 |
|
Jon--
| EugeneKay, Close, I want to use $USER to authenticate, and grab code from there. | 19:16 |
|
cbreak
| bitkiller: not with git. | 19:16 |
|
jast
| git doesn't have authentication | 19:16 |
|
| all it does is respect filesystem permissions | 19:17 |
| ← fisted left | 19:17 |
|
Jon--
| It does when you use SSH to access the repo... that is all I mean. | 19:17 |
|
cbreak
| Jon--: use ssh for authentication. | 19:17 |
|
jast
| well, okay | 19:17 |
|
| so, git-shell | 19:17 |
|
| when did that stop being a viable solution? | 19:17 |
|
| I haven't been following the discussion | 19:17 |
|
bitkiller
| cbreak, is gitolite an option? | 19:17 |
|
Jon--
| jast, when cbreak told me I couldn't use git fetch if I restrict $USER to git-shell | 19:17 |
|
cbreak
| he keeps complaining about wanting to fetch on the server... | 19:18 |
| → arietis joined | 19:18 |
|
jast
| sure you can | 19:18 |
|
cbreak
| Jon--: I told you three times that there's NO POINT IN GIT FETCH | 19:18 |
|
EugeneKay
| cbreak - have a !beer ! | 19:18 |
|
gitinfo
| cbreak: Beer! It's what's for dinner! | 19:18 |
|
Jon--
| cbreak, for the tenth fucking time, NOT ON THE SERVER. | 19:18 |
|
cbreak
| you don't need it | 19:18 |
|
EugeneKay
| Jon-- - !fsck | 19:18 |
|
cbreak
| Jon--: get some manners | 19:18 |
|
gitinfo
| Jon--: [!profanity] Hey! This is a family-safe channel, so keep it frakking clean you fierfekker! | 19:18 |
|
cbreak
| Jon--: and get some reading glasses | 19:18 |
|
jast
| cbreak: I'm not following | 19:18 |
|
blathijs
| Is it me, or does Jon-- just wants to fetch _from_ the server, not _on_ the server? | 19:18 |
|
jast
| blathijs: it's not just you | 19:18 |
|
cbreak
| Jon--: I told you that git shell only restricts what happens on the server | 19:18 |
|
jast
| that's precisely my interpretation, too | 19:18 |
|
cbreak
| blathijs: that's why I told him many times that he doesn't have to do that | 19:19 |
|
blathijs
| and perhaps Jon-- doesn't realize that fetching _from_ the server involves running git commands _on_ the server (underwater) | 19:19 |
|
Jon--
| blathijs, Correct. I came in here for help locking it down for security. | 19:19 |
|
jast
| all the locking down pretty much happens on the ssh side of things | 19:19 |
| → iamjarvo joined | 19:19 |
|
jast
| (and making sure the ssh user doesn't have filesystem access to repositories he shouldn't | 19:19 |
|
| ) | 19:19 |
|
Jon--
| I want to minimize the permissions on $USER so if that machine is compromised there is minimal damage to the other side. | 19:20 |
| ← palm_vue left | 19:20 |
| ← bizhanMona left | 19:20 |
| ← Lgb left | 19:20 |
|
joshc
| Jon--: what you want is git-shell. | 19:20 |
|
Jon--
| joshc, Alright | 19:20 |
|
jast
| so, you have to make sure that the user can read but not write | 19:20 |
|
| and for that you need to figure out appropriate file permissions | 19:20 |
|
cbreak
| as I told you many times already Jon-- use git-shell or better gitolite | 19:20 |
|
Jon--
| jast, I have that already, was looking for more, eg a shell that can only run git commands... ala git-shell | 19:20 |
|
jast
| (or use gitolite which does all the work for you) | 19:20 |
|
Jon--
| Then cbreak made me think that wasn't a viable solution | 19:20 |
|
cbreak
| no | 19:20 |
|
jast
| git-shell is fine | 19:20 |
|
cbreak
| when did I do that? | 19:21 |
|
jast
| I'm pretty sure that was just a misunderstanding | 19:21 |
|
cbreak
| I told you many times it is the solution | 19:21 |
|
Jon--
| cbreak, You're either a troll or are terrible at communication Sir. | 19:21 |
|
| Thanks for the help guys | 19:21 |
| ← kevwil left | 19:21 |
|
cbreak
| what? | 19:21 |
| ← marthinal left | 19:21 |
|
cbreak
| you keep repeating the same things over and over and call me a troll? | 19:21 |
| → jceb__ joined | 19:21 |
|
jast
| well, to be fair, someone who accuses people of being trolls doesn't qualify as "excellent communicator" in my book, either ;) | 19:21 |
|
cbreak
| people get ruder every day :( | 19:21 |
| → psoo joined | 19:22 |
| → hellopat joined | 19:22 |
|
jast
| ah, I read the backscroll now and I understand the disconnect | 19:22 |
|
blathijs
| fwiw, here cbreak implied git-shell wouldn't work: | 19:22 |
|
| 21:07:04 < cbreak> you can't git clone/fetch | 19:22 |
| → Sigma joined | 19:22 |
|
cbreak
| blathijs: no... | 19:22 |
|
blathijs
| but there's really just a lot of confusion betweeon _on_ the server and _from_ the server | 19:23 |
|
cbreak
| that's the whole point of git-shell | 19:23 |
|
jast
| it's because cbreak was explaining things from an internals perspective whereas Jon-- was interpreting them from a user's perspective | 19:23 |
| → Lgb joined | 19:23 |
| ← shreya left | 19:23 |
| → palm_vue joined | 19:23 |
|
blathijs
| cbreak: I said "implied" for a reason :-) | 19:23 |
| → oddover_ joined | 19:23 |
|
cbreak
| blathijs: it's quite unambiguous | 19:23 |
| → bizhanMona joined | 19:23 |
| ← freeed left | 19:23 |
|
cbreak
| blathijs: you can not do anything on the server | 19:23 |
|
| apart from upload-pack and a few other pack things | 19:23 |
| → afuentes joined | 19:23 |
|
jast
| the *user* typically doesn't know/care what happens on the server when you fetch/push from/to it | 19:23 |
|
cbreak
| you can NOT fetch on the server | 19:23 |
| → kevwil joined | 19:23 |
|
cbreak
| you can NOT clone on the server | 19:23 |
| → private joined | 19:23 |
|
Jon--
| blathijs, That was what I was referring to, yes. | 19:23 |
|
cbreak
| and so on | 19:23 |
|
| jast: Jon-- seemed to care about it | 19:24 |
| gitinfo set mode: +v | 19:24 |
| ← oddover_ left | 19:24 |
|
oddover
| Hi all. is there some way to do a `git ls-remote` and only get a list of tags back? (no sha1) | 19:24 |
|
cbreak
| he kept asking about fetching on the server despite me telling him that it's pointless | 19:24 |
|
jast
| but of course cbreak is right in that git-shell will not allow users to run git fetch and friends remotely on the server | 19:24 |
| private → Guest68146 | 19:24 |
|
blathijs
| cbreak: Yes, I understand how it works, but "git clone [email@hidden.address] could be described by running a clone on [email@hidden.address] | 19:24 |
|
jast
| no, I don't think he said "on the server" | 19:24 |
| ← kevwil left | 19:25 |
| ← _Vi left | 19:25 |
|
cbreak
| blathijs: no... | 19:25 |
|
jast
| oddover: no, but the format is pretty easy to parse/process, isn't it? | 19:25 |
|
cbreak
| blathijs: clones are local | 19:25 |
|
| you can not clone on a remote | 19:25 |
| → _Vi joined | 19:25 |
|
oddover
| +jast: yes, but I'm having trouble using it inside of another language. I figured I'd ask to make sure | 19:26 |
|
jast
| clones are an operation with two end points. it makes little sense to pin them to one of the sides exclusively | 19:26 |
| → maletor joined | 19:26 |
|
blathijs
| cbreak: Yes, I understand how it works, but "git clone [email@hidden.address] could be described as running a clone on [email@hidden.address] by users who don't fully understand how things work | 19:26 |
|
cmn
| oddover: you can restrict it by passing refs/tags as a parameter | 19:26 |
|
jast
| the 'clone' git builtin itself runs on only one side, but the overall clone operation is distributed across (typically) two machines | 19:26 |
|
cmn
| but parsing which side is which is up to the user | 19:26 |
|
cbreak
| blathijs: no, it can't | 19:26 |
|
jast
| and this is where user perspective disconnects from developer perspective | 19:27 |
|
blathijs
| cbreak: I'm not saying they would be correct, of course | 19:27 |
|
jast
| the user simply doesn't care what it's called on the server side | 19:27 |
|
cbreak
| runnong a clone on foo#bar.com would be ssh [email@hidden.address] git clone | 19:27 |
|
cmn
| blathijs: if you don't know how things work, you can describe anything as anything, it doesn't make it right | 19:27 |
|
blathijs
| cbreak: I'm just saying there's a fair chance they'll doing it anyway | 19:27 |
| → freeed joined | 19:27 |
| → scwizard joined | 19:27 |
|
cbreak
| blathijs: if you don't assume correctness, then you could describe it as recalibrating the dilitium matrix. | 19:27 |
|
_ikke_
| :D | 19:28 |
|
scwizard
| what's the most sensible way to undo the most recent commit non interactively? | 19:28 |
| → Corey joined | 19:28 |
| ← luxurymode left | 19:28 |
|
cbreak
| scwizard: git reset --soft HEAD~1 | 19:28 |
|
_ikke_
| scwizard: describe non interactively? Through a script? | 19:28 |
|
jast
| scwizard: define 'undo' | 19:28 |
|
| (see !revert) | 19:28 |
|
gitinfo
| "Revert" is a heavily overloaded term. Do you mean: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard the uncommitted changes in the working tree [git checkout -- .]; c) undo committing [git reset --soft HEAD^, but type !rewriting_public_history] ? | 19:28 |
| ← rohan32 left | 19:28 |
| → leila joined | 19:29 |
|
jast
| does anyone know why it suggests the 'checkout .' instead of 'reset --hard'? | 19:29 |
| ← oddover left | 19:30 |
|
cbreak
| I don't think checkout even works | 19:30 |
|
| also, --hard is bad in this context | 19:30 |
|
jast
| sure does, but doesn't necessarily do it completely | 19:30 |
|
cbreak
| as I said above, --soft should do | 19:30 |
|
jast
| I was talking about (b) | 19:30 |
|
| --soft is useless for (b) | 19:30 |
|
cbreak
| discard uncommitted changes... | 19:30 |
|
scwizard
| a) in this case. If you git-revert through a script it won't prompt the user? | 19:30 |
|
cbreak
| I use checkout -p for that | 19:31 |
|
imachuchu
| scwizard: why do you want to do this in a script? | 19:31 |
|
jast
| scwizard: if it's the most recent commit, nope. in some other cases it may cause conflicts. | 19:31 |
|
cbreak
| scwizard: revert needs no additional infos unless it fails | 19:31 |
|
| since it applies a patch, it can fail | 19:31 |
|
jast
| cbreak: yeah, -p is nice, but sometimes reset --hard is simply much easier/faster :) | 19:31 |
|
blathijs
| jast: Perhaps because git checkout can be applied to individual files as well, and reset --hard is always for the whole tree? | 19:31 |
| ← msmithng left | 19:31 |
| → msmithng joined | 19:32 |
| ← tweedledumber left | 19:32 |
|
jast
| blathijs: yes, but on the other hand checkout -- . doesn't clear away newly tracked files, whereas reset --hard does | 19:32 |
| → tweedledumber joined | 19:32 |
|
jast
| (afaik) | 19:32 |
| → tellone joined | 19:33 |
| ← ska-fan left | 19:33 |
|
blathijs
| jast: I think none of them removes them from your WC | 19:33 |
| → ska-fan joined | 19:33 |
| ← ska-fan left | 19:33 |
|
cbreak
| the main problem with checkout . is that it doesn't affect the whole repository | 19:33 |
| → ivan\ joined | 19:33 |
|
blathijs
| jast: And checkout reverts changes back to the state in the index, not HEAD | 19:33 |
|
cbreak
| people always think that git add ., git checkout . and so on magically affect the whole repo | 19:34 |
|
jast
| unless you happen to be in the right place :) | 19:34 |
|
cbreak
| but . means current directory | 19:34 |
|
jast
| blathijs: yes. but (b) is about removing all *uncommitted* changes, which includes staged ones. | 19:34 |
|
| I guess that means that technically the answer is wrong | 19:34 |
| ← etcetera left | 19:35 |
|
scwizard
| when I say " git revert HEAD~1" it gives an error, but still changes my working copy | 19:35 |
|
jast
| I've changed it | 19:35 |
| ← dstorrs left | 19:36 |
|
blathijs
| !revert | 19:36 |
|
gitinfo
| "Revert" is a heavily overloaded term. Do you mean: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard the uncommitted changes in the working tree [no turning back: git reset --hard]; c) undo committing [git reset --soft HEAD^, but type !rewriting_public_history] ? | 19:36 |
|
jast
| scwizard: that's nice. are we supposed to guess the error? :P | 19:36 |
|
cbreak
| scwizard: resolve the conflict an commit | 19:36 |
|
scwizard
| jast: it says "error: could not reverse $revisionnumber $revisiondescription" | 19:36 |
|
blathijs
| jast: Might make sense to include an option d that shows git checkout, since git checkout is actually very useful for "reverting" changes (especially for people coming from SVN) | 19:37 |
|
jast
| let's see if we can fit in another one | 19:37 |
| ← diegoviola left | 19:37 |
| → dstorrs joined | 19:37 |
|
jast
| !revert | 19:38 |
|
gitinfo
| "Revert" is a heavily overloaded term. Do you mean: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard the uncommitted changes in the working tree [no turning back: git reset --hard]; c) undo committing [git reset --soft HEAD^, but type !rewriting_public_history]; d) restore staged versions of files [git checkout -p]? | 19:38 |
| → AaronMT_ joined | 19:38 |
| → ska-fan joined | 19:38 |
| → maestrojed joined | 19:38 |
| ← maestrojed left | 19:38 |
|
scwizard
| I don't understand what kind of conflicts "git revert head~1" could encounter | 19:38 |
| → corburn joined | 19:39 |
|
blathijs
| jast: Looks good | 19:39 |
| ← abletony84 left | 19:39 |
| ← ReekenX left | 19:39 |
| ← tellone left | 19:39 |
|
blathijs
| scwizard: if HEAD removes a file that is changed in HEAD~1? | 19:39 |
|
cbreak
| scwizard: it has to undo the second last commit | 19:39 |
| → AdrienBrault joined | 19:39 |
|
blathijs
| or changes it in a conflicting way | 19:39 |
|
jast
| nah | 19:39 |
|
cbreak
| and if you changed something in the last commit | 19:39 |
|
| that touched the second last commit's changes | 19:40 |
|
| then you will get a conflict | 19:40 |
| ← specialGuest left | 19:40 |
| → specialGuest joined | 19:40 |
| ← BadDesign left | 19:40 |
|
jast
| did you actually mean HEAD~1? you said "most recent commit" earlier, but HEAD~1 is actually the commit before that | 19:40 |
|
scwizard
| jast: oh, what's the most recent commit? | 19:40 |
|
blathijs
| HEAD :-) | 19:40 |
|
_ikke_
| HEAD | 19:40 |
|
jast
| man gitrevisions if you want to understand all this weird syntax | 19:41 |
|
gitinfo
| the gitrevisions manpage is available at http://git-scm.com/docs/gitrevisions.html | 19:41 |
|
scwizard
| wait head is the current commit. If I want to "undo" in the fashion of a) then I want to go back to the commit before HEAD right? | 19:41 |
|
jast
| yes, but 'git revert' does it differently | 19:41 |
|
| 'git revert foo' means: undo the effects of foo | 19:41 |
|
blathijs
| Oh nice, didn't know man gitrevisions existed :-) | 19:41 |
|
gitinfo
| the gitrevisions manpage is available at http://git-scm.com/docs/gitrevisions.html | 19:41 |
|
scwizard
| jast: ahh, I see | 19:41 |
| → rohan32 joined | 19:41 |
| → duckx joined | 19:42 |
|
jast
| that's the only way it makes sense for 'git revert'... otherwise you couldn't do surgical removal of a single change way back in the history or stuff like that | 19:42 |
| → Adys_ joined | 19:42 |
| → The_Ball joined | 19:43 |
| → neurodrone joined | 19:43 |
| ← AdrienBrault left | 19:43 |
|
jast
| (of course 'removal' technically isn't the right word) | 19:43 |
| ← Adys left | 19:43 |
| ← duckxx left | 19:44 |
| Adys_ → Adys | 19:45 |
| → LekeFly joined | 19:45 |
| → etcetera joined | 19:48 |
| ← Sky[x] left | 19:50 |
| ← piotrj left | 19:53 |
| → piotrj joined | 19:53 |
| ← piotrj left | 19:55 |
| → piotrj joined | 19:55 |
| ← duckx left | 19:57 |
| → smarter joined | 19:58 |
| → duckx joined | 19:58 |
| → Araxia joined | 19:59 |
|
EugeneKay
| `git revert` is really `git cherry-pick` in reverse | 19:59 |
| ← smarter_ left | 19:59 |
| → rcu joined | 20:01 |
|
scwizard
| is there a way a utility for quickly checking if the code of a remote folder matches up with the code in a git repository? | 20:03 |
| ← irqq left | 20:04 |
|
scwizard
| *local git repo | 20:04 |
|
FauxFaux
| A remote folder? As in, over ssh? | 20:04 |
|
CareBear\
| git ? | 20:04 |
|
scwizard
| FauxFaux: yeah over ssh | 20:04 |
|
CareBear\
| just use git | 20:04 |
| ← Sigma left | 20:04 |
|
scwizard
| CareBear\: how do I do such a thing in git? | 20:04 |
|
CareBear\
| copy the files or use sshfs | 20:05 |
|
scwizard
| CareBear\: wouldn't git only work if the remote folder is a git repository. Copying the files is destructive, I don't want to do this destructively | 20:05 |
|
CareBear\
| what destructive? | 20:05 |
|
cmn
| copying files is only destructive if you make it so | 20:05 |
|
scwizard
| well maybe destructive is the wrong word | 20:05 |
|
cmn
| copy them somewhere empty | 20:05 |
|
scwizard
| I don't want to write to the remote server | 20:05 |
|
CareBear\
| right | 20:05 |
|
| you don't have to | 20:05 |
|
scwizard
| in fact lets say I don't even have access to | 20:05 |
|
CareBear\
| if you don't have access to the files how can you compare them? | 20:06 |
|
cmn
| if you don't have access to the files, you can't compare them | 20:06 |
|
scwizard
| I can read certain files from the remote server | 20:06 |
|
| over sftp or ssh | 20:06 |
|
CareBear\
| then you can compare those files | 20:06 |
| ← hellopat left | 20:06 |
|
scwizard
| how? | 20:06 |
|
| copying them from the remote server to the local machine is slow | 20:06 |
|
cmn
| scp remoteserver:files/ . | 20:06 |
|
CareBear\
| either copy them to your workdir with uncommitted changes | 20:07 |
|
| *without* uncommitted changes sorry | 20:07 |
|
cmn
| and how do you suggest comparing them if you don't want to read them? | 20:07 |
|
scwizard
| cmn: you can read files without copying them over right? | 20:07 |
|
cmn
| no | 20:07 |
|
CareBear\
| ?! | 20:07 |
|
| wtf | 20:07 |
|
| scwizard : how would you do that? | 20:07 |
|
scwizard
| hmm | 20:08 |
|
cmn
| you are able not to write down the data on your disc, but you need to transfer the information | 20:08 |
|
| use rsync to speed up the process | 20:08 |
|
scwizard
| good point | 20:08 |
| ← nveid left | 20:09 |
| → eletuchy joined | 20:10 |
| → nveid joined | 20:10 |
| ← jceb__ left | 20:10 |
| → giallu joined | 20:11 |
| ← tjholowaychuk left | 20:12 |
| → yoklov joined | 20:12 |
| ← etcetera left | 20:13 |
| → jay joined | 20:13 |
| ← duckx left | 20:13 |
| jay → Guest99751 | 20:13 |
| ← corburn left | 20:14 |
| → luxurymode joined | 20:15 |
| → etcetera joined | 20:15 |
| ← Crocell left | 20:15 |
| ← raykyri left | 20:15 |
| → duckx joined | 20:15 |
| ← gfontenot left | 20:16 |
| ← nifty_ left | 20:17 |
| → raykyri joined | 20:17 |
| ← Guest99751 left | 20:18 |
| → corburn joined | 20:19 |
| → gdogg joined | 20:19 |
| ← dc5ala left | 20:19 |
| → gfontenot joined | 20:19 |
| → Speed joined | 20:20 |
| ← Speed left | 20:20 |
| → Speed joined | 20:20 |
| gitinfo set mode: +v | 20:20 |
|
gdogg
| Git Q. I have an android repo (a collection of a bunch of git repos) and I want to bisect, but I can't use git bisect. I saw a snippet to do something similar, just need to keep track of the date myself: git checkout `git rev-list -n 1 --before="2009-07-27 13:37" master` Problem is that with repo we aren't on a branch at all, and rev-list doesn't work without a branch specified | 20:20 |
| → d3vic3 joined | 20:21 |
|
d3vic3
| stat | 20:21 |
|
gdogg
| I could manually create a master branch for each repo, but I am hoping there's a more elegant solution | 20:21 |
| ← ruskie left | 20:22 |
| → avpx joined | 20:23 |
| → tjholowaychuk joined | 20:23 |
| ← tjholowaychuk left | 20:23 |
| ← unmanbearpig left | 20:24 |
|
gdogg
| ah I guess I can just specify HEAD instead of master | 20:24 |
| → dinesh6654 joined | 20:25 |
| → iliketurtles joined | 20:25 |
| ← Fullmoon left | 20:27 |
| ← skyf left | 20:28 |
|
CareBear\
| gdogg : how is your repo a bunch of git repos without branches and why can't you use plain bisect? | 20:28 |
| ← dinesh6654_ left | 20:29 |
| → skyjumper joined | 20:29 |
| ← duckx left | 20:29 |
| → ruskie joined | 20:29 |
| → ferdna joined | 20:29 |
| ← Yko left | 20:30 |
|
scwizard
| Is there a way to have local contain all history. But remote only include history after a certain revision? You want to keep track of changes to local and remote and eventually merge them. However you don't want remote to have all that history. | 20:30 |
| ← revagomes left | 20:30 |
|
cmn
| no | 20:30 |
|
scwizard
| darn, that would be nice to have :( | 20:31 |
|
gdogg
| CareBear\: They have branches but when you use repo sync it just gets the TOT/head of each git repo, but deletes all branch names locally. You can't use plain bisect because between each git repo changes aren't distributed evenly so you' | 20:31 |
|
cmn
| a limited version may or may not work using shallow clones | 20:31 |
| → duckx joined | 20:31 |
|
gdogg
| ..you'd have to check each repo manually and find the halfway point of all of the changes aggregated together | 20:31 |
|
cmn
| but they weren't meant to be used for sharing anything | 20:31 |
|
scwizard
| shallow clones are almost exactly what I'm looking for | 20:32 |
|
| except I want to be able to push to the shallow clone. | 20:32 |
|
CareBear\
| scwizard : you're doinitrong | 20:33 |
|
scwizard
| CareBear\: how so? | 20:33 |
| ← spaceonline left | 20:33 |
|
CareBear\
| scwizard : change the workflow - use the tool better | 20:33 |
| → tylersanders joined | 20:34 |
| ← specialGuest left | 20:34 |
| ← tylersanders left | 20:35 |
|
imachuchu
| scwizard: why don't you want remote to have all of that history (an extension of the question CareBear\ asked)? | 20:36 |
|
scwizard
| CareBear\: it's like this. I want to track changes to code in production, but I can't have all that history stored in production because it could potentially take up space | 20:36 |
| ← whitman left | 20:37 |
|
CareBear\
| code changes do not take much space | 20:37 |
|
| if your repo is all binaries it's a different story, but you said code | 20:37 |
|
| your chief problem is that code changes are happening in production | 20:37 |
|
| that's the doinitrong | 20:38 |
| → opus joined | 20:38 |
| ← msmithng left | 20:38 |
|
scwizard
| yes I know, yes it's dumb, but I can just tell its going to bug people who are not me | 20:38 |
| ← fusion27 left | 20:38 |
|
scwizard
| as for code changes in production, how to do a hotfix? | 20:39 |
|
CareBear\
| clone fix commit push | 20:39 |
| → msmithng joined | 20:39 |
|
cmn
| there is no need to have changes in production | 20:39 |
|
scwizard
| cmn: how to hotfix production? | 20:39 |
|
CareBear\
| I JUST SAID | 20:40 |
|
| clone fix commit push | 20:40 |
|
cmn
| that depends completely on what you're saying | 20:40 |
|
scwizard
| CareBear\: yes, that's fine and well, but then devs need to be trained to do that | 20:40 |
|
cmn
| what you're doing, I mean | 20:40 |
|
CareBear\
| um | 20:40 |
|
| yes if you give monkeys sharp tools they will bleed | 20:40 |
|
cmn
| if you can't train your devs to use a VCS in the most basic way, you need to fire them | 20:40 |
|
CareBear\
| what cmn said | 20:40 |
| ← oakdog8 left | 20:40 |
|
scwizard
| I don't make staffing decisions, also we're working on it | 20:41 |
|
CareBear\
| if you take pity, you could let them bleed once, give them a band-aid, and see if they learned something | 20:41 |
| → specialGuest joined | 20:41 |
|
CareBear\
| git is a great tool | 20:41 |
|
| but it can not compensate for incompetent staff | 20:42 |
|
| sorry about that | 20:42 |
| → revagomes joined | 20:43 |
| → adamm joined | 20:43 |
|
SaCu
| CareBear\, your 'if you take pity...' is worth to be put into an email signature :) | 20:43 |
|
CareBear\
| scwizard : http://joemaller.com/990/ would probably be a step up from what you do now | 20:44 |
|
| SaCu : feel free to use it | 20:44 |
|
SaCu
| hehe | 20:44 |
| ← fly9 left | 20:44 |
|
scwizard
| CareBear\: neato | 20:44 |
|
| (anything would be a step up from anything now :( ) | 20:44 |
| ← flaguy48 left | 20:45 |
|
scwizard
| anyways I can't believe I was worrying about the space thing, that was a silly thing to think about >_> | 20:45 |
|
CareBear\
| you want to avoid me doing a recursive download of your .git/ though | 20:45 |
|
| because who knows what kind of passwords the monkeys commited two years ago, and you can bet that they haven't been changed | 20:46 |
|
scwizard
| well of course :| | 20:47 |
| → darren joined | 20:47 |
| → fly9 joined | 20:48 |
|
scwizard
| I'm just glad, that monkeys aren't just a thing I deal with, or else you wouldn't have known to say that >_> | 20:48 |
|
thorbjornDX
| is there a way to filter through my entire python repo history and convert leading tabs to 4-spaces? or should I make a single commit that does that | 20:48 |
| ← gdogg left | 20:48 |
| ← d3vic3 left | 20:48 |
|
thorbjornDX
| I can pretty safely edit published history | 20:48 |
| ← mtytel left | 20:49 |
| ← lacrymology left | 20:49 |
| → hellopat joined | 20:49 |
|
joshc
| thorbjornDX: see man git-filter-branch | 20:49 |
|
gitinfo
| thorbjornDX: the git-filter-branch manpage is available at http://git-scm.com/docs/git-filter-branch.html | 20:49 |
|
CareBear\
| if you have many commits it will be SLOW | 20:50 |
|
| but it is mighty! :) | 20:50 |
|
thorbjornDX
| CareBear\: it's about 100 commits total? something like that | 20:50 |
| ← mwrosen left | 20:50 |
|
CareBear\
| oh, no problem | 20:50 |
|
thorbjornDX
| CareBear\: though, I have to be pretty damn careful with my regex, since it's python... | 20:50 |
|
CareBear\
| well, never a problem, just takes time | 20:50 |
| ← specialGuest left | 20:50 |
|
CareBear\
| thorbjornDX : oh that's no problem, because you also have a test suite for your code - right? | 20:51 |
|
| mohaha | 20:51 |
| ← The_Ball left | 20:51 |
|
thorbjornDX
| CareBear\: wishful thinking with this repo | 20:51 |
|
| CareBear\ never has tests | 20:51 |
| ← raykyri left | 20:51 |
|
CareBear\
| maybe you can make one | 20:51 |
|
thorbjornDX
| I try to use TDD when I can. But usually I just need to bang something out | 20:51 |
| ← etcetera left | 20:51 |
|
CareBear\
| nothing comprehensive, but at least import everything so that there are no exceptions | 20:52 |
|
thorbjornDX
| or I inherit ~5000 lines of gui code and don't feel like testing it | 20:52 |
| → RaceCondition joined | 20:52 |
|
thorbjornDX
| CareBear\: will this solve my problem?: http://stackoverflow.com/questions/2316677/can-git-automatically-switch-between-spaces-and-tabs | 20:53 |
| → raykyri joined | 20:53 |
| ← AaronMT_ left | 20:53 |
|
thorbjornDX
| CareBear\: I'd rather the source be clean too, so I'd need a filter-branch too | 20:53 |
|
imachuchu
| thorbjornDX: single commit. Yes it's possible, but what really do you save? The worst that happens is that git blame doesn't help to much | 20:53 |
|
| thorbjornDX: ack, disregard that, I was looking through history (that was for the "go back in time to change line endings question) | 20:54 |
| → Destos joined | 20:54 |
|
thorbjornDX
| imachuchu: ah, ok. For leading tabs I should still filter-branch you think? | 20:54 |
|
CareBear\
| thorbjornDX : that will solve your problem in the future | 20:55 |
| ← freeed left | 20:55 |
| → gtrak joined | 20:55 |
| ← beneggett left | 20:55 |
|
CareBear\
| thorbjornDX : question is how important it is for you to make it look like you knew about the trick before the repo was created | 20:55 |
|
imachuchu
| thorbjornDX: the past is the past, what do you hope to get out of it? A slightly more readable reference? | 20:55 |
|
thorbjornDX
| imachuchu: I'd prefer if I diff HEAD to something in the past that it not highlight every single line | 20:56 |
| → etcetera joined | 20:56 |
| → dinesh6654_ joined | 20:57 |
| ← fly9 left | 20:57 |
| → fly9 joined | 20:57 |
| → velikasha joined | 20:57 |
| → The_Ball joined | 20:57 |
| → spaceonline joined | 20:57 |
| ← robbyoconnor left | 20:58 |
| ← dinesh6654 left | 20:58 |
| ← nveid left | 20:59 |
| ← sq-one left | 20:59 |
| ← velikasha left | 20:59 |
| → nveid joined | 20:59 |
| → orkz_ joined | 20:59 |
| → NomNomNom joined | 21:00 |
|
CareBear\
| then you need to filter-branch | 21:00 |
| → palithius joined | 21:00 |
|
palithius
| Is there a formal way to backup git repositories? Or do I just copy the folder and maybe zip it and store that somewhere? | 21:01 |
| ← axl_ left | 21:01 |
|
imachuchu
| palithius: !backup I prefer git-bundle myself (doesn't backup unreference commits though) | 21:01 |
|
gitinfo
| palithius: Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups | 21:01 |
| ← orkz left | 21:01 |
| orkz_ → orkz | 21:01 |
|
CareBear\
| palithius : git push --mirror into a bare rpo does a good job | 21:01 |
| ← ddelrio1986 left | 21:01 |
| → axl_ joined | 21:01 |
| ← axl_ left | 21:02 |
| ← nveid left | 21:02 |
| ← Gentlecat_ left | 21:02 |
|
palithius
| thanks! | 21:02 |
| ← pppaul left | 21:02 |
| → Gentlecat_ joined | 21:02 |
| ← tommyvyo left | 21:02 |
| ← efreese left | 21:03 |
| → nifty_ joined | 21:03 |
| → AaronMT joined | 21:03 |
| ← RaceCondition left | 21:04 |
| → dinesh6654 joined | 21:05 |
| → axl_ joined | 21:05 |
| ← cannonball left | 21:05 |
| → pppaul joined | 21:05 |
| → eletuchy_ joined | 21:06 |
| ← dinesh6654_ left | 21:07 |
| → linoj joined | 21:07 |
| ← fission6 left | 21:07 |
|
thorbjornDX
| alright, I'm doing it in one commit, damn the torpedos, thanks for the input CareBear\, imachuchu | 21:07 |
| ← kermit left | 21:07 |
| → GameGamer43 joined | 21:08 |
| → specialGuest joined | 21:08 |
| ← specialGuest left | 21:09 |
| → specialGuest joined | 21:09 |
| ← eletuchy left | 21:09 |
| ← codeFiend left | 21:10 |
| ← rwestphal left | 21:10 |
| ← hwrd|work left | 21:10 |
| ← jjbohn left | 21:11 |
| ← oojacoboo left | 21:11 |
| ← pppaul left | 21:12 |
| ← SkAzZ left | 21:12 |
|
C8H10N4O2
| when working on a local environment and you want to see how the changes of a branch effect site how do you get your local website to reflect the currently selected branch? I made changes to a branch and it is still showing the master view? I have the branch active | 21:13 |
| ← ashirus left | 21:13 |
| ← _iron left | 21:14 |
| ← nifty_ left | 21:14 |
|
cmn
| that depends completely on how you create the site and how you view it | 21:14 |
| → queso joined | 21:14 |
| ← NomNomNom left | 21:14 |
| → oojacoboo joined | 21:14 |
|
queso
| I want to see what commits exist on one branch that do not exist on another. What's the best way to do this? | 21:14 |
| ← rohan32 left | 21:15 |
|
scwizard
| can you pull from a shallow clone? | 21:17 |
| ← codeshah left | 21:17 |
| → tjadc joined | 21:17 |
| ← mmc1 left | 21:17 |
|
cmn
| often | 21:17 |
| → thomas_b joined | 21:18 |
| → pppaul joined | 21:18 |
| ← tplaner_ left | 21:18 |
|
cmn
| you mean pull from as in fetch from that repo or run the pull command in that repo? | 21:18 |
| ← iamjarvo left | 21:19 |
| → hwrd|work joined | 21:19 |
| → api joined | 21:20 |
|
cmn
| actually, nvm, the answer is always going to be "it depends" | 21:20 |
| → fission6 joined | 21:21 |
| ← skyjumper left | 21:21 |
| ← praba left | 21:21 |
|
scwizard
| well better question would be. Lets say you do a shallow clone of repo A. You commit a few changes to your clone. Then the maintainers of A want to merge your commits into A. | 21:21 |
| ← The_Ball left | 21:22 |
| ← AaronMT left | 21:22 |
|
scwizard
| how would the maintainers of A do that? | 21:22 |
| ← s0ber left | 21:22 |
|
avpx
| queso: See the manpage for rev-list | 21:22 |
| ← todd_dsm left | 21:22 |
| → bubbles10101 joined | 21:23 |
|
queso
| avpx: Thank you. | 21:23 |
| → s0ber joined | 21:23 |
| ← pppaul left | 21:24 |
| → revele joined | 21:24 |
| ← nickpresta left | 21:25 |
|
avpx
| queso: You're welcome. You can specify revisions that way with a lot of other utils as well. | 21:25 |
| → kcj joined | 21:25 |
| ← _Vi left | 21:25 |
| → _Vi joined | 21:26 |
| → efreese joined | 21:26 |
| ← dwmw2_gone left | 21:26 |
| ← pantsman left | 21:26 |
| ← olaf_ left | 21:26 |
|
queso
| avpx: Nice, I'll check it out. | 21:27 |
| ← psoo left | 21:28 |
| → ijuma joined | 21:28 |
| ← elux left | 21:29 |
| → The_Ball joined | 21:29 |
| ← bgerber left | 21:29 |
| ← fission6 left | 21:29 |
| ← mritz left | 21:30 |
| ← j416 left | 21:30 |
| → kihap joined | 21:30 |
| ← queso left | 21:31 |
| → dwmw2_gone joined | 21:31 |
| ← msmithng left | 21:31 |
|
kihap
| I put "sites/default/settings.php" in my .gitignore file but git still identifies the file as modified. I also tried putting the file name in the excludes file in the .git folder but git still identifies it as modified. How can I get git to ignore this file? | 21:31 |
| → ddelrio1986 joined | 21:31 |
| → HyperNerdV2 joined | 21:32 |
| ← spaceonline left | 21:32 |
| ← rehat left | 21:32 |
|
cbreak
| Kiall: just git rm it | 21:32 |
|
| kihap: you can't ignore and track a file at the same time obviously | 21:33 |
|
| kihap: also read !config | 21:33 |
|
gitinfo
| kihap: [!configfiles] the recommended way is to change your application so that you can (perhaps optionally) store site-specific configuration/data in separate files, then keep those files out of version control. Still, see https://gist.github.com/1423106 for ways people have worked around the problem. | 21:33 |
| → msmithng joined | 21:34 |
| → lemonjelly joined | 21:35 |
| ← revele left | 21:35 |
| → ShadeTornado joined | 21:36 |
| → iamjarvo joined | 21:36 |
| ← bitkiller left | 21:36 |
| → chrisgeorge_ joined | 21:36 |
| → bgerber joined | 21:38 |
| → Superlokkus joined | 21:38 |
| ← dwmw2_gone left | 21:38 |
| → ChadStudmuffin joined | 21:38 |
| ← chrisgeorge left | 21:39 |
| ← hndrk left | 21:40 |
|
scwizard
| How do you convert a fork to a branch? Lets say Alice the developer clones the git repo at revision X and does his own work on things. Bob the maintainer wants to download Alice's changes and make them into a branch off of A named "Alice's branch" | 21:40 |
|
EugeneKay
| I think that could use a rewording | 21:40 |
| ← luxurymode left | 21:40 |
|
scwizard
| How do you convert a fork to a branch? Lets say Alice the developer clones the git repo at revision X and does her own work on things. Bob the maintainer wants to download Alice's changes and make them into a branch off of X named "Alice's branch" | 21:41 |
| ← lemonjelly left | 21:41 |
| → dwmw2_gone joined | 21:41 |
| ← axl_ left | 21:41 |
|
cmn
| those are completely different things | 21:41 |
|
scwizard
| (mangled the first try at that question) | 21:41 |
| ← corburn left | 21:41 |
|
EugeneKay
| scwizard - is it a github Fork? | 21:41 |
|
cmn
| a repo contains branches | 21:41 |
|
scwizard
| EugeneKay: no github isn't involved at all | 21:41 |
| → rehat joined | 21:42 |
| → lustucru joined | 21:42 |
|
cmn
| you can't convert the one into another, just as you can't transform a bucket into grains of salt | 21:42 |
| → axl_ joined | 21:42 |
| → WolWid joined | 21:42 |
|
EugeneKay
| scwizard - Bob would add Alice's repo, fetch it, then create a local branch from Alice's branch. | 21:42 |
|
| (add as a remote) | 21:42 |
| → skorgon joined | 21:42 |
|
scwizard
| yes that is what I want, how do you do that EugeneKay? | 21:43 |
| → w41_ joined | 21:43 |
|
EugeneKay
| scwizard - man git-remote; man git-fetch ;-) | 21:43 |
|
gitinfo
| scwizard: the git-remote manpage is available at http://git-scm.com/docs/git-remote.html | 21:43 |
|
| scwizard: the git-fetch manpage is available at http://git-scm.com/docs/git-fetch.html | 21:43 |
|
EugeneKay
| See also the !book chapter on remotes | 21:43 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable | 21:43 |
| → HG` joined | 21:43 |
| ← dstorrs left | 21:43 |
| → aspotashev joined | 21:43 |
| ← bartman left | 21:44 |
| ← chrisgeorge_ left | 21:44 |
|
scwizard
| EugeneKay: remote and fetch explain the first two steps. What about the third "create a local branch from from Alice's branch" | 21:44 |
|
| after you do a fetch, you have this "FETCH HEAD" thing or something | 21:44 |
|
| how to turn that into a branch off a particular revision? | 21:44 |
| ← w41 left | 21:44 |
|
EugeneKay
| Use the three-word fetch, not !fetch4 | 21:44 |
|
gitinfo
| [!fetchfour] Never use the four-word version of git-fetch or git-pull (e.g. git fetch remote refspec). It always ends in tears. Yes, if you understand the implications of FETCH_HEAD it can technically be done, but really it is easier to just fetch the whole remote (or perhaps edit the fetchspec if you never want other bits). If you must, see !fetch4why | 21:44 |
| ← raykyri left | 21:44 |
|
EugeneKay
| Use the third syntax in man git-checkout to create a new branch tracking Alice/Foo | 21:45 |
|
gitinfo
| the git-checkout manpage is available at http://git-scm.com/docs/git-checkout.html | 21:45 |
| → raykyri joined | 21:45 |
| → esc joined | 21:45 |
| ← esc left | 21:45 |
| → esc joined | 21:45 |
| → dstorrs joined | 21:45 |
|
scwizard
| so git checkout "Alice's branch" X creates a new branch named Alice's branch with X as its starting point | 21:46 |
| ← rcu left | 21:46 |
| ← juvenal left | 21:47 |
|
scwizard
| so basically you'd checkout that branch, then git pull alice's remote | 21:47 |
|
EugeneKay
| `git checkout -b AliceBranch Alice/Branch` | 21:47 |
|
| This sets the default push/pull location for AliceBranch as Alice. You will probably want to change this to origin. | 21:47 |
|
| .trigger_edit configfiles Best practice is to store an example config file and then copy+modify it when you install your app. If your config file must be tracked by git to deploy(eg, Heroku), see https://gist.github.com/1423106 for some workarounds | 21:48 |
|
gitinfo
| EugeneKay: Okay. | 21:48 |
|
scwizard
| EugeneKay: I'm confused. In this case the head when Alice cloned was X. So you want the starting point for alice's branch to be X right? | 21:48 |
| ← dwmw2_gone left | 21:48 |
|
EugeneKay
| scwizard - no; Bob is creating a local branch based upon Alice's remote branch. | 21:49 |
| → chrisgeorge joined | 21:49 |
|
scwizard
| yes, and the starting point of that remote branch is X right? | 21:49 |
|
EugeneKay
| Yes, but Bob's repo doesn't care about that. | 21:49 |
|
scwizard
| wait erm | 21:49 |
|
| bleh I typoed | 21:50 |
|
| well didn't | 21:50 |
|
| but | 21:50 |
| ← gfontenot left | 21:50 |
|
scwizard
| the starting point of the remote branch is X. So Bob wants to make the start point of the local branch X also | 21:50 |
|
EugeneKay
| git doesn't care where a branch forks from, only where it is. | 21:50 |
|
scwizard
| otherwise he'd have to do a merge right? | 21:50 |
| ← raykyri left | 21:50 |
| → TheLZA joined | 21:50 |
|
EugeneKay
| He will, when he merges AliceBranch back into X | 21:50 |
| ← dv310p3r left | 21:51 |
|
EugeneKay
| !tryit ;-) | 21:51 |
|
gitinfo
| [!tias] Try it and see™. You learn much more by experimentation than by asking without having even tried. If in doubt, make backups before you experiment (see !backup). http://sitaramc.github.com/1-basic-usage/tias.html may help with git-specific TIAS. | 21:51 |
|
scwizard
| I don't understand. If you don't change anything locally, then you do "git pull" then you don't have to merge right? | 21:51 |
| → dwmw2_gone joined | 21:51 |
|
EugeneKay
| git pull is fetch && merge. | 21:51 |
|
scwizard
| ok so what I mean when I say "you don't have to merge" is "you don't have to merge manually" | 21:52 |
|
EugeneKay
| If you haven't created any new commits then a fast-forward merge happens. There's no new commit created, but it's still a "merge" | 21:52 |
|
scwizard
| I see | 21:52 |
| ← Element9 left | 21:52 |
| → raykyri joined | 21:53 |
| ← hellopat left | 21:55 |
| ← TheLZA left | 21:57 |
| ← HG` left | 21:58 |
| HyperNerdV2 → conversationkill | 21:58 |
| ← Chappo left | 21:59 |
| conversationkill → HyperNerdV2 | 21:59 |
| → Chappo joined | 21:59 |
| ← dwmw2_gone left | 21:59 |
| → graphitemaster joined | 22:00 |
| → thursday joined | 22:00 |
| → oakdog8 joined | 22:01 |
| → alanp_ joined | 22:01 |
| → dwmw2_gone joined | 22:01 |
| ← thursday left | 22:01 |
| ← Jon-- left | 22:01 |
| ← opus left | 22:02 |
| → opus joined | 22:03 |
| → juvenal joined | 22:03 |
| ← bubbles10101 left | 22:04 |
| → resmo_ joined | 22:04 |
| → jaclinuxhelp joined | 22:04 |
| ← Destos left | 22:04 |
|
esc
| what does '+' mean in a gitolite config | 22:04 |
|
jaclinuxhelp
| i'm trying to add a submodule with | 22:04 |
| ← alanp left | 22:04 |
|
jaclinuxhelp
| git submodule add gitosis@myserver:library.git library | 22:04 |
|
| but ... it doesnt works | 22:04 |
|
| but, when i do | 22:05 |
|
| git submodule add gitosis@myserver:library.git PRUEBA | 22:05 |
|
| it works! | 22:05 |
| ← eletuchy_ left | 22:05 |
|
jaclinuxhelp
| any advice? is "library" a "reserved word" in git ? | 22:05 |
| → eletuchy joined | 22:06 |
|
scwizard
| bleh the phone lights just went up to 2 :( | 22:06 |
|
| I hope they don'te ver go up to three | 22:06 |
| → mutex joined | 22:06 |
|
imachuchu
| scwizard: I have no idea what you are talking about | 22:07 |
|
scwizard
| wrong channel :| | 22:07 |
|
imachuchu
| scwizard: do they go all the way to eleven? | 22:07 |
|
m1sc
| esc: + == allow non-fast-forward updates | 22:07 |
| ← resmo__ left | 22:08 |
| → kermit joined | 22:08 |
| ← dwmw2_gone left | 22:08 |
| ← Hasbro left | 22:08 |
| → ShooterMG joined | 22:09 |
| ← leeN left | 22:09 |
| oakdog8 → oakdog8_ | 22:10 |
| → nglorioso joined | 22:10 |
|
microcolonel
| http://magnifi.ca/photos/2012-08-04_12-13-23_36.jpg | 22:10 |
|
esc
| m1sc: so like in refspec | 22:10 |
| → oakdog8 joined | 22:10 |
|
esc
| m1sc: thanks | 22:10 |
| ← TeckniX left | 22:12 |
| ← revagomes left | 22:12 |
| → bubbles10101 joined | 22:13 |
| → dwmw2_gone joined | 22:13 |
| → codeFiend joined | 22:13 |
| → tinti_ joined | 22:13 |
| ← raykyri left | 22:14 |
| → cagedwisdom joined | 22:15 |
|
esc
| whats the deal again with debugging the ssh used by clone? | 22:15 |
| → schemula joined | 22:16 |
|
scwizard
| how can you merge changes made in a remote that was shallowly cloned if you can't fetch a shallowly cloned repo? | 22:16 |
| → cybersphinx joined | 22:16 |
| ← chrisgeorge left | 22:17 |
| → mcluskyd_ joined | 22:17 |
| → raykyri joined | 22:17 |
| ← WolWid left | 22:18 |
| ← mcluskydodallas left | 22:18 |
| ← vibhav left | 22:18 |
| → chrisgeorge joined | 22:18 |
| ← the_cybersphinx left | 22:18 |
| → nveid joined | 22:18 |
| → Shuro joined | 22:19 |
| ← dwmw2_gone left | 22:19 |
| → guide joined | 22:19 |
| ← netj left | 22:20 |
| → basepi joined | 22:20 |
| → _br_ joined | 22:20 |
| → dwmw2_gone joined | 22:20 |
| ← iamjarvo left | 22:21 |
| ← Guest68146 left | 22:21 |
| ← rehat left | 22:22 |
| ← shruggar left | 22:22 |
|
berndj
| scwizard, are you looking for a solution based on a particular flow, or would something based on git bundle work for you? | 22:22 |
|
imachuchu
| scwizard: the general concensous on that is "don't make changes on a shallow clone". Either convert it to a full clone, or pull out the patches and apply them on a full repo | 22:22 |
|
scwizard
| imachuchu: how do you pull out the patches? Patches are generally pulled out with a fetch and merge | 22:23 |
| ← Sym3tri left | 22:23 |
| ← nveid left | 22:24 |
|
berndj
| scwizard: or with format-patch. or bundles. | 22:24 |
| → nveid joined | 22:24 |
| → Destos joined | 22:24 |
|
berndj
| depends on what workflow constraints you need to observe | 22:25 |
| ← ShadeTornado left | 22:25 |
|
imachuchu
| berndj: bundle won't work (I know, I know, I'm normally the first person to suggest it) unless you want to create it from a full repo and then use that as a repo replacement (but then just make a full repo) | 22:25 |
|
scwizard
| what are the technical reasons a fetch and merge doesn't work with shallow clones? | 22:25 |
|
EugeneKay
| Because shallow clones are the children of Lucifer | 22:26 |
| → ShadeTornado joined | 22:26 |
|
berndj
| imachuchu, yeah, i wondered after i wrote that if the bundle would try to include one mega-commit to represent the entire repo to the point where the shallow clone begins | 22:26 |
| → aselder joined | 22:26 |
| ← _Vi left | 22:26 |
| ← Destos left | 22:26 |
|
berndj
| or maybe something else than that | 22:26 |
| ← dwmw2_gone left | 22:26 |
| → _Vi joined | 22:27 |
|
imachuchu
| scwizard: diff and patch (actually don't even touch git except to get the diff from the previous commit) | 22:27 |
| ← ppppaul left | 22:28 |
| → bogwonch joined | 22:28 |
|
imachuchu
| scwizard: http://www.linuxtutorialblog.com/post/introduction-using-diff-and-patch-tutorial | 22:28 |
|
scwizard
| EugeneKay: thinking about it, it should be theoretically possible for git to merge commits from a remote shallow clone | 22:28 |
| ← opus left | 22:28 |
| → Contexual joined | 22:28 |
| → btree joined | 22:28 |
|
scwizard
| of course there's that gap between theoretically possible and implemented | 22:28 |
| → lemonjelly joined | 22:29 |
|
berndj
| it's theoretically possible for CVS to have atomic commits :-/ | 22:29 |
| → AaronMT joined | 22:29 |
| ← raykyri left | 22:29 |
| ← towski left | 22:29 |
| → opus joined | 22:30 |
|
scwizard
| hehe | 22:30 |
| → maestrojed joined | 22:30 |
| → raykyri joined | 22:30 |
| → btree_ joined | 22:30 |
| → dwmw2_gone joined | 22:30 |
| ← btree_ left | 22:30 |
| ← Contexual left | 22:30 |
| ← ku left | 22:30 |
|
SwK
| anyone have a good example of a post update hook script to push a specific branch to another repo? | 22:31 |
| → ku joined | 22:31 |
|
imachuchu
| SwK: just looking at one actually, http://joemaller.com/990/ | 22:31 |
| ← raykyri left | 22:31 |
|
SwK
| sweet thanks imachuchu | 22:32 |
| ← dzonder left | 22:32 |
|
imachuchu
| SwK: well read it first, it seems really small (the page is about a specific workflow that just has a hook in it) | 22:32 |
| → Hunner joined | 22:32 |
|
Hunner
| Hi. Is it possible to use ansi escape codes to add color to git hooks? | 22:33 |
|
canton7
| SwK, !deploy has one | 22:33 |
|
gitinfo
| SwK: Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html | 22:33 |
| ← btree left | 22:33 |
| ← nglorioso left | 22:33 |
|
Hunner
| When I add the \033[36m etc. to my post-receive, it works when run by hand but shows the literal characters when run remotely | 22:33 |
|
SwK
| this is not for deployment its to make users lifes easier | 22:33 |
| → vibhav joined | 22:33 |
| vibhav → Guest69455 | 22:34 |
| ← specialGuest left | 22:35 |
|
SwK
| I'm the stable maintainer for FreeSWITCH, we have stable rev branches that only get bug/security fixes so it diverges from origin/master ... instead of making them have to switch to a branch and get everything they dont want, I just want to push the current stable maintained branch to a sep repo thats read only | 22:35 |
|
imachuchu
| SwK: (I think he meant it as an example only, not to say you were doing it wrong) | 22:35 |
| → ashirus joined | 22:35 |
|
SwK
| imachuchu: yeah some people try to do some stupid things w/ SCMs | 22:35 |
| ← opus left | 22:36 |
| ← dwmw2_gone left | 22:38 |
|
canton7
| yeah, I was using that as a link to the page which contains the hook I'm referring to, only | 22:38 |
|
SwK
| ahh ok | 22:38 |
| ← timthelion left | 22:38 |
| → madewokherd joined | 22:38 |
| ← gerard0 left | 22:39 |
| → dwmw2_gone joined | 22:40 |
| → lindenle joined | 22:40 |
| gitinfo set mode: +v | 22:40 |
|
lindenle
| What does ^{} mean in a git tag from ls-remote? | 22:41 |
|
cmn
| it's the target | 22:41 |
| ← aselder left | 22:41 |
|
grawity
| the commit object which the tag is pointing at, see man git rev-parse | 22:41 |
|
gitinfo
| the git-rev-parse manpage is available at http://git-scm.com/docs/git-rev-parse.html | 22:42 |
| → gerard0 joined | 22:42 |
| ← maestrojed left | 22:42 |
| → maestrojed joined | 22:42 |
| ← fayimora left | 22:42 |
| ← AaronMT left | 22:43 |
| → chriskon149 joined | 22:44 |
| → flaguy48 joined | 22:45 |
| → Sym3tri joined | 22:45 |
| → netj joined | 22:45 |
| → rehat joined | 22:45 |
| ← wolftankk left | 22:46 |
| → eigenburak joined | 22:47 |
| ← dwmw2_gone left | 22:48 |
| ← eigenburak left | 22:48 |
| ← skorgon left | 22:48 |
| ← bogwonch left | 22:48 |
| → bogwonch joined | 22:49 |
| → dwmw2_gone joined | 22:50 |
| → Jay_Levitt joined | 22:50 |
| ← nveid left | 22:51 |
| ← bogwonch left | 22:53 |
| → TheLZA joined | 22:53 |
| → chrisf|walrus joined | 22:54 |
| → nveid joined | 22:55 |
| ← andrewhl left | 22:56 |
| ← api left | 22:56 |
| ← lustucru left | 22:57 |
| → Lord_DeathMatch joined | 22:57 |
| → ashirus_ joined | 22:57 |
| ← dwmw2_gone left | 22:57 |
| ← john_anderson left | 22:58 |
| ← ashirus left | 22:58 |
| → specialGuest joined | 22:58 |
| ← gusnan left | 22:59 |
| ← Milossh left | 22:59 |
| ← maletor left | 22:59 |
| → dwmw2_gone joined | 22:59 |
| → unmanbearpig joined | 23:01 |
| → jez9999 joined | 23:01 |
| → maletor joined | 23:01 |
|
jez9999
| ok for some reason, "git tag --contains" isn't working as I'd expect | 23:01 |
| ← unmanbearpig left | 23:02 |
| → simesy joined | 23:02 |
|
jez9999
| I downloaded the Mono repo and I'm trying out "git tag --contains" for some commits that should DEFINITELY be contained in some tags, but i am getting no results | 23:02 |
|
| any idea what i could be doing wrong? | 23:02 |
|
| s/downloaded/cloned/ | 23:02 |
| → opus joined | 23:03 |
| → lustucru joined | 23:03 |
| ← lustucru left | 23:03 |
| → e0je joined | 23:04 |
| gitinfo set mode: +v | 23:04 |
| ← leila left | 23:04 |
| → iamjarvo joined | 23:04 |
|
jez9999
| ok for some reason, "git tag --contains" isn't working as I'd expect | 23:05 |
|
| I downloaded the Mono repo and I'm trying out "git tag --contains" for some commits that should DEFINITELY be contained in some tags, but i am getting no results | 23:05 |
|
| any idea what i could be doing wrong? | 23:05 |
|
| s/downloaded/cloned/ | 23:05 |
| ← chrisgeorge left | 23:05 |
| → Xizor joined | 23:06 |
| → Destos joined | 23:06 |
| ← Synthead left | 23:06 |
| ← e0je left | 23:07 |
| → e0je joined | 23:07 |
| ← chriskon149 left | 23:08 |
| ← dwmw2_gone left | 23:09 |
| ← e0je left | 23:09 |
| ← Gizmokid2005 left | 23:09 |
| ← maestrojed left | 23:09 |
| ← axl_ left | 23:09 |
| → e0je joined | 23:09 |
| ← adamm left | 23:10 |
| ← cybersphinx left | 23:10 |
| ← linoj left | 23:11 |
| ← ShadeTornado left | 23:12 |
| → dwmw2_gone joined | 23:12 |
| → raykyri joined | 23:12 |
| ← raykyri left | 23:13 |
| → ShadeTornado joined | 23:13 |
| ← ashirus_ left | 23:14 |
| ← Araxia left | 23:16 |
| ← berserkr left | 23:16 |
| → maestrojed joined | 23:17 |
| ← specialGuest left | 23:17 |
| → specialGuest joined | 23:17 |
| ← dwmw2_gone left | 23:18 |
| ← alanp_ left | 23:18 |
| ← etcetera left | 23:19 |
| → shruggar joined | 23:19 |
| → dwmw2_gone joined | 23:20 |
| ← iamjarvo left | 23:21 |
| → chriskon149 joined | 23:22 |
| → joules joined | 23:22 |
| → Esa joined | 23:22 |
| ← russt left | 23:23 |
|
joules
| hi, I have question. How are backups delt with? Just another repo? | 23:24 |
| ← eletuchy left | 23:24 |
| → john_anderson joined | 23:24 |
|
joules
| gitinfo | 23:24 |
|
| sorry | 23:24 |
| → ashirus joined | 23:24 |
| ← opus left | 23:25 |
| ← chriskon149 left | 23:25 |
|
joules
| so a git clone is just another repo? can one start developing with the clone? | 23:25 |
| ← SirCmpwn left | 23:26 |
| ← Jay_Levitt left | 23:26 |
| → opus joined | 23:26 |
| → Jay_Levitt joined | 23:26 |
| ← _Vi left | 23:26 |
| ← Anders_J left | 23:26 |
| → etcetera joined | 23:26 |
| → _Vi joined | 23:27 |
| ← shruggar left | 23:27 |
|
imachuchu
| joules: !backup and yes a clone is just another repo except with some extra remote things set up to easily push/pull from the original repo | 23:27 |
|
gitinfo
| joules: Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups | 23:27 |
| → praba joined | 23:28 |
|
imachuchu
| joules: as for backups I like bundles, but they aren't for everything | 23:28 |
| → russt joined | 23:28 |
|
joules
| ok cool thanks. | 23:28 |
| → highway900 joined | 23:28 |
| ← dwmw2_gone left | 23:29 |
| → dwmw2_gone joined | 23:29 |
| ← joules left | 23:30 |
| → eletuchy joined | 23:31 |
| → codeshah joined | 23:31 |
| → _W_ joined | 23:31 |
| ← nveid left | 23:33 |
| → nveid joined | 23:33 |
| → alanp joined | 23:33 |
| ← specialGuest left | 23:34 |
| ← zackiv31 left | 23:35 |
| ← lemonjelly left | 23:35 |
| ← drizzd left | 23:35 |
| ← scwizard left | 23:36 |
| ← orkz left | 23:36 |
| ← s0undt3ch_ left | 23:36 |
| ← mattalexx left | 23:37 |
| → RaceCondition joined | 23:37 |
| → leila joined | 23:38 |
| → bartman joined | 23:38 |
| ← dwmw2_gone left | 23:38 |
| ← nwest left | 23:38 |
| → dwmw2_gone joined | 23:40 |
| ← ehsan left | 23:40 |
| → fisted joined | 23:42 |
| ← leila left | 23:42 |
| → Psycho_pr joined | 23:43 |
| ← Psycho_pr2 left | 23:43 |
| ← maletor left | 23:44 |
| ← eletuchy left | 23:44 |
| → maletor joined | 23:45 |
| ← dr_lepper left | 23:45 |
| → ISF joined | 23:46 |
| ← alanp left | 23:47 |
| ← etcetera left | 23:47 |
| ← dwmw2_gone left | 23:47 |
| → s0undt3ch joined | 23:48 |
| → dwmw2_gone joined | 23:50 |
| → barrbrain joined | 23:51 |
| → etcetera joined | 23:51 |
| → lustucru joined | 23:52 |
| ← alexisabril left | 23:52 |
| ← ChadStudmuffin left | 23:53 |
| ← ShadeTornado left | 23:54 |
| → ShadeTornado joined | 23:55 |
| ← codetroll left | 23:56 |
| ← palithius left | 23:56 |
| → Sky[x] joined | 23:56 |
| ← giallu left | 23:57 |
| ← efreese left | 23:57 |
| ← Lord_DeathMatch left | 23:58 |
| ← arietis left | 23:58 |
| ← thiago left | 23:58 |
| ← dwmw2_gone left | 23:58 |
| → dwmw2_gone joined | 23:59 |
| ← imachuchu left | 23:59 |
| → whomp_ joined | 23:59 |