IRCloggy #git 2014-07-07

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-07-07

meLon left00:00
meLon joined00:01
otter768 joined00:01
str joined00:03
LucasTT joined00:03
Reskp left00:04
noxd joined00:04
hyperair left00:05
dccc joined00:05
meLon left00:06
meLon joined00:06
nordicdyno left00:06
Lyqyd joined00:07
kukks joined00:09
eaj joined00:09
the8thbit joined00:10
blackmesa left00:11
Segfault_ left00:12
Segfault_ joined00:13
dccc left00:13
eaj left00:13
stamina joined00:13
ropav left00:14
_ikke_ left00:14
fatalhalt left00:14
_ikke_ joined00:15
fatalhalt joined00:15
ropav joined00:17
linduxed left00:19
claudiop joined00:19
imachuchu left00:20
Nizumzen left00:20
meLon left00:20
meLon joined00:21
lolmaus left00:21
claudiop Hi. If i merge two branches, lets say "master" and "change", master creates a new commit merging both, but "change" keeps its pointer in the same place. To make it advance to the same as master i need to fast forward, correct? Whats the correct command for this situation?00:22
imMute claudiop: on change: git merge --ff-only master00:24
stamina left00:24
martinklepsch joined00:25
nfk left00:25
meLon left00:25
claudiop imMute: Do i need to go back, or can i solve it after a successful merge without fast forward?00:26
meLon joined00:26
imMute no, just switch to change and run the command I gave you00:26
although, once you merge a branch into master, it's existence is kinda pointless. most people just delete it.00:26
claudiop if i append --amend will it overwrite the previous merge? Yes, but i will use that branch again later00:27
dccc joined00:27
claudiop Or deleting the branch and re-adding it again will have the same result?00:28
imMute I dont know what will happen if you try to --amend a merge commit. and yes, deleting then recreating a branch would do the same thing.00:29
(branches are just pointers)00:29
EminenceHC joined00:29
martinklepsch left00:29
Trudko left00:29
il_ joined00:29
claudiop imMute: Thanks for your answers ;)00:30
toothrot joined00:30
unreal joined00:31
SethM joined00:32
appleby left00:32
EminenceHC left00:34
MattMaker left00:34
meLon left00:35
meLon joined00:36
linduxed joined00:36
MattMaker joined00:36
Shelikhoo joined00:36
Shelikhoo left00:36
dccc left00:38
linduxed left00:42
claudiop left00:44
Guest32342 left00:45
meLon left00:45
meLon joined00:46
linduxed joined00:46
compact joined00:47
netj left00:48
netj joined00:48
lolmaus joined00:49
Hello71 left00:49
Hello71 joined00:49
meLon left00:50
meLon joined00:51
Lyqyd left00:52
bezet joined00:53
dccc joined00:55
nnyk_ joined00:55
meLon left00:56
meLon joined00:56
endiruna left00:56
nnyk left00:56
linduxed left00:57
bezet left00:58
snuffeluffegus left00:58
rkazak_ joined00:58
bgerber left00:58
bgerber joined00:59
linduxed joined00:59
Skrypter_ joined01:00
Reskp joined01:00
Skrypter left01:00
meLon left01:00
meLon joined01:01
noxd left01:02
User458764 joined01:02
User458764User458764_NotHe01:02
eaj joined01:03
Vampire0_ joined01:03
linduxed left01:04
Reskp left01:05
meLon left01:06
meLon joined01:06
dccc left01:06
Vampire0 left01:07
eaj left01:07
Ann21 joined01:08
Ann21 left01:08
duckydan left01:09
weiyang joined01:09
meLon left01:11
meLon joined01:11
kukks left01:14
duckydan joined01:15
meLon left01:15
meLon joined01:16
User458764_NotHe left01:16
tummy left01:16
moritzschaefer joined01:17
harish_ joined01:17
moritzs left01:20
meLon left01:20
meLon joined01:21
dccc joined01:22
dsdeiz joined01:23
gsingh93_ joined01:23
robustus left01:25
jeffreylevesque joined01:26
oriba left01:26
pheaver left01:26
kevinb left01:27
freeman42 left01:27
robustus joined01:28
jeffreylevesque can someone tell me why there is no reference (no link, solid black) next to my cloned repository 'grunt' - https://github.com/jeff1evesque/audio-analyzer/issues/279?01:28
acharlieh left01:28
dccc left01:32
SamB jeffreylevesque: maybe ##github ?01:34
I mean, unless they're somehow allowed to have an official channel despite being closed source, in which case #github01:34
jeffreylevesque thanks01:35
meLon left01:35
meLon joined01:36
EminenceHC joined01:36
kevinb joined01:36
macrover joined01:36
hyperair joined01:39
hyperair left01:39
hyperair joined01:39
ejnahc left01:39
ejnahc joined01:40
meLon left01:41
kevinb left01:41
darkbasic left01:41
meLon joined01:41
EminenceHC left01:41
fatalhalt left01:41
Megaf left01:41
gargola_ joined01:41
darkbasic joined01:41
Fandekasp joined01:42
fatalhalt joined01:42
harish_ left01:44
n-st left01:45
stiffi left01:45
meLon left01:46
meLon joined01:46
kevinb joined01:46
dccc joined01:49
str left01:50
meLon left01:51
meLon joined01:51
Arkaniad|Laptop left01:51
martinklepsch joined01:52
paulweb515 left01:53
kevinb left01:53
Corey84 left01:55
dccc left01:55
rkazak_ left01:55
meLon left01:56
zacts I have a question01:56
neiled joined01:56
nickpresta joined01:56
meLon joined01:56
neiled left01:56
zacts I want to fork http://git.minix3.org/minix-lionel.git01:56
paulweb515 joined01:56
martinklepsch left01:56
zacts how can I do this, while keeping track of each branch 3.3.0u for example?01:57
eaj joined01:57
harish_ joined01:57
imMute zacts: "git clone git://git.minix3.org/minix-lionel.git"01:58
neiled joined01:58
neiled left01:58
zacts imMute: that's all I have to do? I did this: mkdir minix-lionel ; cd minix-lionel ; git init ; git remote add upstream git://git.minix3.org/minix-lionel.git ; git fetch upstream; ...01:59
tokik joined02:00
imMute zacts: that would accomplish the same thing.02:00
daito joined02:00
meLon left02:00
meLon joined02:01
Reskp joined02:01
neiled joined02:01
pheaver joined02:01
zacts ok, then how do I make sure there are no conflicts with my master branch and my upstream fetch?02:01
eaj left02:01
silviof3 joined02:01
zacts s/fetch/merges/02:02
imMute zacts: well, with the previous, you would have master (your local one) being at a different point than upstream. so you'd have to reset/ff to get to the same as upstream/master02:02
aviraldg left02:03
daito_ joined02:03
daito left02:03
Gamecubic left02:04
silviof2 left02:04
zacts what I want is this [minix-lionel original repo] - - fetch / rebase - -> [zacts' repo with zacts' master branch fork of minix-lionel] - - zacts' various feature branches - - pushed to git hub - -> github02:04
and no conflicts02:04
imMute I didn't understand that. you've made changes to the repository?02:05
zacts imMute: yeah02:05
it's not a pure fork02:05
it's not a mirror02:05
but a fork02:05
meLon left02:05
Reskp left02:06
meLon joined02:06
zacts I want to make an experimental repo of minix-lionel that I can push to git-hub, while pulling from the original minix-lionel for updates02:06
then lionel will pull from my github repo and merge them back into the original minix-lionel repo02:07
imMute so make a repo that has two remotes, one for github and one for lionel's repo.02:07
otter768 left02:07
damccull left02:07
imMute and setup your config file to pull from the lionel remote and push to github.02:07
otter768 joined02:07
daivyk left02:07
cigarshark left02:07
zacts ok, and how do I make sure that my master doesn't conflict with the original minix-lionel master branch?02:07
thiago zacts: if you want to ensure there are no conflicts, stop making changes02:08
never make changes02:08
that's the only way to ensure no conflicts will ever happen02:08
imMute zacts: what do you mean "conflicts" ?02:08
zacts thiago: oh, no. I guess what would the best practice be. use my own master branch, or create a separate zacts branch?02:08
here, let me set it up really fast the way you said imMute then I'll link to my github page, so you can see what I mean.02:09
thiago zacts: there's no best way02:09
zacts: if there are conflicts, solve them02:09
imMute zacts: "master" is a name that only exists locally. in your repo, "lionel's master" would be called "lionel/master" (assuming you setup your remote to be called lionel)02:09
darkxploit left02:09
kevinb joined02:09
zacts oh, I understand now. ok. that answers my question.02:09
imMute and there's another one that would be called github/master, whether that one matches lionel/master or not is up to you.02:10
zacts ok, sweet. thanks a bunch!02:10
rkazak_ joined02:10
zacts thiago: I see, ok. thanks.02:10
meLon left02:11
meLon joined02:11
dccc joined02:12
jeffreylevesque what's the difference between getting a submodule of another repository, and cloning another repository?02:12
thiago jeffreylevesque: the difference is the fact that the submodule is linked from the supermodule02:13
jeffreylevesque my cloned "grunt" repo is not linked to it's repository - https://github.com/jeff1evesque/audio-analyzer/issues/27902:14
thiago not going to read a task tracker issue02:14
imMute jeffreylevesque: your .gitmodules file doesn't list a submodule for "grunt"02:15
so github has no wsay of knowing what repository it's supposed to be.02:15
kevinb left02:16
jeffreylevesque imMute: instead of doing `git submodule add..`, i did `git clone ..`.02:16
daito joined02:16
jeffreylevesque should i manually create a reference in .gitmodules?02:16
imMute yes.02:17
jeffreylevesque thanks02:17
imMute thiago: missed out on an easy problem ;)02:17
daito left02:18
daito joined02:19
daito_ left02:20
daito left02:20
neiled left02:20
aviraldg joined02:20
daito joined02:20
meLon left02:21
meLon joined02:21
kevinb joined02:23
rkazak_ left02:24
dccc left02:25
bitkiller left02:25
kushal3 joined02:26
kevinb left02:27
kingbeowolf joined02:29
kingbeowolf how do i re-git clone to get the latest stuff?02:29
preaction kingbeowolf: git pull02:30
imMute or, more safely, git fetch02:30
kingbeowolf preaction: oh sweet I thought i had to have permissions for that02:30
meLon left02:31
meLon joined02:31
imMute .... you have to have read permissions, but if you can clone, you have them.02:31
thiago unless, of course, they changed since you cloned02:32
CheckDavid left02:32
kevinb joined02:33
kingbeowolf oh ok02:34
so what is a pull request everyone is talking about?02:34
that is for private repos?02:34
imMute basically an email to the maintainer "hey, I made changes, you can find them at XXX and pull them into your repo"02:34
Remorse joined02:35
kingbeowolf oh02:35
meLon left02:36
meLon joined02:36
Davey left02:37
Davey joined02:38
HanClinto__ joined02:38
Remorse_ joined02:39
leb joined02:39
Remorse left02:39
kevinb left02:40
meLon left02:41
meLon joined02:41
dccc joined02:41
rkazak joined02:42
HanClinto_ left02:42
kevinb joined02:45
EminenceHC joined02:45
meLon left02:46
meLon joined02:46
Noldorin left02:49
kevinb left02:49
EminenceHC left02:50
eaj joined02:51
Lemony joined02:51
bezet joined02:54
dccc left02:55
kevinb joined02:55
meLon left02:56
meLon joined02:56
eaj left02:56
madewokherd left02:56
zumba_addict left02:57
zumba_addict joined02:57
Arkaniad|Laptop joined02:57
nevyn_nevyn02:58
bezet left02:58
pr0ton_ joined02:59
moritzschaefer left02:59
leb left02:59
kevinb left03:00
meLon left03:01
meLon joined03:01
Reskp joined03:01
polyzen left03:02
gargola__ joined03:05
meLon left03:06
meLon joined03:06
Reskp left03:06
kevinb joined03:06
zumba_ad_ joined03:07
gargola_ left03:08
hkon_ joined03:09
zumba_addict left03:09
Fandekasp left03:09
jstimm joined03:10
meLon left03:11
dccc joined03:11
kingbeowolf left03:11
meLon joined03:11
kevinb left03:11
hkon_ left03:14
MattMaker left03:14
jnz joined03:14
jnz left03:15
jnz joined03:15
jnz How would you undo 2 unsynced commits ?03:15
hyperair left03:15
jnz i tried to revert, but it made another commit03:15
diegoviola joined03:15
meLon left03:16
m0viefreak left03:16
meLon joined03:16
zhangxaochen_ left03:16
kevinb joined03:16
zhangxaochen_ joined03:17
jstimm left03:17
jftf joined03:18
a_le joined03:18
gitinfo set mode: +v03:19
skorgon_skorgon03:19
skorgon jnz: !fixup03:19
gitinfo jnz: 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!03:19
graft left03:19
toothrot left03:20
dccc left03:20
MattMaker joined03:20
LucasTT left03:21
ISmithers What are unsynced commits?03:21
delgiudices joined03:21
delgiudices how do i git rm to all files.pyc03:22
jnz uhmm nvm i just did git reset --soft HEAD~103:22
and it removed the files :S03:22
how do i get the files back03:22
preaction ISmithers: commits that you have locally that are not in the local copy of the remote (git fetch)03:22
ISmithers jnz python .pyc files are just precompiled python files, if you wish them back but haven't got a commit with them in, then just re-run the python program that created them.03:23
il_ left03:23
kevinb left03:23
ISmithers Oh OK thanks preaction03:23
skorgon jnz: soft reset should not have touched your files03:23
jnz: but there is the !reflog03:24
gitinfo jnz: The git reflog (`git log -g`) records the SHAs of your HEADs for 2+ weeks. `git checkout -b myrestore OLDSHA` and `git reset --hard OLDSHA` will relink to that state via a new and current branch respectively, see http://sethrobertson.github.com/GitFixUm/ for full details. WARNING: reset --hard will trash any uncommitted changes! Visualize with: gitk --all --date-order `git log -g --pretty=%H`03:24
jnz http://i.imgur.com/qXh7F9Y.png03:24
echo-area joined03:24
jnz i did HEAD~203:24
shinnya left03:24
jnz why did it remove my files, i thought soft wasnt mean too :o03:25
meant*03:25
ISmithers Are you sure you didn't remove them another way?03:25
jnz nope i used that command03:25
git reset --soft HEAD~203:25
and my files reverted to before the commits03:26
meLon left03:26
meLon joined03:26
skorgon without --hard, reset should not even do that, if i'm not mistaken03:26
it just resets the index. the working tree remains as is, i thikn03:27
ISmithers Yes that's right.03:27
nevyn yes03:27
jeffreylevesque left03:28
kevinb joined03:29
jnz idk what happened then ._.03:29
kushal3 left03:29
jnz i managed to do a restore with the oldsha03:29
ok never using that command again :D03:30
got the files back03:30
meLon left03:31
ISmithers You don't really need those pyc files anyway jnz.03:31
meLon joined03:31
daito left03:31
Ankhers left03:31
viscera joined03:32
Remorse_ left03:32
jnz what are pyc files ?03:32
Remorse joined03:32
jnz that was another person lol03:32
nevyn waves hand in jedi like manner "these are not the files you are looking for"03:32
Ankhers joined03:32
ISmithers Oh sorry, that was indeed another person.03:33
I was meant to address that to delgiudices instead. Sorry jnz.03:33
visceral left03:34
aviraldg left03:34
jnz np :)03:34
daito joined03:35
meLon left03:36
kevinb left03:36
meLon joined03:36
visceral joined03:36
daito left03:36
surfdue left03:36
HanClinto__ left03:36
dccc joined03:36
shingshang left03:36
Remorse left03:36
surfdue joined03:38
khaije|io left03:39
Consuela joined03:39
viscera left03:39
ojacobson joined03:40
jstimm joined03:40
chrisshattuck joined03:40
meLon left03:41
meLon joined03:41
kevinb joined03:42
daito joined03:42
leb joined03:42
polyzen joined03:42
hives joined03:44
eaj joined03:45
meLon left03:46
Remorse joined03:46
meLon joined03:46
dccc left03:47
kevinb left03:47
EminenceHC joined03:48
zacts ok, I guess I'm a bit lost.03:48
jftf left03:48
offby1 you're in #git.03:49
ISmithers lol03:49
offby1 A twisty maze of &c &c.03:49
Remorse_ joined03:49
zacts how can I set up a full mirror of http://git.minix3.org/minix-lionel.git (including all of the branches)?03:49
the git clone address is git://git.minix3.org/minix-lionel.git03:49
Corey84 joined03:50
zacts I only know how to: 1) git clone git://.../minix-lionel.git 2) git checkout origin/3.3.0u03:50
Remorse left03:50
eaj left03:50
meLon left03:51
zacts I don't know how to mirror the entire repo and all of its branches. once I know how to do that my next question should evolve into a github question, as to how to sync this with github.03:51
meLon joined03:51
offby1 zacts: I'd read about "git clone --mirror"03:51
in fact, let's see if this works: !mirror03:51
zacts ok, cool03:52
offby1: I'm reading it now. now that I know how to --mirror, can I still add my own branches to this repo?03:52
or is it going to be a static repo.03:52
zacts reads03:52
kevinb joined03:53
EminenceHC left03:53
otter768 left03:53
martinklepsch joined03:53
kevinb left03:55
zacts offby1: what I want is a mirror of all of the minix-lionel branches, and my own zacts branch included03:55
offby1 I actually don't know how it works :-|03:55
I'd just play with it and see if it appears to do what you want03:55
zacts sure, ok.03:56
meLon left03:56
meLon joined03:56
delgiudices left03:56
martinklepsch left03:58
surfdue left03:58
therealGent left03:58
hyperair joined03:58
quazimodo joined03:59
rchavik joined04:00
ribasushi left04:00
meLon left04:01
meLon joined04:01
MissionCritical left04:01
Lyqyd joined04:01
Remorse_ left04:01
simesy left04:01
simesy joined04:02
ropav left04:02
Reskp joined04:02
ropav joined04:02
dccc joined04:03
Motoko joined04:04
kevinb joined04:04
Ankhers left04:04
Dougie187 left04:05
meLon left04:06
meLon joined04:06
Reskp left04:07
raven-au left04:08
raven-au joined04:08
kevinb left04:08
mizu_no_oto joined04:09
Fandekasp joined04:10
ribasushi joined04:10
surfdue joined04:10
meLon left04:11
meLon joined04:11
ValF left04:12
dccc left04:12
MissionCritical joined04:14
ValF joined04:14
kevinb joined04:14
pr0ton_ left04:15
meLon left04:16
nnyk_ left04:16
meLon joined04:16
hobodave joined04:16
daito left04:17
hobodave left04:17
punchagan left04:17
kevinb left04:19
Guddu_ joined04:19
Guddu_ What is the best Windows GIT Client one can use?04:20
meLon left04:21
meLon joined04:21
nodiscc left04:21
rkazak left04:21
nevyn git for windows?04:22
Guddu_ nevyn, GIT Client for Windows04:23
nevyn there's a build for windows of git04:25
kevinb joined04:25
meLon left04:26
meLon joined04:26
jonmorehouse left04:26
jonmorehouse joined04:27
luc_ joined04:27
Remorse joined04:28
dccc joined04:28
kevinb left04:29
Segfault_ left04:30
Radivarig left04:30
meLon left04:31
Segfault_ joined04:31
meLon joined04:31
mizu_no_oto left04:32
Motoko MSYSGit.04:33
If you need a GUI, SourceTree.04:33
kevinb joined04:34
KamalKaur joined04:35
meLon left04:36
meLon joined04:36
KamalKaur left04:37
Consuela left04:38
dccc left04:38
robbyoconnor left04:39
mennea joined04:39
robbyoconnor joined04:39
robbyoconnor left04:39
robbyoconnor joined04:39
eaj joined04:39
irqq joined04:40
Skrypter_ left04:41
meLon left04:41
meLon joined04:41
eaj left04:44
Skrypter joined04:45
meLon left04:46
nnyk_ joined04:46
meLon joined04:46
the_cybersphinx left04:46
Guddu_ Thanks Motoko04:48
basiclaser left04:48
Motoko SmartGit is also nice, but I like SourceTree much better.04:49
You're welcome.04:49
basiclaser joined04:49
silviof3 left04:49
il_ joined04:49
meLon left04:51
fatalhalt left04:51
meLon joined04:51
Tommy[D]_ joined04:51
ajc_ joined04:52
quazimod1 joined04:53
crankharder left04:53
quazimod1 left04:53
macrover left04:53
Tommy[D] left04:54
bezet joined04:54
martinklepsch joined04:54
dccc joined04:54
EminenceHC joined04:54
jonmorehouse left04:55
meLon left04:56
jonmorehouse joined04:56
meLon joined04:56
Guddu_ Motoko, Where do you host your GIT repository? I am planning to host on Amazon EC204:56
Linux MIcroinstance04:57
Motoko I use BitBucket and GitHub depending.04:57
Guddu_ Motoko, Paid service?04:57
Motoko Although I could use my personal dedi.04:57
Nah.04:57
BitBucket offers free private.04:58
Only up to five users can access.04:58
Above that, you have to pay.04:58
Guddu_ Motoko, SOunds just right. I will have hardly 4 users04:58
ojacobson left04:58
Guddu_ Motoko, Else i can always install GIT for linux in my Amazon EC2 right?04:59
martinklepsch left04:59
bezet left04:59
EminenceHC left04:59
Motoko If the code is open, I usually use GitHub due to the popularity.04:59
Sure. You can use any remote location.04:59
Even just plain ssh.04:59
Guddu_ Motoko, Plain ssh?04:59
Motoko Yeah, you can push/fetch over ssh.05:00
imMute Guddu_: git clone ssh://immute@example.com/home/immute/repositories/foo.git05:00
Motoko You don't need anything fancy, really.05:00
But it is useful if you need to have more control.05:00
imMute Guddu_: requires no special software on the SSH server.05:00
meLon left05:01
thiago besides git itself, of course05:01
Guddu_ Motoko, I prefer GUI as it is more intuitive for me.05:01
Motoko Right.05:01
dccc left05:01
UmbraMalison_ left05:01
thiago that has nothing to do with it05:01
you can install a GUI05:01
meLon joined05:01
Motoko Guddu_, also learn the commands. Sometimes you'll need something that is either clunky in a GUI or not possible.05:01
gargola__ left05:01
Motoko AFAIK, no GUI currently supports bisect.05:01
Guddu_ Motoko, Makes sense. I will be the admin so I will neeed to learn the commmmand for sure. But for developer function I will use GUI always :-)05:02
Motoko And doing advanced repo management.05:02
Well, bisect is useful for dev.05:02
jonmorehouse left05:02
UmbraMalison joined05:02
Guddu_ is looking at what biscet is05:02
thiago bisect is a local tool05:03
jonmorehouse joined05:03
d1b left05:03
thiago I thought you were talking about managing a server via a web interface05:03
Reskp joined05:03
Guddu_ thiago, No, Just code checkins and Checkout etc.05:03
I will do every administrative stuff using commands always05:03
Motoko You shouldn't really need any fancy admin stuff.05:04
Other than making sure you have backups.05:04
Guddu_ Right05:04
Motoko That's a more general concern.05:04
Guddu_ Thanks Motoko and thiago for your help today.05:05
nevyn is sourcetree proprietary?05:05
Motoko It's closed source, yes.05:06
meLon left05:06
jonmorehouse left05:06
Motoko But it's one of the best GUIs for Windows and OS X.05:06
IMO.05:06
meLon joined05:06
Guddu__ joined05:06
SamB Guddu_: I don't think most call that administrative05:06
jonmorehouse joined05:06
Reskp left05:08
hkon_ joined05:09
Guddu_ left05:10
meLon left05:11
meLon joined05:11
idoit joined05:12
nnyk_ left05:12
hkon_ left05:14
kcj joined05:14
meLon left05:16
meLon joined05:16
dccc joined05:17
User458764 joined05:17
daito joined05:18
punchagan joined05:18
glosoli joined05:19
glosoli Hey folks. I had some changes in repo, and the project was restructured in whole new repository. Is there some way to make a patch from a specific directory to the changes in that new repository, so I could apply my changes made in old repository to the new one ?05:20
daito left05:20
daito joined05:21
meLon left05:21
thiago yes05:21
FunkyAss joined05:21
meLon joined05:21
thiago git format-patch, edit the file paths, then git am05:21
eliasr left05:21
dannixon joined05:23
Tuna-Fish left05:23
glosoli thiago: I just found some article on Stackeroverflow saying I could just make a patch using "diff -ur b a > ba.diff" and then apply it. I am curious how git format-patch is better, what else does it do ?05:25
It also adds commits and other info to the patch ?05:25
thiago it keeps the commit message05:25
dccc left05:26
meLon left05:26
gabeio left05:26
therealGent joined05:26
glosoli thiago: so if I had several commits on that dir, it will keep all of them when I apply the patch to new repo ?05:26
meLon joined05:26
jonmorehouse left05:27
jonmorehouse joined05:28
irqq left05:28
ifim joined05:29
ValF left05:29
thiago yes05:29
glosoli thiago: I am wondering if I need to add the other repo as second remote, or I could just somehow use git format-patch specifying old_path_to_dir new_path_to_dir ?05:31
User458764User458764_NotHe05:31
meLon left05:31
meLon joined05:31
thiago glosoli: you may be able to just cherry-pick05:31
User458764 joined05:32
glosoli thiago: cherry pick implies I am working on the same repo, the thing that these two repos are completely different ones, yet they share one common component05:32
the new one has old implementation, which wasn't merged from the old oen05:32
one"05:32
MrVagabond joined05:33
thiago glosoli: you said you were going to add as a remote05:33
glosoli: that implies same repo05:33
eaj joined05:34
pikaren joined05:34
Junior joined05:34
glosoli thiago: Ah sorry, I was asking if I must to do that in order to make use of git format-patch05:34
pantsman- joined05:34
thiago no05:34
pikaren left05:34
Tuna-Fish joined05:34
pikaren joined05:34
Guddu_ joined05:34
glosoli thiago: emm sorry again, so how could I approach the problem and use git format-patch without adding the new repo as a remote ?05:34
punchagan left05:35
thiago use git format-patch05:35
User458764_NotHe left05:35
glosoli yeah but I don't get what do I need to specify for it (I did the reading for git format-patch --help)05:35
meLon left05:36
harish_ left05:36
meLon joined05:36
thiago the commits you want to create the patch for05:36
probably: git format-patch last-version-you-merged..HEAD -- subdir/05:37
Lyqyd left05:37
FilipNortic joined05:37
Guddu__ left05:38
therealGent left05:38
eaj left05:38
beautifulmind joined05:39
ThomasLocke joined05:39
ThomasLocke left05:39
ThomasLocke joined05:39
starkhalo left05:39
meLon left05:41
meLon joined05:41
Novitsh__ joined05:41
User458764User458764_NotHe05:42
Novitsh__ left05:42
chrisshattuck left05:42
dccc joined05:42
Muchoz joined05:42
glosoli thiago: thanks, I seem to get it now, though how do I make single patch file from the commits ?05:43
Novitsh_ joined05:43
thiago --stdout and redirect to one file05:43
jftf joined05:44
glosoli thiago: seems to redirect only patch names05:45
thiago did you add the --stdout argument?05:46
meLon left05:46
glosoli git format-patch 85e2253..HEAD -- transaction-categorisation-service/ --stdout > single.patch05:46
meLon joined05:46
User458764_NotHe left05:46
Muchoz left05:47
glosoli thiago: ah misplaces stdout argument05:49
sorry05:49
misplaces"05:49
misplaced" damn05:49
harish_ joined05:49
aldodelgado joined05:50
Nikoli left05:50
jftf left05:50
rath joined05:50
meLon left05:51
meLon joined05:51
dccc left05:51
dannixon left05:52
gabeio joined05:52
pantsman- left05:52
zumba_addict joined05:54
jenia left05:54
tpollard left05:55
Lemony left05:55
gargola_ joined05:55
jluc joined05:56
meLon left05:56
jargon joined05:56
meLon joined05:56
d1b joined05:57
kyb3r_ joined05:57
zumba_ad_ left05:57
thevishy joined05:58
EminenceHC joined05:58
stellarhopper joined05:59
glosoli thiago: How does one resolve git am problems, since it does not seem to add any file to staging05:59
ISmithers left05:59
MattMaker left06:00
MattMaker joined06:00
Silmarilion joined06:01
MrVagabond left06:03
EminenceHC left06:03
Reskp joined06:04
nkouevda left06:04
Muchoz joined06:05
hoschi joined06:06
papegaaij joined06:06
glosoli left06:06
tokik left06:07
Motoko left06:07
dccc joined06:08
Reskp left06:09
pheaver left06:10
freimatz joined06:10
nordicdyno joined06:10
endiruna joined06:10
Muchoz left06:10
KevinTS joined06:10
Reskp joined06:11
Orbitrix left06:11
meLon left06:11
Junior left06:11
meLon joined06:11
Wiz_KeeD joined06:12
jonmorehouse left06:12
jonmorehouse joined06:13
Junior joined06:14
HelloShitty left06:15
acolson joined06:15
Reskp left06:15
tokik joined06:15
JanC left06:16
cbreak-work joined06:16
h0bbit joined06:17
bezet joined06:17
weiyang left06:17
dccc left06:18
diegoviola left06:18
quazimodo left06:20
compact left06:20
nnyk_ joined06:21
mariuscc joined06:21
bezet left06:21
LeMike joined06:25
meLon left06:26
meLon joined06:26
solker joined06:27
Gizburdt joined06:27
eaj joined06:28
jonmorehouse left06:28
jonmorehouse joined06:29
solker_ left06:29
goTAN joined06:29
JanC joined06:29
Gizburdt left06:30
Gizburdt joined06:30
meLon left06:31
dsdeiz left06:31
meLon joined06:31
eaj left06:32
Skrypter left06:32
nour_ joined06:33
zumba_addict left06:34
Gizburdt left06:34
Gizburdt joined06:34
cobakobodob left06:34
dccc joined06:34
relipse left06:35
fstd_ joined06:35
cobakobodob joined06:35
meLon left06:36
Asiajey left06:36
meLon joined06:36
saurabh joined06:36
saurabhGuest8613906:37
Errorical joined06:37
please joined06:37
please left06:38
Skrypter joined06:38
Asiajey joined06:38
Asiajey left06:38
Asiajey joined06:38
jonmorehouse left06:39
thiago left06:39
bvi joined06:39
fstd left06:39
fstd_fstd06:39
ehmatthes joined06:39
please joined06:39
pleaseGuest236606:40
thiago joined06:40
ferreum left06:40
meLon left06:41
meLon joined06:41
jonmorehouse joined06:42
gitinfo set mode: +v06:42
Guest2366 Hi guys. What's the most reliable way to keep up to date on Git development? Is there a recommendable newsletter or the like?06:42
CraigyDavi` joined06:42
HelperW joined06:42
j416 Guest2366: mailing list06:42
_ikke_ !mailing_list06:43
gitinfo [!official] Some official resources for git. Homepage: http://git-scm.com/ | Source repo: https://www.kernel.org/pub/scm/git/git.git/ (Mirrrored: https://github.com/git/git/) | IRC channel: You're in it. | Mailing list: http://vger.kernel.org/vger-lists.html#git06:43
j416 Guest2366: or the release changlog (see http://git-scm.com) if you want a birds-eye06:43
_ikke_ There is regular birds-eye posts from the maintainer on the list too06:43
eaj joined06:44
dccc left06:44
lite_ joined06:44
stodan joined06:44
Guest2366 Thx. But subscribing to the mailing list means I will receive a lot of conversation which I am not interested in. I just want to get the most important news (new Git version and changes, tips and tricks maybe - something like that).06:45
CraigyDavi left06:45
lite_ left06:46
meLon left06:46
j416 Guest2366: did you read what I wrote?06:46
lite_ joined06:46
meLon joined06:46
j416 nostalging on the mailing list, I came across this http://marc.info/?l=git&m=111350395823869&w=206:47
weiyang joined06:47
j416 is this possible to do?06:47
Gizburdt left06:47
Gizburdt joined06:48
Tuna-Fish left06:48
_ikke_ THat's very easy to do06:50
git checkout --orphan06:50
or just merge two unrelated repositories06:50
Goplat left06:50
j416 --orphan would be the opposite, kind of06:50
how'd I merge two histories without a common merge-base but which, at some point, have an identical tree?06:51
Gizburdt left06:52
xificurC joined06:53
thiago j416: git merge06:54
Gizburdt joined06:54
Tuna-Fish joined06:54
Guddu_ left06:55
hebz0rl joined06:55
meLon left06:56
martinklepsch joined06:56
meLon joined06:56
jerius joined06:56
j416 thiago: it finds the common tree automagically?06:56
thanks. didn't know that.06:57
compact joined06:57
thiago maybe not06:57
if it fails to do that, check out one of the commits that is identical to the other, merge the other06:58
hkon_ joined06:58
thiago then merge that result into the two heads and them together06:58
j416 because if the trees at the heads are identical merge won't even bother finding a merge-base?06:59
sea-gull_ joined06:59
dangerousdave joined06:59
thiago if that fails, use -s ours06:59
EminenceHC joined06:59
j416 thanks06:59
h0bbit left06:59
j416 (I don't have this situation, it was just a question out of curiosity)06:59
cilly joined07:00
hives left07:00
a_le left07:00
dccc joined07:00
martinklepsch left07:00
jnavila joined07:01
meLon left07:01
nordicdyno left07:01
nickpresta left07:01
meLon joined07:01
jonmorehouse left07:01
Zoddo joined07:01
echo-area left07:02
hkon_ left07:02
echo-area joined07:02
veebers left07:02
gua_ould joined07:02
the8thbit left07:03
fairuz joined07:03
jonmorehouse joined07:04
EminenceHC left07:04
thrownull left07:04
Orbitrix joined07:04
Orbitrix left07:04
Orbitrix joined07:05
meLon left07:06
jrnieder left07:06
meLon joined07:06
Muchoz joined07:06
hkon_ joined07:07
descala left07:07
okdamn joined07:07
okdamn hey sorry im trying using .gitmodules07:08
but when i do git submodule update —init07:08
Macaveli joined07:08
okdamn it doesn't fetchs repos i mean nothing happening07:08
i only modified the .gitmodules and .git/config files07:09
endiruna left07:09
dccc left07:09
_ikke_ Did you create the .gitmodules manually?07:09
or was it already there07:10
Vampire0_Vampire007:10
okdamn _ikke_: manually :P07:10
_ikke_ Then that isn't going to work, because you still miss one component07:10
lb1a joined07:10
okdamn so i just have to delete that file?07:10
Muchoz left07:11
meLon left07:11
meLon joined07:11
blackmesa joined07:11
irqq joined07:11
_ikke_ Just use git submodule add07:11
reim joined07:11
okdamn _ikke_: but .git/fongi is it ok if i put submodules urls right?07:12
cilly left07:12
okdamn .git/config07:12
Silox| joined07:12
okdamn _ikke_: http://pastebin.com/TfAMVyKX07:12
my config07:12
vurma joined07:12
okdamn now what to do? remove .gitmodules ?07:13
_ikke_ It shouldn't be a problem iff it already existed07:15
okdamn _ikke_: ehm i deleted that file07:15
tgkokk joined07:15
_ikke_ No problem07:15
okdamn its cache problem?07:15
jontmorehouse joined07:15
okdamn i now tryed git submodule add07:15
_ikke_ No, those things are not cached07:15
okdamn great07:16
what after add ?07:16
update?07:16
_ikke_ yes07:16
moritzschaefer joined07:17
okdamn but git submodule add open me the help command line07:17
with the list of submodule commands07:17
mmm07:17
jonmorehouse left07:17
_ikke_ Well, you still need to specify the submodule path and url07:18
see man git submodule07:18
gitinfo the git-submodule manpage is available at http://jk.gs/git-submodule.html07:18
okdamn yes but i did all of these :(07:19
phil80 joined07:19
okdamn it still not working i need to restart from zero07:20
dangerousdave left07:20
Zoddo left07:20
dangerousdave joined07:20
Trudko joined07:20
Guest2366 left07:21
reim left07:21
_ikke_ What is not working?07:21
jontmorehouse left07:21
reim joined07:22
nour_ left07:22
daurnimator left07:22
jontmorehouse joined07:22
JustMozzy joined07:23
moritzschaefer left07:24
Gonzo89 joined07:25
jceb joined07:25
il_ left07:26
flaguy48 left07:26
meLon left07:26
mlechner joined07:26
Trudko Guys what is advantage of using tags in small projects which will be release to just one client?07:26
dccc joined07:26
meLon joined07:26
cbreak-work oh god, google docks suck so much...07:26
Trudko: tags are labels.07:26
Trudko: do you care to know which versions were released?07:26
Trudko: do you care to label some commits as being version 3?07:27
phil80 left07:27
okdamn oh guys big problem now, i used git submodule add repo /path07:28
now i deleted both .gitmodules and /path directory07:28
jargon left07:28
okdamn and im unable to add new07:28
Trudko cbreak-work: should I care_07:28
okdamn submodules07:29
bezet joined07:29
okdamn what do when : No submodule mapping found in .gitmodules for path07:29
?07:29
jargon joined07:29
nekyian_ joined07:29
cbreak-work Trudko: don't know. I would.07:29
okdamn: you have a submodule that's not mapped07:30
Trudko and why would you care? What are the benefits?07:30
cbreak-work okdamn: remove it07:30
okdamn: git rm --cached path/to/submodule07:30
Royalb15 joined07:30
cbreak-work Trudko: knowledge is power07:30
eaj left07:30
cbreak-work Trudko: knowing which version I gave out really helps with finding out why something is buggy, or not.07:31
meLon left07:31
cbreak-work Trudko: it allows me building the exact same version to reproduce problems07:31
and so on07:31
meLon joined07:31
okdamn cbreak-work: hey it works thanks :D07:31
daito left07:32
bezet left07:33
numdig joined07:33
zhangxaochen joined07:35
atamanroman joined07:37
zhangxaochen_ left07:37
lite_ left07:37
wrouesnel1 left07:38
beautifulmind left07:39
lite_ joined07:39
lite_ left07:39
blackmesa left07:39
okdamn when adding submodules is it possible to specify a git dir instead of an enteire repo ?07:39
for example git://github.com/angular/angular.js.git this repo is up to 20mb07:39
too much07:39
Sceorem joined07:39
okdamn i would just like the /src dir07:39
thiago okdamn: no07:39
okdamn ok no problems sorry07:40
xequence joined07:40
pretty_function joined07:40
meLon left07:41
meLon joined07:41
jagob joined07:41
phil80 joined07:42
ehmatthes left07:43
ferreum joined07:44
Zoddo joined07:45
bezet joined07:45
thiago left07:46
daito joined07:46
compact left07:48
cbreak-work okdamn: git repositories are atomic, they can't easily be split07:48
and if you try to split them, bad things might happen.07:48
okdamn :)07:49
thanks for help guys07:49
i fixed all finally07:49
leb left07:49
meLon left07:51
meLon joined07:51
jerius left07:51
m0nkmaster joined07:52
alorence joined07:53
psoo joined07:54
thevishy left07:55
psoo left07:55
psoo joined07:55
meLon left07:56
meLon joined07:56
martinklepsch joined07:56
dccc left07:57
ArSn joined07:58
dreiss joined07:59
meLon left08:01
meLon joined08:01
martinklepsch left08:01
doev joined08:01
dipendra joined08:01
arlekin joined08:02
weiyang left08:02
zhangxaochen_ joined08:02
Streward joined08:02
mikecmpbll joined08:03
arlekin hi guys, i have some cleaning to do, and i have little question about git rebase -i: if i want to swithc order of commits, and i have mergecommit from not fast-forward merge, do i have to take some precautions, like remember to put him after specific commits or something like that ? or maybe i can even omit it completly ?08:04
EminenceHC joined08:05
lite_ joined08:05
txdv you can't change the order of two commits which depend on each other08:05
jrdavid left08:06
meLon left08:06
zhangxaochen left08:06
txdv if they are unrelated you can do any kind of permutation08:06
meLon joined08:06
SpaghettiCat joined08:06
arlekin ain't every commit dependand of all its ancestors ?08:06
bezet left08:06
Muchoz joined08:07
zhangxaochen joined08:07
sdrfnord1 joined08:07
arlekin and thats kinda problem, cause this merge has only automatically generated commit message and git show does not show anything except this message so i really do not now how to handle it :/08:07
*know08:07
jrdavid joined08:07
jast there are different flags for viewing merge commits08:08
zhangxaochen_ left08:08
jast what might interest you is, if the merge commit is abc, git diff abc~ abc08:08
rjc joined08:08
SpaghettiCat Hello all, so some time ago I learnt to wield rebase and it blew me away with how useful it is! So I'm wondering what is the next "big" feature like that on the path to advanced usage?08:08
arlekin jast: abc ?08:08
Lemony joined08:09
cbreak-work arlekin: the name of your commit08:09
or its hash08:09
EminenceHC left08:10
arlekin cbreak-work: oh yeah right!, thanks08:10
m0nkmaster left08:10
cbreak-work also see man git show/git diff-tree08:10
gitinfo the git-show manpage is available at http://jk.gs/git-show.html08:10
aldodelgado left08:10
cbreak-work -c and so on08:10
arlekin cbreak-work: right away, thanks :)08:11
meLon left08:11
meLon joined08:11
Muchoz left08:11
jagob left08:12
jontmorehouse left08:13
dccc joined08:13
jackneill joined08:13
cvanball joined08:13
linduxed joined08:15
jontmorehouse joined08:15
aviraldg joined08:15
weiyang joined08:15
meLon left08:16
meLon joined08:16
gevatter joined08:18
arlekin left08:20
martinklepsch joined08:21
dipendra left08:22
dccc left08:24
lite_ left08:24
lite_ joined08:26
ghostlin_ joined08:27
ifdm_ left08:27
weiyang left08:29
lite_ left08:30
ifdm_ joined08:30
lite_ joined08:30
meLon left08:31
meLon joined08:31
tvw joined08:31
Gizburdt left08:32
m0nkmaster joined08:33
dreiss left08:33
ifdm_ left08:34
okdamn left08:34
freimatz left08:34
dipendra joined08:34
Zariel_ joined08:35
meLon left08:36
kriks joined08:36
meLon joined08:36
ifdm_ joined08:37
m0nkmaster left08:37
Gizburdt joined08:38
jstimm left08:39
dccc joined08:40
bezet joined08:41
weiyang joined08:41
GodEater` left08:42
nordicdyno joined08:42
murr4y hi all! i want to share (push) my feature branch, and also keep it up to date with master, but avoid introducing merge commits... what's the best approach here?08:43
irqq left08:43
jast choose any two08:44
or let everyone know you may break the branch at any time08:44
murr4y :(08:45
i see, thanks08:45
nfk joined08:46
GodEater joined08:46
GodEater left08:46
GodEater joined08:46
pretty_function left08:46
theForce joined08:47
theForce hi08:47
lb1a theForce, !hi08:47
gitinfo theForce: [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice.08:47
SpaghettiCat !backup08:48
gitinfo Worried about your data while trying out stuff in your repo? To back up commit history on all branches/tags: `git clone --mirror`. To backup everything, including work tree and staging area: `tar cf repo-backup.tar repodir`. Or do your experiment in a throwaway clone instead. See also http://sethrobertson.github.com/GitBestPractices/#backups08:48
atamanroman left08:48
lb1a btw, you can also /msg gitinfo in private with the triggers to avoid flooding :)08:49
dccc left08:49
SpaghettiCat Wasn't planning on flooding, but thanks08:49
lb1a i know, just a regular reminder to all :D08:49
nnyk_ left08:51
netcarver joined08:51
solker left08:51
achadwick joined08:51
solker joined08:51
jdmf joined08:53
ifdm_ left08:54
meLon left08:56
meLon joined08:56
dotpot joined08:56
echo-area left08:58
gsingh93_ left08:59
CodeShark joined09:00
thevishy joined09:01
meLon left09:01
meLon joined09:01
viscera joined09:04
sh[4]rm4 joined09:05
dccc joined09:05
meLon left09:06
blackmesa joined09:06
meLon joined09:06
jnavila left09:06
visceral left09:06
EminenceHC joined09:06
Remorse_ joined09:07
Muchoz joined09:07
Remorse left09:08
groundnuty hey, I'm looking for some technical doc on .git dir, its structure and details about basic operations such commit and add09:08
I'm heaving troube find anything here https://github.com/git/git/tree/master/Documentation/technical09:08
ifdm_ joined09:08
mennea left09:09
sh4rm4 left09:09
groundnuty do I look in a wrong place, or am I missing somethibg?09:09
iamtakingiteasy hello, i did a git add <files>, then realized that commited more that wanted to and tried to do git reset. the problem is that i did git reset --hard and now i am sort of screwed up. but i am aware that there is git fsck and i was able to access unreachable blobs with git show. the only remaining problem: i can't see a way to associate git blob with a file name. is it even possible?09:10
meLon left09:11
W0rmDr1nk joined09:11
meLon joined09:11
Gizburdt left09:11
EminenceHC left09:11
iamtakingiteasy err09:12
s/commited/staged/09:12
Muchoz left09:12
aard_ joined09:13
Gizburdt joined09:13
moritz iamtakingiteasy: iirc file names are stored in the tree objects09:14
but there my knowledge ends :(09:14
blackmesa left09:14
SpaghettiCat left09:15
xender iamtakingiteasy: Why not use reflog to go back to failed commit and then amend it?09:15
(or rebase)09:15
dccc left09:15
iamtakingiteasy there was no commit09:15
i just did git add .; then git reset --hard09:16
(silly me)09:16
xender It's starting to get interesting...09:16
I'm positive that there is a way to get the blob back09:17
Not sure about the tree object09:17
Fandekasp left09:18
fairuz left09:19
jontmorehouse left09:20
jontmorehouse joined09:21
meLon left09:21
balor joined09:21
meLon joined09:21
xequence left09:21
ghostbox joined09:22
francisfish joined09:24
MattMaker left09:25
meLon left09:26
meLon joined09:26
dangerou_ joined09:26
xender iamtakingiteasy: What about https://stackoverflow.com/questions/11094968/in-git-how-can-i-recover-a-staged-file-that-was-reverted-prior-to-committing ?09:27
It doesn't help with file name, but maybe you remember some fragment of that file so you could grep it?09:27
dangerousdave left09:27
bezet left09:28
[EddyF] joined09:29
[EddyF]Guest5959009:29
W0rmDr1nk left09:30
GodEater left09:30
HelperW_ joined09:32
dccc joined09:33
Gizburdt left09:34
freimatz joined09:34
GodEater joined09:34
GodEater left09:34
GodEater joined09:34
iamtakingiteasy okay, yes, thank you. seems like there is no way to recover the tree object, but still i can remember most of what those 134 files were before this crazy unstage09:34
HelperW left09:35
jnavila joined09:35
xequence joined09:36
meLon left09:36
meLon joined09:36
h0bbit joined09:37
xender iamtakingiteasy: I don't really remember whether git add does build treeas or not. But there were 134 files changed? o_O09:38
That's a lot...09:38
pbos left09:38
iamtakingiteasy yea09:39
nordicdyno left09:39
iamtakingiteasy a few hours of seding, grepping and xargs'ing09:39
luc___ joined09:39
iamtakingiteasy to re-build the filesystem tree09:39
Gizburdt joined09:40
aptenex joined09:41
daedeloth joined09:41
meLon left09:41
meLon joined09:41
lolmaus left09:41
aptenex left09:41
weiyang left09:42
Layke joined09:42
Layke Hey. Why would git submodule foreach git pull origin master not pull my submodules? I'm using github.. and I am looking at my file tree and I see blanked out modules..09:42
luc_ left09:42
Layke I would have thought they would pull when I run that?09:42
mewm joined09:43
lolmaus joined09:43
godgodgodgo joined09:43
txdv git submodule --init update or something09:44
jast Vampire0: fwiw you can add triggers yourself now (which includes adding aliases)09:44
arlekin joined09:45
dccc left09:45
crxz0193 joined09:46
arlekin hi, how can i reverse search in git log --author09:46
meLon left09:46
arlekin like author not X09:46
meLon joined09:46
stamina joined09:46
lb1a left09:47
Skrypter left09:47
Zoddo left09:47
xender iamtakingiteasy: I think you can look for dangling trees09:48
jontmorehouse left09:49
meLon left09:51
meLon joined09:51
Vampire0 jast, thanks09:51
bezet joined09:53
SLY1986 joined09:54
hs366 joined09:54
hkon_ left09:54
hkon_ joined09:55
SLY1986 left09:55
Corey84 left09:57
basiclaser left09:58
basiclaser joined09:58
lb1a joined09:59
beautifulmind joined09:59
sh[4]rm4sh4rm410:00
meLon left10:01
Zariel_ left10:01
zumba_addict joined10:01
meLon joined10:01
dccc joined10:01
beautifulmind left10:04
W0rmDr1nk joined10:05
beautifulmind joined10:05
dsdeiz joined10:06
meLon left10:06
meLon joined10:06
Gizburdt left10:06
King_Hual joined10:07
Guest59590 left10:07
Hounddog joined10:07
jnavila left10:07
freestyl3r joined10:08
mennea joined10:08
Muchoz joined10:08
HelperW_ left10:09
lapache left10:09
HelperW_ joined10:10
Muchoz_ joined10:11
jnavila joined10:11
dccc left10:11
quizzi joined10:11
EminenceHC joined10:12
KevinTS left10:13
Muchoz left10:13
daito left10:13
jontmorehouse joined10:16
luc___ left10:16
meLon left10:16
meLon joined10:16
ifim left10:16
luc_ joined10:16
[EddyF] joined10:16
[EddyF]Guest5034210:17
EminenceHC left10:17
zeppo joined10:17
kyb3r_ left10:18
m0viefreak joined10:18
zeppo left10:19
ferreum left10:19
descala joined10:20
harish_ left10:20
Muchoz_ left10:20
jontmorehouse left10:21
jagob joined10:24
drathir mornin...10:25
timclassic left10:25
arlekin left10:26
meLon left10:26
meLon joined10:26
martinklepsch left10:26
Radivarig joined10:26
dccc joined10:27
Xethron joined10:28
Xethron left10:28
Xethron joined10:28
noxd joined10:29
quizzi left10:30
Corey84 joined10:30
Radivarig left10:30
meLon left10:31
meLon joined10:31
lb joined10:31
ValicekB left10:32
ferreum joined10:32
KevinTS joined10:33
simesy left10:33
freestyl3r left10:35
netcarver left10:35
lb1a left10:35
freestyl3r joined10:36
Gizburdt joined10:37
ifdm_ left10:37
Gizburdt left10:37
compact joined10:37
Gizburdt joined10:38
Vampire0 good UGT morning drathir10:38
ValicekB joined10:38
dccc left10:39
hoschi left10:40
fr33domlover left10:40
fr33domlover joined10:41
fr33domlover left10:42
Shelikhoo joined10:42
fr33domlover joined10:42
craigp joined10:42
magnus^p joined10:43
ValicekB left10:44
lblb1a10:44
magnus^p Given I have a repository URL, how can I "export" a specific directory without first cloning it?10:46
meLon left10:46
simesy joined10:46
meLon joined10:46
Vampire0 magnus^p, I think man git archive is what you are after10:48
gitinfo magnus^p: the git-archive manpage is available at http://jk.gs/git-archive.html10:48
rob_w joined10:48
FreezingCold left10:49
ifdm_ joined10:50
ValicekB joined10:50
moritzs joined10:51
meLon left10:51
wrouesnel1 joined10:51
nnyk_ joined10:51
meLon joined10:51
dccc joined10:55
meLon left10:56
Zariel_ joined10:56
meLon joined10:56
Zariel_ left10:56
kcj left10:56
shruggar left10:57
paulweb515 left10:57
mtk left10:57
hyperair left11:00
meLon left11:01
meLon joined11:01
TheMadMechanic left11:01
deuti joined11:01
Sendoushi joined11:01
zoso joined11:01
Entomo left11:02
bartman`` left11:04
FreezingCold joined11:05
fairuz joined11:05
meLon left11:06
meLon joined11:06
compact left11:07
Multiply_ left11:07
mizu_no_oto joined11:07
dccc left11:08
tgkokk left11:08
Silox| left11:08
User458764 joined11:09
jontmorehouse joined11:10
lolmaus left11:11
meLon left11:11
HelloShitty joined11:11
meLon joined11:11
HelloShitty Morning11:11
shruggar joined11:11
Vampire0 good UGT morning HelloShitty11:11
HelloShitty I need some help setting up a new rsa key to my gi account11:11
git11:12
dr_lepper what's a "git account"?11:12
rom1504 HelloShitty: there is not git account11:12
quizzi joined11:12
Vampire0 I guess you mean your GitHub account, not your git account?11:12
HelloShitty yes11:12
GitHub account11:12
sorry11:13
I have created the rsa key11:13
tried to add it to ssh-agent11:13
but I got an error11:13
rom1504 cat ~/.ssh/id_rsa.pub11:13
then copy past it to github11:13
j416 there is also #github11:13
HelloShitty and I can't issue the git push -u origin master command11:13
rom1504 HelloShitty: what does ssh-agent have to do with this ?11:13
Vampire0 !github_vs_git btw. :-)11:14
gitinfo github.com is not git; it's a hosting platform for git. There are alternative hosting offers (you can even host repositories yourself, or work on something on your own without any hosting whatsoever), and the range of features on the corresponding websites may differ. Git has little influence on what happens in github's web interface.11:14
rom1504 HelloShitty: did you add your key in github ?11:14
EminenceHC joined11:14
HelloShitty yes I did rom150411:14
rom1504 then you can push11:14
HelloShitty in the github tutorial they say to add the key to ssh-agent with ssh-add command11:14
jontmorehouse left11:14
Vampire0 !www hells11:15
gitinfo What did you do (which commands?), what happened as a result (any messages?), and what was the result you expected instead?11:15
rom1504 well if it's in .ssh/id_rsa, you don't need thaty11:15
Vampire0 HelloShitty : !www11:15
gitinfo What did you do (which commands?), what happened as a result (any messages?), and what was the result you expected instead?11:15
HelloShitty rom1504:11:15
carandraug joined11:15
HelloShitty when I try to issue git push -u ....11:16
it says11:16
error: src refspec master does not match any.11:16
meLon left11:16
HelloShitty error: failed to push some refs to 'git@github.com:xxxxxxxx/xxxxx11:16
meLon joined11:16
HelloShitty I enter my passpharse11:16
but it looks like it's not correct11:16
but it is11:16
Vampire0 well HelloShitty, as the error clearly states, this is not an SSH key problem11:17
[13:16:10] <HelloShitty> error: src refspec master does not match any.11:17
compact joined11:17
Vampire0 again, !www and !summarize11:17
gitinfo What did you do (which commands?), what happened as a result (any messages?), and what was the result you expected instead?11:17
[!dont_summarize] Please do not summarize what you did; !pastebin _exactly_ what commands you ran, what the output was, and why you think that this is wrong. Otherwise you may hide the real issue. See also !obfuscate and !repro11:17
dv__ left11:18
maxer joined11:18
HelloShitty Vampire0: is not?11:18
mizu_no_oto left11:18
Muchoz joined11:18
HelloShitty !www11:18
gitinfo What did you do (which commands?), what happened as a result (any messages?), and what was the result you expected instead?11:18
HelloShitty hum11:18
ok11:18
luc_ left11:19
HelloShitty I have a folder in my home11:19
EminenceHC left11:19
HelloShitty I did:11:19
git init11:19
then:11:19
git commit -m "first commit"11:19
then:11:19
jast the error you get has nothing to do with ssh keys11:19
HelloShitty git remote add origin [email@hidden.address]11:19
Balliad joined11:20
HelloShitty and last:11:20
git push -u origin master11:20
it's here the error comes up11:20
Vampire0 Nothing between git init and git commit?11:20
HelloShitty nope11:20
Vampire0 Then git commit should give you a dexcriptive error11:20
jast why? commit worked11:20
Vampire0 Becasue you didn't add anythign to commit to the index11:20
jast oh, good point :)11:21
meLon left11:21
Vampire0 And without a commit there is no master ref11:21
simesy left11:21
Vampire0 And that is what the push error message tells you11:21
HelloShitty hum, ok11:21
meLon joined11:21
Vampire0 Do the commit again and look at its output11:21
HelloShitty ok, i think i got it11:21
Vampire0 Should say somthing like "nothign to commit"11:21
flaguy48 joined11:21
mizu_no_oto joined11:21
HelloShitty ok, got it11:22
done11:22
thanks a lot11:22
Vampire0 yw11:22
HelloShitty I was forgeting the git add step11:22
dsdeiz left11:22
Muchoz left11:23
dccc joined11:23
Zariel_ joined11:24
Zariel_ left11:24
DomeMaster joined11:24
Zariel_ joined11:24
DomeMaster Hi everyone11:24
I'm using describe, but I don't want any tags even annotated tags. I just want the commit hash. How do I do that?11:25
User458764User458764_NotHe11:26
Vampire0 Well DomeMaster, describe is, to quote the man page, meant to "Show the most recent tag that is reachable from a commit"11:26
DrSlony joined11:26
deciph3r joined11:26
deciph3r left11:26
deciph3r joined11:26
DomeMaster oh right, so there is no way round it?11:26
Vampire0 Doesn't that somehow conflict with your question?11:26
what do you want to reach?11:26
FabTG left11:26
DomeMaster I just want the latest commit11:26
Vampire0 Then maybe someone can advice how to achieve it11:26
DrSlony Hi, I've been using mercurial for a long time but I'm a little lost with git. I would like to update my cloned repository to an older commit because the latest is broken, how do I do that?11:26
Vampire0 The latest commit of what DomeMaster ?11:27
DomeMaster oh right Vampire0, I'm basically creating a beta "serial number" that allows me to find commit if something goes wrong for a client11:27
Vampire0 DrSlony: !fixup11:27
gitinfo DrSlony: 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!11:27
DomeMaster so I just need like 7 or so character of the current branch highest value11:27
not value I mean commit11:27
Vampire0 So you mean you want the SHA of the currently checked out commit?11:28
DrSlony Vampire0 i dont want to change the commit, i just want to compile an older version11:29
DomeMaster yup, and maybe add dirty if it has uncomitted files11:29
davividal joined11:29
Vampire0 DomeMaster, "git rev-parse HEAD" or for the short version "git rev-parse --short HEAD"11:29
DomeMaster thanks very much mate11:29
will it have dirty?11:30
Vampire0 But be aware that the short one could become ambigious in the future if you create more commits11:30
DomeMaster oh really?11:30
CheckDavid joined11:30
DomeMaster oh dear I don't want that11:30
User458764_NotHe left11:30
Vampire0 then don't use --short and you should be fine11:30
DomeMaster ok great11:30
Vampire0 no DomeMaster, it is just is sha1 of the currently checked out commit, no info about cleanliness11:30
DomeMaster it doesn't have dirty though Vampire11:31
oh ok11:31
I guess that should do actually11:31
meLon left11:31
meLon joined11:31
DomeMaster is there anyway to get a shorter message that isn't ambiguous it looks ridiculous at the moment ... I've got like 8 repos stringed together separated by ":"11:31
Vampire0 If you want to get dirty state you can additionally get this of course, but not in one command together with the sha11:31
dccc left11:32
Vampire0 DomeMaster, create a tag with the same name on all the repos and just use that as reference11:32
A tag costs you 41 bytes of disk space11:33
DrSlony, man git checkout11:33
gitinfo DrSlony: the git-checkout manpage is available at http://jk.gs/git-checkout.html11:33
str joined11:33
intellix joined11:34
moritz actually, on most file systems, a file takes at least one block, which is usually between 0.5MB and 4MB11:34
Vampire0 moritz, :-P11:35
DrSlony thanks11:35
meLon left11:36
DomeMaster sorry was away Vampire011:36
B1x1t0 joined11:36
DomeMaster I don't follow, so what create a tag everytime?11:36
meLon joined11:36
compact left11:36
Vampire0 why not? If you deliver your software, it should be worth a tag, shouldn't it?11:37
DomeMaster Erm ya I guess why not11:37
I need a way to generate tag names11:37
but that's not git releated I guess11:37
automate tag names even11:37
Vampire0 Indeed :-)11:37
DomeMaster thanks for the help my dude11:38
User458764 joined11:38
Vampire0 you're welcome11:38
DomeMaster thanks Vampire011:39
nicoodevient11:40
freimatz left11:40
devientnicoo11:40
mizu_no_oto left11:41
meLon left11:41
meLon joined11:41
dipendra left11:41
phil80 left11:42
polyzen left11:42
Gizburdt left11:42
lhvwb joined11:43
lhvwb left11:43
mizu_no_oto joined11:43
hoschi joined11:44
jnz left11:45
awekkih joined11:45
awekkih left11:45
meLon left11:46
meLon joined11:46
dccc joined11:46
Guest86139 left11:47
str_ joined11:50
meLon left11:51
meLon joined11:51
str left11:52
toomanysecrets joined11:53
User458764User458764_NotHe11:53
Trudko Guys I have centra git repo and I would like check if each commit message of each developer match certain regex basicly I want to force that each commit message does have title and issue number. I only found how to check this on client but in that case with multiple dev env(OSX, Win, Linux) will developer has to setup up this by his own?11:54
tmcmahon joined11:54
jast on the server you can write a pre-receive/update hook that checks all added commits and rejects the update if they don't match11:54
man githooks for details on how these hooks work11:55
gitinfo the githooks manpage is available at http://jk.gs/githooks.html11:55
jast client-side checks will have to be installed manually by each developer, yes11:55
cbreak-work Trudko: man githooks11:55
gitinfo Trudko: the githooks manpage is available at http://jk.gs/githooks.html11:55
dipendra joined11:55
lsiv568 joined11:55
Gizburdt joined11:55
cbreak-work Trudko: at commit time you can test it locally11:55
but if you want to test it on the server, you can do so in post-receive or similar11:55
Trudko: do it in pre-receive if you want to be able to reject pushes11:56
dccc left11:56
cannonball joined11:56
LBV_User joined11:57
Trudko cbreak-work: well I would like to do it on server so not to bother developers with setting it up. Btw is common to force message like that? I think it make sense to have title from issue tracker and its number plus maybe some details.11:58
User458764_NotHe left11:58
cbreak-work I wish it was common...11:58
Trudko: I know that Qt forces unique numbers, but those are generated with a client script from the server, for gerrit11:59
here issue numbers are optional, most commits aren't made for issues though11:59
jerius joined12:00
kevinb left12:00
mennea_ joined12:00
Trudko cbreak-work: I work at smaller company and we are doing our best to have issue for each requirement and we connect commit to issue12:00
CodePulsar joined12:00
meLon left12:01
meLon joined12:01
xender Trudko: If you will be rejecting all commits with misformatted messages on server, then having developers to correct (rebase) all of them on failed push is even more bothering than additional hook setup on client12:01
LBV_User left12:01
cbreak-work Trudko: well, what we have is a script that scans commit messages and posts them to jira if the message contains a token12:01
jerius left12:01
Layke left12:02
kevinb joined12:02
cbreak-work so the tokens in the messages are optional, but useful12:02
I think I am the only one that uses them though12:02
pppp2 joined12:02
cbreak-work I use the pre-receive hook for this12:02
nnyk_ left12:02
cbreak-work posting to jira is done with some rest http call12:02
xender Trudko: Does your company use any particular branching model?12:02
mennea left12:03
tmcmahon left12:03
xender Like git-flow or github-flow (different things actually)12:03
masak is there any way to 'amend' a given commit a few steps back in history, without having to go thrwough 'rebase --interactive' and marking it up as 'edit'?12:03
cbreak-work getting the new commits is done with something like "git rev-list --reverse " + new_heads + " --not " + old_heads12:03
masak: nope12:04
xender masak: Not really, rebase is just that12:04
cbreak-work masak: rebase is what fixes all commits after the one you amend.12:04
xender masak: commits are immutable12:04
jontmorehouse joined12:04
masak oh, I know all that.12:04
cbreak-work masak: without that, all the new commits would still refer to the original12:04
masak and I'm not expecting subsequent SHA-1s to stay the same.12:04
xender amend creates one new commit. Rebase recreates all the commits after the change12:04
masak just wanted to do less work at the command line.12:04
cbreak-work masak: if you don't want to use rebase -i, you can use commit --amend and then rebase manually12:04
masak I still expect the rebase to happen.12:04
oh well, I guess I can create my own subcommand for this :)12:05
toothrot joined12:05
h0bbit left12:05
masak oh, and I see I can get away with 'reword' in the interactive rebase, too.12:05
xender masak: You can also use alternative todolist editor12:05
obiwahn left12:05
OnlyForF1 joined12:05
pppp2 left12:06
masak sounds interesting.12:06
xender masak: You can supply your own script which will edit the todolist automagically12:06
pppp2 joined12:06
corehello joined12:07
masak yes, that sounds like what I was after.12:07
and then wrap it in a subcommand.12:07
polyzen joined12:07
OnlyForF1 How do you guys deal with Word documents?12:07
B1x1t0 left12:07
xender OnlyForF1: There is some option for diffing them12:08
Vampire0 OnlyForF1, define "deal with"12:08
xender But IIRC that diff is only human-readable12:08
Not suitable for patching12:08
mennea_ left12:08
xender So other thatn that - like with other binary files, and that means not so well12:08
mennea joined12:09
ValicekB left12:09
jontmorehouse left12:09
OnlyForF1 Vampire0 merging and potentially conflict resolution.12:09
DrSlony left12:10
roelmonnens joined12:10
DrSlony joined12:10
DrSlony thanks Vampire0 :]12:10
jargon left12:10
DrSlony left12:10
masak I could imagine a dedicated tool being able to merge and conflict-resolve Word files. but not Git itself.12:10
Vampire0 OnlyForF1, well, I'd say "no real way" except take one of the two12:10
lb1a OnlyForF1, not possible for binary documents12:11
xender OnlyForF1: open all 4 versions in word and do it manually?12:11
OnlyForF1 Could you use a custom difftool?12:11
meLon left12:11
xender OnlyForF1: I mean - the common parent, remote ver., local ver. and destination file12:11
meLon joined12:11
lb1a OnlyForF1, if you know one that does understand doc format12:11
xender OnlyForF1: Aside from that, I heard that Word has its own changes history12:11
Vampire0 OnlyForF1, man git difftool12:12
gitinfo OnlyForF1: the git-difftool manpage is available at http://jk.gs/git-difftool.html12:12
Vampire0 xender, yes and no. You can switch on change tracking per document12:12
xender, and you can diff Word documents in Word12:12
ntio left12:12
dccc joined12:12
Guest50342 left12:12
xender OnlyForF1: You could also try to convert all 3 versions into some text representation (some XML or JSON or YAML or who-knows-waht thingy), resolve conflicts and convert back to binary12:12
*I mean plaintext12:13
Vampire0 But unless you have a proper merge tool that can handle Word files I think even with those features it is not too nice to merge conflicted Word docs12:13
beautifulmind left12:13
OnlyForF1 I really wish my company didn't use Word for documentation :S12:14
xender masak: The environmental variable for git rebase -i is GIT_SEQUENCE_EDITOR12:14
masak ah, cool.12:14
ntio joined12:14
masak so I could just slide my own script in there, and be done.12:14
OnlyForF1 Vampire0, I'm pretty sure word has a merge tool itself but can12:15
masak is thinking 'git-retcon'12:15
xender OnlyForF1: If they must use some WYSIWYG binary format, maybe ODT is an option?12:15
Vampire0 OnlyForF1, make them use DocBook, much better for diffing, conflict resolution and efficient storaage in a VCS12:15
OnlyForF1 ... can't be accessed using the command line12:15
ValicekB joined12:15
xender OnlyForF1: I don't know if that really changes anything as for merge tools goes, but you have better chances for open format than for proprietary one12:15
Vampire0 s/storaage/storage/12:15
dougsland joined12:15
specing left12:15
OnlyForF1 I think we're stuck with Word because of a bunch of third party software12:16
FabTG joined12:16
meLon left12:16
meLon joined12:16
OnlyForF1 As well as an overabundance of old people12:16
bremner but not old enough ;)12:17
ValicekB left12:17
hyperair joined12:17
OnlyForF1 The retirement age is growing faster then they are haha12:17
Vampire0 OnlyForF1, afair you can generate Word documents out of DocBook as well12:17
xender OnlyForF1: What about ODT?12:17
cbreak-work OnlyForF1: binary files suck12:18
OnlyForF1: xml file formats work if they aren't compressed12:18
amcsi_work joined12:18
cbreak-work I heard OpenOffice can store uncompressed xml, maybe that pile of dung microsoft word can compete with open office on that front12:18
OnlyForF1 I'll need to ask, atm we're using a third party library to convert our word documents to XML to be stored in a database12:19
Vampire0 OnlyForF1, And for the old people, buy XMLMind XML Editor. It is a great WYSIWYG editor for DocBook files where you can write the files similar to Word, they don't have to write plain XML necessarily12:19
cbreak-work Vampire0: LaTeX FTW!12:19
Muchoz joined12:19
OnlyForF1 And our word documents have all sorts of weird styles going on as well12:19
jargon joined12:19
Vampire0 cbreak-work, yes, LaTeX is also nice, but mostly overkill and too complex to tell people to use it. ;-)12:20
cbreak-work intentionally or accidentally? :)12:20
Vampire0: ... :(12:20
Vampire0 historically I guess :-D12:20
cbreak-work people just don't value the clarity of programming a text document12:20
OnlyForF1 Very intentional unfortunately12:20
meLon left12:21
LucasTT joined12:21
Vampire0 cbreak-work, the people that write those documents are all too often no programmers or developers. And those you can teach to use XMLMind for WYSIWYG DocBook editing, but not LaTeX writing12:21
OnlyForF1 I wish we could just use the intermediate XML format instead but then we can't keep our *"pretty"* PDF docs.12:21
meLon joined12:21
amcsi_work how do I find all dangling commits in the reflog?12:21
cbreak-work amcsi_work: commits that are in the reflog are by definition not dangling.12:22
Vampire0 OnlyForF1, If you use DocBook, you already have XML for your database, and you can generate pretty PDF docs from it with any style you like12:22
tgkokk joined12:22
OnlyForF1 Does DocBook support custom schema?12:22
amcsi_work cbreak-work, I see. Then I want to find all commits in the reflog that are not visible when doing git log --all12:22
OnlyForF1 and weird stuff like cross document linking?12:23
Lemony left12:23
goTAN left12:23
bezet left12:23
cbreak-work amcsi_work: you could try to play around with git log -g, maybe it works together with --contains or similar12:23
Vampire0 OnlyForF1, I'm not sure, never did that with DocBook and what do you mean by "custom schema"?12:23
balor left12:23
Muchoz left12:24
cbreak-work amcsi_work: hmm... maybe git log -g --not --all12:24
OnlyForF1 Worst case an XSLT translation from Docbook to our current format12:24
albel727 left12:24
mtk joined12:24
OnlyForF1 Although that could just be done afterwards12:24
amcsi_work cbreak, I'm getting "fatal: Cannot walk reflogs for refs/heads/attila"12:24
cbreak-work yeah, me too.12:25
looks like it doesn't work12:25
dccc left12:25
OnlyForF1 Oh DocBook is just an XML schema.12:25
Thanks for your help guys! I'll hack something up and try to convince my bosses to make the switch from SVN12:26
Vampire0 OnlyForF1, DocBook just is the XML definition of the documentation. Then you can use any XSL Stylesheet you want to transform it to whatever you like, including your current XML format. There are some pre-made Stylesheets for transforming to PDF, Javahelp, manpages and so on12:26
OnlyForF1, how to handle Word documents does not really influence on whether SVN or Git is used. If you have a diff tool that can merge Word documents with SVN, you can most proabably also use this with Git12:27
hoschi left12:27
flaguy48 left12:27
OnlyForF1 We were locking documents with SVN12:27
:p12:27
i_ron left12:27
Vampire0 cbreak-work, can't amcsi_work use man git reflog with a combination of --expire-unreachable and --dry-run to find the "dangling" refs?12:28
shauna_ joined12:28
shennyg__ joined12:28
albel727 joined12:28
cbreak-work Vampire0: hmm... that's an idea12:28
TDJACR left12:28
ws2k3 left12:28
zling_ left12:28
Norrin left12:28
Vampire0 OnlyForF1, ah, ok good point12:28
gitinfo left12:28
Imdsm^ left12:28
elijah left12:28
ggherdov left12:28
cbreak-work OnlyForF1: easiest way would be to find out if that word thing can store without compression12:29
I heard the new format is somewhat resembling something like xml12:29
ORiON-- left12:29
electrogeek left12:29
souther left12:29
Vampire0 Hm, gitinfo sleeping?12:29
txomon|home joined12:29
ereslibre left12:29
scalability-junk left12:29
ereslibre_laptop joined12:29
ws2k3 joined12:29
Vampire0 amcsi_work, man git reflog12:29
WakiMiko left12:29
ToaNii left12:29
ereslibre_laptop left12:29
ereslibre_laptop joined12:29
ValicekB joined12:29
Vampire0 !beer12:29
adys joined12:29
TDJACR joined12:29
HanClinto joined12:29
vespaper_ left12:29
JT-EC_ joined12:29
Matrixiumn left12:29
poimen left12:29
tmz left12:29
arcanis left12:29
accela-dev left12:29
kenyon left12:29
rivarun left12:29
adymitruk left12:29
ohcibi left12:30
electrogeek joined12:30
kenyon joined12:30
QshelTier joined12:30
strictlybsb12:30
ohcibi joined12:30
vespaper joined12:30
ORiON-- joined12:30
Vampire0 Hm, gitinfo is missing. jast?12:30
souther joined12:30
_ikke_ The bot is gone12:30
pasky_ joined12:30
adymitruk joined12:30
njsg__ joined12:30
RoryHughes left12:30
canton7 left12:30
xnox left12:30
resetpacket left12:30
Werring left12:30
rblackwe_ joined12:30
Favoretti joined12:30
NaiveFrost joined12:30
kilobyte joined12:30
Yahweh_ joined12:30
accela-dev joined12:30
uidzer0 joined12:30
jleclanche left12:30
mitzip_ joined12:30
gws___ joined12:30
SamB left12:30
Bombe left12:30
danmackay left12:30
bauruine left12:30
tmz joined12:30
djh__ joined12:30
Punna joined12:30
dropdrive joined12:30
elijah joined12:30
pdtpatr11k joined12:30
NaiveFrost_ left12:30
kaendfinger left12:30
shennyg_ left12:30
asakura1 left12:30
Pwnna left12:30
llakey left12:30
Cathy left12:30
Neptu left12:30
JT-EC left12:30
stoned left12:30
astaves left12:30
Segfault_ left12:30
St_Marx left12:30
NanoArrow left12:30
nuck left12:30
Artpicre left12:30
alexwhitman_ left12:30
pasky left12:30
RichardBronosky_ left12:30
shauna left12:30
fchmmr left12:30
njsg left12:30
eightyeight left12:30
nicksloan left12:30
ntio left12:30
causasui left12:30
skorgon left12:30
djh left12:30
pdtpatr1ck left12:30
mitzip left12:30
Yahweh left12:30
meatmanek left12:30
gws__ left12:30
rblackwe left12:30
Favorett1 left12:30
alexbligh1 left12:30
markmarkmark left12:30
jiriki left12:30
dcpc007 left12:30
jojva` left12:30
Corey left12:30
xnox joined12:30
shennyg__ left12:31
shennyg__ joined12:31
Imdsm^ joined12:31
zling_ joined12:31
PunnaPwnna12:31
kaendfinger joined12:31
QshelTierBombe12:31
adymitruk left12:31
adymitruk joined12:31
meLon left12:31
Corey joined12:31
djh__djh12:31
elijah left12:31
elijah joined12:31
zling_ left12:31
zling_ joined12:31
Imdsm^ left12:31
Imdsm^ joined12:31
i_ron joined12:31
llakey joined12:31
WakiMiko joined12:31
Werring joined12:31
meLon joined12:31
SamB joined12:31
RoryHughes joined12:31
rivarun joined12:31
Vampire0 Hm, lots of ping timeouts. Some server gone I guess12:31
arcanis joined12:31
Matrixiumn joined12:31
canton7 joined12:31
danmackay joined12:31
phil80 joined12:31
jakob joined12:31
red82 joined12:32
ToaNii joined12:32
Cathy joined12:32
crxz0193 left12:32
nicksloan joined12:32
nicksloan left12:32
nicksloan joined12:32
cagedwisdom left12:32
alexbligh1 joined12:32
RichardBronosky joined12:32
fchmmr joined12:32
Artpicre joined12:32
njsg__ left12:32
bosie joined12:32
dropdrive I'd like to share with my coworker my commits to mysupermod and mysubmod. My changes to mysubmod have *not* been pushed anywhere. When my coworker clones from my WC (is that bad?), he gets the upstream (?) url of mysubmod, and can't get my changes. Help?12:32
njsg joined12:32
gitinfo joined12:32
ChanServ set mode: +o12:32
eightyeight joined12:33
Vampire0 ah, there it is again12:33
ajc_ left12:33
dcpc007 joined12:33
bosie i made a mistake by committing a directory. though havent pushed. problem is its file size. is there a way to 'get rid of it'?12:33
Vampire0 amcsi_work, man git reflog12:33
Neptu joined12:33
meatmanek joined12:33
markmarkmark joined12:33
nuck joined12:33
_ikke_ WC?12:33
bauruine joined12:33
stoned joined12:33
bosie its 4 commits prior to the current status of the branch. came in through a merge12:33
_ikke_ working copy?12:33
Vampire0 bosie, !fixup12:33
dropdrive _ikke_: My working copy.12:33
gitinfo amcsi_work: the git-reflog manpage is available at http://jk.gs/git-reflog.html12:34
bosie: 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!12:34
_ikke_ There is no problem for him clonging from you12:34
alexwhitman joined12:34
astaves joined12:34
jojva joined12:34
Vampire0 dropdrive, what does "can't get my changes" mean? !www12:35
gitinfo dropdrive: What did you do (which commands?), what happened as a result (any messages?), and what was the result you expected instead?12:35
amcsi_work I don't know what I should look at in its man page12:35
jiriki joined12:35
meLon left12:36
dropdrive Vampire0: When my coworker runs `git submodule update`, he gets: fatal: reference is not a tree: SHA12:36
meLon joined12:36
Vampire0 amcsi_work try to use man git reflog with a combination of --expire-unreachable and --dry-run to find the "dangling" refs12:37
gitinfo the git-reflog manpage is available at http://jk.gs/git-reflog.html12:37
poimen joined12:37
Vampire0 dropdrive, so you are using submodules?12:37
amcsi_work Vampire0, fatal: unrecognized argument: --expire-unreachable12:37
harish_ joined12:38
ggherdov joined12:38
Vampire0 dropdrive, then I'm out sorry, not using those and preventing them where I can12:38
jast d'aww12:38
dropdrive Vampire0: Yep. I think the problem is that when my coworker clones from me, the "url" of mysubmod in .gitmodules is pointing upstream, not to me12:38
jast submodules are great :}12:38
bosie Vampire0: right but i couldn't find it12:38
Vampire0: because what i would need is to remove commited content, no?12:38
Vampire0: as in, remove it from the history, not a working dir12:39
xequence left12:39
Norrin joined12:39
xequence joined12:40
Vampire0 amcsi_work, what version of git do you use? I think that switch is there since 1.5.012:41
dccc joined12:41
ghostbox left12:41
Ace joined12:41
ghostbox joined12:41
bosie Use The BFG to remove unwanted data, like big files or passwords, from Git repository history. ?12:42
paulweb515 joined12:42
Vampire0 bosie, you can do that and !fixup should help you. Just be aware that you will !rewrite public history if you pushed already12:42
gitinfo bosie: 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!12:42
bosie: 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 <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum12:42
ACE__ joined12:42
pppp2 left12:42
ACE__ left12:42
amcsi_work Vampire0, 1.8.4.1 Aren't you mixing this command up with git gc or something?12:42
Vampire0 Nope amcsi_work12:43
amcsi_work, see: man git reflog12:43
gitinfo amcsi_work: the git-reflog manpage is available at http://jk.gs/git-reflog.html12:43
nordicdyno joined12:43
adysjleclanche12:43
tokik left12:43
pppp2 joined12:43
Vampire0 amcsi_work, I guess you didn't specify a time12:44
nordicdyno left12:44
Vampire0 and don't forget --dry-run if you don't want to actually expire it really but just to find 'em12:44
knownasilya joined12:44
CussBot left12:45
CussBot joined12:45
CussBot left12:45
CussBot joined12:45
amcsi_work fatal: unrecognized argument: --dry-run (if I put the --dry-run argument to come first)12:45
hs366 left12:46
Ace left12:46
meLon left12:46
jftf joined12:46
meLon joined12:46
beautifulmind joined12:46
CussBot left12:46
CussBot joined12:46
hoschi joined12:47
bezet joined12:47
Vampire0 well amcsi_work, then I guess you are still not reading the man page and omit the subcommand "expire", because then the subcommand "show" is used which does not know either of the two parameters12:47
paulweb515 left12:48
amcsi_work Vampire0, oh12:49
Vampire0 :-)12:49
sb left12:49
strictlyb joined12:50
amcsi_work none of them are unreachable12:50
vtunka joined12:50
str_ left12:50
amcsi_work this isn't working12:50
meLon left12:51
amcsi_work it's not as important anymore btw, because I actually realized that it is a different project where the commit I was looking for is on12:51
meLon joined12:51
dipendra left12:51
dccc left12:51
dregad joined12:52
HelloShitty thanks Vampire012:53
Vampire0: thanks12:53
Vampire0 yw HelloShitty12:54
hm, ok amcsi_work, never used that, just looked in the man pages for you :-)12:54
fairuz left12:55
ckyle joined12:55
luc_ joined12:56
meLon left12:56
HelloShitty !karma12:56
gitinfo This channel tracks karma based on who has gotten lots of thanks for being helpful. If you want to help someone reach karmic nirvana, please mention their name when thanking them. Try ".karma <nick>" or ".topkarma", but please do it via private message to avoid mass highlighting people.12:56
meLon joined12:56
vtunka left12:56
lsiv568 left12:58
lixxz_ joined12:58
jontmorehouse joined12:58
scalability-junk joined12:58
starkhalo joined12:59
SethM left13:00
paulweb515 joined13:00
SethM joined13:01
Textmode left13:01
lixxz_ left13:01
bitkiller joined13:01
mvdan left13:02
jontmorehouse left13:02
dipendra joined13:05
meLon left13:06
txomon|home left13:06
mizu_no_oto left13:06
meLon joined13:06
zumba_ad_ joined13:06
zumba_addict left13:07
intellix left13:07
il_ joined13:07
MattMaker joined13:08
dccc joined13:08
rchavik left13:08
jargon left13:09
shinnya joined13:09
toothrot left13:10
sgambino joined13:10
juvenal left13:10
qwyeth joined13:10
hcc23 joined13:10
Muchoz joined13:11
HelloShitty what is the git command to see if any file has any changes since the last commit/push?13:11
meLon left13:11
intellix joined13:11
meLon joined13:11
ohcibi git status13:11
OnlyForF1 or git ls-files -m13:12
groundnuty hey, I'm looking for some technical doc on .git dir, its structure and details about basic operations such commit and add13:13
I'm heaving troube find anything here https://github.com/git/git/tree/master/Documentation/technical13:13
do I look in a wrong place, or am I missing somethibg?13:13
simesy joined13:13
Hello71 !xy?13:14
gitinfo Woah, slow down for a bit. Are you sure that you need to jump through that particular hoop to achieve your goal? We suspect you don't, so why don't you back up a bit and tell us about the overall objective...13:14
Hello71 !xy ?13:14
gitinfo Woah, slow down for a bit. Are you sure that you need to jump through that particular hoop to achieve your goal? We suspect you don't, so why don't you back up a bit and tell us about the overall objective...13:14
NinjaNoel joined13:15
osse groundnuty: man gitrepository-layout13:15
gitinfo groundnuty: the gitrepository-layout manpage is available at http://jk.gs/gitrepository-layout.html13:15
groundnuty I do know what I'm asking for :)13:15
Muchoz left13:15
OnlyForF1 Why do you need it groundnuty13:15
?13:15
groundnuty OnlyForF1: courious13:15
*curious13:16
meLon left13:16
OnlyForF1 Well in that case have you seen the Google Talk Linus did concerning git?13:16
NinjaNoel left13:16
meLon joined13:16
amcsi_work_ joined13:16
groundnuty OnlyForF1: no, thank you I will watch it right away :)13:16
Asiajey left13:17
groundnuty in general I read resources I had and looking more low level stuff13:17
OnlyForF1 https://www.youtube.com/watch?v=4XpnKHJAok8&feature=kp13:17
JustMozzy left13:17
EminenceHC joined13:18
Vampire0 cbreak-work, can you tell me what I have to give --expire-unreachable as argument to denote "now"? I cannot get it to expire a ref I just made "dangling"13:18
Hello71 013:18
osse groundnuty: check out what I just gave you13:19
FortySix2 joined13:19
FortySix2 left13:19
craigp left13:19
nfroidure left13:19
Vampire0 Hello71, doesn't work. From a quick look into the source I guess 0 is interprete as 1.1.197013:19
groundnuty osse: reading it, thank you too13:19
dccc left13:20
amcsi_work left13:20
simesy left13:22
Vampire0 ah, I have to give it the ref. D'oh13:22
juliohm joined13:22
jorj joined13:22
Vampire0 this should probably throw some error13:22
Gizburdt left13:23
kikimeter joined13:23
balor joined13:23
EminenceHC left13:23
jftf left13:24
Vampire0 amcsi_work_, "git reflog expire --expire-unreachable=0 --dry-run --all" or "git reflog expire --expire-unreachable=0 --dry-run master" or "git reflog expire --expire-unreachable=0 --dry-run HEAD", according to what you are after. Without explicit ref and --all it seems to do just nothing13:25
vtunka joined13:26
meLon left13:26
meLon joined13:26
craigp joined13:26
jdmf left13:28
zumba_ad_ left13:29
jhermann left13:29
HelloShitty what is the git command to see if any file has any changes since the last commit/push?13:31
I can't find if anyone answered me!13:31
:|13:31
Vampire0 yes, someone did13:32
nfroidure joined13:32
Vampire0 besides that it is essential whether you mean commit or push as those are pretty much different13:32
HelloShitty well, I have changed a source code file13:32
mmitchell joined13:32
[EddyF] joined13:32
HelloShitty but I can't remember if I have made any commit and push or if I haven't13:33
zz_veatchveatch13:33
HelloShitty so I need to know if the version in github is the same or not from the file I have in my PC13:33
pppp2 left13:33
pppp2 joined13:34
freimatz joined13:34
jerius joined13:35
jerius left13:35
dccc joined13:35
HelloShitty Vampire0: I mean, I want to check if the content of the file in GitHub is still the same as the file in my PC13:36
moritz git diff @{u}13:36
amcsi_work_ left13:36
meLon left13:36
jerius joined13:36
cbreak-work Vampire0: no idea, sorry13:36
meLon joined13:36
moritz on tracked branches, 'git status' even tells if your state relative to the upstream13:36
brandonw joined13:36
amcsi_work joined13:36
HelloShitty jeezzzz, this channel has a lot of spamm with connecting messages13:36
cbreak-work Vampire0: I'd expect a time to work though13:36
moritz HelloShitty: configure your client to ignore them13:37
cbreak-work HelloShitty: so don't leave... :)13:37
HelloShitty configure git to ignore what?13:37
moritz HelloShitty: configure your IRC client to ignore joins/leaves13:37
HelloShitty the problem is that our conversations just disappear in a blink of an eye13:37
Gizburdt joined13:37
_ikke_ HelloShitty: no problems here13:38
HelloShitty moritz: I'm at work using a web chat13:38
_ikke_ HelloShitty: But that is the case with any sufficient large channel13:38
moritz HelloShitty: eeks13:38
HelloShitty: anyway, 'git diff @{u}' or 'git status' should tell you what you want to know, in different formats/detail levels13:38
livingstn joined13:38
HelloShitty git diff @{u} --> this was not what I was looking for13:38
there is a basic command that says that the version of the files are not the same13:39
moritz git diff --stat @{u}13:39
osse HelloShitty: it13:39
HelloShitty: git status?13:40
HelloShitty i guess that's it13:40
status13:40
yes, that's it13:40
moritz status doesn't tell you about remotes on a file base though13:40
HelloShitty but it was that one I was looking for13:41
thanks osse13:41
meLon left13:41
HelloShitty thanks moritz for helping13:41
meLon joined13:41
luc_ left13:41
jeffreylevesque joined13:43
HelloShitty one more question13:43
ohcibi HelloShitty: you have to say thanks to me as well as I named git status in the first place and it will push me to the last place in .topkarma13:43
dccc left13:43
pppp2 left13:44
jast oh, is that what the law says now? :}13:44
HelloShitty Is it possible to write the pass only one time and for the next ones, to make git to accept it automaticvally13:44
?13:44
cheers ohcibi I don't want you at the end of the list13:45
nnyk_ joined13:45
cbreak-work am I still on the list? :)13:45
ohcibi HelloShitty: im talking about .topkarma, i wasnt on that list before, so beeing on that list in the last place is more than not beeing in that list13:45
jast not on the 30 day list13:45
you're still not on the list, btw13:46
(@ohcibi)13:46
meLon left13:46
ohcibi jast: i know, i guess because HelloShitty said "cheers" instead of "thanks"13:46
jast I suspect that's not what you expected mostly because you don't understand karma ;)13:46
meLon joined13:46
jast cheers is detected by the bot13:46
cbreak-work I should be more active I guess... :)13:46
ohcibi jast: i thought one cheers is 1karma-point... so its more than one?13:46
cbreak-work behold, for I shall answer all your questions, karma-donnors!13:47
ohcibi: that'd be too easy13:47
jast one cheers is a small fraction of a karma point13:47
kermit left13:47
ohcibi ah ok...13:47
jast you thought gaining karma was easy? well it's not ;)13:47
osse !karma osse13:47
gitinfo This channel tracks karma based on who has gotten lots of thanks for being helpful. If you want to help someone reach karmic nirvana, please mention their name when thanking them. Try ".karma <nick>" or ".topkarma", but please do it via private message to avoid mass highlighting people.13:47
ohcibi but i have a karma of 2 , so it cannot be much more to get into that list 8-)13:47
osse .karma osse13:47
gitinfo the Genuine Real Life Karma™ REST API results are back! osse: 89 (8 in past 30 days) (4 given out)13:47
osse osse: thanks13:48
.karma osse13:48
gitinfo the Genuine Real Life Karma™ REST API results are back! osse: 89 (8 in past 30 days) (4 given out)13:48
osse :(13:48
jast cheater13:48
ohcibi lol13:48
hkon_ left13:48
kermit joined13:48
jast I'll have to take c7's suggestion to filter out self-thanks13:48
ohcibi .karma ohcibi13:48
gitinfo the Genuine Real Life Karma™ REST API results are back! ohcibi: 2 (0 in past 30 days) (1 given out)13:48
Gonzo89 left13:48
ohcibi ok13:48
jast or maybe I'll just kickban all cheaters13:48
ohcibi i got that even more wrong13:48
i have 2 in total 8-))13:48
osse jast: looks like that filter already is in place13:49
jast not that I know of13:49
once again, a single thanks doesn't make a karma point13:50
osse ah13:50
osse: thanks13:50
.karma osse13:50
gitinfo the Genuine Real Life Karma™ REST API results are back! osse: 89 (8 in past 30 days) (5 given out)13:50
jast you still want that kickban? ;P13:50
osse If I'm not mistaken I can unban myself13:50
cbreak-work wasn't there a karma web interface?13:51
jast depends on how thoroughly you get banned13:51
meLon left13:51
jast well, if there is one, it wasn't me who made it13:51
meLon joined13:51
cbreak-work hmm... or just a lines-said counter13:51
mizu_no_oto joined13:51
bezet left13:51
cbreak-work http://itvends.com/irc/git-all.html13:51
indeed13:52
I rock13:52
yosito joined13:52
jontmorehouse joined13:52
hockey567 joined13:53
bremner hrm. Maybe I should link that from my CV ;)13:53
HelloShitty Is it possible to write the pass only one time and for the next ones, to make git to accept it automaticvally13:53
???13:53
cbreak-work pass?13:54
HelloShitty: use ssh keys :)13:54
AaronMT joined13:54
cbreak-work with those you can use ssh-add as key manager13:54
HelloShitty I already added an ssh key to github13:54
cbreak-work if you use https, you'll have to do something else13:54
beautifulmind left13:54
cbreak-work (.netrc or so I think?)13:54
HelloShitty: git remote -vv will show you wether you use ssh or https13:55
HelloShitty i'm using ssh13:55
cbreak-work then use ssh-add13:55
add the key13:55
and git should use it to authenticate. Without additional password. Until the next reboot or relog or timeout13:55
HelloShitty it says:13:55
Could not open a connection to your authentication agent.13:55
Not-930a joined13:55
HelloShitty when I try to add the key13:56
zumba_addict joined13:56
HelloShitty with ssh-add13:56
meLon left13:56
jast I'm assuming you have no experience with SSH agents?13:56
meLon joined13:56
jast (anti-self-thanks committed)13:56
HelloShitty nope jast13:57
jontmorehouse left13:57
kevinb left13:57
jast right. basically you start an instance of ssh-agent in your session somewhere, and make sure a bunch of environment variables get set to appropriate values in all shells you use13:58
ohcibi jast: do the thanks just sum up or is there a more complicated calculation with weighted thanks?13:58
jast once that is set up, you can cache key passwords by running 'ssh-add' and all ssh invocations will check back with the agent13:58
dccc joined13:58
jast the alternative is to use an unencrypted ssh key :}13:58
ohcibi or one of the various gui-tools that do the keychain-stuff for you13:59
kevinb joined13:59
mattstratton joined13:59
HelloShitty I have checked with ps aux | grep -i ssh-agent13:59
glosoli joined13:59
HelloShitty and there is one ssh-agent running with pi 19835813:59
1983814:00
jast ohcibi: each individual thanks is weighted by a constant14:00
ohcibi you have to ssh-add your keys14:00
HelloShitty but when I try to add the key with14:00
lpax joined14:00
jast so presumably the agent got started somewhere but your shell(s) don't have the env var that tells ssh where the agent lives14:00
relisys- joined14:00
FabTG left14:00
HelloShitty ssh-add ~/.ssh/id_rsa.pub14:00
it says Could not open a connection to your authentication agent.14:00
so how do I do that?14:01
meLon left14:01
jast it depends on how the agent is getting started in the first place14:01
meLon joined14:01
cbreak-work on OS X it should be automatic14:01
HelloShitty i started it with eval 'ssh-agent -s'14:01
cbreak-work you shouldn't need to start it14:02
jast that way it'll only work in the same shell session14:02
cbreak-work there should be an env var set like SSH_AUTH_SOCK=/tmp/launch-msltN8/Listeners14:02
glosoli left14:02
gitinfo set mode: +v14:02
relisys- I have some files in .gitignore. I have 2 local development machines, a live server and a dev server. For some reason, whenever I merge on the dev server, it deletes some of the files i have in .gitignore. This never happens on local machines or live server but keeps happening on dev server14:03
HelloShitty SSH_AUTH_SOCK=/tmp/ssh-kyOsL8bKS14r/agent.19837; export SSH_AUTH_SOCK;14:03
relisys- i feel like I'm not understanding something14:03
cbreak-work relisys-: gitignore is irrelevant14:03
HelloShitty SSH_AGENT_PID=19838; export SSH_AGENT_PID;14:03
cbreak-work relisys-: it doesn't apply to tracked files14:03
HelloShitty echo Agent pid 19838;14:03
relisys- these files are not tracked anymore14:03
cbreak-work then git won't delete them either14:03
git won't touch untracked files14:04
relisys- it's not touching them on 4/5 of the machines14:04
cbreak-work relisys-: maybe they are still tracked on that machine14:04
and you merged their deletion (their untracking)14:04
relisys- but i've merged their deletion like 5 times now14:04
i didn't notice this time if it said it deleted them14:04
some of the files have been in .gitignore for months14:05
and haven't gotten deleted14:05
during any merge14:05
then all of a sudden just now i merge and they got deleted14:05
HelloShitty jast: can you help me getting this to work?14:05
_iron joined14:05
_iron left14:05
jast I don't really have that much time right now, sorry14:05
cbreak-work relisys-: you can look in history when they were deleted on that machine (with git log -- file)14:05
meLon left14:06
meLon joined14:06
corehello left14:07
xequence left14:08
dccc left14:09
toedwy joined14:09
squeakytoy joined14:10
IrishPrime joined14:11
meLon left14:11
B1x1t0 joined14:11
meLon joined14:11
Muchoz joined14:11
squeakytoy Hey all. I am trying to figure out what command is best to get information about a single commit (based on a hash). Currently using git diff-tree with an own format. But it doesn't seem there is a format placeholder to get the "diff" between files14:11
Trudko left14:12
squeakytoy if i use git show, I cannot use pretty for the diff14:12
CodePulsar left14:12
squeakytoy I want the easier way to get information about a commit, so my third party application can parse the output into its system.14:12
gargola_ left14:14
Diemuzi joined14:14
gitinfo set mode: +v14:14
chrisshattuck joined14:15
lb1a squeakytoy, script it yourself and use the pluming commands, to get what you want. maybe setup an alias for easier invocation14:15
plumbing*14:15
Muchoz left14:16
meLon left14:16
meLon joined14:16
osse squeakytoy: git log -1 perhaps14:17
-p gives you a diff also14:17
squeakytoy ok, thanks for all suggestions14:18
FabTG joined14:18
treehug88 joined14:18
Destos joined14:18
lb1a !ping14:20
gitinfo I only respond to !reply_time14:20
bezet joined14:20
simesy joined14:20
Corey84 left14:20
gua_ould left14:20
shingshang joined14:21
KamalKaur joined14:21
JT-EC_JT-EC14:21
Vampire0 HelloShitty, sorry, got distracted by work. *g* I hope you have your answer already :-)14:22
HelloShitty nope14:22
Vampire0 cbreak-work, yeah, found out already that "0" works. Just giving neither "--all" nor an explicit ref does nothing without some error message14:22
fairuz joined14:23
Guddu_ joined14:23
HelloShitty I just can't get my passphrase correct to add the ssh key to ssh-gaent so that I don't need to write the passphrase each time i issue a ush command14:23
Dougie187 joined14:23
Errorical left14:24
EminenceHC joined14:24
papegaaij left14:24
dccc joined14:24
Vampire0 HelloShitty, ah, ok, I meant the diffing thing so see whether you commited and pushed changes to a specific file14:25
HelloShitty ah yes14:25
rath left14:25
HelloShitty that one I got it14:25
git status14:25
ShooterMG joined14:26
ShooterMG left14:26
Vampire0 which woudl be "git status -- file.ext" for committed or not and "git diff @{u} -- file.ext" for pushed or not14:26
meLon left14:26
meLon joined14:26
Vampire0 About ssh agent, !www14:26
gitinfo What did you do (which commands?), what happened as a result (any messages?), and what was the result you expected instead?14:26
relisys- so git log --file says that the file hasn't been touched in May 21 yet it was definitely just deleted by git14:26
rypeck joined14:26
gua_ould joined14:27
Vampire0 relisys-, are you missing a space between -- and file?14:27
Zariel_ left14:27
gua_ould left14:27
relisys- no, i have a space14:28
gua_ould joined14:28
relisys- otherwise it says invalid argument14:28
EminenceHC left14:28
relisys- i'm getting the log back but it says "file" hasn't been touched since may 21 when it was removed from git14:28
but somehow it just got deleted when I merged14:29
it is untracked and in .gitignore14:29
supposedly untracked that is14:29
jmichaelward joined14:30
KamalKaur left14:30
ckyle left14:30
Vampire0 relisys-, supposedly untracked?14:30
relisys- well how the hell else did git delete it?14:30
bambams_ joined14:30
relisys- i just made a change to it, git shows no changes to commit14:30
so it must not be tracked14:30
craigp left14:31
teran joined14:31
meLon left14:31
relisys- but i'd ask again, how/why did .git delete it then, and there is nothing in the logs...14:31
Vampire0 being matched by .gitignore means "ignore it if it is untracked"14:31
stodan left14:31
relisys- it's untracked14:31
that was kind of sarcasm14:31
meLon joined14:31
drswap joined14:31
relisys- because i don't see how git deleted it, if it's untracked and in .gitignore (which it is)14:31
Hounddog left14:31
relisys- and this has happeneed repeatedly14:31
NanoArrow joined14:32
relisys- with another untracked file. These untracked files it deleted today have been untracked and ignored since May 21 and it deleted them during a merge today14:32
Vampire0 It is an untracked file and in .gitignore and it gets deleted by git?14:32
relisys- yes14:32
Vampire0 hm14:32
relisys- sounds impossible14:32
cbreak-work git doesn't touch untracked files at all, apart from git clean or git add14:32
(or as side effect)14:33
dfaught joined14:33
relisys- i know14:33
gua_ould_ joined14:33
relisys- i cant' explain it, obviously something is going on that i'm not understanding14:33
was hoping you guys might have a scenario where things could be or appear to be happening the way they are14:34
EminenceHC joined14:34
relisys- but it doesn't sound like you have any ideas either :P14:34
gua_ould left14:34
gua_ould_gua_ould14:34
relisys- i must have something hosed up14:34
Vampire0 I guess an important piece of information is missing to get the situation14:34
relisys- I guess14:35
something I'm overlooking14:35
Vampire0 Maybe !www and !summarize helps14:35
gitinfo What did you do (which commands?), what happened as a result (any messages?), and what was the result you expected instead?14:35
[!dont_summarize] Please do not summarize what you did; !pastebin _exactly_ what commands you ran, what the output was, and why you think that this is wrong. Otherwise you may hide the real issue. See also !obfuscate and !repro14:35
zapotek6 joined14:35
relisys- do different branches have different .gitignore files?14:35
zapotek6 left14:35
craigp joined14:35
Vampire0 yes14:35
relisys- maybe a branch i merged doesn't have the right .gitignore?14:35
Munter_ joined14:35
Junior left14:35
Vampire0 But even then I guess the file should not be touched. Not without warning you about it14:36
s/guess/think/14:36
kriks left14:36
KevinTS left14:37
dccc left14:37
Guest89885 joined14:37
aldodelgado joined14:37
zapb joined14:38
jontmorehouse joined14:38
dotpot left14:38
thms joined14:38
ckyle joined14:39
thms left14:39
thms joined14:39
gitinfo set mode: +v14:39
Munter_ left14:39
thms Hi there, I have a github account, I connect to the master, can push commit and view changes on the web interface14:39
Guest89885 hellp14:39
tang^ joined14:39
thms I done a git checkout -b "newbranch"14:39
problem is the branch doesn't show up after pushing it, it says no changes everything up to date14:39
fjfish joined14:39
Munter joined14:39
Munter Hi. I'm trying to revert a merge commit and ran into the thing about having to define what parent number is supposed to be the new parent. I was thinking it'd be some nice sugar to be able to define the commit hash-ish as a parent instead of having to look up a number you're not usually exposed to. Has this been discussed before?14:39
thms and git branch displays master and newbranch, but there are *other* branches created via the github.com account14:39
przemkovv left14:40
vtunka left14:40
gordian joined14:40
francisfish left14:40
jaimef left14:40
meLon left14:41
meLon joined14:41
squeakytoy left14:41
jaimef joined14:41
Vampire0 thms, !www and !summarize14:41
gitinfo thms: What did you do (which commands?), what happened as a result (any messages?), and what was the result you expected instead?14:41
thms: [!dont_summarize] Please do not summarize what you did; !pastebin _exactly_ what commands you ran, what the output was, and why you think that this is wrong. Otherwise you may hide the real issue. See also !obfuscate and !repro14:41
Vampire0 Guest22956, !hi14:41
gitinfo Guest22956: [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice.14:41
Kaisyu joined14:42
dfaught left14:42
thms Vampire0: I done "git checkout -b "newbranch" and "touch file.php" and "git add file.php", and git commit -am "new file" and finally git push14:42
if I do git checkout master there is no file.php14:42
if I do git checkout typo360 there is the file.php14:42
but the typo360 branch doesn't show up in the github webinterface14:43
osse thms: then you need to push it14:43
thms there is also a "production" branch, but git branch displays only the branches I created (so "newbranch", and ofc master)14:43
Vampire0 tham, git push origin newbranch:newbranch14:43
thms Ho wait14:43
I actually had to type the branch name14:43
Vampire0 and to see other branches, !where_are_my_branches14:43
thms in the github interface14:43
it wouldn't show up as choices but when I searched for it it worked. thanks a lot.14:44
Vampire0 thms !wherearemybranches actually14:44
gitinfo Git clones all branches, but initially makes only the main branch (usually 'master') available as a normal local branch. To work on another branch, simply 'git checkout <branch>' (or, in versions older than 1.6.6, git checkout -b <branch> origin/<branch>). This works even if the branch doesn't show up in the normal list of branches. For technical details, see !rtb14:44
przemkovv joined14:44
Vampire0 ah, ok great :-)14:44
xificurC left14:44
jontmorehouse left14:44
Vampire0 Munter, are you asking how you say the xth parent of a commit symbolically?14:45
that would be <commit>^x14:45
nickpresta joined14:46
meLon left14:46
n-st joined14:46
meLon joined14:46
joki left14:46
bgerber left14:47
jontmorehouse joined14:48
osse Vampire0: <commit>~x14:48
oh14:48
no, you're right.14:48
bgerber joined14:48
osse english is hard14:48
jast should we switch to navajo?14:49
osse si14:49
Vampire0 :-)14:50
zz_jrhorn424jrhorn42414:50
simesy left14:50
Vampire0 There are myths that I don't always talk rubbish, seems they are true :-D14:50
kriks joined14:50
meLon left14:51
meLon joined14:51
the_cybersphinx joined14:51
dccc joined14:51
joki joined14:52
zapotek6 joined14:56
przemkovv left14:56
zapotek6 left14:56
lsiv568 joined14:56
meLon left14:56
przemkovv joined14:56
meLon joined14:56
ojacobson joined14:56
_Vi left14:56
balor left14:57
a_le joined14:58
exobit joined14:59
tranzfuse joined15:00
cbreak-work Vampire0: one sample does not make for anything close to statistical relevance15:00
roelmonnens left15:00
Vampire0 :-P15:00
lsiv568 left15:00
tang^^ joined15:00
acolson left15:01
FilipNortic left15:01
qsuscs osse: which is you native language?15:02
drswap left15:02
tang^ left15:03
dccc left15:03
sdrfnord1 left15:04
Silmarilion left15:05
[EddyF] left15:05
xequence joined15:05
meLon left15:06
meLon joined15:06
[EddyF] joined15:06
Corey84 joined15:07
Munter Vampire0: No. Rather, I'd like to be able to define the parent as a hash instead of an index. Since the index is not something most people are aware of, but everyone should be aware of hashes15:07
I'll probably implement a little local bash script that takes a hash, iterates over the parent indexes and picks the one that matches the hash. I was just thinking that I might not be the only one benefitting from it15:08
ojacobson "the one"15:09
if you cheat hard enough, you can create a commit object with the same parent more than once15:09
git itself never creates those, but they do work if you fudge it15:09
basiclaser left15:09
craigp left15:09
darkxploit joined15:09
rob_w left15:10
basiclaser joined15:10
meLon left15:11
cxreg2cxreg15:11
tranzfuse left15:11
osse qsuscs: heh, I was just kidding... but it's right that english is not my mother's thong15:11
Gizburdt left15:11
meLon joined15:11
hgl joined15:11
ChanServ set mode: +o15:11
the8thbit joined15:12
Eugene changed the topic to: Welcome to #git, the place for git help and unavoidable meetings | Current stable version: 2.0.1 | Start here: http://jk.gs/git | Getting "cannot send to channel"? /msg gitinfo .voice | git-svn: now you have two problems.15:12
Eugene set mode: -o15:12
Muchoz joined15:12
Vampire0 Munter, sorry, don't get what you mean15:13
cbreak-work left15:13
hgl left15:13
hgl joined15:13
tang^^tang^15:14
qsuscs osse: did you really just say that your mother’s thong is not english?!15:14
Eugene It's Thai.15:14
hgl left15:14
MrDHat left15:15
hgl joined15:15
FabTG left15:15
hgl left15:15
hgl joined15:15
molqr joined15:16
meLon left15:16
Zariel_ joined15:16
Gizburdt joined15:16
Gizburdt left15:16
Gizburdt joined15:16
meLon joined15:16
Vampire0 qsuscs, what is so strange about that? I guess many peoples mother tongue is not English in here. Mine is German15:16
Gizburdt left15:16
Muchoz left15:17
ghostbox left15:17
qsuscs Vampire0: ja schon, ich auch. but he said thong, and not tongue. zunge vs. …schau lieber selbst.15:17
jast it might have been deliberate15:18
Vampire0 ah, right15:18
lol15:18
noxd left15:18
mennea left15:18
qsuscs (Welcome to #git, the place for git help and foreign underwear)15:19
dfaught_ joined15:19
tranzfuse joined15:19
Vampire0 you know this qsuscs: http://th08.deviantart.net/images/200H/i/2003/2/0/0/getStringFromObject.jpg ? :-)15:19
dccc joined15:19
jftf joined15:19
lolmaus joined15:19
thiago joined15:20
Corey84 left15:21
thedodd joined15:21
osse qsuscs: i did15:21
Megaf joined15:21
meLon left15:21
tyreld joined15:21
osse qsuscs: less boring than "mother tongue"15:21
qsuscs … native language, then.15:21
meLon joined15:21
sm0ke joined15:21
jeffreylevesque does the "longest streak" in github only span the last year, or is the streak indefinite since your account was created?15:22
toomanysecrets left15:22
jast no idea, ask github (or #github, maybe)15:22
sm0ke hey guys on my git repo it shows a commit merged remote tracking blah blah...15:22
GT joined15:22
sm0ke but when i do git rebase -i HEAD~3 it doesnt show up15:23
jfran joined15:23
Mixologic joined15:23
jast rebase flattens merges15:23
sm0ke also the order of commits is also f**kd up15:23
jast use -p if you want to try and preserve them15:23
hoylemd Who does neale want to punch?15:24
ach. wrong channel. ignore me.15:24
doddstack joined15:24
sm0ke jast: so here is what i want i want to sqash last 3 commits into singl one15:24
jftf left15:24
sm0ke but `git rebase -i HEAD~3` is really not what i am expecting15:24
jast is any of them a merge?15:24
sm0ke yes15:24
Yahweh_ left15:25
dreiss joined15:25
jast right. rebase treats merges as if all the commits on both sides were made in parallel (roughly)15:25
dsdeiz joined15:25
jast in this case a different approach is probably simpler15:25
thedodd left15:26
jast e.g. git reset --soft HEAD~2; git commit --amend15:26
meLon left15:26
bvi left15:26
meLon joined15:26
sm0ke what will that do?15:26
FabTG joined15:27
sm0ke so here is the thing i commited to my local repo then merged to remote and committed again15:27
atamanroman joined15:27
jontmorehouse left15:27
hgl left15:28
mewm left15:28
jontmorehouse joined15:28
hockey567 left15:28
JDHawke joined15:28
JDHawke is there a simple way of being able to replace a tag in a file with the commit id that it's part of...any kind of place holder or such?15:29
leb joined15:29
GT left15:29
sm0ke so actually its like MY_COMMIT-> (2 COMMITS AND MERGES BY SOMEONE) -> MY_AGAIN15:30
nfk left15:30
sm0ke ON GITHUB It SHOW LIKE (MINE-> MY_MERGE -> MINE_AGAIN)15:30
HelperW__ joined15:30
sm0ke ugh..excuse me.. but rebase is not like that15:30
EmmEight joined15:31
jast sm0ke: maybe you want to rebase against upstream first, and then figure out what to do next15:31
paulweb515 left15:31
GodEater left15:31
sm0ke i doubt if github sorts commits by time15:31
jast that will put your commits on top of other people's commits15:31
sm0ke jast: how do i do that?15:31
jast (by that I mean NON-interactive rebase)15:31
aldodelgado left15:32
jast git rebase <wherever you merged from, e.g. origin/master>15:32
jimi_ joined15:32
jast JDHawke: after the fact, sure, as part of your build scripts15:32
it's mathematically infeasible, of course, to do it as part of the commit15:32
dccc left15:32
JDHawke jast15:32
sm0ke i merged from remote/dev15:33
jast that's my IRC nick, yes15:33
j416 JDHawke: clean/smudge may be of help http://git-scm.com/book/en/Customizing-Git-Git-Attributes15:33
sm0ke let me try15:33
JDHawke jast: thanks, I was looking at that path, but was wondering if there was anything else15:33
sm0ke i am really not sure15:33
jimi_ I have a question that I'm a bit conflicted on. My boss asked me to put our user uploaded content / images, etc into git, so that we can migrate servers, etc in the future easier. My thought was... we really dont want to do that, because those files do not really change, or have anything history related to track. Wouldnt it be better to backup those sepearelty, or store them in some other manner, unrelated to git?15:33
Thra11 joined15:33
acharlieh joined15:33
jast jimi_: yes.15:33
JDHawke lol, yeah, tab completion in my IDE isnt the same as in my IRC....15:33
jast you're much better off using rsync for stuff like that15:33
EmmEight left15:34
jimi_ yep15:34
HelperW_ left15:34
qsuscs additionally, !baloon15:34
jimi_ Ok, just making sure im not completely crazy.15:34
qsuscs !balloon15:34
gitinfo [!binary] Storing binary files in git causes repo balloon, because they do not compress/diff well. In other words, each time you change a file the repo will grow by the size of the file. See !annex for some solutions15:34
Zoddo joined15:34
sm0ke jast: it seemed to put my commits on top15:34
jast qsuscs: not an issue if the files never change :)15:34
sm0ke jast: but i dont see the merge commits at all now15:34
jimi_ !annex15:34
gitinfo git-annex and git-media are two solutions to the !binary problem. They work by keeping the blobs outside of the repo, storing a reference to the blob in the repo instead. See http://git-annex.branchable.com/ and https://github.com/schacon/git-media15:34
qsuscs it’s still very big.15:34
jceb left15:34
qsuscs :<15:34
HelperW__ left15:35
JDHawke j416 : that looks perfect for what I need15:35
jast sm0ke: that's because they are no longer needed now. the commits have been re-ordered so the merge is not required anymore.15:35
cjwilburn joined15:35
sm0ke do i just push -f now?15:35
jast oh, you already pushed your merge thingy?15:35
JDHawke I just want to be able to look at the file and know which version was checked out, I think that will work perfectly!15:35
j416 JDHawke: I'd avoid using it too much though, it can become confusing when the file contents do not correspond to what's in the repo15:35
sm0ke yes15:35
jast you might want to mention that kind of thing a little earlier :)15:35
Noldorin joined15:35
sm0ke what!15:35
jast because !rewrite15:36
gitinfo 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 <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum15:36
sm0ke i kill you jast :D15:36
jast don't worry, we can undo the rebase15:36
nfk joined15:36
meLon left15:36
lb1a left15:36
meLon joined15:36
JDHawke j416 I can see that, but I only plan on using it on one file, and it's a repository thats going to be typically read only for most users...15:36
jast sm0ke: though it's fine if you're reasonably certain nobody else has your old copy of the history that contains the merge15:36
Trudko joined15:37
sm0ke yes its my fork15:37
no one else can do anything15:37
akim__ joined15:37
gua_ould left15:37
jast well, it's not what they can *do*, is what they've already merged from you15:37
akim__akim15:37
jast it's fairly likely they haven't even cloned your repo, so a force push should be okay15:38
martinklepsch joined15:38
sm0ke hmm should i squash now or after committing15:38
pushing*15:38
j416 JDHawke: be aware that it won't just magically work for anyone who is cloning your repo15:38
felipe joined15:38
punchagan joined15:38
sm0ke let me just push wth15:38
jast might as well do it now while you're at it15:38
j416 JDHawke: you have to configure it properly first15:38
jast otherwise you'll have to force push again15:38
no big deal, I suppose15:39
sm0ke yea15:39
epifanio joined15:39
sm0ke ok squash went fine15:39
i am not very sure about the status though15:40
Your branch and 'origin/master' have diverged, and have 1 and 3 different commits each, respectively.15:40
JDHawke j416 thanks for the tip, I'll play around and see if I can make it work...if not...back to the build scripts ;)15:40
solker_ joined15:40
j416 yw15:40
jast sm0ke: think of it like this: 3 are the old, not rewritten history, and 1 is your new squashed commit15:41
meLon left15:41
meLon joined15:41
jast this piece of logic doesn't know you used to have these 3 commits... after all you just made git think they never existed ;)15:41
sm0ke but how do we know we did not f**k up conflicts in what we just did15:42
argh git hard15:42
git is*15:42
jimi_ !hard15:42
lol15:42
chrisshattuck left15:42
j416 sm0ke: !book15:42
gitinfo sm0ke: There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable15:42
luto !bottomup <315:42
gitinfo 'Git from the bottom up' starts with explaining the building blocks of git and proceeds to tell you how they fit together. http://ftp.newartisans.com/pub/git.from.bottom.up.pdf (http://ikke.info/git.from.bottom.up.pdf)15:42
jast well git didn't complain about any conflicts15:43
sm0ke :`(15:43
jast: let me trust you on this one15:43
solker left15:43
jast in practice that's really all that matters15:43
[sr] _ikke_: have more problems in another repo :(15:43
ghostlin_ left15:43
j416 sm0ke: I knew nothing, then I spent 2 days reading, now I know quite a lot without having asked many questions at all. So.. read the book.15:43
jast if you don't trust that, you can't ever trust any merge/rebase that does any automatic merging of file contents15:43
PrimalHunter joined15:43
sm0ke good point15:44
let me see what i led me too on github now15:44
it*15:44
jast github says: your repository? uh... it's got to be around here somewhere... maybe...?15:44
brownbathrobe joined15:45
jftf_ left15:45
Eugene Omnomnom tasty repo15:45
qsuscs !botsnack15:45
gitinfo Om nom nom15:45
mattstratton left15:45
meLon left15:46
PrimalHunter I got a non technical quesiton about git. Would this be a place to bring it up or should i go else where? It's a question about my usage pattern and the way git is intended to use.15:46
freimatz left15:46
meLon joined15:46
moritz PrimalHunter: it's fine to ask here15:47
sm0ke jast: looks about right15:47
Balliad left15:47
ojacobson Fallacy #1: "git has an intended use"15:47
sm0ke thanks15:47
RusAlex joined15:47
moritz we get workflow questions regularly15:47
ojacobson git's more like a bag of tools for building source control systems than it is like a source control system15:47
sm0ke that rebase against remote was useful thing15:47
sea-gull_ left15:47
sm0ke what exactly does rebase do there?15:47
invalid_packet_ joined15:47
sm0ke reorders commits?15:47
moritz sm0ke: yes, it puts your own commits on top of the branch you rebase against15:48
dccc joined15:48
sm0ke hurm didnt knew about that15:48
hkon_ joined15:49
sm0ke actually i know nothing tbh15:49
gitinfo set mode: +v15:49
invalid_packet_ Hello everyone15:49
gitinfo invalid_packet_: 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.15:49
qsuscs ojacobson: git is a fancy file system (except for the permissions)15:49
invalid_packet_ Does anyone know where to find official documentation aboutn git custom commands?15:50
psoo left15:50
PrimalHunter Hehe OK. Thanks! :) I'm currently thinking about forking a project on github and my commit mentallity on a local level is "commit often". This means I also commit broken code in my local repo. But i'd love to get a orderly looking github repo. So I'd have to somehow "condense" my "in development" commits so they don't show up on github. Is this a problem of my usage pattern or is there a way to15:50
do this?15:50
qsuscs PrimalHunter: use !feature_branch15:50
!feature_branches15:50
dfaught_ left15:51
ojacobson PrimalHunter: !sausage !githubflow15:51
gitinfo PrimalHunter: [!sausage_making] Some developers like to "hide the sausage making", transforming their commits before presenting them to the outside world. See http://sethrobertson.github.com/GitBestPractices/#sausage and !perfect15:51
PrimalHunter: [!github_flow] This is the workflow followed by github: http://scottchacon.com/2011/08/31/github-flow.html15:51
meLon left15:51
il_ left15:51
chrisshattuck joined15:51
qsuscs oh, there is no such trigger like i intended15:51
meLon joined15:51
mizu_no_oto left15:51
HelloShitty left15:51
_Vi joined15:52
qsuscs invalid_packet_: do you mean implementing like "git foobar"?15:52
zoso left15:52
dfaught joined15:52
brownbathrobe left15:52
RusAlex q: recently github added blocking access for often queries. And now I have a problem, when I want to do 'git submodule foreach git pull', some of repos throws "connection timeout". How can I avoid this ?15:52
jast PrimalHunter: look into interactive rebase. if memory serves correctly, here: !interactive_rebase15:52
gitinfo PrimalHunter: Interactive rebase sounds similar to rebase but has completely different abilities. It can do this to commits: change the order, squash some of them together, remove some, add random existing commits from other branches, split them, and more... it's very powerful. Documentation is in the section "Interactive Rebase" in 'man git-rebase'.15:52
dfaught left15:53
il_ joined15:53
jast man git-rebase15:53
gitinfo the git-rebase manpage is available at http://jk.gs/git-rebase.html15:53
PrimalHunter Thanks a lot for all that help! :) I'm gonna red up on it. I guess I haven't really thought about branching in the process, sorry. :) Thanks for being uber-helpful! :D15:53
hkon_ left15:53
dfaught joined15:53
invalid_packet_ qsuscs: Yes. I found many articles around the web, all about putting executables files in your $PATH like git-foo, but found nothing in git documentation15:53
qsuscs invalid_packet_: i don’t know if this is mentioned somewhere, but that’s it. place git-foobar in your path and run git foobar15:54
MatrixiumnCaveJohnson15:54
qsuscs invalid_packet_: there are APIs in many common scripting languages, and as git is written in C, writing own commands in C is as easy as any C program (i.e. hard)15:54
Munter Vampire0: I mean something like `git revert <hash-to-revert> --parent <hash-of-parent>`, where <hash-of-parent> matches the parent-id to base the history upon15:55
ojacobson or in GIT_EXEC_PATH, if you prefer to only access git-foo through git(1)15:55
meLon left15:56
akushner joined15:56
meLon joined15:56
sm0ke bye all and thanks much15:56
sm0ke left15:56
solker_ left15:56
Eugene .trigger_edit custom_subcommands You can create custom git subcommands(eg, `git foo`) in two ways: man git-config and see alias.*, or place a script/binary in your PATH(~/bin/ is a good candidate) named "git-foo". The `git` wrapper will find these and execute as-needed.15:56
gitinfo Eugene: Okay.15:56
invalid_packet_ qsusc: alright then, thaks15:57
solker joined15:57
lsiv568 joined15:57
nekyian_ left15:57
LeMike left15:58
Munter Vampire0: My thinking is that the specific hash I want to be the parent is easier for most users to figure out from the logs, while the id of the parent of the merge commit is somewhat more elaborate to figure out15:58
Rastus_Vernon joined15:58
dccc left15:58
dreiss left15:59
ofdm joined16:00
[sr] _ikke_: i think the problem may be, commiting with a 1.x version and the server is a 2.x version, could it be the reason?16:00
dsdeiz left16:00
thms left16:01
invalid_packet_ left16:01
meLon left16:01
imachuchu joined16:01
meLon joined16:01
a_le left16:01
Eugene No, the repository format has not changed.16:02
tvw left16:02
mlechner left16:03
nnyk_ left16:03
Musok joined16:03
a_le joined16:03
lindenle left16:04
Guddu_ left16:04
lindenle joined16:04
Royalb15_1 joined16:04
Guddu_ joined16:05
Vampire0 Munter, ah, now I get you. With git revert you can only give -m 1 and not a <commit>-ish as parent and you would like to give it a <commit>-ish16:06
Sendoushi left16:06
meLon left16:06
Vampire0 yeah, makes sense for me, suggest it on the mailing list, or contribute a patch :-)16:06
Royalb15 left16:06
meLon joined16:06
samir left16:07
Nizumzen joined16:07
Vampire0 I was not aware that you have to give the parent number to revert16:07
lsiv568 left16:07
samir joined16:08
intellix left16:08
lite_ left16:10
ckyle left16:10
alorence left16:11
eliasr joined16:13
hockey567 joined16:13
ehmatthes joined16:13
jnavila left16:14
[sr] Eugene: believe so, but in 2 days had the same problem in two != repos16:14
thats odd, the server is a VM and the HOST OS has no problem with the disks16:14
Quevin joined16:14
dccc joined16:15
asakura1 joined16:15
doddstack left16:16
meLon left16:16
meLon joined16:16
Ankhers joined16:16
xequence left16:16
Logan- left16:17
Muchoz joined16:17
jftf joined16:17
mjsmith2 joined16:18
dipendra left16:19
bezet left16:19
paulweb515 joined16:19
gordian left16:20
dreiss joined16:20
ropav left16:20
the8thbit left16:20
mattstratton joined16:21
Sceorem left16:22
CheckDavid left16:22
Zariel_ left16:23
goTAN joined16:23
epifanio left16:23
mtk left16:24
craigp joined16:24
dccc left16:26
meLon left16:26
meLon joined16:26
ntio joined16:26
shruggar left16:28
shinnya left16:29
Ankhers left16:29
khisanth_Khisanth16:29
skorgon joined16:30
callumacraenub16:31
meLon left16:31
meLon joined16:31
zhangxaochen left16:31
zhangxaochen joined16:32
bezet joined16:32
jstimm joined16:33
B1x1t0 left16:33
thedodd joined16:34
fr33domlover Hello. I'm considering whether to use 'highlight' or GNU source-highlight in a project. Why did gitweb choose the first over the second?16:34
ultrapro left16:34
mikecmpbll left16:35
W0rmDr1nk left16:35
moritz fr33domlover: try asking in #github16:35
erm sorry, I ready "github"16:35
no idea then16:35
meLon left16:36
Musok left16:36
meLon joined16:36
LzrdKing joined16:37
User458764 joined16:37
tranzfuse left16:37
Novitsh_ left16:38
scampbell joined16:38
LzrdKing if i download a clean php frontend for an app, and have git manage it, then create some branches with patches, then push the branches back to the trunk, and then a new version of the frontend comes out, how could the patches being on branches simplify repatching the new version?16:38
achadwick left16:39
craigp left16:40
FortySix2 joined16:40
dreiss left16:40
ferreum left16:40
mikecmpbll joined16:41
meLon left16:41
meLon joined16:41
dccc joined16:41
mennea joined16:43
ntio left16:43
ntio joined16:44
moritzs left16:44
punchagan left16:44
adkins1 joined16:44
Wiz_KeeD left16:44
Haikarainen joined16:45
fr33domlover moritz, thanks anyway16:45
carlo joined16:45
carloGuest2731016:45
dangerousdave joined16:45
pikaren left16:46
meLon left16:46
meLon joined16:46
phil80 left16:46
Haikarainen Hello, I'm still rather new to git (and vcs's), and I'm looking for some good reading material on version management and branches/merges. Currently I just have the main branch and am doing commits that I push to github (where I host it), this doesn't feel to safe and it prevents me from having good versioning. I'm thinking about branching off 1 branch that is development and only merge it to main/master (or what its called) on version mileston16:47
FortySix2 left16:47
craigp joined16:48
Haikarainen the project in question is https://github.com/haikarainen/light16:48
pekster_pekster16:48
lucha joined16:48
ropav joined16:48
dangerou_ left16:48
FortySix2 joined16:49
muep Haikarainen: I do not think lack of branches necessarily prevents good versioning or is unsafe, especially in one-person projects16:49
bosie left16:49
dccc left16:49
jaimef left16:50
Ankhers joined16:50
muep Haikarainen: also in my experience, typically the public master branch would have all the the features whose development if fairly complete, regardless of when a new stable version is released16:50
Haikarainen muep: I'm thinking primarily if I do a bad commit some time, if I'm on a development branch I have time to catch it before mergin to main. Also how would one manage versioning in a one branch repo?16:51
punchagan joined16:51
jaimef joined16:51
muep Haikarainen: you should check what commits are getting pushed before you push them to the public repository16:51
bosie joined16:51
bosie left16:51
bosie joined16:51
Haikarainen muep: I am, it just feels safer to still have that "buffer" heh..16:52
muep Haikarainen: if you catch mistakes at that point or before that, you can safely edit all commits that you have not yet pushed16:52
WaReZ joined16:52
Haikarainen muep: That is true.. currently I've only really pushed after each commit.16:53
martinklepsch left16:53
muep editing already published commits is usually a bad idea, even if they are in a separate development branch16:53
jmichaelward left16:53
lsiv568 joined16:53
muep so having a separate development branch does not help that much to cope with commits that are bad due to some silly mistake16:54
p4denis left16:54
FortySix2 left16:54
p4denis joined16:54
muep Haikarainen: for marking some commits as a "version", usually they are just tagged with the git tag feature16:55
martinklepsch joined16:55
muep this can be done regardless of how many branches you have16:55
meLon left16:56
meLon joined16:56
Haikarainen muep: What do you think about branching off for each separate bugfix / feature ? I've read that is a common approach especially in corporations.. Would that be a good practice to implement? I want to learn how to use git in a professional environment as well..16:56
lsiv568 left16:57
Haikarainen muep: Ah yes, I've noticed that.. Tried to find some functionality directly on github for it but didnt find how to tag old commits for versioning.16:57
muep you might want to learn git a bit better before relying too much on the convenience functions that github provides16:58
Haikarainen: basically, the master branch of your local repo is already a branch that is separate from the master branch of the public repo16:58
ropav left16:58
noxd joined16:58
marthinal joined16:58
Nikoli joined16:58
Remorse_ left16:58
p4denis left16:59
muep Haikarainen: so if you start from a situation where your master and the public master are identical, you can first write commits that fix a bug or add a feature, and then push when you think you are finished16:59
acharlie_ joined16:59
[EddyF] left16:59
muep Haikarainen: from this, it is pretty small step into first creating a new local branch and then writing the feature there and then merging it to local master and then pushing your master17:00
Guddu_ left17:00
hahuang65 left17:00
LzrdKing or you can just push the branch to the remote master and merge it on github17:00
or rather, open a pr on github17:01
meLon left17:01
meLon joined17:01
bvi joined17:01
muep I'd still recommend working with the plain git tools until you know them reasonably well17:01
bvi left17:02
acharlieh left17:02
Haikarainen muep: Yeah got it, thanks a ton! :)17:02
muep: Yep, I'm trying to work directly with the cli, git is a huge system to take in though hehe17:02
LzrdKing muep: do you know how pathces on branches can be used to siplify re-patching when there is a new master to base commits from?17:02
i might be using the terminology wrong17:02
fold left17:02
LzrdKing patches*17:03
lucha left17:03
User4587_ joined17:03
lucha joined17:04
alexbligh1 left17:04
treehug88 left17:04
HelperW__ joined17:04
muep Haikarainen: often when I start working on some issue, I just work on master. later it may turn out that I must work on some other issue before getting the first one into a state that I feel like pushing to a shared repo. in that case, I can just turn my master into a feature branch and revert the local master to be identical to the public master before working on the other issue17:04
alexbligh1 joined17:04
HelperW__ left17:04
Vampire0 Munter, git config --global alias.revert-merge '!revert_merge() { [ $# -ne 2 ] && echo '\''error: revert-merge needs exactly two arguments, the <commit>-ish to revert and the <commit>-ish of the mainline parent'\'' >&2 && exit 1; git revert "$1" -m "$(echo -n "$(git rev-list --parents -n 1 "$1" | sed -e "s/ $(git rev-parse "$2").*//" -e '\''s/[^ ]\+ \?/X/g'\'')" | wc -c)"; }; revert_merge'17:04
dccc joined17:04
QuantumTonto left17:04
alexbligh1 Let's say from origin commit O have branch P with commits A1 A2 .. An, B1 B2 .. Bn, and branch Q with commits B1 B2 ... Bn. I want to rebase P onto Q but don't care if commits A1 .. An end up as a single commit A. git rebase is hard because everything conflicts. I can do 'git diff P Q' to get a single diff between the branches then simply apply this to Q as a commit, but this won't work for binary files. Is there a neat17:05
way to do this?17:05
(apols if a dupe - I got "cannot send to channel")17:05
flaguy48 joined17:05
Vampire0 Munter, this will allow you to specify the commit to revert and the mainline parent as <commit>-ish17:05
Munter, it does not support any other arguments to revert like -n or -e, but this could surely be added easily17:05
jack joined17:06
User458764 left17:06
kevinb left17:06
jackGuest1761017:06
leeN joined17:07
muep LzrdKing: I may know something about that, but I did not understand the question well enough to know if I can help you17:07
HelloShitty joined17:07
kevinb joined17:08
Vampire0 Munter, not tooo thoroughly tested though. At least not the un-happy path17:08
ropav joined17:08
punchagan left17:08
pheaver joined17:08
martinklepsch left17:09
ropav left17:09
nnyk_ joined17:09
cvanball left17:10
vurma left17:10
LzrdKing muep: zabbix has a php frontend that is missing features that i have patches for and i'm tired of having to keep reapplying all the ones i use every time they release a new frontend, so i was wondering if git coul dmake it easier17:10
thiago left17:10
LzrdKing since they devs never add user-submitted patches17:10
pantsman- joined17:11
Haikarainen Hm.. is it possible to have automated tags of sorts? So that I have annotated tags for each major and minor version (like 1.3.0, and 4.3.0) that is set manually, and then lightweight tags are automatically added so that 2 commits after 1.3.0 is 1.3.2, and 43 commits after 4.2.0 is 4.2.43 ?17:11
meLon left17:11
meLon joined17:11
Eugene You're looking for man git-describe17:11
gitinfo the git-describe manpage is available at http://jk.gs/git-describe.html17:11
muep LzrdKing: is the project hosted in a public git repository?17:12
Haikarainen Eugene: Oh wow. Thanks a ton :D git is so awesome yet so huge.17:12
craigp left17:13
Vampire0 Munter, a little bit more rebust about typos: git config --global alias.revert-merge '!revert_merge() { [ $# -ne 2 ] && echo '\''error: revert-merge needs exactly two arguments, the <commit>-ish to revert and the <commit>-ish of the mainline parent'\'' >&2 && exit 1; git rev-parse "$2" >/dev/null && git revert "$1" -m "$(echo -n "$(git rev-list --parents -n 1 "$1" | sed -e "s/ $(git rev17:13
-parse "$2").*//" -e '\''s/[^ ]\+ \?/X/g'\'')" | wc -c)"; }; revert_merge'17:13
drathir is disabled adding changes after make pull request?17:13
drjeats joined17:13
dccc left17:15
yosito left17:15
Bombe drathir, yes, you can never work on your machine again after making a pull request. You have to buy a new one.17:15
LzrdKing muep: i think so17:15
but if not, i can host it on bitbucket17:15
i might host it on bitbucket anyway17:15
Vampire0 Munter, git config --global alias.revert-merge '!revert_merge() { [ $# -ne 2 ] && echo '\''error: revert-merge needs exactly two arguments, the <commit>-ish to revert and the <commit>-ish of the mainline parent'\'' >&2 && exit 1; git rev-parse "$2" >/dev/null && git revert "$1" -m "$(echo -n "$(git rev-list --parents -n 1 "$1" | sed -e "s/ $(git rev-parse "$2").*//" -e '\''s/[^ ]\+ \?/X/g'\'')" | wc -c)";17:15
}; revert_merge'17:15
osse Vampire0: jesus... write a script :p17:15
muep LzrdKing: so you could writer your patches as a git branch, and then rebase those when a new version of the upstream project is releasedx17:15
Vampire0 hm, too long for IRC :-/17:15
osse, why? :-D17:15
drathir because i make changes and orginal repository cant be merged because its error in one file added after make the pull request...17:16
oojacoboo joined17:16
meLon left17:16
osse Vampire0: becauae this looks insane :o17:16
ojacobson Vampire0: because penmanship counts17:16
fold joined17:16
Vampire0 Well, perfect fit then :-D17:16
meLon joined17:16
dougsland left17:16
doev left17:17
drathir any ideas how i could fix that?17:17
Vampire0 ojacobson, what is penmanship?17:17
ojacobson the aesthetics and clarity of your writing, as opposed to the aesthetics and clarity of your ideas17:18
hoschi left17:18
ojacobson for example, one long massive line of bash is more or less unreadable17:18
leeN left17:18
ojacobson but the same program could be written readably, _in bash_, had you stuck it in a file named 'git-revert-merge' in GIT_EXEC_PATH17:18
Vampire0 sure17:19
craigp joined17:19
Vampire0 but one line is better to paste in IRC :-D17:19
HelloShitty hi again17:19
ojacobson Only if you expect people not to read your code17:19
HelloShitty What is that command to download a project from github to PC?17:19
Vampire0 HelloShitty, man git clone17:19
gitinfo HelloShitty: the git-clone manpage is available at http://jk.gs/git-clone.html17:19
Vampire0 HelloShitty, or do you mean man git archive?17:20
gitinfo HelloShitty: the git-archive manpage is available at http://jk.gs/git-archive.html17:20
akim left17:20
craigp left17:20
LzrdKing muep: i've never had to rebase before; if a patch can no longer be applied, i will get conflicts?17:20
Vampire0 ojacobson, who says I want him to read my code, he could fine the worm then :-D17:20
dreiss joined17:21
Vampire0 LzrdKing, yes17:21
meLon left17:21
Nizumzen left17:21
Vampire0 LzrdKing, basically you will get the same conflicts as with a merge, just the history will look different if you rebase17:21
meLon joined17:21
Vampire0 LzrdKing, http://sprunge.us/LPfR :-)17:21
xequence joined17:22
Destos left17:22
akim joined17:23
lite_ joined17:23
LzrdKing Vampire0: should all my patches should be on the same branch off of master?17:23
Vampire0 sorry?17:24
osse Vampire0: http://sprunge.us/OFQJ?console17:25
tjj joined17:25
osse feels good, man17:26
jluc left17:26
meLon left17:26
Vampire0 but doesn't work osse ;-)17:26
meLon joined17:26
osse why not?17:26
Vampire0 Because you broke it17:26
osse how so17:26
Vampire0 f*** up escapings, or rather missed unescaping17:27
rogerraymond left17:27
osse ahh17:27
Vampire0 '\'' should be '17:27
osse yup17:28
LzrdKing Vampire0: if all my patches are on separate branches, won't that mean a rebase for each branch?17:28
polyzen left17:28
Vampire0 and I guess a "\" is missing after the "&&"17:28
thedodd left17:28
roger_raymond joined17:28
Vampire0 LzrdKing, well I guess so, depends on what you want to achieve17:28
osse Vampire0: no, that's allowed17:29
same with | and ||17:29
LzrdKing Vampire0: reapply all my own patches to a new release17:29
Vampire0 ah, yes, you are right osse17:29
max joined17:29
looper joined17:29
mtk joined17:29
marthinal left17:29
tranzfuse joined17:29
maxGuest8573317:29
tranzfuse1 joined17:29
osse Vampire0: hmm, so all that rev-list stuff is to figure out whether the commit is the first or the second parent?17:29
mtk left17:29
Vampire0 LzrdKing, if you have several branches and want to preserve that branches, you have to rebase each branch separately, yes17:30
marthinal joined17:30
duderonomy joined17:30
freeman42 joined17:30
p4denis joined17:30
Vampire0 basically yes osse, is there a plumbing for this already?17:30
dccc joined17:31
Xethron left17:31
LzrdKing thats just as much work as simply reapplying patches, just a bit more organized; all patches in a single branch is less work, but less organized too, especially if say, one patch is no longer needed17:31
Diemuzi left17:31
Quevin left17:31
osse Vampire0: I'd check if git rev-parse "$1"^1 or rev-parse "$1"^2 was equal to rev-parse "$2"17:31
mz` left17:31
osse of course that won't work for 3 or 417:32
Vampire0 osse, well that works with a simple merge, but my "thing" works with an octopus merge too17:32
User4587_User458764_NotHe17:32
mz` joined17:32
mz` left17:32
mz` joined17:32
Corey84 joined17:32
Vampire0 if you make it a full fledged script, you can of course get the number of parents and then iterate and stuff and make it nice17:32
Quevin joined17:32
Vampire0 I just wanted to make it short :-)17:32
zapb left17:32
tgkokk left17:33
Vampire0 I can both, nice code and short code *g*17:33
ojacobson left17:33
Vampire0 usually I also prefer nice code though17:33
ferreum joined17:33
ojacobson joined17:33
lasserix joined17:33
teran left17:33
tranzfuse left17:34
osse http://sprunge.us/PaPJ17:34
User458764 joined17:34
osse wait, that's not right17:34
never mind17:34
punchagan joined17:35
User458764_NotHe left17:37
hahuang65 joined17:37
bezet left17:37
kermit left17:37
cvanball joined17:37
ArSn left17:38
ropav joined17:38
jrhorn424zz_jrhorn42417:39
balor joined17:40
yosito joined17:40
blorbx``` left17:41
dccc left17:42
macrover joined17:42
israelpattison joined17:43
Vampire0 :-)17:43
n4irc left17:43
n4irc2 left17:43
blorbx joined17:43
OnlyForF1 left17:44
tjj left17:44
tgkokk joined17:45
mattstratton left17:45
thiago joined17:45
zapb joined17:45
gargola left17:45
meLon left17:46
meLon joined17:46
LzrdKing Vampire0: i am confused, i would want to only rebase once, but keep all the patches separated in case one is the cause of all conflicts so i could drop that one17:46
gargola joined17:47
ThomasLocke left17:47
ayaka joined17:47
n4irc joined17:47
n4irc2 joined17:48
lyzidiamond joined17:48
akiva joined17:48
ayaka I use git rebase to squash many patches, could I split them this time?17:48
osse yes17:48
ayaka: mark a commit for editing when using git rebase -i, then git reset 'HEAD^' and make several commits before you git rebase --continue17:48
AKK9 joined17:49
kermit joined17:49
msm` joined17:49
jontmorehouse left17:49
LzrdKing i think what i want to do might not be as simple as i thought17:49
User458764 left17:49
thevishy left17:49
Corey84 left17:49
bitfury joined17:50
jhulten joined17:50
mitzip_ left17:50
xequence left17:51
shinnya joined17:51
meLon left17:51
bitfury left17:51
moritzs joined17:51
ayaka osse, I would try thank you17:51
mitzip joined17:51
meLon joined17:51
msm left17:51
ayaka osse, but there is no commit show in git rebase -i, just "noop"17:52
osse ayaka: then you need to give git rebase some better arguments17:52
like HEAD~5 or however many commits it is you want to operate on17:53
thiago ayaka: if you want to create a commit before a given patch, edit the one before it. You can checkout -p from the later commit.17:53
the most common case is to edit the commit you want, reset -p HEAD~ the parts you don't want, commit, then commit the rest17:54
ayaka osse, I see17:54
Corey84 joined17:54
bitfury joined17:55
bitfury Hi, might not be the right channel to ask this but anyone know where I can find the GitBlit Plugins directory in CentOS?17:55
$BaseDir/Plugins does not exists17:55
thiago bitfury: not the right channel, sorry17:55
bitfury hmm ok :\17:55
Shusshu joined17:56
Shusshu left17:56
mariuscc left17:56
meLon left17:56
ropav left17:56
meLon joined17:56
teran joined17:57
mariuscc joined17:57
ferreum158 joined17:57
lsiv568 joined17:57
xequence joined17:57
Sceorem joined17:57
akushner left17:58
tgkokk left17:58
cjwilburn left17:58
Skrypter joined17:59
teran left17:59
zapb left17:59
akushner joined17:59
sdrfnord1 joined17:59
cjwilburn joined18:00
ferreum left18:00
Skrypter left18:00
dccc joined18:00
Skrypter joined18:01
meLon left18:01
cjwilburn left18:01
meLon joined18:01
cjwilburn joined18:01
lsiv568 left18:01
tgkokk joined18:02
mattstratton joined18:03
cagedwisdom joined18:03
Skrypter left18:03
Skrypter joined18:04
Skrypter left18:04
Skrypter joined18:04
Skrypter left18:04
Skrypter joined18:05
meLon left18:06
Manny joined18:06
meLon joined18:06
Nizumzen joined18:08
atamanroman left18:09
_iron joined18:09
lite_ left18:09
stamina left18:09
Guest85733 left18:09
dccc left18:10
lucha left18:10
_iron left18:11
meLon left18:11
Trudko left18:11
_iron joined18:11
meLon joined18:11
jmichaelward joined18:11
homework1 joined18:12
zapb joined18:12
teran joined18:12
_iron left18:12
Skrypter left18:13
Skrypter_ joined18:13
cvanball left18:13
thedodd joined18:14
EmmEight joined18:14
EmmEight left18:14
Skrypter_ left18:14
Skrypter joined18:15
dotpot joined18:15
Skrypter left18:15
Skrypter joined18:16
meLon left18:16
meLon joined18:16
balor left18:17
Skrypter left18:17
fresham joined18:17
Skrypter joined18:17
hyperair left18:18
zapb left18:18
netj left18:18
Skrypter_ joined18:18
Skrypter_ left18:19
netj joined18:19
Raging_Hog joined18:19
Skrypter_ joined18:19
Skrypter left18:20
adkins1 left18:20
jenia joined18:20
Skrypter_ left18:20
zapb joined18:20
Skrypter joined18:21
elliotd123 joined18:21
PaulCapestany left18:21
kikimeter left18:21
Skrypter left18:21
Skrypter joined18:22
PaulCapestany joined18:22
jenia hello. i want to release my software a GPL but i dont want to show the entire repo as it is very messy. do you think its a good idea to start a new repository a copy the entire project there from a new.18:22
start from a blank slate18:22
davividal left18:22
leb left18:22
ropav joined18:23
davividal joined18:23
alvaro_o joined18:23
ereslibre_laptop left18:23
polyzen joined18:24
dccc joined18:24
tgkokk left18:24
pbrobst joined18:24
bremner jenia: you can rewrite history how you like, then push to the new repo18:24
ereslibre joined18:25
ereslibre left18:25
ereslibre joined18:25
lsiv568 joined18:25
Skrypter left18:25
jenia okay thanks18:25
nice18:25
Skrypter joined18:25
meLon left18:26
meLon joined18:26
Raging_Hog left18:26
jenia one more quick question. do you think my project has a better chance of developping a following on github or bitbucket?18:26
i mean, everything else equal...18:27
Skrypter_ joined18:27
Skrypter left18:27
ropav left18:27
jenia "following" means a community18:27
lsiv568 left18:27
jrnieder joined18:28
LzrdKing whichever one has more users18:28
DolphinDream joined18:28
Sleepy63 left18:29
Zoddo left18:29
CKyle joined18:29
dougsland joined18:29
m8 joined18:30
jerius left18:30
jenia yes. that's true. which is github. so this beggs the next question: do you know if switching from bitbucket to github, will have no repercussions? like is this something that happens from time to time or will bitbucket ask me to pay them once the code leavs or something?18:31
zapb left18:31
jenia im new to this. dont judge me too harshly18:31
meLon left18:31
meLon joined18:31
ropav joined18:32
xender jenia: Now, why would they?18:32
jerius joined18:32
ttkw not seeing the circular reasoning there18:32
xender If you have paid account, you may want to cancel the subscription, that's all18:32
acharlie_ left18:33
cbreak jenia: you don't have to leave bitbucket.18:33
xender ttkw: I've seen at least one project moved from BB to GH, or other way around18:33
cbreak jenia: git's not centralized.18:33
ropav left18:33
cbreak you can have as many remotes as you can remember18:33
xender And yes, you can have accounts on both18:34
jenia okay that;s what confusing me a little. they say that after 5 members i need to pay18:34
xender (In fact you can even log in to Bitbucket using a Github account)18:34
cbreak xender: :O18:34
jenia but if I;ll have a remote where there are 25 members... does that count towards the 5 or something?18:34
Macaveli left18:34
xender jenia: 5 members or 5 private repos?18:34
There are no "members" in git repo18:34
Destos joined18:34
xender It may be about access control18:35
That you may have 5 persons authorised to write to repo hosted on Bitbucket18:35
It doesn't limit the number of commiters (commits authors)18:35
jenia yea. that's what i hoped it is. thanks very very much18:35
fairuz_ joined18:35
kermit left18:35
dccc left18:35
Mixologic left18:35
cbreak xender: yeah, how would they enforce that anyway...18:36
not like committers are authenticated18:36
ropav joined18:36
xender They could in theory, but that would be pointless both for them and for contributors18:36
It would be like shooting your own foot18:37
Balliad joined18:37
Balliad left18:37
cbreak xender: hey. PHP has survived years on the foot-shooting model18:37
I bet there are still people using it today!18:37
Balliad joined18:37
xender :D18:38
Balliad left18:38
xender cbreak: Don't you like fractals?18:38
cbreak not if they are out to kill me with bad design18:38
fairuz left18:38
Balliad joined18:38
jontmorehouse joined18:39
acharlieh joined18:39
eletuchy left18:39
paul424 joined18:40
tgkokk joined18:40
tgkokk left18:40
meLon left18:41
nnyk_ left18:41
meLon joined18:41
tgkokk joined18:41
Sleepy63 joined18:41
tgkokk left18:41
tgkokk joined18:42
tgkokk left18:42
tgkokk joined18:43
zapb joined18:44
mishok13 joined18:45
meLon left18:46
meLon joined18:46
Guest27310 left18:47
lucasff joined18:47
Trudko joined18:48
gitinfo set mode: +v18:48
lucasff hi! anyone expected this issue: $ git stash Cannot save the current worktree state rm: /Users/lucas/Sites/reweb/az-de-espadas/.git/index.stash.13131: No such file or directory18:48
sea-gull_ joined18:48
jmichaelward left18:49
dccc joined18:50
justinsd joined18:50
gitinfo set mode: +v18:50
justinsd Hey guys, do you happen to know how to reset your local branch to be the same as remote when commits have been made locally?18:51
Skrypter_ left18:51
_Vi left18:51
meLon left18:51
Techy84 joined18:51
Skrypter joined18:51
meLon joined18:51
Mixologic joined18:52
Diemuzi joined18:52
gitinfo set mode: +v18:52
Gizburdt joined18:52
cbreak justinsd: it's git reset --hard @{u}18:52
justinsd That doesn't work.18:52
cbreak justinsd: if you do not have an upstream configured, you can use origin/master directly18:52
justinsd If you have made local commits.18:52
cbreak justinsd: so?18:52
local commits are irrelevant18:52
justinsd Because it still thinks the local branch is ahead. It doesn't revert the local commits. It only makes the state of the files and index the same.18:52
cbreak this will nuke away everything18:52
zhodge joined18:53
cbreak justinsd: no18:53
justinsd: it takes the state of @{u}18:53
lucasff left18:53
wrouesnel1 left18:53
justinsd After I do a git reset --hard origin/master it is telling me I am x number of commits ahead of remote master.18:53
teran left18:53
cbreak nope. because origin/master is the remote master18:53
(unless you have an other remote?)18:53
justinsd I would like to reset to the state of origin/master18:54
cbreak justinsd: pastebin !lol18:54
gitinfo justinsd: A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all18:54
treehug88 joined18:54
lolmaus_ joined18:54
Corey84 left18:54
cbreak justinsd: that's what the command I gave you does.18:54
Techy84Corey8418:54
justinsd So I want to revert to head on remote master, but when I run the command it thinks that I have a bunch of commits that need to be pushed.18:54
cbreak justinsd: so, do what I told you.18:54
[20:54:02] <cbreak> justinsd: pastebin !lol18:55
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all18:55
jfran_ joined18:55
justinsd What happens is that when I run the command it thinks that the branches have diverged afterwards.18:55
goTAN left18:55
ayaka osse, thank you I finally done it18:55
Mixologic left18:55
justinsd I don't understand why it doesn't just reset to the satte of the remote master.18:55
Mixologi_ joined18:56
jfran_ left18:56
zhodge even with “*.css” in my .gitignore I’m getting “modified: public/css/home.css” in my git status…my “*.swp” line works just fine for example but git is still tracking my css files18:56
Vivekananda joined18:56
cbreak justinsd: it will reset to the state origin/master had the last time you fetched18:56
justinsd: maybe you didn't fetch?18:56
justinsd It's not working. After I run the command and do a git status it tells me the branches have diverged.18:56
cbreak justinsd: of course it works...18:56
[20:54:02] <cbreak> justinsd: pastebin !lol18:56
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all18:56
lolmaus left18:57
kermit joined18:57
justinsd There was a merge and a whole bunch of commits in the local branch. The command git reset --hard origin/master at least is not working.18:57
cbreak zhodge: if you want git to stop tracking things, remove them18:57
justinsd Perhaps I need to use another command.18:57
cbreak zhodge: git rm --cached filename18:57
gsingh93_ joined18:57
cbreak justinsd: nah18:57
justinsd: that command is fine18:57
justinsd How come it is telling me that the branches have diverged?18:57
cbreak justinsd: who knows? You're too lazy to answer a simple question...18:57
justinsd Dude, this obviously isn't the simple example you are talking about and something else is going on.18:58
This is an edge case.18:58
cbreak justinsd: nope.18:58
there are no edge cases for reset. It resets. That's it.18:58
justinsd Yes, everything is up to date and fetched.18:58
cbreak it can set any branch to any commit18:58
and that's what it does.18:58
(it sets the current branch obviously...)18:59
justinsd: so answer my question:18:59
jfran left18:59
justinsd Well it thinks the branches are diverged after I run the command on origin/master.18:59
cbreak [20:54:02] <cbreak> justinsd: pastebin !lol18:59
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all18:59
cbreak hopefully the first 40 or so lines are enough19:00
freeman42 left19:00
bartman`` joined19:00
Mixologic joined19:01
oojacoboo left19:01
meLon left19:01
dosequis left19:01
meLon joined19:01
AllowSpectators joined19:02
Sceorem left19:02
joelm joined19:02
Mixologi_ left19:03
MattMaker left19:03
treehug88 left19:03
oojacoboo joined19:04
sheperson joined19:04
zhodge thanks cbreak19:04
MattMaker joined19:04
eletuchy joined19:04
ropav left19:04
Xethron joined19:04
dccc left19:05
hyperair joined19:05
ropav joined19:05
dannixon joined19:06
meLon left19:06
meLon joined19:06
Mixologi_ joined19:06
ayaka left19:08
Sceorem joined19:08
Mixologic left19:08
Carina21 joined19:08
lucasff joined19:08
Carina21 left19:08
CKyle left19:09
gitinfo set mode: +v19:09
oojacoboo left19:09
lucasff Hi! Anyone had a similar issue? $ git stash Cannot save the current worktree state rm: /Users/lucas/Sites/reweb/az-de-espadas/.git/index.stash.974: No such file or directory19:09
rjc left19:09
LucasTT why is that highliting me19:09
oh, right .19:09
Skrypter_ joined19:09
Skrypter_ left19:10
ropav left19:10
Skrypter_ joined19:10
rjc joined19:11
Sijdesign joined19:11
meLon left19:11
Mixologi_ left19:11
cbreak never heard of index.stash19:11
fstd_ joined19:11
meLon joined19:11
lucasff my bad. I think the culprit is https://github.com/kaelzhang/shell-safe-rm19:12
kballou joined19:12
Trudko left19:13
marthinal left19:13
Skrypter left19:13
leb joined19:13
cbreak that looks pointless.19:14
lucasff: there's already a safe rm, it's called srm :D19:14
(read man page before using!)19:14
ojacobson unsurprisingly, stuff breaks if the 'rm' on $PATH is not rm(1)19:14
kballou left19:14
sea-gull_ left19:14
ojacobson arguably git should be using unlink(1) instead, if only because people are less likely to do stupid replacement tricks :)19:15
(the parts that are shell scripts, anyways)19:15
fstd left19:15
fstd_fstd19:15
EminenceHC left19:15
cdleonard joined19:16
girl26 joined19:16
meLon left19:16
Rastus_Vernon left19:16
lucasff srm?19:16
cdleonard is there a way to automatically generate nice commit messages for git submodule upgrades?19:16
dannixon left19:16
cbreak lucasff: srm - securely remove files or directories19:17
lucasff: securely means "no one can ever read the file again, not even the NSA"19:17
xequence left19:17
cbreak (it doesn't erase backups though :D)19:17
qsuscs yes, and this is not sure on SSDs19:17
cbreak yep. That's why full disk encryption on those is even more important than on spinning drives19:18
(and even those do relocation occasionally)19:18
aldodelgado joined19:18
kermit left19:18
ropav joined19:18
zapb left19:19
lucasff i currently don't care about encryption. i did the replacement trick because i used safe-rm in ubuntu.19:19
buuut i just read this article http://apple.stackexchange.com/questions/17622/how-can-i-make-rm-move-files-to-the-trash-can and get your point.19:20
rmtrash ftw19:20
cmoneylulz joined19:20
ojacobson lucasff: the problem is that 'rm' isn't just used by you, interactively19:20
thevishy joined19:20
kballou joined19:20
dccc joined19:20
ojacobson it's also used by a mountain of shell scripts, which mostly find it using $PATH instead of hard-coding /bin/rm (though posix does guarantee the location of rm, nobody does it that way)19:21
str joined19:21
lucasff actually the rm was in my $PATH19:21
ojacobson replacing rm affects all of those, too, unless you are _supremely_ careful19:21
girl26 left19:21
lucasff I use an alias19:21
alias rm='rm -i'19:21
to avoid stupid things19:22
Sijdesign left19:22
nour_ joined19:22
meLon joined19:22
girl26 joined19:23
Royalb15_1 left19:23
CKyle joined19:23
nir joined19:24
kermit joined19:24
girl26 left19:24
Eugene RM_BIN=$(which --skip-alias rm)19:25
Eugene ducks19:25
hkon_ joined19:25
meLon left19:26
therealGent joined19:26
oojacoboo joined19:26
FunkyAss left19:27
jstimm left19:27
zhodge left19:27
cbreak mv () { srm $@; }19:27
lyzidiamond left19:27
meLon joined19:27
jstimm joined19:28
Reskp joined19:28
jstimm left19:28
nir left19:28
lucasff $ $(which --skip-alias rm) which: illegal option -- - usage: which [-as] program ...19:28
Mac OS X compatible?19:28
lsiv568 joined19:28
cbreak in case you wonder: no, don't do what I just wrote...!19:29
qsuscs BSD (where osx stole its userland) is often a bit different.19:29
hkon_ left19:30
Sijdesign joined19:30
cbreak OS X is more real posix and less added convenience19:30
lucasff dont blame osx19:31
its very good19:31
meLon left19:31
Mixologic joined19:31
zapb joined19:32
meLon joined19:32
lucasff left19:32
lsiv568 left19:33
lucasff joined19:33
gitinfo set mode: +v19:33
sheperson left19:33
dccc left19:34
xequence joined19:34
NanoArrow left19:34
jerius left19:34
sheperson joined19:34
mattstratton left19:35
sheperson left19:35
Mixologic left19:36
zapb left19:36
bezet joined19:37
Diemuzi left19:37
Gizburdt left19:38
jerius joined19:38
EminenceHC joined19:39
dangerousdave left19:39
dangerousdave joined19:40
meLon left19:41
meLon joined19:41
bezet left19:42
FabTG left19:42
EmmEight joined19:42
yosito left19:42
osse Vampire0: git cat-file -p "$1" | awk -v p=$2 '$0 ~ p {print NR-2}'19:42
ropav left19:42
osse BOOM19:42
EmmEight left19:43
FabTG joined19:43
EminenceHC left19:44
ropav joined19:44
rnaveiras joined19:45
rnaveiras left19:45
cmoneylulz left19:46
meLon left19:46
meLon joined19:46
Zoddo joined19:46
salamanderrake left19:46
ropav left19:46
CKyle left19:48
Sijdesign left19:48
Manny left19:49
dccc joined19:50
mattstratton joined19:50
aldodelgado left19:50
maestrojed joined19:51
salamanderrake joined19:51
CKyle joined19:51
osse -1, bleh19:52
Reskp left19:52
Gizburdt joined19:53
Aleric joined19:53
Reskp joined19:54
Aleric Hi... I just did a rebase and it went totally wrong :/. I'd like to find back the SHA1 of the old branch. How can see the history of what branch names pointed to please?19:54
Reskp left19:54
subleq Aleric: git reflog19:54
Nae joined19:54
Aleric thanks :)19:55
ropav joined19:55
Sceorem left19:55
Skrypter_ left19:56
zapb joined19:56
Skrypter joined19:56
meLon left19:56
Skrypter left19:56
meLon joined19:56
Sijdesign joined19:56
Skrypter joined19:56
Skrypter left19:57
dccc left19:57
Skrypter joined19:57
kermit left19:58
Reskp joined19:58
_Vi joined19:58
Skrypter left19:59
Skrypter joined19:59
Skrypter left20:00
zapb left20:00
jontmorehouse left20:00
jimi_ left20:00
SethM left20:00
Skrypter joined20:00
thevishy left20:00
Sceorem joined20:00
jmichaelward joined20:00
thevishy joined20:00
meLon left20:01
meLon joined20:01
Aleric left20:02
tgkokk left20:02
mariuscc left20:02
fresham left20:03
lucasff left20:03
Gizburdt left20:03
lsiv568 joined20:04
Gizburdt joined20:04
Gizburdt left20:04
Dougie187 left20:04
akushner_ joined20:04
Gizburdt joined20:04
akushner left20:05
maxer left20:05
chrisshattuck left20:05
chrisshattuck joined20:06
Skrypter left20:06
EminenceHC joined20:06
toothrot joined20:07
Skrypter joined20:07
noxd left20:08
cbonitz joined20:08
jluc joined20:08
Rastus_Vernon joined20:08
jontmorehouse joined20:09
Gizburdt left20:09
Blaster joined20:10
Gizburdt joined20:10
yosito joined20:10
Blaster how do you cherry pick a commit from a remote branch?20:10
Do you have to pull that branch down first?20:10
idoit` joined20:11
tang^ fetch the repo first20:11
meLon left20:11
DaisyTheCow joined20:11
bremner !remote20:11
gitinfo [!remote_commands] The only git porcelain commands which might interact with remote repos are: fetch, pull, push, remote, ls-remote, archive, submodule (plus plumbing, remote helpers, etc)20:11
tang^ then it's no longer remote20:11
Gizburdt_ joined20:11
meLon joined20:11
xequence left20:11
bremner Blaster: do you mean remote as in on a different server, or the technical git sense of "remote branch"20:12
Blaster I mean a branch on origin, which is on Github.20:12
There's a commit from one of the branches which I would like to cherry pick onto my local master branch.20:12
dccc joined20:13
jackneill left20:13
Gizburdt_ left20:13
cbonitz left20:14
tgkokk joined20:14
Gizburdt left20:14
yosito left20:14
pheaver left20:14
idoit left20:15
tgkokk left20:15
bremner so "git fetch origin", then cherry-pick either by hash or by tag or by origin/branchname20:15
DaisyTheCow left20:15
endiruna joined20:15
tgkokk joined20:16
tgkokk left20:16
meLon left20:16
meLon joined20:16
tgkokk joined20:17
Skrypter left20:18
jontmorehouse left20:19
Gizburdt joined20:20
davividal my coworker did a git rebase --skip and the git rebase was done. Did he lost his skipped commit for good?20:21
Skrypter joined20:21
Skrypter left20:21
cbreak davividal: nope20:21
davividal: man git-reflog20:22
gitinfo davividal: the git-reflog manpage is available at http://jk.gs/git-reflog.html20:22
davividal cbreak: thanks20:22
cbreak davividal: if you git reset --hard to the commit he was on before the rebase started, he'll be back20:22
davividal: don't do that if you've already pushed though20:22
Gizburdt left20:22
B1x1t0 joined20:23
macrover left20:24
mattstratton left20:24
lyzidiamond joined20:25
Willow joined20:25
Sijdesign left20:25
dotpot left20:26
dccc left20:26
pheaver joined20:26
veebers joined20:27
Dougie187 joined20:27
boxatom joined20:27
beastd joined20:28
yellowfish joined20:28
yellowfish so I lookedi n git log20:28
how do I revert 5 steps back?20:28
CheckDavid joined20:29
boxatom :D i want to know how to do what yellowfish said in sourcetree20:29
osse !revert20:29
gitinfo That's a rather ambiguous question... options: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard uncommitted changes in the working tree [git reset --hard]; c) undo committing [git reset --soft HEAD^]; d) restore staged versions of files [git checkout -p]; e) move the current branch to a different point(possibly losing commits)[git reset --hard $COMMIT]?20:29
osse yellowfish: do you want to pretend the 5 (or 4) newest commits simply didn't exist?20:29
jacobt joined20:29
yellowfish Ok I have 5 commits20:30
I want to undo 4 of them20:30
hs366 joined20:30
yellowfish So go back to the 5th one20:30
I meant the first one20:30
but 5th one down20:30
osse yellowfish: do you want to pretend the 4 newest commits simply didn't exist?20:30
kermit joined20:30
Diemuzi joined20:30
yellowfish yes, that’s correct20:30
gitinfo set mode: +v20:30
osse git reset --hard HEAD~420:30
yellowfish that’ll remove the heads?20:31
Mixologic joined20:31
pwnz0r joined20:31
compact joined20:31
qsuscs !zombies20:31
gitinfo [!zombie] Brainzz! More brainzzzz! For information about detached heads, see !detached20:31
osse yellowfish: the question doesn't make sense in Git terms20:32
fjfish left20:32
jontmorehouse joined20:32
oojacoboo left20:33
hypnosb joined20:33
hypnosb Hi20:33
gitinfo hypnosb: 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:33
juliohm left20:33
hypnosb cool20:33
Is git clone the same as 'fork' ?20:34
cbreak hypnosb: git doesn't have forking20:34
but each clone is an independent repository20:34
so I guess you can think of it as a fork20:34
moritzs left20:34
lyzidiamond left20:36
PrimalHunterPrimal0xFF20:36
IrishPrime left20:36
pbrobst left20:36
ropav left20:37
toothrot left20:37
lsiv568 left20:38
noxd joined20:38
mewm joined20:40
cbonitz joined20:40
mishok13 left20:40
Joost` I'm seeing this weird behaviour on github one of you might be able to explain; someone did a rebase of an old commit to fix a misleading commit message, and all commits after that from other authors got a little quip along the bottom saying he actually made that commit rather than the original author20:40
Ankhers left20:41
maxer joined20:41
meLon left20:41
causasui joined20:41
jfran joined20:41
meLon joined20:41
Radivarig_ joined20:41
scampbell left20:42
ianmcorvidae joined20:43
dccc joined20:43
endiruna left20:44
Setchi joined20:44
ojacobson Joost`: git tracks two separate facts about each commit: author and committer20:45
if you rebase a commit, you become the committer, but the author will be left unchanged20:45
mishok13 joined20:45
ojacobson rebase, cherry-pick, or otherwise manipulate a commit20:45
Gizburdt joined20:45
n-st left20:45
endiruna joined20:45
Setchi left20:46
Joost` ah, that makes sense20:46
we added --committer-date-is-author-date to fix the date issue that was caused by a similar problem20:46
is there a way to make sure the author remains the committer?20:46
ojacobson rebasing an old commit was fundamentally an unwise choice20:46
jacobtoojacoboo20:46
ojacobson modifying a commit changes its identity, _and_ the identity of all following commits20:46
DolphinDream left20:47
ojacobson which means that any branches downstream of the modified commit require manual cleanup20:47
Joost` I realise that; this was a small project that we developed in private but decided we wanted to opensource, and it started out a bit messy20:47
ojacobson you're stuck with it now, probably, but you may want to read man git-rebase "RECOVERING FROM UPSTREAM REBASE" and !rewrite to understand why this went wrong for you :)20:47
gitinfo 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 <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum20:47
the git-rebase manpage is available at http://jk.gs/git-rebase.html20:47
ojacobson mm20:47
tgkokk left20:47
paul424 left20:47
GrupoCITEC joined20:47
ojacobson I don't think git-rebase has the mode you want20:48
zumba_ad_ joined20:48
Joost` Is there a 'cleaner' way to fix messy old commit messages other than interactive rewriting?20:48
ojacobson you can do something with git-filter-branch to rewrite all the affected commits, but it'll be complicated20:48
"leave it"20:48
we're all human :)20:48
Joost` fair enough :P20:48
ojacobson if you really want to fix it, either provide the fixed commit message as a note, or create a replacement object per man git-replace20:48
gitinfo the git-replace manpage is available at http://jk.gs/git-replace.html20:48
ojacobson both require conscious work for others to integrate, but they're at least identity-preserving20:49
Joost` ah, that's worth looking into20:49
ojacobson (notes and replacements are not cloned or fetched by default, but it's not hard to set up)20:49
Skrypter joined20:49
Joost` note that this has become a 'means over goal'-sort of thing where I'd like to learn how to fix it rather than actually fix it :P20:49
jovy88 left20:50
dccc left20:50
ojacobson the other fun way to publish a previously-private project is with git checkout --orphan <branchname> <commit> to start a new branch with zero history at some known state20:50
that has all the problems that rebase does, but more so, because it rewrites the whole of history away20:50
HanClinto_ joined20:50
Joost` that's like taking the source and dumping it into a fresh repository, then?20:51
meLon left20:51
zumba_addict left20:51
ojacobson p much.20:51
meLon joined20:51
Joost` it seems like a waste to lose history like that though20:51
ojacobson welcome to git, here's a ton of alternatives and zero guidance on which might be appropriate20:52
Joost` hehe20:52
mattstratton joined20:53
hypnosb cbreak, well I'm just clarifying some terminology someone else is having to be honest... I think fork came from github which is a clone20:53
HanClinto left20:53
veatchzz_veatch20:54
Skrypter left20:54
Zariel_ joined20:54
cbreak hypnosb: fork on github is a bit more20:54
it clones the repository as part of forking, but it also sets up a new project on github, with dependencies and so on20:55
ojacobson hypnosb: github borrowed the term "fork" from prior usage20:55
jfran_ joined20:55
ojacobson see for example the XFree86/XOrg split, which was described as a "fork" at the time20:55
qsuscs or, more recent, libreoffice from openoffice20:56
freeman42 joined20:56
qsuscs or even more recent openssl and libressl20:56
doge_wow left20:56
endiruna left20:57
jfran left20:57
Thra11 left20:57
ojacobson but, yes, a github fork is a git clone, plus some github-specific metadata stored inside github that tracks how those clones relate to one another20:57
cbreak I predict: Before the end of this year, OpenSSL will have more forks than the linux kernel tree has merges.20:58
tgkokk joined20:58
ttkw the NSA will love that.20:59
ropav_ joined20:59
akushner_ left21:00
akushner joined21:00
freeman42 left21:00
toedwy left21:01
nicetry left21:01
nicetry joined21:01
hobana.freenode.net set mode: +v21:01
ropav_ left21:01
freeman42 joined21:01
meLon left21:01
freeman42 left21:01
meLon joined21:01
tgkokk left21:02
tpollard joined21:02
ropav joined21:02
endiruna joined21:03
hamiltont joined21:03
Zariel_ left21:04
mishok13 left21:04
blackmesa joined21:05
dccc joined21:06
Zoddo left21:06
meLon left21:06
B1x1t0 left21:06
davividal left21:08
happytux left21:08
meLon_ joined21:08
happytux joined21:08
cannonball left21:08
hypnosb the nsa is just misunderstood, they want friends21:08
blackbeard joined21:08
hamiltont I'm having trouble using ls-files properly. I'm in a directory that has a lib folder with some big files in it. My gitignore lists lib/*, but when I run ls-files --others --ignored --exclude-standard, none of the files in lib are listed21:08
str left21:09
AKK9 left21:09
endiruna left21:10
nnyk_ joined21:10
mjsmith2 left21:13
hkon_ joined21:14
dougsland left21:15
dccc left21:16
meLon_ left21:16
meLon joined21:16
treehug88 joined21:17
sdrfnord1 left21:17
cbreak hamiltont: maybe they aren't untracked21:17
cjwilburn left21:18
hkon_ left21:18
endiruna joined21:18
hamiltont I can delete them at will and nothing shows up in git status21:19
(I think that proves they are untracked, right?)21:19
cbreak not really. There are ways to fuck around with git's index21:19
(those are rather exceptional)21:19
hamiltont I mean, this is a simple project21:19
nothing crazy happening (intentionally!)21:19
hcc23 left21:20
preyalone joined21:20
ojacobson left21:20
endiruna left21:20
preyalone How can I fast-forward my merge after I accidentally git pull?21:20
Nae left21:20
cbreak preyalone: it should be fast forward already21:21
mennea left21:21
meLon left21:21
mewm preyalone: revert/reset the merge commit, and then merge again?21:21
endiruna joined21:21
meLon joined21:21
cbreak preyalone: if it's not fast forwardable, then git pull will make a merge commit21:22
but then you can't fast forward anyway21:22
preyalone I can reset to the same time as my branch, and fast-forward merge that way21:22
But when I try to push my local "cal" branch to origin, it says "Updates were rejected because the tip of your current branch is behind"21:23
How can I 'git pull' while keeping my last commit on top?21:23
mewm preyalone: revert, stash, pull, pop stash21:24
m8 left21:24
preyalone Does revert undo pull?21:24
mewm preyalone: it kinda depends how long or why your remote branch is in front21:24
no21:24
cbreak preyalone: as I said above21:24
it's not fast forwardable21:24
preyalone: you can rebase your commits and it will look as if it was fast forward21:25
(git pull --rebase)21:25
pheaver left21:25
cbreak but this is history rewriting.21:25
mewm bwaah21:25
preyalone: why don't you want your merge commits?21:25
tgkokk joined21:25
preyalone my dev shop doesn't like them21:26
cbreak preyalone: git pull --rebase will remove the merges if there were any, in theory :)21:27
hamiltont cbreak: Umm, this works as expected with git version 1.8.5.2 (Apple Git-48)21:27
seems like a big21:27
bug*21:27
preyalone i'm kinda lost now.21:27
cbreak hamiltont: weird. It doesn't work with what?21:27
preyalone: !cs21:28
gitinfo preyalone: "Git for Computer Scientists" is a quick introduction to git internals for people who are not scared by phrases like Directed Acyclic Graph. http://eagain.net/articles/git-for-computer-scientists/ See also !concepts !bottomup21:28
hamiltont 1.7.9.521:28
tgkokk left21:28
preyalone i have successfully fast-forward merged a bugfix into my local cal branch. i just want to push that fix to origin on top of the latest commits21:28
hamiltont (the default on 12.04)21:28
cbreak hamiltont: eeeew, prehistoric21:28
2 is current21:28
happytux left21:28
jfran_ left21:28
hamiltont huh, ok then. I'll try to force an update21:28
mewm preyalone: sounds like you have try out cbreak suggestion, or, reset last commit softly, stash that, pull the remote branch and pop your stash on it.21:28
jstimm joined21:28
jovy88 joined21:29
ropav left21:29
preyalone I tried to pull, then fast-forward yesterday, and ran into the same problem.21:29
Do I really have to use a queue when I have the bugfix in its own branch?21:29
ropav joined21:30
Quevin left21:31
hamiltont darn, this verison of git-core is the latest in the 12.04 repos21:31
annoying21:31
jagob left21:31
meLon left21:31
meLon joined21:31
dccc joined21:31
moritzs joined21:32
cbreak preyalone: pull MERGES21:33
Guest17610 left21:33
cbreak you can NOT fast forward merge unless the commits you want to merge are direct descendants of your current commit21:33
if you can't fast forward merge, you will get a merge commit, no way around it21:34
unless you rewrite history. Which is what rebase does.21:34
Quevin joined21:34
pantsman- left21:34
SamB fast forward really isn't a good way to merge21:34
Gizburdt left21:35
SamB and merge really isn't a good thing for pull to do21:35
livingstn left21:35
jontmorehouse left21:36
meLon left21:36
meLon joined21:36
pheaver joined21:36
exobit left21:37
fr33domlover left21:38
cbonitz left21:38
bezet joined21:38
Balliad left21:39
preyalone git is not printing any messages about not being able to fast-forward. it's just not doing it.21:39
hebz0rl_ joined21:40
duderonomy left21:41
meLon left21:41
meLon joined21:41
dccc left21:41
bezet left21:42
NanoArrow joined21:43
ropav left21:43
toedwy joined21:44
ropav joined21:45
nour_ left21:46
homework1 left21:46
eightyeight left21:47
AllowSpectators left21:47
Skrypter joined21:48
Reskp left21:48
eightyeight joined21:48
ropav left21:48
ropav joined21:49
kermit left21:49
kriks left21:49
rasto joined21:50
Diemuzi left21:50
kermit joined21:50
AKK9 joined21:51
Guddu_ joined21:51
meLon left21:51
meLon joined21:51
Sceorem left21:52
fr33domlover joined21:53
ropav left21:53
ropav joined21:53
meLon left21:56
meLon joined21:56
source47 joined21:56
gitinfo set mode: +v21:57
source47 hi guys. i am having a strange problem with my github. i am using ssh auth but for some reason github thinks i am someone else21:58
so doesnt let me do 'git push origin master'21:58
any ideas?21:58
scalability-junk left21:58
dccc joined21:58
cmoneylulz joined21:59
noxd left21:59
mmattice git remote show origin21:59
CKyle left21:59
source47 i did mmattice22:00
the origin is setup fine22:00
a_le left22:00
mmattice what's it say for the user?22:01
a_le joined22:01
source47 origin git@github.com:developerinlondon/docker-workstation.git (fetch) origin git@github.com:developerinlondon/docker-workstation.git (push)22:01
meLon left22:01
Corey84 left22:01
meLon joined22:01
mmattice huh, weird. probably a #github problem22:02
neiled joined22:02
CKyle joined22:02
source47 unlikely. it works fine from my laptop22:03
beastd left22:04
kriks joined22:04
HanClinto_ left22:05
meLon left22:06
meLon joined22:06
mmattice then you probably don't have your local key listed with github, or, you have too many keys and it's bombing out after trying the first few22:06
source47 i have a few keys in github22:07
dik_dak joined22:07
thevishy left22:07
source47 but didnt know theres a limit22:07
Dougie187 I think he means too many keys on your local machine22:07
mmattice on your end. your client presents them serially, not all at once. if you fail authentication too many times, it'll stop trying more keys22:07
Dougie187 Who does github think you are?22:08
try `ssh -vT [email@hidden.address] and pastebin the output22:08
mmattice something like IdentityFile may be useful22:08
robbyoconnor left22:08
malahal joined22:08
neiled left22:08
robbyoconnor joined22:08
sgambino left22:09
Reskp joined22:09
dccc left22:09
xender Why doesn't interactive rebase have "just pause here" command?22:09
bremner xender: edit22:09
xender Well, selecting previous commit do edit and actually not editing it does the thing22:09
source47 ok it worked when i regenerated22:09
old key wasnt set with same email i guess22:10
Willow left22:10
fstd_ joined22:10
Willow joined22:10
Willow left22:11
malahal I have some commits (78 in total authored by various people) whose 'committer's name' is incorrect. It is in a private branch so I change change history. What is the easiest way to change committer to be same as author for such commits?22:11
meLon left22:11
bitfury left22:11
meLon joined22:11
Joost` hmm, ojacobson is no longer here, but for whoever was reading alone with my issue a few hours ago, https://stackoverflow.com/questions/5520425/how-can-i-rebase-a-commit-made-by-another-author-without-adding-myself-as-the-co actually fixed it exactly like I needed it to and he described. Kudos go to both him and stackoverflow22:13
bremner what does incorrect mean? the person who committed didn't configure an email address?22:13
Joost` malahal: wow, that is oddly relevant22:13
where 'that' is both your question and my follow-up of a similar problem, above22:13
WaReZ left22:14
fstd left22:14
fstd_fstd22:14
Joost` the filter-branch thing I just linked to does exactly that; replace the committer name by the author name for all selected commits22:14
cmoneylulz left22:14
osse malahal: note that if you have rebased these commits then Git intetionally changes the committer names. I'm not saying they're necessarily correct; just saying that it's not necessarily an accident that they're different22:14
nickpresta left22:15
bremner right, that's kindof what I wanted to say.22:15
or git am'ed them, or cherry-picked, or...22:15
DolphinDream joined22:16
Reskp left22:16
meLon left22:16
looper left22:16
meLon joined22:16
osse If I could go back in time I would remove the first occurence of "necessarily" in my previous message22:17
scalability-junk joined22:17
Seveas osse: also change intetionally to intentionally while you're at it :)22:17
osse I might as well22:17
Seveas git time-machine --back 4 minutes22:18
toothrot joined22:18
shinnya left22:19
malahal osse, Joost`: thank you for the link. In our case, we all had to rebase a set of patches. We all did that on a single system with shared screen. Everyone actually rebased their own patches, but this committer's was set to one of our address. No big deal, but wanted to correct if possible.22:19
osse it is possible to correct. not sure it's worth it though22:20
in any case you want filter-branch with an --env-filter I think22:20
malahal If git allowed us to pass "rebase -i" intermediate work, then we would have handled it differently!22:20
jottr joined22:20
meLon left22:21
meLon joined22:21
aldodelgado joined22:22
dccc joined22:24
hs366 left22:24
treehug88 left22:25
jmichaelward left22:25
shinnya joined22:25
endiruna left22:25
Skrypter left22:25
lsiv568 joined22:27
jon_r joined22:28
AKK9 left22:28
DolphinDream left22:29
DolphinDream joined22:30
maxer left22:31
meLon left22:31
meLon joined22:31
punchagan left22:32
CKyle left22:33
FreezingCold left22:34
Mixologic left22:34
meLon left22:36
meLon joined22:36
elliotd123 left22:36
ropav left22:37
elliotd123 joined22:38
gws___ left22:38
thedodd left22:38
jerius left22:38
ropav joined22:38
elliotd123 left22:38
yellowfish left22:39
mewm left22:39
kingbeowolf joined22:39
gws_ joined22:39
Nizumzen left22:39
elliotd123 joined22:39
kriks left22:41
DolphinDream left22:41
meLon left22:41
meLon joined22:41
lsiv568 left22:41
jfran_ joined22:41
Corey84 joined22:42
elliotd123 left22:42
elliotd123 joined22:42
joelm left22:44
Vivekananda left22:45
dccc left22:45
meLon left22:46
jfran_ left22:46
meLon joined22:46
DolphinDream joined22:46
ehmatthes left22:47
[EddyF] joined22:48
endiruna joined22:48
Dougie187 left22:49
FreezingCold joined22:49
meLon left22:51
meLon joined22:51
ISmithers joined22:52
jontmorehouse joined22:54
rasto left22:54
lolmaus joined22:56
tranzfuse1 left22:57
lolmaus_ left22:58
dmarkham joined22:58
Mixologic joined22:58
TheOneRing joined22:58
tranzfuse joined22:58
TheOneRing hi this is my .gitatributes file http://paste.kde.org/p3sz8o7td I want to have all text files in eol=lf22:59
no git still tries to convert all my .txt files to crlf on the next commit22:59
doggfrank left23:00
deuti left23:00
TheOneRing how can I realy force it to make it lf, with my ast try with * it even converted png and exe files to lf23:00
frankdogg joined23:01
TheOneRing which wasn't that cool ...23:01
blackbeard left23:01
TheOneRing git version 1.9.0.msysgit.023:01
dsdeiz joined23:01
meLon left23:01
meLon joined23:01
FreezingCold left23:01
dccc joined23:02
Sonderblade left23:02
dangerousdave left23:02
tranzfuse left23:05
DolphinDream left23:05
DolphinDream joined23:06
King_Hual left23:06
meLon left23:06
meLon joined23:06
jrnieder TheOneRing: you can tell git which files are text files using the 'text' attribute: e.g., "*.txt text"23:07
TheOneRing: if you want it to autodetect, you can do "*.txt auto"23:07
TheOneRing: generally speaking the eol setting shouldn't go in .gitattributes. Instead, you can globally tell git that you want LF endings in the worktree with "git config --global core.eol lf"23:08
Eric21 joined23:08
jrnieder TheOneRing: or if you want that setting in a specific repository, use --local instead of --global23:08
Eric21 left23:08
Alayde joined23:08
a_le_ joined23:08
a_le left23:08
TheOneRing hm k thx23:09
Guest89885 left23:09
jrnieder TheOneRing: once you've told git what files are text files (and hence should be stored with LF endings in the repository) and what the line-endings should be when you check out, it still doesn't change the content of files in the worktree or in previous commits23:09
TheOneRing the eol issue was making me crazy23:09
jrnieder TheOneRing: https://help.github.com/articles/dealing-with-line-endings#refreshing-a-repository-after-changing-line-endings explains how to get the line endings right in the worktree once your settings are just right23:10
Alayde left23:10
B1x1t0 joined23:10
TheOneRing hm yes I tried that but my txt files where still marked as modified23:11
jrnieder your files probably have mixed line endings23:11
meLon left23:11
jrnieder s/probably/maybe/ :)23:11
meLon joined23:11
tang^ left23:11
DolphinDream left23:11
mizu_no_oto joined23:12
jrnieder anyway, if you have specific messages you'd like people here to help debug then copying into a pastebin as described in !repro may help23:12
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 raise the odds of getting your problem fixed from about 30% to about 90%.23:12
bosie left23:12
edc joined23:14
aard_ left23:15
simesy joined23:16
drjeats left23:16
simesy left23:16
simesy joined23:16
Willow joined23:16
FreezingCold joined23:17
jontmorehouse left23:18
jontmorehouse joined23:19
bgerber left23:20
jrnieder TheOneRing: when I say "*.txt auto" I mean "*.txt text=auto" above. sorry for the confusion23:20
hebz0rl_ left23:20
osse /223:20
blackmesa left23:20
osse oops23:20
noxd joined23:20
gitinfo set mode: +v23:21
gitinfo set mode: +v23:21
meLon left23:21
edc hello23:21
gitinfo edc: 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:21
meLon joined23:21
ropav left23:21
epifanio joined23:21
jftf_ joined23:21
Muchoz left23:23
edc views?23:25
mmitchell left23:25
Rastus_Vernon left23:26
meLon left23:26
meLon joined23:26
lowkeyliesmyth joined23:26
[sr] left23:27
jontmorehouse left23:27
[sr] joined23:27
pwnz0r left23:28
edc left23:29
jontmorehouse joined23:29
DolphinDream joined23:30
DolphinDream left23:30
aldodelgado left23:30
meLon left23:31
happytux joined23:31
meLon joined23:31
mizu_no_oto left23:31
woollyams joined23:32
imMute left23:33
relisys-relisys23:33
mikecmpbll left23:34
relisys left23:34
imMute joined23:34
jenia if i push to a new repository, will that also push all the history there too?23:34
Quevin left23:35
maxer joined23:35
DolphinDream joined23:36
B1x1t0 left23:36
akiva left23:37
Quevin joined23:37
Destos left23:37
jontmorehouse left23:37
kukks joined23:38
bosie joined23:39
bosie left23:39
bosie joined23:39
ropav joined23:39
freestyl3r left23:39
dik_dak left23:39
rypeck left23:40
joelm joined23:40
shingshang left23:40
bgerber joined23:40
ropav left23:41
jontmorehouse joined23:41
moritzs left23:42
jluc left23:43
bosie left23:43
joelm left23:44
dregad left23:44
AaronMT left23:46
meLon left23:46
meLon joined23:46
carandraug left23:47
netto_ joined23:48
shingshang joined23:48
lowkeyliesmyth left23:49
lowkeyliesmyth joined23:49
gargola_ joined23:51
meLon left23:51
meLon joined23:51
v0n left23:53
a_le joined23:53
a_le_ left23:53
ropav joined23:54
lolmaus left23:54
mmitchell joined23:55
akiress joined23:56
daedeloth left23:56
meLon left23:56
meLon joined23:56
jenia hello everyone23:57
if i create a new branch a push it to a new repository, will that new repository show the branch;s part history?23:57
dfaught left23:58
godgodgodgo left23:58
dik_dak joined23:59

Logs Search ←Prev date Next date→ Channels Documentation