IRCloggy #git 2014-03-02

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.

2014-03-02

o11c just make the change on the oldest branch, and merge into each newer one00:00
jon-mac I want to commit a few things upstream, and then I'll eventually end up merging them twice00:00
if i cherry pick a commit to upstream, then the next time i merge in upstream changes, i'll have the change duplicated00:01
thiago then don't cherry-pick00:01
commit on the oldest and merge up00:01
jagob left00:01
o11c jon-mac: make the commit upstream first00:01
jon-mac thats not possible00:01
o11c then when you merge upstream, it's only once00:01
eVRiAL left00:01
johnkevinmbasco left00:01
jon-mac its more of a retroactive process00:01
joelroa left00:03
sbogg left00:03
dreiss__ left00:04
jluc left00:04
vkrest joined00:05
Zaknefain joined00:05
Zaknefain left00:05
hfphfp`away00:06
srji_ joined00:09
Kayra joined00:09
MachineX left00:10
Kayra left00:11
maslowbeer joined00:11
Kayra joined00:11
Naeb left00:12
srji left00:12
LucaS05 joined00:13
kriks left00:14
ngladitz left00:14
cff left00:15
Kayra left00:16
armyriad left00:17
leninmhs2 left00:18
noxd left00:19
stepa joined00:19
treaki__ joined00:20
skyflash joined00:20
treaki_ left00:21
Sly1986 joined00:22
whomp_ joined00:24
kenneth left00:24
whomp_ i accidentally added a huge folder, committed, then removed the folder and committed again00:24
how do i make git pretend like it was never added, for when i push?00:24
Hello71 !delete00:24
gitinfo [!branch_delete] Deleting a branch is easy. `git branch -d branchname` (or -D). However, this will NOT delete the branch upstream, that requires `git push --delete origin branchname`. However, this will NOT delete remote tracking branches. EACH USER must `git remote prune origin`, but if any users have local branches, they must likewise run `git branch -d branchname` (or -D)00:24
arif-ali left00:24
Hello71 hm...00:24
https://help.github.com/articles/remove-sensitive-data00:24
looper_ left00:25
whomp_ Hello71, this is the master branch. wouldn't i lose everything before my latest?00:25
Hello71 !filter_sensitive00:25
gitinfo You can use filter-branch to remove sensitive data from a repository's history. http://help.github.com/remove-sensitive-data/00:25
el3ctron left00:25
thiago whomp_: did you commit --amend when you committed again?00:26
whomp_ thiago, no00:26
skyflash left00:26
whomp_ `git rebase -i HEAD~2` seems legit00:26
thiago yes00:26
o11c whomp_: if it's recent, just 'git rebase' .... yeah, that00:26
whomp_ i just need to "delete" a commit00:26
thiago no00:27
whomp_ ?00:27
thiago well, try it00:27
o11c whomp_: no, you need to push an older commit over the remote branch00:27
thiago if there are conflicts, you'll need to fix them00:27
rawtaz whomp_: have you done anything else after these two commits, and are they consecutive?00:27
FortySix2 left00:27
whomp_ rawtaz, i haven't done anything significant. i just want to delete the commit before last00:27
rawtaz never mind, someone just recommended rebase :)00:27
jaequery left00:28
rawtaz whomp_: that doesnt answer any of those questions, but it doesnt matter anymore00:28
thiago and the last one too00:28
kenneth joined00:28
whomp_ error: could not apply d5a01b2...00:29
Gavrisimo joined00:29
slicknick joined00:29
whomp_ are there merge conflicts now?00:29
thiago yes00:29
did you remove both commits?00:29
hs366 left00:30
whomp_ thiago, no just one00:30
thiago that's the mistake00:30
now do git rebase --skip00:30
that will remove the second one too00:30
el3ctron joined00:31
whomp_ oh, so that actually removed the stuff the commit was affecting00:32
i just wanted to make it pretend like i hadn't committed at that point in time00:32
thiago you did00:33
now there's no record of you ever committing00:33
if you don't tell, no one will now :-)00:33
rawtaz at least not officially :-)00:33
but we know, don't we ;-)00:33
whomp_ haha00:33
but i have way fewer files now00:33
rawtaz whomp_: the stuff is still around in the reflog, so you can probably get them back if you want.00:34
whomp_ how? it's a lot of files00:34
rawtaz but you need to be very specific about what you want to do, so there aren't misunderstandings00:34
whomp_ ya know what... i'm just gonna use time machine XD00:34
rawtaz so right now you are back to the state before you made the commit where you added those files (assuming that and later commits are not gone)00:34
you dont need to use time machine00:35
whomp_ ok00:35
adurity joined00:35
Watabou joined00:35
o11c whomp_: didn't you *want* all the files gone?00:35
whomp_ doesn't seem that way though00:35
rawtaz doing so will mostly invalidate the efforts people in here made to help you and educate you on this00:35
whomp_ i wanted all of the files that existed only for the commit before last gone00:35
armyriad joined00:35
whomp_ ok well idk what to do now00:35
o11c whomp_: are you saying, "the commit before last" added *more* than just the files you wanted to remove?00:36
stepa left00:36
rawtaz whomp_: can you pastebin a copy of the log from before you rebased? so we can see what commits there was?00:36
whomp_ o11c, yes, many more00:36
stepa joined00:36
stepa left00:36
rawtaz whomp_: just relax, it's not gone. dont worry, and pay attention :)00:36
o11c okay, we can fix this now!00:36
Noldorin joined00:36
whomp_ education today: fear git00:36
el3ctron left00:36
o11c first, you need to hard-reset to before the rebase00:36
rawtaz whomp_: no. it is all still there00:36
jogos left00:36
o11c then you need to rebase -i and *squash*00:36
whomp_ feed me commands00:36
o11c okay, we'll need the output of 'git reflog'00:36
ntio joined00:37
whomp_ https://gist.github.com/michaeleisel/929996700:37
BadProphet left00:37
BadProphet joined00:37
el3ctron joined00:38
rawtaz and which ones are the commits you are talking about?00:38
o11c whomp_: is d5a01b2 the one where you did the removals?00:38
BadProphet left00:38
BadProphet joined00:39
LucaS05 left00:39
whomp_ i want to remove 102eb7e (the one before last) and idc about d5a01b2 (the last one)00:39
i could delete both if them if it'd be easier00:39
o11c no, you just told us you *don't* want 102eb7e gone00:39
because some of the files you do want us to keep ...00:39
whomp_ maybe i was unclear. when i say delete, i mean delete git's history of that commit having happened. or, it sounds like you want me to just delete the files that i don't want, which works for me but is more of a pain00:40
but i don't want to delete all of the changes from these commits, except regarding certain big files00:40
o11c whomp_: if we delete just the files, we can delete the history from there00:41
offby1 whomp_: sorry if someone has already said this, but: !fixup00:41
whomp_ whatever works00:41
gitinfo whomp_: 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:41
o11c but you did not give true information initially about wanting to drop the entire commit00:41
SegFaultAX left00:41
FortySix2 joined00:41
rawtaz this is so confusing. it's so unclear what you want to do whomp_. that is the problem here, not the git stuff/commands00:41
o11c whomp_: so, if d5a01b2 is the correct tree, do:00:41
whomp_ ok, i'm not here to discuss what i did or didn't do, and i'm not trying to blame anyone00:41
rawtaz we can fix about anything for ya, but not without understanding what you want to do00:41
o11c whomp_: git reset --hard d5a01b200:41
rawtaz elaborate :)00:41
SegFaultAX joined00:42
o11c whomp_: git rebase -i HEAD^^ (and change the second line from pick to fixup)00:42
FortySix2 left00:42
whomp_ to elaborate, there are a few big files which were around only for one commit, the second to last commit titled "created os x program". i don't want any record of them in the repo. i could see this being done by deleting any record of the commit but preserving the changes of the commit, or by deleting any record of the big files00:43
o11c whomp_: that is what my commands will do00:43
BadProphet left00:43
o11c 'git reset --hard d5a01b2' is undoing the mistaken attempt at removing them00:43
'git rebase -i HEAD^^' with fixup is actually removing them00:44
Trudko left00:44
o11c if there are any further changes after *that*, you can git commit --amend00:44
jon-mac whomp_: git obliterate00:44
whomp_ o11c, now i see the two commits before my two most recent, because of the commands i already entered. do you still want me to change the second line to 'fixup'?00:44
so i do the git reset first?00:45
marcjs left00:45
whomp_ now i need you to be a bit more clear00:45
o11c the reset must go first00:45
I am being perfectly clear00:45
Silmarilion left00:46
trewe left00:48
whomp_ ok, new lesson: fear git, trust #git00:49
thx for the help, everything works!00:49
rawtaz nice o11c00:50
angelsl left00:51
phuh left00:51
jon-mac whomp_: are they really gone from your index though00:51
thats the tricky part00:51
v1n joined00:52
whomp_ jon-mac, idc if they're gone from my .git folder (they're not)00:52
jon-mac ok00:52
whomp_ although it would free up 300 mb00:52
jon-mac sometimes you do care :p00:52
tmart joined00:52
o11c don't worry about removing them from .git, it will be automatically cleared in a month or 3 (I forget)00:53
the important thing is, they're gone from history, so they won't be pushed or pulled from htere00:53
jon-mac probably longer than 300:53
it becomes eligible in 300:53
o11c in order to remove them from .git, you'd have to break your reflog00:54
whomp_ i've done enough breaking for today00:54
koell joined00:55
lithiumjake left00:56
jftf joined00:56
Balliad left00:57
Balliad joined00:58
joelroa joined00:59
ntio left01:00
Zaknefain joined01:00
WaReZ left01:00
ntio joined01:00
joelroa left01:03
Zaknefain left01:04
fatalhalt left01:06
robustus left01:07
starkhallo left01:07
kloeri left01:07
jogos joined01:10
robustus joined01:10
recycle left01:10
recycle joined01:11
Kayra joined01:11
kloeri joined01:13
ciaranm joined01:13
m0viefreak joined01:14
Gamecubic left01:15
recycle left01:15
Kayra left01:16
sdouglas joined01:16
Sabbath joined01:17
javasox joined01:18
lithiumjake joined01:18
axsuul joined01:19
axsuul left01:19
ianmcorvidae joined01:19
MetalMatze left01:19
didi joined01:19
axsuul joined01:19
akiress joined01:19
vvetter left01:20
adurity left01:21
sdouglas left01:22
Sabbath left01:22
didi I have some feature branches for which the patches the upstream project did not yet apply or they won't apply but I still find them useful and want to use them myself. Is there a document that describes a possible work flow for this scenario?01:22
axsuul left01:22
o11c didi: probably just repeatedly rebase them01:23
axsuul joined01:23
ArcTanSusan joined01:23
axsuul left01:23
didi o11c: The thing is, I want to use multiple feature branches at the same time.01:23
peterschmidler_ Which private alternatives do you suggest to github?01:23
axsuul joined01:24
axsuul left01:24
axsuul joined01:24
axsuul left01:24
offby1 peterschmidler_: running gitolite on your own server?01:25
*shrug*01:25
rq60 joined01:25
javasox left01:25
pwnz0r joined01:25
offby1 peterschmidler_: what about github are you trying to avoid?01:25
peterschmidler_ offby1: cost, privacy01:25
BtbN Well, hosting stuff costs money01:26
offby1 gitolite solves both those problems.01:26
axsuul joined01:26
whitby joined01:26
peterschmidler_ BtbN: Yea01:26
mribeirodantas joined01:26
offby1 although to be fair, the "privacy" issue with github is theoretical only: I've never heard of github snooping into people's repositories.01:26
but it's true: they could.01:26
BtbN offby1, he propbly doesn't want to pay them for private repos.01:26
o11c didi: well, rebase them all on one feature branch, then rebase all the other feature branches on top of that? Or you could just merge I guess01:26
offby1 BtbN: maybe. He's here so he can clarify.01:27
o11c offby1: to be fair, they did have a security breach once01:27
bremner if money is no object, you could run github on your own server01:27
peterschmidler_ I can speak for myself ;)01:27
axsuul left01:27
offby1 if money were no object, I'd be in a swimming pool full of cheesesteaks01:27
ntio1 joined01:27
john2x joined01:27
peterschmidler_ Actually the privacy thing is more of a concern.01:27
o11c peterschmidler_: it depends on exactly what you want. If all you want is a central repo, or whether you want a web interface01:27
axsuul joined01:28
axsuul left01:28
javasox joined01:28
offby1 peterschmidler_: I'd assume that would rule out any repository that you don't host yourself, on hardware in your own data center.01:28
koda left01:28
offby1 which basically means gitolite.01:28
peterschmidler_ o11c: A central repo would be enough to start with. I can switch to github easily at anytime, right?01:28
slicknick left01:28
Lemony left01:28
offby1 (or Github Enterprise if you trust them enough to write decent non-open-source software)01:28
axsuul joined01:28
thegattaca left01:28
axsuul left01:28
BtbN well, gitolite has no interface at all, which is the main reason to use github.01:28
offby1 BtbN: it has an interface! Just not a GUI one :)01:29
BtbN Not realy, no01:29
bremner by that reasoning git has not interface01:29
BtbN it has gitweb01:29
bremner sigh.01:29
ntio left01:29
leninmhs2 joined01:30
axsuul joined01:30
didi left01:30
ntio1 left01:30
ws2k33 left01:31
jon-mac peterschmidler_: you should really be looking at github enterprise or atlassian stash probably01:31
vkrest left01:31
thiago gitolite can use gitweb01:31
offby1 bremner: you have to admit: sitaram's stubborn insistence on purging gitweb from any box that runs gitolite is a _bit_ bizarre.01:31
offby1 whistles innocently01:31
axsuul left01:31
thiago therefore, gitolite has an interface01:31
axsuul joined01:31
pfg left01:31
bremner offby1: go back to your cheesesteaks01:31
offby1 bremner: oh thank you01:32
axsuul left01:32
Orbitrix joined01:32
Orbitrix left01:32
offby1 bets bremner has never had a cheesesteak. Poutine-n-beef doesn't count01:32
bremner offby1: also, you don't _have_ to give sitaram root on your server. Although he generally tidies things up.01:32
Orbitrix joined01:32
offby1 bremner: I don't? But he said it was the only way I could stop the spam01:32
tomengland left01:32
peterschmidler_ Thanks for your input, guys!01:33
Lemony joined01:33
axsuul joined01:34
axsuul left01:34
axsuul joined01:34
axsuul left01:35
Dougie187 left01:35
ErKa joined01:35
axsuul joined01:35
noisewaterphd_ joined01:35
Dougie2187 left01:35
axsuul left01:36
godgodgodgo left01:36
ghostlines left01:36
robbyoconnor joined01:36
peterschmidler_ How easy would it be to switch from gitolite to e.g. github enterprise?01:36
axsuul joined01:36
axsuul left01:37
axsuul joined01:37
axsuul left01:37
thiago easy. Just push your repositories.01:37
Gamecubic joined01:38
axsuul joined01:38
axsuul left01:38
thiago I assume that the GitHUb people will set everything up for you. That's why you pay them, right?01:38
javasox left01:38
peterschmidler_ What about githaven?01:38
axsuul joined01:38
axsuul left01:39
specious joined01:39
axsuul joined01:40
thiago never heard of it01:40
axsuul left01:40
el3ctron left01:40
axsuul joined01:40
pr0ton left01:41
axsuul left01:41
peterschmidler_ thiago: Never mind, but if you're intereted: https://news.ycombinator.com/item?id=311659401:42
RofricTheBearded joined01:43
axsuul joined01:43
axsuul left01:44
axsuul joined01:44
pr0ton joined01:45
milki While I still use it for my own personal use I am no longer developing GitHaven so it has been released under the AGPL in the hope that it can be useful for others.01:45
cwillu_at_work left01:45
milki sounds like a defunct project01:45
axsuul left01:45
boombatower joined01:45
peterschmidler_ milki: yea01:45
axsuul joined01:46
_iron left01:46
axsuul left01:46
axsuul joined01:46
axsuul left01:47
peterschmidler_ What about gitlab?01:47
axsuul joined01:47
axsuul left01:47
milki shrugs01:48
milki i only use gitolite01:48
leninmhs2 left01:48
milki and github -.-01:48
axsuul joined01:48
axsuul left01:48
axsuul joined01:49
axsuul left01:49
thiago gitlab has apparently become very good01:49
KDE is trial-running it01:49
axsuul joined01:50
axsuul left01:50
jalmeida joined01:50
bremner "i am no longer developing this so I am open sourcing it" -- unclear on the concept.01:51
robbyoconnor left01:51
axsuul joined01:51
axsuul left01:51
robbyoconnor joined01:51
shruggar_ joined01:51
lifelike left01:52
shruggar left01:52
thiago yeah01:52
tvw left01:52
axsuul joined01:52
axsuul left01:52
jftf left01:52
axsuul joined01:52
axsuul left01:53
francesca joined01:53
shruggar_ left01:53
Zaknefain joined01:54
francesca hello, I would need some help to get started with git.01:56
offby1 you would?01:56
Nicholas_Rishel joined01:57
bremner francesca: go ahead and ask some questions. If nothing else we can point you to some tutorials and free books01:57
axsuul joined01:57
francesca bremmer: thanks, How do I access and change my info, name and email address?01:58
robbyoconnor left01:58
offby1 git config --global user.email "francesca@wherever.com"01:58
francesca: I'm pretty sure it will holler at you if you've left it blank01:58
francesca offby1: thank you01:59
Zaknefain left01:59
offby1 similarly for user.name I think01:59
PLejecknuck01:59
offby1 or you can just edit ~/.gitconfig directly, which is what I do01:59
joelroa joined02:00
francesca offby1: I found it, how can I change the email address, and the name?02:01
kenneth left02:01
francesca off02:01
offby1 just edit the file in the obvious way.02:01
OR run the "git config" command.02:01
Either works.02:02
francesca offby1: ok02:02
robbyoconnor joined02:02
vkrest joined02:02
francesca offby1: git config I get the options, but how do I access the file?02:03
offby1 francesca: sorry, I couldn't parse that.02:03
!repro02:03
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting.02:03
vkrest left02:03
francesca offby1: I still do't know how to change the email address02:04
joelroa left02:05
sitaram offby1: what do you mean "purging gitweb from any box that runs gitolite"?02:06
oojacoboo left02:06
offby1 sitaram: a feeble attempt at humor02:06
Balliad left02:06
offby1 they guy had said "gitolite has no interface" and I was trying to demonstrate the silliness of that statement02:06
offby1 loosens his collar with his index finger02:06
offby1 francesca: try one of my suggestions; if it doesn't do what you expect, paste a transcript so we can look at it.02:07
sitaram offby1: I know it was humor, I was trying to actually understand the joke!02:08
offby1 wasted effort sir02:08
jhulten_ left02:08
Hello71 I think the joke is that "obviously you won't have an interface if you delete the interface"02:08
adurity joined02:09
francesca offby1: another silly question but I need to get started ... how do I copy text on IRC???02:09
sitaram Hello71: I *do* have an interface. And it's GUI too... it's called "gvim"02:09
offby1 Hello71: more like "of course it has an interface, fool; if nothing else you can use gitweb"02:09
francesca: that depends on how you're using IRC.02:09
Also on the operating system.02:09
Hello71 can I say "press ctrl-c"?02:09
_W_ joined02:09
francesca offby1: xchat on linux mint 1402:09
offby1 francesca: so e.g. if you're using a Mac, you copy and paste with Command-C and Command-V ...02:09
heh, linux is harder because there's at least two ways to do it and I can never remember which is which02:10
francesca: actually that "!repro" factoiod includes a URL to a nice (if I do say so myself) set of instructions for making a transcript visible02:10
ErKa left02:10
offby1 https://gist.github.com/2415442 to be exact02:10
francesca offby1: ah, yes it works here too :-) thanks02:10
nicladas joined02:11
Kayra joined02:11
koell left02:11
offby1 sitaram: does vim have lots of fancy git interop built in?02:11
peterschmidler_ left02:12
offby1 sitaram: I know you're not an Emacs user but I gotta say: its "magit" is _really_ slick. I've come to depend on it02:12
noisewaterphd_ left02:12
shruggar_ joined02:13
recycle joined02:13
francesca offby1: ok, got email and name sorted. Thank you!02:14
offby1 \o/02:15
~02:15
/ \02:15
francesca offby1: "making a transcript visible": what's that for?02:15
Watabou left02:15
francesca offby1: :-)02:15
offby1 francesca: when git is acting strangely, and you ask us for help, we'll tell you to "make a transcript" so that we can see exactly what you saw.02:16
otherwise it's too hard to figure out what's going on.02:16
nicladas left02:16
Kayra left02:16
whomp_ left02:16
whomp joined02:16
offby1 you'll try to describe what happened using regular English, and we'll misunderstand; and you'll omit details that seem irrelevant but are actually very important, &c &c02:16
francesca offby1: ah, thanks, the problem was that up to then there was nothing to see! thank you until the next!02:16
sdouglas joined02:18
thegattaca joined02:18
pfg joined02:19
shruggar_ left02:19
robbyoconnor left02:20
lunaphyte_ left02:21
lunaphyte_ joined02:22
sdouglas left02:23
ctp left02:24
bren2010 left02:24
ctp joined02:25
MattMaker left02:26
shinnya left02:26
ctp_ joined02:26
mribeirodantas left02:27
gnugnu8 left02:28
ctp- joined02:28
ctp left02:29
Lemony left02:31
ctp_ left02:32
ctp- left02:32
tomengland joined02:34
CKyle left02:34
axsuul left02:35
Noldorin left02:37
tomengland left02:38
eletuchy left02:40
Watabou joined02:41
thegattaca left02:41
recycle left02:42
Lemony joined02:42
Lemony left02:42
recycle joined02:42
Lemony joined02:43
CKyle joined02:46
sctt joined02:46
jalmeida left02:46
tmcmahon joined02:46
recycle left02:47
CKyle left02:47
eletuchy joined02:47
lifelike joined02:47
chrisshattuck joined02:47
werlley joined02:48
kenneth joined02:48
MattMaker joined02:48
Zaknefain joined02:48
thevishy left02:51
tmcmahon left02:51
SegFaultAX left02:51
Zaknefain left02:53
SegFaultAX joined02:53
recycle joined02:53
Vampire0 joined02:55
whomp left02:56
linduxed left02:56
recycle left02:57
recycle joined02:57
Vampire0_ left02:58
linduxed joined02:58
pekster left02:59
MattMaker left03:00
pekster joined03:00
p8952 left03:01
el3ctron joined03:02
recycle left03:02
simesy left03:02
Gavrisimo left03:03
thevishy joined03:03
vkrest joined03:04
simesy joined03:05
goel88 joined03:06
shingshang joined03:06
vkrest left03:09
recycle joined03:09
Rastus_Vernon joined03:10
MattMaker joined03:10
axsuul joined03:10
axsuul left03:10
Kayra joined03:11
axsuul joined03:12
Lemony left03:12
axsuul left03:12
axsuul joined03:12
axsuul left03:12
axsuul joined03:13
p8952 joined03:13
axsuul left03:13
axsuul joined03:14
axsuul left03:14
Lemony joined03:14
chrisshattuck left03:14
bluesm left03:15
MattMaker left03:15
rchavik joined03:15
Kayra left03:16
axsuul joined03:17
kukks joined03:17
kukks left03:17
kukks joined03:17
axsuul left03:18
axsuul joined03:19
axsuul left03:19
whitby left03:19
axsuul joined03:19
oskarkv left03:20
makubi left03:20
Axsuul_ joined03:20
Axsuul_ left03:21
simesy left03:21
Axsuul_ joined03:21
Axsuul_ left03:22
robbyoconnor joined03:22
Axsuul_ joined03:22
Axsuul_ left03:22
Watabou left03:23
Axsuul_ joined03:23
Axsuul_ left03:23
makubi joined03:23
axsuul left03:24
axsuul joined03:24
axsuul left03:24
axsuul joined03:25
sitaram offby1: "built-in", no. Available, of course03:25
axsuul left03:25
Watabou joined03:25
axsuul joined03:26
axsuul left03:26
rq60 left03:26
sitaram offby1: emacs, to me, is like python -- a lot of my friends use it, so it's one of the "good guys" but no thanks :)03:26
axsuul joined03:26
axsuul left03:27
standyro1 joined03:27
axsuul joined03:27
axsuul left03:28
axsuul joined03:28
axsuul left03:28
z8z joined03:28
axsuul joined03:29
rq60 joined03:29
brian_____ left03:30
axsuul left03:30
axsuul joined03:30
_ikke_ left03:30
axsuul left03:30
yuppie joined03:31
yuppie hello i want to uh, make my local working dir match the master branch on my github. how would i do that?03:31
i already did git init03:31
and i also did03:31
_ikke_ joined03:31
yuppie git remote add upstream "x"03:31
axsuul joined03:31
axsuul left03:32
Cerise left03:33
axsuul joined03:34
axsuul left03:35
o11c yuppie: why not just do 'git clone' ?03:36
v1n left03:37
yuppie o11c how do i clone to local stuff to my github, overwriting whats on the github currently?03:37
i mean03:39
pdurbin left03:39
yuppie clone my local files to the remote branch, overwriting the remote branch's files03:39
?03:39
lol03:39
gitinfo set mode: +v03:40
skorgon yuppie: not sure what you're trying to do. but usually, you'd clone the github repo, do your changes in that clone, push changes back to github03:40
lifelike left03:40
yuppie yes so how do i push? im getting error03:40
thiago you have to tell us the error03:40
skorgon what error?03:40
yuppie https://dpaste.de/uNwG03:41
lifelike joined03:41
yuppie https://dpaste.de/AWJ4 <- easier to read :P03:41
thiago have you tried doing what it suggested?03:42
jefflyne left03:42
yuppie https://dpaste.de/MFO503:42
Zaknefain joined03:42
thiago yuppie: looks like the repository doesn't exist on the server03:43
yuppie: double-check the URL03:43
Lemony left03:43
yuppie i think my keys are worn03:43
specious left03:43
specious joined03:44
jefflyne joined03:45
Lemony joined03:45
daivyk left03:46
standyro1 left03:47
Zaknefain left03:47
D3vi1 joined03:47
francesca left03:48
D3vi1 after forking a git to my repo, the original branch has been updated but not the repo. How can I update my repo again so that it will be up to date with the original one ?03:48
m104 joined03:49
rawtaz D3vi1: when you say "my repo", do you mean one on your local machine or do you mean your fork of the other repo over at github?03:50
D3vi1 forl of the other repo over github03:50
rawtaz D3vi1: by "your fork" i mean "your copy on github"03:50
mhm03:50
D3vi1 rawtaz: yeah, copy on the github03:50
kukks left03:50
yuppie https://dpaste.de/xdsL03:51
im getting this error now03:51
still not sure if im using the right command or not <.<03:51
rawtaz im not sure if github has some way of doing it via their website. maybe. if not you need to clone the repo to your local machine, update that, and then push the updates to your fork03:51
kukks joined03:51
kukks left03:51
kukks joined03:51
skorgon D3vi1: add both repos as remote to your local repo and then create and push the branches you want to your github space03:51
mizu_no_oto joined03:52
SegFaultAX left03:53
ntio joined03:53
tomengland joined03:53
SegFaultAX joined03:54
yuppie how do i push all my local files to a repo?03:54
axsuul joined03:55
axsuul left03:55
rawtaz yuppie: is that really a valid way to specify a remote? shouldnt you add [email@hidden.address] as a remote using `git remote add foo [email@hidden.address] and then do `git push --set-upstream foo master` instead?03:56
yuppie rawtaz let me do both commands and show you the output03:56
fatal: remote dotfiles already exists.03:57
ArcTanSusan left03:57
o11c left03:57
yuppie rawtaz https://dpaste.de/jezK output of second command03:57
scarabx left03:58
rawtaz yuppie: what does `git remote -v` show?03:58
BeardlessOne joined03:58
yuppie https://dpaste.de/91fp03:59
rawtaz line 2 and 3 doesnt look right, do they?03:59
f0ster joined04:00
CKyle joined04:00
rawtaz im guessing you should remove those, and heck, remove the fourth one too and then re-add your remote repo using the git remote command i gave you earlier04:00
git remote remove dotfiles04:01
to remove them04:01
f0ster hello, i just had a disaterous merge, and a push to remote, I'd like to basically undo what i did.. make head the earlier SHA before i did the merge on my branch, and update the branch on the remote so it also isnt messed. any ideas how to do this? can I just cahnge the HEAD pointer to the earlier sha and push to remote ?04:01
D3vi1 thanks skorgon04:01
yuppie https://dpaste.de/9vmB#L5 rawtaz04:01
skorgon f0ster: !fixup04:01
gitinfo f0ster: 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!04:01
joelroa joined04:02
NotSomeCheese can git use ~/.config for config files? I don't want it to clutter my home directory04:02
v1n joined04:03
yuppie NotSomeCheese make a symlink?04:03
standyro1 joined04:03
NotSomeCheese yuppie: it will still be there? lol04:03
yuppie lol04:03
D3vi1 left04:03
Watabou left04:03
koell joined04:04
zumba_addict left04:04
rawtaz yuppie: what does `git branch -v` show?04:04
omegahm left04:05
rawtaz yuppie: just git branch is fine04:05
zumba_addict joined04:05
yuppie rawtaz nothing04:05
lindenle left04:05
vkrest joined04:05
rawtaz yuppie: hm. dont you have any branches? is your local repo empty?04:06
narrow_code left04:06
yuppie im not sure :(04:06
joelroa left04:06
rawtaz yuppie: hehe ok. let's take a step back. what are you trying to do here anyway? how did you end up here, did you make a new repo or did you want to clone something, or what?04:06
NotSomeCheese guys?04:07
offby1 nobody here but us zombie processes.04:07
lindenle joined04:07
Watabou joined04:07
skorgon yuppie: just create a fresh clone of your github repo and work with that one.04:08
NotSomeCheese can I have my git config file in ~/.config?04:08
offby1 NotSomeCheese: it's possible that you can set some environment variable: YO_GIT_LOOK_HERE_FOR_YOUR_CONFIG_STUFF=$HOME/.config04:08
NotSomeCheese: but I don't know for sure, and even if you can, I don't know the variable's name nor its precise semantics; all of that would be in the docs if it existed at all.04:08
So, that's a long-winded way of saying: !rtfm04:08
skorgon lol04:09
offby1 and what have you got against cheese anyway04:09
rawtaz that's by far the biggest issue here today04:09
NotSomeCheese nothing? I was banned in some channel, under some cheese name, and I thought I could come back just by changing my nickname04:09
but they banned my cloak/ip04:09
vkrest left04:10
rawtaz haha. so it was an act of desperation04:10
offby1 a cunning plan nevertheless04:10
dreiss__ joined04:10
offby1 so I guess you're not blast_hardcheese is blast_hardcheese (~blast_har@unaffiliated/blast-hardcheese/x-0199635)04:10
variable looks at offby104:10
offby1 perhaps if we put the two of you together there'd be a flash and you'd annihilate each other04:10
rawtaz offby2, soon.04:10
NotSomeCheese no I was mozzarella04:10
offby1 looks at variable04:10
NotSomeCheese like matter and antimatter?04:11
offby1 yep04:11
like Martin and Lewis.04:11
or Jagger and Richards!04:11
Beer and Pizza!04:11
Kayra joined04:11
rawtaz yuppie: looks like you fixed it. what did you end up doing?04:11
NotSomeCheesemozzarella04:12
mozzarella test04:12
offby1 exam04:12
z8z left04:12
juri_ tesuto.04:13
ntio left04:14
Kayra left04:16
standyro1 left04:16
eletuchy left04:17
ntio joined04:17
jhulten_ joined04:17
yuppie git sucks04:17
rawtaz that's hardly a very constructive statement04:18
v1n left04:19
kermit1kermit04:20
m0ltar joined04:20
kermit left04:20
kermit joined04:20
f0ster i did a merge and instead of git sayin gi had conflicts it just outputted messages like this, https://gist.github.com/f0ster/9301875 , shouldnt it have said i had conflicts? it definitely inserted code like ===== HEAd etc but didnt tell me in console04:22
simesy joined04:22
specious left04:22
starkhallo joined04:22
rawtaz i dont know. someone else is bound to. but im curious, what does `git status` say?04:23
are you sure it didnt output anything but messages like those?04:23
pwnz0r left04:23
specious joined04:23
shingshang left04:24
lunaphyte_ left04:24
NimeshNeema joined04:25
Goplat left04:26
_jr_42 joined04:26
simesy left04:27
lithiumjake left04:28
_jr_42 left04:28
specious left04:29
mozzarella can I have my git config file in ~/.config?04:30
the_cybersphinx left04:30
maslowbeer left04:31
pr0ton left04:31
m0ltar left04:32
rawtaz mozzarella: make a symlink to it and i guess yes?04:32
Lemony left04:34
JPeterson joined04:34
sunny256 mozzarella: That's a really good question. I don't think Git supports that (yet), maybe it should. Seems as more and more programs move their config files to ~/.config .04:35
ssj4mo joined04:35
ssj4mo left04:36
madewokherd left04:36
ssj4mo joined04:36
ssj4mo left04:36
sunny256 It could read ~/.gitconfig first, then try ~/.config/git/.gitconfig or something.04:36
ssj4mo joined04:36
ssj4mo left04:36
mozzarella it should04:36
ssj4mo joined04:36
ssj4mo left04:36
BiggFREE joined04:36
frege joined04:37
ssj4mo joined04:37
ssj4mo left04:37
frege hey guys04:37
Zaknefain joined04:37
ssj4mo joined04:37
ssj4mo left04:37
frege I wanna hard revert04:37
trusktr joined04:37
ssj4mo joined04:37
ssj4mo left04:37
frege and remove the new files that I haven't added yet04:37
ssj4mo joined04:37
ssj4mo left04:37
trusktr left04:37
sunny256 makubi: Maybe you should post that idea to the !mailing_list .04:37
gitinfo makubi: The mailing list can be reached via [email@hidden.address] You don't need to subscribe to the list, you will always be put in cc on reply. Read archives at http://j.mp/gitlist04:37
frege is it git reset --hard?04:38
ssj4mo joined04:38
ssj4mo left04:38
BiggFREE left04:38
ssj4mo joined04:38
ssj4mo left04:38
sunny256 mozzarella: Ah, sorry, meant you. :)04:38
ssj4mo joined04:38
ssj4mo left04:38
skorgon frege: if you didn't add the files yet, then there isn't anything to undo ?!04:38
ssj4mo joined04:38
rawtaz frege: a hard reset will reset all the files that git tracks to the state theyre in at the commit you specify04:38
ssj4mo left04:38
frege ahh it needed git clean -f -d04:38
ssj4mo joined04:39
ssj4mo left04:39
ssj4mo joined04:39
ssj4mo left04:39
rawtaz frege: yeah. also know that making it a habit to do `git clean -ndf` before doing the real `git clean -df` might be a good idea :)04:39
sunny256 mozzarella: Or even better, create a patch. :)04:39
ssj4mo joined04:39
ssj4mo left04:39
flowerhack joined04:39
siaW joined04:40
siaW i do "git push origin master"04:41
shingshang joined04:41
ssj4mo joined04:41
siaW and git tells me everything is up to date but the changes are not show on github04:41
ssj4mo left04:41
siaW can someone help me?04:41
Zaknefain left04:41
slicknick joined04:41
siaW i want to have my local changes on github04:41
mikepack joined04:42
skorgon siaW: you commited your changes and pushed them but they don't show on github?04:42
siaW that's right04:42
skorgon: yes04:43
s1icknick joined04:43
wongon left04:43
skorgon then, hit ctrl+r in your browser :P04:43
juri_ step 1: get the source code to github...04:43
oh wait. -ENOTFREESOFTWARE04:43
wongon joined04:43
skorgon siaW: what does git log --oneline --decorate show04:43
wongon left04:44
sdouglas joined04:44
sluther left04:45
siaW skorgon: 42515ce (HEAD, origin/master, origin/HEAD, master) confirm04:45
05e335b test repo connection04:45
ntio left04:45
ssj4mo joined04:46
skorgon siaW: and origin is your github repo?04:46
ssj4mo left04:46
ssj4mo joined04:46
ssj4mo left04:46
GT left04:46
siaW skorgon: yeap04:46
ssj4mo joined04:46
lunaphyte_ joined04:46
ssj4mo left04:46
slicknick left04:47
ssj4mo joined04:47
ssj4mo left04:47
goel88 left04:47
lunaphyte_ left04:47
lunaphyte_ joined04:47
ssj4mo joined04:47
ssj4mo left04:47
ssj4mo joined04:47
ssj4mo left04:47
ssj4mo joined04:47
ssj4mo left04:47
ssj4mo joined04:48
ssj4mo left04:48
ssj4mo joined04:48
ssj4mo left04:48
s1icknick left04:48
ssj4mo joined04:49
ssj4mo left04:49
rawtaz can someone temp ban that guy? like 20 minutes or so04:49
slicknick joined04:49
skorgon siaW: the output inidicates that your local master and the remote master are pointing to the very same commit (42515ce). so, probably really just a matter of the webUI getting the update04:49
ssj4mo joined04:49
skorgon rawtaz: ignore him04:49
ssj4mo left04:49
ssj4mo joined04:49
mikepack left04:49
ssj4mo left04:50
ssj4mo joined04:50
ssj4mo left04:50
siaW skorgon: but it's been 40minutes already04:50
mikepack joined04:50
rawtaz its just flooding messages04:50
skorgon siaW: are you sure origin is your github repo? what does github -v say?04:50
ssj4mo joined04:50
ssj4mo left04:50
ssj4mo joined04:51
ssj4mo left04:51
ssj4mo joined04:51
ssj4mo left04:51
skorgon siaW: sorry, git remote -v04:51
ssj4mo joined04:51
ssj4mo left04:51
ssj4mo joined04:51
ssj4mo left04:52
siaW skorgon: emmanuels-imac:kalendarz siaW$ git remote -v04:52
origin https://github.com/siaw23/kalendarz.git (fetch)04:52
origin https://github.com/siaw23/kalendarz.git (push)04:52
ssj4mo joined04:52
ssj4mo left04:52
ssj4mo joined04:52
ssj4mo left04:52
ssj4mo joined04:52
skorgon siaW: when i go to that URL it is as expected04:52
ssj4mo left04:52
ssj4mo joined04:52
ssj4mo left04:53
skorgon HEAD@42515ce247d27cc087a7ddb91665114703f01e3a04:53
slicknick get a clue04:53
SegFaultAX left04:53
siaW skorgon: well the problem is. i did a commit. and it's not showing the changes i made locally and when i try to push it tells me everything is up to date04:53
SegFaultAX joined04:53
skorgon siaW: then you didn't commit them04:54
everything that is commited locally is also visible at github04:54
leninmhs2 joined04:54
siaW skorgon: ok i'll show you a screenshot04:55
skorgon siaW: look at the output of log --oneline --decorate. as i said above master and origin/master point to the same commit04:55
mikepack left04:55
skorgon there is no other commit (in that branch)04:55
siaW this is what i have04:55
http://gyazo.com/0d25456126839bed9753e2817437d54104:55
noisewaterphd_ joined04:55
siaW skorgon: screenshot in link above04:55
SHyx0rmZ left04:56
skorgon siaW: read what it printed there04:56
s/it/is04:57
dreiss__ left04:57
slicknick shoulda dont a git status! heh04:58
armyriad left04:58
slicknick skorgon: i dont understand what is meant the --all explanation. "will also let you record the removals." mind discussing ?04:59
siaW skorgon: i did "git add --all"05:00
eletuchy joined05:00
skorgon nothing was commited05:00
siaW skorgon: does it mean "git add ." works no more?05:00
skorgon there is no commit to push05:00
all you have changed is apparently that you removed a file05:00
slicknick record as in log? to what / where? my initial reaction to this is.. why not in the (global) config ?05:00
skorgon and the output tells you that removals are ignored when you do commit -A05:00
slicknick errr i think i need to understand what 'record' really means / does / refers to05:01
skorgon so, git rm the file, commit the change and push it05:01
siaW skorgon: thanks :)05:01
slicknick git status is helpful05:01
skorgon slightly different, you need the -A to add the removal but you just used . or somehting like that05:01
slicknick sorry for being dislexic05:02
m104 left05:02
slicknick and unable to spell05:02
zumba_ad_ joined05:02
axsuul joined05:02
joelroa joined05:03
cads left05:03
armyriad joined05:03
orangejuicejame joined05:03
sunny256 git bisect bad master05:04
Yes, bad, bad master!05:04
orangejuicejame left05:04
daito joined05:04
sunny256 Or as Gollum would say, "git bisect good master"05:05
slicknick so if you want to record the removal, you have to specify so when you add it05:05
confused05:05
skorgon slicknick: just use git rm05:05
vkrest joined05:05
skorgon that removes the file and stages the removal05:05
add --cached if you want to keep the file and just want to stop tracking it05:06
zumba_addict left05:06
zumba_a__ joined05:06
slicknick right on, thanks05:06
zumba_ad_ left05:07
zumba_addict joined05:07
tomengland left05:07
tomengland joined05:08
joelroa left05:08
daito left05:09
m104 joined05:10
zumba_a__ left05:11
werlley left05:11
m0ltar joined05:11
Kayra joined05:11
tomengland left05:11
tomengland joined05:12
CheckDavid left05:12
tomengland left05:12
f0ster left05:14
sohail left05:14
m0ltar left05:15
Kayra left05:16
oskarkv joined05:16
Mitchbones left05:18
tomengland joined05:19
Zifre joined05:21
soyDiegol left05:21
mizu_no_oto left05:22
pfg left05:22
lindenle left05:22
simesy joined05:22
shinnya joined05:22
Lemony joined05:25
tgkokk joined05:26
simesy left05:26
john2x left05:27
AndreSomers joined05:27
john2x joined05:28
leninmhs2 left05:30
geomyidae left05:30
bwreilly left05:30
Zaknefain joined05:31
freestyl3r left05:31
Zaknefain left05:31
pheaver joined05:33
geomyidae joined05:33
jefflyne left05:35
vkrest left05:37
jefflyne joined05:37
jackneill joined05:37
dglambert left05:37
m104 left05:38
JPeterson left05:38
eletuchy left05:38
ntio joined05:38
Kicer86 joined05:38
kaictl joined05:38
ssj4mo joined05:41
ssj4mo left05:41
ssj4mo joined05:41
ssj4mo left05:41
ssj4mo joined05:42
ssj4mo left05:42
ssj4mo joined05:42
ssj4mo left05:42
ssj4mo joined05:42
ssj4mo left05:42
chrisshattuck joined05:42
ssj4mo joined05:42
ssj4mo left05:42
ssj4mo joined05:43
ssj4mo left05:43
ssj4mo joined05:43
ssj4mo left05:43
ssj4mo joined05:43
ssj4mo left05:43
Vivekananda left05:43
ssj4mo joined05:43
noisewaterphd_ left05:43
ssj4mo left05:43
CKyle left05:44
stellarhopper left05:46
pfg joined05:47
dougsland left05:48
leninmhs2 joined05:49
dagnachew left05:51
ssj4mo joined05:51
ssj4mo left05:51
snuffeluffegus joined05:52
ssj4mo joined05:52
ssj4mo left05:52
ssj4mo joined05:52
ssj4mo left05:52
ssj4mo joined05:52
ssj4mo left05:52
Freeman42 left05:52
tomengland left05:52
ssj4mo joined05:52
ssj4mo left05:52
ssj4mo joined05:53
ssj4mo left05:53
ssj4mo joined05:53
ssj4mo left05:53
ssj4mo joined05:53
ssj4mo left05:53
ssj4mo joined05:53
ssj4mo left05:53
SegFaultAX left05:54
SegFaultAX joined05:55
adurity left05:55
nicedice_ left05:55
nicedice joined05:56
Tommy[D] left05:58
adurity joined05:59
stellarhopper joined06:00
robbyoconnor left06:01
tgkokk left06:02
joelroa joined06:03
adurity left06:04
fauxtoniche left06:04
kotk joined06:06
Gamecubic left06:07
joelroa left06:08
eletuchy joined06:08
Tommy[D] joined06:10
tgkokk joined06:11
tgkokk left06:11
Kayra joined06:11
zacts left06:12
ssj4mo joined06:12
ssj4mo left06:12
ssj4mo joined06:12
ssj4mo left06:12
ssj4mo joined06:13
ssj4mo left06:13
eletuchy left06:13
ssj4mo joined06:13
ssj4mo left06:13
ssj4mo joined06:13
ssj4mo left06:13
ssj4mo joined06:13
ssj4mo left06:13
ssj4mo joined06:14
ssj4mo left06:14
ssj4mo joined06:14
frogonwheels left06:15
Kayra left06:16
frogonwheels joined06:16
salamanderrake left06:16
salamanderrake joined06:17
enigmus left06:18
starkhallo left06:19
axsuul left06:19
tomengland joined06:19
ssj4mo left06:21
jaequery joined06:21
jaequery left06:21
ssj4mo joined06:21
ssj4mo left06:21
ssj4mo joined06:21
jaequery joined06:21
ssj4mo left06:22
jaequery left06:22
ssj4mo joined06:22
ssj4mo left06:22
thegattaca joined06:22
ssj4mo joined06:22
ssj4mo left06:22
jaequery joined06:22
jaequery left06:22
ssj4mo joined06:22
ssj4mo left06:22
ssj4mo joined06:23
ssj4mo left06:23
jaequery joined06:23
jaequery left06:23
simesy joined06:23
ssj4mo joined06:23
ssj4mo left06:23
ssj4mo joined06:23
ssj4mo left06:23
jaequery joined06:23
ssj4mo joined06:23
ssj4mo left06:23
ssj4mo joined06:24
ssj4mo left06:24
ssj4mo joined06:24
Zaknefain joined06:26
kukks left06:26
KindOne_ joined06:27
KindOne_ left06:27
simesy left06:27
AruL_ joined06:28
leninmhs2 left06:29
ben_alman joined06:29
KindOne_ joined06:29
KindOne_ left06:29
Zaknefain left06:30
ssj4mo left06:33
KindOne_ joined06:33
robbyoconnor joined06:33
NimeshNeema left06:34
ssj4mo joined06:34
adurity joined06:34
ben_alman left06:35
frege left06:35
adurity left06:36
thegattaca left06:39
w0ng joined06:39
ntio left06:39
thegattaca joined06:40
yuppie left06:40
simesy joined06:40
thegattaca left06:42
Lemony left06:42
chessguy joined06:44
siaW left06:45
Lemony joined06:46
JPeterson joined06:47
ssj4mo left06:47
ssj4mo joined06:47
ssj4mo_s joined06:48
ssj4mo_s left06:48
ssj4mo left06:48
ssj4mo joined06:49
ntio joined06:49
jhulten_ left06:50
ssj4mo left06:51
ssj4mo joined06:51
ssj4mo left06:51
ssj4mo joined06:51
pheaver left06:53
simesy left06:54
SegFaultAX left06:55
SegFaultAX joined06:56
simesy joined06:56
chrisshattuck left06:58
eduardtm joined06:59
bgerber left07:03
o9 left07:03
rq60 left07:04
joelroa joined07:05
emergion joined07:05
el3ctron left07:06
armyriad left07:06
joelroa left07:09
eletuchy joined07:09
Rastus_Vernon left07:09
Kayra joined07:11
ssj4mo left07:13
kerrick left07:13
ssj4mo joined07:13
eletuchy left07:14
sdouglas left07:14
kerrick joined07:14
ehmatthes joined07:15
jmpp joined07:16
jmpp greets!07:16
Kayra left07:16
jmpp I'm in the middle of quite a large merge, trying to bring a feature branch I was working on into master07:16
it produced quite a bit of conflicts, but I think I solved them all already07:17
slicknick left07:17
jmpp however, I would like to confirm by diff'ing the current working copy against the feature branch, but I can't find a way of doing that07:17
I've tried things like "git diff -- . featureBranch", from the root of my repo, but to no avail07:18
any pointers?07:18
kerrick left07:18
salamanderrake left07:19
sdouglas_ joined07:19
robbyoconnor left07:20
moritz git diff --cached featureBranch07:20
^^ for jmpp07:20
jmpp moritz: but wouldn't that diff only what's in the index, ready to be committed?07:20
Zaknefain joined07:20
jmpp tries any way07:20
moritz jmpp: yes; but in a merge where you have resolved your conflicts, all the changes should be in the index, no?07:21
ssj4mo left07:21
jmpp right, they are indeed07:21
ssj4mo joined07:21
jmpp there are no unmerged paths at this point, all that remains is to commit07:21
but...07:21
before I do so I'd love to diff the entire working tree against the branch, not just the index07:22
though I concede that what's in the index is what matters, true, since it's what will go into the commit07:22
still, I find it odd that there's no way to diff an entire working tree against a branch during a merge....07:22
moritz doesn't the same invocation without --cached diff the working copy against the branch?07:23
jmpp no07:24
it produces no output what-so-ever07:24
m0viefreak yes, because everything is staged07:24
jmpp and I find it hard to believe there are no differences07:24
hoschi joined07:24
flowerhack left07:24
m0viefreak you want 'git diff featureBranch'07:24
jmpp tries that07:25
moritz that's what I said :-)07:25
Zaknefain left07:25
m0viefreak jmpp: in your original command you just mixed up the argument order07:25
moritz (or meant, at least; git diff --cached featureBranch and later "without --cached")07:25
dc5ala joined07:25
akim joined07:25
m0viefreak not07:26
git diff -- . featureBranch07:26
but07:26
git diff featureBranch -- .07:26
jmpp moritz: right ;)07:26
m0viefreak: let me try that last one...07:26
KindOne_ left07:26
m0viefreak its the same as 'git diff featureBranch' (unless you are in a subdirectory)07:26
jmpp OK07:26
interesting07:26
takamichi joined07:27
jmpp thought git would follow the diff(1) right-to-left convention07:27
geomyidae left07:27
ntio1 joined07:28
akim__ left07:28
wizard_A joined07:28
jmpp funny, for some reason it's trying to show me differences in a PDF file :S07:29
in any case, I'm seeing a pretty good looking diff, thanks guys!07:29
SilverBln joined07:29
ntio left07:30
simesy left07:30
geomyidae joined07:30
moritz jmpp: git usually has the interpretation that stuff before a -- is used as a branch name, and stuff after -- as a path07:30
since for example a branch and a file can have the same name, and 'git checkout <file>' and 'git checkout <branch>' are both allowed, and do different things07:31
same with diff07:31
jmpp I see07:32
didn't know git had the convention of accepting branches before --07:33
but it makes sense07:33
and it also makes sense why I got confused before...07:33
jmpp tries to remember an example that confused him, but fails to ;)07:33
jmpp I was trying to diff against a path in a branch, not in the working copy, so I was doing theBranch:thePath07:34
and I had to put that *after* --07:34
because git was telling me that paths not currently in the working copy have to go after --07:35
but i take it in that case it has to go after the -- because that's a path, even if in another branch, not the branch itself, which according to what you say would come before the --07:35
eduardtm left07:36
adurity joined07:37
simesy joined07:38
eduardtm joined07:38
simesy left07:38
armyriad joined07:38
simesy joined07:39
vkrest joined07:39
tmart left07:39
AruL_ left07:39
eduardtm left07:39
simesy left07:39
eduardtm joined07:40
ahammond left07:40
ahammond joined07:40
simesy_ joined07:40
simesy joined07:41
jmpp this diff looks *beautiful*, commit ready to go!07:41
adurity left07:42
jmpp but I think I'm too hungry even for that :S07:42
simesy left07:43
khmarbaise joined07:43
jaequery left07:44
eduardtm left07:44
simesy_ left07:45
eduardtm joined07:45
srji joined07:45
eduardtm left07:46
s4lt left07:46
eduardtm joined07:46
eduardtm left07:46
eduardtm joined07:47
slicknick joined07:48
hyperair joined07:48
srji_ left07:48
arietis joined07:48
eduardtm left07:48
hahuang61 left07:48
slicknick left07:49
slicknick joined07:50
simesy joined07:52
thiago left07:52
ccmonster left07:52
slicknick left07:54
geomyidae left07:54
simesy left07:55
simesy joined07:55
bwreilly joined07:55
geomyidae joined07:57
tgkokk joined07:58
bwreilly left08:00
goel88 joined08:02
joji joined08:02
vkrest left08:02
shinnya left08:03
zapb joined08:03
jsilver-ipod joined08:04
jsilver-ipod left08:04
joelroa joined08:05
sdouglas_ left08:07
Nicholas_Rishel left08:09
joelroa left08:10
eletuchy joined08:10
khmarbaise left08:10
goel88 left08:10
Kayra joined08:11
tomengland left08:12
george2 left08:12
goel88 joined08:13
eletuchy left08:14
Zaknefain joined08:14
ewet joined08:14
pfg left08:15
Draleth joined08:16
wizard_A left08:16
Kayra left08:16
Lemony left08:16
rchavik left08:17
tomengland joined08:18
Zaknefain left08:19
thiago joined08:20
eaj joined08:20
xlinkz0 joined08:21
sonicblud left08:23
geomyidae left08:23
hyperair left08:23
geomyidae joined08:26
geomyidae left08:30
vince_prignano joined08:30
geomyidae joined08:31
sctt left08:32
geomyidae left08:33
boombatower left08:33
jagob joined08:34
ingoldey left08:34
geomyidae joined08:34
geomyidae left08:35
v1n joined08:35
jizanthapus joined08:36
mikestir joined08:36
vurma joined08:37
adurity joined08:37
m0viefreak left08:38
vince_prignano left08:38
ben_alman joined08:39
sctt joined08:41
adurity left08:42
ben_alman left08:45
BiggFREE joined08:46
jnavila joined08:47
harobed joined08:49
vkrest joined08:50
simesy left08:50
Shusshu joined08:52
Shusshu left08:52
simesy joined08:52
v1n left08:53
ngladitz joined08:55
ngladitz left08:55
ngladitz joined08:55
upene joined08:55
HelloComputer15 left08:56
jnavila left08:56
emergion left08:57
ehmatthes left08:57
JerryT joined08:58
nepochal joined08:58
gfixler joined08:58
cads joined09:05
carbon1 joined09:05
narrow_code joined09:06
tplaner left09:06
carbon1 left09:06
joelroa joined09:06
sdouglas joined09:07
Zaknefain joined09:09
pantsman joined09:09
Zaknefain left09:10
slicknick joined09:10
eletuchy joined09:10
joelroa left09:11
Zaknefain joined09:11
sdouglas left09:12
jatt joined09:14
jatt left09:14
jatt joined09:14
eletuchy left09:15
hahuang61 joined09:17
LeMike joined09:17
mourest joined09:17
Nizumzen joined09:20
akiress left09:20
jagob left09:21
hahuang61 left09:21
netcarver joined09:26
ferreum joined09:26
Silmarilion joined09:30
stellarhopper left09:32
liquidmetal joined09:35
liquidmetal I have a file in my remote repository called local.properties - this is required for builds09:36
rchavik joined09:36
harobed left09:36
liquidmetal however this file changes from machine to machine - and I don't want git to track this file09:36
Any suggestions how this can be accomplished? I tried adding it to .gitignore - but that didn't work09:36
adurity joined09:37
vince_prignano joined09:37
osse !config > liquidmetal09:38
gitinfo [!configfiles] It is recommended to store local configuration data in a file which is not tracked by git, but certain deployment scenarios(such as Heroku) may require otherwise. See https://gist.github.com/1423106 for some ideas09:38
osse liquidmetal: the proper way would be to commit a file called local.properties.template and have developers copy that and make changes to it09:38
JerryT left09:39
osse liquidmetal: there is a way to tell Git to stop checking that file for changes but that is only a local action09:39
adurity left09:39
liquidmetal Thanks for the link - will read up09:39
mikestir left09:39
osse liquidmetal: so in your case I think you can rename local.properties to local.properties.template, commit that along with the addition to .gitignore and update the build instructions09:40
tomengland left09:43
kriks joined09:43
tomengland joined09:43
liquidmetal osse, looks like the local.properties.template is the way to go09:44
This would also mean that the automated build system would also have to rename the file everytime a build is made09:46
shinnya joined09:46
lolmaus joined09:48
tomengland left09:48
stellarhopper joined09:49
stellarhopper left09:49
stellarhopper joined09:49
osse liquidmetal: in that case I would make a change to the build system so that if local.properties doesn't exist it would use local.properties.template instead09:50
h0bbit_ joined09:50
aarapov joined09:50
harobed joined09:53
harobed left09:53
leninmhs2 joined09:53
harobed joined09:54
osse or copy it. basically avoid a dirty state09:55
JerryT joined09:55
pinage404 joined09:57
harobed left09:58
Acidnerd1 joined09:58
Cathycatherinejf10:00
catherinejfCathy10:00
Cathycatherinejf10:00
catherinejfCathy10:00
jayallen joined10:01
aarapovaarapov|afk10:01
jon_x7 left10:01
ntio1 left10:01
aarapov|afkaarapov10:03
tgkokk left10:04
aarapovaarapov|afk10:06
zedsix left10:06
ntio joined10:06
aarapov|afkaarapov10:06
joelroa joined10:07
harobed_ joined10:08
koell left10:09
pierre1_ left10:09
ThomasLocke joined10:09
a-l-e joined10:10
vkrest left10:10
skyflash joined10:10
dsdeiz joined10:10
tomengland joined10:11
eletuchy joined10:11
Kayra joined10:11
joelroa left10:12
kcj left10:14
netcarver left10:14
skyflash_ joined10:14
Kayra left10:16
eletuchy left10:16
dsdeiz left10:16
skyflash left10:17
dsdeiz joined10:17
SonicX joined10:17
leninmhs2 left10:19
hahuang61 joined10:19
BiggFREE left10:20
hyperair joined10:21
hahuang61 left10:24
Exancillatus joined10:24
jnavila joined10:26
Nizumzen left10:27
dsdeiz left10:29
simesy left10:29
joji left10:30
Exancillatus left10:32
cff joined10:32
slicknick left10:33
nick108 joined10:33
metamorpy joined10:34
Mode-M joined10:34
aarapovaarapov|afk10:35
jargon left10:35
aarapov|afkaarapov10:37
adurity joined10:37
sluther joined10:38
Macaveli joined10:41
adurity left10:42
akitada joined10:42
tomengland left10:45
makubi left10:45
arvind_khadri left10:45
makubi joined10:47
Octalot joined10:47
jargon joined10:47
Lemony joined10:48
sluther left10:48
the_cybersphinx joined10:48
tgkokk joined10:50
tgkokk left10:50
aarapovaarapov|afk10:50
kent\n is it "safe" to abuse ./.git/refs/<foo>/<bar> to tell git to do keep certain SHA1's around? ie: using non-standard ref types for nefarious purposes?10:51
aarapov|afkaarapov10:51
SorenHolm joined10:52
masak kent\n: as far as I know, using non-standard ref types like that is not only allowed/safe, but encouraged.10:53
aka "it's all namespaces" and "third-party apps can extend .git/refs however they want"10:53
kent\n sweet =)10:54
masak the only risk is accidentally intersecting with someone else's namespace, but I'd consider that a fairly small risk.10:54
or, let's say, manageable by community mechanisms.10:54
narrow_code left10:56
angelsl joined10:56
ghostlines joined10:56
ghostlines left10:56
aarapovaarapov|afk10:56
ghostlines joined10:57
aarapov|afkaarapov10:57
harobed_ left10:58
shruggar joined10:58
simesy joined10:59
ThomasLocke left11:01
joji joined11:02
arvind_khadri joined11:03
SorenHolm left11:04
masak I have a question. if you were to take a course for git experts -- a kind of level-3 course, after "intro" and "advanced" -- what would you expect to see in such a course?11:06
I'm thinking things like "how do merges actually work, internally?", or "what's the packfile format like and what happens during a network transfer of objects?"11:07
"how does the index work at a detailed level?"11:07
SonicX left11:07
Naeb joined11:07
goel88 left11:07
masak other suggestions very welcome.11:07
simesy left11:08
moritz "advanced" covered 'git rebase', inclusive --onto, I presume?11:08
joelroa joined11:08
Fandekasp left11:09
masak moritz: yes.11:09
moritz difference lightweight vs. annotated tags11:09
masak that's already in "advanced".11:09
Seveas the git wire protocol11:10
masak think of the "experts" course as being basically read-the-source-complete.11:10
Seveas: thank you.11:10
khmarbaise joined11:10
Seveas a section on contributing to git11:10
moritz masak: 'git replace' might be worth mentioning11:10
Seveas various file formats and a deep dive into .git11:10
moritz aliasing mechanism (if not yet 'advanced')11:11
Seveas what hash-object etc. do11:11
rchavik left11:11
Seveas alternative implementations (libgit, dulwich...)11:11
masak moritz: no, that sounds reasonable.11:11
Seveas: ooh11:11
moritz plumbing commands in general11:11
jargon left11:11
Kayra joined11:11
Seveas yeah, rev-list and rev-parse (though the latter could be in "advanced" as well)11:12
eletuchy joined11:12
Seveas how history/ref walking works, so the internals of rev-list11:12
jargon joined11:12
masak aye.11:12
joji left11:12
shevy joined11:12
ghostlines left11:13
Seveas fixing broken repos11:13
shevy left11:13
joelroa left11:13
Seveas as in: filesystem corruption and recovering from that11:13
peff sent some nice mails on that over the years11:13
thevishy left11:13
Kneferilis left11:15
Kayra left11:16
eletuchy left11:16
masak Seveas: do you happen to have access to those emails, perchance?11:16
Seveas search gmane for peff and corruption11:16
I don't have them bookmarked, so I'd have to do the same :)11:17
masak oki11:17
url to gmane?11:17
moritz search.gmane.org11:17
masak thank you.11:17
Seveas ttp://dir.gmane.org/gmane.comp.version-control.git11:17
s/^/h/ # copy paste snafu11:17
moritz oh, git-filter-branch (if not yet covered)11:18
Seveas and bfg repo cleaner11:18
moritz aye11:18
masak "Around 147 matching articles." -- this will take a while. :)11:18
anyway, thanks for that.11:18
arietis left11:19
masak what's 'bfg repo cleaner'?11:19
osse masak: http://thread.gmane.org/gmane.comp.version-control.git/23623811:19
masak: I remember it was posted on reddit so that helped with googling :p11:19
Seveas osse: yup, that's the one.11:19
noxd joined11:20
moritz btw there was this tool which did some mixture of rebase and merging11:20
masak thank you.11:20
Seveas generally everything from peff is interesting, especially if he talks about the git tweaks they do at github for scale11:20
moritz something you'd do for very large merges, where you can resolve conflicts bit by bit11:20
does anybody recognize what I mean, and remember the name?11:20
Seveas moritz: rerere?11:20
moritz Seveas: no11:20
Seveas rerere is a good one to cover though11:21
marcjs joined11:21
_iron joined11:21
Seveas I've never used it, but it seems to be made of magic and ponies11:21
ayaka joined11:21
vince_prignano left11:21
moritz something not in git core, where all new commits from both branches are merged with each other, and in the end you can decide if you want to leave history as is, or make a big rebase or a big merge out of it11:21
ayaka I have a problem, if I wan to get a directory from a git repo but not the whole repo, is there any way to do that?11:22
masak moritz: yes, I remember that. I thought I had an open issue for it, but seems not.11:22
moritz ayaka: no11:22
git imerge, I think11:23
Seveas ayaka: you might be able to get somewhere with git archive if you are also not interested in revision history11:23
moritz https://github.com/mhagger/git-imerge that's what I meant11:23
Seveas moritz: oooooh11:24
nick108 left11:24
masak moritz: ooh, that's it!11:24
moritz++11:24
moritz I have yet to use it, but I'm pretty sure I will :-)11:25
Seveas I've had merges that were nasty enough that this would be useful11:26
Balliad joined11:26
moritz same here; we have an upstream repo with 45k commits, and about 6k commits on our own11:26
Seveas our main.git at work is humongous, hundreds of commits per day11:27
ayaka moritz, Seveas thank you11:27
Seveas so if you actually touch core code and forget to rebase for a week, merge is not going to make you happy.11:27
moritz main.git sounds like a bad idea :-)11:27
Seveas the app is quite monolithic. Attempts to split it up in logical chunks so far have failed. No doubt we'll try again though :)11:28
narrow_code joined11:30
thevishy joined11:31
Bilge joined11:32
ayaka left11:33
masak r: say "\0xA0"11:34
oops, ww11:35
johnkevinmbasco joined11:36
adurity joined11:37
arietis joined11:38
Naeb left11:38
akim left11:39
diegoviola joined11:40
adurity left11:42
shingshang left11:42
shingshang joined11:42
n-st joined11:44
aarapovaarapov|afk11:45
SHyx0rmZ joined11:46
jargon left11:46
Freeman42 joined11:46
eaj left11:47
phanimahesh joined11:48
eaj joined11:48
Kayra_ joined11:49
Goplat joined11:50
metamorpy Hey guys, git newbie here, anyone mind asking some quick questions?11:50
answering*11:50
northfurr left11:51
ben_alman joined11:51
Seveas metamorpy: just !ask :)11:52
gitinfo metamorpy: 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.11:52
eaj left11:52
joki left11:53
aarapov|afk left11:53
metamorpy_ joined11:53
metamorpy left11:55
metamorpy_metamorpy11:55
aarapov joined11:55
Balliad left11:56
h0bbit_ left11:56
ben_alman left11:56
lithiumjake joined12:02
Naeb joined12:03
SegFaultAX left12:03
skorgon left12:04
_Vi left12:04
kenyon joined12:05
marcjs left12:05
SegFaultAX joined12:07
jnavila left12:07
jnavila joined12:07
joki joined12:09
eaj joined12:09
bgerber joined12:10
Nevik metamorpy: in case you missed it, please just ask your question. someone will answer when they know/feel like helping12:10
metamorpy Nevik: thanks :)12:11
Norrin joined12:11
Xiti left12:12
mishok13 joined12:12
Xiti joined12:12
eletuchy joined12:13
Balliad joined12:13
jnavila left12:14
metamorpy My setup might be slightly strange, but i works for me, i have a dev server that is live, i currently make changes through SFTP, and want to add in GIT to the mix, is there a way i can point a git client to the same server, and commit directly on that, without having a local repo on my laptop?12:15
eletuchy left12:17
jogos left12:18
noxd left12:18
bremner metamorpy: basically no. git only commits locally. If you want to ssh onto the remote server, then you can commit there.12:18
jayallen_ joined12:19
_Vi joined12:19
cads left12:20
metamorpy I have SSH setup now, so yes, that was the idea, but is there a GUI client that support SSH'ing in, and committing there?12:20
Cid joined12:20
phanimahesh metamorpy: why do you need that?12:20
metamorpy prefer GUI :)12:20
phanimahesh I mean not having a local repo12:21
there are gui git clients, but I can't recommend any. lets try !gui12:21
gitinfo Graphical user interfaces are not supported here. If you want to get support, it needs to be through the git CLI. Reasons: 1) Because very few people here use the graphical interface. 2) Because giving instructions for GUI's is difficult. 3) The command line gives you a history of what commands you have executed.12:21
phanimahesh okay.12:22
jayallen left12:22
jayallen_jayallen12:22
phanimahesh Also, this is the first time I am hearing a request for this strange setup.12:22
metamorpy hehe12:22
phanimahesh you can setup a commit hook to publish the update to server automatically on every commit if you don't want to manually do that.12:23
aarapovaarapov|afk12:23
osse metamorpy: if you want to work on the server directly then use SSHFS or Remote Desktop or something like that.12:23
metamorpy server is ssh only, no GUI12:23
phanimahesh use sshfs.12:23
upene left12:24
aarapov|afkaarapov12:24
metamorpy that takes care of the editing of the files, but still needs to commit changes using SSH then i guess?12:24
phanimahesh It allows you to mount a folder on ( another computer that allows ssh-ing in) on your local machine.12:25
osse metamorpy: no, you can use Git as if the files were local12:25
metamorpy: so Git or any Git GUI is cool12:25
phanimahesh Essentially, you get a folder in your local machine.12:25
metamorpy ah :D12:25
phanimahesh but when you access it, you are accessing the server.12:25
so use it like it is a ordinary local folder.12:25
metamorpy you guys are geniuses.12:25
phanimahesh except that you are screwed if the network goes poof12:25
skorgon joined12:26
hunt3r joined12:26
Cid left12:26
phanimahesh left12:27
metamorpy I'll try this out, see if i can make this work. thanks guys12:27
phanimahesh joined12:27
gitinfo set mode: +v12:27
harobed joined12:28
harobed left12:28
faizoff joined12:30
upene joined12:31
TheFuzzball left12:32
el3ctron joined12:33
Not_Whatever joined12:33
harobed joined12:33
harobed left12:33
TheFuzzball joined12:34
harobed joined12:34
metamorpy left12:35
Watabou left12:35
adurity joined12:37
leeN joined12:38
Mode-M left12:40
aarapovaarapov|afk12:41
aarapov|afkaarapov12:41
koda joined12:41
el3ctron left12:41
adurity left12:42
aarapov left12:42
ghostlines joined12:42
el3ctron_ joined12:43
noxd joined12:43
salamanderrake joined12:44
metamorpy joined12:44
moritz watching git-imerge in process is really fascinating12:50
m0ltar joined12:51
jatt` joined12:52
jatt left12:52
jatt` left12:52
hunt3r left12:53
cagedwisdom left12:53
Silmarilion_ joined12:55
Silmarilion left12:57
LeMike left13:00
felipewm joined13:01
Watabou joined13:02
ben_alman joined13:02
CheckDavid joined13:03
JyZyXEL joined13:07
ben_alman left13:08
JyZyXEL how do i see what version i currently have cloned?13:08
_ikke_ git describe13:09
joelroa joined13:10
noxd left13:10
JyZyXEL its not very accurate though?13:10
BtbN it shows the accurate version description.13:10
brian___ joined13:11
ntio left13:11
_ikke_ JyZyXEL: What do you expect?13:11
if you want the hash: git rev-parse HEAD13:12
NimeshNeema joined13:13
sdouglas joined13:13
eletuchy joined13:13
joelroa left13:14
Naeb left13:14
Lemony left13:16
eletuchy left13:18
sdouglas left13:18
vvetter joined13:19
northfurr joined13:19
northfurr left13:19
northfurr joined13:19
h0bbit_ joined13:21
leninmhs2 joined13:21
Trudko joined13:21
bluesm joined13:22
harobed left13:25
WaReZ joined13:26
tgkokk joined13:26
enigmus joined13:27
ntio joined13:28
tgkokk left13:30
m0ltar left13:31
lindenle joined13:32
tgkokk joined13:32
Gizburdt joined13:32
ctp joined13:33
ctp left13:33
Anupkumar joined13:34
Watabou left13:35
tgkokk left13:37
adurity joined13:37
tgkokk joined13:38
lindenle_ joined13:38
xsbeats joined13:38
Ru00161154 joined13:41
netcarver joined13:41
adurity left13:42
netcarver left13:42
a-l-e left13:44
skorgon left13:46
Cerise joined13:49
shinnya left13:49
marcjs joined13:51
Gizburdt left13:53
CKyle joined13:54
Gizburdt joined13:54
hunt3r joined13:54
thegattaca joined13:56
lindenle_ left13:58
Gizburdt left13:58
Mitchbones joined13:58
jogos joined13:59
hunt3r left13:59
Gizburdt joined13:59
imizeropt joined14:00
sgambino joined14:01
sgambino left14:04
oskarkv left14:06
sgambino joined14:07
beastd joined14:08
goel88 joined14:08
joelroa joined14:11
eletuchy joined14:14
joelroa left14:15
leninmhs2 left14:16
adurity joined14:16
Watabou joined14:16
lindenle left14:18
eletuchy left14:19
Sicp joined14:19
lindenle joined14:19
aarapov joined14:21
sctt left14:22
francesca joined14:22
akitada left14:22
jnavila joined14:23
Gizburdt left14:24
kriks left14:24
Gizburdt joined14:25
Not_Whatever left14:26
Noldorin joined14:26
krizzii joined14:28
sgambino left14:28
simesy_ joined14:29
Gizburdt left14:30
skorgon joined14:30
bartman`` joined14:31
jon_x7 joined14:31
noxd joined14:32
werlley joined14:32
zequence joined14:34
goel88 Hi. In git commit message we write the extra message below --- . This --- should be just below Signed-Off line . Right ?14:34
simesy_ left14:34
diegoviola left14:35
herdingcat joined14:35
osse goel88: yes14:36
goel88 Thanks osse :)14:36
osse goel88: but you don't write it as part of the commit messagen when you commit. You do it after generating a patch with git format-patch14:36
hmm, although I suppose the end result will be the same14:36
goel88 Ok.14:37
kotk1 joined14:38
krizzii left14:39
jogos left14:39
SHyx0rmZ left14:39
kotk left14:40
jmpp left14:40
krizzii joined14:40
krizzii left14:41
metamorpy I have setup a local repo based on a remote repo, but when trying to do push i get: By default, updating the current branch in a non-bare repository is denied, because it will make the index and work tree inconsistent with what you pushed, and will require 'git reset --hard' to match the work tree to HEAD.14:41
...14:41
Any idea what I'm doing wrong?14:41
robbyoconnor joined14:41
xaq joined14:41
Raging_Hog joined14:42
_ikke_ !bare14:42
gitinfo 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/14:42
Macaveli left14:42
jmpp joined14:43
xaq left14:45
tomengland joined14:45
r0bby joined14:46
metamorpy so in other words, since i have a non-bare repo on the server, i get issues with push?14:47
xaq joined14:47
aarapovaarapov|afk14:48
gfixler yes, you can't [by default] push to a non-bare repo, because it has a working tree - this would allow anyone who can see your repo to push changes right into your working tree, which would be confusing and possibly disastrous14:48
JSharpe__ joined14:48
conan joined14:49
metamorpy aha14:49
gfixler a bare repo doesn't have a working tree, so it doesn't need the .git folder to sequester the git files, so it just puts them all right in the main folder, and the '.git' moves up (by convention) to the end of the folder name14:50
herdingcat left14:50
Watabou left14:50
robbyoconnor left14:50
tomengland left14:50
sgambino joined14:50
Rastus_Vernon joined14:51
tplaner joined14:51
tplaner left14:51
tplaner joined14:51
o9 joined14:52
metamorpy so lets stay, i have a server, i want to have a GIT repo on it, and on the same server have a web server what is currently in the master branch, i would setup the GIT repo as a --bare, and then set up another repo in the web directory with a working-copy? and just check out the master every once in a while to update the web server copy? and that way i can have a local repo on my laptop i work on, push this to the bare, and check out from t14:52
web-repo?14:52
if you get what i mean14:52
JSharpe_ left14:52
looper_ joined14:52
aarapov|afkaarapov14:53
cbreak metamorpy: !deploy14:53
gitinfo metamorpy: Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html14:53
aarapovaarapov|afk14:53
r0bbyrobbyoconnor14:54
jogos joined14:55
gfixler metamorpy: just to answer the question, you /can/ have a bare copy of your project on your server and checkout the latest master on it, but it's not a great idea, and it's frowned upon by most who know what they're talking about14:55
hunt3r joined14:55
_ikke_ metamorpy: It sounds nice to be able to do a git pull to update a project that is hosted, but it can cause all sorts of problems14:55
SHyx0rmZ joined14:56
Noldorin left14:57
hunt3r left14:58
metamorpy Thanks for the resources guys, appreciate it14:58
robbyoconnor left14:59
Matrixiumn joined14:59
aarapov|afkaarapov15:00
darryl_ joined15:00
herdingcat joined15:03
goel88 I am using git version 1.9.0.138 . I am not able to use --notes option in `git format-patch` command. Any specific reason or --notes not intended for it?15:05
herdingcat left15:05
Gamecubic joined15:06
johnkevinmbasco left15:06
lindenle left15:06
herdingcat joined15:07
_ikke_ goel88: Define not able to?15:07
starkhallo joined15:09
goel88 git format-patch --notes="blah blah" -115:10
cff left15:10
goel88 did not add "blah blah" to patch15:10
JerryT left15:10
h0bbit_ left15:11
joelroa joined15:12
Ru00161154 left15:12
ben_alman joined15:13
goel88 _ikke_ : `git format-patch --notes="blah blah" -1` did not add "blah blah" to patch ... (missed to add your id in message previous time)15:14
Matrixiumn left15:14
Silmarilion_ left15:14
eletuchy joined15:15
khmarbaise left15:16
joelroa left15:17
vince_prignano joined15:17
lindenle joined15:17
liquidmetal osse, you had told me about config.ini.template earlier - is there a way I can get a list of all such gists/docs15:18
ben_alman left15:18
Noldorin joined15:19
eletuchy left15:20
jaequery joined15:20
Octalot left15:21
dagnachew joined15:24
NimeshNeema left15:24
brian___ left15:25
Xethron joined15:25
souther joined15:26
imizeropt left15:27
Noldorin left15:27
psyl0n_ joined15:28
SorenHolm joined15:28
Matrixiumn joined15:29
arvind_khadri left15:29
bebna joined15:30
jogos left15:32
conan left15:32
sohail joined15:32
khmarbaise joined15:33
narrow_code Can I fork a github project without creating a separate repository for it? I'd rather merge it into a sub-folder and have github recognize it (giving credit to that person)?15:34
tgkokk left15:34
harobed joined15:34
narrow_code (I plan on making some changes of my own)15:34
grawity not in the Github sense of "forking", no15:34
tgkokk joined15:34
o9 left15:35
conan joined15:35
narrow_code So I should fork it in the github sense and add it as a sub-module?15:35
grawity although all commits have their author attached, so if you do things like subtree-merge into your own repository, it'll import the complete history15:35
or a submodule, yes15:35
Vinnie_win left15:35
narrow_code ok, thanks15:35
Naeb joined15:36
Sonderblade joined15:37
Noldorin joined15:38
AaronMT joined15:38
freestyl3r joined15:38
merica joined15:38
v1n joined15:39
tgkokk left15:39
psyl0n_ left15:39
iamtakin1iteasyiamtakingiteasy15:39
sohail left15:41
Kayra_ left15:41
ghostlines left15:42
jnavila_ joined15:43
jnavila left15:43
jnavila_jnavila15:43
sohail joined15:43
Silmarilion joined15:44
Gamecubic left15:44
Gamecubic joined15:44
herdingcat left15:46
Watabou joined15:47
zequence left15:49
jogos joined15:50
frogonwheels left15:51
gnugnu8 joined15:52
zequence joined15:53
Dougie187 joined15:54
brian___ joined15:54
aarapov left15:54
jatt joined15:55
jatt left15:55
jatt joined15:55
shingshang left15:55
wereHamster joined15:56
goel88 left15:58
john2x left15:59
Sly1986 left15:59
Xethron left15:59
Dougie187 left16:00
SorenHolm left16:01
arif-ali joined16:01
Mitchbones left16:02
herdingcat joined16:02
Kayra joined16:02
ehmatthes joined16:02
Noldorin left16:03
herdingcat left16:04
LuxuryMode joined16:05
jaequery left16:06
Leoneof left16:07
hyperair left16:08
Leoneof joined16:08
ghostlines joined16:08
ghostlines left16:08
ghostlines joined16:08
daito joined16:09
vurma left16:09
Gavrisimo joined16:09
merica left16:10
werlley left16:10
jatt left16:11
metamorpy left16:11
diegoviola joined16:11
vurma joined16:12
Trudko left16:12
BeardlessOne left16:12
joelroa joined16:13
daito left16:13
dc5ala left16:15
dsdeiz joined16:15
eletuchy joined16:15
dglambert joined16:16
SilverBln left16:17
joelroa left16:17
NimeshNeema joined16:17
jatt joined16:19
jatt left16:19
jatt joined16:19
eletuchy left16:20
Watabou left16:20
m0viefreak joined16:22
cff joined16:22
herdingcat joined16:22
Naeb left16:24
felipewm left16:24
DrZingo joined16:25
hyperair joined16:27
acharlieh joined16:28
jluc joined16:29
werlley joined16:30
justaguy left16:30
jaequery joined16:31
e^0 joined16:31
ssm2017 joined16:32
ssm2017 hello16:32
i would like to get the commits logs between 2 tags but when using : "git log tag1 tag2" it is displaying all tags anyway16:33
armyriad left16:33
armyriad joined16:33
unknwn- joined16:33
justaguy joined16:33
sohail left16:34
Sicp left16:34
grawity the range syntax is tag1..tag216:34
narrow_code left16:35
khmarbaise left16:35
p8952 left16:36
marcjs_ joined16:37
ssm2017 ah ok, i need to enter the 2 points :) thanks grawity for clarification16:37
marcjs left16:37
pheaver joined16:37
bwreilly joined16:39
RofricTheBearded left16:41
krizzii joined16:43
arif-ali left16:44
Tuna-Fish2 left16:45
valgrind joined16:46
ghostlines left16:47
tubaman joined16:47
Sonderblade left16:49
bwreilly left16:49
Nevik ssm2017: see also man gitrevisions16:51
gitinfo ssm2017: the gitrevisions manpage is available at http://jk.gs/gitrevisions.html16:51
Nevik (under "revision ranges")16:51
jftf joined16:53
n-a-n joined16:54
s4lt joined16:54
n-a-n hi all16:55
mourest left16:55
merica joined16:55
faizoff_ joined16:56
polyzen joined16:57
DrZingo left16:57
nnyk_ joined16:58
faizoff left16:58
nnyk_ left16:58
nnyk_ joined16:58
vince_prignano left16:59
vince_prignano joined16:59
Hello71 joined17:01
vince_prignano left17:01
Raging_Hog left17:01
metamorpy joined17:01
vince_prignano joined17:01
mani2399 joined17:01
micks9093 joined17:02
micks9093 left17:04
mongor joined17:04
ghostlines joined17:06
Silmarilion left17:07
ssm2017 thank you for precisions17:07
ssm2017 left17:07
shruggar left17:08
miraj9093 joined17:09
angelsl left17:10
Gamecubic left17:10
beastd left17:10
Gamecubic joined17:10
pierre1_ joined17:13
joelroa joined17:14
koell joined17:14
dik_dak joined17:15
eletuchy joined17:16
Watabou joined17:17
s4lt left17:18
joelroa left17:18
sdouglas joined17:18
mizu_no_oto joined17:19
osse liquidmetal: you mean the bot triggers?17:19
aarapov joined17:20
koell left17:20
liquidmetal osse, yes!17:20
osse !help17:20
gitinfo What do you need help with? Something with git? Tell us what's going on, and please be specific. For information on how to abuse me (I'm a bot!), see http://jk.gs/git/bot . Please be gentle.17:20
D9 left17:20
osse liquidmetal: http://jk.gs/git/bot/trigger.php17:20
eletuchy left17:21
shruggar joined17:21
brian___ left17:23
D9 joined17:23
D9 left17:24
hassoon joined17:24
QoS left17:24
mongor left17:25
khmarbaise joined17:25
LeMike joined17:26
hahuang61 joined17:26
fauxtoniche joined17:26
Draleth left17:26
dik_dak left17:27
Silmarilion joined17:27
s4lt joined17:28
s4lt left17:28
s4lt joined17:28
koell joined17:29
omegahm joined17:29
freestyl3r left17:30
hahuang61 left17:31
ghostlines left17:31
narrow_code joined17:31
mourest joined17:32
SorenHolm joined17:32
_ikke_ osse: there is ! trigger17:32
jftf left17:32
xaq left17:33
shruggar left17:33
osse oh17:34
shruggar joined17:34
sunny256 This is strange behaviour, isn't it? "git log --reverse -1" should list the first commit, but it shows the newest.17:35
ntio left17:35
grawity the limit is applied before --reverse17:35
sunny256 grawity: Yeh, I thought it was something like that, but it's quite counter-intuitive.17:36
ChanServ set mode: +o17:38
SorenHolm left17:38
mani2399 left17:38
Eugene changed the topic to: Welcome to #git, the place for git help and two aspirin | Current stable version: 1.9.0 | Start here: http://jk.gs/git | Seeing "Cannot send to channel" or unable to change nick? /msg gitinfo .voice | Why did the commit cross the rebase? To git to the other repo17:38
sgambino left17:38
Nevik sunny256: it makes sense, because finding the first commit is a potentially very long search17:39
acharlieh left17:39
axsuul joined17:40
osse Nevik: the --reverse makes it do that anyway17:40
narrow_code left17:40
osse why would 'git log --reverse -1' take any longer than 'git log --reverse'17:41
Nevik osse: what? we just discussed that the limit is applied first17:41
so git takes the first commit from HEAD, and reverses the display order17:41
osse Nevik: Ahh. I thought you were aruing why it should be like that17:41
*arguing17:41
Nevik whacks osse on the head17:42
Nevik turn on your telepathy before accusing me of nonsense17:42
ghostlines joined17:42
Tuna-Fish joined17:43
invinceable joined17:43
jcvfen joined17:43
osse Nevik: so you agree the current behaviour is bleh ?17:43
:)17:43
Nevik no17:43
the current behavior makes sense17:43
cloud|nix joined17:43
jogos left17:43
osse why?17:44
Nevik >> <Nevik> sunny256: it makes sense, because finding the first commit is a potentially very long search17:44
osse but that's what the user wants!17:44
Nevik no17:44
that's what THIS user THOUGHT this meant17:44
but the user was wrong17:44
osse yes he was17:45
rq60 joined17:45
Nevik i guess the manpage could be one word more explicit17:45
jmpp left17:45
osse He was wrong about what it meant. But that doesn't mean he's wrong in wanting to see the first commit. I for one think --reverse -1 *should* mean what he thought it meant17:46
Nevik but looking at the first commit is really rare. so i dont think it's worth changing the way log applies the limits17:46
jatt left17:46
acharlieh joined17:46
Nevik no, i think the way the limits are applied are fine17:46
there could be another switch though17:46
for starting at the root, or whatever17:47
Tuna-Fish left17:47
Nevik root(s)*17:47
jogos joined17:47
osse but that switch already exists: --reverse17:47
Nevik no, --reverse reverses the *display* order of the selected commits17:47
it does not reverse *search* order17:48
osse ugh17:48
that's impossible anyway17:48
Nevik that's the one word more explicitness i mentioned17:48
osse: it's not. it's just inefficient (find all commits, then walk over that list in reverse)17:48
Mitchbones joined17:48
Tuna-Fish joined17:49
osse I don't see how that exact description is any different from --reves17:49
--reverse17:49
felipewm joined17:50
Nevik it's actually quite explicit ("Output the commits in reverse order.")17:50
felipewm left17:50
Silmarilion left17:50
mizu_no_oto left17:50
Nevik maybe it could be "Output matching/selected commits in reverse order."17:50
Watabou left17:50
vu joined17:50
sunny256 It's probably a good thing after all to limit the search before the output id modified by reverse. What this command actually says is, "List the 1 newest commits, and then reverse the result".17:50
pfg joined17:50
osse I meant your description of the hypothetical flag17:51
godgodgodgo joined17:52
Nevik sunny256: correct17:52
sgambino joined17:52
Nevik it might help if the manpage could mention that tidbit17:52
sunny256 With for example "git log -1000 --reverse", it says "show me the 1000 newest commits, and display it in reverse". As it has to travel all the way through the DAG from the newest to the oldest commut in all cases, this is the only option.17:53
Nevik ("Limits are applied before reversing" or whatever)17:53
sunny256 Nevik: Indeed.17:53
starkhallostarkhalo17:53
Nevik sunny256: email the !list right now!17:53
gitinfo sunny256: [!mailing_list] The mailing list can be reached via [email@hidden.address] You don't need to subscribe to the list, you will always be put in cc on reply. Read archives at http://j.mp/gitlist17:53
osse Nevik: it does17:53
Nevik osse: where?17:53
sunny256 Nevik: Yup. I can prepare a patch for this.17:53
osse Nevik: last paragraph under "Commit limiting"17:53
Nevik: before the actual description of the options17:54
Nevik well, imo mentioning it again in --reverse's paragraph cant hurt17:54
jftf joined17:55
cads joined17:55
Nevik sunny256: feel free to drop that email, maybe it gets accepted :)17:55
gnugnu8 left17:55
krizzii left17:56
krizzii joined17:57
krizzii left17:58
sunny256 Nevik: Yep, I'm clarifying the docs there now a bit.17:59
khmarbaise left17:59
Nevik awesome17:59
mizu_no_oto joined17:59
Noldorin joined17:59
krizzii joined17:59
krizzii left18:00
nilg left18:00
miraj90931 joined18:01
nilg joined18:01
gnugnu8 joined18:02
mtk joined18:03
miraj9093 left18:03
francesca left18:04
santiissopasse joined18:05
arif-ali joined18:05
santiissopasse I have an older commit where I accidentally included files I didn't want to include. How can I edit the commit to only not include those files, without losing any changes I've made since then?18:06
krizzii joined18:06
dagnachew left18:07
rethus joined18:07
milki santiissopasse: this is a textbook example of man git rebase -i18:08
gitinfo santiissopasse: the git-rebase manpage is available at http://jk.gs/git-rebase.html18:08
greggrot1 joined18:08
milki santiissopasse: !rewriting applies here though18:08
gitinfo santiissopasse: [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum18:08
mizu_no_oto left18:08
Vivekananda joined18:09
dagnachew joined18:09
SorenHolm joined18:09
cloud|nix left18:09
krizzii left18:10
dougsland joined18:10
hardenedapple joined18:12
Tuna-Fish left18:14
joelroa joined18:14
LuxuryMode left18:16
khmarbaise joined18:16
mtk left18:17
ss1891 joined18:17
Trudko joined18:17
eletuchy joined18:17
joelroa left18:19
aarapov left18:20
mtk joined18:20
acharlieh left18:21
werlley left18:21
arietis left18:21
eletuchy left18:22
phanimahesh left18:23
kcj joined18:24
Noldorin left18:24
NimeshNeema left18:24
Vampire0_ joined18:25
santiissopasse milki: thanks18:25
Vampire0 left18:25
retnuh joined18:26
cads left18:26
jftf left18:26
mourest left18:26
LeMike left18:27
eaj left18:28
dougsland left18:28
SorenHolm left18:28
hahuang61 joined18:29
Silmarilion joined18:30
greggrot1 left18:30
MeanderingCode joined18:30
_lynX joined18:31
tirengarfio__ joined18:31
MeanderingCode okay, new blackmagic corner case i don't fathom: i'm squashing old history and getting patch merge conflicts and it makes no sense to me18:31
my strategy is to check out the commit i want to redifine as "initial commit"18:32
thiago ok18:32
MeanderingCode as18:32
as 'git checkout --orphan temp <SHA>'18:32
commit18:32
tirengarfio_ left18:33
MeanderingCode now i 'git rebase --onto temp <SHA of that same pre-squash> master'18:33
thiago is your commit history entirely linear from <SHA> to HEAD?18:33
MeanderingCode definitely not18:33
thiago ok, problem 118:33
are there any merges from before SHA?18:33
MeanderingCode no18:34
Noldorin joined18:34
thiago here's a suggestion:18:34
mizu_no_oto joined18:34
thiago echo <SHA> > .git/info/grafts18:34
git filter-branch --all18:34
MeanderingCode should i abort this rebase first?18:35
thiago yes18:35
MeanderingCode or do it while at this conflict?18:35
okay18:35
and does it matter what branch is checked out?18:35
the "--all" suggests it doesn't matter18:35
that needs one more arg, or so18:36
hmm18:36
dagnachew left18:36
hahuang61 left18:36
thiago probably git filter-branch -- --all18:37
Vampire0_ left18:37
MeanderingCode well that's running through shas on the stdout, so s'th is happening18:37
edrisse joined18:39
MeanderingCode okay, some "suchandsuch rewritten" msgs, some "unchanged", several warnings...18:39
MeanderingCode looking at git log graph18:39
edrisse left18:40
Balliad left18:40
mani2399 joined18:41
mani2399 left18:41
MeanderingCode wow. that looks to have worked...but just to check on things:18:41
Guest96644 joined18:41
takamichi left18:41
MeanderingCode tags look to be attached to the commits where they're supposed to be, but filter-branch is warning me that i "said to rewrite tagged commits, but not the corresponding tag"18:42
doener_ left18:42
Guest96644 https://www.google.com/search?client=ubuntu&channel=fs&q=git+log+graph&ie=utf-8&oe=utf-818:42
MeanderingCode after every output line where it says it rewrote the tag :/18:42
diegoviola left18:43
Guest96644 ;/18:43
:/18:43
Guest96644 left18:43
totokaka joined18:45
MeanderingCode thiago: thanks for helping here18:45
tonyj joined18:45
thiago MeanderingCode: you're welcome18:45
SegFaultAX left18:45
cads joined18:45
BadProphet joined18:45
Zaknefain left18:46
MeanderingCode still can't rebase onto a rewritten first commit (the first commit is where i want it, i just want to rewrite the commit msg to indicate it's where i forked another project)18:46
tonyj left18:46
arietis joined18:46
totokaka I have a kind of strange situation. I copied a project to create a new one with it as base. Now I just did the first commit, but ofc I forgot to delete .git. Is there any way I can undo the latest commit and just put it into the working tree. That way I can just delete .git, do 'git init' and commit again.18:46
jftf joined18:46
Zaknefain joined18:46
MeanderingCode also, is it relevant, those warnings about tag rewrites?18:46
bwreilly joined18:46
totokaka LOL, I don't need to do that. I can just delete .git.18:47
tonyj joined18:47
SegFaultAX joined18:47
diegoviola joined18:48
SegFaultAX left18:48
aarapov joined18:48
thiago MeanderingCode: don't rebase if you have merges following it18:49
MeanderingCode: you need to use filter-branch with a proper filter18:49
MeanderingCode i see18:49
i'll have to read up on filter-base. thanks for the direction18:49
tonyj left18:49
MeanderingCode filter-branch18:49
tonyj joined18:50
Vampire0_ joined18:50
SegFaultAX joined18:50
Zaknefain left18:51
sdouglas left18:51
valgrind left18:51
cloud|nix joined18:51
Aa4on joined18:51
dagnachew joined18:51
sdouglas joined18:51
grawity totokaka: why are you deleting all of it anyway?18:52
totokaka To be able to start off with a clean history18:52
grawity why?18:52
totokaka I basically deleted everything from the old repo18:52
I didn't want the old history in it18:52
thiago why?18:53
bwreilly left18:54
Trudko left18:54
roymiloh joined18:55
cloud|nix left18:56
kpreid left18:56
sdouglas left18:56
pheaver left18:56
bebna left18:57
dsdeiz left18:57
tonyj left18:57
tonyj joined18:57
akiress joined18:59
longbeach joined19:00
SegFaultAX left19:01
acharlieh joined19:01
sdouglas joined19:01
Vinnie_win joined19:01
Sound left19:02
bgerber left19:03
faizoff_ left19:03
ArcTanSusan joined19:03
Silmarilion_ joined19:04
acharlieh left19:04
dagnachew left19:07
Silmarilion left19:08
hassoon left19:09
SegFaultAX joined19:09
jaequery left19:09
gimpygoo joined19:09
dagnachew joined19:09
ewet left19:10
Tuna-Fish joined19:12
bartman`` left19:12
Nicholas_Rishel joined19:12
Gavrisimo left19:14
francesca joined19:14
ArcTanSusan left19:14
nlogn left19:15
Anupkumar left19:15
joelroa joined19:15
bgerber joined19:16
ArcTanSusan joined19:17
greggrot1 joined19:17
faizoff joined19:17
Balliad joined19:18
eletuchy joined19:18
Balliad left19:20
arietis left19:20
joelroa left19:20
jatt joined19:20
jatt left19:20
jatt joined19:20
nlogn joined19:21
dagnachew left19:22
cff left19:22
saorge_ joined19:22
nZac joined19:22
nlogn left19:22
upene left19:22
eletuchy left19:23
RofricTheBearded joined19:23
scarabx joined19:23
aard_ joined19:24
mtk left19:24
jftf left19:24
RofricTheBearded left19:24
saorge left19:25
Tuna-Fish left19:25
noisewaterphd_ joined19:27
mizu_no_oto left19:27
mani2399 joined19:27
mani2399 left19:27
mani2399 joined19:28
arietis joined19:29
aarapov left19:29
conan left19:29
rq60 left19:30
nilg` joined19:30
conan joined19:30
dagnachew joined19:30
khmarbaise left19:30
aarapov joined19:30
rq60 joined19:30
conan left19:31
miraj90931 left19:31
jdav_gone joined19:31
mizu_no_oto joined19:32
conan joined19:33
ajikeshi joined19:34
uma joined19:35
sluther joined19:35
joelrobichaud left19:35
Zaknefain joined19:35
Zaknefain left19:35
uma please help me with the issue when i try to send patch using git send-email it shows Unable to initialize SMTP properly. Check config and use --smtp-debug.19:35
veebers joined19:36
thiago pastebin the output with --smtp-debug19:36
shuaib joined19:36
Gizburdt joined19:40
cagedwisdom joined19:40
jughead9 joined19:40
Nicholas_Rishel left19:41
shuaib left19:43
misterpink joined19:44
marcjs_ left19:44
jontem joined19:44
mizu_no_oto left19:47
Balliad joined19:47
nZac left19:48
codezomb joined19:49
bwreilly joined19:50
Watabou joined19:50
dagnachew left19:51
jast left19:51
codezomb left19:52
Balliad left19:53
george2 joined19:54
mizu_no_oto joined19:55
freestyl3r joined19:55
Jonathanchasr joined19:55
Balliad joined19:56
retnuh left19:56
marcjs_ joined19:57
dagnachew joined19:58
uma left19:58
ryanakca_ryanakca19:58
diegoviola left19:58
jast joined20:01
holybit joined20:03
marcjs_ left20:04
Silmarilion__ joined20:04
SorenHolm joined20:04
ArcTanSusan left20:06
metamorpy left20:06
Nicholas_Rishel joined20:06
Jonathanchasr left20:08
Silmarilion_ left20:08
pseudocfoch joined20:08
pseudocfoch hello20:09
gitinfo pseudocfoch: 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.20:09
daito joined20:10
pseudocfoch If I modify I file in my working tree in the master. While I don't commit it, If I do 'git pull --rebase' I will lose these changes to this file, right?20:10
Or am I wrong20:10
?20:10
gitinfo set mode: +v20:11
skorgon pull will fail20:11
it will warn you and fail before overwriting uncommited changes20:11
arietis left20:12
nlogn joined20:13
vurma left20:13
cbreak in particular, the fetch will succeed, but the rebase will fail.20:13
rebasing with uncommitted changes is not possible.20:13
arif-ali left20:14
Gavrisimo joined20:14
daito left20:14
pseudocfoch Because in the master I have an script I want to modify (modify a uri) to be able to execute the program in the directory which I have my repo. But... in the future I will want to do some "git pull --rebase" to "update" to the last changes What could I do? Because I need to modify that script to run the program/20:15
godgodgodgo left20:15
skorgon commit or stash the change before the rebase20:15
axl_ left20:16
joelroa joined20:16
roymiloh left20:16
lolmaus left20:17
pseudocfoch the origin repo is not mine20:17
FenderQ joined20:17
skorgon so?20:17
pseudocfoch skorgon: so... it doesn't matter?20:18
skorgon why would it?20:18
Dougie187 joined20:18
eletuchy joined20:19
Gavrisimo left20:19
joelroa left20:21
axl_ joined20:21
longbeach left20:22
Kayra left20:22
Kayra joined20:22
francesca left20:23
eletuchy left20:23
xlinkz0 left20:23
cbreak pseudocfoch: just commit it20:23
FortySix2 joined20:24
cbreak pseudocfoch: if you don't want to commit it, kill the changes, they are clearly not worth it to be kept :)20:24
(otherwise you would commit them)20:24
Tuna-Fish joined20:24
Kayra left20:27
m8 joined20:27
RaceCondition joined20:27
pseudocfoch left20:28
Tuna-Fish left20:29
Balliad left20:30
Zaknefain joined20:30
Balliad joined20:30
nicedice left20:31
ToreadorVampire left20:33
ghostlines left20:34
retnuh joined20:34
marcjs_ joined20:34
Zaknefain left20:35
cads left20:35
Balliad left20:35
ghostlines joined20:35
cads joined20:36
dagnachew left20:37
nszceta joined20:37
nszceta left20:38
mtk joined20:38
santiissopasse left20:39
Zifre_ joined20:39
salamanderrake left20:39
greggrot1 left20:40
axl_ left20:40
jcs222 left20:40
jackneill left20:41
marcjs_ left20:41
nszceta joined20:41
blackmesa joined20:42
mtk left20:42
starkhalo left20:43
Zifre left20:43
Dougie187 left20:43
Dudi joined20:43
Lemony joined20:44
mizu_no_oto left20:45
harobed left20:45
Kicer86 left20:46
polyzen left20:46
veebers left20:47
Exancillatus joined20:48
harobed_ joined20:49
harobed_ left20:49
shinnya joined20:49
karpoff left20:49
harobed_ joined20:49
karpoff joined20:50
harobed_ left20:50
lunaphyte_ left20:50
dagnachew joined20:50
noisewaterphd_ left20:50
karpoff left20:50
harobed_ joined20:50
harobed_ left20:50
wongon joined20:50
harobed_ joined20:51
harobed_ left20:51
noisewaterphd_ joined20:52
harobed_ joined20:52
harobed_ left20:52
harobed_ joined20:53
NikitaTropin joined20:53
harobed_ left20:53
Kayra joined20:53
Zifre_Zifre20:53
Bosox20051 joined20:53
aarapov left20:53
harobed_ joined20:53
harobed_ left20:54
greggrot1 joined20:54
jpierre03 joined20:54
Kayra left20:54
harobed_ joined20:54
Kayra joined20:55
Exancillatus left20:55
Exancillatus joined20:56
marcjs_ joined20:57
kcj left20:59
Kayra left20:59
iamtakingiteasy left21:00
iamtakin1iteasy joined21:01
Tuna-Fish joined21:04
Silmarilion_ joined21:05
Samual joined21:05
marcjs_ left21:05
veebers joined21:06
noisewaterphd_ left21:06
Silmarilion__ left21:08
ajikeshi left21:08
tpollard joined21:10
Samual left21:10
veebers left21:10
jceb joined21:10
Samual joined21:10
koda left21:11
greggrot1 left21:11
veebers joined21:12
SorenHolm left21:13
jnavila left21:14
SorenHolm joined21:15
Gavrisimo joined21:15
Nicholas_Rishel left21:16
RaceCondition left21:16
marcjs_ joined21:16
gazprom joined21:16
Mitchbones left21:17
RaceCondition joined21:17
joelroa joined21:17
trewe joined21:17
eletuchy joined21:19
Gavrisimo left21:20
Sabbath joined21:20
Gizburdt left21:21
joelroa left21:21
mani2399 left21:22
Gizburdt joined21:22
marcjs_ left21:22
jcs222 joined21:23
eletuchy left21:23
vital left21:24
Gizburdt left21:24
Zaknefain joined21:24
merica left21:24
Gizburdt joined21:24
Sabbath left21:24
tomengland joined21:25
zapb left21:25
salamanderrake joined21:25
Fandekasp joined21:25
santiissopasse joined21:27
Tuna-Fish left21:27
m8 left21:27
vkrest joined21:28
sgambino left21:29
Zaknefain left21:29
Gizburdt left21:29
merica joined21:29
WaReZ left21:30
tomengland left21:30
hoschi left21:32
Gizburdt joined21:32
conan left21:32
Tuna-Fish joined21:33
sgambino joined21:33
axl_ joined21:33
NikitaTropin left21:33
tgkokk joined21:34
pheaver joined21:36
Nicholas_Rishel joined21:36
starkhalo joined21:36
ferreum left21:37
ferreum joined21:37
Gizburdt left21:38
ferreum left21:38
ferreum joined21:38
gazprom left21:38
Gizburdt joined21:39
jceb left21:39
jaequery joined21:40
jaequery left21:40
pheaver left21:41
hyperboreean joined21:41
jaequery joined21:41
jaequery left21:41
maslowbeer joined21:41
jaequery joined21:42
nszceta left21:42
Octalot joined21:42
roymiloh joined21:42
madewokherd joined21:43
Gizburdt left21:43
tvw joined21:44
nszceta joined21:45
jughead9 left21:45
ben_alman joined21:46
pfg left21:46
sohail joined21:46
jluc left21:48
jughead9 joined21:48
pfg joined21:49
WaReZ joined21:50
ben_alman left21:51
sohail left21:52
chessguy left21:52
marcjs_ joined21:53
Bumba joined21:53
Bumba hi21:53
gitinfo Bumba: 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.21:53
Kayra joined21:53
santiissopasse left21:53
santiissopasse_ joined21:54
axl_ left21:55
Silmarilion_ left21:55
invinceable left21:56
teran joined21:56
jaequery left21:57
jcs222 left21:57
johnw left21:57
Kayra left21:58
Dudi left21:59
JerryT joined21:59
simesy joined22:00
jcs222 joined22:00
pwnz0r joined22:03
Spyro How do I remove tags from a remote repo?22:03
skorgon Spyro: you don't. !rewrite22:04
gitinfo Spyro: Rewriting public history is not recommended. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum22:04
pwnz0r left22:04
Spyro does that work to remove tags?22:04
skorgon well, you can remove tags, but that won't update the tag for anybody who already has it22:05
hardenedapple left22:05
thiago Spyro: people who already have the tags will continue to have them22:05
skorgon so, if people already pulled your tag, it won't get updated, even if you choose to rewrite it22:05
adurity left22:05
Spyro nobody's pulled from me22:06
chessguy joined22:06
Spyro I'm very unpopular :P22:06
arif-ali joined22:06
thiago then just git push --delete --tag xyz22:06
FUZxxl joined22:07
FUZxxl Hello22:07
ghostlines left22:07
FUZxxl Is there a git command to figure out if there has ever been a file named foo in a certain git repository?22:07
thiago yes22:07
git log -- directory/foo22:07
FUZxxl thiago: What if I don't know in what directory the file is?22:08
takamichi joined22:08
m0viefreak FUZxxl: it takes globs22:08
FUZxxl ok22:09
m0viefreak git log -- '*/foo'22:09
be sure to quote it, so git interprets the * and not your shell22:09
FUZxxl thank you22:09
thiago you may want to use git whatchanged instead of git log then22:10
Gavrisimo joined22:10
m0viefreak isn't whatchanged deprecated?22:10
FUZxxl ok22:11
santiissopasse_ left22:13
MattMaker joined22:13
pheaver joined22:13
standyro1 joined22:14
Gavrisimo left22:14
cfoch joined22:14
francesca joined22:16
Gamecubic left22:16
Tuna-Fish left22:16
Gamecubic joined22:16
joelroa joined22:18
Zaknefain joined22:18
nevyn joined22:19
ehmatthes left22:19
tvw left22:19
Bumba left22:19
Tuna-Fish joined22:19
eletuchy joined22:20
MattMake_ joined22:21
MattMaker left22:22
joelroa left22:22
Sonderblade joined22:23
Zaknefain left22:23
Vampire0_Vampire022:24
eletuchy left22:24
teran_ joined22:25
mishok13 left22:25
xaq joined22:25
teran__ joined22:26
ferreum left22:27
teran left22:27
rawtaz gitlab is really looking nice22:28
teran_ left22:29
thiago so I hear22:29
dsdeiz joined22:29
Freeman42 left22:30
rawtaz quite funny that github still have their network graph horizontally laid out22:30
gitlab apparently managed to realize how stupid that is, and made it vertical instead :D22:30
it's a bit slow, but that might be just the demo page22:32
jcs222 left22:32
pantsman left22:32
sdouglas left22:33
sdouglas joined22:33
takamichi left22:33
SHyx0rmZ left22:34
hahuang61 joined22:35
MattMake_ left22:37
MattMaker joined22:37
francesca left22:37
vkrest left22:37
sdouglas left22:38
hahuang61 left22:39
pheaver left22:39
Dougie187 joined22:40
tomengland joined22:40
SorenHolm left22:40
Tuna-Fish left22:41
Tuna-Fish joined22:41
roymiloh left22:43
ArcTanSusan joined22:43
woollyams joined22:44
sohail joined22:44
WaReZ left22:45
harobed_ left22:46
blackmesa left22:47
blackmesa joined22:47
AccessibleWeb joined22:47
AccessibleWebreskp22:48
xender rawtaz: Why "stupid"?22:51
rawtaz i'd go for silly if that makes you feel better :)22:52
xender I think humans are versatile enough that it doesn't make difference...22:52
thevishy left22:52
khmarbaise joined22:52
recycle left22:52
lithiumjake left22:52
rawtaz xender: hm, start reading all your text from top to botton (i.e. vertically instead of horizontally) and you'll see that we find some things easier than others :)22:53
xender I rather wonder, why orientation of graph matters at all. Especially, when gitk is serving spaghetti sometimes22:53
Kayra joined22:53
sluther left22:53
xender rawtaz: Chinese done that for tousands of years I think. So it worked ;)22:53
rawtaz xender: but to answer your Q, i think it makes way more sense to scroll vertically than horizontally, just like web pages22:53
hehe good point :P22:54
makubi left22:55
xender Yeah, in case of scrolling it matters. But AFAIK Github's network view shows only a few last commits22:55
JTAAHV5T joined22:55
rawtaz mhm22:55
xender It's mote "who forks who" than a layout of branches...22:56
*more like22:56
aard_ left22:56
xender My writing gets bad now...22:56
Exancillatus left22:56
ArcTanSusan left22:56
Exancillatus joined22:57
FortySix2 left22:57
Exancillatus left22:58
Kayra left22:58
Rastus_Vernon left22:59
makubi joined23:00
Balliad joined23:00
mdub joined23:00
woollyams left23:00
JerryT_ joined23:01
francesca joined23:01
hunt3r joined23:01
JerryT left23:01
Yomi joined23:02
Balliad left23:02
Balliad joined23:02
chrisshattuck joined23:02
standyro1 left23:02
leeN left23:03
chessguy left23:03
sdouglas joined23:04
tgkokk left23:04
Kayra joined23:05
sohail left23:06
whitemoustache joined23:06
jogos left23:06
jnewt joined23:07
lithiumjake joined23:07
maestrojed joined23:07
jmpp joined23:07
jmpp greets!23:08
Exancillatus joined23:08
rawtaz hello23:08
jmpp is it customary to delete merged branches?23:08
scarabx left23:08
jnewt when i get a "both modified", how do i know which one is in my working directory? in this case i tried stash pop, and got a conflict. is my working file the one from stash, or the one that was there pre-pop?23:08
osse jnewt: it's a partially resolved file23:08
sdouglas left23:08
jmpp if the file is merge'able, it should have conflict markers within it23:08
rawtaz jmpp: if you are not planning on doing any more fork on the merged branch, then sure, not much reason to keep it23:08
osse jnewt: so where Git managed to do a merge you will see the merged result, and in other places you'll see conflict markers23:09
jmpp so you have to look through it and decide which blocks you want to keep, and then mark it as resolved23:09
reskp left23:09
rawtaz jmpp: if it's a branch you pushed so others can merge it (e.g. upstream), it might be good to have it around until they did the final merge though, in case they want you to add something23:09
jmpp jnewt: if it's a binary file, then you should have gotten two files: file~HEAD and file~SOMETHING-ELSE23:09
jnewt i really just want it to use the stash file. can i just tell it to use that?23:09
it's not binary23:10
bsaaasd2 joined23:10
skorgon jnewt: git checkout --theirs <file>23:10
osse jnewt: git checkout --theirs <file> should do the trick23:10
jmpp rawtaz: I don't think I'll be working any more on that branch... but if for some reason I want to look for something in it, a commit, a log, something...?23:10
I can find everything in master, since it's merged?23:10
osse jmpp: yep23:10
Gavrisimo joined23:11
rawtaz jmpp: deleting the branch will just delete the pointer that the branch is (it's a pointer to a commit), the history will stay intact23:11
jmpp: try it by doing a !lol before and after you delete the merged branch23:11
gitinfo jmpp: A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all23:11
rawtaz jmpp: youll see that the history is the same, except that the label for the branch, by the commit it was on, is gone23:11
reskp joined23:12
Zaknefain joined23:13
jmpp if that's so, I could recreate the branch at any point, by branching master from where it was originally branched, right?23:13
greggrot1 joined23:14
Discovery joined23:14
DiscoveryGuest4659923:14
Gavrisimo left23:15
skorgon jmpp: as long as a commit is part of a branch or tag it will always be in your repo. and you can always start/create branches at any arbitrarily chosen commit/tag/branch23:16
reskp left23:16
jmcantrell joined23:17
looper_ left23:17
Zaknefain left23:17
jmpp I wonder... what happes if I branch master from HEAD~n and then merge it into master back again at HEAD~(n-m), as to simulate having created the branch, worked on it, and then merged it back in...23:18
transparent, auto merge of all the files?23:18
weltling joined23:18
BadProphet left23:19
greggrot1 left23:19
jmpp sorry, the merge would be at HEAD~(n+m)23:19
joelroa joined23:19
BadProphet joined23:19
jmpp hhhmmm, no, the future of n would indeed be n - m, not n + m23:19
kotk1 left23:19
jmpp adding more to n would only more the pointer backwards23:20
s/more/move/23:20
eletuchy joined23:21
skorgon jmpp: i have no clue what you wanna do here, but you should probably just !try23:21
gitinfo jmpp: [!tias] Try it and see™. You learn much more by experimentation than by asking without having even tried. If in doubt, make backups before you experiment (see !backup). http://gitolite.com/tias.html may help with git-specific TIAS.23:21
whitemoustache left23:22
jmpp skorgon: no, not wanting to do anything, just wondering about how the repo history would look like if I tried to recreate the branch, from this discussion that the history wont be affected by deleting it23:22
just a thought experiment, not attempting anything ;)23:23
joelroa left23:23
skorgon well, just do 'git branch foo <commit>' that will start a branch at the given commit and you're done23:23
BadProphet left23:23
eletuchy left23:25
francesca left23:26
elighcash joined23:27
teran__ left23:27
chessguy joined23:28
jughead9 left23:28
jmpp nods23:29
jmau5 joined23:30
mdub left23:30
skyflash_ left23:32
Balliad left23:34
sluther joined23:34
tomengland left23:35
jmau5 left23:35
jmau5 joined23:36
woollyams joined23:37
khmarbaise left23:38
jaequery joined23:38
tplaner left23:39
gnugnu8 left23:39
reskp joined23:40
jmau5 left23:40
daito joined23:41
akiress left23:42
reskp left23:45
D4N3 joined23:45
Dougie187 left23:45
ngladitz left23:45
daito left23:46
ben_alman joined23:46
russm joined23:46
maslowbeer left23:48
elighcash left23:49
elighcash joined23:49
D4N3 left23:49
D4N3 joined23:49
D4N3danemacmillan23:50
ben_alman left23:50
dagnachew left23:51
mwarning joined23:51
danemacmillan left23:51
dagnachew joined23:52
johnkevinmbasco joined23:52
vince_prignano left23:52
danemacmillan joined23:52
nszceta left23:53
elighcash left23:53
mwarning hi, I've have messed up my git repository, maybe someone can give me a hint how to fix it: https://github.com/mwarning/KadNode.git23:53
milki mwarning: why dont you first define "messed up"23:54
mwarning I have made an empty dummy commit that is not showing up during rebase23:54
thiago what's an empty dummy commit?23:54
how did you do the rebase23:54
seksifemale joined23:54
seksifemale hi23:54
gitinfo seksifemale: 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.23:54
thiago and why are you saying it's "not showing up"23:54
mwarning a commit without changes and a name without any meaning23:55
nfk left23:55
mwarning sec please23:55
thiago so git commit --allow-empty?23:55
mwarning I haven't used that command yet23:55
nszceta joined23:55
Nicholas_Rishel left23:56
thiago how did you create an empty commit without that?23:56
sohail joined23:56
unsigned_unsignedint23:56
mwarning I don't remember anymore (at least I know I haven't used --allow-empty)23:56
thiago if you use git show, it shows no diff, right?23:57
ben_alman joined23:57
conan joined23:57
ariscop joined23:58
Diemuzi joined23:58
gitinfo set mode: +v23:58
mwarning thiago, git show shows me the diff of my last commit23:58
thiago if you use git show on that commit23:58
mwarning right, the commit in question is empty23:59
tomengland joined23:59
danemacmillan left23:59
thiago ok23:59
mwarning no diff is displayed, just the commit message and such23:59
danemacmillan joined23:59
thiago it must have been an --allow-empty, because git commit doesn't allow empty commits otherwise23:59
anyway, how did you rebase?23:59

Logs Search ←Prev date Next date→ Channels Documentation