| 2012-02-09 |
| ← mandric left | 00:00 |
| → satyanash joined | 00:01 |
| → twisted`_ joined | 00:02 |
| ← twisted`_ left | 00:02 |
| → boombatower joined | 00:03 |
|
samuelj
| is that good? | 00:03 |
| ← airborn left | 00:03 |
| ← crisp left | 00:03 |
| ← sattu94 left | 00:04 |
| → Turicas joined | 00:04 |
|
SethRobertson
| Yes, but it exhausts my knowledge. | 00:04 |
| ← twisted` left | 00:04 |
| → rchavik joined | 00:04 |
|
SethRobertson
| You could check in .git/modules and .git/config for problems. I guess the former should be empty and the latter should not mention submodules | 00:05 |
| ← chrisgeorge left | 00:05 |
| → zulax joined | 00:06 |
| ← eijk__ left | 00:06 |
| ← Rogi left | 00:07 |
| → huntca joined | 00:07 |
| ← Yuuhi left | 00:07 |
| → Rogi joined | 00:07 |
|
samuelj
| thanks for the help! | 00:07 |
| → thebaddies joined | 00:08 |
|
thebaddies
| hi | 00:08 |
| ← rtconner_ left | 00:08 |
|
thebaddies
| why what do I have to type to rebase this on master? http://codepad.org/Z80ScohC | 00:09 |
|
SethRobertson
| Well, I'm going to wildly guess that you need to commit or stash your changes. | 00:09 |
|
thebaddies
| I did that. | 00:09 |
| ← jceb left | 00:09 |
|
SethRobertson
| Yet somehow you still have changes which have not been committed. | 00:09 |
|
frogonwheels
| thebaddies: no, you have some deleted files that you haven't comitted | 00:10 |
|
thebaddies
| why would I commit deleted files ? | 00:10 |
|
| how do you commit a deleted file ? | 00:10 |
|
SethRobertson
| Because you did not delete them otherwise | 00:10 |
|
frogonwheels
| thebaddies: you did a git rm <filename> ? | 00:10 |
| ← Russell^^ left | 00:10 |
|
frogonwheels
| you need to commit the rm, if that's what you did. | 00:11 |
|
thebaddies
| yes and it says: fatal: pathspec 'wireless-ap/v1.1.bin' did not match any files | 00:11 |
|
frogonwheels
| thebaddies: no, I mean presumably you already did that? | 00:11 |
|
SethRobertson
| Just commit | 00:12 |
| ← iamjarvo left | 00:12 |
|
thebaddies
| thank you Seth | 00:12 |
|
SethRobertson
| !thanks | 00:13 |
|
gitinfo
| Feeling thankful? Type "ExampleUser++", and ExampleUser will score karma points at http://carmivore.com (our preferred way to objectify self-worth). There's really no point to thanking me – instead, why not thank the person who made me help you? | 00:13 |
|
milki
| i think seth wants karam | 00:13 |
|
SethRobertson
| I have the biggest ego around. cmn (I think) certified it | 00:13 |
| → glennpratt joined | 00:13 |
|
milki
| lol | 00:13 |
|
thebaddies
| SethRobertson++ | 00:14 |
|
| I'll write a karmbot for seth | 00:14 |
| ← nOStahl left | 00:15 |
| → kerrick joined | 00:15 |
| → Anubisss_ joined | 00:15 |
| → Yuuhi joined | 00:16 |
| ← spaceonline left | 00:17 |
| → p3rror joined | 00:18 |
| ← Anubisss left | 00:19 |
| ← adammokan left | 00:19 |
| → Gitzilla joined | 00:20 |
| ← aspotashev left | 00:22 |
| → jaisoares joined | 00:23 |
| ← jaisoares left | 00:24 |
| → rtconner_ joined | 00:24 |
| ← rtconner_ left | 00:25 |
|
Wombert
| if I have files that, from their original source, contain CRLFs | 00:26 |
|
| is it still a good idea to convert them to LFs? | 00:26 |
|
| (it's an existing repos converted from SVN, and I'm about to run git filter-branch with dos2unix on it | 00:26 |
|
SethRobertson
| It can make blame more complicated and if someone else is still using CRLF with them you should not. | 00:26 |
|
| On the other hand, I would and do. | 00:26 |
|
Wombert
| the repos hasn't been pushed yet or anything | 00:26 |
|
SethRobertson
| Well, filter-branch will avoid the blame problem | 00:27 |
|
Wombert
| so the idea is to fix it before that happens with filter-branch | 00:27 |
|
| yes | 00:27 |
|
| defo don't want to run dos2unix and then commit everything :) | 00:27 |
|
SethRobertson
| As long as you have killed the DOS people, that is fine. Make sure to run the filter-branch in a tmpfs mount | 00:27 |
|
Wombert
| I'll trust my SSD | 00:27 |
|
| :p | 00:27 |
|
SethRobertson
| tmpfs is still faster | 00:28 |
| ← totzeit left | 00:28 |
|
Wombert
| so even if the original files (vendor stuff I bundle from an external source) contain CRLFs, you'd advise me to do the conversion, right? | 00:28 |
|
MacGyverNL
| I usually do. | 00:28 |
|
SethRobertson
| If you might need to import more recent version of the vendor stuff, perhaps not. You would have to stay awake when doing so at least. | 00:29 |
|
MacGyverNL
| And I also instruct anyone I pull from to use LF-line endings as well. | 00:29 |
|
imMute
| SethRobertson: if there were still DOS people, couldn't they just use autocrlf or something? | 00:29 |
|
Wombert
| so, core.autocrlf input is a reasonable setting, and core.autocrlf input or true for Windows folks? | 00:29 |
|
MacGyverNL
| Well, "instruct" is a big word. | 00:29 |
|
| "Suggest". | 00:29 |
|
| Forcefully. | 00:29 |
|
SethRobertson
| Many people have come here with EOL problems. Whether they have poor practice I could not say | 00:30 |
|
MacGyverNL
| And on my windows machines I always put my core.autocrlf on input. | 00:30 |
|
| My editors are allowed to mangle them all they want. | 00:30 |
|
| (Not all editors can be set to use only LF endings, you see. | 00:30 |
|
| ) | 00:30 |
|
| But all files going into the repo are unmangled. | 00:31 |
|
| And that's why I prefer other people to do the same. | 00:31 |
|
Wombert
| that's what "input" does, right? | 00:31 |
|
| and when you pull again it's LF | 00:31 |
|
MacGyverNL
| Yes - the files come out "as-is", they go in with CRLF->LF conversion. | 00:31 |
|
Wombert
| while with "true", it's CRLF out, and conversion to LF when committing | 00:32 |
|
MacGyverNL
| So that basically means that I also automatically scrub the repo from CRLF endings that strayed in there every commit. | 00:32 |
|
Wombert
| yea | 00:32 |
|
| Wombert ponders | 00:32 |
|
Wombert
| so I'll do the filter-branch stuff | 00:32 |
|
MacGyverNL
| (Honestly, can't we all grow up and standardize on LF by now? MS? *nix? Mac?) | 00:32 |
|
Wombert
| well, CRLF is *actually* more logical | 00:32 |
|
imMute
| Wombert: howso? | 00:33 |
|
Wombert
| at least if you are a typewriter :p | 00:33 |
| ← huntca left | 00:33 |
|
imMute
| Wombert: well, derp :) | 00:33 |
|
Wombert
| imMute: go to next line, return to beginning, like a typewriter would :p | 00:33 |
| ← Xizor left | 00:33 |
|
MacGyverNL
| Okay, maybe not the discussion to have here. | 00:33 |
|
Wombert
| indeed not | 00:33 |
|
| :p | 00:33 |
| → tty234_ joined | 00:34 |
|
Wombert
| so I'll do dos2unix with filter-branch, and in the future I just high five anyone who commits CRLFs | 00:34 |
|
| with a chair | 00:34 |
|
| in the face | 00:34 |
|
| :p | 00:34 |
|
| forrrrrcefully | 00:34 |
| → mxweas joined | 00:34 |
|
SethRobertson
| Write a receive hook to reject it | 00:34 |
|
Wombert
| well it'll be on GH | 00:34 |
|
| :< | 00:34 |
| ← Anubisss_ left | 00:35 |
| → Anubisss joined | 00:35 |
|
Wombert
| also, why does Git not like trailing whitespace? | 00:35 |
| ← Anubisss left | 00:35 |
|
Wombert
| like indented newlines, my editor always fills up the blank with spaces/tabs | 00:35 |
|
| but that seems bad practice somehow, at least git add -p complains and stuff | 00:36 |
|
imMute
| Wombert: I like that idea. | 00:36 |
|
Wombert
| imMute: which one :> | 00:36 |
| ← berserkr left | 00:36 |
| ← Destos left | 00:37 |
|
MacGyverNL
| Wombert: I personally don't use github, but can't you still use receive-hooks there? | 00:37 |
| ← anjen left | 00:37 |
| ← kenperkins left | 00:37 |
| ← Kicer86 left | 00:37 |
|
Wombert
| nah just post-receive hooks, MacGyverNL | 00:37 |
|
MacGyverNL
| I now envision something like a post-receive hook checking for CRLF endings and resetting HEAD to previous if it contains them ^_^ | 00:38 |
|
| MacGyverNL hides | 00:38 |
| ← tty234_ left | 00:38 |
|
Wombert
| harr | 00:39 |
|
| :> | 00:39 |
| ← oc80z left | 00:40 |
| ← guampa left | 00:40 |
|
samuelj
| SethRobertson: Fixed! For future ref: in .git/config, in the submodules section, url was set but there were no options for fetch, so it just wasn't doing anything | 00:41 |
|
| sorted now! | 00:41 |
| → oc80z joined | 00:41 |
| → cooloney joined | 00:42 |
| → cakehero joined | 00:43 |
| → aristidesfl joined | 00:43 |
| ← tatsuya_o left | 00:43 |
| → Chib joined | 00:43 |
| → tatsuya_o joined | 00:44 |
| ← glennpratt left | 00:45 |
| → s_segawa joined | 00:46 |
| ← samuelj left | 00:47 |
| → fr0stbyte joined | 00:48 |
| ← kerrick left | 00:48 |
| → sattu94__ joined | 00:49 |
| ← griotspeak left | 00:50 |
| → Kicer86 joined | 00:51 |
| ← jfelchner left | 00:51 |
| ← satyanash left | 00:52 |
| → ihodes joined | 00:53 |
| ← shysoft left | 00:54 |
| → guampa joined | 00:54 |
| → xiangfu joined | 00:55 |
| ← linusoleander left | 00:56 |
| ← AaronMT left | 00:57 |
| ← davidrussell left | 00:58 |
| → griotspeak joined | 00:58 |
| → davidrussell joined | 00:58 |
| ← iocor left | 00:59 |
| ← mabrand left | 00:59 |
| → vikarti joined | 01:00 |
| ← stuntmachine left | 01:00 |
| ← pandeiro left | 01:01 |
| ← macmartine left | 01:01 |
| → sythe_ joined | 01:02 |
| ← fr0stbyte left | 01:02 |
| ← beatak left | 01:03 |
| → linusoleander joined | 01:05 |
| ← linusoleander left | 01:06 |
| ← rbrooks left | 01:06 |
| → iamjarvo joined | 01:06 |
| → Heimidal joined | 01:07 |
| ← andres left | 01:08 |
| → forsto joined | 01:08 |
| ← alberto56 left | 01:10 |
|
wald0
| what means -- in something like: git checkout -- * ? | 01:11 |
| → weiyang joined | 01:11 |
| ← Demego left | 01:13 |
|
Bearcat
| http://sitaramc.github.com/gitolite/sskm.html playing with the commands on this page..where is the sskm command? I can't find it in any package? | 01:14 |
| → jamescarr joined | 01:15 |
| ← fly91 left | 01:15 |
| → fly91 joined | 01:15 |
|
jamescarr
| is there a way to completely remove a file from history? | 01:18 |
|
| someone committed a ton of quicktime videos by mistake | 01:19 |
|
SethRobertson
| git-filter-branch, but this is !rewriting_public_history | 01:19 |
|
gitinfo
| git-filter-branch: 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) | 01:19 |
|
jamescarr
| like, 3009 commits ago | 01:19 |
|
| hmmm | 01:19 |
|
| SethRobertson, thanks. It sucks because it takes eons for new people cloning the repo | 01:19 |
|
SethRobertson
| !thanks | 01:19 |
|
gitinfo
| Feeling thankful? Type "ExampleUser++", and ExampleUser will score karma points at http://carmivore.com (our preferred way to objectify self-worth). There's really no point to thanking me – instead, why not thank the person who made me help you? | 01:19 |
| ← mxweas left | 01:19 |
| ← diegoviola left | 01:21 |
| ← _obiJuan left | 01:22 |
| ← davidrussell left | 01:23 |
| → andres joined | 01:23 |
| ← oc80z left | 01:24 |
| → duckxx joined | 01:25 |
| → oc80z joined | 01:26 |
|
milki
| sethego++ | 01:26 |
| ← ehsan left | 01:26 |
| ← oriba left | 01:26 |
| → mxweas joined | 01:26 |
| ← kpreid left | 01:27 |
| ← vandal- left | 01:28 |
| ← ScottE left | 01:28 |
| → macmartine joined | 01:29 |
| ← ajt left | 01:29 |
| → stringoO joined | 01:29 |
| → ajt joined | 01:30 |
|
Bearcat
| SethRobertson++ | 01:30 |
|
| hmm | 01:30 |
|
| "SethRobertson++" | 01:30 |
|
| double hmm | 01:30 |
|
SethRobertson
| ? | 01:31 |
|
Bearcat
| i was trying to ++ you as listed above | 01:31 |
|
bremner
| ++++ | 01:31 |
|
SethRobertson
| And carmivore is not accepting? Meh | 01:31 |
|
Bearcat
| do i need to direct that at the gitinfo? | 01:32 |
|
SethRobertson
| now it is up, by two | 01:32 |
|
| gitinfo is not involved | 01:32 |
|
Bearcat
| oh, i was expecting some sort of responce like "karama added" or something. | 01:32 |
|
SethRobertson
| silent but deadly | 01:33 |
|
Bearcat
| ha | 01:33 |
|
| canton7++ | 01:33 |
| ← mxweas left | 01:33 |
| ← sythe_ left | 01:34 |
|
Bearcat
| so ..uh...where is this sskm bin supposed to be located. Is it part of the gitolite package? | 01:34 |
| → sythe_ joined | 01:34 |
| → MarconM joined | 01:35 |
| → mxweas joined | 01:35 |
| → nemo_nihil joined | 01:35 |
| → antihero joined | 01:36 |
| → nomadtacos joined | 01:36 |
|
antihero
| how do I make a patch file for a specific commit? | 01:37 |
| ← daed left | 01:37 |
| → SpencerDailey_ joined | 01:38 |
|
SethRobertson
| git show COMMITSHA; git format-patch; etc | 01:39 |
| → sythe__ joined | 01:39 |
| ← sythe_ left | 01:39 |
| → herdingcat joined | 01:39 |
| ← Chowzzf left | 01:40 |
| ← Heimidal left | 01:41 |
| → cooldude joined | 01:43 |
| ← sythe__ left | 01:44 |
| → daed joined | 01:45 |
| ← nomadtacos left | 01:47 |
| → sythe_ joined | 01:47 |
| ← tty234 left | 01:48 |
| ← dr_win left | 01:48 |
|
nemo_nihil
| i have initialized a git repo and i get "Initialized empty Git repository in /home/git/myrepo.git/" and then on my local machine I run "git remote add origin [email@hidden.address] but then i gives me "fatal: Not a git repository (or any of the parent directories): .git" what am i doing wrong? | 01:48 |
|
bob2
| you did 'git init --bare' right | 01:48 |
|
nemo_nihil
| yeah | 01:48 |
|
| inside of the myrepo.git folder | 01:49 |
| → Chowzzf joined | 01:52 |
| → squiggy_ joined | 01:53 |
| ← mxweas left | 01:53 |
|
frogonwheels
| nemo_nihil: on your local machine are you in a git repo? | 01:54 |
| → ehsan joined | 01:55 |
|
frogonwheels
| nemo_nihil: I suspect you need to git init inside your local folder (presumably this is a first commit?) | 01:55 |
|
nemo_nihil
| no, i am trying to create a git repo on a cloud server and then copy it down | 01:55 |
| → mindlogger joined | 01:55 |
| ← acl__ left | 01:55 |
|
mindlogger
| guys I just accidentally removed my local repo how can I get my repo back from github? | 01:55 |
|
nemo_nihil
| ok that fixed it, am i using the right architecture for this tho? | 01:55 |
|
frogonwheels
| nemo_nihil: how are you providing content to the cloud server repo? or is that to come? | 01:55 |
|
nemo_nihil
| basically i am running a website and i want to use git as my revisiting system. it is all in the /var/www/ directory | 01:56 |
|
frogonwheels
| nemo_nihil: if this is your 'first commit' to the cloud server, then this is the right approach | 01:56 |
|
| mindlogger: clone it | 01:56 |
| → acl_ joined | 01:57 |
|
frogonwheels
| mindlogger: wait, you removed .git ? or the whole tree? | 01:57 |
|
mindlogger
| frogonwheels: will I get all the detials for commits? | 01:57 |
|
acl_
| does running "git gc --aggressive" remove dangling blobs/commits/trees from a repo? or is it not useful to remove these dangling things? | 01:57 |
|
mindlogger
| frogonwheels: I removed all .* files in that directory and the whole directory | 01:57 |
|
nemo_nihil
| ok so i would commit it from my local machine and then clone it to the /www/ directory? | 01:57 |
|
frogonwheels
| mindlogger: hopefully you didn't have anything you hadn't pushed up? | 01:57 |
|
mindlogger
| frogonwheels: no I had everything pushed up | 01:58 |
|
| I just need to get them back to my local machine | 01:58 |
|
frogonwheels
| mindlogger: cool. just git init && git remote add <url to github> | 01:58 |
| → BiggFREE joined | 01:58 |
|
frogonwheels
| mindlogger: cool. just git init && git remote add origin <url to github> | 01:58 |
|
| sorry | 01:58 |
|
mindlogger
| great, ty frogonwheels | 01:58 |
|
frogonwheels
| mindlogger: then git fetch | 01:58 |
| ← Slush- left | 01:58 |
|
frogonwheels
| mindlogger: anything uncomitted? | 01:58 |
|
SethRobertson
| acl_: Do not worry about dangling bits. They will go away ina few weeks. `git gc --aggressive` will get rid of those which are ready to be gotten rid of | 01:59 |
| ← mikeric left | 01:59 |
|
mindlogger
| frogonwheels: not really, everything was committed and pushed to the remote | 01:59 |
|
acl_
| SethRobertson++ | 01:59 |
|
| SethRobertson: thanks - i thought it might be otherwise | 02:00 |
| → mikeric joined | 02:00 |
|
SethRobertson
| No. They are a valuable safety net | 02:00 |
| ← zulax left | 02:00 |
|
acl_
| i'll keep that in mind | 02:00 |
| ← fly91 left | 02:01 |
| → gchristensen joined | 02:02 |
|
mindlogger
| frogonwheels: to push to github should I define my account with user and pass in the git config file? | 02:02 |
| ← Tureos left | 02:02 |
| → zdk joined | 02:03 |
|
mindlogger
| frogonwheels: I did what you said and it showed my branches and stuff but it didn't download the actual files! | 02:03 |
|
frogonwheels
| mindlogger: git fetch | 02:03 |
|
| oh.. yeah | 02:03 |
| → twisted` joined | 02:03 |
|
mindlogger
| I did and I got remote: Counting objects: 1736, done..... | 02:03 |
| ← weiyang left | 02:04 |
|
frogonwheels
| mindlogger: yeah. almost there.. just let me think | 02:04 |
|
| mindlogger: possibly git checkout -f <branch> | 02:05 |
|
mindlogger
| I can't see my branches | 02:05 |
|
frogonwheels
| mindlogger: there's nothing you want in your wd? | 02:05 |
|
mindlogger
| wd? | 02:05 |
| → dfr|mac_ joined | 02:05 |
|
frogonwheels
| mindlogger: working dir | 02:05 |
|
| mindlogger: no, they're all 'remotes' still. git branch -a | 02:05 |
| → fr0stbyte joined | 02:05 |
| → replore_ joined | 02:05 |
|
mindlogger
| I get all remote branches | 02:06 |
|
| no local | 02:06 |
|
frogonwheels
| if you have a branch 'origin/master' then git checkout master will check it out. | 02:06 |
|
| mindlogger: it will create the local one and set up the tracking. | 02:06 |
|
| just as if it were there. | 02:06 |
|
| you might have to -f just to force the issue. | 02:06 |
| ← nemo_nihil left | 02:06 |
|
frogonwheels
| we probably should have just blown away the old dir and clone afresh.. | 02:06 |
|
mindlogger
| frogonwheels: I didn't have the old dir, I just removed it | 02:08 |
|
| how do I make a fresh clone ? | 02:08 |
|
frogonwheels
| mindlogger: git clone <url> | 02:08 |
|
mindlogger
| does it make a new dir or should I do that inside a dir ? | 02:09 |
|
frogonwheels
| mindlogger: that will make a new dir | 02:09 |
|
| git clone <url> <dir> | 02:09 |
|
MrKeuner
| I have a git repository, if I tag versions of code as stable or staging, is it possible to pull the latest stable from the production server, and latest staging from the staginf server? | 02:11 |
|
mindlogger
| frogonwheels: thanks a lot [Solved] | 02:11 |
| ← Vampire0 left | 02:12 |
|
frogonwheels
| mindlogger: once again, remember the trick with branches - if you have remotes/origin/mybranch then git checkout mybranch will checokut mybranch and set up tracking | 02:12 |
|
imMute
| MrKeuner: tags dont change what they tag. once you make a tag pointing to a commit, its set in stone | 02:12 |
| → Goplat joined | 02:12 |
|
frogonwheels
| MrKeuner: tags shouldn't move around really. branches are the things that float | 02:13 |
|
mindlogger
| frogonwheels: right gochya! | 02:13 |
|
MrKeuner
| frogonwheels, have a stable, staging and a dev branch and pull only relevant branch from each server? | 02:13 |
|
RandalSchwartz
| not pull, checkout | 02:14 |
|
| unless you also need to make local commits | 02:14 |
|
frogonwheels
| MrKeuner: ^^ what he said | 02:14 |
|
RandalSchwartz
| "pull" doesn't mean in git what it means most places | 02:14 |
|
| pull = fetch + merge, for when you have local mods that you want to merge with upstream | 02:14 |
|
frogonwheels
| MrKeuner: !pull | 02:14 |
|
gitinfo
| MrKeuner: 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/ | 02:14 |
|
MrKeuner
| checkout means the copy serving on web server folder is not actually a git repository but a copy of the latest commit? | 02:14 |
|
RandalSchwartz
| no - it forces the git workdir to be the same as a commit | 02:15 |
|
| git checkout stable | 02:15 |
|
| (workdir becomes "stable" commit) | 02:15 |
| ← Sigma left | 02:15 |
|
frogonwheels
| MrKeuner: you can use man git-export to grab a copy | 02:15 |
|
| err. | 02:15 |
|
RandalSchwartz
| !man git-archive | 02:15 |
|
gitinfo
| the git-archive manpage is available at http://jk.gs/git-archive.html | 02:15 |
| → Chillance joined | 02:15 |
|
frogonwheels
| bleh | 02:15 |
|
| RandalSchwartz: thanks | 02:15 |
|
| that's what I meant | 02:16 |
|
RandalSchwartz
| I've made that mistake before :) | 02:16 |
| ← MarconM left | 02:16 |
| ← DarkAR left | 02:18 |
|
MrKeuner
| post-receive hook does a GIT_WORK_TREE=/var/websites/stable git checkout -f, right? this is what you suggest | 02:18 |
| → EricInBNE joined | 02:18 |
| ← BSaboia left | 02:18 |
| tizzo-afk → tizzo | 02:19 |
|
frogonwheels
| MrKeuner: !website | 02:19 |
|
gitinfo
| MrKeuner: Git is not a website deployment tool, but can sometimes play one in sufficiently simple/lax environments with a little help. One example of help is: http://toroid.org/ams/git-website-howto | 02:19 |
| ← leo left | 02:19 |
| ← lqi left | 02:19 |
|
RandalSchwartz
| there's also https://gist.github.com/1714235 | 02:19 |
|
| git-archive piped into tar then rsync | 02:19 |
|
| if you need to meld with existing files, that's the model | 02:19 |
| ← Lgb left | 02:20 |
|
MrKeuner
| thank you. I'll read these | 02:20 |
| → D-Chymera1 joined | 02:21 |
|
nevyn
| so... | 02:21 |
| ← D-Chymera left | 02:21 |
|
frogonwheels
| RandalSchwartz: !website | 02:22 |
|
gitinfo
| RandalSchwartz: Git is not a website deployment tool, but can sometimes play one in sufficiently simple/lax environments with a little help. One example of help is: http://toroid.org/ams/git-website-howto and another approach: https://gist.github.com/1714235 | 02:22 |
|
frogonwheels
| :) | 02:22 |
| ← hyperair left | 02:22 |
|
RandalSchwartz
| thx | 02:22 |
|
nevyn
| so what if your production environment does something useful with branches? | 02:22 |
|
RandalSchwartz
| "does something useful"? | 02:23 |
|
nevyn
| sure. | 02:23 |
|
| so vhost per branch | 02:23 |
| → Lgb joined | 02:23 |
| → leo joined | 02:23 |
| ← fr0stbyte left | 02:23 |
| → logankoester joined | 02:23 |
|
RandalSchwartz
| sure - then tie each one to a dir | 02:23 |
|
nevyn
| or customer per branch and when it's on the server the requests are fetched from the local git repo. not a checkout | 02:23 |
|
RandalSchwartz
| you can even just loop it | 02:24 |
|
nevyn
| so I'm not actually talking about websites | 02:24 |
|
RandalSchwartz
| "fetched from local git repo"? | 02:24 |
|
nevyn
| I'm talking about puppet | 02:24 |
|
| where there are patterns for using git branches for environments... | 02:24 |
|
| http://hunnur.com/blog/2010/10/dynamic-git-branch-puppet-environments/ | 02:25 |
|
| like this ^^^ | 02:25 |
| → tqmz__ joined | 02:25 |
| → lqi joined | 02:25 |
|
nevyn
| so to create a new environment you just make a new branch and push it to the server. then test your client against that environment | 02:26 |
| ← tqmz__ left | 02:26 |
| → Vampire0 joined | 02:26 |
| → hyperair joined | 02:26 |
| ← abetaha left | 02:27 |
| ← cccaldas left | 02:28 |
| ← Chib left | 02:28 |
| → solidus-river joined | 02:28 |
|
solidus-river
| how do i revert the most recent merge to a branch? | 02:28 |
|
| this is driving me insane | 02:28 |
|
| i see | 02:28 |
|
| git revert HEAD | 02:28 |
| ← neurodrone left | 02:28 |
|
solidus-river
| but it complains someting about merge and an -m option | 02:28 |
|
| i've done no work since then | 02:29 |
| ← tqmz left | 02:29 |
| → lyddonb joined | 02:29 |
| → CAAEF5Y joined | 02:29 |
| → pilotbub joined | 02:29 |
| → zulax joined | 02:29 |
|
solidus-river
| there shoudl be a simply worded how-to on this | 02:30 |
|
nevyn
| do you want to revert? or just undo it? | 02:30 |
|
SethRobertson
| solidus-river: !fixit | 02:30 |
|
gitinfo
| solidus-river: [!fixup] 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. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info) | 02:30 |
| ← griotspeak left | 02:33 |
| ← thebignoise left | 02:33 |
|
solidus-river
| how do you find out parent numbers? | 02:34 |
|
imMute
| git log | 02:35 |
| ← mtytel left | 02:36 |
| ← mcluskydodallas left | 02:38 |
| → abetaha joined | 02:39 |
| ← ehsan left | 02:41 |
| → diogogmt joined | 02:41 |
| ← hyperair left | 02:42 |
| → davidrussell joined | 02:42 |
| → TL joined | 02:43 |
| → weiyang joined | 02:44 |
| → ehsan joined | 02:44 |
| → Yuuhi` joined | 02:45 |
| → hyperair joined | 02:45 |
| → tokiya joined | 02:46 |
| ← diogogmt left | 02:46 |
| ← Yuuhi left | 02:46 |
| ← BiggFREE left | 02:46 |
| → BiggFREE joined | 02:47 |
| → diogogmt joined | 02:47 |
| ← pilotbub left | 02:47 |
| → w09x joined | 02:48 |
| ← w09x left | 02:49 |
| → w09x joined | 02:50 |
| → ASIRINeiluj joined | 02:50 |
| ← rickmasta left | 02:51 |
| ← diogogmt left | 02:52 |
| → diogogmt joined | 02:53 |
| ← mikeric left | 02:53 |
| ← davidrussell left | 02:55 |
| → dv310p3r joined | 02:56 |
| ← apok left | 02:57 |
| → gavin_huang joined | 02:57 |
| ← solidus-river left | 02:57 |
| ← zendeavor left | 02:58 |
|
zdk
| my history is A--B--C--D, I would like it to be A--C--D. any suggestions for the git command to do this? | 02:58 |
| ← w09x left | 02:58 |
|
SethRobertson
| zdk: !fixup | 02:58 |
|
gitinfo
| zdk: 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. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info) | 02:58 |
| ← Bearcat left | 02:58 |
| → krz joined | 02:59 |
|
zdk
| SethRobertson: nice, thanks! | 02:59 |
| ← jason237 left | 03:00 |
| → rurufufuss joined | 03:00 |
| ← Chibby_ left | 03:01 |
| → Chibby_ joined | 03:01 |
| ← BiggFREE left | 03:02 |
| → xyloph joined | 03:03 |
| → zendeavor joined | 03:03 |
| ← diogogmt left | 03:04 |
| ← xyloph left | 03:05 |
| → diogogmt joined | 03:05 |
| ← krz left | 03:05 |
| → jason237 joined | 03:07 |
| → Destos joined | 03:09 |
| ← cakehero left | 03:10 |
| → wuj joined | 03:11 |
| → neurodrone joined | 03:11 |
| ← D-Chymera1 left | 03:12 |
| → D-Chymera joined | 03:13 |
| ← ipalaus left | 03:13 |
| → xyloph_ joined | 03:15 |
| → luoluoluo joined | 03:15 |
| ← diogogmt left | 03:17 |
| ← xyloph_ left | 03:18 |
| ← Kichael left | 03:18 |
|
wald0
| if i have feature A saved in a commit, and i want to give it to the original author (remote repository), what's the normal procedure ? and how he can get updates about such feature ? | 03:18 |
| ← xiangfu left | 03:18 |
| → kermit joined | 03:19 |
|
SethRobertson
| Is this on github | 03:19 |
| → diogogmt joined | 03:21 |
| ← TL left | 03:21 |
| ← diogogmt left | 03:23 |
| ← zulax left | 03:23 |
| → diogogmt joined | 03:23 |
| → kennethr_ joined | 03:24 |
| ← merlin83_ left | 03:25 |
| ← alexgordon left | 03:25 |
| → xiangfu joined | 03:25 |
| → alberto56 joined | 03:25 |
| → fr0stbyte joined | 03:26 |
| ← kadoban left | 03:26 |
| → jaisoares joined | 03:26 |
| → wbednarski joined | 03:27 |
| ← wuj left | 03:27 |
| ← kennethreitz left | 03:28 |
| ← diogogmt left | 03:28 |
| ← philllllijw left | 03:29 |
| → diogogmt joined | 03:29 |
| ← f0i left | 03:31 |
|
sigs
| I'm guessing github has some system about keeping track of forks? | 03:31 |
| ← akiress left | 03:31 |
| ← acl_ left | 03:31 |
| ← mattalexx left | 03:31 |
| ← SpencerDailey_ left | 03:32 |
| → SpencerDailey_ joined | 03:33 |
| ← gchristensen left | 03:33 |
| ← diogogmt left | 03:36 |
| ← maletor left | 03:37 |
| → diogogmt joined | 03:37 |
| ← orospakr left | 03:38 |
| ← ihodes left | 03:39 |
| ← squiggy_ left | 03:40 |
| → maletor joined | 03:40 |
|
EugeneKay
| Yes, they track parents explicitly when you push the Fork button | 03:41 |
|
| It's antique and inflexible and very un-git-like | 03:41 |
| ← orafu left | 03:41 |
| → mandric joined | 03:41 |
| → orafu joined | 03:42 |
|
milki
| but it works! | 03:42 |
| ← diogogmt left | 03:42 |
| → merlin83_ joined | 03:43 |
| → diogogmt joined | 03:43 |
| ← diogogmt left | 03:45 |
| → luxurymode joined | 03:45 |
| → diogogmt joined | 03:46 |
| → ormris joined | 03:46 |
| ← dv310p3r left | 03:46 |
| gitinfo set mode: +v | 03:46 |
| ← maletor left | 03:50 |
| ← SpencerDailey_ left | 03:52 |
| ← kennethr_ left | 03:53 |
| → kennethreitz joined | 03:53 |
| → Heimidal joined | 03:54 |
| ← alberto56 left | 03:54 |
| ← sattu94__ left | 03:54 |
| → satyanash joined | 03:54 |
| → SpencerDailey_ joined | 03:55 |
| ← guampa left | 03:56 |
| → akiress joined | 03:57 |
| ← ko1 left | 03:57 |
| ← k1o left | 03:57 |
| ← kennethreitz left | 03:58 |
| ← SpencerDailey_ left | 03:58 |
| ← diogogmt left | 04:00 |
| → diogogmt joined | 04:00 |
| → ihodes joined | 04:03 |
| ← fr0stbyte left | 04:07 |
| → fr0stbyte_ joined | 04:07 |
| ← diogogmt left | 04:07 |
| → diogogmt joined | 04:08 |
| → tiglog joined | 04:08 |
| ← hyperair left | 04:08 |
| ← tiglog left | 04:09 |
| → tiglog joined | 04:09 |
| → tylere joined | 04:10 |
|
tylere
| Need some help. Changes files, cloned to a new branch with checkout -b, did a git add ., and then a commit. | 04:10 |
|
| It looks like it logged it as a commit from "nothing", rather than as a branch from master | 04:11 |
|
| so it logged everything as an addition | 04:11 |
|
| even the unchanged files | 04:11 |
| ← diogogmt left | 04:13 |
| → diogogmt joined | 04:13 |
| ← ColKurtz left | 04:16 |
| ← cooldude left | 04:16 |
| ← diogogmt left | 04:16 |
| → diogogmt joined | 04:17 |
| ← fr0stbyte_ left | 04:18 |
| ← tystr left | 04:18 |
| ← Turicas left | 04:20 |
| → davidrussell joined | 04:20 |
| ← Heimidal left | 04:21 |
| ← diogogmt left | 04:21 |
| → diogogmt joined | 04:22 |
| → cooldude joined | 04:25 |
|
wald0
| EugeneKay: why you mean un-git-like ? | 04:27 |
|
EugeneKay
| It's strongly "centralized" to Github. You can't clone a random git:// link from the web, or change the "parent" of your clone, etc | 04:28 |
|
wald0
| so is there no such feature out of github ? | 04:28 |
| ← Destos left | 04:29 |
|
wald0
| what about i create feature A in a different branch, and i want to give my changes to the author of my git fork, he will be "track" my branch looking for new commits ? | 04:30 |
|
EugeneKay
| GitHub does it by pull requests, usually. | 04:33 |
| ← diogogmt left | 04:33 |
| → diogogmt joined | 04:34 |
|
wald0
| yes but outside github (the author of my fork doesnt use it) | 04:34 |
| → ChaoWang joined | 04:35 |
| ← Wombert left | 04:37 |
| ← diogogmt left | 04:38 |
| → diogogmt joined | 04:39 |
| ← eletuchy left | 04:39 |
|
EugeneKay
| Provide a public git:// URL someplace he can pull, or email him a patch | 04:39 |
|
wald0
| right, that's the idea, but how he will be noticed/updated about future changes on feature A from my repo ? | 04:42 |
|
EugeneKay
| You send him a fresh email? | 04:42 |
| → jfelchner joined | 04:42 |
|
wald0
| no, im searching for an automated way so that i dont need to do that | 04:43 |
|
| or think/remember about that | 04:43 |
| → kennethreitz joined | 04:44 |
|
EugeneKay
| post-commit hook involving 'mailx' | 04:44 |
| ← dreiss left | 04:44 |
| ← kennethreitz left | 04:45 |
| ← cooldude left | 04:45 |
| ← ormris left | 04:47 |
| ← Dmole_ left | 04:47 |
| → krz joined | 04:47 |
| → glennpratt joined | 04:49 |
| → caseymcg joined | 04:55 |
| ← mindlogger left | 04:56 |
| → kennethreitz joined | 04:59 |
| → beautifulmind joined | 05:00 |
| ← diogogmt left | 05:02 |
| → diogogmt joined | 05:03 |
| ← glennpratt left | 05:03 |
| ← mikepack left | 05:04 |
| → mikepack joined | 05:05 |
| ← krz left | 05:05 |
| → krz joined | 05:05 |
| ← diogogmt left | 05:08 |
| → diogogmt joined | 05:08 |
| ← sythe_ left | 05:08 |
| ← mikepack left | 05:09 |
| ← soidexe left | 05:09 |
| ← diogogmt left | 05:13 |
| → diogogmt joined | 05:14 |
| → cnorman joined | 05:14 |
| → mikepack joined | 05:14 |
| ← conradev left | 05:15 |
| ← diogogmt left | 05:15 |
| → diogogmt joined | 05:16 |
| → fayimora joined | 05:17 |
| ← legnaleurc left | 05:17 |
| ← jamescarr left | 05:18 |
| → fr0stbyte joined | 05:18 |
| ← rchavik left | 05:19 |
| → legnaleurc joined | 05:19 |
| ← wald0 left | 05:21 |
| → wald0 joined | 05:23 |
| ← mikepack left | 05:24 |
| ← kukks left | 05:24 |
| ← cnorman left | 05:24 |
| ← legnaleurc left | 05:24 |
| → LongBeach joined | 05:24 |
| → mikepack joined | 05:24 |
| ← mikepack left | 05:25 |
| → legnaleurc joined | 05:25 |
| → mikepack joined | 05:25 |
| ← diogogmt left | 05:28 |
| ← legnaleurc left | 05:29 |
| → legnaleurc joined | 05:30 |
| → diogogmt joined | 05:30 |
| ← Bass10 left | 05:30 |
| → dnjaramba_ joined | 05:33 |
|
wald0
| how i can see the changes that was introduced in a branch since its creation ? | 05:33 |
| ← legnaleurc left | 05:34 |
|
bob2
| that's hard | 05:34 |
| ← dnjaramba left | 05:34 |
|
bob2
| but 'git log -p somebranch' is easy | 05:34 |
| ← diogogmt left | 05:34 |
| → legnaleurc joined | 05:35 |
|
bob2
| hm maybe merge-base is plenty | 05:35 |
| → dnjaramba joined | 05:35 |
| → diogogmt joined | 05:35 |
|
wald0
| bob2: git log -p branch seems like to show an output of all the changes from my master, to that old branch | 05:36 |
| ← codeshah left | 05:36 |
| → kadoban joined | 05:37 |
|
bob2
| it shows the whole history of the branch yes | 05:37 |
| ← matthiaskrgr left | 05:37 |
| → pilotbub joined | 05:38 |
| ← dnjaramba_ left | 05:38 |
|
wald0
| supposed that i create now a branch, and i do 3 different commits, how i can see -only- this history ? | 05:38 |
|
bob2
| like i said, try merge-base | 05:38 |
| ← lyddonb left | 05:39 |
| → matthiaskrgr joined | 05:39 |
| ← replore_ left | 05:40 |
| ← diogogmt left | 05:40 |
| → Heimidal joined | 05:41 |
| → diogogmt joined | 05:41 |
| → Bass10 joined | 05:41 |
| → legnaleurc_ joined | 05:41 |
| ← legnaleurc left | 05:41 |
| → smw joined | 05:41 |
| ← mandric left | 05:45 |
| ← wbednarski left | 05:45 |
|
sente
| I have a simple question: http://c.sente.cc/0zSh/git -- how can I compare the remote repo to the current files without actually pulling? i'm very to git | 05:45 |
| → jony joined | 05:46 |
| → hyperair joined | 05:46 |
| ← Bass10 left | 05:46 |
| ← diogogmt left | 05:46 |
| → dreiss joined | 05:46 |
| → diogogmt joined | 05:46 |
|
milki
| do a git fetch | 05:48 |
|
| instead | 05:48 |
| ← legnaleurc_ left | 05:48 |
|
milki
| and then compare it locally | 05:48 |
| ← kryl99 left | 05:49 |
|
milki
| you would be comparing origin/master to master | 05:49 |
| ← codewrangler left | 05:51 |
| ← pilotbub left | 05:51 |
| ← diogogmt left | 05:51 |
| ← macmartine left | 05:52 |
|
milki
| git pull does a fetch+merge | 05:52 |
|
| git fetch will not change your working dir | 05:52 |
| → freimatz joined | 05:53 |
| → toabctl joined | 05:53 |
|
sente
| okay, thanks | 05:53 |
| → legnaleurc joined | 05:54 |
| ← fr0stbyte left | 05:54 |
|
wald0
| maybe: git log HEAD..origin/master , sente, im just reading about it | 05:56 |
| ← hyperair left | 05:57 |
| ← aristidesfl left | 05:57 |
| ← ihodes left | 05:57 |
| → acl_ joined | 05:57 |
| ← krz left | 05:57 |
| ← dreiss left | 05:57 |
| → talios joined | 05:58 |
|
sente
| thanks | 06:00 |
| → macmartine joined | 06:02 |
| → legnaleurc_ joined | 06:03 |
| ← legnaleurc left | 06:04 |
| → ajaykools joined | 06:04 |
|
MrKeuner
| http://toroid.org/ams/git-website-howto on this website, the author creates a local repository and a remote bare repository and add bare repository as remote for local repository. Isn't that the same as creating a remote bare repository and git clone it to local ? | 06:06 |
|
bob2
| well, i don't htink you can clone an empty bare repo | 06:09 |
| ← ajaykools left | 06:09 |
| → ajaykools joined | 06:10 |
| ← legnaleurc_ left | 06:10 |
| → legnaleurc joined | 06:12 |
| ← ceej left | 06:12 |
| ← caseymcg left | 06:13 |
|
milki
| ya you can | 06:14 |
|
| itll just say you cloned an empty repo | 06:14 |
| → Slush- joined | 06:14 |
|
milki
| MrKeuner: yes its the same | 06:14 |
|
| its how github repos are linked | 06:15 |
| → ThomasLocke joined | 06:15 |
| → fr0stbyte joined | 06:16 |
| ← alexim left | 06:16 |
|
wereHamster
| milki: eh? Github? | 06:17 |
|
milki
| github's new repo page? | 06:17 |
|
| says to add remote | 06:17 |
|
MrKeuner
| I see, though when you clone your remote is called origin by default | 06:18 |
|
milki
| yes | 06:18 |
|
MrKeuner
| I guess you would have to remove that rmeote and add same remote with name web | 06:18 |
|
| to comply with example in the text | 06:18 |
|
milki
| ya, but any programmer can handle variable changes like that | 06:18 |
|
MrKeuner
| just trying to understand why he did it that way | 06:19 |
|
| or she | 06:19 |
| → harshpb joined | 06:19 |
| ← davidrussell left | 06:20 |
| → ihodes joined | 06:21 |
| ← legnaleurc left | 06:21 |
| → legnaleurc joined | 06:22 |
|
MrKeuner
| I don;t get this :) "I'm an egotistical bastard, and I name all my projects after myself. First Linux, now git." ~ Linus Torvalds | 06:22 |
|
| so he doesn't name after himself? | 06:22 |
|
| os is there a relation | 06:22 |
|
wald0
| bob2: aparently, showing the work of a branch -only- can be done with "git diff HEAD..branch" | 06:22 |
|
milki
| somewhere explains what git means | 06:23 |
|
| its a colloquial term | 06:23 |
|
sigs
| MrKeuner: http://www.etymonline.com/index.php?search=git | 06:23 |
|
bob2
| wald0, nah | 06:23 |
| → martinjlowm-lptp joined | 06:25 |
| → martinjlowm joined | 06:25 |
| ← Targen left | 06:27 |
|
MrKeuner
| hehe | 06:28 |
| ← luoluoluo left | 06:30 |
| → LouisJB joined | 06:30 |
| → mabrand joined | 06:30 |
| → LeMike joined | 06:31 |
| ← _iron left | 06:32 |
| → Dave^| joined | 06:33 |
|
MrKeuner
| kind of recursive naming | 06:33 |
| → caseymcg joined | 06:35 |
| ← Goplat left | 06:36 |
| → artib joined | 06:37 |
| → disappearedng joined | 06:38 |
| → hyperair joined | 06:39 |
| → TrineLocke joined | 06:39 |
| → pidus joined | 06:40 |
| ← legnaleurc left | 06:41 |
| ← mikepack left | 06:42 |
| → marthinal joined | 06:42 |
| → legnaleurc joined | 06:43 |
|
MrKeuner
| I seek your wisdom: If I use my laptop as dev repo, my home desktop as stage repo, and website as production repo. and push changes to either dev, stage or web (and each repo will publish to a detached work tree on that machine) would this setup cause any problems? | 06:43 |
| → JohnBat26 joined | 06:45 |
| ← smw left | 06:45 |
|
MrKeuner
| how about this: I use my website for single repo which will have three branches dev, stage and prod, and post-receive will publish to etiher of three detached work tree /var/websites/dev or /var/websites/stage or /var/websites/prod | 06:46 |
| ← Chappo left | 06:47 |
| → mxweas joined | 06:47 |
| ← CEnnis91 left | 06:47 |
| ← r126t left | 06:47 |
| ← forrestv left | 06:47 |
| ← nru left | 06:47 |
| ← kokx left | 06:47 |
| ← pdobrogost left | 06:47 |
| ← koivula left | 06:47 |
| ← roland left | 06:47 |
| ← mfischer left | 06:47 |
| ← xpot-mobile left | 06:47 |
| ← hays|afk left | 06:47 |
| ← Ferris left | 06:47 |
| ← kevlarman left | 06:47 |
| ← mpenz left | 06:47 |
| ← Fudge left | 06:47 |
| ← crash\ left | 06:47 |
| ← totte left | 06:47 |
| ← FauxFaux left | 06:47 |
| ← surfdue left | 06:47 |
| ← mjt left | 06:47 |
| ← Pieter left | 06:47 |
| ← nevyn left | 06:47 |
| ← cmn left | 06:47 |
| ← zackiv31 left | 06:47 |
| ← milk left | 06:47 |
| ← GrowLinux left | 06:47 |
| ← blueyed left | 06:47 |
| ← xiaotian_ left | 06:47 |
| ← elliottcable left | 06:47 |
|
milki
| sounds fine... | 06:47 |
| → tqmz joined | 06:47 |
| → elliottcable joined | 06:47 |
| ← hyperair left | 06:47 |
| → antijava joined | 06:47 |
| ← legnaleurc left | 06:49 |
|
antijava
| Any idea why git archive barfs when I pass in a known good commit id? http://pastebin.com/8bMTXkD3 | 06:49 |
|
MrKeuner
| milki, both? | 06:49 |
|
milki
| ya | 06:50 |
|
| 1st on has different remotes basically | 06:50 |
|
| and 2nd one has different branches | 06:50 |
| → legnaleurc joined | 06:50 |
| → jacekmigacz joined | 06:50 |
| → break57382 joined | 06:51 |
| → nru joined | 06:51 |
| → CEnnis91 joined | 06:51 |
| → r126t joined | 06:51 |
| → forrestv joined | 06:51 |
| → kokx joined | 06:51 |
| → pdobrogost joined | 06:51 |
| → mfischer joined | 06:51 |
| → koivula joined | 06:51 |
| → roland joined | 06:51 |
| → xpot-mobile joined | 06:51 |
| → hays|afk joined | 06:51 |
| → Ferris joined | 06:51 |
| → kevlarman joined | 06:51 |
| → mpenz joined | 06:51 |
| → Fudge joined | 06:51 |
| → crash\ joined | 06:51 |
| → totte joined | 06:51 |
| → mjt joined | 06:51 |
| → FauxFaux joined | 06:51 |
| → surfdue joined | 06:51 |
| → nevyn joined | 06:51 |
| → Pieter joined | 06:51 |
| → cmn joined | 06:51 |
| → zackiv31 joined | 06:51 |
| → milk joined | 06:51 |
| → GrowLinux joined | 06:51 |
| → blueyed joined | 06:51 |
| → xiaotian_ joined | 06:51 |
| wolfe.freenode.net set mode: +v | 06:51 |
| ← toabctl left | 06:51 |
|
MrKeuner
| milki, I am not sure if I can run different post-receive hooks depending on which branch is updated. Is that possible? | 06:52 |
|
milki
| you wouldnt, you would detect what branch was committed to | 06:53 |
| → hyperair joined | 06:54 |
|
milki
| antijava: nope, i havent tried remote before... | 06:55 |
| → kerrick joined | 06:55 |
|
antijava
| If I just use master it works. But a raw hex id doesn't... | 06:56 |
|
| The problem is that it is two separate command executions, so theoretically someone could have committed between the two operations. | 06:56 |
|
| I want to get the id of master in the first call, and then archive that known point in time in the 2nd | 06:56 |
| → smw joined | 06:56 |
| → macrover joined | 06:57 |
|
MrKeuner
| milki, you mean I have to detect using git log | grep etc.? | 06:59 |
|
| which I could | 06:59 |
| ← legnaleurc left | 06:59 |
|
milki
| doesnt post-receive have parameters? | 06:59 |
| ← artib left | 06:59 |
|
MrKeuner
| I have no idea | 06:59 |
|
milki
| find out? | 06:59 |
| ← acl_ left | 07:00 |
| → legnaleurc joined | 07:00 |
| → psakrii joined | 07:00 |
|
MrKeuner
| should I be reading git hooks? | 07:00 |
|
milki
| yes... | 07:00 |
| ← mxweas left | 07:00 |
| ← xpot-mobile left | 07:01 |
| → artib joined | 07:01 |
| ← antijava left | 07:02 |
| → xpot-mobile joined | 07:02 |
|
wereHamster
| MrKeuner: no, man githooks should be enough | 07:02 |
|
gitinfo
| MrKeuner: the githooks manpage is available at http://jk.gs/githooks.html | 07:02 |
|
milki
| isnt that the same thign? | 07:02 |
| → mxweas joined | 07:03 |
|
wereHamster
| oh, I misread him as 'should I be reading git books' -.- | 07:03 |
| ← daed left | 07:03 |
| ← LouisJB left | 07:03 |
| → dreiss joined | 07:03 |
|
MrKeuner
| hehe, thanks anyways | 07:03 |
|
| I'll go read hooks | 07:03 |
|
| hukbuks | 07:03 |
| ← mbrevda left | 07:04 |
| → mishok13 joined | 07:04 |
| → h0bbit joined | 07:05 |
| ← legnaleurc left | 07:07 |
| ← VladGh left | 07:07 |
| → c0w joined | 07:09 |
| → Karmaon joined | 07:10 |
| → legnaleurc joined | 07:10 |
| → scotters joined | 07:11 |
| ChanServ set mode: +v | 07:11 |
|
scotters
| 'evening everyone! | 07:12 |
| ← c0w left | 07:12 |
| ← mxweas left | 07:13 |
| → c0w joined | 07:13 |
|
scotters
| quick q: Git-scm.com lists the latest stable release as 1.7.6.6, but the Mac binaries are at 1.7.7 and above. I'd like to upgrade from 1.7.1 on Snow Leopard and build from source. --- so, which release should I use? | 07:13 |
| → cbreak-work joined | 07:13 |
| ← c0w left | 07:14 |
| ← elnn left | 07:14 |
| → elnn joined | 07:14 |
| ← JohnBat26 left | 07:14 |
| ← duckxx left | 07:15 |
|
wereHamster
| scotters: read the topic | 07:16 |
|
milki
| http://code.google.com/p/git-osx-installer/wiki/BuildYourOwn | 07:17 |
|
scotters
| :) okay! That's the 5th different potential version I've encountered. It's hard to know what's currently canonical. | 07:17 |
|
milki
| o | 07:17 |
|
| what | 07:17 |
| → r3wn joined | 07:17 |
|
r3wn
| hi | 07:17 |
|
milki
| is the latest version different from stable? | 07:17 |
|
scotters
| according to git-scm.com, yes. | 07:18 |
|
r3wn
| whats the best way to setup a private git repo? create a dir locked down with ssh access with private keys for all users? | 07:18 |
|
milki
| huh | 07:18 |
| ← xiangfu left | 07:18 |
|
milki
| r3wn: depends on number of users | 07:18 |
| ← KyleXY left | 07:18 |
|
r3wn
| 5-10 at most | 07:18 |
|
milki
| and how much control over access you want | 07:18 |
|
| for a small number, ssh access is fine | 07:19 |
|
| anymore, you might want to look at gitolite | 07:19 |
|
wereHamster
| scotters: the one in the topic is canonical | 07:19 |
| → KyleXY joined | 07:19 |
| → Sitethief joined | 07:19 |
|
wereHamster
| scotters: or also the latest tag in the git.git repository | 07:19 |
|
r3wn
| whats a typical setup with ssh? | 07:19 |
| ← legnaleurc left | 07:19 |
|
r3wn
| using keys? | 07:19 |
|
scotters
| wereHamster: thanks. That's why I stopped in. Much appreciated. | 07:19 |
|
r3wn
| 1 main user with keys for all other users? | 07:19 |
| → JohnBat26 joined | 07:20 |
|
| MacGyverNL uses gitolite for his centralized repo's, even though most are accessed by a single person and none by more than four. | 07:20 |
|
milki
| yes, one main user | 07:20 |
|
scotters
| so why is the git-scm.com page listing 1.7.6.6? | 07:20 |
| → airborn joined | 07:20 |
|
MacGyverNL
| It's extremely easy to setup, and much safer than trusting those people with any other kind of push method which somehow involves me restricting their shell access but still enables them using git. | 07:20 |
|
| And by "extremely easy" I mean: You can have it up and running in less than 30 minutes if you already know how git and SSH with public key crypto works. | 07:21 |
| ← boombatower left | 07:22 |
|
| tango_ is setting up his first gitolite repository thingie, and has just found out that machine has no ssh open to the outside 8-/ | 07:26 |
| ← macrover left | 07:27 |
| → senny joined | 07:28 |
| scotters → scottley | 07:29 |
|
MacGyverNL
| tango_: But that means you're spending time setting up SSH in general - not gitolite ;) | 07:30 |
| → legnaleurc_ joined | 07:30 |
| ← scottley left | 07:31 |
| → digitteknohippie joined | 07:31 |
|
milki
| >.< | 07:31 |
|
| no ssh1? | 07:31 |
|
| bah | 07:31 |
|
| ! | 07:31 |
| → Shusshu joined | 07:31 |
|
digitteknohippie
| finally trying to get to grips with git. github's confusing me though... when it says "git remote add origin [email@hidden.address] do i just change the email address to my own, and leave the rest as it? or do i leave all like that, or...? | 07:33 |
|
tango_
| MacGyverNL: yeah, actually the ssh is set up already and I'm using it, but the machine is only ssh-accessible from the intranet | 07:33 |
| → maletor joined | 07:33 |
|
milki
| digitteknohippie: no, thats not an email address | 07:33 |
| → csherin joined | 07:34 |
|
milki
| digitteknohippie: leave it as it is | 07:34 |
|
digitteknohippie
| ah, i see now. it's much like an address if you were ssh'ing. | 07:34 |
|
milki
| yes | 07:34 |
|
digitteknohippie
| thnx milki | 07:34 |
|
milki
| thats why you needed to upload your public key | 07:34 |
|
tango_
| it's exactly that | 07:34 |
| ← fayimora left | 07:35 |
|
r3wn
| can you use periods in repo names? | 07:35 |
| ← legnaleurc_ left | 07:35 |
|
milki
| if it doesnt complain i guess? | 07:36 |
| ← cenuij left | 07:36 |
| ← beautifulmind left | 07:37 |
| → legnaleurc joined | 07:37 |
| → xiangfu joined | 07:37 |
| → aspotashev joined | 07:37 |
| → giallu joined | 07:39 |
| ← kerrick left | 07:39 |
| → gusnan joined | 07:40 |
| → teweWORK joined | 07:40 |
| ← chrisdev left | 07:41 |
| → papegaaij joined | 07:43 |
| ← Heimidal left | 07:44 |
| ← aspotashev left | 07:45 |
| ← fr0stbyte left | 07:46 |
| → Wombert joined | 07:47 |
| ← mishok13 left | 07:47 |
| ← legnaleurc left | 07:47 |
| → legnaleurc joined | 07:48 |
| → nixmaniack joined | 07:48 |
|
MrKeuner
| I have been reading this and other documents but don't have much luck yet, any hints as to how to detect different branch commits and run checkouts on different GIT_WORK_TREEs | 07:50 |
| ← twisted` left | 07:50 |
|
MrKeuner
| What I am looking for is http://toroid.org/ams/git-website-howto except for multiple branches and multiple detached trees instead of one | 07:52 |
| → legnaleurc_ joined | 07:54 |
| ← break57382 left | 07:54 |
| ← legnaleurc left | 07:54 |
|
sitaram
| MacGyverNL: 30 minutes? too much! in many cases gitolite install can be as simple as "yum install gitolite", copy your ~/.ssh/id_rsa.pub from your workstation as /tmp/YourName.pub on server, then "gl-setup -q /tmp/YourName.pub" as gitolite user | 07:55 |
|
| MacGyverNL: then maybe count time to clone the admin repo to your workstation I guess but after that it's routine maint -- adding keys, repos etc | 07:56 |
| → cenuij joined | 07:57 |
|
MacGyverNL
| sitaram: I know - I included the time it took me to read the first few parts of the docs. | 07:59 |
| ← airborn left | 07:59 |
|
sitaram
| MacGyverNL: aah ok; that's fair then :-) | 08:01 |
| → k_sze joined | 08:01 |
|
sitaram
| I *have* sometimes been told "you wrote too much docs!" | 08:01 |
|
k_sze
| Hello. | 08:01 |
|
tango_
| there is no such thing as 'too much docs' | 08:02 |
|
k_sze
| How do I peek at the content of a file at a specific tag? | 08:02 |
| ← legnaleurc_ left | 08:02 |
|
jast
| EugeneKay: nope. it just includes that line. | 08:02 |
|
MacGyverNL
| sitaram: People who say that are usually people who also think "docs? Why? You've got the code haven't you?" is an acceptable answer ;) | 08:02 |
|
tango_
| k_sze: git cat-file tag:/path/to/file | 08:02 |
| → batlock666 joined | 08:02 |
|
EugeneKay
| jast - I've forgoten the context in my drankennas | 08:03 |
|
| +s | 08:03 |
|
jast
| you asked about commit -s | 08:03 |
| ← dfr|mac_ left | 08:03 |
| → dfr|mac__ joined | 08:03 |
|
EugeneKay
| Ahhh yes | 08:03 |
|
sitaram
| MacGyverNL: or my favourite: "hop onto #git and hope for the best" ;-) | 08:03 |
|
jast
| also I've just merged your patch | 08:03 |
|
EugeneKay
| So my email says | 08:03 |
|
jast
| and "deployed" it | 08:03 |
|
| EugeneKay mumbles something about git is not a deployment tool | 08:04 |
| ← artib left | 08:04 |
|
jast
| quite so! I'm a repeat offender in UGFWIINI, though, so it's okay | 08:04 |
|
MacGyverNL
| sitaram: By the way, I was telling somebody about gitolite a few days ago, he was using a self-compiled gitosis while his repo's provide gitolite - and I was unsure about one thing: did you also develop gitosis and just start anew with gitolite, or was that built by another dev / group? | 08:04 |
| → dfr|mac_ joined | 08:05 |
|
sitaram
| MacGyverNL: gitosis was by someone else. An author who, according to someone on this channel once, does not even reply to emails from his CEO, much less requests for support or feature requests ;-) | 08:05 |
|
MacGyverNL
| Ah, right, thanks. | 08:05 |
|
sitaram
| MacGyverNL: so I wrote my own | 08:05 |
| ← dfr|mac__ left | 08:05 |
| → dfr|mac joined | 08:06 |
|
tango_
| did you fork gitosis or just wrote something new from scratch | 08:06 |
| ← xiangfu left | 08:06 |
|
jast
| gitosis was written by Tommi Virtanen, over at eagain.net | 08:06 |
|
| gitolite is written from scratch | 08:06 |
|
| different programming language and all | 08:06 |
|
sitaram
| tango_: stole the basic idea (ssh, command=... in authkeys file), kept the filename conventions, and changed everything else | 08:07 |
| → flijten joined | 08:07 |
|
sitaram
| tango_: although I believe the basic "ssh, authkeys..." idea is older than gitosis; it's standard openssh after all | 08:07 |
| → OOPMan joined | 08:08 |
|
tango_
| does gitosis predate stuff like github or gitorious? | 08:08 |
| → lars___ joined | 08:08 |
|
sitaram
| no idea | 08:08 |
| ← macmartine left | 08:08 |
|
sitaram
| about the same I suppose but it should be easy to check | 08:08 |
|
jast
| I knew about gitosis before I knew about github, I believe | 08:08 |
|
| but that doesn't say much | 08:09 |
|
k_sze
| tango_: $ git cat-file tag 1.16:mHHT/Properties/AssemblyInfo.cs | 08:09 |
|
| fatal: git cat-file 1.16:mHHT/Properties/AssemblyInfo.cs: bad file | 08:09 |
| ← Chaser left | 08:10 |
|
jast
| gitosis development started in june 2007 | 08:10 |
|
sitaram
| tango_: gitosis first commit 2007-05-30, github launched 2008-04 (code may be older) | 08:10 |
| ← dfr|mac_ left | 08:10 |
|
tango_
| k_sze: git cat-file -p 1.16:mHHTetc | 08:10 |
|
MacGyverNL
| Thing with github is we don't *know* holw old the code is. | 08:10 |
|
sitaram
| tango_: jast may be right in terms of when gitosis was made public; the commit time does not mean it was published | 08:10 |
| ← Wombert left | 08:10 |
|
MacGyverNL
| (Which is at once my main gripe with the service) | 08:10 |
|
jast
| well I'm going from the date of the first commit in the official repository | 08:10 |
| → Chaser joined | 08:11 |
| → legnaleurc joined | 08:11 |
|
jast
| MacGyverNL: how so? | 08:11 |
|
sitaram
| MacGyverNL: why is that a gripe? just another "SaaS" no? | 08:11 |
| → BiggFREE joined | 08:11 |
|
jast
| ah well, bbl | 08:11 |
|
MacGyverNL
| jast: I have a sort of problem with hosting one of the world's biggest repositories of open source software on a closed source platform. | 08:12 |
| → vdv joined | 08:12 |
| ← Khisanth left | 08:12 |
|
MacGyverNL
| But that's my irrational opinion, ignore me by all means - github is awesome, I just have a difference of opinion. | 08:12 |
|
| A rather hypocritical one at that, since I use Windows as one of my main OS's. | 08:12 |
|
sitaram
| MacGyverNL: well they have to make money somehow; I guess I'm not a complete RMS anyway | 08:13 |
|
| oh... bad! | 08:13 |
|
| sitaram has no windows at home or work | 08:13 |
|
sitaram
| (well not *my* work desktop / laptop anyway) | 08:13 |
|
MacGyverNL
| Yes, yes, they have to make money, true - but with a model like github, money and publishing source doesn't have to be mutually exclusive... | 08:13 |
|
| But it's a choice up to them, really. | 08:14 |
|
| It's just that, if gitorious was as feature-rich as github, I'd vastly prefer it because that one is open source. | 08:14 |
| → soidexe joined | 08:14 |
|
sitaram
| MacGyverNL: ever talk to a VC (I'm not saying that is the case here, but you can get a lot more funding if you can show that you are trying to maintain a differentiator) | 08:14 |
| → raatiniemi joined | 08:15 |
| ← soidexe left | 08:15 |
| ← legnaleurc left | 08:15 |
| → psoo joined | 08:15 |
| → macrover joined | 08:16 |
| → legnaleurc joined | 08:16 |
|
MacGyverNL
| Understanbadable. | 08:16 |
|
| Meh. SSH fail. | 08:16 |
|
| Understandable* | 08:16 |
| ← mdel left | 08:16 |
|
k_sze
| tango: thanks. :D | 08:17 |
| → dpino joined | 08:17 |
| → LucasTizma joined | 08:17 |
|
MacGyverNL
| But I should also add I'm quite paranoid and have a security background - in my book, something that's not open sourced has automatic points against it for not being inspectable. And yes, that's unreasonable, and yes, I still use those services if they're good and there's no viable alternative. | 08:18 |
|
| But it's unfair to apply that to github. I know. | 08:18 |
|
| I can't make a real rational argument for this without at some point introducing philosophical differences. | 08:19 |
| → xiangfu joined | 08:19 |
|
MacGyverNL
| That's why I said you should ignore me. | 08:19 |
| ← Lgb left | 08:20 |
| → stodan joined | 08:20 |
| ← legnaleurc left | 08:20 |
|
MacGyverNL
| (To illustrate: LastPass is a very nice password service. But I have no way to inspect it and therefore I am not going to give my full database of passwords to them - even though many thousands of other people trust them, and even though they (claim to) use AES256 for everything that gets sent to them. | 08:21 |
|
| Instead, I use KeePass, which is somewhat less easy to use but I have checked the code.) | 08:21 |
| → dc5ala joined | 08:21 |
| ← herdingcat left | 08:21 |
| → sameer_ joined | 08:21 |
| ← mva left | 08:21 |
| → yshh joined | 08:21 |
| → Wombert joined | 08:22 |
| ← JackWinter left | 08:22 |
| → JackWinter joined | 08:22 |
| → mva joined | 08:22 |
| ← elnn left | 08:23 |
| → ipalaus joined | 08:23 |
| → Lgb joined | 08:23 |
| ← MrKeuner left | 08:23 |
| → snearch joined | 08:23 |
| → paradoxgo joined | 08:23 |
| → elnn joined | 08:23 |
| ← hyperair left | 08:24 |
| ← paradoxgo left | 08:24 |
| → jceb joined | 08:25 |
| gitinfo set mode: +v | 08:26 |
|
sameer_
| Hi, I have done a commit with wrong message and pushed to remote repo(I realised at this point and did a ctrc+c, looked at UI of bitbucket dashboard, didnt show my pushed commit). So I locally did a `commit --amend` and tried to push then it was rejected(apparantly it was pushed!). I know that noone has yet pulled the latest comit, but might have pulled this branch earlier. Is it okay to force push? | 08:26 |
|
jast
| MacGyverNL: if you don't mind a complete lack of features, you can give repo.or.cz a try. if nothing else, I know it has decent support. [I'm one of the guys who does that...] | 08:26 |
| ← tiglog left | 08:26 |
| → mishok13 joined | 08:26 |
| ← Araxia left | 08:27 |
|
jast
| in fact, some of the limitations are in place because we have yet to figure out a way to get rid of them without introducing mostly unrealistic security issues... | 08:27 |
| → SPYGAME joined | 08:27 |
| → Khisanth joined | 08:27 |
|
jast
| sameer_: if you're quite certain that nobody has the old version of the commit, force push is okay | 08:27 |
|
sameer_
| what does it mean by 'force push changes the history.' It will change only the diverged i.e. the amended commits history, right? | 08:27 |
|
jast
| sameer_: yes. | 08:28 |
| ← roland left | 08:28 |
|
MacGyverNL
| jast: Well, I now have gitolite which is enough for my purposes - I'm not involved in any large open source projects. | 08:29 |
|
sameer_
| jast: thanks :). so the history of the older commits remains unchanged, right? | 08:29 |
|
MacGyverNL
| But it sounds interesting. | 08:29 |
|
jast
| sameer_: yes | 08:29 |
| → d3vic3 joined | 08:29 |
|
sameer_
| <jast>: thanks :) | 08:30 |
| ← mva left | 08:30 |
| → roland joined | 08:30 |
| → thiago joined | 08:31 |
| → gnufied joined | 08:32 |
| → Araxia joined | 08:34 |
| → retoryter joined | 08:35 |
| ← tatsuya_o left | 08:36 |
| → gldn joined | 08:36 |
| ← LucasTizma left | 08:38 |
| → eijk joined | 08:39 |
| ← ihodes left | 08:40 |
| → sindresorhus joined | 08:40 |
| → rendar joined | 08:42 |
| → leavittx joined | 08:42 |
| → twisted` joined | 08:43 |
| ← lapistano left | 08:43 |
|
sitaram
| MacGyverNL: weirdly enough, gitolite *needs* github for one specific purpose: since I don't have a 'web site' anywhere else, I need a place to put the rendered HTML docs! Github does that great... | 08:43 |
| → lapistano joined | 08:43 |
| → legnaleurc joined | 08:45 |
| → shergill1 joined | 08:46 |
| ← shergill left | 08:46 |
|
MacGyverNL
| And gitorious most likely doesn't, right? | 08:47 |
|
sitaram
| MacGyverNL: no idea. | 08:48 |
| → BSaboia joined | 08:48 |
|
MacGyverNL
| (I looked at self-hosted gitorious before deciding on gitolite, but it was too much trouble for features I was never going to use, and features I expected weren't in there, so yeah...) | 08:48 |
| ← dnjaramba left | 08:50 |
|
sitaram
| MacGyverNL: also see https://github.com/sitaramc/hap (documentation is at the bottom of the source code). This is what I use and I highly recommend it. No passwords to store... | 08:50 |
|
| many people don't like the concept, though. I find it perfectly acceptable | 08:50 |
|
MacGyverNL
| Speaking of "github" and "great docs" - I've recently encountered some 404's on links to your docs from other sites - did the structure change? | 08:50 |
| → dnjaramba joined | 08:50 |
| ← legnaleurc left | 08:50 |
| → legnaleurc joined | 08:51 |
| ← iamjarvo left | 08:51 |
| ← leavittx left | 08:51 |
| ← sindresorhus left | 08:52 |
|
sitaram
| MacGyverNL: yes they did; see the commit message for 6e29365 | 08:52 |
| → arvind_khadri joined | 08:52 |
| → dr_lepper joined | 08:55 |
| ← dr_lepper left | 08:55 |
| → dr_lepper joined | 08:55 |
| → legnaleurc_ joined | 08:55 |
| → break57382 joined | 08:56 |
| ← legnaleurc left | 08:56 |
| → whitman joined | 08:56 |
| → Cyanure joined | 08:59 |
| → shruggar joined | 09:00 |
| gitinfo set mode: +v | 09:00 |
|
Cyanure
| Hi | 09:00 |
|
MacGyverNL
| Wow - that *is* a huge change. But you have pictures now! ^_^ | 09:00 |
|
Cyanure
| How can I specify that my local branch "experimental" always pull from the remote origin branch "experimental" ? And can I do that with commandline without editing any configuration file | 09:01 |
| → pilotbub joined | 09:01 |
| ← legnaleurc_ left | 09:01 |
|
kini
| is there an environment variable I can set which will make git ignore any config variables which change its output from the default? | 09:03 |
|
| something like Mercurial's HGPLAIN variable, basically | 09:04 |
| → legnaleurc joined | 09:04 |
| → hyperair joined | 09:06 |
|
cmn
| what are you trying to do? | 09:07 |
|
| if you need predictable output, use the plumbing commands | 09:07 |
| ← hyperair left | 09:07 |
| → PigeonFriend joined | 09:07 |
| ← PigeonFriend left | 09:09 |
| ← LeMike left | 09:10 |
| → dorkmafia joined | 09:10 |
| → g105b joined | 09:10 |
| → Blaster joined | 09:10 |
| ← roland left | 09:10 |
|
Blaster
| hey when you install Git on windows do you use ssh.exe (OpenSSH) or PuTTY? | 09:10 |
| → robotmay joined | 09:11 |
| ← legnaleurc left | 09:12 |
| → roland joined | 09:12 |
| ← senny left | 09:13 |
|
cbreak-work
| I heard both work | 09:14 |
| ← snearch left | 09:14 |
|
cmn
| you can get git to work either of them so you can continue using what you're confortable with | 09:15 |
| ← g105b left | 09:15 |
|
Blaster
| any way to store the password for my repository? it's like [email@hidden.address] | 09:15 |
| → senny joined | 09:15 |
|
Blaster
| Dont want to have to type the password each time I do a git pull or git push | 09:15 |
|
cmn
| Cyanure: git branch --set-upstream exp origin/exp | 09:15 |
|
| Blaster: that's not a password for your repo, that's your password on that machine | 09:16 |
|
| no idea if you can tell ssh to cache passwords, but you probably want to use keys | 09:16 |
|
Cyanure
| cmn, I googled it and find the combo (git config branch.experimental.remote origin) and (git config branch.experimental.merge experimental) | 09:17 |
|
Blaster
| Where should I start? | 09:17 |
|
Cyanure
| cmn, is there a difference ? | 09:17 |
|
sitaram
| MacGyverNL: yes I have pictures, and you should see the source for those pictures -- all plain text! | 09:17 |
|
Blaster
| What would be a good google search? | 09:17 |
|
MacGyverNL
| graphviz? | 09:17 |
|
cmn
| Cyanure: one you're doing it, the other one you're telling git to do it | 09:17 |
|
sitaram
| MacGyverNL: graphviz for a couple of them, "ditaa" for the others | 09:17 |
| → PigeonFriend joined | 09:18 |
|
cehteh
| Blaster: ssh-agent | 09:18 |
| → LimeBlast joined | 09:19 |
|
Cyanure
| cmn, so it does the exact same thing ? | 09:20 |
|
kini
| cmn: just trying to run the test suite of hg-git (which I believe is based on mercurial's own test suite) | 09:20 |
|
| outputs don't match because the test suite calls git, and I have config settings that make git log output branch names, etc. etc. | 09:20 |
|
cmn
| Cyanure: yes, that's what I said | 09:20 |
| ← Retistic left | 09:20 |
|
kini
| so I wondered if I could pass some environment variable to make git produce output at default settings | 09:21 |
|
cmn
| kini: then the tests are buggy | 09:21 |
|
kini
| I guess so, lol | 09:21 |
|
| it'd still be nice to have such a feature, though :) | 09:21 |
|
cmn
| depending on the output of a porcelain command is a bug | 09:21 |
| → legnaleurc joined | 09:22 |
| ← pilotbub left | 09:23 |
|
cmn
| porcelain may start doing things differently as well, so then you have to deal with different behaviours as well as different outputs | 09:23 |
|
| as I said, if you need stable output (and in any script, anyway) use plumbing commands | 09:23 |
| ← dorkmafia left | 09:25 |
| ← Vile left | 09:26 |
| ← legnaleurc left | 09:26 |
|
Nickeeh
| Can I view the patch I made in my commit-message-editor when I enter "git commit" ? | 09:27 |
|
nru
| Nickeeh: git commit -v | 09:28 |
| ← fisted left | 09:28 |
| → daed joined | 09:28 |
|
Nickeeh
| nru, thanks! :) | 09:29 |
| → fisted joined | 09:29 |
| → i42n joined | 09:30 |
| → glcrazy joined | 09:30 |
| → amigojapan joined | 09:31 |
| ← xiangfu left | 09:31 |
| ← neurodrone left | 09:32 |
| → eugenmayer joined | 09:32 |
|
eugenmayer
| guys, when writing aliases using sh -c .. how to preserve the pwd? | 09:33 |
| ← NickASloan left | 09:33 |
| → Dreamer3__ joined | 09:33 |
| → QaDeS joined | 09:33 |
| ← moqq left | 09:33 |
| ← Dreamer3 left | 09:34 |
| → legnaleurc joined | 09:34 |
| ← lottadot left | 09:34 |
| ← mtkd left | 09:34 |
| → moqq joined | 09:34 |
| ← JEEB left | 09:34 |
| ← ianmcorvidae left | 09:34 |
| → ianmcorvidae joined | 09:35 |
| ← ianmcorvidae left | 09:35 |
| → ianmcorvidae joined | 09:35 |
| ← madsy left | 09:35 |
| ← daethorian left | 09:35 |
| → mtkd joined | 09:35 |
| ← avium left | 09:35 |
| ← unreal left | 09:35 |
| ← jjasinski left | 09:35 |
| ← hsb left | 09:35 |
| ← leo left | 09:35 |
| → hsb joined | 09:35 |
| → jjasinski joined | 09:35 |
| → overbythere joined | 09:35 |
| → madsy joined | 09:35 |
| ← madsy left | 09:35 |
| → madsy joined | 09:35 |
| ← jargon- left | 09:35 |
| → leo joined | 09:35 |
| → lottadot joined | 09:35 |
| → unreal joined | 09:36 |
| → xiangfu_ joined | 09:36 |
| → jargon- joined | 09:36 |
| → daethorian joined | 09:36 |
| ← xiangfu_ left | 09:36 |
| → NickASloan joined | 09:37 |
| ← macrover left | 09:37 |
| → achadwick joined | 09:38 |
| → Kingsy joined | 09:38 |
| → johnathanb joined | 09:39 |
| ← ianmcorvidae left | 09:39 |
| → ianmcorvidae joined | 09:39 |
| ← caseymcg left | 09:40 |
| → avium joined | 09:40 |
| ← shruggar left | 09:40 |
| → shruggar1 joined | 09:40 |
| → hyperair joined | 09:40 |
|
cmn
| preserve across what? what commands are you running? | 09:41 |
| → eijk_ joined | 09:41 |
| → xiangfu joined | 09:41 |
| → jamesaxl joined | 09:42 |
| → neurodrone joined | 09:42 |
| ← weiyang left | 09:44 |
|
eugenmayer
| cmn: imagin an alias | 09:44 |
|
| cl = ! sh -c "git clone host:path/to/$0" | 09:44 |
|
| the issue with this is, that pwd is not preserved, so the clone does not end up to be in the cwd | 09:45 |
| → tatsuya_o joined | 09:45 |
| ← eijk left | 09:45 |
|
cmn
| two or three issues with that | 09:45 |
|
eugenmayer
| and [url ] is not the same here | 09:45 |
| ← legnaleurc left | 09:45 |
|
cmn
| such an alias would be better as a insteadOf | 09:45 |
| → f0i joined | 09:45 |
|
eugenmayer
| cmd well, more to write | 09:46 |
|
cmn
| and you're starting a brand new shell for no good reason | 09:46 |
|
eugenmayer
| git clone insteadofalias:name | 09:46 |
| → noisebleed joined | 09:46 |
| ← noisebleed left | 09:46 |
| → noisebleed joined | 09:46 |
|
eugenmayer
| cmn: wel, afaik thats how you do $0 .. $1 stuff with git aliases | 09:47 |
|
| eg | 09:47 |
|
| tde = ! sh -c 'git tag 6.x-$0-$1' | 09:47 |
| → legnaleurc joined | 09:47 |
| ← glcrazy left | 09:47 |
|
eugenmayer
| i would love to avoid the new shel, but AFAIK there is no way to work with the args then | 09:47 |
|
cmn
| you use a function | 09:47 |
| ← xiangfu left | 09:47 |
|
cmn
| that's how I've always seen it in the docs and the list | 09:48 |
|
eugenmayer
| function? what exactly is that in git terminolgy? | 09:48 |
|
cmn
| nothing | 09:48 |
|
| what you're doing is shell scripting | 09:48 |
|
eugenmayer
| basically, yes | 09:49 |
|
cmn
| not basically, this is shell programming, little to do with git | 09:49 |
| → cabaire joined | 09:49 |
|
wereHamster
| eugenmayer: I believe git exports an env var with the original pwd | 09:49 |
|
cmn
| allias.cl = f() { git clone whatever/$0} !f() | 09:49 |
|
gitinfo
| [!ff] A fast-forward is a special type of merge where you have a revision and you are "merging" another branch's changes that happen to be a descendant of what you have. In such these cases, you do not make a new merge commit but instead just update to his revision. This will happen frequently on a remote-tracking branch of a remote repository. (From man gitglossary) See also: | 09:49 |
| → xiangfu joined | 09:49 |
| ← talios left | 09:49 |
|
cmn
| ignore gitinfo | 09:50 |
|
| I can't remember the exact syntax, but that's the way people who know write these things | 09:50 |
| ← neurodrone left | 09:51 |
| ← legnaleurc left | 09:51 |
| ← dreiss left | 09:52 |
|
cmn
| allias.cl = "!f() { git clone $0;}; `f $0`" seems to be the way to go | 09:52 |
| → legnaleurc joined | 09:52 |
|
cmn
| but really, use a insteadOf | 09:53 |
|
eugenmayer
| http://osiux.com/git-alias#id8 | 09:53 |
|
| there are a lot of those examples | 09:53 |
|
cmn
| there's lots of examples for all kinds of things; I trust the git hackers more | 09:54 |
|
eugenmayer
| cmn: the last one does not work out | 09:54 |
|
cmn
| last what? | 09:55 |
|
heoa
| How can I install submodules specified by the submodule file? | 09:55 |
|
eugenmayer
| cl = "!f() { git clone dwdev:dw/$1;}; `f $1`" | 09:56 |
|
| cmd ^^ | 09:57 |
| → jatt joined | 09:58 |
|
eugenmayer
| the args are not passed, $0 is "sh" | 09:58 |
|
cmn
| so adjust for the real values | 09:58 |
| ← arvind_khadri left | 09:59 |
|
eugenmayer
| cmd, tried e.g | 09:59 |
|
| cl = "!f() { git clone dwdev:dw/$1;}; `f $0 $1`" | 09:59 |
|
| but even then, my string is not passed, when i call | 09:59 |
|
| git cl somename | 10:00 |
| ← ajaykools left | 10:00 |
|
eugenmayer
| $1 is empty | 10:00 |
| → JEEB joined | 10:00 |
| ← BiggFREE left | 10:01 |
| → Vile joined | 10:01 |
| ← eno left | 10:02 |
| ← senny left | 10:03 |
| → eno joined | 10:04 |
| → senny joined | 10:05 |
|
wereHamster
| eugenmayer: cl = "!f() { git clone dwdev:dw/$1;} f" | 10:05 |
|
eugenmayer
| wereHamster: sh: -c: line 0: syntax error near unexpected token `f' | 10:06 |
|
| sh: -c: line 0: `f() { git clone dwdev:dw/$1;} f 'wysiwyg'' | 10:06 |
|
wereHamster
| why did you add the argument to f? | 10:06 |
|
eugenmayer
| well i called | 10:06 |
|
| git cl wysiwyg | 10:06 |
|
| (so in the cli, after adjusting the alias your way) | 10:07 |
|
wereHamster
| eugenmayer: git config --global alias.test '!f() { echo $1 $2 $3 $4; }; f' | 10:07 |
|
| then run `git test arg1 arg2 arg4` | 10:07 |
|
| see what it does? | 10:07 |
|
eugenmayer
| git test t1 t2 t3 | 10:07 |
|
| t1 t2 t3 | 10:07 |
|
| so, w orks | 10:07 |
|
wereHamster
| bravo! | 10:07 |
|
| so, change echo to git clone or whatever you want | 10:08 |
|
eugenmayer
| wereHamster: you forgot the ; in the command. | 10:08 |
|
Kingsy
| guys, if I have a blank repo and I fetch from a --bare repo, it gets the objects but git log says fatal: bad default revision 'HEAD' and error: pathspec 'master' did not match any file(s) known to git | 10:08 |
|
wereHamster
| no I did not | 10:08 |
|
eugenmayer
| wereHamster: wait, no offence, was just FYI | 10:08 |
|
Kingsy
| is what it says when I try to checkout the master branch.. | 10:08 |
|
eugenmayer
| wereHamster: eugenmayer: cl = "!f() { git clone dwdev:dw/$1;} f" | 10:08 |
| → tcurdt joined | 10:08 |
|
eugenmayer
| cl = "!f() { git clone dwdev:dw/$1;}; f" | 10:08 |
|
wereHamster
| ah, yes there | 10:09 |
|
eugenmayer
| wereHamster: should it be that way? | 10:09 |
|
| ok, fine. Just bein sure to not miss something. | 10:09 |
|
Kingsy
| haha probably because git branch and git branch -av displays nothing, so I am assuming there isnt even a branch made.. which is confusing.. where did it sae the objects? | 10:09 |
|
eugenmayer
| wereHamster: cmn Thank you a lot! | 10:09 |
|
| git is awesome. | 10:09 |
| → iocor joined | 10:10 |
|
FauxFaux
| Kingsy: Please slow down, learn something about git, and stop trying to do crazy things, then trying to get us to help you dig yourself out of whatever hole you've ended up in, it's saddening. | 10:10 |
|
Kingsy
| FauxFaux: oh ok, sorry I assumed what I was trying to do was pretty simple... | 10:10 |
|
eugenmayer
| wereHamster: :/ even then, the command seems ot fail for pwd. But FYI..iam in a "repo" were a folder is ignore, trying to checkout a repo there…its ends up to be in the "parents" root | 10:11 |
|
FauxFaux
| You haven't explained what you're trying to do or how you got into the situation you're in, but it's certainly not simple or the recommended way. Again: Return to start, read documentation, explain problem. | 10:11 |
|
wereHamster
| eugenmayer: all aliases are executed in the top level directory of the repo | 10:11 |
|
eugenmayer
| i see, no i get it | 10:11 |
|
| So well, my real issue here is, not using submodules then | 10:12 |
| → arvind_khadri joined | 10:12 |
| ← arvind_khadri left | 10:12 |
| → arvind_khadri joined | 10:12 |
|
Kingsy
| FauxFaux: all I am trying to do is fetch from a bare repo into a blank repo | 10:12 |
| → ajaykools joined | 10:12 |
|
Kingsy
| thats it | 10:12 |
|
eugenmayer
| I avoided submodules since i had a bad experience with them 1.5 years ago…implemented a fork of braid with gitignore then..using this approach for a while | 10:12 |
|
FauxFaux
| Kingsy: You can't fetch an empty bare repo. It doesn't make any sense. There's nothing to fetch. | 10:12 |
|
Kingsy
| FauxFaux: lol no, the bare repo has stuff in it, I am just saying when I created it, I used --bare | 10:13 |
|
eugenmayer
| are submodules considered good practise for now, with nested repos? I general, its not what i would call "external" repo.. i dont need ot let the parent now the "submodules" at all. its basically a "Framework" as a parent..the "modules ( extenstions" ) are in subfolder | 10:13 |
| ← fruight left | 10:13 |
| → kombi joined | 10:13 |
| → d0k joined | 10:14 |
|
eugenmayer
| Kingsy: http://progit.org/book/ | 10:14 |
|
kombi
| scared newbee: just rolled back to previous sha, how do I keep that version for real and get rid of "(no branch)" | 10:14 |
|
eugenmayer
| Kingsy: before you upset people in here even more, not getting help with the "tricky" stuff later anymore…you start there | 10:15 |
| ← psoo left | 10:15 |
|
Kingsy
| eugenmayer: ok np.. thanks | 10:15 |
|
wereHamster
| eugenmayer: git --version ? | 10:15 |
|
eugenmayer
| Kingsy: i would state, that this docs are by far the best written ones i have ever seen for a OS project in general | 10:15 |
|
| Kingsy: its a book, a really good one. | 10:15 |
|
| wereHamster: 1.7.4.4 / 1.7.5 on the severs | 10:16 |
|
| (cli is OSX) | 10:16 |
|
wereHamster
| eugenmayer: update to 1.7.6+ and you'll have GIT_PREFIX | 10:16 |
|
eugenmayer
| basically, the servers are the limit, but i can upgrade to what ever needed | 10:16 |
|
wereHamster
| eugenmayer: read the 1.7.6 release notes | 10:16 |
|
kombi
| whoops, don't mean to upset anyone with a trivial task, it's just that it's a production website one day before launch.. | 10:16 |
|
eugenmayer
| wereHamster: you are a hero. | 10:17 |
|
| eugenmayer going to read | 10:17 |
| ← xerxas left | 10:18 |
|
Kingsy
| eugenmayer: point taken, thanks | 10:18 |
|
eugenmayer
| wereHamster: are you referencing to | 10:18 |
|
| Processes spawned by “[alias] <name> = !process” in the configuration | 10:18 |
|
| can inspect GIT_PREFIX environment variable to learn where in the | 10:18 |
|
| working tree the original command was invoked. | 10:18 |
|
| ? | 10:18 |
| ← smw left | 10:19 |
|
wereHamster
| eugenmayer: yes, that's what I mean by GIT_PREFIX | 10:19 |
|
| or do you see any other reference to GIT_PREFIX? | 10:19 |
| → psoo joined | 10:20 |
|
eugenmayer
| that would let my alias work i guess. Any comments on that "submodules or not" ? | 10:20 |
|
wereHamster
| I didn't follow that thread | 10:20 |
|
eugenmayer
| Because actually, my appraoch breaks any IDE integration of git yet ( PHPstorm for me here ) | 10:20 |
|
| wereHamster: should i rephrase in one sentence, or is you bandwith already limited? :) | 10:21 |
| ← ethanol left | 10:21 |
| → Sigma joined | 10:21 |
|
| eugenmayer notices being pretty noisy in the channel. sorry | 10:22 |
| → Element9_work joined | 10:22 |
| → Ryback_ joined | 10:24 |
| ← xerora left | 10:24 |
|
wereHamster
| I just didn't pay attention to your other problems, that's all | 10:24 |
| ← Sitethief left | 10:26 |
| glguy_ → glguy | 10:26 |
|
kombi
| how do I turn "no branch" into the new master (rather than merge it)? | 10:26 |
| → shruggar joined | 10:27 |
|
eugenmayer
| wereHamster: 2 or more years ago i tried submodules and didnt like the result at all. I have seen a lot of development on that field again and again, but did not retry it. Yet, my usecase might be even non-fitting. I dont need the parent project to actually no its submodules for "all clones", rather, if at all, only for the current clone ( localy ). The reason is, that the parent is more a "Framework", while the submodules are "modules" | 10:27 |
| → Nathandim joined | 10:27 |
| → fruight joined | 10:27 |
|
eugenmayer
| wereHamster: for the meantime, i forked braid and implemented a "managed .gitignore" with well, the same results you get with submodules, execpt some fixes ( compared to the old releases) and some extra stuff like email-report ( which were back then rather maintainance infos…if you try to pull all repos and you have a merge-request and fail..and things like that) | 10:28 |
|
| iam not any longer using git for deployment, but of course for development, in the case stated above | 10:28 |
| ← hyperair left | 10:28 |
|
| eugenmayer hopes to not be to verbosed | 10:28 |
| ← shruggar1 left | 10:29 |
| ← gxk left | 10:29 |
| → shruggar1 joined | 10:29 |
| ← shruggar left | 10:30 |
|
wereHamster
| eugenmayer: there has not been any significant development in the submodules | 10:30 |
|
jast
| eugenmayer: there are several approaches to !subprojects (see below). perhaps another will appeal to you more... | 10:30 |
|
gitinfo
| eugenmayer: 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. | 10:30 |
|
wereHamster
| maybe you want one of the alternatives !submodule | 10:30 |
|
gitinfo
| git-submodule is ideal to add subsidiary git repositories to a git superproject when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes upstream. See http://book.git-scm.com/5_submodules.html | 10:30 |
|
wereHamster
| ah, what jast said | 10:30 |
| → gxk joined | 10:31 |
|
eugenmayer
| 1. subtree is no choice at all 2. submodule seems to not fit the case 3. gitignore breaks like any IDE / UI integreation for the subprepos ( while submodule seems not ) | 10:32 |
|
| so my last be are git-slaves | 10:32 |
| → Demego joined | 10:32 |
|
eugenmayer
| !gitslave | 10:32 |
|
gitinfo
| gitslave (http://gitslave.sf.net) is useful to add subsidiary git repositories to a git superproject when you control and develop on the subprojects at more or less the same time as the superproject, and furthermore when you typically want to tag, branch, push, pull, etc. all repositories at the same time. | 10:32 |
|
kombi
| I don't mean to muscle in on one of you but how do I get rid of that darned 'no branch'? | 10:34 |
|
eugenmayer
| kombi: i simply have no clue :) | 10:34 |
|
kombi
| ;) | 10:34 |
|
nru
| !subtree | 10:35 |
|
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 | 10:35 |
|
eugenmayer
| well, eventhough git-slaves looks interesting, i guess it will need a test how the IDEs play with it | 10:35 |
| ← dc5ala left | 10:35 |
|
eugenmayer
| nru: subtree is even a more tight "relation" from subrepo to parentrepo…in my case, that is even worse then submodules then | 10:36 |
| → beautifulmind joined | 10:36 |
| → pro_metedor joined | 10:36 |
|
eugenmayer
| nru: basically, parent and submodules are _completly_ seperated and no "history" of what version of sub1 has been when parent was in rev 123 | 10:36 |
|
| basically, all i need is . "hey could you pleae play nice when nested - you do not need to interact with eachother" | 10:37 |
|
kombi
| eugenmayer: a priceless answer the usual if(clueless){'why do you even want to do that?'}s | 10:37 |
|
eugenmayer
| gitignore kind of works..but well, with limitations stated above | 10:37 |
|
kombi
| *given | 10:37 |
|
nru
| eugenmayer: yeah, I just wanted to read the intro text for myself | 10:38 |
|
eugenmayer
| kombi: he, i hate those kind of questions in general | 10:38 |
|
| nru: oh - sorry | 10:38 |
|
| ( i though you were referencing ) | 10:38 |
|
kombi
| eugenmayer: same here;) | 10:38 |
| → plainas joined | 10:38 |
|
plainas
| hey all | 10:38 |
|
eugenmayer
| Heyho | 10:39 |
| → angelsl joined | 10:39 |
|
plainas
| I've installed git on windows, I'm assuming it installs ssh too? | 10:39 |
| ← maletor left | 10:39 |
|
jast
| kombi: let me guess, you checked out a tag or a commit directly at some point? | 10:40 |
|
eugenmayer
| plainas: yes, and then replaces your OS with a proper OS. Sure | 10:40 |
|
kombi
| jast: yip... | 10:40 |
|
| jast: now I got (no branch) and master and would like to get rid of the former | 10:40 |
|
jast
| kombi: just checkout one of your branches. be aware that any commits you made on top of "no branch" will stop being referenced by anything if you do that. if you wanted to keep them, create a branch from the current state first. | 10:40 |
|
plainas
| where are my private keys? I need to transport them to other computer | 10:41 |
|
jast
| if you need to, you can merge or cherry-pick the commits to master | 10:41 |
|
EugeneKay
| plainas - msysgit includes a ssh-alike, but I recommend usage of plink in combination with the most-excellent Pageant and PuTTY | 10:41 |
|
jast
| plainas: ~/.ssh | 10:41 |
|
nru
| plainas: I recommend just installing Cygwin | 10:41 |
|
jast
| no idea what ~ is on msysgit, but "echo $HOME" in the git shell should tell you | 10:41 |
|
EugeneKay
| I replace msysgit's ssh.exe with plink.exe, and it 'just works' | 10:41 |
|
eugenmayer
| EugeneKay: well, it does not work as similar to what you want to use with former ssh git integrations like ssh aliases and all that | 10:41 |
|
nru
| so you don't have to bother about windows anymore | 10:41 |
|
jast
| eww | 10:42 |
|
| using cygwin git with windows apps is just wrong :} | 10:42 |
|
EugeneKay
| jast - ~ on Windows correpsonds to %userprofile%, which is c:\users\USER\ nowadays | 10:42 |
|
plainas
| this is more related to ssh than git, but how do I use more than one key on the same computer? | 10:42 |
|
EugeneKay
| cygwin is a crime and should be burned | 10:42 |
|
nru
| jast: why? | 10:42 |
|
jast
| EugeneKay: yeah well, ISTR that (for example) cygwin does it differently | 10:42 |
|
EugeneKay
| plainas - magic :-p | 10:42 |
|
| jast - yes, in many horrible and nasty ways | 10:42 |
|
eugenmayer
| EugeneKay: here you go..thats what i ment. | 10:42 |
|
MacGyverNL
| I see git for windows problems. | 10:42 |
|
jast
| nru: for one thing, cygwin git is built to assume that the native line ending is LF | 10:42 |
|
plainas
| eugenmayer: i can't? | 10:42 |
|
EugeneKay
| plainas - I actually dunno how to do multi-key with Pageant... I've never tried :v | 10:42 |
|
| I know theoretically how-to with OpenSSH, but never done it in practice | 10:43 |
|
MacGyverNL
| plainas: Git for windows uses its own ssh executable, the ssh keys are in your home folder (C:\Users\plainas) in the .ssh subfolder, same structure as on linux. | 10:43 |
|
nru
| (sorry for the off-topic) 11:42:28 <+EugeneKay> cygwin is a crime and should be burned <- any pointers to explainations about this statement? | 10:43 |
|
eugenmayer
| there is a way, it feels like "just hack here, hack there, cross fingers, pray, hack here, pray" might work for 5% | 10:43 |
|
plainas
| I actually want to do that on linux, this is not completely relation to my other question | 10:43 |
|
MacGyverNL
| plainas: If you use putty SSH keys, however, you will need to convert them first. | 10:43 |
|
eugenmayer
| nru: iam with you. For anything you really wont to do under winos, while rally needing *nix libs, you have to use cygwin | 10:44 |
|
plainas
| how do I use multiple keys on a linux system | 10:44 |
|
EugeneKay
| nru - the package manager is bad to terrible, the posix emulation sucks, it breaks lots of standard windows stuff, the git client fails hard for a lot of things(usually UTF-related) | 10:44 |
|
| I could go on, but I'm out of booze | 10:44 |
|
eugenmayer
| plainas: this is #git, nnot #ssh | 10:44 |
|
| plainas: your buz word would be "ssh-alias" anyhow | 10:45 |
|
EugeneKay
| plainas - in a (very tiny) nutshell, as regards git: http://superuser.com/questions/272465/using-multiple-ssh-public-keys | 10:45 |
|
| For more info, you really should `man ssh` | 10:45 |
|
kombi
| jast: thanks! Now I've got 'newBranch' and 'master'. When merging, how would I make sure 'newBranch' completely wins? | 10:46 |
| ← eugenmayer left | 10:46 |
| → eugenmayer joined | 10:46 |
|
EugeneKay
| kombi - man git-merge, look for "ours" | 10:46 |
|
gitinfo
| the git-merge manpage is available at http://jk.gs/git-merge.html | 10:46 |
| ← shruggar1 left | 10:46 |
|
kombi
| thx! | 10:46 |
| ← zraalb left | 10:46 |
|
eugenmayer
| guys, i want 1.5 git to be blacklisted! :) | 10:46 |
|
| it drives me crazy on debian5… git checkou —track *sighs* | 10:47 |
| → artib joined | 10:47 |
|
EugeneKay
| Something something "unstable" | 10:48 |
|
eugenmayer
| but on the other side, its outstanding how much work goes into git | 10:49 |
|
| it has developed to a "i can do anything" tool. It is used for so many things not being SCM related..like deployment, storage even backups..because its good in so many way. | 10:49 |
| ← fruight left | 10:49 |
| ← Skyx-mobile__ left | 10:50 |
|
EugeneKay
| git, at it's core, is a file history model. The porcelain VCS can be adapted to do deploy/backups, but it takes ork and is far from perfected | 10:51 |
| → Skyx-mobile__ joined | 10:51 |
| ← babilen left | 10:51 |
|
eugenmayer
| EugeneKay: well, i dont ment to replace Bacula with git, its just for specific tasks | 10:51 |
| → shruggar joined | 10:51 |
|
eugenmayer
| EugeneKay: people use it as a sftp / ftp replacement for customers to deploy code on dev-servers and all kind of things ( which works out pretty good and clever ) | 10:52 |
|
EugeneKay
| people also use crack coaine :-p | 10:52 |
|
eugenmayer
| it just scales, its so good with hooks. I really like one | 10:52 |
|
| EugeneKay: well, you have to go for "compromises" when you have "customers" | 10:52 |
|
| "FTP or git…lemme think" | 10:52 |
| ← gjer984 left | 10:52 |
| → berserkr joined | 10:53 |
|
EugeneKay
| Customers are evil and should be burned at the stake | 10:53 |
|
eugenmayer
| I guess, there is nothing to add. | 10:53 |
|
EugeneKay
| With their unrealistic "uptime" expectations and demands for "features" | 10:53 |
| → Chappo joined | 10:54 |
|
eugenmayer
| Deadline? Well…what about yesterday, OR if no other way, today…and excalation..tomorrow | 10:54 |
|
| "But you had 500k gazzilion of change requests".. "What are change requests..i cant remember" :) | 10:55 |
| ← Wombert left | 10:55 |
| ← forsto left | 10:56 |
| → lorian joined | 10:56 |
| ← legnaleurc left | 10:56 |
| → gjer984 joined | 10:58 |
| → flyz joined | 11:00 |
| ← kombi left | 11:00 |
|
pro_metedor
| Your branch is behind xxx by 1 commit, and can be fast-forwarded. | 11:01 |
|
| fast-forwarded to what ? | 11:01 |
| → dr_win joined | 11:02 |
|
shruggar
| pro_metedor: fast-forwarded to be exactly xxx | 11:02 |
|
| pro_metedor: it means "You based your branch on xxx. Since then, xxx has moved on. You can base your work on the current state of xxx without needing to merge, if you want" | 11:04 |
| ← Element9_work left | 11:04 |
|
pro_metedor
| so if I pull this, I will be up to date? | 11:05 |
|
shruggar
| you can pull with --ff-only | 11:05 |
|
pro_metedor
| what ff will do ? | 11:06 |
|
shruggar
| fast-forward. "fast forward" means "if I do a reset --keep to X, no commits will be left behind. So I'll do that instead of doing an actual merge" | 11:07 |
| → TTSDA joined | 11:08 |
|
shruggar
| --ff-only means "do a fast-forward if possible, otherwise do nothing" | 11:08 |
| ← zdk left | 11:08 |
| → fruight joined | 11:10 |
| → kombi joined | 11:12 |
| ← fruight left | 11:15 |
| ← artib left | 11:18 |
| → artib joined | 11:18 |
| ← amigojapan left | 11:20 |
| → isaak joined | 11:22 |
| ← eno left | 11:22 |
| ← jony left | 11:23 |
| → eno joined | 11:24 |
| → babilen joined | 11:24 |
| → hyperair joined | 11:25 |
| → cortana2 joined | 11:27 |
|
shruggar
| Is there a good way to programmatically determine whether a rebase was completed vs requiring more input? eg: my script says "git rebase master", afterwards I either want to continue with the next action, or drop into a shell to complete the rebase | 11:27 |
| → Xizor joined | 11:28 |
| ← OOPMan left | 11:28 |
|
cmn
| shruggar: if you look at how the bash __ps1 does it, you can figure out whether git is still in the middle of a rebase | 11:28 |
|
Mikachu
| doesn't the command return 1 if it aborts? | 11:29 |
| ← eno left | 11:30 |
| → eno joined | 11:30 |
|
eugenmayer
| is it possible to find out, which on which branch a tag was created? | 11:31 |
| → Element9_work joined | 11:31 |
| → Wombert joined | 11:31 |
| ← iocor left | 11:32 |
|
eugenmayer
| Iam in charge, this question is stupid, due git refs are refs on commits..but well, isnt it still a graph? and if a tag is not a ref a root of a branch, but rather a unmerged node (comparing to master), that tag "is on a specific branch", is it that waY? | 11:32 |
| ← thiago left | 11:32 |
| → akosikeno joined | 11:32 |
| ← i42n left | 11:33 |
|
shruggar
| eugenmayer: refs exist outside of the graph | 11:34 |
|
eugenmayer
| My case: iam using a make file to crreate a project, which basically consist out of several repos. While building, the tag-refs are used referenced in the make file..but later, when trying to go for changes, i need to somehow checkout the branch of that tag, which will be the most "possible" one…or..well i branch off | 11:34 |
| → cccaldas joined | 11:34 |
| ← artib left | 11:34 |
| → artib joined | 11:34 |
|
eugenmayer
| shruggar: they are pointers, i know | 11:34 |
|
cmn
| git branch --contains $(git rev-parse mytag) | 11:34 |
|
eugenmayer
| shruggar: but if we look at the graph as a directed timeline, a pointer is not a pointer to a "level of deepness", but rather one node, isnt it that way ? | 11:35 |
| ← Dreamer3__ left | 11:35 |
|
cmn
| a tag points a commit, it doesn't say which branch it's contained in because that changes with time | 11:35 |
|
eugenmayer
| cmn ➜ drupalwiki_user git branch --contains $(git rev-parse 6.x-5.0-beta3) | 11:36 |
|
| * (no branch) | 11:36 |
|
| not working | 11:36 |
|
cmn
| is it a lightweight tag? | 11:36 |
|
eugenmayer
| cmn yes, thats clear. What you suggested is what iam looking for | 11:36 |
|
| its clear its not part of the "tag meta informations" | 11:37 |
|
| cmn, never heard that term | 11:37 |
|
cmn
| git show $tag, what does it say? | 11:37 |
|
eugenmayer
| git show-ref | grep 6.x-5.0-beta3 | 11:37 |
|
| fe457cdb804c636f0590a220a1051a57d030e6d0 refs/tags/6.x-5.0-beta3 | 11:37 |
|
cmn
| that's not what I said | 11:38 |
|
eugenmayer
| cmn it shows me a diff | 11:38 |
|
cmn
| does it just show the commit or does it include some text inside the tag? | 11:38 |
| ← dnjaramba left | 11:38 |
|
cmn
| a lightweight tag is a ref to a commit that lives in refs/tags | 11:39 |
| → simenbrekken joined | 11:39 |
|
eugenmayer
| cmn sorry, cant follow. Will not be able to pastebin you all the output. Do you need something of the n10 lines? | 11:39 |
|
cmn
| a real tag is a tag object | 11:39 |
|
| cat-file -t fe457cdb804c636f0590a220a1051a57d030e6d0 | 11:39 |
|
| what's that say? | 11:39 |
|
simenbrekken
| Hello, my 'git branch -r' shows origin/HEAD -> origin/refactor which doesn't exist, how do I change what origin/HEAD points to? | 11:39 |
| ← kombi left | 11:39 |
| ← ChaoWang left | 11:40 |
|
eugenmayer
| cmn: http://pastie.org/3347553 ..after that, the diff follows | 11:40 |
|
cmn
| then it's a lightweight tag | 11:40 |
| → g105b joined | 11:40 |
|
cmn
| so that command should have worked | 11:40 |
|
eugenmayer
| cmn: never heard of | 11:40 |
|
| hm | 11:40 |
|
cmn
| man git tag surely tells you about them | 11:41 |
|
gitinfo
| the git-tag manpage is available at http://jk.gs/git-tag.html | 11:41 |
|
eugenmayer
| git version 1.7.4.4 | 11:41 |
| ← g105b left | 11:41 |
|
cmn
| I've never seen branch --contains return anything like * (no branch) | 11:41 |
|
cbreak-work
| detached HEAD? :) | 11:41 |
|
cmn
| yeah | 11:42 |
| ← tcurdt left | 11:42 |
| → tcurdt_ joined | 11:42 |
| → dnjaramba joined | 11:42 |
|
cmn
| that's what I thought | 11:42 |
|
| but the star makes no sense | 11:42 |
|
eugenmayer
| cmn: sell sure it is detached | 11:42 |
|
EugeneKay
| The Legend of Sleepy Hollow strikes again | 11:42 |
|
eugenmayer
| git branch --contains fe457cdb804c636f0590a220a1051a57d030e6d0 | 11:42 |
|
| * (no branch) | 11:42 |
|
| (just tried it with ths SHA directly) | 11:42 |
|
cmn
| so that commit isn't in a branch | 11:42 |
|
eugenmayer
| it is :) | 11:43 |
|
cmn
| not one that branch sees | 11:43 |
|
| add -a | 11:43 |
| ← csherin left | 11:43 |
|
eugenmayer
| -- | 11:43 |
|
| git show-ref | grep fe457cdb804c636f0590a220a1051a57d030e6d0 | 11:43 |
|
| fe457cdb804c636f0590a220a1051a57d030e6d0 refs/remotes/origin/spaces | 11:43 |
|
| fe457cdb804c636f0590a220a1051a57d030e6d0 refs/tags/6.x-5.0-beta3 | 11:43 |
|
cmn
| neither of those are local tags | 11:43 |
|
eugenmayer
| ok, i see, origin.. | 11:43 |
|
cmn
| yes | 11:43 |
|
| hence my "add -a" | 11:44 |
|
eugenmayer
| i see | 11:44 |
|
| ok, so i might go the —mirror trick again, to get all refs | 11:45 |
|
cmn
| or use -a | 11:45 |
|
| and detect whether it's a remote-tracking banch and hack off the beginning of the name, which you're going to do anyway | 11:45 |
|
eugenmayer
| (git clone —mirror path/.git && cd path && git config core.bare false && git checkout TAG) | 11:45 |
| ← dnjaramba left | 11:46 |
| ← tcurdt_ left | 11:46 |
| → tcurdt joined | 11:46 |
|
eugenmayer
| its the only way i know to "fetch all refs" | 11:46 |
|
cmn
| checking out a tag isn't going to help | 11:46 |
| → rendar_ joined | 11:46 |
|
cmn
| fetch && fetch --tags fetches all you need | 11:46 |
|
eugenmayer
| cmn: yes, at lest they will be local then ( i get our -a idea, its working ..but to have them local ) | 11:46 |
|
cmn
| then do a checkout | 11:46 |
| ← twisted` left | 11:46 |
|
cmn
| why do they need to be local? | 11:47 |
| → twisted` joined | 11:47 |
| ← rendar left | 11:47 |
|
eugenmayer
| cmn: to simplify scrits ( the only reason) | 11:47 |
|
cmn
| that's not a need | 11:47 |
| → dnjaramba joined | 11:47 |
|
eugenmayer
| hot to get the "current" sha of the repo? ( current rev ) to be used with —contains? | 11:48 |
|
cmn
| define "current sha of the repo" | 11:48 |
|
eugenmayer
| ah. simple | 11:48 |
|
| git branch -a --contains | 11:48 |
|
| does the same for "the current commit of your wc" | 11:48 |
|
| cmn: iam sure my terminology can confuse you - iam not mastering git to well yet, sorry | 11:49 |
|
cmn
| wc doesn't exist in git; were you asking to see which branch contains the current HEAD? | 11:49 |
| → csherin joined | 11:49 |
|
eugenmayer
| cmn: yes, sorry. Exactly | 11:49 |
|
| cmn: or no, your question was the answer to my question above. I just simplified the case to the real example then, were the tag is already HEAD and i know want to change head to the branche of the "tag" | 11:50 |
|
| cmn: so it is all my bad | 11:50 |
|
| (tob be expected :) ) | 11:50 |
| → brian_g joined | 11:50 |
|
eugenmayer
| _thank you_ | 11:51 |
| ← no1home left | 11:51 |
|
sameer_
| :) | 11:51 |
| → canton7 joined | 11:52 |
| dwmw2_gone → dwmw2 | 11:52 |
| ← dnjaramba left | 11:52 |
| → krz joined | 11:53 |
| ← plainas left | 11:53 |
| ← eno left | 11:54 |
| → eno joined | 11:55 |
| ← dr_lepper left | 11:56 |
| ← Wombert left | 11:56 |
| → zavierlo joined | 11:57 |
| ← pro_metedor left | 11:58 |
| → Dave^|| joined | 11:59 |
| ← zavierlo left | 11:59 |
| → fruight joined | 12:03 |
| ← Dave^| left | 12:03 |
| ← psakrii left | 12:03 |
| ← eno left | 12:05 |
| → eno joined | 12:07 |
| → ph^ joined | 12:07 |
| → legnaleurc joined | 12:08 |
| ← artib left | 12:10 |
| → fayimora joined | 12:10 |
| → alberto56 joined | 12:16 |
| → johnkpaul joined | 12:16 |
| → legnaleurc_ joined | 12:16 |
| ← legnaleurc left | 12:17 |
| → robertstuttaford joined | 12:19 |
| ← eno left | 12:20 |
|
robertstuttaford
| context: so i'm using jenkins-ci and github. two jenkins jobs, staging and production. staging uses branch develop, production uses branch master. however, github pings both jobs when pushes are received to either branch. | 12:20 |
|
| question: i want to know if i can tell _after_ the git fetch that jenkins does whether any actual changes came down | 12:20 |
| ← legnaleurc_ left | 12:20 |
|
robertstuttaford
| if so, how? i can use this info to make the deploy script stop working if there werent any changes. | 12:21 |
| ← johnkpaul left | 12:21 |
| → eno joined | 12:21 |
|
cmn
| jenkins should already be noticing that | 12:21 |
| → oriba joined | 12:21 |
|
robertstuttaford
| it does show 0 changes, yes. but i don't know how to give that information to my deployment script | 12:21 |
|
cmn
| don't call your deployment script if there aren't any changes | 12:22 |
|
robertstuttaford
| i'd love to know how to do that | 12:22 |
| ← harshpb left | 12:23 |
| ← heptadecagram left | 12:23 |
| ← juvenal left | 12:23 |
|
cmn
| it's avoiding doing something... just don't do it | 12:23 |
|
robertstuttaford
| i don't know how to configure the jenkins job to not call my deploy script when no changes are found | 12:24 |
|
cmn
| then you probably want to ask in a jenkins forum | 12:24 |
| ← Gitzilla left | 12:24 |
| ← netzapper left | 12:24 |
|
robertstuttaford
| i'll ask in the right channel | 12:24 |
|
| purely for interest, is there a way to detect this with git? | 12:24 |
| → Chib joined | 12:25 |
| → legnaleurc joined | 12:25 |
|
cmn
| kinda | 12:26 |
|
| you can store the old value somewhere and then compare against the new value | 12:26 |
|
robertstuttaford
| 'value' being the commit hash for HEAD? | 12:27 |
|
cmn
| for whatever branch you're interested in | 12:28 |
|
| it's probably HEAD | 12:28 |
|
robertstuttaford
| gotcha | 12:28 |
| → linusoleander joined | 12:30 |
| ← Vortex34 left | 12:30 |
| → Fandekasp joined | 12:30 |
| ← s_segawa left | 12:31 |
| ← xiangfu left | 12:33 |
| ← eno left | 12:34 |
| ← break57382 left | 12:34 |
| → digitalfiz joined | 12:35 |
| → hotsyk joined | 12:36 |
| → eno joined | 12:36 |
| ← legnaleurc left | 12:36 |
| → aristidesfl joined | 12:36 |
| → Gitzilla joined | 12:36 |
| ← dougsland left | 12:37 |
| ← Skyx-mobile__ left | 12:37 |
| ← T_X left | 12:38 |
| ← robertstuttaford left | 12:39 |
| → xiangfu joined | 12:39 |
| ← arvind_khadri left | 12:39 |
|
magn0z_
| can i display all local branches that has not yet been merged to my current branch (master)? | 12:39 |
| ← ajaykools left | 12:40 |
| → legnaleurc joined | 12:40 |
| ← papegaaij left | 12:41 |
| → DarkAR joined | 12:41 |
| ← jaisoares left | 12:42 |
| → tiglog joined | 12:42 |
| → dcarper joined | 12:42 |
| → Vortex34 joined | 12:43 |
| ← ehsan left | 12:44 |
| → i42n joined | 12:44 |
| → codewrangler joined | 12:44 |
| → silv3r_m00n joined | 12:45 |
|
silv3r_m00n
| I did a git add . & git commit -am "done" , is it wrong to do like that ? 2 commands at the same time | 12:45 |
| → T_X joined | 12:45 |
| ← T_X left | 12:45 |
| → T_X joined | 12:45 |
| → leavittx joined | 12:46 |
| ← stringoO left | 12:47 |
| → antgel_ joined | 12:47 |
| ← jamesaxl left | 12:47 |
| → jamesaxl joined | 12:47 |
| ← eno left | 12:48 |
| ← silv3r_m00n left | 12:49 |
|
cbreak-work
| silv3r_m00n: don't. | 12:49 |
|
| that looks like it could provoke race conditions | 12:49 |
| gitinfo set mode: +v | 12:49 |
|
antgel_
| hi all. i've set up a git server on a past project, i used gitolite (or gitosis, can't remember), and it worked great. on my new project, most developers use windows, and there are no linux servers available. the easiest network resource for me to get hold of is a windows share. is there any way to set up a shared git repository with such limited access? | 12:50 |
| gitinfo set mode: +v | 12:50 |
| → eno joined | 12:50 |
|
antgel_
| i don't even have ability to set up a web server on the network | 12:50 |
|
FauxFaux
| antgel_: You can push and pull to a windows share, yes, but I'm not sure you can implement security in any sane way in that kind of environment. | 12:50 |
| ← teweWORK left | 12:50 |
| → teweWORK joined | 12:51 |
|
antgel_
| FauxFaux: so i'd have problems with access control etc? | 12:51 |
|
FauxFaux
| Yes. | 12:51 |
|
cbreak-work
| antgel_: using a git repository on a windows share is asking for trouble | 12:51 |
|
antgel_
| FauxFaux: okay, thanks. makes sense. having said that, we *can* enable and disable shared folder permissions. so i could put \\someserver\ourgroup\git under permissions whereby only our group could access it, at a windows network level | 12:52 |
|
| cbreak-work: so i see :( | 12:52 |
|
cbreak-work
| you can just run a unix in a vm or so | 12:52 |
| → qwertz_ joined | 12:52 |
|
antgel_
| this is awful. someone else is recommending that we use perforce | 12:52 |
| → erichynds joined | 12:52 |
|
cbreak-work
| why? | 12:52 |
|
| does it offer security on windows shares? :) | 12:53 |
| → shiba_yu36 joined | 12:53 |
|
antgel_
| cbreak-work: because he's used it before, it's "user-friendly" and he doesn't get it that version control can be metadata on his existing filesystem rather than some monolithic blob | 12:53 |
| → dougsland joined | 12:53 |
| ← dougsland left | 12:53 |
| → dougsland joined | 12:53 |
| → bitkiller joined | 12:54 |
|
FauxFaux
| antgel_: Theoretically it's possible to start cygwin ssh server and have things run under that, but it's really terrible and you'd probably rather gouge your eyes out (although I wouldn't go as far as using perforce); if that's an option? | 12:54 |
| ← dwmw2 left | 12:56 |
|
antgel_
| i don't have any machines that i have access to that i can run as a server. i'm in a pretty locked-down massive windows-centric LAN environment | 12:56 |
|
| i might see if i can get a machine here and just install linux on it | 12:57 |
|
cbreak-work
| antgel_: perforce doesn't need a server? | 12:57 |
|
antgel_
| cbreak-work: provided by corporate IT dept *bangs head against wall* | 12:57 |
| → Dreamer3 joined | 12:57 |
|
cbreak-work
| and they can't provide a git server? Or a unix vm? | 12:57 |
|
antgel_
| and my colleague thinks it's a *good thing* that they can "support" it | 12:57 |
|
cbreak-work
| well, it is a good thing | 12:57 |
|
| but if the thing they support is terrible then their support might not be the thing to worry about | 12:58 |
|
jast
| note to self for future reference: making beef stock is quite a bit of work | 12:58 |
| → wbednarski joined | 12:58 |
|
shruggar
| can't you get a server these days for $50 that fits inside an RJ45 connector? | 12:58 |
|
FauxFaux
| I must say, our corporate-IT hosted SVN server is suprisingly good. That is, it's generally up, which is a miracle as far as I'm concerned. Certainly more often than the issue tracker or wiki are up. | 12:58 |
|
antgel_
| cbreak-work: what if their support is terrible and the thing they support is terrible? ;) | 12:58 |
|
| i'm just kidding of course | 12:59 |
| → dwmw2_gone joined | 12:59 |
|
MacGyverNL
| Whenever somebody mentions perforce I'm reminded of Torvalds' talk at google. | 12:59 |
|
| "so you use... what dó you use here? Perforce? Perforce. I'm.... sorry." | 13:00 |
|
| I can't help it, I'm forever spoiled. | 13:00 |
|
antgel_
| i emailed the team with a great summary of why to use git and my team member ignored everything and said why not use perforce? | 13:00 |
| ← eno left | 13:00 |
|
shruggar
| one of the great things about git is that you can use it without a server | 13:01 |
|
| ;) | 13:01 |
| → rchavik joined | 13:01 |
| ← rchavik left | 13:01 |
| → rchavik joined | 13:01 |
| → eno joined | 13:02 |
| → dr_lepper joined | 13:03 |
| → sattu94 joined | 13:04 |
| → Targen joined | 13:04 |
| → _Qman joined | 13:04 |
| → tvw joined | 13:05 |
| ← dr_win left | 13:05 |
| ← dermoth|home left | 13:06 |
| → jonesy joined | 13:07 |
| ← _Qman left | 13:10 |
| ← Dreamer3 left | 13:13 |
| → johnkpaul joined | 13:13 |
| ← cabaire left | 13:13 |
| ← eno left | 13:13 |
| ← dwmw2_gone left | 13:14 |
| → eno joined | 13:15 |
| → fedesilva joined | 13:17 |
| → juvenal joined | 13:17 |
| ← ASIRINeiluj left | 13:17 |
| → dwmw2_gone joined | 13:18 |
| ← eugenmayer left | 13:19 |
| ← luxurymode left | 13:19 |
| → dermoth|home joined | 13:20 |
| ← Fudge left | 13:20 |
| → cabaire joined | 13:20 |
| → linkedinyou joined | 13:20 |
| ← berserkr left | 13:20 |
| ← eno left | 13:23 |
| → gchristensen joined | 13:23 |
| → alexgordon joined | 13:23 |
| → eno joined | 13:24 |
| → iamjarvo joined | 13:24 |
| ← johnkpaul left | 13:25 |
| ← nixmaniack left | 13:27 |
| → MrKeuner joined | 13:27 |
|
MrKeuner
| hello, any hints as to how to detect different branch commits in order to run checkouts on different GIT_WORK_TREEs? | 13:28 |
|
FauxFaux
| For what purpose? | 13:28 |
|
MrKeuner
| if branch dev is committed I'd like to checkout -f to mu dev.domain.name folder | 13:29 |
|
| if prod branch is committed checkout -f to domain.name folder | 13:29 |
| ← isaak left | 13:30 |
|
FauxFaux
| So, by "committed", you mean "pushed"? And you're doing this from a post-recieve or update hook? | 13:30 |
|
MrKeuner
| sorry, yes pushed | 13:30 |
|
FauxFaux
| As in, you're using git as a deployment tool. | 13:30 |
|
MrKeuner
| yes | 13:30 |
|
| FauxFaux edges away. | 13:30 |
|
MrKeuner
| :) | 13:30 |
|
| what's wrong with it? | 13:31 |
| ← variable left | 13:31 |
| ← D-Chymera left | 13:31 |
| ← eno left | 13:32 |
| ← gchristensen left | 13:33 |
| → eno joined | 13:34 |
| → masterkorp joined | 13:37 |
|
masterkorp
| hello, is it possible to ignore a spefific line of a file ? | 13:37 |
|
FauxFaux
| Nope. | 13:37 |
| ← DarkAR left | 13:38 |
| → arvind_khadri joined | 13:39 |
| ← arvind_khadri left | 13:39 |
| → arvind_khadri joined | 13:39 |
|
shruggar
| is there a !config command for the bot? or !localconfig or something? | 13:39 |
|
gitinfo
| [!configfiles] the recommended way is to change your application so that you can (perhaps optionally) store site-specific configuration/data in separate files, then keep those files out of version control. Still, see https://gist.github.com/1423106 for ways people have worked around the problem. | 13:39 |
|
masterkorp
| FauxFaux: oh:( | 13:40 |
| ← alexgordon left | 13:40 |
| ← masterkorp left | 13:40 |
|
shruggar
| masterkorp: the above line about config-files was for you | 13:40 |
| ← fayimora left | 13:40 |
| ← eno left | 13:41 |
| → fayimora joined | 13:41 |
|
MrKeuner
| FauxFaux, I just wonder why you edged away | 13:41 |
|
shruggar
| MrKeuner: it's a common discussion around here, and got somewhat rambly yesterday :) | 13:42 |
| → eno joined | 13:43 |
|
MrKeuner
| :) | 13:43 |
|
| anyone from the other side of the ramble around? :) | 13:43 |
| ← EricInBNE left | 13:43 |
| → variable joined | 13:44 |
| → armin_ joined | 13:44 |
| → JC_Yang joined | 13:44 |
| → thiago joined | 13:44 |
|
shruggar
| MrKeuner: "pushing to deploy" is a commonly-misunderstood concept used by those new to git. "using git as a deployment tool" is generally discouraged, though using git as part of a larger deployment solution is generally encouraged. There are differences of opinion about what constitutes a solution which is "good enough" | 13:44 |
| ← arvind_khadri left | 13:44 |
|
MrKeuner
| shruggar, could you suggest a larger deployment tool using git for versioning part? | 13:45 |
| → tcurdt_ joined | 13:46 |
|
JC_Yang
| hi, all. Is there anyone know why git-scm.com sometimes will put old version on the homepage? I've seen this twice. Now 1.7.6.6 is on it. I can't remember which version it was the first time I saw this situation. | 13:47 |
| ← tcurdt left | 13:48 |
| tcurdt_ → tcurdt | 13:48 |
|
shruggar
| MrKeuner: I find them all unsatisfactory, and my own implementation isn't generic enough to share (and I'm too lazy to make it so) | 13:48 |
| ← jacekmigacz left | 13:49 |
|
nru
| JC_Yang: I guess they put the most recent release | 13:50 |
| ← demet8 left | 13:50 |
| → wbednars_ joined | 13:50 |
|
nru
| and not the last release in the last release branch | 13:50 |
| ← bolt left | 13:50 |
|
MrKeuner
| shruggar, is deficiency of using git as a deployment tool related to projects with DB portion as well as files? I was also thinking there must some other way to handle that kind of situation | 13:50 |
| → neurodrone joined | 13:50 |
| → guampa joined | 13:51 |
|
sitaram
| cbreak-work: what sort of trouble is running a git repo on a windows share? | 13:51 |
| → revagomes joined | 13:51 |
| ← eno left | 13:52 |
| → cburroughs joined | 13:52 |
| → vandal- joined | 13:52 |
| ← wbednarski left | 13:52 |
| ← GameGamer43 left | 13:52 |
| → GameGamer43 joined | 13:52 |
| → bolt joined | 13:52 |
|
shruggar
| MrKeuner: that's part of it, yes | 13:53 |
| → gchristensen joined | 13:53 |
| → eno joined | 13:54 |
|
shruggar
| MrKeuner: git also doesn't track permissions or directories. And releasing with pure git is not atomic (people can be running a "partially updated" site) | 13:54 |
| ← Targen left | 13:54 |
| ← bartman left | 13:54 |
| → ephelion joined | 13:55 |
| → capncodewash joined | 13:56 |
|
JC_Yang
| nru: Thanks. That might make sense. But IMHO they should have some clear statements about the different branches, or that would be misleading. For me, personally, will consider that there might be serious regression in the latest release so they rollback. The site is not enough informative at this point. | 13:57 |
| → arvind_khadri joined | 13:57 |
| ← digitalfiz left | 13:57 |
| ← guampa left | 13:57 |
| → dnjaramba joined | 13:58 |
|
nru
| JC_Yang: I also think that should be changed; but it appears to be the current behaviour. | 13:58 |
|
MrKeuner
| shruggar, any solution that comes closest to a proper deployment? | 13:58 |
| ← Milossh left | 13:59 |
| ← ipalaus left | 14:00 |
| → bartman joined | 14:00 |
| → dorisabayon joined | 14:01 |
| ← eno left | 14:01 |
|
sitaram
| jast: can your bot listen on #gitolite also and allow us the same (or different, I dont mind which) set of triggers? | 14:01 |
| → Fudge joined | 14:01 |
| → lyddonb joined | 14:01 |
|
mpenz
| sitaram: just replied to your emails | 14:02 |
| → digitalfiz joined | 14:02 |
| → AaronMT joined | 14:02 |
| → eno joined | 14:02 |
|
sitaram
| mpenz: ok thanks! | 14:02 |
|
| will check | 14:02 |
|
mpenz
| sure no prob, btw congrats | 14:03 |
| ← GodEater_ left | 14:03 |
| ← linusoleander left | 14:03 |
| knitt1 → knittl | 14:04 |
| ← Fandekasp left | 14:05 |
| ← hotsyk left | 14:05 |
| → GodEater joined | 14:05 |
| ← GodEater left | 14:05 |
| → GodEater joined | 14:05 |
| → crisp joined | 14:05 |
|
jepler
| hm. Should I expect this to print the commandline shown to invoke the mergetool (it doesn't with 1.7.8.3)? GIT_TRACE=2 git mergetool | 14:05 |
| → ephelion_ joined | 14:06 |
| ← ephelion left | 14:06 |
| ephelion_ → ephelion | 14:06 |
| ← ephelion left | 14:06 |
| tizzo → tizzo-afk | 14:08 |
| ← oriba left | 14:08 |
| ← ph^ left | 14:10 |
| ← eno left | 14:11 |
| → ph^ joined | 14:11 |
| ← teknoid left | 14:11 |
| → heptadecagram joined | 14:12 |
|
Kingsy
| how come when I type git clone git://github.com/paulboone/ticgit.git it just says Initialized empty Git repository in /home/chris/website.git/ticgit/.git/ and waits forever? I am trying to follow that book is all | 14:12 |
| → tcurdt_ joined | 14:12 |
| → eno joined | 14:12 |
| ← dnjaramba left | 14:13 |
| → dnjaramba joined | 14:14 |
| → intripoon joined | 14:14 |
| ← dorisabayon left | 14:14 |
| ← tcurdt left | 14:14 |
|
cmn
| have you tried other hosts? | 14:15 |
|
| github is having connectivity issues atm | 14:15 |
| ← marthinal left | 14:17 |
| ← tcurdt_ left | 14:17 |
|
jast
| sitaram: sorry, the code currently assumes one channel only. but you can download the source and run one yourself. :} | 14:17 |
| → tcurdt joined | 14:17 |
|
Kingsy
| cmn: ah ok | 14:18 |
| ← joshsmith left | 14:18 |
| → ceej joined | 14:18 |
| tizzo-afk → tizzo | 14:18 |
|
sitaram
| jast: thanks. It's not that bad yet so I will take a rain check on that :) | 14:18 |
| ← stic02 left | 14:19 |
| → stic02 joined | 14:19 |
| → stuntmachine joined | 14:20 |
| ← Lgb left | 14:20 |
| ← eno left | 14:20 |
| ← satyanash left | 14:21 |
| → Fandekasp joined | 14:21 |
| → eno joined | 14:21 |
| → satyanash joined | 14:21 |
| → josesaldana joined | 14:22 |
|
MrKeuner
| shruggar, I'll have to give git as deployment tool. For a beginner in git, would it be easier to handle two separate repos dev and prod; or two branches in one repo that will checkout to dev if dev branch and prod if prod branch is pushed | 14:22 |
| ← fedesilva left | 14:22 |
|
MrKeuner
| give git a chance | 14:22 |
| ← juvenal left | 14:22 |
| gitinfo set mode: +v | 14:23 |
| tizzo → tizzo-afk | 14:23 |
| → Lgb joined | 14:23 |
|
josesaldana
| Is there a way to do git sash pop stash@{2} for an specific file? | 14:23 |
|
| stash* | 14:23 |
|
yrlnry
| You can git show stash@{2}:path | 14:24 |
|
| or git checkout stash@{2} -- path | 14:24 |
| ← i42n left | 14:24 |
|
yrlnry
| I'm, not sure what "pop" would mean. | 14:24 |
| → boombatower joined | 14:24 |
| ← armin_ left | 14:25 |
| → guampa joined | 14:25 |
| → Wombert joined | 14:26 |
|
PerlJam
| I'm pretty sure you can't pop a partial stash. | 14:26 |
| → juvenal joined | 14:26 |
| ← frogonwheels left | 14:27 |
| ← xiangfu left | 14:27 |
| ← matthiaskrgr left | 14:28 |
| ← eno left | 14:28 |
|
jast
| that doesn't even make sense | 14:28 |
| → herdingcat joined | 14:28 |
| → dv310p3r joined | 14:28 |
| → dr-evil joined | 14:29 |
| → OOPMan joined | 14:29 |
| ← stuntmachine left | 14:29 |
| → eno joined | 14:29 |
| → flojistik joined | 14:29 |
| → totte_ joined | 14:29 |
| → FauxFaux_ joined | 14:30 |
| → Ferris_ joined | 14:30 |
| ← pdobrogost left | 14:30 |
| ← milk left | 14:30 |
| ← FauxFaux left | 14:30 |
| ← blueyed left | 14:30 |
| ← koivula left | 14:30 |
| ← cmn left | 14:30 |
| ← Pieter left | 14:30 |
| ← mjt left | 14:30 |
| ← totte left | 14:30 |
| ← nru left | 14:30 |
| ← CEnnis91 left | 14:30 |
| ← Ferris left | 14:30 |
| → CEnnis91 joined | 14:30 |
| ← vdv left | 14:30 |
| → koivula joined | 14:30 |
| → Pieter joined | 14:30 |
| → matthiaskrgr joined | 14:30 |
| gitinfo set mode: +v | 14:30 |
| → mjt joined | 14:30 |
| → cakehero joined | 14:30 |
| → astrostl joined | 14:30 |
| → blueyed joined | 14:30 |
|
dr-evil
| Hello all. I have a trouble with gitweb :( It doesn't show me 1 repo. I've checked a lot of stuff, but found no error. I don't know perl :( | 14:31 |
| → milk joined | 14:31 |
| ← mishok13 left | 14:31 |
| → cmn joined | 14:32 |
| ← cakehero left | 14:32 |
| FauxFaux_ → FauxFaux | 14:32 |
| → iocor joined | 14:33 |
|
cmn
| you can probably apply part of a stash | 14:33 |
|
| and then drop the rest | 14:34 |
| → ipalaus joined | 14:34 |
|
dr-evil
| cmn: hm? | 14:34 |
| → ISF joined | 14:34 |
|
cmn
| what part? | 14:34 |
| → jacekmigacz joined | 14:35 |
|
yrlnry
| I guess you could apply it, then use git chcekout -p or somehing to get rid of parts you didn't want.. | 14:35 |
| → mishok13 joined | 14:35 |
| → v0n joined | 14:36 |
|
cmn
| yeah, I thought stash let you do that itself | 14:36 |
| ← freimatz left | 14:36 |
|
cmn
| you have to checkout -p | 14:36 |
| → BorX joined | 14:36 |
| → stuntmachine joined | 14:36 |
| → bartek joined | 14:36 |
| ← eno left | 14:37 |
| ← sattu94 left | 14:37 |
| ← arvind_khadri left | 14:38 |
| ChanServ set mode: +v | 14:38 |
|
jast
| ahh. much better. | 14:38 |
| → eno joined | 14:38 |
| → TeckniX joined | 14:39 |
| → t4nkd joined | 14:40 |
|
MrKeuner
| I'll have to give git a chance as deployment tool. For a beginner in git, would it be easier to handle two separate repos dev and prod; or two branches in one repo that will checkout to dev if dev branch and prod if prod branch is pushed? | 14:40 |
|
cmn
| git is not a deployment tool | 14:40 |
| ← fayimora left | 14:41 |
|
shruggar
| MrKeuner: what you just said makes no sense at all. Are you saying that "dev" and "prod" are on the same machine?? | 14:41 |
|
MrKeuner
| shruggar, yes | 14:42 |
|
shruggar
| in that case, may I ask: wtf? | 14:42 |
|
MrKeuner
| name.com and dev.name.com | 14:42 |
|
shruggar
| same machine, same directory? | 14:42 |
| ← flojistik left | 14:43 |
|
MrKeuner
| shruggar, same machine different directories | 14:43 |
|
cmn
| MrKeuner: you're thinking of branches in a way that doesn't correspond to git | 14:43 |
|
| branches exist in repositories | 14:43 |
|
| what you might want to do is deploy the dev and prod branches to different directories in the machine | 14:43 |
|
| but that's the job of your deployment system | 14:44 |
|
shruggar
| how's this for something simple: You're new to git, so don't use it as a deployment tool until you're not new to git | 14:44 |
|
MrKeuner
| http://toroid.org/ams/git-website-howto I read this | 14:44 |
|
| I'd like to implement it with multiple branches and multiple target directories | 14:44 |
| → chrisgeorge joined | 14:45 |
|
cmn
| then you need something much more complicated that that | 14:46 |
|
| those scripts are for an extremely simple system | 14:46 |
| ← mfischer left | 14:46 |
|
cmn
| it doesn't deal with many things | 14:46 |
| → linusoleander joined | 14:46 |
| ← LekeFly left | 14:46 |
| ← GrowLinux left | 14:46 |
| ← kevlarman left | 14:46 |
| ← disappearedng left | 14:46 |
| ← linusoleander left | 14:46 |
| ← cabaire left | 14:46 |
| → LekeFly joined | 14:47 |
| ← mpenz left | 14:47 |
|
MrKeuner
| or wold it be easier to have two separate repositories dev and live and I will have two remotes on my local machine copy. and push to dev when needed and push to live when ready | 14:47 |
| fir31igh1 → fire31ight | 14:47 |
| ← troyt left | 14:47 |
|
cmn
| that deals with one issue | 14:47 |
| → dr_win joined | 14:48 |
|
cmn
| there are still issues that those scripts don't deal with | 14:48 |
| → chrisdev joined | 14:48 |
|
MrKeuner
| I searched for web deployment tools with no chance. I see there is capistrano but it looks like it is primarily for RoR | 14:49 |
|
cmn
| !website | 14:49 |
|
gitinfo
| Git is not a website deployment tool, but can sometimes play one in sufficiently simple/lax environments with a little help. One example of help is: http://toroid.org/ams/git-website-howto and another approach: https://gist.github.com/1714235 | 14:49 |
| ← thiago left | 14:49 |
|
PerlJam
| MrKeuner: capistrano is general. it works as long as you're comfortable with Ruby | 14:49 |
|
Kingsy
| when you are pushing to a server using ssh say ssh://user@domain.com:port/address/to/git/ does that mean that it will be executing all commands as "user" so as long as the dir is writable to "user" your ok ? | 14:49 |
|
cmn
| look at the second link | 14:49 |
|
| Kingsy: you're mostly ok | 14:49 |
|
| it depends what you're doing afterward | 14:50 |
| → derekpa joined | 14:50 |
| ← tiglog left | 14:50 |
| → mpenz joined | 14:50 |
| → kevlarman joined | 14:50 |
| → GrowLinux joined | 14:50 |
| → dvaske joined | 14:50 |
|
Kingsy
| cmn: hmm my push is getting an error.. remote: error: refusing to update checked out branch: refs/heads/master :S | 14:50 |
|
| cmn: I am just following that book see | 14:50 |
|
cmn
| I doubt that | 14:50 |
| → arvind_khadri joined | 14:50 |
| ← arvind_khadri left | 14:50 |
| → arvind_khadri joined | 14:50 |
|
Kingsy
| cmn: well I am following the book with my own example :) | 14:51 |
|
cmn
| and you forgot to initialise the repo as bare | 14:51 |
| → grekko joined | 14:51 |
|
Kingsy
| cmn: you cant push to a normal repo? | 14:51 |
| → nru joined | 14:51 |
|
cmn
| read the error message | 14:51 |
|
Kingsy
| its refusing to update a branch that has been checked out | 14:52 |
|
cmn
| the issue is that you're trying to move the active branch | 14:52 |
| ← eno left | 14:52 |
|
cmn
| yes | 14:52 |
| → hotsyk joined | 14:52 |
| ← Womkes left | 14:52 |
|
cmn
| because you're trying to move the worktree's base from under it | 14:52 |
| ← rurufufuss left | 14:52 |
|
cmn
| and git isn't letting you | 14:52 |
|
Kingsy
| cmn: yeah that make sense.. just for learning its helpful to have a git repo on my server and local machine that I can checkout (i.e it has a work tree) | 14:53 |
| ← gchristensen left | 14:53 |
| → eno joined | 14:53 |
| → Womkes joined | 14:53 |
|
cmn
| that sentence has too many possible meanings | 14:54 |
|
| it's rarely helpful to have a worktree on the server | 14:54 |
|
canton7
| Kingsy, have a bare repo on the server that you push to, then create a clone of that on your server, if you want to have a work tree on the server | 14:54 |
| → lacrymology joined | 14:54 |
|
Kingsy
| np, will do thanks | 14:54 |
|
cmn
| or even better don't have a worktree on the server, because that's going to cause confusion | 14:55 |
| → john2496 joined | 14:56 |
| → kennethr_ joined | 14:56 |
| ← kennethr_ left | 14:56 |
| → hotsyk_ joined | 14:56 |
| → cakehero joined | 14:57 |
| → Fangorn_ joined | 14:57 |
| ← kennethreitz left | 14:58 |
| ← iocor left | 14:58 |
| ← ipalaus left | 14:58 |
| → n8o-mba joined | 14:58 |
| ← kaste left | 14:59 |
| ← hotsyk left | 14:59 |
| → marthinal joined | 14:59 |
| → iocor joined | 14:59 |
| → oo_miguel joined | 15:00 |
| ← cooloney left | 15:00 |
| → fedesilva joined | 15:00 |
| → mfischer joined | 15:00 |
|
oo_miguel
| hi | 15:01 |
| ← Cyanure left | 15:01 |
| ← jeffhung_ left | 15:01 |
| → remote joined | 15:01 |
| → joshsmith joined | 15:02 |
| ← eno left | 15:05 |
| → spiette joined | 15:05 |
| → diogogmt joined | 15:05 |
| → Jackneill joined | 15:06 |
| ← Jackneill left | 15:06 |
| → Jackneill joined | 15:06 |
| ← dvaske left | 15:06 |
| → eno joined | 15:07 |
| ← jordanm left | 15:08 |
| ← JohnBat26 left | 15:08 |
| ← diogogmt left | 15:08 |
| → Skyx-mobile__ joined | 15:08 |
| → beatak joined | 15:10 |
| → tty234 joined | 15:10 |
| ← fedesilva left | 15:10 |
| ← beautifulmind left | 15:10 |
|
cmn
| !hi | 15:10 |
|
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. | 15:10 |
| ← crisp left | 15:11 |
|
shruggar
| pfft, backups before advice.. how un-git-like | 15:11 |
| → Dreamer3 joined | 15:11 |
|
shruggar
| doesn't the bot know about the reflog? :) | 15:11 |
| → crisp joined | 15:11 |
|
FauxFaux
| shruggar: I'm having a problem with git gc --expire=now! | 15:11 |
| → _obiJuan joined | 15:12 |
|
cmn
| is it keeping too much data? | 15:13 |
| → duckxx joined | 15:13 |
| → gchristensen joined | 15:13 |
|
shruggar
| git config gc.reflogexpire never ?:D | 15:13 |
| → fly91 joined | 15:13 |
| thebaddies → Mubarak | 15:14 |
|
shruggar
| I don't add many large binaries that I later change my mind about | 15:14 |
| → tjaalton joined | 15:14 |
| ← kermit left | 15:14 |
| → jordanm joined | 15:14 |
| ← chrisgeorge left | 15:15 |
| ← eno left | 15:15 |
| → chrisgeorge joined | 15:15 |
| ← chrisgeorge left | 15:15 |
| → chrisgeorge joined | 15:16 |
| → eno joined | 15:16 |
|
Mikachu
| it's hard for git to recover from rm -rf .git | 15:16 |
| → troyt joined | 15:16 |
|
shruggar
| Mikachu: do you plan on giving rm -rf .git as advice? | 15:17 |
|
FauxFaux
| I've resolved problems by re-cloning many times. | 15:17 |
|
tjaalton
| I've a strange issue where git fails to pull tags from a remote | 15:17 |
|
| well, a certain tag | 15:17 |
|
FauxFaux
| tjaalton: git ls-remote | 15:17 |
|
tjaalton
| FauxFaux: what about that? | 15:18 |
| → fayimora joined | 15:18 |
| ← cakehero left | 15:18 |
| ← binjured left | 15:19 |
| → berserkr joined | 15:19 |
| → jmcantrell joined | 15:19 |
|
FauxFaux
| It will allow you to provide a not completely useless question for us to have some hope of answering. | 15:19 |
|
nru
| 16:16:48 < Mikachu> it's hard for git to recover from rm -rf .git <- lol | 15:19 |
| ← satyanash left | 15:20 |
|
Mikachu
| "pull tags" is sort of nonsense too, pull doesn't update tags, it just merges a particular branch | 15:20 |
|
tjaalton
| FauxFaux: ok. how about this one; git clone git://git.debian.org/git/collab-maint/pkg-sssd.git; cd pkg-sssd; git remote add upstream git://git.fedorahosted.org/git/sssd.git; git remote update | 15:21 |
|
| compared to 'git clone git://git.fedorahosted.org/git/sssd.git' | 15:21 |
|
cmn
| fetch --tags if you want to fetch tags | 15:21 |
|
| (that aren't auto-follow) | 15:21 |
| ← iocor left | 15:21 |
|
tjaalton
| actually, it's one of the branches that isn't updated either | 15:22 |
|
| sssd-1-8 | 15:22 |
| → mp_ joined | 15:22 |
|
cmn
| git branch -a? | 15:23 |
|
| what's that say? | 15:23 |
| ← Skyx-mobile__ left | 15:23 |
| → satyanash joined | 15:23 |
|
tjaalton
| umm, it shows all the branches, looks ok | 15:23 |
|
cmn
| right then | 15:23 |
| ← eno left | 15:23 |
|
FauxFaux
| tjaalton: http://pastie.org/3348663 What's wrong? | 15:24 |
|
tjaalton
| FauxFaux: you don't have sssd-1_8_0_beta2 | 15:24 |
| ← rchavik left | 15:24 |
|
FauxFaux
| tjaalton: Interesting. As cmn said, though, fetch upstream --tags fixes it. | 15:25 |
| → eno joined | 15:25 |
| → rchavik joined | 15:25 |
|
tjaalton
| FauxFaux: ah.. cool, thanks | 15:25 |
|
FauxFaux
| What does auto-follow mean, cmn? | 15:25 |
| ← p3rror left | 15:25 |
|
cmn
| if you're downloading a tagged object, you'll also download the tag | 15:26 |
| ← gnufied left | 15:26 |
|
cmn
| that's the default behaviour for git | 15:26 |
| → duckx joined | 15:27 |
| → VladGh joined | 15:27 |
|
FauxFaux
| I don't follow why that would mean that you wouldn't fetch some tags, though? | 15:27 |
|
tjaalton
| hmm ok, I think I know why the tag wasn't fetched | 15:27 |
| ← duckxx left | 15:28 |
|
tjaalton
| it should be from the sssd-1-8 branch, but isn't | 15:28 |
|
cmn
| if the tag points to some object that isn't covered by the branches you download, you won't get it | 15:28 |
|
tjaalton
| yep | 15:28 |
|
| makes sense now | 15:29 |
|
| didn't notice that it doesn't match what's on the branch | 15:29 |
|
| I'll let upstream explain :) | 15:29 |
|
FauxFaux
| Heh, I hadn't noticed that. I leave tagged bits of history lying around all the time (not even remotely on branches). | 15:30 |
| → Francisc joined | 15:30 |
| ← _ikke_ left | 15:31 |
| ← Chib left | 15:31 |
|
Francisc
| Say I have 3 commits, c1, c2 and c3, with HEAD pointing to c3. Running "git reset HEAD~2" will move HEAD to c1. What happens to c2 and c3. Are they removed? | 15:32 |
|
FauxFaux
| Francisc: They become unreachable and will eventually (after a few weeks) be garbage collectable, unless you make a branch or tag or etc. from them. | 15:32 |
|
Francisc
| I know the Working Directory does not get touched (unless using --hard). | 15:32 |
|
| I see. | 15:33 |
| ← angelsl left | 15:33 |
|
Francisc
| Is it possible to checkout c3 for example if that time has not passed? | 15:33 |
| ← eno left | 15:33 |
|
shruggar
| Fracisc: of course. | 15:33 |
|
cmn
| checkout c3 | 15:33 |
| ← boombatower left | 15:33 |
|
Francisc
| Yeah, but what if I don't know the name? | 15:33 |
| → b0fh_ua joined | 15:33 |
|
cmn
| if you don't remember what c3 stands for, look at the reflog | 15:33 |
|
Francisc
| How can I list them. | 15:33 |
|
shruggar
| Francisc: git reflog | 15:33 |
|
FauxFaux
| !gka | 15:33 |
|
gitinfo
| For a better way to view the reflog, try: gka() { gitk --all $(git log -g --format="%h" -50) "$@"; }; gka | 15:33 |
|
Francisc
| Aha. | 15:33 |
|
| OK. Thank you guys. | 15:34 |
| → dp_ joined | 15:34 |
|
b0fh_ua
| Hi all! I have several local branches, how can I see what are the latest commit messages in each of them? | 15:34 |
|
Francisc
| The removal of squashed commits is done automatically? | 15:34 |
| → orospakr joined | 15:34 |
|
b0fh_ua
| without checking out each of them | 15:34 |
|
Francisc
| I'm talking about a local (not remote) repository. | 15:34 |
| → iocor joined | 15:34 |
| → thiago joined | 15:34 |
| ← v0n left | 15:34 |
| → macmartine joined | 15:35 |
|
cmn
| discarded commits will be garbage-collected | 15:35 |
| ← dp_ left | 15:35 |
|
Francisc
| I got that, but how? | 15:35 |
|
cmn
| b0fh_ua: git branch -v | 15:35 |
|
Francisc
| When does GC run? | 15:35 |
| ← SPYGAME left | 15:35 |
| → eno joined | 15:35 |
|
cmn
| every once in a while | 15:35 |
|
| and when you tell it to | 15:35 |
|
Francisc
| There's no system service that checks that. So it has to be triggered by something else. | 15:35 |
|
FauxFaux
| Francisc: At the end of some commands, sometimes. And it doesn't touch things in the reflog, which is automatically purged after a few weeks. | 15:35 |
|
Francisc
| Like when I commit next time? | 15:35 |
|
| Aha. | 15:35 |
|
| OK. | 15:35 |
|
| Thank you all. | 15:35 |
| → airborn joined | 15:36 |
| ← chrisdev left | 15:36 |
| → _iron joined | 15:36 |
| ← mishok13 left | 15:37 |
| ← duckx left | 15:37 |
|
jast
| autogc does only a subset of gc operations | 15:37 |
| → chrisdev joined | 15:38 |
| ← fruight left | 15:38 |
| ← snow_usa left | 15:38 |
| → duckxx joined | 15:39 |
| ← tjaalton left | 15:39 |
| → mishok13 joined | 15:39 |
| → nrichards joined | 15:39 |
| ← eno left | 15:40 |
| ← neurodrone left | 15:40 |
|
b0fh_ua
| okay, how to find detached head? | 15:40 |
| → eno joined | 15:40 |
| ← pidus left | 15:40 |
|
b0fh_ua
| or some detached commits | 15:40 |
|
cmn
| what do you mean? | 15:40 |
|
FauxFaux
| b0fh_ua: !gka | 15:40 |
|
gitinfo
| b0fh_ua: For a better way to view the reflog, try: gka() { gitk --all $(git log -g --format="%h" -50) "$@"; }; gka | 15:40 |
| ← rchavik left | 15:41 |
|
b0fh_ua
| cmn: looks like we missed the commit somehow | 15:41 |
| → p3rror joined | 15:41 |
|
cmn
| missed? | 15:41 |
|
| as in lost? | 15:41 |
|
b0fh_ua
| cmn: seems so | 15:41 |
|
cmn
| then do what FauxFaux says | 15:41 |
|
b0fh_ua
| guy did rebase after some amend of commit he was not owning | 15:41 |
|
| so something is wrong here | 15:41 |
| → ehsan joined | 15:41 |
|
b0fh_ua
| and we don't have gitk - it's on windows | 15:42 |
| → armin_ joined | 15:42 |
|
canton7
| msysgit does have gitk | 15:42 |
| → imgrey joined | 15:42 |
|
b0fh_ua
| and how to use gka? | 15:42 |
|
FauxFaux
| In git bash, or by hand. | 15:42 |
|
b0fh_ua
| okay what arguments should be given? | 15:42 |
|
FauxFaux
| To gka? None. | 15:43 |
|
imgrey
| good evening #git | 15:43 |
|
| could somebody enlighten me on how to perform pull on remote server after I pushed changed to master ? | 15:43 |
|
| it says: """ | 15:43 |
|
| You asked me to pull without telling me which branch you | 15:43 |
|
| want to merge with, and 'branch.master.merge' in | 15:43 |
|
| blah blah blah """ | 15:43 |
|
FauxFaux
| imgrey: And? | 15:43 |
|
SethRobertson
| imgrey: What command did you try to run? | 15:43 |
|
| Is the server a bare repo? | 15:44 |
|
imgrey
| SethRobertson, git pull | 15:44 |
|
| SethRobertson, yes, it is bare repo | 15:44 |
| → touk joined | 15:44 |
|
SethRobertson
| So you are pushing to a server and then having it pull? Are there two servers? | 15:44 |
|
imgrey
| SethRobertson, my .git/config: http://pastie.org/3348788 | 15:44 |
| → gnufied joined | 15:45 |
|
imgrey
| SethRobertson, I commit on my home machine with git push and then Im trying to update server with git pull | 15:45 |
|
FauxFaux
| imgrey: Sounds about right. Well, you should probably read that git output which tells you what you need to do. | 15:45 |
|
SethRobertson
| How many repositories do you have? | 15:45 |
| ← herdingcat left | 15:45 |
|
imgrey
| SethRobertson, only one | 15:45 |
| ← eno left | 15:46 |
| ← arvind_khadri left | 15:46 |
| → _ikke_ joined | 15:46 |
|
imgrey
| FauxFaux, I know, but I tired to read docs about git. Now I want it to just apply my changes without questions | 15:46 |
|
canton7
| imgrey, the argument-less form of "git pull" requires so-called "tracking information" to tell it what to fetch and merge into the current branch. You don't have tracking set up. Therefore either use the full form of git pull -- "git pull origin <branchname>", or set up tracking, see push -u and branch --set-upstream | 15:46 |
|
SethRobertson
| Let us try this again. You commit some code somewhere. That is a first repository (#1). Then you push somewhere. That is a second repository (#2) and is presumably bare. Then you are pulling. Where are you pulling from? | 15:46 |
| → eno joined | 15:46 |
| → cakehero joined | 15:47 |
| ← raatiniemi left | 15:47 |
|
imgrey
| SethRobertson, I pull from the same bare repository | 15:47 |
|
| SethRobertson, that I pushed to | 15:47 |
|
| candybar, ok, I do % git pull origin master | 15:47 |
|
| error: Your local changes to the following files would be overwritten by merge: | 15:48 |
|
| users/admin.py | 15:48 |
|
| Please, commit your changes or stash them before you can merge. | 15:48 |
| → troydm joined | 15:48 |
|
FauxFaux
| READ THE FUCKING OUTPUT | 15:48 |
|
| Ahem. | 15:48 |
|
imgrey
| FauxFaux, go **** yourself | 15:48 |
|
canton7
| I could try and explain that message, but I really wouldn't be able to make it any clearer than the message already does | 15:49 |
| ← wbednars_ left | 15:49 |
|
troydm
| ok i have some branch lines in git log-tree (it's short alias for tree) that are colored out with different colors, i want to know which config variable controls color values | 15:49 |
| → _mpu joined | 15:49 |
|
imgrey
| candybar, what stash is ? | 15:49 |
| ← Wombert left | 15:49 |
|
FauxFaux
| imgrey: Trivial to google. | 15:49 |
|
canton7
| 1. my name isn't candybar, 2. man git-stash | 15:49 |
|
gitinfo
| the git-stash manpage is available at http://jk.gs/git-stash.html | 15:49 |
|
_mpu
| hi, sometimes git status informs me about the status of my repository compared remote ones, sometimes not. | 15:50 |
|
| what setting governate this? | 15:50 |
|
| which | 15:50 |
|
shruggar
| the "upstream" of a branch | 15:50 |
|
FauxFaux
| _mpu: It's based on the presence of tracking information that you see in git branch -vv | 15:50 |
|
canton7
| _mpu, iirc, whether there's anything to report, and whether tracking infor is set up for the branch | 15:50 |
|
imgrey
| OMG, Conflict, conflict! | 15:50 |
|
| CONFLICT (content): Merge conflict in users/admin.py | 15:50 |
|
| what do I do ? | 15:50 |
| → Phoenixz joined | 15:51 |
|
canton7
| imgrey, fix the conflict. Edit users/admin.py, find the merge markers, and sort the conflict out | 15:51 |
|
| imgrey, or launch git mergetool | 15:51 |
|
| imgrey, then "git add users/admin.py; git commit" | 15:51 |
|
FauxFaux
| troydm: https://github.com/gitster/git/blob/master/log-tree.c#L25 | 15:52 |
|
_mpu
| canton7, FauxFaux: ok, so it is related to the branch command. | 15:52 |
|
Phoenixz
| I have project A with its git repo, and now I need to add a (jquery based) project B.. Project B has its own git repo already, but somehow I need to get it into the tree of A.. I could just copy the WT of B into A, and be done with it, but I'd like to know if there may be an option in GIT to include another repo somewhere into the current repository... | 15:52 |
| ← codewrangler left | 15:52 |
|
| imgrey finally succeeded | 15:53 |
| → Guest4644 joined | 15:53 |
|
imgrey
| candybar, thank you very much | 15:53 |
|
| SethRobertson, thank you too | 15:53 |
|
troydm
| FauxFaux: hmm thx | 15:53 |
|
SethRobertson
| !thanks | 15:53 |
|
gitinfo
| Feeling thankful? Type "ExampleUser++", and ExampleUser will score karma points at http://carmivore.com (our preferred way to objectify self-worth). There's really no point to thanking me – instead, why not thank the person who made me help you? | 15:53 |
|
imgrey
| FauxFaux, get a life | 15:53 |
| ← eno left | 15:53 |
|
canton7
| please stop spamming candybar.... | 15:53 |
|
FauxFaux
| imgrey: Learn to read? :) | 15:54 |
| ← linkedinyou left | 15:54 |
| ← JPT left | 15:55 |
| → linkedinyou joined | 15:55 |
| → eno joined | 15:55 |
| → JPT joined | 15:55 |
| → alex__c2022 joined | 15:56 |
| ← Guest4644 left | 15:56 |
|
RandalSchwartz
| Phoenixz - use a git subtree merge | 15:56 |
|
| or get "git-subtree" (third party, but really should be part of the core) | 15:56 |
| → Wombert joined | 15:57 |
| → zatan joined | 15:57 |
|
cmn
| that's in progress | 15:57 |
| ← yshh left | 15:57 |
|
zatan
| Hi is there any command to see my git configurations ? | 15:57 |
|
cmn
| git config | 15:57 |
| ← mp_ left | 15:57 |
|
cmn
| -l shows everything | 15:57 |
|
| if you're looking for something very specific, other tools might give output tailored to the specific use case | 15:58 |
| → v0n joined | 15:58 |
| ← iocor left | 15:58 |
|
zatan
| cmn, thanks ;] | 15:58 |
| ← linkedinyou left | 15:58 |
| → linkedinyou joined | 15:58 |
| → arvind_khadri joined | 15:58 |
| → jasonbray joined | 15:59 |
|
troydm
| FauxFaux: so regarding those colors it means they are hardcoded and there is no way to change them from config | 15:59 |
|
| ? | 15:59 |
|
FauxFaux
| That would be my guess, yes. | 15:59 |
|
troydm
| FauxFaux: ic, thx | 15:59 |
| ← cburroughs left | 15:59 |
| ← oo_miguel left | 16:00 |
| ← Francisc left | 16:00 |
| ← eno left | 16:00 |
| ← JC_Yang left | 16:01 |
| ← _mpu left | 16:01 |
| → duckx joined | 16:01 |
| ← cccaldas left | 16:02 |
| → eno joined | 16:02 |
| → fedesilva joined | 16:02 |
| ← duckxx left | 16:03 |
| → i42n joined | 16:05 |
| → kevwil joined | 16:05 |
| → ipalaus joined | 16:05 |
| → Cromulent joined | 16:06 |
| → ScottE joined | 16:06 |
| → PySloan joined | 16:06 |
| ← BorX left | 16:07 |
| ← Samoi left | 16:07 |
| → lost_eden joined | 16:07 |
| → Targen joined | 16:08 |
|
lost_eden
| I've just tried to setup Gitweb but an existing repository isn't showing up - is there something special I have to do to 'add' an existing repository? | 16:08 |
| → Samoi joined | 16:09 |
| → Sailias joined | 16:09 |
| ← b0fh_ua left | 16:09 |
| → bascht joined | 16:10 |
| ChanServ set mode: +v | 16:10 |
| ← PySloan left | 16:11 |
| ← eno left | 16:14 |
| → rzec joined | 16:14 |
| → iocor joined | 16:14 |
| → mr_mustard joined | 16:14 |
| gitinfo set mode: +v | 16:15 |
|
Sailias
| is there a preferred way to hide users commits? eg, i am working on a repo and want other developers to work on it, but i don't want them to commit to master, i want everything to look like it's coming from me | 16:15 |
| → PySloan joined | 16:15 |
|
PerlJam
| Sailias: sounds disingenuous | 16:15 |
| ← cbreak-work left | 16:15 |
| ← airborn left | 16:15 |
|
cmn
| don't allow them to commit on master | 16:16 |
|
rzec
| say I want everyone to use core.filemode false, it there a way to setup the bare repository everyone clone from so that there cloned repository has this configuration? | 16:16 |
| ← batlock666 left | 16:16 |
|
PerlJam
| Sailias: or do you really mean to say you'd only like to see your commits? | 16:16 |
|
cmn
| how you do that depends on the system you use | 16:16 |
|
| rzec: configuration isn't cloned | 16:16 |
| → eno joined | 16:16 |
|
cmn
| you can include a default config in your repo as a file, but that's pretty much it | 16:17 |
| ← gldn left | 16:17 |
|
Sailias
| PerlJam, i'd like all commits to the repo to look like they are coming from me. So perhaps a fork that they work on, and i point that master to the original repo and rebase all their commits | 16:17 |
| ← arvind_khadri left | 16:18 |
|
cmn
| why? | 16:18 |
|
| what possible use can that have? | 16:18 |
|
Sailias
| cmn, was that directed to me? | 16:18 |
|
cmn
| yeah | 16:18 |
| → Wombert_ joined | 16:19 |
| ← jceb left | 16:19 |
|
Phoenixz
| RandalSchwartz: Thanks, will look into it! | 16:19 |
|
Sailias
| cmn, a client wants me to work on the project, but i'm going to sub contract some of the extra work out, and i don't want them to know about it | 16:19 |
| → ASIRINeiluj joined | 16:19 |
|
cmn
| figures, it's about lying in the repo | 16:19 |
|
PerlJam
| like I said ... disingenuous | 16:20 |
|
cmn
| then grab their repo once they're done and filter-branch | 16:20 |
|
jpalmer
| git commits don't care about your ethical dilemmas ;) | 16:20 |
|
Sailias
| cmn, i never said i had an ethical question, just a technical one ;) | 16:20 |
|
cmn
| trying to solve a social problem with a technical one brings problems | 16:20 |
|
| that's why reasons are important | 16:20 |
|
PerlJam
| Sailias: this is a technical question I won't expend any brain power on :) | 16:20 |
| ← Wombert left | 16:21 |
| Wombert_ → Wombert | 16:21 |
|
MrKeuner
| cmn, you have suggested this pre-receive hook. what does old new branch stand for? | 16:21 |
|
cmn
| hm? | 16:21 |
|
MrKeuner
| https://gist.github.com/1714235 | 16:21 |
|
| line 2 | 16:21 |
|
cmn
| oh that | 16:21 |
|
PerlJam
| MrKeuner: that's what gets passed to the hook | 16:22 |
|
cmn
| the script gets fed three variables per line on stdin | 16:22 |
|
MrKeuner
| PerlJam, env variables? | 16:22 |
|
cmn
| old and new are the old and new commits | 16:22 |
|
MrKeuner
| shouldn't they be $old $new $branch then | 16:22 |
|
cmn
| not there | 16:22 |
|
PerlJam
| MrKeuner: no, that's not how read works | 16:22 |
|
cmn
| the read is what's creating them | 16:22 |
|
MrKeuner
| ah ok | 16:22 |
| ← eno left | 16:23 |
| → dermoth_ joined | 16:23 |
|
nru
| hi | 16:23 |
|
| is there a simpler equivalent to doing the following? | 16:24 |
|
| git checkout B; git update-ref --no-deref HEAD A; git commit -a; git checkout B; git cherry-pick HEAD@{1}; | 16:24 |
| ← stodan left | 16:24 |
|
cmn
| what's the problem you're trying to solve | 16:24 |
|
nru
| that is, commiting the state of branch B on top of branch A | 16:24 |
|
cmn
| you're presenting a solution | 16:24 |
| → BorX joined | 16:24 |
|
cmn
| rebase? | 16:24 |
| → eno joined | 16:24 |
|
nru
| cmn: hum, I don't see how rebase would be used to do that. | 16:24 |
|
cmn
| cherry-pick doesn't commit the state of anything, it applies a patch | 16:25 |
|
nru
| (that's why I was asking with a solution; that's easier to convey) | 16:25 |
|
cmn
| are you looking for pull --squash? | 16:25 |
|
| merge --squash, rather | 16:25 |
|
nru
| no | 16:26 |
|
| I don't want to merge | 16:26 |
|
cmn
| that doesn't merge | 16:26 |
| ← lost_eden left | 16:26 |
| → dermoth__ joined | 16:26 |
| ← dermoth|work left | 16:26 |
| → notjohn joined | 16:26 |
|
nru
| I want a commit on branch B that makes the working tree associated with branch B the same as the working tree associated with branch A | 16:26 |
| → alexgordon joined | 16:27 |
| → boombatower joined | 16:27 |
| → LetoTo joined | 16:27 |
| → pidus joined | 16:27 |
| → neurodrone joined | 16:27 |
|
nru
| (by "the working tree associated with branch A" I mean "the result of 'git checkout A'". Is there a better way to say that?) | 16:27 |
|
cmn
| the commit's tree | 16:27 |
|
nru
| yes | 16:27 |
|
Sailias
| cmn, PerlJam: i don't think what i'm asking is that unethical, it's about having a dev team that i can make commits look like they're coming from "My Dev Shop" and not John Doe. It also comes to not exposing the names of my employees. | 16:27 |
|
| cmn, PerlJam: but ty for your time | 16:28 |
|
LetoTo
| should i be worried about pushing a new local branch to remote when it says: "emote: fatal: bad object 0000000000000000000000000000000000000000". It seemeed to have worked anyway | 16:28 |
| ← iocor left | 16:28 |
|
cmn
| git checkout B; git checkout A -- .; git commit -a would get close; not sure what would happen to deleted files | 16:28 |
|
| Sailias: nobody but you mentioned it being unethical | 16:28 |
|
nru
| so my problem, hopefully restated in a better way: I want to commit the tree of A's head on top of B, whatever B is | 16:28 |
| ← Wombert left | 16:29 |
| dermoth__ → dermoth|work | 16:29 |
|
cmn
| you can go low-level and create the commit yourself | 16:29 |
|
nru
| how would I do that? | 16:29 |
| ← d3vic3 left | 16:29 |
| ← jatt left | 16:29 |
|
cmn
| and make it point to A's tree | 16:29 |
| ← mr_mustard left | 16:29 |
|
cmn
| there's commit-tree, I haven't played much with that part | 16:29 |
| → CrazyWoods joined | 16:29 |
| → smw joined | 16:29 |
| → alvaro_o joined | 16:29 |
| ← dermoth_ left | 16:29 |
|
cmn
| man git commit-tree | 16:29 |
|
gitinfo
| the git-commit-tree manpage is available at http://jk.gs/git-commit-tree.html | 16:29 |
|
nru
| thanks | 16:30 |
|
cmn
| it looks like it does what you want to do | 16:30 |
| ← alvaro_o left | 16:30 |
|
cmn
| git checkout B; git commit-tree -m "fancy commiting" A^{tree} | 16:30 |
|
nru
| indeed! thanks | 16:30 |
|
yrlnry
| And then it prints out a new hash for the new commit and you make a ref to that hash. | 16:30 |
|
| Don't forget that step! | 16:30 |
|
nru
| uh; how is A^{tree} different from A? | 16:31 |
| ← fayimora left | 16:31 |
| → d3vic3 joined | 16:31 |
|
cmn
| A is a commit | 16:31 |
| → arvind_khadri joined | 16:31 |
|
cmn
| A^{tree} prints the commit's tree | 16:31 |
|
yrlnry
| You can just say "A" instead of "A^{tree}" and it will do the right thing. | 16:31 |
|
CrazyWoods
| what shall i do if i had multi project which are like to use git. just create a single repository and store all my project in the repository or create multi repository for every project? | 16:31 |
|
cmn
| yrlnry: are you sure? it says <tree> and not <tree-ish> | 16:31 |
| → Tureos joined | 16:31 |
| ← eno left | 16:31 |
|
yrlnry
| cmn: I am mistaken. | 16:32 |
|
PerlJam
| CrazyWoods: if they are tightly coupled, one repo. If loosely-coupled (or should be), multiple repos. | 16:32 |
|
| CrazyWoods: that's my personal rule-of-thumb | 16:32 |
|
nru
| 17:30:59 <+yrlnry> And then it prints out a new hash for the new commit and you make a ref to that hash. <- can't I just cherry-pick it? | 16:32 |
|
cmn
| I guess that would work | 16:33 |
|
yrlnry
| cherry-pick it to where? | 16:33 |
|
| It's already set up with the parent you want. | 16:33 |
|
cmn
| git update-ref HEAD <that hash> would be more correct | 16:33 |
| → eno joined | 16:33 |
|
PerlJam
| CrazyWoods: (it's rare that I've used one repo for multiple projects ... I've only done it once that I can recall) | 16:33 |
|
Mikachu
| it's easier if you just checkout b; read-tree a; commit | 16:33 |
|
nru
| yrlnry cmn: OK, thanks very much | 16:34 |
|
CrazyWoods
| PerlJam, thank you | 16:34 |
|
nru
| Mikachu: oh! thanks | 16:34 |
|
cmn
| Mikachu raises a very good point | 16:34 |
|
Mikachu
| (read-tree won't update the working tree though, so add a reset too afterwards) | 16:34 |
| → diogogmt joined | 16:34 |
| → snow_usa joined | 16:35 |
| ← armin_ left | 16:35 |
| ← teweWORK left | 16:37 |
| ← webben left | 16:38 |
| ← lapistano left | 16:38 |
| → nixmaniack joined | 16:38 |
| → lapistano joined | 16:38 |
|
cmn
| I still think a squash-merge would solve this as well | 16:38 |
| ← d3vic3 left | 16:38 |
| ← shiba_yu36 left | 16:38 |
| ← leavittx left | 16:39 |
|
nru
| cmn: reading the man, I can't see how | 16:39 |
| ← eno left | 16:39 |
| → kennethreitz joined | 16:40 |
|
cmn
| it takes the difference between HEAD and the other branch and applies the diff on top | 16:40 |
|
| unless you really want to loose all the stuff you've done on the current branch | 16:40 |
|
nru
| cmn: I really want to lose it | 16:40 |
|
| otherwise I would have done a merge | 16:41 |
|
cmn
| a rename seems appropriate | 16:41 |
| ← chrisdev left | 16:41 |
| → eno joined | 16:41 |
|
cmn
| as now you have a bunch of commits and a big one w/o explanations | 16:41 |
|
nru
| also to me it looks like git merge --squash is really like git merge; git reset --soft HEAD@{1} so I wouldn't have bothered asking | 16:42 |
| ← Sailias left | 16:42 |
| ← flijten left | 16:42 |
|
nru
| cmn: in fact, I had already applied part of the commit which tree I wanted to transplant | 16:42 |
|
cmn
| git merge --squash is git merge --no-commit B; git reset --soft HEAD^; git commit | 16:42 |
| ← derekpa left | 16:43 |
| → sebbi joined | 16:43 |
|
nru
| wait, the doc says that --squash does not actually make a commit | 16:43 |
|
cmn
| so it does | 16:44 |
|
nru
| (In my case, I was in the process of cutting a commit into smaller parts; only I seem to have done so in an absurdly complicated way) | 16:44 |
| ← johnathanb left | 16:45 |
| → ajaykools joined | 16:47 |
|
mastro
| I'm having W: RA layer request failed: Server sent unexpected return value (405 METHOD_NOT_ALLOWED) in response to REPORT request for '/svn/docasu/!svn/bc/355' at /usr/lib/git-core/git-svn line 2144 | 16:47 |
|
| while trying to svn clone a repository... | 16:47 |
|
| it's a warning and I would ignore it if it wasn't that after saing: "This may take a while on large repositories" it stop without doing anything | 16:48 |
| ← antgel_ left | 16:48 |
| ← BSaboia left | 16:49 |
| ← brian_g left | 16:50 |
|
Kingsy
| curious, some functionality I don't quite understand... if I do git checkout -b fault; echo "this" >> somefile.txt; git checkout master; why does it say M somefile.txt when you change the branch? and somefile.txt seems to have the change from fault in the master branch | 16:50 |
| → brian_g joined | 16:50 |
| ← Shusshu left | 16:50 |
| → pfFredd joined | 16:51 |
| ← eno left | 16:51 |
|
Kingsy
| I mean I previously merged another branch with master.. but that has gone, I don't see why its passing the changes of a file that hasnt even been staged to another branch | 16:51 |
|
cmn
| Kingsy: the file isn't in any branch | 16:51 |
|
RandalSchwartz
| uncommitted files are dragged along when you do checkout, unless there'd be a conflict. | 16:51 |
|
Kingsy
| cmn: ahhh | 16:51 |
| → BSaboia joined | 16:51 |
|
Kingsy
| so you hvae to stage it | 16:52 |
|
cmn
| no | 16:52 |
|
Kingsy
| you have to commit it? | 16:52 |
|
cmn
| a branch is a pointer to a commit | 16:52 |
|
Kingsy
| ah ffs | 16:52 |
| → mikepack joined | 16:52 |
|
Kingsy
| I knew that | 16:52 |
|
| cmn: thanks | 16:52 |
|
mattp_
| is it possible to checkout only certain directories when specifying a commit? | 16:52 |
| → eno joined | 16:52 |
| ← eno left | 16:52 |
| → eno joined | 16:52 |
|
cmn
| I should probably pimp out !thanks more | 16:52 |
|
gitinfo
| Feeling thankful? Type "ExampleUser++", and ExampleUser will score karma points at http://carmivore.com (our preferred way to objectify self-worth). There's really no point to thanking me – instead, why not thank the person who made me help you? | 16:52 |
|
cmn
| Seth is getting way ahead | 16:52 |
| → dAnjou joined | 16:52 |
|
RandalSchwartz
| mattp_ - if you're not going to be making a new commit, sure | 16:53 |
|
cmn
| mattp_: you can do git checkout <commit> -- <files> | 16:53 |
|
mattp_
| ie say i want to check out an old version of root/ where all my html templates are, but leave the web app files alone | 16:53 |
|
RandalSchwartz
| that just replaces <files> in your current commit with that commit | 16:53 |
|
cmn
| then do that | 16:53 |
|
| but be careful if you want to commit afterwards | 16:53 |
| ← aristidesfl left | 16:54 |
|
Kingsy
| cmn++ | 16:54 |
|
mattp_
| sweet, that worked beautifully. git rules | 16:54 |
| → mandric joined | 16:54 |
|
mattp_
| so when i want to get back to HEAD, `git reset --hard HEAD` will do it? i dont care about tossing any changes | 16:54 |
|
cmn
| "state of HEAD" technically, but yeah | 16:55 |
| ← smw left | 16:55 |
|
cmn
| or checkout -f | 16:55 |
| ← sameer_ left | 16:55 |
| ← h0bbit left | 16:58 |
| → sameer_ joined | 16:58 |
| ← retoryter left | 16:58 |
|
CareBear\
| reset --hard will leave untracked files | 16:58 |
| → Milossh joined | 16:58 |
|
cmn
| well yeah | 16:59 |
|
| untracked files don't get touched | 16:59 |
| → tewecske joined | 16:59 |
| ← Cromulent left | 17:00 |
|
Kingsy
| hmm not sure I agree with the way merging works.. unless I am misunderstanding, if you change the same line of the same file you need to pick between one or the other? | 17:00 |
|
| when you merge I mean | 17:00 |
|
CareBear\
| yes | 17:01 |
| → webben joined | 17:02 |
|
CareBear\
| you get a conflict | 17:02 |
|
| and have to resolve it | 17:02 |
| → dfr|mac_ joined | 17:02 |
|
cmn
| no | 17:02 |
| ← i42n left | 17:02 |
| ← whitman left | 17:02 |
|
cmn
| if you change the same line in two branches, git tells you you need to decide | 17:03 |
| → teknoid joined | 17:03 |
|
cmn
| and it presents you with both versions, you as a human decide what the real solution is | 17:03 |
| ← overbythere left | 17:04 |
| ← dfr|mac left | 17:04 |
|
Kingsy
| what if the scenario arises where for example.. you have a production copy.. you open a branch to work on a new version ( you add one line to the file ) something comes up, so you go back to the master and apply a "fix" to the file ( by adding a line to the master ) you then go back to the upgrade branch and finish editing your line, you switch back to master and merge.. its going to ask you to choose.. what if you wanted both? | 17:04 |
|
| you still want the code to work (with the fix) but you want your new version too | 17:04 |
|
Mikachu
| you can resolve the merge however you want, one side, both sides, something completely different | 17:05 |
| ← arvind_khadri left | 17:05 |
|
Kingsy
| Mikachu: ah right, I didnt realise... sorry | 17:05 |
|
Mikachu
| np | 17:05 |
| → Heimidal joined | 17:05 |
|
Kingsy
| lol loads of typing for nothing then.. I assumed it was asking you to choose one or the other | 17:05 |
| → i42n joined | 17:05 |
|
cmn
| what made you think that? | 17:05 |
| ← eno left | 17:05 |
|
Kingsy
| cmn: just the way it was set out in the filew | 17:06 |
|
| nevermind, I was just being dumb | 17:06 |
|
cmn
| that's the standard three-way merge conflict markers | 17:06 |
| ← Vampire0 left | 17:06 |
|
cmn
| it's showing you both versions | 17:06 |
| → eno joined | 17:06 |
| ← ajaykools left | 17:06 |
| → dreiss joined | 17:07 |
| → Vampire0 joined | 17:07 |
| ← robotmay left | 17:07 |
|
Kingsy
| cmn: yeah I see, and I guess you can address it with vimdiff or whatever and decide to have both if you want.. | 17:07 |
|
| thanks for the clarifaction | 17:07 |
|
cmn
| you can use a tool if it's a complex conflict | 17:08 |
|
| often you can just do it by hand | 17:08 |
|
Kingsy
| mergetool ? | 17:08 |
| → airborn joined | 17:08 |
| ← jacekmigacz left | 17:08 |
| → dfr|mac joined | 17:08 |
|
cmn
| mergetool calls whatever tool you've configured | 17:08 |
| → Destos joined | 17:09 |
|
nru
| Kingsy: mergetool lets you launch a tool; kdiff3 and meld are both very good and intuitive | 17:09 |
|
Kingsy
| ah I see.. yeah as set in --config | 17:09 |
| ← zatan left | 17:09 |
| ← giallu left | 17:09 |
|
nru
| Kingsy: you can try out tool with git mergetool -t meld for example | 17:10 |
|
| *tools | 17:10 |
| ← shergill1 left | 17:10 |
|
Kingsy
| ah ok, nru thanks | 17:10 |
| → shergill joined | 17:10 |
| ← capncodewash left | 17:11 |
| → dfr|mac__ joined | 17:11 |
| ← Phoenixz left | 17:11 |
| ← BorX left | 17:11 |
| → mr_mustard joined | 17:11 |
| ← dfr|mac_ left | 17:12 |
| → jacekmigacz joined | 17:12 |
|
mr_mustard
| I set a post receive hook to do the following: GIT_WORK_TREE=/home/user/public_html/www.site.com git checkout -f. But apparently, it only executes when I push the master branch. How do I set it to execute with another branch? | 17:13 |
|
nru
| damn, now I'm affraid I might have borked something. | 17:13 |
|
| what's the standard way to cut a commit into multiple smaller commits | 17:13 |
| → fruight joined | 17:13 |
|
nru
| when the splitting is non-trivial (might need manual editing) ? | 17:13 |
|
cmn
| reset and selective adds | 17:13 |
| ← dfr|mac left | 17:13 |
|
nru
| cmn: what about when the splitting needs to manually edit stuff? | 17:13 |
|
cmn
| commit, stash, ammend | 17:14 |
|
nru
| ! | 17:14 |
|
| indeed | 17:14 |
|
| thanks | 17:14 |
| ← sameer_ left | 17:15 |
|
cmn
| it's often better to commit too much | 17:15 |
| → eijk__ joined | 17:15 |
| ← brokenshakles left | 17:15 |
| ← eijk_ left | 17:15 |
| ← grekko left | 17:15 |
|
cmn
| and then squash the commits together; don't be commit-shy | 17:15 |
|
nru
| indeed; my problem ran deeper | 17:16 |
| → maletor joined | 17:16 |
| → dfr|mac joined | 17:16 |
| ← Nilbus_ left | 17:16 |
| → Nilbus joined | 17:17 |
| → dorisabayon joined | 17:17 |
| → fayimora joined | 17:18 |
| → chrisdev joined | 17:18 |
| ← eno left | 17:19 |
| ← tcurdt left | 17:20 |
| → norton- joined | 17:20 |
| ← chrisdev left | 17:20 |
| ← Fandekasp left | 17:20 |
| ← dfr|mac__ left | 17:20 |
| → sameer_ joined | 17:21 |
| → eno joined | 17:21 |
| → mxweas_ joined | 17:23 |
|
Mikachu
| nru: or if you're hardcore, add -e | 17:23 |
| ← psoo left | 17:25 |
|
nru
| Mikachu: \o/ I did not know this existed | 17:25 |
|
Mikachu
| (you don't need to manually adjust the hunk headers if you add/remove lines) | 17:25 |
| ← Kingsy left | 17:25 |
| → xsism joined | 17:26 |
|
cmn
| but you do need to write the patch format by hand | 17:26 |
|
| I always forget the initial SP when writing context | 17:26 |
|
Mikachu
| if you're slightly less hardcore, add -p is also nice | 17:26 |
| ← LetoTo left | 17:26 |
|
Mikachu
| i think it also lets you pop up the editor for individual hunks? | 17:26 |
| → johnathanb joined | 17:26 |
|
cmn
| yeah | 17:27 |
|
| with 'e' | 17:27 |
| ← LimeBlast left | 17:27 |
|
nru
| pretty cool | 17:27 |
| ← dreiss left | 17:27 |
| → Syco54645_work joined | 17:28 |
| → iocor joined | 17:28 |
|
Syco54645_work
| i am looking for a good graphical git client | 17:29 |
|
| that is cross platform | 17:29 |
| ← mr_mustard left | 17:29 |
|
cmn
| gitk, git-gui | 17:29 |
|
| both come with git and are cross-platform | 17:29 |
|
Syco54645_work
| ok, i tried gitk | 17:29 |
|
cmn
| they're good at what they do; gitk is ugly, but useful | 17:29 |
|
Syco54645_work
| yes, it was ugly but very very functional | 17:30 |
|
cmn
| it of course depends on what you mean by good | 17:30 |
| → kermit joined | 17:30 |
|
Syco54645_work
| easy to use and such, im fine with cli | 17:30 |
|
| it is the coworkers who i am trying to help out | 17:30 |
| ← kermit left | 17:30 |
| ← johnathanb left | 17:30 |
| → BryanRuiz1 joined | 17:30 |
|
Syco54645_work
| you say git-gui comes with git? | 17:31 |
|
BryanRuiz1
| can i unmerge a branch :) | 17:31 |
|
cmn
| yeah | 17:31 |
|
| BryanRuiz1: maybe | 17:31 |
|
| BryanRuiz1: http://www.opensource.apple.com/source/Git/Git-17/src/git-htmldocs/howto/revert-a-faulty-merge.txt | 17:31 |
|
Syco54645_work
| cmn: hmmm, doesnt appear to be on my system | 17:32 |
|
cmn
| 'git gui' | 17:32 |
|
| the dashed version doesn't work for typing it | 17:32 |
| → kermit joined | 17:32 |
| → brokenshakles joined | 17:32 |
|
cmn
| people seem to like 'git gui blame <file>' a lot as well | 17:32 |
| → linusoleander joined | 17:33 |
| ← senny left | 17:33 |
| → snearch joined | 17:33 |
| ← norton- left | 17:33 |
|
Syco54645_work
| git: 'gui' is not a git command. See 'git --help'. | 17:33 |
| → norton- joined | 17:34 |
| ← kadoban left | 17:34 |
|
cmn
| your package manager might have split that out to a different package | 17:34 |
| ← OOPMan left | 17:34 |
|
cmn
| in Debian it's in the git-gui package | 17:35 |
| → eijk joined | 17:35 |
| → notola joined | 17:36 |
|
Syco54645_work
| cmn: ah that was it | 17:36 |
|
| Syco54645_work is on mint, needed a change | 17:36 |
| → mcluskydodallas joined | 17:37 |
| ← srcerer left | 17:37 |
|
cmn
| mint is based on debian/ubuntu so pretty much the same | 17:37 |
|
Syco54645_work
| cmn: indeed | 17:37 |
| → anjen joined | 17:38 |
| ← eijk__ left | 17:38 |
|
Syco54645_work
| cmn: is there a way for them to rename and move files in git-gui? | 17:38 |
|
cmn
| I'm not sure, I don't use it myself | 17:38 |
| ← marthinal left | 17:39 |
| ← eno left | 17:39 |
| → OOPMan joined | 17:40 |
| → eno joined | 17:40 |
| → rtconner joined | 17:41 |
|
Syco54645_work
| cmn: well thanks for the help regardless, i assume the mac users here will use tower | 17:41 |
|
MrKeuner
| I have multiple remotes, I commit some change to one of them and doing git status I don't see the customary message that my copy is 3 commits ahead, etc | 17:42 |
|
| am I doing something wrong? | 17:42 |
|
Syco54645_work
| i was just trying to find something that i could get familiar with before i introduced them to scm via git | 17:42 |
|
MrKeuner
| is that because git canot know which remote to compare with? | 17:42 |
| → apok joined | 17:43 |
|
cmn
| you tell git which remote to compare with | 17:43 |
|
MrKeuner
| git status remote2? | 17:44 |
|
cmn
| branch --set-upstream | 17:45 |
| ← gnufied left | 17:46 |
| ← OOPMan left | 17:46 |
| ← eno left | 17:46 |
| → tystr joined | 17:47 |
| → eno joined | 17:47 |
| ← CrazyWoods left | 17:47 |
| ← dpino left | 17:48 |
|
BryanRuiz1
| "Your branch is ahead of 'origin/master' by 6 commits." How do I look at what these commits are? Just git log at the last 6? | 17:48 |
| → jbwiv joined | 17:48 |
|
SethRobertson
| Or `git log @{u}...` | 17:49 |
| ← apok left | 17:49 |
|
jbwiv
| guys, I have a series of commits which were committed using the wrong email address as the author. is there a way to fix this? | 17:49 |
| ← dAnjou left | 17:49 |
|
SethRobertson
| Have you pushed? | 17:49 |
|
thiago
| does it include any merges? | 17:49 |
|
jbwiv
| SethRobertson, yes | 17:49 |
|
thiago
| do other people have them? | 17:49 |
|
jbwiv
| thiago, yes, I believe so. some of the commits are from the very early days | 17:50 |
|
SethRobertson
| jbwiv: Then this is !rewriting_public_history and is not recommended. git can do it, configuration on the server allowing, of course. | 17:50 |
|
gitinfo
| jbwiv: 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) | 17:50 |
|
jbwiv
| thiago, only one (and github), and I can tell him to re-clone | 17:50 |
| → sec^nd joined | 17:50 |
| → apok joined | 17:50 |
|
SethRobertson
| git-filter-branch is probably the best solution for you | 17:50 |
| ← joshsmith left | 17:50 |
|
SethRobertson
| with the above caveats | 17:50 |
|
thiago
| agreed | 17:50 |
|
jbwiv
| ok, thanks guys | 17:51 |
|
sec^nd
| I have a git repo which is extremly slow when updating or git status'ing, is there a way to speed it up ? the git repo is here git://pkgbuild.com/aur-mirror.git | 17:51 |
|
MrKeuner
| branch --set-upstream dev master; git status tells me that I am ahead by 3 commits; when do git push dev master I get no change | 17:51 |
| ← shergill left | 17:51 |
|
cmn
| that's because pushing doesn't change the dev branch, only $remote/dev | 17:51 |
|
| or master or whatever | 17:52 |
| → churp joined | 17:52 |
|
MrKeuner
| cmv I am in dev and pushing to dev master | 17:52 |
|
SethRobertson
| sec^nd: `git gc --aggressive` and buy faster disks. There was also a recent thread about this on the git mailing list | 17:52 |
|
MrKeuner
| cmv I am in branch dev and pushing to remote dev master | 17:52 |
| → airstream66 joined | 17:53 |
|
sec^nd
| SethRobertson: can you point me to the thread ? | 17:53 |
| → johnanderson joined | 17:53 |
| → DragonSlay joined | 17:53 |
| ← rzec left | 17:53 |
| ← Element9_work left | 17:54 |
|
SethRobertson
| MrKeuner: When you explictly name a remote branch in push it does not update the remotes/ Set push.default correctly (tracking) and skip the explicit branch name | 17:54 |
|
sec^nd
| SethRobertson: I did git gc --aggressive last night and woke up to a computer that was swapping out :/ | 17:54 |
|
| computer has 2G of ram and 3G of swap | 17:54 |
|
cmn
| MrKeuner: only one of those can be a remote name | 17:54 |
|
DragonSlay
| what email address should i give for git config? should i use my local email address? | 17:54 |
|
cmn
| you need to specify the complete name of the branch | 17:54 |
|
sec^nd
| git was using way to much ram | 17:54 |
|
cmn
| remote/branch | 17:54 |
|
sec^nd
| and wasn't done after running all night | 17:54 |
| → soc42 joined | 17:55 |
| → gltest joined | 17:55 |
|
SethRobertson
| sec^nd: See subject "large(25G) repository in git" | 17:55 |
|
| sec^nd: Also see !large_files and more importantly, to you, see: | 17:55 |
|
gitinfo
| sec^nd: Git isn't yet great at large files (larger than RAM). See http://git-annex.branchable.com/ and https://github.com/schacon/git-media Find them (after gc) with: git verify-pack -v .git/objects/pack/pack-*.idx | grep blob | sort -k3nr | head | while read s x b x; do git rev-list --all --objects | grep $s | awk '{print "'"$b"'",$0;}'; done | 17:55 |
|
MrKeuner
| SethRobertson, does not update as a security precaution, right otherwise what I am trying to do makes sense, although dangerous? | 17:55 |
| ← Heimidal left | 17:55 |
|
SethRobertson
| sec^nd: !large_repo | 17:55 |
|
gitinfo
| sec^nd: [!large_repos] Git can be slow in the face of large repositories. There are git-config options which can help. pack.threads=1; pack.deltaCacheSize=1; pack.windowMemory=512m; core.packedGitWindowSize=16m; core.packedGitLimit=128m. Other likely ones exist. | 17:55 |
| → Heimidal joined | 17:56 |
| ← achadwick left | 17:56 |
|
SethRobertson
| MrKeuner: Security? I doubt it. Probably something to do with explicit naming meaning you are doing weird stuff and git shouldn't try to add too much convenience. Same with pulling/fetching with an explicitly named branch | 17:56 |
| ← gltest_ left | 17:56 |
| ← Heimidal left | 17:57 |
| ← mxweas_ left | 17:57 |
| ← kevlarman left | 17:58 |
| → kevlarman joined | 17:58 |
| ← jason237 left | 17:59 |
| ← abetaha left | 18:00 |
|
SethRobertson
| sec^nd: I gave you a wrong reference. The subject you should be looking for is "Git performance results on a large repository" | 18:00 |
| → vacho joined | 18:01 |
| ← LongBeach left | 18:01 |
|
vacho
| im adding this line to my .gitignore file but it does not listen to me :) "sites/default" | 18:01 |
|
MrKeuner
| SethRobertson, are you saying branch name = remote name is a bad idea? | 18:01 |
|
vacho
| if I make changes to files in that folder it still wants me to commit and push..why> | 18:01 |
|
sec^nd
| thanks | 18:01 |
| → magmatt joined | 18:01 |
|
SethRobertson
| MrKeuner: Just change the push.default setting in man git-config | 18:02 |
|
gitinfo
| MrKeuner: the git-config manpage is available at http://jk.gs/git-config.html | 18:02 |
|
magmatt
| I want to list the author for each branch in the output of `git branch --no-merged` | 18:02 |
|
MrKeuner
| ok | 18:02 |
|
SethRobertson
| magmatt: Branches do not have owners | 18:02 |
|
| magmatt: !branch | 18:02 |
|
gitinfo
| magmatt: A branch and a tag are just convenient ways of spelling the name of a particular commit. A commit represents a specific set of files and the history of all commits which came before it, and the SHA-1 hash tag official name provides cryptographic assurance of the lineage of a particular commit (and thus branch or tag). A branch's reference may change. A tag usually doesn't. | 18:02 |
|
magmatt
| SethRobertson: commits do | 18:02 |
|
| I just mean the head commit that the branch is pointing to | 18:03 |
| → jason237 joined | 18:03 |
|
vacho
| anyone please? | 18:03 |
| ← ceej left | 18:03 |
|
SethRobertson
| magmatt: Then post-process the output so you can feed the SHA/branch names into git-show, git-log, or similar | 18:03 |
| ← eno left | 18:03 |
| → marthinal joined | 18:04 |
|
SethRobertson
| vacho: !gitignore | 18:04 |
|
gitinfo
| vacho: [!gitignore_whitedir] A global/directory .gitignore blacklist with a (potentially) subdirectory whitelist is not easy to specify in git. However, something like `echo -e '/*\n!/a/\n/a/*\n!/a/b/\n/a/b/*\n!/a/b/c/' > .gitignore` (ignore everything but a/b/c directory) or `echo -e '*\n!*/\n!*.c' > .gitignore` (ignore everything but *.txt files) may do what you want. | 18:04 |
|
magmatt
| SethRobertson: dang, that's what I was already doing; k thanks | 18:04 |
| ← magmatt left | 18:04 |
| → Heimidal joined | 18:04 |
|
SethRobertson
| vacho: Sorry, wrong reference | 18:04 |
| → CannedCorn joined | 18:04 |
|
nru
| is there a way to edit a commit diff in a way similar to add -e ? | 18:04 |
|
SethRobertson
| vacho: !ignore_tracked | 18:04 |
|
gitinfo
| vacho: Git only applies ignore patterns to untracked files. You can't use ignore patterns to ignore changes to files that are already tracked by git. Still, see https://gist.github.com/1423106 for ways people have worked around the problem. | 18:04 |
|
SethRobertson
| Unless I don't understand the problem, in which case !repro | 18:04 |
|
gitinfo
| Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting. | 18:04 |
| ← shruggar left | 18:05 |
|
SethRobertson
| nru: Once you have committed, you can only rebase-i (or reset --soft for the most recent commit) and then redo the commit | 18:05 |
| → eno joined | 18:05 |
|
SethRobertson
| Using add -e or whatever | 18:05 |
|
nru
| ok; thanks | 18:06 |
| ← ASIRINeiluj left | 18:06 |
| → Heimidal_ joined | 18:06 |
| ← hotsyk_ left | 18:07 |
| ← t4nkd left | 18:08 |
| → t4nkd joined | 18:08 |
| ← MrKeuner left | 18:08 |
|
jaalto
| Does Git have some ocnfiguration variable that would stop it starting EDITOR on conflict merge? | 18:10 |
| → joe-mac2 joined | 18:10 |
| → ajaykools joined | 18:10 |
| ← Heimidal left | 18:11 |
| gitinfo set mode: +v | 18:11 |
|
joe-mac2
| is tehre a way besides writing a little script that with git pull I can not only pull in the changes to my local branch that's mapped to a remote bvranch, but do it for all branches that currently have a mapping to a remote branch? | 18:11 |
| ← eno left | 18:11 |
| → abetaha joined | 18:11 |
| → coachz joined | 18:12 |
|
jaalto
| joe-mac2: No git command, so you need to write a shell script | 18:12 |
|
coachz
| hi, is there any easy way to undelete a branch on my local box ? | 18:12 |
|
joe-mac2
| jaalto: thought so, easy enough, thanks | 18:12 |
| ← joe-mac2 left | 18:12 |
| → eno joined | 18:12 |
| → Skyx-mobile__ joined | 18:12 |
| → Russell^^ joined | 18:12 |
| ← gchristensen left | 18:13 |
| ← flyz left | 18:13 |
|
jaalto
| coachz: If you delete the branch, Git shows the SHA. Just use the sha to branch again. | 18:13 |
| → gchristensen joined | 18:13 |
|
coachz
| how do i display the sha for the branch ? | 18:13 |
| → arvind_khadri joined | 18:14 |
| ← arvind_khadri left | 18:14 |
| → arvind_khadri joined | 18:14 |
| → kenperkins joined | 18:14 |
|
PerlJam
| coachz: git rev-parse <branchname> | 18:14 |
| → neunon joined | 18:14 |
| ← neunon left | 18:14 |
| → neunon joined | 18:14 |
|
coachz
| fatal: ambiguous argument 'jb_dash2': unknown revision or path not in the working tree. | 18:14 |
|
jaalto
| coachz: I mean, if you just deleted the branch, Git should have outputted the SHA with the last delete. But if you did it some time ago... | 18:14 |
| ← CannedCorn left | 18:15 |
|
coachz
| i have switched branches since then | 18:15 |
|
jaalto
| coachz: in that case, do some archeology with " git reflog show -COUNT" | 18:16 |
| → LeMike joined | 18:16 |
| → disappearedng joined | 18:16 |
|
coachz
| i think i see it | 18:16 |
|
| so i can "git checkout SHA1" ? | 18:17 |
|
jaalto
| coachz: Use the SHA you see to make a new branch, and you're back | 18:17 |
|
coachz
| like this? "git checkout -b SHA1" ? | 18:17 |
|
jaalto
| coachz: You don't usually want "checkout" and you'd be put to a "no branch" | 18:17 |
|
CareBear\
| git checkout -b foo sha1 | 18:17 |
| ← disappearedng left | 18:17 |
|
CareBear\
| where foo is the name of the branch you want to create and sha1 is a refspec | 18:18 |
|
coachz
| thank you | 18:18 |
|
jaalto
| ...and.. => "or you'd be put..." | 18:18 |
|
CareBear\
| -b is of course documented in man git-checkout too | 18:18 |
|
gitinfo
| the git-checkout manpage is available at http://jk.gs/git-checkout.html | 18:18 |
|
coachz
| yeah i use -b a lot :-) thanks very much | 18:18 |
|
jaalto
| CareBear: That backslash in your nick ruins my display :-) | 18:18 |
| → kukks joined | 18:18 |
|
CareBear\
| jaalto : fix your shitty display | 18:18 |
| ← tatsuya_o left | 18:19 |
|
jaalto
| CareBear: It's lie red flag | 18:19 |
|
| like | 18:19 |
|
CareBear\
| jaalto : fix your display | 18:19 |
| → tatsuya_o joined | 18:19 |
|
Nugget
| /IGNORE CareBear\ is a valid fix. Just sayin' | 18:19 |
| → alx- joined | 18:19 |
| → dorkmafia joined | 18:19 |
| → flyz joined | 18:20 |
|
CareBear\
| jaalto : I added a trailing backslash because I needed an extra character to avoid a nick collision and backslash was pretty unusual, and looked nice. also I thought it fun to see if it would cause any problem with various software that came across my nick, like bots and such | 18:20 |
|
| jaalto : that was in 1995 | 18:20 |
| ← PigeonFriend left | 18:20 |
| ← iocor left | 18:21 |
|
CareBear\
| jaalto : it really amazed me how many programs were unable to handle the character properly | 18:21 |
|
Nugget
| if you'd chosen a back-tick the internet might not have survived. | 18:21 |
|
CareBear\
| jaalto : some time later it made me very angry when I saw some software having problems | 18:21 |
|
| jaalto : these days I just laugh and spit at the shitty software | 18:22 |
|
jaalto
| CareBear: I'm from 1992, but I would never use unreadable character for conversation channel. No pun intended. | 18:22 |
| ← pfFredd left | 18:22 |
|
CareBear\
| I can read it fine :) | 18:23 |
| ← airstream66 left | 18:23 |
|
Nugget
| I just wish it ended :\ instead of just \ so it looked more like a DOS prompt. | 18:23 |
| ← DragonSlay left | 18:23 |
|
CareBear\
| Nugget : it's slightly less universal I think.. | 18:23 |
|
Nugget
| CareBear:\> | 18:23 |
|
CareBear\
| Nugget : hahaha, nice! :) | 18:24 |
|
SethRobertson
| ¿Unreadable characters‽ | 18:24 |
|
CareBear\
| is : allowed in nicks? | 18:24 |
| ← notola left | 18:24 |
|
Nugget
| no clue | 18:24 |
| → hydrozen joined | 18:24 |
|
CareBear\
| I think not | 18:24 |
| ← tatsuya_o left | 18:24 |
|
CareBear\
| it's used to say that a command has a parameter with spaces | 18:24 |
| Nathandim → Nathan|dnd | 18:25 |
|
CareBear\
| also, back then, the limit was 9 characters | 18:25 |
|
| I guess it still is on those networks | 18:25 |
| ← jfelchner left | 18:26 |
| ← thiago left | 18:26 |
| → whitman joined | 18:27 |
| → rbrooks joined | 18:27 |
| ← diogogmt left | 18:28 |
| → OOPMan joined | 18:28 |
| → dreiss joined | 18:29 |
| ← eno left | 18:30 |
| → eno joined | 18:30 |
| → slicslak joined | 18:30 |
|
slicslak
| i want to master into my feature branch, but before i do that I want to see what changes that will bring. what's the best command to do that | 18:31 |
| ← cortana2 left | 18:31 |
| ← t4nkd left | 18:31 |
|
SethRobertson
| slicslak: git diff master...feature (or is it ..? Try both until you find the right set) | 18:31 |
|
| .. definitely | 18:32 |
| → chisler joined | 18:32 |
| ← OOPMan left | 18:33 |
| → ceej joined | 18:34 |
| → preflex_ joined | 18:35 |
| ← preflex left | 18:35 |
| preflex_ → preflex | 18:36 |
| ← vacho left | 18:36 |
| → thiago joined | 18:36 |
| ← oc80z left | 18:36 |
| ← tvw left | 18:37 |
|
Mikachu
| actually he wants ... | 18:37 |
| → khmarbaise joined | 18:37 |
| → flijten joined | 18:37 |
| ← alberto56 left | 18:37 |
| → oc80z joined | 18:38 |
| → rath joined | 18:41 |
| gitinfo set mode: +v | 18:41 |
|
rath
| is there actually a way to use git's end-of-line normalization with CRLF instead of LF? | 18:42 |
|
cmn
| how do you mean? | 18:42 |
| ← Heimidal_ left | 18:42 |
|
cmn
| you can tell git which one you want, can't you? | 18:42 |
|
rath
| yes, but not for normalization of existing files | 18:43 |
|
| you've to normalize them one time with LF | 18:43 |
|
| or in other words...you have to normlize them one time...and it is LF | 18:44 |
|
| but our files are mostly CRLF, so in the first normalization it would change the most files... | 18:44 |
| ← coachz left | 18:44 |
| ← oc80z left | 18:45 |
|
rath
| there is no way to change it (by configuration?) to CRLF, right? | 18:46 |
| → srcerer joined | 18:46 |
| ← Skyx-mobile__ left | 18:46 |
| ← eno left | 18:46 |
| → oc80z joined | 18:46 |
|
cmn
| if you want your files to be in CRLF, why not store them that way? | 18:47 |
| ← berserkr left | 18:48 |
| ← Chibby_ left | 18:48 |
| → eno joined | 18:48 |
|
rath
| we have stored it that way, but we want to ensure that any other commit doesn't change it | 18:49 |
| → OOPMan joined | 18:49 |
|
rath
| and happens many times because of different OS's | 18:49 |
| → g105b joined | 18:50 |
|
SethRobertson
| Enforce it in a receive hook on the server. That is your only sure bet | 18:50 |
|
cmn
| then tell git on the other OSs not to mess with line endings | 18:51 |
|
| if people complain about line endings, they should come back from the 90s | 18:52 |
| ← cakehero left | 18:53 |
| ← Ryback_ left | 18:53 |
|
rath
| the problem is that the IDEs or build management systems likes to change it... | 18:54 |
|
cmn
| configure them not to | 18:54 |
| ← airborn left | 18:55 |
| → dfr|mac_ joined | 18:56 |
| → Invader joined | 18:56 |
|
Syco54645_work
| cmn: sublimetext 2 has a git integration plugin | 18:57 |
|
rath
| many windows tools can't be configured to do this, so git's normalization is actually the way, but it does LF | 18:57 |
| → elmasry joined | 18:57 |
| ← Milossh left | 18:57 |
|
cmn
| why are windows tools writing LF? | 18:58 |
|
rath
| is there a way to change it to CRLF or make it configurable?! | 18:58 |
|
| git normalization does | 18:58 |
|
cmn
| then don't normalise it | 18:58 |
| ← duckx left | 18:58 |
| → duckxx joined | 18:59 |
| ← rtconner left | 18:59 |
| ← dfr|mac left | 18:59 |
| ← xsism left | 18:59 |
| → alberto56 joined | 19:00 |
| ← kermit left | 19:00 |
| → papegaaij joined | 19:01 |
|
rath
| one part of the tools does CR, another part does CRLF. so we have to normalize, but not LF | 19:01 |
|
thiago
| no one does CR-only | 19:01 |
|
| that's Mac OS 9 | 19:01 |
| ← jasonbray left | 19:02 |
|
rath
| sorry, i meant LF | 19:02 |
| ← eno left | 19:03 |
| → xsism joined | 19:03 |
|
rath
| it would be nice if git gets a configuration for that | 19:04 |
| → eno joined | 19:04 |
| → zulax joined | 19:04 |
| ← babilen left | 19:05 |
| → jasonbray joined | 19:05 |
| ← bartek left | 19:05 |
| ← anjen left | 19:06 |
| → bartek joined | 19:07 |
| ← dnjaramba left | 19:09 |
| → astrostl_ joined | 19:10 |
| ← slicslak left | 19:11 |
| ← bitkiller left | 19:12 |
| ← astrostl left | 19:12 |
| ← fire31ight left | 19:12 |
| → LucasTizma joined | 19:12 |
| → dnjaramba joined | 19:12 |
| ← p3rror left | 19:12 |
| → fire31ight joined | 19:12 |
| → cybersphinx joined | 19:13 |
| → duckx joined | 19:13 |
| ← duckxx left | 19:13 |
|
rath
| SethRobertson: how can i set up a hook on the server? | 19:14 |
|
SethRobertson
| !any, but to answer your question, just dump it in .git/hooks as is described in man githooks | 19:15 |
|
gitinfo
| the githooks manpage is available at http://jk.gs/githooks.html | 19:15 |
|
SethRobertson
| !any as well | 19:15 |
|
gitinfo
| [!anyone] Usually, it does not help to ask for someone specific to answer your question. No one is the sole expert on anything, or even if they may be, there are plenty of others who know enough to help you | 19:15 |
| → Solow joined | 19:15 |
| → joshsmith joined | 19:15 |
|
Solow
| If I check something out inside of a checkout, will the checkout it's in ignore it? | 19:15 |
|
SethRobertson
| No | 19:16 |
| ← the_cybersphinx left | 19:16 |
|
Solow
| SethRobertson: Is it possible to make it ignore it? I don't want to pollute the "parent" checkout. | 19:16 |
|
Mikachu
| .gitignore or .git/info/exclude as usual | 19:16 |
|
rath
| SethRobertson: ah ok, i know it but saw it in a wrong situation, thx | 19:17 |
| ← ajaykools left | 19:17 |
|
Solow
| Not that usual for me, haven't worked with it that much yet. Thanks. | 19:17 |
|
SethRobertson
| Describe more what you are talking about, what command are you using to do the nested checkout | 19:17 |
| ← thiago left | 19:17 |
|
Solow
| SethRobertson: Just a simple git clone, cd into that directory, and do another git clone of something else. | 19:17 |
|
Mikachu
| well, it's not different from any other untracked file/folder you want to ignore | 19:17 |
|
SethRobertson
| Solow: !subprojects | 19:17 |
|
gitinfo
| Solow: 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. | 19:17 |
| ← eno left | 19:18 |
|
Mikachu
| shouldn't he suggest to /msg the commands instead? :) | 19:18 |
|
Solow
| SethRobertson: gitignore it is | 19:18 |
|
| I'll google that one. Merci | 19:18 |
|
SethRobertson
| man gitignore | 19:18 |
|
gitinfo
| the gitignore manpage is available at http://jk.gs/gitignore.html | 19:18 |
|
yrlnry
| I thought that if you put repo A inside repo B, that commands in B would automatically ignore files in A because they would see the A/.git directory. | 19:19 |
| ← JStoker left | 19:19 |
| → Retistic joined | 19:19 |
|
SethRobertson
| Mikachu: Perhaps, but it sometimes helps to know whether someone did some more research. Perhaps syntax so that you can ask the question publicly but get the answer privately? | 19:19 |
|
Mikachu
| heh | 19:19 |
| → eno joined | 19:19 |
|
Mikachu
| yrlnry: yes, but A won't ignore B | 19:20 |
|
SethRobertson
| yrlnry: Mostly not. `git clean` does, I know, but submodules otherwise complicate that model | 19:20 |
| → JStoker joined | 19:20 |
| ← dnjaramba left | 19:20 |
|
SethRobertson
| I take that back. My most recent git is not ignoring during clean | 19:21 |
| ← zulax left | 19:21 |
| ← Syco54645_work left | 19:21 |
| → Milossh joined | 19:21 |
| ← zivester left | 19:21 |
| → zivester joined | 19:22 |
| → p3rror joined | 19:24 |
| → cakehero joined | 19:24 |
|
Solow
| Cool thanks. I used the exclude. | 19:25 |
| → dnjaramba joined | 19:27 |
| ← rath left | 19:27 |
| → Goplat joined | 19:27 |
| → iocor joined | 19:27 |
| ← Goplat left | 19:27 |
| → Goplat joined | 19:27 |
| ← iocor left | 19:27 |
| → iocor joined | 19:27 |
| ← khmarbaise left | 19:28 |
| → vacho joined | 19:29 |
|
vacho
| how do I tell git to untrack a file it's already tracking?? | 19:29 |
| → shruggar joined | 19:30 |
| ← Vile left | 19:30 |
|
SethRobertson
| git rm [--cached] | 19:30 |
|
| See also !config_files, which may or may not apply to your case | 19:30 |
|
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. | 19:30 |
| ← astrostl_ left | 19:30 |
| → hobodave joined | 19:31 |
| → sythe joined | 19:31 |
| ← dnjaramba left | 19:31 |
| ← rbrooks left | 19:31 |
| ← shruggar left | 19:31 |
| ← eno left | 19:32 |
| ← abetaha left | 19:32 |
|
vacho
| SethRobertson: git rm --cached sites/default/settings.php | 19:32 |
|
| fatal: Not a git repository (or any parent up to mount parent ) | 19:32 |
| → michaelh joined | 19:32 |
| ← fayimora left | 19:32 |
|
SethRobertson
| Where is your git repo? In sites? | 19:33 |
|
vacho
| im not sure, how do I check? | 19:33 |
|
SethRobertson
| find . -name .git | 19:33 |
| → eno joined | 19:33 |
|
mjt
| heh | 19:34 |
|
vacho
| ./Sites/dccomics/.git | 19:34 |
| → shergill joined | 19:34 |
|
vacho
| Sites/sitename/.git ** | 19:34 |
|
SethRobertson
| If that is the only output, then, err, sites/default/settings.php is not under version control | 19:34 |
| → abetaha joined | 19:35 |
|
vacho
| it is! | 19:35 |
|
SethRobertson
| If there is a sites/default/.git, then cd to that directory and run the git command | 19:35 |
|
vacho
| im looking at my local cloned git | 19:35 |
|
SethRobertson
| Then delete it in your local cloned git | 19:35 |
|
vacho
| that deletes it remotely too | 19:36 |
|
SethRobertson
| All too true. | 19:36 |
|
| You can look at the URL for your local cloned git and find that directory on the server | 19:36 |
| → Wombert joined | 19:37 |
| → dnjaramba joined | 19:37 |
|
vacho
| sorry SethRobertson im not following 100% | 19:37 |
| → panpainter joined | 19:37 |
|
vacho
| if i want to untrack a file..do I need to do it from my local git or remotely | 19:37 |
|
RandalSchwartz
| you can only "untrack" locally | 19:38 |
| ← LucasTizma left | 19:38 |
|
SethRobertson
| You can do it in either location, but you can only save the file on the system you run the command in (--cached) | 19:38 |
|
RandalSchwartz
| then commit that, and push a new commit | 19:38 |
|
vacho
| ok..I want to untrack settings.php so everytime I make a change to it it does not get pushed remote | 19:38 |
|
SethRobertson
| !config_files | 19:38 |
|
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. | 19:38 |
|
RandalSchwartz
| if you untrack it, it'll be deleted remotely | 19:38 |
|
| if you push again | 19:39 |
|
| basically, you're saying "don't look at this file at all" | 19:39 |
| → dfr|mac joined | 19:39 |
|
vacho
| I do not want it deleted remotely, then how do I do it? | 19:39 |
|
RandalSchwartz
| see !configfiles | 19:39 |
|
gitinfo
| 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. | 19:39 |
|
vacho
| I read that post, didn't help me. | 19:39 |
|
RandalSchwartz
| git mv config.php config.php.sample | 19:39 |
|
| git commit -a -m 'renaming sample config' | 19:40 |
|
| then have an installer that cp config.php.sample config.php | 19:40 |
|
| so that it can be edited locally without hurting the upstream | 19:40 |
|
cmn
| you can try git update-index --assume-unchanged settings.php but that can be dangerous | 19:40 |
|
SethRobertson
| Very dangerous. You are lying to git. It is described on that link. Very very much not recommended | 19:40 |
|
cmn
| having a way to specify local configuration is a very useful thing to have at any rate | 19:40 |
|
vacho
| ok | 19:41 |
| → mxweas_ joined | 19:41 |
| ← dfr|mac_ left | 19:43 |
| ← dnjaramba left | 19:45 |
| → DarkAR joined | 19:45 |
| → infogulch joined | 19:46 |
| ← Destos left | 19:46 |
| → adiabatic joined | 19:47 |
| → MrKeuner joined | 19:47 |
| ← MrKeuner left | 19:47 |
| → MrKeuner joined | 19:47 |
|
MrKeuner
| hi, git branch --set-upstream dev master returns "Branch dev set up to track local branch master" I was intending to track remote dev's master | 19:48 |
| → linusoleander_ joined | 19:49 |
| ← linusoleander left | 19:49 |
| linusoleander_ → linusoleander | 19:49 |
|
elmasry
| *Hi*, I'd like to use github, add my public ssh key, works fine, I have my local repository, but when I try to 'git push origin master' it gives: 'fatal: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDegixhC39yszxoehyFx+JHQA2RypdNDtg8BIuK29EhPrxkazMNUu6+JKsSEljW87+vQ86B76CnBv6TAK0Hh8yZlm7sf5gn4Gui9oh+S9lw0IJJQJHnct4/SwSg1GMwFAYJRQvN3SKP7hzrg+G4M8MkF7lV11TZlM55054PhUHg1xZZmxSXM0LNmFa531qlOk8cq9zIRlpZnmAwiIUENpIBF74lOI0JRuUKlKfwMmrrSa0uHV/X8KbgnAz4Piw++Zp+ziBEC0PnKx2P4WP | 19:50 |
|
| oops sorry | 19:50 |
| → di-five joined | 19:50 |
| ← eno left | 19:50 |
|
SethRobertson
| MrKeuner: Then say "dev dev/master" | 19:50 |
| → dnjaramba joined | 19:50 |
|
elmasry
| it gives me: 'fatal: the remote end hung up unexpectedly' | 19:50 |
| → delinquentme joined | 19:51 |
|
delinquentme
| hey all how do I edit the commit messages that I pull up when using " git log " | 19:51 |
|
SethRobertson
| elmasry: What does `git remote -vv; git branch -vv` say? | 19:51 |
|
delinquentme
| question mark. | 19:51 |
|
talexb
| elmasry, I'm guessing it's an authentication problem .. | 19:51 |
| → unnamedwill joined | 19:51 |
|
SethRobertson
| delinquentme: See !fixup | 19:51 |
|
gitinfo
| delinquentme: 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. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info) | 19:51 |
| → eno joined | 19:52 |
| → Raging_Hog joined | 19:52 |
| → fayimora joined | 19:52 |
|
elmasry
| talexb: I tried: 'ssh -T [email@hidden.address] and worked fine | 19:52 |
| ← fayimora left | 19:52 |
| ← BlaDe^ left | 19:53 |
|
delinquentme
| so rebase works just fine .. however the commit messages in gitk and git log are different | 19:53 |
|
talexb
| elmasry, Don't know what else to suggest. Contact github maybe? | 19:54 |
|
SethRobertson
| delinquentme: Did you restart gitk? | 19:54 |
|
elmasry
| SethRobertson: origin git@github:emz/Algorithmic-Form-Generation.git (fetch) | 19:54 |
|
| origin git@github:emz/Algorithmic-Form-Generation.git (push) | 19:54 |
|
delinquentme
| yeah | 19:54 |
| ← g105b left | 19:54 |
|
SethRobertson
| delinquentme: Then delete .git/gitk.cache | 19:54 |
|
delinquentme
| gitk looks good .. git log does not | 19:54 |
|
SethRobertson
| elmasry: I cannot help but notice the lack of ".com" in your URLs | 19:55 |
|
delinquentme
| git log contains all the commit messages of the commits i squashed with rebase | 19:55 |
|
SethRobertson
| delinquentme: Did you run that command and it still doesn't work? | 19:56 |
|
| Oh, wait, I misread. | 19:56 |
|
| delinquentme: What does `git branch` report? Are you on a * branch? | 19:56 |
|
delinquentme
| * master | 19:57 |
| → tatsuya_o joined | 19:57 |
|
SethRobertson
| And if you delete .git/gitk.cache and type `gitk master` you see something different than `git log master`? | 19:57 |
| ← Milossh left | 19:58 |
| ← zendeavor left | 19:58 |
| ← dnjaramba left | 19:58 |
| ← mxweas_ left | 19:58 |
| ← vacho left | 19:59 |
| → shruggar joined | 19:59 |
| ← Fangorn_ left | 19:59 |
|
delinquentme
| correct SethRobertson | 20:00 |
|
SethRobertson
| delinquentme: That is, err, disturbing. Is this a repo you can make public? Have you tried upgrading git? | 20:01 |
| → devth joined | 20:01 |
|
delinquentme
| here is the git log http://pastie.org/3350267 ... and here is gitk http://i.imgur.com/SAJbw.png | 20:02 |
|
| no i havnt upgraded git | 20:02 |
|
devth
| is git-request-pull the only way to show a branch's "description"? | 20:03 |
|
MrKeuner
| SethRobertson, git branch --set-upstream dev dev/master returns "fatal: Not a valid object name: 'dev/master'" | 20:03 |
| → dnjaramba joined | 20:03 |
| gitinfo set mode: +v | 20:03 |
|
SethRobertson
| MrKeuner: Please pastebin: git branch -avv | 20:04 |
| → robotmay joined | 20:04 |
|
touk
| what happens when you push changes to a repo that conflict with someone else's push? | 20:04 |
|
cmn
| devth: git config branch.$branch.description also will | 20:04 |
|
RandalSchwartz
| touk - generally, you can't | 20:04 |
|
| if it's "fast forward only" by default, your push is rejected. | 20:05 |
|
SethRobertson
| delinquentme: I don't obviously see what the difference is | 20:05 |
|
cmn
| touk: conflict in what way? | 20:05 |
| ← Wombert left | 20:05 |
|
devth
| cmn: ty | 20:05 |
|
MrKeuner
| SethRobertson, http://pastebin.com/jiPznjwR | 20:05 |
| → pmenon joined | 20:05 |
|
cmn
| touk: the commits are made locally, when you push, you're asking the server to push the branch forward | 20:05 |
|
SethRobertson
| MrKeuner: Do you have a remote set up? Is `git remote` empty? | 20:06 |
|
cmn
| if what you're trying to push isn't a desdendant of what is there, git will complain | 20:06 |
| → slicslak joined | 20:06 |
|
cmn
| you can force the push, overwriting the history whoever else wrote | 20:06 |
|
MrKeuner
| SethRobertson, no there are three remotes push and pull for each | 20:06 |
|
| fetch and push | 20:06 |
| ← hydrozen left | 20:06 |
| → BiggFREE joined | 20:07 |
|
delinquentme
| SethRobertson, in the git log commit message a the top | 20:07 |
| → zendeavor joined | 20:07 |
|
MrKeuner
| SethRobertson, 1.7.1 here, is it a problem | 20:07 |
|
delinquentme
| Id like the message to not have the more more and added readme formatting | 20:07 |
|
touk
| RandalSchwartz cmn - so if you push and you would be overwriting a change you didnt get that someone else pushed to the server, it will complain, and then you will have to do a pull, merge conflicts, then push? | 20:07 |
|
elmasry
| SethRobertson: OK thanks, problem solved. | 20:08 |
|
cmn
| delinquentme: not have it or not see it by default? | 20:08 |
| → kadoban joined | 20:08 |
|
cmn
| the first paragraph is the subject of the commit | 20:08 |
|
| and that's what both gitk and git log --oneline show | 20:08 |
|
touk
| RandalSchwartz cmn - also, if someone pushes something they shouldnt have, can you revert their push? | 20:08 |
| → jlk joined | 20:08 |
| ← dnjaramba left | 20:08 |
|
MrKeuner
| SethRobertson, push.default is set to tracking | 20:09 |
|
jlk
| Ok, so I know git has a way of fairly easily telling what tags are reachable by which branches or commits, because you can fetch a specific branch and only get the associated tags | 20:09 |
| → dnjaramba joined | 20:09 |
|
SethRobertson
| delinquentme: I cannot see the full message in the gitk output, however the first line looks the same. | 20:09 |
|
jlk
| what I'm looking for is the ability to list out what tags are reachable from a given branch, but I'm not finding any good way of doing this. | 20:09 |
|
delinquentme
| so how do i edit commit 9bfb8d9bce96 .. so that the commit message is *ONLY* "formated readme file for github markdown" | 20:09 |
|
cmn
| git commit --amend | 20:09 |
| ← krz left | 20:10 |
|
cmn
| touk: right, your client will refuse to push non-ff history | 20:10 |
|
SethRobertson
| MrKeuner: Try `git remote update` and then re-run `git branch -a` You should see new branches show up | 20:10 |
|
delinquentme
| lol i SWEAR I tried that | 20:10 |
|
wald0
| github has a limit of 300 mb of space only ?? i was thinking on made all my works from it... :( | 20:10 |
| → cccaldas joined | 20:10 |
|
delinquentme
| thanks guys :D | 20:10 |
|
touk
| cmn - i think i know the diff between a ff and a non ff merge, but whats non-ff history? | 20:11 |
|
cmn
| touk: so you should make it a descendant, either by rebase or merge or whatever | 20:11 |
|
| pretty much the same thing | 20:11 |
|
| fast-forward means one is a descendant of the other | 20:11 |
|
MrKeuner
| SethRobertson, I did git remote update but git branch -a still shows *dev and master | 20:11 |
|
cmn
| wald0: it's a soft limit | 20:11 |
|
touk
| cmn - ok, so in order to make it a descendent you just need to pull the changes down, merge the conflicts, then you should be able to push | 20:11 |
|
cmn
| to stop people from using it as file storage, if you really need more, you can discuss it with the support team | 20:12 |
|
| touk: yes | 20:12 |
|
SethRobertson
| MrKeuner: Try `git ls-remote <remotename>` Do you see thinkgs like refs/heads/.... | 20:12 |
|
| MrKeuner: oh! | 20:12 |
|
touk
| cmn - great thanks, still trying to wrap my mind around all this | 20:12 |
|
MrKeuner
| no emtpty | 20:12 |
|
| it would be my first push if that push had worked | 20:12 |
|
SethRobertson
| MrKeuner: Ah, that is the problem. `git push -u dev dev:master` and everything should start working. | 20:13 |
|
MrKeuner
| SethRobertson, git branch --set-upstream dev dev/master requires dev/master to exist which requires an initial push -u? | 20:14 |
|
wald0
| cmn: so it is really not a limit of size if i really need more ? i say that because if is not the case i stop thinking my plans about put everything there (source codes, yes) | 20:14 |
|
MrKeuner
| SethRobertson, yes it works | 20:15 |
| → ASIRINeiluj joined | 20:15 |
|
cmn
| if you can convince them it's a good idea to give you more sure | 20:15 |
|
MrKeuner
| SethRobertson, thanks | 20:15 |
|
cmn
| I don't know the exact policy | 20:15 |
|
| someone put up a webkit mirror there IIRC and that's definitely more than 300MB | 20:15 |
| → Sonderblade joined | 20:16 |
|
cmn
| most people don't need anywhere near that much | 20:16 |
| → djMax joined | 20:16 |
| ← Sonderblade left | 20:16 |
|
djMax
| I cloned a github repo and made some changes. I *then* forked it github to my own account. How do I push the changes to my new fork? | 20:16 |
| → Sonderblade joined | 20:17 |
| → danner joined | 20:17 |
| → Fandekasp joined | 20:17 |
|
cmn
| man git remote | 20:18 |
|
gitinfo
| the git-remote manpage is available at http://jk.gs/git-remote.html | 20:18 |
| ← di-five left | 20:18 |
| → anjen joined | 20:19 |
|
danner
| hello. i'm trying to generate a unified patch/diff from a sequence of commits, all by me, when a number of other commits have happened in the meantime by others. git log --author=danner was used, but i'm not sure what else i can do to help me - maybe cherrypick them all into a branch? | 20:19 |
|
djMax
| I want set-head or set-url? | 20:19 |
| ← Lgb left | 20:20 |
|
pom
| When I tabcomplete: http://pastebin.com/yxjztAAb | 20:20 |
| ← brian_g left | 20:20 |
|
cmn
| either add or set-url | 20:20 |
|
pom
| How does git know about "asenine"? | 20:20 |
|
cmn
| why would you want set-head? | 20:20 |
| → brian_g joined | 20:21 |
|
cmn
| pom: git doesn't | 20:21 |
|
| it's the autocompletion | 20:21 |
| ← herriojr left | 20:21 |
| ← eno left | 20:21 |
| ← dorisabayon left | 20:21 |
| ← linusoleander left | 20:21 |
|
cmn
| git has nothing to do with that | 20:21 |
| ← gchristensen left | 20:21 |
| ← iocor left | 20:21 |
|
djMax
| set-url worked, thanks | 20:21 |
| ← lorian left | 20:22 |
|
danner
| or, perhaps a diff on a set of files from one commit to HEAD? other authors worked on other files, but I was the only one to work on my set of files. | 20:22 |
|
CareBear\
| is there also git get-head ? | 20:22 |
|
pom
| cmn: Alright. So, any idea where this comes from? I'm currently on Fedora install of git, and think I installed a git-completion package. | 20:22 |
| ← papegaaij left | 20:22 |
| → Milossh joined | 20:22 |
|
pom
| And in my case, what is "asenine" here? An "origin"? | 20:23 |
|
cmn
| CareBear\: are you making a joke or asking for real? | 20:23 |
| → eno joined | 20:23 |
|
cmn
| pom: git-completion has a very high likelyhood of being where your completions come from yeah | 20:23 |
| → Lgb joined | 20:23 |
|
CareBear\
| cmn : joke | 20:23 |
|
cmn
| asenine looks to be a rmote | 20:23 |
|
| CareBear\: I thought so at first, but then I couldn't decide | 20:23 |
|
| pom: origin is the default name for the remote you clone from | 20:24 |
| → Vile joined | 20:24 |
|
pom
| Okay, so "asenine" in this case is a remote. | 20:24 |
|
cmn
| right | 20:24 |
|
pom
| cmn: Okay, thanks. I'll sort it out now. | 20:25 |
| ← mishok13 left | 20:26 |
| ← Invader left | 20:26 |
| → herriojr1 joined | 20:26 |
|
jaalto
| What with github.com? Am I the only one that can't acess the site? | 20:27 |
| ← i8degrees left | 20:27 |
| ← sebbi left | 20:27 |
|
talexb
| jaalto, Works for me. | 20:28 |
|
cmn
| http://www.downforeveryoneorjustme.com/github.com | 20:28 |
| ← anjen left | 20:28 |
|
cmn
| also https://status.github.com/ and #github | 20:29 |
| → khmarbaise joined | 20:29 |
| Nathan|dnd → Nathandim | 20:30 |
| ← lacrymology left | 20:30 |
| → LongBeach joined | 20:30 |
| ← LongBeach left | 20:31 |
| ← jasonbray left | 20:31 |
| ← BryanRuiz1 left | 20:31 |
| ← asakura left | 20:31 |
| → asakura joined | 20:33 |
| ← erichynds left | 20:34 |
| ← cccaldas left | 20:34 |
| → Heimidal joined | 20:35 |
| ← Solow left | 20:35 |
| ← robotmay left | 20:35 |
| → robotmay joined | 20:35 |
| ← revagomes left | 20:36 |
| → no1home joined | 20:36 |
| → babonk joined | 20:37 |
|
babonk
| How can I find the most recent version of a file by name? The file is currently deleted | 20:38 |
|
| I'd prefer not going through gitk to find the commit code | 20:38 |
| → acl_ joined | 20:39 |
|
cmn
| git log -- file | 20:40 |
| → vrillusions joined | 20:41 |
| ← marthinal left | 20:41 |
| ← ISF left | 20:41 |
| ← eno left | 20:41 |
| → lacrymology joined | 20:42 |
| → eno joined | 20:43 |
| → diegoviola joined | 20:43 |
| ← robotmay left | 20:44 |
| ← elmasry left | 20:44 |
| → disappearedng joined | 20:45 |
| → methods joined | 20:46 |
| ← sec^nd left | 20:46 |
| → ISF joined | 20:46 |
|
methods
| how would you see just changes from 1 revision | 20:46 |
|
PerlJam
| git show REV | 20:47 |
|
MrKeuner
| sometimes git status shows file as modified but git diff reports identical file, why would that be? permissions? | 20:50 |
| ← touk left | 20:51 |
|
devth
| MrKeuner: depends on if they've been staged or not. try git diff --staged | 20:51 |
| → linkedinu joined | 20:51 |
|
cmn
| MrKeuner: there are several levels of modification; what exactly does it say? | 20:52 |
| ← glguy left | 20:52 |
| → pfFredd joined | 20:52 |
| tizzo-afk → tizzo | 20:52 |
|
MrKeuner
| Changed but not updated | 20:52 |
| ← babonk left | 20:52 |
|
methods
| PerlJam: thanks i was hung up using diff | 20:52 |
| → glguy joined | 20:52 |
| ← glguy left | 20:53 |
|
MrKeuner
| no changes added to commit | 20:53 |
| ← methods left | 20:53 |
| ← djMax left | 20:54 |
| ← linkedinyou left | 20:54 |
|
cmn
| so changes between worktree and index, then? | 20:54 |
|
| if you have changed the permissions, that's a change | 20:54 |
|
| and there are no textual changes, so diff won't show anything | 20:55 |
|
MrKeuner
| cmn, yes I have changed permissions, but I thought git did not care for permissions | 20:55 |
|
cmn
| for some | 20:56 |
|
| it tracks the user execute bit | 20:56 |
|
MrKeuner
| some? | 20:56 |
|
| oh ok | 20:56 |
| ← gavin_huang left | 20:56 |
|
cmn
| that's the only one that's relevant for anything | 20:56 |
| ← lacrymology left | 20:56 |
| → sec^nd joined | 20:57 |
|
EugeneKay
| If you want permissions tracked in git, do it in userspace. getfacl . > permissions.txt works well. | 20:57 |
|
MrKeuner
| I don't care about them for now, but thanks for the pointer | 20:58 |
| → mjs2600 joined | 20:58 |
| → lacrymology joined | 20:58 |
| → diogogmt joined | 20:59 |
| → duckxx joined | 20:59 |
| → fr0stbyte joined | 20:59 |
| ← disappearedng left | 20:59 |
| ← duckx left | 20:59 |
| → disappearedng joined | 21:00 |
| → disappea_ joined | 21:01 |
| ← disappearedng left | 21:02 |
| ← Jackneill left | 21:02 |
| ← lyddonb left | 21:02 |
| → MariusKarthaus joined | 21:02 |
| ← khmarbaise left | 21:03 |
| → zulax joined | 21:04 |
| → lyddonb joined | 21:05 |
|
mjs2600
| Hi, I'm kind of new to git, but I having a really annoying problem. I want one git repository to backup all of my code, but git won't add a directory if it's part of another git project, which most of my code is. Is there anyway around this Or am I just approaching this the wrong wany and missing some terrible inefficiency in doing it this way? | 21:05 |
| ← oc80z left | 21:05 |
| → di-five joined | 21:05 |
| → aristidesfl joined | 21:06 |
|
cmn
| why do you have the outer repo? | 21:06 |
|
| you could use subprojects, but I don't see how that helps backpus | 21:07 |
| → oc80z joined | 21:07 |
|
mjs2600
| so a backup script can keep track of all of my work | 21:07 |
|
SethRobertson
| mjs2600: !backups | 21:08 |
|
| !backup | 21:08 |
|
gitinfo
| Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups | 21:08 |
|
SethRobertson
| The link provides a scriptlet which might help | 21:08 |
|
mjs2600
| Thanks! | 21:08 |
| → tangledhelix joined | 21:08 |
| → glennpratt joined | 21:09 |
| → savid joined | 21:11 |
| → jasonbray joined | 21:11 |
|
savid
| How can I see what my remote is currently set to without actually querying the remote? | 21:11 |
|
SethRobertson
| Define "set to" | 21:11 |
|
savid
| It seems to just hang when I do "git remote show origin" | 21:11 |
|
SethRobertson
| git remote -vv? | 21:11 |
|
savid
| SethRobertson, ah, thanks that's what I neede :) | 21:12 |
| ← linkedinu left | 21:12 |
| → linkedinu joined | 21:12 |
| ← eno left | 21:15 |
| ← lacrymology left | 21:15 |
| → btanaka joined | 21:15 |
| → eno joined | 21:16 |
| → soidexe joined | 21:17 |
| → lacrymology joined | 21:17 |
| ← mjs2600 left | 21:18 |
| ← diogogmt left | 21:18 |
| ← merlin83_ left | 21:18 |
| → diogogmt joined | 21:19 |
| → mxweas_ joined | 21:19 |
| ← Raging_Hog left | 21:21 |
| ← heptadecagram left | 21:21 |
| ← norton- left | 21:21 |
| → xerora joined | 21:21 |
| ← dr_win left | 21:21 |
| → number_number joined | 21:21 |
| ← di-five left | 21:21 |
| ← eno left | 21:22 |
| → aspotashev joined | 21:23 |
| → retoryter joined | 21:23 |
| ← chisler left | 21:23 |
| → iocor joined | 21:24 |
| → Jeremy_ joined | 21:24 |
| Jeremy_ → Guest58615 | 21:24 |
| → eno joined | 21:24 |
| → joch_n joined | 21:24 |
| ← rendar_ left | 21:25 |
| ← brian_g left | 21:25 |
| ChanServ set mode: +v | 21:25 |
| ← glennpratt left | 21:25 |
| Guest58615 → GitCurious | 21:26 |
| ← Goplat left | 21:26 |
| → brian_g joined | 21:26 |
|
GitCurious
| hi | 21:26 |
|
SethRobertson
| !hi | 21:26 |
|
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. | 21:26 |
|
EugeneKay
| Who added that last bit? Do you doubt our good advice? ;-) | 21:27 |
| ← lacrymology left | 21:27 |
| → glennpratt joined | 21:27 |
|
cmn
| aren't gitinfo's triggers managed in git? | 21:27 |
| ← disappea_ left | 21:27 |
|
cmn
| if not, shame on us all | 21:27 |
|
GitCurious
| I'm looking to move our repository from svn to some decentralized system, at that point I'm hesitating between git and mercurial | 21:27 |
|
EugeneKay
| No, SQLite DB, I think. | 21:28 |
|
| https://github.com/jast/gitinfo | 21:28 |
| → disappearedng joined | 21:28 |
| ← Dave^|| left | 21:28 |
|
GitCurious
| does somebody have some killer argument in favor of Git ? :) | 21:29 |
| → tgunr_ joined | 21:29 |
|
EugeneKay
| It turns you gitsexual | 21:29 |
|
SethRobertson
| !isgitbetter | 21:29 |
|
gitinfo
| we think so, but if you don't, please go away and use $YOURFAVOURITESYSTEM. See http://whygitisbetterthanx.com/ among many many other places. | 21:29 |
|
EugeneKay
| GitCurious: http://www.whygitisbetterthanx.com/ | 21:29 |
| → disappea_ joined | 21:30 |
|
number_number
| the output of "git diff branch file" shows me the differences between my file on branchA and my current branchB.. I'd like to take one or two improvements from branchA and put them in branchB.. but not all.. I'd ideally like to open my difftool and copy over the bits I like.. | 21:30 |
| ← disappea_ left | 21:30 |
| → ihodes joined | 21:30 |
| ← disappearedng left | 21:30 |
|
number_number
| but otherwise I'd like to keep to two branches completely seperate.. if that makes sense | 21:30 |
|
GitCurious
| I'm new to decentralized SCM, the only things that makes me prefer mercurial over git are the changeset + numbered revision | 21:30 |
|
cmn
| checkout -p branch file might do what you want | 21:30 |
| → disappearedng joined | 21:30 |
|
SethRobertson
| GitCurious: One company I know went with Mecurial since it reduced the amount of power their developers had. They didn't want developers to be able to fix up problems in old commits if they happened to discover them *before* pushing. Strange but true. | 21:30 |
|
GitCurious
| is being gitsexual some kind of goal? | 21:31 |
|
| thx Eugene, checking that link | 21:31 |
| → linusoleander joined | 21:32 |
|
cmn
| the revision numbers are only ever local; git allows you to specify commits relative to each other | 21:32 |
|
| so you can do much the same | 21:32 |
| → kergoth joined | 21:32 |
|
SethRobertson
| GitCurious: I'm pretty sure that any distributed SCM is not going to have one constant integer for a revision which cannot change. Specifically, the number is only fixed relative to certain other information. | 21:32 |
|
| Sequential integer at least | 21:33 |
|
GitCurious
| @Seth right that is weird! | 21:33 |
|
number_number
| cmn: wow, that's absolutely perfect \o/ | 21:33 |
| ← retoryter left | 21:33 |
|
wereHamster
| SethRobertson: '!gitisbetter' reads as 'not gitisbetter' =~ 'git is not better', feels weird. It should be !gitisntbetter, dontyathink? | 21:34 |
|
| or !gitisworse | 21:34 |
|
adiabatic
| !gitisntbetter has too many negatives | 21:34 |
|
GitCurious
| yeah , I'm not saying revision number is anything revolutionnary ... it's just that I'm currently a svn user, which is already a big improvement as I used to work with Perforce before :/ | 21:34 |
|
Mikachu
| that is !helpful | 21:34 |
|
SethRobertson
| There are a number of places in gitinfo where the ! trigger sometimes makes sense when thought of as "not" and where it does not | 21:34 |
| ← disappearedng left | 21:35 |
| ← mcluskydodallas left | 21:35 |
|
cmn
| GitCurious: svn revision numbers are global, hg's are local | 21:35 |
|
| it's not the same thing at all | 21:35 |
| → mcluskydodallas joined | 21:35 |
|
SethRobertson
| GitCurious: You can compute a number with git if you want to, or just bite the bullet and use the globally unique SHA revision id. It is surprisingly easy to use after a while | 21:35 |
| ← delinquentme left | 21:35 |
|
cmn
| and you rarely need to do that anyway | 21:36 |
| → merlin83_ joined | 21:36 |
| ← jason237 left | 21:36 |
|
SethRobertson
| Any place where you are using a revision number for something important, you probably should be using a tag anyway, either that or the SHA would work just the same | 21:36 |
| ← matthiaskrgr left | 21:37 |
| ← glennpratt left | 21:37 |
|
GitCurious
| yeah that's right, I just like the fact that an integer is human friendly ... not much of a technical consideration | 21:37 |
| ← kevwil left | 21:38 |
| ← dr_lepper left | 21:38 |
| ← mxweas_ left | 21:38 |
|
vrillusions
| where I'm working there was a LOT of push-back. One of the ones being are db patch system was based off the increment revision id's of svn. Of course we redid things so it works | 21:38 |
| → matthiaskrgr joined | 21:39 |
|
vrillusions
| GitCurious: protip, you don't need to know the entire hash, only the first, say 5 or so | 21:39 |
|
| so I'll often here the dialog "what's your revision at?" "ec829" "OK that's what mine is" | 21:40 |
|
| git works the same way (without the yelling). `git lgo ec829` would work | 21:40 |
| → Bass10 joined | 21:40 |
|
wereHamster
| GitCurious: for what do you think you need the numbers? To tell your coworkers which commit you are talking about? Or when browsing the history locally? | 21:40 |
| ← pidus left | 21:40 |
|
vrillusions
| er, git log | 21:41 |
| → wilmoore joined | 21:41 |
| → Cromulent joined | 21:42 |
| ← fire31ight left | 21:43 |
| → fire31ight joined | 21:43 |
|
GitCurious
| we dont use them yet ... but I'm trying to think a bit further ... and it seems to me that referring to revisions numbers to settle some versioning scheme might be interesting. Also for those things you say actually wereHamster | 21:44 |
|
cmn
| if you need to version your schemes, use a version for them | 21:45 |
|
vrillusions
| GitCurious: probably if you get a need to reference a commit then you'd probably want to make a tag. Unlike svn tags in git just point to a commit, not a whole copy of the code base. So you can make as many tags as you want and it doesn't fill disk space (locally, server side svn uses hard links and stuff) | 21:46 |
| → dr_win joined | 21:46 |
| → rasmusth joined | 21:47 |
|
rasmusth
| error: unable to unlink old 'sites/default/default.settings.php' (Permission denied) | 21:47 |
|
| does anybody know this error | 21:47 |
| → jasonb joined | 21:48 |
|
wereHamster
| rasmusth: what do *you* think it means? | 21:48 |
|
GitCurious
| that is a possibility as well right ... I'll give it some thought, thanks vrillusions. | 21:48 |
| ← dr_win left | 21:48 |
| ← fisted left | 21:49 |
| ← soc42 left | 21:49 |
|
cmn
| rasmusth: have you seen the error messages in the parentheses? | 21:50 |
| ← ISF left | 21:51 |
| ← asakura left | 21:52 |
| ← jonesy left | 21:53 |
|
GitCurious
| have to go, will probably hang around here those days ... thanks and see you! | 21:53 |
| ← GitCurious left | 21:53 |
| → fisted joined | 21:54 |
| ← Chillance left | 21:54 |
|
vrillusions
| rasmusth: `ls -l sites/default` will also give a clue | 21:54 |
| → heptadecagram joined | 21:55 |
| → t4nkd joined | 21:55 |
| → ko1 joined | 21:56 |
| ← oc80z left | 21:56 |
| → AbsLacKWare joined | 21:56 |
| ← shruggar left | 21:57 |
|
AbsLacKWare
| hi... someone from brazil ? | 21:57 |
| → glennpratt joined | 21:58 |
| ← lars___ left | 21:58 |
| → Aktom joined | 21:58 |
| ← Aktom left | 21:58 |
| → oc80z joined | 21:58 |
| ← jasonbray left | 21:58 |
| ← Cromulent left | 21:59 |
| ← joch_n left | 21:59 |
| ← AbsLacKWare left | 21:59 |
| → glguy joined | 22:01 |
|
wereHamster
| why would that be relevant? | 22:03 |
| ← Zenopus left | 22:04 |
| ← whitman left | 22:05 |
| → herriojr2 joined | 22:05 |
| ← ChoiZ left | 22:05 |
| → cp_clegg joined | 22:05 |
| → tzervo joined | 22:06 |
| ← tommyvyo left | 22:06 |
| → ChoiZ joined | 22:06 |
| → disappearedng joined | 22:07 |
| ← herriojr1 left | 22:08 |
| → giallu joined | 22:10 |
| ← diogogmt left | 22:11 |
| ← _iron left | 22:11 |
|
EugeneKay
| Something something language other than English | 22:11 |
| → nurey joined | 22:11 |
| → asakura joined | 22:11 |
| → preflex_ joined | 22:12 |
| ← canton7 left | 22:12 |
| ← preflex left | 22:12 |
| ← xsism left | 22:12 |
| → diogogmt joined | 22:12 |
| preflex_ → preflex | 22:12 |
| ← joshsmith left | 22:12 |
|
cmn
| but any language they speak in Brazil they speak in many other places around the world | 22:14 |
| ← churp left | 22:14 |
|
yrlnry
| Surely there are all sorts of obscure Amazonian languages that are not widely spoken elsewhere. | 22:14 |
| → gchristensen joined | 22:15 |
|
cmn
| this is true | 22:16 |
|
| though in that case "Brazil" would also be the wrong place to ask for | 22:16 |
| ← heptadecagram left | 22:17 |
| ← kergoth left | 22:17 |
| ← stuntmachine left | 22:18 |
| ← linkedinu left | 22:19 |
| ← BiggFREE left | 22:21 |
|
| EugeneKay belches loudly | 22:21 |
|
MrKeuner
| :) | 22:21 |
| → linkedinyou joined | 22:21 |
| ← flijten left | 22:23 |
| → frogonwheels joined | 22:24 |
| ← gchristensen left | 22:25 |
| ← QaDeS left | 22:25 |
| ← TrineLocke left | 22:26 |
| ← diogogmt left | 22:29 |
| → diogogmt joined | 22:30 |
| ← jlk left | 22:32 |
| ← nurey left | 22:33 |
| ← digitalfiz left | 22:33 |
| → LucasTizma joined | 22:33 |
| → canton7 joined | 22:33 |
| → EricInBNE joined | 22:35 |
| → linkedinu joined | 22:35 |
| ← ThomasLocke left | 22:36 |
| ← glennpratt left | 22:36 |
| ← linkedinu left | 22:36 |
| → Francisc joined | 22:38 |
| → Inda5th joined | 22:39 |
| ← linkedinyou left | 22:39 |
|
Francisc
| If I git reset HEAD~, will I be allowed to push to remote origin, or is it the same as git commit --amend ? | 22:39 |
| ← nazgul101 left | 22:40 |
| → glennpratt joined | 22:40 |
|
chrisf
| Francisc: it's a history change. | 22:40 |
| → drizzd joined | 22:41 |
| → duckx joined | 22:41 |
| ← duckxx left | 22:41 |
| ← axl_ left | 22:41 |
| ← iocor left | 22:41 |
| ← spiette left | 22:42 |
| ← boombatower left | 22:42 |
|
Francisc
| Hey. I know that, but I'm still not sure how it affects push. | 22:43 |
|
bob2
| push by default doesn't let you do anything other than /append commits/ | 22:44 |
| → thiago joined | 22:44 |
| → axl_ joined | 22:44 |
| gitinfo set mode: +v | 22:44 |
|
bob2
| if you alter your branch such that it isn't just remote+some more commits, you can't push | 22:44 |
| ← axl_ left | 22:44 |
|
bob2
| so reseting into the past is fine, but any commit after that means you cannot push | 22:44 |
| → erichynds joined | 22:45 |
| ← glguy left | 22:45 |
| → axl_ joined | 22:45 |
|
Francisc
| Got it. Thanks. | 22:45 |
| ← axl_ left | 22:45 |
| → axl_ joined | 22:46 |
| ← Francisc left | 22:47 |
| ← macUzer left | 22:47 |
| → nazgul101 joined | 22:47 |
| ← dreiss left | 22:49 |
| → cooldude joined | 22:49 |
| → dreiss joined | 22:49 |
| → gchristensen joined | 22:50 |
| ← n8o-mba left | 22:51 |
| ← snearch left | 22:52 |
| ← iamjarvo left | 22:52 |
| → tatsuya__ joined | 22:53 |
| ← tatsuya_o left | 22:53 |
|
bob2
| hot | 22:53 |
| ← fr0stbyte left | 22:53 |
|
bob2
| git's model is reasonably simple i think | 22:54 |
|
| once it clicks | 22:54 |
| → eletuchy joined | 22:54 |
|
cmn
| it seems the hardest part is realise the lack of magic working in the background | 22:54 |
| ← disappearedng left | 22:55 |
| ChanServ set mode: +v | 22:55 |
| → disappearedng joined | 22:55 |
| ← martinjlowm left | 22:55 |
| → joshsmith joined | 22:55 |
| ← ipalaus left | 22:56 |
| ← bgerber left | 22:56 |
| ← dcarper left | 22:56 |
| ← lyddonb left | 22:56 |
| ← pmenon left | 22:56 |
| ← akosikeno left | 22:57 |
|
bob2
| heh | 22:57 |
| ← shurane left | 22:57 |
|
iheffner
| sufficiently advanced technology...? | 22:57 |
| ← martinjlowm-lptp left | 22:57 |
|
bob2
| the other thing people seem to struggle with is that packs/deltas are an implementation detail and to you it's just that git snapshotted everything ever | 22:57 |
|
talexb
| .. thank you Arthur C Clarke. | 22:57 |
| ← disappearedng left | 23:00 |
| → iamjarvo joined | 23:00 |
| → berserkr joined | 23:01 |
| ← macmartine left | 23:01 |
| → MistuhKurtz joined | 23:02 |
| ← t4nkd left | 23:02 |
| → bgerber joined | 23:03 |
| ← Sonderblade left | 23:03 |
| → EspadaV8 joined | 23:03 |
|
EspadaV8
| hi, has anyone tried using git svn over a CIFS and/or NFS share? I'm currently getting the following error - http://dpaste.org/frdOO/ | 23:03 |
| ← LeMike left | 23:05 |
| ← tatsuya__ left | 23:05 |
| → tatsuya_o joined | 23:05 |
| ← john2496 left | 23:05 |
| → dr_win joined | 23:05 |
| ← gusnan left | 23:06 |
|
cmn
| it looks like git gives up too early | 23:07 |
|
| or that NFS is too crappy an FS | 23:07 |
| ← iamjarvo left | 23:07 |
| → disappearedng joined | 23:08 |
| ← diogogmt left | 23:09 |
| ← ko1 left | 23:09 |
| ← jasonb left | 23:09 |
| ← tangledhelix left | 23:09 |
| ← kadoban left | 23:09 |
| ← Retistic left | 23:09 |
| ← mikepack left | 23:09 |
| ← orospakr left | 23:09 |
| ← Dreamer3 left | 23:09 |
| ← TeckniX left | 23:09 |
| ← T_X left | 23:09 |
| ← gjer984 left | 23:09 |
| ← gxk left | 23:09 |
| ← daethorian left | 23:09 |
| ← madsy left | 23:09 |
| ← mtkd left | 23:09 |
| ← JackWinter left | 23:09 |
| ← DrHouse|TARDIS left | 23:09 |
| ← jpalmer left | 23:09 |
| → gjer984 joined | 23:09 |
| → orospakr joined | 23:09 |
| → jasonb joined | 23:09 |
| → gxk joined | 23:09 |
| → jaisoares joined | 23:09 |
| → madsy joined | 23:09 |
| ← madsy left | 23:09 |
| → madsy joined | 23:09 |
| → JackWinter joined | 23:09 |
| → Retistic joined | 23:09 |
| → kadoban joined | 23:09 |
| → diogogmt joined | 23:09 |
| → Dreamer3 joined | 23:09 |
| → mikepack joined | 23:09 |
| → ko1 joined | 23:09 |
| → tangledhelix joined | 23:09 |
| → daethorian joined | 23:09 |
| → mtkd joined | 23:10 |
| → jasonbray joined | 23:10 |
| → shiba_yu36 joined | 23:10 |
| → bradly joined | 23:11 |
| ← MariusKarthaus left | 23:11 |
| tizzo → tizzo-afk | 23:11 |
| ← amgarching left | 23:12 |
| ← crisp left | 23:13 |
| → TeckniX joined | 23:14 |
| → T_X joined | 23:14 |
| ← akiress left | 23:14 |
| ← T_X left | 23:14 |
| → T_X joined | 23:14 |
| ← tzervo left | 23:14 |
| → akiress joined | 23:14 |
| ← alx- left | 23:14 |
| → amgarching joined | 23:15 |
| → iocor joined | 23:16 |
|
wald0
| how i can know the last commit id-revision (or date) from an external repository ? (without being myself in a clone of it) | 23:17 |
|
canton7
| wald0, git ls-remote | 23:18 |
|
wald0
| so, the equivalent of "svn info svn://domain..." from anywhere | 23:18 |
|
| thx | 23:18 |
| → tcurdt joined | 23:18 |
| → dorisabayon joined | 23:18 |
| ← tcurdt left | 23:18 |
| ← tewecske left | 23:19 |
|
cmn
| maybe, depends on what svn info does | 23:19 |
|
| ls-remote tells you the refs that the remote offers, nothing more | 23:19 |
|
| well, you can guess the git version from the extensions | 23:20 |
| ← fedesilva left | 23:20 |
| → plusk joined | 23:21 |
| ← PySloan left | 23:21 |
| ← Fandekasp left | 23:21 |
| → glennpratt_ joined | 23:22 |
| ← MacGyverNL left | 23:24 |
| ← simenbrekken left | 23:25 |
| ← glennpratt left | 23:25 |
| ← pfFredd left | 23:26 |
| → jason237 joined | 23:27 |
| → mdel_ joined | 23:29 |
| ← ehsan left | 23:29 |
| ← i42n left | 23:29 |
| ← panpainter left | 23:29 |
| → mitsuhiko joined | 23:30 |
|
mitsuhiko
| hey everybody | 23:30 |
| ← Nathandim left | 23:30 |
|
mitsuhiko
| My git client creates "Merge branch 'master' of server" whereas the one of a collegue creates "Merge remote-tracking branch 'origin/master'". Anyone know why the difference? | 23:30 |
|
| (default commit message) | 23:30 |
| ← Aaaarg left | 23:31 |
| → panpainter joined | 23:31 |
| ← panpainter left | 23:31 |
|
iheffner
| mitsuhiko: you are saying 'git merge master' and your collegue is saying 'git merge origin/master' | 23:31 |
|
kevlarman
| mitsuhiko: git --version for both? | 23:31 |
| ← aspotashev left | 23:31 |
| → panpainter joined | 23:31 |
|
mitsuhiko
| kevlarman: unfortunately i can't provide that right now since he's offline | 23:31 |
|
| in my case it's 1.7.5 and as far as I know the "Merge branch 'master' of server" has been like that for a long time | 23:32 |
|
kevlarman
| actually iheffner's explanation sounds pretty plausible | 23:32 |
|
mitsuhiko
| iheffner: i think we both say git pull | 23:33 |
|
| nevermind. iheffner is correct | 23:33 |
|
| i say git pull, he merges by and | 23:33 |
|
| thanks :) | 23:35 |
| ← hobodave left | 23:35 |
| → txomon|home joined | 23:35 |
| ← txomon|home left | 23:35 |
| → txomon|home joined | 23:35 |
| ← notjohn left | 23:35 |
| ← drizzd left | 23:37 |
| ← txomon|home left | 23:37 |
| → nOStahl joined | 23:38 |
|
nOStahl
| hey guys | 23:38 |
|
| trying to setup my new macbook pro as admin machine | 23:38 |
|
bremner
| "admin machine"? | 23:39 |
|
nOStahl
| added my new .pub to gitolite keydir and added commited and pushed | 23:39 |
| ← jasonbray left | 23:39 |
|
nOStahl
| cant clone it down it asks for password | 23:39 |
|
cmn
| set up ssh so it sends the key to the ssh server | 23:39 |
|
nOStahl
| ah is osx not doing that ? | 23:39 |
|
| my first time owning a mac heh | 23:40 |
| ← dr_win left | 23:40 |
|
RandalSchwartz
| same as on linux | 23:40 |
|
| edit .ssh/config | 23:40 |
|
iheffner
| nOStahl: you need to make sure you are running an ssh agent and add you key to it | 23:40 |
|
RandalSchwartz
| make sure you're logging in as user "git" (or maybe "gitolite") | 23:40 |
|
nOStahl
| ah i have a config file | 23:40 |
|
cmn
| nOStahl: you're the one who has to tell ssh | 23:40 |
|
| it makes no differece what OS | 23:41 |
|
RandalSchwartz
| Host gitolite.host.example.com | 23:41 |
|
| User gitolite | 23:41 |
|
| IdentityFile ~/.ssh/foo_rsa | 23:41 |
|
nOStahl
| aye i got that in my config | 23:41 |
|
RandalSchwartz
| because you aren't logging in as you... you're logging in as git. | 23:41 |
|
| then try "ssh -v that.host.name" | 23:42 |
|
| and see what key it offers | 23:42 |
|
nOStahl
| just tried testing the config with regular ssh | 23:42 |
|
| and it asks for password there too | 23:42 |
| → rchavik joined | 23:42 |
|
RandalSchwartz
| something isn't in place then | 23:42 |
|
| you edited gitolite-admin ? | 23:42 |
| ← rchavik left | 23:42 |
| → rchavik joined | 23:42 |
| → pekunz joined | 23:42 |
|
RandalSchwartz
| and pushed it back? | 23:42 |
|
| and your user has access to this other repo? | 23:42 |
|
nOStahl
| aye I added my new macbooks key from my old dev laptop | 23:43 |
|
| and pushed it | 23:43 |
|
RandalSchwartz
| as given in gitolite.conf | 23:43 |
|
iheffner
| nOStahl: check the file permissions; .ssh/ should be 0700 | 23:43 |
|
nOStahl
| I chmod 700 the .ssh file too already | 23:43 |
|
RandalSchwartz
| wait- you're already accessing gitolite-admin with some keypair right? | 23:43 |
|
iheffner
| nOStahl: .ssh/authorized_keys should be 0600 | 23:43 |
| → dr_win joined | 23:43 |
|
cmn
| so what does -v say? | 23:43 |
|
RandalSchwartz
| why are you adding a second keypair? | 23:43 |
| → stamina joined | 23:43 |
| → shurane joined | 23:44 |
|
cmn
| different computer | 23:44 |
| → Element9 joined | 23:44 |
|
RandalSchwartz
| and youre not using the same "username" for both keys, right? | 23:44 |
|
nOStahl
| debug1: Authentications that can continue: publickey,password | 23:44 |
|
| debug1: Next authentication method: publickey | 23:44 |
|
| debug1: Offering public key: /Users/nostahl/.ssh/id_rsa.pub | 23:44 |
|
| debug1: Server accepts key: pkalg ssh-rsa blen 277 | 23:44 |
|
| debug1: PEM_read_PrivateKey failed | 23:44 |
|
| debug1: read PEM private key done: type <unknown> | 23:44 |
|
| different username | 23:44 |
|
RandalSchwartz
| weird | 23:44 |
| ← alex__c2022 left | 23:44 |
| ← DarkAR left | 23:44 |
| ← koo4 left | 23:44 |
|
nOStahl
| there's the tail of what it reports with -v | 23:45 |
| ← bartek left | 23:45 |
| ← canton7 left | 23:45 |
|
iheffner
| try more -v | 23:45 |
| ← tylere left | 23:45 |
|
nOStahl
| PEM_read_PrivateKey failed ? | 23:46 |
| ← chrisgeorge left | 23:46 |
| → bartek joined | 23:47 |
|
cmn
| is your key readable? what does -vvv say? | 23:47 |
|
| and why on earth are you using a different username? | 23:47 |
|
nOStahl
| debug3: sign_and_send_pubkey | 23:47 |
|
| debug1: PEM_read_PrivateKey failed | 23:47 |
|
| debug1: read PEM private key done: type <unknown> | 23:47 |
|
| debug2: no passphrase given, try next key | 23:47 |
|
| debug2: we did not send a packet, disable method | 23:47 |
|
| debug3: authmethod_lookup password | 23:47 |
|
| debug3: remaining preferred: ,password | 23:47 |
| ← duckx left | 23:48 |
| → duckx joined | 23:48 |
|
iheffner
| nOStahl: looks like you have a passphrase on the key but you don't have an SSH_ASK_PASS(?) set | 23:49 |
|
cmn
| shouldn't ssh fall back to asking on the console? | 23:49 |
| → cvprog joined | 23:50 |
| ← brian_g left | 23:50 |
| ← sec^nd left | 23:50 |
| → brian_g joined | 23:51 |
|
| RandalSchwartz walks away | 23:51 |
|
nOStahl
| hrmm | 23:51 |
| ← bartek left | 23:51 |
|
cmn
| does it work if you ssh-add your key beforehand? | 23:52 |
| ← EspadaV8 left | 23:52 |
| → mtytel joined | 23:53 |
| ← duckx left | 23:54 |
|
nOStahl
| what do you mean | 23:54 |
|
| IM not familiar | 23:54 |
|
bob2
| wish os x had ssh-copy-id | 23:54 |
|
cmn
| man ssh-add | 23:55 |
|
iheffner
| nOStahl: in Terminal: eval $(ssh-agent) ; ssh-add | 23:55 |
|
nOStahl
| did the trick! | 23:56 |
|
| ty guys | 23:56 |
|
iheffner
| nOStahl: do you understand what was not working and why it is now? | 23:56 |
| ← BSaboia left | 23:57 |
|
kevlarman
| osx has an ssh agent running by default | 23:57 |
|
iheffner
| nOStahl: and if you do not take steps to make that a "permanent" setup on login, you will run into this not working again in the future. | 23:57 |
|
nOStahl
| not exactly, intuition tells me even though I had a passphrase set it was not registered | 23:57 |
|
cmn
| the gitolite docs probably have an explanation | 23:57 |
|
| under "not a gitolite problem" | 23:58 |
|
kevlarman
| and it should pop up a window by default | 23:58 |
| ← pekunz left | 23:58 |
| ← k_sze left | 23:58 |
|
sitaram
| cmn: yes but that doc is too broad concerning ssh; it leads to http://sitaramc.github.com/gitolite/sts.html (ssh troubleshooting) | 23:58 |
|
iheffner
| I think what was happening is that even if OS X has an agent with the correct key added to it, if your shell in Terminal does not have the right ENV settings, ssh won't/can't use the key | 23:59 |