| 2011-05-05 |
|
SethRobertson
| You may be thinking of a squash merge | 00:00 |
| → jmcantrell joined | 00:01 |
|
chrisf|work
| SethRobertson: i never really grokked why stgit makes things easier. care to explain? | 00:01 |
|
marchdown
| I'll go read up on squash-merge and cherry-picking from multiple sources. Thank you guys. | 00:01 |
| ← owst left | 00:02 |
| ← seivan left | 00:02 |
|
subpsyke
| SethRobertson: so, this would do it? git reset --hard $(git rev-list -1 $(git rev-parse --until=2011-04-29) HEAD) | 00:02 |
|
SethRobertson
| If you want to fixup patch/commit 2 of a 10 patch/commit series, you can "super-stash" commits 3-10, update 2, and the reapply 3-10. It is possible to do it with raw git, but the accounting gets annoying | 00:03 |
| → jawwad joined | 00:03 |
| → etcetera joined | 00:03 |
|
SethRobertson
| subpsyke: I recommend `git checkout @{2011-04-29 00:00:01}` | 00:04 |
|
chrisf|work
| SethRobertson: surely you'd just interactive rebase, mark the commit 2 as `edit`? | 00:04 |
|
subpsyke
| SethRobertson: don't the checkout logs get removed after a certain time? | 00:04 |
| ← f0i left | 00:04 |
|
SethRobertson
| You are requesting to check out the state of the repository at a certain time, not looking at the reflog. | 00:05 |
|
subpsyke
| ok | 00:05 |
| ← Evious left | 00:06 |
| ← lukeman left | 00:07 |
|
SethRobertson
| chrisf|work: Another example, you might want to insert a new commit between 2 and 3, which could be difficult (commiting at the end and then reordering might cause more conflicts). None of this is impossible with raw git, just more annoying. | 00:07 |
| → Evious joined | 00:07 |
| → alex__c2022 joined | 00:07 |
| ← jjuran left | 00:07 |
| ← jettero left | 00:07 |
| ← nick_h left | 00:07 |
|
chrisf|work
| SethRobertson: ok | 00:07 |
| → jettero joined | 00:07 |
| ← jettero left | 00:07 |
| → jettero joined | 00:07 |
| ← tgunr_ left | 00:07 |
| → jjuran joined | 00:08 |
| ← rhl left | 00:08 |
| → tgunr joined | 00:08 |
| → lukeman joined | 00:08 |
| ← jfkw left | 00:09 |
| → nick_h joined | 00:09 |
| ← nadirvar_ left | 00:09 |
| → jfkw joined | 00:09 |
| ← simosx left | 00:10 |
| ← chombee left | 00:11 |
|
Chib
| is there a special way you have to remove .gitignore files? | 00:12 |
| → PovAddict joined | 00:12 |
|
canton7
| Chib, they're no different to any other file in that respect, no | 00:12 |
|
PovAddict
| can I rely on the format of git rebase -i input files? I want to do it automatedly, with 'sed' as $EDITOR | 00:12 |
|
Chib
| hmm, odd | 00:13 |
|
canton7
| Chib, what's up? | 00:13 |
|
PovAddict
| EDITOR='sed -i "s/^pick \(75f5da2\|4660d50\).*//"' git rebase -i ... | 00:13 |
|
Chib
| it's still showing up on my github repo | 00:13 |
|
SethRobertson
| subpsyke: Looks like I was wrong. My reading of the man page suggested that it was not using reflog, but clearly it is when I actually tested it | 00:13 |
|
canton7
| Chib, you've git rm'd it, committed, and pushed? | 00:14 |
| ← Corren left | 00:14 |
|
Chib
| yep | 00:14 |
| ← MikhX left | 00:14 |
|
Chib
| all looked successful | 00:14 |
|
canton7
| Chib, different branches? | 00:14 |
|
Chib
| nah only have a master branch | 00:15 |
| ← beatak left | 00:15 |
| → alberto56 joined | 00:15 |
|
canton7
| sha-1's of latest commits match? | 00:15 |
|
| **sha1's | 00:15 |
| → Corren joined | 00:16 |
| ← adamholt left | 00:16 |
| ← jnylen left | 00:17 |
| ← rideh left | 00:17 |
| → adamholt joined | 00:17 |
|
Chib
| weird, i added a test file for the sake of it and commit/pushed it and now the .gitignore is gone too, oh well! | 00:17 |
| ← resixian left | 00:18 |
| ← grey_wolf left | 00:18 |
| ← kinlo left | 00:18 |
| ← clever_ left | 00:18 |
|
canton7
| strange... check the diffs for those two commits | 00:18 |
| ← jjuran left | 00:18 |
| → grey_wolf joined | 00:18 |
| → jjuran joined | 00:19 |
| → clever joined | 00:19 |
|
Chib
| looks ok, i guess maybe github might've just been running a bit slow | 00:19 |
| → kinlo joined | 00:19 |
| → jnylen joined | 00:19 |
| → rideh joined | 00:19 |
| → resixian joined | 00:20 |
| ← MacGyverNL left | 00:20 |
|
Chib
| didn't actually check the github activity page before doing the test commit, probably just server slowness and me being a newb | 00:20 |
| → n8o-mba joined | 00:20 |
| → MacGyverNL joined | 00:20 |
|
canton7
| fair enough. I guess that explains it | 00:21 |
| ← tatsuya left | 00:21 |
| → arunce_ joined | 00:21 |
| ← beyondcreed left | 00:21 |
| ← Chaser left | 00:22 |
| ← arunce left | 00:22 |
| → tgunr_ joined | 00:22 |
|
acidjazz
| what is going on here | 00:23 |
|
| Your branch is behind 'origin/dev' by 7 commits, and can be fast-forwarded. | 00:23 |
|
| wtf is this | 00:24 |
| → MikhX joined | 00:24 |
|
canton7
| origin/dev has 7 more commits than your local branch | 00:24 |
|
| but the history's nice and linear, so if you merge origin/dev into your local branch, it'll be able to do a fast-forward merge with no funky branchy stuff | 00:25 |
| ← tgunr left | 00:25 |
| ← larsl left | 00:25 |
| ← tty1 left | 00:25 |
| → Chaser joined | 00:26 |
| ← sraue left | 00:28 |
| ← aalex-home left | 00:30 |
|
PovAddict
| use merge --ff-only to be sure | 00:30 |
| → Textmode joined | 00:32 |
| → aalex-home_ joined | 00:33 |
| ← aalex-home_ left | 00:33 |
| → aalex joined | 00:34 |
| → savoxis joined | 00:35 |
| → AkumaStreak joined | 00:35 |
| → dyer_out joined | 00:35 |
| → d1zzy joined | 00:36 |
|
d1zzy
| is it expected that "git rev-list --no-walk" output may show the given commits in a different order than they show in "git rev-list" output? I was hoping that one can use "git rev-list --no-walk" to a set of order commits | 00:36 |
|
| err to order a set of commits | 00:37 |
| ← alex__c2022 left | 00:41 |
|
patrikf
| d1zzy: try git rev-list | grep | 00:43 |
| ← PovAddict left | 00:44 |
| ← Chaser left | 00:46 |
|
d1zzy
| patrikf: that works but I wonder if it is expected that just adding --no-walk changes the order (I also noticed to depend on the order given on the command line, even more strange) | 00:46 |
|
patrikf
| apparently it is not "expected", or you had not asked | 00:47 |
| → sraue joined | 00:48 |
| ← hyperair left | 00:48 |
|
patrikf
| I don't think it's a bug, possibly poorly documented. But rev-list can't know the order without walking down the graph until it has found all commits you gave it | 00:48 |
|
d1zzy
| yeah, I was hoping it would walk the graph as much as it needs to determine the order but not display, but it's fine | 00:49 |
|
| now, changing subject | 00:49 |
|
| any idea why my freshly compiled Git seems to fail any test related to ISO-2022-JP (that is, it fails 4 tests in t3900, they all are involving that encoding, no other tests are involved with it) | 00:50 |
| → crash\ joined | 00:50 |
|
d1zzy
| I even tried the test commands manually, a commit created with that encoding (for the message), doesn't get converted as UTF-8 after switching to UTF-8 encoding (with git config i18n.commitencoding UTF-8) | 00:51 |
|
| seems that works for other encodings, strange | 00:51 |
| ← banghouse left | 00:52 |
| ← rchavik left | 00:52 |
| ← Corren left | 00:52 |
| ← alberto56 left | 00:52 |
| ← tjholowaychuk left | 00:53 |
| → dyer_ joined | 00:54 |
| ← dyer_ left | 00:54 |
| → dyer_ joined | 00:54 |
| ← enherit left | 00:56 |
| → shevy joined | 00:57 |
| ← dyer_out left | 00:58 |
| ChanServ set mode: +v | 00:58 |
| savoxis → JesusLovesYou | 00:58 |
| → warlock_mza joined | 00:59 |
| → sunnyohno joined | 01:00 |
| ← aroop left | 01:01 |
| → cooloney joined | 01:04 |
| ← vanmik left | 01:04 |
| → Rotham joined | 01:06 |
| → tty1 joined | 01:08 |
| → CareBear\ joined | 01:09 |
| → DrDogwelder joined | 01:10 |
| → dyer_out joined | 01:10 |
| → jablko joined | 01:11 |
| ← n8o-mba left | 01:12 |
| → mosno joined | 01:12 |
| ← whyking left | 01:12 |
| ← jtaby left | 01:14 |
| ← arunce_ left | 01:14 |
| ← dyer_ left | 01:14 |
| → dreiss joined | 01:14 |
| ← zivester left | 01:15 |
| ← jablko left | 01:17 |
| → jablko joined | 01:17 |
| ← jfkw left | 01:17 |
| → CannedCorn joined | 01:18 |
| ← banisterfiend left | 01:21 |
| ← bitkiller left | 01:21 |
| → crakdmirror joined | 01:22 |
| ← adaptee left | 01:22 |
| → zivester joined | 01:23 |
| → banisterfiend joined | 01:23 |
| ← canton7 left | 01:26 |
| ← justin-george left | 01:27 |
| ← warlock_mza left | 01:27 |
| ← banisterfiend left | 01:27 |
| → n8o-mba joined | 01:29 |
| ← sraue left | 01:29 |
| ← n8o-mba left | 01:29 |
| ← dreiss left | 01:30 |
| → Adaptee joined | 01:31 |
| → dyer_ joined | 01:31 |
| ← dyer_ left | 01:31 |
| → dyer_ joined | 01:31 |
| ← abourg left | 01:32 |
| ← spearce left | 01:32 |
| ← deekayen left | 01:32 |
| → abourg joined | 01:34 |
| ← dyer_out left | 01:35 |
| → dyer_out joined | 01:36 |
| → rchavik joined | 01:37 |
| ← rchavik left | 01:37 |
| → rchavik joined | 01:37 |
| ← tchan left | 01:37 |
| ← mdel left | 01:38 |
| → tchan joined | 01:38 |
| → phaer joined | 01:39 |
| ← tystr left | 01:39 |
| ← dyer_ left | 01:40 |
| ← metcalfc left | 01:40 |
| ← MacGyverNL left | 01:41 |
| ← jophish__ left | 01:41 |
|
phaer
| Is it possible to rewrite the history to remove a certain String? I keep config files which included passwords in a repo and now i want to share my config but - if possible - without losing history. | 01:41 |
| → jophish joined | 01:42 |
| ← iAmerikan left | 01:42 |
| → MacGyverNL joined | 01:42 |
| ← MacGyverNL left | 01:42 |
| → MacGyverNL joined | 01:42 |
| → gretch joined | 01:43 |
| ← Neo left | 01:43 |
| ← flamingspinach left | 01:43 |
| ← kinesis left | 01:43 |
| → flamingspinach joined | 01:43 |
| ← sunnyohno left | 01:43 |
| → Neo joined | 01:44 |
| → iszak joined | 01:44 |
| ← Buglouse left | 01:44 |
| → angelsl joined | 01:45 |
| ← Anubisss left | 01:45 |
| ← Lgb left | 01:45 |
| ← jelmer left | 01:45 |
| → CrazyGir joined | 01:45 |
|
iszak
| So I'm trying to add a post-checkout, post-merge and post-receive hook but none of them are executing, there's no .sample prefix, they're simply http://pastie.org/1866465 and yet none of them work, I can't understand why. | 01:46 |
| CrazyGir → Guest74692 | 01:46 |
|
iszak
| s/prefix/suffix/ | 01:46 |
| ← jophish left | 01:46 |
| → jophish joined | 01:46 |
| → thoth_mes joined | 01:47 |
| → hubertchang joined | 01:47 |
| ← Rotham left | 01:47 |
|
SethRobertson
| phaer: See git-filter-branch | 01:47 |
| → aidalgol joined | 01:48 |
| → Vampire0_ joined | 01:48 |
| → sraue joined | 01:48 |
|
SethRobertson
| iszak: Is it executable? What happens if you type the pathname to the hook by itself? | 01:49 |
| ← Vampire0 left | 01:49 |
|
iszak
| SethRobertson, yeah they're set to execute, and when I execute it, they do as they're required | 01:51 |
|
SethRobertson
| Then I suggest using `GIT_TRACE=1 git checkout master` and see what it says | 01:51 |
|
iszak
| in the hook? | 01:52 |
|
SethRobertson
| No, as the command to test the post-checkout hook | 01:52 |
|
iszak
| how would I execute that.. | 01:52 |
|
| just in terminal or what? | 01:52 |
|
SethRobertson
| Yes. | 01:53 |
| ← kermit left | 01:53 |
| → kermit joined | 01:53 |
| ← socketwiz left | 01:53 |
| ← jophish left | 01:54 |
|
iszak
| SethRobertson, I don't see any hooks executing | 01:54 |
| ← bartman` left | 01:55 |
|
SethRobertson
| Next try using `strace -o/tmp/tr -f -s 80 git checkout master` (hopefully you have strace) | 01:55 |
|
iszak
| btw I'm not trying to do a checkout | 01:55 |
|
SethRobertson
| Well, whatever. | 01:56 |
|
| you will want to `grep hooks /tmp/tr` | 01:56 |
|
iszak
| no such directory | 01:57 |
| → bartman` joined | 01:57 |
|
SethRobertson
| It couldn't find the strace command? | 01:57 |
|
| What OS? | 01:57 |
|
iszak
| not that | 01:57 |
| → Buglouse joined | 01:58 |
|
iszak
| just so we're on the same level this is what I'm doing, I've done git init, and now I'm pulling from another repo, I've added the hook post-merge to execute on git pull, all seems correct? | 01:58 |
| → jophish joined | 02:00 |
|
iszak
| the strace worked but it didn't output all that much | 02:01 |
| ← __sorin__ left | 02:01 |
| ← Ryback_ left | 02:01 |
| ← squiggy left | 02:02 |
| → xiangfu joined | 02:03 |
| ← rchavik left | 02:04 |
| → __sorin__ joined | 02:05 |
| → Lgb joined | 02:07 |
| ← chrisdev left | 02:08 |
| → Rotham joined | 02:08 |
| ← hynek left | 02:08 |
| → nb_ joined | 02:08 |
| → boombatower joined | 02:08 |
| ← mikepack left | 02:09 |
| ← wsuff left | 02:09 |
|
iszak
| SethRobertson, do I need to make the file like post-merge.sh or just post-merge ? | 02:09 |
| → astruasdh joined | 02:11 |
| → kpreid joined | 02:12 |
| ← nb left | 02:15 |
| nb_ → nb | 02:15 |
| → yuriks_ joined | 02:15 |
| ← MikhX left | 02:16 |
| → hobodave joined | 02:17 |
| ← subsonic left | 02:18 |
| ← yuriks left | 02:18 |
| → bryanl joined | 02:20 |
|
SethRobertson
| post-merge | 02:20 |
| → tty2 joined | 02:20 |
| ← tty1 left | 02:20 |
|
SethRobertson
| iszak: I'd recommend doing something very simple. Have a post-checkout hook and fight getting that running so it is easier to test. | 02:21 |
|
| If the strace worked, what did `grep hooks /tmp/tr` print? | 02:21 |
|
iszak
| SethRobertson, /tmp/tr doesn't exist | 02:21 |
|
| oh wait now it does, maybe it was a typo - nothing in there | 02:22 |
|
SethRobertson
| Nothing at all or no hooks lines? | 02:22 |
|
iszak
| nope | 02:23 |
|
SethRobertson
| That was not a yes/no question. | 02:23 |
|
iszak
| there was nothing in that folder at all | 02:23 |
| → intripoon_ joined | 02:23 |
|
SethRobertson
| /tmp/tr should be a file, not a "folder" | 02:23 |
|
iszak
| oh right | 02:24 |
| ← jophish left | 02:24 |
|
iszak
| no hooks are executed in there. | 02:24 |
| → evanmeagher joined | 02:24 |
| ← astruasdh left | 02:25 |
|
SethRobertson
| Let me try again. Is /tmp/tr file non-empty? Did `grep hooks /tmp/tr` print anything? | 02:26 |
| → f0i joined | 02:26 |
|
iszak
| yes it's a file, no it's not empty, no the grep returned nothing. | 02:26 |
| → jophish joined | 02:26 |
| → majonto joined | 02:26 |
| ← mtx_init left | 02:26 |
| ← ki__ left | 02:27 |
| → mtx_init joined | 02:27 |
| ← intripoon left | 02:27 |
|
SethRobertson
| OK, then let us try a different hook and get that working first. Can you do the following: echo "#!/bin/sh" > .git/hooks/post-checkout; echo "date > /tmp/pc-ran" >> .git/hooks/post-checkout; chmod 755 .git/hooks/post-checkout; strace -o/tmp/tr -f -s80 git checkout HEAD^; cat /tmp/pc-ran; grep hooks /tmp/tr | 02:28 |
| ← jophish left | 02:28 |
| → dyer_ joined | 02:28 |
| ← dyer_ left | 02:28 |
| → dyer_ joined | 02:28 |
| ← evanmeagher left | 02:29 |
|
iszak
| SethRobertson, !/bin/sh": event not found | 02:29 |
|
SethRobertson
| Well, I suppose that is progress. It is trying to run the hook. I'm not entirely sure how the "#" disappeared in front of the !, but whatever | 02:30 |
|
| Did the grep return several lines? | 02:30 |
|
iszak
| also can I replace git checkout with git clone? | 02:30 |
| ← Yuuhi left | 02:31 |
| ← mtx_init left | 02:31 |
| ← dyer_out left | 02:31 |
|
iszak
| SethRobertson, okay I changed checkout to clone and I've got you some output! | 02:32 |
| → evanmeagher joined | 02:33 |
| → amerine joined | 02:33 |
| → Escherial joined | 02:33 |
| ← thoth_mes left | 02:33 |
|
Escherial
| hey, is it alright to use --assume-unchanged to allow a file to remain in my repo, but not push changes to it when i push to a remote? | 02:33 |
| → jophish joined | 02:33 |
|
iszak
| SethRobertson, here you go http://pastie.org/private/e8ivallkwqgclmbehf5p7a | 02:34 |
|
Escherial
| i am actually changing the file (it's the classic example of a settings file that contains sensitive data that i don't want to appear on github, yet won't work at all if i omit it using .gitignore) | 02:34 |
| → rchavik joined | 02:35 |
|
Escherial
| i am aware that attempting to merge changes from a pull onto my changed (but ignored) settings file will fail, which i imagine is good? | 02:35 |
| ← jophish left | 02:35 |
|
SethRobertson
| iszak: You cannot have any hooks run on clone. When it is creating the .git directory there is no hooks present to run | 02:35 |
| ← ketas left | 02:36 |
|
SethRobertson
| It certainly seems as if the checkout version *did* run a hook. Did the grep really not return anything? | 02:36 |
| → n8o-mba joined | 02:36 |
|
SethRobertson
| Escherial: Common wisdom is assume-unchanged is evil to use unless the file is actually unchanged. | 02:37 |
|
| Escherial: http://thomasrast.ch/git/local-config.html | 02:37 |
|
Escherial
| i've heard such common wisdom, which makes me uncomfortable :| i'm not sure what else to do, though | 02:37 |
|
| ah, that link seems to help :) thanks | 02:37 |
|
SethRobertson
| Best practice is not to commit config files but rather configfile.sample and .gitignore configfile | 02:39 |
| → jophish joined | 02:39 |
| ← rchavik left | 02:39 |
|
Escherial
| that makes a *huge* amount of sense | 02:39 |
|
| i was thinking that all of this mucking about for such a common thing was way too complicated for the naive user | 02:39 |
|
| this'll also force people to actually read the config file, too :) or at least be aware of its existence | 02:40 |
|
iszak
| SethRobertson, but it says post-checkout "It is also run after git clone, unless the --no-checkout (-n) option is used. The first parameter given to the hook is the null-ref, the second the ref of the new HEAD and the flag is always 1." | 02:40 |
|
Escherial
| (since they'll have to rename it if they expect anything to work) | 02:40 |
|
| anyway, i have to go running as a penance to the fitness gods x_x thank you for the advice | 02:40 |
| → konr joined | 02:41 |
| → jfkw joined | 02:41 |
| → hyperair joined | 02:41 |
|
SethRobertson
| iszak: It may be called after git-clone, I am just dubious that someone can get the necessary file in there. The checkout case is a good test case | 02:41 |
| → mando joined | 02:41 |
|
konr
| what's the right way to remotely pull a repo using ssh? | 02:42 |
|
SethRobertson
| pull or clone? | 02:42 |
| ← Escherial left | 02:42 |
| ← jophish left | 02:42 |
|
konr
| pull | 02:42 |
| → jophish joined | 02:43 |
|
konr
| my `ssh $host git --git-dir=konr.mobi/.git pull` somehow breaks the git repository | 02:43 |
|
| it doesn't get updated but can no longer pull | 02:43 |
| → alester joined | 02:43 |
|
SethRobertson
| Wait, where are you trying to run the git command? Locally or on $host? | 02:44 |
|
konr
| I'm locally trying to pull in a remote host | 02:44 |
|
iszak
| SethRobertson, so I'm not sure how I'm meant to checkout.. I only know how to clone, I've got a remote repo how would I checkout that? | 02:44 |
|
SethRobertson
| That command was trying to run git on $host, not pull $host. Try this instead: git pull $host:knor.mobi | 02:45 |
|
| konr: If you plan do that often, you should add that as a git-remote | 02:45 |
|
| iszak: git clone, create the hook, then run `git checkout <something>` | 02:45 |
| ← dyer_ left | 02:45 |
| → dyer_out joined | 02:46 |
| ← DrDogwelder left | 02:46 |
| → mtx_init joined | 02:46 |
|
offby1
| konr: did you figure it out? | 02:46 |
|
iszak
| SethRobertson, I try and do that with checkout and get.. error: pathspec 'HEAD' did not match any file(s) known to git. | 02:48 |
| → mdel joined | 02:48 |
|
konr
| SethRobertson: no, that's what I'm trying to do: the repo konr.mobi is on github, so the workflow, after updating it locally, push to github and then, on $host, pull it. | 02:48 |
|
| offby1: not yet | 02:48 |
|
| *is to push it to github | 02:49 |
| ← mdel left | 02:49 |
|
offby1
| yeah. You're connecting to $host -- which is remote to you -- and then pulling from github to it. | 02:49 |
|
| That sounds perfectly reasonably. | 02:49 |
|
| reasonable. | 02:49 |
|
SethRobertson
| konr: Ah, that was not well understood before. ssh $host 'cd knor.mobi; git pull' | 02:49 |
|
iszak
| konr, I would echo it, get the output, run it directly, see if there is a syntax error. | 02:49 |
|
offby1
| If I were you, I'd do "ssh $host" and get a shell, then try the pull from an interactive shell prompt. I can't explain why, but I think it'd be more illuminating. | 02:49 |
| → stliu joined | 02:50 |
|
SethRobertson
| iszak: What happens if you try to run the post-checkout hook directly? | 02:51 |
|
iszak
| SethRobertson, it executes, no errors | 02:51 |
|
| pc-ran file is created | 02:51 |
| ← AkumaStreak left | 02:51 |
| → banisterfiend joined | 02:52 |
| → leo2007 joined | 02:52 |
|
SethRobertson
| Then when you say `git checkout HEAD` what happens? | 02:52 |
|
konr
| thanks for the suggestions, guys! | 02:53 |
|
SethRobertson
| What worked? | 02:53 |
| → LongBeach joined | 02:54 |
| → etcetera_ joined | 02:54 |
| → gnufied joined | 02:54 |
| → gnufied_ joined | 02:54 |
|
konr
| SethRobertson: I used your suggestion! | 02:54 |
|
iszak
| SethRobertson, we | 02:55 |
|
| offby1 idly wonders why the original command didn't work | 02:55 |
|
iszak
| we've got progress, dumping new data | 02:55 |
| ← SerajewelKS left | 02:56 |
|
iszak
| SethRobertson, http://pastie.org/private/s5lfh7eiyuv9hwzdmldg | 02:56 |
|
SethRobertson
| And /tmp/pc-ran does not exist? | 02:57 |
|
iszak
| no it does now, nvm | 02:57 |
|
SethRobertson
| OK, so that is an example of a successful hook execution. strace being your friend. | 02:57 |
|
iszak
| yeah | 02:58 |
|
SethRobertson
| Now you can try post-merge that you have the nits worked out. Rename the post-checkout hook and try `strace -o/tmp/tr -f -s80 git pull` | 02:58 |
| ← etcetera left | 02:58 |
|
SethRobertson
| Of course, you will need to ensure that there is a change in the upstream remote to actually merge! | 02:58 |
| ← Rotham left | 02:59 |
| → shabble joined | 02:59 |
| ← aidalgol left | 03:00 |
|
shabble
| is there a way to tell which files will be committed (to go inside a pre-commit hook script)? | 03:00 |
|
SethRobertson
| shabble: Presumably you can look at git-status for the bits in the index | 03:01 |
|
| Or git-diff the index vs HEAD or... | 03:02 |
| ← kukks left | 03:04 |
| → ketas joined | 03:04 |
|
shabble
| yeah, git status --porcelain is probably the way to go, once I figure out what the prefixes mean | 03:04 |
| → fivetwentysix joined | 03:04 |
| → cylence joined | 03:08 |
| → Corren joined | 03:08 |
| ← caseymcg left | 03:09 |
| → caseymcg joined | 03:10 |
| → fivetwentysix_ joined | 03:10 |
|
iszak
| SethRobertson, can't I have a hook execute on the initial cloning? | 03:12 |
|
| I kind of need it. | 03:12 |
| → ajpiaNOU joined | 03:12 |
|
SethRobertson
| I do not believe so, because the git-clone is creating the .git directory and you will not be able to get the hook in place at the right moment | 03:12 |
|
iszak
| can't I git init; something; something else? | 03:13 |
| ← fivetwentysix left | 03:13 |
| → xerora joined | 03:14 |
| ← fivetwentysix_ left | 03:15 |
| ← xiangfu left | 03:15 |
| ← n8o-mba left | 03:15 |
| → xiangfu joined | 03:16 |
| ← rpg left | 03:18 |
| ← alester left | 03:19 |
| ← cschneid_ left | 03:20 |
| ← infid left | 03:20 |
|
iszak
| SethRobertson, will git init; git remote origin username@hostname:/path; git pull origin master; execute the post-checkout hook? | 03:20 |
| → rchavik joined | 03:21 |
| → infid joined | 03:22 |
| ← subpsyke left | 03:23 |
| ← xerora left | 03:23 |
| → hynek joined | 03:24 |
| → banghouse joined | 03:24 |
| ← JesusLovesYou left | 03:28 |
| → savoxis joined | 03:29 |
|
iszak
| SethRobertson++ nvm got it :) thanks for all your help! | 03:32 |
| ← aef left | 03:34 |
| ← blorbx left | 03:34 |
| ← boombatower left | 03:34 |
| → B2oba joined | 03:35 |
| → aef joined | 03:36 |
| ← mosno left | 03:39 |
| ← CannedCorn left | 03:39 |
| ← iszak left | 03:39 |
| → kinesis joined | 03:39 |
| → mosno joined | 03:39 |
| ← hobodave left | 03:39 |
| → justin-george joined | 03:39 |
| ← caseymcg left | 03:41 |
| ← mosno left | 03:41 |
| → mosno joined | 03:42 |
| → vsayer joined | 03:44 |
| ← ajpiaNOU left | 03:46 |
| → blorbx joined | 03:46 |
| ← pyroscope left | 03:47 |
| → pyroscope_ joined | 03:47 |
| → aixl joined | 03:48 |
| ← gnufied_ left | 03:50 |
| ← gnufied left | 03:50 |
| → eletuchy joined | 03:51 |
| → joshteam joined | 03:51 |
| ← p3rror left | 03:52 |
| → CannedCorn joined | 03:53 |
| ← pyroscope_ left | 03:56 |
| ← paeva left | 03:57 |
| → pyroscope joined | 03:57 |
| ← savoxis left | 03:57 |
| → flazz joined | 03:57 |
|
flazz
| i have a submodule that says the difference is the same sha but with -dirty appened to it, what could be wrong? | 03:58 |
| → Error404NotFound joined | 03:59 |
| → gasull joined | 04:00 |
| ← jophish left | 04:02 |
|
gasull
| Is there a way I can delete everything, including history, in a remote repo? Thanks. | 04:02 |
|
mmattice
| flazz: cd into it, check git status | 04:02 |
| ← hagabaka left | 04:03 |
|
flazz
| mmattice: adding ignore = dirty to .gitmodule fixed it | 04:03 |
|
| btw what does -dirty mean at the end of a commit-id? | 04:03 |
|
mmattice
| for some value of "fixed" | 04:03 |
|
| flazz: cd into it, check git status | 04:03 |
| ← aixl left | 04:03 |
| → boombatower joined | 04:03 |
| ← boombatower left | 04:03 |
| → boombatower joined | 04:03 |
|
flazz
| untracked files exist | 04:04 |
|
| generated files | 04:04 |
| ← ISF left | 04:04 |
| ← OOPMan left | 04:04 |
|
flazz
| will top-level .gitignore apply to submodules? | 04:04 |
|
mmattice
| shouldn't. | 04:04 |
| → seivan joined | 04:05 |
| → hagabaka joined | 04:05 |
| ← hagabaka left | 04:05 |
| → hagabaka joined | 04:05 |
| ← bryanl left | 04:06 |
|
flazz
| right | 04:07 |
| ← kenneth_reitz left | 04:07 |
| ← theoretical left | 04:10 |
| → envi_ joined | 04:11 |
| → EricInBNE joined | 04:11 |
| → ISF joined | 04:12 |
| → savoxis joined | 04:13 |
| ← envi left | 04:14 |
| ← [intra]lanman left | 04:15 |
| ← leo2007 left | 04:18 |
| ← joshteam left | 04:18 |
| ← smolyn left | 04:20 |
| ← phantomcircuit left | 04:21 |
| ← seivan left | 04:22 |
| → OOPMan joined | 04:23 |
| → GothAlice joined | 04:24 |
| ivey → ivey_off | 04:24 |
| ← ivey_off left | 04:25 |
| → joshteam joined | 04:25 |
| → aminpy joined | 04:26 |
| ← joshteam left | 04:27 |
|
GothAlice
| It's getting late here and I'm starting to forget simple things. ^_^ How do you merge changes from a branch (say, master) into the 'current' branch (say, fuji) without removing the first (updated) branch? | 04:27 |
| ← mosno left | 04:28 |
| → phantomcircuit joined | 04:29 |
| ← savoxis left | 04:29 |
| → erichammond joined | 04:31 |
| → slackorama joined | 04:32 |
| → zhengyang joined | 04:34 |
| → ivey joined | 04:36 |
| ← gebbione left | 04:36 |
|
milki
| merging doesnt remove branches | 04:38 |
|
| whats the problem? o.O | 04:38 |
| → glcrazy joined | 04:39 |
| ← amerine left | 04:40 |
| → drev1_ joined | 04:40 |
| ← drev1 left | 04:41 |
| drev1_ → drev1 | 04:41 |
| ← jawwad left | 04:41 |
| → savoxis joined | 04:42 |
| ← phantomcircuit left | 04:42 |
| → gebi joined | 04:42 |
| ← crakdmirror left | 04:42 |
| → Tobbe joined | 04:43 |
| ← Error404NotFound left | 04:43 |
| ← gasull left | 04:43 |
| → joshteam joined | 04:43 |
| → mdel joined | 04:44 |
| ← glcrazy left | 04:44 |
|
Tobbe
| Hi. I'm trying to do "git diff stash@{0}^1 stash@{0} -- <filename>" but I get "fatal: bad revision 'stash@0^1'". What am I missing? | 04:44 |
| → jawwad joined | 04:44 |
| ← quiliro left | 04:45 |
| ← joshteam left | 04:45 |
| ← wonginator1221 left | 04:46 |
|
milki
| you can diff stashes? i didnt know that | 04:47 |
|
| i though states were diffs themselves | 04:47 |
|
| stashes* | 04:47 |
|
GothAlice
| AFIK stashes are branches. | 04:47 |
|
| (Or at least implemented in a very branch-like way.) | 04:48 |
|
milki
| hm that makes sense from what i see in qgit | 04:48 |
|
| Tobbe: try using the reference directly? | 04:49 |
|
| resf/stash | 04:49 |
| → dannas_ joined | 04:49 |
|
Tobbe
| this is where I got the command from, you should read it, it's interesting :) http://stackoverflow.com/questions/1105253/how-would-i-extract-a-single-file-or-changes-to-a-file-from-a-git-stash | 04:49 |
| ← CannedCorn left | 04:50 |
| ← AtomicSpark left | 04:52 |
| → gnufied_ joined | 04:53 |
| → gnufied joined | 04:53 |
| → roop joined | 04:55 |
| ← evanmeagher left | 04:55 |
|
Tobbe
| I just tried "git show stash@{0}:<full filename>" but got "fatal: ambiguous argument 'stash@0:<filename>: unknown revision or path not in the working tree. Use '--' to separate paths from revisions" | 04:56 |
| → freimatz joined | 04:56 |
| → Error404NotFound joined | 04:57 |
| → steph021 joined | 04:58 |
| ← steph021 left | 04:58 |
| → steph021 joined | 04:58 |
|
Bombe
| Tobbe, have you tried using “--” to seperate paths from revisions? | 04:58 |
|
Tobbe
| :p | 04:59 |
|
| yes :) Then I get "fatal: bad revision 'stash@0'" | 04:59 |
|
wereHamster
| Tobbe: on windows? | 04:59 |
|
Tobbe
| (I'm not liking how it strips the { } from everything I type) | 04:59 |
| → phantomcircuit joined | 04:59 |
|
Tobbe
| wereHamster: Solaris | 04:59 |
|
wereHamster
| you have a weird shell | 05:00 |
|
| quote the argument | 05:00 |
| ← gigamonkey left | 05:00 |
| → gigamonkey joined | 05:00 |
| → dr0id joined | 05:00 |
|
Tobbe
| that worked (at least for "git show") | 05:00 |
|
| I'll try the stash diff too | 05:01 |
| ← eletuchy left | 05:01 |
| → caseymcg joined | 05:02 |
|
Tobbe
| didn't work. "fatal: ambiguous argument 'stash@{0}^1 stash@{0} -- <filename>: unknown revision or path not in the working tree. Use '--' to separate paths from revisions" | 05:02 |
|
wereHamster
| please paste the exact command | 05:03 |
| dr0id → depressed | 05:05 |
| ← caseymcg left | 05:06 |
|
Tobbe
| (not allowed to paste the exact path, made some changes to it) git diff "stash@{0}^1 stash@{0} -- dev-network/src/com/company/product/tree/conditions/IpAddress.java" | 05:06 |
| → caseymcg joined | 05:06 |
| ← towski left | 05:06 |
|
Tobbe
| (replaced the actual company named with "company" and the product name with "product") | 05:07 |
| ← phantomcircuit left | 05:08 |
| ← caseymcg left | 05:08 |
| → caseymcg joined | 05:08 |
| → ThomasLocke joined | 05:10 |
| ← gigamonkey left | 05:10 |
|
wereHamster
| you need to quote each argument separately, not everything together | 05:10 |
| ← shevy left | 05:11 |
|
Tobbe
| "--" "<filename>" or "-- <filename"? | 05:11 |
| → eletuchy joined | 05:11 |
|
wereHamster
| -- and <filename> are different arguments | 05:12 |
|
| (otherwise there woudn't be space between them) | 05:12 |
|
Tobbe
| yeah, got it | 05:12 |
|
| what a pita... | 05:12 |
|
wereHamster
| solaris. Tell me bout it.. | 05:13 |
|
Tobbe
| heh | 05:13 |
| → maleknet joined | 05:13 |
| → canuck3141 joined | 05:13 |
| ← slackorama left | 05:15 |
| ← caseymcg left | 05:16 |
| → caseymcg joined | 05:16 |
|
Tobbe
| So this is my workflow up until now: git checkout master; git pull; git checkout -b bug_id master; "writing testcase"; "fixing bug"; git rebase master; "cannot rebase: you have unstaged changes"; "what to do?"; "lets stash everything"; git rebase master; | 05:20 |
|
| is stashing the best thing to do at that point so that I can rebase? | 05:20 |
| → fr0stbyte joined | 05:20 |
| → TrineLocke joined | 05:20 |
|
Tobbe
| I have changes in files that I'm not going to commit, so I didn't want to stage them | 05:20 |
|
fr0stbyte
| i've added my ignore directories to /.git/info/exclude, and git status shoes no untracked files or changes. good. but when i go to checkout a different branch: The following untracked working tree files would be overwritten by checkout | 05:21 |
|
Tobbe
| But I also don't want to lose my changes because I need them to be able to run the code | 05:21 |
| ← Pupeno left | 05:21 |
| → _Qman joined | 05:23 |
|
wereHamster
| Tobbe: ask yourself: why do you have uncommitted changes? | 05:23 |
|
| fr0stbyte: the files are tracked in one branch and untracked in the other branch. Either track or not track them, but don't mix it | 05:23 |
|
fr0stbyte
| wereHamster: genius. i forgot i accidentally committed them to the other branch. accident. | 05:24 |
|
| wereHamster: thanks. appreciated | 05:24 |
|
Tobbe
| wereHamster: because I had to work around a bug in an old version of a third party library that I'm not in control over. And the people in charge of the code uses a newer version of said library that doesn't have the bug | 05:24 |
| ← fr0stbyte left | 05:25 |
|
wereHamster
| Tobbe: so what do you want to do with those change? | 05:25 |
| → fr0stbyte joined | 05:25 |
|
Tobbe
| I just want to keep them local to myself | 05:25 |
|
| should I check them in, and just not push them? | 05:25 |
| → shevy joined | 05:26 |
|
Tobbe
| (how do I select what commits to push?) | 05:26 |
|
wereHamster
| can't you updatet he library? | 05:26 |
| ← canuck3141 left | 05:27 |
| ← etcetera_ left | 05:28 |
|
Tobbe
| No, I don't have write permission to the path where it's stored | 05:28 |
| ← phaer left | 05:28 |
| → phaer joined | 05:28 |
| → bindaas joined | 05:28 |
|
wereHamster
| so, you're using some kind of hook which restricts the paths to which you can commit? | 05:29 |
|
Tobbe
| google tells me I can't commit my changes and then later not push it, as any newer commit would depend on the earlier commit | 05:29 |
|
| wereHamster: No. I have a library in my classpath that's in a directory I'm not allowed to touch | 05:30 |
|
wereHamster
| is that library part of your git repo? | 05:30 |
|
Tobbe
| no | 05:30 |
|
wereHamster
| so where do these uncommitted changes come from? | 05:30 |
|
banisterfiend
| wereHamster: can you give me an intuitive explanation of rebase --onto | 05:31 |
|
wereHamster
| Tobbe: "cannot rebase: you have unstaged changes" | 05:31 |
|
| where are these changes? | 05:31 |
|
| banisterfiend: I believe man git-rebase explains it pretty well | 05:31 |
|
jast
| banisterfiend: [automatic message] the 'git-rebase' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html | 05:31 |
|
wereHamster
| banisterfiend: just read the description. carefully | 05:31 |
| → ExtraSpice joined | 05:31 |
|
banisterfiend
| wereHamster: i prefer an explanation from someone with a good heart, and you look like a man with a good heart | 05:32 |
|
wereHamster
| no time | 05:32 |
| ← blorbx left | 05:32 |
|
Tobbe
| wereHamster: what do you mean "where"? they are in the file that uses the library with a bug | 05:32 |
| → blorbx joined | 05:32 |
|
wereHamster
| Tobbe: so the library code *is* tracked in git | 05:32 |
|
Tobbe
| no, the library is just a .jar | 05:32 |
|
| the code that *uses* the library is tracked in git | 05:33 |
| → evanmeagher joined | 05:33 |
|
Tobbe
| and it's the code that *uses* the library I did my work-around in | 05:33 |
| ← cooloney left | 05:33 |
| ivey → ivey_off | 05:33 |
|
Tobbe
| and I don't use the same version of the lib/.jar as the team responsible for the upstream repo | 05:33 |
|
| (because I can't change the version of the lib I use) | 05:34 |
| → joshteam joined | 05:34 |
|
GothAlice
| Is 'rebase' the correct operation here? https://gist.github.com/956586#L61 These per-server branches are linear (no merging or additional branching; all immediate descendants of master) | 05:34 |
| ← joshteam left | 05:34 |
|
GothAlice
| I chose rebase since it appears to be reversible on failure, whereas merge leaves potentially invalid files with markers in them. | 05:35 |
| ← giallu left | 05:35 |
| ← blorbx left | 05:36 |
|
milki
| i dont see why you need to merge back to master if each server has their own branch already | 05:36 |
|
| do the branches share files? | 05:37 |
|
GothAlice
| They do. | 05:37 |
| ← evanmeagher left | 05:37 |
|
GothAlice
| And "master" is treated as files common to every server, vs the files modified within the branch which are server-specific. | 05:37 |
| → brienna joined | 05:38 |
|
milki
| oo ok, so you are updating the branch with new master stuff | 05:38 |
|
| ya, rebasing makes sense then | 05:38 |
|
GothAlice
| \o/ Thank you. :) | 05:39 |
|
wereHamster
| Tobbe: looks like you need to change your setup rather than the code | 05:39 |
| ← brodo left | 05:39 |
|
milki
| do you need git branch though? the branch should already exist in origin | 05:39 |
|
| git checkout might auto create a tracking branch | 05:40 |
|
GothAlice
| milki: This script is executed on each boot for both existing servers and new. The branch statement there ensures the branch exists before continuing. | 05:40 |
|
milki
| or git branch should be modified to do tracking | 05:40 |
|
| oo | 05:40 |
|
GothAlice
| Yay for virtual machine images, eh? ;) | 05:40 |
|
milki
| i still think there needs to be some if somewhere if the branch already exists | 05:41 |
|
Tobbe
| wereHamster: Yeah, I agree. But I can't. I can ask management to do it, but it will take weeks, and they want this bug fixed asap... | 05:41 |
|
milki
| probably dont need git push --all since you know exectly what branch you modified | 05:41 |
| ← f0i left | 05:42 |
|
GothAlice
| milki: the test / ewarn line seems sufficient enough, and simpler than grep magic to parse the output of 'git branch'. | 05:42 |
|
milki
| git branch will succeed whether or not the remote branch exists | 05:42 |
| → f0i joined | 05:42 |
|
milki
| git push will fail if it exists in remote but your branch isnt tracking i think | 05:43 |
| ← brienna left | 05:43 |
|
milki
| o, so its ok for the script to fail? | 05:43 |
| ← mdel left | 05:43 |
| → brienna joined | 05:44 |
| → rndbit joined | 05:44 |
| ← rndbit left | 05:44 |
|
GothAlice
| milki: git branch <name> returns a non-zero status code if the branch exists. That's what I'm trapping. | 05:45 |
| ← brienna left | 05:45 |
| ← xiangfu left | 05:45 |
| ← jfkw left | 05:45 |
| → rndbit joined | 05:45 |
|
GothAlice
| milki: For the most part I have lots of exit-early returns from the script to handle errors (unexpected non-zero return codes). | 05:45 |
|
milki
| if it exists locally yes | 05:45 |
|
| but not for remote | 05:45 |
|
GothAlice
| Define "it". | 05:46 |
|
| The branch? | 05:46 |
| → harshu_ joined | 05:46 |
|
milki
| ya | 05:46 |
|
| if its on origin/, git branch doesnt care | 05:46 |
|
GothAlice
| Hmm. 99% of the time either the remote branch doesn't exist (new server), or does exist and is also present locally (existing long-running server). Only a new server with an old name would encounter that. | 05:47 |
| → cooloney joined | 05:47 |
|
milki
| oo | 05:48 |
|
| that works then | 05:48 |
|
GothAlice
| Wait; am I missing something between fetch and switching branches? Do I need to fast-forward master first? | 05:49 |
|
milki
| o ya, that would be useful | 05:50 |
|
| or maybe you can rebase off of origin/master? | 05:50 |
|
GothAlice
| Hmm; that would be handy. | 05:50 |
| ← Corren left | 05:50 |
| ← maleknet left | 05:50 |
|
GothAlice
| Quick Q, too: how do I delete a branch both locally and up-stream? | 05:51 |
| ← f0i left | 05:51 |
|
milki
| uh | 05:51 |
|
| two commands | 05:51 |
|
| branch -d/-D | 05:51 |
|
| push origin :branchname | 05:51 |
|
GothAlice
| Thanks. ^_^ | 05:52 |
| ← Adys left | 05:54 |
| → airborn joined | 05:55 |
|
GothAlice
| I wonder if there's anyone else who publicly uses Git in this way (for server configuration management in a cluster)? | 05:55 |
| → Adys joined | 05:56 |
| ← Error404NotFound left | 05:58 |
| → jutaro joined | 05:58 |
| ← envi_ left | 05:58 |
| → envi_ joined | 05:59 |
| ← justin-george left | 06:00 |
| ← LongBeach left | 06:00 |
| ← Octalot left | 06:01 |
| ← rndbit left | 06:01 |
| → namemon joined | 06:01 |
| ← savoxis left | 06:02 |
| → rndbit joined | 06:02 |
| ← ISF left | 06:03 |
| → savoxis joined | 06:04 |
| → glcrazy joined | 06:04 |
| ← tty2 left | 06:04 |
| → thiago_berlin joined | 06:05 |
| → msponge joined | 06:06 |
| → n1ck3 joined | 06:08 |
| ← thiago_berlin left | 06:09 |
| → thiago_berlin joined | 06:09 |
| → cbreak_work joined | 06:09 |
| → ISF joined | 06:10 |
| → Swaagie joined | 06:10 |
| → n1ck31 joined | 06:11 |
| ← n1ck3 left | 06:11 |
| → f0i joined | 06:11 |
| → Error404NotFound joined | 06:12 |
| ← rchavik left | 06:12 |
| ← hagabaka left | 06:12 |
| ← bronson left | 06:13 |
| ← mando left | 06:15 |
| → hagabaka joined | 06:16 |
| → opalka joined | 06:16 |
| ← intripoon_ left | 06:17 |
| ← vdv left | 06:17 |
| → intripoon joined | 06:18 |
| ← gretch left | 06:18 |
| → tvw joined | 06:18 |
| → urkud joined | 06:19 |
| ← __sorin__ left | 06:21 |
| → kylemcgill joined | 06:22 |
| → Titosemi joined | 06:23 |
| ← ISF left | 06:24 |
| ← rndbit left | 06:24 |
|
milki
| well | 06:25 |
|
| you can checkout out confman | 06:25 |
|
| but it uses svn as a backend | 06:25 |
| → aalex-home_ joined | 06:25 |
|
milki
| http://www.timesinks.net/projects/confman | 06:25 |
|
| it might do well with a git backend | 06:25 |
|
| but its not supported as of yet | 06:25 |
| ← jettero left | 06:27 |
| ← henrikbjorn left | 06:27 |
| → jettero joined | 06:28 |
| ← jettero left | 06:28 |
| → jettero joined | 06:28 |
| ← sbell left | 06:29 |
| ← konr left | 06:30 |
|
milki
| GothAlice: ^ | 06:30 |
| ← envi_ left | 06:31 |
| → rndbit joined | 06:31 |
| ← rndbit left | 06:31 |
| → sbell joined | 06:31 |
| → MikhX joined | 06:32 |
| → ISF joined | 06:32 |
| ← hyperboreean left | 06:32 |
| → rndbit joined | 06:32 |
| ← Chib left | 06:32 |
| → ph^ joined | 06:33 |
| ← sbell left | 06:33 |
| → __sorin__ joined | 06:33 |
| → psoo joined | 06:34 |
| ← tvw left | 06:35 |
| → dim_ joined | 06:36 |
| ← kokx left | 06:37 |
| ← urkud left | 06:37 |
| → kokx| joined | 06:37 |
| → envi joined | 06:37 |
| ← babilen left | 06:37 |
| ← harv left | 06:39 |
| ← jjuran left | 06:39 |
| → rosco_y joined | 06:39 |
| → Spockz joined | 06:39 |
| → workmad3 joined | 06:40 |
| → strk joined | 06:41 |
|
strk
| git svn clone http://dolphin-emu.googlecode.com/svn/trunk/ -r 7500 | 06:41 |
|
| ^^^ quietly seems to do nothing, ideas ? | 06:41 |
| ← Spockz left | 06:42 |
| ← guardian left | 06:42 |
| ← GothAlice left | 06:43 |
| ← envi left | 06:44 |
| → envi joined | 06:44 |
|
rosco_y
| This is the output of my "git status" command. How do I need to do to commit my "additions?" : http://paste2.org/p/1399985 | 06:44 |
|
| This is the output of my "git status" command. How do I commit my "additions?" : http://paste2.org/p/1399985, (fixed grammo) | 06:45 |
|
| I do recall running "git reset "HEAD", which might be the problem.... | 06:46 |
|
strk
| git commit | 06:46 |
|
| oh, you're not on a branch | 06:47 |
|
| where do you want to commit those changes ? | 06:47 |
| → Badiss joined | 06:47 |
|
strk
| git checkout -b newthings; git commit -m "my new things" | 06:47 |
|
rosco_y
| my .git directory is in the root of my working directory --is that bad? | 06:47 |
|
strk
| no, it's expected to be like that | 06:47 |
|
rosco_y
| first I need to check them out? | 06:48 |
| → dpino joined | 06:48 |
| → kenneth_reitz joined | 06:48 |
|
rosco_y
| this seems a bit more complicated than it should be....I modifed the files, and they should be checked in. | 06:48 |
|
strk
| you did something else | 06:49 |
|
| or you wouldn't be in "(no branch)" | 06:49 |
|
| check 'git branch' | 06:49 |
| → giallu joined | 06:49 |
| ← giallu left | 06:49 |
| → giallu joined | 06:49 |
|
strk
| tells you which local branches you have | 06:49 |
|
rosco_y
| strk: yes, I'll bet it's because I ran "git reset" the other day. Things haven't been the same since | 06:49 |
|
strk
| what argument did you pass to "git reset" ? | 06:49 |
|
rosco_y
| HEAD, I believe | 06:50 |
|
| it was the other day, and I'm just learning git | 06:50 |
|
strk
| uhm, shouldn't be in no-branch if you used HEAD | 06:50 |
|
milki
| history! | 06:50 |
|
rosco_y
| :) I'll take a look | 06:50 |
|
strk
| anyway, since you're learning... see what 'git branch' tells you | 06:50 |
|
| add a -v for more | 06:50 |
|
| and also, I'd recommend checking out 'git show-ref' | 06:50 |
|
rosco_y
| git | 06:51 |
|
| ross@linux-aoty:~/Projects/Thumprint> git branch -v | 06:51 |
|
| * (no branch) efc4ec2 initial commit | 06:51 |
|
| master 57610cb deleted: www/www/Views/Tree/Index_private_error.aspx | 06:51 |
| → pdelgallego joined | 06:51 |
| ← amirite left | 06:51 |
|
strk
| rosco_y: so it tells you have two local branches | 06:52 |
|
| one is unnamed "(no branch)" and is the current one "*" | 06:52 |
|
| the other is named "master" | 06:52 |
|
rosco_y
| should I just delete my .git directory, and re-run "git init" | 06:52 |
|
strk
| no | 06:52 |
|
rosco_y
| how can I move back to the master? | 06:52 |
| → radarek joined | 06:52 |
|
strk
| you can switch between a branch and another using 'git checkout <branchname>" | 06:53 |
| ← airborn left | 06:53 |
|
rosco_y
| so, "git checkout "master" ? | 06:53 |
|
strk
| but note that unnamed branches would be lost | 06:53 |
|
| yes | 06:53 |
| → amirite joined | 06:53 |
|
rosco_y
| cool, that's what I was looking for | 06:53 |
|
| thanks strk! | 06:53 |
|
strk
| are you sure you don't need those changes saved ? | 06:53 |
|
| let me know how it proceeds, as there's always somethign to learn for me :) | 06:54 |
|
rosco_y
| strk: the changes are trivial at this point--I'm just trying to learn how to use git before continuing in my project | 06:54 |
| ← Tobbe left | 06:54 |
|
strk
| so go one step further and see how to "backup" your changes (if any) | 06:54 |
|
rosco_y
| I ran the checkout, now git status tells me I'm not on a branch | 06:54 |
|
strk
| maybe the checkout failed | 06:55 |
|
| no error/warning message ? | 06:55 |
|
| something like "can't checkout for this and that" | 06:55 |
|
rosco_y
| yup, error: your local changes to the following files wouel be overwritten by the checkout | 06:55 |
|
strk
| eh :) | 06:55 |
|
| so it's telling you that you have some files changed | 06:55 |
|
| so that checking out master would override those changes | 06:56 |
|
rosco_y
| can I force the checkout? | 06:56 |
|
strk
| good | 06:56 |
| → Chib joined | 06:56 |
|
strk
| probably | 06:56 |
|
rosco_y
| :) | 06:56 |
|
strk
| those changes are in the so-called "index" | 06:56 |
|
rosco_y
| right, -f | 06:56 |
|
strk
| (changes to be committed) | 06:56 |
|
| let me know if -f did it | 06:57 |
|
rosco_y
| so to keep my current changes, I should probably delete my ".git" dir, and rerun git init? | 06:57 |
|
strk
| no | 06:57 |
|
| never wipe the .git dir :) | 06:57 |
| → D5 joined | 06:57 |
|
strk
| it's full of helpful things | 06:57 |
| ← kenneth_reitz left | 06:57 |
|
strk
| you could give your branch a name | 06:58 |
|
| git branch aname # will create a branch from your current branch | 06:58 |
|
rosco_y
| well, I doubt mine has too much helpful stuff, so far it's just been an exercise in frustration | 06:58 |
| → d0k joined | 06:58 |
|
rosco_y
| ah, let me try that | 06:58 |
|
strk
| but hold on a sec | 06:58 |
|
| thing is your branch "(no branch)" isn't really interesting | 06:59 |
|
| as those changes are not in it yet | 06:59 |
| → rchavik joined | 06:59 |
| ← rchavik left | 06:59 |
| → rchavik joined | 06:59 |
|
strk
| it'd take a "git commit" to really register those changes into a branch | 06:59 |
| ← OOPMan left | 06:59 |
|
strk
| or "git reset" to take them off the "index" | 06:59 |
| → RevoOf1 joined | 06:59 |
| ← RevoOf left | 06:59 |
| ← ISF left | 07:00 |
|
strk
| try "git reset HEAD www/www/www.csproj" | 07:00 |
|
rosco_y
| I'm trying to read ProGit online | 07:00 |
|
| strk doesn't know if that will work | 07:00 |
| ← __sorin__ left | 07:00 |
|
| rosco_y doesn't know if reading ProGrit will work either :P | 07:01 |
| ← thiago_berlin left | 07:01 |
|
rosco_y
| do you use a gui? | 07:01 |
| ← vsayer left | 07:02 |
| → ISF joined | 07:03 |
| → OOPMan joined | 07:03 |
| → sebbi joined | 07:03 |
|
rosco_y
| Thanks strk, I think I'll just have to read the manual....:( | 07:04 |
| ← pdelgallego left | 07:06 |
|
strk
| I try to avoid the gui | 07:07 |
|
| sorry, got a system crash | 07:08 |
|
| did you try the reset command ? | 07:08 |
| ← lresende left | 07:09 |
| ← mihar left | 07:09 |
| → lresende joined | 07:10 |
| ← lresende left | 07:10 |
| → lresende joined | 07:10 |
| → mihar joined | 07:11 |
| → dreiss joined | 07:12 |
| → mastroDani joined | 07:12 |
| ← depressed left | 07:12 |
| → vsayer joined | 07:12 |
| ← lresende left | 07:12 |
| → akheron joined | 07:13 |
| → amerine joined | 07:15 |
| → saschagehlich joined | 07:16 |
| ← oc80z left | 07:17 |
| ← alip left | 07:17 |
| → oc80z joined | 07:17 |
| ← savoxis left | 07:17 |
| ← mihar left | 07:18 |
| ← opalka left | 07:18 |
| → henrikbjorn joined | 07:18 |
| ← f0i left | 07:18 |
| ← henrikbjorn left | 07:19 |
| → henrikbjorn joined | 07:19 |
| ← blast_hardcheese left | 07:19 |
| ← tokkee left | 07:20 |
| → mihar joined | 07:20 |
| → jugg joined | 07:20 |
| → opalka joined | 07:21 |
| → tokkee joined | 07:21 |
| → alip joined | 07:21 |
| → tvw joined | 07:22 |
| → f0i joined | 07:23 |
| → blast_hardcheese joined | 07:25 |
| ← caseymcg left | 07:26 |
|
jugg
| pushing a new branch to a remote is failing ( https://gist.github.com/956665 ) this used to work: $ git push origin HEAD:newbranch | 07:26 |
|
strk
| what is it supposed to do ? | 07:26 |
|
jugg
| I've recently upgraded my workstation to 1.7.5, but I don't believe the server version (1.7.2.3) has changed recently. | 07:26 |
|
| strk knows $ git push origin newbranch | 07:27 |
|
jugg
| takes the ref in HEAD and creates 'newbranch' ref on origin. | 07:27 |
| ← Edulix_ left | 07:28 |
| → caseymcg joined | 07:28 |
| → Rotham joined | 07:29 |
|
strk
| didn't know you could do that w/out checking out HEAD | 07:29 |
| → mikl joined | 07:29 |
| ← envi left | 07:29 |
| ← mikl left | 07:29 |
| → mikl joined | 07:29 |
| → envi joined | 07:29 |
| → savoxis joined | 07:30 |
| → avinashhm joined | 07:32 |
| rob_w_away → rob_w | 07:33 |
| → jds joined | 07:33 |
| → legumbre_ joined | 07:33 |
| → dr_ick joined | 07:34 |
| ← legumbre left | 07:35 |
| ← dreiss left | 07:40 |
| ← MikhX left | 07:40 |
| ← workmad3 left | 07:43 |
| ← RevoOf1 left | 07:43 |
| ← txxt left | 07:43 |
| ← rosco_y left | 07:45 |
| → harv joined | 07:46 |
| ← amerine left | 07:47 |
| ← gebi left | 07:48 |
| ← saschagehlich left | 07:49 |
| → nevyn^ joined | 07:49 |
| ← ph^ left | 07:50 |
| → ph^ joined | 07:50 |
| ← nevyn^ left | 07:51 |
| → nevyn^ joined | 07:51 |
| → brodo joined | 07:52 |
| → ch077179 joined | 07:54 |
| → ph^_ joined | 07:54 |
| ← ph^_ left | 07:54 |
| → guardian joined | 07:54 |
| ← ph^ left | 07:54 |
| ← ch077179 left | 07:54 |
| → ph^ joined | 07:54 |
| → shiba_yu36 joined | 07:55 |
| → Luca_Peck joined | 07:55 |
| → ch077179 joined | 07:55 |
| → dharrigan joined | 07:56 |
| ← dharrigan left | 07:56 |
| → dharrigan joined | 07:56 |
| → dr0id joined | 07:58 |
| dr0id → depressed | 07:58 |
| ← mastroDani left | 07:58 |
| ← f0i left | 07:59 |
| → eijk joined | 07:59 |
| ← Tuomas left | 08:00 |
| ← fs-sylr left | 08:00 |
| → ph^_ joined | 08:00 |
| → fs-sylr joined | 08:00 |
| → troessner joined | 08:00 |
| ← cthuluh left | 08:01 |
| → nevyn^_ joined | 08:02 |
| → noonoooo joined | 08:02 |
| ← ph^ left | 08:03 |
| ← cylence left | 08:03 |
| → mastroDani joined | 08:03 |
| → davzie joined | 08:03 |
| → Henrik_ joined | 08:04 |
| → sechrist joined | 08:04 |
| ← dharrigan left | 08:05 |
| ← henrikbjorn left | 08:05 |
| ← troessner left | 08:05 |
| → dharrigan joined | 08:05 |
| ← nevyn^ left | 08:06 |
| nevyn^_ → nevyn^ | 08:06 |
| ← D5 left | 08:07 |
| ← steph021 left | 08:07 |
| → D5 joined | 08:08 |
| → crashanddie joined | 08:08 |
| → mklappstuhl joined | 08:08 |
| → Ryth joined | 08:09 |
| ← shiba_yu36 left | 08:10 |
| ← jawwad left | 08:11 |
| → genbattle joined | 08:11 |
| ← gnufied left | 08:12 |
| ← gnufied_ left | 08:12 |
| → LuckyNeo joined | 08:12 |
| ← sigh left | 08:12 |
| → jawwad joined | 08:14 |
|
jayne
| can I rebase -i through merges, or does that still not work? | 08:15 |
| → xiangfu joined | 08:15 |
|
empity
| jayne: yes you can | 08:17 |
| → alus joined | 08:17 |
|
alus
| I accidentally ran 'git stash apply' when I didn't mean to | 08:17 |
|
| how do I undo that? | 08:18 |
|
| it caused merge conflicts in a few files, but I can't "git checkout foo" because "error: path 'foo' is unmerged" | 08:18 |
| → konr joined | 08:18 |
|
jayne
| did you have any unstaged/uncommited changes before the apply? | 08:18 |
|
strk
| git reset HEAD ? | 08:18 |
|
alus
| jayne: no | 08:19 |
|
jayne
| if you're sure, you can "git reset --hard HEAD" to wipe out everything back to what you had at HEAD | 08:19 |
| → avdg1 joined | 08:19 |
|
alus
| alright | 08:19 |
|
| seems to have worked | 08:19 |
| → shiba_yu36 joined | 08:19 |
|
alus
| thanks! | 08:20 |
| ← rndbit left | 08:21 |
| ← alus left | 08:21 |
| ← dr_win left | 08:21 |
| → dr_win joined | 08:22 |
| ← avinashhm left | 08:22 |
| ← avdg left | 08:23 |
| → rndbit joined | 08:24 |
| → vanmik joined | 08:25 |
| ← shiba_yu36 left | 08:25 |
| → jatt joined | 08:25 |
| → willvarfar joined | 08:26 |
| ← jawwad left | 08:27 |
| → RaceCondition joined | 08:28 |
|
willvarfar
| I am working in a branch; "git show-ref -s HEAD" gives the master head hash however; how do I get the hash of the current branch (which may or may not be master) | 08:29 |
|
| ? | 08:29 |
| ← jugg left | 08:29 |
| → avinashhm joined | 08:30 |
| → jawwad joined | 08:31 |
| → dpy joined | 08:32 |
|
selckin
| you know both hashes can be the same? | 08:32 |
|
willvarfar
| yeap | 08:33 |
|
| I want the hash that I'd get as a comment in git archive | 08:33 |
|
jast
| HEAD = whatever is currently checked out | 08:33 |
|
selckin
| show-ref --head HEAD, works for me | 08:33 |
| → d3vic3 joined | 08:33 |
|
jast
| it has nothing to do with master unless master is checked out | 08:33 |
|
strk
| it's broken here | 08:33 |
| ← roop left | 08:33 |
|
strk
| -s, --hash[=<n>] only show SHA1 hash using <n> digits | 08:33 |
| → snearch joined | 08:33 |
|
strk
| --hash=2 works; -s 2 doesn't | 08:33 |
|
jast
| well, yes | 08:34 |
|
willvarfar
| if you are on a branch, git show-ref HEAD seems to not show the current branch's hash for me | 08:34 |
|
jast
| hence the "-s, --hash[=<n>]", rather than "-s[ <n>], --hash[=<n>]" | 08:34 |
|
willvarfar
| git show-ref HEAD | 08:34 |
|
| 5ad7c90b19af703584ec6f55f6de1710b3d92525 refs/remotes/origin/HEAD | 08:34 |
| ← MissionCritical left | 08:35 |
|
willvarfar
| git show-ref | 08:35 |
|
| 5ad7c90b19af703584ec6f55f6de1710b3d92525 refs/heads/devel | 08:35 |
|
| a0426e7a03ecd6a8f0d91e758f9c65ff6a625e36 refs/heads/will_1 | 08:35 |
|
| I'm on will_1 | 08:35 |
|
strk
| jast: I don't get it... so what's -s supposed to do ? | 08:35 |
| ← avinashhm left | 08:35 |
|
jast
| strk: show only the SHA1 ID, don't include the ref name | 08:35 |
|
| as the manpage explains | 08:35 |
|
| quoting: "Only show the SHA1 hash, not the reference name." | 08:35 |
|
strk
| the help screen shouldn't put it on the same line as "using <n> digits" | 08:36 |
|
| but thanks :) | 08:36 |
|
willvarfar
| my show-ref lists all my branches etc as expected; if I ask it for HEAD, however, it's not returning just the head of the current branch | 08:36 |
|
jast
| it's the very first sentence in the description of the option, though | 08:36 |
| ← dr_ick left | 08:36 |
|
willvarfar
| ok coming at this another way, is there a way to get the name of my current branch? | 08:37 |
|
jast
| that's because show-ref accepts a pattern and displays everything that matches it | 08:37 |
|
strk
| the very first sentence is fine | 08:37 |
|
willvarfar
| (am writing a bash script) | 08:37 |
|
jast
| git symbolic-ref HEAD | 08:37 |
|
strk
| willvarfar: git branch | grep ^* ? | 08:37 |
|
| | something else to strip the * | 08:37 |
|
jast
| or just what I said :) | 08:38 |
|
willvarfar
| git show-ref -s `git symbolic-ref HEAD` works | 08:38 |
|
| now to get double `ticks into my bash script | 08:38 |
|
jast
| uhh | 08:38 |
|
| that's a bit verbose | 08:39 |
|
strk
| git show-ref --head -s HEAD | 08:39 |
|
jast
| you probably want: git rev-parse HEAD | 08:39 |
| → Spockz joined | 08:39 |
|
strk
| git show-ref git-svn # fine | 08:40 |
|
| git rev-parse git-svn # warning: refname 'git-svn' is ambiguous. | 08:40 |
|
| why ? | 08:40 |
|
jast
| I've already said it | 08:40 |
|
| show-ref shows all matches, rev-parse expects something that matches only one object | 08:41 |
|
strk
| but I don't find other matches for git-svn | 08:41 |
|
| ie: git show-ref | grep svn # single match | 08:41 |
| → achadwick joined | 08:41 |
|
jast
| then presumably there is something else that's called "git-svn" | 08:42 |
| → mastroWork joined | 08:42 |
|
strk
| how can I find out what ? | 08:43 |
| → shiba_yu36 joined | 08:44 |
|
strk
| seems to be a commit, which is not any ancestor of my HEAD | 08:44 |
| → curtana joined | 08:45 |
|
strk
| uhm, it is | 08:45 |
| ← Rotham left | 08:45 |
|
strk
| Apr 13, 74 commits ago | 08:45 |
| ← mastroDani left | 08:46 |
| ← boombatower left | 08:47 |
| → Rotham joined | 08:47 |
|
strk
| maybe .git/refs/remotes/git-svn | 08:47 |
|
| nope, that's the one I know about | 08:47 |
| → avinashhm joined | 08:48 |
| ← Luca_Peck left | 08:48 |
|
willvarfar
| my verbose thing works | 08:50 |
|
| git show-ref --head -s HEAD will list several because there are heads on all my branches | 08:50 |
|
| it happens that the first one is the current branch, but I don't want to get the results and try and get just the first line for my script | 08:51 |
| → _Ryth joined | 08:51 |
|
willvarfar
| git rev-parse HEAD looks right, thanks jast | 08:52 |
| → _pingu joined | 08:52 |
| ← willvarfar left | 08:52 |
| ← Ryth left | 08:53 |
| ← Zephyrus left | 08:53 |
| → sigh joined | 08:53 |
| → alextheger joined | 08:54 |
|
alextheger
| Hello there | 08:54 |
| → MissionCritical joined | 08:54 |
| ← Rotham left | 08:54 |
| ← _pingu left | 08:54 |
|
alextheger
| how can I use "git format-patch" to get patches for the hole repository. I'm especially interested in the first commit. git format-patch 00000 didn't work. | 08:55 |
|
FauxFaux
| You have a repository for tracking holes? | 08:55 |
|
jast
| alextheger: you'll need the --root option | 08:55 |
| ← msponge left | 08:56 |
|
jast
| e.g. git format-patch --root HEAD to get patches for everything on the current branch | 08:56 |
|
| or use the ID of the first commit to only get that | 08:57 |
|
alextheger
| jast: great. "git format-patch --root" works wonderful | 08:57 |
| ← Henrik_ left | 08:58 |
|
albel727
| why patches? why not git-bundle? | 08:58 |
| ← durre left | 08:59 |
| → larsl joined | 08:59 |
| ← lanthan left | 08:59 |
| ← lahwran left | 09:01 |
| ← kenyon left | 09:02 |
| → g0bl1n joined | 09:02 |
| ← ruskie left | 09:04 |
| → hyperboreean joined | 09:05 |
| → lahwran joined | 09:06 |
| → roop joined | 09:06 |
| ← DrNick left | 09:07 |
| → kenyon joined | 09:07 |
| → Behi joined | 09:07 |
| ← B2oba left | 09:08 |
| ← jds left | 09:12 |
| ← snearch left | 09:13 |
|
tsp
| How can I tag the current revision that I'm on, for example just before a git pull, so I can use it in operations? e.g. tag, git pull, git log tag..master, delete tag | 09:18 |
| ← alextheger left | 09:19 |
|
wereHamster
| tsp: git pull && git log @{1}.. | 09:19 |
| ← vanmik left | 09:19 |
|
wereHamster
| tsp: or: git remote update && git log ..@{u} | 09:19 |
| → DrNick joined | 09:19 |
|
tsp
| Where can I find documentation on these shortcuts? | 09:20 |
|
wereHamster
| tsp: man git-rev-parse | 09:20 |
|
jast
| tsp: [automatic message] the 'git-rev-parse' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-rev-parse.html | 09:20 |
|
tsp
| thanks | 09:20 |
| ← nevyn^ left | 09:20 |
|
wereHamster
| tsp: @{<number>} refers to the reflog (man git-reflog), @{u} is short for @{upstream} | 09:21 |
|
jast
| tsp: [automatic message] the 'git-reflog' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-reflog.html | 09:21 |
| → ruskie joined | 09:21 |
| ← namemon left | 09:21 |
| → namemon joined | 09:22 |
| ← resmo left | 09:22 |
| → resmo joined | 09:23 |
|
ludde
| how do I make a new local branch that automatically tracks the server so 'git push' works? | 09:24 |
| ← jawwad left | 09:25 |
| → nevyn^ joined | 09:26 |
|
wereHamster
| ludde: man git-push -> --set-upstream | 09:26 |
|
jast
| ludde: [automatic message] the 'git-push' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-push.html | 09:26 |
| → canton7 joined | 09:26 |
|
strk
| ludde: git branch localname remote/remotename | 09:26 |
|
ludde
| wereHamster: ok thanks | 09:27 |
| → jjido joined | 09:27 |
|
wereHamster
| oh, a new branch. checkout --track | 09:27 |
| → kalusn joined | 09:27 |
|
ludde
| wereHamster: the branch doesn't exist on the server yet, so 'git branch -t -b new_branchname' started tracking the repo itself. | 09:28 |
|
| and then weird things happened when i pushed | 09:28 |
| ← namemon left | 09:28 |
|
wereHamster
| weird as in .. ? | 09:29 |
| → xro joined | 09:30 |
|
jjido
| I am new to git. how do I tell it to use the latest revision of a file when rebase stops on a 3-way merge? | 09:30 |
|
wereHamster
| there is no 'latest'. There is only yours and theirs | 09:30 |
|
| which one do you want? | 09:30 |
|
xro
| Hi, is there a way to do a "git pull" but only for ONE folder? "select wich files to update" | 09:30 |
|
wereHamster
| xro: noonoooo | 09:30 |
|
| xro: sorry. Just no. | 09:31 |
|
jjido
| wereHamster: I don't want mine | 09:31 |
|
xro
| wereHamster, ok, so i have to update all my local repository? i cannot update just a part of it... boring | 09:31 |
| ← canton7 left | 09:32 |
|
cmn
| xro: you can update part of it, but you can't do a pull, because that's a merge | 09:33 |
|
| remember, pull is fetch+merge | 09:33 |
|
xro
| cmn, so i could only fetch a folder... git fetch folder name? | 09:34 |
|
cmn
| no, you have to fetch the whole thing | 09:34 |
| ← mklappstuhl left | 09:34 |
|
wereHamster
| jjido: checkout --ours gives you the file which is in the repo, checkout --theirs gives you the file from the patch that rebase is trying to apply | 09:34 |
|
xro
| cmn, ok.... i'll do it | 09:35 |
|
wereHamster
| xro: if you ever feel the need to clone only part of the repository, you should split the repository up into two or more repos | 09:35 |
|
xro
| wereHamster, yes... it could be a solution... | 09:35 |
| ← rndbit left | 09:35 |
| ← zhengyang left | 09:37 |
|
xro
| thanks for your help... have a nice day | 09:38 |
| ← xro left | 09:38 |
| ← d0k left | 09:41 |
|
ivan
| how do I use filter-branch to remove everything except for two files? | 09:42 |
| ← ebi left | 09:42 |
|
ivan
| can I use zsh's extendedglob? | 09:43 |
|
cmn
| c | 09:43 |
|
| sorry | 09:43 |
| ← caseymcg left | 09:44 |
| → ebi joined | 09:44 |
|
wereHamster
| ivan: I believe filter-branch uses `sh`. so if you've set up your computer so that sh is zsh, then it should work | 09:47 |
|
jjido
| after checkout --theirs, git tells me to do an add. I found I get an add/add conflict later, should I solve it the same way? (doing rebase) | 09:47 |
|
ivan
| wereHamster: thanks | 09:47 |
|
wereHamster
| jjido: yes | 09:48 |
|
jjido
| thanks | 09:48 |
| → workmad3 joined | 09:49 |
| → caseymcg joined | 09:54 |
| ← dpino left | 09:56 |
| ← jjido left | 09:58 |
| ← clever left | 10:00 |
| → fs-absynthe joined | 10:01 |
| ← strk left | 10:03 |
| ← dwmw2__ left | 10:04 |
| → eregon_ joined | 10:05 |
| ← fahadsadah left | 10:05 |
| ← lamont left | 10:05 |
| ← up_the_irons left | 10:05 |
| → dwmw2__ joined | 10:05 |
| → whyking joined | 10:05 |
| ← Neo left | 10:05 |
| ← ptl left | 10:05 |
| ← dsop left | 10:06 |
| ← milli left | 10:06 |
| ← madduck left | 10:06 |
| → up_the_irons joined | 10:06 |
| → dsop joined | 10:06 |
| ← silfreed_ left | 10:06 |
| → fahadsadah joined | 10:06 |
| ← darkskiez left | 10:06 |
| ← eregon left | 10:06 |
| → darkskiez joined | 10:06 |
|
iaj
| To exclude the folder yikes/ with all of its contents from the index... dont I just have to put yikes/ into .gitignore? | 10:06 |
| → silfreed joined | 10:07 |
| → madduck joined | 10:07 |
| → clever joined | 10:07 |
| ← fs-absynthe left | 10:07 |
|
wereHamster
| you do | 10:07 |
| → ptl joined | 10:07 |
| → milli joined | 10:08 |
| → jmkeyes joined | 10:08 |
| → lamont joined | 10:08 |
|
jmkeyes
| Hey, I've looked everywhere and can't figure this out: How can I recreate a tree object that was lost in a corrupted repository? | 10:08 |
|
wereHamster
| you restore it from backup | 10:09 |
| → Neo joined | 10:09 |
| → saschagehlich joined | 10:09 |
|
ndim
| Where the backup might be a remote clone. | 10:09 |
|
jmkeyes
| wereHamster: http://dpaste.com/539008/ | 10:09 |
|
iaj
| wereHamster; oh.. it was still in the index I had to git rm --cached firs.t | 10:10 |
| → tydeas joined | 10:10 |
|
tydeas
| I have `git add a_file` I have not commited yet and want to get this file out of the commit. How can i achieve this? | 10:10 |
|
jmkeyes
| That is what I get when I attempt to clone the repository. Can you tell me how to restore it from a backup? | 10:10 |
| ← kalusn left | 10:11 |
| ← Textmode left | 10:12 |
|
tydeas
| is the git rm --cached a_file correct? | 10:12 |
| ← caseymcg left | 10:13 |
| ← TrahDivad left | 10:14 |
| → boombatower joined | 10:15 |
| → TrahDivad joined | 10:15 |
| ← larsl left | 10:16 |
|
iaj
| tydeas; i think you need git reset HEAD a_file | 10:16 |
|
tydeas
| iaj: resolved thanks | 10:16 |
|
iaj
| it should say so when you do `git status` as well | 10:17 |
| → engla joined | 10:17 |
| ← sechrist left | 10:20 |
| → mastro joined | 10:20 |
| → mikelangelo joined | 10:22 |
| ← mastroWork left | 10:24 |
| → ReshadN joined | 10:25 |
| → sunnyohno joined | 10:26 |
| ← avinashhm left | 10:26 |
| ← ReshadN left | 10:26 |
|
jmkeyes
| wereHamster: How can I restore a tree from a backup? I've done 'git ls-tree -z $treeID | git mktree -z' which emitted the same tree ID again when it finished. The problem still exists. | 10:27 |
| ← xiangfu left | 10:29 |
| ← RaceCondition left | 10:31 |
| → arunce joined | 10:34 |
| → seivan joined | 10:35 |
| → rndbit joined | 10:35 |
| ← rndbit left | 10:35 |
| ← saschagehlich left | 10:35 |
| → rndbit joined | 10:36 |
| → saschagehlich joined | 10:36 |
| ← genbattle left | 10:37 |
| → marcob joined | 10:37 |
| → alextheger joined | 10:38 |
| → NoNoNo joined | 10:40 |
| ChanServ set mode: +v | 10:42 |
|
NoNoNo
| Hi! is it possible in "git diff" to highlight inserted text in a changed line? (some kind of "sub line diff") | 10:42 |
|
FauxFaux
| NoNoNo: man git diff --word-diff | 10:43 |
|
jast
| NoNoNo: [automatic message] the 'git-diff' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-diff.html | 10:43 |
| ← seivan left | 10:45 |
| → seivan joined | 10:45 |
| ← JEEB left | 10:48 |
| ← ISF left | 10:50 |
| → avinashhm joined | 10:50 |
|
NoNoNo
| when I run 'git rebase -i --autosquash HEAD~6' with 'git version 1.7.5.70.g0b9dee', | 10:54 |
|
| how can there be a line 'pick 697b7a6 fixup!' instead of 'fixup 697b7a6 fixup! '? | 10:54 |
| ← dyer_out left | 10:55 |
| ← seivan left | 10:55 |
|
FauxFaux
| NoNoNo: I haevn't used fixup and the manpage isn't clear; does it only work if the commit message is the same, like squash!? | 10:56 |
| → dyer_out joined | 10:56 |
| → NotTooDumb3 joined | 10:56 |
|
NoNoNo
| I read about it on <http://technosorcery.net/2010/02/07/fun_with_the_upcoming_1.7_release_of_git_rebase_--interactive_--autosquash.html> | 10:57 |
| → gonemad3 joined | 10:58 |
|
FauxFaux
| Thanks for linking me to a non-canonical piece of documentation for something either of us could have tried in 30 seconds! | 10:58 |
| gonemad3 → workmad3_ | 10:58 |
| workmad3_ → workmad3__ | 10:58 |
| ← workmad3 left | 10:58 |
| workmad3__ → workmad3 | 10:58 |
|
NoNoNo
| http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html | 10:59 |
|
FauxFaux
| Nice.05/11:56:16 < FauxFaux> NoNoNo: I haevn't used fixup and the manpage isn't clear; does it only work if the commit message is the same, like squash!? | 10:59 |
|
| -Nice. | 10:59 |
|
NoNoNo
| ?? | 10:59 |
| → Fuu joined | 10:59 |
| → Kulrak joined | 11:00 |
| ← Kulrak left | 11:00 |
| → Kulrak joined | 11:00 |
| → ixti joined | 11:02 |
|
NoNoNo
| Sarcasm over IRC doesn't work well | 11:03 |
| ← jmkeyes left | 11:03 |
|
wereHamster
| no? | 11:04 |
| ← Behi left | 11:05 |
| → JEEB joined | 11:05 |
| → paeva joined | 11:05 |
| → canton7 joined | 11:06 |
| → brian_g joined | 11:08 |
|
cbreak_work
| NoNoNo: it totally does... | 11:09 |
| → _johnny joined | 11:09 |
| ← envi left | 11:11 |
| → envi joined | 11:11 |
| → Dave^| joined | 11:11 |
| ← madsy left | 11:13 |
| ← alextheger left | 11:14 |
| → dyer_ joined | 11:16 |
| ← dyer_ left | 11:16 |
| → dyer_ joined | 11:16 |
| ← dyer_out left | 11:20 |
| ← cooloney left | 11:20 |
| → oriba joined | 11:25 |
| → urkud joined | 11:26 |
| ← oriba left | 11:26 |
| ← mikelangelo left | 11:27 |
| ← NoNoNo left | 11:28 |
| → mikelangelo joined | 11:28 |
| → NoNoNo joined | 11:28 |
| ← ph^_ left | 11:29 |
| ← dim_ left | 11:30 |
| → lanthan joined | 11:31 |
| ← arunce left | 11:32 |
| → RaceCondition joined | 11:33 |
| ← jmcantrell left | 11:34 |
| depressed → dr0id | 11:34 |
| → lmcdowell joined | 11:35 |
| → rendar joined | 11:35 |
| → soc42 joined | 11:35 |
| ← RaceCondition left | 11:36 |
| ← amirite left | 11:38 |
| → chombee joined | 11:41 |
| → schweizer joined | 11:41 |
|
schweizer
| hi folks | 11:41 |
| → xshyamx joined | 11:41 |
| → jitesh_shetty joined | 11:41 |
|
schweizer
| how can i set my working dir back to a certain revision? | 11:41 |
| → namemon joined | 11:41 |
|
mjt
| checkout? | 11:42 |
| ← sebbi left | 11:43 |
| → sebbi joined | 11:44 |
|
schweizer
| mjt: git checkout HASH does not work | 11:44 |
|
cbreak_work
| it does | 11:44 |
|
| but it will detach your head | 11:45 |
|
| so don't commit anything in that state | 11:45 |
| ← sebbi left | 11:45 |
|
wereHamster
| ach die schweizer... | 11:45 |
|
cbreak_work
| wir sind ganz liebe | 11:45 |
|
engla
| it will detach your head! pretty dangerous stuff | 11:46 |
|
wereHamster
| I know. I have to deal with you every day :) | 11:46 |
| → falican joined | 11:46 |
|
wereHamster
| (you = die schweizer) | 11:46 |
|
engla
| especially on case-insensitive filesystems | 11:46 |
| → bracki joined | 11:47 |
|
cbreak_work
| I don't think the filesystem makes things worse | 11:47 |
|
| in this context | 11:47 |
| ← banisterfiend left | 11:47 |
| → Titosemi1 joined | 11:48 |
|
engla
| git only detaches head on caseinsensitive filesystems | 11:48 |
|
thm
| woot? | 11:48 |
| ← hyperair left | 11:48 |
|
cbreak_work
| there's no reason to yell here | 11:48 |
|
engla
| there's a big difference between losing your HEAD and losing your head, to me | 11:49 |
| ← Titosemi left | 11:49 |
|
thm
| ah that was intended to be funny. | 11:49 |
| → banisterfiend joined | 11:49 |
| ← NotTooDumb3 left | 11:50 |
|
wereHamster
| which brings us aback to what nonono said a while back: Sarcasm over IRC doesn't work well :) | 11:50 |
| → gonemad3 joined | 11:50 |
|
engla
| I guess it doesn't | 11:51 |
| Titosemi1 → Titosemi | 11:51 |
|
engla
| imagine git newbs reacting to "but it will detach your head" | 11:51 |
|
thm
| and that is better,m if you SHOUT it? | 11:51 |
|
albel727
| lol | 11:52 |
| ← workmad3 left | 11:52 |
|
engla
| it's not shouting when that's the proper spelling | 11:52 |
|
| like USA | 11:52 |
|
thm
| ah right, much shouting there, too. | 11:52 |
| ← urkud left | 11:52 |
|
albel727
| lol | 11:52 |
|
engla
| exactly what I was saying | 11:52 |
|
cbreak_work
| I don't think the usa cares if they are yelled or spoken. | 11:53 |
| ← hvgotcodes left | 11:53 |
| → tatsuya joined | 11:53 |
|
engla
| maybe a newcomer will be even more scared to have the detached HEAD thing shouted at him/her | 11:53 |
|
cbreak_work
| that's a good point. | 11:54 |
|
| let's scare people away from doing suicidal stuff, until we run out of work :) | 11:54 |
|
thm
| the git boot camp. | 11:54 |
| ← canton7 left | 11:55 |
| → sebbi joined | 11:55 |
|
albel727
| yeah, because we all know, that git should be extinct and superceded by other better vcs-s, like mercurial. at least mercurial doesn't make people shout "DETACHED HEAD" at strangers. </troll> | 11:56 |
| ← mikelangelo left | 11:56 |
|
thm
| or monotone, which git stole its core ideas from anyway. | 11:57 |
|
engla
| Hg is poisonous | 11:57 |
|
cbreak_work
| and compared to git, it's not solid at all | 11:58 |
|
albel727
| it's better to die rather than to shout about various detached organs for the rest of your life, don't you think? | 11:58 |
| gonemad3 → workmad3 | 11:58 |
| → gnufied joined | 11:58 |
| → gnufied_ joined | 11:58 |
|
engla
| cbreak_work: I heard it's pretty mercurial in its operation | 11:58 |
|
thm
| can sb help me with cgit here? | 11:59 |
|
cbreak_work
| is that some kind of git fork? | 11:59 |
| ← ormaaj left | 11:59 |
|
thm
| no, a web frontend | 11:59 |
| → sproaty joined | 12:00 |
|
sproaty
| how can I request push access | 12:00 |
|
wereHamster
| sproaty: to where? | 12:01 |
| → ph^ joined | 12:01 |
|
cbreak_work
| ask the person that controls the repository | 12:01 |
|
wereHamster
| sproaty: usually you ask the repository owner or admin. | 12:01 |
|
sproaty
| fair enough | 12:01 |
|
| thought there'd be some request button on the site | 12:01 |
| → urkud joined | 12:02 |
|
cbreak_work
| site? | 12:02 |
|
wereHamster
| there is none on my site... | 12:02 |
| → RaceCondition joined | 12:03 |
| → ningia joined | 12:03 |
|
sproaty
| on here sorry https://github.com/happygiraffe/jslint4java | 12:03 |
|
| my bad, I'm being awfully vague :p | 12:04 |
| → ormaaj joined | 12:04 |
|
wereHamster
| sproaty: make a fork and then send back a pull request. You don't need access to his repo | 12:04 |
|
engla
| in fact, you're not likely to ever get it (or need it) | 12:04 |
|
sproaty
| good thinking | 12:05 |
|
| I've yet to play around with git much so I'm a little lost, thanks | 12:05 |
| ← ph^ left | 12:05 |
| ← stliu left | 12:06 |
| → mikelangelo joined | 12:07 |
|
wereHamster
| sproaty: read a tutorial. | 12:07 |
| → bsod1 joined | 12:07 |
| ← dyer_ left | 12:08 |
| ← bsod1 left | 12:13 |
| ← drubies left | 12:14 |
| ← RaceCondition left | 12:14 |
| ← TrahDivad left | 12:15 |
| → vdv joined | 12:16 |
| → Juo joined | 12:17 |
| → Wizek joined | 12:20 |
| ← hubertchang left | 12:24 |
| → bartek joined | 12:24 |
|
bartek
| Hi. What is the purpose of tagging outside of adding relevant snippets to points in your commit log? Can I create a tag and then check out that tag specifically? | 12:25 |
|
cbreak_work
| yes | 12:26 |
|
| or you can use it for diffing | 12:26 |
|
| git describe can use tags for version name generation | 12:26 |
|
| you can use it as base for rebasing | 12:26 |
| ← _Ryth left | 12:27 |
|
bartek
| Great, good to know. thanks! | 12:27 |
| ← urkud left | 12:28 |
|
Rhonda
| Well, you can check out any commit nevertheless. | 12:29 |
|
| See a tag as a symbolic name for a commitish, just like a domain name points to an IP address. ;) | 12:29 |
|
bartek
| Right, an easy way to identify a point in history | 12:29 |
| → jsick3 joined | 12:29 |
| → shiba_yu_ joined | 12:30 |
|
Rhonda
| But you can also leave a message with the tag. | 12:30 |
|
| Rhonda . o O ( leave a message after the tag. *tag* ) | 12:30 |
| ← shiba_yu36 left | 12:32 |
| → mklappstuhl joined | 12:32 |
| → shiba_yu36 joined | 12:33 |
| ← shiba_yu_ left | 12:33 |
| → gusnan joined | 12:34 |
| ivey_off → ivey | 12:35 |
| → jrabbit joined | 12:35 |
| → urkud joined | 12:36 |
| ← mklappstuhl left | 12:38 |
| → canton7 joined | 12:39 |
| → TeckniX joined | 12:41 |
| → mklappstuhl joined | 12:41 |
| → fs-absynthe joined | 12:41 |
| ← frerich left | 12:42 |
| → frerich joined | 12:42 |
| ← frerich left | 12:42 |
| → frerich joined | 12:42 |
|
cmyers
| BAM! | 12:43 |
|
| java -jar jgit-cli.jar describe => v0.11.3-241-gd65553e | 12:43 |
|
| and it only takes 50x longer to run! =) | 12:43 |
| ← canton7 left | 12:44 |
| → envi_ joined | 12:44 |
| → whyking_ joined | 12:45 |
| ← whyking left | 12:45 |
| ← bazz left | 12:45 |
| ← urkud left | 12:45 |
| → [intra]lanman joined | 12:46 |
| → drubies joined | 12:46 |
| ← NetHawk left | 12:46 |
| → NetHawk joined | 12:47 |
| yaotti_aw → yaotti | 12:47 |
|
cbreak_work
| cmyers: normal git ftw | 12:47 |
| ← mastro left | 12:48 |
| ← envi left | 12:48 |
| → Sembiance joined | 12:48 |
| → dyer_out joined | 12:49 |
|
Sembiance
| Hello :) So I branched from master to a new feature branch. I've been working on it. Meanwhile someone else just merged a bunch of changes into master. I have more work to do on my branch, but I'd like to merge master into my branch so I can do the cleanupwork now before doing more work, and then later after I'm done merge my branch back into master. | 12:49 |
| ← Niedar left | 12:49 |
|
Sembiance
| Is there any problem with this approach? | 12:49 |
| → JP-Dery joined | 12:49 |
|
Sembiance
| It sounds sane to me :) | 12:49 |
| ← silfreed left | 12:50 |
| → bushwakko joined | 12:50 |
| ← _Qman left | 12:50 |
| ← Fuu left | 12:50 |
| → silfreed joined | 12:50 |
|
cmn
| Sembiance: that's pretty much the way it's meant to be done | 12:51 |
| → Guedes joined | 12:51 |
| → Fuu joined | 12:51 |
|
Sembiance
| cmn: awesome! thanks :) | 12:51 |
| → Niedar joined | 12:51 |
| → mastro joined | 12:52 |
| ← erichammond left | 12:52 |
| → erichammond joined | 12:52 |
| ← workmad3 left | 12:53 |
| ← shiba_yu36 left | 12:53 |
| ← chombee left | 12:53 |
| ← mklappstuhl left | 12:53 |
|
Guedes
| i've cherry-picked some specifics commits from branchA to branchB, branchC , branchD and branchE randomly. now i want to knows on which branch some commit is... since SHA1 changes i can't (?) use git branch --contains SHA1 ... there is other way? | 12:53 |
| → zhengyang joined | 12:54 |
| → Vadtec joined | 12:54 |
| → CannedCorn joined | 12:56 |
| → workmad3 joined | 12:56 |
|
zomg
| Argh :( | 12:56 |
| → cschneid joined | 12:56 |
|
zomg
| Battling with this damn index pack failed error again | 12:56 |
|
Vadtec
| I know this is frowned upon, but I'm the only developer using this particular repo, so...25 commits ago, I inadvertantly added a HUGE directory to my repo that isnt necessary. I need to remove it from the repo history, because its making the repo size much to big, and it exists in another repo. Im not familiar with git-rebase, can anyone offer some help? | 12:56 |
| → shiba_yu36 joined | 12:56 |
|
zomg
| How is it possible that fetching fails but cloning works just fine.. | 12:56 |
|
Rhonda
| Sembiance: Some prefer rebase to merge, but that only works out if your feature branch is local only | 12:56 |
| → Dr4g joined | 12:57 |
|
Rhonda
| Vadtec: I think that's more a job for git filter-branch instead | 12:57 |
| ← Dr4g left | 12:57 |
| → Dr4g joined | 12:57 |
|
Vadtec
| Rhonda: thanks, ill look there | 12:57 |
|
Dr4g
| I got some files that have changes but i want to disgard these changes. - How can i achieve this ?a | 12:57 |
|
| I want to switch branch and want a clean slate, i don't want to take the changes with me. | 12:58 |
|
Rhonda
| Dr4g: See the hint in "git status". | 12:58 |
|
[exa]
| Vadtec: you need to rewrite history. You can either a] reset branches so that they don't reference the commit and GC the repository afterwards, or b] use git-filter-branch to remove any additions to that directory | 12:58 |
|
| I'd go with b]. | 12:58 |
|
Dr4g
| Rhonda: i'm looking at it, what are you hinting | 12:58 |
|
Vadtec
| [exa]: git-filter-branch sounds like what i need | 12:58 |
|
Rhonda
| Dr4g: The git checkout HEAD -- path thing. | 12:59 |
| → snearch joined | 12:59 |
| ← erichammond left | 12:59 |
| ← jitesh_shetty left | 12:59 |
| → erichammond joined | 12:59 |
|
Dr4g
| excellent Rhonda thanks | 12:59 |
|
Rhonda
| Hmm, wait, that's for unstaging changes, not throwing them away. | 13:00 |
|
| But git checkout file should do the trick nevertheless. | 13:00 |
| ← orafu left | 13:00 |
|
| Vadtec makes an entire copy of the repo for backup just incase he royally SNAFUs | 13:03 |
| → Vile joined | 13:03 |
| ← shiba_yu36 left | 13:03 |
| → bsod1 joined | 13:03 |
| ← erichammond left | 13:04 |
|
bsod1
| I added some files with git -A accidentally, now how can I remove them? | 13:04 |
| → erichammond joined | 13:04 |
| → mklappstuhl joined | 13:05 |
| ← crashanddie left | 13:05 |
| → bkozal joined | 13:06 |
| → xiangfu joined | 13:06 |
|
FauxFaux
| bsod1: git status tells you how. | 13:07 |
|
bsod1
| FauxFaux, it says "nothing to commit" | 13:08 |
| ← albel727 left | 13:08 |
| ← zhengyang left | 13:08 |
|
FauxFaux
| Well, you haven't added any files with add -A, then, congrats. | 13:08 |
| → zhengyang joined | 13:08 |
| → orafu joined | 13:09 |
| → Prism joined | 13:09 |
| ← paeva left | 13:09 |
| → simplechat joined | 13:10 |
| ← simplechat left | 13:10 |
| → simplechat joined | 13:10 |
| → albel727 joined | 13:11 |
| ← mklappstuhl left | 13:11 |
| → v0n joined | 13:11 |
| yaotti → yaotti_aw | 13:12 |
| ← xiangfu left | 13:12 |
| → jonatasnona joined | 13:13 |
| → petrux joined | 13:13 |
| → hvgotcodes joined | 13:13 |
| → shiba_yu36 joined | 13:13 |
| → lolfrenz joined | 13:14 |
| ← shevy left | 13:14 |
| ← dwmw2__ left | 13:14 |
| → keystr0k joined | 13:14 |
| ← CannedCorn left | 13:15 |
|
Vadtec
| Rhonda: hrm...i did git-filter-branch, but I still see the directory listed in the branch history | 13:15 |
| ← sunnyohno left | 13:17 |
| → crashanddie joined | 13:17 |
| ← crashanddie left | 13:17 |
| → crashanddie joined | 13:17 |
| → dv310p3r joined | 13:17 |
|
Rhonda
| Maybe you fumbled with the syntax? | 13:18 |
| → sunnyohno joined | 13:18 |
| → bibinou joined | 13:18 |
| ← TLMonitor left | 13:19 |
|
Vadtec
| Rhonda: git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch bin-img' bad-img | 13:19 |
|
| got the syntax from the man page | 13:19 |
|
| hmmm.... | 13:21 |
| → leitao joined | 13:21 |
| ← jonatasnona left | 13:21 |
|
Vadtec
| think i know what it was | 13:21 |
| → emf^ joined | 13:21 |
| ← glcrazy left | 13:22 |
| → Ryback_ joined | 13:22 |
| ← Ryback_ left | 13:22 |
| → Ryback_ joined | 13:22 |
|
Vadtec
| instead of giving the tag i created for the bad commit, i needed to give HEAD for the starting point | 13:23 |
|
| now its removed | 13:23 |
|
| :D | 13:23 |
| → xiangfu joined | 13:23 |
|
Rhonda
| :) | 13:23 |
|
| You need to git gc it to make it really disappear from your objects. | 13:23 |
| ← mastro left | 13:23 |
|
Vadtec
| yeah | 13:23 |
|
| just read that | 13:23 |
|
Rhonda
| Potential with --prune=now or something like that. | 13:24 |
|
Vadtec
| yeah, man pages ftw :D | 13:24 |
| rob_w → rob_w_away | 13:24 |
| ← erichammond left | 13:25 |
| → erichammond joined | 13:25 |
| → shevy joined | 13:26 |
| ← sigh left | 13:26 |
| → seivan joined | 13:27 |
| → AkumaStreak joined | 13:27 |
| ← workmad3 left | 13:27 |
| ← harshu_ left | 13:27 |
| ← bkozal left | 13:30 |
| → __sorin__ joined | 13:30 |
| → lb joined | 13:30 |
| ← LuckyNeo left | 13:31 |
|
Vadtec
| hmmm, now i just have to figure out how to git rid of this one tag that was branched off during this filter-branch and ill be good to go | 13:31 |
| → jonpacker joined | 13:32 |
| ← madewokherd left | 13:33 |
| → deekayen joined | 13:34 |
| ← deekayen left | 13:34 |
| → deekayen joined | 13:34 |
| ← seivan left | 13:34 |
| → bryanl joined | 13:34 |
|
Vadtec
| or...better idea...restore the backup, and do things one at a time | 13:34 |
| ← tydeas left | 13:34 |
| → jfkw joined | 13:35 |
| ← albel727 left | 13:36 |
| → jelmer joined | 13:36 |
| ← jelmer left | 13:36 |
| → jelmer joined | 13:36 |
| ← erichammond left | 13:37 |
| → erichammond joined | 13:37 |
| ← konr left | 13:38 |
| → jonatasnona joined | 13:38 |
| ← sonnym left | 13:39 |
| → albel727 joined | 13:39 |
| ← frerich left | 13:39 |
| → ymasory_ joined | 13:40 |
| ← ymasory left | 13:41 |
| → m_3 joined | 13:41 |
| ymasory_ → ymasory | 13:41 |
| ← shiba_yu36 left | 13:42 |
| → dajhorn joined | 13:42 |
| → shiba_yu36 joined | 13:42 |
| → Freakshow joined | 13:42 |
| → TheWarden joined | 13:42 |
| ← sunnyohno left | 13:43 |
|
TheWarden
| Hi, I'm a newbie to using Git. I installed gitcore and gitweb packages for debian. Now I'm confused how to create a repository that can be accessible remotely in NetBeans v7. In NetBeans I have Git plugin installed. | 13:44 |
|
| Can anyone direct me? | 13:44 |
| → glcrazy joined | 13:44 |
|
nevyn
| TheWarden: have you used any DVCS before? | 13:46 |
| → frerich joined | 13:47 |
| ← frerich left | 13:47 |
| → frerich joined | 13:47 |
| ← giallu left | 13:47 |
| ← albel727 left | 13:47 |
|
SethRobertson
| TheWarden: The GitPro book is very good !book | 13:48 |
|
jast
| TheWarden: [automatic message] 'Pro Git' is a complete book about git that is available online for free: http://progit.org/book/ | 13:48 |
| ← ixti left | 13:48 |
| → tstclair joined | 13:48 |
|
SethRobertson
| TheWarden: You need to pick a server to store the git location. It can be on an ssh accessible system, or perhaps on GitHub or another git hosting provider | 13:49 |
|
| s/git location/git repository/ | 13:49 |
| ← jonpacker left | 13:49 |
| → seivan joined | 13:49 |
| → mrball joined | 13:50 |
| → jonpacker joined | 13:50 |
|
TheWarden
| SethRobertson: oh cool, I'll check out that book. Thanks. I have Git installed already along with gitweb (web interface just for those non-git users to browse). | 13:50 |
| ← dr0id left | 13:51 |
| ← soc42 left | 13:51 |
| → soc42 joined | 13:51 |
| ← Niedar left | 13:51 |
| ← jonpacker left | 13:51 |
| → jonpacker joined | 13:52 |
| → albel727 joined | 13:52 |
| ← ExtraSpice left | 13:52 |
| ← jonpacker left | 13:52 |
| ← mikl left | 13:54 |
| ← EricInBNE left | 13:54 |
| → madsy joined | 13:54 |
| ← madsy left | 13:54 |
| → madsy joined | 13:54 |
| ← v0n left | 13:54 |
| → TomyLobo joined | 13:55 |
|
TomyLobo
| hi | 13:55 |
|
FauxFaux
| I've seen you in enough channels enough times that, by now, you must know how rude that is, TomyLobo. | 13:56 |
|
TomyLobo
| what, saying hi? | 13:56 |
| ← petrux left | 13:56 |
| yaotti_aw → yaotti | 13:56 |
| ← erichammond left | 13:57 |
|
TomyLobo
| i only say that when i join a channel and want to ask a question right as the first thing :) | 13:57 |
|
| anyway. it's kind of a silly question, with no real implications or anything: | 13:58 |
| → sheikra joined | 13:58 |
|
TomyLobo
| what happens if there is ever a revision of something with the hash 000000...? would that confuse only the users or also git itself? | 13:58 |
| ← noonoooo left | 13:58 |
| → canton7 joined | 13:58 |
|
sheikra
| hello. Is there a way to push an existing git repository to another server? | 13:58 |
|
TomyLobo
| since i see git using 000000 to denote a non-existant file | 13:58 |
|
| sheikra sure, just add the other server as a remote, then push it there | 13:59 |
|
| git remote --help && git push --help | 13:59 |
| → jjido joined | 13:59 |
|
sheikra
| TomyLobo: It says "No refs in common and none specified; doing nothing." | 13:59 |
|
TomyLobo
| sheikra what says that? | 13:59 |
|
sheikra
| TomyLobo: git push ... | 14:00 |
|
TomyLobo
| git push what? | 14:00 |
|
| just git push? | 14:00 |
|
sheikra
| TomyLobo: oh ,,, got it | 14:00 |
|
| TomyLobo: I didn't put "master" in the end | 14:00 |
|
TomyLobo
| i think it's git push local_branch remote_repository_name:remote_branch | 14:01 |
|
cmn
| no | 14:01 |
|
lb
| TomyLobo: just the other way round | 14:01 |
| → tearsong joined | 14:01 |
|
cmn
| gt push repository local-branch:remote-branch | 14:01 |
|
lb
| git push remote_repo local_branch:remote_branch | 14:01 |
| ← savoxis left | 14:01 |
|
lb
| damn cmn :) | 14:02 |
|
sheikra
| got it .. I didn't put the branch name | 14:02 |
|
jjido
| I am running git 1.7.5 on Mac. I get Authorization failed when I run git svn dcommit. the error is at line 4459, which is a call to $opts->{ra}->get_commit_editor. Any suggestion? | 14:02 |
|
cmn
| lb: I made a typo, so I didn't really win :) | 14:02 |
|
lb
| cmn: strike! | 14:02 |
|
TomyLobo
| yeah i didnt do it in a while | 14:02 |
| ← soc42 left | 14:02 |
|
cmn
| sheikra: if you don't specify any branches, git will push any common ones | 14:02 |
|
TomyLobo
| that's why i pointed sheikra to the manual :) | 14:03 |
|
nevyn
| TheWarden: | 14:03 |
|
TheWarden
| nevyn: yes | 14:03 |
| → giallu joined | 14:03 |
|
Vadtec
| now for the fun part...git push --force so I can update my remote storage repo, weeee! | 14:04 |
|
nevyn
| so netbeans has made a git repo and converted it's own project directory into a git repo as I understand that page. | 14:04 |
| → noonoooo joined | 14:04 |
|
nevyn
| TheWarden: what platform are you running netbeans on? | 14:04 |
|
| Vadtec makes one more backup....just in case | 14:04 |
|
TheWarden
| nevyn: mmm I think I found all the options now. I right clicked on my project and clicked connect then I got a whole bunch of icons beside my files/directories... mm | 14:04 |
|
| nevyn: Windows 7 for now but I do have NetBeans on Debian too. | 14:05 |
| → n8o-mba joined | 14:05 |
|
g0bl1n
| I've done "git add ." but there are files I don't want to commit. How can I do this ? | 14:06 |
| ← joel_falcou left | 14:06 |
| → dwmw2_gone_ joined | 14:06 |
|
selckin
| read git status output | 14:06 |
|
g0bl1n
| selckin, yes, they are there | 14:07 |
|
selckin
| no read it. | 14:07 |
| ← dajhorn left | 14:07 |
|
g0bl1n
| git clean ? | 14:07 |
|
fairuz
| git checkout | 14:08 |
| → md-2 joined | 14:08 |
|
fairuz
| git checkout <file> | 14:08 |
|
g0bl1n
| or git -rm ? | 14:08 |
| → mastroDani joined | 14:08 |
|
sheikra
| TomyLobo: that problem solved, but another one prevented me from push | 14:08 |
|
| By default, updating the current branch in a non-bare repository | 14:08 |
|
FauxFaux
| g0bl1n: git status tells you. | 14:08 |
|
sheikra
| is denied, because it will make the index and work tree inconsist ... | 14:08 |
| → jitesh_shetty joined | 14:08 |
|
FauxFaux
| g0bl1n: git status tells you. | 14:08 |
|
PerlJam
| g0bl1n: "unstage" means "don't commit" | 14:09 |
| → dajhorn joined | 14:09 |
|
g0bl1n
| ok, thanks | 14:09 |
| ← jfkw left | 14:10 |
|
g0bl1n
| git reset HEAD <file> thanks | 14:10 |
| → jophish joined | 14:10 |
| ← lectrick left | 14:12 |
| ← Error404NotFound left | 14:12 |
| ← jophish___ left | 14:12 |
| ← aangel left | 14:13 |
| ← roop left | 14:14 |
|
FauxFaux
| TomyLobo: I didn't see anyone answer your question; if a commit has a hash of 40 0s then it'd probably confuse git, but the chances are about 1-in-2^128, which is pretty low. ;) If you mean 6 or 8 0s, try it: http://blog.prelode.com/2010/12/git-set-commit-id/ | 14:14 |
| q0rban|afk → q0rban | 14:14 |
| ← sproaty left | 14:15 |
|
Vadtec
| just an FYI to all: if you do a git filter-branch and have tags that are going to get filtered, you will end up with a branch containing those tags, you might want to remove the tags, do your filter-branch, then create the tags again | 14:15 |
| → tanuki_ joined | 14:15 |
| → babilen joined | 14:16 |
|
TomyLobo
| FauxFaux i think that only creates alias ids | 14:16 |
|
engla
| FauxFaux: :-) | 14:17 |
|
| TomyLobo: nope | 14:17 |
|
TomyLobo
| how does it work? extra files? | 14:17 |
|
sheikra
| Hmm... why can't I see the files after a successful push? | 14:17 |
|
engla
| TomyLobo: it's "rerolling" the commit until the desired hash prefix is found. How, I don't know | 14:18 |
|
FauxFaux
| It appends whitespace to the commit message. | 14:18 |
| ← n8o-mba left | 14:18 |
| → joshteam joined | 14:18 |
| → Dynetrekk joined | 14:18 |
|
TomyLobo
| lol | 14:18 |
| → mdel joined | 14:19 |
| ← bushwakko left | 14:19 |
| ← whyking_ left | 14:19 |
|
Dynetrekk
| hi, I'm relatively new at git and I would like to try github. However, I can't find the 'create repository' thingy. where is it? (I just have a "free" account) | 14:20 |
|
engla
| Dynetrekk: "New Repository" on the right-hand side of github.com when logged in? | 14:21 |
|
fairuz
| Dynetrekk: https://github.com/repositories/new | 14:21 |
| ← avinashhm left | 14:21 |
|
sheikra
| Any ideas whether I can delete my repositories from github? | 14:21 |
| → tty1 joined | 14:22 |
|
Dynetrekk
| heh, funny, I've been looking and I can't find it... | 14:22 |
|
TomyLobo
| FauxFaux oh, you made that :D | 14:22 |
|
fairuz
| sheikra: of course you can | 14:22 |
|
Dynetrekk
| ah, I had a lot of "you are new here" junk hiding it :P | 14:22 |
|
sheikra
| fairuz: I tried to find it, but .. | 14:23 |
|
engla
| sheikra: 'Admin' button on your repo's home view | 14:23 |
| ← albel727 left | 14:23 |
|
fairuz
| sheikra: admin, then choose Delete Repo | 14:23 |
|
| sheikra: Dynetrekk: http://help.github.com/ make this your friend =) | 14:24 |
| → Error404NotFound joined | 14:24 |
| ← Vadtec left | 14:25 |
| ← jjido left | 14:25 |
| → blorbx joined | 14:26 |
|
sheikra
| I found it . thanks | 14:26 |
| → jjido joined | 14:26 |
| → tydeas joined | 14:26 |
|
tydeas
| how can i add a dir to the repository but gitignore it's content ? | 14:27 |
| → ShooterMG joined | 14:27 |
|
avar
| add a .gitignore with * in it to the dir | 14:27 |
| → kukks joined | 14:28 |
|
avar
| but why the hell would you want to do that? | 14:28 |
|
fairuz
| :D | 14:28 |
| → etcetera joined | 14:28 |
| → PabloM joined | 14:28 |
| yaotti → yaotti_aw | 14:28 |
|
canton7
| tydeas, you can't. git tracks files, not folders. if you're not tracking any files in the folder, git won't track the folder | 14:28 |
| yaotti_aw → yaotti | 14:29 |
|
tydeas
| canton7: so i can not have an empty folder ? | 14:29 |
|
canton7
| tydeas, can't track an empty folder, no | 14:29 |
|
tydeas
| it's a spool folder | 14:29 |
|
| see | 14:29 |
|
cmn
| tydeas: you can if you /really/ want to, put a .gitignore file in it and track it | 14:29 |
|
canton7
| cmn, point. you see a lot of .empty files in otherwise-empty folders, too | 14:29 |
|
tydeas
| cmn: what will this gitignore content be? | 14:29 |
|
cmn
| it doesn't matter | 14:30 |
|
canton7
| tydeas, can leave it empty if you want | 14:30 |
|
cmn
| or put * | 14:30 |
| → sonnym joined | 14:30 |
|
_johnny
| hi, not *really* a git question, but i hope one of you might be able to help me. i've edited motd for my (ssh) box, and it looks like it's suppose to when i ssh into it, however, when i use my git user (which i've set to git-shell - hence the relevance for this channel, heh) i get the motd *plus* "The programs included with ... NO WARRANTY" rubbish also, and then finally the only message i'm interested in "what do you think i am? a shell". anyone know | 14:30 |
| → Corren joined | 14:30 |
| ← opalka left | 14:31 |
|
_johnny
| as in, do i need to mod the git-shell binary? | 14:31 |
| ← lb left | 14:32 |
|
cmn
| _johnny: git-shell isn't meant to be used as an interactive shell, I think | 14:32 |
|
| what do you want to accomplish? | 14:32 |
|
_johnny
| oh, right. i appologize. i know. i just connect through ssh to it to make sure the git user can't do anything | 14:33 |
|
| what i want is for it just to reply with what do you think i am bla bla, and then quit | 14:33 |
| ← kukks left | 14:34 |
|
_johnny
| not tell the git user about some no warrranty OS stuff | 14:34 |
|
| if i ssh to a user which has bash it's not displayed, so i'm just wondering if git-shell is the one retreiving this info | 14:34 |
| → rayners joined | 14:35 |
| → mastroWork joined | 14:36 |
|
cmn
| the no warranty thing may be in /etc/issue.net | 14:36 |
|
| but I think either ssh or login print it out | 14:36 |
|
tydeas
| cmn: .empty means something to git or it's just a self-explained name ? | 14:36 |
| → mikl joined | 14:36 |
| ← mikl left | 14:37 |
| → mikl joined | 14:37 |
|
cmn
| tydeas: it's just some name | 14:37 |
| ← psoo left | 14:37 |
|
cmn
| git doesn't care about filenames much | 14:37 |
| ← Corren left | 14:37 |
| ← angelsl left | 14:37 |
|
kylehayes
| ugh, got over an argument about git guis with a coworker and why its more efficient to learn the command line | 14:37 |
|
_johnny
| cmn: ok, thanks :) | 14:38 |
|
kylehayes
| He said we won't be able to get it adopted here if we don't provide a decent gui | 14:38 |
| rndbit → zz_rndbit | 14:39 |
| → Polysics joined | 14:39 |
|
Polysics
| hello | 14:39 |
|
| sorry if this is probably a stupid question | 14:39 |
|
fr0sty-away
| "decent" == ??? | 14:39 |
| ← mastroDani left | 14:39 |
|
Polysics
| but how do i clone a specific branch off github, please? | 14:39 |
|
fr0sty-away
| Polysics: you clone repositories, not branches. | 14:39 |
| zz_rndbit → rndbit | 14:39 |
|
engla
| Polysics: you can use git clone -b branchname URL | 14:39 |
|
Polysics
| or how do i swtich t oa branch after cloning, that is | 14:40 |
|
engla
| but yeah, you still get the whole repository | 14:40 |
|
| Polysics: use -b or -n options to clone. See git help clone for more! :-) | 14:40 |
|
fr0sty-away
| you can 'git fetch URL branchname' though... | 14:40 |
| ← tydeas left | 14:40 |
| ← gusnan left | 14:41 |
| ← g0bl1n left | 14:41 |
|
kylehayes
| fr0sty-away: I couldn't get out of him what decent meant. I asked why a GUI would be better and he said that's just the way we think.... | 14:41 |
| ← mikl left | 14:41 |
| ← radarek left | 14:41 |
| → brienna joined | 14:42 |
| → ceej joined | 14:42 |
| ← brienna left | 14:43 |
|
fr0sty-away
| well, then any gui is 'decent'... | 14:43 |
| → tystr joined | 14:44 |
|
kylehayes
| I see the advantage in diffing tools, but I don't see it in normal day to day operations of add, committing and branching | 14:44 |
| → excess^ joined | 14:45 |
| → minijupe joined | 14:45 |
|
rane_
| I have one directory in the root of a repo and want to make that directory root of the repo, how do I move it? | 14:45 |
|
| git mv foo/* . doesn't seem to work | 14:45 |
|
minijupe
| how do I get a diff between my current working dir and the last commit? | 14:46 |
| yaotti → yaotti_aw | 14:46 |
|
teuf
| minijupe: git diff HEAD | 14:46 |
|
minijupe
| teuf: tnx | 14:46 |
|
engla
| kylehayes: I think he is right. problem is that git's creators also created git after how they think, and that's different | 14:46 |
| → mando joined | 14:47 |
| ← Polysics left | 14:47 |
| ← dannas_ left | 14:47 |
| ← minijupe left | 14:48 |
|
kylehayes
| engla: I don't see how a gui makes it more efficient. I feel if one learns the basic commands, they will be able to use them a lot quicker than running the mouse over a interface | 14:48 |
| → Textmode joined | 14:49 |
|
kylehayes
| then again, I can touch type, he can't so perhaps he doesn't like typing so slow | 14:49 |
| → aangel joined | 14:49 |
|
engla
| well if he said "that's just how I think" then it wasn't a question of what's possibly most efficient | 14:49 |
| ← MacGyverNL left | 14:50 |
|
rane_
| fatal: source directory is empty, source=devhub/log, destination=log | 14:51 |
|
| ;[ | 14:51 |
| → MacGyverNL joined | 14:51 |
|
thm
| when I rebase a branch, how can I also on-the-fly rebase refs (tags or branches) that point to commits on the old branch? | 14:51 |
| → jfkw joined | 14:51 |
|
sitaram
| kylehayes: a gui makes it more efficient for someone who looks at git as a chore and not central to his work. He feels no need to "learn" it and just wants to get the job done. Ergonomics of mouse versus keyboard don't (usually) enter into it | 14:51 |
| → airborn joined | 14:52 |
|
sitaram
| kylehayes: I know/have heard of/deal with several people like that at work | 14:52 |
| → Vadtec joined | 14:52 |
|
Vadtec
| i must be dense...how do I do a clone of a tag? | 14:52 |
| ← jonatasnona left | 14:53 |
|
sitaram
| you can *fetch* a tag | 14:53 |
| → deuterium joined | 14:53 |
|
Vadtec
| so i have to clone the entire repo first? i cant just clone everything up to the tag point? | 14:54 |
| ← deuterium left | 14:54 |
|
Vadtec
| or can i use the tag as my REV? | 14:54 |
|
engla
| Vadtec: it's normally not worth it to bother about the difference. clone, then check out the revision you are interested in | 14:54 |
| → deuterium joined | 14:54 |
|
Vadtec
| ok, so how do i use the tag to specify the rev im after? | 14:55 |
|
| Vadtec reads some docs | 14:56 |
| → bkosborne joined | 14:56 |
| → alberto56 joined | 14:56 |
|
engla
| Vadtec: just use the name of the tag | 14:56 |
| → mklappstuhl joined | 14:56 |
|
engla
| Vadtec: git checkout v2.2 #for example | 14:56 |
| ← gnufied_ left | 14:56 |
| ← gnufied left | 14:56 |
| → albel727 joined | 14:57 |
|
Vadtec
| engla: thanks, i just found that in the docs *facepalm* i over looked it the first time | 14:57 |
|
shamess
| I try to push to my origin, but it says "rejected, non-fast forward". To fix that I usually git-fetch then check it out and then pull and then I can push. But the diff for the origin/master looks like it will get rid of all my changes on my current repo... Almost like the origin thinks it's ahead of my repo. | 14:57 |
|
| Could anyone explain what's going on? | 14:57 |
|
engla
| Vadtec: you will probably want to create a branch there to have something to work on | 14:57 |
|
Vadtec
| engla: not so much, this is just a tag for a release point | 14:58 |
|
| gonna use it to package up the source files into a tarball | 14:58 |
|
canton7
| thm, no direct way to do it. see http://blog.nilsjonsson.com/post/4421450571/rebasing-tags-in-git-repositories for a solution | 14:58 |
|
engla
| Vadtec: you can possibly use git archive <revision> without even needing to check it out at all (or have a worktree) | 14:59 |
| → workmad3 joined | 14:59 |
|
engla
| Vadtec: except of course if you need more than just the repository files | 14:59 |
| ← ajt left | 14:59 |
|
Vadtec
| engla: in this case, it would be not adding files im after, there are some files that are only used by myself that dont need to be packages | 14:59 |
|
| packaged* | 14:59 |
| q0rban → q0rban|afk | 14:59 |
| → ajt joined | 15:00 |
| → ISF joined | 15:00 |
| ← lolfrenz left | 15:00 |
| ← KKA left | 15:00 |
| → kukks joined | 15:00 |
|
Vadtec
| i was thinking there was a way to clone the tag, but if i want to do that, i might as well create a branch and then merge it back into master | 15:00 |
| → KKA joined | 15:01 |
| ← kpreid left | 15:02 |
| ← lahwran left | 15:02 |
| ← sheikra left | 15:02 |
| ← engla left | 15:03 |
| → beatak joined | 15:03 |
| → lahwran joined | 15:04 |
| → kold joined | 15:04 |
| → montylounge joined | 15:04 |
|
kold
| Hi all, is there a way to have git-diff ignore certain file types? I have minified javascript files that I'd like to ignore. I can't seem to determine if there are any options I can pass to git-diff to make this happen | 15:05 |
| ← Vadtec left | 15:05 |
| ← eijk left | 15:06 |
| → joel_falcou joined | 15:06 |
|
thm
| canton7: if one notes the old hashes, it would be easy or rather mechanical task to do that, not complicated, but error-prone | 15:07 |
| → g0bl1n joined | 15:07 |
| ← deuterium left | 15:08 |
| ← airborn left | 15:08 |
| ← Spockz left | 15:08 |
| → deuterium joined | 15:09 |
| → hyperair joined | 15:09 |
|
_johnny
| cmn: decided to do a little hex editor magic to take care of it. so i also changed the reference of "who do you think i am" to a region of free space and typed in something more "appropriate": "fatal: Hi! You've successfully authenticated, but you're denied shell access." :) | 15:09 |
| → hubertchang joined | 15:10 |
| → savoxis joined | 15:10 |
| → eijk joined | 15:11 |
| ← xshyamx left | 15:11 |
|
_johnny
| it may have taken me a couple of hours, but setting up a git "server" without git server daemons like gitorious etc. *is* possible :P | 15:11 |
|
etcetera
| what's the best way to fetch and merge from a remote repo? | 15:11 |
|
cmn
| _johnny: you can do that in the source, which should be much safer | 15:11 |
|
_johnny
| true, but with my chrooted setup, i'd prefer not to compile it (again) hehe | 15:11 |
| ← vmiklos left | 15:12 |
| ← nevyn left | 15:12 |
|
cmn
| and at any rate, you can use gitolite if you want users not to be able to do anything else on the server, they don't even need a login, I think, just the gitolite user | 15:12 |
| ← jjido left | 15:13 |
|
_johnny
| cmn: i'll try that :) | 15:13 |
| ← kold left | 15:13 |
|
_johnny
| i have too much time at hand.. lol | 15:13 |
| → vmiklos joined | 15:13 |
| → allaire joined | 15:13 |
| ← alberto56 left | 15:14 |
| → mm_202 joined | 15:14 |
| ← namemon left | 15:15 |
| → mikl joined | 15:15 |
| → RaceCondition joined | 15:15 |
| → smolyn joined | 15:16 |
| ← __sorin__ left | 15:17 |
|
allaire
| Hey guys, I'm do you know if svn merge files line-by-line like git does? I'm doing an oral presentation about why using git | 15:18 |
| → tjholowaychuk joined | 15:18 |
|
allaire
| I remember I had much more trouble doing merge with svn back in the days | 15:18 |
| → alex__c2022 joined | 15:19 |
| → alberto56 joined | 15:19 |
| ← xiangfu left | 15:19 |
| → nevyn joined | 15:19 |
| → kpreid joined | 15:19 |
| → Niedar joined | 15:19 |
| ← cbreak_work left | 15:20 |
| ← werdan7 left | 15:20 |
| → roop_ joined | 15:21 |
| → BiggFREE joined | 15:21 |
| → sunnyohno joined | 15:22 |
| ← leitao left | 15:23 |
| savoxis → SavoxUnity | 15:23 |
| ← jophish left | 15:24 |
| ← metze left | 15:25 |
| ← mklappstuhl left | 15:25 |
| ← jutaro left | 15:25 |
| ← ShooterMG left | 15:26 |
| ← rchavik left | 15:26 |
| → petrux joined | 15:26 |
| ← Error404NotFound left | 15:27 |
| ← sunnyohno left | 15:27 |
| → n8o-mba joined | 15:28 |
| → flaguy48 joined | 15:28 |
| ← shiba_yu36 left | 15:30 |
| → sou_ joined | 15:30 |
| ← envi_ left | 15:30 |
| → envi_ joined | 15:30 |
| → masolino joined | 15:30 |
| ← sou_ left | 15:31 |
| ← giallu left | 15:31 |
| → metze joined | 15:32 |
| ← aangel left | 15:32 |
| ← kermit left | 15:33 |
| ← orafu left | 15:34 |
| ← freimatz left | 15:35 |
| → sechrist joined | 15:35 |
| → leitao joined | 15:35 |
| ← hubertchang left | 15:35 |
| → kipras_ joined | 15:35 |
| → hubertchang joined | 15:36 |
| → SimonP86 joined | 15:37 |
| → jutaro joined | 15:37 |
| → Error404NotFound joined | 15:40 |
| → mklappstuhl joined | 15:40 |
| ← Sembiance left | 15:40 |
| ← dpy left | 15:40 |
| ← sebbi left | 15:41 |
| → shiba_yu36 joined | 15:41 |
| → booginga joined | 15:42 |
| → beiter joined | 15:42 |
|
booginga
| hey all is qucik question is there something like git hub that allows you to visualize and trak changes in a self hosted repo that is open source and can be deployed on a private server? | 15:43 |
| ← deekayen left | 15:43 |
|
teuf
| gitorious ? or maybe cgit/gitweb | 15:43 |
| ← nigelb left | 15:43 |
| → devth joined | 15:44 |
| → thiago_home joined | 15:44 |
| → deekayen joined | 15:44 |
|
cmn
| if you want something social-like in the github style, gitorious | 15:45 |
| → crakdmirror joined | 15:45 |
| → deviantintegral joined | 15:46 |
|
deviantintegral
| what would be the best command to get a parseable version of "git branch --merged"? | 15:46 |
| ← infid left | 15:47 |
| ← BiggFREE left | 15:47 |
| ← phaer left | 15:48 |
| → BiggFREE joined | 15:48 |
| → alvaro_o joined | 15:48 |
|
booginga
| thanks im going to look at them now | 15:48 |
| → infid joined | 15:49 |
| ← smolyn left | 15:49 |
| ← envi_ left | 15:49 |
| → envi_ joined | 15:49 |
| ← D5 left | 15:50 |
| ← alvaro_o left | 15:50 |
| → D5 joined | 15:50 |
| ← pizza_ left | 15:50 |
| → conan joined | 15:50 |
| ← mklappstuhl left | 15:51 |
| ← crakdmirror left | 15:51 |
| → cal__ joined | 15:52 |
| ← ddilinger left | 15:52 |
|
cmn
| deviantintegral: what do you mean with 'parseable'? parseable with what? | 15:52 |
| → mklappstuhl joined | 15:53 |
|
deviantintegral
| cmn: I want a script that will delete all branches that have been merged into the current branch | 15:53 |
| → pizza_ joined | 15:53 |
| ← albel727 left | 15:54 |
| ← D5 left | 15:54 |
|
cmn
| the output from git branch --merged should be quite usable for that | 15:54 |
|
| just separate on \n | 15:54 |
| ← kipras_ left | 15:54 |
| → kipras joined | 15:55 |
| → ddilinger joined | 15:55 |
| ← n1ck31 left | 15:55 |
|
deviantintegral
| cmn: yeah, right now I have http://pastebin.com/w70nDNiM, but I don't like having to grep out the current branch | 15:56 |
| → radarek joined | 15:56 |
| ChanServ set mode: +v | 15:56 |
| ← ISF left | 15:56 |
| → albel727 joined | 15:56 |
| → quiliro joined | 15:57 |
| → ISF joined | 15:57 |
| ← Badiss left | 15:57 |
| ← mastroWork left | 15:57 |
|
cal__
| if i have a massive repo, say "project", that contains "project/lib" and now want to make three repos (project, project2, lib) and use submodules, is it possible to preserve the history for "lib" when I make a new repo out of it? | 15:58 |
| ← dajhorn left | 15:58 |
| ← roop_ left | 15:58 |
| → mastroDani joined | 15:58 |
| ← mastroDani left | 15:58 |
|
fr0sty-away
| deviantintegral: git symbolic-ref HEAD | 15:58 |
| → sunnyohno joined | 15:59 |
|
cmn
| cal__: man git-filter-branch | 15:59 |
|
jast
| cal__: [automatic message] the 'git-filter-branch' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html | 15:59 |
|
deviantintegral
| thanks fr0sty-away I'll look into that | 15:59 |
|
booginga
| teuf: thanks c git is close to what im looking for | 15:59 |
| ← mklappstuhl left | 16:00 |
|
booginga
| sorry cgit | 16:00 |
| ← Titosemi left | 16:00 |
|
cal__
| cmn: jast: thanks will investigate | 16:00 |
|
cmn
| np | 16:00 |
| → mklappstuhl joined | 16:00 |
| → israel_dahan joined | 16:01 |
| → CannedCorn joined | 16:01 |
| → psoo joined | 16:01 |
| ← davzie left | 16:01 |
| ← sunnyohno left | 16:01 |
| ← lahwran left | 16:01 |
| → bkosborne_ joined | 16:02 |
| → dajhorn joined | 16:02 |
| ← rndbit left | 16:03 |
| → LiamH joined | 16:04 |
| ← q0rban|afk left | 16:04 |
| → zz_rndbit joined | 16:04 |
| ← zz_rndbit left | 16:04 |
| ← BiggFREE left | 16:04 |
| ← bkosborne left | 16:04 |
| bkosborne_ → bkosborne | 16:04 |
| ← hubertchang left | 16:04 |
| → lahwran joined | 16:05 |
| → necromancer joined | 16:05 |
| → amerine joined | 16:05 |
| ← mklappstuhl left | 16:06 |
| → rndbit joined | 16:06 |
| ← Pilif12p left | 16:07 |
|
fr0sty-away
| !jast | 16:08 |
|
jast
| [automatic message] jast runs a script that provides all kinds of information, but rumour has it that he's also human. Sometimes. | 16:08 |
| ← rndbit left | 16:08 |
| → envi__ joined | 16:09 |
| → rndbit joined | 16:09 |
| ← sechrist left | 16:10 |
| → HG` joined | 16:10 |
| ← envi_ left | 16:12 |
| → t0rc joined | 16:12 |
|
necromancer
| om | 16:13 |
|
| omg | 16:13 |
|
| git-svn is a godsend | 16:13 |
|
| however, has anyone here had trouble with nested repos? | 16:13 |
|
cmyers
| heh, it's something alright =) | 16:13 |
| → mikepack joined | 16:14 |
|
cmyers
| necromancer: git-svn is easily confused because SVN doesn't have real branches or structure or *anything* | 16:14 |
| → grahamc joined | 16:14 |
|
necromancer
| cmyers: yeah but the way you're supposed to use svn is do work->make sure the build functions->commit | 16:14 |
|
cmyers
| if you tell me more about what your repo layout is, I may be able to suggest a fix. | 16:14 |
| ← conan left | 16:15 |
|
necromancer
| well right now i clone some repos into a dir called lib/ | 16:15 |
|
| i don't REALLY need the code for the app to be functional, but i do need it for the tests to run since that's where i keep my bdd framework | 16:15 |
|
| when git attempts to commit to the svn repo, it runs into an error. i can't remember what the error was and i don't want to fuck up the repo right now so i can't exactly make it fail | 16:15 |
|
| the only way i could get around it was recreating the whole thing | 16:16 |
| ← seivan left | 16:16 |
|
necromancer
| because even though lib/ was destroyed, git kept trying to commit it to svn | 16:16 |
| → spearce joined | 16:16 |
|
cmyers
| necromancer: yeah, git doesn't track dirs and svn does | 16:16 |
|
| so that creats some parity problems sometmies also | 16:16 |
| → mklappstuhl joined | 16:16 |
|
cmyers
| the main thing to understand about git-svn | 16:16 |
| → engla joined | 16:16 |
|
cmyers
| is that it uses the metdata in the comments to figure out where to commit to | 16:17 |
| ← abourg left | 16:17 |
|
cmyers
| so, if you have trunk and stable | 16:17 |
| ← envi__ left | 16:17 |
| → v0n joined | 16:17 |
|
cmyers
| and you cherry-pick from trunk to stable, and don't change the commit message, then dcommit | 16:17 |
| → envi__ joined | 16:17 |
|
necromancer
| oh yeah we're not that complicated here | 16:17 |
|
cmyers
| it will try to commit it to trunk - because the commit message has "git-svn://..." pointing to trunk | 16:17 |
|
necromancer
| ah i see | 16:17 |
|
cmyers
| are you doing any branches, or just flat checkouts of a single line of history? | 16:17 |
| ← t0rc left | 16:18 |
| → chombee joined | 16:18 |
|
necromancer
| not really. the only time we really work in branches is if one of us needs to work on a project and doesn't want to mess with the actual repo since it's in production use. or if one of us is adding a new feature | 16:18 |
|
| it's only 3 people committing to the repo so we don't get that complicated in branching and shit | 16:18 |
|
| otherwise i'm pretty sure we'd be using git by now ;) | 16:18 |
|
cmyers
| yeah, git-svn is very good at just checking out trunk or whatever | 16:19 |
|
necromancer
| because my boss would be so pissed off at svn's inability to handle branching | 16:19 |
|
cmyers
| when you have lots of branches flying, that is when git-svn tends to get confused | 16:19 |
| → enherit joined | 16:19 |
|
necromancer
| well one of the cool things is it *does* allow you to branch, locally. | 16:19 |
|
| just like git does | 16:19 |
|
| and i use local branches that i never commit to remote all the time...for experimenting with new techniques/features/etc. | 16:19 |
|
| that way if i fuck up i can just delete the branch and start fresh with a working build | 16:19 |
|
cmyers
| yup. the other thing that can confused git-svn is if you have an svn-copy from one path to another that doesn't make sense to it. | 16:19 |
|
| if it sees a copy it tries to follow it backwards in history | 16:19 |
|
necromancer
| a copy? | 16:20 |
| → konr joined | 16:20 |
|
cmyers
| so if you ever "reorganized the repo" or anything, it gets confused | 16:20 |
|
necromancer
| oh shit yeah | 16:20 |
|
cmyers
| in svn, "cp" == "new branch" remember | 16:20 |
|
necromancer
| well, svn gets confused too | 16:20 |
|
cmyers
| it sure does | 16:20 |
|
necromancer
| you really shouldn't EVER use shell commands to manipulate shit in svn. because if you make a mistake and svn can't commit, you're fucked | 16:20 |
|
| gotta start over | 16:20 |
|
| ever try to rm -rf a file without telling svn? it doesn't like that very much :) | 16:21 |
|
cmyers
| < necromancer> you really shouldn't EVER use svn. because if you make a mistake and svn can't commit, you're fucked | 16:21 |
|
| fixed | 16:21 |
|
necromancer
| haha | 16:21 |
| → d0k joined | 16:21 |
|
necromancer
| nah it's not THAT bad. i don't really think it's that different from git, conceptually. but git works differently behind the scenes, much like a filesystem (how surprising, coming from mister linux!), so it handles non-standard situations with ease | 16:22 |
|
| so that's why i like it | 16:22 |
|
cmyers
| the more you understand git, the more you will understand just how different they are | 16:22 |
|
| and how *great* that difference is. | 16:22 |
|
| reliability not withstanding | 16:22 |
| ← thiago_home left | 16:23 |
| ← petrux left | 16:24 |
| → panike joined | 16:25 |
| → mysphyt joined | 16:26 |
| → subsonic joined | 16:26 |
|
fr0sty-away
| necromancer: they _are_ different conceptually. distributed vs. centralized being the main difference.. | 16:26 |
|
necromancer
| i guess that's true | 16:26 |
| ← fs-absynthe left | 16:27 |
|
necromancer
| i meant at their most basic level, however, they're still both scms and they follow the same paradigms: commit changes, pull/update from the server, etc. | 16:28 |
| → Plumber joined | 16:28 |
|
necromancer
| except git is way better since it's not centralized :) | 16:28 |
| ← achadwick left | 16:28 |
|
necromancer
| so i can do whatever i want to the repo over here and it won't affect anyone else in the office | 16:28 |
| → Titosemi joined | 16:28 |
| ChanServ set mode: +v | 16:28 |
| → gigamonkey joined | 16:29 |
|
Plumber
| Hi! | 16:29 |
| → Corren joined | 16:29 |
|
mysphyt
| Heyo. I'm having an odd trouble with a pull. If I set the remote up via ssh, everything's fine. If I set the remote up via FTP (better for me for network reasons), I get a 550 error trying to get repo/info/refs . But repo/info/refs doesn't exist. repo/refs does. Any guesses as to what's going on? | 16:29 |
|
Plumber
| Why are my untracked files copies when I checkout a new branch ? | 16:29 |
|
| copied* | 16:29 |
|
cmyers
| I would agrue their paradigms are drastically different. Monotonic increasing repo-wide revs versus an acyclic directed graph of objects which contain metadata. Also, svn properties versus the git metadata which is cryptographically consistent | 16:29 |
|
Plumber
| anybody can help me ? | 16:30 |
|
cmyers
| Plumber: they aren't copied, they are "still there" | 16:31 |
|
| git never touches untracked files unless you run a `git clean` with certain arguments | 16:31 |
|
Plumber
| Ok right | 16:31 |
|
| I will try this :D | 16:31 |
| → dreiss joined | 16:31 |
| ← vsayer left | 16:31 |
|
Plumber
| Although, they 're untracked because of my gitignore so they will be there a day or another | 16:32 |
| → justin-george joined | 16:32 |
| → lossytossymaster joined | 16:32 |
| ← PigeonFriend left | 16:32 |
| → Anubisss joined | 16:32 |
| ← dharrigan left | 16:33 |
| → smolyn joined | 16:33 |
| → urkud joined | 16:33 |
|
cmyers
| Plumber: if you want to remove *everything*, including untracked files *and* ignored files, `git clean -d -f -x`, -f means "yes, really delete stuff", -d means "recurse", and -x means "also delete ignored files" | 16:33 |
| ← jutaro left | 16:33 |
|
mysphyt
| Anybody? What files should a pull be looking at? | 16:33 |
|
Plumber
| Thanks cmyers :D | 16:33 |
|
| See you | 16:34 |
|
cmyers
| mysphyt: can you paste your [remote "foo"] section into a pastebin for both remotes? | 16:34 |
| ← md-2 left | 16:34 |
| → theoretical joined | 16:35 |
| → dAnjou joined | 16:35 |
| → trobrock joined | 16:36 |
|
Guedes
| Hi all... i've cherry-picked some specifics commits from branchA to branchB, branchC , branchD and branchE randomly. now i want to knows on which branch some commits are... since SHA1 changes i can't (?) use git branch --contains SHA1 ... there is other way? | 16:36 |
|
Plumber
| cmyers : Ok, it works, but if I add the same untracked file (because of a compilation for instance ), and checkout again, they reapear | 16:36 |
|
| not add but recreate ** | 16:36 |
| ← lossytossymaster left | 16:36 |
| → phantomcircuit joined | 16:37 |
| → envi_ joined | 16:37 |
| ← dajhorn left | 16:37 |
| ← NoNoNo left | 16:38 |
|
mysphyt
| cmyers: Yeah, two shakes. | 16:38 |
| → g105b joined | 16:38 |
|
cmyers
| Guedes: my understanding is not really - I would write a script to compare commit messages and try to heuristically figure out which commits line up | 16:38 |
| → phishy joined | 16:38 |
|
g105b
| hi gits! I've got a large filestructure and want to add all files to my repo (I think that is `git add *`) but I want to ignore certain files (only a few). How can I do this? | 16:39 |
|
mysphyt
| cmyers: https://gist.github.com/957386 . Somewhat vague, I recognize, but I hope you don't mind my obscuring my credentials. | 16:40 |
| ← envi__ left | 16:40 |
|
devth
| i'm going to answer "acyclic directed graph" every time a nontechnical person asks me a question | 16:40 |
|
mysphyt
| cmyers: (It's a personal project, and so not a public repo.) | 16:40 |
|
Guedes
| cmyers, i'm doing something like this, in time the filename is unique so i can "infer" from filename via git log and rev-list.. but i want to be sure about the commit by itself... | 16:40 |
| → nadirvardar joined | 16:40 |
| ← mklappstuhl left | 16:40 |
|
Guedes
| cmyers, thank you... i'm seeing that i'm not so wrong at moment... i'll figure other better ways to do that. | 16:41 |
|
cmyers
| Guedes: alternatively, you can change your process for cherry-picking so that they say "cherry-picked from original SHA XXXXXX..." | 16:41 |
|
| then your script can look for that. | 16:41 |
| ← tvw left | 16:41 |
|
cmyers
| mysphyt: wow, those look pretty similar | 16:42 |
|
| I've never used FTP before but I am suprised that isn't working | 16:42 |
|
| perhaps you have found a bug =/ | 16:42 |
| → aroop joined | 16:42 |
| cal__ → calimocho | 16:43 |
|
mysphyt
| cmyers: Right? Everything is the same, the ftp account has permission for the file, and using a regular FTP client I can fetch the files fine. It just seems to be looking in the wrong place. | 16:43 |
|
fr0sty-away
| Guedes: look at man git-cherry... | 16:43 |
|
jast
| Guedes: [automatic message] the 'git-cherry' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-cherry.html | 16:43 |
|
Guedes
| cmyers, hum... can i append a message to the commit cherry-picked? | 16:44 |
| → rbriggsatuiowa joined | 16:44 |
|
fr0sty-away
| mysphyt: according to man git-clone ftp:// urls don't accept user/pass | 16:44 |
|
jast
| mysphyt: [automatic message] the 'git-clone' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-clone.html | 16:44 |
|
rbriggsatuiowa
| is there a short command to rebase a branch since it started diverging? | 16:44 |
|
fr0sty-away
| maybe mess with your .netrc... | 16:44 |
|
cmyers
| Guedes: you can manupulate the commit message however you like | 16:45 |
|
| see `git help cherry-pick` | 16:45 |
|
mysphyt
| fr0sty-away: AH! That'll do it. Well, that's craptacular. | 16:45 |
|
dAnjou
| hey, i didn't get what git graphs are showing. is it explained somewhere? | 16:45 |
|
fr0sty-away
| rbriggsatuiowa: where do you want the commits to end up? based on what commit? | 16:45 |
|
dAnjou
| *don't | 16:45 |
|
fr0sty-away
| "graphs"? | 16:45 |
| ← trobrock left | 16:46 |
|
cmyers
| he probably means gitk or decorated git log | 16:46 |
| → Zephyrus joined | 16:46 |
|
rbriggsatuiowa
| I branched off of master to topic - made a bunch of changes and want to alter the history since I branched from master before I merge topic back to master | 16:46 |
|
mysphyt
| fr0sty-away: Any way around that, that you know of? | 16:46 |
|
Guedes
| cmyers, i'm seeing it... thanks. | 16:46 |
| → trobrock joined | 16:46 |
|
cmyers
| dAnjou: maybe http://marklodato.github.com/visual-git-guide/index-en.html ? | 16:46 |
| adamholt → adamholt_away | 16:46 |
|
fr0sty-away
| rbriggsatuiowa: git checkout topic, git rebase master will place all of your topic commits on top of master | 16:46 |
| adamholt_away → adamholt | 16:46 |
|
fr0sty-away
| besides, .netrc? no... | 16:47 |
|
cmyers
| mysphyt: what are your requirements? you could have a pw in .git/config but not in .netrc? | 16:47 |
| → cylence joined | 16:48 |
| → towski joined | 16:48 |
|
mysphyt
| cmyers, fr0sty-away: I'm not familiar with .netrc--it sounds like that's the obvious solution I'm missing out on. | 16:48 |
|
| Let me do some googling. | 16:48 |
|
thm
| or man netrc | 16:48 |
|
dAnjou
| cmyers: no, i don't think this helps | 16:48 |
|
cmyers
| mysphyt: yeah, that should explain it. if you still have trouble let us know. | 16:48 |
|
fr0sty-away
| just 'man ftp' and look at the "THE .netrc FILE" section... | 16:48 |
|
mysphyt
| I'll do that. Thanks a lot. | 16:49 |
|
cmyers
| dAnjou: can you ask a specific question? I'm not sure what you need help understanding. | 16:49 |
| → conan joined | 16:49 |
| → icwiener joined | 16:49 |
| ← SavoxUnity left | 16:49 |
| ← g105b left | 16:49 |
| → savoxis joined | 16:49 |
|
rbriggsatuiowa
| fr0sty-away: that was exactly what I wanted - thank | 16:51 |
| ← masolino left | 16:51 |
| ← bkosborne left | 16:51 |
|
dAnjou
| cmyers: i'll make a screenshot of my graph and you will understand my confusion (maybe because i did some stupid things) | 16:51 |
|
cmyers
| dAnjou: cool | 16:52 |
| ← rbriggsatuiowa left | 16:53 |
| ← vdv left | 16:53 |
| ← envi_ left | 16:53 |
|
Plumber
| Do you know if I can trigger a git clean -D -f -X when I checkout ? | 16:53 |
| → envi_ joined | 16:53 |
| → joe-mac joined | 16:53 |
|
booginga
| y | 16:53 |
|
mysphyt
| cmyers, fr0sty-away: Same problem. .netrc configured correctly, ftp server connects me to the correct user account, git pull still looks for repo/info/refs instead of repo/refs . | 16:53 |
|
booginga
| sorry to many windows | 16:53 |
|
joe-mac
| what is the syntax to git diff a remote branch via url if it isn't set up as a git remote? | 16:54 |
| ← envi_ left | 16:54 |
|
joe-mac
| tells me ambiguous argument when I do "git diff URL master" | 16:54 |
|
mysphyt
| I get the same message: "error: RETR response: 550 while accessing ftp://server/path/to/repo/info/refs" | 16:54 |
| → slonopotamus joined | 16:54 |
| → cakehero joined | 16:55 |
| → phaer joined | 16:56 |
| ← phaer left | 16:56 |
|
fr0sty-away
| mysphyt: http://stackoverflow.com/questions/2930371/set-a-ftp-repository-with-git | 16:56 |
| → phaer joined | 16:56 |
| ← joe-mac left | 16:56 |
|
fr0sty-away
| update-server-info is needed, it seems... | 16:56 |
|
dAnjou
| cmyers: don't laugh at me :P http://img6.imagebanana.com/img/pv2vr1u6/screenshot_007.png | 16:57 |
|
fr0sty-away
| if joe-mac was still here, I'd tell him he needs to fetch then diff... | 16:57 |
|
mysphyt
| fr0sty-away: Aha! Thanks heaps. Solved the problem. | 16:57 |
| ← zhengyang left | 16:57 |
|
mysphyt
| cmyers, fr0sty-away: Thanks a bunch. Now I can actually do work, instead of doing work in preparation to do work. :P | 16:57 |
|
| (Except now I have to go to an unrelated and probably irrelevant meeting. Huzzah.) | 16:58 |
|
| Thanks again, folks. I'm sure I'll be back with another dumb question later. :) | 16:58 |
| ← mysphyt left | 16:58 |
|
devth
| dAnjou: that graph looks nicer than my gitx. what app is that? | 17:01 |
| ← Plumber left | 17:01 |
|
dAnjou
| devth: http://digilander.libero.it/mcostalba/ | 17:01 |
| → ph^ joined | 17:02 |
|
dAnjou
| devth: so you can read those graphs? | 17:02 |
|
devth
| dAnjou: i can make sense of them, yes | 17:03 |
|
fr0sty-away
| dAnjou: yes, what's the issue... | 17:03 |
|
| ? | 17:03 |
| ← lahwran left | 17:03 |
|
fr0sty-away
| looks like you are doing a bunch of random merging which is not generally a good idea. | 17:03 |
| ← aroop left | 17:03 |
|
dAnjou
| fr0sty-away: exactly | 17:03 |
|
fr0sty-away
| actually, I'll bet you are blindly using "git pull" | 17:03 |
| ← d3vic3 left | 17:03 |
|
fr0sty-away
| but I may be wrong... | 17:04 |
| ← phaer left | 17:04 |
|
dAnjou
| fr0sty-away: no you don't | 17:04 |
|
| i did stupid stupid things | 17:04 |
|
| my actual problem is, how to revert some pulls and commits | 17:05 |
|
fr0sty-away
| probably not too bad, | 17:05 |
| → lahwran joined | 17:05 |
|
dAnjou
| but i can't figure out which ones | 17:05 |
|
fr0sty-away
| what do you mean by 'revert'? "create a commit which ondoes another" or "remove a commit from history" | 17:05 |
| ← phantomcircuit left | 17:05 |
| → phantomcircuit joined | 17:05 |
|
fr0sty-away
| is the final-result of all this work broken? | 17:05 |
|
| or are you just trying to clean up after yourself? | 17:06 |
| ← radarek left | 17:06 |
| → vanmik joined | 17:06 |
| → cornfeed joined | 17:06 |
|
dAnjou
| i want to clean up | 17:07 |
|
fr0sty-away
| why? | 17:07 |
| ← subsonic left | 17:07 |
|
dAnjou
| because i did some commits on a branch without pulling before | 17:07 |
|
fr0sty-away
| why does that matter? | 17:07 |
|
dAnjou
| and some commits on some other branches that use the work of the pulled branch | 17:08 |
|
cmyers
| dAnjou: ok, looking | 17:08 |
| ← Zephyrus left | 17:08 |
|
cmyers
| believe it or not, that looks pretty normal to me. | 17:08 |
|
dAnjou
| it's really messed up | 17:08 |
|
fr0sty-away
| in what way? is the code in the branches broken? | 17:09 |
|
| were the merges done incorrectly? | 17:09 |
| → alextheger joined | 17:09 |
|
cmyers
| you have a few topic branches, and they are diverged from the remote branches. I see merges where you convert in various places too. | 17:09 |
|
fr0sty-away
| what problem are you trying to solve, other than the graph is not 'pretty'? | 17:09 |
| ← israel_dahan left | 17:09 |
|
dAnjou
| no, but they are not up to date, we did some changes that .. well actually broke thing i did later | 17:09 |
| → d0k_ joined | 17:09 |
| → sunnyohno joined | 17:09 |
|
cmyers
| dAnjou: which branch is not up to date? now that we are looking at the picture, say exactly what you need to do | 17:10 |
| → bran joined | 17:10 |
|
| fr0sty-away bows out... | 17:10 |
| ← d0k left | 17:10 |
| d0k_ → d0k | 17:10 |
|
dAnjou
| ok, i think i should become clear in my mind first | 17:10 |
| ← sunnyohno left | 17:12 |
| → Zephyrus joined | 17:13 |
| → sylr joined | 17:13 |
| ← KKA left | 17:13 |
|
dAnjou
| maybe it would help if you can tell me what the edges of the graph mean | 17:14 |
| → tydeas joined | 17:14 |
|
tydeas
| I have this `strange` ( for me atleast caz there must be an explanation ) workflow http://pastebin.com/GTS9K6pa | 17:15 |
| ← beiter left | 17:15 |
| → aroop joined | 17:15 |
|
tydeas
| The summary is that I add a .gitignore file to assets folder ( line 31 of pastebin ) but this does not appear in the git status. | 17:15 |
|
| Is this because file test I added is an empty one ? | 17:16 |
|
cmyers
| dAnjou: git is fundementally different from SVN/CVS/perforce | 17:16 |
|
| each commit is an object which contains a pointer to a tree of files | 17:16 |
|
| and a pointer to the version before it | 17:17 |
| → KKA joined | 17:17 |
|
cmyers
| so the "entire history" is represented as an acyclic directed graph - which is what you are looking at | 17:17 |
|
| each dot is a revision and each edge is a pointer from one revision to a parent revision | 17:17 |
| ← ph^ left | 17:17 |
|
cmyers
| when you merge, you get a commit with more than one parent | 17:17 |
| ← conan left | 17:17 |
| ← excess^ left | 17:18 |
|
cmyers
| does that clarify things a bit? | 17:18 |
|
alextheger
| I have a rebasing problem. I diskribed it on http://pastebin.com/DRfQ5VqF . Any idea how I can rebase that correctly? | 17:18 |
| → ph^ joined | 17:18 |
| → beyondcreed joined | 17:19 |
|
dAnjou
| cmyers: can i see which commits belong to which branches in the graph? | 17:19 |
| ← mdel left | 17:19 |
|
engla
| alextheger: rebase help lists --preserve-merges that you can try | 17:20 |
| → MikhX joined | 17:21 |
| → israel_dahan joined | 17:21 |
|
alextheger
| engla: thx. I'll try that. Sounds promising. | 17:21 |
| ← empity left | 17:21 |
|
cmyers
| dAnjou: you can find out which tags contain a given commit using a flag to `git describe` you can see if a particular commit has another commit in its history by running `git log <FOO> | grep <BAR>` | 17:22 |
| ← ningia left | 17:22 |
| → giallu joined | 17:22 |
| → radarek joined | 17:22 |
| → squiggy joined | 17:22 |
| ← jatt left | 17:23 |
| → thiago_home joined | 17:23 |
| → oriba joined | 17:23 |
| ← oriba left | 17:23 |
| → excess^ joined | 17:24 |
| → kenneth_reitz joined | 17:24 |
| ← alextheger left | 17:24 |
| → metcalfc joined | 17:24 |
| → trueg joined | 17:24 |
|
trueg
| hi | 17:24 |
| → WebDragon joined | 17:25 |
| ← drev1 left | 17:25 |
| ← allaire left | 17:25 |
|
dAnjou
| cmyers: i think i just found the needle in the haystack | 17:25 |
| → drev1 joined | 17:25 |
|
trueg
| does anyone know how I could insert the last modification date into a file the way one could do in svn? | 17:25 |
| ← excess^ left | 17:25 |
|
trueg
| maybe a commit hook would even be sufficient? | 17:25 |
|
dAnjou
| cmyers: thanks for your explanations | 17:25 |
| → excess^ joined | 17:26 |
|
Guedes
| cmyers, for my problem i found an option for cherry-pick "-x When recording the commit, append a line that says "(cherry picked from commit …)" to the original commit message in order to indicate which commit this change was cherry-picked from." is that what i need! | 17:26 |
|
cmyers
| no prob =) | 17:26 |
|
WebDragon
| I rebased a branch that had merely been checked out at a particular state with no additional commits on it, to the tip of develop, but this seems to have wiped out the 'state' things were in for the one file in question that was why I'd created that branch in the first place. now I would like to know how to 'undo' that rebase, or if there's any way I can dig out that bit of copy from git's insides, so that I can re-apply them to this | 17:27 |
|
| temporary branch and make an actual commit so as to prevent this problem in the future | 17:27 |
| → Quentarez joined | 17:27 |
|
cmyers
| sweet | 17:27 |
| ← excess^ left | 17:27 |
| → excess^ joined | 17:27 |
| ChanServ set mode: +v | 17:27 |
| ← cakehero left | 17:28 |
|
WebDragon
| http://fpaste.org/O3Ot/ | 17:28 |
| → Plouj joined | 17:28 |
|
Plouj
| hi | 17:28 |
|
WebDragon
| which is strange as Products/Radial_Flow_Settler.php had different copy on it than the one in the main develop tree | 17:28 |
|
kylehayes
| sitaram: thank you for your sentiments re: gui | 17:28 |
|
| I guess there are some I just can't change | 17:29 |
| ← rien left | 17:29 |
| → sechrist joined | 17:29 |
|
Plouj
| I made the mistake of doing git co -b origin/release_2.6. How do I now get rid of the local origin/release_2.6 branch? Just rm refs/heads/origin/release_2.6 ? | 17:29 |
| ← radarek left | 17:29 |
|
Quentarez
| Greetings! I'm fairly new to git (came from SVN, git is so much better) and I've just discovered .gitignore files. I've updated my .gitignore with the recommendations on github/gitignore, but I already have tracked files in there which would have been ignored. | 17:29 |
|
| Is there a way for me to "apply" my new gitignore to my repository and remove all the files that should not be tracked? | 17:29 |
| ← trueg left | 17:29 |
| → __sorin__ joined | 17:30 |
|
cmyers
| Plouj: `git branch -d origin/release_2.6` | 17:30 |
|
Plouj
| cmyers: that says it can't find it | 17:30 |
|
cmyers
| hmm, maybe try refs/origin/release_2.6 | 17:30 |
|
| erm, or refs/heads/... | 17:30 |
|
Plouj
| cmyers: I mean it says "is not fully merged" | 17:30 |
|
cmyers
| oooh | 17:30 |
|
| right | 17:31 |
|
| -D then | 17:31 |
|
| capital D | 17:31 |
|
Plouj
| I'm kinda scared that it says it's not fully merged | 17:31 |
|
cmyers
| before you delete it | 17:31 |
|
| make another branch pointing to it | 17:31 |
|
Plouj
| git log refs/heads/origin/release_2.6..refs/remotes/origin/release_2.6 is empty | 17:31 |
|
dAnjou
| ok, now i got a concrete question: how can i delete 2 of my commits without deleting things in my working copy? | 17:32 |
|
cmyers
| maybe it is just confused. look at gitk or equivalent to make sure you aren't going to lose anything when it goes away | 17:32 |
|
| then delete with prejudice =) | 17:32 |
|
Plouj
| k | 17:32 |
|
cmyers
| dAnjou: which commits? | 17:32 |
| → avinashhm joined | 17:32 |
| ← ph^ left | 17:32 |
| → avinash_hm joined | 17:32 |
| → nielx joined | 17:32 |
| ← ew0 left | 17:32 |
|
fr0sty-away
| tydeas: .gitignore doesn't work on tracked files. | 17:32 |
| ← mikelangelo left | 17:32 |
|
dAnjou
| cmyers: in my picture the latest on the black edge | 17:33 |
| ← boutcher left | 17:33 |
|
dAnjou
| the 2 latest | 17:33 |
| ← tatsuya left | 17:33 |
|
cmyers
| so yuo want to delete "it's firstName, not surName" and "Publisher has been added"? ? | 17:33 |
|
tydeas
| fr0sty-away: i know that | 17:33 |
|
WebDragon
| can anyone assist with my question? | 17:33 |
|
tydeas
| the files under the assets was untracked | 17:33 |
|
| WebDragon: ask | 17:33 |
|
| WebDragon repeats his question | 17:34 |
| → boutcher joined | 17:34 |
|
WebDragon
| http://fpaste.org/O3Ot/ | 17:34 |
|
| I rebased a branch that had merely been checked out at a particular state with no additional commits on it, to the tip of develop, but this seems to have wiped out the 'state' things were in for the one file in question that was why I'd created that branch in the first place. now I would like to know how to 'undo' that rebase, or if there's any way I can dig out that bit of copy from git's insides, so that I can re-apply them to this | 17:34 |
|
| temporary branch and make an actual commit so as to prevent this problem in the future | 17:34 |
| ← __sorin__ left | 17:34 |
|
dAnjou
| cmyers: no, the "firstName" one and the "nullable, not null" one | 17:34 |
|
WebDragon
| the results in the fpaste are strange as Products/Radial_Flow_Settler.php had different copy on it than the one in the main develop tree | 17:34 |
|
cmyers
| dAnjou: oh, I see why I missed it, it was highlighted | 17:35 |
|
| ok | 17:35 |
|
| so what is your goal - you want to remove these commits from the grails-refactoring branch? | 17:35 |
| ← slonopotamus left | 17:35 |
|
fr0sty-away
| tydeas: 'git add assets' tracked it. That or I misunderstand your question... | 17:36 |
|
dAnjou
| cmyers: actually i want to make the changes i did in these two commits after the latest commit of my collegue | 17:36 |
| ← nevyn^ left | 17:36 |
|
dAnjou
| because they collide | 17:36 |
| ← shevy left | 17:37 |
|
cmyers
| there are three "primatives" to edit history. `git reset --hard` says "make this ref point to this commit", `git rebase -i` lets you interactively edit, reorder, or remove commits from the middle of a history, and `git filter-branch` or `git filter-tree` lets you change all commit objects in a branch by a given rule | 17:37 |
|
| which commit conflicts with them? | 17:37 |
| → radarek joined | 17:37 |
|
fr0sty-away
| WebDragon: you can check that commit out from the reflog: 'git checkout -b <newbranch> HEAD@{<somenumber>}' | 17:38 |
|
cmyers
| the one pointed to by hte upload branch? | 17:38 |
|
fr0sty-away
| get <somenumber> from 'git reflog' | 17:38 |
|
dAnjou
| cmyers: you see after the "Publisher" commit there are 3 commits of my collegue that diverged | 17:38 |
| ← bsod1 left | 17:38 |
|
tydeas
| fr0sty-away: ok | 17:39 |
|
| fr0sty-away: thanks | 17:39 |
| → ew0 joined | 17:39 |
|
cmyers
| dAnjou: ahah! at last the actual goal is revealed | 17:39 |
|
| so you want to merge those three commits into the grails-refactoring branch, but your last two commits conflict with them - is that right? | 17:40 |
| → cybernd joined | 17:40 |
| ← Quentarez left | 17:40 |
| → jtza8 joined | 17:40 |
|
dAnjou
| cmyers: that's right .. i think i finally figured out what my problem is | 17:41 |
|
jtza8
| If I moved files manually, is there a way to let git know, so that the changes can be tracked, rather than me adding a new file? | 17:41 |
|
fr0sty-away
| jtza8: git rm <oldfile>; git add <newfile> | 17:41 |
|
cmyers
| are you sure you can't merge them by fixing the conflict? if you `git checkout grails-refactoring` then `git merge origin/grails-refactoring` you should get a merge conflict and an opportunity to fix it | 17:42 |
|
fr0sty-away
| git does no explicit rename tracking | 17:42 |
|
| but it does do on-the-fly rename detection afterward. | 17:42 |
| savoxis → SavoxUnity | 17:42 |
|
jtza8
| thanks fr0sty-away, so there isn't much to worry about, I mean, most of the text in the file is still the same.. | 17:42 |
|
fr0sty-away
| so "git mv file newname" is essentially "git rm file; git add newname" | 17:43 |
|
jtza8
| Once again, git rocks! :) | 17:43 |
|
WebDragon
| fr0sty-away: lovely. perfect. JUST what I needed. (makes mental notes) | 17:43 |
|
dAnjou
| cmyers: i'm pretty sure i can resolve conflicts .. i didn't make severe changes in my commits | 17:43 |
|
cmyers
| dAnjou: are you thinking it would be easier to fix it in the other direction - if you applied your changes, one by on, on top of his? | 17:43 |
|
tydeas
| fr0sty-away: yes... now i am somehow screwed... I have used git rm --cached to rm the assets folder | 17:44 |
|
| now i need them back | 17:44 |
|
| I `rm ./assets` i create them touch files | 17:44 |
|
| but git status can not find it. | 17:44 |
|
WebDragon
| fr0sty-away: is there a way for me to have 'a branch checked out, as a stopping point but with no additional commits', rebase onto the main develop tree but prefer the content state at that time ? | 17:44 |
|
fr0sty-away
| WebDragon: I have no idea what this means: "as a stopping point but with no additional commits" | 17:45 |
|
| or "the content stat at that time" | 17:45 |
|
dAnjou
| cmyers: that would be easier | 17:45 |
|
cmyers
| dAnjou: k...git is super sweet, so that is eas | 17:46 |
|
| easy* | 17:46 |
| ← ch077179 left | 17:46 |
|
fr0sty-away
| tydeas: if .gitignore is set to ignore them, git status will not show them. | 17:46 |
|
cmyers
| here is what you do - first, create a local branch pointing to your collegue's changes - `git checkout -b fix origin/grails-refactoring` | 17:46 |
|
dAnjou
| cmyers: and it's not much to do. it would be ok to completely remove my commits and changes | 17:46 |
| ← SavoxUnity left | 17:46 |
|
tydeas
| fr0sty-away: I have removed the folder as well as the data inside of it. | 17:46 |
|
fr0sty-away
| you need to 'git add -f <files>' in that case, though I am completely unsure of what you are trying to accomplish... | 17:46 |
| → savoxis joined | 17:46 |
|
cmyers
| now, you are on a branch with those changes. You can ask git to "cherry-pick" each one of your changes, one by one, resolving conflicts as you go | 17:47 |
| → Saur joined | 17:47 |
| ← savoxis left | 17:47 |
|
WebDragon
| fr0sty-away: 'or the contents at that time' it was supposed to read | 17:47 |
| ← gigamonkey left | 17:47 |
|
tydeas
| fr0sty-away: I am trying to accomplish having assets folder as empty. Just to have it in structure. | 17:47 |
| → savoxis joined | 17:47 |
|
cmyers
| `git cherry-pick <firstName commit>` then `git cherry-pick grails-refactoring` | 17:47 |
|
| after each cherrypick if there are conflicts you will have to fix them. | 17:47 |
|
dAnjou
| i'll try | 17:47 |
| ← dyer_out left | 17:47 |
| → dim_ joined | 17:47 |
|
fr0sty-away
| tydeas: git cannot track empty directories | 17:48 |
|
tydeas
| fr0sty-away: I know | 17:48 |
| → SavoxUnity joined | 17:48 |
|
tydeas
| fr0sty-away: trying to work around this | 17:48 |
|
| by having a gitignore in it. | 17:48 |
|
cmyers
| when you are done, the fix branch will point to a commit that has both your changes and your college's and it will be a fast-forward push to send it to the repo when you are ready. | 17:48 |
|
fr0sty-away
| touch assets/.gitignore; git add assets/.gitignore; | 17:48 |
| ← savoxis left | 17:48 |
| ← SavoxUnity left | 17:48 |
|
dAnjou
| cmyers: i get "error: you need to resolve your current index first | 17:48 |
|
fr0sty-away
| problem? | 17:48 |
|
WebDragon
| fr0sty-away: say at some point along develop-tree's line I stop, checkout a branch that may lead to being merged in at some point but the verbiage hasn't been approved yet (awaiting proofing). then continue on develop-tree's branch deleting the copy that hasn't yet been approved and making other changes. holding that branch aside as a 'state' that may be merged into develop in the future | 17:48 |
|
dAnjou
| cmyers: for the checkout | 17:48 |
| → SavoxUnity joined | 17:48 |
|
cmyers
| dAnjou: `git status` - do you have a half-done merge you tried before or something? | 17:49 |
|
dAnjou
| cmyers: maybe i should undo the pull first | 17:49 |
|
WebDragon
| but since it was the active content in the file at the time the branch was checked out, there were no additional commits on the branch | 17:49 |
|
cmyers
| yes - if you have NO changes in your working tree you need to save, then do `git reset --hard` | 17:49 |
|
| if you need to save them, then `git stash` | 17:49 |
| → kipras_ joined | 17:49 |
|
WebDragon
| i.e. I got told to remove the as-yet-unapproved content, take the page live on the main site, and keep that extra stuff live in devel.* site so the client can proof-and-approve it | 17:49 |
|
| this was the simplest way I could think of to preserve the content. I hadn't expected the rebase to eat it. | 17:49 |
|
| primarily, I presume, because there were no additional commits on that branch | 17:50 |
|
| just the 'state' at which it was checked out, and which had some additional copy that was later removed in the main develop tree | 17:50 |
|
fr0sty-away
| WebDragon: still not following you, sorry. can you fake up some ascii art, or similar? | 17:50 |
| GodEater_ → GodEater | 17:51 |
| ← curtana left | 17:51 |
| → p3rror joined | 17:52 |
| → ki__ joined | 17:52 |
|
WebDragon
| easy, main develop has four paragraphs of description. we find out client's approved two of them but not all four and wants to go live with the page NOW without having approved the other two paragraphs. I checkout the current state (containing all four) as a separate branch. then switch back to develop, remove the two paragraphs that were as yet unapproved. push the develop tree live on the website, and go on hacking, while that page | 17:52 |
|
| awaits approval | 17:52 |
| ← nielx left | 17:52 |
|
WebDragon
| easier this time? | 17:52 |
| → nielx joined | 17:53 |
| ← kipras left | 17:54 |
|
fr0sty-away
| I think so, then what happened? | 17:54 |
| ← preflex left | 17:54 |
| → tty2 joined | 17:54 |
|
WebDragon
| I had a series of changes on develop, pushed that live to the devel.* and live websites respectively, then boss said, don't forget to keep that extra copy -- it's still awaiting approval | 17:55 |
|
| so I rebased that branch to the top of develop so I could push develop + branch and just have that extra two paragraphs in that one file -- only it ate the changes and it was as if they hadn't existed (when I went to check out the branch and push it to the devel server -- those two p's were missing) | 17:56 |
|
fr0sty-away
| extra copy? it's just a pointer to a commit and that commit is in the ancestry of the current "develop" branch. | 17:56 |
|
WebDragon
| yeah there was no actual commit on the branch | 17:56 |
|
fr0sty-away
| rebasing that branch on top of a descendent of itself just moves the pointer. | 17:56 |
|
WebDragon
| so I saw | 17:56 |
| ← tty1 left | 17:56 |
|
fr0sty-away
| "no divergent" commits you mean... | 17:56 |
|
WebDragon
| NOW I have an actual commit on that branch that contains the additional copy | 17:56 |
|
fr0sty-away
| besides, commits are not 'on a branch' anyways... | 17:56 |
| ← sraue left | 17:57 |
|
WebDragon
| so it shouldn't be a problem again | 17:57 |
| → spetrea joined | 17:57 |
|
fr0sty-away
| not sure what you mean, did you re-add the two paragraphs? | 17:57 |
|
spetrea
| any way to git-add nonrecursive ? | 17:57 |
|
| -n ? | 17:57 |
|
fr0sty-away
| then make a commit on top of master? | 17:57 |
| → sraue joined | 17:57 |
|
WebDragon
| I was just curious whether when rebasing, I could have preferred 'theirs' to 'ours' when diffing | 17:57 |
|
fr0sty-away
| err, develop | 17:57 |
|
ki__
| Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded. | 17:57 |
|
fr0sty-away
| WebDragon: there was no diffing, it just moved the pointer | 17:57 |
|
ki__
| How do I do fast forward? | 17:57 |
|
fr0sty-away
| ki__: git merge origin/master | 17:57 |
|
thiago_home
| git pull will be enough | 17:57 |
|
WebDragon
| no I stayed on the extraneous branch, and by checking the diff with the reflog info I got, obtained the extra two paragraphs and made a commit on that branch containing them | 17:58 |
|
| which was now at the tip of develop | 17:58 |
| → rosco_y joined | 17:58 |
|
ki__
| error: Your local changes to 'bars.php' would be overwritten by merge. Aborting. | 17:58 |
|
| Please, commit your changes or stash them before you can merge. | 17:58 |
|
| I don't need to keep local changes though I don't think, but if i did, would I have to commit local changes before I can merge with origin/master? | 17:58 |
| → amirite joined | 17:58 |
|
fr0sty-away
| so: commit---commit---develop(with two paragraphs)---extraneous(with four) | 17:59 |
|
| right? | 17:59 |
|
thiago_home
| if origin/master has changes to the same file, yes | 17:59 |
|
WebDragon
| fr0sty-away: yeah | 17:59 |
|
fr0sty-away
| ki__: or stash them (like the message says) | 17:59 |
|
ki__
| and if I don't need them, is there a faster way to revert them than git checkout -- onefile.file at.file a.file time.file ? | 17:59 |
|
WebDragon
| now I can rebase that (if it becomes necessary) without losing that data | 17:59 |
|
fr0sty-away
| or merge, but yes... | 18:00 |
|
WebDragon
| it's just a silly temporary branch that needs to be preserved for two paragraphs of data that need to stay in devel.* site until approved/denied | 18:00 |
|
| yea, or merge | 18:00 |
|
fr0sty-away
| you could also have tagged the commit which removed the paragraphs and 'git revert <tag>' later to reinstate them. | 18:00 |
|
| or whatever... | 18:00 |
|
WebDragon
| hm never thought of that | 18:01 |
|
| good to know/be reminded of | 18:01 |
|
| thanks fr0sty-away :) | 18:01 |
|
| or fr0sty-not-so-away | 18:01 |
|
| :D | 18:01 |
|
cmyers
| for i in `complicated list of files`; do git checkout <sha1> -- $i; done | 18:01 |
|
| =D | 18:01 |
|
| where the backticks could even just be `cat filelist.txt` | 18:02 |
| → slonopotamus joined | 18:02 |
|
thiago_home
| git checkout <sha1> -- `complicated list of files` | 18:02 |
|
cmyers
| and you could > them into the list in advance | 18:02 |
| ← v0n left | 18:02 |
|
cmyers
| oh, yes, or that. | 18:02 |
| → caseymcg joined | 18:02 |
| → erichammond joined | 18:02 |
|
WebDragon
| yes! another 'useless use of something like cat' has been resolved | 18:02 |
|
cmyers
| could also be a `find . -type f -name '*.xml'` or something like that | 18:03 |
| → Yuuhi joined | 18:03 |
|
cmyers
| not useless if you want to do more than one command, like `checkout` followed by `add` or something | 18:03 |
|
WebDragon
| backticks ftw | 18:03 |
| ← Saur left | 18:03 |
| → q0rban joined | 18:03 |
|
WebDragon
| agreed the for i in ..; do ; done is useful | 18:04 |
| ← Neo left | 18:04 |
| ← phantomcircuit left | 18:04 |
|
WebDragon
| I typically use it when using imagemagick to create thumbs of snaps for the image galleries or whatever, and have to have a consistent naming convention when done | 18:05 |
| → phantomcircuit joined | 18:05 |
| → Neo joined | 18:06 |
|
ki__
| fr0sty-away: hey i stashed but it didn't really move the files i had changed locally. How can I get rid of these files locally so i can merge? | 18:06 |
| ← caseymcg left | 18:06 |
| ← guardian left | 18:06 |
| ← erichammond left | 18:06 |
|
thiago_home
| ki__: untracked files? | 18:07 |
| → pantsman joined | 18:07 |
| ← pantsman left | 18:07 |
| → pantsman joined | 18:07 |
|
ki__
| thiago_home: no, Changed but not updated: | 18:07 |
|
thiago_home
| ki__: stash them or commit them | 18:07 |
|
spetrea
| any way to git-add nonrecursive ? | 18:07 |
|
ki__
| it says: use "git checkout -- <file>..." to discard changes in working directory | 18:07 |
|
| but that isn't working, like it normally does! | 18:08 |
|
| and git stash says it stashed, however, i still have those files listed as "Changed but not updated" | 18:08 |
|
| i think something is wrong ... ? | 18:08 |
|
thiago_home
| is the same file listed in the other section of git status? | 18:08 |
| ← psoo left | 18:11 |
| ← Adaptee left | 18:11 |
| ← thiago_home left | 18:11 |
| adamholt → adamholt_away | 18:11 |
| adamholt_away → adamholt | 18:11 |
| ← ddilinger left | 18:11 |
| ← bryanl left | 18:12 |
| ← MikhX left | 18:12 |
| → jutaro joined | 18:14 |
| ← avinashhm left | 18:15 |
| ← avinash_hm left | 18:15 |
| → bonaventura joined | 18:18 |
| → mklappstuhl joined | 18:18 |
| ← tjholowaychuk left | 18:19 |
| → codeshah joined | 18:20 |
| → murtada joined | 18:21 |
| → bitkiller joined | 18:21 |
| → tjholowaychuk joined | 18:21 |
|
| fr0sty-away suspects line endings... | 18:22 |
| ← mikl left | 18:23 |
| → jmcantrell joined | 18:23 |
| aroop → aroop|away | 18:24 |
| aroop|away → aroop | 18:24 |
| ← codeshah left | 18:25 |
| ← Corren left | 18:25 |
| ← bonaventura left | 18:27 |
|
etcetera
| is .gitignore supposed to be in the root directory? | 18:27 |
| ← snearch left | 18:27 |
|
nielx
| say I have a remote git repo, and a local clone (which might not be a direct clone). My clone differs, and I want to find out which parent revs are in common with the remote repo. Could I find out? | 18:27 |
|
dr_lepper
| etcetera, it can be in any directory | 18:27 |
|
| etcetera, it provides rules for the directory, where it is, and below | 18:28 |
|
etcetera
| ok. | 18:28 |
|
| what does this do: 'git remote add origin' | 18:30 |
|
| ? | 18:30 |
|
| I am trying to push a locally init'd repo to github. | 18:30 |
|
| I created the repo using the github ui already though. | 18:30 |
|
| I'm guessing I don't need that as I've already completed that step. | 18:30 |
|
| ? | 18:30 |
|
| or does it just alias 'origin' to the remote repo? | 18:30 |
|
cbreak
| git remote add adds a new remote | 18:31 |
|
dr_lepper
| etcetera, you'd want to read man git-remote | 18:31 |
|
jast
| etcetera: [automatic message] the 'git-remote' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-remote.html | 18:31 |
|
dr_lepper
| etcetera, basically, it creates an entry in your repository's remote list | 18:32 |
| ← jdav_gone left | 18:32 |
|
etcetera
| dr_lepper: so I don't need it, I can just issue the push to the repo? | 18:32 |
|
dr_lepper
| it's like an entry in an addressbook | 18:32 |
| → Corren joined | 18:32 |
|
etcetera
| right, 'alias' ;-) | 18:32 |
|
dr_lepper
| well, technically you can push to the address itself | 18:32 |
|
etcetera
| sure, but why do they call it "origin" | 18:33 |
|
dr_lepper
| it's just a convention | 18:33 |
|
etcetera
| sounds very...stargate. | 18:33 |
|
| by which I mean, fanatical and useless ;-) | 18:33 |
| → Chillance joined | 18:33 |
|
dr_lepper
| when you use "git clone" it creates an entry named "origin" in the cloned repository's remote list | 18:33 |
|
etcetera
| ah. | 18:34 |
|
dr_lepper
| of course you can name the remote any way you want | 18:34 |
| → drizzd joined | 18:34 |
|
etcetera
| makes sense. thanks. | 18:34 |
| ← lanthan left | 18:34 |
| → Pilif12p joined | 18:34 |
| → dannas joined | 18:35 |
| → mdel joined | 18:35 |
| ← Titosemi left | 18:36 |
| → vdv joined | 18:36 |
|
etcetera
| darn, I hate this pipe so much! | 18:36 |
|
| the download / upload rate keeps on diminishing till it's basically nothing. | 18:37 |
| ← lsolesen left | 18:37 |
| → gebi joined | 18:38 |
|
etcetera
| does github offer shorturls for repo names? | 18:39 |
| ← scrooloose left | 18:39 |
| → scrooloose joined | 18:41 |
|
dr_lepper
| etcetera, what do you mean? | 18:41 |
|
etcetera
| dr_lepper: https://github.com/SomeUserName/SomeRepositoryName -> git.ub/as948jX | 18:42 |
| → HG`` joined | 18:42 |
| ← Textmode left | 18:42 |
| ← Vile left | 18:42 |
|
etcetera
| or...for a given gist. | 18:42 |
|
dr_lepper
| ask at #github | 18:43 |
| rndbit → zz_rndbit | 18:43 |
|
dAnjou
| cmyers: i messed things up more, so i decided to go the hard way and discard all my local changes (that's not really tragic) and clone a clean working copy. but i want to give you a huge thanks for your time .. also i learned a bit about git today :) | 18:44 |
| ← HG` left | 18:44 |
|
cmyers
| dAnjou: I'm glad it was helpful. | 18:45 |
|
albel727
| cloning anew is not the hard way. fixing it all is harder. ) | 18:45 |
|
cmyers
| albel727: that depends. | 18:45 |
|
albel727
| well, fixing it all is actually easier, if you know what you're doing. but not in that case, obviously. =) | 18:46 |
|
cmyers
| fetch + reset is exactly equivaelnt to cloning unless the server F'd something up, but you still have commits around to pull diffs from instead of rewriting changes from scratch | 18:46 |
| → ExtraSpice joined | 18:47 |
|
albel727
| fetch + reset = cloning? I wouldn't call it that. fetch is usually only a small incremental update, while clone is a one-shot get-it-all heavy operation. | 18:47 |
|
hyperair
| albel727: git init; git remote add origin git://blah; git fetch origin; git reset --hard origin/master | 18:48 |
|
cmyers
| what hyperair said. | 18:48 |
| ← necromancer left | 18:49 |
| ← ivey left | 18:49 |
|
dr_lepper
| hyperair, also --set-origin | 18:49 |
|
albel727
| I'm well aware of it, thanks. =) but again, fetching big repo != further incremental fetches, as anyone with a slow connection can tell ) | 18:50 |
|
dr_lepper
| s/origin/upstream/ | 18:50 |
|
hyperair
| dr_lepper: which git command is that? | 18:50 |
|
| ah | 18:50 |
| → Captain`Ramen joined | 18:50 |
| → Textmode joined | 18:50 |
| ← Captain`Ramen left | 18:50 |
| → captainramen joined | 18:51 |
| ← nielx left | 18:51 |
| ← AkumaStreak left | 18:51 |
| → ShooterMG joined | 18:53 |
| → intripoon_ joined | 18:53 |
| → thews_ joined | 18:54 |
| → fakewaffle joined | 18:55 |
| ← icwiener left | 18:56 |
| ← thews left | 18:56 |
| thews_ → thews | 18:56 |
| ← intripoon left | 18:56 |
| ← thm left | 18:56 |
| → caseymcg joined | 18:59 |
| → LongBeach joined | 18:59 |
| → nenjordi joined | 19:00 |
| → nielx joined | 19:01 |
| → ymasory_ joined | 19:01 |
| → tzervo joined | 19:02 |
| → cheezus joined | 19:02 |
| → pyrony joined | 19:02 |
|
cheezus
| hey guys, I've created a branch by doing git checkout -b mybranch . Now, how do I make it so that when I do "git push", it pushes my new branch as well? | 19:02 |
|
dAnjou
| cheezus: it does so automatically .. afair | 19:03 |
| SavoxUnity → SavoxGlutton | 19:03 |
|
cheezus
| dAnjou: doesn't seem to… When I say "git push" it says everything up to date | 19:04 |
| → sterlo joined | 19:04 |
|
dAnjou
| did you commit things? | 19:04 |
| → berserkr joined | 19:04 |
|
cheezus
| dAnjou: I did | 19:04 |
| → preflex joined | 19:05 |
| ← caseymcg left | 19:05 |
|
cmyers
| cheezus: if you are ever confused, give git push more info. `git push <remote> <localbranch>:<remotebranch>` | 19:05 |
| → necromancer joined | 19:05 |
|
cmyers
| then you know exactly what you are telling it and see if it still says that | 19:05 |
|
cheezus
| cmyers: hrm, good point, let me try that | 19:05 |
| → caseymcg joined | 19:05 |
|
cmyers
| the data in .git/config tells git what to push when you do `git push`, but I never use that, it is too confusing. | 19:05 |
| ← noonoooo left | 19:05 |
|
cmyers
| besides, good tools don't read your mind, you tell them exactly what you want. | 19:06 |
| → erichammond joined | 19:06 |
|
nenjordi
| hi all, I'm doing a "git rebase -i 12345^" and now I realized the log is too big to go line by line today. Is there a way to store my changes and continue later or when I leave the editor it will be too late? | 19:06 |
| ← tzervo left | 19:07 |
|
cmyers
| nenjordi: you can type literally anything into that | 19:07 |
|
| it's a domain language | 19:07 |
|
cheezus
| cmyers: when I do it that way, it says: " * [new branch] …" as I expect | 19:07 |
|
| now how do I get it to do this automagically? | 19:07 |
|
cmyers
| so just save the output, then later, do another rebase and load the file into your editor | 19:07 |
|
dAnjou
| cheezus: maybe you have to do it the first time manually | 19:07 |
|
cmyers
| cheezus: see `git branch -t` and `git pull -u` I think, among others. | 19:07 |
| ← digitteknohippie left | 19:07 |
|
cmyers
| there is more than one way to set up "tracking branches" | 19:07 |
|
dAnjou
| i remember doing a git push and it pushed all branches that had something to push | 19:08 |
|
nenjordi
| cmyers: thanks a lot | 19:08 |
| → alester joined | 19:09 |
|
cheezus
| so I did git push <host> <local>:<remote> and then git branch —set-upstream remotes/<branch> | 19:09 |
|
| that looks stupid | 19:09 |
| legumbre_ → legumbre | 19:09 |
|
canton7
| cheezus, git push -u is handy | 19:10 |
|
nenjordi
| cmyers: now I get commit messages in editor, is that normal? | 19:10 |
|
| btw: it is my first rebase | 19:10 |
|
| :D | 19:10 |
|
cmyers
| nenjordi: yes, the first editor is teh "script" it is going to run | 19:10 |
|
cheezus
| canton7: ah, interesting | 19:10 |
|
cmyers
| if you did any edits or squashes, it will pop open an editor for each one so you can edit the msg or squash the two messages together | 19:11 |
|
| "-i" means "interactive" | 19:11 |
|
canton7
| the bit of "modern" git magic i particularly like | 19:11 |
| ← phantomcircuit left | 19:11 |
|
cheezus
| so would this be ok: git branch -b whatever master && git push -u ? | 19:12 |
|
nenjordi
| so, it will show me the commits for all the ones I modified right? | 19:12 |
|
cheezus
| that question is for canton7 | 19:12 |
|
nenjordi
| the ones I didn't modify will be ignored? | 19:12 |
|
canton7
| cheezus, assuming that the branch doesn't yet exist in <remote>, you have to tell gut what branch to push where (remember you might have two remotes, and git doesn't want to assume which you want it to push to), so it's more like git push -u <remote> <new_branch> | 19:13 |
|
| cheezus, there's no option -b for git branch though. you're getting confused with checkout :) | 19:14 |
| → digitteknohippie joined | 19:14 |
| canton7 → canton7_away | 19:14 |
|
cheezus
| canton7_away: of course | 19:14 |
| canton7_away → canton7 | 19:15 |
| ← berserkr left | 19:16 |
| → Spockz joined | 19:16 |
| ← keystr0k left | 19:17 |
| → owst joined | 19:17 |
| ← Error404NotFound left | 19:19 |
| ← workmad3 left | 19:19 |
| → psoo joined | 19:19 |
| → berserkr joined | 19:21 |
| ← Swaagie left | 19:21 |
|
nenjordi
| cmyers: should I have changed the file name? | 19:21 |
|
| cmyers: :s | 19:21 |
| ← aminpy left | 19:22 |
| → simosx joined | 19:22 |
| → phantomcircuit joined | 19:22 |
| ← dreiss left | 19:23 |
|
nenjordi
| have to go, thanks anyway :D | 19:23 |
| ← nenjordi left | 19:23 |
| → chrisdev joined | 19:25 |
| ← montylounge left | 19:26 |
| ← psoo left | 19:26 |
| aroop → aroop|away | 19:26 |
| → jds joined | 19:26 |
| → tyrone_slothrop joined | 19:28 |
| ← mando left | 19:28 |
| → jdav_gone joined | 19:30 |
| → Eaven joined | 19:30 |
| → Error404NotFound joined | 19:32 |
| → Ziaix joined | 19:33 |
| ← Ziaix left | 19:34 |
| ← ki__ left | 19:34 |
| → legumbre_ joined | 19:35 |
| ← jds left | 19:36 |
|
tyrone_slothrop
| my git repo seems to have gotten into quite the strange state. a git diff-tree on two commits shows a file as deleted but there's no commits on the file when I do a git log with the same commits so I'm curious why git deletes the file when I merge. | 19:37 |
| ← legumbre left | 19:38 |
|
tyrone_slothrop
| 'git diff-tree --stat --summary A..B -- file.txt' shows it as deleted yet 'git log A...B -- file.txt' shows nothing. | 19:38 |
| → hobodave joined | 19:39 |
| → res0nat0r joined | 19:40 |
| → xerora joined | 19:41 |
| ← murtada left | 19:42 |
| → MikhX joined | 19:42 |
| → tech13 joined | 19:45 |
|
tech13
| Is there a way to define the order for 'git remote update' ? Have a couple of remotes, that tend to have many of the same things, but some have notably better network connections then others. | 19:46 |
| ← res0nat0r left | 19:47 |
|
patrikf
| tech13: try setting remotes.default (you'll have to update it manually though for new remotes) | 19:47 |
| ← Vampire0_ left | 19:49 |
|
serverhorror
| hmm when I create a tag with git and do a git svn dcommit afterwards there's no magic that will somehow create a tag in svn, correct? | 19:49 |
| → dreiss joined | 19:50 |
|
wereHamster
| serverhorror: corect | 19:50 |
| ← alester left | 19:51 |
|
d1zzy
| if you want magic you should buy some iStuff | 19:51 |
| ← beatak left | 19:52 |
|
drizzd
| and if you tag previous to dcommit, the tagged commit does not generally exist in svn | 19:52 |
| ← OOPMan left | 19:52 |
| → beatak joined | 19:52 |
| ← ymasory_ left | 19:53 |
|
tech13
| patrikf, looks like that would do it. Don't see much about what format should be in that option though. Happen to have a link that explains it, or gives a sample value? | 19:53 |
| ← jutaro left | 19:53 |
| → tty3 joined | 19:54 |
| ← owst left | 19:54 |
|
patrikf
| tech13: probably either space-separated or giving the same config key twice (or using git config --add) | 19:54 |
| → swtaarrs joined | 19:55 |
| ← MikhX left | 19:56 |
| ← tty2 left | 19:57 |
| ← rosco_y left | 19:57 |
| ← drubies left | 19:58 |
| → airborn joined | 19:59 |
| ← RaceCondition left | 20:00 |
| → alester joined | 20:00 |
| → RaceCondition joined | 20:00 |
| ← RaceCondition left | 20:00 |
| → RaceCondition joined | 20:01 |
| ← RaceCondition left | 20:01 |
| → dl9pf_ joined | 20:01 |
| ← dl9pf left | 20:01 |
| ← chrisf left | 20:02 |
| chrisf|work → chrisf | 20:02 |
| → chrisf_ joined | 20:02 |
| ← alester left | 20:02 |
| → RaceCondition joined | 20:03 |
| → tyfighter joined | 20:03 |
| → Vampire0_ joined | 20:03 |
| → alester joined | 20:04 |
| Vampire0_ → Vampire0 | 20:04 |
| → guns joined | 20:06 |
| → OOPMan joined | 20:08 |
| → MikhX joined | 20:08 |
| ← nielx left | 20:10 |
| → dnorman joined | 20:10 |
| ← dnorman left | 20:11 |
| ← deekayen left | 20:11 |
| → flavius joined | 20:11 |
| SavoxGlutton → JesusLovesYou | 20:12 |
| → deekayen joined | 20:12 |
|
flavius
| Hi. How can I check out a remote 'abc' into a new branch? | 20:12 |
| ← [intra]lanman left | 20:14 |
| ← cornfeed left | 20:14 |
| → [intra]lanman joined | 20:14 |
| ← guns left | 20:15 |
|
canton7
| flavius, check out a remote? do you mean a branch from a remote? | 20:15 |
| ← ping-pong left | 20:17 |
| ← hvgotcodes left | 20:17 |
| ← LongBeach left | 20:17 |
|
flavius
| canton7: I've followed the instructions http://bradlyfeeley.com/2008/09/03/update-a-github-fork-from-the-original-repo/ however i would like that remote to be "attached" to a new branch | 20:17 |
|
| and not merge directly from the remote | 20:18 |
|
canton7
| ah, so you mean the *master* branch on the remote. a remote is an entire git respository, with potentially multiple branches | 20:18 |
|
flavius
| yes | 20:18 |
| → Vile joined | 20:19 |
| → mando joined | 20:19 |
| ← jrabbit left | 20:19 |
|
canton7
| just git checkout -b local_branch_name remote_name/master will do it | 20:19 |
|
| that won't set up any tracking | 20:19 |
|
| so a git pull won't merge anything in from that remote | 20:19 |
| ← Juo left | 20:20 |
| ← mklappstuhl left | 20:22 |
|
flavius
| thanks it worked | 20:23 |
|
| and if i want to see the diff between that branch and the currently active master branch? | 20:23 |
| ← swtaarrs left | 20:23 |
|
canton7
| addendum - if you do want tracking, use -t instead of -b (-t implied -b) | 20:23 |
|
| **implies | 20:23 |
|
flavius
| what does tracking mean? | 20:23 |
|
canton7
| git diff remote_name/master master | 20:24 |
| → nielx joined | 20:24 |
| legumbre_ → legumbre | 20:24 |
| ← Fuu left | 20:24 |
|
canton7
| in this context, it means that git knows that you want a "git pull" to pull from that remote when that branch is checked out | 20:25 |
| → ping-pong joined | 20:26 |
| → Linkadmin joined | 20:26 |
| ← dannas left | 20:26 |
| → zivester_ joined | 20:26 |
|
Linkadmin
| when you do a git checkout -b myBranch, does it create the branch based on HEAD, or does it include your uncommitted changes? | 20:26 |
|
canton7
| keeps everything uncommitted | 20:27 |
|
| (and untracked) | 20:27 |
|
flavius
| when i use -t it says "fatal: Missing branch name; try -b" | 20:27 |
| → gebbione joined | 20:27 |
|
canton7
| git checkout -t local_name remote/master ? | 20:28 |
|
flavius
| yes | 20:28 |
| → rcu joined | 20:30 |
|
canton7
| my bad. git checkout -t origin/branch will create a new local-tracking branch called "branch" | 20:30 |
|
| git checkout -t -b local origin/master will create a new local-tracking branch called "local" | 20:30 |
| ← d0k left | 20:30 |
| ← tanuki_ left | 20:30 |
|
flavius
| ook and how to create a new remote-tracking branch? | 20:31 |
| → ph^ joined | 20:31 |
| ← hobodave left | 20:31 |
|
canton7
| ack, i need more sleep. substitude "local-tracking" with "remote-tracking" in my last message :$ | 20:31 |
|
flavius
| i know how it is i am tired too ... | 20:31 |
| → tjh joined | 20:31 |
|
flavius
| :) | 20:32 |
|
| canton7 goes off to make a cuppa | 20:32 |
|
flavius
| thanks bud good luck | 20:32 |
|
canton7
| np. also, if you want to set up tracking on a branch which isn't currently tracking anything, git branch --set-upstream and git push -u (either will do) are your friends | 20:32 |
| → v4n joined | 20:33 |
| aroop|away → aroop | 20:34 |
| → lanthan joined | 20:34 |
| ← q0rban left | 20:34 |
| ← ymasory left | 20:35 |
| ← tjholowaychuk left | 20:35 |
| → workmad3 joined | 20:35 |
| ← g0bl1n left | 20:36 |
| → mikl joined | 20:36 |
| ← mikl left | 20:37 |
| → runa joined | 20:37 |
|
runa
| heyas. I have a relatively big repo and a branch checkout takes ~1minute. I've tried git-gc --aggressive with no luck. any hints? | 20:37 |
|
[exa]
| how big is the actual repository? | 20:39 |
|
| btw. isn't your filesystem somehow slow? | 20:39 |
| → WL6784 joined | 20:39 |
| → owst joined | 20:40 |
|
runa
| [exa]: 20k files, using ext4 on a 5400rpm disk | 20:40 |
| → qdw joined | 20:41 |
| → fbass joined | 20:42 |
|
fbass
| git is cool | 20:42 |
| → jophish joined | 20:42 |
| ← simplechat left | 20:42 |
| ← owst left | 20:43 |
| → mikl joined | 20:44 |
| JesusLovesYou → JesusHatesYou | 20:45 |
| JesusHatesYou → Xavierbrightness | 20:46 |
| ← tty3 left | 20:47 |
| → tty1 joined | 20:48 |
| → ki__ joined | 20:49 |
| ← glcrazy left | 20:49 |
| aroop → aroop|away | 20:49 |
| ← nielx left | 20:49 |
| aroop|away → aroop | 20:50 |
| → glcrazy joined | 20:50 |
| → guardian joined | 20:50 |
| → nielx joined | 20:51 |
| ← jitesh_shetty left | 20:51 |
|
[exa]
| runa: that might be a FS performance problem. Probably try it in tmpfs, that is usuable for debugging speed issues. Btw I assume that CPU usage is low during checkout, is that right? | 20:51 |
| ← bindaas left | 20:52 |
| ← squiggy left | 20:53 |
| ← v4n left | 20:53 |
| → simula joined | 20:54 |
| ← tech13 left | 20:55 |
| ← jsick3 left | 20:56 |
| → dnorman joined | 20:56 |
| ← zivester_ left | 20:56 |
|
runa
| [exa]: yep. I have the output of 'time git co stable' if you want to see it | 20:58 |
| ← leitao left | 20:58 |
| ← jnylen left | 20:59 |
| ← deekayen left | 20:59 |
| → mysphyt joined | 20:59 |
| → jnylen joined | 21:00 |
| ← tgunr_ left | 21:00 |
| ← boombatower left | 21:01 |
| → q0rban joined | 21:02 |
| ← dnorman left | 21:02 |
| ← resixian left | 21:03 |
| → deekayen joined | 21:03 |
| ← dv310p3r left | 21:03 |
| ← radarek left | 21:05 |
| → thiago_home joined | 21:06 |
| → v4n joined | 21:06 |
| ← flavius left | 21:07 |
| ← mysphyt left | 21:10 |
| → squiggy joined | 21:10 |
| ← bitkiller left | 21:11 |
| → Fuu joined | 21:11 |
| → gigamonkey joined | 21:11 |
| ← gigamonkey left | 21:12 |
| ← panike left | 21:12 |
| ← glcrazy left | 21:13 |
| ← booginga left | 21:13 |
| → radarek joined | 21:13 |
| → morganick joined | 21:14 |
| ← quiliro left | 21:15 |
| ← Freakshow left | 21:15 |
| → Freakshow joined | 21:15 |
| pyrony → scalabot_ | 21:16 |
| scalabot_ → pyrony | 21:16 |
| ← dj_goku left | 21:16 |
| → dj_goku_ joined | 21:16 |
| ← dj_goku_ left | 21:16 |
| → dj_goku_ joined | 21:16 |
| ← mdel left | 21:17 |
| ← fbass left | 21:17 |
| → brodo_ joined | 21:18 |
| ← deuterium left | 21:18 |
| → malumalu joined | 21:19 |
| → fbass joined | 21:19 |
| ← brodo left | 21:20 |
| brodo_ → brodo | 21:20 |
| → cthuluh joined | 21:21 |
| ← chombee left | 21:21 |
| → Zenopus_ joined | 21:21 |
| ← Zenopus left | 21:22 |
| Zenopus_ → Zenopus | 21:22 |
| → robotarmy joined | 21:25 |
| ← TeckniX left | 21:26 |
| → ddilinger joined | 21:26 |
| → bkosborne joined | 21:26 |
| ← nielx left | 21:26 |
| ← brodo left | 21:26 |
| → bryanl joined | 21:27 |
| → EricInBNE joined | 21:27 |
| Xavierbrightness → FckOTAs | 21:29 |
| ← tystr left | 21:30 |
| → orafu joined | 21:30 |
| ← morganick left | 21:30 |
| ← calimocho left | 21:30 |
| ← PabloM left | 21:31 |
| → tystr joined | 21:31 |
| → guns joined | 21:31 |
| ← alex__c2022 left | 21:31 |
| → shapr joined | 21:32 |
|
shapr
| Hi, is there a Linux Standard Base -style convention for filesystem location of shared git repos? Maybe /usr/src/ or /opt or something? | 21:32 |
| ← bartek left | 21:32 |
| ← erichammond left | 21:33 |
|
thiago_home
| shapr: probably /srv | 21:33 |
| ← Dave^| left | 21:34 |
| ← tystr left | 21:34 |
|
shapr
| thiago_home: Thanks. Any idea if there's any mailing list traffic / wiki page /etc on this subject? | 21:34 |
| ← Guedes left | 21:34 |
|
shapr
| thiago_home: Or more succintly, why /srv instead of some other location? | 21:34 |
|
thiago_home
| well, what does the LSB say? | 21:34 |
| → tystr joined | 21:34 |
| ← fbass left | 21:35 |
| ← runa left | 21:35 |
|
thiago_home
| http://www.pathname.com/fhs/pub/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYSTEM | 21:35 |
| ← metcalfc left | 21:35 |
| → boombatower joined | 21:35 |
|
shapr
| thiago_home: point, that explicitly mentions cvs | 21:36 |
| → mklappstuhl joined | 21:36 |
| → bulavard joined | 21:39 |
|
bulavard
| . | 21:40 |
| → fbass joined | 21:40 |
| ← bkosborne left | 21:40 |
| ← eijk left | 21:41 |
|
wereHamster
| /var/git | 21:41 |
| → ymasory joined | 21:41 |
| ← bulavard left | 21:41 |
| ← cheezus left | 21:41 |
| → jaimef joined | 21:41 |
| → paeva joined | 21:42 |
| ← sterlo left | 21:42 |
| → CollinPDX joined | 21:42 |
| ← justin-george left | 21:44 |
| ← boutcher left | 21:45 |
| ← ISF left | 21:45 |
| → justin-george joined | 21:46 |
|
shapr
| wereHamster: The rationale given in the FHS implies /srv is the right place rather than /var | 21:46 |
| ← radarek left | 21:46 |
|
shapr
| thiago_home: Thanks for the help! | 21:47 |
| ← shapr left | 21:47 |
| → mgorbach228 joined | 21:47 |
| ← mgorbach228 left | 21:47 |
| → Fuu` joined | 21:48 |
| → mgorbach228_ joined | 21:49 |
| → n1ck3 joined | 21:49 |
| ChanServ set mode: +v | 21:49 |
|
mgorbach228_
| Anyone to help with a git repository problem? | 21:50 |
|
| I tried to push to a local branch, and it won't succeed. | 21:50 |
|
| error: Ref refs/heads/shared-outlineView-work is at <hash> but expected 0000000000000000000000000000000000000000 remote: error: failed to lock refs/heads/shared-outlineView-work To . ! [remote rejected] destiny-outlineView-work -> shared-outlineView-work (failed to lock) | 21:50 |
| ← Fuu left | 21:50 |
|
thiago_home
| how did you try to push | 21:51 |
|
| ? | 21:51 |
| ← engla left | 21:51 |
|
mgorbach228_
| git push | 21:52 |
|
| I have it set up to track, and push to the tracking branch. | 21:52 |
|
thiago_home
| what is the branch it's tracking? | 21:52 |
|
| itself? | 21:52 |
| ← rayners left | 21:53 |
| ← tyfighter left | 21:53 |
| ← ExtraSpice left | 21:53 |
| → erichammond joined | 21:53 |
| ← mklappstuhl left | 21:53 |
|
mgorbach228_
| destiny-outlineView-work is tracking shared-outlneView-work | 21:54 |
|
| I was pushing from destiny-outlineView-work to shared-outlineView-work | 21:54 |
|
thiago_home
| try again | 21:54 |
|
| push to . works just fine | 21:54 |
|
| thiago_home uses that to update a branch he hasn't used in a while just before checking it out | 21:54 |
| FckOTAs → SeriouslyBRB | 21:55 |
| ← guardian left | 21:55 |
|
mgorbach228_
| I think it's a permissions isssue. | 21:55 |
|
| sudo works fine on the push | 21:55 |
| ← SimonP86 left | 21:55 |
|
mgorbach228_
| but without sudo the push fails | 21:55 |
| ← blorbx left | 21:56 |
| ← Spockz left | 21:56 |
|
mgorbach228_
| I think I might have messed up the permissions for the directories inside .git. | 21:57 |
| SeriouslyBRB → Savoxis | 21:58 |
| ← dj_goku_ left | 21:59 |
| ← alester left | 22:00 |
| ← alip left | 22:01 |
| → alip joined | 22:01 |
| → whyking joined | 22:01 |
| ← MikhX left | 22:01 |
| ← deekayen left | 22:02 |
| ← TrineLocke left | 22:02 |
| → MikhX joined | 22:02 |
| → TLMonitor joined | 22:03 |
| → guardian joined | 22:04 |
| ← trobrock left | 22:06 |
| → MikhX_ joined | 22:06 |
| ← MikhX_ left | 22:07 |
| → lolfrenz joined | 22:07 |
| ← erichammond left | 22:07 |
| → erichammond joined | 22:07 |
| ← ThomasLocke left | 22:08 |
| ← MikhX left | 22:09 |
| ← excess^ left | 22:10 |
| ← airborn left | 22:10 |
| ← Dynetrekk left | 22:11 |
| ← Tommy[D] left | 22:11 |
|
simula
| \clear | 22:12 |
|
FauxFaux
| |clear | 22:12 |
| ← guardian left | 22:13 |
| → engla joined | 22:13 |
| ← HG`` left | 22:14 |
| → sigh joined | 22:15 |
| ← joel_falcou left | 22:16 |
| → MikhX joined | 22:17 |
| ← rendar left | 22:19 |
| → metcalfc joined | 22:21 |
| → Tommy[D] joined | 22:21 |
| → varioust joined | 22:22 |
| ← sylr left | 22:22 |
| ← WebDragon left | 22:24 |
| → joel_falcou joined | 22:24 |
| ← israel_dahan left | 22:25 |
| ← boombatower left | 22:25 |
| → madewokherd joined | 22:26 |
| ← etcetera left | 22:27 |
| ← WL6784 left | 22:28 |
| ← joel_falcou left | 22:28 |
| ← kipras_ left | 22:28 |
| → Chibby_ joined | 22:29 |
| → paeva_ joined | 22:29 |
| → angelsl joined | 22:30 |
| → mklappstuhl joined | 22:30 |
| ← Deck` left | 22:32 |
|
ichilton
| Can different branches in a repo have a submodule pointing to different commits/branches? | 22:32 |
|
| the submodule chapter in Pro Git implies not... | 22:33 |
| ← tstclair left | 22:33 |
| ← n1ck3 left | 22:33 |
| ← paeva left | 22:33 |
| ← ebi left | 22:34 |
| ← saschagehlich left | 22:34 |
| → saschagehlich joined | 22:35 |
|
patrikf
| I've never used submodules, but from the technical side nothing speaks against it | 22:36 |
| ← workmad3 left | 22:36 |
| ← Error404NotFound left | 22:36 |
|
patrikf
| if you have a repo at hand, try it with a fresh clone? | 22:36 |
| → trobrock joined | 22:36 |
| ← ph^ left | 22:40 |
| ← v4n left | 22:42 |
| ← sigh left | 22:43 |
| ← trobrock left | 22:44 |
| → ebi joined | 22:44 |
| → Error404NotFound joined | 22:46 |
| ← necromancer left | 22:47 |
| → lightcap joined | 22:47 |
|
ichilton
| patrikf: yeah, I might do some tests - thanks | 22:49 |
| banghouse → walkinDAWG | 22:50 |
| ← sonnym left | 22:50 |
| → rpg joined | 22:50 |
| → hackeron joined | 22:50 |
| ← grahamc left | 22:50 |
| ← falican left | 22:52 |
|
hackeron
| hey, I have a question about updating submodules. My submodule is configured to be url = git://git.videolan.org/x264.git -- I do git submodule init - then I do git submodule update - this clones x264 into dist/x264 -- when I do git submodule update again after the x264 repo is updated, it does nothing :/ -- how do I get it to pull the x264 changes? | 22:52 |
| ← tjh left | 22:53 |
| → trobrock joined | 22:55 |
|
harleypig
| When doing 'git status -s' I have two files listed as ' T path/to/file' I can't find the meaning for the T. What does this mean? | 22:57 |
|
canton7
| hackeron, the parent repo holds the exact commit that it wants the submodule to be at | 22:57 |
|
| so cd into the submodule, git pull | 22:57 |
|
| then cd back to the root of your parent project, and git status | 22:57 |
| → drubies joined | 22:57 |
|
hackeron
| canton7: when I do that, it says: "You are not currently on a branch, so I cannot use any...." | 22:57 |
|
canton7
| that should tell you that there are new commits in that submodule (or something, can't remember the exact message) | 22:57 |
|
| then add and commit | 22:58 |
|
hackeron
| add what? | 22:58 |
| ← tearsong left | 22:58 |
|
canton7
| hackeron, point. git checkout master && git pull mebbe? | 22:59 |
|
| git add path/to/submodule | 22:59 |
|
hackeron
| canton7: I did cd dist/x264 && git checkout master && git pull -- that said already up to date :/ | 23:00 |
| ← mrball left | 23:00 |
| ← drizzd left | 23:00 |
|
hackeron
| canton7: any ideas? | 23:02 |
|
canton7
| are you sure that the remote has updated since you did git submodule update for the first time? | 23:02 |
| ← Corren left | 23:02 |
| ← rcu left | 23:04 |
|
hackeron
| canton7: actually, wait, maybe it hasn't - tried to git pull a module to which I have control - after adding a new file - that worked | 23:04 |
| ← TheWarden left | 23:04 |
| → tty2 joined | 23:04 |
|
canton7
| hackeron, sweet. we're back on predictable territory :) | 23:04 |
|
hackeron
| canton7: so I have to manually cd into each submodule, and do git pull origin? | 23:04 |
|
canton7
| unless there's a shortcut / flag I haven't come across yet | 23:04 |
|
albel727
| git submodule foreach? | 23:05 |
|
canton7
| as I say, the parent repo holds the exact commit that a submodule is at (try a git diff path/sub/submodule after updating the submodule to see what I mean) | 23:05 |
| ← simosx left | 23:06 |
|
hackeron
| hmm, also my submodule has only one branch, master -- the others, I don't know. How do I just get it to pull whatever branch it did in the first place? | 23:06 |
| ← engla left | 23:06 |
|
thiago_home
| submodules don't track branches | 23:06 |
|
| they keep an exact commit | 23:06 |
|
hackeron
| so how do I update? -- git submodule update --init works somehow -- how do I tell git - do that again? | 23:06 |
| ← tty1 left | 23:07 |
|
canton7
| albel727 has a point: http://stackoverflow.com/questions/1030169/git-easy-way-pull-latest-of-all-submodules has a discussion | 23:07 |
|
hackeron
| well, when I try that, it says: You are not currently on a branch, so I cannot use any | 23:07 |
|
| 'branch.<branchname>.merge' in your configuration file. | 23:08 |
|
| ah, so I guess I need to do: git submodule foreach git pull origin master | 23:08 |
| → joel_falcou joined | 23:08 |
| ← gebbione left | 23:08 |
| ← alberto56 left | 23:09 |
| ← pantsman left | 23:09 |
| ← Amorphous left | 23:10 |
| ← jtza8 left | 23:10 |
| → yogurt_truck joined | 23:11 |
|
harleypig
| T is typechange ... still can't find docs on this ... does this mean the filetype has changed? Or something else? | 23:11 |
|
thiago_home
| where? | 23:12 |
|
| albel727 suspects that means a file got executable/symlink bit set/cleared. | 23:12 |
|
harleypig
| thiago_home: on the assumption you're asking me, git status -s is giving me ' T' on two files. | 23:13 |
| ← n8o-mba left | 23:13 |
|
ki__
| git reset --hard only resets files on my working directory, right? | 23:13 |
|
yogurt_truck
| is it possible to do a git push using a specific config file with different user.name and user.email than the ones in the global configuration? | 23:13 |
| → jaws joined | 23:13 |
|
albel727
| of course. both answers. | 23:13 |
|
cbreak
| ki__: it also changes the current branch | 23:14 |
|
thiago_home
| I don't know, sorry. I have never used status -s. | 23:14 |
|
cbreak
| yogurt_truck: git push has nothing to do with user.name and user.email | 23:14 |
|
| yogurt_truck: so you can change it to what ever you want, it's ignored anyway | 23:14 |
|
harleypig
| thiago_home: :] no problem ... I ran git status and the same two files were labeled as typechange | 23:14 |
|
| albel727 needs some sleep. he completely misread both questions. | 23:15 |
|
thiago_home
| harleypig: did it say that exactly? | 23:15 |
| ← Plouj left | 23:15 |
|
ki__
| cbreak: the current branch locally, right? I want to get my working folder back to what the remote/origin/master is | 23:15 |
|
yogurt_truck
| cbreak: oh i see. ok thx | 23:15 |
| → Deck` joined | 23:15 |
|
harleypig
| thiago_home: yeah ' T path/to/file' | 23:15 |
| → tty3 joined | 23:15 |
|
cbreak
| ki__: yes, but it is history rewriting | 23:16 |
|
ki__
| meh thats not what i want then | 23:16 |
|
cbreak
| if you reset it to origin/master, that should not conflict though, since you only kill local history | 23:16 |
|
harleypig
| found the answer in help for git diff --diff-filter: "have their type (i.e. regular file, symlink, submodule, ...) changed (T)" | 23:16 |
|
ki__
| git checkout origin/master ? | 23:16 |
|
cbreak
| no | 23:16 |
|
| unless you want to visit the past | 23:17 |
| → alberto56 joined | 23:17 |
|
cbreak
| this will detach your HEAD, so that you are not on a branch | 23:17 |
| → etcetera joined | 23:17 |
| ← metcalfc left | 23:17 |
|
cbreak
| this is not a state where you should commit things, so git checkout a branch before you continue working | 23:17 |
| ← tty2 left | 23:18 |
| → metcalfc joined | 23:19 |
| ← guns left | 23:20 |
| → sunnyohno joined | 23:20 |
|
ki__
| cbreak how can i reset to origin/master? | 23:20 |
|
| sorry the reset concept isn't completely clear to me | 23:20 |
|
| git reset origin/master | 23:20 |
| ← erichammond left | 23:20 |
|
thiago_home
| harleypig: how about without -s | 23:20 |
|
ki__
| git reset [sha-of-origin/master] ? | 23:21 |
|
cbreak
| git reset --hard origin/master... simple | 23:21 |
| ← saschagehlich left | 23:21 |
| → jitesh_shetty joined | 23:21 |
| ← RaceCondition left | 23:22 |
|
harleypig
| thiago_home: without -s it was 'typechange: path/to/file' | 23:23 |
|
thiago_home
| I don't know what that is | 23:23 |
|
harleypig
| I found the answer to what it meant in the git-diff page under diff-filter section | 23:23 |
|
thiago_home
| if it's not a mode change, maybe you replaced a file with a submodule (or the other way around) | 23:24 |
| → sonnym joined | 23:24 |
| → tty1 joined | 23:24 |
|
harleypig
| no submodules ... probably changed a hardlink to an actual file | 23:24 |
| ← warthog9 left | 23:24 |
| ← lolfrenz left | 23:25 |
|
cbreak
| git does not track hard links | 23:25 |
| ← ericholscher left | 23:26 |
|
harleypig
| cbreak: right | 23:26 |
|
| oh, good point | 23:26 |
| ← Savoxis left | 23:26 |
| ← jShaf left | 23:26 |
|
harleypig
| well, then a symlink <-> regular file | 23:26 |
|
| one way or the other. | 23:26 |
| → jShaf joined | 23:26 |
| → Amorphous joined | 23:27 |
| ← crashanddie left | 23:27 |
| ← tty3 left | 23:27 |
| → cakehero joined | 23:28 |
| → ajay joined | 23:28 |
| ← jaws left | 23:28 |
| → lolfrenz joined | 23:28 |
| → whyking_ joined | 23:28 |
|
ki__
| cbreak: it says I am now current with origin/master but has a list of files that are Changed but not updated. These are the files I want to remove the concepts | 23:29 |
|
| *remove the contents | 23:29 |
| ← berserkr left | 23:29 |
|
ki__
| git reset didn't do that. neither did git stash | 23:29 |
|
cbreak
| just uncommitted changes? | 23:29 |
|
| git reset --hard HEAD | 23:29 |
|
| and they'll be gone | 23:29 |
|
| git stash is not for removing changes | 23:29 |
|
| it's for storing changes | 23:29 |
| ← whyking left | 23:29 |
| ← aroop left | 23:29 |
| → ericholscher joined | 23:30 |
|
ki__
| ah i see | 23:30 |
|
| cbreak: that didn't remove the local changes either. | 23:31 |
|
cbreak
| it does. | 23:31 |
|
| it removes all uncommitted changes | 23:31 |
|
ki__
| the only way that is working is doing this file by file: git checkout -- file1 file2 | 23:31 |
|
cbreak
| no. | 23:31 |
|
ki__
| i did a git reset --hard HEAD, then git status|more and it has the same list of Changed but not updated: files | 23:32 |
| ← Chillance left | 23:33 |
|
cbreak
| impossible | 23:33 |
|
| albel727 have never seen anything like it. | 23:33 |
|
FauxFaux
| crlf failure. | 23:33 |
|
albel727
| oh | 23:33 |
|
cbreak
| well, I guess if you have windows it is possible | 23:33 |
|
| albel727 have seen something like it. | 23:33 |
|
FauxFaux
| Due to autocrlf being the worst thing ever. | 23:33 |
|
cbreak
| but on any non-shitty operating system... | 23:33 |
|
| FauxFaux laughs at cbreak. | 23:34 |
|
FauxFaux
| cbreak: Name two Windows applications that can't cope with unix line endings. | 23:34 |
|
cbreak
| notepad, paint | 23:34 |
|
| why? | 23:35 |
|
albel727
| lol | 23:35 |
|
FauxFaux
| Paint is fine! | 23:35 |
| → xxneolithicxx joined | 23:35 |
|
ki__
| i have autocrlf on, is that my problem? | 23:35 |
|
FauxFaux
| autocrlf being on is always a problem. | 23:36 |
| ← fbass left | 23:36 |
| ← LiamH left | 23:36 |
| → fbass joined | 23:38 |
| ← fbass left | 23:38 |
| ← yogurt_truck left | 23:38 |
| ← TomyLobo left | 23:39 |
| → jutaro joined | 23:41 |
|
albel727
| I've have always thought, that it's committing windows line endings on linux system, that causes the problem. imho, git diff-index could have just ignored line endings discrepancies, when core.autocrlf is true. | 23:42 |
| → berserkr joined | 23:42 |
|
FauxFaux
| s/line endings/whitespace/ ;) | 23:43 |
| → conan joined | 23:43 |
| ← juangiordana left | 23:44 |
| → BiggFREE joined | 23:44 |
|
cbreak
| -w | 23:44 |
|
albel727
| sorry, I'm unable to get anything reasonable when I replace "line endings" with "whitespace" in my sentences. for instance, what is a "windows whitespace"? =) can you elaborate? | 23:45 |
|
| FauxFaux glares. | 23:45 |
| → linusoleander joined | 23:45 |
| ← metcalfc left | 23:45 |
|
FauxFaux
| Basically, I'd set diff-index to default to -w, so whitespace changes wouldn't show up in status etc. | 23:45 |
|
albel727
| ah, that explains it. indeed. | 23:46 |
| → juangiordana joined | 23:46 |
|
cbreak
| but they have to show up | 23:46 |
|
FauxFaux
| Why? | 23:46 |
|
cbreak
| they are after all changes that need to be staged | 23:46 |
|
FauxFaux
| But I don't care about them at all. | 23:46 |
|
BiggFREE
| Sorry :( | 23:46 |
|
cbreak
| then why did you do them? | 23:46 |
|
| why did you fix indentation? | 23:47 |
|
FauxFaux
| To increase the ease of making real changes. | 23:47 |
| ← mgorbach228_ left | 23:47 |
|
cbreak
| it is a real change | 23:47 |
|
| if you would not commit it, the result would look horrible | 23:47 |
|
FauxFaux
| Obviously it is, but it doesn't mean I care about it. | 23:47 |
| → warthog9 joined | 23:47 |
| ← conan left | 23:48 |
| → rchavik joined | 23:51 |
| → mdel joined | 23:53 |
|
albel727
| (...python code would certainly not just look horrible...) | 23:53 |
| ← BiggFREE left | 23:53 |
|
FauxFaux
| More good reasons to mock python programmers. ;) | 23:54 |
| → paeva__ joined | 23:54 |
|
albel727
| I'd rather keep all whitespaces, except end-of-lines, and don't mock anyone. ) | 23:56 |
| ChanServ set mode: +v | 23:56 |
|
Vile
| That reminded me - is there a way to force line endings to particular type for cloned repository? | 23:57 |
| → paeva joined | 23:57 |
| ← paeva_ left | 23:57 |
|
Vile
| i.e. I have bare "central" repository, from which developers clone their ones, I need to make sure that their clones contain LF line endings | 23:57 |
| → metcalfc joined | 23:57 |
|
albel727
| unfortunately, line endings on clones depend only on their local configuration. central repo cannot affect that. you may try core.eol on clones, if you want. | 23:58 |
|
Vile
| core.eol and core.safecrlf settings are not transferred to clone, obviously | 23:58 |
| ← berserkr left | 23:58 |
|
albel727
| there are no settings at all, that get transferred, obviously. | 23:59 |
|
| so I'm not sure, that I understand your question. | 23:59 |
|
d1zzy
| you culd use post-receiv-pack hooks on the server to validate the source files against your rules | 23:59 |