IRCloggy #git 2012-08-16

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.

2012-08-16

grawity Use SSH remotes in your repositories instead of HTTPS ones00:00
fisted left00:00
Chappo left00:00
grawity as in, `git clone [email@hidden.address]00:00
eltigre ah00:00
Chappo joined00:01
eltigre changing the repo url in .git/config worked that way00:02
ehsan joined00:03
fisted joined00:04
Milossh left00:07
Lord_DeathMatch left00:09
GNUcifer left00:10
harish left00:10
BiggFREE left00:11
hwrd|work joined00:11
hellopat joined00:13
hellopat left00:14
Destos left00:15
duckx left00:15
burzum` left00:17
luxurymode joined00:17
shawngo joined00:18
Davey left00:19
hwrd|work left00:19
ChadStudmuffin left00:19
AaronMT left00:20
subbyyy joined00:23
Xilent_ left00:24
ameoba joined00:24
lresende joined00:25
hyperair left00:27
opus left00:27
opus joined00:28
thiago left00:30
btanaka left00:30
Fangorn__ left00:31
luxurymode left00:31
d1b joined00:33
Ryback_ left00:34
ology left00:35
v0n left00:35
xiangfu joined00:36
private joined00:37
privateGuest2921700:37
flaguy48 joined00:38
luxurymode joined00:40
mklappstuhl joined00:40
etcetera left00:40
Sym3tri left00:42
Destos joined00:43
duckxx joined00:44
dsheets joined00:45
dinesh6654 left00:45
quazimodo left00:45
hellopat joined00:45
dozymoe left00:46
dsheets How to resolve a conflict caused by a wrong automatic rename + modify? Is there a way to tell git to not automatic rename?00:46
itatitat joined00:46
itatitat guys I've a simple question00:46
when I say : $ git push origin master, master is the branch destiny, or the origin?00:46
hwrd|work joined00:47
Destos left00:47
hellopat left00:47
opus left00:47
hellopat joined00:49
Sym3tri joined00:51
dr_lepper left00:52
kenperkins left00:54
grawity itatitat: both00:54
drive-by-advice itatitat: man git-push00:54
gitinfo itatitat: the git-push manpage is available at http://git-scm.com/docs/git-push.html00:54
itatitat ah ok!00:54
thanks00:54
drive-by-advice git push remote refspec00:54
Remote is the repository and master is the branch.00:55
itatitat yes yes, I read something about refspect, can be a tag, and more things, but......each time I read "git push origin master" I'm confuse00:55
molixiaoge left00:55
Sym3tri left00:55
grawity if you only give a single name, "master", git uses the same name for both local and remote branch00:55
itatitat yes I know, but in that instruction is the branch destinY?00:56
ology joined00:56
grawity gives up.00:56
itatitat aaaaaaaaaaaaah00:57
ok, I understand, so that mean: "from master to master in remote"00:57
no?00:57
opus joined00:57
grawity yes00:57
molixiaoge joined00:57
itatitat OK, thanks a lot for your time grawity:00:58
grawity if you just specify "master", it means "from master to origin/master"00:58
itatitat very helpful00:58
molixiaoge left00:58
Karmaon1 joined00:58
itatitat okok.............yeah, thanks!00:58
grawity if you specify "master:somethinelse", it means "from master to origin/somethinelse"00:58
ashirus left00:58
molixiaoge joined00:58
itatitat ou............that's interesting...00:58
RaceCondition left01:00
kermit left01:00
codeFiend left01:00
bgerber left01:00
nglorioso left01:01
dzonder joined01:03
ajpiano left01:06
quazimodo joined01:06
kihap left01:07
hellopat left01:07
kihap joined01:08
kihap left01:08
ajpiano joined01:09
jjbohn joined01:10
hellopat joined01:10
codeM0nK3Y left01:12
nglorioso joined01:14
Fernando1asso left01:14
FernandoBasso joined01:15
rurufufuss joined01:16
hairyasian left01:17
glennpratt left01:18
hyperair joined01:19
bizhanMona left01:20
palm_vue left01:20
Lgb left01:20
codeFiend joined01:20
chrisgeorge joined01:20
Guest71934oakdog801:20
kermit joined01:20
dzonder left01:20
intripoon_ joined01:21
palm_vue joined01:21
Lgb joined01:21
bizhanMona joined01:21
lustucru_ joined01:23
lustucru_ left01:23
dsheets How to resolve a conflict caused by a wrong automatic rename + modify? Is there a way to tell git to not automatic rename?01:23
dsirijus left01:23
dsheets I used the resolve strategy but it doesn't let me mark "deleted by us" trees as existing to merge the new files01:24
intripoon left01:24
duckxx left01:25
lustucru left01:25
GNUcifer joined01:25
tukkol left01:26
cmullican left01:27
Davey joined01:28
frogonwheels_ dsheets: I'm not sure what you mean. How did git automatically rename + Modify? How can you tell. Git doesn't do this afaik01:28
dsheets frogonwheels_: Renaming lib_test/test_accept.ml => lib_test/test_net_lwt.ml01:29
Auto-merging lib_test/test_net_lwt.ml01:29
CONFLICT (rename/modify): Merge conflict in lib_test/test_net_lwt.ml01:29
both files are new in each branch but similar01:29
git wants them to be the same01:29
frogonwheels_ dsheets: ahh. Ok that's a tricky one. Just git checkout <SHA1> -- lib_test/test_accept.ml and add those to your index01:30
dsheets: I mean chekcout the 2, one from each branch and add them to the index, and git commit --amend01:31
mklappstuhl left01:31
frogonwheels_ not git commit --amend - it's in an unmerged state01:31
dsheets frogonwheels_: during the merge resolution?01:31
frogonwheels_ sorry.01:31
fireh joined01:31
frogonwheels_ dsheets: yes, except for the --amend bit.01:32
etcetera joined01:32
frogonwheels_ dsheets: you basically just need to get your index looking how you want it, and commit the merge01:32
dsheets frogonwheels_: wow, thanks, that works great… i dunno why i was hung up on git's confused rename01:34
Turicas joined01:34
frogonwheels_ dsheets: :)01:34
Speed left01:36
_Vi left01:36
_Vi joined01:37
hairyasian joined01:38
Vampire0_ left01:39
apok_ joined01:39
SkAzZ1 left01:39
alegen left01:40
apok left01:41
jackh joined01:43
w09x joined01:43
apok_ left01:43
ology left01:44
TheJH left01:45
barneybook joined01:46
hellopat left01:47
jjbohn left01:47
linoj joined01:48
mike007 joined01:48
gfontenot left01:50
Leonidas_Leonidas01:50
agumonkey left01:51
Vampire0_ joined01:53
ology joined01:54
t0rc left01:55
duckx joined01:55
jonshea left01:56
Fandekasp joined01:58
codeFiend left01:59
pantsman joined02:00
pantsman left02:00
pantsman joined02:00
metcalfc left02:00
hellopat joined02:01
ISF joined02:02
HyperNerdV2 left02:03
towski left02:04
eletuchy_ joined02:05
herdingcat joined02:06
diegoviola joined02:06
bubbles10101 left02:07
zdk joined02:07
eletuchy left02:08
Lulzon left02:08
nglorioso left02:09
itatitat left02:09
Dimitr|2 left02:09
towski joined02:09
nglorioso joined02:09
cybersphinx left02:10
diegoviola left02:11
codeFiend joined02:11
ajpiano left02:12
FernandoBasso left02:12
metcalfc joined02:12
towski left02:13
quotemstr left02:13
metcalfc left02:14
metcalfc joined02:14
ajpiano joined02:14
pdtpatrick left02:15
andrewhl joined02:16
pantsman left02:18
hwrd|work left02:18
ISF left02:20
eletuchy_ left02:21
leila_ left02:22
rchavik joined02:23
rchavik left02:23
rchavik joined02:23
rohan32 joined02:23
mminion joined02:23
mminion left02:24
lresende left02:24
lindenle left02:25
iliketurtles left02:25
iori joined02:26
ology left02:26
Bombe left02:27
mminion joined02:28
rchavik left02:28
mminion left02:28
ISF joined02:29
rchavik joined02:29
duckx left02:32
mminion joined02:32
mminion left02:33
quotemstr joined02:33
quotemstr In the fast{import,export} file format, what are marks, exactly?02:33
dsheets left02:34
cybersphinx joined02:34
diegoviola joined02:36
mminion joined02:37
mminion left02:37
pastime joined02:37
rchavik left02:38
mminion joined02:39
etcetera left02:40
Bombe joined02:40
zph joined02:41
mminion left02:41
jcao219zz_jcao21902:42
frogonwheels_ quotemstr: had a read - suspect they are something specific to the fast-import/export02:42
offby1 quotemstr: I bet esr would know. Poke around in his blog02:42
frogonwheels_ offby1: :)02:42
nothingbutlove joined02:42
frogonwheels_frogonwheels02:43
orafu left02:43
orafu joined02:43
zph left02:43
nothingbutlove left02:44
eletuchy joined02:45
mminion joined02:46
mminion left02:47
Goplat joined02:48
nglorioso left02:49
nothingbutlove joined02:50
juvenal joined02:52
brentratliff left02:52
Douglarek joined02:53
segher left02:53
iliketurtles joined02:54
ISF left02:54
codeFiend left02:54
mminion joined02:55
segher joined02:55
mminion left02:55
eletuchy left02:56
Douglarek hello everybody02:56
I want to know how can i look for remote branches?02:59
eletuchy joined02:59
Chib joined03:00
quazimodo left03:04
quazimodo joined03:05
wolftankk joined03:05
wolftankk left03:05
wolftankk joined03:06
pastime left03:08
frogonwheels Douglarek: you've cloned?03:09
rehat joined03:10
metcalfc left03:11
mike007 Douglarek git branch -a03:11
karlpinc` left03:13
rehat left03:13
karlpinc joined03:13
karlpinc left03:13
Yuuhi` joined03:14
Douglarek ,mike007: tnks03:15
,frogonwheels: tnks too03:15
FreeArtMan joined03:15
jonn can someone explain to me abstractly how two git clients connect to eachother? do they just go over ssh and read the other person's git file?03:15
Yuuhi left03:16
yrlnry joined03:16
yrlnry <yrlnry> why does git-log --stat omit mentioning the creation of zero-length files?03:16
* jn03:16
linoj left03:17
ehsan left03:17
jjbohn joined03:17
yrlnry Sorry for the bad paste, but I would like to know the answer to the question.03:17
SegFault1X|work2 joined03:17
kimico joined03:17
artnez left03:18
kimico` left03:18
mike007 you can connect to a remote git repo via ssh, http, file03:18
artnez joined03:18
SethRobertson jonn: That can happen. Most people have a server (typically accessed by ssh, though http(s) and other protocols are also available) which people use as a common server, like github03:18
allquixotic_ joined03:18
ehsan joined03:19
wart____ left03:19
wart___ joined03:19
SethRobertson yrlnry: If I were guessing, because it did not involve the adding or deletion of a line which is the core of how that works. The source or the git mailing list is probably a better source than IRC for this sort of thing03:19
jonn mike007: whats normal for windows?03:19
mike007 left03:20
ro0 left03:20
canapp left03:20
japankurt left03:20
jonn SethRobertson: is there a free equiv to run locally?03:20
japankurt joined03:20
Orphis_ left03:20
Orphis joined03:20
ro0 joined03:20
SegFaultAX|work2 left03:20
SethRobertson jonn: Tons, including native git. It all depends on what features you want/need.03:20
frogonwheels jonn: !gitolite03:20
gitinfo jonn: Want to host as many git repos (and users!) as you like, on your own server, with fine-grained access control? You want gitolite: https://github.com/sitaramc/gitolite - Documentation: http://sitaramc.github.com/gitolite/master-toc.html03:20
AAA_awright left03:20
allquixotic left03:20
jonn I want to try and push to switch to git at work03:20
DarkClown joined03:20
frogonwheels jonn: from what?03:21
jonn svn03:21
SethRobertson I commend you. It was the best decision I ever made.03:21
jonn SethRobertson: its even more awesome, because we have to have our code in an offline environment too03:21
Drool joined03:21
bubbles10101 joined03:21
Douglarek , jonn svn03:21
AAA_awright joined03:21
frogonwheels jonn: Have you been using git-svn ?03:22
Juri_Agarin joined03:22
zamba joined03:22
Bosox20051 left03:22
FreeArtMan left03:23
chayin_ joined03:23
liori_ joined03:24
lu_zero joined03:24
vals_ joined03:24
lu_zero left03:24
lu_zero joined03:24
w09x_ joined03:24
sporous left03:25
canapp joined03:25
sporous joined03:25
heroux_ joined03:26
pavelz joined03:26
colona_ joined03:26
dsop_ joined03:26
gonzzor left03:26
jjbohn left03:27
gonzzor joined03:27
soren_ joined03:27
jonn so I was thinking of pulling, and then doing a git-batch, writing that to a tape drive, and then importing that offline03:27
http://i.imgur.com/2K3pQ.png03:27
something like that03:27
variable left03:27
heroux left03:27
pavelz_ left03:27
nutron left03:27
awx left03:27
soren left03:27
ro0 left03:27
ro0 joined03:27
ro0 left03:27
ro0 joined03:27
variable joined03:28
variable left03:28
variable joined03:28
awx joined03:28
RichardBronosky joined03:28
Silex^^ joined03:28
ESphynx left03:28
w09x left03:29
flaguy48 left03:29
kcj left03:29
sjefen6 left03:29
cilly left03:29
ipalaus left03:29
lamont` left03:29
twem2_ left03:29
lu_zero_ left03:29
tizzo- left03:29
KBme_ left03:29
oakdog8_ left03:29
chrisward left03:29
blami left03:29
s0undt3ch left03:29
Hamled left03:29
ketas left03:29
Poapfel left03:29
eighty4 left03:29
kart0ffelsack_ left03:29
axrfnu left03:29
madduck left03:29
eightyeight left03:29
Droolio left03:29
Odjuret_ left03:29
tango_ left03:29
albel727 left03:29
Putr left03:29
cschneid left03:29
grillo left03:29
finch left03:29
liori left03:29
flexd left03:29
multi_io left03:29
Silex left03:29
foraks left03:29
rtuin left03:29
jonn frogonwheels: no03:29
nutron joined03:29
frogonwheels jonn: Any reason not to? At least you would get to use git for your own use that way!03:30
iliketurtles left03:30
jonn because working offline is a real PITA03:30
taking maven offline takes -forever-03:30
metcalfc joined03:31
iliketurtles joined03:31
jonn frogonwheels: right now, we have a script that checks our entire branch out from svn, builds it, pulls down dependencies, and writes it to a tape03:32
that takes like 40 minutes03:32
muep joined03:32
rohan32 left03:33
flaguy48 joined03:34
kcj joined03:34
sjefen6 joined03:34
cilly joined03:34
ipalaus joined03:34
lamont` joined03:34
KBme_ joined03:34
twem2_ joined03:34
tizzo- joined03:34
oakdog8_ joined03:34
chrisward joined03:34
blami joined03:34
s0undt3ch joined03:34
Hamled joined03:34
ketas joined03:34
Poapfel joined03:34
eighty4 joined03:34
kart0ffelsack_ joined03:34
madduck joined03:34
axrfnu joined03:34
eightyeight joined03:34
Odjuret_ joined03:34
albel727 joined03:34
Putr joined03:34
cschneid joined03:34
grillo joined03:34
finch joined03:34
flexd joined03:34
multi_io joined03:34
foraks joined03:34
rtuin joined03:34
akheron joined03:34
Ratler joined03:34
hegge joined03:34
kini joined03:34
jhford joined03:34
electrogeek joined03:34
nb joined03:34
Fiouz joined03:34
zibri joined03:34
cmn left03:34
oakdog8_ left03:34
jonn frogonwheels: this splitting sucks :<03:34
luxurymode left03:34
oakdog8_ joined03:35
HyperNerdV2 joined03:35
cmn joined03:36
shane_ joined03:37
_Vi left03:37
BiggFREE joined03:38
Douglarekdouglarek03:39
duckxx joined03:39
corburn joined03:39
lresende joined03:44
iamjarvo joined03:44
frogonwheels jonn: Ok.. I remember this.03:44
nothingbutlove left03:46
Chib left03:48
corburn left03:48
Guest29217 left03:48
jonn frogonwheels: hmm?03:49
private joined03:50
privateGuest3695603:50
frogonwheels jonn: you were talking about this another day? with the one-way tape stuff03:50
jonn yeah03:50
a few days ago03:50
flippo joined03:51
frogonwheels jonn: have you tried a little mock-up of it?03:51
jonn yeah, it blew up because my maven repository was out of date :(03:52
procrastubator joined03:54
kpreid left03:54
kpreid joined03:54
jceb_ joined04:00
yrlnry left04:02
rehat joined04:02
gavin_huang joined04:02
rehat left04:03
kukks left04:03
opus left04:05
ahayweh_ joined04:05
madewokherd left04:06
cakehero left04:07
ahayweh left04:08
ESphynx joined04:09
gitinfo set mode: +v04:10
procrastubator Guys quick, daft question. So I followed the instructions on this page to the T http://qt-project.org/doc/qt-5.0/qt3d-building.html (i.e. git clone nanana and git checkout --track -b qt4 origin/qt4), however I receive the error message "Not a git repository (or any of the parent directories)04:11
Am I referring to the branches wrongly somehow?04:11
frogonwheels procrastubator: did you cd into the directory?04:11
cilly left04:12
procrastubator no because i am idiot.04:12
lol thank you it's a bit too late for coding on this side of the globe04:12
cilly joined04:14
maletor joined04:14
andrewhl left04:15
maletor left04:18
spyro left04:18
frogonwheels procrastubator: you're not the first :)04:19
(to forget to cd ... or to be coding too late into the night )04:19
beautifulmind joined04:19
arietis joined04:19
sangi joined04:20
frogonwheels procrastubator: lol. I just forgot to cd into my newly cloned repo b4 doing an operation. very funny.04:20
procrastubator Haha thanks for the solidarity man :)04:20
noyb joined04:21
maletor joined04:21
d3vic3_ left04:21
beautifulmind left04:22
d3vic3 joined04:23
maletor_ joined04:24
HyperNerdV2 left04:25
maletor left04:26
procrastubator left04:28
hellopat left04:29
leeN joined04:29
graphitemaster left04:30
pretty_function joined04:30
beautifulmind joined04:31
juvenal left04:31
igotnolegs joined04:32
Sigma joined04:32
jkitchen joined04:33
HyperNerdV2 joined04:35
iliketurtles left04:35
maletor_ left04:37
zackiv31 joined04:38
meLon joined04:38
meLon left04:38
meLon joined04:38
guampa left04:39
ReekenX joined04:41
Sigma left04:42
zackiv31 left04:42
jiangenj joined04:45
gitinfo set mode: +v04:45
jiangenj Hi, how to enable git receive-pack on a server?04:46
jasmina87SA__ joined04:46
jasmina87SA__ left04:46
arietis left04:46
pretty_f_ joined04:47
pretty_function left04:49
GNUcifer jiangenj: you are sure you want that?04:49
jiangenj yes, I want to enable gerrit replication service04:49
akiress left04:50
GNUcifer dunno about gerrit .. but rather looks to me you want some authentication04:50
jiangenj I have right permission, but I dont' know how to enable it04:50
GNUcifer i have some mob repos .. these are anonymously pushable, thats what receivepack enabling will do (speaking of git-daemon)04:51
that means anyone can do anything with your code .. still sure?04:51
jiangenj yes, I can set folder permission, right?04:52
GNUcifer eh where?04:52
gerrit? i dont know gerrit ..04:52
jobin joined04:52
bubbles10101 left04:53
jiangenj on the destinate folder04:53
GNUcifer but for git-daemon you dont have *any* authentication and permission checking when you enable receivepack04:53
jiangenj gerrit using git push to backup git projects04:53
bug git-daemon specify where you can push the projects to?04:53
GNUcifer again i dont know gerrit .. but you certainly want to set up some secure way to push stuff04:53
ssh / https04:54
jiangenj I'm in a security network, ssh enabled for each connection04:54
GNUcifer i dont understand ..04:54
jobinandy04:55
GNUcifer why dont you let gerrit push via ssh then?04:55
jiangenj gerrit has a config to enable this kind of push, I don't want to create my scripts to do this kind of job04:56
eletuchy left04:56
jiangenj gerrit documents says to enable receive-pack04:57
GNUcifer urgs04:57
i prolly misunderstand .. but well04:57
wolftankkwolftankk|afk04:57
akiress joined04:59
jceb_ left05:01
pretty_function joined05:06
spyro joined05:07
dogarrhea2_ joined05:08
pretty_f_ left05:09
dogarrhea2_ left05:10
dogarrhea2 joined05:10
Esa left05:10
rchavik joined05:10
dogarrhea2 i am on a particular revision/commit on a particular branch. I want to go back to another revision on this branch and branch from there. how do i do this?05:11
Esa joined05:11
frogonwheels dogarrhea2: git checkout -b newbranchname SHA1ofcommityouwanttobranchfrom05:11
jast git checkout -b newbranch <old commit ID>05:11
jiangenj when I do git pull, I used --squash, then git push the new commits, is it safe, if some of the squashed commits are previously already in the git repo05:14
zapsoda joined05:15
zapsoda left05:15
Oliver_ joined05:16
pretty_f_ joined05:17
pretty_function left05:17
shruggar joined05:19
wolftankk|afkwolftankk05:19
dhruvasagar left05:19
theoliverc joined05:20
dinesh6654 joined05:21
gitinfo set mode: +v05:22
Oliver_ hello everyone!05:23
dogarrhea2 left05:23
gitinfo Oliver_: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.05:24
dinesh6654_ joined05:25
dinesh6654 left05:26
Zenopus_ joined05:26
harish joined05:26
pretty_function joined05:27
pretty_f_ left05:27
amcsi_ joined05:27
onlyme joined05:28
BARNEYB3 joined05:28
_W joined05:29
SNEI joined05:30
Swathe_ joined05:30
Zenopus left05:30
codeshah left05:30
hyperair left05:30
ameoba left05:30
amcsi left05:30
_W_ left05:30
barneybook left05:30
SJS left05:30
Swathe left05:30
ameoba joined05:30
hyperair joined05:30
blast_hardcheese left05:30
Zenopus_Zenopus05:30
yoklov left05:31
onlyme left05:31
dogarrhea2 joined05:32
dogarrhea2 hrm you can't use tab to autocomplete the rest of the hash?05:32
frogonwheels dogarrhea2: don't need to specify the full hash anyway05:33
dogarrhea2: just enough to be unique - first 4 is mostly fine. 10 is almost always enough05:34
Esa left05:34
dogarrhea2 what happens if the first few characters of the hash are not unique heh05:34
and u screw up05:34
or will there be a prompt to disambiguate05:35
frogonwheels dogarrhea2: I don't think it will recognise it as a commit if it's not unique.05:35
dogarrhea2 maybe if you checkout something05:35
frogonwheels dogarrhea2: so yes, it will say it's not recogniseable05:35
darren joined05:36
frogonwheels dogarrhea2: 4 looks like minimum .. and I'm getting a short SHA1 822a is ambiguous.05:36
.. then ambiguous argument '822a': unknown rev ...05:36
pretty_f_ joined05:36
pretty_function left05:36
frogonwheels dogarrhea2: I used git show to test.. but I'm assuming this is rev-parse, so any other command would be similar05:37
_sundar_ joined05:37
tekbwainz joined05:37
MrRoot left05:38
tekbwainz left05:38
tekbwainz joined05:38
tekbwainzphreaky05:38
Esa joined05:39
marc_kdab_ left05:40
archdori joined05:40
dogarrhea2 hrm i git checkouted a particular revision and it appears i've lost some information in git log05:42
how do i see all my revisions?05:42
frogonwheels dogarrhea2: personally I use gitk --all :)05:42
dogarrhea2 hrm yuck i have to install tk05:43
i'm using cygworst05:43
subbyyy left05:43
subbyyy joined05:43
iamjarvo left05:44
frogonwheels dogarrhea2: ah. I'm on msysgit.05:44
chrisgeorge left05:44
blast_hardcheese joined05:44
dogarrhea2 msysgit?05:45
frogonwheels dogarrhea2: it's a more native-windows version of git - based on msys. It has its own issues, but it isn't too bad.05:46
maleknet joined05:46
dermoth|home joined05:46
dogarrhea2 yuck05:47
this is taking to long to donwload.. am i'm not sure it's even the right package. tk is apparently too ambiguous for cygwin updator05:47
gtk.. tk tcl.. which package05:48
frogonwheels dogarrhea2: lol. yes, gitk and git gui use tk05:48
Per4u3e joined05:49
Esa left05:50
kermit left05:51
dogarrhea2 ok i'm going to not get sucked into an xorg xwindow mess05:51
this is stupid05:51
anyone know what this error means? Error in startup script: no display name and no $DISPLAY environment variablewhile executing05:52
frogonwheels dogarrhea2: aahhh of course. that would make sense unfortunately. :|05:52
SyouJyoA left05:52
frogonwheels dogarrhea2: you need an X11 display to run the program05:52
dogarrhea2 really?05:52
that is sooo dumb05:52
o well05:52
frogonwheels dogarrhea2: no. it's cygwin. that's how it work. That's why I use msysgit.05:52
*works05:52
Esa joined05:52
dogarrhea2 bah it's too late now05:53
cwang left05:53
dogarrhea2 i just need the history05:53
cwang joined05:53
neurodrone left05:53
frogonwheels dogarrhea2: yeah. fyi you can install Xming as a nice xserver05:53
GNUcifer left05:53
frogonwheels dogarrhea2: at least that's one thing about X protocol .. it's a protocol05:54
marc_kdab_ joined05:54
dogarrhea2 ok git reflog05:54
i'm NOT going down the xwindows insanity route05:54
pretty_f_ left05:54
frogonwheels :)05:54
pretty_function joined05:54
frogonwheels dogarrhea2: git reflog shows you your history of branches05:55
dogarrhea2 hrm i can't checkout05:56
something about i need to commit current changes (don't want to)05:56
frogonwheels dogarrhea2: you can always !stash05:57
dogarrhea2 or stash .. how do i do neither and just put the head somewhere05:57
frogonwheels ?05:57
dogarrhea2 does stash change anything?05:57
frogonwheels dogarrhea2: stash will remove any changes you've made to files05:57
dogarrhea2: which is the point of it.05:57
cwang left05:58
frogonwheels dogarrhea2: if you can't checkout it's cause you've modified a file that will be changed by the checkout.05:58
dogarrhea2 yea, i don't care about that change at all05:59
so git stash uses a "stack" ?? so it's only temporary in memory or there forever?05:59
jceb_ joined05:59
Esa left05:59
afuentes joined06:00
Per4u3eSyouJyoA06:00
frogonwheels dogarrhea2: it's in the git db.. but if you git stash pop it will restore it back to your wd and delete the stash pointer.06:00
dogarrhea2: which will mean a git-gc will garbage-collect the temporary stash commits.06:00
dogarrhea2 hehe. seems like extra complexity for nothing06:01
you mind as well give the option of committing or throwing away06:01
frogonwheels dogarrhea2: pop also causes standard conflict resolution to happen.06:01
dogarrhea2: you can always throw away if you want.06:01
Esa joined06:01
dogarrhea2 it forces you to commit or stash..06:02
frogonwheels dogarrhea2: git reset --hard will remove workingdir changes to all tracked files,06:02
dogarrhea2: Git does not like overwriting user's changes06:03
*changes to workding-directory files that is.06:03
jceb__ joined06:03
dogarrhea2 it might be confusing if someone forgets to clean the stash and later developers are like: "what?"06:03
frogonwheels dogarrhea2: when you stash, they are then commits, with a base - and git can do smart conflict resolution stuff.06:03
dogarrhea2: it's only in your local db06:03
dogarrhea2 can you remove commits? say there's a commit between two other commits and u want to get rid of it and join the other two06:04
frogonwheels dogarrhea2: !rewrite .. but sure06:04
gitinfo dogarrhea2: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config)06:04
frogonwheels dogarrhea2: git rebase -i COMMIT~1 and just delete the offending commit.06:04
dogarrhea2: delete/squish or whatever. I often !sausage make my commits06:05
gitinfo dogarrhea2: [!sausage_making] Some developers like to "hide the sausage making", transforming their commits before presenting them to the outside world. See http://sethrobertson.github.com/GitBestPractices/#sausage and !perfect06:05
dogarrhea2 only works on non branching poitns i would assume06:05
frogonwheels dogarrhea2: sure. doing it the other side of merge is tricky. and doing it the other side of the branch would also mean a rebase of the branch06:06
jceb_ left06:06
frogonwheels I mean the other branch06:06
dogarrhea2 hrm i'm not sure about something... so if you checkout from an earlier revision, make changes and commit, the checkoued earlier version will now be changed?06:07
jceb__ left06:07
dogarrhea2 that sounds almost as bad as removing a commit between commits06:07
frogonwheels dogarrhea2: no.06:07
dogarrhea2: you'll create a branch point. and if you don't checkout a branch, you'll be in a !detach state.06:08
gitinfo dogarrhea2: [!detached] A detached HEAD(aka "no branch") occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach06:08
dogarrhea2 it will auto branch with an automatic name?06:08
!reattach06:08
gitinfo Letters refer to !detached. (a) and (b): 'git checkout branchname' to continue working on another branch, or 'git checkout -b branchname' to start a new one here; (c) git am --continue; (d) git rebase --continue06:08
frogonwheels dogarrhea2: a 'branch' just means there's 2 or more commits with that node as a parent.06:08
dogarrhea2 wow that sounds like usability bug infinity or something06:09
frogonwheels dogarrhea2: nope. not at all.06:09
dogarrhea2 to allow someone to point their changes to neverland06:09
frogonwheels shrugs06:09
frogonwheels it warns you.06:09
dinesh6654 joined06:09
The24z joined06:09
dogarrhea2 they might be under the impression that a commit saves it06:09
frogonwheels dogarrhea2: and it's in the reflog, so it's hard to lose it.06:09
dogarrhea2 but then they go back to where they were (without branching) and their work is lost?06:09
frogonwheels dogarrhea2: well it does, it will s tick around for a few weeks06:10
akiress left06:10
dogarrhea2 but how do you get to it?06:10
frogonwheels dogarrhea2: the reflog06:10
dogarrhea2 this sounds kind of like the insertion and deletion of nodes..06:10
since this new commit that is in neverland is not attached to anything06:10
frogonwheels dogarrhea2: nope. not at all.06:10
dogarrhea2 isn't that dangerous?06:10
frogonwheels dogarrhea2: meh. only if you let it be.06:10
dogarrhea2: once you've done it once, it's a lot less scary06:11
dogarrhea2 if you commit something that is not topologically attached, how is that user friendlY? it's just so easy to git checkout whatever06:11
frogonwheels dogarrhea2: there are many reasons to be able to do it. one is that routines like rebase and multiple cherry-picks generally commit in a detached state, so t hat there's only one move of the final head in the reflog06:12
dogarrhea2 no wonder people get screwed up repos06:12
civilordergone left06:12
dinesh6654_ left06:12
dogarrhea2 english?06:12
frogonwheels dogarrhea2: sorry. outa time. gotta work.06:13
dogarrhea2: !doc06:13
gitinfo dogarrhea2: A list of useful documentation of all kinds is here: http://git-scm.com/documentation -- or try the wiki at http://git.wiki.kernel.org/. Also try typing "!book" "!cs" "!bottomup" "!parable" "!best_practices" or "!vcbe" or "!designers" here in IRC. !book is probably the most helpful.06:13
frogonwheels dogarrhea2: !simple06:13
gitinfo dogarrhea2: At its heart git is made up of many concepts that are individually simple. Getting the whole picture right is often tricky, and it is usually about breaking up the complex concept into its simple, individual parts and grokking those. Both !bottomup and !cs will help with that.06:13
dogarrhea2 yuck06:13
The24z !cs06:14
gitinfo "Git for Computer Scientists" is a quick introduction to git internals for people who are not scared by phrases like Directed Acyclic Graph. http://eagain.net/articles/git-for-computer-scientists/ See also !concepts !bottomup06:14
The24z !book06:14
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable06:14
dogarrhea2 i think the other developers iw ork with are going to be very angry when we go away from perforce06:14
shruggar left06:14
frogonwheels dogarrhea2: they will be if you teach them. good luck.06:14
The24z !bottomup06:14
gitinfo 'Git from the bottom up' starts with explaining the building blocks of git and proceeds to tell you how they fit together. http://ftp.newartisans.com/pub/git.from.bottom.up.pdf06:14
dogarrhea2 i'm not the tools architect :/06:14
akiress joined06:14
The24z !gcs06:14
gitinfo [!concepts] "Git Concepts Simplified" explains the basic structures used by git, which is very helpful for understanding its concepts. http://sitaramc.github.com/gcs/06:14
The24z !designers06:15
gitinfo 'Git for Web Designers' is a quick "Who why what when how" on VCS and git: http://www.webdesignerdepot.com/2009/03/intro-to-git-for-web-designers/06:15
dogarrhea2 o well. i will bring popcorn to work every day after we start using it06:15
maleknet left06:15
mishok13 joined06:15
Nirvanko joined06:16
papegaaij joined06:17
dogarrhea2 got a 60 year old developer, a 35 year old developer from ibm, a developer from india who doesn't speak english well, the tools architect pushing for git, a build/automation team lead and a manual qa person who uses excel sheets to store test stuff.. this will be so fun watching how they all react to git06:18
frogonwheels dogarrhea2: what's your dev environment?06:19
dogarrhea2 i'll be fine as long as i know these very extremely easy (usability bug infinity) pitfalls like "git checkout sha" and changes go to nowhere, before i actually destroy anything.. but not so sure the others will do the same06:19
frogonwheels Ie. why use cygwin git and not msysgit ?06:20
flijten joined06:21
jceb__ joined06:21
dogarrhea2 our dev environment is a bit fragmented at the moment.. some of us use eclipse some use intellij, some are on linux, some on windows, our unit testing is a mix of junit and java classes that throw exceptions manually, we use perforce hudson ant haxe and other things06:21
tsdh joined06:21
dogarrhea2 your typical spaghetti enterprise legacy stuff06:21
lb joined06:23
lb left06:23
lb joined06:23
piti joined06:23
jey left06:23
dogarrhea2 i think our architect is mroe focused on new dev rather than maintenance of all these spring mvc/hundreds of thousands of lines of ant code, xforms, other xml config, haxe compilation files, custom js built libraries from ie 5 era, etc06:23
blast_hardcheese left06:24
zz_jcao219jcao21906:24
dogarrhea2 frogonwheels: to answer your question, our architect doesn't care what individual developers use06:25
since "every clone is it's own repository"06:25
frogonwheels dogarrhea2: ok. well I suggest windows developers use msysgit.06:25
dogarrhea2: exactly. just make sure you are commiting unix line endings06:25
eijk joined06:25
frogonwheels dogarrhea2: !eol06:26
gitinfo dogarrhea2: The option/attribute to use when you need to care about different line-endings in your file: http://timclem.wordpress.com/2012/03/01/mind-the-end-of-your-line/06:26
noyb left06:26
shruggar joined06:27
duckxx left06:27
dogarrhea2 our architect has not run into the 2000+ or so path error thing on git06:27
senny joined06:27
dogarrhea2 where very enterprisy java package/paths are more than whatever number of characters are needed to break git clones06:28
frogonwheels dogarrhea2: ahh. yes there are some path limit issues in msys06:28
dogarrhea2 (on windows)06:28
frogonwheels I think they are less bad in cygwin.06:28
soee joined06:28
SEToChan joined06:28
rehat joined06:29
frogonwheels there has been some discussion in the msys dev about how to cope with the path limit issues... as the limits are backwards compatible windows hacky limits.06:29
blast_hardcheese joined06:29
marthinal joined06:29
ehsan left06:29
frogonwheels dogarrhea2: windows relative paths cannot make use of the longer path names.06:29
ahayweh joined06:29
w09x_ left06:29
frogonwheels dogarrhea2: I'm talking winapi here.06:30
lustucru joined06:30
dstorrs left06:30
jdav_gone left06:31
w09x joined06:32
StarOnD joined06:32
StarOnD left06:33
ahayweh_ left06:33
jjang joined06:33
mishok13 left06:33
w09x left06:33
metcalfc left06:33
spyro left06:34
jjang_ left06:34
Anubisss__ left06:35
lresende left06:35
kaen left06:35
The24z left06:36
jdav_gone joined06:37
olmak joined06:38
olaf_ joined06:38
Nirvanko left06:39
Nirvanko joined06:39
spyro joined06:39
spyro left06:39
spyro joined06:39
dzonder joined06:40
OOPMan joined06:41
ph^ left06:42
Guest36956 left06:43
igotnolegs left06:43
pdelvo joined06:46
dogarrhea2 left06:47
darren left06:48
Davey left06:48
Alvo joined06:49
andy left06:49
quazimodo left06:50
vervic joined06:51
olmak left06:51
lirt joined06:52
shelhamer joined06:54
dc5ala joined06:54
shelhamer left06:54
dstorrs joined06:55
skorgon joined06:55
skorgon left06:55
skorgon joined06:55
osmosis left06:56
pantsman joined06:58
pantsman left06:58
pantsman joined06:58
mishok13 joined06:58
subbyyy left06:58
hoschi joined06:59
Pugnax joined06:59
herdingcat left06:59
shruggar left07:02
agumonkey joined07:02
Pugnax left07:02
jkremser joined07:03
kaen joined07:03
dinesh6654 left07:05
ChadStudmuffin joined07:05
kkszysiu_work left07:06
jiangenj left07:07
The24z joined07:07
dhruvasagar joined07:07
EhevuTov joined07:09
jonshea joined07:09
bogwonch joined07:10
jargon- joined07:10
patrick85 joined07:11
lustucru left07:11
HyperNerdV2 left07:11
nor5trom joined07:12
Maccer left07:12
macer_ joined07:12
zapy joined07:13
jave left07:13
jave joined07:14
macer_ left07:14
vervic left07:15
robbyoconnor left07:15
cilly left07:17
dpino joined07:17
palyboy left07:18
thirdknife joined07:19
flijten left07:19
palm_vue left07:20
bizhanMona left07:20
Lgb left07:20
ChadStudmuffin left07:20
intransit left07:20
The24z left07:20
palm_vue joined07:21
Lgb joined07:21
dzonder left07:21
bizhanMona joined07:21
dzonder joined07:22
bubbles10101 joined07:22
Oliver_ left07:26
harish left07:26
StefanM left07:26
ph^ joined07:27
dhruvasagar left07:27
dhruvasagar joined07:27
theoliverc left07:28
giallu joined07:29
bogwonch left07:30
SyouJyoA left07:30
flijten joined07:32
ConstantineXVI left07:33
quazimodo joined07:33
quazimodo left07:35
thiago joined07:35
Textmode left07:36
babilen left07:37
ReekenX left07:38
pdelvopdelvo|afk07:38
beautifulmind left07:39
amcsi_work joined07:39
jave left07:41
eregi joined07:41
eregi hi! I was trying to do the first push, but I'm getting an error. http://pastebin.com/8d5ZpgkH any ideas how to find out what's wrong07:42
jceb_ joined07:42
amcsi_work_ joined07:42
jave_ joined07:43
jiangenj joined07:43
marthinal left07:43
Milossh joined07:43
amcsi_work left07:43
rurufufuss left07:43
gitinfo set mode: +v07:44
jiangenj Hi, I want to know if multi threads is supported during git fetch07:44
jceb__ left07:44
jiangenj We need to sync code each day from another site on a slow connection like 1000KB/s07:44
and the connection is shared07:45
tqmz joined07:45
dzonder left07:46
vals_tango_07:46
TheHaven joined07:47
jceb_ left07:48
Putr left07:48
fisted left07:48
fisted joined07:48
thirdknife left07:49
Goplat left07:50
thirdknife joined07:50
jiangenj ?07:50
Oliver_ joined07:51
jkremser left07:51
Textmode joined07:51
Putr joined07:51
joephelius left07:52
dr_lepper joined07:52
dr_lepper left07:52
dr_lepper joined07:52
gry left07:52
patrick85 left07:52
gitinfo set mode: +v07:53
arex\ Any one know what the VS integration in gitextensions is/does?07:53
jkremser joined07:53
simesy left07:55
Jay_Levitt joined07:55
simesy joined07:55
rurufufuss joined07:55
hakunin joined07:56
claudiu__ joined07:56
mkj_wk left07:56
legumbre_ joined07:56
mkj_wk joined07:56
Textmode left07:57
agumonkey left07:58
agumonkey joined07:58
legumbre left07:59
soren_ left07:59
harish joined07:59
shruggar joined07:59
adam_g left07:59
arturaz joined07:59
eregi left07:59
aaronky- left08:00
simesy left08:00
adam_g joined08:00
aaronky joined08:00
boombatower left08:00
eltigre left08:01
toothrot left08:01
toothr joined08:01
jceb_ joined08:02
jkremser left08:03
LimeBlast joined08:03
d3vic3 left08:04
pantsman left08:04
eregi joined08:04
soren joined08:05
blami_ joined08:05
jkremser joined08:05
eregi Hi! I'm trying to do the first push, but I get fatal: The remote end hung up unexpectedly08:05
It always occurs at ' writing objects: 26% '08:06
d3vic3 joined08:06
jceb_ left08:06
jceb_ joined08:07
Sebo joined08:09
Textmode joined08:09
SEToChan if i want to remove some file from source controll, how can i do it?08:10
jast eregi: are there very big files in your repository?08:11
SEToChan: git rm --cached08:11
or 'git rm' to remove the physical file as well08:11
eregi jast, well the total dir size on my development server is ~ 28 mb08:12
lng joined08:13
lirt left08:14
lng Hi! I have created new rsa key-pair and it prompts me to enter passphrase evrytime I clone the project. Why? ssh-agent should take care of that automatically, right?08:15
eregi jast, currently it's frozen on Writing objects: 26% (527/2024), 1.02 MiB | 1.00 MiB/s08:15
matled left08:19
niax lng: did you add the new key to your agent?08:19
artem joined08:19
lng niax: do you mean the server?08:19
artem left08:19
lng I can connect08:19
niax ssh-agent won't magically pick up new keys08:20
lng oh08:20
ConstantineXVI joined08:20
niax you have to add it with ssh-add08:20
lng I see, thanks08:21
quazimodo joined08:21
artnez left08:21
jiangenj left08:24
amcsi_work_ left08:25
amcsi_work joined08:25
schemula_ joined08:26
lng niax: I always get "Could not open a connection to your authentication agent"08:27
maksim joined08:27
eregi Any recomendations how to fix this - http://pastebin.com/PtzXsFau ?08:28
maksim left08:28
cedeon joined08:29
schemula left08:30
schemula_schemula08:30
wolwid joined08:30
polymar joined08:31
codecowboy joined08:31
Lord_DeathMatch joined08:31
lng niax: resolved08:32
TheJH joined08:33
kaen left08:33
C8H10N4O2 left08:33
codecowboy hi. if i have created a new local branch and set it to track a remote branch, what is the best/easiest way to keep the local branch up to date? should i pull or rebase?08:34
rehat left08:34
jiangenj joined08:36
FauxFaux codecowboy: Depends which you want.08:36
molixiaoge_ joined08:36
molixiaoge_ left08:37
molixiaoge_ joined08:37
eregi anyone?08:37
jmd joined08:38
molixiaoge_ left08:39
molixiaoge left08:39
molixiaoge_ joined08:39
Vile left08:39
maksim joined08:39
codecowboy FauxFaux, i dont know that, hence the question.08:40
maksim Hi, what is the difference between using rebasing and branching ?08:41
*rebasing and merging i mean08:41
Karmaon1 left08:41
Alvo left08:42
Alvo joined08:42
polymar left08:42
thiago maksim: rebasing means "take all the patches and reapply them on top of the new base"08:43
that means each and every one of the commits must be valid, on top of the new base08:43
merging means "calculate the end result, assuming the two sides happened in parallel"08:43
if there are no conflicts, in general the end result will be the same08:44
if there are conflicts, you'll need to fix them in every commit, not just in the final08:44
eregi Ok, if anyone else encounters the same error - git config --global http.postBuffer 524288000 fixed it for me08:44
schemula left08:45
RaceCondition joined08:45
schemula joined08:45
letharion left08:45
timthelion joined08:47
kanupatar joined08:48
kanupatar hi guys08:48
gitinfo kanupatar: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.08:48
kanupatar I am using svn for 10 years08:48
I just used git for checking out some android source08:48
thirdknife left08:48
kanupatar didn't try any commits or developements08:49
achadwick joined08:49
kanupatar so I head git is better than svn08:49
babilen joined08:49
kanupatar so I am planning to put a suggestion to my uni to introduce git..can you guys help me to proceed with that08:49
how can I move on?08:50
amcsi_work hello, when git pushing through ssh onto a remote server from mine, git push gets stuck in the middle, always at the same time. This may be an ssh issue? Please, how do I fix this? :/ this is the second server it happens on, and I really need this to be fixed08:50
OMGOMG kanupatar: you don't use git yourself, but you want to introduce it?08:50
kanupatar I need to show the difference + extra features + usablity,portability etc08:50
OMGOMG: yes, by hearing from lot many friends08:50
mklappstuhl joined08:51
thiago left08:51
borwar joined08:51
borwar left08:52
d3vic3 left08:54
gavin_huang left08:54
letharion joined08:55
kanupatar gitinfo: any helps?08:55
maksim thiago: you mean in case of rebasing i will need to fix them in every commit?08:55
superfluous joined08:55
OMGOMG kanupatar: i suppose you could start here http://www.youtube.com/watch?v=4XpnKHJAok808:57
Bartzy joined08:58
kanupatar OMGOMG: ok thanks08:58
Bartzy Hi08:58
if I have branch A which the origin for is master08:58
kanupatar OMGOMG: means oh my God x 2?08:58
Bartzy and I then have branch B which the origin for is branch A08:58
now I rebased branch A from master08:58
when I rebase branch B from branch A, I get a problem - right ? because history was changed08:58
how can I solve this ?08:59
whitman joined08:59
maksim left08:59
cmn left08:59
berserkr joined09:00
codecowboy I want to apply any remote changes to my local feature branch. Do I just do a pull to do that? Or is that what rebase is for?09:00
This is to stay up to date before committing or merging anything09:01
anildigital left09:01
anildigital joined09:01
thirdknife joined09:01
oojacoboo left09:02
jonshea left09:02
fornext joined09:03
afuentes left09:04
fornext left09:04
fornext joined09:04
pdelvo|afkpdelvo09:05
oojacoboo joined09:05
afuentes joined09:05
d3vic3 joined09:06
thelazydeveloper joined09:09
dstorrs left09:10
cmn joined09:11
Bartzy left09:11
codeshah joined09:13
aspotashev left09:13
Vert joined09:15
Vile joined09:16
EhevuTov_ joined09:17
EhevuTov_ left09:17
charon codecowboy: why "before committing"? don't be afraid of committing09:19
why into a feature branch? it tends to contaminate them with unrelated changes, and is generally not recommended09:19
and using pull before merging is contradictory, because !pull09:19
gitinfo pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/09:19
codecowboy charon, i suppose i just thought a merge would be less painful in future if i kept my feature branch u to date. also, what if code which has side effects for my code changes without me knowing? i would implement my feature incorrectly09:20
wolwid left09:20
charon codecowboy: well, the way i generally go about it is: git checkout feature^0; git merge master; <test>; git checkout feature09:21
the trick being that checout feature^0 makes you !detached, and the resulting merge is "lost" once you move back to the branch09:21
gitinfo A detached HEAD(aka "no branch") occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach09:21
charon so it results in a temporary for-testing merge09:21
*if* such testing, or just watching the progress of master, tells you that you need to stay up-to-date because of a side effect that master has on you, then a merge may indeed be the best choice09:22
(the other one being to make a mental note about what needs to be fixed at the merge into master)09:22
nocturnal joined09:22
codecowboy charon, i think you are confusing me with someone who knows what tyhey're doing09:22
charon but if you just do that whenever you feel like it, you'll have lots of "Merge branch master ..." commits that don't really mean anything09:22
marthinal joined09:23
codecowboy charon what is <test>09:23
charon test whether your code still works, by whatever means you normally do that09:24
e.g. make && make test09:24
thirdknife left09:24
codecowboy charon, thanks. i dont think i will do what you are suggesting, though as it sounds dangerous in the wrong hands09:25
Turicas left09:25
keller left09:26
charon shrugs09:26
charon for future reference, this is in man gitworkflows, throw-away integration09:26
gitinfo the gitworkflows manpage is available at http://git-scm.com/docs/gitworkflows.html09:26
charon it also loses some of its danger if you use a temp branch instead of a detached HEAD, as described there09:26
BiggFREE left09:29
EhevuTov left09:29
ipalaus left09:29
Jay_Levitt left09:30
ipalaus joined09:32
Chibby_ joined09:32
codecowboy charon, thanks will take a look09:32
aaronj is there a way to manage file permissions in git? I tried chown a file before committing but it didn't seem to save that change in a fresh clone09:33
and when I chown a file git doesnt' register any change09:33
OOPMan left09:33
selckin it only tracks +x, so no09:34
charon aaronj: git only tracks the u+x bit. perhaps you should look into etckeeper and such09:34
(what problem are you trying to solve, anyway?)09:34
aaronj charon: thx, will do09:34
frogonwheels aaronj: not directly. You could possibly make use of post-checkout hook and a text file containing stuff?09:34
selckin !deploy09:34
gitinfo Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html09:34
RaceCondition left09:34
frogonwheels aaronj: ah yes.I was going to point to etckeeper as well, I think it has a mechanism09:34
aaronj cool, looks good09:35
charon: just trying to fit git into a deployment scenario :)09:35
hays left09:37
malesca_ left09:37
tic left09:38
shreya joined09:38
tic joined09:38
thiago joined09:38
lsobral joined09:39
ameoba left09:40
Sebo left09:40
Sebo joined09:40
Lgb left09:40
bizhanMona left09:40
malesca joined09:40
Lgb joined09:41
Kicer86 joined09:41
bizhanMona joined09:41
hays joined09:41
ameoba joined09:41
The24z joined09:42
The24z left09:43
The24z joined09:43
The24z left09:43
The24z joined09:44
_aeris_ joined09:45
juvenal joined09:45
juvenal left09:45
alexukf joined09:47
Weiss left09:48
PetrMotejlek joined09:49
Weiss joined09:50
cjs joined09:50
RaceCondition joined09:50
simesy joined09:50
DarkClown left09:51
cjs I've got a repo cloned from one with two branches, but I'd like my local clone to bring in the data only for one branch, in order to save disk space. Any idea how I'd do that?09:51
charon man git-clone --single-branch09:52
cjs: note that this is a fairly recent development, your git might be too old09:52
kkszysiu_work joined09:52
cjs Yeah, mine is too old, unfortunately.09:52
jackh left09:53
cjs (1.7.9.5)09:53
_aeris_ hello #git !09:53
gitinfo the git-clone manpage is available at http://git-scm.com/docs/git-clone.html09:53
_aeris_: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.09:53
cjs Hm. Maybe the --depth thing will help me save disk space?09:53
_aeris_ i have a little problem with git stash09:53
charon cjs: you can, however, emulate clone by hand if you are too lazy to update09:53
cjs I'm really interested only in reading the checked-out data, for this particular copy.09:53
alexukf left09:54
charon cjs: it goes roughly like: git init; git remote add origin <url>; edit the fetch lines in .git/config in the obvious way, replacing * with your branch; git fetch origin; git merge origin/branchname09:54
(ok, that merge is just a veeeery lazy way to point another branch at it)09:54
jast sitaram: the "D" command doesn't seem to spit out an error message if you try to rm a locked repo. perhaps that should be changed?09:54
charon instead, maybe use 'git checkout -b branchname origin/branchname' so as to not learn any bad habits from me.09:54
cjs charon: Oh, that appears to make sense.09:54
iori left09:55
_aeris_ « git stash apply » returns me a « Could not restore untracked files from stash »09:55
but unable to find what file i have to remove…09:55
sitaram jast: could you send me an email? I'm doing too many things right now and anyway can't get to it for a week!09:56
cjs charon: Isn't lazier just to say, "git checkout branchname"? My versions of git will automatically create a local branchname as a tracking branch of origin/branchname if branchname doesn't already exist.09:56
harish left09:56
charon cjs: i bow down to your supreme laziness09:58
iori joined09:59
joephelius joined09:59
beautifulmind joined09:59
swair joined10:03
cjs charon: :-)10:03
dhruvasagar left10:04
durre joined10:04
gusnan joined10:04
dhruvasagar joined10:05
jmd I want to make a publicly readable repo. What's the best way to do that?10:05
durre I committed some changes to my local branch. then I did "git checkout hashtag of en earlier commit"… then "git checkout HEAD"…. now my previous seem to be uncommitted again. not sure how to proceed10:05
alexukf joined10:05
heroux_ left10:06
_ikke_ durre: Could you explain it a bit more10:06
durre: !repro10:06
gitinfo durre: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting.10:06
SeoZSeoZ-work[AWAY]10:06
tsdh left10:06
tsdh joined10:07
jast sitaram: sure thing!10:07
jmd durre: git reflog10:08
jast sitaram: actually I think it goes to stderr or something... and since this is an HTTP setup, stderr probably ends up in the web server logfiles10:09
sitaram probably...10:09
msankhala joined10:09
sitaram it's been a while since I looked at that code (and I wrote it for someone else, not myself)10:09
jast ... yep10:09
your command suggestion yesterday works like a charm, btw10:10
berserkr left10:10
alexukf left10:11
swair left10:11
swair joined10:12
durre hmm, might be I'm in the wrong branch messing about10:12
graphitemaster joined10:12
hyperair left10:14
aaronj I've got a submodule I checked out a 'work' branch, how do I merge that in with origin/anotherbranchname and push back upstream ? I don't want to push up the work branch10:15
when I checkout origin/anotherbranchname it says I'm running on a detached head10:16
fireh left10:16
_iron joined10:16
JP__ joined10:17
irqq joined10:18
_sundar_ left10:18
landypro joined10:18
JP__ left10:19
OOPMan joined10:19
jceb_ left10:21
jmd git checkout anotherbranchname ; git merge work10:22
aaronj think I figured it out, I just checkout anotherbranchname and it automatically links i tto origin/anotherbranchname and then I can merge with work10:22
jmd: nice, thanks10:22
dpino left10:23
thirdknife joined10:23
Alvo left10:23
alexukf joined10:23
aaronj jmd: is there a way to have the local version of anotherbranchname automatically there when I submodule update?10:23
jmd So far as I'm aware, there's no such thing as a "submodule" (or "module") in git.10:24
aaronj ?10:24
Alvo joined10:24
aaronj jmd: http://git-scm.com/book/en/Git-Tools-Submodules10:25
jmd I stand corrected then.10:26
arkiver joined10:26
alexukf left10:28
Textmode left10:29
tazle_ left10:29
pandian912 joined10:31
marhaban joined10:32
_sundar_ joined10:32
pandian912 left10:32
thirdknife left10:33
simesy left10:35
simesy joined10:35
myme_myme10:35
cjs left10:36
heroux joined10:38
heoa joined10:38
Oliver_ left10:39
wolwid joined10:39
simesy left10:39
alexukf joined10:41
Sebo left10:41
Sebo joined10:41
tazle_ joined10:41
marhaban left10:43
gavin_huang joined10:43
shreya left10:43
irqq_ joined10:45
eregi left10:46
irqq left10:46
alexukf left10:47
cilly joined10:49
DarkClown joined10:49
arex\ left10:49
shreya joined10:50
lng \exit10:51
exit10:51
lng left10:51
dbr left10:54
jjang left10:54
thirdknife joined10:54
Chappo left10:55
xiangfu left10:56
d3vic3 left10:57
marthinal left10:57
Learath2 joined10:58
d3vic3 joined10:59
superfluous left10:59
alexukf joined11:00
jkremser left11:00
dpino joined11:01
zdk left11:02
schemula left11:03
skobiyan joined11:03
monkeyiq anyone know of a simple/approved method for creating a second fork of a project on github?11:04
alexukf left11:04
selckin bypass the ui11:04
do it the normal git way11:04
lb left11:05
xMYTHICx joined11:05
SkAzZ joined11:05
Learath2 monkeyiq: why need 2 forks11:05
when you can get 2 branches :D11:05
monkeyiq Learath2: yeah, I made one fork with freatures and want a fresh one. Didn't create branches before I started hacking/committed :/11:05
I'd prefer to have multiple separate repos rather than branches11:06
Learath2 monkeyiq: ..11:06
_ikke_ monkeyiq: Why is that?11:06
arkiver left11:06
_ikke_ monkeyiq: That's a bit an svn way of doing things11:06
monkeyiq selckin: I assume normal git way is to clone origin and then add a new remote to push a mirror too11:06
selckin yeha11:06
Learath2 monkeyiq: well you can always start a branch from a specific commit11:06
monkeyiq _ikke_: I've had a little issue with git recently, its more defensive to keep a single repo per patch11:07
jkremser joined11:07
agile left11:07
nada joined11:07
_ikke_ What kind of issue?11:07
monkeyiq while branches are the right way, I'm happy to throw a bit of bandwidth at things to keep things separate11:08
nada left11:08
_ikke_ monkeyiq: You can even clone a repository multiple times11:08
psoo left11:08
monkeyiq _ikke_: I seem to have misused rebase at some point. my patch to origin went from 50kb to 4mb with changes unrelated to stuff I'd touched11:08
_ikke_ monkeyiq: Why do you need multiple github forks?11:08
monkeyiq _ikke_: the main motivation is separation of patches11:09
theGP joined11:09
monkeyiq no single point of failure, the repos only exist until the patch is accepted upstream and then can fade away11:09
paolooo joined11:09
agile joined11:10
durre left11:10
monkeyiq it seems my old workflow of cloning origin and then pushing a copy to github as a new remote is as close as I'll get to multiple forks on github11:10
paolooo left11:10
selckin can always try to learn git better aswel11:11
_ikke_ I don't really get the problem. You can even misuse rebase with different clones11:11
monkeyiq: I think you are trying to solve this issue in the wrong direction11:11
monkeyiq I'll definitely rtfm much more on git, though that will be in a bit when I've done the code hacking I've planned11:11
_ikke_ monkeyiq: A github fork is mainly a way to interact with others11:12
jiangenj left11:12
monkeyiq sorry guys, I know I'm using a hammer to screw in a nail with my usage style :/11:12
_ikke_ monkeyiq: You don't need multiple interaction points with others11:12
monkeyiq: If you want to keep patches seperate, put them in a different branch11:12
angelsl joined11:13
theGP Hi, simple question : Is it good practice to open a bunch of branches to keep track of pending features, kind of like a to-do list? I don't collab with anyone, just me writing the code11:13
_ikke_ theGP: Yeah, that's what branches are for11:14
theGP: People often call them topic branches11:14
selckin you write 5 features at the same time?11:14
paolooo joined11:14
wolftankk left11:14
lb joined11:15
lb left11:15
lb joined11:15
theGP selckin: rather I'm trying to fix a mess I inherited11:15
thanks, off to branchland I go11:15
alexukf joined11:16
_ikke_ rather then piling up everything one one big heap, you devide each function onto different stackes11:17
stacks*11:17
pdelvopdelvo|afk11:18
harish joined11:19
psoo joined11:21
lb left11:21
alexukf left11:22
ipalaus left11:22
lb joined11:23
lb left11:23
lb joined11:23
pdelvo|afkpdelvo11:25
lb left11:25
gavin_huang left11:25
dpino left11:27
xMYTHICx left11:28
cyen left11:28
dpino joined11:29
_eMaX_ joined11:29
_eMaX_ hi all11:29
gitinfo _eMaX_: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.11:29
lb joined11:30
lb left11:30
lb joined11:30
xMYTHICx joined11:32
kleist joined11:32
ipalaus joined11:33
theGP left11:33
alexukf joined11:34
_eMaX_ can I rename a stash?11:34
_ikke_ _eMaX_: A stash doesn't have a name, only a description11:34
blexim left11:36
frogonwheels _eMaX_: you can tag whatever you like, so presumably you can tag one. but why would you want to?11:37
xiangfu joined11:37
frogonwheels _eMaX_: !xy11:37
gitinfo _eMaX_: This sounds like an "XY Problem" http://mywiki.wooledge.org/XyProblem So let's step back for a minute. What are you actually trying to achieve? Why are you doing it this way?11:37
alexukf left11:38
lamont`lamont11:39
_eMaX_ ok can I change the description of a stash?11:40
letharion left11:40
frogonwheels why?11:40
_ikke_ _eMaX_: Nope, you can't11:41
except for applying and resaving the stash11:41
xiangfu left11:42
frogonwheels _eMaX_: but as I suggested, you can tag a stash. but unless you answer the why? I can't really help further.11:43
letharion joined11:43
Psycho_pr left11:43
dpino left11:43
Psycho_pr joined11:43
giallu left11:45
Chappo joined11:46
frogonwheels _eMaX_: hint. I have more information..but it requires some direction!11:46
aruiz joined11:46
cannonball joined11:46
wereHams1erwereHamster11:47
geekbri joined11:47
mikewintermute joined11:47
lixef joined11:48
Maccer joined11:50
alexukf joined11:50
philips_ left11:51
TheJH left11:51
Oliver_ joined11:52
alexukf left11:52
tvw joined11:52
philips_ joined11:53
vervic joined11:53
Ryback_ joined11:55
Esa left11:56
chrisgeorge joined11:56
quazimodo left12:00
Esa joined12:00
hexa2k9 left12:01
hexa2k9 joined12:01
Esa left12:05
marhaban joined12:05
alexukf joined12:07
tinti joined12:12
Psycho_pr left12:13
Esa joined12:14
Oliver_ left12:14
Silex^^Silex12:14
skyf joined12:15
C8H10N4O2 joined12:16
jackh joined12:17
jackh left12:18
marthinal joined12:19
wolwid left12:19
kcj left12:20
dys joined12:21
joephelius left12:23
kurrataW left12:25
cilly left12:26
vervic left12:28
Chibby_ left12:29
xMYTHICx left12:32
jceb_ joined12:33
Psycho_pr joined12:33
Psycho_pr Hi12:33
I just did git checkout some_old_commit12:34
and I want to go back to where HEAD was before12:34
what should I do?12:34
RaceCondishun joined12:34
grawity I think `git checkout -` can do that12:34
or "HEAD@{1}", or just "master" if you were on master12:35
hellopat joined12:35
RaceCondishun left12:35
Psycho_pr Let's see...12:35
charon grawity, Psycho_pr: checkout HEAD@{1} leaves it detached12:36
'git checkout -' is magic in that it actually re-attaches if you were on a branch before12:36
grawity aha12:37
it's also magic in that it does not seem to be documented.12:37
Psycho_pr I did checkout master. Is it now re-attached?12:37
charon Psycho_pr: yes12:37
grawity: hrm, we must have lost it at some point. i swear it was documented when it was added12:37
RaceCondition left12:38
borwar joined12:38
joephelius joined12:38
Psycho_pr Thanks!12:38
charon grawity: no wait, it's still there, buried in the description of <branch> after all the options12:40
mmc1 joined12:40
grawity Ah.12:40
Sebo left12:42
storrgie joined12:42
sangi left12:46
Gentlecat_ left12:46
xMYTHICx joined12:47
iori left12:48
hellopat left12:48
berndj left12:50
rgsteele joined12:50
TheFuzzb_ joined12:54
harish left12:54
theCole joined12:54
afuentes left12:55
Oliver_ joined12:55
freeed joined12:55
quazimodo joined12:56
Sebo joined12:56
lixef left12:57
ddelrio1986 joined13:00
borwar left13:01
camdenx joined13:01
RaceCondition joined13:02
The24z Help! Getting a error: The following untracked working tree files would be overwritten by merge: on git pull origin master13:02
How can I get rid of it?13:02
charon The24z: what are you trying to do?13:03
The24z I want to force my local master branch to be exactly like the remote one. Oddly enough git ls-files does NOT have the file in question in the list. git status shows everything up to date. git rm file does not work.13:03
_ikke_ The24z: That's because the file is not tracked13:04
nwest joined13:04
_ikke_ (and probably ignored)13:04
gmartyn joined13:04
_ikke_ try git ls-files -i13:04
The24z that is true, it is in .gitignore13:04
charon so just run 'git fetch origin && git reset --hard origin/master' ... which spells exactly "make my branch the same as origin/master and trash anything that is in the way, including all my uncommitted work"13:04
running pull for this instead is wrong on many levels, including !pull and !pull413:04
gitinfo pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/13:04
[!fetchfour] Never use the four-word version of git-fetch or git-pull (e.g. git fetch remote refspec). It always ends in tears. Yes, if you understand the implications of FETCH_HEAD it can technically be done, but really it is easier to just fetch the whole remote (or perhaps edit the fetchspec if you never want other bits). If you must, see !fetch4why13:04
MrRoot joined13:04
ehsan joined13:05
thirdknife left13:05
The24z That worked. So what exactly did it do?13:05
charon 'reset --hard origin/master' moves the current branch to point at origin/master (or rather, its tip commit), and trashes all uncommitted work so that the worktree matches the state of origin/master, too13:06
details in man git-reset13:06
gitinfo the git-reset manpage is available at http://git-scm.com/docs/git-reset.html13:06
charon note that it's one of the few git operations with no safety net whatsoever, at least as far as uncommitted work goes13:07
linoj joined13:07
berndj joined13:07
longbeach joined13:07
mikewintermute left13:07
The24z But it only sets the POINTER to point to that commit, it doesn't change anything with the actual files on my disk, am I correct?13:07
That part happens when I execute the fetch.13:08
Is that correct?13:08
charon no13:08
i just said "and trashes all uncommitted work so that the worktree matches the state of origin/master, too"13:08
fetch just serves to update origin/master13:08
to what origin currently has13:08
The24z Thanks for being patient with me. I really wanted to understand this for a long time and you seem very knowledgable. :-)13:08
charon i told you to fetch because 'git pull origin master' specifically does *not* update origin/master, which is a bit of an UI wart13:09
The24z But how does reset update my files when it does not pull any data from the origin13:09
Esa left13:09
charon after fetch, your local repository already has the full state of the remote repo in the origin/* namespace13:09
so it's merely a question of unpacking all of it to your worktree13:09
that's the distributed nature of git: all operations except fetch and push are local (*)13:10
dvide left13:10
charon (*) don't tell me about the exceptions, if you know them you don't need this adivce13:10
The24z ah! git fetch origin downloads the files but they remain in gits data store.13:10
chuckharmston joined13:10
Chib joined13:10
The24z the reset --hard origin/master is a LOCAL operation and tells git to unpack the diffs and move exactly to the current head state of the origin. is that said correctly?13:10
mikewintermute joined13:10
charon yes (well, it's wrong in the implementation details, but meh)13:11
reset --hard C quite literally does: point the current branch to commit C; make the index contents match C (that is, unpack C's tree to the index); make the worktree contents match the index13:11
The24z okay. the fetch is just needed before because otherwise it would not know about the changes that are available on C13:12
charon no, because i was afraid that origin/master would point at an older commit because you hadn't fetched in a way that updates it13:13
at the time reset looks at it, the branch is just a neat way to refer to a commit13:13
but fetch updates *which* commit it refers to13:13
... the origin/master remote-tracking branch, i mean13:14
pinguinux joined13:14
pinguinux left13:14
pinguinux joined13:14
The24z thanks a lot.13:14
that helped a lot13:14
charon (another small misconception is that git does actually not store any diffs; they are always computed on-the-fly. git stores full tree snapshots)13:15
Mtheory joined13:15
v0n joined13:15
Anubisss joined13:15
agileadam joined13:15
Oliver_ left13:15
yuuki__ joined13:16
orafu left13:16
The24z So does git reset in and out of itself go to the server (remote) and check anything? Or does it work purely locally?13:16
iamjarvo joined13:16
charon purely locally13:16
orafu joined13:16
revagomes joined13:17
charon the full list that the (*) above hides is: fetch, push, ls-remote, archive --remote (usually disallowed by server), and the component four programs that implement fetch/push client/server sides13:17
(i hope i got that right)13:17
no other operation talks to the network13:17
oakdog8_ left13:17
oakdog8_ joined13:17
oakdog8Guest3209313:17
glennpratt joined13:18
The24z It's really the first time I understand this.13:18
Are you a contributor to the git code?! :-)13:18
oakdog8_oakdog813:18
charon yes13:18
The24z Wow. Honored.13:18
andrewhl joined13:18
The24z So that really means that a git reset sets the pointer to a specific commit that the ** local ** store knows about. Even the "real" origin/master might be at a different commit.13:19
charon blushes13:19
charon The24z: indeed13:19
bizhanMona left13:20
Lgb left13:20
palm_vue left13:20
orkz_ joined13:20
The24z So I should ideally never to a reset prior to fetching from remote. Expressed differently: First make sure that the local origin/master is the same as the remote origin/master THEN reset13:20
charon well, it depends ;) but yes, in general you want to fetch before working with the remote branches13:21
orkz left13:21
orkz_orkz13:21
charon it's just that this can also become OCD... i mean, there's usually no point in fetching more than once a day from junio's git.git, for example, because it doesn't change that often13:21
Lgb joined13:21
palm_vue joined13:22
bizhanMona joined13:22
john2496 joined13:23
charon btw, if you write down the above list of remote operations, you should add a note that pull=fetch+merge and clone=init+fetch+checkout, so by extension they are also remote13:24
rchavik left13:24
TeckniX joined13:24
charon (using the + in a loose sense, there's slightly more to it than that...)13:24
The24z you should write a book about this. by the way, any book YOU would recommend?13:24
charon !book13:25
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable13:25
localhost joined13:25
localhost left13:25
charon fwiw, the introduction i give to coworkers is loosely based on !cs13:25
gitinfo "Git for Computer Scientists" is a quick introduction to git internals for people who are not scared by phrases like Directed Acyclic Graph. http://eagain.net/articles/git-for-computer-scientists/ See also !concepts !bottomup13:25
The24z !cs13:25
gitinfo "Git for Computer Scientists" is a quick introduction to git internals for people who are not scared by phrases like Directed Acyclic Graph. http://eagain.net/articles/git-for-computer-scientists/ See also !concepts !bottomup13:25
The24z !gitt13:26
gitinfo A book designed to teach people about Git in a real world usage model. The book follows a fictional company as they implement and learn about Git. Covers all 21 standard Git commands. Available for free at http://cbx33.github.com/gitt/13:26
dpwrussell joined13:27
The24z !bottomup13:27
gitinfo 'Git from the bottom up' starts with explaining the building blocks of git and proceeds to tell you how they fit together. http://ftp.newartisans.com/pub/git.from.bottom.up.pdf13:27
rohan32 joined13:27
liori_liori13:28
ehsan left13:29
dpwrussell Apologies for asking what is probably a very obvious question, but I couldn't quite find the answer. I have made some commits to local and I can reverse them out if I want, but what I often want to do is simply make my local clone the same as the remote one again and lose all the local changes. How do I do that. I suspect rebase is involved, but I'm not sure how13:31
I want to lose local changes and local commits completel.13:31
completely*13:31
jmd dpwrussell: git reset13:32
minusthetiger joined13:32
mischat joined13:32
storrgie left13:34
The24z_ joined13:34
dpwrussell jmd: thanks, I knew it was much less complicated than I was thinking13:34
The24z left13:36
The24z_The24z13:36
rmr joined13:37
tubbo does `git push origin --tags` also push all branches to origin?13:37
or just any new tags?13:37
jceb__ joined13:37
jceb_ left13:38
kaen joined13:38
pretty_function left13:38
_ikke_ man git push13:39
gitinfo the git-push manpage is available at http://git-scm.com/docs/git-push.html13:39
bartek_ joined13:39
_ikke_ "All refs under refs/tags are pushed, in addition to refspecs explicitly listed on the command line."13:39
gmartyn what is the best way to see the state of my branch at a previous point in time? it looks like i have to know which of the parent commits to follow when tracing back through a merge, but it's hard to know which one to follow.13:39
bartek_ left13:40
shruggar gmartyn: what are you actually trying to find?13:40
msankhala left13:41
jceb__ left13:42
gmartyn 2 questions really.. 1) how to restore our server to yesterday's state, and 2) when a patch was merged to live. For #2 i tried "git log --ancestry-path --merges {patch #}..live" to find when the patch was merged, but there were several merges, so it's hard to tell which one put it into the live tag13:44
_ikke_ gmartyn: Do you know what yesterdays state was? (was it tagged)?13:45
gmartyn no tag13:45
_ikke_ you could try the reflog13:45
phishy joined13:46
yuuki__ left13:46
corburn joined13:46
t0rc joined13:48
The24z_ joined13:50
The24z_ left13:50
crispus joined13:50
gmartyn reflog just shows me local changes, right?13:50
Noodels joined13:51
The24z_ joined13:51
jargon- left13:51
crispus i just merged a branch, how do i go back and look at what the merge did?13:52
The24z_ left13:52
The24z left13:52
jmd gmartyn: Well it can't show you what happened on a remote, unless you have synced with that remote.13:52
The24z_ joined13:52
Ecesis joined13:53
The24z_ left13:54
jceb__ joined13:54
The24z joined13:54
gmartyn jmd: i see now. thanks. i did sync with the remote13:54
gitinfo set mode: +v13:56
Noodels Hi, does anyone know if it's possible to take an existing svn repository, and an existing git repository based off that svn repository, and merge in the svn history without starting from scratch?13:56
chuckharmston left13:56
storrgie joined13:57
gmartyn Noodels: it is13:57
ReekenX joined13:57
RaceCondishun joined13:58
Noodels gmartyn: That's good news. What term would concisely refer to that? Bearing in mind that I already have an existing git repository with its own set of a few weeks worth of changes.13:58
ehsan joined13:58
JotaLambda joined13:59
gmartyn Noodels: dunno. i remember svn2git seemed to do it13:59
to clarify for myself by putting it in svn terms, there's no equivalent in git of "svn checkout -r {2012-08-01} branches/live" without having a tag that was made on that day of that branch14:00
barq joined14:00
obiwahn left14:00
williamcotton_ joined14:00
Noodels Hmm. I don't know much about svn terms.14:00
_ikke_ gmartyn: What would happen if multiple cmomits were made that day?14:00
Noodels: He's talking about his own situation14:01
iguanna joined14:01
RaceCondition left14:02
RaceCondishunRaceCondition14:02
williamcotton left14:02
williamcotton_williamcotton14:02
_ikke_ Noodels: Is there any connection between the svn and git repository?14:02
Noodels _ikke_: Yeah, they're of the same project. I didn't personally make the git repository, but hopefully the svn repository now is in a state identical to the first git commit.14:02
thirdknife joined14:03
xMYTHICx left14:03
_ikke_ Is this a one off operation?14:03
hyperair joined14:03
Noodels Yep.14:04
aaronj if git only does +|-x for permissions, does it just use the original values for the rest or a set of defaults?14:04
wereHamster aaronj: git uses your umask for everything else14:04
iguanna what is the equivalent command that svn update in git? maybe git checkout14:04
aaronj aka, if I need a directory to be chmod 775 can I get git to do that automatically?14:05
wereHamster aaronj: no14:05
gmartyn _ikke_: it would give you midnight. you can also do something like {2006-02-17T15:30}14:05
wereHamster aaronj: maybe you want !deploy instead.14:05
gitinfo aaronj: Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html14:05
_ikke_ gmartyn: Well, checkout itself has no such option, but git log does14:05
aaronj wereHamster: yea, second time I've gotten that response today LOL14:05
zackiv31 joined14:05
aaronj wereHamster: thanks14:05
Oliver_ joined14:05
iguanna let's say some colleague add some files in the repository and I want to get these files in my local workcopy what command should be use? git checkout?14:06
Noodels iguanna: git pull I think14:06
wereHamster aaronj: that's one too many.14:06
ph^ left14:07
jackh joined14:07
Noodels iguanna: Assuming you're just updating a copy you've already cloned14:07
_ikke_ aaronj: Note to be rude, but maybe take that advice to heart, it'll save you a lot of troubles14:07
gmartyn _ikke_: yeah, but the log includes commits dated when they happened in other branches and not when they finally landed in the live branch14:07
iguanna Noodels: yeah I have already cloned a repository in my local machine14:08
mike007 joined14:10
Noodels iguanna: Actually I think you want git fetch14:11
neurodrone joined14:11
Noodels Are there any ops here? I've got a user asking why they've been banned here.14:11
ska-fan left14:12
Mez__ left14:12
Mez__ joined14:12
Mez__mez14:12
mezMez14:12
_ikke_ wereHamster is one14:13
Noodels Ah, he's sorted it out now.14:13
wolftankk joined14:14
AaronMT joined14:14
jonshea joined14:14
minusthetiger left14:15
berserkr joined14:16
ska-fan joined14:17
jkremser left14:17
giallu joined14:17
wolftankk left14:18
codeFiend joined14:18
TheJH joined14:18
Mtheory left14:19
jkremser joined14:19
AaronMT left14:19
apok joined14:20
Error404NotFound joined14:20
AaronMT joined14:21
rohan32rohan|building14:22
alexukf left14:23
swair left14:23
jmd left14:26
david1010 joined14:27
david1010 left14:27
tsdh left14:28
beautifulmind left14:29
lb left14:29
w41 left14:33
titaniumNoob joined14:34
timini_ joined14:35
_eMaX_1 joined14:35
OOPMan left14:35
chuckharmston joined14:36
Kulrak left14:36
storrgie left14:36
Synthead joined14:37
mike007 left14:37
timini_ left14:37
chinnychin joined14:38
chuckharmston left14:39
_eMaX_ left14:39
axl_ joined14:39
HyperNerdV2 joined14:39
chinnychin left14:40
chuckharmston joined14:40
psoo_ joined14:40
msankhala joined14:40
zapy left14:41
t0rc left14:41
RaceCondition left14:41
papegaaij left14:42
psoo left14:43
fly9 joined14:45
arex\ joined14:45
psoo_ left14:45
drougge left14:45
gitinfo set mode: +v14:46
arex\ Thoughts on TeamCity vs Bamboo? Trying to decide.14:46
rohan|buildingrohan3214:46
dv310p3r joined14:47
cwang joined14:47
juvenal joined14:48
localhost joined14:50
localhost left14:50
gfontenot joined14:50
marhaban left14:51
ph^ joined14:51
agileadam left14:51
tasslehoff joined14:51
localhost joined14:52
tasslehoff Is git-osx the best / a good choice on OSX?14:52
lresende joined14:52
mike007 joined14:54
tqmz left14:54
wereHamster choice for what14:56
brentratliff joined14:56
Guest27074 left14:57
SNEI left14:58
Alvo left14:58
beneggett joined14:58
SJS joined14:58
SJS left14:59
SJS joined14:59
_iron left14:59
jsec joined15:00
jsec left15:00
jargon- joined15:00
itatitat joined15:00
phreaky left15:00
tasslehoff For git on osx, though when you ask I suspect I was a bit vague. I mostly use the command line and magit, so fancy gui is not required.15:01
shreya left15:01
charon i think in mountain lion it is included with xcode anyways15:02
(i'm not a mac user, so i can't say which version)15:02
nixus joined15:02
nixus left15:02
wereHamster tasslehoff: or use homebrew to install the latest git (brew install git). Or use any one of the many graphical clients.15:02
kpreid left15:03
tasslehoff charon: ah, correct. didn't even think to check: git version 1.7.9.6 (Apple Git-31.1)15:03
jsec joined15:04
jsec left15:04
charon apple git... wow15:04
Jay_Levitt joined15:04
Jay_Levitt left15:04
tasslehoff yeah, and they are way ahead of others. already at v31!15:05
_iron joined15:05
shreya joined15:06
juvenal left15:07
flijten left15:08
Topcat joined15:08
itatitat left15:08
Topcat how the hell do I wipe everything that I've not commited if not git reset --hard master15:10
Favorit left15:10
rurufufuss left15:11
wereHamster Topcat: are you looking for alternatives to git reset --hard? There are many15:11
charon Topcat: with the 'master' argument, it will actually also move the branch pointer (if not already pointing at master)15:11
so that doesn't *only* trash uncommitted work15:12
Topcat I've got a number of files i made after a commit not even tracked in staging and I want them gone. Whats the tool?15:12
charon: the branch pointer is the HEAD right ?15:13
charon Topcat: HEAD just names a branch (by name) when it is not detached. reset moves the branch pointed-at-by-HEAD, usually called "the current branch"15:13
wereHamster Topcat: rm <file>15:13
charon also man git-clean to get rid of untracked files15:13
gitinfo the git-clean manpage is available at http://git-scm.com/docs/git-clean.html15:13
intransit joined15:14
wereHamster Q: How do I remove files. A: rm <file>. Next!15:14
hidekin joined15:14
fireh joined15:15
Topcat wereHamster: I'd be after the equivalent of add . but rm . as in rm everything not already tracked. I don't want to rm each file 1 at a time15:15
msmithng joined15:15
Topcat git clean looks like what i want15:16
graphitemaster left15:16
iamjarvo left15:16
Chib left15:16
corburn left15:17
chuckf_chuckf15:17
shawngo left15:18
eijk_ joined15:18
skorgon left15:18
eijk left15:18
Topcat yeah, cheers charon.15:18
minusthetiger joined15:18
duckxx joined15:18
minusthetiger left15:19
thirdknife left15:19
Jay_Levitt joined15:19
Lord_DeathMatch left15:19
OOPMan joined15:20
slimjimflim joined15:20
slimjimflim hi, in svn i do: svn info to find the url of my working copy. how do i find the url in git?15:20
kermit joined15:20
charon slimjimflim: git remote -v. there may be more than one15:21
slimjimflim k ty15:21
Topcat left15:22
TheJH left15:22
finch left15:22
graphitemaster joined15:22
zastern joined15:22
finch joined15:23
torjus_ joined15:24
darren_ joined15:24
thiago left15:24
matthiasgorgens joined15:24
gmartyn is there a convention for how the parents are listed in a merge commit? is the first one the branch that you're in, and the 2nd the branch that you're merging from?15:24
charon gmartyn: correct15:25
theCole left15:26
gmartyn ah, good15:26
Sebo left15:26
andrewhl left15:26
fireh left15:26
matthiasgorgens I have a topic branch that's a fast-forward of master. Is there an easy way to split my topic branch into two, so that everything affecting one (filesystem) subtree goes into one branch and everything affecting another subtree goes into a different one?15:26
jsec joined15:26
jsec left15:26
jsec joined15:26
dsantiago left15:26
matthiasgorgens is using filter-branch the right approach here?15:27
gmartyn thanks charon15:27
ashirus joined15:27
Sky[x] joined15:27
AaronMT left15:27
jonshea left15:28
SirCmpwn_ joined15:28
Jon-- joined15:28
SirCmpwn_SirCmpwn15:28
dcslbw joined15:29
anabelle joined15:29
AaronMT joined15:29
duckx joined15:29
Jon-- git remote set-url --add origin ssh://user@host:port:/path adds for push but not pull. how do I add this for pull as well?15:29
AaronMT left15:29
iocor joined15:30
iocor is there a way to set signoff as on by default in gitconfig?15:30
AaronMT joined15:30
kenperkins joined15:31
dermoth|home left15:31
AaronMT left15:32
dhruvasagar left15:32
charon Jon--: umm... would that make any sense? how is fetch supposed to resolve conflicts between what the two URLs give it? what problem are you trying to solve? i think you should just add multiple remotes15:32
duckxx left15:32
charon iocor: not in commit, but in format-patch15:33
Jon-- charon, I have ssh access over 22 to where the repo is hosted at, I want to move it to use a different port (it will have to when the box is deployed)15:33
and a different host, for that matter15:33
COBadger joined15:33
charon Jon--: but then you'd *replace* the URL, not add one. and i'm reading the manpage to imply that the default without --add is to operate on fetch urls15:34
quotemstr left15:34
dcslbw left15:34
amcsi_work left15:34
Jon-- charon, I was going to add then rm15:35
charon, I saw no option to modify (ignoring going hunting in .git for some conf file by hand)15:35
charon huh? set-url without options modifies15:36
metcalfc joined15:36
ipalaus left15:36
etcetera joined15:37
tasslehoff left15:37
nor5trom left15:38
darren_ left15:38
gigamonkey joined15:38
Vert left15:38
Jon-- charon, fixed it, I didn't see set-url15:38
dzonder joined15:39
jceb__ left15:39
gtrak joined15:39
berserkr left15:39
slimjimflim if i create a free account on github, can somebody with a private repo give me access to it?15:40
FauxFaux Yes.15:40
slimjimflim k15:40
luxurymode joined15:41
nwest left15:41
charon matthiasgorgens: it's a big hammer, but if your commits are all tangled up, probably a fairly quick solution ... if you know how to wield it15:41
jkremser left15:42
utdemir joined15:42
tasslehoff joined15:42
glennpratt left15:43
Sebo joined15:43
hidekin left15:43
dogarrhea2 joined15:43
HyperNerdV2 left15:44
arturaz left15:44
glennpratt joined15:44
zdk joined15:44
shruggar left15:46
axl__ joined15:47
kukks joined15:48
kukks left15:48
kukks joined15:48
axl_ left15:49
axl__axl_15:49
bgerber joined15:49
ISF joined15:51
_sundar_ left15:51
ipalaus joined15:53
bgerber left15:53
bgerber joined15:54
bLUEE joined15:55
cwang left15:55
iocor left15:55
_eMaX_1 left15:57
psoo joined15:57
mmc1 left15:58
pinguinux left16:00
bLUEE left16:00
fission6 joined16:01
TheJH joined16:01
fission6 i have some branches on remote/16:01
which show hwne i do branch -a, they dont seem to exist on the remote anymore - how can i clean them up16:01
dr_lepper left16:01
charon fission6: man git-remote, prune16:01
gitinfo fission6: the git-remote manpage is available at http://git-scm.com/docs/git-remote.html16:01
chriskon149 joined16:02
charon or git fetch --prune, does the same16:02
chriskon149 left16:03
fission6 git fetch --prune origin, still shows all the remotes, even though github only has two branches16:04
whitman left16:04
charon !repro16:04
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting.16:04
fission6 never mind i see thsi issue16:05
how can i delete some remote branches16:05
axl_ left16:05
axl_ joined16:06
andrewhl joined16:06
neurodrone left16:06
babilen left16:06
wereHamster fission6: git push --delete16:07
fission6 ok16:07
theCole joined16:07
TheHaven left16:07
rehat joined16:08
_sundar_ joined16:08
ReekenX left16:08
sh4rm4 left16:09
msankhala left16:09
sh4rm4 joined16:10
mklappstuhl left16:10
ShooterMG left16:10
dhruvasagar joined16:10
matthiasgorgens charon: thanks.16:10
jargon- left16:11
axl_ left16:11
oojacoboo left16:12
utdemir left16:12
axl_ joined16:14
brentratliff left16:14
codeFiend left16:15
iocor joined16:15
aeontech joined16:16
luxurymode left16:16
EhevuTov joined16:16
dhruvasagar left16:17
luxurymode joined16:17
skorgon joined16:17
jackh left16:19
revagomes left16:20
Speed joined16:20
Speed left16:20
Speed joined16:20
nocturnal left16:20
Oliver_ left16:22
bgerber left16:22
MrRoot left16:23
rehat left16:23
thiago_ joined16:24
skorgon left16:24
ISF left16:24
apok left16:24
axl_ left16:24
senny left16:25
dsantiago joined16:26
dhruvasagar joined16:27
axl_ joined16:28
jcao219zz_jcao21916:29
t0rc joined16:31
mishok13 left16:32
psoo left16:32
dr_lepper joined16:33
dr_lepper left16:33
dr_lepper joined16:33
dhruvasagar left16:33
dsirijus joined16:33
Textmode joined16:33
opus joined16:33
LimeBlast left16:34
boombatower joined16:35
skorgon joined16:35
ReekenX joined16:35
spyro left16:35
legumbre_legumbre16:36
ipalaus left16:36
Jon-- I've messed up my git repository somehow, I don't have any py source files in master anymore, just pyc.16:36
Anyone give me a hand?16:36
angelsl left16:37
drupy joined16:37
wereHamster Jon--: run git status16:37
Rajesh joined16:37
RajeshGuest1524416:38
martinjlowm joined16:38
Guest15244 left16:38
dfr|mac joined16:38
Jon-- wereHamster, on br master nothing to commit (working directory clean)16:38
surma left16:39
wereHamster how did you delete the files?16:39
Vinnie_win joined16:40
hoschi left16:40
drupy Anyone know of a GUI-style interface to Git that would let me connect to my various server environments? For example I'd like to log in to staging.example.com to push, pull, merge, unfubar myself and then log in to production.example.com and pull from origin, etc.16:40
Rajesh_ joined16:40
Rajesh_ left16:40
Jon-- wereHamster, the issue seems to be only on this working repo if I do a git clone on remote it works fine16:40
HyperNerdV2 joined16:40
wereHamster drupy: xterm, Terminal.app, urxt, gnome-terminal. There are soo many to choose from...16:40
iocor left16:41
drupy I'll investigate. Gracias16:41
Jon-- it had some uncommitted changes I don't want to lose if possible16:41
axl_ left16:41
hoschi joined16:41
soee left16:41
wereHamster Jon--: the uncommitted changes are gone when git sais 'working directory clean'16:41
axl_ joined16:41
lu_zero left16:41
lu_zero joined16:42
Jon-- D:16:42
EhevuTov left16:42
lu_zero left16:42
drupy wereHamster, those all seem to be CLI interfaces rather than GUI (like SourceTree)16:42
GNUcifer joined16:42
Jon-- I was changing my remote addr for push/pull and I then did a pull16:42
lu_zero joined16:42
lu_zero left16:42
lu_zero joined16:42
lu_zero left16:42
oojacoboo joined16:42
pdtpatrick joined16:43
ipalaus joined16:43
dfr|mac left16:43
wereHamster drupy: I don't know of any GUI that can connect to a remote server. But if all you want is push/pull, then what do you need a GUI for? Also: !deploy16:44
gitinfo drupy: Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html16:44
lu_zero joined16:44
lu_zero left16:44
lu_zero joined16:44
PetrMotejlek left16:44
dinesh6654 joined16:44
barq left16:45
Sym3tri joined16:45
drupy I often find when I pull my local dev changes into staging there's some merge problem. The GUI-based tools seem to offer me a more readable way of sorting out my problem.16:46
barq joined16:47
wereHamster drupy: you should not be merging on the staging server anyway. Again: !deploy16:47
gitinfo drupy: Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html16:47
neurodrone joined16:47
neurodrone left16:47
neurodrone joined16:47
blendedbychris joined16:47
towski joined16:49
pdtpatrick left16:49
spyro joined16:49
drupy left16:50
dsantiago left16:50
barq left16:50
metcalfc left16:50
dc5ala left16:50
barq joined16:51
tasslehoff left16:52
dhruvasagar joined16:53
FreeArtMan joined16:53
pdtpatrick joined16:53
iliketurtles joined16:53
Davey joined16:53
rohan32rohan|afk16:53
apok joined16:54
goshawk joined16:55
jceb__ joined16:56
iocor joined16:56
pdtpatrick_ joined16:56
Xilent joined16:57
blendedbychris Hey guys… is there a better way to do this… http://hellomountee.com/support/git_and_mountee/16:57
i find it odd having to run git status in a bare repo location16:58
or non-bare maybe?16:59
specialGuest joined16:59
bigmeow left16:59
mirror joined17:00
raek_raek17:00
raek to me it looks like a non-bare repo where the .git stuff is kept outside of the working tree17:00
iguanna left17:01
mirror left17:01
afuentes joined17:01
blendedbychris Right. it's basically a mount that can't write anything but the working files.17:01
LekeFly joined17:01
blendedbychris Just trying to figure out how to put this into my workflow17:02
So would I just run the git commands in that bare location?17:02
russt left17:02
Noodels left17:02
grawity Can the mount write a file named ".git"?17:02
blendedbychris No.17:03
It's like a mount that writes template files via an API and the files have to be specifically to that system.17:03
specific*17:03
grawity How about `export GIT_DIR=/Users/username/Sites/repos/hellomountee.git`17:03
Yuuhi` left17:04
blendedbychris Hrmm… interesting idea but that'd screw up all the other repos17:05
Any idea how to jail it in that one?17:05
neurodrone left17:05
grawity You can open a second Terminal for other repos, or `unset GIT_DIR`...17:05
Oor, hmm17:06
Can the thing be mounted anywhere, or only under `/Volumes/foo`?17:06
mklappstuhl joined17:06
Sky[x] left17:07
thirdknife joined17:07
blendedbychris the app only mounts in /Volumes17:07
:(17:07
cmullican joined17:07
thirdknife left17:07
blendedbychris I might be able to dissect the mount command though17:07
grawity: what's your idea there?17:08
cmn what problem do you actually have?17:09
what's under /Volumes/foo? is that dir a git-dir?17:10
codecowboy left17:10
tasslehoff joined17:10
blendedbychris I'm just curious if there is a way to make it so I can run the git commands inside of the /Volumes/foo drive instead.17:10
No. It's non .git files17:10
grawity cmn: /Volumes/foo is a special filesystem (Mountee, a MacFuse thing), and it is impossible to store a Git repository in it, only specific data17:10
GNUcifer left17:10
chuckhar_ joined17:11
grawity blendedbychris: Well, you can set $GIT_DIR when working inside that drive...17:11
blendedbychris I think that's the best idea so far :)17:11
artnez joined17:11
cmn so the worktree is there?17:11
blendedbychris cmn: correct17:11
cmn then add a gitfile17:11
so you tell it where the repo is17:12
COBadger left17:12
blendedbychris I can't write anything to the root of the volume17:12
imachuchu joined17:12
grawity Hmm, it would be a simple feature request for Mountee, though17:12
apok left17:12
bogwonch joined17:12
grawity it certainly can store a one-line file somewhere locally17:13
joephelius left17:13
nor5trom joined17:13
apok joined17:13
blendedbychris I mine as well request them to allow .git dir to be ignored :P17:13
cmn you don't need a .git dir17:13
grawity blendedbychris: I was also thinking of having a normal repo somewhere in ~/hellomountee, with the special filesystem being a subdirectory in it... but it's messy17:13
chuckharmston left17:13
grawity blendedbychris: a .git directory might be too complicated to implement17:13
opus left17:14
grawity blendedbychris: a .git file is easy17:14
(or a .git symlink, for that matter)17:14
blami_ left17:14
cmn if you can't write anything to it, why do you want git to consider it a working dir?17:14
blendedbychris cmn: http://hellomountee.com/support/git_and_mountee/17:14
grawity cmn: nobody said "can't write anything" here17:14
blendedbychris I said i can't write to the root :)17:14
Shusshu joined17:14
grawity cmn: it allows writing files, just in a strict directory structure17:14
blendedbychris grawity: in the meantime, is it possible to make environmental variables be applied in a dir?17:15
grawity blendedbychris: No.17:15
erichynds joined17:15
grawity blendedbychris: But environ variables only apply to certain processes – e.g. to a single Terminal window – so I'd say it's good enough17:16
gitinfo set mode: +v17:16
cmn if you can't write there, why do those instructions tell you to?17:16
thiago_thiago17:16
localhost left17:16
grawity cmn: they don't?17:16
blendedbychris cmn: those instructions tell you to create a headless repo somewhere else and set your work-tree to the /Volume/foo17:16
grawity blendedbychris: Or you could alias mgit="git --git-dir=/whatever"17:16
cmn headless is not what they're doing17:17
blendedbychris or whatever, I don't know the correct term17:17
grawity bare?17:17
localhost joined17:18
localhost left17:18
blendedbychris grawity: so if i was able to write a file to the root it's basically just a glorified gitconfig?17:18
grawity or a simplified gitconfig...17:18
cmn ah, it looks like init won't set it up correclty17:18
then then instructions are just wrong, because that status command won't work17:19
bah, nevermind, they're doing it the other way around17:19
blendedbychris heh :P17:19
jonshea joined17:19
grawity blendedbychris: if you could write a single line "gitdir: /path/to/whatever" to a file named ".git", it would work17:19
beneggett left17:20
cmn he's already dismissed that17:20
blendedbychris I was going to submit a feature request17:20
cagedwisdom left17:21
blendedbychris grawity: the tough thing is these guys are going to have to figure out where to store the .git file.17:21
psoo joined17:21
sh4rm4 left17:21
grawity blendedbychris: Mountee already stores various user preferences, I would guess?17:21
Git repository path could be just another preference17:22
blendedbychris Yea i guess it could be coded in each mount preference17:22
now i have another idea… is the location of the .git directly allowed to be a series of paths git looks for?17:23
sh4rm4 joined17:23
skylamer` joined17:23
neurodrone joined17:23
blendedbychris because I CAN write other dirs like one called "git" instead17:23
localhost joined17:23
lindenle joined17:23
blendedbychris or event _get17:23
er _git17:24
Sebo left17:24
psoo left17:24
beneggett joined17:25
cmn no, it's .git which is either a file or a dir17:26
tasslehoff left17:26
cmn a symlink would work, probably, but same thing17:26
skorgon left17:27
osmosis joined17:28
lresende left17:28
Yuuhi joined17:29
lindenle Does git web come with an easy way to enable read only http access?17:29
luxurymode left17:30
metcalfc joined17:30
cmn yes, that's all it does17:30
kanupatar left17:30
axl_ left17:30
lindenle cmn: wait, it just shows me the contents, how do i clone a repo over http using it?17:30
cmn you don't17:30
axl_ joined17:31
lindenle cmn: that is what I was asking17:31
paolooo left17:31
cmn no, you asked about read access through gitweb17:31
which is completely unrelated to cloning17:31
lindenle i meant read only cloning17:31
iamjarvo joined17:31
lindenle sorry17:31
cmn that's the only form there is of cloning17:31
anyway, see the !book17:31
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable17:31
cmn it tells you how to do it for apache17:31
joephelius joined17:32
phishy left17:32
phishy joined17:33
cmn hm, that might only be for the dumb protocol, man git-http-backend does have it for sure17:33
gitinfo the git-http-backend manpage is available at http://git-scm.com/docs/git-http-backend.html17:33
cbreak dumb http is enough for cloning.17:34
it's just inefficient of course.17:34
darren joined17:34
skylamer` left17:35
achadwick left17:35
cmn sure, but you need to activate a hook for it to work17:35
Shusshu left17:35
metcalfc left17:37
opus joined17:37
Sky[x] joined17:37
Anniepoo[1] joined17:38
rehat joined17:39
darren left17:39
hyperair left17:40
hypera1r joined17:40
nglorioso joined17:41
covi joined17:42
etcetera left17:42
covi I have these in my ~/.gitconfig17:42
[alias] comm = commit -m17:42
ashirus left17:42
covi but I still can't use git comm "MSG". WHy's that?17:42
Rajesh joined17:43
RajeshGuest3702017:43
dpino joined17:43
lustucru joined17:44
irqq joined17:44
blendedbychris cmn: so i can't modify an environvariable so git looks in both .git or _git17:44
cmn no17:44
irqq_ left17:44
cmn as was pointed out, you can tell git via env var which one it is17:44
and you can use relative paths17:44
Vile left17:45
cmn so you can have GIT_DIR=_git17:45
but that breaks the others17:45
blendedbychris cmn: gotcha17:46
maletor joined17:46
mikewintermute left17:47
etcetera joined17:47
cbreak is it a good idea to make that relative?17:48
I thought it should be an absolute path17:48
bogwonch left17:48
pantsman joined17:48
cmn the hooks set GIT_DIR=.17:49
absolute paths are generally a good idea, certainly; but relative paths do work17:49
macer1 joined17:52
etcetera left17:52
rohan|afkrohan3217:52
macer1 hey17:52
I have a problem17:52
fatal: loose object dc128ea864728934ae14e2efc9f3de2f4ea2acac (stored in .git/objects/dc/128ea864728934ae14e2efc9f3de2f4ea2acac) is corrupt17:52
:(17:52
what can I do with that...17:52
tasslehoff joined17:53
juvenal joined17:53
cmn recover from backups17:53
etcetera joined17:53
macer1 ouch. fucked filesystem17:53
cmn yeah, it probably didn't sync when you shut down the computer or something similar17:54
EugeneKay Depends what that object is. Usually you can get a fresh copy of the object from one of your remotes, or by recloing the repo. The fact that it went corrupt in the first place means that it's just gonna happen again; replace your underlying spinning magnetic material.17:54
macer1 *backups all important stuff as fast as he can*17:54
nor5trom left17:55
macabre joined17:55
EugeneKay An unfinished sync() call should have no reason to corrupt a git repo unless you were in the middle of a commit; in which case only the last commit should get eaten. Normally it corrupts logfiles or stuff that actually gets R/Wen. git objects are write once, read a bunch.17:55
macer1 actually fsck runs every run for me17:55
and recovers something...17:56
luxurymode joined17:56
dpino left17:56
macer1 I see a lot of EXT4-fs (dm-2): re-mounted. Opts: commit=017:56
in dmesg17:56
TheJH left17:57
marhaban joined17:57
dpino joined17:57
tasslehoff left17:57
lacrymology joined17:57
flijten joined17:58
spyro left17:58
EugeneKay fsck.ext4 or git-fsck ?17:58
macer1 there is git-fsck? o.O17:58
I mean every system run17:58
EugeneKay man git-fsck ;-)17:58
gitinfo the git-fsck manpage is available at http://git-scm.com/docs/git-fsck.html17:58
macer1 ext4 fsck17:58
EugeneKay Not to be confused with gitinfo's !fsck command17:59
gitinfo [!profanity] Hey! This is a family-safe channel, so keep it frakking clean you fierfekker!17:59
SeySayux left17:59
macer1 I don't think it's a disk fail, it is an SSD and is less than year old17:59
fly9_ joined17:59
Karmaon1 joined17:59
imachuchu macer1: !backup your repo onto a less possibly flawed storage, git fsck it from there, then assure yourself that that ssd is actually ok17:59
gitinfo macer1: Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups17:59
alexukf joined18:00
macer1 actually github is a good backup for my open source projects :P18:00
cmn no, github isn't for backup18:00
macer1 not backup. I push my commits there.18:00
I have the projects there...18:01
cmn right, but not backup18:01
it's a place to let people see your stuff18:01
macer1 I know :)18:01
imachuchu macer1: either way your local repo has stuff that github won't (dangling commits and such) that still might be useful later on18:01
elux left18:02
Guest37020 left18:02
elux joined18:02
fly9_ left18:03
fly9 left18:03
EugeneKay "If your data isn't backed up offsite, you didn't really want it."18:03
dsantiago joined18:04
elux left18:04
lustucru left18:04
mklappstuhl left18:04
grawity I kind of prefer "real men just upload their important stuff on ftp, and let the rest of the world mirror it."18:04
elux joined18:05
_Vi joined18:05
fly9 joined18:05
macer1 "People are divided into two categories. Those who do backups, and those who will do backups"18:05
:P18:05
Anniepoo[1] left18:05
cakehero joined18:06
specialGuest left18:06
SeySayux joined18:07
macer1 while true; sync; sleep 10; done18:07
do sync*18:07
nor5trom joined18:07
v0n left18:08
jast poor solution, also dreadfully slow18:08
Sigma joined18:09
Ecesis left18:09
jast probably just as slow as data=journal with ext3/418:09
with standard hardware you can get corruption with absolutely all resilience tricks like that18:09
etcetera left18:10
macer1 ehh I think after reboot system will not run18:10
even system updates failes because of download file md5sums not matching18:10
does tars have some kind of md5sum included inside?18:11
to know if its not corrupt18:11
jast not usually18:11
there might be an uncommon extension, but the traditional format doesn't have 'em18:11
Nirvanko left18:13
jobin joined18:13
aantix joined18:13
jobinandy2318:13
slimjimflim left18:14
Vampire0_Vampire018:14
gmartyn gzip/bzip2 have a crc18:15
macer1 awesome, thanks18:15
kaen left18:15
slimjimflim joined18:15
slimjimflim left18:15
SEToChan left18:15
Speed left18:15
macer1 even ftp is not working to upload stuff18:16
...18:16
schemula joined18:17
_huoxito joined18:17
kleist left18:17
macer1 I copied all stuff to pendrive, its time for reboot. Wish me luck.18:17
Guest37020 joined18:17
imachuchu macer1: do you have a live cd handy?18:18
macer1 hmm18:18
lustucru joined18:18
pdelvo I want to host a git repository on a windows server. do you know a good solution for this, when i want to use ssh?18:19
macer1 imachuchu: I can't find any18:19
grawity pdelvo: CopSSH, Bitvise WinSSHd, probably FreeSSH...18:19
imachuchu macer1: well what are you going to do if the system won't boot?18:20
macer1 imachuchu: I hope it will run to fsck point18:20
I found ubuntu 11.0418:21
bogwonch joined18:21
macer1 its enough to fsck filesystem18:21
tom2929 joined18:22
iamjarvo left18:22
macer1 hmm if it was only ext4 not syncing, lvm & luks shouldn't break, eh?18:22
kpreid joined18:22
macer1 luks { lvm{ ext4 & swap } }18:23
landypro left18:23
ShadeTornado joined18:23
imachuchu macer1: man best of luck on that, I don't envy you trying to repair that stack/mess18:24
macer1 thanks18:24
imachuchu macer1: actually...18:24
macer1: use the executables on the cd to backup your files18:25
macer1 yeah, I'll try18:26
for now I packed everything important(good that all that stuff is in one folder) to pendrivw18:26
iamjarvo joined18:26
imachuchu macer1: if may get ugly if they're compressed (I have no idea), but if you have enough ram you can decompress them into a ram disk18:26
bogwonch left18:27
macer1 imachuchu: why? its actually less than 100MB18:27
imachuchu macer1: "they're" being the binaries on the cd18:28
giallu left18:28
jceb__ left18:29
opus left18:29
macer1 ah18:29
ok, reboot18:29
imachuchu macer1: do you have off everything you want?18:30
tureba_ left18:30
macer1 left18:31
rohan32rohan|afk18:31
macer__ joined18:32
macer_ joined18:32
luxurymode left18:32
macer_ left18:33
macer__ left18:33
jjb123 joined18:33
mrsrikanth joined18:33
jjb123 left18:33
bogwonch joined18:33
sawdisk left18:33
sawdisk joined18:33
pdelvo CopSSH gives me a access denied when i try to connect with the username + password -.-18:34
cmn is there any context there? where are you trying to connect to?18:34
how is it related to git/18:34
pdelvo over the web to a windows server18:34
opus__ joined18:35
cmn ssh over web? that sounds scary18:35
where's git in this?18:35
pdelvo git comes later. first i want to login over ssh with ssl18:35
kpreid left18:36
tsdh joined18:36
rehat left18:36
defmoves joined18:36
cmn then you should seek support for your issue wherever the people that make that software hang out18:36
luxurymode joined18:37
webben joined18:38
webben left18:38
grawity over ssh with ssl? O_o18:39
imachuchu pdelvo: sounds like the server doesn't like your username+password18:39
JEEB argh, git send-email seems to have derped with an error after I wrote a long novella with --compose . Does git send-email per chance save this somewhere until the e-mail(s) is/are sent?18:39
beneggett left18:39
tureba joined18:39
v0n joined18:39
webben joined18:41
JEEB oh, found18:42
yay18:42
beneggett joined18:42
_Vi left18:42
defmoves left18:43
jason237 joined18:43
_Vi joined18:43
Davey left18:44
imachuchu the great thing about macer1's problem is nomatter what we won't hear from him again18:45
dsantiago left18:46
nitrix joined18:47
nitrix Hi, I'm wondering what would be the best way to track files with git - files that are configuration files with passwords inside. More precisely my dotfiles on GitHub but I guess it could apply to any other projects.18:49
grawity How many dotfiles have your passowrd in them, anyway?18:49
covi left18:50
cbreak git's not a backup tool.18:50
PerlJam nitrix: in short, you're doing it wrong! :)18:50
imachuchu nitrix: ack! passwords! Since passwords *need* to be encrypted using git isn't really a great choice (it can track them, but they can't be merged/diffed so branches are out)18:51
rehat joined18:51
imachuchu nitrix: use a general purpose backup instead18:51
cbreak encrypting passwords? what for?18:51
imachuchu nitrix: you could use git to store plaintext passwords, then backup an encrypted version of that repo, but why?18:52
grawity why are all of you assuming dotfiles on github can only be used as a backup18:52
and not, for example, as a tool to track changes.18:52
nitrix No my goal is to share them with others18:52
Without compromising the passwords.18:53
airportyh joined18:53
cbreak then don't track the passwords.18:53
grawity nitrix: move the passwords elsewhere?18:53
cbreak delete them out of the files.18:53
airportyh left18:53
nitrix One idea I just received on #linux is to write a script that'll browse the dotfiles after deploying, and ask for each passwords specifically for each apps and replace them in the files.18:53
grawity many programs can read them from ~/.netrc instead of the main config file18:53
tasslehoff joined18:53
imachuchu nitrix: general purpose backup/post them to a site, share a common unlock password with everyone whos gonig to use them (look at keepass)18:53
nitrix grawity: But how would the program use it?18:53
grawity: irssi for example ?18:54
grawity nitrix: with irssi, just don't add the main config to a public repository18:54
imachuchu nitrix: are these passwords to be used by people manually entering them in, or by programs automatically reading them?18:54
nitrix imachuchu: I don't think you understand why someone would share dotfiles. It's not a backup process, everyone has backups already.18:54
theCole left18:54
grawity (the irssi devs dislike users who edit the config directly, anyway)18:54
sq-one joined18:55
nitrix imachuchu: Programs reading 'em. They are configuration files.18:55
Like the config for irssi, or bitlbee, or mutt...18:55
grawity nitrix: muttrc has the 'source' command18:55
alexisabril joined18:55
grawity as in, source ~/.muttpasswords18:55
nitrix Which leads me to think I'll need a script anyway to generate password files locally for the user.18:56
grawity for github.password in .gitconfig, "password = !cat ~/.github-pass" sually works18:56
*usually18:56
nitrix I'll get back to #linux, they are more helpful :/18:56
ninegrid joined18:56
Eridius joined18:57
spyro joined18:58
spyro left18:58
spyro joined18:58
cmn probably not if you ask them git things18:58
tasslehoff left18:58
tqmz joined18:58
marthinal left18:59
imachuchu actually I thought we were quite helpful, "that's not really what git is for, use something else"18:59
EugeneKay !refund ;-)18:59
gitinfo If you are not satisfied with git, or the support provided by the volunteers in #git, you are entitled to a full refund of the purchase price, and are invited to use another VCS. Elsewhere.18:59
Jon-- using gitk I see that two branches point to the same point, yet there is a git diff branch1 branch2. No uncommitted changes in either. What's going on here?18:59
grawity imachuchu: git is not for what exactly?18:59
imachuchu: nitrix never did ask about using git for backups.19:00
ferdna joined19:00
cmn it's not for hiding your data either19:00
phishy left19:00
grawity Jon--: I think the syntax is branch1..branch2 for comparing two branches?19:00
phishy joined19:01
ubuntu joined19:01
cmn Jon--: most likely you're reading the output wrong or haven't refreshed it19:01
ubuntu left19:01
Jon-- cmn, what does a yellow dot mean?19:01
imachuchu grawity: he asked what was the best way to use git to store configuration files with passwords inside them while still sharing them. The answer is don't use git or encrypt the whole git repo19:01
cmn grawity: that's one accepted, but it leads to confusion19:01
macer1 joined19:01
cmn Jon--: AFAICT it's HEAD19:01
nitrix cmn: Well I was mostly wondering because most of the time on other projects, you want sensible data in a config file to a database, to test locally...19:02
gitinfo set mode: +v19:02
macer1 # git fsck19:02
fatal: failed to read object 351ba10c79a26ede7582c01ac544752ff1991a32: Invalid argument :(19:02
cmn nitrix: which you don't track19:02
nitrix So it's quite the similar problem. I want the file shared but not the password. Just curious if by the time, git implemented something new for that.19:02
cmn macer1: that looks like fs corruption19:02
nitrix: !config19:02
gitinfo nitrix: [!configfiles] Best practice is to store an example config file and then copy+modify it when you install your app. If your config file must be tracked by git to deploy(eg, Heroku), see https://gist.github.com/1423106 for some workarounds19:02
macer1 cmn: indeed19:02
patient joined19:02
macer1 I was thinking git fsck can help...19:03
nitrix Except if you do a change to the file, and you forget there's your password inside... ouch.19:03
cmn that's why you don't change the tracked file19:03
you don't use it19:03
macer1: fsck doesn't fix things19:03
cbreak fsck fscks things.19:04
i42n joined19:04
macer1 :sad19:04
cbreak seems your repo is corrupt19:04
rmr left19:04
patient hey guys, i'm trying to use 'git commit --amend' but i always get 'Your branch and 'origin/master' have diverged, and have 1 and 1 different commit each, respectively.' and when i try to push it's always rejected. Can someone give me some tips?19:04
cbreak can you throw it away and clone from an other copy?19:04
rohan|afkrohan3219:04
babilen joined19:05
mmc1 joined19:05
cbreak patient: don't rewrite public history19:05
if you pushed a commit, then you are NOT allowed to amend it19:05
cmn patient: that's expected, --amend rewrites the commit19:05
Speed joined19:05
Speed left19:05
Speed joined19:05
imachuchu patient: !rewrite19:05
gitinfo patient: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config)19:05
cmn so it's no longer the same one19:05
macer1 I have a "copy" a github19:05
macabre left19:05
alexukf left19:05
imachuchu patient: look into git-revert and if it's acceptable19:05
OOPMan left19:05
macer1 but not everything was pushed before FS crash19:05
bogwonch left19:05
patient right...19:05
so '--amend' is only a good idea if i haven't pushed the commit info to the remote yet?19:06
macer1 but it looks like source codes aren't corrupted...19:06
cbreak macer1: you could clone it, then unpack objects, and then try to puzzle the missing things into a copy of the damaged one19:06
macer1 hm19:06
cbreak but it's probably better to somehow try to move the new history into a fresh clone19:06
whatthepoop joined19:06
cbreak patient: you can rewrite public history, but it might cause problems.19:07
lresende joined19:07
cbreak you'll have to force push for one19:07
and if someone else fetched the original version, then you're in trouble.19:07
patient i see19:07
lresende_ joined19:07
patient ok guys, thanks for the tips, very helpful19:07
macer1 I can live without 1 day history and create a new repo19:08
it looks like source files are ok19:08
I mean source files are up to date19:08
history is not19:08
I need to check if my ae19:09
mrsrikanth left19:09
macer1 seconds OS(osx) is corrupted too19:09
or it is just linux partition fail19:09
whatthepoop any tips on storing design comp binaries (Illustrator / Photoshop files) in a git repo that also has code with lots of organizational branches?19:10
my concern is not being able to diff the binaries when merging the latest changes from the production branch into the dev branch I'm working the designs on, and losing the latest design changes19:10
cmn the tip is generally not to do it19:10
there's git-annex and git-media for dealing with large files19:11
whatthepoop cmn: figured so much.. :/19:11
opus__ left19:11
lresende left19:11
lresende_lresende19:11
cedeon left19:11
bearbin joined19:12
rgsteele left19:12
axl_ left19:13
i42n left19:13
axl_ joined19:13
bearbin Am i allowed to ask for help here?19:13
i42n joined19:13
nor5trom left19:13
loops yup19:13
tvw left19:13
whatthepoop cmn: ok cool, they both make sense.. I'll look into them, but maybe I'll just move them out and stick them on my dropbox since no one else needs to work on them19:13
agumonkey left19:14
jaylevitt joined19:14
opus joined19:14
bogwonch joined19:14
cmn if you don't need to/can't merge/diff them, there's not much point19:15
bearbin Ok then, I prefer tabs over spaces for code, but peopel like python to be indented with spaces :( So i set up some rules following this (http://stackoverflow.com/questions/2316677/can-git-automatically-switch-between-spaces-and-tabs) and for some reason it tried to apply them to my .py~ and .pyc files. Is there some way to stop this behaviour?19:15
fornext left19:15
eletuchy joined19:16
imachuchu whatthepoop: as long as no one else modifies them then you should never need to merge them, right? You can still commit/merge/rebase the other code just fine around them though19:16
Jay_Levitt left19:17
rohan32 left19:17
i42n left19:17
jaylevitt left19:18
nitrix left19:18
bearbin Anybody? Baiscally i need .py files to have the filter applied, but not .py~ and .pyc19:19
opus left19:19
bizhanMona left19:20
palm_vue left19:20
Lgb left19:20
aspotashev joined19:20
bearbin Hello? Can anybody help me?19:20
graphitemaster left19:21
OOPMan joined19:21
palm_vue joined19:21
Lgb joined19:21
derekpioneer i have a git repository with a lot of branches and commit history, i want to copy the contents of the repository into a new folder and start a new git repo without any of the previous history19:21
w19:21
bizhanMona joined19:21
derekpioneer obviously i could just do cp -r to the new location and then git init;19:21
imachuchu bearbin: have't ever touched git hooks but I'll take a look19:21
darren joined19:21
derekpioneer but i don't want to copy all the files listed in gitignore19:22
bearbin imachu: Thanks,19:22
v0n left19:22
imachuchu bearbin: and is there any reason you can't just get your editor to switch between the two for you? I know vim can be set to encode the tab as 2 spaces19:22
whatthepoop imachuchu: I think so, yes.. I think that was our intent when we created a separate 'design' branch.. maybe I should just keep this 'design' branch, and only pull/push from/to the 'develop' branch (which is where all feature/bugfix branches are derived from) to keep things up to date, not worrying about effecting the other branches.. but won't git freak out when the older file from one of the other branches gets compared to my newer one when someone else pushe19:23
their changes into the 'develop' branch *after* I've pushed my newer binaries into it?19:23
bearbin imachuchu: i suppose so, but i thought this way would be easier :(19:23
duckxx joined19:23
drive-by-advice bearbin: are your .py~ and .pyc files being tracked by git?19:23
loops bearbin what's in your .git/info/attributes19:24
bearbin drive-by-advice: nope19:24
loops: only *.py filter=tabspace19:24
imachuchu bearbin: not really, and it's only a small change in the editors config (well most editors configs)19:24
phishy left19:24
drive-by-advice bearbin: if that is the case the smudge-clean filters should have no effect...19:25
loops bearbin, from your answer to d-b-a, it's clear the script that is running to do the conversion is at fault19:25
phishy joined19:25
loops bearbin, it's not a git problem, something is wrong with the script19:25
phishy left19:25
phishy joined19:25
loops bearbin, git will only convert files it tracks, the script must be overly aggressive with the argument being passed to it19:26
imachuchu whatthepoop: not sure I understand the problem. When you push your newer binaries there's will "freak out" but all they have to do is pull+rebase/merge like with any other changes19:26
bearbin loops: ok, ill see if i can fix it19:26
Sigma left19:26
darren left19:26
bearbin loo[s: ok, thanks for your help19:27
and everybody else too19:27
aeontech left19:27
imachuchu whatthepoop: and since they haven't changed their copy of the binaries the rebase/merge won't ever have a conflict on them19:27
whatthepoop imachuchu: ok sorry, I19:27
bearbin left19:27
duckx left19:27
whatthepoop imachuchu: I don't know git quite as well as I should :)19:27
loops bearbin, hmm... it looks like it's using stdout.. weird.. maybe try the expand/unexpand option as given in one of the answers from the page you linked19:27
olaf_ left19:28
loops bearbin, assuming you're on *nix19:28
Hasbro joined19:28
Hasbro left19:28
Hasbro joined19:28
etcetera joined19:28
imachuchu whatthepoop: neither do I really (or at least as well as I would like). When applying commits git looks at what changed between them, if only your commits change the binaries they can't conflict with anyone elses work (since they haven't changed)19:28
R40UL joined19:29
neurodrone left19:29
R40UL What do I use if I do an Initial commit? + , - or * ?19:29
imachuchu whatthepoop: unless of course you make the conflicts yourself (make 2+ branches, make different changes on each branch, merge them together = conflicts)19:29
R40UL I think + because I'm adding files19:29
ReachingFarr joined19:29
lonewulf` left19:30
imachuchu R40UL: what? "git commit -a"?19:30
R40UL No no I mean the commit message imachuchu19:30
Some do "+ Added files"19:30
Or "* Code cleanup"19:30
But I want to know what is best for an initial commit19:30
whatthepoop imachuchu: ahhh I see, that's right.. ok, and that's exactly what brought me into this mess to begin with: without thinking I made some design changes in two different branches, since the design changes reflected the specific feature each branch was used for.... but if I stick to the 'design' branch only for all design changes, this should never be the issue with me or anyone else19:31
lonewulf` joined19:32
nor5trom joined19:32
blendedbychris cmn: I'm looking at using export GIT_DIR=~/Projects/foo.git … for the volume scenario I gave earlier but if I run git status on the volume dir it says "This operation must be run in a work tree"19:32
imachuchu R40UL: git doesn't care (it just stores the messages) it's up to you (though maybe people here who work on larger projects then I can chime in with their expiriances with standards)19:32
SaCu joined19:32
whatthepoop imachuchu: I guess there's still the issue of whether or not we should be storing these design comps in git, but I think I'll have to save that for another day since they're there now and now really growing much larger than they already are (~20MB)19:32
imachuchu: thanks, I'm learned.19:32
SiDz left19:32
Guest37020 left19:32
letharion left19:33
ska-fan left19:33
imachuchu whatthepoop: your welcome19:33
R40UL imachuchu I know, but what do you prefer?19:33
ska-fan joined19:33
ph^_ joined19:34
brandonw joined19:34
orkz_ joined19:34
v0n joined19:35
brandonw if i can see several branches on my remote named 'origin' via gitweb i have set up, but if i do `git fetch` and it is not pulling them down, am i doing something wrong?19:35
imachuchu R40UL: I don't use any thing like that, but I guess '+' for new features/files, '*' for changes, '-' for removals, and for the first commit you could use a '+'19:35
nischayn22|Awaynischayn2219:35
brandonw i thought that all new branches in a given remote are fetched automatically, and it is only local tracking branches that you have to create yourself19:35
letharion joined19:36
SiDz joined19:36
ISF joined19:36
R40UL imachuchu Thanks for your opinion19:36
imachuchu brandonw: did you clone the remote for your local, or did you init the local?19:37
ph^ left19:37
imachuchu R40UL: your welcome, but it's not worth much. If you decide later you don't like the messages you can always change them (assuming they are still just in private history)19:37
*you're19:37
orkz left19:38
orkz_orkz19:38
lonewulf` left19:38
alexukf joined19:39
tasslehoff joined19:40
brandonw imachuchu: the stuff that is currently in there is cloned19:40
nor5trom left19:40
thefalling joined19:40
lonewulf` joined19:40
tasslehoff left19:41
thefalling HOw do i merge only commits made in a particular branch? I have a live branch and a master branch, and i created the branch under the master branch, and i dont want it to merge the other commits that were made in the master branch19:41
mritz_ joined19:42
cbreak just git merge other branch19:42
that'll merge the whole branch19:43
_Vi left19:43
_Vi joined19:44
alexukf left19:44
tqmz__ joined19:45
DrHouse|TARDIS joined19:45
torjus_ left19:45
tqmz left19:45
tqmz__ left19:45
tqmz joined19:45
v0n left19:46
specialGuest joined19:47
thefalling if i do get merge myBranch inside of golive, i get all the stuff that was in the master branch too19:48
cbreak no19:48
FreeArtMan left19:48
cbreak you will only get what is in myBranch19:48
everything19:48
brandonw it's weird. git fetch --all doesnt seem to get all of the branches in the remote. git branch -a shows only the ones that are already there.19:48
cbreak everything sice myBranch was branched off your current branch19:49
brandonw: weird fetch spec in .git/config?19:49
brandonw i havent changed anything from defaults that i know of19:49
cbreak run git ls-remote remotename19:50
that will list all branches on the remote19:50
all that are there.19:50
brandonw all i see in .git/config are the [branch "xxxx"] with remote and merge set up, and then [remote "origin"] with the url and the three fetch lines for the 3 remote branches i actually do see with git branch -a19:50
tsdh left19:50
brandonw ok19:51
good19:51
so they have been fetched locally19:51
that is the command i was looking for, i think19:51
thefalling I did it, and all the stuff that was in master before creating MyBranch on master got merged too19:51
cbreak three fetch lines?19:51
that's unusual19:51
normally it's something like fetch = +refs/heads/*:refs/remotes/origin/*19:52
thefalling: as I said, it will ONLY merge the commits that are in the branch you merge19:52
but it will merge ALL of them19:52
dunpeal joined19:53
brandonw hmm19:53
yes, mine specify each explicitly19:53
also, i dont have any remote tracking branches for all of the branches my co-worker pushed19:53
i see them with ls-remote, how do i make remote tracking branhes for them?19:53
cbreak if you have such a weird fetch spec that would not be surprising19:53
just fetch them19:53
brandonw okay, i was wondering if i was doing something wrong if i had to manually fetch them19:54
but the ls-remote was the key command i was missing, i think19:54
(outside of my weird explicit fetch lines)19:54
how do you think the fetch lines might have become configured like that? am i possibly doing soething that isn't standard?19:54
cbreak I have no idea.19:54
maybe you specified some branches on clone or something19:55
you should just fix it :)19:55
brandonw fix .git/config?19:55
cbreak yeah19:55
mritz_ left19:55
cbreak make a backup if you're not sure :)19:55
duckx joined19:55
brandonw the ones that are in there were all there when i initially cloned the repo19:55
so it might have been an option i should have passed to clone19:55
cbreak when cloning you get something like I pasted above19:56
alexukf joined19:56
TheJH joined19:56
diegoviola left19:58
kart0ffelsack_ left19:58
private joined19:59
duckx left19:59
duckxx left19:59
v0n joined19:59
privateGuest6695819:59
duckx joined19:59
brandonw yeah my co-worker has a proper remote set up19:59
with wildcards19:59
mishok13 joined19:59
brandonw i fixed my config and it works now.. not sure what i did that made each fetch explicit, but at least i know how to fix it now :)19:59
thanks cbreak20:00
corburn joined20:00
kart0ffelsack_ joined20:00
thefalling so am i going to have to cherry pick those commits instead of merge?20:00
alexukf left20:01
axl_ left20:01
j416 joined20:01
codertux left20:02
irqq_ joined20:03
Jon-- using gitk I see that two branches point to the same point, yet there is a git diff branch1 branch2. No uncommitted changes in either. What's going on here?20:03
dunpeal A user has `master`, and `foo` that branched off it. Since branching off, `master` was merged into `foo` several times. Is there a clean way to rebase `foo` into `master`?20:04
flyz joined20:04
irqq left20:04
cybersphinx left20:04
fly9 left20:04
sh4rm4 left20:04
pdtpatrick left20:04
pdtpatrick_pdtpatrick20:04
yorick left20:05
SiDz left20:05
cbreak dunpeal: rebasing will remove the merge commits20:05
cybersphinx joined20:05
sh4rm4 joined20:05
luxurymode left20:05
cbreak just make a new branch and rebase that, that way you can easily go back if you're not happy with the result20:06
ReekenX left20:06
cbreak Jon--: you probably don't refer to the right branches20:06
dunpeal cbreak: thanks, I'll try that. and as you guessed, I'm mostly interested in removing the merge commits.20:06
cbreak commits with the same sha by definition have no difference20:06
Jon-- cbreak, I did git diff master branchname20:06
cbreak unless you managed to break sha :)20:07
dunpeal maybe Jon-- is from the future20:07
Jon-- vs looking at the pointers in gitk20:07
which all point at HEAD20:07
yorick joined20:07
cbreak git rev-parse them20:07
etcetera left20:07
The24z left20:07
neurodrone joined20:07
Jon-- cbreak, two of them same, one diff hash20:08
skyf left20:08
SiDz joined20:09
SiDz left20:09
SiDz joined20:09
Xilent left20:10
Xilent joined20:11
dsirijus left20:11
arkiver joined20:12
mmc1 left20:12
aspotashev left20:12
alexukf joined20:12
aspotashev joined20:12
dr_lepper left20:13
dlynes left20:13
alexukf left20:14
rhl left20:15
codertux joined20:16
dunpeal Jon--: what does "one diff hash" mean?20:18
rohan32 joined20:18
dv310p3r left20:18
fisted left20:19
orkz left20:19
mmc1 joined20:19
orkz joined20:20
j416 left20:21
dv310p3r joined20:21
j416 joined20:21
fisted joined20:21
macer1 left20:21
Jon-- dunpeal, Ignore the fact that I have 3 branches it's irrelvent (sorry for mentioning it). I have two branches, master and br1. br1 is pointing at HEAD, but I don't see master pointing at anything in gitk. I'm trying to investigate what is going on.20:21
jast I think you're misunderstanding what HEAD is20:22
_ikke_ Jon--: HEAD probably points to BR120:22
jast HEAD is a pointer to the currently checked out branch (or, with a detached HEAD, the currently checked out commit)20:22
_ikke_ !head20:22
gitinfo [!HEAD] HEAD is a 'pointer' in the repository that refers to whatever is currently checked out (or the default branch in bare repositories). It's not specific to any branch.20:22
Jon-- Ahh20:22
erynofwales joined20:23
jast right, I wanted to redo that trigger. it's a bit confusing as it is...20:23
wolftankk joined20:23
Jon-- how can I get a graphical difference between two different branches?20:24
jast .trigger_edit HEAD HEAD is a 'pointer' to the currently checked out branch (or commit, if HEAD is !detached). In bare repositories it serves a different function: it tells clients which branch to checkout initially after cloning. HEAD is *not* something that exists separately for every branch; that's a common misunderstanding.20:24
gitinfo jast: Okay.20:24
Jon-- if I checkout master or check out br1 I get a graph with gitk but I can't seem to get one with both of them on it.20:24
jast gitk master br120:25
cbreak gitk --all20:25
jast you can also get the actual difference20:25
_ikke_ Jon--: gitk by default only shows the current branch20:25
dunpeal Jon--: the graph displayed to you by gitk, if you don't specify anything, is walked from HEAD20:25
Jon-- _ikke_, thanks20:25
dunpeal, &20:25
Sebo joined20:25
cmn gitk will show whatever you tell it, just like log20:26
iamjarvo left20:26
Sigma joined20:26
_iron left20:26
mklappstuhl joined20:26
dunpeal use jast's solution for a graphical/gitk display, or `git log master...br1`. It can be easier to read with the --left-right flag.20:27
Jon--: you're welcome. ^20:27
nickpresta joined20:27
jast oh dangit, I've dropped out of the top5 karmicians20:28
Jon-- dunpeal, that was supposed to be a ^ but I wasn't gonna spam chan. Thanks :)20:28
jast my life is ruined etc.20:28
_ikke_ jast: could you share the top 5?20:29
Or is it to embarassing for you?20:29
maqr joined20:29
dunpeal there's karma to be had here? /me puts down a chair and sets up residence20:30
jast !karma20:30
gitinfo This channel tracks karma based on who has gotten lots of thanks for being helpful. If you want to help someone reach karmic nirvana, please mention their name when thanking them. Try ".karma <nick>" or ".topkarma", but please do it via private message to avoid mass highlighting people.20:30
dunpeal .karma dunpeal20:30
gitinfo the karma of the given users is shrouded in the mists of uncertainty.20:30
jast note that karma points are pretty expensive20:30
dunpeal :(20:30
dasil003 joined20:30
qwebirc79863 joined20:30
_ikke_ jast: expensive?20:30
fly9 joined20:30
dasil003 does anyone happen to have any domains registered at enomcentral.com?20:30
dunpeal random question of the day?20:31
jast yes. one point means having spent quite a bit of time helping thankful people20:31
qwebirc79863 How does git handle symlinks (by default)? Will the contents of a symlinked directory be included in the repo?20:31
alexukf joined20:31
_ikke_ jast: Ah ok20:31
jast qwebirc79863: no. it'll be stored as the equivalent of a symlink.20:31
_ikke_ qwebirc79863: no20:31
flippo left20:33
_ikke_ Cool, i'm on a shared 2nd/3rd place with cbreak20:33
andy23 left20:33
dunpeal .topkarma20:33
gitinfo top karmic beings: cmn: 20, _ikke_: 11, cbreak: 11, werehamster: 10, fauxfaux: 920:33
jast hey! didn't it say "please do it via private message"?20:33
dunpeal woops, sorry20:34
dasil003 dunpeal: yeah it's random, I'm scouring irc for someone with an eNom registration to confirm something in their admin20:34
pdtpatrick left20:34
rehat left20:34
jast perhaps I should change the commands to report back via notice only20:34
mklappstuhl left20:34
chuckhar_ left20:34
nickpresta left20:34
dpino left20:35
imachuchu holy crud, I didn't realize I had so much compared to the verterans here. Makes me feel somewhat useful20:35
Sigma left20:35
jast .karma jast20:35
gitinfo the Genuine Real Life Karmaâ„¢ REST API results are back! jast: 620:35
jast my dirty secret is out...20:36
lindenle Does a recursive clone of submodules have a parallele option?20:36
_ikke_ He built this system in the hopes he would get the highest karma20:36
nasso left20:36
axl_ joined20:36
jast sure :P20:36
(I don't care at all, really. it's a nice toy, though.)20:36
lindenle: you mean for multi-threaded fetching? I don't think so.20:36
pdelvopdelvo|afk20:37
pdtpatrick joined20:37
lindenle jast: yeah that is what I meant, if not why?20:37
imachuchu I'm working my way towards nirvana, just a few more karma tickets and I'll reach enlightenment!20:37
lindenle: how come, why does it matter?20:37
jast impatience )20:37
cmn it's a shell script, that's probably why20:37
jast ;)20:37
opus joined20:38
lindenle imachuchu: just would be nice, we have a lot of submodules in a repo and it is kind of slow.20:38
cmn ah, wait, there /is/ a good reason20:38
lresende left20:38
cmn parallel execution would mix the mesages20:38
lindenle cmn ?20:38
alexukf left20:38
jast yeah, the output would suck20:38
lindenle cmn: yeah that is true20:38
cmn and an error wouldn't be traceable20:38
nasso joined20:38
lindenle true20:38
_ikke_ EugeneKay would respond with ! why20:38
jast well you could work around that20:38
cmn sure, but nobody has20:38
jast yep20:38
because nobody has cared so far20:38
patches welcome, I'm sure ;)20:39
EugeneKay Well, it's the truth.20:39
lindenle I guess I should start digging into it ;)20:39
jast it's always the truth!20:39
.random20:39
gitinfo Please donate more random statements to feed the bot. You don't want the bot to starve, do you? Well, if you don't donate, it will, and it'll be your fault, and you'll have to suffer the accusing stares from everyone else in the channel. [6]20:39
dunpeal how do I donate random statements to the bot?20:39
cmn yeah, it came up in the ML, if someone figures out how to do it properly, it'll get integrated20:39
specialGuest left20:40
specialGuest joined20:40
arkiver left20:40
jast '.random add Random statement here'20:40
lindenle cmn: was that in our thread?20:40
corburn left20:40
cmn yes20:40
jast .random20:40
gitinfo tails (chosen by fair coin flip) [4]20:40
EugeneKay Should teach it to .vend20:41
linoj left20:41
jast write a plugin, see if I merge it20:41
EugeneKay I already wrote the API you can hit against, my part is done. :-p http://itvends.com/vend20:41
jast it doesn't work that way20:41
I only write code if I care about the feature. :}20:41
EugeneKay You should care! Think of the possibilities20:42
jast or if I get paid, but that's pretty unlikely with this IRC thingy20:42
torjus_ joined20:42
_ikke_ :D20:42
jast well, I suppose a .vent feature would be interesting20:42
but that's a different story20:42
EugeneKay The API even supports returning a bunch of items as JSON, so you can cache them and refill as needed20:43
_ikke_ jast: what would that even do?20:43
jast I don't know... scream obscenities at nobody in particular?20:43
axl_ left20:43
_ikke_ .random add A random statement20:43
gitinfo _ikke_: Okay.20:43
_Vi left20:43
jast or, more probably, collect derisive statements about... stuff.20:43
_ikke_ .random20:44
gitinfo <cmn> all that memory and processing power was just gonna sit there unused, we're helping [8]20:44
jast stuff that deserves to be derided, e.g. XML20:44
pdtpatrick_ joined20:44
_Vi joined20:44
imachuchu is there any way of asking how many random statements there are already stored?20:44
jast no20:44
john2496 left20:44
jast but if you ask very nicely, I might tell you20:44
EugeneKay !botsnack20:44
gitinfo Om nom nom20:44
_ikke_ did I wake EugeneKay up?20:45
EugeneKay No, but you did convince me to take a break from work.20:45
_ikke_ :D20:45
jast (14)20:45
hah, I'm not at work for once20:45
imachuchu .random20:46
gitinfo <vork> Is there a git gc --rampage? [13]20:46
EugeneKay wanders down hill to get mail20:46
_ikke_ lol20:46
diminoten how do you swap between branches in git flow20:47
if I just swap normally20:47
will it screw anything up in git flow or no?20:48
imachuchu jast: was just curious20:48
dunpeal diminoten: switching branches does not modify the graph.20:48
imachuchu jast: only 14, that's sad, I'll see what I can dig up20:48
_ikke_ diminoten: git flow is not anything special, it's just a convention on branching stuff20:48
diminoten dunpeal: word, so I can commit some changes to one feature, swap to other features, commit there too, then swap back to publish features20:48
well I just wanted to make sure20:48
dunpeal yeah, what were you afraid would happen?20:49
_ikke_ diminoten: The plugin doesnt track state or something, it just looks at the current situation20:49
diminoten it'd think one branch was a different branch20:49
like if I type git flow feature publish foo1, I just want to make sure it'd still publish foo1, even if I'm in the foo2 branch20:49
_ikke_ diminoten: afaik, it doesn't really know what branches there are20:49
diminoten: it's just a static set of operations20:49
rehat joined20:50
diminoten well it leaves you in certain states20:50
qwebirc79863 left20:50
diminoten I jsut hope it doesn't expect to find you still in that state when you're "done"20:50
alexukf joined20:50
_ikke_ if you want to publish branch foo, I guess you can best be in branch foo20:51
chuckharmston joined20:51
shreya left20:51
dr_lepper joined20:52
dr_lepper left20:52
dr_lepper joined20:52
diminoten meh I'll find out when I do it20:52
what could possibly go wrong? :D20:52
_Vi left20:53
fission6 left20:53
mklappstuhl joined20:54
jast added two more randoms \o/20:55
alexukf left20:55
maletor left20:55
dunpeal left20:56
freeed left20:56
KBme_ left20:57
KBme joined20:57
hoschi left20:57
ISF left20:57
_Vi joined20:58
phishy left20:59
titaniumNoob left20:59
cannonball left20:59
MetaCosm When I do 'git branch -a' it is showing branches that have been removed remotely (using git branch origin :foo) -- is there a way I can reset that21:00
cbreak MetaCosm: man git-remote prune21:00
gitinfo MetaCosm: the git-remote manpage is available at http://git-scm.com/docs/git-remote.html21:00
geekbri left21:00
elux left21:01
scientes_ joined21:02
scientes_ how do i make git push, push all branches?21:02
cbreak use --all21:02
scientes_ yeah i know thtat21:02
but by default21:02
_ikke_ scientes_: look at man git config push.default21:02
gitinfo scientes_: the git-config manpage is available at http://git-scm.com/docs/git-config.html21:02
martinjlowm left21:03
_ikke_ jast: Do statements have to be approved or something?21:03
mishok13 left21:04
_ikke_ oh, n/,21:04
DrHouse|TARDIS left21:04
aesptux joined21:04
axl_ joined21:06
ashirus joined21:06
giallu joined21:06
beneggett left21:06
alexukf joined21:07
skobiyan left21:07
SaCu left21:08
SaCu joined21:09
zastern left21:10
sq-one left21:11
scientes_ left21:11
chuckharmston left21:11
chuckharmston joined21:12
alexukf left21:12
heinrich5991 left21:12
spyro left21:12
torjus_ left21:14
Jon-- left21:15
kewah joined21:16
doug joined21:16
doug is there a good way to see what the last commit was for all the remote tracking branches in my local repo?21:17
Zenopus left21:17
amcsi__ joined21:17
Zenopus joined21:17
cmn man git for-each-ref21:17
gitinfo the git-for-each-ref manpage is available at http://git-scm.com/docs/git-for-each-ref.html21:17
helgikrs left21:17
opus__ joined21:17
Maccer left21:17
FernandoBasso joined21:18
mattp_ left21:18
mattp_ joined21:18
flijten left21:18
opus left21:18
opus__opus21:18
mischat_ joined21:19
jnewt left21:19
oojacoboo left21:20
cooloney_ left21:20
cooloney joined21:20
jnewt joined21:20
Giddeon joined21:20
mischat left21:20
amcsi_ left21:20
mischat_mischat21:20
oojacoboo joined21:21
ferdna left21:21
Giddeon I'm new to git. How do I pull down the latest master and switch to it?21:21
helgikrs joined21:21
doug into an existing repo?21:21
Giddeon yah, I've gone off working on my own branch, I want to see if anything newer has been released to master21:22
whatthepoop left21:22
doug you can do a git fetch21:22
that'll get your tracking branches updated21:22
Giddeon git fetch origin master?21:22
doug just git fetch21:22
that oughta sync everything up21:23
Giddeon great, thanks for the tip21:23
doug it won't actually put anything into your local branches, though.21:23
you can switch to master (git checkout master) and git will tell you if you're up to sync21:23
if not, it'll advise merging21:23
scientes_ joined21:23
doug and you can decide to merge or rebase at that point21:23
heinrich5991 joined21:23
Giddeon got it21:23
doug git pull is what a lot of people use, although it'll automatically merge by default, which may not always be what you want21:23
alexukf joined21:24
Davey joined21:24
marhaban left21:25
beneggett joined21:25
aspotashev left21:26
olaf_ joined21:27
aspotashev joined21:27
ddelrio1986 left21:28
alexukf left21:29
rehat left21:30
The24z joined21:30
j416 left21:32
wolftankk left21:34
unnamedwill left21:34
The24z_ joined21:36
olaf_ left21:37
AaronMT joined21:39
Sky[x] left21:39
The24z__ joined21:40
darren joined21:41
alexukf joined21:41
unnamedwill joined21:42
alexukf left21:42
The24z left21:44
The24z__The24z21:44
mike007 left21:44
dv310p3r left21:44
The24z_ left21:46
The24z_ joined21:46
pdtpatrick left21:47
pdtpatrick_pdtpatrick21:47
dv310p3r joined21:47
The24z left21:48
zackiv31 left21:48
psoo joined21:48
soreau joined21:48
alexisabril left21:48
longbeach left21:50
ph^_ left21:51
AaronMT left21:52
soreau I have a patch that wont apply because of a one line discrepancy. I'd like to git apply it instead of git am. Is there a way to tell git to apply it with the opportunity to fix it? I'm thinking of when it puts >>>>>>> lines in the file21:52
orkz left21:52
hidekin joined21:53
etcetera joined21:53
joshc soreau: git am -3 might be what you want.21:53
lresende joined21:54
gfontenot left21:54
etcetera left21:54
hobodave joined21:55
AlbireoX joined21:55
ehsan left21:55
hidekin left21:55
_Vi left21:56
soreau joschi: Yes that worked.. is there a way to tell it to give a chance to fix whitespace problems?21:56
slimjimflim joined21:56
_Vi joined21:57
alexukf joined21:57
slimjimflim when i create a tag and my working directory is on a branch, is the new tag a copy of the branch i'm on or of the master?21:58
<--noob pls correct me if i'm using the wrong terminology21:58
thursday joined21:58
Guest66958 left21:59
cmn the tag points to whatever you tell it to, defaulting to HEAD21:59
where !head21:59
gitinfo [!HEAD] HEAD is a 'pointer' to the currently checked out branch (or commit, if HEAD is !detached). In bare repositories it serves a different function: it tells clients which branch to checkout initially after cloning. HEAD is *not* something that exists separately for every branch; that's a common misunderstanding.21:59
Sky[x] joined21:59
barq left22:01
dogarrhea2 hrm. git status says: "Not currently on any branch"22:01
git checkout points my head to the latest revision and it still says "not currently on any branch"22:01
alanp joined22:01
cmn what command are you running?22:01
dv310p3r left22:01
etcetera joined22:01
dogarrhea2 git status22:01
i copied the folder with the .git file to a portable storage device and decided to work somewhere else22:02
thursday left22:02
cmn the checkout22:02
dogarrhea2 i have checked out something and it says "head now at blah blah" not sure if i need to clone22:02
blendedbychris cmn: hey sorry I keep stepping out. Do you know why git would complain about not being in the working path when moving GIT_DIR?22:02
cmn something? if you don't tell us what you did, we can't hlep22:03
etcetera left22:03
alexukf left22:03
dogarrhea2 ok so i need to checkout master22:03
pantsman left22:03
cmn if you want to switch to the master branch, yes22:03
dogarrhea2 i tried checking out the latest revision22:03
cmn how did you try? you still haven't said what you did22:03
dogarrhea2 git checkout 7ewhatever22:03
the hash22:04
keep forgetting this makes u go into neverland state where your next commit goes nowhere22:04
alanp_ left22:04
cmn then don't use it to get to a branch22:04
sirdancealot7 left22:06
spyro joined22:06
etcetera joined22:06
cmn blendedbychris: GIT_DIR would just be one part of the equation22:08
it depends on what the gitdir thinks the worktree is at22:08
or if it even thinks it should have one22:09
kcj joined22:09
spyro left22:09
spyro joined22:09
spyro left22:09
spyro joined22:09
TeckniX left22:10
gmartyn left22:10
dogarrhea2 hrm how do you make the head point to the latest revision in the branch?22:10
git is no longer detecting changes i make to my repository22:10
Maccer joined22:11
pavelz left22:13
thefalling left22:14
cmn you use checkout22:14
if you want to switch to a branch, you use the name, otherwise the hash22:14
slimjimflim if a repo is hosted on, for example, github, is it possible to export the whole repo to a different server and preserve all historical changes?22:14
pavelz joined22:14
fly9 left22:14
cmn slimjimflim: that's the point of git, yes22:14
Chani joined22:14
hobodave left22:14
slimjimflim cool. do you know where that process is documented?22:15
alexukf joined22:15
alexukf left22:16
TheJH left22:16
oakdog8oakdog8_22:17
cmn man git clone22:17
gitinfo the git-clone manpage is available at http://git-scm.com/docs/git-clone.html22:17
cmn it sounds like you should read the !book22:17
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable22:17
aesptux left22:18
slimjimflim k u rock22:18
dogarrhea2 is there a difference between git clone and copy the file system that contains the .git file?22:18
beneggett left22:19
cmn the refs that get fetched22:19
nglorioso left22:20
Davey left22:20
candybar left22:20
jonshea left22:21
Sebo left22:22
joephelius left22:22
madewokherd joined22:24
cakehero left22:26
tinti_ left22:26
tinti_ joined22:27
MrRoot joined22:27
tinti left22:27
leeN left22:29
melee joined22:31
Synthead left22:32
gitinfo set mode: +v22:32
melee i've made a booboo. my local branch has some stuff that i'm not yet ready to merge on my server so i've been cherry-picking commits that are ready to go. how should i go about resolving this so i can stop cherry-picking? branch the server and pull that in?22:33
nglorioso joined22:34
dinesh6654_ joined22:34
duckxx joined22:35
SkAzZ left22:35
kimico left22:35
kewah left22:35
kimico joined22:35
nglorioso left22:35
aaronky left22:35
beneggett joined22:36
metcalfc joined22:36
glennpratt_ joined22:36
aaronky joined22:36
artnez left22:36
SkAzZ joined22:36
bronsen left22:37
Orphis left22:37
Orphis joined22:37
ShadeTornado left22:37
Sky[x] left22:38
duckx left22:38
bogwonch left22:38
dinesh6654 left22:38
glennpratt left22:38
erichynds left22:38
tnelson joined22:40
cakehero joined22:41
cmn melee: see !fixup22:44
gitinfo melee: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history!22:44
Escherial joined22:45
Escherial ok, another dumb question, but i have a lot of stuff staged that i've since realized i want to be on another branch22:45
is there any way to stash what's staged?22:45
(preferably only what's staged)22:45
Guest32093oakdog822:46
cmn switch to whatever branch and then commit22:47
Escherial the stage follows you when you switch branches, then? also, i have things that i haven't yet staged; can i stash those without disturbing the staged stuff?22:48
cmn !float22:49
gitinfo If you have made a change in your working directory and have NOT YET COMMITTED, you may "float" that change over to another (`git checkout oldbranch`) or new (`git checkout -b newbranch`) branch and commit it there. If the files you changed differ between branches, the checkout will fail. In that case, `git stash` then checkout, and `git stash apply` and go through normal conflict resolution.22:49
cmn stash works on all uncommitted changes22:49
only what's committed is fixed22:49
your workdir is independent22:49
melee cmn - what effect does cherrypicking have on the history? any? couldn't I just branch it, push to remote, pull to local and checkout?22:50
chuckharmston left22:50
cmn a cherry-pick adds a commit to the current branch22:50
mklappstuhl left22:51
melee hmm, ok22:51
cmn I don't see what you want to achieve with push+pul22:52
if you want to merge, just do that22:52
mmc1 left22:52
melee well, my local and remote branch are out of sync22:52
cakehero left22:52
melee causing me to cherrypick commits22:52
ShadeTornado joined22:52
melee because I don't want to merge (yet)22:53
basically I should have branched from the start but I didn't22:53
simesy joined22:54
cmn but a pull does that22:54
if cherry-picking is the right thing, then do that22:54
but don't pull22:54
melee ok I'll keep cherry picking for now22:54
v0n left22:58
axl_ left22:58
cenuij left22:58
axl_ joined23:01
SegFaultAX left23:02
joephelius joined23:02
lustucru_ joined23:02
eletuchy_ joined23:03
thiago left23:04
ShadeTornado left23:04
lustucru left23:05
afuentes left23:05
andy23 joined23:05
blendedbychris left23:05
eletuchy left23:06
oakdog8oakdog8__23:06
eijk_ left23:06
dvide joined23:07
RRottmann3892 joined23:07
SegFaultAX joined23:09
R40UL left23:10
Sym3tri left23:11
SirCmpwn left23:13
lustucru_ left23:14
lustucru joined23:15
SegFault1X|work2SegFaultAX|work223:15
lustucru left23:15
scientes_ left23:15
Davey joined23:17
jason237 left23:17
matthiasgorgens left23:18
psoo left23:18
slimjimflim is the .git directory a fraction of the size of the working directory because it's contents are compressed into hashes?23:20
chuckharmston joined23:21
matthiasgorgens joined23:22
mike007 joined23:24
gtrak left23:25
Esa joined23:25
cenuij joined23:25
joephelius left23:25
palyboy joined23:26
RichiH slimjimflim: hashes are trapdoor functions23:28
they don't compress23:28
they throw data away23:29
gusnan left23:29
slimjimflim right.23:29
scientes_ joined23:29
slimjimflim so it must compress the files somehow23:29
giallu left23:29
raykyri joined23:29
chuckharmston left23:30
Rakko joined23:31
Goplat joined23:31
jason237 joined23:32
ShadeTornado joined23:32
Rakko I keep having this problem where if I reset to a place before HEAD, checking out the branch (master) again doesn't fast-forward; it just says "Already on 'master'". How can I get back to HEAD after resetting backward?23:33
subbyyy joined23:34
dogarrhea2 if it were me and i were a noob23:35
well i am a noob23:35
and i would do a git log23:36
pheaver joined23:36
dogarrhea2 then a git checkout of the latest23:36
slimjimflim ...me too. i was gonna say git checkout23:36
theCole joined23:36
slimjimflim i just did that this afternoon. i think that's how23:36
frogonwheels Rakko: !HEAD23:37
gitinfo Rakko: HEAD is a 'pointer' to the currently checked out branch (or commit, if HEAD is !detached). In bare repositories it serves a different function: it tells clients which branch to checkout initially after cloning. HEAD is *not* something that exists separately for every branch; that's a common misunderstanding.23:37
Rakko hmm :/ seems like there should be a more automagic way23:37
dogarrhea2: git reflog, rather23:38
RRottmann3892 ...23:38
frogonwheels Rakko: !repro23:38
gitinfo Rakko: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting.23:38
Rakko frogonwheels: so this is not expected behavior?23:38
frogonwheels Rakko: I'm not sure what you are doing. It seems you have some confusion over terms and what things mean.23:39
Rakko Probably.23:39
dasil003 left23:39
Rakko Basically I move HEAD backward within its branch, so then I lose track of the old HEAD unless I do a reflog (or I happened to tag it earlier)23:40
frogonwheels Rakko: if you give a transcript, it will be easier to see and help you work out any misconceptions.23:40
Rakko ok. next time I run into this I will23:40
tystr so I'm doing git fetch origin23:40
raykyri left23:40
imachuchu Rakko: the basic idea is to use a ref (branch/tag) if you care about some point in time23:40
tystr and it's not getting any of the remote branches23:40
frogonwheels Rakko: do you mean you checkout a previous commit, or that you reset your branch to point to a previous commit23:40
Rakko frogonwheels: the 2nd option23:41
frogonwheels tystr: git branch -r23:41
RRottmann3892 ...23:41
frogonwheels Rakko: ok.. well in that case, don't talk about HEAD. that's just where you are. you're talking about changing your branch.23:41
slimjimflim in svn there's revisions. what would be the git equivilent?23:41
tystr frogonwheels hmm that lists the branches as origin/remote-branch23:41
john_anderson left23:41
tystr but doing git checkout remote-branch doesn't work23:41
Rakko oh, what's the difference between *checking out* a previous commit and *resetting* to point to a previous commit?23:41
imachuchu slimjimflim: commits23:41
slimjimflim oic23:42
frogonwheels Rakko: if you use a 'reset' you are changing where your current branch is pointing to23:42
Rakko oh! then that's my problem23:42
slimjimflim so can you git checkout a commit number?23:42
harish joined23:42
Rakko yes you can, slimjimflim23:42
imachuchu Rakko: checkout is for copying files to your working checkout so that you can interact with them (like with vim or whatever)23:42
frogonwheels Rakko: if you want to go back and have a look at something, just checkout the commit. leaving you in a !detached state - but that's ok unless you want to commit23:42
gitinfo Rakko: A detached HEAD(aka "no branch") occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach23:42
tystr I see this in git branch -r23:43
origin/master23:43
origin/visitor-count23:43
Psycho_pr left23:43
frogonwheels Rakko: you can restore where your branch was pointing to use the reflog. git reflog branchname23:43
imachuchu slimjimflim: you can checkout any tree-ish object, where tree-ish is a very large set of things (tags/branches/commits/reflog entries)23:43
john_anderson joined23:43
Psycho_pr joined23:43
ShadeTornado left23:43
frogonwheels Rakko: err git reflog show branchname iirc23:43
tystr but doing git checkout visitor-count i get this:23:43
error: pathspec 'visitor-count' did not match any file(s) known to git.23:43
slimjimflim detached head...that sounds painful23:43
imachuchu: right23:43
frogonwheels !zombie23:43
gitinfo Brainzz! More brainzzzz! For information about detached heads, see !detached23:43
Rakko thanks23:44
imachuchu tystr: is visitor-count a branch/tag or what?23:44
frogonwheels tystr: hmm.. version of git?23:44
tystr branch23:44
frogonwheels tystr: git checkout -t visitor-count origin/visitor-count23:44
tystr git version 1.7.5.423:44
slimjimflim noooo zombies are eating my detached head :O23:44
RRottmann3892The24z_away23:44
Rakko left23:45
imachuchu tystr: how does it show up on a "git branch"?23:45
patient left23:45
tystr just master23:45
frogonwheels tystr: did you try that git checkout -t thing?23:47
tystr heh fatal: Missing branch name; try -b23:47
tystr wtf23:47
The24z_awayThe24z23:47
tystr must have typed a / lol23:47
The24z left23:48
pdtpatrick left23:48
ShooterMG joined23:49
ccarella joined23:49
ccarella left23:50
The24z joined23:50
boombatower left23:51
frogonwheels tystr: doing git checkout visitor-count SHOULD auto-magically do the equiv of git checkout -t visitor-count origin/visitor-count23:51
tystr weird23:52
I think that repos jacked up somehow23:52
I have another clone of it and all is working normally23:53
thelazydeveloper left23:53
tystr no idea how that happened, though23:53
imachuchu tystr: did you clone vs init?23:53
tystr: clone sets up the remotes, init just creates a new repo23:53
tystr right23:53
I cloned a long time ago23:53
imachuchu tystr: before the vistor-count branch?23:53
tystr yeah23:53
scientes_ left23:55
imachuchu tystr: actually nix that, I believe fetch pulls all remote branches unless you specify elsewise23:55
scientes_ joined23:55
The24z left23:55
_Vi left23:57
rohan32 left23:57
_Vi joined23:58
iocor left23:58
The24z joined23:58

Logs Search ←Prev date Next date→ Channels Documentation