IRCloggy #git 2010-10-28

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.

2010-10-28

blarson joined00:01
antivigilante joined00:01
MetaCosm_ joined00:02
hakunin left00:03
noktoborus_ joined00:03
whaley joined00:03
pgib left00:03
airborn joined00:04
blarson left00:04
airborn left00:05
friskd left00:07
NEOhidra left00:08
parasti left00:08
ka1ser left00:09
_Vi joined00:11
Uierth_ joined00:12
ajpiano left00:13
Uierth left00:15
jelmer left00:16
jelmer joined00:17
artefon left00:18
rbarraud joined00:18
QinGW joined00:18
Yuuhi left00:20
xiong joined00:20
QinGW1 joined00:20
QinGW left00:22
QinGW joined00:22
bousquet left00:24
QinGW1 left00:25
rbarraud left00:25
ehabkost left00:25
scarabx joined00:25
coderdad joined00:26
mithridates joined00:26
xrogaan joined00:27
p3rg2z left00:27
Evious left00:27
rbarraud joined00:27
p3rg2z joined00:27
mithridates I deleted a branch, added to stage and committed and then pushed everything but I don't know why it is still in the branch list (on website) but in my git branch it doesn't show it anymore00:28
AAA_awright mithridates: Unless the remote is a --mirror you have to explicitly delete the branch I think00:30
git push (remote) local:remote, or to delete, simply git push (remote) local: iirc00:30
mithridates AAA_awright: explain more please00:30
AAA_awright mithridates: Did you take a look at the git-push man page?00:31
mithridates yes, but let me see again . you said --mirror?00:31
tty2 joined00:32
mithridates AAA_awright: I got ya , thank you00:32
AAA_awright mithridates: If that's your public repository you probably want mirror = true set, check your configuration00:33
markt left00:33
mithridates AAA_awright: yes it's my public repository, ok tnx buddy00:33
AAA_awright That's how mine is setup, at least00:34
tjholowaychuk left00:34
peterjmag left00:36
envi left00:36
p3rg2z left00:37
bronson_ joined00:38
wsclock left00:41
mithridates AAA_awright: mirror = true worked! thank you , I'm wondering is it normal that git log --graph doesn't show branches with dash like what progit.org shows ?00:45
archcoder left00:45
AAA_awright No clue about git log anything00:46
xiangfu joined00:46
AAA_awright The man page is the first thing I go to before passing any arguments to got log00:46
mithridates AAA_awright: I did that, the problem is that the output that I get is different from what man page shows or progit.org shows00:47
BiggFREE joined00:47
justin-george left00:47
AAA_awright Describe how it's different then00:48
rayners joined00:48
mithridates AAA_awright: the dashes in the beginning of each line that shows merged branches or different branches are not in my output00:49
for me it just shows one flat | charachter in the beginning of each line and it doesn't represent merged branches00:50
Heimidal joined00:50
mithridates not just merged, even it doesn't represent different branches, everything is flat in one order00:50
timH joined00:51
t0rc left00:51
timH can someone help a git noob?00:52
i've got Git from the bottom up and I'm trying to learn but I also want to be productive at the same time00:52
so I can't just drop everything (unless I can't find help)00:52
mithridates AAA_awright: do I upload the out put?00:52
AAA_awright mithridates: Try git log --graph --all00:53
mithridates AAA_awright: same result00:53
AAA_awright Are you sure you have merged branches to graph?00:53
er, merge commits?00:53
MetaCosm_ left00:54
leitao left00:54
mithridates AAA_awright: yes I am sure00:54
Ilari BTW: Looks like Github is on the list of the sites that Firesheep supports. Be careful. :-)00:55
Eridius Ilari: github's already fixed themselves00:55
Ilari Ah, HTTPS?00:55
Eridius they already use HTTPS for important things. They just now use a secure cookie to verify the non-secure one during HTTPs operations00:56
amerine joined00:56
Eridius http://github.com/blog/737-sidejack-prevention00:56
Ilari Ah, that's one way to do it... Require verification for sensitive operations.00:56
bitkiller left00:57
Slix` joined00:57
spearce left00:57
mithridates AAA_awright: http://paste.org/pastebin/view/2410800:58
alvaro_o left00:59
mithridates AAA_awright: the output is totally different from what it is in websites or manuals00:59
AAA_awright mithridates: I don't see any merges in that log00:59
Ilari Does it also support repo.or.cz (even if the connection I'm using is wired)?00:59
AAA_awright It looks like a linear history00:59
RobertLaptop left00:59
mithridates AAA_awright: but it is merged, "To see which branches are already merged into the branch you’re on, you can run git branch --merged"01:00
xxoxx joined01:00
mithridates AAA_awright: the first line shows it "$ git branch -v"01:00
AAA_awright mithridates: They both point to the same commit though01:00
It looks like01:00
mithridates AAA_awright: sorry the second command git branch --merge01:01
timH i need to merge one branch into another but when I clone the master and run "git branch" it only shows master01:01
AAA_awright mithridates: Try git log --graph --parents --all01:01
timH how do I get that other branch?01:01
tungtn joined01:01
rbarraud left01:02
Amorphous left01:02
mithridates AAA_awright: result is flat again, the only thing that is changed is hash ( it's longer now )01:02
phantomcircuit_ joined01:02
AAA_awright mithridates: Merges will show three hashes, the first is the commit SHA1, the next is the parents. Merges will have two or more parents.01:03
JEEBcz joined01:04
converge joined01:04
Yuffster joined01:04
phantomcircuit left01:04
JEEB__ joined01:06
mithridates AAA_awright: $ git log --pretty=format:"%h %s" --graph this command has this out put for me http://paste.org/pastebin/view/2410901:06
zain left01:06
SimonP86 left01:06
mithridates AAA_awright: shouldn't be like this http://progit.org/book/ch2-5.html ?01:06
rbarraud joined01:07
AAA_awright mithridates: Yours will look like that if it's a linear history without any merge commits01:07
mithridates that's not a linear history! is that a linear history?01:08
towski left01:08
JEEB left01:08
AAA_awright mithridates: Run git log --parents, how many commits do you have with multiple parents?01:08
timH so I just needed to pull the other branch into master01:09
JEEBcz left01:09
aaron01 joined01:09
converge i have a project with more than 200 files, to push it to a remote repository, do i need do git add filename and git commit for every single file, or have another method?01:10
mithridates AAA_awright: 8 commit with multiple parents01:10
Entonian left01:10
mithridates converge: I guess you can use git commit -a -m "commit note"01:10
converge mithridates, i dont need to do git add before?01:11
aaron01 If I want to backup a repository and maintain the remote tracking, what is the best way to do this? seems like clone --mirror isn't maintaining remotes01:11
mithro joined01:11
mithridates converge: -a will do that for you01:11
AAA_awright mithridates: Can you paste that?01:11
converge mithridates, cool, tks! =)01:11
mithridates converge: yw01:12
AAA_awright: yes sure01:12
kanru joined01:12
converge left01:13
converge joined01:13
mithridates AAA_awright: http://paste.org/pastebin/view/2411001:13
RobertLaptop joined01:13
AAA_awright mithridates: Those all have a single parent, it's a linear history01:13
rbarraud left01:14
mithridates AAA_awright: how did you recognize it? because there is just one hash?01:14
Adaptee joined01:14
tangyin joined01:14
AAA_awright Yeah. A merge commit has more than two parents, by definition.01:14
Eridius no, it has two or more01:14
zain joined01:14
AAA_awright *two or more01:14
More than one parent01:14
alberto56 left01:15
mithridates ok let me commit something, now I've merged them so if I commit something that commit will have more than one parent and no matter in what branch I commit it01:15
is that right?01:15
AAA_awright mithridates: Thing about refs, including branches and tags, is they are only pointers to a particular commit01:16
Amorphous joined01:16
Amorphous left01:16
Amorphous joined01:16
mithridates AAA_awright: would you ask it in another way, I don't understand it01:17
Eridius mithridates: commits are made independent of the knowledge of what HEAD is pointing to01:17
mithridates I got it01:18
converge mithridates, sorry i closed the windows "sem querer", the command is git -a -s 'comment' ?01:18
AAA_awright mithridates: Both of your branches point to the same commit, there is no diversion anywhere on the line that would produce a pretty grap01:18
*graph01:18
With connecting lines01:18
mithridates converge: git commit -a -m "comment" # check manual for git commit01:19
AAA_awright: it's getting more clear now01:20
intripoon left01:20
Heimidal left01:20
phantomcircuit_ left01:20
AAA_awright mithridates: A branch is literally a 41-byte file in .git01:21
mithridates so how can I make a commit with multiple parents?01:21
phantomcircuit joined01:21
AAA_awright mithridates: Check out cat .git/refs/heads/master01:21
mithridates there is a SHA1 hash code01:21
93fdd76781e04df500e4f8b65c9e777eed10e6e801:21
Slix` left01:22
AAA_awright That's the branch. When you make a commit, it's going to change that to point to the new commit.01:22
mithridates and another one for the other branch01:22
AAA_awright mithridates: use git-merge01:22
mithridates cat .git/refs/heads/new 4975cdbe2d742d18d4deb9539814f6c9994fc76501:22
AAA_awright mithridates: Then try "git log new"01:22
I think01:23
mithridates you mean do I use git merge for commit ? like this "git merge --commit "comment" "?01:23
AAA_awright Something like that, take a look at the man page01:23
Vampire0_ left01:24
mithridates AAA_awright: ok ok01:24
tnx buddy for the time that you spend01:24
Slix` joined01:24
slakmagik left01:26
MetaCosm_ joined01:28
spliff joined01:28
coderdad left01:29
_Vi left01:30
MetaCosm left01:30
Pacman_Home` left01:30
spliffdrubies_01:30
Slix` left01:31
Pacman_Home` joined01:31
Slix` joined01:31
nbrochu joined01:32
aspotashev joined01:33
aaron01 So is the only way to make an 'identical' copy of a repo (and refs) to use something outside git (cp/rsync/etc)? Or is there a git way to do this?01:33
shad left01:34
Eridius git clone --mirror perhaps?01:34
aaron01 the remote refs change..01:34
Eridius --mirror maps all refs01:34
SerajewelKS left01:35
SerajewelKS joined01:35
SerajewelKS left01:35
SerajewelKS joined01:35
Leemp left01:35
rson left01:35
aaron01 Hmm. From looking at it (with my limited git knowledge) it looks like the remote refs point to a commit hash, rather than to a remote location after using --mirror01:35
dec left01:36
Eridius remote refs never "point to" a remote location01:36
rson joined01:36
Eridius non-symbolic refs (which in most repos, means all refs except for HEAD) always point to an object (e.g. a hash)01:36
SethRobertson However, it is true that you don't inherit the remotes01:36
aaron01 my wording is off. So "git remote show origin" is different01:36
Eridius true, the new repo only has a single remote, origin, which points back to the source01:36
Leemp joined01:36
coderdad joined01:36
stliu joined01:37
stliu left01:37
stliu joined01:37
Vampire0_ joined01:38
gretch joined01:38
SethRobertson Nor is it possible in the general case to "copy" the remotes even if you wanted to. remotes may be relative01:38
aaron01 That's ok in this case..01:38
SethRobertson Or at least not absolute from your perspective01:38
Eridius aaron01: you could always just do a mirror clone, then copy .git/config from the old into the new repo01:38
SethRobertson And refetch01:39
In any case, `git clone --mirror` will make the data under version control identical. The metadata which is not under version control may be different01:40
converge left01:40
aaron01 Right. My main concern in using something 'outside' git is in case the repo is being changed while it is being copied. But just copying the .git/config seems safe enough01:41
ShooterMG joined01:41
ShooterMG left01:41
aaron01 Thanks Eridius / SethRobertson01:42
SethRobertson Note after copying .git/config you lose the mirror (or any) relationship between the backup and the original source01:42
Eridius aaron01: if you do run into issues with copying .git/config (e.g. if git does an incremental write instead of an atomic one), you may be able to use `git config --list` in the original repo and use that to reconstruct the file in the new01:43
SethRobertson Unless you tell the original about a remote named "original" which is a mirror that points to itself. I would experiment before doing this particular bit of recursive referencing01:43
nakkor left01:43
Eridius actually, belay that. that'll print global and system config values too01:43
although I think you can use the --file switch to limit it to just .git/config01:44
aaron01 The use case for this is that the original repo will either not exist or will be replaced01:44
dec joined01:44
aaron01 So there doesn't need to be any maintained relationship between the mirrored copy and the original01:44
Eridius you may also want to copy over .git/info/exclude and any other important metadata (e.g. grafts), depending on if you care about that stuff01:45
mithridates AAA_awright: I did what you said, but it is still producing same result01:45
verto joined01:45
mithridates graph is not pretty01:46
oh yeah01:46
AAA_awright: :D it is pretty now01:46
patnotz joined01:46
mithridates I added --commit to the git merge <branch>01:47
jelmer left01:47
mithridates yesss, I can see two SHA1 in front of that commit01:48
Eridius mithridates: you realize that --commit is only useful to override an earlier --no-commit flag, right?01:48
AAA_awright Eridius: To override a fast forward01:48
I think01:48
Or is that another option...01:48
mithridates I'm still wonder01:49
Eridius that's --no-ff01:49
AAA_awright Yep01:49
mithridates now what's the difference between this commit that a merge made with a commit that I've made by git commig -a -m "comment"01:49
?01:49
Eridius the merge makes a commit with 2 (or more) parents. `git commit` will only have 1 parent01:50
AAA_awright mithridates: git commit doesn't make merge commits...01:50
mithridates was that commit under the branch01:50
so git commit make a commit just about a new update in a branch01:50
Eridius both `git merge` and `git commit` will update the currently checked-out branch to point to the newly-created commit01:50
mithridates so they are not different? and the last one is the HEAD no matter if it's from git merge or git commit01:51
Eridius: but I did git commit but it didn't make git log --pretty work01:52
I mean it didn't assign two parents to that commit01:53
Eridius mithridates: err yes, like I said, `git commit` doesn't make a merge commit01:53
bronson_ left01:53
Eridius you seem to be conflating making a merge commit with updating the current branch, when those are two completely separate actions01:53
psoo joined01:54
drubies_ left01:54
mithridates Eridius: I got it now, it's so interesting :) thanks a lot Eridius and AAA_awright01:54
M1- joined01:54
RobertMeta joined01:56
checkers joined01:59
checkers hi, how do I show what was changed in an arbitrary past commit?02:00
amerine left02:00
Uierth_ left02:00
Eridius git show $COMMIT02:00
Uierth joined02:01
shad joined02:02
Khisanth left02:02
quesada3 joined02:05
M1- left02:05
verto left02:05
sako joined02:06
quesada2 left02:07
liu joined02:08
frogonwheels joined02:08
Khisanth joined02:09
rossand joined02:10
RobertMeta left02:10
nullvariable joined02:11
merlin83 left02:12
liu left02:14
liu joined02:14
phantomcircuit left02:15
tty2 left02:15
warthog9 left02:20
brntbeer joined02:20
RobertMeta joined02:22
MetaCosm_ left02:25
keystr0k left02:25
alberto56 joined02:27
Heimidal joined02:28
aah left02:28
liu left02:29
warthog9 joined02:32
Bass10 left02:35
vdv what's the difference between "git branch master-copy master" and "git branch master-copy remotes/origin/master"? i.e. i understand that first creates a branch from local master branch, and second from remote one, but which important consequences have both?02:39
andyburke left02:40
Eaven left02:40
kukks left02:41
DrNick the second sets the branch up to track the remote branch02:42
SethRobertson If master has diverged from remotes/origin/master, there will be a difference02:42
aaron01 left02:42
SethRobertson But what DrNick said is also true02:43
vdv then in first case i must always rebase in master-copy after rebasing in master?02:43
aspotashev left02:43
vdv and also in second case git push will upload branch to origin, and that doesn't happen in first case, right?02:45
thedeeno joined02:46
tangyin Eridius: Hello, Eridius.I'm a new one on git and can you tell me if my master branch is ahead of the origin/master, what should I do?02:46
nbrochu left02:47
msieradzki left02:47
SethRobertson vdv: You have to rebase in master-copy either way, either to get the changes from master or from remotes/origin/master02:47
vdv SethRobertson, how behaves git push in both cases?02:48
same?02:48
SethRobertson No, because master-copy is not tracking in the first case (though you could configure it to track) push will not work02:48
Heimidal left02:48
SethRobertson You could merge/rebase to get the changes02:48
Eridius tangyin: if it's ahead of origin/master, that means you have local commits that aren't on the remote repo02:49
tangyin: if you want to update the remote repo to have your commits, you can `git push` them02:49
smsfail left02:49
sebersole left02:49
welly left02:49
vdv SethRobertson, will git push create branch on origin if that branch is not listed in "git branch -a" as remotes/origin/mybranch?02:49
tangyin Eridius: But I want to push some code to origin,so how can I revert the ahead commit?02:50
SethRobertson vdv: Not unless you specifically ask it to, in one of several ways02:50
Elfe left02:50
Elfe_ joined02:50
Unode joined02:50
toddnine left02:51
sh1mmer joined02:51
Eridius tangyin: I'm not sure what you mean. Why would you revert the commit you're about to push?02:51
vdv SethRobertson, bit "git branch remotes/origin/mybranch; git push" will do that, right? (i.e. i'm trying to create a remote branch)02:52
timj_ joined02:52
saurik left02:52
SethRobertson You want to say: `git push origin newbranch`02:53
saurik joined02:53
kadoban left02:53
tangyin Eridius: I don't want to push these ahead commit, I just want to revert them.02:54
SethRobertson vdv: That will not establish a tracking relationship, of course. You can do that separately02:54
tangyin: I think you are using "ahead commit" in a way we do not understand02:54
tangyin: Are you trying to say you have several commits that have not been pushed, but you only want to push *one* (the last?) of those commits?02:55
Eridius tangyin: you want to throw away any local commits to make your local "master" branch identical to origin/master?02:55
timj left02:55
tangyin Eridius: yes02:55
kadoban joined02:56
tangyin SethRobertson: I'm so sorry for my English :(02:56
chrisshattuck joined02:56
SethRobertson tangyin: No problem. `git reset --hard remotes/origin/master` will do what you want. You may want to make a backup `clone` of your directory beforehand02:57
tangyin SethRobertson: Yes, that's just I want.02:57
merlin83 joined02:58
programble left03:01
Dickhead left03:03
vdv i'm confused, i do changes in a branch, but same changes are in master03:03
dl9pf_ joined03:03
vdv *appear in master03:03
SethRobertson Without a merge or push?03:03
vdv yes03:04
Bass10 joined03:04
dl9pf left03:04
SethRobertson You know that `git branch blah blah` does not change your current branch?03:04
offby1 general-purpose git advice: 1) Read "Git For Computer Scientists" (http://eagain.net/articles/git-for-computer-scientists/); 2) Run "gitk --all"; 3) Learn about "git reflog"03:04
SethRobertson That is why people use the `git checkout -b` varient03:05
Check your branch with `git branch`03:05
vdv i do checkout after creating03:05
gilaniali left03:05
foocraft left03:05
mbroeker left03:05
vdv or are "git checkout branch" and "git branch" not same?03:06
SethRobertson I would recommend running `gitk --all --date-order` yes03:06
If you mean "branch" literally, no03:06
tangyin SethRobertson: Thank you :)03:07
vdv so, i've created a branch with "git branch name" and then "git checkout name"03:08
that should be correct, no?03:08
cannonball left03:08
SethRobertson Probably. only `git branch` will know for sure03:08
vdv i see my branch in the list03:08
marked with *03:09
when i do changes03:09
then i checkout master03:09
and git status shows changes03:09
Heimidal joined03:11
vdv i'm really confused03:13
git co -b behaves same03:13
frogonwheels vdv: you haven't committed the changes?03:14
vdv not, but git should say me that i have unstashed changes and don't let to switch branches03:14
frogonwheels vdv: when you checkout a branch, git will keep any changes you've made as long as that file hasn't changed between the 'checkout' you've left and the 'checkout' you arrive at03:15
BiggFREE left03:15
SRabbelier left03:15
frogonwheels vdv: the simplest example is when you make changes, and then want to commit them to a new branch .. you do git checkout -b <newbranch> then you commit03:15
vdv: it might be an option? but I quite like the default.03:16
vdv if i checkout some of the existing remotes make changes there, then turn back to master i don't see those changes in master03:17
*existing remote branches03:17
automator left03:17
frogonwheels vdv: and you forgot to commit the changes you mean?03:18
vdv yes03:18
ups, no, if i forgot to commit git don't let to checkout master03:19
spearce joined03:19
t3i joined03:19
frogonwheels well you can always stash them right where you are -03:19
spearce left03:19
nettrot joined03:19
mithridates oops , it's bad if you rebrase a commit which is already public. people will call you #$%@#@03:19
frogonwheels vdv: I like the default. If you want to change it, then if there's not a setting - there's probably a hook you could use03:19
alnewkirk left03:20
frogonwheels mithridates: generally yes03:20
coderdad left03:20
frogonwheels mithridates: you want to undo a rebase you just did?03:20
zombor left03:20
mithridates frogonwheels: no, I just read rebase manual. but I'm interested to know how is undoing a rebase :)03:21
frogonwheels: would you tell me please?03:21
andrewwatts left03:21
frogonwheels mithridates: if you've just done it .. git reset --hard HEAD@{1}03:21
xiangfu left03:21
frogonwheels mithridates: ie put the branch you are on (presuming that's the on you rebased) back to the last commit it was on (ie the one before the rebase)03:22
mithridates the number means the last change? I mean the last commit?03:22
frogonwheels yep exactly03:22
mithridates: man git-reflog03:22
Gitbot mithridates: the git-reflog manpage can be found at http://git.or.cz/man/git-reflog03:22
jschoolcraft left03:22
frogonwheels mithridates: works for (successful) merges too ..03:22
(which is nice in a merge, since with HEAD~1 you have two parents)03:23
mithridates neat, before starting to learn git I couldn't even imagine that universe has such a great system for programmers03:23
boombatower joined03:23
boombatower left03:23
boombatower joined03:23
antivigilante left03:25
vdv i don't understand, i'm in branch, i do changes, i don't want those changes show up in other branch when i switch to that branch, and that wasn't case before03:25
mithridates vdv: because you merged those branches together03:26
"I guess"03:27
vdv mithridates, no, i didn't do merge03:27
and rebase also03:27
SethRobertson vdv: Did you work out that you needed to commit eventually?03:27
What does `git status` say?03:27
ka1ser joined03:27
ka1ser left03:29
ka1ser joined03:29
frogonwheels vdv: commit it.03:29
vdv: get into the habit of checking the status before you swap branches03:29
vdv i just did "git branch newbranch", then edited a file, then "git status" says that files is changed, but changes must be added, i.e. those are unstaged changes, then i do "git co newbranch", at this moment git always asked to stage and commit before checkout (or stash), but this time it just switches the branch and and changes are in other branch03:30
frogonwheels vdv: I told you why.03:30
ka1ser left03:30
ka1ser joined03:30
SethRobertson As frogonwheels said, the changes "float" around until you commit them. Commit them, change branches, and you will not see the changes03:31
vdv frogonwheels, if don't commit git always asked to do that, and didn't let to switch03:31
SethRobertson It only refuses to let you switch if the files have diverged03:31
Trust us and commit.03:31
frogonwheels vdv: the reason is the files you modified are exactly the same in both branches. that's why it lets you.03:31
vdv ah03:31
fr0sty_ joined03:32
rayners left03:33
frogonwheels s/why/when/03:33
vdv ok, thanks, i've never faced to such thing before03:33
ka1ser left03:33
mithridates does this command "git reflog delete master@{2}" remove the two commit ago of master?03:34
ka1ser joined03:34
SethRobertson OK, this has now officially blown my mind. I can `git clone` a specific url if I use the IPv4 version of the hostname, but if I use the IPv6 version of the hostname, the clone hangs half-way through. This is an ssh problem but I'm not sure I believe ssh has such an ipv6 bug03:35
frogonwheels mithridates: that would jpresumably just remove the log entry (without rtfm)03:35
bob2 SethRobertson: what makes you think it is a ssh problem?03:35
and not mtu or something03:35
Phrogz_ left03:35
frogonwheels mithridates: if you want to remove just 2 commits ago - you need to use rebase -i (which rewrites history)03:35
mariusSO vdv: Unless switching a branch will clobber (alter) the files you are actively working on, git will switch branches without issue. If switching will clobber, either commit or stash your changes.03:35
SethRobertson strace shows the sending ssh reading the data but the receiving side never writes it. Now that I think on this more, it probably is a path-mtu problem.03:36
Though I have to ask--where are the error messages03:36
mithridates frogonwheels: I did rtfm but it says:"This command is to manage the information recorded in it ." I was wondering what kind of information is that03:37
bob2 path mtu seems less likely03:37
mithridates frogonwheels: is it just log?03:37
bhosie joined03:37
psoo left03:37
bob2 what error would you like?03:37
SethRobertson ipv6 refuses to frag, so if someone is not honoring path mtu discovery, it would have this symptom03:37
frogonwheels mithridates: the reflog is just a log (it does help with keeping recent activity from being garbage collected)03:37
mariusSO mithridates: reflog is just a log of your actions in the repo. No need to delete those actions really :)03:37
nadavoid joined03:38
mithridates I got ya03:39
mariusSO mithridates: So, unless you really really need to expunge something from your repo, to make sure the objects are not there in the "db", just leave it alone :)03:39
aah joined03:40
mithridates mariusSO: ok ! , tnx , and if it was bothering me I have to (find the number of activity by reflog and put it infront of rebase -i)03:41
Eaven joined03:41
fr0sty_ mithridates: 'bothering you' ? do you want the commit to go away or just the entry in the reflog?03:42
mariusSO Heh03:42
mithridates hey fr0sty_ , I wanted to remove some commits by rebase -i03:43
mariusSO mithridates: If you made a booboo in your commit history you can do 'git rebase -i HEAD~<n>, where <n> is the number of commits ago03:43
xiangfu joined03:44
mithridates yes I got it!03:44
JEEB joined03:44
JEEB__ left03:44
mithridates oops, too much data for my little brain. I must go to bed.03:45
xiong left03:45
mithridates good night03:45
thank you guys for all your helps03:45
mithridates left03:46
mariusSO is a bit puzzled03:46
mariusSO :)03:46
timH i think git was created to drive me nuts03:47
mariusSO timH: Yet, here you are :)03:48
fivetwentysix joined03:48
frogonwheels timH: "Where do you want to drive your nuts today?"03:48
timH i mean, I just want to work on this project...03:48
guess I'll just nuke and start over03:49
frogonwheels timH: what's happened?03:49
timH: probably won't help.03:50
timH i mean, I just generally don't know what i'm doing.. i'm like day #1 with git03:50
:)03:50
but I wanted to merge two branches03:50
so I had one branch (master), I pulled the other branch03:51
had some conflicts, tried to resolve them, guess I accidentally committed them and then my git status said I was 2 commits ahead of master03:51
bhosie left03:51
frogonwheels timH: where did you pull your other branch from?03:51
fr0sty_ 2?, hmmm03:51
timH i mean, you want the specific url?03:52
it was a branch off of the master03:52
frogonwheels timH: ok.. well it's a DVCS so all your branches are cloned into your local repo03:52
fr0sty_ timh: history |grep "^git" > pastbin03:53
frogonwheels timH: git branch -a03:53
mdel_ left03:53
timH ahh03:53
i kept doing git branch and it would only show the current branch i guess?03:53
fr0sty_ only shows local branches03:53
frogonwheels no - it ommits 'remote' branches.03:53
timH ah03:54
frogonwheels if you have a (remote) branch remotes/origin/mybranch then doing a git checkout mybranch will set up the local tracking branch for that remote branch03:54
timH well why didn't git merge <branchname> work?03:54
it has to be local?03:54
frogonwheels timH: git merge origin/<branchname> probably would though03:55
fr0sty_ timH: sounds like it did work03:55
you got conflicts, right?03:55
timH that was from git pull03:55
fr0sty_ pull = fetch + merge03:55
frogonwheels timH: what was your git pul cli?03:55
I mean what did you type?03:56
fr0sty_ if you are in branch A and do 'git pull <remote> branchB' it will fetch branchB from the remote and merge it into branch A03:56
timH ok, I'm setting up a fresh master03:56
fr0sty_ timH: history | grep "^git" > pastebin03:56
show us what you actually did.03:56
mdel_ joined03:57
ajpiano joined03:57
timH can we just start from square 0.. i just did "git clone git://..... fspot_master"03:57
so now I want to do "git pull git://..... -b infobox"03:58
frogonwheels no03:58
fr0sty_ -b?03:58
timH sorry03:58
i guess I was thinking merge03:58
isn't -b branch?03:58
fr0sty_ 'cd fspot_master; git remote add <name> url'03:58
is the pull url different?03:59
timH no03:59
frogonwheels fr0sty_: I think it's the same03:59
timH ok03:59
thiana If you're amending a commit, how do you remove a file from it?03:59
fr0sty_ timH: 'you want to merge infobox into master?03:59
timH yes03:59
fr0sty_ 'git merge origin/infobox'03:59
gilaniali joined03:59
Bass10 left04:00
timH ok, that's where I got to before.. 2 conflicts04:00
rgr left04:00
shamrock left04:00
fr0sty_ edit the files to resolve the conflicts...04:01
frogonwheels timH: or use git mergetool04:01
mariusSO thiana: removing from the amending, or from the repo?04:01
alnewkirk joined04:01
fr0sty_ but don't do anything else (like git add or git commit)04:01
timH ok, so one of the things in conflict is a directory?04:01
thiana mariusSO: The repo.04:01
fr0sty_ thiana: git rm <filename>04:02
mariusSO thiana: 'git rm <file> && git commit --amend'04:02
thiana Thanks.04:02
fr0sty_ or that...04:02
timH not possible.04:02
only files can conflict04:02
shiba_yu36 joined04:02
fr0sty_ is this a public github repo?04:02
timH yes04:03
fr0sty_ what is the url?04:03
timH git://git.gnome.org/f-spot04:03
well it shows "Unmerged paths" and under that is lib/TagLib/TagLib which is most definitely a directory04:04
fr0sty_ stand by04:04
alnewkirk left04:05
ajpiano left04:05
alnewkirk joined04:06
ajpiano joined04:06
tangyin left04:07
wereHamster submodule?04:07
timH yes04:07
fr0sty_ that's a horse of a different color.04:08
timH sorry04:08
fr0sty_ timH the conflict is both branches have modified the submodule commit.04:09
the commit the submodule points to, that is.04:09
timH honestly that makes zero sense to me04:09
:)04:09
i mean other than obviously in general software development terms04:10
fr0sty_ why are you trying to merge these branches?04:10
timH well, I want the work that was done in infobox in master04:10
Yuffster left04:11
timH i mean, I know git is better but I could already have this done in 3 different revision control systems :(04:11
Yuffster joined04:11
timH maybe I'll just abandon it for now04:12
jrmuizel joined04:12
fr0sty_ timH: you need to do 'git submodule init'04:13
zz_rubydiamondrubydiamond04:13
alberto56 left04:14
timH ok04:14
mariusSO how would svn resolve externals at two different states in a merge?04:14
Yuffster left04:14
Yuffster joined04:14
alberto56 joined04:14
fr0sty_ possibly git submodule update as well04:14
alberto56 left04:15
fr0sty_ timH: are you sure master is the branch you want?04:16
timH fr0sty: at this point no04:17
but I mean, it's master, it's where everything needs to land I'm pretty sure04:17
anyway, I literally have a headache now and got to basically zero coding.. i'll leave it for someone else04:18
fr0sty: thanks04:18
ignatp left04:19
cytrinox_ joined04:21
fr0sty_ your welcome, i guess...04:22
if you want to just start coding, checkout infobox and have at it...04:22
timH fr0sty: but it's missing stuff that's in master right?04:23
fr0sty_ yes,04:23
do you need any of it?04:23
cytrinox left04:24
cytrinox_cytrinox04:24
rubydiamondzz_rubydiamond04:24
fr0sty_ generally if you are working on a feature you develop the feature first and then merge it back into the project04:25
jrmuizel left04:25
timH right04:27
fr0sty_ so develop first, merge second.04:29
whaley left04:30
Theravadan left04:31
alnewkirk left04:34
hebz0rl joined04:35
wereHamster how would you 'merge first, develop second'04:36
?04:36
seems unpractical04:36
timH the code is basically finished, it's not mine, I'm just trying to get it into master04:37
I did some fixes that didn't need to be done04:37
and that's because this code wasn't in master04:37
brntbeer left04:39
tangyin joined04:40
frogonwheels timH: I'm just gonna try this merge.. it can't be _that_ hard :)04:42
timH no, in fact it seems simple enough, even to me04:42
but i trying to learn 10 things at once04:42
frogonwheels have you done the git submodule init git submodule update stuff?04:42
timH i did04:42
towski joined04:43
timH i ended up nuking it all04:43
ignatp joined04:43
timH see, I don't know anything about the submodules in git04:44
frogonwheels timH: a submodule is just an external library - the main project stores a pointer to a particular commit in the library04:45
timH frogonwheels: i mean, of course conceptually I know what a submodule is.. :) i just didn't know they related to git in anyway04:46
TheColonial joined04:46
TheColonial hi everyone. i can't seem to find the command which shows a tag (or list of tags) that are applied to a revision. is this possible?04:46
i want to extract that as part of a script04:46
fr0sty_ git tag --contains <rev> ?04:47
Yuffster left04:47
TheColonial fr0sty_: thanks,i'll give that a shot!04:48
fr0sty_: that's perfect. thank you very much04:49
fr0sty_ no problem.04:49
khmarbaise joined04:50
frogonwheels timH: hmm.. they deleted a submodule it appears?04:52
timH well, I think it got pointed from a local branch to a branch at another url04:53
ignatp left04:53
timH scratch that04:53
it just went from one repo at github to another one04:53
khmarbaise left04:54
freimatz joined04:56
krosenvold_ joined04:56
frogonwheels timH: ok clone with git clone --recursive <url> (this will do the submodules as well)..04:57
timH: then git merge origin/infobox04:57
timH: use git checkout --ours lib/TagLib to resolve the submodule conflict04:58
timH: and you could run git mergetool --too=kdiff3 and resolve the head conflict...04:58
timH: then git commit04:58
timH: and you're done.04:58
timH that's straight forward05:00
ct^^ joined05:00
frogonwheels timH: working out the TagLib thing took a bit of knowledge - but easy enough once you know.05:00
timH hmm, ok, give me a second, thanks05:01
then I need to create a patch05:01
frogonwheels timH: --tool=kdiff305:01
timH: you need to send it to the developer?05:01
timH right05:01
frogonwheels timH: git am HEAD~1 after the commit05:02
no05:02
git format-patch HEAD~105:02
sorry (am is the thing that applies patches)05:02
madewokherd left05:03
sftp left05:03
ct^ left05:03
scarabx left05:03
OOPMan left05:04
timH frogonwheels: so that recursive step appears to be done by the autogen I guess?05:05
Pupeno joined05:05
timH i mean, it grabs all the submodules?05:05
frogonwheels timH: yeah - it clones all the submodules and checks out the appropriate commit05:06
... just means it's one command so you can go away and come back with a fully cloned repo including submodules.05:06
timH you missed a step in there05:07
frogonwheels ?05:07
timH i had to do git remote add infobox ....05:07
frogonwheels nahh05:07
timH oh05:08
frogonwheels unless you're pulling from another url05:08
OOPMan joined05:08
timH i was still in the directory i executed the clone from05:08
when I tried to do the merge the first time05:08
frogonwheels :) ok I missed 'cd f-spot '05:08
Koteswara joined05:08
timH haha05:09
ShooterMG joined05:09
timH so after the "get checkout --ours ..." when I do the mergetool it still tries to have me resolve the "TagLib" directory05:10
justin-george joined05:10
Slix`` joined05:10
ReleaseX left05:10
frogonwheels hold a sec.. gonna try that05:11
Ogredude_ left05:11
frogonwheels timH: try ignoring that and skipping to the next one05:11
apsysoev joined05:12
timH then it still shows lib/TagLib/TagLib under unmerged paths05:12
frogonwheels arghh.. git checkout --ours lib/TagLib/TagLib05:12
sorry - missed a bit05:12
Slix` left05:12
timH oh, I thought maybe it was like, recursive05:12
so, right now, since a merge is taking place there exists an "ours" and "theirs"?05:13
gasull1 joined05:13
nbrochu joined05:14
timH the command executes fine but still shows it under unmerged paths?05:14
frogonwheels hold a sec05:14
gasull joined05:16
frogonwheels timH: git reset HEAD lib/TagLib/TagLib05:16
methinks there are some usability issues with resolving submodule merges :|05:16
metaperl left05:17
timH http://pastebin.com/enktP2Cn05:18
that's what git status looks like now, can that be right?05:18
fr0sty_ frogonwheels: a git diff will show what SHA the submodule should point at (ours and theirs) he can just checkout what he wants and add it.05:18
frogonwheels Look - try commiting what you've got and doing a git submodule update05:18
gasull1 left05:18
frogonwheels fr0sty_: duh - of course thanks v much05:19
Slix`` left05:19
frogonwheels fr0sty_: anyway , he wants (I believe) to use the one in the master branch.05:19
timH yes05:19
that much I know05:19
clear05:19
uggh05:19
frogonwheels timH: so commit, and it should be all good ( and git submodule update)05:19
timH: yeah that was a bit more painful than it should have been - the submodule was the pita05:20
timH so it says ahead by 2 commits?05:20
frogonwheels two?05:20
fr0sty_ the infobox commit and the merge, I think...05:20
frogonwheels ooh. possibly then05:21
Lgb left05:21
timH the log does show a "merge" right under the commit SHA105:21
sh1m joined05:21
timH the merge isn't a SHA1 though it doesn't look like05:21
fr0sty_ ?05:22
timH Merge: 068daf6 57322a605:23
frogonwheels http://pastebin.com/piDKcNDh05:23
timH it's right under the commit <sha1> in the log05:23
frogonwheels That's the short sha1s of the two parents for the merge05:24
amerine joined05:24
timH so just enough to make them unique?05:24
frogonwheels yep.05:24
or something like that05:24
timH hehe05:24
Lgb joined05:24
timH ok, so I made a patch05:24
wow05:24
thanks05:24
frogonwheels :) np05:24
timH i'm going to be utterly useless tomorrow05:25
frogonwheels hmm.. just had a thought05:25
timH oh?05:25
frogonwheels nah -it's ok05:25
really05:25
Eaven left05:25
timH lol05:25
ShooterMG left05:25
frogonwheels get some sleep :)05:25
sh1mmer left05:26
sh1msh1mmer05:26
timH ok, thanks again05:26
timHtimH_away05:27
sivy left05:28
khmarbaise joined05:29
gasull left05:32
hobodave left05:32
hyperair left05:33
hobodave joined05:33
Eridius left05:33
dukebag left05:33
jelmer joined05:34
jelmer left05:34
jelmer joined05:34
doener joined05:37
hobodave left05:37
rpbertp13 joined05:39
yuriks_ joined05:41
yuriks left05:44
robinr joined05:44
amerine left05:45
urkud joined05:46
_ollie joined05:47
Pewpew joined05:47
goshawk joined05:47
muep joined05:48
gasull joined05:49
timH_away left05:49
Pewpewarrows left05:51
khmarbaise left05:53
brakkus_droideka joined05:54
eighty4 left05:54
sambarino joined05:55
robinr left05:55
_ollie left05:55
brakkus_droideka hey guys05:56
adamm left05:57
patnotz left05:57
happynoff1 joined05:57
brakkus_droideka i've put my public key in a git repository but it's still asking for my password when i try to git clone05:58
gilaniali left05:58
eighty4 joined05:58
nadavoid left05:59
gasull1 joined06:00
droideka joined06:00
droideka hey there06:00
back06:00
so any idea where i should start troubleshooting?06:00
http://pastebin.com/cNSb7x3s06:01
there is the output that i get06:01
urkud left06:02
thiago joined06:02
Deesl joined06:02
justin-george left06:02
gasull left06:03
brakkus_droideka left06:03
checkers left06:04
BP{k} left06:04
BlindOracle left06:04
BP{k} joined06:04
happynoff1 Hi ! I managed to make git work over HTTP. There is one last thing I want to fix. When I push, my password is asked twice. Why ? and how can I work around it ? thanks06:05
drubies left06:06
freimatz left06:06
frogonwheels droideka: either get the public repository URL - or you'll need to have permissions for the server06:06
BlindOracle joined06:06
frogonwheels happynoff1: pushing with what protocol? if it's http then *shrug*06:07
happynoff1 yes it's http and it works well except for the password asking06:07
frogonwheels so git remote -v shows pushing with http?06:08
dav. ok06:08
or something06:08
happynoff1 yes06:08
it's all http06:08
no ssl for now06:08
frogonwheels happynoff1: you're expecting it to ask once I gather?06:09
happynoff1 yup. If I can find a way to not ask it but without using .netrc it's ok too :)06:09
freimatz joined06:10
frogonwheels shrugs06:10
gasull joined06:10
kanru left06:11
hobodave joined06:11
nettrot left06:11
happynoff1 ?06:12
happynoff1happynoff06:12
gasull1 left06:12
t3i left06:12
drubies joined06:12
droideka left06:13
fredcooke joined06:16
cbreak_work joined06:16
slonopotamus joined06:16
fredcooke Hi, I'm trying to .gitignore all files/dirs except ones listed in .gitignore with ! preceeding them, but I'm having no luck. My exact config is :06:16
# comment06:17
*06:17
# comment06:17
!default06:17
slonopotamus so, let's try once again. anyone has ideas how to undo accidental git svn reset -r <very-old-revision> without refetching?06:17
yhager left06:18
doener fredcooke: that should ignore everything but things called "default", but note that git won't recurse into directories unless they're called "default"06:19
fredcooke exactly, i have a directory called default with a single file inside called index.php06:19
and it gets ignored no matter what06:19
i also have !.gitignore in there06:19
gasull left06:19
fredcooke otherwise nothing showed up06:19
the !.gitignore works fine06:20
but default /default default/ default/* etc etc do not work06:20
doener what is it now? default or index.php?06:20
ah, nvm06:20
fredcooke default, the directory, and all inside it, which is currently only index.php06:20
thanks for speaking up, btw! :-)06:21
t3i joined06:21
doener fredcooke: well, you un-ignore the directory, but not the file in it06:21
fredcooke: with the !default, git looks into that directory, finds index.php and sees that that matches *, so it ignores it06:21
fredcooke shouldnt the !default/* unignore all inside too ?06:21
or do i need two lines06:21
oen for the dir, one for its contents?06:21
didnt try that, hold one second06:21
psankar joined06:22
psankar left06:22
psankar joined06:22
freimatz left06:22
goshawk left06:22
bob2 fredcooke: * and .* appear to work fine06:23
fredcooke doener, thank you for making me look at it from the correct perspective! :-) two lines required, one for the directory, one for the files inside it06:23
doener fredcooke: I'd put '*' and '!*/' into the top-level .gitignore, and !* into default/.gitignore06:23
urkud joined06:23
doener fredcooke: because default/* won't recurse, i.e. doesn't match default/foo/file06:23
fredcooke oh06:24
and what is i dont want any git files in default/06:24
?06:24
frogonwheels doener: weird. doesn't work06:24
fredcooke doener, it does recurse06:25
The following works nicely:06:26
*06:26
!/default/06:26
!/default/*06:26
!.gitignore06:26
Thanks again! :-)06:26
philthno2 joined06:27
TheColonial left06:27
airborn joined06:28
Deesl left06:28
zz_rubydiamondrubydiamond06:29
Deesl joined06:29
Deesl left06:30
fredcooke left06:30
_ollie joined06:36
doener frogonwheels: what doesn't work?06:38
envi joined06:39
frogonwheels doener: I couldn't even get what fredcooke claimed did the trick to work :(06:39
doener: oh yeah- sorry -It was in reference to the fredcooke conversation06:39
doener frogonwheels: fredcooke's "final" .gitignore will work for default/file but not for default/foo/file, guess he didn't try that06:40
frogonwheels: and for my approach, note that the order in the .gitignore file matters, * must come before !*/06:40
frogonwheels doener: sure. still didn't do it for me :(06:41
Mayank_ joined06:42
Mayank_ Hi06:42
frogonwheels I made a clean project with .gitignore test default/index.php files06:42
Mayank_ I needed some help with gt06:42
doener frogonwheels: worksforme http://git.pastebin.com/6p4ReJXh06:42
Mayank_ git06:42
Mayank-Chopras-MacBook-Pro:first_app Mayank$ git remote add origin [email@hidden.address]06:42
fatal: remote origin already exists.06:42
Mayank-Chopras-MacBook-Pro:first_app Mayank$ git push origin master06:42
Permission denied (publickey).06:42
fatal: The remote end hung up unexpectedly06:42
I'm getting this error while trying to upload files to the repository06:43
doener off to work now06:43
Mayank_ can anyone please help with this06:43
frogonwheels doener: bug that doesn't show index.php as untracked - or foo/index.php (if you added one)06:43
doener: sure06:43
doener frogonwheels: sure does, http://git.pastebin.com/vLfmKk0j06:44
Torsten joined06:46
fivetwentysix left06:46
hyperair joined06:47
Unode left06:47
frogonwheels Mayank_: if you want to access via a public url - use the git or http protocol otherwise read up on generating ssh private keys and setting up github with your public keys06:48
Kira joined06:49
Kira pokes nvie06:50
Zhonghua joined06:50
Mayank_ frogonwheels: im going through the RoR tutorial on the website and it does say to read up on ssh private keys so I'll read up on that ..thanks06:50
hyperair left06:52
sonnym left06:53
mtkd joined06:54
slyphon joined06:55
ph^ joined06:55
sonnym joined06:55
eletuchy left06:56
sejo why does .git/branches exist? nothing is stored in there06:56
theoros left06:56
_pingu joined06:57
ph^_ joined06:57
ph^ left06:57
slyphonslyphon_away06:57
Anti-X left06:57
wagle_ joined06:58
QinGW left06:59
QinGW joined06:59
wagle left06:59
slyphon_awayslyphon06:59
Eaven joined06:59
RobertMeta left07:00
rvsjoen left07:00
dukebag joined07:00
RobertMeta joined07:01
rvsjoen joined07:02
Anti-X joined07:03
priidu joined07:04
tty1 left07:07
Pew joined07:07
dukebag left07:07
tty1 joined07:07
thierryp joined07:08
Pewpew left07:10
devanjan joined07:10
nevyn^ joined07:10
_pingu left07:10
frogonwheels sejo: http://www.siteground.com/tutorials/git/directory.htm appears it is deprecated07:14
nullvariable left07:15
boombatower say i have two "modules" of code in one repository and I decide I want to split them into two repositories...what is the best way to do so and preserve a clean history. My plan was to just duplcate the repository and remove a module from each (different one) and perform rename operations, but then of course I will have all the commit history for the module that was removed07:15
I get the feeling git may have some scary way to do this07:16
selckin filter-branch07:16
nullvariable joined07:16
ch077179 joined07:17
maguey_ left07:18
boombatower selckin: interesting, thx...i'll start playing with that07:19
git has everything :)07:19
doener frogonwheels: hm, your list of files is missing the second .gitignore07:19
sonnym left07:19
josefrichter joined07:20
Theravadan joined07:21
josefrichter guys, I've made some changes only to realize I'm on different branch. can I somehow change the branch and commit on the right one? the files I was changing looked the same on both branches before I started to edit them.07:21
selckin yes. just do it07:22
FauxFaux cherry-pick or rebase.07:22
frogonwheels josefrichter: you've not checked in07:22
selckin he didn't commit yet, he can just change the branch and commit07:22
boombatower git status => nothing to commit (working directory clean) ; git filter-branch --tree-filter ´rm -f worker´ HEAD => Cannot rewrite branch(es) with a dirty working directory. ; I missing something?07:22
frogonwheels josefrichter: as selckin says - just checkout the right one - if the file is the same in both then it will let you07:23
josefrichter yep, not commited yet. i'm on branch but want to commit those changes on master. so I just git checkout master and I won't lose changes?07:23
sonnym joined07:24
MikhX left07:24
cilly joined07:25
josefrichter it works. nice :-)07:26
phaedrix left07:27
towski left07:28
MikhX joined07:28
nvie left07:30
galderz joined07:31
thiago left07:32
Cap`Tain[Absent` joined07:33
Cap`Tain[Absent` left07:34
t3i left07:34
frogonwheels josefrichter: if it would need to overwrite a file to do the checkout, it would abort and not do the checkout07:38
(and tell you what you need to do to keep going)07:38
josefrichter ok, thanks07:38
hyperair joined07:39
dr_win joined07:41
fivetwentysix joined07:41
urkud left07:41
Heimidal left07:45
foocraft joined07:46
lzyy joined07:46
workmad3 joined07:48
boombatower rewrite subdirectory filter worked like a charm...not sure why removing a file gives me crap about being dirty07:50
jacobat left07:51
boombatower ugh...man page has the ` and you need '07:51
jacobat joined07:51
Alias joined07:52
Alias Is there a git equivalent of "svn revert one-file-within-the-checkout"07:52
mpartipilo joined07:52
boombatower Alias: git checkout filename07:52
Alias checkout?07:52
Alias hits the docs07:52
cxreg wonders how gittogether went07:53
boombatower sweet removed directory from history...very cool07:54
hmm so it still keeps commit messages...just shows nothing as being changed?07:55
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch worker' HEAD07:55
cxreg boombatower: you probably wanted --prune-empty07:55
boombatower ah07:56
boombatower starts over07:56
rlotun joined07:56
slonopotamus meh.07:56
lzyy left07:56
freimatz joined07:58
lzyy joined07:58
boombatower cxreg: much better thx07:59
boombatower left08:00
cxreg np08:00
boombatower joined08:02
boombatower left08:02
boombatower joined08:02
davzie joined08:02
kanru joined08:02
urkud joined08:03
nonno joined08:04
psoo joined08:07
eletuchy joined08:11
foocraft left08:13
bentob0x joined08:14
Pew left08:14
metaperl joined08:15
Pew joined08:15
phaedrix joined08:15
gebi joined08:16
gebi left08:16
gebi joined08:16
khmarbaise joined08:16
tty2 joined08:16
mpartipilo left08:16
thedeeno left08:17
drubies left08:18
thedeeno joined08:18
tty1 left08:18
drubies joined08:19
khmarbaise left08:20
Schmallon joined08:23
asmega joined08:23
urkud left08:25
davzie left08:25
happynoff left08:25
pedrobelo left08:26
hyperair left08:27
Mayank_ left08:28
davzie joined08:30
GarethAdams|Work left08:34
tatsuya joined08:38
d0ugal left08:38
skoop joined08:39
Eaven left08:40
dharriga1 joined08:41
hyperair joined08:43
cytrinox_ joined08:45
krosenvold_ left08:45
carutsu left08:45
icwiener joined08:45
sigmonsays left08:47
dunpeal joined08:47
cytrinox left08:47
cytrinox_cytrinox08:47
dunpeal Hey. Is there a Git command that shows not only the names of the remotes, and whether they're fetch/push, but also prints their actual URLs?08:48
akamike joined08:49
dharriga1 left08:49
doener dunpeal: git remote -v08:50
dunpeal doener: heh, thanks.08:52
bushwakko joined08:52
dunpeal doener: OK, another question: I see both a (fetch) and a (push) URL; what does the distinction mean?08:53
sigmonsays joined08:54
cytrinox left08:54
cytrinox joined08:54
Eaven joined08:54
doener dunpeal: that you can configure them individually08:54
dunpeal: can't come up with a use case right now, though08:56
marc_kdab joined08:56
sdboyer left08:56
g0bl1n joined08:56
dunpeal doener: continuous / gauntlet build scenario.08:56
sdboyer joined08:56
sdboyer left08:56
sdboyer joined08:56
dunpeal and yes, I see that git remote -v just shows remote.<name>.url as (fetch), and remote.<name>.pushurl as (push).08:57
curtana joined08:57
freshmilk joined08:58
dr_leppe1dr_lepper08:59
boombatower left09:00
freshmilk Can anyone help out a noob? I've modified my .gitignore on my local machine, and successfully done a 'push', but when checking the .gitignore on the remote repo it hasn't been updated. How do I push the changes made to my local .gitignore to the repo?09:00
Ogredude_ joined09:00
dunpeal freshmilk: are you on the same branch?09:01
is the remote bare?09:01
freshmilk how do i check?09:01
what does bare mean? i only started with git 2 days ago!09:02
Aiden joined09:02
dunpeal reading some tutorial would be advisable09:03
freshmilk hold on, i've just done a 'git status' and it says 'changed but not updated' - gitignore09:03
dunpeal freshmilk: `git branch` should tell you which branch you're on09:03
Putr|AwayPutr09:03
dunpeal `git status` will as well09:03
Fullmoon left09:03
dunpeal freshmilk: the fact that you got that message from git status means that you didn't actually commit the changes to the .gitignore file.09:03
rpbertp13 left09:04
dunpeal you need to understand the index and how to make commits.09:04
the short answer for now is that you need to do `git add .gitignore` before the commit, otherwise it won't get committed.09:04
freshmilk thanks dunpeal that did it.09:04
Aiden how do you add more keys to github?09:04
freshmilk there's a lot to learn with git, easy to get overwhelmed.09:05
thanks for the tip.09:05
Yuuhi joined09:06
boombatower joined09:06
kukks joined09:06
Ogredude_ left09:07
Aiden nvm , found it09:07
MacGyverNL left09:08
dunpeal left09:09
xiangfu left09:10
cytrinox_ joined09:11
cytrinox left09:12
MacGyverNL joined09:13
MacGyverNL left09:13
MacGyverNL joined09:13
eletuchy left09:13
eletuchy joined09:14
bctrainers joined09:14
bronson left09:15
mtkd left09:15
cytrinox_ left09:16
TuxCM joined09:17
Arthur joined09:17
Theravadan left09:18
eletuchy left09:19
lzyy left09:19
Theravadan joined09:20
Mage left09:21
Aiden|TBBT joined09:21
TuxCM 1.7.2.1 was OK, but as of 1.7.2.2, *** t9101-git-svn-props.sh *** started failing09:24
and as I use git-svn *a lot* to work on remote svn repo's, I don't dare to install09:24
Aiden left09:24
consolers joined09:28
TuxCM git://gist.github.com/651002.git09:29
maguey_ joined09:30
hyperair left09:31
d0ugal joined09:33
Schmallon left09:34
albel727_2 TuxCM: hmm. this would be better off reported to git mailing list (and maybe also to #git-devel)09:37
albel727_2albel72709:37
TuxCM I (sorry) don't have the time to follow git ML's09:37
I did so in the beginning09:38
srauesraue|afk09:38
TuxCM I'm willing to report it, but it would be hard to do correct follow ups after that09:38
maguey_ left09:40
sraue|afksraue09:40
rubydiamondzz_rubydiamond09:40
albel727 TuxCM: well, if you can't help people in figuring out the problem, then I don't know. On your place, I'd definitely sent at least a single e-mail (with all the generic info, like what is your OS, etc) to git ml. Just say, that you're unable to follow, and hopefully people will be understanding.09:41
TuxCM ok, I'll do so09:42
cytrinox joined09:43
ch077179_ joined09:44
albel727 TuxCM: Thanks. I think, info on where did you get that 1.7.2.2 distribution (was it a binary package, or self-compiled, and if so, how did you build that and what was the output of make) would be helpful too, but feel free to skip it, if you really busy.09:45
parasti joined09:45
infinity0 left09:45
ptor left09:46
albel727 s/you really/you're really/09:46
infinity0 joined09:46
infinity0 left09:46
infinity0 joined09:46
ch077179 left09:47
Haarg left09:47
thiana left09:47
Tommy[D] left09:47
Haarg joined09:47
thiana joined09:48
Tommy[D] joined09:50
dr_win left09:50
msimkins joined09:53
zz_rubydiamondrubydiamond09:53
allenwei joined09:55
Aiden|TBBT We couldn't find a README for this repository, we strongly recommend adding one. For more details on what formats we support, visit github/markup09:56
why do i need this09:56
Torsten left09:56
josefrichter left09:57
cytrinox_ joined09:57
Rhonda It is displayed directly so it's considered to be the central documentation file.10:00
cytrinox left10:00
cytrinox_cytrinox10:00
dharrigan joined10:00
dharrigan left10:00
dharrigan joined10:00
Eaven left10:01
Aiden|TBBT is it a bad thing10:01
if i havent made it10:01
>_<10:01
Aiden|TBBTAiden10:01
MetaCosm joined10:01
MetaCosm left10:01
MetaCosm joined10:01
winterweaver joined10:03
QinGW left10:05
Kira left10:06
tvw joined10:07
consolers left10:09
ThiefMaster left10:10
Rhonda That's up to you if you consider lack of documentation a bad thing.10:14
mithro left10:14
Fissure1 joined10:15
chrischambers joined10:15
Fissure left10:15
blahdeblah joined10:16
blahdeblah Hi. Are there any tools available to set up automatic push from one repository to another without doing something old school like scheduling periodically from cron?10:17
tangyin left10:18
albel727 blahdeblah: why would you need that, exactly?10:19
dharrigan left10:20
gretch left10:21
blahdeblah albel727: So that my repositories stay in sync?10:22
Automatically, i might add...10:22
albel727 blahdeblah: Completely non-specific. I'm asking, because if, e.g you want to push from one bare repo to another, then post-receive hook might be a good choice.10:22
ThiefMaster joined10:23
blahdeblah Sorry. They are two non-bare repos.10:23
cehteh left10:23
rson left10:23
freshmilk left10:24
albel727 ...says blahdeblah and still provides no details on his use-case. =/10:24
blahdeblah albel727: I am fairly new at git, trying to migrate from svn, and saying the phrase "one central repo" gets you in trouble in this channel. So i'm trying to brainstorm ways i can get a near equivalent of one automatically updated central repository, but still do it "the git way".10:25
dean[w] joined10:25
chrisred joined10:25
dean[w] I just did a merge and pretty much the whole file conflicted but I want to pick the file from the branch I merged *into* the current branch10:25
boombatower left10:25
parasti one central repo isn't quite the same as autopushing on commit10:25
dean[w] how can i do this, to save having to edit the file and merge so many conflicts10:25
blahdeblah parasti: tell me about it! :-)10:26
albel727 blahdeblah: I'm pretty sure, most people here won't have any problem with "one central repo", and parasti tells the truth =)10:26
Schmallon joined10:26
fivetwentysix left10:27
cehteh joined10:27
TuxCM albel727, mail sent. I actually checked again on all the three systems mentioned in the mail10:29
blahdeblah albel727: Let me see... What further information can i tell you about my scenario that would help clarify my question? I am working with puppet, whose configurations are written in a DSL. I have a server which has some shared and some independent code. When i do a commit & push from my laptop/desktop, i want the changes to be committed to the working copy on the server. What's the least-pain path to doing this?10:29
bauruine left10:30
albel727 TuxCM: yeah, I see it. thanks again. (btw, cc:-ing is a policy in git ml, so you'll see all responses alright)10:31
TuxCM fine10:31
stliu left10:34
Theravadan left10:34
rubydiamondzz_rubydiamond10:35
dharrigan joined10:36
rlotun left10:36
Koteswara left10:36
ayanes left10:36
ayanes joined10:36
awilkins joined10:36
chrisshattuck_ joined10:37
Koteswara joined10:37
Aiden if someone else wants my project on github, do they just use the git clone commando? Or some other?10:38
i have added there public keys10:38
albel727 blahdeblah: ok, I didn't exactly understand what's that "puppet" is, and how exactly do you keep "shared and independent code" in single repository. But, I got an impression, that what your repo at the server needs to have a checked out working copy, and code from that working copy is used online. Am I completely off mark?10:38
blahdeblah albel727: No, pretty much spot on10:38
micha_ joined10:38
micha_ left10:39
blahdeblah Pretend it's a Ruby on Rails web site and i want it automatically updated and live straight away. ;-)10:39
chrisshattuck left10:39
chrisshattuck_chrisshattuck10:39
albel727 blahdeblah: so, a working copy at server is used for production purposes. Ruby web site makes it completely clear.10:39
blahdeblah cool10:39
jonesy left10:39
albel727 blahdeblah: well, so this repo at server is THE repo, which all developers use to push their changes to?10:40
blahdeblah: if so, then faq non-bare10:40
Gitbot blahdeblah: Pushing to non-bare repositories is discouraged. See https://git.wiki.kernel.org/index.php/GitFaq#non-bare10:40
cilly left10:40
blahdeblah Yes, although the only developer is me.10:40
cillybabe joined10:40
artefon joined10:41
albel727 blahdeblah: read the part about updating checked out working copy with post-receive hook10:41
dharrigan left10:41
albel727 (post-update, to be specific)10:41
blahdeblah I know that non-bare repositories are discouraged, so i was trying to work out a way i could push to a bare repo, and have that automatically propagated to the working copy in production.10:43
albel727 blahdeblah: that's why I pointed you specifically to read the part on "what if you still want to do it" =)10:43
there is a hook linked right on that page. with it, any change, introduced by push, that updates specific branch, will be immediately checked out.10:44
blahdeblah And is it OK for that specific branch to be the trunk/master/whatever the official git name for it is?10:44
sshc_ joined10:44
albel727 blahdeblah: it can have any name10:45
giallu joined10:45
goshawk joined10:45
albel727 blahdeblah: as long as it is the one, which is currently checked out10:45
sshc left10:45
blahdeblah ok10:45
aah left10:45
cillybabe left10:45
cilly joined10:46
blahdeblah I would have thought this was a very common question - do people normally just schedule a frequent cron job instead of trying to be event-driven?10:46
albel727 blahdeblah: of course, preferred practise might be creating specific branch like "live-server", check out it at server, and merge changes into it and push from clients. normally people who know about git hooks do it with post-update =)10:46
Aiden left10:46
albel727 s/practise/practice10:47
blahdeblah The server will never have anything except the master branch10:47
albel727 (Personally I think it's the best way to do it, in this case)10:47
blahdeblah So i don't think it's necessary to have multiple branches.10:48
Anti-X left10:48
Arthur left10:48
albel727 blahdeblah: well, it can have all number of branches (1..infinity) that it wants. it's only the existence of checked out branch, that matters. If you don't need multiple branches - don't use them.10:49
thierryp left10:49
thierryp joined10:49
blahdeblah OK - no worries.10:49
I'm only learning git for this now because i realised i need to scale it out to multiple servers, each with private modifications. If it weren't for that, i'd still be perfectly happy with the old centralised tree view of the world that svn provides.10:49
Arthur joined10:50
zombor joined10:50
albel727 blahdeblah: hmm, I see. well, bottomline: You're trying to use git as a deployment tool (which it is not). But if you still want to do it with git, this is a way (better that cron job, imo).10:51
s/better that/better than/10:52
Anti-X joined10:52
MetaCosm left10:52
zombor left10:52
blahdeblah Not really a deployment tool, because having a revision history on local modifications which are private to that server is essential. I'm using it as a way to share as much code/config as possible between my clients while still maintaining the privacy of each client.10:53
jojojo joined10:53
zz_rubydiamondrubydiamond10:53
jojojo left10:55
marcob joined10:56
winterweaver left10:57
albel727 blahdeblah: No, exactly like a deployment tool. Task of having revision history (which is solved by git) is in no way connected to unrolling specific revisions from specific git repositories to specific servers. See it that way: you don't really need git repositories on your servers. You might as well trigger a routine on your local computer, which will scp/rsync needed revision files there.10:57
blahdeblah: or alternatively, you'll have a server, which will have your central repo where you push to. and then it triggers scp/rsync to all other servers (deployment).10:58
ehabkost joined10:58
zombor joined10:59
bitkiller joined11:00
bushwakko left11:01
zombor left11:02
blahdeblah albel727: Perhaps i haven't explained myself well enough. There will still be local edits on those servers which must be revision-controlled.11:02
albel727 blahdeblah: hmm. wait a sec. so you will do some development not only on your laptop, but directly on the server too?11:03
blahdeblah It's not that they're all identical copies of a public repo - they have private local configurations which will never be shared; they will also have some parts of the tree just pulled from a public server regularly.11:03
albel727: yes11:03
kpreid left11:03
albel727 blahdeblah: that totally changes everything.11:03
blahdeblah I figured i mustn't have explained it clearly... ;-)11:04
icwiener left11:04
blahdeblah I have a bunch of clients who use the same application; they share a bunch of modules, but how those modules are put together is different in each case, and there are some *private* (i.e. non-published, proprietary to that client, etc.) changes as well.11:05
awilkins left11:05
dharrigan joined11:05
blahdeblah So i need at least a working copy on my laptop, a public server from which they can pull public code, and a working copy on their servers. But i would like to be able to do the push to public, pull from public in an automated manner, as efficiently as possible.11:06
fivetwentysix joined11:07
albel727 blahdeblah: now you completely confused me. do you have the need to push to their private repos, or not?11:08
blahdeblah I want to get changes that i push to my repo applied to their private working copies as quickly and as efficiently as possible.11:09
I don't care about pushing directly to the private repos, although i'm not averse to it if it happens to be the best way to solve the problem.11:09
albel727 blahdeblah: hmm. now, if their servers are not related to you in any way (i.e they're customers, and you don't have superuser access to them), then them setting up cron job is the only scalable way.11:11
dharrigan left11:12
albel727 blahdeblah: you can have a post update hook wich will send them mail/other notification about you updating your public repo, which might trigger their pull jobs, but otherwise...11:12
merlin83 left11:13
albel727 blahdeblah: can the following be an alternative: on your laptop you have a git repo with one branch, incorporating tree, common to all servers, and a single branch per server with its local modifications. when you upgrade common branch, you rebase your per-server branches on top of it and push them to their respective repos. (the purpose is to get rid of editing on servers directly)11:13
kanru left11:13
blahdeblah I have root access to the servers, but they are not strictly related to me or to my public repo. If i quit tomorrow because i'm sick of computers (not totally out of the question ;-), i want them to be able to function independently on their own.11:13
zorzar_ joined11:14
mett` joined11:15
albel727 blahdeblah: well, in that case, it is only their authority/responsibility to have regular pulls from your repo. as I've said, you can make a post update hook, which will send them proper messages/will trigger their cron job/etc, but that's it.11:15
zorzar left11:16
blahdeblah Maybe a regular cron job is the simplest & easiest way to sort it11:17
Incidentally, what does "rebase your per-server branches on top of it" mean?11:18
jas4711 left11:18
albel727 blahdeblah: yeah, looks like for your case a simple cron job would be ok. what is rebase? man git-rebase11:18
Gitbot blahdeblah: the git-rebase manpage can be found at http://git.or.cz/man/git-rebase11:18
blahdeblah pats the nice little Gitbot - good computer!11:19
twopak left11:20
albel727 blahdeblah: but "merge changes from common branch into each per-server branch" might be an even better way (I wanted to mention it too, it's just that I ran out of space due to irc line size constraint)11:20
blahdeblah :-)11:21
Merge just applies the same changesets to a different branch, doesn't it?11:21
twopak joined11:22
albel727 blahdeblah: yep. why?11:22
twopakGuest1262311:22
blahdeblah just trying to understand the difference between merge and rebase11:22
albel727 blahdeblah: main difference is in form of history produced, rather than in the result obtained. the result will be the same, but the history will be kept linear, when using rebase.11:24
blahdeblah yep - makes sense11:24
Just been reading the rebase manual11:24
Guest12623 left11:25
blahdeblah Does it make any difference in terms of the size of the local repo? If most of the changes are on the public repo (which i expect they will be), then it seems to me that rebase would result in more efficient use of space in the long run...11:26
albel727 blahdeblah: well yeah, there are some other peculiarities in usage of rebase (like rebasing public history leading to horrendous result), but some people prefer to rebase their local changes on top of upstream. and rebase is a bit more natural to cvs/svn users .11:26
blahdeblah Yeah - rebase reads like merging the changes from trunk into a branch11:26
albel727 sorry, have to go for a min. brb.11:27
blahdeblah no problem11:27
Thanks a lot for taking the time to understand my situation, albel727.11:27
doener merge merges, creating a single new commit. Rebase creates a whole new line of history, with completely new commits (all untested, of course)11:28
albel727 blahdeblah: you're welcome. =) it would be have been even better if I could actually advise something good, though. =/11:30
doener also note that unlike e.g. svn, git's merge is about merging lines of history, that changes are merged is just a side-effect, while svn's merge is just about merging changes11:30
blahdeblah albel727: at the moment, i'll settle for "good enough". ;-)11:31
albel727 blahdeblah: but speaking of size - no, I expect size differences to be negligible. the only difference is that merge sometimes (most of the time) creates an additional "merge commit", but that is negligible.11:32
blahdeblah doener: My carbon-based semantic parser failed on your last comment.11:32
icwiener joined11:33
albel727 blahdeblah: I don't see why one would be worrying about size of a repository anyway, unless you're keeping big binary files in it.11:33
blahdeblah Old habits die hard :-)11:33
Same reason that it's still useful to run JavaScript compressors - they're only small files, but every little bit counts!11:34
awilkins joined11:34
albel727 =)11:34
blahdeblah: doener means, that svn doesn't actually have a concept of "lines of history". branch in svn - is no more than a versioned copy in a subdirectory. it doesn't keep history of merges (which change came from where, etc). git does.11:35
Adaptee left11:37
blahdeblah Yeah - OK. I think i understand. In this environment, though, lines of history are at best irrelevant and at worst annoying distractions.11:37
FabianB albel727: since svn 1.5 it has basic branch tracking, but it's quite simple and only helps a little for merging11:38
liu joined11:38
albel727 FabianB: Didn't know that. Thanks =)11:39
nsdk joined11:40
intripoon joined11:41
cannonball joined11:44
cannonball left11:44
cannonball joined11:44
jcdny joined11:44
kpreid joined11:44
albel727 blahdeblah: well, I agree with you on that. But then, again, it's because you use git improperly. I'd say, you actually need deployment/software update system, but you try to re-purpose VCS to do it instead.11:45
artemb joined11:46
TuxCM left11:46
artemb Hi! There is a project on github whith two branches. I have a clone of the master. How can I switch to the other branch?11:46
parasti artemb: what you have is a clone of the repo, not a clone of one branch (master)11:47
artemb: so just switch to the other branch11:48
roop joined11:48
parasti artemb: list with "git branch -r", switch with "git checkout" (e.g., git checkout -b otherbranch origin/otherbranch)11:48
jelmer left11:48
parasti artemb: or perhaps "git checkout --track origin/otherbranch" as that sets up the config correctly11:49
artemb ok, cool. Thanx, parasti11:50
[1]xxoxx joined11:50
blahdeblah albel727: The application i'm working with (http://www.puppetlabs.com/) is itself the deployment tool, so your summation of the situation is kind of ironic to me. Git's role in the process is to manage the configuration & code of the deployment server. Sharing code is what git is good at, so it doesn't feel like a bad fit to me...11:51
parasti: What's the difference between checkout --track and clone?11:52
man git checkout11:52
Where's the bot gone?11:52
man git-checkout11:52
Gitbot blahdeblah: the git-checkout manpage can be found at http://git.or.cz/man/git-checkout11:52
blahdeblah heh11:52
goshawk left11:53
xxoxx left11:53
[1]xxoxxxxoxx11:53
parasti blahdeblah: checkout is a local operation11:53
chronos joined11:54
xiangfu joined11:54
blahdeblah So does "upstream" not necessarily imply a remote repo?11:54
parasti blahdeblah: also, checkout has nothing in common with clone11:54
blahdeblah: so the "difference" is "everything"11:54
Arthur left11:54
Arthur_ joined11:55
albel727 blahdeblah: haha. ironic, indeed. =) well, git might be ok doing that, but making deployment server bootstrap/update itself would be quite beautiful, imo =)11:55
blahdeblah albel727: Incestuous, more like... ;-)11:55
albel727 haha11:56
blahdeblah wonders why there's nothing about "upstream" in the FAQ that is so liberally discussed in the manual pages11:56
parasti blahdeblah: first you have to realize that very few operations actually interact with a remote repo11:56
Rhonda I need to reset a ref for a branch in a bare repository. I think git symbolic-ref would be the tool, but I'm unable to figure out what argument it requires.11:57
parasti blahdeblah: what Git does is fetch a remote repo's branches into its own repo, and all the operations happen on those copies11:57
radioman-lt joined11:57
shamrock joined11:57
parasti blahdeblah: these can be listed with git branch -r (for "remote-tracking branch")11:57
vaishalitrivedi joined11:58
parasti blahdeblah: even your local master is created by clone off of the copy called origin/master11:58
blahdeblah: and origin/master is updated by git fetch (which is used also when you do git pull)11:58
Rhonda: didn't you ask this some days ago...11:59
albel727 blahdeblah: yeah, I see the problems here, like "what to do, if some update brokes the updater and it will be unable to download subsequent fixes?", but otherwise, that's e.g how windows updates work =)12:00
blahdeblah parasti: So there is a considerable difference between tracking a remote repo, and the origin?12:00
_pingu joined12:00
seanius left12:00
Rhonda parasti: Likely, though in there it was for the default branch so I got away with using git reset12:00
blahdeblah albel727: yeah, not to mention that puppet doesn't do revision history.12:00
parasti blahdeblah: origin really means nothing, it is the default name for the remote configured by clone12:01
Rhonda parasti: But your memory is great - it must has been more than a week ago.12:01
parasti blahdeblah: it refers to a remote repo, there's no difference12:01
Rhonda: anyhow, git symbolic-ref acts on symbolic refs (refs pointing to refs, such as HEAD)12:01
Rhonda: what you probably want is git update-ref (git update-ref -h)12:01
Rhonda Ah, thanks.12:02
blahdeblah I think my brain is full for today. Thanks a lot for the help and understanding, parasti and albel727. Good night to you all!12:02
albel727 blahdeblah: well, it shouldn't revision its source code itself. that's what your public puppet repo is for. but it should keep program configuration preserved/revisioned in some database, shouldn't it?12:02
blahdeblah: oh, good night, then =)12:02
rhct joined12:03
artemb left12:03
workmad3 left12:03
mtkd joined12:03
mtkd left12:03
mtkd joined12:04
Rhonda parasti: Thanks, that did the trick! :)12:04
Uierth left12:05
nsdk left12:05
d0k joined12:06
jonesy joined12:07
seanius joined12:07
joe85 joined12:09
mtkd left12:09
Ryback_ joined12:10
Ryback_ left12:10
Ryback_ joined12:10
Arthur_ left12:11
Chaser_ left12:11
sebersole joined12:12
Chaser_ joined12:12
Arthur_ joined12:13
jaql joined12:16
jcdny left12:17
sebersole left12:18
sebersole joined12:19
sebersole left12:19
sebersole joined12:19
twopak joined12:19
sebersole left12:19
twopakGuest3170812:19
sebersole joined12:20
rson joined12:22
lvianna joined12:22
scarabx joined12:22
sitaktifsitaktif__12:25
icwiener left12:25
richardbronosky joined12:26
jaql left12:26
thierryp left12:26
vaishalitrivedi left12:27
mbroeker joined12:28
smuf joined12:29
allenwei left12:30
thierryp joined12:31
sitaktif__sitaktif_12:31
jaql joined12:32
IslandUsurper joined12:32
nonno left12:33
blee_ joined12:35
_pingu left12:35
kenneth_reitz joined12:36
PutrPutr|Away12:37
Anti-X left12:38
blahdeblah left12:40
Aleric How do I delete remote branches again?12:40
jast git push --delete remote branch12:40
Aleric Thank you jast :)12:40
I thought it was with a ':' somewhere :/12:40
albel727 Aleric: yeah it is possible with : too12:41
daedra joined12:41
albel727 Aleric: --delete option is only a recent addition, actually12:41
daedra how might I create a bare repository from an existing one?12:41
albel727 Aleric: old school way is git push <repo> :<branch>12:42
TSK joined12:42
albel727 daedra: man git clone --bare12:42
thiago joined12:43
daedra albel727: ok I've run git --bare init12:43
dvaske joined12:44
daedra inside my_project.git12:44
mplb joined12:44
albel727 daedra: or alternatively, just "git init --bare" on remote server, then in existing repo do "git remote add <remotename> <url>", and then git push <remotename> <branchname> will do its trick.12:44
daedra: ("git --bare init" == "git init --bare", in case you're wondering, so just go on with git remote add..., etc)12:45
TomV-415 joined12:45
albel727 daedra: if that is intended to become THE bare repo, where you'll push to, then convention is to call this repo "origin" (hence, git remote add origin <url>)12:46
Pew left12:47
robinbowes left12:50
TomV-415 I could use a bit of help with git - I am using git with heroku, and to push an app to heroku, the branch must be 'master'. Right now, I need to roll back the app on heroku... so I need to 'roll back' the 'master' branch.12:50
then push it to heroku..12:50
Seems easy, but not really clear how to revert and then push to a remote host.12:51
TSK left12:51
TomV-415 Can anyone help me?12:51
jaql are there any git based wiki's that would be good to use for something like site documentation?12:51
any good git based wikis*12:51
shiba_yu36 left12:51
daedra albel727: is it possible to add a local "remote server"12:52
i.e. just a directory on the same machine?12:52
albel727 daedra: sure, why not12:52
daedra how do I git remote add origin?12:53
albel727 daedra: just use direct path, instead of <url>12:53
daedra ah direct path. Got it12:53
thanks12:53
albel727 daedra: both relative and absolute paths work. there is also possibility to do the same using "file://<path>" url (but there is a subtle difference from just specifying path).12:54
TomV-415 If I do git reset 50200324d25477975cf7b4774bf02d7..... then commit, will that effectively set the master to the state of 50200... ?12:55
shiba_yu36 joined12:55
TomV-415 so I can push master to heroku?12:55
daedra albel727: hmm I get fatal: '/my/abs/path/bare_repo.git': unable to chdir or not a git archive12:55
fatal: The remote end hung up unexpectedly12:56
wagle_wagle12:56
TomV-415 or is 'git revert' a better choice?12:56
daedra after setting the remote origin to /my/abs/path/bare_repo.git12:56
albel727 TomV-415: yes, git reset is a way, but it is not recommended (and push will fail without additional options). git revert is a better choice indeed.12:56
pgib joined12:56
albel727 daedra: is that what git push tells you?12:56
daedra yes12:57
TomV-415 albel727: what options do I need to assure the push does not fail?12:57
jason237 joined12:57
hyperair joined12:57
albel727 TomV-415: it won't fail with git revert. with git reset it is --force option, but you might lose some changes from other developers. see faq non-ff12:58
Gitbot TomV-415: Your push would lose changes on the remote. See https://git.wiki.kernel.org/index.php/GitFaq#non-ff12:58
flazz joined12:58
scarabx left12:58
jcdny joined12:58
tsb joined12:59
albel727 daedra: you're sure, that bare_repo.git is an initialized bare git repo, and it resides at exactly that path? if yes, pastebin me .git/config from both of these repos, and also your exact "git remote add" command.13:00
TomV-415 albel727: I'm currently the only one working on this, so no need to worry about other developers, just need to get the code on heroku back to a earlier state. It looks like revert is good for going back one commit, but I need to go back quite a bit farther..13:00
tsb How can you update an exiting remote branch? My git pull doesn't work since the IP has changed.13:00
richardbronosky left13:00
TomV-415 tsb: you can delete and add remotes using git remote13:00
intripoon left13:00
albel727 TomV-415: well, I'm not sure about Heroku workings (and how it will react to that) but yeah git reset + git push --force should help you.13:01
vp2010on joined13:01
SethRobertson Depending on your version of git. You might need to adjust the git-config on the remote system13:01
coderdad joined13:01
SethRobertson I suggest making a backup with clone to prevent unintended disaster13:02
`git reset --hard SHA` or git reset --hard HEAD^^^^^^^^^^^^` or whatever also works13:02
mplb left13:02
tsb SethRobertson, you aren't talking to me right?13:03
TomV-415, okay, I'll have a look thanks13:03
SethRobertson TomV-41513:03
albel727 tsb: git remote set-url <remote> <newurl>13:03
tsb: man git-remote13:03
Gitbot tsb: the git-remote manpage can be found at http://git.or.cz/man/git-remote13:03
Chaser_ left13:04
TomV-415 SethRobertson: Thanks! Good idea to get the clone first!13:04
Chaser_ joined13:05
daedra albel727: my fault.. I was specifying the wrong path13:05
apologies :)13:05
mtkd joined13:05
albel727 daedra: no problem. glad it worked =)13:05
daedra thanks13:05
TomV-415 SethRobertson: Since I just created a local branch, will that survive the reset hard?13:05
verto joined13:06
TomV-415 SethRobertson: (so I can continue to fix the problem.)13:06
merlin83 joined13:07
yngress joined13:07
mtkd left13:07
SethRobertson TomV-415: It will survive13:07
TomV-415 SethRobertson: Thanks for your help!13:07
albel727: thanks for your help!13:08
albel727 TomV-415: you're welcome =)13:08
fivetwentysix left13:09
q0rban joined13:10
TomV-415 FYI: for heroku, the --force flag did the trick!13:11
Slix` joined13:13
corni joined13:14
corni left13:14
corni joined13:14
jason237 left13:14
smuf left13:15
mmendez534 left13:15
dvaske left13:15
dvaske joined13:15
zombor joined13:15
kpreid left13:15
brntbeer joined13:16
Anti-X joined13:18
tungtn left13:18
pgregory joined13:19
pgregory hi, heeeeelp13:20
jason237 joined13:20
pgregory some moron with a pick axe wiped out our power just as I'd pressed return on a git rebase operation!13:20
now I'm back up, but git is saying that the repo is "Not a git repository"13:20
is there any way to recover this?13:20
koltroll joined13:21
pgregory the .git folder is there13:21
AlexanderS left13:21
radioman-lt left13:21
jast lesson learned: use a different filesystem/journalling setting next time ;)13:21
kpreid joined13:21
jast is HEAD still there?13:21
pgregory jast: yeah right, on Windows, how exactly?13:21
jast ah well13:21
out of luck, I guess13:21
pgregory yes HEAD is there.13:21
smuf joined13:21
jast does it have some kind of usable content13:22
?13:22
pgregory but it still says not a repository13:22
I'd just done a git stash, so all my recent work is buried in the repo, I need to get access to that stuff.13:22
jast my guess is that the contents of HEAD got clobbered13:23
so, about that question? :)13:23
TomV-415 left13:24
AlexanderS joined13:24
pgregory jast: so, you don't thik it's possible to recove anything from this?13:25
all I need is the stash13:25
kylehayes joined13:26
jast I never said that. would you please answer the question?13:26
roop left13:28
pgregory which question?13:28
fivetwentysix joined13:28
xiangfu left13:28
jast 152207 < jast> does it have some kind of usable content13:28
galderz_ joined13:28
fivetwentysix left13:28
jast like, you know, text or a sha113:28
pgregory it looks like rubbish, if by 'it' you mean HEAD13:28
gilaniali joined13:28
jast in that case, overwrite the contents with exactly this: ref:refs/heads/master13:29
or whatever other branch you have13:29
ideally whatever you had last checked out13:29
kjy112 joined13:29
galderz left13:29
jast then, to be sure that there are no traces of the rebase left, git rebase --abort13:29
galderz_galderz13:29
kjy112 hello, how do you remove one of your repositories?13:29
jast whoops13:29
albel727 pgregory: try "git-symbolic-ref HEAD refs/heads/master"13:29
jast actually, "ref: refs/heads/master"13:29
SethRobertson kjy112: rm -rf directory-name; or is this question more subtle?13:30
albel727 SethRobertson: damn, I was going to make this exact joke, but you were faster =)13:31
kjy112 oops sorry i thought this channel is github13:31
mfacenet joined13:31
drubies_ joined13:31
tama joined13:31
pgregory jast: doing that has at least allowed git to identify the repository, it now says error: bad signature fatal: index file corrupt13:32
SethRobertson git fsck --full13:32
jast rm .git/index; git reset13:32
tsb left13:32
icwiener joined13:33
dwmw2_gonedwmw213:34
lzyy joined13:34
pgregory jast: everything I do results in error: Invalid HEAD13:34
ph^_ left13:34
MikhX left13:34
MikhX joined13:34
bhosie joined13:36
whaley joined13:36
jast pgregory: did you use master as in my example or a different branch?13:37
yhager joined13:37
pgregory jast: master13:37
I've managed to get access to the stash, and get a diff out of it.13:37
icwiener_ joined13:37
pgregory so I'm now re-cloning from the origin, hopefully I can re-apply the patch and get back to business.13:37
jast oh, so we're not going to recover the rest... okay13:38
Slix` left13:38
pgregory jast: I'm happy to try, but it was basically the changes in that stash that I really needed.13:39
mbroeker left13:39
pgregory if you have any other ideas, I'm all ears, good to know these things anyway.13:39
daedra left13:39
icwiener left13:39
jast well, I think the branch might be broken, too13:39
does 'git show master' work without errors?13:40
pgregory fatal: ambiguous argument 'master': unknown revision or path not in the working13:40
tree.13:40
Use '--' to separate paths from revisionsfatal: ambiguous argument 'master': unknown revision or path not in the working13:40
tree.13:40
Use '--' to separate paths from revisions13:40
roop joined13:40
jast what does 'git rev-parse refs/heads/master' say?13:40
pgregory same13:41
albel727 pgregory: "git show master --"13:41
pgregory but with refs/heads/master13:41
jast right, so the branch ref is likely clobbered, too13:41
pgregory fatal: bad revision 'master'13:41
jast well, how about: 'git show master@{0}'13:41
dvaske left13:42
pgregory same, with the different name again.13:42
dvaske joined13:42
shiba_yu36 left13:42
albel727 pgregory: "git show refs/heads/master@{0}"13:43
pgregory just to be clear, I wrote the exact text 'ref: refs/heads/master' into the HEAD file in .git.13:43
jast yeah, that part should be fine13:43
but apparently the thing that stores what master itself points to is broken, too13:43
have a look at .git/logs/refs/heads/master. gibberish or textual contents?13:44
pgregory hmm, clutching at straws, but I just copied .git/ORIG_HEAD to .git/HEAD and it seems to be better.13:44
gitk at least comes up now13:44
jast what's in that now?13:44
corni left13:45
pgregory it's a commit id13:45
jast ah13:45
well, that won't get us the branch back, I'm afraid13:45
pgregory refs/heads/master looks like gibberish13:46
jast how about logs/refs/heads/master13:46
pgregory sequence of ids13:46
albel727 I guess "copy orig_head refs/heads/master", and "git update-ref refs/heads/master refs/heads/master@{0}" will do the trick (as long as reflog is ok)13:46
shiba_yu36 joined13:46
getxsick is it possible to have a branch with few changes which is visible for other branches (e.g. master) but when someone pulls the master, these changes are not pulled?13:47
verto left13:47
pgregory albel727: shall I give that a go?13:47
albel727 jast: I'd do that in your place, but jast is the main advisor to you here, so I dare not to interfere.13:47
dvaske left13:48
jast yeah, go with that13:48
kjy112 left13:48
dvaske joined13:48
jast I didn't think of that. elegant way of saving more manual work.13:48
pgregory fatal: Log .git/logs/refs/heads/master is corrupt.13:49
albel727 jast: sorry, I wanted to say pgregory: in previous msg.13:49
getxsick hm, anyone?13:49
albel727 pgregory: that was the update-ref output, I guess?13:49
pgregory albel727: yes13:49
Bass10 joined13:49
albel727 pgregory: well, then there is no helping it.13:50
pgregory albel727: ok, thanks for all the efforts, I'll rebuild from origin and apply my changes.13:50
albel727 pgregory: wait13:50
jast getxsick: 'visible for other branches'?13:50
pgregory sincerely thanks for trying.13:50
getxsick jast: i mean to see these changes in e.g. master branch13:50
albel727 pgregory: meaning, there is no helping it but looking int logs/refs/heads/master and picking correct sha13:50
jast getxsick: if they are in master, they are in master.13:50
albel727 pgregory: open that log, and pick/memorize the second sha in the latest line.13:51
getxsick jast: i have branch b1 and master. i do some changes in b1, then i want to see them also in master. i can simply merge it but then if someone would pull master he get these changes either. how to avoid it?13:51
albel727 pgregory: then open .git/refs/heads/master, and write that sha down here13:52
jast getxsick: well, you have to choose. either see them in master (in which case they are *part of* master) or don't (in which case they are not part of master and won't get merged in)13:52
mbroeker joined13:53
getxsick jast: so there is no chance to make it visible from master but forbid to pull these changes ?13:53
pgregory albel727: that's exactly what's alredy in refs/heads/master13:53
brntbeer left13:53
jast getxsick: nope13:53
getxsick ;/13:53
jast pgregory: well, in that case you are probably done13:53
pgregory it seems to be logs/refs/heads/master that is corrupt, the last line is gibberish13:53
jast ah13:53
getxsick jast: anything like svn:external or something?13:53
jast getxsick: http://git.or.cz/man/git-submodule13:53
albel727 pgregory: well, remove that last line then.13:53
pgregory albel727: ok13:54
albel727: update-refs now returns safely13:54
or at least cleanly13:54
albel727 pgregory: well, that should be it. see if you lost some changes from master. if not - then we're done, probably.13:55
jast does 'git show' now give you the most recent commit that you had?13:55
pgregory jast: it gives the commit just before the rebase13:56
rgr joined13:56
albel727 pgregory: did you do git rebase --abort, btw?13:56
pgregory jast: so the rebase hasn't been applied, but if I try to it just comes back saying everythign is 'D'13:56
akahn joined13:56
pgregory albel727: No rebase in progress?13:56
getxsick jast: ok, but this is only for whole files. i would like to keep some changes like "foreing"13:56
bhosie left13:57
jast getxsick: it's for directories into which you can map other repositories13:57
albel727 pgregory: you're already trying to do another git rebase? what does "git status" say?13:57
jast just like svn externals, only that we don't support floating versions13:57
pgregory albel727: Not on any branch, but otherwise, as expected.13:58
albel727 pgregory: oh, so do git checkout master, first.13:58
pgregory albel727: done, now rebase?13:58
albel727 pgregory: yeah, now try it.13:58
jast sure, if you want to :)13:58
getxsick jast: let me show you a small usecase. in some files there are specific configs which depend on the repository location. unfortunately, these files are not only config files but also with some code which has to be maintain and sync. so i was thinking to make a special branch just to change a config data, but to avoid to sync it to other repos as it would break their configs13:59
xiong joined13:59
alberto56 joined14:00
jast the usual way to deal with stuff like that is to keep only a template for the config file in the repository14:00
albel727 getxsick: I'm not sure I've completely understand your problem, but you may want to look at this: thomasrast.ch/git/local-config.html14:00
getxsick: http://thomasrast.ch/git/local-config.html14:00
dl9pf_dl9pf14:01
dl9pf left14:01
dl9pf joined14:01
Kira joined14:01
pgregory albel727: and jast: magic, all seems well with the world again.14:02
aah joined14:02
jast cool.14:02
pgregory thanks sooooo much, saved my life!14:03
well, maybe that's a bit melodramatic, but saved a lot of pain at least :)14:03
avinashhm left14:03
albel727 pgregory: not so sure we helped that much. git repos are hard to kill. anyway, you're welcome =)14:03
pgregory albel727: that's really good to know, as I've just finishes persuading the powers that be at my company that we should switch completely.14:04
although as they are currently running CVS, it's not that hard a sell :)14:04
albel727 lol14:04
getxsick albel727: yep. this is it!14:04
pgregory at least to anyone with half a brain.14:04
avinashhm joined14:04
albel727 pgregory: too much of a requirement nowadays =P14:04
RoosterJuice_ joined14:05
pgregory :)14:05
albel727 is not sure, how much of a brain he has himself =D14:05
pom__ Can I combine several commits into a single one?14:05
getxsick btw. interesting that git doesn't have it as a standard. something like 'global branch' or something14:05
fr0sty pom__: man git-rebase and look at --interactive14:06
Gitbot pom__: the git-rebase manpage can be found at http://git.or.cz/man/git-rebase14:06
pgregory pom__: let me take a stab at this, yes.14:06
but you should never do it if you've already pushed.14:06
jast pom__: sure, but note that it's usually not advisable if someone else has already obtained the separate commits14:06
pom__ jast: They have not. It's only on a local branch.14:06
RoosterJuice_ can I create a git repo of a subdirectory that is part of a bigger git repo? for example if I have a django app as part of a django project, can I make a repo of that subdirectory the same way?14:07
pgregory pom__: git rebase --interactive then14:07
albel727 pom__: yeah, then git-rebase --interactive, or maybe even man git-merge --squash is the way14:07
Gitbot pom__: the git-merge manpage can be found at http://git.or.cz/man/git-merge14:07
metaperl left14:07
xiangfu joined14:07
jast rebase -i is one of the supremely awesome tools in git :)14:08
albel727 concurs14:08
ymasory left14:09
freimatz left14:10
pom__ I have a little trouble following exactly. "git rebase -i" outputs help. I guess it is because there is nothing to be commited currently.14:10
sivy joined14:11
getxsick HEAD^0 is the same as HEAD^ ?14:11
parasti pom__: it's because that is not valid syntax14:11
jast pom__: git rebase -i <commit before the first one you want to change>14:12
getxsick ah, it's detaching14:12
jast getxsick: HEAD^ = HEAD^114:12
pom__ To end up here, I did the following. 1) Started new branch. 2) Edited and committeed intermittently (some commits produce breakage) 3) My final merge I'd like to have as a single commit since the intermediate ones might produce non-working codebase.14:12
getxsick jast: and HEAD^0 = detach HEAD, right?14:12
jast that's one use case, yes14:13
fr0sty getxsick: HEAD^0 is invalid14:13
jast fr0sty: no14:13
parasti pom__: it's a good idea to check the manpage for a command you just learned of, because you won't always get copy paste solution in here14:13
getxsick fr0sty: ? i see it's working14:13
corecode joined14:13
jast pom__: if you just want to merge this stuff to another branch, just use git merge --squash14:13
corecode hey14:13
fr0sty shakes head14:13
fr0sty getxsick: 'git checkout HEAD' will detach.14:13
corecode i'm a bit unsure how i best merge another repo into a subtree14:13
jast fr0sty: no14:14
corecode -Xsubtree=debian/ doesn't do what i want14:14
parasti fr0sty: git checkout HEAD^0 will, HEAD will do nothing14:14
jast the goggles! they do nothing!14:14
fr0sty needs coffee, sleep, something...14:14
steph021 left14:14
parasti come to think of it, my head usually does nothing, maybe I should try head^014:15
pgib left14:15
g0bl1n left14:15
pgregory left14:15
jast corecode: you could just use the third-party tool git-subtree :)14:15
the subtree merge strategy tries to make the merged stuff fit structurally with what's already in the target branch14:16
devanjan left14:16
psoo left14:16
getxsick how to change author of already comitted change?14:16
pigdude joined14:17
jast latest commit?14:17
getxsick jast: no14:17
jast well, then you'll have to use something like interactive rebase14:17
set the commit in question to 'edit', then when it stops at that point, git commit --amend --author="A B [email@hidden.address]14:17
infinity0 any maintainers of git-svn in here?14:17
corecode jast: can i do it with plumbing?14:17
jason237 is there a way to cherry-pick a sequence of commits in a single command?14:18
icwiener_ left14:18
corecode no14:18
icwiener_ joined14:18
artefon left14:18
dvaske_ joined14:18
corecode for loop or xargs -n114:18
jast jason237: recent versions of git support cherry-picking ranges14:18
jason237 jast: ah, so I see, thanks14:18
fowlduck joined14:19
jast corecode: yes, with git read-tree --prefix=14:19
that doesn't automatically become a merge, though14:20
*merge commit14:20
corecode yes, that's what i'm looking at14:20
do a merge -s ours after?14:20
jast no14:20
kylehayes A developer on my team is getting the following error from EGit when attempting git status: "fatal: unable to create '[path]/.git/index.lock' : File exists14:21
jast git merge -s ours --no-commit <other branch>, then the read-tree incantation, then commit14:21
boombatower joined14:21
boombatower left14:21
boombatower joined14:21
_ikke_ I have a php file which git sees as binary14:21
dvaske left14:21
jast kylehayes: either another operation is still running or a previous command crashed. in the latter case, tell him to remove that file.14:21
pom__ jast: --squash was the one I needed. Thanks all!14:22
corecode jast: thanks14:22
kylehayes jast: he does remove the file...is it due to him using the command-line and egit at the same time maybe?14:22
jast corecode: make sure to check that read-tree gives you the right result :}14:22
_ikke_ I have a php file which git sees as binary. How can I tell git to treat the file as just a text file?14:22
winterweaver joined14:22
shiba_yu36 left14:22
jast kylehayes: possibly. whenever an operation finishes it removes the lockfile, so it's only likely to happen if both are literally running at the same time. tell him not to do that. :}14:22
_ikke_: http://git.or.cz/man/gitattributes14:23
kylehayes jast: haha, excellent. Thanks!14:23
converge_ joined14:23
_ikke_ jast: But how comes it sees the file as binary in the first place?14:23
jast _ikke_: the detection is not particularly smart14:24
I don't recall the details right now, though14:24
jas4711 joined14:25
gilaniali left14:25
aah left14:26
[exa] _ikke_: can you post a sample of the PHP? and check with xxd whether there is no utf8 mark on the beginning?14:26
dvaske_ left14:27
avinashhm hi, is it possible to reset to 1 commit previos .. something like HEAD-1 ... ??? i tried 'git reset --hard HEAD-1' .. .not working .. any ideas ??14:27
_ikke_ [exa]: There doesn't seem to be a utf8 mark, just the contents of the file at the first position14:27
avinashhm: HEAD^114:27
jast avinashhm: HEAD~1 or simply HEAD~14:28
_ikke_ oosp14:28
jason237 left14:28
avinashhm _ikke_, jast .. thanks a lot .. :-)14:28
jast '-' is a valid character in branch names, that's why we use the weird squiggly instead14:28
^1 is the same as ~1, but the same is not true for ^2 and ~214:28
dvaske_ joined14:28
MattDiPasquale joined14:28
avinashhm jast, is it ... ?? I actually thought it was ..14:29
_ikke_ [exa]: This is the output of the file: http://pastie.org/125558714:29
sonnym left14:29
jast ^1 = first parent, ^2 = second parent. ~1 = first parent, ~2 = first-first grandparent14:30
and so on14:30
cytrinox_ joined14:30
dunpeal joined14:30
dels joined14:30
esc left14:30
avinashhm so to reverse 3 commits , what should we use ??14:30
esc_ joined14:31
dunpeal avinashhm: git revert14:31
jast I don't think that was the question :)14:31
_ikke_ head~314:31
[exa] _ikke_: seems perfectly valid... is there some weird UTF stuff in that?14:31
dunpeal heh, OK14:31
On bare repo /repo, I want to get the contents of file bar/foo.txt on reference ref. How?14:31
_ikke_ [exa]: Doesn't seem so14:32
avinashhm so 4 commits head~4 and so on right ???14:32
burg joined14:32
corecode dunpeal: git show or so?14:32
_ikke_ [exa]: There is a commit message where someone mention he had deleted some weird characters on the end, maybe that was the problem14:32
esc_ left14:32
jast avinashhm: yes, amazingly ;)14:33
avinashhm jast, :-) ... hehe .. it took me a while to sink ...14:33
dunpeal corecode: hm, no workie14:33
FabianB_ joined14:33
burg Question: I used 'git svn clone -r9000' to start working on an SVN repository. Is it possible to do 'git svn blame' on prior revisions than the one I started the clone with? (e.g: 8000 ?)14:33
dunpeal avinashhm: guess how you refer to 5 commits back?!14:33
pgib joined14:34
cytrinox left14:34
cytrinox_cytrinox14:34
dunpeal burg: no.14:34
avinashhm dunpeal, git reset head ~5 ..14:34
:-) ..14:34
dharrigan joined14:34
dunpeal burg: you're not importing the information, how is Git supposed to know?14:34
FabianB left14:34
burg dunpeal: i was hoping it would use native SVN BLAME to do that14:34
rayners joined14:35
burg dunpeal: that's what I thought was "git svn blame" purpose was14:35
dunpeal burg: maybe it does, but if you want the history in git, you need to import it.14:35
esc joined14:36
esc left14:36
esc joined14:36
dunpeal git svn blame might work against a server, but server may be gone.14:36
jast: saw my question? ;)14:36
jast dunpeal: git show ref:bar/foo.txt14:36
mtkd joined14:37
nizze joined14:37
nizze Hello all!14:37
mtkd left14:37
nizze How can I remove these http://imgur.com/Mr4KB14:37
mtkd joined14:37
jast these what? the blue circles? :)14:37
nizze No14:38
The right side branch14:38
or sequence of commits14:38
jast looks like you're viewing several branches at the same time14:39
nizze Yes14:39
that's gitk --all14:39
infinity0 how do i access the current commit message from a pre-commit hook?14:39
sako left14:39
jmcantrell joined14:39
sitaram nizze: Ctrl-F5 :)14:40
corecode infinity0: git log?14:40
or so14:40
nizze It worked, but what happened?14:40
jast infinity0: it's run before the commit message is known. use the prepare-commit-msg hook if you want to muck around with the message.14:40
infinity0 jast: ah ok thanks14:40
nizze Is ctrl-f5 different from plain f514:40
?14:40
giallu left14:40
jast yes, see the menu14:41
one is update, the other is reload14:41
spearce joined14:41
jast though I have no idea what the difference is14:41
skoop left14:41
jast badly named if you ask me14:41
dunpeal left14:41
sako joined14:41
joe85 left14:42
_ikke_ [exa]: I found a blob where there were a few 0 bytes on the end14:43
nizze Okay thanks guys14:43
jast all right, I gotta go. have a nice day, everyone.14:44
nizze Bye, thanks14:44
burg left14:45
rayners left14:46
dharrigan left14:47
t0rc joined14:48
lzyy left14:50
xiangfu left14:51
sftp joined14:52
jmcantrell left14:54
Anti-X left14:54
kylehayes left14:57
infinity0 is there a pre-merge hook or equivalent?14:57
i've got a git repo mirroring an svn repo, and i want to reject merges of commits that haven't been svn-dcommited (because that screws with git-svn)14:58
jas4711 left14:58
FauxFaux only just noticed that git push --all didn't push tags. :/14:59
hobodave left14:59
Anti-X joined14:59
hobodave joined14:59
SianaGearz left14:59
tj joined15:01
fr0sty infinity0: no pre-merge hook, sorry.15:01
tjtjholowaychuk15:01
dvaske_ left15:02
infinity0 oh :( is there any other way to reject merges?15:02
dvaske joined15:02
fr0sty post-commit can write a nasty message...15:02
infinity0 lol15:03
brajesh joined15:03
fr0sty you might be able to use the commit-msg hook15:03
infinity0 hmm and then run git reset --hard HEAD^ lol15:03
rpg joined15:03
hobodave left15:04
fr0sty it would have the branch-names in the message and you could investigate the commits there to see f they are dcommitted and fail there.15:04
dvaske left15:04
fr0sty I'm not sure how reliably you can parse that template message though...15:04
dvaske joined15:04
infinity0 i can get the parent SHA1s of the commit and check if they have the git-svn-id thing15:04
just need a hook to do it.. i'll try commit-msg but neither pre-commit nor prepare-commit-msg were called for automatic merges using "git merge"15:05
koltroll left15:05
teukka left15:05
dvaske left15:05
dvaske_ joined15:05
lamont left15:05
infinity0 no, it bypasses commit-msg too :/15:06
albel727 infinity0: hmm. are you sure you had set the executable bit on hook?15:07
Kira If I edit blah.txt, 'git add' it, and modify blah.txt again, is there a way I can recover what is in the index, discarding the later modification using a git command?15:07
infinity0 yeah they're all executable15:07
it runs for "normal" commits15:07
just not "git-merge" with no conflicts15:07
parasti because there is no commit, it's a fast forward by default15:08
liu left15:08
infinity0 parasti: it's not a ff, it says "Merge made by recursive."15:09
parasti and you have a merge commit?15:09
infinity0 yes15:09
parasti hm15:09
Theravadan joined15:10
converge_ left15:11
sambarino left15:12
carutsu joined15:12
albel727 Kira: try "git checkout -- <file>"15:13
marc_kdab left15:13
sonnym joined15:13
kpreid left15:14
ch077179_ left15:15
cbreak_work left15:16
fr0sty infinity0: what is in your commit-msg? also, you are not passing --no-verify, right?15:17
carutsu left15:17
wsclock joined15:17
fr0sty what happens if your commit-msg hook is: 'echo rejecting commit && false'15:18
rayners joined15:18
goshawk joined15:18
Kira albel727: looks like 'git checkout -m -- <file>' would do it.15:18
carutsu_ joined15:19
akamike left15:20
malfy left15:20
malfy joined15:20
malfy left15:20
malfy joined15:20
albel727 Kira: -m doesn't make any sense in this context. but if it works for you, who cares.15:21
fr0sty Kira, not necessary to use the 'merge' argument. it might actually do something other than you want.15:21
it sounded like you wanted to discard the later changes instead of merging with them.15:21
mxmdrone joined15:21
albel727 Kira: well, actually, it might even hurt, now that I think of it. if you indeed wanted to do what I and fr0sty are thinking, then don't use -m.15:23
Yuffster joined15:24
CoinOpeBoy joined15:24
Kira ah, looks like I misunderstood that last sentence about -m in 'git help checkout'.15:24
beatak joined15:25
infinity0 fr0sty: atm, just "echo ----commit-msg:$@" and yeah no --no-verify15:25
t3i joined15:25
Putr|AwayPutr15:26
psoo joined15:26
fr0sty__ joined15:27
kipras joined15:29
psankar left15:30
tizbac joined15:30
fr0sty_ left15:31
aidan joined15:31
aidan I've got a folder in my git repos, and I want to make the contents of that folder the base of the repository. Is this possible?15:32
albel727 infinity0: I'd advise against plain echo. maybe git merge redirects stdout > /dev/null. try echoing to a file, or return non-zero, so git aborts.15:32
err_ok joined15:33
fr0sty infinity0: add false to the end of the script so the commit will be rejected. Also, take albel727's suggestion and write to, or just touch a file15:33
infinity0 oh ok i'll try that thanks15:33
err_ok left15:34
drubies_ left15:34
icwiener_ left15:35
sh1mmer left15:36
richardbronosky joined15:36
hobodave joined15:37
infinity0 albel727, fr0sty: no, still nothing15:38
Leemp left15:38
warbee joined15:38
tama left15:38
rayners left15:38
kanru joined15:39
rayners joined15:39
aidan I was thinking about moving everything manually, like git mv basefolder/foo ../, git mv basefolder/bar ../15:39
fr0sty aiden: man git-filter-branch and look at --subdirectory-filter15:40
Gitbot aiden: the git-filter-branch manpage can be found at http://git.or.cz/man/git-filter-branch15:40
icwiener joined15:40
fr0sty infinity0: what is your git version?15:41
GarethAdams|Work joined15:41
infinity0 git version 1.7.115:42
aidan nice thanks15:42
infinity0 i can send you my test script if you want15:42
albel727 infinity0: sure, pastebin it.15:43
OOPMan left15:43
yuriks_ left15:43
yuriks_ joined15:43
ymasory joined15:44
EricInBNE left15:44
nuoHep left15:45
infinity0 albel727: http://pastebin.com/An0My9ZD that's two files, the test script and the commit-msg hook15:46
ignore the "fuck up the history" parts, that's to test a bug in git-svn15:46
albel727 looks15:46
Uierth joined15:47
infinity0 (you'll need svn btw)15:47
kanru left15:47
Zhonghua left15:48
nevyn^_ joined15:49
thiago left15:49
fr0sty infinity0: what does 'git log --oneline --graph --decorate' show after you run that script?15:49
rvsjoen left15:49
dukebag joined15:50
teukka joined15:50
teukka left15:50
teukka joined15:50
zain left15:50
boucman joined15:50
zain joined15:50
infinity0 fr0sty: http://pastebin.com/CxdAq5M415:51
sako left15:51
nevyn^ left15:51
rvsjoen joined15:51
nevyn^_ left15:52
nuoHep joined15:52
bhosie joined15:52
fr0sty infinity0: where is the commit-msg file?15:52
ah, missed the ln lines...15:53
and it is executable, right? you should be seeing output every time you commit...15:54
boucman hello everybody15:54
khmarbaise joined15:55
infinity0 fr0sty: yes, i am, except for the auto-merge15:55
boucman i'm trying to push some changes through git-svn, but I get an error message15:55
infinity0 i guess git just isn't calling the hook for that15:55
boucman Le système de fichiers ne contient pas cet élément: File not found: transaction '47242-1', path '/changelog' at /usr/lib/git-core/git-svn line 57215:55
i've been googling a little but couldn't find anything relevant... anybody have a clue to help me investigate ?15:55
aspotashev joined15:56
fr0sty what if you did prepare-commit-msg instead?15:56
mtkd left15:56
vital left15:57
zain left15:57
vital joined15:57
infinity0 fr0sty: same15:57
brajesh left15:58
albel727 can't seem to make prepare-commit-msg working for him, too, for some reason.15:58
_Vi joined15:58
lamont` joined15:58
LiamH joined15:58
albel727 s/can't seem/seem unable to/15:59
albel727 shoots himself15:59
fr0sty infinity0: take the post-merge does reset --hard HEAD^ route, then.15:59
OOPMan joined15:59
infinity0 yeah i'll try that15:59
not sure if it's "safe", but i'll try it15:59
fr0sty the commit is still in the reflog if you need it.16:00
ka1ser left16:02
Heimidal joined16:02
Heimidal left16:02
coreyballou joined16:03
Heimidal joined16:03
zain joined16:04
cballou left16:04
coreyballoucballou16:04
kpreid joined16:04
aah joined16:04
infinity0 cool, thanks16:04
_ollie left16:05
jason237 joined16:05
jsemar joined16:05
nevyn^ joined16:06
Leemp joined16:06
Dave^| joined16:09
twomashi joined16:09
silver_hook joined16:09
silver_hook Hullo.16:09
twomashi Hola16:10
silver_hook Noob question after RTFMing, but being an idiot due to IANAC IAAL PEBKAC problem:16:10
armenb when I commit changes to a git repository, what does git use to represent those changes? does it use diff? or something else?16:10
silver_hook Do I have to add files that I changed *every* time I edit them?16:10
fr0sty armenb: read 'git for computer scientists' or 'git from the bottom up'16:11
armenb fr0sty: thanks!16:11
fr0sty they have good explanations of how git handles content.16:11
adamm joined16:11
PerlJam silver_hook: you're adding changes, not files.16:11
silver_hook PerlJam: Ah, OK. That explains it.16:11
twomashi left16:12
patrikf silver_hook: only when you want to commit these changes16:12
steph021 joined16:12
patrikf silver_hook: and if you generally don't make changes that you don't want to commit, there's add -u and commit -a16:12
t3i left16:12
silver_hook OK, and if I use 'git commit -a' then it adds only changes of files that are already tracked or every file in the dir?16:13
PerlJam the former16:13
armenb silver_hook: only files that are tracked (i.e. "git add"-ed)16:14
silver_hook Sweet.16:14
armenb silver_hook: you have to "add files [you] changed *every* time" because git doesn't commit directly from the working tree to the repository16:16
silver_hook Aaaaaand, therefore the difference between staged and unstaged changes is that the former were added to git, but not commited; while the latter were neither, right?16:16
armenb silver_hook: you manually register/confirm your changes in "the index" (think of it as a staging area)16:16
before you actually commit.16:16
patrikf silver_hook: correct. the term "staged" means what you mean with "added"16:16
silver_hook OK, and if I committed before adding changes, I basically just spammed my log?16:17
patrikf silver_hook: you usually say changes are "staged" or "added to the index" (which is the file that represents "staging area")16:17
khmarbaise_ joined16:17
patrikf silver_hook: commit won't let you make empty commits by default, so you must've done something (check with log -p or --stat)16:17
silver_hook patrikf: Hmmm, OK.16:18
Thanks for explaining :]16:18
chrisshattuck left16:18
philthno2 left16:19
khmarbaise left16:19
khmarbaise_khmarbaise16:19
cytrinox_ joined16:19
erez left16:20
marc_kdab joined16:20
Fissure1Fissure16:22
chrisshattuck joined16:22
icwiener left16:23
cytrinox left16:23
cytrinox_cytrinox16:23
tama joined16:24
nevyn^ left16:24
necromancer joined16:25
gilaniali joined16:27
bauruine joined16:27
Noldorin joined16:27
jim joined16:27
Noldorin hi. can i control what Git does with my EOLs when i clone a branch?16:27
rayners left16:29
jim hi... say I have a repo with a remote, but the address of the remote later changes... would I be able to edit the remote address somehow to accomodate the new location?16:29
necromancer yeah just git remote -r <name>16:29
i'm sorry i think it's git remote rm <name>16:30
and git remote add <name> <address>16:30
then git push <name>16:30
jim if I'm pushing to the remote16:30
if it's read-only, I'd pull?16:30
ari-_-e left16:31
armenb wow. "git from the bottom up" is awesome. why the hell haven't i found this document before?16:31
corni joined16:31
rpbertp13 joined16:31
priidu left16:31
nevyn^ joined16:31
jim armenb, url?16:32
kenichi joined16:32
sako joined16:33
khmarbaise left16:33
_ollie joined16:34
IslandUsurperIslandUsurperAFK16:34
marcob left16:35
dvaske_ left16:35
dvaske joined16:35
jason237 left16:35
ka1ser joined16:37
joel_falcou joined16:37
_ollie left16:38
drako left16:38
dharriga1 joined16:38
AlexP left16:39
jason237 joined16:39
fr0sty Noldorin: man git-config and look at core.eol16:39
Gitbot Noldorin: the git-config manpage can be found at http://git.or.cz/man/git-config16:39
orafu joined16:39
Noldorin ok cheers16:39
fr0sty jim: just edit .git/config and change the url16:40
akahn left16:40
fr0sty armenb: because you never asked... :-)16:40
zxww joined16:40
zxww left16:40
Noldorin hmm what's the git equivalent of hg update?16:41
of bzr update16:42
hobodave left16:42
_Vi left16:42
dvaske left16:43
andyl left16:43
dvaske joined16:43
AlexP joined16:43
_Vi joined16:43
awilkins left16:43
winterweaver left16:44
_Vi left16:44
Evious joined16:44
whaley left16:44
karamorf joined16:46
Theravadan left16:46
_Vi joined16:46
khmarbaise joined16:47
eldragon left16:47
majoh left16:47
_Vi left16:47
kpreid left16:47
sako what does bzr update do/.16:48
just updates or merges as well?16:48
_Vi joined16:48
axiom joined16:48
axiommajoh16:49
_ollie joined16:49
dharriga1 left16:50
towski joined16:50
eldragon joined16:50
vp2010onvpon16:51
dvaske left16:51
necromancernecromancer`brb16:51
dvaske_ joined16:51
Schmallon left16:52
Noldorin sako, it fetches changes on the remote branch and updates the current branch with them16:52
hmm...i'm getting a lot of errors cloning this git repo, of the form:16:52
error: git checkout-index: unable to create file docs/perl/SWF::Action.html (Inv16:52
alid argument)16:52
_Vi left16:53
vpon left16:53
sako Noldorin: i think you want git pull16:53
as the "equivalent", though not sure if it is 100% equivalent in functionality16:53
Theravadan joined16:54
sako git pull fetches and merges16:54
Noldorin sako, that's what i thought, but if i for example delete local files and want to refresh the branch from the server, what do i do?16:54
in bzr it's just bzr update16:54
_ollie left16:55
nevyn^ left16:55
sako hmm16:57
you might need to do a git checkout16:57
dvaske_ left16:57
sako i know to revert a file to what is on the server.. i just run git checkout filename16:57
not sure if that works for files you deleted locally16:57
dvaske joined16:57
jason237 if you want to set your branch to the server branch, use git reset --hard origin/branch16:57
Noldorin jason237, ah, thanks16:58
sako nice i learned something new16:58
mxmdrone left16:58
khmarbaise left16:58
jherdman joined16:58
sako jason237: whats --hard do?16:58
jason237 --hard updates the working tree as well16:58
spearce left16:58
gorlak1 left16:59
jason237 note, that will throw away any local commits16:59
Noldorin i see16:59
jason237 well, they'll still be in the repo, just not in your branch anymore16:59
davidfetter joined16:59
davzie left17:00
Noldorin jason237, hrmm. so i want to clone a remote branch, but how do i give it clone.eol before it clones?17:00
Zephyrus joined17:00
dvaske left17:01
drako joined17:01
drako left17:01
drako joined17:01
dvaske joined17:01
smuf left17:01
jason237 well, I think core.eol only affects the working copy17:01
bhosie left17:01
khmarbaise joined17:01
Noldorin jason237, yeah. the problem is that when it clones it uses native (windows) EOL17:02
but i want unix EOL17:02
i.e. lf rather than crlf17:02
jason237 I'd try git checkout -f or git reset --hard HEAD to see if they update the EOL convention17:02
if not, move .git out of the way, blow away the working tree, move .git back and then try those commands again17:03
(or one of them)17:03
Noldorin will do17:04
jschoolcraft joined17:05
ludde joined17:06
programble joined17:07
gp5st joined17:08
khmarbaise left17:08
ludde3 left17:08
IslandUsurperAFKIslandUsurper17:08
chrisred left17:08
_ollie joined17:09
gp5st when i do git ls-files --unmerged it shows me the folders corresponding to submodules, (while in a submodule), how do i know what's unmerged?17:09
drako left17:09
stalker joined17:09
icwiener joined17:09
gp5st i think it was my .gitignore file, tis' the only one that had >>>>hash in it17:10
but..fatal: 'commit' is not possible because you have unmerged files. :-\17:10
any ideas?17:10
koltroll joined17:12
Noldorin jason237, what do you mean blow away the working tree?17:12
ijuma__ijuma_17:12
jason237 left17:12
_ollie left17:14
majoh left17:15
axiom joined17:15
axiommajoh17:15
Arthur_ left17:15
spearce joined17:17
tstclair left17:17
metaperl joined17:18
Arthur joined17:18
davidfetter anybody got resources re: migrating from perforce?17:18
justin-george joined17:19
Buglouse joined17:19
pestilen1e joined17:19
aidan left17:20
pestilen1e really dumb question: how can i clone a old version of something in a git repo? there is only one branch, but the "git log" shows many revisions17:20
(and there are no tags)17:21
Bombe pestilen1e, git checkout <rev>17:21
tvw left17:24
tatsuya left17:24
g0bl1n joined17:25
pestilen1e Bombe: i don't understand. i don't see any way to specify e.g. date in the man page17:25
only branch17:26
solar_sea joined17:26
nsdk joined17:26
IslandUsurper pestilen1e, clone is not checkout. clone grabs all of a repo's history. checkout puts a specific revision in the working tree17:26
Bombe pestilen1e, funny. My man page for git-checkout also mentions “tree-ish”.17:27
pestilen1e, a “tree-ish” is anything that can be reduced to a single commit. That might be the name of a tag, the name of a branch, or the ID of a commit itself.17:27
khmarbaise joined17:27
Bombe pestilen1e, git log tells you lots of commit IDs. Just “git checkout” one of those. :)17:27
MattDiPasquale left17:28
pestilen1e Bombe: ok, that's what i was looking for :)17:28
IslandUsurper: are you saying i have all of the revisions if i did a clone?17:28
khmarbaise_ joined17:28
necromancer`brbnecromancer17:28
IslandUsurper pestilen1e, yes. that's why checkout works17:29
pestilen1e well i'll be.17:29
IslandUsurper and log, and diff, and...17:29
MmikeMRMA joined17:29
galderz left17:29
MmikeMRMA Oh, I love the existance of this channel!17:29
IslandUsurper welcome to the wonderful world of distributed version control17:29
MmikeMRMA How do I revert to commited changes in just one file? I did a commit, and then I changed dozen of files, but now I want to 'undo' the changes to just one file?17:30
rayners joined17:30
cbreak MmikeMRMA: man git-checkout17:31
Gitbot MmikeMRMA: the git-checkout manpage can be found at http://git.or.cz/man/git-checkout17:31
solar_sea git's fun. I gave up on it after no single tutorial in an hour of reading explained me the difference between the head and the master indeces, but its' fun nevertheless :)17:31
cbreak just check out that file17:31
solar_sea: that's because there are no indices in git :)17:31
MmikeMRMA I love you guys! :)17:32
sh1mmer joined17:32
solar_sea cbreak, egit/jgit said they have, go figure17:32
khmarbaise left17:32
khmarbaise_khmarbaise17:32
drako joined17:33
cbreak imposters. both of them!17:33
Phrogz joined17:33
roop left17:34
pestilen1epestilence17:34
Phrogz I have a local repo. I want to create a remote repo (over ssh) that becomes its master (so that "git pull/push" just works), but I want to preserve my existing history. What are the steps?17:34
_ollie joined17:35
_ollie left17:35
Phrogz (I have a bare repository init'd remotely, but of course I can blow that away if needed).17:35
pestilence left17:35
pestilence joined17:35
alip left17:35
apsysoev left17:35
SethRobertson have you set up the remote as a "remote" yet?17:35
cbreak there are two ways: first, clone and then just copy the clone over17:36
alip joined17:36
cbreak or the other way, do what SethRobertson implied and add it as remote, then push17:36
SethRobertson (clone as a bare mirror)17:36
cbreak no17:36
SethRobertson (push as a mirror)17:36
cbreak not as mirror17:36
SethRobertson why not?17:36
cbreak mirror only very rarely is what you want17:36
SethRobertson But isn't this that case?17:36
cbreak no17:36
Phrogz waits for the answer to settle out17:36
SethRobertson You don't want to keep it a mirror, but for initial population?17:36
cbreak no17:37
SethRobertson You say no but I don't hear an explanation17:37
cbreak you didn't ask for one :)17:37
but the reason is basically in the man page17:37
mirror pushes _everything_ (almost)17:37
SethRobertson I don't think he has any other remotes17:38
But perhaps --all would be better17:38
cbreak indeed.17:38
SethRobertson And --tags17:38
cbreak well, more importantly17:38
Phrogz So, I git-clone, then copy the clone to the remote location...and then how do I make the remote location the new master/source/whatever?17:38
cbreak add a --set-upstream17:38
nah, if you have a bare, you don't need to clone17:39
just add it as remote17:39
then push the stuff you want there17:39
Phrogz Forgive me, but your word "just" implies that I have knowledge that I think I do not.17:39
cbreak Phrogz: man git-remote17:39
Gitbot Phrogz: the git-remote manpage can be found at http://git.or.cz/man/git-remote17:39
cbreak use that command to add the bare you created on the server17:40
pick a nice name17:40
MattDiPasquale joined17:41
Phrogz cbreak: Neither clone nor remote seem to accept a --set-upstream; where is that to be applied?17:41
cbreak push17:41
gilaniali left17:43
rossand left17:44
Arthur left17:45
corni left17:45
lamont`lamont17:45
Arthur_ joined17:45
rpbertp13 left17:46
rpbertp1_ joined17:47
rpbertp1_ left17:47
josefrichter joined17:48
andyburke joined17:49
nevyn^ joined17:49
bentob0x left17:50
dvaske left17:51
dvaske_ joined17:51
zain left17:52
Athox joined17:52
nevyn^ left17:53
jim is it usually the case there would be a repo per project, and maybe more than one repo? are there ways to do more than one project per repo?17:55
pantsman joined17:55
khmarbaise_ joined17:56
Anti-X left17:56
cbreak maybe17:56
usually there''s one repository per project per user17:56
so with five users and three projects, you have 15 repositories17:56
t0rc left17:56
cbreak possibly one additional per project as "central" one17:56
khmarbaise left17:57
khmarbaise_khmarbaise17:57
foocraft joined17:58
jim also, would it be the case that per user, there would be a bare repo on a public facility and a nonbare copy of it on the user's home machine (typically that is)17:58
carutsu_ left17:58
cbreak depends17:58
jim ok, so that arrangement is not necessarily typical?17:58
zain joined17:59
Athox left17:59
khmarbaise left18:02
CoinOpeBoy left18:02
khmarbaise joined18:03
koltroll left18:03
zain left18:03
ph^ joined18:03
gilesgoatboy joined18:04
robinbowes joined18:04
joel_falcou left18:06
gilesgoatboy is there an easy way I can say, hey git, tell me the difference between this file on branch foo and the very same file on branch bar?18:07
cbreak jim: you can do it how ever you want. Afaik, one or more central repository are popular18:07
we use that workflow18:07
joel_falcou joined18:07
cbreak gilesgoatboy: yes.18:07
gilesgoatboy how do I do it? git df branchname filename?18:08
cbreak gilesgoatboy: man git-diff18:08
Gitbot gilesgoatboy: the git-diff manpage can be found at http://git.or.cz/man/git-diff18:08
cbreak search for git diff [--options] <commit>..<commit> [--] [<path>...]18:08
gilesgoatboy hmm, manpages are nice, but I just typed my guess on the command line and it worked :-)18:09
Thell joined18:09
dvaske_ left18:09
dvaske joined18:10
zain joined18:10
gilesgoatboy left18:10
nbrochu left18:10
whaley joined18:11
Thell Quick question: merge resulting in multiple conflicted files, I've fixed all, but realize I want to redo _one_ of the file resolutions before continuing. How do I reset that one file back to the conflicted state so mergetool will pick up that it is conflicted?18:11
Anti-X joined18:11
ajpiano left18:11
albel727 Thell: try "git checkout -m -- <file>"18:13
Thell '-m' <== that rings a bell!18:13
albel727 Thell: merge. =) hope it will keep ringing after you read on it in man git-checkout18:13
Gitbot Thell: the git-checkout manpage can be found at http://git.or.cz/man/git-checkout18:14
meder if i add a remote repository like github on my local git repo, is that basically treating it like a centralized repo?18:14
im looking to setup a centralised repo18:14
jas4711 joined18:14
Thell thank you, that was it. I re-read git-merge a few times trying to remember what it was.18:14
Thell shrugs18:14
Thell Thank god for irc and helpful people ;)18:15
cbreak meder: no18:15
dvaske left18:15
dvaske_ joined18:15
cbreak if you add a remote then you just treat it as remote18:15
khmarbaise left18:15
meder cbreak: can you point to a guide covering central repo and covering merges /pushes to it from local ones?18:15
albel727 Thell: I found it myself just two hours ago. So looks like it's all thanks to god =D18:15
gp5st left18:15
Thell :D18:16
cbreak meder: there's nothing in git that lets you make central repositories18:16
it's just a workflow decision18:16
meder well18:16
karamorf if I want to ignore all files in a directory but actually have the directory in the repo (so a tmp directory basically), what do I need to put in the .gitignore file? '*' seems to include the directory...18:16
cbreak if you say a repository is central, then it is18:16
meder right.18:16
cbreak git won't care18:16
meder that's what im looking for, since i know people have used this workflow18:16
use this*18:17
cbreak it's just like any other remote18:17
meder are there any special things to consider when making the central one? in terms of having group permissions to write, etc18:17
zombor just use gitolite18:17
dvaske_ left18:18
dvaske joined18:18
alnewkirk joined18:18
cbreak meder: depends on how it is used18:18
via ssh?18:18
meder yes18:18
cbreak from different user accounts?18:18
meder yes18:18
cbreak or all the same one with gitolite?18:18
meder different user accts18:18
cbreak do you need per-branch permissions? or can all have full control?18:18
meder the latter18:18
cbreak then make sure you create a shared bare repository18:19
blarson joined18:19
cbreak meder: man git-config, look for sharedRepository18:19
Gitbot meder: the git-config manpage can be found at http://git.or.cz/man/git-config18:19
meder i see18:19
cbreak meder: man git-init --shared18:19
Gitbot meder: the git-init manpage can be found at http://git.or.cz/man/git-init18:19
Buglouse left18:20
bhosie joined18:20
warbee left18:20
meder cbreak: bare with me since ive only used cvs ( UGH ).. if user A commits to the central repo and user B has subsequent commits, the user wont be asked to update his/her local repository, right? or does it matter the command used? eg push vs merge?18:21
user B for the latter18:21
cbreak don't18:21
meder don't what?18:21
cbreak make a --bare repository18:21
no one should commit to the central repository18:21
it's not meant to be used for commiting18:22
bryanl left18:22
zombor http://toroid.org/ams/git-central-repo-howto18:22
read that18:22
koltroll joined18:23
jstemmer joined18:24
dunpeal joined18:24
dunpeal Hey. I have a hefty post-receive script, and I don't want my users to have to wait for it to complete. So I created it as hooks/post-receive.heavy, and put this in hooks/post-receive:18:24
hooks/post-receive &18:25
err:18:25
hooks/post-receive.heavy &18:25
ghost_olli joined18:25
dunpeal now, that should put the process in the background, so the user who pushes shouldn't have to wait for it. except it doesn't.18:25
How do I do it?18:25
industrial joined18:26
rson karamorf: i had the same problem, unfortunately my solution was to specify the type of file to ignore because in my case i could do that. hopefully you'll find a better solution.18:26
dvaske_ joined18:26
dvaske left18:26
ch077179 joined18:26
alnewkirk /j #perl18:26
industrial 1) If I make a git submodule it will always take the latest version to clone and use and not the version I added when I committed the .gitmodule? 2) can I have submodules under submodules? eg create a .vim repo with plugin submodules but it being a submodule to eg a dotfile repo. How does syncing everything work then? :P18:26
bhosie left18:27
cbreak 1) no18:27
2) you can put recursive submodules in each other until you die of old age18:27
bhosie joined18:27
patmaddox joined18:28
industrial so if the submodule updates then mine doesnt, and I have to commit changed happened in the submodule to my own repo to use them?18:28
changes*18:28
cbreak the parent knows exactly which commit of the submodule it WANTS18:28
and parents always get what they want18:28
sraue left18:29
cbreak so you have to recommit the parent with an updated child, when you want to update the child18:29
obviously, that's usually exactly what you want anyway18:29
industrial ah, right, thats what I was thinking.18:29
time to break up my configs \o/18:29
karamorf rson: did the same thing, luckily only .html files were being generated in this dir.18:29
avinashhm left18:30
avinashhm joined18:30
jfkw joined18:32
alberto56 left18:32
dvaske_ left18:32
dvaske joined18:32
Laibsch joined18:33
Laibsch Hi, is it possible to set denyNonFastforwards to for all branches but one?18:34
Hi, is it possible to set denyNonFastforwards to true for all branches but one?18:34
cbreak maybe with gitolite18:34
industrial left18:35
dunpeal any clue about my question?18:35
koltroll left18:35
dunpeal I tried detaching with nohup, git still waits for it to finish.18:35
Laibsch: you can only that with a hook, either one you wrote or someone else's (gitolite?)18:36
Laibsch I see18:36
sraue joined18:37
Laibsch thanks. I am not admin of the server. Merely a user18:37
SEJeff_work joined18:37
giallu joined18:37
SEJeff_work So I've got 2 repositories I'm trying to combine into 1 locally and preserve the history18:37
I tried adding the second one as a remote using a file:// uri. How do I merge the second remote into the current repo?18:38
_ikke_ Just git pull remotename branchname18:39
albel727 dunpeal: try putting it in (), like that "(nohup hooks/post-receive.heavy &)"18:40
khmarbaise joined18:41
kipras left18:42
artagnon joined18:42
msimkins left18:42
dunpeal albel727: doesn't help :(18:43
msimkins joined18:43
artagnon Given the path of a file, how do I get the corresponding blob's SHA1 restricting the search to just one given commit?18:44
q0rban left18:44
albel727 dunpeal: hmm. maybe call "true" on a line after "()"?18:45
akahn joined18:45
spearce left18:45
robinr joined18:45
dunpeal albel727: I had to redirect both stdout and stderr.18:45
that was the trick.18:45
wereHamster dunpeal: I once used a message queue for such heavy post-receive work18:45
dunpeal and & of course.18:45
wereHamster: looks like I'm good with "1>/dev/null 2>&1 &".18:46
albel727 dunpeal: hmm, tty detaching. I see.18:46
dunpeal job just runs in the background, the push returns immediately.18:46
q0rban joined18:47
Laibsch left18:48
timvisher joined18:48
spearce joined18:49
jim does the post receive you're doing affect either your working dir or the local repo?18:49
dunpeal jim: nope, it basically just sends an email.18:49
sgh joined18:49
meder ive read http://toroid.org/ams/git-central-repo-howto but im still confused on when i git push to the central repo. i commit locally and push. do i rebase or merge?18:51
bhosie left18:51
meder that is, conflicts between multiple users18:51
user A pushes to central repo18:51
user B pushes, gets Merge the remote changes before pushing again. See the 'non-fast forward'18:51
bhosie joined18:52
mfacenet left18:53
jim well, my take would be, you'd commit locally as many times as you want while you're working on some specific issue, or are testing it18:53
once you KNOW it works, push.18:54
blarson left18:54
meder oh18:54
git pull, then push back18:54
well, for small cases this works18:54
ghost_olli left18:54
jim you would branch to be working on a specific issue locally, then merge the branch when you know it works, then push18:55
(that would be another way)18:55
rayners left18:55
erez joined18:57
bhosie left18:58
blarson joined18:59
bhosie joined18:59
albel727 artagnon: git ls-tree <treeish> <files>?19:00
Pupeno left19:01
przemoc left19:02
yngress left19:02
przemoc joined19:04
rpg left19:04
Pupeno joined19:04
rossand joined19:04
aspotashev left19:05
itrebal joined19:06
jdav left19:07
ghost_olli joined19:10
aspotashev joined19:11
ghost_olli left19:11
jas4711 left19:12
artagnon albel727: Right, thanks :)19:12
envi left19:12
jdav joined19:13
Anti-X left19:13
albel727 artagnon: yw =) keep up good work on svn fast-import.19:14
solar_sea left19:16
dvaske left19:17
dvaske_ joined19:17
mbroeker left19:17
Thell left19:17
artagnon albel727: Thanks :)19:18
WebDragon joined19:18
MetaCosm joined19:18
msimkins_ joined19:18
__name__ joined19:19
__name__ left19:19
__name__ joined19:19
Anti-X joined19:19
Noldorin left19:22
msimkins left19:22
karamorf if I use --intent-to-add (git add flag), does that mean its just adding the path to the repository and not the contents?19:22
joeyh joined19:23
wereHamster yes19:23
joeyh hmm, mkdir foo; git mv * foo fails in what seems a needlessly annoying way. Is there some easy workaround?19:23
bhosie left19:23
thierryp left19:24
DaveInMoody joined19:24
joeyh ok, -k .. wasn't expecting "DTRT" to just be an option..19:24
Phrogz git push --set-upstream gitbox #=> error: unknown option `set-upstream'19:25
Is that new in 1.7 or something?19:25
dvaske_ left19:25
necromancernecromancer`brb19:25
dvaske joined19:26
Yuffster left19:26
hobodave joined19:27
dunpeal left19:27
Phrogz goes to install 1.7 to find out19:28
jdavjdav_gone19:28
Phoebus joined19:28
karamorf rson: figured it out. put '*' in the .gitignore file for the directory, then `git add -f dir/.gitignore`. dir gets added and all of the files get ignored.19:29
joeyh though -k really seems a slightly too big hammer when all i want is for git mv to skip bad parameters19:29
rson karamorf: i suppose the -f is what does the trick, thanks.19:30
phantomcircuit joined19:30
kenneth_reitz left19:31
VadtecWork left19:31
VadtecWork joined19:31
craq joined19:32
[algo] joined19:32
[algo] hi19:32
craq arg. i pulled latest for a project and it said i need to merge, i go to mergetool and there's no conflicts.. i try and save and it says cannot merge?19:33
karamorf rson: or better yet, in the root .gitignore you could put '!.gitignore'19:33
[algo] I have git working copy. I want a directory from another git repo in it. How can I ... ?19:33
kipras joined19:33
[algo] in SVN that'd be svn:export19:33
craq at this point, i dont care about the changes i made to this file but i already committed.. how can i just force it to use the remote copy easily?19:33
wereHamster [algo]: man git-export19:33
[algo] man git-export19:33
No manual entry for git-export19:33
wereHamster [algo]: sorry, man git-archive19:33
Gitbot [algo]: the git-archive manpage can be found at http://git.or.cz/man/git-archive19:33
[algo] ghm19:33
urkud joined19:34
[algo] thank you19:34
wereHamster you got me confused there with the svn export..19:34
[algo] ummm ?19:34
I mean include another repo into my copy19:34
maybe submodule..19:34
I need to use external library in my sources19:34
sorry19:35
svn:external19:35
svn propset svn:externals...19:35
bcardarella joined19:36
Phrogz left19:37
wereHamster [algo]: ah, that's something different19:37
you canto use 'svn:external' to point to a git repo19:37
you'd have to convert the git repo to svn19:37
Nightwolf i tried to install egit on the ubuntu eclipse as described here: http://www.vogella.de/articles/EGit/article.html it is listed as installed but it doesn't show up. i'm currently downloading another eclipse version, but maybe someone here knows the issue?19:37
jobermayr left19:37
deadnoralive joined19:37
deadnoralive Hi, is there a channel for git-python?19:38
bhosie joined19:38
erez left19:39
__name__ left19:42
Zephyrus left19:42
dvaske left19:43
joeyh left19:43
dvaske joined19:43
ph^ left19:44
craq left19:44
theoros joined19:44
TSK joined19:44
ph^ joined19:45
dwmw2 left19:46
[algo] left19:46
ajpiano joined19:47
bdiu joined19:48
dvaske left19:48
dvaske joined19:48
DrAk0 joined19:51
DrAk0 left19:51
DrAk0 joined19:51
Elfe_ left19:51
DrAk0 left19:52
metaperl left19:52
engla joined19:52
frakturfreak left19:53
dwmw2 joined19:53
dvaske left19:54
dvaske_ joined19:54
guest3456 joined19:54
Elfe joined19:55
_ollie joined19:55
drako left19:55
_ollie left19:55
dvaske_ left19:56
dvaske joined19:56
guest3456 having problems with git add19:57
heres the paste http://gist.github.com/65220519:57
wereHamster is SiteIniCreator a git repo?19:57
is that folder ignored?19:57
guest3456 not ignored19:58
kumbayo joined19:58
nullvariable left19:58
nullvariable1 joined19:58
nullvariable1nullvariable19:58
guest3456 is git case sensitive?19:58
wereHamster yes19:58
guest3456 maybe 10 command prior i did this: http://gist.github.com/65220919:58
with lowercase s in Sites19:59
let me paste my whole workflop19:59
chronos left20:00
albel727 guest3456: do you have any files in SiteIniCreator?20:00
guest3456 http://gist.github.com/65221120:01
yes i do20:01
dvaske left20:01
aspotashev left20:02
dvaske joined20:02
warbee joined20:02
chrisshattuck left20:03
cilly left20:03
spearce left20:04
dvaske left20:04
MikhX left20:04
dvaske joined20:04
MikhX joined20:05
pedrobelo joined20:06
primalmotion left20:08
timvisher left20:09
MikhX left20:10
dvaske left20:10
MikhX joined20:10
dvaske joined20:10
SEJeff_work left20:11
drubies_ joined20:11
pedrobelo left20:11
dwmw2 left20:11
DarkUranium joined20:12
DarkUranium hey20:12
will adding "doc" to gitignore only affect ./doc or is it recursive?20:12
I mean, will it also affect ./foo/bar/doc?20:12
dvaske left20:12
dvaske_ joined20:12
wereHamster yes20:13
cbreak DarkUranium: it will, indeed20:13
you can call it /doc though20:13
mw joined20:13
dr_win joined20:13
pedrobelo joined20:13
MetaCosm left20:13
DarkUranium cbreak: / means root of the git repo, I take it?20:13
wereHamster no20:13
frooh why do people always include the .git in git urls when, apparently, it's never actually required?20:13
wereHamster the dir where the gitignore is20:13
DarkUranium ah20:14
root of the repo *in this case* then =P20:14
cbreak frooh: because it's part of the folder name20:14
DarkUranium hmm20:14
are wildmarks supported?20:14
*~20:14
frooh cbreak: but every server out there knows to ignore it?20:14
wereHamster DarkUranium: man gitignore20:14
Gitbot DarkUranium: the gitignore manpage can be found at http://git.or.cz/man/gitignore20:14
cbreak frooh: no20:14
why ignore it?20:14
it's part of the folder name20:14
DarkUranium cbreak: I meant for stuff like foo.c~20:14
cbreak: the backups that editors make20:15
frooh cbreak: my point is, with gitosis, gitolite, and githib, if the repo is foo.git, I can do clone server:foo20:15
and it works great20:15
so why even mention the .git part?20:15
cbreak you can't20:15
wereHamster DarkUranium: he wasn't talking to you..20:15
DarkUranium yeah, I noticed that =P20:15
frooh I...can?20:15
cbreak if a repo is foo.git, then it's name if foo.git20:15
frooh interesting.20:15
well, works for me. I was just curious anyway20:15
cbreak there could potentially be foo, foo.gi and foo.git2 repositories too20:15
witquicked joined20:16
albel727 DarkUranium: look .git/info/exclude20:16
cbreak if you would ignore stuff, which would you use?20:16
dvaske_ left20:16
dvaske joined20:16
frooh ok, so it is probably special casing in the code then20:16
because it *does* work20:16
khmarbaise left20:16
Phoebus left20:16
fr0sty_ joined20:16
wereHamster what does work?20:16
doener cbreak: when you ask git to clone /bla/foo it will look for the repo in foo.git and foo/.git20:16
albel727 DarkUranium: there has to be an example of default ignores for C project. *~ is a part of it.20:17
pedrobelo left20:17
cbreak doener: and it won't look in /bla/foo?20:17
that's stupid20:17
doener cbreak: well, and foo itself20:17
brntbeer joined20:17
frooh wereHamster: what doener said, git clone server:foo (Which does the same as server:foo.git)20:17
pedrobelo joined20:17
frooh I just like leaving the .git off and wondered why other people don't do the same :-)20:17
cbreak where does it look when I ask for blah/foo.git.git?20:17
frooh no clue20:18
cbreak using wrong names seems dumb to me20:18
frooh I wouldn't name a repo that :-)20:18
exactly20:18
pedrobelo left20:18
cbreak no idea why people would do that20:18
DarkUranium thanks wereHamster, albel72720:18
cbreak so why clone foo if the folder is foo.git? dumb...20:18
jdav_gone left20:18
frooh well, you say dumb, I say brief20:18
frooh won't ask next time :-)20:19
pedrobelo joined20:19
albel727 wholeheartedly agrees with cbreak. minus 3 letters is not brief, it's dumb.20:19
cbreak if you want foo, call the repo foo20:19
frooh albel727: four20:19
cbreak not foo.git20:19
. is not a letter :)20:19
frooh touche20:19
-4 keystrokes20:19
doener cbreak: http://git.pastebin.com/KnPQCiqg20:19
albel727 <sarcasm> oh, that completely changed everything </sarcasm> =)20:19
IslandUsurper mmm, pedantry20:19
cbreak you're in a channel frequented by programmers20:20
of course we're pedantic :)20:20
IslandUsurper and it's delicious20:20
frooh the point is that if I can make the url simpler, I can remember it better20:20
cbreak why remember it at all?20:20
frooh git@foo:project.git vs foo:project20:20
cbreak and if you forget the .git in a git repo20:20
albel727 is it hard to remember to append .git?20:20
doener One upside I see is that you can ignore bare vs. non-bare20:20
cbreak ... well20:20
you can ignore that anyway20:21
you can call non bare repos foogit.git or bare ones just foogit20:21
DaveInMoody left20:21
engla left20:21
NfNitLoop or you can just foogit about the whole thing.20:21
frooh NfNitLoop: nice20:22
albel727 =)20:22
NfNitLoop (Ok. Yeah, that was bad.) :p20:22
doener well, I like the directories to have the "sane" names, but I usually don't care whether I clone a bare or a non-bare repo20:22
cbreak not like you have to20:22
NfNitLoop I think people use x.git to show that, yes, this URL is to a git repository. As opposed to just a project x.20:23
frooh right20:23
albel727 oh my god. this strace shows completely horrible thing.20:23
frooh that makes sense20:23
cbreak but leaving away file endings is like ignoring the exe in a nekid-young-girl.jpg.exe20:23
it's wrong20:23
and it might bite you in the ass20:23
frooh well, if you use win3220:23
cbreak maybe20:23
frooh :D20:24
albel727 git clone /foo tries /foo.git before /foo20:24
this is insane20:24
NfNitLoop albel727: Oh, it does? That's ... unexpected.20:24
cbreak ... let's make a revolution20:24
jdav_gone joined20:24
tgunr_ pretty cool vis of GIT http://bit.ly/a9V90U20:24
albel727 NfNitLoop: doener provided this http://git.pastebin.com/KnPQCiqg20:24
cbreak but that behaviour sounds fun20:24
frooh this is the last time I ask a question in here out of curiosity20:24
cbreak you can set up fake repositories20:24
the real is foo, fake is foo.git20:25
frakturfreak joined20:25
cbreak and then, good luck cloning from foo :)20:25
tgunr_: I don't like lybian pages20:25
albel727 cbreak: yeah, that's it =)20:25
sholden joined20:25
dvaske left20:26
albel727 thinks, it should be reported as a bug/security vulnerability20:26
dvaske joined20:26
sholden Hi everyone. I'm trying to set up git-http-backend on dreamhost, but I'm running into a bit of trouble. I'm using basic auth, and it seems to be working. After that, it tries to get /hellojava/git/info/refs and hits 40420:26
tgunr_ shurgs, don't look?20:27
sholden my server log is showing [Thu Oct 28 13:18:10 2010] [error] [client 173.236.172.31] Request not supported: '/home/sshconnectiongit/git.sshconnection.com/'20:27
cbreak albel727: what's the semantics of that?20:27
albel727 cbreak: sorry?20:27
sholden GIT_CURL_VERBOSE is showing a 40420:27
cbreak albel727: what is the meaning of a bunch of balls and the lines in between them?20:27
trying to imagine how my repos look like20:27
wereHamster sholden: does that folder exist?20:28
drizzd_ sholden: so your repo is called "git"?20:28
tama left20:28
albel727 cbreak: you mean tgunr_'s youtube link?20:28
whaley left20:28
cbreak albel727: no, the one you posted20:29
sholden I created a directory ~/git/ehllojava.git and in there i did git --bare init-db20:29
cbreak or was that someone else?20:29
sholden am i doinitwrong? sorry, im a git newb, just trying to get up and running and learn my way around20:29
cbreak I mean the movie anyway :)20:29
wereHamster sholden: and how did you try to clone it?20:29
WebDragon|laptop joined20:29
sholden GIT_CURL_VERBOSE=1 git clone http://git.sshconnection.com/hellojava.git20:29
[algo] joined20:29
[algo] does that look correct ?20:30
albel727 cbreak: I only reposted doener's strace. ly-link was tgunr_'s. I'm trying to figure out the meaning of the video myself, anyway =)20:30
[algo] git submodule add http://github.com/marijnh/CodeMirror.git www/modules/test/codemirror20:30
wereHamster sholden: are you using smart http?20:30
ignatp joined20:30
sholden i can post a gist of my git-http-backend.cgi and .htaccess if that helps...20:30
wereHamster: trying to...20:30
cbreak but then who posted the youtube link?20:30
[algo]wereGrandma20:30
zombor left20:30
wereHamster sholden: sorry, I don't know anything about smart http20:31
zombor joined20:31
wereGrandma walks around20:31
cbreak can't find it in the channel log anymore :/20:31
albel727 cbreak: <tgunr_> pretty cool vis of GIT http://bit.ly/a9V90U20:31
sholden here's my configs: http://gist.github.com/65226620:32
well, my cgi and .htaccess20:32
cbreak oh, that's youtube?20:32
thanks albel72720:32
WebDragon left20:32
WebDragon|laptopWebDragon20:32
xiong left20:33
Eridius joined20:33
albel727 cbreak: oh, I got it. this is just a graph of working tree. as per this link http://code.google.com/p/gource/wiki/Screenshots20:34
cbreak oh!20:34
now it makes sense20:34
ph^ left20:34
cbreak git's graph looks boring. maybe they haven't heard of folders :/20:35
joel_falcou left20:35
ari-_-e joined20:35
guest3456 sorry was afk20:35
any idea on my problem?20:35
doener left20:35
ty_ joined20:35
guest3456 here it is again: http://gist.github.com/65220520:35
thiago joined20:36
albel727 guest3456: no idea. I was unable to reproduce it in my testing repo. I don't see, how it could happen at all.20:36
bmalee left20:36
guest3456 im thinking cause of case sensitivity20:36
bmalee joined20:36
guest3456 cause earlier i added "sites/" not "Sites/"20:36
here was the full work flow: http://gist.github.com/65221120:36
NfNitLoop guest3456: ah, yes, likely.20:37
Try renaming Sites/ to sites/20:37
that may fix the problem.20:37
guest3456 hrmm ok20:37
ultimately i want uppercase20:37
wereHamster guest3456: try avoiding case insensitive filesystem20:37
guest3456 :)20:38
giallu left20:38
albel727 guest3456: do you have case insensitive FS? which one is it? FAT? =)20:38
guest3456 im on winxp NTFS20:38
Phrogz joined20:39
guest3456 renaming the directory to "sites" in windows explorer makes "git status -s" show nothing20:39
thumbsup20:39
ty_ howdy all. I'm new to git and having a heck of a time with a post-update script :(20:39
guest3456 now how can i have it be "Sites/"20:39
wereHamster guest3456: git rm --cached -r sites; mv sites Sites; git add Sites20:39
rvsjoen left20:40
Phrogz Based on previous advice, I cloned a repo, moved it to a remote location, added that loc as a remote and used set-upstream to the new remote name. But now when I "git push" I get "refusing to update checked out branch...non-bare repository..."20:40
I'm actually using the remote as a bare repository; how can I tell Git that it is?20:40
TSK left20:40
nsdk left20:40
guest3456 excellent thanks20:41
NfNitLoop Phrogz: is it? did you do clone --bare?20:41
rvsjoen joined20:41
Phrogz NfNitLoop: Nope; either I wasn't told to--or missed--that option.20:41
guest3456 well i think htats it for now :) thanks guys20:41
dharrigan joined20:41
dharrigan left20:41
dharrigan joined20:41
giallu joined20:42
giallu left20:42
giallu joined20:42
Phrogz NfNitLoop: Is there a way to hack this in after the fact, or must I clone and copy again?20:42
NfNitLoop Phrogz: ah. Try a clone --bare. :)20:42
Devastator joined20:42
Phrogz (It takes a long time to push the full repo to the remote.)20:42
NfNitLoop You can, on the same file system, do a clone --bare.20:42
It should be very fast.20:42
Phrogz Ah, nice. :)20:42
NfNitLoop (It'll do hardlinking if it can.)20:42
Phrogz (duh)20:42
NfNitLoop you may even want to clone --mirror.20:42
which implies bare, and puts all of your branches into the refs/heads20:43
so that subsequent clones will get them.20:43
Which I just discovered today while trying to set up a mirror. It's handy!20:43
testX joined20:44
zombor left20:44
Phrogz That worked great, thanks20:44
jonesy left20:45
bhosie left20:46
IslandUsurper left20:47
koo5 left20:50
dvaske left20:50
dvaske joined20:50
dharrigan left20:51
Mage joined20:52
ty_ I'm trying to use a post-update hook so that when I push changes to a bare repo on a server it will automatically update the development working copy of that repo. The post-update script I've created works fine if I execute it via SSH on the server, but gives me a 'fatal: Not a git repository: '.'' error when pushing to the bare repo and I don't understand why. http://gist.github.com/65229620:52
ymasory left20:54
wereHamster ty_: google 'git website howto'20:54
tama joined20:55
msimkins joined20:55
dvaske left20:55
dvaske joined20:56
eletuchy joined20:56
ty_ I was trying to follow along with http://joemaller.com/990/a-web-focused-git-workflow/ more or less20:56
xxoxx left20:56
NfNitLoop ty_: maybe the current working directory isn't set when running it remotely?20:57
ty_ the script cd's to the proper directory, if I add a 'pwd' to the script it prints the correct location20:57
jaql left20:57
msimkins_ left20:57
ericdc joined20:58
eletuchy left20:58
s0ber_ joined20:58
drubies_ left20:59
NfNitLoop ty_: does working/copy/.git exist?21:00
ty_ yes, and the script works if I execute it on the server directly21:00
NfNitLoop oh, as you said. Sorry, I think I'm low on caffeine. :)21:00
ty_ np21:00
jrmuizel joined21:01
s0ber left21:01
stalker left21:01
NfNitLoop I haven't actually written triggers, so I'm not sure why that's not working for you.21:01
SethRobertson gitosis back from the dead? What does this mean for gitolite? Improvements all around we can hope.21:01
dvaske left21:01
dvaske_ joined21:01
battleman2004_ joined21:01
jcdny left21:01
jherdman left21:02
dharrigan joined21:02
dharrigan left21:02
dharrigan joined21:02
yairgo joined21:02
dvaske_ left21:03
dvaske joined21:03
wereHamster SethRobertson: why would you think so?21:03
davidfetter mmm...zombie gitosis21:03
</homer>21:04
SethRobertson The latest email on the git mailing list21:04
wereHamster SethRobertson: I expect the first reply will tell him to switch to gitolite ;)21:04
SethRobertson Oh, I didn't read it fully. He was describing the problems, not that he was going to fix them21:04
yairgo If i clone a repository and someone deletes a branch on the remote, after I fetch and do git branch -a it still shows the remote branch. Is there a way to sync the remote so that this branch doesn't show up locally anymore?21:05
wereHamster yairgo: git remote prune21:05
or manually delete the branch21:05
necromancer`brb left21:06
artefon joined21:08
cannonball left21:09
Guest31708 left21:09
kumbayo left21:09
Ilari å21:10
tvw joined21:10
Ilari oops.21:10
jcdny joined21:11
aspotashev joined21:12
davidfetter thåt so?21:12
ty_ well I added an unset GIT_DIR to the script and it seems to work now. I don't know what that does or why I need it... but ok21:12
jams__jams21:13
albel727 ty_: why just not use already existing scripts?21:14
ty_ didn't find one that did what I wanted21:14
albel727 ty_: faq non-bare21:15
Gitbot ty_: Pushing to non-bare repositories is discouraged. See https://git.wiki.kernel.org/index.php/GitFaq#non-bare21:15
ty_ I'm not21:15
rossand left21:15
ty_ I'm pushing to a bare repo that executes a script that changes working directories and pulls those changes into a non-bare repo21:15
yairgo wereHamster: thanks21:16
nicktoye joined21:16
albel727 ty_: that's just for the sake of the script provided under the link. quote: "The latest draft post-update hook for this is at http://utsl.gen.nz/git/post-update, which deals with almost all cases, apart from where there is already a conflicted merge on the remote side"21:16
kenichi left21:16
jams left21:16
alnewkirk left21:17
SvenDowideit_ joined21:17
q0rban left21:17
ty_ I've never seen those scripts. probably would've helped if I had :p21:18
albel727 ty_: oh my. now I've read your use-case.21:18
dreiss joined21:18
albel727 ty_: so you have a bare repo, which modifies another non-bare repo on hook? =)21:18
ty_ yeah exactly21:19
I'm pushing local changes to the bare repo and I want those changes to be reflected in the non-bare copy that runs on our development server.21:19
dr_lepper left21:19
ty_ which appears to be working now, though we'll see what happens when it's not just me pushing changes I guess ;)21:19
balgarath_ left21:20
balgarath joined21:20
albel727 ty_: why couldn't it have been a single non-bare repo on development server? =) anyway, I guess it would be better, if in hook of bare repo you do a simple push to nonbare repo, which will have the hook I provided.21:21
karamorf left21:21
brosner joined21:21
ty_ because pushing to the non-bare repo was frowned upon everywhere I looked. in particular it wouldn't let me push to the development branch because it was already checked out.21:21
drizzd joined21:22
albel727 ty_: oh, that's avoidable. some git config option, IIRC21:22
mscotta joined21:22
jstemmer left21:22
ty_ ah. well my first look at git was monday when I started this new job and was expected to have a dev environment up asap... so my knowledge has a few eh... holes ;)21:22
guest3456 left21:22
albel727 =)21:22
Slix` joined21:23
mscotta hi! I've a problem compiling git-1.7.3.221:23
esc ty_, albel727 : receive.denyCurrentBranch21:23
albel727 esc: yeah, just found it in man =)21:23
artefon left21:23
dharrigan left21:24
primalmotion joined21:24
robinr left21:24
shadowmaster left21:24
albel727 ty_: so, "git config receive.denyCurrentBranch false" would have helped you =)21:24
ty_ there were a few complexities as well that made pushing to the non-bare repo even trickier. there are changes to certain config files that have to persist on the development working copy. plus some other developers will be making changes directly to that working copy because they aren't willing to work on a command line or in a local environment while they mess with stuff21:24
I remember seeing that denyCurrentBranch option, but it looked to me like it would nuke local changes21:24
ignatp left21:24
mscotta I got the message "git-compat-util.h:152: fatal error: openssl/ssl.h: Nessun file o directory"21:25
patmaddox left21:25
albel727 ty_: thomasrast.ch/git/local-config.html21:25
MOAR-f00li5h joined21:25
drizzd_ left21:25
patmaddox joined21:25
albel727 ty_: http://thomasrast.ch/git/local-config.html21:25
WebDragon|laptop joined21:26
shadowmaster joined21:26
ty_ nice article, that'll almost certainly help down the road21:26
ari-_-e left21:26
fr0sty_ left21:26
Pupeno left21:26
blarson left21:26
icwiener left21:26
sako left21:26
marc_kdab left21:26
cballou left21:26
OOPMan left21:26
cehteh left21:26
jim left21:26
phaedrix left21:26
slonopotamus left21:26
timj_ left21:26
Pacman_Home` left21:26
zenom_ left21:26
AAA_awright left21:26
crash\ left21:26
SvenDowideit left21:26
tgunr_ left21:26
mlq left21:26
IRSeekBot left21:26
f00li5h left21:26
jkp_ left21:26
Fullma left21:26
halfline left21:26
tchan left21:26
joeytwiddle left21:26
nchase left21:26
thear left21:26
d1b left21:26
Iff left21:27
cods left21:27
remi left21:27
cwillu_at_work left21:27
Utoxin left21:27
d1zzy left21:27
abuzor left21:27
rduplain left21:27
davr left21:27
SvenDowideit_SvenDowideit21:27
albel727 eh. what was that blazingly fast scroll?21:27
ari-_-e joined21:27
fr0sty_ joined21:27
Pupeno joined21:27
blarson joined21:27
icwiener joined21:27
sako joined21:27
jim joined21:27
marc_kdab joined21:27
cballou joined21:27
OOPMan joined21:27
cehteh joined21:27
phaedrix joined21:27
slonopotamus joined21:27
timj_ joined21:27
Pacman_Home` joined21:27
zenom_ joined21:27
Utoxin joined21:27
AAA_awright joined21:27
crash\ joined21:27
tgunr_ joined21:27
mlq joined21:27
IRSeekBot joined21:27
jkp_ joined21:27
Fullma joined21:27
halfline joined21:27
tchan joined21:27
joeytwiddle joined21:27
nchase joined21:27
abuzor joined21:27
thear joined21:27
d1b joined21:27
Iff joined21:27
cods joined21:27
remi joined21:27
cwillu_at_work joined21:27
d1zzy joined21:27
rduplain joined21:27
davr joined21:27
js_ joined21:27
nick_h joined21:27
docgnome joined21:27
WebDragon|laptop left21:27
albel727 and again21:27
joeytwiddle left21:27
ty_ mmm join/leave spam21:27
VadtecWork its called a netsplit...ride the wave!21:28
albel727 cool21:28
mscotta hi! I've a problem compiling git-1.7.3.221:28
ignatp joined21:28
ty_ anyway time to head outta here for the day. thanks for the valuable info albel727, esc, and others.21:28
albel727 yw21:29
bue21:29
s/bue/bye21:29
WebDragon left21:29
esc ty_: np21:29
joeytwiddle joined21:29
ty_ left21:29
dharrigan joined21:29
LeLutin joined21:29
patmaddox left21:30
urkud left21:31
LeLutin_ left21:31
thiago left21:32
mscotta VadtecWork: can you help me with a problem compiling git-1.7.3.221:33
battleman2004_ left21:33
battleman2004_ joined21:34
nicktoye hi, can I ask a quick question. I'm new to Git and learning at the moment. If I already have a file tracked, and then I modify it, before I commit it, I need to add it again?21:34
esc nicktoye: indeed, add it to the index/stage21:35
nicktoye: you can check that it worked with 'git status'21:35
joshsmith joined21:35
nicktoye ok thanks. BTW, I am on Chapter 3 of 'Getting Good with Git' by Andrew Burgess21:35
kipras left21:36
esc nicktoye: haven't read that one yet, thanks for the ref21:37
steph021 left21:37
nicktoye hey no problem, by the way I am using Colloquy for IRC, how do you quote people back?21:39
psoo left21:39
flazz left21:39
rvsjoen left21:40
urkud joined21:41
curtana left21:41
rvsjoen joined21:41
Chani joined21:43
_rane you don't quote people21:43
werdan7 joined21:44
Chani how do I undo my last (local) commit? I can git checkout HEAD^ to move to the previous commit, but hte branch still points to hte one I want to delete21:44
_rane try tab for nick autocomplete21:44
iPad3Gslippyd joined21:44
pigdude left21:44
Eridius Chani: git rset HEAD^21:44
err reset21:44
Chani Eridius: thanks :)21:44
Eridius if you want to throw away the local changes too, use --hard21:44
nicktoye ok, so if I want to reply to someone21:44
Eridius nicktoye: just start typing their name and hit tab21:44
nicktoye Eridius: like that?21:45
nadavoid joined21:45
Eridius yep21:45
nicktoye cool21:45
if I have a blank txt file and I have 2 branches including my master. I add text in the master version, and then switch to the other branch, and then add text there. then I switch back to master and run git merge [branch] - I get this21:45
CONFLICT (content): Merge conflict in README.txt21:45
Automatic merge failed; fix conflicts and then commit the result.21:45
MattDiPasquale left21:46
alnewkirk joined21:46
dharrigan left21:46
DarkUranium left21:47
ch077179 left21:47
ignatp left21:49
blee_ left21:49
brntbeer left21:49
blee_ joined21:49
MattDiPasquale joined21:50
mscotta Anyone who ever compiled git?21:51
nicktoye anyone know the answer to my problem?21:51
mmattice large group of people there, I'm sure.21:51
Eridius nicktoye: you didn't ask a question21:51
dvaske left21:52
erez joined21:52
sako left21:52
dvaske joined21:52
sonnym left21:52
mscotta Eridius, trying compiling git, I got the message "git-compat-util.h:152: fatal error: openssl/ssl.h: Nessun file o directory"21:52
rson mscotta: what distro?21:53
nicktoye Eridius: sorry, the question was why do I get a conflict?21:53
mscotta rson, Lubuntu21:53
rson mscotta: do you have openssl-dev installed (just a guess)21:53
itrebal nicktoye: try opening up the file and seeing what is committed, edit it until you're satisfied, and then commit it21:54
albel727 nicktoye: because you edited the same lines differently in both branches. what else did you expect?21:54
wereHamster mscotta: or set NO_OPENSSL=121:54
nicktoye albel727: I don't know, I'm new at this. Ok, so that makes sense. Because I have two files that are both different, they won't merge into one file?21:55
Frog joined21:55
albel727 nicktoye: git is not a human. it can't miraculously understand, what your program means, and choose to keep one line over another, so he asks you to do it.21:55
Frog left21:55
erez left21:55
albel727 s/so he/so it/21:55
tizbac left21:55
albel727 feels that git is alive =D21:56
nicktoye albel727: Ok, so if the 2nd branch had the same lines, but added an extra line, then that would work. Let me try and get back to you.21:56
dharrigan joined21:56
dharrigan left21:56
dharrigan joined21:56
iPad3Gslippyd left21:56
foocraft left21:57
slippyd joined21:57
hilem joined21:57
Yuffster joined21:58
mscotta rson, thanks! No error with libglobus-openssl-dev but why "apt-get build-dep" did not install it?21:58
g0bl1n left21:59
rson mscotta: not a clue, i don't use a debian based distro so i'm not familiar with apt and friends21:59
kandjar msysgit is really annoying; somehow, it doesn't let me rebase.21:59
when I try to rebase and squash or reorder the commits; it freezes...21:59
skoop joined21:59
kandjar does anyone know a work around to that issue?22:00
wereGrandma left22:00
mscotta rson: ok! Thank you very much!22:00
drizzd kandjar: do you have binary files in your repo?22:01
nicktoye hmm, ok, so I have master with README file that is blank, and I have authorization branch with README file that has a single line. I am in master and I run the merge command and it says it is already up to date. But it can't be can it?22:01
eno left22:02
Chani nicktoye: what merge command? :)22:02
sgh left22:02
nicktoye Chani: git merge authorization22:02
Chani huh22:02
rson did you commit the file in authorization?22:02
nicktoye yes22:03
ajpiano left22:03
rson and the readme in master?22:03
nicktoye yes22:03
both git status in branches say working directory clean22:04
mplb joined22:04
patmaddox joined22:04
eno joined22:04
albel727 nicktoye: you're doing it in a single repo, I hope? and readme is really empty, when you checkout master, and has a single line, when you checkout authorization? and yet merge does nothing?22:05
pgib left22:05
testX left22:06
nicktoye albel727: yes, well the file says it is 4kb in my finder.22:06
but it is empty in master branch, but has a single line in authorization22:07
coderdad left22:07
akahn left22:07
tvw left22:07
rgr left22:07
tvw joined22:07
frakturfreak_ joined22:07
dels left22:07
theoros i think this is a bug in git22:07
rgr_ joined22:08
theoros it comes up now and then22:08
quesada3 left22:08
albel727 nicktoye: and current branch is master, when you do git merge authorization?22:08
gebi left22:08
kandjar drizzd: in the repo or in the commits i m trying to rebase?22:08
dels joined22:08
shamrock left22:08
shamrock joined22:08
theoros nicktoye: what happens if you git checkout back and forth?22:08
and then try the merge again22:08
nicktoye albel727: yes it is in master and I did to git merge authorization - so this could be a bug. As long as it is, then I'll note it and try again22:08
kandjar drizzd: as a matter of fact, I do.22:08
quesada3 joined22:08
drizzd kandjar: from the branch you are trying to rebase, can you do "time git format-patch --stdout --ignore-if-in-upstream <upstream>.." where <upstream> is the branch you are rebasing against22:09
nicktoye theoros: it says Already up-to-date22:09
drizzd and compare the time to the same command without --ignore-if-in-upstream22:09
(it's ok to cancel if it takes a long time22:09
) oh, and probably you should add >/dev/null22:10
albel727 drizzd: what does "git log --graph --oneline --decorate --all" show you?22:10
drizzd: oops, sorry22:10
frakturfreak left22:10
drizzd kandjar: argh, let me try that again22:10
nicktoye ok, I am going to start again.22:10
albel727 nicktoye: what does "git log --graph --oneline --decorate --all" show you?22:10
drizzd "time git format-patch --stdout --ignore-if-in-upstream ..<upstream>"22:10
nicktoye apples-imac:systems nicktoye$ git log --graph --oneline --decorate --all22:10
* 56f7389 (HEAD, master) resolved conflict22:10
|\22:10
| * 47dc739 (authorization) added content from authorization branch for readme file22:10
* | 1045f00 added content from master for readme22:10
|/22:10
* 015e367 Initial commit22:11
albel727 nicktoye: next time, use pastebin22:11
nicktoye ok sorry22:11
jonesy_ joined22:11
kandjar drizzd: I m actually trying to do: 'rebase -i'22:11
drizzd kandjar: doesn't make a difference22:12
albel727 nicktoye: you have actually already merged and resolved conflict in favor of empty readme.22:12
kandjar ok if im in current, and I want to do git rebase -i master22:12
u want me to do: git checkout current ;22:12
nicktoye albel727: oh have I? i'll have another crack at it. practice makes perfect.22:12
kandjar "time git format-patch --stdout --ignore-if-in-upstream ..master"22:12
pedrobelo left22:12
kandjar ?22:12
drizzd kandjar: actually, remove the dots as well22:13
theoros nicktoye: git checkout master; git reset --hard 1045f00; git merge authorization22:13
drizzd time git format-patch --stdout --ignore-if-in-upstream master >/dev/null22:13
pedrobelo joined22:13
drizzd kandjar: or are you doing rebase -i HEAD~n ?22:13
albel727 nicktoye: use the "git log --graph" line I told you to understand how your history evolves. it'll help you.22:13
scarabx joined22:13
theoros (or just use gitx if you're on mac os x since it's less painful)22:13
goshawk left22:13
drizzd kandjar: ah, never mind22:14
nicktoye theoros: http://pastebin.com/1QGUZK0D22:14
kandjar wow it's dumping like crazy... :)22:15
theoros nicktoye: now git diff and you'll see the conflict22:15
drizzd kandjar: anyways, if that's the problem, you are suffering from a problem that's already fixed in git.git's pu branch, but I don't know when the fix will be released22:15
nicktoye albel727: yes I am using git log in this book22:15
drizzd kandjar: like I said, add >/dev/null22:15
skoop left22:15
kandjar ok done in 52s22:16
albel727 nicktoye: plain "git log" and "git log --graph --oneline --decorate --all" are like completely different. the former doesn't tell you anything about shape of your history/relations between branches.22:16
jrmuizel left22:17
kandjar should it hang or go through?22:17
drizzd kandjar: it should terminate22:17
kandjar the test you ask me to do?22:17
it did22:17
nicktoye albel727: yes I know, I've done the latter too, but I am only on ch3, so baby steps. :)22:17
kandjar in 52s22:17
yairgo left22:17
drizzd kandjar: but 52s is rather long, did you wait for the rebase to finish for so long?22:18
kandjar drizzd: so that mean that the bug which got fixed?22:18
itrebal left22:18
kandjar last time I had the issue; I let it sit for hte night22:18
drizzd kandjar: well, it can take longer depending on the number of changes to binary files you have22:18
and depending on the size of those files22:18
nicktoye ok, and now if I want to update the authorization branch I checkout that branch and git merge master22:19
joshsmith left22:19
kandjar with /dev/null /22:19
drizzd so yes, this performance problem will likely be fixed in the next release22:19
kandjar real 0m1.252s22:19
user 0m0.010s22:19
sys 0m0.030s22:19
joshsmith joined22:19
kandjar with /dev/null it's pretty fast.22:19
albel727 nicktoye: I consider it a failure on book's part. nothing helps better that log --graph to understand what your actions lead to. it should have been introduced much sooner.22:19
kandjar the output flooding was the slow part :)22:19
Chani left22:19
albel727 nicktoye: yes, that will make autorization and master point to the same commit.22:19
drizzd kandjar: right...22:19
nicktoye albel727: the book does say --graph22:20
kandjar even in the prerelease 1.7.3 it wont be fixeD?22:20
PutrPutr|Away22:20
nicktoye so gitx then? better than Terminal?22:20
albel727 nicktoye: ... --oneline --decorate --all? =)22:20
kandjar Git-1.7.3.1-preview20101002.exe ??22:20
drizzd kandjar: well, apparently this is not your issue anyways22:20
kandjar mmm22:20
nicktoye albel727: yep, thanks. :)22:20
kandjar oh. so what's causes mine then :(22:21
albel727 nicktoye: gitx is definitely better on mac os. depends on whether you're a terminal maniac, though =)22:21
drizzd kandjar: I would propose to analyze with perf, but that probably won't work on windows...22:21
joshsmith left22:21
nicktoye albel727: well I'm a web designer22:21
Ilari left22:22
albel727 nicktoye: ... so, you're a terminal maniac, then. I get it, no need to elaborate further. =P22:22
kandjar true,22:22
Ilari_antrcompIlari22:22
kandjar I guess I could rebase by hand..22:22
Schmallon joined22:23
kandjar cherry pick each commit I don't want to rebase, then do a git reset soft22:23
nicktoye albel727: gosh no. I'm kind of forcing myself to use it as it's quite powerful apparently.22:23
kandjar and one massive commit.22:23
albel727 nicktoye: I was kidding =)22:23
nicktoye albel727: I know.22:23
Ilari_ joined22:23
IlariIlari_antrcomp22:23
Ilari_Ilari22:23
kandjar geeezz... as much as I like git... as much I HATE msysgit!22:24
xrogaan what's the difference ?22:25
artagnon left22:25
kandjar drizzd: do you know if it's safe to install a newer version on top of the existing one? or should I remove the existing one first?22:25
drizzd kandjar: hmm, I still wonder what else the problem could be22:25
albel727 nicktoye: it's really simple. regularly you'll need to use 2-3 commands. proper gui-s make it easier. e.g you may want to look in direction of man git-mergetool, to resolve merge conflicts with your favorite merger/differ app, etc. also there are git gui, gitx, etc...22:26
Gitbot nicktoye: the git-mergetool manpage can be found at http://git.or.cz/man/git-mergetool22:26
drizzd kandjar: but there is no way to find out unless you run some profiling tool22:26
graphitemaster joined22:26
graphitemaster ffs!22:26
kandjar FYI: $ git --version22:26
git version 1.7.0.2.msysgit.022:26
drizzd kandjar: it's safe to install a new version on top of the existing one22:26
graphitemaster dammit git fucked up22:26
graphitemaster could kill git right now22:26
graphitemaster JESUS, that is bullshit22:26
wereHamster yeah, blame the tool and not the user22:27
wereHamster blames rm for deleting his files22:27
drizzd xrogaan: msysgit is the windows port of git22:27
graphitemaster made about idk 600 changes, forgot to pull so he could not push it to master, so dumb him pulled and lost everything :(22:27
kandjar gonna try the 1.7.3 prev then..22:27
ignatp joined22:27
sonnym joined22:27
nicktoye albel727: well I have Versions for SVN, and I like that. So as a designer I want beautiful GUI or bare bones old school stuff. :)22:27
wereHamster graphitemaster: what? You pulled and lost evrything? That's not possible22:27
kandjar graphitemaster: if you committed stuff in git, it's not lost.22:27
nicktoye but at the moment, I just need to get through this book, to get a taster for the commands.22:28
xrogaan drizzd: I know22:28
Anti-X left22:29
mplb left22:29
graphitemaster http://pastebin.com/MGh4mAqP22:29
^:(22:29
http://github.com/graphitemaster/Kill--Field-Engine/commit/c2840c431d8854c2ffa5aeedf004070636abfe2222:29
latest change, and it's that stupid merge22:30
wereHamster graphitemaster: and what did you lose?22:30
of course it's a merge, pull = fetch+merge22:30
drizzd xrogaan: well, that is the only difference...22:30
blarson left22:30
graphitemaster ohh fewhh, never mind22:30
I got it, okay wow my heart was beating about 6000000000 times a millisecond there22:30
graphitemaster absconds22:31
blarson joined22:32
coderdad joined22:32
d0k left22:32
joshsmith joined22:32
coderdad left22:33
Dave^| left22:33
deadnoralive left22:34
nicktoye left22:35
xiong joined22:38
ProLoser joined22:39
ProLoser how can i move a submodule from one folder to another?22:39
git mv doesn't work22:40
EricInBNE joined22:40
dreiss left22:41
sako joined22:41
envi joined22:42
tjholowaychuk left22:42
ehabkost left22:42
kandjar so far so good; first part of the rebase worked after the upgrade.22:42
dharrigan left22:45
dr_lepper joined22:45
bcardarella left22:46
dharrigan joined22:46
Evious left22:46
shennyg left22:46
frogonwheels ProLoser: delete the submodule and re-add it in one commit I would say22:47
ProLoser: that's pretty much all that a git mv does22:47
shennyg joined22:47
Schmallon left22:48
Evious joined22:48
warlock_mza joined22:49
brntbeer joined22:50
getxsick hi guys22:51
Ogredude_ joined22:51
ajpiano joined22:51
fr0sty_ getxsick: yo22:52
getxsick fr0sty_: oh, nice to see you again22:52
fr0sty_: i spent some time on reading manuals22:52
and I would like to sum it up (the whole workflow)22:52
maybe i will draw a new diagram22:54
silver_hook left22:54
dels left22:55
converge joined22:55
Yuuhi left22:56
ProLoser left22:57
bowenl2 joined22:57
warbee left22:58
bowenl2 to act as though I completely re-cloned a repo, disregarding the changes i've made to my working company, what commands should i use?22:58
s/company/copy/22:58
zombor_ joined22:59
zombor_ left22:59
zombor_ joined22:59
MikhX_ joined22:59
bowenl2 git checkout --force23:01
causes git pull to fail the next time another working copy is updated23:02
ProLoser joined23:02
ProLoser i want to undo the last commit i did23:02
permanently23:02
MikhX left23:02
MikhX_MikhX23:02
Eridius ProLoser: git reset --hard HEAD^ (watch out, this will throw away uncommitted changes too). Warning: don't do this if you've already pushed the commit23:03
kenichi joined23:03
pantsman left23:03
ProLoser okay, now i did that, i want to pull another fork into mine, but i want to use rebase, as there are no conflicts23:04
Eridius git pull --rebase?23:04
xiong left23:04
ProLoser strange, it doesn't show up when i do -h23:04
okay23:04
Eridius the manpage si your friend23:05
MetaCosm joined23:05
alberto56 joined23:06
fr0sty_ bowenl2: what do you want to get rid of? just the working copy changes?23:07
or do you have commits you want to throw away?23:07
bowenl2 yes, every change23:07
getxsick fr0sty_: http://img34.imageshack.us/img34/9421/repox.png what do you thinkg about it?23:08
bowenl2 i want to re-clone it without actually deleting and recloning23:08
fr0sty_ bowenl2: git reset --hard <remote>/<branch>23:08
theoros getxsick: oh god23:08
fr0sty_ that will reset your branch to the remote state.23:08
Ryback_ left23:08
bowenl2 eek thanks23:09
getxsick theoros: ?23:09
fr0sty_ bowenl2: or just delete all your local branches.23:09
bowenl2 i didn't realize i needed origin there23:09
fr0sty_ 'git branch' and then 'git branch -D <branchname>23:09
theoros getxsick: those are some pretty bad graphs. what are you graphing? general workflows with git or a specific one? for general there's http://progit.org/book/ch5-1.html23:09
chovy left23:09
getxsick theoros: very specific23:09
theoros: it's a continuation from the talk yesterday23:10
theoros i see23:11
brosner left23:11
getxsick theoros: if you would like to join to the discussion, i can say some words23:11
fr0sty_ theoros: they have people working at a remote site with only one person authorized to connect over the vpn.23:11
dr_win left23:11
fr0sty_ the 'superuser' will be marshalling all the commits to be pushed across to 'main server'.23:12
that's what I understand at least...23:12
getxsick yep23:12
+ all changes pushed to the 'main server' has to be done as a superuser (i mean about Author tag here)23:12
fr0sty_ has to bow out...23:12
theoros somewhat like http://progit.org/figures/ch5/18333fig0503-tn.png23:12
just with more restrictions23:12
fr0sty_ comes back for one sec...23:13
getxsick theoros: no sure23:13
fr0sty_ only one 'Author'?23:13
boucman left23:13
fr0sty_ can there be multiple committers?23:13
getxsick fr0sty_: yes, that's why i want to rebase it23:13
fr0sty_: multiple commiters on 'repoB'23:13
boucman joined23:13
fr0sty_ why go through the trouble?23:13
getxsick but one commiter on the main server from all changers through VPN23:13
fr0sty_ why?23:14
what are you trying to accomplish?23:14
getxsick repoB is a different company23:14
and mainserver is a different23:14
bowenl2 left23:14
fr0sty_ you do realize that rebasing rewrites all of your commits, right? so they are a separate history.23:14
theoros why not just give access to the repository and only the repository?23:14
fr0sty_ where does 'Author' enter into this.23:14
dharrigan left23:14
RoosterJuice_ left23:14
getxsick fr0sty_: this is a restriction :(23:14
fr0sty_ getxsick: your 'superuser' can push commits authored by anyone...23:15
getxsick they just want to see in git log/gitk author as a name of superuser23:15
fr0sty_: yes23:15
fr0sty_: they all commits pushed by 'superuser' has to be visible as his own23:15
only on 'mainserver'23:15
fr0sty_ getxsick: then save everyone some pain and set-up everyone to commit with --author="superuser".23:15
getxsick on repoB it's more than OK to keep multiple authoring23:16
fr0sty_ then the committers can be themselves...23:16
getxsick: you are requiring your team to maintain parallel histories. this is, uh, suboptimal...23:16
Lgb left23:16
getxsick fr0sty_: hmm, if everyone will commit as 'superuser' in repoB history all changes will be as 'superuser', am i right?23:16
fr0sty_ getxsick: each commit has an 'Author' and a 'Committer'23:16
getxsick fr0sty_: i know, i don't like it either23:16
hmm23:17
ok23:17
wait23:17
let me check what is what23:17
Heimidal left23:17
getxsick probably i'm confusing definitions here23:17
icwiener left23:17
getxsick when i do `git log` i see 'Author' right?23:17
converge left23:17
fr0sty_ you can force the 'Author' to be someone else if necessary, but please, please, please don't have someone filter-branch all your commits to push them...23:18
getxsick fr0sty_: ok, so what is 'Commiter' then?23:18
fr0sty_ 'git log --format=full23:18
Phrogz left23:18
fr0sty_ or 'git show <commit>'23:18
c3l left23:19
getxsick 'git sshow <commit>' shows only Author23:19
FauxFaux git cat-file commit <commit>23:19
getxsick anyway i see the point23:19
ok23:19
so the question is23:19
fr0sty_ ack, need --format=full on that too.23:19
Lgb joined23:19
getxsick i would like to allow all commiters on repoB to use his own Author and Commiter23:19
mscotta left23:19
FauxFaux The question is "Why do you press return so often?". ¬_¬23:19
harleypig joined23:20
getxsick FauxFaux: sorry :)23:20
wereHamster again!23:20
dharrigan joined23:20
dharrigan left23:20
dharrigan joined23:20
fr0sty_ don't, please don't,...23:20
I will say no more,23:20
ari-_-e left23:20
fr0sty_ hangs it up for the day...23:20
wereHamster too23:20
getxsick if 'superuser' pulls all changes from them to his cloned repository, can he rebase these pulled commits to change Author/Commiter and push it to 'mainserver' ?23:21
mw left23:22
albel727_2 joined23:22
harleypig On github there are three separate repositories for vimoutliner, none appear to be official. Assuming the other two repositories don't go too far astray I'd like to merge changes made to those other repos. Is there a tutorial for using multiple repos for remote repos?23:23
MetaCosm left23:23
brntbeer left23:24
albel727 left23:24
zain left23:25
SvenDowideit left23:25
SvenDowideit joined23:25
thear left23:25
MattDiPasquale left23:26
battleman2004__ joined23:26
battleman2004 joined23:28
battleman2004_ left23:29
battleman2004__ left23:31
zain joined23:32
dharrigan left23:32
zombor_zombor23:33
ari-_-e joined23:33
richardbronosky left23:34
madewokherd joined23:35
MOAR-f00li5hf00li5h23:36
LiamH left23:38
MetaCosm joined23:41
MetaCosm left23:41
MetaCosm joined23:41
golodhrim left23:42
bhosie joined23:42
golodhrim joined23:42
kenichi left23:42
dharriga1 joined23:43
cognominal joined23:43
ProLoser i'm a complete moron. I did a rebase pull of another dev's work and it's a mess, my commit is the head commit, i'm thinking of reverting back to before his commits and putting my commit back in, how wouldst i do this?23:44
checkout the last commit before his and then... cherry pick i'm guessing?23:44
Bigcheese left23:44
ProLoser do i like cherry pick onto an old commit a newer commit, or does cherry picking only work for branches23:44
in other words, before i try this, should i checkout a past commit or reset to it?23:45
theoros before you do anything, tag your current commit23:46
ProLoser tag it?23:46
theoros yes, tag it23:46
with a tag23:46
ralf_e joined23:46
bob2 or cp -a the whole repo23:46
theoros so that you have a ref to get reachability23:46
bremner well there is the reflog23:46
frogonwheels ProLoser: git reset --hard HEAD@{1} will undo your last operation for commit/rebase/merge23:47
theoros the reflog is a scary place23:47
frogonwheels ProLoser: (which is the reflog)23:47
theoros i refer tagging stuff to make sure i can easily get to things23:47
and then deleting the tag when i'm in working order23:48
prefer*23:48
dvaske left23:49
Kira left23:49
dvaske joined23:49
drubies_ joined23:53
slippyd left23:55
beatak left23:57
brntbeer joined23:57
ProLoser okay it's tagged23:57
so now what?23:57
bhowmisu joined23:59

Logs Search ←Prev date Next date→ Channels Documentation