| 2012-05-15 |
| → MacGyverNL joined | 00:01 |
| ← MacGyverNL left | 00:01 |
| → MacGyverNL joined | 00:01 |
| → Pupeno_W_ joined | 00:01 |
| ← isao1 left | 00:01 |
| → isao joined | 00:03 |
|
sitaram
| dmlloyd: if you did it at the right spot there should be only conflicts that would have occurred anyway if the right commit was applied earlier. Are you seeing more than that? | 00:03 |
| → kerrick joined | 00:03 |
| ← Pupeno_W left | 00:03 |
| Pupeno_W_ → Pupeno_W | 00:03 |
| → dvide joined | 00:04 |
| → davidbanham joined | 00:04 |
| ← dreiss left | 00:05 |
| → machty joined | 00:06 |
| ← robotmay left | 00:08 |
| → robotmay joined | 00:09 |
| ← glennpratt left | 00:09 |
| ← robotmay left | 00:09 |
| → h0h0h0 joined | 00:10 |
| gitinfo set mode: +v | 00:10 |
|
h0h0h0
| Sup: What's a good windows tool to draw basic git commit tree pictures with? All the pretty ones seem to be keynote/mac. :( | 00:10 |
|
| h0h0h0 wins benign question award? | 00:11 |
| ← kermit left | 00:11 |
| → williamcotton_ joined | 00:11 |
| → TheShagg joined | 00:12 |
|
dmlloyd
| sitaram: it seems to have worked. There were no conflicts when I reverted, reapplied, and squashed (of course). Cherry picking the result into master did raise a couple conflicts but they were expected and easy to deal with | 00:12 |
| gitinfo set mode: +v | 00:12 |
| ← neurodrone left | 00:12 |
| ← williamcotton left | 00:12 |
| williamcotton_ → williamcotton | 00:12 |
| → thursday joined | 00:12 |
|
dmlloyd
| now I'm just re-checking the resultant diff to be 100% sure that everything went as I expected. | 00:12 |
|
TheShagg
| so when I do a git rebase -i, i am getting a conflict, and when I try and do a git mergetool, kdiff3 automerges but it does it wrong and I cannot edit it | 00:13 |
| ← Chillance_ left | 00:13 |
|
TheShagg
| is there a way to make it so kdiff3 does not just automerge and quit to the command line | 00:13 |
| → kermit joined | 00:14 |
| ← isao left | 00:16 |
| ← hyperair left | 00:16 |
| → flazz joined | 00:18 |
| ← kerrick left | 00:19 |
| ← gmarseliss left | 00:22 |
| → project2501b joined | 00:22 |
| → JEntrep joined | 00:24 |
| ← JEntrep left | 00:24 |
| ← amoxibos left | 00:24 |
|
flazz
| when i do rebase -i i get noop in the editor. non-interactive rebase does a bunch of conflicts. a rebase should not do anything because the working branch is up to date with the parent, according to the tree view. | 00:25 |
| ← maletor left | 00:26 |
|
SethRobertson
| "i get noop in the editor"? | 00:27 |
|
FauxFaux
| Sounds like a new dance. | 00:27 |
| ← codeM0nK3Y left | 00:27 |
|
flazz
| sorry, that was fired off too quickly | 00:27 |
|
SethRobertson
| I suggest looking at the commits after the one specified in the rebase to see if any of them were merge commits | 00:28 |
|
| Recreating merges is errorprone | 00:29 |
|
flazz
| some of them were conflicts | 00:29 |
|
| at least a few | 00:29 |
| → luke-jr joined | 00:29 |
|
flazz
| is there a sane way to progress? | 00:29 |
|
SethRobertson
| So you are saying that there were some merge commits after the commit you were attempting to rebase? | 00:30 |
| → mikepack joined | 00:30 |
|
flazz
| yes, but they were resolved | 00:30 |
|
| so all the conflicts are being recreated as the rebase progresses? | 00:31 |
| → twisted` joined | 00:31 |
|
SethRobertson
| Yes. Attempting to rebase-i with intermediary merges is problematic. Most likely, you should just let history be and if there is anything that needs fixing, just create a new commit. | 00:32 |
|
flazz
| does that mean rebase --skip? | 00:32 |
| ← palyboy left | 00:32 |
| → palyboy joined | 00:32 |
| ← ehsan left | 00:33 |
| ← williamcotton left | 00:33 |
| → nesneros joined | 00:34 |
|
flazz
| and at the end fix all the conflicts? | 00:34 |
| ← nesneros left | 00:34 |
| ← hwrd|work left | 00:34 |
| infogulch → infogulch|afk | 00:35 |
| → luxurymode joined | 00:35 |
| ← tchan left | 00:35 |
| → rurufufuss joined | 00:36 |
| ← berserkr left | 00:37 |
| ← lonewulf` left | 00:37 |
| ← _W_ left | 00:39 |
| → _W_ joined | 00:39 |
|
flazz
| SethRobertson: could you elaborate on 'let history be'? | 00:40 |
| → w09x joined | 00:40 |
| → lonewulf` joined | 00:40 |
| ← w09x left | 00:41 |
|
SethRobertson
| rebase-i performs !rewriting of potentially public history. It is rarely REQUIRED to rewrite history, normally someone is just trying to better perfect what happened in the past. From the perspective of what you are shipping/deploying, you can make a new commit to fix whatever the problem that occurred in the past was | 00:41 |
|
gitinfo
| [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 00:41 |
| ← joaoh82 left | 00:41 |
| → Goplat joined | 00:42 |
| → kenperkins joined | 00:42 |
| → aidan joined | 00:42 |
| ← marc_kdab left | 00:43 |
|
aidan
| I have a git repo with another git repo in it ... but I don't want my parent repo to know / care about the sub-repo. Is there an easy solution? | 00:43 |
| → enmand joined | 00:44 |
| ← wizbit left | 00:44 |
| → w09x joined | 00:45 |
|
flazz
| given that i've resolved the conflicts, can i tell rebase to use the resolutions that i already made without me redoing it by hand? | 00:45 |
| ← QaDeS left | 00:45 |
| ← mikepack left | 00:45 |
| ← alberto56 left | 00:46 |
| → mikepack joined | 00:46 |
| → wizbit joined | 00:46 |
| → jackh joined | 00:46 |
| → hwrd|work joined | 00:46 |
| ← mtytel left | 00:47 |
| ← iwoj left | 00:49 |
| ← mikepack left | 00:49 |
| ← catkiller left | 00:50 |
| → oogatta joined | 00:52 |
| → mtytel joined | 00:53 |
|
offby1
| flazz: man git-rerere | 00:54 |
|
gitinfo
| flazz: the git-rerere manpage is available at http://jk.gs/git-rerere.html | 00:54 |
|
| offby1 always thinks of Aretha Franklin when he says that | 00:55 |
| ← mtytel left | 00:55 |
| → amigojapan joined | 00:58 |
| → mtytel joined | 00:59 |
| ← enmand left | 00:59 |
| → gchristensen joined | 01:00 |
| ← anth0ny_ left | 01:04 |
| → weiyang joined | 01:05 |
| ← beatak left | 01:05 |
| → igotnolegs joined | 01:05 |
|
flazz
| thanks guys for all the great info, i think i solved my problem with rebase-p | 01:06 |
|
| for future reference, why does rebase not preserve merges by default? | 01:07 |
| → steve1_ joined | 01:08 |
| ← steve1_ left | 01:08 |
| → intripoon joined | 01:09 |
| → steve3 joined | 01:10 |
| → D4M0NB joined | 01:11 |
|
EugeneKay
| aidan - First entry in !subprojects | 01:11 |
|
gitinfo
| aidan: So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely seperate. Otherwise your best options are "!submodule" "!gitslave" and "!subtree" Try typing those commands into this IRC channel. | 01:11 |
| ← intripoon_ left | 01:12 |
| ← EyesIsMine left | 01:12 |
| gitinfo set mode: +v | 01:12 |
| ← harish left | 01:13 |
| ← SegFaultAX|work left | 01:13 |
| → xiangfu joined | 01:14 |
| → Vampire0 joined | 01:14 |
| → iwoj joined | 01:16 |
| ← Vampire0_ left | 01:16 |
| ← thelazydeveloper left | 01:17 |
| ← Lgb left | 01:20 |
| ← hwrd|work left | 01:20 |
| ← roger_raymond left | 01:20 |
| ← luxurymode left | 01:21 |
| ← Tinti left | 01:21 |
| ← Destos left | 01:22 |
| ← erkules left | 01:22 |
| → Lgb joined | 01:22 |
| → gearaholic joined | 01:24 |
| → dreiss joined | 01:27 |
| → EyesIsMine joined | 01:27 |
| → mdhopkins joined | 01:27 |
| ← jstout24 left | 01:28 |
| → lindenle_ joined | 01:28 |
| ← gearaholic left | 01:28 |
| ← PrinceAMD left | 01:29 |
| → roger_raymond joined | 01:30 |
| → _huoxito joined | 01:32 |
| ← TheShagg left | 01:33 |
| ← D4M0NB left | 01:33 |
| → gtar joined | 01:33 |
| → ehsan joined | 01:34 |
| ← gtar left | 01:34 |
| → gtar joined | 01:34 |
| ← gtar left | 01:34 |
| infogulch|afk → infogulch | 01:35 |
| → erkules joined | 01:35 |
| → tonesfrommars joined | 01:35 |
| ← teweWORK left | 01:37 |
| → xxthink joined | 01:37 |
| ← pdtpatrick left | 01:38 |
| ← ColKurtz left | 01:39 |
| → kaushal joined | 01:40 |
|
kaushal
| Hi | 01:40 |
|
gitinfo
| kaushal: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 01:40 |
|
kaushal
| can git be used for php based codebase ? | 01:40 |
|
matthiaskrgr
| why not? | 01:41 |
|
| I don't know any reasons why it shouldn't work | 01:41 |
|
offby1
| well, it might turn green. | 01:41 |
|
matthiaskrgr
| you can also use git to track changes in configuration files or images :p | 01:42 |
|
| images won't work that well, because you won't see any useful diffs | 01:42 |
| ← marhaban left | 01:42 |
| → jcontra joined | 01:44 |
| → marhaban joined | 01:44 |
| ← tewecske left | 01:44 |
|
SJS
| we need a good ASCII diff tool for images. | 01:47 |
| → zdk joined | 01:47 |
| ← mischat left | 01:47 |
| → duckxx joined | 01:48 |
| → duckx joined | 01:49 |
| → tchan joined | 01:49 |
|
steve3
| !backup | 01:50 |
|
gitinfo
| Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups | 01:50 |
| → iamjarvo1 joined | 01:50 |
| ← roger_raymond left | 01:50 |
| → roger_raymond joined | 01:50 |
| ← weiyang left | 01:50 |
|
matthiaskrgr
| !fun | 01:50 |
|
gitinfo
| [!refund] If you are not satisfied with git for whatever reason, you are entitled to a full refund of the purchase price, and are invited to use another VCS. Elsewhere. | 01:50 |
| → glennpratt joined | 01:51 |
| ← iamjarvo left | 01:51 |
| ← roger_raymond left | 01:52 |
| → roger_raymond joined | 01:52 |
| → chaowang joined | 01:52 |
| → tmchaves joined | 01:53 |
| ← duckxx left | 01:53 |
| ← Radium left | 01:53 |
| ← meisth0th left | 01:53 |
|
tmchaves
| Hi. Is there any way to transform a local copy of a repository into a repository that can be cloned? | 01:53 |
| ← Kunda left | 01:55 |
| ← Cam left | 01:55 |
|
matthiaskrgr
| you can clone local repos | 01:55 |
|
| git clone /path/to/repo | 01:55 |
|
kaushal
| matthiaskrgr: thanks | 01:55 |
|
| matthiaskrgr: is git written in "C" ? | 01:55 |
| → Nox_ joined | 01:56 |
|
matthiaskrgr
| uuhmmm | 01:56 |
|
| dunno :P | 01:56 |
|
| im just a user | 01:56 |
| ← Targen left | 01:56 |
|
kaushal
| matthiaskrgr: np | 01:56 |
|
| matthiaskrgr: git is source code management software ? | 01:57 |
| ← iwoj left | 01:57 |
| ← Bombe left | 01:57 |
|
matthiaskrgr
| its a version control system | 01:57 |
| ← Nox_ left | 01:57 |
|
kaushal
| what is SCM ? | 01:57 |
|
matthiaskrgr
| !scm | 01:57 |
| → Cam joined | 01:57 |
|
matthiaskrgr
| :( | 01:57 |
| ← cenuij left | 01:57 |
|
matthiaskrgr
| actually I wondered about this, too :) | 01:58 |
|
| http://en.wikipedia.org/wiki/Supply_chain_management | 01:58 |
|
| could fit | 01:58 |
|
kaushal
| nope | 01:58 |
|
| matthiaskrgr: source code management | 01:58 |
|
matthiaskrgr
| mh | 01:58 |
|
| ah | 01:58 |
| ← dreiss left | 01:58 |
|
kaushal
| so whats the deal ? | 01:58 |
| → dreiss joined | 01:59 |
| ← ehsan left | 01:59 |
| ← abetaha_ left | 02:00 |
| → PrinceAMD joined | 02:00 |
| ← PrinceAMD left | 02:00 |
| → PrinceAMD joined | 02:00 |
| ← amigojapan left | 02:00 |
| → ehsan joined | 02:02 |
| → efreese joined | 02:02 |
| → amoxibos joined | 02:02 |
| ← amoxibos left | 02:03 |
| → anth0ny joined | 02:04 |
| → Bombe joined | 02:04 |
|
iadicicco
| kaushal: yeah, i think it's written in c | 02:05 |
|
| kaushal: http://github.com/git/git | 02:05 |
| → Destos joined | 02:07 |
| → neurodrone joined | 02:08 |
| ← neurodrone left | 02:08 |
| → neurodrone joined | 02:08 |
| ← dreiss left | 02:08 |
| ← oriba left | 02:09 |
| ← Destos left | 02:09 |
| → harish joined | 02:10 |
| → weiyang joined | 02:11 |
| ← AaronMT left | 02:11 |
| ← d4rklit3 left | 02:11 |
| ← fisted left | 02:13 |
| → stliu joined | 02:13 |
| ← Araxia_ left | 02:13 |
| ← jcontra left | 02:13 |
| → marhaban1 joined | 02:14 |
| → jcontra joined | 02:14 |
| ← marhaban left | 02:16 |
| → abetaha joined | 02:16 |
| → fisted joined | 02:17 |
| → nesneros joined | 02:19 |
| → ipoval joined | 02:20 |
| ← roger_raymond left | 02:20 |
| ← pandeiro left | 02:23 |
| ← marhaban1 left | 02:23 |
|
aidan
| !subtree | 02:24 |
|
gitinfo
| The git subtree merge method is ideal to incorporate a subsidiary git repositories directly in to single git repository with "unified" git history, where you only need to pull changes in from external sources not contribute your own changes back (which if technically possible is at least difficult). See http://progit.org/book/ch6-7.html Type "!subtree_alt" for more options | 02:24 |
| ← anth0ny left | 02:24 |
| ← xiangfu left | 02:25 |
| ← davidbanham left | 02:26 |
| ← WaltzingAlong left | 02:29 |
| ← orafu left | 02:29 |
| → orafu joined | 02:29 |
| → anth0ny joined | 02:30 |
| ← nesneros left | 02:30 |
| ← kaushal left | 02:30 |
| → friskd joined | 02:32 |
| ← kukks left | 02:36 |
| ← Constant_ left | 02:37 |
| ← flazz left | 02:40 |
| → xiangfu joined | 02:44 |
| ← Lulzon left | 02:47 |
| ← glennpratt left | 02:47 |
| ← wizbit left | 02:49 |
| → wizbit joined | 02:50 |
|
tmchaves
| where are my project files kept in a git bare repository ? | 02:53 |
|
milki
| a sekrit location | 02:53 |
|
offby1
| shush | 02:54 |
|
milki
| they are stored as git objects and some magic pixie dust | 02:54 |
|
offby1
| don't even kid about it | 02:54 |
|
milki
| tmchaves: what do you need them for? | 02:54 |
|
tmchaves
| oh I see | 02:54 |
|
offby1
| tmchaves: they're in .git/objects. Only some of those files are your project files, though; others are history and other things. Oh and they're compressed. | 02:55 |
|
tmchaves
| I have a machine that is used both as a git shared repository and web server, I'd like to use the files to the web server directly from git repository | 02:55 |
|
milki
| ya.... | 02:56 |
|
| tmchaves: !website | 02:56 |
|
gitinfo
| tmchaves: [!deploy] Git is not a deployment tool, but you can build one around it for simple environments. Here is an example hook to get you started: https://github.com/EugeneKay/scripts/blob/master/bash/git-deploy-hook.sh | 02:56 |
|
tmchaves
| so that when someone updates it (pushes something into it) the webserver is updated | 02:56 |
| → wolftankk joined | 02:58 |
|
RandalSchwartz
| where's the one thatmentions me? | 02:59 |
|
| !deploy | 02:59 |
|
gitinfo
| Git is not a deployment tool, but you can build one around it for simple environments. Here is an example hook to get you started: https://github.com/EugeneKay/scripts/blob/master/bash/git-deploy-hook.sh | 02:59 |
|
RandalSchwartz
| no - that's not it | 02:59 |
|
| crap | 02:59 |
|
EugeneKay
| !triggers | 02:59 |
|
gitinfo
| See http://jk.gs/git/bot/trigger.php | 02:59 |
| ← wizbit left | 02:59 |
| → Yuuhi` joined | 02:59 |
| → h0bbit_ joined | 02:59 |
|
EugeneKay
| RandalSchwartz - this one, you eman? https://gist.github.com/1714235 | 02:59 |
|
| I turned it into a post-receive hook and expanded it quite a bit. | 03:00 |
|
RandalSchwartz
| yeah which one mentions that | 03:00 |
|
| Oh! | 03:00 |
|
milki
| uh huh | 03:00 |
|
RandalSchwartz
| yeah, it should have been a post-receive hook | 03:00 |
|
milki
| thats why its different | 03:00 |
|
| also includes comments | 03:00 |
|
| :o | 03:00 |
|
RandalSchwartz
| thank you thank you | 03:00 |
|
EugeneKay
| It's the same basic script, but I decided I wanted to use it.... and I like having comments, and features! | 03:00 |
|
tmchaves
| thanks.. | 03:01 |
| → wizbit joined | 03:01 |
|
RandalSchwartz
| yeah. the rsync is essential to avoid updating files that haven't changed | 03:01 |
|
| most people forget that. :) | 03:01 |
|
| milki just uses a makefile... | 03:01 |
|
EugeneKay
| I need to write a bit about how to use the --delete and --exclude family in opts | 03:01 |
| → Owner joined | 03:01 |
| ← Yuuhi left | 03:01 |
|
RandalSchwartz
| rsync is senior magic | 03:02 |
|
Owner
| how do you ignore a directory from being updated during a pull ? | 03:02 |
|
| or permenatly | 03:02 |
|
RandalSchwartz
| pull = fetch + merge | 03:02 |
|
| you are merging upstream | 03:02 |
| ← h0bbit left | 03:02 |
|
RandalSchwartz
| why are you ignoring upstream? | 03:02 |
| ← xiangfu left | 03:02 |
| ← thearthur left | 03:02 |
|
RandalSchwartz
| rsync is magic magic when you get to --filter='. -' | 03:03 |
|
Owner
| well i wanted upstream to ignore a directory | 03:03 |
|
RandalSchwartz
| why? | 03:03 |
|
| every directory is important in a source management system | 03:03 |
|
Owner
| true | 03:03 |
|
milki
| until you rm -rf subdir/ * | 03:04 |
| → Targen joined | 03:04 |
|
RandalSchwartz
| in a *deploy* system, you might not want a subdir | 03:05 |
|
| but git is *not* a deploy system | 03:05 |
| → arvind_khadri joined | 03:05 |
| ← arvind_khadri left | 03:05 |
| → arvind_khadri joined | 03:05 |
| ← urbanmonk left | 03:05 |
|
Owner
| well ideally | 03:06 |
|
| i want to pull the directory on initial clone | 03:06 |
|
| then ignore it after that | 03:06 |
|
| so i can make local changes | 03:06 |
|
RandalSchwartz
| then you don't have source | 03:06 |
|
| you have prototypes, which should be under a different name | 03:06 |
|
| foo.proto/* | 03:07 |
|
| which *you* copy to foo/* | 03:07 |
|
| so that foo.proto/* can be updated upstreadm | 03:07 |
|
Owner
| i see | 03:07 |
|
RandalSchwartz
| and also pushed if you have a different idea for the prototypes | 03:07 |
| → yizumi joined | 03:07 |
|
RandalSchwartz
| and locally, you can put .git/exclude foo/* | 03:08 |
|
| or it could even be done with a .gitignore upstream | 03:08 |
|
| if everyone is doing the same thing | 03:08 |
|
milki
| this isnt a proper tracking branch -.- | 03:08 |
| ← tmchaves left | 03:09 |
|
RandalSchwartz
| whatever | 03:09 |
|
Owner
| i think git ignore might be easier | 03:09 |
|
| can i not just type "git ignore conf/*" | 03:11 |
| ← wizbit left | 03:12 |
| ← Eridius left | 03:15 |
| → xiangfu joined | 03:16 |
| ← eletuchy left | 03:17 |
| ← mdhopkins left | 03:18 |
| ← Maccer left | 03:20 |
| → wizbit joined | 03:21 |
| → edude03 joined | 03:21 |
| → irqq joined | 03:22 |
|
bremner
| no, that command does not exist. | 03:22 |
| ← Dreamer3 left | 03:23 |
| → Dreamer3 joined | 03:25 |
| → Radium_ joined | 03:27 |
|
EugeneKay
| Yay! GitHub brought back the buttons to see Watchers / Forkers! | 03:27 |
|
| I like to think that my Support question about that lead to the fix. | 03:27 |
| ← arvind_khadri left | 03:28 |
| ← iamjarvo1 left | 03:29 |
| → amoxibos joined | 03:29 |
| ← mcluskydodallas left | 03:30 |
| ← Radium_ left | 03:31 |
| → johnanderson joined | 03:31 |
| ← amoxibos left | 03:31 |
| ← subbyyy left | 03:31 |
| → amoxibos joined | 03:31 |
| ← amoxibos left | 03:32 |
| → amoxibos joined | 03:32 |
| → Davey joined | 03:34 |
| ← Kabaka left | 03:35 |
| → Kabaka joined | 03:37 |
| → Per4u3e joined | 03:37 |
| → subbyyy joined | 03:39 |
| → Kunda joined | 03:39 |
| → ChoiZ_ joined | 03:41 |
| → hegge joined | 03:41 |
| ← ptolemyxi left | 03:41 |
| ← _iron left | 03:41 |
| ← ChoiZ left | 03:41 |
| → _iron joined | 03:41 |
| ← SerajewelKS left | 03:42 |
| → unnamedwill joined | 03:42 |
| → SerajewelKS joined | 03:42 |
| → dr0id joined | 03:43 |
| ← az left | 03:43 |
| → az joined | 03:46 |
| → Maccer joined | 03:47 |
| ← Error404NotFound left | 03:51 |
| ← Per4u3e left | 03:52 |
| ← wolfcore left | 03:54 |
| → wolfcore joined | 03:56 |
|
milki
| aha | 03:57 |
|
| except theyll never give you credit | 03:57 |
| → dc5ala joined | 03:58 |
| ← jackh left | 03:58 |
| → dreiss joined | 03:59 |
| ← yizumi left | 04:02 |
| ← ping-pong left | 04:02 |
| → yizumi joined | 04:03 |
| ← mritz left | 04:05 |
| ← amoxibos left | 04:06 |
| ← Spudster left | 04:07 |
| ← wizbit left | 04:08 |
| ← helgikrs left | 04:09 |
| ← Kunda left | 04:10 |
| → wizbit joined | 04:10 |
| ← irqq left | 04:11 |
| ← Vert left | 04:12 |
| ← edude03 left | 04:13 |
| → edude03 joined | 04:13 |
| → helgikrs joined | 04:16 |
| → Chib joined | 04:17 |
| ← wizbit left | 04:18 |
| → wizbit joined | 04:18 |
| → dermoth_ joined | 04:23 |
| ← wizbit left | 04:23 |
| → jceb joined | 04:24 |
| → wizbit joined | 04:25 |
| ← macmartine left | 04:25 |
| ← OOPMan left | 04:26 |
| ← dermoth|home left | 04:26 |
| ← LekeFly left | 04:27 |
| → fuzzybunny69y joined | 04:28 |
| ← cyphase left | 04:28 |
| → LekeFly joined | 04:28 |
| ← dr0id left | 04:29 |
| ← harish left | 04:30 |
| → macmartine joined | 04:31 |
|
EugeneKay
| I can dream. | 04:32 |
| → acl_ joined | 04:34 |
| → BarryCrayon joined | 04:37 |
| → pdtpatrick joined | 04:39 |
| → ilius joined | 04:40 |
| → sangi joined | 04:41 |
| ← BarryCrayon left | 04:42 |
| ← cakehero left | 04:43 |
| ← joepie91 left | 04:43 |
| ← LekeFly left | 04:44 |
| ← Tohuw left | 04:44 |
| → joepie91 joined | 04:45 |
| → yoklov joined | 04:45 |
| → Eridius joined | 04:47 |
| → Tohuw joined | 04:47 |
| ← wolfcore left | 04:49 |
| ← wizbit left | 04:50 |
| ← johnanderson left | 04:50 |
| → iwoj joined | 04:50 |
| → mritz joined | 04:51 |
| → wizbit joined | 04:52 |
| ← vitor-br left | 04:52 |
| → maleknet joined | 04:53 |
| → harshpb joined | 04:54 |
| ← krz left | 04:55 |
| ← wizbit left | 04:59 |
| ← klj613 left | 05:00 |
| → syphar joined | 05:02 |
| ← n3m left | 05:03 |
| → n3m joined | 05:04 |
| → _sundar_ joined | 05:05 |
| → dr0id joined | 05:07 |
| ← jceb left | 05:08 |
| ← lonewulf` left | 05:08 |
| ← rchavik left | 05:08 |
| ← tonesfrommars left | 05:10 |
| ← smw left | 05:10 |
| → ShooterM_ joined | 05:10 |
| → mmc1 joined | 05:12 |
| → pantsman- joined | 05:14 |
| ← SeySayux left | 05:16 |
| ← MissionCritical left | 05:16 |
| → wizbit joined | 05:16 |
| ← click left | 05:17 |
| ← teotwaki left | 05:17 |
| → click_ joined | 05:17 |
| ← duckx left | 05:17 |
| ← preflex left | 05:17 |
| ← Dynom left | 05:17 |
| ← rawtaz left | 05:17 |
| ← geeKISSexy left | 05:17 |
| → RickXy joined | 05:17 |
| → preflex_ joined | 05:17 |
| → Yuuhi`` joined | 05:17 |
| → duckx joined | 05:17 |
| → Dynom joined | 05:17 |
| → rawtaz joined | 05:17 |
| → teotwaki joined | 05:17 |
| ← n3m left | 05:18 |
| ← kermit left | 05:18 |
| ← pantsman left | 05:18 |
| ← gxk left | 05:18 |
| ← UukGoblin left | 05:18 |
| → smw_ joined | 05:18 |
| → UukGoblin joined | 05:18 |
| ← orafu left | 05:18 |
| ← djh_ left | 05:18 |
| → n3m joined | 05:18 |
| → gxk joined | 05:18 |
| → arvind_khadri joined | 05:18 |
| ← Yuuhi` left | 05:18 |
| ← arvind_khadri left | 05:18 |
| → arvind_khadri joined | 05:18 |
| preflex_ → preflex | 05:18 |
| → orafu joined | 05:18 |
| ← gavin_huang left | 05:18 |
| ← chris2 left | 05:18 |
| ← mikegerwitz left | 05:18 |
| → LekeFly joined | 05:18 |
| → chris2 joined | 05:18 |
| → mikegerwitz joined | 05:18 |
| ← mikegerwitz left | 05:18 |
| → mikegerwitz joined | 05:18 |
| ← Sil4nc4_ left | 05:19 |
| → djh joined | 05:19 |
| → Sil4nc4 joined | 05:19 |
| ← mmc1 left | 05:21 |
| → harish joined | 05:22 |
| ← wizbit left | 05:22 |
| ← smw_ left | 05:22 |
| → Dave^| joined | 05:22 |
| → lonewulf` joined | 05:23 |
| → SeySayux joined | 05:23 |
| ← anth0ny left | 05:23 |
| → cyphase joined | 05:23 |
| → anth0ny joined | 05:24 |
| → wizbit joined | 05:24 |
| ← steve3 left | 05:24 |
| → gavin_huang joined | 05:25 |
| → barrbrain joined | 05:26 |
| ← macmartine left | 05:26 |
| ← crankharder left | 05:27 |
| → toabctl joined | 05:27 |
| ← anth0ny left | 05:28 |
| → rchavik joined | 05:29 |
| ← rchavik left | 05:29 |
| → rchavik joined | 05:29 |
| → marc_kdab joined | 05:32 |
| → MissionCritical joined | 05:32 |
| ← xiangfu left | 05:33 |
| ← enr left | 05:34 |
| → fisted_ joined | 05:35 |
| ← fisted left | 05:35 |
| → crankharder joined | 05:36 |
| ← PrinceAMD left | 05:36 |
| ← Davey left | 05:36 |
| → khmarbaise joined | 05:37 |
| → PrinceAMD joined | 05:37 |
| ← PrinceAMD left | 05:37 |
| → PrinceAMD joined | 05:37 |
| → _md joined | 05:38 |
| → davidbanham joined | 05:39 |
| ← yoklov left | 05:39 |
| ← yuriks_ left | 05:40 |
| → yuriks_ joined | 05:40 |
| yuriks_ → yuriks | 05:40 |
| ← madewokherd left | 05:40 |
| ← wizbit left | 05:42 |
| ← mritz left | 05:43 |
| → wizbit joined | 05:43 |
| ← cyphase left | 05:44 |
| ← khmarbaise left | 05:46 |
| infogulch → infogulch|afk | 05:46 |
| ← mmattice left | 05:48 |
| ← lonewulftp left | 05:49 |
| → dan_p joined | 05:50 |
| → lonewulftp joined | 05:50 |
|
dan_p
| Hi, i'd like to get the patch of the conflcit resolution done in a merge commit, but can't seem to find the way to do it? | 05:51 |
| → Sigma joined | 05:51 |
|
_ikke_
| dan_p: I don't understand your question | 05:51 |
| ← Bass10 left | 05:52 |
|
sitaram
| that's almost always useless, because the "before" side would contain conflict markers etc. But if you re-do the exact same merge on a fresh repo and then diff that with the resolved tree you should get it | 05:52 |
| ← duckx left | 05:52 |
|
sitaram
| dan_p: "fresh repo" because if you do it on the same repo, rerere may kick in and not give you a pristine merge | 05:53 |
| ← idoru left | 05:54 |
| → mishok13 joined | 05:54 |
| ← slakmagik left | 05:56 |
|
dan_p
| _ikke_: the best way I can explain is show a gitweb output - I would like to get this output from the tools: http://git.moodle.org/gw?p=integration.git;a=commitdiff;h=0dda790c05bcab5b57a624ac3f6b9c0229d1e47a | 05:56 |
| → twb joined | 05:56 |
|
dan_p
| sitaram: thanks, makes sense. I'm probrably doing something that there is a better way to do | 05:56 |
|
twb
| Does "git foo --help" call man directly, or is there a variable like $MANREADER ? | 05:57 |
| ← wizbit left | 05:57 |
| → wizbit joined | 05:57 |
|
dan_p
| I am trying to convert someones merge into a cleanly rebased branch, but I wanted to get the conflict resolution diff so I can do it earlier on in the rebase | 05:57 |
| → airborn joined | 05:57 |
| → tvw joined | 05:58 |
| ← toabctl left | 05:58 |
| ← weiyang left | 05:59 |
| → cyphase joined | 06:00 |
| → angelsl joined | 06:00 |
| ← WillMarshall left | 06:01 |
| ← marc_kdab left | 06:01 |
| → beautifulmind joined | 06:02 |
| ← wizbit left | 06:03 |
| → wizbit joined | 06:05 |
| ← cooloney left | 06:06 |
| → kadoban_ joined | 06:10 |
|
EugeneKay
| sitaram - I'm cleaning out the various hooks which have infested my repositories/ directory over the package upgrades.... with g3, all I should have(from gitolite) is the 'update' hook, and 'post-update' in the gitolite-admin.git repo, correct? | 06:10 |
|
sitaram
| correct | 06:10 |
|
| EugeneKay nukes the rest | 06:11 |
| → jceb joined | 06:11 |
| → cbreak-work joined | 06:11 |
|
sitaram
| EugeneKay: you can nuke *all* hooks if you like, then run 'gitolite setup' and it will put back what it needs. Just be sure no one attempts to push in the small window between nuke and setup. | 06:12 |
| → jackh joined | 06:12 |
|
EugeneKay
| I have a few with a post-receive hook(my ! deploy script) that I don't wanna tread on | 06:13 |
|
sitaram
| (just FYI, in case you were preparing a script or something) | 06:13 |
|
| aah ok | 06:13 |
|
EugeneKay
| I just abused find a bit, did the trick | 06:13 |
|
sitaram
| there is no abuse; there is only power and those too weak to use it | 06:15 |
|
EugeneKay
| Am I also correct that upgrading is 'git pull; ./install; gitolite setup' ? | 06:16 |
| → ThomasLocke joined | 06:17 |
| ← thierryp left | 06:17 |
|
EugeneKay
| Actually `./gitolite/install -ln`, looking at my bash history. | 06:18 |
| → glcrazy joined | 06:18 |
|
sitaram
| upgrading from g2 to g3? no....! within g3 from one version to another, yes | 06:18 |
|
EugeneKay
| The latter | 06:18 |
| ← dcorbin left | 06:19 |
|
EugeneKay
| I've managed to git all of my gitolite instances up to g3, finally. | 06:19 |
| ← Slush-_ left | 06:19 |
| → papegaaij joined | 06:19 |
|
sitaram
| yes that will work. In fact the documentation doesnt go into details but in the "-ln" case you don't even need that because it's only doing a symlink (which is a no-op if you have not moved your clone) | 06:19 |
|
| cool | 06:20 |
| ← Slush-__ left | 06:20 |
| ← wizbit left | 06:20 |
|
EugeneKay
| I haven't caught cancer or had !weasels yet! | 06:20 |
|
gitinfo
| The consequences of this proposal are not well-defined. A band of furious weasels may infest your undergarments, or it might work just fine. You should !backup then !tryit and let us know what happens. | 06:20 |
| → wizbit joined | 06:21 |
|
sitaram
| EugeneKay: cancer does not become apparent in less than "months" timeframe | 06:21 |
|
EugeneKay
| "yet" | 06:21 |
| ← kadoban_ left | 06:22 |
| → benjo2 joined | 06:22 |
| ← harish left | 06:22 |
| ← rchavik left | 06:22 |
| → idoru joined | 06:22 |
|
EugeneKay
| Do you know if the people who did the previous (g2) audit have gone through g3, by chance? | 06:24 |
| ← edude03 left | 06:24 |
| → fsvend joined | 06:24 |
| → flijten joined | 06:24 |
| → mmattice joined | 06:24 |
| ← h0h0h0 left | 06:24 |
| → DuzyZiemniak joined | 06:24 |
| ← benjo2 left | 06:24 |
| → benjo2 joined | 06:24 |
|
sitaram
| not as far as I know... they'll probably do it if kernel.org decides to upgrade because that is what prompted it last time | 06:25 |
|
| I could ask I guess... | 06:25 |
| ← Targen left | 06:25 |
|
EugeneKay
| You write good code, and it looks good to me, but expert opinions are nice | 06:25 |
|
sitaram
| absolutely | 06:26 |
|
| and thanks! | 06:26 |
| ← flijten left | 06:26 |
| → flijten joined | 06:27 |
| ← Tabmow left | 06:27 |
| ← _huoxito left | 06:27 |
| ← pantsman- left | 06:28 |
| → senny joined | 06:28 |
| → pantsman joined | 06:28 |
| ← wizbit left | 06:28 |
| ← redrocket left | 06:28 |
| ← pantsman left | 06:28 |
| → pantsman joined | 06:28 |
| ← nutron left | 06:28 |
| ← Araxia left | 06:29 |
| ← flijten left | 06:29 |
| → marc_kdab joined | 06:29 |
| → Tabmow joined | 06:29 |
| → flijten joined | 06:29 |
| → wizbit joined | 06:29 |
| ← Synthead left | 06:30 |
| ← DrNick left | 06:31 |
| → Araxia joined | 06:31 |
| → Synthead joined | 06:31 |
| → DrNick joined | 06:32 |
| ← marc_kdab left | 06:34 |
|
fsvend
| hi everyone, reg. git bisect. i'd like to apply a custom patch in each step.. how can i ignore these changes after each step without confusing bisect? | 06:34 |
| ← mishok13 left | 06:34 |
|
fsvend
| .. i could branch in each step but unsure how to get back to the bisect selected commit.. | 06:34 |
|
| is the bisect "state" kept so I can manually jump using checkout? | 06:35 |
| → jaseemabid joined | 06:35 |
| ← Orphis left | 06:35 |
| ← banghouse2 left | 06:36 |
| → robotmay joined | 06:36 |
| → Orphis joined | 06:36 |
|
_ikke_
| Can't you just apply the patch without committing? | 06:36 |
| ← acl_ left | 06:37 |
| ← h0bbit_ left | 06:38 |
| ← igotnolegs left | 06:38 |
| ← benjo2 left | 06:38 |
| ← lapistano left | 06:38 |
|
fsvend
| _ikke_: yes, but i guess git won't let me continue (checking out a new commit) since i've changed the content. | 06:38 |
| → lapistano joined | 06:38 |
|
et
| why wouldn't it? | 06:38 |
|
fsvend
| _ikke_: if i use git reset.. i guess the bisect session is over? | 06:38 |
|
_ikke_
| git checkout -f HEAD | 06:39 |
|
fsvend
| _ikke_: wouldn't that just get me have to HEAD.. what happened to bisect than? | 06:40 |
| → sq-one joined | 06:40 |
|
fsvend
| _ikke_: does it still track my good/bad commits.. even if i "jump back" to HEAD? | 06:40 |
| → tewecske joined | 06:40 |
| → ph^ joined | 06:40 |
| ← Orphis left | 06:41 |
|
fsvend
| maybe i should try before i bother you :) | 06:41 |
|
_ikke_
| fsvend: HEAD is the currently checked out commit | 06:41 |
| → redrocket joined | 06:42 |
| ← gchristensen left | 06:42 |
|
fsvend
| _ikke_: yes of course.. man. thanks. so git checkout -f HEAD after running patch would work then. | 06:42 |
| → foofoobar joined | 06:43 |
|
_ikke_
| It should indeed work | 06:43 |
| → Orphis joined | 06:44 |
| → Sitethief joined | 06:45 |
| → TheHaven joined | 06:45 |
|
fsvend
| _ikke_: again thanks. I knew HEAD was relative to co commit, but somehow my brain didn't work properly today :) | 06:46 |
|
wizbit
| /wc | 06:48 |
| ← wizbit left | 06:48 |
| ← Orphis left | 06:49 |
| → shigekimorimoto joined | 06:51 |
|
_ikke_
| yw | 06:51 |
| → Orphis joined | 06:52 |
| → tqmz joined | 06:53 |
| ← airborn left | 06:53 |
| → dcorbin joined | 06:55 |
| → mishok13 joined | 06:55 |
| ← ipalaus_ left | 06:55 |
| ← Orphis left | 06:56 |
| → Orphis joined | 06:59 |
| ← batmanian left | 06:59 |
| ← friskd left | 07:01 |
| ← beautifulmind left | 07:04 |
| ← Orphis left | 07:09 |
| ← glcrazy left | 07:09 |
| → glcrazy joined | 07:09 |
| ← pppaul left | 07:09 |
| → pppaul joined | 07:10 |
| ← Goplat left | 07:11 |
| → psoo joined | 07:12 |
| ← dan_p left | 07:14 |
| → weiyang joined | 07:14 |
| ← pppaul left | 07:15 |
| → pppaul joined | 07:16 |
| → cooloney joined | 07:16 |
| → Orphis joined | 07:17 |
| ← DuzyZiemniak left | 07:17 |
| → Milossh joined | 07:19 |
| → thierryp joined | 07:19 |
| ← Lgb left | 07:20 |
| → benjo2 joined | 07:20 |
| ← optixx left | 07:20 |
| → Lgb joined | 07:22 |
| → optixx joined | 07:23 |
| ← Fandekasp left | 07:23 |
| ← mastro left | 07:24 |
| ← foofoobar left | 07:24 |
| ← mastroWork left | 07:24 |
| → malesca joined | 07:26 |
| → ali1234 joined | 07:26 |
| → quuxman joined | 07:28 |
| ← davidbanham left | 07:28 |
| ← Silowyi left | 07:28 |
| → Element9 joined | 07:31 |
|
ali1234
| i've got a slightly odd workflow and i'm wondering how to handle it "properly" | 07:31 |
| ← diegoviola left | 07:32 |
|
ali1234
| i'm managing some php code in git. the server end has a hook that automatically checks out the latest pushed code to the www directory. basically as described here: http://toroid.org/ams/git-website-howto | 07:32 |
| → TomyLobo joined | 07:33 |
|
EugeneKay
| ali1234 - !deploy is(in my biased opinion) a much better solution than that !blog post. | 07:33 |
|
gitinfo
| ali1234: Git is not a deployment tool, but you can build one around it for simple environments. Here is an example hook to get you started: https://github.com/EugeneKay/scripts/blob/master/bash/git-deploy-hook.sh | 07:33 |
|
| ali1234: Blog posts, while helpful and informative, are quite often outdated, give bad advice, or are just plain wrong. Please don't rely solely upon them, or treat them as authoritative. | 07:33 |
|
ali1234
| ok, but that still requires two repositories right? | 07:34 |
|
| this is my question: if i make a typo in my code and i don't see it until after i have pushed, then, if i rebase and fixup, i have to git push -f | 07:35 |
|
| since i'm the only person using the system this isn't a huge problem. but is there a better way? | 07:36 |
|
jast
| EugeneKay's script deploys into a plain directory, not into a repository | 07:36 |
|
| afaics | 07:36 |
|
ali1234
| it's a receive based hook | 07:36 |
|
EugeneKay
| It rsyncs to a $URI | 07:36 |
|
| You can abuse --delete and --exclude to great profit here | 07:37 |
| → irqq joined | 07:37 |
|
jast
| that would take care of your concerns, I guess | 07:37 |
| → mastro joined | 07:37 |
| ← thursday left | 07:37 |
|
EugeneKay
| It really doesn't care about force pushes, the only thing that matters to it is that the SHA1 isn't all-zeros | 07:38 |
| → BarryCrayon joined | 07:38 |
| → mastroWork joined | 07:38 |
| ← optixx left | 07:38 |
| → smw_ joined | 07:38 |
| ← robotmay left | 07:38 |
|
EugeneKay
| There are also some basic sanity checks(like that the URI is a directory). These may not hold true if oyu're rsyncing to a remote URI, in which case you'll also want to do something with -e 'ssh -i id_deploy' | 07:39 |
| ← Textmode left | 07:39 |
|
EugeneKay
| I'm working on a more complete version which supports this sort of thing which is suitable to be a post-receive hook in a gitolite repo. | 07:39 |
|
jast
| doesn't look like any remote rsyncing is going to be happening in this case, though :) | 07:39 |
| ← mastroWork left | 07:40 |
|
ali1234
| eh, so what're you telling me? there doesn't seem to be any difference between your script and the blog post i linked, except your script uses rsync and the blog post uses git checkout -f | 07:40 |
| ← subbyyy left | 07:40 |
|
EugeneKay
| checkout -f is error-prone and causes insanity. Quickly. | 07:40 |
|
jast
| ali1234: "git checkout -f" works in a repository. rsync doesn't need to. | 07:40 |
|
EugeneKay
| rsync is more flexible, powerful, and has less edge cases. | 07:40 |
|
quuxman
| for a build script I'm retrieving the commit time of every file in a particular directory of my source tree with two shell commands: rev=$(git rev-list -n 1 HEAD); git log -n 1 --pretty=format:%ct $rev | 07:40 |
|
EugeneKay
| "You take the code here, and you put it there." | 07:40 |
| → mastroWork joined | 07:40 |
|
jast
| ohh, it does the GIT_WORK_TREE switcharoo | 07:41 |
| ← Synthead left | 07:41 |
|
quuxman
| however, it's taking several minutes for just 800 files, which is not acceptable. Is there a faster way to do this in bulk? | 07:41 |
|
jast
| without an index that sounds like heaps of fun and breakage | 07:41 |
| → optixx joined | 07:41 |
| ← redrocket left | 07:41 |
|
EugeneKay
| God forbid you should add a file to tracking that already exists in the destination | 07:42 |
|
| Aborted checkout, anybody? | 07:42 |
| ← JackWinter left | 07:42 |
|
ali1234
| yeah... none of this actually answers my question though. which is, if i have two repositories and i'm the only user, will push -f ever cause problems? | 07:42 |
| ← ben225 left | 07:42 |
|
jast
| quuxman: where does that look at every file | 07:42 |
|
| ali1234: what do you mean by two repositories... your local one or an extra one on the server? | 07:42 |
|
quuxman
| jast: that's inside a loop in a python script I have | 07:42 |
| ← mastroWork left | 07:42 |
|
ali1234
| basically i just want to remote repository to always be an exact copy of my local repository no matter what i do to it | 07:42 |
|
EugeneKay
| "No, not really." | 07:43 |
|
Bigcheese
| As long as nobody has a branch based off the branch you are modifying history of, you are good. | 07:43 |
|
ali1234
| jast: i mean quite simply two repositories... one on my local computer and another one that i push into over ssh | 07:43 |
|
jast
| and, anyway, the answer you've already received is that it's very hard to predict with "git checkout -f" | 07:43 |
|
| it may work, or it may break horribly | 07:43 |
| → mastroWork joined | 07:43 |
|
ali1234
| git checkout -f has nothing to do with it, please stop going on about it | 07:43 |
|
quuxman
| I'm sure this is a common problem. The build script distributes static files to a CDN, and I only want to upload if there's a new version. I also want to use the committed time as a cache busting query parameter | 07:43 |
|
jast
| oh, you're not talking about the checked out files at all, then? | 07:43 |
|
ali1234
| no | 07:44 |
|
EugeneKay
| ali1234 - you should be OK with push -f'ing, as far as the remote bare repo is concerned. | 07:44 |
|
jast
| then why were you talking about the deployment stuff in the first place? | 07:44 |
|
| it has nothing to do with the commit history | 07:44 |
|
ali1234
| because if i hadn't, i'd get lots of messages like "that's stupid why you want to do that" and then i'd have to explain, then have the whole convo about why checkout -f sucks... and still not get an answer | 07:44 |
|
jast
| ali1234: wrong | 07:44 |
|
| we talk to lots of people who have legitimate reasons to force push | 07:45 |
| → JackWinter joined | 07:45 |
|
jast
| we do it ourselves, too | 07:45 |
|
_ikke_
| checkout -f != push -f | 07:45 |
|
jast
| yes :) | 07:45 |
|
| we established that already | 07:45 |
| ← Orphis left | 07:45 |
| ← Araxia left | 07:45 |
| ← Slix` left | 07:46 |
| → Araxia joined | 07:46 |
| ← CellKill_ left | 07:46 |
|
EugeneKay
| It still makes you a bad, terrible person. Think of all the trauma you're putting that poor repo through! Ripping away everything it knows and shoving strange things into it. | 07:47 |
|
_ikke_
| antropomorpisms ftw | 07:47 |
| → redrocket joined | 07:47 |
|
_ikke_
| antropomorphisms* | 07:47 |
|
ali1234
| well it beats having several none-working commits every time i have to find typos | 07:47 |
|
jast
| quuxman: I don't think there's a convenient command to do that... but it's very likely to be much faster if you parse the output of something like: git log --name-status --pretty=format:%ct | 07:48 |
|
EugeneKay
| It's OK to do a "typo fix" commit. Consider also !sausage | 07:48 |
|
gitinfo
| [!sausage_making] Some developers like to hide the sausage making (pretend to the outside world that their commits sprung full-formed in utter perfection into their git repository). `git rebase -i`, `git add -p`, and `git reset -p` can fix commits up in post-production by splitting different concepts, merging fixes to older commits, etc. See also http://sethrobertson.github.com/GitBestPractices/#sausage | 07:48 |
| ← pantsman left | 07:48 |
| → dpino joined | 07:49 |
|
ali1234
| it's not OK to do a typo fix commit imo | 07:49 |
| → Orphis joined | 07:49 |
|
jast
| it depends | 07:49 |
|
ali1234
| it's certainly not ok to do 10 in a row | 07:49 |
|
quuxman
| jast: is there a way to get the filename and ctime on the same line at least? | 07:49 |
|
jast
| sometimes you have no other option | 07:49 |
|
EugeneKay
| Well, that's jsut like, your opinion, man. :v | 07:49 |
|
ali1234
| as i initially said, i can't test the code without pushing it | 07:49 |
|
frogonwheels
| ali1234: as long as it's not pushed, I think it's quite fine | 07:49 |
|
jast
| maybe you should consider a different deploy option, then | 07:50 |
|
_ikke_
| ali1234: That's awefully bad | 07:50 |
|
et
| if you just want an exact copy, why not use rsync? | 07:50 |
|
jast
| one that doesn't require you to commit stuff before deploying it | 07:50 |
|
EugeneKay
| Or a "live" dev environment | 07:50 |
|
_ikke_
| Git is not a deployment tool | 07:50 |
|
jast
| quuxman: can't think of one | 07:50 |
|
frogonwheels
| ali1234: What I mean is, I like sausage_making - don't push until it's ready, and squish typeo/bugfix commits into the appropriate commits as I go | 07:50 |
|
jast
| quuxman: but I think that output should be pretty easy to parse with something like python | 07:51 |
|
frogonwheels
| ali1234: I prefer not to push typo commits. | 07:51 |
| → arti_t joined | 07:51 |
|
EugeneKay
| quuxman - my !deploy script does some magic with git-log and 'touch'. Look at that, maybe? | 07:51 |
|
gitinfo
| quuxman: Git is not a deployment tool, but you can build one around it for simple environments. Here is an example hook to get you started: https://github.com/EugeneKay/scripts/blob/master/bash/git-deploy-hook.sh | 07:51 |
|
EugeneKay
| It's inefficient, but filesystem cache keeps it pretty fast. | 07:51 |
|
jast
| unless you run it on windows, right :} | 07:51 |
|
EugeneKay
| quuxman - you might also want to use libgit2's python bindings instead | 07:51 |
|
| Using windows as a deploy server is.... well.... I hope you believe in a forgiving God. | 07:52 |
|
quuxman
| I've heard that from a lot of sources, that "git is not a deployment / build tool" and that you should separate your git repository and your live code. However, I don't see the rational for that. In the project I run, we have git remotes for each running live server, and a simple post-commit hook that does some basic stuff and restarts the web server. It's very convenient | 07:53 |
| → ben225 joined | 07:53 |
|
jast
| that kind of thing works in the simplest cases | 07:53 |
|
| but usually you have to cram a lot of logic into hooks like that, and that makes the hook the deploy tool and not git :) | 07:53 |
|
EugeneKay
| 'git' is an object model, at it's core. Your deployment tool should use git to get it's data, but all the scripting is up to you. | 07:54 |
| → shruggar joined | 07:54 |
| → ipalaus_ joined | 07:54 |
|
quuxman
| EugeneKay: ah ok. That's exactly what we're up to | 07:54 |
| → pandora17 joined | 07:54 |
| → Synthead joined | 07:54 |
|
jast
| for example, if the live environment is structured differently than the source tree (and often it should be) | 07:54 |
|
_ikke_
| Deployment is often more than just update files to the latest version | 07:54 |
| → thiago joined | 07:54 |
|
jast
| or if files need to be pre-processed | 07:54 |
| → dark_element joined | 07:55 |
|
EugeneKay
| Those are jobs for Continuous Integration packages | 07:55 |
|
_ikke_
| Hmm, well, the CI itself doesn't do that, it only initiates it | 07:56 |
| → d3c joined | 07:57 |
| gitinfo set mode: +v | 07:57 |
| benjo2 → bwald | 07:57 |
| ← borwar left | 07:57 |
| → harish joined | 07:58 |
|
quuxman
| EugeneKay: is that just resetting the mtimes based on git's author time? | 07:58 |
|
EugeneKay
| quuxman - exactly so. | 07:58 |
|
quuxman
| EugeneKay: so that's similar enough to my code that I suspect it also takes a good chunk of time to run | 07:58 |
|
EugeneKay
| With a hot filesystem cache(which you have, with packfiles and right after doing a git-archive), I've never seen it take >1s | 07:59 |
| ← d3c left | 07:59 |
| → diegoviola joined | 08:00 |
| → _Qman joined | 08:00 |
| → d3c joined | 08:00 |
|
jast
| quuxman: hard to tell the difference, since the piece of code you shared with us doesn't ever reference any filenames in any way | 08:00 |
| ← teotwaki left | 08:01 |
|
jast
| unless, of course, the difference is that you're really short on RAM :) | 08:01 |
|
quuxman
| EugeneKay: how would I come by $branch ? | 08:01 |
| ← yizumi left | 08:01 |
| → whitman joined | 08:01 |
|
EugeneKay
| quuxman - in my script? It's read from stdin, see man githooks for how to call a post-receive | 08:01 |
|
gitinfo
| quuxman: the githooks manpage is available at http://jk.gs/githooks.html | 08:01 |
|
jast
| read the script :) | 08:01 |
|
quuxman
| EugeneKay: in this case I'm not running it from a githook | 08:02 |
|
jast
| right, in that case just whatever branch you wanted to look at | 08:02 |
|
EugeneKay
| $branch just needs to rev-parse to the commit which you git-archive'd | 08:03 |
| → yizumi joined | 08:03 |
|
EugeneKay
| I'm doing some fancy logic to parse the config options, but you don't care about any of that junk | 08:03 |
| → francisfish joined | 08:04 |
| ← ipalaus_ left | 08:05 |
|
quuxman
| I'm just going to hard code 'master' | 08:05 |
|
| although that's probably a bad idea now that I think about it | 08:05 |
|
jast
| I suppose HEAD might work for you | 08:05 |
|
EugeneKay
| I'd go with HEAD | 08:05 |
| → Lord_DeathMatch joined | 08:05 |
|
quuxman
| Yeah, definitely better than master ;) | 08:05 |
|
jast
| at least as a default | 08:05 |
| → zizzfizzix joined | 08:05 |
| → marcogmonteiro joined | 08:06 |
| ← Rafusek left | 08:06 |
| → Rafusek joined | 08:06 |
| → giallu joined | 08:07 |
| ← cyphase left | 08:08 |
| → esonyun joined | 08:08 |
| ← pppaul left | 08:08 |
| → pppaul joined | 08:09 |
| ← Mowsh left | 08:09 |
| → LimeBlast joined | 08:09 |
| → adhawkins joined | 08:10 |
| ← kadoban left | 08:10 |
| ← harshpb left | 08:10 |
| → OOPMan joined | 08:10 |
| → robotmay joined | 08:11 |
| → harshpb joined | 08:11 |
|
quuxman
| EugeneKay: how many files does that loop through, when it only takes around a second? | 08:12 |
|
EugeneKay
| `find . -type f | wc -l`: 1708 | 08:13 |
|
quuxman
| blarg. What's wrong with this? I copied your line exactly, so now I'm just using one shell command, and it's still taking over a minute for 840 files | 08:13 |
| ← jepler left | 08:13 |
|
EugeneKay
| That box has a SSD and a bitching-fast CPU. | 08:14 |
| → teotwaki joined | 08:14 |
| → achadwick joined | 08:14 |
|
EugeneKay
| There's also <100 commits in that repo, which could be a factor. | 08:15 |
|
quuxman
| that would explain that | 08:16 |
|
EugeneKay
| Remind me of the exact problem again | 08:17 |
|
| There's gotta be ab etter way to approach it | 08:17 |
| ← sq-one left | 08:17 |
| ← bwidmer left | 08:18 |
| → blacktulip joined | 08:18 |
| → bwidmer joined | 08:19 |
|
quuxman
| just trying to get commit times out of all the files in a semi-large directory | 08:19 |
|
EugeneKay
| But you only need the times for files that have changed since the last time you did this, right? | 08:19 |
|
quuxman
| $(git log --name-status --pretty=format:%ct) is basically it, I just have to parse it | 08:20 |
|
| EugeneKay: true... but that doesn't really help | 08:20 |
| ← Milossh left | 08:20 |
| ← esonyun left | 08:20 |
|
EugeneKay
| It might. You can lessen the number of files you have to check by parsing --stat | 08:20 |
| ← bwald left | 08:20 |
| ← gasbakid left | 08:21 |
| ← preflex left | 08:21 |
| ← sporous left | 08:21 |
| → kermit joined | 08:21 |
| → HyperNerdV2_ joined | 08:21 |
|
quuxman
| I'm also looking into using libgit2 | 08:21 |
|
EugeneKay
| Are you doing all this with a non-bare repo? | 08:22 |
| → irenicus09 joined | 08:22 |
|
quuxman
| yeah, there's a working directory, but it's never modified | 08:22 |
| → ipalaus_ joined | 08:22 |
| → gasbakid__ joined | 08:22 |
| ← dreiss left | 08:23 |
| ← irenicus09 left | 08:23 |
|
EugeneKay
| git pull --stat | some sed magic | (while read filename; do $(git log HEAD -1 --- ${filename}); done) | 08:23 |
|
| (and all the rest of the datestamp magic) | 08:23 |
| ← HyperNerdV2 left | 08:24 |
| → sporous joined | 08:24 |
| → preflex joined | 08:24 |
| ← sporous left | 08:25 |
| ← HyperNerdV2_ left | 08:25 |
| → sporous joined | 08:25 |
| ← Vile left | 08:26 |
| ← mastroWork left | 08:27 |
| ← sporous left | 08:27 |
| → sporous joined | 08:27 |
| ← mastro left | 08:28 |
| → tcurdt joined | 08:28 |
| → alexukf joined | 08:29 |
| ← ben225 left | 08:33 |
| ← pppaul left | 08:34 |
| → Fandekasp joined | 08:34 |
| → pppaul joined | 08:35 |
| → jacobrask joined | 08:36 |
|
jacobrask
| Hi, is subtree included in any public git release yet? | 08:37 |
|
EugeneKay
| 1.7.10, IIRC | 08:37 |
| ← tcurdt left | 08:37 |
|
jacobrask
| cool. the latest version in ubuntu backports seem to be 1.7.9.5.. are there any deb/ubuntu repos with newer versions or do I need to compile it? | 08:39 |
| ← pppaul left | 08:39 |
| → mastroWork joined | 08:40 |
| → mastro joined | 08:40 |
| ← d3c left | 08:40 |
| ← gavin_huang left | 08:40 |
| → solofight joined | 08:40 |
| → pppaul joined | 08:40 |
| ← arti_t left | 08:40 |
|
solofight
| people, what do i do if i want to search for a specific word or sentence across several hundreds of log messages ? | 08:41 |
|
EugeneKay
| man grep | 08:42 |
| ← pppaul left | 08:42 |
| → pppaul joined | 08:42 |
|
solofight
| EugeneKay: no, grep can only give the line which contains the word i am searching for. But i want the associated details like commit id, files changed ...etc | 08:42 |
| → flype joined | 08:42 |
| → tatsuya_o joined | 08:43 |
|
EugeneKay
| solofight - yes it can. Look at -A/-B/-C | 08:43 |
|
FauxFaux
| jacobrask: The ubuntu-unstable version will probably install. | 08:44 |
|
solofight
| EugeneKay: oh, will look at it now | 08:44 |
|
EugeneKay
| solofight - if you want it programmatically(for a script) it gets tougher, but doable. | 08:44 |
| → jepler joined | 08:46 |
| ← pppaul left | 08:47 |
|
solofight
| EugeneKay: thank you. Grep -A and -B and -C definitely fit in. I am worried about dynamically detecting the multi line comment and lines after, before the end,start of the comment | 08:47 |
|
| any automatic ways to detect them ? | 08:47 |
|
EugeneKay
| Write a script | 08:47 |
|
cbreak-work
| solofight: man git-log | 08:48 |
|
gitinfo
| solofight: the git-log manpage is available at http://jk.gs/git-log.html | 08:48 |
| → Orbitrix joined | 08:48 |
| → pppaul joined | 08:48 |
| ← huevos left | 08:48 |
|
cbreak-work
| it has grep options | 08:48 |
|
| (in particular --grep) | 08:48 |
|
solofight
| wow cbreak-work you are awesome | 08:49 |
|
| thank you - exactly what i was looking for | 08:49 |
|
| cbreak-work: ++ | 08:49 |
|
| EugeneKay: ++ | 08:49 |
| ← _Qman left | 08:50 |
|
| EugeneKay ZZ | 08:50 |
| → jmd joined | 08:53 |
|
jmd
| I have a couple of directories, in which if I do "git log <fielname>" I see absolutely nothing. What gives? | 08:54 |
|
EugeneKay
| !dashes | 08:54 |
|
gitinfo
| Use a double-dash(--) to separate refs from paths, especially when dealing with ambiguous file names. Ex: git checkout master -- origin (check out the file "origin" from branch "master") | 08:54 |
|
jmd
| Also "git log -- <filename>" shows nothing. | 08:55 |
|
FauxFaux
| jmd: "git ls-files ." | 08:56 |
|
jmd
| Also nothing. | 08:56 |
| ← harshpb left | 08:57 |
|
cbreak-work
| jmd: maybe no file in those dirs is tracked | 08:58 |
| ← ipalaus_ left | 08:58 |
|
jmd
| cbreak-work: But I just committed a change and "git log HEAD" shows they were succesfully changed. | 08:58 |
| → Vile joined | 08:59 |
|
_ikke_
| jmd: Are you only giving the filename, or the whole path? | 08:59 |
|
jmd
| just the filename | 08:59 |
|
_ikke_
| try the relative path | 08:59 |
|
cbreak-work
| jmd: pastebin: git log --stat -1 and git log -- filename | 09:00 |
| ← ilius left | 09:00 |
|
cbreak-work
| all filenames are relative to your current location | 09:00 |
|
jmd
| -1 | 09:00 |
| → andrewh joined | 09:00 |
| ← kcm1700 left | 09:01 |
| → kcm1700 joined | 09:01 |
| → srinivas07 joined | 09:01 |
| ← glcrazy left | 09:03 |
| → glcrazy joined | 09:03 |
| ← s0ber left | 09:04 |
| → berserkr joined | 09:06 |
| ← jaseemabid left | 09:08 |
| → h0bbit_ joined | 09:09 |
| → Sigma[Mtp] joined | 09:09 |
| ← pppaul left | 09:10 |
| → pppaul joined | 09:11 |
| ← Sigma left | 09:11 |
| → whgkl joined | 09:12 |
| Sigma[Mtp] → Sigma | 09:12 |
| ← TomyLobo left | 09:13 |
| gitinfo set mode: +v | 09:13 |
|
whgkl
| Hi, is there a way to enable verbose when using git difftool? The mingw32 environment doesn't start my kdiff3 executable... | 09:13 |
|
FauxFaux
| GIT_TRACE=1 git difftool # maybe. | 09:13 |
|
solofight
| People, all log related functions we have in Git can be achieved with git log itself ? Ex: git shortlog is nothing but git log --pretty right ? | 09:14 |
| ← srinivas07 left | 09:16 |
|
FauxFaux
| solofight: Looks very different to me. If your question is "can we build everything on top of log", then why not build everything on top of rev-list or something even lower? | 09:16 |
| → f0i joined | 09:16 |
| → xiangfu joined | 09:16 |
|
solofight
| FauxFaux: oh | 09:17 |
| → mxweas_ joined | 09:17 |
| ← jacobrask left | 09:17 |
|
_ikke_
| FauxFaux: Well, git shortlog is imo just a shortcut | 09:18 |
|
FauxFaux
| My guess would be a post-processor. To the source! | 09:19 |
| → mmc1 joined | 09:19 |
| → huevos joined | 09:19 |
| → stodan joined | 09:19 |
|
whgkl
| After "Hit return to launch 'kdiff3':" But nothing happens after hitting return... I only get back to prompt. | 09:20 |
|
FauxFaux
| Bah, it's not. | 09:20 |
|
et
| is kdiff3 installed? | 09:20 |
|
whgkl
| et yap | 09:20 |
| → Vert joined | 09:20 |
|
whgkl
| difftool.kdiff3.cmd=D:/dev/bin/kdiff3/kdiff3.exe $LOCAL $REMOTE | 09:21 |
|
_ikke_
| FauxFaux: What is it then? | 09:21 |
| ← Orbitrix left | 09:21 |
|
| solofight feels KVIrc is a good replacement for mirc, Xchat | 09:21 |
| ← cyb3r3li0g left | 09:21 |
| ← warthog9 left | 09:22 |
| ← thiago left | 09:22 |
| → cyb3r3li0g joined | 09:23 |
|
shruggar
| what's the fastest / easier way to create a tree-object from an arbitrary directory? | 09:23 |
|
whgkl
| when I execute D:/... from propmt kdiff starts... | 09:24 |
| → cortana2 joined | 09:24 |
| ← stodan left | 09:25 |
| → lusers joined | 09:25 |
|
_ikke_
| shruggar: Why do you need that? | 09:25 |
|
FauxFaux
| shruggar: Commit it. | 09:25 |
| → stodan joined | 09:25 |
|
jast
| or put stuff in the index and use write-tree | 09:25 |
|
shruggar
| _ikke_: snapshotting a directory so that I can easily spot differences between what someone has actually deployed and what they're supposed to have deployed | 09:26 |
|
| (also basing some temporary branches off of the "actually deployed", for now) | 09:26 |
|
FauxFaux
| It's a shame hash-object -w doesn't take a directory. | 09:27 |
|
_ikke_
| can't you just copy that dir onto the working tree? | 09:28 |
| ← jackh left | 09:28 |
| → ipalaus_ joined | 09:28 |
| → d3c joined | 09:29 |
|
shruggar
| I have solved this sort of thing in the past by setting GIT_INDEX_FILE and GIT_WORK_TREE | 09:29 |
| → marthinal joined | 09:30 |
| ← pandora17 left | 09:31 |
| ← pppaul left | 09:31 |
| → arti_t joined | 09:32 |
| → pppaul joined | 09:32 |
| → davidbanham joined | 09:32 |
| → srinivas07 joined | 09:32 |
| → warthog9 joined | 09:35 |
| ← lusers left | 09:35 |
| → jaseemabid joined | 09:37 |
| ← ronny left | 09:38 |
| → peda_uni joined | 09:38 |
| gitinfo set mode: +v | 09:41 |
|
peda_uni
| hi. I have two svn repos that contain the same project but both are visible to a different set of developers and I have to keep them in sync. However, the directory structures in the repos are quite different | 09:41 |
|
| is there a way to handle that with git in an easy way? I do not want to diff/patch/copy everything manually | 09:41 |
|
FauxFaux
| You can have two git-svn "remotes" in one repo, and rebase/dcommit changes from one onto the other, but it's going to cause tears. | 09:42 |
| → mischat joined | 09:42 |
| ← ipalaus_ left | 09:42 |
| ← pppaul left | 09:42 |
|
peda_uni
| FauxFaux, yeah, that's not the problem. My problem is, that the files I want to sync are in different directories | 09:43 |
|
| e.g. in one repo it's called "src/foo.c" in the other it's "sources/foo.c" | 09:43 |
|
FauxFaux
| So just git-svn those seperate directories? | 09:43 |
| → pppaul joined | 09:43 |
| → noisebleed joined | 09:44 |
| ← noisebleed left | 09:44 |
| → noisebleed joined | 09:44 |
|
peda_uni
| hm | 09:44 |
| ← juvenal left | 09:44 |
|
peda_uni
| difficult too, because I have build-files (like cmake, make,...) in the top-level dir, and I have to maintain them, too | 09:45 |
| ← sangi left | 09:46 |
| ← _sundar_ left | 09:46 |
| → sangi joined | 09:46 |
| ← neurodrone left | 09:46 |
| ← pppaul left | 09:48 |
| ← diegoviola left | 09:49 |
| → pppaul joined | 09:49 |
|
shruggar
| why are these two trees so different? If they are so different, what about them actually needs to be "sync"ed? | 09:50 |
|
| syncing directories usually means ensuring they have the same structure, too | 09:50 |
| ← weiyang left | 09:51 |
| ← glcrazy left | 09:51 |
| → benjo2 joined | 09:52 |
|
peda_uni
| one repository is a win project, the other's a linux project and they have much functionality in common (i.e. many files are/should be the same) | 09:52 |
|
| but build-files and some startup/gui-code is different | 09:53 |
| ← d3vic3 left | 09:53 |
|
peda_uni
| and I'd like to get commits done to common files in one of the repos also in the other repo | 09:54 |
| → d3vic3 joined | 09:54 |
| ← twb left | 09:54 |
| → ToBeFree joined | 09:55 |
|
FauxFaux
| Just fix the project to have some kind of non-terrible layout. /o\ | 09:55 |
|
peda_uni
| :) | 09:57 |
| → icq joined | 09:57 |
|
icq
| hey guys | 09:57 |
|
| I am trying to migrate an svn repository to git but I am encountering some problems | 09:58 |
| → _sundar_ joined | 09:58 |
|
icq
| first I have trunk/tags/branches/other-branch-folder so I do -T trunk -b branches -b other-branch-folder -t tags | 09:58 |
| ← localhost left | 09:58 |
| → thiago joined | 09:58 |
|
icq
| the problem is that in other-branch-folder there is a README file | 09:58 |
|
| how is git going to deal with that file? | 09:59 |
|
| will it skip it? | 09:59 |
| ← PrinceAMD left | 09:59 |
| ← n3m left | 09:59 |
| → localhost joined | 10:01 |
|
cbreak-work
| icq: a single file branch? | 10:03 |
| ← machty left | 10:04 |
| ← chaowang left | 10:06 |
| → arietis joined | 10:07 |
| → ipalaus_ joined | 10:08 |
| ← pppaul left | 10:10 |
| → pppaul joined | 10:11 |
| → PrinceAMD joined | 10:11 |
| → DoniRS joined | 10:12 |
| ← xiangfu left | 10:12 |
| ← andrewh left | 10:12 |
| ← ipalaus_ left | 10:14 |
| → andrewh joined | 10:15 |
| ← gasbakid__ left | 10:15 |
| → QaDeS joined | 10:15 |
| ← mxweas_ left | 10:18 |
| → gasbakid__ joined | 10:18 |
| ← fuzzybunny69y left | 10:19 |
| → ipalaus_ joined | 10:20 |
| ← berserkr left | 10:20 |
| → berserkr joined | 10:22 |
| ← jaseemabid left | 10:24 |
| ← mischat left | 10:24 |
| → mischat joined | 10:24 |
| → pirx joined | 10:25 |
| ← jceb left | 10:25 |
|
pirx
| hello! i have a gitosis-admin repository on a server. my key is not added there, and all people with admin rights have quit the company. i have full access to the server, and need to clean up among the keys and such. any pointers on how to do this? | 10:26 |
| → jkal joined | 10:26 |
| ← stliu left | 10:26 |
|
_ikke_
| !gitosis | 10:26 |
|
gitinfo
| gitosis is no longer maintained and supported by the author; we usually recommend gitolite instead which has much better documentation and more features: http://github.com/sitaramc/gitolite | 10:26 |
|
pirx
| yes, that does not help me much with gitosis:) | 10:27 |
|
| new repos use gitolite, but this one still remains | 10:27 |
|
FauxFaux
| pirx: Probably need to manually fiddle ~gitosis/.ssh/authorised_keys to get it to allow you to push gitosis-admin once, as if you were someone else. | 10:27 |
|
sitaram
| pirx: gitosis has no "write access control" so you can just clone the repo directly on the server, add your key, and push; it should work | 10:28 |
|
| (I'm guessing here) | 10:29 |
| ← angelsl left | 10:29 |
|
pirx
| i grepped the home dir of gitosis for the admin keys, and they are added in a few places, like ~/repositories/gitosis-admin.git/gitosis.conf and binary match on ~/repositories/gitosis-admin.git/index | 10:29 |
|
| but i am not sure i want to edit those files directly in a production server | 10:29 |
|
| sitaram: aha, will try that | 10:29 |
|
sitaram
| pirx: log on to server, git clone repositories/gitosis-admin.git ga, cd ga, <change keys, git add, commit, push> | 10:30 |
| → GreekFreak joined | 10:30 |
|
sitaram
| again, I'm guessing here; it's been ages since I looked at it anyway | 10:31 |
|
MacGyverNL
| As an aside, if you're fiddling anyway, why not migrate the old repo to gitolite? | 10:31 |
| ← f0i left | 10:31 |
|
sitaram
| pirx: the reason you should do what MacGyverNL said is that there really isn't any support for gitosis. No one really knows, no one cares | 10:31 |
| → wean joined | 10:32 |
|
sitaram
| but I'm the author of gitolite so I'm clearly biased (and that is why I waited till someone else said it ;-) | 10:32 |
|
jkal
| hi, i'm trying to do something like this: http://dpaste.de/YOxwu/ | 10:33 |
|
| any insight on what is the best strategy to do it? | 10:34 |
|
shruggar
| I just thought it was funny you were giving gitosis advice, since clearly the last time you needed to think about it, it must have ended with "screw this! I'll write my own!" | 10:34 |
|
GreekFreak
| Hi. I am trying to create a repo on my flashdrive so I can push to that instead of github. I have followed these instructions by someone in this channel, but it fails at the push: (1) $ cd /media/Platform_Code && mkdir admin_base.git && cd admin_base.git && git init --bare (2) I went to my repo (my project folder not the .git folder in that) and: $ git remote add flashdrive /media/Platform_Code && git push flashdrive --all. This all | 10:34 |
|
| fails on the push with the error 'fatal: '/media/Platform_Code/' does not appear to be a git repository' | 10:34 |
| → mabrand joined | 10:34 |
| → cthuluh_ joined | 10:35 |
| ← scientes left | 10:35 |
| → linusoleander joined | 10:35 |
|
shruggar
| GreekFreak: use "git bundle" for sneakernet-based transfers | 10:35 |
|
GreekFreak
| shruggar, sorry, I'm new to all this. what is a sneakernet-based transfer? | 10:36 |
|
shruggar
| as in "copy files to an external drive, walk them over (ie, in your sneakers) to the other computer, plug in drive" | 10:37 |
| → marhaban joined | 10:38 |
| gitinfo set mode: +v | 10:38 |
|
benjo2
| GreekFreak: git remote add flash drive /media/Platform_Code/admin_base.git | 10:38 |
|
| you're missing the repo when you do the remote add | 10:38 |
|
GreekFreak
| shruggar, lol | 10:39 |
|
| benjo2, trying it now | 10:39 |
|
shruggar
| it's a very common term. I suppose it's gotten less common the more ubiquitous networking has become | 10:39 |
|
_ikke_
| https://en.wikipedia.org/wiki/Sneakernet | 10:40 |
|
MacGyverNL
| shruggar: People are also usually baffled if I use the term "air gap firewall". | 10:40 |
|
GreekFreak
| benjo2, thanks, that did it | 10:40 |
| → wbednarski joined | 10:41 |
|
shruggar
| heh, as if an air gap could stop anything these days :) | 10:41 |
|
GreekFreak
| shruggar, you forget how many things are taken for granted these days | 10:41 |
| ← pppaul left | 10:41 |
| → xiangfu joined | 10:41 |
|
FauxFaux
| I bet someone, somewhere, is using wireless because they heard that an air-gap was important. | 10:41 |
|
_ikke_
| :D | 10:41 |
| ← robbyoconnor left | 10:42 |
|
MacGyverNL
| shruggar: Well, for one thing, SCADA-systems should be air-gapped considering the horrendously inadequate security measures on them. | 10:42 |
| → pppaul joined | 10:42 |
|
MacGyverNL
| It doesn't make it impossible to get to them... | 10:42 |
|
| Just... Harder. | 10:42 |
|
| But this is not about git, so let's leave it there. | 10:42 |
| ← flype left | 10:42 |
| cthuluh_ → cthuluh | 10:43 |
| ← linusoleander left | 10:43 |
|
shruggar
| WiFi into a trusted network, trusted because it has an air-gap. Plug in my phone to charge it, laptop detects the network is marked as trusted and shares the connection. Security! :D | 10:43 |
| ← wean left | 10:45 |
| → gavin_huang joined | 10:45 |
| ← benjo2 left | 10:46 |
| → vals_ joined | 10:46 |
| ← tango_ left | 10:47 |
| ← pppaul left | 10:47 |
| → pppaul joined | 10:47 |
| vals_ → tango_ | 10:48 |
| → Ryback_ joined | 10:48 |
| → n2diy joined | 10:50 |
| ← GreekFreak left | 10:50 |
| ← thiago left | 10:51 |
| → amcsi_work joined | 10:52 |
| → gchristensen joined | 10:52 |
| ← ali1234 left | 10:55 |
| → Athlon^1 joined | 10:56 |
| → babilen joined | 10:58 |
|
b00b00
| hello | 10:58 |
| ← pppaul left | 10:58 |
| babilen → Guest96458 | 10:58 |
| → pppaul joined | 10:59 |
| → linusoleander joined | 10:59 |
| ← linusoleander left | 10:59 |
|
shruggar
| s/\d*$//; giggle(); | 10:59 |
| → foofoobar joined | 10:59 |
|
shruggar
| !hi | 10:59 |
|
gitinfo
| [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice. | 10:59 |
|
b00b00
| while trying clonning svn to git, i have this error: "fatal: Not a valid object name refs/remotes/tags/17072008-Private Beta Improvements" and "cat-file commit refs/remotes/tags/17072008-Private Beta Improvements: command returned error: 128" | 10:59 |
| ← w09x left | 10:59 |
| → s0ber joined | 11:00 |
| ← torarne left | 11:00 |
|
b00b00
| any idea what to do here for continuing with clonning? | 11:02 |
| → oehman joined | 11:03 |
| → hendry joined | 11:03 |
|
ivan
| maybe you can delete all mentions of the tag from .git/ | 11:03 |
| ← xiangfu left | 11:03 |
|
b00b00
| ivan: can you assist me how? | 11:03 |
|
shruggar
| I don't know if clone is resumable | 11:03 |
|
ivan
| git svn fetch/rebase is resumable | 11:04 |
|
b00b00
| shruggar: loosk like it is | 11:04 |
|
ivan
| b00b00: grep and an editor | 11:04 |
| ← ipalaus_ left | 11:04 |
| ← zdk left | 11:05 |
| → killerstorm joined | 11:06 |
|
b00b00
| ivan, bit new with this, can be more specific? | 11:07 |
|
ivan
| grep 17072008-Private -r .git | 11:08 |
| ← Guest96458 left | 11:08 |
|
b00b00
| ok, thanks | 11:09 |
| → babilen_ joined | 11:09 |
|
killerstorm
| hi. I've tried process of handling of remote dependencies described here: http://git-scm.com/book/ch6-7.html | 11:09 |
| babilen_ → Guest15863 | 11:09 |
|
killerstorm
| But I don't get how to share such remotes, i.e. enable developers who clone repo to be able to update libraries when they want to. | 11:09 |
|
| Is there some way to achieve identical setup automatically? | 11:10 |
|
b00b00
| ivan: what i supposed to do with the list of a few files found? delete them? | 11:10 |
| ← Guest15863 left | 11:11 |
| → Guest15863 joined | 11:11 |
|
ivan
| nope, just the lines with 17072008-Private | 11:11 |
| Guest15863 → babilen | 11:11 |
|
ivan
| (it may still not work after you do this, I don't know which phase of git/git-svn is breaking) | 11:11 |
|
b00b00
| ivan: yes, meant delete lines, thanks | 11:11 |
| → Constant_ joined | 11:11 |
| ← berserkr left | 11:12 |
| → CannedCorn joined | 11:12 |
| ← Constant_ left | 11:13 |
| ← shruggar left | 11:13 |
| → shruggar1 joined | 11:13 |
| ← _iron left | 11:13 |
| → thiago joined | 11:13 |
| → glennpratt joined | 11:13 |
| ← dr_lepper left | 11:13 |
| → juvenal joined | 11:14 |
| → berserkr joined | 11:14 |
| → rtuin joined | 11:15 |
| → dr_lepper joined | 11:16 |
| ← Orphis left | 11:17 |
| ← stodan left | 11:18 |
| → enmand joined | 11:18 |
| ← whgkl left | 11:19 |
| → Davey joined | 11:20 |
| ← OOPMan left | 11:22 |
| → stodan joined | 11:23 |
| ← Eryn_1983_FL left | 11:23 |
|
sangi
| running git repack throws an error like this "fatal: Out of memory, malloc failed" | 11:23 |
|
thiago
| how much RAM Do you have available? | 11:23 |
|
sangi
| its a 1GB RAM | 11:24 |
| ← jkal left | 11:24 |
| ← CannedCorn left | 11:24 |
|
sangi
| thiago, sorry I have 512MB of RAM | 11:24 |
|
MacGyverNL
| That's not much. | 11:26 |
| → Peste_Bubonica joined | 11:27 |
|
thiago
| sangi: how big is your repository? | 11:27 |
| → w09x joined | 11:27 |
|
sangi
| thiago, its more than 2GB and have a single image of size 900MB | 11:28 |
|
MacGyverNL
| You could try fiddling with deltaCacheLimit, deltaCacheSize and windowMemory. | 11:28 |
| ← arti_t left | 11:28 |
|
MacGyverNL
| Though if there's a file larger than the available memory, I'm unsure if repack can ever succeed. | 11:29 |
| → arti_t joined | 11:29 |
| ← Tohuw left | 11:29 |
| → denysonique joined | 11:29 |
| ← papegaaij left | 11:30 |
| → beautifulmind joined | 11:30 |
|
sangi
| MacGyverNL, I have tried increasing window memory and max_pack_size | 11:31 |
| → Tinti joined | 11:31 |
| → skylamer` joined | 11:31 |
|
sangi
| but the same error only | 11:32 |
| ← yizumi left | 11:32 |
|
sitaram
| MacGyverNL: I think the limit is RAM+swap not just RAM but of course the amount of thrashing might crash the disk on a machine old enough to have only 512 MB :) | 11:34 |
|
thiago
| sangi: you need at least as much RAM as your biggest file. | 11:34 |
| ← pppaul left | 11:34 |
| → fuzzybunny69y joined | 11:34 |
|
sitaram
| thiago: not (technically) RAM+swap? | 11:34 |
|
| sitaram may be wrong; wants to know... | 11:34 |
|
thiago
| I don't think so | 11:34 |
|
sitaram
| hmm | 11:34 |
|
thiago
| I don't know the code for sure either | 11:34 |
|
| RAM+swap would indicate that it's dirty memory | 11:35 |
|
sangi
| thiago, ok | 11:35 |
|
thiago
| i.e., the output of the packer | 11:35 |
|
| since I know that files are mmap()ed to memory, they're clean | 11:35 |
| → pppaul joined | 11:35 |
|
sitaram
| and it'll thrash the disk but *eventually* it should complete, no? | 11:35 |
|
thiago
| then again, when repacking an already-packed file, it needs to expand the contents, so it needs dirty memory | 11:35 |
| → ripper joined | 11:36 |
|
MacGyverNL
| You should decrease windowMemory, not increase it. | 11:36 |
|
thiago
| and all files in .git/objects are already zlib-compressed at least | 11:36 |
| ← andrewh left | 11:36 |
|
MacGyverNL
| Also, it could be that he's running a 32-bit build and hitting a memory space limit. | 11:36 |
| → Tohuw joined | 11:36 |
|
thiago
| MacGyverNL: that's 3 GB on Linux | 11:36 |
|
MacGyverNL
| (My main annoyance with msysgit, as a matter of fact.) | 11:36 |
|
sitaram
| thiago: I'm not even thinking at that level. When does malloc() fail? When RAM+swap is gone low, not just RAM, right? (please God don't let me be wrong about something so basic!) | 11:36 |
|
thiago
| But, in any case, running a program that requires working set size larger than RAM is a bad idea | 11:36 |
|
| it'll thrashs | 11:36 |
| ← ripper left | 11:37 |
|
thiago
| sitaram: malloc() fails when the allocation request fails. Depending on some options, it might be brk() or mmap() (or both). | 11:37 |
|
| that means the kernel decided it could not provide more virtual memory | 11:38 |
| → jceb joined | 11:38 |
|
thiago
| which it does only when it has exhausted its page supply. That's RAM+swap. | 11:38 |
| → stuntmachine joined | 11:38 |
| → benjo2 joined | 11:38 |
| ← teotwaki left | 11:38 |
|
thiago
| but note that we assumed that the error message comes from malloc() returning NULL. It's possible that the error message comes from repack trying mmap() and that returned NULL too. | 11:39 |
|
MacGyverNL
| And then there's still the possibility of overcommit, further complicating matters a bit. | 11:39 |
|
thiago
| overcommitting doesn't cause that error | 11:39 |
|
sitaram
| I guess... anyway even if it works the thrashing would be horrendous | 11:39 |
|
thiago
| it causes the program to exit with SIGSEGV or to get OOM killed | 11:39 |
| → letharion_ joined | 11:39 |
|
thiago
| or SIGBUS, depending on the platform | 11:39 |
|
| indeed | 11:40 |
| gitinfo set mode: +v | 11:40 |
| ← oehman left | 11:40 |
|
thiago
| so my recommendation is: for large repositories, use a 64-bit machine with a few GB of RAM. | 11:41 |
| → solussd_ joined | 11:41 |
| letharion_ → letharion | 11:41 |
| ← arti_t left | 11:41 |
| → arti_t joined | 11:42 |
| → oehman joined | 11:43 |
|
FauxFaux
| sitaram: On x32, you can get heap fragmentation such that large (implicitly contiguous) allocations will fail, even though the actual amount of free everything is quite high. Happens in practice in other areas, i.e. very unlikely to get over 1gb contiguous (for the JVM ¬_¬) on x32 Windows as it poops processes everywhere. | 11:44 |
|
thiago
| FauxFaux: by x32, do you really mean x32? Or did you mean x86? | 11:44 |
|
sitaram
| jvm+windows = poop anyway :) | 11:44 |
|
FauxFaux
| x86_32, yeah. | 11:44 |
|
thiago
| FauxFaux: x32 = 32-bit x86-64 | 11:44 |
| ← dark_element left | 11:44 |
|
thiago
| FauxFaux: i.e., 32-bit code running in long mode | 11:44 |
|
FauxFaux
| Really? Probably ambigious enough that it shouldn't be used anyway. | 11:45 |
|
MacGyverNL
| Doesn't that also happen on x86-64? | 11:45 |
|
thiago
| though it's quite possible that x32 suffers from the same problem | 11:45 |
|
MacGyverNL
| (The heap fragmenting) | 11:45 |
|
FauxFaux
| MacGyverNL: Sure, but the chance of it being a problem is vanishingly small for any relatively sensible allocation. | 11:45 |
| → mtphys joined | 11:45 |
|
thiago
| MacGyverNL: heap fragmentation happens. But you can surely find a 1 GB contiguous virtual space in the 47-bit region available for the program. | 11:45 |
| ← juvenal left | 11:46 |
| → Wooga joined | 11:46 |
|
MacGyverNL
| Ah, of course. | 11:46 |
|
thiago
| on x86-64 with 64-bit pointers, 1 GB is 0.000762939453125% of the possible addressing space | 11:47 |
|
| which isn't 64-bit wide: it's actually 47-bit wide on current machines. | 11:47 |
| ← n2diy left | 11:47 |
|
MacGyverNL
| But what I meant was, it's not like heap fragmenting is truly an architecture artefact of 32-bit x86. | 11:48 |
| → ilius joined | 11:48 |
|
thiago
| on x86, it would be 1/3rd; on x32, it would be 1/4. | 11:48 |
| ← ilius left | 11:48 |
| → ilius joined | 11:48 |
|
FauxFaux
| MacGyverNL: True. I was focussing on the "malloc failing" case. | 11:48 |
| → andrewh joined | 11:48 |
| → juvenal joined | 11:48 |
|
thiago
| heap fragmentation happens all the time, but that's usually not a problem. The problem is when you can't allocate because there's no contiguous block big enough. | 11:49 |
|
| heap fragmentation becomes a problem of itself in long-running applications, because they tend to keep a higher RSS than they actually need (they can't return memory to the OS) | 11:49 |
| ← oehman left | 11:49 |
|
FauxFaux
| Luckily, the JVM fixes all this. /me runs. | 11:51 |
| → bowarv joined | 11:51 |
| ← ilius left | 11:53 |
| ← Tohuw left | 11:53 |
| ← gasbakid__ left | 11:53 |
| → gasbakid joined | 11:53 |
| ← dv310p3r left | 11:54 |
| ← benjo2 left | 11:54 |
| ← cooloney left | 11:55 |
| → sgncfl joined | 11:55 |
| ← pppaul left | 11:56 |
| ← solofight left | 11:56 |
| → Tohuw joined | 11:56 |
| → pppaul joined | 11:56 |
| → angelsl joined | 11:59 |
| ← pppaul left | 11:59 |
| → pppaul joined | 12:00 |
| ← juvenal left | 12:01 |
| → flype joined | 12:01 |
| → dark_element joined | 12:02 |
| → juvenal joined | 12:02 |
| ← skylamer` left | 12:02 |
| ← peda_uni left | 12:04 |
| → dbolser joined | 12:04 |
| → cannonball joined | 12:04 |
| ← pppaul left | 12:06 |
| → pppaul joined | 12:06 |
| → Milossh joined | 12:08 |
| ← mabrand left | 12:09 |
| ← btree__ left | 12:10 |
| ← pppaul left | 12:11 |
| → iamjarvo joined | 12:11 |
| → pppaul joined | 12:11 |
| ← Milossh left | 12:11 |
| → Milossh joined | 12:12 |
| → Kunda joined | 12:12 |
| → ipalaus_ joined | 12:12 |
| ← marhaban left | 12:13 |
| ← ehsan left | 12:14 |
| ← sgncfl left | 12:15 |
| → freeed joined | 12:15 |
| → OOPMan joined | 12:17 |
| ← jmd left | 12:18 |
| → _Qman joined | 12:19 |
| → johnanderson joined | 12:20 |
| ← johnanderson left | 12:20 |
| → papegaaij joined | 12:20 |
| ← stuntmachine left | 12:20 |
| ← QaDeS left | 12:21 |
| → aboudreault joined | 12:22 |
|
aboudreault
| Hi. Can I do a git diff of the files of "Changes to be committed:" section? | 12:23 |
|
FauxFaux
| git diff --cached | 12:23 |
| → ronniy joined | 12:23 |
|
aboudreault
| thans | 12:23 |
|
| *ks. | 12:23 |
| → erichynds joined | 12:24 |
| ← shruggar1 left | 12:28 |
| → proxinix joined | 12:30 |
| ← proxinix left | 12:30 |
| → marhaban joined | 12:30 |
| → AaronMT joined | 12:31 |
| → yoklov joined | 12:32 |
| → ISF joined | 12:33 |
| ← andrewh left | 12:33 |
| ← sangi left | 12:33 |
| → shruggar joined | 12:36 |
| ← mtphys left | 12:36 |
| ← wolftankk left | 12:38 |
| → CannedCorn joined | 12:39 |
| ← marhaban left | 12:40 |
| ← kaen left | 12:42 |
| → d0k joined | 12:42 |
| ← w09x left | 12:42 |
| → w09x joined | 12:42 |
| → duckxx joined | 12:42 |
| ← arti_t left | 12:43 |
| ← w09x left | 12:43 |
| → w09x_ joined | 12:43 |
| → dailylinux joined | 12:44 |
|
dailylinux
| hi | 12:44 |
|
gitinfo
| dailylinux: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 12:44 |
|
dailylinux
| can i get some help to pull a remote branch i've added to another project? | 12:45 |
| ← w09x_ left | 12:45 |
| → w09x joined | 12:45 |
|
_ikke_
| dailylinux: What is your problem? | 12:45 |
|
dailylinux
| i did a git remote add files_odfviewer git://gitorious.org/my-owncloud-apps/files_odfviewer.git | 12:45 |
|
| and then git fetch files_odfviewer | 12:46 |
|
| this doesn't seem to be a correct way of doing it | 12:46 |
| ← w09x left | 12:46 |
|
dailylinux
| my config file http://fpaste.org/ewkz/ | 12:46 |
| → w09x joined | 12:47 |
|
_ikke_
| dailylinux: The only step you are still missing is a merge or a rebase (or creating a local branch from the remote branch) | 12:49 |
| → raz joined | 12:49 |
| ← solussd_ left | 12:49 |
|
raz
| gnah | 12:49 |
|
_ikke_
| depending on what you want | 12:49 |
| ← duckxx left | 12:49 |
| → solussd_ joined | 12:49 |
|
raz
| so once again i 'git add'ed a directory in the past that itself contained a .git | 12:49 |
|
| it's been committed a couple times, and checks out as an empty directory | 12:50 |
|
dailylinux
| _ikke_, hmm. i want to merge | 12:50 |
|
raz
| i removed the .git in there now, but how do i re-add it as regular directory? git status shows nothing, even after git adding it again | 12:50 |
|
dailylinux
| _ikke_, not gonna edit and change, just test the codes | 12:50 |
| → w09x_ joined | 12:51 |
| ← w09x left | 12:51 |
| ← fuzzybunny69y left | 12:51 |
|
_ikke_
| dailylinux: What branch are you talking about in particular | 12:51 |
| → Bass10 joined | 12:51 |
| ← Kunda left | 12:51 |
|
dailylinux
| [remote "files_odfviewer"] _ikke_ | 12:51 |
| → shruggar1 joined | 12:52 |
| → w09x joined | 12:52 |
| ← w09x_ left | 12:52 |
|
_ikke_
| dailylinux: That's a remote, not a branch | 12:52 |
|
| dailylinux: git branch -r | 12:52 |
|
raz
| ok, apparently the offending directory is checked in as "Subproject commit <hex>" (according to git log -p) | 12:52 |
| ← w09x left | 12:53 |
|
| raz curses the submodule trainwreck yet again | 12:53 |
| ← shruggar left | 12:53 |
| → tommyvyo joined | 12:53 |
|
dailylinux
| _ikke_, i need to clone it or merge it locally | 12:54 |
| → w09x joined | 12:54 |
|
_ikke_
| raz: subproject != submodule | 12:54 |
| ← solussd_ left | 12:54 |
|
_ikke_
| Why do you think you want to merge it? | 12:54 |
|
raz
| _ikke_: git behaves absolutely brain damaged when you run "git add; git commit" on a directory that contains a .git | 12:54 |
| ← killerstorm left | 12:54 |
| → chffelix joined | 12:54 |
|
_ikke_
| raz: Can be, don't have experience with it. But you don't add a submodule that way | 12:54 |
|
raz
| unless there is a way to do anything useful out of the resulting commit | 12:54 |
| ← w09x left | 12:54 |
| → w09x joined | 12:55 |
|
raz
| _ikke_: ofcourse you don't. but it happens very easily by accident and is easy to go unnoticed until you clone the repo to some other place and end up with empty directories. | 12:55 |
| → sq-one joined | 12:55 |
|
raz
| i don't understand why git can't do the natural thing and simply add such a directory as a submodule when you 'git add' it. because that's very likely what the user actually wants when doing that. | 12:56 |
| → tyatpi joined | 12:56 |
|
_ikke_
| raz: that's not how submodules work | 12:56 |
|
chffelix
| hi everyone.. | 12:56 |
|
gitinfo
| chffelix: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 12:56 |
|
dailylinux
| _ikke_, hmm, not sure. I need it locally cloned at least :) | 12:57 |
|
raz
| _ikke_: perhaps i'm missing the forest for the trees yet again. can you explain to me in what scenario the current behaviour makes any sense? | 12:57 |
|
_ikke_
| raz: I'm not saying this behaviour makes sense. I'm only saying your proposed alternative is not going to work | 12:57 |
|
raz
| _ikke_: then throw an error "you really don't want to do that" | 12:58 |
|
_ikke_
| raz: Propose that on the mailing list | 12:58 |
|
raz
| don't silently pretend you added something which you didn't :/ | 12:58 |
| → stuntmachine joined | 12:58 |
|
raz
| yes, i think i'm actually gonna type something up | 12:59 |
| ← pppaul left | 12:59 |
| → hellopat joined | 12:59 |
| → pppaul joined | 13:00 |
| ← w09x left | 13:00 |
| → ptolemyxi joined | 13:00 |
|
dailylinux
| _ikke_, you know how to fix it? | 13:00 |
| → w09x joined | 13:00 |
| gitinfo set mode: +v | 13:00 |
|
ptolemyxi
| what does tracking info mean for a branch? is it needed? | 13:00 |
| ← chffelix left | 13:01 |
|
_ikke_
| ptolemyxi: It's not crucial to git, but it's a convenience for you | 13:02 |
|
| dailylinux: Depends on what needs to be fixed | 13:02 |
| ← h0bbit_ left | 13:02 |
|
dailylinux
| _ikke_, i need to clone the git git://gitorious.org/my-owncloud-apps/files_odfviewer.git | 13:03 |
|
| and get it locally | 13:03 |
| ← w09x left | 13:03 |
|
dailylinux
| to run the code | 13:03 |
| → marhaban joined | 13:03 |
| → w09x_ joined | 13:03 |
| → h0bbit_ joined | 13:03 |
|
_ikke_
| dailylinux: !xy | 13:03 |
|
gitinfo
| dailylinux: [!doinitrong] It sounds like you're approaching this problem in the wrong manner. Let's step back for a minute - What are you actually trying to achieve? Why are you trying to do it this way? | 13:03 |
| ← dvide left | 13:04 |
|
dailylinux
| _ikke_, trying to add a branch ( git://gitorious.org/my-owncloud-apps/files_odfviewer.git)to main project i've cloned git://gitorious.org/owncloud/owncloud.git | 13:05 |
| ← pppaul left | 13:05 |
| → pppaul joined | 13:05 |
|
_ikke_
| dailylinux: You seem to mix up some terms | 13:06 |
| ← maleknet left | 13:06 |
|
_ikke_
| git://gitorious.org/my-owncloud-apps/files_odfviewer.git is a repository, not a branch | 13:06 |
| → ehsan joined | 13:06 |
| → SkAzZ joined | 13:06 |
|
dailylinux
| _ikke_, ok, sorry... i need that repo added to my existing repos | 13:07 |
|
| so i can do git pull and pull all along.. | 13:07 |
|
_ikke_
| well, you do that with git remote | 13:07 |
| ← mansour left | 13:07 |
|
dailylinux
| git remote add files_odfviewer git-addr? | 13:08 |
|
_ikke_
| git remote add my-own-cloud git://gitorious.org/my-owncloud-apps/files_odfviewer.git | 13:08 |
| → Jackneill joined | 13:08 |
| → vervic joined | 13:08 |
|
_ikke_
| yeah | 13:08 |
|
dailylinux
| that's done | 13:08 |
| ← Jackneill left | 13:08 |
| → Jackneill joined | 13:08 |
|
dailylinux
| so now git pull ? | 13:08 |
| → SkAzZ1 joined | 13:08 |
|
dailylinux
| i did a git fetch, maybe that screwed up things? | 13:08 |
|
_ikke_
| dailylinux: !pull | 13:09 |
|
gitinfo
| dailylinux: pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/ | 13:09 |
| ← arietis left | 13:09 |
|
_ikke_
| So you did only one part of the pull | 13:09 |
|
| the second part is merge | 13:09 |
|
dailylinux
| ah, ok | 13:09 |
| → revagomes joined | 13:10 |
|
dailylinux
| git merge git-addr? | 13:10 |
|
| this is "merging" locally? | 13:11 |
|
_ikke_
| dailylinux: No, not git-addr | 13:11 |
|
| you merge branches, not repositories | 13:11 |
| → machty joined | 13:11 |
| ← SkAzZ left | 13:11 |
| → alexisabril joined | 13:12 |
| ← foofoobar left | 13:12 |
| ← kcj left | 13:12 |
| ← w09x_ left | 13:12 |
| → vitor-br joined | 13:12 |
|
dailylinux
| git merge files_odfviewer ? | 13:12 |
| → juanfer joined | 13:13 |
|
_ikke_
| git merge files_odfview/master | 13:13 |
|
dailylinux
| fatal: 'files_odfview/master' does not point to a commit | 13:13 |
|
_ikke_
| dailylinux: Try reading a !book about git | 13:13 |
|
gitinfo
| dailylinux: There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable | 13:13 |
| ← milli left | 13:13 |
|
_ikke_
| dailylinux: What does git branch -r return? | 13:13 |
|
dailylinux
| i can't see a [branch ......] for this branch | 13:13 |
|
| http://fpaste.org/OnK6/ | 13:14 |
|
_ikke_
| dailylinux: Because it's not recorded in the config by default | 13:14 |
| → Gentlecat joined | 13:14 |
|
dailylinux
| ah, ok | 13:14 |
|
| now i got error | 13:14 |
| → w09x joined | 13:14 |
|
_ikke_
| git merge files_odfviewer/master | 13:14 |
|
dailylinux
| http://fpaste.org/uaqO/ | 13:14 |
|
| yep, i did that | 13:15 |
|
_ikke_
| They don't apply cleanly | 13:15 |
|
dailylinux
| ah, ok | 13:15 |
|
_ikke_
| git status | 13:15 |
| → kor-ilquelit joined | 13:16 |
| → teotwaki joined | 13:16 |
| ← w09x left | 13:16 |
| → w09x joined | 13:17 |
|
dailylinux
| http://fpaste.org/71hi/ | 13:17 |
| ← stuntmachine left | 13:17 |
|
_ikke_
| dailylinux: .gitignore merged | 13:17 |
| ← w09x left | 13:17 |
|
_ikke_
| conflcited* | 13:17 |
| → w09x_ joined | 13:17 |
|
_ikke_
| if you open it, you see conflict markers | 13:17 |
| ← sq-one left | 13:17 |
|
_ikke_
| >>>>> and <<<<< | 13:18 |
| → hyperair joined | 13:18 |
|
dailylinux
| so things are ok now? | 13:18 |
|
| i've opened .gitignore | 13:19 |
| ← Lgb left | 13:20 |
| → bartek joined | 13:20 |
|
dailylinux
| http://fpaste.org/L8aY/ | 13:20 |
|
| some conflicts it seems | 13:20 |
| gitinfo set mode: +v | 13:20 |
|
kor-ilquelit
| hi~! Koreans here?? | 13:20 |
| → Desproges joined | 13:20 |
|
kor-ilquelit
| how make *.git file? | 13:21 |
| ← Athlon^1 left | 13:21 |
| → ph^_ joined | 13:21 |
| → w09x joined | 13:21 |
| ← w09x left | 13:22 |
| → w09x joined | 13:22 |
|
_ikke_
| ctrl-Uctrl-U | 13:22 |
| ← w09x_ left | 13:22 |
| → Lgb joined | 13:22 |
|
_ikke_
| dailylinux: Some things seem duplicate | 13:23 |
| → Balreign joined | 13:23 |
| ← davidbanham left | 13:23 |
| ← ph^ left | 13:23 |
|
_ikke_
| kor-ilquelit: What do you mean? | 13:23 |
| → w09x_ joined | 13:23 |
| ← bartek left | 13:23 |
|
dailylinux
| _ikke_, ok, never mind, i'll just clone and use it :) | 13:23 |
|
| easier | 13:23 |
|
kor-ilquelit
| _ikke_ ex... test@localhost\project\test.git | 13:24 |
| → milli joined | 13:24 |
|
kor-ilquelit
| I'll make it in window.. | 13:24 |
| → dv310p3r joined | 13:24 |
|
_ikke_
| kor-ilquelit: That's a directory, not a file | 13:24 |
| → stuntmachine joined | 13:24 |
|
kor-ilquelit
| aha .. | 13:25 |
|
_ikke_
| kor-ilquelit: Are more precise, that's a repository | 13:25 |
|
| s/are/or/i | 13:25 |
| → bartek joined | 13:25 |
| → Ecesis joined | 13:25 |
| ← Ecesis left | 13:25 |
| ← w09x_ left | 13:25 |
| → w09x_ joined | 13:25 |
| → banghouse2 joined | 13:26 |
| ← w09x left | 13:26 |
| → nadavoid joined | 13:27 |
|
kor-ilquelit
| I installed freeSSHd in window. | 13:27 |
|
| how connect .git?? | 13:27 |
|
| .git directory is D:\PROJECT | 13:28 |
| → zloy1 joined | 13:28 |
| → sq-one joined | 13:29 |
|
dailylinux
| _ikke_, thx for your help :) | 13:29 |
| → kukks joined | 13:29 |
| ← ConstantineXVI left | 13:30 |
| ← w09x_ left | 13:30 |
| ← berserkr left | 13:31 |
| ← OOPMan left | 13:33 |
| → berserkr joined | 13:33 |
| → TeckniX joined | 13:33 |
| → w09x joined | 13:34 |
| ← marhaban left | 13:35 |
| → asu_123_asu joined | 13:36 |
| ← ehsan left | 13:38 |
| → dcarper joined | 13:39 |
| → Per4u3e joined | 13:40 |
| ← LimitedAtonement left | 13:41 |
| ← tatsuya_o left | 13:42 |
| ← pppaul left | 13:42 |
| ← efreese left | 13:42 |
| ← asu_123_asu left | 13:43 |
| ← vervic left | 13:43 |
| → pppaul joined | 13:43 |
| ← yoklov left | 13:43 |
| ← axl_ left | 13:44 |
| → cooloney joined | 13:47 |
| → TomyLobo joined | 13:47 |
| → pandeiro joined | 13:48 |
| ← beautifulmind left | 13:48 |
| ← teotwaki left | 13:49 |
|
benbergman
| the company i work for wants to transition from cvs to git and wants to continue using some scripts (appropriately modified) to checkout the repository by date | 13:49 |
|
| unfortunately, the conversion process seems to have not preserved the dates from cvs | 13:50 |
|
| does anyone have any insight? | 13:50 |
|
| i believe the tool used for the conversion was git-cvsimport, but i was not the one that did the conversion | 13:50 |
|
cbreak-work
| if git doesn't have the dates in git log (and you can't see them in the commits with git show -p commitid | 13:50 |
|
| ) then you probably lost the date during the conversion | 13:51 |
|
| maybe redo the conversion properly? | 13:51 |
|
benbergman
| can you recommend anay resources for doing the conversion "properly"? | 13:51 |
|
cbreak-work
| I have no idea. | 13:51 |
|
| I've not used CVS in decades | 13:51 |
|
| for svn I'd use git-svn | 13:51 |
|
benbergman
| ok | 13:51 |
| → neurodrone joined | 13:52 |
| ← w09x left | 13:52 |
|
et
| a lazy person could import the cvs repo into svn and then use git-svn ;) | 13:52 |
| → ConstantineXVI joined | 13:53 |
|
cbreak-work
| two impedance mismatches for the price of one! | 13:53 |
| → sxie joined | 13:54 |
| ← pppaul left | 13:54 |
| → pppaul joined | 13:54 |
| ← tyatpi left | 13:55 |
| ← d0k left | 13:56 |
| → d0k joined | 13:56 |
|
offby1
| where by "lazy" you mean "masochistic" | 13:57 |
| → ehsan joined | 13:57 |
| → stliu joined | 13:57 |
|
icq
| I have the next situation now: | 13:57 |
|
| I converted a svn repo to a git repository | 13:57 |
|
| it works correct | 13:58 |
|
| then I cloned this git repository | 13:58 |
|
| but git branch -r does not show the branches from the original git repo | 13:58 |
| ← cybersphinx left | 13:58 |
|
icq
| also if I setup git svn on this one I get a hang and doing git svn rebase | 13:58 |
|
| with the next error: | 13:58 |
|
| Unable to determine upstream SVN information from working tree history | 13:59 |
|
et
| don't do that | 13:59 |
|
icq
| I've read in a lot of places and I saw everywhere they were suggesting this solution | 13:59 |
|
| I want a git svn repo so I can start the migration of the services to git while still pushing to svn in the meantime | 14:00 |
|
et
| cloning a repo that was created by git-svn and then using git svn again on either side is a recipe for pain in my experience | 14:00 |
|
BinGOs
| pure clusterfuck in mine. | 14:00 |
| ← pppaul left | 14:01 |
| ← flype left | 14:01 |
| → pppaul joined | 14:02 |
| → mjt joined | 14:04 |
|
charon
| it's "easy" if you know exactly how git-svn works. you "merely" need to copy over all of git-svn's remote-tracking branches into the exact same place, use the same branch config, and 'git svn fetch' | 14:04 |
| ← cagedwisdom left | 14:04 |
| ← alanp left | 14:05 |
|
charon
| if there are no other (git) remotes involved, something like git fetch origin refs/remotes/*:refs/remotes/* may take care of the remote branches (but note !backup) | 14:05 |
|
gitinfo
| Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups | 14:05 |
|
mjt
| how to "force-merge" an upstream-tracking branch to be exactly the same as current upstream, removing all local changes and additions? | 14:05 |
| → agileadam joined | 14:06 |
| ← pppaul left | 14:06 |
|
RandalSchwartz
| git checkout thatbranch; git reset --hard origin/thatbranch | 14:06 |
| → cakehero joined | 14:06 |
| → jackh joined | 14:06 |
| → pppaul joined | 14:07 |
| → alanp joined | 14:07 |
| → gtrak joined | 14:08 |
|
mjt
| um. It does something different. It removes local changes, instead of "reverting" them. | 14:08 |
|
RandalSchwartz
| yes | 14:08 |
|
| isn't that what you want? | 14:08 |
|
| you want to discard all local work, right? | 14:08 |
| → mrwalker joined | 14:09 |
|
mjt
| not exactly | 14:09 |
|
RandalSchwartz
| then ask for what you want. :) | 14:09 |
| → beatak joined | 14:09 |
| → bglusman joined | 14:09 |
|
RandalSchwartz
| or better yet, explain what you want without using words like "merge" | 14:10 |
|
| goal - not mechanism | 14:10 |
| → ology joined | 14:10 |
| ← berserkr left | 14:11 |
| → beatak_m joined | 14:11 |
|
mjt
| upstream does fun games with stable branches, so that stable_x_y changes conflicts with master. There's "upstream" local branch which is now at some x_y stable version, and on top of that, there's some distribution-specific stuff in another branch. I want to preserve current local upstream _state_ but "forward" it to current upstream master branch, so that the "merge commit" will revert all x_y changes and return "back" to upstream/master. | 14:12 |
|
RandalSchwartz
| so you don't need the local modifications. why do you care about the history of those modifications? | 14:12 |
|
mjt
| i want to preserve current state of it since it is related distribution-specific development | 14:12 |
|
RandalSchwartz
| why not just resync with upstream/master? | 14:12 |
| → berserkr joined | 14:12 |
|
RandalSchwartz
| then just shove that stuff into a side branch | 14:12 |
|
| if you force-merge, you'll forever be out of sync SHA1 wise | 14:13 |
|
AlexMax
| Is there a way to see branches with no branchname or tag that haven't been garbage-collected yet? | 14:13 |
|
RandalSchwartz
| you'll never be able to send new local mods upstream | 14:13 |
|
| a branch without a name is just called a "commit" :) | 14:13 |
|
AlexMax
| I just used hg-fast-export and I'm missing some anonymous heads and bookmarked heads | 14:13 |
|
mjt
| um. | 14:13 |
|
SethRobertson
| AlexMax: Look here for the lost&found !fixup | 14:14 |
|
gitinfo
| AlexMax: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 14:14 |
| ← beatak left | 14:14 |
| → codeM0nK3Y joined | 14:15 |
|
mjt
| there was some trick, like checkout -b tmp upstream/master; merge -m ours upstream; branch -M tmp upstream iirc. lemme just try that... | 14:15 |
|
SethRobertson
| mjt: If you rewrote history, that will probably do bad things | 14:15 |
|
RandalSchwartz
| that'll still just get you a commit that *looks* like upstream, but is totally *useless* for shared development | 14:15 |
|
| why do you want that? | 14:15 |
|
mjt
| that branch is not supposed to be used in shared development | 14:16 |
|
AlexMax
| SethRobertson: To make clear what I am trying to do, I am trying to transition from mercurial to git with an SVN upstream, and I'd like to get all of my old history as well. | 14:16 |
|
mjt
| actually i've no idea why, it is how debian used git for packages, and I still can't understand why. | 14:16 |
|
SethRobertson
| AlexMax: I'm not sure why you need to transition from hg to git if svn is upstream. Just reclone from svn | 14:17 |
|
AlexMax
| SethRobertson: I am | 14:17 |
|
| However I'd like to transition all of my old commits from my old repository | 14:17 |
|
| I do not have commit access to the SVN upstream | 14:17 |
|
SethRobertson
| Ah | 14:17 |
|
RandalSchwartz
| I'm still confused as to why you need history of changes that you're then throwing away | 14:17 |
|
| if you need access to those commits, tag it or put it in another branch | 14:17 |
|
AlexMax
| Because I'd like to 'show off' my work on github | 14:17 |
|
RandalSchwartz
| then just reset to match upstream | 14:17 |
| → Fullmoon joined | 14:18 |
| ← Fullmoon left | 14:18 |
|
AlexMax
| instead of there simply being a single SVN revision that says "Merged AlexMax's patch" | 14:18 |
|
RandalSchwartz
| if someone at debian is proposing a wonky dev strategy like that, they need to be edicated. :) | 14:18 |
|
AlexMax
| I'd like to keep all that history | 14:18 |
|
RandalSchwartz
| educated | 14:18 |
| → DoBeL joined | 14:18 |
|
RandalSchwartz
| AlexMax - in case it's not clear, I'm talking to mjt. :) | 14:18 |
|
mjt
| um. there are two discussions going on, i'll just shut up and wait till the interruptee AlexMax will finish. | 14:19 |
| → fly9 joined | 14:19 |
| → joshteam joined | 14:19 |
|
AlexMax
| RandalSchwartz: Ah my paologies | 14:19 |
| gitinfo set mode: +v | 14:19 |
|
AlexMax
| I haven't had enough coffee | 14:20 |
|
DoBeL
| hi, i've some question about git, i have a repo on github, and i want to take 4 commit from another repo (in github too) and add that 4 commits in my repo, it's possible ? how ? | 14:20 |
|
AlexMax
| I'll wait until I'm highlighted again | 14:20 |
|
| with a response | 14:20 |
|
| so sorry | 14:20 |
|
SethRobertson
| RandalSchwartz: They are trying to avoid compiler/typo commits by doing squash instead of rewriting history and perfecting is too hard to explain for them and do for most of their contributers | 14:20 |
|
| Or so I assume | 14:21 |
|
RandalSchwartz
| yeah - still seems confusing though | 14:21 |
| ← kenperkins left | 14:21 |
|
SethRobertson
| AlexMax: Well, it isn't clear what your question is. I already told you how to find your anonymous commits | 14:21 |
|
mjt
| RandalSchwartz: but i think yes, just tagging should be enough. Now it's interesting how to push that new branch state (with reset --hard) to the shared repository which has disable non-ff set to true :) | 14:21 |
|
RandalSchwartz
| why have commits that don't actually influence the current state? | 14:21 |
|
| RandalSchwartz shakes head | 14:22 |
|
| RandalSchwartz wanders off | 14:22 |
|
mjt
| heh | 14:22 |
|
AlexMax
| SethRobertson: Well, I stated my intentions in full, in the hopes that perhaps there would be an easier way | 14:22 |
|
| than using hg-fast-export, having to find lost commits by hand, then uh....somehow getting thsoe commits into the git-svn repo | 14:23 |
| → luxurymode joined | 14:23 |
|
SethRobertson
| mjt: You need to get agreement from everyone else and the admins to disable it because you will get into rewriting wars otherwise | 14:23 |
|
RandalSchwartz
| well - wait, why does the *shared* repository also have those commits that aren't influencing history either? | 14:23 |
|
| maybe you guys need to learn to use something other than "master" for a branch name. :) | 14:23 |
|
SethRobertson
| AlexMax: Why not name the anonymous commits in hg then? | 14:24 |
| → SkAzZ joined | 14:24 |
|
RandalSchwartz
| git push origin master:work-in-progress | 14:24 |
|
mjt
| i rarely use "master" (or "origin" for that matter) myself. | 14:24 |
| → axl_ joined | 14:24 |
| → chrisgeorge joined | 14:24 |
| → legnaleurc joined | 14:25 |
|
RandalSchwartz
| I rarely create local tracking branches now | 14:25 |
|
| I have my "master", and a bunch of origin/ branches, and that's it | 14:25 |
|
mjt
| ditto | 14:25 |
|
RandalSchwartz
| the only thing the local tracking branch does is get out of sync. that seems silly :) | 14:26 |
|
mjt
| usually not origin/* but upstream/* and debian/* (and a few others when needed) | 14:26 |
|
RandalSchwartz
| I can easily type git diff master...origin/maser | 14:26 |
| → Destos joined | 14:27 |
| ← pppaul left | 14:27 |
|
RandalSchwartz
| with gitolite, we're enabling user/merlyn/foo branches | 14:27 |
| → pppaul joined | 14:27 |
|
RandalSchwartz
| and user/merlyn/bar repos | 14:27 |
|
| for communication outside the normal jenkins builds | 14:27 |
|
mjt
| but that resetting will be.. um.. since there's also debian branch which is based on this "local" upstream branch, and that one too will have to be synced somehow... um. | 14:27 |
|
RandalSchwartz
| mjt -= then why isn't the same sha1 coming back at you? | 14:28 |
|
mjt
| and i can't "just" reset --hard it, since that one does actually have something in there | 14:28 |
| ← SkAzZ1 left | 14:28 |
| → kevwil joined | 14:28 |
|
RandalSchwartz
| somewhere, someone else merged something | 14:28 |
|
| adn if so, your local sha1 is now meaningless | 14:28 |
|
mjt
| yes it is meaningless | 14:28 |
|
RandalSchwartz
| anyway - must get in car to go to work. :) | 14:28 |
|
mjt
| thank you for the helo! | 14:29 |
|
| help too! ;) | 14:29 |
| → tharkun joined | 14:29 |
| ← tharkun left | 14:29 |
| ← gavin_huang left | 14:30 |
| ← gchristensen left | 14:31 |
| ← kukks left | 14:31 |
| ← Weiss left | 14:31 |
| → airborn joined | 14:32 |
| ← pppaul left | 14:32 |
| → w09x joined | 14:32 |
| ← srinivas07 left | 14:32 |
| → pppaul joined | 14:34 |
|
AlexMax
| SethRobertson: I don't think hg-fast-export picks up on bookmarks | 14:34 |
|
| and these were already put in branches | 14:34 |
|
| erm | 14:34 |
|
| and branches are forever | 14:34 |
|
cbreak-work
| until someone renames, rewrites or deletes them | 14:34 |
|
AlexMax
| Mercurial branches | 14:35 |
|
SethRobertson
| If hg-export picks up on *anything*, then simply do that same thing to the commits that are not being picked up on | 14:35 |
|
AlexMax
| cool | 14:35 |
| ← DoBeL left | 14:37 |
| → intransit joined | 14:38 |
| → macmartine joined | 14:38 |
| ← j0ran left | 14:39 |
| → minijupe joined | 14:40 |
|
minijupe
| how can I see the history of one line or group of lines in a file. I basically want to know when it was changed to its current state, and what it was before. | 14:41 |
|
offby1
| minijupe: "git blame" will give you that, sort of | 14:41 |
| ← frogonwheels left | 14:41 |
| ← pppaul left | 14:41 |
|
offby1
| probably better to find some sort of GUI tool that will show you the various layers of "git blame". "git gui" probably does this but I've never figured out how to use it. | 14:42 |
| → pppaul joined | 14:42 |
|
minijupe
| offby1: tnx, i tried that first but couldn't make it work. But just found this, which seems to be close enough. Pretty cool: git log -p | 14:42 |
|
| git log -p filename | 14:42 |
| → stkrzysiak joined | 14:42 |
|
AlexMax
| SethRobertson: I found the commits I was looking for, they were dangling | 14:43 |
|
SethRobertson
| Yes, that was expected | 14:43 |
|
offby1
| minijupe: hm, I don't see how "git log -p" does what you wanted, but ... as long as you're happy | 14:43 |
| ← Lord_DeathMatch left | 14:43 |
|
AlexMax
| Now, how do I transplant them to my git-svn repository, keeping the branching data intact? | 14:44 |
|
| I expect the sha1's will be different | 14:44 |
|
| but I don't care | 14:44 |
|
SethRobertson
| AlexMax: Add the hg exported repo as a remote | 14:44 |
| → edude03 joined | 14:44 |
|
SethRobertson
| You can then create local branches out of the remote tracking branches if you want | 14:44 |
|
| Or just leave them as a remote. | 14:45 |
| ← sq-one left | 14:45 |
|
minijupe
| offby1: it doesn't do it exactly. I'll try your gui. | 14:45 |
|
AlexMax
| SethRobertson: Right, but how do i reattach the commits at the right place, since the sha's will be different | 14:45 |
|
SethRobertson
| You would need to use git replace, or cherry-pick, or the three argument version of rebase to attach the commits in the right place | 14:46 |
|
AlexMax
| Ah | 14:46 |
| ← jargon- left | 14:46 |
|
AlexMax
| Thank you so much, by the way | 14:46 |
| ← w09x left | 14:46 |
| ← Destos left | 14:47 |
| ← stliu left | 14:47 |
| → catphish joined | 14:47 |
| ← tqmz left | 14:48 |
| → Lord_DeathMatch joined | 14:48 |
| → Destos joined | 14:48 |
| → jargon- joined | 14:49 |
| → eguzman_ joined | 14:49 |
| → teotwaki joined | 14:50 |
| ← Lord_DeathMatch left | 14:52 |
| → w09x joined | 14:53 |
| → hwrd|work joined | 14:55 |
| → dcope joined | 14:55 |
| ← cooloney left | 14:55 |
| ← axl_ left | 14:55 |
| → axl_ joined | 14:56 |
| ← dcope left | 14:56 |
| → dcope joined | 14:56 |
| ← airborn left | 14:56 |
|
dcope
| Are submodules generally pretty bad? Every time I ask someone about them they say that they're more trouble then they're worth. | 14:56 |
| → gchristensen joined | 14:56 |
| → madewokherd joined | 14:57 |
| ← codeM0nK3Y left | 14:57 |
| → codeM0nK3Y joined | 14:58 |
| → Kunda joined | 14:58 |
| → n3m joined | 14:58 |
| ← Araxia left | 14:59 |
| ← machty left | 14:59 |
| → g0bl1n joined | 14:59 |
| ← g0bl1n left | 14:59 |
| → g0bl1n joined | 14:59 |
| ← ology left | 15:00 |
| ← rurufufuss left | 15:00 |
| → h0h0h0 joined | 15:00 |
| ← _Qman left | 15:00 |
| ← erichynds left | 15:01 |
| → ns5 joined | 15:01 |
| → tatsuya_o joined | 15:01 |
| ← flijten left | 15:02 |
| gitinfo set mode: +v | 15:02 |
|
solussd
| with korma I'm getting cyclic load errors because my model namespaces are co-dependent- seems like this would be a problem in just about any database driven app using korma with relationships between entities housed in different namespaces. Are we suppose to keep our entire model in one namespace? | 15:04 |
| ← zloy1 left | 15:04 |
| → camdenx_ joined | 15:04 |
|
ns5
| I found that after I push something to orig master, the git-daemon-export-ok file in the original repo will be removed. Any idea? | 15:04 |
| ← camdenx left | 15:04 |
|
solussd
| ^ sorry, wrong channel. | 15:05 |
| → mischat_ joined | 15:06 |
| ← w09x left | 15:07 |
| ← ISF left | 15:08 |
| → alex__c2022 joined | 15:09 |
| ← mischat left | 15:10 |
| mischat_ → mischat | 15:10 |
| → popcorn joined | 15:10 |
| ← psoo left | 15:10 |
| ← ThomasLocke left | 15:11 |
| ← localhost left | 15:12 |
| → ology joined | 15:12 |
| ← n3m left | 15:13 |
| ← cbreak-work left | 15:13 |
| → tyatpi joined | 15:13 |
| → n3m joined | 15:13 |
| ← pppaul left | 15:14 |
|
AlexMax
| SethRobertson: Cherry pick seems to _almost_ work for me | 15:14 |
| ← dpino left | 15:14 |
| ← hyperair left | 15:14 |
|
SethRobertson
| How dopes it not work? | 15:14 |
| variable → trout | 15:15 |
|
AlexMax
| SethRobertson: Well, in the original bookmark, I not only branch, but then I merge from upstream as well | 15:15 |
|
| And when i try to cherrypick that range of commits, it brings the upstream commits as well | 15:15 |
|
| (the old hgsubversion upstream, not the git-svn upstream) | 15:15 |
| ← n3m left | 15:16 |
|
SethRobertson
| ns5: Seems...unlikely. Can you !repro? ls -l .git/git-daemon-export-ok; git push; ls -l .git/git-daemon-export-ok | 15:16 |
|
gitinfo
| ns5: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting. | 15:16 |
| → pppaul joined | 15:16 |
|
SethRobertson
| AlexMax: When you use `git log <range>` do you see the list of commits you expect to see? | 15:17 |
| → urbanmonk joined | 15:17 |
|
AlexMax
| SethRobertson: Well, not what I _wanted_ | 15:17 |
| ← hwrd|work left | 15:18 |
|
AlexMax
| but i suppose i should have expected it | 15:18 |
|
SethRobertson
| What range did you use? | 15:18 |
|
AlexMax
| Just fe3cc5d..4f322c2 | 15:18 |
|
| where fe3 is the first commit in the hg bookmark from the original hgsubversion | 15:18 |
| ← Sitethief left | 15:18 |
|
AlexMax
| and 4f is the latest commit in the hg bookmark | 15:19 |
|
SethRobertson
| Try using three dots and see if `git log` returns what you want then | 15:19 |
|
AlexMax
| There is a commit in between those two f23 that 'merges from upstream' | 15:19 |
| → cybersphinx joined | 15:19 |
|
AlexMax
| no it does not | 15:19 |
|
SethRobertson
| Oh, then cherry-pick the range before and after the merge, but not the merge | 15:19 |
|
AlexMax
| SethRobertson: Okay, but how do I get that merge then? | 15:20 |
| → hyperair joined | 15:20 |
|
SethRobertson
| Recreate it | 15:20 |
|
AlexMax
| Ah i see | 15:20 |
| → Silowyi joined | 15:20 |
|
AlexMax
| cherry pick the original range | 15:20 |
|
| do the merge in git | 15:20 |
|
| then cherry pick the rest | 15:20 |
|
| gotcha | 15:20 |
|
| makes sense | 15:20 |
| ← CannedCorn left | 15:21 |
| ← twisted` left | 15:21 |
| → okiwan joined | 15:22 |
|
AlexMax
| And I don't think this will change any of the shas in my existing repository | 15:22 |
| ← wolog left | 15:22 |
| → nrichards joined | 15:23 |
| → mikepack joined | 15:23 |
|
AlexMax
| so once this is done (in my copy of the git-svn repo with a remote of the hg-fast-export repo) i can then add the copy of the git-svn repo as a remote, fetch just that branch, and voila) | 15:23 |
| → kenperkins joined | 15:26 |
| → wolog joined | 15:26 |
| popcorn → popcorn|away | 15:27 |
| ← kermit left | 15:27 |
| popcorn|away → popcorn | 15:27 |
| ← jefferai left | 15:28 |
| ← ipoval left | 15:28 |
| → psoo joined | 15:28 |
| ← d3c left | 15:29 |
| → alberto56 joined | 15:30 |
| ← jargon- left | 15:31 |
| → kadoban joined | 15:31 |
| → kermit joined | 15:31 |
| ← amcsi_work left | 15:31 |
| ← cakehero left | 15:32 |
| → mtphys joined | 15:33 |
| infogulch|afk → infogulch | 15:33 |
| → cakehero joined | 15:34 |
| ← jackh left | 15:35 |
| ← rtuin left | 15:35 |
| → jargon- joined | 15:37 |
| → thelazydeveloper joined | 15:38 |
| → _iron joined | 15:38 |
| → gtrak` joined | 15:39 |
| → wbednarski_ joined | 15:40 |
| → doki_pen joined | 15:40 |
| → beatak joined | 15:40 |
| → xref_ joined | 15:40 |
| → SeySayux_ joined | 15:41 |
| → ppppaul joined | 15:41 |
| ← gtrak``` left | 15:41 |
| ← pppaul left | 15:41 |
| ← beatak_m left | 15:41 |
| ← xref left | 15:41 |
| ← styx_ left | 15:41 |
| ← doki_pen_ left | 15:41 |
| ← SeySayux left | 15:41 |
| ← hays left | 15:41 |
| xref_ → xref | 15:41 |
| ← defaultro left | 15:41 |
| → styx__ joined | 15:41 |
| ← papegaaij left | 15:41 |
| → yatiohi joined | 15:41 |
| → maletor joined | 15:42 |
| → hays joined | 15:42 |
| → defaultro joined | 15:43 |
| ← wbednarski left | 15:43 |
| → CannedCorn joined | 15:44 |
| ← maletor left | 15:44 |
| ← thierryp left | 15:45 |
| → jefferai joined | 15:46 |
| ← mishok13 left | 15:46 |
| → rath joined | 15:49 |
| ← blacktulip left | 15:49 |
| ← jargon- left | 15:50 |
| → HyperNerdV2 joined | 15:50 |
| ← jceb left | 15:51 |
| ← urbanmonk left | 15:52 |
| → SkAzZ1 joined | 15:52 |
| neersighted|AFK → neersighted | 15:53 |
| ← SkAzZ left | 15:53 |
| → dp_ joined | 15:55 |
|
dp_
| I accidentally just pulled changes from master in to another branch. How can I revert those? | 15:55 |
|
Vinnie_win
| dp_: git reset --hard {ref} | 15:55 |
| → airborn joined | 15:55 |
|
RandalSchwartz
| !fixup | 15:56 |
|
gitinfo
| So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 15:56 |
|
RandalSchwartz
| read that! | 15:56 |
| → raatiniemi joined | 15:56 |
|
RandalSchwartz
| a good url to bookmark for any kind of fixup | 15:56 |
| → dfr|mac joined | 15:56 |
|
dp_
| Vinnie_win: thanks | 15:56 |
|
tango_
| I accidentally another branch | 15:57 |
|
dp_
| RandalSchwartz: will do. I read the git from the bottom up document. it was a great help to the basics | 15:57 |
|
tango_
| this needs a meme.jpg | 15:57 |
| ← pdtpatrick left | 15:57 |
| → Anubisss_ joined | 15:57 |
| ← Anubisss left | 15:58 |
| → anth0ny joined | 15:58 |
| ← ns5 left | 16:00 |
| ← barrbrain left | 16:00 |
| ← dfr|mac left | 16:01 |
|
tango_
| something like this http://memegenerator.net/instance/20449409 | 16:01 |
| ← alexukf left | 16:01 |
| ← dark_element left | 16:02 |
| ← robotmay left | 16:02 |
| ← alexisabril left | 16:03 |
|
dp_
| heh | 16:03 |
| → via joined | 16:04 |
|
via
| is there a way to clone a remote repo straight into a tarball? | 16:04 |
|
RandalSchwartz
| not clone, but look at git-archive | 16:04 |
|
| git archive --remote ... | 16:04 |
|
via
| i was trying that, but it seems to request the tarball from the remote server instead of cloning it to produce it | 16:05 |
|
RandalSchwartz
| right | 16:05 |
|
| do you want a *clone*, or a *tarball* | 16:05 |
| ← iamjarvo left | 16:05 |
|
via
| does that require the remote repo to be configured in some way? | 16:05 |
|
RandalSchwartz
| it has to be fairly recent | 16:05 |
| → flype joined | 16:05 |
| ← giallu left | 16:06 |
| → marhaban joined | 16:06 |
|
RandalSchwartz
| the git-archive remote protocol is relatively new | 16:06 |
|
| I'm not sure of the revision required | 16:06 |
|
| you *are* talking about ssh-git protocol right? | 16:06 |
| → alexukf joined | 16:06 |
|
RandalSchwartz
| not http: | 16:06 |
|
via
| and not git:// either? | 16:06 |
| → oddraise1t joined | 16:06 |
|
RandalSchwartz
| a git-server? | 16:06 |
|
| not sure if that knows how | 16:06 |
| → Balreign_ joined | 16:07 |
| → Anubisss__ joined | 16:07 |
| ← hays left | 16:07 |
| ← mikepack left | 16:07 |
| ← nrichards left | 16:07 |
| ← g0bl1n left | 16:07 |
| ← Balreign left | 16:07 |
| ← ptolemyxi left | 16:07 |
| ← juvenal left | 16:07 |
| ← chris2 left | 16:07 |
| ← UukGoblin left | 16:07 |
| ← quuxman left | 16:07 |
| ← xxthink left | 16:07 |
| ← jrdavid left | 16:07 |
| ← Slush- left | 16:07 |
| ← ska-fan left | 16:07 |
| ← anildigital left | 16:07 |
| ← lindenle_ left | 16:07 |
| ← sjefen6 left | 16:07 |
| ← bitslip left | 16:07 |
| ← [E]sc left | 16:07 |
| ← talexb left | 16:07 |
| ← luka12345 left | 16:07 |
| ← OPK left | 16:07 |
| ← avar left | 16:07 |
| ← esc left | 16:07 |
| ← egeste left | 16:07 |
| ← solussd left | 16:07 |
| ← lpsmith left | 16:07 |
| ← narthollis left | 16:07 |
| ← oddraisent left | 16:07 |
| ← mnemoc left | 16:07 |
|
RandalSchwartz
| maybe someone else here knows | 16:07 |
|
dcope
| is there a decent tutorial for subtree? | 16:07 |
| → egeste joined | 16:07 |
|
RandalSchwartz
| if you google for "git subtree", there's a few example pages. | 16:08 |
|
| I'm using subtree heavily for $work if you have a question | 16:08 |
| ← dr0id left | 16:08 |
| → esc joined | 16:08 |
| ← esc left | 16:08 |
| → esc joined | 16:08 |
| → mritz joined | 16:08 |
| → Espreon joined | 16:10 |
| → maletor joined | 16:10 |
| ← alexukf left | 16:10 |
|
Espreon
| Hey guys. How do I merge a local commit with a commit that's already in the remote repository? And yes, I do actually need to do this. | 16:11 |
| ← Anubisss_ left | 16:11 |
| ← mmc1 left | 16:11 |
| → hays joined | 16:12 |
| → mikepack joined | 16:12 |
| → nrichards joined | 16:12 |
| → g0bl1n joined | 16:12 |
| → quuxman joined | 16:12 |
| → chris2 joined | 16:12 |
| → UukGoblin joined | 16:12 |
| → xxthink joined | 16:12 |
| → lindenle_ joined | 16:12 |
| → solussd joined | 16:12 |
| → jrdavid joined | 16:12 |
| → Slush- joined | 16:12 |
| → lpsmith joined | 16:12 |
| → mnemoc joined | 16:12 |
| → ska-fan joined | 16:12 |
| → anildigital joined | 16:12 |
| → sjefen6 joined | 16:12 |
| → bitslip joined | 16:12 |
| → OPK joined | 16:12 |
| → [E]sc joined | 16:12 |
| → luka12345 joined | 16:12 |
| → avar joined | 16:12 |
| → narthollis joined | 16:12 |
| → fangism1 joined | 16:12 |
| → Fudge joined | 16:12 |
| → aaronky joined | 16:12 |
| → pigeon joined | 16:12 |
| ← UukGoblin left | 16:13 |
| ← [E]sc left | 16:13 |
| ← hays left | 16:13 |
|
FauxFaux
| Espreon: Using rebase -i and squash (or any other squash, i.e. merge --squash)? !rewriting | 16:13 |
|
gitinfo
| Espreon: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 16:13 |
| → UukGoblin joined | 16:13 |
| → stkrzysiak_ joined | 16:13 |
| → [E]sc joined | 16:13 |
| → Anubisss joined | 16:14 |
| ← stkrzysiak_ left | 16:14 |
| → stliu joined | 16:14 |
| → hays joined | 16:14 |
| → Proctoglas joined | 16:14 |
| ← Anubisss__ left | 16:14 |
| → stkrzysiak_ joined | 16:15 |
|
Espreon
| Ugh... | 16:15 |
| ← stkrzysiak left | 16:15 |
| stkrzysiak_ → stkrzysiak | 16:15 |
|
Espreon
| ... This is *not* going to end well. | 16:15 |
| ← whitman left | 16:15 |
|
Espreon
| I probably should just nuke my fork, refork, and make it perfect for the... gatekeeper. | 16:15 |
| → yoklov joined | 16:17 |
| → wolfcore joined | 16:17 |
| ← dunpeal left | 16:17 |
| → DofLeFou joined | 16:19 |
| → john_anderson joined | 16:20 |
| ← Proctoglas left | 16:21 |
| ← okiwan left | 16:21 |
| ← SkAzZ1 left | 16:21 |
| → talexb joined | 16:22 |
| ← popcorn left | 16:22 |
| → btree joined | 16:22 |
| ← dailylinux left | 16:22 |
| ← tyatpi left | 16:22 |
| → umc joined | 16:22 |
| ← senny left | 16:23 |
| → SkAzZ joined | 16:23 |
|
Espreon
| FauxFaux: ... Yeah... I think I'll just get one of these perfect commit-obssessed people to hold my hand through the demonic process. Thank you, though. | 16:24 |
| ← dcarper left | 16:24 |
| ← Kunda left | 16:24 |
| ← LimeBlast left | 16:25 |
| ← stliu left | 16:25 |
| ← Espreon left | 16:25 |
| ← revagomes left | 16:26 |
| → jceb joined | 16:26 |
| → dermoth|work joined | 16:27 |
| → sacarlson joined | 16:28 |
| ← marhaban left | 16:29 |
|
sacarlson
| seems when I checkout an older version that some of the files that weren't in the old are still in the git directory how can I remove them? | 16:29 |
| → ymasory joined | 16:30 |
| ← BarryCrayon left | 16:30 |
| → BarryCrayon joined | 16:30 |
| ← adhawkins left | 16:31 |
| ← Milossh left | 16:32 |
| → pdtpatrick joined | 16:32 |
| ← anth0ny left | 16:33 |
| → SkAzZ1 joined | 16:33 |
| → killerstorm joined | 16:33 |
| → drake01 joined | 16:33 |
| ← SkAzZ left | 16:33 |
| → alexisabril joined | 16:34 |
| ← BarryCrayon left | 16:34 |
|
sacarlson
| I tried git clean -f but it returns Not removing raddb/mods-enabled/ not sure why | 16:35 |
|
drake01
| Do I lose something when I use http/https instead of git protocol while cloning a repository? What exactly is the difference | 16:36 |
| ← mikepack left | 16:36 |
| → juvenal joined | 16:36 |
|
RandalSchwartz
| sacarlson - perhaps some .gitignore'd files in there | 16:36 |
| → mikepack joined | 16:36 |
|
RandalSchwartz
| use -x if you *really* want things like a brand new checkout | 16:36 |
|
sacarlson
| RandalSchwartz: good Idea I'll check that | 16:36 |
| ← mikepack left | 16:37 |
| ← IcePic left | 16:37 |
| → mikepack joined | 16:37 |
| ← francisfish left | 16:37 |
| ← Vert left | 16:38 |
| → revagomes joined | 16:38 |
| ← sureaint left | 16:38 |
| → iamjarvo joined | 16:38 |
|
RandalSchwartz
| or the equally dangerous git checkout HEAD . | 16:39 |
| ← achadwick left | 16:40 |
| → eletuchy joined | 16:40 |
| ← jceb left | 16:40 |
|
killerstorm
| hi | 16:41 |
|
gitinfo
| killerstorm: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 16:41 |
| → Araxia joined | 16:41 |
| → avinash joined | 16:41 |
|
killerstorm
| Can somebody explain me how to use subtree-style foreign repo handling when there is more than one developer? | 16:41 |
|
| I.e. both developers want to be able to update libraries from upstream and share stuff with each other. | 16:42 |
| ← drake01 left | 16:42 |
|
killerstorm
| This article: http://git-scm.com/book/ch6-7.html covers only one developer case | 16:42 |
| → sureaint joined | 16:42 |
| → jas4711 joined | 16:43 |
| ← gtrak` left | 16:43 |
| → nesneros joined | 16:44 |
| → gtrak` joined | 16:44 |
| → hellopat_ joined | 16:45 |
|
killerstorm
| Also I wonder which steps are really necessary. Do I need to create branches or remotes will do? | 16:45 |
| ← dr_lepper left | 16:46 |
| ← h0bbit_ left | 16:46 |
|
killerstorm
| Can I updates those branches without checking them out. | 16:46 |
| ← hellopat left | 16:46 |
| → dcarper joined | 16:47 |
| ← yoklov left | 16:47 |
| ← angelsl left | 16:48 |
| → kukks joined | 16:48 |
| ← kukks left | 16:48 |
| → kukks joined | 16:48 |
| → na3r joined | 16:48 |
| → gdoteof joined | 16:49 |
|
gdoteof
| idk what happened. i keep being told i am not on a branch | 16:49 |
|
RandalSchwartz
| killerstorm - git fetch -a (fetchs remote branches) | 16:49 |
|
gdoteof
| so i checkout a branch, and i am still not on a branch | 16:49 |
|
RandalSchwartz
| gdoteof - what kind of command for checkout? | 16:49 |
|
gdoteof
| git branch -a always lists my branches and * (no branch) | 16:49 |
|
| git checkout remotes/origin/deploy | 16:49 |
|
RandalSchwartz
| yeah - that's a detached head | 16:49 |
|
| you can look, but not touch | 16:50 |
|
gdoteof
| i want my head to come back on | 16:50 |
|
RandalSchwartz
| if you want to make commits, make a *local* branch | 16:50 |
|
gdoteof
| i don't. | 16:50 |
|
| i guess, i did make some commits | 16:50 |
|
RandalSchwartz
| not on the remote branch you didn't | 16:50 |
|
gdoteof
| but i don't necessarily need to be doing that | 16:50 |
|
| right | 16:50 |
|
RandalSchwartz
| does "git branch -a" show your local branch too? | 16:50 |
|
gdoteof
| RandalSchwartz: well, i am not sure. i might have made a localbranch called "origin/deploy" | 16:51 |
| ← nesneros left | 16:51 |
|
gdoteof
| i have 5: master, origin/deploy, remotes/origin/HEAD -> origin master, remotes/origin/deploy,remotes/origin/master | 16:51 |
| ← alberto56 left | 16:51 |
|
gdoteof
| what i am trying to do is pull a recompiled executable from remotes/origin/deploy | 16:52 |
|
RandalSchwartz
| so maybe you want "git checkout master" | 16:52 |
|
| and then do what with it?> | 16:52 |
|
gdoteof
| the executable isn't in the master branch | 16:52 |
|
| RandalSchwartz: and then ./ it | 16:52 |
| → jstout24 joined | 16:52 |
| ← abetaha left | 16:52 |
|
RandalSchwartz
| uh ./ ? | 16:52 |
|
gdoteof
| start it | 16:52 |
|
| sorry | 16:52 |
|
RandalSchwartz
| git checkout origin/deploy | 16:52 |
|
| cd (right dir) | 16:52 |
|
| and run it | 16:52 |
|
killerstorm
| RandalSchwartz: git fetch will update remote branches, but article recommends creating local ones which track them | 16:53 |
|
RandalSchwartz
| which article? | 16:53 |
|
| because I don't agree. :) | 16:53 |
|
killerstorm
| http://git-scm.com/book/ch6-7.html | 16:53 |
|
RandalSchwartz
| don't create local branches unless you plan to commit | 16:53 |
|
| it just makes it more confusing | 16:53 |
|
killerstorm
| Yeah, definitely. I suspected that they are unnecessary :) | 16:53 |
| → RyuGuns joined | 16:53 |
| ← solussd left | 16:53 |
|
RyuGuns
| What is unstaging on git? | 16:54 |
|
RandalSchwartz
| RyuGuns - resetting the index for those items to the prior commit | 16:54 |
|
| so that they won't be updated on a new commit | 16:54 |
| ← tvw left | 16:54 |
|
gdoteof
| now git says that i am not telling it which branch to merge with | 16:55 |
|
RandalSchwartz
| gdoteof - why are you trying to merge? | 16:55 |
|
gdoteof
| RandalSchwartz: i am not | 16:55 |
|
| i did git pull | 16:55 |
|
RandalSchwartz
| NO | 16:55 |
|
| pull = fetch + merge | 16:55 |
|
gdoteof
| mk | 16:55 |
|
| good to know | 16:55 |
|
RandalSchwartz
| you didn't say you wanted to merge it somehwere | 16:55 |
|
| you said you just wanted to run it | 16:55 |
|
| my instructions did that | 16:55 |
|
| now what *else* are you trying to do? | 16:56 |
|
RyuGuns
| Everytime I try to push something on github I get "Permission denied (publickey)." | 16:56 |
|
gdoteof
| hrm. i guess i didn't realize the checkout was giving me waht i needed | 16:56 |
|
| sorry | 16:56 |
|
| thanks | 16:56 |
|
RyuGuns
| I did everything according to the docs. | 16:56 |
| → machty joined | 16:56 |
|
RandalSchwartz
| RyuGuns - did you check a simple ssh ? | 16:56 |
| → scientes joined | 16:57 |
|
RandalSchwartz
| ssh github.com | 16:57 |
|
| should return back a verification that all is well | 16:57 |
|
| oh weird. didn't for me either. | 16:57 |
|
| maybe github is broken :) | 16:57 |
|
cmn
| RyuGuns: what url are you using? | 16:58 |
| → dfr|mac joined | 16:58 |
|
RyuGuns
| Just sec | 16:59 |
| → IcePic joined | 16:59 |
| ← maletor left | 16:59 |
| → SkAzZ joined | 16:59 |
|
RyuGuns
| $ git push -u origin master | 17:00 |
|
| Permission denied (publickey). | 17:00 |
|
| Everything else works fine... | 17:00 |
| ← tatsuya_o left | 17:00 |
|
RandalSchwartz
| RyuGuns - try "ssh [email@hidden.address] | 17:00 |
|
| oops | 17:00 |
|
| RyuGuns - try "ssh -T [email@hidden.address] | 17:00 |
|
RyuGuns
| okay... | 17:00 |
|
RandalSchwartz
| if that doesn't work, go back to setting things up | 17:00 |
| → tyatpi joined | 17:01 |
| ← SkAzZ1 left | 17:01 |
| → SkAzZ1 joined | 17:01 |
|
RyuGuns
| Same thing. | 17:02 |
| → grayhoof joined | 17:02 |
| gitinfo set mode: +v | 17:03 |
|
grayhoof
| is having no tracking information for a branch ok? what do I lose if I don't have one? | 17:03 |
|
cbreak
| RyuGuns: did you set up your public key? | 17:03 |
|
| grayhoof: tracking infos are not required | 17:03 |
| → SkAzZ2 joined | 17:03 |
|
cbreak
| you won't get status infos and you won't be able to pull/push without specifying where to push/where to pull from | 17:03 |
|
| unless you rely on less reliable modes | 17:03 |
| ← mischat left | 17:04 |
| ← SkAzZ left | 17:04 |
| ← shruggar1 left | 17:04 |
| ← killerstorm left | 17:04 |
| → SkAzZ joined | 17:04 |
|
RyuGuns
| cbreak: I set it up.. | 17:05 |
|
| Exactly as the docs on github said too.. | 17:05 |
|
cbreak
| what did you do to set it up? | 17:05 |
| ← defaultro left | 17:05 |
| → defaultro joined | 17:05 |
| ← osX64 left | 17:05 |
| ← SkAzZ1 left | 17:06 |
| → Shusshu joined | 17:06 |
| → abetaha joined | 17:06 |
| → Kunda joined | 17:07 |
| → isao joined | 17:07 |
|
cmn
| clearly you didn't, what did you put in .ssh/config? | 17:07 |
| → samtuke joined | 17:07 |
| ← SkAzZ2 left | 17:08 |
|
RyuGuns
| They didn't mention anything about .ssh/config ... | 17:08 |
|
samtuke
| best way to bring specific changes from master back to a branch that is behind master on those files, without merging all changes? | 17:09 |
| ← arvind_khadri left | 17:09 |
| → osX64 joined | 17:09 |
| → alvaro_o joined | 17:11 |
|
cbreak
| you don't need to change .ssh/config | 17:11 |
| ← Vile left | 17:11 |
|
RandalSchwartz
| cbreak - you might if you're using a separate ssh key just for github (recommended) | 17:11 |
|
cbreak
| samtuke: there's only merging history, rebasing on history, or patching stuff in between with cherry picking | 17:11 |
|
| RandalSchwartz: why's that recommended? | 17:12 |
| ← irqq left | 17:12 |
|
RyuGuns
| brb | 17:12 |
|
cbreak
| even if it is, ssh-add ing an other key shouldn't be that tragic | 17:12 |
| ← alvaro_o left | 17:12 |
|
cmn
| if you have many ssh keys, you do need to change .ssh/config | 17:13 |
| → erichynds joined | 17:13 |
| ← Peste_Bubonica left | 17:13 |
|
samtuke
| cbreak, cherry picking is what I need I think - just apply changes from a few specific commits from master to the unstable branch, as fixes that I need occurred in master since the branch occurred | 17:13 |
|
cmn
| otherwise the key negotiation will take too long | 17:13 |
| ← cortana2 left | 17:13 |
|
cmn
| erm... will try too many wrong keys, I mean | 17:13 |
|
cbreak
| samtuke: be aware that that'll create a historic mess | 17:13 |
| ← Davey left | 17:14 |
|
samtuke
| cbreak, the history may be confusing, but it wont stop a full blown merge between the master and unstable branch later right? its a cosmetic mess not a functional mess | 17:15 |
| → Peste_Bubonica joined | 17:15 |
| ← ShooterM_ left | 17:15 |
| → ShooterM_ joined | 17:15 |
| → martinjlowm joined | 17:15 |
|
MacGyverNL
| RandalSchwartz: Why is it recommended to use a separate SSH key for github? | 17:15 |
|
RandalSchwartz
| well - call me paranoid | 17:16 |
| → killerstorm joined | 17:16 |
|
RandalSchwartz
| I use a different pub key for every one of my clients :) | 17:16 |
|
cmn
| MacGyverNL: you should use a separate key for each comptuter/remote computer combination | 17:16 |
|
cbreak
| samtuke: it might cause conflicts | 17:16 |
|
MacGyverNL
| I am paranoid, but I use one SSH key per client I connect from, not per server I connect to. | 17:16 |
|
cbreak
| don't know, I never did that | 17:16 |
| → drev1 joined | 17:16 |
| → mishok13 joined | 17:17 |
|
RandalSchwartz
| because occasionally, I've had to install my private key for that client into one of the clients machines to do multi-hops | 17:17 |
| ← ShooterM_ left | 17:17 |
|
samtuke
| cbreak, well I can always merge them if necessary. nothing more serious than that right? | 17:17 |
|
FauxFaux
| cmn: What does that protect against? Misrepresentation and (the chance of a key being factored) aren't interesting to me. | 17:17 |
|
cbreak
| RandalSchwartz: one key per client makes sense, but not one key per server | 17:17 |
|
MacGyverNL
| RandalSchwartz: But that's what agent forwarding is for. Not ideal, but still better than putting the key on the hop. | 17:17 |
|
RandalSchwartz
| "client" here in the sense of "paying customer" | 17:17 |
|
MacGyverNL
| Ah. | 17:18 |
| → dreiss joined | 17:18 |
|
cmn
| if the service or machine is compromised, only one link is compromised | 17:18 |
|
RandalSchwartz
| sorry - overloaded terms | 17:18 |
| → d4rklit3 joined | 17:18 |
|
cbreak
| samtuke: you'll have "duplicate" commits. | 17:18 |
|
| that's it. | 17:18 |
|
samtuke
| cbreak, I think its worth it - I can't see a better option. I need the functionality from master in my unstable branch | 17:19 |
|
cbreak
| rebase it? :) | 17:19 |
| ← axl_ left | 17:19 |
|
cbreak
| I rebase my own topic branches all the time | 17:19 |
| → gusnan joined | 17:19 |
|
cbreak
| works fine. | 17:19 |
| → axl_ joined | 17:20 |
|
samtuke
| cbreak, can I rebase just a few files, or better yet just files within one directory? | 17:20 |
| → h0bbit joined | 17:20 |
|
cbreak
| no | 17:20 |
|
| that makes no sense | 17:20 |
| ← killerstorm left | 17:20 |
|
cbreak
| rebasing is history rewriting | 17:20 |
|
| it has nothing to do with files | 17:21 |
|
samtuke
| cbreak, right, so to get just the changes I want across I have to cherrypick | 17:21 |
|
cbreak
| why not rebase/merge? | 17:21 |
|
| you'll have to do it eventually | 17:21 |
|
| and it's easier if you do it early :) | 17:21 |
| → sphex joined | 17:23 |
| → mikaello joined | 17:23 |
| → toabctl joined | 17:24 |
|
sphex
| hey. when using git-subtree to include several sub-projects, IIUC I should fetch them with --no-tags or else tag names could collide? | 17:26 |
| → DuzyZiemniak joined | 17:26 |
| ← dreiss left | 17:27 |
|
RandalSchwartz
| sphex - you aren't fetching them | 17:27 |
|
| subtree is | 17:27 |
| → FreeArtMan joined | 17:27 |
|
RandalSchwartz
| either git subtree add (the first time) | 17:27 |
|
| or git subtree pull (to refresh) | 17:27 |
|
| in neither case will you be getting the tags | 17:28 |
| ← thorbjornDX left | 17:28 |
| → osmosis joined | 17:28 |
| → arietis joined | 17:29 |
|
sphex
| oh.. ok | 17:29 |
| → Davey joined | 17:29 |
| ← toabctl left | 17:30 |
|
sphex
| hrm. I'm confused. | 17:31 |
| ← Bass10 left | 17:32 |
|
EugeneKay
| That means you're learning. | 17:32 |
| ← juvenal left | 17:32 |
| → fuzzybunny69y joined | 17:33 |
|
sphex
| RandalSchwartz: is it that if I give the remote repo URLs directly to git subtree, it'll do the equivalent of fetch --no-tags internally? | 17:33 |
| → abhinavmehta joined | 17:34 |
| → juvenal joined | 17:34 |
|
RyuGuns
| Funk yes | 17:35 |
| → HyperNerdV2_ joined | 17:35 |
| ← Desproges left | 17:35 |
| ← d3vic3 left | 17:35 |
| → oehman joined | 17:35 |
|
abhinavmehta
| I've 1 git-repo, since form sometime(months) I'm not using that repo…and now I want to free that repo, by taking that code to another repo, which I call as 'misc', now how to do that..? I want my all commits and history of my subject-repo. | 17:36 |
|
RandalSchwartz
| sphex - I suspect so | 17:36 |
|
| it's only fetching the branch you specify | 17:36 |
| ← osX64 left | 17:36 |
|
RandalSchwartz
| not all the rest of the branches or the tags | 17:36 |
|
RyuGuns
| I did "ssh-add ~/.ssh/id_rsa" and it worked | 17:36 |
| → Bass10 joined | 17:36 |
| ← HyperNerdV2 left | 17:36 |
| HyperNerdV2_ → HyperNerdV2 | 17:36 |
| → shruggar joined | 17:37 |
|
abhinavmehta
| so how to move one repo(assume named as 'x') to another(as a sub branch/folder) with preserving all my commits to 'x'-repo?? | 17:37 |
| → marc_kdab joined | 17:37 |
|
abhinavmehta
| am i clear..? | 17:37 |
|
RandalSchwartz
| just a single branch | 17:37 |
| ← Bass10 left | 17:37 |
|
sphex
| RandalSchwartz: ah! ok. yeah, makes sense. I forgot you could even do that. | 17:38 |
| → toabctl joined | 17:38 |
| → Bass10 joined | 17:38 |
|
PerlJam
| abhinavmehta: it sounds like you want to subtree merge. | 17:38 |
|
abhinavmehta
| PerlJam: give me sometime, I've to read what is subtree merge..I've no idea about this. | 17:39 |
| ← fir31ight left | 17:39 |
|
RandalSchwartz
| are you trying to change the paths within the commits? | 17:39 |
|
| if so, filter-branch or the new shiny git-subtree would be easiest. | 17:39 |
|
PerlJam
| oh, yes. that too. | 17:39 |
|
RandalSchwartz
| or are you just moving commits around | 17:39 |
| ← vitor-br left | 17:40 |
|
| RandalSchwartz is deploying piles of code based around git-subtree | 17:40 |
| → tvw joined | 17:40 |
| ← g0bl1n left | 17:40 |
| → EzeQL joined | 17:40 |
|
sphex
| RandalSchwartz: thanks. say I wanted the tags though. is there a way to have fetch prefix their name with the remote name somehow? | 17:40 |
| → d3vic3 joined | 17:41 |
|
EzeQL
| Hi, im receiving this error while trying to update a submodule : fatal: reference is not a tree: 18a1d3188683263a2a8ac6eef3aedccb0ece9b14 , Unable to checkout '18a1d3188683263a2a8ac6eef3aedccb0ece9b14' in submodule path 'shared' | 17:41 |
| → txomon joined | 17:41 |
|
RandalSchwartz
| sphex not really | 17:42 |
|
| the tags are meaningless because the local commits have a different sha1 anyway | 17:42 |
| ← HyperNerdV2 left | 17:42 |
|
Vinnie_win
| RandalSchwartz: Do you mean you are deploying code to the git project, or your own projects? | 17:42 |
| → osX64 joined | 17:42 |
|
RandalSchwartz
| I'm deploying code for $client | 17:43 |
|
txomon
| I think I found a git annex bug | 17:43 |
| → killerstorm joined | 17:43 |
| ← ronniy left | 17:43 |
|
RandalSchwartz
| I suppose you could argue that the synthetic commit mapping to a remote tagged commit might want to get the same tag | 17:43 |
|
txomon
| if you run: git init; touch a; git annex init thisrepo; git annex add *; git annex unlock *; git annex add *; | 17:43 |
|
RandalSchwartz
| but then you'd have potential collision problems anyway | 17:43 |
| ← dc5ala left | 17:44 |
|
txomon
| it will add twice the same element, without having in account the modifications | 17:44 |
|
init
| >_> | 17:44 |
|
txomon
| If anyone oc | 17:44 |
| ← marcogmonteiro left | 17:44 |
| → fir31ight joined | 17:45 |
| → dr_lepper joined | 17:45 |
| ← killerstorm left | 17:45 |
| → Chillance joined | 17:45 |
| ← shruggar left | 17:46 |
|
sphex
| RandalSchwartz: ah ok. yeah I would only want them to make exploring the history a bit easier. can be helpful to see when releases happened, even if they only match the "real" history of the sub-project. I just found out about git-ls-remote though, I guess that's what I should be using... | 17:46 |
| → thearthur joined | 17:46 |
| → shruggar joined | 17:48 |
| ← Chib left | 17:50 |
|
txomon
| so any idea to know if git annex had already added it or not? or is there anything I can do about this? or anything more reliable than annex? | 17:50 |
| ← samtuke left | 17:50 |
| → mischat joined | 17:51 |
| → hwrd|work joined | 17:52 |
| → maletor joined | 17:52 |
| ← shruggar left | 17:52 |
| ← eletuchy left | 17:53 |
| → SkAzZ1 joined | 17:53 |
|
bremner
| txomon: did you try asking on #vcs-home on oftc? some git annex users (and the author) hang out there. | 17:54 |
|
txomon
| hum didn't know about it, will go there ty bremner | 17:54 |
|
| bremner, was that correct channel? | 17:54 |
|
bremner
| yes | 17:55 |
| ← SkAzZ left | 17:55 |
| → txomin joined | 17:56 |
| ← txomin left | 17:56 |
| ← txomon left | 17:57 |
| → txomon joined | 17:57 |
|
txomon
| sry bremner xchat crashed. Didn't see your reply | 17:58 |
| → ShooterM_ joined | 17:58 |
| ← h0bbit left | 17:58 |
| ← dp_ left | 17:58 |
| → JeroenDeDauw joined | 17:59 |
| ← raatiniemi left | 18:00 |
| ← sacarlson left | 18:00 |
|
bball-
| I have created a branch off of master.. checked out the branch and made some chagnes (did not commit the changes)... | 18:00 |
| → williamcotton joined | 18:01 |
| → bitkiller joined | 18:01 |
|
txomon
| bball-, and what? | 18:01 |
|
bball-
| now I checked out master again but I still see the modified files from the branch Iw as working on earlier | 18:01 |
|
txomon
| bball-, did you add them to git? | 18:01 |
|
EzeQL
| Hi, im receiving this error while trying to update a submodule : fatal: reference is not a tree: 18a1d3188683263a2a8ac6eef3aedccb0ece9b14 , Unable to checkout '18a1d3188683263a2a8ac6eef3aedccb0ece9b14' in submodule path 'shared' | 18:01 |
|
bball-
| they are already being tracked | 18:01 |
|
| all I did was modify them.. | 18:01 |
| ← gusnan left | 18:02 |
|
txomon
| EzeQL, so check it exists | 18:02 |
|
| bball-, git status what tells you? | 18:02 |
| → StamEhad joined | 18:02 |
| ← abhinavmehta left | 18:03 |
|
bball-
| ok.. it shows them as modified and that I need to use git add to update what will be committed | 18:03 |
| → krz joined | 18:03 |
|
bball-
| so if I add them while I have branch 'a' checkedout.. when I checkout branch 'b' I won't see them as being modified anymore ? | 18:03 |
| → subbyyy joined | 18:04 |
| ← StamEhad left | 18:04 |
| ← subbyyy left | 18:04 |
| → subbyyy joined | 18:04 |
| ← subbyyy left | 18:04 |
| → shruggar joined | 18:05 |
| ← TTSDA left | 18:05 |
| ← babilen left | 18:05 |
| ← flype left | 18:05 |
| → subbyyy joined | 18:06 |
| ← subbyyy left | 18:06 |
| → efreese joined | 18:06 |
| → cleardance joined | 18:06 |
| → subbyyy joined | 18:06 |
| ← subbyyy left | 18:06 |
| ← efreese left | 18:07 |
| → subbyyy joined | 18:07 |
|
bball-
| txwikinger: ok.. I did git add -u while I was in my branch | 18:07 |
|
| and then checked out master and they are still showing up as modified ? | 18:07 |
|
| err txomon | 18:07 |
|
cleardance
| What is the standard way to get a new version of a project? Like if i pushed a version to github, a partner did some changing and pushed it, how should i get the newest? do i just clone and overwrit the old files? can git switch back to older versions easily(i guess that is the point...)? | 18:08 |
|
PerlJam
| cleardance: git pull | 18:08 |
|
txomon
| puf, never had that problem before bball- ... can't help you now atm, wait till someone else replys | 18:08 |
| ← rrn left | 18:08 |
|
cmn
| cleardance: the point of version control is that you don't have to overwrite anything | 18:09 |
|
| you fetch from them | 18:09 |
|
| and then see how you want to approach updating, maybe a merge, maybe you do want to abandon local changes | 18:09 |
| → TTSDA joined | 18:10 |
|
JeroenDeDauw
| I have 2 git repos created from doing a git to svn thing. One repo has an incomplete history for some reason and a pile of changes. The other has the full history and no changes (since the svn to git thing). How can I apply the changes from the former onto the later? | 18:10 |
|
cleardance
| so clone is just for the first time? or could you fetch the first time as well? ( i mean if your partner started a project and you dont have any of it yet)? | 18:10 |
| → devth joined | 18:10 |
| ← tfittsy left | 18:10 |
| ← Dreamer3 left | 18:10 |
|
cmn
| clone is setting up the repo and then fetching | 18:10 |
| ← fisted_ left | 18:11 |
| → rrn joined | 18:11 |
| → Weiss joined | 18:11 |
| → adhawkins joined | 18:12 |
|
txomon
| cleardance, the idea is that fetch will assume at least the first commit to be the sames | 18:12 |
|
| same* | 18:12 |
|
cmn
| huh? | 18:12 |
|
| fetch doesn't assume that anything is the same | 18:13 |
| → imachuchu joined | 18:13 |
|
bball-
| txomon: just FYI.. once I commited the changes in my branch they were no longer visible when I checked out master | 18:14 |
| ← agileadam left | 18:14 |
| → sacarlson joined | 18:14 |
|
txomon
| cmn, to be able to merge yes, I don't know if it allows you having data from another repo with no common point in history | 18:14 |
|
cmn
| fetch doesn't have anything to with merge | 18:15 |
|
| if you have commits in common, you'd download less data, nothing else | 18:15 |
| → fisted joined | 18:15 |
|
cmn
| and fwiw, merge doesn't assume or need common commits | 18:15 |
|
txomon
| ... you are correct... doesn't make sense.. Don't know where I got that idea from | 18:17 |
| → abhinavmehta joined | 18:17 |
|
cmn
| you're mixing up fetch, pull and sensible use or merging | 18:17 |
| → robotmay joined | 18:18 |
| → rubyruy joined | 18:18 |
| → zastaph joined | 18:19 |
| ← bitkiller left | 18:19 |
| → Mowsh joined | 18:19 |
| ← jas4711 left | 18:20 |
| ← williamcotton left | 18:20 |
|
abhinavmehta
| In master-branch I added new branch aka 'develop'.(using git checkout -b) and committed and pushed that to git-servers. Now today I've again created new branch aka 'other' from 'develop'..now I want to push this branch too to git-server….but I want that later my git log should show this 'other' branch as a branch born out from develop rather than master..how to do that...? | 18:20 |
|
zastaph
| http://git-scm.com/book/en/Git-on-the-Server-The-Protocols .. even Local Protocol requires you to install git on the server? I considered putting my source on a SMBFS/CIFS NAS, which doesn't currently have git installed | 18:20 |
|
abhinavmehta
| I know I may write "git push other origin/develop"..but not sure..that's why asking you guys.. | 18:20 |
| → andreagelati joined | 18:21 |
| → alberto56 joined | 18:21 |
|
abhinavmehta
| sorry I mean "git push -u other origin/develop" | 18:21 |
| → vbajpai joined | 18:22 |
|
vbajpai
| should I delete a branch, once I am done with it and have merged it with master? | 18:22 |
| → Dreamer3 joined | 18:22 |
| ← alberto56 left | 18:22 |
| ← dv310p3r left | 18:23 |
|
abhinavmehta
| vbajpai: if you delete, where will you end-up putting your code…either you have to merge it with master or have to take it out. | 18:23 |
|
| vbajpai: so its better to merge with master, with appropriate commit-message IMO | 18:24 |
| → Vile joined | 18:24 |
| ← dcope left | 18:24 |
| ← rubyruy left | 18:24 |
|
vbajpai
| abhinavmehta: as I said, I already have merged it with master, should I delete the branch? | 18:24 |
| → rubyruy joined | 18:24 |
| → Dreamer3__ joined | 18:25 |
|
imachuchu
| vbajpai: completely up to you. A branch costs ~40 bytes to keep, and git can hold many many (many!) branches at a time | 18:25 |
| ← Dreamer3__ left | 18:25 |
| ← marthinal left | 18:25 |
|
cmn
| zastaph: that makes no sense, local doesn't talk with the "server" | 18:25 |
|
vbajpai
| imachuchu: i see it more as a namespace issue | 18:25 |
| → eletuchy joined | 18:25 |
|
imachuchu
| vbajpai: so delete whenever you don't want to see one again, and create/recreate whenever you want to | 18:25 |
|
| vbajpai: what do you mean "namespace" | 18:26 |
|
zastaph
| cmn, i agree.. but if you read the link it says that only "Http" of the 4 doesn't "require git to be installed" | 18:26 |
|
vbajpai
| imachuchu: well, the branch names are shared as well, because i pushed the branch to remote as well | 18:26 |
| ← jpalmer left | 18:26 |
|
cmn
| dumb http doesn't require git to be installed, smart http does, and dumb http should die in a fire | 18:26 |
| → jpalmer joined | 18:26 |
| ← Dreamer3 left | 18:27 |
|
zastaph
| cmn, but the link says that Local Protocol requires it.. does that mean that if I use a NAS for remote repository, that NAS needs git installed? | 18:27 |
|
imachuchu
| vbajpai: do you/others plan on using this branch again? | 18:27 |
|
cmn
| zastaph: no it doesn't | 18:27 |
| ← Per4u3e left | 18:27 |
|
vbajpai
| imachuchu: you mean the branch name? or the branch itself? | 18:27 |
|
zastaph
| cmn, so Local+http doesn't require git, ssh+Git does ? | 18:28 |
|
cmn
| local doesn't require any other git than the one you're using anyway | 18:28 |
|
| any other requires git because you're talking to another computer | 18:28 |
|
| except for dumb http which is a pile of crap | 18:28 |
|
zastaph
| but I'm talking about local protocol, so that you actually talk to a local network resource (a NAS) | 18:29 |
|
cmn
| that's not git's job in the local case | 18:29 |
| ← machty left | 18:29 |
| → MANCHUCK joined | 18:29 |
|
zastaph
| ok, i'm confused :) | 18:29 |
|
cmn
| you tell your OS to talk to whatever other system is providing the filesystem | 18:29 |
|
| and you tell git to use that filesystem | 18:29 |
| ← hwrd|work left | 18:29 |
|
imachuchu
| vbajpai: the branch is just a pointer to a commit (and when you add a new commit it just increments the pointer) and a name, so really it is just a name. | 18:29 |
|
cmn
| it doesn't matter if the filesystem is on the other side of the world, as long as it's accessible to git via the filesystem | 18:30 |
|
vbajpai
| imachuchu: good point | 18:30 |
|
zastaph
| right | 18:30 |
|
| cmn, someone should update those docs i guess :p | 18:30 |
|
cmn
| there is nothing wrong on that page | 18:30 |
|
imachuchu
| vbajpai: does that help? | 18:30 |
|
vbajpai
| imachuchu: yes, it does | 18:31 |
|
bremner
| txomon: yes, #vcs-home on network oftc | 18:31 |
| ← vbajpai left | 18:31 |
| → Dreamer3 joined | 18:32 |
|
cmn
| other than being outdated | 18:32 |
| ← andreagelati left | 18:32 |
| → SkAzZ joined | 18:33 |
|
txomon
| bremner, yeah, got there ty | 18:33 |
| ← shruggar left | 18:33 |
| → khmarbaise joined | 18:35 |
| ← SkAzZ1 left | 18:35 |
| ← osmosis left | 18:35 |
| ← thiago left | 18:38 |
| → dpino joined | 18:38 |
| ← Dreamer3 left | 18:39 |
|
zastaph
| for Local Protcol, is SMBFS/CIFS the best choice if both windows, mac and linux needs access? | 18:41 |
| → doug joined | 18:42 |
| → Targen joined | 18:44 |
|
cmn
| it's better to have git run on your actually local filesystem and push out with ssh or wahtever else you have | 18:44 |
| → alberto56 joined | 18:44 |
| ← sdeboey left | 18:44 |
| → flakblas joined | 18:45 |
| → hwrd|work joined | 18:45 |
|
zastaph
| im only going to access the git repository when home, so don't really need the authenticaiton etc. and if I need ssh I need a new server besides the NAS | 18:46 |
| ← banghouse2 left | 18:46 |
|
cmn
| but if you're going to use a shared filesystem for the main repo and not the ones you work on, whatever works for your OS will be fine | 18:47 |
|
| git won't care | 18:47 |
| → banghouse2 joined | 18:47 |
|
cmn
| it will still be faster over ssh often | 18:47 |
| ← Macca- left | 18:47 |
| → osmosis joined | 18:48 |
| ← oehman left | 18:48 |
| ← alberto56 left | 18:48 |
| → macabre joined | 18:48 |
| → alberto56 joined | 18:49 |
| → CptCaptain joined | 18:49 |
|
CptCaptain
| Hey guys | 18:49 |
|
| How can I change the language of git? | 18:50 |
| ← abhinavmehta left | 18:50 |
|
flakblas
| CptCaptain: What do you mean? | 18:50 |
| ← alberto56 left | 18:50 |
|
cmn
| you set your environment settings to whatever language you prefer | 18:50 |
|
| and then upgrade to a git version with l10n support | 18:50 |
| ← fuzzybunny69y left | 18:51 |
|
CptCaptain
| A recent update introduced the german translation but I want to use it in englsh | 18:51 |
|
flakblas
| Oooh. I get it. Real languages. I'm thinking like C, Perl, etc. | 18:51 |
|
cmn
| right | 18:51 |
|
CptCaptain
| I would prefer not to touch | 18:52 |
|
cmn
| so set the environment variables to en_US or C | 18:52 |
| ← Vinnie_win left | 18:52 |
|
CptCaptain
| *$LANG so the rest stays the way it is | 18:52 |
|
cmn
| that's the only way to tell gettext to change the language | 18:53 |
|
| if you want the rest to stay the way it is, change it only for git, for example in a wrapper script | 18:53 |
|
flakblas
| Could you alias the git command and have it run a wrapper that sets LANG temporarily for the duration of the git command? | 18:53 |
|
doug
| i'm in the kneejerk habit of "git fetch; git merge --ff-only origin/mybranch" | 18:53 |
|
| what's the Right Way To Do That? | 18:53 |
| Aaeriele_ → Aaeriele | 18:53 |
|
cmn
| if you're never going to inspect the changes, set up tracking and pull --ff-only | 18:54 |
|
CptCaptain
| So there is no option in gitconfig? | 18:54 |
| → mmc1 joined | 18:54 |
|
cmn
| why would there be? | 18:54 |
| → sdeboey joined | 18:55 |
| → marhaban joined | 18:55 |
|
CptCaptain
| cmn: Why not?^^ | 18:55 |
| → h0bbit joined | 18:55 |
|
cmn
| language is an environment setting | 18:55 |
|
raek
| command line applications are usually in english. it feels pretty weird when they are not. | 18:55 |
|
| I mean, the computer speaks english... | 18:55 |
|
cmn
| the computer speaks whatever you tell it to speak | 18:56 |
|
doug
| cmn: set up tracking? what's that? | 18:56 |
|
raek
| GUIs are usually translated though | 18:56 |
| → HyperNerdV2 joined | 18:56 |
|
cmn
| and if your environment says that your preferred language is German, it shouldn't speak in English if it can | 18:56 |
|
| doug: man git branch --set-upstream | 18:56 |
|
gitinfo
| doug: the git-branch manpage is available at http://jk.gs/git-branch.html | 18:56 |
| ← rath left | 18:56 |
|
raek
| CptCaptain: I guess you could set the LANG variable in your .bashrc file (or equivalent) | 18:57 |
|
flakblas
| I think if you really need it you should just write a wrapper script and alias git to it. Have the wrapper set LANG to whatver you want. | 18:57 |
|
raek
| then it would only affect command line apps (or apps started through a shell) | 18:57 |
|
flakblas
| raek: He only wants it in effect for git. Not the whole env. | 18:57 |
| → twisted` joined | 18:58 |
| → Vinnie_win joined | 18:58 |
|
raek
| flakblas: I assumed CptCaptain had the experience as me, namely that git is the only (or one of the few) command line app on the system which is not translated | 18:58 |
|
| s/not// | 18:59 |
|
cmn
| git wasn't translated until recently; once it could, it started respecting the language settings | 18:59 |
|
flakblas
| Well, he stated that he didn't want to change LANG for the whole env so that's why I suggested a wrapper script. | 19:00 |
|
| raek is thinking about hacking together a "en_SE" locale again | 19:00 |
|
cmn
| yes, we've been talking about wrapper scripts for a while now | 19:01 |
| → SegFaultAX joined | 19:01 |
| → adamcooke joined | 19:03 |
| → mdhopkins joined | 19:04 |
| → whitman joined | 19:06 |
| ← mmc1 left | 19:07 |
| ← teotwaki left | 19:09 |
| → machty joined | 19:10 |
| ← cleardance left | 19:10 |
| → jameswarren joined | 19:10 |
| → f0i joined | 19:11 |
| → g0bl1n joined | 19:11 |
| → diegoviola joined | 19:14 |
| ← _md left | 19:14 |
| → thiago joined | 19:15 |
| → tatsuya_o joined | 19:16 |
| → alberto56 joined | 19:16 |
| ← doug left | 19:16 |
| → ben225 joined | 19:17 |
| ← Sky[x] left | 19:17 |
| ← ToBeFree left | 19:19 |
| ← wbednarski_ left | 19:19 |
| → blacktulip joined | 19:19 |
| → d3c joined | 19:19 |
| ← Gentlecat left | 19:19 |
| ← Lgb left | 19:20 |
| ← psoo left | 19:20 |
| → mcluskydodallas joined | 19:20 |
| → tqmz joined | 19:21 |
| → mmc1 joined | 19:21 |
| ← syphar left | 19:21 |
| → efreese joined | 19:22 |
| → Lgb joined | 19:22 |
| → loco joined | 19:23 |
| → toofar joined | 19:23 |
| ← stodan left | 19:23 |
| gitinfo set mode: +v | 19:23 |
| ← Kunda left | 19:24 |
|
loco
| Hello. If I work on a separate branch, to test new features and not to demolish master branch, what is the best way to come back to master and commit changes I've done on a separate branch to master? | 19:25 |
| → dv310p3r joined | 19:25 |
| ← d3c left | 19:26 |
| → axl__ joined | 19:26 |
| ← hwrd|work left | 19:27 |
| gitinfo set mode: +v | 19:27 |
| ← noisebleed left | 19:28 |
| ← ipalaus_ left | 19:28 |
|
imachuchu
| loco: if a commit logically holds changes, then checkout master and cherry-pick the commits you want | 19:28 |
| ← alberto56 left | 19:29 |
|
loco
| you refer to the last commit on my separate branch? I'm reading about cherry-pick now, but it seems an advanced option and I'm a noob | 19:29 |
| → alberto56 joined | 19:29 |
| ← minijupe left | 19:30 |
| ← axl_ left | 19:30 |
| axl__ → axl_ | 19:30 |
| ← kor-ilquelit left | 19:30 |
|
imachuchu
| loco: cherry-pick takes the changes introduced in a commit and applies them to the current commit to create a new commit. This is used if you only want some of the changes, if you want everything then merge would be the correct command | 19:30 |
| → cantoma joined | 19:31 |
|
imachuchu
| loco: checkout master, merge feature. This brings over all of the changes in feature, though you may want to look up the difference between an ff-merge and a merge node | 19:32 |
| → ISF joined | 19:33 |
| → d3c joined | 19:33 |
| ← erichynds left | 19:33 |
| ← HyperNerdV2 left | 19:33 |
| ← efreese left | 19:34 |
|
loco
| I'd like to make some changes on the separate branch, make a few commits then on this branch, and after the last commit on the separate branch, when I know I want to have these changes on my master, switch back to master and make a commit with changes from the last commit on the separate branch | 19:34 |
| ← isao left | 19:35 |
| → isao joined | 19:35 |
| ← dv310p3r left | 19:35 |
| ← aboudreault left | 19:36 |
| → josefig_ joined | 19:36 |
| → wbednarski joined | 19:36 |
| → NiklasFiekas joined | 19:37 |
|
imachuchu
| loco: so what you want to do is have one commit with all of the changes introduced in feature, or just the changes in the last commit (commits are, conceptually, changes so each commit could be thought of as changes from the previous state of the data) | 19:37 |
|
| loco: *last commit on feature | 19:38 |
| ← Targen left | 19:38 |
|
loco
| changes in the last commit | 19:38 |
| ← iwoj left | 19:38 |
| → Targen joined | 19:39 |
| → bitkiller joined | 19:40 |
| ← gerard0 left | 19:40 |
|
imachuchu
| loco: then cherry-pick the last commit, rebase -i afterwards if you need to fixit up at all (like remove some changes, or change the commit message) | 19:40 |
| → JohnyBaby joined | 19:40 |
|
loco
| ok, thx | 19:41 |
| ← josefig_ left | 19:41 |
| ← sphex left | 19:41 |
| → nowhereman joined | 19:41 |
| ← _W_ left | 19:41 |
| ← nowhere_man left | 19:42 |
| ← CptCaptain left | 19:42 |
| → _W_ joined | 19:42 |
|
loco
| but after cherry-pick I can modify my commit message, without the need to rebase? I don't understand rebase very well yet | 19:42 |
| → sjbrown joined | 19:43 |
|
loco
| with amend for example | 19:43 |
|
sjbrown
| hello, i have a problem - i accidentally did a git checkout of a checksum, and i want to get my working dir back to their previous contents | 19:43 |
|
NiklasFiekas
| sjbrown: do you know the name of the branch you've been working on? master? then "git checkout master" | 19:44 |
|
sjbrown
| master, yeah. | 19:44 |
|
kevlarman
| loco: yes you can use amend | 19:44 |
|
imachuchu
| loco: right, sorry, rebase is more general purpose (it can reword any commit message), amend can only do the previous one | 19:44 |
|
sjbrown
| ok sweet, i'll try that. | 19:44 |
| ← bitkiller left | 19:45 |
| ← catphish left | 19:46 |
| ← machty left | 19:46 |
| → eidolon1 joined | 19:46 |
|
EugeneKay
| sjbrown - !reflog is worth a look | 19:46 |
|
gitinfo
| sjbrown: The git reflog (`git log -g`) records the SHAs of your HEADs for 2+ weeks. `git checkout -b myrestore OLDSHA` and `git reset --hard OLDSHA` will relink to that state via a new and current branch respectively, see http://sethrobertson.github.com/GitFixUm/ for full details. WARNING: reset --hard will trash any uncommitted changes! Visualize with: gitk --all --date-order `git log -g --pretty=%H` | 19:46 |
| → bitkiller joined | 19:47 |
| ← na3r left | 19:47 |
| → machty joined | 19:48 |
| → sntxrr joined | 19:48 |
|
NiklasFiekas
| EugeneKa, sjbrown: however git reset --hard will still leaf HEAD detached | 19:48 |
| → snearch joined | 19:48 |
| ← snearch left | 19:48 |
| → snearch joined | 19:48 |
| ← Ryback_ left | 19:48 |
| ← CannedCorn left | 19:49 |
| ← eidolon1 left | 19:49 |
| → eidolon joined | 19:50 |
|
eidolon
| hi folks, we're trying to clone a git local repo (no remote server) from one machine to another. they've got it up on apache httpd - i can see it in the browser, btu if i do 'git clone http://blah/path' i'm seeing 'refs not found: did you run git update-server-info on the server' ? - we do that, but nothing happens. | 19:50 |
| ← machty left | 19:50 |
|
sntxrr
| hello all. it seems I checked in some sensitive code to my repo - I deleted and recreated the repo, removed the offending file via: http://help.github.com/remove-sensitive-data/ - and pushed back to my new master. | 19:50 |
|
| i'm still seeing a live link to the commit.. and not a cached one - any suggestions? | 19:50 |
|
| FYI, asked in #github w/o any response | 19:50 |
| ← nowhereman left | 19:50 |
| → thebignoise joined | 19:51 |
| ← alberto56 left | 19:51 |
| ← jave left | 19:51 |
| → nowhereman joined | 19:51 |
|
haarg
| where are you seeing the link? | 19:51 |
|
sntxrr
| github | 19:51 |
|
haarg
| where on github? | 19:51 |
| ← bitkiller left | 19:51 |
| → alberto56 joined | 19:51 |
|
sntxrr
| in the commit history | 19:52 |
| → machty joined | 19:52 |
|
sntxrr
| https://github.com/<MY GITHUB USER>/<MY PROJECT>/commit | 19:52 |
|
haarg
| are you certain the commit doesn't exist in your local repo? | 19:52 |
| → SkAzZ1 joined | 19:52 |
| → bitkiller joined | 19:52 |
| → jave joined | 19:53 |
| → toofar_ joined | 19:53 |
| ← alberto56 left | 19:53 |
| ← toofar left | 19:53 |
| ← DoniRS left | 19:53 |
|
cmn
| how are you sure it's not cached? | 19:53 |
| → DoniRS joined | 19:53 |
| → Pistos joined | 19:53 |
| ← isao left | 19:53 |
|
sntxrr
| cleared the browser cache, visible on multiple computers in multiple locations | 19:53 |
| ← macabre left | 19:54 |
| → yoklov joined | 19:54 |
| ← snearch left | 19:54 |
|
imachuchu
| eidolon: I have no idea how to fix your problem (so others feel free to diagnose), but I've suggested multiple times to use git bundle if there is an issue with git over the network | 19:55 |
|
| eidolon: bundle, copy, clone/merge on the target | 19:55 |
|
haarg
| sntxrr: are you still able to see the actual problem commit? | 19:55 |
|
| not just the link in the history | 19:55 |
| ← machty left | 19:55 |
| ← SkAzZ left | 19:55 |
|
cmn
| fair enough, how did you push? what are you using to see this commit? | 19:55 |
|
| are you going directly to the commit's hash? | 19:56 |
|
| because /user/repo/commit isnt' a valid URL | 19:56 |
|
| or path, rather, so you're probably going to /usr/repo/commit/obj-id ? | 19:56 |
| → Dreamer3 joined | 19:56 |
|
sntxrr
| seems that the removed file does NOT appear in a fresh clone of the repo | 19:58 |
| → iwoj joined | 19:58 |
| ← bitkiller left | 19:58 |
| ← g0bl1n left | 19:59 |
|
sntxrr
| cmn - web browser, from emailed comment from a repo watcher noting the commit of sensitive data | 19:59 |
| ← enmand left | 19:59 |
| ← john_anderson left | 19:59 |
|
NiklasFiekas
| sntxrr: does it contain the sha? | 20:00 |
|
sntxrr
| i deleted the repo (via github site). created an identially named one. git push origin master --force | 20:00 |
|
benbergman
| stuntmachine: from the page you linked: "If the commits were viewed online the pages may also be cached." | 20:00 |
|
| woops, sntxrr ^ | 20:00 |
|
cmn
| so what url are you using? | 20:00 |
|
stuntmachine
| no worries :) | 20:00 |
|
cmn
| directly to the commit? | 20:00 |
|
| then it does look like it's a cache issue | 20:00 |
|
benbergman
| that sounds like github might cache it | 20:01 |
|
cmn
| if the repo has the same name, the github backend probably hasn't cleared it up and is serving stale data | 20:01 |
|
| if it's that sensitive, you should contact them | 20:01 |
|
benbergman
| they say to file a ticket if the page is cached on their end | 20:01 |
| → john_anderson joined | 20:01 |
|
sntxrr
| its not *that* crazy sensitive. not like a root password. | 20:01 |
| ← Pistos left | 20:02 |
| ← juvenal left | 20:02 |
|
FauxFaux
| A password is barely sensitive at all, just change it. | 20:02 |
| ← ymasory left | 20:02 |
|
sntxrr
| yes, that will be done. | 20:02 |
| ← eletuchy left | 20:02 |
|
sntxrr
| having a hard time explaining this I guess | 20:03 |
|
| https://github.com/rrxtns/Chillout-Tent-bot is my repo | 20:04 |
|
| file in question is chillbot-kjc.js, which does appear to be removed | 20:04 |
| ← d3c left | 20:04 |
| ← jefferai left | 20:04 |
|
sntxrr
| the reason I can still see the sensitive data is via a comment from the fella I forked my repo from | 20:05 |
| → williambr joined | 20:05 |
|
sntxrr
| i'd link it here.. however.. | 20:05 |
| ← Targen left | 20:05 |
| → Poapfel joined | 20:05 |
| → amrx joined | 20:06 |
|
SethRobertson
| sntxrr: Use git-filter-branch to rewrite the comment, but note that this will not affect the person you forked from of course | 20:06 |
| ← nrichards left | 20:06 |
|
cmn
| so you have a link directly to the commit or file version that caused it | 20:06 |
| → jefferai joined | 20:06 |
| → ping-pong joined | 20:06 |
|
cmn
| that doesn't mean you can grab it with git | 20:07 |
|
amrx
| How can I merge a git repository obtained via "git-svn clone" with a remote "bare" git repository? do I simply add the new remote and do a pull? | 20:07 |
|
sntxrr
| SethRobertson: i did this git filter-branch --index-filter 'git rm --cached --ignore-unmatch chillbot-kjc.js' | 20:07 |
|
SethRobertson
| amrx: Yes, though if you pull (meaning merge) you cannot push back to svn again | 20:07 |
|
| sntxrr: That obviously will not change commit messages, there is a different filter for that | 20:08 |
| → Ecesis joined | 20:08 |
| ← Ecesis left | 20:08 |
| ← mmc1 left | 20:09 |
|
sntxrr
| cmn: you can still grab the info via the github website :( | 20:10 |
| → nutron joined | 20:10 |
| → JohnyBaby_ joined | 20:10 |
|
cmn
| then you should complain to them | 20:10 |
|
| that has nothing to do with git | 20:10 |
| ← blacktulip left | 20:10 |
| → ipalaus_ joined | 20:11 |
|
amrx
| How can I merge changes from a remote, bare git repository with a git-svn clone and still be able to commit to the svn repository? or is this possible? | 20:11 |
|
sntxrr
| SethRobertson: luckily, I didn't "pull" to the person I forked from, so the info is not in his repo | 20:11 |
|
| cmn: fair enough. since I'm a bit of a n00b, thought I'd see if there was something I had missed in git | 20:12 |
|
cmn
| amrx: you'd have to push all of their changes as well to the svn repo | 20:12 |
|
SethRobertson
| No luck about it. You cannot pull to someone. You can push to someone and you can ask them to pull, but that is of course different | 20:12 |
| ← JohnyBaby left | 20:12 |
|
sntxrr
| thats what I meant. like I said, n00berator ;) | 20:13 |
|
SethRobertson
| amrx: git cherry-pick is probably your best bet | 20:13 |
| → CannedCorn joined | 20:14 |
|
amrx
| can I check the alternate remote out into a different branch and merge things using cherrypick? | 20:14 |
|
| SetRobertson: is that what you are suggesting? | 20:14 |
| → cjuner joined | 20:14 |
| ← mnemoc left | 20:14 |
|
zastaph
| is the (Tortoise)Plink mentioned as alternative to OpenSSH during Git Windows instlalation the same as the regular plink.exe from putty homepage? | 20:14 |
| ← williambr left | 20:14 |
| → mmc1 joined | 20:16 |
| ← FreeArtMan left | 20:16 |
| ← eidolon left | 20:16 |
| → dv310p3r joined | 20:16 |
| → teweWORK joined | 20:17 |
|
sntxrr
| contacting github support. appreciate your help | 20:18 |
| → dreiss joined | 20:19 |
| ← yoklov left | 20:19 |
|
canton7
| zastaph, it might be modified slightly iirc? something to do with reducing human interaction? vague memory there... basically the same, anyway | 20:19 |
|
zastaph
| so is it embedded with git or I have to find it elsewhere? and really, which option would you recommend? | 20:20 |
|
| for now im not going to use ssh | 20:20 |
| → beeriz52 joined | 20:20 |
| ← diegoviola left | 20:21 |
| ← Jackneill left | 20:21 |
| → yoklov joined | 20:21 |
|
cmn
| it might be bundled with tortoise, but it's definitely not embedded in git | 20:21 |
|
canton7
| msysgit does ship with plink iirc | 20:21 |
| ← beeriz52 left | 20:22 |
| → lacrymology joined | 20:23 |
|
zastaph
| i got tortoiseHg installed.. probably wouldnt be a good idea to install both | 20:23 |
| → solussd joined | 20:23 |
|
zastaph
| anyway, seems openssh is the bst answer | 20:23 |
| → ymasory joined | 20:23 |
| → HyperNerdV2 joined | 20:24 |
| ← JohnyBaby_ left | 20:24 |
|
canton7
| tortoisegit is a pretty bad piece of software | 20:24 |
|
imachuchu
| amrx: did you get your question answered? (I've only been tangentally listening, so before I jump in and mess things up is everything already fixed?) | 20:25 |
| → rcu joined | 20:25 |
| ← ipalaus_ left | 20:25 |
| → JohnyBaby joined | 20:25 |
| → berwin joined | 20:27 |
| ← txomon left | 20:30 |
| → d3c joined | 20:32 |
| ← JohnyBaby left | 20:34 |
| ← sjbrown left | 20:34 |
| → SegFaultAX|work joined | 20:34 |
| → JohnyBaby joined | 20:35 |
| → gerard0 joined | 20:35 |
| ← osmosis left | 20:35 |
| → osmosis joined | 20:36 |
| → cleardance joined | 20:36 |
|
cleardance
| how do i switch back to an older version? how can i view what verions there are? | 20:36 |
|
amrx
| imachuchu: Based on the feedback, I was going to try checking out the git remote into an alternate brach then using cherry pick to merge | 20:36 |
| ← hellopat_ left | 20:37 |
|
aried3r
| When I delete remote branches, is the branch really deleted, as in, space gained? | 20:38 |
|
kevlarman
| aried3r: nope | 20:38 |
| → hellopat joined | 20:38 |
|
imachuchu
| amrx: sounds like the best option. The only thing I'd add would be to make a temporary merge branch, cherry-pick/merge + rebase that branch till it's pretty, then merge/cherry pick it into the master (think of it as a staging branch for your master) | 20:39 |
| → alexukf joined | 20:39 |
| ← ConstantineXVI left | 20:39 |
|
cleardance
| how do i switch back to an older version? how can i view what verions there are? | 20:39 |
|
aried3r
| Thanks. So what good does deleting remote branches do? Besides not showing in the list of branches? | 20:40 |
| ← cannonball left | 20:41 |
|
imachuchu
| aried3r: nothing but references are deleted until 1. a commit is not referenced, 2. The commit hits the timeout limit (I think it's ~60 days), and 3. the repo is garbage collected | 20:41 |
|
| aried3r: unless you manually git gc and remove the unreferenced commits | 20:41 |
| → eletuchy joined | 20:41 |
|
kevlarman
| imachuchu: reflog entries normally last 30 days | 20:42 |
|
aried3r
| When I 'git gc' and then push, do the other only have to pull or re-clone? | 20:42 |
| ← RyuGuns left | 20:43 |
| → ColKurtz joined | 20:44 |
| ← thebignoise left | 20:44 |
| ← Eridius left | 20:44 |
| → mathieui joined | 20:44 |
|
mathieui
| Hi | 20:44 |
|
gitinfo
| mathieui: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 20:44 |
| olivneh → ori-away | 20:44 |
|
imachuchu
| kevlarman: so reflog's last 30 days, do commits last 60? Alternatively just point me at the man page which lits these | 20:44 |
| ← Shusshu left | 20:45 |
| → JEntrep joined | 20:45 |
|
kevlarman
| imachuchu: commits don't "last" | 20:45 |
|
| any objects that are unreferenced are fair game for git gc | 20:45 |
|
| reflog normally causes them to be referenced for 30 days | 20:46 |
| ← JEntrep left | 20:46 |
|
mathieui
| I have pulled from a repo, then screwed up the merge, but merged anyway, then reverted the merge ; how do I pull again? (git tells me that everything is up-to-date) | 20:46 |
|
imachuchu
| kevlarman: ahh I see, thank you | 20:46 |
|
cmn
| unreferenced objects are left alone for a while | 20:46 |
|
kevlarman
| even after there are no branches from which they are reachable | 20:46 |
|
| cmn: are you sure? | 20:46 |
|
cmn
| yes | 20:46 |
| → gv joined | 20:46 |
| → irqq joined | 20:47 |
|
cmn
| man git gc --prune | 20:47 |
|
gitinfo
| the git-gc manpage is available at http://jk.gs/git-gc.html | 20:47 |
|
imachuchu
| quote - "Prune loose objects older than date (default is 2 weeks ago, overridable by the config variable gc.pruneExpire). This option is on by default." | 20:48 |
| → amya joined | 20:48 |
| ← JohnyBaby left | 20:49 |
| → cmyk_ joined | 20:49 |
|
imachuchu
| mathieui: It sounds like git is correct, the remote data is still in your repo just not merged into your main branch. Look through your repo to find the remote, then merge that manually (with git merge) | 20:49 |
|
cmn
| mathieui: you /are/ up to date, because you already merged that branch | 20:50 |
| ← stuntmachine left | 20:50 |
|
mathieui
| cmn: I know that | 20:50 |
| Nikoli_ → Nikoli | 20:50 |
|
cmn
| !fixup to see how to undo this | 20:50 |
|
gitinfo
| So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 20:50 |
|
mathieui
| I am reading http://git-scm.com/2010/03/02/undoing-merges.html right now | 20:50 |
|
cmn
| the question indicated that you did not | 20:50 |
|
mathieui
| I am aware that the commits are already in the history, but I still want them to be applied :) | 20:51 |
|
cmn
| then you shouldn't have reverted the merge | 20:51 |
|
mathieui
| I want them applied, but not the commited conflict resolution | 20:52 |
|
cmn
| if you haven't pushed yet, the best way would be to reset back to before the merge and retry | 20:52 |
| ← dpino left | 20:52 |
| → hwrd|work joined | 20:53 |
|
cleardance
| hmm so when i have a version in eclipse open change it after having switched branch in git, what happens a mistake? | 20:53 |
|
mathieui
| both are pushed (since the first one broke things) | 20:53 |
|
imachuchu
| mathieui: step 1. Apologize to anyone else who has touched this branch | 20:54 |
|
cleardance
| u didnt talk to me or? | 20:54 |
| ← john_anderson left | 20:54 |
|
mathieui
| I think I will revert the revert, and edit the diffs where the conflicts were | 20:54 |
| ← hellopat left | 20:54 |
| → john_anderson joined | 20:56 |
|
imachuchu
| cleardance: Inevitably there will be multiple conversations going on so if someone is writing directly to you they will (mostly/hopefully) put your name in front of their comment | 20:56 |
| ← rcu left | 20:57 |
| → Textmode joined | 20:57 |
| ← freeed left | 20:59 |
| → thebignoise joined | 20:59 |
| ← Peste_Bubonica left | 20:59 |
| ← mritz left | 20:59 |
|
imachuchu
| cleardance: I'm afraid your question isn't very clear, where are the mistakes? When you edit something in eclipse it is modifying your checked out copy. When you checkout a new commit then it changes the local checked out copy of the code/data. Do a diff to see how your checked out code differs from the commit it is based off of | 20:59 |
| ← kpreid left | 21:00 |
|
imachuchu
| cleardance: but a commit, once it is recorded in the repo, cannot be changed so you can't accidentally change an already recorded commit | 21:00 |
| → rcu joined | 21:01 |
| → kpreid joined | 21:01 |
| → Xander joined | 21:02 |
| → pantsman joined | 21:02 |
| ← pantsman left | 21:02 |
| → pantsman joined | 21:02 |
| → macabre joined | 21:02 |
| ← tommyvyo left | 21:02 |
| ← phishy left | 21:03 |
| → tommyvyo joined | 21:03 |
| ← tommyvyo left | 21:03 |
| → `Assassin joined | 21:03 |
| ← whitman left | 21:04 |
| → Sky[x] joined | 21:04 |
| ← Dave^| left | 21:05 |
| → mwrosen joined | 21:06 |
| ← Sigma left | 21:07 |
| ← bartek left | 21:08 |
| ← _iron left | 21:10 |
|
cleardance
| I don't really undertand merge, isn't it just putting two branches together to one consistent repo? | 21:10 |
|
| I changed in master and merged master and branchX and it says up to date YEAH! but they are different | 21:10 |
|
canton7
| cleardance, you don't merge branxhX and master by typing 'git merge master branchX' | 21:11 |
|
| If you want to merge branchX into master, checkout master, then 'git merge branchX' | 21:11 |
|
| merging is about taking the changes from some other branch, and incorporating them into your branch | 21:12 |
|
cmn
| cleardance: merge doesn't mean to overwrite changes | 21:12 |
|
cleardance
| so what does git merge master branchX do? merge master with master and branchX? | 21:12 |
|
| then it should work...? | 21:12 |
|
canton7
| it creates a merge with 3 parents: master, branchX, and the current branch | 21:12 |
|
cmn
| that checks out branchX and merges master into it | 21:12 |
|
| hm, am I thinking of rebase then? | 21:13 |
|
canton7
| yeah, sound likely | 21:13 |
|
| *sounds | 21:13 |
| ← eguzman_ left | 21:13 |
|
cleardance
| if master and branchX are the same except a method is added in master then it would just be already up to date? | 21:13 |
|
canton7
| of course, here, if you've got master checked out, then master and the current branch are the same | 21:13 |
| ← txomon|home left | 21:13 |
|
canton7
| cleardance, ignore merges with 3 or more parents for now: they're hardly ever used | 21:14 |
|
cmn
| cleardance: it has nothing to do with the sameness | 21:14 |
| → LucasTizma joined | 21:14 |
| ← Tinti left | 21:14 |
|
cmn
| the commit you're trying to merge is already part of the history | 21:14 |
|
| so your request to incorporate that commit into the current branch's history is answered with "up to date" | 21:15 |
| → mritz joined | 21:16 |
| → joaoh82 joined | 21:17 |
| → BryanRuiz joined | 21:17 |
|
BryanRuiz
| i have a file in one of my branches | 21:17 |
|
| and i know the name of the file | 21:17 |
|
| but i dont know the name of the branch | 21:17 |
|
| any thoughts on how to find the branch? | 21:17 |
|
imachuchu
| cleardance: I'm confused as to what the exact situation is, you/we/I may understand things a bit better if you look at the repo and see what it says is the current state, something like: "log --oneline --graph --decorate --all" | 21:18 |
| ← rcu left | 21:18 |
| → titom_ joined | 21:18 |
| → Eridius joined | 21:18 |
| ← revagomes left | 21:18 |
|
canton7
| BryanRuiz, git log --all -- path/to/file? Check --decorate in there as well actually | 21:19 |
|
| *chuck | 21:19 |
|
BryanRuiz
| you amaze me. thanks canton7 | 21:19 |
|
canton7
| when you've got a hash, git branch --contains <hash> | 21:19 |
|
| np :) | 21:19 |
|
| (that is, if --decorate doesn't show you the branch first) | 21:19 |
| ← mindjiver left | 21:20 |
| ← mwrosen left | 21:21 |
| ← mikaello left | 21:21 |
| → solussd_ joined | 21:21 |
| ← xou_ left | 21:23 |
| → ipalaus_ joined | 21:24 |
| ← mishok13 left | 21:24 |
| → sebastorama joined | 21:26 |
| ← mmc1 left | 21:27 |
| ← airborn left | 21:28 |
| ← d3c left | 21:29 |
| → kcj joined | 21:30 |
| → mmc1 joined | 21:30 |
| ← TheHaven left | 21:31 |
| → GameGamer43 joined | 21:32 |
|
zastaph
| a dev repo and a remote repo are just 2 project folders right? I need to set a "remote add origin" for all my separate projects, not just once for the whole repo? | 21:32 |
| ← khmarbaise left | 21:32 |
| ← toabctl left | 21:33 |
| → toabctl joined | 21:33 |
|
zastaph
| or maybe origin is not nescessary, to replace it with just the local folder name | 21:34 |
| ← h0h0h0 left | 21:34 |
| ← hwrd|work left | 21:34 |
|
cmn
| what's the difference between "whole repo" and "seaparate projects" here? | 21:34 |
|
| they're all just repos | 21:34 |
| ← amrx left | 21:34 |
| ← pantsman left | 21:34 |
| → mneorr joined | 21:34 |
| ← DoniRS left | 21:35 |
| ← mneorr left | 21:35 |
| → eidolon joined | 21:35 |
| → shruggar joined | 21:35 |
|
zastaph
| mmm right, and remote add is what links the dev and remote repo | 21:35 |
|
cmn
| yes | 21:35 |
|
zastaph
| just i've seen examples of both "remote add local_repo" and "remote add origin", not sure about the difference | 21:36 |
|
| presuming you are in the local repo folder when running these | 21:36 |
| ← shruggar left | 21:36 |
|
cmn
| the difference is the name of the remote | 21:37 |
|
zastaph
| which one would I use | 21:37 |
|
cmn
| there is no technical difference, though git will at times default to origin if you omit data | 21:37 |
|
| you should use the names that make sense for you and your project | 21:37 |
| ← mmc1 left | 21:37 |
| ← ph^_ left | 21:38 |
|
cmn
| origin is the default for the remote from which you cloned this repo | 21:38 |
|
zastaph
| well, my local repo has a folder name, and so has my remote repo .. so the "origin" part is just an alias? | 21:38 |
|
cmn
| yes | 21:38 |
|
| each directory has a path, but that has nothing to do with the name you give it, unless you make it that way | 21:38 |
|
zastaph
| i made a bare remote repo, and then just git init my dev repo, then i guess remote add origin is most appropriate | 21:38 |
| ← gchristensen left | 21:39 |
|
cmn
| yes, though a clone will do all this for you | 21:39 |
|
zastaph
| well the remote repo is bare, no code there yet | 21:40 |
|
cmn
| the setting up doens't depend on the repo being populated | 21:41 |
| → thesearchengine joined | 21:42 |
| ← thesearchengine left | 21:42 |
| → aboudreault joined | 21:42 |
| ← alexisabril left | 21:42 |
| → alberto56 joined | 21:44 |
| ← irqq left | 21:46 |
| ← alberto56 left | 21:46 |
| → ConstantineXVI joined | 21:46 |
| → btanaka joined | 21:46 |
| ← luxurymode left | 21:46 |
| ← pandeiro left | 21:46 |
| ← loco left | 21:47 |
| ← solussd_ left | 21:48 |
|
zastaph
| git remote add origin //server/repo/test.git worked, but git push origin master gave: error: src refspec master does not match any. error: failed to push some refs to '//server/repo/test.gif' | 21:49 |
| → nrichards joined | 21:49 |
| ← cyb3r3li0g left | 21:51 |
|
cmn
| first of all, that path is suspicious | 21:51 |
|
zastaph
| its a SMBFS/CIFS | 21:51 |
|
cmn
| and the error happens because you don't have a master branch yet | 21:51 |
|
| so it's \\server\repo ? | 21:51 |
|
zastaph
| well Git Bash says (Master) after I did git init | 21:51 |
| → alberto56 joined | 21:51 |
|
cmn
| that doesn't mean the mater branch exists, it means it's the current/active one | 21:52 |
|
| have you committed? | 21:52 |
|
zastaph
| no cd //server/repo/test.git takes me there, however cd //server doesn't work | 21:52 |
|
| no i didn't commit :| | 21:52 |
|
| the docs didnt say so :) | 21:52 |
|
cmn
| what docs didn't say what? | 21:53 |
| ← dcarper left | 21:53 |
|
cmn
| if you don't commit, you don't have anything to push | 21:53 |
|
zastaph
| i just followed them blind :) | 21:53 |
|
cmn
| and the master branch is unborn | 21:53 |
|
| if anything says git init should be followed by push, it's complete nonsense | 21:53 |
|
| and I'd be weary of the rest of it | 21:53 |
|
SethRobertson
| zastaph: The docs to read are !docs, especially !book | 21:54 |
|
gitinfo
| zastaph: There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable | 21:54 |
|
SethRobertson
| cmn: I am wary of people who say they are weary | 21:54 |
| → mmc1 joined | 21:54 |
|
cmn
| I am able to be worn, what's your problem with it? | 21:54 |
|
| ;) | 21:54 |
| → cyb3r3li0g joined | 21:54 |
|
zastaph
| ouch, VIM is default editor, gotta remedy :) | 21:55 |
|
SethRobertson
| .trigger_edit docs @!doc | 21:55 |
|
gitinfo
| SethRobertson: Okay. | 21:55 |
|
SethRobertson
| !docs | 21:55 |
|
gitinfo
| [!doc] A list of useful documentation of all kinds is here: http://git-scm.com/documentation -- or try the wiki at http://git.wiki.kernel.org/. Also try typing "!book" "!cs" "!bottomup" "!parable" "!best_practices" or "!vcbe" or "!designers" here in IRC. !book is probably the most helpful. | 21:55 |
| ← cjuner left | 21:55 |
| ← alberto56 left | 21:56 |
| ← cyb3r3li0g left | 21:57 |
| ← fsvend left | 21:58 |
| → walkerneo joined | 21:58 |
| ← toabctl left | 21:58 |
|
walkerneo
| Hell, I need some help if anyone is here | 21:58 |
|
| *hello | 21:58 |
|
cmn
| !ask | 21:58 |
|
gitinfo
| Yes, it's okay to ask questions here.... in fact, you just asked one! ;-) Pretty much any question is fine. We're not terribly picky, but we might be asleep. Please be patient and you should get an answer soon. | 21:58 |
| ← kermit left | 21:59 |
|
walkerneo
| I'm new to version control and have little experience with linux or shell at all for that matter | 21:59 |
|
| anyway, I'm trying to backup my site on bitbucket.org | 21:59 |
| ← Destos left | 21:59 |
|
walkerneo
| but I'm getting a fatal error about the certificate? | 21:59 |
| ← MANCHUCK left | 21:59 |
| → krzkrzkrz joined | 22:00 |
| → kermit joined | 22:00 |
|
walkerneo
| Says: | 22:00 |
|
cmn
| that will probably be from curl, telling you that the site isn't providing a proper HTTPS certificate | 22:00 |
|
walkerneo
| error: error setting certificate verify locations: | 22:00 |
|
| .. | 22:00 |
|
| oh, so what do I do? | 22:01 |
| ← d0k left | 22:01 |
|
cmn
| install some certificates, I'm guessing | 22:01 |
| → d0k joined | 22:01 |
|
walkerneo
| where? how? | 22:01 |
| ← imachuchu left | 22:01 |
|
cmn
| on your computer, using your package manager | 22:01 |
|
SethRobertson
| walkerneo: You can also use `GIT_SSL_NO_VERIFY=1 git clone <url>` | 22:01 |
|
cmn
| on Debian and look-alikes the ca-certificates package usually helps | 22:01 |
| ← krz left | 22:02 |
| krzkrzkrz → krz | 22:02 |
|
cmn
| that would also work | 22:02 |
|
walkerneo
| Well, I'm doing this on my webhost's server through ssh | 22:02 |
|
| I'll try that command | 22:02 |
|
cmn
| then you should complain, because bitbucket's cert seems to be pretty valid from here | 22:02 |
|
SethRobertson
| Then `cd repo; git config http.sslVerify false` (or perhaps 0) | 22:02 |
| ← iamjarvo left | 22:02 |
| → Zenith77 joined | 22:03 |
| ← alexim left | 22:03 |
|
SethRobertson
| But getting good certs installed would be best | 22:03 |
|
walkerneo
| It's uploading after that command SethRobertson :D | 22:03 |
| → LazyTown joined | 22:03 |
|
SethRobertson
| Or even downloading | 22:03 |
| ← thebignoise left | 22:04 |
|
LazyTown
| if I merged a branch from a remote repo, which removed and stopped tracking an important file that is in my .gitignore file, how can I get that file back? | 22:04 |
|
| *remote repo* is actually *remote branch* | 22:04 |
|
SethRobertson
| LazyTown: !fixup | 22:04 |
|
gitinfo
| LazyTown: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 22:04 |
|
SethRobertson
| Note the file being in your .gitignore is irrelevant to the problem | 22:04 |
| → ispeak_ joined | 22:04 |
| → gchristensen joined | 22:05 |
| ← smw_ left | 22:05 |
|
cmn
| why is an important file in a list of files that's fine to remove? | 22:05 |
| → smw joined | 22:05 |
|
LazyTown
| cmn, its a parameters file that holds database connection info | 22:05 |
|
SethRobertson
| He said the file was tracked, so it was irrelevant that it was in .gitignore | 22:05 |
|
| You should be using !config | 22:05 |
|
gitinfo
| [!configfiles] the recommended way is to change your application so that you can (perhaps optionally) store site-specific configuration/data in separate files, then keep those files out of version control. Still, see https://gist.github.com/1423106 for ways people have worked around the problem. | 22:05 |
|
walkerneo
| SethRobertson, I would be able to do this with cron right? And is there a way to do the same with my sql databases? | 22:06 |
|
SethRobertson
| walkerneo: See !backup link for information about automation. | 22:07 |
|
gitinfo
| walkerneo: Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups | 22:07 |
|
cmn
| though putting sql dumps into a repo is generally not what you want to do | 22:07 |
|
SethRobertson
| sql is outside the scope of git, but yes, you can use your sql server's shell (psql mysql sqlplus etc) or table backup command to backup your tables | 22:08 |
|
LazyTown
| SethRobertson, Which command do I need to pay attention to on this page you sent me? | 22:08 |
| ← eidolon left | 22:08 |
| ← mathieui left | 22:09 |
|
LazyTown
| I think I found it. | 22:09 |
|
SethRobertson
| Ah, the sample commands is only if you have ssh access. Hmm. I guess you just want to `git clone --mirror URL` and then in cron `(cd /repo; git fetch)` | 22:09 |
|
| The last line does the update. The lines before it are just looking for unmirrored repos. | 22:10 |
| ← DuzyZiemniak left | 22:11 |
|
walkerneo
| SethRobertson, I can't find anything about automation in the link | 22:11 |
|
SethRobertson
| There is a sample shell script in the #backup section | 22:12 |
|
| But as I said, everything but the last line is just there to probe for unmirrored repos and requires ssh access, and you can run a simplified version of the last line as I mentioned above. | 22:13 |
| → bnjmn joined | 22:14 |
| ← juanfer left | 22:14 |
|
walkerneo
| I don't really understand what any of that is. I never learned any shell script | 22:14 |
|
| I'd rather not just copy and paste things I don't understand | 22:14 |
|
bnjmn
| i have a merge conflict and i want to resolve it by choosing all of the HEAD changes, is there any way to do this automatically? | 22:14 |
| ← amya left | 22:15 |
| → Slix` joined | 22:15 |
| ← Element9 left | 22:15 |
| ← thiago left | 22:17 |
| ← notfunk left | 22:18 |
| → notfunk_ joined | 22:18 |
| ← iwoj left | 22:19 |
|
Sky[x]
| i read man and i still dont understand what mean upstream ? | 22:19 |
| → yhager joined | 22:19 |
| ← axl_ left | 22:20 |
| → vitor-br joined | 22:20 |
|
cmn
| upstream is a software development term (mostly in OSS) to mean the primary project, to differentiate it with whatever you or your team are doing | 22:22 |
|
| in the git manpages, the term "upstream branch" is used to mean the branch on which yours is based | 22:22 |
| ← twisted` left | 22:22 |
| → yashshah joined | 22:23 |
| ← scientes left | 22:24 |
| ← fisted left | 22:24 |
| → twisted` joined | 22:25 |
| ← titom_ left | 22:25 |
| ← nadavoid left | 22:25 |
| → alberto56 joined | 22:25 |
| ← Davey left | 22:26 |
| → fisted joined | 22:27 |
| ← beatak left | 22:27 |
| ← macabre left | 22:28 |
| → orngchkn joined | 22:28 |
| ← orngchkn left | 22:30 |
| → iwoj joined | 22:30 |
| ← harish left | 22:33 |
| ← tvw left | 22:33 |
| ← shoerain left | 22:34 |
| ← cleardance left | 22:34 |
| ← yoklov left | 22:34 |
| ← zastaph left | 22:35 |
| sureaint → shoerain | 22:36 |
|
walkerneo
| I added a cron job: cd /home/walkerneo/public_html;git commit -m "Daily backup";GIT_SSL_NO_VERIFY=1 git push -u origin master | 22:37 |
|
| will that work? | 22:37 |
|
bob2
| why are your certs broken | 22:37 |
|
walkerneo
| bob2, Is that you from PYthon :D ? And idk | 22:37 |
|
bob2
| yes | 22:38 |
| → alexim joined | 22:39 |
| ← aboudreault left | 22:39 |
| ← umc left | 22:39 |
| → Destos joined | 22:39 |
|
raek
| walkerneo: you need to add the changes too | 22:39 |
|
walkerneo
| so git add . ? | 22:40 |
| ← chrisgeorge left | 22:44 |
| → Targen joined | 22:44 |
| ← kpreid left | 22:45 |
| → kpreid joined | 22:45 |
| → thebignoise joined | 22:46 |
| ← twisted` left | 22:46 |
| ← bgerber left | 22:46 |
| → babilen joined | 22:47 |
| babilen → Guest94926 | 22:47 |
| → yosinof_ joined | 22:47 |
| → bgerber joined | 22:48 |
| bowarv → borwar | 22:49 |
| ← adamcooke left | 22:49 |
| ← stkrzysiak left | 22:50 |
| ← BryanRuiz left | 22:50 |
| → BryanRuiz joined | 22:53 |
| ← yashshah left | 22:53 |
| → yashshah__ joined | 22:53 |
| ← yashshah__ left | 22:54 |
| ← thelazydeveloper left | 22:54 |
| → yashshah__ joined | 22:55 |
| ← heroux left | 22:55 |
| ← dfr|mac left | 22:56 |
| → cryptopsy joined | 22:56 |
|
cryptopsy
| can i "git clone https://" or does it only take the form "git clone git://..." | 22:56 |
|
| ? | 22:56 |
| → heroux joined | 22:57 |
| ← BryanRuiz left | 22:57 |
| → Alumin joined | 22:58 |
| ← kevwil left | 22:58 |
| → machty joined | 22:59 |
| ← mikepack left | 22:59 |
|
cmn
| if the other end has a web server configured to call git, you can use https | 22:59 |
|
| and if the other end has ssh set up, you can use ssh:// | 22:59 |
| → mikepack joined | 22:59 |
|
Alumin
| This question is about "git commit -av". I noticed that once, I typed a commit message and I forgot to remove the comments and diff output...but they were still pruned from the commit message when it was submitted. This is what I want it to do, but I'm wondering what the exact algorithm is as far as how git determines what to prune from a commit message... | 22:59 |
| ← yashshah__ left | 22:59 |
|
cmn
| commands and diffs | 23:00 |
| → BryanRuiz joined | 23:00 |
|
cmn
| comments | 23:00 |
| ← Guest94926 left | 23:00 |
|
Alumin
| but, what if I (for some strange reason I can't think of now) wanted to include a diff in my commit message? | 23:00 |
|
cmn
| you do what any sane person would do and indent it | 23:00 |
|
| same as you'd do for any piece of code | 23:01 |
| ← d0k left | 23:02 |
|
Alumin
| well, I'm not sure about "sane" 'cause when you really come down to it I should theoretically be able to include any data I want in my commit message without having to modify it to suit the VCS. That said...thanks for the info. :) So it actually does some kind of parsing to detect the output of diff and surgically remove it? Obviously comments would be easy but finding diffs seems overkill. :) | 23:03 |
| → Lord_DeathMatch joined | 23:03 |
|
cmn
| commit messages aren't where you dump data, that's what files are for | 23:03 |
| ← mikepack left | 23:03 |
| ← martinjlowm left | 23:03 |
|
Alumin
| fair enough | 23:03 |
| ← mmc1 left | 23:04 |
| → derwin joined | 23:04 |
|
derwin
| why do "git diff" and "git diff HEAD" have different output? | 23:05 |
|
cmn
| and it's primarily for humans, so you don't need to be so strict about it, and it's general convention to indent anything that's quoting something, which includes the diff | 23:05 |
| ← Twey left | 23:05 |
|
Alumin
| anyway, really the important part is just that I know what the rules are so when I do have a complicated commit message or something I don't get a surprise | 23:05 |
| → Twey joined | 23:05 |
|
cmn
| derwin: because they're comparing different things | 23:05 |
|
derwin
| cmn: what does "git diff" compare against implicitly? | 23:05 |
| → benjo2 joined | 23:05 |
|
cmn
| the idnex | 23:05 |
|
| derwin assumed it was HEAD | 23:05 |
|
cmn
| idnex* | 23:05 |
|
| index, I mean | 23:05 |
|
derwin
| so in the case of a file add, why does that not show anything? | 23:05 |
|
cmn
| because it's in the index | 23:06 |
|
| that's what the add did, it put it in the index | 23:06 |
|
derwin
| oh, that makes sense. | 23:06 |
|
| and git diff HEAD is "show me what the result of the pending commit would be, if diffed against HEAD" | 23:07 |
|
| which is both index and content | 23:07 |
|
cmn
| no | 23:07 |
|
| diff --cached shows you that | 23:07 |
|
| diff HEAD compares the working directory with HEAD | 23:07 |
|
derwin
| ah! | 23:07 |
|
| I looked for --cached but did not find, awesome, thx. | 23:07 |
|
cmn
| it's also aliased to --sated | 23:08 |
|
| --staged | 23:08 |
|
| I can't type tonight | 23:08 |
| ← Chillance left | 23:09 |
|
derwin
| yeah, just read that in the man page | 23:09 |
| → cyphase joined | 23:09 |
| ← bglusman left | 23:09 |
|
derwin
| a friend suggests that "git add -N newfile.txt" might make "git diff" work as I expect? | 23:10 |
|
| (as it puts a null file in the index, I guess?) | 23:10 |
|
cmn
| -N marks it as intent-to-add | 23:11 |
| → kaen joined | 23:11 |
|
cmn
| it lets you do things like add -p before committig | 23:11 |
|
derwin
| sweet, I learn new things every day | 23:11 |
|
| and now am less likely to be calle a moron by my peers! | 23:11 |
|
| cmn: thx! | 23:11 |
| → metalfan_ joined | 23:13 |
| ← metalfan_ left | 23:13 |
| ← cmyk_ left | 23:14 |
| → linusoleander joined | 23:15 |
|
kenperkins
| is there a way to easily identify which branches are fully merged into a specific branch | 23:17 |
| ← Balreign_ left | 23:17 |
| ← EToS left | 23:17 |
| ← lonewulftp left | 23:18 |
|
cmn
| man git branch --merged | 23:19 |
|
gitinfo
| the git-branch manpage is available at http://jk.gs/git-branch.html | 23:19 |
| ← fly9 left | 23:19 |
| ← yoh left | 23:20 |
| → WillMarshall joined | 23:21 |
| ← adhawkins left | 23:21 |
| ← derwin left | 23:21 |
| ← tatsuya_o left | 23:22 |
|
cryptopsy
| cmn: tnx | 23:23 |
| ← cryptopsy left | 23:23 |
|
walkerneo
| I'm trying to automatically backup my site with git and bitbucket | 23:23 |
|
| What do I do when it asks for the password? | 23:23 |
|
FauxFaux
| Configure keys properly. | 23:24 |
|
cmn
| you make it so it doesn't | 23:24 |
|
| either set up ssh or store the password in .netrc | 23:24 |
|
walkerneo
| I don't really know how to do either | 23:24 |
| → txomon|home joined | 23:24 |
|
cmn
| no better time to learn about ssh | 23:25 |
| → robk joined | 23:26 |
| ← marhaban left | 23:26 |
|
walkerneo
| Alright, I'll learn about ssh | 23:26 |
|
| also though, what's the command to remove any files that were remove? | 23:27 |
| ← intransit left | 23:27 |
|
robk
| question, i'm in the process of converting over my svn w/ commit history into git, i've already created the authors.txt & imported the base stuff, but Now i'm confused when i look at http://stackoverflow.com/questions/79165/how-to-migrate-svn-with-history-to-a-new-git-repository to help me complete the process. | 23:27 |
|
walkerneo
| If I add files I can do git add . | 23:27 |
|
| but what if I remove files | 23:27 |
|
| would git rm . | 23:28 |
|
| just remove all the files? | 23:28 |
| ← john_anderson left | 23:28 |
| → SeaSalt joined | 23:28 |
| ← Alumin left | 23:29 |
| ← nrichards left | 23:29 |
| ← tqmz left | 23:30 |
| ← Lord_DeathMatch left | 23:30 |
|
cmn
| yes, because you asked it to | 23:31 |
| → thursday joined | 23:31 |
| → marhaban joined | 23:32 |
| → frogonwheels joined | 23:34 |
| ← TeckniX left | 23:34 |
| ← vitor-br left | 23:34 |
| ← gv left | 23:35 |
| ← arietis left | 23:35 |
| → iamjarvo joined | 23:38 |
| ← dreiss left | 23:38 |
|
walkerneo
| How can I only remove the files from the project that were removed from the directory? | 23:39 |
| ← iwoj left | 23:39 |
|
walkerneo
| sorry, from the repository that were removed from the project | 23:39 |
| ← mtytel left | 23:41 |
| → EToS joined | 23:41 |
|
cmn
| clean | 23:42 |
|
| and you don't remove them from the repository, you remove them from the working directory | 23:42 |
| → txomon joined | 23:43 |
| ← teweWORK left | 23:43 |
| ← dv310p3r left | 23:44 |
| ← iamjarvo left | 23:45 |
|
robk
| I just followed this tutorial on setting up an svn-rebase to git from this site: http://blokspeed.net/blog/2010/09/converting-from-subversion-to-git/ I now want to push my local svn base copy to my remotely hosted unfuddled git, any idea on how to go about this? | 23:46 |
|
FauxFaux
| What do you mean by "local svn base copy"? How did you get it? Why is it not like the git repo? | 23:46 |
|
walkerneo
| cmn, no I mean the other way around. I remove a file from the cwd, do I need to do something so that git doesn't think it's missing? | 23:47 |
| → mtytel joined | 23:47 |
| ← JeroenDeDauw left | 23:47 |
| → krzkrzkrz joined | 23:48 |
|
cmn
| bring it back? | 23:48 |
|
| git rm removes it from the working dir and the index | 23:48 |
|
| so it will be removed from the next commit | 23:48 |
| ← krz left | 23:50 |
| krzkrzkrz → krz | 23:50 |
| ← DofLeFou left | 23:51 |
| ← alexukf left | 23:52 |
|
walkerneo
| I mean if I'm making daily backups | 23:53 |
| → dcarper joined | 23:53 |
|
walkerneo
| and I want removed files to be kept out of the daily commit | 23:53 |
|
| what do I do? | 23:53 |
|
| I know they're not actually removed | 23:53 |
| → cagedwisdom joined | 23:53 |
|
walkerneo
| but I know if I remove them and don't do anything, git thinks they're missing right? | 23:53 |
|
cmn
| git add -A updates the index with the current state of the working directory | 23:54 |
| ← marc_kdab left | 23:54 |
|
kpreid
| walkerneo: sounds like you want git add -A | 23:54 |
|
walkerneo
| sounds like I do | 23:54 |
|
| thanks :D | 23:54 |
|
cmn
| what do you mean if you don't do anything? | 23:54 |
| ← yosinof_ left | 23:54 |
|
cmn
| status will report them as missing, but git doesn't generally care about the worktree whenc ommitting | 23:54 |
| → yosinof joined | 23:55 |
|
walkerneo
| Yeah, that's what I mean, think they're missing when I acutally just removed htme | 23:55 |
|
| So to not need a password with ssh, what do I need to do? | 23:55 |
|
| I'm connected to my server via ssh and need to set its ssh... | 23:55 |
|
cmn
| you tell ssh to use a key that doesn't need a password | 23:55 |
| ← kenperkins left | 23:56 |
|
walkerneo
| By key, are we talking RSA? And would that mean the password is already in the key? | 23:57 |
|
| I'm confused.. | 23:57 |
| → efreese joined | 23:57 |
| ← TomyLobo left | 23:57 |
|
cmn
| RSA is the usual method, yes | 23:57 |
|
| if you don't set a password, then there is no password in the key | 23:57 |
|
| which means ssh can use it directly | 23:57 |
| ← dcarper left | 23:57 |
| ← tewecske left | 23:57 |
| ← rubyruy left | 23:58 |
| ← ben225 left | 23:58 |
| → ben225 joined | 23:59 |
| ← ben225 left | 23:59 |
|
haarg
| the password isn't in the key; the key is used instead of the password. | 23:59 |
| → beneggett joined | 23:59 |
|
cmn
| the password we're talking about is a different one, the one used to unlock the key | 23:59 |
|
| though it's generally called a passphrase, isn't it? | 23:59 |