| 2014-03-05 |
| → Balliad joined | 00:00 |
| ← Gavrisimo left | 00:00 |
| → Droolio joined | 00:00 |
| → johnkevinmbasco joined | 00:00 |
| ← Exancillatus left | 00:00 |
| → Dreadnaught joined | 00:01 |
| ← Dreadnaught left | 00:01 |
| → Dreadnaught joined | 00:01 |
| ← ntio left | 00:01 |
| → Gavrisimo joined | 00:02 |
| ← chrisshattuck left | 00:03 |
| ← robbyoconnor left | 00:04 |
| → northfurr joined | 00:04 |
| ← northfurr left | 00:04 |
| → northfurr joined | 00:04 |
| ← Not_Whatever left | 00:04 |
| ← thiago left | 00:04 |
| ← rbartos left | 00:04 |
| → thiago joined | 00:04 |
| ← Gavrisimo left | 00:06 |
| ← harish_ left | 00:06 |
| → mizu_no_oto joined | 00:07 |
| → hahuang61 joined | 00:08 |
| → rbartos joined | 00:08 |
| → leeN joined | 00:08 |
| → srji joined | 00:08 |
| ← thiago left | 00:09 |
| → thiago joined | 00:10 |
| → ncthom91 joined | 00:10 |
| ← hahuang65 left | 00:11 |
| ← srji_ left | 00:12 |
| ← ncthom91_ left | 00:14 |
| → RichardJ joined | 00:14 |
| → rchavik joined | 00:14 |
| → fauxtoniche joined | 00:15 |
| → Kayra joined | 00:15 |
| → ben_alman joined | 00:15 |
| ← jaequery left | 00:15 |
| ← fauxtoniche left | 00:15 |
| → treaki__ joined | 00:16 |
| ← Kayra left | 00:16 |
| → tokik joined | 00:16 |
| ← mrpink left | 00:17 |
| → jatt joined | 00:17 |
| ← cfoch left | 00:17 |
| ← jatt left | 00:17 |
| → jatt joined | 00:17 |
| ← treaki_ left | 00:17 |
| → Kayra joined | 00:18 |
| → nszceta joined | 00:18 |
| → misterpink joined | 00:19 |
| ← ben_alman left | 00:19 |
| → nick108_ joined | 00:20 |
| ← wongon left | 00:20 |
| → mellernoia joined | 00:20 |
| → kcj joined | 00:21 |
| ← lolmaus left | 00:21 |
| ← noxd left | 00:21 |
| ← dagnachew left | 00:21 |
| ← Balliad left | 00:21 |
| → dagnachew joined | 00:22 |
| ← o9 left | 00:22 |
| → john2x joined | 00:22 |
| ← nick108 left | 00:23 |
| ← FatDarrel left | 00:24 |
| → jaequery joined | 00:25 |
| ← tplaner left | 00:26 |
| → ben_alman joined | 00:26 |
| → btree joined | 00:27 |
| ← hyperair left | 00:27 |
| ← merica left | 00:28 |
| → lindenle_ joined | 00:28 |
| ← ben_alman left | 00:30 |
| ← btree_ left | 00:31 |
| → infynyxx joined | 00:31 |
| ← maestrojed left | 00:31 |
|
hfp
| Hey, so I have a git repo. And I created another repo for a complete overhaul of the project. Now I would like to merge this new git repo into the complete_overhaul branch from the original repo. Is there a way to do that at all? | 00:31 |
| ← n-st left | 00:32 |
|
frogonwheels
| hfp: sure | 00:32 |
| → reskp joined | 00:33 |
|
frogonwheels
| hfp: Presumably you started the 'overhaul' repo from a clone of the original? | 00:33 |
|
hfp
| frogonwheels: No, that's what makes it tricky | 00:34 |
|
| frogonwheels: the overhaul was basically `rm -rf *` | 00:34 |
|
frogonwheels
| hfp: well that was (imho) a little strange... Do you know which point you deperated the overhaul from the original? | 00:34 |
| ← Orbitrix left | 00:35 |
|
Hello71
| if you don't care about history | 00:35 |
|
hfp
| frogonwheels: Well, I started over from scratch, i didn't reuse anything from the original version for the overhaul | 00:35 |
|
frogonwheels
| hfp: You can just push it up to the project -there's nothing that says you have to have just one initial commit in your repo | 00:35 |
|
Hello71
| hm... that might actually work | 00:35 |
| → Exancillatus joined | 00:35 |
| → Sabbath joined | 00:35 |
|
Hello71
| git push origin master:complete_overhaul | 00:35 |
| ← lithiumjake left | 00:35 |
|
frogonwheels
| hfp: this is one of those cases where it is not unreasonable to have them co-exisiting. | 00:36 |
| → pwnz0r joined | 00:36 |
|
hfp
| frogonwheels: How do you mean? Two separate repos? | 00:36 |
|
frogonwheels
| hfp: what I'm saying is that yo ucan have two separate trees in the one repo | 00:37 |
|
| hfp: in practice it would be silly to put 2 unrelated trees in the same upstream repo, but this is one of those cases where it makes sense. | 00:37 |
| ← AaronMT left | 00:37 |
|
hfp
| frogonwheels: Hmmm... So how would I do that? Clone the original project from bitbucket, replace all files and push it back? | 00:37 |
| ← reskp left | 00:38 |
|
frogonwheels
| hfp: if you want to start doing merges and stuff - I'm not sure of the point | 00:38 |
| ← koda left | 00:38 |
| ← infynyxx left | 00:38 |
|
frogonwheels
| hfp: just set the bitbucket as upstream and push it up. It all depends on the circumstances. Possibly some more information? | 00:38 |
| → woollyams joined | 00:39 |
|
frogonwheels
| hfp: Why does it need to be in the same repo? | 00:39 |
| → Orbitrix joined | 00:39 |
| ← Orbitrix left | 00:39 |
| tgummere` → tgummerer | 00:39 |
| ← lindenle_ left | 00:39 |
| ← nick108_ left | 00:39 |
| → Orbitrix joined | 00:39 |
| ← Orbitrix left | 00:39 |
| → Orbitrix joined | 00:40 |
|
hfp
| I have it up on a private repo on bitbucket. In my overhaul, I have two branches, one is for design_a and the other for design_b. I would somehow like to keep all of this in the same repo because they all belong to the same project. It's more like there was a v1.0 and now there is a v2.0 | 00:40 |
|
| ^ frogonwheels | 00:40 |
|
frogonwheels
| hfp: Do you need any interaction between the old and the new? | 00:40 |
|
hfp
| frogonwheels: No | 00:41 |
| → ehmatthes joined | 00:41 |
| → mikepack_ joined | 00:42 |
| ← jatt left | 00:42 |
| ← _xyro left | 00:42 |
| → sluther joined | 00:42 |
| ← joelroa left | 00:42 |
|
frogonwheels
| hfp: so just set the bitbucket repo as a remote on the new repo, and push up your new branch | 00:42 |
| ← Zaknefain left | 00:43 |
|
frogonwheels
| hfp: you might want to rename it locally first. | 00:43 |
| ← pfg left | 00:43 |
| → Zaknefain joined | 00:43 |
|
frogonwheels
| hfp: technically there's nothing wrong with having 'master' locally as 'overhaul' remotely, but in practice it gets confusing | 00:43 |
| ← robarelli left | 00:44 |
| → ivan\ joined | 00:44 |
|
frogonwheels
| hfp: in fact the handling of that kind of situation has improved dramatically over the last couple of year | 00:44 |
|
hfp
| frogonwheels: I'm confused, master on bitbucket isn't the same master as locally | 00:44 |
|
frogonwheels
| s | 00:44 |
|
| hfp: master is just a name. If you want clarity, rename your master locally to 'overhaul' or whatever, and push it up. | 00:45 |
|
hfp
| frogonwheels: Ok let me try that | 00:45 |
|
frogonwheels
| This is how you would have local and remote as different names (possibly with -u ) <Hello71> git push origin master:complete_overhaul | 00:45 |
|
| hfp: but I would suggest that it's unnecesarily confusing. | 00:46 |
| ← Exancillatus left | 00:46 |
| ← mikepack_ left | 00:47 |
| ← woollyams left | 00:47 |
| ← Orbitrix left | 00:47 |
| ← Zaknefain left | 00:48 |
| ← budrose left | 00:48 |
| ← Kayra left | 00:49 |
| → lolmaus joined | 00:49 |
| → woollyams joined | 00:50 |
| ← specious left | 00:50 |
| ← kcj left | 00:50 |
| ← bwreilly left | 00:50 |
| ← polyzen left | 00:51 |
| ← rbartos left | 00:52 |
| ← nZac left | 00:52 |
| → ntio joined | 00:53 |
|
ntio
| hi, how do I make git diff wrap lines? | 00:53 |
| → Orbitrix joined | 00:53 |
| ← Orbitrix left | 00:54 |
|
frogonwheels
| ntio: it should afaik. are you piping it ? | 00:54 |
|
ntio
| nope | 00:54 |
| → Orbitrix joined | 00:54 |
|
ntio
| ok, solved | 00:54 |
|
| GIT_PAGER='' git diff | 00:54 |
|
| not sure what it does though! | 00:54 |
|
frogonwheels
| ntio: do you know what a 'pager' is? | 00:55 |
|
| !pager | 00:55 |
|
| worth a try | 00:55 |
|
Hello71
| !less | 00:55 |
|
gitinfo
| [!detached] A detached HEAD(aka "no branch") occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach | 00:55 |
|
Hello71
| hm, no | 00:55 |
|
| !more | 00:55 |
|
| darn. | 00:55 |
|
frogonwheels
| ntio: The system PAGER is the 'more' program (or 'less') that is used for piping output to by default. | 00:55 |
| ← drodger left | 00:55 |
|
frogonwheels
| ntio: GIT_PAGER='' git diff runs git diff with no pager. | 00:56 |
|
ntio
| makes sense! It's probably OSX which messes things up | 00:56 |
|
| as always | 00:56 |
|
frogonwheels
| ntio: you could try using 'less' as a pager if you have it. | 00:56 |
|
| ntio: (less is more, in case you didn't know) | 00:57 |
| → joelroa joined | 00:57 |
|
ntio
| Yup :) | 00:57 |
|
| oh, nice! | 00:58 |
| → drodger joined | 00:58 |
|
ntio
| This works perfectly, now everything is not thrown at me at once | 00:58 |
| ← SocalNick left | 00:58 |
|
frogonwheels
| ntio: you might want to use the option that doesn't invoke paging if there's less than a page | 00:58 |
| → cads joined | 00:58 |
| ← johnkevinmbasco left | 00:59 |
|
ntio
| Trust me, my diffs are huge | 00:59 |
| ← xsbeats left | 00:59 |
|
Vampire0
| That should be gits default behaviour, using less with options FRSX | 00:59 |
|
frogonwheels
| ntio: yeah but pager is used for more than diffs | 00:59 |
|
| Vampire0: thanks | 00:59 |
|
ntio
| wait | 01:00 |
|
| actually when I use less, it's not wrapped again! | 01:00 |
|
| uhh | 01:00 |
|
frogonwheels
| ntio: use a better terminal? | 01:00 |
| → mrhooray joined | 01:00 |
| ← scelis left | 01:00 |
| ← mikecmpbll left | 01:00 |
|
Vampire0
| That's not a matter of terminal | 01:01 |
|
frogonwheels
| ntio: ahh.. remove -S | 01:01 |
|
| ntio: read the manpage | 01:01 |
|
Vampire0
| As I said, git by default uses less with FRSX | 01:01 |
|
frogonwheels
| ntio: less -FRX | 01:01 |
|
| for the default | 01:01 |
|
Vampire0
| One of those options prevents linebreak | 01:01 |
|
frogonwheels
| yeah, it's S | 01:01 |
|
Vampire0
| read man git config | 01:01 |
|
gitinfo
| the git-config manpage is available at http://jk.gs/git-config.html | 01:01 |
|
Vampire0
| and search for LESS | 01:01 |
| → enigmus joined | 01:01 |
|
Vampire0
| It will explain how to get rid of one of those options if you don't want to have them ntio | 01:02 |
|
ntio
| Got it! Thank you guys | 01:02 |
|
frogonwheels
| Vampire0: ++ | 01:02 |
| ← mrhooray left | 01:02 |
| → mrhooray joined | 01:02 |
| ← becks__ left | 01:04 |
| → recycle joined | 01:04 |
| ← mrhooray left | 01:04 |
| ← mizu_no_oto left | 01:05 |
| ← not_a_guest left | 01:07 |
| ← robustus left | 01:08 |
| ← vu left | 01:08 |
| ← ehmatthes left | 01:08 |
| ← dmarkham left | 01:09 |
| → robustus joined | 01:11 |
| → xsbeats joined | 01:12 |
| ← axl_ left | 01:13 |
| → rbartos joined | 01:16 |
| → Kayra joined | 01:17 |
| ← freestyl3r left | 01:18 |
| ← blackmesa left | 01:19 |
| → freestyl3r joined | 01:19 |
| ← gnugnu8_ left | 01:21 |
| → codeFiend joined | 01:22 |
| → Zaknefain joined | 01:24 |
| → not_a_guest joined | 01:25 |
| ← ErKa left | 01:25 |
| → robbyoconnor joined | 01:26 |
| → ben_alman joined | 01:26 |
| ← beyondcreed_ left | 01:26 |
| ← rchavik left | 01:26 |
| → nZac joined | 01:28 |
| → harish_ joined | 01:28 |
| ← Zaknefain left | 01:28 |
| → hyperair joined | 01:29 |
| ← godgodgodgo left | 01:29 |
| ← xsbeats left | 01:30 |
| ← ben_alman left | 01:30 |
| → mvensky joined | 01:30 |
| ← hahuang61 left | 01:31 |
| → fairuz joined | 01:31 |
| → Dougie187 joined | 01:34 |
| → scelis joined | 01:34 |
| → sohail joined | 01:35 |
| ← sohail left | 01:35 |
| → sohail joined | 01:35 |
| ← nZac left | 01:36 |
| → mizu_no_oto joined | 01:36 |
| ← Bombe left | 01:36 |
| ← dort left | 01:36 |
| → Wulf joined | 01:39 |
|
Wulf
| hi | 01:40 |
| → koell joined | 01:40 |
|
Wulf
| a git repo is owned by some user account. Can I somehow keep root from messing with the repo? | 01:41 |
| → lindenle_ joined | 01:42 |
| ← shruggar left | 01:42 |
|
ojacobson
| can you keep root from writing to any other files on the filesystem? | 01:43 |
|
Wulf
| ojacobson: no, but that's not the question | 01:44 |
| → zumba_addict joined | 01:44 |
|
ojacobson
| Wulf: it is, however, the answer | 01:44 |
|
Wulf
| no | 01:44 |
|
ojacobson
| git, whenever you're not actually running a `git` subcommand, is just files | 01:44 |
| → ErKa joined | 01:45 |
| ← multi_io left | 01:45 |
| ← Kayra left | 01:45 |
|
ojacobson
| (those files aren't even terribly complex; you could probably reimplement git's internals on a case of soda) | 01:45 |
|
Wulf
| okay, root is using the git command. Can the git command check if the acting user is root and refuse to do anything? | 01:45 |
| → dort joined | 01:45 |
| ← SilverBln left | 01:45 |
|
ojacobson
| Why would that matter? It would be trivial to remove that check. | 01:45 |
|
Wulf
| that would be okay | 01:45 |
|
ojacobson
| Which root can do, because root controls the entire computer. | 01:45 |
|
Wulf
| just got some users who use the root account | 01:46 |
|
ojacobson
| Why do people run so many things as root that this is even an issue? | 01:46 |
| → SilverBln joined | 01:46 |
|
Wulf
| historical reasons, trying to fix it | 01:46 |
|
ojacobson
| Restricting root's access is actually not a crazy idea, but it's not practical for *git* to do that. You'd have to run git on an OS with a more granular permissions system. | 01:46 |
| ← luxgeek left | 01:46 |
|
ojacobson
| On unix and linux, using sudo when and only when you need root is a better compromise, I think | 01:46 |
| → multi_io joined | 01:46 |
| flazz_gone → flazz | 01:46 |
|
ojacobson
| being logged in as root on a regular basis is a major ops red flag :) | 01:46 |
| → noisewaterphd_ joined | 01:47 |
| flazz → flazz_gone | 01:47 |
| ← scarabx left | 01:47 |
| ← scelis left | 01:48 |
| → Bombe joined | 01:48 |
| ← jaequery left | 01:49 |
| ← ErKa left | 01:49 |
|
Vampire0
| ojacobson, I don't think Wulf thinks different because you are completely right. But often this is not easily fixable, I've seen enough similar situations | 01:50 |
|
Wulf
| right now I can't control logins as root | 01:51 |
|
| people login as root out of convenience | 01:51 |
| ← mizu_no_oto left | 01:52 |
|
ojacobson
| Vampire0: likely so | 01:52 |
|
| talking about the underlying theory of *why* git can't do what he wants is hopefully more useful than simply telling him "no" | 01:52 |
| ← kballou left | 01:53 |
|
Wulf
| ojacobson: you didn't yet tell me why it can't do it ;-) | 01:53 |
|
| I understand that git can't ultimately *enforce* it | 01:53 |
|
ojacobson
| It can't do it because there's no point | 01:53 |
|
| total waste of developer time | 01:53 |
|
Wulf
| well, there might be workarounds | 01:53 |
|
ojacobson
| if you think it should make an effort anyways, I'm sure the mailing list would love to review your patch :) | 01:54 |
|
Wulf
| haha ;) | 01:54 |
|
ojacobson
| You might get more traction with a patch that introduced a "don't run this as root, you moron" advice | 01:54 |
| ← zackiv31 left | 01:54 |
|
Wulf
| e.g. is it right that I can't add git aliases for existing commands? | 01:54 |
|
ojacobson
| (man git-config has a list of other advices) | 01:54 |
|
gitinfo
| the git-config manpage is available at http://jk.gs/git-config.html | 01:54 |
| ← sohail left | 01:55 |
| ← thiago left | 01:55 |
| ← dort left | 01:56 |
| ← lifelike left | 01:57 |
| → mizu_no_oto joined | 01:57 |
| → bwreilly joined | 01:57 |
| → lifelike joined | 01:57 |
| ← ncthom91 left | 01:58 |
| → cfoch joined | 01:58 |
| ← robbyoconnor left | 01:58 |
| → robbyoconnor joined | 01:58 |
|
Vampire0
| Wulf, actually it is quite easy to prevent root from committing | 02:00 |
|
| But only as a reminder of course, it costs root only a second to work-around it | 02:01 |
|
| Just add the following to a pre-commit hook: | 02:01 |
|
Wulf
| Vampire0: really? how? | 02:01 |
|
Vampire0
| if [ "x$USER" == "xroot" ]; then echo "Go away root and come back as user"; exit 1; fi | 02:01 |
| ← bwreilly left | 02:01 |
| → luc_ joined | 02:01 |
|
Vampire0
| At least that works for one repository | 02:02 |
| → robarelli joined | 02:02 |
|
Wulf
| thanks, will look into it. Never worked with hook before | 02:02 |
| → daito joined | 02:02 |
| → danman joined | 02:03 |
| → FabTG joined | 02:03 |
| flazz_gone → flazz | 02:03 |
| ← woollyams left | 02:04 |
| flazz → flazz_gone | 02:04 |
| → bwreilly joined | 02:04 |
| ← robbyoconnor left | 02:05 |
| flazz_gone → flazz | 02:05 |
| → woollyams joined | 02:05 |
| → DolpheenDream joined | 02:07 |
|
Vampire0
| yw | 02:08 |
| ← fairuz left | 02:08 |
| → fairuz joined | 02:08 |
| → scarabx joined | 02:09 |
| ← codeFiend left | 02:09 |
| ← woollyams left | 02:10 |
| → dzho joined | 02:10 |
| → sohail joined | 02:10 |
| ← sohail left | 02:10 |
| → sohail joined | 02:10 |
| ← CodeShark left | 02:10 |
| ← nfk left | 02:12 |
| → weiyang joined | 02:12 |
| → dhilipsiva joined | 02:13 |
| ← teran left | 02:15 |
| → tmcmahon joined | 02:16 |
| ← knownasilya left | 02:16 |
| → ErKa joined | 02:17 |
| ← koglinjg left | 02:17 |
| → Zaknefain joined | 02:18 |
| → jeek joined | 02:18 |
| → Vampire0_ joined | 02:18 |
| ← cfoch left | 02:19 |
| → Dougie2187 joined | 02:19 |
| ← sdouglas_ left | 02:20 |
| → sdouglas joined | 02:20 |
| → wongon joined | 02:20 |
| ← Vampire0 left | 02:22 |
| → buffal0 joined | 02:22 |
| ← Zaknefain left | 02:22 |
| → Annak joined | 02:22 |
| gitinfo set mode: +v | 02:22 |
| → TylerE joined | 02:23 |
| ← multi_io left | 02:23 |
| ← SilverBln left | 02:23 |
|
TylerE
| Need advise on a workflow. Have working tree on local machine and remote (Which is actually a VM on the local machine). I push and pull from both sides. IDE on local also pushes to the remote end | 02:23 |
| → SilverBln joined | 02:23 |
|
TylerE
| How can I do a pull on the remote end and have it "force success" | 02:23 |
|
| e.g. ignore "untracked files" (which will still be there because they'll be in the pull) | 02:24 |
|
| (and no, the answer isn't to turn off uploads in my IDE) | 02:24 |
| ← tokik left | 02:24 |
| flazz → flazz_gone | 02:24 |
| flazz_gone → flazz | 02:24 |
| ← Diemuzi left | 02:24 |
|
ojacobson
| nil | 02:25 |
| → multi_io joined | 02:25 |
|
ojacobson
| git will blankly refuse to check out a commit or initiate a merge if that would overwrite uncommited changes or untracked files; such an operation would destroy data | 02:25 |
| ← wongon left | 02:25 |
|
ojacobson
| even if in some edge cases that data is safe to destroy, in the general case it's not | 02:25 |
| ← recycle left | 02:25 |
|
ojacobson
| you can obliterate the uncommitted changes yourself, obviously, or commit them first | 02:25 |
|
TylerE
| yea, but I want some way to do it automatically | 02:26 |
| ← ntio left | 02:26 |
|
TylerE
| basically the remote site doesn't matter, except when I explicitly do a commit-and-push | 02:26 |
|
| (basically when I have files created by a CLI util on the remote side that I need to pull back into my dev copy) | 02:26 |
|
| I mean, I can do a stash each time but it's a PITA | 02:26 |
| Annak → Diemuzi | 02:27 |
| → bobdobbs joined | 02:28 |
|
bobdobbs
| hey guys. I'm coding in sass. my sass and css are under version control. I've got a branch called 'colours'. I've been hacking my colour scheme in that branch. | 02:29 |
| → recycle joined | 02:29 |
|
bobdobbs
| at the moment 'colours' and 'master' are in obviously different states. | 02:30 |
|
| If I switch between these branches, my site look obviously different. I want to use the version of my sass that is in 'colours' | 02:30 |
| → NBhosting joined | 02:30 |
|
bobdobbs
| but if I switch to 'master' and do 'merge colours', git tells me "nothing to commit (working directory clean)" | 02:31 |
| ← lindenle left | 02:31 |
|
ojacobson
| Can you !repro the command, and the output of !lol ? | 02:31 |
|
gitinfo
| Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting. | 02:31 |
|
| A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all | 02:31 |
| → lindenle joined | 02:32 |
| ← yhager left | 02:32 |
|
bobdobbs
| from master: http://hastebin.com/repufunuhu.vbs | 02:32 |
| ← bwreilly left | 02:32 |
| ← axsuul left | 02:32 |
| ← recycle left | 02:33 |
| → axsuul joined | 02:33 |
|
fairuz
| Looks like you already merged colours | 02:33 |
|
bobdobbs
| ojacobson: which command do you mean? | 02:33 |
| ← oskarkv left | 02:33 |
|
ojacobson
| !lol | 02:34 |
|
gitinfo
| A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all | 02:34 |
| → rchavik joined | 02:34 |
|
ojacobson
| but skip it | 02:34 |
|
| line one of your hastebin post has a bit of a dead giveaway in it | 02:34 |
| → reskp joined | 02:34 |
| ← lindenle left | 02:35 |
| → Goplat joined | 02:35 |
| ← _ikke_ left | 02:35 |
| → joemcgill joined | 02:35 |
| → yhager joined | 02:35 |
|
bobdobbs
| ojacobson: is that a record of a merge taking place? | 02:36 |
|
ojacobson
| it is. | 02:36 |
| → _ikke_ joined | 02:36 |
| → ben_alman joined | 02:36 |
|
bobdobbs
| so how can I figure out what went wrong with that merge? | 02:37 |
| techfilmer → ^s | 02:37 |
|
bobdobbs
| or even better, how do I merge the code from 'colours' into master?\ | 02:37 |
| ← sohail left | 02:38 |
| ← pwnz0r left | 02:38 |
| ← reskp left | 02:39 |
| ← fairuz left | 02:40 |
| ← jorn left | 02:40 |
| → sohail joined | 02:40 |
| ← buffal0 left | 02:40 |
| → dreiss joined | 02:41 |
|
bobdobbs
| actually, I think I figured it out. I'll just switch to the colours branch, copy the file, switch to master and paste. | 02:41 |
| ← mvensky left | 02:41 |
|
bobdobbs
| I'm sure that that's an ugly solution. but I reckon it'll work | 02:41 |
| → fairuz joined | 02:41 |
| → thiago_ joined | 02:42 |
| ← fairuz left | 02:42 |
| → fairuz joined | 02:42 |
| ← ben_alman left | 02:42 |
| ← rbartos left | 02:43 |
| ← ErKa left | 02:44 |
| → Exancillatus joined | 02:44 |
| → thiago__ joined | 02:45 |
| ← thiago__ left | 02:46 |
| → monokrome joined | 02:46 |
| → thiago__ joined | 02:46 |
| ← thiago_ left | 02:46 |
| thiago__ → thiago | 02:47 |
| ← dougsland left | 02:47 |
| ← unixpro1970 left | 02:48 |
| → chrisshattuck joined | 02:48 |
| ^s → should | 02:48 |
| ← Samual left | 02:48 |
| ← Exancillatus left | 02:49 |
| → lindenle joined | 02:49 |
| → Gamecubic joined | 02:50 |
| → robbyoconnor joined | 02:50 |
| → nadirvardar joined | 02:51 |
| ← ojacobson left | 02:51 |
| ← madewokherd left | 02:52 |
| ← joemcgill left | 02:53 |
| → ehmatthes joined | 02:54 |
| → Samual joined | 02:55 |
| → tokik joined | 02:55 |
| ← freestyl3r left | 02:55 |
| ← jayallen left | 02:55 |
| ← sohail left | 02:56 |
| → freestyl3r joined | 02:56 |
| ← m0viefreak left | 02:56 |
| → wongon joined | 02:57 |
| should → ^s | 02:57 |
| ← mellernoia left | 02:57 |
| ← nadirvardar left | 02:57 |
| → githogori joined | 02:57 |
| ← alvaro_o left | 02:57 |
| → mikepack_ joined | 02:57 |
| → l0x3py joined | 02:59 |
| → nadirvardar joined | 02:59 |
| ← lindenle_ left | 03:00 |
| ← marcjs left | 03:00 |
| ← wongon left | 03:01 |
| ← ehmatthes left | 03:01 |
| → mani2399 joined | 03:01 |
| ← mani2399 left | 03:01 |
| ← robarelli left | 03:02 |
| → woollyams joined | 03:04 |
| ← enigmus left | 03:04 |
| → shingshang joined | 03:04 |
| → el3ctron joined | 03:05 |
| ← tmcmahon left | 03:06 |
| → vkrest_ joined | 03:06 |
| ← woollyams left | 03:07 |
| ← nlogn left | 03:07 |
| → woollyams joined | 03:07 |
| → konr joined | 03:08 |
| → Rastus_Vernon joined | 03:08 |
| → jaequery joined | 03:08 |
| ← jaequery left | 03:08 |
| ← Noldorin left | 03:08 |
| → jaequery joined | 03:09 |
| ← jaequery left | 03:09 |
| → mani2399 joined | 03:09 |
| ← mani2399 left | 03:09 |
| ← werlley left | 03:09 |
| → teran joined | 03:09 |
|
rawtaz
| guys, i cloned a repo from github. then i fixed a bug in a file, and now i want to contribute this back. so i forked the repo on github, and then i removed the origin remote from that first cloned repo. i then added it back but with the name "upstream" instead (realizing i could just have renamed it) | 03:09 |
| → jaequery joined | 03:09 |
| ← yhager left | 03:10 |
| ← vkrest left | 03:10 |
|
rawtaz
| then i also added my fork on github as the 'origin' remote | 03:10 |
|
| i have a feeling there's some more command i should run to make things be as if i had cloned from my fork originally. setting some default push thing, right? | 03:10 |
|
| its not *required* to be able to push, but i want to understand what's needed to make the setup just like if i had cloned my fork instead | 03:11 |
| ← vkrest_ left | 03:11 |
| ← Gamecubic left | 03:11 |
| ← noisewaterphd_ left | 03:11 |
|
OMGOMG
| what are you actually trying to do? | 03:11 |
| → Gamecubic joined | 03:11 |
|
rawtaz
| OMGOMG: what i wrote above | 03:12 |
|
OMGOMG
| what is your goal | 03:12 |
| ← teran left | 03:12 |
|
rawtaz
| i really dont know how to word it differently.. | 03:12 |
|
| let me try then. | 03:12 |
| → Zaknefain joined | 03:12 |
| → mdub joined | 03:12 |
|
OMGOMG
| perhaps you could link the repo and show what is wrong | 03:12 |
| ← woollyams left | 03:12 |
| ← mikepack_ left | 03:12 |
| ← francesca left | 03:13 |
|
rawtaz
| there's nothing wrong | 03:13 |
|
| nothing is not working with it | 03:13 |
| → mikepack_ joined | 03:13 |
| → sambae joined | 03:13 |
| ← danman left | 03:13 |
|
OMGOMG
| great | 03:13 |
|
rawtaz
| in a way | 03:14 |
| ← sdouglas left | 03:15 |
|
rawtaz
| of the things i wrote above, what parts are unclear? | 03:15 |
| ← simesy left | 03:16 |
| Vampire0_ → Vampire0 | 03:16 |
| → mani2399 joined | 03:16 |
| ← mani2399 left | 03:16 |
|
Vampire0
| rawtaz, the easiest would be to just clone your fork and compare the configs for unequiality | 03:16 |
| → sdouglas joined | 03:16 |
| ← Zaknefain left | 03:17 |
|
Vampire0
| Other than that, I think the only thing that could be needed to change is if you had some remote tracking branches setup | 03:17 |
|
| git config --get-regexp branch.* | 03:17 |
| ← mik3y left | 03:17 |
| → noisewaterphd_ joined | 03:17 |
|
rawtaz
| yeah i really havent done anything to the local repo except modifying that file, deleting origin, adding back another remote as origin, and adding the previous origin as upstream :) | 03:17 |
| ← mikepack_ left | 03:18 |
| → sdouglas_ joined | 03:18 |
| ← SilverBln left | 03:18 |
|
rawtaz
| thanks for the tip of comparing configs. they're almost the same | 03:18 |
|
Vampire0
| Those you can either update manually, or on explicit push with -u | 03:19 |
|
| yeah, they should | 03:19 |
|
| besides the second remote | 03:19 |
|
rawtaz
| thats the one i was having in mind, what -u does | 03:19 |
|
| cool | 03:19 |
| ← bobdobbs left | 03:20 |
| → mikepack_ joined | 03:20 |
| ← harish_ left | 03:21 |
| ← sdouglas_ left | 03:21 |
| ← sdouglas left | 03:21 |
| → harish joined | 03:21 |
| → sdouglas joined | 03:21 |
|
Vampire0
| That should be the branch.<name>.... things iirc | 03:22 |
| → xMYTHICx joined | 03:22 |
| → mikepa___ joined | 03:23 |
| ← Devels left | 03:23 |
| ← RaceCondition left | 03:23 |
| ← xMYTHICx left | 03:24 |
| ← cwillu_at_work left | 03:24 |
| → xsbeats joined | 03:25 |
| ← mikepack_ left | 03:25 |
| ← joelm left | 03:26 |
| ← sdouglas left | 03:26 |
| → mani2399 joined | 03:26 |
| ← mani2399 left | 03:27 |
|
rawtaz
| Vampire0: i take it you mean the two lines remote = origin and merge = refs/heads/devel that were deleted from under the [branch "devel"] in the config, when i removed and added the old and new origin? | 03:27 |
|
| i.e. that is what you're talking about | 03:27 |
| → gasull2 joined | 03:29 |
| ← TylerE left | 03:29 |
|
rawtaz
| yeah | 03:29 |
| ← WaReZ left | 03:29 |
| → sdouglas joined | 03:30 |
| ← gasull2 left | 03:30 |
| → gasull joined | 03:31 |
| ← mikepa___ left | 03:31 |
| → mikepack joined | 03:31 |
| ← gasull left | 03:31 |
| ← lifelike left | 03:33 |
| → mani2399 joined | 03:33 |
| ← mani2399 left | 03:33 |
| → lifelike joined | 03:33 |
| → simesy joined | 03:33 |
| → mani2399 joined | 03:33 |
| ← mani2399 left | 03:33 |
| → lindenle_ joined | 03:34 |
| → reskp joined | 03:35 |
| ← mikepack left | 03:35 |
| → yacks joined | 03:35 |
| → tomengland joined | 03:36 |
| ← koell left | 03:36 |
| ← dagnachew left | 03:36 |
| → madewokherd joined | 03:36 |
| → sethwklein joined | 03:37 |
| ← arnihr left | 03:37 |
| → mribeirodantas joined | 03:37 |
| ← Zifre left | 03:38 |
| → Cache_Money joined | 03:39 |
| ← reskp left | 03:40 |
| ← scarabx left | 03:40 |
| ← rq60 left | 03:41 |
| ← _iron left | 03:43 |
| ← howitdo left | 03:43 |
| → fluter joined | 03:44 |
| → axl_ joined | 03:44 |
| → Exancillatus joined | 03:44 |
| → jason237 joined | 03:46 |
|
Cache_Money
| I've added some aliases to my ~/.bashrc file. When I quit my terminal they aren't available anymore. What am I doing wrong? | 03:47 |
| → recycle joined | 03:48 |
|
rawtaz
| are you opening a new terminal? | 03:49 |
| ← Exancillatus left | 03:49 |
| → dserodio joined | 03:49 |
|
thiago
| Cache_Money: are you saying that the ~/.bashrc file resets? | 03:50 |
|
| Cache_Money: how did you load the aliases in the shell before you quit it? | 03:50 |
| → danman joined | 03:51 |
|
Cache_Money
| thiago: No, I just wasn't aware that I need to source ~/.bashrc every time I open a new terminal | 03:51 |
|
| is there any way to do this automatically? | 03:51 |
| ← danman left | 03:51 |
| → Devels joined | 03:51 |
|
offby1
| bash is supposed to read that file when it starts. | 03:51 |
|
thiago
| Cache_Money: you can read your shell's manual to figure that out | 03:51 |
|
Cache_Money
| offby1: bashrc or bash_profile? | 03:51 |
|
thiago
| either how to make it read that file or what file it already reads | 03:51 |
|
| my guess is that your terminal launches bash in such a way that it doesn't read ~/.bashrc | 03:52 |
| → synbyte joined | 03:52 |
|
thiago
| not a #git question, though... | 03:52 |
| ← makubi left | 03:52 |
| → Caelum joined | 03:52 |
| ← hochmeis_ left | 03:52 |
| → TheMoonMaster joined | 03:53 |
|
variable
| is it possible to set multiple upstreams for a default push? | 03:53 |
|
thiago
| no | 03:53 |
|
ashooby
| Cache_Money: if you're using OS X apparently it uses the .bash_profile instead of .bashrc | 03:53 |
|
Cache_Money
| thiago: I had to put "source ./bashrc" within my .bash_profile file | 03:53 |
|
ashooby
| so, just put . .bashrc in .bash_profile | 03:54 |
|
Cache_Money
| thiago: you're right. Originally I thought it was. Sorry | 03:54 |
| → makubi joined | 03:54 |
|
Cache_Money
| ashooby: correct... I'm on OS X | 03:54 |
|
ashooby
| Cache_Money: it sounds like you got it just before me :) | 03:55 |
|
thiago
| it's explained in the bash manual, by the way | 03:55 |
|
| if it's interactive, it reads ~?.bash_profile; if it's not interactive, it reads ~/.bashrc | 03:55 |
|
| sorry | 03:55 |
|
| when it's interactive and login, it reads ~/.bash_profile; if it's interactive but not login, it reads ~/.bashrc | 03:55 |
| ← joelroa left | 03:55 |
| ← Dougie187 left | 03:56 |
| ← Dougie2187 left | 03:56 |
| ← moisan` left | 03:56 |
| → yhager joined | 03:56 |
| ← Wulf left | 03:56 |
| ← mribeirodantas left | 03:56 |
| ← mizu_no_oto left | 03:57 |
| → hochmeister joined | 03:57 |
| → howitdo joined | 03:57 |
| ← craigp left | 03:57 |
| → macrover joined | 03:58 |
| ← lindenle_ left | 03:58 |
| → Wulf joined | 03:58 |
| → scarabx joined | 03:59 |
| → saurabh joined | 03:59 |
| saurabh → Guest95422 | 04:00 |
|
variable
| Cache_Money: don't use source ~/.bashrc; if you need that you are doing it wrong | 04:02 |
|
Cache_Money
| variable: why? | 04:02 |
| ← shingshang left | 04:02 |
|
variable
| Cache_Money: bash will read every file it needs to read at startup | 04:02 |
|
| there is a difference between .bashrc and .bash_profile | 04:03 |
|
| and they should not be conflated | 04:03 |
|
| (consider things like running gpg-agent or ssh-agent only on startup; there are additional reasons) | 04:03 |
|
| Cache_Money: carefully read the man page when deciding which file to sue | 04:03 |
| → aviraldg joined | 04:03 |
| → RaceCondition joined | 04:03 |
|
ashooby
| the .bash_profile in every system I've ever used have included a '. .bashrc' in the .bash_profile | 04:03 |
|
rawtaz
| meep | 04:04 |
| → pwnz0r joined | 04:05 |
| → Tuna-Fish joined | 04:05 |
| → hahuang61 joined | 04:06 |
| ← unknwn- left | 04:06 |
| → Zaknefain joined | 04:06 |
| ← yhager left | 04:06 |
| → [aviraldg] joined | 04:07 |
|
ashooby
| variable: maybe try this? http://stackoverflow.com/questions/4255865/git-push-to-multiple-repositories-simultaneously | 04:07 |
| ← [aviraldg] left | 04:08 |
|
fluter
| hi, is there git rpm for centos 6.5? | 04:09 |
| → [aviraldg] joined | 04:09 |
|
fluter
| the git 1.7.1 is too old | 04:09 |
| ← nszceta left | 04:10 |
| → phy1729 joined | 04:10 |
| ← nfroidure left | 04:10 |
| ← aviraldg left | 04:10 |
|
thiago
| fluter: build from sources if you can't find compatible RPMs elsewhere | 04:10 |
| → teran joined | 04:10 |
|
phy1729
| What if I want to start a commit line with a # ? | 04:10 |
| ← Zaknefain left | 04:10 |
|
thiago
| git commit --whitespace=verbatim | 04:12 |
|
phy1729
| it's a merge; same option? | 04:13 |
|
thiago
| yes | 04:13 |
|
| remember to remove the lines starting with # that git commit added for you | 04:13 |
|
phy1729
| good tip | 04:13 |
| ← pbrobst left | 04:14 |
| ← teran left | 04:14 |
| → robarelli joined | 04:15 |
|
phy1729
| thiago: I'm getting "error: unknown option `whitespace=verbatim'" | 04:15 |
|
ashooby
| phy1729: thiago: --cleanup=whitespace | 04:15 |
|
thiago
| sorry, --cleanup=verbatim | 04:16 |
|
ashooby
| or --cleanup=verbatim | 04:16 |
|
thiago
| I got confused because one of the options is --cleanup=whitespace | 04:16 |
|
phy1729
| merge is still giving me "error: unknown option `cleanup=whitespace'" | 04:17 |
| → vkrest joined | 04:18 |
| ← robbyoconnor left | 04:18 |
|
phy1729
| git merge --cleanup=whitespace foo/bar bar/foo | 04:18 |
|
thiago
| git commit --cleanup=whitespace | 04:18 |
|
| not merge | 04:18 |
| ← omegahm left | 04:18 |
|
phy1729
| I need to do a merge | 04:18 |
|
thiago
| I meant that it's the same option when you're committing the merge | 04:18 |
|
| git merge --no-commit, then git commit | 04:19 |
|
phy1729
| ah | 04:19 |
|
| seems an odd way to do it but ok | 04:19 |
| ← sdouglas left | 04:19 |
| ← robarelli left | 04:19 |
|
thiago
| not really. It's just a corner-case. | 04:20 |
| → sdouglas joined | 04:20 |
| ← Cache_Money left | 04:20 |
|
thiago
| I think I've done verbatim commits at most once a year, for the past 5 years. And never has it been a merge. | 04:20 |
| ← axl_ left | 04:21 |
| ← kenneth left | 04:21 |
|
ashooby
| phy1729: you could also just do a commit --amend --cleanup=verbatim after the merge | 04:21 |
|
| phy1729: or just put a space in front of the # | 04:21 |
|
| many options | 04:22 |
|
| several at least | 04:22 |
| ← CheckDavid left | 04:22 |
| → sdouglas_ joined | 04:22 |
| → beautifulmind joined | 04:22 |
|
phy1729
| sure but way doesn't merge have a superset of commit's options? | 04:22 |
| ← daito left | 04:23 |
|
thiago
| because merge is not a superset of commit | 04:23 |
| → joelroa joined | 04:23 |
|
thiago
| the fact that it creates a commit is incidental | 04:23 |
|
| rebase might create lots of commits too | 04:23 |
|
ashooby
| if a merge fast forwards, then it doesn't even create a commit | 04:23 |
|
| unless told | 04:23 |
|
thiago
| right | 04:24 |
|
phy1729
| just git br -f that (joking) | 04:24 |
|
thiago
| also, merge must *not* accept some options that git commit does, like -a | 04:24 |
|
| those don't make sense, since merge operates on commits, not on files | 04:24 |
| ← RaceCondition left | 04:24 |
| ← scarabx left | 04:25 |
|
thiago
| should merge get a --cleanup= option? maybe. But wholesale adding commit's options, no, that's not right. | 04:25 |
| ← sdouglas left | 04:25 |
| → Watabou joined | 04:26 |
| ← nikkos left | 04:27 |
| ← DolpheenDream left | 04:28 |
| → RaceCondition joined | 04:29 |
| → mani2399 joined | 04:29 |
| ← mani2399 left | 04:29 |
| → craigp joined | 04:29 |
| ← the_cybersphinx left | 04:30 |
|
phy1729
| thiago: fair enough | 04:30 |
| ← jcvfen left | 04:30 |
| ← joelroa left | 04:30 |
|
phy1729
| thanks for the help guys | 04:30 |
|
rawtaz
| Vampire0: spank you for the help earlier, too | 04:32 |
|
| ugh, awful grammar. | 04:32 |
| ← noisewaterphd_ left | 04:33 |
| ← thiago left | 04:33 |
| ← sambae left | 04:34 |
| → nszceta joined | 04:34 |
| gitinfo set mode: +v | 04:34 |
| → sambae joined | 04:34 |
| ← craigp left | 04:34 |
| → thiago joined | 04:35 |
| → reskp joined | 04:36 |
| ← simesy left | 04:36 |
| → lindenle_ joined | 04:37 |
| ← reskp left | 04:41 |
| ← kermit left | 04:41 |
| ← Guest95422 left | 04:41 |
| → kermit joined | 04:41 |
| → arvind_khadri joined | 04:43 |
| ← zivester left | 04:44 |
| → simesy joined | 04:45 |
| → Exancillatus joined | 04:45 |
| ← Gamecubic left | 04:46 |
| ← jdav_gone left | 04:46 |
| ← nszceta left | 04:47 |
| → ben_alman joined | 04:48 |
| ← invinceable left | 04:48 |
| ← ben_alman left | 04:48 |
| ← Exancillatus left | 04:50 |
| ← [aviraldg] left | 04:50 |
| → aviraldg joined | 04:51 |
| ← thiago left | 04:55 |
| → thiago joined | 04:55 |
| ← madewokherd left | 04:56 |
| ← aviraldg left | 04:56 |
| ← tomengland left | 04:59 |
| → tomengland joined | 04:59 |
| → omegahm joined | 04:59 |
| ← sambae left | 04:59 |
| → Zaknefain joined | 05:00 |
| → Gamecubic joined | 05:01 |
| ← Zaknefain left | 05:01 |
| ← Diemuzi left | 05:01 |
| → daito joined | 05:01 |
| → SLY1986 joined | 05:01 |
| ← jaequery left | 05:03 |
| → FatDarrel joined | 05:03 |
| ← tomengland left | 05:04 |
| ← kukks left | 05:05 |
| ← CKyle left | 05:05 |
| ← FatDarrel left | 05:08 |
| → refried_ joined | 05:09 |
| → cxreg joined | 05:11 |
| → robbyoconnor joined | 05:11 |
| → luxgeek joined | 05:13 |
| ← daito left | 05:19 |
| ← diverdude left | 05:19 |
| ← luc_ left | 05:20 |
| ← refried_ left | 05:20 |
| → luc_ joined | 05:20 |
| ← RaceCondition left | 05:21 |
| ← fatalhalt left | 05:23 |
| ← veebers left | 05:25 |
| ← luc_ left | 05:26 |
| → luc_ joined | 05:26 |
| ← hahuang61 left | 05:27 |
| → joelroa joined | 05:28 |
| → h0bbit_ joined | 05:28 |
| → jdav_gone joined | 05:30 |
| ← pierre1_ left | 05:30 |
| ← vkrest left | 05:31 |
| ← joelroa left | 05:33 |
| → maestrojed joined | 05:36 |
| → hahuang61 joined | 05:36 |
| → reskp joined | 05:37 |
| ← not_a_guest left | 05:37 |
| ← tpollard left | 05:38 |
| ← reskp left | 05:42 |
| → craigp joined | 05:42 |
| → tgkokk joined | 05:43 |
| ← craigp left | 05:46 |
| ← h0bbit_ left | 05:47 |
| ← tgkokk left | 05:47 |
| ← jon_x8 left | 05:47 |
| → jizanthapus joined | 05:48 |
| → Raging_Hog joined | 05:48 |
| → h0bbit_ joined | 05:50 |
| → Tommy[D]_ joined | 05:50 |
| ← Gamecubic left | 05:52 |
| → Gamecubic joined | 05:52 |
| ← Tommy[D] left | 05:54 |
| → devoldmx joined | 05:54 |
| ← lindenle_ left | 05:55 |
| ← nicedice left | 05:55 |
| → Zaknefain joined | 05:55 |
| → dsdeiz joined | 05:55 |
| ← tureba left | 05:56 |
| → m0ltar joined | 05:56 |
| → aviraldg joined | 05:57 |
| → tureba joined | 05:57 |
| ← el3ctron left | 05:58 |
| → tjadmin_ joined | 05:58 |
| ← tjadmin_ left | 05:58 |
| ← Hecter left | 05:59 |
| ← macrover left | 06:00 |
| ← Zaknefain left | 06:00 |
| → daito joined | 06:00 |
| ← tureba left | 06:02 |
| ← chamunks- left | 06:03 |
| ← chrisshattuck left | 06:03 |
| ← pwnz0r left | 06:05 |
| → teran joined | 06:09 |
| → Hecter joined | 06:09 |
| → ewet joined | 06:11 |
| ← ewet left | 06:11 |
| → QoS joined | 06:12 |
| → kcj joined | 06:13 |
| → ewet joined | 06:13 |
| ← teran left | 06:13 |
| → BABA joined | 06:14 |
| BABA → Guest96757 | 06:14 |
| ← Guest96757 left | 06:15 |
| ← robbyoconnor left | 06:15 |
| ← snuffeluffegus left | 06:16 |
| → robarelli joined | 06:16 |
| ← Lemony left | 06:16 |
| → snuffeluffegus joined | 06:17 |
| → gabedain joined | 06:17 |
| ← gabedain left | 06:18 |
| ← Kartagis left | 06:18 |
| → flappy_bird joined | 06:18 |
| → gabedain joined | 06:18 |
| → pwnz0r joined | 06:18 |
| → Kartagis joined | 06:19 |
| → saurabh joined | 06:21 |
| ← robarelli left | 06:21 |
| saurabh → Guest18228 | 06:21 |
| ← gabedain left | 06:21 |
| ← nadirvardar left | 06:22 |
| → Zaknefain joined | 06:23 |
| → ThomasLocke joined | 06:24 |
| → yhager joined | 06:25 |
| ← h0bbit_ left | 06:27 |
| → shingshang joined | 06:27 |
| ← hahuang61 left | 06:28 |
| ← weiyang left | 06:28 |
| → zumba_ad_ joined | 06:32 |
| → cff joined | 06:32 |
| → hoschi joined | 06:32 |
| ← zumba_addict left | 06:33 |
| ← yhager left | 06:34 |
| ← tokik left | 06:35 |
| → toki joined | 06:35 |
| ← JerryT left | 06:35 |
| → JohnBat26 joined | 06:35 |
| → arif-ali joined | 06:36 |
| ← arif-ali left | 06:36 |
| ← JohnBat26 left | 06:37 |
| → JohnBat26 joined | 06:37 |
| ← JohnBat26 left | 06:37 |
| → JohnBat26 joined | 06:37 |
| → reskp joined | 06:38 |
| ← starkhalo left | 06:38 |
| → arif-ali joined | 06:38 |
| → joelroa joined | 06:39 |
| ← daito left | 06:39 |
| → iokill joined | 06:41 |
| ← freestyl3r left | 06:41 |
| → weiyang joined | 06:41 |
| → fr33 joined | 06:41 |
| → vkrest joined | 06:42 |
| → darnir_ joined | 06:42 |
| ← reskp left | 06:42 |
| ← vkrest left | 06:42 |
| → jargon joined | 06:42 |
| → pantsman joined | 06:43 |
| ← simesy left | 06:43 |
| → cloud|nix joined | 06:43 |
| ← weiyang left | 06:44 |
| → weiyang joined | 06:44 |
| → arietis joined | 06:45 |
| → pierre1_ joined | 06:45 |
| → kbart joined | 06:46 |
| → Anticom joined | 06:50 |
| → ferreum joined | 06:50 |
| → marthinal joined | 06:51 |
| → hobodave joined | 06:51 |
| ← sdouglas_ left | 06:52 |
| mozzarella → YourFavoriteBot | 06:52 |
| → nfk joined | 06:52 |
| YourFavoriteBot → mozzarella | 06:52 |
| ← Gamecubic left | 06:55 |
| → tomengland joined | 06:56 |
| ← tyreld left | 06:56 |
| mozzarella → bro | 06:57 |
| → aarapov joined | 07:01 |
| → tphd joined | 07:01 |
| ← tomengland left | 07:01 |
| → tomengland joined | 07:01 |
| → yhager joined | 07:02 |
| → ehmatthes joined | 07:02 |
| ← bgerber left | 07:03 |
| ← lindenle left | 07:04 |
| ← dreiss left | 07:04 |
| → chamunks joined | 07:05 |
| → hkon_ joined | 07:05 |
| ← hochmeister left | 07:05 |
| → przemkovv joined | 07:05 |
| → _tpavel joined | 07:07 |
| ← pantsman left | 07:07 |
|
Kartagis
| can we pull a specific commit? git pull <hash> ? | 07:07 |
|
| I mean up to that commit | 07:08 |
|
j416
| Kartagis: try it (yes) | 07:08 |
| → bgerber joined | 07:08 |
|
j416
| Kartagis: pull is the same as fetch + merge | 07:08 |
|
Kartagis
| j416: okay (thanks) | 07:08 |
|
j416
| Kartagis: fetch will get everything, merge will merge whatever the argument is | 07:09 |
|
| Kartagis: not sure though if you can actually do 'git pull <commit>' but nonetheless you can 'git fetch' and then 'git merge <commit>' | 07:10 |
|
Kartagis
| j416: so basically I pull everything, but only up to that commit will be shown | 07:10 |
| → lindenle joined | 07:10 |
| → Kicer86 joined | 07:10 |
|
j416
| Kartagis: careful with the terminology. pull = fetch + merge | 07:10 |
| → teran_ joined | 07:11 |
| → robbyoconnor joined | 07:11 |
| → cbreak-work joined | 07:11 |
|
j416
| Kartagis: 'git fetch' always get everything. After that you operate locally to do what you want with what you fetched. | 07:11 |
|
| (merge it, rebase on top of it, look at it...) | 07:12 |
| → j0ran joined | 07:12 |
|
Kartagis
| okay | 07:12 |
| → enigmus joined | 07:12 |
|
j416
| 'git fetch' and 'git push' are the only commands that communicate outside of your repo | 07:12 |
|
| everything else is local | 07:13 |
|
| (arguably 'git pull' too, but that includes fetch so) | 07:13 |
| → tobeplugged joined | 07:13 |
| ← snuffeluffegus left | 07:14 |
| ← teran_ left | 07:16 |
| ← maestrojed left | 07:16 |
| → robarelli joined | 07:17 |
| → teran joined | 07:17 |
| → roelmonnens joined | 07:18 |
| → bwreilly joined | 07:19 |
| → rath joined | 07:20 |
| ← nnyk_ left | 07:20 |
| → bousquet joined | 07:21 |
|
grumbel_
| IIRC, you cannot pull a hash directly, only references (though that might depend on the protocol) | 07:21 |
| ← robarelli left | 07:22 |
|
grumbel_
| There was some argument that the only way to "delete" a commit from a public repository was to make it unreferenced by any named reference | 07:22 |
| → snuffeluffegus joined | 07:22 |
| → konadr joined | 07:23 |
| → sdouglas joined | 07:23 |
| → yaru22 joined | 07:24 |
|
grumbel_
| http://thread.gmane.org/gmane.comp.version-control.git/73368/focus=73994 | 07:24 |
| ← arif-ali left | 07:24 |
| ← sdouglas left | 07:25 |
| → sdouglas joined | 07:25 |
|
thiago
| it's a security feature | 07:26 |
| ← beautifulmind left | 07:27 |
|
j416
| grumbel_: indeed. | 07:27 |
|
| Kartagis: ^ | 07:27 |
|
| my assumption was that the hash was part of a branch/tag history | 07:28 |
|
| not sure if git translates 'git pull <commit>' into 'git fetch && git merge <commit>' or not | 07:28 |
| → modocache joined | 07:28 |
|
j416
| maybe it just barfs out an error | 07:28 |
| ← tomengland left | 07:29 |
| → tomengland joined | 07:29 |
| ← darnir_ left | 07:29 |
| ← Rastus_Vernon left | 07:29 |
| ← tomengland left | 07:29 |
| ← sdouglas left | 07:30 |
| → Cache_Money joined | 07:30 |
| → FatDarrel joined | 07:30 |
| → leakybuckit joined | 07:30 |
| → tomengland joined | 07:30 |
| → h0bbit_ joined | 07:31 |
| → Gizburdt joined | 07:32 |
| → xlinkz0 joined | 07:32 |
| → SorenHolm joined | 07:32 |
| ← hobodave left | 07:33 |
| → a-l-e joined | 07:33 |
| ← tomengland left | 07:34 |
| → rob_w joined | 07:36 |
| → daito joined | 07:37 |
| ← enigmus left | 07:38 |
| → reskp joined | 07:38 |
| Guest57954 → mf_ | 07:40 |
| → rethus joined | 07:40 |
| → HelperW joined | 07:41 |
|
thiago
| j416: the translation is a bit more complex | 07:41 |
|
| it's git fetch <remote part of the ref> && git merge <ref> | 07:41 |
| ← reskp left | 07:43 |
| → mlechner joined | 07:44 |
| → tureba joined | 07:44 |
|
j416
| thiago: naturally; though the remote part may be in config, right? | 07:45 |
|
| hm maybe that's just for fetch | 07:45 |
|
| I hardly ever use pull with arguments so I forget its syntax | 07:46 |
| → rednaks joined | 07:46 |
| → joelrobichaud joined | 07:47 |
| ← jas4711 left | 07:48 |
| → pduin joined | 07:49 |
| → ifdm_ joined | 07:50 |
| → Sicp joined | 07:50 |
| ← yacks left | 07:50 |
| ← mdub left | 07:51 |
| ← cloud|nix left | 07:52 |
| ← l0x3py left | 07:52 |
| ← Cache_Money left | 07:53 |
| → lavong joined | 07:53 |
| → blahzik joined | 07:54 |
| ← lindenle left | 07:55 |
| → ayaz joined | 07:55 |
| ← Sicp left | 07:56 |
| ← blahzik left | 07:56 |
| → hahuang61 joined | 07:57 |
| → gua_ould joined | 07:57 |
| → MattStra_ joined | 07:58 |
| → Misan joined | 08:00 |
| → matteo joined | 08:01 |
| ← hahuang61 left | 08:01 |
| → jsilver_ joined | 08:02 |
| → qinbo joined | 08:02 |
| → Gooder` joined | 08:03 |
| → lavaman1 joined | 08:03 |
| ← lavaman left | 08:03 |
| → Tuna-Fish2 joined | 08:04 |
| → lolmaus_ joined | 08:04 |
| → ronskisika joined | 08:04 |
| → jayne_ joined | 08:05 |
| → caseydri_ joined | 08:05 |
| ← zequence left | 08:05 |
| → Lemony joined | 08:05 |
| → soren_ joined | 08:05 |
| ← FatDarrel left | 08:06 |
| ← weiyang left | 08:06 |
| → warbaque_ joined | 08:06 |
| → makubi_ joined | 08:06 |
| → cfedde_ joined | 08:06 |
| → Nikoli_ joined | 08:06 |
| → jacobt joined | 08:06 |
| → archdori joined | 08:06 |
| → nevyn_ joined | 08:06 |
| → JSharpe_ joined | 08:06 |
| → lite_ joined | 08:07 |
| → cbreak_ joined | 08:08 |
| → jas4711 joined | 08:08 |
| ← Lemony left | 08:08 |
| → Lemony joined | 08:08 |
| ← aarapov left | 08:09 |
| → loglaunch_ joined | 08:09 |
| → Don joined | 08:10 |
| Don → Guest45470 | 08:10 |
| ← joelrobichaud left | 08:11 |
| ← rednaks left | 08:11 |
| ← tobeplugged left | 08:11 |
| ← cbreak-work left | 08:11 |
| ← _tpavel left | 08:11 |
| ← kcj left | 08:11 |
| ← aviraldg left | 08:11 |
| ← Raging_Hog left | 08:11 |
| ← Tuna-Fish left | 08:11 |
| ← makubi left | 08:11 |
| ← harish left | 08:11 |
| ← monokrome left | 08:11 |
| ← fluter left | 08:11 |
| ← Orbitrix left | 08:11 |
| ← lolmaus left | 08:11 |
| ← jsilver left | 08:11 |
| ← ezrafree left | 08:11 |
| ← v0n left | 08:11 |
| ← mf_ left | 08:11 |
| ← DrShoggoth left | 08:11 |
| ← zacts left | 08:11 |
| ← DolphinDream left | 08:11 |
| ← osse left | 08:11 |
| ← JSharpe left | 08:11 |
| ← armyriad left | 08:11 |
| ← Exdaix left | 08:11 |
| ← bluefirecorp1 left | 08:11 |
| ← Fandekasp left | 08:11 |
| ← oojacoboo left | 08:11 |
| ← kinboster left | 08:11 |
| ← tirengarfio left | 08:11 |
| ← warbaque left | 08:11 |
| ← cfedde left | 08:11 |
| ← ss1891 left | 08:11 |
| ← loglaunch left | 08:11 |
| ← breakingthings left | 08:11 |
| ← Guest42943 left | 08:11 |
| ← soren left | 08:11 |
| ← caseydriscoll left | 08:11 |
| ← Gooder left | 08:11 |
| ← Andrevan left | 08:11 |
| ← Nikoli left | 08:11 |
| ← xSmurf left | 08:11 |
| ← nevyn left | 08:11 |
| ← hays left | 08:11 |
| ← silverf0x left | 08:11 |
| ← frobware left | 08:11 |
| ← camt left | 08:11 |
| ← jayne left | 08:11 |
| ← lunaphyte_ left | 08:11 |
| ← ayaz left | 08:11 |
| ← xlinkz0 left | 08:11 |
| ← bwreilly left | 08:11 |
| ← teran left | 08:11 |
| ← j0ran left | 08:11 |
| ← robbyoconnor left | 08:11 |
| ← bgerber left | 08:11 |
| ← przemkovv left | 08:11 |
| ← nfk left | 08:11 |
| ← jargon left | 08:11 |
| ← toki left | 08:11 |
| ← pwnz0r left | 08:11 |
| ← dsdeiz left | 08:11 |
| ← jdav_gone left | 08:11 |
| ← kermit left | 08:11 |
| ← howitdo left | 08:11 |
| ← Sabbath left | 08:11 |
| ← john2x left | 08:11 |
| ← northfurr left | 08:11 |
| ← Xiti left | 08:11 |
| ← kaictl left | 08:11 |
| ← amcsi_work left | 08:11 |
| ← EdGruberman left | 08:11 |
| ← javawizard left | 08:11 |
| ← n8chur__ left | 08:11 |
| ← diget left | 08:11 |
| ← Fuxx_ left | 08:11 |
| ← Ywe left | 08:11 |
| ← akiva left | 08:11 |
| ← takamichi left | 08:11 |
| ← Segfault_ left | 08:11 |
| ← saorge left | 08:11 |
| ← MattMaker left | 08:11 |
| ← mitz left | 08:11 |
| ← tmart left | 08:11 |
| ← SegFaultAX left | 08:11 |
| ← texel left | 08:11 |
| ← p8952 left | 08:11 |
| ← mivok left | 08:11 |
| ← JrCs left | 08:11 |
| ← someElise left | 08:11 |
| ← Davey left | 08:11 |
| ← mgomezch left | 08:11 |
| ← Asenar left | 08:11 |
| ← bhldev__ left | 08:11 |
| ← ianmcorvidae left | 08:11 |
| ← kadoban left | 08:11 |
| ← jast left | 08:11 |
| ← george2 left | 08:11 |
| ← Vinnie_win left | 08:11 |
| ← thegattaca left | 08:11 |
| ← stellarhopper left | 08:11 |
| ← AndreSomers left | 08:11 |
| ← pekster left | 08:11 |
| ← linduxed left | 08:11 |
| ← ciaranm left | 08:11 |
| ← kloeri left | 08:11 |
| ← jon-mac left | 08:11 |
| ← NaiveFrost left | 08:11 |
| ← milki left | 08:11 |
| ← expr left | 08:11 |
| ← ProducedRaw left | 08:11 |
| ← babilen left | 08:11 |
| ← flexo left | 08:11 |
| ← dfarler left | 08:11 |
| ← kossy left | 08:11 |
| ← Sewdo left | 08:11 |
| ← iAsterisk left | 08:11 |
| ← aboudreault left | 08:11 |
| ← whoami left | 08:11 |
| ← idoru left | 08:11 |
| ← surfdue left | 08:11 |
| → Exdaix joined | 08:11 |
| → ghostlines joined | 08:11 |
| → jceb joined | 08:11 |
| → shennyg joined | 08:11 |
| → yacks joined | 08:11 |
| → aarapov joined | 08:12 |
| ← lacrosse_ left | 08:12 |
| jayne_ → jayne | 08:13 |
| ← snuffeluffegus left | 08:13 |
| → dreiss joined | 08:13 |
| → osse joined | 08:14 |
| ← Goplat left | 08:14 |
| ← jmcantrell left | 08:14 |
| → jmcantrell joined | 08:15 |
| → not_a_guest joined | 08:15 |
| → konadr1 joined | 08:15 |
| → papegaaij joined | 08:15 |
| ← conan_ left | 08:16 |
| → jnavila joined | 08:16 |
| → jagob joined | 08:16 |
| → zacts joined | 08:17 |
| ← konadr left | 08:17 |
| ← phuh left | 08:17 |
| → harish joined | 08:18 |
| → robarelli joined | 08:18 |
| → mf_ joined | 08:18 |
| → tirengarfio joined | 08:18 |
| ← modocache left | 08:18 |
| → _tpavel joined | 08:18 |
| → v0n joined | 08:18 |
| → weiyang joined | 08:19 |
| ← axsuul left | 08:20 |
| ← Hecter left | 08:21 |
| → axsuul joined | 08:21 |
| → shafox joined | 08:21 |
| → mewm joined | 08:22 |
| ← robarelli left | 08:22 |
| → djapo joined | 08:22 |
| ← jceb left | 08:23 |
| → tobeplugged joined | 08:23 |
|
djapo
| hello world, when i try to push code to my github it asks me for my username and password but when i try to push code to my bitbucket it asks for my pasphrase, how can i make my github repo do the same? | 08:24 |
| → harobed joined | 08:25 |
| → noxd joined | 08:25 |
|
shafox
| djapo, add ssh-keys to your github account and follow the help guide | 08:25 |
| ← mewm left | 08:26 |
| ← nepochal left | 08:27 |
|
moritz
| djapo: and use the ssh URLs that github offers, not the https URL | 08:28 |
| → DolphinDream joined | 08:28 |
|
djapo
| shafox: i already have that | 08:28 |
| → francisfish joined | 08:28 |
|
djapo
| moritz: how do i do that? do i edit the .git folder files | 08:29 |
|
| ? | 08:29 |
| → armyriad joined | 08:29 |
|
moritz
| djapo: .git/config, yes | 08:29 |
| → nick108 joined | 08:29 |
|
moritz
| or you can use git remote set-url | 08:29 |
|
shafox
| I have a git repo. with some 50 odd commits . I want to rebase squash all the commit starting from 1 to 45 , how to specify while using git rebase -i id id ?? | 08:30 |
| ← nick108 left | 08:30 |
|
osse
| shafox: git rebase -i --root | 08:30 |
| → lb1a joined | 08:31 |
|
djapo
| moritz: neat, thanks! | 08:31 |
| → nick108 joined | 08:31 |
|
osse
| mark commits 2 through 45 as squash | 08:31 |
|
shafox
| osse, that will give me the all the commit list and ah ok lemme try | 08:31 |
| → Gavrisimo joined | 08:32 |
| ← thiago left | 08:32 |
| → FatDarrel joined | 08:33 |
| ← dreiss left | 08:33 |
|
shafox
| osse, with fixup i can remove the commit message but will have commits ? | 08:33 |
|
moritz
| correct | 08:34 |
| ← m0ltar left | 08:34 |
| → liuzhoou joined | 08:34 |
|
shafox
| that way i will lose every other contributors name ? | 08:34 |
|
moritz
| yes | 08:34 |
| → alorence joined | 08:34 |
| → jceb joined | 08:36 |
| → pikaren joined | 08:36 |
| ← ifdm_ left | 08:36 |
| ← dhilipsiva left | 08:36 |
| ← arietis left | 08:36 |
| ← FatDarrel left | 08:36 |
| → arietis joined | 08:37 |
| → shruggar joined | 08:37 |
| → arif-ali joined | 08:37 |
| → ifdm_ joined | 08:37 |
|
pikaren
| Does git internally store every commit with a completely snapshots of the committed files? | 08:39 |
| → jaf2k joined | 08:39 |
| → aviraldg joined | 08:40 |
| → nnyk_ joined | 08:41 |
| → tvw joined | 08:41 |
|
grumbel_
| pikaren: That's how it is modeled, yes; however, on storage level, similar files can be compressed using some delta encoding, and identical files are only ever stored once | 08:41 |
| → mewm joined | 08:42 |
| → luxgeek1 joined | 08:43 |
| ← axsuul left | 08:43 |
| ← luxgeek left | 08:43 |
| → axsuul joined | 08:43 |
| ← pikaren left | 08:43 |
| ← a-l-e left | 08:43 |
| → pikaren joined | 08:44 |
| → dhilipsiva joined | 08:44 |
| → arand joined | 08:45 |
| → Juzzika joined | 08:46 |
| → breakingthings joined | 08:47 |
|
pikaren
| Does 'git cat-file -p' output the thing that has been preprocessed by this storage level trick? | 08:47 |
|
| Does 'git cat-file -p' output the thing that has been preprocessed by this storage level trick? | 08:48 |
| → dmarkham joined | 08:48 |
|
pikaren
| sorry for repeating... my irc client is behaving weirdly | 08:48 |
| ← pikaren left | 08:48 |
| → icbaek joined | 08:49 |
| ← shruggar left | 08:49 |
| ← ewet left | 08:49 |
| ← axsuul left | 08:50 |
|
grumbel_
| no, that compression is completely transparent to practically all git commands | 08:50 |
| → Trudko joined | 08:50 |
| → [aviraldg] joined | 08:51 |
|
Trudko
| Guys I am using git bash under the windows and it only seems to remember commands run when since opening it. I would like to see also old commands which I have used id different git bash commands if you know what I mean | 08:51 |
|
osse
| Trudko: let me guess: You close Git bash by pressing the X in the corner? That will incorrectly shut bash down. Try 'exit' and see if it remembers history then | 08:53 |
|
Trudko
| osse: yeah you are ofc right... | 08:53 |
|
osse
| \o/ | 08:54 |
|
Trudko
| ou well I am window user you have to excuse me :) | 08:54 |
| ← aviraldg left | 08:54 |
|
osse
| Trudko: you *can* make bash write the command history to disk after every command, but I can't remember how. If you want something quicker than 'exit' to close the window then you can press Ctrl-D | 08:54 |
|
Trudko
| i will try to find out saveing after every command would be safe meanwhile i Will use ctrl d , thx | 08:55 |
|
arand
| PROMPT_COMMAND="history -a;$PROMPT_COMMAND" I think | 08:56 |
|
moritz
| http://askubuntu.com/questions/80371/bash-history-handling-with-multiple-terminals | 08:56 |
| ← luxgeek1 left | 08:56 |
|
moritz
| arand was faster :-) | 08:56 |
|
arand
| (in .bashrc or equivalent) | 08:56 |
| → pikaren joined | 08:56 |
| → Balliad joined | 08:57 |
| → filter joined | 08:58 |
| → mikecmpbll joined | 08:59 |
| ← liuzhoou left | 08:59 |
| soren_ → soren | 09:00 |
| ← soren left | 09:00 |
| → soren joined | 09:00 |
|
Trudko
| arand: yeap that seems to work | 09:01 |
| → W0rmDr1nk joined | 09:01 |
| → Sonderblade joined | 09:01 |
| → hays_ joined | 09:01 |
| → jaequery joined | 09:01 |
| → silverf0x joined | 09:01 |
| → Hecter joined | 09:01 |
| → gitinfo joined | 09:01 |
| → camt joined | 09:01 |
| → frobware joined | 09:01 |
| → nfroidure joined | 09:01 |
| → surfdue joined | 09:01 |
| → idoru joined | 09:01 |
| → whoami joined | 09:01 |
| → iAsterisk joined | 09:01 |
| → Sewdo joined | 09:01 |
| → aboudreault joined | 09:01 |
| → kossy joined | 09:01 |
| → dfarler joined | 09:01 |
| → flexo joined | 09:01 |
| → babilen joined | 09:01 |
| → ProducedRaw joined | 09:01 |
| → expr joined | 09:01 |
| → milki joined | 09:01 |
| → NaiveFrost joined | 09:01 |
| → jon-mac joined | 09:01 |
| → kloeri joined | 09:01 |
| → ciaranm joined | 09:01 |
| → linduxed joined | 09:01 |
| → pekster joined | 09:01 |
| → AndreSomers joined | 09:01 |
| → stellarhopper joined | 09:01 |
| → thegattaca joined | 09:01 |
| → Vinnie_win joined | 09:01 |
| → george2 joined | 09:01 |
| → jast joined | 09:01 |
| → kadoban joined | 09:01 |
| → ianmcorvidae joined | 09:01 |
| → bhldev__ joined | 09:01 |
| → Asenar joined | 09:01 |
| → mgomezch joined | 09:01 |
| → Davey joined | 09:01 |
| → someElise joined | 09:01 |
| → JrCs joined | 09:01 |
| → p8952 joined | 09:01 |
| → texel joined | 09:01 |
| → SegFaultAX joined | 09:01 |
| → tmart joined | 09:01 |
| → mitz joined | 09:01 |
| → MattMaker joined | 09:01 |
| → saorge joined | 09:01 |
| → Segfault_ joined | 09:01 |
| → takamichi joined | 09:01 |
| → akiva joined | 09:01 |
| → Ywe joined | 09:01 |
| → Fuxx_ joined | 09:01 |
| → diget joined | 09:01 |
| → n8chur__ joined | 09:01 |
| → mivok joined | 09:01 |
| → javawizard joined | 09:01 |
| → EdGruberman joined | 09:01 |
| → amcsi_work joined | 09:01 |
| → kaictl joined | 09:01 |
| → Xiti joined | 09:01 |
| → northfurr joined | 09:01 |
| → john2x joined | 09:01 |
| → Sabbath joined | 09:01 |
| → howitdo joined | 09:01 |
| → jdav_gone joined | 09:01 |
| → dsdeiz joined | 09:01 |
| → toki joined | 09:01 |
| → jargon joined | 09:01 |
| → nfk joined | 09:01 |
| → przemkovv joined | 09:01 |
| → bgerber joined | 09:01 |
| → robbyoconnor joined | 09:01 |
| → j0ran joined | 09:01 |
| → teran joined | 09:01 |
| → xlinkz0 joined | 09:01 |
| → ayaz joined | 09:01 |
| → otiose joined | 09:01 |
| → bluefirecorp joined | 09:01 |
| → Huevos joined | 09:01 |
| → xSmurf joined | 09:01 |
| → lacrosse_ joined | 09:01 |
| → LAAJEIJ joined | 09:01 |
| → DrShoggoth joined | 09:01 |
| → fluter joined | 09:01 |
| → Andrevan joined | 09:01 |
| → draftqin joined | 09:01 |
| → CodeShark joined | 09:01 |
| → lunaphyte_ joined | 09:01 |
| → rednaks joined | 09:01 |
| → monokrome joined | 09:01 |
| → ezrafree joined | 09:01 |
| → GrEEnFiRe joined | 09:01 |
|
wagle
| i checked out branch foo and it says: Your branch is behind 'local/foo' by 3 commits, and can be fast-forwarded. | 09:01 |
|
| what do i do? | 09:01 |
| → Naeb joined | 09:01 |
| ← aarapov left | 09:01 |
| ← GrEEnFiRe left | 09:01 |
|
lite_
| git pull ? | 09:02 |
|
wagle
| oh.. i guess i didnt actually pu;l | 09:02 |
| ← daito left | 09:02 |
|
wagle
| the pull musta failed | 09:02 |
|
osse
| wagle: depends. ''git merge local/foo'' is the usual course of action but you don't *have* to do anything | 09:02 |
| → GrEEnFiRe joined | 09:02 |
| ← frobware left | 09:02 |
| → frobware joined | 09:02 |
| ← xSmurf left | 09:02 |
| → xSmurf joined | 09:02 |
| bluefirecorp → Guest37745 | 09:02 |
| → kcj joined | 09:03 |
| → Advocation joined | 09:03 |
|
osse
| wagle: when you pull Git will fetch and the merge the *current* branch. So if you ad master checked out at the time of pulling and later checked out foo then this is completely normal | 09:04 |
| ← neurodrone left | 09:04 |
| ← leakybuckit left | 09:05 |
| → pwnz0r joined | 09:05 |
| ← rednaks left | 09:05 |
|
wagle
| osse: i was confused because I thought I had pulled | 09:05 |
|
| couldnt understand how i could possibly be 3 commits behind | 09:06 |
|
canton7
| understand what pull *does* | 09:06 |
| → hochmeister joined | 09:06 |
|
canton7
| just like merge, it can only modify the currently checked out branch. it cannot modify any branch which is not checked out | 09:06 |
| → tfnico joined | 09:07 |
|
wagle
| i understand, but imagine yourself getting that message when you thought you had pulled | 09:07 |
| → snuffeluffegus joined | 09:07 |
|
canton7
| if you'd learnt what pull does, it's not at all surprising | 09:07 |
|
wagle
| oh well, feexed now | 09:07 |
| → neurodrone joined | 09:07 |
|
wagle
| ummm, now you are trolling | 09:08 |
| ← rachma left | 09:08 |
| ← djapo left | 09:08 |
|
osse
| wagle: It's entirely possible that you have in fact pulled. That was my entire point | 09:09 |
| → ben_alman joined | 09:09 |
| ← pwnz0r left | 09:09 |
| → jaequery_ joined | 09:10 |
|
osse
| but only you know which branch you had checked out when you ran pull. | 09:10 |
| ← tobeplugged left | 09:10 |
| → oodavid joined | 09:10 |
| ← ippxs left | 09:10 |
| ← hochmeister left | 09:11 |
|
pikaren
| is there to see what's inside .git/index | 09:11 |
| → ewet joined | 09:11 |
| ← ewet left | 09:12 |
| → daito joined | 09:12 |
| → canton7-mac joined | 09:12 |
| → camth joined | 09:12 |
| ← camt left | 09:12 |
| ← bousquet left | 09:13 |
| ← canton7 left | 09:13 |
| ← toki left | 09:13 |
| → ArSn joined | 09:13 |
| → ewet joined | 09:13 |
| → canton7 joined | 09:13 |
| ← shingshang left | 09:14 |
| ← jaequery left | 09:14 |
| ← ben_alman left | 09:15 |
|
osse
| pikaren: it's a binary file. You can open it in a hex editor etc | 09:15 |
|
| there is no pretty-printer for it as far as I know | 09:15 |
| → hays joined | 09:15 |
|
pikaren
| osse: thanks | 09:16 |
| → Druide_ joined | 09:16 |
|
osse
| pikaren: In Documents/technical/index-format.txt there is a description of it | 09:16 |
| → m0ltar joined | 09:16 |
| ← dmarkham left | 09:16 |
|
osse
| (in the git source tree. I doubt it gets installed) | 09:16 |
| ← hays_ left | 09:16 |
| → rgr joined | 09:17 |
|
jast
| 'git ls-files -s' can give you pretty much all of the information in the index | 09:17 |
|
osse
| oh, nice | 09:18 |
| → robarelli joined | 09:18 |
| ← snuffeluffegus left | 09:20 |
| → NCS_One joined | 09:21 |
| ← teran left | 09:21 |
| → teran joined | 09:21 |
|
NCS_One
| hi | 09:22 |
|
ewet
| it should largely be a tree object. sadly cat-file doesn't work on it. so ls-files is where it's at... | 09:22 |
| → shruggar joined | 09:22 |
|
NCS_One
| how can I check the differences between a commited and a not commited file? | 09:22 |
| → axsuul joined | 09:22 |
| ← robarelli left | 09:23 |
|
grumbel_
| NCS_One: git diff <filename> | 09:23 |
|
| assuming you have not "git add"ed the file before | 09:24 |
|
ewet
| NCS_One: man git-diff | 09:24 |
| → tobeplugged joined | 09:25 |
| ← m0ltar left | 09:25 |
|
NCS_One
| grumbel_: I add"ed it :( | 09:25 |
|
oodavid
| git diff --cached filename | 09:25 |
| → fatalhalt joined | 09:25 |
| ← teran left | 09:25 |
| → shingshang joined | 09:26 |
|
ewet
| gitinfo? why u no work? | 09:26 |
|
osse
| !cookie | 09:26 |
| ← Trudko left | 09:27 |
|
ewet
| NCS_One: well read the man page for git-diff. it's giving you a lot of ways to compare files in any direction :) | 09:27 |
| ← devoldmx left | 09:28 |
| → jatt joined | 09:28 |
| ← jatt left | 09:29 |
| → jatt joined | 09:29 |
| → reskp joined | 09:29 |
| → m0ltar joined | 09:30 |
| ← Naeb left | 09:30 |
| → elhamer joined | 09:30 |
| → Keridos_off joined | 09:30 |
| → nucc1 joined | 09:31 |
| → robmozart_ joined | 09:31 |
| ← Gavrisimo left | 09:31 |
|
nucc1
| hi, if i want to pull the changes from the server and overwrite local changes, do i have to delete the entire directory and clone again? | 09:31 |
| → Naeb joined | 09:32 |
| Keridos_off → Keridos | 09:32 |
|
Watabou
| nucc1: I would just git stash and then git pull. | 09:33 |
|
osse
| nucc1: instead of pulling use fetch and then reset | 09:33 |
| → arnihr joined | 09:34 |
| ← elhamer left | 09:34 |
| → samsamm777 joined | 09:34 |
|
robmozart_
| i have a folder for my web apps, each folder has its own .git directory. i noticed that the folder i first mentioned also has a .git folder, why? can i delete it? | 09:35 |
|
nucc1
| Watabou, osse thanks. | 09:35 |
| ← tvw left | 09:35 |
|
osse
| robmozart_: sounds like a "mother repo" with several submodules in it | 09:35 |
| ← jnewt left | 09:36 |
|
fluter
| how can I let git think it is not in a repo? | 09:36 |
|
osse
| if that's the case then no | 09:36 |
| → jnewt joined | 09:36 |
|
osse
| then you can delete it | 09:36 |
| ← Hecter left | 09:36 |
| → vince_prignano joined | 09:36 |
| → gain joined | 09:37 |
| Keridos → Keridos_off | 09:37 |
| → sgambino joined | 09:37 |
|
robmozart_
| osse: okay i may have initalised it as a repo and then forgot about it, don’t understand why it would grow to 100 mb as i can’t recall commiting much to it. | 09:37 |
|
| thanks | 09:37 |
| → snuffeluffegus joined | 09:37 |
|
osse
| robmozart_: before deleting it you might want to check the log | 09:38 |
|
| maybe you did it for good reasons | 09:38 |
| → Macaveli joined | 09:38 |
| → BiggFREE joined | 09:39 |
| → simesy joined | 09:39 |
| → sixlu joined | 09:39 |
| → mishok13 joined | 09:39 |
|
ewet
| robmozart_: there's probably stuff in it you committed my accident and meant to be in one of your sub-repos | 09:40 |
|
| s/my/by | 09:40 |
| → lolmaus joined | 09:41 |
| → sdouglas joined | 09:42 |
| ← lolmaus_ left | 09:42 |
| ← Guest18228 left | 09:42 |
|
robmozart_
| "fatal: This operation must be run in a work tree" | 09:42 |
|
| so it’s a bare repo | 09:43 |
|
| ewet: yeah probably | 09:43 |
| → ChrisAnn joined | 09:43 |
| ← kerrick left | 09:43 |
|
robmozart_
| git log returns "fatal: bad default revision 'HEAD'" | 09:43 |
|
moritz
| that means there isn't any commit yet | 09:44 |
| → Kayra joined | 09:44 |
| → vurma joined | 09:45 |
| → blackmesa joined | 09:46 |
| ← jargon left | 09:46 |
| ← sdouglas left | 09:46 |
| ← mishok13 left | 09:46 |
| ← daito left | 09:46 |
| ← yhager left | 09:47 |
| ← weiyang left | 09:48 |
| → Kneferilis joined | 09:49 |
| → daito joined | 09:50 |
| → darnir_ joined | 09:52 |
| → Gonzo89 joined | 09:52 |
| ← harish left | 09:52 |
| → mrhooray joined | 09:53 |
| ← nucc1 left | 09:54 |
| → ghoti joined | 09:55 |
| ← SorenHolm left | 09:55 |
| → SorenHolm joined | 09:56 |
| → intellix joined | 09:57 |
| ← rgr left | 09:57 |
|
gitinfo
| NCS_One: the git-diff manpage is available at http://jk.gs/git-diff.html | 09:57 |
| ← Nikoli_ left | 09:58 |
| → aarapov joined | 09:59 |
| → Nikoli joined | 09:59 |
| ← Juzzika left | 09:59 |
| ← ghoti left | 10:00 |
| ← fluter left | 10:00 |
| → fluter joined | 10:00 |
|
pikaren
| i wonder why there isnt a great and widely used git wrapper out there since so many people complain about its usability | 10:00 |
|
fluter
| how can I let git think it is not in a repo? | 10:00 |
| → ghoti joined | 10:01 |
| → saurabh joined | 10:01 |
|
Watabou
| pikaren: I use tig | 10:01 |
| → welly joined | 10:01 |
| saurabh → Guest72372 | 10:01 |
| → tokik joined | 10:01 |
|
Watabou
| Not really a git wrapper, but it's a pretty awesome command line gui for git: let g:netrw_dirhistmax =10 | 10:02 |
|
| let g:netrw_dirhist_cnt =3 | 10:02 |
|
| let g:netrw_dirhist_1='/Users/ajh/dotfiles/.vim/bundle/python-mode' | 10:02 |
|
| let g:netrw_dirhist_2='/Users/ajh/dotfiles/.vim/bundle/emmet-vim' | 10:02 |
|
| let g:netrw_dirhist_3='/Users/ajh/dotfiles' | 10:02 |
|
| Crap | 10:02 |
| → Gavrisimo joined | 10:02 |
|
Watabou
| Sorry about that | 10:02 |
|
| I meant this: https://blogs.atlassian.com/2013/05/git-tig/ :( | 10:02 |
| → Gavrisimooo joined | 10:04 |
| → BeardlessOne joined | 10:04 |
| → mishok13 joined | 10:04 |
|
pikaren
| Watabou: hmm.. I'll check it out. Thanks | 10:05 |
| → tshirtman joined | 10:05 |
| ← ghoti left | 10:05 |
| → toki joined | 10:06 |
| ← tokik left | 10:06 |
| ← Gavrisimo left | 10:07 |
| → ghoti joined | 10:07 |
| ← gitinfo left | 10:08 |
| → gitinfo joined | 10:08 |
| ChanServ set mode: +o | 10:08 |
|
jast
| pikaren: because the people who complain don't actually have decent solutions | 10:08 |
| ← Gavrisimooo left | 10:08 |
| ← tobeplugged left | 10:09 |
|
jast
| most of them are kind of "let's just pretend git is svn" | 10:09 |
|
ewet
| pikaren: with a powerful tool like git there's no way around learning how it works. | 10:10 |
| → rednaks joined | 10:10 |
| ← northfurr left | 10:10 |
| ← ghoti left | 10:12 |
| ← HelperW left | 10:12 |
| → thevishy joined | 10:12 |
| → ghoti joined | 10:13 |
| → vijay13 joined | 10:13 |
| ← arietis left | 10:15 |
| ← zacts left | 10:16 |
|
tshirtman
| hi, i did myself a small hook sometime ago, to display the stashed changes on the branch everytime i checkout, (https://github.com/tshirtman/git/blob/master/template/hooks/post-checkout) but i just realized that it broke git rebase, causing it to tell me i'm in detached head, while telling me it couldn't detach head, do i need to make my script return something to mark success? | 10:16 |
| ← reskp left | 10:16 |
| → reskp joined | 10:16 |
| ← sixlu left | 10:17 |
| ← ghoti left | 10:18 |
| ← takamichi left | 10:18 |
| ← NCS_One left | 10:18 |
| → ghoti joined | 10:19 |
| → robarelli joined | 10:19 |
| → beautifulmind joined | 10:20 |
|
jizanthapus-work
| tshirtman, stashes are shared between all branches, no? | 10:20 |
| → tvw joined | 10:20 |
|
tshirtman
| jizanthapus-work: yes, but i grep on the branch i'm checking out | 10:21 |
| → zacts joined | 10:21 |
| → arietis joined | 10:21 |
|
tshirtman
| so i know i stashed things there next time i check it out | 10:21 |
| → mossplix joined | 10:23 |
| ← robarelli left | 10:24 |
| ← ghoti left | 10:24 |
| → ghoti joined | 10:25 |
| → tobeplugged joined | 10:25 |
| ← mossplix left | 10:27 |
| ← joelroa left | 10:27 |
| → frogonwheels_ joined | 10:27 |
| → jluc joined | 10:27 |
|
tshirtman
| ok, i just needed an "exit 0" at the end of the script | 10:27 |
| ← hkon_ left | 10:28 |
| → WaReZ joined | 10:28 |
| ← mishok13 left | 10:29 |
| ← rednaks left | 10:29 |
| → NCS_One joined | 10:29 |
| ← ghoti left | 10:30 |
| ← frogonwheels left | 10:31 |
| → ghoti joined | 10:31 |
| ← zacts left | 10:31 |
| ← reskp left | 10:31 |
| ← aarapov left | 10:31 |
| ← vince_prignano left | 10:31 |
| → vince_prignano joined | 10:32 |
| → HelperW joined | 10:32 |
| → shinnya joined | 10:32 |
| ← mrhooray left | 10:32 |
| ← ehmatthes left | 10:33 |
| ← shafox left | 10:34 |
| → mossplix joined | 10:34 |
| → reskp_ joined | 10:34 |
| ← fairuz left | 10:35 |
| ← luc_ left | 10:35 |
| → vtunka joined | 10:35 |
| → Nizumzen joined | 10:35 |
| ← Guest72372 left | 10:35 |
| → carbon joined | 10:35 |
| ← carbon left | 10:35 |
| ← ghoti left | 10:35 |
| → aarapov joined | 10:36 |
| frogonwheels_ → frogonwheels | 10:36 |
| → dmarkham joined | 10:36 |
| → cilly joined | 10:36 |
| ← lolmaus left | 10:36 |
| → ehmatthes joined | 10:37 |
| ← hyperair left | 10:37 |
| → teran joined | 10:37 |
| → ghoti joined | 10:37 |
| ← not_a_guest left | 10:37 |
| → lolmaus joined | 10:37 |
| ← icbaek left | 10:38 |
| → Hecter joined | 10:38 |
| → PeterBooker joined | 10:40 |
| → zacts joined | 10:41 |
| ← fatalhalt left | 10:42 |
| ← ghoti left | 10:42 |
| → sdouglas joined | 10:42 |
| → ghoti joined | 10:43 |
| ← tobeplugged left | 10:45 |
| ← sdouglas left | 10:47 |
| ← fluter left | 10:47 |
| → fluter joined | 10:47 |
| → Foredoomed joined | 10:47 |
| → Guest72372 joined | 10:48 |
| ← ghoti left | 10:48 |
| → ghoti joined | 10:49 |
| ← h0bbit_ left | 10:49 |
| → jargon joined | 10:49 |
| → hkon_ joined | 10:51 |
| ← kcj left | 10:52 |
| → mishok13 joined | 10:52 |
| → kenyasue joined | 10:53 |
| ← Lemony left | 10:54 |
| → h0bbit_ joined | 10:54 |
| ← jaf2k left | 10:54 |
| → joelroa joined | 10:54 |
| ← ghoti left | 10:54 |
| → Lemony joined | 10:54 |
| ← h0bbit_ left | 10:54 |
| → ghoti joined | 10:55 |
| ← kenyasue left | 10:55 |
| → tmart_ joined | 10:55 |
| ← rethus left | 10:56 |
| → dhilipsi_ joined | 10:57 |
| ← tmart left | 10:58 |
| → rethus joined | 10:58 |
| ← dhilipsiva left | 10:58 |
| → teran_ joined | 10:59 |
| ← darnir_ left | 11:00 |
| ← ghoti left | 11:00 |
| ← teran left | 11:00 |
| → ghoti joined | 11:01 |
| ← m0ltar left | 11:02 |
| ← Foredoomed left | 11:02 |
| ← reskp_ left | 11:02 |
| ← souther left | 11:02 |
| → souther joined | 11:03 |
| ← Nizumzen left | 11:04 |
| ← otiose left | 11:04 |
| ← joelroa left | 11:04 |
| ← pierre1_ left | 11:04 |
| → Gavrisimo joined | 11:04 |
| ← shingshang left | 11:05 |
| → lithiumjake joined | 11:05 |
| → hochmeister joined | 11:06 |
| ← ghoti left | 11:06 |
| ← _Vi left | 11:07 |
| ← Sonderblade left | 11:07 |
| → ghoti joined | 11:08 |
| → mellernoia joined | 11:08 |
| → rgr joined | 11:08 |
| ← zacts left | 11:08 |
| ← dmarkham left | 11:09 |
| ← Gavrisimo left | 11:09 |
| → Juzzika joined | 11:09 |
| → ben_alman joined | 11:10 |
| ← hochmeister left | 11:10 |
| ← vurma left | 11:12 |
| ← ghoti left | 11:13 |
| → ghoti joined | 11:13 |
| → Hounddog joined | 11:14 |
| ← daito left | 11:14 |
| ← ben_alman left | 11:14 |
| → oskarkv joined | 11:14 |
| → daito joined | 11:14 |
| ← Gizburdt left | 11:15 |
| ← teran_ left | 11:17 |
| → teran joined | 11:18 |
| ← ghoti left | 11:18 |
| ← daito left | 11:19 |
| → felipewm joined | 11:19 |
| ← cagedwisdom left | 11:19 |
| → Sicp joined | 11:19 |
| → ghoti joined | 11:19 |
| → robarelli joined | 11:20 |
| → leakybuckit joined | 11:20 |
| → ben_alman joined | 11:20 |
|
pikaren
| what is this font? http://i.imgur.com/I1valOP.png | 11:21 |
| → shingshang joined | 11:22 |
| ← QoS left | 11:22 |
|
osse
| pikaren: try http://www.myfonts.com/WhatTheFont/ | 11:22 |
| → marcjs joined | 11:24 |
| ← ghoti left | 11:24 |
| ← robarelli left | 11:24 |
| ← mossplix left | 11:24 |
| ← Watabou left | 11:25 |
| → zacts joined | 11:25 |
| → ghoti joined | 11:25 |
| → pierre1_ joined | 11:25 |
| ← john2x left | 11:26 |
| ← ben_alman left | 11:26 |
| ← vtunka left | 11:26 |
| → john2x joined | 11:26 |
|
jast
| pikaren: possibly Andale Mono | 11:27 |
| → Gavrisimo joined | 11:27 |
| ← ferreum left | 11:29 |
|
pikaren
| jast: hmm... it seems quite similar | 11:29 |
|
jast
| tshirtman: quicker way to get the branch name: git symbolic-ref --short HEAD | 11:30 |
| → HeN_ joined | 11:30 |
| → tomengland joined | 11:31 |
| ← ghoti left | 11:31 |
|
pikaren
| osse: that's a cool site... but the suggestion is a bit off for my case | 11:31 |
|
jast
| pikaren: it's not *actually* Andale Mono... the lowercase L is different | 11:31 |
| ← flappy_bird left | 11:31 |
| → ghoti joined | 11:31 |
| → scottj joined | 11:32 |
| ← rethus left | 11:33 |
| ← torsten left | 11:33 |
| ← draftqin left | 11:34 |
| → BbT0n joined | 11:34 |
| → torsten joined | 11:34 |
|
scottj
| Isn't there a way to show the changes that will be made in the COMMIT_EDITMSG file? I often want to refer to them while writing the commit message | 11:34 |
|
jast
| scottj: git commit -v | 11:35 |
|
| (the changes are not automatically included in the commit message) | 11:35 |
|
scottj
| jast: thanks | 11:35 |
| ← tomengland left | 11:35 |
| ← Misan left | 11:36 |
| → mossplix joined | 11:36 |
| → Gizburdt joined | 11:36 |
|
ewet
| pikaren: look no further ;) http://www.fsd.it/fonts/pragmatapro.htm | 11:36 |
| ← ghoti left | 11:36 |
| → ghoti joined | 11:37 |
| ← intellix left | 11:38 |
| → tobeplugged joined | 11:38 |
| → MacGyver joined | 11:38 |
| ← MacGyver left | 11:38 |
| → MacGyver joined | 11:38 |
|
fluter
| how can I let git think it is not in a repo? | 11:39 |
| → reskp joined | 11:39 |
|
jast
| for what purpose? | 11:39 |
|
akheron
| GIT_DIR=/does/not/exist maybe? | 11:40 |
|
jast
| that will give you an error message on many operations | 11:40 |
|
fluter
| jast, some script checks souce control in my dir, I wanna avoid that | 11:40 |
|
jast
| right, try the GIT_DIR approach | 11:41 |
|
fluter
| ah, that works | 11:41 |
| → rethus joined | 11:42 |
| ← vijay13 left | 11:42 |
| ← ghoti left | 11:42 |
| ← oskarkv left | 11:42 |
| → oskarkv joined | 11:42 |
|
ewet
| still think this is !xy | 11:42 |
| → ferreum joined | 11:42 |
|
jast
| perhaps the whole script is xy | 11:42 |
| → ghoti joined | 11:43 |
|
osse
| pikaren: I tried it at got an error about the image file itself. Did you do something with it ? | 11:44 |
| ← aarapov left | 11:44 |
|
jast
| meanwhile I'll go have lunch. perhaps gitinfo will fix itself while I'm gone. :) | 11:44 |
| ← Balliad left | 11:44 |
|
ewet
| :) | 11:44 |
| → _iron joined | 11:45 |
| → clone1018_ joined | 11:46 |
| → mrpink joined | 11:46 |
| → aarapov joined | 11:47 |
| → caseydriscoll joined | 11:47 |
|
pikaren
| osse: nope | 11:47 |
| → qknight_ joined | 11:48 |
| → a joined | 11:48 |
| → runnyspot joined | 11:48 |
| ← ghoti left | 11:48 |
| → lemonjelly joined | 11:48 |
| a → Guest84615 | 11:48 |
| → samsamm joined | 11:48 |
| → dc5ala joined | 11:48 |
| → here_ joined | 11:49 |
| → hamster joined | 11:49 |
| → wcpan_ joined | 11:49 |
| → lolmaus_ joined | 11:49 |
| → wagle_ joined | 11:49 |
| → noname001__ joined | 11:49 |
| → razZzz joined | 11:49 |
| → JonasF_ joined | 11:49 |
| → rjc_ joined | 11:50 |
| → pradeepc joined | 11:50 |
| → xsbeats_ joined | 11:50 |
| ← Hecter left | 11:50 |
| → chris2_ joined | 11:50 |
| → robmozart__ joined | 11:50 |
| → Moult_ joined | 11:50 |
| → Drakevr_ joined | 11:51 |
| → elijah_ joined | 11:51 |
| → potatoe- joined | 11:51 |
| → jonasdk90 joined | 11:51 |
| → mackanfk1 joined | 11:51 |
| → multi_io_ joined | 11:51 |
| ← jnewt left | 11:51 |
| → jonny| joined | 11:51 |
| → Balliad joined | 11:51 |
| ← cilly left | 11:51 |
| → Orphis joined | 11:51 |
| ← mehdi left | 11:51 |
| → cillybabe joined | 11:51 |
| → comps_ joined | 11:51 |
| → nephyrin joined | 11:51 |
| → jnewt joined | 11:51 |
| → alorence_ joined | 11:51 |
| → Drool joined | 11:52 |
| → h12o_ joined | 11:52 |
| → mehdi joined | 11:52 |
| ← samsamm777 left | 11:52 |
| → BeardlessOne_ joined | 11:52 |
| samsamm → samsamm777 | 11:52 |
| → DanielHollands joined | 11:52 |
| → ahf_ joined | 11:52 |
| → harleypig_ joined | 11:52 |
| → Raging_Hog joined | 11:52 |
| → chuckharmston__ joined | 11:52 |
| → adam_____ joined | 11:53 |
| → jeffhung_ joined | 11:53 |
| → dsop_ joined | 11:53 |
| Drakevr_ → Drakevr | 11:53 |
| → ping_pong joined | 11:53 |
| → vital_ joined | 11:53 |
| → sjmikem1 joined | 11:53 |
| ← sjmikem1 left | 11:53 |
| ← Drakevr left | 11:53 |
| → Drakevr joined | 11:53 |
| → foredoomed joined | 11:53 |
| → Khere_ joined | 11:53 |
| ← samsamm777 left | 11:54 |
| → Sajbar_ joined | 11:54 |
| → arand_ joined | 11:54 |
| → mjessome_ joined | 11:54 |
| → hiredman_ joined | 11:54 |
| → Seveaz joined | 11:54 |
| → samsamm777 joined | 11:54 |
| → krkini joined | 11:54 |
| → sjmikem1 joined | 11:54 |
| → kapowaz_ joined | 11:54 |
| ← sjmikem1 left | 11:54 |
| ← toki left | 11:54 |
| → mtlatif__ joined | 11:55 |
| → ghoti joined | 11:55 |
| → iamtakingiteasy joined | 11:55 |
| → dglambert__ joined | 11:55 |
| → kwmiebach____ joined | 11:55 |
| ← mossplix left | 11:55 |
| → PLejeck- joined | 11:55 |
| → _richardJ joined | 11:55 |
| → ballock_ joined | 11:55 |
| ← elijah left | 11:55 |
| ← tapout left | 11:55 |
| ← sword left | 11:55 |
| ← misterpink left | 11:55 |
| → sword joined | 11:55 |
| ← caseydri_ left | 11:55 |
| elijah_ → elijah | 11:55 |
| ← gua_ould left | 11:55 |
| ← runnyspo1 left | 11:55 |
| ← blast_hardcheese left | 11:55 |
| ← catsup left | 11:55 |
| ← tieTYT left | 11:55 |
| ← jagob left | 11:55 |
| ← here left | 11:55 |
| → MrDHat joined | 11:55 |
| razZzz → raz | 11:55 |
| ← lolmaus left | 11:55 |
| → Klumben joined | 11:55 |
| ← wcpan left | 11:55 |
| ← BeardlessOne left | 11:55 |
| ← alorence left | 11:55 |
| ← xsbeats left | 11:55 |
| ← troyt left | 11:55 |
| ← adam____ left | 11:55 |
| ← robmozart_ left | 11:55 |
| ← raz left | 11:55 |
| → raz joined | 11:55 |
| → kamal_ joined | 11:56 |
| → _main_ joined | 11:56 |
| → Novacha joined | 11:56 |
| ← __noname001__ left | 11:56 |
| ← JonasF left | 11:56 |
| ← sjmikem left | 11:56 |
| ← harleypig left | 11:56 |
| ← OMGOMG left | 11:56 |
| ← nanotech left | 11:56 |
| ← gitinfo left | 11:56 |
| ← multi_io left | 11:56 |
| ← kwmiebach___ left | 11:56 |
| ← chris2 left | 11:56 |
| → sword` joined | 11:56 |
| ← Leoneof left | 11:56 |
| ← scalability-junk left | 11:56 |
| → m0ltar joined | 11:56 |
| → freestyl3r joined | 11:56 |
| → OMGOMG_ joined | 11:56 |
| → Vampire0_ joined | 11:56 |
| → tieTYT joined | 11:56 |
| harleypig_ → harleypig | 11:56 |
| → drsykb joined | 11:56 |
| → OMGOMG joined | 11:56 |
| ← Octalot left | 11:56 |
| ← nephyrin` left | 11:56 |
| ← _ikke_ left | 11:56 |
| ← PLejeck left | 11:56 |
| → BaconOverflow___ joined | 11:56 |
| → sjmikem joined | 11:56 |
| → blast_hardcheese joined | 11:56 |
| BeardlessOne_ → BeardlessOne | 11:56 |
| → _ikke__ joined | 11:56 |
| adam_____ → adam____ | 11:56 |
| ← Droolio left | 11:56 |
| ← tphd left | 11:56 |
| ← dserodio left | 11:56 |
| ← rchavik left | 11:56 |
| ← LimeBlast left | 11:56 |
| ← ronskisika left | 11:56 |
| ← bartman`` left | 11:56 |
| ← vital left | 11:56 |
| → jgornick joined | 11:56 |
| ← BbT0n left | 11:56 |
| ← john2x left | 11:56 |
| → gnarf joined | 11:56 |
| ← Druide_ left | 11:56 |
| ← ValicekB left | 11:56 |
| ← chrisward left | 11:56 |
| ← dglambert_ left | 11:56 |
| robmozart__ → robmozart_ | 11:56 |
| ← mjessome left | 11:56 |
| ← MrDHat left | 11:56 |
| ← Seveas left | 11:56 |
| → bartman`` joined | 11:56 |
| ← WaReZ left | 11:56 |
| ← Vampire0 left | 11:56 |
| ← xrogaan left | 11:56 |
| ← gnarf left | 11:56 |
| → gnarf joined | 11:56 |
| → dmarr joined | 11:56 |
| ← Bombe left | 11:56 |
| → arjun_ joined | 11:56 |
| → BbT0n joined | 11:56 |
| → Bombe joined | 11:56 |
| → brewmaster joined | 11:56 |
| ← Bombe left | 11:56 |
| → Bombe joined | 11:56 |
| → mjulian joined | 11:56 |
| → xrogaan joined | 11:56 |
| → MrDHat joined | 11:56 |
| ← ScottE left | 11:56 |
| → chriswk__ joined | 11:56 |
| ← sword left | 11:56 |
| ← iamtakin1iteasy left | 11:56 |
| ← WakiMiko left | 11:56 |
| → scalability-junk joined | 11:56 |
| ← mjulian left | 11:56 |
| → mjulian joined | 11:56 |
| ← xrogaan left | 11:56 |
| → xrogaan joined | 11:56 |
| → thunderbolt_ joined | 11:56 |
| → bandroidx joined | 11:56 |
| → dserodio joined | 11:56 |
| ← RichardJ left | 11:56 |
| → slax0r joined | 11:56 |
| ← OMGOMG left | 11:56 |
| → gitinfo joined | 11:56 |
| → Okaria joined | 11:56 |
| sword` → sword | 11:56 |
| → Druide_ joined | 11:56 |
| ← peper left | 11:56 |
| ← chriswk__ left | 11:56 |
| → chriswk__ joined | 11:56 |
| ← scalability-junk left | 11:56 |
| → scalability-junk joined | 11:56 |
| ← thunderbolt_ left | 11:56 |
| → thunderbolt_ joined | 11:56 |
| Seveaz → Seveas | 11:56 |
| ChanServ set mode: +o | 11:56 |
| ← dserodio left | 11:56 |
| → dserodio joined | 11:56 |
| ← Okaria left | 11:56 |
| → Okaria joined | 11:56 |
| ← bandroidx left | 11:56 |
| → bandroidx joined | 11:56 |
| → rchavik_ joined | 11:56 |
| → tapout joined | 11:56 |
| → troyt joined | 11:56 |
| → luminous joined | 11:57 |
| → Leoneof joined | 11:57 |
| ← slax0r left | 11:57 |
| → slax0r joined | 11:57 |
| → neal__ joined | 11:57 |
| → peper joined | 11:57 |
| → ConstantineXVI joined | 11:57 |
| → nanotech joined | 11:57 |
| dglambert__ → dglambert_ | 11:57 |
| chuckharmston__ → chuckharmston_ | 11:57 |
| ahf_ → ahf | 11:57 |
| → vurma joined | 11:57 |
| → MindfulMonk joined | 11:57 |
| kapowaz_ → kapowaz | 11:57 |
| → chrisgward joined | 11:57 |
| → jokajak joined | 11:57 |
| → ruskie joined | 11:58 |
| ← jonasdk90 left | 11:58 |
| ← Novacha left | 11:58 |
| → Novacha joined | 11:58 |
| ← paulweb515 left | 11:58 |
| → tplaner joined | 11:58 |
| → Rylee joined | 11:59 |
| _main_ → __main__ | 11:59 |
| ← tplaner left | 11:59 |
| → ValicekB_ joined | 11:59 |
| ← ghoti left | 11:59 |
| ← blackmesa left | 12:00 |
| → mossplix joined | 12:00 |
| → hahuang61 joined | 12:00 |
| → john2x joined | 12:00 |
| → ghoti joined | 12:01 |
| ← pduin left | 12:01 |
| → joelroa joined | 12:01 |
| → jonasdk89 joined | 12:01 |
| ← Sicp left | 12:01 |
| chrisgward → chrisward | 12:01 |
| → pduin joined | 12:02 |
| → sdrfnord1 joined | 12:02 |
| ← sdrfnord1 left | 12:02 |
| → takamichi joined | 12:02 |
| ValicekB_ → ValicekB | 12:04 |
| → ggherdov joined | 12:04 |
| ← hahuang61 left | 12:04 |
| ← joelroa left | 12:05 |
| ← SLY1986 left | 12:05 |
| _ikke__ → _ikke_ | 12:05 |
| ← ghoti left | 12:06 |
| ← pduin left | 12:06 |
| → ghoti joined | 12:07 |
| ← noxd left | 12:08 |
| → reim joined | 12:08 |
| → gua_ould joined | 12:09 |
| → PeterBoo joined | 12:10 |
| ← PeterBoo left | 12:10 |
| ← PeterBooker left | 12:11 |
| → _Vi joined | 12:11 |
| ← vince_prignano left | 12:11 |
| ← joki left | 12:11 |
| ← ghoti left | 12:12 |
| → PeterBooker joined | 12:12 |
| → Hecter joined | 12:12 |
| → ghoti joined | 12:13 |
| ← reskp left | 12:13 |
| → reskp joined | 12:14 |
| → tgkokk joined | 12:14 |
| → joki joined | 12:17 |
| ← mf_ left | 12:17 |
| → vijay13 joined | 12:17 |
| → mf_ joined | 12:17 |
| → Sicp joined | 12:17 |
| ← Sicp left | 12:17 |
| → Sicp joined | 12:17 |
| mf_ → Guest43772 | 12:18 |
| ← ghoti left | 12:18 |
| ← vijay13 left | 12:19 |
| → ghoti joined | 12:19 |
| → n-st joined | 12:19 |
| → blinkdesign joined | 12:20 |
| → craigp joined | 12:20 |
| → Misan joined | 12:20 |
| → WaReZ joined | 12:20 |
| ← bartman`` left | 12:21 |
|
n-st
| hi, i'm trying to remap C-F4, but pressing Ctrl+F4 inserts "1;5S"... | 12:21 |
| → robarelli joined | 12:21 |
| → WakiMiko joined | 12:21 |
| ← nick108 left | 12:21 |
|
jast
| n-st: you may be in the wrong channel :) | 12:21 |
|
moritz
| git doesn't do any character mappings :-) | 12:21 |
| → nick108 joined | 12:22 |
| → codeFiend joined | 12:22 |
|
luto
| but you can version your character mappings with git! | 12:22 |
|
n-st
| oops, that was meant to go on #vim. sorry :/ | 12:22 |
|
| luto: i already am :) | 12:22 |
| ← Sicp left | 12:22 |
|
moritz
| only has an edit distance of 2 | 12:22 |
|
| :-) | 12:22 |
| chris2_ → chris2 | 12:22 |
| Keridos_off → Keridos | 12:23 |
|
osse
| lebensraum distance = 2 | 12:23 |
|
n-st
| moritz: well, with three characters, a hamming distance of 2 is quite a lot ;) | 12:23 |
| → pduin joined | 12:24 |
|
osse
| oops, I mean levenshtein distance | 12:24 |
| ← arjun_ left | 12:24 |
| ← ghoti left | 12:24 |
|
moritz
| pah, relativism! | 12:24 |
| → SilverBln joined | 12:24 |
| → ss1891 joined | 12:24 |
| → ngladitz joined | 12:24 |
| Keridos → Keridos_off | 12:25 |
| → ghoti joined | 12:25 |
| ← robarelli left | 12:26 |
| ← nick108 left | 12:26 |
| ← tgkokk left | 12:27 |
|
torsten
| how do I stop git from tracking vim .swp files? | 12:28 |
| → Xethron joined | 12:28 |
| ← Xethron left | 12:28 |
| → Xethron joined | 12:28 |
|
canton7
| add *.swp to your .gitignore, git rm --cached offending_files | 12:29 |
|
| add, commit, etc | 12:29 |
|
bremner
| also, don't use commit -a | 12:29 |
| ← sluther left | 12:29 |
| alorence_ → alorence | 12:29 |
| → eletuchy_ joined | 12:29 |
| ← n-st left | 12:29 |
|
bremner
| I mean you can, if everything is just right with your .gitignore, but these are the kind of problems it leads to | 12:29 |
| → n-st joined | 12:30 |
|
osse
| bremner: commit -a will only commit already tracked files, though | 12:30 |
| → skorgon joined | 12:30 |
| → kriks joined | 12:30 |
| ← ghoti left | 12:30 |
|
bremner
| ah, good point. | 12:30 |
|
| "git add ." then | 12:30 |
|
osse
| oui | 12:30 |
| → ghoti joined | 12:31 |
| Guest43772 → mf_ | 12:31 |
| → nkr joined | 12:31 |
| → tomengland joined | 12:32 |
| ← Kayra left | 12:32 |
| → fairuz joined | 12:32 |
| Keridos_off → Keridos | 12:33 |
| ← eletuchy left | 12:33 |
| ← eletuchy_ left | 12:34 |
| ← tomengland left | 12:36 |
| → tgkokk joined | 12:36 |
| ← tgkokk left | 12:36 |
| ← ghoti left | 12:36 |
| ← codeFiend left | 12:36 |
| → plitzenberger joined | 12:36 |
| ← Gavrisimo left | 12:37 |
| ← fluter left | 12:37 |
| → ghoti joined | 12:37 |
| ← fairuz left | 12:37 |
| → arjun_ joined | 12:37 |
| → GT4066 joined | 12:38 |
| ← Sabbath left | 12:41 |
| ← ghoti left | 12:42 |
| → CheckDavid joined | 12:43 |
| → cannonball joined | 12:43 |
| → ghoti joined | 12:43 |
| → sdouglas joined | 12:44 |
| ← ChrisAnn left | 12:44 |
| → sohail joined | 12:45 |
| ← sohail left | 12:45 |
| → sohail joined | 12:45 |
| ← john2x left | 12:46 |
| ← Leoneof left | 12:46 |
| → vince_prignano joined | 12:47 |
| → Ericx2x joined | 12:47 |
| → DoniRS joined | 12:47 |
| → john2x joined | 12:48 |
| ← ghoti left | 12:48 |
| → becks__ joined | 12:48 |
| ← sdouglas left | 12:48 |
| ← luminous left | 12:49 |
| → luminous joined | 12:49 |
| → ghoti joined | 12:49 |
| → shpoont joined | 12:49 |
| ← Guest72372 left | 12:50 |
| ← Advocation left | 12:51 |
| → Advocation_ joined | 12:51 |
| → northfurr joined | 12:51 |
| → eletuchy joined | 12:52 |
| → nick108 joined | 12:52 |
| → deciph3r joined | 12:52 |
| → mani2399 joined | 12:52 |
| ← ghoti left | 12:54 |
| → harish joined | 12:55 |
| → ghoti joined | 12:56 |
| → saurabh joined | 12:56 |
| ← cads left | 12:56 |
| ← nick108 left | 12:56 |
| → omarek joined | 12:56 |
| saurabh → Guest559 | 12:56 |
| ← mani2399 left | 12:57 |
| → intellix joined | 12:57 |
|
omarek
| Hi, I accidentally made a mess and commited older version of 4 images to production. I want to restore the 4 images from previous commit and make a push to origin from production. | 12:57 |
|
| What command can do this ? | 12:57 |
| → bicyclette joined | 12:58 |
| → cads joined | 12:58 |
|
omarek
| I know I 0) git is not a deployment tool 1) no one should ever push FROM production, but this project is a mess anyway and I'm trying to keep my head above water surface. | 12:58 |
|
grumbel_
| omarek: You can checkout old versions of those files using git checkout <commit-id-from-where-to-get-the-images> -- <image-filenames> | 12:59 |
|
| then commit & push | 12:59 |
| ← NCS_One left | 13:00 |
| → conan joined | 13:00 |
| ← ghoti left | 13:00 |
|
scottj
| I clone upstream, create feature branch, create commits, create fork on github, add my fork as remote, now how do I associate my feature branch with my remote so that I can push it to my github correctly? | 13:01 |
| → ghoti joined | 13:02 |
| ← zumba_ad_ left | 13:02 |
|
_ikke_
| scottj: git push <remote> feature | 13:02 |
| ← teran left | 13:02 |
| → joelroa joined | 13:02 |
|
moritz
| scottj: git push -u <yourremote> <branchname> | 13:02 |
|
_ikke_
| where remote is the name of the remote for your fork | 13:02 |
|
| creating tracking information for feature branches is not really useful imo | 13:02 |
|
| because they're usually short-lived | 13:02 |
| rjc_ → rjc | 13:03 |
| → teran_ joined | 13:03 |
|
scottj
| _ikke_: moritz: thanks | 13:03 |
|
| moritz merged a feature branch yesterday that started in December | 13:03 |
|
_ikke_
| usually | 13:03 |
|
| and it's still short-lived relative to other branches | 13:03 |
|
slax0r
| long ass feature | 13:04 |
| ← jaequery_ left | 13:04 |
| → IrishPrime joined | 13:04 |
| ← nnyk_ left | 13:05 |
| ← fr33 left | 13:05 |
| Keridos → Keridos_off | 13:05 |
| → vtunka joined | 13:06 |
| ← xsbeats_ left | 13:06 |
|
| samsamm777 is away: Gone away for now | 13:06 |
| ← filter left | 13:07 |
|
omarek
| grumbel_: thank you. | 13:07 |
| ← joelroa left | 13:07 |
| ← plitzenberger left | 13:07 |
| ← ghoti left | 13:07 |
| → Gavrisimo joined | 13:08 |
| → ghoti joined | 13:08 |
|
scottj
| so is the above workflow I outlined the one you guys recommend for new contributing to projects? I like it because when I clone initially I'm often not planning on contributing, so this allows me to see if I can make the changes correctly (and often give up) before having to bother forking on github. when I add my remote, should I always make it origin or just use my username? | 13:09 |
| → boblee joined | 13:09 |
| Vampire0_ → Vampire0 | 13:10 |
|
slax0r
| that's up to you | 13:10 |
|
moritz
| scottj: I usually do it the same as you, for the same reasons. And my remote name is usually my github user name | 13:10 |
| → AndreasLutro joined | 13:11 |
| ← Roots47 left | 13:11 |
| ← Juzzika left | 13:11 |
|
AndreasLutro
| anyone know of a way to make `git tag -l` sort versions correctly? 0.1.10 is appearing before 0.1.2 | 13:11 |
| → Kayra joined | 13:12 |
|
Vampire0
| rawtaz, you're welcome | 13:12 |
| ← Gavrisimo left | 13:12 |
|
rawtaz
| :) | 13:12 |
| ← yacks left | 13:12 |
|
moritz
| AndreasLutro: maybe pipe it through | sort -n ? | 13:13 |
| ← ghoti left | 13:13 |
| → jaequery joined | 13:13 |
|
AndreasLutro
| apparently there is a sort -V | 13:13 |
|
| that's pretty awesome | 13:13 |
|
osse
| AndreasLutro: there's a proposed patch to make tag have builtin version sort. Right now you're best bet is git tag | sort -V | 13:14 |
|
AndreasLutro
| cool | 13:14 |
|
osse
| but -V is fairly recent and specific to GNU sort (I think) | 13:14 |
|
AndreasLutro
| would that work as a git alias? | 13:14 |
|
| or do I need to make a bash alias/function | 13:14 |
| ← skorgon left | 13:14 |
| ← Raging_Hog left | 13:14 |
| → ghoti joined | 13:14 |
|
osse
| AndreasLutro: git config alias.tagsort '!git tag | sort -V' | 13:14 |
|
| AndreasLutro: a Git alias starting with '!' will execute as an external command | 13:15 |
|
AndreasLutro
| osse: awesome, thanks :) | 13:15 |
|
| add -n to that tag alias and that's one damn sweet alias | 13:17 |
| ← reskp left | 13:17 |
| → nick108 joined | 13:17 |
| ← intellix left | 13:18 |
| → skorgon joined | 13:18 |
| ← jaequery left | 13:18 |
| → Nickeeh joined | 13:18 |
| ← ghoti left | 13:19 |
|
osse
| hmm, do you need -n when you use -V ? o_O | 13:20 |
| ← Balliad left | 13:20 |
|
AndreasLutro
| no | 13:20 |
|
| -n just shows the tag message | 13:20 |
|
amoe
| When switching branches, git moves unstaged changes in tracked files to the new branch if they do not conflict. Is there any way to get git to complain and force you to commit the changes instead? | 13:20 |
| → ghoti joined | 13:20 |
|
osse
| ahh | 13:20 |
| → ben_alman joined | 13:21 |
| ← conan left | 13:21 |
| → robarelli joined | 13:22 |
| → xsbeats joined | 13:22 |
| → paulweb515 joined | 13:22 |
| → tplaner joined | 13:22 |
| ← tplaner left | 13:22 |
| → tplaner joined | 13:22 |
|
osse
| AndreasLutro: might want to add | less -FX too :) | 13:23 |
|
| but that's a preference thing | 13:23 |
| → Balliad joined | 13:23 |
| ← skorgon left | 13:24 |
| → skorgon joined | 13:24 |
| ← ben_alman left | 13:24 |
| → bluesm joined | 13:25 |
| ← ghoti left | 13:25 |
| → joelroa joined | 13:26 |
| → zivester joined | 13:26 |
|
grumbel_
| amoe: you'll probably have to write a small script that does that yourself (fail if WD not clear, otherwise checkout branch) and call that, maybe through a git alias | 13:26 |
| ← robarelli left | 13:26 |
| → modocache joined | 13:26 |
| → ghoti joined | 13:26 |
|
AndreasLutro
| osse: that's super awesome :D | 13:26 |
| → AAADS40 joined | 13:27 |
|
osse
| AndreasLutro: hmmmmmmmmm... since the pager is doing its thing now maybe sort -r would be appropriate | 13:27 |
|
| ^_^ | 13:27 |
| → Silmarilion joined | 13:27 |
|
AndreasLutro
| -rV ? | 13:27 |
|
| makes sense | 13:28 |
|
| though... | 13:28 |
| ← marcjs left | 13:28 |
| ← paulweb515 left | 13:28 |
|
AndreasLutro
| not sure, but you've given me plenty to play around with :D | 13:28 |
|
osse
| hmm, that was certainly not my intetion. Go outside and play! Fresh air! | 13:29 |
|
amoe
| grumbel_: thanks, will look into it :) | 13:29 |
|
AndreasLutro
| after work | 13:29 |
|
| ;) | 13:29 |
|
osse
| play in the sandbox and the swing set thingy | 13:29 |
| ← skorgon left | 13:30 |
| ← joelroa left | 13:30 |
| → conan joined | 13:31 |
| → skorgon joined | 13:31 |
| ← ghoti left | 13:31 |
| ← shpoont left | 13:31 |
|
osse
| AndreasLutro: FYI the patch to git-tag itself has made it to the "proposed updates" branch so it'll be in Git eventually | 13:32 |
| → ghoti joined | 13:32 |
|
AndreasLutro
| gotcha | 13:32 |
|
| but I like learning to do stuff like this regardless | 13:32 |
| → dougsland joined | 13:33 |
|
osse
| me too | 13:33 |
| ← Balliad left | 13:33 |
| → Dudi joined | 13:33 |
| → reskp joined | 13:34 |
| ← CodeShark left | 13:34 |
| → Not_Whatever joined | 13:34 |
| → CodeShark joined | 13:34 |
| → Balliad joined | 13:34 |
| → mourest joined | 13:35 |
| ← Guest559 left | 13:35 |
| → Juzzika joined | 13:36 |
| ← skorgon left | 13:37 |
| ← ghoti left | 13:37 |
| → skorgon joined | 13:37 |
|
| samsamm777 is back. | 13:38 |
| → Leoneof joined | 13:38 |
| → yacks joined | 13:38 |
| → ghoti joined | 13:38 |
| → luxgeek joined | 13:39 |
| ← sohail left | 13:39 |
| → dort joined | 13:39 |
| → polyzen joined | 13:39 |
| ← aarapov left | 13:40 |
| ← ewet left | 13:41 |
| → paulweb515 joined | 13:42 |
| ← ghoti left | 13:43 |
| ← skorgon left | 13:43 |
| → ghoti joined | 13:44 |
| → smashwilson joined | 13:44 |
| → sdouglas joined | 13:44 |
| ← felipewm left | 13:45 |
| → daito_ joined | 13:45 |
| → marcosc joined | 13:48 |
| ← ghoti left | 13:48 |
| → Guest559 joined | 13:49 |
| → OliverJAsh joined | 13:49 |
| ← OliverJAsh left | 13:49 |
| ← sdouglas left | 13:49 |
| → ghoti joined | 13:49 |
| ← eletuchy left | 13:50 |
|
marcosc
| Hi, I'm on a Mac and I'm wondering how do I tell git to not change the line endings from files that were created on Windows? | 13:50 |
| → ojacobson joined | 13:50 |
| → scelis joined | 13:50 |
|
_ikke_
| git config --global core.autocrlf input | 13:51 |
|
osse
| the default is for it not to, I think | 13:51 |
|
marcosc
| _ikke_: thanks! | 13:51 |
| → awx joined | 13:51 |
|
_ikke_
| marcosc: read also !crlf | 13:51 |
|
gitinfo
| marcosc: to fix problems with line endings on different platforms, check out http://line-endings.gitrecipes.de/ | 13:51 |
| → phanimahesh joined | 13:52 |
| gitinfo set mode: +v | 13:52 |
| ← daito_ left | 13:52 |
| ← Guest559 left | 13:53 |
| → m0viefreak joined | 13:53 |
| ← beautifulmind left | 13:53 |
| → tmcmahon joined | 13:54 |
| → angelleye joined | 13:54 |
| → jiriki- joined | 13:54 |
| ← jiriki- left | 13:55 |
| ← ghoti left | 13:55 |
| → sdouglas joined | 13:55 |
| → jiriki joined | 13:55 |
| → ghoti joined | 13:55 |
|
angelleye
| I'm on Windows. Say I have a repo with a master branch, and I create a new branch called feature1. In feature1 I create some folders, files, etc. I commit everything, but it's not done yet, so I don't merge anything yet. Then I checkout master, but when it switches I end up with error that it can't delete directories, and it leaves behind any new folders I had created in the feature1 branch. | 13:56 |
| → mizu_no_oto joined | 13:56 |
|
moritz
| angelleye: what is the exact error message? | 13:56 |
| → saurabh joined | 13:57 |
|
angelleye
| mortiz: let me see if I can re-create it real quick and see... | 13:57 |
| ← tmcmahon left | 13:57 |
| saurabh → Guest98565 | 13:57 |
|
grumbel_
| angelleye: the directory might be open by some process (such as the shell where you do your git commands); windows is a bit picky abount deleting folders that are working directories of a life process | 13:58 |
| ← omarek left | 13:58 |
|
angelleye
| Yeah, I t hink it's a permissions issue | 13:58 |
|
| But is there no way around that? everybody just deals with it..?? | 13:58 |
|
moritz
| people just use different operating systems :-) | 13:59 |
| → noxd joined | 13:59 |
| → buffal0 joined | 13:59 |
|
angelleye
| Still not the majority | 13:59 |
|
moritz
| of git users? I wouldn't be so sure | 13:59 |
| ← vtunka left | 14:00 |
| ← Anticom left | 14:00 |
|
osse
| angelleye: is this on a network drive, by any chance? | 14:00 |
|
angelleye
| osse: no | 14:00 |
| ← Kayra left | 14:00 |
| ← ghoti left | 14:00 |
| ← jsilver_ left | 14:01 |
| → jsilver joined | 14:01 |
| → ghoti joined | 14:01 |
|
angelleye
| Just about to see if I can reproduce this... | 14:01 |
|
_ikke_
| Not perchance using git submodules? | 14:02 |
|
angelleye
| Ha, well, of course. I setup a little demo to try and reproduce and it's not happening here. | 14:02 |
|
grumbel_
| angelleye: I'm using git on windows frequently and never had that issue, so it's probably not broken by default | 14:02 |
|
angelleye
| So yeah, I've got something unique going on. | 14:02 |
| → NCS_One joined | 14:03 |
|
moritz
| I guess it depends on the programs you use to work with the files in the git repo | 14:03 |
|
ska-fan
| I have an option set in ~/.gitconfig. How do I disable it for one command on the command line? | 14:03 |
|
moritz
| and whether they keep file handles open | 14:03 |
| → nnyk_ joined | 14:03 |
|
angelleye
| Yeah, must be something hanging on to it. I'll figure it out. Thanks. | 14:04 |
|
grumbel_
| angelleye: probably yes; note the exact error message next time, that should help | 14:04 |
| → tham joined | 14:04 |
| ← angelleye left | 14:04 |
| ← rob_w left | 14:04 |
| → Mitchbones joined | 14:04 |
| ← IrishPrime left | 14:04 |
| → Diemuzi joined | 14:04 |
| gitinfo set mode: +v | 14:04 |
| ← simesy left | 14:05 |
| → sohail joined | 14:05 |
| ← nilg left | 14:06 |
| → nilg` joined | 14:06 |
| ← MattStra_ left | 14:07 |
| → intellix joined | 14:07 |
| ← lolmaus_ left | 14:08 |
| → Gavrisimo joined | 14:08 |
| → lolmaus joined | 14:08 |
| → mnml joined | 14:09 |
| → rob_w joined | 14:10 |
| → ntio joined | 14:10 |
| → enigmus joined | 14:10 |
| ← takamichi left | 14:11 |
| Naeb → Naeb|Away | 14:11 |
| ← Naeb|Away left | 14:11 |
| ← thegorn left | 14:11 |
| → jackneill joined | 14:12 |
| ← mizu_no_oto left | 14:12 |
| ← conan left | 14:12 |
| ← reskp left | 14:13 |
| ← Gavrisimo left | 14:13 |
| → takamichi joined | 14:13 |
| ← takamichi left | 14:13 |
| → H4D3rach joined | 14:14 |
| → reskp joined | 14:14 |
| → takamichi joined | 14:14 |
| ← reskp left | 14:15 |
| ← cads left | 14:15 |
| → reskp joined | 14:15 |
| → mizu_no_oto joined | 14:15 |
| → Raging_Hog joined | 14:16 |
| → conan joined | 14:16 |
| → aarapov joined | 14:16 |
| ← conan left | 14:17 |
| → FortySix2 joined | 14:17 |
| → tfb joined | 14:17 |
| ← enigmus left | 14:17 |
| → IrishPrime joined | 14:18 |
| → Dudi_ joined | 14:19 |
| ← avolz left | 14:20 |
| ← H4D3rach left | 14:20 |
| → elrolito joined | 14:20 |
| → tgkokk joined | 14:21 |
| → the_cybersphinx joined | 14:21 |
| → Naeb joined | 14:21 |
| ← FortySix2 left | 14:21 |
| ← the_cybersphinx left | 14:22 |
| → Gamecubic joined | 14:22 |
| → robarelli joined | 14:22 |
| ← Dudi left | 14:23 |
| → the_cybersphinx joined | 14:25 |
| ← Silmarilion left | 14:25 |
| → yhager joined | 14:25 |
| ← m0ltar left | 14:26 |
| → enigmus joined | 14:26 |
| ← dhilipsi_ left | 14:26 |
| → FortySix2 joined | 14:26 |
| ← robarelli left | 14:26 |
| → joelroa joined | 14:27 |
| → AaronMT joined | 14:27 |
| → dhilipsiva joined | 14:27 |
| → haasn joined | 14:27 |
|
haasn
| In git, is it possible to copy a single file from another branch? I don't need the commits, just the file as it would be had I checked out that branch | 14:28 |
|
canton7-mac
| git co branch -- path/to/file | 14:29 |
|
ojacobson
| 'git checkout <tree-ish> -- <paths>' will stage and check out <paths> from <tree-ish> against the current work tree & head | 14:29 |
| → jcvfen joined | 14:29 |
| ← Gamecubic left | 14:30 |
| → Gamecubic joined | 14:31 |
|
torsten
| how should I name brances? no whitespaces? | 14:31 |
|
haasn
| canton7-mac: thanks. I'm a bit confused; after running this, my path/to/file shows the code I'd expect it to contain - but `git diff` doesn't show any changes. `git commit -p` says “modified: path/to/file” but that's it. How come it doesn't show up as an actual change? | 14:31 |
| → m0ltar joined | 14:31 |
|
_ikke_
| torsten: correct, no whitespace | 14:31 |
| ← joelroa left | 14:31 |
| ← dhilipsiva left | 14:32 |
|
canton7-mac
| haasn, 'git diff' shows the difference between the working copy and the last commit | 14:32 |
|
torsten
| _ikke_: and how do I checkout a branch with whitespaces? "" doesnt work for me | 14:32 |
| ← yhager left | 14:32 |
|
canton7-mac
| 'git diff --cached' shows the difference between the staged file and the last commit | 14:32 |
|
| * 'git diff --cached' shows the difference between the staged file and the working copy | 14:32 |
|
| hmm I've got myself in a muddle now | 14:33 |
|
| 'git diff HEAD' shows everything, anyway | 14:33 |
|
haasn
| canton7-mac: oh, I understand; because git checkout <branch> -- path/to/file already adds it as in “git add path/to/file”? | 14:33 |
| → phantomtiger joined | 14:33 |
|
canton7-mac
| yeah, --cached is staged -> previous commit | 14:33 |
|
ojacobson
| canton7-mac: 'git diff' compares staging area and work tree. | 14:33 |
|
| 'git diff --staged' compares HEAD and staging area | 14:33 |
|
haasn
| canton7-mac: thanks, that helps | 14:33 |
|
ojacobson
| 'git diff HEAD' compares HEAD and work tree | 14:33 |
| → Dougie187 joined | 14:34 |
| → Neozonz|Discx2 joined | 14:35 |
| Neozonz|Discx2 → Guest28154 | 14:35 |
| → simesy joined | 14:35 |
| → infynyxx joined | 14:36 |
| → RaceCondition joined | 14:36 |
| → dik_dak joined | 14:37 |
| ← infynyxx left | 14:37 |
| → fairuz joined | 14:39 |
|
marcosc
| _ikke_: I'm still seeing: "warning: CRLF will be replaced by LF in ..." | 14:39 |
| → plitzenberger joined | 14:39 |
| → infynyxx joined | 14:40 |
| → rudisimo joined | 14:40 |
|
_ikke_
| marcosc: .gitattribute? | 14:40 |
| ← mizu_no_oto left | 14:40 |
| → lmat joined | 14:40 |
|
marcosc
| _ikke_: I don't have one | 14:40 |
|
_ikke_
| marcosc: git config -l | 14:41 |
|
marcosc
| ah, it's still "core.autocrlf=false" | 14:41 |
| ← RaceCondition left | 14:42 |
| → CKyle joined | 14:43 |
| ← Guest98565 left | 14:43 |
|
marcosc
| _ikke_: I did "git config --local core.autocrlf input" | 14:43 |
| ← simesy left | 14:44 |
|
marcosc
| and did a reset | 14:44 |
|
| but still seeing the affected files | 14:44 |
| ← hkon_ left | 14:44 |
| → MattStratton joined | 14:46 |
| ← tplaner left | 14:47 |
| ← ivank left | 14:48 |
| → darnir_ joined | 14:49 |
| ← tgkokk left | 14:49 |
|
| samsamm777 is away: Gone away for now | 14:49 |
| ← aarapov left | 14:49 |
| → daito_ joined | 14:49 |
| ← mrpink left | 14:50 |
|
ojacobson
| samsamm777: please disable whatever client feature you're using that sends away notices to channels you're in. | 14:50 |
| ← flaguy48 left | 14:50 |
| → eletuchy joined | 14:50 |
| → yhager joined | 14:50 |
| → misterpink joined | 14:50 |
|
ojacobson
| There are several hundred people here, and exactly none of them care; use /away instead, which makes it available to anyone who _is_ interested via /whois. | 14:51 |
| → LuxuryMode joined | 14:51 |
| ← rob_w left | 14:51 |
|
lb1a
| ojacobson, hm i should make a bot trigger with that phrase :D | 14:51 |
|
ojacobson
| lb1a: we have one in ##java | 14:52 |
|
lb1a
| ahh :D | 14:52 |
|
ojacobson
| http://sackheads.org/~bnaylor/spew/away_msgs.html | 14:52 |
|
| (it used to be a somewhat crass rant about "we don't care if ...") | 14:52 |
|
| (I miss the crass rant :) | 14:52 |
| → RaceCondition joined | 14:52 |
|
bremner
| we should make a bot trigger that sets mode +q ... | 14:53 |
| → JerryT joined | 14:53 |
|
lov
| ojacobson: please don't turn #git into #java :( | 14:53 |
| ← daito_ left | 14:54 |
| ← m0ltar left | 14:54 |
|
lb1a
| ojacobson, that's hilarious | 14:55 |
| ← eletuchy left | 14:55 |
|
ojacobson
| lov: Of course not. | 14:55 |
| ← DoniRS left | 14:55 |
| → MattMake_ joined | 14:55 |
| ← MattMaker left | 14:56 |
| → jonatasnona joined | 14:56 |
| → DoniRS joined | 14:56 |
| ← jonatasnona left | 14:57 |
| ← leakybuckit left | 14:57 |
| → thiago joined | 14:57 |
| → _elrolito joined | 14:58 |
| ← ifdm_ left | 14:58 |
| ← elrolito left | 14:59 |
| → facundor joined | 14:59 |
| ← takamichi left | 14:59 |
| ← ntio left | 15:00 |
| Guest28154 → Neozonz | 15:00 |
| ← modocache left | 15:00 |
| ← Neozonz left | 15:00 |
| → Neozonz joined | 15:00 |
| → hyperair joined | 15:01 |
| → teran joined | 15:01 |
| ← Dudi_ left | 15:01 |
| ← tfb left | 15:01 |
| → Noldorin joined | 15:01 |
| → jds joined | 15:02 |
| → vtunka joined | 15:02 |
| → jaequery joined | 15:02 |
| ← jaequery left | 15:03 |
| → flaguy48 joined | 15:03 |
| ← SorenHolm left | 15:04 |
| ← teran_ left | 15:04 |
| ← john2x left | 15:04 |
| → mani2399 joined | 15:04 |
| ← mani2399 left | 15:04 |
| → gnugnu8 joined | 15:04 |
| ← arjun_ left | 15:04 |
| ← darnir_ left | 15:05 |
| → mani2399 joined | 15:05 |
| ← drsykb left | 15:05 |
| ← mani2399 left | 15:05 |
| ← infynyxx left | 15:05 |
| → mani2399 joined | 15:05 |
| → wongon joined | 15:06 |
| ← mani2399 left | 15:06 |
| → tphd joined | 15:06 |
| → acharlieh joined | 15:06 |
| ← tphd left | 15:06 |
| → mani2399 joined | 15:06 |
| ← Gitzilla left | 15:06 |
| ← mani2399 left | 15:06 |
| → Gitzilla joined | 15:07 |
| → saikrishna_ joined | 15:07 |
| BaconOverflow___ → BaconOverflow | 15:07 |
| cfedde_ → cfedde | 15:07 |
| → endiruna joined | 15:08 |
| → infynyxx joined | 15:08 |
| → m0ltar joined | 15:09 |
| → Gavrisimo joined | 15:09 |
| → takamichi joined | 15:09 |
| → mani2399 joined | 15:10 |
| → el3ctron_ joined | 15:11 |
| → InvidFlower joined | 15:11 |
| → ntio joined | 15:12 |
| ← BeardlessOne left | 15:12 |
| → lindenle joined | 15:13 |
| ← Gavrisimo left | 15:14 |
|
lmat
| marcosc: did you try git clean ? | 15:14 |
| ← sdouglas left | 15:14 |
| → ifdm_ joined | 15:14 |
| → sdouglas joined | 15:15 |
|
| samsamm777 is back. | 15:15 |
| flazz → flazz_gone | 15:17 |
| ← jcvfen left | 15:17 |
| ← enigmus left | 15:17 |
| ← endiruna left | 15:17 |
| → endiruna joined | 15:17 |
| → jcvfen joined | 15:18 |
| → merica joined | 15:18 |
| → cwillu_at_work joined | 15:18 |
| ← yhager left | 15:19 |
| ← sdouglas left | 15:19 |
| ← jcs222 left | 15:20 |
| ← m0ltar left | 15:21 |
| ← dort left | 15:21 |
| ← dc5ala left | 15:21 |
| → prophile joined | 15:22 |
| ← papegaaij left | 15:22 |
| ← tureba left | 15:23 |
|
prophile
| the answer to the question I'm about to ask is liable to be "that's a terrible idea" but is there a mechanism for automatic push on commit? | 15:23 |
|
| (this is for essentially keeping a remote backup on a private project) | 15:24 |
| → SicoAnimal joined | 15:24 |
| ← SicoWork left | 15:24 |
|
lov
| that's a terrible idea! | 15:24 |
| → tureba joined | 15:24 |
| ← Lemony left | 15:24 |
|
lov
| you could probably set up a post-commit hook or something | 15:25 |
| → Gavrisimo joined | 15:25 |
|
prophile
| ah yes, of course | 15:25 |
|
| thanks lov | 15:26 |
| → Lemony joined | 15:26 |
| → marcjs joined | 15:26 |
| → werlley joined | 15:27 |
| ← DoniRS left | 15:27 |
| ← cff left | 15:27 |
| → sdouglas joined | 15:27 |
| → joelroa joined | 15:28 |
| ← tureba left | 15:29 |
|
osse
| make sure to use puah -f so that it works when you commit --amend too :P | 15:29 |
| → koell joined | 15:29 |
|
prophile
| osse: a valid observation, although that defeats the backup idea if I do something monumentally stupid :) | 15:30 |
| → ErKa joined | 15:30 |
|
osse
| correct | 15:30 |
| ← thiago left | 15:30 |
|
osse
| I wonder if the hook is triggered when rebase is used | 15:30 |
| Naeb → Naeb|Away | 15:31 |
| ← Naeb|Away left | 15:31 |
| ← kbart left | 15:31 |
| ← jokajak left | 15:32 |
| → noisewaterphd_ joined | 15:32 |
| ← joelroa left | 15:32 |
| ← noisewaterphd_ left | 15:32 |
| → SicoWork joined | 15:32 |
| → thiago joined | 15:33 |
| → DoniRS joined | 15:33 |
| → ewet joined | 15:33 |
| ← SicoAnimal left | 15:33 |
| ← rchavik_ left | 15:33 |
| ← shruggar left | 15:33 |
| → dort joined | 15:34 |
| → shruggar joined | 15:34 |
| ← ferreum left | 15:35 |
| → axl_ joined | 15:36 |
| → kermit joined | 15:36 |
| ← flaguy48 left | 15:36 |
| ← jluc left | 15:38 |
| → jluc joined | 15:38 |
| → FatDarrel joined | 15:38 |
| → mizu_no_oto joined | 15:38 |
| → ni__ joined | 15:39 |
| ← dort left | 15:39 |
| ← pikaren left | 15:39 |
| → simesy joined | 15:40 |
| ← polyzen left | 15:41 |
| ← genehack left | 15:41 |
| ← Hecter left | 15:42 |
| → genehack joined | 15:42 |
| → livingstn joined | 15:42 |
|
Nevik
| it does not defeat the backup | 15:42 |
|
| at least not entirely | 15:42 |
| ← Xethron left | 15:42 |
|
Nevik
| though you might want to add some magic to the remote for practicality | 15:42 |
|
lov
| ^^ | 15:42 |
|
| I also assumed that you were using it as a "backup" in the sense of "Oh no, my computer burst into flames while I was working!" | 15:43 |
|
Nevik
| (force-pushing does not delete anything from the remote, the worst it can do is make stuff unreferenced) | 15:43 |
|
| so a post-receive hook which creates backup-refs to any commits that get unreferenced by a push would take care of that | 15:43 |
| ← infynyxx left | 15:44 |
|
prophile
| Nevik: that makes sense | 15:44 |
| ← simesy left | 15:44 |
| → zumba_addict joined | 15:44 |
|
prophile
| I assume there's no "don't ever prune me" flag in git config? | 15:45 |
| → tureba joined | 15:45 |
|
Nevik
| you mean "dont ever garbage-collect me" ? | 15:45 |
| → akitada joined | 15:45 |
|
grawity
| just have an infinite reflog? :P | 15:45 |
|
Nevik
| indeed | 15:45 |
|
prophile
| more or less, although I understand git gc does repacking and other such things in addition to removing unreferenced objects? | 15:45 |
|
| grawity: you are very wise | 15:46 |
|
moritz
| set gc.pruneexpire to something very, very long? | 15:46 |
| → zezollo joined | 15:46 |
|
prophile
| well now I'm just swamped with choices | 15:46 |
| ← FatDarrel left | 15:46 |
|
moritz
| poor you | 15:47 |
| → zackiv31 joined | 15:47 |
|
prophile
| why can't git be hobbled and incapable of doing anything useful like CVS | 15:47 |
|
moritz
| :-) | 15:47 |
| → sigspec joined | 15:47 |
| ← wasabii left | 15:48 |
| ← lindenle left | 15:48 |
| → pikaren joined | 15:48 |
|
zezollo
| hi folks, i just tried "git <hash>", just looked around (made no changes) and want to come back to the current state. Is "git <last_commit_hash>" enough? | 15:48 |
|
| no, it was git checkout <hash> | 15:48 |
| ← saikrishna_ left | 15:48 |
|
grawity
| you're probably looking for `git checkout master` | 15:48 |
| ← lb1a left | 15:49 |
|
grawity
| or `git checkout -` for the "previous" state | 15:49 |
| → tfb joined | 15:49 |
| ← tureba left | 15:49 |
| ← ntio left | 15:49 |
|
prophile
| I did not know about `git checkout -` | 15:49 |
|
| clearly I need to sit in this channel more often | 15:49 |
| → saikrishna_ joined | 15:49 |
|
zezollo
| `git checkout master` brings me only to the master branch, same state; i'll try git checkout - | 15:49 |
|
grawity
| what "state" are you looking for, then? | 15:50 |
| → tureba joined | 15:50 |
|
prophile
| zezollo: if you want to remove changes in the working tree, `git reset --hard` and the rather terrifying `git clean -f` may be more what you're looking for | 15:50 |
| flazz_gone → flazz | 15:50 |
| → Silmarilion joined | 15:50 |
| ← lite_ left | 15:50 |
| ← lolmaus left | 15:50 |
|
xender
| checkout -? | 15:51 |
| → lolmaus joined | 15:51 |
| → xaq joined | 15:51 |
| → lindenle joined | 15:51 |
|
zezollo
| no, i don't need to remove changes | 15:51 |
|
xender
| Is '-' something like 'HEAD@{1}'? | 15:51 |
| → elrolito joined | 15:51 |
| ← reskp left | 15:51 |
| ← Balliad left | 15:51 |
| → eletuchy joined | 15:51 |
|
zezollo
| i don't jump to another commit with git checkout - | 15:51 |
| ← _elrolito left | 15:52 |
| → reskp_ joined | 15:52 |
| ← sigspec left | 15:52 |
|
sonOfRa
| Is it possible to have 'git merge --log' to include the COMPLETE commit messages in the log, instead of just the first line/subject? | 15:52 |
| → ntio joined | 15:53 |
| → enigmus joined | 15:53 |
| ← vmiklos left | 15:53 |
| ← tureba left | 15:54 |
| ← ni__ left | 15:54 |
|
zezollo
| current work is at commit af547b3; i jumped to commit 771ea90 (using git checkout 771ea90) just to check some things (no changes at all) ; now if i 'git checkout af547b3', it jumps back to current state BUT says "You are in 'detached HEAD' state." + explanations: this does not seem the normal state. | 15:55 |
|
| how do i come back to the last commit in a normal state, then ? | 15:55 |
|
_ikke_
| zezollo: You need to check out the branch instead of the commit | 15:55 |
| ← makubi_ left | 15:56 |
| ← FortySix2 left | 15:56 |
|
sonOfRa
| We're still using CVS at work, and git cvsimport and friends are working nicely, but I'd like to have the option of including my FULL commit messages into the commit created by git cvsexportcommit, instead of just the summary | 15:56 |
| → starfox21 joined | 15:56 |
| ← eletuchy left | 15:56 |
|
_ikke_
| I don't think there is an option | 15:56 |
| → whowantstolivef2 joined | 15:57 |
| → makubi joined | 15:57 |
| → sambae joined | 15:57 |
| ← whowantstolivef3 left | 15:57 |
| → lithiumjake_ joined | 15:57 |
| ← shingshang left | 15:57 |
| → shawndumas joined | 15:58 |
| ← smashwilson left | 15:58 |
| ← ntio left | 15:58 |
| → achadwick joined | 15:58 |
|
zezollo
| _ikke_: if i am still at commit 771ea90 (the old one), if i change to master, then i am still at commit 771ea90. Or do you mean the 'detached HEAD' state just means git is on no branch and I just need to checkout the right branch then ? | 15:58 |
| → ntio joined | 15:58 |
|
grawity
| the latter | 15:59 |
| → MyTallest joined | 15:59 |
| ← pikaren left | 15:59 |
| ← mewm left | 15:59 |
| ← axl_ left | 15:59 |
| ← lithiumjake left | 15:59 |
|
starfox21
| hey guys, I'm new to git, I have an application on Heroku and I am about to push to it. What is the best way to visualize the commits that are going to get pushed from my local master to the master on Heroku. | 16:00 |
| ← bgerber left | 16:00 |
|
_ikke_
| zezollo: correct | 16:00 |
| → maestrojed joined | 16:01 |
|
_ikke_
| starfox21: usually "git log @{u}.." | 16:01 |
|
zezollo
| ok, thanks! cool!! i was afraid to be lost in my commits' world :) | 16:01 |
|
grawity
| git fetch origin && git log --oneline origin/master..master | 16:01 |
| ← roelmonnens left | 16:01 |
| → roelmonnens joined | 16:02 |
|
starfox21
| _ikke_: what does the @{u} refer to? | 16:02 |
| ← thevishy left | 16:02 |
| ← ifdm_ left | 16:03 |
| → torjus joined | 16:03 |
| ← MyTallest left | 16:03 |
|
lov
| upstream | 16:03 |
|
grawity
| short for @{upstream}; whatever branch was configured to be the current branch's upstream. | 16:03 |
|
| `man gitrevisions` | 16:03 |
|
gitinfo
| the gitrevisions manpage is available at http://jk.gs/gitrevisions.html | 16:03 |
|
starfox21
| thanks guys! | 16:04 |
| → jerius joined | 16:04 |
| ← sdouglas left | 16:06 |
| ← roelmonnens left | 16:06 |
| ← haasn left | 16:06 |
| → sdouglas joined | 16:06 |
| ← tham left | 16:07 |
| → pikaren joined | 16:07 |
| → xMYTHICx joined | 16:08 |
| ← konadr1 left | 16:08 |
| → FortySix2 joined | 16:10 |
| → aarapov joined | 16:10 |
| ← Gizburdt left | 16:10 |
| → jokajak joined | 16:10 |
| → angelleye joined | 16:10 |
| ← sdouglas left | 16:11 |
| → testoas joined | 16:11 |
| ← xsbeats left | 16:11 |
| → cads joined | 16:11 |
| → aberrant joined | 16:11 |
| ← lavong left | 16:11 |
| ← cbreak_ left | 16:12 |
| ← xaq left | 16:13 |
| → goTAN joined | 16:13 |
| → jaequery joined | 16:13 |
| ← phanimahesh left | 16:13 |
|
angelleye
| I'm in a local repo that when I do git branch -r, it displays 3 remote branches, 1 of which was deleted from the remote already. If I do a git fetch I get nothing, but if I try to do a git push origin --delete branchname then it tells me it can't find it so it can't delete, which makes sense, but I don't know how to get rid of it from this local repo..?? | 16:14 |
| ← leeN left | 16:14 |
| → bambams_ joined | 16:14 |
|
grawity
| git fetch --prune | 16:14 |
| ← jargon left | 16:14 |
| → asakura0 joined | 16:15 |
|
canton7-mac
| there's also a config option to enable that by default iirc | 16:15 |
|
angelleye
| grawity: beautiful, thank you | 16:15 |
| ← mnml left | 16:15 |
|
canton7-mac
| fetch.prune, yeah | 16:15 |
| → nszceta joined | 16:15 |
| ← pduin left | 16:15 |
| → diegoviola joined | 16:15 |
|
angelleye
| canton7-mac: i'll check that out, too, thanks | 16:15 |
| → axl_ joined | 16:15 |
| ← hyperair left | 16:15 |
|
testoas
| Hello I have some trouble with git. A team member added some files, committed and pushed it. Now I do a PULL. The new files come to me, so all seems to be well. But all this new files are not known by git. When I tried to commit my changed files, the files of the other team member on my space seems to be new for git and I should add and commit them | 16:16 |
|
| . Why??? I dont want to touch the files, because I have nothing done to it. | 16:16 |
|
grawity
| you could also delete those remote-tracking branches manually with `git branch -r -d` or `git update-ref -d` | 16:16 |
| ← vince_prignano left | 16:16 |
| → tureba joined | 16:16 |
|
angelleye
| prune did the trick | 16:17 |
| ← takamichi left | 16:17 |
|
bambams_
| testoas: Can you pastebin your `git status'? | 16:17 |
| ← deciph3r left | 16:17 |
| → takamichi joined | 16:17 |
| ← angelleye left | 16:17 |
| → rq60 joined | 16:18 |
| → whowantstolivef1 joined | 16:18 |
| → ifdm_ joined | 16:18 |
| → robarelli joined | 16:18 |
| → sdouglas joined | 16:18 |
| → vmiklos joined | 16:18 |
| ← LuxuryMode left | 16:19 |
|
testoas
| no not now. but all the files marked as "new file: nameOfFile.txt" | 16:19 |
| ← lindenle left | 16:19 |
| → blackmesa joined | 16:19 |
| → Kayra joined | 16:19 |
| ← whowantstolivef2 left | 16:20 |
| → tyreld joined | 16:20 |
|
testoas
| the big problem is: sometimes it happens to someone of the team, but we cant reproduce this. | 16:20 |
|
osse
| testoas: where did the team member push to? | 16:20 |
|
bambams_
| testoas: PEBKAC. Unless you have discovered a very obscure error. But unless you can show us exactly what's happening it's hard to help. | 16:20 |
| ← sdouglas left | 16:20 |
|
bambams_
| s/error/bug/ | 16:20 |
|
testoas
| push to our central-repo on a network share, we dont have a server yet | 16:20 |
|
goTAN
| so I am working with a remote repository and I am changing stuff and my friend does and I know that we have to merge at some point but I don't want to merge now but I still want to have both changes on the server (where the remote repo is) so how do I do that? making a new branch? | 16:21 |
| ← tureba left | 16:21 |
|
osse
| testoas: maybe he commited them to a different branch than the one you're on? | 16:21 |
| ← iokill left | 16:21 |
|
bambams_
| goTAN: Yes, you can put your changes in a new branch. Remotely, locally, or both. | 16:22 |
| → Dudi joined | 16:22 |
| ← foredoomed left | 16:23 |
| → tureba joined | 16:23 |
|
testoas
| no both works on the same branch. | 16:23 |
| ← teran left | 16:23 |
|
bambams_
| goTAN: The simplest way would be to set git push $remote master:$feature | 16:23 |
|
goTAN
| ok so I need to do it the way my friend still can push origin/master | 16:23 |
| ← arvind_khadri left | 16:23 |
|
bambams_
| s/set // | 16:23 |
|
testoas
| if he would add the files to a different branch I would expect not to see the new files in my branch until merging | 16:24 |
| ← NCS_One left | 16:24 |
| → teran joined | 16:24 |
| ← enigmus left | 16:24 |
|
goTAN
| testoas: I want to create a new branch he should work on the main one | 16:24 |
|
bambams_
| goTAN: E.g., git push origin master:space-robot | 16:24 |
| → ni__ joined | 16:24 |
|
bambams_
| goTAN: If you want to create a new branch locally too you can use checkout -b. | 16:24 |
| ← GT4066 left | 16:25 |
|
goTAN
| bambams_: the branch should be on the remote (since it get backups) | 16:25 |
|
bambams_
| goTAN: After creating your new branch you can also reset master back to origin/master so you don't accidentally merge. | 16:25 |
| ← rath left | 16:25 |
|
bambams_
| goTAN: Yes, the push commands I demonstrated would put it on the remote server. The key to giving it a different branch on the server is the colon (:). | 16:25 |
|
| goTAN: See the description of refspecs in man git-push. | 16:26 |
|
gitinfo
| goTAN: the git-push manpage is available at http://jk.gs/git-push.html | 16:26 |
|
goTAN
| ah so git push origin master:mynewbranch will add a new branch to remote with my current changes | 16:26 |
|
marcosc
| lmat: tried, didn't seem to help | 16:26 |
|
| still getting "warning: CRLF will be replaced by LF" :( | 16:27 |
| ← ThomasLocke left | 16:27 |
| → eletuchy joined | 16:27 |
|
bambams_
| goTAN: Yes. | 16:27 |
|
testoas
| osse: no both works on the same branch. if he would add the files to a different branch I would expect not to see the new files in my branch until merging | 16:27 |
| ← dik_dak left | 16:27 |
| → conan_ joined | 16:28 |
|
goTAN
| bambams_: ok thanks alot | 16:28 |
| → lite_ joined | 16:28 |
| → joelroa joined | 16:28 |
|
lmat
| marcosc: Oh, I wasn't quite following :) So, you git reset --hard, then git status shows some files ? | 16:29 |
|
marcosc
| yeah | 16:29 |
|
lmat
| marcosc: And it seems to you that these files are showing up because of line ending problems ? | 16:29 |
|
marcosc
| yes, exactly | 16:29 |
|
| git status says so | 16:29 |
| → starkhalo joined | 16:29 |
|
lmat
| marcosc: interesting. | 16:29 |
|
| marcosc: can you git checkout those files ? | 16:30 |
|
marcosc
| tried, it makes no difference | 16:30 |
|
osse
| testoas: when you pull you do actually merge. Still it's weird it says "New file:" | 16:30 |
| → deciph3r joined | 16:30 |
| ← deciph3r left | 16:30 |
| → deciph3r joined | 16:30 |
|
lmat
| marcosc: Let me try to reproduce... | 16:30 |
| thunderbolt_ → thunderbolt | 16:30 |
|
osse
| testoas: unless of course there were conflicts and the merge isn't done yet. I would read git status carefully | 16:30 |
| → francesca joined | 16:30 |
|
lmat
| marcosc: I have a file and I converted it to crlf line ending (only one)., then git status says | 16:31 |
| ← HelperW left | 16:31 |
| ← nick108 left | 16:31 |
| ← eletuchy left | 16:31 |
|
lmat
| git status says modified as expected... | 16:31 |
|
| git reset --hard; git status; returns nothing. | 16:32 |
|
| marcosc: How can I reproduce ? | 16:32 |
| ← lite_ left | 16:32 |
| → dik_dak joined | 16:32 |
| → cagedwisdom joined | 16:32 |
|
marcosc
| lmat: hmmm... I'm using the Mozilla Gecko repo... don't know if that helps | 16:32 |
| ← jaequery left | 16:32 |
|
lmat
| marcosc: Of course, there are some things you can try: git checkout file, rm file; git reset; and others, but I don't know what will work :) | 16:32 |
|
| marcosc: I'm not interested in cloning the Mozilla repo ;) | 16:32 |
| → infynyxx joined | 16:32 |
|
marcosc
| heh, lmat... didn't think you would be | 16:33 |
|
| :) | 16:33 |
| ← W0rmDr1nk left | 16:33 |
| ← joelroa left | 16:33 |
| → ferreum joined | 16:33 |
| ← githogori left | 16:33 |
|
lmat
| marcosc: perhaps you can mkdir /tmp/something; cd /tmp/something; git init; echo "hey" > hey; git add hey; git commit -a; | 16:33 |
|
marcosc
| lmat: I'll try to delete the files | 16:33 |
|
| samsamm777 is away: Gone away for now | 16:33 |
|
testoas
| osse: i know. there should not be any merge conflicts when a new file does appear. I dont know why the new files are not known by git and should be re-added or re-commited | 16:33 |
|
lmat
| samsamm777: don't do that. | 16:33 |
| ← ehmatthes left | 16:33 |
|
testoas
| osse: weird is the right word :) | 16:34 |
|
marcosc
| lmat: trying | 16:34 |
|
osse
| testoas: are they staged for commit? In that case they weren't the source of a conflict | 16:34 |
| ← reskp_ left | 16:34 |
| → tomengland joined | 16:34 |
| ← lolmaus left | 16:34 |
| ← gua_ould left | 16:34 |
| → NCS_One joined | 16:34 |
| → lolmaus joined | 16:34 |
|
marcosc
| lmat: all works fine there | 16:35 |
|
| lmat: now what? | 16:35 |
|
lmat
| marcosc: :( | 16:35 |
|
| marcosc: just flail around in the mozilla repo ^_^ | 16:35 |
|
zumba_addict
| hi folks | 16:35 |
|
marcosc
| lmat: I'll ask them. They might know how to fix this... hundreds of people contribute to that project | 16:36 |
|
testoas
| yes they are staged for commit. but when user A added new files, and user B pulled this files I dont understand why user B should commit them too. user B only get the files but dont changed them. | 16:36 |
| → reskp joined | 16:36 |
|
| samsamm777 is back. | 16:36 |
| → infynyxx_ joined | 16:36 |
| ← infynyxx_ left | 16:36 |
|
osse
| testoas: you are in a merge conflict. But some other files are the source of the problem. Read git status carefully | 16:36 |
| ← FortySix2 left | 16:37 |
|
lmat
| samsamm777: stop doing that :) | 16:37 |
|
osse
| testoas: pull does two things: fetch and merge. You are merging. The pull as a whole isn't done yet. | 16:37 |
| → infynyxx_ joined | 16:37 |
| ← infynyxx_ left | 16:37 |
|
ojacobson
| samsamm77: http://sackheads.org/~bnaylor/spew/away_msgs.html | 16:37 |
|
| this is not a request; if you insist on telling all several-hundred of us when you go away and come back, I will happily remove you from the channel to save others the additional natter. | 16:37 |
| → infynyxx_ joined | 16:37 |
| ← infynyxx_ left | 16:37 |
| ← reskp left | 16:37 |
|
testoas
| osse: ok I will do that. but why the new files marked as "new file" when the conflict is another file? | 16:38 |
| → infynyxx_ joined | 16:38 |
| ← infynyxx_ left | 16:38 |
| ← paddy left | 16:38 |
| → jogos joined | 16:38 |
| ← infynyxx left | 16:38 |
| → infynyxx_ joined | 16:39 |
| ← vmiklos left | 16:39 |
| ← tomengland left | 16:39 |
| → vmiklos joined | 16:39 |
| ← plitzenberger left | 16:39 |
| → rbartos joined | 16:39 |
| ← xMYTHICx left | 16:40 |
|
testoas
| osse: thanks. tomorrow I ask the user for his broken repo and check git status a twice. then I can post it here too if I cant fix it. | 16:40 |
| ← infynyxx_ left | 16:40 |
| ← goTAN left | 16:40 |
| ← ghostlines left | 16:42 |
| → jaequery joined | 16:42 |
| ← lolmaus left | 16:42 |
| ← testoas left | 16:42 |
| ← xlinkz0 left | 16:42 |
| → ecvon joined | 16:43 |
| ← mossplix left | 16:43 |
| → endra joined | 16:43 |
|
ralf-x
| sigh. ok so I need some help | 16:43 |
| → lolmaus joined | 16:43 |
| ← Raging_Hog left | 16:44 |
|
ralf-x
| I have master and a topic branch. I merged a couple of changes from the topic branch to master a while back but now I need to merge the entire topic branch to master | 16:44 |
| → sachin06j joined | 16:44 |
|
grawity
| git checkout master; git merge topic | 16:44 |
|
ralf-x
| it's only wanting to merge from the point I merged | 16:45 |
|
| the problem is when I did those ad-hoc merges, I ripped out whatever I didn't want | 16:45 |
| wongon → atfbe | 16:45 |
|
ralf-x
| so git thinks that stuff is merged or whatever, and so it is ignoring anything prior to that point on the topic branch | 16:45 |
|
| (yes, in hindsight apparently that was retarded of me to do, but this is where I am now) | 16:46 |
| → infynyxx joined | 16:46 |
|
endra
| I want to create a copy of my repo's branch but only contain commits from a specific date and forward (past year or so). Any way to do that? | 16:46 |
| ← jaequery left | 16:46 |
|
tshirtman
| if you ripped parts of the commits out, they aren't the same commits anymore, so git can't think they are merged, he will likely find conflicts, though | 16:46 |
| ← noxd left | 16:46 |
|
tshirtman
| ralf-x: ↗ | 16:47 |
|
endra
| tshirtman: .. that's a good arrow. never seen it before :P | 16:47 |
| ← robarelli left | 16:47 |
|
tshirtman
| :) | 16:47 |
|
ralf-x
| tshirtman: well, by 'ripped out' I did a 'git merge --no-commit', reverted/checked out files I didn't want to merge, and committed the merge | 16:47 |
| ← tobeplugged left | 16:48 |
|
atrus
| endra: i believe you're describing a "shallow" checkout. it's possible, but has some reasonably serious limitations. | 16:48 |
|
tshirtman
| hm, so the commit is in, but then after you did a partial revert? | 16:48 |
| → FortySix2 joined | 16:48 |
|
| tshirtman never used --no-commit | 16:48 |
| → xMYTHICx joined | 16:48 |
|
ralf-x
| tshirtman: I believe that is correct, yes | 16:48 |
| ← conan_ left | 16:48 |
| ← vurma left | 16:48 |
| ← shinnya left | 16:48 |
|
tshirtman
| ok, from what i read, the reverts are done in the merge commit, so yeah, git will think the commit is merged | 16:49 |
|
endra
| atrus: git clone with --depth? I'll read up on it | 16:49 |
| → W0rmDr1nk joined | 16:49 |
|
ralf-x
| tshirtman: it's something like this: http://stackoverflow.com/questions/1527234/finding-a-branch-point-with-git | 16:49 |
|
| (logically) | 16:50 |
|
tshirtman
| i would go for rebase -i, i guess, if you don't care of the branch changing | 16:50 |
| → mossplix joined | 16:50 |
|
tshirtman
| s/of/about/ | 16:50 |
| ← mizu_no_oto left | 16:51 |
| ← Spyro left | 16:51 |
|
tshirtman
| or you revert the merge commits before trying the merge again | 16:51 |
|
ralf-x
| hmmm | 16:51 |
| → paddy joined | 16:51 |
| → SocalNick joined | 16:51 |
|
tshirtman
| that will do for an ugly history imho, but no force-push | 16:51 |
| ← recycle left | 16:51 |
| → joelm joined | 16:51 |
| → alakra joined | 16:51 |
| → recycle joined | 16:51 |
|
ralf-x
| reverting the merge commit(s) might be easiest... the commit contents itself were not very significant | 16:52 |
| ← recycle left | 16:52 |
|
ralf-x
| but obviously master has moved forward since that point | 16:52 |
|
| (since that merge) | 16:52 |
| → bwreilly joined | 16:52 |
|
tshirtman
| rebase the branch on master? | 16:52 |
| ← ecvon left | 16:52 |
|
ralf-x
| I'm sadly one of those people scared of rebase. Any thoughts on more specifically what I'd need to do? | 16:53 |
| → mizu_no_oto joined | 16:53 |
|
ralf-x
| also, would rebasing it onto master screw up any already published history? | 16:53 |
|
tshirtman
| thing-like-a-git.net is what cured my fear of rebase :) | 16:53 |
|
| think* | 16:53 |
| ← Misan left | 16:54 |
|
osse
| ralf-x: it will screw up the history of what you rebase | 16:54 |
|
ralf-x
| osse: ok | 16:54 |
| → arvind_khadri joined | 16:54 |
|
tshirtman
| if the branch is public too, yeah, rebasing it will make a changed history appear publictly, which is frowned upon | 16:54 |
|
osse
| depends on what you mean by "published" though. If you've only pushed it to a backup repo no one else is supposed to fetch from then it's fair game, imo | 16:55 |
| ← W0rmDr1nk left | 16:55 |
|
| tshirtman tends to be liberal with this, though, depends on the number of people following the project closely enough to be disturbed by it | 16:55 |
| → skyflash joined | 16:56 |
|
ralf-x
| I assume removing the commit that the old merge happened in would have a similar impact on history | 16:56 |
| → chrisshattuck joined | 16:56 |
|
tshirtman
| yes | 16:56 |
| → robarelli joined | 16:57 |
|
ralf-x
| bleh. | 16:57 |
| ← Macaveli left | 16:57 |
|
ralf-x
| I'm on a small team so it's possible I could do so | 16:57 |
|
| but it won't be just me it's impacting | 16:57 |
|
| what is the impact of republishing history/changing history? | 16:58 |
|
osse
| ralf-x: if it's a small team then let everyone know beforehand at it will probably be fine | 16:58 |
| ← xMYTHICx left | 16:58 |
| ← oodavid left | 16:58 |
| → enigmus joined | 16:58 |
| ← n-st left | 16:58 |
| ← arand left | 16:58 |
| ← NCS_One left | 16:58 |
|
ralf-x
| osse: well, sadly I'm the most knowledgable in the team regarding git. So what am I letting them know? :D | 16:58 |
|
tshirtman
| people fetching from your repos will see a forced update, and they'll have to either reset (for branches they didn't change) or rebase (for branches they did changes) | 16:58 |
|
osse
| ralf-x: the impact is that if people have created local branches based on the branch(es) you rewrite then they have to use reset or rebase in ways they otherwise wouldn't have | 16:58 |
| ← bicyclette left | 16:58 |
|
ralf-x
| hmm ok | 16:59 |
| ← tfb left | 16:59 |
|
ralf-x
| so in this case, really it would just be 'master' that's impacted right? | 16:59 |
|
| so if they simply stopped working on master for a couple hours while I fix things, it could be seamless? | 16:59 |
|
osse
| I guess so | 16:59 |
|
ralf-x
| or would any branches from master also be impacted? | 16:59 |
|
osse
| depends on how far back the history is touched | 17:00 |
|
ralf-x
| right ok | 17:00 |
| ← infynyxx left | 17:00 |
|
ralf-x
| so if I dork with history from a month ago, any branches from a week ago may well be impacted | 17:00 |
|
osse
| ralf-x: yep. | 17:00 |
|
tshirtman
| if you have all their commits before doing your rebase, and they don't push anything, they'll just have to reset | 17:00 |
|
ralf-x
| (assuming there is a common parent) | 17:00 |
|
| yeah ok | 17:00 |
| → infynyxx joined | 17:00 |
|
osse
| ralf-x: but it's possible to rebase them and it'll possibly be ok | 17:00 |
|
ralf-x
| tshirtman: ah ok gotcha | 17:01 |
| ← jatt left | 17:01 |
| ← craigp left | 17:01 |
| ← mani2399 left | 17:02 |
| → pfg joined | 17:02 |
|
ralf-x
| tshirtman: I can probably navigate that with the team. What would they have to do to reset specifically? | 17:03 |
|
| just a 'git reset' ? | 17:03 |
|
| or I assume a 'git pull; git reset' or something | 17:03 |
|
tshirtman
| git reset origin/master | 17:03 |
|
ralf-x
| ok | 17:03 |
| → Spyro joined | 17:03 |
| ← jceb left | 17:04 |
|
tshirtman
| before that, it's better if they do "git fetch" rather than "git pull" | 17:04 |
|
ralf-x
| *nod* yeah | 17:04 |
| ← jogos left | 17:04 |
|
osse
| if they do pull then all the rebase work is lost | 17:04 |
|
ralf-x
| oh yeah? hmm ok | 17:04 |
|
| I may have them just axe their local repositories | 17:05 |
|
tshirtman
| lol | 17:05 |
| ← infynyxx left | 17:05 |
| → githogori joined | 17:05 |
|
tshirtman
| it's very rarely needed, but i guess it's some ritual git newcomers like to do :) | 17:05 |
|
ralf-x
| well... | 17:05 |
| → githogori_ joined | 17:05 |
|
osse
| ralf-x: if they pull then they will merge the rebased history with the original. | 17:05 |
|
| and all of them will do it seperately. Aka. a mess | 17:06 |
| → rbartos_ joined | 17:06 |
|
ralf-x
| they are not very sophisticated | 17:06 |
|
| so yeah... | 17:06 |
| → hyperair joined | 17:06 |
|
ralf-x
| osse: ok yeah didn't think of it like that. Makes sense. | 17:06 |
| ← ni__ left | 17:06 |
|
tshirtman
| there are a lot of good git doc these days, a little reading can go a long way :) | 17:07 |
| ← saikrishna_ left | 17:07 |
| ← rbartos left | 17:07 |
|
ralf-x
| tshirtman: that would suggest they are willing to read docs :) | 17:07 |
| ← RaceCondition left | 17:07 |
|
ralf-x
| that's a meatspace problem | 17:07 |
|
tshirtman
| i know people like this, they are my prefered people to work with :X | 17:07 |
| ← jnavila left | 17:07 |
|
ralf-x
| LOL | 17:07 |
| ← CheckDavid left | 17:08 |
|
lov
| reading is for nerds | 17:08 |
|
| YOLO | 17:08 |
| ← gain left | 17:08 |
|
| lov force pushes all his commits | 17:08 |
|
Nevik
| lov: you forgot the hashtag there | 17:08 |
| ← endiruna left | 17:08 |
|
lov
| oh, sorry | 17:08 |
|
| #reading is for #nerds #YOLO | 17:08 |
|
Nevik
| gotta do it right, man :P | 17:08 |
|
| that's better | 17:08 |
| ← Gonzo89 left | 17:09 |
| → xsbeats joined | 17:09 |
| ← ArSn left | 17:10 |
| ← InvidFlower left | 17:11 |
| → ZoF joined | 17:12 |
| → rm_work joined | 17:12 |
| → imachuchu joined | 17:13 |
|
rm_work
| what's the technical term for a branch that hasn't yet been merged into anything? I feel like it'd be "dangling branch" or something, but that sounds weird | 17:13 |
|
osse
| rm_work: just 'branch'. | 17:13 |
|
rm_work
| context: I'm trying to track down branches that we've failed to merge into master and forgotten about | 17:13 |
|
osse
| rm_work: git branch --no-merged master | 17:13 |
|
rm_work
| our repo has a TON of branches, trying to figure out if we've lost track of some | 17:13 |
|
| ah, kk thanks osse | 17:13 |
| ← blinkdesign left | 17:14 |
| ← mishok13 left | 17:14 |
| → blinkdes_ joined | 17:15 |
| → jceb joined | 17:15 |
| ← harobed left | 17:16 |
| ← alorence left | 17:16 |
| → reskp joined | 17:16 |
| ← endra left | 17:17 |
| ← mossplix left | 17:17 |
| → rainmanjam joined | 17:17 |
| → lite_ joined | 17:17 |
| ← ntio left | 17:17 |
| ← Juzzika left | 17:18 |
| ← SocalNick left | 17:18 |
| → not_a_guest joined | 17:18 |
| ← intellix left | 17:19 |
| → Davespice joined | 17:19 |
| → ntio joined | 17:19 |
|
Davespice
| hi folks, can anyone help me with using svn2git? | 17:19 |
|
| have managed to get it to run, and it goes through the svn repo logging every commit but when it finishes it seems that nothing has happened, git status shows nothing, cheers in advance o/ | 17:19 |
| ← blinkdes_ left | 17:20 |
| → SocalNick joined | 17:20 |
|
tshirtman
| does "git log" show something? | 17:20 |
|
jast
| Davespice: 'git status' shows mainly uncommitted changes. try 'git log --all' | 17:20 |
| → Gizburdt joined | 17:20 |
|
Davespice
| hi jast, thanks I'll try that in a second | 17:20 |
| → Manny joined | 17:20 |
|
Davespice
| funny thing was that it doesn't look like it's actually pulling the revisions from svn | 17:21 |
| → ehmatthes joined | 17:21 |
| ← axsuul left | 17:21 |
| → pc joined | 17:21 |
| cillybabe → cilly | 17:21 |
| → dmarkham joined | 17:22 |
| → Jason_D joined | 17:23 |
|
tshirtman
| well, he did that when he went through them in the first place, no? now you have a git repos, all the commits are local | 17:23 |
|
Davespice
| hmm, git log only shows the README.md file that I added to the target git repo | 17:23 |
| ← Dudi left | 17:24 |
|
thiago
| Davespice: git log should show the changes | 17:24 |
|
| tshirtman doesn't know svn2git though | 17:24 |
| chuckharmston_ → chuckharmston | 17:24 |
|
thiago
| Davespice: git fast-import doesn't actually check out the commits as it proceeds. Your repository has no working dir. | 17:24 |
|
jast
| well you already have stuff in your current branch. did you expect svn2git to overwrite it, or magically combine the two? try with --all | 17:24 |
|
thiago
| Davespice: which svn2git, btw? | 17:25 |
| → whiskers75 joined | 17:25 |
| whiskers75 → Guest70297 | 17:25 |
|
Davespice
| um, its this one; https://github.com/nirvdrum/svn2git | 17:25 |
| → jaequery joined | 17:25 |
| ← arietis left | 17:25 |
|
Davespice
| I'll give the order in which I did things | 17:25 |
| ← arif-ali left | 17:25 |
|
thiago
| ah, I don't know that one | 17:26 |
|
| I can't help you | 17:26 |
|
| I thought you meant this one: https://gitorious.org/svn2git | 17:26 |
|
Davespice
| first created a github repo, made a local folder, added the remote repo origin, created README.md with some default text locally using nano and did a commit / push | 17:26 |
|
jast
| sorry, I gotta go | 17:27 |
|
Davespice
| maybe I should try that one | 17:27 |
| → goTAN joined | 17:27 |
| → LuxuryMode joined | 17:27 |
| → axsuul joined | 17:28 |
| ← pc left | 17:28 |
| → eletuchy joined | 17:28 |
| → zkc joined | 17:28 |
| ← _tpavel left | 17:28 |
| ← revyd left | 17:29 |
| ← Druide_ left | 17:29 |
| ← buffal0 left | 17:29 |
| → endiruna joined | 17:29 |
| → joelroa joined | 17:29 |
| → craigp joined | 17:29 |
| ← cilly left | 17:30 |
| → cilly joined | 17:30 |
| ← canton7-mac left | 17:31 |
| → Nicholas_Rishel joined | 17:32 |
| ← eletuchy left | 17:33 |
| ← mikecmpbll left | 17:34 |
| ← joelroa left | 17:34 |
| ← axsuul left | 17:34 |
| ← shruggar left | 17:35 |
| → hochmeister joined | 17:35 |
| → dreiss joined | 17:35 |
| ← hochmeister left | 17:36 |
| ← rbartos_ left | 17:36 |
| ← Nicholas_Rishel left | 17:36 |
| ← merica left | 17:37 |
| ← kermit left | 17:38 |
| → Nicholas_Rishel joined | 17:39 |
| → recycle joined | 17:39 |
| ← torjus left | 17:40 |
| → torjus joined | 17:40 |
| ← Neozonz left | 17:40 |
| → esc joined | 17:41 |
| ← esc left | 17:41 |
| → esc joined | 17:41 |
| → Shusshu joined | 17:41 |
| ← mizu_no_oto left | 17:41 |
| ← Shusshu left | 17:41 |
| → simesy joined | 17:41 |
| → Exio4 joined | 17:42 |
| → hochmeister joined | 17:43 |
|
torsten
| I need a good git tutorial | 17:43 |
|
_ikke_
| !book | 17: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 | 17:43 |
|
_ikke_
| !video | 17:43 |
|
gitinfo
| [!talks] Some good video talks about Git: [yt] http://goo.gl/z72s (Linus Torvalds: History&Concepts); [yt] http://goo.gl/R9H2q (Scott Chacon: Git basics, live examples); http://vimeo.com/35778382 (Randal Schwartz: Git basics, descriptional); http://vimeo.com/46010208 (Jesica Kerr: Git basics, descriptional) | 17:43 |
| ← becks__ left | 17:43 |
| → Rastus_Vernon joined | 17:44 |
|
torsten
| thx | 17:44 |
| ← Gizburdt left | 17:44 |
| ← torjus left | 17:44 |
| → Gizburdt joined | 17:44 |
| ← Manny left | 17:45 |
| jluc → shamp | 17:45 |
| → hahuang65 joined | 17:45 |
| ← simesy left | 17:45 |
| ← goTAN left | 17:45 |
| ← Kayra left | 17:45 |
| → oodavid joined | 17:45 |
| ← pikaren left | 17:46 |
| → rbartos joined | 17:46 |
|
| samsamm777 is away: Gone away for now | 17:46 |
| → ni__ joined | 17:46 |
| ← sjmikem left | 17:46 |
| ← jceb left | 17:46 |
|
not_a_guest
| what's the best way to get the sha of the latest commit from a project? | 17:47 |
|
| `git log | head -n 1` is the closest i can get | 17:47 |
|
| is there a file I can read it from? | 17:47 |
| ← HeN_ left | 17:47 |
|
not_a_guest
| looked through .git directory, but don't see anything | 17:47 |
| → lindenle joined | 17:48 |
| ← lindenle left | 17:48 |
|
thiago
| not_a_guest: git rev-parse HEAD | 17:48 |
| → lindenle joined | 17:48 |
| → recycle_ joined | 17:48 |
|
not_a_guest
| thiago: nice. is there a way to do this if I don't have git installed on the system? | 17:48 |
| → sluther joined | 17:48 |
|
thiago
| yeah, you just have to install git first | 17:48 |
|
| :-) | 17:49 |
|
not_a_guest
| hmm. where is rev-parse getting its info frm? | 17:49 |
|
thiago
| read the .git/HEAD file. If it says ref:, find that file | 17:49 |
|
| if the file doesn't exist, read .git/packed-refs | 17:49 |
| ← Gizburdt left | 17:49 |
|
not_a_guest
| oh cool | 17:49 |
| → mani2399 joined | 17:49 |
| ← hahuang65 left | 17:50 |
| ← mani2399 left | 17:50 |
|
zumba_addict
| hi folks, how can we produce a list of branches that have been merged to master? | 17:50 |
|
not_a_guest
| I thought I explored all that already, but nope. Thanks thiago ! :) | 17:50 |
|
thiago
| zumba_addict: git branch --merged master | 17:50 |
|
zumba_addict
| cool | 17:50 |
| ← rbartos left | 17:50 |
| ← recycle left | 17:50 |
|
zumba_addict
| where should I execute it? | 17:50 |
|
| should I be in master? | 17:50 |
|
osse
| zumba_addict: doesn't matter | 17:50 |
|
thiago
| zumba_addict: it doesn't depend on directory or on currently-checked out branch | 17:50 |
|
zumba_addict
| cool | 17:50 |
| → pwnz0r joined | 17:51 |
| → hochmeis_ joined | 17:51 |
| ← hochmeister left | 17:52 |
| → nepochal joined | 17:52 |
| ← sambae left | 17:52 |
|
| samsamm777 is back. | 17:52 |
| ← JosephFerano left | 17:52 |
| ← mlechner left | 17:53 |
| → Neozonz joined | 17:53 |
| Neozonz → Guest64214 | 17:53 |
| ← icarus left | 17:54 |
| → icarus joined | 17:54 |
| → rbartos joined | 17:54 |
| → ben_alman joined | 17:54 |
| ChanServ set mode: +o | 17:55 |
| ojacobson set mode: +b | 17:55 |
| ← achadwick left | 17:55 |
| ojacobson kicked samsamm777 (Please contact me to discuss your auto-away script.) | 17:55 |
| ojacobson set mode: -o | 17:55 |
| → ScottE joined | 17:55 |
|
osse
| oh snap | 17:55 |
| → arietis joined | 17:55 |
| ← ayaz left | 17:56 |
|
ralf-x
| ok so I am going to attempt to remove these halfassed merges I did from 'topic' to 'mater' | 17:56 |
| ← Guest64214 left | 17:56 |
|
ralf-x
| *master | 17:57 |
|
| when I am doing 'rebase -i', I see the 2 times I did this | 17:57 |
| ← ErKa left | 17:57 |
| ← cjsarette left | 17:57 |
|
thiago
| ralf-x: the rebasing should linearise | 17:57 |
|
ralf-x
| the text in that message suggests if I remove the lines for those 2 commits that they will be deleted. Does it really mean "it will be deleted from THIS branch"? | 17:57 |
| → kermit joined | 17:57 |
|
ralf-x
| because I want the actual commit to still exist in 'topic' | 17:58 |
|
| just not in 'master' | 17:58 |
|
thiago
| correct | 17:58 |
|
ralf-x
| ok | 17:58 |
| → Zifre joined | 17:58 |
|
ralf-x
| just wanted to be sure | 17:58 |
|
osse
| ralf-x: the branch you're rebasing *onto* is never changed. | 17:58 |
| ← recycle_ left | 17:58 |
| ← welly left | 17:59 |
|
ralf-x
| osse: I'm not using --onto... I'm doing this from master: git rebase -i <commit I belive to be where 'topic' was created> | 17:59 |
|
tshirtman
| and commits are not deleted, they are still around in the base, even if no branch point to them, for a long time, git reflog is very useful to find them again if you need to | 17:59 |
| ← ben_alman left | 17:59 |
| → joelroa joined | 17:59 |
| ← reskp left | 17:59 |
|
ralf-x
| osse: just to remove these 2 halfass merges I did. After that I'll be merging 'topic' to 'master' per normal | 18:00 |
|
osse
| ralf-x: then it is 'master' you are rebasing. | 18:00 |
|
tshirtman
| when you do "git rebase -i x" you rebase current branch onto x, x is not changed | 18:00 |
|
osse
| 'topic' will be left alone | 18:00 |
| → fr33 joined | 18:00 |
|
ralf-x
| osse: yeah I guess I'm rebasing master onto master eh? | 18:00 |
| → kukks|2 joined | 18:01 |
| → tobeplugged joined | 18:01 |
|
tshirtman
| master = the last commit of master, that would be a noop, you rebase onto an ancestor of this commit | 18:01 |
|
osse
| ralf-x: no, onto topic | 18:01 |
| ← WaReZ left | 18:01 |
|
ralf-x
| uhm | 18:02 |
|
| well that's not what I want to do :) | 18:02 |
| → reskp joined | 18:02 |
|
ralf-x
| I have 2 merge commits from 'topic' to 'master' that I wish to delete | 18:02 |
| → mizu_no_oto joined | 18:03 |
|
osse
| http://sprunge.us/GGbD | 18:03 |
|
| note that in this example master is identical before and after | 18:03 |
| → FatDarrel joined | 18:03 |
|
ralf-x
| ok... yes I see that | 18:03 |
|
osse
| the same with be the case with your 'topic' | 18:04 |
| → SocalNick_ joined | 18:04 |
| ← Diemuzi left | 18:04 |
| ← SocalNick left | 18:04 |
| SocalNick_ → SocalNick | 18:04 |
| ← Advocation_ left | 18:04 |
| → shruggar joined | 18:05 |
| → cjsarette joined | 18:06 |
|
ralf-x
| osse: it effectively re-states the 'topic' commits as if the common anscestor is H instead of D? | 18:06 |
| ← FortySix2 left | 18:07 |
|
osse
| ralf-x: exactly | 18:07 |
| ← oodavid left | 18:07 |
|
osse
| ralf-x: now, if instead of doing 'git rebase master' one does 'git rebase <sha of commit D>' that would obviously be a be a no-op. But in the case of rebase -i Git will allow it | 18:08 |
|
ralf-x
| well remember, I did a 'git checkout master; git merge --no-commit topic; (git revert/checkout as needed); git commit' 2x | 18:08 |
| → recycle joined | 18:08 |
|
ralf-x
| oh yeah? ok maybe that's what I was missing | 18:08 |
| ← cads left | 18:08 |
|
osse
| eveyrthing would be simpler if you could pastebin the output of !lol and then try to explain what you want the result to look like | 18:09 |
|
gitinfo
| A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all | 18:09 |
|
torsten
| how do I go between commits? | 18:10 |
|
osse
| or maybe just git log --oneline --graph --decorate topic master | 18:10 |
|
| torsten: git checkout | 18:10 |
|
ralf-x
| osse: lol that would be handy | 18:10 |
| → UserError joined | 18:10 |
| ← zacts left | 18:11 |
| ← rbartos left | 18:11 |
| ← robbyoconnor left | 18:11 |
|
UserError
| How do I get a list of all the files and directory/sub tree? I think i'm using git ls-files wrong | 18:11 |
| → Neozonz|Disc joined | 18:12 |
|
ralf-x
| osse: so with those 2 merges in mind, you are suggesting what exactly? | 18:12 |
| ← Neozonz|Disc left | 18:12 |
| → Neozonz|Disc joined | 18:12 |
| wagle_ → wagle | 18:12 |
| → buffal0 joined | 18:12 |
|
ralf-x
| git checkout master; git rebase -i <fork point>; delete the 2 goofy merges? | 18:12 |
|
osse
| ralf-x: I don't want to suggest anything because I'm not familiar enough with what you want to do | 18:12 |
| → rbartos joined | 18:13 |
|
ralf-x
| osse: fair enough | 18:13 |
|
osse
| ralf-x: my guess is that rebase will drop them automatically | 18:13 |
|
| that's what usually happens | 18:13 |
| ← cjsarette left | 18:13 |
|
thiago
| if you rebase over the merged commits | 18:13 |
|
osse
| at least when you specify 'topic' instead of 'fork point' | 18:13 |
|
thiago
| if you rebase over something not already including those merges, rebase will preserve them | 18:13 |
|
osse
| since you're rewriting anyway that is probably the easiest | 18:13 |
|
| thiago: makes sense. | 18:13 |
| kukks|2 → kukks | 18:14 |
|
osse
| ralf-x: then my suggestion is 'git rebase topic'. No -i and no fork point | 18:14 |
| ← kukks left | 18:14 |
| → kukks joined | 18:14 |
| ← Asenar left | 18:14 |
|
ralf-x
| osse: with 'master' as my currently checked out branch? | 18:14 |
|
osse
| and I would suggest you actually do it and see what happens. You can reverse it without trouble | 18:14 |
|
ralf-x
| or 'topic' | 18:14 |
|
osse
| ralf-x: yes | 18:14 |
|
ralf-x
| ok | 18:14 |
|
osse
| master | 18:14 |
| → macmartine joined | 18:15 |
| ← Guest70297 left | 18:15 |
|
ralf-x
| yeah I have a scratch clone that I'm doing this on just to be safe | 18:15 |
| ← yacks left | 18:15 |
| → whiskers75_ joined | 18:15 |
| ← axl_ left | 18:16 |
|
macmartine
| For some reason when I 'git pull origin new_refactor', when I'm already in my local 'new_refactor' branch, I'm getting a merge commit with the message 'Merge branch 'new_refactor' of github.com:myapp/web-app into new_refactor'. Any ideas why? | 18:16 |
| → Freeman42 joined | 18:16 |
|
milki
| macmartine: !pull4 | 18:17 |
|
gitinfo
| macmartine: [!fetchfour] We recommend against using 'git fetch/pull <remote> <refspec>' (i.e. with branch argument), because it doesn't update the <remote>/<branch> ref. The easy way to fetch things properly is to get everything: 'git fetch' or 'git pull' are sufficient if you have one remote; otherwise we recommend 'git fetch <remote>' (plus 'git merge <remote>/<branch>' if you wanted to pull/merge). | 18:17 |
| → axsuul joined | 18:17 |
| → RaceCondition joined | 18:18 |
|
canton7
| macmartine, yeah, you merged in the branch 'new_refactor' from the remote 'origin', rather than the remote-tracking branch 'origin/master' | 18:18 |
| ← francesca left | 18:18 |
|
canton7
| (in fetch4, the remote-tracking branches aren't updated, so it can't have merged in origin/master) | 18:18 |
| → hobodave joined | 18:19 |
| ← SocalNick left | 18:19 |
| → SocalNick joined | 18:19 |
|
macmartine
| k, thanks | 18:20 |
| ← axsuul left | 18:20 |
| ← SocalNick left | 18:20 |
|
ojacobson
| !detached !reattach | 18:20 |
|
gitinfo
| A detached HEAD(aka "no branch") occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach | 18:20 |
|
| Letters refer to !detached. (a) and (b): 'git checkout branchname' to continue working on another branch, or 'git checkout -b branchname' to start a new one here; (c) git am --continue; (d) git rebase --continue | 18:20 |
| ← zkc left | 18:20 |
| ← Davespice left | 18:21 |
| → goTAN joined | 18:21 |
| → bgerber joined | 18:22 |
| ← diegoviola left | 18:22 |
| ← akitada left | 18:22 |
| → axsuul joined | 18:22 |
| → Prazanna joined | 18:22 |
| ← whiskers75_ left | 18:22 |
| → whiskers75_ joined | 18:22 |
| ← ojacobson left | 18:22 |
| whiskers75_ → whiskers75 | 18:22 |
| ← whiskers75 left | 18:23 |
| → ncthom91 joined | 18:23 |
|
goTAN
| ok, I just commited new changes into master. To push those changes to my repo in a new branch I do git push origin:mynewbranch correct? | 18:23 |
|
osse
| goTAN: no. git push origin master:mynewbranch | 18:23 |
| → whiskers75 joined | 18:23 |
|
goTAN
| and then someone else can pull from this branch | 18:23 |
|
| oh | 18:23 |
| → doener joined | 18:23 |
| whiskers75 → Guest37853 | 18:23 |
| → kesha joined | 18:24 |
| ← Guest37853 left | 18:24 |
| → Guest37853 joined | 18:24 |
|
goTAN
| ok, thanks | 18:24 |
| → Sicp joined | 18:24 |
| ← Sicp left | 18:24 |
| → Sicp joined | 18:24 |
| → ArcTanSusan joined | 18:25 |
| ← ghoti left | 18:25 |
|
goTAN
| ok it seemed to work | 18:26 |
| ← pwnz0r left | 18:26 |
| Guest37853 → whiskers75 | 18:26 |
| ← whiskers75 left | 18:27 |
| → whiskers75 joined | 18:27 |
| → eletuchy joined | 18:28 |
|
torsten
| how do I checkout another commit by comment? (git checkout 46XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXef works) | 18:29 |
|
thiago
| torsten: what do you mean? | 18:29 |
|
osse
| torsten: git checkout ':/some string that matches' | 18:29 |
|
Sicp
| I remember there being a command that allows me to commit and add at the same time | 18:30 |
| ← ArcTanSusan left | 18:30 |
|
Sicp
| I cannot seem to find it online | 18:30 |
|
thiago
| Sicp: it's git commit. | 18:30 |
|
torsten
| ah ':/' too, thx | 18:30 |
|
thiago
| Sicp: it doesn't work for currently-untracked files | 18:30 |
|
Sicp
| git commit -m "asldjasd" filename | 18:30 |
|
| ? | 18:30 |
|
| yes I know | 18:30 |
| → Exancillatus joined | 18:30 |
|
Sicp
| let's try | 18:30 |
| → ErKa joined | 18:31 |
| → hahuang65 joined | 18:31 |
| ← rbartos left | 18:31 |
|
Sicp
| works | 18:31 |
| → ghoti_ joined | 18:31 |
|
Sicp
| well, what about one that would show me a diff of the target file as well? | 18:31 |
| ← axsuul left | 18:32 |
| → jogos joined | 18:32 |
|
Sicp
| nah, nonsense | 18:32 |
|
osse
| Sicp: commit -v | 18:32 |
| → infynyxx joined | 18:32 |
| → zacts joined | 18:32 |
| → WaReZ joined | 18:33 |
| ← eletuchy left | 18:33 |
| ← goTAN left | 18:33 |
| → mikecmpbll joined | 18:34 |
| → overZoF joined | 18:34 |
| → noxd joined | 18:34 |
|
Sicp
| it opens nano on the file and pastes output of git status below my commit-message-to-be | 18:34 |
| → codeFiend joined | 18:34 |
|
Sicp
| followed by the diff | 18:35 |
| PLejeck- → nuck | 18:35 |
|
Sicp
| https://www.dropbox.com/s/6by3nz1aesne1jb/Screenshot%202014-03-05%2020.35.27.png | 18:36 |
|
| looks so awkward | 18:36 |
| → SocalNick joined | 18:36 |
|
Sicp
| ah, I didn't read, sorry | 18:36 |
|
| lines with # will be ignored | 18:36 |
| → yhager joined | 18:36 |
|
Sicp
| of course, comments | 18:36 |
|
osse
| hmm, why didn't it open "full screen" in the terminal ? | 18:36 |
|
Sicp
| it did, but I scrolled up | 18:36 |
| → axsuul joined | 18:36 |
| ← enigmus left | 18:36 |
|
osse
| oh | 18:36 |
|
Sicp
| yea this is vim not nano | 18:37 |
| ← ghoti_ left | 18:37 |
| ← Exancillatus left | 18:37 |
| → Exancillatus joined | 18:37 |
| ← ZoF left | 18:38 |
|
Sicp
| I thought I saw a diff at the bottom there, but there is no diff | 18:38 |
| → rednaks joined | 18:38 |
|
Sicp
| meh! there is. | 18:38 |
| ← dreiss left | 18:38 |
|
Sicp
| sorry | 18:38 |
| → angelleye joined | 18:38 |
| → ghoti joined | 18:38 |
|
angelleye
| So, I just pushed a commit to my remote and tagged it, and then I realized there's a config file in there that I didn't want to be included. What's the best course of action? | 18:38 |
|
lov
| !rewrite | 18:39 |
|
gitinfo
| Rewriting public history is not recommended. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum | 18:39 |
|
osse
| angelleye: amend the commit, retag it, then push -f fast as hell | 18:39 |
|
masak
| angelleye: create another, better tag? | 18:39 |
| ← MacWinner left | 18:39 |
|
ralf-x
| haha | 18:39 |
|
lov
| if it's not sensitive, just git rm it, commit, push, change the tag, and move on. | 18:39 |
|
masak
| "please disregard the first tag, it sucks" | 18:39 |
|
lov
| ^^ | 18:39 |
|
Sicp
| I think push force is better | 18:40 |
| → Thra11 joined | 18:40 |
| → dreiss joined | 18:41 |
| → becks__ joined | 18:41 |
| ← Thra11 left | 18:41 |
|
Sicp
| since you are stripping something that means nothing to no one, so having no record of it is preferable | 18:41 |
|
ldiamond
| but you'd be rewriting public history | 18:41 |
| → simesy joined | 18:42 |
|
Sicp
| Git works for you | 18:42 |
|
| you don't work for Git | 18:42 |
|
ldiamond
| But the people who work for you will get confused. | 18:42 |
|
Sicp
| can't be forced to do something just because "that's how Git works" | 18:42 |
|
osse
| just do it quick and no one will notice! | 18:42 |
|
Sicp
| how? | 18:42 |
|
ldiamond
| it's not because "that's how git work" | 18:42 |
| ← _Vi left | 18:42 |
|
Sicp
| there is no record of it happening | 18:42 |
|
osse
| it's better to ask for forgiveness tyhan permission! | 18:42 |
| → aard_ joined | 18:42 |
| ← WormDrink left | 18:42 |
| → Beliq joined | 18:42 |
|
ldiamond
| it's because "git gives you the ability to verify the integrity of your repo" | 18:42 |
|
Sicp
| --force is there for a reason, I think | 18:43 |
|
ldiamond
| yes | 18:43 |
|
| but not this reason | 18:43 |
|
| if there was a password in there, I'd say rewrite and --force | 18:43 |
|
Sicp
| I know too little, from this point on | 18:43 |
|
osse
| only a sith deals in absolutes | 18:43 |
|
ldiamond
| --force if nobody fetched it yet... sure | 18:43 |
| ← ghoti left | 18:43 |
| → Thra11 joined | 18:43 |
|
ldiamond
| but only if you can know that | 18:43 |
|
Sicp
| ahhh | 18:43 |
| ← whiskers75 left | 18:44 |
|
macmartine
| milki, canton7 : I tried just 'git pull' and still got the merge commit | 18:44 |
|
ldiamond
| otherwise, that guy who based work on it (or girl...) will be confused, and may very well end up merging that config back again | 18:44 |
| → ghoti joined | 18:44 |
|
ldiamond
| don't trust people. | 18:44 |
|
angelleye
| ok, I'm having a little trouble following everybody... | 18:44 |
|
| I'm the only one really using this thing so far anyway, so this isn't a huge deal | 18:45 |
|
ldiamond
| angelleye, create a new commit where you remove the config. Tag the new commit. | 18:45 |
|
angelleye
| I deleted it locally and did a git commit --amend | 18:45 |
|
ldiamond
| if there's nobody else even looking at it | 18:45 |
|
| sure, --force | 18:45 |
|
angelleye
| now when I git status it says Your branch and origin/mater have diverged, and have 1 and 1 different commit each, respectively | 18:45 |
|
ldiamond
| exactly | 18:45 |
|
angelleye
| so...not sure what the next step is..?? | 18:46 |
| ← simesy left | 18:46 |
|
ldiamond
| If you assume I went ahead and cloned your repository | 18:46 |
|
| I'd be working on your previous commit, which you're about to remove | 18:46 |
| ← armyriad left | 18:46 |
|
Sicp
| ^^ | 18:46 |
|
angelleye
| I don't think I need to worry about that right now, just need to know the next step to get out of this situation i'm in | 18:46 |
|
ldiamond
| that would cause confusion and potentially someone may reintroduce that config you just removed | 18:46 |
|
Sicp
| you just cost the company $100,000 angelleye | 18:46 |
|
ldiamond
| Know that. | 18:46 |
| ← Exancillatus left | 18:46 |
| ← dreiss left | 18:47 |
|
ldiamond
| However, if it's your personal repo | 18:47 |
|
| and nobody cloned or fetched that commit. | 18:47 |
|
| then do a git push --force | 18:47 |
|
| that tells the server "I know what I'm doing, kthxbye" | 18:47 |
|
angelleye
| ok, I did that | 18:47 |
|
Sicp
| that's it | 18:48 |
|
ldiamond
| now your remote should be in sync with your new amended commit | 18:48 |
|
angelleye
| looks like it. thanks | 18:48 |
|
| man, just started with Git a few weeks ago and just when I think I've got it I go and do something like this | 18:48 |
|
ldiamond
| Remember that you shouldn't do that if people based work on commits you're about to remove from the history. That's all | 18:48 |
|
angelleye
| ok, thanks | 18:48 |
| → jceb joined | 18:49 |
|
ldiamond
| Git is nice for that. You can do almost any mistake you want, there's a way to get it fixed. | 18:49 |
| ← tvw left | 18:49 |
| ← ghoti left | 18:49 |
| → joemcgill joined | 18:49 |
|
angelleye
| So did this mess with my tag? | 18:49 |
| ← joemcgill left | 18:49 |
|
angelleye
| Do I need to retag now or is the tag I set still good? | 18:50 |
|
ldiamond
| you previously had a tag that referred to a commit that doesn't exist anymore | 18:50 |
|
| if you do 'git tag', do you see your tag? | 18:50 |
| → ghoti joined | 18:50 |
|
angelleye
| yes, I still see the tags I would expect, including that latest one | 18:50 |
| ← axsuul left | 18:51 |
| ← kermit left | 18:51 |
| ← Gamecubic left | 18:51 |
| ← kriks left | 18:51 |
| ← kukks left | 18:51 |
|
angelleye
| On GitHub when I click into the tag it does show 1 commit to master since this tag | 18:52 |
| → Gamecubic joined | 18:52 |
| → mewm joined | 18:52 |
|
osse
| angelleye: githubs web thing might have some cache stuff | 18:52 |
|
| so I wouldn't worry if that gets it wrong for a couple of minutes | 18:52 |
| → someperson joined | 18:52 |
|
ldiamond
| angelleye, your tag still exists | 18:52 |
|
| do 'git show <tagname>' | 18:53 |
|
| it will tell you what the SHA1 id is | 18:53 |
|
someperson
| if i have git-new-workdir, how do i make it so i can call it like: "git new workdir" | 18:53 |
| → ZoF joined | 18:53 |
|
osse
| someperson: you cannot. but you can do git new-workdir | 18:53 |
|
| someperson: if git-new-workdir is found somewhere in PATH | 18:53 |
|
ldiamond
| it should points to your old commit. | 18:53 |
| ← ni__ left | 18:53 |
|
osse
| oh, I thought he had already created a new tag. my bad. | 18:54 |
| → ben_alman joined | 18:54 |
|
angelleye
| hmmm...so yeah, if I download the zip attached to that last tag it still has the config file in it | 18:54 |
|
ldiamond
| angelleye, you will have to delete that old tag (unless you want to keep it obviously). | 18:54 |
|
| then you can tag the new commit | 18:54 |
| ← nszceta left | 18:54 |
| → torjus joined | 18:54 |
|
angelleye
| can I delete it so it can be reused? | 18:54 |
|
| or do I need to skip a version now? | 18:55 |
|
ldiamond
| git tag -d <TAGNAME> | 18:55 |
|
| -d == delete | 18:55 |
|
| you can use --delete too, same thing | 18:55 |
|
angelleye
| ok, so I did that... | 18:55 |
|
| now locally I only see the previous tags | 18:55 |
|
ldiamond
| now you can create your tag on the new commit | 18:56 |
| ← overZoF left | 18:56 |
|
angelleye
| so the tag I just deleted was v1.0.2 | 18:56 |
| ← sachin06j left | 18:56 |
|
angelleye
| but that stil shows up on GitHub | 18:56 |
| → draftqin joined | 18:56 |
|
angelleye
| do I need to delete it there first, too? | 18:56 |
|
ldiamond
| well you only deleted locally | 18:56 |
| → budrose joined | 18:56 |
|
angelleye
| right, so I'm not sure how to hanbdlet he remote side | 18:56 |
|
ldiamond
| create your new tag | 18:56 |
|
osse
| angelleye: push -f after creating the new one | 18:56 |
| ← draftqin left | 18:56 |
|
osse
| just like with the branch | 18:56 |
|
angelleye
| ok, can I name it v1.0.2 again? | 18:56 |
|
ldiamond
| when you push | 18:56 |
|
| sure, if that's what you want the name to be | 18:57 |
|
| Not sure you'll need -f this time though | 18:57 |
|
| I don't see why github would refuse deleting tags | 18:57 |
|
| likely 'git push <remote> --tags' will suffice | 18:57 |
| ← nanotech left | 18:57 |
|
ldiamond
| otherwise do -f | 18:57 |
| → WormDrink joined | 18:57 |
| ← WormDrink left | 18:58 |
| → WormDrink joined | 18:58 |
|
osse
| ldiamond: well, you ask github to overwrite an existing ref. | 18:58 |
|
| I would expect --force to be needed :p | 18:58 |
| ← ben_alman left | 18:58 |
| → Cache_Money joined | 18:58 |
|
angelleye
| doesn't seem to be liking git push origin --tags | 18:58 |
|
| rejected | 18:58 |
|
ldiamond
| osse, you can delete branch without -f. | 18:58 |
| → subhojit777 joined | 18:58 |
|
ldiamond
| then use -f | 18:59 |
| ← Cache_Money left | 18:59 |
| ← Zifre left | 18:59 |
| ← jfield left | 18:59 |
|
osse
| ldiamond: ahh, true | 18:59 |
| → nanotech joined | 18:59 |
| ← torjus left | 18:59 |
|
angelleye
| so git push origin origin --tags -f ?? | 18:59 |
| → postovaloff joined | 18:59 |
|
ldiamond
| sure | 18:59 |
| → FortySix2 joined | 18:59 |
|
osse
| angelleye: I assume the double origin was a typo | 18:59 |
|
ldiamond
| yea i missed that. | 18:59 |
|
angelleye
| yes | 19:00 |
|
| it looks like that did it | 19:00 |
| ← macmartine left | 19:00 |
|
osse
| now suddenly my comment about github's web cache becomes relevant \o/ | 19:00 |
| ← nkr left | 19:00 |
| ← bgerber left | 19:00 |
| → hassen joined | 19:01 |
| → ivan` joined | 19:01 |
| → sachin06j joined | 19:01 |
|
angelleye
| thanks guys | 19:01 |
| ← zacts left | 19:01 |
| → jlewis joined | 19:01 |
|
angelleye
| not exactly sure i understand everything that just happened, but i think i'm back to where i wnat to be | 19:01 |
| → jfield joined | 19:02 |
| ← thiago left | 19:02 |
| → n-st joined | 19:02 |
| → oodavid joined | 19:03 |
| ← starfox21 left | 19:03 |
| ← yhager left | 19:03 |
| → JosephFerano joined | 19:04 |
| → SHyx0rmZ joined | 19:04 |
| ← sachin06j left | 19:05 |
| → kermit joined | 19:05 |
| → cjsarette joined | 19:05 |
| → gr4ck joined | 19:05 |
|
gr4ck
| hi | 19:05 |
|
gitinfo
| gr4ck: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on. | 19:05 |
| ← Nicholas_Rishel left | 19:05 |
| ← angelleye left | 19:06 |
|
masak
| gr4ck: hi! I'd like to manually welcome you to #git :) | 19:06 |
| ← teran left | 19:06 |
|
gr4ck
| thx | 19:06 |
| ← doener left | 19:07 |
| ← vmiklos left | 19:07 |
| → nadirvardar joined | 19:07 |
| ← reskp left | 19:07 |
| → vmiklos joined | 19:07 |
|
ralf-x
| so that I'm clear: when you rebase, you're duplicating commits. meaning commit 'abcd12' is copied and almost identical to the new commit '123456' | 19:09 |
|
gr4ck
| i want to dev a project with two "main" branches, one for linux, second for win, and i want to commit parallel to both branches.. how i have to work on? | 19:09 |
| ← jogos left | 19:10 |
| → InvidFlower joined | 19:11 |
|
aberrant
| hi all | 19:11 |
| → ggggggg joined | 19:11 |
|
aberrant
| silly question: I'm on a branch other than master ('licensing'). Do I need to specify "licensing" in my "git push origin" or will it somehow know? | 19:11 |
| ← ggggggg left | 19:11 |
| ← Gamecubic left | 19:12 |
|
Rhonda
| aberrant: If that branch is set to tracking an origin's branch, you don't need to specify it. | 19:12 |
|
aberrant
| Rhonda: how do I tell / set that? | 19:13 |
|
Rhonda
| Just try it, git will tell you. :) | 19:13 |
| ← nadirvardar left | 19:13 |
| hiredman_ → hiredman | 19:13 |
|
aberrant
| yeah, ok, it's not :) | 19:13 |
|
| I had to specify the branch | 19:13 |
|
Rhonda
| Only for the first time though. | 19:13 |
| → joemcgill joined | 19:13 |
| → bgerber joined | 19:13 |
|
aberrant
| oh. | 19:13 |
|
Rhonda
| That will get noted in your .git/config, just look at the file now. | 19:13 |
| → axsuul joined | 19:14 |
|
aberrant
| cool. | 19:14 |
| ← joemcgill left | 19:14 |
|
aberrant
| no | 19:14 |
|
Rhonda
| You'll see that the newly pushed branch is mentioned in there, and thus git knows that your local branch licensing is tracking the origin's branch licensing. | 19:14 |
|
aberrant
| nothing changed in .git/config | 19:14 |
| → nadirvardar joined | 19:14 |
| ← mikecmpbll left | 19:14 |
|
osse
| ralf-x: yes | 19:14 |
|
Rhonda
| hmm, not? I thought that would get autmatically added on first push. Try to pull, maybe that adds it? | 19:14 |
|
aberrant
| git pull origin licensing? | 19:15 |
| → kriks joined | 19:15 |
| → axl_ joined | 19:15 |
|
aberrant
| nope, config unchanged | 19:15 |
|
| oh well, it's in my remote repo, so that's good | 19:15 |
|
osse
| ralf-x: but the old commits are no longer referenced, you won't see them in the git log output and so it's open season for the garbage collector. Hence the effect is that they are moved, even though that's not *really* what happens | 19:16 |
|
aberrant
| ok, I've just done a git merge of this branch to master. Do I then do a git push origin master to get it up to the remote repo? | 19:17 |
|
ralf-x
| osse: hmm ok good points. Gotcha | 19:17 |
| ← arnihr left | 19:17 |
|
aberrant
| or do I have to add/commit first? | 19:17 |
|
osse
| aberrant: if the merge was successful then you can push | 19:17 |
|
aberrant
| osse: the merge was successful | 19:18 |
| ← jaequery left | 19:18 |
| ← RaceCondition left | 19:18 |
|
aberrant
| hm | 19:18 |
|
| need to check the remote. one sec. | 19:18 |
| → Kayra joined | 19:18 |
| ← tobeplugged left | 19:19 |
| ← axsuul left | 19:19 |
| → armyriad joined | 19:19 |
|
aberrant
| ok, seems to have worked. Thank you all :) | 19:19 |
| ← Silmarilion left | 19:20 |
| ← Kayra left | 19:20 |
| → RaceCondition joined | 19:20 |
| → Kayra_ joined | 19:21 |
| ← nadirvardar left | 19:21 |
| → jaequery joined | 19:22 |
| → saorge_ joined | 19:22 |
| → dansmith_btc joined | 19:22 |
| → Diemuzi joined | 19:22 |
| gitinfo set mode: +v | 19:22 |
| → nadirvardar joined | 19:23 |
| → sq-one joined | 19:23 |
| ← oodavid left | 19:23 |
|
gr4ck
| sry, where is the noob channel of git? | 19:23 |
| → dreiss joined | 19:23 |
|
osse
| gr4ck: this is it | 19:23 |
|
gr4ck
| osse: thx | 19:24 |
|
osse
| gr4ck: if I were you I would have only one branch. Having two in parallel and committing to both will be more hassle than it's worth imho | 19:24 |
| ← saorge left | 19:25 |
| → jogos joined | 19:25 |
|
osse
| gr4ck: but sure it's possible. commit to one branch, then use git cherry-pick to duplicate it on the other branch | 19:25 |
|
prophile
| osse: I thought you were talking about a git analogy for having a noob channel there | 19:26 |
|
| "having two in parallel and committing to both will be more hassle than it's worth" | 19:26 |
|
dansmith_btc
| Hi, when I open up firefox git repo with gitk, it ends up eating all my RAM. Could anyone suggest a gui tool which will only show the last 100 commits or so? | 19:26 |
|
osse
| prophile: haha | 19:26 |
|
| prophile: my opinion remains the same :p | 19:26 |
|
ralf-x
| dansmith_btc: I use sourcetree. it seems decent. | 19:26 |
| → nilg joined | 19:28 |
|
dansmith_btc
| ralf-x, I'm on LInux, sourcetree is win/mac | 19:28 |
|
gr4ck
| osse: thx | 19:28 |
|
ralf-x
| dansmith_btc: ah my bad | 19:29 |
| ← joehh left | 19:29 |
| → mikecmpbll joined | 19:29 |
| → eletuchy joined | 19:29 |
|
canton7
| dansmith_btc, http://git-scm.com/download/gui/mac | 19:30 |
| → Advocation joined | 19:31 |
|
canton7
| tower, I hear, is very good | 19:31 |
|
| or there's the command0line tig, or git !lol | 19:31 |
|
gitinfo
| A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all | 19:31 |
| ← Sicp left | 19:31 |
|
dansmith_btc
| oops, just realized gitk -n 100 is what I need. thanks anyway | 19:31 |
| → oodavid joined | 19:32 |
| → ncthom91_ joined | 19:32 |
| → bwreilly_ joined | 19:33 |
| ← eletuchy left | 19:33 |
| → enigmus joined | 19:34 |
| → Macaveli joined | 19:34 |
| ← jogos left | 19:34 |
| ← oodavid left | 19:35 |
| ← bwreilly left | 19:35 |
| ← slobo left | 19:35 |
| → slobo joined | 19:35 |
| ← ncthom91 left | 19:35 |
| → gr4ck_ joined | 19:37 |
| ← postovaloff left | 19:37 |
| → pbrobst joined | 19:38 |
| → Gamecubic joined | 19:38 |
| → yhager joined | 19:38 |
| ← gr4ck left | 19:39 |
| ← codeFiend left | 19:40 |
| ← enigmus left | 19:40 |
| ← nnyk_ left | 19:40 |
| → thiago joined | 19:41 |
| → RogerWS joined | 19:41 |
| ← neal__ left | 19:41 |
| → unknwn- joined | 19:41 |
| ← northfurr left | 19:42 |
| ← RogerWS_ left | 19:42 |
| → nick108 joined | 19:43 |
| → neal__ joined | 19:43 |
| → nicedice joined | 19:43 |
| ← mourest left | 19:44 |
| ← jaequery left | 19:45 |
| ← Kayra_ left | 19:45 |
| → Havvy joined | 19:46 |
| ← ncthom91_ left | 19:46 |
| ← craigp left | 19:47 |
| ← ehmatthes left | 19:47 |
| → LeMike joined | 19:48 |
|
Havvy
| I've got a private branch that I've committed to, merged upstream, and recommitted to. I want to rebase my commits in this branch into one single commit without losing the commits that were merged in. | 19:48 |
| → cloud|nix joined | 19:48 |
|
Havvy
| How can I do this? | 19:48 |
| → jogos joined | 19:48 |
| → nutron joined | 19:48 |
| → CheckDavid joined | 19:49 |
|
moritz
| Havvy: simply rebase, and then squash your commits | 19:49 |
|
| Havvy: the rebase flattens out the merge commit too | 19:49 |
| → ben_alman joined | 19:49 |
| → veebers joined | 19:49 |
|
Havvy
| Won't squash squash the commits into the commit above them, which in this case, is somebody else's commit? | 19:50 |
| → FortySix_ joined | 19:51 |
| ← Neozonz|Disc left | 19:51 |
| ← subhojit777 left | 19:52 |
| ← phantomtiger left | 19:52 |
| ← LeMike left | 19:52 |
| → starfox21 joined | 19:52 |
|
moritz
| Havvy: first you rebase. That puts all of your own commits into a row at the end | 19:52 |
|
| Havvy: and then in a second step you git rebase -i to squash them | 19:52 |
|
Havvy
| Just do `git rebase %branchname%` ? | 19:52 |
| ← FortySix2 left | 19:53 |
| ← hamster left | 19:53 |
|
moritz
| well, on the branch, do 'git rebase master' (or whatever the branch is named that you branched off from) | 19:53 |
| ← marcosc left | 19:53 |
|
moritz
| though come to think of it, there's a simpler solution | 19:54 |
|
| git checkout yourbranch | 19:54 |
|
| git reset --soft master | 19:54 |
|
| git commit # done! | 19:54 |
| ← armyriad left | 19:54 |
|
moritz
| or maybe that's not optimal... | 19:55 |
|
| moritz is a bit confused right now | 19:55 |
|
moritz
| be sure to !backup first :-) | 19:55 |
|
gitinfo
| Worried about your data while trying out stuff in your repo? To back up commit history on all branches/tags: `git clone --mirror`. To backup everything, including work tree and staging area: `tar cf repo-backup.tar repodir`. Or do your experiment in a throwaway clone instead. See also http://sethrobertson.github.com/GitBestPractices/#backups | 19:55 |
| → Kayra joined | 19:55 |
| → zacts joined | 19:56 |
| ← CKyle left | 19:56 |
| → rbartos joined | 19:57 |
| → Exancillatus joined | 19:57 |
| ← Gavrisimo left | 19:57 |
| → paulweb5151 joined | 19:57 |
| ← paulweb515 left | 19:57 |
| ← arietis left | 19:58 |
| ← nick108 left | 19:58 |
| → nick108 joined | 19:59 |
| ← matteo left | 20:00 |
|
Havvy
| moritz: Ah, git reset --soft %branch% works wonderfully. | 20:00 |
| ← bgerber left | 20:00 |
| ← paulweb5151 left | 20:01 |
| ← rbartos left | 20:02 |
| ← yhager left | 20:02 |
| ← mizu_no_oto left | 20:03 |
| ← raccoon_ left | 20:03 |
| → rbartos joined | 20:03 |
| → raccoon_ joined | 20:03 |
| ← joelroa left | 20:04 |
| → yhager joined | 20:04 |
|
ralf-x
| well dammit | 20:04 |
| → pantsman joined | 20:04 |
| → endra joined | 20:04 |
|
ralf-x
| so I'm attempting to re-run everything from 'topic' to 'other_topic' | 20:04 |
|
| they both have hte same branch point | 20:05 |
|
| seems like I'm having some issues trying to get the rebase to run correctly though | 20:05 |
| ← Exancillatus left | 20:06 |
| → flaguy48 joined | 20:07 |
| → Xethron joined | 20:07 |
| ← Xethron left | 20:07 |
| → Xethron joined | 20:07 |
| → Near joined | 20:07 |
| → Trudko joined | 20:07 |
|
ralf-x
| I *think* I want to rebase 'topic' onto 'other_topic', but maybe my terminology is backwards | 20:08 |
| → SorenHolm joined | 20:08 |
|
Near
| I created an experimental branch for my personal project and it turns out I want to completely replace the master branch with the experimental one. How should I go about this? | 20:08 |
| ← Advocation left | 20:08 |
| → Exancillatus joined | 20:09 |
| ← budrose left | 20:09 |
| → paulweb515 joined | 20:10 |
|
osse
| Near: git checkout master; git reset -hard experimental | 20:10 |
|
Eugene
| Near - `git checkout master; git reset --hard experimental` will | 20:10 |
|
| Shit, beaten. | 20:10 |
|
osse
| Eugene: nah. I'm disqualified. Missing a dash | 20:10 |
| ChanServ set mode: +o | 20:10 |
| Eugene kicked osse (FAILURE IS NOT AN OPTION) | 20:10 |
|
Near
| Eugene: lol | 20:11 |
| → osse joined | 20:11 |
| Eugene changed the topic to: Welcome to #git, the place for git help and artery-clogging cheeseburgers | Current stable version: 1.9.0 | Start here: http://jk.gs/git | Seeing "Cannot send to channel" or unable to change nick? /msg gitinfo .voice | git-sweep: It's brooms, all the way down. | 20:11 |
|
ralf-x
| lol | 20:11 |
| Eugene set mode: -o | 20:11 |
| → Nicholas_Rishel joined | 20:11 |
|
Eugene
| Bonus: if you don't want to switch branches, man git-update-ref | 20:11 |
|
gitinfo
| the git-update-ref manpage is available at http://jk.gs/git-update-ref.html | 20:11 |
|
osse
| They don't take me by surprise anymore :p | 20:11 |
|
| the beatings | 20:12 |
|
dzho
| wait, what? There are cheeseburgers? | 20:12 |
|
Near
| also, wouldn't this do?: git checkout experimental ; git merge -s ours master ; git checkout master ; git merge experimental ? | 20:12 |
| ← pfg left | 20:12 |
|
Eugene
| Not the same thing, no | 20:12 |
|
| It will do it without forcing a non-ff update, which is benefical | 20:12 |
| ← rbartos left | 20:12 |
| → Dreamer3 joined | 20:12 |
| ← ewet left | 20:13 |
| ← cjsarette left | 20:13 |
|
Near
| Eugene: so I should just do what you told me? | 20:13 |
|
osse
| Near: the -s ours thing only applies in case of conflicts. You'll still end up with a mix of master and experimental | 20:13 |
| → AVDeen__ joined | 20:13 |
|
Eugene
| But the stuff that's happened on master since exp diverged will remain there. You said "prersonal project", so I'm guessing that's OK. | 20:13 |
| ← jceb left | 20:13 |
|
Eugene
| osse - that's -Xours; -s ours is different ;-) | 20:13 |
|
osse
| oh | 20:13 |
|
Near
| Eugene: alright, a simple replacement, so your stuff would do. | 20:13 |
| → tvw joined | 20:13 |
|
osse
| I'll just leave and rejoin. Save you the paperwork | 20:13 |
|
Eugene
| Indeed. | 20:13 |
| ← SocalNick left | 20:13 |
|
Eugene
| Near - the choice comes to: do you care about the master's history at all? Or you just want to do it and move forward. | 20:14 |
|
| Also, this is a great time to stop using the word !master. Call it stable instead! | 20:14 |
|
gitinfo
| [!master_branch] 'master' is the default name for the first branch commited by git, and it is in no way special. You can just delete it, and use more meaningful names such as 'dev' 'stable' 'unstable' 'bug/001' etc. If this is a bare repo, you will want to change the default branch(`git symbolic-ref HEAD refs/heads/somebranch`) first. | 20:14 |
| → rbartos joined | 20:14 |
|
Near
| Eugene: I wouldn't even care if master went to hell | 20:14 |
| ← BiggFREE left | 20:15 |
|
Eugene
| git branch stable; git branch -D master; !beer | 20:15 |
|
gitinfo
| Beer! It's what's for dinner! | 20:15 |
| ← vtunka left | 20:15 |
|
Near
| Eugene: that's not really safe is it? | 20:15 |
|
| ^^ | 20:15 |
|
Eugene
| If you plan on driving, no. But stay home or catch a cab. | 20:15 |
| ← xsbeats left | 20:16 |
|
Near
| Eugene: hehe, well it would be illegal for me anyways. | 20:16 |
| ← axl_ left | 20:17 |
| → torjus joined | 20:17 |
| → maroloccio joined | 20:18 |
| → pfg joined | 20:18 |
| → bgerber joined | 20:18 |
| ← Near left | 20:18 |
| ← aberrant left | 20:18 |
|
osse
| to drive or drink? | 20:18 |
|
Eugene
| !branch_delete applies here, but yeah, totally safe, if you no longer care about the word master(and you shouldn't) | 20:18 |
|
gitinfo
| Deleting a branch is easy. `git branch -d branchname` (or -D). However, this will NOT delete the branch upstream, that requires `git push --delete origin branchname`. However, this will NOT delete remote tracking branches. EACH USER must `git remote prune origin`, but if any users have local branches, they must likewise run `git branch -d branchname` (or -D) | 20:18 |
|
Eugene
| osse - first the drinking, then the driving. Two separate operations. | 20:18 |
| ← lite_ left | 20:19 |
| ← paulweb515 left | 20:19 |
|
osse
| I was just trying to determine his age :p | 20:19 |
| → lite_ joined | 20:19 |
| → dort joined | 20:19 |
|
Eugene
| Pointless endeavour - everybody on the internet is a 40-year old fat man in their mother's basement. This is a know nfact. | 20:20 |
|
osse
| damn. busted. | 20:20 |
|
_ikke_
| Eugene: How do you know me? | 20:20 |
| → simesy joined | 20:21 |
|
_ikke_
| Near has left anyway, for the ones who didn't notice | 20:21 |
|
osse
| Damn Near killed her! | 20:21 |
| → aMoniker joined | 20:22 |
|
_ikke_
| Killed who? | 20:22 |
|
Eugene
| urmom | 20:22 |
|
osse
| _ikke_: you're fiancee | 20:22 |
|
| your | 20:22 |
| ← [aviraldg] left | 20:22 |
| ← shawndumas left | 20:22 |
| ← lite_ left | 20:22 |
|
aMoniker
| Is there a way to use git so that permissions/ownership are kept intact? I'm trying setgitperms.perl but it's not working with git pull | 20:22 |
| ← starfox21 left | 20:23 |
| → aberrant joined | 20:23 |
| → ghostlines joined | 20:23 |
|
_ikke_
| aMoniker: Git only knows 755 and 644 | 20:23 |
|
osse
| aMoniker: no, except for the executable bit | 20:23 |
| → gimpygoo joined | 20:23 |
| ← tvw left | 20:23 |
|
aMoniker
| gross | 20:23 |
|
grawity
| aMoniker: intact when you clone the repo elsewhere? | 20:23 |
|
_ikke_
| and non of the ownerships | 20:23 |
|
bremner
| you can add various hacks to hooks, like the one you found | 20:23 |
|
aMoniker
| grawity: intact when I pull in new changes | 20:23 |
|
grawity
| aMoniker: or intact when you chown a file and `git pull` updates it | 20:23 |
|
aMoniker
| bremner: not working though | 20:23 |
|
Eugene
| aMoniker - !etckeeper | 20:23 |
|
gitinfo
| aMoniker: etckeeper is a collection of tools to let /etc be stored in a git, mercurial, darcs, or bzr repository. It hooks into various package managers. http://kitenet.net/~joey/code/etckeeper/ | 20:23 |
|
aMoniker
| grawity: exactly | 20:23 |
|
_ikke_
| git is not meant as a !deploy tool | 20:24 |
|
gitinfo
| Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html | 20:24 |
|
Eugene
| aMoniker - or !xy ;-) | 20:24 |
|
gitinfo
| aMoniker: Woah, slow down for a bit. Are you sure that you need to jump to that particular hoop to achieve your goal? We suspect you don't, so why don't you back up a bit and tell us about the overall objective... | 20:24 |
|
osse
| aMoniker: what if you pull an update and a file belongs to a user not present on your system? | 20:24 |
| → merica joined | 20:24 |
| → cjsarette joined | 20:24 |
| ← kriks left | 20:24 |
| ← Xethron left | 20:24 |
|
aMoniker
| osse: it'd be nice if I could set the ownership to a default | 20:24 |
| ← rbartos left | 20:25 |
| ← WormDrink left | 20:25 |
| ← simesy left | 20:25 |
| → Neozonz joined | 20:26 |
| ← Neozonz left | 20:26 |
| → Neozonz joined | 20:26 |
|
Eugene
| That's a job for your OS' | 20:26 |
|
grawity
| regarding that – on Unix systems, ownership can be changed only by root | 20:26 |
| → Xethron joined | 20:27 |
| ← Xethron left | 20:27 |
| → Xethron joined | 20:27 |
|
osse
| alias git='sudo git ' | 20:27 |
| → WormDrink joined | 20:27 |
|
grawity
| so git can only try a bit harder to update the file "in place", but... | 20:27 |
|
Eugene
| You can use the g+s bit(on directories) under a unix-like system to force all files/folders created to have their group set to that of the parent(unstead of your current gid) | 20:27 |
|
osse
| how can I lose | 20:27 |
| ← mellernoia left | 20:27 |
|
Eugene
| See also man git init --shared | 20:27 |
|
gitinfo
| the git-init manpage is available at http://jk.gs/git-init.html | 20:27 |
|
_ikke_
| osse: Don't forget to move your config to rot | 20:27 |
|
| root | 20:27 |
| ← WormDrink left | 20:27 |
| → WormDrink joined | 20:27 |
|
osse
| _ikke_: shit yeah. I need my fancy prompt as r00t | 20:28 |
|
_ikke_
| osse: Not prompt | 20:28 |
|
| osse: user identity | 20:28 |
|
osse
| oh, I thought you meant move ALL the configz | 20:28 |
|
_ikke_
| no, the git specific ones | 20:28 |
|
osse
| like .${SHELL##*/}rc | 20:28 |
|
_ikke_
| because when you execute git as root, it looks for /root/.gitconfig | 20:29 |
|
cbreak
| running git as root? Now that's a braindead idea. | 20:29 |
|
_ikke_
| cbreak: totally agree | 20:29 |
|
cbreak
| what's next? Running wine (with internet explorer) as root? :) | 20:30 |
| ← Hounddog left | 20:30 |
| → cfoch joined | 20:30 |
|
_ikke_
| cbreak: Why not | 20:30 |
|
aMoniker
| why is running git as root a bad idea? | 20:30 |
| → eletuchy joined | 20:30 |
| → joelrobichaud joined | 20:30 |
|
_ikke_
| aMoniker: principle of least privilege | 20:30 |
|
bambams_
| Running anything unnecessarily as root is a bad idea. | 20:30 |
| → xaq joined | 20:30 |
|
cbreak
| because git is not security software. I would not trust it enough to be root safe | 20:30 |
| → joelroa joined | 20:31 |
|
aMoniker
| oh ok, not something specific to git then | 20:31 |
|
_ikke_
| nope, just general common sense | 20:31 |
|
UserError
| This is why windows is bad for the world | 20:31 |
|
cbreak
| in unix, permissions often come from the user. | 20:31 |
| ← someperson left | 20:31 |
|
_ikke_
| UserError: Used to be anyway | 20:31 |
|
cbreak
| so if you run as root, most stuff you run inherits your root permissions | 20:31 |
|
UserError
| i think some people are also used to sudo too much, and don't understand the difference between that and su -c | 20:32 |
|
cbreak
| there are exceptions of course, such as OS X, where you can employ MAC with sandboxing | 20:32 |
|
| or secure linux or bsd jails, and similar things | 20:32 |
|
| but normally, root is really really not limited. | 20:32 |
| ← bwreilly_ left | 20:33 |
| ← xaq left | 20:33 |
| → xaq_ joined | 20:33 |
|
UserError
| So hey i was trying to write stdout of git ls-tree --full-tree -r HEAD or something related to a file to show the tree and files | 20:33 |
|
bambams_
| IMO, if you have an unrestricted sudoers then your system is broken. :P | 20:33 |
|
UserError
| is there something more useful or correct looking | 20:33 |
|
| for git | 20:33 |
|
_ikke_
| UserError: What is wrong with that? | 20:33 |
| ← Xethron left | 20:33 |
| ← ben_alman left | 20:34 |
| → Xethron joined | 20:34 |
| ← Xethron left | 20:34 |
| → Xethron joined | 20:34 |
|
UserError
| it looks horrible written to a file as output | 20:34 |
|
bambams_
| !xy perhaps? | 20:34 |
|
gitinfo
| Woah, slow down for a bit. Are you sure that you need to jump to that particular hoop to achieve your goal? We suspect you don't, so why don't you back up a bit and tell us about the overall objective... | 20:34 |
|
UserError
| not XY | 20:34 |
| ← WormDrink left | 20:34 |
| → bwreilly joined | 20:34 |
| ← eletuchy left | 20:34 |
|
_ikke_
| What output do you need / expect? | 20:34 |
|
UserError
| a traditional tree style output | 20:34 |
| ← rethus left | 20:35 |
| → armyriad joined | 20:35 |
|
UserError
| ---DIR | 20:35 |
| → ojacobson joined | 20:35 |
| → EvilDMP joined | 20:35 |
|
UserError
| \_______File | 20:35 |
| → WormDrink joined | 20:35 |
|
cbreak
| UserError: haha | 20:35 |
|
UserError
| :\ | 20:35 |
|
cbreak
| that's pretty much unparseable | 20:35 |
|
EvilDMP
| is it possible to remove a commit from the history? (supposing that it can be done cleanly) | 20:35 |
|
UserError
| it was an example | 20:35 |
|
_ikke_
| EvilDMP: Yes, it is possible | 20:36 |
|
cbreak
| UserError: ls-tree is much easier to parse. | 20:36 |
| → ben_alman_ joined | 20:36 |
|
_ikke_
| EvilDMP: But it has implications | 20:36 |
|
bambams_
| EvilDMP: Yes, but that is a !rewrite. | 20:36 |
|
gitinfo
| EvilDMP: Rewriting public history is not recommended. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum | 20:36 |
| ← Chryyz left | 20:36 |
|
_ikke_
| EvilDMP: Is that commit already pushed somewhere else? | 20:36 |
|
EvilDMP
| in this case, rewriting's ok | 20:36 |
|
| _ikke_: no | 20:36 |
|
bambams_
| EvilDMP: Easiest way is with rebase --interactive. | 20:36 |
|
_ikke_
| EvilDMP: did you make merges afterwards? | 20:37 |
| → xaq joined | 20:37 |
|
EvilDMP
| oh, and I can remove instead of squashing or whatever? | 20:37 |
|
_ikke_
| EvilDMP: it can even be done in one command | 20:37 |
|
bambams_
| EvilDMP: Yes, if you delete the line that commit will effectively be deleted. | 20:37 |
| ← xaq_ left | 20:37 |
|
_ikke_
| git rebase <commit> --onto <commit>^ | 20:37 |
|
EvilDMP
| I will try that thanks | 20:37 |
|
cbreak
| I'd not mix --onto with history rewriting | 20:38 |
|
_ikke_
| cbreak: The effect is the same | 20:38 |
| ← joelroa left | 20:38 |
|
_ikke_
| You rebase the children of the commit onto its parent | 20:39 |
| → beyondcreed joined | 20:40 |
| ← gr4ck_ left | 20:40 |
|
aMoniker
| git-deploy looks nice... has anyone used that? | 20:40 |
|
_ikke_
| nope | 20:40 |
|
aMoniker
| (that can attest to its niceness) | 20:40 |
| ← Xethron left | 20:40 |
|
bambams_
| aMoniker: Have you already ruled out gitolite? :-/ | 20:40 |
|
aMoniker
| bambams_: no, I haven't looked into it | 20:41 |
|
_ikke_
| gitolite has nothing to do with deployments | 20:41 |
|
bambams_
| Or are you actually deploying a Web site or something? | 20:41 |
| ← Trudko left | 20:41 |
| ← AVDeen__ left | 20:41 |
|
aMoniker
| bambams_: deploying a site | 20:41 |
|
bambams_
| Ah, nevermind. | 20:41 |
|
_ikke_
| gitolite is only repository authorization | 20:41 |
|
aMoniker
| oh ok | 20:41 |
|
_ikke_
| and it does it well | 20:42 |
|
aMoniker
| I just need to come up with a tool that allows me to pull into a repo on the prod server, then deploy into the live directory, keeping permissions/ownership intact | 20:42 |
|
| plus I'll need to sync changes made in the live directory, like uploads/ftp changes and such | 20:42 |
|
_ikke_
| aMoniker: A good system just sets the correct permissions | 20:42 |
|
kadoban
| aMoniker: rsync? | 20:42 |
| ← Beliq left | 20:42 |
|
aMoniker
| kadoban: that might be part of it | 20:42 |
|
_ikke_
| aMoniker: I usually just symlink themn | 20:42 |
|
aMoniker
| _ikke_: yeah, I'll keep track of those and have them updated | 20:43 |
| → axl_ joined | 20:43 |
| ← FortySix_ left | 20:43 |
|
aMoniker
| looks like git-deploy can automate that | 20:43 |
| → jab416171 joined | 20:43 |
|
_ikke_
| aMoniker: Yeah, but you shouldn't rely on the permissions on the current live dir, but you should explicitly set them | 20:43 |
| ← xaq left | 20:43 |
|
aMoniker
| _ikke_: I agree, that's what I mean | 20:44 |
|
_ikke_
| ok | 20:44 |
| → xaq joined | 20:44 |
|
aMoniker
| could keep the config file for setting permissions in the repo too :) | 20:44 |
|
_ikke_
| The system I use (capistrano), creates release dirs, and then switches a symlink on the newly creates dir | 20:44 |
|
| That way, a rollback is just a symlink away | 20:44 |
|
bambams_
| Mmmm. | 20:45 |
|
aMoniker
| that's nice | 20:45 |
|
| easy to get up and running? | 20:45 |
|
_ikke_
| I have no experience with capistrano 3 yet | 20:45 |
| ← jackneill left | 20:45 |
| → reskp joined | 20:45 |
| ben_alman_ → ben_alman | 20:45 |
|
_ikke_
| It's ruby | 20:45 |
|
| (I use it while I hardly know any ruby) | 20:46 |
| ben_alman → ben_alman_ | 20:46 |
| ben_alman_ → ben_alman | 20:46 |
| → FortySix2 joined | 20:46 |
| → SocalNick joined | 20:46 |
|
aMoniker
| I've used ruby for vagrant/chef | 20:46 |
|
| enough for configs | 20:47 |
|
_ikke_
| Then capistrano shouldn't be a problem | 20:47 |
| ← ferreum left | 20:47 |
|
aMoniker
| ok, I'll give it a shot, thans | 20:47 |
|
| *thanks | 20:47 |
| ← arvind_khadri left | 20:48 |
| ← nilg left | 20:49 |
| → paulweb515 joined | 20:49 |
| → phantomtiger joined | 20:49 |
| → thegorn joined | 20:50 |
| ← thegorn left | 20:50 |
|
EvilDMP
| well, here's my git log: https://dpaste.de/hXvU and here's how GitHub shows the pull request that will result: https://github.com/evildmp/pip/compare/newdevelop?expand=1 | 20:51 |
|
| what I'd like is to make a pull request that gives the impression I know what I am doing | 20:51 |
|
| how should I tidy that up before sending the pull request? | 20:51 |
|
| I don't want it to look as though there were a monkey at the keyboard | 20:52 |
|
ralf-x
| lol | 20:52 |
| ← aberrant left | 20:52 |
| → Gizburdt joined | 20:52 |
|
grawity
| git rebase -i origin/develop.. | 20:52 |
| ← phantomtiger left | 20:52 |
|
grawity
| !hamburger | 20:52 |
|
gitinfo
| [!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 | 20:52 |
|
grawity
| !perfect | 20:52 |
|
gitinfo
| [!postproduction] So, you want to make your commit history look pretty before pushing? http://sethrobertson.github.com/GitPostProduction talks you through how to use 'rebase -i' to do this. | 20:52 |
| → VinceThePrince joined | 20:53 |
| → thegorn joined | 20:53 |
|
EvilDMP
| grawity: perfection's some way away, it's just that since I'm on the Internet I feel there's no need for everyone to think I'm a dog | 20:53 |
| ← VinceThePrince left | 20:54 |
|
jast
| the linked articles try to answer your question anyway :) | 20:54 |
| ← DoniRS left | 20:54 |
| → rethus joined | 20:54 |
| → ncthom91 joined | 20:54 |
|
EvilDMP
| jast: reading now | 20:54 |
| ← Macaveli left | 20:55 |
| → diegoviola joined | 20:56 |
| → alvaro_o joined | 20:57 |
| → phantomtiger joined | 20:57 |
| → nnyk_ joined | 20:57 |
| ← koell left | 20:57 |
| ← jogos left | 20:58 |
| → arif-ali joined | 20:59 |
| → joelroa joined | 20:59 |
| ← nnyk_ left | 20:59 |
| ← arif-ali left | 20:59 |
| ← hoschi left | 21:00 |
| → arvind_khadri joined | 21:00 |
| → HicksD joined | 21:00 |
| → arif-ali joined | 21:00 |
| ← mewm left | 21:01 |
|
Eugene
| jast - anything more I could do to repro that issue? | 21:01 |
| ← ErKa left | 21:01 |
| ← timewa1ker left | 21:01 |
| ← Nicholas_Rishel left | 21:01 |
|
HicksD
| What's usually the cause of a failed git subtree merge when the error is: "fatal: entry not found in tree <long sha1>" | 21:02 |
| → gain joined | 21:02 |
| → lindenle_ joined | 21:02 |
| ← marthinal left | 21:02 |
|
HicksD
| I've checked the git log and the last subtree merge entry lists a commit sha1 that still exists in the remote repo I've fetched and trying to subtree merge in | 21:02 |
| ← joelroa left | 21:04 |
| MattMake_ → MattMaker | 21:04 |
| ← bluesm left | 21:05 |
| → Pullphinger joined | 21:06 |
| → tpollard joined | 21:06 |
| → tvw joined | 21:07 |
| ← Gizburdt left | 21:08 |
| ← lindenle_ left | 21:08 |
| ← SorenHolm left | 21:10 |
| ← facundor left | 21:10 |
| → ws2k3__ joined | 21:10 |
| ← InvidFlower left | 21:11 |
|
imachuchu
| HicksD: I have no idea and have no basis for my suggestion other then paranoia, but you might want to run a git fsck just in case | 21:12 |
| → shawndumas joined | 21:12 |
| → jogos joined | 21:12 |
|
HicksD
| hmm that lists 4 dangling commits | 21:13 |
| → nilg joined | 21:13 |
| ← IrishPrime left | 21:13 |
| → ncthom91_ joined | 21:13 |
| → Gizburdt joined | 21:14 |
| → enigmus joined | 21:14 |
| ← armyriad left | 21:14 |
| → polyzen joined | 21:14 |
| ← aarapov left | 21:15 |
| ← Kicer86 left | 21:15 |
| ← FortySix2 left | 21:15 |
| → phuh joined | 21:16 |
| → FortySix2 joined | 21:16 |
| ← nyuszika7h left | 21:16 |
| ← ncthom91 left | 21:17 |
|
HicksD
| Just tried it again but dropped the trailing slash on the prefix and the merge succeeds. | 21:17 |
|
| Pretty sure I used a / last time, but perhaps it's a memory failure :) | 21:18 |
| → rbartos joined | 21:18 |
| → remiros joined | 21:18 |
| → jaequery joined | 21:18 |
|
imachuchu
| HicksD: dangling commits are fine, and glad everything worked out | 21:19 |
|
HicksD
| what has confused me a little is that the other two subtrees updated with the trailing slash e.g --prefix=foo/ | 21:20 |
| ← maroloccio left | 21:21 |
| ← Exancillatus left | 21:22 |
| ← ws2k3__ left | 21:23 |
| ← jogos left | 21:23 |
| ← kesha left | 21:24 |
| ← hassen left | 21:25 |
| ← jsilver left | 21:26 |
| → petey joined | 21:26 |
| ← ncthom91_ left | 21:26 |
| → ws2k3__ joined | 21:26 |
| → jsilver joined | 21:26 |
| ← RaceCondition left | 21:27 |
| → AaronMT_ joined | 21:27 |
| ← einonm left | 21:27 |
| → marthinal joined | 21:27 |
| → einonm joined | 21:28 |
| → rednaks_ joined | 21:29 |
| ← AaronMT left | 21:29 |
| → teran joined | 21:29 |
| ← sluther left | 21:30 |
| → eletuchy joined | 21:31 |
| ← rednaks left | 21:31 |
| ← infynyxx left | 21:31 |
| ← torjus left | 21:31 |
| → nnyk_ joined | 21:32 |
| → hobodave_ joined | 21:32 |
| → torjus joined | 21:32 |
| ← marthinal left | 21:32 |
| ← hobodave left | 21:32 |
| → northfurr joined | 21:33 |
| ← northfurr left | 21:33 |
| → northfurr joined | 21:33 |
| → harobed joined | 21:34 |
| ← harobed left | 21:34 |
| → harobed joined | 21:35 |
| ← harobed left | 21:35 |
| ← eletuchy left | 21:35 |
| → harobed joined | 21:36 |
|
FatDarrel
| hey | 21:36 |
| ← harobed left | 21:36 |
| → harobed joined | 21:37 |
| ← harobed left | 21:37 |
| ← torjus left | 21:37 |
| → jogos joined | 21:37 |
|
FatDarrel
| So i asked this question yesterday but I haven't figured it out as of yet I have changes in CentOS 6.0 branch and I want to migrate them to the Fedora branch | 21:37 |
| → harobed joined | 21:37 |
| ← harobed left | 21:38 |
| → ncthom91 joined | 21:38 |
| ← ncthom91 left | 21:38 |
|
jizanthapus
| what's the point of a --no-ff merge policy? | 21:38 |
| ← Zaknefain left | 21:38 |
| → harobed joined | 21:38 |
|
HicksD
| Making sure feature branches still look like feature branches post merge back when a ff merge would have also been possible. | 21:38 |
|
grawity
| making sure all feature merges have a descriptive commit message | 21:39 |
| → ncthom91 joined | 21:39 |
| → Zaknefain joined | 21:39 |
| ← ncthom91 left | 21:39 |
| → BtbN joined | 21:39 |
| → ncthom91 joined | 21:40 |
| ← ncthom91 left | 21:40 |
| ← sq-one left | 21:40 |
| → ncthom91 joined | 21:40 |
|
jizanthapus
| HicksD, grawity makes sense, thanks | 21:41 |
| ← FatDarrel left | 21:41 |
| → robbyoconnor joined | 21:41 |
| ← ghostlines left | 21:41 |
| → Mitchbon_ joined | 21:42 |
| ← arif-ali left | 21:42 |
| → sonOfRa joined | 21:42 |
| ← cloud|nix left | 21:42 |
| ← Mitchbones left | 21:43 |
| ← Zaknefain left | 21:43 |
| → Zaknefain joined | 21:43 |
| → GT4066 joined | 21:46 |
| ← werlley left | 21:47 |
| ← Pullphinger left | 21:48 |
| ← Zaknefain left | 21:48 |
| ← nnyk_ left | 21:48 |
| → guzzlefry joined | 21:48 |
| ← Gizburdt left | 21:48 |
| ← nadirvardar left | 21:48 |
| → nnyk_ joined | 21:49 |
|
guzzlefry
| How can I checkout all changed and tracked files in a directory? | 21:49 |
|
jast
| Eugene: to make sure there's no whitespace issue or similar anywhere, try inserting a bit of tracing code before the error, e.g.: print STDERR "|".join('|', keys %{$BotIrc::cfg->{channel}})."|\n|$channel|\n"; | 21:49 |
| → Gizburdt joined | 21:49 |
|
jast
| guzzlefry: what do you mean by 'checkout'? | 21:49 |
| ← prophile left | 21:49 |
|
guzzlefry
| I'm basically trying to undo all changes in a directory besides files that aren't already tracked. | 21:49 |
|
jast
| by common definitions, they're already checked out if you're seeing them in your filesystem :) | 21:49 |
|
guzzlefry
| ah yeah sorry, wrong term. :P | 21:50 |
|
jast
| hang on while I resolve your double negation... ;) | 21:50 |
| → AVDeen__ joined | 21:50 |
|
grawity
| git checkout -f` | 21:50 |
|
jast
| either that, or git reset --hard. both undo all uncommitted changes to all tracked files. | 21:50 |
| → woollyams joined | 21:50 |
|
guzzlefry
| git reset --hard always scares me. :P | 21:51 |
|
jast
| special case: if you started tracking a previously untracked file, they'll get rid of that, too | 21:51 |
| ← jogos left | 21:51 |
|
jast
| checkout -f looks less scary, perhaps, but does pretty much the same thing :) | 21:51 |
|
guzzlefry
| ah | 21:51 |
| → srji_ joined | 21:51 |
| → infynyxx joined | 21:52 |
| ← remiros left | 21:52 |
|
zumba_addict
| how do you decide on cleaning remote branches? | 21:52 |
| ← unknwn- left | 21:52 |
| ← srji left | 21:52 |
| ← Jason_D left | 21:53 |
| → Exancillatus joined | 21:53 |
|
jast
| you mean when to? once they've been merged and/or are completely unlikely to ever be worked on again | 21:53 |
|
zumba_addict
| is it ok to delete all the our remote feature branch since we'll still have them locally? | 21:53 |
|
| yes, merged | 21:53 |
| ← infynyxx left | 21:54 |
|
jast
| there is no one and only right way | 21:54 |
| ← jaequery left | 21:54 |
|
zumba_addict
| so am I right that once we delete the remote branch, our local shouldn't be affected unless I execute git pull | 21:55 |
|
endra
| any simple way to have a branch moved into its own repository and anything before that branch would be made into a single commit? Basically, as if the first commit of that branch (and everything before it) into the first commit of the new repository | 21:55 |
|
| I've tried rebase but lots of issues going on with it | 21:55 |
| ← buffal0 left | 21:56 |
| ← endiruna left | 21:56 |
|
jast
| zumba_addict: in fact even if you pull, that won't delete branches | 21:57 |
| ← Exancillatus left | 21:57 |
|
zumba_addict
| i mean, delete remote branch first | 21:58 |
| ← becks__ left | 21:58 |
|
zumba_addict
| then do a git pull | 21:58 |
|
jast
| pull fetches and merges changes. it does *not* delete your local branch just because the remote disappeared | 21:58 |
|
zumba_addict
| i was thinking of keeping my local copy of the feature branch so I can see what I did | 21:58 |
| ← LuxuryMode left | 21:58 |
| ← awx left | 21:59 |
| → awx joined | 21:59 |
| → jaequery joined | 21:59 |
| → simesy joined | 21:59 |
|
zumba_addict
| is that possible, delete remote branch but not local? | 21:59 |
| ← rbartos left | 21:59 |
|
jast
| yes. deletions don't propagate unless you apply more force | 21:59 |
|
PerlJam
| zumba_addict: why wouldn't it be possible? | 21:59 |
| ← ncthom91 left | 21:59 |
|
zumba_addict
| because I haven't tried it yet | 21:59 |
|
jast
| in fact, not even the !remote_tracking_branch is deleted when you pull/fetch | 21:59 |
|
gitinfo
| Remote-tracking branches (branches which start with e.g. 'origin/') are read-only mirrors of the corresponding branches in another repository. They're updated by 'git fetch'. You can't edit them directly (trying to check them out results in a !detached HEAD), but you can create a new local branch based on a remote-tracking branch using e.g. 'git checkout -b <branch> <remote>/<branch>' | 21:59 |
| → sdouglas joined | 22:00 |
| → ncthom91 joined | 22:00 |
| ← ncthom91 left | 22:00 |
|
jast
| hmm, that could use a bit more detail | 22:00 |
| → joelroa joined | 22:00 |
| ← enigmus left | 22:00 |
|
jast
| .trigger_edit remote_tracking_branch Remote-tracking branches (branches which start with e.g. 'origin/', listed by 'git branch -r') are read-only mirrors of the corresponding branches in another repository. They're updated by 'git fetch'. You can't edit them directly (trying to check them out results in a !detached HEAD), but you can create a new local branch based on a remote-tracking branch using e.g. 'git checkout -b <branch> <remote>/<branch>' | 22:01 |
|
zumba_addict
| i don't think we can create a new branch that's already been deleted remotely | 22:01 |
|
gitinfo
| jast: Okay. | 22:01 |
| → ncthom91 joined | 22:01 |
|
jast
| the important bit here is that, in addition to the normal local branches shown by 'git branch', git also has a complete mirror of the remote in what's called remote-tracking branches | 22:01 |
| → sukima joined | 22:01 |
| → codezomb joined | 22:02 |
|
zumba_addict
| k | 22:02 |
|
sukima
| Is there a way to add a commit with no changes (no code changes but has a message)? | 22:02 |
|
jast
| git *never* deletes your local branches unless you explicitly ask it to, and it doesn't even delete RTBs if they disappear in the remote repo, unless you run a prune command | 22:02 |
|
zumba_addict
| maybe if I give an example, I'll be able to understand it more | 22:02 |
|
jast
| sukima: --allow-empty when commotting | 22:02 |
|
| or committing | 22:02 |
|
| up to you ;) | 22:02 |
| ← osse left | 22:02 |
|
zumba_addict
| so I'm on master and I ran git checkout -b test-branch then I updated some files then I did a git push origin test-branch | 22:02 |
|
PerlJam
| sukima: that's the second or thrid time I've seen someone ask that. I find the concept to be really weird. | 22:03 |
| → rbartos joined | 22:03 |
|
sukima
| Thanks jast | 22:03 |
| ← sdouglas left | 22:03 |
| → arkanes joined | 22:03 |
|
zumba_addict
| now, I want to delete the remote test-branch because it's been merged. However, I want to keep my local copy because I may need to remember the code I wrote | 22:03 |
| → sdouglas joined | 22:04 |
|
jast
| zumba_addict: sure. git push --delete origin test-branch. remote branch gone, local branch stays. | 22:04 |
|
sukima
| It is weird. My boss is using commit messages to move the integrated bug tracking tickets from inprogress to done and he is doiing it my appending to a garbage file which adds noise to the diffs. | 22:04 |
|
zumba_addict
| cool jast | 22:04 |
|
| what happens if i do git push origin test-branch? is it going to be created? | 22:04 |
|
jast
| yep | 22:04 |
|
zumba_addict
| got it | 22:04 |
| ← joelroa left | 22:04 |
| ← Ericx2x left | 22:04 |
|
arkanes
| is there any way to get git to merge a commit even if the commit is part of a branches history already? | 22:04 |
| ← Noldorin left | 22:04 |
|
arkanes
| or some way to convince it to just kinda forget that some merges happened | 22:05 |
|
jast
| no | 22:05 |
| → jogos joined | 22:05 |
|
arkanes
| :\ | 22:05 |
| → MetalMatze joined | 22:05 |
|
jast
| merges can't be undone... at least not without altering history | 22:05 |
|
Hello71
| sukima: git commit --allow-empty | 22:05 |
|
sukima
| PerlJam: Also it culd be usefull if you have a deploy that's triggered on a git commit hook and you want to rerun it without making silly changes to source files. (like on project that added random quotes from Mr. T to the README just to trigger a rebuild) | 22:05 |
|
arkanes
| I merged a feature branch into trunk and pushed it when it shouldn't have been done | 22:05 |
|
jast
| you can cherry-pick previously merged commits to apply their effects again | 22:06 |
| → xsbeats joined | 22:06 |
|
arkanes
| then I reverted the changes, but now I need to merge the feature branch in for real | 22:06 |
| ← xaq left | 22:06 |
|
arkanes
| there's like 1000 commits involved, is there any way I can automate cherry picking them? | 22:06 |
|
jast
| sukima: sounds more like a limitation in the deployment system if it *forces* you to push something in order to deploy | 22:06 |
|
| arkanes: cherry-pick supports commit ranges | 22:06 |
| ← ojacobson left | 22:06 |
|
arkanes
| oh handy | 22:06 |
|
Hello71
| or you could rebase | 22:07 |
|
sukima
| jast: you are correct! | 22:07 |
|
PerlJam
| sukima: crazy | 22:07 |
|
jast
| you may be interested in -n to hold off on committing each individual picked commit | 22:07 |
|
zumba_addict
| jast: what would be the param if I want to delete local branch? | 22:07 |
|
arkanes
| I'll give that a try, thanks | 22:07 |
|
jast
| zumba_addict: there's a separate command for that, git branch -d <name> | 22:08 |
| → W0rmDr1nk joined | 22:08 |
| flazz → flazz_gone | 22:08 |
|
zumba_addict
| got it | 22:08 |
|
jast
| (which will only work if the branch is merged into whatever is currently checked out, use -D to force) | 22:08 |
|
zumba_addict
| looks like that was done to be saved from accidental commands | 22:09 |
| ← cfoch left | 22:09 |
|
jast
| yep | 22:09 |
|
zumba_addict
| cool! | 22:09 |
| → thevishy joined | 22:09 |
| ← thevishy left | 22:09 |
| ← elrolito left | 22:10 |
| → mnunberg joined | 22:10 |
| → elrolito joined | 22:10 |
| → thevishy joined | 22:10 |
|
zumba_addict
| thanks jast, i'm taking off now | 22:10 |
|
| :) | 22:10 |
|
mnunberg
| hrm, how can i force git to give me a prompt on an http 403/401? | 22:10 |
|
| for some reason the version of git i have on this centos6 host does not prompt me, but some other versions do | 22:11 |
| → Mission-Critical joined | 22:11 |
|
jast
| there's nothing to prompt for on a 403 | 22:11 |
| → Exancillatus joined | 22:11 |
|
Hello71
| well, strictly speaking it depends on the http auth | 22:11 |
| → overZoF joined | 22:11 |
|
mnunberg
| normal github stuff | 22:11 |
|
Hello71
| you can have both with or without Authentication | 22:11 |
|
| *WWW- | 22:11 |
|
| but 403 requesting auth is wrong | 22:12 |
|
mnunberg
| hrm, i'm not sure where it's coming from | 22:12 |
|
Hello71
| curl. | 22:12 |
|
jast
| it's probably sufficient to include a username in the URL | 22:12 |
|
mnunberg
| just upgraded it. still nada | 22:12 |
|
jast
| e.g. https://jast@github.com/... | 22:12 |
|
mnunberg
| yeah | 22:12 |
|
| let me try that | 22:12 |
|
| (gnome-ssh-askpass:11121): Gtk-WARNING **: cannot open display: | 22:12 |
|
| (what happened to text prompts) | 22:13 |
|
Hello71
| is curl even installed? | 22:13 |
|
jast
| text prompts are so 1863 | 22:13 |
|
mnunberg
| yep | 22:13 |
| → Not_Whatever2 joined | 22:13 |
| → ZaeDrake joined | 22:13 |
|
mnunberg
| oh dear. error: cannot run /usr/libexec/openssh/gnome-ssh-askpass: No such file or directory | 22:13 |
|
jast
| your setup may be slightly broken | 22:14 |
|
mnunberg
| hrm, maybe. i believe this is a fairly "Pristine" system" | 22:14 |
|
jast
| I don't even know where it takes that from | 22:14 |
| ← sohail left | 22:14 |
|
Hello71
| the askpass setting. | 22:14 |
| ← robbyoconnor left | 22:14 |
| ← ZoF left | 22:14 |
| ← AVDeen__ left | 22:14 |
|
mnunberg
| [mnunberg@cen-1917 lcbpackage]$ env|grep ASK | 22:15 |
|
| SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass | 22:15 |
|
| oh heythere | 22:15 |
| ← elrolito left | 22:15 |
| → kwallace2 joined | 22:15 |
| ← ncthom91 left | 22:16 |
| ← jogos left | 22:16 |
| ← cannonball left | 22:16 |
|
mnunberg
| oh there, it works | 22:16 |
|
| thanks folks. it only took me an entire hour to figure out how to enter a password. how we've made great strides in technology | 22:17 |
| → enigmus joined | 22:17 |
| ← Not_Whatever2 left | 22:17 |
| ← sukima left | 22:18 |
| ← thevishy left | 22:18 |
| ← Diemuzi left | 22:19 |
| → mkantor joined | 22:20 |
|
zumba_addict
| is this reliable, git branch -r | wc -l | 22:22 |
| ← Kayra left | 22:22 |
| → [aviraldg] joined | 22:22 |
|
mkantor
| how do i refer to a specific commit in a remote? i want to do something like `git diff upstream/87b5c43` but can't figure out how to specify the commit (and my google-fu is failing me) | 22:22 |
| ← pfg left | 22:22 |
| ← [aviraldg] left | 22:23 |
| → [aviraldg] joined | 22:23 |
| → sohail joined | 22:23 |
|
kadoban
| mkantor: git doesn't care where the commit is from. git diff 87b5c43, perhaps after fetching | 22:24 |
| → garietyxxx joined | 22:25 |
|
garietyxxx
| Why is it called a "pull request" and not a "merge request"? | 22:25 |
| ← dort left | 22:25 |
| → Umschwung joined | 22:25 |
| Mission-Critical → MissionCritical | 22:25 |
|
mkantor
| kadoban: that's what i thought, but it's not giving me expected results. probably user error though, thanks! | 22:26 |
|
kadoban
| garietyxxx: because a pull is a fetch + a merge, which is what you're generally requesting be done? | 22:26 |
| ← AaronMT_ left | 22:26 |
| → osse joined | 22:26 |
|
kadoban
| mkantor: it's possible i'm wrong somehow, but i think it should work | 22:26 |
| ← ZaeDrake left | 22:27 |
| ← TheFuzzball left | 22:27 |
| ← rbartos left | 22:27 |
| ← rudisimo left | 22:28 |
| → buffal0 joined | 22:28 |
| → rbartos joined | 22:28 |
| ← reskp left | 22:29 |
| ← nnyk_ left | 22:29 |
|
mkantor
| kadoban: `git show 87b5c43` does show what i'd expect, i think my confusion is actually because `git diff 87b5c43` is showing `git diff 87b5c43 HEAD` instead of diffing against my working tree | 22:30 |
| ← Gizburdt left | 22:30 |
| → Kayra joined | 22:30 |
|
kadoban
| mkantor: ohhh, hmm. there must be a switch to do that maybe | 22:30 |
| → jogos joined | 22:30 |
| ← Exancillatus left | 22:30 |
|
jrn
| garietyxxx: you mean the github kind or the kind you make with 'git request-pull'? | 22:31 |
|
kadoban
| mkantor: err, but i thought that against the working tree was the default actually, that's weird... | 22:31 |
| → eletuchy joined | 22:32 |
|
jrn
| garietyxxx: the former is named after the latter | 22:32 |
|
luminous
| hello! can you drop/remove the history associated with a set of files, along with the files from the repo? | 22:32 |
| ← Umschwung left | 22:32 |
|
grawity
| only if you rewrite the entire history using `git filter-branch` | 22:32 |
|
mkantor
| kadoban: it's strange because `git diff HEAD` and `git diff current-branch` show what i'd expect (and this is how i usually use diff), but it seems that when i specify any branch besides the one i'm on it suddenly uses HEAD as the source instead of the working tree | 22:32 |
|
luminous
| grawity: ok, how would that work? | 22:32 |
|
jrn
| luminous: if you don't mind rewriting history (see 'RECOVERING FROM UPSTREAM REBASE' in man git-rebase) then sure | 22:32 |
|
gitinfo
| luminous: the git-rebase manpage is available at http://jk.gs/git-rebase.html | 22:32 |
|
grawity
| so that's usually done only if the files are huge, or if they have sensitive data | 22:32 |
|
kadoban
| luminous: by rewriting history, yes. you usually want to avoid that though, unless that file should really really not have ever been in there, because of security concerns or the like | 22:32 |
|
luminous
| awesome, thanks for the info! | 22:33 |
| → HelloShitty joined | 22:33 |
|
xender
| luminous: man git-filter-branch | 22:33 |
|
gitinfo
| luminous: the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html | 22:33 |
|
garietyxxx
| kadoban: okay, that makes sense. But when I think of pull-requesting, it's usually a separate branch, and needs to be merged into master manually. | 22:33 |
|
luminous
| kadoban: yes, I hear that. I'm looking to do something like that as part of creating a new repo as a clone of an old one | 22:33 |
| ← zezollo left | 22:33 |
|
luminous
| great! thank you :) | 22:34 |
|
grawity
| generally, the whole point of Git is to keep history, so if you delete a file now, it still keeps history of the file that /has been there/ | 22:34 |
|
luminous
| yep | 22:34 |
|
kadoban
| mkantor: yeah, i can't really understand why those would be different...they seem to be the same to me, but i might just not be testing the right thing | 22:34 |
|
jrn
| the way I (ab)use it, the point of git is to tell stories ;-) | 22:35 |
|
xender
| grawity: Yeah, unless you commit some generated [binary] code or passwords ;> | 22:35 |
| ← Mitchbon_ left | 22:35 |
| → Mitchbones joined | 22:35 |
| → Chryyz joined | 22:35 |
| ← eletuchy left | 22:36 |
| ← scelis left | 22:36 |
| ← garietyxxx left | 22:38 |
| → Zaknefain joined | 22:38 |
| → CKyle joined | 22:38 |
| ← jogos left | 22:39 |
| ← sdouglas left | 22:39 |
| → werlley joined | 22:39 |
| → armyriad joined | 22:40 |
| → fatalhalt joined | 22:41 |
| ← nick108 left | 22:41 |
| → Element9 joined | 22:42 |
| ← Neozonz left | 22:42 |
| ← JerryT left | 22:42 |
|
mkantor
| kadoban: yep, it works as expected here too from a test repo… discovered it was pebkac: it turns out this repo has multiple copies of the same file and i was editing the wrong one :rollseyes: | 22:42 |
|
| thanks for humoring me anyway! | 22:42 |
| → DurtyD joined | 22:42 |
|
Element9
| i am trying to clone a repo through ssh and I am getting the error: "DENIED by fallthru" | 22:42 |
| ← Zaknefain left | 22:43 |
| ← zumba_addict left | 22:43 |
|
kadoban
| mkantor: ahh, glad you figured it out at least. always fun when reality ceases to make sense :) | 22:43 |
|
Element9
| i haven't seen that before. what should I recheck? | 22:43 |
| → JerryT joined | 22:43 |
|
kadoban
| Element9: is there more to the error? | 22:44 |
|
| Element9: and is this using gitolite or something like that, or just plain ol' ssh? | 22:45 |
|
Element9
| i don't know what's on server side. I am using msysgit on Windows. i haven't had this problem with other repos | 22:46 |
| ← kermit left | 22:46 |
|
Element9
| let me pastebin the whole error message | 22:46 |
| ← FortySix2 left | 22:46 |
| → ZoF joined | 22:46 |
|
kadoban
| Element9: it sounds to me like gitolite on the server, and you're not supplying the correct key...which i don't actually know how you're supposed to do that one windows personally | 22:46 |
|
| but it's possible that other things i don't know about give errors that sound like that | 22:47 |
| → chessguy joined | 22:47 |
| → kermit joined | 22:47 |
| ← Havvy left | 22:47 |
| ← kirin` left | 22:48 |
| → kinboster joined | 22:48 |
| → joelroa joined | 22:49 |
| → kirin` joined | 22:49 |
| → francesca joined | 22:49 |
| ← qinbo left | 22:50 |
| ← overZoF left | 22:50 |
|
Element9
| here's the whole message: http://pastebin.com/CmVtd217 | 22:51 |
| ← johntitor2036 left | 22:51 |
| → TheFuzzball joined | 22:51 |
| ← Gamecubic left | 22:51 |
|
Element9
| i removed the actual address of the server | 22:51 |
|
| kadoban: yes, that's what i got with googling too | 22:51 |
| → johntitor2036 joined | 22:52 |
| ← JerryT left | 22:52 |
|
kadoban
| Element9: yeah, it sounds like you're not supplying the credentials that the server requires. you'll very likely have to talk to them | 22:52 |
|
| Element9: usually you give them your pubkey, and they set it up so you have read access, or whatever access they want you to have | 22:53 |
| → FortySix2 joined | 22:53 |
|
Element9
| kadoban: yes, that's exactly what we did | 22:53 |
| → jogos joined | 22:53 |
| ← rbartos left | 22:54 |
|
Element9
| i just didn't want to ask if the problem is on server until i made sure that the problem isn't on my side :) | 22:54 |
| ← fairuz left | 22:54 |
|
Element9
| kadoban: thanks a lot for the help | 22:54 |
| → overZoF joined | 22:54 |
|
Element9
| much appreciated | 22:54 |
|
kadoban
| Element9: it sounds like it's on their side. you're welcome, good luck figuring it out | 22:54 |
| → TheFuzzb_ joined | 22:56 |
| ← jaequery left | 22:56 |
| ← TheFuzzball left | 22:56 |
| TheFuzzb_ → TheFuzzball | 22:57 |
| ← tvw left | 22:57 |
| → JerryT joined | 22:57 |
| → nlogn joined | 22:57 |
| → cfoch joined | 22:57 |
| ← JerryT left | 22:57 |
| → jaequery joined | 22:58 |
| → ncthom91 joined | 22:58 |
| ← ZoF left | 22:58 |
| ← pantsman left | 23:00 |
| ← xsbeats left | 23:00 |
| ← aard_ left | 23:00 |
| → Oog joined | 23:01 |
|
Oog
| i did git fetch --all and saw that it pulled from each remote | 23:02 |
|
| does git keep a copy of what each remote has? | 23:02 |
| ← hobodave_ left | 23:02 |
|
cbreak
| yes. | 23:02 |
|
xender
| Oog: That's what tracking branches are for | 23:02 |
|
cbreak
| Oog: git branch -a shows them | 23:03 |
|
| (and all local ones too) | 23:03 |
|
Oog
| tracking branches? | 23:03 |
| → dagnachew joined | 23:03 |
|
Oog
| basically i need to reset everything origin master | 23:04 |
|
cbreak
| branches that track what the remotes are up to | 23:04 |
|
Oog
| so i did git fetch --all\ | 23:04 |
| → Gamecubic joined | 23:04 |
|
Oog
| oh | 23:04 |
| ← CKyle left | 23:04 |
|
cbreak
| origin/master is origin's master at the time of your last normal fetch | 23:04 |
|
Oog
| yeah i then did git reset --hard origin/master | 23:05 |
| ← DurtyD left | 23:05 |
|
Oog
| i just want to make sure fetching from my other remotes doesnt mess them up some how | 23:05 |
|
| i have a beta and production remotes that go to heroku | 23:05 |
|
| i only push to them never upll | 23:05 |
|
cbreak
| Oog: those should also show up in git branch -r | 23:05 |
| → reskp joined | 23:06 |
| ← Olipro left | 23:06 |
|
Oog
| i even see branches that were delted | 23:06 |
| ← el3ctron_ left | 23:06 |
|
cbreak
| you can remove those with git fetch --prune | 23:07 |
| ← simesy left | 23:07 |
| ← pierre1_ left | 23:07 |
| → torjus joined | 23:07 |
| ← reskp left | 23:07 |
|
Oog
| it all looks good push worked | 23:07 |
|
| ok thanks | 23:07 |
| ← aMoniker left | 23:08 |
| ← jogos left | 23:08 |
| → pfg joined | 23:08 |
| ← jerius left | 23:08 |
| → reskp joined | 23:09 |
| → jcs222 joined | 23:09 |
| → dancat joined | 23:09 |
| → shruggar_ joined | 23:10 |
| ← shruggar left | 23:10 |
| ← Element9 left | 23:11 |
| ← torjus left | 23:12 |
| → elrolito joined | 23:12 |
| → diegovio1 joined | 23:12 |
| ← elrolito left | 23:12 |
| ← Oog left | 23:12 |
| ← shamp left | 23:12 |
| ← Freeman42 left | 23:12 |
| ← W0rmDr1nk left | 23:12 |
| → robbyoconnor joined | 23:12 |
| diegoviola → Guest89859 | 23:13 |
| ← Kayra left | 23:13 |
| diegovio1 → diegoviola | 23:13 |
| ← jaequery left | 23:13 |
| ← Guest89859 left | 23:14 |
| → ciampix joined | 23:14 |
| ← codezomb left | 23:17 |
| → Olipro joined | 23:18 |
| ← [aviraldg] left | 23:19 |
|
guzzlefry
| Is there a common method for turning a directory in a git repo into a submodule? | 23:22 |
| → jogos joined | 23:23 |
| → Noldorin joined | 23:23 |
|
Hello71
| !xy? | 23:24 |
|
gitinfo
| Woah, slow down for a bit. Are you sure that you need to jump to that particular hoop to achieve your goal? We suspect you don't, so why don't you back up a bit and tell us about the overall objective... | 23:24 |
|
tshirtman
| lol, nice alias | 23:24 |
| → jaequery joined | 23:25 |
| ← DrShoggoth left | 23:25 |
|
Vampire0
| kewl | 23:25 |
| → Juzzika joined | 23:26 |
|
guzzlefry
| Was thta for me? | 23:26 |
|
| that* | 23:26 |
| → cads joined | 23:27 |
|
Vampire0
| kewl is a phonetic writing of cool and referred to the alias as tshirtman did. :-) | 23:28 |
| ← reskp left | 23:28 |
|
Vampire0
| The alias however was meant for you guzzlefry, yes | 23:28 |
| ← petey left | 23:29 |
| → scarabx joined | 23:29 |
| → reskp joined | 23:29 |
| → ErKa joined | 23:30 |
| ← livingstn left | 23:30 |
|
guzzlefry
| Well, I have a third party application that has custom modules inside a modules/ directory. I figure the best way to handle deployment and such is to track the third party files in the main repo, and then have each custom application module as a submodule. | 23:30 |
| → hobodave joined | 23:30 |
| ← robbyoconnor left | 23:30 |
| → sluther joined | 23:31 |
| ← arkanes left | 23:32 |
| → Zaknefain joined | 23:32 |
| → eletuchy joined | 23:32 |
| → dort joined | 23:33 |
| ← reskp left | 23:33 |
|
joshu_
| how do you specify in gitignore to ignore not a directory but the contents of the directory? | 23:35 |
| ← dancat left | 23:36 |
| ← jogos left | 23:36 |
| ← Zaknefain left | 23:36 |
|
kadoban
| joshu_: dir/* ? | 23:36 |
|
joshu_
| kadoban oh i was doing dir/ | 23:37 |
| ← eletuchy left | 23:37 |
|
joshu_
| but that ignored the dir + contents | 23:37 |
|
kadoban
| joshu_: i think they're pretty much the same thing though, since git doesn't care about directories, only files...so i'm not entirely sure there's a difference at all | 23:37 |
| → RaceCondition joined | 23:38 |
| → JerryT joined | 23:38 |
| → rbartos joined | 23:38 |
| → tomengland joined | 23:39 |
|
joshu_
| so how do you commit a directory but ignore the files or does the directory need to have a file for the directory to be committed/ | 23:39 |
| ← mkantor left | 23:39 |
| ← TheFuzzball left | 23:40 |
|
kadoban
| joshu_: ya, it needs to have a file in it | 23:40 |
|
joshu_
| ah | 23:40 |
|
| because i have a ssh-keys dir that my project requires but I don't want to upload the keys inside when I push to github | 23:41 |
|
kadoban
| you can commit a file called .empty in it, or have the executable just create that directory if it doesn't exist | 23:42 |
| → unixpro1970 joined | 23:42 |
| ← unixpro1970 left | 23:42 |
|
joshu_
| ok is .empty an acceptable way or is it a bad practice? | 23:43 |
| ← tomengland left | 23:43 |
| → bond joined | 23:44 |
|
kadoban
| joshu_: it's all you can really do if you need git to create that directory on clone | 23:44 |
| ← harobed left | 23:44 |
|
guzzlefry
| joshu_: probably not a big deal. | 23:44 |
|
joshu_
| ok just getting started with git github so don't want to do anything that's frowned upon ;) | 23:44 |
|
kadoban
| joshu_: i tend to thing that just creating the directory in the executable for the project is a better idea, but it depends if that's feasible | 23:44 |
|
| think* | 23:45 |
| → tomek joined | 23:45 |
| ← fr33 left | 23:46 |
| → LittleFool joined | 23:46 |
|
guzzlefry
| So, creating submodules, is there an easy, straight-forward way? | 23:46 |
| → AaronMT joined | 23:46 |
| ← endra left | 23:47 |
| ← phantomtiger left | 23:47 |
|
joshu_
| kadoban yeah I'll go ahead and do that. thanks for your help | 23:47 |
|
kadoban
| 'welcome | 23:47 |
| → infynyxx joined | 23:47 |
| ← sgambino left | 23:48 |
| ← Gamecubic left | 23:48 |
| → jaf2k joined | 23:50 |
| → robbyoconnor joined | 23:50 |
| ← acharlieh left | 23:50 |
| → jogos joined | 23:50 |
| → Kayra joined | 23:52 |
| → tnzr joined | 23:52 |
| ← MetalMatze left | 23:52 |
| ← Thra11 left | 23:53 |
|
tnzr
| hi guys.. dumb question: I have 2 git repos repo1 and repo2 and I'd like to combine them into one repo by having repo2 be a subdirectory in the root of repo1, and still be able to preserve repo2's history | 23:53 |
|
| I found a stack overflow article that suggested using filter-branch to rewrite the names of everything in repo2, but I'm not sure how to use it | 23:54 |
| ← UserError left | 23:54 |
| → acharlieh joined | 23:55 |
| ← acharlieh left | 23:55 |
| ← axl_ left | 23:56 |
| ← ngladitz left | 23:56 |
| → Gamecubic joined | 23:56 |
| ← Dougie187 left | 23:58 |
| ← shawndumas left | 23:58 |
| → reskp joined | 23:59 |