IRCloggy #git 2012-09-04

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-09-04

Chillance left00:00
btree_ joined00:00
Chillance joined00:00
xxtjaxx left00:01
lb_ left00:02
lb_ joined00:02
lb_ left00:02
lb_ joined00:02
cworth left00:03
xxtjaxx joined00:03
xxtjaxx left00:03
xxtjaxx joined00:03
didi left00:05
cworth joined00:06
ironfroggy left00:06
brenden1 joined00:08
Antisoche left00:08
Antisoche joined00:08
caseymcg left00:11
glennpratt left00:11
kokainepizza left00:12
DanyO83 left00:12
iocor left00:13
multiHYP night all00:14
multiHYP left00:14
billyoc joined00:15
Moussekateer joined00:16
milki lol00:18
i learned a lot from w3schools00:18
!00:18
mostly css stuff00:18
mdw left00:18
jalama joined00:19
archdori left00:23
mdw joined00:24
robottinosino joined00:25
robottinosino left00:25
guampa left00:26
robottinosino joined00:26
robottinosino left00:26
gmagno joined00:27
etcetera joined00:27
etcetera left00:28
gmagno erm... consider that I already have git installed (from source code). Should I unisntall it before cloning a new release of git and make install it? Or can I just make install it over the first one?00:28
RaceCondition left00:29
maletor joined00:29
Chillance left00:30
AlbireoX left00:31
tmcmahon joined00:31
unreal joined00:32
neurodrone left00:33
hyperair left00:34
milki well, you need git to clone it first right?00:35
if it comes with an unintall script, i recommend using it though00:35
offby1 gmagno: "make install" over the existing one should be fine; I do that all the time00:37
Petskull joined00:38
gitinfo set mode: +v00:39
Petskull so.. I ran 'git commit -m "first commit"' on my code folder.. Now how to I retrieve my backup?00:39
cmn what backup?00:40
Petskull well, my commit00:40
cmn that's not a backup00:40
Petskull I know00:40
cmn what do you want to retrieve? it's there, that's what you have00:40
Petskull but if I smashed up my code, can I revert to a previous version?00:41
cmn yes00:41
how depends on what you've done up to now00:41
the !book explains how you use git00:41
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 !parable00:41
Petskull got a handle refernce for how?00:41
ah, yeah, I saw that one00:41
cmn first of all, ask git status what's going on, then !fixup tells you how to undo some things00:42
gitinfo 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!00:42
Petskull looks again00:42
cmn but this all depends on what you've done and what 'revert' means in your situation00:42
Petskull well, my main concern is using the old version if I mess up my code by writing a bunch of crap in it00:43
don't worry, I'll figure it out00:43
dozymoe left00:44
Akufen left00:44
Vert left00:44
gmagno offby1, thank you o/00:46
offby1 git is actually one of the easier Free Software thingies to build.00:47
CannedCorn joined00:47
cooloney joined00:48
Sargun_ScreenSargun00:49
chrisrr left00:51
pandeiro joined00:52
xxthink left00:52
glennpratt joined00:55
iori joined00:56
ceradon-awayeuphoria00:58
codeshah joined01:00
ecksit joined01:02
ecksit morning guys, here is my situation. I have a remote repo and a local repo. Essentially the same contents except for a few files. I need to get my local dir up to date from the remote master branch. what is the best way to achieve this without causing errors?01:03
Guest79949 left01:03
jason joined01:03
jasonGuest7768801:04
Yuuhi` left01:04
neurodrone joined01:04
neurodrone left01:04
neurodrone joined01:04
euphoriaceradon-away01:04
milki content doesnt matter so much as commit history01:04
cmn ecksit: fetch from the remote and see what you want to do, possibly merging01:05
offby1 ecksit: I always do "git remote update", then "git sl HEAD..@{u}" to see what's new01:05
ceradon-awayeuphoria01:06
ecksit cheers, will have a crack01:06
sebastorama left01:06
rohan32 joined01:06
w09x left01:07
hanasaki joined01:08
kokainepizza joined01:08
gitinfo set mode: +v01:08
intripoon joined01:08
hanasaki is there a way to undo a "git init" on a directory that it was run on by mistake?01:08
bremner rm -r .git01:09
SeoZ joined01:09
hanasaki what about the subdirectories on that directory?>01:09
gigamonkey left01:10
hanasaki does each subdir have a .git like there is a .svn for svn?01:10
cmn no, and neither does svn now01:11
ecksit will git carry through chmod settings?01:12
hanasaki ah just the parent dir. I didn't know about the change in svn... what caused that in what ver?01:12
intripoon_ left01:12
agile left01:12
cmn ecksit: git doesn't care about chmod01:12
diegoviola left01:12
cmn it only cares whether the file is executable for the user01:12
Petskull *sigh* git can't be this complicated...01:13
xiangfu joined01:13
etcetera joined01:13
dhruvasagar left01:13
chuckf Petskull: the basic usage is not that complicated01:14
sebastorama joined01:14
offby1 cmn: Huh! I didn't know that. Guess it's been a while since I paid any attention to Subversion.01:15
Sorry, Karl!01:15
Petskull yeah, I'm thinking it can't be that complicated01:15
must be it's not intended to be used between folders like this01:15
offby1 Petskull: it is, and it isn't. The UI is horrible. But the underlying concepts are pretty simple01:15
cmn it's not a sync01:15
Petskull I know it's not rsync01:15
offby1 Petskull: general-purpose git advice: 1) Read "Git For Computer Scientists" (http://eagain.net/articles/git-for-computer-scientists/); 2) Run "gitk --all"; 3) Learn about "git reflog"01:15
Petskull reading this now: http://git-scm.com/book/en/Git-Basics-Tagging01:16
cmn it's not rsync either, no01:16
Petskull already looked at gitk01:16
Milossh left01:16
jdyin joined01:16
Petskull ok, how do I get the a specific version onto a folder?01:17
ecksit why is it i made a change but git isn't picking it up in the repo.01:17
Petskull that's what it's set up to do, isn't it?01:17
duckxx joined01:17
cmn that's one thing that it does01:17
Petskull from folder_a to folder_b?01:17
cmn use checkout01:17
hyperair joined01:17
cmn no, that's not what git is for01:17
Petskull not clone?01:17
cmn if you want to clone the repo, do that01:18
but getting a specific version isn't what clone is for, that's checkout01:18
diegoviola joined01:18
cmn clone is what you do before you can do anything01:18
acrocity joined01:19
acrocity left01:19
gtuckerkellogg joined01:19
Petskull heh- nevermind.. I'ma go back to my 'backup-20120903' folder system01:20
bizhanMona left01:20
Petskull that seemed to work better01:20
bizhanMona joined01:23
ironfroggy joined01:23
hwrd|work joined01:24
hwrd|work left01:24
acrocity joined01:25
alberto56 joined01:25
Eridius left01:26
hwrd|work joined01:26
cybersphinx left01:31
gmagno left01:33
frogonwheels left01:33
noyb left01:34
frogonwheels joined01:34
sebastorama left01:35
sebastorama joined01:35
Vampire0 left01:36
Davey joined01:37
acrocity left01:37
euphoriaceradon-away01:40
Ferris_ left01:42
Ferris_ joined01:42
duckxx left01:43
gtuckerkellogg left01:46
alberto56 left01:46
aircan joined01:47
sebastorama left01:47
redrocket joined01:48
codeshah left01:49
nitrix joined01:49
tjholowaychuk left01:49
caseymcg joined01:50
Vampire0 joined01:50
rgr joined01:50
hwrd|work left01:50
iamtakingiteasy left01:53
aircan left01:55
Ferris_ left01:57
hashset left01:57
iamtakingiteasy joined01:57
Ferris_ joined01:58
jim joined01:59
jim heya.01:59
hashset joined02:00
artnez Is anyone aware of a shortcut for HEAD that doesn't include caps?02:00
Typing out HEAD is no fun. Typing SHIFT+H+TAB is a little better, but it would be nice if there was one magic character.02:02
ecksit left02:02
Ferris_ left02:03
cmn you rarely have to type it02:03
make an alias for your most-used commands02:03
artnez cmn: Eh. I guess you're right. In ranges I just omit it. Only time I use it specifying refs in git-log.02:04
cmn: Aliases for things like HEAD^3 aren't very useful either though.02:06
cmn don't hard-code the modifiers02:06
Taichou joined02:07
jim I've been noticing that emacs has some kind of git module (saw it get loaded as I used emacs) and I had questions about it... is it considered any good? anyone have some experience with it? (artnez howbout caps lock, and another possibility, howbout running gtypist periodically so anything becomes second nature and -fast-)... and finally, are there other modules that go with emacs (text-only, as I like it in text but I consider emacs in x to be a disaster compare02:08
d to the simplest gui editors when they're done right)02:08
argoneus joined02:09
argoneus hello02:09
Ferris_ joined02:09
wolftankk joined02:09
argoneus if I have folder A, which has a git repo set up for github, and a folder B with different code files, and I want to replace all the files on github with those in folder B02:09
what's the best way to do that?02:09
jim I mean that, I -love- emacs in a terminal02:09
someprimetime joined02:09
jim hate it in x02:09
bremner jim: magit is the best choice for git in emacs afaik02:10
jim bremner, what's your favorite thing about it? where can I learn some more?02:11
kukks left02:11
someprimetime is it a bad idea to rely on github for hosting my codebase?02:11
irqq joined02:11
mattt_ left02:12
ricky joined02:12
someprimetime i just bought a paid subscription and am about to do it, but i want to be aware of any risks02:12
argoneus please can anyone help? :<02:12
jim someprimetime, well as you know git clone makes a complete copy02:12
harish joined02:12
cmn argoneus: delete your files, put the ones from B there, add, commit and push02:12
someprimetime: risks as in what?02:13
ipalaus joined02:13
bremner jim: http://magit.github.com/magit/02:13
jim thanks :)02:13
someprimetime cmn: just security… i know it'll be private since i'm paying but no one can access my stuff right?02:14
cmn if you don't make the repo public, github won't02:14
argoneus cmn: thing is02:14
do I just clone the repo and 'git rm .' ?02:15
and push back02:15
mgorbach left02:15
cmn you already cloned02:15
put the files in that repo's workdir, commit and push, as usual02:16
this isn't any different from any other change you make to the files02:16
argoneus but the folder isn't empty02:16
and I don't want to lose the files there02:16
just pull them from github02:17
FernandoBasso left02:17
tjholowaychuk joined02:17
jinjonBoo left02:17
jim since you have the prev versions in the repo (you do, right?) then you should be able to do the git rm *02:17
then remove the files02:17
gavin_huang joined02:17
jim then copy the others02:17
then add/commit02:17
argoneus I see02:17
so I git rm everything02:17
move them somewhere else02:17
move new ones in02:17
and commit&push02:17
jim well one sec before you do that02:17
cmn which files are you talking about now?02:18
jim see I"m close to a beginner here02:18
cmn you said you wanted to replace one set of files with another, no?02:18
jim so before listening to me, consider other advice02:18
argoneus yes02:18
but I don't want to lose the one set02:18
just pull it from github02:18
cmn no02:18
sebastorama joined02:18
cmn that doesn't make sense02:18
argoneus why not?02:18
someprimetime left02:18
argoneus ok here's the full story02:19
gusnan left02:19
vitor-br joined02:19
argoneus basically I started working on a program02:19
cmn replace the files you have in the repo with the other ones02:19
argoneus periodically pushed it to github02:19
cmn then add, commit and push02:19
Guest77688 left02:19
argoneus but then I realized my coding was terrible02:19
so I want to start over but use pieces from the original crappy one02:19
so I need to backup the current files and push new ones instead to a clear repo02:19
what would you do?02:20
jim you could make a dir that might be called attic02:20
and move the files to there02:20
cmn you don't push files, you push commits02:20
if you want to backup the files, do that02:21
orafu left02:21
cmn but that's irrelevant for the git operations02:21
orafu joined02:21
cmn do you want to delete all of the history for the branch on the repo at github?02:21
acrocity joined02:22
argoneus yes02:22
jim isn't that a form of "rewriting history"?02:22
cmn then init a new repo02:22
and just start02:22
forget about the other files02:22
consider that it's !rewriting02:23
gitinfo [!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)02:23
argoneus wait02:24
jim don't you want to keep the whole history? how many devs on the project? also, anyone watching/forking/cloning your code?02:24
argoneus what happens if I init a new repo in another folder02:24
hashset left02:24
argoneus and push to master02:24
also02:24
it's just me and no one gives a flying fuck about it except me02:24
:<02:24
cmn git will say that the history has diverged02:25
which is why you need to tell it to overwrite02:25
irqq left02:25
xxthink joined02:26
Fingolfin joined02:27
argoneus I see02:28
thanks02:28
jim argoneus, if all that is the case... could you explain why it matters to you wheter you start a new repo or not?02:28
argoneus I never said it mattered :<02:29
jim in this question I'm being an advocate for keeping your history02:29
oh ok... so, in that case you are faced with two choices which in your mind are fairly equal02:29
argoneus for me it's either scrap it or scrap it02:30
jaapbadlands joined02:31
argoneus guess I'll just make a new repo02:31
hashset joined02:31
argoneus but, if I wasn't alone and wanted to do a full re-write02:31
how would I do that?02:31
jim ok... so, I'm going to stop, because I've said my peace and you've heard02:31
nothingbutlove joined02:32
argoneus oh02:32
jaapbadlands how do I remove git from a folder and start afresh?02:32
jim stands back and lets the more experienced answer that02:32
argoneus sorry if I insulted you in any way02:32
jim of course not; I'm absolutely neutral02:32
argoneus well, you took the 'do wtf you want i don't care' stance02:33
jim sorry if my irc-tone suggests otherwise :)02:33
jalama left02:33
jim argoneus, well I'm sorry you heard it that way, and I take responsibility for that communication02:34
so I'll retry02:34
first, I'm glad you're interested enough to learn how to do the alternative02:34
herdingcat joined02:35
jim and second, it is yours and I would be reaching if I tried to -insist- you do any particular thing02:35
cmn argoneus: if you're working with other people, you don't do this02:35
if you did, everyone would be screwed02:36
jaapbadlands: rm -r .git && git init02:36
jim I consider it a win that you're at least willing to consider keeping your history or at least wanting to know how to do it02:36
berserkr left02:37
jim the "do wtf you want" part, I wish that didn't come across that way02:37
jalama joined02:39
jim adding to "if you're working with other people, you don't do this", if you have additional clones of the same repo, any history rewrite will screw at least all except one02:39
lb_ left02:39
lb_ joined02:40
lb_ left02:40
lb_ joined02:40
jalama left02:41
pandeiro left02:41
argoneus so the idea is02:41
instead of just removing it02:41
I make a commit saying 'removed stuff'02:41
so people can go back to that point anytime?02:41
jim yes, and more than that,02:42
the commit should also include adding the new files02:42
JeremyWei joined02:42
JeremyWei left02:42
angelsl joined02:42
argoneus so then people can choose between old/new and see what I actually did02:42
that sounds better02:43
though the con is02:43
it's basically saying "I wrote crappy code and had to re-write the whole thing"02:43
jim so you would git rm the files, then move the existing files out, then move the new files in,02:43
jaapbadlands thanks cmn, so I've removed that previous tracking of a wordpress site on my staging server. On my server is a full wordpress site, and in the new github repo - it is set to ignore everything except 2 folders. I would like to reinitialize this folder on my server to track files from the new github repository, only overwriting the tracked files. How do I go about this? Hopefully this...02:43
jim add them, then commit02:43
jaapbadlands ...explanation makes sense, happy to clarify if not02:43
argoneus yeah I'll do that02:44
makes much more sense02:44
jim so that one commit represents the whole replacement02:44
argoneus I mean02:44
at this point I could just re-make the repo02:44
but while at it I could also go and work on some good practices02:44
thank you very much02:45
one last thing before I go sleep02:45
I think I already asked it but didn't really get an answer02:45
lfaraone__ left02:45
argoneus the way I get it02:45
'master' branch represents the stable branch02:45
thallada left02:45
argoneus but if you init a new repo and start a new project02:45
it's not a stable version in any way but it defaults to master02:46
should I develop the stable version on master or should I instantly switch to an experimental/development branch and then merge to master?02:46
is there a 'good practice' for this?02:46
lfaraone__ joined02:46
thallada joined02:46
offby1 argoneus: your branches represent whatever you want them to.02:47
Many projects indeed use "master" to represent "the deployable state", but this is just a convention, and not all that widely honored, either.02:48
argoneus are there any people that instantly switch to another branch and use 'master' only for stable stuff?02:48
offby1 probably.02:48
argoneus so I can basically do what I want02:48
and it's always correct02:48
offby1 sure02:48
_huoxito joined02:48
offby1 it's a social thing, not a technical thing.02:49
rohan32 left02:49
cenuij joined02:49
argoneus I think I'll use 'master' for deployable stable versions then02:49
cenuij left02:49
cenuij joined02:49
rohan32 joined02:49
argoneus should be cleaner02:49
rohan32 left02:49
offby1 If your collaborators understand certain branch names to make certain promises, then you'd be wise to honor them; but if not, go wild.02:49
argoneus you can remove the 'master' branch right?02:49
or, do branches only show if something is in them02:50
offby1 you can remove any branch you want.02:50
not sure what your last question meant.02:50
sounds like you need to do some "Try It And See™"-ing.02:50
argoneus yup, doing that now02:50
sorry for the trouble02:50
thanks for the help02:50
have a nice night/evening :)02:50
noyb joined02:51
argoneus left02:52
offby1 why thank you02:53
hashset left02:56
etcetera left02:57
gigamonkey joined02:58
mgorbach joined02:59
cordoval joined03:01
cordoval hi guys03:01
bisect run failed:03:01
exit code 255 from 'build/bisect.sh' is < 0 or >= 12803:01
wonder why the exit code do not consider 25503:01
hashset joined03:02
harish left03:02
Eridius joined03:02
Fingolfin left03:05
dreiss joined03:07
Esa_ left03:08
Anders_J joined03:09
glennpratt left03:09
mh` joined03:10
xplat left03:10
lolfrenz left03:11
jim cordoval, my only suggestion is look at build/bisect.sh to see why it would throw that code03:11
cordoval jim is an exception of course03:11
but how to make it work even that exception03:11
jim find out what circumstances would have it thrown by reading the script (or is your goal something other than finding out what's wrong)03:12
cordoval yes when it started to give that exception03:12
oogatta left03:12
ivan\\ivan\03:13
yawk joined03:13
bitkiller left03:14
sebastorama left03:14
razdaz joined03:14
noyb left03:14
oogatta joined03:14
AlbireoX joined03:15
goweol joined03:20
goweol left03:20
heytrav left03:21
Hasbro joined03:21
brainbox1100 left03:22
Goplat joined03:23
e66_ left03:24
hyperair left03:25
fisted left03:25
rubious left03:26
cordoval solved it03:27
jim :)03:27
cordoval thansk03:27
jim well you did it :)03:27
cordoval git bisect bad03:27
and keep going03:27
g_bleezy joined03:27
cordoval left03:27
hyperair joined03:28
fisted joined03:31
Hasbro left03:33
hashset left03:33
heytrav joined03:34
g_bleezy left03:34
gigamonkey left03:35
juvenal left03:37
min|dvir|us joined03:37
min|dvir|us left03:37
min|dvir|us joined03:37
min|dvir|us left03:37
min|dvir|us joined03:37
min|dvir|us Hi. "fatal: Ambiguous object name: 'master'." How do I fix?03:37
milki maybe with a --03:38
etcetera joined03:38
milki or fulle path refs/heads/master03:39
jamescarr joined03:40
gtuckerkellogg joined03:40
nothingbutlove left03:40
min|dvir|us I solved my problem by deleting the repo and cloning it again.03:41
But now I have a different problem, specific to Bitbucket.03:41
Apparently they use the HEAD branch to keep track of which commit is the latest.03:42
But that branch doesn't exist when cloning.03:42
kpreid HEAD is not a branch03:42
min|dvir|us I was able to do `git push origin :HEAD` but now I don't know how to make it point to the right branch on the remote.03:42
kpreid: I'm aware of that.03:42
But on Bitbucket it is.03:43
Or a tag of some sort.03:43
milki the repo sounds messed up -.-03:43
its supposed to be a symbolic-ref03:43
min|dvir|us milki: can you please help me fix it?03:44
milki doesnt even know what :HEAD would do03:44
milki i doubt it does what you think it does03:44
neurodrone left03:44
milki i dont use bitbucket03:44
min|dvir|us Oh, :<ref> will delete the ref remotely.03:44
milki so no clue03:44
but since its a symbolic ref03:44
does it delete the HEAD ref or what it points to03:45
?03:45
min|dvir|us milki: the ref itself.03:45
Ivoz left03:45
milki are you absolutely sure03:45
min|dvir|us This has worked on Bitbucket and Github.03:45
milki i would have to double check it locally03:45
cuz you should never need to worry about it03:45
min|dvir|us milki: yes, I'm sure. You can do the same with a tag.03:45
tjholowaychuk left03:46
min|dvir|us Now, my problem is to restore the HEAD branch on the remote, and make it point to master.03:46
milki error: unable to delete 'HEAD': remote ref does not exist03:47
wolftankk left03:47
milki hmmm03:47
min|dvir|us I fixed it.03:47
milki min|dvir|us: if this was github, you would be able to do it via the web interface03:47
zdevex joined03:47
min|dvir|us I made a local branch called HEAD, pushed it, and deleted the local branch.03:48
Marbug left03:48
milki ya...that totally does not sound right03:48
Qiang joined03:48
zdevex left03:48
milki well03:48
if it works03:48
good for you03:48
min|dvir|us I hope I don't run into any issues.03:48
milki you probably will03:48
:P03:48
min|dvir|us It fixed the commit log in Bitbucket.03:48
milki what does ls-remote say?03:49
serj_ left03:49
min|dvir|us milki: HEAD, refs/heads/HEAD, and refs/heads/master all point to the same commit.03:49
milki refs/heads/HEAD should go away03:50
dv310p3r joined03:50
milki HEAD is fine though03:50
maybe bitbucket recreated it on your branch push03:50
cehteh oops .. is there something simpler to show the diff between 2 succesive commits than git diff $ID~..$ID ?03:50
milki dont use the ..?03:50
min|dvir|us milki: how would I get it away?03:50
milki min|dvir|us: try :refs/heads/HEAD03:51
wolftankk joined03:51
cehteh :]03:51
min|dvir|us milki: sweet. And the commit log in Bitbucket is fine.03:51
milki: how do I know that HEAD will always point to master?03:51
milki it doesnt03:52
min|dvir|us milki: I want it to refer to master.03:52
Not a specific commit.03:52
jim isn't each branchhas its ownmaster?03:52
min|dvir|us jim: master is a branch.03:52
herdingcat left03:52
milki min|dvir|us: you said bitbucket is changing it themselves03:52
so you should talk to them03:53
jim so master has its own head, and other branches do too?03:53
min|dvir|us milki: no, I didn't say that.03:53
milki: I'm changing HEAD, clearly. Bitbucket uses HEAD to show the latest commit.03:53
milki a regular push should not change the symbolic-ref HEAD03:53
o03:53
wait what03:53
that doesnt make sense still03:53
so you are changing it because bitbucket uses it to show the latest commit...03:53
min|dvir|us Right. Without HEAD, there's no latest commit.03:54
milki why are you changing it?03:54
min|dvir|us I want HEAD to refer to master.03:54
Rather than a particular commit.03:54
milki its a symbolic-ref03:54
Fandekasp left03:54
min|dvir|us milki: how do you know?03:54
milki it points to a branch which then resolves to a commit sha03:54
min|dvir|us Clearly HEAD on Bitbucket isn't HEAD locally.03:54
milki of course03:54
dv310p3r left03:54
min|dvir|us milki: how can I see which branch the remote HEAD is pointing to?03:54
razdaz left03:55
milki i dont know if you can actually verify what it is on the remote side03:55
ls-remote only shows what it resolves to03:55
serj joined03:55
min|dvir|us milki: are you sure about that?03:55
razdaz joined03:55
AlbireoX left03:56
infogulch|afkinfogulch03:56
milki unless you are messing with it yourself, it is by default a synbolic-ref03:56
min|dvir|us milki: well clearly I'm messing with it.03:56
razdaz left03:56
milki as with any regular file on a *nix operating system, you can do whatever you want with the file03:56
min|dvir|us .git/HEAD shows a ref.03:57
(Not a commit.)03:57
milki your local HEAD doesnt matter03:57
min|dvir|us I'd like to confirm that's the case remotely.03:57
milki you said the problem is your remote HEAD03:57
min|dvir|us Right.03:57
milki and i dont think you can touch it03:57
min|dvir|us Well, when I pushed it, that's what was in .git/HEAD.03:57
milki unless bitbucket has a web interface for it03:57
your .git/HEAD is your local HEAD only03:58
it can either be a symbolic-ref or a commit in case of a detached head03:58
adiabatic joined03:58
min|dvir|us milki: are symbolic refs transferred to remotes when pushing?03:58
milki the remote head refers to the default branch that will be checked out on a clone03:58
min|dvir|us milki: can't it also be the default commit?03:59
milki min|dvir|us: the remote head is neighter a commit, branch, or tag03:59
so i dont think you can touch it03:59
min|dvir|us milki: but I did.03:59
milki ive never heard of a clone checking out a random commit03:59
milki tries03:59
Fingolfin joined04:00
tmz left04:00
Anders_J left04:00
nebulabox joined04:00
gtuckerkellogg left04:01
milki lol, i cant even clone it now04:01
AlbireoX joined04:01
infogulchinfogulch|afk04:01
milki so i dont think what you think is happening is happening04:01
min|dvir|us milki: all I know is that the remote HEAD either points to a ref or a commit.04:01
nebulabox left04:02
min|dvir|us And I want to know which.04:02
dv310p3r joined04:02
milki and im telling you i dont think theres a way to tell04:02
min|dvir|us Fair enough.04:02
nebulabox joined04:03
milki if theres no bitbucket web thing for it04:03
nebulabox left04:03
milki then i have no clue04:03
github has a web form for it04:03
pretty sure you need access to the remote server04:03
artnez min|dvir|us: What does git-ls-remote give you?04:04
milki and like i tried, you cant clone the repo if HEAD isnt a symbolic ref04:04
min|dvir|us artnez: shows HEAD and refs/heads/master pointing to the same commit.04:04
pppaul joined04:05
dv310p3r left04:05
artnez min|dvir|us: You might look into the various options that git clone gives you.04:06
Davey left04:06
CannedCorn left04:06
artnez Perhaps you can clone some partial version of the repo so you could repair it.04:06
tmz joined04:07
artnez Like, maybe get a bare repo.04:07
milki clone should not mess with the remote repo04:07
dv310p3r joined04:07
artnez milki: Not saying it will. But if his clone is failing...04:07
milki there are few, if only 1 command that can change the remote side04:07
artnez: is it?04:08
the problem started with ambigious ref 'master'04:08
pppaul left04:08
min|dvir|us artnez: I never said that.04:08
wwalker joined04:09
milki are you sure bitbucket doesnt have an interface for a default branch?04:09
Bosox20051 joined04:09
min|dvir|us milki: I am not sure.04:10
pppaul joined04:10
pppaul left04:10
artnez min|dvir|us: In the admin area there is a "main branch" field.04:11
min|dvir|us artnez: oh, nice! It says "master".04:11
dv310p3r left04:12
milki well then04:12
thats what HEAD should be04:12
next time you think its broken, check there first04:12
min|dvir|us OK, I'm pretty confident it's fixed.04:12
Thanks guys.04:12
min|dvir|us left04:13
milki awesome04:13
jim wow, just finished a lot of separating and committing... took like 2 hours04:13
I wanted the commits -clean- and only having one specific change04:14
simesy left04:14
simesy joined04:14
artnez I don't commit often, but when I do, I commit every line individually.04:15
wwalker https://gist.github.com/3616451 - I've researched this and i seems that the answers I found don't work.04:16
Anyone got a URL or man page that explains what I'm missing? Preferably not "read them all"04:16
hashset joined04:16
milki !doesnt04:17
gitinfo [!doesntwork] Sorry to hear it doesn't work. What happened? Did it fall asleep on your couch, with your sister? Eat your homework? What did you want it to do? What happened instead? Please be specific!04:17
tmz left04:17
nevyn wwalker: git checkout -t origin/blah04:18
milki wwalker: ^04:18
nevyn forget the remotes bit.04:18
milki oo04:18
tmz joined04:18
jamescarr left04:18
milki right, thats not even the full path anyways04:18
tmz left04:18
jaapbadlands left04:18
tmz joined04:18
jim hey!! I'm NOT a dog, and I DON'T eat my homework!04:19
adiabatic Do you eat anyone else's?04:19
tmz left04:19
jim slaps gitinfo with a small bull mastief04:19
tmz joined04:20
jim adiabatic, so your temp increases as pressure decreases?04:20
tmz left04:20
jim forgot what adiabats do04:20
adiabatic no heat goes in, no heat goes out04:21
jim but stuff can happen inside?04:22
tmcmahon left04:22
wwalker nevyn: tried that, didn't work, exact response in the gist (https://gist.github.com/3616451)04:23
eedeep joined04:24
adiabatic jim: yeah, pretty much: http://en.wikipedia.org/wiki/Adiabatic_process04:24
eedeep hi there got a question which I'm wondering if anyone can clarify....scenario is you have a mainline style brnach, which the team is pushing to regularly, let's call it develop. then you have a long running feature branch which you created off develop, and multiple devs are working on that feature branch04:25
TheJH joined04:25
nevyn wwalker: git checkout -t refs/remotes/origin/contact_address ?04:25
eedeep ie, its a shared feature branch. if you rebase that branch from develop daily, to keep it fresh, and then push...is that going to cause headaches for the other devs working on that feature branch (because you have altered commit history and published...ie, I have heard that can cause headaches) ?04:26
jim eedeep, rebasing, isnt' that rewriting history?04:27
wwalker nevyn: same error. so does this mean the branch on the upstream repo is missing something?04:27
milki eedeep: yes it will cause headaches04:27
jim (any form of which is very bad berries in a multiperson project of any kind04:27
milki however04:27
jim )04:27
milki if all your devs rebase before pushing, it should alleviate the problem04:28
eedeep jim: milki : right, suspicions confirmed. but what is the solution then?04:28
ah k04:28
milki thea headache is if they dont04:28
eedeep so just prior to pushing, make sure they rebase04:28
milki yes04:28
gtuckerkellogg joined04:28
eedeep milki: jim : ok thanks a lot04:28
next phase of learning will be to understand properly why that is04:29
jim I'm doing single-person and I still do my best to never rewrite... since I might have multiple clones out there which will get screwed (as an actual person would) and have to reclone and you have to tell them all to reclone it04:29
milki always rewrites when single-person04:29
milki :P04:29
i choose a single repo to act as a master04:29
usually a gitolite server04:30
jim the best-practices recommendation is you should avoid any history rewriting04:30
Sigma joined04:30
milki only for public histories04:30
all bets are off for private histories04:30
its called !sausage04:30
gitinfo [!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 !perfect04:30
eedeep right got ya04:30
!perfect04:30
gitinfo [!postproduction] So, you want to make your commit history look pretty before pushing? http://sethrobertson.github.com/GitPostProduction talks you through how to use 'rebase -i' to do this.04:30
eedeep milki: hey that's rad04:31
jim well if it's private and still multidev (or multiclones are out there), you can still screw things up fairly badly by getting into the bad habit of rewriting history04:31
eedeep, also have you read "git from the bottom up"? cool 30 pg pdf04:33
milki jim: tis why theres a central server called gitolite04:33
eedeep jim: nah i'll check that out thanks04:34
how do I find out what all the ! keywords are in here? they look useful04:34
jim it's a really good technical intro04:34
nevyn jim: I'm not convince rewrites are useful04:34
!factoids04:34
gitinfo [!triggers] Please don't spam me! I'm just a poor bot! Here's everything I know: http://jk.gs/git/bot/trigger.php04:34
nevyn eedeep: ^^04:35
eedeep nevyn: sweet04:35
TheJH left04:35
jim nevyn, agreed, that's why I try avoiding them and in the places where it's inconvenient, I still avoid them (knock on wood)04:35
nevyn huh04:36
I didn't mena to say that.04:36
I hate merges ;)04:36
I hate the unknownness of merges particularly04:37
that arnt' ff04:37
codewrangler left04:37
donri left04:37
jim at least if you have to merge you're better off with git than cvs04:38
toabctl joined04:39
jim merges are life... just ask a salmon why he swims upstream04:39
Swathe left04:39
mindlogger joined04:40
mindlogger is it possible to use git and push it to mercurial?04:41
I hate branching in hg and I just can't stand its stupidity but at work I must deal with mercurial04:41
nevyn wwalker: git checkout -t remotes/origin/blah04:42
jim I think so... maybe you can build a push/pull situation04:42
so that every time the mercurial changes it triggers a push to git and when you commit to git it pushes to the merc04:43
that would be the ideal and most interactive04:43
milki ive seen an hg-git before04:43
im pretty sure theres a something like a git hg04:44
just like theres a git svn04:44
and bzr-git04:44
eedeep jim: so what is a good way to deal with this scenario where you have a long running shared feature that you need to keep freshening up from the main branch? would merging the main branch into it (rather than rebasing) avoid the problems associated with history rewriting?04:44
milki: ^04:44
milki no, you should rebase04:44
you will have lots of merge problems later if you dont rebase04:45
artnez eedeep: You don't have to rebase continuously. You can rebase when you're done with your feature.04:45
milki unless you want to deal with them when you merge the feature back04:45
artnez eedeep: I actually like the continuously-merge-then-rebase-when-done way because I can keep track of merge conflicts.04:45
mritz joined04:45
eedeep yeah I know....dealing with the catastrophic merge at the end (if you haven't been rebasing) is undesirable i think04:45
gtuckerkellogg left04:45
milki artnez: o, will rebase work the same way as if there were no merges then?04:46
o..except for the merge conflicts...04:46
eedeep artnez: you mean merge the mainline branch into your feature regularly?04:46
instead of rebasing04:46
artnez milki: Yes if you `git rebase master` it'll nuke all the merge commits.04:46
irqq joined04:47
artnez eedeep: Yes. Then when you're ready to merge your feature back into the maineline, do a rebase first.04:47
milki artnez: oo, didnt know that04:47
then i guess merging is perfectly fine then04:47
eedeep artnez: oh, interesting04:47
so in that scenario, instead of rewriting history regularly, you're just doing it once, but in a big way04:48
Sigma left04:48
crocket left04:50
c98_ left04:51
Bosox20051 left04:52
jjang left04:55
beautifulmind joined04:57
vitor-br left04:58
jjang joined05:00
_iron joined05:00
boombatower joined05:01
Milossh joined05:02
c98_ joined05:02
crocket joined05:02
nitrix left05:02
Swathe joined05:03
thiago joined05:04
binger|away joined05:05
binger|away left05:05
hadi joined05:05
hadi left05:06
pdelvo|afkpdelvo05:06
binger left05:07
quazimodo left05:08
Petskull left05:10
sawdisk_ left05:14
WillMarshall joined05:14
sawdisk_ joined05:15
und3f joined05:15
etcetera left05:16
pdelvopdelvo|afk05:18
jcao219 left05:21
adiabatic left05:23
hyperair left05:24
mritz left05:24
harish joined05:25
_iron left05:26
avpx left05:26
harshpb joined05:27
noyb joined05:27
hashset left05:29
Qiang left05:32
irqq left05:37
quazimodo joined05:39
pantsman joined05:40
pantsman left05:40
pantsman joined05:40
sangi joined05:40
Tegi joined05:42
Milossh left05:42
patrick85 joined05:43
Milossh joined05:45
AlbireoX left05:46
kokainepizza left05:48
dreiss left05:49
harish left05:50
ThomasLocke joined05:51
tmz joined05:51
caseymcg left05:52
AdrienBrault joined05:52
gtrak joined05:52
angelsl left05:53
angelsl joined05:53
hyperair joined05:54
Eridius left05:54
madewokherd left05:54
boombatower left05:56
gtrak left05:56
f0i left05:57
Qiang joined05:57
d3vic3 left05:59
d3vic3 joined06:01
senny joined06:04
AdrienBrault left06:05
_jmg left06:05
duckxx joined06:06
angelsl left06:06
MaximLacrima joined06:07
dvide joined06:07
soee joined06:08
duckxx left06:09
kokainepizza joined06:11
Fingolfin left06:12
banghouse left06:15
cbreak-work joined06:15
j416 joined06:17
mindlogger left06:17
mishok13 joined06:17
flijten joined06:18
Milossh left06:21
gun-lpt joined06:22
xxthink left06:22
j416 left06:23
Marbug joined06:24
mishok13 left06:26
pdelvo|afk left06:28
Swathe left06:28
arti_t joined06:28
sebrock joined06:29
unreal left06:29
unreal joined06:30
pdelvo|afk joined06:30
arti_t left06:30
JohnBat26 joined06:37
fisted_ joined06:37
Swathe joined06:39
fisted left06:40
noyb left06:41
blami_ joined06:42
toabctl left06:43
mabrand joined06:45
giallu joined06:46
giallu left06:46
giallu joined06:46
Advocation joined06:46
Fuuzetsu left06:47
skorgon joined06:48
skorgon left06:48
skorgon joined06:48
jonnu joined06:48
Fuuzetsu joined06:49
diegoviola left06:49
cenuij left06:55
RaceCondition joined06:55
beautifulmind left06:55
Flibberdy left06:56
Flibberdy joined06:56
dsantiago joined06:56
Flibberdy Anyone have a good link on setting up certificate based auth between a windows client and a linux server?06:56
JohnBat26 left06:57
mishok13 joined06:57
pdelvo|afk left06:57
goweol joined06:58
pdelvo|afk joined06:58
ph^ joined06:59
stepnem joined07:00
IcePic Flibberdy: any guide on using ssh with keys would work, I guess07:00
pawdraig left07:01
Flibberdy IcePic: oh so if you set up ssh certs for interactive logins then git'll work too? interesting, thanks07:01
IcePic git rides on top of ssh, so any auth based on ssh will work for git also, of course.07:02
dont know if ssh-keys works as "certs" for you, I think it does, but thats just an opinion of mine.07:03
Flibberdy yeah that's pretty much what I meant07:04
ph^ left07:04
gavin_huang left07:05
gavin_huang joined07:05
IcePic some people have odd workplace requirements.07:05
acl_ left07:05
IcePic wasnt trying to imply you had no clue or anything like that.07:06
snappy left07:06
JohnBat26 joined07:06
ph^ joined07:06
Flibberdy IcePic: no that's fine. I'm partly responsible for setting the workplace requirements so it's free range at the moment07:08
pdelvol joined07:08
lb_lb07:09
gun-lpt left07:09
IcePic could have been one of those "oh, ipsec isnt an 'ssl vpn', and the docs says we must run a ssl vpn so..."07:09
dpino joined07:10
hwrd|work joined07:10
Flibberdy honestly we're trying to get this as passwordless but still secure as possible07:10
because users are lazy and complain a lot07:11
dr_lepper left07:11
kokainepizza left07:11
IcePic yes, and ssh-keys will be fine. That is the default mode for gitolite, so if you get them to use some kind of ssh-agent, you're all set. (putty has pageant or what its called)07:11
that <- meant 'ssh' in the above sentence.07:11
pdelvo|afk left07:12
mabrand left07:12
mastro joined07:12
mastro left07:13
mastro joined07:13
White-- left07:14
cenuij joined07:15
cenuij left07:15
cenuij joined07:15
Fuuzetsu left07:18
stodan joined07:18
valtih joined07:19
Fuuzetsu joined07:19
diegoviola joined07:19
bizhanMona left07:20
snappy joined07:23
snappy left07:23
snappy joined07:23
bizhanMona joined07:23
dhruvasagar joined07:27
OOPMan joined07:28
mitchell joined07:28
Pitel_laptop joined07:29
herdingcat joined07:30
Pitel_laptop is there something like `git add --already-staged-files`07:30
arkiver joined07:30
chimay joined07:31
chimay left07:31
chimay joined07:31
cehteh left07:32
ngirard joined07:33
jceb joined07:33
simesy left07:33
WillMarshall left07:33
blami_ left07:35
artnez Pitel_laptop: That doesn't make sense. If it's staged, it's already staged.07:36
lb Pitel_laptop: do you mean " already tracked files" ? then it's git add -u07:36
quazimodo left07:37
Pitel_laptop I mean, I do `git add somefile`, then I do some changes to that file, and I want to automaticaly add the already added and chnaged files again.07:37
lb no07:37
Pitel_laptop maybe it's not called stage but index...07:37
lb you have to git add it again07:38
foraks left07:38
Pitel_laptop ok07:38
f0i joined07:38
maletor left07:39
klj613 joined07:39
d3vic3 left07:39
cenuij left07:39
blami_ joined07:40
jargon- joined07:41
jargon- left07:41
jargon- joined07:41
f0i left07:42
cenuij joined07:43
cenuij left07:43
cenuij joined07:43
Freeaqingme left07:43
Freeaqingme joined07:43
rchavik left07:43
crocket git-gui and git-extensions fail to add files whose filenames are in either CP949 or UTF-8 encoding.07:45
Only "git add" adds them properly.07:45
Why?07:45
I use git on windows.07:45
pantsman left07:45
crocket Windows XP SP3.07:45
amcsi_work joined07:46
dogmatic69 left07:46
Taichou left07:47
dfdsfds joined07:48
lb crocket: IMHO: gui's "suck" always. Windows and UTF8 "suck" always, and windows + git is something than can maybe under heavy circumstances work. but try to avoid it. you'll save a lot of brainpower and nerves and time and whatever.07:48
leokaito joined07:48
Taichou joined07:48
crocket lb : avoid what? Do I need to avoid git on windows at all costs?07:49
ISF left07:49
lb crocket: IMHO :yes07:49
pantsman joined07:49
pantsman left07:49
pantsman joined07:49
lb crocket: no, avoid windows at all costs, not git ;)07:49
crocket lb : I can't avoid windows.07:50
dfdsfds left07:50
crocket lb : LabVIEW development happens on windows.07:50
arkiver left07:50
crocket My boss wouldn't allow me and others to use linux at work.07:50
And my coworkers hate linux.07:50
g33k joined07:50
crocket More accurately, they fear linux.07:50
klj613 lol07:50
skorgon crocket, use a linux VM07:50
DeadZen well thats fine07:51
use freebsd07:51
g33k left07:51
crocket FreeBSD is more fearful.07:51
skorgon, That would only complicate matters for people.07:51
DeadZen FreeBSD IS DA DEBIL07:51
crocket And I like to visualize git with GUI.07:51
skorgon why people? only you would know. nobody else needs to know you're secretly using linux07:51
Taichou left07:52
arkiver joined07:52
crocket skorgon, maybe07:52
jceb left07:53
crocket Is it ok to compress git database?07:54
diegoviola left07:54
gun-lpt joined07:54
lb crocket: yes07:55
cenuij left07:55
lb if you mean "database" = ".git"07:55
teotwaki joined07:55
_Qman joined07:55
g33k joined07:56
g33k left07:56
crocket damn07:57
phluks joined07:57
crocket Git takes very long for every operation on a repo with 6000~7000 objects.07:57
garbage collection is slow as hell.07:57
lb try git gc07:57
tu run it manually07:57
koltroll joined07:58
crocket lb : Too late, it's already running.07:58
lb ;)07:58
Swathe left07:59
jh3 left07:59
crocket lb : hell08:00
phluks Yo! guys - it seems I need to learn something about refs: https://gist.github.com/361818308:00
frogonwheels phluks: generally you don't need to deal with refs by themselves.08:01
Goplat left08:01
frogonwheels phluks: what you have here is a branch (refs/heads/*) and a remote tracking branch (refs/remotes/*/* )08:01
g33k joined08:02
frogonwheels phluks: remember also that refs can be packed into a file.08:02
phluks frogonwheels: yes, id expect to find it in remotes, but i didnt08:02
frogonwheels: oh, how and where?08:02
babilen joined08:03
pantsman left08:03
crocket Does anyone use git GUIs?08:03
phluks frogonwheels: im trying to find out wether branches are in sync without checking them out - in a script08:03
frogonwheels phluks:it's in .git/packed-refs but you can do that without muckin' about like that.08:04
Sajbar crocket: I use 'git gui'08:04
and gitk08:04
frogonwheels phluks: look at man git-rev-parse08:04
gitinfo phluks: the git-rev-parse manpage is available at http://git-scm.com/docs/git-rev-parse.html08:04
jh3 joined08:05
frogonwheels phluks: you can see if they are the same with the output of git rev-parse unicode and git rev-parse origin/unicode08:05
sorry unicode was my test branch name. I meant git rev-parse $branchname ... &c08:05
g33k left08:06
arkiver left08:06
phluks frogonwheels: Ah, nice - i understand :-)08:06
frogonwheels: thanks08:06
rgr left08:07
g33k joined08:07
Fuuzetsu left08:07
rgr joined08:07
eighty4 left08:07
arkiver joined08:08
frogonwheels phluks: if you want to see if A is a descendent of B then check that git rev-list -1 ^A B returns empty08:08
eighty4 joined08:09
g33k left08:09
arkiver left08:09
frogonwheels phluks: if you want to then see by how many.. i THINK that git rev-list A ^B | wc - l should give it.08:10
wc -l08:10
phluks frogonwheels: well, in this case I can't know wich might be behind or in front. Its ok, if i know wether they are the same or not08:10
Vile left08:10
angelsl joined08:10
w41__ joined08:11
LimeBlast joined08:11
frogonwheels phluks: you shouldn't really have to deal with .git dir .. except for perhaps .git/description and .git/info/exclude (and sometimes .git/config08:12
_huoxito left08:12
mr6 joined08:13
frogonwheels phluks: man git-show-ref .. you can get at raw refs using this command :)08:13
gitinfo phluks: the git-show-ref manpage is available at http://git-scm.com/docs/git-show-ref.html08:13
phluks frogonwheels: nice to know. Sometimes the right way is not obvious but the wrong way is :-)08:13
w41_ left08:14
gerryvdm_mbp joined08:14
phluks frogonwheels: yup08:15
hwrd|work left08:16
drarokDrarok08:17
__machine left08:18
gerryvdm_mbp i'm creating a programming course and i'd like to put the exercises in Git, does anyone have some great tips and ideas or resources i could look into?08:18
dfgdfgdfg joined08:18
dfgdfgdfg "git log origin.." shows 4 commits out of which 2 and 3 are merge branch 'master' into my local branch.. i want to combine commit 1 and 4 into a single one.. is that doable by git rebase -i HEAD^408:18
Kingsy joined08:20
Kingsy if you have a git hook, like post-recieve or something, does that literally just execute its contents with bash? so ~/whatever/hello.sh would be a valid line in that file? and hello.sh would execute on each hook?08:22
dr_lepper joined08:23
SeoZSeoZ-work[AWAU]08:23
PigeonFriend joined08:23
mr6 dfgdfgdfg: did you mean get log origin/master.. ?08:24
JENSU joined08:25
dpino left08:25
Moussekateer left08:25
gtuckerkellogg joined08:25
gitinfo set mode: +v08:26
dfr|mac joined08:26
JENSU what's the difference between pull and fetch? 2 euro08:26
what's the difference between pull and fetch? 2 euro08:26
Moussekateer joined08:26
Kiallzz_Kiall08:26
jim JENSU, one is part of the other (I think)08:28
pull is fetch+merge (I -think-)08:29
Moussekateer left08:29
pdelvo|afk joined08:29
tjegels joined08:29
JENSU thanks bro;)08:29
JENSU left08:30
achadwick joined08:30
tjegels have any of you had lots of conflicts when regularly doing git pull --squash?08:30
seem to be getting conflicts way more than usual now08:30
dfr|mac left08:30
jim check the man page, I may have that wrong (but, I've been using pull, and it gets, followed by a fast-forward which I think is a merge)08:31
lb jim: !pull08:31
gitinfo jim: 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/08:31
pdelvol left08:31
jim oh I did remember right :) thanks :)08:31
lb :)08:31
jonnu[ghost] joined08:31
jonnu left08:31
cebor joined08:32
tjegels thanks for the article link, will check it out08:33
zz_KiallKiall08:33
jim !git from the bottom up08:33
gitinfo [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice.08:33
jim lb, does it have a factoid for that?08:34
lb ?08:34
jim lb, for the pdf "git from the bottom up"08:34
lb jim what are you refering to? i'm confused ^^08:35
you mean !bottomup08:36
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.pdf08:36
lb ?08:36
jim yes :) thanks08:36
lb then you maybe want too see !books08:36
ciscon left08:36
lb then you maybe want too see !book08:36
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 !parable08:36
dsirijus joined08:36
dfr|mac joined08:36
jim great :)08:37
ciscon joined08:37
artnez left08:38
dpino joined08:39
tatsuya_o joined08:39
xiangfu left08:39
xxthink joined08:40
herdingcat left08:40
soee left08:43
adhawkins-awayadhawkins08:44
g33k joined08:46
g33k left08:46
dpino left08:48
dfr|mac left08:49
rmr joined08:51
spec__ left08:53
xiangfu joined08:54
codeM0nK3Y joined08:56
Swathe joined08:58
Vile joined08:59
legnaleurc left09:00
Taichou joined09:02
kerrick left09:03
oojacoboo left09:03
ricky left09:03
jlg13 joined09:04
oojacoboo joined09:05
Swathe left09:05
vervic joined09:06
Taichou left09:07
legnaleurc joined09:08
Swathe joined09:09
maqr left09:09
robbyoconnor left09:09
spec__ joined09:10
d3vic3 joined09:11
d3vic3 left09:11
d3vic3 joined09:12
d3vic3 left09:13
d3vic3 joined09:13
d3vic3 left09:14
xiangfu left09:14
ph^ left09:15
jdyin left09:15
ph^ joined09:16
jdyin joined09:16
mklappstuhl joined09:19
Advocation left09:20
ricky joined09:21
berserkr joined09:21
mitchell left09:21
phluks whats !parable09:22
Kingsy left09:23
gitinfo 'The git parable' provides some good reasoning behind git. http://tom.preston-werner.com/2009/05/19/the-git-parable.html09:23
shruggar joined09:23
Kingsy joined09:25
Kingsy left09:25
Kingsy joined09:25
tatsuya__ joined09:25
vervic left09:26
Vert joined09:27
tatsuya_o left09:27
irqq joined09:28
papegaaij joined09:29
Taichou joined09:30
jonnu[ghost] left09:32
sgambino left09:35
gtuckerkellogg left09:35
sgambino joined09:36
xiangfu joined09:39
sgambino left09:39
Geralt joined09:39
Geralt left09:39
Geralt joined09:39
legumbre left09:40
thiago left09:44
Akufen joined09:46
Akufen left09:46
Akufen joined09:46
pdelvol joined09:46
klj613 is there a way to use `git checkout <treeish> -- filename.ext` and get it to output to console? easy to search for a specific version of the file?09:47
skorgon klj613, not sure, but are you probably looking for git show?09:48
arietis joined09:49
pdelvo|afk left09:49
shruggar left09:50
atesc joined09:51
atesc left09:52
shruggar joined09:52
klj613 skorgon, not sure. at the moment im using `git blame HEAD~150 -- file.ext` etc.09:53
tmoskowite joined09:53
skorgon klj613, if you wanna look at a file at a specific ref you can use 'git show <ref>:<path>'09:54
klj613 skorgon, thanks09:55
patrick85 left09:55
klj613 skorgon, the <path> got to be absolute to the root of the repo? lol. "file.ext doesnt exist but src/foo/bar/file.ext does"09:56
ah nevermind, works with ./09:56
rgr left09:57
patrick85 joined10:00
yatiohi left10:00
JrCs !cs10:01
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 !bottomup10:01
ka2be joined10:02
JrCs !concepts10:02
gitinfo "Git Concepts Simplified" explains the basic structures used by git, which is very helpful for understanding its concepts. http://sitaramc.github.com/gcs/10:02
martinjlowm-lapt joined10:03
Geralt left10:07
noisebleed joined10:11
noisebleed left10:11
noisebleed joined10:11
xiangfu left10:15
Dave^| joined10:15
thiago joined10:19
phantomnomad joined10:20
ipalaus left10:20
Element9 joined10:20
martinjlowm-lapt left10:21
ipalaus joined10:21
d3vic3 joined10:22
koltroll left10:22
snearch joined10:25
beautifulmind joined10:27
SeySayux left10:28
d3vic3 left10:28
_W_ left10:28
_W_ joined10:29
dsirijus left10:29
tatsuya__ left10:30
tatsuya_o joined10:31
klj613 how do i get version history of a single file? e.g. the commit SHA it started in, ... to the latest commit SHA it was modified etc?10:31
frogonwheels klj613: git log -- filename iirc10:33
jjang left10:34
SeySayux joined10:35
tatsuya_o left10:35
maqr joined10:35
Cros79 left10:37
gavin_huang left10:38
spyropink_panther10:38
g33k joined10:40
luc__ joined10:41
hyperair left10:41
Roccivic joined10:41
g33k left10:42
OOPMan left10:43
Roccivic hi all10:43
gitinfo Roccivic: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.10:43
flaguy48 joined10:43
maqr left10:44
luc__ left10:45
Roccivic I'm doing a rebase on abranch and I'm not sure what has changed in a file where I have to resolve a conflict. So the question is: how can I list all commits that have touched a particular file? Many thanks :)10:45
Sajbar Roccivic: if you have gitk you can just do a gitk <file>10:46
thiago Roccivic: git log -- filename10:46
Roccivic thiago: thanks, exactly what I was looking for :)10:47
pfFredd joined10:49
senny left10:52
senny joined10:53
senny left10:53
kurrataW joined10:53
senny joined10:53
Roccivic left10:54
BombStrike left10:55
jceb joined10:57
lb thiago: what does the "--" stands for ? i use it always without them..?10:58
bremner lb: what happens if you have a branch and a file with the same name?10:59
lb ahha, never happend so far :)10:59
OOPMan joined10:59
lb ok now i see. thanks bremner10:59
thiago lb: there's another benefit. -- indicates that it *is* a path.11:00
including a path referring to a file that doesn't exist11:00
git log filename only works if filename is a file and it exists right now11:00
lb ok, will use it from now on. thanks11:00
thiago git log -- filename works even if the file has been deleted11:00
arvind_khadri joined11:00
lb hm, i'd like to flattr users for good answers....11:01
pdelvo|afk joined11:01
bremner lb: you can use e.g. !thiago++ iirc11:02
hmm.11:03
thiago++11:03
bremner gives up11:03
lb what should happen?11:03
bremner some message from the bot about karma11:03
lb ahh :)11:03
gitinfo set mode: +v11:04
Akufen left11:04
pdelvol left11:05
lb bremner: !karma11:05
gitinfo bremner: 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.11:05
wolftankk left11:05
ph^_ joined11:05
ph^_ left11:05
lb Thank you thiago11:05
maybe that helped ;)11:05
ph^ left11:08
QaDeS joined11:09
Qiang left11:10
_ikke_ lb: convention is: name: thanks, or something like that11:10
lb _ikke_: thanks11:10
thiago: thanks11:11
^^11:11
koltroll joined11:11
hyperair joined11:11
_ikke_ :D11:11
akiress joined11:14
spec__ left11:14
cebor left11:15
chimay left11:16
arvind_khadri left11:17
wolftankk joined11:19
ka2be left11:19
jdyin left11:21
nbari joined11:21
xplat joined11:22
spaceonline joined11:22
zeppo joined11:24
rchavik joined11:24
rchavik left11:24
rchavik joined11:24
Ivoz joined11:24
nbari left11:26
spec__ joined11:28
jlg13 left11:29
DanyO83 joined11:31
Chillance joined11:32
iocor joined11:34
Pupeno_W joined11:34
rwestphal joined11:35
pandeiro joined11:35
maqr joined11:40
gavin_huang joined11:41
comps does anybody know why the history printout of an interactive rebase was reversed some time after v1.5.x ? ... I seem to recall the latest commit on top, with older commits below it, now (v1.7.11.2) it's the other way around, oldest commit on top11:42
I tried searching (by commit message) in the 'git' history, nothing useful showed up11:43
wolftankk left11:43
selckin 1.5 is like years ago right?11:44
comps pretty much, yeah11:44
selckin i've never know it to be different, 'fixup/squash' etc is relative to the line above, which makes sense to me11:45
maqr left11:45
comps well in my case, it's relative to the line below, .. perhaps fedora has some broken version of git-rebase11:45
sgambino joined11:46
akheron comps: I don't understand11:47
if you now have the oldest commit on top, doesn't a fixup/squash line get combined with the line above, i.e. the older commit?11:47
comps oh, it's relative to the commit above, nevermind ... though I still remember newer commits being on top and squashing older commits into newer ones11:48
sitaram comps: I don't remember it ever being that way, TBH, but then I wasn't on 1.5.x for more than a couple of weeks11:49
btree__ joined11:49
harshpb left11:50
akheron I've used git since 1.5.4 and I don't remember it ever being the other way round11:50
aircan joined11:50
aircan left11:51
comps then perhaps my memory has failed me again, I'll verify that in a moment on debian lenny11:52
cbreak-work squash is like commit --amend11:52
nitrix joined11:52
the_cybersphinx joined11:53
hellopat left11:53
btree_ left11:53
jast interactive rebase was introduced in 1.5.311:53
cannonball joined11:53
v0n joined11:53
v0n left11:53
jast the initial version in commit 1b1dce4bae760248a1fc3e29548a72c446e77270 already had --reverse in it11:54
FauxFaux peers.11:54
speakman joined11:54
zarubin joined11:55
FauxFaux also believes he's seen it backwards.11:55
speakman hi folks! How can I look in the object store for a blob (file) containing a certain string? I've lost some changes in my working tree.11:55
FauxFaux git log -S / git grep11:55
akheron comps: I have access to a Ubuntu 6.06 which has git 1.5.4.5, and I just checked it gives the oldest commit first :)11:56
FauxFaux git fsck --unreachable | fgrep blob | awk '{print $NF}' | xargs -1 git show11:56
cbreak-work git add -p needs --patience11:56
akheron so at least my memory didn't fail11:56
SkAzZ joined11:56
cbreak-work as does any other git command that works with diffs11:57
pdelvo|afkpdelvo11:57
comps akheron: you're right, 1.5.6.5 @ lenny does the same, I was wrong, sorry for the wasted time12:00
acrocity left12:01
akheron comps: np, this was a fun excursion to the history :)12:01
Ryback_ joined12:02
Ryback_ left12:02
Ryback_ joined12:02
lb there are more people alive in here than it seems to be :)12:02
_jmg joined12:02
wolftankk joined12:02
incognit0 joined12:04
sangi left12:04
incognit0 If I have a server at 'git://', how can I find/navigate to a repo? I don't know what's on the server.12:04
jast you can't12:04
incognit0 I know there's one repo I need to work with, I simply don't know the address.12:04
csmrfx I have seem to have forgotten how to get one-line-per-commit history log?12:04
jast if the server doesn't have nother way of telling you, e.g. a web interface, you can only guess12:04
csmrfx or was that a plugin12:05
jast csmrfx: git log --oneline12:05
Drarokdrarok12:05
csmrfx hm, I seem to remember it showing the branches as well...12:05
jast csmrfx: git log --oneline --decorate12:05
lb csmrfx: --all --decorate12:05
jast you may be interested in !lol or !lg12:05
incognit0 jast: Thanks for the help. I'll just have to wait to hear back from the repo owner.12:05
gitinfo git config --global alias.lol "log --oneline --graph --decorate"12:05
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"12:05
csmrfx oh yes!12:05
thats what it was, an alias12:06
thank you, sirs12:06
snadahalli joined12:06
incognit0 Ah! I have a clone of the repo who will 'git pull' from that space. How can I determine that URL? Git status doesn't seem to show it.12:07
acrocity joined12:08
snadahalli left12:08
FauxFaux incognit0: git remote -v12:08
incognit0 FauxFaux: Thanks!12:08
wolftankk left12:09
gun-lpt left12:11
juvenal joined12:11
pdelvopdelvo|afk12:14
neurodrone joined12:15
mikedanni joined12:15
gitinfo set mode: +v12:16
mikedanni Hi. I'm in a small team. I'm looking at having a central git repo on a file server. All the tutorial I find say that I should create a new git user to do this. What's wrong with users using their existing user accounts?12:16
pdelvol joined12:16
mikedanni It's over ssh I should say.12:16
_ikke_ mikedanni: Using the same repo with different users12:16
mikedanni: file permissions and stuff12:16
FauxFaux Where did the gitolite !overkill document go?12:16
mikedanni mikedanni: so git might do funny stuff, creating files as private rather than group r/w and so on?12:17
should I really be running some kind of git server rather than using ssh?12:17
FauxFaux mikedanni: In general, group r/w stuff is much harder to handle than installing gitolite from packages.12:17
pfFred joined12:17
Stereo joined12:17
Stereo hi everyone12:17
gitinfo Stereo: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.12:17
pdelvo|afk left12:19
Stereo I have /etc in git on a machine I'm co-administering, and doing a commit is very slow. I tried gc and checking for huge files, with no success, and can't find any other things to try. What else could be making commits slow? This is git 1.7.2.5 on debian stable.12:19
FauxFaux git count-objects -v12:20
keller joined12:20
sitaram FauxFaux: went into http://sitaramc.github.com/gitolite/why.html12:20
Stereo FauxFaux: http://pastie.textmate.org/private/0ah55coo0tjtgwwfsedfg12:20
pfFredd left12:20
sitaram FauxFaux: it was too big so I condensed it into the first part of the "alternatives" section in that link12:20
FauxFaux sitaram: Yeah, that does a good job.12:20
sitaram mikedanni: see http://sitaramc.github.com/gitolite/why.html for examples and reasoning of why unix permissions are not enough12:21
FauxFaux Stereo: That's bogglingly tiny. strace $(git --exec-dir)/git-commit # or wait for someone with a sensible guess.12:22
Davey joined12:22
afuentes joined12:23
Stereo hmm, it doesn't have --exec-dir12:23
gun-lpt joined12:24
monokrome joined12:24
votz left12:24
monokrome Hello, all. Does anyone know if gitslave allows you to supply a specific branch for the repositories it clones?12:24
Stereo --exec-path seems to be what you meant?12:24
(sorry monokrome, I was replying to FauxFaux)12:25
FauxFaux Stereo: Yeah, that one.12:25
mabrand joined12:25
monokrome Stereo: I got it. Thanks :)12:25
yatiohi joined12:26
sitaram Stereo: per your nick, you should be able to talk to two people simultaneously anyway :)12:26
Stereo sitaram: but monokrome probably can't :)12:27
sitaram LOL!12:27
DanyO83 left12:30
JyZyXEL left12:30
geekbri joined12:30
Stereo ok, it hangs for a long time at line 8 in http://pastie.textmate.org/private/tkmxtcqdexp7nervqp7pfq12:31
SidGBF joined12:31
Stereo I'll see if removing the precommit hook makes it faster12:32
whitman joined12:32
Stereo heh, ok12:32
nitrix left12:32
Stereo I just ran the pre-commit hook, and it's still running12:32
not git's fault then :)12:32
SidGBF http://pastebin.com/kBjFHDdT12:33
can anyone help me with this error?12:33
acrocity left12:34
Taichou left12:34
phantomnomad left12:34
kokainepizza joined12:34
thiago SidGBF: hmm... I think "mensagem.git" is not a Git repository12:34
SidGBF thiago: it is, a bare repo, but it is...12:34
dhruvasagar left12:35
thiago SidGBF: what git version are you using?12:35
dhruvasagar joined12:35
SidGBF 1.7.4 on server12:36
csmrfx !ls .git/hooks12:36
gitinfo [!tools] See https://git.wiki.kernel.org/index.php/InterfacesFrontendsAndTools for information about known interfaces, frontends, and tools.12:36
thiago and locally?12:36
csmrfx oops, sorry12:36
kokainepizza left12:36
SidGBF 1.7.1012:36
nitrix joined12:36
thiago SidGBF: ok. Do you have shell access to that host?12:36
SidGBF yup12:36
thiago SidGBF: ssh in and then cd ~/mensagem.git12:37
SidGBF: does that exist?12:37
SidGBF yes12:37
thiago SidGBF: git log there. Does it work?12:37
SidGBF inside the folder?12:38
fatal: bad default revision 'HEAD'12:38
Dave^| left12:38
juvenal left12:40
GeorgeJ left12:40
GeorgeJ joined12:40
thiago SidGBF: looks like you have an empty repository12:40
cloning empty repositories is a recent feature12:41
SidGBF yes... a bare repo12:41
csmrfx When a post-commit script runs, what is the path context in the script? the git repo path?12:41
pink_pantherspyro12:41
thiago SidGBF: bare and empty12:41
csmrfx iow, as an idea, just having "cp ./* ../target/dir/foo" would work?12:42
mikedanni left12:42
monokrome left12:43
cbreak-work csmrfx: it has the same $PATH as the calling process12:43
ph^ joined12:43
kcj left12:46
snearch left12:46
Shanachan joined12:46
Shanachan left12:46
Shanachan joined12:46
ShanachanFuuzetsu12:47
csmrfx well, tested that, called git commit from vim, no joy12:47
SidGBF thiago: and what should I do to be able to clone it?12:48
gusnan joined12:49
thiago SidGBF: make it non-empty12:50
SidGBF: or upgrade git12:50
jceb left12:50
csmrfx hm, in a hook-shell script, how to block .files but not subdirs like './svg'?12:50
_ikke_ csmrfx: When exactly do you want to block it?12:51
csmrfx post-commit -hook script12:51
I guess this is slightly off topic, actually12:52
SidGBF thiago: and how to make bare repo be a non empty?12:52
_ikke_ You want to abort the commit?12:52
csmrfx no, just copy files post commit12:52
jceb joined12:52
_ikke_ copying files is not blocking them12:52
csmrfx goes back to check again12:53
afuentes left12:53
dendazen joined12:53
csmrfx ok, sorry, I mistook the message from cp as msg from git commit12:53
dendazen Does anyone know why this all of the sudden started giving me errors/12:54
csmrfx goes to add -r to cp12:54
dendazen git clone ​https://u:p@source.blanders.com/ep-compliance-ntp.pkg.git12:54
Cloning into 'ep-compliance-ntp.pkg'...12:54
fatal: I don't handle protocol '​https'12:54
Used to work for my account before.12:55
thiago SidGBF: push something there12:55
SidGBF thiago: how if I can't clone it?!12:55
dendazen And it is regardless on which machine i am.12:55
skyf joined12:56
albel727 left12:56
thiago SidGBF: push without cloning12:56
lb SidGBF: create an new git repo, add your bare as a remote, add something, commit, push12:56
osxorgate joined12:57
Taichou joined12:57
gitinfo set mode: +v12:57
SidGBF I wanted something a bit more straighorward12:57
*forward12:58
jargon- left12:58
Taichou left12:58
osxorgate how can i ask git what the list of ignored files is? it seems my global ignore file is getting.. ignored12:59
freeed joined12:59
lb osxorgate: cat .gitignore13:00
codewrangler joined13:01
lb osxorgate: or try git status --ignored13:01
SidGBF Im used to work with svn, with is a code version tool anyway. I really like the idea of creating a repo on the server, then clone it and add my code in it. What's the git's flow for a new repo/first clone?13:01
albel727 joined13:01
osxorgate lb: uhm. i have a ~/.gitignore_global and told git to use it globally with excludesfile etc. yet the file types are still shown when i do git status13:02
specialGuest joined13:02
specialGuest left13:02
specialGuest joined13:02
lb SidGBF: if there is a repo with stuff available, then you clone, otherwise you just start locally with git init, and add stuff. if you feel like sharing, then create a bare repo on a server and push your stuff up13:02
Jay_Levitt left13:02
BadDesign joined13:03
chimay joined13:03
BadDesign Why it is called "pull request" instaead of "push request"?13:03
Pull it means you grab something from someone13:03
It should be push request not pull13:03
charon BadDesign: umm, because you ask the receiver of the request to pull from some location you specify?13:03
chimay left13:03
chimay joined13:03
lb BadDesign: you send a request to someone. this person should pull from you13:03
gun-lpt left13:03
crocket Has anyone had experiences with teaching git to coworkers?13:04
None of them has known version control system in their lifetime.13:04
BadDesign yeah but I'm not doing a pull request. he's doing13:04
lb osxorgate: sorry. just using .gitignore13:04
BadDesign I'm doing a push13:04
lb no, you request him to pull13:04
xiangfu joined13:04
lb you do nothin13:04
crocket My manager asked me to teach git to people.13:04
charon crocket: i always start with some graph-based concepts introduction similar to !cs but spanning all of git. but my advantage is that they're all computer scientists and not afraid of graphs and data structures13:04
gitinfo crocket: "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:04
lb crocket: then you should read a lot before teaching ;)13:05
csmrfx crocket: it is good they have no cvs or svn to overcome13:05
SidGBF lb: Ok, Im starting to figure this out... Now, what if I want tohave this cloud machine that is my code backup. How can I create first a repo there, and then clone my stuff?13:05
crocket lb : I've read 70% of progit.13:05
csmrfx crocket: I have the same job todo13:05
except these are devs with previous VC exp13:06
crocket csmrfx, shit13:06
lb SidGBF: like i said. prepare your repo local, then push it to the cloud box13:06
crocket csmrfx, They have no idea about VCS.13:06
charon crocket: but -- no offense -- my reading from the past few days was that you're not a very experienced user. perhaps try to get some deeper understanding before you start teaching it13:06
csmrfx I like how git is lucid in it's behaviour and directory structure -- so I am going for the 'lets install and make a git repo and look at all of .git's files'13:06
I call it Hackers Guide To Git13:07
SidGBF lb: is there any command that "magically" creates new repo remotelly?13:07
AaronMT joined13:07
lb SidGBF: nope13:07
crocket charon : I, myself, am a git beginner.13:07
erichynds joined13:07
ngirard left13:07
crocket charon : It's been 4 days I started learning git.13:07
csmrfx crocket: well, if they're computer scientists, the reasons for using a VC or DVC will be easy to understand for them13:07
crocket 4 days since I started.13:07
setmeaway2 left13:07
tatsuya_o joined13:08
timini joined13:08
csmrfx crocket: see Schwartz Git video on youtube, also power your workflow with git has succinct overview of all the objs under the hood13:08
crocket csmrfx, The problem is I'll have to leave my work for 4 weeks next week.13:08
ddelrio1986 joined13:09
lb crocket: use those 4 weeks, to learn and practice git, then teach your buddies13:09
SidGBF lb: git thinks locally. It handles the versions locally (commits). It has the option to push out commits, in order to share/replicate the commits. Is this the idea?13:09
(be patient... 6 years of svn, 3 month of git)13:09
csmrfx git takes only 7 days to learn, or so13:10
lb SidGBF: that's correct13:10
csmrfx jmo13:10
crocket lb : I'll be conscripted for 4 weeks.13:10
tmcmahon joined13:10
crocket lb : no computer.13:10
damn south korea.13:10
csmrfx crocket's going to the hills! 8D13:10
lb crocket: omg ^^13:10
jargon- joined13:11
v0n joined13:11
csmrfx crocket: perhaps theres some good git vids in korean, too13:11
timini Is it possible to use a submodule with a particular branch?13:11
SidGBF lb: Ok, it's a mind changing process... but starts to make sense...13:11
Now I need to improve my understanding of bare and non bare13:12
crocket csmrfx : pro-git is fully translated to korean, but none of my company's people is willing to read it since they don't know any of VCS.13:12
lb SidGBF: bare means, no working copy13:12
crocket I had tried to explain how git works for 20 minutes after which my manager freaked out.13:13
SidGBF lb: yeah, but, I mean, how do I create a project.git without being bare?13:13
BadDesign crocket: switch to a workplace where people know Git already.13:13
crocket BadDesign, ha13:13
csmrfx crocket: 20 minutes? you can do it in 3 minutes!13:13
cmn what you need is to explain the problem13:13
hide joined13:13
cmn explaining a solution without a frame of reference isn't going to get you anywhere13:13
jast SidGBF: you might want to read !bare first13:13
gitinfo SidGBF: an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/13:13
csmrfx Once it is cleas as water for you, then you can teach it13:14
lb SidGBF: mkdir newrepo && cd newrepo && git init13:14
csmrfx *clear13:14
SidGBF git 101 :) I like that13:14
lb: Thanks for your time and patience13:14
lb SidGBF: and by convention, only bare repos named XYZ.git13:14
SidGBF: you're welcome13:15
crocket cmn : ok13:15
I'll have to memorize examples in progit.13:15
Jax joined13:15
macabre joined13:15
Jax hello, just tried to push a commit and got this:13:16
error: insufficient permission for adding an object to repository database ./objects13:16
BadDesign Why you need to memorize? Just explain them those examples using a slideshow or live demo13:16
RWOverdijk joined13:16
Jax have committed and pushed 100 times at least on this repo without a problem13:16
crocket BadDesign, ok13:16
Jax what could this be?13:16
jast cmn: hey, no revealing secret consulting skills here ;)13:16
speakman Are there any way to "grep" through blobs/objects which is not in any branch/tag/is unreachable?13:16
crocket BadDesign, A slideshow would do.13:16
cmn jast: sorry, I'll keep the cabal safe from now on13:16
cooloney left13:16
charon speakman: !xy but git fsck --unreachable gives you a list13:16
gitinfo speakman: 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?13:16
jast Jax: my guess is someone pushed as a different user and the access rights got messed up because the repo wasn't configured properly for multi-user access13:17
RWOverdijk Does anyone know if I can fork public repos into github enterprise?13:17
jast RWOverdijk: sure, if you go the general git way of forking13:17
Jax jast: hm a chown -R git:git on the repo (on the server) did it.13:17
works again.13:17
jast you can bet that github won't show it in the list of forks then, though :)13:17
cmn RWOverdijk: that's very github-specific, they have their own support channels13:17
speakman charon: that's I mentioned earlier I was missing modifications which I know I've done previously but is probably lost due to "git branch -D".13:17
RWOverdijk jast, Which is?13:17
afuentes joined13:18
RWOverdijk (never forked git-style before)13:18
jast RWOverdijk: clone --mirror; push13:18
charon speakman: ah. but then it may be easier (if you recall the commit subject or so) to look in man git-reflog13:18
gitinfo speakman: the git-reflog manpage is available at http://git-scm.com/docs/git-reflog.html13:18
Jax thx!13:18
Jax left13:18
gun-lpt joined13:18
charon speakman: you lose the branch's reflog by deleting it, but the HEAD reflog may still have the commits13:18
csmrfx Does Github for Windows work as a generic git client? (looking for git clients for Windows users)13:18
jast RWOverdijk: where the push goes to the new repository, of course :)13:18
RWOverdijk jast, I got that bit. Thanks :)13:18
cmn RWOverdijk: the gh forking process is to set up some references in the main repo, if you want it to be on a different computer, you'll probably have to transfer the data yourself13:19
speakman charon: I've no idea what was actually make me loose the changes, but I though I could just "grep" unreachable blobs.13:19
BadDesign csmrfx: No. Yes it will install Git Portable.13:19
-no13:19
RWOverdijk cmn, I think jast his answer did the trick for me.13:19
csmrfx Am I correct in thinking that Windows users only have msgit and cygwin git -clients?13:19
charon speakman: so go with git fsck --unreachable | you write the magic that goes here13:19
bizhanMona left13:20
csmrfx *msysgit, I mean13:20
cmn csmrfx: no, but they all need git13:20
ngirard joined13:20
tatsuya_o left13:21
glennpratt joined13:22
bizhanMona joined13:23
OOPMan left13:23
aircan joined13:23
monokrome joined13:25
hellopat joined13:25
pdelvo joined13:30
bartek joined13:30
csmrfx So, any of you windows users have a recommendation for (gui) client?13:31
yatiohi left13:31
crocket csmrfx, "Git extensions", "git-cola", "git-gui"13:31
BadDesign csmrfx: TortoiseGit13:32
csmrfx crocket: which one do you think is the best?13:32
BadDesign or SmartGit13:32
lb left13:32
RWOverdijk left13:32
crocket csmrfx : I haven't tested them thoroughly, but git-gui doesn't seem to deal properly with UTF-8 file names.13:32
lb joined13:33
lb left13:33
lb joined13:33
crocket csmrfx, If you have 7000 files to add or commit, git-gui is very slow.13:33
tplaner_ joined13:33
robbyoconnor joined13:33
crocket BadDesign, In your experience, what is the best?13:34
pdelvol left13:34
BadDesign None.13:34
BadDesign left13:34
crocket shit13:34
csmrfx hm, I wonder if that means: use command line git13:35
lb crocket: the shell is your friend13:35
cenuij joined13:35
cenuij left13:35
cenuij joined13:35
tatsuya_o joined13:35
TeckniX joined13:37
jn_ joined13:38
jtri joined13:38
crocket lb : "git bash" is very limited compared to cygwin.13:38
jtri hi, i've been using git on bitbucket, with http13:39
agile joined13:39
crocket "git bash" also misses man pages.13:39
lb i recommended linux yesterday, didn't i? ;)13:39
jtri some files are not tracked in the local directory13:39
adityamenon joined13:39
jtri i'd like to switch over to ssl13:39
wiremaster joined13:39
crocket lb : I'd recommend linux to engineers.13:39
adityamenon left13:39
csmrfx crocket: what do you mean by "git bash"13:39
babilen left13:39
jtri can i do so without doing a clone and trying to salvage the un-tracked files13:40
pfFred left13:40
crocket csmrfx, After you install git on windows, git creates msysgit which is called "git bash".13:40
xiangfu jtri, git clean -xdf13:41
csmrfx oh, you have to do 'git bash add .' or 'git bash commit' in windows command line?13:41
crocket csmrfx, no13:41
tmcmahon left13:41
crocket csmrfx, If you launch "git bash", a MinGW shell is launched that includes git.13:41
csmrfx heh, just checking13:41
skorgon jtri, look at man git remote13:41
gitinfo jtri: the git-remote manpage is available at http://git-scm.com/docs/git-remote.html13:41
maqr joined13:42
LekeFly left13:42
skorgon you should be able to change the current remote url or add the https url as another remote and then pull/push to that one13:42
skyf_ joined13:42
gerard0 joined13:43
votz joined13:43
Anubisss left13:43
Flibberdy I have a private git server (runnign on linux) and a bunch of windows clients. How do I specify that git use a private key when doing push/pull etc?13:45
maqr left13:46
jspiros left13:46
Ke_ joined13:46
jspiros joined13:46
glennpratt left13:47
arietis left13:47
canton7 Flibberdy, you're serving the repos over ssh? Using gitolite, or just a user? If the latter, deny password login for that user (PasswordAuthentication no in sshd_config)13:47
cmn Flibberdy: you don't tell git, you tell ssh13:48
if you only have one key under ~/.ssh, it should work by itself, but still do the PasswordAuthentication thing13:49
Ke_ left13:49
hwrd|work joined13:49
bitkiller joined13:49
cannonball left13:50
jtri left13:50
Flibberdy canton7, cmn, thanks. And it's not gitolite, just standard users13:51
this would be so much easier if we all ran linux. Ah welll13:51
votz left13:53
Fingolfin joined13:53
kukks joined13:54
kukks left13:54
kukks joined13:54
cannonball joined13:54
timini left13:55
juvenal joined13:55
dozymoe joined13:56
glennpratt joined13:56
jn_ left13:57
Fingolfin left13:57
iori left13:57
mewm joined13:58
rgsteele joined13:58
warthog9 left13:58
BadDesign joined13:59
phluks left14:00
kermit left14:01
hellopat left14:01
les_sylvains joined14:01
hellopat joined14:01
drarokDrarok14:03
gdmfsob joined14:03
ehsan joined14:04
d3vic3 joined14:04
alexisabril joined14:04
AlbireoX joined14:05
tatsuya_o left14:05
kermit joined14:05
acrocity joined14:06
congera joined14:06
mishok13 left14:06
kermit left14:07
acrocity left14:07
maestrojed joined14:07
Destos joined14:08
kermit joined14:09
bertani joined14:09
quazimodo joined14:09
chrisgeorge joined14:11
bertani left14:11
leeN joined14:12
Zeeshan_M left14:12
fly9 joined14:12
maestrojed left14:13
mabrand left14:13
adityamenon joined14:14
pandeiro_ joined14:14
dozymoe left14:15
dhruvasagar left14:15
anish[1] joined14:15
dozymoe joined14:15
wiremaster left14:16
acrocity joined14:16
pandeiro left14:16
ph^ left14:17
goombas joined14:17
acrocity left14:17
jlg13 joined14:17
wziPc joined14:17
beautifulmind left14:18
chuckharmston joined14:18
stewbydoo joined14:18
gitinfo set mode: +v14:19
Guest29525 joined14:19
wziPc hello14:19
gitinfo wziPc: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.14:19
gitinfo set mode: +v14:19
stewbydoo hey all14:19
wziPc hello14:20
Guest29525 left14:20
congera left14:20
gdelfino left14:20
gitinfo set mode: +v14:20
stewbydoo so I keep getting this issue when I am trying to use the git help command where it says it cannot find the 'man' directory14:20
tatsuya_o joined14:20
Jay_Levitt joined14:20
stewbydoo anyone have any suggestions?14:20
I am on Windows FYI14:20
DanyO83 joined14:21
tatsuya_o left14:21
goombas if you're developing a web platform and using git for versioning, how would you deal with multiple people editing the files? i know that you can merge changes to the repo, but what testing changes before committing them? should each person be running a local web server on their machine or can everyone develop on a dev server at the same time?14:21
Synthead joined14:21
Jay_Levitt left14:21
SidGBF left14:22
Jay_Levitt joined14:22
mjt i don't see a prob giving each dev its own webserver "partition" on a dev server.14:22
canton7 stewbydoo, how did you install git?14:22
wiremaster joined14:22
wziPc left14:22
stewbydoo canton, what specific part are you referring to?14:22
what setup wizard options did I choose?14:23
goombas mjt: so each has their own partition then commits to the actual merged source?14:23
mjt s/commits/pushes/14:23
wolftankk joined14:23
canton7 stewbydoo, there are lots of different versions of git for windows. msysgit, the github client, etc etc14:23
stewbydoo I went to git-scm.com14:24
used the install package there14:24
adityamenon left14:24
goombas mjt: thanks :P14:24
canton7 stewbydoo, aha so that'll be msysgit14:24
sebrock left14:25
jast I don't think msysgit has proper manpage viewing set up14:25
at least it never worked for me14:25
canton7 the version i'm running points the browser at <install dir>/doc/git/html/manpage.html14:25
gavin_huang left14:25
canton7 but other versions have been borked14:25
goombas left14:25
jast in any case, the manpages are also available at, for example, http://git-scm.com/docs/git-checkout14:25
stewbydoo so do I need to manually point it at the correct location14:25
canton7 yeah, I normally just use the online docs too14:26
stewbydoo right but I would like to be able to access them through bash14:26
d3vic3 left14:26
goombas joined14:26
faraway joined14:26
jast the best thing you can expect is that it'll launch a web browser that will show you the manpage14:26
stewbydoo damn14:26
jast so you might as well use the web browser straight away14:26
msysgit doesn't include a manpage viewer for the console14:26
stewbydoo I can't set it up through the confi14:26
config14:26
gitinfo set mode: +v14:26
stewbydoo damn okay14:26
wolftankk left14:27
infogulch|afkinfogulch14:27
stewbydoo so should I use a different git?14:27
or just use the online man14:27
canton7 I doubt any of the others are any better14:27
check whether you have the manpages in program files/git/doc/git/html14:27
Yuuhi joined14:28
canton7 if not, it's probably a msysgit packaging error, and you could report it to their list14:28
(manpages in html format, that is)14:28
stewbydoo it is there, its called user-manual in html format and text format14:28
It won't bother me if I have to look up the manual online just as long as my install works properly except for that little issue14:29
speakman /join #qt-labs14:29
monokrome So, anyone know if I can tell gitslave to use specific branches>14:30
faraway hi i have a question about git-flow. i currently have a repos with a master branch and some branches that are for the different parts of the projects i'm working on. do i need to finish my currently open feature branches before i switch to git-flow or can i migrate to this ? is there some tutorial how to do this the best way ?14:30
goombas mjt: would each dev's repo be a fork of the main repo?14:30
mjt s/fork/clone/ ;)14:30
ishi joined14:30
ishi hi14:30
goombas :P i'm new to this as you see14:30
i've only used git as a single user14:31
ishi I do git checkout otherbranch and it's aborting claiming that the checkout would overwrite my local changes. However, when I do status, there are no local changes.14:31
goombas both push and pull operations ask to merge changes right?14:31
canton7 but 'git help checkout' fails with 'cannot find man directory'? Check the config key help.format. also browser.<tool>.path, web.browser, and it all else fails poke the msysgit mailing list14:32
stewbydoo, ^14:32
goombas if there's a difference between the local and repo files14:32
cmn goombas: pull is a merge, push isn't14:32
_ikke_ faraway: Well, git-flow has two parts. The workflow part, and a git plugin14:32
cmn goombas: !pull14:32
gitinfo goombas: 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/14:32
faraway _ikke_: the git plugin i mean14:33
goombas reads14:33
xiangfu left14:33
canton7 faraway, I'd suggest renaming master to develop, and creating a new master branch. that way your feature branches will be based on develop (as per git-flow)14:33
_ikke_ faraway: iirc, it doesn't really matter14:33
kermit left14:33
_ikke_ faraway: You just have to merge it in manually14:33
stewbydoo yea fails with that saying there is no man viewer14:34
canton7 stewbydoo, ah that's a different error to what you said before? what exactly does it say?14:34
also, what's the output of 'git config help.format' ?14:34
blami_ left14:35
stewbydoo warning: failed to exec 'man': no such file or directory fatal: no man viewer handled the request14:35
btx94 joined14:35
btx94 left14:35
cmn ishi: !repro14:35
gitinfo ishi: 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.14:35
BadDesign left14:35
lb canton7: stewbydoo is using windows14:35
jast yeah, it tries to use 'man' but that's obviously not shipped with msysgit14:35
stewbydoo so it's just missing the actual manual14:36
_ikke_ git help command should open the brwoser14:36
jast 'man' is the program that displays manpages on a terminal14:36
stewbydoo iikke it results in the error above14:36
canton7 lb, I know. read the scrollback14:36
_ikke_ stewbydoo: man git foo, or git help foo?14:36
gitinfo stewbydoo: the git manpage is available at http://git-scm.com/docs/git.html14:36
canton7 stewbydoo, what is the output of 'git config help.format'?14:37
if it's blank or 'man', change it to 'html'14:37
stewbydoo ouputs html14:37
canton7 hrm14:37
stewbydoo ikke git help foo14:37
dfgdfgdfg left14:37
Zenmaker_ joined14:38
_ikke_ Well, then do what canton7 says14:38
canton7 _ikke_, it's already html :S14:38
faraway _ikke_, canton7: so in the worst case i need to merge my current "feature" branches manually to the develop branch when they are finished. but the rest should work if i rename master to develop? (i'll try it anyway but i just wondered if there are known/common pitfalls)14:38
canton7 stewbydoo, try setting web.browser?14:38
_ikke_ faraway: Not many people here use the plugin14:39
canton7 (might also need browser.<tool>.path|cmd . I haven't played with those options before)14:39
faraway, nah the tool will merge into the branch called 'develop'. if the branch you want to merge them into is called 'develop', the tool will work fine14:40
cmn you shouldn't need to, my git for win installation works with just help.format14:40
torjus_ joined14:40
stewbydoo set web.browser firefox.exe?14:40
hwrd|work left14:40
faraway _ikke_, canton7: ok thx both of you14:40
canton7 hang on. I need to update msysgit anyway, so i'll grab the latest and play14:40
stewbydoo alright14:40
cmn it will start the default browser... maybe you don't have one set?14:41
stewbydoo yea how do you set it?14:41
set web.browser firefox.exe14:41
?14:41
im very new to git14:41
cmn that'd be a git setting, I mean default14:41
papegaaij left14:42
cmn the browsers generally ask you when you start them14:42
canton7 i'm not sure what sort of path it'll want. /c/Program Files/ or C:\\Program Files\\14:42
stewbydoo right well my default is firefox14:42
cmn but try setting it, if it looks like it's not picking it up14:42
faraway left14:42
stewbydoo okay14:42
cmn what Windows version are you using?14:42
gtrak joined14:42
stewbydoo win 7 pro14:42
cmn hm, ok, same here14:43
canton7 stewbydoo, https://github.com/msysgit/msysgit/issues/4014:43
cmn thought maybe Win8 had messed it up14:43
specialGuest left14:43
canton7 hrm, Git-1.7.11-preview20120704 works fine for me out of the box14:44
pdelvo_ joined14:44
canton7 which installer did you download stewbydoo?14:45
stewbydoo damn it14:45
umm one sec14:45
kpreid left14:45
fluxdude joined14:45
stewbydoo Git-1.7.11-preview2012062014:45
kpreid joined14:45
canton7 ..which is the broken one. grab the latest one14:45
oojacoboo left14:45
canton7 http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.11-preview20120704.exe14:46
jast so, git-scm.com links to the broken one? nice :)14:46
someone might want to let scott know14:46
stewbydoo right...so the main site sucks14:47
cmn google code sucks harder14:47
pandeiro_ left14:47
cmn it makes it very hard to figure out what's going on with the releases14:47
pandeiro joined14:47
stewbydoo well if google code has the working verson than it does not suck14:47
linusoleander joined14:48
cmn what?14:48
stewbydoo the main git-scm site links to the wrong install...might wanna change that14:48
pdelvo left14:48
cmn right14:48
wolftankk joined14:48
linusoleander Git is asking for a password for host A when trying to push to host B14:48
git push origin master14:48
[email@hidden.address] password:14:48
Why is that?14:48
jast git remote -v to see what is configured14:48
cmn because that's how you log in to computers14:49
linusoleander 91.123.195.252 isn't the host I'm trying to push to14:49
thiago linusoleander: because you're trying to push to A14:49
linusoleander: yes, it is14:49
patrick85 left14:49
wolftankk left14:49
linusoleander thiago: Not according to the .git/config file14:49
origin is set to host B14:50
thiago linusoleander: what branch are you on?14:50
linusoleander master14:50
stewbydoo well hopefully that does the trick14:50
thanks to all14:50
thiago linusoleander: what is master's upstream branch?14:50
jast doesn't matter14:50
thiago oh, right14:50
it's git push *origin* master14:50
jast what does 'git config remote.origin.url' say? what does 'git config remote.origin.pushurl' say?14:50
thiago linusoleander: git remote -v. What does it say?14:50
jast or, yeah, what I said before :)14:51
linusoleander Origin points (according to git remote -v) to host B14:51
stewbydoo left14:51
jast both url and pushurl?14:51
does it contain an IP address or a hostname?14:52
Silex hi, to completely remove a folder from the repository, should I use tree-filter?14:52
linusoleander Nope14:52
zeppo left14:52
rudi_s Hi. Is there support to authenticate HTTPS fingerprints like hg's hostfingerprints option?14:52
canton7 stewbydoo, the problem is that git-scm, although "official" insomuch as it's recognised as the main git website, isn't maintained by git's maintainer, but rather by a contributer. so stuff isn't always in sync14:52
_ikke_ Silex: Does it need to be removed from history?14:52
jast Silex: index-filter is much faster. there should be an example somewhere in the manpage.14:52
linusoleander jast: They are all pointing to github14:52
Which is the correct host14:52
But when I try to push to origin it uses my VPS for some reason14:53
kermit joined14:53
jast linusoleander: and ~/.ssh/config doesn't override the hostname for github.com?14:53
*the host14:53
Silex _ikke_: yes, it's for a friend he added his whole img/ folder14:53
zeppo joined14:53
Silex which is not needed in the repo14:53
BSaboia__ joined14:53
TheJH joined14:53
pppaul joined14:53
_ikke_ Silex: https://help.github.com/articles/remove-sensitive-data14:54
thiago linusoleander: ssh -v <hostnamehere>. Where does it connect to?14:54
lb Silex: !rewriting_public_history14:54
gitinfo Silex: 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)14:54
linusoleander jast: It looks like this problem is my ssh config file14:54
Silex lb: I know.14:54
lb good14:54
jast ... another problem pinpointed, yay ;)14:54
Silex _ikke_: the example is about one file only. Can I simply add -r and change the filename to a directory?14:55
guampa joined14:55
_ikke_ yes14:55
infogulchinfogulch|afk14:56
shreya joined14:56
Silex thanks14:56
jast 'add -r'? since when do we have that?14:56
linusoleander jast: Changing the config file worked, thanks14:56
w41_ joined14:57
jast oh, never mind14:57
BSaboia left14:57
jast linusoleander: you're welcome14:57
bodom joined14:58
shreya_ joined14:58
shreya left14:59
john_anderson left14:59
w41 left15:00
tatsuya_o joined15:00
und3f left15:00
martinjlowm joined15:01
wolftankk joined15:01
Pitel_laptop left15:01
stodan left15:02
trungqtran joined15:02
w41_ left15:02
w41__ left15:02
mritz joined15:03
iocor left15:03
dvide left15:03
iamtakingiteasy left15:04
crocket left15:04
legumbre joined15:05
dfgdfgdfg joined15:05
Jay_Levitt left15:05
wolftankk left15:05
Jay_Levitt joined15:06
crocket joined15:06
procrastubator joined15:07
procrastubator Guys how do I find the name of the branch that my repo usually pushes to?15:07
git branch only returns master15:07
which is the branch I am nin15:07
cmn usually pushes to? that depends on the configuration, and there is no "usually" there15:08
jast by default, 'push' updates all branches that exist on both sides15:08
cmn git branch returns the local branches15:08
axl_ joined15:08
canton7 git branch -r returns the remote branches, and git branch -a shows everything15:09
procrastubator I just added it again and linked it with the URL15:09
erdnaxeli joined15:10
erdnaxeli left15:10
canton7 "linked it with the URL"?15:10
dendazen Why do i get this error when doing git clone https://u:p@whatever15:10
write(2, "fatal: I don't handle protocol '"..., 42fatal: I don't handle protocol '​https'15:10
) = 4215:10
zeppo left15:11
cmn because you build git or curl without https support15:11
built*15:11
nwest joined15:11
SirCmpwn joined15:12
MaximLacrima left15:12
rchavik left15:13
ph^ joined15:13
tjegels left15:14
cbreak-work left15:14
dvide joined15:14
cagedwisdom left15:15
Destos left15:15
specialGuest joined15:16
Destos joined15:17
someprimetime joined15:17
t4nkd joined15:18
jjbohn joined15:18
brainbox1100 joined15:18
linusoleander left15:19
procrastubator canton: git remote add <branch> < .git URL>15:21
flijten left15:21
banghouse joined15:22
osxorgate left15:22
skorgon left15:22
wolftankk joined15:23
WerringW|Food15:23
goombas left15:24
wolftankk left15:24
osxorgate joined15:24
ThomasLocke left15:24
tjholowaychuk joined15:25
mritz left15:26
Merwin left15:26
Merwin joined15:26
toabctl joined15:28
dendazen cmn15:28
but it worked before.15:28
adityamenon joined15:28
dendazen what should i do?15:29
kenperkins joined15:29
blorbx joined15:29
dendazen re-install git?15:29
Or there are settings?15:29
carbolymer left15:29
cmn before what?15:30
wiremaster left15:30
_iron joined15:30
MerwinThibautD15:31
amcsi_work left15:32
gigamonkey joined15:32
wiremaster joined15:32
dendazen It worked before i updated my workstation from F16 to F17.15:33
anabelle joined15:33
etcetera joined15:34
dfgdfgdfg left15:34
canton7 looks like a problem with the git package in the F17 repos? (I'm assuming F16 and F17 have different repos)15:34
cmn then make sure you have a curl version that understands https15:35
mklappstuhl left15:35
etcetera left15:35
adityamenon left15:35
etcetera joined15:36
dendazen I do.15:37
cmn then it's your git installation that doesn't know this15:38
dendazen Then the thing is that i have build machines in my company and if i do the same thing under my user from those build machines. i get the same error, and those are F1615:38
Before i was able to do that.15:38
canton7 what is the exact error, character for character?15:38
dendazen So i log on to those machines.15:38
canton7 what you pasted before was somewhat distorted, but there was some space between 'h' and 'ttps'. I'm suspecting some weird character15:40
Tegi left15:40
osxorgate left15:40
Soliton left15:40
mritz joined15:40
dendazen (sshing) with my ldap credentials, do kinit with mine credentials and do: git clone ​https://u:p@source.blenders.com/ep-compliance-ntp.pkg.git15:40
irqq left15:40
fxn joined15:41
dendazen and it would clone before. and get this: https://u:p@source.eladian.com/ep-compliance-ntp.pkg15:41
Cloning into 'ep-compliance-ntp.pkg'...15:41
fatal: I don't handle protocol '​https'15:41
canton7 complete with that space in the middle of the https?15:42
harshpb joined15:42
dendazen what do you mean?15:42
cmn I can't see any spaces...15:42
dendazen with the space in the middle?15:43
bodom left15:43
cmn are you copy-pasting it or typing it out?15:43
canton7 ooh this is fun. xchat is gettin very confused, and moving the 'h' around when I highlight the https15:43
canton7 suspects weird unicode/unprintable stuff even more15:43
fxn hey, I have a repo I cannot rename and would like to collapse all the history into one single commit and force push, is git rebase -i the way to go?15:43
irqq joined15:43
Soliton joined15:44
canton7 fxn, probs easier to nuke the .git repo and start over. that or create a new orphan branch15:44
fxn canton7: so I delete .git, git init etc and forche push15:45
dendazen And the thing is that other people on my group can clone with no problems.15:45
cmn are you copy-pasting it or typing it out?15:45
dendazen Can it be related to my kerberos ticket?15:45
JohnBat26 left15:45
canton7 fxn, that approach will nuke all config actually. I'd prefer 'git checkout --orphan newbranch && git commit -m "New commit" && git branch -D original_branch && git branch -m original_branch && git push -f"15:46
cmn canton7: can you see anything odd in the web log?15:46
dendazen: are you copy-pasting it or typing it out?15:46
dendazen As my keytab has been changed, since i've gotten a new F17 OS15:46
i am copying it out from bash15:46
canton7 cmn, nah the weblog is fine15:46
cmn then type it out15:46
the likely cause right now is some unvisible space, so don't copy it15:47
rwestphal left15:47
cmn invisible, even15:47
unnamedwill left15:47
thorbjornDX cmn: non-uninvisible, perhaps?15:48
procrastubator left15:48
specialGuest left15:48
aLeSD joined15:48
gerryvdm_mbp left15:48
aLeSD hi all15:48
cmn that'll be why it's confusing git15:48
dzonder joined15:48
aLeSD is it possible to setup a remote repository without ssh ? I mean open and without password ?15:48
_Qman left15:49
monokrome left15:49
Kingsy left15:49
cmn use the raw git transport15:49
Milossh joined15:49
dendazen git clone https://u:p@source.blenders.com/ep-compliance-ntp.pkg15:50
Vert left15:50
dendazen cmn, it worked15:50
how the space can be hidden?15:50
cmn because it's un unprintable character15:50
canton7 cmn, dendazen, there's the byte sequence E2 80 8B between the ' and h15:50
rwestphal joined15:50
thiago left15:50
lb left15:50
dendazen yeah it worked, when i just typed by hands.15:50
Desproges joined15:51
dendazen Thanks, weird.15:51
bigmeow anybody here use both hg and git15:51
?15:51
W|FoodWerring15:51
unnamedwill joined15:51
bigmeow how to use git to clone hg repo?15:51
canton7 dendazen, and that sequence is a utf-8 zero width space15:52
cmn you use hg-git15:52
t4nkd left15:52
hyperair left15:52
resmo left15:52
Desproges left15:52
dendazen yeah.15:52
jlg13 left15:53
argoneus joined15:53
dendazen the thing is i used to copy that git clone thing from our trac wiki15:53
tatsuya_o left15:53
cmn right, and as soon as the space was mentioned, you should have typed it out15:53
specialGuest joined15:53
argoneus is it possible to 'move' a git repo from one folder to another?15:53
dendazen when i used firefox and would copy it str8 to the bash, it worked15:53
shreya_ left15:54
dendazen but turned out did not work when i used chrome.15:54
as a browser15:54
gregm_ joined15:54
bigmeow how to use git to clone hg repo?15:54
tatsuya_o joined15:55
angelsl left15:55
The24z_awayThe24z15:55
cmn bigmeow: you use hg-git15:55
angelsl joined15:55
bigmeow cmn: dude, it should be git-hg15:56
tatsuya_o left15:56
tatsuya_o joined15:56
cmn if you know the tool to use, then use that instead of asking us15:56
bigmeow cmn: but this maybe error prone:(15:56
cmn what is?15:56
pdelvo joined15:56
argoneus is it possible to 'transfer' a git repo to another directory and add files from there?15:57
because I can't move the files to the folder15:57
only the other way around15:58
cmn you can clone15:58
bigmeow what is the hg command corresponding to git clean?15:58
cmn or init, fetch etc if you already have files there15:58
bigmeow: you should ask in the mercurial channel15:59
brainbox1100 left15:59
argoneus cmn: as in15:59
clone the repo from the other dir15:59
rm the unneeded stuff15:59
and commit push?15:59
lausi left16:00
lausi joined16:00
fxn left16:00
pdelvo_ left16:00
lausi left16:00
cmn why do you need a new clone just to delete some stuff?16:00
argoneus I need to replace some of the files with others16:00
variousnefarious left16:00
argoneus and the others16:00
are in a different dir16:00
from which I can't move them16:01
cmn then read what I said above16:01
argoneus yeah I'll do that16:01
thank you16:01
argoneus left16:02
ISF joined16:02
variousnefarious joined16:03
boombatower joined16:03
gusnan left16:05
shwaiil joined16:05
shwaiil hi16:05
The24zThe24z_away16:06
TheJH left16:06
leokaito left16:06
adhawkins What happened to the bot?16:06
!ask16:06
gitinfo Yes, it's okay to ask questions here.... in fact, you just asked one! ;-) Pretty much any question is fine. We're not terribly picky, but we might be asleep. Please be patient and you should get an answer soon.16:06
Protux joined16:06
senny left16:07
iocor joined16:07
shwaiil I'm finding more and more people using GIT to do deployment. Because I also use it as well to do deployment and because I've been trying to learn Capistrano etc (but didn't had time), I'm having a little bit of dificulties finding if I really should stop using GIT to deploy or not, because seems that everyones doing it. Any comments on that ? Thanks!16:07
adhawkins !deploy16:07
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.html16:07
shwaiil - I know GIT is not ment for deployment16:07
great..16:07
cmn ti's also not called GIT16:07
adhawkins I don't know much about using it for deployment, but presume that URL contains useful advice16:07
andrewstewart joined16:08
cmn shwaiil: basically, you can get away with it if you have very minimal needs, but anything other than putting a bunch of files somewhere needs a real deployment16:08
shwaiil cmn: tks for looking. I know it's not for deployment, that's the reason I've been trying to find the right tool for it16:09
I found capistrano, but, let's say I may just create a project using JS16:09
sometimes PHP16:09
sometimes other16:09
Is Capistrano good for me ?16:09
cmn the right tool usually depends more on the framework you're using than the VCS16:09
shwaiil I just don't have time and I'm lacking energy to learn a deployment tool and I just want to make the right choice16:10
oojacoboo joined16:10
csmrfx rake16:10
shwaiil cmn: I'm sorry about asking here, but I really can't find a better place16:10
csmrfx or what else is there - ant and its descendant16:10
and so on.16:10
shwaiil cmn: isn't there a deployment tools that let me deploy anything ?! :T16:10
csmrfx I'd say it depends on the language and also the frameworks16:10
cmn shwaiil: yes, but those involve a lot of writing stuff out16:11
csmrfx I'm the kinda person that would write build scripts in the same language as deployment or app, but thats not always possible16:11
shwaiil cmn: what do u use ?16:11
cmn AFAIK you can use capistrano for anything, but you'll end up writing a bunch of scripts16:11
I don't do deployments myself; if I need to test something out, I outsource that to heroku or openshift16:12
hwrd|work joined16:12
diegoviola joined16:12
csmrfx hehe, deploy app or deploy the whole service? anyway, pardon my off topic16:12
robbyoconnor left16:13
fly9_ joined16:13
rudi_s Hi. Is there support to authenticate HTTPS fingerprints like hg's hostfingerprints option?16:16
fly9 left16:16
fly9_fly916:16
adhawkinsadhawkins-away16:16
jjbohn left16:16
chimay left16:17
cmn rudi_s: git uses curl16:20
ncd|leeN joined16:21
chimay joined16:21
chimay left16:21
chimay joined16:21
rudi_s cmn: Thanks. But looks like curl can't do it.16:24
cmn then that's the answer16:24
rudi_s :-/ Ok.16:24
leeN left16:24
bremner ssh is your friend.16:24
rudi_s Can I pass options to curl?16:25
gtuckerkellogg joined16:25
rudi_s bremner: Only helps if I have SSH access.16:26
maletor joined16:26
youngblood left16:26
ping-pong left16:28
wolftankk joined16:28
wolftankk left16:28
thiago joined16:28
fornext joined16:29
giallu left16:29
vmassuchetto joined16:30
vmassuchetto I have a global ~/.gitconfig file with my user name and email, but I can't seem to override this on a project's .git/config. Is it possible?16:31
cmn yes, that's how you do it16:31
dfgdfgdfg joined16:32
Shusshu joined16:32
Shusshu left16:32
achadwick left16:32
pdelvo left16:33
pdelvo joined16:33
vmassuchetto cmn, Well, it's not working. I get commits with the ~/.gitconfig user.email as author16:33
cmn get commits meaning what?16:33
what does git config user.email say?16:33
vmassuchetto git config user.email get the project's .git/config user.email16:34
dreiss joined16:34
LimeBlast left16:34
cehteh joined16:34
vmassuchetto 'git config --list' will show both user.email options, with project's one at the bottom.16:35
pandeiro_ joined16:35
pandeiro left16:35
Turicas joined16:35
cmn yes16:35
then it's set up16:35
klj613 left16:36
hwrd|work left16:36
Drarokdrarok16:37
wolftankk joined16:37
dreiss left16:39
vmassuchetto cmn, it just came to me that, a long long time ago I've put GIT_AUTHOR_NAME|EMAIL in my ~/.bashrc16:39
cmn, thanks anyway =D16:39
milki lol16:39
vmassuchetto left16:39
cmn there you go, then16:39
wolftankk left16:41
ping-pong joined16:41
QaDeS left16:41
ISF left16:41
flo` joined16:46
harshpb left16:46
flo` hi16:46
gitinfo flo`: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.16:46
brainbox1100 joined16:46
harshpb joined16:47
cakehero joined16:47
flo` i have a git-repo created with git-svn. however, at some point, the master branch ends (there are just no new commits) and a 'trunk' branch has been created.16:47
hyperair joined16:48
harshpb left16:48
flo` how can i put that 'trunk' branch into master, deleting trunk and having master contain it all? my repo is not shared with anyone, so i can cleanly rewrite history16:48
harshpb joined16:49
fly9 left16:49
fly9 joined16:49
milki flo`: merge trunk to master?16:50
tomislater joined16:50
Sym3tri joined16:50
nightcrawler786 left16:50
flo` milki: can i then delete trunk without losing any history?16:51
gdmfsob left16:51
dr_lepper left16:51
milki after youve merged, yes16:51
flo` and how can i make new stuff which gets svn-committed to svn_'s trunk (by other developer) be put into master instead into git's trunk-branch/16:52
angelsl left16:52
flo` *?16:52
esc flo`: git merge trunk?16:52
tatsuya_o left16:52
milki magic16:52
im sure theres some branch mapping thing somewhere...16:53
i dont know much about git svn16:53
flavius joined16:53
upasnasweet_kid16:53
flo` esc: that went fine so far. but will that also make git-svn store stuff coming from svn's trunk into git's master?16:53
milki what does git branch -v say for trunk?16:53
esc flo`: if you need to still retrieve stuff from svn, don't delete the trunk16:54
harshpb left16:54
esc flo`: usually, that isn't the case16:54
flo` esc: but i want to delete the trunk, and have git-svn put it all into master.16:54
and i do want to still retrieve from svn16:54
(unfortunately)16:55
esc the workflow is to git svn fetch16:55
milki flo`: what does git branch -v say for trunk?16:55
esc the master is a local branch16:55
nightcrawler786 joined16:55
cmn you can give git-svn a mapping, but making it overwrite your local branches is not a good idea16:55
esc trunk tracks svn16:55
milki make master track svn then?16:56
flo` when on branch master: ..., trunk 1e76122 nothing16:56
esc i don't well, it's not quite the same16:56
trunk is a special branch16:56
milki o16:56
flo` when i then do git checkout trunk, "warning: refname 'trunk' is ambigous", git branch -v tells me the same as before then.16:56
esc kind of like remote-tracking branches, e.g. origin/master16:56
iocor left16:56
flo` esc: but trunk got created some day by git-svn.16:57
milki aah ok, so git-svn stuff16:57
flo` for a whole bunch of revisions, it correctly put it into master16:57
but some day, it started to put it into trunk. and that's what i want to revert.16:57
kerrick joined16:58
esc well, usually, what happens, is the first time you git svn clone, trunk and master point to the same commit16:58
flo` btw, the gitg frontend displays as first entry in its list: (master) (trunk) (trunk) nothing16:58
why does it display trunk twice?16:59
oakdog8 joined16:59
esc because you have two trunk branches, apparently16:59
Fullmoon joined16:59
AlbireoX left16:59
AlbireoX`Laptop joined16:59
Sym3tri left16:59
esc that's also the bit about being ambigouus you posted earlier16:59
flo` esc: i see. git checkout <TAB> <TAB> displays a list, containing heads/trunk and remotes/trunk16:59
esc yes17:00
remote branch and the svn-tracking-branch (for lack of a better word)17:00
Vile left17:00
esc eh, local branch, i meant17:00
heads/trunk is your local branch, i suppose17:00
and remotes/trunk is the one that tracks the trunk from svn17:00
Advocation joined17:01
flo` okay, so i somehow need to tell git that i want remotes/trunk to write its stuff to master, and not to heads/trunk?17:01
is that true?17:02
esc donsn't sound right17:02
i can only tell you, what my workflow is17:02
banghousebanghouseAFK17:02
irqq left17:03
argoneus joined17:03
argoneus does each branch have its own 'remote'?17:03
esc flo`: i would recommend to delete the heads/trunk17:04
flo` nope, just trunk17:04
esc flo`: and get master to track trunk17:04
devth joined17:04
flo` there are also strange branches: branchname and branchname@123417:05
(1234 is apparently a svn revision number)17:05
esc git branch master --set-upstream trunk17:05
yeah, its from when branches were moved around in the svn repository17:05
RaceCondition left17:05
flo` esc: so these are two different branches which share the same name, e.g. by creating, deleting and re-creating a svn branch?17:06
shruggar left17:06
esc something like that17:06
RaceCondition joined17:07
esc but i find it comes from layout changes in the repository and other unorthodox nonsense people do with svn repsoitories17:07
argoneus left17:07
esc i have seen commits similar to those you mentioned, but i could never work out exactly what caused them17:07
flo` esc: unorthodox nonsense has happened to the repo.17:08
esc yes, this is usually the case, amazingly enough...17:08
flo`: http://andy.delcambre.com/2008/03/04/git-svn-workflow.html17:08
here is a good workflow17:08
flo` after git branch --set-upstream remotes/trunk, git branch -v says master 1e... [remotes/trunk] nothing17:08
which is good i suppose?17:08
BSaboia joined17:09
aruiz joined17:09
esc it's git branch master --set-upstream remotes/trunk17:10
mwrosen joined17:10
esc basically this allows you to 'git pull' after doing 'git svn fetch'17:10
to merge the changes from remotes/trunk into master17:10
which kind of mimics a git-workflow17:10
flo` git svn rebase does both things for me, right?17:10
neurodrone left17:11
esc no, git-svn rebase, does a git svn fetch and then rebases master onto remotes/trunk17:11
opus joined17:11
esc it's mainly used, when someone else has commited to svn, and you need to put the stuff you have in your local master on top of that17:11
flo` ah right.17:12
esc you get the latest changes with git svn fetch17:12
and then you rebase you master onto remotes/trunk17:12
BSaboia__ left17:12
esc then you would normally, git svn dcommit to commit your local changes to the remote svn17:12
basically, as a rule of thumb, your need to linearise your history, before dcommitting17:13
PigeonFriend left17:13
esc otherwise git svn becomes confused17:13
anyway, i need to leave now17:13
xplat left17:14
goshawk joined17:14
esc flo`: good luck with git svn, if you read a little bit more about it, things should clear up17:14
flo` thank you17:14
uhm, linearize means what?17:14
lacrymology joined17:15
harshpb joined17:15
patrick85 joined17:19
harshpb left17:21
cklein joined17:21
k0nichiwa joined17:21
k0nichiwa what is the quickest (smallest bandwidth) way i could get the source code for version 1.9.0 of the phonegap repository ?17:22
cklein left17:22
iocor joined17:22
k0nichiwa https://github.com/phonegap/phonegap17:22
i'd rather not clone the whole repository17:22
FauxFaux k0nichiwa: a) #github. b) Hit the big "zip" button.17:22
apok joined17:23
k0nichiwa zip would get me 2.017:23
i want an older version, 1.917:23
FauxFaux So you want to get the source of a /tag/? I wonder what could possibly show you zips of tags.17:23
k0nichiwa i want source for 1.917:24
i didn't say a tag17:24
FauxFaux 1.9 is a tag.17:24
k0nichiwa tag is some stupid git concept, i don't give a fck ab out it17:24
i want the source for version 1.917:24
muep there is no other simple way than tags to specify an user-visible version of source stored in git17:24
canton7 k0nichiwa, stop being rude, click the tags button, then click on '1.9.0.zip'17:24
FauxFaux You're trying to use github to work around a vendor problem without talking to the vendor. We're trying to support git, which is used by github, but github actually has nothing to do with git..17:25
koltroll left17:25
k0nichiwa thanks i think that will work17:26
esc flo`: linearise, means to adjust the directed acyclic graph, that is the git history, into a graph where each node has only a single parent17:29
no bifurcations or joins17:29
specialGuest left17:30
shwaiil left17:32
jceb left17:32
flo` esc: ok, and how would i do this?17:32
paul_andrew joined17:33
esc well, by using git svn rebase for example17:33
cbreak you should use git rebase...17:33
git svn rebase is much more limitted17:34
fornext left17:34
tigris_ joined17:34
EugeneKay git svn screwitallup17:35
someprimetime left17:35
eli joined17:36
sfrank joined17:36
thirdknife joined17:36
esc EugeneKay: +117:36
tigris_ hi all... i have a script that creates and writes directly to a bare repo... i'm seeing a really weird issue where all the commits are visible in the log, but when i clone the repo, not all the files are there17:36
cbreak files?17:37
jh3 left17:37
cbreak why would there be any files?17:37
EugeneKay Are you updating a ref to point to your new commits?17:37
cbreak does the last commit contain them?17:37
(the HEAD commit)17:37
tigris_ cbreak: when i clone the bare repo into a normal one i mean, only the latest file is there17:37
esc tigris_: did you forget to check the files in?17:37
duckxx joined17:38
tigris_ https://gist.github.com/362389417:38
harshpb joined17:38
jh3 joined17:38
shruggar joined17:39
cbreak tigris_: that's normal17:39
only the latest file is supposed to be there17:39
a commit is a snapshot after all17:39
tigris_ cbreak: i'm doing something wrong with :parents aren't i17:39
cbreak do a git log --stat17:39
pastebin the result if you want us to interprete it :)17:40
tigris_ cbreak: oh i think i see what you mean... when i create each commit, that tree should contain all existing blobs, even unchanged ones17:40
cbreak unless you want them to be deleted17:40
-> snapshot17:40
you're better off using git's own facilities for this17:40
i.e. a non-bare repo with index for staging future commits17:40
fluxdude left17:40
Ivoz left17:41
etcetera left17:41
tigris_ cbreak: i was doing that originally, but this code can create 500,000+ repos in about 10 minutes, shelling out to git was taking about 3 hours17:41
mabrand joined17:42
SegFaultAX|work2 joined17:42
sebastorama joined17:42
cbreak you know that you can copy existing repositories, right?17:42
a.k.a. clone17:42
bremner that's a lotta repos17:42
etcetera joined17:42
gun-lpt left17:43
diptherial joined17:43
argoneus joined17:43
argoneus hello17:43
what is HEAD^^?17:43
HEAD - 2 commits?17:43
sebastorama left17:43
gun-lpt joined17:43
cbreak parent of parent of HEAD17:43
(first parent each time)17:43
sebastorama joined17:44
tigris_ cbreak: you are correct, git log --stat shows previous files getting deleted, thanks!17:44
cbreak np.17:44
sebastorama left17:44
flo` `.17:44
`.17:44
~17:45
argoneus parent of HEAD is the last commit before HEAD?17:45
e.g.17:45
if I do git rebase -i HEAD^17:45
I revert 1 commit?17:45
flo` meh, sorry >_<17:45
stratwine joined17:45
stratwine left17:45
tigris_ i'm moving a cms revision based system from mysql to git... currently 525,000 customers, total of 2.3 million files in total, and about 6 million revisions over all... i am going with 1 repo per client, hence creating new ones and not cloning17:46
Akufen joined17:46
Akufen left17:46
Akufen joined17:46
sebastorama joined17:46
noisebleed left17:46
jgoss left17:46
sanmarcos left17:46
sanmarcos joined17:46
harshpb left17:46
spaceonline left17:46
cbreak argoneus: rebase -i doesn't revert anything17:46
foraks joined17:47
harshpb joined17:47
spaceonline joined17:47
argoneus if I accidently commited bad or accidently merged the wrong way17:47
tigris_ and also why you see that script deleting any tiny amount of space per repo, even the 200 byte config file, since any small amount becomes a big amount when multiplied by 525,00017:47
argoneus what do I do?17:47
cbreak HEAD^ refers to the parent of HEAD, to the commit that was the newest commit in the branch before the newest after that was made17:47
argoneus: you can reset it away if you haven't pushed yet17:47
git reset HEAD~117:47
argoneus ~1?17:47
or HEAD^17:47
cbreak git reset HEAD^17:47
same thing17:47
argoneus and if I pushed?17:48
cbreak argoneus: man git-rev-parse17:48
gitinfo argoneus: the git-rev-parse manpage is available at http://git-scm.com/docs/git-rev-parse.html17:48
gun-lpt left17:48
cbreak then you can use git revert17:48
argoneus thank you17:48
cbreak this will make a new commit undoing the past's effects17:48
but with merges, that has all kinds of associated troubles17:48
vervic joined17:48
argoneus how so?17:48
shruggar left17:48
Advocation left17:49
TheJH joined17:49
sfrank hi all - I am trying to rebase my master branch into my feature branch, and git has auto-merged changes by excluding mine on a file that was moved to another folder in master - any ideas why it has ignored my changes?17:50
diptherial left17:50
cbreak argoneus: if you merged something then that's part of history17:50
reverting the merge won't change that17:50
srayner joined17:50
cbreak so you can never again merge it17:50
and of course it will show up in git log17:50
argoneus so if I have a 'stable' and 'dev' branch17:51
cbreak sfrank: bad idea17:51
argoneus and I accidentally merge them the wrong way17:51
sfrank oh?17:51
argoneus then it's game over?17:51
cbreak do not rebase master into anything17:51
nwest left17:51
milki ever17:51
sfrank oh i meant i was rebasing the changes from master into my branch17:51
and i squashed all the commits into my branch into one17:51
cbreak that's usually not a good idea17:51
sfrank so basically just trying to get caught up to master17:51
Sigma joined17:51
cbreak then rebase your own branch onto master17:52
that's the way to get up-to-date to master17:52
if you rebase master, then you CHANGE MASTER HISTORY17:52
-> bad17:52
argoneus: merge the wrong way?17:52
sfrank oh i see17:52
cbreak you can rewrite history if you want, with reset or so17:52
argoneus cbreak: as in merge stable into dev and push it17:52
cbreak but it's tricky17:53
pandeiro_ left17:53
rmr left17:53
pandeiro joined17:53
Jay_Levitt left17:54
cbreak sfrank: basically, if you rebase master on your feature, then you make git change master so that it looks as if it was based on your feature. :)17:54
sfrank ah - so what is the best way to get my branch caught up to master so that I can put in a pull request now that i'm done with my feature17:55
aruiz left17:55
shruggar joined17:55
EugeneKay man git-merge17:56
gitinfo the git-merge manpage is available at http://git-scm.com/docs/git-merge.html17:56
EugeneKay git supports creating merge commits; use them. Having two parents is not heresy, it is a biological mandate.17:56
argoneus cbreak: how do you mean tricky?17:57
axl_ left17:57
dr_lepper joined17:58
cbreak sfrank: git checkout yourbranch17:58
git rebase master17:58
argoneus: it's public history rewriting17:58
you have to do it on every single repository in existance17:58
so yours, the one you pushed to17:58
gun-lpt joined17:58
cbreak and everyone who fetched17:58
argoneus if I do it 3 minutes later17:59
no one should be messed up, no?17:59
cbreak depends17:59
you have to force push for once17:59
and then you have to check everyone elses repository18:00
if you work alone then that's easy18:00
argoneus yeah I do18:00
cbreak if you work in a team with dozens of people18:00
then you have some work to do18:00
argoneus so tl;dr18:00
check before I push18:00
sfrank cbreak: I attempted to do that.. however it decided to leave out some of my changes - which is the original problem i was having. i can manually go back through and resolve the issues by pulling back in the changes of mine that it discarded but i fear its error prone18:00
argoneus to avoid headaches18:00
Jay_Levitt joined18:00
cbreak sfrank: what?!18:00
banghouseAFKbanghouse18:01
cbreak you didn't use -i, did you?18:01
sfrank no just "git checkout mybranch" then "git rebase master"18:01
and it found one conflict… automagically resolved most of the differences by accepting my changes but oddly discarded my changes on a file that had moved18:02
cbreak hmm...18:02
it didn't conflict?18:02
opus left18:03
sfrank so it found one conflict.. somebody had added a new function to that file… i had to manually resolve that one… but it discarded the other changes i made to the file without a conflict on those line numbers18:03
cbreak then you did something wrong.18:04
Turicas left18:04
cbreak when you manually resolved the conflict18:04
specialGuest joined18:04
cbreak try again :)18:04
paul_andrew left18:04
patrick85 left18:05
cbreak sfrank: if renames make problems, check out man git-rebase18:05
gitinfo sfrank: the git-rebase manpage is available at http://git-scm.com/docs/git-rebase.html18:05
cbreak look for -m and rebase-threshold18:06
which is an -X option18:06
tehgeekmeister joined18:06
tehgeekmeister can a .gitconfig source another .gitconfig?18:06
i have stuff i want to share between machines, and stuff i don't18:07
cbreak I think that's a new feature18:07
cmn from 1.7.10 onwards it ca18:07
opus joined18:07
vervic left18:07
cmn can18:07
sfrank thanks - i'll try that right now18:07
argoneus alright thanks for help18:07
argoneus left18:07
rcu joined18:07
tehgeekmeister hmm, i can afford to upgrade18:08
neurodrone joined18:08
tehgeekmeister is it just like you'd do in bash?18:08
axl_ joined18:08
cbreak I doubt it18:08
haYabuSa joined18:09
cmn not even a little18:09
tehgeekmeister hmm. is there a better way to override just the name/email bits on a per machine basis?18:10
haYabuSa left18:10
tehgeekmeister that's the only thing i don't want to share between all boxes.18:10
srayner left18:10
Advocation joined18:11
paul_andrew joined18:11
tomislater left18:11
etcetera left18:11
cmn use the system config18:11
tehgeekmeister oh, cool18:11
didn't know that existed18:11
thanks18:11
mrOrangeChuck joined18:11
thirdknife left18:12
paul_andrew left18:12
paul_andrew joined18:13
infogulch|afkinfogulch18:14
Advocation left18:15
paul_andrew left18:15
etcetera joined18:16
Advocation joined18:17
kerrick left18:17
pantsman joined18:17
pantsman left18:17
pantsman joined18:17
kerrick_ joined18:17
caseymcg joined18:18
paul_andrew joined18:18
fread2281 left18:19
paul_andrew left18:19
zeppo joined18:19
dfgdfgdfg left18:19
_jmg left18:21
harshpb left18:21
harshpb joined18:22
zeppo left18:22
zeppo joined18:23
imachuchu joined18:23
mabrand left18:23
Austin__ joined18:23
paul_andrew joined18:23
bartek left18:25
berserkr left18:25
paul_andrew left18:25
sirdancealot left18:25
TheFuzzb_TheFuzzball18:25
iamtakingiteasy joined18:26
ShadeTornado joined18:26
sfrank left18:27
koltroll joined18:27
pandeiro left18:27
sfrank joined18:27
irqq joined18:28
paul_andrew joined18:28
paul_andrew left18:29
shruggar left18:31
converge joined18:31
bartek joined18:32
apipkin joined18:32
doherty joined18:32
sirdancealot joined18:32
apipkin i have an upstream repository. is it possible to set the default `pull` to a specific branch? if yes, how can i see what that branch is18:32
etcetera left18:33
cbreak no18:33
specialGuest left18:33
cbreak pull pulls to the current branch18:33
no exceptions.18:33
thiago pull pulls the current branch's upstream18:33
so just change the upstream18:33
_ikke_ It needs a working tree to merge18:33
thiago oh, pull *to* a branch?18:33
it always merges with the current HEAD18:34
Advocation left18:34
cbreak did you mean source or destination?18:34
apipkin so something like `git reset upstream/master —hard` would always be the master branch of upstream?18:34
gigamonkey_ joined18:34
_ikke_ yes18:34
thiago upstream/master is just one branch18:34
cbreak if you have an upstream remote18:34
_ikke_ Since you're last fetch anyway18:34
fread2281 joined18:35
thiago if that's refs/remotes/upstream/master, it's usually the upstream remote's master branch18:35
apipkin yeah refs/remotes/upstream/*18:35
etcetera joined18:35
Annika_Doe joined18:35
gigamonkey left18:36
gigamonkey_gigamonkey18:36
thiago when you fetch upstream, it saves upstream's refs/heads/* into refs/remotes/upstream/*18:36
caseymcg left18:36
Annika_Doe left18:37
cbreak unless you fetch it somewhere else... :/18:37
Vortex34 joined18:37
ameoba__ameoba18:37
DanyO83 left18:38
apipkin the issue i'm running into is with issuing a pull request on github (may or may not be in scope of the channel). explaining in here feels like writing a book haha one sec18:38
thiago pull requests are not in scope18:38
patrick85 joined18:38
thiago a pull request reduces to notifying someone that your work is ready in a given branch, at a given remote18:39
patrick85 left18:39
Vortex35 left18:39
thiago is your problem with making your changes available in that repository?18:39
paul_andrew joined18:39
apipkin ah okay :)18:39
guampa left18:40
maqr joined18:40
guampa joined18:40
guampa left18:40
paul_andrew left18:41
apipkin this was my process if that helps any https://gist.github.com/4e51054c0efd00f74d3518:42
and please let me know if i did it all wrong :)18:42
anish[1] left18:42
koltroll left18:43
apipkin and though pull requests are out of scope, the issue is that the pull request says there were 180 files changed and 80 commits18:43
so i'm not sure if there is a cleaner way to do this, or if that's as good as it gets18:43
_ikke_ apipkin: Then you made the pull request against the wrong branch18:44
pandeiro joined18:44
patrick85 joined18:44
specialGuest joined18:44
paul_andrew joined18:45
paul_andrew left18:45
fly9 left18:46
fly9 joined18:46
Sigma left18:46
juvenal left18:47
revagomes joined18:48
ipalaus left18:49
apipkin ah okay. i'll take another look at it and see where i went wrong. thanks guys/gals18:49
ipalaus joined18:49
juvenal joined18:50
EugeneKay Women are not gits. They're gitesses18:50
_ikke_ lol18:51
Where thit that came from?18:51
revagomes left18:52
artnez joined18:52
EugeneKay I just made it up18:52
jgoss joined18:54
guampa joined18:55
paul_andrew joined18:56
Sigma joined18:56
_ikke_ Obviously18:56
tigris_ left18:57
paul_andrew left18:57
AdrienBrault joined18:57
fisted_ left18:59
Advocation joined19:00
mjt that's inspired by the !hello message i guess19:00
gitinfo [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice.19:00
rcu left19:00
fisted joined19:00
EugeneKay I think I wrote that19:01
uri111 joined19:01
paul_andrew joined19:01
paul_andrew left19:01
chimay left19:01
mjt so to be politically correct you have to add "and gitesses" there :)19:01
_ikke_ EugeneKay: You wrote the seccond version. V3 was written by SethRobbinson19:01
Hasbro joined19:01
uri111 left19:02
_ikke_ SethRobertson*19:02
Hasbro left19:02
Hasbro joined19:02
apipkin left19:03
EugeneKay Sounds right.19:03
_ikke_ ftr, I wrote V119:03
But that was different19:03
EugeneKay But that one didn't mention "a place full of helpful gits"19:03
_ikke_ nope19:04
axiom92 joined19:05
brenden1 left19:06
hwrd|work joined19:07
devth left19:07
rgsteele left19:07
axiom92 left19:08
zeppo left19:10
paul_andrew joined19:12
valtih left19:12
paul_andrew left19:13
doorp joined19:14
zeppo joined19:14
doorp left19:15
dorp joined19:15
keltvek left19:15
tjholowaychuk left19:15
dorp When I "git add -A ." ... it actually reads each and every file? Or only the files properies, timestamps/length comparison?19:16
I've read the manual, but I can't find an option to force by-content mode?19:16
cmn it tries to avoid reading in the file19:16
donri joined19:16
thiago it does a timestamp comparison first19:16
if the timestamp differs from the index, it hashes the file to check if it's the same19:17
dorp I think I have a scenario where git add wouldn't add anything because the file has the same length and modified-timestamp19:17
Is it optional to make git add to read all the files contents for comparisons?19:17
mmattice why wouldn't the timestamp be getting updated?19:18
IrcBotBundle joined19:18
zastaph joined19:18
thiago exactly: why is the timestamp the same?19:18
dorp I'm trying an automated script for building a branch, while the export process is very very fast on a SSD, which produces many files with the exact same timestamp19:19
So either I add a "sleep", which is nasty... or start putting random last-mod stamps, which is nasty never-the-less :\19:20
bizhanMona left19:20
neunon_ joined19:20
dorp So I guess git-add can't evaluate the file contents?19:20
keltvek joined19:20
mmattice why would git need to add anything for a build?19:20
devth joined19:21
Kramer_ joined19:21
shruggar joined19:21
dorp mmattice: Think of something like a conversion from non-git branch, to a git-branch, so I'm trying to re-build revisions as a git branch from an external non-git source19:21
neunon_ left19:21
Davey left19:22
Kramer_ left19:22
dorp mmattice: It's not a "build" as-in compile/make, but actually "creating" the branch with preexisting revisions19:22
Shusshu joined19:22
uri111 joined19:22
Shusshu left19:22
thiago dorp: file timestamps record nanosecond resolution19:22
uri111 left19:22
bizhanMona joined19:23
converge left19:23
Sigma left19:24
Davey joined19:24
IrcBotBundle left19:24
Eridius joined19:25
dangerousdave joined19:25
dorp thiago: nanosecond? it's not depended on the util / filesystem?19:25
converge joined19:25
someoh43 joined19:27
dr_lepper left19:27
doherty I've been doing `git merge -r --no-merge | grep stuff` to find relevant and un-merged branches. How do I see the changes that remain to be merged between one such branch and master?19:27
iocor left19:27
thiago dorp: sure, it depends on the fs19:28
dorp: but fast systems compiling is the reason why milliseconds are stored since the 1990s19:28
brenden1 joined19:28
keltvek left19:28
thiago if your system is fast enough that you can modify-commit-modify within 1 second, you should really have a modern fs19:29
OMGOMG 2 Modern view19:29
3 See also19:29
erichynds left19:30
dorp Or a very small repo, high-performance ssd, etc etc19:30
axl_ left19:30
iocor joined19:31
someoh43 left19:31
avpx joined19:31
chuckhar_ joined19:32
srayner joined19:32
mewm left19:32
keltvek joined19:32
cmn dorp: use update-index instead19:32
that one is for scripts and lets you control parts of it19:33
Kramer_ joined19:33
dr_lepper joined19:33
dr_lepper left19:33
dr_lepper joined19:33
Kramer_ left19:34
harshpb left19:34
Kramer2718 joined19:34
dorp cmn: Thanks, I'm reading about it19:35
harshpb joined19:35
chuckharmston left19:35
Kramer2718 left19:36
patrick85 left19:38
kevwil joined19:38
harshpb left19:39
hwrd|work left19:39
harshpb joined19:39
linduxed i've got a submodule placed under .foobar, and i want to move it to .barfoo. When i try to do "git mv" i get "fatal: source directory is empty, source=.oh-my-zsh, destination=.zprezto"19:41
how would i best go about doing this?19:41
chrisgeorge left19:42
specialGuest left19:42
NfNitLoop why are you putting submodules in hidden directories? That seems dubious...19:42
dardevelin joined19:43
sanmarcos left19:43
NfNitLoop Have you tried adding the submodule in the new location and removing it from the old one?19:44
(I don't see a git submodule mv, unfortunately.)19:44
tjholowaychuk joined19:44
SidGBF joined19:44
specialGuest joined19:44
paul_andrew joined19:45
rue left19:45
harshpb left19:46
paul_andrew left19:46
rue joined19:46
harshpb joined19:46
SidGBF http://pastebin.com/M02wQgMn guys, Im trying to send some stuff to a new (bare) repo. But Im missing something, can someone help me?19:47
EugeneKay linduxed - I would rm the old location and add the new one19:47
Given as that's all that `git mv` does, it is pretty git-y.19:47
cworth left19:47
kvanderw joined19:48
specialGuest left19:49
specialGuest joined19:49
someoh43 joined19:50
paul_andrew joined19:50
paul_andrew left19:50
bigmeow Git push: fatal: Out of memory, malloc failed, why?19:51
http://stackoverflow.com/questions/11135764/git-push-fatal-out-of-memory-malloc-failed19:51
linduxed EugeneKay: ok19:52
thiago bigmeow: because you're out of memory19:52
bigmeow: malloc failed, so it can't continue19:52
EugeneKay bigmeow - because you don't have enough RAM. How big is your repo / the RAM of machines involved?19:52
thiago also: are you on 32-bit? And do you have large files inside the repo?19:52
cworth joined19:53
chuckharmston joined19:54
centipedefarmer joined19:54
srayner left19:55
Sym3tri joined19:55
Advocation left19:55
shruggar left19:55
etcetera left19:55
chuckhar_ left19:56
Advocation joined19:57
mewm joined19:57
someoh43 left19:57
mdw left20:00
bigmeow EugeneKay: linux kernel, 1.2G20:00
EugeneKay Haha yeah20:01
Get more RAM. ;-)20:01
yardenactorquemada20:01
bigmeow EugeneKay: git is kind of hell, why so much memory is needed?20:01
EugeneKay Because git is checking the checksums of all files in the repo at clone time20:01
The fact that it mallocs the entire thing is inefficient, but blame the git who wrote it. Patches welcome ;-)20:02
RaceCondition left20:02
cmn it needs to hash and delta a lot of objects20:02
which means that it needs to keep them in memory20:02
axl_ joined20:02
john_anderson joined20:03
Milossh left20:03
_adnasa_ joined20:03
_adnasa_ left20:03
Advocation left20:04
dsantiago left20:04
_adnasa_ joined20:04
etcetera joined20:04
harshpb left20:04
EugeneKay For "most" repos it isn't a problem because no sane person would have a 1GB repo. But linux.git is.... popular.20:04
Milossh joined20:05
RaceCondition joined20:05
Milossh left20:05
mdw joined20:05
Nugget "Here's a nickel, kid, go buy yourself a better computer."20:05
abackstrom can i replay a series of commits, kinda like a rebase that stops after every commit is applied?20:06
Hasbro left20:06
Milossh joined20:06
canton7 what do you want to do when it stops?20:06
thiago abackstrom: git cherry-pick each commit20:06
gun-lpt left20:06
thiago abackstrom: just write a script20:06
Milossh left20:06
abackstrom canton7: run my integration tests, i want to see which commit is breaking the tests20:06
canton7 or you can rebase -i and s/pick/edit?20:06
abackstrom, man git-bisect20:07
gitinfo abackstrom: the git-bisect manpage is available at http://git-scm.com/docs/git-bisect.html20:07
canton7 we have tools for that :)20:07
SidGBF :-/20:07
Milossh joined20:07
abackstrom canton7: thank you20:08
mishok13 joined20:08
Milossh left20:08
Milossh joined20:09
srayner joined20:09
Advocation joined20:10
SidGBF YAY!!!20:10
Advocation left20:11
RaceCondition left20:11
canton7 SidGBF, got it?20:11
otherwise, pastie the output of 'git branch'20:12
lb joined20:12
axl_ left20:12
koosha joined20:12
patrick85 joined20:13
koosha Do the Git community guys have a bug tracking system to see open bugs and write patch for them?20:13
RaceCondition joined20:13
canton7 koosha, we use the mailing list. [email@hidden.address]20:14
koosha canton7: mailing list is a bit weird for bug traking!20:14
canton7 koosha, there's a very convincing mail from the maintainer somewhere on the subject. anyone got a link?20:14
fly9 left20:14
fly9 joined20:15
koosha left20:15
hwit joined20:15
lb btw, who's maintaining git ?20:16
milki how do you bug trake?20:16
canton7 lb, Junio C Hamano20:17
lb thanks20:17
canton7: thank you20:17
gfontenot joined20:17
Samual left20:18
mdw left20:18
Samual joined20:18
Samual left20:18
Samual joined20:18
Fullmoon left20:18
skyf_ left20:18
Fullmoon joined20:19
doherty left20:20
bc does setting core.excludesfile to ~/.gitignore make /project/.gitignore no longer looked at?20:21
skyf left20:22
Sigma joined20:23
bluj joined20:24
beneggett joined20:25
bluj help? i have a second remote added in my repo. i have one branch already which tracks a branch of this second remote. i'm trying to do a new "git checkout -b newbranch -t secondremote/newbranch" but it isn't aware of this branch at the second remote? if i do a "git branch -a" it's not aware of any branches on this second remote except the one i'm already somehow tracking20:26
canton7 bluj, git fetch secondremote ?20:27
also, that -t isn't needed: it's implied20:27
centipedefarmer left20:27
mr6 bluj: if after git fetch secondremote it still doesn't show up in git branch -a you haven't pushed the branch yet20:27
bluj canton7: tried, "git branch -a" still just shows me the branch on the secondremote i'm currently tracking (but i dont want that one)20:27
pushed the branch? hmm...20:28
aircan left20:28
mr6 bluj: git push secondremote newbranch:newbranch20:28
canton7 bluj, git config remote.secondremote.fetch ?20:28
tatsuya_o joined20:28
bluj canton7: +refs/heads/branchidontcareabout:refs/remotes/brett/branchidontcareabout20:29
bloony- left20:29
canton7 bluj, aha, it's stange how often this problem crops up20:29
bluj mr6: i don't get why i need to push anything (and where shuld that be executed?) the branch exists on the secondremote, and it currently 1 commit ahead of the upstream branch IT tracks20:29
canton7 as you can see, git's configured to only fetch that branch20:29
bluj, change that to ~refs/heads/*:refs/remotes/brett/*20:29
bluj canton7: thanks, sec20:30
hwit left20:30
canton7 oops +refs/heads/*:refs/remotes/brett/*20:30
Ryback_ left20:30
mr6 bluj: fair enough, but you can see how that could happen if you didn't have the branch on secondremote20:30
bluj canton7: thanks that worked. how did this happen? i don't use secondary remotes very often, did i create the remote incorrectly or something?20:31
mdw joined20:31
canton7 bluj, how did you add that remote? git remote add -t ?20:31
mdw left20:31
bluj canton7: git remote add brett ssh://ip/home/brett/git/repo20:32
if i recall20:32
wrong, i did use -t actually, oops!20:32
canton7 I bet it was git remote add -t branchyoudontcareabout brett url :P20:32
bluj you bet right.20:32
canton7 that's why ;)20:32
bluj thank you20:32
maestrojed joined20:32
mr6 hah so why use -t if you don't know what it does?20:33
maestrojed left20:33
aircan joined20:34
bluj mr6: i use it on "checkout -b" all the time because i know what it does, even though as mentioned above it may not be required. looks like i just made a mistake here20:34
savr joined20:35
savr hi20:35
axl_ joined20:35
mr6 bluj: np just curious as i hadn't ever used that flag to add remote20:36
Sigma left20:36
_iron left20:36
mr6 bluj: wondered if I was missing out on some extra benefit heh20:36
savr I previously merged from a development branch from an upstream remote20:37
zeppo left20:37
savr I now want to revert back down to the upstream master20:37
zeppo joined20:37
savr is it safe to git merge upstream/master ?20:37
zeppo left20:38
converge left20:38
chuckhar_ joined20:39
cagedwisdom joined20:39
geekbri left20:40
TheJH left20:41
chuckharmston left20:41
jn_ joined20:41
bartek left20:42
converge joined20:42
savr ?20:44
lb savr: you want to get back to the state of upstream/master?20:44
savr yeah20:44
SidGBF left20:44
axl_ left20:44
mishok13 left20:44
savr and keep my one commit20:44
lb then merge is not the way to go20:44
savr but I can commit it again20:45
lb so you want to rebase your commit on top of upstream/master?20:45
savr I guess so20:47
chrisgeorge joined20:47
s0ber left20:48
lb man git rebase20:49
gitinfo the git-rebase manpage is available at http://git-scm.com/docs/git-rebase.html20:49
s0ber joined20:49
Vortex34 left20:50
ShooterMG left20:50
zastern joined20:50
mklappstuhl joined20:53
ShooterMG joined20:53
etcetera left20:53
incognit0 left20:53
xiaotian joined20:54
bartek joined20:54
imachuchu left20:54
kevwil left20:55
towski joined20:56
savr thanks lb20:57
irqq left20:57
berndj is there a way to get a script i wrote to answer y/n to git add -p?20:57
jcao219 joined20:57
rubbish joined20:57
freeed left20:58
rubbish left20:58
_ikke_ berndj: Maybe expect20:59
maestrojed joined21:00
_ikke_ http://linux.die.net/man/1/expect21:00
shruggar joined21:00
patrick85 left21:00
berndj i hadn't thought of expect(1), thanks21:00
shruggar left21:00
axl_ joined21:01
berndj it's (should be!) an order-only diff, in case you're wondering, but beyond what sort(1) on its own could decide21:02
etcetera joined21:02
rking What kind of Twilight Zone am I in if I see "M"s for "git status", but "git diff --cached" and "git diff" show nothing?21:03
xplat joined21:03
rwestphal left21:03
maestrojed left21:03
ddelrio1986_ joined21:03
rking Aww, crud. Has something to do with my ~/.gitconfig21:03
FauxFaux Almost certainly autocrlf fucking you.21:03
Zenmaker_ left21:03
Zenmaker_ joined21:04
ShadeTornado left21:04
rking I didn't have -X in pager = less -FR21:04
tatsuya_o left21:04
rking What are those flags supposed to be? Gentoo fubars it by setting $LESS21:04
Zenmaker__ joined21:04
mritz left21:05
rking $LESS is set to -R -M --shift 5, so I have to set pager = less -_something_ to make git work as it wants.21:05
ddelrio1986 left21:05
etcetera left21:05
rking I know -R has to be in there to get colors, and -F makes sense as quit-if-one-screen, and apparently -F without -X is pathological in that it shows nothing.21:06
sebastorama left21:06
etcetera joined21:06
bartek left21:06
etcetera left21:06
Sym3tri left21:07
spec__ left21:08
etcetera joined21:08
YoMomma joined21:08
Zenmaker_ left21:09
Element9 left21:09
tplaner_ left21:09
maestrojed joined21:09
tinti left21:10
toabctl left21:10
axl_ left21:11
etcetera left21:12
xiaotian left21:12
xiaotian joined21:12
xiaotian left21:13
torjus_ left21:13
converge left21:13
xiaotian joined21:13
ncd|leeN left21:14
cannonball left21:14
etcetera joined21:14
ddelrio1986_ left21:15
axl_ joined21:15
aguynamedben joined21:17
gusnan joined21:18
aguynamedben left21:19
jjbohn joined21:19
Austin__ left21:21
aguynamedben joined21:21
ipalaus left21:24
_huoxito joined21:24
BSaboia hello everyone. how do I completly removed a file from being tracked when i push? ie.: in my local repository, i created a file, then i deleted it in a posterior version. i do not want this file to go to the repository when i push. what should i do?21:26
les_sylvains left21:26
thiago BSaboia: have you pushed the commit that added it in the first place?21:27
BSaboia no21:27
hellopat left21:27
thiago have you done any merges since you added it/21:27
BSaboia thiago, no21:28
everything is only local since them21:29
but i want to stop tracking the file, and delete it from my local history21:29
srayner left21:29
ceradon-awayeuphoria21:30
drizzd joined21:31
etcetera left21:31
thiago BSaboia: git rebase -i firstcommit~21:34
including the ~21:34
then edit that commit and remove the file21:34
martinjlowm left21:34
iocor left21:34
BSaboia thiago, you mean by fisrt commit the hash of the commit that i added the file?21:37
thiago yes21:37
or any commit before it21:37
BSaboia before? but if i do it before, the file will appear nevertheless?21:38
kcj joined21:38
cmn with any commit before it, you could be rewriting published history21:38
savr left21:38
BSaboia i'm a little bit confused, let me see if i understand everything. i am in commit N, lets say. i added the file in some previous commit I can't recall, like N-y. I deleted it already in N-1. my expected behaviour is that when i push, that file should be, to git, as if i never added it... it never existed21:40
so, i should rebase to a commit where this file does not exist yet21:40
but then, how would i delete it?21:40
thiago BSaboia: that's not the expected behaviour21:40
if you push now, without rewriting history, the file will be pushed21:40
if you want to remove it from history, use rebase21:41
BSaboia by expected behaviour i mean what i want to do21:41
i know that if i push21:41
thiago edit the commit that added the file so it will never have been added21:41
BSaboia it will be there21:41
thiago if you modified the file in any commits, they'll conflict21:41
BSaboia ok21:41
thiago the deletion at the end will disappear because you'd be deleting a file that doesn't exist21:41
BSaboia i never modified it, so no worries here21:41
flavius left21:43
opus left21:43
zastaph left21:43
ngirard left21:43
microcolonelkiken21:44
youngblood joined21:44
lfaraone__ left21:46
lustucru joined21:46
mewm left21:46
lfaraone__ joined21:46
spaceonline left21:47
chrisgeorge_ joined21:47
chrisgeorge_ left21:47
chrisgeorge_ joined21:47
opus joined21:49
alberto56 joined21:49
chrisgeorge left21:51
lfaraone__ left21:52
mklappstuhl left21:53
dvide left21:53
sgambino left21:54
YoMomma left21:54
whitman left21:56
alexisabril left21:57
BiggFREE joined21:58
lfaraone__ joined21:59
euphoriaceradon-away21:59
bapa left21:59
kermit left22:01
dr_lepper left22:01
youngblood left22:02
dr_lepper joined22:02
dr_lepper left22:02
dr_lepper joined22:02
wanders_ left22:04
bapa joined22:04
Chillance left22:05
kermit joined22:05
mklappstuhl joined22:06
robbyoconnor joined22:06
sfrank1 joined22:07
sfrank1 left22:07
Destos left22:07
lavaman left22:09
sfrank left22:09
BSaboia thiago, using this git log --diff-filter=D --summary i was able to find the hash for the commit i've deleted the file22:09
YoMomma joined22:10
dangerousdave left22:10
pdelvopdelvo|afk22:10
oakdog8_oakdog822:10
YoMomma left22:10
thiago BSaboia: use filter A and find the commit where you added the file22:10
YoMomma joined22:11
wanders joined22:12
ehsan left22:12
madewokherd joined22:12
ph^ left22:12
stepnem left22:13
Chillance joined22:13
BSaboia thiago, done22:14
pdelvo|afkpdelvo22:14
thiago now rebase -i from one commit before22:15
BSaboia using ~1?22:15
thiago yes22:16
skyf joined22:16
drizzd left22:16
ketas left22:17
BSaboia ok, and then?22:17
pdelvopdelvo|afk22:18
chrisgeorge_ left22:18
juvenal left22:18
chrisgeorge joined22:18
pdelvo|afkpdelvo22:19
YoMomma left22:19
fly9 left22:20
mklappstuhl left22:21
eintw1ck joined22:21
eintw1ck can I get help on how to use git here22:22
thiago no, we just talk about svn and hg :-)22:22
eintw1ck Just checking22:22
sebastorama joined22:22
Vert joined22:23
eintw1ck I got a repo at github.com/eintw1ck/We-Browser-Code-Only.git22:23
nomadmonad left22:23
eintw1ck I've done the git init on my local machine what next22:23
nomadmonad joined22:24
Swathe left22:24
diegoviola is there a way to check what commits i haven't pushed yet to my remote repo?22:24
cbreak you should git clone the original eintw1ck22:24
if you want to stick with your inited one, git remote add, then fetch, then checkout, and so on22:24
diegoviola compare what commits i have in my local repo with my remote one, etc22:24
cbreak but clone does all that in one command22:24
diegoviola: git remote update22:24
eintw1ck I've done git remote add thingy22:25
cbreak diegoviola: and then git log @{u}..22:25
eintw1ck But then it says invalid repository22:25
diegoviola thanks22:25
cbreak eintw1ck: maybe it's invalid :)22:25
eintw1ck: do a git ls-remote on the URL22:25
eintw1ck Then I cd into my local git repo and it kinda works22:26
It was working on my mac but now im on my iPhone it doesn't really work22:26
cmn then? you need to do git operations in git repos22:26
TeckniX left22:27
cbreak eintw1ck: as I said above, you're better off cloning22:27
ketas joined22:27
eintw1ck Ok22:27
eintw1ck left22:27
t0rc joined22:28
iocor joined22:29
dr_lepper left22:32
eintw1ck joined22:33
tehgeekmeister left22:33
glennpratt left22:34
jbub left22:36
eintw1ck cbreak: I did it like you said and this is what I got22:39
error: Cannot access URL https://github.com/eintw1ck/We-Browser-Code-O nly.git/, return code 77 error: failed to push some refs to 'https://github.com/eintw1ck/We-Bro wser-Code-Only.git'22:39
pantsman left22:39
cbreak push?22:39
you did not do what I said.22:39
also, you have random spaces in your URL22:39
eintw1ck I did22:39
Weird22:40
markatto joined22:40
eintw1ck I'll fix that22:40
neurodrone left22:40
s0ber left22:40
Protux left22:40
Olipro left22:40
cbreak > git ls-remote https://github.com/eintw1ck/We-Browser-Code-Only.git22:40
works for me22:40
s0ber joined22:41
chuckhar_ left22:41
neurodrone joined22:41
Chillance left22:41
eintw1ck left22:41
meLon left22:42
eintw1ck joined22:42
eintw1ck cbreak: It works for me too I don't know why I cant push22:43
DanyO83 joined22:43
cbreak pushing is a different issue22:43
ideally you'd use the ssh URL for that22:43
eintw1ck Oh22:43
Why?22:43
cbreak although I think github uses smart HTTP with push support22:43
aircan left22:44
axl_ left22:44
eintw1ck I did it 4 hours ago on my mac maybe it's the version of git?22:44
bloony- joined22:44
eintw1ck Could it be?22:45
cbreak is yours really ancient?22:45
git had push support since many years.22:45
eintw1ck No I got the latest iPhone compiled git22:45
Olipro joined22:45
cakehero left22:45
ShooterMG left22:46
cbreak missing proper libcurl?22:46
eintw1ck Got it22:46
Well the iPhone version22:46
meLon joined22:46
jbub joined22:46
meLon left22:46
meLon joined22:46
cbreak well, try ssh.22:47
eintw1ck It doesn't seem to work22:47
pandeiro left22:47
eintw1ck I've tried22:47
afuentes left22:47
lavaman joined22:47
skyf left22:47
eintw1ck ssh (the ssh URL they give) and it returns an invalid URL22:47
cbreak sounds like your libraries or git is broken.22:48
it should not classify URLs as invalid if they are valid22:48
eintw1ck most likely git I'll speak to iPhone jailbreak people as this is more iPhone talk but I when it get git working I'll come back22:49
dsantiago joined22:51
skyf joined22:51
Synthead left22:51
sebastorama left22:53
dr_lepper joined22:53
dr_lepper left22:53
dr_lepper joined22:53
metcalfc joined22:53
billyoc` joined22:54
billyoc` left22:55
billyoc left22:55
gfontenot left22:56
skyf left22:56
skyf joined22:57
opus left22:57
macabre left22:57
jjang joined23:00
_adnasa_ left23:00
lb left23:01
Olipro left23:03
xiaotian left23:03
opus joined23:03
jargon- left23:05
pdelvopdelvo|afk23:05
jn_ left23:06
simesy joined23:07
zastern left23:08
thiago left23:09
Olipro joined23:10
adamm joined23:10
mastro left23:10
ehsan joined23:10
dzonder left23:11
simesy left23:11
simesy joined23:12
cakehero joined23:12
lacrymology left23:12
Olipro left23:14
ChristopheT joined23:15
gigamonkey left23:16
gigamonkey joined23:18
jjbohn left23:18
SirCmpwn left23:19
tinti joined23:23
ph^ joined23:23
maestrojed left23:24
Olipro joined23:24
Davey left23:25
axl_ joined23:27
ph^ left23:27
nowhere_man joined23:29
akiress left23:29
ChristopheT left23:32
dfr|mac joined23:32
boombatower left23:32
Swathe joined23:33
osmosis joined23:35
chrisgeorge left23:36
eintw1ck left23:36
cakehero left23:37
Swathe left23:37
specialGuest left23:38
Esa_ joined23:40
cakehero joined23:42
klj613 joined23:42
acl_ joined23:44
opus left23:44
dsantiago left23:46
v0n left23:46
etcetera joined23:47
AdrienBrault left23:47
BiggFREE left23:47
axl_ left23:48
glennpratt joined23:49
hyperair left23:50
robbyoconnor left23:50
Goplat joined23:51
kvanderw left23:52
opus joined23:54
cybersphinx joined23:55
BSaboia left23:56
AlbireoX`Laptop left23:56
dfr|mac_ joined23:57
lavaman left23:57
dfr|mac left23:57
jdav_gone joined23:57
dsantiago joined23:57
jjang left23:57
opus left23:57
rchavik joined23:58
rchavik left23:58
rchavik joined23:58
the_cybersphinx left23:58
jdav_gon` left23:59

Logs Search ←Prev date Next date→ Channels Documentation