IRCloggy #git 2015-12-18

Logs Search ←Prev date Next date→ Channels Documentation

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

2015-12-18

dopesong joined00:00
fahadash joined00:00
jteneyck joined00:00
lindenle left00:00
madewokherd joined00:01
durham left00:01
hahuang65 joined00:02
enleeten left00:02
quizzi left00:03
ascarter left00:04
mi100hael left00:04
lindenle joined00:04
Zenith_ left00:05
jmpp left00:06
jimi_ joined00:07
pozitron joined00:08
encod3 joined00:08
erste left00:09
heroux left00:09
enleeten joined00:10
heroux joined00:10
pozitrono left00:10
quizzi joined00:10
durham joined00:11
samw joined00:11
kpease left00:12
cdg left00:12
ag4ve left00:12
dsdeiz joined00:12
dopesong left00:13
encod3 left00:13
italoacasas joined00:13
ril joined00:14
peoliye joined00:14
BillCriswell left00:15
durham left00:15
bb010g joined00:15
gitinfo set mode: +v00:15
durham joined00:16
_cyril__ left00:16
lindenle left00:16
wethu joined00:16
durham left00:16
TinkerTyper left00:16
_cyril__ joined00:16
garples joined00:17
jteneyck left00:17
abc123 joined00:17
italoacasas left00:18
abc123_ left00:19
abc123abc123_00:19
wethu Hi, I am having fun with git. Yesterday, I ran git pull origin some-branch on my feature branch. Now I'm trying to undo the merges caused by the pull. Immediately before pulling, i made a commit. I have found this commit in git reflogs and ran git reset --hard <sha>, however things aren't back to normal :( Someone able to point me in the right direction for why?00:19
menace left00:19
italoacasas joined00:19
codedmart left00:21
aidalgol How do I selective stash uncommitted changes?00:21
lindenle joined00:21
durham joined00:22
samw left00:22
hexagoxel left00:22
aidalgol e.g. I have changed to files foo.c and bar.c, and I want to stash them separately, so I can apply them separately later, because the two files are totally unrelated.00:22
hexagoxel joined00:23
jimi_ left00:25
gaen git stash save -p00:26
lindenle left00:27
gaen but I'd recommend to use temporary branches instead00:27
imho stash is good for simple operations and small amounts of changes, for more complex goals good old commits are more natural00:29
especially when you are expecting some conflicts on applying stashed changes00:29
lindenle joined00:30
otter768 joined00:30
CausaMortis left00:30
mizu_no_oto joined00:31
nilg joined00:31
gaen or, if you want to apply your changes later anyway, you can just commit them (in separate commits), do some more commits, and then use git rebase -i to put that two commits on top of your history00:33
espindol_ left00:34
lindenle left00:39
Limes_ left00:39
s8321414 left00:41
Aboba left00:42
nilg left00:42
lindenle joined00:43
_hs2000_ joined00:44
wethu left00:45
ril left00:46
lindenle left00:51
gaen left00:52
daito joined00:52
Puhe joined00:54
lindenle joined00:56
daito left00:57
fstd left00:59
fstd joined00:59
clemf left01:00
otter768 left01:00
xelxebar joined01:00
jmpp joined01:02
Faylite left01:02
leb left01:03
imachuchu left01:03
Guest63249 left01:05
alanwill joined01:05
nilg joined01:05
yqt left01:07
leb joined01:07
kilo_bravo left01:08
lindenle left01:09
nettoweb joined01:10
Lor_ joined01:10
wethu joined01:11
harish_ left01:12
dreiss left01:12
mingwandroid left01:12
nowhereman joined01:13
lindenle joined01:13
nowhere_man left01:13
HelloAtMega left01:15
MrWoohoo left01:15
s00pcan left01:15
under40min left01:17
under40min joined01:17
sangy left01:18
m0viefreak left01:19
eka_ joined01:20
nettoweb left01:21
Noldorin joined01:22
nidr0x left01:23
radsy left01:23
abc123_ left01:23
abc123 joined01:23
mizu_no_oto left01:25
tristanp left01:26
santi_ left01:27
Lyqyd joined01:27
lindenle left01:28
m_ben joined01:30
lindenle joined01:31
DavidDudson joined01:31
d4rklit3 left01:31
m_ben left01:32
joufflu joined01:32
encod3 joined01:32
frem left01:32
abc123 left01:32
kadoban left01:32
nnyk_ joined01:33
grootseun left01:33
grootseun joined01:33
abc123 joined01:34
jackburton joined01:35
samw joined01:35
espindola joined01:35
Sucks left01:35
jmpp left01:36
encod3 left01:37
kleops left01:37
diegoviola left01:37
phrozensilver joined01:38
samw left01:40
espindola left01:40
bitkiller left01:41
geomyidae joined01:42
phrozensilver_ left01:42
lindenle left01:42
nafg left01:43
otter768 joined01:44
Uptime left01:45
Uptime joined01:45
mellernoia joined01:45
lindenle joined01:47
dsdeiz left01:47
clemf joined01:48
abc123 left01:48
jimi_ joined01:49
mellernoia left01:50
abc123 joined01:50
_hs2000_ left01:52
skcin7 joined01:53
JanC left01:54
dsdeiz joined01:56
lindenle left02:00
Noldorin left02:03
lindenle joined02:03
tristanp joined02:03
wxg joined02:04
neanderslob left02:04
msonntag left02:04
arescorpio joined02:04
dsdeiz left02:05
neanderslob joined02:05
sgambino left02:05
lindenle left02:06
lindenle joined02:06
xaa left02:07
msonntag joined02:07
govg joined02:07
geomyidae left02:08
strayPuppy joined02:09
JanC joined02:09
Sasazuka left02:10
Sucks joined02:10
abc123 left02:13
abc123_ joined02:13
phrozensilver left02:14
govg left02:14
n00bdev joined02:16
lindenle left02:16
cmosguy left02:16
govg joined02:16
mablae__ joined02:16
krawchyk left02:16
tristanp left02:18
mablae_ left02:19
wethu left02:20
lindenle joined02:20
pks left02:20
durham_ joined02:22
pks joined02:22
wethu joined02:23
Vampire0_ joined02:23
tristanp joined02:24
clemf left02:24
tyll_ joined02:25
durham left02:25
daito joined02:25
durham_ left02:26
Vampire0 left02:26
tyll left02:27
SimonNaa joined02:27
leb left02:29
harish_ joined02:30
maze_ joined02:30
tristanp left02:30
mezod left02:31
SimonNa left02:32
_cyril__ left02:32
maze_ left02:32
jmpp joined02:32
tristanp joined02:33
lindenle left02:33
tristanp left02:36
abc123 joined02:36
lindenle joined02:37
sangy joined02:37
jmpp left02:38
abc123_ left02:38
abc123abc123_02:38
nurupo_ joined02:40
ssarah left02:40
relipse left02:41
jagob left02:41
mizu_no_oto joined02:41
nurupo left02:41
MistahKurtz joined02:41
nurupo_nurupo02:41
abc123 joined02:42
govg left02:42
abc123_ left02:42
abc123abc123_02:42
italoacasas left02:44
Chill_Surf left02:45
wxg left02:45
lindenle left02:46
toothrot left02:46
tristanp joined02:46
toothrot joined02:48
govg joined02:48
garples left02:48
lindenle joined02:50
abc123_ left02:51
abc123 joined02:51
ahr3n left02:54
derpvid joined02:55
derpvid left02:56
ome left02:57
tristanp left02:58
boombatower joined03:00
espindola joined03:00
espindola left03:00
skcin7 left03:01
rpdprd joined03:02
drbean_ left03:02
tristanp joined03:02
lindenle left03:02
drbean joined03:03
jteneyck joined03:05
jteneyck left03:05
jteneyck joined03:05
lindenle joined03:06
ril joined03:07
rilril[away]03:08
wallyduchamp left03:11
sleezd_ joined03:13
jmpp joined03:14
jason237 joined03:15
phrozensilver joined03:15
kadoban joined03:17
lindenle left03:18
nurupo_ joined03:20
nurupo left03:20
nurupo_nurupo03:21
abc123 left03:22
abc123_ joined03:22
Goplat joined03:22
lindenle joined03:22
Sucks_ joined03:23
Sucks left03:23
ssarah joined03:25
nidr0x joined03:26
skcin7 joined03:27
skcin7 left03:28
dreiss joined03:29
skcin7 joined03:29
jimi_ left03:30
clemf joined03:30
clemf left03:32
dreiss left03:33
lindenle left03:35
pacbard left03:36
garples joined03:36
Lor_ left03:36
gfixler joined03:37
ril[away]ril03:38
lindenle joined03:38
rchavik joined03:38
ril left03:39
dreiss joined03:40
nidr0x left03:41
a3Dman left03:42
diogenese left03:43
diogenese joined03:44
abc123 joined03:44
a3Dman joined03:44
pacbard joined03:45
lindenle left03:47
abc123_ left03:47
abc123abc123_03:47
a3Dman left03:49
lindenle joined03:50
jagob joined03:50
abc123_ left03:52
daito left03:52
peoliye left03:52
abc123 joined03:52
jteneyck left03:53
vane- left03:54
jteneyck joined03:56
jteneyck left03:56
jteneyck joined03:56
lucasmezencio joined03:56
ome joined03:56
jteneyck left03:56
jteneyck joined03:56
jteneyck left03:56
jteneyck joined03:56
lucasmezencio left03:57
eka_ left03:57
mizu_no_oto left03:57
jimi_ joined03:57
a3Dman joined03:57
dstarh joined03:57
diogenese left03:58
jteneyck left03:58
mizu_no_oto joined03:58
diogenese joined03:58
lindenle left03:59
lindenle joined04:00
dreiss left04:02
mizu_no_oto left04:02
a3Dman left04:05
garples left04:06
smithbone joined04:06
n00bdev left04:06
sgambino joined04:06
alanwill left04:09
eka joined04:10
rpdprd left04:12
Puhe left04:14
DSH105 joined04:15
dstarh left04:16
mizu_no_oto joined04:16
danieli joined04:17
otter768 left04:18
a3Dman joined04:18
a3Dman left04:18
a3Dman joined04:18
zacg left04:19
boombatower left04:19
DSH105 left04:20
DSH105 joined04:20
terminal_echo joined04:21
yeshacker joined04:22
lindenle left04:23
aidalgol left04:23
joki left04:25
lindenle joined04:26
bb010g left04:28
joki joined04:29
Khadafi joined04:30
zhiwliu joined04:30
zhiwliu left04:31
_cyril__ joined04:32
_cyril__ left04:32
daito joined04:33
mehola joined04:33
Khadafi left04:35
crayon left04:35
rchavik_ joined04:36
mizu_no_oto left04:36
rpdprd joined04:37
mehola left04:37
wallyduchamp joined04:39
rchavik left04:39
Khadafi joined04:41
lindenle left04:42
terminal_echo left04:44
chucky_z left04:45
yeshacker left04:48
Khadafi left04:48
d4rklit3 joined04:48
msankhala joined04:48
Khadafi joined04:48
tarkus26172 joined04:49
CheckDavid left04:49
alanwill joined04:50
fahadash left04:51
mehola joined04:52
Sucks_ left04:52
Khadafi left04:53
danmulvey joined04:54
watabou joined04:59
danmulvey left04:59
dermoth left05:00
Yeomra left05:00
dermoth joined05:00
jimi_ left05:01
tpollard left05:02
Khadafi joined05:02
Lyqyd left05:03
Khadafi995 joined05:04
acetakwas joined05:05
joufflu left05:08
Khadafi left05:08
Khadafi995 left05:14
FireArrow133 left05:16
Manikandan joined05:16
ril joined05:17
acetakwas left05:19
skelterjohn left05:21
toothrot left05:21
ril left05:23
githogori left05:24
sgen left05:28
Khadafi joined05:29
sdothum left05:30
blackwind_123 left05:30
_cyril__ joined05:33
Sucks joined05:33
arescorpio left05:34
Khadafi left05:34
_cyril__ left05:34
ssarah left05:35
govg left05:35
Wetmelon joined05:35
settermjd joined05:37
kzisme joined05:37
ril joined05:38
molec joined05:39
MistahKurtz left05:40
rubyonrailed joined05:40
weox left05:42
elementalest left05:46
ssarah joined05:47
settermjd left05:48
devoldmx joined05:49
Manikandan left05:50
rchavik_ left05:51
Manikandan joined05:51
govg joined05:51
SimonNaa left05:52
elementalest joined05:54
ril left05:55
ayaz joined05:56
yeshacker joined05:57
ayaz left05:57
encod3 joined06:00
Sucks left06:04
ayaz joined06:04
ayaz left06:05
devhost left06:06
Flyingmana left06:06
sangy left06:06
nnyk_ left06:06
Flyingmana joined06:07
Lowell left06:07
rfv left06:07
ome left06:07
yoyoyo___ left06:07
ayaz joined06:07
keldwud left06:07
Manikandan left06:07
cstrahan left06:07
paperziggurat left06:08
MechtiIde joined06:09
yoyoyo___ joined06:10
Lowell joined06:10
paperziggurat joined06:10
encod3 left06:10
cstrahan joined06:10
rfv joined06:11
nidr0x joined06:11
OnkelTem left06:12
Khadafi joined06:13
molec left06:14
nadim left06:14
nadim joined06:14
phrozensilver left06:14
Khadafi left06:17
otter768 joined06:18
darkschneider left06:19
darkschneider joined06:19
encod3 joined06:20
wallyduchamp left06:20
Manikandan joined06:21
garples joined06:21
wallyduchamp joined06:21
Rynomster joined06:21
wallyduchamp left06:22
wallyduchamp joined06:23
otter768 left06:23
devhost joined06:27
under40min left06:28
hackel left06:28
encod3 left06:31
githogori joined06:33
_cyril__ joined06:33
zv Hi #git, I'm working on trying to pull in every change in a branch 'develop' that is not in a branch 'master' that touched the directory 'directory'. To do this I ran `git rev-list --reverse master..develop -- directory/ | git cherry-pick -n --stdin`. But I got a set of conflicts which seemed to encompass every change in develop. Can anyone tell me why this might be and what I can do to get the correct behavior?06:34
wxg joined06:34
_cyril__ left06:36
star_prone left06:36
star_prone joined06:37
PCatinean joined06:37
Rynomster why not just checkout master, then checkout directory from the develop branch... git checkout master && git checkout origin/develop directory06:39
ThomasLocke joined06:40
Khadafi joined06:43
star_prone left06:43
[cust] left06:45
Khadafi left06:45
kzisme_ joined06:47
kzisme left06:47
d4rklit3 left06:48
MechtiIde left06:51
Saturn812 is there a way to get a key over ssh? I need to do something with the repo on the other end of ssh. I have a key on my local machine. Remote machine is secure enough to enter credentials on it, but not secure to store a private key on it. Is there a work around? Using login/pass is annoying06:53
_ikke_ You can use agent forwarding06:54
peoliye joined06:54
_ikke_ ssh -A06:54
nnyk_ joined06:54
tristanp left06:55
Peaker left06:56
Peng Obviously, that means root/you on the remote machine can impersonate you while the connection with agent forwarding is still running.06:57
since .. that's the point06:57
tristanp joined06:58
Saturn812 _ikke_, thank you! I will look more closely into that.06:58
jceb joined06:58
peoliye left06:58
Saturn812 Peng, thanks for the warning. I understand a problem.06:59
Tronsha[UPA]Stefan07:00
Peng root/remote-you can't steal your keys over the connection, but they can obviousl call it to impersonate you while it's running.07:00
Saturn812 i assume it is also the case if multiple people login with the same username?07:01
thiago joined07:01
Motoko joined07:02
Manikandan left07:06
sgambino left07:06
rominronin joined07:06
_ikke_ yes07:07
Lunatrius left07:09
settermjd joined07:10
dopesong joined07:11
mac_ified left07:14
lb joined07:15
rishi left07:16
dopesong left07:16
rishi joined07:16
Manikandan joined07:18
roelmonnens joined07:22
acolson joined07:23
freimatz joined07:23
molec joined07:24
Peng It's anyone who has access to a socket in a directory owned by your user and chmod 70007:25
harish_ left07:25
anth0ny left07:27
anth0ny joined07:27
Anderson69s joined07:29
happy-dude left07:29
sparetire_ left07:30
drodger left07:30
star_prone joined07:32
drodger joined07:32
CausaMortis joined07:33
tvw joined07:35
wxg left07:35
_cyril__ joined07:36
_cyril__ left07:36
wxg joined07:36
Anderson69s left07:37
MrWoohoo joined07:38
skorgon joined07:38
MrWoohoo2 joined07:38
nnyk_ left07:40
eijk_ joined07:40
Motoko left07:43
Alienpruts joined07:43
Lunatrius joined07:44
thiago left07:45
fscala left07:48
skorgon left07:49
weox joined07:50
fscala joined07:50
zeroed joined07:51
rscata joined07:52
alexsystemf_- joined07:53
jnavila joined07:54
akiva joined07:55
dopesong joined07:55
Gamecubic left07:55
nvahalik left07:56
mariuscc joined07:56
Kulrak joined07:57
Kulrak left07:57
Kulrak joined07:57
cagedwisdom joined08:00
dopesong left08:00
Sceorem joined08:00
dopesong joined08:03
wwwald joined08:03
gypsymauro joined08:04
gypsymauro hi08:04
ThomasLocke left08:04
gypsymauro I'm managing many servers and on each of them I've some sh/python script , I want to keep that code versioned in a centralized place, what's the best way to achieve that?08:05
cagedwisdom left08:05
ThomasLocke joined08:06
watabou left08:07
dopesong left08:07
survi joined08:08
j416 gypsymauro: put it in a git repo08:08
thorsten` gypsymauro: It depends on the context, where to put the main git repo. It should be a place that can be accessed by all the servers you manage08:09
stonerfish left08:09
andschwa left08:10
survi left08:10
Balliad joined08:11
fees joined08:12
andschwa joined08:13
mahendra_ joined08:13
gypsymauro thorsten`: yes I'm thinking to a server accessible via ssh and a repo structure like repository/samba repository/zimbra repository/various and so on , maybe with some more complex structure like repository/samba/usermanagement , on a specific server maybe I need just the usermanagement part not the whole repository08:15
Seveas gypsymauro: configuration management thing like puppet or chef.08:15
git != deployments, git != config management.08:16
PHPanos joined08:16
neanderslob left08:17
PHPanos left08:17
drodger left08:17
BtbN joined08:17
neanderslob joined08:17
gypsymauro what I need isn't a config management or to deploy something, is to use git for versioning my spreaded script :)08:17
sonOfRa joined08:17
rominronin left08:18
cagedwisdom joined08:18
rominronin joined08:18
Seveas what you describe is not version control though. What you describe is deployments (and for a single file deployments and config management come quite close).08:18
you can still have it in a git repo, git is just not a very good transport for these things.08:19
drodger joined08:19
otter768 joined08:19
thorsten` gypsymauro: then, just put the scripts you have into a single git,and make it accessible by the machines you have08:20
gypsymauro: it really depends on your context, how 'accessible'. And it depends on the amount (and heterogeneity) of servers, whether you should directly use git or whether a bigger solution seems preferable08:22
("many servers" = 3 or 400?)08:23
gypsymauro thorsten`: about 6008:24
otter768 left08:24
astrofog joined08:24
msankhala left08:24
gypsymauro but they are really some little scripts , i already use etckeeper to keep versioned my configurations08:25
and is backuped on tape, just wondering if it's possible to have a "script" repository , something like a "in house" github :) as you see I've not a really clear idea of tool available for that08:27
kadoban left08:28
pR0Ps joined08:29
wethu left08:30
Hounddog joined08:31
tristanp left08:31
sazed joined08:31
Darcidride_ left08:31
Poppa joined08:32
thorsten` well, then just create such a repository and keep it in house :-)08:32
Darcidride joined08:32
thorsten` gypsymauro: git != github. Just create a repository, and place a bare clone of it ("git clone --bare …") somewhere in your network, where it can be accessed by all your servers08:33
SOLDIERz joined08:34
josuebrunel joined08:34
gypsymauro thorsten`: yes I know that is differnt, I saw there are some web interfaces to git , I saw this too: http://schacon.github.io/git/git-read-tree.html#_sparse_checkout but isn't the same of SVN's capability to extract only some files from a repository08:35
FeuerbachMilomir joined08:36
_cyril__ joined08:36
_cyril__ left08:37
thorsten` gypsymauro: 1) note, that you don't need a web-interface in order to have a distributed git setup, (and note that you never asked for a web interface), 2) you never asked how to extract only some files of a repository, and I don't see why you need it08:37
ChaoticEmergence joined08:38
encod3 joined08:40
msankhala joined08:40
oojacoboo left08:41
nbdy joined08:42
molec left08:43
Goplat left08:43
DavidDudson left08:43
_cyril__ joined08:45
ChaoticEmergence left08:46
sazed left08:48
skylite joined08:48
rkmylo joined08:49
ciampix joined08:49
dopesong joined08:49
gypsymauro thorsten`: I named github just to clarify a centralized repository concept, sorry, and yes I need to manage even a single file or folder from the repository, like svn does with sparse checkout, it seems git supoprt spare checkout too but not literally, it checkout all the repository in fact08:50
d3m0n joined08:50
encod3_ joined08:50
grawity it *downloads* the entire repository but *checks out* specific files08:51
in DVCSes these are separate things08:51
d3m0n Hey guys, I setup Git on GitLab awhile back has been sitting for a bit, I came back to update something and now the push doesn't seem to be going to GitLab's repo. There's no error either. How can I debug this and see where the upstream is going?08:51
gopar left08:51
grawity git remote -v, git config push.default, git config remote.pushDefault08:52
thorsten` gypsymauro: then just setup a central repository and make it accessible over ssh, what's the problem with that? And no, I don't see yet why you need this 'sparse checkout'08:53
acetakwas joined08:53
garples left08:54
encod3 left08:54
dopesong left08:54
drager left08:56
compac joined08:56
compac Hello08:56
d3m0n grawity: Is that for me?08:56
compac Can I rebase if I deleted the topic branch?08:56
nettoweb joined08:56
compac I have a situation like https://git-scm.com/book/en/v2/book/03-git-branching/images/perils-of-rebasing-2.png first pic08:56
drager joined08:57
troulouliou_div2 joined08:57
Manikandan left09:00
a3Dman left09:01
a3Dman joined09:03
PeterBooker joined09:04
MattMaker left09:05
wxg left09:05
a-l-e joined09:05
marcogmonteiro joined09:06
Rhonda left09:07
kurkale6ka joined09:08
drager left09:08
drager joined09:09
MattMaker joined09:09
pozitron left09:11
Alienpruts left09:12
Jackneill joined09:13
Wetmelon left09:13
Alienpruts joined09:14
Manikandan joined09:14
MattMaker left09:14
tarkus26172 left09:14
encod3_ left09:14
madewokherd left09:14
Manikandan left09:20
rkmylo left09:22
luke_penn joined09:22
chll joined09:22
David1977 joined09:23
astrofog left09:26
powered joined09:29
devoldmx left09:29
DavidDudson joined09:29
mhg joined09:30
rominronin giiiit09:32
in case : I want to run a script to fix file permissions every time files are written from a git repo to my working tree. where (which folder) do I place the scriptI want to run a script to fix file permissions every time files are written from a git repo to my working tree. where (which folder) do I place the script??09:32
strayPuppy left09:32
UniFreak joined09:36
David1977 robbyoconnor: as this is not a git question, more a bash/shell question..but you can place the script whereever you want it to have...just write that script properly with and use some parameters for it to point it to the correct direction09:36
UniFreak can I `git log` only specific line range?09:36
acetakwas left09:36
daito left09:36
David1977 rominronin: ^^ that was for you09:36
robbyoconnor: sorry for highlighting09:37
reim joined09:37
wxg joined09:37
rominronin David1977: I was thinking of the post-receive folder - is that the right place for automating script execution upon pulls?09:37
Peuc left09:37
David1977 ah, ok...now I see what you want. Sorry, can't help for that09:38
jast post-receive is a hook that runs on the server after you have pushed something to it09:38
UniFreak: I don't think there's an option for that09:38
rominronin: what kind of fixing do you need?09:38
nafg joined09:40
rominronin jast, I set file permissions before add/commit/push my initial commit. When I pull later, the file owner/group perms are not what was committed09:40
sorry09:40
when I CLONE to a new environment on the same server they are not the same perms09:41
jceb left09:41
SimonNa joined09:41
Anderson69s joined09:44
encod3 joined09:44
sbasso joined09:44
sbasso_ joined09:46
ffledgling What exactly is the git rev-parse command supposed to be used for? The description on the man page is confusing09:46
pantsman- joined09:46
Seveas rominronin: git doesn't care about file permissions other than the execute bit. What you're looking for is a post-checkout hook or potentially !xy09:46
gitinfo rominronin: Woah, slow down for a bit. Are you sure that you need to jump through that particular hoop to achieve your goal? We suspect you don't, so why don't you back up a bit and tell us about the overall objective...09:46
sbasso left09:49
luke_penn left09:50
d3m0n left09:50
clmsy joined09:51
Alienpruts left09:51
acetakwas joined09:52
Alienpruts joined09:55
dimi1947 joined09:55
jceb joined09:57
roxlu joined09:58
dimi1947 left09:59
averell joined09:59
marcelo__ joined10:00
marcelo_ left10:00
jost joined10:00
phantombeta joined10:01
nbdy left10:02
rnsanchez joined10:02
drager left10:02
luke_penn joined10:04
rominronin Seveas: I'm trying to create a working tree/staging environment of a drupal installation. the .git folder has ownership git:group10:04
I get errors when I git pull10:05
mhg left10:06
rominronin pertaining to permissions10:07
Unable to append to .git/logs/refs/remotes/origin/initial: Keine Berechtigung Von /opt/git/test10:07
DavidDudson left10:08
Sephyros joined10:08
Sephyros Hello10:08
gitinfo Sephyros: 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.10:08
MattMaker joined10:10
rominronin Seveas: ignore me, my remote was wrong :/10:10
dopesong joined10:11
akiva left10:12
Sephyros I have a git repo with 150 commits up to 2015-01-01 and another repo with 100 commts before 2015-01-01... same project, same folder but for some reason someone removed the repo at 2015-01-01 and started a new repo... if i copy paste and retain newer files (on hooks for example) i get the full repo... but... the SVN repo doesnt have older files... and when i do rebase git-SVN says that is already updated... if i commit something the older files will be com10:12
mited? without troubles?10:12
aard_ joined10:14
Nikhil_D left10:14
MattMaker left10:14
Nikhil_D joined10:14
zeroed left10:16
pluszak joined10:17
jceb left10:17
astrofog joined10:17
jds joined10:18
luke_penn left10:18
sazed joined10:18
otter768 joined10:20
zotherstupidguy joined10:22
localuser- joined10:22
acetakwas left10:24
dopesong left10:24
otter768 left10:25
silentz0r joined10:27
silentz0r hello git peeps, what's a good alternative to SourceTree (git GUI) on Linux? I've been using SmartGit and I'm not really happy wit hit10:27
nfk|laptop joined10:28
jagob left10:29
elsevero joined10:30
mhg joined10:32
Anderson69s left10:33
dopesong joined10:34
_ikke_ The only thing I know by name is git cola, but have no experience with it10:34
harish_ joined10:36
SimonNa left10:36
JanC left10:37
daito joined10:37
jost_ joined10:38
rominronin ok, sensible question: I wish to initiate a git push in a bash script, the command asks for a password. How do I provide the password in the script - I want the script to run from start to finish without stopping10:39
nfk|laptop left10:40
Stummi rominronin, you don't. Use ssh-keys10:40
daito left10:41
dopesong left10:42
troulouliou_div2 left10:42
rominronin Stummi: ty10:42
jost left10:42
Seveas and if the transport is https: use credential helpers.10:42
FeuerbachMilomir left10:43
Anderson69s joined10:44
lindenle joined10:45
acetakwas joined10:46
pluszak Hello folks, so my problem is like this. I have a project that was initiated with a copy of files by no history. I want to repair the history.10:46
Do I understand correctly that I should use git replace graft to create a new graft point?10:46
uglyandstupid joined10:48
uglyandstupid left10:48
ohmy joined10:49
ohmy hello everybody10:49
compac left10:49
ohmy i'm quite confused. suppose that i've just one branch in behalf of master and when i modify lets say a single file within my branch than i switch to my master branch git status shows the sadmac me file as being modified10:50
lindenle left10:50
notebox joined10:50
mikeybisbo left10:50
CareBear\ ohmy : then you did not commit your change before switching branches10:50
ohmy CareBear\: hello, no, my feeling is that as far as there's no conflict we can switch between branches without problem10:51
CareBear\ ohmy : that is correct, and everything that you have not committed is then kept in your worktree. the files in your worktree are not connected to branches10:52
JanC joined10:52
ohmy CareBear\: How to reproduce : Create a file in master, add/commit than switch to MyBranch modify the file (you can add it or not to the index) than switch to master (no warning is displayed), if i do cat README from within master i can see the change10:52
CareBear\: i've always thaught that they are connected to branches !10:53
CareBear\: this is why branches should have been designed non ?10:53
CareBear\ ohmy : only things that have been committed are connected to branches10:53
ohmy CareBear\: :( ok10:53
CareBear\ ohmy : uncommitted changes are just random files on your hardd disk10:53
ohmy CareBear\: thanks10:54
mkoskar left10:54
CareBear\ ohmy : commits are a central part of the git data model. I recommend reading the quick data model intro at http://peter.stuge.se/10:54
neanderslob left10:55
CareBear\ ohmy : until a change is committed it is not really part of the repository - only when the commit has been created does the change exist within the repo10:55
sazed_ joined10:55
pozitrono joined10:55
CareBear\ ohmy : sorry, full link is http://peter.stuge.se/git-data-model10:55
ohmy CareBear\: honestly i ran into some troubles by hasard10:56
CareBear\: thank you so much10:56
sazed left10:57
troulouliou_div2 joined10:57
pantsman- left10:57
Meow-J joined10:58
abc123 left11:00
dcpc007 left11:02
abc123 joined11:02
zmachine left11:02
zmachine joined11:05
acetakwas left11:05
nilg left11:07
sazed_ left11:08
xaa joined11:08
pozitrono left11:10
sbasso_ left11:10
Flyers joined11:10
ssarah left11:15
Flyers left11:15
Flyers joined11:15
pluszak the git replace docs say I can replace one commit with another. But how can I replace root with a commit?11:16
codedmart joined11:18
Sendoushi joined11:18
pluszak I have a repo starting with something like "Version 2.5" which is indeed version 2.5.1 from another repo but with modifications, I want to include that 2.5.1 in history11:18
alanwill left11:19
sazed_ joined11:20
abc123 left11:22
abc123_ joined11:22
raven-au left11:23
githogori left11:23
mquinevilmquin11:24
reim left11:25
githogori joined11:25
mkoskar joined11:25
colli5ion joined11:26
raven-au joined11:29
tristanp joined11:32
Sephyros <silentz0r> giggle, gitg ...11:32
I have a git repo with 150 commits up to 2015-01-01 and another repo with 100 commts before 2015-01-01... same project, same folder but for some reason someone removed the repo at 2015-01-01 and started a new repo... if i copy paste and retain newer files (on hooks for example) i get the full repo... but... the SVN repo doesnt have older files... and when i do rebase git-SVN says that is already updated... if i commit something the older files will be co11:33
mmited? without troubles?11:33
pluszak okay, git replace --graft11:33
Khadafi joined11:34
a3Dman left11:35
Kicer86 joined11:35
s8321414 joined11:36
a3Dman joined11:36
a3Dman left11:36
a3Dman joined11:36
githogori left11:37
mahendra_ left11:38
silentz0r I need something way more capable than gitg for code review & file / hunk / line staging11:38
mellernoia joined11:38
tristanp left11:38
Manikandan joined11:39
MattMaker joined11:41
jost_ left11:42
Seveas silentz0r: git add -p11:43
rominronin hi, so I followed the instructions here and I'm still getting asked for password: https://help.github.com/articles/generating-ssh-keys/11:43
:(11:43
LtHummus left11:43
osse rominronin: what does git remote -v say +11:43
star_prone left11:44
star_prone joined11:45
sebbel joined11:45
githogori joined11:46
MattMaker left11:46
raven-au left11:46
dopesong joined11:46
rominronin osse remote -v says origin ssh://git@dev.identum.at/opt/git/test.git (fetch & pull) - I'm hosting a repo on the same server that I'm on, so that may have an impact ?11:47
umm, do i need to create an rsa key for user 'git'?11:47
is that the issue?11:47
acetakwas joined11:48
sazed_ left11:48
osse how did you do Step 4 ?11:48
acetakwas left11:48
bitkiller joined11:48
UniFreak left11:48
sbasso joined11:49
acetakwas joined11:49
acetakwas left11:50
Sephyros left11:50
rominronin osse, step 4?11:51
I'm not using github11:51
osse that is why I am asking11:51
rominronin its a local repo,11:51
osse you need to do the equivalent thing for your server11:51
rominronin ah,11:51
osse basically add your pub file to /home/git/.ssh/authorized_keys11:52
dopesong left11:52
osse or something along those lines11:52
rominronin doh!11:52
ty osse11:53
mehola left11:53
abc123 joined11:54
abc123_ left11:55
abc123abc123_11:55
InfoTest joined11:55
Anderson69s left11:55
marcelo__ left11:58
marcelofr joined11:59
ag4ve joined11:59
settermjd left11:59
arup_r joined11:59
jost_ joined12:00
LtHummus joined12:01
ffledgling left12:02
nilg joined12:03
mhg left12:03
mhg joined12:04
mahendra_ joined12:04
uranellus left12:05
Gfle joined12:06
abc123 joined12:06
abc123_ left12:07
abc123abc123_12:07
Gfle left12:07
ffledgling joined12:08
arup_r left12:08
evilmquinmquin12:09
arup_r joined12:10
mizu_no_oto joined12:11
nfk|laptop joined12:11
jojovem joined12:12
ayaz left12:13
mhg left12:14
cbreak left12:15
mhg joined12:16
rorro joined12:17
nettoweb left12:17
pantsman- joined12:19
irqq joined12:19
cagedwisdom left12:20
cbreak joined12:20
otter768 joined12:21
rorro left12:25
rorro joined12:26
irqq left12:26
otter768 left12:26
shibly joined12:27
shibly left12:29
kurkale6ka left12:30
spykins joined12:30
_Vi left12:31
spykins Hello everyone…. i am having this error on my system “fatal: failed to expand user dir in: '~./gitignore' “ .. can someone please tell me what this means?12:31
nfk|laptop left12:31
osse spykins: change ./ to /.12:32
~. means the home directory of the user named . which doesn't exist12:32
spykins i am trying to clone a repo and that’s what i get12:32
osse it's probably a typo in your .gitconfig12:32
spykins yes..12:33
how do i reconfigure it ?12:33
abc123 joined12:33
spykins i tried to add a folder to gitignore12:33
Khadafi left12:33
spykins and i can’t use git anymore12:33
settermjd joined12:33
spykins find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch12:34
git config --global core.excludesfile ~/.gitignore12:34
echo .DS_Store >> ~/.gitignore12:34
Sendoushi left12:34
spykins i ran these codes but… changed the .DS_Store to .idea and i can’t use git anymore12:34
canton7 no you didn't12:34
you ran git config --global core.excludesfile ~./gitignore12:34
nnyk_ joined12:34
abc123_ left12:34
abc123abc123_12:34
canton7 go and edit ~/.gitconfig, and change that ~./gitignore to ~/.gitignore12:35
spykins yes.. it is a typo12:35
how do i do that?12:35
canton7 open a text editor, and open ~/.gitconfig in it12:35
you must know how to edit text files..12:35
spykins how do i get the ~/.gitconfig?12:36
canton7 there's a file in your home directly called '.gitconfig'. edit it12:36
mahendra_ left12:36
canton7 *home directory12:36
spykins i see it12:36
can i open it in vim editor?12:37
canton7 sur12:37
*sure12:37
use whatever text editor you like.12:37
... I assume you know how to use a text editor, otherwise why are you using git? :)12:37
Faylite joined12:38
spykins ok12:38
i think the file is hidded12:38
i am in my root dirctory and i types ls -la12:38
canton7 "the file is hidded"?12:38
ffs. type 'vim ~/.gitconfig'12:39
spykins i see a .gitconfig12:39
thanks.. opened12:39
mhg left12:39
mingwandroid joined12:40
Sceorem left12:41
iota_pi left12:41
mhg joined12:41
spykins please what do i change in the config?12:42
canton7 <12:35> <canton7> go and edit ~/.gitconfig, and change that ~./gitignore to ~/.gitignore12:42
spykins ok12:42
you are very correct… that’s what i have12:42
leeN joined12:43
spykins Thank you so much…..12:44
I have been able to clone …..12:44
iota_pi joined12:44
Anderson69s joined12:44
lmatteis left12:44
mhg_ joined12:45
lmatteis joined12:46
mhg left12:46
Alienpruts left12:48
Alienpruts joined12:50
King_Hual joined12:51
King_Hual left12:51
King_Hual joined12:51
strozyka joined12:53
King_Hual left12:53
King_Hual joined12:53
King_Hual left12:53
King_Hual joined12:53
Meow-J left12:54
localuser joined12:54
paulweb515 left12:55
Sceorem joined12:56
Sephyros joined12:57
abc123_ left12:57
localuser- left12:57
wxg left12:57
abc123 joined12:58
fstd left12:59
fstd joined12:59
shiriru joined12:59
localuser- joined13:00
metze_ left13:00
wethu joined13:00
rorro left13:01
metze joined13:01
Anticom joined13:02
Karkus joined13:03
localuser left13:04
mhg_ left13:04
elastix joined13:04
reim joined13:06
aard_ left13:06
roygbiv joined13:06
mizu_no_oto left13:06
daito joined13:08
settermjd left13:10
hanthings joined13:10
abc123 left13:11
Anticom Hi all. I've got a repo for my project and it has a submodule which is from github. Now i've made changes to the parent repo aswell as to the submodule. I now have to push it to stash but obviously the submodule isn't pushed with all the sources etc. Problem now is, that i made some modifications to the submodule which i don't want / can't push to the original github repo. Is there any way to "move" the submodule's remote to some other repo on our stash instan13:11
ce?13:11
so i could push it to there and tell the parent repo that this is the one i actually want referenced13:11
abc123 joined13:11
Anticom Or is there an even more elegant / standard way to solve this problem?13:12
Outsider__ left13:12
mahendra_ joined13:13
daito left13:13
localuser joined13:13
GLOSS joined13:14
toogley joined13:14
GLOSS left13:14
abc123 left13:15
abc123_ joined13:15
lindenle joined13:16
Alienpruts left13:16
fracting joined13:16
mizu_no_oto joined13:18
localuser- left13:18
astrofog left13:19
Alienpruts joined13:20
synthroid joined13:21
strozyka left13:22
tarkus26172 joined13:22
elastix left13:23
lindenle left13:23
cbreak Anticom: fork the submodule, push there13:23
Anticom: change the URL of your submodule to point to the fork13:23
mezod joined13:24
SrPx_ joined13:24
SrPx joined13:24
SrPx I accidentally deleted a file that I shouldn't. How do I recover it as it is on the last commit?13:24
SrPx_ left13:25
_rgn git checkout -- path/to/file13:25
d0nn1e left13:25
SrPx With the space?13:26
thanks13:26
EduardoMartins joined13:27
d0nn1e joined13:27
lindenle joined13:28
rnsanchez left13:29
[UPA]StefanTronsha13:30
elastix joined13:30
MarkyC joined13:31
Rynomster left13:32
troulouliou_div2 left13:33
elastix left13:33
eijk_ left13:35
MissionCritical left13:35
cena` joined13:35
dopesong joined13:37
PCatinean left13:37
espindola joined13:37
CussBot left13:38
rkmylo joined13:38
CussBot joined13:38
zipper joined13:39
zipper Hello, isn't emerge supposed to be emacs or something?13:39
cbreak no?13:40
ohmy left13:40
cbreak emerge is some bsd package manager?13:40
raijin joined13:40
strozyka joined13:40
zipper No the diff tool13:40
SimonNa joined13:41
osse cbreak: gentoo13:41
cbreak right13:41
MattMaker joined13:42
Manikandan left13:42
osse zipper: i think emerge is an emacs plugin13:42
bremner also13:42
git difftool knows how to use it, iirc13:42
zipper hmmmm I saw what I needed and it works differently. Doesn't really show a patch.13:43
acolson left13:43
skylite left13:43
s8321414 left13:44
mizu_no_oto left13:45
EduardoMartins left13:45
elastix joined13:46
elastix left13:46
MattMaker left13:46
qsuscs https://github.com/google/git-appraise13:46
interesting.13:46
wethu left13:47
pluszak I'm trying to fix history of a merge I've used git replace -e to add another parent to the commit, the tree looks right. How do I make it pernament now?13:47
git rebase seems to have conflicts13:48
I want to just have my replacements be perm13:48
MissionCritical joined13:48
dstarh joined13:49
lindenle left13:49
_ikke_ man git filter-branch should make it permanent13:52
gitinfo the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html13:52
sgambino joined13:52
Anderson69s left13:53
espindola left13:53
lindenle joined13:53
spykins_ joined13:54
ash_workz joined13:55
pluszak rewriting 10k commit, that may take a while13:56
mingwandroid left13:56
spykins left13:56
Anticom cbreak: how can i fork from github to stash? :O My idea was similar. Just change the remote in the submodule to a newly created repo on stash and push there. then change ref in parent repo13:56
should work right?13:56
cbreak Anticom: git clone13:56
Anticom cbreak: thing is i did commit some changes in the submodule already13:57
nvahalik joined13:57
spykins joined13:57
cbreak you can change the submodule with a text editor in the .gitmodules file13:57
Anticom: doesn't matter13:57
Anticom: your submodule is a clone13:57
then commit that13:58
marscher joined13:58
Anderson69s joined13:58
cbreak then all users have to run git submodule sync13:58
jeffreylevesque left13:58
Anticom no one else checked that one out yet13:58
pluszak _ikke_: but thank you very much, I run git filter-branch --tag-name-filter cat -- --all and we'll see13:58
PCatinean joined13:58
Anticom cbreak: just curious why my attempt is crap?13:58
cbreak Anticom: then only you have to sync13:58
what attempt?13:58
spykins_ left13:58
achadwick joined13:59
auda joined13:59
Pseudocrat joined14:00
auda left14:00
WayToDoor joined14:00
raijin left14:01
rorro joined14:01
arup_r left14:01
lightstalker left14:03
Alienpruts left14:03
Anticom cbreak: changing the remote of the submodule to a repo on our server where i can push it14:05
so it doesn't point to the original github repo anymore14:05
yeshacker left14:05
sdothum joined14:05
fscala left14:06
jojovem left14:06
sazed joined14:06
uranellus joined14:07
rominronin left14:07
mbrzuzy joined14:08
rpdprd1 joined14:08
lindenle left14:08
fscala joined14:08
cbreak Anticom: you have to edit .gitmodules14:08
and then sync14:08
and then push14:08
as I said a few times14:08
relipse joined14:08
jojovem joined14:09
daito joined14:09
nfk|laptop joined14:09
rominronin joined14:09
NashJrDev joined14:09
gitinfo set mode: +v14:09
Anticom cbreak: i just didn't get the git clone thing... sorry it's friday afternoon ;)14:10
krawchyk joined14:10
victorgama joined14:10
rpdprd left14:10
cbreak Anticom: you already cloned, so you have your fork14:10
just put it somewhere where other people can get it from14:11
NashJrDev Question for you guys with a little more experience, as you pick up more languages in programming how easy is it to maintain your ability in other languages? (I know javascript & c# but want to expand and learn other languages but worry I'll forget the others)14:11
Anticom i just did `git remote set-url origin <new-url>` in the submodule, pushed it and then changed the url in .gitmodules14:11
rpdprd1 left14:12
MarkyC left14:12
Sephyros left14:12
jost_ left14:12
jost joined14:13
pluszak NashJrDev: so what if you forget?14:13
circ-user-LMoE9 joined14:13
Rhonda joined14:13
lindenle joined14:14
lightstalker joined14:14
daito left14:14
NashJrDev pluszak, is it much faster relearning?14:14
cbreak Anticom: so, git submodule sync14:14
NashJrDev took me 6 months of 40 hour weeks to learn both to a decent ability14:14
pluszak NashJrDev: that's soooo #programming not here. But generally if you think you're a good programmer just because you know how to not shoot yourself in foot and every command in library....that's not what programming is about14:15
NashJrDev yea sorry I didn't know of a better channel to hit devs with more experience.14:16
synthroid left14:16
synthroid joined14:17
Rhonda left14:17
NashJrDev Do you know of good blogs / books to read for further self development as a programmer?14:17
DolphinDream joined14:18
rpdprd joined14:18
MissionCritical left14:19
troulouliou_div2 joined14:19
rdnt joined14:19
notebox left14:20
TomyWork left14:20
Peuc joined14:20
rdnt left14:20
MarkyC joined14:21
msankhala left14:21
rwb joined14:21
rwb left14:21
notebox joined14:22
arup_r joined14:22
otter768 joined14:22
msankhala joined14:22
jimi_ joined14:22
sitaram left14:22
rwb joined14:23
TomyWork joined14:24
a3Dman left14:25
jfft joined14:26
otter768 left14:26
a3Dman joined14:27
a3Dman left14:27
a3Dman joined14:27
NashJrDev left14:27
emmajane joined14:28
sitaram joined14:28
sitaram left14:28
sitaram joined14:28
jfft left14:29
abc123 joined14:29
jfft joined14:29
MissionCritical joined14:29
Rhonda joined14:30
abc123_ left14:30
abc123abc123_14:30
Peaker joined14:32
Psychiatrist joined14:32
Rhonda left14:33
xelxebar left14:34
lindenle left14:34
rwb left14:34
rkmylo left14:36
Rhonda joined14:36
Rh0nda joined14:36
rwb joined14:36
Peaker left14:38
chubbson joined14:39
nickthetait left14:39
nickthetait joined14:39
iLembus joined14:39
lindenle joined14:40
SrPx left14:40
SrPx joined14:40
gitinfo set mode: +v14:42
nafg left14:42
chubbson what is the best approach, moving a file from one submodule to another, without loosing the history?14:42
AaronMT joined14:43
emmajane left14:43
AaronMT left14:43
AaronMT joined14:44
kpease joined14:44
JR33 joined14:45
kpease left14:45
sebbel left14:45
kpease joined14:45
cdg joined14:46
cbreak chubbson: there are no good ones14:47
want one of the bad ones?14:47
chubbson yeah ^^ actually im checking this one: http://blog.neutrino.es/2012/git-copy-a-file-or-directory-from-another-repository-preserving-history/14:47
lb left14:48
skul joined14:48
emmajane joined14:49
Rh0nda left14:49
Rhonda left14:49
cbreak chubbson: filter-branch to delete all files apart from the one you want to keep14:50
then subtree merge that one14:50
SrPx left14:51
Alienpruts joined14:51
Rhonda joined14:51
SrPx joined14:51
abc123 joined14:52
abc123_ left14:53
abc123abc123_14:53
Rhonda left14:53
netcarver joined14:54
Rhonda joined14:55
phaleth joined14:58
Rhonda left14:58
subhojit777 joined14:58
rscata left14:59
lindenle left14:59
fracting left15:00
josuebrunel left15:01
lmatteis left15:01
MarkyC left15:01
alexsystemf_- left15:01
josuebrunel joined15:01
josuebrunel left15:01
josuebrunel_ joined15:01
Rhonda joined15:02
iota_pi left15:02
lindenle joined15:03
josuebrunel joined15:04
josuebrunel left15:04
elsevero left15:04
iota_pi joined15:04
lmatteis joined15:04
notebox left15:04
alexsystemf_- joined15:04
phaleth left15:06
julius___ joined15:09
julius___ left15:09
jfft left15:09
rnsanchez joined15:09
ril_ joined15:09
julius joined15:10
ayaz joined15:10
julius hi15:10
David1977 left15:11
jfft joined15:11
chubbson hmm kk, ill check that. never worked woth subtree before, just with submodule. does the concept of subtree exist in mercurial? (little more expirienced wit hq)15:11
julius i can ignore all files with *, then i can add directories that i want with "git add -f somedir" but how can i ignore a subdirectory of somedir?15:11
KnightsOfNi joined15:12
_cyril__ left15:12
chubbson *.plg # ignores all *.plg files15:12
SrPx left15:13
chubbson GeneratedArtifacts/ #should ignore the hole directory 'generatedartifacts'15:13
does this help?15:13
julius im working from the starting point to ingore anything, and then include just a few files15:13
jast julius: if you're using -f, ignore patterns no longer apply. the solution is to not use -f. or to 'git rm --cached -r subdir' after you've used it.15:13
julius just saving some configs from my home dir15:13
ash_workz left15:14
julius what you said is true, but not the question15:14
ash_workz joined15:14
jast I can tell you how to ignore a subdir (pattern: /dir/subdir), but due to -f it won't have any effect in your scenario15:14
anyway, I have to go sit in a meeting now15:14
sarri left15:15
raijin joined15:16
julius git rm --cached -fr .config/hexchat/scrollback/ <- that one seems to work, nice15:16
chubbson ok, next try. probably that could help: https://gist.github.com/chubbson/7f396ccd13c644ddf3ff15:16
sarri joined15:17
nettoweb joined15:18
julius left15:18
Sucks joined15:19
happy-dude joined15:20
jellie joined15:21
IrishPrime joined15:21
IrishPrime left15:21
skapunker joined15:21
arup_r left15:21
zipper left15:22
jelliezipper15:22
lindenle left15:22
ferr joined15:23
nvahalik left15:24
kentzo joined15:24
jbudz joined15:24
luke_penn joined15:25
nilg left15:26
kentzo Hi. I have cloned a repo with --no-single-branch and --depth 1. At some point, parent branch was rebased. How can I sync my local branch to the remote one (by loosing all the local changes) ?15:26
yoh_ joined15:26
mingwandroid joined15:27
Anticom left15:27
vane- joined15:27
SimonNa left15:27
yoh_ Using git 2.1.4 on debian jessie . Upon git commit -m "message" -a there is a .git/COMMIT_EDITMSG left behind. This forbids using this repository in a 'shared' setting whenever umask is standard 02215:28
is this a known issue which may be was fixed later?15:28
lindenle joined15:28
Es0teric joined15:28
yoh_ tried now on debian testing/sid with 2.6.2 -- the same issue!15:29
osse yoh_: it's not very common to share repos15:29
grawity how is it a 'shared' setting if the umask is 022?15:29
usually shared repos have core.sharedRepository set and Git takes care of umasks etc. to allow this15:29
raijin left15:29
yoh_ grawity: ;) good question BUT still should be legit I guess -- files would get committed to objects15:29
just the other memebers wouldn't be able to modify your files in place15:30
grawity well like I just said15:30
Junior left15:30
grawity if it's shared, use core.sharedRepository, `git init --shared`, etc15:30
osse yoh_: you can use a post-commit hook to delete it15:30
Anderson69s left15:30
yoh_ yes -- git takes care about permissions etc for all the .git/objects etc15:30
grawity and Git will make sure the necessary files are group-writable or world-writable15:30
jellie joined15:30
powered left15:30
yoh_ so is that by design to leave that file behind for some reason even if commit action was quite "atomic"?15:30
osse yes15:31
well15:31
yoh_ for what purpose?15:31
osse git commit --amend for example15:31
kentzo Can I force rev-parse to resolve name relative to remote?15:31
mrx-420 joined15:31
yoh_ that one should take commit msg from the git HEAD not from some forgotten behind file (I hope that it does that I mean)15:31
osse hmm15:32
then maybe it has no purpose if the commit is successful15:32
yoh_ yeap -- does take it from git history and not that file (as it should )15:32
jellieurbanslug15:32
osse anyway, a post commit can take care of it15:33
yoh_ checked by checking out another branch where last commit msg was different15:33
zipper left15:33
yoh_ well -- the question is why should I bother about some hooks at all?15:33
CussBot left15:33
yoh_ is it is a shared (and it is) and git does take care about all the permissions, but not of this file, feels like a bug15:33
lolmac left15:34
osse the --shared stuff is mostly for bare repos15:34
yoh_ "mostly" is a good spec ;)15:34
notebox joined15:34
nfk|laptop left15:34
CussBot joined15:34
osse i don't think shared repos like this are a common use case15:34
maybe it is15:35
Anderson69s joined15:35
localuser- joined15:35
hfp joined15:36
tristanp joined15:37
hfp_work joined15:37
charlieWONG joined15:38
howdoi joined15:38
CausaMortis-LT joined15:39
codedmart left15:39
localuser left15:40
codedmart joined15:40
tristanp left15:41
MarkyC joined15:41
urbanslugzipper15:42
CausaMortis left15:42
MattMaker joined15:42
roelmonnens left15:42
lindenle left15:43
SrPx joined15:43
CausaMortis-LT left15:44
eijk_ joined15:44
MattMaker left15:46
nfk|laptop joined15:47
Alienpruts left15:48
lindenle joined15:48
nafg joined15:48
netcarver left15:49
sparetire_ joined15:50
mrx-420 left15:50
spykins left15:51
emmajaneemmajane|afk15:51
Ahmed90 joined15:51
killa_kyle joined15:53
emmajane|afkemmajane15:54
emmajaneemmajane|afk15:54
spuz joined15:54
spuz hi what command should i use to find out whether or not the commits from a branch exist on the current branch?15:55
axtx joined15:55
PCatinean left15:57
notebox left16:01
Sc0rpius git branch --contains <commit>16:01
what would list your local branches that contains the specified commit16:02
more on the manual of git-branch16:02
Sceorem left16:03
SrPx left16:03
rorro left16:03
josuebrunel_ left16:03
kfpratt joined16:03
mellernoia-work joined16:03
josuebrunel joined16:03
mellernoia left16:04
kilo_bravo joined16:04
cbonobo joined16:04
fatalhalt joined16:04
abc123 joined16:04
abc123_ left16:04
abc123abc123_16:04
wwwald left16:05
crayon joined16:05
SrPx joined16:05
mellernoia-work left16:05
mellernoia joined16:05
shiriru left16:06
lindenle left16:06
pantsman- left16:06
LeBlaaanc left16:06
SrPx left16:06
SOLDIERz left16:06
_nadim joined16:07
quackgyver left16:07
da5id left16:08
nvahalik joined16:08
kadoban joined16:08
zotherstupidguy how to list tree of HEAD?16:08
_ikke_ git ls-tree HEAD16:08
Alissa joined16:08
nadim left16:09
SrPx joined16:09
zotherstupidguy will that list nested trees as well?16:09
_ikke_ git ls-tree -r HEAD will16:09
daito joined16:10
zotherstupidguy _ikke_ any idea how to do that on github api?16:10
_ikke_ nope16:10
zotherstupidguy _ikke_ thanks appreciate it16:10
netj left16:11
netj joined16:11
TomyWork left16:11
clmsy left16:12
ewrqwe joined16:13
da5id joined16:13
gitinfo set mode: +v16:13
quackgyver joined16:13
clemf joined16:13
MechtiIde joined16:13
SrPx left16:14
daito left16:14
iamtakingiteasy joined16:14
ayaz left16:15
lindenle joined16:15
ril_ril[away]16:15
ril[away]ril_16:16
lucha joined16:16
aqxea joined16:17
msankhala left16:18
SrPx joined16:20
aqxea left16:20
notebox joined16:20
espindola joined16:21
tarkus26172 left16:21
leeN left16:22
JR33 left16:22
jfft left16:22
cebor left16:22
luke_penn left16:23
EricPoe joined16:23
otter768 joined16:23
freimatz left16:23
synthroid left16:23
cebor joined16:23
_nadim left16:23
_nadim joined16:23
_Atom_ joined16:23
SrPx left16:24
abc123 joined16:24
iLembus_ joined16:25
abc123_ left16:25
abc123abc123_16:25
SrPx joined16:25
sukima left16:26
jnavila left16:26
jojovem left16:26
synthroid joined16:26
Aboba joined16:27
jojovem joined16:27
otter768 left16:27
ewrqwe left16:28
lindenle left16:28
Hounddog left16:28
iLembus left16:29
EricPoe left16:29
msankhala joined16:29
IrishPrime joined16:29
thebwt joined16:29
cena` left16:30
synthroid left16:31
mhg_ joined16:31
lindenle joined16:31
arved joined16:32
arved what can i do if "git merge branch" does not create a new file from "branch"?16:33
canton7 so 'branch' has the file, and the current branch does not?16:33
_ikke_ find out if your expecations match16:33
arved canton7: yes16:34
canton7 arved, did 'branch' add the file, or did your current branch delete the file?16:34
arved it added the file16:34
canton7 is this repo public?16:35
arved unfortunately no ...16:35
msankhala left16:36
canton7 well, either something else is going on which you haven't mentioned, or something you've said isn't true :P16:36
arved the file is in a new directory with several others, but only two of the new files are there16:37
The_Phoenix joined16:37
mahendra_ left16:37
arved how can i find out, what isn't true or what i have missed to mention?16:37
BillCriswell joined16:37
_ikke_ arved: does git diff --name-status --diff-filter=A HEAD branch return?16:38
assuming you are now on the branch you want to merge into16:38
notebox left16:38
arved _ikke_: it lists the file with "A"16:38
dopesong left16:39
Anderson69s left16:39
arved i tried it on a different machine and same result, so it is not the checkout that got corrupted16:42
localuser joined16:42
MattMaker joined16:43
sbasso left16:43
Guest10 joined16:43
lindenle left16:44
Gamecubic joined16:44
mellernoia left16:44
clemf left16:45
_ikke_ arved: what about git ls-tree -r HEAD | grep file16:45
or better16:45
git ls-tree HEAD path/to/file16:46
Faylite left16:46
localuser- left16:46
Faylite joined16:47
ril_ left16:47
arved no output16:47
jojovem left16:47
MattMaker left16:48
synthroid joined16:48
jojovem joined16:48
lindenle joined16:48
localuser left16:49
lucha left16:49
nfk|laptop left16:49
cbonobo_ joined16:50
cbonobo left16:51
arved could it be that git stops merging a new directory if there is a conflict?16:51
because for another file in the new directory it claims it was "deleted by us" though that is as far as i know wrong16:52
skylite joined16:52
canton7 oh, so you're in the middle of a conflict right now?16:52
yeah, that's something that you forgot to mention, heh16:53
arved yes16:53
canton7 so, what's the output of 'git status'?16:53
synthroid left16:53
arved it is not showing the new file16:54
Shentino left16:55
arved in the directory it shows one file as new, one as "deleted by us" and the others are missing16:55
m1dnight1 joined16:56
cbonobo_ left16:56
m1dnight_ left16:56
dipk joined16:56
m1dnight1m1dnight_16:56
espindola left16:56
canton7 the fact that there's a conflict which doesn't match your expectations implies to me that either you're not actually merging what you think you're merging, or you're not merging into what you think you're merging into16:56
arved hm, very philosophical :)16:57
mischat joined16:57
LeBlaaanc joined16:57
sangy joined16:58
nvahalik left16:58
arved now how can i find out were my thoughts are wrong?16:58
Darcidride left16:59
canton7 I find a graphical history viewer like gitk or !lol very useful in visualising what you're merging16:59
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all16:59
abc123 joined16:59
ferr left16:59
nvahalik joined16:59
Es0teric left17:00
Guest10 left17:01
josuebrunel left17:01
rory oh my god my history is disgusting!17:01
Khadafi joined17:02
rory I was better off ignorant17:02
abc123_ left17:03
mhg_ left17:03
Shentino joined17:03
arved well it will be quite difficult to find something, there are several 100 commits in each branch some of them have been cherry-picked before17:03
troulouliou_div2 left17:03
abc123 left17:03
abc123_ joined17:03
arved maybe i will just try to readd the files in a separate commit17:04
InfoTest left17:05
petersr joined17:07
m1dnight_ left17:07
notebox joined17:07
lindenle left17:08
sangy left17:08
King_Hual left17:08
dreiss joined17:08
petersr left17:08
synthroid joined17:10
albel727 left17:10
synthroid left17:11
CussBot left17:11
CussBot joined17:11
synthroid joined17:11
notebox left17:11
troulouliou_div2 joined17:12
troulouliou_div2 left17:12
CorySimmons joined17:12
madewokherd joined17:13
silentz0r left17:13
lindenle joined17:13
emmajane|afkemmajane17:13
albel727 joined17:13
charlieWONG left17:13
mbrzuzy left17:14
MattMaker joined17:14
ItSANgo_ left17:14
rominronin left17:14
hans3000 joined17:15
durham joined17:15
hans3000 left17:15
ferr joined17:17
Khadafi left17:18
WayToDoor left17:18
aard_ joined17:20
emmajane left17:22
chubbson left17:22
emmajane joined17:22
m0viefreak joined17:26
Balliad left17:27
kentzo left17:28
arup_r joined17:28
subhojit777 left17:29
Peuc left17:30
ferr left17:31
lindenle left17:31
m1dnight_ joined17:32
Peuc joined17:32
ril joined17:32
ferr joined17:33
raijin joined17:33
abc123_ left17:33
abc123 joined17:33
ril left17:34
yqt joined17:34
lindenle joined17:35
codeman joined17:38
Noldorin joined17:38
gfixler left17:38
ThomasLocke left17:38
b100s left17:39
ag4ve is there a way to commit changes where lines don't match a regex?17:40
Aboba left17:40
ag4ve basically i want to make a commit but i've added "warn" lines (because i'm still debugging) and don't want to include them17:40
encod3 left17:41
Noldorin left17:42
ag4ve i basically want a: grep -vE '^warn .*'17:42
thiago_ joined17:42
kadoban ag4ve: You know about 'git add -p' I assume? You can do it manually, though if there's a bunch of them it'll be tedious.17:42
subhojit777 joined17:42
albel727 left17:43
pwnz0r joined17:43
ag4ve yeah, i've got a ton, so just doing a %s/^warn.\*//g and then undoing post commit would be easier17:44
rubyonrailed left17:44
nettoweb left17:44
Darcidride joined17:44
ag4ve so i was hoping git had some automagic way to exclude based on regex17:44
SrPx left17:44
albel727 joined17:45
vF3hNGxc47h8 joined17:45
hyperair left17:45
clemf joined17:45
ag4ve mmmm, :g/^word .\*/d in vim, but at any rate17:45
SrPx joined17:47
rubyonrailed joined17:47
jimi_ left17:47
tang^ joined17:49
flaguy48 joined17:49
ciampix left17:50
lindenle left17:50
chll left17:50
iLembus_iLembus17:51
weox left17:52
faux___ joined17:53
JosephSilber joined17:54
JosephSilber left17:55
JosephSilber joined17:56
lindenle joined17:56
roygbiv left17:57
espindola joined17:57
vF3hNGxc47h8 left17:57
nettoweb joined17:57
ferr left17:58
killa_kyle left17:59
sazed left17:59
mehola joined18:00
samw joined18:00
_joes___ left18:01
espindola left18:02
marscher left18:03
Darcidride left18:04
mehola left18:06
marscher joined18:07
Limes_ joined18:07
paulweb515 joined18:07
daito joined18:11
cdg left18:12
rubyonrailed left18:13
lindenle left18:14
daito left18:15
lindenle joined18:16
mbrzuzy joined18:16
killa_kyle joined18:17
faux___ left18:17
killa_kyle left18:18
Aboba joined18:19
faux___ joined18:19
frem joined18:23
otter768 joined18:24
lindenle left18:24
bolin joined18:25
yqt left18:25
mrx-420 joined18:28
mrx-420 left18:28
otter768 left18:28
durham_ joined18:28
lindenle joined18:29
pwnz0r left18:29
pwnz0r joined18:29
jbudz left18:30
dreiss left18:30
jagob joined18:31
tvw left18:31
mehola joined18:31
durham left18:31
rubyonrailed joined18:32
marscher left18:32
star_prone left18:33
pwnz0r left18:34
gopar joined18:34
iota_pi left18:35
graSP joined18:35
arup_r left18:37
mehola left18:37
tristanp joined18:38
roygbiv joined18:38
graSP left18:38
faux___ left18:39
The_Phoenix left18:40
mehola joined18:40
deepy joined18:41
lindenle left18:41
jrnieder left18:42
doener left18:42
Mannequin joined18:42
jbudz joined18:43
tristanp left18:43
abc123 left18:44
abc123_ joined18:44
chucky_z joined18:44
faux___ joined18:45
Sasazuka joined18:45
skapunker left18:46
danmulvey joined18:46
lindenle joined18:48
PaulCapestany left18:51
Shentino left18:51
achadwick left18:52
Shentino joined18:52
rnsanchez left18:53
PaulCapestany joined18:54
tvw joined18:54
yqt joined18:55
cdg joined18:55
doener joined18:58
Sucks left18:58
diogenese left18:58
killa_kyle joined18:59
skapunker joined18:59
cdg left19:00
killa_kyle left19:00
mischat left19:00
SrPx left19:00
jayeshsolanki joined19:01
IrishPrime left19:02
SrPx joined19:02
SrPx left19:02
ascarter joined19:04
discord left19:04
abc123 joined19:04
mischat joined19:05
abc123_ left19:06
abc123abc123_19:06
fees left19:06
Sucks joined19:07
ferr joined19:07
samw left19:07
discord joined19:08
tristanp joined19:08
samw joined19:09
mbrzuzy left19:13
tristanp left19:13
jimi_ joined19:13
jottr joined19:14
phrozensilver joined19:14
abc123 joined19:14
jottr left19:14
samw left19:14
abc123_ left19:14
abc123abc123_19:14
iLembus left19:15
jottr joined19:15
lindenle left19:15
jottr left19:16
jimi_ left19:16
ascarter left19:16
SrPx joined19:18
samw joined19:19
nettoweb left19:19
lindenle joined19:20
toogley left19:20
paulweb515 left19:20
toogley joined19:21
mbrzuzy joined19:22
espindola joined19:23
pozitron joined19:23
espindola left19:23
aranea joined19:24
pozitron left19:24
oxsyn joined19:24
nkouevda joined19:24
jottr joined19:25
mbrzuzy left19:26
d4rklit3 joined19:27
mingwandroid left19:28
raijin left19:29
tristanp joined19:30
CorySimmons left19:30
LeBlaaanc left19:30
editshare-ericf joined19:30
vane- left19:31
notebox joined19:31
dreiss joined19:31
paul424 joined19:32
bolin left19:33
lindenle left19:33
nettoweb joined19:33
killa_kyle joined19:35
DANtheBEASTman I want to maintain my own little fork of something, I made a separate branch, committed my changes. when new updates are available, i should `git checkout master && git pull && git checkout mybranch && git rebase` ? or is there an better/easier way to do this?19:36
jds left19:36
faux___ left19:38
fatalhalt left19:39
faux___ joined19:40
Seveas DANtheBEASTman: git fetch origin; git rebase origin/master19:40
you could even delete your local master branch if you don't care about it19:40
d4rklit3 left19:41
DANtheBEASTman fwiw, in this case it's the oh-my-zsh library, my changes are just prompt colors, but i imagine it's a common enough scenario that i should probably learn how to do it properly..19:41
ciampix joined19:42
killa_kyle left19:42
DANtheBEASTman i bit more googling is in order i suppose19:42
s/^i/a/19:42
Sucks left19:43
mizu_no_oto joined19:43
torbjorn im trying to delete a remote branch, which seems to work, only to have it pop back in at next fetch/pull19:44
boombatower joined19:44
torbjorn if I try to git push origin --delete thatbranch , it says remote ref does not exist19:45
though git branch -r lists it19:45
jottr left19:45
torbjorn and git branch -dr happily deletes it again19:46
canton7 torbjorn, !repro please? pastebin a terminal session of 'git branch -r', you failing to delete it, etc19:46
gitinfo torbjorn: [!transcript] Please paste (using https://gist.github.com/ or similar) a transcript ( https://gist.github.com/2415442 ) of your terminal session.19:46
Aboba left19:46
torbjorn https://gist.github.com/anonymous/5a623cd514eecbef8d6f19:48
faux___ left19:48
clemf left19:48
rpg joined19:48
canton7 including git push --delete?19:48
since that's what actually deletes a branch off a remote repo19:48
durham_ left19:48
canton7 'git branch -dr' just deletes the remote tracking branch19:48
killa_kyle joined19:49
rpd left19:49
torbjorn ah the additional /origin's confused me19:50
canton7 got it? ;)19:50
lindenle joined19:50
canton7 learn about what a !remote_tracking_branch is, and how they work19:50
gitinfo Remote-tracking branches (branches which start with e.g. 'origin/', listed by 'git branch -r') are read-only mirrors of the corresponding branches in another repository. They're updated by 'git fetch'. You can't edit them directly (trying to check them out results in a !detached HEAD), but you can create a new local branch based on a remote-tracking branch using e.g. 'git checkout -b <branch> <remote>/<branch>'19:50
canton7 they're kinda key to everything, but very few tutorials cover exactly what they are19:51
julius joined19:51
julius left19:51
nettoweb left19:51
torbjorn i see. how do they come into existance?19:51
canton7 'git fetch' creates them19:51
marcogmonteiro left19:51
killa_kyle left19:52
killa_kyle joined19:52
canton7 'git fetch' will look at the remote and go "ok, I see a branch called master. I'll download everything in that and mirror it to a local read-only branched called 'origin/master'". Likewise any other branches it finds on the remote19:52
tomog999 joined19:53
nafg left19:53
jamesheston joined19:53
bollullera joined19:53
mehola left19:53
abc123 joined19:54
abc123_ left19:54
abc123abc123_19:54
nfk|laptop joined19:55
bronson joined19:55
raijin joined19:55
tomog999_ left19:56
samw left19:57
subhojit777 left19:57
ojacobson `git branch -r` reads _local_ information, `git fetch` updates that information. because of reasons, it doesn't delete any of the local information it fetches, by default.19:59
diogenese joined19:59
jottr joined19:59
ojacobson `git fetch --prune` will delete any "extra" local refs that no longer correspond to remote refs20:00
nnyk_ left20:00
samw joined20:01
samw left20:01
durham joined20:03
abc123_ left20:03
abc123 joined20:04
raijin left20:06
raijin joined20:06
jstimm joined20:07
thiago_thiago20:08
howdoi left20:08
LeBlaaanc joined20:08
reim left20:09
d4rklit3 joined20:09
lindenle left20:10
settermjd joined20:10
reim joined20:10
samw joined20:11
daito joined20:11
reim left20:11
abc123 left20:13
abc123_ joined20:13
MechtiIde left20:14
nettoweb joined20:14
nettoweb left20:16
CheckDavid joined20:16
jottr left20:16
albel727 left20:16
daito left20:16
nettoweb joined20:17
_nadim left20:18
_nadim joined20:18
julius joined20:18
julius hi20:18
lindenle joined20:18
julius in a file that has differences, is the part below <<<<<<< HEAD the local one or the remote?20:19
rpg_ joined20:19
DavidDudson joined20:19
Sucks joined20:20
relipse so I had a 1.8gb repo, I followed the instructions using git filter branch rm BIGFILE and then did git push -f and now my repo is 3.5 gb20:20
mbrzuzy joined20:21
localuser- joined20:21
thiago which repo is "my repo" here?20:21
grawity the local one, or the remote one?20:21
Git does not throw away data instantly, only in batches20:21
and `git filter-branch` keeps backups in the local repo until you manually delete them20:22
relipse yeah i followed some directions to do a garbage clean up, but maybe it didnt' do anything20:22
rpg left20:23
thiago delete the repo in the server, recreate and re-push20:23
opencard joined20:23
Seveas relipse: try !bfg. Easier to get right :)20:23
gitinfo relipse: A tool designed to remove large files, or passwords from history: https://rtyley.github.io/bfg-repo-cleaner/ (!rewrite applies)20:23
julius brb20:23
weox joined20:23
fscala left20:23
samw left20:24
DavidDudson left20:24
jottr joined20:24
otter768 joined20:25
SrPx left20:25
DavidDudson joined20:25
macmod joined20:25
fscala joined20:25
_cyril__ joined20:26
abc123 joined20:26
jojovem left20:27
creppe left20:27
abc123_ left20:28
otter768 left20:29
colli5ion left20:29
mariuscc left20:29
nnyk_ joined20:30
jamesheston left20:30
albel727 joined20:30
abc123 left20:31
abc123_ joined20:31
Yeomra joined20:31
notebox left20:31
pozitron joined20:31
skcin7 left20:32
eb joined20:32
Balliad joined20:33
FireArrow133 joined20:33
zipperGuest2903620:34
samw joined20:34
Guest29036 left20:34
[cust] joined20:35
jayeshsolanki left20:35
samw left20:40
star_prone joined20:41
mezod left20:41
mariuscc joined20:41
BillCriswell left20:45
star_prone left20:45
star_prone joined20:48
star_prone left20:48
SrPx joined20:49
star_pro_ joined20:49
clemf joined20:50
synthroid left20:53
star_pro_ left20:53
SrPx left20:54
King_Hual joined20:54
roxlu left20:54
King_Hual left20:54
King_Hual joined20:55
King_Hual left20:55
King_Hual joined20:55
vdv joined20:55
samw joined20:55
paulweb515 joined20:55
settermjd left20:56
Balliad left20:56
bronson left21:00
PeterBooker left21:00
wallyduchamp left21:02
a3Dman left21:02
macmod left21:02
daito joined21:03
foul_owl Hi folks. I used git diff @{u} to determine what the difference is between origin and my local copy. Now I have decided I want to just nuke my local changes and have my local copy match origin. How do I do that?21:03
For the branch I'm on only21:03
vdv left21:03
jfran joined21:04
_ikke_ git reset --keep @{u}21:04
toogley left21:04
eka left21:04
abc123 joined21:04
jfran left21:05
toogley joined21:05
Nugget left21:05
circ-user-LMoE9 left21:05
a3Dman joined21:05
dstarh left21:06
Nugget joined21:06
abc123_ left21:06
abc123abc123_21:06
foul_owl So if I start making new changes and finally do a push21:06
Will that push the history of my "failed attempt" also?21:06
Or will it just nuke that history? (which is desired)21:07
daito left21:07
daito joined21:08
lindenle left21:08
Jackneill left21:08
ferr left21:09
_ikke_ the latter21:10
git will only push reachable history21:10
That it, when this is the only branch that contains those changes21:10
bronson joined21:10
espindola joined21:11
oojacoboo joined21:12
circ-user-LMoE9 joined21:12
foul_owl So the reset nukes the history of those few commits I made?21:12
Thanks for the help!21:12
daito left21:13
localuser- left21:14
sangy joined21:15
mariuscc left21:15
jottr left21:16
nettoweb left21:16
Faylite left21:17
nettoweb joined21:17
gaen joined21:20
aard_ left21:20
Aboba joined21:20
lindenle joined21:21
espindola left21:21
hackel joined21:22
Pseudocrat left21:22
nettoweb left21:24
d4rklit3 left21:24
rwb left21:24
nettoweb joined21:24
d4rklit3 joined21:26
Ahmed90 left21:26
roygbiv left21:26
marcelofr left21:27
iLembus joined21:27
sgambino left21:27
jas4711 left21:29
josuebrunel joined21:30
cdg joined21:30
jamesheston joined21:30
jamesheston left21:30
DolphinDream can i reset the origin/branch to point o to an earlier commit (locally) without chaning aytyhing on the remote ?21:31
as if i have never pushed my latest changes21:32
(needed to test scripts)21:32
leeN joined21:33
kadoban left21:33
_ikke_ if you must, you can use man git update-ref21:35
abc123 joined21:35
gitinfo the git-update-ref manpage is available at http://jk.gs/git-update-ref.html21:35
DolphinDream thx _ikke_21:35
tvw left21:37
neanderslob joined21:38
abc123_ left21:38
abc123abc123_21:38
rpg_ left21:41
rpg joined21:41
cagedwisdom joined21:41
raijin left21:42
Kicer86 left21:42
zotherstupidguy left21:43
BlueProtoman joined21:46
Flyers left21:46
Mannequin left21:46
ncthom91 joined21:47
Flyers joined21:47
lindenle left21:47
Limes_ left21:47
rpg_ joined21:47
rpg_ left21:47
riots joined21:48
BlueProtoman I recently nuked my hard drive and reinstalled Kubuntu 15.10 and Windows 8.1. I just migrated all of my code from my old installation to my new one...however, the permissions for each of the files in this one Git repo (and probably others, but haven't checked) have changed from 0644 to 0774, and "chmod -R 0644 ./*" won't revert them (it reports a success, but the mode doesn't really change). Is this a Git problem or a Linux problem?21:48
Limes_ joined21:49
DolphinDream left21:49
lindenle joined21:50
Limes_ left21:50
rpg left21:50
Limes_ joined21:51
Karkus left21:52
paulweb515 left21:52
paulweb515 joined21:52
leb joined21:53
ItSANgo joined21:53
lindenle left21:54
lindenle joined21:54
nilg joined21:54
riots lets say i do git clone https://github.com/desandro/masonry.git make my changes im ready to commit and push. But dont want to commit/push back to that repo. I want to push to my own repo. how would one go about that?21:55
Karkus joined21:57
axtx left21:57
Wetmelon joined21:57
mizu_no_oto left21:57
Karkus left21:57
phrozensilver left21:57
abc123_ left21:58
BlueProtoman left21:58
The_Phoenix joined21:59
abc123 joined21:59
tobiasvl riots: man git remote21:59
gitinfo riots: the git-remote manpage is available at http://jk.gs/git-remote.html21:59
tobiasvl riots: "git remote add" your repo, push to your new remote: man git push22:00
gitinfo riots: the git-push manpage is available at http://jk.gs/git-push.html22:00
milki is there a simple way to export a single object from a git repo22:00
lindenle left22:00
milki i want to mirror a repo but it has corrupt objects. if i can put them in the target repo first, then the git push should be happy22:00
raijin joined22:01
lindenle joined22:01
Balliad joined22:02
maletor joined22:02
Balliad left22:02
griotspeak joined22:02
Balliad joined22:02
Seveas milki: git cat-file blob sha1 > my.file22:03
and in the target repo git hash-object -w my.file22:03
milki it might not be a file. i want an arbitrary git object22:03
o22:03
right22:04
cat-file does the ascii object22:04
dobrev joined22:04
milki Seveas: good idea. /me tries22:04
Seveas arbitrary object I don't know. This one only works for blobs22:04
milki o22:04
Seveas for arbitrary objects, just copy the file from .git/objects/?22:04
milki i think it might work for commit objects too22:04
The_Phoenix left22:04
milki Seveas: i have to find it first. if its in a pack, then i have to find the pack and unpack it22:04
dobrev left22:04
milki >.>22:04
Seveas can't unpack a corrupt object22:05
milki its gonna fsck it?22:05
grr22:05
Seveas but you can just copy the pack22:05
gaengaen[away]22:05
milki the pack could be large22:05
-.-22:05
Seveas can you give some details about the corruption? (git fsck output)22:05
milki the date is invalid22:05
milki looks for paste22:06
The_Phoenix joined22:06
milki remote: error: object c1eddff4ee3f62b6039f1083651b9118883e7f07:invalid author/committer line - bad time zone22:06
remote: fatal: Error in object22:06
Seveas that's not corrupt22:06
milki o, good22:06
then its unpackable22:06
Seveas that's been broken when created. You'll need to rewrite history to get rid of that22:07
samw left22:07
milki i dont plan to do that. im hoping i can just scp the single object22:07
so it doesnt get sent over git protocal and checked22:07
Seveas but then you still can't do anything with it, like creating more clones.22:07
Karkus joined22:08
milki clones dont seem to verify the objects22:08
lindenle left22:08
Seveas how did that commit get created?22:08
milki its only on push22:08
probably a long time ago22:08
milki looks on github22:08
str__ joined22:08
lindenle joined22:09
milki https://github.com/boto/boto/commit/cb8aeec987ddcd5fecd206e38777b9a15cb0bcab22:09
str__ left22:09
milki wait22:09
wrong commit22:09
-.-22:09
https://github.com/boto/boto/commit/c1eddff4ee3f62b6039f1083651b9118883e7f0722:10
https://github.com/boto/boto/commit/c1eddff4ee3f62b6039f1083651b9118883e7f07.patch22:10
Date: Thu, 1 Jan 1970 00:00:00 +000022:10
samw joined22:10
_Vi joined22:10
milki timestamp is 1288373970 --70022:10
Seveas yeah, that's been created by something that's not git22:11
milki ah22:11
Seveas something buggy22:11
str__ joined22:11
milki so like one of those cross-dvcs tools22:11
The_Phoenix left22:11
Seveas or eclipse22:11
HelloAtMega joined22:11
milki aha22:11
Seveas anyway, I really recommend biting the bullet and rewriting history.22:12
_Atom_ left22:12
jfft joined22:12
milki this is a public repo -.-22:12
http://docs.pythonboto.org/en/latest/22:12
thats not gonna be possible22:12
Seveas even more reason to fix it.22:12
milki look not mine22:13
er22:13
like22:13
str__ Hi!22:13
gitinfo str__: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.22:13
Seveas boto3 doesn't have that commit so the problem will go away as boto3 takes over :)22:13
milki >.>22:13
<.<22:13
MarkyC left22:13
ItSANgo left22:14
jfft left22:15
samw left22:15
lindenle left22:16
noteness left22:17
ItSANgo joined22:17
phantomcircuit left22:17
paul424 left22:17
lindenle joined22:18
samw joined22:20
quenode left22:21
nnyk_ left22:21
samw left22:21
noteness joined22:22
nour joined22:23
darkschneider left22:23
emmajane left22:23
darkschneider joined22:23
gaen[away] left22:24
blackwind_123 joined22:24
abacuspowers joined22:24
otter768 joined22:25
madewokherd left22:26
nour_ joined22:26
nour_ left22:26
bronson left22:27
gaen joined22:27
lindenle left22:28
gopar left22:29
rpd joined22:30
otter768 left22:30
skapunker left22:30
lindenle joined22:30
samw joined22:30
milki darn22:30
i imported the file22:31
rpg joined22:31
milki need to be explicit about the object type with cat-file and hash object22:31
but the push is still checking the object22:31
hmm22:31
Seveas that's actually not surprising22:32
griotspeak left22:32
strozyka left22:32
milki maybe i need to give it a reference22:32
Seveas push wants to send all objects corresponding to the commits it wants to send22:32
paul424 joined22:32
Seveas so try pushing up to the commit before the broken one22:33
and then in the mirror, fething from the upstream one22:33
milki remote: fatal: pack has 2258 unresolved deltas22:34
error: unpack failed: index-pack abnormal exit22:34
darn22:34
it tried to resolve the ref to the single commit object22:34
Seveas: hm, ok22:34
bitkiller left22:34
tomek joined22:36
ash_workz left22:36
lindenle left22:36
jottr joined22:37
_nadim left22:38
star_prone joined22:38
_nadim joined22:38
star_prone left22:38
phrozensilver joined22:39
star_prone joined22:39
star_prone left22:39
star_prone joined22:40
star_prone left22:40
lindenle joined22:40
star_prone joined22:40
star_prone left22:41
toothrot joined22:41
nadim joined22:41
leb left22:41
skapunker joined22:41
_nadim left22:41
star_prone joined22:42
nkouevda left22:42
star_prone left22:42
jottr left22:43
star_prone joined22:43
skapunker left22:43
star_prone left22:43
skapunker joined22:44
codedmart left22:44
_nadim joined22:44
star_prone joined22:44
nadim left22:44
tvw joined22:44
star_prone left22:45
skapunker left22:45
toogley left22:45
star_prone joined22:45
star_prone left22:46
star_prone joined22:46
star_prone left22:46
milki lolol22:47
ok22:47
star_prone joined22:47
milki so i imported enough objects for git fsck to be happy somehow22:47
skapunker joined22:47
milki and the push is working22:47
so wierd22:47
star_prone left22:47
Psychiatrist left22:48
star_prone joined22:48
milki we'll see if the resulting repo has a happy fsck too22:48
star_prone left22:49
star_prone joined22:49
milki yup22:49
git fsck is happy22:49
star_prone left22:50
milki so... if i just import those five and build a pack from it, maybe i can scp it22:50
star_prone joined22:50
star_prone left22:50
star_prone joined22:51
star_prone left22:51
star_prone joined22:52
star_prone left22:52
skapunker left22:52
star_prone joined22:52
star_prone left22:53
star_prone joined22:53
mbrzuzy left22:53
iLembus left22:53
milki 1 commit, 3 trees, 1 blob22:54
milki shrugs22:54
rpg left22:54
lindenle left22:54
ojacobson What are you even building22:54
star_prone left22:54
star_prone joined22:55
star_prone left22:55
nfk|laptop left22:55
King_Hual left22:55
star_prone joined22:56
nilg left22:56
milki ojacobson: just trying to git push --mirror a repo22:56
star_prone left22:56
jbudz left22:56
star_prone joined22:56
Balliad left23:01
star_prone left23:01
skapunker joined23:01
_nadim left23:04
phaleth joined23:04
_cyril__ left23:05
riots left23:05
_nadim joined23:05
josuebrunel left23:06
lindenle joined23:06
killa_kyle left23:07
grootseun left23:07
grootseun joined23:08
daito joined23:09
bodom joined23:10
blackjid left23:10
milki hmm23:10
maybe now ...23:10
i might have to push the ancestors still23:10
count-objects confuses me23:10
blackjid joined23:11
bodom Hi there! I have a folder inside a git repo with a .git file on it. Does this file have a special meaning to git? I couldn't find any hint on google23:11
milki bodom: .git contains all the repo information23:11
Nugget the .git /directory/ does23:11
milki bodom: the directory containing the .git folder is a git repo23:11
Nugget is it really a file?23:11
milki it could be a gitlink23:12
star_prone joined23:12
bodom milki: that i know, but thi is a file23:12
discord left23:12
bodom Nugget: yep, it is a file23:12
star_prone left23:12
raijin left23:12
Nugget does it actually contain any data? I don't think it's from .git in any event23:13
daito left23:13
star_prone joined23:13
Nugget there's .gitignore files but not .git files23:13
SrPx joined23:13
star_prone left23:13
elastix joined23:13
jbudz joined23:13
bodom Nugget: yes, it contains "gitdir: ../.git/modules/core"23:13
elastix left23:13
raijin joined23:14
star_prone joined23:14
DavidDudson left23:14
Nugget huh, that may be a thing23:14
https://groups.google.com/forum/#!msg/repo-discuss/1TJr_aHfGm0/032CzSW7E6EJ23:14
possibly relevant23:14
star_prone left23:14
star_prone joined23:14
jast so that sounds like your folder is a submodule of the main repo23:15
!submodule23:15
gitinfo git-submodule is ideal to add subsidiary git repositories to a git superproject when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes upstream. See http://www.git-scm.com/book/en/Git-Tools-Submodules23:15
star_prone left23:16
bodom jast: you are right :)23:16
star_prone joined23:16
jbudz_ joined23:16
jast and this file is to let git know that your submodule is a repo, too, so you can view its history and stuff23:16
bodom milki, Nugget, jast: thank you :)23:16
star_prone left23:16
bodom yep, mistery solved23:17
jast for various reasons, submodules store their metadata in .git/modules in the main repo, and this is a reference so it can find that while you're in the submodule23:17
Balliad joined23:17
star_prone joined23:17
tvw left23:17
star_prone left23:17
dfaught left23:17
mac_ified joined23:17
jbudz left23:18
star_prone joined23:18
victorgama left23:18
star_prone left23:18
star_prone joined23:18
skapunker_ joined23:18
gaen left23:19
star_prone left23:19
star_prone joined23:19
skapunker left23:19
italoacasas joined23:20
italoacasas left23:21
faux___ joined23:22
awx_ left23:22
italoacasas joined23:22
faux___ left23:22
star_prone left23:23
faux___ joined23:24
kpease left23:24
dregad joined23:27
bronson joined23:27
gaen joined23:28
faux___ left23:28
winter__ joined23:29
ShapeShifter499 left23:29
ferr joined23:29
phaleth left23:29
madewokherd joined23:31
Balliad left23:32
Karkus left23:32
bronson left23:32
gopar joined23:33
SrPx left23:35
editshare-ericf left23:36
cagedwisdom left23:38
SrPx joined23:38
mischat left23:38
mischat joined23:38
bronson joined23:39
xaa left23:39
samw left23:39
a3Dman left23:40
bronson left23:40
nettoweb left23:40
samw joined23:40
bronson joined23:40
doge_ joined23:41
abc123 left23:43
abc123_ joined23:43
a3Dman joined23:44
mischat left23:44
mek42 left23:45
mek42 joined23:45
samw left23:45
mek42 left23:45
govg left23:45
raijin left23:48
spuz left23:48
CheckDavid left23:49
raijin joined23:49
doge_ left23:50
lldoge joined23:50
xaa joined23:52
cdg left23:54
mizu_no_oto joined23:56
codeman left23:58

Logs Search ←Prev date Next date→ Channels Documentation