IRCloggy #git 2015-02-14

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.

2015-02-14

monbro joined00:00
zumba_addict left00:00
fooforge left00:00
bnb Okay, that command went through with no problem.00:00
Gama11 left00:00
joki left00:00
kadoban rayman22201: Just your favorite paste site should be fine https://gist.github.com/ I guess if nothing else? (I forget if you need an account for that to work, but I don't think so)00:01
_ikke_ bnb: Yeah, it's not doing very much00:01
UKn0Me left00:01
_ikke_ bnb: It's just adds a config00:01
bnb _ikke_: Okay, great. What do I do next?00:02
_ikke_ git fetch <name>00:02
where <name> is the name you just gave00:02
monbro left00:02
bnb Okay, it worked. Should I have the repo exactly how it is on GitHub now?00:03
_ikke_ no\00:03
Now you need for example to merge one of the branches in you just fetched00:03
if you are on master, you could for example do: git merge upstream/master (assuming the name of the remote is upstream)00:04
bnb I want to use the branch `build/content-update`. Should I do that one?00:04
_ikke_ did you call the remote build?00:04
bnb No.00:04
I called it foosh00:04
_ikke_ are you currently on branch content-update?00:05
bnb Yes.00:05
rayman22201 kadoban: I meant should I share the diff or the git log. What should I share that would be most helpful?00:05
_ikke_ then you could do: git merge foosh/content-update00:05
bnb merge: foosh/content-update - not something we can merge00:05
joki joined00:06
kadoban rayman22201: Oh, I don't think I can tell much of anything at all except from the terminal history of whoever did the merge. That's the thing, you can't tell from the history if the merge happened automatically, or if there were conflicts that someone "resolved" in a nonsense way.00:06
_ikke_ Does the repository you forked from have a branch called content-update?00:06
bnb I think there are a few commits in my branch that aren't in the upstream branch00:06
Yes.00:06
Wait00:06
No00:06
It's called build/content-update00:06
_ikke_ oh ok00:06
kadoban rayman22201: You could…recreate the branches that were merged, merge them manually again and see if what happens on a well-done merge matches the original result, but that's kind of hairy.00:06
_ikke_ then: git merge foosh/build/content-update00:06
HoMM left00:06
bnb Already up to date ;-;00:07
yang joined00:07
_ikke_ ok, that means it doesn't have any commits you don't have already00:08
kadoban rayman22201: Most of the time when I've seen merges go…badly, it tends to be someone who doesn't really quite understand the merge process, or doesn't care enough to do it correctly. Quite a few people seem to think it doesn't really matter or something and they just guess at commands until git stops complaining, which is…really bad.00:09
bnb That's not true.00:10
FabTG_ left00:10
bnb I have to this commit: Merge pull request #143 from silverwind/update-others-link … at https://github.com/iojs/website/commits/master00:10
Quevin_ left00:10
bnb Then there are like three of my commits.00:10
rayman22201 kadoban: lol. I wouldn’t let anyone just bash away until it stops complaining. I would promptly yell profanities at them. But there may be some other misunderstanding going on.00:11
FabTG joined00:11
ojacobson joined00:11
_ikke_ bnb: that branch you refered to is 53 commits behind master00:12
bnb Oh...00:12
One sec00:12
Um00:12
Okay00:12
So I can just run that command on Master and it will update?00:12
_ikke_ That pull request has been merged in 4 days ago00:12
bnb Yeah00:12
_ikke_ you could checkout master, and then merge in foosh/master00:13
bnb I thought you were supposed to commit to that, but I guess not.00:13
How do I do that?00:13
_ikke_ commit to what?00:13
thedodd left00:14
bnb That build/content-update branch00:14
c74d left00:14
mvensky joined00:14
thedodd joined00:14
_ikke_ Do you want to merge master into build/content-update?00:14
pandeiro left00:14
Mixologic left00:14
bnb I don't know.00:14
If I should.00:15
Mixologic joined00:15
_ikke_ me neither, but it looks like it's outdated currently00:15
bnb Okay, I'm going to ask. I'll probably be back in a bit.00:15
_ikke_ right00:15
kcm1700_ joined00:15
c74d joined00:16
gargola left00:16
Quevin_ joined00:17
dm7freek joined00:18
thedodd left00:19
cbonobo left00:19
tjm_jimmy joined00:20
CustosLimen left00:20
Samual_ joined00:20
Samual_ left00:20
Samual_ joined00:20
cbonobo joined00:20
michaelrice left00:20
zacts left00:21
stephen_ left00:21
Samual left00:21
multi_io joined00:22
mizu_no_oto joined00:22
dm7freek left00:22
adamben left00:23
baweaver left00:23
Dougie187 left00:23
das_beard joined00:24
zumba_ad_ left00:24
ottanta joined00:25
multi_io_ left00:25
harish left00:26
ottanta is there a way to have a unix directory simlink to a specific git branch, like git checkout -b <branch> --depth 1 <repodir> <destdir>00:26
_ikke_ ottanta: Not sure if it's what you need, but there is a new-work-tree script in contrib00:27
str joined00:28
_ikke_ git-new-workdir&00:28
madtalentz left00:28
ottanta maybe, what I'd like is to be able to use build scripts with several branches of the same git repo, without having multiple clones of that repo to manage00:29
so, ideally, I'd have one git repository folder for master, one for our develop branch, etc00:30
pzl joined00:30
CustosLimen joined00:30
ottanta hey cool _ikke_ this looks like I could use it for what I need00:30
bulletmark left00:31
mostlybadfly left00:32
baweaver joined00:32
PeterBooker left00:34
ottanta but yeah it seems like what I want is to have a directory that simply points at a different index of one git repository somewhere else on the same machine00:34
intransi_ joined00:34
_ikke_ there is only one index in a repository00:35
mostlybadfly joined00:35
_ikke_ and also one HEAD00:35
th3fallen left00:35
_ikke_ what this does is create a new repo, with the same refs, objects and config, but different index and HEAD00:35
thiago joined00:35
otter768 joined00:36
im8bit left00:36
Sasazuka joined00:37
intransit left00:37
mroach joined00:38
ottanta oh yeah00:38
cause I would need two staging areas00:38
cool, cool, ty00:38
Literphor left00:39
CustosL1men left00:39
pbrobst left00:39
tristanp joined00:39
ErKa left00:39
ottanta _ikke_ couldn't I just run two different clones then?00:40
th3fallen joined00:40
otter768 left00:40
jonalmeida joined00:41
_ikke_ sure, if you do a local file clone, all object would be shared anyway00:41
linuxmint joined00:41
_ikke_ But this shares allmost everything that doesn't contains state for the work tree00:41
So if you fethch into one repo, you can use that in the other one00:42
th3fallen left00:43
jalmeida joined00:43
tristanp left00:44
rayman22201 left00:44
pbrobst joined00:44
liamkeily left00:44
liamkeily joined00:46
litespeed left00:46
liamkeily left00:46
jonalmeida left00:47
sgen left00:47
anli left00:48
joeyDB_ joined00:49
Ragnar left00:50
Quevin_ left00:51
ColdKeybo[a]rdColdKeyboard00:51
ojacobson left00:52
kpease left00:52
u1106 left00:54
u1106 joined00:54
joeyDB_ left00:54
tohuw left00:55
Motoko joined00:56
livingstn joined00:56
th3fallen joined00:57
tohuw joined00:57
dan_w left00:57
auuf left00:58
hexagoxel_ joined00:59
th3fallen left00:59
a_le left00:59
cbonobo left00:59
rwio joined00:59
a_le joined01:00
fstd left01:00
fstd joined01:00
hexagoxel left01:02
Vile left01:03
sbogg left01:04
githogori left01:05
nfk left01:05
githogori joined01:06
ojacobson joined01:06
u1106 left01:06
u1106 joined01:07
Dragooon joined01:08
mvensky left01:08
bnb _ikke_ I found out that the branch I need to commit to is the main branch.01:09
baweaver left01:09
Etheco left01:09
bnb master*01:09
Takle left01:11
Takle joined01:11
EminenceHC left01:12
Entomo joined01:12
arez left01:12
zumba_addict joined01:13
tjm_jimmy left01:16
bnb _ikke_: I tried git merge foosh/master, and I got this: https://gist.github.com/bnb/2cdd5a2b809a8460f15b01:17
Etheco joined01:17
tjm_jimmy joined01:18
d10n-work left01:19
ErKa joined01:19
SFLimey left01:19
jmpp left01:19
jmpp joined01:20
_Atom_ joined01:20
J1G|Anon126 bnb: !eek01:21
gitinfo bnb: [!eekaconflict] Merge conflicts are a natural part of collaboration. When facing one, *don't panic*. Read "How to resolve conflicts" in man git-merge and http://git-scm.com/book/ch3-2.html#Basic-Merge-Conflicts then carefully go through the conflicts. Picking one side verbatim is not always the right choice! A nice video explaining merge conflicts: https://www.youtube.com/watch?v=zz7NuSCH6II01:21
pzl left01:21
teran joined01:22
Takle left01:22
mezod left01:23
nour left01:23
bnb Thanks J1G01:23
Sasazuka left01:23
akiva left01:23
J1G|Anon126 no problem01:23
a_le left01:24
teran_ left01:24
a_le joined01:25
gooda joined01:25
a_le left01:25
tjm_jimmy left01:25
a_le joined01:26
hebz0rl left01:26
a_le left01:26
u1106 left01:26
u1106 joined01:27
a_le joined01:27
gooda left01:27
booboy left01:28
jontmorehouse left01:28
bnb J1G: Is the part on the top of the conflict the part I got from upstream or my part? The wording on that page isn't clear to me.01:28
gooda joined01:28
studmuf joined01:30
Lyqyd joined01:31
hackvana joined01:31
hackvana left01:31
mmoretti left01:31
hackvana joined01:31
a_le_ joined01:31
a_le left01:32
duderonomy joined01:33
recycle_ left01:33
jadne joined01:34
devoldmx joined01:36
King_Hual left01:36
a_le joined01:36
madtalentz joined01:37
a_le_ left01:37
ojacobson left01:38
rns2 left01:39
kukks joined01:40
kukks left01:40
kukks joined01:40
kaiten02 joined01:40
SirRetnuh joined01:41
rns2 joined01:41
_Atom_ left01:41
cagedwisdom joined01:41
madtalentz left01:42
madtalentz joined01:42
mmitchell left01:42
hackvana left01:43
mmitchell joined01:44
doct0rfoo joined01:44
harish joined01:45
doct0rfoo left01:46
leeN left01:46
drfoo left01:47
teran left01:47
ojacobson joined01:48
Ragnar joined01:48
jontmorehouse joined01:48
teran joined01:49
pbrobst left01:50
joeyDB_ joined01:50
ajustrun left01:50
dougsland left01:51
kaiten02_ joined01:51
kaiten02 left01:51
J1G|Anon126 bnb: oops, sorry I didn't see your message. the top part is the part from upstream01:51
bnb No problem, I got it solved.01:51
dreiss left01:52
beckyconning_ joined01:52
Dragooon left01:53
lieber left01:53
joeyDB_ left01:55
gwho_ joined01:56
gwho_ how do you push an older commit to productihn without modifying any files?01:56
http://stackoverflow.com/questions/28511534/how-to-git-push-older-commit-to-production01:56
CKyle joined01:57
_Atom_ joined01:57
teran_ joined01:57
teran left01:58
J1G|Anon126 gwho_: one answer mentions git bisect. you can read about that at http://git-scm.com/book/en/v2/Git-Tools-Debugging-with-Git#Binary-Search01:59
robustus left01:59
jontmorehouse left01:59
m0ltar left01:59
rns2 left02:00
robustus joined02:00
rwio left02:01
imachuchu left02:02
jagob left02:02
gwho_ I reverted it but the head is detached02:02
why is there "detached head branching" within an actual branch02:02
when has that "feature" ever helped anyone?02:03
phy1729 git push origin <commit id>:branch02:03
rns2 joined02:04
gwho_ and i don't need to switch to a different commit first?02:04
hexagoxel_hexagoxel02:04
phy1729 nope02:04
gwho_ I can just push an arbitrary commit with that command phy1729?02:04
thank you02:05
devol left02:05
phy1729 welcome02:06
FreezingAltFreezingCold02:06
dm7freek joined02:07
gwho_ cannot be resolved because tip is behind its remote counterpart.02:07
EminenceHC joined02:07
gwho_ man02:08
i git pull and it says it's ok02:09
but when i push it says it's not02:09
fuckgin02:09
AAoK_ left02:09
gwho_ moving between commits is so basic. why can't there just be one simple cmomand or click button02:09
if you do it wrong, u have to learn some other complicated thing just to go back02:10
imagine if browser forward and back buttons were like that02:10
tier joined02:10
ojacobson gwho_: to fully answer that requires a fair bit of theory02:10
and your attitude suggests you'd just curse at me02:10
so: "because" :)02:10
gwho_ incorrect02:11
livingstn left02:11
gwho_ dont mistake frsutraon at the thign with insulting someone feeding you02:11
who woudl feed me02:11
Zentdayn left02:11
phy1729 sits for theory lecture from ojacobson02:11
gwho_ not allowed to express frsutration. if you do, people take it the wrong way02:11
such is life02:11
and people02:11
ojacobson well, alright. how's your graph theory? if I say "digraph", do you follow, or should I use a different vocabulary02:11
dm7freek left02:12
andi4 left02:12
gwho_ im not very familiar02:12
EminenceHC left02:12
ojacobson Okay.02:12
gwho_ my complaint is mainly UX02:12
ojacobson Oh, Git's UX is terribad in lots of ways.02:12
gwho_ of how to operate git02:12
ojacobson The thing you're trying to do is also a bad idea, but the UI doesn't make it clear why, or why you should care.02:12
gwho_ i see02:12
reverting is better then02:13
and just push teh reverted one02:13
ojacobson The short version is that as long as you only ever add new commits to a branch, no additional information is needed for other users to integrate those changes into their own repositories02:13
but if you remove or replace commits, some additional information would be needed; git doesn't (because of reasons) store or transmit that additional data02:13
(in part, it'd be very hard to define well)02:13
gwho_ i see02:13
kind of like migrations02:13
ojacobson Somewhat.02:13
m0viefreak joined02:13
chemist69_ joined02:14
ojacobson anyways, you can definitely create a new commit identical to a prior commit02:14
Literphor joined02:15
ojacobson there's a UI-awful but very reliable and terse way to do it, and a less UI-awful but verbose and awkward way to do it02:15
curiousmansi joined02:15
ojacobson finish whatever commit you're working on first, either way02:15
livingstn joined02:15
gwho_ my day for 5 hours was figuring out how to do everything but actually produce code02:17
fml02:17
chemist69 left02:17
gwho_ tahts why i hate tesing too02:17
Rylee i love git because it has a small enough learning curve to get started and then from then on, you can just go deeper and deeper into the rabbit hole02:17
Consuela left02:18
devoldmx left02:18
Consuela joined02:18
gooda left02:18
mikeric left02:19
Consuela left02:19
Literphor left02:19
Consuela joined02:19
ajustrun joined02:19
gwho_ I do git revert commit02:20
CEnnis91 left02:20
gwho_ but it takes me to a prompt.02:20
i dont know what it wants02:20
devoldmx joined02:20
s8321414 joined02:20
gwho_ now it didn't give me the prompt.... inconsisteny fml02:21
mizu_no_oto left02:22
gwho_ sorry i wont trash teh chat anymjore.02:22
thanks you02:22
pks left02:22
_Atom_ left02:22
ajustrun left02:22
ojacobson gwho_: 'git revert' takes a commit*, turns it into a diff, reverses that diff, applies it to HEAD, and uses the result to create a new commit02:23
ajustrun joined02:23
ojacobson it effectively reverses a single commit and creates a new commit out of that, even if the commit being reversed is far back in history02:23
pks joined02:23
ojacobson it's _probably_ not what you want02:23
watabou joined02:24
curiousmansi left02:24
hexagoxel left02:24
ojacobson you said you want to return to a prior state, effectively reversing _all_ changes since that state?02:24
(and keep your working tree intact; that's the easy part)02:25
ktchup left02:27
enitiz joined02:28
sc0n joined02:28
Guest86565 joined02:32
_Atom_ joined02:33
shampine joined02:33
lieber joined02:36
duderonomy left02:36
enitiz left02:36
ktchup joined02:36
otter768 joined02:37
shinnya left02:37
cbonobo_ joined02:37
lys joined02:37
ErKa left02:38
trn450 joined02:38
Vampire0 joined02:38
gwho_ left02:39
livingstn left02:40
dreiss joined02:41
Vampire0_ left02:41
CEnnis91 joined02:41
otter768 left02:41
haptiK left02:42
gfixler joined02:42
_Atom_ left02:42
livingstn joined02:42
runev joined02:43
tbsaunde joined02:44
jonalmeida joined02:45
_Atom_ joined02:45
hackvana joined02:46
hackvana left02:46
hackvana joined02:46
CKyle left02:46
jalmeida left02:46
duderonomy joined02:46
willharrison joined02:46
hackvana left02:47
mikeric joined02:47
jalmeida joined02:47
rns2 left02:48
jonalmeida left02:50
joeyDB_ joined02:51
mkaesz joined02:54
sc0n left02:54
AciD` left02:55
dreiss left02:55
robert__ left02:55
joeyDB_ left02:56
dreiss joined02:56
u1106 left02:56
a_le left02:57
u1106 joined02:57
skinkitten left02:57
robert__ joined02:58
runev left02:58
mkaesz left02:58
robert__ left03:00
tieTYT2 left03:00
Redmega joined03:03
Redmega Hello! Does anyone have any experience with hosting a website using github?03:04
beastd left03:04
Sample left03:04
phy1729 Redmega: I'd ask #github03:04
Redmega Oh, whoops! Thanks03:06
Redmega left03:06
eletuchy_ joined03:07
Goplat joined03:08
dsdeiz joined03:09
SirRetnuh left03:09
eletuchy left03:09
kukks left03:09
Literphor joined03:10
livingstn left03:10
saint_ joined03:11
u1106 left03:12
EminenceHC joined03:12
u1106 joined03:12
dannymichel left03:13
a_le joined03:16
a_le left03:16
EminenceHC left03:17
a_le joined03:17
eletuchy_ left03:18
frivol joined03:18
zhangyh26258 joined03:18
zhangyh26258 left03:19
zhangyh26258 joined03:19
xaa left03:20
sandr8 joined03:20
Literphor left03:20
eletuchy joined03:21
u1106 left03:21
SirRetnuh joined03:21
SirRetnuh left03:21
u1106 joined03:21
SirRetnuh joined03:22
SirRetnuh left03:22
joeyDB_ joined03:22
SirRetnuh joined03:22
soreau left03:24
soreau joined03:24
drfoo joined03:24
mikeric left03:25
Guest48461 left03:25
enitiz joined03:26
hackvana joined03:26
hackvana left03:26
ajustrunajustrun|away03:26
hackvana joined03:27
hackvana left03:27
joeyDB_ left03:27
eletuchy_ joined03:29
duderonomy left03:29
oojacoboo left03:29
zacts joined03:30
smccarthy joined03:30
eletuchy left03:31
darkbasic left03:34
duderonomy joined03:35
darkbasic joined03:35
jadne left03:36
ktchup left03:40
trn450 left03:40
harish left03:43
bb010g joined03:43
bnb left03:43
dsdeiz left03:45
s8321414_ joined03:46
s8321414 left03:46
Literphor joined03:47
u1106 left03:48
CKyle joined03:48
u1106 joined03:48
_Atom_ left03:49
dannymichel joined03:50
u1106 left03:52
u1106 joined03:52
Acidnerd left03:54
jstimm left03:55
luriv_ joined03:55
specious left03:55
dm7freek joined03:56
geomyidae_ joined03:57
Literphor left03:58
luriv left03:58
dm7freek left04:00
Literphor joined04:03
duderonomy left04:03
s8321414_ left04:04
Consuela left04:07
duderonomy joined04:10
saint_ left04:12
tgummerer left04:12
smw_ joined04:12
Dragooon joined04:15
devoldmx left04:16
EminenceHC joined04:16
u1106 left04:17
u1106 joined04:17
intransi_ left04:18
kadoban left04:19
bnb joined04:19
Dragooon left04:21
EminenceHC left04:21
joeyDB_ joined04:23
SFLimey joined04:25
frivol left04:27
joeyDB_ left04:28
str left04:30
Noldorin left04:30
dsdeiz joined04:31
duderonomy left04:32
duderonomy joined04:33
diegoaguilar joined04:34
tgummerer joined04:37
otter768 joined04:37
blahdodo left04:38
skorgon joined04:40
skorgon left04:40
skorgon joined04:40
SFLimey left04:40
enitiz left04:41
otter768 left04:42
dreiss left04:43
smw_ left04:45
lindenle left04:46
mmitchell left04:47
Sample joined04:47
studmuf left04:50
jonalmei_ joined04:51
jalmeida left04:51
lys left04:51
CKyle left04:51
Dragooon joined04:52
SirRetnuh left04:53
tier left04:54
drfoo left04:56
UKn0Me joined04:56
duderonomy left04:56
yohos joined04:56
yohos im new to git and ive been reading docs but i seriously dont know what ive just done04:57
i did a git status and it said i was like 2 commits behind main line04:57
so i did a git pull and now its done some merge commit04:57
VioletVivirand joined04:57
yohos but when i do a git diff theres no diff and git log doesnt show any commits beyond what i had04:57
wt is going on?04:57
Dragooon left04:58
VioletVivirand left04:58
MattMaker left04:58
dik_dak left04:59
Dragooon joined04:59
bnb left04:59
Dragooon left05:00
Dragooon joined05:01
duderonomy joined05:01
deltab yohos: git diff with no arguments?05:02
yohos yeah05:02
deltab that'll compare the work tree to the index05:03
after a merge they'll be the same05:03
yohos hrm05:03
deltab because the merged revision is checked out05:04
hcc23 left05:04
yohos im worried some radom merging stuff is going to show up in origin now05:04
like i want to undo everything05:04
ive just done05:04
i have no pending/local/staged commits05:04
skorgon !fixup05: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!05:04
deltab but you should see the two extra commits05:04
yohos see them?05:05
in git log?05:05
deltab yes, I think so05:06
yohos ah yes i do05:06
i see the 2 commits i guess i was missing05:06
and a 3rd which is the resulting "merge" of my git pull05:06
thats what i want to undo05:06
deltab nods05:06
jstimm joined05:06
yohos i just dont want that merge to showup in origin when i do a push05:07
like i was just trying to "update" to latest05:07
im from svn world still :x05:07
shinnya joined05:07
Tommy[D]_ joined05:07
deltab you could, if you want, rebase your change05:07
Fakeboost joined05:08
alekks joined05:09
deltab that is, turn your changes into patches and apply them to the current state of origin/master instead of where you branched off earlier05:09
Sample left05:09
yohos ah so origin doesnt have my change05:09
deltab that way there's no merge commit05:09
yohos thats the reason this is such a clusterfuck05:09
deltab yes, your changes are local until you push them elsewhere, or they pull05:10
duderonomy left05:10
pacon joined05:10
Tommy[D] left05:10
madewokherd left05:11
yohos fuck so i shoulda rebased05:11
i wa really just trying to see what had changed05:11
Consuela joined05:11
deltab you have your very own repo05:11
MattMaker joined05:11
yohos if i leave that merge and then later push/pull05:12
will they see it in the origin timeline?05:12
deltab if you don't want to merge remote changes into your branch, use git fetch -v instead of pull05:12
yes05:12
ghormoon left05:12
yohos hrm whats the fetch do?05:12
deltab connects to the remote and gets the objects yours doesn't have05:13
Fakeboost left05:13
deltab as well as updating your remote-tracking branchs05:13
alekks left05:13
deltab git branch -av will show the branches you have, local and remote05:13
willharrison left05:14
yohos yeah i just wanted to see the commits i didnt have05:14
because i guess git log is just my local repos05:14
deltab pull is basically fetch then merge05:14
yohos hrm05:14
so pull would just bring the files down?05:14
er fetch05:14
deltab yes, without changing your local branches05:15
yohos hrm but doesnt it update my files with the changes from origin?05:15
deltab then you can use git diff origin etc.05:15
yohos hthat link you posted05:17
itll let me back out this merge ?05:17
and pull?05:17
deltab hmm, do you mean the objects in the object store, or the work tree files, or something else05:17
that was skorgon05:17
yohos hrm i wish i knew05:18
deltab sure, you can back out the merge05:18
yohos like ive got through gitscm and the codeschool git course05:18
stillf ucking lost05:18
i dont know how people can say git is esay05:18
its a mindfuck05:18
GT4066 joined05:18
deltab people say that?05:18
ojacobson git's simple05:18
by which I mean05:18
yohos that was the feeling i got05:18
like "learn it over lunch"05:18
u1106 left05:18
yohos mentality05:18
ojacobson git exports a lot of complexity to the user, so that the _implementation_ is simple05:19
deltab simple in that there are few concepts05:19
yohos like you can google git undo and reset and theres like no clear answers05:19
ojacobson yeah05:19
git's UI is implementation-focussed (and not very good in other ways), not task-focussed05:19
u1106 joined05:19
MattMaker left05:19
madewokherd joined05:20
ojacobson can you describe your problem in terms of "I did X a few Ys ago, and I wish I hadn't. I wish I'd done Z, instead"?05:20
We can probably approximate it for you05:20
dannymichel left05:21
deltab aiui, yohos pulled from origin but only intended to see what was different05:21
yohos i was doing git status on my local repos and it said i was 2 out of sync with origin/mainline..so i thought oh neat i wanna see what the changes are so i did a git pul05:21
and now i have a merge commit locally05:21
that i dont want to push up into origin ever05:21
ojacobson 'git pull' is shorthand05:21
yohos i had a git commit in local thats not in mainline yet05:21
awaiting CR05:21
ojacobson 'git pull' is shorthand for 'git fetch' followed by 'git merge @{upstream}'05:22
(@{upstream} is a revision notation for the current branch's configured upstream branch)05:22
muricula left05:23
ojacobson so, in one sense, you (unwittingly, and with the best of intentions) asked for a merge05:23
the real question is, what did you _mean_ to do?05:23
You have diverging local changes in your repo05:23
beckyconning_ left05:23
joeyDB_ joined05:23
yohos yeah i guess i wanted to see what the commits were that i was missing05:24
ojacobson You might find the visualization in !lol interesting, then05:24
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all05:24
yohos i wanted to really see who/commit-mesages05:24
ojacobson if you can read line diagrams in text, anyways :)05:24
yohos heh05:24
ojacobson 'git fetch' would have downloaded the commits without merging them05:24
yohos so now i have no idea how to undo the result of my git pull05:24
ojacobson Incidentally, can you pastebin/gist the output of that command?05:24
yohos so i can go back and do something beyond git pull05:25
negative05:25
ojacobson And, in the diagram, can you point out which commit your branch should have been on, had you not merged?05:25
yohos like look at that command statement05:25
its ridicououls05:25
are those like common use cases05:25
ojacobson _assuming your work tree is clean_ and 'git status' shows no committed or uncommitted changes you care about, some variation on 'git reset' will get you back to where you want05:25
ugh do not get me started05:25
Fakeboost joined05:25
ojacobson my advice on 'git pull' is actually just "don't" :)05:26
yohos yeah lesson learned05:26
your speaking to a svn update long time vet05:26
ojacobson when you have enough experience with git to argue with me, you'll also have enough experience with git to make it do the right thing05:26
yohos so stuck in my ways for now :p05:26
deltab git fetch -v instead05:26
ojacobson (the problem is that "the right thing" is heavily workflow-dependent, and git has no workflow support as such)05:26
yohos oh -v ofc05:26
Motoko git pull isn't bad if you know exactly what you're doing.05:26
ojacobson Motoko: I believe that's what I said, yes :)05:27
Motoko And what it will be doing.05:27
deltab for verbose, so it tells you more05:27
yohos yeah i guess its just easy to see that many from svn land are going to look for an svn update equivalent05:27
ojacobson yeah05:27
Motoko Indeed.05:27
ojacobson 'svn update' is a silent merge05:27
kaiten02_ left05:27
yohos fair enough05:27
Motoko Subversion has a very different concept of flows.05:28
yohos so im still not clear on git fetch -v05:28
ojacobson _for most workflows_ 'git pull --rebase' _can_ be similar, but don't do that, either: do the underlying pieces, instead05:28
('git fetch' and 'git rebase' :)05:28
harish joined05:28
ojacobson and, well, rebase is complex enough that you should probably not just blindly use it, either05:28
(sorry!)05:28
joeyDB_ left05:28
yohos hah i have heard of rebease05:28
dannymichel joined05:28
yohos but yeah git definitely has this deer in headlights effect when you run a cmd05:28
for newbs05:28
like i hae no idea what state im in05:29
now05:29
ojacobson 'svn update' ... mostly ... converts your uncommitted changes to a diff and discards them, snaps your work tree to the newest commit on your branch, and then reapplies the diff, yes?05:29
yohos yeah05:29
ojacobson (so effectively your changes are preserved, but against a new baseline)05:29
yohos if no merge issues your golden05:29
ojacobson there's not a lot of ways to do that in git05:29
commit your changes _before_ integrating upstream work.05:29
Motoko rebase?05:29
ojacobson 'git rebase' will do a similar thing _to commits_, but not to uncommitted changes (and it'll just quit without doing anything if you have uncommitted changes)05:29
Motoko Ideally, you should work on a different branch from the upstream name so you can rebase on top of it often.05:29
ojacobson, I usually use stash for holding uncommitted work.05:30
yohos yeah it seems no mattter how small your change is you should just throw it on a branch05:30
to avoid this shit05:30
ojacobson yep05:30
branch early, often, and aggressively05:30
git provides a lot of branch-manipulation tools05:30
Motoko Branches are cheap in git, so use them.05:30
ojacobson a branch-ful of bullshit commits with 'derp!' messages can still be turned into something nicer before you send it on to others05:30
mikecmpbll left05:31
Motoko Yeah. I'll rebase a lot, even to merge commits together.05:31
yohos ok so seeing ive committted some changes, did a pull, did a silent merge05:31
Motoko Before I push.05:31
yohos withoutt a branch05:31
can i get to that golden path?05:31
ojacobson yep05:31
does 'git reflog <your branch name>' print the commit message for the commit you _should_ be on next to any of the lines? In particular, is it next to <your branch name>@{1} ?05:32
yohos im not on a branch05:32
im on mainline05:32
or is that ok?05:32
ojacobson the only time you're "not on a branch" is when 'git status' says something about "detached HEAD".05:32
'master' is a branch.05:33
gitinfo left05:33
yohos yeahs wasnt sure if you thought i was on a branch branch05:33
:p05:33
ojacobson :)05:33
deltab git branch -v05:33
jast left05:33
ojacobson I know what you meant, but it'll help you make sense of git's UI, I hope05:33
yohos i have no idea what that output is telling me05:33
deltab it's listing the branches you have05:34
the current one has * next to it05:34
yohos yeah all i hae is 105:34
gitinfo joined05:34
ChanServ set mode: +o05:34
yohos because i never knew that not creating branches05:34
resulted in such a shitstorm05:34
ojacobson heh05:35
it gets better05:35
madewokherd left05:35
ojacobson _your_ 'master' and _origin's_ 'master' are actually independent branches, as far as git's concerned05:35
any relationship between them, no matter how important, is in your mind... except for upstream relationships. Go figure. :)05:35
yohos like all i have is a 5 revion local repos05:35
deltab git remote -av05:35
yohos i cloned05:36
ojacobson anyways, enough theory05:36
yohos then i did a git pull i guess some days ago not realizing it would show up05:36
ojacobson does 'git reflog <your branch name>' print the commit message for the commit you _should_ be on next to any of the lines? In particular, is it next to <your branch name>@{1} ?05:36
deltab with -a, it includes the remote-tracking branches too05:36
ojacobson oh it was days ago, great, good times :)05:36
yohos hha05:36
nono05:36
it was another git pull i think05:36
ojacobson this gon' be fun to fix up, especially since you refuse to show anyone any output :)05:36
yohos it says pull: Fast-forward05:36
i dont know what that pull was05:36
probably me even more naively issuing a git pull05:36
ojacobson ugh you have encountered yet more modal behaviour in git's UI, sorry05:36
yohos then is my real commit05:37
zacts left05:37
yohos then theres a blank line05:37
no idea05:37
and then head@{0} pull: Merge made by the recursive strategy05:37
which resulted from me issuing that git pull05:37
ojacobson 'head'?05:37
yohos head@{2} is my commit05:37
er sorry05:37
mainline@{2{05:37
like i gues is all i want when i eventually do a git push is my clear misunderstanding of git going to show up in origin05:38
as a result of this mess in my local repos05:38
for what should have been a singular commit05:38
Sample joined05:39
ojacobson mm05:39
yohos thats all i want to fix05:39
ojacobson what's mainline@{1} ?05:39
yohos its a blank line05:39
:x05:39
ojacobson neat05:39
is mainline currently checked out?05:39
yohos git reflog mainline05:39
that sthe cmd right?05:39
ojacobson Yep.05:39
yohos is mainline currently checked out05:40
will i cloned from it05:40
is that a yes/05:40
mainline@{4} is the clone05:40
deltab what does git branch show the * next to?05:40
ojacobson If you type 'git branch', is mainline the one marked with a star? :)05:40
yohos mainline05:40
yes05:40
ojacobson Yes, then :)05:40
ok.05:40
yohos its the onlly one listed05:40
ive never branched :D05:40
ojacobson I'm going to do this the less-destructive way05:40
yohos remember05:40
thats why were in this ess :p05:40
ojacobson there is a shorter way, but I want to make sure I don't fuck up your repo for you :)05:40
yohos yeah thats how i feel05:40
ojacobson 'git checkout -b mainline-before-pull mainline@{1}'05:41
yohos like i gtet shit fucked and i feel like im walking on eggshells05:41
ojacobson to decompose that: checkout (and create) the branch "mainline-before-pull", using mainline@{1} (from git-reflog, it'll parse that for you) to figure out where to start the branch05:41
the _only_ thing that'll do is create a new branch at an existing commit05:41
(and check it out)05:41
if that turns out to be the wrong commit, we can delete the branch and try again pretty easily.05:42
yohos yeah i have no idea what that change is05:42
can i see the diff of that ?05:42
ojacobson 'git show mainline-before-pull' will give you commit message and patch05:42
madewokherd joined05:42
ojacobson 'git log mainline-before-pull' will give you history05:42
yohos yeah i mean before i do the checkout05:42
ojacobson So do I05:42
oh05:42
replace 'mainline-before-pull' with 'mainline@{1}' above, then05:42
yohos k05:43
ojacobson (to git, all revision expressions are more or less interchangeable.)05:43
yohos its my commit05:43
ojacobson (branch names? fine. reflog expressions? same thing. bare commit hashes? okeydoke.)05:43
neat.05:43
yohos but so is mainline@{2}05:43
ojacobson That can happen.05:43
yohos so i have no idea wht athat change is05:43
btu its just a log05:43
ojacobson The reflog sometimes over-records things05:43
yohos is ther ea diff of files?05:43
ojacobson yep05:44
yohos sweet05:44
ojacobson 'git diff mainline@{1} mainline@{2}'05:44
unsurprisingly :)05:44
the reflog is a local history (more like an undo buffer, really, in a lot of ways) of how each _local_ branch has evolved over time05:44
yohos blank05:44
ojacobson it tracks things like rebases, merges, resets etc. that would otherwise destroy data05:44
yohos maybe our review tool made it05:44
ojacobson 'git log' is what most people think of as the history of a branch: it's the list of commits on that branch _right now).05:44
mroach left05:45
dm7freek joined05:45
ojacobson maybe they're the same commit05:45
if you 'git show' the two commits, do they have the same hash at the top?05:45
hackvana joined05:45
hackvana left05:45
hackvana joined05:45
yohos n05:46
o05:46
:o05:46
lindenle joined05:46
ojacobson neat05:47
yohos is that normal05:47
ojacobson well, there are a few ways to get commits with identical contents in git05:47
git-rebase is spectacularly good at creating them; git-merge does it sometimes, too05:47
in both cases it's normal05:47
if you don't have a good reason to prefer one over the other, 'mainline@{1}' will be the state of mainline _immediately_ before the merge 'git pull' created.05:48
bb010g left05:48
u1106 left05:48
spyroboy left05:48
ojacobson A "good reason" would be subjective, but if you have one, it'll stand out in 'git show'05:48
kaiten02 joined05:48
u1106 joined05:48
yohos ill keep the empty mainline@{2}05:48
Vadimus joined05:49
dm7freek left05:49
ojacobson Having said I'd do it the safer, wordier way, I'm actually inclined to show you the faster, slightly more destructive way05:50
since you've done all the investigation you'd have to do the safer way, already :)05:50
you're still on mainline, correct?05:50
michaelrice joined05:50
ojacobson (I say "destructive"; what I mean is "if you screw up and don't notice quickly enough, you can lose commits. If you screw up, you can _irreversibly_ lose uncommited changes.")05:51
lindenle left05:51
yohos yeah i get how serous it is05:51
thats why im here05:51
deer in headlights et al05:51
:p05:51
yeah05:51
jonalmei_ left05:52
zumba_ad_ joined05:52
ojacobson So, _given_ that you know you want mainline@{2} back as mainline, and _given_ that 'git status' says you have no committed changes05:52
Err404NotFound left05:52
ojacobson 'git reset --hard mainline{2}' should get you what you want.05:53
er05:53
'git reset --hard mainline@{2}' should get you what you want.05:53
(note that this will add a new reflog entry, so it'll only work once. After that you'll have to look at the reflog again to see how the numbering changes. :)05:53
Vadimus left05:53
hmsimha go05:53
oops05:54
yohos hrm05:54
nice :D05:54
Sample left05:54
yohos nice i see - so reflog knows the madness that happened05:55
ojacobson yeah05:55
yohos and i imagine i could go forward if i wanted too?05:55
adamellsworth left05:55
ojacobson no, only backwards05:55
but "going backwards" adds new entries, rather than deleting existing ones05:55
yohos yeah s always ar=olling forward05:55
ojacobson if you iteratively run 'git reset --hard mainline@{1}', git will happily switch back and forth between two commits05:55
deltab yohos: you mean re-instating the merge?05:55
zumba_addict left05:56
TheNet joined05:56
ojacobson the reflog is a _purely local_ tool, it's not part of git's idea of a branch's history05:56
but it is useful for backing out whoopsies of various sorts05:56
yohos yeah i guess deltab05:56
ojacobson it's also purged after a few weeks so05:56
yohos yeah05:56
what really05:56
auto?05:56
ojacobson Reflog entries fall off the end, yeah05:56
it's not a versioning tool. 'git log' is that.05:57
yohos oh sure ok so it has a max entries05:57
ojacobson the reflog is mostly meant for manipulating local, unpublished changes, not for project history05:57
yohos i thought i twas litereally time based05:57
deltab reflog is like the history in a browser05:57
ojacobson no, literally time-based05:57
yohos hah wow05:57
even if i make no more commits05:57
or do anything05:57
ojacobson even if05:57
if you run _no_ git commands obviously nothing happens to the reflog05:58
but anything that might trigger gc (which is a lot of things) will do it, as will anything that writes reflog entries05:58
yohos will thats what i mean05:58
ah05:58
Dragooon left05:58
yohos sorry whats the best way to check where im at aagain05:58
i want to doucblecheck this05:58
adamellsworth joined05:58
ojacobson !lol05:58
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all05:58
cagedwisdom left05:59
Dragooon joined05:59
yohos it lists mine as backup/mainline05:59
is that because im on local repos?05:59
cagedwisdom joined06:00
deltab you have a remote called backup?06:01
zacts joined06:01
dsdeiz left06:01
zhangyh26258 left06:01
yohos yep06:02
maybe thats where iour review tool posts06:02
ojacobson 'git log --decorate' annotates commits with _every_ label it can find for them06:02
if two branches are set to the same commit, 'git log' will include both names06:02
yohos like hwat is the best way to read about git06:02
MattMaker joined06:03
yohos like i read the cmds and everything makes sense06:03
ojacobson (commits, as far as git is concerned, don't have any single "true" branch: they're "on' every branch pointing to them or pointing to anything after them)06:03
I've found !concepts to be pretty good06:03
gitinfo "Git Concepts Simplified" explains the basic structures used by git, which is very helpful for understanding its concepts. http://gitolite.com/gcs.html06:03
ojacobson it's kind of an implementation-upwards expanation but it's thorough without being too detailed06:03
zhangyh26258 joined06:03
yohos its all the mysery in how they are supposed to be combined to produced a meaningful workflow06:03
tnx06:03
ojacobson heh06:04
well06:04
that won't help that, then06:04
there's a crap ton of workflow documents out there for git, covering everything from purely local practices (I make terrible, terrible branches, for example, and clean them up after) to whole-project conventions06:05
!sausage !workflow06:05
gitinfo [!sausage_making] Some developers like to "hide the sausage making", transforming their commits before presenting them to the outside world. See http://sethrobertson.github.com/GitBestPractices/#sausage and !perfect06:05
Finding the right workflow for you is critical for the success of any SCM project. Git is very flexible with respect to workflow. See http://sethrobertson.github.com/GitBestPractices/#workflow for a list of references about choosing branching and distributed workflows.06:05
ojacobson that covers a bunch of it06:05
yohos hhah06:05
cool thanks06:05
ojacobson git-flow and github-flow are relatively widespread; keep in mind they're _conventions_, not rules, though06:05
(personally I find git-flow a bit finnicky around develop/master/production, and use fewer branches)06:06
blahdodo joined06:08
yohos ha06:08
ojacobson (I also don't have nvie's specific set of needs, so:)06:08
anyways, read sitaram's concepts guide, it'll give you a handle on what various commands are _doing_ in a way that will at least let you diagnose your own mistakes :)06:09
Fakeboost left06:09
blahdodo left06:10
michaelrice left06:12
beautifulmind joined06:12
D-Boy left06:12
yohos left06:14
dsdeiz joined06:18
EminenceHC joined06:19
chiemseesurfer joined06:20
hackvana left06:20
duderonomy joined06:20
_W_ left06:21
mroach joined06:23
Polyatomic left06:23
EminenceHC left06:24
pheaver left06:24
joeyDB_ joined06:24
dsdeiz left06:25
johtso left06:26
bramgg joined06:27
u1106 left06:27
u1106 joined06:28
elbeardmorez left06:28
mroach left06:28
mroach joined06:29
joeyDB_ left06:29
myyst joined06:30
jceb_ joined06:30
bramgg left06:30
D-Boy joined06:31
u1106 left06:32
u1106 joined06:32
myst left06:33
a_le_ joined06:33
Sample joined06:34
chiemseesurfer left06:34
myyst left06:34
Error404NotFound joined06:35
snearch joined06:35
myyst joined06:35
a_le left06:36
bramgg joined06:37
cagedwisdom left06:37
snearch left06:37
texasmynsted left06:38
snearch joined06:38
bramgg Ugh, I want to add all files possible that aren't staged for commit, but because one of the files is ignored by my .gitignore file (on purpose) I get a fatal error, and no files are added. How can I do "git add *" and just let it ignore the files it's supposed to ignore while adding the others?06:38
otter768 joined06:38
bramgg Basically I added said file to my .gitignore because I thought I could then conveniently run "git add *" without having to specifically remove it after06:39
kadoban joined06:40
otter768 left06:43
hvxgr left06:44
u1106 left06:45
u1106 joined06:46
cbonobo_ left06:46
comps bramgg: hmm, does "git add ." work?06:47
bramgg comps: yup! Are you a wizard -_-06:49
comps yes06:50
:)06:50
bramgg :p06:51
comps: really though, just to improve on my terrible git knowledge, what's the difference between "*" and "."?06:51
Or is it just that..06:52
snearch left06:52
CustosLimen left06:52
comps IIRC gitignore works for most ways of staging changes, except when adding the files directly by name06:52
"git add ." is the standard way of wildcarding "add everything"06:52
CustosLimen joined06:52
comps when you type "git add *" though, the asterisk gets expanded by bash, calling git-add with the file names explicitly06:53
hence ignoring gitignore06:53
bramgg ah, cool. thanks!06:53
Error404NotFound left06:53
Lyqyd left06:54
Polyatomic joined06:54
kadoban comps: I don't think that's quite right, but the result is the same. If you directly specify (or use shell globs, which to git looks the same), it will fail with a message if some of those are ignored, unless you -f I believe. Which means you still don't want to do that, but it'll error out at least, not just silently discard your .gitignore06:55
cagedwisdom joined06:56
comps kadoban: that may be true, I haven't touched that functionality since v1.5 or so :)06:56
Error404NotFound joined06:56
comps and git has gotten much more "user friendly" since then06:56
michaelrice joined06:57
kadoban Ah, yeah it's quite possible it's changed in between06:57
Sadeukko joined06:58
Sadeukko left06:58
jceb_ left07:00
jceb joined07:01
EminenceHC joined07:03
Motoko left07:03
_W_ joined07:03
pacon2 joined07:04
ToAruShiroiNeko left07:04
DSH105 left07:04
bb010g joined07:04
shampine left07:05
tohuw left07:06
pacon left07:06
michaelrice left07:06
tohuw joined07:06
beautifulmind left07:07
Sample left07:07
shampine joined07:07
DSH105 joined07:07
minerale_ left07:07
shampine left07:07
EminenceHC left07:07
ajustrun|away left07:07
jceb left07:07
adamellsworth left07:07
dansmith_ left07:08
Entomo left07:08
trig-ger joined07:08
shampine joined07:08
shampine left07:08
Sadeukko joined07:08
minerale joined07:08
Entomo joined07:08
dansmith_btc joined07:09
shampine joined07:09
shampine left07:09
ToAruShiroiNeko joined07:09
ToAruShiroiNeko left07:09
shampine joined07:09
shampine left07:09
ToAruShiroiNeko joined07:10
ajustrun joined07:10
ToAruShiroiNeko left07:10
epifanio joined07:10
shampine joined07:10
shampine left07:10
ToAruShiroiNeko joined07:10
ToAruShiroiNeko left07:11
shampine joined07:11
shampine left07:11
das_beard left07:11
shampine joined07:12
shampine left07:12
irqq joined07:12
shampine joined07:12
The_Phoenix joined07:12
shampine left07:12
shampine joined07:13
shampine left07:13
shampine joined07:14
shampine left07:14
ToAruShiroiNeko joined07:14
shampine joined07:15
duderonomy left07:15
shampine left07:15
bhldev__ left07:15
bhldev joined07:15
shampine joined07:15
shampine left07:15
Maniqui joined07:16
shampine joined07:16
shampine left07:16
ajustrun left07:16
shampine joined07:17
shampine left07:17
shampine joined07:18
shampine left07:18
netj_ joined07:18
FabTG_ joined07:18
javawizard joined07:18
shampine joined07:18
shampine left07:18
snearch joined07:19
Dreamer3__ joined07:19
shampine joined07:19
shampine left07:19
himikov joined07:20
shampine joined07:20
shampine left07:20
OMGOMG_ joined07:20
Corey_ joined07:20
aboccia_ joined07:21
_W joined07:21
Dreamer3 left07:21
David_____ joined07:21
David left07:21
David_____David07:21
jongravois left07:22
snearch left07:22
Pieter__ joined07:22
jongravois joined07:22
hvxgr joined07:23
_Atom_ joined07:25
JPT_ joined07:25
diegoaguilar left07:25
joeyDB_ joined07:25
vlovgr left07:25
sokoll- joined07:26
netj left07:26
Mannequin left07:26
kyledr_ joined07:26
nikio__ joined07:26
jongravois left07:27
Gamecubic left07:27
sgen_ joined07:27
gagan662_ joined07:27
_W_ left07:28
kaiten02 left07:28
chemist69_ left07:28
FabTG left07:28
joki left07:28
toothrot left07:28
ColdKeyboard left07:28
Arsonide left07:28
ItSANgo_ left07:28
himikof left07:28
drodger left07:28
salamanderrake left07:28
bipolar_ left07:28
kyledr left07:28
JPT left07:28
ValicekB left07:28
gagan662 left07:28
srcerer left07:28
Generator_ left07:28
jcp left07:28
jab416171 left07:28
aboccia left07:28
r00tWearsRedHats left07:28
Corey left07:28
sokoll left07:28
Pieter left07:28
OMGOMG left07:28
doobi-sham-95717 left07:28
osfe left07:28
j416 left07:28
timoxley left07:28
ValicekB_ joined07:28
sgen_ left07:28
doobi-sham-95717 joined07:28
Vgr left07:29
joeyDB_ left07:30
lid_ left07:30
whoami left07:30
drodger joined07:30
doobi-sham left07:31
doobi-sham-95717 left07:31
JohnBat26 joined07:31
JohnBat26 left07:31
ColdKeyboard joined07:31
cagedwisdom left07:32
Vgr joined07:32
srcerer joined07:32
ValicekB_ValicekB07:33
salamanderrake joined07:33
whoami joined07:33
sgen_ joined07:33
whoami left07:33
whoami joined07:33
dm7freek joined07:33
u1106 left07:34
u1106 joined07:34
Ragnar left07:34
bipolar joined07:35
doobi-sham-95717 joined07:35
jab416171 joined07:35
timoxley joined07:35
kaiten02 joined07:35
joki joined07:35
ItSANgo_ joined07:35
Generator_ joined07:35
r00tWearsRedHats joined07:35
osfe joined07:35
doobi-sham-95717 left07:36
kaiten02 left07:36
jab416171 left07:36
pantsman- joined07:36
Arsonide joined07:36
j416 joined07:36
jab416171 joined07:36
kaiten02 joined07:37
anbz joined07:37
geomyidae_ left07:38
dm7freek left07:38
_Atom_ left07:38
u1106 left07:39
u1106 joined07:39
pacon2 left07:43
cagedwisdom joined07:45
Vgr left07:46
TheNet left07:46
dreiss joined07:47
mmitchell joined07:48
madewokherd left07:48
txzf joined07:48
Vgr joined07:48
Vgr left07:48
Vgr joined07:48
dreiss left07:48
linuxmint left07:48
txzf left07:48
dreiss joined07:49
netcarver joined07:49
chemist69_ joined07:49
Bwpl joined07:49
Bwpl left07:50
reai joined07:51
reai left07:51
mmitchell left07:52
zyak joined07:52
zyak left07:52
aeoo joined07:54
ValicekB left07:56
leolrrj joined07:58
Vgr left08:00
cagedwisdom left08:00
Goplat left08:01
Vgr joined08:01
d4ryus_ joined08:01
Takle joined08:02
nikio___ joined08:02
GT4066 left08:03
leolrrj left08:03
ValicekB joined08:03
d4ryus left08:04
netcarver left08:06
Takle left08:07
zhangyh26258 left08:08
apurcell left08:08
Vgr left08:11
Sample joined08:12
Vgr joined08:12
Vgr left08:12
Vgr joined08:12
tohuw left08:12
petersr joined08:14
leolrrj joined08:15
Takle joined08:15
kaiten02 left08:15
blahdodo joined08:17
settermjd joined08:17
blahdodo left08:19
faheem_ left08:20
leolrrj left08:22
polyzen left08:23
blahdodo joined08:24
EminenceHC joined08:24
settermjd left08:24
zhangyh26258 joined08:25
dreiss left08:26
blahdodo left08:26
joeyDB_ joined08:26
EminenceHC left08:28
blahdodo joined08:29
joeyDB_ left08:30
darkbasic_ joined08:31
mezod joined08:31
darkbasic left08:32
jstimm left08:33
lindenle joined08:36
blahdodo left08:38
polyzen joined08:38
otter768 joined08:39
lindenle left08:40
blahdodo joined08:41
nnyk_ joined08:43
thiago left08:43
otter768 left08:44
mezod left08:45
dm7freek joined08:49
Vile joined08:50
liamkeily joined08:51
blahdodo left08:53
jagob joined08:53
PeterBooker joined08:54
blahdodo joined08:56
flavi0 hey there. i asked yesterday already but wasn't quite able to finish/test it. so i have those two local commits to master. there is my own origin github repo and the upstream github repo. the changes have not yet been pushed to origin. in upstream there was a commit in between. i would like to skip the merge commit in either direction and use rebasing instead. now how would i exactly go about this?08:57
ev_ joined08:58
Kicer86 joined08:59
kyc0816 joined08:59
kyc0816 hh09:00
flavi0 osse yesterday proposed to do git rebase origin/master, but i don't really get how this would work. will this, like push-rebase my local commits onto origin/master?09:01
JohnBat26 joined09:02
hellolittle joined09:02
luriv joined09:05
haptiK joined09:07
lamont joined09:07
Zarthus left09:07
autochthon joined09:07
kyc0816 I'm doing the tutorial on gitimmersion.com (on lab15), and does staging change the location of the HEAD? (+ does HEAD point to all my works that are not committed/staged)?09:08
haptiK left09:08
jongravois joined09:10
Literphor left09:10
runev joined09:11
liamkeily left09:11
luriv_ left09:11
hellolittle left09:12
kadoban kyc0816: No, staging doesn't change HEAD. HEAD points to an actual commit09:14
jongravois left09:15
Sample left09:17
rendar joined09:18
Sleepy63 left09:19
JohnBat26 left09:22
kyc0816 @kadoban Thanks that helped me get by : )09:23
kadoban :)09:23
skylite left09:23
joeyDB_ joined09:27
anli joined09:28
Zarthus joined09:30
joeyDB_ left09:32
Sleepy63 joined09:32
skylite joined09:32
ZujkisNx joined09:32
EminenceHC joined09:32
PragCypher joined09:33
liamkeily joined09:34
flavi0 ok reading man git-rebase helped..09:34
gitinfo the git-rebase manpage is available at http://jk.gs/git-rebase.html09:34
MechtiIde left09:34
runev left09:35
EminenceHC left09:37
CustosL1men joined09:38
nnyk_ left09:38
Zoddo joined09:40
aeoo left09:42
IIT joined09:42
elbeardmorez joined09:42
IIT left09:43
Kauh joined09:44
Kauh left09:45
fidn joined09:45
cdown joined09:46
govg joined09:47
fidn left09:47
Err404NotFound joined09:48
Err404NotFound left09:48
Err404NotFound joined09:48
Error404NotFound left09:48
gerea joined09:48
gerea left09:49
cdown left09:49
Xoea joined09:49
flavi0 if i do not use topic branches but commit to master always, will a github upstream be able to selectively merge my commits? or is that cumbersome and he would have to cherrypick or something, so rather use isolated topic branches?09:51
Xoea left09:52
Eloz joined09:53
Eloz left09:53
Aivm joined09:54
HelloShitty joined09:54
Aivm left09:54
Seveas flavi0: if you use pull requests, you should use one branch per request09:55
oozs joined09:55
m8 joined09:55
cagedwisdom joined09:56
flavi0 Seveas: ok that's what i thought, really got to get used to actually doing so. thanks!09:56
jatt joined09:59
jatt left09:59
jatt joined09:59
jatt left10:00
skylite_ joined10:00
jatt joined10:00
jatt left10:00
jatt joined10:00
kyc0816 left10:01
osse flavi0: this is what I meant https://github.com/Osse/git-stuff/blob/master/origin-master.txt#L26-L2910:01
Takle left10:01
skylite left10:02
bramgg left10:03
flavi0 osse: ahh yep, got it now, hopefully :)10:03
epifanio left10:05
stick-shift joined10:07
MLM left10:07
PragCypher left10:08
PragCypher joined10:08
Takle joined10:08
tanuck joined10:09
PragCypher left10:09
PragCypher joined10:10
AAoK joined10:11
WaReZ joined10:11
flavi0 hmm ok.. if upstream is supposed to easily merge my topic branches, they may only depend on commits which are actually in upstream. so i should not branch off my local master (which has *all* my changes let's say, even when upstream rejected them), but rather checkout upstream/master and branch off that for each topic branch, then issue pull request and merge into my local master? would that be the clean way to go about this?10:14
Seveas flavi0: correct10:15
svteoi joined10:15
AAoK left10:15
flavi0 Seveas: sweet. exploring the powers of git just now :)10:15
Seveas also, if two branches depend on each other, don't file a pull request for the second until the first has been merged, otherwise it gets confusing :)10:16
oozs left10:16
flavi0 Seveas: yeah that's kinda how i came thinking about this. because wanted to start using a topic branch now but that already depends on my current master of course.. i could fix that by checking out the commit already in upstream and branch from that right?10:17
PragCypher left10:17
Seveas yes10:17
flavi0 just great, really... but still takes me to wrap my head around.10:18
ayg joined10:18
lahwran joined10:19
theme2 joined10:19
CEnnis91 left10:20
duper joined10:20
zhangyh26258 left10:21
AAoK joined10:21
nikio__ left10:25
nikio___ left10:25
lindenle joined10:25
jatt left10:26
okanck joined10:26
catsup left10:27
catsup joined10:27
MattMaker left10:27
joeyDB_ joined10:27
catsup left10:28
fooforge joined10:29
catsup joined10:29
lindenle left10:29
freestyl3r joined10:31
zhangyh26258 joined10:32
joeyDB_ left10:32
hardenedapple joined10:32
catsup left10:34
fooforge left10:34
michelangelo joined10:35
heroux joined10:35
catsup joined10:35
EminenceHC joined10:36
stick-shift left10:36
Sound joined10:37
donmichelangelo left10:38
u1106 left10:38
drfoo joined10:39
u1106 joined10:39
catsup left10:40
otter768 joined10:40
Amandil joined10:40
catsup joined10:40
EminenceHC left10:41
jceb joined10:41
PragCypher joined10:41
Gizburdt joined10:43
basiclaser joined10:44
randiman joined10:45
otter768 left10:45
catsup left10:46
catsup joined10:46
faheem_ joined10:48
xaa joined10:48
catsup left10:51
ZujkisNx left10:51
catsup joined10:52
stick-shift joined10:54
jatt joined10:55
jatt left10:55
jatt joined10:55
Gama11 joined10:56
IIT joined10:56
catsup left10:57
catsup joined10:57
twoface88 joined10:58
twoface88 left10:58
jongravois joined10:59
andi4 joined11:00
catsup left11:02
HoMM joined11:02
catsup joined11:03
jongravois left11:04
tanuck left11:04
theme2 left11:05
wicope joined11:07
NBhosting left11:07
catsup left11:08
catsup joined11:08
pandeiro joined11:10
jceb left11:10
skorgon left11:12
catsup left11:13
catsup joined11:14
jongravois joined11:15
pantsman- left11:16
Dragooon left11:17
randiman left11:17
Dragooon joined11:18
cdown joined11:18
giusef joined11:19
catsup left11:19
Dragooon left11:19
catsup joined11:19
King_Hual joined11:20
stick-shift left11:20
dsirijus joined11:20
dsirijus left11:21
cagedwisdom left11:21
catsup left11:25
Polyatomic left11:25
catsup joined11:25
nfk joined11:25
rap joined11:25
tens0r joined11:26
Dragooon joined11:27
stick-shift joined11:27
RaceCondition joined11:27
joeyDB_ joined11:28
andi4 left11:30
Terens left11:30
catsup left11:30
catsup joined11:30
drfoo left11:31
stick-shift left11:32
joeyDB_ left11:33
cdown left11:33
jiku joined11:33
kcj left11:34
Guest56020 left11:34
catsup left11:35
catsup joined11:36
gv joined11:36
gvGuest4374411:36
EminenceHC joined11:38
HelloShitty left11:38
Nizumzen joined11:38
nfk left11:39
cagedwisdom joined11:40
nnyk_ joined11:41
Dexter245 joined11:41
arez joined11:42
EminenceHC left11:43
Dexter24 left11:43
tens0r left11:46
RaceCondition left11:47
gagalicious joined11:48
warthog9 left11:49
CustosL1men left11:49
eletuchy_ left11:49
mroach left11:49
gagalicious how can i checkout everything regardless of overwriting current files and without deleting a single file?11:50
i did "git init; git add .; git commit -m 'everything'"; now would like to "restore everything and overwrite the directory and not delete a single file?"11:51
i would also like to make sure it doesnt throw errors... i mean i would like to force it11:52
tgummerer left11:53
tgummerer joined11:53
PragCypher left11:54
bremner gagalicious: what exactly do you want to restore? you have one commit, so the logical answer is go back to pre-init stat?11:54
svteoi left11:55
gagalicious oh i figured out... but the problem is... how do i checkout the directories with the right user permission and user group?11:55
bremner gagalicious: git obeys umask, but otherwise only cares about the executable bit.11:55
gagalicious when i checkout, it checkouted as root coz i logined as roog11:56
root11:56
kadoban gagalicious: …so don't do that then11:56
gagalicious ...11:56
Vile left11:57
jason237 left11:58
jost joined11:58
bremner what is your goal in logging in as root to perform git operations?11:58
or is that just a mistake that needs to be fixed?11:59
dougsland joined11:59
gagalicious a mistake11:59
fixed ... i re did chowned everything and ... oh well... that does it12:00
anli left12:01
HelloShitty joined12:02
watabou left12:02
eletuchy joined12:03
jatt left12:03
gdhaworth joined12:04
Terens joined12:05
Terens left12:05
Terens joined12:05
Domhack joined12:05
robbyoconnor left12:06
nnyk_ left12:07
nnyk_ joined12:08
liamkeily left12:09
Arsonide left12:09
tgummerer left12:11
zhangyh26258 left12:11
cagedwisdom left12:11
ap0c left12:11
tens0r joined12:13
gdhaworth left12:14
polyzen left12:16
zhangyh26258 joined12:16
kadoban left12:19
u1106 left12:19
u1106 joined12:19
tens0r left12:20
tens0r joined12:20
zhangyh26258 left12:21
gfixler left12:23
cagedwisdom joined12:24
[gmi] joined12:24
ayg left12:28
Dragooon left12:29
ahf joined12:29
joeyDB_ joined12:29
endiruna joined12:29
ahf Heya. I'd like to make "git show" run "git show --foo". I tried adding an alias in my ~/.gitconfig for "show = show --foo", but that doesn't seem to do the track. Any hints?12:29
tens0r left12:31
cagedwisdom left12:32
mkhkz joined12:32
u1106 left12:32
u1106 joined12:32
mkhkz left12:33
CustosL1men joined12:33
nzef joined12:33
joeyDB_ left12:34
ToAruShiroiNeko left12:34
zhangyh26258 joined12:34
bremner you can't alias build in commands12:34
if you _must_ you can make a wrapper script.12:34
jadne joined12:34
nnyk_ left12:35
anbz left12:36
zhangyh26258 left12:36
zhangyh26258 joined12:36
JargonNode joined12:37
s8321414 joined12:39
ToAruShiroiNeko joined12:40
ToAruShiroiNeko left12:40
ToAruShiroiNeko joined12:40
warthog9 joined12:40
ToAruShiroiNeko left12:41
ToAruShiroiNeko joined12:41
otter768 joined12:41
u1106 left12:44
u1106 joined12:44
haptiK joined12:44
warthog9 left12:45
deltab ahf: is the option something that can be set in git-config?12:45
CustosLimen left12:46
JagaJaga joined12:46
otter768 left12:46
ahf deltab: couldn't find it. i wanted --show-signatures to show and log12:46
haptiK left12:46
anbz joined12:46
CustosLimen joined12:49
warthog9 joined12:50
nnyk_ joined12:50
HelloShitty left12:51
zadock joined12:51
jadne left12:52
anbz left12:52
doev joined12:53
IIT left12:53
shuaib joined12:56
KaitoDaumoto joined12:56
jstimm joined12:58
Gizburdt left12:58
daedeloth joined12:59
fstd left13:00
GT4066 joined13:00
fstd joined13:00
giusef left13:01
nzef left13:02
Nizumzen left13:02
npzv joined13:03
Nizumzen joined13:05
e^0 joined13:06
e^0Guest6223913:06
Guest62239 left13:07
ktchup joined13:09
btree left13:09
e^0_ joined13:09
Akagi201 joined13:10
joel_falcou joined13:10
lys joined13:10
Takle left13:10
jatt joined13:12
jatt left13:12
jatt joined13:12
anli joined13:14
wicope left13:16
tritone joined13:20
e^0_ left13:21
ToAruShiroiNeko left13:22
ToAruShiroiNeko joined13:23
dprophit joined13:23
ToAruShiroiNeko left13:24
ToAruShiroiNeko joined13:24
stick-shift joined13:25
dprophit If I create a bare repository that mirrors from elsewhere and the bare repo is the production site and production is a CMS or cart, do I have to add a gitignore file to ignore locations that continue to add say images, etc?13:25
tgummerer joined13:27
leeN joined13:29
jatt left13:30
joeyDB_ joined13:30
u1106 left13:33
jatt joined13:33
u1106 joined13:33
jatt left13:33
jatt joined13:33
ZujkisNx joined13:35
joeyDB_ left13:35
shift8 left13:36
jiku left13:36
jatt` joined13:36
moritz dprophit: how can a bare repo be the production site?13:37
jatt` left13:37
jatt left13:37
moritz dprophit: doesn't the web server need the actual files?13:37
jatt joined13:37
jatt left13:37
jatt joined13:37
EminenceHC joined13:41
lindenle joined13:45
shift8 joined13:45
EminenceHC left13:46
stick-shift left13:47
Shusshu joined13:47
Shusshu left13:48
rns2 joined13:49
lindenle left13:49
myystmyst13:50
gooda joined13:51
Acidnerd joined13:51
u1106 left13:53
Sound left13:53
u1106 joined13:53
jatt left13:53
npzv left13:58
jatt joined13:58
jatt left13:58
jatt joined13:58
jele joined13:59
jele left13:59
HelloShitty joined14:00
Qke joined14:02
Joel_ joined14:02
jadne joined14:02
Joel_Guest7420414:02
Qke left14:03
ToAruShiroiNeko left14:03
MrRoot joined14:03
MrRoot left14:03
Guest74204 left14:03
MrRoot joined14:04
ktchup left14:04
Ozuu joined14:04
Joel__ joined14:04
skasturi joined14:05
shuaib left14:05
joel_falcou left14:05
Joel__joel_falcou14:06
u1106 left14:07
Dexter245 left14:07
u1106 joined14:07
netameta left14:08
ktchup joined14:09
s8321414 left14:09
Ozuu left14:10
jatt left14:11
Xreq joined14:11
Takle joined14:11
Xreq left14:11
Deit joined14:13
hexagoxel joined14:13
ktchup left14:13
u1106 left14:14
ev_ left14:14
PCatinean joined14:14
u1106 joined14:14
netcarver joined14:16
Vgr is there a way to show the history from a certain point up until now? I know I can do it with dates but I don't know how to do it with commit hashes14:16
Takle left14:16
flavi0 Vgr: git log <hash>..14:17
mkaesz joined14:17
Vgr oh, wasn't aware you could do that. thanks!14:17
flavi0 yw14:18
Vgr oh, this isn't what I want14:18
mkaesz left14:18
Vgr this shows me history from and before that point; I want it from and after that point14:18
skasturi left14:22
flavi0 Vgr: the .. was to be taken literally14:22
skasturi joined14:22
flavi0 Vgr: actually that includes not the commit itself, so you might do git log <hash>^.. instead14:23
Vgr: ^ meaning the parent of that commit14:23
Vile joined14:24
Akagi201 left14:24
Vadimus joined14:25
devll joined14:25
flavi0 Vgr: or, if you're on master git log <hash>^..master or for the current branch git log <hash>^..HEAD14:25
or rather, current state of head, should also work for 'detached head', not corresponding to a branch14:26
Gizburdt joined14:26
sword``` joined14:27
enitiz joined14:27
mizu_no_oto joined14:28
CEnnis91 joined14:28
jatt joined14:29
sword`` left14:29
jatt left14:29
jatt joined14:29
pierre1_ joined14:29
xk_id joined14:30
xk_id left14:31
joeyDB_ joined14:31
moritz newer git versions seem to print "Checking connectivity... done." at the end of a 'git clone'14:31
what's that about?14:31
litespeed joined14:32
zivester joined14:33
iamjarvo joined14:33
epifanio joined14:33
staafl left14:34
joeyDB_ left14:35
sburgess joined14:35
sburgess left14:36
two-gun joined14:37
staafl joined14:37
doev left14:38
iamjarvo left14:40
two-gun afternoon all. i'm very new to git (so probs doing it wrong) i'm testing a very simple local mamp setup. i make a change in my code on a branch but when i toggle between the branches and refresh my webpage the change is not picked up. i can see the change in the code and i've tried deleting my cache but no change. btw i am not pushing the code anywhere it is not connected to a repos. i'm just committing it? does14:40
anyone know what i'm doing wrong? thanks14:40
osse two-gun: Does your web server serve the location of your repo directly?14:41
freestyl3r left14:42
two-gun i think so...14:42
otter768 joined14:42
two-gun my site is ~/sites/website/14:42
netcarver left14:42
two-gun and i have git @ ~/sites/website/.git14:43
HoMM left14:43
two-gun but maybe i dont have a repo? i have not pushed this anywhere, it's not on github or anything. do i have to push it somewhere (say my raspberry pi NAS) for it to work?14:44
lieber left14:44
osse What is the change in the code? You use git checkout to switch branches right? What does git status say?14:44
Vgr flavi0: thanks, will do! sorry for late reply, had to go afk14:44
EminenceHC joined14:44
osse No. No need to push anything anywhere if your web server is local also14:44
two-gun yes it picks up the change fine. i'm changing the name fontsize in css from 16px to 30px14:44
sorry it picks it up fine *in the code* but the change is not served to my web browser14:45
smw_ joined14:45
netcarver joined14:46
otter768 left14:46
HoMM joined14:47
HoMM left14:47
HoMM joined14:47
HoMM left14:47
metastableB joined14:47
HoMM joined14:47
HoMM left14:47
HoMM joined14:47
HoMM left14:47
okanck left14:47
HoMM joined14:48
HoMM left14:48
two-gun so currently i am on master branch with name size of 16px but the browser shows me a name font size of 30px which is from my branch edit14:48
HoMM joined14:48
pierre1_ left14:48
HoMM left14:48
HoMM joined14:48
Guest32888mricon14:48
two-gun i figured if i checkout a different branch that would be the edit that my mamp server serves?14:48
Vgr two-gun: did you commit your changes before checking out? just making sure14:49
EminenceHC left14:49
two-gun Vgr: ok, 1 sec...14:49
CheckDavid joined14:49
Vgr uncommited changes carry over between checkouts14:50
only commits are connected to a branch. file changes are not14:50
phos1 joined14:50
Guest5041 joined14:50
lsiv568 joined14:51
JEEB left14:51
HoMM left14:52
ejb joined14:52
mricon left14:53
two-gun Vgr: i just triple checked this. it is not the problem. i'm now currently in my master branch but when i refresh my browser i can only see the edits from my 'branch-test' branch.14:53
if i switch branches. i still have the same results in the browser14:54
Vgr you did not answer my question14:54
did you commit your changes?14:54
anli left14:55
ejb Hi, I want to take over a github issue/PR gone stale: https://github.com/twbs/ratchet/pull/558. It's stated that the PR needs to be rebased and squashed. Should I clone the patch author's repo first then merge in the official repo? Or start with the official repo and merge in the patch repo?14:55
snearch joined14:55
_ikke_ Doesn't really matter14:56
jatt left14:56
two-gun Vgr: i did commit my changes. but now my moment of *BLUSH* i was in the wrong bloddy directory. sorry to waste your time. thanks for you help!14:57
Vgr no prob14:57
flavi0 left14:57
jatt joined14:57
Vgr glad you figured it out14:57
:)14:57
two-gun osse: seems i was in the wrong directory! *mega blush* thanks for your help14:57
jatt left14:57
jatt joined14:57
zhangyh26258 left14:58
Akagi201 joined14:58
APerson_ joined14:58
troyt left15:00
gitinfo set mode: +v15:00
JEEB joined15:01
garfixas joined15:01
garfixas left15:01
irqq_ joined15:02
irqq left15:03
irqq_irqq15:03
troyt joined15:03
ktchup joined15:03
MLM joined15:05
GT4066 left15:07
DaisyTheCow joined15:08
DaisyTheCow left15:08
King_Hual left15:08
JEEB left15:09
lsiv568 left15:11
Deit left15:11
Gizburdt left15:12
Nizumzen left15:12
Yttc joined15:13
ejb _ikke_: Do I add the patch repo as another remote to pull it in? ( assuming I clone the official repo first )15:14
Yttc left15:14
shinnya left15:14
endiruna left15:14
dfa joined15:15
endiruna joined15:15
_ikke_ yes15:16
_Atom_ joined15:16
qsuscs you could also download the patch and am it, if you want15:16
Takle joined15:16
BuenGenio joined15:16
adamben joined15:17
adamben left15:17
adamben joined15:17
litespeed left15:18
snearch left15:18
dsdeiz joined15:20
phos1 left15:20
Dougie187 joined15:20
Ratler joined15:20
Takle left15:21
Sam-T joined15:21
Sam-T left15:21
Sam-T joined15:21
netameta joined15:22
epifanio_ joined15:22
epifanio left15:22
epifanio_epifanio15:22
vmiklos left15:23
ejb qsuscs: am it?15:25
vmiklos joined15:25
qsuscs ejb: nvm, just fetch the repo. i meant man git am15:25
gitinfo ejb: the git-am manpage is available at http://jk.gs/git-am.html15:25
_ikke_ stands for apply mailbox15:26
ejb qsuscs: ok, that's what I've done. Added as remote, fetch, branch, checkout. So not I need to rebase? And how can I test the patch using their travis ci setup? Never used that15:26
_ikke_ iirc15:26
qsuscs yes ikke15:27
_ikke_ ejb: You need to send a pull request, it will automatically trigger a test build15:27
ejb _ikke_: Ok, but first I can rebase and make sure that it plays nice with the latest code from the official repo?15:27
_ikke_ right15:30
zadock left15:30
Jackneill joined15:31
adamben left15:31
joeyDB_ joined15:31
ejb Shoot. Just tried to do an interactive rebase but none of the commits were listed... tried to quit but it says that it rebased. Can I undo that?15:32
metastableB left15:32
_ikke_ Did it actually rebase something/15:32
(and yes, it can be undone)15:32
ejb _ikke_: unknown. I did git reset --hard ORIG_HEAD15:33
adamben joined15:33
dfa left15:33
_ikke_ I guess that should work (I've never used ORIG_HEAD)15:33
jottr joined15:33
ejb Here's how I'm trying to rebase: 1) git merge-base file_protocol_push_js patch 2) git rebase --interactive HASH15:34
_ikke_ why are you manually calculating the merge-base?15:34
ZujkisNx left15:34
ejb _ikke_: oh maybe this is called squashing? I'm folling a guide. How do you do it?15:34
_ikke_ rebasing on merge base is a noop if I understand it correctly15:34
ejb _ikke_: it said noop in there, yeah15:35
Aagat joined15:35
incredible joined15:35
_ikke_ git rebase <branch-to-rebase-on> <branch-to-rebase>15:35
Do you need it to be interactive?15:35
ejb so probably git rebase origin/master patch/the_patch ?15:36
no15:36
joeyDB_ left15:36
_ikke_ right. And the last argument is optional if you are already on that branch15:36
Aagat left15:36
ejb _ikke_: ok15:36
Lancien joined15:37
ejb _ikke_: ok, up to date. How about squashing the patch?15:37
Gamecubic joined15:37
tfwe joined15:37
Gamecubic_ joined15:37
_ikke_ Why do you want / need to squash it?15:37
Solid1 joined15:37
tfwe left15:38
ejb _ikke_: it was requested by the maintainers15:38
_ikke_ Ok15:38
enitiz left15:38
_ikke_ Then you do need the interactive rebase, indeed15:38
Ofw joined15:38
jgardella joined15:40
ejb _ikke_: So I undid the rebase and tried with -i for interactive but there aren't any commits listed?15:40
_ikke_ You probably used the wrong branches to calculate the merge base15:41
Noldorin joined15:41
ejb I just did git rebase -i origin/master15:41
_ikke_ and on what branch are you currently?15:41
ejb the_patch15:42
Solid1 left15:42
petersr_ joined15:42
enitiz joined15:42
_ikke_ what does git log --oneline origin/master.. | wc -l return?15:43
petersr_ left15:43
jstimm left15:43
doev joined15:43
Jackneill left15:44
ejb _ikke_: just a sec. I don't see the changes from the_patch in my files.15:45
_ikke_: I did git fetch patch15:46
_ikke_: git checkout the_patch15:46
_ikke_ ejb: git fetch takes a remote, not a branch15:46
(git fetch <remote> <refspec>)15:46
ejb _ikke_: then looked for the changes in the files and they aren't there15:46
_ikke_: yeah, sorry that is a remote15:46
poor naming15:46
_ikke_ ok then15:46
did the branch the_patch already exist in the repo before you checked it out?15:47
FabTG joined15:47
jstimm joined15:47
ejb not in my local repo15:47
I'll start over.15:47
jottr left15:48
chemist69_ left15:48
_ikke_ No need to15:48
Would be educational to find out why you don't see what you expect15:48
cbonobo joined15:49
jottr joined15:49
nnyk joined15:50
_Atom_ left15:50
nnyk_ left15:50
ejb _ikke_: hm, well I started over and now I see the changes. I think the difference was: git fetch patch, git checkout the_patch, git fetch15:51
the second fetch15:51
mizu_no_oto left15:51
HelloShitty left15:51
cbonobo left15:52
_ikke_ That doesn't even make sense15:52
mizu_no_oto joined15:52
barduck joined15:52
_ikke_ (I recall stumbling upon similar things when I started to use git)15:53
mizu_no_oto left15:53
nnyk_ joined15:53
rap left15:53
ErKa joined15:53
ejb _ikke_: hah, well, I'm back to the rebase / squash.15:53
_ikke_: I see the commits now in interactive mode. I changed all but the first to squash15:53
metastableB joined15:54
_ikke_ Do you need the commit messages from all of the commits?15:54
iamjarvo joined15:54
_ikke_ otherwise, use fixup15:54
ejb nah15:54
nnyk left15:54
barduck left15:55
Ofw left15:55
ejb noted. But I used squash and then got an error that the first commit could not be applied15:55
barduck joined15:56
lkgf joined15:56
ejb _ikke_: so is this where I need to actually resolve the code issue?15:56
gooda left15:57
Lancien left15:57
barduck left15:58
hesco left15:58
barduck joined15:58
_ikke_ Did you rebase onto origin/master?16:00
Then, yes, you should fix the conflicts16:01
barduck left16:01
barduck joined16:01
JagaJaga left16:02
hcc23 joined16:02
barduck left16:03
ev_ joined16:04
ejb _ikke_: oy. more problems. I fixed the conflict. git add js/push.js. git rebase --continue. All good. But somehow my conflict resolution didn't stay? The two conflicting code blocks are still in js/push.js16:04
jottr left16:04
barduck joined16:04
ejb _ikke_: git status doesn't show any outstanding changes in js/push.js16:05
_ikke_ ejb: I think in this case, it's easier to first do the squash, and then rebase it onto origin/master16:05
Err404NotFound left16:05
ejb _ikke_: isn't it one step?16:05
iamjarvo left16:06
_ikke_ You can do it in one step, or two16:06
basically, squashing multiple commits into one is one step, moving that commit onto another branch is another step16:07
barduck left16:07
u1106 left16:07
ejb _ikke_: Ok, so does git rebase -i origin/master patch/the_patch do that?16:07
Zifre joined16:07
u1106 joined16:07
barduck joined16:08
rns2 left16:08
Nizumzen joined16:08
_ikke_ ejb: git rebase -i $(git merge-base origin/master patch/the_patch)16:08
dannymichel left16:09
ejb While on the_patch branch?16:09
barduck left16:10
chemist69 joined16:10
_ikke_ yes16:10
barduck joined16:10
ejb _ikke_: Ok, success.16:11
gooda joined16:11
cbreak left16:11
ejb _ikke_: Now it needs to be merged into origin/mater?16:11
anli joined16:12
hesco joined16:12
_ikke_ No, you should rebase it on master, upstream will do the merge through a pull request16:13
cavallari joined16:13
_ikke_ (the rebase is, like you said, to be sure the patch applies onto the newest code)16:13
Zifre_ joined16:13
Takle joined16:14
jost left16:14
Gitzilla left16:14
enitiz left16:14
ejb _ikke_: understood. Why, with that last method of rebasing, did I not have to resolve the same conflict as before? The patch's version of the code was automatically used.16:15
_ikke_ ejb: did you rebase it onto origin/master yet?16:15
ejb _ikke_: oh that's a second rebase?16:16
_ikke_ yes16:16
That's why I said it was two stepts16:16
steps*16:16
metastableB left16:16
Zifre left16:16
toothrot joined16:17
_Atom_ joined16:17
enitiz joined16:17
Gitzilla joined16:17
ghormoon joined16:17
Guest5041xxSnip3rsl4yerxx16:18
ejb _ikke_: Ok, I rebased to origin/master and resolved the conflict. Now I probably need to push the patch to my own remote branch?16:18
Consuela left16:18
_ikke_ ejb: push -f16:18
daynaskully {Q} anyone have any recommendations to a deploy script of some sort? I thought of just doing a cron job to do a git update on my webserver.. but i dunno..16:20
CKyle joined16:20
freestyl3r joined16:22
_ikke_ I either use capistrano, or a self-made bash script that uses git-archive and symlinks16:22
[cust] left16:22
specious joined16:23
cbreak joined16:24
lindenle joined16:25
ejb _ikke_: push -f -> permission denied because the remote branch belongs to the original patch author16:26
_ikke_: can I just change the remote16:26
_ikke_ sure16:26
demifuror joined16:26
ejb _ikke_: is there another way too?16:27
lindenle left16:27
snearch joined16:27
pekster daynaskully: there's some info for you at !deploy16:27
gitinfo daynaskully: Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html16:27
incredible left16:27
_ikke_ No, you need to push it somewhere you have access to16:27
cbreak I read git 2.3 now has a "deploy" mode built in...16:27
APerson_ left16:27
cbreak but of course, it is just as risky as some of the more the primitive methods described on that gitolite link16:28
_ikke_ right16:28
osse two-gun: np yw ttyl bbq16:28
ejb _ikke_: if I just remove the patch remote will the_patch branch remain locally? Then I can just do push -f?16:28
_ikke_ ejb: Yes, and no -f necessary if you push it to another repo16:28
demifuror hey guys. is it possible to have placeholder tags in my source files, and then, when i commit changes, have the commit sha placed into one of the placeholders, before the file is committed?16:29
Vadimus left16:29
_ikke_ demifuror: the sha is not determined until the commit has happened16:29
so, no16:29
Guin joined16:29
ghormoon left16:29
snearch left16:30
metastableB joined16:31
Nikhil_D left16:31
BuenGenio how do you guys manage the persistent differences you need to keep in files between master/development branches - e.g. different paths in files, debug/testing flags all around the code etc... which you want to keep different in production and dev branch16:31
?16:31
Nikhil_D joined16:32
_ikke_ BuenGenio: Arranging things so that those changes don't need to be made in files that are actually tracked16:32
joeyDB_ joined16:32
cdown joined16:32
rns2 joined16:32
awkwardusername left16:33
pekster One basic example might be build-time code that knows if you've checked out a development or production branch (based on the branch name, for example, or whatever else you'd like) and defines something. Then you can #ifdef DEBUG # or whatever16:33
But there are many variations on that theme16:33
ejb _ikke_: Thanks a ton. I got it pushed to my repo. I think I'm ready to do a PR. Do I have to open a new PR to get the test results? The original issue was closed... is it common practice to request them to reopen the issue or start a new one?16:33
King_Hual joined16:33
_ikke_ ejb: well, because it's a different branch from a different user, you have to create a new PR, but you should link to the original16:34
madewokherd joined16:34
jottr joined16:34
BuenGenio _ikke_, well, they need to be change in the actually tracked files - for example, I only want to send email notification generated by my app when TESTING flag is set (and I want to keep it always in TESTING on the devel branch, also my app root paths differ between production/staging server - as such I want to keep path separate in the files responsible for running the Cronjobs, which are still tracked for other changes....16:35
joeyDB_ left16:37
_ikke_ git doesn't support keeping changes only in certain branches16:37
BuenGenio well, many people will still find themselves facing similar requirements... just wondering which approaches everyone else is using..16:38
qsuscs well, you _can_ do an evil merge16:38
but it’s called evil for a reason16:38
BuenGenio what's an evil merge? :)16:38
_ikke_ merge that also introduces changes16:38
BuenGenio *excited*16:38
qsuscs don’t even think about it.16:38
it will burn all your kittens16:38
BuenGenio oohs, c'mon, now that you said it :))))16:38
my kitten actually deserves to be burnt16:38
_ikke_ It's called evil because no-one expects a merge to introduce new changes, and it can easily confuse people to where a change came from16:38
BuenGenio I've been putting it off for too long..16:39
ams__ joined16:39
_ikke_ BuenGenio: git merge -n, change somehting. git commit16:39
BuenGenio No one expects the Spanish inquisition!16:39
jottr left16:39
lys left16:39
_ikke_ But you'd have to do that for each merge you do into the other branches16:40
BuenGenio for reference currently I am the sole developer/tester/maintainer so the only person bound to be confused is myself16:40
doev left16:40
ktchup left16:41
_ikke_ BuenGenio: I'd still try to change your setup so that changing configs belong to untracked files. Then you could use post-commit hooks to change to the correct config16:41
doev joined16:41
BuenGenio ok, noted16:41
_ikke_ My position in this is that config doesn't belong with the source (at most, a template for the config)16:42
BuenGenio perhaps that /is/ the solution16:42
liamkeily joined16:42
cdown left16:42
qsuscs !config16:42
gitinfo [!configfiles] It is recommended to store local configuration data in a file which is not tracked by git, but certain deployment scenarios(such as Heroku) may require otherwise. See https://gist.github.com/1423106 for some ideas16:42
BuenGenio _ikke_, but what about cron scripts? basically I guess I'm just lazy to add a few conditions to my bash scripts to check whether i'm in staging or production, and use appropriate paths...16:42
zumba_addict joined16:42
cdown joined16:43
BuenGenio from what you're saying....16:43
felixjet_ left16:43
_ikke_ BuenGenio: can cron scripts source files?16:43
otter768 joined16:43
BuenGenio what do you mean?16:43
liamkeily left16:43
_ikke_ are those bash scripts?16:43
BuenGenio yes16:43
anli left16:43
felixjet_ joined16:43
ejb _ikke_: Thanks again. PR submitted, build passed. Winning.16:43
_ikke_ ejb: yw16:43
BuenGenio basically staging/production uses different paths16:43
qsuscs _ikke_: cron can run whatever you want, even a java program if you want16:43
cdown left16:43
_ikke_ qsuscs: I know16:44
anli joined16:44
specious left16:44
BuenGenio also database creds are different16:44
willharrison joined16:44
_ikke_ BuenGenio: Also don't belong in your repo16:44
BuenGenio but I still need to checkout the config file16:44
_ikke_ BuenGenio: If you published the repo to somewhere non-private, your database credentials would be public16:45
BuenGenio ok - so the actual question is like this - how do I keep track of the files I need for the app to function (config/cron/bash scripts, etc...) when I check it out on a new production env?16:45
_ikke_, yes - that's why I have a paid Github account ;)16:45
zumba_ad_ left16:45
_ikke_ My approach is this:16:46
I never store actual config values (like db credentials) in git16:46
and also, not the files themselfs (I track config.template.foo, not config.foo)16:46
BuenGenio ah16:47
nice one16:47
u1106 left16:47
warthog9 left16:47
BuenGenio i think that should do nicely16:47
_ikke_ the configuration files for each production env, are stored somewhere seperate from the deployed code16:47
u1106 joined16:47
otter768 left16:47
_ikke_ I then symlink them into the deployed code16:47
liamkeily joined16:48
cdown joined16:48
ktchup joined16:48
_ikke_ Each release is also put into a timestamped dir16:48
Yatekii left16:48
_ikke_ And then put in place also through a symlink16:49
chemist69 left16:49
warthog9 joined16:50
metastableB left16:52
JEEB joined16:52
stick-shift joined16:52
EminenceHC joined16:52
snearch joined16:53
Yatekii joined16:53
soreau left16:54
pheaver joined16:57
EminenceHC left16:57
snearch left16:58
_W_W_16:58
barduck left16:58
stick-shift left17:00
Dougie187 left17:01
stick-shift joined17:02
demifuror left17:02
lkgf left17:03
masclic joined17:04
melmouss joined17:04
cdown left17:05
two-gun left17:05
fioei joined17:05
[cust] joined17:05
FroMaster joined17:06
Zarthus left17:06
u1106 left17:07
u1106 joined17:08
Solid1 joined17:08
Zarthus joined17:08
soreau joined17:08
a_le_ left17:09
mtakkman joined17:10
cdown joined17:10
a_le joined17:11
alekks joined17:11
a_le left17:11
a_le joined17:12
a_le left17:12
shift8 left17:13
a_le joined17:13
rns2 left17:14
stick-shift left17:14
shinnya joined17:14
_Vi left17:14
a_le left17:14
a_le joined17:15
alekks left17:15
_Vi joined17:15
a_le left17:15
metastableB joined17:16
a_le joined17:16
ojacobson left17:16
snearch joined17:16
a_le left17:16
u1106 left17:16
u1106 joined17:17
a_le joined17:17
anli left17:19
CEnnis91 left17:20
Dragooon joined17:21
dreiss joined17:22
stamina joined17:24
NinjaStyle joined17:24
lindenle joined17:27
a_le left17:27
a_le joined17:28
giusef joined17:28
CheckDavid left17:28
cavallari left17:30
ejb left17:31
endiruna left17:31
lindenle left17:32
doev left17:32
a_le left17:32
joeyDB_ joined17:33
snearch left17:33
a_le joined17:33
cdown left17:34
zumba_addict left17:34
snearch joined17:34
zumba_addict joined17:34
u1106 left17:35
u1106 joined17:35
Zarthus left17:35
mtakkman left17:37
joeyDB_ left17:38
enitiz left17:38
Zarthus joined17:38
CKyle left17:41
mikecmpbll joined17:42
m0ltar joined17:42
checkit joined17:43
vmiklos left17:43
ojacobson joined17:43
jatt left17:43
jatt joined17:44
jatt left17:44
jatt joined17:44
enitiz joined17:44
vmiklos joined17:45
Sample joined17:45
ojacobson left17:48
checkit left17:49
Ragnar joined17:49
Goplat joined17:50
chemist69 joined17:51
smccarthy left17:51
endiruna joined17:52
masclic left17:53
checkit joined17:54
Ragnar Hey guys, every time I start a new terminal session I have to eval "$(ssh-agent -s)" & ssh-add ~/.ssh/mykey in order to use github. Is there some way to make sure the key is always added? The key requires a password.17:54
offby1 Ragnar: what operating system are you using?17:54
Ragnar offby1: I'm on Mac OSX17:54
offby1 Ragnar: it's supposed to work automagically on OS X. It does for me ... but I can't explain how :-|17:55
Ragnar offby1: It's not the default name id_rsa, which I think is why17:55
offby1 Ragnar: perhaps you've got something in your shell's init file (~/.bashrc , ~/.bash_profile, something like that) that is accidentally clobbering the SSH_AUTH_SOCK environment variable17:55
Joel_ joined17:56
Joel_Guest1151117:56
offby1 Ragnar: you could sidestep it by putting an entry in ~/.ssh/config that says, in effect, "yo ssh -- wheneever I connect to github, use ~/.ssh/mykey instead of ~/.ssh/whatever"17:56
Ragnar doesn't appear to be haha17:56
EminenceHC joined17:57
offby1 Ragnar: here's an example that does more or less that (for a different reason): https://gist.github.com/99871b7e81d6d560aa4017:57
enitiz left17:57
Reskp joined17:57
offby1 anyway, there should only be one ssh-agent process on your Mac, and you should be able to add a key to it in one window, and then later access that key from another window. If that's not working, something is terribly wrong17:58
joel_falcou left17:58
nour joined17:59
offby1 see also https://gist.github.com/offby1/248e47cd59f9a83e765c -- that strongly suggests that every new terminal session that I create will be able to access my ssh-agent, which OS X started for me when I logged in17:59
Ragnar thanks, I'll take a look18:00
endiruna left18:00
m0viefreak left18:01
CEnnis91 joined18:01
endiruna joined18:01
HoMM joined18:01
HoMM left18:01
HoMM joined18:01
HoMM left18:01
EminenceHC left18:01
HoMM joined18:01
HoMM left18:01
HoMM_ joined18:01
HoMM_ left18:01
Guest69863 joined18:02
Gamecubic left18:02
liamkeily left18:02
Guest11511 left18:03
AssassinsMod joined18:03
Ragnar offby1: I have a similar output for that command18:04
xxSnip3rsl4yerxx left18:04
offby1 that's good, I guess18:04
u1106 left18:04
AssassinsMod Hi, is there anybody who tried to set up a git server over smart http?18:04
u1106 joined18:04
offby1 maybe stop doing eval "$(ssh-agent -s)" ?18:04
Ragnar: yes, I think your problem is that you're starting a new ssh agent, and using _it_, rather than the one that OS X kindly created for you ... and presumably when that terminal goes away, so does the ssh agent that you started.18:06
So just do ssh-add ~/.ssh/mykey once, and I predict that key will be available to all your terminals from then until you log out18:06
(which nobody ever does, amirite?)18:06
sakujo joined18:07
Ragnar offby1: yep I think that did it18:07
offby1 ssh is awfully tricky18:07
Ragnar thanks for your help18:07
snearch left18:07
sakujo hey, i like my code in /usr/local/src and i like to avoid using root. So currently I always mkdir /usr/local/src/MYDIR and then chown MYUSER /usr/local/src/MYDIR into git clone ...18:08
offby1 man, I used to help people with exactly this kind of ssh question in #subversion, years ago when that was a thing -- it was tricky then, and it's tricky now18:08
sakujo is there a way this could be done simpler?18:08
rns2 joined18:08
offby1 sakujo: probably not, unless "just give up and be root" is an option18:08
btree joined18:09
sakujo hmm18:09
is there a reason not to be root?18:09
offby1 sakujo: I used to do that too, but now all my git stuff is under ~/git-repositories, and that works nicely18:09
sakujo you always read in the guides *only do the make install as root*18:09
offby1 sakujo: in theory, if you're root, you might make a mistake that deletes lots of important data. In practice, you are just as likely to hose that same data when logged in as yourself, so ... not really18:09
sakujo i suppose if the src is fake it could also do harm right?18:10
after all ./configure can have anything in it right?18:10
offby1 sakujo: running "make" is, in effect, running a program that you haven't studied, given to you by someone you don't know. So if you aren't comfortable running random programs downloaded from the internet as root, then you shouldn't be running "make" as root, either.18:10
sakujo yeah ill stick to my long way i suppose18:10
_ikke_ On the other hand, there is lots of code you don't know running as root18:11
offby1 correct, ./configure is a program that is (potentially) exactly as dangerous as the Makefile, or any other program18:11
_ikke_ sakujo: You know the install command?18:11
sakujo *the* install command?18:11
no i don't18:11
_ikke_ install -D -o $UID /usr/local/src/PROJECT18:11
Perhaps not much of an improvement, but it is one less command18:12
u1106 left18:12
sakujo that is awesome18:12
u1106 joined18:13
sakujo however are you certain you did not make a typo?18:13
_ikke_ s/-D/-d/18:13
sakujo either i am derping or it does not fit the synopsis18:13
_ikke_ sakujo: No, I'm not certain18:13
sakujo aye ill check myself then18:13
_ikke_ the capital D should be lower case18:13
install -d18:13
offby1 Only you can prevent derping18:13
sakujo yeah -D would require a source is uppose18:14
_ikke_ correct18:14
sakujo i am preparing for my QFT exam -.- it is like i am constantly stoned18:14
_ikke_ QFT?18:14
sakujo quantum field theory18:14
_ikke_ What I would've guessed18:15
sakujo if someone asks me a question right now i need literally 30-40 seconds to re-adjust my brains ;p18:15
offby1 Qualified Fitness Trainer18:15
_ikke_ Query File Table18:15
sakujo Wan-Tan Meal Theory18:15
MLM left18:17
metastableB left18:17
Solid1 left18:17
CKyle joined18:18
NinjaStyle left18:19
Reskp left18:20
snearch joined18:20
thiago joined18:21
CKyle left18:22
checkit left18:23
wcypierreme joined18:23
Dougie187 joined18:26
adamben left18:28
lindenle joined18:28
mueslo joined18:29
robbyoconnor joined18:30
liamkeily joined18:30
Yatekii left18:30
wcypierreme left18:30
Yatekii joined18:30
dreiss left18:31
metastableB joined18:31
coppro joined18:31
coppro hey all18:31
when using filters18:31
checkit joined18:31
wedgie_wedgie18:32
Nizumzen left18:32
chemist69 left18:32
syndarion joined18:32
offby1 awaits breathlessly18:32
offby1 hey all18:32
how old Cary Grant18:33
lindenle left18:33
offby1 "Old Cary Grant just fine"18:33
nemesis joined18:33
joeyDB_ joined18:34
Guin left18:34
Gizburdt joined18:34
APerson_ joined18:35
jontmorehouse joined18:35
Reskp joined18:36
nasso_ left18:37
syndarion Hi all! I’ve been using .git-prompt.sh for a while now, without any issues, but when I open a shell in emacs, I get bash: __git_ps1: command not found. This behaviour can also be reached when executing bash in a terminal window. Any ideas?18:37
nasso joined18:37
Sample left18:37
FreezingAlt joined18:38
UKn0Me left18:38
joeyDB_ left18:39
tgies left18:39
gooda left18:40
Yatekii left18:41
JagaJaga joined18:41
Yatekii joined18:41
tgies joined18:41
Sleepy63 left18:42
FreezingCold left18:42
Reskp_ joined18:43
u1106 left18:43
pandeiro left18:43
Reskp left18:43
rns2 left18:43
liamkeily left18:43
otter768 joined18:44
u1106 joined18:44
syndarion left18:44
jontmorehouse left18:44
joel_falcou joined18:45
joel_falcou left18:45
Domhack left18:46
melmouss left18:47
stamina left18:48
endiruna left18:48
otter768 left18:48
Vadimus joined18:49
polyzen joined18:49
pantsman- joined18:51
nemesis left18:51
rns2 joined18:51
metastableB left18:51
pdurbin joined18:51
robbyoconnor left18:52
pdurbin I'm curious what people think about this github oauth thing: http://irclog.perlgeek.de/linuxvillage/2015-02-14#i_1011610418:53
tristanp joined18:53
liamkeily joined18:54
liamkeily left18:54
liamkeily joined18:54
Eugene left18:55
Eugene joined18:55
checkit left18:55
rvsjoen_ joined18:55
adamben joined18:56
rvsjoen left18:56
robbyoconnor joined18:57
EminenceHC joined18:59
nnyk_ left18:59
nour_ joined18:59
shift8 joined19:00
adamben left19:00
Literphor joined19:00
u1106 left19:00
u1106 joined19:01
Changa joined19:01
ZujkisNx joined19:01
nour left19:02
Changa Hello, I am trying to push to origin from my local server to my vps but I am getting an error saying permission is denied to change "master.lock" file. I have searched a little bit and it was suggested to change the owner to the git user which does not exist on my server. What do I do?19:02
Vile left19:03
Sample joined19:03
EminenceHC left19:03
Dragooon left19:04
offby1 Changa: !transcript19:04
gitinfo Changa: Please paste (using https://gist.github.com/ or similar) a transcript ( https://gist.github.com/2415442 ) of your terminal session.19:04
pdurbin Changa: well, whatever user should own the files. It may not be called "git". Maybe it's your username.19:05
ColdKeyboard left19:05
Artpicre left19:06
Changa offby1, here it is https://gist.github.com/anonymous/0d401de8fb41eb71107719:06
pdurbin, current owner of the files is me19:07
bremner Changa: yes, but do you own the containing directories?19:08
offby1 Changa: right -- first figure out who should own that git repository. I'd guess it's "ediz". Then do "sudo chown -R ediz ."19:08
Jackneill joined19:08
offby1 bremner: yes, but Quis custodiet ipsos custodes?19:09
frain joined19:09
Dragooon joined19:09
frain Hi, I can't push to my repo for some reason.19:09
git add went ok, and git commit too19:09
Changa bremner, offby1 - https://gist.github.com/anonymous/eaa0aad6e0176fc00916 isn't it already mine? I'm doing chown anyway19:09
frain create mode 10064 for all files. Bt git push doesn't work :\19:09
No refs in common and none specified; doing nothing.19:10
Perhaps you should specify a branch such as 'master'.19:10
Everything up-to-date19:10
Changa still getting the same error.19:10
rayman22201 joined19:12
u1106 left19:12
Gizburdt left19:12
u1106 joined19:12
Guest86680 joined19:13
tmager joined19:13
PCatinean left19:14
rayman22201 left19:15
syndarion joined19:15
micechal joined19:15
micechal_ left19:17
checkit joined19:18
v0n left19:18
twoface88 joined19:19
ciampix joined19:19
frain Anyone?19:20
jab416171 left19:24
jab416171 joined19:24
bremner p19:25
oops.19:25
Sadeukko left19:25
qsuscs poops? bremner! watch your language!19:26
snearch left19:27
snearch joined19:27
randiman joined19:29
AssassinsMod left19:29
RaceCondition joined19:31
snowpeas left19:31
Steve_Jobs left19:31
Steve_Jobs joined19:33
basiclaser left19:34
joeyDB_ joined19:35
johnny2600 joined19:36
liamkeily left19:37
snearch left19:38
frainfreeze joined19:39
frainfreeze left19:39
frainfreeze joined19:39
joeyDB_ left19:39
qsuscs Seveas: another issue with git-spindle (though it might be a problem with the API), the repo seems to be moved: http://0bin.net/paste/U0NlQZupva0kPzHf#A8RocO8kOd1LocSa94WVBvG2x4LXUboBBS0h8W3GMTh19:40
_ikke_ frain: git doesn't know what you want to push, you have to tell it19:41
git push <remote> <branch>19:42
frain left19:42
_ikke_ if it's a branch you use more often, you want to add -u (--add-upstream): git push -u <remote> <branch>19:42
===+19:42
ah, just left / timed out :-/19:43
syndarion left19:43
_ikke_ frainfreeze: ^^19:43
johnny2600 left19:44
giusef left19:44
Dougie187 left19:44
ap0c joined19:44
frainfreeze Ok, I ll try19:44
v0n joined19:45
frainfreeze _ikke_, doesn't help19:45
But only difference to other repos is that this one contains only .dll that need to be pushed19:46
thiago committing a .dll? Are you sure?19:47
qsuscs !binary19:47
gitinfo Storing binary files in git causes repo balloon, because they do not compress/diff well. In other words, each time you change a file the repo will grow by the size of the file. See !annex for some solutions19:47
thiago usually you don't store products of compilation. Store, instead, the source code.19:47
qsuscs and, thumb rule, don’t commit generated data19:47
frainfreeze No way I can push those dll's ?19:48
thiago you can19:48
you shouldn't19:48
frainfreeze Those don't change.19:48
Ever.19:48
thiago same answer19:48
if you really want to, add the file, commit and push19:48
RaceCondition left19:49
tvw joined19:50
frainfreeze thiago, doesn't help :19:50
MasterPiece joined19:50
checkit left19:51
CLaxware_ left19:51
pdurbin left19:51
Solid1 joined19:52
scientes joined19:53
scientes left19:53
scientes joined19:53
rns2 left19:54
Seveas qsuscs: yeah, git-spindle isn't good at telling you 'repo doesn't exist, go away'.19:54
robbyoconnor left19:54
qsuscs Seveas: enter the according URL in your browser, it redirects you to the right repo—i just wonder whether API does so (can do so)19:55
liamkeily joined19:55
ktchup left19:55
ajustrun joined19:56
Guest86680 left19:56
skylite_ left19:56
Seveas looks like the api doesnt19:56
Artpicre joined19:56
_ikke_ frainfreeze: git status19:57
liamkeily left19:57
_ikke_ frainfreeze: and, you timed out earlier, not sure if you got all of my messages19:57
qsuscs !log19:58
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.html or since Jan 1, 2012: http://itvends.com/irc/git-all.html19:58
Seveas qsuscs: http://0bin.net/paste/CA7+qPn1j+OtVBTE#NE1rCRurL8bu9pA0UspYhu2l1oWPe3bkfqcg4gQBIyv19:58
frainfreeze _ikke_, if it is just a branch...19:58
# On branch master19:58
nothing to commit, working directory clean19:58
_ikke_ and git push -u origin master?19:59
frainfreeze nope.19:59
haptiK joined19:59
frainfreeze _ikke_, great!20:00
Works like charm. Thanks man20:00
_ikke_ frainfreeze: also, what does git config push.default return?20:00
frainfreeze nothing.20:00
checkit joined20:00
checkit left20:01
_ikke_ What version of git do you use?20:01
checkit joined20:01
frainfreeze 1.8.4.msysgit.020:01
_ikke_ right20:01
haptiK left20:01
lid_ joined20:01
_ikke_ it might make sense to set it to a value20:02
git config --global push.default current20:02
willharrison left20:02
arez left20:02
EminenceHC joined20:03
trewe joined20:03
Sasazuka joined20:03
frainfreeze Dunno what that does but thanks mate :)20:03
przemoc left20:03
mikeric joined20:04
qsuscs frainfreeze: git help config, search for push.default20:04
skylite joined20:04
troyt left20:04
Sasazuka left20:05
frainfreeze nice!20:05
MechtiIde joined20:05
_ikke_ wonders whether simple or current is a better default for push.default20:05
_ikke_ aparently, simple has been introduced in 1.8.0.220:06
1.8.2*20:06
liamkeily joined20:06
Noldorin left20:06
qsuscs _ikke_: nothing :>20:07
nnyk_ joined20:07
_ikke_ qsuscs: where is that an answer to?20:07
Vile joined20:07
lewellyn _ikke_: when you push, it answers that to some degree. ;)20:07
qsuscs _ikke_: default push.default20:07
TinkerTyper left20:07
EminenceHC left20:07
_ikke_ it has an implicit default value20:08
git config -l only returns explicitly set values20:08
TinkerTyper joined20:08
lewellyn oh. did it stop filling the screen with info, then?20:08
u1106 left20:09
_ikke_ lewellyn: pre 2.2, it defaulted to matching20:09
qsuscs pre 2.020:09
_ikke_ qsuscs: That was the plan20:09
u1106 joined20:09
lewellyn _ikke_: you were saying 1.8.220:09
_ikke_ lewellyn: That's where simple was introduced20:09
lewellyn yes.20:09
_ikke_ not made default20:09
lewellyn but you didn't say you were on a newer git.20:09
_ikke_ I wasn't implying20:10
I just wondered what a good default for new users was20:10
Arsonide joined20:10
_ikke_ because it's now set to simple, but I think current can be a good default too20:10
'current'20:10
lewellyn i think simple is a good default.20:10
it is least likely to violate the principle of least surprise.20:11
_ikke_ lewellyn: frainfreeze was surprised20:11
frainfreeze yep.20:11
jagob left20:12
przemoc joined20:12
_ikke_ Tell me if I'm wrong, but I think most new users think git push will push just the current branch you are on20:12
teran joined20:12
lewellyn _ikke_: the only time i can think of a new user being surprised is when pushing to a new remote. (i missed whatever surprised frainfreeze )20:12
lamppid left20:12
BuenGenio left20:12
lewellyn maybe current would be better, yes. but between matching and simple, i opt for simple.20:13
tg joined20:13
_ikke_ lewellyn: Now, for each branch, the user has to do at least once: git push -u <remote> <branch>20:13
lewellyn: Of course, but current was already available before simple20:13
lewellyn yes. and most hosted services tell you to do that.20:13
indeed. but it was never mentioned in the page-o-text you saw every push.20:13
_ikke_ the advise part20:13
?20:13
sakujo_ joined20:14
lewellyn it may be slightly surprising to people to see it come back with yet another option.20:14
yes.20:14
stick-shift joined20:14
_ikke_ Yeah, right now it makes no sense to change20:14
Just trying to find the reasoning (skimming the commit logs about it)20:14
troyt joined20:14
lewellyn i tried to find the reasoning way back when it was introduced. :P20:14
teran_ left20:15
_ikke_ hehe20:15
lewellyn i should see when current came about. that might solve my issues for "i have a shared git config and one of the git installs is too old for simple"20:15
caring about that has been low-priority. i can handle matching. :)20:15
mikeric left20:17
_ikke_ Hmm, aparently I'm missing what 'simple' means20:17
(the irony)20:17
sakujo left20:17
lewellyn simple works like upstream, but it refuses to push if the remote doesn't have a branch of the same name.20:17
oojacoboo joined20:18
_ikke_ lewellyn: Yeah, but I noticed a commit message that has more defaults20:18
details*20:18
lewellyn basically, it's like handing the noobs a gun with a safety so they don't screw up their remotes as easily.20:18
_ikke_ lewellyn: 3b8d2765c794ef1f1c7b39a90f72c4e61ce26fbd20:18
mikeric joined20:19
lid_lidaaa20:19
_ikke_ lewellyn: I get the idea behind it, but I'm more interested in the exact behaviour20:19
mikeric left20:19
qsuscs .search 3b8d2765c794ef1f1c7b39a90f72c4e61ce26fbd20:19
lieber joined20:19
_ikke_ https://github.com/git/git/commit/3b8d2765c794ef1f1c7b39a90f72c4e61ce26fbd20:19
lewellyn oh yay. github is killing my browser.20:19
_ikke_ sorry, meant to paste the url20:19
lewellyn i think that means it's time to leave the house.20:19
oojacoboo left20:19
gitinfo .search: nothing found.20:19
qsuscs hmm.20:19
_ikke_ lol20:19
qsuscs .search facebook20:20
gitinfo .search: nothing found.20:20
_ikke_ d'oh20:20
broken20:20
.search git20:20
gitinfo .search: nothing found.20:20
qsuscs jas… oh well.20:20
_ikke_ we can go home now20:20
git doesn't exist anymore aparently20:20
oojacoboo joined20:20
devll left20:20
lewellyn _ikke_: but yeah, the big difference between current and simple is whether it'll push to a new branch on the remote.20:20
(iirc, at least)20:21
liamkeily left20:21
_ikke_ ok20:21
irqq left20:21
MasterPiece left20:21
_ikke_ But comming back to switching to simple as default20:21
Sample left20:22
Noldorin joined20:22
_ikke_ Between the writing of the code to switch to simple, and it actually being merged, another commit came in that aparently broke that switch20:22
kadoban joined20:22
_ikke_ So effectively, simple is only the default as of v2.220:23
lewellyn that doesn't surprise me at all.20:23
u1106 left20:23
teran_ joined20:23
u1106 joined20:23
_ikke_ Does the term triangular workflow refer to something that happens a lot with github, you fetch from upstream, but push to your own fork?20:24
Acidnerd left20:24
ciampix left20:24
lewellyn i'm pretty sure that's what it means: one canonical upstream, but lots of people underneath swapping changes20:24
ciampix joined20:24
lewellyn the github "network" model20:25
teran left20:25
smccarthy joined20:25
CheckDavid joined20:25
qsuscs it’s not necessarily github, is it?20:26
doesn’t linux work similarly?20:26
lewellyn qsuscs: i merely identified one specific case, the one he asked about.20:27
_ikke_ And I just used it as a well-known example20:27
lewellyn but yeah. linux is also a single canonical upstream with a bunch of incestuous downstreams.20:27
sakujo_ left20:27
sakujo_ joined20:28
offby1 Changa: the files you displayed in your last paste are indeed all yours, but that's almost irrelevant, because you only showed a tiny fraction of the relevant files.20:28
lewellyn suspects "incestuous workflow" will never catch on20:28
qsuscs wtf :D20:28
offby1 Changa: show me a transcript of the command you ran to change the ownership; I suspect you did it wrong.20:28
TinkerTyper left20:28
Vadimus left20:29
offby1 lewellyn: depends -- is "workflow" hot?20:29
_ikke_ just found the post in the mailing list where the `simple` bug was discovered20:29
lewellyn be careful asking that. you might get a sjw attack and doxxing. ;)20:29
_ikke_ offby1: that's a late answer :P20:30
Nizumzen joined20:30
TinkerTyper joined20:30
offby1 _ikke_: sho' 'nuff. But I didn't see any solutions20:30
stick-shift left20:32
tg left20:32
tier joined20:32
ojacobson joined20:32
enitiz joined20:32
m8 left20:33
graSP joined20:35
tg joined20:35
barduck joined20:35
adamellsworth joined20:35
joeyDB_ joined20:35
dreiss joined20:35
adamellsworth left20:35
bramgg joined20:35
kadoban left20:36
adamellsworth joined20:37
barduck left20:38
barduck joined20:38
daito joined20:39
joeyDB_ left20:40
barduck left20:41
graSP left20:41
graSP joined20:41
barduck joined20:41
frainfreeze_ joined20:42
APerson_ left20:43
daito left20:43
scottschecter joined20:44
Polyatomic joined20:44
barduck left20:44
otter768 joined20:45
willharrison joined20:45
barduck joined20:45
jatt left20:45
wachterjohannes joined20:45
tg left20:45
Takle left20:45
frainfreeze left20:45
daynaskully {Q} If i'm currently on master that has a commit history; and I want to start a new branch (clean with no files, no commits) -- what do i do?20:46
wachterjohannes left20:47
Etheco- joined20:47
tg joined20:47
thiago start a new repository20:47
_ikke_ daynaskully: git checkout --orphan <branchname>20:47
barduck left20:48
_ikke_ then rm all files20:48
!orphan20:48
gitinfo 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.20:48
barduck joined20:48
Jackneill left20:49
jatt joined20:49
jatt left20:49
jatt joined20:49
daynaskully is it possible to then merge into master (keeping existing histroy?) reason being i want to basicaly rewrite the whole thing and if its all good merge to master (but need the ability to checkout the previous "stable" if that makes sense)20:49
otter768 left20:49
CEnnis91 left20:50
Lyqyd joined20:50
thiago yes20:50
ojacobson left20:50
Etheco left20:50
thiago but you're really discussing starting a new repository20:50
lieber left20:51
u1106 left20:51
barduck left20:51
u1106 joined20:52
smithd_ left20:52
Kartagis left20:52
wachterjohannes joined20:52
Amandil left20:53
tg left20:53
checkit left20:53
Amandil joined20:53
snearch joined20:57
pacon joined20:57
Kartagis joined20:58
xolubi joined20:58
graSP left20:58
MechtiIde left20:58
u1106 left20:58
frainfreeze_ _ikke_, thanks again. Have a nice day mate :)21:00
You rock.21:01
frainfreeze_ left21:01
_ikke_ contemplates rockness21:01
u1106 joined21:02
troyt left21:03
offby1 daynaskully: I agree with thiago: starting a new repository will be easier21:04
daynaskully yea but it's just a rewrite of the same project, so having 2 repos seems a bit overkill21:04
tmager left21:05
robbyoconnor joined21:05
troyt joined21:06
nour_ left21:06
_ikke_ repos are cheap21:07
u1106 left21:07
u1106 joined21:08
Literphor left21:08
ghormoon joined21:08
tg joined21:09
_Atom_ left21:10
graSP joined21:10
_Atom_ joined21:10
wachterjohannes left21:12
arez joined21:12
ev_ left21:12
petersr left21:14
Sieigeie joined21:14
u1106 left21:15
_Atom_ left21:15
u1106 joined21:15
tg left21:15
graSP left21:16
natu joined21:16
graSP joined21:17
chemist69 joined21:17
scientes left21:19
tristanp left21:19
duderonomy joined21:21
twoface88 left21:22
rubyonrailed joined21:22
qsuscs the overhead in contrast to an orphan branch will be … 1KiB?21:22
graSP left21:23
pandeiro joined21:24
Guest3574 joined21:25
RDove joined21:26
RDove left21:26
RDove joined21:26
hardenedapple left21:26
mchvs joined21:27
Nizumzen left21:30
fioei left21:31
ZujkisNx left21:32
Iionu joined21:34
r0bby_ joined21:34
robbyoconnor left21:35
Iionu left21:35
JagaJaga left21:35
CEnnis91 joined21:35
ZujkisNx joined21:36
adamben joined21:36
adamben left21:36
adamben joined21:36
jatt left21:36
Kwoc joined21:36
joeyDB_ joined21:36
ajustrun left21:36
jatt joined21:37
jatt left21:37
jatt joined21:37
u1106 left21:37
u1106 joined21:38
Kwoc left21:38
Seveas new command: git orphanage -- merge all orphan branches into HEAD21:39
ocyn joined21:39
qsuscs i just have to think of the orphanage of turanga leela21:39
RDove left21:39
offby1 -- put photos of all orphan branches on Instagram; beg for money21:40
Seveas that would be git unicef21:40
joeyDB_ left21:41
RDove joined21:42
RDove left21:42
RDove joined21:42
Consuela joined21:42
mueslo left21:43
dreiss left21:43
dprophit left21:43
cdown joined21:44
linuxmint joined21:47
natu left21:49
dsdeiz left21:50
rubyonrailed left21:53
graSP joined21:55
Sample joined21:55
r0bby_ left21:56
cdown left21:58
graSP left21:58
lqi joined21:59
psoo joined22:00
Lancien joined22:00
michaelrice joined22:00
r0bby_ joined22:02
scientes joined22:03
scientes left22:03
scientes joined22:03
scientes left22:03
scientes joined22:04
Quevin_ joined22:04
Quevin_ left22:04
cagedwisdom joined22:04
freestyl3r left22:05
tmager joined22:05
FreezingAltFreezingCold22:06
tvw left22:08
snearch left22:09
scientes left22:09
Sadeukko joined22:10
kyledr_ left22:10
rubyonrailed joined22:11
jstimm left22:11
u1106 left22:11
u1106 joined22:11
nfk joined22:11
EminenceHC joined22:12
psoo left22:12
tg joined22:12
ocyn left22:13
Entomo left22:14
pantsman- left22:14
Ojna joined22:14
graSP joined22:15
Niudo joined22:16
EminenceHC left22:16
boblehest joined22:17
toothrot left22:17
kyb3r_ joined22:18
Arsonide Buddy of mine merged a branch, committed, and pushed, and now has realized that it isn't compiling. Is there some way to undo that merge entirely?22:19
Ojna left22:19
FreezingAlt joined22:19
graSP left22:19
Arsonide Without the push I know it's a simple reset.22:19
tmager left22:20
_ikke_ with the merge it's also a simple reset, but it means you have to force push to propagate it, with all consequences22:21
FreezingCold left22:22
dreiss joined22:23
twisted` left22:23
toothrot joined22:24
tfnico left22:24
bret left22:24
CEnnis91 left22:24
tier left22:24
teadrop__ left22:24
rakm left22:25
Entomo joined22:25
mehdi left22:26
OliverJAsh left22:26
mjbrender left22:27
kirjs______ left22:27
lqi left22:27
jmfcool____ left22:27
mattl left22:28
s8321414 joined22:28
u1106 left22:29
Reskp_ left22:29
u1106 joined22:29
qsuscs can you git revert a merge commit?22:29
Bombe What happened when you tried?22:30
coppro left22:30
_ikke_ qsuscs: You can, but you have to specify the 'mainline'22:31
Niudo left22:31
_ikke_ which in most cases is 122:31
randiman left22:31
rubyonrailed left22:31
jadne left22:31
cagedwisdom left22:31
Guest3574 left22:32
hiepb joined22:32
FreezingAlt left22:32
s8321414 left22:33
cagedwisdom joined22:33
graSP joined22:33
MLM joined22:34
hiepb left22:35
OliverJAsh joined22:36
yqqd joined22:36
CEnnis91 joined22:37
mjbrender joined22:37
joeyDB_ joined22:37
jadne joined22:37
teadrop__ joined22:37
rubyonrailed joined22:37
jmfcool____ joined22:38
Sieigeie left22:39
Solid1 left22:39
twisted` joined22:40
graSP left22:40
mattl joined22:40
rendar left22:40
yqqd left22:40
graSP joined22:40
FreezingCold joined22:41
rakm joined22:41
mehdi joined22:41
joeyDB_ left22:42
jadne left22:42
cagedwisdom left22:42
WaReZ left22:43
graSP_ joined22:43
kirjs______ joined22:44
jstimm joined22:45
otter768 joined22:46
BuenGenio joined22:46
bret joined22:46
graSP left22:47
APerson_ joined22:47
King_Hual left22:48
brandonw left22:49
rubyonrailed left22:49
tfnico joined22:50
otter768 left22:50
zumba_addict left22:53
zumba_ad_ joined22:53
lid_ joined22:53
mcrutchfield joined22:53
rubyonrailed joined22:56
graSP_ left22:56
Takle joined22:56
TheNet joined22:56
lidaaa left22:57
SirRetnuh joined22:57
smccarthy left22:57
adamben left22:58
m0viefreak joined22:59
u1106 left22:59
mcrutchfield left22:59
u1106 joined22:59
graSP joined23:00
rubyonrailed left23:00
willharrison left23:01
De|ta Can you not just branch from master, fix it, and then merge that fix in?23:02
Dorf joined23:02
De|ta or, branch from master, revert the merge commit, merge that branch back in23:03
stick-shift joined23:03
devoldmx joined23:03
graSP left23:05
jatt left23:06
ejb joined23:06
ejb _ikke_: ping23:06
_ikke_ pong23:07
metastableB joined23:07
lindenle joined23:07
nemesis joined23:07
daedeloth left23:09
daedeloth joined23:10
zumba_ad_ left23:10
ejb _ikke_: Remember how I squashed and rebased that patch earlier?23:10
zumba_addict joined23:10
_ikke_ yeah23:11
jatt joined23:11
lindenle left23:11
jatt left23:12
jatt joined23:12
ejb _ikke_: well, turns out that origin/master is their unstable branch. So in order to have stable code with that patch included, I need to roll back master to a release tag.23:12
_ikke_: But I've submitted that PR so I need to make sure that I don't screw that up in the process.23:12
_ikke_ right23:12
so just rebase that patch onto the relase tag, and then force push to your branch23:13
stick-shift left23:13
ejb I can give the branch a new name with push -f?23:13
_ikke_ ejb: if you give it a new name, you don't need -f23:14
rns2 joined23:14
ejb _ikke_: Ok, because the PR should be rebased onto origin/master (like it is) but I need another version rebased to stable.23:14
m0ltar left23:15
_ikke_ ok, then create a new branch on the stable release, and cherry-pick the patch onto it23:15
linuxchiq joined23:15
watabou joined23:16
str joined23:16
thedodd joined23:17
EminenceHC joined23:18
daedeloth left23:18
AAoK left23:18
hebz0rl joined23:19
Zoddo left23:19
bollullera joined23:20
u1106 left23:21
dm7freek_ joined23:21
u1106 joined23:21
Gizburdt joined23:22
EminenceHC left23:22
cagedwisdom joined23:22
dm7freek left23:24
Gama11 left23:27
cceleri left23:27
Gizburdt left23:27
Sample left23:27
cceleri joined23:27
Gizburdt joined23:28
Takle left23:29
APerson_ left23:29
Gizburdt left23:30
SirRetnuh left23:31
The_Phoenix left23:32
jadne joined23:32
Gizburdt joined23:33
Gizburdt left23:34
robbyoconnor joined23:35
r0bby_ left23:36
TheNet left23:37
plumzl joined23:37
TheNet joined23:37
haptiK joined23:37
joeyDB_ joined23:38
haptiK left23:39
Samual_Samual23:39
Gizburdt joined23:40
sorenb left23:41
cagedwisdom left23:41
teran_ left23:42
joeyDB_ left23:42
PeterBooker left23:42
ciampix left23:44
anli joined23:45
zumba_addict left23:46
sorenb joined23:46
zumba_addict joined23:46
jeffmjack joined23:48
Dorf left23:48
Sample joined23:49
ashnur left23:51
shawndumas joined23:51
robbyoconnor left23:53
zacts left23:53
OnkelTem joined23:54
gitinfo set mode: +v23:54
OnkelTem Hi. How to call git format-patch to cook a patch for the previous commit?23:55
smithd joined23:55
OnkelTem i.e. calling with -1 makes patch from the last commit. With -2 - from two last commits. But I need the previous only :)23:55
_ikke_ OnkelTem: git format-patch -1 HEAD^23:56
OnkelTem with ^?23:56
_ikke_ yes23:56
or ~23:56
HEAD~ or HEAD~123:56
MattMaker joined23:57
OnkelTem ** that feeling when you see a program which utilizes pseudographics23:57
_ikke_: thanks!23:57
zhangyh26258 joined23:57
snearch joined23:58
robbyoconnor joined23:58
kingbeowolf joined23:58
_ikke_ see also man gitrevisions23:58
gitinfo the gitrevisions manpage is available at http://jk.gs/gitrevisions.html23:58
cagedwisdom joined23:58
_ikke_ it explains what it all means23:58
kingbeowolf hi I want to put any changes made to a branch into master23:58
should i just do git merge mybranch?23:58
never merged changes before23:58
will it screw anything up23:59
_ikke_ kingbeowolf: Yes, just merge it23:59
kingbeowolf: It might give merge conflicts23:59
Amandil left23:59
kingbeowolf what do i do if that happens?23:59
_ikke_ kingbeowolf: But those happen, just solve them when they happen23:59
!eek23:59
gitinfo [!eekaconflict] Merge conflicts are a natural part of collaboration. When facing one, *don't panic*. Read "How to resolve conflicts" in man git-merge and http://git-scm.com/book/ch3-2.html#Basic-Merge-Conflicts then carefully go through the conflicts. Picking one side verbatim is not always the right choice! A nice video explaining merge conflicts: https://www.youtube.com/watch?v=zz7NuSCH6II23:59

Logs Search ←Prev date Next date→ Channels Documentation