IRCloggy #git 2015-02-13

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-13

Literphor left00:00
kaiten02 joined00:02
u1106 left00:02
u1106 joined00:02
hexagoxel_ joined00:02
Dragooon joined00:02
Spacew00t left00:03
mizu_no_oto joined00:04
zumba_addict left00:04
CustosL1men left00:04
kadoban joined00:05
joki joined00:05
hexagoxel left00:06
jagob joined00:06
Steve_Jobs we have submodule tree00:06
we would like to use our mirror repos instead of github in CI00:06
tier left00:07
Steve_Jobs so recursively, it will by default hit github in the submodules00:08
mizu_no_oto left00:08
iuc left00:08
PeterBooker left00:08
Dentych joined00:08
Sasazuka left00:09
daedeloth left00:10
nnyk left00:10
baweaver left00:10
Sasazuka joined00:10
amcgee7 left00:10
mizu_no_oto joined00:11
netcarver left00:12
joeyDB_ joined00:12
Dragooon left00:13
AciD` joined00:14
mmoretti left00:15
tohuw left00:15
Literphor joined00:15
AciD` hi, let's say I commited C1, and did some work on my files. Now, I forgot to create a branch before doing this work, how can I create a new branch and commit my current files to it ?00:15
ErKa joined00:15
kadoban left00:15
zarubin left00:17
Dragooon joined00:18
SirRetnuh joined00:18
Literphor left00:19
DolphinDream joined00:20
Aleeious left00:20
ev_ joined00:20
multi_io_ joined00:21
joeyDB_ left00:21
CustosLimen left00:22
highcup joined00:22
zarubin joined00:23
zarubin left00:23
Brain left00:23
bote left00:23
rns2 joined00:24
fytoy joined00:24
multi_io left00:24
CustosLimen joined00:24
fytoy left00:24
baweaver joined00:24
Udut joined00:25
Ragnarragnardubya00:25
cdown joined00:26
Bleakwise so erm, how does ssh/git work on windows?00:26
does git automatically look in /user/username/.ssh? or do i need to have puttygen pageant open?00:27
ragnardubyaRagnar00:27
highcup left00:27
Bleakwise or do i need to load my ssh keys into git somehow? strangly the process is undocumented00:27
Zupoman left00:29
cagedwisdom left00:29
Udut left00:29
Steve_Jobs AciD`: git branch some-name00:30
Bleakwise: msysgit00:30
it will use your .ssh files00:30
tarwich left00:31
SirRetnuh left00:32
Zamyatin left00:33
jonmorehouse left00:33
dodobrain Bleakwise, https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git could help you (i guess)00:34
lys1 joined00:35
otter768 joined00:36
lys left00:36
HelloShittyHelloEngine00:37
zumba_addict joined00:37
SirRetnuh joined00:37
kukks joined00:39
kukks left00:39
kukks joined00:39
liamkeily left00:39
m0viefreak left00:39
pm90_ left00:40
Milo- joined00:41
otter768 left00:41
Jupelius joined00:41
dougsland left00:42
lys1 left00:42
th3fallen left00:45
cagedwisdom joined00:45
kaiten02 left00:46
m0viefreak joined00:47
jrahmy joined00:47
akiva left00:48
dm7freek joined00:48
Sasazuka left00:49
nfk left00:49
Sasazuka joined00:49
FunkyELF joined00:50
mroach joined00:50
DolphinDream left00:50
zumba_addict left00:51
zumba_addict joined00:51
jonmorehouse joined00:51
FunkyELF if I have a tree object in my git repo is there a way to "check it out" onto my disk somewhere? I think git checkout requires a commit object, not a tree00:52
AciD` thanks00:52
apurcell joined00:52
dm7freek left00:53
russt joined00:53
tristanp joined00:53
zarubin joined00:53
m0ltar left00:55
WaReZ left00:55
githogori joined00:55
jagob left00:55
iron_houzi joined00:56
Kicer86 left00:56
u1106 left00:56
apurcell left00:57
u1106 joined00:57
harish left00:57
iron_houzi Can someone please help me recover some lost data? I had two feature branches that I merged to master? I have searched through all dangling blobs/commits from fsck --lost-found, but I never found the lost data. What are my options now?00:58
tristanp left00:58
zarubin left00:58
FunkyELF iron_houzi: you think the commit objects are still in the database?00:59
imachuchu left00:59
hexagoxel__ joined01:00
DolphinDream joined01:00
fstd_ joined01:00
baweaver left01:00
fstd left01:00
gargola left01:00
fstd_fstd01:01
Sasazuka left01:01
Bootinbull left01:01
iron_houzi FunkyELF: I'm not sure. What I do know is that I made the merge just hours ago and the work I lost was done on Tuesday. I also know that I've never run `git gc`01:01
Bleakwise so erm, https://github.com/Bleakwise/MyProject doesn't work01:02
"error: src refspec master does not match any"01:02
jonmorehouse left01:02
Bleakwise evidently origin master does not exist01:02
so github is lying about what repo it created01:03
hexagoxel_ left01:03
FunkyELF iron_houzi: do this in your repo directory ... "du -hs .git"01:03
byaruhaf left01:03
dodobrain Bleakwise, you tried to push yes?01:03
Bleakwise yes01:03
BSaboia joined01:04
Bleakwise git push [email@hidden.address] master01:04
and [email@hidden.address] origin master01:04
dodobrain add -u01:04
also why do you need the full url?01:04
Bleakwise yes i tried that too01:04
dodobrain didn't you clone from github?01:04
iron_houzi FunkyELF: 2.1M .git01:04
Bleakwise no, i'm trying to upsh a local repo01:05
it was working fine yesterday01:05
git remote add origin [email@hidden.address]01:05
git push -u origin master01:05
FunkyELF iron_houzi: what kind of code is this?... are you okay putting that file up somewhere?01:05
iron_houzi FunkyELF: I am under strict regulation from my Uni to not share this with anybody outside the course. Unfortunately.01:07
FunkyELF: If my memory serves me correctly, I believe the work I lost was never commited before the merge. Is it possible to recover this if it was never commited?01:07
FunkyELF iron_houzi: you could try writing a script that goes through all your git commit objects in the database and sorts them by date or something01:08
Bleakwise mmm i think something was messed up on my local repo01:08
FunkyELF iron_houzi: if it was never commited then probably not... you'd be at the mercy of the underlying filesystem01:08
Bleakwise tinkered with it and it pushes now01:08
mellernoia left01:08
Bleakwise git init -- not enough to push, needs commit first?01:09
iron_houzi FunkyELF: I thought git would stop me from merging if I had uncommited work.. it does that when I try to change brances at least..01:09
dodobrain Bleakwise, lets try this: (1) mkdir /tmp/dodo; cd /tmp/dodo; git init; echo "dummy" > dummy.txt; git add dummy.txt; git commit -a -m "added dummy" (2) create new repo on github called "mynewrepo" (3) cd /tmp/dodo; git remote add origin [email@hidden.address] git push -u origin master01:09
hmsimha left01:09
dodobrain Bleakwise, well duh! if you don;t have anything commited, theres nothing to push!01:09
Bleakwise xD01:09
cdown left01:09
FunkyELF iron_houzi: you're right... it probably should have stopped you from merging. Maybe you did something to get the merge to go through01:10
baweaver joined01:10
iron_houzi I'll check my history..01:10
FunkyELF iron_houzi: run "history | grep git" to see what you did. Maybe you can find that merge command you ran and see what preceeds it01:10
u1106 left01:10
u1106 joined01:10
ignas joined01:11
Takle left01:11
stantonk left01:11
weiyang joined01:11
shpoont left01:11
mizu_no_oto left01:11
iron_houzi FunkyELF: Plain merge commands..01:11
Takle joined01:11
iron_houzi No forcing of any kind or any other flags of any sort01:11
EminenceHC left01:12
FunkyELF iron_houzi: any "checkout commands" before it? you can lose you work when you run checkout01:12
... like when you run "git checkout ."01:12
Noldorin left01:13
johntramp left01:14
johntramp joined01:14
iron_houzi FunkyELF: Wait you're right. I had checked out of that branch two days ago to work on another branch, so I couldn't have lost anything .. hmm this is strange.01:14
FunkyELF iron_houzi: you ever use gitk?01:15
mabe run "gitk --all"01:15
andi4 left01:15
iron_houzi FunkyELF: No, is that the gui?01:15
Steve_Jobs you can use git log --all --graph --decorate instead01:15
Takle left01:16
Steve_Jobs ... stay on the command line01:16
Milo- left01:16
FunkyELF Steve_Jobs: nice... thanks01:16
hyperair joined01:17
joeyDB_ joined01:17
FunkyELF Steve_Jobs: isn't there a curses based one too similar to gitk?01:17
tig or something?01:17
Steve_Jobs tig01:17
but try to stick to just git01:17
FunkyELF Steve_Jobs: worth learning?01:17
Steve_Jobs not for me01:18
iron_houzi FunkyELF: Thank you so much for your kind help. So nice of you to take your time to help me out.01:18
FunkyELF iron_houzi: no problem... I don't even know Git that well ;-)01:18
HelloEngine left01:18
devoldmx left01:18
Entomo joined01:19
foist left01:19
kaiten02 joined01:21
diegoaguilar joined01:21
joeyDB_ left01:21
wodim left01:24
HackeMate left01:24
King_Hual` left01:24
Guin joined01:26
Milo- joined01:27
leolrrj left01:28
mizu_no_oto joined01:28
nickSwe joined01:28
wodim joined01:29
jonmorehouse joined01:29
isifreek joined01:29
zumba_addict left01:30
mikecmpbll left01:31
isifreek I have a repo (foo) with clones on remote1 and remote2. How to I get a local checkout where "master" tracks remote1/master and "bar" tracks remote2/master?01:31
t-mart__ left01:31
baweaver left01:32
eletuchy joined01:32
baweaver joined01:32
ska-fan left01:34
baweaver left01:34
BSaboia left01:35
mkoskar joined01:36
seg left01:36
eletuchy left01:37
paolooo joined01:37
daito_ joined01:38
paolooo hi guys, is it possible in git to delete certain commit? Example, (develop branch) ----> *(commit #1) -----> *(commit #2) ------> *(commit #3)01:39
Vgr paolooo: do you want to !rewrite history?01:39
gitinfo paolooo: Rewriting public history is not recommended. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum01:39
SirRetnuh left01:39
paolooo then, i'll delete commit#2 and it will automatically be wired to #3... Now commit will look like this (develop branch) ----> *(commit #1) ------------------> *(commit #3)01:40
devoldmx joined01:40
paolooo Vgr: yes01:40
seg joined01:40
FreezingCold left01:40
dodobrain paolooo, has this branch been published?01:40
Vgr paolooo: you probably want to look into the man git-rebase page01:40
gitinfo paolooo: the git-rebase manpage is available at http://jk.gs/git-rebase.html01:40
paolooo ah yeah! :(01:40
i'm sorry dodobrain but what do you mean by published?01:41
SirRetnuh joined01:41
dodobrain have you pushed this branch elsewhere already?01:41
or is it sitting only in your repo on your local machine?01:42
Vgr (note that, while I suggested that, this may not be the best for what you're looking - however if you're merging two development histories together that'd be a good idea)01:42
paolooo no, I haven't yet.01:42
I want to delete commit #2 so that I can merge it to the master01:42
dodobrain you can git rebase -i, then change that commit to 'drop' iirc01:42
paolooo commit #2 is actually comes from a featureA branch01:42
featureA is not yet finish... that's why I want to delete it so that I can merge it to the master.01:43
dangayle left01:43
paolooo *merge develop to master01:44
rns2 left01:44
paolooo git rebase -i .. hmmm... Thanks dodobrain. I'll for docs of it.01:45
xnox joined01:45
LucasTT_ left01:45
paolooo currently, looking at https://www.atlassian.com/git/tutorials/merging-vs-rebasing :)01:47
Lyqyd joined01:48
m0ltar joined01:48
jonmorehouse left01:49
echo-area joined01:49
baweaver joined01:50
zivester joined01:51
Noldorin joined01:53
\sky left01:54
i_ron left01:54
russt left01:54
ws2k3_ left01:54
Zamyatin joined01:54
endiruna1 joined01:54
isifreek what does git pull do if no remote or branch is specified?01:54
FabTG left01:54
tyreld_ left01:55
rns2 joined01:55
baweaver left01:55
jonmorehouse joined01:55
EminenceHC joined01:57
endiruna left01:57
kukks left01:57
robustus left01:58
majuscule depends on your git version and config01:59
hexagoxel__ left01:59
isifreek 1.9, brand new branch never pulled or pushed01:59
ulkesh left02:00
jave left02:00
isifreek brand new remote2 (local is a clone of remote1)02:00
jeffmjack joined02:00
jadne left02:00
robustus joined02:01
ulkesh joined02:01
ajustrun joined02:02
devoldmx left02:02
EminenceHC left02:02
endiruna1 left02:02
paolooo left02:02
boombatower left02:02
devoldmx joined02:02
jerematic joined02:02
jave joined02:03
jadne joined02:03
baweaver joined02:05
fairuz joined02:05
nb_bez___ joined02:06
leolrrj joined02:06
uri joined02:07
xaa left02:07
uri left02:08
leolrrj left02:09
d10n-work left02:09
arbin_cn joined02:10
harish joined02:10
arbin_cn left02:10
arbin_cn joined02:11
arbin_cn left02:11
a_le left02:11
arbin_cn joined02:12
a_le joined02:12
shpoont joined02:12
smccarthy joined02:12
arbin_cn left02:12
arbin_cn joined02:13
denete joined02:13
arbin_cn left02:13
jgardella joined02:13
arbin_cn joined02:14
arbin_cn left02:14
FunkyELF if I have a git commit object sha1 how can I list the corresponding tree?02:14
elbeardmorez left02:14
arbin_cn joined02:14
rns2 left02:15
arbin_cn left02:15
otter768 joined02:15
joelm left02:15
arbin_cn joined02:15
arbin_cn left02:16
bremner git cat-file -p ?02:16
arbin_cn joined02:16
zumba_addict joined02:16
arbin_cn left02:17
baweaver left02:17
shpoont left02:17
arbin_cn joined02:17
arbin_cn left02:18
joeyDB_ joined02:18
zumba_addict left02:18
arbin_cn joined02:18
arbin_cn left02:18
arbin_cn joined02:19
arbin_cn left02:19
kpease left02:20
arbin_cn joined02:20
duderonomy left02:20
arbin_cn left02:21
joelm joined02:21
AndroidLoverInSF left02:21
arbin_cn joined02:21
mezod left02:21
arbin_cn left02:21
zumba_addict joined02:21
arbin_cn joined02:22
duderonomy joined02:22
stantonk joined02:22
arbin_cn left02:22
joeyDB_ left02:22
pks left02:22
arbin_cn joined02:23
arbin_cn left02:23
arbin_cn joined02:24
githogori left02:24
arbin_cn left02:24
Dougie187 joined02:24
netameta joined02:24
arbin_cn joined02:24
duderonomy left02:24
bitkiller left02:24
pks joined02:25
arbin_cn left02:25
arbin_cn joined02:25
arbin_cn left02:25
mmitchell left02:26
otter768 left02:26
isifreek left02:26
arbin_cn joined02:26
githogori joined02:26
netameta_ left02:26
arbin_cn left02:26
arbin_cn joined02:27
jackspar_ left02:27
arbin_cn left02:27
arbin_cn joined02:28
arbin_cn left02:28
arbin_cn joined02:28
stantonk left02:29
wmoran left02:29
willharrison joined02:30
Goplat joined02:30
u1106 left02:30
u1106 joined02:31
ajustrun left02:32
DolphinDream left02:32
baweaver joined02:34
shinnya left02:34
eletuchy joined02:34
haptiK left02:35
BuenGenio left02:36
dm7freek joined02:37
Vampire0_ joined02:39
s8321414 joined02:40
apurcell joined02:41
ashnur joined02:41
dm7freek left02:42
DolphinDream joined02:42
Vampire0 left02:42
saurik left02:43
russt joined02:44
baweaver left02:44
apurcell left02:45
UKn0Me joined02:48
ajustrun joined02:50
JDHawke left02:50
Jordan_U I'm trying to use git rebase -i for the purposes of rewriting history, i.e. I'm not trying to rebase off of a new branch with different changes. I'm using "git rebase -i HEAD~8" but even just "git rebase HEAD~8" fails with the following output: http://paste.debian.net/hidden/ccf12274/ . I'm clearly misunderstanding how git rebase works as I thought that "git rebase HEAD~8", without the -i, would simply replay the last 8 ...02:51
... commits exactly as they are, and thus would be essentially a no-op. What is actually going on here, and what command should I be using to edit some of the recent commits I've made?02:51
GT4066 joined02:51
sammy joined02:53
sammyGuest4846102:53
saurik joined02:54
pm90_ joined02:55
diegoaguilar left02:56
zarubin joined02:57
adamben left02:58
runev joined02:58
pantsman- joined03:00
whitby left03:01
EminenceHC joined03:02
zarubin left03:02
hmsimha joined03:03
Noldorin left03:04
EminenceHC left03:06
IIT joined03:06
clarkpan_ left03:07
IIT left03:07
IIT joined03:08
uhhimhere joined03:09
jonmorehouse left03:09
highcup joined03:12
binn_cn joined03:12
binn_cn left03:13
MattMaker left03:13
runev left03:13
binn_cn joined03:13
clarkpan joined03:14
pantsman- left03:15
Milkweed left03:15
arbin_cn left03:15
denete left03:16
devoldmx left03:16
hmsimha left03:16
highcup left03:16
jerematic left03:17
johnny2600 joined03:17
devoldmx joined03:17
adamellsworth left03:19
joeyDB_ joined03:19
johnny2600 left03:19
darkbasic left03:19
ojacobson left03:19
thiago joined03:20
pasky_ left03:20
pasky joined03:20
darkbasic joined03:20
mizu_no_oto left03:24
gsingh93 left03:25
ojacobson joined03:25
Gamecubic_ joined03:26
devoldmx left03:26
joeyDB_ left03:26
marienz left03:26
mnass left03:26
devoldmx joined03:27
rchavik joined03:29
Gamecubic left03:29
zumba_ad_ joined03:29
zacts left03:31
TDJACR left03:32
jonmorehouse joined03:32
cbonobo joined03:32
shauna joined03:33
mtscout6 joined03:33
zumba_addict left03:33
hmsimha joined03:34
hurley joined03:34
bnb joined03:35
bnb Hey there. Could someone help me with Git?03:35
HedgeMage bnb: That's why we're here, but we can't help you if you keep being vague.03:36
bnb HedgeMage: Just wanted to make sure someone was on the other end.03:36
Okay, I made a real mess of my repo.03:37
HedgeMage bnb: On IRC, the most-polite behavior is to show up and ask a specific question, NOT ask what the channel is for, if anyone is listening, etc. It may seem a little weird if you're new, but those things are actually kind of rude in irc-land because they make people give you responses before they know if they have anything for you.03:37
Hello71 !help03:37
gitinfo What do you need help with? Something with git? Tell us what's going on, and please be specific. For information on how to abuse me (I'm a bot!), see http://jk.gs/git/bot . Please be gentle.03:37
bnb Here's my repo: https://github.com/bnb/website How can I remove all the commits by myself except the most recent one?03:37
IIT left03:39
HedgeMage bnb: all the commits except the most recent one, or surgically select and excise commits BY YOU, leaving others behind?03:40
bnb Surgically.03:40
APerson_ joined03:41
bnb Oh, and it's on the build/content-update branch03:41
fragamus left03:42
linuxmint joined03:42
APerson_ left03:42
c74d3 left03:43
CKyle joined03:43
mnass joined03:44
bnb left03:44
TDJACR joined03:44
c74d joined03:45
bnb joined03:45
jgardella left03:45
bnb Sorry, d/ced03:45
livingstn left03:46
bnb And all of my commits are the latest commits. I have no previous commits.03:46
russt left03:47
c74d left03:47
jonmorehouse left03:47
livingstn joined03:48
duderonomy joined03:48
c74d joined03:49
HedgeMage Okay, so would reverting that branch to a previous point, then re-doing one commit suit your purpose?03:49
bnb Yes, that would be fine.03:50
HedgeMage Okay, and is it possible that anyone has pulled from the repo since you made the first of those commits?03:51
bnb Nope.03:51
pheaver left03:51
joelm left03:52
HedgeMage okay, good...if they had and you changed history, you'd basically make their copy unusable (unless they were more experienced than git beginners and knew how to find and fix the problem)03:53
bnb Okay, so what should I do?03:54
MrRoot joined03:54
HedgeMage sorry, I'm multitasking...just got out of an infosec drill, need to debrief, and also fixing a web site03:55
bnb No probelm.03:55
HedgeMage I'll be a bit high-latency :)03:55
dm7freek joined03:55
Dorf left03:55
bnb I actually have to take care of some things right now. I'll be back in about 20-30 mins.03:56
Thank you for helping me so far, and I'll be back for more!03:56
boombatower joined03:56
boombatower left03:56
boombatower joined03:56
HedgeMage bnb: First take a full backup of your git repo...I mean a FULL back-up. A slight typo in what I'm going to give you may nuke your repo. So could a difference between the assumptions I've made about your repo and the reality of your repo.03:56
intransi_ joined03:57
hmsimha left03:57
kaiten02 left03:57
HedgeMage bnb: Also, you'll need a copy of the commit you want to keep.03:58
bnb: do "git --reset hard FOO", replacing FOO with the commit ID of the most-recent commit you want to keep.03:58
jayeshsolanki joined03:59
bnb left04:00
intransit left04:00
HedgeMage nvm, he left04:01
ErKa left04:01
intransi_ left04:01
ev_ left04:02
willharrison left04:03
jadne left04:04
EminenceHC joined04:04
skorgon joined04:04
skorgon left04:04
skorgon joined04:04
s8321414 left04:06
Ragnar left04:07
jgardella joined04:07
EminenceHC left04:08
nb_bez___ left04:09
bnb joined04:11
myyst joined04:12
bnb HedgeMage: Done.04:13
HedgeMage bnb: oh, did you get the bit before you left, or do I have to repeat myself04:13
bnb I got the Full backup part.04:14
cromero joined04:14
myst left04:14
ajustrun left04:15
HedgeMage okay04:17
smccarthy left04:17
HedgeMage I'm serious about that...if I made a wrong assumption about your repo this will cause you to lose data04:17
and it won't be my fault, it'll be yours for sucking at backups and sucking at taking good advice :P04:17
you can do "git --reset hard FOO" where "FOO" is the commit ID of the latest commit you want to keep, then push with '-f' for "force this even though it destroys public history, which is a douchey thing to do in 99% of circumstances"....after that you can add the changes from the one commit you care about and commit/push that as normal04:18
bnb It's fine. I made a backup. I won't blame you if something goes wrong.04:18
Okay.04:18
HedgeMage also, I'm sleep deprived so my polite words are almost gone, sorry04:19
:P04:19
I think I've slept ~4 hours in the last 4804:19
bnb No problem!04:19
It said it's an unknown command.04:20
HedgeMage what is?04:20
HedgeMage wonders if she gave you a typo04:20
dik_dak left04:20
HedgeMage oh, crap, I did04:20
"git reset --hard FOO"04:21
NEVER commit while sleep-deprived. srsl04:21
crap, I can't even lolspeak right any more.04:21
bnb Nice.04:21
HedgeMage bnb: try what I said, no promises it won't explode, I'm going to find a bed to crawl into04:21
bnb Okay.04:21
HedgeMage night night!04:21
bnb Night.04:21
HedgeMage Eugene: I need chocolate! HALP!04:21
HedgeMage runs away.04:22
Eugene HedgeMage - consult the local baker04:22
HedgeMage Eugene: but...but...I'm trapped in Idaho, I don't think bakers are open after dark04:22
daito_ left04:23
kyb3r_ joined04:23
daito joined04:23
drfoo joined04:23
u1106 left04:25
u1106 joined04:25
otter768 joined04:27
daito left04:28
m0viefreak left04:29
apurcell joined04:30
offby1 nerds! Prepare an Intercontinental Ballistic Choco-Missile strike on Idaho!04:31
fairuz1 joined04:31
otter768 left04:31
HedgeMage <304:32
davispuh left04:32
armyriad left04:33
Dougie187 left04:33
CKyle left04:33
apurcell left04:34
fairuz left04:34
Keramzcak joined04:36
gitinfo set mode: +v04:37
armyriad joined04:38
Keramzcak Hello04:38
gitinfo Keramzcak: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.04:38
tokik left04:38
offby1 HedgeMage: http://www.npr.org/blogs/money/2015/02/04/383830776/episode-601-the-chocolate-curse04:39
Keramzcak left04:40
zumba_ad_ left04:41
c74d left04:41
zumba_addict joined04:42
jstimm joined04:42
ojacobson left04:44
infernix left04:45
c74d joined04:45
polyzen left04:49
ToAruShiroiNeko left04:49
drfoo left04:50
hmsimha joined04:51
c74d left04:51
daito joined04:52
toothrot left04:54
fairuz joined04:54
russt joined04:54
ToAruShiroiNeko joined04:54
madewokherd left04:56
fairuz1 left04:56
SirRetnuh left04:57
pheaver joined04:57
pm90_ left04:58
kaiten02 joined04:59
zacg left05:00
SirRetnuh joined05:00
highcup joined05:01
shpoont joined05:01
SirRetnuh left05:02
EminenceHC joined05:05
shpoont left05:05
highcup left05:05
SumDude left05:08
watabou joined05:08
Tommy[D] joined05:09
drfoo joined05:09
EminenceHC left05:10
jonmorehouse joined05:11
Tommy[D]_ left05:11
drfoo left05:13
Consuela joined05:14
oojacoboo left05:15
zacts joined05:16
adamben joined05:16
adamben left05:16
adamben joined05:16
adamben left05:16
beautifulmind joined05:17
u1106 left05:19
m0ltar left05:19
u1106 joined05:19
reaverb joined05:20
eletuchy left05:22
pheaver left05:23
cwillu_at_work joined05:23
joeyDB_ joined05:24
bket left05:24
kermit left05:24
livingstn left05:24
bket joined05:25
Zamyatin left05:25
Polyatomic joined05:25
Zamyatin joined05:25
fstd left05:26
lindenle left05:26
jgardella left05:26
Zamyatin left05:27
joeyDB_ left05:28
pm90_ joined05:28
tokik joined05:28
darnir joined05:29
pm90_ left05:33
tpollard left05:34
fstd joined05:35
ev_ joined05:37
Bass10 left05:37
knownasilya left05:38
dm7freek_ joined05:39
drfoo joined05:40
bnb left05:40
lzx joined05:40
eletuchy joined05:41
dm7freek left05:41
michaelrice joined05:42
c74d joined05:42
beautifulmind left05:42
beautifulmind joined05:43
bket left05:44
bket joined05:44
kermit joined05:44
Consuela left05:44
clarkpan left05:45
bket left05:45
bket joined05:45
HoMM joined05:46
Tuna-Fish left05:46
Tuna-Fish joined05:46
bb010g joined05:46
ZujkisNx joined05:46
squentin left05:47
ParsectiX left05:48
netj left05:48
bket left05:48
Guest11712 left05:48
kukks joined05:48
saint_ joined05:48
DolphinDream left05:48
jstimm left05:49
bket joined05:49
blahdodo left05:49
SleePy left05:49
blackjid left05:49
squentin joined05:49
ParsectiX joined05:49
ntio left05:50
ParsectiX left05:50
megawac left05:50
adamm left05:50
Eugene left05:50
tokik left05:50
zivester left05:50
bket left05:50
binn_cn left05:51
adamm joined05:51
bket joined05:51
binn_cn joined05:51
HoMM left05:52
c74d left05:52
drfoo left05:54
Eugene joined05:54
Guin left05:54
blackjid joined05:55
c74d joined05:55
ParsectiX joined05:55
netj joined05:55
SleePy joined05:56
SleePy left05:56
SleePy joined05:56
pheaver joined05:56
SebastianFlyte left05:56
saint_ left05:57
nickSwe left05:58
cbonobo left06:00
blahdodo joined06:00
cbonobo joined06:00
HoMM joined06:00
reaverb left06:01
ntio joined06:04
cbonobo left06:04
HoMM left06:04
linuxmint Hello, can someone help me? I setup a website repository. I then setup a local git directory with $ git init. I need to push to the website repository, but $ git push, gave error: configure a remote repository using git remote add <name> <url>.06:05
I already setup a remote website repository? I think I need to change my process of setting up the local git repository from command $ git init, to maybe $ git remote add <name> <url>?06:05
bket left06:05
iveqy linuxmint: what's remote website repository?06:06
eletuchy left06:06
watabou left06:06
bket joined06:06
linuxmint iveqy: a company that provides a remote repository like GitHub or BitBucket.06:06
eletuchy joined06:06
dodobrain linuxmint, you need to tell your local repo what is the location of your remote repo, thats all06:07
linuxmint, git remote add origin <url of the remote resository>06:07
iveqy linuxmint: okay. I was confused by the website part.06:07
linuxmint dodobrain: yes, I understand that, but I am trying to document the process for future work. I think I missed a setup step, which should be more than just $ git init.06:07
zarubin joined06:08
iveqy linuxmint: dodobrain is right, however the usual way to do this is to setup your remote repository and then clone it06:08
linuxmint dodobrain: yes, I am aware to do that command now, but I shouldn't have to if I setup the local repository correctly.06:08
Consuela joined06:08
linuxmint iveqy: ok, I think I did clone, but then I got confused and made and deleted several local git repositories.06:08
drfoo joined06:08
iveqy linuxmint: okay?06:09
EminenceHC joined06:09
drfoo left06:09
ParsectiX left06:09
nikio__ left06:09
nikio_ joined06:10
awb999 left06:10
dodobrain linuxmint, 2 possbilities: [[1]] you create remote repository *first* -> git clone <url of remote repository> -> play happily with your local repo yay!06:10
awb999 joined06:11
eletuchy left06:11
SebastianFlyte joined06:11
cagedwisdom left06:11
D-Boy left06:11
linuxmint iveqy: so, I'm wondering if there's another way apart from using a remote repository setup with $ git clone. Sometimes I like to stay local and setup git with $ git init. Then if I think it can to to a remote repository, how to?06:13
dodobrain [[2]] you create a local repository with git init *without* cloning an existing remote repo -> you play around with your local repo yay! -> you create a remote repo -> you need to tell local repo of the remote: git remote add origin <url of the remote *empty* repository> -> when you are ready to push from local repo you might want to setup your branch to track remote as upstream: git push -u origin master06:13
tohuw joined06:13
linuxmint dodobrain: yes, I understand the remote setup. Can this be done locally first, although that might be a bad habit.06:13
dodobrain linuxmint, as you see [[2]] is slightly more complicated with setting up remote and then also setting up the remote branch as upstream, etc. so best to work with the workflow in [11]]06:13
EminenceHC left06:14
MattMaker joined06:14
dodobrain linuxmint, did you *read* what i wrote in possibility [[2]] ?06:14
i hope you did, cos that answers your question06:14
linuxmint dodobrain: what's [[11]]?06:14
dodobrain [[1]]06:14
jayeshsolanki left06:14
dodobrain grr.. too many square brackets for today06:14
tohuw Can I make a submodule consisting of a subdirectory from another repo? E.g., I want foo/bar in my project to derive from yum/zeke of another, but not any other directory.06:15
linuxmint dodobrain: yes, [[1]] looks best. I guess if I make just a local git repository and decide to add it remote later on, do $ git remote add <name> <url>06:15
iveqy tohuw: no06:15
linuxmint dodobrain: sorry, under the confusion, I wanted to be sure what the [[1]] was :)06:15
dodobrain yes, and don;t forget to set the upstream tracking with the -u option when you push a branch06:15
jceb joined06:15
tohuw iveqy: is there any way to achieve this sort of effect, or some practice to observe when one has such a need?06:16
linuxmint dodobrain: I don't know the -u. What does that do. I thought git took care of itself with me having to do even more coding?06:16
dodobrain linuxmint, if you clone it is setup automatically06:16
GT4066 left06:17
iveqy linuxmint: man git push look for -u06:17
gitinfo linuxmint: the git-push manpage is available at http://jk.gs/git-push.html06:17
D-Boy joined06:17
iveqy linuxmint: and passing command line arguments to a program isn't coding ;)06:17
dodobrain essentially it says to setup this remote 'origin/master' as the upstream branch for local 'master' branch the06:17
pheaver left06:17
dodobrain as said earlier, all this is not even worth thinking about if you clone a remote initially06:18
linuxmint dodobrain: good, so for setup [[2]], setup locally, when happy to push remotely, $ git remote add <name> <url>. Where does this -u go and why as I thought whatever tracking would happen automatically?06:18
MattMaker left06:18
iveqy tohuw: no. It's simply not a good fit for the git model of handling data. You could always but a submodule in .foo/bar and then do a ln -s to .foo/bar/zeke06:18
drfoo joined06:18
dodobrain linuxmint, if you don't use -u to setup the upstream, the next time your colleague adds commits to origin/master i.e. the remote repo, pulling those changes to your local repo is not as simple as just git pull06:19
linuxmint iveqy: no to what bad model?06:19
dodobrain: ok, that's fair enough. So what is the command? $ git remote add <name> <url> -u?06:19
dodobrain linuxmint, in case you didn't see it, iveqy 's last statement was directed to the user who calls him/her self 'tohuw'06:19
tohuw iveqy: fair enough. I can submodule the whole thing in e.g. src, then adjust deployment as needed - I can make that work. Thanks for the input.06:19
iveqy linuxmint: the one I'm discussing with tohuw06:19
jontmorehouse joined06:20
iveqy tohuw: you're welcome, good luck06:20
i_ron joined06:20
dodobrain linuxmint, git remote ... to add/remove/etc. remote repo definitions/urls.. the -u you need to use when pushing and also *only once* if you have not cloned initially06:21
dreiss joined06:21
linuxmint dodobrain: yes, you explained that to me clearly. What's the command? $ git remote add <name> <url> -u?06:22
jonmorehouse left06:22
haptiK joined06:23
linuxmint iveqy: sorry, mixed that up.06:23
dodobrain linuxmint, for setting up remote: git remote add origin <url of remote>06:24
for setting up the upstream when pushing: git push -u origin master06:24
cagedwisdom joined06:24
joeyDB_ joined06:24
haptiK left06:24
linuxmint dodobrain: whoah...git tells me right now $git remote add <name> <url>. Why do I need $ git remote add origin <url>?06:25
dodobrain assuming ofcourse that you are pushing the local master branch and also assuming that it is really supposed to be downstream of the remote master branch: by this i mean origin/master is what everyone (your colleagues) will pull from06:25
linuxmint dodobrain: So, $ git push -u origin master is a once off? I prefer just $ git push06:25
dodobrain: $ git push is easier if it can be setup in that convenient way.06:25
iveqy linuxmint: origin is the usual/default name for the remote repository06:26
Noodlewitt joined06:26
dodobrain linuxmint, yup once off, but *only* if you setup the remote manually, meaning you didn't clone originally06:26
iveqy linuxmint: man git push read what -u does!06:26
gitinfo linuxmint: the git-push manpage is available at http://jk.gs/git-push.html06:26
nardev joined06:26
lindenle joined06:27
linuxmint iveqy: yes, will get into that depth once I get some basic understanding of the correct setup.06:27
otter768 joined06:28
KristofferDarj joined06:28
zarubin left06:28
linuxmint dodobrain: ok, just tried $ git push -u origin master, and error: 'origin' does not appear to be a git repository.06:28
dodobrain linuxmint, for now hard and simple rule: you always create your remote repo first -> then clone from it on your computer(s)06:29
iveqy linuxmint: that dept is the basic understanding...06:29
joeyDB_ left06:29
linuxmint dodobrain: I think this is because I setup the local repository and didn't clone, but not sure.06:29
dodobrain this way everything is setup automatically, your remote and the upstream master branch06:29
strehi_ joined06:29
strehi_ hi guys06:29
gitinfo strehi_: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.06:29
zadock joined06:29
linuxmint dodobrain: yes, but as a learning beginner, I want to keep my files private and understand things first, so I create a local git. Then once having some command, can figure out remote websites and who to trust.06:30
strehi_ what webpage do you suggest to learn git?06:30
iveqy strehi_: !books !talks06:30
gitinfo strehi_: [!book] There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable06:30
strehi_: Some good video talks about Git: [yt] http://goo.gl/z72s (Linus Torvalds: History&Concepts); [yt] http://goo.gl/R9H2q (Scott Chacon: Git basics, live examples); http://vimeo.com/35778382 (Randal Schwartz: Git basics, descriptional); http://vimeo.com/46010208 (Jesica Kerr: Git basics, descriptional)06:30
porcoesphino joined06:31
lindenle left06:31
arup_r joined06:32
zadock left06:32
linuxmint dodobrain: ok, so for now, I have a local and will use a local repository. So command $ git push -u origin master, didn't work. Should the -u be added to $ git remote add <name> <url> perhaps?06:32
iveqy linuxmint: you first need to add the remote with git remote add and then you can push with git push -u. You can't push to a remote before you've added a remote to git06:33
otter768 left06:33
linuxmint iveqy: ahh, great, thanks. I think that's the clear process I can add to a local setup. Let me try and thank you.06:33
apurcell joined06:34
tokik joined06:35
Gamecubic_ left06:35
linuxmint Just a quick lazy question, but what should the name be in $ git remote add <name> <url>? Not my name, but perhaps the name like the remote repository name or something else to avoid confusion?06:35
cromero left06:35
ajustrun joined06:37
dodobrain linuxmint, use the hard and easy rule i gave you above! *always create your remote repo first*, then clone from it on your local machine(s)06:37
ToAruShiroiNeko left06:37
dodobrain usually <name> would be 'origin'06:37
apurcell left06:38
nnyk joined06:38
ZujkisNx left06:39
irqq joined06:39
KristofferDarj left06:40
drfoo left06:40
jontmorehouse left06:41
devoldmx3 joined06:41
russt left06:41
ToAruShiroiNeko joined06:41
ToAruShiroiNeko left06:41
linuxmint dodobrain: thanks. $ git remote add origin <url> worked, but $ git push -u origin master failed. Error: the remote has work that I don't have locally.06:41
iveqy linuxmint: you do realise that we have told you everything at least twice. For example, the <name> explanation I told you 20 minuts ago. Please let us know if there's something you don't understand when we explain something06:41
ToAruShiroiNeko joined06:42
linuxmint dodobrain: yes, I agree to setup remotely and clone. Perhaps then, I can just work locally and not push if wanting to stay private.06:42
iveqy: sorry, I'm a bit slow.06:42
iveqy linuxmint: do you understand why you can't push?06:43
zoso joined06:43
hvxgr left06:43
linuxmint iveqy: I think because the remote and local have different files. I was hoping the remote would accept the push to a new directory spot.06:43
munke joined06:44
devoldmx left06:44
mricon joined06:45
ThomasLocke joined06:45
mriconGuest3288806:46
BuenGenio joined06:46
eologolo left06:48
awb999 left06:48
eologolo joined06:49
recycle_ joined06:49
wachterjohannes joined06:50
iveqy linuxmint: you can do a git push -f to force to remote to accept, but !force is usually a pretty bad idea. You should just do a git pull so that you get all changes locally and then you can do a git push06:50
gitinfo linuxmint: [!force_push] If you need to overwrite the history of a remote git repository (very bad idea, see !rewrite), you can do so with `git push -f`. Note the remote server may reject this. See man git-config and search for receive.denyNonFastForwards. Best practice is for upstream servers to denyNonFastForwards.06:50
Lyqyd left06:55
Raging_Hog left06:57
ToAruShiroiNeko left06:57
lzx left06:58
juril_laptop joined06:58
nilg joined06:59
danners joined07:00
Raging_Hog joined07:01
devll left07:02
skorgon left07:02
ToAruShiroiNeko joined07:03
ToAruShiroiNeko left07:03
ToAruShiroiNeko joined07:03
linuxmint iveqy: k, thanks for the info. I think I'll pull (hopefully won't lose my local changes) for good habit. There's nothing to lose on the remote, but I'd like to test if the remote pull will wreck my local work.07:03
nnyk left07:04
ehmatthes joined07:04
danners left07:05
Goplat left07:06
bulletmark joined07:06
dreiss left07:06
Silmarilion joined07:07
KevinTS joined07:07
KevinTS left07:07
KevinTS joined07:08
munke left07:08
arup_r left07:10
apurcell joined07:11
freimatz joined07:12
hvxgr joined07:13
bulletmark left07:15
dodobrain left07:15
apurcell left07:15
snearch joined07:17
arup_r joined07:18
phantombeta left07:19
nnyk joined07:19
roelmonnens joined07:20
a_le left07:21
jrahmy left07:22
acolson joined07:22
a_le joined07:22
settermjd joined07:23
michaelrice left07:24
jonalmeida left07:24
joeyDB_ joined07:25
harish left07:26
MLM left07:27
juril_laptop left07:28
joeyDB_ left07:30
diegoaguilar joined07:30
tjm_jimmy joined07:30
phantombeta joined07:31
bgerber left07:32
zarubin joined07:33
bgerber joined07:33
EminenceHC joined07:37
eletuchy joined07:37
zarubin left07:37
eletuchy left07:41
Vadimus joined07:41
EminenceHC left07:41
stor is there any better plumbing to get the tag name from a tag object than parsing 'git cat-file tag <tag>'?07:43
<tag> = <sha>07:44
Noodlewitt left07:44
stor (i don't know the tag name :)07:44
cdown joined07:44
stor hm, name-rev maybe?07:45
shpoont joined07:48
thiago possibly, yeah07:48
that assumes the refs/tags/ exist for that tag07:48
uhhimhere left07:49
joo--_ joined07:50
eletuchy joined07:51
Vadimus left07:52
jontmorehouse joined07:52
shpoont left07:52
beautifulmind left07:53
jnavila joined07:53
stamina joined07:54
ToAruShiroiNeko left07:56
KevinTS_ joined07:56
diegoaguilar left07:58
voidDotClass joined07:58
oriba joined07:59
voidDotClass How can I revert to a previous commit and push that as the new current version?07:59
i.e in commit X everything was working, commit Y broke something, I'd like to revert to commit X and work from there on in future07:59
Trudko joined07:59
voidDotClass but without losing commit Y07:59
thiago just push commit X07:59
voidDotClass push commit <code> ?08:00
thiago git push <remotename> X:branchname08:00
dsdeiz_dsdeiz08:00
dsdeiz left08:00
dsdeiz joined08:00
KevinTS left08:00
voidDotClass but i've already pushed commit Y to remote08:00
thiago has anyone got it?08:00
voidDotClass i'm the solo dev08:00
thiago git push -f remotename X:branchname08:00
ninsei left08:01
voidDotClass what is that going to do? i'm not specifying the commit anywhere08:01
all my commits are already pushed to remote08:01
thiago it's going to push X to branchname in remotename08:01
ToAruShiroiNeko joined08:01
thiago it's going to remove anything that happened after X from the remote08:01
d4ryus___ joined08:01
voidDotClass and then i need to checkout that branch?08:01
thiago no08:02
it changes the remote, only08:02
your local repository remains unchanged08:02
voidDotClass but i also need my local repo updated08:02
thiago to what?08:02
voidDotClass to X08:02
thiago you said you don't want to lose Y08:02
boombatower left08:02
ninsei joined08:02
voidDotClass i meant it should stay in history08:02
so if i need to i can check it later08:03
i.e there are some methods that would remove it from head, i dont want that08:03
thiago create a new branch that points to Y or anything that happened later08:03
then git reset --hard X08:03
smithd_ joined08:03
thiago then push -f08:03
zoso left08:03
voidDotClass is there no way to just revert to X commit, and have that become the new revision?08:04
within the same branch08:04
d4ryus left08:04
milki voidDotClass: git read-tree X08:04
boombatower joined08:05
boombatower left08:05
PeterBooker joined08:05
RusAlex left08:05
nfk joined08:06
smithd left08:06
dcpc007 left08:07
sebhoss joined08:07
rath joined08:07
thiago milki: revert X or revert *to* X?08:07
nardev left08:08
thiago sorry08:08
voidDotClass: ^^^^08:08
lid_ left08:09
milki i see a to there08:09
dcpc007 joined08:10
dcpc007 left08:10
milki meh08:10
too many ways to read that08:10
milki shrugs08:10
voidDotClass thiago: revert TO x08:11
milki: what will git read-tree do?08:12
stor how do i decide if a tag is on a given branch? i don't really like using 'git branch --list <thebranch> --contains <tag>' in a script...08:12
thiago voidDotClass: git checkout X .08:12
milki huh, i dunno. i wonder if there are resources that will tell me08:12
thiago voidDotClass: including the dot at the end08:12
stor: git branch --contains tagname08:12
stor: for a single branch and tag: git log branch..tag08:12
stor: if it prints nothing, the tag is in the branch08:13
stor thiago: i have a given branch already and i want to verify if the tag is on that08:13
and it should be machine-friendly08:13
thiago if [ -n "`git log -1 branch..tag`" ]08:13
adamellsworth joined08:14
metastableB joined08:14
osse if git merge-base --is-ancestor branch tag08:15
djeezus08:15
^_^08:15
seschwar joined08:15
stor heh i just found it too :) (was thinking using rev-list previously)08:16
snearch left08:16
mlechner joined08:16
lindenle joined08:16
ajustrun left08:16
voidDotClass thiago: if i checkout revision x, then make some changes and try to commit them, will that work?08:16
daynaskully left08:17
thiago voidDotClass: define "work"08:17
voidDotClass: git will do it just fine08:17
voidDotClass: but I doubt the effects will be what you want08:17
voidDotClass then that's not what i want.08:17
thiago so try what I suggested08:18
voidDotClass you said to try checkout, and the effects of that wont be what i want as you said08:18
thiago I didn't say to checkout revision x08:18
I said "git checkout X ."08:19
the dot at the end makes a difference08:19
voidDotClass I see08:19
joo--_ left08:19
voidDotClass so if i do that, and then make new commits, will they work as expected?08:19
thiago that checks X's content out, without checking out (switching to) that commit08:19
yes08:19
voidDotClass awesome08:19
thiago you need to make a commit first, marking the reversal08:19
TomyWork joined08:19
voidDotClass yeah08:19
that's perfect08:19
osse voidDotClass: is Y the only commit after X ?08:20
lindenle left08:21
darkbasic left08:21
babilen left08:21
darkbasic joined08:21
hahuang62 left08:22
PCatinean joined08:22
hahuang62 joined08:23
voidDotClass oys08:24
kukks left08:24
snearch joined08:24
voidDotClass osse: yes*08:24
shpoont joined08:24
osse voidDotClass: then you could also have done 'git revert Y' and the result would be the same08:24
workerbeetwo joined08:25
mkaesz joined08:25
voidDotClass osse: but i dont want to lose y from the history08:25
osse if Y wasn't the only commit then in some cases that is still what's appropriate. but it depends on the situation, of michael kors08:25
you wouldn't have08:25
voidDotClass ah08:26
osse it creates a new commit that is the reverse of the commit(s) you specify08:26
joeyDB_ joined08:26
guardian left08:26
metastableB left08:26
runev joined08:27
wicope joined08:28
jontmorehouse left08:28
otter768 joined08:28
petersr joined08:29
ToAruShiroiNeko left08:29
kaiten02 left08:30
kaiten02 joined08:30
joeyDB_ left08:30
otter768 left08:33
cdown left08:33
kyb3r_ left08:34
ToAruShiroiNeko joined08:34
endiruna1 joined08:34
ws2k3 joined08:35
Sasazuka joined08:35
kanuku joined08:36
himikof left08:36
cehteh joined08:36
xaa joined08:37
ki0 joined08:38
bb010g left08:38
cehteh how do i unpack a single object from a packfile? i need to repair a corrupted repo08:38
jagob joined08:38
zoso joined08:38
zoso left08:39
Sasazuka left08:40
zarubin joined08:40
cehteh ah remembered08:40
himikof joined08:40
tokik left08:40
voidDotClass left08:40
twoface88 joined08:41
snearch left08:44
lqi joined08:44
snearch joined08:44
craigp joined08:45
fabio_p joined08:46
hahuang65 left08:46
nour joined08:47
cdown joined08:47
shpoont left08:48
cannonball left08:48
dcpc007 joined08:48
Shusshu joined08:49
twoface88 left08:49
babilen joined08:50
colli5ion joined08:50
darkbasic left08:52
cannonball joined08:52
cbreak cehteh: git cat-file can do it, as can git unpack-file / git-unpack-objects08:52
cdown left08:52
cehteh yes i forgot about the blob|tree option08:53
snearch_ joined08:53
darkbasic joined08:53
psoo joined08:53
psoo left08:53
doener joined08:54
snearch left08:54
psoo joined08:54
PeterBooker left08:57
cehteh mhm still problems08:58
fatal: loose object d0cdc0c31c46ccca2d35418a75c0b32d8951a1f5 (stored in .git/objects/d0/cdc0c31c46ccca2d35418a75c0b32d8951a1f5) is corrupt08:58
m8 joined08:58
Shusshu left08:58
cehteh .. i just copied that object there, did i miss something?08:58
tohuw left08:58
Seveas cehteh: looks like you copied it wrong08:59
bdash joined08:59
bdash left09:00
cbreak look like it is corrupted09:00
cehteh the object itself looks a bit like garbage in a hexdump09:00
Seveas time to find a copy from another location09:00
thiago left09:00
cehteh yeah09:00
endiruna1 left09:01
osse cehteh: it looks like garbage because it is compressed09:01
cehteh are tree objects compressed?09:01
Bass10 joined09:01
Seveas yes, all objects are09:01
cehteh ok09:01
zumba_ad_ joined09:02
cehteh well git cat-file tree d0cdc0c31c46ccca2d35418a75c0b32d8951a1f; and on the other host: cp d0cdc0c31c46ccca2d35418a75c0b32d8951a1f5 >.git/objects/d0/cdc0c31c46ccca2d35418a75c0b32d8951a1f509:02
should be right or?09:02
daedeloth joined09:02
elbeardmorez joined09:03
Seveas no09:03
cehteh or is there some other way to import a object?09:03
Seveas just cp over the object file09:03
oskarkv left09:03
Seveas or if the object is only in a pack, copy the pack and run unpack-objects on it09:03
encod3 joined09:03
colli5ion left09:03
nmschulte left09:03
cehteh unpacking might be a bit bloating09:04
chiemseesurfer left09:04
kurkale6ka joined09:04
zumba_addict left09:04
Ragnar joined09:04
Seveas gc/repack will solve that again09:04
alekks joined09:05
zoso joined09:05
MasterPiece joined09:05
nmschulte joined09:05
ePax joined09:05
cehteh bah .. looks like its fucked up on one location, many broken trees/blobs09:06
ajustrun joined09:07
BuenGenio left09:08
cehteh lets see how joeyhs git-repair works09:09
alekks left09:10
ronskisika joined09:10
Raging_Hog left09:10
MasterPiece left09:11
zadock joined09:11
Gizburdt joined09:12
haptiK joined09:12
nnyk left09:13
BuenGenio joined09:14
haptiK left09:14
chemist69 joined09:14
devoldmx3 left09:15
Takle joined09:16
Gizburdt left09:16
gtristan joined09:16
Tuna-Fish left09:17
gtristan I keep forgetting, is there a way to check what is the last commit since I pulled/pushed ?09:17
EdwardIII joined09:17
gtristan or view how many staged changes I have ahead of the remote ?09:17
EdwardIII hey09:17
tanuck joined09:17
teran left09:17
Tuna-Fish joined09:17
Gizburdt joined09:17
Gizburdt left09:17
osse gtristan: git log origin/master..master09:18
EdwardIII github's workflow for merging changes is "checkout remote branch, merge master into remote branch, test, then merge your local branch into master, then push back to github"09:18
gtristan osse, ah thanks a bunch :)09:18
Gizburdt joined09:18
EdwardIII but i tend to just tend to, on master, do git merge remote/branch, test, then push that up09:18
anything wrong with that workflow?09:18
snearch_ left09:18
EdwardIII also i tend to always do --no-ff whenever i'm merging in changes from other people on master... too cautious?09:19
Gizburdt left09:19
a-l-e joined09:19
EminenceHC joined09:19
atamanroman joined09:21
mkaesz left09:22
mkaesz joined09:22
mezod joined09:23
ehmatthes left09:24
EminenceHC left09:24
Gizburdt joined09:25
snearch joined09:26
dm7freek_ left09:26
netcarver joined09:26
vurma joined09:26
mkaesz left09:26
joeyDB_ joined09:27
ideea joined09:27
The_Phoenix joined09:28
CustosL1men joined09:28
De|ta I always merge dev / feature branches with --no-ff --no-commit09:28
darkbasic left09:29
darkbasic joined09:29
oriba left09:30
m0viefreak joined09:30
mroach left09:30
EdwardIII De|ta: and do you just do (from master): git merge origin/feature ?09:30
i guess doing it the way github say has the advantage that it's slightly easier to blow away the branch and start again09:30
marcogmonteiro joined09:30
EdwardIII rather than having to check the reflog and do git reset --hard09:31
joeyDB_ left09:31
arup_r left09:32
hroi joined09:33
hroi hi09:33
I have a folder09:33
De|ta EdwardIII, from master I would do 'git merge --no-ff --no-commit foo/bar'09:33
hroi that is a bar repository ehm... --bare init09:34
De|ta If I'm merging other people's work then I will have it locally as I would've reviewed / built it09:34
petersr left09:34
hroi am I allowed to change the name of this folder?09:34
joo-_ joined09:34
hroi can it affect the integrity of the repository itself?09:34
osse hroi: yes. no.09:35
hroi I'm not worried about those that have checked or pulled out of it.09:35
osse hroi: but changing the name may make others have to change the URL that points to it09:35
ideea left09:35
hroi osse, right... so it only affects the "origin" pointer09:35
jast correct09:35
hroi osse, for those working on it09:35
ok09:35
joo-_ left09:36
osse hroi: it also affects the "poop" pointer for those who called it that instead of "origin"09:36
petersr joined09:36
twoface88 joined09:36
teran joined09:36
petersr left09:36
osse (sorry for being childish=09:38
liamkeily joined09:38
arup_r joined09:39
ePax left09:39
jayeshsolanki joined09:39
paperoga joined09:40
paperoga ciao09:40
paperoga left09:40
FunkyAss left09:40
twoface88 left09:40
ePax joined09:40
cdown joined09:41
arup_r left09:41
teran left09:41
skylite_ joined09:42
BuenGenio left09:42
weiyang left09:43
zarubin left09:43
ghostpl joined09:44
WaReZ joined09:45
puffy joined09:46
tokik joined09:47
CustosL1men left09:47
jnavila_ joined09:48
ajustrun left09:49
adamellsworth left09:49
sarri left09:50
jnavila left09:51
KevinTS_ left09:51
KevinTS joined09:51
sarri joined09:52
snearch left09:52
cdown_ joined09:53
wodim left09:53
cdown left09:54
cdown_ left09:55
rendar joined09:57
wodim joined09:57
mikecmpbll joined09:58
HelloShitty joined09:58
jayeshsolanki left09:59
aswen joined10:00
RedShift joined10:01
ePax left10:01
hroi left10:02
stamina left10:02
mkaesz joined10:02
Tuna-Fish left10:04
zarubin joined10:04
jottr joined10:04
CustosL1men joined10:04
teran joined10:05
tokik_ joined10:05
ev_ left10:05
cagedwisdom left10:06
Takle left10:06
Takle joined10:06
tokik_ left10:06
xk_id joined10:07
nnyk joined10:08
teran left10:08
teran joined10:08
Juzzika joined10:09
jayeshsolanki joined10:09
adamellsworth joined10:09
MasterPiece joined10:09
jost joined10:09
_0xAX joined10:10
porcoesphino left10:11
snearch joined10:11
Gizburdt left10:12
tokik_ joined10:13
Gizburdt joined10:13
tokik_ left10:13
Takle left10:14
snearch left10:14
Tuna-Fish joined10:15
tokik left10:18
roelmonn_ joined10:19
jnavila__ joined10:19
CEnnis91 left10:20
jnavila_ left10:21
Assault joined10:21
Assault hi, source tree users?10:21
autochthon joined10:21
EminenceHC joined10:22
roelmonnens left10:22
snearch joined10:22
darkbasic_ joined10:23
acolson left10:23
Assault this is pretty basic - I accidentally deleted a file (didnt commit the change)..how can I now revert the deletion in SourceTree to bring it back?10:23
Takle joined10:23
mroach joined10:23
darkbasic left10:23
jast just so you know, most of us here use command line git10:24
and that's all I can tell you how to use10:24
in fact if you use 'git status' it'll tell you on its own how to do it10:24
jnavila__ left10:25
jnavila joined10:25
okanck joined10:25
Assault yeah, i dont like commmand line tools, they belong to 20th century10:25
but I found it, its right click and "discard"10:25
qsuscs hah that one was funny10:25
you got more of such jokes?10:25
daito left10:25
Assault left10:26
jast oh, let's not even start10:26
there's no point10:26
sybariten joined10:26
daito joined10:26
Gizburdt left10:26
EminenceHC left10:26
sybariten i have to say its a funkin high treshold getting into git, or rather VCS, when you havent used it before10:26
osse I wonder how he left the channel. Did he right-click on the channel name or click the X, or did he type /part ?10:27
harish joined10:27
jast I wonder how he typed. typing into text fields belongs to the 20th century10:27
osse voice recognition10:27
joeyDB_ joined10:27
linuxmint Ok, I pulled the remote repository and I'm not sure if all files are pulled, so I can push all my modifications now?10:28
AAoK joined10:28
De|ta goes back to work in https://github.com/Swordfish90/cool-retro-term GUIs are a fad anyway10:29
arup_r joined10:29
jost_ joined10:29
ghostpl left10:29
jast linuxmint: once the pull is complete, pushing should Just Work(tm)10:29
iveqy sybariten: it is, and it should not be understated. Sometimes worse solutions is better because people understands them10:29
otter768 joined10:29
jast unless someone managed to sneak in more commits in the meantime10:29
Zoddo joined10:29
sybariten iveqy: i need to get the daily routines into my "backbone", as we say in my language10:30
linuxmint jast: Git says: http://dpaste.com/3G9Z5G810:30
sybariten and then i'm only aiming to VCS some conf files... heh10:30
daito left10:30
iveqy sybariten: I must recommend !talks, the one with Jesica Kerr. When you really understand that, git will go from beeing an obstacle to help you write code10:31
gitinfo sybariten: Some good video talks about Git: [yt] http://goo.gl/z72s (Linus Torvalds: History&Concepts); [yt] http://goo.gl/R9H2q (Scott Chacon: Git basics, live examples); http://vimeo.com/35778382 (Randal Schwartz: Git basics, descriptional); http://vimeo.com/46010208 (Jesica Kerr: Git basics, descriptional)10:31
Consuela left10:31
tomred_ joined10:31
jast linuxmint: are you on master branch? ('git branch' tells you)10:31
linuxmint $ git branch, says * master.10:31
jast so, yes :)10:31
do this: git branch -u origin/master10:31
then try pulling again10:31
this tells git which remote branch to associate with your local branch10:31
sybariten iveqy: thanks .... (and yes, i was on my way to writing a thanks to gitinfo there)10:32
gitinfo sybariten: you're welcome, but please note that I'm a bot. I'm not programmed to care.10:32
jost left10:32
joeyDB_ left10:32
iveqy sybariten: gitinfo thinks you did =)10:32
jast that's just a case of provident politeness10:33
ghostpl joined10:34
iveqy jast: don't get me wrong, I love gitinfo. She's very polite10:34
donmichelangelo joined10:34
otter768 left10:34
jast she? where'd that come from?10:34
sybariten heh, yeah10:34
iveqy jast: he?10:35
jast I don't think gitinfo identifies with human constructs such as gender10:35
linuxmint jast: hmm, it did something.10:35
jast: says: create mode 10064410:35
acolson joined10:36
kaiten02 left10:36
linuxmint jast: git doesn't confirm if my local repository with changed files has pulled the remote repository, to sync it up, so I can push my local changes?10:36
Seveas jast: it has enough binary problems to care about already, it doesn't want to care about a gender binary as well :)10:36
iveqy jast: do you know french? All things have a gender ;)10:36
linuxmint: if you push and there are not synced, you'll be told that10:37
linuxmint: actually there's no way to know if you're synced or not, because someone could have done a push right after you did the pull10:37
michelangelo left10:38
iveqy (which is why git would never work as a centralized system with many users)10:38
linuxmint jast: ok, I tried $ git push -u origin master. Git says Writing objects.10:38
iveqy: oh, it's just me with no team :(10:39
cbreak hmm... since when does git pull update submodules automatically?10:39
linuxmint iveqy: I'm just practicing to see it if works and what are common useful things. Also handy to work on 1 website in a way that can be scaled up for a team later on one day maybe.10:39
darkbasic_ left10:40
diegoviola joined10:40
jast definitely10:40
darkbasic joined10:41
mmitchell joined10:42
jceb left10:42
Tuna-Fish left10:43
iveqy cbreak: I'm not sure it's git pull, but rather git checkout. And I'm not sure when it happens, but I'm glad it did10:43
Tuna-Fish joined10:43
iveqy after fall 2011 at least10:43
cbreak yeah, it's nice.10:44
iveqy cbreak: however it won't work with (prior 2011) initialized submodules10:46
cbreak oh :(10:46
drfoo joined10:46
iveqy or I think it won't. Because a checkout should also be able to remove a submodule if you checkout a version prior to the submodule was added10:46
mmitchell left10:47
githogori left10:47
drfoo left10:47
iveqy that means that the submodule repo cannot be in the submodule itself, but need to have a .git-file which puts the submodule repo inside the parents .git-dir10:47
beautifulmind joined10:47
iveqy I believe this can be a bit confusing10:47
doev joined10:47
linuxmint jast: ok, the $ git push -u origin master says, Branch master set up to track remote branch master from origin. Does this mean I need to do $ git push, to push my local files to remote now?10:48
drfoo joined10:48
nikio__ joined10:48
jast linuxmint: that command should have pushed already10:49
drfoo left10:49
linuxmint jast: ok, I didn't see any confirmation. I guess I could log into the remote website. I hope I can just type $ git push, now to be easy.10:50
jast sure10:50
drfoo joined10:50
jast it'll say something like 'up-to-date' if there's nothing left to push10:50
linuxmint jast: well, thanks for your help then. I'll work on the website and see how the files go.10:50
Gizburdt joined10:50
King_Hual` joined10:51
Juzzika left10:51
arup_r left10:51
Celelibi Can I chose which commit I want to push?10:51
cceleri left10:51
cceleri joined10:51
ghostpl left10:51
skinkitten joined10:52
Celelibi I want to keep the 10 last commits on my computer.10:52
UmInAsHoE joined10:52
nikio_ left10:52
ghostpl joined10:52
Celelibi I know, I should probably work on another branch, and merge into master when I'm ready to push.10:52
iveqy Celelibi: yes10:52
Celelibi But it's not the case.10:53
rns2 joined10:53
saint-ron left10:53
aswen left10:53
Celelibi And since I've almost finished my PhD, I won't do this now.10:53
m0viefreak git push remote master~10:master10:53
should do what you want10:53
Celelibi Thanks, I'll try.10:53
bote joined10:55
cceleri left10:56
wicope left10:58
h4ml3t joined10:58
devoldmx joined10:59
rchavik left11:01
ap0c left11:02
xk_id left11:03
Pzq joined11:03
linuxmint Well, now I'm confused. I pulled the remote and now I have a directory called domain.com with the old website and public which is the directory I have been working in and is most recent. Can I just get rid of the domain.com directory that appeared?11:03
Pzq left11:04
mskaesz joined11:04
hyperair left11:04
echo-area left11:05
linuxmint I guess just $ rm -rf domain.com, then maybe $ git push, to update the remote repository?11:05
Oxabp joined11:06
mkaesz left11:06
xk_id joined11:06
Tuna-Fish left11:07
Oxabp left11:07
k_sze[work] left11:07
byaruhaf joined11:07
mkoskar left11:07
KevinTS left11:07
nnyk left11:08
Ybtb joined11:08
paulweb515 left11:08
Ybtb left11:08
daedeloth_ joined11:09
Mqizo joined11:10
daedeloth left11:12
Dragooon left11:12
nnyk joined11:12
elbeardmorez left11:13
adamellsworth left11:14
UmInAsHoE left11:14
dm7freek joined11:15
wachterjohannes left11:15
puffy left11:16
iveqy linuxmint: you realise that it's almost impossible for us to advice you on which content you should have in your repository11:17
dougsland joined11:17
lamppid left11:18
Tuna-Fish joined11:18
nikio__ left11:18
groolot joined11:18
linuxmint iveqy: well, I tried to say I have worked in my local /public directory, but the $ git pull, added a directory named domain.com. So, I just $ rm -rf domain.com, and committed and pushed. I think it's fixed now.11:18
roelmonn_ left11:19
drfoo left11:19
dm7freek left11:19
Error404NotFound joined11:20
chrisgeorge left11:20
cdown joined11:21
lamppid joined11:22
gogu2 joined11:23
roelmonnens joined11:23
cdown left11:24
Gizburdt left11:24
Y0sh1 left11:26
Mqizo left11:26
cceleri joined11:26
jost_ left11:26
jost joined11:27
nilg left11:27
daa joined11:27
roelmonnens left11:28
groolot left11:28
daa left11:28
chemist69 left11:28
joeyDB_ joined11:28
chemist69 joined11:28
Frzd joined11:30
Guest40686RudWolf11:30
Frzd left11:30
uuoxo joined11:31
sebhoss left11:32
cagedwisdom joined11:32
plasticle left11:33
gtristan left11:33
plasticle joined11:33
joeyDB_ left11:33
rns2 left11:34
cagedwisdom left11:34
fooforge joined11:34
dannymichel joined11:35
sybariten OK... so i hjave changed some files, in a program directory. They are in fact putty config files, under D:\portable\portaputty\....blabla11:36
i am standing in D:\portable and i know that i have a .git dir under there. If i do git status, i can see that a putty settings file has changed, so thats good11:36
snima joined11:37
sybariten now its git commit i will use to add this change to my versioning right? But that won't UL it to my own private git server will it?11:37
_ikke_ sybariten: correct11:37
A commit just happens locally11:37
kanuku left11:37
albel727 left11:38
Juzzika joined11:38
Gitzilla left11:38
cdown joined11:38
cdown left11:38
snima can I switch back without doing branch? (I just did the commit)11:39
cceleri left11:39
iveqy snima: switch branch?11:39
qsuscs !revert11:39
gitinfo That's a rather ambiguous question... options: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard uncommitted changes in the working tree [git reset --hard]; c) undo committing [git reset --soft HEAD^]; d) restore staged versions of files [git checkout -p]; e) move the current branch to a different point(possibly losing commits)[git reset --hard $COMMIT]?11:39
cceleri joined11:40
jost left11:40
snearch left11:40
jost joined11:40
cdown joined11:41
cdown left11:41
sybariten _ikke_: alright,. but what about all those configurations... i have a vague memory of setting up something, so that not everything gets commited? Can i check what those settings actuially are?11:41
dougsland left11:41
FunkyAss joined11:41
_rgn left11:42
iveqy sybariten: that is probably in your .gitignore file11:42
sybariten i mean, i have lots of (program) dirs under D:\portable\ but in reality its maybe just putty and some other tools, that i want to send back and forth to git11:42
ok. hmmm i'll see if that's on disk11:42
roelmonnens joined11:42
cdown joined11:42
beckyconning_ joined11:42
iveqy sybariten: but you can use gitk (for example) to see what changes are made in your commits11:43
sybariten hm, nope, not under .git in this place. Maybe i didnt set that up after all, maybe i just dreamt it11:43
snearch joined11:43
sybariten whoa! i ran gitk and a client opened..11:43
harish left11:44
iveqy I never said it was under .git it's just .gitignore11:44
_ikke_ yeah, it's a graphical program11:44
cavallari joined11:45
dsdeiz left11:45
dachary hi, how can I do something similar to diff -u <(git show 7b8e5c9) <(git show 1d9e4ac) but ignore the line number differences or commit message differences ? probably something like what git-patch-id does but I'm not sure how to get it.11:45
sybariten hm, yeah, as i read now i should put it anywhere in the project, ... but not in .git11:45
dougsland joined11:46
kanuku joined11:46
bitkiller joined11:47
roelmonnens left11:47
s8321414 joined11:47
KevinTS joined11:48
sybariten OK, so as it turns out i actually had a gitignore. But it contained a * , a method i read about somewhere. But i noticed than when i changed a file under d:\portable\putty, git status was aware of that.. but when i changed a file under d:\portable\httrack , git status doesnt seem to learn that11:49
so is it possible that i have forced d:\portable\putty to be part of the watched files, and that that force is sticky?11:49
ronskisika left11:49
binn_cn left11:51
mroach_ joined11:51
iveqy sybariten: git won't ignore already tracked files, so using .gitignore with * means that git status only will tell you about files that you already track11:51
mroach left11:52
mroach_mroach11:52
kanuku left11:53
tomred_ I have a repo in my home folder that I want to put into a shared directory and make a shared repo.11:53
sybariten iveqy: uh... im sorry, could you rephrase that11:53
lindenle joined11:54
roelmonnens joined11:54
tomred_ Should I `git init --bare --shared` in the shared directory and copy the files in? Will I lose the history that way?11:54
ignas left11:54
cvanball joined11:54
iveqy tomred_: you can't init an already initialized git repo.11:54
tomred_: !dropbox11:54
gitinfo tomred_: Storing git repositories on DropBox is a Very Bad Idea™. Use a free hosting service (such as Bitbucket or GitHub), or read !dropbox_why if you insist upon having your repo corrupted.11:54
ToAruShiroiNeko left11:54
iveqy sybariten: with your settings you will ignore all files that git doesn't already know about11:55
sybariten iveqy:11:55
tomred_ Not DropBox. moving the folder from $home to /usr/local/src/11:55
All on the same server11:55
sybariten iveqy: ok. But appearently it knows about D:\portable\putty ? i changed some files therein, and it reported that.11:55
iveqy dachary: since noone here seems to help you, the only advice I can give you right now is man git diff11:55
gitinfo dachary: the git-diff manpage is available at http://jk.gs/git-diff.html11:55
Arsonide left11:55
ev_ joined11:55
iveqy tomred_: in that case, use git init --bare --shared, add that repo to your current repo with git remote add and then push to it11:56
dachary iveqy: I think http://www.linuxcommand.org/man_pages/interdiff1.html is what I need11:56
dachary trying11:56
sybariten lunch, brb11:56
jost_ joined11:57
iveqy sybariten: then you must have told git about those files previously. (or maybe your gitignore isn't applied recursively)11:57
_0xAX left11:57
tomred_ iveqy: thanks11:57
strehi_ left11:58
zoso left11:58
lindenle left11:58
ToAruShiroiNeko joined11:59
jost left11:59
snearch left12:00
cdown left12:00
HelloShitty left12:01
kanuku joined12:01
bitkiller left12:01
paul424 joined12:01
Gizburdt joined12:02
mikecmpb_ joined12:02
mizu_no_oto joined12:02
bitkiller joined12:03
gogu2 left12:03
cdown joined12:04
wachterjohannes joined12:04
jost__ joined12:05
mikecmp__ joined12:05
mikecmpbll left12:05
kanuku left12:06
zhangyh26258 joined12:07
Raging_Hog joined12:07
mikecmpb_ left12:07
jost_ left12:07
encod3 left12:07
snearch joined12:08
zhangyh26258 left12:08
tomred_ ivegy: That work...well.12:09
twoface88 joined12:11
Skapadapaduu joined12:11
twoface88 left12:11
jceb_ joined12:11
cdown left12:11
cavallari How can I merge the updates of a forked repository wich the commits are under my own commits?12:14
Gizburdt left12:15
zhangyh26258 joined12:15
oriba joined12:15
ghostpl left12:15
liamkeily left12:15
rishiraj joined12:16
zhangyh26258 left12:16
Gizburdt joined12:16
dougsland left12:16
zhangyh26258 joined12:17
mskaesz left12:17
kaiten02 joined12:17
monbro joined12:19
tobiasvl cavallari: what do you mean by that last part?12:19
dougsland joined12:20
warthog9 left12:21
Takle left12:21
myystmyst12:22
freestyl3r joined12:23
Raging_Hog left12:23
stamina joined12:24
mezod left12:24
mkaesz joined12:24
cavallari tobiasvl: i´ve made a fork and made some changes12:26
then the source made some changes too12:26
now i´ve tried to merge those changes, but my changes are newer12:26
then an error shows me that cant be merged because my commits are newer than the upstream12:27
Not_Whatever joined12:27
stamina left12:27
tobiasvl surely the error says they can't be merged automatically, and that you need to do it manually?12:27
!eek12:27
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=zz7NuSCH6II12:27
kanuku joined12:28
snearch left12:28
joeyDB_ joined12:29
EminenceHC joined12:30
cavallari tobiasvl: the major problem is that the upstream heads didnt come updated, but it is12:30
otter768 joined12:30
Seveas cavallari: !repro please12:31
gitinfo cavallari: [!transcript] Please paste (using https://gist.github.com/ or similar) a transcript ( https://gist.github.com/2415442 ) of your terminal session.12:31
beautifulmind left12:31
jatt joined12:31
osse cavallari: do you have both your fork and the original repo as remotes?12:31
jatt left12:31
jatt joined12:31
cavallari yes12:32
osse fetch from it12:32
cavallari i´ve done12:32
osse git fetch --all12:32
digifiv5e joined12:32
osse then git merge originalrepo/master12:32
or equiv12:32
jost__ left12:32
digifiv5eGuest7947612:32
mikecmpbll joined12:33
cavallari doesnt have a git force merge??12:34
joeyDB_ left12:34
osse what would that do?12:34
cavallari force the upstream update12:34
jost joined12:34
EminenceHC left12:34
rishiraj_ joined12:34
osse maybe it is updated12:34
Seveas -Xtheirs12:34
osse !repo12:34
gitinfo Repo is a tool produced by Google for the AOSP project(and others) which wraps git and provides its own set of commands. While it is possible to use git with repositories that are managed by repo, it is not always easy. http://source.android.com/source/version-control.html12:34
osse !llol12:34
rishiraj left12:35
osse etc.12:35
!lol12:35
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all12:35
otter768 left12:35
mikecmp__ left12:36
sebhoss joined12:36
estan joined12:37
encod3 joined12:37
leolrrj joined12:38
jnavila_ joined12:38
jnavila left12:38
estan hi folks. going to be doing some work at a place that is still on SVN. is it possible for me to start working with a local git repo, and then at a later point, link it with their SVN repo using git-svn and git svn dcommit all my commits?12:39
zacg joined12:39
estan (my question is really if it's possible to convert at a git repo to use git-svn at a later point)12:39
Seveas estan: down that road lies pain.12:39
RichiH estan: you should clone from their svn instead of starting with a new repo12:39
Seveas make them see the light and do a one-off conversion :)12:40
estan i know that. but at this point i don't have access to the SVN repo.12:40
i knew i'd get these suggestions here :) of course that is their long term plan.12:40
so.. a kind of post mortem git -> git-svn conversion is a bad idea (tm)?12:40
osse you could create a git-svn repo when the time comes, and then graft your own onto it12:41
skul joined12:41
estan i'd love to just get started with git now, locally, and then later replay my commits into their repo when i get access.12:41
osse I don't think it will be a big problem12:42
Seveas you could do that with format-patch and apply12:42
estan osse: yea. that's what i'd like to do. it's how that grafting would be done i'm unsure about.12:42
ah.12:42
okay. i'd just wanted some confirmation that it will be possible. then i'm happy.12:42
osse just note down which revision of the code from SVN repo you base your git repo on12:42
estan (as happy as i can be with the prospect of using SVN :) )12:42
bitkiller left12:43
lsiv568 joined12:43
tvw joined12:44
osse estan: the grafting this goes something like this: you create a .git/grafts file that contain a bunch of SHA1 that basically says "Desptie of what it says in the database the parent commit of foo is bar". The nyou can use filter-branch to rewrite what needs rewriting to make that the truth. I can't remember the exact details, but it isn't hard.12:44
estan osse: ah. but for this project, i will start completely from scratch. that is, later on i will replay my work into a new directory in their SVN repo.12:44
osse that's even easier12:44
estan \o/12:44
mezod joined12:45
osse then I'd structure the git repo so that you don't have to move anything around when the time comes12:45
(but that's not impossible to fix at a later stage either)12:45
jottr left12:45
estan hm, no i don't think i should need to move anything at all? i'm just interested in how i can use git-svn to take an existing git-only repo, and link it up with the SVN repo.12:46
cavallari to commit changes to a repository wich I dont have access... only via fork??12:46
osse yes12:46
cbreak cavallari: a clone is a fork12:46
EugenA joined12:46
cbreak you can commit to your local repository since you own it12:46
c74d left12:46
EugenA i've done git checkout 8g7f66 .12:46
estan s/the SVN repo/a directory in the SVN repo/12:47
EugenA now git status says: your branch is ahead of 'origin/staging' by 7 commits12:47
osse estan: what I mean is that I recommend you create the subdir your code will eventually live in immediate, so that you don't have to fiddle with your git repo before crunching it into the git-svn repo12:47
cdown joined12:47
cavallari cbreak: i am fixing some codes at another repository12:47
not mine12:47
EugenA how can I undo my first command?12:47
cbreak cavallari: when you clone it, then it's yours12:47
osse EugenA: is that '.' part of the command you did ?12:47
EugenA yes12:48
zadock left12:48
osse EugenA: git checkout HEAD .12:48
cbreak EugenA: checkout won't change how much ahead you are12:48
EugenA: it's unrelated.12:48
cavallari doesnt seems mine12:48
=(12:48
osse cavallari: !lol12:48
gitinfo cavallari: A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all12:48
cbreak cavallari: why not? :)12:48
bin joined12:48
bin left12:48
bin joined12:48
estan osse: ah. i see. that's probably a good idea then yes. though i think i was planning on working only against a subdirectory in their SVN, not the full repo (they're of course not following the standard SVN layout, and have tons of crap in the repo which i'm not interested in).12:48
osse cbreak: you cannot push to where you cloned from if that is someone elses12:48
bin left12:48
cbreak osse: irrelevant12:48
osse oops12:48
that was for cavallari12:48
cavallari hahaha12:49
osse cbreak: I know it's irrelevant, but I think that is the misunderstanding12:49
cbreak committing will work.12:49
cavallari so... i need to fork isnt?12:49
and create a pull request12:49
cbreak cavallari: just commit and send a patch12:49
cavallari how to send a patch?12:49
cbreak cavallari: or what ever else that team wants you to do to submit changes12:49
ItSANgo left12:49
cbreak cavallari: open your e-mail program12:49
cavallari: and attach the git format-patch created file12:50
fooforge left12:50
ItSANgo_ joined12:50
cbreak then send it to someone that wants the changes12:50
osse cavallari: the owner of the original repo will know how they prefer you to send your improvements, not us. If it's on github then it's most likely a pull request12:50
ItSANgo_ left12:50
haptiK joined12:50
krv joined12:50
beautifulmind joined12:50
ItSANgo_ joined12:51
iveqy cavallari: it of course depends on how the one you're sending the patch to want to have it recieved12:51
if you're contributing to an open source project they usually have documentation about this.12:51
rishi left12:51
rishi joined12:52
cavallari lol, too complicated to me12:52
haptiK left12:52
cavallari i will give up those fixes for now12:52
c74d joined12:52
iveqy cavallari: to complicated to ask how the one you want accepting your patches want them?12:52
EugenA I want to revert last 7 commits. So, I should : git checkout 0d1d7fc32 . (from the root of repo?) and then git commit right?12:53
cdown left12:53
settermjd left12:53
osse yes12:53
EugenA after that git log will show reverted commits or not?12:54
settermjd joined12:54
osse it will12:54
iveqy osse: why not just do a git reset?12:54
osse why do you ask me?12:55
iveqy osse: because you recommended something else. I wanted to know your opinions12:55
bitkiller joined12:55
osse did I ? I just answered the question12:55
Dragooon joined12:56
EugenA git-reset - Reset current HEAD to the specified state. Sounds better for me12:56
c74d left12:57
Entomo left12:57
asturel_ joined12:57
Junior left12:57
cdown joined12:58
jost_ joined12:58
nowhere_man joined12:59
hexagoxel joined12:59
asturel left12:59
asturel_asturel12:59
fstd left13:00
dythmhdao joined13:00
rishi left13:00
rishi joined13:00
rishi left13:00
krv Hi, I am KRV.I like to contribute to GIT project and I would like know whether there are mini projects like last year GSOC where I could learn a bit.13:00
fstd joined13:00
c74d joined13:01
jost left13:01
doev left13:03
rishi joined13:03
Gama11 joined13:03
dm7freek joined13:04
rishi left13:04
EugenA left13:04
osse just realizes he has no clue on how do find reported and unfixed bugs in Git. And that sucks.13:06
harish joined13:06
rishi joined13:06
rishi left13:06
joo-_ joined13:06
cdown left13:06
cagedwisdom joined13:07
rishi joined13:07
leolrrj left13:07
dm7freek left13:08
osse krv: there will be mini projects in GSoC this year it seems. And there was last year too13:09
but no idea on how to dig up that info except searching the mailing list13:09
snearch joined13:10
rishi left13:10
Junior joined13:10
rishi joined13:11
krv thanks osse13:12
arup_r joined13:12
arup_r__ joined13:13
leolrrj joined13:13
cdown joined13:14
paulweb515 joined13:15
sybariten back13:15
ghostpl joined13:15
sybariten iveqy: any idea how i may have "told git about those files previously" ? I really cant remember13:15
arup_r__ left13:16
m8 left13:16
arup_r__ joined13:16
arup_r__ left13:16
arup_r__ joined13:17
arup_r left13:17
arup_r__ left13:17
osse git-add13:17
mtakkman joined13:17
sybariten aaah13:18
and that doesnt stick in the ignore-file aftwerwards, but in some .git setting i suppose?13:18
arup_r joined13:18
snearch left13:19
mmitchell joined13:19
paulweb515 left13:19
endiruna joined13:20
warthog9 joined13:20
ghostpl left13:21
jadne joined13:21
osse i don't understand the question13:21
!ignore_tra13:21
gitinfo [!ignore_tracked] Git only applies ignore patterns to untracked files. You can't use ignore patterns to ignore changes to files that are already tracked by git. To remove files only from git, but keeping them on disk, use git rm --cached <file>. Still, see https://gist.github.com/1423106 for ways people have worked around the problem.13:21
danzilio joined13:22
JohnBat26 joined13:24
uuoxo left13:24
Nizumzen joined13:24
russt joined13:25
russt left13:25
warthog9 left13:25
basiclaser joined13:25
Cdvq joined13:26
jayeshsolanki left13:26
snearch joined13:26
Bleakwise left13:27
Cdvq left13:27
mtakkman left13:27
Yesu joined13:28
monbro left13:28
Acidnerd joined13:28
mezod left13:29
Takle joined13:29
Guest79476 left13:29
Guest79476 joined13:29
m0ltar joined13:29
Guest79476daynaskully13:29
Polyatomic left13:30
toothrot joined13:30
joeyDB_ joined13:30
JagaJaga joined13:30
Dorf joined13:30
wachterjohannes left13:31
qsuscs krv: start with not calling it !GIT13:31
gitinfo krv: Git is not an acronym. Writing it in all caps is heresy and will be punished by Subversion or SCCS for more grievous offences. It's "git" or "Git". Thank you for your help in making the world a better place. 48a8c26c625a4d3631c4f614bceb38933e74140813:31
livingstn joined13:32
bremner wth is that hash, some easter egg?13:33
jast not exactly13:33
Seveas https://github.com/git/git/commit/48a8c26c625a4d3631c4f614bceb38933e74140813:33
paulweb515 joined13:33
ELFrederich joined13:34
bremner ah, so the that anti-GIT is some junio-come-lately-ism13:34
lsiv568 left13:34
bremner fight the powah!13:34
ahem.13:35
joeyDB_ left13:35
jatt left13:35
osse GIT looks ugly13:35
dannymichel left13:35
deuterium joined13:35
Yesu left13:35
Seveas /slap bremner13:35
gbso joined13:35
rns2 joined13:35
wachterjohannes joined13:35
stamina joined13:36
bremner I accept that.13:37
bollullera joined13:37
qsuscs junio wasn’t even the author of that commit13:37
HoMM joined13:38
HoMM left13:38
doev joined13:38
HoMM joined13:38
HoMM left13:38
bremner thomas-come-lately is not as funny13:38
HoMM joined13:38
HoMM left13:38
Seveas tommy-come-lately would be more appropriate13:39
HoMM joined13:39
qsuscs i do not come late :<13:39
Seveas qsuscs: TWSS13:39
osse nice guys finish last13:39
lindenle joined13:39
qsuscs Seveas: stop offending me!!11111!!!!oneleven13:40
Seveas feels a strong urge to feed qsuscs to the rabbits.13:41
Seveas https://www.youtube.com/watch?v=XcxKIJTb3Hg13:41
Acidnerd left13:42
qsuscs i don’t need to put even more sarcasm markers there, do i?13:42
rns2 left13:42
Seveas nope. But I take any chance to sneak in a monty python reference.13:42
zacg left13:42
Gizburdt left13:43
atamanroman left13:43
warthog9 joined13:44
lindenle left13:44
jMyles left13:44
FunkyAss left13:45
rns2 joined13:45
jatt joined13:47
jatt left13:47
jatt joined13:47
snearch left13:47
apurcell joined13:47
CussBot left13:47
Consuela joined13:48
Consuela left13:48
CussBot joined13:48
zenith__ joined13:48
Neozonz|Disc joined13:49
Neozonz|Disc left13:49
Neozonz|Disc joined13:49
tokik joined13:49
Gizburdt joined13:50
sebhoss left13:50
lsiv568 joined13:50
tokik left13:50
albel727 joined13:51
freimatz left13:52
apurcell left13:52
tokik joined13:52
elementalest left13:52
Acidnerd joined13:52
cvanball left13:52
elementalest joined13:52
elementalest left13:52
elementalest joined13:52
hardenedapple joined13:53
beckyconning_ left13:53
tier joined13:54
DolphinDream joined13:54
DolphinDream left13:54
intellix left13:54
bibi-23 joined13:55
obr7 joined13:55
obr7 hi13:55
gitinfo obr7: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.13:55
gitinfo set mode: +v13:55
cvanball joined13:55
sebhoss joined13:55
bibi-23 hello, "git branch" shows me 2 branches, but autocompletion for "git checkout" shows 3 branch13:56
obr7 is it possible to "merge" two files? I mean give them the same content and delete one and git detects a renaming?13:56
bibi-23 how can I delete it, "git branch -d branchname" doesn't work13:56
denete joined13:56
seschwar left13:56
denete left13:56
sebhoss left13:56
hvxgr left13:57
seschwar joined13:57
denete joined13:57
Ragnar left13:58
beautifulmind left13:58
wrouesnel joined13:59
cavallari left14:00
obr7 left14:00
obr7 joined14:00
snearch joined14:01
snearch left14:01
gbso left14:01
zhangyh26258 left14:01
ben_alman_ben_alman14:02
bollullera left14:02
mizu_no_oto left14:02
mezod joined14:02
Iga joined14:02
fooforge joined14:04
hyperair joined14:04
shinnya joined14:04
Iga left14:04
bgerber left14:04
th3fallen joined14:04
arup_r left14:04
hvxgr joined14:04
doev left14:04
zumba_ad_ left14:05
intransit joined14:05
s8321414 left14:05
s8321414 joined14:06
cbreak bibi-23: git branch -a? :)14:06
obr7: that's not a problem14:06
git commits are all full snapshots anyway14:06
smccarthy joined14:07
bibi-23 cbreak: yes but it's as a remote, "remotes/name/branch", I don't understand why this one is autocompleted and not the other remote branches14:08
s8321414 left14:08
Xiijs joined14:08
ghostpl joined14:08
Xiijs left14:09
bibi-23 cbreak: my bad actually all the remotes are autocompleted14:09
Juzzika left14:10
paul424 left14:10
bgerber joined14:10
moparisthebest left14:10
wopx joined14:10
ErKa joined14:11
linuxmint left14:11
Juzzika joined14:12
mezod left14:12
ghostpl left14:12
jerius joined14:12
toothrot left14:13
zarubin left14:13
angliscwork joined14:14
Vile left14:14
ghostpl joined14:14
_Vi left14:15
Dragooon left14:15
KevinTS_ joined14:15
studmuf joined14:15
diegoviola left14:16
devoldmx3 joined14:18
KevinTS left14:18
sburgess joined14:18
ELFrederich adding the tarball for Git 2.3.0 to a new Git repo takes me like 2.3 seconds. But when I run all the corresponding "git" commands to do the same via hash-object and mktree it takes like 8.5 seconds. http://paste.pound-python.org/show/i3Ps4VvhXj2NoYFSFJ0I/14:19
any idea how I can speed this up?14:19
CEnnis91 joined14:20
diegoviola joined14:21
wopx left14:21
devoldmx left14:21
maxvi joined14:21
FreezingCold joined14:21
zarubin joined14:21
moparisthebest joined14:21
Gizburdt left14:22
zarubin left14:22
ELFrederich what is "git add ." doing under the hood that is so much faster than running individual "git hash-object" and "git mktree" commands?14:22
Takle left14:23
oztx joined14:23
oztx left14:24
stamina left14:24
ghostpl left14:24
Gizburdt joined14:24
skul left14:24
osse ELFrederich: calling hash_object() and mk_tree() instead of calling fork() and exec() over and over14:24
Rdt joined14:25
Gizburdt left14:25
Vadimus joined14:25
zenith__ left14:25
Gizburdt joined14:25
zenith__ joined14:26
hackvana joined14:26
Gizburdt left14:26
ELFrederich osse, so with "git add ." is Git running anything in parallel?14:26
... or is it waiting for each forked process to finish before running the next?14:27
zenith__ left14:27
osse ELFrederich: I don't know whether anything is in parallell, but my guess is there is zero forked processes14:27
zenith__ joined14:27
Ragnar joined14:27
ToAruShiroiNeko left14:27
Nizumzen left14:28
ToAruShiroiNeko joined14:28
ELFrederich osse, oh... you're saying my bash example is calling fork and exec over and over14:28
osse yes14:28
ToAruShiroiNeko left14:28
IIT joined14:29
ToAruShiroiNeko joined14:29
IIT left14:29
ELFrederich osse, ultimately I'm trying to do this from Python calling git through the "sh" module... I just put it into bash as an intermediate to see if it was slow in bash also14:29
mizu_no_oto joined14:29
ToAruShiroiNeko left14:29
ELFrederich maybe I should look at mercurial since it is implemented in Python... or find an actual Git library in Python rather than using the sh module which just calls subprocesses14:29
ToAruShiroiNeko joined14:29
osse ELFrederich: if you're "shelling out" can't you run git add directly then?14:29
jmpp joined14:29
jmpp left14:29
jmpp joined14:29
osse http://www.pygit2.org/14:29
jmpp_ left14:30
ToAruShiroiNeko left14:30
krv left14:30
ToAruShiroiNeko joined14:30
ELFrederich osse, yes I can run git directly... but I'm not using the workspace. I'm just using Git as an object store for different directories.14:30
kanuku left14:30
ToAruShiroiNeko left14:30
phantomtiger joined14:30
smithd_ left14:30
smithd_ joined14:30
jatt left14:31
joeyDB_ joined14:31
Seveas ELFrederich: then you really don't want hg. It's not an object store at all :)14:31
ToAruShiroiNeko joined14:31
jatt joined14:31
EminenceHC joined14:31
Seveas but look at pygit2.14:31
jatt left14:31
jatt joined14:31
Rdt left14:31
otter768 joined14:31
AaronMT joined14:31
ELFrederich osse, for example... my Git directory is in /tmp/db (meaning I have /tmp/db/.git.... so is it possible to use a single "git add" command to add a directory that exists outside of the workspace /tmp/db ?14:31
Seveas you can't even use git add at all. You'll need to hash-object14:32
osse ELFrederich: yes. git --work-tree=/somewhere/outside --git-dir=/tmp/db/.git add foo14:32
heftig joined14:32
vitiy joined14:32
ELFrederich osse, HOORAY... I'll try it out14:33
tjm_jimmy left14:33
kanuku joined14:33
zivester joined14:33
ELFrederich osse, can I use that --work-tree and --git-dir to checkout to a different directory as well?14:33
osse yes14:33
devoldmx3 left14:33
ELFrederich osse, I asked here yesterday... maybe the wrong people were answering. Thanks. I'll try this out14:34
vitiy left14:34
r0073r joined14:34
osse could also be that I misunderstood14:34
since Seveas disagrees14:34
Oyni joined14:34
Oyni left14:35
r0073r left14:35
joeyDB_ left14:35
roelmonn_ joined14:35
ELFrederich osse, Seveas maybe I'm bad at explaining what I wanted to do14:35
Takle joined14:35
russt joined14:35
EminenceHC left14:36
r0073r joined14:36
ELFrederich ... makes this code useless http://paste.pound-python.org/show/xkfi2srsMzRqqhozVLMr/14:36
Ycv joined14:36
oriba_ joined14:36
otter768 left14:36
OneEyedWill joined14:36
ELFrederich it manually traverses a tree calling hash-object and mktree14:36
r0073r left14:36
IIT joined14:36
ELFrederich with this new knowledge... now I need to decide if I use a different .git dir for each object or store them all into one .git directory14:37
... probably a single .git directory since my items will be referencing each other14:37
diamonds joined14:37
gunnaro_ left14:37
Ycv left14:37
studmuf left14:37
diamonds rebase worksflow vs. --no-ff workflow (???)14:37
I've always done rebase, new gig wants no-ff14:38
I don't totally get it14:38
roelmonnens left14:38
hans_s joined14:38
diamonds does it group all commits regardless of the # of upstream commits, when they were, or whether you had to merge/rebase intermittently (to get some important new change in your feature branch)?14:38
ghostpl joined14:39
joo-_ left14:39
ErKa left14:39
oriba left14:39
jerematic joined14:40
JagaJaga left14:40
EminenceHC joined14:40
ghostpl left14:40
mnass left14:41
OneEyedWill left14:41
studmuf joined14:41
mostlybadfly left14:42
asoneth joined14:43
zumba_addict joined14:43
nikio_ joined14:44
mcrutchfield joined14:44
dannymichel joined14:44
hahuang62 left14:44
hardenedapple left14:45
EminenceHC left14:45
cbonobo joined14:46
CKyle joined14:46
Gizburdt joined14:47
Takle left14:48
interrobangd joined14:48
ghostpl joined14:48
d10n-work joined14:49
cvanball left14:49
chitopunk joined14:49
Takle joined14:50
Bass10 left14:50
Aune joined14:50
macabre joined14:51
acolson left14:52
elementalest left14:52
jatt` joined14:52
FreezingAlt joined14:52
elementalest joined14:52
elementalest left14:52
elementalest joined14:52
dm7freek joined14:52
ghostpl left14:53
zarubin joined14:53
Kulrak left14:55
zumba_addict left14:55
CarlFK joined14:55
zumba_addict joined14:55
lqi left14:55
FreezingCold left14:55
macabre left14:56
oriba_oriba14:56
kanuku left14:56
lqi joined14:56
JagaJaga joined14:56
enterprisedc left14:56
dreiss joined14:56
dannymichel left14:56
dm7freek left14:57
phantomtiger left14:58
zarubin left14:59
SFLimey left14:59
wahibdon joined14:59
lsiv568 left14:59
lqi left15:00
cjwilburn joined15:00
cdown left15:01
wahibdon I a bit confused. I had a test server setup to hold bare repos and I named all the folders like project.repo. when I would clone these projects it would clone them without the .repo "extension" in the folder. Now on this new server when I clone the .repo is there when I clone. What did I miss in setting up this production server?15:01
xaa left15:02
AAoK left15:02
PeterBooker joined15:03
irqq left15:03
FunkyAss joined15:03
grawity nothing, it's a client decision what to name the local directory.15:04
cdown joined15:04
OneEyedWill joined15:04
flavi0 joined15:04
irqq joined15:04
foist joined15:05
tristanp joined15:05
th3fallen Hey guys stupid question, if we have a submodule set to track a branch (master) will we need to update the subproject commit anymore? Or will it do it on its own?15:06
lsiv568 joined15:06
steele joined15:06
hardenedapple joined15:06
pheaver joined15:06
mezod joined15:06
studmuf left15:07
zumba_addict left15:08
zumba_addict joined15:08
wahibdon grawity, cool. thanks. I don't know what happened but I will dig into the source tree settings.15:08
asoneth left15:08
m0viefreak th3fallen: you need to manually update it15:08
rap joined15:08
moritz th3fallen: it won't ever update magically15:08
grawity wahibdon: note that the usual extension for bare repos is '.git' (or none at all)15:08
Mzuz joined15:09
Kulrak joined15:09
Kulrak left15:09
Kulrak joined15:09
wahibdon dangit!15:09
Junior left15:09
wahibdon what a fool I am.15:09
macabre joined15:09
grawity the main git client will strip .git but doesn't care about other suffixes15:09
th3fallen Well damn...15:09
netcarver left15:09
th3fallen Thanks m0viefreak and moritz15:09
Mzuz left15:09
lsiv568_ joined15:09
lsiv568 left15:09
a_le left15:10
hackvana Hello folks. I let the branch named "master" fall behind - about 18 months behind. I'd like to move the name to a very recent commit, one named "prod-unittests". I've followed the instructions on this page to move the name "master" to point to the same commit as "prod-unittests". But I'm having trouble pushing this change to my origin server.15:10
kanuku joined15:10
hackvana How can I move the "master" branch pointer on my origin server?15:10
zee joined15:10
a_le joined15:10
hackvana http://www.linux-pages.com/2011/03/how-to-move-a-branch-in-git/15:10
tokik left15:11
hackvana I followed "move just branch name"15:11
Spacew00t joined15:11
jatt left15:11
zee left15:11
jatt` left15:11
grawity that's a weird way of doing it, but okay15:11
so now both `git log -1 master` and `git log -1 prod-unittests` show the same commit locally?15:12
hackvana I'll try.15:12
grawity `git push origin +master` should fix it on the server15:12
hackvana (I'm a git newbie btw)15:12
ghostpl joined15:12
tuooe joined15:12
hackvana I'll try that then. (I have the repo on the server backed up)15:12
mizu_no_oto left15:12
ELFrederich osse, using "git --work-tree=/tmp/some_data --git-dir=/tmp/db/.git add ." How is it possible for me to find the top level tree object it created?15:12
zumba_addict left15:12
enterprisedc joined15:13
JagaJaga left15:13
hackvana I was trying "git push origin master". Seems the "+" makes all the difference!15:13
marscher joined15:13
hackvana Looks good now, thank you!15:13
(Where can I learn more about the "+"?)15:13
osse hackvana: that equivalent to push --force15:13
OneEyedWill left15:13
osse ELFrederich: not sure15:13
micechal left15:14
seschwar left15:14
MasterPiece left15:14
osse ELFrederich: git rev-parse :0:. I think15:15
kanuku left15:15
zumba_addict joined15:15
MasterPiece joined15:15
flavi0 hmm. if my local and origin master is two commits ahead and one behind upstream master, how would i proceed normally? do a local merge commit of the upstream changes, push to origin and issue pull request? that way afterwards there would be the superfluous merge commit in upstream history? is there a cleaner way of doing this?15:15
kanuku joined15:15
zumba_addict left15:15
zumba_ad_ joined15:15
flavi0 like pushing my 2 commits to a local branch first, then pulling upstream changes and rebasing on them?15:15
osse flavi0: rebase your commits15:15
flavi0: git rebase origin/master15:16
then you will be ahead15:16
no need to create a local branch first15:16
hackvana Ahh, git push origin +master is mentioned in the man page for git push. It says that the branch will then no longer have a symbolic name, and therefore will be deleted by a gc. Good thing I tagged it first :-)15:16
flavi0 osse: ok but therefore i need to pull the changes into origin first right?15:16
the upstream changes15:16
tuooe left15:16
hackvana grawity: Thank you.15:16
ELFrederich osse, hmm... doesn't seem to work15:16
studmuf joined15:16
rishiraj_ left15:17
ghostpl left15:17
achadwick joined15:17
chiemseesurfer_ joined15:17
osse flavi0: yes: git fetch15:17
iao joined15:18
osse ELFrederich: how so15:18
Gamecubic joined15:18
zumba_addict joined15:18
ELFrederich osse, maybe I should ask without the --work-tree and --git-dir15:18
zenith___ joined15:19
MLM joined15:19
zivester left15:19
Kicer86 joined15:19
iao left15:19
ELFrederich I just initialized a new repo and did "echo foo > bar && mkdir spam && echo hello > spam/eggs" from within the repo's directory... so nothing special there15:19
highcup joined15:19
ELFrederich osse, so when I do "git add ."... how would I retrieve the top level tree?15:19
zumba_ad_ left15:20
ELFrederich git rev-parse :0:15:20
:0:15:20
fatal: Path '' does not exist (neither on disk nor in the index).15:20
Guest71892 joined15:21
ErKa joined15:21
zumba_ad_ joined15:22
jatt joined15:22
zenith__ left15:22
Marcus_ joined15:22
jatt left15:22
jatt joined15:22
zumba_addict left15:22
jatt` joined15:22
Marcus_Guest7144815:22
Guest71892 left15:22
craigp left15:23
ELFrederich osse, I don't think the add even made any trees. I just run "git write-tree" and I get it.15:23
osse, thanks15:23
ams__ joined15:24
osse ELFrederich: you need the . after15:24
ELFrederich osse, even with the . I got Path '.' does not exist15:24
osse hm15:25
im8bit joined15:25
osse write-tree shouldn't be necessary because git-add already does hthat15:25
ELFrederich osse, I don't think so... I only see blob objects and no tree objects until I run write-tree15:25
jatt` left15:25
jatt left15:26
ngi joined15:26
zumba_ad_ left15:26
KevinTS_ left15:26
osse goddammit15:26
ELFrederich git init && mkdir -p one/two/three/four/five/six/seven/eight && touch one/two/three/four/five/six/seven/eight/foo && git add . && find .git/objects -type f15:26
zenith___ left15:27
ELFrederich osse, I only see one file.. its a blob15:27
osse same15:27
ngi left15:27
ELFrederich after a write-tree I see 10 objects15:27
cmo joined15:28
hebz0rl left15:28
ghostpl joined15:28
lindenle joined15:28
im8bit indeed, you need the write-tree15:28
axl_ joined15:29
Dougie187 joined15:29
cmo left15:30
xk_id left15:31
joeyDB_ joined15:31
ghostpl left15:32
AAoK joined15:32
wicope joined15:32
dachary does someone have a way to display how a cherry-pick conflict was resolved ? something simpler than http://dachary.org/?p=3546 hopefully ;-)15:33
lindenle left15:33
bitkiller left15:33
zumba_addict joined15:33
dythmhdao left15:33
bket left15:33
ghostpl joined15:33
sebhoss joined15:34
SirRetnuh joined15:34
bket joined15:34
OneEyedWill joined15:35
zumba_addict left15:35
SirRetnuh left15:35
gargola joined15:35
Not_Whatever left15:36
zumba_addict joined15:36
h4ml3t left15:36
rath left15:36
studmuf left15:36
apurcell joined15:36
eletuchy left15:36
zumba_addict left15:37
eletuchy joined15:37
stamina joined15:37
interrobangd left15:37
MrJones joined15:38
MrJones hi15:38
zumba_addict joined15:38
lsiv568 joined15:38
mlechner left15:38
qsuscs MrJones: !hi15:39
gitinfo MrJones: [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice.15:39
_Vi joined15:40
netcarver joined15:40
apurcell left15:41
lsiv568_ left15:41
intellix joined15:41
Trudko left15:41
tanuck left15:41
paulweb5151 joined15:42
mnml joined15:42
tgummerer left15:42
EminenceHC joined15:42
eagles0513875_ joined15:42
eagles0513875_ left15:42
eagles0513875_ joined15:43
chitopunk !backups15:43
gitinfo [!backup] Worried about your data while trying stuff out in your repo? The repository in its entirety lives inside the .git directory in the root of your work tree so to backup everything `cp -a path/to/workdir path/to/backup` or equivalent will suffice as long as the repo is not modified during backup. See also http://sethrobertson.github.com/GitBestPractices/#backups15:43
paulweb515 left15:44
thiago joined15:44
zadock joined15:44
zumba_addict left15:45
pheaver left15:45
zumba_addict joined15:45
tgummerer joined15:45
roelmonn_ left15:45
zumba_addict left15:46
zumba_ad_ joined15:46
roelmonnens joined15:46
roelmonnens left15:46
EminenceHC left15:47
MasterPiece left15:48
zumba_ad_ left15:48
zenith__ joined15:48
zumba_addict joined15:50
skylite_ left15:50
zumba_addict left15:51
zumba_addict joined15:51
ojacobson joined15:51
dsirijus left15:51
kaiten02 left15:51
a_le_ joined15:52
a_le left15:52
zumba_addict left15:52
Err404NotFound joined15:52
Error404NotFound left15:52
madtalentz joined15:53
SumDude joined15:54
plasticle left15:54
EminenceHC joined15:54
mkaesz left15:54
mkaesz joined15:55
abishek joined15:55
jadne left15:56
abishek I need to get the list of all commits from the last `git pull` and want to store that on a bash script variable. Could somebody advice on how to do that?15:56
SirRetnuh joined15:56
osse abishek: bashscriptvariable=$(git rev-list ORIG_HEAD..HEAD)15:57
tens0r joined15:57
MasterPiece joined15:57
zei joined15:59
mkaesz left15:59
abishek osse, that gives me only the list of git versions15:59
dreiss left15:59
Juzzika left15:59
abishek can I get the commit message as well15:59
osse log instead of rev-list15:59
but storing all of that in one variable sounds like a bad idea16:00
zei left16:00
amcgee7 joined16:00
mcrutchfield left16:00
Lvjq joined16:01
abishek osse, I just need to store and send that as a message to a webhook16:02
Silmarilion left16:02
shift8 joined16:03
OneEyedWill left16:03
pm90_ joined16:03
FunkyAss left16:03
studmuf joined16:04
shift8 hi all - i migrated an svn repository to git with history, but then needed to update the svn repository a number of times. is there some way to migrate the changes we made in svn to git?16:04
asoneth joined16:04
EdwardIII hrm i just did 'git pull' from master where someone else had made changes16:05
and git did a fast-forward16:05
is that going to cause problems?16:05
zenith__ left16:05
pm90_ left16:05
sebhoss left16:05
pm90_ joined16:06
chiemseesurfer_ left16:06
CustosL1men left16:06
aspiers left16:06
grawity no, why would it16:06
oojacoboo joined16:06
jost_ left16:06
endiruna left16:06
hardenedapple left16:07
hardened1 joined16:07
d0nkeyBOB joined16:07
aspiers joined16:07
EdwardIII grawity: i don't know, i'm scared of FF because i'm primitive16:07
grawity: FF can rewrite history and cause problems when you do that and push back up sometimes, right?16:07
grawity no16:07
EdwardIII doesn't fast forward work kinda like a rebase?16:08
grawity no, it's almost like the opposite16:08
it's pretty much the least harmful pull you can get16:08
netcarver left16:08
runev left16:08
jagob left16:08
grawity either you're mixing up FF and non-FF merges, or you're mixing up FF and something entirely different16:08
osse like for example a can of beans16:09
asoneth left16:09
tang^ joined16:09
sburgess left16:09
netcarver joined16:10
EdwardIII thing is, if that was work on someone elses's branch (rather than master) you'd normally do a --no-ff merge, right?16:10
ToAruShiroiNeko left16:10
grawity if you were merging a feature branch to master, for example?16:10
bofh joined16:10
grawity --no-ff is common for that, but only because it nicely marks where the work on feature started and finished16:11
bofh Hello! I have branch "master", branch "develop", branch "bugfix" based on master, and branch "my-bugfix" based on develop. How do I put last 3 commits from my-bugfix to bugfix?16:11
nour left16:11
bofh cherry-pick is the only option?16:11
grawity bofh: `git cherry-pick` them16:11
JEEB left16:11
marscher left16:12
sebhoss joined16:12
Gizburdt left16:13
hardenedapple joined16:13
stamina left16:13
micechal joined16:14
jagob joined16:14
ThomasLocke left16:14
bb010g joined16:14
tyreld_ joined16:15
ToAruShiroiNeko joined16:15
intellix left16:15
hardened1 left16:15
tchan left16:15
ghostpl left16:16
liamkeily joined16:16
hebz0rl joined16:16
obr7 left16:17
zumba_addict joined16:17
teufelChiCoder joined16:18
encod3 left16:19
thedodd joined16:20
MasterPiece left16:20
paulweb5151paulweb51516:20
paulweb515 left16:20
paulweb515 joined16:20
studmuf left16:21
sebhoss left16:23
Xiti left16:23
Xiti joined16:23
MasterPiece joined16:24
encod3 joined16:24
mkjackson joined16:24
studmuf joined16:25
zenith__ joined16:25
thiago left16:25
Lvjq left16:25
Takle left16:25
endiruna joined16:26
mizu_no_oto joined16:26
ehmatthes joined16:26
FlipperPA joined16:26
haptiK joined16:28
Takle_ joined16:29
adamben joined16:29
TomyWork left16:29
haptiK left16:30
JohnBat26 left16:30
marienz joined16:30
Nikhil_D left16:31
sebhoss joined16:31
Nikhil_D joined16:31
cdown_ joined16:32
otter768 joined16:32
polyzen joined16:32
xk_id joined16:32
kanuku left16:32
mizu_no_oto left16:33
cjwilburn left16:33
mkjackson hey folks, I'm using git svn fetch but I'm noticing that it isn't including a folder from the SVN update. the gitignore file doesn't include this directory and there is no response in 'git svn show-ignore'16:33
cjwilburn joined16:33
mkjackson well, no output16:33
petersr joined16:33
bofh left16:33
cdown left16:34
osse mkjackson: is the folder empty in the svn repo ?16:34
milki ignore wouldnt apply to a fetch16:34
mkjackson nope, it definitely has files16:34
mizu_no_oto joined16:35
cdown_ left16:36
sebhoss left16:37
otter768 left16:37
melter joined16:37
cdown joined16:37
cjwilburn left16:38
tchan joined16:38
mkjackson OK, so maybe I just don't understand how SVN works (it's been a while). Looks like a file was added that didn't change?16:39
cdown left16:39
mkjackson like it's saying "this file was added" but it was already there and svn import is just saying "nothing to see here, whatever, ignore"16:39
rns2 left16:39
rns2 joined16:40
MrRoot left16:40
mkjackson holy crap it is16:40
looks like the directory they committed is often regenerated16:40
n00b devs just commit all changes16:40
rath joined16:41
cdown joined16:41
ghostpl joined16:41
osse loves modified: imstupid.o16:41
mkjackson svn says "hmmm... original was deleted and now here's a new one. let's just mark that it's deleted and add all the new stuff"16:41
dm7freek joined16:41
mkjackson too dumb to realize that it's the same thing under the hood but git recognizes it and ignores16:41
hooray for intelligent software16:42
okanck left16:42
mkjackson :-/16:42
FunkyAss joined16:42
CarlFK left16:43
monbro joined16:43
ehmatthes left16:43
psoo left16:45
ghostpl left16:45
studmuf left16:45
zarubin joined16:46
zarubin left16:46
MarkyC joined16:46
studmuf joined16:46
dm7freek left16:46
xk_id left16:46
Awhy joined16:47
Awhy left16:48
kpease joined16:48
studmuf left16:48
b100s left16:49
Icjwp joined16:49
MechtiIde joined16:49
sybariten Hm16:51
i'm not sure about the meaning of git saying "new file" when doing git status. How long is it gonna do that?16:52
mkjackson sigh, I love gloating to the uneducated about the inherent benefits of Git over SVN16:52
Artpicre left16:52
sybariten I added a dir with git add -f thedir , in order to get it supervised despite the fact that my gitignore file says "*"16:52
endiruna left16:52
cagedwisdom left16:52
mkjackson was showing my supervisor how I have a long journal-like history of commits and merges while the "svn" branch is almost silent with gigantic cumbersome commits that are few and far between16:53
sybariten So now the dir is maybe watched ... but then i changed a file, juist to hacve it appear among the "modified" files. But it, and many others, are "new" ...16:53
dm7freek joined16:53
_Atom_ joined16:53
mkjackson left16:53
studmuf joined16:54
_ikke_ sybariten: It's new as long as it hasn't been comitted before16:54
lsiv568 left16:54
bsanford joined16:54
SirRetnuh left16:55
cromero joined16:55
lsiv568 joined16:55
MasterPiece left16:55
Solid1 joined16:56
pheaver joined16:56
SFLimey joined16:57
EminenceHC left16:58
Artpicre_ joined16:58
hans_s left16:58
tens0r left16:58
lsiv568 left16:59
ki0 left16:59
lsiv568 joined16:59
sybariten _ikke_: OK16:59
zenith__ left16:59
shuaib joined16:59
MasterPiece joined17:00
a_le_ left17:00
shuaib left17:00
highcup left17:00
a_le joined17:01
EminenceHC joined17:01
mikecmpbll left17:01
jonnyro joined17:01
EminenceHC left17:01
wachterjohannes left17:01
EminenceHC joined17:02
JEEB joined17:02
sybariten gah i got rid of the new ones, but i still have the same set of "modified" and "deleted" files actually, with git status... (in red text, if that matters) i thought those would also become normal once i did git commit..?17:02
gfixler left17:02
dm7freek left17:02
rehat joined17:02
osse git add -u17:02
now they are green17:02
joeyDB_ left17:03
tier left17:03
lsiv568 left17:03
okanck joined17:04
sybariten but..ok. Shouldnt add be used only when i'm actually adding new thigns to the project? In this case, the things that are in red are my d:\portable\putty\blablabla files. Some files i've edited. If it's in red and "modified" , surely its already added ?17:04
cdown left17:04
rehat I'm kinda new wtih the git setup with this new client. I need to create pull requests in github before my branch is merged in. I get how to do that but do I need to merge the parent branch into my current branch before doing that?17:05
sybariten at some point i'm guessing i have done git add -f d:\portable\putty before ...17:05
jnavila_ left17:05
joelm joined17:05
Icjwp left17:05
osse sybariten: git-add can be used to stage deletions also17:06
mbury left17:06
osse you can use git rm if that is more comfortable :-)17:06
oojacoboo left17:06
Dragooon joined17:06
CheckDavid joined17:06
mostlybadfly joined17:07
Quevin_ joined17:07
sybariten osse: no, i just mean.... i thought this dir must surely already be added? If git sees the file changes?17:07
OneEyedWill joined17:07
munke joined17:08
SirRetnuh joined17:08
osse sybariten: that is not how add works. add does not mean "I want this to be part of the repo". it means "I want this version to be part of the next commit"17:08
sybariten: so all changes in all commits must be added17:08
sybariten osse: man. this is tough shit. :)17:09
tier joined17:09
joeyDB_ joined17:09
studmuf left17:09
jerematic left17:09
thiago joined17:09
hexagoxel left17:10
sybariten osse: ok, thanks for clearing that up. So, for my average newbie actions, is it safe to say that i want to throw in a "git add -u" in there every time ive changed a file somewhere?17:10
Nizumzen joined17:10
osse sybariten: yup17:10
sybariten: you can also do git commit -a17:10
MasterPiece left17:10
osse to do it all in one step17:10
rehat if my develop branch has updates that my current branch does not have, is it normal to merge those updates in master into my branch before making a pull request ?17:11
anli joined17:11
milki i dont think so. you should only pull request what you intend to pull request17:12
Guest71448 left17:12
leolrrj-alt joined17:12
Marcus_ joined17:13
flaguy48 joined17:13
leolrrj left17:13
Marcus_Guest309517:13
xk_id joined17:13
Dougie187 rehat: No, you should only submit a PR for the changes you're making. The person assigned to it might ask you to do that merge if they want you to.17:13
ruediger rehat: If your PR merges fine with master then I wouldn't do it17:13
Dragooon left17:13
ruediger rehat: maybe rebase before the PR, if the branch isn't public17:13
Dougie187 You shouldn't even do it if you get merge conflicts. Unless you're requested to.17:13
Mwr joined17:13
sybariten osse: merci17:13
osse de rien17:13
tchan left17:13
milki moin?17:14
Dougie187 ruediger: and rebasing could break previous commits, which the project might want to be "testable"17:14
rehat ok thanks17:14
tcurdt joined17:14
Terens joined17:14
cavallari joined17:14
jerematic joined17:14
Mwr left17:15
leolrrj joined17:15
leolrrj-alt left17:15
michaelrice joined17:15
imachuchu joined17:15
rehat I think I was using git wrong before haha. I would always merge any updates into my local branch before merging my local branch into master. Just wasn't familiar with this pull request requirement lol17:15
Uavbp joined17:15
rehat I need to do more open source contributions haha17:16
jerematic left17:16
twoface88 joined17:16
jerematic joined17:16
Dougie187 rehat: Basically, you should only merge updates into your branch if you *need* them, and can clearly describe why you need them. If you're doing it "just to make sure you're up-to-date" that's not a good enough reason.17:17
Uavbp left17:17
sybariten but uhh... theres no real way to see which folders ive actually done "git add" on? Or, maybe once again, that question doesnt make sense....17:17
Freetekton joined17:17
Rftaz joined17:18
Freetekton hello17:18
gitinfo Freetekton: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.17:18
osse sybariten: git status17:18
rehat Dougie187: thanks17:18
Freetekton I have a problem here is a screenshot http://i.imgur.com/XtqC4eI.gifv .17:18
osse sybariten: it distinguishes between staged and unstaged changes17:18
oriba left17:18
osse sybariten: roughly speaking staged = added17:18
rehat so while my PR is waiting to be approved and I want to continue adding to it, do I create a branch off of my local branch or just keep working on the same one17:19
amcgee7_ joined17:19
polyzen left17:20
leolrrj left17:20
dsdeiz joined17:20
osse rehat: if you continue working on it and push then the PR is automatically updated17:20
bibi-23 left17:21
osse so it's up to you17:21
rehat gotcha thanks17:21
ChanServ set mode: +o17:22
osse set mode: -o17:23
osse not sure if that is worth a ban17:23
he PMed me also17:23
steele left17:23
Freetekton no it doesnt worth17:23
amcgee7 left17:23
twoface88 left17:23
ChanServ set mode: +o17:23
Freetekton :(17:24
osse then stop17:24
apurcell joined17:25
cdown joined17:25
sybariten OK.... sorry, i have to ask again. Imagine that i have d:\portable .. and under there, i have my git repo (i believe). Or, its checked out there. .git is there. And i have foldoers for programs like emacs, gimp, putty, notepadplus, you name it. But theres like 800 Mb worth of software, i dont want to version all of them. So certain folders (programs) should be noted as being "watched". How do i check,17:25
highcup joined17:25
sybariten here and now, which are actually watched? If i cant remember.17:25
adamben left17:26
apurcell left17:26
sybariten (the gitignore says *)17:26
aqabiz joined17:26
aqabiz left17:26
apurcell joined17:26
osse sybariten: git ls-files17:26
xk_id left17:26
liamkeily left17:26
adamben joined17:26
konradb joined17:26
aqabiz joined17:27
aqabiz left17:27
aqabiz joined17:27
aqabiz left17:27
veganista joined17:28
wicope left17:28
aqabiz joined17:28
aqabiz left17:28
aqabiz joined17:29
aqabiz left17:29
doug joined17:29
Rftaz left17:29
aqabiz joined17:29
aqabiz left17:29
sybariten osse: freakin amazing17:29
liamkeily joined17:29
rns2 left17:30
osse yeah it is incredibru17:30
aqabiz joined17:30
aqabiz left17:30
sybariten hehe... nah, seriously, this could be so great17:30
SFLimey left17:30
apurcell left17:30
kurkale6ka left17:30
tens0r joined17:31
tens0r left17:31
SFLimey joined17:31
mikecmpbll joined17:31
sybariten uhm, can i do something (with a gitignore) to the effect of "first ignoring everything, then letting certain filetypes through" ?17:31
fooforge left17:31
osse ignorethis17:31
sybariten Not much point for me in versioning Win32 .exe files17:31
osse !butnotthis17:31
man gitignore17:31
gitinfo the gitignore manpage is available at http://jk.gs/gitignore.html17:31
tchan joined17:32
tchan left17:32
tchan joined17:32
Guest3095 left17:32
tens0r joined17:32
tens0r left17:32
sbogg joined17:32
PCatinean left17:32
angliscwork left17:33
sybariten i'm actually not getting man pages with my Windows git/bash setup .. but thats OK i think i have them on other *nix systems17:33
cdown left17:33
osse sybariten: git help ignore17:33
polyzen joined17:33
MrJones left17:33
cjwilburn joined17:34
leolrrj joined17:34
sybariten wuuuuuut it actually knew about my chrome browser?17:34
i never thought my bash on Win would be this... "integrated"17:34
(git help opened the help page in a web browser)17:34
cdown joined17:34
osse it does on windows17:34
also on rinux if you use git help -w foo17:35
https://github.com/git/git/blob/master/git-web--browse.sh17:35
Nizumzen left17:35
leolrrj-alt joined17:37
LucasTT joined17:37
IIT left17:37
liamkeily left17:37
wachterjohannes joined17:38
cjwilburn left17:38
doug anyone got a good strategy for building the next feature when the last one hasn't been through qa yet?17:38
Eugene doug - !beer17:38
gitinfo doug: Beer! It's what's for dinner!17:38
tsnow It's liquid bread, good for you.17:39
mmoretti joined17:39
doug like, i'm gonna make stuff dependent on changes in another branch, those changes might end up in the qa pipeline before the previous stuff gets out17:39
leolrrj left17:39
doug and there's some risk that someone will try to merge in the new stuff before the old stuff is merged17:39
duckydan left17:39
workerbeetwo left17:40
osse why is that risk there?17:40
twem2 left17:40
lindenle joined17:41
lieber joined17:42
King_Hual` left17:42
King_Hual` joined17:43
Noldorin joined17:44
leolrrj-alt left17:44
\sky joined17:45
nnyk left17:45
doug osse: that depends on your viewpoint. multiple qa people might pick up my stuff, there's no current mechanism for preventing it, etc.17:46
Artpicre_Artpicre17:47
luriv joined17:48
jadne joined17:48
Zuton joined17:49
wachterjohannes left17:49
SirRetnuh left17:50
rap left17:51
studmuf joined17:51
cjwilburn joined17:51
mcrutchfield joined17:51
OneEyedWill left17:51
SFLimey left17:52
leolrrj joined17:52
SFLimey joined17:53
lsiv568 joined17:53
lsiv568 left17:53
EvilPenguin joined17:53
lsiv568 joined17:53
thebrush left17:54
chiemseesurfer joined17:55
moritz don't you have a ticket system to track this kind of stuff?17:55
MasterPiece joined17:55
veganista left17:55
cromero left17:55
Alex______ joined17:56
dreiss joined17:57
Sasazuka joined17:57
duderonomy left17:57
encod3 left17:58
MattMaker joined17:58
leolrrj left17:59
OneEyedWill joined17:59
wrouesnel left17:59
JanC_ joined17:59
SirRetnuh joined17:59
studmuf left18:00
marcogmonteiro left18:00
mnml left18:00
chiemseesurfer left18:01
JanC left18:01
dreiss left18:02
gsingh93 joined18:02
eletuchy left18:03
tieTYT2 joined18:04
osse doug: i don't have any good suggestions except the "obvious" stuff like working on something else while you wait18:05
osse set mode: -o18:06
deuterium left18:06
steele joined18:06
steele left18:06
diegoviola left18:06
steele joined18:07
jstimm joined18:07
jontmorehouse joined18:07
Dragooon joined18:08
Van_Glorious joined18:09
SumDude_ joined18:09
Van_Glorious left18:09
_2_chana87 joined18:10
_2_chana87 hello new18:10
gitinfo _2_chana87: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.18:10
joeyDB_ left18:11
tritone joined18:11
Acidnerd left18:11
rsavage joined18:12
nnyk joined18:12
rsavage Howdu GITlings!18:12
SumDude left18:12
liamkeily joined18:13
rsavage I have a special request... I have a special condition in which I need to send in a modified into a particular branch of a repo into a specific path. How can I do this without having a local copy of the repo?18:13
jadne left18:14
russt left18:15
Noldorin left18:15
SumDude_ left18:15
SumDude joined18:15
doug you want to add a commit to a remote repo?18:16
Takle_ left18:17
SirRetnuh left18:17
SirRetnuh joined18:17
bb010g left18:18
sybariten is "git rm --cached -r D:\portable\putty" 'dangerous' ?18:18
Freetekton left18:18
_2_chana87 left18:19
joelm left18:19
sybariten i realized that i dont want it added the way it is added now... i think... i want to define everything in the gitignore file, and be able to do git add . later18:19
doug left18:19
nour joined18:20
sp1rs joined18:21
SirRetnuh left18:21
maxvi left18:21
ZenMasta joined18:22
eletuchy joined18:22
ZenMasta is it possible to prevent untracked files from being listed when you git status?18:22
osse sybariten: not dangerous18:22
ZenMasta: ignore them. man gitignore18:22
gitinfo ZenMasta: the gitignore manpage is available at http://jk.gs/gitignore.html18:22
joeyDB_ joined18:23
paulweb515 left18:23
ZenMasta I have ignored the folder that contains them already18:23
osse ZenMasta: then either the folder is not untracked or there is a syntax error in gitignore18:24
!repro18:24
gitinfo [!transcript] Please paste (using https://gist.github.com/ or similar) a transcript ( https://gist.github.com/2415442 ) of your terminal session.18:24
ZenMasta alright I'll double check18:24
joelm joined18:24
monbro left18:24
Vile joined18:26
rehat left18:26
ZenMasta :q!18:26
lol wrong window18:26
osse wrong buffer18:26
or window, pane, tab, workspace, view18:26
Guest21838 joined18:27
hesco left18:27
sybariten or editor18:27
buffal0 joined18:27
sybariten takes shelter18:27
Acidnerd joined18:27
anli left18:28
MattMaker left18:29
pantsman- joined18:29
joelm left18:29
jadne joined18:29
MattMaker joined18:29
phlx joined18:29
phlxf0ster_18:29
f0ster_thef0ster18:30
osse Gimme shelter18:30
pm90_ left18:30
thef0ster what is the easiest way to undo my last commit? like make HEAD be what it was before the last commit18:30
sq-one joined18:31
osse thef0ster: git reset HEAD~18:31
achadwick left18:31
joelm joined18:31
thef0ster osse: why not git revert ?18:31
MattMaker left18:31
osse thef0ster: because that doesn't change HEAD the way you want18:32
Unless I misunderstood18:32
vmiklos left18:32
xk_id joined18:32
Dragooon left18:32
osse git revert creates a new commit, so that moves HEAD forward18:32
endiruna joined18:33
otter768 joined18:33
thef0ster i want the HEAD to be what it was before, e.g pretned the last commit i made never even happened for all I care18:33
Spacew00t left18:33
osse thef0ster: the you want reset18:34
then18:34
thef0ster okay ty osse18:34
Moleboy joined18:34
mcrutchfield left18:34
vmiklos joined18:34
osse thef0ster: Add - - hard for maximum destruction18:34
MattMaker joined18:34
osse --hard18:34
mizu_no_oto left18:35
PerlJam thef0ster: just be aware that --hard will destroy information.18:35
thef0ster hahah18:35
alright.. gtk18:35
NBhosting joined18:35
osse not unrecoverably though18:36
so it's "fine"18:36
mcrutchfield joined18:36
liamkeily left18:37
Noldorin joined18:37
otter768 left18:38
qsuscs osse: not necessarily though18:38
sybariten sessions is a dir. Cant i not define it like this in gitignore? !portaputty/.putty/sessions Do i need to do !portaputty/.putty/sessions/* ?18:38
qsuscs so it’s only almost fine18:38
th3fallen left18:39
sybariten I'm thinking in rsync ways here18:39
osse sybariten: !portaputty/.putty/sessions/18:39
th3fallen joined18:39
osse the last / am the importantness18:39
munke left18:39
Dragooon joined18:39
sybariten osse : ooh ... you know, thats the opposite of what i was lead to believe, coming from rsync!18:39
breadmonster joined18:40
sybariten hm, nah, didnt work. Ive done something else wrong18:40
breadmonster What's the default git directory?18:40
I ran `git clone https://github.com/ocaml/tuareg` without specifying a directory.18:41
...and I've lost my files :P18:41
osse breadmonster: they're in ./tuareg18:41
a-l-e left18:41
breadmonster Thanks (:18:41
osse that is: the tuareg directory inside the current one (wherever you ran git clone=18:41
sybariten hm, this did it !portaputty/.putty/sessions/*18:42
breadmonster osse: Yeah, I ran it from home.18:42
Cool stuff, thanks (:18:42
vmiklos left18:42
BSaboia joined18:43
cdown left18:43
mroach left18:43
vmiklos joined18:44
osse sybariten: oooh, I confused ignore and un-ignore18:45
dsdeiz left18:45
jadne left18:45
JanC_JanC18:46
rubyonrailed joined18:46
githogori joined18:46
Nizumzen joined18:46
melter left18:47
vurma left18:48
teran left18:48
Aune left18:49
studmuf joined18:50
dm7freek joined18:51
jceb_ left18:51
sp1rs left18:51
OneEyedWill left18:52
Dragooon left18:52
SirRetnuh joined18:52
MattMaker left18:52
studmuf left18:52
tcurdt left18:53
Jackneill joined18:54
MasterPiece left18:54
Moleboy left18:55
curiousmansi joined18:55
dm7freek left18:56
SirRetnuh left18:56
isifreek joined18:57
mcrutchfield left18:57
drfoo joined18:57
mcrutchfield joined18:57
_0xAX joined18:57
curiousmansi hey i created the pull request18:57
stamina joined18:57
curiousmansi then what is close pull request there18:57
?18:57
drfoo left18:58
hesco joined18:58
curiousmansi how i can share the pull request url18:58
?18:58
baweaver joined18:58
nour_ joined18:59
baweaver left18:59
isifreek I have a repo with 3 branches (A + B + C). A tracks origin/master and B tracks foo/master. C (local-only) gets all updates from A and B via merge. would it be better to have a single branch with 2 remotes, it is possible for origin/master and foo/master to conflict.19:00
IrishPrime joined19:00
isifreek ?19:00
vurma joined19:00
_0xAX left19:00
MasterPiece joined19:01
shift8 left19:01
nour left19:03
Spacew00t joined19:03
dreiss joined19:05
akiva joined19:06
curiousmansi anyone around to help19:06
pm90_ joined19:07
cjwilburn left19:07
cjwilburn joined19:08
baweaver joined19:08
tritone left19:09
cjwilbur_ joined19:10
ZenMasta So, I added a single line to .gitignore, git commit - m 'added dir to ignore', git push origin master then it says "Everything up-to-date" but when I git status it shows changes not staged for commit: modified .gitignore19:10
what did I do wrong?19:10
pm90_ left19:11
pm90_ joined19:11
hmsimha zenmasta: did you git add .gitignore?19:12
kevireilly ZenMasta: I'm not sure there is supposed to be a space between - and m in "- m"19:12
cjwilburn left19:12
ZenMasta hmsimha I didn't git add, because we've already been tracking it. I thought once a file is being tracked you dont have to use git add19:13
kevireilly doing it again to make sure won't hurt19:13
akiva left19:13
ZenMasta kevireilly no space, I just typed it wrong in this window19:13
hmsimha zenmasta: pretty sure you have to 'git add' to stage any changes to be committed19:14
unless you git commit -am19:14
Gizburdt joined19:14
nnyk left19:14
micechal_ joined19:14
apurcell joined19:15
hmsimha zenmasta: the '-a' flag automatically adds and commits any files being tracked19:15
_Vi left19:16
glebihan left19:16
pfo joined19:16
munke joined19:16
Solid1 left19:16
AAoK_ joined19:16
micechal left19:17
mattcen left19:17
sybariten osse: yeah, uh, well right now it seems as if with un-ignore i have to specify everything explicitly, meaning, every file. I would like to un-ignore a subdir... but cant make it work19:17
ZenMasta thanks19:17
AAoK left19:17
skinkitten left19:17
hmsimha If I amend the most recent commit on a feature branch, but that commit has already been merged to the development branch and pushed, is there away to repair this situation on the central repo without a force push?19:18
shift8 joined19:18
Gizburdt left19:18
glebihan joined19:18
qsuscs hmsimha: make a new commit instead of amending and merge again19:19
apurcell left19:19
adamellsworth joined19:20
jadne joined19:21
hexagoxel joined19:24
dik_dak joined19:24
hmsimha qsuscs: thanks, that's what I thought.. Are there any techniques for teams to make their commit history more concise?19:25
qsuscs hmsimha: think before you type.19:25
or at least before you push19:26
hmsimha I was hoping it wouldn't come to that :P19:26
kadoban joined19:27
t-mart joined19:27
dannymichel joined19:27
apurcell joined19:28
stamina left19:28
Malgorath left19:28
t-mart left19:28
t-mart joined19:29
MattMaker joined19:31
skinkitten joined19:31
Sasazuka left19:31
sburgess joined19:32
jadne left19:32
dannymichel left19:32
vurma left19:32
paulweb515 joined19:33
joo-_ joined19:33
paulweb515 left19:33
paulweb515 joined19:33
adamben left19:33
Sasazuka joined19:33
mattcen joined19:34
dannymichel joined19:35
Dragooon joined19:35
daedeloth_ left19:36
paulweb515 left19:36
baweaver left19:36
isifreek left19:36
paulweb515 joined19:36
SirRetnuh joined19:37
Dexter24 joined19:37
Sasazuka left19:38
CheckDavid left19:38
JagaJaga joined19:38
SirRetnuh left19:39
WaReZ left19:40
lid_ joined19:41
zenith__ joined19:41
drfoo joined19:41
liamkeily joined19:42
drfoo left19:42
cavallari1 joined19:42
drfoo joined19:43
cavallari left19:43
teran_ joined19:44
highcup left19:45
highcup joined19:45
teran__ joined19:45
anli joined19:46
curiousmansi how i can merge the changes i have pushed to master with another branch19:47
teran joined19:48
teran_ left19:49
osse curiousmansi: with git merge... But I guess your question goes deeper than that?19:49
andi4 joined19:49
beastd joined19:50
MarkyC left19:50
editshare-ericf joined19:50
curiousmansi i have a repository which i forked from some repository. I cloned it started working.19:50
when finished i pushed the code19:50
so the code is now lying in master19:51
teran__ left19:51
skinkitten left19:51
curiousmansi now i can c there is one more branch called gh-pages19:51
MarkyC joined19:51
mcrutchfield left19:51
curiousmansi if i want my changes to reflect there then what i have to do?19:51
osse:19:52
J1G|Anon126 curiousmansi: that is for Github Pages https://pages.github.com/19:52
vurma joined19:52
J1G|Anon126 it's from the original repository; you don't have to worry about it19:52
curiousmansi ?19:52
J1G|Anon126 (if you are looking for some more detail) Github Pages lets users host websites for their projects19:53
Vadimus left19:53
J1G|Anon126 they do that simply by pushing to a branch called gh-pages19:53
curiousmansi but the another contributor is facing some issue with the PR i created19:53
teran_ joined19:54
curiousmansi how i can solve his problem19:54
J1G|Anon126 what problem is this?19:54
ELFrederich any idea on how to get either a status or a diff of a directory outside of a repo to a commit within a repo?19:54
fabio_p left19:54
osse curiousmansi: fetch from the Repo you forked and try the merge yourself19:55
curiousmansi: yYou may need to add the original repo as remote19:55
curiousmansi @mansisce I believe the master branch was deleted. Please repost this PR to the gh-pages branch19:55
teran left19:56
curiousmansi JI|Anon12619:56
JIG|Anon12619:56
osse:19:56
Literphor joined19:56
osse ELFrederich: anything that involves running Git from outside the repo to operate on needs --work-tree etc or the corresponding environment variables19:56
curiousmansi this is what he says " I believe the master branch was deleted. Please repost this PR to the gh-pages branch"19:56
ELFrederich osse, yeah... I'm trying to use --work-tree but I can't seem to get status working19:57
breadmonster left19:57
osse ELFrederich: there's also git -C as a shorthand19:57
curiousmansi he is suggesting like this : Recreate the PR, but point it to the gh-pages branch19:57
osse ELFrederich: if you specify one you also need to specify the other19:57
curiousmansi J1G|Anon126:19:57
J1G|Anon126 hm...19:58
mcrutchfield joined19:58
awosi joined19:58
osse curiousmansi: that is a plain github problem. Just do what you did the first time19:58
chitopunk left19:58
curiousmansi first time19:58
?19:58
sybariten this git unignore thing is driving me crazy...19:59
osse curiousmansi: You've already created one PR right?19:59
_ikke_ git unignore?19:59
J1G|Anon126 curiousmansi: open a new PR19:59
curiousmansi can i close that19:59
sybariten if i have i'm trying to unignore directories recursively but appearently its not that easy19:59
curiousmansi i can open with master onlyt right19:59
osse no19:59
curiousmansi ?19:59
diegoviola joined20:00
J1G|Anon126 curiousmansi: you can specify which branch to open on20:00
_ikke_ sybariten: something like !ignore_whitedir?20:00
gitinfo sybariten: [!gitignore_whitedir] A global/directory .gitignore blacklist with a (potentially) subdirectory whitelist is not easy to specify in git. However, something like `echo -e '/*\n!/a/\n/a/*\n!/a/b/\n/a/b/*\n!/a/b/c/' > .gitignore` (ignore everything but a/b/c directory) or `echo -e '*\n!*/\n!*.c' > .gitignore` (ignore everything but *.txt files) may do what you want.20:00
osse You can create a PR from/to any branch20:00
curiousmansi not what he is suggesting like open the pr pointing to gh_pages20:00
but gh_pages don't have my changes20:00
sybariten wuut ...20:00
osse curiousmansi: doesn't matter20:00
pfo left20:01
curiousmansi ooh is it20:01
stamina joined20:01
sybariten first i ignore * ... then i unignore !*/ then i unignore something like !/sub/ or !/sub , and is hoping to get sub/dir1/file.txt , sub/dir2/file.c , etc, but i dont20:02
jontmorehouse left20:02
sybariten i more or less have to specifyu them explicitly20:02
_ikke_ yes20:02
osse sybariten: * then !sub/ then !sub/* should be enough20:02
gitinfo sybariten: [!subgit] SubGit is a two-way git<->svn bridge. It provides a (self-)hosted alternative to git-svn, with some advantages. See http://subgit.com/20:02
ELFrederich osse, this is how I put something in, then get check it out somewhere else. Now I make a change to it and want to see either the status or diff. http://paste.pound-python.org/show/1RxSyJCpZa7mWmdZOZLP/20:03
jceb_ joined20:03
sburgess left20:03
cavallari1 left20:03
lqi joined20:04
MasterPiece left20:04
cavallari joined20:04
sybariten osse: hehe, you activated gitinfo with that20:04
curiousmansi osse: There isn't anything to compare.20:04
skinkitten joined20:04
curiousmansi so i am not able to create PR with branch as gh_pages20:04
ELFrederich osse, actually this one... don't think bash likes those spaces. These are the Git commands my little tools ends up running. http://paste.pound-python.org/show/2ZxycykZ8xs912PSY58h/20:04
cavallari left20:05
liamkeily left20:05
cavallari joined20:06
cavallari left20:06
Quevin_ left20:06
lqi left20:06
lieber left20:07
sybariten hm, nah i dont think it worked. I think i may be expecting something from gitignore that is not really in line with how it actually works20:07
osse sybariten: dirty way: ignore everything and add -f what you need20:08
sybariten osse: yeah20:09
osse curiousmansi: show me20:09
endiruna left20:09
rath left20:09
_Atom_ left20:09
curiousmansi osse: how20:10
?20:10
osse ELFrederich: I don't understand what you're trying to do20:10
baweaver joined20:10
Dragooon left20:10
aboccia Hi All, forgive my noobness. I am writing a hook to check the file extensions of incoming committed files. It is on a private gitolite server. I am wondering if I can create a pre-commit hook and have it reside in the repo dir on the server or if it will only work locally on my machine's cloned copy of the repo?20:10
osse curiousmansi: Link to your repo20:10
das_beard joined20:10
_ikke_ aboccia: On the repo on the server20:10
osse aboccia: the developers need to install it themselves20:11
_ikke_ oh20:11
yeah. precommit on the repo20:11
local20:11
aboccia ah I see, so i'd have to add it to the repo/.git/hooks dir in the cloned copy on my machine20:11
fredrikslattman joined20:11
aboccia Thank you _ikke_ and osse20:11
EminenceHC left20:12
wedgie_ joined20:14
Spacew00t left20:14
diamonds anyone got an opinion on --no-ff workflow vs. `rebase` workflow for merging feature branches into trunk?20:14
tryna get a better understanding of the pros & cons20:14
sybariten osse: hey... i dunno how, exactly, but this helped: !totalcmd/plugins/ and !totalcmd/plugins/** (note, double asteriskts). Then i get for instance totalcmd/plugins/somefancyplugin/lang , without specifying it explicitly.20:16
_ikke_ diamonds: --no-ff for better history20:16
cjwilbur_ left20:16
SumDude left20:16
wedgie left20:17
steele left20:17
xk_id left20:17
oojacoboo joined20:17
fredrikslattman left20:17
fredrikslattman joined20:17
rayman22201 joined20:18
MasterPiece joined20:18
diamonds _ikke_ even if you have to pull the upstream into feature like 3 times during development?20:18
won't it split/merge/split/merge/split/merge?20:19
ty for your help20:19
osse sybariten: i didn't know that was necessary, but it does make sense20:19
diamonds vs. rebase which will group all the commits on tip20:19
osse ** is like * but recursive20:19
ELFrederich osse, I reworked the example to be standalone. The comments explain what I'm trying to do. http://paste.pound-python.org/show/v2WPDSSCpsr2bOqcgXPR/20:19
steele joined20:19
Spacew00t joined20:20
xk_id joined20:20
steele_ joined20:20
Dougie187 left20:21
fredrikslattman left20:21
fredrikslattman joined20:22
rayman22201 left20:22
sybariten osse: it's that simple? OK, great20:22
Dragooon joined20:23
sybariten anywhooo.... i am now trying to "upload" my local things to my git server. Here's a command ive used before, that isnt working out now :) git remote add origin [email@hidden.address]20:23
i get "fatasl: remote origin already exists"20:23
steele left20:24
imachuchu sybariten: it's saying "yeah, I already know about that server". Try "git push" instead to just push your changes to it20:24
ELFrederich I think it would be similar to a situation like this. Lets say you got some kernel sources for some device and untar'd them to /tmp/some_devices_kernel. You know the kernel is based off of 3.10 and you have the Linux kerne's Git repo. How would you do a diff?20:25
sybariten imachuchu: thats really surprising... wouldnt it know about it on a per-shell-basis? I havent done anything related to my IP before today, after opening git bash20:25
Takle joined20:25
rayman22201 joined20:25
davividal left20:25
Arsonide joined20:25
sybariten i mean, i thought this was something i have to define each time20:25
osse sybariten: you need to define it once per repository20:26
sybariten: unless that repository is a clone, in which case 'origin' is set up for you20:26
sybariten oh. Well then i suppose its saved into .git somewhere then20:26
osse sybariten: .git/config20:27
cat it and see20:27
sybariten also, i think in the past ive done "git push origin master", not simply "git push" . Does it make a difference ?20:27
tvw left20:27
osse no20:27
sybariten osse: yeah sure enough, the IP was in there. thanks20:27
fredrikslattman left20:27
cbojar left20:30
rsavage left20:31
curiousmansi left20:31
pm90_ left20:32
haptiK joined20:33
zenith__ left20:34
m0viefreak left20:34
otter768 joined20:34
armadillu joined20:35
armadillu left20:35
Dragooon left20:37
giusef joined20:38
wastrel joined20:38
chitopunk joined20:38
otter768 left20:38
terribleplan left20:39
highcup left20:39
wastrel hi i messed up a pull request, and need help fixing or removing it. pushed a commit, was asked to make changes, made changes, pushed, was asked to squash, squash, commit, push now there's 3 unrelated commits in my pull request (?)20:39
Literphor left20:40
dm7freek joined20:40
jeffmjack left20:41
Literphor joined20:41
pacon joined20:42
willharrison joined20:42
cdown joined20:42
_ikke_ Based on what branch did you create the pull request?20:43
Guin joined20:44
wastrel i made a feature branch20:44
dm7freek left20:44
fredrikslattman joined20:44
wastrel and am asking to merge into main20:45
LACabeza left20:45
xk_id left20:45
_ikke_ And what is the state of your feature branch?20:45
diegoviola left20:45
wastrel i reset the head to the original commit that i pushed20:46
and then pushed again but i didn't see a change in the pull request20:46
nnyk joined20:46
ELFrederich it seams "git diff HEAD" is supposed to diff your working directory against the most recent commit. Can I instead do a diff against an arbitrary commit?20:46
_ikke_ You have to probably force push20:46
ELFrederich: sure20:47
wastrel did use force yes i saw that error when i didn't use -f :)20:47
_ikke_ wastrel: github or something else?20:47
wastrel github yes20:47
fredrikslattman left20:48
buffal0 left20:49
Sebtoast left20:49
cdown left20:49
cdown joined20:50
fredrikslattman joined20:50
jontmorehouse joined20:50
xk_id joined20:50
fredrikslattman left20:50
Dragooon joined20:51
nnyk_ joined20:51
Zuton left20:51
d4ryus___d4ryus20:52
nnyk left20:53
cdown left20:53
Literphor left20:54
highcup joined20:55
ELFrederich what does <path> mean in the help for git diff20:55
wastrel left20:55
qsuscs well, a path o_O20:55
ELFrederich I keep trying various combinations trying to get the diff I expect but can't get it20:55
Literphor joined20:56
ev_ left20:56
ELFrederich qsuscs, in this example I made a change by echoing "hello" to a new file called "world". But I can't seem to figure out a way to generate a diff that shows that. http://paste.pound-python.org/show/v2WPDSSCpsr2bOqcgXPR/20:57
Nizumzen left20:57
ev_ joined20:57
iamjarvo joined20:58
Quevin_ joined20:58
qsuscs wtf20:58
phantomtiger joined20:58
qsuscs i don’t understand your setup in one minute. okay, i’m half asleep, but wtf20:58
adamben joined20:59
ELFrederich qsuscs, I'm using git as a storage for items. items are defined by a directory20:59
so in the first part I create some dummy data called item12320:59
... then I initialize a git repo and put that data into it as a new commit and create a reference to it refs/heads/item12321:00
... then I show how I retrieve the data out of git and put it somewhere else.21:00
iamjarvo hi all, so if i am in a detached head. is there a quick way to get back to the last branch?21:00
zenith__ joined21:00
ELFrederich now I'd like to see how to do a difference when I change it21:00
grawity iamjarvo: try `git checkout -`21:01
EminenceHC joined21:01
sandr8 left21:01
Dragooon left21:01
rayman22201 Hi interwebs citizens. Can you help me solve this mystery. We have been having an issue for months where, occasionally, changes seem to “disappear” or regress in our repo. I finally caught it happening in the act. Our workflow is to create a feature branch. When we are ready to merge our work, we first merge master onto the feature branch, and fix any conflicts. During this particular merge, git decided to choose the feature branch21:01
version of a chunk, when it should have chosen the code from master. No merge conflicts, git just decided that was the right thing to do, incorrectly. why?21:01
iamjarvo grawity thank you21:02
grawity ELFrederich: 'world' is an entirely new file, untracked at this point21:03
ajustrun joined21:03
lsiv568 left21:03
Dragooon joined21:04
phos1 joined21:04
grawity ELFrederich: you need to at least add it to the index21:04
fredrikslattman joined21:04
boombatower joined21:04
boombatower left21:04
boombatower joined21:04
phos1 Trying to push my repo into butbucket and getting “failed to push some refs to…” How do I fix / push this? The repo I am in has all the correct date, can i do a force to make it updated bitbucket?21:05
zenith__ left21:05
MarkyC left21:05
akiva joined21:05
EminenceHC left21:06
_ikke_ phos1: did you rewrite something? (rebase, amend, moved branches, etc..)21:06
phos1 New to git, so all i”m doing atm is commiting and pushing to bitbucket21:07
bgerber left21:07
Jackneill left21:07
kyb3r_ joined21:07
phos1 I did delete var/caches from the repository (and it is in bitbucket) because it stores a ton of pictures21:07
d0nkeyBOB left21:07
Sasazuka joined21:07
_ikke_ phos1: Did someone else push to bitbucket?21:08
grawity did you rebase/filter-branch?21:08
phos1 I’m the only with access at the moment. Don’t know how to rebase or do a fitler-branch yet21:08
irqq left21:08
ELFrederich grawity, I thought there were some diff commands that would look at the working directory and not the index21:08
_ikke_ phos1: What is the exact message?21:09
cbojar joined21:09
EminenceHC joined21:09
phos1 error: failed to push some refs to 'git@bitbucket.org:act2281/chemcrest.git'21:09
To prevent you from losing history, non-fast-forward updates were rejected21:09
Merge the remote changes before pushing again. See the 'Note about21:09
fast-forwards' section of 'git push --help' for details.21:09
Dragooon left21:09
Dragooon joined21:11
bgerber joined21:12
fredrikslattman left21:12
iamjarvo left21:12
_ikke_ phos1: If you are sure what you have locally is correct, you can force push, but this shouldn't happen if someone else didn't push, and you didn't rewrite history by accident21:12
qsuscs fetch, !visualize21:13
gitinfo You can visualize whole repo graph with gitk GUI viewer (gitk --all HEAD) or !lol for terminal view (git log --oneline --graph --decorate --all)21:13
DolphinDreamm grawity, i'm back to the same clone / mirror local repos again ... i tried clone mirror and i get some sort of fatal error : Checking connectivity... fatal: bad object 5bc556775f853c43504b2e36e1b00cb82db2f37e .. any ideas why ?21:13
grawity the file is corrupted, that's why21:14
DolphinDreamm fatal: remote did not send all necessary objects21:14
grawity try running `git fsck` on all the repos21:14
DolphinDreamm i did21:14
all is ok21:14
iamjarvo joined21:15
ColdKeybo[a]rd joined21:15
Sasazuka left21:15
DolphinDreamm git fsck --full21:16
Sample joined21:16
rayman22201 left21:16
DolphinDreamm Checking object directories: 100% (256/256), done.21:16
Checking objects: 100% (16763/16763), done.21:16
m0ltar left21:16
sybariten i'm soon off, dead tird, but before i forget i wanna thank you all that helped me with some beginner moves tonight!21:16
ColdKeyboard left21:16
Sasazuka joined21:17
sybariten and i wanna thank my family... my producers...21:17
u1106 left21:17
joo-_ left21:17
jmverges joined21:17
u1106 joined21:17
osse not your agent?21:17
sybariten no he's a money sucking leech21:18
Dougie187 joined21:18
qsuscs not even ssh-agent?21:18
sybariten ok then21:18
Dragooon left21:18
fredrikslattman joined21:18
Sample Is there a recommended pastebin for my git graphs?21:18
DolphinDreamm so.. again.. repoA and repoB were pulling from a remote repoC .. now repoA has some local commits/braches i don't want to push to repoB .. but i want to pull those changes directly into repoB.. how do i do it ?21:18
Sample I have a problem/question that I've illustrated21:19
DolphinDreamm push to repoC *21:19
Skapadapaduu left21:19
qsuscs Sample: i personally hate pastebin (full of ads and other crap), but use what you want, as long as it qualifies as a pastebin21:19
texasmynsted joined21:19
fooforge joined21:20
DolphinDreamm osse, do you want to be my agent? i will make sure you to mention thank you ;)21:20
texasmynsted if I am on branch foo and want to apply some commits from branch bar, I should be able to do this right?21:20
Sample Oh wait I think I have sprunge, that should work21:20
texasmynsted git cherry-pick c08f533, 10672ae21:20
munke left21:21
texasmynsted where I am on branch foo, and those sha1s are on branch bar21:21
Dragooon joined21:21
pbrobst joined21:21
fredrikslattman left21:21
Polyatomic joined21:21
texasmynsted I am getting an error. Hmm I wonder if these need to be applied in order21:21
Sample Okay here is my question: http://sprunge.us/aNHV21:22
qsuscs Q_Q TL;DR21:23
or coffee21:23
cbojar left21:23
cbojar joined21:23
tieTYT2 left21:23
axisys joined21:24
baweaver left21:24
DolphinDreamm so.. localReboA <-- remoteRepo .. localRepoB <-- remoteRepo .. now i want to pull localRepoB <-- localReboA .. any ideas how ?21:24
u1106 left21:24
u1106 joined21:25
Steve_Jobs DolphinDreamm: just add another remote21:25
moritz add localRepoB as a remote to localRepoA21:25
file:// URLs work21:25
Steve_Jobs then you can git fetch localRepoA from localRepoB21:25
in fact you can push to the same repo if you use . as the name of the remote21:25
jmverges left21:26
fredrikslattman joined21:26
DolphinDreamm never had to add more than one remote21:26
Guin left21:26
Steve_Jobs ie, git push . origin/master:master will update master without having to checkout master21:26
DolphinDreamm git remote add origin username@address:~/path/to/repo would do ?21:26
Steve_Jobs DolphinDreamm: I've had up to 3 remotes21:26
DolphinDreamm i already have one origin.. shoudl i pick a different name ?21:27
jstimm left21:27
Steve_Jobs git remote add some/other/path I thing21:27
petersr left21:27
Steve_Jobs you may need to prfix with file:///21:27
I think21:27
ap0c joined21:27
DolphinDreamm i have21:28
origin git@192.168.0.41:NavioIntraOp (fetch)21:28
origin git@192.168.0.41:NavioIntraOp (push)21:28
already21:28
jstimm joined21:28
fredrikslattman left21:28
DolphinDreamm should the new remote be called soemthing other than 'origin' ?21:28
osse Sample: I think the end result is that the two unwanted features won't be in the merge result21:28
Dorf left21:28
iamjarvo left21:28
xaa joined21:28
Sample osse: I was presuming there would be a merge conflict (in the case of the v1.6 merge into master, since the lineage is divergent)21:29
osse Sample: because the branch that has the revert commits also has the originals21:29
texasmynsted wow its steve jobs21:29
ams__ left21:29
Dorf joined21:29
Sample osse: ohhh, interesting21:29
osse Sample: that may be, but that won't be because of those commits I think21:29
texasmynsted No flash in heaven right Steve Jobs?21:29
rayman22201 joined21:30
Sample osse: interesting. yeah it's a confusing situation. v1.5 does see the two commits in its history, but develop doesn't see the removal of them in its own21:31
but I think you may be right, upon merge they may silently be removed21:32
does this look like a clean/acceptable/best approach to this problem, and the exclusion of those commits for release?21:33
vmiklos left21:33
osse Sample: when I21:33
Dorf left21:33
editshare-ericf left21:33
CustosL1men joined21:34
osse Sample: in simple terms: when a merge happens git combines what each branch has that the other one doesn't have. Both branches have the feature commits, so they "don't count". only one branch has the revert commits, so they are "respected" (so to speak) in the result21:34
IrishPrime left21:34
vmiklos joined21:35
osse whether it's a good way I don't really now. It seems fine to me. But if you ever want those features back I think the cleanest thing to do would be to cherry-pick them.21:35
u1106 left21:35
tieTYT2 joined21:35
u1106 joined21:35
Neozonz|Disc left21:36
UKn0Me left21:37
geomyidae_ left21:38
DolphinDreamm left21:38
studmuf joined21:38
amcgee7_ left21:38
tristanp left21:38
studmuf left21:39
WaReZ joined21:41
snearch joined21:41
stick-shift joined21:42
SirRetnuh joined21:42
hardenedapple left21:43
boombatower left21:43
ojacobson left21:43
arez joined21:44
_ikke_ git merge doesn't even look at commits, git looks at trees21:45
so whatever happened in between doesn't matter21:45
osse i concur21:45
it was just a figure of sprechen21:45
_ikke_ Yeah, just to make it clear21:46
pm90_ joined21:46
baweaver joined21:47
pheaver left21:49
linuxmint joined21:49
EvilPenguin left21:51
LucasTT left21:51
cbonobo left21:53
willharrison left21:54
Dougie187 left21:54
ketas left21:54
MrRoot joined21:56
vurma left21:56
zacts left21:56
settermjd left21:57
tier left21:57
Consuela joined21:57
drfoo left21:57
snearch left21:57
fredrikslattman joined21:58
jakob left21:58
drfoo joined21:58
steele_ left21:59
j_t joined21:59
syngress joined21:59
syngress hello21:59
gitinfo syngress: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.21:59
jceb_ left21:59
j_t We disallow pushing to master, you have to use the pull request method through stash. If I accidentally made a commit to my local master, how can I wipe that out so I'm synced to our master?21:59
robert__ joined22:00
zacg joined22:00
qsuscs j_t: cherry-pick it on the branch you actually want it, reset --hard master to master^22:00
syngress i have 3 commits on branch MASTER, how can i get back to commit 2 (made some local changes) and push it to server ?22:00
stick-shift left22:00
JagaJaga left22:00
j_t qsuscs: reset --hard master to master^ ?22:01
Dragooon left22:01
j_t qsuscs: git reset --hard; that?22:01
qsuscs j_t: git checkout master; git reset --hard master^22:01
SirRetnuh left22:01
j_t hmm, what does ^ do22:01
qsuscs j_t: man gitrevisions22:01
gitinfo j_t: the gitrevisions manpage is available at http://jk.gs/gitrevisions.html22:01
qsuscs j_t: “first parent of that commit”22:01
syngress i have 3 commits on branch MASTER, how can i get back to commit 2 (made some local changes) and push it to server, to branch MASTER as commit 4 ?22:02
cagedwisdom joined22:02
snearch joined22:02
fredrikslattman left22:02
m0ltar joined22:02
_ikke_ revert commit 322:03
Sample _ikke_: what do you mean when you differentiate looking at commits vs looking at trees. when you say "tree" are you meaning "the current state of all the files in the project"22:03
aka, the head commit?22:03
_ikke_ as recorded in the specific commit22:03
jakob joined22:03
syngress revert ?22:04
_ikke_ git revert22:04
ajustrunajustrun|away22:04
King_Hual` left22:04
pheaver joined22:04
baweaver left22:04
_ikke_ Sample: each commit has a reference to a tree object22:04
King_Hual` joined22:04
_ikke_ that tree records the state of all the files that were comitted22:04
Sample osse, _ikke_: so if the merge only looks at the head commits of each branch, wouldn't it see that the files are present in one tree and absent in the other?22:04
jds left22:05
Dragooon joined22:05
devol joined22:05
syngress I have something like this:22:05
macabre left22:05
devol how to let `git checkout master` also put back deleted files?22:05
_ikke_ Sample: reading your explenation22:05
King_Hual` left22:05
syngress Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded22:05
qsuscs Sample: git ls-tree HEAD^{tree}; git rev-parse HEAD^{tree}; git cat-file -p HEAD | grep tree22:05
King_Hual joined22:06
bgerber left22:06
qsuscs (though git ls-tree HEAD would also work, HEAD counts as tree-ish)22:06
_Vi joined22:06
syngress i can't push it22:07
ajustrun|away left22:07
fredrikslattman joined22:07
gitinfo set mode: +v22:07
stamina left22:07
syngress ! [rejected] master -> master (non fast-forward)22:07
specious joined22:07
devol answer to my own question : `git checkout --`22:08
willharrison joined22:09
Cata|Work left22:09
ev_ left22:10
denete left22:10
ajustrun joined22:10
syngress_ joined22:10
syngress_ i have 3 commits on branch MASTER, how can i get back to commit 2 (made some local changes) and push it to server, to branch MASTER as commit 4 ?22:10
userghost joined22:11
Sample _ikke_: the question was in the sprunge above22:11
_ikke_ yeah, found it22:11
jerematic left22:11
Sample k22:11
netcarver left22:11
_ikke_ was a bit distracted though22:12
Jordan_U I'm trying to use git rebase -i for the purposes of rewriting history, i.e. I'm not trying to rebase off of a new branch with different changes. I'm using "git rebase -i HEAD~8" but even just "git rebase HEAD~8" fails with the following output: http://paste.debian.net/hidden/ccf12274/ . I'm clearly misunderstanding how git rebase works as I thought that "git rebase HEAD~8", without the -i, would simply replay the last 8 ...22:12
... commits exactly as they are, and thus would be essentially a no-op. What is actually going on here, and what command should I be using to edit some of the recent commits I've made?22:12
denete joined22:12
syngress left22:13
duderonomy joined22:13
steele joined22:14
freestyl3r left22:14
ojacobson joined22:15
bgerber joined22:15
fredrikslattman left22:15
rubyonrailed left22:15
_ikke_ Sample: what's the difference between 1.5 and v1.5?22:16
robert__ left22:17
munke joined22:17
userghost left22:18
robert__ joined22:18
denete_ joined22:19
autochthon left22:19
zadock left22:20
The_Phoenix left22:20
denete left22:22
mikeric joined22:23
jonnyro left22:24
SirScott joined22:24
basiclaser left22:24
steele left22:24
SirScott any git-flow oh-my-zsh users here? doing my first 'git flow release 1.0.0' and the resulting tag is being applied onto the release branch, not onto master as I might have expected from the docs.22:25
CKyle left22:25
nnyk_ left22:25
snearch left22:25
bremner uh. I don't know what the shell has to do with it. But try bash just in case.22:26
SumDude joined22:26
j_t left22:26
Kicer86 left22:26
willharrison left22:27
Zoddo left22:28
randiman joined22:28
Consuela left22:28
pbrobst left22:28
tang^ omz has a git plugin that may change the behaviour of git22:29
so yeah, try bash22:29
dm7freek joined22:29
_ikke_ iirc, it never changes git behaviour22:29
SirScott well I know i just run the right commands manually and be fine, so perhaps this question is better suited in #zsh or something along those lines22:29
bremner they hate omz ;)22:30
ZenMasta left22:30
Zentdayn joined22:30
_ikke_ uses omz22:30
RichiH _ikke_: don't22:30
bremner see!22:30
_ikke_ RichiH: I'm contend with it22:30
stick-shift joined22:30
_ikke_ content*22:31
RichiH https://github.com/RichiH/zshrc22:31
https://github.com/RichiH/vcsh/https://github.com/RichiH/vcsh/22:31
paste fail22:31
or try the grml zshrc22:31
bote left22:31
stephen_ joined22:32
willharrison joined22:33
dm7freek left22:34
okanck left22:34
nnyk_ joined22:34
SumDude left22:35
otter768 joined22:35
tyreld_ left22:35
denete_ left22:36
Sample _ikke_: I use v1.5 to refer to the tag and the branch and 1.5 just to refer to the release (casually)22:36
ciampix joined22:36
steele joined22:37
BlackFox joined22:37
boombatower joined22:37
boombatower left22:37
boombatower joined22:37
BlackFox I need someones opinion on making git repository commit and push all changes at the end of every day22:37
_ikke_ ko22:37
ok22:37
SirRetnuh joined22:37
Sergio965 joined22:37
Sergio965 left22:37
zumba_addict left22:38
RedShift left22:38
ketas joined22:38
SumDude joined22:39
tohuw joined22:39
otter768 left22:40
SumDude left22:40
SumDude joined22:41
hackvana left22:41
giusef left22:41
hackvana joined22:41
stick-shift left22:42
hackvana left22:43
thiago BlackFox: you have to ask a question before anyone gives you an answer22:44
nnyk_ left22:45
kermit left22:45
Alex______ left22:46
pm90_ left22:46
lieber joined22:46
stephen_ left22:46
duderonomy left22:47
kermit joined22:47
stick-shift joined22:47
syngress_ left22:47
pbrobst joined22:47
BlackFox thiago, what does anyone think on making git repository auto-commit and push at the end of the day?22:47
:V22:47
thiago BlackFox: bad idea22:48
commit when you have stuff to be committed22:48
robert__ left22:48
thiago push only when you want to publish your work22:48
BlackFox well I'm the only one working really22:48
_Atom_ joined22:48
qsuscs doesn’t matter.22:48
thiago then you don't have to push22:48
anyway, if you're doing development, once a day commits is too infrequent22:49
pantsman- left22:49
thiago if you're not doing anything, there's nothing to be committed22:49
qsuscs if you’re really in the flow, make all the commits at once with git gui or git add -p22:49
BlackFox -p?22:49
sgen joined22:49
qsuscs but SVN-like „this and this and that, and while we’re at it, also that one“ commits are bad habits22:49
--patch22:49
!tias or man git add22:49
gitinfo Try it and see™. You learn much more by experimentation than by asking without having even tried. If in doubt, make backups before you experiment (see !backup). http://gitolite.com/tias.html may help with git-specific TIAS.22:50
the git-add manpage is available at http://jk.gs/git-add.html22:50
BlackFox Ah22:50
randiman left22:50
livingstn left22:50
AaronMT left22:51
robert__ joined22:51
BlackFox I just find that I can't be bothered to manage the repositories that nobody will probably ever look at22:51
sgen left22:51
BlackFox So I end up comitting everything in the end of the day anyway22:51
Dunno22:52
I have two repositories, for content and assets, and another one for source code22:52
baweaver joined22:52
BlackFox It's inconvenient to keep two terminals for two repositories open all the time22:52
Or open them up all the time22:53
I'm on Windows and all I get is a taskbar which gets filled up already22:53
axl_ left22:53
Somasis left22:53
Somasis joined22:53
toothrot joined22:54
Jordan_U I'm trying to use git rebase -i for the purposes of rewriting history, i.e. I'm not trying to rebase off of a new branch with different changes. I'm using "git rebase -i HEAD~8" but even just "git rebase HEAD~8" fails with the following output: http://paste.debian.net/hidden/ccf12274/ . I'm clearly misunderstanding how git rebase works as I thought that "git rebase HEAD~8", without the -i, would simply replay the last 8 ...22:54
... commits exactly as they are, and thus would be essentially a no-op. What is actually going on here, and what command should I be using to edit some of the recent commits I've made?22:54
thiago BlackFox: you asked our opinion22:54
axl_ joined22:54
qsuscs Jordan_U: are there any merges involved?22:54
axl_ left22:54
BlackFox thiago, I'm giving you a bit more information as a request for possibly more opinion :)22:54
thiago Jordan_U: do you have a merge commit in the last 8 commits?22:55
Jordan_U qsuscs: One, yes.22:55
SumDude left22:55
thiago that's the problem22:55
ciampix left22:56
SirRetnuh left22:56
CSergiu94 joined22:57
pacon left22:57
baweaver left22:58
sgen joined22:58
Sasazuka left22:59
Consuela joined22:59
phos1 left22:59
sq-one left22:59
Spacew00t left23:00
Sasazuka joined23:00
baweaver joined23:01
Jordan_U thiago: Ok. How can I solve that problem?23:01
thiago Jordan_U: fix the conflict23:01
offby1 teach the conflict23:01
teach the controversy23:01
&c23:01
Jordan_U thiago: Is this a conflict that I fixed when I made the original merge commit? I'm trying to understand why (what seems to me to be) an already solved problem is coming up again.23:02
rns2 joined23:02
luto I've got this secenario: http://i.imgur.com/VxBz0Vx.png base/v2.0.0/v1.0.0 aren't my code, v1.0.0...custom is. My custom code is based on v1.0.0. I'd now like to transfer it on top of v2.0.0; Is a range-cherry-pick the right way to do this?23:02
thiago Jordan_U: it's possible there was no conflict23:02
luto btw, there are many more commits between base...v1.0.0 and base...v2.0.023:02
thiago Jordan_U: you're linearising history now, which means you're reordering commits that had no relationship to each other before.23:03
Gitzilla joined23:03
WaReZ left23:03
_ikke_ Sample: still here?23:04
highcup left23:04
steele left23:04
gsingh93 left23:05
Sasazuka left23:05
Sasazuka joined23:06
Sasazuka left23:06
jontmorehouse left23:06
cbonobo joined23:06
snima left23:07
Consuela left23:07
Dougie187 joined23:07
Consuela joined23:07
danzilio left23:07
willharrison left23:08
rayman22201 left23:09
cdown joined23:09
bulletmark joined23:09
Consuela left23:09
maqr left23:09
Consuela joined23:09
zumba_addict joined23:10
rendar left23:10
kyb3r_ left23:10
CSergiu94 left23:11
teufelChiCoder left23:12
Consuela left23:12
MrRoot left23:13
rayman22201 joined23:13
t-mart left23:14
Xe joined23:14
Dragooon left23:15
stick-shift left23:15
tang^^ joined23:15
t-mart joined23:16
TinkerTyper left23:16
tang^ left23:17
dan_w joined23:17
Sample _ikke_: yep yep23:17
jontmorehouse joined23:17
Sample _ikke_: so what are your thoughts on the result of the "1.6" 3-way-merge into master given merging only looking at the state of the tree for each head?23:18
cdown left23:18
TinkerTyper joined23:18
dan_w Hi all! When I pull on by Ubuntu box, it resets the chmod of one/all of my files. Is there any way to avoid this? Thanks!23:18
_ikke_ Sample: what does git merge-base v1.5 1.6 return?23:20
t-mart_ joined23:20
robert__ left23:21
duckson left23:21
thiago left23:22
duckson joined23:22
joeyDB_ left23:22
tang^^ dan_w: git only records 644 and 755. you shouldn't have any other setting23:22
mkaesz joined23:22
t-mart left23:24
rayman22201 Hi everyone. I have a question about rebase vs. merge.23:24
zacts joined23:24
dmarr left23:24
Consuela joined23:25
_Atom_ left23:25
dan_w tang^^: I am pulling my website files into my public_html dir, and there is a script in there which every time I update, I have to chmod +x a file to be able to execute it again. Do I need to chmod it in the master repo?23:26
robert__ joined23:26
tang^^ dan_w: I thought that sounded like a !deploy scenario23:27
gitinfo dan_w: 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.html23:27
dmarr joined23:27
phantomtiger left23:27
robert__ left23:27
tang^^ dan_w: well, +x is a 755 case so yes you could... but you have to use git to do it23:27
robert__ joined23:27
liamkeily joined23:29
linuxmint left23:29
jerius left23:30
kadoban rayman22201: Are you waiting for someone to force it out of you or something?23:30
rayman22201 Right new we create a feature branch, and then merge master onto the feature branch as a kind of integration test to apply everything that was on master to the feature. But this causes problems sometimes. is Rebase the correct way to do this?23:30
lol. sorry, a lot to type23:30
and I got distracted23:30
tang^^ left23:30
rayman22201 Thanks for waiting :-P23:30
kadoban Hehe, okay. Just making sure you weren't waiting for a response first :)23:30
das_beard left23:31
litespeed joined23:31
kadoban rayman22201: rebase vs merge, it really just depends what you want history to look like. What kinds of problems is your current approach running into? (mostly, rebase will run into…pretty much exactly the same problems, possibly more)23:31
litespeed left23:31
litespeed joined23:32
rayman22201 Well, the problem is occiasionally, git will choose the feature branch version of a chunk of code, and it should choose the master version.23:32
but we get no warnings or merge conflicts23:32
just code regressions magically23:32
qsuscs then merge --no-commit23:32
leeN joined23:32
qsuscs and look around yourself23:32
baweaver left23:33
litespeed left23:33
stephen_ joined23:33
ktchup joined23:33
kadoban rayman22201: That sounds rather odd. It's possible, but… you sure whoever is doing the merge isn't just doing it incorrectly? I've only once had git automerge and it turned out incorrect, after…many many tries. That one I'm not even sure of.23:34
rayman22201 So it’s not really the merge strategy that is the problem. We just need to double check the result of the merge?23:34
boombatower left23:34
mcrutchfield left23:34
rayman22201 It doesn’t happen all the time, but it happens often enough to cause some serious and annoying problems23:34
TinkerTyper left23:34
kadoban rayman22201: Well, it could be the merge strategy. But yeah you really do have to check the result of a merge. Ideally automatically (test suites, etc.), but by hand if not.23:34
stephen_ I'm having an issue with renaming a directory with submodules as children: I have directory parentDir, and I would expect 'git mv parentDir newParentDirName' to fix all references to submodueles contained within it, but after the move, git status fails with malformed submodule references. Reversing the rename restores the repo to a working state. https://dpaste.de/xuq23:35
chitopunk left23:35
litespeed joined23:35
baweaver joined23:36
BSaboia left23:36
TinkerTyper joined23:36
Consuela left23:37
kadoban rayman22201: But as to your original question: I don't think rebase will help you avoid that kind of problem.23:37
Consuela joined23:37
rayman22201 hrmmm. What is the recomended workflow? We don’t want to merge our features onto master without first checking the interactions of the code changes. Master and our features can get out of sync very quickly.23:38
kadoban I don't know that there's a real recommended workflow…git is very flexible there, and it kind of depends on what you want to achieve. The little I've heard about your workflow doesn't sound like a mistaken choice.23:39
awosi left23:40
thef0ster left23:40
madewokherd joined23:40
Ikd joined23:40
Weezey left23:41
munke left23:41
troyt left23:41
Weezey joined23:41
UKn0Me joined23:42
MasterPiece left23:42
troyt joined23:43
cagedwisdom left23:43
rayman22201 In general how would keep a long running feature branch up to date with master?23:44
kadoban I'd merge master in occasionally.23:45
rayman22201 merge and not rebase?23:45
Ikd left23:45
rayman22201 The whole rebase vs merge thing is because I also asked this question on stackoverflow and that was the answer I got… much to my confusion lol23:46
kadoban Yeah, I usually consider rebase kind of…ugly. The only time I do it is when I'm working locally for a while and then I'm pushing something upstream that nobody has seen before and it'll be easier for them if it looks like I started at the tip of master instead of wherever I did.23:46
Otherwise I like to preserve as much history as I can, which merges do.23:47
uokra joined23:48
awkwardusername joined23:48
rayman22201 That’s what I thought23:48
joeyDB_ joined23:49
uokra left23:49
elbeardmorez joined23:50
bnb joined23:50
bnb How can I pull updates from the source repo that I forked?23:50
qeq joined23:50
_ikke_ bnb: add it as a remote23:51
qeq left23:51
bnb _ikke_: How can I do that?23:51
rayman22201 Ok. Well, for now we are just going to double check all our merges, even if there are no merge conflicts. Thanks everyone, especially @kadoban23:51
xk_id left23:51
zumba_addict left23:52
geau joined23:52
kadoban rayman22201: 'welcome. Try to figure out what's causing the merge weirdness, if you can. I have a feeling it's not just as simple as git screwing up, with the default settings and strategy and such, that should be…quite rare.23:52
geau left23:52
nour_ left23:52
_ikke_ bnb: git remote add <name> <url>23:52
nour joined23:53
zumba_addict joined23:53
mkaesz left23:53
auuf joined23:53
joeyDB_ left23:53
bnb the repo I forked is called "website", and my fork is called "website". does "website" (without quotes) go in <name>?23:53
rayman22201 Well, the guy who this tends to happen to is a ‘quite rare’ individual lol23:54
_ikke_ bnb: the name is something you choose yourself23:54
bnb _ikke_: what do I put there? Not the name of the repo I'm pulling from?23:54
_ikke_ bnb: upstream is a common way to refer to the repo you forked from23:55
bnb Okay, so it's not the name of the upstream repo?23:55
ojacobson left23:55
_ikke_ No, that's where the url is for23:56
kadoban rayman22201: Ahh, hah. Yeah I'm especially…disbelieving if it tends to happen to one guy. Have him share his terminal history when it happens again and see what he's doing that he shouldn't.23:56
zumba_addict left23:56
_ikke_ bnb: The remote name is just a shortcut name23:56
bnb: you could have named it foo for all git matters23:56
zumba_addict joined23:56
bnb Okay, doing that step now.23:56
rayman22201 I do have an example of it happening, looking at the git log.23:56
I don’t know the best way to share that though.23:57
bnb _ikke_: Is [email@hidden.address] the right url?23:58
smccarthy left23:58
yang left23:59
zacg left23:59
_ikke_ looks good23:59
zumba_ad_ joined23:59
bnb Okay23:59

Logs Search ←Prev date Next date→ Channels Documentation