IRCloggy #git 2017-09-27

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.

2017-09-27

jrabe left00:00
TheVice joined00:00
orbyt_ left00:00
jrabe joined00:00
ronster left00:04
drodger joined00:05
shinnya left00:05
Tobbi joined00:06
MattMaker left00:06
SpeakerToMeat left00:06
Gustavo6046 left00:06
cdg left00:06
MattMaker joined00:08
MattMake_ joined00:08
Gustavo6046 joined00:08
Kazuto left00:09
MattMaker left00:09
rorro left00:09
MattMaker joined00:10
Kazuto joined00:10
Kazuto left00:10
Kazuto joined00:10
Noldorin left00:12
Solvaring left00:12
cdown joined00:13
MattMake_ left00:14
BowBoy joined00:14
xaa left00:15
SerusWork left00:18
cbonobo joined00:18
ArcaTech left00:18
roelmonnens joined00:19
Tobbi left00:19
cbonobo left00:20
cbonobo joined00:20
snowkidind joined00:23
SerusWork joined00:23
roelmonnens left00:23
BlitZKotare joined00:23
cagomez left00:24
cbonobo left00:25
GrailKn1ght joined00:25
justanotheruser joined00:25
Yondering joined00:29
stutter joined00:30
bronson left00:32
Khisanth left00:33
SpeakerToMeat joined00:34
Patriqu left00:34
jakogut joined00:38
GrailKn1ght left00:42
mr_sm1th left00:43
noobineer joined00:46
noobineer left00:46
BowBoy left00:49
Khisanth joined00:53
austin987 joined00:53
piremi left00:55
Garen left00:56
[Kid] left00:57
robinb joined00:58
Neo joined00:58
overlord_tm left01:03
Feral_Cat left01:06
ronster joined01:06
seanBE left01:07
tilpner left01:07
svm_invictvs left01:07
tilpner joined01:07
athaller joined01:09
FrostyBytes is there a way to gitignore */tmp but not */*/tmp?01:09
seanBE joined01:09
dsdeiz joined01:11
dsdeiz left01:11
dsdeiz joined01:11
FrostyBytes oh lol thats exactly what putting */tmp in .gitignore does01:11
mel00010 joined01:13
salamanderrake left01:14
sgtbigman joined01:14
sunri5e left01:15
bergice_ left01:16
ronster left01:16
sunri5e joined01:17
[Kid] joined01:22
roelmonnens joined01:22
mspo left01:24
finalbeta joined01:24
Murr left01:25
opalepatrick left01:26
roelmonnens left01:26
Murr joined01:26
Sasazuka left01:28
Dreadnaught left01:33
forsythe left01:34
piraye joined01:35
sparr How can I preview what would happen if I tried to merge a branch into my current branch?01:36
I basically want to diff HEAD against HEAD+branch01:36
where + is the merge operation01:36
BowBoy joined01:39
orbyt_ joined01:39
orbyt_ left01:41
MattMaker left01:41
alphor there is only ever one tree in a git repository, right? Why call it a directed acyclic graph instead of a directed tree?01:43
griffindy left01:45
Lyqyd joined01:45
dzho because there are merges?01:45
ilbot3 left01:45
dzho doesn't know his graph theory well enough I guess01:46
LionsMane joined01:47
Dreadnaught joined01:47
Dreadnaught left01:47
Dreadnaught joined01:47
Dreadnaught left01:47
alphor that makes sense. wikipedia lists tree as undirected but you can always map a 'directed tree' into an undirected one. But what you said would introduce a cycle in the undirected version01:49
Dreadnaught joined01:49
Dreadnaught left01:49
Dreadnaught joined01:49
neil_cn joined01:49
alphor the term for 'directed tree' is polytree. But that terminology is more confusing and also inaccurate. oh well.01:51
sgtbigman left01:52
mel00010 left01:54
igemnace joined01:54
AfroThundr left01:55
ilbot3 joined01:55
d^sh left01:56
orbyt_ joined01:57
d^sh joined01:57
drodger left01:58
drodger joined02:00
ArcaTech joined02:03
gugah left02:03
gugah joined02:05
gugah left02:05
mel00010 joined02:05
cdg joined02:06
Gustavo6046 left02:06
AfroThundr joined02:08
jameser joined02:10
Cabanossi left02:11
cdown left02:12
Cabanossi joined02:13
robinb left02:14
cdown joined02:15
troyt left02:17
wxg joined02:17
robinb joined02:18
piremi joined02:19
troyt joined02:19
cdown left02:21
cdown joined02:24
AfroThundr left02:25
AfroThundr joined02:25
cdown left02:25
CssNoOb joined02:25
ToBeCloud joined02:26
gitinfo set mode: +v02:27
chachasmooth_ joined02:27
robinb left02:27
chachasmooth left02:28
regedit joined02:28
acedia3 joined02:29
lagothrix joined02:30
zivester joined02:31
dsdeiz left02:32
lagothri1 left02:33
ArcaTech left02:33
wxg left02:33
dsdeiz joined02:33
dsdeiz left02:33
dsdeiz joined02:33
tchan left02:33
bronson joined02:33
ArcaTech joined02:34
ShalokShalom left02:35
couchz joined02:38
bronson left02:38
m712 left02:39
sz0 left02:40
m712 joined02:41
couchz hey im getting "Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes (e.g.02:41
hint: 'git pull ...') before pushing again.y02:41
oojacoboo is there a way I can copy all files into a directory, replacing all of them without triggering git to recognize all of these as changed?02:41
PaulCapestany left02:41
couchz i tried "git pull origin master" and i got "fatal: refusing to merge unrelated histories"02:41
oojacoboo so that it only recognizes the changes?02:41
rewt couchz, just `git pull`02:42
PaulCape_ joined02:42
couchz "There is no tracking information for the current branch."02:42
"Please specify which branch you want to merge with."02:42
rewt what did you type exactly to get that "Updates were rejected" message?02:43
MattMaker joined02:43
couchz so i started this repo on github with a license, but then I didnt pull with git initially, i used "git push origin master" as soon as I was ready02:44
a3Dman left02:44
couchz then tried "git pull origin master"02:45
then it gave me that02:45
rewt you can force push to overwrite what's on github with what you have locally02:45
a3Dman joined02:46
lb1c left02:47
couchz so theres no way to pull now?02:47
rewt do you want to keep what's on github now?02:47
couchz if i can yeah02:48
lb1c joined02:48
rewt easiest way is to clone that repo elsewhere locally and copy in the files you want from here to there, and then commit + push02:49
couchz alright thanks, i think I will just delete it and do it over02:50
Toba couchz: did you create your github repo "with readme" on github02:50
that option they have now for creating a repo with some stuff in it already for you02:51
FrostyBytes how do I get the latest commit on HEAD? more cleanly than git log | head -n 1 ?02:51
couchz no just the license02:51
Toba that's the same thing02:51
it creates a commit that contains the license file02:52
igemnace FrostyBytes: HEAD already points to a commit. git show HEAD or simply git show02:52
couchz oh, yeah this time I will just make sure to pull first02:52
Toba yup02:52
couchz thanks02:52
rewt if you only have 1 or 2 files on github, just copy them into your local repo and force push it02:52
FrostyBytes but I want just the commit sha as output02:52
Toba that's bad advice rewt, I think02:52
rewt why?02:53
Toba if you're gonna force push a fresh repo just delete it and recreate it without files in it02:53
igemnace FrostyBytes: git rev-parse HEAD02:53
Toba why start with a little mess in there02:53
rewt he said he wants to keep those files02:53
couchz Toba: I can just delete the .git folder to start a new git init fresh right02:53
Toba yes02:53
igemnace FrostyBytes: btw git log can already take a number arg. git log -1 shows 1 commit at most02:53
couchz rewt: it was just the license file I dont mind restarting quickly02:53
Puffball left02:56
bumblebeer left02:56
bumblebeer joined02:56
tchan joined02:57
Puffball joined02:57
perrier-jouet joined03:00
perrier-jouet left03:01
fstd_ joined03:02
pks left03:03
m0viefreak left03:03
pks joined03:05
fstd left03:06
fstd_fstd03:06
dviola left03:11
ecstaticmorse left03:12
ecstaticmorse joined03:14
dviola joined03:15
perrier-jouet joined03:16
BowBoy left03:18
svm_invictvs joined03:19
cdg left03:21
cdg joined03:21
accakks joined03:22
fatalhalt joined03:22
ecstaticmorse left03:22
orbyt_ left03:23
stutter left03:24
gitinfo set mode: +v03:24
accakks Hi, is this the right place for people who wish to apply to Git in outreachy round'15 or there is some other specific channel?03:24
couchz to delete ssh and gpg keys can I just clear the folders out?03:24
jameser left03:24
disi left03:25
Murr left03:25
cdg left03:25
Murr joined03:26
Cabanossi left03:26
Cabanoss- joined03:27
piremi left03:27
Cabanoss-Cabanossi03:27
tunekey left03:28
jameser joined03:30
couchz left03:32
bronson joined03:33
jameser left03:36
snadge left03:36
JeffH joined03:37
TheVice left03:37
jameser joined03:37
bronson left03:38
qpt joined03:38
JeffH I finally broke through today and ‘get’ git. Not sure what my hang up really was.. haha03:39
Janeway joined03:40
Janeway left03:41
Bobdude joined03:41
brent__ left03:41
rocktop joined03:42
jameser left03:45
oojacoboo JeffH sounds like you have a long way to go03:46
might want to just turn around :)03:47
govg joined03:47
oojacoboo it's a really deep rabbit hole03:47
fair warning03:47
couchz joined03:48
couchz can gpg not use the private github email to sign commits?03:48
TikityTik joined03:48
jameser joined03:51
TheVice joined03:51
couchz nvm forgot to set gitconfig signing key03:52
accakks left03:52
imack joined03:54
Cabanossi left03:55
couchz left03:56
Elon_Satoshi left03:56
wombawomba joined03:57
Cabanossi joined03:57
ArcaTech left03:57
jameser left03:58
Elon_Satoshi joined03:59
ArcaTech joined04:00
parsnip oojacoboo: well played... i spent a couple days upping my git game, now i see it just goes on forever04:00
oojacoboo git is just the tip of the iceberg04:00
parsnip file system locks? credential helpers? mamma mia!04:01
er, commit locks or whatever04:01
Syntax_Error joined04:01
oojacoboo it's what you use git for that's the real rabbit hole04:01
Syntax_Error left04:02
jameser joined04:02
Elon_Satoshi left04:03
Elon_Satoshi joined04:05
JeffH oojacoboo: haha. Everyone I know seems to think git is the best thing since sliced bread.04:07
piremi joined04:08
oojacoboo JeffH git is great, but if you're just gitting into it, the rabbit hole goes much deeper. Might I suggest the blue pill04:11
JeffH oojacoboo: haha. I’m doomed. The project I’m currently on and the next project are both using git. I came from CVS.04:11
oojacoboo git has a lot of advantages over CVS04:12
branch merging is certainly a big one04:12
piremi left04:12
JeffH Yeah.. we didn’t even really mess with branching with CVS.04:13
oojacoboo yea b/c it was a disaster04:13
JeffH We ended up using a tagging mechanism as a poor man’s branching.04:13
rscata joined04:14
a3Dman left04:15
JeffH I’m quite excited to be using git.. more so now that I seem to have gotten over the learning curve. For some reason ‘git log’ of all things was tripping me up.04:15
I think that’s more because I learned mercurial for a short bit before picking up git.04:15
robinb joined04:15
ArcaTech left04:15
tnecniv left04:16
parsnip `git log` is life04:16
jameser left04:16
parsnip i heard hg has an easier learning curve04:16
i guess the idiom would be more like, "gentler"04:17
JeffH parsnip: exactly.. so not quite getting it really hampered things. It was hard to understand the state of my local area without understanding ‘git log’.04:17
I do miss the simplicity of ‘hg in’ and ‘hg out’.04:18
Brain joined04:19
Yonderen joined04:20
ArcaTech joined04:20
Ardethian\ joined04:20
piremi joined04:21
ghoti_ joined04:21
milki_ joined04:21
ojacobson_ joined04:22
robotroll joined04:22
musl_ joined04:22
jab416171_ joined04:22
frobnic_ joined04:22
JrCs_ joined04:22
oojacobo_ joined04:22
jameser joined04:23
sven^_ joined04:24
fxrs joined04:24
bond_ joined04:24
Toba__ joined04:24
s17_ joined04:24
destiny__ joined04:24
somiaj_ joined04:25
abec0_ joined04:25
Mathiasd1 joined04:25
drodger_ joined04:25
elbeardmorez_ joined04:25
likewhoa- joined04:25
Ruler-_ joined04:25
ikonia_ joined04:25
PaulePan1er joined04:25
holdsworth joined04:25
djh_ joined04:25
nephyrin` joined04:25
axisys_ joined04:25
parsnip0 joined04:25
piremi left04:25
ivo_ joined04:25
ivo_ left04:25
d-fence__ joined04:25
chrfle^ joined04:25
tec___ joined04:25
wombawomba left04:25
BlaXpirit joined04:26
ivo_ joined04:26
ivo_ left04:26
ivo_ joined04:26
ivo_ left04:26
jakogut_ joined04:26
Methos_ joined04:26
ivo_ joined04:26
ivo_ left04:26
ivo_ joined04:26
ivo_ left04:27
ivo_ joined04:27
ivo_ left04:27
ivo_ joined04:27
ivo_ left04:27
ivo_ joined04:27
ivo_ left04:27
ivo_ joined04:27
ivo_ left04:27
ivo_ joined04:28
ivo_ left04:28
ivo_ joined04:28
FK04 joined04:28
devster joined04:28
incredible_ joined04:29
Ricaz- joined04:29
StephenS_ joined04:29
levex_ joined04:29
andai_ joined04:29
rscata left04:29
lagothrix left04:29
drodger left04:29
jakogut left04:29
Yondering left04:29
toydestroyer left04:29
Oatmeal left04:29
monokrome left04:29
armyriad left04:29
diogenese left04:29
tec__ left04:29
elbeardmorez left04:29
destiny_ left04:29
andai left04:29
blahdodo left04:29
chrfle left04:29
jab416171 left04:29
oojacoboo left04:29
parsnip left04:29
autrilla left04:29
__main__ left04:29
tkore left04:29
lexruee left04:29
marienz left04:29
kloeri left04:29
typikal left04:29
JrCs left04:29
Ruler- left04:29
bond left04:29
axisys left04:29
vdl left04:29
mikeymop left04:29
uidzer0 left04:29
Cathy left04:29
duckydan left04:29
RiPer left04:29
levex left04:29
permalac left04:29
musl left04:29
[Brain] left04:29
j416 left04:29
anderson left04:29
atrus left04:29
SlizardWizard left04:29
Mathiasdm left04:29
sven^ left04:29
holdsworth_ left04:29
danieli left04:29
grkblood13 left04:29
ExeciN left04:29
Ricaz left04:29
no_maam left04:29
frobnic left04:29
d-fence_ left04:29
elricsfate left04:29
StephenS left04:29
abec0 left04:29
incredible left04:29
ujjain- left04:29
Random832 left04:29
Aichan left04:29
catern left04:29
jerrcs left04:29
Guest14068 left04:29
__name__ left04:29
WakiMiko left04:29
lus left04:29
maqr left04:29
osse left04:29
somiaj left04:29
quadz left04:29
milki left04:29
arand left04:29
FiendKing04 left04:29
nikow left04:29
fxrs_ left04:29
BlackPanx left04:29
sentriz left04:29
mulvane left04:29
ojacobson left04:29
oprypin left04:29
gnarf left04:29
devster31 left04:29
Amadiro left04:29
nutron|w left04:29
qassim left04:29
likewhoa left04:29
wwalker left04:29
nephyrin left04:29
Toba left04:29
PaulePanter left04:29
veremitz left04:29
djh left04:29
pelegreno left04:29
ikonia left04:29
GGMethos left04:29
thekingofbandit left04:29
volestorm left04:29
murr4y left04:29
Adylas left04:29
BooK left04:29
s17 left04:29
avar left04:29
ghoti left04:29
BlaXpiritoprypin04:29
uidzer0 joined04:30
lexruee joined04:30
volestorm joined04:30
RiPer_ joined04:30
armyriad joined04:30
qassim joined04:30
veremitz joined04:30
autrilla joined04:30
atrus joined04:30
BlackPanx joined04:30
toydestroyer joined04:30
typikal joined04:30
__name__ joined04:30
jerrcs joined04:30
Yonderen left04:30
anderson joined04:30
j416 joined04:31
ujjain joined04:31
ujjain left04:31
ujjain joined04:31
Cathy joined04:31
avar joined04:31
catern joined04:31
kloeri joined04:31
arand joined04:31
Map joined04:31
wwalker joined04:32
thekingofbandit joined04:32
lus joined04:32
mulvane joined04:32
mulvane left04:32
mulvane joined04:32
__main__ joined04:32
dminuoso left04:32
ggherdov left04:32
MapGuest1525504:32
ahammond left04:32
danieli joined04:32
BooK joined04:32
SlizardWizard joined04:32
blahdodo joined04:32
d^sh left04:32
HM left04:32
Aichan joined04:32
SCHAPiE left04:32
ivo_ left04:33
a3Dman joined04:33
cbreak left04:33
dogmatic69 left04:33
duckydan joined04:33
sunri5e left04:33
d^sh joined04:33
boombatower left04:34
gnarf- joined04:34
AndreSomers left04:34
ggherdov joined04:34
AndreSomers joined04:34
maqr joined04:34
dogmatic69 joined04:34
SCHAPiE joined04:34
maqr left04:34
maqr joined04:34
HM joined04:34
cbreak joined04:34
ahammond joined04:34
dminuoso joined04:35
vdl joined04:35
Adylas joined04:35
lagothrix joined04:35
elricsfate joined04:36
pelegreno joined04:36
permalac joined04:36
grkblood13 joined04:36
ToBeCloud left04:36
quadz joined04:36
sentriz joined04:36
sunri5e joined04:36
murr4y joined04:36
mikeymop joined04:37
WakiMiko joined04:37
Random832 joined04:37
marienz joined04:37
rscata joined04:37
nutron|w joined04:37
no_maam joined04:37
Amadiro joined04:37
nikow joined04:38
monokrome joined04:38
ozette_ joined04:40
durre joined04:40
UTAN_dev_ joined04:41
UTAN_dev left04:42
_ng left04:42
ExeciN joined04:46
ephemera_ Hi, When I update to 2.14.2, can not use `git add -p`. It do not show select command. It action just same as `git diff`. What's problem with me?04:48
diogenese joined04:50
_ikke_ ephemera_: You mean that you don't see this part: "Stage this hunk [y,n,q,a,d,/,e,?]? "?04:50
ephemera_ _ikke_: exactly yes.04:50
_ikke_ ephemera_: Are you dropped back to the command line, or does it wait?04:51
jameser left04:51
acedia3 left04:52
ephemera_ _ikke_: dropped back to the command line04:52
aNusBlEach left04:54
Solvaring joined04:54
_ikke_ Hmm, odd04:54
Lyqyd left04:54
al-damiri left04:55
Cabanossi left04:56
Cabanossi joined04:57
pabs3 joined04:58
pabs3 is there a way to tell which git tags haven't been pushed to the remotes (without using git push --tags --dry-run)?04:58
whitby left04:59
_ikke_ pabs3: no, you have to communicate with the remote to do so05:00
pabs3: you could use git ls-remote to find out what tags the remote has05:00
whitby joined05:00
jameser joined05:00
_ikke_ ephemera_: I'm not sure what's wrong05:01
ephemera_: can you also reproduce that on other systems?05:01
ephemera_ _ikke_: I will try it05:02
pabs3 finds https://stackoverflow.com/questions/11308298/how-to-list-unpushed-git-tags05:02
_ikke_ RIght, that uses ls-remote05:03
ivo_ joined05:03
zivester left05:03
_ikke_ pabs3: why don't you want to use push --dry-run?05:03
Or is the reason you want to script it?05:03
pabs3 I was hoping for something local-only05:03
_ikke_ git does not track tags05:04
like it does with branches05:04
pabs3 it could though, just storing them in .git/info/refs like it does with local tags05:04
blahdodo left05:05
durre left05:05
parsnip0parsnip05:05
Oatmeal joined05:06
safe left05:06
blahdodo joined05:08
rocktop left05:11
_ikke_ it could, but it doesn't05:13
There is normally little value in tracking them05:13
samlisl_ left05:14
pabs3 there is for tracking git tags that haven't been pushed to the remotes :)05:14
_ikke_ pabs3: note that .git/info/refs is for dumb http transport05:15
pabs3: it's not updated automatically05:15
skered left05:16
ArcaTech left05:16
pabs3 oh, where are git tags stored then?05:16
Feral_Cat joined05:16
ws2k3 joined05:16
ws2k3 left05:16
_ikke_ either refs/heads/tags or packed refs05:16
sorry refs/tags05:17
ws2k3 joined05:17
ws2k3 left05:17
ppang joined05:17
pabs3 hmm05:17
ws2k3 joined05:17
ws2k3 left05:17
pabs3 all the refs I've pushed are missing from .git/refs/tags05:18
ws2k3 joined05:18
ws2k3 left05:18
ws2k3 joined05:18
ws2k3 left05:18
_ikke_ pabs3: right, like I said, they may be packed05:19
git show-ref lists them all05:19
ws2k3 joined05:19
ws2k3 left05:19
pabs3 ahh05:19
somiaj_ left05:20
CssNoOb left05:20
snowkidind left05:21
frobnic_frobnic05:21
somiaj joined05:21
bambs joined05:22
ogny joined05:23
lss8_ joined05:26
TikityTik left05:26
JeffH left05:27
somiaj left05:28
piremi joined05:28
CssNoOb joined05:29
lss8 left05:29
FrostyBytes left05:31
zefferno joined05:31
bambs left05:32
skered joined05:33
ppang left05:34
bronson joined05:34
Neo left05:35
ppang joined05:35
ozette_ left05:40
zenirc369 joined05:41
Numerotone joined05:42
dreiss joined05:42
Numerotone left05:43
ThomasLocke joined05:44
ThomasLocke left05:44
ThomasLocke joined05:44
Raging_Hog joined05:46
robinb left05:46
diqidoq joined05:47
robinb joined05:47
bongozig left05:47
PaulePan1erPaulePanter05:47
neil_cn left05:47
bronson left05:49
Bock joined05:51
ivo_ left05:56
TheVice left05:57
jameser left05:58
ZyX-I joined05:59
Bercik left06:00
chrfle^ left06:01
chrfle^ joined06:01
dec0n joined06:01
chrfle^ left06:02
chrfle joined06:02
chrfle left06:02
chrfle joined06:02
osse joined06:03
typikal left06:05
Bercik joined06:06
dre_ joined06:07
dege joined06:09
roelmonnens joined06:11
jceb joined06:14
freimatz joined06:15
neil_cn joined06:15
webguynow left06:22
abba joined06:22
ogny left06:25
ogny joined06:25
ogny left06:25
ogny joined06:25
Cabanossi left06:26
zulutango joined06:26
MACscr left06:27
Cabanossi joined06:27
Random832 left06:29
redhedded1 joined06:29
ZyX-I left06:31
Silmarilion joined06:32
webguynow joined06:33
cdown joined06:33
imack left06:33
ZyX-I joined06:34
MACscr joined06:35
felixsanz left06:36
alcohol joined06:37
tkore joined06:37
felixsanz joined06:38
piraye left06:39
nd joined06:40
Random832 joined06:40
bambs joined06:40
selckin left06:41
luc4 joined06:41
selckin joined06:41
AegonTarg joined06:42
YETI joined06:42
AegonTarg Is there a git for windows that just has the console?06:42
I don't want anything added to my context menus, I just want git on my command prompt.06:42
dreiss left06:42
piraye joined06:43
nd- left06:44
brillenfux joined06:45
bambs left06:45
JeroenT joined06:45
AndreasLutro if you download git for windows on the git official website that's what you'll get06:46
dreiss joined06:47
imack joined06:47
ikonia_ikonia06:48
brillenfux left06:49
AegonTarg AndreasLutro, I don't want the context menus though.06:49
I believe this installs context menus06:49
King_Hual joined06:50
AndreasLutro mm okay06:50
maybe get the portable version?06:50
Solvaring left06:51
alcohol left06:51
alcohol joined06:52
YETI left06:53
Lunatrius` joined06:53
YETI joined06:54
Lunatrius left06:54
Lunatrius`Lunatrius06:54
bambs joined06:54
qpt left06:55
pabs3 left06:55
chele joined06:56
grawity AndreasLutro: I believe it also confirms whether you want context menus or not06:56
AndreasLutro yeah that's what I would hope06:57
dulange__ joined06:57
regedit left06:58
YETI left07:00
StarSeedling joined07:00
ArcaTech joined07:00
ertes-w joined07:01
likewhoa- left07:02
ecstaticmorse joined07:02
bambs left07:02
likewhoa joined07:02
ojdo left07:04
dreiss left07:04
_ng joined07:07
ShekharReddy joined07:07
theoceaniscool joined07:07
lss8_ left07:08
Xiti` left07:10
YuGiOhJCJ joined07:10
ojdo joined07:10
Xiti joined07:10
TomyWork joined07:11
dviola left07:13
robattila256 left07:14
osse AndreasLutro: you can disable that at install07:14
oops, that was for AegonTarg07:14
grawity seems to be mistab o'clock07:14
thiago left07:14
AegonTarg thanks!07:14
grawity time for coffee07:14
AegonTarg left07:14
osse he knows nothing07:15
theoceaniscool left07:15
Brski joined07:16
opalepatrick joined07:18
Hobbyboy left07:18
roelmonn_ joined07:18
barteks2x left07:18
flaviodesousa joined07:20
JeroenT_ joined07:21
dave0x6d left07:21
roelmonnens left07:22
phash joined07:22
_ng left07:23
_ng joined07:24
JeroenT left07:24
roelmonn_ left07:24
roelmonnens joined07:25
Evalix joined07:26
jstein_ joined07:26
Evalix_ joined07:26
jstein_jstein07:26
Evalix_ left07:26
ArcaTech left07:30
robattila256 joined07:30
SwiftMatt joined07:31
Hobbyboy joined07:35
ams__ joined07:35
barteks2x joined07:38
phluks joined07:39
SerusWork left07:41
SwiftMatt left07:41
bronson joined07:46
energizer left07:47
Willis left07:47
piremi left07:47
AnujSharma joined07:47
rorro joined07:48
phash left07:50
bronson left07:50
Willis joined07:50
Ladus joined07:54
cagedwisdom left07:55
cagedwisdom joined07:55
mikecmpbll joined07:57
Random832 left08:00
VladGh joined08:02
lss8 joined08:02
VladGh_ left08:04
Ladus left08:07
Guest24 joined08:08
kurkale6ka joined08:09
revoltingPeasant joined08:09
felixsanz left08:10
Cabanossi left08:11
schleppel joined08:11
felixsanz joined08:12
Cabanossi joined08:12
kurkale6ka left08:13
Random832 joined08:14
piremi joined08:14
kurkale6ka joined08:14
manuelschneid3r joined08:18
piremi left08:19
theoceaniscool joined08:20
rominronin joined08:20
hussam left08:20
cdg joined08:22
dsdeiz left08:22
xsteadfastx left08:23
ZyX-I left08:23
Nobun joined08:23
dsdeiz joined08:23
Anja left08:24
cdg left08:26
Floflobel joined08:27
YuGiOhJCJ left08:29
Ratler left08:29
hussam joined08:29
_ADN_ left08:30
Ratler joined08:30
xaa joined08:30
durham joined08:32
dsdeiz left08:35
freimatz left08:36
Nobun Hi. I am planning to develop an application where you can manage documents and, for each document, you could see the different revisions (so you can revert back to a previous revision than the most recent one). The idea is to call and use GIT through the application (creating internal local repository for each document)08:37
but I need to understand how I can allow my application to "interact" with git (I don't need to upload to github or similar site).08:38
grawity you can use various libraries like libgit208:39
(libgit2 deals with repos directly, but some other libraries call git behind the scenes and require it to be installed)08:39
Nobun well... I think it is not a problem if the final application will require git to be installed... but thank for the suggestion about libgit2... I will take a look at it.08:40
chll_ joined08:41
Anja joined08:41
Nobun for the moment, however, I need to understand a thing... when I do git push or pull (with git application, I mean) I will publish to remote repository or update local repository from remote site like github or similar. If I want to create a repository system, for example, in a server, are there some things to know about data structure on remote?08:42
CheckDavid joined08:43
Nobun I will try to be more clear08:43
I mean... when I git push origin master on master branch on repository (for example on github), the github repository will take all new commits and add them to github too08:43
cstratak joined08:44
cstratak left08:44
AegonTarg joined08:44
AegonTarg I cannot get my test.txt file removed from the git repo.08:44
cstratak joined08:44
AegonTarg I've tried git rm "test.txt" but it's still there..08:44
grawity AegonTarg: did you commit the changes08:44
_ADN_ joined08:44
AegonTarg grawity, yup, it's still there.08:45
murii joined08:45
grawity AegonTarg: still where08:45
AegonTarg on the git repo.08:45
grawity AegonTarg: which git repo?08:45
Nobun local or server repo?08:45
AegonTarg server.08:45
grawity Nobun: what data structure did you mean – commits/branches?08:45
AegonTarg it's off the local repo, but still on server.08:45
grawity AegonTarg: did you `git push` the removal commit?08:45
AegonTarg yup.08:45
grawity how are you looking at the server?08:45
AegonTarg I did08:45
grawity does it have files just checked out? is there a post-update script that deploys them somewhere?08:46
AegonTarg git rm "test.txt", git add -A, git commit -m "removed test.txt", git push08:46
grawity is this just a github-like web UI?08:46
pbandark joined08:46
AegonTarg It's Gogs git08:46
Nobun with data structure I mean the information required to push and pull from/to a remote service (for example saving repository in a private server and not on github, bitbucket or other similar sites)08:46
grawity AegonTarg: so you're looking at the web UI then?08:46
AegonTarg Yes.08:47
Correct.08:47
grawity AegonTarg: does the commit ID match what you're seeing locally?08:47
are you looking at the correct branch?08:47
(did you push to the correct repo?)08:47
AegonTarg actually no it doesnt08:47
I added test.txt in a commit message titled "initial commit" over 1 hour ago08:47
but I literally just removed test.txt, yet it still shows that initial commit for the file.08:47
grawity Nobun: git's protocol usually takes care of that08:47
Nobun: are you planning on running regular git on the server, or a custom implementation?08:48
AegonTarg you know what, I don't know why this is happening08:48
Nobun grawity: for the moment I only at a planning state. I still not yet started this project. I am only try to understand wich kind of additional knowledge I will need before starting08:48
AegonTarg I'm just gonna remove it manually using the web UI08:48
AegonTarg left08:49
grawity always a pleasant experience trying to help people who give up halfway—08:49
not quite as good as being told to fuck off but still08:49
Nobun: the Git push/fetch protocol only deals with commits (and refs – branches, tags, etc.)08:49
Nobun: there's nothing specific that your program would need to do, if you're just using git's or libgit2's regular operations08:50
_ADN_ left08:50
grawity tbh I'd worry more about merges...08:50
chrfle left08:51
evangeline joined08:52
feodaron left08:52
a3Dman left08:53
feodaron joined08:53
Nobun grawity: I think I will not require anithing specify. After all the idea is to have a software wich can show different revisions of documents (for advocates) so he will able to re-access to the document saved in different revisions and see wich one fits better for his needs08:53
grawity well, as long as it's strictly linear08:54
Nobun I know that git protocol is not used very efficiently this way (after all a .doc/.odt document is indeed binary than text), but I think that having the chance to access to different revision of a document could be a fine tool08:55
grawity but let's say the same document is downloaded to two computers, at version X08:55
and different modifications happen on both08:55
well, the git protocol really doesn't care about text vs binary08:55
acidjnk joined08:55
Nobun yeah... but you cannot use diffs... this is what I mean, grawity08:55
my fault I was not clear08:56
grawity: in your scenario you should see different commits, each one coming from different author (user) right?08:57
(if the application correctly pushes to a common server, in this example)08:57
venmx_ left08:58
venmx left08:58
clmsy joined08:58
Nobun the problem could be, like you said, if I plan to use also branches... it could be very hard to merge in a trusted way08:59
to avoid conflicts with different files with a single commit, the starting idea is to create, through application, different internal repositories for each document. But I don't know if the idea is nice.09:00
svm_invictvs left09:00
Nobun (so... every document should be contained in its own local repo)09:00
thomasross left09:01
a3Dman joined09:01
thomasross joined09:01
_ADN_ joined09:02
testuser joined09:04
testuser hi, I'm currently using git submodules for the actual project + libraries it uses; the libraries are in a separate repositories, since they are reused in a different project (the libraries are internal only). However, I'm having the issue when certain feature is split among different repositories (project libraries), which is hard to update, since there is no unified pull request for example: each repository has to be updated separated09:05
even though this is the same functionality. I'm looking to switch to something that would solve this issue - would git subtrees help there, can I still have a separate library repository that is reused across projects?09:05
Raging_Hog left09:05
dhollinger left09:05
robinb left09:09
j08nY joined09:09
Nobun testuser, since I am not so expert on using git, the only advice I could think of is to use diff-patch09:11
jameser joined09:11
testuser Nobun, how would that help me in this use case?09:12
Nobun after creating and testing the new feature in a library and after testing it you create a diff files from the starting revision (before changing) and the "final" revision (after the feature was applied)09:12
grawity Nobun: basically, your app would handle the merging09:12
Nobun: Git can give you version A, version B, and the "base" version09:12
testuser Nobun, but I would have to apply the patch to every library separately, including the project itself; that won't solve anything.09:13
Nobun then you could apply the same diff in the other repos so the code will be updated easily. But, however, your repos must be actually updated separately even following this advice09:13
grawity Nobun: though of course that only applies if two computers are allowed to push the same document to the same server repo/account09:13
testuser: separate repo sounds like submodules09:13
testuser: they're kind of a pain sometimes, though09:14
seschwar joined09:14
grawity but they still let you say that "this commit of main-app repo requires that specific commit of library repo"09:14
Nobun testuser: sorry than. That was the only idea I could think of :(09:14
Guest24 left09:15
grawity and a pull request could update that as well (e.g. change file A, change file B, and update submodule to commit X)09:15
testuser grawity, yeah, I would like to solve that, I'm asking whether subtree would solve this?09:15
Nobun thank for answers and for your time, grawity09:17
Yondering joined09:17
a3Dman left09:18
testuser grawity, there would have to be multiple pull requests for each of the libraries as well as the actual project, which is precisely what I'm trying to avoid.09:18
jast there's no great way to handle this if your interface doesn't allow bundling changes in multiple repositories09:19
nisseni joined09:19
King_Hual left09:20
buyfn joined09:21
gitprotector joined09:22
rorro left09:22
gitprotector left09:23
testuser jast, I'm looking for a way to solve it, maybe https://github.com/ingydotnet/git-subrepo but don't have any experience with it, so I'm not sure if it will work.09:24
Tobbi joined09:24
nisseni I've installed a plugin to wordpress that has a git repo. So my main repo won't add it (guess it wants it as a submodule) - however, I want it in the original repo. I've removed all the git-files from the plugin and the submodule config in my original repo, but it still won't add. Any ideas how to fix this?09:25
Murr left09:25
Murr joined09:26
a3Dman joined09:26
akushner___ joined09:26
askb left09:26
zero85 left09:27
askb joined09:27
SerusWork joined09:27
plitter joined09:28
venmx joined09:28
venmx_ joined09:28
joe1 joined09:30
askb left09:32
dhollinger joined09:32
revoltingPeasant left09:32
Random832 left09:33
askb joined09:33
CssNoOb left09:34
PtxDK_ left09:38
santaclauze joined09:38
santaclauze how do i change my default protected branch?09:38
I pushed on dev when initialising my project rather than on master09:38
StephenS_ left09:38
_ikke_ git does not have protected branches09:39
a3Dman left09:39
_ikke_ You are probably using github|gitlab|bitbucket|<git_hosting_service>09:39
VladGh left09:39
StephenS joined09:39
PtxDK joined09:39
VladGh joined09:40
dcpc007 When doing a rebase -i on many commits, how can i "pause" to check what was exactly in the commit where i'm to choose the right message ?09:41
currently i got the screen with commit message to edit and "only" the list of modified files09:41
grawity just open a new terminal window and look around09:42
theoceaniscool left09:43
re1 joined09:43
dcpc007 ha yes :)09:43
pffff cheater :)09:44
Tobbi left09:44
bergice_ joined09:45
Random832 joined09:46
bronson joined09:47
j08nY left09:48
simka joined09:48
ahrs left09:50
FernandoBasso joined09:51
cdown_ joined09:51
tvw joined09:51
ecstaticmorse left09:51
ahrs joined09:52
bronson left09:52
s17_s1709:52
cdown left09:52
cdown_cdown09:52
stamina joined09:53
buyfn left09:59
cagedwisdom left10:01
Agrajag- joined10:01
Guest24 joined10:02
ojdo left10:02
Guest24 left10:02
ojdo joined10:03
dimi1979 joined10:04
Agrajag- g'day, is there a way to identify/checkout the branch that origin/HEAD points to? (without a detached HEAD, i want to switch to the local branch)10:04
rorro joined10:04
JeroenT_ left10:05
tobiasvl Agrajag-: git symbolic-ref refs/remotes/origin/HEAD10:05
grawity trick question, origin/HEAD never points to a local branch10:06
Agrajag- as in teh corresponding local branch10:06
grawity but in most cases, if you just trim the "refs/remotes/*/" prefix and pass the resulting text to `git checkout`10:07
that should work fine10:07
Agrajag- ah yep ok that should be good. thanks tobiasvl grawity10:08
rorro left10:10
j08nY joined10:14
joe1revoltingPeasant10:15
jast FWIW the porcelain/high-level way to get this info is 'git remote show origin'10:15
TomyWork i have a path (absolute or relative) that is assumed to be inside a git working directory, not necessarily the current one. the path's target may or may not exist and may or may not be tracked. How do I convert the path into a repo-relative path?10:16
neil_cn left10:18
TomyWork one necessary step is of course to cd "$(dirname "$path")"10:18
manuels joined10:18
manuels left10:18
rorro joined10:18
TomyWork but then, how do i find the relative path for the current directory?10:18
DogHackit left10:19
grawity git rev-parse --show-toplevel, --show-cdup, --show-prefix10:20
infernix left10:20
kurkale61 joined10:20
TomyWork cdup is a recent addition?10:20
grawity no10:20
but a recent addition on Linux is `realpath "$path" --relative-to="$(git rev-parse --show-toplevel)"`10:21
TomyWork man git ls-rev-parse in git 2.14.1 doesnt mention cdup10:21
gitinfo the git manpage is available at https://gitirc.eu/git.html10:21
grawity no cd'ing necessary10:21
Guest24 joined10:21
eduardas_m joined10:21
j08nY left10:21
TomyWork grawity cding is still necessary since i can't assume that i'm in the same git working directory10:22
i.e. the working directory might be part of a different repo10:22
kurkale6ka left10:22
TomyWork but show-prefix is what i need, nice10:23
overlord_tm joined10:23
freimatz joined10:23
TomyWork foo="$(cd "$(dirname "$path")" && git rev-parse --show-prefix)/$(basename "$path")"10:24
+/- some missing characters :)10:25
xcm left10:26
kurkale6ka joined10:27
kurkale61 left10:27
SkyPatrol left10:27
SkyPatrol joined10:29
Guest24 left10:31
JeroenT joined10:32
buyfn joined10:33
JeroenT left10:37
JeroenT joined10:38
aard joined10:39
robinb joined10:40
cdown_ joined10:42
JeroenT left10:42
lexruee left10:44
cdown left10:44
cdown_cdown10:44
lexruee joined10:46
phash joined10:47
SkyPatrol left10:48
gechr joined10:48
gechr left10:48
SkyPatrol joined10:50
tlaxkit joined10:52
JeroenT joined10:54
phluks left10:55
TomyWork file_name="$(cd "$raw_file_name" && git rev-parse --show-prefix)" # for directories10:57
file_name="$(cd "$(dirname "$raw_file_name")" && git rev-parse --show-prefix)$(basename "$raw_file_name")" # for everything else10:57
grawity that's how i do it now. works nicely10:57
piremi joined10:57
aielima joined10:59
Guest25803 left10:59
davebrown joined11:00
jameser left11:00
davebrown left11:02
davebrown joined11:03
amcsi__ joined11:04
buyfn left11:05
davebrown left11:06
Random832 left11:06
ejsf left11:06
amcsi_ left11:08
davebrown joined11:08
davebrown left11:09
debian joined11:09
debianGuest9230411:10
hs367 joined11:10
Acerific joined11:10
Acerific left11:10
Acerific joined11:10
ertes-w left11:11
hs366 left11:11
elsevero joined11:11
igemnace left11:11
Cavallari joined11:11
AnujSharma left11:11
ertes-w joined11:14
robinb left11:15
chrfle joined11:15
chrfle left11:15
chrfle joined11:15
Random832 joined11:19
murii left11:21
JeroenT left11:23
JeroenT joined11:24
Acerific left11:24
arup_r joined11:24
Murr left11:25
arup_r I would like to ignore all files in this app/pems/* but I would like to keep app/pems/.keep . how can I set this pattern in .gitignore file?11:26
Murr joined11:26
grawity just `git add -f` the .keep file11:26
rorro left11:27
grawity then it doesn't matter what .gitignore says11:27
ejsf joined11:28
AnujSharma joined11:28
arup_r grawity: oh I see, thanks11:28
eduardas_m left11:29
Feral_Cat left11:29
FernandoBasso left11:29
durham left11:29
Tobbi joined11:31
aielima left11:33
jimmyrcom_ joined11:33
aielima joined11:33
jceb left11:34
Munt joined11:35
oisota joined11:35
shinnya joined11:37
Codaraxis grawity, arup_r, why not add !app/pems/.keep to the .gitignore?11:37
gitinfo grawity: [!cant_happen] The scenario you describe does not add up, and/or we feel it is unlikely that there is such a fundamental bug that it could have happened like this. Please provide more detail: what commands (literally!) did you run, what did they say, and what did you expect instead?11:37
danieli left11:38
danieli joined11:38
arup_r Codaraxis: I didn't know it. :)11:38
nowhereman left11:38
durham joined11:38
grawity Codaraxis: why bother11:39
Codaraxis I personally find it cleaner to have the exclusion to what is covered by .gitignore explicitly listed in the .gitignore itself.11:39
abba_ joined11:39
Locra_ joined11:41
jstimm left11:42
ferr joined11:42
justAllgood joined11:42
abba left11:43
diqidoq_ joined11:43
diqidoq_ left11:43
diqidoq left11:43
mr_sm1th joined11:44
kurkale61 joined11:45
jeffreylevesque left11:47
kurkale6ka left11:47
arup_r left11:47
bronson joined11:48
sumor9 joined11:48
re1 left11:49
jceb joined11:49
sumor9 left11:49
tlaxkit left11:52
bronson left11:53
dimi1979 left11:53
redhedded1 left11:53
phash left11:56
ferr left11:57
dimi1979 joined11:57
FernandoBasso joined11:58
kurkale61 left11:58
SkyPatrol left11:59
tunekey joined12:00
oisota left12:00
durham left12:00
hs367 left12:00
akushner___ left12:00
durham joined12:03
SkyPatrol joined12:03
jceb left12:06
delboy1978uk joined12:06
delboy1978uk git add . warning: LF will be replaced by CRLF in src/Image.php. WHY? How do I stop this nonsense?12:07
deepakbndeepu joined12:07
delboy1978uk windows sucks :-|12:07
robinb joined12:09
Locra_ left12:09
_ikke_ Disable crlf normalization12:09
You could choose it during installation12:09
synthroid joined12:12
stanfordtools joined12:13
Seveas !app12:15
gitinfo [!cant_happen] The scenario you describe does not add up, and/or we feel it is unlikely that there is such a fundamental bug that it could have happened like this. Please provide more detail: what commands (literally!) did you run, what did they say, and what did you expect instead?12:15
Seveas !botsnack12:15
gitinfo Om nom nom12:15
stanfordtools left12:16
Parraki_ joined12:16
masuberu joined12:17
stanfordtools joined12:17
stanfordtools when I push to git, I'd like my remote server to pull automatically, so that my website is updated. What's the best way to make this automatic? Maybe instead of just pushing I can run another command that pushes and pulls remotely. But how can I make such script?12:17
grawity .git/hooks/post-update, see !deploy12:17
gitinfo 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.html12:17
hs366 joined12:18
jceb joined12:18
Parraki left12:18
stanfordtools I don't understand. would the post-receive hook be on the server? doesn't that mean I have to pull manually?12:18
osse stanfordtools: it's invoked when you push to the server12:19
Locra_ joined12:19
stanfordtools osse, but i'm not pushing to the server!12:19
i'm pushing to github12:19
is it even possible to push directly to the server? that'd be enough for me. How can I do this?12:19
_ikke_ stanfordtools: If you have ssh access, it's quite easy12:20
stanfordtools _ikke_, can you give an example?12:21
amcsi_ joined12:21
kurkale61 joined12:21
osse stanfordtools: github *is* the server in this case.12:21
boombatower joined12:21
osse so you can't use it. github has its own webhook thingy12:21
stanfordtools github doesn't serve websites12:21
or, it doesn't serve mine12:22
osse i never said it did12:22
stanfordtools how could a webhook on github, update my server?12:23
_ikke_ stanfordtools: github would call a page on your server12:23
stanfordtools what's calling a page??12:23
like, an http request?12:23
_ikke_ yes12:24
amcsi__ left12:24
stanfordtools and the question is what do I do on my server to convert an http request into a git pull ?12:24
jeffreylevesque joined12:25
jceb left12:25
Locra_ left12:26
bumblebeer left12:26
typikal joined12:26
bumblebeer joined12:26
Munt left12:27
zulutango left12:27
stanfordtools I had a problem pushing to my server, I don't understand why: https://pastebin.com/xjfmYRS012:28
tobiasvl the error message is pretty explanatory12:28
!bare12:28
gitinfo A bare repository is used to push/fetch (useful for running a git server), and contains only the contents of .git/ from a "normal" repo. Read more: http://bare-vs-nonbare.gitrecipes.de/12:28
osse https://developer.github.com/webhooks/12:28
grawity in short "you can't push into a repository which has files checked out"12:28
stanfordtools but... I donn't want a bare repo12:29
I just want to push to it12:29
grawity you don't want a bare repo, but you *need* a bare repo12:29
in1t3r_ left12:29
tobiasvl what would pushing to a non-bare repo mean? what do you want here?12:29
stanfordtools wtf. so how do I update and pull to my remote repo, without having a bare repo?12:29
grawity you don't12:29
_ikke_ people usually want push to deploy12:29
grawity well, it's not strictly required with the latest git versions12:30
tobiasvl pulling to a non-bare repo is not problematic12:30
stanfordtools tobiasvl, I just want the remote repo to be up to date and checked out exactly like my local one12:30
grawity there is "receive.denyCurrentBranch = updateInstead" nowadays12:30
akushner___ joined12:30
in1t3r joined12:30
stanfordtools I use this to deploy, but it's nice being able to edit on the server side itself12:30
on the deploy repo, too12:30
this is just for prototyping so i think it's fine12:30
tobiasvl stanfordtools: then read the error message, it tells you some stuff about receive.denyCurrentBranch12:31
stanfordtools tobiasvl, is that the best way? to modify that config? I assume there might be a better way12:31
tobiasvl a better way to do what?12:31
better in what way?12:31
stutter joined12:31
Nizumzen joined12:31
stanfordtools also, I remember being able to update a coworkers' repo by just pushing to it12:31
Achylles joined12:31
tobiasvl okay, set up your repo the same way your coworker's repo was set up then12:32
stanfordtools tobiasvl, is there a command i can run remotely that will just remotely do "giit pull" on the remote repo?12:32
murii joined12:32
grawity ssh12:32
stanfordtools tobiasvl, we didn't really change the config12:32
kurkale61 left12:33
stanfordtools grawity, can I do: [email@hidden.address] git pull12:33
grawity how did you set up that repo?12:33
tobiasvl this is a confusing conversation. a command you can run remotely that will remotely "git pull"? because that's juts "git pull"12:33
stanfordtools how would i do that in one valid command, grawity ?12:33
DevAntoine joined12:33
tobiasvl unless the first "remotely" meant "locally"12:33
JeroenT left12:33
stanfordtools tobiasvl, git pull on my remote repo, not the local one. running the command locally12:33
Locra_ joined12:33
JeroenT joined12:33
tobiasvl then ssh12:33
stanfordtools I assume it's something like: ssh [email@hidden.address] git pull12:34
Is there a way to make one valid command? like this?? ssh [email@hidden.address] /home/me/www/mywebsite.com/; git pull12:34
tobiasvl ssh [email@hidden.address] "cd /home/me/www/mywebsite.com/ && git pull"12:34
stanfordtools ssh [email@hidden.address] cd /home/me/www/mywebsite.com/; git pull12:35
oh, got it, tobiasvl12:35
Munt joined12:35
koell left12:35
stanfordtools tobiasvl, is it possible to add this as a git command so I can do git deploy, or git push deploy, and it'll run this script you wrote?12:35
tobiasvl I think you confuse me with someone else, I didn't write any scripts12:35
stanfordtools a one line script12:36
<tobiasvl> ssh [email@hidden.address] "cd /home/me/www/mywebsite.com/ && git pull"12:36
kurkale61 joined12:36
stutter left12:36
stanfordtools you did, tobiasvl12:36
tobiasvl oh. that's not a script, it's just an ssh command12:36
stanfordtools exactly12:36
tobiasvl no, you can't make it a git command because it's not a git command, it's an ssh command12:36
stanfordtools git can't execute ssh commands?12:36
tobiasvl not arbitrary ones, no12:37
Random832 left12:37
stanfordtools ok, thanks12:37
that means i have to make a bash script to save that command12:38
JeroenT left12:38
feodaron left12:38
tobiasvl just make a bash alias if it's important12:38
is this going to be automated?12:39
enkrypt left12:39
stanfordtools but then where is the alias saved?12:39
yes12:39
tobiasvl automated merges aren't really advisable12:39
stanfordtools I'll just do ./deploy locally12:39
deepakbndeepu left12:39
Raging_Hog joined12:39
tobiasvl what if the remote has local changes or diverged history?12:39
stanfordtools tobiasvl, then i've made a mistake to leave local changes12:39
gugah joined12:39
tobiasvl clearly, but how will the automated deploy routine deal with it12:40
stanfordtools the pull would be rejected, right?12:40
grawity just pull with --ff-only12:40
either it succeeds or fails12:40
Locra_ left12:40
stanfordtools ok12:40
chrfle left12:41
raynold left12:41
stanfordtools fatal: could not read Username for 'https://github.com': No such device or address12:43
I'm doing ssh [email@hidden.address] "cd /home/me/www/mywebsite.com/ && git pull"12:44
alcohol looks like you are using a https origin without a stored username and password12:45
aka, that's not going to work12:45
grawity set up the remote repo to remember your password, or to use SSH for github12:45
jast apparently the remote repo uses HTTP for fetching and needs to ask you for a password on a terminal but no terminal is available12:45
stanfordtools dammit. it always happens. how can i set it to remember username?12:46
tobiasvl !credential-cache12:47
gitinfo Tired of entering your username and password every time you access an HTTP(S) remote and have good reasons not to use SSH? A summary of shortcuts and supported caching methods can be found here: http://stackoverflow.com/a/534314612:47
fission6 joined12:48
freddieptf joined12:48
jstimm joined12:48
stanfordtools I'm using ssh now. But still I think it asks for password every so often12:48
freddieptf left12:48
freddieptf joined12:49
JeroenT joined12:50
Random832 joined12:50
stanfordtools fatal: Unable to create '/mnt/d/Lucas/Dropbox/Startups/notpcbro-startup/notpcbro/.git/refs/remotes/origin/master.lock': File exists.12:51
tobiasvl not password, in that case, but ssh key passphrase12:51
venmx_ left12:51
SkyPatrol_ joined12:51
Munt left12:51
venmx left12:51
enkrypt joined12:52
stanfordtools tobiasvl, so what do I do to remember it?12:52
delboy1978uk left12:52
jimmyrcom_ left12:52
SkyPatrol left12:52
jceb joined12:52
tobiasvl not sure if you can since you create a new session every time you ssh in12:53
best thing would probably be to use a deploy key with github instead12:54
jstimm left12:54
tobiasvl https://developer.github.com/v3/guides/managing-deploy-keys/12:54
https://developer.github.com/v3/guides/managing-deploy-keys/#deploy-keys12:54
stamina left12:55
Cabanossi left12:56
Cabanossi joined12:57
robinb left12:57
stanfordtools left12:58
jeffreylevesque_ joined12:58
glad joined12:58
str joined12:59
jeffreylevesque left13:00
jeffreylevesque_jeffreylevesque13:01
robotroll left13:02
feodaron joined13:02
rscata left13:05
elsevero left13:08
cdg joined13:08
cdg left13:10
cdg joined13:10
elsevero joined13:11
RxMcDonald joined13:11
cdg_ joined13:12
RxMcDonald Hello, I cloned a repo then removed the git folder and did a bunch of commits, is it possible to add the original git folder and apply the changes again as if I didn't delete the .git folder?13:12
dsdeiz joined13:12
dsdeiz left13:12
dsdeiz joined13:12
zivester joined13:12
RxMcDonald i.e. replay the commits but from the moment I cloned instead of starting a new git repo13:13
jast yes13:13
robinb joined13:14
jast basically: 1) add the original source of the clone as a remote, 2) fetch13:14
cdg left13:15
jast the next step is a little tricky. the easiest way is to use the grafts feature to pretend like your new commits are based on the correct base commit from the original history13:15
robinb left13:15
jast it's a little arcane, though13:15
but all other ways I can think of are significantly more work13:15
orbyt_ joined13:16
Tobbi Can I get a diff of stashes? git stash show <i> only shows me the files changed.13:16
_ikke_ add -p13:16
Tobbi Ah, ok.13:16
Thanks!13:17
RxMcDonald jast: alright I'm going to try that13:18
jast: btw what do you mean use the grafts feature ?13:18
jast yeah, just mentioning it isn't terribly helpful, is it :)13:19
grafts are a feature to change a commit's parent(s), so in this case you could pretend that your first commit is based on a specific commit from the original commit history13:19
RxMcDonald jast: xD13:19
jast: yea well, idk how to use that13:20
jast you create one by creating the file .git/info/grafts and adding a line for each commit where you want to pretend like that, in this case for your first commit13:20
the line consists of the ID of your commit, a space character, and then the ID of the correct base commit (the one the repo was at when you cloned)13:20
RxMcDonald sounds easy, let's try it out ;)13:22
AaronMT joined13:23
jstimm joined13:23
akushner___ left13:24
Murr left13:25
Murr joined13:26
rocktop joined13:26
stutter joined13:27
xcm joined13:28
jast well, I just noticed that 'git replace' makes this even easier. I never knew it had a --graft option, I thought using 'git replace' would be very tedious13:28
lesson learned :)13:28
zenirc369 left13:30
stutter left13:31
akushner___ joined13:33
roelmonn_ joined13:33
xaviergmail left13:35
xaviergmail joined13:35
stutter joined13:36
roelmonnens left13:36
akushner___ left13:39
Nizumzen left13:41
Tobbi left13:42
Nizumzen joined13:42
kalib joined13:43
kalib Hello guys. I have an old repository with lots of stuff on it. Now I have my new project, and I would like to use the same repository for it. I mean, really overwrite everything in this repository (remote) with this new project that I have in my computer. In my project, I changed my remote, so this is ok. I did git add and git commit, all good. But when trying to git push, I receive the information: Updates were13:46
rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing..." The question is: Is there a way to force this? I really don't care about what I had in the remote repo. I really waqnt to have it all gone and only keep what I have now in my machine. In the repo was an old version of this same project, so most of the files changed anyway.13:46
Tobbi joined13:47
mikecmpb_ joined13:48
tobiasvl kalib: do you want to just force the remote repo to have the FILES in the state you have now locally? or do you want to throw away the remote's old git history too?13:49
kalib the first option.13:49
maybe "git push origin --force" ?13:49
tobiasvl no, that's the second option13:50
kalib oh, sorry13:50
so, what would be the first?13:50
klhjvadzschkljvj joined13:50
mikecmpbll left13:51
settermjd joined13:51
kalib tobiasvl: what would be the command in this case?13:53
TikityTik joined13:53
settermjd I’ve created a patch between two files, which were moved between branches, where the latter version had a small set of changes. However, I can’t apply it in a feature branch because „No such file or directory“. Any tips for what I’ve done wrong?13:53
tobiasvl kalib: git pull -s ours; git push13:54
kalib wouldn't that mess with my local files?13:54
I don't want to change anything in my local.13:54
tobiasvl kalib: no, that should fetch and merge with the "ours" merge strategy, which from the man page is: "This resolves any number of heads, but the resulting tree of the merge is always that of the current branch head, effectively ignoring all changes from all other branches. It is meant to be used to supersede old development history of side branches."13:55
man git merge13:55
gitinfo the git-merge manpage is available at https://gitirc.eu/git-merge.html13:55
kalib got it13:55
let me try it..13:56
Raging_Hog left13:56
zivester left13:57
stutter left13:57
rtjure left13:58
JeroenT left14:00
shinnya left14:00
JeroenT joined14:00
rocktop left14:00
synthroid left14:01
gitinfo set mode: +v14:01
RxMcDonald jast: so, could you give me an example way to do it with git replace / grafts?14:01
nowhereman joined14:01
justanotheruser left14:02
klhjvadzschkljvj hello please help me I used "git pull" and now I'm jailed in a text editor in the command line and I cant find the shortcut to save and exit14:02
tobiasvl klhjvadzschkljvj: that's probably vim. do this: <escape>:wq14:02
that saves and quits14:03
did you write a commit message though?14:03
JeroenT_ joined14:03
klhjvadzschkljvj yes i did14:03
rtjure joined14:03
RxMcDonald jast: just added the original remote and git fetch14:04
phluks joined14:04
JeroenT left14:04
DaleK5whr joined14:04
DaleK5whr left14:05
soccerstud joined14:05
Argylelabcoat joined14:06
soccerstud left14:06
spacemud_ joined14:06
tnecniv joined14:07
cbonobo joined14:07
ewitz left14:08
spacemud left14:08
iNCoNFuN joined14:09
Random832 left14:09
venmx joined14:09
venmx_ joined14:10
Eryn_1983_FL left14:10
raven7 joined14:10
fission6 left14:10
Cabanossi left14:10
fahadash joined14:11
CheckDavid left14:11
imack left14:11
ewitz joined14:11
Cabanossi joined14:12
griffindy joined14:12
dskull joined14:12
oisota joined14:12
Eryn_1983_FL joined14:12
RxMcDonald looks like it worked14:12
jast: :)14:12
sunri5e left14:13
JeroenT_ left14:13
snowkidind joined14:13
JeroenT joined14:14
daynaskully left14:14
dskulldaynaskully14:14
chrfle joined14:15
chrfle left14:15
chrfle joined14:15
sunri5e joined14:15
akushner___ joined14:16
klhjvadzschkljvj left14:16
leeN joined14:17
TikityTik left14:17
JeroenT left14:18
bongozig joined14:18
JeroenT joined14:18
hs366 left14:18
luc4 left14:19
luc4 joined14:19
xcm left14:21
xcm joined14:21
kalib tobiasvl: it worked fine. Thanks for the tip: "git pull -s ours; git push"14:22
Random832 joined14:22
tnecniv left14:22
mikecmpb_ left14:22
raven7 left14:23
Brski left14:24
mikecmpbll joined14:24
dave0x6d joined14:26
mink joined14:27
oisota left14:29
al-damiri joined14:30
mink left14:31
elfring joined14:32
luc4 left14:32
luc4 joined14:33
kurkale6ka joined14:33
JeroenT left14:34
RxMcDonald how do you undo a change in permissions in an old commit?14:34
kurkale61 left14:34
RxMcDonald i.e. 5 commits ago i changed the permissions of a lot of files but want to keep the rest of the changes except that14:34
and I also don't want to lose the commit history14:34
Ploppz left14:35
samlisl_ joined14:36
kurkale61 joined14:36
zefferno left14:37
mr_sm1th left14:37
ppang left14:37
kurkale6ka left14:38
ertes-w left14:38
ertes left14:39
tnecniv joined14:41
murii left14:41
levex_ left14:41
levex joined14:42
gitinfo set mode: +v14:42
regedit joined14:43
cbonobo left14:44
cbonobo joined14:44
cbonobo left14:45
cbonobo joined14:45
fission6 joined14:46
dreiss joined14:47
elfring left14:47
jstimm left14:48
durham left14:48
phluks left14:48
durham joined14:48
akushner___ left14:49
dimi1979 left14:49
morado joined14:50
akushner___ joined14:50
wget left14:50
kalib left14:50
kpease_ joined14:50
roelmonn_ left14:51
crose joined14:52
roelmonnens joined14:52
tvw left14:52
durham left14:52
tcorneli joined14:53
wget joined14:54
wget left14:54
wget joined14:54
StephenS left14:54
Darren_ joined14:55
Cabanossi left14:55
zivester joined14:55
abba_ left14:56
StephenS joined14:56
AnujSharma left14:57
Cabanossi joined14:57
flaviodesousa left14:58
durham joined14:58
elsevero left14:59
freddieptf left15:00
dec0n left15:00
SkyPatrol joined15:01
Atemu joined15:01
Atemu left15:01
samlisl_ left15:01
Atemu joined15:02
Silmarilion left15:02
revoltingPeasant I'm using git-bash on windows10, I'm getting a strange mix of line breaks when I edit files with visual studio https://imgur.com/a/crH2l both of the edited files were edited with vs2013, the project still compiles but I don't want to commit that. what's going on?15:02
morado left15:02
synthroid joined15:02
igemnace joined15:03
SkyPatrol_ left15:04
ThomasLocke left15:04
roelmonn_ joined15:05
ogny left15:05
TomyWork left15:06
aielima left15:06
orbyt_ left15:07
fmcgeough joined15:07
Locra_ joined15:07
roelmonnens left15:08
jimm left15:09
dreiss left15:09
Cumulo741 joined15:10
roelmonn_ left15:10
gareppa joined15:11
Darcidride joined15:12
lukasdboer_ left15:13
xcm left15:14
xcm joined15:14
tanimislam_ joined15:14
tcorneli left15:14
tanimislam_ left15:15
sz0 joined15:15
Gustavo6046 joined15:16
tnecniv left15:17
settermjd left15:19
Locra_ left15:21
nisseni left15:22
Murii|linux joined15:22
jstimm joined15:22
stutter joined15:22
jimm joined15:22
roelmonnens joined15:23
kurkale61kurkale6ka15:24
mel00010 left15:24
ertes-w joined15:25
Locra joined15:25
Murr left15:25
Murr joined15:26
cdown left15:26
roelmonnens left15:28
in1t3r left15:28
ertes-w left15:28
Locra left15:28
Locra joined15:29
CussBot left15:29
CussBot joined15:30
igemnace left15:30
synthroid left15:32
max12345 joined15:32
RxMcDonald left15:32
ertes-w joined15:33
max12345 hello I have split my repo so I can track code and other resources like pictures and sounds separately15:33
Ladus joined15:33
tnecniv joined15:34
max12345 I reset my remote url to the new resources repo but using git it still places my resources in the old folder, not the one for the resources. Why and how do I change that?15:34
is there some kind of git root command that shows or sets the relative path?15:34
TinkerTyper joined15:36
acedia3 joined15:36
thiago joined15:36
mel00010 joined15:36
cagomez joined15:38
lperezdude joined15:40
synthroid joined15:40
max12345 hm apparently I didn't do the splitting correctly...15:40
Random832 left15:41
kurkale61 joined15:43
chele left15:43
nonconvergent joined15:43
nonconvergent Is setting multiple remotes a way to deal with multiple private forks?15:44
gableroux joined15:44
nonconvergent I'm on a team that doesn't branch, it forks EVERYTHING. And then everyone forgets to open up their forks.15:45
_ikke_ :-/15:45
nonconvergent "Because the other way we'd make too many branches and we'd have to clean them up" as if that's a bad thing.15:45
kurkale62 joined15:45
_ikke_ nonconvergent: Tell them that each fork *is* a branch15:45
nonconvergent: but with a lot more overhead15:45
durham left15:46
nonconvergent Oh, that also means constant rebasing and force pushing.15:46
kurkale6ka left15:46
seebyr joined15:46
alcohol tell them that you're looking for a new job15:46
_ikke_ s/branch/fork/ and the same thing counts15:46
durham joined15:46
Evalix left15:47
kurkale61 left15:48
Locra left15:48
theoceaniscool joined15:48
King_Hual joined15:48
King_Hual left15:48
King_Hual joined15:48
Locra joined15:48
griffindy left15:49
dhollinger left15:49
dhollinger joined15:49
bronson joined15:50
seschwar left15:51
YuGiOhJCJ joined15:51
mr_sm1th joined15:51
TomyLobo joined15:51
stalker314314 joined15:51
Locra left15:52
Locra joined15:52
madewokherd joined15:53
jstimm left15:55
bronson left15:55
Random832 joined15:55
durham left15:55
gitinfo set mode: +v15:55
lperezdude I need a file to hold different data depending on the branch it is on? is there any way of doing this?15:55
durham joined15:56
drodger_ left15:56
Locra left15:57
mkali joined15:57
clmsy left15:57
drodger joined15:58
durham_ joined15:58
infernix joined15:58
Locra joined15:58
Learath2 lperezdude: commit it to each branch with different data?15:58
zenirc369 joined15:59
lperezdude Learath2 this has to hold true even after pull requests between these branches have been merged15:59
oh well ill add it to the git ignore once chages are done15:59
Learath2 lperezdude: do you need the file to be tracked aswell?15:59
either way you can (ab)use a post-checkout hook16:00
ArcaTech joined16:00
durham left16:01
ResidentBiscuit joined16:01
ResidentBiscuit left16:01
ResidentBiscuit joined16:02
ResidentBiscuit left16:02
roelmonnens joined16:02
ResidentBiscuit joined16:02
ResidentBiscuit left16:02
Munt joined16:02
ResidentBiscuit joined16:02
theoceaniscool left16:03
McKrakenMcKraken_zzzzz16:04
luc4 left16:04
Locra left16:05
roelmonnens left16:08
Cabanossi left16:09
SkyPatrol_ joined16:10
DevAntoine left16:12
Cabanossi joined16:12
mkali left16:12
SkyPatrol left16:12
madewokherd left16:13
czart_ joined16:14
max12345 left16:15
dulange__ left16:15
ArcaTech left16:17
czart__ left16:17
Es0teric joined16:18
kjsaihs joined16:18
thiago left16:18
Parraki_ left16:18
nydel07 left16:20
jab416171_ left16:21
roelmonnens joined16:21
jab416171 joined16:22
nydel07 joined16:22
cagomez left16:23
cagomez joined16:23
tkore left16:25
cbonobo left16:25
fission6 left16:26
cbonobo joined16:26
StephenS left16:27
StephenS joined16:27
stutter left16:28
kjsaihs I am trying to automate weblate but for some reason hooks are not working16:29
executing each hook as a shell script proofs there is no problem with the hooks (i am sure because the same hooks work on the test instance of weblate)16:29
What might be preventing the execution of git gooks?16:29
cbonobo_ joined16:30
cbonobo left16:30
Nobun left16:31
upperdeck left16:31
disi joined16:31
ojacobson_ojacboson16:32
orbyt_ joined16:33
upperdeck joined16:33
synthroid left16:33
mikecmpbll left16:35
madewokherd joined16:35
evie_hammond left16:36
kurkale62 left16:36
InfoTest joined16:38
ArcaTech joined16:38
Murii|linux left16:39
paul424 joined16:40
bumblebeer left16:40
bumblebeer joined16:41
illuminatedwax joined16:42
freimatz left16:43
ertes-w left16:44
pbandark1 joined16:44
roelmonnens left16:45
mostlybadfly left16:45
pbandark left16:45
pbandark1pbandark16:45
roelmonnens joined16:45
Cumulo741 left16:46
illuminatedwax Hi! I'm dealing with two branches, one is my code base that works with python2.7 and another for python2.6. I made a new feature branch off the python2.7 branch, and now I want to take that set of changes and put *only those changes* (so the diff between python2.7..feature) onto the python2.6 branch. Unfortunately I had a lot of merges with other intermediate branches (all based off python2.7) in the meantime, and git cherry-pick python2.7..feature16:46
doesn't work because there are merges in that list. I can't figure out how to use rebase because it pulls in the python2.7 changes into python2.6. What tool am I looking to use here?16:46
tnecniv left16:46
morado joined16:47
oisota joined16:48
moritz illuminatedwax: git diff featurebranch...python27 | patch -p116:48
evie_hammond joined16:48
moritz when on branch python2616:48
jceb left16:48
moritz rm, likely the other way round: git diff python27...featurebranch16:48
illuminatedwax ok, cool, though mortiz, it removes the individual commit history moritz, but maybe there's no way around that?16:49
roelmonnens left16:50
illuminatedwax (oops didnt mean to put yr name in there twice)16:50
kjsaihs left16:50
juiccifer joined16:51
Phylock joined16:51
stutter joined16:51
oisota left16:52
raynold joined16:52
InfoTest left16:53
imack joined16:53
cbonobo_ left16:54
King_Hual left16:54
cbonobo joined16:54
SkyPatrol_ left16:57
SkyPatrol joined16:57
dimm joined16:59
revoltingPeasant left16:59
TheMontyChrist joined17:00
cstratak left17:00
dimm hello, All! Ho i can solve issue - fatal: Unable to find remote helper for 'http'. Git 2.8.3. builded from sources17:00
TheMontyChrist left17:01
TheMontyChrist joined17:01
TheMontyChrist left17:01
TheMontyChrist joined17:01
TheMontyChrist test17:01
cdg joined17:01
TheMontyChrist supposeI have branch "blah1/blah2"17:01
imack left17:01
TheMontyChrist blah1 is resolve to a remote if it's in my remote list?17:02
I see "velodyne/refactor" as a branch name17:02
yet, I see a lot of "remote/branch" nomenclature17:03
svm_invictvs joined17:03
peterbecich joined17:03
imack joined17:03
TheMontyChrist I guess what's stopping velodyne from being a remote?17:03
...other than it doesn't appear in my remote list17:03
dimm i was build git with '--with-curl' and as i can see this flag is 'yes' by default. How i can check git build options?17:04
netj left17:04
cdg_ left17:04
netj joined17:04
cdg_ joined17:04
Tobbi I'm curious: If I rename a branch, will that change the commit hashes on any of the commit IDs?17:04
*on any of the commits?17:05
cdg left17:06
Parraki joined17:06
illuminatedwax Another question: does "git rebase branch-foo" modify the branch "branch-foo" at all?17:06
Locra joined17:07
nixjdm joined17:07
thiago joined17:08
peterbecich left17:09
Tobbi illuminatedwax: As far as I know it does not. It just takes the commits from branch-foo and replays them onto the current branch.17:10
ArcaTech left17:11
cbonobo left17:12
Parraki left17:12
UTAN_dev_ left17:12
cbonobo joined17:13
UTAN_dev joined17:13
stutter left17:13
lperezdude left17:14
brent__ joined17:14
chll_ left17:16
Jokler left17:17
cbonobo left17:17
sorressean left17:17
gareppa left17:18
overlord_tm left17:18
Jokler joined17:18
durham_ left17:18
sz0 left17:19
durham joined17:19
Floflobel left17:19
Locra left17:19
fission6 joined17:20
sathed joined17:20
morado left17:20
synthroid joined17:20
ozette_ joined17:22
morado joined17:22
durham left17:23
ArcaTech joined17:24
illuminatedwax left17:26
akushner___ left17:28
YuGiOhJCJ left17:31
dimm was check config.log and found that17:31
/usr/bin/ld: cannot find -lcurl17:31
netj left17:34
netj joined17:34
dimm i found that libcurl is only in /usr/lib64 and not in /usr/lib17:35
cagomez left17:41
cdown joined17:41
lafleurdubien joined17:42
masuberu left17:43
salamanderrake joined17:44
orbyt_ left17:45
surfist left17:46
overlord_tm joined17:46
durham joined17:47
durham left17:49
surfist joined17:49
Parraki joined17:49
durham joined17:49
cdown_ joined17:50
paul424 left17:50
synthroid left17:50
orbyt_ joined17:51
bronson joined17:51
orbyt_ left17:52
cdown left17:52
cdown_cdown17:52
wootehfoot joined17:54
durham left17:54
govg left17:54
gopar joined17:54
Dreadnaught left17:55
ankush joined17:56
bronson left17:56
JanC_ joined17:56
Parraki left17:56
SurenNihalani joined17:57
orbyt_ joined17:57
JanC left17:57
JanC_JanC17:57
MattMaker left17:57
parsnip Tobbi: if you rename a branch, that doesn't effect the commits. the commits are a hash of their contents, and the branch names are not part of that.17:57
Tobbi parsnip: Thanks :)17:57
cagomez joined17:58
Tobbi I'm feeling a bit stupid.17:58
parsnip Tobbi: you might enjoy researching a little about what is inside a commit17:58
hahuang65 joined17:58
Cumulo741 joined17:58
parsnip i think !bottomup covers some of that17:58
gitinfo 'Git from the bottom up' starts with explaining the building blocks of git and proceeds to tell you how they fit together. https://jwiegley.github.io/git-from-the-bottom-up/17:58
parsnip this might cover internals of commits also https://www.youtube.com/watch?v=MYP56QJpDr417:59
Parraki joined17:59
Tobbi Thanks, I'll give it a read.18:00
parsnip i think rebase _does_ modify a branch, quite a bit.18:00
ankush left18:00
tnecniv joined18:01
parsnip it can modify _every_ commit. not necessarily the tree object inside, but the commit hash also involves the hashes of the parent commits, so if that changes, _all_ the subsequent commit hashes change.18:01
ArcaTech left18:01
parsnip but those resources may emphasize those understandings :)18:01
gareppa joined18:01
iNCoNFuN left18:01
ArcaTech joined18:02
Tobbi Alright :)18:02
_ikke_ ephemera_: Are you there?18:03
wootehfoot left18:05
nixjdm left18:05
bond_bond18:05
flobin joined18:05
cdg_ left18:06
aboccia left18:08
pix9 left18:08
Dreadnaught joined18:09
Dreadnaught left18:09
Dreadnaught joined18:09
Dreadnaught left18:09
aboccia joined18:10
Dreadnaught joined18:11
Dreadnaught left18:11
Dreadnaught joined18:11
Sasazuka joined18:11
fission6 left18:12
cdg joined18:12
overlord_tm left18:12
Parraki left18:16
gareppa left18:18
nixjdm joined18:18
TomyLobo2 joined18:19
morado left18:19
TomyLobo left18:20
wootehfoot joined18:20
skered Can git list file hashes?18:20
_ikke_ git ls-tree -r HEAD18:21
Note that there are not plain sha1 hashes18:21
acedia3 left18:22
justAllgood1 joined18:22
tnecniv left18:23
SurenNihalani left18:23
justAllgood left18:23
skered Yeah, I was looking to generate a file that sha* or md5 can use to compare non-git repos with.18:24
cdown left18:25
Cabanossi left18:25
synthroid joined18:26
_ikke_ Right, git has nothing for that18:26
cdown joined18:27
Cabanossi joined18:27
Bock left18:28
cdg_ joined18:28
ghoti_ghoti18:28
mel__ joined18:30
synthroid left18:31
cdg left18:31
cdg_ left18:33
jimm left18:33
mel00010 left18:33
jnavila joined18:34
ZyX-I joined18:37
TheMontyChrist left18:38
imack left18:38
xaa left18:39
SurenNihalani joined18:39
madewokherd left18:39
namstdnsk joined18:40
saidelike joined18:40
namstdnsk left18:40
namstdnsk joined18:41
elsevero joined18:42
ozette_ left18:42
noidea joined18:42
noidea left18:42
noidea joined18:42
Atemu left18:43
namstdnsk wtf18:43
_ikke_ ..18:43
hi to you to18:43
OMGOMG 18:43
sigg left18:43
saidelike left18:44
namstdnsk git very true staff18:44
sigg joined18:44
namstdnsk svn for lamerz18:44
Pakistan salam18:45
cstratak joined18:46
jimm joined18:47
troulouliou_div2 joined18:47
tnecniv joined18:47
SkyPatrol_ joined18:48
Calinou gah, I'm trying to rebase a branch, keeping all of my commits (applied on top of conflicting ones, ignoring these changes)18:49
I tried "git rebase master -s ours" and "git rebase master -X ours", neither give the desired effect(18:49
(keeping my history of commits, that is)18:49
SkyPatrol left18:49
saidelike joined18:49
Calinou I did this 2 weeks ago but completely forgot18:49
_ikke_ -X theirs18:49
The commits being applies are 'theirs' not 'ours'18:50
fission6 joined18:50
_ng left18:51
fatihgenc joined18:51
Calinou thanks! this works, I thought "ours" was the commits in my branch18:52
voker57 left18:52
xaa joined18:53
gopar left18:53
voker57 joined18:53
voker57 left18:53
voker57 joined18:53
cstratak left18:53
gopar joined18:54
Ardethian\ left18:54
saidelike left18:55
TomyLobo joined18:56
mikecmpbll joined18:56
TomyLobo2 left18:57
overlord_tm joined18:58
ertes-w joined18:59
pbandark1 joined19:01
pbandark left19:01
pbandark1pbandark19:01
jimm left19:03
SkyPatrol_ left19:03
justAllgood1 left19:03
saidelike joined19:03
saidelike left19:03
orbyt_ left19:03
nixjdm left19:05
ShekharReddy left19:05
Solvaring joined19:05
daguiam left19:06
gopar left19:06
gopar joined19:07
SkyPatrol joined19:07
GrailKn1ght joined19:10
tarkus joined19:10
revoltingPeasant joined19:11
gopar left19:13
gopar joined19:14
jimm joined19:16
_ADN_ left19:17
nixjdm joined19:18
Ladus left19:19
neilthereildeil joined19:20
juiccifer left19:20
svm_invictvs left19:20
neilthereildeil left19:22
fission6 left19:22
qaz1 joined19:22
qaz1 left19:22
neilthereildeil joined19:22
neilthereildeil hi. me and another engineer made changes on the same files in GIT. He has committed, but i have not. what should my next step be if i want to pull?19:22
fission6 joined19:22
fission6 left19:22
synthroid joined19:23
moritz neilthereildeil: you can just try "git pull". If his changes are to other files than yours, it'll Just Work[tm]19:23
SurenNihalani left19:23
fission6 joined19:24
ams__ left19:25
Murr left19:25
Murr joined19:25
cagedwisdom joined19:27
Cumulo741 left19:30
ArcaTech left19:31
neilthereildeil moritz: no, the changes are to the same files19:31
i know ill get errors19:32
how do i settle this?19:32
Murii|linux joined19:32
moritz neilthereildeil: first add your changes ('git add -p'), then you commit19:33
neilthereildeil: then you 'git pull'19:33
peterbecich joined19:33
moritz neilthereildeil: and if you get a merge conflict, resolve it19:33
!eek19:33
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=zz7NuSCH6II19:33
cagomez left19:34
Grailknight joined19:35
GrailKn1ght left19:35
TheVice joined19:35
thiago left19:36
Grailknight left19:36
bongozig left19:37
GrailKn1ght joined19:37
ArcaTech joined19:38
energizer joined19:38
gargola joined19:39
jimm left19:40
cdown left19:43
jrajav joined19:45
jrajav Hi!19:45
nixjdm left19:45
cdown joined19:45
nixjdm joined19:45
jrajav What is the safest and easiest way to rename master to something else for archival, then rename a different branch to master?19:45
namstdnsk left19:46
zenirc369 left19:47
ArcaTech left19:47
_ikke_ git branch -m19:48
snowkidind left19:48
jil joined19:48
jil hello19:48
Achylles left19:49
jil in git help log ... what is meant by <path> , simplifying history to a path ?19:49
is that the file system path ?19:49
dminuoso_ joined19:50
synthroid left19:51
kus_ubuntui686 left19:52
bronson joined19:52
peterbecich left19:53
parsnip jil: yeah, like you could try `git log README`19:54
peterbecich joined19:55
orbyt_ joined19:55
saidelike joined19:56
jil to limit log to the README file19:56
cbonobo joined19:56
bronson left19:56
jimm joined19:57
cbonobo left19:58
synthroid joined19:58
disi left20:00
bronson joined20:01
King_Hual joined20:02
cdg joined20:03
peterbecich left20:03
Solvaring left20:03
jstein left20:04
jil I don't get what's a patch. Why do I need the -p when looking for a string in one of the commit ?20:04
why not just git log -S "abc" *org for example20:04
glad left20:04
nixjdm left20:05
jnavila left20:05
crose left20:05
dviola joined20:06
parsnip jil: i'm pretty new to git. what resources says you need the -p?20:07
SurenNihalani joined20:07
dminuoso_ left20:08
jil I ask here two days ago how to search for the commit that suppressed some text and I was advice to use git log -p -S ...20:08
Tried it, it work... but I don't know what a patch is.20:09
mikeymop left20:10
ArcaTech joined20:10
disi joined20:10
bongozig joined20:12
ArcaTech left20:13
cdg_ joined20:13
preyalone joined20:13
juiccifer joined20:14
btree left20:15
Cumulo741 joined20:15
flobin left20:15
Anja left20:16
settermjd joined20:16
cdg left20:16
troulouliou_div2 left20:17
Elon_Satoshi left20:18
gablerou_ joined20:18
nixjdm joined20:18
Achylles joined20:19
hanneso left20:20
MattMaker joined20:20
Elon_Satoshi joined20:21
gableroux left20:21
settermjd left20:23
synthroid left20:24
jimm left20:25
Anja joined20:28
m0viefreak joined20:29
Cumulo741 left20:30
synthroid joined20:31
oisota joined20:34
oisota left20:34
nixjdm left20:34
cagomez joined20:35
Murii|linux left20:36
nixjdm joined20:36
fatihgenc left20:38
manuelschneid3r left20:38
jimm joined20:41
Gurkenglas_ joined20:43
mel__ left20:44
manuelschneid3r joined20:48
pbandark left20:49
noidea left20:49
pbandark1 joined20:49
mikeymop joined20:51
mikeymop i have a repository setup with a submodule inside of a folder in it20:51
this submodule links to a new branch in the same repository20:51
i followed this guide20:51
https://hjdskes.github.io/blog/update-deploying-hugo-on-personal-gh-pages/20:51
pbandark1pbandark20:51
mikeymop if I were to git clone my repository on a secondary computer, will it carry over this branching scheme?20:51
SurenNihalani left20:53
energizer left20:53
gablerou_ left20:53
synthroid left20:53
energizer joined20:54
petersaints left20:54
sunri5e left20:55
mel__ joined20:55
couchz joined20:57
sunri5e joined20:57
couchz if I made a commit with "git commit -S -m "update"" before I added new versions of files to the index, but then I ran "git add ." can I just push and it will be fine? or do i need to make a new commit20:58
or can I modify that commit somehow20:58
hahuang65 left20:58
jeffreylevesque left20:58
fmcgeough left20:58
couchz like "git commit --amend -m "Message.""20:58
hahuang65 joined20:59
cbonobo joined20:59
SurenNihalani joined20:59
King_Hual left20:59
petersaints joined20:59
svm_invictvs joined20:59
gopar left20:59
peoliey joined20:59
capstar joined21:00
gopar joined21:00
hahuang65 left21:00
peoliey is there any way to stash all the commits till some specific commit? One of doing that is doing "git reset to_specific_commit && git stash" but this will remove all the commit messages.21:00
is there any smarter way?21:00
Fulg joined21:01
jimm left21:01
Darcidride left21:01
AaronMT left21:02
couchz left21:03
cbonobo left21:04
hahuang65 joined21:04
orbyt_ left21:04
zivester left21:04
gopar left21:04
nixjdm left21:04
bigjazzsound_ left21:06
bigjazzsound joined21:06
Cavallari left21:08
mar77i joined21:09
GaveUp left21:10
xcm left21:10
xcm joined21:11
Fulg left21:13
GrailKn1ght left21:14
jimm joined21:14
gableroux joined21:14
parsnip peoliey: look at `git reset --soft`21:14
gugah left21:15
parsnip peoliey: but maybe you want to create a temporary branch name to make it easier to keep your place as refs move around.21:15
nixjdm joined21:16
tnecniv left21:17
parsnip peoliey: so if you have A <- B <- C <- D <- E, sounds like currently your ref is pointing at E21:17
mar77i left21:17
parsnip and you want to add all changes from A to E to be recorded as a single stash?21:17
gableroux left21:19
peoliey parsnip: a->b->c->d ....i want to compile my changes till only 'b' and remove 'c' and 'd' commit temporarily. As those are commits, i also don't want to rewrite commit message again if i do 'git reset b'21:19
if i want to get back 'c' and 'd' later21:19
parsnip peoliey: you could just check out the hash at b, instead of resetting the ref.21:20
it would then be a "detached head"21:20
the ref could stay at d21:20
stanfordtools joined21:21
parsnip commits correspond 1-1 with their hashes. the refs just point to them.21:21
ozette_ joined21:22
hseg joined21:22
MattMaker left21:22
hseg How do I debug "fatal: src refspec 'foo' must name a ref"?21:22
_ikke_ hseg: Are you use that you have a local branch called foo?21:22
neunon left21:22
peoliey parsnip: let me try that21:22
hseg Yes, I'm on it right now21:22
_ikke_ hseg: what command are you executing?21:23
hseg git push origin foo21:23
while on branch foo21:23
neunon joined21:23
hseg Git also complains fatal: process for submodule 'common' failed, even though the submodule is fully up to date...21:24
_ikke_ Are you using submodules?21:24
hseg Yes21:24
With push.recurseSubmodules set to on-demand21:24
roelmonnens joined21:25
TheVice left21:25
Murr left21:25
hseg But again, given that the submodule mentioned is clean, this shouldn't be an issue unless it's trying to push branch foo on the submodule, which it shouldn't21:25
jil left21:25
Paparaciz joined21:25
_ikke_ https://stackoverflow.com/questions/44641872/how-can-i-do-git-push-recurse-submodules-on-demand-when-the-parent-repo-is-o21:25
Murr joined21:25
_ikke_ https://public-inbox.org/git/20170627162307.GE161648@aiede.mtv.corp.google.com/21:26
TheVice joined21:26
hseg Wait, what? IIRC, I've managed to push with submodules on differing names.21:27
May be mistaken and have had both be master.21:27
astrofog joined21:27
hseg But again, this shouldn't happen as the submodule is up-to-date.21:28
orbyt_ joined21:29
linuxmodder left21:29
roelmonnens left21:29
linuxmodder joined21:29
linuxmodder left21:29
linuxmodder joined21:29
hseg But passing --no-recurse-submodules did it, thanks21:29
Hm. Odd, will debug another time. Late21:30
ty _ikke_21:30
hseg left21:30
gopar joined21:31
porfiriopaiz joined21:33
Es0teric left21:33
sturner joined21:33
revoltingPeasant left21:35
duckydan left21:35
nisseni joined21:38
mar77i joined21:39
simka left21:40
porfiriopaiz left21:40
gopar left21:41
gopar joined21:42
aard left21:43
MattMaker joined21:43
LeoBud joined21:43
AnjaSally21:44
SallySephyette21:45
Guest92304 left21:46
debian joined21:47
debianGuest2392121:47
LeoBud left21:48
jstimm joined21:48
tarkus left21:49
gopar left21:50
Toba__ left21:51
xcm left21:51
Toba__ joined21:51
gopar joined21:51
Toba__ left21:51
_ADN_ joined21:51
Toba joined21:51
wootehfoot left21:51
TomyLobo left21:52
kpease_ left21:54
capstar left21:55
xcm joined21:56
jeffreylevesque joined21:57
subnet257 joined21:58
Gurkenglas_ left21:58
peterbecich joined21:59
ZyX-I left22:01
peterbecich left22:01
MattMaker left22:02
TheVice left22:02
nonconvergent left22:02
nixjdm left22:04
opalepatrick left22:05
ArcaTech joined22:05
theoceaniscool joined22:05
denimsoft joined22:07
nisseni left22:07
tnecniv joined22:07
lukky513 left22:08
raijin joined22:08
Nizumzen left22:12
Acerific joined22:13
Acerific left22:13
Acerific joined22:13
ycyclist left22:15
manuelschneid3r left22:15
shinnya joined22:16
gopar left22:16
seebyr left22:17
gopar joined22:17
nixjdm joined22:18
xcm left22:20
theoceaniscool left22:21
fission6 how do i undo the last to commits22:22
some bad code got merged in22:22
jrajav left22:23
gopar left22:24
Patriqu joined22:24
dre_ left22:24
gopar joined22:25
xcm joined22:25
Cabanossi left22:26
cdown left22:26
ertes-w left22:27
Cabanossi joined22:27
neilthereildeil left22:28
astrofog left22:28
schleppel left22:28
Argylelabcoat left22:28
dre_ joined22:32
cd-rum joined22:33
Jackneill left22:34
parsnip fission6: can you show us !situation22:34
gitinfo fission6: Please pastebin the relevant output of `git log -n 20 --all --graph --format="%h %p %d"` to give us an idea about what your situation is (increase the -n argument if your problem is more complex than 20 commits can explain)22:34
mizu_no_oto joined22:35
Nizumzen joined22:35
gopar left22:36
subnet257 left22:39
pionen joined22:39
MattMaker joined22:40
subnet257 joined22:40
gopar joined22:41
m712 left22:41
nixjdm left22:42
preyalone left22:43
m712 joined22:43
dsdeiz left22:46
dsdeiz joined22:46
dsdeiz left22:46
dsdeiz joined22:46
zivester joined22:46
m712 left22:49
Hello71 !undo22:49
gitinfo [!fixup] So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history!22:49
fahadash left22:50
fission6 is there an easier more modern way to address this issue22:51
phaazonhaze_22:51
ndun4 joined22:51
fission6 where you revert poor code in a merge and then want to fix it in a branch22:51
cd-rum left22:52
Nizumzen left22:52
namcappolyzen22:52
haze_phz22:53
phzhaaze22:53
m712 joined22:55
theoceaniscool joined22:56
juiccifer left22:57
ndun4 left22:58
shinnya left22:58
fission6 whats the common course of action when you merge in a branch that has a bug and you need to pull it out22:58
haazehaze__22:59
juiccifer joined23:00
haze__phaazon23:00
dsdeiz left23:00
rtjure left23:01
dsdeiz joined23:01
dsdeiz left23:01
dsdeiz joined23:01
finalbeta left23:04
pbandark left23:04
cdown joined23:05
peterbecich joined23:06
Phylock left23:06
adelyne joined23:07
peterbecich left23:08
P4nther joined23:08
ozette_ left23:08
FernandoBasso left23:09
P4nther left23:10
fission6 left23:11
Darren_ left23:12
xcm left23:13
xcm joined23:14
ArcaTech left23:14
thiago joined23:16
MrMagic left23:16
theoceaniscool left23:17
madewokherd joined23:17
diogenese left23:18
diogenese joined23:18
denimsoft left23:18
awygle Am I right that there is no way to clone part of a repo? Or even just download part of one?23:19
denimsoft joined23:19
denimsoft left23:19
denimsoft joined23:20
denimsoft left23:20
denimsoft joined23:21
denimsoft left23:21
denimsoft joined23:21
denimsoft left23:22
denimsoft joined23:22
denimsoft left23:22
pionen left23:23
MrMagic joined23:23
Murr left23:25
Murr joined23:26
Acerific left23:27
MattMake_ joined23:30
MattMaker left23:30
preaction awygle: you can make a shallow clone of one commit in a repo, but not of a path in a repo, no23:31
msonntag left23:32
VladGh left23:33
VladGh joined23:34
MattMake_ left23:37
clime joined23:37
dege left23:38
msonntag joined23:39
Guma joined23:40
clime left23:44
kasual joined23:44
McKraken_zzzzzMcKraken23:45
gargola left23:45
uebera|| left23:46
uebera|| joined23:47
uebera|| left23:47
uebera|| joined23:47
SurenNihalani left23:47
cagomez left23:47
peterbecich joined23:49
peterbecich left23:50
gopar left23:51
gopar joined23:52
xcm left23:52
SurenNihalani joined23:52
xcm joined23:53
cagomez joined23:53
acidjnk2 joined23:53
Guma left23:54
thiago left23:54
piraye left23:55
madewokherd left23:56
acidjnk left23:56
cdg joined23:59

Logs Search ←Prev date Next date→ Channels Documentation