IRCloggy #git 2018-03-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.

2018-03-27

weez17 left00:00
weez17 joined00:00
fission6 left00:01
fstd_ joined00:01
fission6 joined00:02
cahoots left00:02
sat-aton__ joined00:03
linuxmodder joined00:04
fstd left00:04
fstd_fstd00:04
Olipro left00:05
sat-aton left00:06
cahoots joined00:07
jottr left00:08
m0viefreak left00:10
qpdbGuest7874600:10
qpdb joined00:10
kingarmadillo left00:12
armin_ joined00:12
shinnya left00:13
kingarmadillo joined00:13
Guest78746 left00:13
ProCycle left00:13
fission6 left00:13
weijin joined00:15
armin left00:16
paxri01 left00:16
sat-aton joined00:16
sat-aton__ left00:18
habbasi left00:19
thiago left00:20
weijin left00:20
sat-aton__ joined00:21
thiago joined00:22
sat-aton left00:23
_ikke_ left00:24
habbasi joined00:26
cdg left00:27
paxri01 joined00:27
sat-aton joined00:29
_ikke_ joined00:29
bemo is it possible to tell when a commit was fetched? (as opposed to the commit date for the commit)00:29
rchavik joined00:29
sat-aton__ left00:31
sat-aton__ joined00:32
[Brain] joined00:34
flippo joined00:34
XD joined00:34
sat-aton left00:34
kn-928 left00:35
mmattice left00:35
metalraiden34 left00:35
weijin joined00:36
cpr joined00:38
paxri01 left00:39
IndianArya left00:40
weijin left00:41
cpr left00:41
cpr joined00:42
cpr left00:43
sat-aton joined00:44
sat-aton left00:44
sat-aton joined00:44
bemo i.e., when it was introduced into the local repository00:45
rockfordal2 left00:45
IndianArya joined00:45
sat-aton__ left00:46
infinisil left00:47
durham_ joined00:47
sat-aton__ joined00:47
infinisil joined00:47
cahoots left00:48
sat-aton left00:50
weijin joined00:50
noobineer joined00:50
satifant joined00:50
durham left00:51
durham_ left00:52
sat-aton__ left00:53
cahoots_ joined00:53
pfleck left00:53
nevodka left00:54
dsdeiz left00:54
sat-aton joined00:54
weijin left00:54
sat-aton left00:54
sat-aton joined00:54
nevyn create/modify time of the object file in the local store?00:56
like if you find it in .git/objects.... then just stat the file00:56
satifant left00:57
dsdeiz joined00:57
nevyn bemo: ^^00:57
durham joined00:57
h12o joined00:59
ferdna left00:59
widp joined00:59
sat-aton__ joined01:01
zxd left01:03
sat-aton left01:03
nimomo joined01:04
thiago left01:04
johnflux_ joined01:04
sat-aton joined01:04
zxd joined01:05
ferdna joined01:06
justanotheruser joined01:06
bemo right... does that work if they've been packed? (I'm talking about something I know almost nothing about now)01:07
sat-aton__ left01:07
justanotheruser left01:07
justanotheruser joined01:07
nevyn I thought packing only was for transport01:08
Catatronic left01:08
bemo nevyn: oh, is it?01:08
nevyn and fetch unpacked into the local store01:08
sat-aton__ joined01:08
nimomo left01:08
bemo okay, I guess I may have asked the wrong question then... I'm really trying to find out when someone may have made a change that introduced a commit into the remote server. (I was using "local" to mean it wasn't from the primary "upstream" repo)01:09
sat-aton left01:11
bemo it's a weird question, I know... I just noticed some new history that had been introduced into a repository on one of our servers... but the date is like 2006, and I'm curious when that particular object was "fetched" or introduced into that server's repository... may not be possible to track that... <?>01:11
stutter_ joined01:12
sat-aton joined01:13
sat-aton left01:13
sat-aton joined01:13
Catatronic joined01:13
sat-aton__ left01:14
felixsanz left01:14
mmattice joined01:15
sat-aton__ joined01:16
felixsanz joined01:17
asphyxia joined01:18
alhariel left01:18
sat-aton left01:18
asphyxia left01:19
sat-aton joined01:20
alhariel joined01:22
spacesuitdiver joined01:22
sat-aton__ left01:23
novas0x2a|w left01:23
weijin joined01:23
spacesuitdiver left01:24
singlerider joined01:25
Sasazuka left01:27
xaxxon joined01:28
VoradorPT left01:28
cfoch__ left01:28
weijin left01:28
noobineer left01:28
noobineer joined01:28
finalbeta joined01:28
scarabx left01:30
Guest73 left01:30
durham left01:30
jakogut_ joined01:30
Fernando-Basso left01:30
noobineer left01:31
govg left01:32
pilcrow joined01:33
noobineer joined01:33
noobineer left01:33
endiruna left01:33
alezandro left01:34
durham joined01:35
notze left01:35
XD left01:37
nimomo joined01:39
cdg joined01:43
nimomo left01:44
weijin joined01:44
cagomez joined01:46
ilbot3 left01:46
cdg left01:48
weijin left01:48
IndianArya left01:50
mel00010 joined01:51
cagomez left01:51
IndianArya joined01:52
linuxmodder left01:53
weijin joined01:54
ilbot3 joined01:56
h12o left01:56
nevyn so with local access to that server it is. by the same method but I don't think there's an inband way to do it.01:56
linuxmodder joined01:57
widp left01:57
stutter_ left01:58
mborgard left01:58
fran__ joined01:59
Lyqyd joined02:01
lagothrix joined02:02
jakogut_ left02:02
jakogut_ joined02:02
fran__ left02:03
lagothri1 left02:05
weijin left02:06
Olipro joined02:06
OliproGuest7280802:06
einnjo left02:07
duderonomy joined02:08
mlopezviedma_ joined02:08
supernovah if I git commit -am "something" and git push -uf origin origin/master and bitbucket.org says, last activity 81 seconds ago for a branch which I'm the only person with any rights to even push or pull from, should I expect to see a new commit on bitbucket?02:09
thiago joined02:09
mlopezviedma left02:10
Rebuked joined02:11
supernovah it says I'm ahead of master by 1 commit02:11
remote is called "master" not origin/master, does that matter?02:11
mborgard joined02:12
nimomo joined02:13
RebukedRebuked_02:14
johnflux_ left02:14
alezandro joined02:15
nimomo left02:18
Rebuked_ left02:19
watabou left02:21
filcab left02:23
weijin joined02:24
xaxxon left02:24
mlopezviedma_ left02:24
widp joined02:25
filcab joined02:25
xaxxon joined02:26
sentriz left02:30
guideline left02:34
LichtMacher left02:34
thiago left02:35
sentriz joined02:36
xaxxon_ joined02:36
xaxxon left02:38
kn-928 joined02:38
dansan_ left02:41
dansan joined02:41
nimomo joined02:41
xaxxon_xaxxon02:42
morenoh149 joined02:42
IndianArya left02:42
weijin left02:46
nimomo left02:46
weijin joined02:49
LiftLeft left02:51
johnflux_ joined02:52
sleepingforest left02:56
weijin left02:57
nimomo joined02:59
rchavik left03:00
lagothri1 joined03:00
rchavik joined03:01
guideline joined03:01
weijin joined03:03
nimomo left03:03
lagothrix left03:03
rchavik left03:04
sat-aton__ joined03:05
duckydan joined03:06
boombatower left03:07
sat-aton left03:07
jkphaze joined03:08
stoopkidstoopbob03:13
jkphaze left03:13
durham left03:14
durham joined03:14
durham left03:14
weijin left03:14
durham joined03:14
durham left03:15
durham joined03:16
durham left03:16
durham joined03:17
jkphaze joined03:17
durham left03:17
Mattiasl_ joined03:17
Goplat joined03:18
Mattiaslndstrm left03:18
mborgard left03:21
rchavik joined03:22
IndianArya joined03:22
Raging_Hog joined03:24
jstimm joined03:24
karstensrage joined03:24
weijin joined03:25
fr33domlover left03:30
muricantrump left03:30
canvon joined03:30
nimomo joined03:30
canvon_ left03:31
piggah joined03:31
nimomo left03:35
weijin left03:36
fletom left03:38
weijin joined03:40
weijin left03:44
mar77i_ joined03:44
orbyt_ left03:50
theology left03:50
piggah left03:57
kn-928 left03:58
fletom joined03:58
flippo left04:00
orbyt_ joined04:00
linuxmodder left04:00
ferdna left04:00
Crypt0x joined04:01
linuxmodder joined04:03
weijin joined04:04
piggah joined04:04
govg joined04:05
Moondhum joined04:07
Sokol joined04:08
weijin left04:08
Moondhum left04:08
ferdna joined04:11
Gurkenglas joined04:12
PioneerAxon_ joined04:14
PioneerAxon_ left04:14
PioneerAxon_ joined04:15
PioneerAxon left04:15
weijin joined04:16
Gurkenglas left04:17
Gurkenglas joined04:17
weijin left04:17
justan0theruser joined04:18
justan0theruser left04:19
justan0theruser joined04:19
justanotheruser left04:20
weijin joined04:23
piggah left04:23
xaxxon_ joined04:24
xaxxon left04:27
weijin left04:27
orbyt_ left04:28
jstimm left04:28
kriskropd left04:33
jstimm joined04:37
IndianArya left04:38
ferdna left04:39
alezandro left04:39
xaxxon_xaxxon04:40
goweol1 joined04:42
goweol left04:43
ferdna joined04:44
morenoh149 left04:44
hays joined04:46
sarp joined04:46
Nizumzen left04:46
watabou joined04:48
watabou left04:49
john-34 left04:50
Sokol left04:51
Nizumzen joined04:51
Sokol joined04:51
hbautista left04:53
Mattiasl_ left04:53
john-34 joined04:55
weijin joined04:56
Lyqyd left04:57
RougeR left04:59
chan201 joined04:59
Raging_Hog left05:00
weijin left05:00
wandering_vagran joined05:01
pks left05:02
pks joined05:04
semicolon joined05:05
alhariel left05:07
weijin joined05:09
john-34 left05:10
chan201 left05:11
chan201_ joined05:11
john-34 joined05:11
Circuitsoft left05:13
weijin left05:14
waveclaw left05:15
__main__ left05:16
__main__ joined05:17
jstimm left05:17
ArcaTech joined05:17
jstimm joined05:17
Darcidride_ joined05:17
Darcidride__ joined05:18
waveclaw joined05:18
zlsyx left05:18
Darcidride left05:19
ferdna left05:20
sarp left05:20
Darcidride_ left05:21
sat-aton joined05:23
dege joined05:23
jstimm left05:24
Thominus left05:24
Thominus joined05:25
sat-aton__ left05:25
Thominus left05:26
liefer left05:27
re1 joined05:27
cdg joined05:27
liefer joined05:28
jstimm joined05:29
jstimm left05:30
novas0x2a|w joined05:30
jstimm joined05:31
cdg left05:33
howdoi joined05:33
weijin joined05:33
nowhereman_ joined05:33
sarp joined05:33
sauvin_ joined05:34
nowhere_man left05:36
NerdyPepper left05:37
LiftLeft joined05:37
weijin left05:37
Shin_Aska joined05:39
alezandro joined05:41
john-34 left05:41
rosa joined05:41
john-34 joined05:41
john-34 left05:44
dege left05:44
sleepingforest joined05:44
john-34 joined05:44
sleepingforest left05:44
alezandro left05:45
johnflux_ left05:45
sleepingforest joined05:45
dreiss left05:45
weijin joined05:45
muelleme joined05:46
themill joined05:46
piggah joined05:46
dege joined05:47
jstimm left05:48
firegurafiku joined05:48
hays left05:48
subhojit777 joined05:49
johnflux_ joined05:49
zhibli left05:50
weijin left05:50
Shin_Aska left05:50
sentriz left05:51
sentriz joined05:52
jstimm joined05:52
veegee joined05:52
watabou joined05:53
Raging_Hog joined05:53
rosa left05:53
muelleme left05:53
rosa joined05:54
Guest73 joined05:54
novas0x2a|w left05:56
novas0x2a|w1 joined05:56
venmx joined05:56
ronskisika joined06:00
jkphaze left06:00
skisela joined06:00
jstimm left06:01
jstimm joined06:02
rexan joined06:03
weijin joined06:03
Raging_Hog left06:04
freimatz joined06:04
chan201_ left06:05
weijin left06:08
jready joined06:08
jstimm left06:08
piggah left06:09
pfleck joined06:10
jstimm joined06:11
johnflux_ left06:12
KeyJoo joined06:13
jstimm left06:14
pfleck left06:14
jstimm joined06:14
jimmyrcom left06:15
weijin joined06:16
jstimm left06:17
jready left06:17
nowhere_man joined06:18
nowhereman_ left06:18
jstimm joined06:18
fr33domlover joined06:19
manuels joined06:20
sauvin_ left06:20
weijin left06:20
staafl__ left06:26
staafl_ joined06:26
Gurkenglas_ joined06:26
xaxxon left06:27
tkore\w joined06:29
tkore\w left06:29
tkore\w joined06:29
Gurkenglas left06:29
shpoont_ joined06:30
FortunaTP left06:31
FortunaTP joined06:31
sat-aton__ joined06:32
rominronin joined06:32
sanscoeu_ joined06:32
navidr joined06:33
weijin joined06:33
sat-aton left06:34
sat-aton joined06:34
sat-aton left06:34
sat-aton joined06:34
sauvin_ joined06:35
sanscoeur left06:35
duderonomy left06:36
sauvin_bocaneri06:37
Tobbi joined06:37
sat-aton__ left06:37
weijin left06:38
weijin joined06:38
venmx left06:38
weijin left06:39
sat-aton left06:41
zeroed joined06:43
NerdyPepper joined06:43
xaxxon joined06:43
satifant joined06:43
jstimm left06:48
sammyg joined06:48
jstimm joined06:48
Random832 left06:50
kingarmadillo left06:50
tarkus joined06:52
rokups joined06:55
weijin joined06:55
dreiss joined06:56
asphyxia joined06:57
subhojit777 left06:58
kes joined06:58
weijin left07:00
ronskisika left07:00
ronskisika joined07:00
xaxxon left07:01
weijin joined07:03
paxri01 joined07:04
rfuentess joined07:05
Gurkenglas_ left07:06
Guest73 left07:07
weijin left07:07
Random832 joined07:09
abba joined07:09
RougeR joined07:10
RougeR left07:10
RougeR joined07:10
oxymoron93 joined07:11
sarp left07:13
cur8or joined07:13
widp Is using git for backup a good idea?07:13
thallada left07:15
kingarmadillo joined07:16
rfuentess widp, ABSOLUTELY! well ,depends07:17
which type of backup ? :P07:17
and how much private must be ?07:18
cur8or left07:18
weijin joined07:18
Shin_Aska joined07:19
widp Let's say as Google drive replacement.07:19
flaviodesousa joined07:19
mar77i_mar77i07:19
sarp joined07:20
NerdyPepper widp: is there a reason you want to replace g drive?07:20
rfuentess widp, mmm like for an incremental backup ? For binaries files07:20
widp NerdyPepper: my question was actually motivated by Google keep07:21
Serus left07:21
kingarmadillo left07:21
NerdyPepper widp: if it aint binaries, go for it07:21
widp I replaced that by something called syncthing, for syncing text files.07:22
And an app that deals wiTh these text files I think uses git as the back end.07:22
I am not really sure if Google keep syncing is more reliable.07:22
rfuentess widp, I found this for e-mail archives, https://www.worthe-it.co.za/ops/2017/12/21/using-git-for-incremental-backups.html07:22
weijin left07:22
rfuentess maybe can be used in a similar fashion for the notes?07:23
Bobdude left07:23
dsdeiz left07:23
MurkyLizard joined07:24
NerdyPepper widp: what exactly is the use case here?07:24
Guest73 joined07:24
widp I don't really know.07:24
I see people using git everywhere these days.07:24
I guess I just wanted to find somethings that git is not good at.07:25
Binary backups are one.07:25
pfleck joined07:25
dsdeiz joined07:26
Serus joined07:27
widp I also hear mercurial has better "porcelain"07:27
sostenuto joined07:29
mattcen left07:33
pnepe6 left07:33
alyptik left07:33
Oatmeal left07:33
schleppel joined07:35
pnepe6_ joined07:35
dmone joined07:35
sammyg left07:35
dreiss left07:35
up_the_irons left07:35
up_the_irons joined07:35
typikal joined07:35
gmh left07:35
mattcen_ joined07:35
typikalalyptik07:35
mattcen_mattcen07:35
sammyg joined07:38
thallada joined07:39
asphyxia left07:39
pfleck left07:39
gmh joined07:40
paxri01 left07:42
Guest73_ joined07:48
Guest73 left07:49
sarp left07:49
grayjoc joined07:49
cdown joined07:49
gmh left07:49
sarp joined07:49
sammyg left07:49
ShapeShifter499 left07:49
nivag left07:49
TinkerT left07:49
weijin joined07:49
kingarmadillo joined07:49
TinkerT joined07:50
nivag joined07:52
kingarmadillo left07:54
rosa left07:58
weijin left07:58
gmh joined07:58
no_gravity joined07:58
no_gravity Good Morning07:58
When a file gets renamed, git does show it as if the files was deleted and a new file was created. Is that normal?07:58
pfleck joined07:58
venmx joined07:59
selckin yes08:00
NerdyPepper no_gravity: yeah08:00
seschwar joined08:00
selckin you can configure it to try and detect it and show it as move, but still recorded same way08:00
eshlox joined08:00
no_gravity So how do you deal with it? If a coder renames a file, how do you make sure the content is not changed?08:01
howlymowly joined08:01
cdown left08:01
Raging_Hog joined08:02
pfleck left08:02
KeyJoo left08:03
gareppa joined08:04
King_Hual joined08:04
King_Hual left08:04
King_Hual joined08:04
ronskisika left08:05
kriskropd joined08:06
sammyg joined08:06
cagomez joined08:07
rexan left08:07
zeroed left08:08
floppydh joined08:09
Coop56 joined08:10
sword` joined08:10
Coop left08:10
sword left08:11
ShapeShifter499 joined08:11
cagomez left08:12
leeN joined08:13
MartyH joined08:13
Nizumzen left08:14
mosab joined08:14
ArcaTech left08:14
cahoots_ left08:15
cahoots__ joined08:15
gareppa left08:15
Oatmeal joined08:15
gareppa joined08:16
borkr joined08:17
sleepingforest left08:17
borkr left08:17
zeroed joined08:18
f2k joined08:18
KeyJoo joined08:18
peterR`` left08:19
RougeR left08:19
MartyH left08:20
MartyH joined08:20
MartyH Probably a really tired question, and there is lots on the internet, but I can't figure out what I need to do: I'm getting warnings LF line endings are being converted to CRLF. I don't want this to happen, I want my line endings to be committed as they are in my working directory. git config -l shows core.autocrlf=false08:20
what else should I be doing?08:21
(or shouldn't I be doing?)08:21
Asenar joined08:21
john-34 left08:22
weijin joined08:24
kaustubhw joined08:27
no_gravity Now I see 'git log' has a --follow parameter.08:27
That correctly detects that rename.08:27
weijin left08:28
kaustubhw left08:28
kaustubhw joined08:29
kriskropd left08:30
tvale joined08:33
shpoont_ left08:34
kingarmadillo joined08:36
sleepyhead joined08:37
freimatz left08:37
EvilDMP joined08:38
Goplat left08:38
jast left08:39
jast joined08:39
EvilDMP I was looking through the git diff man pages, but couldn't find an answer: is it possible to do a git diff some-other-branch with an option to show *only additions* made some-other-branch?08:40
i.e. I only want to know what some-other-branch has that this branch lacks.08:40
canton7 EvilDMP, --diff-filter08:41
RougeR joined08:41
kingarmadillo left08:41
fairuz joined08:42
bolovanos joined08:42
firegurafiku left08:43
weijin joined08:43
alezandro joined08:44
tvale left08:45
sarp left08:46
gareppa left08:47
kurkale61 joined08:48
weijin left08:48
alezandro left08:49
FilipNortic_ joined08:52
kurkale61 left08:52
kurkale61 joined08:52
weijin joined08:53
Crypt0x left08:53
FilipNortic left08:54
gareppa joined08:54
gareppa left08:55
mixaz joined08:55
jottr joined08:55
g00s left08:56
gareppa joined08:57
weijin left08:59
phinxy joined08:59
tvale joined08:59
weijin joined09:02
jready joined09:03
cstratak joined09:03
no_gravity left09:04
manuels left09:04
EvilDMP Thanks canton7, that does the trick09:05
dhollinger left09:05
gareppa left09:05
manuels joined09:05
re1 left09:06
energizer left09:06
daidoji left09:07
newbie|8 joined09:07
jready left09:07
fairuz left09:07
weijin left09:07
nowhereman joined09:07
nowheremanGuest9298609:07
nowhere_man left09:07
gareppa joined09:08
piggah joined09:10
checkItOut joined09:10
mosab left09:11
goweol joined09:13
tunekey left09:13
Guest56018 left09:14
bubo joined09:14
checkItOut left09:14
bubo How can I pop just one file from a stash?09:15
checkItOut joined09:15
Shin_Aska left09:16
goweol1 left09:16
goweol2 joined09:16
goweol1 joined09:17
bubo nvm, google it09:18
catsup left09:18
catsup joined09:18
catsup left09:19
gareppa left09:19
catsup joined09:19
goweol left09:20
goweol2 left09:20
asphyxia joined09:21
nimomo joined09:22
noteness left09:22
cdg joined09:26
skisela left09:27
weijin joined09:27
sostenuto left09:28
sostenuto joined09:28
cdg left09:31
kriskropd joined09:31
igemnace joined09:31
dhollinger joined09:31
tt joined09:32
weijin left09:32
zefferno joined09:33
afuentes joined09:33
howdoi left09:34
sammyg left09:35
noteness joined09:37
tarkus left09:37
kingarmadillo joined09:38
zefferno left09:38
gareppa joined09:39
tarkus joined09:39
sammyg joined09:40
weijin joined09:40
kingarmadillo left09:42
gareppa left09:43
Guest92986 left09:43
sleepyhead left09:44
weijin left09:45
re1 joined09:46
weijin joined09:47
Guest92986 joined09:47
Mavericks joined09:48
rominron_ joined09:48
weijin left09:48
weijin joined09:48
rominron_ left09:50
rominro__ joined09:50
rongjunxue joined09:50
ferr joined09:50
leeN left09:50
noteness left09:51
zefferno joined09:51
leeN joined09:51
cdown joined09:52
jottr left09:52
rexan joined09:52
rexan left09:52
rexan joined09:52
rominronin left09:52
weijin left09:53
rominro__ left09:53
wandering_vagran left09:53
rominronin joined09:54
rominronin left09:54
rominronin joined09:54
weijin joined09:54
cdown left09:54
vk joined09:57
jkphaze joined09:58
firegurafiku joined09:59
YuGiOhJCJ joined10:01
Gurkenglas_ joined10:01
Mavericks left10:05
thiago joined10:05
weijin left10:06
sanscoeur joined10:06
sanscoeu_ left10:09
noteness joined10:09
KeyJoo left10:10
Puffball left10:14
YuGiOhJCJ left10:14
skywater joined10:15
YuGiOhJCJ joined10:16
waveclaw left10:17
jkphaze left10:18
waveclaw joined10:19
weijin joined10:19
rvgate left10:21
jottr joined10:25
weijin left10:26
alwyn joined10:26
noteness left10:27
alwyn Hi, I'm trying to replace a submodule with a module of the same name, but a completely different repo. I've removed the submodule and re-added it successfully, but if I now want to update existing clones of the repository they will say "fatal: reference is not a tree / Unable to checkout 'hash' in submodule path 'my-mod'10:28
gareppa joined10:28
alwyn What am I doing wrong, or what are the proper steps to take to achieve this?10:28
doug16k left10:31
dpyro left10:31
asphyxia left10:32
archer121 joined10:32
archer121 Hi, I created a template github repo that will be used by students in their sorftware engineering lab. It will teach them GitHub+CircleCI+Heroku for CI/CD. Can some take a look at it and provide some feedback?10:32
https://github.com/arc30/php-template10:32
raynold left10:32
weijin joined10:34
checkItO_ joined10:35
jast left10:35
jast joined10:36
sammyg left10:37
checkItOut left10:37
kingarmadillo joined10:39
rominronin left10:39
checkItO_ left10:39
rominronin joined10:40
freimatz joined10:41
weijin left10:42
wandering_vagran joined10:43
borkr joined10:43
Fernando-Basso joined10:43
hays joined10:43
hays left10:44
Guest73_ left10:44
rominronin left10:44
vk left10:44
kingarmadillo left10:44
ch3pjw joined10:45
tvale left10:48
fairuz joined10:49
kingarmadillo joined10:50
weijin joined10:51
rvgate joined10:52
kingarmadillo left10:54
fairuz left10:56
thiago_ joined10:57
thiago left10:57
fairuz joined10:58
weijin left10:59
LiftLeft left10:59
tandra left11:00
gareppa left11:01
thiago_ left11:02
chris_wot joined11:03
tvale joined11:04
daidoji joined11:04
weijin joined11:05
rominronin joined11:05
rominronin left11:05
rominronin joined11:06
grayjoc left11:06
shpoont_ joined11:06
johnflux_ joined11:07
weijin left11:09
shpoont_ left11:10
john-34 joined11:10
sammyg joined11:11
Guest73 joined11:12
garo joined11:13
weijin joined11:13
noteness joined11:14
tvale left11:16
fairuz left11:16
weijin left11:17
KeyJoo joined11:18
garo A long time ago I forked a repository from someone else. I fixed a bug in my copy of the rep, committed it (in my master-branch) but never send a pull request11:19
After that I completely forgot about my fork until now.11:20
john-34 left11:20
garo Meanwhile the original rep has received many changes, the bug that i fixed for myself was also fixed by others (in a completely different way)11:20
palmtree joined11:21
john-34 joined11:21
garo I now want to ignore my last commit (if necessary i'll keep it in another branch) and pull all new code from the original rep11:22
(How) Can i do this ?11:22
enckse joined11:22
garo (Both the original rep and my fork are on github)11:22
Guest92986 left11:23
john-34 left11:24
john-34 joined11:24
jfr left11:24
john-34 left11:25
filcab left11:25
weijin joined11:25
john-34 joined11:26
filcab joined11:27
phluks joined11:27
jstimm left11:28
alezandro joined11:29
rexan left11:31
tvale joined11:32
lupine It seems `git fetch` leads to refs being stored unpacked. is there a way to get around that?11:32
weijin left11:32
noteness left11:33
alezandro left11:33
jstimm joined11:35
zeroed left11:38
MartyH garo You could consider side-stepping the issue, deleting your clone, re-cloning from upstream, and push -f'ing to your repo.11:40
jstimm left11:40
canton7 lupine, why do you care whether refs are packed or unpacked?11:41
garo Can i delete a clone in github ?11:41
I was also hoping this was possible but couldn't find a way11:42
weijin joined11:42
garo (nobody forked me so deleting would be no problem at all)11:42
grawity you probably don't need to – you can just push the updated branches, etc.11:42
canton7 garo, yes, there's a button to delete a repo under the admin section of the repo11:42
grawity but the repository delete button is in the Admin tab11:42
lupine canton7: `git fetch` runs faster when they're packed11:42
grawity so pack them after every fetch11:43
canton7 lupine, I'm surprised your repo is big enough to notice... How many refs do you have?11:43
garo No admin tab visible...11:43
lupine right, but then I still have to do the fetch, which goes slowly11:43
canton7: I've got 4 million repositories to take care of ^^11:43
garo nevermind11:43
canton7 wow11:43
fairuz joined11:44
lupine life is suffer11:44
garo (it seems to be called "settings")11:44
lupine I've found `git remote update --prune`, but that seems to pull objects as well11:44
King_Hual left11:44
grawity so pack them before the first fetch11:44
`git pack-refs --all --prune`11:44
or reconsider whether you need all those refs11:45
lupine the remote-tracking branches don't exist before the first fetch11:45
I'm trying to find the step that will cause them to exist11:45
grawity but then they cannot possibly make the fetch slow11:45
lupine the fetch gets them, stores them unpacked, then grabs objects for them11:45
with clone, they're stored packed11:45
rchavik left11:45
grawity do you mean *creating* the ton of unpacked refs is slow?11:45
kingarmadillo joined11:46
lupine creating them, and then using them in fetch afterwards11:46
grawity also I'm fairly sure that refs are only updated *after* downloading the object pack11:46
`git fetch` *is not* split into two stages the way you're describing11:46
lupine hmm, perhaps I'm misunderstanding something then11:47
Startintin joined11:48
lupine ah, maybe this is it: we're using `--prune`, which *does* update remote-tracking branches before running the fetch proper11:49
grawity possibly11:50
johnflux_ left11:50
grawity a regular fetch: reads local refs; connects to server; asks for ref list; gets ref list; sends a bunch of "want <hash>" commands; gets a packfile; writes out the packfile; writes out updated refs11:50
(doing it the other way around would leave you with refs which point nowhere)11:51
kingarmadillo left11:51
grawity I don't know which step --prune is inserted into11:51
tomfarr left11:52
lupine aye, which is actually sort of what I want - a sequence of commands that leaves me with a "broken" repository", containing refs pointing to objects I don't have, all neatly bundled into `packed-refs`11:52
grawity tbh, git ls-remote > .git/packed-refs11:53
lupine 2.16 has a bunch of performance optimizations that help in the unpacked case though, so maybe it's not too important11:53
that works after the initial git fetch11:53
oh, wait, I see11:53
skywater hi11:53
gitinfo skywater: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.11:53
skywater What is the best way to automatic deploy code from git to the ftp server?11:53
grawity hmm, the output for peeled tags ("^{}" lines) is slightly different from what pack-refs uses11:53
and to actually make use of those lines, you'd have to also echo a "# pack-refs with: peeled " header line11:54
but not hard to sed/awk everything into the proper format11:54
Cavallari joined11:54
Phylock joined11:54
weijin left11:54
johnflux_ joined11:57
lupine `git ls-remote --refs` would exclude those; would that be a bad thing?11:58
grawity probably not11:58
Raging_Hog left11:59
grawity storing peeled refs is a performance optimization11:59
daidoji70 joined12:00
canton7 skywater, !deploy12:00
gitinfo skywater: 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:00
bruce_lee joined12:01
daidoji left12:01
lupine thanks, that was all super-helpful :)12:01
MurkyLizard left12:02
weijin joined12:02
MartyH Probably a really tired question, and there is lots on the internet, but I can't figure out what I need to do: I'm getting warnings LF line endings are being converted to CRLF. I don't want this to happen, I want my line endings to be committed as they are in my working directory. git config -l shows core.autocrlf=false What else should I be doing (or shouldn't I be doing that maybe I'm doing now)?12:02
MurkyLizard joined12:02
palmtree left12:02
zeroed joined12:03
Cavallari left12:05
palmtree joined12:05
weijin left12:07
lempamo left12:07
nimomo left12:07
lempamo joined12:07
rts-sander MartyH, https://stackoverflow.com/a/196798612:07
nimomo joined12:07
amatas joined12:08
MartyH @rts-sander: There I read "If core.autocrlf is set to false, no line-ending conversion is ever performed". core.autocrlf is set to false for me. I still get warnings that LF is being converted to CRLF12:10
wxg joined12:10
sha-2 joined12:11
rts-sander MartyH, not sure why that is12:12
nimomo left12:13
to1ne`` joined12:13
grawity see if you have any .gitattributes files12:13
nd joined12:13
alwyn Hi, I'm trying to replace a submodule with a different repository under the same name. I think I have it down, but when I try to update a clone it doesn't work at all. Even if I try deinit, then init. Then, it will show the right remote in the submodule path doing remote -v, but if I then actually do submodule update, it will replace the remote with the old one12:14
Where am I going wrong?12:14
nd_ left12:14
weijin joined12:14
MartyH @grawity I do, it contains * text=auto. Would removing that resolve the problem? Does removing that have any other consequences (on diffing and merging for example)?12:15
garo left12:15
garo joined12:17
shpoont_ joined12:17
brodock joined12:17
piggah left12:18
fairuz left12:18
weijin left12:19
mborgard joined12:19
nimomo joined12:20
IanLiu joined12:20
ferr left12:23
tarkus left12:24
garo left12:24
weijin joined12:24
hussam left12:25
nimomo left12:26
garo joined12:26
rexan joined12:28
metalraiden34 joined12:28
piggah joined12:29
joekeilty left12:29
Gotham25 joined12:29
weijin left12:29
tarkus joined12:30
Darcidride__ left12:31
joekeilty joined12:31
gareppa joined12:32
gareppa left12:32
reprazent joined12:32
gareppa joined12:32
nimomo joined12:32
Gotham25 Hi. I have a master branch and feature branch. And there are some classes in master which were later modified in feature branch. Now that I have release1 as master and release2 as feature. I don't want the classes in release1. So I'm deleting that in master.12:32
thiago joined12:33
Gotham25 Also I'm doing a periodic rebase of feature on master branch. So if I delete the code from master does it delete from feature too ?12:33
Darcidride joined12:33
fission6 joined12:34
nimomo left12:35
metalraiden34 left12:35
metalraiden34 joined12:36
gareppa left12:36
palmtree left12:37
tvale left12:37
metalraiden34 left12:37
metalraiden34 joined12:38
Strepsils joined12:39
kingarmadillo joined12:39
ivan_ joined12:40
gitinfo set mode: +v12:41
ivan_ Hi everybody12:41
Ishtv4n joined12:41
wxg left12:41
ivan_ Does anybody have time to help a noob like me?12:42
johnflux_ left12:42
freimatz left12:42
ivan_ I'm trying to configure properly git but I'm getting always some error messages and I don't really know why12:43
gareppa joined12:43
Franckapik joined12:43
ivan_ Someone's active? :/12:44
kingarmadillo left12:44
bremner ivan_: try asking about a concrete error message12:45
jungsubk joined12:45
ivan_ Ok, that's the story12:45
I'm in Ubuntu, I'm in my folder project with the terminal12:46
cdown joined12:46
ivan_ I've properly configured atom12:47
git init12:47
made some changes12:47
git add .12:47
And then git commit12:47
alwyn And what is the error you're getting?12:47
ecuanaso joined12:47
palmtree joined12:48
ivan_ But the console is always returning this message: Aborting commit due to empty commit message12:48
alwyn Wellll your commit message is empty12:48
ivan_ Atom pop up, I can write my commit message but it doesn't save anything12:48
bremner ivan_: it sounds like atom returns too quickly12:48
fairuz joined12:49
bremner ivan_: try a different editor, or tell atom to wait12:49
ivan_ I've done it :/12:49
git config --global core.editor "atom --wait"12:49
bremner if you type "atom --wait" on the command line does it return immediately?12:50
ivan_ The console supposed to be waiting, right?12:50
tvale joined12:51
ivan_ if I type atom --wait it popup with some strange things on it :O12:51
Sasazuka joined12:52
ivan_ Like this: x+)JMU�4g01���b��]K�f�-�ɣtm�]���< �LL2�RR+�2Jrs�/��ƮHb;��E���Y��|�!fd3(�׺��#��v���8"�l]T%�)�12:52
bremner fix atom?12:52
escproxy joined12:53
ivan_ How?12:53
bremner it's not part of git. You will probably get better help for atom somewhere else.12:54
as I said, you could try a different editor, like nano, to figure out your git problems12:54
MarioBranco joined12:54
ivan_ But apparently, as alwyn said, it's because commit message is empty12:55
alwyn Probably because atom returns when you run it12:55
ivan_ But I suppose to fill the message in Atom (or any other editor), right?12:55
alwyn So in the end I would say it does come down to being atom12:56
bremner sigh.12:56
Thominus joined12:56
weijin joined12:56
alwyn Or like bremner suggested, try a different editor12:56
ivan_ But Atom opens properly the message12:56
Guest92986 joined12:56
escproxy left12:56
escproxy joined12:57
cdown left12:57
ivan_ When I launch git commit, Atom pops up and opens properly COMMIT_EDITMSG12:58
With this inside:12:58
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # Sul branch master # # Commit iniziale # # Changes to be committed: # new file: css/app.css # new file: index.html # new file: js/app.js #12:58
oxymoron93 do you enter the message?12:58
alwyn You need to enter something... Read the text /o\12:59
RougeR left13:00
weijin left13:00
kingarmadillo joined13:00
Wulfe813 ivan_: If you're using atom, couldn't just make your commit from atom?13:00
ivan_ To be clear: I'm following a Git course on Udacity. There is written that typing git commit should launch my editor, and there I can type the message13:01
fairuz left13:01
ivan_ The console supposed to be "frozen", waiting for the editor13:01
grawity yes, assuming that the editor doesn't try to work against you13:01
Thominus left13:03
ivan_ I'm just trying to follow a course that supposed to be "right". Atom should be configured (it's actually pretty flat now)13:03
Thominus joined13:03
rvgate left13:04
Thominus left13:04
mborgard left13:04
Wulfe813 Hmmm. Try using "atom --wait --new-window", maybe?13:05
jungsubk left13:05
Thominus joined13:06
kingarmadillo left13:06
manuels left13:06
IanLiu left13:07
ivan_ I'm trying13:07
re1 left13:08
paxri01 joined13:08
ivan_ Nope13:09
Atom pops up and I can edit the message13:09
But the console "doesn't wait" the text editor13:10
And return the error message13:10
jungsubk joined13:10
Wulfe813 Dunno then. I just tried it, didn't have any issue.13:10
brodock left13:10
Dougie187 joined13:11
ivan_ Maybe I can unistall git and atom and then try again13:11
How can I completely uninstall git?13:11
(I'm trying with Sublime)13:12
piggah left13:13
IanLiu joined13:13
ecuanaso left13:15
alwyn Does it work with vim?13:17
fission6 left13:17
alwyn If it works with vim or nano, you should probably really ask in #atom13:17
ivan_ Ok, with sublime everything works fine13:17
So it's definitely Atom13:18
RougeR joined13:18
ivan_ Thank you guys, I'm sorry to be so noob :P13:18
mborgard joined13:18
gareppa left13:19
jready joined13:19
Strepsils left13:20
negaduck joined13:20
Es0teric joined13:20
rongjunxue left13:24
tarkus left13:25
weijin joined13:25
freimatz joined13:25
cdg joined13:26
kn-928 joined13:26
kurkale61 left13:28
kurkale6ka joined13:28
weijin left13:29
ecuanaso joined13:30
muricantrump joined13:32
duckydan left13:34
s17 i was in a branch 'branch-a' and edited some files, then commited them. i changed to a new branch 'branch-b' edited some files and pushed, yet it included the changed files from branch-a. what am i doing wrong13:36
rfuentess ivan https://help.github.com/articles/associating-text-editors-with-git/13:36
rvgate joined13:36
johnflux_ joined13:36
shinnya joined13:37
mckendricks joined13:38
rfuentess left13:39
stutter_ joined13:39
Asenar s17, how did you switch to a new branch ? with `git checkout -b branch-b` ?13:40
kingarmadillo joined13:40
ecuanaso left13:40
garo left13:41
stutter_ left13:41
stutter_ joined13:41
Asenar if yes, that's a normal behavior : you are on a new branch, based on the previous one. If you wanted to create an other branch which start from somewhere else, you need to use `git checkout -b newbranch <somesha1>`13:41
garo joined13:42
noteness joined13:43
ecuanaso joined13:43
dreiss joined13:43
AndresInSpace joined13:44
jstein_ joined13:44
jstein_jstein13:44
Gotham25 left13:45
kingarmadillo left13:45
Sasazuka left13:45
daidoji70 left13:46
ivan_ left13:46
escproxy left13:46
Es0teric left13:46
daidoji joined13:46
sammyg left13:47
oxymoron93 left13:48
Es0teric joined13:49
navidr left13:50
semicolon left13:52
CheckDavid joined13:55
weijin joined13:58
Sokol left13:59
dreiss left14:00
fran__ joined14:01
CodeSlingerPaul joined14:01
zivester joined14:02
dviola joined14:02
weijin left14:02
s17 i was in branch-a, it already existed, then, yes, to go to new branch "git branch -b ..."14:03
would it be better to switch back to master first?14:03
before branch -b14:03
osse no14:04
no_gravity joined14:04
kingarmadillo joined14:04
s17 ok, i'll remember about the sha hash14:04
thanks14:04
shinnya left14:05
osse if you go back to master then branch-b will be the same as master initially14:05
unless you give a hash14:05
garo left14:05
fran__ left14:05
no_gravity Hello! One of my coders get 'unpack error' when trying to push. Any ideas what that means?14:06
jungsubk left14:06
jottr left14:06
garo joined14:06
amosbird left14:07
weijin joined14:07
amosbird joined14:07
orbyt_ joined14:08
zeroed left14:08
s17 well, that's what i wanted. i wanted to edit the files from master but in a new branch and not include the edits from some other branch which has not yet been pushed14:09
hmoreno joined14:09
osse then all these do the same:14:10
kingarmadillo left14:10
osse git checkout -b branch-b master14:10
git checkout master; git checkout -b branch-b14:10
YuGiOhJCJ left14:10
osse git branch branch-b master; git checkout branch-b14:10
git checkout master; git branch branch-b; git checkout branch-b14:11
probably some more :p14:11
weijin left14:11
cYmen How do I look at the diff of a file that I also renamed?14:12
escproxy joined14:13
osse git diff --find-renames14:13
jstimm joined14:13
cYmen osse: hm...doesn't seem to work14:14
just show one file as empty14:14
raffo joined14:14
cYmen which filename do I pass? old or new?14:14
orbyt_ left14:14
Asenar s17, you can either switch to master branch, or do `git branch otherbranch master` : this will create a new branch called «otherbranch» and make it start to «master». Then go on that new branch with `git checkout otherbranch`. But this can be achieved with one command : `git checkout -b otherbranch master` : create the branch «otherbranch» at the same start of master, and go to it14:15
osse cYmen: easiest is to pass none14:16
Asenar cYmen, maybe this will works : `git diff --follow path/to/files`14:16
osse cYmen: ah, you might need to stage the changes and use git diff --staged14:16
dreiss joined14:17
Asenar and yes, if changes are already staged you need --staged, or `git diff HEAD --follow path/to/file`14:17
greggerz joined14:19
Oatmeal left14:19
Ranhir joined14:19
noteness left14:21
garo left14:22
mckendricks left14:23
garo joined14:24
rafasc joined14:25
no_gravity Before I merge a commit, how can I know if it will be a fast forward merge?14:25
grawity do you need to know upfront, or do you need to force one or the other?14:25
no_gravity Well, I only want fast forward merges.14:25
jready left14:25
Asenar you can do `git merge --ff-only`14:25
no_gravity To have a nice and clean history.14:25
Asenar: What will that do if it's not a ff merge?14:26
s17 Asenar, osse: thanks14:26
kingarmadillo joined14:26
skywater left14:26
Asenar It will be rejected and tell you it's not possible14:26
no_gravity Asenar: Nice, thanks.14:26
grawity it'll say it cannot fast-forward something that does not in fact go forward14:26
Asenar `git config --global branch.master.mergeoptions "--no-ff"`14:26
abba left14:26
Asenar to set it by default for master14:27
grawity to test before merge,vgit merge-base --is-ancestor HEAD <the-merge-source>14:27
Crypt0x joined14:27
ronator joined14:27
kneeki joined14:27
rafasc if it's a tracking branch git remote show origin will tell if a branch it's fast-forwardable14:27
s/it's/is/14:28
no_gravity Asenar: 'fatal: Not possible to fast-forward, aborting.' - now how do I get an info why it's not possible?14:28
boombatower joined14:29
grawity there's only one reason14:29
boombatower left14:29
grawity the two branches have diverged14:29
Asenar When a fast forward is not possible, this is always for the same reason : the branch you try to merge has diverged before the current branch14:29
boombatower joined14:29
garo left14:29
no_gravity Asenar: I'm not merging a branch. I merge a commit that I fetched from a remote repo.14:29
grawity that's the same thing14:30
Asenar that means you have to rebase the other branch before14:30
weijin joined14:30
no_gravity Asenar: 'The other branch'?14:30
Asenar: There is only master.14:30
No other branches.14:30
Asenar You can think about remote repository and remote branch as any other local branch14:30
kingarmadillo left14:31
grawity if you're merging something, it's still a branch, whether named or nameless14:31
garo joined14:31
no_gravity Ok, but the commit I want to merge is the commit after the current commit.14:31
Asenar in fact, `master` is a branch, `origin/master` is an other branch. So I think what you want is to apply your work in your master local branch after the origin/master branch.14:31
no_gravity What has diverged?14:31
Asenar For this you can do, if your current branch is `master`, the following : `git rebase origin/master`14:32
zeroed joined14:32
grawity run 'tig HEAD..thatcommit' and 'tig thatcommit..HEAD' to see14:32
Asenar a rebase «cut» your branch, and paste it at the end of the new base you want.14:32
grawity Asenar: I think you're reading this the other way round...14:32
to1ne`` left14:32
no_gravity grawity: tig?14:32
grawity or any history viewer; gitk works14:33
no_gravity I only use git.14:33
I want to learn all about git first.14:33
wandering_vagran left14:33
Fysicus left14:33
madewokherd left14:33
Fysicus joined14:33
_ikke_ tig is tui (text user interface) for git14:33
rafasc no_gravity: gitk is bundled with git.14:33
Asenar you can try to display the git log with graph, like this command : `git log --graph --date-order --all --pretty=format:'%C(auto)%h%Creset %C(auto)%d%Creset %s %C(green)(%ad) %C(bold cyan)<%an>%Creset'`14:34
no_gravity rafasc: bash: gitk: command not found14:34
fission6 joined14:34
rafasc forgot to say usually14:34
bremner many distros split git into several packages14:34
and windows is probably special in its own way14:34
tvale left14:34
weijin left14:35
no_gravity Asenar: About the rebase.. do you mean 'git rebase <hash-of-the-commit>'?14:35
grawity first lesson of git: third-party tools still have the git nature and should not be avoided14:35
to1ne`` joined14:35
grawity hell, most of core git used to be a thirdparty "cogito" packagr.14:35
howlymowly left14:36
grawity as for rebase, the other way around14:36
check out that commit, git rebase master, write down the new head commit, check out master, merge the new commit14:36
but only after you've actually taken a look at the history and figured out what is going on14:37
no_gravity grawity: What do you mean by 'check out that commit'?14:37
grawity as in git checkout...14:37
anyway, for pure git, you can use git log --oneline --decorate in place of tig/gitk above14:37
IndianArya joined14:37
no_gravity grawity: You mean 'git checkout <hash-of-that-commit>'?14:37
grawity errrrr14:37
also with --graph14:37
yes, that's what I mean14:37
no_gravity grawity: I can check out a commit I have not merged yet?14:37
Asenar no_gravity, the master branch of the remote repository has 1 commit. Your local master branch has also 1 commit: that means the 2 branch named «master» (local and remote) has diverged. So you have 2 (3) choices : the easiest is to do a merge, but this might create another commit14:38
grawity second lesson of git: all commits are like nameless branches, because branches are really just commit names14:38
Asenar the second one (what you try to do) is to rebase your work at the top of the remote master (`git rebase origin/master`)14:39
no_gravity grawity: 'git checkout <hash-of-commit>' gives me a rather long text output. Starting with "You are in 'detached HEAD' state."14:40
czart joined14:40
Asenar and the 3rd one, if the remote repository is private and you don't care about keeping history, is to do a `git cherry-pick origin/master` (that will take the changes of the remote commit and apply it to your local branch). But it's not a good practice and you need additionnal work to make the remote and local synchroed again14:41
synthroid joined14:41
skywater joined14:42
synthroi_ joined14:42
no_gravity Asenar: I don't get where the two repos have diverged and why I cannot fast forward merge the commit.14:42
govg left14:42
no_gravity Asenar: The last commit in the remote repo before it was the current commit in the local repo.14:42
Asenar are you the only one to work on that repo ?14:42
is that a public repo ?14:42
is it*14:43
no_gravity Asenar: No. It's a remote repo where 2 coders push to.14:43
metalraiden34 left14:43
metalraiden34 joined14:44
czart_ left14:44
rexan left14:44
govg joined14:45
alezandro joined14:45
Asenar So, coder1 and coder2 got the repo with `git clone`. So their both repositories are at the same point. Coder1 added a commit by `git push origin master`. coder2 did the same, but his push has been rejected because the remote repository has evolved.14:45
RougeR left14:45
synthroid left14:45
no_gravity Asenar: No14:46
Asenar Is your repo confidential ? if not, you can give us the result of this command in a pastebin link ? `git log --graph --date-order --all --pretty=format:'%C(auto)%h%Creset %C(auto)%d%Creset %s %C(green)(%ad) %C(bold cyan)<%an>%Creset'`14:47
RougeR joined14:50
alezandro left14:50
tvale joined14:50
synthroi_ left14:50
govg left14:50
weijin joined14:51
rorro joined14:51
Asenar no_gravity, if you can't do a `git merge --ff-only`, the only reason is the branches has diverged.14:51
no_gravity One moment, telephone.14:52
Asenar If you usually do `git pull` to synchronize your local repository with the remote one, you might solve your problem with `git pull --rebase`14:52
Kaisyu left14:53
m1n joined14:55
fairuz joined14:55
ferdna joined14:56
f2k left14:56
Crypt0x left14:56
linuxmodder left14:57
weijin left14:58
sleepingforest joined15:00
Oatmeal joined15:01
jottr joined15:03
m1n waiting for the "objects" to finish "unpacking" on this crap wifi. Is there a way to completely scrub a 25Mb file from the entire history so it doesn't download it when anyone clones? (no one else has cloned)15:03
Shin_Aska joined15:03
m1n this repo isn't even very big. I think I broke the repo. I think I am just going to delete the repo. It's stuck15:04
sleepee joined15:04
grawity a couple of ways, e.g. !bfg, or git filter-branch, or git rebase15:04
gitinfo A tool designed to remove large files, or passwords from history: https://rtyley.github.io/bfg-repo-cleaner/ (!rewrite applies)15:04
sanscoeur left15:04
IndianArya left15:04
m1n that's for removing parts of files, no?15:04
palmtree left15:04
m1n or is bfg for entire files?15:04
grawity mainly the latter, but it doesn't make any difference to Git repos15:04
either way you are rewriting part of the commit history15:04
(and in all cases you'll have to `git push --force` the rewritten stuff)15:05
metalraiden34 left15:05
metalraiden34 joined15:05
Mike11 joined15:05
m1n it finally unstuck itself after waiting for 10 minutes for ... one object that wasn't even very big. Ok thank you so much, grawity. I shall look into this, as I am just going to host the videos on youtube, rewrite the history and be merry15:06
linuxmodder joined15:06
hmorenomorenoh14915:07
m1n I was actually trying to push a compressed 31 minute 112Mb file to github, and github, rightfully so, yelled at me for the file size @_@ just unnecessary and stupid. Time to rewrite history! hehe literally..15:07
RougeR left15:07
jottr left15:08
metalraiden34 left15:08
durham joined15:09
jottr joined15:09
moritz rewrite history to a version where github never yelled at you!15:10
zlsyx joined15:10
jready joined15:10
metalraiden34 joined15:10
garo left15:10
garo joined15:12
madewokherd joined15:13
tvale left15:14
Asenar mhhh, I need to do something weird in git : I want to switch to an existing branch, but keeping the actual version of my files. I don't think there is a command for that, so I will probably do some tmp branch for this15:14
m1n gentle ladies, men, everyone else: We have successfully rewritten history. That, my friends and foes, is one small step for me yet one giant leap for this project. I'd like to thank academy and, in particular, grawity, who helped me realize my goals before even I could see what the end result should be. Thank you, all!15:15
tvale joined15:16
garo left15:16
m1n left15:16
IndianArya joined15:17
weijin joined15:17
alezandro joined15:17
garo joined15:17
tkore\w left15:18
jottr left15:18
MartyH left15:19
Asenar no_gravity, I hope your problem is solved ^^15:19
crose joined15:19
al-damiri joined15:19
zeroed left15:20
no_gravity Asenar: That was a long phone call. Now I'm back. Problem not solved :)15:21
grawity no_gravity: have you looked at the git log yet15:21
weijin left15:21
no_gravity Asenar: I really would like to figure out how the branches are supposed to have diverged.15:21
grawity: How do you mean?15:22
grawity like, what I offered quite a while ago, when you first asked "how can they possibly be diverged"15:22
let's say you were on master, trying to merge commit xyz15:22
so look at `git log --graph --oneline --decorate xyz..master`15:23
jottr joined15:23
no_gravity grawity: what is 'xyz' here?15:23
grawity the commit ID?15:23
Ishtv4n left15:24
zeroed joined15:25
Asenar If there is no sensitive data, you can you copy/paste the output of grawity command to http://vpaste.net/ and give us the link15:25
kn-928 left15:25
Asenar xyz might be `origin/master`15:25
no_gravity grawity: That outputs something ... it looks like this: * <somehash?> (HEAD, <someRepo>/master, master) <comment of the last commit both repos have in common>15:25
Ishtv4n joined15:25
grawity that means xyz *is not* a descendant of the master branch15:26
which you claimed earlier that it is15:26
no_gravity What is a 'descendant of the master branch'?15:26
Asenar Maybe this command will be simplier : `git log --graph --oneline --decorate --all -5`15:26
linuxmodder left15:26
grawity 17:31 <no_gravity> Ok, but the commit I want to merge is the commit after the current commit.15:27
weijin joined15:27
garo left15:27
no_gravity grawity: Yes, it is.15:27
rvgate left15:27
amatas left15:27
grawity but your log output says otherwise.15:27
no_gravity grawity: When I do 'git log', I see a commit with hash H1. And H1 is the commit that is before commit xyz in the remote repo.15:28
grawity do you mean you see it as the topmost commit in the log?15:28
no_gravity grawity: Yes15:28
jottr left15:28
grawity how did you determine the latter part, "H1 is the commit that is before commit xyz in the remote repo"?15:29
Asenar no_gravity, can you copy/paste the output into vpaste.net (or something else). If log messages contains things you don't want to share, remove them15:29
no_gravity grawity: Same hash.15:29
grawity same hash as what?15:29
garo joined15:29
grawity that is, what tools and/or commands did you use to find out that it's "before" commit xyz?15:29
Asenar `git log --graph --oneline --decorate --all -5`15:29
peacememories joined15:29
grawity what output are you basing that on?15:29
jottr joined15:29
no_gravity grawity: When I do 'git log' in the local repo, I get these commits: D C A. When I do it in the remote repo, I get these: F E D C A.15:30
grawity: Each letter stands for a hash here.15:30
grawity: I did 'git fetch remoteRepo' locally. And now I want to merge commit D.15:30
grawity: correction: When I do 'git log' in the local repo, I get these commits: D C A. When I do it in the remote repo, I get these: F E D C B A.15:30
Damn.. once again :)15:30
grawity: correction: When I do 'git log' in the local repo, I get these commits: D C B A. When I do it in the remote repo, I get these: F E D C B A.15:31
grawity that's not a sufficient check, since history can be non-linear; in the default flattened `git log` output, it doesn't mean that E is actually after D15:31
they could be in different history lines15:31
no_gravity grawity: How can I figure that out?15:31
grawity use `git log --graph` at minimum15:31
Asenar An text output of git log --graph --all would really be useful15:31
ferdna left15:31
weijin left15:31
Asenar `git log --graph --all --decorate`15:31
no_gravity Ah! 'git log --graph' shows that in the remote repo, there is a merge commit between D and E.15:33
That is not in the local repo.15:33
grawity from your description, your local repo is at D, and you're trying to merge E?15:33
no_gravity grawity: Yes15:33
Now what is that merge commit between D and E?15:34
alezandro left15:34
alezandro joined15:34
no_gravity Looking at it with --stat it contains no files.15:34
What does it do?15:34
grawity it merges the two history lines15:34
weijin joined15:34
Asenar so it's a merge commit.15:34
no_gravity grawity: But both were at D before. What does it merge?15:35
immune2iocane joined15:35
grawity I can't possibly tell without seeing some part of the relevant history graph15:35
no_gravity grawity: Shouldn't the merge commit contain some info on what it does?15:35
Asenar no_gravity, we can't really help you without seeing logs, just remove the text messages15:35
grawity it does, and `git log --graph` shows that information15:35
Asenar if you don't want to display them15:36
grawity it will probably be clearer if you add --oneline, or use `tig` or `gitk` or other such graphical tools15:36
no_gravity grawity: It only says "Merge branch 'master' of <remoteRepo>".15:36
grawity the merge commit is marked with *, and has two lines going down to various other commits15:36
no_gravity grawity: true.15:36
Now how do I merge E?15:37
Asenar grawity, all commit are marked by a *15:37
grawity each line represents a branch (possibly unintentional, but a branch nevertheless)15:37
johnflux_ left15:37
Asenar oups, sorry (your nicknames are too close!)15:37
RougeR joined15:37
grawity and they're basically the reason why fast-forward is not possible15:37
kingarmadillo joined15:37
grawity because D -> E doesn't go "forward"; they're on different roads entirely15:38
no_gravity Ok, so local has these commits: D C B A. And remote has these: F E M D C B A. How do I merge up to E now?15:38
jottr left15:38
Asenar git log --abbrev-commit can also be a good idea15:38
Thominus left15:38
muricantrump left15:38
Asenar git log --abbrev --oneline --graph --all15:38
grawity so a fast-forward merge will be impossible in the current state15:39
Asenar git log --abbrev --oneline --graph --all --decorate15:39
weijin left15:39
muricantrump joined15:39
Thominus joined15:39
no_gravity grawity: Should I merge the merge commit too?15:39
Asenar With that command, you will understand why it's not possible.15:39
I think the best option is to do `git rebase origin/master`15:39
grawity no_gravity: I'm guessing it'll be your best option15:39
tarkus joined15:40
ZexaronS joined15:40
jottr joined15:40
grawity then again I still can't do much better than guess15:40
no_gravity grawity: Like this 'git merge <hash-of-merge-commit>'?15:42
jelmer joined15:43
Sonderblade joined15:43
grawity before you do that, use `git log <hash-of-D>..<hash-of-merge-commit>` to see what you're bringing in -- it might be more than just E15:43
Thominus left15:43
no_gravity grawity: The merge commit will not bring in E. It's before E.15:44
seschwar left15:44
zefferno left15:44
Thominus joined15:44
palmtree joined15:44
grawity then you don't need to merge it explicitly, but trying to `git merge E` will automatically bring it in15:44
because your remote repo's history is a bloody mess15:44
rajpratik71 joined15:45
grawity `git log --graph <hash-of-D>..<hash-of-E>` in that case?15:45
dreiss left15:45
jottr left15:45
no_gravity Ok, I will try to simply merge E then.15:45
Es0teric left15:45
grawity if you absolutely need just E but not the rest of its history line, the other option is to use `git cherry-pick <hash-of-E>`, which creates a *new* commit with the same changes as E has15:45
no_gravity grawity: But then when I push to the remoteRepo next time, chaos will ensue, right?15:45
ch3pjw left15:46
alexpainen joined15:46
fairuz left15:46
Asenar I'm out of this conversation, blindly, we can't help more.15:46
no_gravity grawity: 'git merge E' seems to create *another* merge commit.15:46
rajpratik71 left15:46
grawity I'm of the opinion that chaos has already ensued15:46
no_gravity grawity: I wonder how.15:46
grawity I'm also of the opinion that you're deliberately trying to waste our time15:47
no_gravity ?15:47
weijin joined15:48
ronator left15:48
durham left15:49
hbautista joined15:49
cagomez joined15:49
rajpratik71 joined15:49
Asenar no_gravity, we asked you several times to copy the output of some log commands into http://vpaste.net so we can better understand your problem and find a solution, but you ignored us, as we are not (or at least, I m not) seers, we can't help you more15:49
cagomez left15:49
no_gravity grawity: Is that what you mean?15:50
rafasc yes15:50
cagomez joined15:50
no_gravity Well we *did* figure out what prevented the fast forward merge. There was a merge commit. And merge commits are not shown by default. That's why I did not see it.15:51
VibesYuth joined15:52
rafasc since when merge commits are not show by default?15:52
weijin left15:53
phluks left15:53
no_gravity rafasc: I did not see it in 'git log -p --reverse master..remotRepo/master'15:54
Circuitsoft joined15:54
Es0teric joined15:54
no_gravity rafasc: So I thought the topmost commit was the oldest new commit.15:54
dreiss joined15:55
jottr joined15:55
nedbat no_gravity: you should listen when people tell you, "You were hard to help, and we are not helping any more." Do what they say. Why didn't you want to pastebin the result of the commands?15:56
tvw joined15:56
rafasc probably !topsecret15:57
gitinfo If your situation is so secret that you can't tell us how to !reproduce it, there's really not much we can do. Perhaps you need to find or buy support you can trust? There are people with clearances even on #git but they may not want to identify themselves. However, you are protected by the biggest secret of all: We just don't care.15:57
AaronMT joined15:58
rajpratik71 left15:58
no_gravity It worked out just fine. My question was what prevents the ff merge and we figured out it was a merge commit.15:59
tarkus left15:59
jottr left16:00
nedbat no_gravity: you've frustrated a number of helpers here. I hope your next interaction works out better.16:01
crose left16:01
no_gravity Next time I will help somebody.16:01
jottr joined16:01
rajpratik71 joined16:02
Oatmeal left16:02
AndresInSpace I think he needs a rebase16:03
on his brain :O16:03
jk16:03
duckydan joined16:05
Ishtv4n left16:05
weijin joined16:06
Guest92986 left16:06
jottr left16:06
venmx left16:06
rorro left16:06
Oatmeal joined16:07
venmx joined16:08
MurkyLizard left16:08
rajpratik71 left16:09
Raging_Hog joined16:10
dreiss left16:10
novas0x2a|w joined16:10
synthroid joined16:10
weijin left16:11
Es0teric left16:11
jottr joined16:11
flaviodesousa left16:13
novas0x2a|w1 left16:13
alexpainen left16:13
joekeilty left16:13
IanLiu left16:15
Es0teric joined16:15
chaosruler joined16:15
oxymoron93 joined16:16
kurkale6ka left16:16
stutter_ left16:16
jottr left16:16
kurkale6ka joined16:17
linuxmodder joined16:17
weijin joined16:17
j7k6 left16:17
dmone left16:18
OathMoon joined16:18
jready left16:18
Acerific joined16:19
novas0x2a|w left16:20
freimatz left16:21
IndianArya left16:21
jottr joined16:21
OathMoon left16:21
weijin left16:21
tarkus joined16:22
IndianArya joined16:22
raynold joined16:23
garo left16:23
joekeilty joined16:24
hussam joined16:24
garo joined16:25
tvw left16:25
no_gravity left16:26
jottr left16:26
ringer1 left16:26
eshlox left16:30
weijin joined16:31
NerdyPepper left16:31
NerdyPepper joined16:32
tarkus left16:32
holodoc joined16:33
zeroed left16:33
sleepee left16:34
sammyg joined16:34
UTAN_dev joined16:34
weijin left16:35
jottr joined16:35
floppydh left16:36
thiago left16:36
stutter_ joined16:36
fission6 left16:36
kurkale6ka left16:38
garo left16:38
garo joined16:38
noteness joined16:40
weijin joined16:41
alwyn left16:42
IndianArya left16:42
jottr left16:44
weijin left16:45
jottr joined16:46
jayjo does anyone know from where in the repo github is pulling public activity? There are many places to get timestamps16:49
jready joined16:49
IanLiu joined16:52
sanscoeur joined16:52
zeroed joined16:52
RougeR left16:52
Asenar left16:53
tvale left16:53
Raging_Hog left16:54
durham joined16:56
oprypin left16:56
oprypin joined16:57
jayjo It looks like places like .git/logs/master don't hold all of the history16:57
do they (or gitlab, or whomever) aggregate from .git/objects?16:57
noteness left16:57
Shin_Aska left16:58
abba joined16:59
tvale joined17:00
khisanth__ left17:00
_ikke_ mostly packfiles17:01
peacememories left17:02
rominronin left17:05
rominronin joined17:05
palmtree left17:05
jottr left17:05
fission6 joined17:06
stoopbobstoopkid17:07
tarkus joined17:07
agowa338 joined17:08
staafl_ left17:08
tvale left17:08
joekeilty left17:09
veegee left17:09
rominronin left17:09
skywater left17:10
muricantrump left17:10
oxymoron93 left17:11
\void joined17:11
Acerific left17:11
wandering_vagran joined17:12
zeroed left17:13
energizer joined17:13
CtrlC joined17:13
weijin joined17:14
khisanth__ joined17:14
jready left17:15
jready joined17:15
gareppa joined17:15
dviola left17:15
weijin left17:18
durham left17:19
pfleck joined17:19
durham joined17:19
jready left17:20
agowa338 left17:20
Mike11 left17:20
hugdru joined17:21
Franckapik left17:21
Darcidride_ joined17:21
navidr joined17:22
Singmyr joined17:23
FrostCandy joined17:23
rexan joined17:23
skywater joined17:24
nowhere_man joined17:24
weijin joined17:24
arecaceae left17:24
Circuitsoft left17:25
arecaceae joined17:25
cebor left17:26
Cybergeek joined17:27
UTAN_dev_ joined17:27
tunekey joined17:28
linuxmodder left17:28
gareppa left17:28
weijin left17:29
moei left17:29
cebor joined17:29
rexan left17:30
muelleme joined17:30
UTAN_dev left17:30
jottr joined17:31
VibesYuth left17:34
VibesYuth joined17:34
VibesYuth left17:35
RougeR joined17:36
rominronin joined17:36
jottr left17:36
muelleme left17:36
garo left17:37
Anja joined17:39
garo joined17:39
Anja left17:40
IndianArya joined17:40
jottr joined17:41
rominronin left17:41
stutter_ left17:41
candle_ joined17:41
mel00010 left17:42
Random832 i'm confused, ff merges work just fine with merge commits17:43
_ikke_ ?17:44
cdown joined17:44
Random832 no_gravity's thing from a couple hours ago doesn't make sense17:44
peacememories joined17:45
jayjo how to git internally package a `git log` ? How would you have to modify a repo to modify the output of git log17:45
Random832 I don't know what he meant by "there was a merge commit", presumably either "there was a merge commit on the branch being merged into, ahead of the common base" (why is that different from a normal commit) or "there was a merge commit on the branch being merged from" (shouldn't be a problem)17:45
weijin joined17:45
dpyro joined17:46
YuGiOhJCJ joined17:48
sleepee joined17:49
jottr left17:50
stutter_ joined17:50
weijin left17:51
capin left17:51
jready joined17:51
capin joined17:52
capin left17:52
capin joined17:52
cdown left17:53
capin left17:53
negaduck left17:53
linuxmodder joined17:53
capin joined17:53
capin left17:53
sleepee left17:54
jungsubk joined17:55
Mattiaslndstrm joined17:55
kuzyn left17:55
RougeR left17:56
capin joined17:56
capin left17:56
capin joined17:56
synthroi_ joined17:58
Nizumzen joined17:58
cdg left17:58
rominronin joined17:58
mel00010 joined17:59
sleepee joined17:59
napping joined17:59
jottr joined17:59
duckydan left18:00
l3dx joined18:00
cstratak left18:01
synthroid left18:02
rominronin left18:03
Sasazuka joined18:03
jottr left18:04
marianab joined18:05
sleepee left18:05
linuxmodder left18:05
jottr joined18:07
noteness joined18:07
wootehfoot joined18:09
dansan left18:09
dansan_ joined18:09
NCS_One joined18:09
NCS_One hi18:09
is it possible to include filters in a push?18:10
agowa338 joined18:10
MarioBranco left18:11
_ikke_ nope18:12
linuxmodder joined18:12
_ikke_ filters are executed programs, it would be unwise to allow random code to be executed18:12
jottr left18:12
nowhereman joined18:13
escproxy left18:13
nowheremanGuest3216118:13
NCS_One you are right18:13
alexpainen joined18:14
nowhere_man left18:15
craftyguy left18:16
novas0x2a|w joined18:17
jstimm left18:17
Hello71 you can install the filter on the remote machine18:17
but that doesn't make sense18:17
MrMojit0 joined18:18
noteness left18:19
craftyguy joined18:19
rominronin joined18:19
weijin joined18:20
jottr joined18:20
NCS_One every time I clone this repo I'll have to remember to create the filters18:20
markus-k left18:20
Gianormagantrous left18:20
bocaneri left18:22
Oberon4278 joined18:23
Oberon4278 I deleted a branch, and now when I run 'git status' I see all the files there in the list, and no amount of updating or pushing and whatnot will clear them out.18:23
mel00010 left18:23
Oberon4278 Also every time I switch branches I get the full list of deleted files. What step did I miss?18:24
_ikke_ Oberon4278: how did you delete the branch?18:24
weijin left18:24
jottr left18:24
fahadash joined18:24
fahadash left18:24
fahadash joined18:24
fahadash left18:24
fahadash joined18:24
rominronin left18:24
Gianormagantrous joined18:25
Oberon4278 git branch -d <branch name>18:25
firegurafiku left18:25
Oberon4278 while in a separate, non-master branch18:25
_ikke_ Oberon4278: for the record, master is in no way special18:26
Oberon4278 ok18:26
good to know, thanks18:26
_ikke_ Just deleting a branch does not cause this18:27
What did you do before that? (or after?)18:27
Oberon4278 honestly I don't remember =\18:27
it probably involved one or more commits18:28
Es0teric left18:28
agowa339 joined18:28
ZexaronS left18:30
g00s joined18:30
Oberon4278 Oh wait, I see the problem. It's just a long list of changes not staged for commit. I just have to git add all of them.18:30
_ikke_ :-)18:31
agowa338 left18:31
rominronin joined18:31
cebor left18:32
cebor joined18:32
zarzar left18:32
Oberon4278 Yep, that did it. So, as a matter of style or best practices, should I include generated files like lex.yy.c?18:32
zarzar joined18:32
IndianArya left18:32
moritz o18:32
*no18:32
Oberon4278 ok thank you18:33
jottr joined18:33
moritz unless you want people to be able to compiler with yacc/bison installed18:33
JanC left18:33
JanC joined18:34
fran__ joined18:34
Oberon4278 Well, I am including the lex.l file, so they could compile it themselves. But lex.yy.c is the file that flex creates; sort of the a.out of flex.18:34
weijin joined18:35
codebam how can I make git read from gpg-agent so I don't have to enter my gpg key?18:36
when signing commits18:36
rominronin left18:36
lempamo_ joined18:36
grawity happens by default18:36
permalink joined18:36
grawity which gpg version are you using, and on what OS18:36
codebam I can test gpg-agent and it works fine inside the terminal but when I try to use git to sign a commit it still asks for my password18:36
peterR`` joined18:37
codebam grawity: void linux, gpg 2.2.5, gpg-agent 2.2.518:38
noteness joined18:38
codebam is it because git is using gpg118:38
goTAN joined18:38
_ikke_ codebam: most likely, yes18:38
codebam oh hmm, can I make git use gpg2, or will that break things?18:38
_ikke_ git config gpg.program gpg218:38
jungsubk left18:39
_ikke_ No, should work18:39
codebam cool, thanks!18:39
grawity git uses whatever `gpg` binary is in your path18:39
if that's still gpg v1.x in void, well18:39
_ikke_ (if that works, you probably want to set it globally)18:39
codebam cool, that works!18:39
and yeah I set it globally18:39
weijin left18:39
codebam thanks _ikke_ :)18:39
fran__ left18:39
goTAN left18:40
grawity that means Void is in fact behind Debian in terms of software freshness18:40
lempamo left18:40
LiftLeft joined18:40
codebam debian uses gpg too18:40
grawity yes, but debian uses gpg 2.x18:40
codebam gpg1 that is18:40
you sure, I was on debian sid like 5 days ago18:40
I just distro jumped18:40
grawity I'm on debian stable like 5 seconds ago18:40
codebam oh, okay. I believe you18:40
maybe they changed it and I didn't notice18:41
pfleck left18:41
codebam I think I had gpg inside my path as gpg218:41
grawity they changed it sometime late 201718:41
codebam anyways gotta go, thanks for the help18:41
peacememories left18:41
codebam right, I must have missed the change18:41
napping Is there a good way to insert an intermediate version of a file? I can reset or pause for amending in a rebase, but I'd like to leave the final version of the file alone18:41
jottr left18:42
napping The only thing that comes to mind is copying the final version off to the side before editing, but that's just stupid if I'm using git18:42
Es0teric joined18:43
grawity as in, you want to make certain changes in commit X, but so that they're again not present in X+1?18:43
napping Not really, I have commits X and X+1 which I like, but I'd like to stick in a version X+0.518:43
mixaz left18:43
rominronin joined18:44
ahf joined18:44
napping maybe write down a hash of commit X+1 and checkout the version from it?18:45
_ikke_ yes, that works18:45
m0viefreak joined18:45
_ikke_ git checkout <hash> <file>18:45
napping That's better than copying a backup to the side, at least18:46
nimomo joined18:46
jottr joined18:47
peacememories joined18:48
peacememories left18:48
muelleme joined18:48
noteness left18:48
grawity check out commit X; make a new commit X+0.5; run `git replace --graft X+1 HEAD`; check out master; if satisfied, run `git filter-branch X..` to bake, otherwise `git replace --delete X+1` to undo18:49
rominronin left18:49
grawity that's the most Git-est method of inserting a fake commit in the middle18:49
peacememories joined18:50
nimomo left18:51
tarkus left18:51
peacememories left18:51
jottr left18:52
lempamo__ joined18:52
nimomo joined18:53
rominronin joined18:54
lempamo_ left18:56
fission6 left18:57
immune2iocane left18:58
marianab left18:59
jottr joined18:59
rominronin left18:59
markus-k joined19:01
hugdru left19:01
rominronin joined19:02
cebor left19:02
tarkus joined19:03
duckydan joined19:05
jottr left19:05
noteness joined19:05
weijin joined19:06
pfleck joined19:07
cebor joined19:07
rominronin left19:07
Sonderblade left19:07
jnavila joined19:09
pfleck left19:09
pfleck1 joined19:09
weijin left19:10
mns how do I setup SSH so I can work with Git, through a proxy at work ?19:11
_ikke_ what kind of proxy?19:11
kingarmadillo left19:11
mns its a http proxy19:11
pfleck1pfleck19:12
_ikke_ Would be easier to use http then19:12
not ssh19:12
VibesYuth joined19:12
pfleck left19:12
pfleck joined19:13
mns git server does ssh only19:13
kingarmadillo joined19:13
_ikke_ git server?19:14
rominronin joined19:15
Darcidride_ left19:16
mns the server hosting teh remote git repo.19:16
hbautista left19:16
theskillwithin left19:17
yourfate joined19:17
theskillwithin joined19:17
noteness left19:17
cagomez left19:19
cagomez joined19:19
rominronin left19:20
immune2iocane joined19:21
_ikke_ You19:22
jottr joined19:22
_ikke_ you'd need some kind of http tunnel19:22
cagomez left19:24
jnavila left19:24
moei joined19:24
Es0teric left19:25
weijin joined19:26
jkphaze joined19:26
jottr left19:27
rorro joined19:28
rominronin joined19:28
codebam could you just change the ssh port to 443?19:28
abba left19:29
codebam because it would look just like TLS19:29
that's https though, not http19:29
jottr joined19:29
duderonomy joined19:30
weijin left19:30
escproxy joined19:31
tang^ unless you're in a network that can tell if traffice over port 443 is actually https or not19:32
bemo codebam: not sure it works that way (server would need an ssh daemon listening on port 443 for that to work)19:32
codebam bemo: oh yeah that's what I'm saying, if he controls the git server couldn't he just do that?19:33
bemo codebam: unless that's exactly what you were suggesting (change the server to listen for ssh connections on port 443)19:33
codebam but I guess that assumes he CAN do that19:33
rominronin left19:33
VoradorPT joined19:33
codebam bemo: yep that's what I was suggesting19:33
bemo I was assuming he didn't have any control over the server19:34
jottr left19:34
codebam yeah I guess that's more reasonable of an assumption19:34
alezandro left19:35
mlopezviedma joined19:35
duderonomy left19:36
rominronin joined19:36
Cavallari joined19:36
mborgard left19:37
g07 joined19:38
wandering_vagran left19:39
jottr joined19:40
rominronin left19:40
agowa339 left19:41
napping grawity: that's pretty gitty. Is there an option to make the new commit object without setting up the replacement?19:41
Maybe I need a little script around git-commit-tree ...19:41
bemo mns: your mileage may vary, but this looks like it's in the direction you're heading: http://meinit.nl/using-corkscrew-and-an-http-proxy-to-ssh-anywhere-through-firewalls19:41
cagomez joined19:42
duderonomy joined19:43
weijin joined19:43
duderonomy left19:44
piggah joined19:44
Nizumzen left19:46
crose joined19:46
weijin left19:47
jnavila joined19:48
noteness joined19:50
mns bemo: that will work, but when I"m not on the company VPN, it will still try to connect using teh ProxyCommand.19:50
tang^: I don't have control over the server.19:51
ugiti joined19:52
ugiti hey, I just committed a bunch of files. One of them should NOT have been commited. How can I get the old version back?19:53
that is, the previously committed version o that single file19:53
_ikke_ git checkout HEAD~ <file>19:53
ugiti of*19:53
HEAD~ means head - 1 ?19:54
_ikke_ yes19:54
ugiti thanks!19:54
pfleck left19:54
jstimm joined19:55
tango_ 2519:55
ehrm19:55
cagomez left19:55
moei left19:55
ugiti one more question, what's the best way to get a list of files changed in the latest commit?19:55
file names, that is19:55
cagomez joined19:56
moei joined19:56
_ikke_ git show --name-only19:56
synthroid joined19:57
agowa339 joined19:57
napping left19:58
codebam that's useful, didn't know about that19:59
I usually use git diff and scroll19:59
kh31d4r i usually use git show --stat19:59
synthroi_ left19:59
piggah left19:59
codebam that's nice19:59
cagomez left20:00
YuGiOhJCJ left20:01
sparr_ left20:02
sparr_ joined20:02
sparr_sparr20:02
mborgard joined20:03
ugiti _ikke_: that was a great command!20:04
cdg joined20:04
alezandro joined20:05
rokups left20:06
bemo mns: maybe you can define two different remotes, with slightly different server names and use the .ssh/config to figure out which proxy (or no proxy) to use... and then just switch to a different remote when you've moved locations? (I'm making this up as I go)20:06
cdg_ joined20:06
MACscr joined20:06
ugiti when I try your checkout command, I get error: pathspec 'file.txt' did not match any file(s) known to git20:08
it's definitely there20:08
cdg left20:09
kh31d4r ugiti: did you specify the whole path, or just the filename?20:10
ugiti oh, facepalm, thanks kh31d4r20:11
energizer left20:11
kingarmadillo left20:11
ugiti left20:12
noteness left20:12
hugdru joined20:13
escproxy left20:15
lupine so this `git clone` sits for more than 2 hours before receiving any bytes. the server side is busily creating a packfile to end all packfiles, and won't send a single byte of it until the whole packfile is done. is there a way to optimise it so we can start receiving bytes early, rather than late? the repo is, most unfortunately, 50GiB. very few refs20:16
Gurkenglas_ left20:16
candle_ left20:16
jkphaze left20:16
lupine we're erring on the side of just tarring up the repository and using https to download the archive for these difficult cases, but I don't want to *sob*20:17
weijin joined20:17
paxri01 left20:18
jkphaze joined20:18
navidr left20:19
Aelius joined20:19
Aelius I want to change autocrlf for a single local repository, is that possible?20:20
lupine to1ne``: yo20:20
_ikke_ Aelius: sure20:20
to1ne`` left20:20
metts left20:20
lupine Aelius: pop it in .git/config and all will be well20:21
cagomez joined20:21
Aelius so I did that, but I'm not sure how to... re-pull the files such that they will be processesd?20:22
l3dx left20:22
weijin left20:22
_ikke_ Aelius: No need to pull again20:24
Bobdude joined20:24
to1ne joined20:24
phluks joined20:24
jottr left20:24
rominronin joined20:25
_ikke_ recent versions of git (very recent) have git add --renormalize20:25
jkphaze left20:25
Aelius hmm, it turns out that wasn't the problem anyway. Windows just derpy. thanks though!20:26
tymczenko joined20:26
jkphaze joined20:26
yeshurun left20:27
kerrick joined20:28
kerrick Can I use .gitignore to ignore all future changes to a file that is already checked in?20:28
weijin joined20:28
kerrick I thought the answer was "yes", but looks like I'm wrong20:28
crose left20:29
kerrick I added the path to the file as a line in my root .gitignore but the file still shows up when I `git diff`20:29
rafasc .gitignore only ignore untracked files.20:29
!gitignore20:29
gitinfo [!gitignore_template] Github has compiled a set of good .gitignore templates, and licensed them very liberally. https://github.com/github/gitignore20:29
rafasc wrong one20:29
Nizumzen joined20:29
kerrick thanks rafasc20:30
_ikke_ !ignore_tracked20:30
gitinfo 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.20:30
rominronin left20:30
novas0x2a|w left20:30
cdown joined20:31
rafasc thanks _ikke_, was having problems finding the list.20:31
_ikke_ !triggers20:31
gitinfo Please don't spam me! I'm just a poor bot! Here's everything I know: https://gitirc.eu/bot/trigger.php -- that's a list of these nifty keywords like "!bot" that you can use in the channel, in case you were wondering.20:31
borkr left20:32
rafasc is there a command that would return matches for triggers?20:32
mondeydiver joined20:32
_ikke_ no20:33
weijin left20:33
rafasc would be nice to have something like /msg gitinfo !trigger tracked20:33
gitinfo [!triggers] Please don't spam me! I'm just a poor bot! Here's everything I know: https://gitirc.eu/bot/trigger.php -- that's a list of these nifty keywords like "!bot" that you can use in the channel, in case you were wondering.20:33
firegurafiku joined20:33
rafasc guess the link works too.20:33
Aelius left20:34
johnflux_ joined20:34
garo left20:34
yeshurun joined20:34
MrMojit0 left20:35
VibesYuth left20:35
garo joined20:36
jnavila left20:36
jottr joined20:37
synthroi_ joined20:38
madewokherd left20:38
rominronin joined20:38
stutter_ left20:38
lupine or can I tell `git-remote-https` to send tcp keepalives?20:38
i'll take pretty much owt at this point :D20:38
LionsMane joined20:39
stutter_ joined20:40
pfleck joined20:41
metts joined20:41
synthroid left20:42
rominronin left20:42
garo left20:45
garo joined20:46
newbie|8 left20:49
garo left20:51
rominronin joined20:51
ecuanaso left20:51
durham_ joined20:52
fairuz joined20:52
weijin joined20:53
garo joined20:53
synthroi_ left20:54
yeshurun left20:54
schleppel left20:55
durham left20:55
Guest73 left20:56
rominronin left20:56
durham_ left20:56
weijin left20:57
Guest32161 left20:57
Guest32161 joined20:57
IanLiu left21:00
jready left21:00
jready joined21:01
Cavallari left21:01
weijin joined21:02
alexpainen left21:03
yeshurun joined21:03
noteness joined21:05
garo left21:05
garo joined21:05
jready left21:05
rominronin joined21:06
mlopezviedma_ joined21:06
mlopezviedma left21:07
reprazent left21:09
weijin left21:09
yeshurun left21:09
jottr left21:09
yeshurun joined21:10
kuzyn joined21:10
garo left21:10
yeshurun left21:11
rominronin left21:11
jottr joined21:11
yeshurun joined21:11
garo joined21:12
Anja joined21:12
rominronin joined21:14
cahoots_ joined21:16
kingarmadillo joined21:17
shpoont_ left21:17
wootehfoot left21:17
rominronin left21:18
LionsMane left21:18
Anja left21:19
cahoots__ left21:19
surfist left21:19
kgrimes joined21:19
nowhere_man joined21:20
Guest32161 left21:20
stoopkid left21:21
jottr left21:21
Oberon4278 When I do git branch <new branch> on my local machine, and then do commits while I'm in that branch21:23
are those versions / commits / whatever saved locally?21:23
or do I have to do a push in order for the incremental updates I'm making to be saved permanently?21:23
avar They are saved locally, you don't need to push anywhere21:24
cahoots_ left21:24
malmalmal joined21:24
Oberon4278 ok21:24
oh my god I just had my mind blown21:24
I just looked at a file I made significant changes to, then switched to a different branch and looked at the same file21:25
and (obviously) it's the unedited version21:25
rominronin joined21:26
Oberon4278 how does that work? is git maintaining simlinks or something, and swapping them out when I do git checkout whatever?21:26
symlinks*21:26
avar Oberon4278: https://git-scm.com/book/en/v2/Git-Internals-Git-Objects21:28
alexpainen joined21:29
Cthalupa joined21:30
rominronin left21:30
Doginal left21:31
mattcen left21:32
immune2iocane left21:32
Oberon4278 Thank you!21:32
Doginal joined21:33
chaosruler left21:33
rominronin joined21:34
jstein left21:35
jready joined21:36
noteness left21:36
theology joined21:37
fairuz left21:37
mattcen joined21:37
j7k6 joined21:37
Doginal left21:37
weijin joined21:38
rominronin left21:39
j7k6 left21:40
j7k6 joined21:40
stoopkid joined21:40
jready left21:40
mborgard left21:41
menip joined21:41
menip left21:41
Doginal joined21:42
weijin left21:42
IanLiu joined21:42
Dougie187 left21:43
dreiss joined21:43
AndresInSpace left21:44
applecrumble joined21:44
rominronin joined21:45
atr3y0 joined21:46
surfist joined21:46
jottr joined21:48
cdown left21:49
cdown joined21:49
rominronin left21:50
Anja joined21:52
surial joined21:52
surial Given: git pull https://github.com/USERNAME/PROJNAME.git master (this is a pull request), when I run that, it tries to merge. I don't want that, I just want what the code was when they checked it in. it's something like git checkout -b someNewBranchname https://github.com/... but that isn't working21:52
greggerz left21:54
durham joined21:54
muelleme left21:55
dreiss left21:56
noteness joined21:57
kes left21:57
avar surial: If you `git fetch <url> <branch>` then the branch will be in FETCH_HEAD afterwards21:58
surial gracias.21:58
avar But why not just 'git remote add USERNAME https://.... && git fetch username`21:58
energizer joined21:58
durham_ joined21:58
stutter_ left21:59
garo left21:59
jottr left21:59
morenoh149 left21:59
durham left21:59
kes joined22:00
garo joined22:01
jungsubk joined22:01
rominronin joined22:01
dalias avar, i like the FETCH_HEAD approach because you don't accumulate junk remotes22:01
sat-aton joined22:02
sat-aton left22:02
sat-aton joined22:02
dege left22:02
IanLiu left22:02
sat-aton left22:02
dalias you don't even need to use symbolic FETCH_HEAD if you know the hsh of the remote commit you're interested in22:02
sat-aton joined22:02
sat-aton left22:02
sat-aton joined22:02
satifant left22:04
alezandro left22:06
madewokherd joined22:06
rominronin left22:06
weijin joined22:07
nimomo left22:07
nimomo joined22:07
alexpainen left22:07
rominronin joined22:08
garo left22:08
newbie|8 joined22:08
firegurafiku left22:10
weijin left22:11
miami joined22:12
habbah joined22:12
miami left22:12
fairuz joined22:12
rominronin left22:12
nimomo left22:13
UTAN_dev_ left22:14
agowa339 left22:15
habbah i was handed several user stories and told to do something about them. different stories involve different repos. several stories involve multiple repos. idea: have a single repo where each sub-directory is another git repo using either git submodules or git subtrees. we’re considering using github project boards and this would give us support for cross repository milestone and user story tracking.22:15
is this a good idea?22:15
stutter_ joined22:15
noteness left22:16
kes left22:16
durham joined22:17
garo joined22:17
rominronin joined22:17
alezandro joined22:19
applecrumble left22:20
UTAN_dev joined22:21
durham_ left22:21
jottr joined22:21
rafasc my opinion is no.22:22
rominronin left22:23
fairuz left22:23
dalias my opinion is never use subrepos unless you have to22:23
or submodules or whateve they're called22:23
fairuz joined22:24
habbah there is also https://github.com/ingydotnet/git-subrepo22:25
how do you track multi-repo milestones and user stories which rely on multiple repos?22:25
hugdru left22:26
dalias that's a matter of whatever tracker software you're using i guess22:26
Tobbi left22:26
asphyxia joined22:26
johnflux_ left22:26
noteness joined22:28
asphyxia left22:31
tarkus left22:31
rominronin joined22:33
gordonfish left22:33
gordonfish joined22:35
weijin joined22:36
rominronin left22:37
\void left22:37
phluks left22:38
YuGiOhJCJ joined22:38
tango_ left22:40
weijin left22:41
dpyro left22:41
jungsubk left22:41
AaronMT left22:41
hugdru joined22:41
venmx left22:42
noteness left22:46
rominronin joined22:48
dpyro joined22:48
CodeSlingerPaul left22:49
Bobdude left22:49
g00s left22:49
Silenced joined22:50
muelleme joined22:52
thiago joined22:52
noteness joined22:52
rominronin left22:53
weijin joined22:53
jready joined22:55
jottr left22:55
alezandro left22:55
sammyg left22:55
MoziM left22:55
rorro left22:56
capin left22:57
muelleme left22:57
weijin left22:57
capin joined22:57
capin left22:58
capin joined22:58
troulouliou_div2 joined22:58
sanscoeur left22:59
malmalmal left22:59
sanscoeur joined22:59
jready left22:59
hugdru left23:01
noteness left23:01
tango_ joined23:03
CheckDavid left23:03
rominronin joined23:03
finalbeta left23:04
NCS_One left23:04
peterR`` left23:05
noteness joined23:06
doug16k joined23:06
_ikke_ left23:07
rominronin left23:08
bolovanos left23:10
RougeR joined23:10
afuentes left23:11
rominronin joined23:11
FrostCandy left23:11
nahtnam joined23:11
YuGiOhJCJ left23:12
YuGiOhJCJ joined23:12
weijin joined23:13
ecuanaso joined23:14
duderonomy joined23:14
Guest73 joined23:14
LichtMacher joined23:14
rominronin left23:15
duderonomy left23:16
weijin left23:17
cdown left23:18
morenoh149 joined23:18
tango_ left23:19
_ikke_ joined23:20
troulouliou_div2 left23:20
noteness left23:20
cdown joined23:21
thiago left23:21
LichtMacher left23:22
tymczenko left23:22
rominronin joined23:23
bittyx left23:24
immune2iocane joined23:24
Guest73 left23:25
weijin joined23:25
cdown left23:26
shinnya joined23:26
tango_ joined23:27
ecuanaso left23:27
rominronin left23:27
stutter_ left23:28
Bobguy joined23:28
weijin left23:30
kostur86 joined23:32
Phylock left23:32
immune2iocane left23:32
Singmyr left23:34
rominronin joined23:34
bittyx joined23:35
nowhereman joined23:36
fairuz left23:36
nowheremanGuest1077523:36
nowhere_man left23:36
noteness joined23:38
alhariel joined23:38
rominronin left23:39
rafasc left23:40
learning joined23:41
hugdru joined23:42
linuxmodder left23:42
Bobguy left23:42
_ikke_ left23:44
ferdna joined23:45
dansan_ left23:46
zlsyx left23:46
kuzyn left23:47
noteness left23:49
durham left23:49
rominronin joined23:49
durham joined23:49
mythicalphoenix joined23:50
capin left23:50
capin joined23:50
stoopkid left23:51
capin left23:51
capin joined23:51
Milos joined23:51
weijin joined23:52
linuxmodder joined23:52
tre99 joined23:52
Strepsils joined23:52
tre99 does anybody manually change the date of their git commits so it looks better on your github profile?23:52
linuxmodder left23:53
linuxmodder joined23:53
jready joined23:54
rominronin left23:54
durham left23:54
cagomez left23:55
cagomez joined23:56
dreiss joined23:56
weijin left23:56
jottr joined23:56
durham joined23:56
capin left23:57
thiago joined23:58
noteness joined23:58
capin joined23:59
capin left23:59
jready left23:59

Logs Search ←Prev date Next date→ Channels Documentation