IRCloggy #git 2012-10-09

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2012-10-09

Esa_1 joined00:00
eletuchy left00:02
jso` left00:02
elkng joined00:02
elkng "Written in C, Bourne Shell, Tcl, Perl" that a strange combination00:03
tureba left00:03
psoo left00:04
danlentz joined00:04
gitinfo set mode: +v00:05
hwrd|work left00:07
dreiss left00:07
cmn no stranger than any other application00:07
cehteh classical unix combination00:07
cmn but that wouldn't be git, it uses POSIX shell00:07
cehteh php, scheme and ada would be strange :)00:08
peterschmidler left00:08
Trioke_ joined00:08
Trioke left00:09
Squarism joined00:10
comps or prolog00:11
kerrick left00:11
resistivecorpse left00:13
resistivecorpse joined00:13
Fandekasp left00:13
jesseFromYVR joined00:14
tureba joined00:14
cooloney joined00:15
Chipzz_ left00:17
Chipzz_ joined00:17
aselder left00:18
dfc joined00:18
Chipzz_Chipzz00:18
rubious left00:19
kerrick joined00:19
jesseFromYVR left00:20
c98_ joined00:20
rubious joined00:21
rohan32|hw left00:21
joeytwiddle joined00:21
Squarism left00:23
johnny_rose left00:24
johnny_rose joined00:24
DofLeFou joined00:24
DofLeFou left00:24
simesy_work left00:28
eletuchy joined00:28
Guest94463mariusso00:29
tobo left00:30
Fandekasp joined00:31
archdori joined00:31
chmod\ joined00:32
derrekito joined00:32
hwrd|work joined00:32
resistivecorpse2 joined00:33
cakehero left00:35
chmod\ left00:35
alexstanford joined00:36
resistivecorpse left00:37
Milossh joined00:37
cakehero joined00:37
mritz joined00:37
SeoZ-work[AWAY]SeoZ00:38
eletuchy left00:38
cooloney left00:38
zivester joined00:39
jperry2_ left00:40
mkadin left00:40
simesy_work joined00:41
eletuchy joined00:41
Parhs left00:41
gusnan left00:42
tmcmahon joined00:42
Guest62132 left00:43
dreiss joined00:43
haydenmuhl left00:44
nsang joined00:47
neataroni joined00:50
neataroni ive been pushing to github all day, now im getting "You don't exist, go away!" ...why?00:50
nsang left00:50
daniel_- left00:50
wwwjfy joined00:50
cmn and you get that from github?00:51
neataroni cmn: actually no, jsut when i get commit -m "blah"00:51
and also when i try to pull from github00:51
cmn right, when creating a commit, start with that00:52
you haven't told git on that system who you are, and your system doesn't know either00:52
neataroni cmn: yes, pulling gives me you dont exist too00:52
AlbireoX left00:52
cmn right, creatig commits00:52
neataroni cmn: why would that happen all of a sudden?00:52
cmn your uid is somehow invalid00:52
neataroni could git reset --hard have done it somehow?00:53
cmn no00:53
mikepack joined00:53
cmn unless you're doing in in a version-controlled /etc00:53
jesseFromYVR joined00:53
cmn see if 'id' can tell you who you are00:53
thiago that message doesn't come from Git00:53
cmn yes, it does00:53
neataroni id in bash gives me some info00:54
cmn git help var00:54
man git var00:54
gitinfo the git-var manpage is available at http://git-scm.com/docs/git-var.html00:54
thiago git grep "You don't exist, go away" matches nothing00:54
cooloney joined00:54
aselder joined00:54
cmn your version is probably too new00:54
neataroni yea, its no longer there in latest version i think00:54
johnny_rose left00:55
cmn oh, the web manpage is also too new00:55
neataroni cmn: so id gives me output, do i care about anything in there in particular?00:55
johnny_rose joined00:55
Chipzz thiago: because it's not a git error message nor an error message of your code?00:55
thiago ah, I see it removed in 2f70587502b6b5a8cfda5a3eff54392f48e2db8d (May 21)00:55
cmn the GECOS field, which is where your name is, IIRC00:55
Chipzz thiago: if I'm not mistaken that error message is an error message of bash00:55
cmn but that only gets queried if you haven't told git who you are00:55
Chipzz: no, see the conversation00:56
thiago Chipzz: it used to come from other sources too00:56
neataroni cmn: i dont see a GECOS00:56
cmn huh?00:56
tinti left00:58
neataroni cmn: was that huh directed at me?00:58
thiago $ strings =ssh | grep "You don't exist"00:58
You don't exist, go away!00:58
hwrd|work left01:00
cmn but git-commit doesn't call ssh01:00
neataroni: yes01:00
mritz left01:00
neataroni cmn: i am using the ssh url for pushing and pulling01:00
cmn irrelevant01:00
Quevin joined01:01
neataroni cmn: when i type id into bash, i dont see the string "GECOS" in the output anywhere01:01
thiago also found in dotlockfile, kdepasswd, minicom, slogin, talk, userinfo and wall01:01
_dzonder joined01:01
cmn right, it wouldn't have it01:01
neataroni cmn: ok. so how do I fix this?01:02
dzonder left01:02
cmn by figuring out what the problem is01:02
or you can just tell git who you are01:02
neataroni cmn: oh. Any idea why it would have forgotten?01:03
cmn not without knowing what's happened01:03
kenperkins left01:03
cmn your config file could be corrupted or empty due to fs/system crash, deleted accidentally, you somehow unset the options...01:03
xxthink joined01:05
neataroni cmn: interesting. well git config --global user.name "blah" fixed it01:05
thank you01:05
cmn right01:05
aselder left01:06
neataroni that error message is right up there with homebrew's "cowardly refusing install"01:06
Chipzz actually I find it quite humorous :)01:06
etcetera left01:06
thiago neataroni: the error message comes from when getpwuid(getuid()) fails01:06
hyperair joined01:07
mritz joined01:07
quazimodo left01:07
neataroni thiago: ok, well whoever wrote that error message was a fool01:07
Chipzz no, he had a sense of humor :)01:07
thiago neataroni: check by running: getent passwd, if you're still there01:07
the error message has a long tradition. It was copied from other tools.01:07
sente` joined01:08
cmn it's well established, and you shouldn't be seeing it in any case01:09
intripoon joined01:09
cmn somehow both git and your system forgot what your name is01:09
Chipzz in most cases because your user got deleted somehow01:09
hwrd|work joined01:10
_W_ left01:10
_W_ joined01:10
Chipzz if I were you I would try logging in at a console to see if you can still login01:10
aspotashev left01:10
Chipzz that git error message might be the least of your worries ;P01:10
diegoviola joined01:10
dv310p3r joined01:11
Chipzz this doesn't normally just happen. chances are it didn't start occuring by itself, but it started to occur because you fucked up in some big way01:11
hwrd|work left01:12
ncr100 left01:12
thiago that error message only occurs if your user is deleted while you're logged in01:12
jdunck left01:12
intripoon_ left01:12
xiangfu joined01:12
thiago or if the system is misconfigured (LDAP/NIS databases down)01:12
chaiz joined01:12
thiago or any bug that would make that appear to be the case (bug in glibc's NSS)01:13
Chipzz neataroni: do yourself a favor and check if you can login01:13
rchavik joined01:13
rchavik left01:13
rchavik joined01:13
neataroni Chipzz: to what? git pushing pulling and cloning is working ok now01:13
Chipzz neataroni: 03:10 < Chipzz> if I were you I would try logging in at a console to see if you can still login01:14
Yuuhi```` joined01:14
Chipzz neataroni: IMO you fixed the symptom, not the problem01:14
neataroni Chipzz: true01:14
johnny_rose left01:14
Chipzz neataroni: tbh I wouldn't be surprised if you were locked out of your system after a reboot01:14
johnny_rose joined01:14
Chipzz so: do yourself a favor and check if you can login at a console01:14
neataroni Chipzz: ok so how do i do what you say?01:14
Chipzz ctrl-alt-f101:15
enter username, enter password01:15
Yuuhi``` left01:15
danlentz left01:15
Chipzz and I would suggest a) not logging out of your current X session and b) keeping any root terminal (if any) open01:17
until you've established that yes, you can log in01:17
thiago left01:17
rend joined01:18
rend I created a new branch, when I push it says everything is updated01:18
I'm pushing to github01:18
mkadin joined01:18
flippo joined01:19
Lgb left01:20
neataroni how do i push from one repo on my local machine, to another repo on my same local machine?01:20
Mocramis left01:20
cooloney left01:20
cmn presumably the problem is that git says it's up to date, rather than updated?01:20
kerrick left01:20
Mocramis joined01:20
rend cmn: it didn't push the branch, I remember I had to do something about new branches before pushing them01:20
what was it?01:20
Bombe left01:20
cmn you have to push them01:20
hwrd|work joined01:20
cmn see push.default man git config01:20
gitinfo the git-config manpage is available at http://git-scm.com/docs/git-config.html01:20
erichynds left01:21
fisted left01:21
Lgb joined01:23
CareBear\ neataroni : mkdir /other/repo && git remote add other /other/repo && git push other master01:23
neataroni i tried that and it worked! good job git01:23
quazimodo joined01:26
Vampire0_ joined01:28
johnny_rose left01:28
johnny_rose joined01:29
tyoc213 joined01:30
apok_ joined01:30
vitor-br joined01:30
tyoc213 Hi there, is there a way to show a stage without a name?01:30
forget it01:30
neataroni how do i push just a folder, or just a file01:31
Vampire0 left01:31
cmn you don't01:32
apok left01:33
hwrd|work left01:33
Chib left01:33
neataroni ok, i see that01:34
apok_ left01:34
Chib joined01:34
neataroni now here is a ridiculous question: what if my dev and production repos are initialized at different levels- in my case, the dev repo has a parent directory that the production repo doesnt01:35
codewrangler left01:35
SegFaultAX|work left01:35
tyoc213 left01:36
jesseFromYVR left01:36
AMfish left01:42
aspotashev joined01:42
Bombe joined01:42
o_Owl joined01:44
hays left01:45
hwrd|work joined01:46
AMfish joined01:47
Davey left01:48
Vert left01:48
mritz left01:50
SegFaultAX|work joined01:51
AlbireoX joined01:52
MacGyver left01:52
AlbireoX left01:53
wwwjfy left01:53
mikegit joined01:53
AlbireoX joined01:53
nullbit left01:54
nullbit joined01:55
AMfish left01:56
JPeterson left01:56
project2501a left01:57
project2501b left01:57
JPeterson joined01:57
jalama left01:58
AlbireoX left01:58
project2501a joined01:59
hwrd|work left02:00
witul left02:01
simesy_work left02:01
resistivecorpse2 left02:01
resistivecorpse2 joined02:01
juvenal left02:02
BSaboia left02:03
BSaboia joined02:03
kermit joined02:03
quazimodo left02:04
SegFaultAX|work left02:05
eletuchy_ joined02:05
pgokeeffe left02:05
rubious left02:05
simesy_work joined02:06
SegFaultAX|work joined02:06
c45y left02:07
eletuchy left02:08
mikegit left02:08
plato left02:09
brentratliff left02:10
Synthead joined02:13
SegFaultAX|work left02:13
johnny_rose left02:13
holo joined02:13
holo hi02:13
johnny_rose joined02:13
project2501b joined02:14
preben joined02:14
holo how do i undo some mistake in .git/config?02:14
svetlyak40wt joined02:14
LekeFly left02:15
holo i know this sounds silly, as it's not versioned, but how problematic it is02:15
SkAzZ left02:15
milki nothing you can do about it02:15
project2501a left02:17
MacGyver joined02:18
MacGyver left02:18
MacGyver joined02:18
holo actually i should have manually versioned it..02:19
Trioke_ left02:19
holo with a symlink outside .git02:20
harish_ joined02:20
tmcmahon left02:22
mikegit joined02:23
mkadin left02:23
gitinfo set mode: +v02:23
mikegit left02:23
JakeSays_JakeSays02:23
svetlyak40wt left02:23
jdyin joined02:24
mikegit joined02:24
rubious joined02:25
rend left02:25
Trioke joined02:26
mkadin joined02:26
dpk left02:27
mkadin left02:27
jesseFromYVR joined02:29
simesy_work left02:29
farrioth joined02:30
farrioth left02:30
mikepack left02:30
guampa left02:30
chris64 left02:32
artnez left02:32
sam____ left02:32
skyf joined02:34
ruskie left02:35
eletuchy_ left02:35
gitinfo set mode: +v02:36
mikegit I'm trying to turn off automatic merges (to mark everything as a conflict no matter what) --- I've worked on .gitattributes file, and various settings like --no-ff and --no-commit and I can't seem to turn off the auto merging... Shouldn't that be a pretty simple setting? What am I missing.. if anyone can give advice, thank you in advance.02:38
orafu left02:40
orafu joined02:40
SegFaultAX left02:42
SethRobertson octopus is documented as trying less hard to automatically merge02:42
Ah, merge.<driver> may be what you want, mikegit02:43
codertux left02:43
codertux joined02:44
SethRobertson left02:45
SethRobertson joined02:45
steveoliver_ left02:45
SethRobertson If %O is different from any %B, then exit non-zero02:45
jobin left02:46
steveoliver_mobi joined02:46
josePhoenix joined02:46
josePhoenix Hello all02:46
gitinfo josePhoenix: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.02:46
steveoliver_mobistvlvr02:47
stvlvr left02:47
josePhoenix I'm trying to set up a workflow where I push to a branch called 'staging' on GitHub, then pull from it on my staging server... but I seem to be getting tangled up in branches and remotes02:47
I added a remote named github but I'm not sure how to update and checkout the staging branch from it02:48
irqq joined02:48
josePhoenix Hum. Might have just figured it out02:49
So if I do git checkout --track github/staging, will the working directory update when I do git fetch github?02:49
replore_ joined02:49
LucasTizma joined02:50
skyf left02:50
milki josePhoenix: fetch does not update working dirs02:50
since you did tracking, you can either do git pull github or git merge02:50
josePhoenix: pull = fetch+merge02:51
josePhoenix ahhh gitcha02:51
*gotcha02:51
Since this is living on the staging server it shouldn't have any local edits.. but is there a way to tell git pull to discard them if there are?02:52
CollinPDX left02:52
CollinPD_ joined02:52
milki you can run a git clean before you run git pull02:52
josePhoenix ah, never knew about that command02:53
thanks!02:53
AlbireoX joined02:53
nlpplz left02:53
TheFuzzball left02:53
zhouxiukun joined02:53
milki josePhoenix: most common flags for clean are -fdx i think02:53
daniel-s joined02:54
fisted joined02:54
glennpratt left02:54
nlpplz joined02:55
wwwjfy joined02:56
TheFuzzball joined02:56
AlbireoX left02:56
flippo left02:57
AlbireoX joined02:57
EugeneKay josePhoenix - !deploy may be of interest02:57
gitinfo josePhoenix: Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html02:57
sluther joined02:57
axl_ joined02:58
ammbot_ joined02:58
simesy_work joined02:59
josePhoenix EugeneKay: I'm really just using it as a transport... Fabric is doing the heavy lifting03:00
nedbat left03:01
PCChris left03:01
AlbireoX left03:01
adamben left03:02
simesy_w_ joined03:03
ruskie joined03:03
simesy_work left03:03
setmeaway joined03:03
c45y joined03:03
alexisabril joined03:05
preben left03:05
LekeFly joined03:05
replore_ left03:05
gavin_huang joined03:07
simesy_w_ left03:07
ReekenX joined03:08
harish_afk left03:10
hyperair left03:10
ammar left03:12
reikalusikka left03:12
kirin` left03:12
ammar joined03:12
sejo left03:12
sejo joined03:12
fuller left03:12
Feh left03:12
soiledpants left03:12
dj_tjerk left03:12
ammbot__ joined03:12
Feh joined03:12
soiledpants joined03:12
fuller joined03:12
reikalusikka joined03:12
ammbot_ left03:12
yann|work left03:12
fullerGuest2176303:13
Kicer86 left03:13
Kicer86 joined03:13
kirin` joined03:13
dj_tjerk joined03:14
simesy_work joined03:14
bicyclesuv joined03:14
artnez joined03:14
hyperair joined03:14
knoch left03:16
black_13 joined03:17
jamietech left03:18
heytrav left03:18
kpreid left03:18
jamietech joined03:18
kirin` left03:19
knoch joined03:20
heytrav joined03:20
kirin` joined03:20
lkthomas joined03:21
lkthomas hey guys, how could I git pull specific version of repo ?03:21
Adys_ joined03:21
devinrhode2 left03:22
Adys left03:23
kirin` left03:25
mikegit SethRobertson: thank you for responding! sorry for my delay...just got back to computer... I happened across the merge.<driver> numerous times but it seemed ominous to me at the moment... but with your suggestion I will focus on that .. thank you again.03:25
SethRobertson lkthomas: git cannot. You fetch the repo and then checkout the version you want. Same effect, kina03:26
yann|work joined03:26
mikegit SethRobertson: also thanks for the octopus comment...... that helps focus my search for a solution as well.03:26
kirin` joined03:26
resistivecorpse joined03:27
lkthomas anyone ?03:27
how could I get older version of commit ?03:28
SethRobertson lkthomas: You mean, anyone besides me? What did you dislike about my answer?03:28
Freeder joined03:28
Freeder Hi - whats the proper way to rename a file already commit'd to git?03:28
SethRobertson Freeder: `git mv` is one way03:29
jdunck joined03:29
Freeder thanks. for bonus points, can I do it from the git plugin for eclipse? :)03:29
resistivecorpse2 left03:29
SethRobertson Worse comes to worse, add the new name and delete the old. I'm not an eclipser03:30
sjuxax joined03:30
EugeneKay Probably. Not many of us use Eclipse/JGit.03:30
SethRobertson (that's what git-mv does behind the scenes)03:30
lkthomas sorry, I miss the answer03:31
sjuxax Hello. I'd like to bundle commits affecting only a specific file. git bundle create product.bundle master -- cron/product.rb does not seem to work, though its equivalent works to rev-list. I get: warning: ref 'master' is excluded by the rev-list options; fatal: Refusing to create empty bundle. rev-list returns a list of commit hashes.03:31
irqq left03:31
spyro joined03:32
lkthomas SethRobertson: what's the exact instruction for reverse back to older version of repo ?03:33
donri joined03:33
Freeder thanks all03:34
Freeder left03:34
EugeneKay lkthomas - you appear to be misunderstanding how git's object model works. You clone an entire repo, which normally gives you the "default" branch checked out(typically 'master'). From there you can check out a branch which is at a different revision, or check out the revision you want.03:35
DancingBear left03:35
DancingBear joined03:35
EugeneKay lkthomas - clone is all-or-nothing. There is no way to get just a single commit with the standard git stack. Some git hsoting services(such as github) will let you get a tarball of a given commit, but that is not part of `git`.03:36
This is in stark contrast to SVN & other CVCSes, because git is not SVN.03:36
lkthomas ok03:36
I god the tarball03:36
got*03:36
LucasTizma left03:37
SethRobertson lkthomas: What? tarballs are pretty much the opposite of git. If you have the git history, you just `git checkout <SHA1>` or branchname or tagname or something like that.03:37
frogonwheels EugeneKay: you can get a tarball of a given commit on a remote repo with git archive --remote afaict - which is cool .03:38
SethRobertson For newer git-server versions which allow this.03:38
lkthomas I am completely lost03:38
EugeneKay frogonwheels - does that permit you to get an arbitrary SHA? Or just a ref? Or what? And I have to imagine that the remote git-send-pack needs to be new enough - that option is new to me.03:39
frogonwheels lkthomas: Have you cloned a repo?03:39
svetlyak40wt joined03:39
lkthomas I did but I done something wrong with the git and cause some problem03:39
frogonwheels lkthomas: !doesntwork03:40
gitinfo lkthomas: Sorry to hear it doesn't work. What happened? Did it fall asleep on your couch, with your sister? Eat your homework? What did you want it to do? What happened instead? Please be specific!03:40
lkthomas git pull03:40
You asked me to pull without telling me which branch you03:40
want to merge with, and 'branch.8faeeccfeb9301027da7e57b0a1eaad23680ed35.merge' in03:40
frogonwheels lkthomas: ok. well you don't want to 'pull' an old commit.03:40
lkthomas ok, what should I do now then ?!03:40
frogonwheels lkthomas: you already (most likely) have all the information about your history on your local disk.03:41
lkthomas ok, then ?03:41
frogonwheels lkthomas: that depends on what you are doing.03:41
lkthomas: Do you want to just try and compile/run an older commit (the whole thing) .03:41
vitor-br left03:41
frogonwheels lkthomas: do you want to just grab an older version of a particular file?03:41
lkthomas older version, full tree03:42
whole thing03:42
frogonwheels lkthomas: Do you plan on modifying it?03:42
lkthomas no03:42
I am a user, not a programmer03:42
frogonwheels lkthomas: git checkout {sha1}03:42
svetlyak40wt_ joined03:42
lkthomas git checkout 8faeeccfeb9301027da7e57b0a1eaad23680ed3503:42
Already on '8faeeccfeb9301027da7e57b0a1eaad23680ed35'03:42
EugeneKay Tada, you're done.03:43
frogonwheels Ok. then your tree is already at that point.03:43
lkthomas LOL03:43
frogonwheels lkthomas: does 'git status' show any modifications?03:43
lkthomas yes,03:43
svetlyak40wt left03:44
frogonwheels lkthomas: did you make them?03:44
lkthomas: do you want to keep them?03:44
lkthomas "keep them" ?03:44
frogonwheels lkthomas: do you want to just get rid of those changes?03:45
wolftankk joined03:45
lkthomas I don't know what are you talking about, my objective is to reverse to specific version and compile03:45
frogonwheels lkthomas: how about !pastebin what the output of git status is ?03:46
gitinfo lkthomas: [!paste] Please paste snippets longer than one line at a pastebin site, such as https://gist.github.com/ rather than in-channel.03:46
josePhoenix Hmm.03:47
Not sure how this happened but one of my files seems to have ended up in the master branch... and is no longer03:47
A db migration says it's been applied but does not exist on disk03:47
How would I go about looking for it?03:48
sangi joined03:48
lkthomas error: Entry 'ADL/adl_sdk.h' would be overwritten by merge. Cannot merge.03:49
trying to checkout older version03:50
how could I force merge ?03:52
donri left03:53
offby1 lkthomas: rm ADL/adl_sdk.h ; git merge whatever03:53
frogonwheels lkthomas: YOu probably just want to git reset --hard before you checkout the other version03:54
lkthomas heh, I did -f to force merge :)03:54
frogonwheels lkthomas: that will get rid of all differences between what's in your tree, and the version you have checked out03:54
lkthomas I redo it03:55
elkng left03:57
ak5 joined03:58
ewet joined03:58
lkthomas http://pastebin.com/EY6b1eUa03:59
nevermind03:59
please ignore03:59
ak5 hi #git, I'm still trying to wrap my head around the concepts behind git. I have a project based on a project hosted on github, that needs to stay uptodate with their release version. I cloned them, did checkout -b release origin/release and now have my own dev branch which is a branch off that release branch (their master doesn't interest me). Can I store all of this in my own gitolite server?04:01
axl_ left04:01
flippo joined04:02
lkthomas thanks guys04:02
bicyclesuv left04:03
ewet left04:03
SethRobertson ak5: Yes04:03
ewet joined04:04
derpops joined04:04
ewet hi, is anyone aware of a simple way to use git as a minimal scm system? it basically be used to track some /etc stuff, some stuff in /home and /usr/local ... I don't know if putting .git in root is a good idea ...04:05
offby1 ewet: it's dicey04:05
git doesn't preserve permissions (much), but they're crucial for many of those files04:05
there's a nice project called etckeeper that does some of what you want04:06
milki ewet: also !vcsh04:07
gitinfo ewet: https://github.com/RichiH/vcsh -- version control shell - manage dotfiles using git's fake bare repos to put more than one working directory into $HOME04:07
milki well, i guess its not /etc04:07
ewet: confman does svn for config files04:07
AlbireoX joined04:07
milki then theres also those management systems like puppet04:07
and chef04:07
ewet offby1: oh I think I remember seeing etckeeper04:08
milki: I was thinking chef and the likes would be too big but maybe ...04:08
frogonwheels ewet: dotfiles04:08
!dotfiles04:08
gitinfo There are various issues associated with keeping dot-files in git (permissions, avoiding having a .git in ~/ or /). One attempt to manage this is http://dotfiles.github.com/04:08
milki ya dunno04:08
i havent looked into them for simple things like dotfiles04:09
but that has piqued my interest now04:09
i need to learn how to use them anyways04:09
offby1 I use plain git for stuff in my home directory. Got a crufty handmade script to fix up the symlinks.04:10
Got a condo made-a stone-a.04:10
jesseFromYVR left04:10
milki o.O04:10
a condo made of stone?04:10
ewet frogonwheels: thanks, will look into it - github usually employs minimal solutions04:11
milki ive used rsync and havent noticed much in terms of permission issues04:12
maybe i should pay more attention to the files...04:12
rsync wont change permissions of the original file right?04:12
WillMarshall left04:13
cehteh original as in source from where you copy?04:13
alexisabril left04:13
milki destination04:14
cehteh for that it has different options and actually may change permisions04:15
milki hmmm04:15
cehteh and i wonder how it does with --link-dest04:15
simesy_work left04:15
milki maybe i should verify the permission of my etc files then...04:15
offby1 milki: you, sir/madam, are either not an American, or under the age of 40, or both.04:15
cehteh because i use that for my backups but didnt checked that04:15
milki offby1: most people say i live under several rocks04:16
offby1 or that.04:16
cehteh milki: --fake-super comes also handy, when your FS supports xattrs04:16
Akufen left04:17
milki whoa04:17
cooool04:17
cehteh doing backups as any non root user04:17
milki backups!?04:17
cehteh for me :)04:17
offby1 http://en.Wikipedia.org/wiki/King_Tut_(song) if you don't mind it being spelled out04:17
milki sounds like a pop culture thing04:18
simesy_work joined04:18
milki yup, singer actor04:18
BSaboia left04:19
ISF left04:19
private joined04:20
ewet okay I'll carry your ideas home. i think i#ve been through this before ... thanks offby1, milki, frogonwheels04:20
privateGuest3134504:21
cooloney joined04:21
cooloney left04:21
cooloney joined04:22
xxc_michael joined04:22
black_13 left04:22
Parhs joined04:28
cakehero left04:29
ewet left04:29
simesy_work left04:29
nerp left04:32
SegFaultAX|work joined04:34
resistivecorpse left04:35
resistivecorpse joined04:35
Parhs left04:37
pretty_function joined04:37
danlentz joined04:38
madewokherd left04:38
pretty_function left04:38
pretty_function joined04:38
beautifulmind joined04:39
NfNitLoop left04:40
NfNitLoop joined04:40
Trioke_ joined04:41
cooloney left04:41
Trioke left04:44
Trioke_ left04:45
danlentz left04:49
hoschi joined04:53
jesseFromYVR joined04:54
ReekenX left04:54
imachuchu left04:56
jesseFromYVR left04:56
Trioke joined04:57
bubbles10101 joined04:57
ReekenX joined04:57
dreiss left04:58
project2501a joined04:58
simesy_work joined04:59
simesy_work left05:00
simesy_work joined05:00
quazimodo joined05:02
hyperair left05:02
ReekenX left05:03
_huoxito left05:04
simesy_work left05:05
k-man joined05:06
ReekenX joined05:06
k-man i've got a small project i want to put on github, trouble is the git commit history is probably full of private info. I'd like to just create a fresh repo and put that on github05:07
thirdknife joined05:07
k-man should i just copy the files to a new directory and git init; git add?05:07
EugeneKay k-man - that is what I would do. If you want to be able to cherry-pick from the old history to the new(within the same repo) you can create an !orphan branch and then only push that one to github05:08
gitinfo k-man: To create an orphaned branch(unrelated to existing history): `git checkout --orphan newbranchname`. This will leave your index/worktree as-is(use `rm .git/index; git clean -dfx` to delete EVERYTHING). If you get 'error: unknown option `orphan`' see !orphan_old. For an empty/null commit see !orphan_null.05:08
EugeneKay But 'git commit -a -m "Import project FooBar"' is a lot easier ;-)05:08
Liquid-S_ joined05:09
Liquid-S_ left05:09
Liquid-Silence joined05:10
Liquid-Silence left05:10
Liquid-Silence joined05:10
khmarbaise_ left05:12
k-man thanks EugeneKay05:12
Quevin left05:12
hwrd|work joined05:12
flippo left05:13
osmosis left05:13
k-man i don't think the history is really that interesting05:13
derpops left05:14
kryl99 left05:16
Goplat left05:18
undecim left05:19
shruggar joined05:19
jargon- left05:21
kryl99 joined05:22
gavin_huang left05:22
fornext joined05:23
thiago joined05:23
AlbireoX left05:23
AlbireoX joined05:24
macrover joined05:24
beautifulmind left05:24
cobra-the-joker joined05:24
simesy_work joined05:25
cakehero joined05:25
aristidesfl left05:25
aristidesfl joined05:27
ak5 so when I do checkout -b stable-branch origin/1.0-branch, and the next stable version comes out at 2.0-branch, can I rebase my branch stable-branch to origin/2.0-branch05:27
is that how I am supposed to do it?05:27
maxandersen1 joined05:27
apok joined05:27
pantsman joined05:27
pantsman left05:27
pantsman joined05:27
beautifulmind joined05:27
AlbireoX left05:28
frogonwheels ak5: that would certainly work. assuming your stable-branch stuff is not pushed anywhere.05:29
ak5 frogonwheels: that is pushed to my own gitolite server05:29
also, can I do that with my local 'master' to keep it clean for me?05:30
frogonwheels ak5: if it is, you can still do it, but I would sggest a name change first.05:30
maxandersen left05:30
frogonwheels ak5: for example you could git checkout -b stable-branch-2.0 && git rebase origin/2.0-branch05:30
ak5 yes05:31
is there any way to do this with master?05:31
it would be super clean for me05:31
Chib left05:31
ak5 why do you suggest the name change?05:31
frogonwheels ak5: I'm reading between the lines a bit here, and making assumptions about waht you've done.05:32
ak5 frogonwheels: I am actually playing with git to figure it out :D05:32
frogonwheels ak5: if you've pushed something to even a local repository, presumably with some of your own changes, then you may want to keep that as it is, and make a new branch with those same changes to the new upstream branch05:33
skul joined05:33
frogonwheels ak5: there are many, many ways to skin this particular cat.05:33
ak5 frogonwheels: I will never have write access to this repo05:33
on github05:33
frogonwheels ak5: You may, 'cause you might just fork it into your own version of the github repo, and push it to your own forked version, and do pull requests..05:34
elkng joined05:34
_iron joined05:34
ak5 frogonwheels: can you check it out? It is wordpress on github: https://github.com/WordPress/WordPress/tree/3.4-branch05:34
frogonwheels ak5: and you've make changes to it?05:34
or you want to?05:34
ak5 I have not, but will05:34
that branch is their 'stable' version05:35
patie left05:35
ak5 'master' branch is for dev05:35
I want my master to be their stable and I will rebase as I go along (so if 3.5 comes out I rebase, etc.)05:35
frogonwheels ak5: 'master' is only a name. you can all yours ak5/master for example05:35
ak5 i see05:35
Quevin joined05:36
frogonwheels ak5: if by 'master' you mean 'default branch' then you can change what the default branch is for a clone.05:36
ak5 and if I want to change it later on?05:36
frogonwheels ak5: change the default branch you mean?05:36
Quevin left05:36
donri joined05:36
ak5 yes05:36
so if they move their stable version to a new branch, say 3.505:37
I have a clone of 3.4 with changes05:37
I can rebase some way?05:37
macrover left05:37
frogonwheels ak5: yep. you can rebase your changes. personally I'd use a new branchname for the 3.5.05:38
ak5: just because you've rebased a bunch of commits, doesn't mean you can't keep the original commits with a different (or the original) branch name05:38
ak5 frogonwheels: can you walk me through this here? How do I clone something with a branch being default other than master05:39
cooloney joined05:39
ak5 frogonwheels: I see05:40
frogonwheels ak5: just google gitolite change default branch05:40
ak5 ok05:40
quazimodo left05:40
jargon- joined05:40
ak5 frogonwheels: is there any way to do it from github? checkout their 3.4 branch?05:40
frogonwheels ak5: when you clone, you can simply git checkout 3.405:41
err.. git checkout 3.4-branch05:41
ak5 I need to do git checkout -b MYNAME origin/3.4-branch for some reason, though05:41
frogonwheels ak5: cloning gives you a copy of the whole repo, with all history..05:42
ak5: if you do git checkout 3.4-branch then the firt time it will set up 3.4-branch to track origin/3.4-branch automagically05:42
anish[1] joined05:42
frogonwheels ak5: otherwise you can use git checkout -b mylocalname origin/3.4-branch sure..05:42
ak5 frogonwheels: ok05:43
I am testing this :)05:43
skyf joined05:43
ammbot__ left05:44
harish_ left05:44
aspotashev left05:44
ak5 frogonwheels: so with git checkout 3.4-branch it doesn't track changes?05:44
from origin?05:44
harish joined05:45
jdunck left05:45
k-man its amazing how much it makes you clean up your code when you decide to release it for the first time05:45
ak5 ok it does05:45
ok, I think I get it now05:45
thierryp joined05:45
angelsl joined05:46
jdunck joined05:46
thiago left05:47
spectrum1 joined05:48
ak5 so now I can just create a new branch off of 3.4 and when I upgrade that branch to 3.5 with git checkout -b 3.5-branch && git rebase 3.5-branch my_branch_of_3.4-branch05:48
frogonwheels: is this correct?05:48
patie joined05:49
elkng left05:50
frogonwheels ak5: i'd call it something like ak5/3.5-branch so git checkout my7_branch_of_3.4-branch && git checkout -b my_branch_of_3.5-branch && git rebase origin/3.5-branch05:50
hyperair joined05:50
jesseFromYVR joined05:51
chaiz left05:52
cobra-the-joker left05:52
cobra-the-joker joined05:52
mikegit Anyone know how to force Conflicts on merging local branches? Seems like it should be a simple option, but I can't seem to do it... looked into merge.drivers, etc... But, #1) I either want to manually review all merging as it's happening (no auto merging) OR at the very least see what changes occurred... I'm quite confused why this isn't an easy capability to turn off....05:54
shruggar left05:54
mikegit (the auto merging, I mean)05:54
Lord_DeathMatch joined05:54
milki mikegit: is git diff not good enough?05:55
_ikke_ milki: there is no such thing as automerging05:55
The computer is either merging, or it is not05:55
mikegit milki: well, by that point, isn't it already merged in? I mean I could put --no-commit flag I guess......05:55
neataroni lets say my local repo has everything that a remote repo does, but some extra stuff to- is there a way to pull from remote so that it gets rid of local stuff not in remote?05:55
mikegit Well, yea.. but, during "conflicts" it doesnt' merge, and I have to then use git mergetool to resolve that with p4merge, or meld or some other merging tool with a gui... etc..05:56
_ikke_ neataroni: No, that's not what pull is for05:56
milki mikegit: you wont have conflict markers for things that dont conflict05:56
neataroni _ikke_: sorry, i dont mean pull necessarily, i just mean, is there a way to do that05:56
_ikke_ neataroni: Why do you want / need that05:56
mikegit I just want it to *not* even try to merge things it thinks it can resolve... and just leave it up to me 100% of the time,... similar to situations where it already is marking certain things unresolvable and I have to take care of it anyway.05:56
neataroni _ikke_: i have a bunch of shit in my local repo that i dont want there05:57
milki mikegit: are you trying to review the merge first?05:57
mikegit milki: yes yes... I want to review the merge first ... exactly.... just like if I did this "git merge otherbranch" (then was warned of conflicts on some files) then I run "git mergetool" and resolve the conflicts...05:57
milki review tools like gerrit make you finalize the merge before reviewing05:58
mikegit I want *all* difference files to just be marked as "conflict" status or whatever you call it... so I can just use mergetool myself... I don't want git to auto-resolve at all..05:58
milki why cant you bring your branch to the state you want to merge?05:59
mikegit maybe I'm totally missing a key element here... but it boggles my mind there isn't a flag or something like "--no-auto-merge" or something...05:59
TectuTectu|fork05:59
neataroni _ikke_: is there a way to do what i want to do, or should i just manually delete the files?05:59
milki thats because thats not what merge does05:59
_ikke_ mikegit: you want a 2 way merge instead of 3 way05:59
milki it WILL merge things that dont conflict and then show conflict markers for things it cant do06:00
so you dont want to use the merge command06:00
_iron left06:00
milki you sort of want a tool that selectively applies diffs06:00
mikegit _ikke_: ahhhhh .... ok.. my eyes are opening to my failure in understanding Git .................... so I want a 2-way merge? how do you activate that? I finally got my p4merge all configured in .gitconfigure, etc.... never came across 2-way yet.06:01
searching docs now....06:01
milki analogo would be like a git add =[06:01
er06:01
-p06:01
hmmm06:01
_ikke_ milki: afaik, git doesn't support 2-way merges06:01
mikegit: *06:02
neataroni: What branch are you talking about?06:02
jaseemabid joined06:02
mikegit ohhhhh... ok........ I think I see.............. if I have a "new branch" (blank ... empty.. etc) Then I can simply merge an existing branch into it and that might be considered 2-way ? But, 3-way means I'm merging 2 branches that have been worked on ... so, I think I still want 3-way merge..06:02
neataroni _ikke_: i dont know, i have the repo on the server, and a repo on github, i want to get the repo on the server to look like the repo on github06:03
milki mikegit: 3 way is 2 source brnaches into the current tree probably06:03
_ikke_ 3 way means it uses a common parent as base06:03
milki oo, that makes sense06:04
soee joined06:04
mikegit essentially it's like this... in one branch I have a file called "A.txt" and line #1 contains: "foo" but in a different branch line #2 contains: "bar" That should easily "auto-merge" without intervention... But I *want* intervention... I want it to let me manually merge those06:04
_ikke_ mikegit: the whitespace in you text is a bit anoying06:04
your*06:04
cooloney left06:04
mikegit _ikke_: sorry.. was an effort to make it clearer... will avoid the whitespace :)06:04
milki its an odd use of whitespace06:05
ThomasLocke joined06:05
_ikke_ mikegit: git is built to avoid as much manual intervention06:05
milki our internal plaintext parsers dont squash whitespace together06:05
_ikke_ Not sure if there is a mode that enforces conflicts06:06
milki never heard of it06:06
but i havent used merge only tools before -.-06:06
mikegit: what about 1. merge 2. git reset 3. git add -p?06:07
mikegit But, do you see what I mean... if I did a "git merge other branch" and they both had A.txt as a file, where one of them had line #1: "foo" and the other had line #1: "bar" there would definitely be a conflict and I could then run "git mergetool", but if the other branches had edits on different lines, it would just 'auto resolve' them...06:07
_ikke_ milki: Well, the merge is then already done06:07
milki merge --no-commit06:07
then reset06:07
mikegit (sorry while I'm typing --- takes a while, and you have already possibly answered my question, reading now..)06:07
milki then theres no merge history recorded ya?06:07
_ikke_ milki: I know what you try to do06:07
jbub joined06:07
leeN joined06:08
_ikke_ mikegit: But in that case git already gives a conflict06:08
mikegit milki: contemplating your 1,2,3 suggestion above.... i'm trying to figure out each step to see if that solves it...06:08
(argh.. sorry for whitespace, it's a habit... trying to break)06:08
milki my habit is lots of newlines :P06:08
OOPMan left06:08
mikegit milki: but wait..if I do the 1,2,3 steps you mentioned above, don't I lose the new incoming changes from the other branch?06:09
_ikke_ I can only think of manually merging two files06:09
milki mikegit: its a soft reset06:09
_ikke_ milki: But the actual merge is already done06:09
milki the working tree has the incoming changes + conflicts06:09
SegFaultAX|work left06:09
milki _ikke_: right06:09
which i think should be fine06:09
_ikke_ yeah06:09
milki since the changes are now local06:09
_ikke_ I get what you mean06:10
You can decide what changes to let it, and what changes to remove06:10
milki you will have both the "auto-merged" stuff + the conflicted stuff06:10
_ikke_ Each diff is a result of a merge06:10
cakehero left06:10
_ikke_ Though it's not clear from what part of the merge each change came from06:10
milki the problem will then be how to make the commit merge06:10
er, merge-commit06:11
mikegit this situation has been asked a few times on stackoverflow..... either in the situation where you have a few "types" or exact filenames you just *always* want marked as "CONFLICT" so you can do mergetool... found an "almost" good answer, but I'm very confused on how to make a merge.<driver> ... this seems like it should be a straightforward option.. which is making me think I totally am missing the boat on concept..06:11
milki i dont know how you can add parents to a commit from cil06:11
_ikke_ milki: Isn't that automatically done06:11
milki its done if you use merge yes06:11
mikegit and in my case, I don't want just "certain" types of files to always mark as Conflict, I want *.* (all).06:11
_ikke_ milki: git looks at .git/MERGE_HEAD or something like that06:11
arvind_khadri joined06:11
milki but since there was aa conflict on the merge, it didnt record the commit with the parents yet06:11
and you are eseentially aborting the operation06:11
ak5 so now I have something checked out from github and want to save my changes to gitolite (local)06:12
milki so im not sure if the next commit will record the merge or not06:12
_ikke_ milki: like I said. git setups a file that tells it the next commit will be a merge commit06:12
ak5 how dcan I make a remote be RO?06:12
mikegit might have found the answer.... not sure: http://stackoverflow.com/questions/12148827/disable-automatic-merge-git the title is "Disable automatic merge GIT"06:12
MaximLacrima joined06:13
milki _ikke_: hm, ill have to look into that06:13
flijten joined06:13
_ikke_ milki: Nope, that is something different06:13
milki _ikke_: so if i create that file myself, it can make a merge commit?06:13
mikegit (been working on this for no less than 10 or 11 hours.... thanks for trying to assit me guys... I wouldn't be asking for your help unless I was absolutely going nuts --- which I am at this point).. darn maybe that stackoverflow isn't the right answer :(06:13
(again sorrry whitespace)06:13
_ikke_ mikegit: Nope, that's for when pulling06:13
milki mikegit: its been mentioned before here with no solution06:14
_ikke_ mikegit: like I said, automatic merging is a tautology06:14
it's either merging, or it's not merging06:14
mikegit argh... well technically, "pulling" is a "fetch, follwed by a merge" if I recall from the documentation right? so, a "merge" that is local is merely one branch to another (locally...) the action should be the same logically right?06:14
_ikke_ mikegit: Yes, but the question is about avoiding the merge at all afaict06:15
mikegit: That question isn06:15
mikegit: That question isn't very clear at all06:15
mikegit wow, ther's a git cherry-pick command ..06:15
_ikke_ mikegit: es06:16
tiglog joined06:16
_ikke_ yes06:16
jcao219 left06:16
mikegit yes, sorry.. what I mean is... "git pull" is a superset of commands containing fetch and merge, therefore I would imaging anything trying to answer a question about pulling could be used to answer the question I'm having about merely merging two local branches.06:16
_ikke_ But that's more for copying certain commits on top of another branch06:16
mikegit *imaging = imagine and *anything = a stack overflow question06:17
(or any other forum)06:17
rubious left06:17
milki mikegit: i think the best bet to get the exact behaviour you want would be to change the merge driver06:17
_ikke_ mikegit: not necessarily, because your question is on a much deeper level06:17
milki the merge driver would just make all changes explicit conflicted states06:17
dc5ala joined06:17
eijk joined06:17
_ikke_ Well, like I said earlier, a 2 way merge would do what you want06:18
resistivecorpse2 joined06:18
_ikke_ because it has no base information, any change would be a conflict06:18
mikegit milki: yea.. I came across that logic too... so far --no-comit, --no-ff, merge.<driver> customization, and all these hacks... but can't find a decent tutorial on that merge.<driver> situation, keep leading down a dead end..06:18
johnny_rose left06:18
narfnarfnarf left06:19
milki ya cnat help you with the driver either06:19
you probably need to write a new program...06:19
mikegit _ikke_ can you give an example of a 2-way merge... I'm kinda confused.. the current branch, base branch, and other branch are 3-way correct?.. what's 2-way?06:19
_ikke_ mikegit: 3 way doesn't say anything about the number of branches06:19
milki poofs06:19
CollinPD_ left06:19
_ikke_ mikegit: but the number of files the merge driver looks at06:19
koltroll joined06:19
CollinPDX joined06:20
_ikke_ mikegit: Imagine merging two files06:20
resistivecorpse left06:20
Tectu|forkTectu06:20
_ikke_ mikegit: You look at a line in file A, and at the same line in file B. You notice the lines differ. You have no way determining what line is the correct line06:21
so, you report a conflict06:21
rchavik left06:21
_ikke_ But then you think, hey, I know which file these files derived from06:21
the merge base06:21
So you look at file A, file B and merge base M06:22
mikegit _ikke_: <thinking>06:22
_ikke_ You see that the line in both file A and M are the same, so you know A hasn't changed. but B and M are different. That means that only B has changed from M, and not A, so you know it's safe to say that B has the 'correct' result06:23
mikegit ahh possibly...06:23
but maybe it's not the correct result and I want to retain A06:23
(A's version)06:23
(of that line)06:23
_ikke_ well, as far a merge logic goes, it's defined as the correct result06:24
mikegit therefore, I want each and every file that has *any* differences to let me inspect and decide as I go...06:24
_ikke_ because in almost all of the cases, that is what you want06:24
papegaaij joined06:24
_ikke_ mikegit: yeah, like I said, you just want to discard the merge base06:24
mikegit: a 2 way merge06:24
mikegit: But git doesn't support that by default06:24
mikegit I was starting to think I was totally missing the boat but numerous people want this too: "Disable automatic merge GIT" http://stackoverflow.com/questions/12148827/disable-automatic-merge-git that's another one...06:25
ahh ok.. does that require a custom merge.driver ?06:25
_ikke_ to do it automatically, yeah06:25
But I don't think it's an easy thing to do06:25
mikegit the other thing to do I read somewhere ...06:26
is simply mark all files a "binary" type...06:26
AdrienBrault joined06:26
_ikke_ mikegit: Yeah, I just read that06:27
Was about to suggest it06:27
mikegit so I tried that in the .gitattributes file (similar to .gitconfig I guess) and I entered this line "* -binary", tried "*.txt -binary", also tried "* merge=Unset" according to a man page I found regarding merge, if you set a certain file type in .gitattributes it will always regurn a non-Zero value indicating a conflict, then I can just run "mergetool" after06:27
_ikke_ mikegit: But note that it just refrains from merging at all.06:27
mikegit but that doesn't seem to work. or I'm not setting it right... I'm finding conflicting info all over the place from old man pages, etc..06:28
_ikke_ mikegit: just * merge=binary06:28
mikegit going to try that right now! I think I tried it, but not 100% sure I tried that exactly line as you typed it.06:28
_ikke_ mikegit: But that still requires a lot of manual work06:29
jiangenj joined06:29
mikegit in your thoughts, do you think it will allow me to just run a mergetool afterwards?06:29
_ikke_ mikegit: No06:29
gitinfo set mode: +v06:29
_ikke_ Hmm06:29
let me think06:29
It might do06:29
jiangenj Hi, how to find the first common commit of two branches?06:29
_ikke_ jiangenj: man git merge-base06:29
gitinfo jiangenj: the git-merge-base manpage is available at http://git-scm.com/docs/git-merge-base.html06:29
mikegit I just prefer 100% knowing what happens as it's combining two files.06:29
LeMike left06:29
_ikke_ mikegit: Well, binary just says: These files can't be merged, just mark them as conflicting06:30
mikegit: So it might just do what you want06:30
mikegit (checking now..)06:30
johnny_rose joined06:31
frogonwheels mikegit: you know, you can always just do the merge, and then review it.06:31
ipalaus joined06:31
mikegit 1 files changed, 1 insertions(+), 0 deletions(-)06:31
it still did it... darn it..06:31
frogonwheels mikegit: by default, viewing a merge, only views those that conflicted06:31
you can always amend it if it isn't to your taste.06:32
mikegit frogonwheels: that was a potential plan "B" ... can you tell me how to do that? I tried --no-commit for the merge command and tried a "diff" but I don't think that worked as intended.06:32
_ikke_ mikegit: Well, it's basically the other way around. You first merge the two files, and then remove the things you don't want06:33
mikegit I guess I can be satisfied with viewing the changes..... I would really just like to be able to use a GUI based merge/diff tool to just see what the other branch *had* and the current branch *had* before it merged...06:33
ahh but I want it to highlight the things that it did so I know where to focus my attention06:33
intripoon left06:33
JPT left06:34
mikegit I wish it would just let me mark everything as "conflicted" ... even though it could resolve it, I don't want it to.. if I was creating Git, I certainly would have added this feature .. been working with it for 48 hours so far, and absolutely think it's awesome other than this06:34
ipalaus left06:34
intripoon joined06:34
setmeaway2 joined06:35
mikegit _ikke_: so you're saying "git merge --no-commit" and just open each file I'm worried about and edit before committing?06:36
"git merge --no-commit otherbranch" <--- forgot to put a branch name06:36
senny joined06:36
JPT joined06:36
setmeaway left06:36
sirdancealot7 left06:37
maleknet joined06:37
AdrienBrault left06:38
reuf joined06:39
_ikke_ mikegit: yeah06:39
mikegit: Well, the people who created git created it in mind to get as little conflict as possible06:40
mikegit: so adding this option would not be very sensical06:40
mikegit: And, nobody so far has needed it06:40
mikegit yes, but .. think about a world run by artificial intelligence.. occasionally it follows rules and totally fucks things up06:40
johnny_rose left06:40
mikegit meaning... it might think it's algorithm for merging is correct... but human intervention would have avoided a bad "merge"..06:41
frogonwheels mikegit: my personal experience is that people f* merges up much more than gits automatic merges06:41
mikegit indeed, that is a point I can definately see occurring...06:41
thing is.. how do I review what it did merge? any idea how to highlight the differences?06:42
frogonwheels mikegit: Generally, the only times I have problems with merges are where git has requested me to resolve conflicts, and I've done a bad job of it.06:42
cobra-the-joker_ joined06:42
frogonwheels mikegit: git show HEAD06:42
mikegit I'm trying to figure out how to make a simple diff do it... and for that matter, how would I even get a list of files that were auto-resolved ?...06:42
frogonwheels mikegit: it will show you all the files that were merged06:43
mikegit all I get is "Merge branch 'otherbranch' into 'currentbranch'"06:43
that's with git show HEAD ...06:43
cobra-the-joker left06:43
frogonwheels mikegit: then possibly no files were merged from both branches (ie the files are the same as either branch1 or branch206:43
mikegit but it's not...06:43
drizzd joined06:44
mikegit trying again to tripply verify06:44
tripply is not a word is it... anyway, trying again06:44
bapa left06:44
sirdancealot7 joined06:44
mikegit git show HEAD doesn't show the list of files changed or changes...06:46
just the comment of it merging one branch on another...06:46
_ikke_ tripple06:46
aisbaa joined06:47
ReekenX left06:48
Synthead left06:49
drizzd left06:49
LeMike joined06:50
LeMike left06:50
und3f joined06:50
LeMike joined06:50
AMfish joined06:50
narfnarfnarf joined06:51
bapa joined06:52
derpops joined06:52
maleknet left06:52
mikegit any idea how to not only not commit with '--no-commit' but also not automatically "add" the file to be tracked ?... it seems it adds it which prevents a "git difftool" from easily showing the changes that have been just made during a merge of a branch.06:53
frogonwheels mikegit: I'd just let the commit happen and then --amend it if it needs changing!06:53
EugeneKay mikegit - I think you're looking for 'git diff HEAD'06:53
mikegit but I can't figure out how to see the changes06:54
ohhhh ok trying that EugeneKay thanks06:54
frogonwheels git log -1 ?06:54
EugeneKay mikegit - the default is for diff to compare the index against the working tree. You need to tell it to compare the index agaisnt something else.... in this case, HEAD ;-)06:54
hubidubi joined06:54
mikegit so, I still want --no-commit right? then do the 'git diff HEAD'06:55
?06:55
cobra-the-joker_ left06:59
quazimodo joined07:00
ipalaus joined07:00
bapa left07:01
skorgon joined07:01
skorgon left07:01
skorgon joined07:01
bapa joined07:01
maleknet joined07:02
dhruvasagar joined07:03
mikegit Ok, the 'git diftool HEAD' works perfectly for inspecting the changes that occurred during the merge... as long as I run it with --no-commit07:03
jave left07:04
BadDesign joined07:05
BadDesign left07:05
BadDesign joined07:05
wwwjfy_ joined07:05
wwwjfy left07:05
Element9 joined07:05
hyperboreean left07:05
williamherry left07:05
mikegit milki, _ikke_, EugeneKay, and everyone else, thank you very much for your help.07:06
maleknet left07:07
bapa left07:07
tchan left07:08
keltvek left07:08
mishok13 joined07:09
ampz joined07:09
jave joined07:09
aisbaa left07:09
bapa joined07:09
Fandekasp left07:10
dragon3_ joined07:10
mikegit left07:10
suy joined07:10
aisbaa joined07:11
devsharpen joined07:11
keltvek joined07:13
svetlyak40wt_thebot_07:13
maleknet joined07:13
thebot_svetlyak40wt07:14
giallu joined07:15
bapa left07:15
Parhs joined07:15
Parhs left07:15
Parhs joined07:15
bapa joined07:15
thyseus joined07:16
lb joined07:16
lb left07:16
lb joined07:16
sirdancealot7 left07:17
harish left07:19
Lgb left07:20
sirdancealot7 joined07:20
tchan joined07:21
whitman joined07:21
Lgb joined07:23
akiress left07:24
skyf left07:24
alexstanford2 joined07:25
charon joined07:25
charon left07:26
charon joined07:26
alexstanford left07:26
wwwjfy_wwwjfy07:26
j0ran left07:26
j0ran joined07:26
simesy_work left07:27
chaiz joined07:27
derpops left07:29
sirdancealot7 left07:30
meyering joined07:30
zhouxiukun left07:31
ampz left07:31
danmackay left07:32
_dzonder left07:32
rob_w joined07:32
gxk left07:33
psoo joined07:33
tiglog left07:34
gavin_huang joined07:34
danmackay joined07:35
bapa left07:35
bapa joined07:36
JakeSays left07:38
JakeSays joined07:39
suy left07:39
suy joined07:39
sirdancealot joined07:43
TheHaven joined07:43
beautifulmind left07:44
lb is it possible in git to just merge subfolers in a repo?07:45
so e.g. i do a "git fetch origin"07:45
hyperboreean joined07:45
EugeneKay lb - no, but you can fake it by doing a merge, then using reset on the folders you don't want merged.07:46
lb then i have my changes , bu i just want to merge the changes in the subfolder foo/bar07:46
dr_lepper left07:46
lb ah ok thanks EugeneKay07:46
EugeneKay If I was less lazy I'd do a writeup on this. We seem to get this question every other day or so.07:46
lb ^^07:46
but a checkout of the subfolder should work right?07:46
EugeneKay Sure.07:47
quazimodo left07:47
lb git checkout 87234hu23 -- foo/bar07:47
ok thanks :D07:47
EugeneKay .trigger_edit merge_selective git does not support merging only certain files - it is all or nothing. You can use --no-commit and then 'git reset -- foo/ bar/' all files/dirs you do not want to merge to fake this behaviour.07:48
gitinfo EugeneKay: Okay.07:48
EugeneKay good 'nuff for now.07:48
dr_lepper joined07:48
dr_lepper left07:48
dr_lepper joined07:48
lb :)07:48
chaiz left07:50
arvind_khadri left07:51
alkino joined07:52
apok left07:53
timj joined07:54
florin joined07:55
florinGuest3545007:56
brtdv joined07:56
dreiss joined07:56
aruiz left07:56
timj1 left07:57
TheHaven left07:57
TheHaven joined07:57
chisler joined07:58
jkremser joined07:58
pantsman left07:59
simesy_work joined07:59
ak5 a git repo has a certain folder I do not want anything to do with. can I git clone; git rm $folder ; rm -r $folder ; echo $folder > .gitignore ; git pull without re pulling that folder?07:59
jdunck left07:59
gerryvdm_mbp joined07:59
gerryvdm_mbp left07:59
gerryvdm_mbp joined07:59
wereHamster no08:00
EugeneKay No.08:00
ak5 ok, can I do something else?08:00
jkremser left08:00
_ikke_ ak5: !xy08:01
gitinfo ak5: This sounds like an "XY Problem" http://mywiki.wooledge.org/XyProblem So let's step back for a minute. What are you actually trying to achieve? Why are you doing it this way?08:01
ak5 that folder has code that my own submodule solves better :)08:01
marthinal joined08:02
EugeneKay Is the folder in question a submodule?08:02
_ikke_ Can't you ignore it yourself?08:02
_ivar_ joined08:03
ak5 _ikke_: I guess so, but when I deploy this (it's a website) i'd have to manually remove it each time08:03
quazimodo joined08:03
ak5 EugeneKay: no08:03
simesy_work left08:04
LimeBlast joined08:04
_ikke_ ak5: Don't you have a deploy script or something?08:05
dpino joined08:07
SicoAnimal when I do git submodule most show heads/master which is obviously saying that it is on the master branch, but some of them show things like "v1-24-g7c817fc". Anyone know what this means? That submodule is actually on the master branch, but `git rev-parse v1-24-g7c817fc` gives the right commit hash which master is pointing to08:08
Lord_DeathMatch left08:08
hyperboreean left08:08
aruiz joined08:09
_ikke_ SicoAnimal: You know that submodules don't check out branches, but commmits?08:09
hyperboreean joined08:10
shruggar joined08:10
_Qman joined08:10
robustus joined08:11
JPeterson left08:11
intripoon left08:11
JPeterson joined08:12
intripoon joined08:13
ak5 _ikke_: I do now08:13
LP08:13
SicoAnimal _ikke_: a submodule that i just added is checked out on the master branch08:13
_ikke_ SicoAnimal: Yeah, but not by definition08:14
git submodule update tends to check out the commit instead of the branch08:14
holo left08:14
spaceplu- left08:16
dsirijus joined08:16
tapout left08:16
niax left08:16
spacepluk joined08:17
SicoAnimal _ikke_: still dont see where the v1-24-g7c817fc is coming from08:17
_ikke_ SicoAnimal: man git describe08:17
gitinfo SicoAnimal: the git-describe manpage is available at http://git-scm.com/docs/git-describe.html08:17
niax joined08:18
_ikke_ SicoAnimal: It means 24 commits on top of tage v108:18
s/tage/tag/08:18
JEEB left08:18
The-Compiler left08:18
bapa left08:18
devinrhode2 joined08:18
JEEB joined08:19
Bilge left08:19
JEEB left08:19
chrisward left08:19
_aeris_ left08:19
chrisward joined08:19
graeme joined08:20
_aeris_ joined08:20
JEEB joined08:20
The-Compiler joined08:20
the_cybersphinx joined08:21
Bilge joined08:21
tapout joined08:21
dr_balor joined08:21
hwrd|work left08:22
dr_balor If I have a remote branch remotes/origin/development, can git tell me it's URL so that I can "git push $URL :development"?08:22
JEEB left08:22
hinst joined08:23
_ikke_ dr_balor: does it need to be automated?08:23
dr_balor: Why not use git push origin :development?08:23
AMfish left08:23
JEEB joined08:23
JEEB left08:24
dr_balor _ikke_: I'm just reading the man page and it says I need a URL. I'll try that08:24
_ikke_ dr_balor: origin is a so called remote, and it's basically a shortcut for the url08:24
dr_balor _ikke_: thanks.08:25
JEEB joined08:25
irqq joined08:27
trodrigues joined08:28
arvind_khadri joined08:28
bjornars I've got a remote git@git... repo and a revision. Is there any (easy) way to remotely get some commit info without actually maintaining an up-to-date clone of the repo?08:29
trodrigues left08:29
brtdv left08:30
kpreid joined08:30
tjadc joined08:30
torbjorn left08:30
frogonwheels bjornars: not really. you can get a snapshot if the server support it, but what kind of info are you trying to get?08:31
_ikke_ bjornars: What kind of commit info?08:31
QKO|Work joined08:32
QKO|Work left08:32
QKO|Work joined08:32
QKO|Work hello08:32
I have major issue08:32
I'm using svn through git08:32
_ikke_ QKO|Work: !enter08:33
gitinfo QKO|Work: The enter key is not a punctuation mark. Please use fewer lines, with complete sentences on them.08:33
neataroni left08:33
QKO|Work and when I merge two branches in git, the target branch will get the svn branch from the source branch08:33
frogonwheels _ikke_: ahh.. I've wanted that tip before. I think in #vim it is 'cr'08:33
bjornars frogonwheels, _ikke_: commiter and commit-message mainly08:33
QKO|Work .08:34
_ikke_ bjornars: Than you have to fetch from the remote08:34
frogonwheels bjornars: or use some other interface to interact with it08:34
_ikke_ bjornars: The only thing you can get from a remote without fetching is references08:34
jast git-svn + git merges ain't pretty. sad but true.08:35
bjornars it's not possible to just fetch one object using some arcane plumbing command?08:35
_ikke_ bjornars: Nope08:35
QKO|Work jast: how can I fix the remote it's pointing at08:35
Fandekasp joined08:35
QKO|Work ?08:35
jast bjornars: no. the protocol is restricted to fetching by refs.08:35
if upload-archive is enabled on the server, you can use git archive to fetch trees (with all referenced objects) from a remote, though08:36
gxk joined08:36
jast and if an object has a symbolic tag on it, I think it might be possible to fetch that, too08:36
QKO|Work: by not using 'git merge'. git-svn determines the upstream branch from the first 'git-svn-id' line it finds in the commit log. since git-svn will destroy merge commits anyway, you might consider using git merge --squash instead of merging normally. of course that isn't terribly nice, either, but you have to pick your battles when it comes to git-svn.08:37
Aaaarg left08:39
bjornars jast: damn.. thanks for the answer08:40
hwrd|work joined08:40
jkremser joined08:41
jast if you want to fetch anything else, you'll have to build your own transport mechanism08:41
(gitweb can deliver blobs, for instance)08:41
frogonwheels bjornars: that's not a bad solution to use gitweb ..08:44
bwwrd joined08:45
devinrhode2 left08:45
jarr0dsz joined08:46
i42n joined08:47
maleknet left08:48
bjornars frogonwheels: not a bad idea, i'm looking info that08:49
seems doable08:49
babilen left08:51
mmc1 joined08:51
FernandoBasso joined08:55
dreiss left08:56
k-man its amazing how much it makes you clean up your code when you decide to release it for the first time#avr08:56
bah - mistype - sorry08:56
_ikke_ That's why you should release early08:56
samphippen joined08:57
lb RERO08:58
QKO|Work jast: tnx08:59
simesy_work joined08:59
fram joined08:59
JEEB left08:59
JEEB joined09:01
jbub left09:01
williamherry joined09:02
raatiniemi joined09:03
simesy_work left09:04
chisler left09:04
chisler joined09:04
srand joined09:05
srand I have cloned a repositry with https, but now git keeps asking me for my pasword. I thought changing https with ssh in .git/config's url parameter would seal the deal, but after changing and trying to pull I get a permission denied error (remote hung up unexpectedly)09:06
_ikke_ srand: What is the current url?09:07
srand url = https://jvaelen@bitbucket.org/tgijbels/gs.git09:07
zenx joined09:07
tvw joined09:07
_ikke_ srand: Have you setup ssh keys?09:08
srand: Is that your own repo?09:08
srand _ikke_: yes09:08
_ikke_ srand: to what question?09:08
cooloney joined09:08
thirdknife left09:08
phryk What would be the best course for installing gitolite on an OSX server?09:09
srand the second, I thought I had an ssh identiy though, but the issue probably lies there09:09
phryk Also how would I go about migrating the repositories from one gitolite to said OSX server?09:09
maleknet joined09:09
Liquid-Silence left09:09
jesseFromYVR left09:09
tchan left09:10
sitaram phryk: start with the documentation; it has *everything* you need to know09:11
the gitolite master TOC at http://sitaramc.github.com/gitolite/master-toc.html09:11
for part 2 of your question, look for the word "existing" in that link above09:11
achadwick joined09:12
phryk sitaram: The recommended way of installing gitolite is just compiling it locally without any package management or similiar stuff?09:12
EugeneKay It's perl; there really isn't a compile step.09:13
rham joined09:13
phryk Ah right then.09:13
EugeneKay There are rpm/debs of it available, but they tend to be old. I half-wonder if sitaram would accept a set of RPM makefiles09:14
rham how do I stop git from trying to use ipv6?09:14
_ikke_ rham: git itself doesn't use ipv609:14
rham most commands have a -4 option09:15
phryk rham: Sounds like you need to set some config option for ssh…09:15
williamherry how to specify the location os id_sra when use git clone?09:15
_ikke_ rham: it's either curl or ssh that uses it09:15
rham _ikke_: how do I stop git from trying to get curl to use ipv6?09:15
_ikke_ rham: via ~/.curlrc09:15
rham dafuq?09:15
cybersphinx joined09:16
EugeneKay man curl ;-)09:16
dr_lepper left09:17
dragon3_ left09:17
Lord_DeathMatch joined09:17
Lord_DeathMatch left09:18
dragon3_ joined09:18
Lord_DeathMatch joined09:18
_ikke_ echo "-4" >> ~/.curlrc should do09:18
chimay joined09:18
dr_lepper joined09:19
the_cybersphinx left09:19
phryk How do I find out the version of my gitolite installation? The only interesting thing a quick grep through src revealed was "gitolite_rc.pm:$current_data_version = '2.0';". Does that mean I have gitolite-2.0 ?09:20
sitaram EugeneKay: I don't mind accepting a set of RPM makefiles and putting them in a contrib directory09:21
phryk: no; the best way is "ssh git@host info" using a valid user key09:21
failing that, look for a file called "VERSION" somewhere (probably in ~/.gitolite)09:22
srand left09:23
SeoZSeoZ-work[AWAY]09:23
lng joined09:24
rham thanks09:24
rham left09:24
phryk sitaram: Ah, found ~/gitolite/conf/VERSION :)09:24
lng Hi! I fetched and rebased, but having "! [rejected] develop -> develop (non-fast-forward)" when pushing, why?09:25
TheHaven left09:25
TheHaven joined09:25
_ikke_ lng: !rewrite09:26
gitinfo lng: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to jump through hoops (and you have to tell them to), so it's infinitely better to just move on without rewriting. That said, you can use `git push -f` to force your new history through (may get rejected, though). See http://git-scm.com/docs/git-rebase.html#_recovering_from_upstream_rebase09:26
CareBear\ lng : you rebased too far back09:26
_ikke_ lng: !repro09:26
gitinfo lng: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting.09:26
chovy joined09:26
chovy i have a post-recieve hook on another server that is failing...how can I debug this?09:27
thirdknife joined09:27
lng _ikke_: I don't rewrite anything09:27
_ikke_ chovy: You can add echo statements. You can see the output on the client side09:27
lng: rebase == rewrite09:28
lng oh09:28
_ikke_ lng: But you probably rebased the branch you just pulled09:28
fetched*09:28
dean[w] joined09:28
lng _ikke_: I fetched first09:28
chovy _ikke_09:28
ok09:28
lng then git rebase develop09:29
juvenal joined09:29
chovy i needed to run npm install on my machine. i guess i need to put that in the post commit hook09:29
_ikke_ lng: On what branch were you?09:29
Guest31345 left09:29
jasmine25 joined09:29
lng _ikke_: develop09:30
Squarism joined09:30
ReekenX joined09:30
lng _ikke_: rebasing was successful09:30
_ikke_ lng: !repro09:30
gitinfo lng: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting.09:30
_ikke_ rebasing develop while on branch develop doesn't do anything09:31
hwrd|work left09:31
lng _ikke_: git rebase analytics09:32
jasmine25 left09:32
_ikke_ So you were on develop, and you did git rebase analytics?09:33
lng yea09:33
dean[w] left09:33
raatiniemi left09:33
cooloney_ joined09:34
setmeaway2 left09:34
_ikke_ why did you do the rebase?09:34
lng to have a flat history09:35
jaseemabid left09:35
lng pushed09:36
git rebase origin/develop09:36
after that09:36
maleknet left09:36
cooloney left09:37
ak5 why do I not get the tags that are on github when I clone the repo?09:37
also, how do I get them09:37
roxlu joined09:38
_ikke_ git fetch --tags09:38
ak5: git clone by default only gets the refs from refs/heads09:39
not refs/tags09:39
ak5 I see09:39
roxlu left09:39
ak5 can I now checkout to a certain tag?09:39
sluther left09:39
_ikke_ ak5: yes, but watch out for !detached09:40
gitinfo ak5: A detached HEAD(aka "no branch") occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach09:40
rchavik joined09:40
rchavik left09:40
rchavik joined09:40
ak5 I see09:40
awesome09:40
aristidesfl left09:40
adac joined09:40
_ikke_ ak5: So you best can checkout a branch based on the tag09:41
git checkout -b <new_branch> <tag>09:41
lng _ikke_: thank you09:41
adamben joined09:41
adac is it possible if I checkout a git repository (A) to tell git to check out yet another repostitory (B) into one of A's folders?09:41
kanupatar joined09:42
kanupatar hi guys09:42
any idea on this error?09:42
FauxFaux adac: !subpro09:42
gitinfo adac: [!subprojects] 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.09:42
kanupatar repo init -u git://codeaurora.org/platform/manifest.git -b ics_chocolate -m M8260AAABQNLZA30170.xml --repo-url=git://codeaurora.org/tools/repo.git Get git://codeaurora.org/platform/manifest.git codeaurora.org[0: 199.106.109.189]: errno=Connection refused fatal: unable to connect a socket (Connection refused)09:42
samphippen left09:42
FauxFaux kanupatar: Does "git clone git://codeaurora.org/platform/manifest.git" do the same thing?09:42
kanupatar FauxFaux: please wait09:43
adac FauxFaux, thanks09:43
!submodules09:43
gitinfo [!submodule] 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.html09:43
kanupatar FauxFaux: yes same thins09:43
FauxFaux: yes same thing09:43
ak5 _ikke_: git fetch origin --tags exits without any message09:43
and I get no tags in .git/refs/tags09:44
maleknet joined09:44
johnny_rose joined09:44
FauxFaux kanupatar: Firewalls? That command works fine for me, same ip: 199.106.109.189.09:44
torjus_ joined09:44
_ikke_ ak5: what does git tag return?09:45
ak5 _ikke_: ... lots of tags09:46
_ikke_ ak5: Then you have the tags09:46
kanupatar FauxFaux: ohh..i am connected through proxy09:46
ak5 where are they stored?09:46
TheHaven left09:46
kanupatar FauxFaux: can you check my first address?09:46
_ikke_ ak5: Depends on the kind of tag09:46
ak5 I see09:47
ok09:47
well thanks I guess :)09:47
TheHaven joined09:47
babilen joined09:48
gusnan joined09:49
_ikke_ ak5: Note that git clone will get the tags that are referenced by a branch09:50
kanupatar left09:50
Jippi joined09:51
Jippi left09:51
raatiniemi joined09:53
chris64 joined09:53
dean[w] joined09:55
samphippen joined09:55
ak5 I see, thats why git clone <repo> --branch <tag> works09:57
beautifulmind joined09:57
_ikke_ ak5: Well, then you are explicitly requesting a reference09:58
But yeah09:58
FernandoBasso left09:58
ak5 cool git is pretty awesome09:58
_ikke_ But I believe you are on a detached HEAD then09:58
ak5 I really want to play with it so it speeds up my development time09:58
thats fine for me09:58
_ikke_ --branch can also take tags and treat them like detached09:58
HEAD.09:59
simesy_work joined09:59
ak5 i will just do git branch09:59
simesy_work left10:04
marlun left10:11
fornext left10:13
jdyin left10:17
jiangenj left10:18
Guest35450 left10:20
maleknet left10:20
Imaginativeone left10:22
qwertz_ left10:23
jbub joined10:23
maleknet joined10:24
aaronmoodie left10:24
OOPMan joined10:24
osxorgate joined10:25
osxorgate left10:25
acrocity_ left10:30
fornext joined10:30
raatiniemi left10:31
ak5 _ikke_: I have cloned a github repo then added that to local gitolite. When I clone from gitolite I am missing the other remote, can I save it some way?10:31
FauxFaux No, remotes aren't transferred as part of clone. You can ship a script that peopl ecan run to mirror your remotes, if you want.10:32
ak5 I see, does such a script exist already?10:32
maleknet left10:32
ricky left10:32
FauxFaux ..it only has to run "git remote add github git://github.com/foo/bar"10:32
kpreid left10:32
Parhs hello dudes10:32
what does this mean ? mode change 100644 => 100755 web/bundles/webprofiler/images/security.png10:32
FauxFaux It means the mode changed.10:33
_ikke_ Parhs: the x bit in particular10:33
alkino chmod10:33
Parhs i see10:33
zamba left10:33
ricky joined10:33
_ikke_ git only tracks the executable bit10:34
ak5 FauxFaux: if I want to rebase my local code on a new tag in the github repo, I can just checkout that tag on github and rebase, right?10:35
zamba joined10:35
FauxFaux ak5: a) don't hilight people. b) !tias10:35
gitinfo ak5: Try it and see™. You learn much more by experimentation than by asking without having even tried. If in doubt, make backups before you experiment (see !backup). http://sitaramc.github.com/1-basic-usage/tias.html may help with git-specific TIAS.10:35
ak5 no need to store the info in gitolite, or transfer it, I'll just write a script that does git rebase after setting up the repo10:35
jceb joined10:36
gerryvdm_mb joined10:37
samphippen left10:37
maleknet joined10:38
Innocentus joined10:38
dsirijus left10:38
teotwaki left10:39
johnny_rose left10:39
xxc_michael left10:39
zenx left10:40
gerryvdm_mbp left10:40
LeMike left10:41
juvenal left10:42
fluxdude joined10:44
raatiniemi joined10:46
samphippen joined10:48
NetJunky joined10:48
LeMike joined10:48
LeMike left10:48
LeMike joined10:49
graeme left10:49
LeMike left10:49
gitinfo set mode: +v10:49
NetJunky Good day everyone!10:49
LeMike joined10:50
LeMike left10:50
hyperair left10:51
acrocity_ joined10:51
LeMike joined10:52
nedbat joined10:52
flavius joined10:55
samphippen left10:57
chaiz joined10:58
simesy_work joined10:59
samphippen joined11:01
shruggar left11:03
simesy_work left11:04
OOPMan left11:06
witul joined11:06
txomon|nqas hi NetJunky11:08
arietis joined11:08
chimay left11:10
chimay joined11:10
gerryvdm_mb left11:11
gerryvdm_mbp joined11:11
gerryvdm_mbp left11:11
gerryvdm_mbp joined11:11
Akufen joined11:11
ak5 left11:13
txomon|nqas how may I delete remote's remotes?11:13
I did a --mirror push and now I want to delete the branch11:14
_ikke_ txomon|nqas: what?11:14
txomon|nqas remote* I pushed accidentally11:14
_ikke_ You want to delete a branch on a remote?11:14
burzum joined11:14
txomon|nqas _ikke_, imagine you have 3 remotes, being tracked. If you --mirror push, it will have all those remotes11:16
I want to delete them11:16
rwestphal joined11:16
cmn you don't have the remotes, you have what used to be remote-tracking branches, just remove them like any other11:16
txomon|nqas I have the remotes and the remote-tracking branches11:17
http://pastebin.ubuntu.com/1269080/11:17
I want to delete those javier/ origin/ refs11:18
(with all their branches)11:18
cmn that doesn't show that you have the remotes11:18
so remove then like any other11:18
txomon|nqas but I want to remove them in the remote11:18
not in my computer11:19
burzum hi11:19
gitinfo burzum: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.11:19
_ikke_ txomon|nqas: They're called refs (references)11:19
cmn txomon|nqas: right11:19
do that then11:19
burzum how can i get a list of commit ids that are not in another branch? I have develop and master and I want to know wich commits are not in master yet. Its like a diff of commit ids what i want.11:19
txomon|nqas cmn... how? I have tried git push origin :javier/*11:19
but doesn't work11:19
cmn use the full names11:20
txomon|nqas _ikke_, refs are the branches or the remotes?11:20
rchavik left11:20
txomon|nqas cmn so, one by one11:20
cmn branches are refs11:20
_ikke_ txomon|nqas: a branch is a re11:20
txomon|nqas: a branch is a ref11:20
cmn or use a loop11:20
or see if push --prune works11:20
_ikke_ a remote is a shortcut to another repository11:20
txomon|nqas ok11:21
florin joined11:21
florinGuest4675311:22
_ikke_ and a remote tracking branch is a type of branch git automatically creates11:22
adhawkins-awayadhawkins11:22
txomon|nqas cmn, doesn't exist --prune option11:22
_ikke_ git remote --prune11:22
txomon|nqas _ikke_, good to know it11:22
_ikke_ But that only works if the remote doesn't have that branch anymore11:22
txomon|nqas: But what is it exactly what you want to achieve?11:23
nevyn git push remote :branch11:23
cmn txomon|nqas: it does11:23
trashi joined11:23
wwwjfy left11:24
lausi joined11:25
Grephix joined11:28
Grephix left11:28
txomon|nqas well, I did it on hand11:28
Grephix joined11:28
gitinfo set mode: +v11:29
trashi hello, i try to clone a git repository without the history. i tried --depth=1 but there were at least to commit messages from the original repository after cloning. could anybody help?11:29
rgs103 joined11:29
rgs103 left11:29
txomon|nqas trashi, git is not svn11:29
trashi *two commit messages11:29
cmn depth indicates how many commits leading from the tip you get11:29
that's what it does11:29
_ikke_ trashi: maybe man git archive is a better option11:31
gitinfo trashi: the git-archive manpage is available at http://git-scm.com/docs/git-archive.html11:31
reuf left11:31
trashi hm ok, i will take a look .. thanks for help11:31
txomon|nqas trashi, what do you want to do?11:31
trashi clone a big project (drupal) without the history11:31
txomon|nqas then you are not trying to clone11:31
cmn but why?11:31
txomon|nqas you are trying to get the master branch11:32
trashi nope ... not the master branch11:32
txomon|nqas what ever, one branch11:32
trashi want to checkout 7.x and maybe later yust switch to 8.x or master11:32
_ikke_ git archive gives you a copy of the working tree11:32
without having to clone a repository11:32
trashi also within the references to other branches?11:33
txomon|nqas trashi, in git or you have all the repo, or there is no repo11:33
trashi ok11:33
cmn txomon|nqas: that's not accurate11:33
BSaboia joined11:33
trashi so i will try and read s.th. about git archive ... thanks for your help guys!11:34
nizeguy joined11:34
sgambino joined11:34
cmn if the remote site doesn't support archive, --single-branch --depth can be a good approximation11:34
as long as you just want to be a consumer11:34
MikeyV27 joined11:35
_ikke_ cmn: Is git archive something that's new?11:36
OOPMan joined11:36
cmn no11:36
_ikke_ what might be a reason that it's not supported?11:36
cmn but the remote site has to enable a remote archival11:36
_ikke_ explicitly?11:36
cmn yeah11:36
_ikke_ how do they do that? Can't find something in the config11:37
cooloney_ left11:37
xxc_michael joined11:38
cmn hm, I can't find skimming it, I remember there being an option somewhere11:38
but e.g. github doesn't let you11:38
_ikke_ Well, they can either explicitly deny it, or haven't implemented it11:38
cmn git has it implemented for a while11:39
BSaboia left11:39
lausi left11:40
raatiniemi left11:40
trashi left11:40
svetlyak40wt left11:40
cmn _ikke_: found it, man git daemon11:41
gitinfo _ikke_: the git-daemon manpage is available at http://git-scm.com/docs/git-daemon.html11:41
cmn you need to --enable-service it11:41
dpk joined11:41
CareBear\ cmn : since what version?11:41
_ikke_ So it only counts for git-daemon?11:42
cmn what since what version?11:42
CareBear\ cmn : is --enable-service available11:42
no_maam left11:42
juvenal joined11:42
CareBear\ cmn : I have no git git11:43
cmn it's --enable=<service> sorry11:43
no_maam joined11:43
_ikke_ --enable=upload-archive11:43
cmn but I'm pretty sure it's been there for a long time, let me check git11:43
_ikke_ but via ssh it's allowed by default, right?11:44
git just invokes upload-archive on the remote11:44
cmn by default depends on what you're using, normal logins and gitolite do support it by default11:44
github doesn't let you11:45
CareBear\: the part about describing the services has been in the manpage since 200611:45
wolftankk left11:46
papegaaij left11:47
dragon3_ left11:48
gavin_huang left11:48
wereHamster cmn: you don't get it, do you? People don't read man pages. Even if you tell them.11:49
cmn I'm a hopeless romantic11:49
papegaaij joined11:50
_huoxito joined11:50
alkino they often are really badly written11:51
imho11:51
cmn make them better11:51
alkino apropos is far better :$11:52
cmn that makes no sense whatsoever11:52
alkino cmn: i'm a programmer not a good writer11:52
_ikke_ since when is apropos a manual?11:52
cmn then you don't get to complain11:52
wereHamster become a better writer.11:52
alkino _ikke_: it's not the good name11:53
sorry11:53
_ikke_ info you mean?11:53
alkino yaeh ;)11:53
cmn that's just as much nonsense as saying apropos11:54
alkino xD11:54
i'm not a good troller11:54
and I need to work11:54
o/11:54
_ikke_ obviously11:54
cannonball joined11:54
GTK joined11:54
BSaboia joined11:55
dv310p3r left11:56
nedbat left11:57
GTK left11:58
sephii joined11:59
wwwjfy joined11:59
sephii hey there, is it normal that the post-commit hook output goes to stderr instead of stdout?11:59
simesy_work joined11:59
pfFredd joined12:00
csmrfx wereHamster: man man12:00
gitinfo left12:03
simesy_work left12:04
cilly joined12:04
_ikke_ yay, gitinfo one12:04
gitinfo joined12:04
ChanServ set mode: +o12:04
_ikke_ ah, back12:04
gavin_huang joined12:06
diegoviola left12:06
qwertz_ joined12:07
pfFred joined12:07
pfFredd left12:10
hyperair joined12:10
pfFred left12:12
juvenal left12:12
revagomes joined12:12
gavin_huang left12:12
SkAzZ joined12:12
samphippen left12:13
gavin_huang joined12:14
tinti joined12:15
loops left12:16
geekbri joined12:20
Milossh left12:20
alunduil left12:20
sangi left12:21
adac left12:21
gavin_huang left12:23
erichynds joined12:25
GodEater left12:25
ajw0100 joined12:25
Milossh joined12:25
romac joined12:25
romac left12:26
pfFredd joined12:27
gavin_huang joined12:27
kermit left12:28
GodEater joined12:29
GodEater left12:29
GodEater joined12:29
totte I'm reading about managing websites with git and most tutorials seem to use a post-receive hook that puts the latest push into a separate directory which is the actual content directory. Wouldn't simply some "deny from all" rules for .git* in the Apache configuration do the trick?12:30
I mean, why not use the directory where the actual content is hosted as a git repository as well?12:30
cbreak server repositories (where you can push to) are bare12:31
they should not HAVE a working directory12:31
gavin_huang left12:31
_ikke_ totte: Better invest time to learn a proper deploy tool12:32
torjus_ left12:33
vasanth1 joined12:34
tchan joined12:34
tchan left12:34
tchan joined12:34
pfFred joined12:34
adac joined12:35
gavin_huang joined12:36
jds joined12:36
pfFredd left12:36
totte cbreak: I'll have to read more about bare repositories, thanks.12:37
erichynds left12:38
jaseemabid joined12:38
_ikke_ !bare12:38
gitinfo an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/12:38
totte _ikke_: Yeah, but I'm just playing around with a bunch of HTML pages for now. I'll keep that in mind though.12:38
sontek left12:39
j0ran left12:39
j0ran joined12:39
thirdknife left12:39
totte _ikke_: Neat, thanks!12:39
dr_balor left12:39
diverdude joined12:40
glennpratt joined12:41
rob_w so i do have a linux kernel git .. with various branches cloned from a hw manufacture .. now i want a branch which is kernel.org 3.3 version .. can one guide me to that ?12:41
nevyn rob_w: so there's a v3.3 tag right?12:41
samphippen joined12:41
dr_balor joined12:42
thirdknife joined12:42
nevyn git checkout v3.3 && git branche -b myv3.312:42
rob_w when i do git branch -a .. . i only see my hw manufacture branches12:42
nevyn rob_w: linus tags he doesn't make branches for releases.12:42
pfFreddd joined12:43
nevyn git tags|grep v3.312:43
rob_w ah ok12:43
nevyn well he does.. but nevermind.12:43
rob_w kk12:43
sonnym left12:43
rob_w seem is miss those tags .. so i assume my repo is not uptodate in htat senes12:44
nevyn so you said you had a linux kernel git12:44
acrocity_ left12:44
legumbre_ joined12:44
nevyn you cloned from kernel.org right?12:44
diverdude How can i see the location of the master?12:44
rob_w not from there12:44
diverdude like, where code is being sent when i do git push origin master12:44
where is master?12:44
MaximLacrima left12:45
rob_w diverdude, your local master12:45
nevyn so master is a local branch you're pushing to a remote branch called the same thing12:45
diverdude rob_w: ? no, i mean the one i cloned from12:45
nevyn rob_w: so add kernel.org as a remote.12:45
rob_w: in particular you probably want:12:45
pfFred left12:45
acrocity_ joined12:45
cmn diverdude: master is in your repo12:45
juvenal joined12:46
diverdude cmn: i did git clone someURL, i guess someURL is the master12:46
Twey left12:46
rob_w diverdude, then someURL will be your "origin"12:46
cmn guessing doesn't make it true12:46
diverdude rob_w: ahhh ok. origin then. how do i see url of origin?12:47
Vert joined12:47
FauxFaux git remote -v12:47
Twey joined12:47
williamherry left12:48
samphippen left12:48
nevyn rob_w: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable12:49
rob_w nevyn, somehting like git remote add linus git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable12:49
derpops joined12:49
nevyn that'll get you the tags for v3.312:49
yep12:49
rob_w great12:49
nevyn then git remote update12:49
thirdknife left12:49
rob_w i can do this while sitting in any local branch ?12:49
nevyn sure.12:50
so git remote update is a fetch of all remotes12:50
you could do git fetch linus12:50
cmn and submodules12:50
kreature joined12:50
Milossh left12:50
nevyn if you don't want to fetch the other remotes.12:51
dpk left12:51
kreature how can I ignore (with a gitignore file) a subdirectory but not a specific subdirectory in that subdirectory? :-)12:51
nevyn oh CRAP.12:51
nevyn just remembered he said he'd do stupid git tricks for tomorrows infrastructure coders meetup12:51
bwwrd left12:52
catsup left12:53
samphippen joined12:54
hellopat joined12:55
guardian joined12:55
gavin_huang left12:55
diverdude hmm i dont get this. If i have a repo X and do change to file A belonging to X, do git commit -a -m "..."; git push origin master; and in other server i have done git clone the-same-origin-as-repoX-origin, and now do git fetch, shouldn't the file A in th e2 cloned repos be the same?12:55
guardian hello12:55
can I use git clone --reference with a reference between on a different volume (but on the local machine)? or there's no point doing it?12:56
iori left12:56
pandeiro joined12:56
gavin_huang joined12:57
bartek joined12:59
simesy_work joined12:59
oddmunds diverdude: you don't change the local files by fetching12:59
raatiniemi joined13:00
oddmunds (someone correct me if i'm wrong)13:00
jesseFromYVR joined13:00
adhawkins oddmunds: Correct. You'll need to merge origin/master into local master13:00
Or git pull if local master is tracking origin/master13:00
kreature how can I ignore (with a gitignore file) a subdirectory but not a specific subdirectory in that subdirectory?13:01
adhawkins Someone wanted this recently. Can't remember the answer I'm afraid!13:02
derpops left13:02
Trioke left13:03
xxc_michael left13:03
beautifulmind1 joined13:03
xxc_michael joined13:03
catsup joined13:03
diverdude left13:03
jaseemabid left13:04
jtanguy joined13:04
t0oL joined13:04
jtanguy hello here13:05
gitinfo jtanguy: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.13:05
adhawkins The expressions aren't particularly intuitive13:05
I think it was cmn that answered13:05
beautifulmind left13:05
simesy_work left13:05
samphippen left13:05
varialus left13:05
varialus joined13:05
cmn kreature: unignore it13:05
jackh joined13:06
jtanguy is it possible to get the commit which introduced a file into a specific branch?13:06
freeed joined13:06
diverdude joined13:07
kreature cmn: I'm trying but I can't seem to find the right pattern. I've got a directory www/template which I want to ignore the contents of, except for the /www/template/new directory, which I want to track all contents for13:07
samphippen joined13:08
thirdknife joined13:08
shruggar joined13:08
dragon3_ joined13:08
shruggar left13:09
jds left13:09
shruggar joined13:09
macabre joined13:10
kreature found it: www/template/**/* and !www/template/new13:11
the wildcards were not immediately obvious13:11
cmn that wildcard doesn't work in git13:12
www/template/*\n!www/template/new should work13:12
wildmatches aren't supported by the ignore patterns13:12
sephii left13:12
gavin_huang left13:13
jperry2_ joined13:13
Esa_1 left13:13
lb left13:13
lb joined13:13
chuckharmston joined13:14
AaronMT joined13:14
kreature cmn: that doesn't work for me13:14
Fullmoon joined13:14
skyf joined13:14
kreature my suggestion does work however13:14
cmn with the disadvantage that it's not doing what it looks like it should be doing13:14
!repro13:15
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting.13:15
TheHaven left13:15
HavenMonkey joined13:15
hoschi left13:15
gavin_huang joined13:16
adhawkins My .git/config contains the following:13:16
http://pastebin.com/PB8dqKFq13:16
git push also tries to push master. I only want it to push gh-pages13:16
Can I just delete the 'branch "master"' section?13:16
Davey joined13:17
dv310p3r joined13:17
freeed left13:17
kreature left13:18
cmn adhawkins: read push.default man git config13:18
gitinfo adhawkins: the git-config manpage is available at http://git-scm.com/docs/git-config.html13:18
adhawkins Thanks13:18
alunduil joined13:19
spyzer joined13:19
Lgb left13:20
freeed joined13:20
lyddonb joined13:20
lyddonb left13:20
spyzer hey everyone, something weird is happening with my repo. My commit history shows that i committed and pushed a new directory to server. Even when I do git reset HEAD~2 and do git pull then also that directory gets added13:21
But on the server that directory doesn;t exists13:21
so others are unable to pull it13:21
trungqtran joined13:22
spyzer OOPS13:22
please don;t ready the above13:22
drougge joined13:22
spyzer :P13:22
adhawkins Any idea why I get this when I push tags?13:23
spyzer left13:23
Lgb joined13:23
adhawkins http://pastebin.com/m2rkUBBX13:23
_ikke_ Have you recreated an existing tag?13:23
adhawkins Not deliberately.13:24
If I delete it locally and fetch again, will that work?13:25
chimay left13:25
TomyLaptop joined13:26
TomyLaptop left13:26
cmn read what git is telling you to read13:26
TomyLobo joined13:26
TomyLobo hi13:27
ehsan joined13:27
adhawkins That seems to have done it.13:27
TomyLobo git commit is all grey and dull on my linux laptop. it's so colorful and exciting on my windows machine with msysgit. how do i change my linux git to be the same?13:28
raatiniemi left13:28
adhawkins cmn: I was just pushing a tag, so was surprised why it was talking about a fast-forward.13:28
cmn it's the same thing13:28
TeckniX joined13:28
cmn TomyLobo: man git config see the color options13:29
gitinfo TomyLobo: the git-config manpage is available at http://git-scm.com/docs/git-config.html13:29
adhawkins Yes, but I didn't deliberately change the tag. I guess I must have done a while ago.13:29
cmn or someone else did13:29
TomyLobo cmn, oh i'm talking about git commit13:29
letharion left13:29
cmn then you're probably not talking about git commit13:29
TomyLobo i assume the thing msysgit is vim13:29
i assume the thing msysgit uses is vim13:30
cmn it's vi, i believ13:30
but that's nothing to do with git13:30
TomyLobo it's syntax highlighting *for* git13:30
cmn set your editor to one you like and tell it to do syntax highlighting13:30
beautifulmind1 left13:30
cmn it's not for git13:31
TomyLobo it's vi(m) syntax highlighting *for* git13:31
beautifulmind joined13:31
TomyLobo for git-commit, git-rebase and git-config too i think13:31
it has as much to do with git as that autocompletion script that's flying around somewhere13:32
cmn so?13:33
daethorian joined13:33
lyddon joined13:33
thiderman left13:34
daniel_- joined13:35
pfFred joined13:35
pfFreddd left13:36
jtanguy left13:36
fluxdude left13:36
dpwright left13:37
fisted_ joined13:38
cmn tell git to use an editor you like an tell it to highlight13:38
dpwright joined13:38
dr_balor left13:38
npws_marc Checking out files: 100% (4814/4814), done.13:38
Switched to branch 'development'13:38
i've never seen that before :o what's that mean?13:39
_ikke_ npws_marc: What did you execute?13:39
npws_marc just changed to the development branch13:39
cbreak npws_marc: that means that SOMEONE (looks at npws_marc) switched to the development branch13:39
npws_marc i mainly meant the first part13:39
where it announced it was checking out files13:40
cmn it's a progress output13:40
tureba left13:40
fisted left13:40
tplaner_ joined13:40
The-Compiler left13:41
_ikke_ Probably because it takes longer than a certain time13:41
soee left13:42
TomyLobo nm, simply copied all git-specific stuff from msysgit/share/vim to my ~/.vim[rc]13:43
nedbat joined13:43
TomyLobo and i was right, it's vim, not vi13:43
tureba joined13:43
derpops joined13:43
nizeguy left13:44
arietis left13:44
daniel_- left13:47
daniel_- joined13:47
daniel_- left13:47
pretty_function left13:48
HavenMonkey left13:49
daniel_- joined13:49
daniel_- left13:49
daniel_- joined13:49
lyddon__ joined13:50
lyddon__ left13:50
lyddon left13:50
beautifulmind left13:51
daethorian left13:51
solofight joined13:51
The-Compiler joined13:52
lyddon joined13:53
lyddon left13:53
letharion joined13:53
samphippen left13:53
meyering left13:55
VadtecWk left13:56
wwwjfy left13:56
Mode-M joined13:57
danmackay left13:57
chris64 left13:57
VadtecWk joined13:57
chris64 joined13:58
mkadin joined13:58
danmackay joined13:58
maleknet left13:59
xiangfu left13:59
simesy_work joined13:59
lng left14:00
chris64 left14:00
dv310p3r left14:01
cmn fine, so it's full-blown vim14:03
thiago joined14:04
simesy_work left14:04
jaseemabid joined14:04
cmn it's bound to cause you less trouble if you follow the instructions, rather than copying what may or may not be relevant14:04
OOPMan left14:05
Anders_J joined14:05
DeviceZer0 left14:06
erichynds joined14:06
VadtecWk left14:06
jMCg Hey folks -- can someone help me check this out: http://www.openssl.org/gitweb.cgi?p=openssl.git;a=summary ?14:07
danmackay left14:07
cbreak check out?14:07
FauxFaux They don't give a clone url on that page, so you need to find it elsewhere, jMCg.14:07
cbreak they do14:08
jMCg FauxFaux: awesome.14:08
cbreak but it's incomplete14:08
The-Compiler left14:08
jast it's an incomplete URL14:08
cbreak try somehost/gitweb.d/openssl.git14:08
jast might wanna try this: git clone http://www.openssl.org/gitweb.d/openssl.git14:08
VadtecWk joined14:08
FauxFaux Google returns mirrors of it.14:08
jMCg I've tried *all* the combinations.14:08
cbreak I'd try ssh:// first :) or git://14:08
chimay joined14:08
FauxFaux Or #openssl. ;)14:08
The-Compiler joined14:08
The-Compiler left14:08
jMCg git clone git://www.openssl.org/openssl.git14:09
\o/14:09
danmackay joined14:09
Milossh joined14:09
jMCg Awesome, thanks!14:09
dhruvasagar left14:09
samphippen joined14:10
johnny_rose joined14:10
The-Compiler joined14:10
The-Compiler left14:10
DeviceZer0 joined14:10
tham joined14:10
cbreak there's also http://repo.or.cz/w/mirror-openssl.git14:10
Trioke joined14:11
tjadc left14:11
john3 left14:13
john3 joined14:14
dv310p3r joined14:14
The-Compiler joined14:15
chris64 joined14:15
ehsan left14:16
jds joined14:16
ThomasLocke left14:16
stewbydoo joined14:18
dnstbr joined14:18
xiangfu joined14:18
spectrum1 left14:18
cilly left14:18
The-C0mpiler joined14:18
The-Compiler left14:19
The-C0mpiler left14:19
The-Compiler joined14:20
FeurFrei joined14:20
cakehero joined14:20
The-Compiler left14:20
wwwjfy joined14:21
The-Compiler joined14:21
lyddonb joined14:23
pfFreddd joined14:23
pfFred left14:23
talexb joined14:23
Guest46753 left14:24
jan2471 joined14:24
diverdude left14:25
_Qman left14:25
roger_raymond left14:26
roger_raymond joined14:26
lyddonb left14:27
jesseFromYVR left14:27
daethorian joined14:27
jan2471 left14:27
jan247 joined14:28
jan247 if i want to put a git repo inside a git repo, and i don't exactly need to track it (ala submodule). what are my options? adding that subproject to .gitignore doesn't seem to work14:28
i don't like having to commit to the main project everytime the submodule is updated.14:29
haarg adding it to .gitignore should work14:29
_ikke_ haarg: nope14:29
that doesn't work14:29
git doesn't ignore tracked content, and submdules are tracked14:29
jceb left14:30
dzonder joined14:30
_ikke_ jan247: If you don't like that, than using submodules is not what you want14:30
robotmay joined14:30
haarg uh what14:30
jan247 yup. i don't want to use submodules14:30
dean[w] left14:30
haarg adding it to .gitignore will work14:30
jan247: if you already added it as a submodule, you need to remove the submodule first14:31
then using gitignore will work14:31
pfFred joined14:32
haarg removing submodules is rather painful if i remember correctly though14:32
_ikke_ !submodule_rm14:32
gitinfo [!submodules_rm] You want to delete submodules? Excellent choice! All commands are in the superproject. Edit/delete .gitmodules to remove the submodule. Then `rm -rf submodulepath; git rm -f --cached submodulepath; git commit -am "Removed submodules!"` Inspect .git/config for "submodule" entries to remove. Inspect .git/modules for caches to remove "!gitslave" or "!subtree" (type them!) might be alternatives14:32
jan247 nope. i haven't added it in a submodule. however, putting the folder_name/ in the .gitignore tells me that the folder is modified14:32
jbub left14:32
_ikke_ ignoring submodules doesn't work14:33
jan247 with 'untracked content'14:33
jn_ joined14:33
erichynds left14:34
lyddonb joined14:34
pfFreddd left14:34
jan247 hm. soo. any options?14:34
lyddonb left14:34
lb is there any nice option in git that you determine before a merge if there will be conflicts?14:35
AlbireoX joined14:35
mmattice just merge into a temp branch14:35
psoo left14:35
BadDesign left14:35
ShadeTornado joined14:36
lb mmattice, i know :/ my co worker is an svn guy and just want something similar to "svn status -u"14:36
rgsteele joined14:36
lb i found git diff --name-status --diff-filter=M BRANCH14:36
Raging_Hog joined14:36
arvind_khadri left14:37
gavin_huang left14:37
_ikke_ That just shows modified files14:37
haarg jan247: if it tells you the folder is modified, then it has been added as a submodule14:37
AlbireoX`Laptop joined14:38
AlbireoX left14:38
chrisgeorge joined14:38
jan247 damn. ok. fresh repo anyway. trying again. tnx14:38
lb _ikke_, am i right, that only modified files could produce confilcts?14:38
_ikke_ No14:38
FeurFrei left14:39
_ikke_ You can possibly add a new file in two branches, which will cause a conflict14:39
Maccer left14:39
axl_ joined14:39
_ikke_ Or you can modify in one and modify in another branch14:39
jackh left14:39
lb svn shows in "svn status - u " if the file has a conflict against the repo version. is their any equivalent in git that shows me that too?14:39
cagedwisdom left14:39
lb some diff option maybe?14:40
johnny_rose left14:40
esc how can i see the log for a file that was merged with subtree-merge14:40
bremner git status -s14:40
Maccer joined14:40
mkadin left14:41
bremner lb^14:41
Adys_Adys14:41
bremner lb: oh, you want something before the merge?14:41
lb bremner, jup ;)14:41
mgue-mobile joined14:41
dragon3_ left14:41
bremner that's pretty much impossible, I think14:41
lb something like a merge --dry-run doesn't exist ? :/14:41
xxc_michael left14:41
john2496 joined14:41
bremner well, merge --abort does.14:42
lb the workflow is temp branch, test merge , delete temp branch?14:42
mmattice lb: why would it when you can easily create a temporary branch whenever you want?14:42
mkadin joined14:42
bremner well, you don't _need_ the temp branch14:42
lb mmattice, again, i use temp branches ;) it's my svn worshipping co worker who doesn't :D14:42
bremner but it does make things simpler, maybe14:42
papegaaij left14:42
mmattice unless you're just checking for conflicts and don't want to keep it14:43
lb bremner, ok i will force choke him until he uses temp branches14:43
thanks though14:43
bremner yay!14:43
jan247 tnx haarg14:44
bremner lb: anything that you can do on a temp branch, you can do with reset, but there is more room to screw things up when not using a temp branch. So for someone uncomfortable with git, temp branch is probably better.14:44
lb bremner, yeah, i used told him to do so and he resignated :D14:45
lb is full of win14:45
lb (i wont tell him about reset, he would screw up ;) )14:45
Lord_DeathMatch left14:45
Lord_DeathMatch joined14:46
florin_ joined14:46
timj left14:46
gerryvdm_mbp left14:47
gerryvdm_mbp joined14:47
gerryvdm_mbp left14:47
gerryvdm_mbp joined14:47
mkadin left14:48
xiangfu left14:49
flijten left14:50
lyddon_ left14:50
ehsan joined14:51
mkadin joined14:52
rwestphal left14:52
axl_ left14:53
axl_ joined14:54
tjadc joined14:54
cat_five joined14:56
Parhs8 joined14:56
cat_five hi. is anyone willing and able to show me how to figure out when my files got out of sync? just discovered a whole class missing from my testing environment code from a commit over a month ago14:57
whitman left14:57
zenx joined14:57
cat_five i've figured out which commit it was, but i don't know why or how to get it back in sync!14:58
_ikke_ cat_five: define back in sync?14:58
Parhs left14:58
lyddon joined14:59
cat_five _ikke_: in sync with the code base on my machine here and on the production server14:59
simesy_work joined14:59
cat_five i just discovered this one missing class, now i'm nervous there could be other discrepancies14:59
i'm treating my local code here as canonical, if that answers your question15:00
g0bl1n joined15:00
cagedwisdom joined15:00
OOPMan joined15:00
tyoc213 joined15:01
Vile joined15:01
tyoc213 Hi there, the other day I have do a git reset --hard, now I see that I have a HEAD and I was commiting to "develop" so how I do it now?15:01
lb tyoc213, !head15:02
gitinfo tyoc213: [!HEAD] HEAD is a 'pointer' to the currently checked out branch (or commit, if HEAD is !detached). In bare repositories it serves a different function: it tells clients which branch to checkout initially after cloning. HEAD is *not* something that exists separately for every branch; that's a common misunderstanding. It also is *not* the newest commit in the repo (which is hard to define in a DVCS anyway)15:02
abstrusenick joined15:02
OOPMan left15:02
tyoc213 thx lb, so if I "merge" it with develop it will be gone?15:03
OOPMan joined15:03
lb tyoc213, no15:04
simesy_work left15:04
lb tyoc213, is always there15:04
etcetera joined15:05
arturaz joined15:05
Fullmoon left15:05
ehsan_ joined15:05
TheFuzzb_ joined15:05
TheFuzzball left15:05
TheFuzzb_ left15:06
thiago left15:06
Fullmoon joined15:06
ehsan left15:07
juvenal left15:07
LeMike left15:07
cat_five so, can anyone help me piece together what went wrong?15:08
ipalaus left15:08
_ikke_ I'm bound to go home15:08
cat_five i suspect it was modifying files upstream15:08
lb cat_five, please give more information.15:08
TheFuzzball joined15:08
lb how to you deploy your code?15:08
dr_lepper left15:08
Fullmoon left15:08
dr_lepper joined15:09
dr_lepper left15:09
dr_lepper joined15:09
cat_five at this point i've been committing locally and then pulling a copy onto a test environment15:09
which is then pulled into production if it works15:09
from my local code, not from the sandbox15:09
apok joined15:09
LeMike joined15:09
juvenal joined15:09
FauxFaux hands cat_five git status and git ls-files15:09
LeMike left15:09
ipalaus joined15:09
cat_five so currently the production code and my local code seem (?) to be identical, but the sandbox has been out for apparently over a month15:10
BadDesign joined15:10
lb cat_five, so check the SHA from all 3 places and you can be sure that your production is sane15:10
juvenal left15:10
kermit joined15:10
LeMike joined15:10
LeMike left15:10
Maxdamantus left15:10
private joined15:11
Maxdamantus joined15:11
PerlJam cat_five: the sandbox is on the same branch as your local system?15:11
privateGuest3838615:11
cat_five that… is a good question PerlJam15:11
jesseFromYVR joined15:11
cat_five [no_idea_dog.jpg]15:12
LeMike joined15:12
cat_five i believe it is now, but can't guarantee it has always been15:12
LeMike left15:12
jaseemabid left15:13
LeMike joined15:13
cat_five what are the ramifications of pulling across branches?15:13
LeMike left15:13
ixti joined15:13
PerlJam cat_five: Just that you'd pull, git would say it updated, but the working copy mightn't change.15:14
LeMike joined15:14
scelis joined15:14
LeMike left15:14
qwertz_ cat_five, wouldn't that "across branches" thing be rather merging?15:14
sheriffk joined15:14
jesseFromYVR left15:14
alexisabril joined15:14
pandeiro left15:15
cat_five what i mean is if i pull from the sandbox, which is on master, from my dev machine which is currently on testing, without specifying which branch to pull from15:15
it pulls from whatever is current on the remote, right?15:15
does that then merge into what is current locally?15:15
LeMike joined15:15
sheriffk left15:15
lb cat_five, !pull15:15
gitinfo cat_five: 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/15:15
LeMike left15:15
cat_five ya15:15
scelis I think recent versions of "git pull --rebase" is conflicting over submodule changes a lot more than it used to. 'git status' gives me: https://gist.github.com/b04c7d17a8912aeaaf1c Note that I only changed "MOKit". What is the best way to proceed from here? I want the eventual rebase to use the version of MOKit that I passed.15:16
qwertz_ cat_five, i think if do not track a specific branch, you fetch and then merge remote/master15:16
beneggett joined15:16
qwertz_ not sure though15:16
SirCmpwnSirCmpwn_15:17
cat_five ok, how do i check my sha's?15:17
pandeiro joined15:17
LeMike joined15:17
LeMike left15:18
yoklov joined15:18
LeMike joined15:18
CannedCorn joined15:18
LeMike left15:18
qwertz_ cat_five, again not shure, but can't you just stash your changes, checkout a branch again and then apply the stash and commit what seems appropriate?15:19
kpreid joined15:19
lb cat_five, you can "git show HEAD"15:19
dpino left15:20
martinklepsch joined15:20
LeMike joined15:20
scelis in fact, that git status output looks to me like a bug15:20
LeMike left15:20
scelis Dependencies/MOKit should be listed as a conflict. I shouldnt see the "no conflicts" message.15:20
fortin joined15:20
hyperair left15:20
Innocentus left15:20
LeMike joined15:21
LeMike left15:21
cat_five ok cool, so dev and prod are in sync15:22
fortin hi folks. Going to migrate from svn to git, I'm trying to understand if is it possible to have a git repository starting from an svn branch (i.e. directory). I'd like to split the source svn into multiple git repositories15:22
cat_five sandbox is out15:22
CannedCorn left15:22
PerlJam fortin: anything is possible : )15:23
er :-)15:23
fortin PerlJam: yeah, wrong word :)15:23
cat_five i realize since it's a testing environment i could easily start over with this repo, but i'd really like to use this opportunity to learn about what to do when Bad Things happen15:23
FauxFaux fortin: It's trivial to convert a branch into a seperate repository. Probably best to start from a git svn clone -s of the svn repo, if it's small enough that that will terminate, then pull the new git branches (which are mirrors of the svn branches) out into repos?15:24
fortin s/if it is possible/how to/g15:24
FauxFaux (A repo is just a name for a collection of branches.)15:24
cat_five re: qwertz_, the commit that put me out of sync happened over a month ago, it is not the latest commit by a long shot15:24
Destos joined15:24
PerlJam fortin: what FauxFaux said basically15:24
fortin FauxFaux: ok nice tnx. I'm waiting for the clone to end right now15:24
FauxFaux You did run it with -s (or similar), right?15:25
svetlyak40wt joined15:25
sirdancealot4 joined15:25
fortin FauxFaux: actually I'm using svn2git, that I see it does a git-svn fetch15:25
FauxFaux Well, you should probably check that it results in actual branches, instead of one fat project.15:26
fortin oh ok15:26
SirCmpwn joined15:27
soc42 joined15:27
fortin well I'll wait for that and check it out. If no branches than I'll go for clone -s15:27
ejb joined15:28
mgue-mobile left15:30
ejb Can anyone tell me why this pre-commit-msg hook isn't inserting the message ("Sup?") into the message file?15:31
kenperkins joined15:32
ejb The file is .git/hooks.pre-commit-msg and +x15:32
.git/hooks/pre-commit-msg *15:32
martinjlowm joined15:32
cat_five left15:33
Maxdamantus left15:33
lb left15:34
mkadin left15:34
kevwil joined15:34
ReekenX left15:35
Maxdamantus joined15:35
mkadin joined15:38
ejb Doh. The hook is prepare-commit-msg not pre-commit-msg15:38
LeMike joined15:40
LeMike left15:40
dc5ala left15:41
letharion left15:41
spiffytech joined15:41
SegFaultAX|work joined15:41
LeMike joined15:42
LeMike left15:42
samphippen left15:43
cthuluh_cthuluh15:43
Fullmoon joined15:43
etcetera left15:43
Fullmoon left15:44
LeMike joined15:44
LeMike left15:44
Fullmoon joined15:44
Fullmoon left15:44
hubidubi left15:44
gitinfo set mode: +v15:45
spiffytech Can someone please verify this? I have a commit on branches 'dev' and 'staging'. I want to take the commit out of staging until the next time I merge dev into staging.15:45
`git revert` on staging would remove it, but when staging and dev are merged together it wouldn't come back. So I need to cherry-pick the reversion commit from staging into dev and then revert the reversion commit. Sound right?15:45
LeMike joined15:45
MajObviousman joined15:45
MajObviousman hallo folks. Whoa, busy channel15:45
LeMike left15:45
Fullmoon joined15:46
torjus_ joined15:46
MajObviousman does anybody here have experience with running git inside a chroot?15:46
RichiH MajObviousman: just ask your question15:46
though there should be nothing special about chroot15:46
MajObviousman should be, yes15:47
jperry2_ left15:47
Fullmoon left15:47
MajObviousman I can't get git to fetch via https, even though I gave it curl and libcurl in the chroot15:47
and expat too, recently15:47
LeMike joined15:47
MajObviousman and I've verified I can fetch pages with https from github from inside the chroot15:47
LeMike left15:47
MajObviousman so am I missing other tools that it wants?15:48
jdunck joined15:48
LeMike joined15:48
LeMike left15:48
rwestphal joined15:48
MajObviousman I have comparison strace outputs from inside and outside the chroot15:49
drougge left15:49
irqq left15:49
mishok13 left15:50
OOPMan left15:50
JaredMiller left15:50
JaredMiller joined15:51
patatras joined15:52
cmn what's the actual problem you're seeign?15:52
plopix left15:52
jaseemabid joined15:53
aisbaa left15:53
adamben left15:54
axl_ left15:54
MajObviousman fatal: Unable to find remote helper for 'https'15:54
axl_ joined15:55
fortin left15:55
patatras left15:55
skul left15:55
MajObviousman and I specifically compiled git --with-curl and --with-expat15:55
senny left15:56
rob_w left15:56
cmn apparently not15:56
MajObviousman so I guess the question is, what's the mechanism by which git makes the call into curl?15:56
Mode-M left15:56
cmn it uses function calls, like for every other library15:56
solofight left15:58
dnstbr left15:58
adamben joined15:59
yoklov left15:59
simesy_work joined15:59
florin_ left16:00
SegFaultAX|work left16:00
letharion joined16:01
rgr joined16:01
gerryvdm_mbp left16:02
skyf_ joined16:02
AlbireoX`Laptop left16:02
QKO|Work left16:03
AlbireoX joined16:03
JSharpe left16:03
jds left16:03
beneggett left16:03
JSharpe joined16:04
simesy_work left16:04
mgorbach Anyone able to help with some submodules? We're tryign to re-point our submodules to github from our internal servers.16:05
jds joined16:05
skyf left16:05
mgorbach I've update .gitmodules, and run git submodule sync, then git submodule init. But the submodules seem to be created with empty URLs: Submodule 'ThirdParty/HockeySDK-Mac' () registered for path 'ThirdParty/HockeySDK-Mac'16:06
reshtnk7 left16:06
_ikke_ mgorbach: git submodule init does nothing16:06
cantoma left16:06
OOPMan joined16:06
_ikke_ Well16:06
Either sync does nothing or init does nothing16:06
cmn that's not what that's telling you16:07
mgorbach Then, when I try to update I get: fatal: Needed a single revision16:07
Unable to find current revision in submodule path16:07
AlbireoX left16:07
_iron joined16:08
cmn that means that the commit it's pinned at isn't available from the repository you pointed it to16:08
reshtnk7 joined16:08
bartek left16:08
sq-one joined16:09
AlbireoX joined16:09
TheJH joined16:09
mneorr joined16:10
adac left16:10
Synthead joined16:10
daniel_- left16:10
hwrd|work joined16:10
swiety joined16:10
jbub joined16:11
robotmay left16:11
ajw0100 left16:12
adamben left16:12
skorgon left16:14
beneggett joined16:14
SegFaultAX|work joined16:14
Element9 left16:14
dougcorrea joined16:14
DoctorMonocular joined16:15
martinklepsch left16:15
ReekenX joined16:16
ajw0100 joined16:16
DoctorMonocular hey everyone, I'm pretty new to git and I'm having trouble doing a pull on a remote server from github -- when I do pull it asks me for a password, and I enter it (and I know it's correct), but the response is always 401 unauthorized. I'm at a loss for how to trouble shoot this16:16
TheJH left16:16
_ikke_ DoctorMonocular: Is it your own repository?16:17
cmn make sure you're spelling the url correctly16:17
pppaul joined16:17
DoctorMonocular _ikke_ it's a github repo that I have access to, but it's not actually on my account16:18
I push and pull from/to my local all the time16:18
PerlJam DoctorMonocular: you don't typically use passwords to access repos on github16:18
cmn of course you do16:18
_ikke_ PerlJam: Via https you do16:18
DoctorMonocular yeah, it's just on the server that I have to, and I'm not 100% clear about why16:18
i42n left16:18
torjus_ left16:18
DoctorMonocular I'm sure it has to do with no key being on there16:18
PerlJam ah, true.16:18
_ikke_ PerlJam: https doesn't know public private keys16:18
DoctorMonocular and yeah, it's pulling via https16:19
PerlJam isn't completely awake yet16:19
cmn having a key wouldn't help you if you're using http16:19
marhaban joined16:19
DoctorMonocular well I can use either, whatever solves the issue, but right now it's set for https16:19
adhawkinsadhawkins-away16:19
DoctorMonocular I don't know if this is helpful, but: root@TG-Web:/var/www/html# git pull origin master16:19
Password:16:20
error: The requested URL returned error: 401 while accessing https://jdstraughan@github.com/JDStraughan/tguard.git/info/refs16:20
fatal: HTTP request failed16:20
pppaul left16:20
DoctorMonocular sorry I spammed the channel, expected that to come out more compactly16:20
dubteam2000 joined16:20
boombatower joined16:20
sitaram uggh; why are you doing git stuff as root?16:20
cmn double-check the spelling16:20
LimeBlast left16:20
balchd joined16:21
DoctorMonocular actually now that I'm looking at it, it seems like I'm trying to log in as jdstraughan@github16:21
but I'm not him16:21
_ikke_ Why is it accessing /info/refs?16:21
nullbit left16:21
_ikke_ isn't that part of the dumb protocol?16:21
DoctorMonocular I changed the user name and email to mine16:21
FauxFaux Isn't that the "you've got a disasterously old git client installed" error?16:21
git --version16:21
cmn _ikke_: yes and no16:21
gitinfo set mode: +v16:21
DoctorMonocular 1.7.0.416:21
dubteam2000 hello all, can someone help me please? I don't know hot to rebase on github16:22
I have this repository on github https://github.com/danut007ro/youtube-dl16:22
cmn FauxFaux: the error would be a different one, this is correct for a 401, as git is requesting that path16:22
dubteam2000 and I want to merge it inside https://github.com/rg3/youtube-dl16:22
I did a pull request here https://github.com/rg3/youtube-dl/pull/45416:22
jds left16:22
dubteam2000 but that guy said "Could you rebase your work so that it is a single commit, without merges and unrelated commits?"16:23
DoctorMonocular so as you can see, I have no idea what I'm doing. I'm pretty new to git, and have no idea how to set this stuff on a remote server at all. the server guy is gone, it falls to me 8/16:23
narfnarfnarf left16:23
dubteam2000 how do I do that? :)16:23
candybar left16:23
sirdancealot4 left16:23
solofight joined16:24
thirdknife left16:24
narfnarfnarf joined16:24
Kronuz Please, I need some help here… I just recently upgraded my Mac with the new Xcode command line tools (4.5.1) and now I'm getting a request to "Merge branch…" every time I do a pull… what can be wrong?16:24
aselder joined16:24
DoctorMonocular I'm reasonably sure the url is correct, the code has been pulled to this server before, in the past16:24
Kronuz I do a reset --hard and then pull, and still I get that16:24
dougcorrea left16:24
Kronuz …or is it that it simply never used to ask me for a commit message for merges?16:25
solofight left16:25
Kronuz but now why is it?16:25
cbreak possible16:26
I think the new git will open an editor for merge commits16:26
mmc1 left16:26
cbreak if you don't know of a good commit message, then maybe you should not merge in the first place :)16:26
gitinfo set mode: +v16:27
balchd Hi, anyone know about username case conflict in git svn clone? Problem details here: https://gist.github.com/99d5db8e307d03fc270616:27
t0oL left16:27
alkino left16:27
cybersphinx left16:27
dubteam2000 can someone direct me at least to somewhere where I can find more info on solving my problem? I'm sure it's pretty simple16:27
cilly joined16:28
bremner dubteam2000: see !book16:28
gitinfo dubteam2000: There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable16:28
jdunck left16:28
balchd !book16:29
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable16:29
DoctorMonocular ok, Iseem to have lost the people who were helping me before. Let me just ask one more question -- if git is trying to pull from https://jdstraughan@github.com/JDStraughan/tguard.git/info/refs how can I get it to pull from https://[something-else]@github.com/JDStraughan/tguard.git/info/refs16:29
?16:29
the_cybersphinx joined16:29
pppaul joined16:29
Kronuz cbreak, is it possible to make it work the way it used to?16:29
dubteam2000 ok, I will surely read a book to write down 2 commands, lol16:29
thanks anyway16:29
dubteam2000 left16:29
williamcotton joined16:29
Kronuz (by skipping that message for merges during pull)16:29
cbreak Kronuz: hmm? you don't want to give a reason for why you merge?16:30
sounds dumb.16:30
why do you merge then?16:30
Kronuz …since now I'll get a bunch of "merged" messages16:30
skyf_ left16:30
Kronuz I'm simply pulling changes16:30
raek dubteam2000: is the change you want the maintainer to pull a single commit?16:30
gusnan left16:30
bremner sigh, he left before we could yell at him16:30
cbreak yeah, and?16:30
pulling is fetching and merging16:30
raek heh16:30
jkremser left16:30
Kronuz and it was cleaner… didn't have to add a new message every time16:30
hwrd|work left16:30
pfFreddd joined16:31
Kronuz :/16:31
cbreak you have to add a message16:31
either you, or git16:31
and you can write better messages than git16:31
you can use -m to specify one16:31
Kronuz I didn't have to, and those messages weren't there at the first place anyway, I don't remember git adding "Merged" messages on every pull I did16:31
pfFred left16:31
mkadin left16:32
Kronuz but that last message it requested me to add does show in the log16:32
cbreak then your memory is flawed16:32
git has always merged when you tell it to merg16:32
solofight_ joined16:32
Kronuz oh, no wait!16:32
it's true, it always seem to have added the message16:32
:P16:32
cmn DoctorMonocular: tell it to pull from that other place, see man git remote set-url16:32
gitinfo DoctorMonocular: the git-remote manpage is available at http://git-scm.com/docs/git-remote.html16:32
Kronuz just never realised it16:32
cbreak, so it's a new feature it now always simply opens the editor to request a merge message?16:34
bartek joined16:34
cbreak I think so16:34
Kronuz (I'm now using git v1.7.10.2)16:34
oh16:34
ok then :)16:34
thiago_ joined16:34
stewbydoo left16:34
solofight_ left16:34
cybersphinx joined16:34
Kronuz …I just thought it was an error or something was wrong the first couple times16:34
juvenal joined16:36
Shusshu joined16:36
angelsl left16:37
SeySayux How do I tell git not to check in a symbolic link as a link, but to actually include the contents of the linked file/directory?16:37
intransit joined16:37
intransitJesseW16:37
CareBear\ SeySayux : unsure if that can be done16:38
spiffytech left16:38
marhaban left16:38
SeySayux Oh well.16:38
CareBear\ SeySayux : you would effectively have something different committed vs. what's in the repo then16:38
daniel_- joined16:38
daniel_- left16:38
daniel_- joined16:38
CareBear\ s/repo/workdir16:38
the_cybersphinx left16:38
SeySayux hardlinks the directory16:38
CareBear\ maybe you want a !submodule ?16:38
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.html16:38
hobodave joined16:39
SeySayux The things I'm symlinking are not git projects, so no.16:39
CareBear\ what are they?16:39
Shusshu left16:39
pfFred joined16:39
jdunck joined16:39
pfFreddd left16:40
thiago_thiago16:40
SeySayux Syntax highlighting files for a programming language for which I have a cloned repo16:40
john_anderson left16:40
CareBear\ why do they go into the workdir?16:40
juvenal left16:40
thirdknife joined16:41
SeySayux I'm linking them into my .vim directory, which I track in a git repo and push to github16:41
Synthead left16:41
CareBear\ can you reference them in the system dir instead?16:41
_md joined16:41
esc SeySayux: maybe you want to look at vcsh16:42
hyperair joined16:42
devsharpen left16:43
skyf joined16:43
cbreak just copy the files16:43
juvenal joined16:43
CareBear\ cbreak++16:43
j416 joined16:44
cbreak if you want git to track file content, then git will write file content when you tell git to clone, reset --hard or similar16:44
balchd left16:44
cbreak so your symlinks would vanish anyway.16:44
SeySayux I could hardlink the directory?16:45
devth can git tell me which commit diffs have not been merged or cherry-picked in another branch? i think i used to know how to do this :/16:45
sq-one left16:46
etcetera joined16:46
dr_lepper left16:47
_ikke_ devth: man git cherry16:47
gitinfo devth: the git-cherry manpage is available at http://git-scm.com/docs/git-cherry.html16:47
jan247 left16:47
devth that's right. thanks.16:47
cbreak SeySayux: most filesystems don't support directory hardlinks16:47
SeySayux cbreak: Mine does16:47
cbreak well, then go ahead16:48
git won't notice :)16:48
hotovson joined16:48
Mode-M joined16:48
cheriv__ joined16:49
cheriv__ left16:49
chaiz left16:49
cheriv_ joined16:49
tyoc213 left16:50
tewecske joined16:51
maxandersen1 left16:51
suy left16:51
ncr100 joined16:52
maxandersen joined16:52
maxandersen left16:52
maxandersen joined16:52
microcode left16:52
achadwick left16:52
hotovson left16:53
microcode joined16:53
bzitzow joined16:53
erichynds joined16:56
nightcrawler786 joined16:56
btree joined16:56
jnl joined16:56
erichynds hi. how do I revert a entire merge (that was done with --no-ff if it matters) a number of commits ago?16:56
SeySayux Hard links work perfectly, thanks :)16:56
hotovson joined16:57
tvw left16:57
erichynds do i need to specify each commit in the merge?16:57
mityaz joined16:58
snearch joined16:58
jperry2_ joined16:59
hwrd|work joined16:59
simesy_work joined16:59
letharion left17:00
snearch left17:00
snearch joined17:00
shruggar left17:01
mishok13 joined17:02
hwrd|wor_ joined17:02
hwrd|work left17:02
cmn erichynds: https://github.com/git/git/blob/master/Documentation/howto/revert-a-faulty-merge.txt17:02
erichynds gracias17:03
lyddon_ joined17:03
hotovson left17:03
hotovson joined17:04
soc42 left17:04
simesy_work left17:04
hotovson left17:05
bnovc left17:05
hotovson joined17:05
g0bl1n left17:06
irqq joined17:06
bnovc joined17:07
bnovc left17:07
bnovc joined17:07
lyddon_ left17:07
skorgon joined17:08
mityaz left17:08
Synthead joined17:08
alegen left17:08
manithree joined17:08
adac joined17:08
rob_w joined17:08
kanru left17:09
pfFred left17:10
pfFred joined17:11
thirdknife left17:11
kanru joined17:12
Maxdamantus left17:12
Maxdamantus joined17:13
letharion joined17:13
g0bl1n joined17:14
codewrangler joined17:14
_md left17:14
swiety left17:15
BadDesign left17:15
Milossh left17:16
jperry2_ left17:16
jperry2_ joined17:16
naquad left17:17
steveoliver_mobi joined17:17
giallu left17:17
steveoliver_mobisteveoliver|mobi17:18
kumbayo joined17:18
pfFred left17:18
steveoliver|mobi left17:18
BadDesign joined17:19
haydenmuhl joined17:19
chovy left17:19
Xizor joined17:20
derrekito left17:20
babilen left17:21
t0mcatdiminoten17:21
derrekito joined17:24
osmosis joined17:24
ajacom joined17:25
ajacom How can I use an ftp server as my remote for git ???17:26
In windows17:26
stewbydoo joined17:26
aristidesfl joined17:27
milki i havent heard of an ftp protocol for git17:27
kevwil left17:27
rockets joined17:27
mneorr left17:27
zastern left17:27
X1z0r joined17:28
cmn there is.. sort of17:28
ajacom: don't do that17:28
ajacom isn't there a way to sync bitbucket or github etc with an ftp server ??17:28
cmn tha makes no sense, !xy17:28
gitinfo This sounds like an "XY Problem" http://mywiki.wooledge.org/XyProblem So let's step back for a minute. What are you actually trying to achieve? Why are you doing it this way?17:28
ajacom i'm just starting a new project. my client gave me ftp access.17:29
ReekenX left17:29
ajacom but i want to use git and and pushes to remote17:29
i'm used to it17:29
cmn ftp access to what?17:29
ajacom besides, i want to work on local as well17:29
to the server for development17:29
Xizor left17:29
bremner is this some web thing?17:30
cmn you can't "develop" over ftp17:30
abstrusenick left17:30
ajacom cmn i know. but i sometimes use filezilla to edit on the go17:31
i want to have the whole project on local now and work with using git pushes17:31
alegen joined17:31
EugeneKay ajacom - !deploy17:31
gitinfo ajacom: Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html17:31
cmn so you download files and edit them, you don't need to change that17:31
EugeneKay ajacom - and please use SFTP or rsync-over-ssh.... anything except insecured FTP.17:32
ajacom ah...17:32
But alright, so17:32
there's no way of having the remote repository be an ftp server like I thought17:32
EugeneKay No, not with git itself.17:32
hoschi joined17:33
bremner there are some hacks around. google for "git-ftp"17:33
no idea if/how-well they work17:33
ajacom i'm not sure i want to do that on windows17:33
cmn do what?17:33
ajacom try to use git-ftp17:33
fram left17:33
deadmund joined17:34
cmn you don't want to do that anywhere17:34
deadmund How can I remove files from my git repo but keep the old versions in the tree? That is, I want to record the deleting of the file. git rm wants to remove from the cache I think.17:34
milki deadmund: see --cached17:35
cmn man git rm --cached17:35
gitinfo the git-rm manpage is available at http://git-scm.com/docs/git-rm.html17:35
robotmay joined17:35
deadmund I want the opposite of cached. I want to remove the file in the working tree (and from future commits) but leave the history of changes in the paste commits (the index?)17:36
cmn no17:36
milki deadmund: git rm doesn ot touch the history17:36
deadmund milki: thanks :)17:36
hahah "no"17:36
felipec joined17:37
milki deadmund: it will only touch your index and your working tree17:37
deadmund I guess git rm -f <file>17:37
drougge joined17:37
cmn why -f?17:37
milki you dont need -f17:37
deadmund because there are changes in there that I want to ignore17:37
milki o17:37
deadmund right?17:37
milki will if it complains without the f, then ya17:37
deadmund ok17:37
thanks17:37
milki :P17:37
deadmund yeah, now 'status' looks how I want: several files modified and the file in question marked as 'deleted'17:38
eletuchy joined17:38
deadmund thanks! :)17:39
deadmund left17:39
svetlyak40wt left17:39
Vile left17:40
TeckniX left17:41
drougge left17:42
arturaz left17:42
JaredMiller left17:43
Fullmoon joined17:44
zenx left17:44
Fullmoon left17:45
nickpresta joined17:46
mmc1 joined17:47
mcluskydodallas joined17:48
aselder left17:49
mcluskydodallas left17:49
robotmay left17:49
ncd|leeN joined17:49
jaseemabid left17:50
wwwjfy left17:50
JaredMiller joined17:50
HG` joined17:51
babilen joined17:51
leeN left17:53
aselder joined17:54
ampz joined17:54
drizzd joined17:54
tockitj joined17:55
TeckniX joined17:55
dreiss joined17:55
tockitj how to discard all commits i have made locally and revert to origin git log17:55
melee left17:56
adhawkins-awayadhawkins17:57
MajObviousman git fetch && git rebase origin/branch && git reset HEAD17:57
thierryp left17:57
Fullmoon joined17:57
JaredMiller left17:57
ampz left17:57
kevwil joined17:58
JaredMiller joined17:58
JaredMiller left17:58
giallu joined17:58
JaredMiller joined17:58
ampz joined17:58
rue left17:58
rue joined17:59
simesy_work joined17:59
BadDesign left17:59
abaratican joined18:00
BadDesign joined18:00
FauxFaux git stash && git checkout -Bmaster '@{u}'18:00
ipalaus left18:01
torjus_ joined18:01
abaratican I want to version control certain parts of my home directory, and I want to have to explicitly add every file I wish to version. However, as an unfortunate side effect, I can go 30-levels deep into my home folder and do a git command and it assumes I want to know about my home folder.18:02
btree left18:02
bremner abaratican: maybe !vcsh would help you18:03
gitinfo abaratican: https://github.com/RichiH/vcsh -- version control shell - manage dotfiles using git's fake bare repos to put more than one working directory into $HOME18:03
abaratican I tried getting around this via renaming the .git folder and making: alias hgit="git --git-dir=~/.othergit --work-tree=~", but then git submodule operations are erroring (rest works)18:03
rue left18:03
bremner although, there are still some issues with submodules, unless git is very up to date18:04
simesy_work left18:04
cirenyc joined18:04
cilly left18:05
g0bl1n left18:06
MajObviousman so, I was missing a development packae on the system building git, and instead of it telling me, the configure script was just silently washing over it and not compiling the parts that needed the lib18:06
hwrd|wor_ left18:07
RichiH abaratican: are you using submodules in $HOME or in the subdirectories?18:07
adamm left18:08
atomx left18:08
apok left18:10
kermit left18:11
rue joined18:11
rue left18:11
Lord_DeathMatch left18:11
rue joined18:12
i42n joined18:12
tjadc left18:12
aselder left18:12
adamm joined18:14
cmn MajObviousman: that's traditional way18:14
chimay left18:14
Chillance joined18:14
btree joined18:14
snearch left18:15
sq-one joined18:15
btree left18:15
tham left18:16
cilly joined18:18
bremner did the configure script print something out about missing libraries?18:20
I bet it did.18:20
Sigma joined18:20
abaratican RichiH: subdirectories that I want to version with $HOME (specifically a vim addon in .vim/bla...)18:20
chrisgeorge left18:21
abaratican I've yet to look into bremner's suggestion though; work distractions.18:21
whitman joined18:21
guampa joined18:21
chrisgeorge joined18:22
marthinal left18:22
pantsman joined18:23
kevwil left18:24
torjus_ left18:24
TomyLobo left18:24
rue_XIV joined18:27
lacrymology joined18:27
dv310p3r left18:27
bartek left18:27
acrocity left18:28
acrocity_ left18:29
nedbat left18:29
hwrd|work joined18:29
nedbat_ joined18:29
RichiH abaratican: if you have questions about vcsh: i am the author18:30
abaratican: and, submodule support notwithstanding, it's better to use mr for such use cases18:30
imo18:30
hwrd|work left18:30
acrocity joined18:30
rue left18:31
huismon joined18:31
the_cybersphinx joined18:32
khmarbaise joined18:32
huismon left18:32
_huoxito left18:32
nate_h joined18:32
donri left18:32
nate_h hey is there a way to check if there is a remote change without pulling ?18:32
hwrd|work joined18:32
nate_h like a noop pull?18:32
canton7 nate_h, you probably meant fetch18:33
cmn man git remote show18:33
gitinfo the git-remote manpage is available at http://git-scm.com/docs/git-remote.html18:33
canton7 man git-ls-remote18:33
gitinfo the git-ls-remote manpage is available at http://git-scm.com/docs/git-ls-remote.html18:33
jbub left18:33
SkAzZ left18:33
JackWinter left18:33
canton7 well yeah - two interpretations of your question. if you want to see if there are changes without transferring any data, ls-remote. if you want to fetch changes and inspect them without merging them in, fetch then remote show / log / etc18:34
ivan\ left18:34
psoo joined18:34
cybersphinx left18:36
axl_ left18:37
bartek joined18:37
arvind_khadri joined18:39
apok joined18:39
ivan\ joined18:39
lectrick Hey when you're solving a rebase conflict, is HEAD the branch you started out on, or is HEAD the branch you're rebasing to?18:39
(if youre are in a (no branch) state)18:40
milki i think its latter18:40
FauxFaux HEAD is the work in progress, which starts at the one you're rebasing on top of, obviously.18:41
milki the branch you started off doesnt matter because you are reapplying the commits18:41
dv310p3r joined18:41
joeytwiddle left18:41
svetlyak40wt joined18:41
adamben joined18:43
ki9a joined18:44
kevwil joined18:44
gitinfo set mode: +v18:45
ki9a I have a fairlyy large git tree (on windows) that internally has source and Source as a dir. GIT itself has no trouble dealing with that but I want it all in Source; is there a good way to merge these two dirs?18:45
bremner ki9a: use your favourite merge tool, then commit the changes18:46
worstadmin joined18:46
EugeneKay I scream every time I find two folders who differ only by capitalization18:47
Also, !GIT18:47
gitinfo Git is not an acronym. Writing it in all caps is heresy and will be punished by Subversion or SCCS for more grievous offences. It's "git" or "Git". Thank you for your help in making the world a better place.18:47
medusaXX joined18:48
daniel_-_ joined18:48
nitrix joined18:48
gitinfo set mode: +v18:48
starlays joined18:48
medusaXX hi18:48
gitinfo medusaXX: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.18:48
daniel_- left18:49
starlays it is possible to search trough commits for a given to see when was changed last time?18:49
SegFaultAX|work left18:49
medusaXX what does this mean? ! [remote rejected] master -> master (branch is currently checked out)18:49
thirdknife joined18:49
medusaXX i cannot push18:49
Vile joined18:49
medusaXX error: failed to push some refs to 'ssh://par......18:49
nedbat_ left18:50
thirdknife left18:50
project2501a left18:50
thirdknife joined18:50
FauxFaux medusaXX: Seems clear; what do you not understand? !faq non-bare18:51
gitinfo medusaXX: Pushing to non-bare repositories is discouraged; more details available at http://jk.gs/gitfaq#non-bare18:51
project2501a joined18:51
irqq left18:51
nickpresta left18:51
nedbat joined18:51
irqq joined18:51
babilen left18:52
trungqtran left18:53
joeytwiddle joined18:53
babilen joined18:53
medusaXX ok i'm confused but i will have to some basic docs... seems git is not so easy18:54
candybar joined18:55
MajObviousman it's easy for simple cases, but it can rapidly scale into difficult18:55
cmn medusaXX: you're trying to do something that is explicitly forgiven18:55
forbidden, even18:55
before that line, git must have shown you a long explanation as to why, also see !bare18:56
gitinfo an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/18:56
medusaXX ok thanks18:56
rubious joined18:57
arietis joined18:57
simesy_work joined18:59
cylence joined18:59
Squarism2 joined19:00
Squarism left19:00
samuel02 joined19:00
fornext left19:01
trungqtran joined19:01
melee joined19:02
HG` left19:02
thirdknife left19:03
yann|work left19:04
simesy_work left19:04
mislav joined19:04
ameoba left19:04
devinrhode2 joined19:04
alansaul joined19:05
hotovson left19:07
vmiklos left19:07
Sky[x] joined19:08
medusaXX hm how can i turn an existing non-bare repository into a bare one?19:09
Tectutectu19:09
ncd|leeN left19:09
hotovson joined19:09
marthinal joined19:10
manithree I'm considering setting up my new git server with mod_authnz_ldap and using Git::Hooks and check-acls.pl to replace gitosis19:10
If possible, I would like to keep GROUPSPEC and acl files in git, so I'm wondering if someone has already put together some tools/utils to do that19:10
medusaXX sorry. that was in the faq section.19:10
anish[1] left19:10
witul left19:10
narfnarfnarf left19:11
manithree Or is that a bad idea?19:11
mislav Are there plumbing commands for inspecting git remotes? e.g. to get list of remotes, including URLs that have been processed with `insteadOf` settings.19:11
`git remote -v` is useful but is listed as porcelain not plumbing19:11
adamm left19:11
aselder joined19:11
witul joined19:12
aspotashev joined19:12
hyperair left19:12
aselder left19:12
sluther joined19:14
Guest38386 left19:15
_md joined19:16
hyperair joined19:16
cmn git-remote is how you handle remotes19:18
yann|work joined19:20
Lgb left19:20
aspotashev left19:21
xplat left19:21
mislav cmn: Sorry, I haven't stated my use case: it's for scripts. I want to refrain from using porcelain commands as much as possible (I had issues with porcelain commands changing format and breaking scripts in the past). git-remote is porcelain19:22
babilen left19:22
rohan32 joined19:22
svetlyak40wt left19:22
adamm joined19:22
mislav but I guess its output is enough machine-readable that I can use it from scripts. just hope it won't change.19:22
svetlyak40wt_ joined19:22
Lgb joined19:22
rgsteele left19:23
samphippen joined19:23
babilen joined19:23
vbd1 joined19:24
TheJH joined19:24
cylence left19:24
cmn you can use git-config or a library19:25
shruggar joined19:25
AlbireoX left19:25
gitinfo set mode: +v19:27
vbd1 can I ask here a question to git extensions?19:27
ki9a left19:28
bremner you can try.19:28
wagle left19:29
X1z0r left19:29
vbd1 I start to setup a repositories for large projects (e.g. static websites). When i commit files ~>2.000 git-extensions hangs. Should I stage smaller packages?19:29
Droolio left19:29
bremner 2.000 what19:30
you mean more than 2000 files?19:30
ixti left19:30
vbd1 yes more than 2.000 files. The projects consists of ~ 200.000 files.19:31
kermit joined19:31
vbd1 trying to commit it via command line well hang sometimes too.19:32
MikeyV27_ joined19:32
milki theres a . instead of a , o.O19:32
bremner are the files large? 2000 doesn't seem so many.19:32
well, europe vs US19:32
milki ooo19:33
vbd1 every file is between 2kb and 50kb.19:33
bremner at least germans use ,19:33
ameoba joined19:33
bremner hmm. And repository is on the local machine, no funny network file systems?19:33
vbd1 It's on a ssd.19:34
bremner Strange. What OS?19:34
aselder joined19:34
vbd1 windows 719:34
64 bit19:34
marthinal left19:34
diegoviola joined19:34
bremner hmm. I guess it might be windows specific, I have no experience there.19:35
MikeyV27 left19:36
vbd1 np. have to dig inside...19:36
thank you.19:36
MikeyV27_ left19:36
medusaXX left19:37
vbd1 left19:37
hotovson left19:37
chrisgeorge left19:39
esc !logs19:39
gitinfo [!irclog] Public logs of #git are kept at: http://colabti.org/irclogger/irclogger_log/git or look at stats for the last 30 days: http://itvends.com/irc/git.html19:39
mneorr joined19:39
abaratican !mr19:39
chrisgeorge joined19:40
abaratican RichiH: "it's better to use mr in such cases"... mr?19:40
oh nvm i see a link to it on the vcsh page19:41
hotovson joined19:41
rgr left19:42
adac left19:42
arvind_khadri left19:42
tureba left19:42
vmiklos joined19:43
AlbireoX joined19:43
sluther left19:44
trungqtran left19:44
Yuuhi```` left19:44
hotovson left19:45
tureba joined19:45
kermit left19:46
wagle joined19:48
rubious left19:50
pfFredd joined19:51
adhawkinsadhawkins-away19:51
BSaboia left19:51
dr_lepper joined19:52
dr_lepper left19:52
dr_lepper joined19:52
ampz left19:52
lacrymology left19:53
aspotashev joined19:53
hobodave left19:53
timj joined19:54
Sigma left19:55
patrick99e99 joined19:56
lamont left19:57
patrick99e99 hi, so when I do git rebase master on another branch, and it shows conflicts in a file that I don't care about-- meaning I want that file to just be however it was on master.. What do I do to make that happen? I tried just adding the file and then after the rebase finished, I tried to do git checkout filename .. but it still shows the <<<<<<<< in the file...19:57
how can I say "replace that file with what's on origin/master" ?19:57
Aaeriele since it's a rebase, "git checkout --ours <filename>"19:59
paradoxquine joined19:59
kevwil left19:59
dpk joined19:59
simesy_work joined19:59
Aaeriele if it were a regular merge, it'd be --theirs instead19:59
trungqtran joined20:00
paradoxquine hi! how does one fetch and merge for all branches that have a remote tracking branch set up all in one command?20:00
patrick99e99 Aaeriele: that did not work.. the file has <<<<<<< HEAD in it from either --ours or --theirs20:00
dnstbr joined20:01
hoschi left20:01
TeckniX left20:01
userbard joined20:01
lamont joined20:01
erichynds left20:01
mneorr left20:03
simesy_work left20:03
mislav patrick99e99: maybe you committed that file with "<<<<<<<" conflicts unresolved. this is possible.20:05
so now no checkout will help you. it's a botched rebase. you'll have to start over20:05
patrick99e99 mislav: no.. I just did git rebase master, and then when it said there was a conflict, I just did git add <file with conflicts>20:05
AdrienBrault joined20:05
JesseW left20:05
mislav patrick99e99: and you were sure to take the conflicts out of that file? because `git add` doesn't automatically solve conflicts.20:05
you have to take care of them in your editor/IDE20:06
aruiz left20:06
patrick99e99 mislav: no.. I didn't remove the conflicts, because like I said, I just wanted to pull the latest version off origin to replace the one with conflicts20:06
which is what I want to do now...20:06
I want to get the one off origin to replace this one20:06
mislav you want to reset your current branch to the state as it has on origin?20:07
losing all your local changes? git reset --hard origin/mybranch20:07
ampz joined20:07
srayner joined20:09
jceb joined20:09
ipalaus joined20:10
TeckniX joined20:10
lb joined20:10
tewecske1 joined20:10
axl_ joined20:11
tewecske left20:12
Fullmoon left20:12
goshawk joined20:13
patrick99e99 mislav: no.. I just want to reset the a file (the one with conflicts) from what is on origin20:13
LeMike joined20:14
mislav patrick99e99: git reset origin/mybranch -- myfile && git checkout HEAD myfile20:14
something along those lines.20:14
tgummerer left20:14
yoklov joined20:14
tgummerer joined20:15
jceb left20:15
patrick99e99 <<<<<<< HEAD is still in the file...20:15
I guess I am just going to switch to master and manually copy the file somewhere else and then switch back to my branch and move the file there and overwrite the one there..20:16
SegFaultAX|work joined20:16
patrick99e99 i just wish I knew how to tell git to automatically do that.20:16
Raging_Hog left20:16
whitman left20:18
ajacom a question: branch, edit, commit, merge <- in that workflow, do the branches still exist after merging them? if I use "dev" and "master" for example, will merge leave me only with "master", lose all my log and branch history, and i'll have to create 'dev' again ?20:18
cmn merge doesn't delete branches20:18
ajacom ah, alright, thanks20:19
mislav left20:19
ajacom cmn: by the weay20:19
haarg and even if it did, you wouldn't lost your history20:19
Anders_J left20:19
haarg s/lost/lose/20:19
ajacom I found beanstalkapp.com for what i was asking earlier20:19
automatically deploys to ftp20:20
haarg the history of dev would become part of the history of master20:20
robustus left20:22
_iron left20:22
eijk_ joined20:22
lb left20:23
eijk left20:24
shruggar left20:26
zastaph joined20:26
LeMike left20:26
gumnos joined20:27
skyf left20:28
jimmyeatworld joined20:29
srayner left20:30
i42n left20:30
BSaboia joined20:31
sjuxax left20:31
gusnan joined20:34
gary_b 1. run git am updates.patch 2. gives me errors http://pastebin.com/kKm3mQc9 3. run git apply --reject --whitespace=fix updates.patch 4. no .rej files, i add one file with git gui 5. run git am --resolved 6. its fixed20:34
why would the above work (the 1 file i added was the one marked changed in git gui)?20:35
geekbri left20:36
adamm left20:36
starlays left20:37
sirdancealot2 joined20:38
timj left20:38
husnainlatif joined20:39
aaronmoodie joined20:39
gary_b id like to know a little more about what git magically does with this one:)20:40
pfFred joined20:41
Fullmoon joined20:42
stewbydoo left20:42
chisler left20:43
adamm joined20:43
pfFredd left20:44
gtrak joined20:44
Davey left20:46
kumbayo left20:46
timj joined20:48
Davey joined20:49
_md left20:49
husnainlatif left20:50
AlbireoX left20:51
ehsan_ left20:51
thiago left20:51
AlbireoX joined20:51
ehsan joined20:51
legumbre_ left20:51
shruggar joined20:53
drizzd left20:53
AlbireoX left20:55
lamont left20:56
pfFred left20:57
alexisabril left20:57
mishok13 left20:58
freeed left20:59
simesy_work joined20:59
ajacom left20:59
rcu joined21:00
cannonball left21:01
bubbles10101 left21:01
v0n joined21:01
bubbles10101 joined21:02
timj left21:02
bubbles10101 left21:02
bubbles10101 joined21:02
tectuTectu21:03
tinti left21:03
simesy_work left21:04
bartek left21:04
und3f left21:04
rwestphal left21:05
ology left21:05
koltroll left21:05
thiago joined21:06
yoklov left21:06
Squarism2 left21:07
lamont joined21:07
sq-one left21:07
melee left21:08
kidd1329 joined21:08
jaseemabid joined21:08
srayner joined21:09
rcu left21:09
cirenyc left21:10
mneorr joined21:10
babilen left21:10
babilen joined21:11
Element9 joined21:12
v0n left21:13
irqq left21:13
v0n joined21:13
todd_dsm joined21:13
revagomes left21:15
IP_Prob joined21:16
YoMomma joined21:17
gitinfo set mode: +v21:18
IP_Prob Hi. I'm relatively new to git. I'm trying to work with a "dev" branch on github. Does anyone have a couple minutes to help me out?21:18
manithree left21:18
wereHamster !ask21:18
gitinfo Yes, it's okay to ask questions here.... in fact, you just asked one! ;-) Pretty much any question is fine. We're not terribly picky, but we might be asleep. Please be patient and you should get an answer soon.21:18
TheJH left21:19
superjoe joined21:20
superjoe I'm in the middle of a merge because I did git stash pop and there are conflicts21:20
aspotashev left21:20
superjoe I want git to chill the fuck out and let me make commits21:20
edoceo left21:20
superjoe how do I do that?21:20
goshawk left21:20
IP_Prob !ask Hi. I'm relatively new to git. I'm trying to work with a "dev" branch on github. Does anyone have a couple minutes to help me out?21:20
superjoe leave the conflicts be - I don't want to commit those files yet21:20
gitinfo Yes, it's okay to ask questions here.... in fact, you just asked one! ;-) Pretty much any question is fine. We're not terribly picky, but we might be asleep. Please be patient and you should get an answer soon.21:20
Sonderblade joined21:21
rudi_s superjoe: git reset will abort the merge (but leave the conflict markers).21:21
superjoe perfect, thanks21:21
rudi_s You have to take care of them sooner or later.21:21
jn_ left21:21
rudi_s Git won't warn you if you git add them!21:21
np21:21
samuel02 left21:22
Chibby_ joined21:22
samuel02 joined21:22
juvenal left21:23
akiress joined21:23
IP_Prob So let's say I've forked a repository on github, and the new repository is at http://github.com/user/project21:23
DeviceZer0 left21:23
IP_Prob Then I clone this repository using git-gui.21:24
Now I'm supposed to put a file into a directory named "media", but this directory only exists in the "dev" brance.21:24
*branch21:24
superjoe you're "supposed" to?21:24
is this a homework assignment?21:24
zastaph left21:24
hellopat left21:24
IP_Prob Not homework.21:24
rudi_s !book21:24
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable21:24
IP_Prob the people who hired me to make the file want me to put it into that directory.21:25
rudi_s IP_Prob: ^ Have a look at Pro Git and its explanation of git branches.21:25
(Short answer is git checkout dev; git add path/to/file; git commit; git push)21:25
IP_Prob Can this be done with the git-gui, or only via command line?21:26
DeviceZer0 joined21:26
rudi_s I've never used git-gui, so I don't know. But I guess there's a change branch (or checkout) command in git-gui.21:26
IP_Prob thanks for the link, by the way, but it seems I just read that page before coming here.21:27
I'll give it a shot in the command line. Brb.21:27
rudi_s IP_Prob: Pro Git is a book with a few hundred pages, I doubt you have read that so quickly ;-)21:27
IP_Prob Just the part on branches, I mean.21:27
rudi_s Oh. That should explain it.21:28
derpops left21:28
bapa joined21:29
tplaner_ left21:29
mneorr left21:30
talexb left21:30
IP_Prob Blah. I can't even get into git from my windows command line.21:31
samuel02 left21:31
IP_Prob I wish I could just put these files on a thumb drive and mail it to them :(21:31
dijonyummy joined21:32
cbreak install git.21:32
it's a command line program21:32
IP_Prob Oh, wait. I found git bash.21:32
I was trying to use git from the shell.21:33
cbreak that works too21:33
pandeiro left21:33
cbreak depending on wether you checked that box at installation time21:33
chris64 left21:33
svetlyak40wt_ left21:34
LucasTizma joined21:34
chris64 joined21:34
shruggar left21:36
Anders_J joined21:37
hwrd|work left21:39
guampa left21:40
nedbat left21:40
ology joined21:40
ventsislav joined21:40
IP_Prob I can't believe I'm spending hours learning a command line utility just so I can send these people a file.21:41
So, do I need to do --recursive to make sure I get all the branches?21:41
cbreak no21:42
that's for submodules21:42
jperry2_ left21:42
cbreak git branch -a to show all branches21:42
git checkout name to check out a branch21:42
guampa joined21:42
hwrd|work joined21:43
IP_Prob Thanks. To be fair, I'll probably have to learn how to use this eventually. It's not a waste of time in the long term, it just feels that way in the short term.21:43
tewecske1 left21:43
ampz left21:43
cbreak if you're a developer, then you won't get far without some kind of scm :)21:44
and git's the best of them :)21:44
userbard left21:45
JSharpe left21:45
JSharpe joined21:46
esc git++21:46
ology git++ indeed21:47
thorbjornDX git makes everything easier21:47
Nugget_ left21:48
Nugget joined21:48
zodiak joined21:49
hays joined21:50
zodiak hey guys and gals, how the heck do I get out of 'fatal: You are in the middle of a cherry-pick -- cannot amend.' ?21:50
I have never seen this before in git21:50
cbreak you cherry picked21:50
and there was probably a conflict21:50
and you have not yet resolved that with a commit21:50
you can abort it with git reset --hard HEAD (probably) :)21:50
or commit I guess21:50
IP_Prob Ah, branch downloaded, or checked out, or whatever, and I can now see it in my local file system.21:51
alunduil left21:51
cbreak checkout is local only21:51
eijk_ left21:51
cbreak no downloading involved21:51
madewokherd joined21:55
cyphase left21:55
BadDesign left21:56
john2496 left21:56
tdowg1 left21:57
aspotashev joined21:58
Mode-M left21:59
jimmyeatworld left21:59
simesy_work joined21:59
unseensoul joined22:00
canton7 zodiak, git cherry-pick --abort is the newer, more correct way to abort a cherry-pick22:01
chrisgeorge left22:01
simesy_work left22:01
zodiak canton7, danke.. that's the ticket22:02
skorgon left22:02
diago left22:02
ventsislav left22:02
thirdknife joined22:02
simesy_work joined22:02
HardDisk_WP joined22:02
HardDisk_WP hi22:02
gitinfo HardDisk_WP: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.22:02
HardDisk_WP i accidentally commited my telephone number, but didn't push the commit22:02
how do I "delete" the commit?22:02
cbreak commit --amend it out22:02
or git reset --soft the commit away22:03
chrisgeorge joined22:03
HardDisk_WP git reset --soft doesnt work, the commit still appears in git log22:04
canton7 or see !fixup22:04
gitinfo So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history!22:04
martinjlowm left22:04
cbreak HardDisk_WP: you have to reset to HEAD~ of course...22:04
how do you think git knows how much history to nuke? :)22:05
Destos left22:05
HardDisk_WP uh wait, won't this destroy my changes?22:05
cbreak not with --soft22:05
only if you happened to type --hard instead22:06
HardDisk_WP cool22:06
thanks22:06
cbreak naturally, commit --amend is easier22:06
HardDisk_WP cbreak, and another thing, I want to insert into the files something like the svn revision-id22:07
can i do this in git, too?22:07
macabre left22:07
unseensoul left22:07
canton7 HardDisk_WP, see man gitattributes, ident and 58281722:08
gitinfo HardDisk_WP: the gitattributes manpage is available at http://git-scm.com/docs/gitattributes.html22:08
cyphase joined22:08
canton7 s/582817 export-subst22:08
babilen left22:08
cbreak HardDisk_WP: usually a bad idea22:08
mmc1 left22:09
ajw0100 left22:10
HardDisk_WP ok22:10
hwrd|work left22:10
nedbat joined22:10
babilen joined22:10
Sky[x] left22:10
simesy_work left22:11
hwrd|work joined22:12
yann|work left22:14
rohan32rohan32|afk22:15
rob_w left22:15
hinst left22:16
srayner left22:18
aspotashev left22:18
jan247 joined22:19
ultrixx joined22:19
ultrixx hi! what is a team provider?22:20
felipec is anybody else having problems with gitrss.q42.co.uk?22:21
jan247 left22:21
jan247 joined22:21
jan247 left22:21
ultrixx i would like to install a git plugin for eclipse and there are packages like jgit and egit. the latter is a "team provider" that uses jgit. could anybody explain that to me please?22:23
simesy_work joined22:23
cbreak I have no idea what a team provider is22:23
Element9 left22:24
ultrixx ok that makes me feel better ;-)22:24
thanks22:24
ISF joined22:24
mastro left22:24
constant joined22:25
eijk_ joined22:26
constant is there a way to verify that a git repository isn't corrupt?22:26
Akufen left22:26
AdrienBrault left22:26
cbreak you can try git fsck22:26
yann|work joined22:26
constant cbreak: trying that22:26
cbreak don't know if that rehashes and verifies all its packs22:27
but it does something at least :)22:27
constant hehe okay22:28
opus joined22:28
ajacom joined22:29
constant cbreak: okay, git fsck turned up some problems22:30
fwiw, I was trying to rsync git dirs around22:30
and I'm pretty sure some got list22:30
given the size of of the tree, is there a faster way then fsync to figure out which *files* are missing?22:31
cbreak rsync is not usually a problem22:31
arielpts- left22:31
constant dangling blob f101619be940d0e2eb7f03cf009dcf5cf21b025b22:31
dangling tree 4c2101d2e0cbf622af5a3d737ec98eba26ec39e022:31
...22:31
cbreak unless you changed the source22:31
dangling things are no problem22:31
constant no, I didn't22:31
oh?22:31
arielpts joined22:31
arielpts left22:31
constant what does that mean? things that should be garbage collected?22:31
aspotashev joined22:31
cbreak they will get garbage collected eventually22:31
constant cbreak: is there a way to say across the network: 'are these two git repos the same' ?22:32
arielpts joined22:32
arielpts left22:32
ShadeTornado left22:32
constant maybe mtree might help22:32
constant things22:32
constant * thinks22:32
cbreak the same?22:32
bartek joined22:32
cbreak just compare the output of git ls-remote22:32
constant identical, have the same set of commits22:32
constant tries22:32
arielpts joined22:32
arielpts left22:32
constant cbreak: what do you mean?22:32
arielpts joined22:33
arielpts left22:33
cbreak if ls-remote output is the same, then they have the same history22:33
that doesn't mean that they have the same data store content22:33
constant one is local?22:33
arielpts joined22:33
arielpts left22:33
cbreak some might have other pack files, different garbage, ...22:33
constant ok22:33
constant got confused by -remote22:34
cbreak git ls-remote .22:34
for the local one22:34
Vile left22:34
arielpts joined22:34
arielpts left22:34
cworth left22:34
Vile joined22:35
constant cbreak: hang on22:35
arielpts joined22:35
arielpts left22:35
xplat joined22:35
arielpts joined22:35
arielpts left22:35
arielpts joined22:36
arielpts left22:36
pantsman left22:36
chrisgeorge left22:36
arielpts joined22:36
constant cbreak: awesome - it seems to be identical - thanks22:36
Imaginativeone joined22:36
thiago left22:37
arielpts left22:37
constant cbreak: except: error: unable to find d0fd194fd6c74a8fe333eb68698337eef16273fc22:37
when I do 'git checkout .'22:37
Destos joined22:37
cbreak checkout .?22:37
arielpts joined22:38
arielpts left22:38
cbreak what are you trying to do?22:38
constant I have the .git files22:38
I want to get the working copy22:38
cbreak git clone22:38
arielpts joined22:38
arielpts left22:38
constant notice: HEAD points to an unborn branch (testingmem) --> from git fsck22:38
arielpts joined22:39
arielpts left22:39
constant cbreak: why can't I 'checkout' into an empty folder?22:39
cbreak so either you inited a fresh repository22:39
or you did git checkout --orphan22:39
constant I did neither22:39
cbreak git checkout is a branch switching command22:39
it's used to switch branches22:39
constant ok22:39
arielpts joined22:39
arielpts left22:39
cbreak switching branches is done in git repositories22:39
not in empty folders22:39
constant ok22:39
ultrixx_ joined22:39
constant cbreak: the reason I thought that would work22:40
arielpts joined22:40
arielpts left22:40
cbreak if you want a working copy, use git clone22:40
constant is because if you remove a file, and want it back, you can use git checkout22:40
pppaul left22:40
cbreak or git init a repo and then fetch history22:40
that's git checkout in file mode22:40
bubbles10101 left22:40
cbreak only works inside repositories too22:40
arielpts joined22:40
RichiH !mr22:40
thiago joined22:40
RichiH hmm22:40
bubbles10101 joined22:41
RichiH !mr is a tool to manage Multiple Repositories, see http://joeyh.name/code/mr/22:41
v0n left22:41
RichiH stabs the bot a bit22:41
RichiH abaratican: see the link above22:41
!help22:41
gitinfo What do you need help with? Something with git? Tell us what's going on, and please be specific. For information on how to abuse me (I'm a bot!), see http://jk.gs/git/bot . Please be gentle.22:41
ultrixx_ left22:42
Freeder joined22:42
RichiH .trigger_new mr a tool to manage Multiple Repositories, see http://joeyh.name/code/mr/22:43
ultrixx left22:43
RichiH .trigger_edit mr a tool to manage Multiple Repositories, see http://joeyh.name/code/mr/22:43
gitinfo RichiH: Okay.22:43
RichiH good good22:43
john3 left22:43
Freeder hi.. will apologize up front for the n00bness. My local git repo is now out of synch with the main repo. How should I go about getting my local matched back up, w/o affecting the main repo?22:43
cbreak git fetch theremote22:44
then merge or rebase what ever you want22:44
Freeder well, that second part is where I need help, I guess22:44
bartek left22:44
Freeder what does fetch do, versus merge?22:44
I thought fetch would synch it up22:44
cbreak fetch gets history from the remote22:45
merge merges stuff into the current branch22:45
Freeder ah22:45
hellopat joined22:45
crazydip joined22:45
cbreak you probably want to do a git pull --rebase22:45
which does both a fetch and a rebase22:45
Freeder so if I want to merge from remote->local ....?22:45
I'm just very worried I will end up overwriting the remote with my screwed up local stuff22:45
cbreak if you want to merge, you'd use just git pull22:46
which is fetch + merge22:46
bubbles10101 left22:46
cbreak both will not modify anything but your local repository22:46
Freeder ok, great22:46
cbreak if you want to modify anything outside, you will have to push22:46
Freeder will look at those options for a bit22:46
cbreak (push is the opposite of fetch)22:46
Freeder you would think it would be opposite of pull!22:46
heh22:46
cbreak you're not the first who thought that22:47
Freeder ok, thanks again for the help22:47
will see how far I can get22:47
cbreak np22:47
chris64 left22:48
Freeder ok, pull did it22:48
great22:48
john3 joined22:49
JaredMiller left22:50
oxidative joined22:50
Destos left22:50
kermit joined22:50
scelis left22:51
rohan32|afkrohan3222:52
ajacom left22:53
j416 left22:55
project2501a left22:56
Destos joined22:56
private joined22:56
privateGuest1943322:56
project2501a joined22:57
pfFredd joined22:59
thirdknife left23:00
thirdknife joined23:00
trungqtran left23:00
dnstbr left23:01
zastern joined23:01
gusnan left23:01
jarr0dsz left23:01
jcao219 joined23:02
eijk_ left23:02
alexstanford2 left23:03
jaseemabid left23:03
alexstanford joined23:04
rockets left23:04
jalama joined23:05
alansaul left23:06
psoo left23:07
Chillance left23:07
hotovson_ joined23:08
reuf joined23:08
monokrome left23:10
crazydip left23:11
monokrome joined23:11
marhaban joined23:12
devth left23:14
mikepack joined23:16
hwrd|work left23:16
bubbles10101 joined23:19
axl_ left23:19
simesy_work left23:20
axl_ joined23:20
chuckharmston left23:20
rockets joined23:21
rockets left23:22
gtrak left23:22
zastern left23:24
simesy_work joined23:25
jalama left23:26
simesy_work left23:26
lethjakman_work joined23:27
lethjakman_work hey, I'd like to use git for a website, is there any way I can not have the .git inside of a directory?23:28
giallu left23:30
pfFredd left23:31
daniel_- joined23:32
alunduil joined23:33
hwrd|work joined23:34
daniel_-_ left23:34
goshawk joined23:34
SirCmpwn left23:35
SegFaultAX|work left23:38
cakehero left23:38
ejb Is there a git command I can use to only show new/modified lines of files (without '+' or other symbols prefixing)?23:38
Davey left23:39
thiago ejb: a simple sed script on the output of diff would do it23:39
timj joined23:39
thiago git diff | sed -n '/^+/{s///;p}'23:40
beneggett left23:40
DjMadness left23:41
RichiH lethjakman_work: look at apache config; there is a way to hide certain patterns23:41
hiding .git, .svn, etc is rather common23:41
SirCmpwn_SirCmpwn23:41
reuf left23:42
ejb thiago: thank you. Unfortunately that lets the name of the file through23:42
acrocity_ joined23:43
ejb needs to learn the ways of `sed`23:43
simesy_work joined23:43
kerrick joined23:44
CollinPDX left23:44
TeckniX left23:44
CollinPDX joined23:44
aspotashev left23:44
aspotashev| joined23:44
gumnos left23:45
thiago awk '/^+/ && doprint { print substr($0, 2) } /^@/ { doprint = 1 } /^---/ { doprint = 0 }'23:45
will fail if you have removed lines starting with dash-dash23:45
todd_dsm left23:46
samphippen left23:46
devinrhode2 left23:47
kermit left23:47
EugeneKay hands sitaram a Guinness23:48
bubbles10101 left23:48
ejb thiago: can you explain that a bit? does ^@ set doprint=1?23:48
marhaban left23:49
thiago it's "condition { code }"23:49
Freeder left23:49
thiago if (condition) { code }23:49
hachque left23:50
simesy_work left23:50
hachque joined23:50
tinti joined23:50
adamben left23:52
adamben joined23:54
hachque left23:55
aselder left23:55
simesy_work joined23:56
rchavik joined23:56
rchavik left23:56
rchavik joined23:56
worstadmin_ joined23:58
worstadmin_ left23:59

Logs Search ←Prev date Next date→ Channels Documentation