IRCloggy #git 2012-08-15

Logs Search ←Prev date Next date→ Channels Documentation

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

2012-08-15

opus left00:00
whomp_ how can i make git remember my username and password for each remote change?00:00
AaronMT joined00:01
lustucru left00:02
Tabstar joined00:04
TabstarTabmow00:04
spork985 joined00:05
Superlokkus left00:07
dwmw2_gone left00:08
dwmw2_gone joined00:08
ovnicraft joined00:08
w09x joined00:10
spork985 left00:11
praba left00:11
whomp_ left00:12
lustucru joined00:12
barq left00:12
lustucru left00:12
Octalot left00:13
thelazydeveloper left00:13
aruiz left00:14
eletuchy joined00:15
landypro_ left00:16
lustucru joined00:18
ShadeTornado left00:18
SeySayux left00:19
Dimitr joined00:19
fireh left00:19
jargon- left00:19
luxurymode joined00:20
eletuchy left00:20
lustucru_ joined00:21
vDubG joined00:21
Sargun_Screen Where do I get all the graphics used in the git-scm documentation?00:21
lustucru left00:22
Sargun_Screen i.e. http://git-scm.com/figures/18333fig0303-tn.png00:23
luxurymode left00:23
kaizoku joined00:24
milki there arent any00:24
those are just for illustration purposes00:24
kaizoku can you turn off rename detection for git add/rm?00:24
I am trying to rm the old version of something and add a new version, but it just shows up as a rename since the filenames are similar00:24
milki probably a git config setting00:25
praba joined00:26
_Vi left00:27
adam_g joined00:27
_Vi joined00:28
opus joined00:28
kaizoku setting diff.renames didn't help :/00:29
Sargun_Screen milki: How were they generates00:29
*generated.00:29
kaizoku just gonna split it up into two commits00:29
milki Sargun_Screen: maybe graphviz00:29
Dimitr left00:30
hyperair left00:30
SeySayux joined00:30
Eridius_ joined00:30
Dimitr joined00:30
Speed left00:31
eletuchy joined00:33
Eridius left00:33
afuentes left00:34
fly9 left00:34
ashirus left00:35
jjbohn joined00:36
nveid left00:37
praba left00:37
maestrojed left00:37
aspotashev| joined00:39
towski joined00:39
btanaka left00:40
e0je left00:40
aspotashev left00:40
ISF left00:41
john_anderson left00:41
neurodrone left00:43
chriskon149 joined00:45
praba joined00:46
sitaram cbreak: just reading the backlog... was all that intentional? It was perfectly clear to me what he wanted to do00:48
luxurymode joined00:48
cmullican left00:49
mritz_ joined00:51
iori joined00:53
asakura left00:54
linguini left00:55
hwrd|work left00:56
opus left00:57
Destos left00:58
hwrd|work joined00:58
dinesh6654 left00:59
adam_g i'm trying to do a bisect between two tags in a repo, but 'git bisect start <newer, bad tag> <older, good tag>' results in 'Bisecting: a merge base must be tested' instead of a nice report of how many revisions left. what does this message mean?00:59
AaronMT left01:01
codeFiend left01:01
maletor left01:01
jjbohn left01:03
opus joined01:04
ehsan joined01:05
opus left01:07
opus joined01:08
asakura joined01:08
etcetera left01:10
carpii joined01:10
carpii how can i show all log entries between two commits, for a given file, but also show the diff they created ?01:11
kaizoku left01:12
codeFiend joined01:12
carpii i can git diff start..end file but this seems to generate an overall diff and doesnt show which commit did eac hbit01:12
EugeneKay carpii - man git-log01:12
gitinfo carpii: the git-log manpage is available at http://git-scm.com/docs/git-log.html01:12
hwrd|work left01:12
iori left01:13
vitor-br joined01:13
EugeneKay I won't spoon feed you the options you want, but log has a bunch of diff-related ones.01:13
carpii ive tried --full-diff from the manpage, but it doesnt seem to be changing the output01:14
hyperair joined01:14
Gizmokid2005 joined01:15
shawngo joined01:15
iori joined01:16
carpii ah got it, thx/ seems it wanted -p too01:16
or instead of, rather01:17
buhman left01:19
ehsan left01:19
palm_vue left01:20
bizhanMona left01:20
Lgb left01:20
mike007 joined01:20
towski left01:20
troyt joined01:20
cooloney joined01:21
intripoon joined01:22
TomyLobo left01:23
buhman joined01:23
Lgb joined01:23
palm_vue joined01:23
hays joined01:23
bizhanMona joined01:23
tinti_ left01:23
aspotashev| left01:23
iliketurtles left01:25
intripoon_ left01:26
sitaram EugeneKay: got a minute? How does http://dpaste.org/n3FxF/ read to you? Context is that question Jon-- had earlier, and this would fit just after the TOC in http://sitaramc.github.com/gitolite/why.html01:26
EugeneKay Was Jon the one who didn't understand what deploy meant?01:26
sitaram EugeneKay: if he did, I missed that part in the backlog. he just wanted "how do I let someone fetch but not push", essentially01:27
EugeneKay Yeah, that guy.01:27
_Vi left01:27
EugeneKay He really wanted to deploy, but he didn't know it.01:27
_Vi joined01:28
jjbohn joined01:28
sitaram what *is* deploy anyway? Regardless of how you do it, it has to start with someone/something fetching the latest and greatest from somewhere. And -- usually -- not being able to push back.01:28
EugeneKay Anyway.... as for the patch.... I would add a sentence, "Gitolite does better, and more."01:28
sitaram euuwill do01:29
oops01:29
tab fail01:29
EugeneKay: will do01:29
harish joined01:29
agumonkey joined01:31
glennpratt left01:31
agumonkey hi guys01:31
rohan32 joined01:31
ovnicraft left01:32
agumonkey I mistyped a rebase, now the master is on top of a topic. I read about resetting using reflog except I don't know which commit was the last pre-rebase one in master. any idea?01:32
zdk left01:32
danmackay left01:33
thufir_ joined01:33
thufir_ left01:33
carpii you dont need to know, just git reset --hard to the commit shown in reflog01:34
git reflog on its own shows a list, so youll soon see what i mean01:34
rudi_s agumonkey: And use gitk HEAD@{X} to view the commits if you're unsure which one is the right one.01:34
carpii tho best to do it without --hard until youre sure youve done it right01:34
tqmz__ joined01:36
Vampire0_ joined01:36
agumonkey reflog output after rebase confuses me, I've used it previously without too much troubles, but this time I'm all fuzzy. I'll try gitk to get my feet back on the ground01:36
zdk joined01:36
danmackay joined01:36
amcsi left01:37
grawity agumonkey: just reset master to what it was before rebase; most likely "master@{1}" – check with `git reflog master`01:37
dhruvasagar left01:37
agumonkey ah reflog can delta branch names too.. git's too powerful :p01:38
private joined01:38
agumonkey indeed it's a lot clearer now. Thanks, you rock01:38
privateGuest512301:39
tqmz left01:39
Vampire0 left01:39
dinesh6654 joined01:39
agumonkey do i need to `gc` to prune the rebasecommits ?01:39
Dimitr left01:40
jaylevitt joined01:40
jso_ joined01:41
dvide left01:42
lng joined01:42
xiangfu joined01:42
grawity no, don't bother with it01:43
I think git cleans up unreferenced commits and stuff every now and then?01:43
imMute yes01:44
grawity hmm, actually, I wonder what happens with the old commit if I `commit --amend`01:44
Jay_Levitt left01:44
grawity it just remains there for the occassional cleanup?01:44
rudi_s Yeah.01:44
imMute yep01:44
jaylevitt left01:44
lustucru joined01:44
carpii think its time based, around 30 days01:45
Milossh joined01:45
lng Hi! Git-flow creates branches hierarchy in Git: feature/api, feature/login. How can I acheve the same with Git commands?01:45
grawity lng: the same way you create any other branch01:45
mystMan left01:45
grawity git checkout -b feature/api, git branch feature/login.01:45
lng grawity: does it mean I prepend feature/?01:46
carpii left01:46
lng grawity: I see01:46
grawity: thanks01:46
agumonkey anyone had problems using '/' in branch names ? with 2 '/' git complains about not finding a file, is it confusing name with path ?01:46
avpx left01:46
lustucru_ left01:47
praba left01:47
rudi_s carpii: The auto gc depends on the number of loose objects and packs, see man git-gc - the reflog is a separate part. (Not sure if it's handled by git gc --auto though.)01:47
gitinfo the git-gc manpage is available at http://git-scm.com/docs/git-gc.html01:47
dhruvasagar joined01:47
jackh joined01:47
lng how to get git-gc?01:47
boombatower joined01:47
lng which git version?01:48
imMute don't worry about running git gc. git will take care of that itself01:48
chriskon149 left01:48
lng I have `git gc`, but not `git-gc`01:48
rudi_s imMute: Depends on what you do, if you perform many rebases/amends a git gc can save quite some space.01:48
lng: It's just the name of the man page.01:49
man git-gc documents git gc.01:49
gitinfo the git-gc manpage is available at http://git-scm.com/docs/git-gc.html01:49
quazimodo left01:49
lng rudi_s: thanks01:49
rudi_s (In the past git-gc was the real command name, but that was changed some time ago.)01:49
np01:49
etcetera joined01:50
Tommy[D] left01:50
praba joined01:50
Tommy[D] joined01:50
hellopat joined01:50
cenuij left01:51
flippo left01:51
Sym3tri left01:51
arosen left01:52
Kulrak joined01:52
Kulrak left01:52
Kulrak joined01:52
xiangfu left01:52
dbinoj joined01:53
dbinoj can anyone point me to a good resource where i can learn how to use git? i tried many docs, youtube videos and still not sure how people use git in day-to-day development. i understand it is great to keep track of file versions, changes, etc but i'm not getting the idea of how it is done.01:53
darren left01:53
cakehero left01:53
lng dbinoj: http://git-scm.com/doc01:53
dbinoj lng, thanks. i didnt see those videos until now :)01:54
lng dbinoj: read text01:54
LekeFly left01:55
jjbohn left01:56
dbinoj lng, i didn't understand what they r trying to say in text documentation. i needed some one to explain. hence i thought video would be good for understanding.01:56
lng dbinoj: oh01:56
Chib joined01:56
jso_ left01:57
lng dbinoj: if you understand how to connect to Freenode, I think you can understand Git Doc01:57
dbinoj lng, :) i'll give it a shot again today. maybe i was high when i read it earlier and didnt understand a word ;)01:58
lng, thanks btw01:58
iliketurtles joined01:58
lng dbinoj: was hight?01:58
drunk?01:58
or under drugs?01:58
dinesh6654_ joined01:59
dbinoj lng, i'd prefer 'distracted' ;)'01:59
jjbohn joined01:59
lng when you are distracted, do soemthing else02:00
:)02:00
apok left02:00
lng don't touch git02:00
dinesh6654 left02:00
ferdna left02:00
dbinoj lng, sure :)02:00
Kindari alias git="echo You are drunk. Go away."02:01
lng haha02:01
ology joined02:01
xiangfu joined02:01
Turicas joined02:02
dbinoj left02:03
Entomo joined02:04
jjbohn left02:04
EugeneKay I think you mean gti02:04
EntomoGuest4541702:05
mh` hah02:05
hwrd|work joined02:07
centipedefarmer joined02:08
Sky[x] left02:08
archdori left02:08
Fandekasp left02:08
chriskon149 joined02:09
iamjarvo joined02:10
arosen joined02:10
eletuchy left02:11
Marbug left02:11
cakehero joined02:11
weiyang joined02:12
Eridius_ left02:14
lustucru left02:15
agumonkey left02:16
SegFaultAX joined02:16
RaceCondition left02:16
__machine joined02:17
Guest45417 left02:17
ehsan joined02:17
HyperNerdV2 left02:17
__machine is it possible to clone a remote git repo into an existing non-empty folder, without losing any local files? i get a fatal error destination path already exists and is not empty... can i force it without losing local files? e.g. preserve local file as having modifications if there is a same named file in the git repo?02:18
artnez left02:18
Purveyor joined02:18
TheJH left02:18
StubbornTurtle joined02:19
imMute IIRC there's a no-checkout or somesuch flag02:20
EugeneKay __machine - the sane answer is don't do that. Instead put the repo in a subfolder, then cp the two together02:20
StubbornTurtle with a repo, can you check out a repo at a certain tag at any point in time?02:20
mike007 left02:20
pdtpatrick left02:20
__machine or maybe i can clone it into another folder and then just move the .git folder ... then i will have local modifications to make the repo identical to my local folder... and i will discard or commit those differences?02:21
imMute StubbornTurtle: yep. IIRC, you have to make a branch, though. so `git checkout -b newBranchName tagName`02:21
Xizor left02:21
StubbornTurtle will tags slow down if we have say, 1000 of them?02:22
imMute nope02:22
StubbornTurtle I was going to create a tag for every release by date and release number that day02:23
so we can roll back at any point if necessary02:23
is that the best approach?02:23
imMute don't use tags for that. use tags to make certain commits stand out above others. you can rollback to any commit, tagged or not02:23
StubbornTurtle what about lightweight tags?02:24
Marbug joined02:24
imMute "lightweight" ?02:24
StubbornTurtle http://learn.github.com/p/tagging.html#lightweight_tags02:24
imMute doen't get much lighter than git tags02:24
StubbornTurtle "This is basically just the commit checksum stored in a file - no other information is kept."02:25
imMute IIRC, they're the same under the hood02:25
could be wrong though.02:26
StubbornTurtle well, I wouldn't tag every commit02:26
andrewhl joined02:26
StubbornTurtle just any time we roll out from our dev server to main servers02:26
imMute sure, if it helps you guys identify things02:27
cakehero left02:27
StubbornTurtle imMute: fair enough. Just making sure I'm following best practices; at least generally02:28
_Vi left02:28
_Vi joined02:28
chriskon149 left02:30
wolftankk joined02:32
andrewhl left02:32
wolftankk left02:36
hwrd|work left02:36
gavin_huang joined02:37
codeFiend left02:38
dhruvasagar left02:38
ZyX-I left02:38
etcetera left02:38
ZyX-I joined02:38
hwrd|work joined02:39
ddelrio1986 left02:39
dhruvasagar joined02:40
noyb joined02:40
krazyj joined02:40
andrewhl joined02:41
krazyj could anyone help me figure out the proper sequence of adding a git submodule while applying a gitignore to the pull?02:41
it seems as soon as you `git submodule add` it creates the directory and pulls it02:41
I'm confused how to apply a gitignore to that first pull02:41
osmosis left02:41
centipedefarmer left02:43
nor5trom left02:44
orafu left02:44
orafu joined02:44
ISF joined02:44
lng If master branch is has version tags, is it easy to switch between them to do hotfixes?02:45
Escherial joined02:46
Escherial so, i've committed the common error of pushing a commit onto a branch that i later realize should be in its own branch...i'm not too good with reverting commits and keeping their contents :\02:47
graphitemaster left02:47
Escherial how can i migrate it to its own branch now?02:47
scant joined02:48
luxurymode left02:48
eletuchy joined02:48
highway900 left02:49
scant i am replacing git 1.7.4 with the latest one using an installer (git-osx-installer for my mac os x 10.7) and i was wondering, do i need to uninstall the old git program manually or will the program handle it for me?02:49
eletuchy_ joined02:50
cakehero joined02:50
hwrd|work left02:50
Escherial scant: almost certain that you can install over the old one02:51
Fandekasp joined02:52
archdori joined02:52
eletuchy left02:52
scant kk thx02:52
chriskon149 joined02:52
echo-area joined02:53
ehsan left02:53
darren joined02:54
iliketurtles left02:55
oogatta left02:56
scant left02:56
andrewhl left02:57
dinesh6654_ left02:58
oogatta joined02:59
jargon- joined02:59
hwrd|work joined03:01
oogatta left03:02
chriskon149 left03:03
dinesh6654 joined03:04
oogatta joined03:05
ISF left03:05
codeFiend joined03:05
mpenzMpenzi03:06
goshawk left03:06
artnez joined03:06
ISF joined03:06
andrewhl joined03:07
neurodrone joined03:07
Nikez joined03:08
Nikez Hi,03:09
gitinfo Nikez: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.03:09
Nikez I seem to have a weird issue, whenever I cherry-pick and I encounter a merge conflict it resets the original author. I am on ubuntu 10.04 running 1.7.0.403:09
HyperNerdV2 joined03:10
etcetera joined03:11
dstorrs left03:11
simesy left03:11
rehat left03:11
v0n joined03:12
Nikez Wow, nevermind. Perhaps I should try reading first.03:12
wolftankk joined03:13
chrisgeorge joined03:13
StubbornTurtle left03:15
opus left03:15
opus joined03:15
graphitemaster joined03:16
Escherial left03:16
SeoZ-work[AWAY]SeoZ03:18
etcetera left03:18
jso_ joined03:20
jso_ left03:20
dleonardi joined03:20
etcetera joined03:24
opus left03:25
ReekenX joined03:26
jpalmer joined03:27
praba left03:28
etcetera left03:29
dsdeiz joined03:29
mike007 joined03:30
dsdeiz hi, is there something special to do for updating a submodule's submodule? right now when i want to pull the latest updates i do git foreach git pull origin master; but it doesn't seem to go through a submodule's submodule03:31
josh__ joined03:31
airportyh joined03:32
CannedCorn joined03:32
duckxx joined03:32
airportyh Hello all, how do I push my tags to github?03:32
git tag gives me a list of tags, but don't see that list on github03:33
TheLZA left03:33
highway900 joined03:33
aeontech joined03:33
duckx left03:33
dsdeiz there's git push --tags03:33
cakehero left03:34
duckxx left03:34
airportyh dsdeiz: ah, thanks!03:34
aFeijo joined03:34
aFeijo hi folks03:34
gitinfo aFeijo: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.03:34
aFeijo I need to generate this: git diff *.module, but it returns an error "ambiguous argument '*.module'"03:35
codeFiend left03:35
aeontechcodeFiend03:35
Goplat joined03:35
towski joined03:35
milki hmm03:36
fireh joined03:36
hwrd|work left03:36
milki try adding --03:36
josh__ left03:37
fireh left03:37
Eridius joined03:37
Xilent_ joined03:37
itmustbejj joined03:37
itmustbejj I was wondering if you guys could help me with a semantics issue I'm having with a coworker….If I have Feature A that is branched off master and the two have diverged and I want to bring masters commits to feature A via rebase do I say "I am rebasing master INTO feature A" or "I am rebasing feature a ONTO master" or are both correct?03:38
aFeijo milki, -- before *.module returns nothing, after returns: fatal bad revision03:38
fireh joined03:38
luxurymode joined03:39
jargon- left03:40
wereHamster itmustbejj: you are rebasing feature onto (the new) master03:41
Xilent left03:41
airportyh left03:41
wereHamster itmustbejj: you take commits on the feature branch and apply them onto the new master03:41
itmustbejj wereHamster so if I have feature checked out and say git rebase master, you are saying feature becomes "new master"?03:42
frogonwheels itmustbejj: if you were rebasing feature A INTO master - then I would probably conclude that you were rebasing Feature A ONTO master and updating master to include feature A03:42
wereHamster no03:42
frogonwheels itmustbejj: feature checked out.. so 'master' doesn't change. only feature.03:43
dsdeiz left03:43
itmustbejj frogonwheels I understand that part, just to be in my use case I am "unrolling feature A's divergent changes, applying master's divergent changes into feature then reapplying feature's changes back on top03:44
or at least that is contextually how I see it03:44
Chib left03:44
dsdeiz joined03:45
praba joined03:45
itmustbejj that the rebase unrolls the divergent changes on the branch you are on, fast forward merges the other (masters) changes into yours then reapplies your original changes on top of the new head of feature (which does match the head of master at that point)03:45
frogonwheels itmustbejj: a better way of seeing it is what wereHamster said. which is re-applying feature A's changes on top of the latest master03:45
re-applying or replaying03:45
dsdeiz so um anyone? do i need to like enter a submodule's submodule directory and do git pull to update it? or is there a better way?03:45
itmustbejj frogonwheels right that is exactly what I understand to happen. To me that is putting master's changes "into" feature branch03:45
rehat joined03:45
HyperNerdV2 left03:46
itmustbejj but I could be mistaken in my terminology03:46
wereHamster itmustbejj: well, yes, after you 'git rebase master' that feature branch will include all the commits in master03:46
frogonwheels itmustbejj: yeah. probably a slightly misleading way of viewing it, but sure.03:46
itmustbejj to me if I rebase "onto" a branch that branch is the one that has changed03:46
but in actuality feature is the one whose history has changed03:47
diegoviola joined03:47
itmustbejj hence my saying "rebase master into feature a" because feature a's history is the one that is altered03:47
SethRobertson I think of it as `git merge` and `git rebase` do the same job, just in different ways03:47
wereHamster itmustbejj: git checkout feature; git rebase master; does not touch master.03:47
itmustbejj wereHamster exactly03:47
cenuij joined03:47
cenuij left03:47
cenuij joined03:47
centipedefarmer joined03:47
igotnolegs joined03:47
wereHamster itmustbejj: how does 'onto X' suggest that X changes?03:48
itmustbejj wereHamster to me "rebase feature onto x's" implies that something is the one being altered03:49
wereHamster yeah, feature is.03:50
itmustbejj errr sorry I meant to say that master is the one being altered03:50
wereHamster I'm sorry you feel that way. But that's the terminology that git uses.03:50
brentratliff left03:51
itmustbejj wereHamster I'm perfectly fine adopting the correct nomenclature, I just was unsure which was correct03:51
but it sounds like I got my answer03:51
onto not into03:51
lldong joined03:51
itmustbejj which sucks for me cuz my coworker is ungracious in victory :P03:52
Ryback_ left03:52
itmustbejj wereHamster frogonwheels thanks for the help03:52
praba left03:54
piotrj left03:55
codeFiend left03:55
centipedefarmer left03:57
duckx joined03:57
simesy joined03:57
brentratliff joined03:58
CannedCorn left03:59
caseymcg joined04:01
Bosox20051 joined04:01
arooni-mobile joined04:03
arooni-mobile hi folks. there's an external api that is a separate git project that id like to pull into my existing git project. whats the best way of doing that?04:04
frogonwheels arooni-mobile: !subproject04:04
gitinfo arooni-mobile: [!subprojects] So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely seperate. Otherwise your best options are "!submodule" "!gitslave" and "!subtree" Try typing those commands into this IRC channel.04:04
lirt joined04:04
frogonwheels arooni-mobile: I'd say this would be an ideal !submodule candidate.04:05
gitinfo arooni-mobile: git-submodule is ideal to add subsidiary git repositories to a git superproject when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes upstream. See http://book.git-scm.com/5_submodules.html04:05
CareBear\ joined04:06
kukks left04:07
rohan32 left04:07
dleonardi left04:08
helgikrs left04:08
luke-jr left04:08
kpreid left04:08
luke-jr joined04:09
arooni-mobile im trying to run: git submodule add url/to/gitproject .... but im getting You need to run this command from the toplevel of the working tree. ... i want the lib to be stored in lib/apiname04:09
kpreid joined04:09
arooni-mobile how can i make this happen04:09
iamjarvo left04:10
mike007 left04:10
apok joined04:10
arooni-mobile suggestions frogonwheels ?04:10
frogonwheels arooni-mobile: so start in the top level of your project .. and git submodule add urltoproject lib/apiname04:10
arooni-mobile ok silly me04:10
ISF left04:11
frogonwheels arooni-mobile: and don't forget to commit the change04:11
Guest69455 left04:11
chriskon149 joined04:11
rchavik joined04:12
caseymcg left04:12
gavin_huang left04:13
arooni-mobile frogonwheels, thanks!04:13
frogonwheels arooni-mobile: so remember now that a submodule is referenced by COMMIT, not branch04:14
arooni-mobile frogonwheels, if i want to change the api however; this wont allow me do it right04:14
i mean if i want to change the file itself04:14
frogonwheels arooni-mobile: you can.. just remember !detached04:15
gitinfo arooni-mobile: 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 !reattach04:15
_huoxito joined04:15
matthiaskrgr left04:15
frogonwheels arooni-mobile: you can cd lib/apiname && git checkout master <make some changes> git commit -m 'some changes' && git push origin master && cd .. && git add apiname && git commit -m 'some changes in apiname'04:16
arooni-mobile: you should understand that process, and what it all does ^^04:16
arooni-mobile so i have to basically do two commits04:16
one in the submodule; and one in the main project?04:16
frogonwheels arooni-mobile: exactly04:16
bgerber left04:17
arooni-mobile if im not sure if the api author will ever update this file04:17
and im going to rock'n'roll on it and adapt it as i like04:17
vitor-br left04:17
arooni-mobile is it better just to grab the file and keep it as part of my project04:17
frogonwheels arooni-mobile: If you plan on updating it yourself, you may then need to change (eventually) the submodule url to your own copy of that interface repo04:18
arooni-mobile i guess i could always remove the submodule reference and incorporate it as part of my project right04:18
i dont *lose* anything by sticking with the submodule approach for now04:18
frogonwheels arooni-mobile: that m ight be a !subtree then04:18
gitinfo arooni-mobile: The git subtree merge method is ideal to incorporate a subsidiary git repositories directly in to single git repository with "unified" git history, where you only need to pull changes in from external sources not contribute your own changes back (which if technically possible is at least difficult). See http://progit.org/book/ch6-7.html Type "!subtree_alt" for more options04:18
frogonwheels arooni-mobile: but no, you don't lose anything.04:18
arooni-mobile frogonwheels, ive already set up submodule; would you recommend swtiching to subtree now?04:20
frogonwheels arooni-mobile: meh, submodule will be fine. I haven't used subtree, so can't really advise.04:20
hwrd|work joined04:21
chriskon_ joined04:21
matthiaskrgr joined04:21
chriskon149 left04:22
gigamonkey left04:22
arooni-mobile frogonwheels, im trying to follow your outline for how to commit changes from submodule; ran git checkout master (from lib directory), says i'm already on master. then i added some comments to the api, the ni did git commit -m "some changes" but it didnt commit04:23
https://gist.github.com/9d2d328a6a51c8ac04f504:23
helgikrs joined04:24
bgerber joined04:24
frogonwheels arooni-mobile: didyou add the changes? sorry, forgot that. . git add <somefile> you need to look at some basic git !doc howtos.04:24
gitinfo arooni-mobile: A list of useful documentation of all kinds is here: http://git-scm.com/documentation -- or try the wiki at http://git.wiki.kernel.org/. Also try typing "!book" "!cs" "!bottomup" "!parable" "!best_practices" or "!vcbe" or "!designers" here in IRC. !book is probably the most helpful.04:24
chriskon_ left04:25
arooni-mobile forgot i had to do the full part of two commits04:26
chrisgeorge left04:27
_W_ left04:27
maestrojed joined04:27
gigamonkey joined04:27
_W_ joined04:27
_Vi left04:28
_Vi joined04:28
Sigma joined04:29
Nikez left04:30
alanp joined04:31
etcetera joined04:31
Davey left04:33
glennpratt joined04:34
thirdknife joined04:35
hwrd|work left04:35
beautifulmind joined04:36
graphitemaster left04:38
itmustbejj left04:38
diegoviola left04:38
adlwalrus joined04:41
chriskon149 joined04:41
adlwalrus How can i deploy via FTP by just doing a push?04:41
milki adlwalrus: !deploy04:42
gitinfo adlwalrus: Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html04:42
toabctl joined04:42
Chibby_ joined04:43
gavin_huang joined04:44
graphitemaster joined04:45
adlwalrus milki: ah, thanks. :)04:48
adlwalrus left04:48
w09x left04:48
mcluskyd_ left04:48
codetroll joined04:48
jargon- joined04:49
Sigma left04:49
etcetera left04:50
andrewhl left04:50
ZyX-I left04:51
lldong left04:53
AlexWaters left04:56
chriskon149 left04:56
olaf_ joined04:58
apok left04:59
aFeijo left04:59
arooni-mobile left05:00
subbyyy joined05:01
Esa left05:02
oakdog8_ left05:02
luxurymode left05:03
etcetera joined05:04
j416 joined05:05
samy_ joined05:05
shruggar joined05:05
lng I have tagged master with vesrsions. After certain version checkout, how can I commit changes to similar version of master?05:05
codetroll left05:06
j416 lng: you might be interested in reading this http://nvie.com/posts/a-successful-git-branching-model/05:06
lng j416: this article has no info on this question05:07
j416 lng: normally you might merge into the latest master. It is not common to incorporate changes into something that is not a branch.05:07
lng j416: we need to maintain multiple versions of master05:07
j416 lng: then make multiple branches!05:07
or: git branch mymasterversion <thetag>05:08
to start a new branch "mymasterversion" from <thetag>05:08
lng j416: how would you name them? matser-v1.0.0?05:08
schemula left05:09
j416 I would use a naming scheme similar to what is suggested in the link I gave you05:09
schemula joined05:09
j416 you might want to adapt it to your environment.05:09
lng well, do you use Git-flow?05:09
j416 I do not05:09
cwang left05:09
lng j416: try it05:10
j416 I have no reason to05:10
sorry05:10
lng http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/05:10
j416 I know what it is yes05:10
lng j416: ah05:10
j416 I prefer using git directly, but thanks. :)05:10
gives me more control05:10
lng I see05:10
j416: if mster is tagged by versoins05:11
is it possible to merge hotfix branch to master of certian version only?05:11
j416 if those versions apply only to what is in the master branch, well, maybe tag them as you said05:11
a tag is immutable05:12
jonshea left05:12
j416 but you can create a branch from the tag, merge into that, and then create a new tag05:12
(or even merge with detached head, but having a branch to work on tends to make life a little easier)05:12
lng ah, yes05:12
what does 'detached head' mean?05:13
samy_ left05:13
lng HEAD does not point anywhere05:13
j416 this might not be what you need at all, but about naming your versions -- if you haven't read it, it's a good read http://semver.org/05:14
HEAD always points to somewhere05:14
lng sometimes head is missing05:14
j416 detached HEAD means that HEAD is pointing to something that is not a branch head05:14
if you check out a tag, then HEAD will be detached05:14
lng ah05:14
Kyzz joined05:14
j416 because there is nothing to move along when you make changes (branch heads are automatically updated when you commit)05:15
lng but when you checkout tag, you create new branch, right?05:15
j416 no05:16
it is the same as checking out a previous commit05:16
lng I see05:16
j416 you can do: git checkout -b branchfromtag tag05:16
to create a new branch directly on checkout05:16
frogonwheels lng: !detached05:17
gitinfo lng: 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 !reattach05:17
j416 you can do most things while HEAD is detached, the only difference is that when you move away from it (by checking out something else), there will be no pointer to where you were05:17
right, thanks frogonwheels05:17
shruggar left05:17
lng thanks05:17
shruggar joined05:17
frogonwheels j416: 'no pointer' except the reflog which will eventually release it.05:18
j416 lng: you can easily create a branch from where you are with your detached HEAD, simply 'git checkout -b mynewbranch' (or git branch mynewbranch)05:18
frogonwheels: indeed05:18
lng if I work in detached HEAD, how do I commit to certain branch?05:18
Turicas left05:18
j416 lng: you do not05:18
lng oh05:19
j416 lng: you will have to be on that branch for the branch head to be updated. You can however reset a branch pointer to anything you like, should you have the need.05:19
(git reset)05:19
lng for instance - if I worked in detached HEAD, how can I save changes?05:19
frogonwheels lng: !reattach05:20
gitinfo lng: Letters refer to !detached. (a) and (b): 'git checkout branchname' to continue working on another branch, or 'git checkout -b branchname' to start a new one here; (c) git am --continue; (d) git rebase --continue05:20
j416 git branch mysavedchanges05:20
frogonwheels lng: you should really read the gitinfo links supplied05:20
j416 frogonwheels: I should just save myself some typing haha. thanks05:20
lng I do05:20
frogonwheels lng: It says to see ! reattach05:20
j416 lng: when I was new with git, I spent a good few days to read what was then called the 'git community book'; I believe it has been replaced by 'pro git' -- it helps a lot to gain an understanding of the basic underpinnings: http://git-scm.com/book/05:21
frogonwheels lng: !doc05:21
gitinfo lng: A list of useful documentation of all kinds is here: http://git-scm.com/documentation -- or try the wiki at http://git.wiki.kernel.org/. Also try typing "!book" "!cs" "!bottomup" "!parable" "!best_practices" or "!vcbe" or "!designers" here in IRC. !book is probably the most helpful.05:21
j416 frogonwheels: I'll just shut up. :D05:22
lng thanks05:22
j416 !book05:22
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 !parable05:22
j416 hah.05:22
frogonwheels j416: no, not at all. That was also for your benefit so you know the manyuseful links from gitinfo05:22
iamjarvo joined05:22
lng I know about http://git-scm.com/doc05:22
j416 frogonwheels: :)05:22
fornext joined05:22
jameshyde_ joined05:23
frogonwheels j416: it's worth having a read of the available triggers (fllow the link http://jk.gs/git/ in the channel message)05:23
shruggar left05:23
jameshyde_ After cloning via "git clone http:...git", how to update the cloned copy with latest updates?05:24
Arokh left05:25
arvind_khadri joined05:25
kleist joined05:26
frogonwheels jameshyde_: that depends on whether you are comitting stuff yourself to a degree..05:26
iamjarvo left05:27
frogonwheels jameshyde_: if you're not, just git pull but if you are, you can still do that, but you should probably understand what !pull does05:27
gitinfo jameshyde_: pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/05:27
nickpresta joined05:27
bubbles10101 left05:27
j416 frogonwheels: thanks. I did in fact read them a while ago -- but I forget :)05:27
jameshyde_ frogonwheels, yes I have to commit stuff locally, not remotely back to the repo.05:27
frogonwheels jameshyde_: ok .. well then decide whether you want to keep on MERGING the upstream stuff into your version of the branch, or REBASING your local changes on top of the latest upstream commits05:28
jameshyde_: a git fetch will fetch the upstream stuff into its 'remote tracking branch'.. you can then rebase your changes ontop of that with git rebase @{u}05:29
gtuckerkellogg joined05:29
frogonwheels jameshyde_: alternatively, you can git pull -r05:29
dstorrs joined05:29
frogonwheels jameshyde_: many ways to skin this cat, depending on what you want.05:29
jameshyde_ frogonwheels, I have to go with REBASING.05:30
SeoZ left05:30
nickpresta left05:30
lng say my master ragged like this: v1.0, v2.0, v3.005:31
frogonwheels jameshyde_: :) ok. rebasing it is. git pull -r or the git fetch && git rebase @{u}05:31
lng suddenly, I need to hot fix v1.005:31
frogonwheels jameshyde_: effectively the same. you can also set the option in git-config to default git-pull to rebase for that branch.05:31
lng I do checkout v1.005:31
SeoZ joined05:31
jameshyde_ frogonwheels, what's @{u}?05:32
frogonwheels jameshyde_: 'upstream branch' man git-rev-parse05:32
gitinfo jameshyde_: the git-rev-parse manpage is available at http://git-scm.com/docs/git-rev-parse.html05:32
lng do fixing and, finaly, I merge it to master creating v.1.1 tag05:32
what would be the sequence of tags? v1.0, v2.0, v3.0, v.1.1? Or the order doesn't matter?05:33
jameshyde_ frogonwheels, if I accidentally deleted one file from the clone directory, how to pull it back from upstream repo? git pull does not seem to work in this case.05:33
SeoZ left05:33
subbyyy left05:34
frogonwheels jameshyde_: for a start, everything is cloned into the .git directory, all history &c.. so no need to worry about 'remote' operations.05:34
jameshyde_: you can just git checkout <Revision> -- filanem05:34
SeoZ joined05:34
frogonwheels jameshyde_: where <revision> could be @{u} or HEAD or master - anyu !commitish reference that the file existed in05:34
oakdog8 left05:35
frogonwheels s/filanem/filename/05:35
jameshyde_ frogonwheels, thanks, it works!05:35
banghouse2 joined05:35
banghouse2 left05:35
banghouse2 joined05:36
intripoon left05:37
marc_kdab_ left05:38
banghouse2 left05:38
marc_kdab_ joined05:38
corburn joined05:38
pantsman joined05:38
intripoon joined05:39
gerard0 left05:39
russt left05:40
orkz joined05:40
BadDesign joined05:41
duckx left05:42
bubbles10101 joined05:42
bubbles10101 left05:42
bubbles10101 joined05:42
toabctl left05:43
gerard0 joined05:43
bubbles10101 left05:43
bubbles10101 joined05:43
bubbles10101 left05:43
dinesh6654 left05:43
bubbles10101 joined05:44
hellopat left05:44
bubbles10101 left05:44
bubbles10101 joined05:45
bubbles10101 left05:47
lng How to execute hook script if _only_ master branch was updated?05:47
bubbles10101 joined05:47
bubbles10101 left05:47
bubbles10101 joined05:47
sqlbyme joined05:47
StefanM left05:47
sharpobject !dream05:49
tekbwainz joined05:50
frogonwheels lng: !xy05:50
gitinfo lng: This sounds like an "XY Problem" http://mywiki.wooledge.org/XyProblem So let's step back for a minute. What are you actually trying to achieve? Why are you doing it this way?05:50
tekbwainz left05:50
tekbwainz joined05:50
tekbwainzphreaky05:50
shruggar joined05:51
sqlbyme left05:51
_ikke_ Nice, that trigger is much better than it used to be05:52
Fullmoon joined05:52
bubbles10101 left05:52
frogonwheels _ikke_: thankyou. :)05:52
bubbles10101 joined05:52
Chappo left05:53
bubbles10101 left05:53
bubbles10101 joined05:53
_ikke_ The earlier version said the user was doing it wrong, which isn't necessarily always the case05:54
frogonwheels _ikke_: Yes. Exactly.05:55
HyperNerdV2 joined05:55
frogonwheels _ikke_: !doinitwrong05:55
_ikke_ yeah, indeed05:55
frogonwheels I think that one got updated as well.05:55
_ikke_ Yeah, it's now an alias for xy05:55
maleknet joined05:55
frogonwheels ah yes. no w05:56
_ikke_ lol, !zombie05:56
gitinfo Brainzz! More brainzzzz! For information about detached heads, see !detached05:56
frogonwheels _ikke_: :) thanks :) Must have been in a strange frame of mind when I wrote that one05:57
_ikke_ Oh, didn't see you wrote that one :D05:58
ovnicraft joined05:58
Nirvanko joined05:59
graphitemaster left06:00
diegoviola joined06:01
yareally joined06:01
arvind_khadri left06:02
ovnicraft left06:03
jonshea joined06:04
apok joined06:07
josh__ joined06:09
josh__ left06:10
towski left06:10
shruggar left06:11
unmanbearpig joined06:12
dinesh6654 joined06:12
lustucru joined06:12
boombatower left06:13
boombatower_ joined06:13
jackh left06:13
ovnicraft joined06:15
senny joined06:16
papegaaij joined06:16
arvind_khadri joined06:18
maestrojed left06:18
etcetera left06:19
agumonkey joined06:19
corburn left06:20
etcetera joined06:20
neurodrone left06:20
boombatower_ left06:20
gtuckerkellogg left06:21
rctay joined06:21
corburn joined06:21
lustucru left06:21
rctay left06:22
lng frogonwheels: XY? I just want to deploy to Prod when master branch is updated06:22
rctay joined06:22
_ikke_ lng: define updated?06:22
lng: The hook script is always run. So you have to check inside the hook if the conditions you want are met06:23
lng _ikke_: that's what I thought of actually06:23
_ikke_ lng: Are you talking about a post-recieve hook?06:24
lng yes06:24
v0n left06:24
_ikke_ You'd have to read from stdin06:24
thirdknife left06:25
_ikke_ see man githooks, the format is described in the pre-receive hook06:25
gitinfo the githooks manpage is available at http://git-scm.com/docs/githooks.html06:25
_ikke_ <old-value> SP <new-value> SP <ref-name> LF06:25
Error404NotFound left06:25
lng thank you for the info06:25
thirdknife joined06:26
frogonwheels lng: exactly. your x was 'deploy prod when master branch is updated' and your y was 'How to execute hook script if _only_ master branch was updated?'06:27
tsdh joined06:27
oakdog8 joined06:27
lng frogonwheels: I'm learning by doing06:27
and it is always successful06:27
frogonwheels lng: sure. which is good. buf if you'd asked your x, I'd have said !deploy06:28
gitinfo lng: Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html06:28
mritz_ left06:28
frogonwheels lng: assuming Prod is the production server, and master is the branch you're updating?06:29
_Vi left06:29
lng frogonwheels: yes06:29
frogonwheels lng: anyway, what _ikke_ said is relevent06:29
lng actually merging06:29
BadDesign left06:30
_Vi joined06:30
lng for now I use Ant06:30
rctay left06:30
lng and it works pretty good06:30
tqmz__ left06:30
frogonwheels lng: merging? that's a whole different kettle of poisson. you shouldn't push to a !non-bare repo - which you'd need if you're going to merge.06:30
gitinfo lng: [!bare] an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/06:30
lng but we need to add versioning support to the API06:30
spronk joined06:30
tqmz joined06:30
_ikke_ lng: and?06:31
lng: That's not something git is concerned about06:31
lng yes06:31
I know06:31
_ikke_ frogonwheels: How was what I said irrelevant?06:32
lng I just need it to trigger build script...06:32
frogonwheels _ikke_: _is_ _relevent_ is what I said!06:32
lng anyway06:33
Goplat left06:33
lng I have enough info now06:33
I will read first06:33
_ikke_ frogonwheels: Oh, read it incorrectly ;)06:33
lng thanks a lot guys06:33
rctay joined06:33
fisted left06:34
rctay left06:34
fisted joined06:34
robbyoconnor joined06:35
noyb left06:36
igotnolegs left06:37
yoklov left06:39
hyperair left06:40
beepbeep_ joined06:40
harish left06:40
maestrojed joined06:40
ferdna joined06:41
_Vi left06:41
cbreak-work joined06:41
hyperair joined06:42
jnewt joined06:42
quazimodo joined06:43
jnewt anyone uset odt2txt for git diff of open doc files? it seems so easy to setup, yet git diff still shows the binary files differ message.06:43
fayimora joined06:44
JrCs left06:44
frogonwheels jnewt: !doesntwork06:44
gitinfo jnewt: Sorry to hear it doesn't work. What happened? Did it fall asleep on your couch, with your sister? Eat your homework? What did you want it to do? What happened instead? Please be specific!06:44
dhruvasagar left06:44
flijten joined06:45
JrCs joined06:45
Nirvanko I've read about git submodules and now I am pondering about whether to use its functionality or not, it seems to be a little bit complicated.06:45
git clone might be my solution.06:45
dhruvasagar joined06:46
_ikke_ Nirvanko: Well, what problem do you want to solve06:46
lb joined06:46
Nirvanko _ikke_, I have to integrate some large projects in my project.06:46
mishok13 left06:47
darren left06:47
_ikke_ Nirvanko: Is that project something you develop yourself, or is someone / something else responsible for that?06:47
jceb joined06:47
_ikke_ (the large projects you want to integrate)06:47
jnewt frogonwheels: git diff still shows the standard "Binary files a/docs/test.odt and b/docs/test.odt differ" command was git diff docs/test.odt06:47
wolftankk left06:48
_ikke_ jnewt: How have you setup your gitattributes?06:48
Nirvanko _ikke_, no. That's all third party libraries.06:48
darren joined06:49
jonshea left06:49
_ikke_ Nirvanko: afaik, you still have to setup gitattributes to tell git to use it06:49
jnewt *.ods diff=odf *.odt diff=odf *.odp diff=odf each on one line _ikke_06:49
_ikke_ Nirvanko: wait, two conversations mixed up06:49
AAA_awright Nirvanko: Git submodules let you point to a particular repository at a particular commit, while letting the submodule be independently developed and committed to. Initalizing/updating and maybe symlinking to files within the repository could be done in a Makefile.06:49
_ikke_ Nirvanko: Is your project depending on a certain version of those projects?06:50
Nirvanko: If so, submodules are the best way, because as AAA_awright says, it keeps track of the version of a project, so that everyone has the same version06:50
Alvo joined06:51
fayimora left06:51
HyperNerdV2 left06:52
harish joined06:52
jnewt when i just do odt2txt /docs/test.odt odt2txt outputs a text representation of the file. this leads me to believe that the issue is that git is not using it.06:53
ph^_ joined06:53
Nirvanko _ikke_, changing branches produces the following - warning: unable to rmdir vendor/pagerfanta: Directory not empty.06:54
What's wrong.06:54
jonshea joined06:54
ovnicraft left06:54
Nirvanko vendor/pagerfant is the submodule I've added.06:55
_ikke_ Nirvanko: Are you on an older version of git?06:55
shruggar joined06:55
Nirvanko 1.7.106:55
maestrojed left06:56
_ikke_ Nirvanko: Newer versions of git deal with that a lot better06:56
Nirvanko: the problem with older versions of git is that the .git directory is inside the submodule folder, and git can't remove that folder. That's why it's complaining06:56
jameshyde_ left06:57
jonshea left06:57
Nirvanko The latest stable version is 1.7.1406:58
jnewt maybe it's the file location of .gitattributes or .gitconfig? I expect them to work in the same way that .gitignore does. there are other options such as having the files in $HOME or $GIT_DIR, but i still think it should work as is06:58
opus joined06:58
Nirvanko err, 1.7.11.406:58
_ikke_ Nirvanko: yes. It got in somewhere after 1.7.506:58
leeN joined06:59
_ikke_ Nirvanko: Ah, found it. It landed in 1.7.807:00
nasso joined07:01
Araxia joined07:01
darren left07:01
_ikke_ https://gist.github.com/335726307:01
sh4rm4 left07:03
oojacoboo wow, that was fun, I just cherry-picked all the commits and merged them and fixed god knows how many thousands of lines of conflicts07:04
I love git07:04
charon joined07:04
oojacoboo it only took 14 hours07:04
arturaz joined07:04
_ikke_ oojacoboo: Note sure if that was meant sarcastically or not07:05
opus left07:05
oojacoboo 14 hours of conflict merging sound good to you?07:05
opus joined07:05
jnewt no other way i'd rather spend a day07:06
_ikke_ oojacoboo: No clue, don't know how complex the commits were. But I don't think there is any tool that could do it better than that07:06
oojacoboo jnewt, exactly… my eyeballs burn07:06
Nirvanko _ikke_, what is the official site of the Git project? I would like to update Git.07:06
_ikke_ oojacoboo: Obviously, history was not compattible, so you have to merge one way or another07:07
Nirvanko Upto 1.7.8 I guess07:07
_ikke_ Nirvanko: What system are you on?07:07
Nirvanko Linux, Slackware07:07
jnewt oojacoboo, be glad it's done, go to sleep. tomorrow will be a better day.07:07
oojacoboo _ikke_, right… I love employees07:07
jnewt, that part of it, now it's gotta be tested like mad, there is no telling what I missed in 14 hours of conflict merging...07:08
_ikke_ git tries to make it as easy as possible, but there's only so much git can do07:08
oojacoboo just thinking about it makes me sick07:08
jnewt you missed a lot. anything else, and you win.07:08
_ikke_ Nirvanko: git-scm.org07:08
.com I meant07:08
oojacoboo well, the app loads and no errors are being thrown07:08
so that's a decent start07:08
_ikke_ oojacoboo: I've hear about merges that took a lot longer than 14 hours under svn07:10
head*07:10
mishok13 joined07:10
Nirvanko _ikke_, but they claim that the latest stable version is 1.7.11.407:10
oojacoboo I guess :/07:10
_ikke_ Nirvanko: Yes, and?07:10
oojacoboo Nirvanko, get a package manager for the love of everyone07:10
Nirvanko So where should I get 1.7.8 )07:10
_ikke_ oojacoboo: Merging code is not a computer problem, it's a developer problem.07:10
shreya joined07:11
_ikke_ Nirvanko: Under the tarballs section07:11
oojacoboo _ikke_, yes, I concur07:11
_ikke_ But why not use 1.7.11.4 directly07:11
oojacoboo I just need something to complain about07:11
_ikke_ oojacoboo: yeah, solving that much conflicts is a huge pain07:11
artnez left07:12
oojacoboo what does "local branch should track remote branch" mean?07:12
when doing a checkout07:12
_ikke_ oojacoboo: !repro?07:12
gitinfo oojacoboo: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting.07:12
dc5ala joined07:13
oojacoboo SourceTree checkbox when checking out a remote branch :/07:13
_ikke_ oojacoboo: I guess it07:13
_huoxito left07:13
_ikke_ What command did you execute?07:14
oojacoboo nothing yet07:14
git branch --set-upstream foo upstream/foo07:14
apparently it's something like that07:14
_ikke_ yup, that's how it's don07:14
done07:14
bogwonch joined07:14
oojacoboo yea, but what does that DO?07:14
_ikke_ Just wondering what triggered that message07:14
juvenal left07:15
_ikke_ oojacoboo: It adds some config options to .git/config to tell what local branches belong to what remote branches07:15
oojacoboo as opposed to it not being sent to remote and instead just being local?07:15
ConstantineXVI left07:15
_ikke_ oojacoboo: It helps when doing git push (without any parameters), and when doing git status (your branch is behind ..)07:16
wolftankk joined07:16
oojacoboo gotcha07:16
SeoZSeoZ-work[AWAY]07:16
arvind_khadri left07:17
bizhanMona left07:20
palm_vue left07:20
Lgb left07:20
eletuchy_ left07:22
palm_vue joined07:23
Lgb joined07:23
bizhanMona joined07:23
thirdknife left07:23
nor5trom joined07:24
arvind_khadri joined07:25
tiglog joined07:25
oojacoboo git stage hunk --no-homo07:26
beautifulmind left07:26
dsirijus joined07:28
beepbeep_ left07:28
apok left07:29
localhost left07:29
frogonwheels oojacoboo: it also gives you @{u} man git-rev-parse07:29
gitinfo oojacoboo: the git-rev-parse manpage is available at http://git-scm.com/docs/git-rev-parse.html07:29
_Vi joined07:30
d3vic3 joined07:30
oojacoboo huh?07:30
_ikke_ oojacoboo: @{u} is a reference to the remote tracking branch07:31
kurrataW joined07:31
oojacoboo ah07:31
frogonwheels oojacoboo: which you can find on the git-rev-parse manpage :)07:31
oojacoboo I feel like learning the git api is harder than most languages07:32
hwrd|work joined07:32
oojacoboo frankly feels like there are too many options07:32
frogonwheels oojacoboo: !simple07:32
gitinfo oojacoboo: At its heart git is made up of many concepts that are individually simple. Getting the whole picture right is often tricky, and it is usually about breaking up the complex concept into its simple, individual parts and grokking those. Both !bottomup and !cs will help with that.07:32
_ikke_ oojacoboo: most things you don't need to operate git07:33
oojacoboo: some things are shortcuts you'll learn as you go07:33
oojacoboo yea07:33
frogonwheels oojacoboo: .. and you learn what options are right for your workflow.07:33
oojacoboo I just find it confusing, I kinda wish they'd just remove and consolidate half the stuff07:33
jkremser joined07:34
frogonwheels oojacoboo: I don't think they should remove anything. If you're getting lost, you can always use one of the many UI wrappers07:34
wereHamster oojacoboo: but then git wouldn't be much different from cp -r and diff07:34
dinesh6654 left07:35
_ikke_ oojacoboo: git takes some time to get used to, but in return you get a very flexible system that supports many different workflows07:35
frogonwheels oojacoboo: I mean that honestly. A good UI - even just gitk and git gui or git-cola or smartgit (commercial x-platform) can help you understand - the cli can come later07:35
drizzd joined07:35
oojacoboo frogonwheels, I'm already using Atlassian's SourceTree07:36
I find a gui pretty paramount for keeping things organized07:36
the git daemon is nice, but there is only so much you can get out of a cli07:36
ConstantineXVI joined07:37
_ikke_ git daemon?07:38
oojacoboo script07:38
_ikke_ ..07:38
oojacoboo ?07:38
dhruvasagar left07:38
archdori left07:39
_ikke_ git deamon is "A really simple server for git repositories"07:39
cbreak-work oojacoboo: don't waste your time with git daemon07:39
jnewt how do i stage all deletes that are showing in the "not staged for commit"? git rm -r --cached . removes everything. git rm -r doesn't work if there are other staged files.07:39
cbreak-work it's for read only unauthenticated access only07:40
shruggar left07:40
cbreak-work (or writable unauthenticated if you're so promiscuous...)07:40
_ikke_ jnewt: man git rm07:40
weiyang left07:40
_ikke_ pokes gitinfo07:40
cbreak-work jnewt: and man git-add -u07:40
archdori joined07:40
oojacoboo I guess I mean the git client daemon07:40
cbreak-work oojacoboo: the only git daemon is the git server07:40
_ikke_ jnewt: git diff --name-only --diff-filter=D -z | xargs -0 git rm --cached07:41
cbreak-work but it's not used much, ssh:// is a much much better transport07:41
no daemon needed07:41
_ikke_ oojacoboo: there is no client daemon07:41
oojacoboo ok, so the shell script?07:41
gitinfo jnewt: the git-rm manpage is available at http://git-scm.com/docs/git-rm.html07:41
jnewt: the git-add manpage is available at http://git-scm.com/docs/git-add.html07:41
ConstantineXVI left07:41
cbreak-work oojacoboo: what shell script?07:41
hwrd|work left07:41
oojacoboo what is the "git" command in my terminal :/07:41
jnewt _ikke_ wth is that? i'm looking for the easy way, and i know how to rtfm, i still don't know how to do it.07:41
_ikke_ oojacoboo: A program07:41
cbreak-work oojacoboo: that's git07:41
oojacoboo lol07:41
a program?07:41
cbreak-work a bunch of them.07:42
oojacoboo are those not daemons?07:42
_ikke_ jnewt: git has no option: check what files don't exist anymore on the filesystem and stage them to be removed07:42
cbreak-work no.07:42
they only run when you start them07:42
if you do git log, you start git07:42
oojacoboo ah07:42
cbreak-work it will print the log, and then it terminates07:42
oojacoboo what's it written in, perl?07:42
cbreak-work C07:42
mostly07:42
oojacoboo fun07:43
hwrd|work joined07:43
arex\ joined07:43
jnewt so wait a minute. i asked a question, got told to rtfm, then told git doesn't do it? good thing i was told to rtfm.07:43
eletuchy joined07:43
cbreak-work jnewt: git doesn't do what?07:44
_ikke_ jnewt: That snippet was from the manual07:44
cbreak-work jnewt: just read what I wrote07:44
_ikke_ under other ways to do it07:44
rehat left07:44
gitinfo set mode: +v07:44
_ikke_ cbreak-work: But that also adds unstaged changes07:44
arex\ Is there a concencus on what is the "best" Git solution for enterprise (in-house, active directory, many teams/projects)?07:44
cbreak-work _ikke_: that's what he wants07:44
unstaged deletes.07:44
_ikke_ cbreak-work: Yeah, but unstaged modifies would be added too07:45
cbreak-work yeah, and?07:45
_ikke_ cbreak-work: It might be what he wants, but it also might not be what he wants07:45
git add -u add's everythin07:45
timthelion joined07:45
cbreak-work if he doesn't want that, he can use -i too07:45
ncd|leeN joined07:45
ncd|leeN left07:45
_ikke_ Of course07:45
or he can execute07:46
git diff --name-only --diff-filter=D -z | xargs -0 git rm --cached07:46
copied from the man git rm page07:46
gitinfo the git-rm manpage is available at http://git-scm.com/docs/git-rm.html07:46
cbreak-work nah. that would involve reading the manual07:46
simesy left07:46
pantsman left07:47
_ikke_ :D07:47
oojacoboo anyone use SourceTree?07:47
if you change the remote branch being tracked, is that like rebasing?07:48
cbreak-work oojacoboo: no.07:48
oojacoboo k07:48
cbreak-work rebasing is history rewriting. changing tracking branches is just a config change07:48
hwrd|work left07:48
oojacoboo yea, I get it now, thanks07:48
jnewt to add new modifications "git add ." if that modification happens to be a delete: "git diff --name-only --diff-filter=D -z | xargs -0 git rm --cached" .. no one see anything odd about that?07:49
ferdna left07:49
cbreak-work jnewt: no07:49
to add new modifications, git add -u07:50
git add . means "add the current directory and its contained files"07:50
jnewt: are you slow or something?07:50
I told you about -u ages ago...07:50
_ikke_ jnewt: The difference is that you don't want to rm *all*, you want to rm just a part07:50
Element9 joined07:51
weiyang joined07:53
blathijs intransit: But you can still pass a path to git add -u, right?07:54
s/intransit/jnewt/07:54
cbreak-work of course you can.07:54
ConstantineXVI joined07:54
cbreak-work default is .07:54
arex\ http://stackoverflow.com/questions/11965787/software-for-git-in-the-enterprise07:54
Chappo joined07:54
cbreak-work enterprise?07:54
git works on all kinds of starships.07:55
if you have some kind of unix os at least :)07:55
highway900 left07:55
cbreak-work there's no additional software needed07:55
Weiss joined07:57
Textmode left07:58
torbjorn I did git init in a directory, how can I make it so that others can access it, pull from it, and push back into it?08:00
_ikke_ torbjorn: !bare08:01
gitinfo torbjorn: an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/08:01
dzonder joined08:01
frogonwheels torbjorn: you might want to read some !doc there are some good simple examples.08:01
gitinfo torbjorn: A list of useful documentation of all kinds is here: http://git-scm.com/documentation -- or try the wiki at http://git.wiki.kernel.org/. Also try typing "!book" "!cs" "!bottomup" "!parable" "!best_practices" or "!vcbe" or "!designers" here in IRC. !book is probably the most helpful.08:01
frogonwheels torbjorn: !gitolite08:01
gitinfo torbjorn: Want to host as many git repos (and users!) as you like, on your own server, with fine-grained access control? You want gitolite: https://github.com/sitaramc/gitolite - Documentation: http://sitaramc.github.com/gitolite/master-toc.html08:01
torbjorn thanks!08:01
Kaisyu joined08:01
Bosox20051 left08:02
whitman joined08:02
LimeBlast joined08:03
jjido joined08:05
Kaisyu left08:05
Weiss left08:05
Weiss joined08:06
blami left08:07
Textmode joined08:08
aspotashev joined08:11
etcetera left08:12
jtri joined08:13
psoo joined08:13
jtri left08:14
polymar joined08:16
tatsuya_o joined08:16
sawdisk left08:17
jazper- left08:17
tweedledumber left08:18
torbjorn is there a way to add an empty directory to a git repo?08:19
tweedledumber joined08:19
dr_lepper joined08:19
dr_lepper left08:19
dr_lepper joined08:19
muep torbjorn: no08:20
borwar left08:20
m1sc torbjorn: no -- you can achieve this by putting an empty .gitignore in it for example08:21
torbjorn thanks08:21
_ikke_ !empty08:21
gitinfo [!orphan_null] To create an orphan branch with the null/empty commit, use: `git checkout -b orphan $(echo "empty" | git commit-tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904)`08:21
_ikke_ Nope08:21
ignore that08:21
_iron joined08:22
tinti_ joined08:22
Textmode left08:23
dipsi joined08:23
dipsi left08:23
dipsi joined08:24
thirdknife joined08:24
dipsi left08:24
opus left08:24
dipsi joined08:25
dipsi left08:25
lng when I do git checkout, should it update local source code from remote?08:25
cbreak-work no08:25
shruggar joined08:25
dipsi joined08:25
cbreak-work checkout is local only08:25
lng or it just swithing the brunch08:25
hyperair left08:25
lng I see08:25
dipsi left08:25
arex\ cbreak: i realize no other software is needed, but couldn't it be useful?08:25
dipsi joined08:26
cbreak-work arex\: useful?08:26
dipsi left08:26
lng cbreak-work: I am asking because in this article [http://sitaramc.github.com/the-list-and-irc/deploy.html], `git checkout -f master` is used for deployment08:26
and I don't understand how it works08:27
arex\ cbreak-work: Do you think it's best for 10 dev teams to only use git from the command line (or an IDE plugin)? (genuine question)08:27
cbreak-work that's used after getting a push.08:27
it's not a clean strategy08:27
lng: you should use git fetch and then git archive for deployment08:28
jnewt arex\ in an enterprise setting i'd think you'd have your own server already, so why would you have someone else host it?08:28
or maybe you don't08:28
cbreak-work arex\: what ever suits them best.08:28
lng cbreak-work: I use Ant anyway ;-)08:28
cbreak-work I use git on the command line, + a few visual tools08:28
arex\ jnewt: no, i'm up for hosting it myself, just wondering what software to use08:28
jnewt gitolite / gitweb is what i'm using. but i'm pretty new still08:29
lng cbreak-work: okay08:29
arex\ as per http://stackoverflow.com/questions/11965787/software-for-git-in-the-enterprise08:29
LittleFool left08:29
cbreak-work gitolite.08:29
no competition.08:29
jceb left08:29
arex\ cbreak-work: what is gitolite's advantages? i'll take a look at it08:30
_Vi left08:30
jdav_gon` left08:30
cbreak-work arex\: advantage: it does its job08:30
jnewt and for free08:30
_Vi joined08:30
Adys left08:31
arex\ Have you tried Atlassian Stash? Seems sweet on the surface08:31
Adys joined08:31
jjido left08:31
jjido joined08:31
Vert joined08:33
LittleFool joined08:33
hyperair joined08:33
toabctl joined08:33
Vile left08:34
operhiem1 Am I recalling correctly that there's server software which offers git and Mercurial access to the same repository transparently? I thought I recalled such a thing but I'm having trouble finding it.08:34
borwar joined08:34
oehman joined08:35
graphitemaster joined08:35
jnewt arex\ looks like gitweb and gitolite. not sure whats so sweet / special about it.08:36
cbreak-work operhiem1: doesn't sound plausible08:36
git's model is quite different from hg08:37
charon left08:37
charon joined08:37
opus joined08:37
Arokh joined08:37
arex\ jnewt: integration with all the other atlassian tools and slick web interface :P08:38
jjido left08:38
jnewt gitweb = slick web interface. i don't know much about atlassian anything, so maybe.08:38
operhiem1 cbreak-work: Ah, alright. Hm. Maybe I was just misremembering hg-git.08:39
arex\ jnewt: guess i'll have to look at gitweb as well then08:39
charon operhiem1: srabbelier's hg-git project should still work, though i'm not sure it was ever released for hg. (it's definitely not in git mainline.) but it's client-side08:39
gtuckerkellogg joined08:39
cbreak-work from what I heard from trolls who wandered in here08:40
hg has branches that can have multiple heads without names08:40
and commits are always bound to a branch08:40
you can't merge them into other branches08:40
also, branches seem to be global and not local08:40
(which is weird, considering that hg is a distributed scm as well)08:41
Textmode joined08:41
C8H10N4O2 left08:41
jkremser left08:42
charon cbreak-work: well, i don't have a clue either, but i have in fact tried hg-git at one point because i needed to interface with hg. it worked. so i'm not sure what the problem would be, other than lack of time/motivation to move it forward.08:42
lb !pull08:42
gitinfo pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/08:42
toabctl left08:42
toabctl joined08:43
jceb joined08:44
tatsuya_o left08:45
oakdog8 left08:45
Kaisyu joined08:49
eedeep left08:54
lb left08:56
lb joined08:56
oehman left08:57
oehman joined08:57
unmanbearpig left08:58
blami joined08:59
C8H10N4O2 joined09:00
oakdog8 joined09:02
oojacoboo left09:03
oojacoboo joined09:05
Sky[x] joined09:05
ashirus joined09:07
LekeFly joined09:07
thiago joined09:08
lirt left09:08
opus left09:09
LekeFly left09:09
Vile joined09:10
wolftankk left09:12
oehman left09:12
oehman joined09:13
polymar left09:13
gtuckerkellogg left09:13
angelsl joined09:13
thirdknife left09:14
oznt joined09:15
oznt hi everyone09:16
gitinfo oznt: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.09:16
aspotashev left09:17
oznt i wonder why all my commits show always in the same branch ... how do i get a git log like here? http://gitready.com/intermediate/2009/01/26/text-based-graph.html?09:17
dsirijus left09:17
wolftankk joined09:18
_ikke_ git log --graph09:18
cbreak-work oznt: you'll need multiple branches for that09:18
then you have to commit in them, and later merge09:19
_ikke_ !lol09:19
gitinfo git config --global alias.lol "log --oneline --graph --decorate"09:19
cbreak-work git log won't help you if they are in the same branch.09:19
_ikke_ Nope09:19
oznt cbreak-work, i have two branches09:19
_ikke_ and you probably want to add --all too09:20
oznt cbreak-work, and i have commited into both of them but git log --graph is just flat09:20
cbreak-work it shows history as it is09:20
_ikke_ oznt: git log by default only shows commits reachable by HEAD09:20
oznt wait ... git log --graph --all is not flat09:21
that is a good start already09:21
cbreak-work all makes it show all branches/tags09:21
oznt so now if I merge the branches i will see that kind of graphs?09:21
cbreak-work maybe.09:21
spyro left09:21
opus joined09:22
oznt yes ! it works :-)09:22
i love git , the more i use it i can become a better programmer09:22
this is really cool, thanks guys09:22
eletuchy left09:22
spyro joined09:24
marthinal joined09:25
berserkr joined09:25
oehman left09:27
tatsuya_o joined09:27
tvw joined09:28
Fandekasp left09:30
archdori left09:30
samtron1412 joined09:31
samtron1412 left09:32
TheHaven left09:33
ijuma left09:35
gusnan joined09:35
dsdeiz hi kinda having a small issue with git submodules. i cloned a repo of mine which has a directory .oh-my-zsh. i moved .oh-my-zsh to oh-my-zsh, committed and pushed. right now the directory oh-my-zsh is empty. any ideas how to update the submodule? i have already modified .gitmodules file09:36
rvl joined09:36
opus left09:36
cbreak-work git submodule update --init09:36
dsdeiz did that as well09:36
angelsl left09:40
ahayweh joined09:40
dsdeiz i tried git submodule sync; nothing happened09:40
FauxFaux Is there a way to get gitk / gitg / git log --graph / etc. to hilight cherry-picks (i.e. common commits (by message would be fine)) between two parallel branches?09:42
angelsl joined09:42
_ikke_ FauxFaux: You might fiddle with git cherry09:43
although, that's the opposite09:43
Well, both actually09:44
thiago left09:44
_ikke_ You want the commits prefixed with a -09:44
palm_vue left09:45
_iron left09:45
_ikke_ But not sure if that's going to help09:45
jargon- left09:46
palm_vue joined09:46
FauxFaux ..and distracted by other work, sorry. I'll have a look later, thanks _ikke_.09:47
Rajesh joined09:47
RajeshGuest9905809:47
arietis joined09:47
tiglog left09:48
babilen joined09:48
OOPMan joined09:51
weiyang left09:52
Nirvanko left09:53
Nirvanko joined09:53
rcu joined09:54
jargon- joined09:55
jargon- left09:55
jargon- joined09:55
Nirvanko Who can explain how the rebase command is being performed? I don't understand why after rebasing the commit C3 becomes C3' like in the very first example http://git-scm.com/book/en/Git-Branching-Rebasing09:55
charon Nirvanko: it builds a new commit C3' that "looks like" C3, but in fact is a completely new commit. "looks like" is defined as having the same diff (as far as possible), the same message, etc.09:56
jargon-jargon09:56
charon (it does not have the same parents!)09:57
Nirvanko charon, is that C3' is a difference between C3 and C4 commits?09:57
jargon left09:57
highway900 joined09:57
charon Nirvanko: can you rephrase that? i'm not sure what you're asking09:57
jargon- joined09:57
fireh left09:58
_ikke_ Nirvanko: git doesn't store diffs, it stores the whole content of each object09:58
Nirvanko We rebase commit C3 onto C4 and get C3', so what is C3' again?09:58
Tommy[D] left09:58
_ikke_ Nirvanko: C3, but based on a new parent09:58
juvenal joined09:59
charon Nirvanko: let diff(C) be the diff of a commit C w.r.t. its (sole) parent. then rebase attempts to build a *new* commit C3' such that diff(C3') = diff(C3), thus making a commit that -- in human terms -- "is the same" as the old one, since it makes "the same change"09:59
Sargun_Screen How were the figures on git-scm.com generated?09:59
charon Nirvanko: like _ikke_ says, the diffs are all only a way of *looking* at commits, and not stored. they are merely a way of *thinking* about commits. so for git, C3' is something entirely different from C310:00
_ikke_ Nirvanko: git basically calculates a diff between C3 and C3^, applies that diff to the new parrent, and creates a commit with the same message and author data as C310:00
Tommy[D] joined10:01
achadwick joined10:03
eijk joined10:04
jkremser joined10:04
Guest99058 left10:04
d3vic3 left10:05
mjt joined10:05
marhaban joined10:05
jkremser_ joined10:05
Eising left10:06
d3vic3 joined10:06
harish left10:07
mjt Hello. A question about workflow, sort of. Suppose there's a large project (like linux kernel for example) using git. I've a clone of Linus's repository. But I need _two_ or more "work trees" locally - to work on two separate branches and to be able to bisect something else without stopping my work in half-commit. How to keep just one (large) repository locally (and to sync it from remote only once) and allow multiple local working copies?10:07
shruggar mjt: I don't understand, why would you need separate work-trees?10:07
charon mjt: you can have a local "read-only" mirror repository of linus's, and then use the alternates mechanism10:08
mjt say, i'm developing something and hit a bug which I need to bisect. I don't want to commit or rollback my local changes which are in half-undefined-state10:08
charon mjt: note that alternates work even without such a read-only repo, but in this case they are very dangerous. you must never gc within such a repo10:08
mjt alternates?10:09
rvl left10:09
shruggar mjt: you will not get any benefit from using git until you learn to commit on a whim10:09
mjt: history is mutable until it's public10:09
charon shruggar: well, i would want to do the same, and in fact i have occasionally made a quick clone in a temp location to bisect while i can hack in another terminal...10:09
i mean, it's not like bisecting is a 5-second issue10:10
mjt: i think it's in man gitrepository-layout10:10
gitinfo mjt: the gitrepository-layout manpage is available at http://git-scm.com/docs/gitrepository-layout.html10:10
mjt shruggar: it is not about committing often, there may be other reasons10:10
shruggar I just am always weary of anything that includes "I don't want to commit yet"10:10
lirt joined10:10
charon mjt: it corresponds to the --shared option to clone10:10
mjt: most of the caveats are spelled out in man git-clone, referring to --shared, but they apply to alternates in general10:11
gitinfo mjt: the git-clone manpage is available at http://git-scm.com/docs/git-clone.html10:11
mjt shruggar: say, i've all the .o files of a large project for MY branch/feature locally, but need to do a git bisect without recompiling everything with rigth options10:11
mklappstuhl joined10:11
mjt hmm. --shared.10:11
timthelion left10:12
charon mjt: as i said, be VERY careful, and best stick to using a single, read-only mirror of upstream as the alternates repo10:12
mjt yeah. that might work10:12
Guest5123 left10:13
charon of course, it'll only save you transferring the upstream work, you'll still have to shuffle your own stuff around by some other means10:13
ahayweh_ joined10:13
charon like perhaps another, not-read-only bare repo, that you are *not* using as an alternate10:13
mjt right now i've 6 separate/independent clones of qemu.org git repo here and 4 copies of linux git repo here, and i wanted to get rid of them somehow...10:13
thank you, very good suggestions indeed!10:15
ahayweh left10:16
hyperair left10:16
Fandekasp joined10:17
archdori joined10:17
rvl joined10:17
marhaban left10:18
beautifulmind joined10:21
default joined10:22
defaultGuest1352910:22
gerard0 left10:23
LekeFly joined10:23
cybersphinx joined10:24
ahayweh_ left10:25
Guest53490 left10:26
gerard0 joined10:27
thiago joined10:27
jkremser_ left10:28
spaceonline joined10:29
wolftankk left10:30
_Vi left10:30
rmr joined10:30
_Vi joined10:31
mklappstuhl left10:32
eletuchy joined10:33
gerard0 left10:33
jonnu joined10:33
codecowboy joined10:33
echo-area left10:34
codecowboy hi. i am having a problem with git - i have just cloned a repo and changed 1 file. git status is showing that many more files are modified. what would cause this?10:34
charon autocrlf issues10:35
maybe somebody more competent than me knows the solution, but the problem is usually autocrlf :)10:35
adhawkins codecowboy: What does git diff show?10:35
wolftankk joined10:35
cbreak-work codecowboy: what does git config -l show? what does git diff -w show? and what OS are you using?10:36
gerard0 joined10:37
eletuchy left10:37
Superlokkus joined10:37
lausi left10:39
lausi joined10:39
cedeon joined10:41
RaceCondition joined10:41
rchavik left10:42
ReekenX left10:42
codecowboy cbreak-work, http://pastie.org/449301110:42
OOPMan left10:43
codecowboy cbreak-work, i'm using an Ubuntu VM. There are some devs using Windows (tortoise and git bash)10:43
_ikke_ You probably have mixed case files inside the repo10:44
codecowboy cbreak-work, should i be doing gitt diff -w on an individual file?10:44
_ikke_, I have core.ignorecase=true in config10:44
cbreak-work pastebin git status10:45
Araxia left10:45
cbreak-work git diff -w ignores whitespace changes10:45
if it shows diffs, then it's not whitespace related.10:45
codecowboy cbreak it shows diffs10:45
cbreak-work, ^^10:45
cbreak-work I mean the same.10:46
_ikke_ codecowboy: mixed line ending I mean10:46
cbreak-work what kind of change does it show?10:46
codecowboy _ikke_, can i swtch that off in config10:46
_ikke_ codecowboy: best way is to do that in a .gitattributes file in the repository10:47
codecowboy cbreak-work, i think git diff-w is showing the real changes i.e what i would expect from git status10:47
cbreak-work then it's whitespace related10:48
codecowboy _ikke_, sure but i dont control that10:48
_ikke_ codecowboy: Don't control what?10:48
klj613 joined10:48
codecowboy _ikke_, the git repo. i cant make a change like that without getting it approved etc10:48
jjido joined10:48
klj613 how do i git diff which would ignore pulled changes from master? (merge commits)10:48
babilen left10:49
codecowboy _ikke_, cbreak-work is there a way to resolve this locally for now?10:49
rvl left10:49
_ikke_ codecowboy: git config core.autocrlf false10:49
dsdeiz left10:49
angelsl left10:51
codecowboy _ikke_, done but git status is still showing loads of changed files10:51
d3vic3 left10:51
PigeonFriend joined10:51
shreya left10:51
harish joined10:53
d3vic3 joined10:53
Lord_DeathMatch joined10:55
oznt left10:56
gerard0 left10:56
webguynow joined10:57
rvl joined10:58
angelsl joined10:58
gerard0 joined10:59
juvenal left11:00
madewokherd left11:00
spaceonline left11:01
quazimodo left11:03
codecowboy _ikke_, think you meant true11:04
Chappo left11:04
quazimodo joined11:05
marhaban joined11:05
lng left11:06
Chappo joined11:06
joaquin46 joined11:07
ZorgHCS joined11:07
axrfnu hi all. i have a local and a remote branch pointing to the same commit. how can i make the local branch automatically push to its remote counterpart on origin without editing .git/config?11:07
joaquin46 left11:07
_ikke_ axrfnu: You mean without yourself editing .git/config?11:08
axrfnu _ikke_: yes, exactly11:08
_ikke_ "git push -u origin master" would do that for the master branch for example11:09
-u -> --set-upstream11:09
Which causes git to record that information into .git/config11:10
axrfnu d'oh, that was too obvious. i already had -u in mind, but just had used it to set up a fresh local tracking branch. _ikke_: thank you for the hint11:10
shreya joined11:12
_ikke_ axrfnu: git checkout has -t which does the same when you want to create a new local branch based on a remote branch11:12
wolftankk left11:12
gerard0 left11:14
codecowboy _ikke_, cbreak-work seems to be ok now. thanks for your help!11:14
longbeach joined11:15
dsirijus joined11:16
rmr left11:17
rwestphal joined11:17
iamjarvo joined11:17
wolftankk joined11:17
wolftankk left11:17
nicoulaj joined11:17
gerard0 joined11:18
tinti_ left11:18
chester_ joined11:18
thirdknife joined11:19
rvl left11:19
TomyLobo joined11:19
rmr joined11:19
paolooo joined11:20
paolooo hello @all, how do i update my local copy? Is it $ git pull master?11:21
Geralt joined11:21
wereHamster paolooo: git pull.11:22
_ikke_ paolooo: The second parameter for pull is the remote where to pull from11:22
xiangfu left11:23
fusion27 joined11:24
fusion27 First time trying to work with submodules, not even sure that submodules are what I want11:24
_ikke_ !submodule11:24
gitinfo git-submodule is ideal to add subsidiary git repositories to a git superproject when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes upstream. See http://book.git-scm.com/5_submodules.html11:24
fusion27 I'm using a JS lib that I got from github11:24
thirdknife left11:24
fusion27 I'm still so new to source control11:24
and of course, git11:25
tried using another lib I got from git a while ago, but thought I 'un-did' it as a submodule11:25
was coming around with the new one to take another stab at it11:25
git submodule init11:25
No submodule mapping found in .gitmodules for path 'bootbox'11:25
bootbox is the old one I thought I undid11:25
_ikke_ fusion27: If you want to add a submodule, git submodule add it11:26
fusion27 bootbox has no records in .gitmodules11:26
yeah _ikke_ I did that in our development repo11:27
we then pull that to prod11:27
paolooo wereHamster: _ikke_ Thanks :)11:27
fusion27 but when I got to prod, it looked like it pulled the directory over but not the source11:27
paolooo wereHamster: _ikke_ do I need to add master? -> $ git pull master?11:27
_ikke_ wereHamster: no11:27
paolooo: *11:27
fusion27 so that's why I ran git submodule init11:28
paolooo $ git pull <-- would be fine?11:28
rvl joined11:28
fusion27 I suppse I need to be doing this in our development repo?11:28
seems like the more I learn with git, the less I know11:29
:D11:29
_ikke_ fusion27: What is the difference between the production repo and the development repo?11:29
paolooo: Yes, but it relies on some settings to be set11:29
paolooo _ikke_: ah ok thanks11:30
_ikke_ (for master it already works)11:30
But not that it merges into the current branch11:30
note*11:30
paolooo _ikke_: Thanks11:30
zdk left11:30
paolooo _ikke_: How do I check if there's a changes on the git files?11:31
fusion27 _ikke_: you're talking to a total noobie under the thumb of a micromanager who doesn't like us 'messing' with git, the development repo is firewalled, production is not11:31
the other developer and I realized that running with no source control was stupid11:31
that was about 99% of the reason we chose git11:32
I suppose pretty much anything would've worked11:32
just heard a lot of great things about git11:32
_ikke_ Who added the submodule to the repository?11:32
arkiver joined11:33
unmanbearpig joined11:33
Jippi joined11:33
fusion27 I did11:33
bootbox, I think I did a git clone11:33
_sundar_ left11:34
rvl left11:34
asafdav2 joined11:36
gitinfo set mode: +v11:37
Chappo left11:38
berserkr left11:38
timthelion joined11:38
Chappo joined11:40
_ikke_ fusion27: To what repository did you add that submodule?11:40
thirdknife joined11:41
FreeArtMan joined11:41
chrisward left11:41
subbyyy joined11:42
subbyyy left11:42
rcu left11:42
Ryback_ joined11:43
Ryback_ left11:43
Ryback_ joined11:43
chuckharmston joined11:43
Psycho_pr left11:43
Psycho_pr1 joined11:43
leeN left11:44
chrisward joined11:44
dsirijus left11:45
jjbohn joined11:46
leeN joined11:48
toabctl left11:49
ology left11:52
gerard0 left11:53
thirdknife_ joined11:55
rurufufuss joined11:56
thirdknife left11:56
gerard0 joined11:57
barq joined11:57
C8H10N4O2 left11:59
toabctl joined12:01
hyperair joined12:02
fusion27 Hi _ikke_ I added it to our development repo12:03
jackh joined12:03
fusion27 then pulled to prod12:03
_ikke_ fusion27: Have you commited that in the development repo?12:03
gerard0 left12:04
Guest13529 left12:05
jaclinuxhelp left12:05
maleknet left12:06
geekbri joined12:07
gerard0 joined12:08
TRUPPP joined12:08
beautifulmind left12:09
archdori left12:12
Fandekasp left12:12
beautifulmind joined12:12
guampa joined12:12
fusion27 _ikke_: I think one of us did a few days ago, but we 'rewinded' that but checking out back to a point in history that kept our repos a mirrors12:13
beautifulmind left12:13
TRUPPP left12:14
gerard0 left12:14
rmr left12:14
Lord_DeathMatch left12:14
highway900 left12:14
hyperair left12:16
jjido left12:16
oehman joined12:17
gerard0 joined12:18
thirdknife_ left12:18
t0rc joined12:19
t0rc left12:21
landypro left12:23
skyf joined12:23
ChadStudmuffin joined12:23
landypro joined12:23
gerard0 left12:24
jjbohn left12:25
gerard0 joined12:25
lupo7 joined12:26
tom[] joined12:26
AaronMT joined12:27
juvenal joined12:27
freeed joined12:29
_W_ left12:30
Chibby_ left12:31
_Vi left12:31
thirdknife_ joined12:31
ddelrio1986 joined12:31
gerard0 left12:31
_Vi joined12:32
gerard0 joined12:33
paolooo left12:34
Fandekasp joined12:35
archdori joined12:36
babilen joined12:36
cagedwisdom left12:38
gerard0 left12:39
Lord_DeathMatch joined12:39
sh4rm4 joined12:40
joephelius joined12:40
gerard0 joined12:40
klj613 how do i git diff which would ignore pulled changes from master? (merge commits)12:41
alanmac_ joined12:41
_ikke_ klj613: care to elaborate?12:41
klj613 `git diff master feature-branch` shows the code from the master branch pulled in12:41
shruggar left12:41
alanmac_ left12:41
cmn it shows the differences between master and feature-branch, yes12:42
babilen left12:42
shruggar joined12:42
cmn what are you trying to see?12:42
alanmac joined12:42
klj613 and let say half way through feature-branch i merged master in. to keep up to date12:42
it shows the master code changes aswell12:42
alanmac How do I get git to always annotate a tag? tag = tag -a in .gitconfig doesn't work12:42
tom[] left12:42
cmn it really shouldn't show them12:43
marthinal left12:43
klj613 alanmac, wouldnt that cause a loop? lol12:43
cmn alanmac: you can't alias builtin commands12:43
alanmac pull = pull --ff-only works but?12:43
cmn it really shouldn't work12:43
schemula left12:43
cmn have you ever seen it refuse to do a non-ff update?12:43
merge, rather12:43
alanmac yep12:44
schemula joined12:44
alanmac that's the point though I want to know when it's not ff12:44
Superlokkus left12:44
cmn actually, nevermind, that's right12:44
pull isn't a builtin12:44
alanmac I see12:44
klj613 so git diff 'should' ignore the code merged in from master?12:44
cmn if the code is the same in both branches, then the diff shouldn't show them12:44
there isn't a way to show it12:44
t0rc joined12:46
C8H10N4O2 joined12:46
hyperair joined12:46
Guest31840 joined12:46
sh4rm4 left12:47
beautifulmind joined12:48
TheJH joined12:48
klj613 okay, thanks.12:48
asafdav21 joined12:50
arvind_khadri left12:51
weiyang joined12:51
om joined12:51
tommyvyo joined12:51
asafdav2 left12:52
sh4rm4 joined12:52
andref_dias joined12:52
fusion27 left12:53
gitinfo set mode: +v12:54
beautifulmind left12:54
om hello12:54
gitinfo om: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.12:54
om git beginner here, i sent a pull request without setting my name and email correctly, how can i update the pull request so it shows my proper name and email?12:55
someone sent me an email saying this: "After re-commit, you can force push to this branch to update this pull request." what does this exactly mean and what should I do?12:55
i've updated my name and email using git config, but now what?12:55
FauxFaux om: First, fix the commits so that git log looks right. !postpro12:56
gitinfo om: [!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.12:56
wereHamster om: push your new commits into th same branch that the pull request references12:56
FauxFaux Mmm, that doesn't mention resetting --author.12:56
shruggar if it's only one commit, then git commit --amend --reset-author would do it12:56
beautifulmind joined12:57
om ok i did that shruggar, now i should push the stuff to my fork?12:58
and what did the person who sent me the email meant by 'force push'?12:59
beautifulmind left12:59
iori left12:59
_ikke_ om: git push -f12:59
om: git push -f <remote> <branch>13:00
om and i should do this after i've pushed the stuff to the fork from my repository?13:00
iori joined13:00
nwest joined13:00
Pugnax joined13:00
_ikke_ om: No, you should do this while you are pushing the stuff to the fork of your repository13:01
iori left13:01
_ikke_ om: Because you have rewritten your commits, git won't accept that immediately13:02
ChadStudmuffin left13:02
elux joined13:02
skyf left13:03
shruggar and just so you know, om, these instructions shouldn't be taken as general advice. Everyone here is making assumptions about the simplicity of your situation, as your question implies that you probably haven't been using git for long enough to have a complicated one :)13:03
ChadStudmuffin joined13:04
chris2 joined13:05
sh4rm4 left13:05
sh4rm4 joined13:06
jatt joined13:06
gfontenot joined13:06
landypro left13:06
gfontenot left13:06
ehsan joined13:06
psoo left13:07
arvind_khadri joined13:07
spyro left13:08
paolooo joined13:08
paolooo hi @all, I tried to $ git pull <-- but I get an error: " Please, commit your changes or stash them before you can merge.13:08
giallu joined13:08
weiyang left13:08
tjadc left13:09
_ikke_ paolooo: Well, what does that message say?13:09
macabre joined13:09
centipedefarmer joined13:09
pmdarrow joined13:09
paolooo _ikke_: "Your local changes to the following files would be overwrittern by merge:... "13:10
_ikke_ yes13:10
You have a dirty work tree13:10
FauxFaux (hurr)13:10
Chib joined13:11
paolooo _ikke_: yes I want to update my local files.13:11
spyro joined13:12
Dimitr joined13:12
chrisdev joined13:12
FauxFaux paolooo: That's great. You still have to do what it says before doing that, though.13:12
canton7 paolooo, git really doesn't like overriting uncommitted stuff, as it's a situation which can't be recovered from, and can very easily lead to lost work13:12
macIvy joined13:12
canton7 so either commit your changes, stash them, or if you really don't want them, nuke them13:13
skyf joined13:13
canton7 s/overriting/overwriting13:13
_ikke_ paolooo: note that git pull is not necessarily meant for just getting the latest changes13:13
paolooo: It would create a merge commit everytime you do, which would make history quite messy in time13:13
om _ikke_: i've pushed the files to my repository, now, how do i update the pull request?13:14
canton7 om, if you force-push to the branch on which a pull request has been built, the pull request gets updated13:14
ehsan left13:15
paolooo _ikke_: so, I should commit the files first, then pull to overwrite my files?13:15
neurodrone joined13:15
_ikke_ paolooo: You don't want to overwrite your files, do you?13:15
hyperair left13:15
fb6667 joined13:16
ehsan joined13:16
canton7 pull won't overwrite them. it will take your version of the history with your changes to those files, and the remote version, and merge them together13:16
Twey left13:16
paolooo _ikke_: Yes, I want to overwrite because somebody modified the file, and I want his changes to appear on my local files.13:16
fb6667 left13:16
cannonball joined13:17
hyperair joined13:17
iamjarvo left13:17
borwar left13:17
linoj joined13:17
afuentes joined13:18
iamjarvo joined13:18
_ikke_ paolooo: But do you want to loose you're changes?13:18
beautifulmind joined13:18
paolooo _ikke_: yes I want to loose the changes13:18
_ikke_: or perhaps I'll just delete the file and then pull13:19
canton7 paolooo, 'git status' will tell you how to undo your changes13:19
_ikke_ paolooo: That won't help either13:19
palm_vue left13:20
bizhanMona left13:20
Lgb left13:20
ehsan left13:20
charon i conjecture that "X and then pull" is the wrong solution to any problem, for all X13:21
_oakdog8 joined13:21
oakdog8Guest7193413:21
_oakdog8 left13:22
_oakdog8 joined13:22
_oakdog8 left13:22
singingwolfboy joined13:22
Twey joined13:22
palm_vue joined13:23
Lgb joined13:23
singingwolfboy On GitHub, I have a pull request which has since been merged, but I can still view the commits that were in that pull request. How do I view an equivalent list of commits using git on the command line?13:23
bizhanMona joined13:23
wolftankk joined13:24
FauxFaux git ls-remote origin; git fetch origin refs/pull/528937/merge; git log FETCH_HEAD13:24
dv310p3r joined13:24
grawity wouldn't that just be `git log origin/pull/528937/merge`13:24
canton7 the orgin/pull stuff isn't fetched by default, so you need to explicitely fetch it13:24
FauxFaux What he said. grawity: !fetch413:24
gitinfo [!fetchfour] Never use the four-word version of git-fetch or git-pull (e.g. git fetch remote refspec). It always ends in tears. Yes, if you understand the implications of FETCH_HEAD it can technically be done, but really it is easier to just fetch the whole remote (or perhaps edit the fetchspec if you never want other bits). If you must, see !fetch4why13:24
grawity FauxFaux: and I used the four-word version when?13:25
FauxFaux grawity: I did, because, as canton7 said, they're not fetched by the safe version, because github are Mean.13:25
_ikke_ because they're in a different namespace, right?13:27
macIvy left13:27
gfonteno_ joined13:27
nischayn22nischayn22|Away13:28
canton7 'git fetch' fetches (by default) refs/heads/ . pull/x is indeed a different namespace entirely13:28
gfonteno_ left13:28
gfontenot joined13:28
babilen joined13:28
Kun joined13:28
canton7 oops, refs/pull/x not pull/x13:28
singingwolfboy left13:28
Kun left13:29
orkz_ joined13:29
andrewhl joined13:30
thirdknife_ left13:30
shawngo left13:31
_Vi left13:32
kermit left13:32
orkz left13:32
orkz_orkz13:32
OOPMan joined13:32
_Vi joined13:32
ShadeTornado joined13:32
kermit joined13:33
denysonique joined13:33
chrisgeorge joined13:33
wolftankk left13:33
nicklas_ joined13:34
weiyang joined13:35
mmc1 joined13:35
nicklas_ left13:36
mikewintermute joined13:36
nicklasbj joined13:36
gitinfo set mode: +v13:37
_oakdog8 joined13:38
wolftankk joined13:38
john2496 joined13:38
_oakdog8 left13:39
_oakdog8 joined13:39
_oakdog8oakdog813:39
oakdog8 left13:39
TeckniX joined13:39
yko joined13:39
dranov joined13:39
oakdog8 joined13:39
rurufufuss left13:40
ZyX-I joined13:40
gitinfo set mode: +v13:41
nicklasbj Hi All. Is it possible to run git outside of a git repo and specify the path? 'git checkout XXXX path' returns fatal: Not a git repository.13:41
Davey joined13:41
shruggar nicklasbj: if you weren't trying to check-out, I'd say yet13:41
*yes13:41
barq left13:41
shruggar it's a bit more convoluted if you want to check out. What are you actually trying to do?13:41
dranov left13:42
shruggar Do you actually want "git archive", perhaps?13:42
FauxFaux nicklasbj: man git GIT_WORK_TREE and GIT_DIR, and lots of caution. You're probably trying to write !deploy, though.13:42
gitinfo nicklasbj: Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html13:42
nicklasbj: the git manpage is available at http://git-scm.com/docs/git.html13:42
nicklasbj shruggar: I'm new to git, so maybe :) I'm trying to do something similar to svn update -rXX13:42
FauxFaux nicklasbj: That doesn't work outside of an svn repository..13:42
s/repository/working copy/13:43
Guest31840 left13:43
yko left13:43
nicklasbj FauxFaux: It is a git repo, I just want to update it to a specific hash without having to cd into the folder(I'm calling the command from an external place cd is difficult)13:44
shruggar nicklasbj: "trying to do something similar to svn <….anything…>" is not likely to be sane ;)13:44
canton7 (cd repo && checkout whatever) maybe?13:44
FauxFaux nicklasbj: You know that you can run (cd /foo/bar && git checkout blah), with the brackets, and the shell will cd back for you afterwards, right?13:44
shruggar I don't actually know what that command does, though. What, again, are you actually trying to do?13:44
FauxFaux Bah!13:44
canton7 victory! :)13:45
fireh joined13:45
revagomes joined13:45
FauxFaux dispatches the assasins.13:45
nicklasbj hehe.. Sorry for any confusion.. I'm calling the git command from a java program and I can't seem to get cd to work there13:45
shruggar canton7: I hereby award you 0.03 internet points13:45
canton7 yours was more informative, I swear, I don't deserve to die!13:45
cmn then just do the same, cd into wherever and call git, then cd back up13:46
FauxFaux nicklasbj: Have you considered using jgit?13:46
cmn jgit may also be able to use this13:46
Superlokkus joined13:46
v0n joined13:46
nicklasbj FauxFaux: looks great13:46
charon nicklasbj: note that checking out an old version results in !detached13:46
gitinfo nicklasbj: 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 !reattach13:46
tommyvyo left13:47
dozymoe joined13:47
nicklasbj FauxFaux: thanks!13:47
FauxFaux That's exactly what svn update -r does, fwiw, except of course you can only ¡float yourself back into sanity. Such a sad version control system.13:47
mkj_wk nicklasbj: WRT the "cd command" not working, cd isn't actually a command. You need to change the working directory from within your Java program before invoking the Git command13:48
nicklasbj It's ok if it is detached, I'm only crawling the version system now.13:48
mkj_wk: ah ok, makes sense13:48
mkj_wk if you want to use jgit be aware of its limitations, like not honoring (most of?) .gitattributes13:48
Destos joined13:48
cmn crawling?13:48
mkj_wk jgit should work fine for inspecting what's there13:48
dozymoe left13:49
nicklasbj cmn: I'm calculating metrics for each commit for visualizing it13:49
cmn there is no need to call checkout13:49
mkj_wk it's when you come to committing that we've had, um, challenges with some people committing with egit (on top of jgit) and others with command line git (directly or under ever other ui)13:49
fireh left13:49
cmn if you just want to look through commits, use jgit to look at what's there13:49
AaronMT left13:50
nicklasbj Yes, jgit should be great for my purpose13:50
cmn there is absolutely no need to mess with the working directory, or even to have one13:50
psoo joined13:50
mkj_wk agreed13:50
nicklasbj Thanks all for your help13:50
jjbohn joined13:51
tatsuya_o left13:51
nifty_ joined13:51
tatsuya_o joined13:52
weiyang left13:54
jjbohn left13:55
sawdisk joined13:55
xMYTHICx joined13:56
nicklasbj left13:58
alexisabril joined13:59
mikewintermute left13:59
Dimitr|2 joined13:59
mikewintermute joined13:59
aldodelgado joined13:59
ology joined14:00
ehsan joined14:01
Dimitr left14:03
Ecesis joined14:03
Ecesis1 joined14:04
Dimitr|2 left14:04
Ecesis left14:05
Dimitr joined14:05
zackiv31 joined14:05
mikewintermute left14:06
mikewintermute joined14:06
ahayweh joined14:06
spronk left14:06
tukkol joined14:07
dozymoe joined14:07
gitinfo set mode: +v14:07
spronk joined14:07
spronk left14:07
mikewintermute left14:08
gavin_huang left14:08
ph^_ left14:08
mikewintermute joined14:08
beautifulmind left14:09
dozymoe left14:10
kcj left14:10
v0n left14:10
dozymoe joined14:11
jjbohn joined14:13
cmn left14:16
marthinal joined14:17
weiyang joined14:17
cmn joined14:17
marthinal left14:19
jackh left14:19
rchavik joined14:19
marthinal joined14:19
lb left14:19
blexim joined14:21
fly9 joined14:21
weiyang left14:21
kanru_ left14:21
psoo left14:21
gitinfo set mode: +v14:22
v0n joined14:23
blexim hi, is this a reasonable channel to ask really basic git questions?14:23
corburn yup14:23
blexim sweet14:23
so, I have a master branch & a couple of branches hanging off of it14:24
in one of the non-master branches I've made some changes to a directory14:24
dhruvasagar joined14:24
blexim but now I'd like to revert just those changes to look like master and leave all the other directories alone14:24
Nirvanko Hoe to tell git to remove untracked directories?14:25
blexim should I be reading the checkout manpages, or reset or what?14:25
Nirvanko How*14:25
cmn if they're untracked, git doesn't care about them; use /bin/rm14:25
if there's a lot, you can use git clean14:25
kanru_ joined14:25
Dimitr|2 joined14:26
Ecesis1 left14:26
cwang joined14:26
PerlJam blexim: you can use "git checkout" to make that dir look as it did in a specific commit14:26
jonnu left14:26
blexim ok & that'll keep me in the same branch as I started in?14:26
PerlJam blexim: git checkout master -- path/you/want/to/change14:27
blexim awesome, thanks14:27
Rajesh joined14:28
RajeshGuest8622914:28
Nirvanko cmn, git clean does not remove directories. If it had done this I wouldn't ask.14:28
cmn yes, it does, see man git clean14:28
gitinfo the git-clean manpage is available at http://git-scm.com/docs/git-clean.html14:28
Dimitr left14:29
PerlJam Nirvanko: git clean -dxf # caveat emptor14:29
tukkol hi. is there a way to see merge commits in an individual file log? i.e. in branchA file X is changed and I merge it into branchB then I can only see the merge commit when using 'git log' not with 'git log X'14:29
PerlJam well, I guess you aren't buying anything so ... caveat lector14:29
shawngo joined14:29
ovnicraft joined14:29
rchavik left14:30
Jay_Levitt joined14:30
rchavik joined14:31
luxurymode joined14:31
ShadeTornado left14:32
_Vi left14:32
ShadeTornado joined14:32
_Vi joined14:33
sh4rm4 left14:33
Tommy[D] left14:33
Tommy[D] joined14:33
sh4rm4 joined14:34
jmd joined14:34
nickpresta joined14:34
d3vic3 left14:35
cmn tukkol: --full-history might help14:35
TheJH left14:35
Vert left14:36
d3vic3 joined14:36
ShooterMG left14:37
Nirvanko PerlJam, I think your Latin isn't that good as your knowledge of Git.14:37
skyf left14:37
skyf_ joined14:37
Kulrak left14:38
axl_ joined14:39
flavius joined14:39
gxk left14:39
PerlJam Nirvanko: you're right, I should have said "hic sunt leones" or something :)14:40
Guest86229 left14:40
mikecmpbll joined14:40
mikecmpbll hi chaps.14:40
gitinfo mikecmpbll: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.14:40
rchavik left14:41
Pugnax left14:41
mikecmpbll can i just run this by someone just for peace of mind. I want to push a local branch that i've been working on to remote repo, should i do: git push -u <branch-name>14:41
mattalexx joined14:42
mattalexx left14:42
mattalexx joined14:42
jast mikecmpbll: git push -u <remote name> <branch name>14:42
mikecmpbll so remote-name might be origin, for example?14:42
jast yes14:42
mikecmpbll and branch name is the name that I want it to be on remote? or the name of my local branch?14:43
tvw left14:43
weiyang joined14:44
cmn both, it's a refspec14:44
if you only specify the local name, git assumes you want it to be called the same14:44
mikecmpbll gotcha14:44
rchavik joined14:44
freeed left14:45
Kulrak joined14:45
mikecmpbll i'll give it a shot, git makes me silly nervous.14:45
papegaaij left14:45
toabctl left14:46
tukkol cmn: unfortunately --full-history does not help :( .. the merge is still not visible for an individual file...14:47
hyperair left14:47
xMYTHICx left14:47
mikecmpbll phew, success, thanks guys :).14:47
spiffytech joined14:47
vdv left14:48
cmn then there's probably not way of doing it, other than by hand14:48
LekeFly left14:48
freeed joined14:48
cmn if the file wasn't modified in the merge, there isn't any reason for git to show it14:48
phreaky left14:50
spiffytech I remember seeing a git config option that would print intra-line diffs on one line, with the old and new substrings denoted inside the single line, instead of one entire line for the old version of the line and a second line showing the entire new version, but I can't remember the option. What is it?14:50
Jay_Levitt left14:50
macIvy joined14:50
cmn --word-diff14:50
AaronMT joined14:50
jast sitaram: in our SCM stuff I'm currently planning to add a button to a web interface to create a new gitolite-controlled repository. is there a straightforward way to run a command on the server to make gitolite create a new repo? or am I stuck creating it manually and then running "gitolite setup"?14:51
cbreak-work --color-words is also interesting14:51
ddelrio1986 left14:51
rchavik left14:51
spiffytech Ah, cool, thanks!14:51
cbreak-work jast: how about changing the config file and then commit & push?14:52
jast changing *what* config file?14:52
Rajesh joined14:53
cmn the one that tells gitolite to create it?14:53
jast there is no config file that creates it14:53
tukkol cmn: but there has to be a way to determine when a change for a particular file became active in a given branch or not?14:53
RajeshGuest3551914:54
oehman left14:54
cmn what about gitolite-admin/conf/gitolite.conf ?14:54
tukkol: yes, and that's shown by log, the merge isn't that commit14:54
jast gitolite.conf doesn't list the repository14:55
cmn oh, wild repos14:55
jast yes14:55
mritz joined14:55
maestrojed joined14:55
AaronMT left14:55
Synthead joined14:56
ddelrio1986 joined14:56
cmn tukkol: if you want to pretend that side-branches didn't happen, --first-parent can help14:56
but only if you've made sure to make the merges be significant14:57
jackh joined14:57
cmn tukkol: basically, your definition of branch clashes with git's14:58
Guest35519 left14:58
archdori left14:58
Fandekasp left14:58
mikecmpbll now that I've done git push -u <remote name> <branch name>, and the branch now exists on remote, can I use git push and git pull?15:00
TheLZA joined15:01
TheLZA left15:01
mritz left15:01
TheLZA joined15:02
asafdav21 left15:02
LimeBlast left15:02
charon mikecmpbll: pull yes. push's behavior depends also on push.default, see man git-config15:02
gitinfo mikecmpbll: the git-config manpage is available at http://git-scm.com/docs/git-config.html15:02
mikecmpbll charon: ta, i'll take a look.15:03
Lord_DeathMatch left15:04
schemula left15:04
john_anderson joined15:05
codetroll joined15:05
LimeBlast joined15:05
andref_dias left15:05
flijten left15:05
russt joined15:06
Rajesh_ joined15:06
Rajesh_ left15:07
Rajesh_ joined15:07
calvinx joined15:07
Fangorn_ joined15:07
codetroll left15:07
Rajesh_ left15:08
codetroll joined15:08
calvinx Is anyone here familiar with git flow? I would like to find out how git flow release finish "my_tag_name" works because I am expected a permanent tag to be added into the master branch but this isn't so.15:08
yoklov joined15:08
Rajesh_ joined15:08
calvinx how do I ensure that when I finish a release, a tag gets added to my "master" and "develop" branches?15:09
jatt left15:09
freeed left15:10
Chappo left15:10
canton7 You should get a tag added to the master branch15:11
cbreak-work tags can't be added to branches15:11
Fandekasp joined15:11
Chappo joined15:11
cbreak-work just git tag something if you want to tag it15:12
Araxia joined15:12
cbreak-work left15:12
canton7 sorry, to the merge commit on the master branch15:12
proradii left15:13
Fangorn_ left15:13
freeed joined15:13
duckxx joined15:14
arkiver left15:14
Rajesh_ left15:14
Kaisyu left15:15
jasmina87SA__ joined15:16
ISF joined15:16
OOPMan left15:16
jasmina87SA__ left15:16
iamjarvo left15:18
tukkol cmn: hm. i don't see where the conflict in my interpretation of a branch is yet :( . i guess it's actually more about how a merge is defined. in my interpretation a merge (no-ff) is the topological point when two (or more) branches are joined and thus the commits of the other branches becomes active.15:18
Dimitr|2 left15:18
eijk_ joined15:18
eijk left15:18
iamjarvo joined15:18
cmn active isn't something that exists15:18
you assume that the other branch is separate15:18
when you merge, it becomes part of the branch15:18
codeM0nK3Y joined15:18
cmn thus the merge commits isn't where anything becomes "active"15:19
you're simply splicing two histories; the changes happened whenever, not in the merge15:19
tukkol well it becomes "visibile" from the point of view of the branch you merge into.15:19
rgsteele joined15:20
Araxia left15:20
cmn it becomes reachable, sure15:20
private joined15:20
cmn but it doesn't affect where things happened15:20
tplaner_ joined15:20
privateGuest528715:20
centipedefarmer left15:20
unmanbearpig left15:21
john2496 left15:22
john2496 joined15:22
localhost joined15:22
thelazydeveloper joined15:22
zastern joined15:23
tukkol still it's part of the topology of the branch and thus relevant for the history and as it affects all files since the last common anchestor it would make sense to see it somehow.. ?!15:23
cmn it doesn't affect all files15:23
tukkol ...no all filles changed since the last...15:24
cmn no15:24
ZyX-I left15:24
cmn it affects files with merge conflicts15:24
hellopat joined15:24
kevwil joined15:24
Jay_Levitt joined15:25
Araxia joined15:26
unmanbearpig joined15:26
robbyoconnor left15:26
Araxia left15:27
tukkol cmn: that might be correct but still it is a relevant information. don't you agree?15:27
cmn maybe15:27
thk|work joined15:27
barneybook left15:27
tukkol at least from a user perspective15:27
cmn what's relevant depends completely on the situation15:27
tukkol that the information is not necessary for the merge commit itself is clear to me.15:27
cmn huh?15:27
tukkol (the information which files where purely affected by previous commits)15:28
from the other branch15:28
LekeFly joined15:28
nickpresta left15:28
localhost left15:28
cmn if you want that, you can ask for that15:28
corburn left15:28
tukkol so.. back to my original question.. how? ;)15:28
cmn git diff --name-only merge^1 merge^215:29
gavin_huang joined15:30
sitaram jast: hi!15:30
tukkol no. i have file X and since "today" it does not compile. now I look at the log of the file and see a change that was made a year ago only, where actually a branch was merged today with a change made to that file a year ago.15:30
Jippi left15:30
tukkol now i want to see when the change became part of my branch.15:31
cmn and you've checked that --first-parent doesn't work?15:31
tukkol let me check again15:31
sitaram jast: if I understand you correctly, you want a server side command to create a "wild-repos" repo15:31
psoo_ joined15:32
sitaram jast: can I assume latest v3 in use?15:32
drive-by-advice joined15:32
leila joined15:33
cagedwisdom joined15:33
tukkol mkdir mergetest && cd mergetest && git init . && echo x > X && git add X && git commit -m "init" && git branch test && echo y > X && git commit -a -m "changed X" && git checkout test && git merge --no-ff master && git log --first-parent X15:33
SirCmpwn_ joined15:33
tukkol doesn't show the merge :|15:33
ology left15:33
dinesh6654 joined15:34
tukkol (that is git 1.7.8)15:34
SirCmpwn_SirCmpwn15:34
tlocalhos joined15:34
om left15:35
tlocalhos left15:35
bigmeow joined15:35
bigmeow hi all15:35
cmn then --first-parent isn't that smart15:35
bigmeow how to ignore files that end with ~?15:35
vim and emacs generate lots of such files:(15:35
canton7 man gitignore15:36
gitinfo the gitignore manpage is available at http://git-scm.com/docs/gitignore.html15:36
Jay_Levitt left15:36
localhost joined15:36
bigmeow canton7: dude, does .gitignore support wildchar?15:36
agumonkey bigmeow: beside gitignore, you can tell emacs/vim to store the temp files somewhere and/or not create them at all15:36
tukkol cmn: hehe ;).. any other advice?15:37
(oh and thanks for your time and support btw!)15:37
localhost left15:37
bigmeow agumonkey: dude, but filename~ maybe useful sometimes:)15:37
cmn it's still not clear what you want; you seem to know where the problem originated15:37
bigmeow cmn seems blind :)15:37
canton7 bigmeow, read "pattern format" in that man page. it's basically shell globs15:37
cmn bigmeow: wtf are you talking about?15:37
tukkol cmn: yeah well but it's a temporal problem not a topological...15:37
bigmeow cmn: sorry:(15:37
agumonkey bigmeow: true15:38
cmn temporal?15:38
git sorts things topologically15:38
tsdh left15:38
shreya left15:39
tukkol cmn: as my example with the exeggerated year. why would i assume that the problem from a change a year ago would affect me when I always was 'up to date' and it worked until today.15:39
cmn the timing is irrelevant15:39
jdav_gone joined15:40
cmn you merged something, and it broke15:40
tukkol that's why i said "it's a temporal problem not a topological" ;)15:40
time IS relevant for a user.15:40
cmn you're just saying the opposite follows?15:40
sitaram jast: if so, here's how: GL_USER=some-user-because-wild-repos-need-one gitolite perms -c reponame < /dev/null15:40
psoo joined15:40
fornext left15:41
Fandekasp left15:41
ShooterMG joined15:41
psoo_ left15:42
tukkol no. i just ask how would a merge done by person X make a person Y realize that a change for an arbitrary file made a year ago would be the cause of a problem?15:42
especially when person Y was not aware of a merge15:42
psoo left15:42
psoo joined15:42
cmn that's a person and communication problem15:42
kukks joined15:42
kukks left15:42
kukks joined15:42
kvothe joined15:42
kvothe left15:42
kvothe joined15:42
cmn if you're merging old branches without testing or telling people, git can't help you15:42
artnez joined15:42
tukkol cmn: so blame the person not the tool for not providing sufficient info? ;)15:42
Fandekasp joined15:42
marhaban left15:43
bigmeow how to remove all the files which are not version controled by git?15:43
snearch joined15:43
cmn man git clean15:43
gitinfo the git-clean manpage is available at http://git-scm.com/docs/git-clean.html15:43
bigmeow especially the files which are in .gitignore?15:43
ChadStudmuffin left15:43
bigmeow cmn: git clen not works for the files which are in .gitignore:(15:43
tukkol i don't see why you can't see that this information might be helpful. regardless of how it can be circumvented by layer 8...15:43
anyhow..15:44
cmn bigmeow: yes, it does, see the man page15:44
canton7 bigmeow, please read the man page.15:44
rohan32 joined15:44
joshc bigmeow: see the -X or -x flags15:44
canton7 joshc, !fish :P15:44
gitinfo joshc: In the long run, it is much better to give pointers to answers than the answers themselves.15:44
cmn tukkol: I never said that15:44
rohan32 left15:44
cmn but you're asking for information that you already have15:45
ovnicraft left15:45
tukkol so, git --first-parent is not smart and it's not possible to see if a merge recently "brought" a commit to a specific file of a given branch.15:45
cmn look at gitk15:45
artem joined15:45
bigmeow how to push to git repo which is hosted on google code?15:45
arturaz left15:45
cmn your situation doesn't make much sense; you already know what went wrong15:45
kevwil left15:46
tukkol but only after layer 8 communicated and not by looking at the place where the error occured (i.e. a file)15:46
dinesh6654 left15:46
cmn what on earth is this layer8?15:47
tukkol users :p15:47
humans15:47
cmn use bisect if you want to find out where an error was introduced15:47
jast sitaram: thanks15:47
tukkol http://en.wikipedia.org/wiki/Layer_8 ;)15:47
toabctl joined15:47
cmn why would you bring the network layer model into this?15:47
sitaram cmn: why do we bring *furniture* into this when we say PEBCAK?15:48
tukkol it's internet jargon not network layer model.. sorry for that.15:48
jast new channel rule: don't explain jokes ;)15:48
sitaram :)15:48
shreya joined15:48
cmn sitaram: to hit people with?15:48
artnez left15:49
ovnicraft joined15:49
artem left15:49
cmn tukkol: it's only jargon as it relates to the OSI model15:50
Shusshu joined15:50
whitman left15:50
gxk joined15:50
nor5trom left15:50
sitaram cmn: I'd go with tukkol on this -- I've heard it often enough that it's kinda become independent of the OSI model (to me)15:50
giallu left15:51
cmn fine, but the only reason it exists is because of the model15:51
sitaram yes, but now it's grown up and moved out15:51
it might get married and change its last name too15:52
bigmeow anybody here who have tried to use git service provided by google code?15:52
it is kind of bull shit:(15:53
cmn change its last name? how traditional15:53
imachuchu joined15:54
artnez joined15:54
snappy joined15:54
gitinfo set mode: +v15:54
Rajesh joined15:54
RajeshGuest8749715:55
micah joined15:55
jmd left15:55
cagedwisdom does anyone use git-annex? Is it good?15:56
MrRoot joined15:57
milki cagedwisdom: good for what?15:57
micah what happens when a hook has an error in one of its operations? does it error out the whole hook?15:57
milki cagedwisdom: and what metrics are we using to evaluate goodness15:57
FreeArtMan left15:57
cagedwisdom milki, what it claims to do. manage large files with git and stuff.15:57
milki micah: that depens on your hook. its just a normal shell script.15:57
canton7 cagedwisdom, people do use it, and they seem to like it. git-media is also considered good15:57
kenperkins joined15:58
bigmeow fk google code;(15:58
cagedwisdom milki, a normal shell script? It's written in haskell15:58
milki cagedwisdom: wut?15:58
bigmeow i still cannot push to that fk google's git repo:(15:58
ISF left15:58
micah milki: yeah, the hook is just a normal bash script, should i set it up so every command that is run has the exit code tested and then to exit the hook if it doesn't work right?15:59
snappy Hi, I'm relatively new to git. I made some changes, and I want to roll back to an earlier commit, and push it to our master (central) repository. I did a git reset to the earlier commit, but when I try to git push --force, the remote master rjects it, since it's non-fast-forward. If I pull, I will receive the commits I want to rollback.15:59
I'm not sure how to resolve this.15:59
mishok13 left15:59
maestrojed left15:59
jkremser left15:59
cjb snappy: you can configure the remote to accept non-fast-forward pushes, and it sounds like you have to do that since you've already pushed the changes you want to destroy.15:59
micah milki: or just a 'set -e' at the top15:59
canton7 bigmeow, this is a fairly large channel: there are 955 people in here currently. If you have a specific question, please ask by all means. But please don't just rant against services15:59
bigmeow failed to push to git repo which is hosted google code:(16:00
i have followed the introduction, failed:(16:00
why?16:00
milki bigmeow: show us your error messages16:00
bigmeow: and what you did16:00
bigmeow http://iyanwu.com/pastebin/forumdisplay.php?fid=916:00
leila left16:00
shruggar left16:00
shruggar joined16:00
bigmeow milki: ^ this link:) ↑16:00
Guest87497 left16:01
milki uh, well looks like its a google specific thing16:01
cmn that seems to show that you failed to input the right username and password16:01
milki so ask google16:01
toabctl left16:01
cmn have you seen what the error tells you to?16:01
hellopat left16:01
bigmeow milki: dude, google lies:(16:01
darren__ joined16:02
bigmeow cmn: i have create that file which named .netrc:(16:02
skyf_ left16:03
hellopat joined16:03
cmn if you don't trust google with your data, don't use their service, it's as simple as that16:03
micah left16:03
bigmeow cmn: dude, google is asshole:(16:04
joephelius left16:04
bigmeow cmn: it lies:(16:04
jargon- left16:04
canton7 bigmeow, cat ~/.netrc ?16:05
imachuchu snappy: you may also want to look at git revert, it's not the same as reset (as it creates a new commit), but it may be what you want. !rewrite16:06
gitinfo snappy: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config)16:06
leila joined16:06
leila left16:06
imachuchu snappy: (sorry I thought that trigger had a link to a revert/reset explanation)16:07
boombatower joined16:07
Shusshu left16:08
cjb left16:09
hellopat left16:09
Superlokkus left16:10
etcetera joined16:10
codetroll left16:10
bigmeow canton7: cat ~/.netrc, http://iyanwu.com/pastebin/showthread.php?tid=172616:11
Survone joined16:11
calvinx left16:11
macIvy left16:11
jackh left16:12
canton7 bigmeow, and "xxxxfwe" is what appears at the top of https://code.google.com/hosting/settings ?16:12
angelsl left16:12
bigmeow canton7: dude, it's the password generated by google:(16:13
Survone left16:13
canton7 and the output of git remote -v ?16:13
milki my googlecode password is longer than yours16:13
ipalaus left16:13
cmn does that mean you're more manly?16:14
milki :P16:14
jkremser joined16:15
leila joined16:16
leila left16:16
nicoulaj left16:16
bigmeow canton7: works now.. if .netrc is used, the username cannot be shown in the url...16:17
mikewintermute left16:18
mikewintermute joined16:18
cmn who'd've thunk; following the instructions makes it work16:19
arosen left16:19
kevwil joined16:19
canton7 yeah, shocking that. maybe they're not liars after all16:20
Davey left16:21
micah joined16:21
micah is there a post-push hook that can run locally after I've pushed?16:21
drizzd_ joined16:22
senny left16:22
Davey joined16:22
TheJH joined16:22
mishok13 joined16:24
drizzd left16:25
hyperair joined16:26
babilen left16:27
jonshea joined16:28
gigamonkey left16:28
mmc1 left16:29
Yuuhi joined16:30
mikecmpbll left16:30
gigamonkey joined16:31
pdtpatrick joined16:31
raar joined16:31
klj613 left16:31
bigmeow canton7: google's git system is quite different from github's:)16:31
how often should if commit , and how only should i push to remote repo?16:32
raarGuest8183116:32
bigmeow is there any suggestion on this?16:32
how to write meaningful comments?16:32
_Vi left16:32
bigmeow too much comments is bullshit or not?16:33
codetroll joined16:33
canton7 bigmeow, how you commit shouldn't depend on where you intend on pushing. still follow http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html16:33
bigmeow -m "add a funciont"16:33
-m "small modification 1"16:33
_Vi joined16:33
bigmeow -m "small modification 2"16:33
fly9 anyone using gitlab?16:33
canton7 both examples of terrible commit messages16:33
bigmeow -m "small modification 3"16:33
like this?16:33
fly9: what is git lab?16:34
macIvy joined16:34
fly9 bigmeow: private github16:34
bigmeow canton7: why it is terrible?16:34
fly9: dude, why not github:)16:34
fly9 bigmeow: open source16:34
canton7 bigmeow, read the page I linked to16:35
fly9 bigmeow: saves company $15k a year16:35
bigmeow fly9: which git service are you using now?16:35
fly9 bigmeow: gitlab16:35
bigmeow fly9: is gitlab kind of open source git platform?16:35
canton7 bigmeow, http://gitlabhq.com/16:36
fly9 bigmeow: it would cost $15k to use github and host it internally16:36
micah 15k?!16:36
fly9 it doesn't have everything but its pretty great16:36
micah gitlabhq is... not fun to setup16:37
fly9 micah: yeah its licensed by users, we have a lot of users16:37
micah: I've got it down to a science, but yeah getting there is a pain16:37
micah fly9: oh you mean if you pay for github's thing16:37
mkj_wk also last I checked github enterprise was still limited to running only on a virtual machine16:37
fly9 micah: lots of bad or incomplete tutorials out there16:38
pdtpatrick left16:38
fly9 micah: exactly16:38
arvind_khadri left16:38
fly9 mkj_wk: yeah good point16:38
pdtpatrick joined16:38
fly9 mkj_wk: although we run gitlab on a vm haha16:39
duckx joined16:39
mkj_wk fly9: then a lack of distinction without a difference :)16:40
unmanbearpig left16:41
mkj_wk we wanted to have a deployment on big fast physical hardware with failover which made the license issue a moot point here16:41
(for one particular implementation, that is; we also have a github enterprise where that wasn't a concern)16:42
drodger joined16:42
duckxx left16:42
maestrojed joined16:43
methods joined16:43
bigmeow micah: how much time have you spent to setup gitlab?16:43
methods is it possible to unstage my commits so i can commit them differently ?16:43
snappy imachuchu: thank you for that info16:43
fly9 mkj_wk: yeah we get by with periodic snapshots and git handles the repo backups easily16:43
pdtpatrick left16:44
dr_lepper left16:44
bigmeow fly9: why gitlab need licence?16:44
fly9 bigmeow: no its open source16:44
tystr hmm16:44
micah bigmeow: more than I wanted to, and then I found out it destroyed my gitolite config because I didn't know it had to start its own from scratch and only use that16:44
so I got frustrated and gave up16:44
tystr why when I type "git rebase -i HEAD~3" do I see 13 commits?16:44
bigmeow micah: why not use svn + git solution?16:45
_68x joined16:45
canton7 tystr, merges?16:45
micah bigmeow: what?16:45
LimeBlast left16:45
fly9 micah: it can point to any gitolite but yeah that'd be frustrating if you tried that way16:45
micah bigmeow: i'm not using svn at all16:45
tystr canton7 what do you mean?16:45
_68x left16:45
tystr I'm just trying to modify a commit a made a couple of commits ago16:45
bigmeow micah: do you use eclipse?16:45
canton7 tystr, is one of the commits in the last 3 a merge commit?16:45
micah bigmeow: no16:45
tystr oh, not in the last 316:46
:q!16:46
oops16:46
imachuchu methods: no (but there may be a terminology issue here). Do you want to remove previous commits or unstage changes to be added to a commit?16:46
methods i already committed without doing a push but i want to uncommit it so i can commit against differently16:46
tystr canton7 interesting…it has merge errors if I just exit vi leaving pick for every commit16:46
AaronMT joined16:46
Twey left16:47
canton7 tystr, are you absolutely sure about your assertion that there aren't any merges?16:47
Twey joined16:47
weiyang left16:47
imachuchu methods: "rebase -i" is the general purpose command, "commit --amend" allows you to change your previous commit. Read !fixup and definetly think about !backup before you do something possibly dumb16:48
gitinfo methods: 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!16:48
methods: Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups16:48
methods hm `git reset —soft HEAD^` worked16:48
tystr canton7 oh checking github there is indeed a merge commit in there16:48
methods then `git reset`16:48
canton7 tystr, I knew it :) rebase and merge don't play well together. read --preserve-merges in man git-rebase, and also "bugs"16:49
gitinfo tystr: the git-rebase manpage is available at http://git-scm.com/docs/git-rebase.html16:49
tystr canton7 ok thanks :)16:49
imachuchu methods: git reset moves around refs, so yes it can be used to remove commits, though you lose those changes too16:49
Pupeno_W left16:50
dvide joined16:50
Pupeno_W joined16:50
tystr canton7 worked like a charm…thanks!16:51
canton7 tystr, sweet!16:51
tystr i didn't know about the --preserve-merges option16:51
ovnicraft left16:51
HyperNerdV2 joined16:51
hwrd|work joined16:51
methods thanks16:52
methods left16:52
stkrzysiak joined16:53
AaronMT left16:53
nevyn joined16:54
towski joined16:55
john_anderson left16:55
thiago left16:55
luxurymode left16:55
apok joined16:56
jkremser_ joined16:56
jkremser left16:57
benbergman joined16:58
thirdknife joined16:59
PigeonFriend left16:59
macIvy left16:59
rapha joined16:59
rapha hi!17:00
I'm trying to switch to the master branch but it tells me "fatal: A branch named 'master' already exists" - what am I doing wrong?17:00
opus joined17:00
canton7 tell me, are you trying to switch using 'git checkout -b' ?17:01
cbreak rapha: stop trying to create a new master branch then :D17:01
tatsuya_o left17:01
ovnicraft joined17:02
Textmode left17:03
cedeon left17:03
nightcrawler786 left17:03
russt left17:03
nightcrawler786 joined17:03
imachuchu rapha: assuming that canton7 is correct, just drop the -b option17:04
diegoviola left17:04
canton7 and read up on what the -b actually does. !book is good17:05
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable17:05
Textmode joined17:05
Chib left17:06
russt joined17:07
t0rc left17:07
ovnicraft left17:08
apok left17:09
dstorrs left17:09
apok joined17:09
rapha canton7: cbreak: imachuchu: "git checkout master" indeed helped. thank you guys!17:10
shruggar left17:12
Harley joined17:12
iwoj joined17:12
gitinfo set mode: +v17:12
mklappstuhl joined17:13
Harley left17:13
iwoj i've made changes to some files, but they haven't been staged yet.17:13
how do I delete those changes?17:13
mjt git checkout <filename>17:13
corburn joined17:13
iwoj If I git checkout the last commit, it creates a new branch17:13
geekbri left17:13
iwoj is there a way to go all the files in one go?17:14
_W_ joined17:14
dinesh6654 joined17:14
pdtpatrick joined17:14
osmosis joined17:15
Fandekasp left17:15
skyf joined17:16
dr_lepper joined17:16
dr_lepper left17:16
dr_lepper joined17:16
john_anderson joined17:16
Fandekasp joined17:16
hellopat joined17:17
kleist left17:18
iamjarvo left17:18
lacrymology joined17:18
localhost joined17:19
jceb_ joined17:20
v0n left17:20
canton7 iwoj, git checkout -- .17:20
jez9999 left17:21
StefanM joined17:21
macer1 joined17:22
macIvy joined17:22
jceb_ left17:23
gitinfo set mode: +v17:23
macer1 Hi guys17:24
gitinfo macer1: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.17:24
macer1 how can I delete file from all commits?17:24
I mean a file17:24
delete a file17:24
cmn man git filter-branch17:24
gitinfo the git-filter-branch manpage is available at http://git-scm.com/docs/git-filter-branch.html17:24
cmn take into account that it's !rewriting17:24
gitinfo [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config)17:24
rapha now i want to do "git submodule add ssh://blahblah blah" and i get "you are on a branch yet to be born" ... am i doing something wrong again?17:24
macer1 I don't care about that, nobody is contributing to my repo atm17:25
or even forking it17:25
Alvo left17:25
cmn it's about people working on their repos17:25
not about giving you changes17:25
jceb left17:25
macer1 nobody download my repo >.>17:25
SirCmpwn is this channel now +m?17:25
jceb joined17:25
SirCmpwn no...17:25
O_o17:26
macer1 SirCmpwn: /topic17:26
Getting "Cannot send to channel"? /msg gitinfo .voice"17:26
SirCmpwn macer1: right, right17:26
macer1: it's +n, which I'm pretty sure is the "identify with nickserv" mode17:26
macer1 left17:26
macer1 joined17:26
lindbohm.freenode.net set mode: +v17:26
ChanServ set mode: -v17:26
macer1 .17:27
SirCmpwn no, it isn't. I dunno17:27
macer1 ohh17:27
I thinked I was indetified17:27
gitinfo set mode: +v17:27
canton7 Identified people can speak fine. Non-identified people need to be voiced, which the bot can do17:27
ology joined17:27
rapha canton7: do you think the problem is in the supermodule or in the repo i want to add as a submodule?17:28
macer1 so, how to delete file from all commits?17:28
canton7 rapha, make a commit, then try again17:28
revagomes left17:28
cmn macer1: again, man git filter-branch17:28
gitinfo macer1: the git-filter-branch manpage is available at http://git-scm.com/docs/git-filter-branch.html17:28
canton7 rapha, (use --allow-empty if you want to just make an empty commit)17:29
macer1 oh17:29
imachuchu macer1: as cmn said, man git filter branch17:29
gitinfo macer1: the git manpage is available at http://git-scm.com/docs/git.html17:29
macer1 git filter-branch --tree-filter 'rm randomunneededcrap' HEAD17:29
rapha canton7: committing seems to work in both and they're both up to date.17:29
api joined17:30
canton7 macer1, need a bit more than that iirc. But I think there's an example17:30
macer1, yeah second example17:30
codetroll left17:30
fayimora joined17:31
opus left17:31
john_anderson left17:31
canton7 rapha, the error means, as far as I know, that you're on an orphan branch (one which isn't based on anything) which doesn't yet have any commits. For example, the error is raised when trying to do something in a new repo which you haven't yet committed to, or if you did 'checkout --orphan' and haven't yet committed17:31
codecowboy left17:32
localhost left17:32
v0n joined17:32
ChadStudmuffin joined17:33
timthelion left17:33
_Vi left17:33
joephelius joined17:33
jceb left17:33
rapha canton7: that's very curious then, as the supermodule is quite old already, has around 15 submodules and has been committed to a couple dozen times. makes me quite clueless...17:34
ashirus left17:34
_Vi joined17:34
jceb joined17:34
canton7 rapha, maybe it's a problem with the submodule?17:34
achadwick left17:35
rapha canton7: could be, i did rewrite it yesterday to correct the authors on some commits and then "git push -f"'d the changes. do you think that might be causing the problem?17:35
opus joined17:36
canton7 rapha, I would think it unlikely..17:38
williamcotton joined17:38
cmn does git rev-parse HEAD error out?17:38
canton7 (but that's not to say it can't be)17:38
rapha canton7: when i do a normal "git clone" of the intended submodule repo, it works just fine ...17:39
TomyLobo left17:39
fayimora left17:39
skorgon joined17:39
LekeFly left17:40
Nirvanko left17:41
canton7 try cmn's suggestion. He knows more about this sort of stuff than me17:41
revagomes joined17:41
dstorrs joined17:42
rapha cmn: sorry didn't see you at first.17:42
velikasha joined17:43
velikasha left17:43
rapha cmn: works for both, the supermodule and the intended new submodule.17:43
mjt left17:43
cmn then that means that you're not on an unborn branch17:43
kevwil left17:44
hellopat left17:44
juvenal left17:45
russt left17:45
thiago joined17:45
rapha cmn: that doesn't disturb git in thinking so :-)17:45
cmn git is generally right, which means there's something odd there17:45
try removing any trace of the submodule17:46
jceb left17:46
rapha cmn: funny, when I do the "git submodule add" a second time, it says "Adding existing repo at 'website' to the index", but it will be empty and updating won't fill it either.17:46
kevwil joined17:46
cmn the repo is there, clearly17:47
rapha cmn: already did that a couple of times. "rm -rf" for the submodule dir, removed it from .gitmodules and .git/config - that should be all traces iirc.17:47
cmn no17:47
rapha oh17:47
cmn git rm --cached dir17:47
rapha where else?17:47
ah17:47
iwoj left17:47
cmn it shouldn't affect it, really, but this is an odd situation17:47
rapha cmn: git rm --cached website -> fatal: pathspec 'website' did not match any files (it is present, physically)17:48
cmn ok, then it never got that far in adding the submodule17:53
juvenal joined17:53
LekeFly joined17:53
jceb joined17:53
FreeArtMan joined17:53
Sym3tri joined17:53
jceb left17:53
jceb joined17:53
maletor joined17:53
xrq joined17:54
cakehero joined17:54
maletor left17:54
rapha cmn: is there any way to debug this?17:55
jceb left17:55
bogwonch left17:55
jceb joined17:55
chuckharmston left17:56
cmn I believe there is a tool that will tell you which child printed out which line to the terminal, but I can't remember the name17:56
xrq why doesn't git stash allow you to make a comment? I'm trying to find an item to pop, trying to find it is like a needle in a haystack without relevant comments about what they were17:56
cmn xrq: it does17:56
lresende joined17:56
cmn put it at the end of the stash line17:56
rapha hmmm17:57
xrq that doesn't work. doing that prints out a git usage list17:57
jceb left17:57
rapha maybe i should just re-do the supermodule from scratch. it only serves as a collection of submodules anyways.17:57
imachuchu xrq: use commits instead, then rebase them into something prettier later17:57
cmn xrq: see man git stash save17:57
gitinfo xrq: the git-stash manpage is available at http://git-scm.com/docs/git-stash.html17:57
kevwil left18:00
Vile left18:01
GNUcifer joined18:02
xrq that works, thanks18:04
jcao219 joined18:05
Sigma joined18:05
jcao219 How do I undo my last commit? I did "git reset HEAD^" but that gives me a prompt "more? "18:06
EugeneKay jcao219 - !fixup18:06
EugeneKay pokes the bot with a stick18:06
aboudreault !fixup18:06
aboudreault - !fixup18:07
EugeneKay He'll catch up18:07
ConstantineXVI left18:07
jcao219 !fixup18:07
gitinfo jcao219: 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:07
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:07
aboudreault: 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:07
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:07
EugeneKay There we go.18:07
ConstantineXVI joined18:07
aboudreault :)18:07
jcao219 ah18:07
cbreak jcao219: windows.?18:08
jcao219 yes18:08
cbreak ha. ha.18:08
^ has special meaning there afaik18:08
mutex left18:08
jcao219 darn!18:08
cbreak use ~1 instead18:08
jcao219 thanks18:08
cbreak I think the special meaning is "continue on next line" but I am not sure.18:09
pantsman joined18:10
pantsman left18:10
pantsman joined18:10
berserkr joined18:10
ashirus joined18:12
tatsuya_o joined18:12
jceb joined18:12
olaf_ left18:12
mutex joined18:14
maletor joined18:14
Chappo left18:14
Chappo joined18:15
tatsuya_o left18:16
iamjarvo joined18:16
sq-one joined18:16
ashirus left18:17
grawity it's a general escape char in cmd.exe, much like \ in sh/bash18:17
mikewintermute left18:18
flijten joined18:18
kevwil joined18:18
grawity so yes, "continue on next line" if it's at the end of the line.18:18
kevwil left18:18
ashirus joined18:19
luxurymode joined18:19
Fandekasp left18:19
nhooey|mini__ left18:20
grawity (though cmd.exe's parser is quite ugly, and it runs twice since git is usually invoked via git.cmd, so you never know if it's HEAD^^ or HEAD^^^^ that equals HEAD~1 ...)18:20
rehat joined18:21
ctdabomb joined18:23
gitinfo set mode: +v18:24
magcius left18:24
ctdabomb is it possible to commit a file with spaces in the title? i get the error ctdabomb@ctdabomb-laptop:~/supertux$ git add data/levels/world1/01- Welcome to Antarctica.stl fatal: pathspec 'data/levels/world1/01-' did not match any files18:25
magcius joined18:25
ph^ joined18:25
corburn Use "\ " escapes18:25
chuckharmston joined18:25
ctdabomb er never mind, I got it18:25
commited the "whole folder"18:26
cbreak git doesn't care about spaces18:26
your shell might though18:26
ashirus left18:26
cbreak just quote or escape18:27
codeFiend joined18:28
magcius left18:29
fayimora joined18:30
maletor left18:30
magcius joined18:31
dstorrs left18:33
ology left18:33
ashirus joined18:33
_Vi left18:33
luxurymode left18:34
luxurymode joined18:34
_Vi joined18:34
luxurymode left18:34
dstorrs joined18:35
ctdabomb left18:35
gdmfsob joined18:37
Fandekasp joined18:37
joephelius left18:37
rapha cmn: so the problem seems to be in the working copy of the supermodule. i'm rebuilding it regardless as some other things about it were uncomfy, too.18:37
chuckhar_ joined18:37
Zenopus_ joined18:37
nyxx joined18:37
savid joined18:38
sh0ne joined18:38
wolftankk left18:38
joephelius joined18:38
jceb left18:38
Orphis_ joined18:38
Moult_ joined18:38
jiunec joined18:38
RickXy joined18:38
JamesB joined18:38
hide_ joined18:38
frogonwheels_ joined18:39
savid Does git have a way to automatically convert dos-style newlines to unix-style newlines on commit? My associate is on windows, and he keeps committing CRLF line endings.18:39
JamesBGuest5773518:39
sinful_ joined18:39
canton7 !crlf18:39
gitinfo to fix problems with line endings on different platforms, check out http://line-endings.gitrecipes.de/18:39
hexa2k9- joined18:39
luke-jr_ joined18:39
savid thanks!18:39
shibayu36_ joined18:40
ryland_ joined18:40
lu_zero_ joined18:40
lu_zero_ left18:40
lu_zero_ joined18:40
myme_ joined18:40
tizzo- joined18:40
wanders_ joined18:40
cooloney_ joined18:40
canton7 savid, also might be worth looking at core.autocrlf in man git-config18:40
gitinfo savid: the git-config manpage is available at http://git-scm.com/docs/git-config.html18:40
tureba_ joined18:40
twem2_ joined18:40
TML__ joined18:40
d3vic3_ joined18:40
w0m_ joined18:40
elliottc1ble joined18:40
xxtjaxx_ joined18:40
pasky_ joined18:40
styx__ joined18:40
FabTG_ joined18:40
chuckf_ joined18:40
wereHams1er joined18:40
WakiMiko_ joined18:40
opus__ joined18:41
Remram_ joined18:41
bartman` joined18:41
KBme_ joined18:41
antix_ joined18:43
burzum` joined18:43
luxurymode joined18:43
jcao219 left18:43
lustucru joined18:43
jcao219 joined18:44
barrbrain_ joined18:44
ArchDeacon joined18:44
ivan\_ joined18:44
TML__ left18:44
schlumpi joined18:44
tg` joined18:44
NfNitLoo` joined18:44
TML_ joined18:44
TML_ left18:44
SirFunk_ joined18:45
milli` joined18:45
lamont` joined18:45
ashirus left18:45
Mez__ joined18:45
BinGOs_ joined18:45
chuckharmston left18:45
sq-one left18:45
berserkr left18:45
Sym3tri left18:45
opus left18:45
mishok13 left18:45
d3vic3 left18:45
luke-jr left18:45
cenuij left18:45
cooloney left18:45
barrbrain left18:45
bartman left18:45
ivan\ left18:45
Zenopus left18:45
tureba left18:45
Remram left18:45
wereHamster left18:45
hpa left18:45
ro0 left18:45
milli left18:45
w0m left18:45
lamont left18:45
chuckf left18:45
NfNitLoop left18:45
nyx left18:45
mbreslin left18:45
Mez left18:45
KBme left18:45
arex\ left18:45
schlumpi_ left18:45
BinGOs left18:45
ryland left18:45
burzum left18:45
cespare left18:45
tizzo-afk left18:45
no_maam_ joined18:45
opus__opus18:45
Zenopus_Zenopus18:45
rapha i slightly changed the location (just the path bit) of my origin repository to which I push ... can I just change it in the working copy's .git/config or do you need to do more than that?18:46
barrbrain_barrbrain18:46
tg`tg18:46
ivan\_ivan\18:46
arex\ joined18:46
cbreak rapha: man git-remote set-url18:46
gitinfo rapha: the git-remote manpage is available at http://git-scm.com/docs/git-remote.html18:46
m1sc rapha: either using set-url (man git-remote) or by hand, yes18:46
gitinfo rapha: the git-remote manpage is available at http://git-scm.com/docs/git-remote.html18:46
hpa_ joined18:46
magcius left18:48
ArchDeacon left18:49
Sym3tri joined18:50
magcius joined18:51
AaronMT joined18:51
sq-one joined18:51
blast_hardcheese left18:51
cespare joined18:51
AaronMT left18:51
babilen joined18:51
jiunec left18:52
jiunec joined18:52
jiuneccenuij18:53
markatto joined18:53
rking joined18:53
berserkr joined18:54
dc5ala left18:55
chester_1 joined18:55
hexa2k9- left18:56
_iron joined18:57
hexa2k9 joined18:57
intransit left18:57
chester_ left18:58
cakehero left18:59
bogwonch joined18:59
mklappstuhl left18:59
gigamonkey left19:00
TML joined19:01
mikewintermute joined19:02
jkremser_ left19:02
ro0 joined19:02
timthelion joined19:03
thirdknife left19:06
cmullican joined19:07
blast_hardcheese joined19:07
rapha cbreak: m1sc: thanks, worked like a charm! :)19:08
ReekenX joined19:11
martinjlowm joined19:11
ipalaus joined19:11
Sky[x] left19:12
Eridius left19:13
jceb__ joined19:14
joephelius left19:14
dv310p3r left19:15
joephelius joined19:15
mikewintermute left19:16
pandeiro joined19:16
shawngo left19:16
palm_vue left19:20
bizhanMona left19:20
Lgb left19:20
jceb__ left19:21
tatsuya_o joined19:21
Nibato left19:22
cwang left19:22
Lgb joined19:23
palm_vue joined19:23
tjholowaychuk joined19:23
ph^ left19:23
bizhanMona joined19:23
rcu joined19:24
Nibato joined19:25
fisted left19:26
Khisanth left19:26
Sigma left19:27
ph^ joined19:27
fisted joined19:27
john_anderson joined19:29
TheLZA left19:29
marthinal left19:29
mikemol So, I've got a folder which contains three files, A, B and C. I've modified B. I need to remove A and C (and commit their removal) before I commit B.19:30
rgsteele left19:31
bogwonch left19:31
Tommy[D] man git-stash19:32
gitinfo the git-stash manpage is available at http://git-scm.com/docs/git-stash.html19:32
mikemol ty19:32
FauxFaux mikemol: You can just do that with git add / git rm...19:32
rapha bye all!19:33
rapha left19:33
mikemol I'll check out git-stash, thanks.19:33
sec_goat joined19:33
gtrak left19:33
ska-fan left19:33
_Vi left19:34
_Vi joined19:34
mikemol FauxFaux: The trouble is that I can't seem to stage the commit for rm A and rm C without staging the modification for B. But as it happens, I just realized I need to regenerate B after I commit the rms for A and C, anyway, and the regenerated B is the sensible thing to commit.19:34
BinGOs_ left19:34
qknight joined19:35
FauxFaux mikemol: git rm /does/ stage the rms?19:35
qknight is a 'git clone remote...' the only thing i can do after 'git reset --hard HEAD'? i just want to get to the state of the remote repo again19:35
snearch left19:35
BinGOs joined19:35
FauxFaux qknight: git reset --hard origin/master # is what you want.19:36
shawngo joined19:36
TheLZA joined19:36
TheLZA left19:36
TheLZA joined19:36
TheLZA left19:36
mikemol FauxFaux: No, but I'm unfamiliar how to stage something without 'git add', and this particular case wouldn't let me 'add' unless I 'add'ed the folder that contained A, B and C, which meant scooping up B.19:36
sec_goat left19:37
TheLZA joined19:37
TheLZA left19:37
FauxFaux git rm /does do git add/.19:37
etcetera left19:37
TheLZA joined19:37
TheLZA left19:37
beneggett joined19:37
archdori joined19:37
Ad0 left19:38
mikemol FauxFaux: Except git status puts "deleted: folder/A" into the "Changes not staged for commit" section.19:38
ijuma joined19:38
Fandekasp left19:38
mikemol Ah, I see what happened.19:38
opus left19:38
agileadam joined19:38
mikemol I must have run a simple 'rm' instead of a 'git rm' at some point.19:39
micah left19:39
ska-fan joined19:39
mikemol git checkout path/file;git rm path/file;git status # shows what I was hoping to see.19:39
canton7 you could just 'git rm path/file' without the preceding checkout19:39
jobin joined19:39
arturaz joined19:40
shreya left19:40
cmn with --cached19:40
nifty_ left19:40
alanmac left19:41
Khisanth joined19:41
TheLZA joined19:43
dv310p3r joined19:43
txdv joined19:44
spiffytech left19:46
Khisanth left19:46
t0rc joined19:48
maestrojed left19:50
Speed joined19:50
aldodelgado left19:51
aldodelgado joined19:51
Chappo left19:51
Chappo joined19:52
etcetera joined19:53
Fangorn_ joined19:53
bogwonch joined19:53
etcetera left19:54
aldodelgado left19:57
aldodelgado joined19:57
lresende left19:57
lresende_ joined19:57
flijten left19:57
fayimora left19:58
aaronj_ joined19:58
Khisanth joined20:00
heinrich5991 joined20:02
bubbles10101 left20:02
longbeach left20:02
joephelius left20:03
graphitemaster left20:03
tatsuya_o left20:04
Bosox20051 joined20:04
aaronj_ left20:05
tatsuya_o joined20:05
aaronj joined20:06
fayimora joined20:06
opus joined20:07
paolooo left20:07
aaronj I'm trying to use git to streamline development with wordpress and having trouble with rebasing and/or merging local customizations with new versions from the origin repo20:08
bubbles10101 joined20:08
aaronj https://gist.github.com/3363167 is an example of what I'm trying20:08
I don't understand why I'm getting merge errors or why a rebase would need to merge since I'm not actually modifying any files on my branch, just adding new ones20:09
ReekenX left20:09
chrisgeorge left20:10
PerlJam aaronj: I think perhaps you want "git merge -s theirs mysite-3.3.1"20:11
specialGuest joined20:12
specialGuest left20:12
specialGuest joined20:12
aaronj PerlJam: I'll have a look at -s, thanks20:12
rtjure joined20:12
etcetera joined20:12
imachuchu umm, at least according to mine, there isn't a "theirs" strategy (with good reason really)20:12
chrisgeorge joined20:12
imachuchu there is a "-x theirs" but that can be completely different and so should be read up on20:13
flavius left20:13
civilordergone joined20:13
jast plus it's actually -Xtheirs ;)20:14
civilordergone hey, i'm trying to find a script that allows a commit / push to a master branch to deploy to a particular directory20:14
imachuchu yes, it's -X not -x20:14
aaronj theirs isn't an option for me, I must have an older version of git20:15
jast -X is tricky anyway20:16
iamjarvo left20:16
artnez left20:16
imachuchu aaronj: try this (assuming the link you posted) "git pull origin", "git checkout -b rebaseBranch <whateverYourWorkBranchIsNamed>", "git rebase master"20:16
artnez joined20:16
aaronj would it be easier to just make a patch on my branch and apply it on a new branch i make based on the new version?20:17
pmdarrow left20:17
aaronj imachuchu: I don't want to rebase to master, but to a specific tagged version20:18
imachuchu and "-s theirs" would render your history moot (the "ours" option really shouldn't be used that often, it's for blowing away useless obsolete branches)20:18
aaronj imachuchu: unless I'm missunderstanding what rebase master does20:18
basically, I just have like two new directories (submodules) + a couple new files, no actual modifications of the source tree apart from those additions20:18
arturaz left20:19
aaronj I just want a simple way to keep those changes but update everything else to the next tagged release20:19
vervic joined20:19
HyperNerdV2 left20:20
imachuchu aaronj: actually try the rebase listed above, it might actually be exactly what you want20:20
aaronj imachuchu: will do20:20
imachuchu aaronj: a rebase (like this one at least) takes your changes and reapplies them to the new root20:20
aaronj imachuchu: actually, isn't that the same as what I posted the last three lines on my link?20:21
imachuchu: see last three lines on https://gist.github.com/336316720:21
hellopat joined20:21
AaronMT joined20:21
imachuchu aaronj: nope, you are trying to rebase ontop of your branch instead of the new master20:21
aaronj: "git rebase mysite-3.3.1" instead of "git rebase master"20:22
aaronj imachuchu: if I rebase to a new master, and I then checkout a tag 3.4.1, it won't have the stuff I added to master, correct?20:22
imachuchu aaronj: though make sure the new branch (before rebase) = your development branch20:22
NfNitLoo`NfNitLoop20:22
skorgon left20:22
aldodelgado left20:22
imachuchu aaronj: before I say anything incorrect, are you changing master or is it a mirror of the upstream?20:23
aaronj the thing is, I don't want to keep up with master, that's an unstable place, I want to use a versioned tag20:23
imachuchu aaronj: changing = applying your commits to20:23
corburn left20:23
imachuchu aaronj: ahh, then "git rebase <whateverYouLike>" where whateverYouLike can be a tag20:23
aaronj I'm not touching master, I checkout tag 3.3.1, in my example, then make a new branch git checkout -b mysite-3.3.120:24
hmmm20:25
imachuchu aaronj: ok then "git pull", "git checkout -b mergeBranch mysite-3.3.1", "git rebase 3.3.1"20:25
intransit joined20:25
imachuchu aaronj: that should make mergeBranch = your changes applied ontop of tag 3.3.120:25
aaronj ok, I see20:26
lemme try that20:26
fly9 left20:27
imachuchu aaronj: rebase is (IMO) the most useful command in git (well it and cherry-pick, which it is built out of). It's what seperates it from the savages (i.e. bazaar, mercurial)20:28
aaronj: ooh, and !rewrite if it applies20:28
gitinfo aaronj: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config)20:28
fayimora left20:29
Chappo left20:29
imachuchu aaronj: (if somebody else interacts with this repo you can be changing shared history, which everyone then needs to go back and tell git to accept)20:29
Chappo joined20:30
ashirus joined20:30
skyf left20:30
Geralt left20:31
rcu left20:31
rcu joined20:33
shreya joined20:34
_Vi left20:34
aaronj imachuchu: fail: https://gist.github.com/336337220:35
_Vi joined20:35
Harzilein joined20:35
Harzilein left20:35
Harzilein joined20:35
Harzilein left20:35
aaronj imachuchu: those are the exact steps I took so should be easy to reproduce20:35
Harzilein joined20:35
Harzilein left20:35
Harzilein joined20:35
Harzilein left20:35
Harzilein joined20:35
Harzilein left20:35
_iron left20:35
Harzilein joined20:35
Harzilein left20:35
specialGuest left20:35
archdori left20:37
ChadStudmuffin left20:37
TheLZA left20:37
joephelius joined20:38
GNUcifer left20:38
imachuchu aaronj: just for shiggles, what does a "git status" show as the conflicting file/files?20:39
Sky[x] joined20:39
aaronj imachuchu: common.js and script-loader.js20:39
imachuchu: full output of git status: https://gist.github.com/336342020:40
TheLZA joined20:40
TheLZA left20:40
aspotashev joined20:40
TheLZA joined20:40
TheLZA left20:40
Eridius joined20:41
imachuchu aaronj: and you didn't change them at all (I don't know WP at all, does it automatically modify them when you run it or something)? Either way give me a sec20:41
aaronj would it just be easier for me to create a patch against 3.3.1, then checkout 3.4.1 and apply that patch?20:41
imachuchu aaronj: yes/no because then you lose your history (if you've made 5 commits it will now only show 1)20:42
aaronj imachuchu: haven't touched any files, I did the exact commands here: https://gist.github.com/336337220:42
ahh, yea that's not ideal20:42
mritz_ joined20:42
sq-one left20:42
cillybabe joined20:43
aaronj imachuchu: wp isn't running off this repo, it's just a sandbox in my homedir20:43
russt joined20:44
opus left20:44
TheLZA joined20:44
TheLZA left20:44
imachuchu aaronj: ooooh! !float I bet is what's causing this20:44
gitinfo aaronj: If you have made a change in your working directory and have NOT YET COMMITTED, you may "float" that change over to another (`git checkout oldbranch`) or new (`git checkout -b newbranch`) branch and commit it there. If the files you changed differ between branches, the checkout will fail. In that case, `git stash` then checkout, and `git stash apply` and go through normal conflict resolution.20:44
jonshea left20:44
aaronj imachuchu: I don't see how since I've committed everything20:45
jonshea joined20:45
Anubisss_ left20:45
aaronj imachuchu: see: https://gist.github.com/336337220:45
don't want to flood the channel with commands20:45
Anubisss joined20:45
yoklov left20:45
imachuchu aaronj: yeah maybe not, whatever, replace "git rebase" with "git cherry-pick <firstCommitThatYouChanged>..<lastCommitYouChanged>"20:46
aaronj: crude, but that would still conflict20:46
nor5trom joined20:47
imachuchu aaronj: "git cherry-pick -X theirs <firstCommitThatYouChanged>..<lastCommitYouChanged>"20:47
cillybabecilly20:47
hellopat left20:48
robottinosino joined20:48
aaronj imachuchu: there's only one commit, so just the hash of that then as it appears in git log?20:49
can't I do 3.3.1..mysite-3.3.1 ?20:49
those should be pointers to those hashes, right?20:49
imachuchu aaronj: yeah should be (i've always done subranges but yeah)20:50
Lulzon joined20:50
imachuchu aaronj: what it's saying though is that one of your commits changes the common.js and the script-loader.php file and that it can't easily reconsile the differences20:51
aaronj imachuchu: https://gist.github.com/336354320:51
FreeArtMan left20:51
aaronj imachuchu: that's impossible20:51
imachuchu aaronj: so somehow you are commiting changes to those two files (why I dislike the "commit -a" option)20:51
aaronj hmmm20:52
what does -a do?20:52
none of my commits are changing anything, all I do is add an empty file20:52
imachuchu aaronj: "commit all tracked files that are different from the tracked ones in the repo"20:52
aaronj: try again, this time with "git add newfile.txt" and """git commit -m "Adding a file" """20:53
aaronj k20:53
AaronMT left20:54
Sigma joined20:54
Sigma left20:54
Sigma joined20:54
linoj left20:54
freeed left20:54
aaronj imachuchu: the git rebase 3.4.120:55
imachuchu: failed, same merge errors20:55
lirt left20:55
aaronj I can't do the chrry pick because I don't have 'theirs'20:55
Chappo left20:55
hpa_hpa20:55
GNUcifer joined20:56
imachuchu aaronj: the test should work just fine (clone; checkout; add; commit; checkout -b; rebase)20:56
aaronj git clone https://github.com/WordPress/WordPress.git && cd WordPress && git checkout 3.3.1 && git checkout -b mysite-3.3.1 && touch newfile.txt && git add newfile.txt && git commit -m "Adding a file" && git checkout -b mysite-3.3.1--3.4.1-rebase && git rebase 3.4.120:56
artem joined20:56
lirt joined20:56
aaronj imachuchu: can you try running the above?20:56
imachuchu: see if you get a merge error?20:56
imachuchu aaronj: give me a sec to boot up a vm20:56
rwestphal left20:56
Chappo joined20:57
aaronj imachuchu++20:57
chuckhar_ left20:57
ology joined20:57
lirt left20:57
opus joined20:57
markatto left20:58
imachuchu aaronj: (and it will be a bit, this comps a bit of a clunker)20:58
msmithng left20:58
aaronj heh20:58
artnez left20:58
lirt joined20:58
jsec joined20:58
jsecGuest2707420:58
Vile joined20:58
aaronj I wonder if there's something funky about the WP git repo20:58
macer1 left20:59
lirt left20:59
cirenyc joined20:59
aaronj it's synced via SVN every 15 minutes, would that make a difference?20:59
chrisgeorge left21:00
imachuchu aaronj: I know nothing about how their repo is set up21:00
lirt joined21:00
keystr0k joined21:00
chrisgeorge joined21:00
markatto joined21:01
lirt left21:01
leila_ joined21:01
lirt joined21:02
lirt left21:03
Dimitr|2 joined21:03
joephelius left21:03
gfontenot left21:03
lirt joined21:03
agileadam left21:04
keystr0kagileadam21:04
architektarchitekt_21:04
lirt left21:04
nor5trom left21:05
tjholowaychuk left21:05
lirt joined21:05
architekt_architekt21:05
lirt left21:06
specialGuest joined21:06
specialGuest left21:06
specialGuest joined21:06
chester_1 left21:06
LekeFly left21:07
lirt joined21:07
pdtpatrick left21:07
aaronj anyone else have cycles to help troubleshoot this? Is there a better way of managing local customizations of an upstream repository, and merging periodically with upstream version releases? I would think this is a pretty common use case for DVCS, no?21:07
cdash004 left21:07
Sigma left21:07
lirt left21:08
lirt joined21:09
lirt left21:09
robbyoconnor joined21:10
imachuchu aaronj: yeah, ok, that repo looks like crap21:10
lirt joined21:10
aaronj imachuchu: :(21:11
phishy left21:11
lirt left21:11
bogwonch1 joined21:12
imachuchu the reason for the problems, if I understand it correctly, is that they aren't actually decendents of eachother21:12
aaronj imachuchu: so maybe I should just download each release, unzip it into a git repo i maintain with a tag for each release?21:12
HyperNerdV2 joined21:12
fly9 joined21:12
aaronj imachuchu: and have a branch for my stuff, which I merge in with my own tagged releases?21:12
lirt joined21:12
aaronj lot of extra steps but beats dealing with merge comflicts21:12
imachuchu svn handles branches much differently then git, so git can't see those tags as directly inheriting from eachother = no rebase (but we can still cherry-pick)21:12
opus left21:12
leeN left21:13
imachuchu aaronj: well give me a sec, really there shouldn't be any merge conflicts, just a bit funcky of a command to move the commits21:13
lirt left21:13
bogwonch left21:13
lirt joined21:14
artem left21:14
lirt left21:15
Chappo left21:16
lirt joined21:16
pandeiro left21:16
cirenyc left21:16
imachuchu aaronj: try "git cherry-pick --strategy-option=theirs <beginningCommit>..<endingCommit>", or just "git cherry-pick --strategy-option=theirs <testCommit>"21:16
HyperNerdV2 left21:17
imachuchu aaronj: try commit hashes too instead of a a ref, I'm not sure if it might think of them as their whole history (I haven't tested)21:17
lirt left21:17
matled joined21:17
matled how can I check if a certain commit is an ancestor of another commit (for a script)?21:17
lirt joined21:18
oojacobooichi21:18
thinice joined21:18
afuentes left21:18
aaronj imachuchu: I think I got it working with cherry-pick21:18
ichioojacoboo21:18
lirt left21:18
lirt joined21:19
aaronj imachuchu: https://gist.github.com/336376721:20
andrewhl left21:20
aaronj imachuchu: I think it gives me an upgrade path from 3.4.1 while preserving the updates I made previously21:20
olaf_ joined21:21
matled ah, git rev-list A --not B should work21:21
aaronj imachuchu: but honestly, why is it this hard? :)21:21
lirt left21:21
lirt joined21:22
j416 left21:23
mike007 joined21:23
lirt left21:23
lirt joined21:24
ashirus left21:24
joephelius joined21:24
bgerber left21:24
lirt left21:25
lirt joined21:25
victor` joined21:26
lirt left21:26
imachuchu aaronj: because git uses the history between commits to figure out how the underlying code has changed21:27
lirt joined21:27
rcu left21:28
imachuchu aaronj: it makes merges in git much easier/faster/simpler then those in SVN. The catch is it needs to know how the code has been changed, i.e. the lineage between the two points (even if they split in the past)21:28
lirt left21:28
bgerber joined21:28
aaronj imachuchu: thx for your help21:29
imachuchu aaronj: since this repo is *really* bad (you can go take a look at it, there are many dead branches in the past that don't merge anywhere) git's confused on how to reconsile the differences21:29
olaf_ left21:29
imachuchu aaronj: np, just remember that command, or more precisely "I am taking these commits one by one, reapplying them over here, and taking the bases changes wherever they conflict (which should be never)"21:30
aaronj: I guess "bases changes" should be "bases code"21:30
Guest57735 left21:30
hoschi left21:31
rtjure left21:31
agileadam left21:31
ashirus joined21:31
qknight FauxFaux: thanks21:32
sjefen6 joined21:32
rehat left21:32
api left21:33
aaronj imachuchu: *nod*21:33
_Vi left21:35
_Vi joined21:35
tplaner_ left21:36
nwest left21:37
eijk_ left21:38
martinjlowm left21:40
pdtpatrick joined21:40
mh` can anyone confirm if 'github for mac' (the gui thing) respects local repository hooks?21:42
don't have a mac to test on..21:42
juvenal left21:43
Chappo joined21:43
cmn it shells out for most thing21:43
w41 joined21:44
luxurymode left21:44
mh` ok, so it should be fine i presume21:44
not doing anything tricky.. just concerned with pre-commit mostly21:44
Element9 left21:44
yoklov joined21:46
w41_ left21:46
john2496 left21:47
rehat joined21:48
marhaban joined21:48
m1sc aaronj: why the second feature branch?21:48
shreya left21:48
Guest5287 left21:49
madewokherd joined21:49
MrRoot left21:49
amcsi joined21:49
m1sc aaronj: it looks like you're terribly mixing up things21:49
kcj joined21:50
AaronMT joined21:51
maestrojed joined21:51
ChadStudmuffin joined21:51
opus joined21:51
webguynow left21:52
diminoten joined21:56
shawngo left21:58
FernandoBasso joined22:00
alegen joined22:01
alanp_ joined22:01
dfr|mac joined22:01
alanp left22:01
schemula joined22:01
oakdog8oakdog8_22:02
victor` left22:02
gfontenot joined22:03
TheLZA joined22:04
TheLZA left22:04
ashirus left22:04
TheLZA joined22:04
TheLZA left22:04
sh0ne left22:04
drizzd_ left22:07
graphitemaster joined22:07
timthelion left22:07
v0n left22:08
Eridius left22:08
gdmfsob left22:08
mattalexx I feel like I'm going crazy. I just pushed a branch to github and it's not there!22:08
I've triple checked that I'm pushing to the correct remote22:08
pantsman left22:08
revagomes left22:09
m1sc mattalexx: what's git ls-remote telling you?22:09
cmn and that you're pushing the right branch?22:09
maestrojed left22:09
gfontenot looks like github has a backlog right now22:10
https://status.github.com22:10
ddelrio1986 left22:10
gfontenot saw someone mentioning it on twitter, too22:10
mattalexx m1sc, The branch is in `git ls-remote`22:11
gfontenot, Thanks22:11
dfr|mac_ joined22:11
mattalexx cmn, Yup22:11
cmn then it's just the webpage being slow22:12
civilordergone left22:12
civilordergone joined22:12
TheLZA joined22:12
TheLZA left22:12
TheLZA joined22:13
TheLZA left22:13
TheLZA joined22:13
TheLZA left22:13
dfr|mac left22:14
kfogel joined22:15
kfogel left22:15
ShadeTornado left22:15
PatF joined22:16
gigamonkey joined22:16
HyperNerdV2 joined22:16
tinti_ joined22:16
yoklov left22:18
alexisabril left22:19
Destos left22:19
kanru_ left22:19
PatF left22:21
v0n joined22:21
marhaban left22:23
SkAzZ joined22:24
giallu joined22:24
bogwonch1 left22:25
bogwonch joined22:25
luke-jr_Luke-Jr22:26
specialGuest left22:27
etcetera left22:27
SkAzZ1 joined22:27
macabre left22:28
lustucru_ joined22:28
dv310p3r left22:28
v0n left22:28
specialGuest joined22:29
nglorioso joined22:29
tatsuya_o left22:29
Anubisss_ joined22:29
SkAzZ left22:29
lustucru left22:29
etcetera joined22:30
gordian joined22:30
bogwonch left22:30
Anubisss__ joined22:30
gitinfo set mode: +v22:30
gigamonkey left22:32
Anubisss left22:32
mmc1 joined22:33
quotemstr joined22:34
Anubisss_ left22:34
quotemstr Say I have a remote tracking branch trunk/master, but no local branch that tracks it. If I checkout trunk/master, I get into detached head mode. How do I create a local branch that tracks trunk/head?22:34
FauxFaux git checkout -t -b foo trunk/master, or, if "master" is unambigious, git checkout master.22:35
kanru_ joined22:35
quotemstr Thanks.22:36
ashirus joined22:36
TeckniX left22:36
jagginess joined22:38
raykyri joined22:38
lustucru_ left22:38
jagginess howdy22:39
Purveyor left22:39
cannonball left22:39
jagginess can someone explain to me what "subversion bridging command" does? < does this imply git<->git, I'm interested in cloning a local git22:41
mike007 left22:41
cmn why would a subversion bridge imply git-to-git? what are you trying to do?22:42
lustucru joined22:43
Carsekyx joined22:43
quotemstr cmn: I think he means round-trip.22:43
Synthead left22:43
arietis left22:44
artnez joined22:45
jagginess I'm reading section 8.1.1 of the noobie manual i downloaded from the git site22:45
"The base command in Git for all the Subversion bridging commands is git svn."22:45
dsirijus joined22:45
jagginess thought a local git can be made to replicate/clone to a remote one..22:45
Orbitrix left22:45
cmn the guide probably doesn't say "local git"22:46
jagginess nmind i found it..22:46
cmn do you want to grab info from a subversion repo or a git one?22:46
jagginess left22:46
specialGuest left22:47
specialGuest joined22:47
tqmz left22:47
dzonder left22:48
amalloy joined22:49
amalloy can i customize the initial/template contents of COMMIT_EDITMSG? i'd like another blank line before the "hints" at the bottom22:50
btanaka joined22:50
v0n joined22:52
simesy joined22:53
hwrd|work left22:54
lacrymology left22:54
SegFaultAX left22:55
artem joined22:56
Carsekyx left22:56
jey joined22:56
bogwonch joined22:56
tinti_ left22:56
tinti_ joined22:56
jey after I do a subtree merge, how can I see the full history for files that are in the merged subtree? by default I only see the merge commit when I do "git log -- subtree/filename"22:56
dfr|mac_ left22:57
HyperNerdV2 left22:57
mbreslin joined22:57
axl_ left22:57
gordian anyone have experience using git with Magento?22:58
mritz_ left22:58
FauxFaux !anyone22:58
Lord_DeathMatch joined22:58
jey if I add "--follow" it gets worse -- I see no output. If I try "--full-history" I get the same output as when I omit it22:58
(i.e. only see the merge commit)22:58
lupo7 left22:59
FauxFaux jey: git log -M -C #?22:59
artnez left23:00
jey no luck. I'm starting to wonder whether I screwed up the merge commit in some way23:00
artem left23:00
nglorioso left23:00
jey s/merge commit/subtree merge/23:00
artnez joined23:00
savid left23:00
tweedledumber left23:01
Destos joined23:01
tinti left23:02
SegFaultAX joined23:03
opus left23:03
krazyj hey everyone… i'm looking for a workflow where my commits that are made in between github pushes are saved to a remote server… then, when I'm ready to push for github, i can squash it all and push to github23:03
thinice left23:03
krazyj any ideas how that would be architected?23:03
berserkr left23:04
gitinfo joined23:05
ChanServ set mode: +o23:05
bogwonch left23:05
imachuchu krazyj: have an external mirror server (for backup purposes) then push to github as normal?23:06
krazyj imachuchu: yeah23:06
v0n left23:06
krazyj and, preferably, squash all the commits, when pushing to github23:06
nglorioso joined23:07
FauxFaux You can just maintain a branch which you push to github from that you just merge --squash your real branch into.23:07
Or just dirtymerge it with commit-tree. </a FauxFaux exclusive solution>23:07
amalloy left23:07
imachuchu krazyj: rebase -i23:07
sinful_ left23:08
buhman left23:09
jjbohn left23:10
ehsan left23:10
stkrzysiak left23:11
zastern left23:13
SeoZ-work[AWAY]SeoZ23:14
robottinosino left23:14
Fernando1asso joined23:15
FernandoBasso left23:15
darren__ left23:15
chrisgeorge left23:16
raykyri left23:17
chrisdev left23:17
giallu left23:18
jjang joined23:19
v0n joined23:19
lresende_ left23:20
jjang_ joined23:22
eletuchy joined23:22
xrq left23:22
jjang left23:22
Anders_J joined23:25
Sky[x] left23:25
Jay_Levitt joined23:26
mmc1 left23:28
flaguy48 left23:28
sitaram joined23:28
leila_ left23:29
Esa joined23:30
fly9 left23:30
Textmode left23:31
SirCmpwn left23:31
iliketurtles joined23:31
etcetera left23:31
vervic left23:32
beneggett left23:33
opus joined23:34
Jay_Levitt left23:34
gordian left23:36
jh3 left23:36
toky joined23:36
toky hello23:36
gitinfo toky: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.23:36
toky Is there how-to somewhere to install git on a new centos ami?23:37
BiggFREE joined23:37
toky i do not mean create a git repo23:37
yoklov joined23:38
HyperNerdV2 joined23:38
gavin_huang left23:38
cmn what's wrong with yum install git?23:38
toky not sure if im asking the right question...23:39
we have git account and need to standup our git server (new one)23:39
cwang joined23:39
cmn a git account meaning what?23:39
git doesn't deal with accounts23:39
toky i've been given access to some kind of gihub blessed AMI in which im supposed to install a ghp package23:40
cmn then you'll want to ask github23:40
EugeneKay Github enterprise? You'll need to talk to their suppor.23:40
toky there is no one here from github?23:40
jobin left23:40
EugeneKay No. We deal with the open source git.23:41
thiago they usually are in #github23:41
milki github doesnt use irc as an official support channel23:41
cmn github is off-topic here, this is git23:41
specialGuest left23:41
imachuchu git and github are two seperate things23:41
EugeneKay #github is usually not staffed by any githubbers proper; just users.23:41
imachuchu but I think there is a github channel23:41
cmn you can try #github or sending them an e-mail23:41
EugeneKay Contact support.23:41
dzan left23:41
cmn they probably have documentation on this, though23:41
SyouJyoA joined23:41
imachuchu toky: sorry, it's just a lot/most of us don't have expieriance with github, just the use of the software git23:42
thelazydeveloper left23:42
ninegrid left23:42
toky i thought more ppl would have setup the enterprise one...23:43
cakehero joined23:43
Psycho_pr1 left23:43
boombatower_ joined23:43
Psycho_pr joined23:43
thursday joined23:43
thiago doesn't even have an account on github23:43
dzan joined23:43
toky i'll keep dissecting their AMI...I just hoped someone would've done it before23:43
thiago much less enterprise23:43
imachuchu toky: it's not an issue of enterprise or consumer, it's that (for me at least) I've never really used github23:44
thiago I don't even know what you mean by AMI23:44
thiago is thinking of whoami23:44
jey where does the stdout of git commands go? I'm looking at the source code to apenwarr's git-subtree.sh, and it has "echo" commands that I don't see on my screen23:44
rehat left23:45
thiago jey: usually, stdout goes to stdout23:45
are you sure the echoes were executed?23:45
toky thiago: an AWS AMI23:45
zackiv31 left23:45
thiago toky: Amazon Web Service?23:46
Destos left23:46
toky yes23:46
thiago well, I know AWS. I have no idea what AMI is.23:46
leila_ joined23:46
metcalfc joined23:46
etcetera joined23:46
toky thiago: AMIs are pretty basic part of AWS23:47
boombatower_ left23:47
Destos joined23:48
Fangorn__ joined23:48
Fangorn_ left23:49
cmn thiago: it's a pre-build VM image23:50
pre-built23:50
Textmode joined23:51
thursday left23:52
imachuchu left23:55
MrRoot joined23:56
eltigre joined23:56
gusnan left23:57
eltigre hey, I need some help. I tried to setup a ssh key for github, but git is still asking me for my username and password when interacting with the remote repository23:58
any ideas?23:58
and ssh [email@hidden.address] correctly identifies me23:59

Logs Search ←Prev date Next date→ Channels Documentation