IRCloggy #git 2013-02-20

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.

2013-02-20

tinti_ joined00:00
jalama left00:00
joshsmith hmm I've done a git pull and it says already up-to-date00:00
ferdevferdev|away00:00
joshsmith but git diff origin/master master shows a difference00:01
maxmanders left00:01
thiago joshsmith: maybe the change is something new in your branch00:01
mmitchell left00:02
Remram left00:02
bmac_ joined00:02
joshsmith hmm it is…but it shouldn't have been00:02
that's very odd00:02
AnimeCYC left00:03
tevfik left00:03
Remram joined00:03
ferdev|awayferdev00:03
tevfik joined00:04
tevfik left00:04
babilen left00:04
sgambino left00:05
p3rror left00:06
whitemage joined00:06
gusnan left00:08
daddio joined00:09
comps joined00:09
v0n left00:09
Calio joined00:10
bryanstedman joined00:10
rchavik joined00:11
daddio I found a bug in git-svn 1.7.10.4 (the one packaged by ubuntu). It is in Git.pm. I'm having a hard time figuring out where the master repository is ... to know whether it has since been fixed upstream. Pointers plz?00:12
lavaman left00:13
rgr left00:14
alunduil joined00:14
Aktau left00:14
sajan joined00:14
normanrichards joined00:15
puppet_help must gitolite administration be done locally?00:15
as in, must I clone the admin git repo in the localhost or can I clone it to a remote host as with any normal git repo00:15
m0viefreak left00:16
v0n joined00:17
Dooom left00:21
eijk_ left00:21
PaulCapestany left00:21
kermit left00:22
Anders_J left00:22
Korkenknaller joined00:23
kevwil left00:23
kermit joined00:24
Korkenknaller left00:24
jdunck left00:24
Korkenknaller joined00:25
Aymeric joined00:25
tinti_ left00:26
SicoWork joined00:26
gitinfo set mode: +v00:27
Aymeric hello00:27
gitinfo Aymeric: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.00:27
SethRobertson joined00:27
Aymeric I need some help with git. I have a repo I cloned from github. I have pushed a few commits in origin/master, but I now want to move them in a separate branch, and be able to get the latest version of my upstream repo. How could I achieve that? (note that there are some merge commits in there)00:27
jdunck joined00:27
TDJACR joined00:27
SicoAnimal left00:27
Galaris__ left00:28
mikeputnam joined00:28
Galaris__ joined00:29
Immutable left00:29
up_the_irons joined00:29
Mez joined00:29
Mez left00:29
Mez joined00:29
Aymeric Is there anyone here?00:29
relipse joined00:29
thiago yes00:29
Immutable joined00:30
yshh left00:30
Immutable left00:31
thiago Aymeric: push your commits to the new branch00:31
Aymeric Hi thiago, are you comfortable with rebase / reset cherry-pick commands?00:31
thiago yes00:31
Aymeric I have already pushed my commits to origin/master00:32
natechan left00:32
Aymeric so my origin/master has a mix of my commits and upstream commits00:32
I want to move all my commits to a separate branch00:32
so that I can easily rebase from upstream with minimum conflicts00:33
not sure if I am clear sorry :(00:33
thiago Aymeric: just rebase00:33
Immutable joined00:33
TDJACR left00:34
chisler left00:35
novaweb joined00:36
Aymeric Currently I have origin/master myCommit1 mergeCommit1 theirCommit2 myCommit2 my Commit3 theirCommit300:37
Galaris__ left00:37
Aymeric I want: origin/master theirCommit2 theirCommit3 origin/mybranch myCommit1 myCommit 200:37
Immutable left00:37
Galaris__ joined00:37
nitrix- joined00:38
Immutable joined00:38
giallu left00:39
thiago Aymeric: indeed. Just rebase.00:39
itatitat left00:40
Aymeric what would be the command?00:40
glaksmono joined00:40
glaksmono anyone is around?00:40
Aymeric first I need to move the HEAD of myBranch back before my first commit00:40
pantsman left00:40
Aymeric and then do a rebase?00:40
maestrojed left00:41
glaksmono Changes not staged for commit: <-- i didn't even add any of the files and when i do commit, it seems like it's picking up those files that's listed there?00:41
thiago Aymeric: if you've set everything properly, just "git rebase"00:41
Aymeric: to download and rebase: git pull --rebase00:41
nfk cmn, using git commit -a has made my life better00:41
thiago glaksmono: !repro00:42
gitinfo glaksmono: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session. This will help immensely with troubleshooting.00:42
glaksmono ah that's because i'm using git commit -am00:42
that's probably why..00:42
dankest joined00:42
thiago glaksmono: right00:42
BiggFREE joined00:42
glaksmono makes sense00:42
thanks thiago00:42
:)00:42
glaksmono left00:42
babilen joined00:43
jaequery joined00:43
Aymeric ok thanks00:43
puppet_help left00:44
maestrojed joined00:44
alp82 joined00:45
Aymeric left00:45
codekoala joined00:47
lethjakman left00:47
maestrojed left00:48
jdunck left00:49
Galaris__ left00:49
Galaris__ joined00:49
bmac_ left00:50
adamben left00:50
TheJH left00:51
infynyxx left00:52
BradLilley left00:52
codekoala left00:53
pity joined00:53
chuckharmston left00:54
babilen left00:55
rlubke left00:55
rurufufuss joined00:57
alp82 left00:58
novaweb left00:58
alp82 joined00:58
Calio left00:59
Korkenknaller left00:59
alp82 left00:59
alp82 joined01:00
Jake232 joined01:00
yshh joined01:00
alp82 left01:00
ejd left01:00
alp_ joined01:00
bootstrapper left01:00
bryanstedman left01:00
jonshea left01:01
alp_ left01:01
Galaris_ joined01:01
Galaris__ left01:02
normanrichards left01:03
fructose left01:05
Galaris_ left01:05
Galaris_ joined01:06
mehwork joined01:06
mehwork i did 'git reset --hard' but 'git status' still shows a bunch of untracked files... what should i do?01:06
git version 1.7.4.101:07
grawity either tell git to start tracking them (`git add` and commit), or tell git to start ignoring them (.gitignore)01:07
resetting does not affect this01:07
jerikl left01:07
TheFuzzball left01:08
mehwork so i should just manually rm them01:08
gitignore would be brushing it under the rug in this case01:08
grawity depends on what those files are01:08
mehwork i've had reset --hard work before like this, idk why it's not now01:08
these files were generated by 'rails generate controller' but i changed my mind and wanted to undo01:09
codekoala joined01:09
grawity in that case, just `rm` them01:09
or, see man git-clean01:10
gitinfo the git-clean manpage is available at http://jk.gs/git-clean.html01:10
d2dchat left01:10
Galaris__ joined01:11
Galaris_ left01:11
snkcld left01:11
Jake232 left01:11
Jake232 joined01:13
v0n left01:13
dreiss left01:13
marhaban left01:14
v0n joined01:14
dankest left01:15
jdunck joined01:16
jarr0dsz left01:17
Galaris_ joined01:19
Galaris__ left01:19
mehwork git clean -fd worked, thanks01:19
bootstrapper joined01:20
__BigO__ joined01:20
warez left01:21
Imaginativeone left01:21
lolwhut left01:22
mmitchell joined01:22
PaulCapestany joined01:23
__BigO__ left01:24
macrover left01:25
relipse left01:25
codekoala left01:25
Fandekasp joined01:25
senorflor joined01:25
intripoon left01:26
Etheco joined01:26
aartist left01:26
Progster joined01:27
intripoon joined01:27
jjore left01:30
natechan joined01:31
NiteRain left01:31
d2dchat joined01:34
Jake232 left01:35
znode joined01:36
Galaris_ left01:36
AartBluestoke left01:37
Galaris joined01:37
isomorph_ joined01:38
Noldorin left01:39
znode left01:39
thiago left01:39
znode joined01:40
senorflor left01:40
isomorph left01:41
senorflor joined01:41
Jake232 joined01:42
d2dchat left01:42
sluther left01:43
Troyan0 joined01:43
babilen joined01:44
sluther joined01:44
ErKa left01:44
agile left01:46
etcetera left01:47
senorflor left01:47
alan__ joined01:47
znode_ joined01:47
dlan joined01:48
hyperair left01:49
bootstrapper left01:50
dlan is there any command that I can use to find which commit completely delete one directory?01:50
isomorph_ left01:50
senorflor joined01:51
znode left01:51
bigkm left01:51
stliu joined01:51
Progster left01:52
Progster joined01:52
tjbiddle left01:53
madewokherd joined01:53
plumpkin left01:53
jdyin joined01:54
plumpkin joined01:54
nerd left01:54
ferdevferdev|away01:54
willob joined01:55
Davey left01:55
Noldorin joined01:56
brianpWins left01:57
QaDeS__ joined01:57
megha joined01:57
amigojapan joined01:58
plumpkin left01:58
senorflor left01:59
imachuchu left01:59
goshawk joined01:59
nickn joined02:00
goshawk left02:00
goshawk joined02:00
jaequery left02:01
QaDeS_ left02:01
techlife joined02:01
AaronMT left02:02
d2dchat joined02:02
maletor left02:03
agile joined02:03
Sigma left02:03
goshawk left02:05
znode_ left02:05
sitaram dlan: try 'git log --diff-filter=D -- dirname', and perhaps the top commit is what you want (it actually finds any commit that deleted any file or subtree of 'dirname')02:05
chuckharmston joined02:05
tonymet left02:06
Guest34610 left02:08
yshh left02:09
nickn left02:10
yshh joined02:10
BiggFREE left02:10
chuckharmston left02:10
joshsmith left02:11
yhager left02:12
znode joined02:12
simesy left02:13
joshsmith joined02:14
wrouesnel joined02:15
erkules_ joined02:15
AdrienBrault left02:15
Vampire0_ joined02:16
QaDeS__ left02:16
tjbiddle joined02:16
intripoon left02:17
opus left02:17
intripoon joined02:18
tjbiddle left02:18
boze left02:19
ldleworkcadgu`a02:19
isomorph_ joined02:19
Vampire0 left02:19
maletor joined02:19
dlan sitaram: thanks, but I may not know the exact 'dirname', I'd like to traverse all commits, and list all directories which been deleted02:20
goshawk joined02:21
santosh joined02:22
alan__ left02:23
daniel_- left02:23
santosh My master branch is more developed (has more commits) compared to dev branch. Can I update a single file of dev branch to master branch?02:23
simesy joined02:24
przemoc joined02:26
santosh Anybody on the channel?02:26
dlan santosh: can cherry-pick do? or you can manually update using "git show"02:28
yhager joined02:28
rchavik left02:29
fuzzybunny69y joined02:30
francisfish joined02:30
rchavik joined02:31
eletuchy left02:33
eletuchy joined02:33
JaredMiller joined02:33
Error404NotFound joined02:34
alan__ joined02:35
jaequery joined02:35
maletor left02:35
lyang0 what does it mean by PR02:36
danmackay joined02:37
soypirate left02:37
eletuchy left02:37
isomorph_ left02:38
goshawk left02:38
JaredMiller left02:38
intripoon_ joined02:38
santosh left02:39
johnny_rose joined02:39
NiteRain joined02:40
isomorph_ joined02:40
relipse joined02:40
d2dchat left02:40
nfk left02:41
znode left02:41
intripoon left02:42
willob left02:42
alan__ left02:43
znode joined02:44
redrocket joined02:44
Goplat joined02:45
ehsan_ left02:47
jalama joined02:47
ehsan joined02:47
hyperair joined02:48
yhager left02:49
tjbiddle joined02:52
ehsan left02:52
bababooey joined02:52
jjore joined02:53
cornfeedhobo joined02:53
goshawk joined02:53
chichou left02:55
breck joined02:55
jjore left02:56
gitinfo set mode: +v02:56
etcetera joined02:56
bababooey Anyone here to answer a question about branching?02:56
PrinceAMD joined02:56
sluther left02:57
meghabsd_freak02:57
tjbiddle left02:58
bsd_freakBSD_freak02:58
cornfeedhobo_ joined02:58
engla bababooey: branching questions are on thursdays02:58
just kidding. don't ask to ask02:58
!ask02:59
gitinfo Yes, it's okay to ask questions here.... in fact, you just asked one! ;-) Pretty much any question is fine. We're not terribly picky, but we might be asleep. Please be patient and you should get an answer soon.02:59
eletuchy joined03:00
goshawk left03:00
cornfeedhobo left03:01
cornfeedhobo_cornfeedhobo03:01
infynyxx joined03:01
eletuchy left03:01
etcetera left03:01
fuzzybunny69y left03:01
maestrojed joined03:01
eletuchy joined03:02
RaceCondition left03:03
znode left03:03
normanrichards joined03:04
Progster left03:05
thiago joined03:06
Noldorin left03:06
eletuchy_ joined03:06
wwwmmmzzz joined03:06
wwwmmmzzz left03:07
eletuchy left03:07
m0ltar joined03:08
znode joined03:08
eletuchy_ left03:08
eletuchy joined03:09
breck left03:09
breck joined03:10
pr0ton left03:11
m0ltar left03:11
eletuchy left03:13
etcetera joined03:14
breck left03:14
alan__ joined03:15
Gentlecat joined03:16
juril joined03:17
cornfeedhobo left03:18
R1KRDO joined03:18
isomorph_ left03:18
juril left03:19
yhager joined03:19
PaulCapestany left03:20
joe9 left03:22
eletuchy joined03:23
znode left03:24
natechan left03:24
Jake232 left03:25
luc_ joined03:26
weiyang joined03:27
orafu joined03:28
alan__ left03:30
saki007ster joined03:32
rurufufuss left03:32
herdingcat joined03:34
jonshea joined03:35
jalama left03:39
alan__ joined03:42
johnny_rose left03:43
rurufufuss joined03:45
gh403 joined03:46
gh403 Question: what is the minimum needed on a server to host a git repo for a few developers?03:46
Carlitos__ joined03:47
Carlitos__ hi all03:47
please03:48
gh403 hi Carlitos__03:48
Carlitos__ I have a repo in a server with ssh03:48
juvenal joined03:49
jcromartie left03:49
Carlitos__ in my local machine git clone server.hosting03:49
dreiss joined03:49
Carlitos__ I add some file and commited03:49
gh403 ok03:49
Error404NotFound left03:49
ehsan joined03:49
Carlitos__ master is in the server hosting right ?03:49
how can I call another name than origin ? example git remote casaservergit ?03:50
Gentlecat left03:50
gh403 Well, sort of. origin/master is on the server. master is on *your* computer.03:50
engla gh403: you don't need more than installed git and ssh access. You might want to use gitolite though03:51
SamB origin/master is on your computer, too; it's just your record of what the remote repository had for "master" last you checked03:51
bootstrapper joined03:51
gh403 Read http://git-scm.com/book/en/Git-Branching-Remote-Branches for how branching works with remotes.03:51
or http://git-scm.com/book/es/Ramificaciones-en-Git-Ramas-Remotas for the Espanol version ;)03:52
Sky[x] left03:52
Carlitos__ I only use it it is ok for just one user ?03:52
thiago yes03:52
fuzzybunny69y joined03:53
Troyan0Troyan0|comiendo03:53
gh403 and read http://git-scm.com/book/en/Git-Basics-Working-with-Remotes to learn how to add new remotes03:53
(or http://git-scm.com/book/es/Fundamentos-de-Git-Trabajando-con-repositorios-remotos)03:53
Carlitos__ I try to read in spanish03:54
:D03:54
gh403 engla, it's not my server :/ and afaik they won't run anything else on it. I do have samba (or maybe ssh) access to it.03:55
Can you do interesting things like permissions with just an ssh account?03:55
fisted left03:58
SBoudrias left03:58
fisted joined03:58
Bankzilla left03:58
Carlitos__ gh403: git fetch origin , I have to put this comman in the server or in my computer?03:59
engla I don't know gh40303:59
gh403 on your computer, Carlitos__03:59
ok engla03:59
Carlitos__ gh403: after that git push ?03:59
eletuchy left04:00
maestrojed left04:00
thiago Carlitos__: "fetch" is the same as download04:00
Carlitos__: so you run that in the one that you want to receive the changes04:00
eletuchy joined04:00
engla I'm writing a script to store encrypted remotes on any dumb server, but it doesn't support more than rsync protocol and sftp so far. Any 3rd-party remote protocol that is "dumb" (does not depend on smart server) can work04:00
Carlitos__ I made changes in my computer and now I wanna upload the new files04:00
gh403 Carlitos__, if the remote branch has changed, you have to merge that branch (for example origin/master) with the branch you are going to push.04:01
thiago engla: in other words, encrypt and dumb-transfer?04:01
dankest joined04:02
engla yes04:02
yhager left04:02
gh403 Carlitos__, if nothing has changed after your git fetch, then you are free to push. (The server will complain if there is an issue. It is not hard to figure out how to fix it.)04:02
semarjt joined04:02
Carlitos__ is it correct ? git push -u origin master ?04:03
from my local computer04:03
ak5_ joined04:03
LekeFly- left04:03
gh403 Carlitos__, yes. If master tracks origin/master then you can omit -u origin04:04
I think04:04
ak5_ hi, is there any way I can use gitolite or something to mirror github two ways? I am in China and concerned with latency04:04
and speed in general04:04
eephillip joined04:04
Carlitos__ remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.04:04
eletuchy left04:05
kukks left04:05
R1KRDO left04:05
gh403 Carlitos__, it seems you are trying to push into a repository that has a currently checked out branch (i.e., it is not a bare repository).04:06
johnny_rose joined04:06
gh403 http://stackoverflow.com/questions/804545/what-is-this-git-warning-message-when-pushing-changes-to-a-remote-repository has an excellent explanation.04:06
fuzzybunny69y left04:06
gh403 It is generally good practice to only push to a bare repository.04:06
Carlitos__ gh403: I can use bare give and error the hosting server04:07
git config receive.denyCurrentBranch ignore04:07
pr0ton joined04:07
gh403 Huh? I don't understand what you mean.04:08
Carlitos__ sorry I can not use bare04:08
the server hosting give an error eberytime I use git init --bare04:08
gh403 Oh, ok. Then you must either change the remote's currently checked out branch or set the option like you said.04:08
What is the error it gives?04:09
Progster joined04:09
Carlitos__ fatal: Out of memory? mmap failed: No such device04:10
Can I fix that ?04:10
rastar joined04:10
gh403 O.o that is a very strange error04:11
Carlitos__ I find this http://stackoverflow.com/questions/5670132/git-init-bare-error-fatal-out-of-memory-mmap-failed-no-such-device04:11
but I am lazy right now, maybe try for tomorrow04:12
or now?04:12
:)04:12
Troyan0|comiendoTroyan004:12
gh403 :) one sec04:12
let me read...04:13
joshsmith left04:13
rastar left04:14
gh403 It would seem the best thing to do is to make a local, bare copy of the repository, then move that up to the server.04:14
Like the page you linked to explains.04:14
Once the repository is on the remote server you will be okay; you would have to add origin manually but you would have to do that anyway04:15
Carlitos__ gh403: ok04:16
gh403 Feel free to ask me here or in a /query if you have any more questions04:17
Carlitos__ gh403: thanks man04:17
gh403 Sure no problem04:17
snql joined04:18
breck joined04:20
dallen joined04:21
mmitchell left04:21
dallen Hi all. I'm using Git Tower for Mac. I have hooks that aren't being run because, as Git Tower's FAQ says: "You need to make sure you're creating the required shell environment in the hook script itself (like modifying "PATH"), not in your shell profile, as the hook script is called from the Tower process environment which is not running in a shell environment (hence your shell profile is not loaded)."04:22
Fandekasp left04:22
dallen I honestly have no idea what that means. My post-commit is a simple #!/bin/sh git ftp push04:22
pr0ton left04:24
breck left04:25
ak5_ left04:25
subhojit777 joined04:25
OOPMan joined04:28
Chillance left04:28
Troyan0Troyan0|working04:29
dallen left04:32
ehsan left04:34
eephillip left04:34
maestrojed joined04:35
bigkm joined04:35
eletuchy joined04:35
eletuchy left04:35
eletuchy joined04:36
pppaul left04:38
scorphus left04:40
boze joined04:40
beautifulmind joined04:43
Milossh left04:43
preflex_ joined04:45
preflex_preflex04:47
Bombe joined04:47
the_cybersphinx left04:48
maestrojed left04:49
arvind_khadri left04:49
dhruvasagar joined04:51
h0bbit joined04:51
snql left04:52
macmartine joined04:52
madewokherd left04:53
isomorph_ joined04:55
JDuke128 joined04:55
jwmann left04:57
alan__ left04:58
jwmann joined04:58
jargon left05:00
maestrojed joined05:01
lun_ joined05:07
zequence left05:07
robbyoconnor joined05:08
kevwil joined05:09
eletuchy left05:09
Progster left05:09
jwmann left05:10
eletuchy joined05:10
LimeBlast joined05:10
TheJH joined05:11
pretty_function joined05:11
kevwil left05:14
eletuchy left05:14
etcetera left05:14
dreiss left05:16
TheJH left05:17
megha joined05:18
senorflor joined05:18
BSD_freak left05:19
cornfeedhobo joined05:19
bigkm left05:22
pppaul joined05:22
mike_pizza joined05:25
mehwork left05:28
dreiss joined05:30
etcetera joined05:31
CreativeEmbassy left05:32
alan__ joined05:32
mmitchell joined05:32
CreativeEmbassy joined05:33
lun_ left05:34
isomorph_ left05:35
lun_ joined05:35
mmitchell left05:37
lun__ joined05:38
zequence joined05:38
lun_ left05:38
dreiss left05:38
dreiss joined05:39
lun__ left05:39
Tommy[D]_ joined05:40
saki007ster left05:42
sluther joined05:42
Tommy[D] left05:43
CreativeEmbassy left05:45
infynyxx left05:46
Fandekasp joined05:46
infynyxx joined05:46
CreativeEmbassy joined05:46
Damgaard left05:47
Skaag joined05:48
CreativeEmbassy left05:48
maestrojed left05:48
Skaag does git add * make sense when adding a bunch of files and folders into a newly initialized repository?05:48
i0s joined05:48
Skaag or is there a more correct way?05:48
dreiss left05:49
gh403 left05:50
OOPMan left05:50
gh403 joined05:50
gh403 left05:50
gh403 joined05:50
PrinceAMD left05:51
amigojapan left05:52
dreiss joined05:52
lethjakman joined05:52
CreativeEmbassy joined05:53
maestrojed joined05:54
fisted left05:54
fisted joined05:54
senorflor left05:55
senorflor joined05:55
mike_pizza I think it makes sense if you're using bash. The wildcard should subsitute every item in the current directory and add it to the index. I don't know if it will work with subdirectories.05:55
Jackneill joined05:56
senorflor left05:56
Jackneill left05:57
linpc left05:57
linpc joined05:57
snql joined05:59
blackmat` joined06:02
gitinfo set mode: +v06:02
fuzzybunny69y joined06:03
wrouesnel left06:03
v0n left06:04
Sadeukko joined06:07
maleknet joined06:07
AartBluestoke joined06:08
fuzzybunny69y left06:10
eletuchy joined06:10
j416 joined06:10
erkules_erkules06:12
Ziggy` left06:14
fuzzybunny69y joined06:14
Vampire0_ left06:15
lethjakman join #ruby06:15
gh403 ha06:15
Goplat left06:18
fsvehla joined06:18
isomorph_ joined06:20
Vampire0 joined06:20
rastar joined06:22
lethjakman left06:22
alan__ left06:23
kerrick left06:23
kerrick joined06:23
philips_ joined06:24
rastar left06:24
lethjakman joined06:25
etcetera left06:26
macmartine left06:27
bootstrapper left06:30
CreativeEmbassy left06:32
whitemage left06:33
whitemage joined06:34
fuzzybunny69y left06:35
fuzzybunny69y joined06:37
Cromulent joined06:40
lresende left06:42
johnny_rose left06:43
tewecske left06:44
Skaag mike_pizza: seems to have worked, recursively too06:44
WorkeD joined06:44
dreiss left06:46
boze left06:48
pppaul left06:49
saki007ster joined06:50
longbeach joined06:51
dankest left06:52
normanrichards left06:52
tevfik joined06:54
Anders_J joined06:54
pppaul joined06:54
JDuke128 left06:55
whitemage left06:55
Remram left06:56
toothr joined06:59
TonyM joined07:00
lethjakman left07:00
alan__ joined07:01
fuzzybunny69y left07:03
ThomasLocke joined07:04
isomorph_ left07:05
etcetera joined07:06
kcj left07:07
etcetera left07:07
isomorph_ joined07:07
etcetera joined07:08
b1rkh0ff left07:09
lifelike joined07:09
maleknet left07:10
alan__ left07:10
maleknet joined07:10
rakl joined07:11
nafg_ joined07:11
Error404NotFound joined07:12
fsvend joined07:14
sluther left07:14
rtjure joined07:14
weekes joined07:15
perlstein joined07:15
gitinfo set mode: +v07:15
simesy left07:15
nafg_ left07:16
simesy joined07:16
toothr left07:16
dreiss joined07:17
cbreak-work joined07:18
nafg_ joined07:18
rakl left07:19
weekes left07:19
simesy left07:20
xiangfu joined07:20
Cromulent left07:21
simesy joined07:21
b1rkh0ff joined07:22
tjbiddle joined07:22
Sigma joined07:22
gh403 left07:22
ns5 joined07:22
jamescarr joined07:22
jamescarr yo yo yo07:22
marthinal joined07:23
ns5 how to find out the original url I used to clone a repo?07:23
jamescarr I added a submodule to my project that I then found out was a mistake so I removed it07:23
I cannot get git to stop bitching about it07:23
No submodule mapping found in .gitmodules for path 'modules/puppetdbquery'07:23
every single time07:23
I removed it from .git/config, .gitmodule, and did git rm modules/pupetdbquery07:23
it still complains07:23
fatal: git rm: 'modules/puppetdbquery': Operation not permitted07:24
nafg_ left07:24
rath joined07:24
cbreak-work ns5: man git-remote -v07:24
gitinfo ns5: the git-remote manpage is available at http://jk.gs/git-remote.html07:24
CoJaBo so, figured out how the git repo got wedged. heh.07:25
jargon joined07:25
cbreak-work jamescarr: git rm --cached submodule/path07:25
maestrojed left07:25
Sky[x] joined07:25
cbreak-work jamescarr: be careful to not use a trailing /07:25
tjbiddle left07:25
hoschi joined07:26
infynyxx left07:26
toothr joined07:26
francisfish left07:26
Turicas joined07:27
soee joined07:28
jMCg joined07:28
jMCg Hey folks o/~07:28
netiul left07:29
hoschi left07:29
jMCg We've got our git repositories mirrored onto the redmine server every 5 minutes by cron - is there any way or another to stop cron mailing us when everything went actually fine?07:29
_ikke_ Not really a git question, is it?07:30
Guest14353 joined07:31
drodger left07:31
etcetera left07:31
hoschi joined07:32
drodger joined07:32
jMCg _ikke_: What I'm saying is: How do I stop git from reporting what is actually a success on stderr, and only report errors on stderr. Getting mails like this: http://apaste.info/ajvT is not useful.07:33
jamescarr cbreak-work: thanks07:33
papegaaij joined07:34
alan__ joined07:34
mgedmin jMCg, redirect stdout to /dev/null? I don't think that message is printed to stderr07:34
mishok13 left07:34
jarr0dsz joined07:35
netiul joined07:35
giallu joined07:36
isomorph_ left07:37
GeertV joined07:37
lng joined07:37
thiago jMCg: git push --quiet07:37
ErKa joined07:38
alan__ left07:38
lng Hi! I have rebsed old commit message but could not push now - error: failed to push some refs07:38
Error404NotFound left07:38
cbreak-work lng: you rewrote public history07:38
lng cbreak-work: it is okay07:39
cbreak-work you can either give up and use the old one, or kill the old history and force push07:39
or merge old and new history by pulling, and then push07:39
lng cbreak-work: need to force it07:39
isomorph joined07:39
arvind_khadri joined07:39
lng cbreak-work: i tried merging but message appeared to be as old version07:39
etcetera joined07:40
lng git push -f worked07:40
lausi left07:40
cbreak-work yes. that'll kill remote history and replace it with yours07:40
Guest14353 left07:40
lausi joined07:40
lng great07:41
rtjure left07:41
lng thanks07:41
etcetera left07:41
diegoviola joined07:42
relipse left07:42
_goTAN joined07:42
fRAiLtY- joined07:43
Cromulent joined07:44
GeertV left07:44
ewokchewy joined07:45
GeertV joined07:45
isomorph left07:45
Error404NotFound joined07:46
isomorph joined07:46
mastro joined07:47
Xethron joined07:48
dreiss left07:48
Remram joined07:48
giallu left07:49
giallu joined07:49
tapout left07:49
simesy left07:52
Cromulent left07:52
asaf joined07:52
nigelb left07:52
Gonzo89 joined07:52
nigelb joined07:52
dankest joined07:52
isomorph left07:55
jMCg thiago: apparently we have it implemented with git remote update. And that doesn't seem to take any --quiet flags07:55
megha left07:56
Immutable left07:56
jceb joined07:56
pppaul left07:56
infynyxx joined07:56
Immutable joined07:56
pantsman joined07:57
pantsman left07:57
pantsman joined07:57
_ikke_ jMCg: git remote update > /dev/null07:58
letharion left07:58
tapout joined07:59
flijten joined07:59
jMCg _ikke_: again: It's coming out on stderr.08:00
tim joined08:01
pppaul joined08:02
beautifulmind left08:02
JohnBat26 joined08:02
TheFuzzball joined08:03
jMCg But looking at the code, all that git remote update does, the way we're calling it is: git fetch --all - so I can replace our cron job with git fetch --quiet --all08:03
xxc_michael joined08:05
xxc_michael_ joined08:05
JEEBczJEEB08:05
JEEB left08:05
JEEB joined08:05
xxc_michael left08:05
mishok13 joined08:05
infynyxx left08:06
xxc_michael_ left08:06
xxc_michael joined08:06
xxc_michael_ joined08:07
SaCu joined08:07
_ikke_ jMCg: Odd that it ouputs that to stderr08:07
toothr left08:08
cbreak-work stderr makes sense, doesn't it?08:08
it's output for the user, not an other program08:08
relipse joined08:09
relipse2 joined08:10
relipse2 left08:10
maestrojed joined08:10
adamben joined08:10
_ikke_ Well, it's a bit odd to report: "Everything went fine" to stderr08:11
bababooey left08:11
unix joined08:11
joshsmith joined08:11
dankest left08:11
arvind_khadri left08:13
arvind_khadri joined08:13
cbreak-work why?08:13
stdout and stderr are just ways to separate user facing and program facing output08:13
tPl0ch joined08:13
cbreak-work that way you can chain programs with | and still give output to the user08:13
_ikke_ The name of stderr implies errors08:13
cbreak-work so, it's a bad name.08:14
_ikke_ yes08:14
stdstat08:14
cbreak-work not like git and posix isn't littered with those.08:14
_ikke_ :P08:14
luc___ joined08:15
bauruine_ left08:16
jMCg There are two hard challenges in computer science: Naming Things. Cache Invalidation. Off-by-One Errors.08:16
suy joined08:16
_ikke_ Yup08:16
toothr joined08:17
OOPMan joined08:17
arvind_khadri left08:17
albel727 left08:17
arvind_k joined08:18
Pugnax joined08:18
suy left08:19
snql left08:19
luc_ left08:19
JDuke128 joined08:20
albel727 joined08:20
Sigma left08:21
JeremyWei joined08:21
rob_w joined08:21
simesy joined08:22
adam12 joined08:22
AdrienBrault joined08:23
AdrienBrault left08:24
luc___ left08:24
avjpl joined08:24
anderse joined08:24
avjpl left08:24
luc_ joined08:25
isomorph joined08:25
Remram left08:25
dvide left08:25
teask joined08:26
Cromulent joined08:26
ferdev|awayferdev08:27
alorence joined08:29
mgedmin_ joined08:29
thiago left08:30
tjbiddle joined08:30
tjbiddle left08:32
mtk left08:32
ErKa left08:32
marthinal left08:32
Infiltrator Hah.08:33
marthinal joined08:35
mtk joined08:36
suy joined08:37
pppaul left08:38
boichev joined08:38
boichev left08:38
maxmanders joined08:41
sjefen6 joined08:41
pantsman left08:41
isomorph left08:42
mgedmin_ left08:42
betz2 left08:43
anderse left08:44
goshawk joined08:45
thyseus left08:45
Cromulent left08:46
psoo joined08:46
thyseus joined08:47
boichev joined08:47
valgrind joined08:48
sjefen6 left08:48
dreiss joined08:48
bootstrapper joined08:49
alexwhitman joined08:52
fission6 left08:53
flijten left08:53
flijten joined08:53
Sigma joined08:53
LeMike joined08:54
joshsmith left08:54
jargon left08:55
jargon joined08:55
dreiss left08:56
howlymowly joined08:56
laurav joined08:57
flijten left08:57
Element9 joined08:57
howlymowly left08:58
sjefen6 joined08:58
timj1 joined08:58
asaf1 joined09:00
bootstrapper left09:00
timj left09:00
flijten joined09:01
youf joined09:01
kevinfagan joined09:02
ns5 left09:02
asaf left09:03
QaDeS joined09:06
WorkeD left09:07
letharion joined09:07
alkisg joined09:09
betz joined09:09
gitinfo set mode: +v09:11
francisfish joined09:11
alkisg Hi, I'm completely new to git. I'm doing: git rm data/themes/greek/words/easy.txt; git add .; git status, and it tells me that:# renamed: data/themes/greek/words/easy.txt -> data/themes/greek/words/words1.txt09:11
But that didn't happen, I deleted easy.txt and I added words1.txt, why would git think I renamed the file?09:11
ozette joined09:12
BiggFREE joined09:13
alkisg Ah, it probably happened because I deleted the file from nautilus before issuing "git rm file". By allowing git to do the actual file deletion, it seems OK now.09:14
Pugnax left09:14
m0viefreak joined09:14
m0viefreak left09:14
m0viefreak joined09:14
alkisg Err no sorry it's still happening09:15
bartman joined09:16
bauruine_ joined09:17
betz left09:17
ferdev left09:18
Damgaard joined09:19
alkisg Here are my git commands and their output in a pastebin: http://paste.debian.net/235853/09:20
tevfik left09:20
tevfik_ joined09:20
alkisg Do I really have to separate that into 2 commits?09:20
Bombe Separate what?09:21
Ah.09:21
_ikke_ alkisg: Do those files have similar content?09:21
Kicer86 joined09:21
alkisg Add file "a", remove file "b", it says "a was renamed to b" instead of what I want09:21
ivan\ joined09:21
_ikke_ alkisg: And for what it matters, git does not record renames09:21
alkisg _ikke_: yes, but only a bit09:21
Bombe alkisg, git will do what you want. It only shows it differently.09:22
alkisg Ah, so I can just go ahead and commit it? Thanks guys09:22
ThePawnBreak joined09:22
_ikke_ alkisg: yes09:23
alkisg: It only matters when you tell git to follow renames09:23
with commands like git diff and git log09:23
alkisg Which I'm not, so all is fine (except for the really confusing output), thanks again09:23
chichou joined09:24
ThePawnBreak hello ; take a look here: https://github.com/ThePawnBreak/unknown-horizons/commits/master ; I'd like to merge the last 4 commint into a single one; I've been trying to do it using rebase, but I've no idea what I;m doing; can anybody help, please?09:25
acrocity joined09:25
m0viefreak git rebase -i 75a3a09:26
change pick / pick / pick / pick to pick / squash / suqash / squash09:26
but:09:26
!rewrite09:26
gitinfo [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to). If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://git-scm.com/docs/git-rebase.html#_recovering_from_upstream_rebase09:26
laurav left09:27
ThePawnBreak history is not a problem, nobody pulled this yet09:27
m0viefreak ok09:27
laurav joined09:27
bootstrapper joined09:27
ThePawnBreak Could not apply 9b9867b... Add necessary resources to tooltip09:29
m0viefreak: what do I do now?09:31
maestrojed left09:31
m0viefreak uhm09:31
that shouldnt happen, it should apply cleanly09:31
cbreak-work ThePawnBreak: git rebase --abort and do it again, this time correctly09:31
(what did you select?)09:31
ThePawnBreak http://pastebin.com/5bKr4nXm09:32
I selected pick for the first one and squash for the rest09:32
vic2011 joined09:32
maestrojed joined09:33
bauruine_ left09:34
vic2011 left09:34
cbreak-work that should work normally. Does that range contain merges?09:34
jkremser joined09:34
snql joined09:34
ewokchewy left09:34
zoresvit joined09:35
ThePawnBreak I think so; there will be a merge conflict when I push; I tried to do a merge earlier but couldn't manage to get it done properly09:35
m0viefreak well it looks like you have local changes then09:35
and your local repo isn't the same as the github link09:35
ThePawnBreak so what should I do?09:35
phluks joined09:36
GeertV left09:36
m0viefreak if the merge isn't what you wanted and you want to discard any of the local changes you can reset your branch to the state of the github link09:36
bootstrapper left09:36
soee left09:37
GeertV joined09:37
m0viefreak git reset --hard remotes/<yourgithubremote>/master09:37
ThePawnBreak the local version is the correct version; I want the local version on github with only one commit in the history instead of 409:37
ferdev joined09:37
m0viefreak then you need to show us your local history09:37
ThePawnBreak how?09:37
m0viefreak !lol09:37
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all09:37
spuz joined09:37
ThePawnBreak can I just print a log on pastebin?09:38
m0viefreak copy/paste ist09:38
Tom234 left09:38
laurav left09:39
fsvehla Is there a plumbing command that returns the current branch name?09:39
nikolaidante joined09:39
tevfik_ left09:39
nikolaidante Maxdamantus: what's wrong with this code? http://pastie.org/6234498#8; For fb-like button09:39
Maxdamantus: It doesn't actually show anything09:40
JeremyWei left09:40
m0viefreak fsvehla: git symbolic-ref HEAD09:40
ThePawnBreak m0viefreak: is there any way to just force the github version to be exactly like the local one, including the history, while avoiding any merges?09:41
sajbar nikolaidante: ahem, how does this relate to git?09:41
fsvehla m0viefreak: That’s it. thanks09:41
m0viefreak ThePawnBreak: yes, push -f09:41
herdingcat left09:42
Maxdamantus nikolaidante: you can't use document.getElementsByTagName until the document's loaded.09:43
nikolaidante sajbar: oh, sorry09:43
Damgaard left09:43
howlymowly joined09:43
nikolaidante Maxdamantus: Oh, thanks09:43
ThePawnBreak m0viefreak: the local history seems to be different from the one on github, even after push 0f09:44
m0viefreak that can't be09:44
Damgaard joined09:44
cbreak-work maybe you pushed the wrong branch.09:44
m0viefreak just copy/paste the first bunch of lines of09:44
git log --oneline --graph --decorate --all09:44
weiyang left09:44
ThePawnBreak http://pastebin.com/KP4JN7yC09:45
bauruine joined09:46
m0viefreak ah i see, so they are merges09:46
zoresvit left09:46
ThePawnBreak I want only one commit saying Add necessary resources tooltip to build menu09:46
beautifulmind joined09:47
sajan left09:47
ThePawnBreak can I do that?09:47
cbreak-work don't mess with merges.09:47
Turicas left09:48
maestrojed left09:48
cbreak-work you can reset them away I guess. Or you can linearize history09:48
ThePawnBreak cbreak: this is a trivial 10 line change, nobody pulled the change, I want to make only one commit09:48
cbreak-work but everything seems pushed09:48
ThePawnBreak cbreak-work: please be more explicit; I have no experience using git09:49
AdrienBrault joined09:49
cbreak-work well, go ahead then. reset --soft back to the past, then make a single commit09:49
zenx joined09:49
cbreak-work for example, git reset --soft 75a3a6209:49
ThePawnBreak what does that do?09:49
cbreak-work that will make you be on 75a3a62, but with all the staged changes from HEAD09:49
myx joined09:50
AdrienBrault left09:50
ThePawnBreak then I commit and push?09:50
cbreak-work then you can just git commit -c ef63fe209:50
and look at history if it is as you want09:50
eijk joined09:50
cbreak-work (be sure git show shows what you want)09:50
soee joined09:50
alkino joined09:51
ThePawnBreak commit -c ef63fe2 -- what is -c. what is ef63... ?09:51
m0viefreak -c == take commit message from09:51
but before you do anything: you are in detached head state09:51
ThePawnBreak oh , I'll just write it again09:51
m0viefreak checkout master first09:51
AdrienBrault joined09:51
aero1 joined09:52
lionel_ joined09:53
aero1 is there any presentation that was aimed at "Git for Management" aka "Git for Pointy Haired Bosses"09:53
ThePawnBreak m0viefreak: afte checkout master I lost all my changes, now I have 4 commits again :((09:54
FernandoBasso joined09:54
m0viefreak yes, now do what cbreak said09:54
git reset --soft ef63fe209:54
git commit09:54
enter your new message09:54
done09:54
uhm wait09:55
git reset --soft 75a3a6209:55
ofcourse09:55
ThePawnBreak already used ef6..09:55
gitinfo set mode: +v09:55
ThePawnBreak can i go back?09:55
lionel_ hi all, i have a very very strange pb with git, a read error:bad file descriptor on a fetch, but git branch -r works ???09:55
m0viefreak just enter git reset --soft 75a3a6209:56
teask left09:56
lionel_ any idea ?09:56
m0viefreak then use git diff to verify what you see is correct09:56
then git commit09:56
ThePawnBreak git diff outputs nothing09:56
Maxdamantus lionel_: `branch -r` just lists branches under remotes.09:57
m0viefreak give us another log09:57
ThePawnBreak ok, my file is correct now09:57
and the log shows none of my commits09:57
Maxdamantus lionel_: it doesn't ask for anything outside of the repository.09:57
arietis joined09:57
m0viefreak oh09:57
ThePawnBreak now I just commit and push -f, right?09:57
m0viefreak use git diff --cached09:57
if thats right, commit09:57
then push -f09:57
lionel_ ah, it use the local copy of the remote ?09:57
Maxdamantus lionel_: yes.09:57
lionel_ while fetch goes really looking for the remote data ? that's it ?09:58
Maxdamantus Yes. fetch could try to open an SSH session or connect to a git or http server.09:58
ThePawnBreak m0viefreak: git status says : # Your branch and 'origin/master' have diverged,09:58
# and have 1 and 4 different commits each, respectively.09:58
; the log looks ok; do I still push?09:58
m0viefreak yeah thats what you get when you rewrite pushed history09:59
lionel_ in our case, the repository is another folder on the same server09:59
m0viefreak just push -f now and overwrite github's history09:59
nkr joined09:59
ThePawnBreak yay, it worked; thanks, m0viefreak09:59
Maxdamantus lionel_: unless you've set up a file:// remote (or just one with no explicit protocol), it won't look like the "same" server to git.10:00
zoresvit joined10:00
gyre007 joined10:00
Maxdamantus lionel_: what does the remote look like?10:00
cbreak-work lionel_: git remote -v10:00
private joined10:01
lionel_ it has no explicit protocol10:01
ryez joined10:01
privateGuest7956210:01
Maxdamantus Try using file://10:02
kcj joined10:03
anderse joined10:04
maleknet left10:05
saki007s_ joined10:05
Guest55175 joined10:06
goshawk left10:07
gustavnils joined10:08
xiangfu left10:08
saki007ster left10:08
maleknet joined10:09
lionel_ doing that10:10
khmarbaise left10:10
khmarbaise joined10:10
jerikl joined10:12
cristi_ joined10:12
cristi_Guest423810:13
Guest4238 left10:13
kandinski joined10:14
lionel_ ah, learn a new thing : the git commands are launch via a daemon. Is there gotchas with that ?10:15
ThePawnBreak left10:15
cbreak-work environment.10:16
_goTAN left10:16
jdyin left10:17
lionel_ @cbreak could you elaborate ? what could I check ?10:18
cbreak-work check the environment variables.10:18
_ikke_ via a daemon?10:18
cbreak-work check the file system permissions10:18
check if it works if you do it yourself10:19
Guest55175 left10:19
ThePawnBreak joined10:19
xiangfu joined10:19
kcj left10:20
JDuke128 left10:20
sdeboey joined10:22
BiggFREE left10:22
DachesBella joined10:25
lionel_ env variable are ok, I added GIT_TRACE=110:25
Guest79562 left10:26
lifelike left10:26
LimeBlast left10:27
lifelike joined10:27
wasanzy joined10:28
mnx| joined10:28
jamescarr_ joined10:28
marhaban joined10:28
jamescarr left10:29
jamescarr_jamescarr10:29
phiwo joined10:29
tevfik joined10:29
lionel_ ohoh, i got fatal: read error: bad file descriptor on exec: '/bin/sh' '-c' 'git-upload-pack '\''/servers/ataoservcom.git/'\''' 'git-upload-pack '\''/servers/ataoservcom.git/'\'''10:30
@cbreak, I am remote and sadly don't have a direct access or ssh...10:31
jamescarr left10:32
LimeBlast joined10:33
RaceCondition joined10:33
DachesBella left10:33
chrisward joined10:34
myx left10:34
chriswardGuest5437710:34
jamescarr joined10:35
myx joined10:36
xxc_michael left10:37
xxc_michael_ left10:37
xxc_michael joined10:37
xxc_michael_ joined10:37
Desproges left10:37
RaceCondition left10:38
cebor joined10:40
Desproges joined10:40
dherzog joined10:41
eletuchy left10:42
eletuchy joined10:42
gusnan joined10:43
bootstrapper joined10:45
OOPMan left10:47
lionel_ this is something wrong with the daemon, I suspect some pipes redirections but I cannot do more for now, I will see if the on site operator can see what it is.10:47
luc___ joined10:48
Imaginativeone joined10:49
heidar joined10:49
bzyx joined10:50
bzyx_ joined10:50
simesy left10:51
khmarbaise left10:51
cagedwisdom left10:51
luc_ left10:51
rgr joined10:52
xxc_michael_ left10:54
Pugnax joined10:54
Cork i'm trying to make an alias that goes to the root of the git tree, but i can't figure out what i'm doing wrong10:56
cdroot = !bash -c 'echo cd ./$(git rev-parse --show-cdup)'10:56
Sky[x] left10:57
bootstrapper left10:57
bzyx left10:57
jast Cork: what happens?10:58
Cork it goes to the current map :/10:58
cd ./10:58
$(git rev-parse --show-cdup) isn't executed...10:58
or something10:58
but theres where i fail to understand why10:59
fisted left11:00
Cork aha11:01
fisted joined11:01
Cork you can't do cd in a git alias...11:01
aspiers joined11:01
Cork it will revert back to your current location when its done11:01
stliu left11:02
khmarbaise joined11:02
davveo left11:02
RaceCondition joined11:04
jast yeah, it's executed in a subshell, after all11:05
also, apparently shell aliases run from the top level of the git repo...11:05
charon yeah... hysterical raisins11:05
luc___ left11:05
marthinal left11:06
charon you have to use a git-foo executable if you want to work around this11:06
jast fun11:06
dhruvasagar left11:06
charon or maybe someone invented a silly syntax like !$@#%&! to denote that you want it to run in the current dir11:06
Merwin joined11:07
aqabiz joined11:10
zerba joined11:11
charon oh, a different solution was found: http://article.gmane.org/gmane.comp.version-control.git/17219811:11
it's magic!11:11
Cork: ^11:12
Yuuhi` joined11:12
marthinal joined11:12
Cork charon: thx11:12
dherzog left11:13
Pugnax left11:13
the_cybersphinx joined11:13
marthinal left11:14
Yuuhi left11:14
rgr left11:15
Cork charon: not sure how that differs from the problem i have though11:15
only difference i can see is that is uses sh11:16
charon erm, ok, i only read enough of the backlog to understand your actual issue just now11:16
and the answer is: you can't do that from within git because the working directory is a property of the shell and only the shell itself can change it11:16
snql left11:16
charon so you need a shell alias of some sort11:16
Cork yup11:17
that is what i found out before :)11:17
when i tested echo $PWD and it showed that it already was in the root directory i managed to put two and two together11:17
rosco_y joined11:18
charon alias reporoot='test -n "$(git rev-parse --show-cdup 2>/dev/null)" && cd "$(git rev-parse --show-cdup)"'11:18
or some such11:18
Damgaard left11:18
charon bonus points for refactoring the two calls to git into a variable11:18
snql joined11:18
plumpkin joined11:18
rosco_y I used "git rm myFile" and now myFile shows in the status as "deleted". How do I add it back to my commit list as a tracked object?11:19
Gentlecat joined11:19
hyperair left11:19
daniel_- joined11:19
_goTAN joined11:19
charon rosco_y: read the commentary in 'git status' output11:20
rosco_y charon: ty, I did try "git add", but that had no effect....11:20
Cork charon: a simple export gitroot='cd ./$(git rev-parse --show-cdup)' is all thats needed11:20
charon that's because git-rm deleted the file, and you can't add a nonexistent file11:20
Cork: umm... so you call that as $gitroot?11:21
aero1 is there any presentation that was aimed at "Git for Management" aka "Git for Pointy Haired Bosses"11:21
rosco_y it physically deletes the file?11:21
Cork no just gitroot11:21
charon s/export/alias/ then?11:21
Cork ya11:21
sorry11:21
blackout :D11:21
daniel_- left11:21
charon rosco_y: of course, saying 'git rm file' means 'please delete <file> and consider yourself notified of the deletion'11:21
arand rosco_y: yes, and stages the deletion for next commit.11:21
rosco_y well, it's not the end of the world. If that's all it took to derail the train, I'd definately have to quit.11:22
ferdev left11:22
charon rosco_y: git-status should point you at 'git checkout HEAD -- <file>' to restore it (assuming you haven't committed the deletion yet)11:22
rosco_y ty charon, arand, Cork et. all., "I think I can, I think I can"....11:23
youf left11:23
ferdev joined11:24
charon rosco_y: do you understand on a conceptual level what the staging area does? otherwise you should probably read "the thing about git" or some such11:24
after that it gets easier: git rm F = rm F && remove F from the staging area completely11:25
bootstrapper joined11:25
charon which will *appear* to stage a deletion, but really the effect is just that the next commit doesn't contain F.11:25
jaequery left11:25
rosco_y charon: ty. I'm actually getting fairly comfortable with git, I was just surprised that it actually deleted the file prior to the commit11:25
I love git, it's really working well for me11:25
spuz aero1: I don't see what git has to do with point-haired managers - they shouldn't care about it11:26
rosco_y I'm branching with impunity and everything!11:26
rosco_y takes a bow11:26
rosco_y just throw money11:26
RaceCondition left11:26
jerikl left11:26
rosco_y so, even beginners can benefit with git11:26
aero1 spuz: I have a manager. They dictate what infrastructure gets paid for. My shop doesn't already have VC set up. I need to convince them that it's worth it to invest in training people to use it etc.11:26
rosco_y ty :)11:26
spuz aero1: git is not an infrastructure11:27
maybe you're thinking of github or some other service11:27
aero1 ...11:27
charon aero1: if anyone knows about this, surely it's sitaram11:27
aero1 neckbeards11:27
You know exactly what I am talking about11:27
rosco_y aero1: I once had a manager who really tried to keep us developers happy, but we didn't know it--he was really underappreciated....11:27
a rarity for sure11:27
aero1 Indeed11:27
I already have github+gitolite etc etc etc already set up11:28
dhruvasagar joined11:28
marhaban left11:28
rosco_y He had his faults, but we all do....11:28
aero1 I just need to explain to a PHB what exactly git is so I can get the A-OK to provide paid-for or time-away from work to provide training to people.11:29
rosco_y crap, I gotta get to it11:29
aero1 I'm sure I've seen something like this11:29
rosco_y c-ya :)11:29
aero1 cya11:29
bzyx_ left11:30
spuz aero1: wait you said your shop doesn't already use VC, maybe you want an article explaining version control11:31
aero1 Exactly how dense are you?11:31
yshh left11:31
yshh joined11:32
spuz aero1: sorry - I'm just trying to help11:32
aero1 *I* use version control, I use all the niceties that surround git. I love it. My *place of work* doesn't. I explained that already.11:32
Nevermind, you don't have an answer.11:32
spuz aero1: I understand that - that's why I suggested you might like to explain to your bosses the benefits of version control11:33
I'm only saying that because getting into the details of git over other tools might not be what you want11:33
Sky[x] joined11:33
aero1 My god - that's exactly what I was asking for! A presentation/material of this kind of thing to a PHB.11:33
nevermind11:33
jamescarr left11:34
aero1 I found something11:34
http://tosbourn.com/2011/03/git/explaining-version-control-git-in-simple-terms/11:34
jargon left11:35
spuz looks good11:35
murosai joined11:35
murosai i accidently commited to master but did not push yet, how can i undo this commit and commit it instead to "develop" branch?11:36
OOPMan joined11:36
yshh left11:36
nicoo murosai: git reset HEAD~111:37
git stash11:37
git co develop11:37
git stash pop11:37
marthinal joined11:37
nicoo I would say11:37
bootstrapper left11:37
zoonfafer joined11:38
nicoo Sorry, probably HEAD^1 instead of HEAD~111:39
johnny_rose joined11:39
arand Umm, HEAD^ and HEAD~1 are equivalent, right? Does HEAD^! even work?11:39
*HEAD^111:40
jast HEAD^1 == HEAD~1 == HEAD^ == HEAD~11:40
arand Oh, well then.11:40
jast and HEAD^^ == HEAD~~ but HEAD^2 != HEAD~2 :}11:40
aero1 so much head11:41
nicoo jast: That's the « HEAD^2 != HEAD~2 » that confused me :P11:41
_ikke_ nicoo: ^n means nth parent. ~n means nth ancestor11:42
pity left11:42
alkisgwork_alkisg11:42
nicoo _ikke_: That you :)11:43
Thank*11:43
_ikke_ ^1 and ~1 are the same11:43
jargon joined11:44
jargon left11:44
jargon joined11:44
marhaban joined11:47
hatake joined11:49
rakl joined11:49
chisler joined11:50
rakl left11:50
nicoo Yeah, read that11:51
FernandoBasso left11:52
JPeterson joined11:52
avjpl joined11:53
avjpl left11:53
avjpl joined11:53
jargon left11:55
murosai seems like the git stash fails because it can't create some files?11:55
albel727_ joined11:56
sajbar !repro11:56
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session. This will help immensely with troubleshooting.11:56
alkino left11:56
albel727 left11:58
RaceCondition joined11:59
avjpl left11:59
bootstrapper joined12:04
ferdev left12:04
rosco_y left12:05
Sky[x] left12:05
ferdev joined12:05
Sky[x] joined12:06
blackmat` left12:07
blackmat` joined12:07
marhaban left12:08
marlun joined12:08
alkino joined12:10
marlun If I got a file which has changed in 4 commits and in the first change it was converted by mistake to utf8 and all the swedish letters (å,ä,ö) failed to be converted so now we've got ? in their place. Any tips on how we could fix the encoding errors but still have all the other changes? :)12:11
giallu left12:11
_ikke_ marlun: Maybe git checkout -p, but that only works if the corrupt characters are in their own hunks12:12
phluks left12:13
phluks joined12:14
juvenal left12:14
bootstrapper left12:15
Kicer86 left12:18
z8z joined12:19
gustavnils left12:20
cdeszaq joined12:21
sitaram aero1: you should be looking for horror stories not good stuff12:22
juvenal joined12:24
sitaram horror stories from *not* using a VCS, I mean. (In case you turn around and ask me "how dense are you" like you did that poor guy who was trying to help)12:24
charon: most of my efforts have been svn versus git, not "nothing" versus git. (Also clearcase in some projects)12:25
TCS has long had policies that no project shall run without a VCS. It's a different matter that the policy doesn't say anything about using brain dead ones :)12:26
iflista joined12:26
Damgaard joined12:26
arietis left12:28
sgambino joined12:29
arietis joined12:30
papegaaij left12:30
papegaaij joined12:30
jast horror stories first, then good stuff12:30
fasta What does am in (git)-[master|am]- mean?12:31
aqabiz left12:31
jast fasta: is that some kind of shell prompt enhancement? probably that you're on master and there's an unfinshed rebase/am operation12:32
(am as in man git-am)12:32
gitinfo the git-am manpage is available at http://jk.gs/git-am.html12:32
phiwo left12:32
fasta jast: nothing to commit (working directory clean)12:32
jast: it is what zsh displays via vcs_info.12:33
jast then you (or whoever is faced with this) probably forgot to finish the operation and just continued as normal12:33
RaceCondition left12:33
RaceCondishun joined12:33
jast for example, suppose you do a rebase and it comes up with conflicts12:33
now, suppose you miss that fact and just keep working normally, stage things, commit stuff, etc.12:34
now you have a clean working dir, but the rebase is still in progress12:34
fasta jast: the last commit is by Linus. I didn't do anything.12:34
jast if you were to type 'git rebase --continue' in that situation, unspeakable things would happen12:34
fsvehla left12:34
jast well, maybe the 'am' operation applied commits by linus12:34
xiangfu left12:34
jast or someone did a 'git pull' with the 'am' still unfinished12:35
fasta How can unfinished operations be shared via the network?12:35
jast they can't12:35
fasta That seems like a very bad idea.12:35
arietis left12:35
jast rebase/am progress is always completely local12:35
Imaginativeone left12:35
Infiltrator joined12:35
jast it's completely impossible for it to be transmitted from somewhere else via git-native methods12:35
fasta So, how is it then possible that it shows it?12:36
jast probably because the person who works in this local repository did a corresponding operation at some point in the past12:36
R1KRDO joined12:36
danillonunes joined12:37
jast might have been months ago if this is the first time you're actually displaying this information12:37
fasta jast: I now did a git reset --hard and it still shows it.12:37
corimarisol joined12:37
corimarisol left12:37
corimarisol joined12:37
jast rebase and am progress has nothing to do with the index and the branches12:37
it's independent information, stored somewhere in the bowels of .git12:37
marthinal left12:38
corimarisol left12:38
jast you could do 'git am --abort', but it would restore your situation back to what it was before the operation began, possibly a long time ago12:38
you can also hunt down the data in .git and remove it12:38
corimarisol joined12:38
corimarisol left12:38
corimarisol joined12:38
jast I'm not completely sure on the location, possibly something like .git/am or .git/applypatch or .git/dotest12:38
AdrienBrault left12:39
bzyx joined12:39
fasta jast: so, you are saying it is impossible that I got the repository via a pull into this state?12:40
jast yes12:40
picoguy joined12:40
jast well12:41
fasta jast: well, then I must have gremlins on my system.12:41
kevinfagan left12:41
jast if the detection of this vcs_info thing is poor, it might actually refer to a merge that's still in progress12:41
chisler left12:41
fasta Your suggestion worked.12:41
For other repositories it returned more expected results.12:41
phiwo joined12:41
fasta Thank you12:41
jast but then again, a 'git reset --hard' does abort unfinished merges12:42
sgambino left12:42
kevinfagan joined12:42
bioman_ joined12:42
nikolaidante left12:43
marthinal joined12:43
WinstonSmith left12:43
bootstrapper joined12:45
bioman_ left12:45
bioman joined12:47
normanrichards joined12:47
bioman Hello :)12:47
gitinfo bioman: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.12:47
bioman I'd like to use git revert <bad commit>12:47
I git kernel.org (3.8), then I add nouveau (open source Nvidia)12:48
RaceCondishun left12:50
CreativeEmbassy joined12:50
_main_ joined12:51
etcetera joined12:51
etcetera left12:51
WinstonSmith joined12:51
robbyoconnor left12:52
sebuba joined12:53
snql left12:53
eletuchy left12:54
MrDHat joined12:54
pity joined12:54
CreativeEmbassy left12:54
_main___main__12:55
bootstrapper left12:55
bioman Here is how I get kernel.org 3.8 : http://ix.io/4tn12:55
sq-one joined12:56
alexbligh joined12:56
bioman Here is how I add nouveau : http://ix.io/4to12:57
alexbligh What's the easiest way to do a git pull on all local branches and not change which branch is checked out?12:57
(against a single remote)12:58
bioman After that, I type git revert <older bad commit> and then it says "fatal: bad object <the commit I want to git revert>12:58
sebuba left12:58
daniel_- joined12:59
saki007ster joined12:59
spuz alexbligh: you can't because a git pull can modify the state of a branch git requires you to have it checked out12:59
bioman I have to say I'm dump as regards git, I just can't understand how it works Q_Q12:59
saki007s_ left12:59
bioman *please* help me13:00
alexbligh spuz, I am prepared for it to check each out in turn and restore13:00
spuz alexbligh: how would you resolve a conflict in that situation?13:00
Doomground joined13:00
alexbligh spuz, I suppose I'm interested on what your 'I'm going travelling, without connectivity" workflow. I'm guessing this involves "git fetch" then manually doing the merges.13:01
spuz, I'd hardly ever see merge conflicts on a pull as all the dev work is done on feature branches which are local.13:01
spuz alexbligh: you can do a git fetch --all to get all the commits that are on your remote13:01
alexbligh So I'd always see ff pulls13:01
and then how do you merge them in? IE do the pulls on each branch?13:01
m0viefreak check them out and do a git merge13:02
bzyx left13:02
spuz alexbligh: either do a merge or a rebase or whatever you want to do with your remote/branch13:02
m0viefreak which will essentially fast-forward to your upstream branch13:02
warez joined13:02
cannonball joined13:02
alexbligh Oh right, so it's as simple as git checkout foobranch && git merge remotes/origin/foobranch13:02
spuz yep13:02
m0viefreak you dont even need the ref13:02
"git merge" is just fine13:03
hellopat_ joined13:03
khmarbaise left13:03
alexbligh OK, so my workflow before losing connectivity is git submodule foreach git fetch --all (essentially).13:03
khmarbaise joined13:04
johnny_rose left13:05
bwidmer joined13:06
hellopat left13:06
babilen left13:06
jast bioman: what does this say: git cat-file -t <commit you want to revert>13:06
hellopat_ left13:07
bzyx joined13:08
RaceCondition joined13:08
robustus left13:09
saki007ster left13:09
robustus joined13:10
MrDHat left13:11
RaceCondition left13:11
MrDHat joined13:11
MrDHat left13:12
nesti joined13:12
z8z left13:13
hyperair joined13:13
freeed joined13:14
bioman jast: hello :) "error: unable to find 2c6a05f8d481fef46ea89248e4c8a4c9453cb493" "fatal: git cat-file 2c6a05f8d481fef46ea89248e4c8a4c9453cb493: bad file"13:14
jast that looks like your commit does not exist or is broken (e.g. due to filesystem corruption)13:14
itatitat joined13:14
jast you'll probably find that 'git log <commit>' won't work either13:15
CreativeEmbassy joined13:15
jast actually you'd get another error if the object was simply missing, so my guess is it's corrupted13:16
MrDHat joined13:16
sebuba joined13:16
nicoo .wg #code13:16
Oops, sorry13:16
johnny_rose joined13:17
chimay joined13:17
baba joined13:18
plumpkin left13:19
unix left13:19
sgambino joined13:20
AdrienBrault joined13:21
bioman jast: this commit exists : http://cgit.freedesktop.org/nouveau/linux-2.6/commit/?id=2c6a05f8d481fef46ea89248e4c8a4c9453cb49313:23
Guest6475 joined13:25
alunduil left13:27
geekbri joined13:28
bioman jast: First of all, is my way to get kernel.org + nouveau with git ?13:28
whitemage joined13:28
IntricateRuin joined13:29
normanrichards left13:29
ferdevferdev|away13:29
Fandekasp left13:30
bioman *correct*13:31
__main__ left13:31
whitemage left13:32
_main_ joined13:32
giallu joined13:32
pretty_function left13:33
babilen joined13:33
skyfaller left13:34
skyfaller_ joined13:34
Guest6475 left13:35
skyfaller joined13:36
skyfaller_ left13:36
bioman jast: ?13:36
MrDHat_ joined13:36
_main___main__13:36
NiteRain left13:37
MrDHat_ left13:37
MrDHat left13:37
skyfaller left13:37
skyfaller joined13:38
jargon joined13:38
jargon left13:38
jargon joined13:38
jast bioman: I dunno, I've never had any problems like that. perhaps freedesktop.org's server is broken? try fetching nouveau again in a separate repository and see if the same error shows up there13:38
anonymuse joined13:38
m0ltar joined13:39
W8uiE5 joined13:41
chisler joined13:41
asaf joined13:42
asaf1 left13:42
W8uiE5 git apply patch returned some whitespace errors. i manually removed the trailing whitespace errors, but still get error:patch failed filename:33 what can i do?13:42
achadwick joined13:42
Gonzo89 left13:43
bzyx left13:44
ojacobson joined13:44
mnx| left13:45
rmichnik joined13:45
h0bbit left13:45
bioman jast: ok. I thank you. I'll let you know13:46
marlun left13:46
soee left13:46
soee joined13:48
jarr0dsz left13:49
CodeShark left13:49
arand left13:49
JaredMiller joined13:49
kimico joined13:50
saki007ster joined13:50
JaredMiller left13:50
etcetera joined13:50
jonshea left13:51
jkremser left13:52
jcromartie joined13:52
jonshea joined13:52
Damgaard left13:54
maverick joined13:54
maverickGuest9050913:54
jamescarr joined13:56
Guest90509 left13:56
adamben left13:57
KevinSjoberg joined13:57
lng left14:00
iflista left14:01
Immutable left14:02
wting joined14:03
rolfvandekrol joined14:03
jfdi joined14:03
jamesez joined14:03
Nebros joined14:04
Nebros left14:04
amigojapan joined14:04
nilg left14:04
bootstrapper joined14:04
JDuke128 joined14:05
jkremser joined14:05
beautifulmind left14:05
rolfvandekrol left14:06
Galaris left14:06
jkremser left14:07
Skaag left14:08
Skaag joined14:08
itatitat left14:09
kevinfagan left14:09
breakingthings joined14:11
subhojit777 left14:11
nickn joined14:13
W8uiE5 how can i check if a hook was called?14:14
bootstrapper left14:14
maleknet left14:14
jamescarr left14:15
znode joined14:15
ojacobson W8uiE5: does it generate any output? Most hooks have their output sent to the git command's output.14:16
Alternately, check to see if the thing the hook does has been done.14:16
scampbell joined14:16
breakingthings left14:17
W8uiE5 ojacobson: just testing a simple pre-commit hook with 1 line: echo 'test'. then i make a commit, but theirs no test14:17
sspeaker joined14:17
ojacobson W8uiE5: is the hook executable? 'ls -l .git/hooks/' will tell you.14:17
sspeaker left14:17
kukks joined14:17
kukks left14:17
kukks joined14:17
arand joined14:18
W8uiE5 ojacobson: i use win 714:18
toothrtoothrot14:18
YoungFrog try using "touch ~/sometempfile", and see if that file was touched.14:18
jatt joined14:19
W8uiE5 YoungFrog: touch a creates a if it does not exist. tocu a if it exist does not show a different time stamp14:19
ojacobson W8uiE5: it also updates the mtime of files that do exist.14:20
willob joined14:20
jamescarr joined14:20
subhojit777 joined14:21
nilg joined14:21
YoungFrog W8uiE5: sorry I don't know win 7 ; but you can use it on a non-existent file then, and see if it gets created14:21
I mean, it's easier than trying to figure out how stdout and stderr are redirected.14:21
W8uiE5 YoungFrog: ok, one moment14:22
RaceCondition joined14:22
jfdi left14:22
breakingthings joined14:22
v0n joined14:23
jkremser joined14:23
W8uiE5 YoungFrog: hmm. the file hasn't be created14:23
Footur joined14:23
Footur hello there14:24
gitinfo Footur: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.14:24
thl0 joined14:24
kogent joined14:24
Footur is there a recommended way to handle large files in git?14:24
arvind_k left14:24
YoungFrog W8uiE5: As ojacobson suggested, check if the file is executable and has the right name.14:25
macabre joined14:25
arand Footur: There are some third-party extensions like git-media and git-annex, otherwise the recommendation would be "don't" probably.14:26
znode left14:26
chuckharmston joined14:26
Footur arand: thanks14:26
cmmagid left14:26
jxpx777 joined14:26
trungqtran joined14:27
AaronMT joined14:27
xxc_michael left14:29
eletuchy joined14:29
W8uiE5 ok, thanks14:29
git apply patch returned some whitespace errors. i manually removed the trailing whitespace errors, but still get error:patch failed filename:33 what can i do?14:29
Pugnax joined14:30
przemoc left14:30
xxc_michael joined14:30
btree joined14:31
OOPMan left14:32
btree left14:32
Milossh joined14:32
xxc_michael left14:32
znode joined14:32
znode left14:33
rurufufuss left14:33
mmitchell joined14:34
fsvehla joined14:35
marthinal left14:35
jfdi_maverick joined14:35
jamescarr left14:36
marthinal joined14:36
hellopat joined14:37
pity left14:39
theRoUS joined14:39
theRoUS left14:39
theRoUS joined14:39
albel727 joined14:40
nielsbusch joined14:40
ferdev|awayferdev14:40
mikeym_ joined14:41
saki007ster left14:41
gustavnils joined14:41
betz joined14:41
nielsbusch left14:41
jaequery joined14:42
_ikke_ manually editing patches is very tricky14:42
jamescarr joined14:42
albel727_ left14:42
betz left14:44
arand W8uiE5: Have you tried using the --whitespace option to git apply instead?14:44
Vert joined14:44
bootstrapper joined14:44
cristi_ joined14:45
cristi_Guest8653414:45
breck joined14:46
przemoc joined14:46
W8uiE5 arand: there is no such option. tried --ignore-whitespace14:46
nielsbusch joined14:47
valgrind left14:47
Pugnax left14:48
shadok joined14:48
ThePawnBreak left14:48
arand man git apply14:50
gitinfo the git-apply manpage is available at http://jk.gs/git-apply.html14:50
arand W8uiE5: --whitespace=(nowarn|warn|fix|error|error-all)14:51
nielsbusch left14:52
lov joined14:52
hatake left14:53
lov When I see ssh://foo.bar.com/some/path/Project.git , does Project.git actually exist? or is it something that the git client interprets?14:53
bremner lov: that's up to the server, but probably there is a Project.git somewhere on the server14:53
W8uiE5 arand: ok, thanks. the error is still the same14:54
eletuchy left14:54
Sky[x] left14:54
lov bremner: Is there any sort of documention on this? I'm having trouble getting google to understand ".git file"14:54
Ziggy` joined14:54
sweb joined14:54
eletuchy joined14:54
bremner lov: perhaps you could tell us what the problem you are trying to solve is?14:54
sweb left14:55
lov I'm really just trying to understand better how git works. I've seen foo.git as the end part of repo urls, but the foo.git itself isn't part of the clone. I'm trying to figure out what's actually happening.14:55
ojacobson lov: the magic phrase is "git repository" and, yes, generally it exists on disk. See !bare for some details. Answering bremner's question will help, too.14:55
gitinfo lov: an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/14:55
jast usually it's something that actually exists14:55
lov ojacobson: thanks14:55
jast git just parses the name to determine a nice name for your local target path14:55
kevinfagan joined14:55
ojacobson When you 'git clone foo.git' you end up with a non-bare clone in a directory named foo/.git with a working tree in foo/14:56
so, in effect, foo.git *is* copied to the clone, just under a different name.14:56
jast on the remote server, chances are that you have a physical directory like /some/path/Project.git and it contains similar things to your local .git subdir in a repo14:56
hatake joined14:56
jast (when you have only that metadata, we call that a bare repository)14:56
bootstrapper left14:56
ojacobson (the local repository in .git isn't a byte-for-byte copy, but it contains much of the same data)14:56
P4C0 joined14:56
lov ok, I think I'm starting to understand.14:57
nielsbusch joined14:57
P4C0 hello, is it possible to rebase n commit in the middle of a log? (I mean, rebase n, n-1 and n-2, but n is not head, head will be n+1)14:58
lov so Project.git isn't an actual file on the remote server at all. It's just a reference to a bare repository.14:58
bremner well, it's also a directory14:58
probably14:58
Guest86534 left14:58
hatake left14:58
ThePawnBreak joined14:58
lov meaning it would be /some/path/Project/.git/ ? or /some/path/Project.git/ ?14:59
bremner the latter14:59
eletuchy left14:59
ojacobson Probably some/path/project.git14:59
lov hmm.14:59
ojacobson 'git init --bare project.git' will create such a directory14:59
(or 'git clone --bare', or 'git clone --mirror')14:59
W8uiE5 left14:59
aliljet left15:00
lov right. ok. So is there a reason behind using this kind of nomenclature? Why not just provide ssh://...../some/path/Project ?15:00
ojacobson You can do that, too15:00
aliljet joined15:00
mklappstuhl joined15:00
lov is it just to help humans understand more easily that the url is a git repo?15:00
jast that, and it helps on the server15:00
thl0 left15:00
ojacobson git-upload-pack (the part that handles the server side of git clone and git fetch) will append .git if necessary15:00
ehsan joined15:00
jast if you look at a server filesystem and see foo.git, you know immediately that it's a bare git repo15:00
lov hmm, interesting.15:00
ojacobson it'll try without .git first, though, if the passed path doesn't end with .git15:00
senorflor joined15:01
jast this is just a convention, though; technically you can call it whatever you want15:01
lov ok.15:01
hatake joined15:01
ojacobson yeah, the convention is that bare repos have names ending in .git and working repos do not, but it is just a convention15:01
you can violate it if you think you have a good reason15:01
git *mostly* doesn't care about names, for bare repos15:01
Bass10 joined15:01
thl0 joined15:01
nielsbusch left15:01
soee left15:02
garbagecollectio joined15:02
NiteRain joined15:02
ShooterMG left15:02
lov ok, thanks. I was looking at someone's post where he was pushing from one desktop to another desktop which had a post-update hook to perform tests/etc. I was confused since his remote was Project.git, and I had never really understood that part.15:02
phluks left15:03
znode joined15:03
oposomme joined15:04
aisbaa joined15:04
rudivs joined15:05
Pugnax joined15:05
fsvend left15:06
normanrichards joined15:06
zerba left15:06
rudivs following some bad advice, I did "git reset --hard HEAD^" when I think I was actually looking for "git reset --hard". In the process I lost my last commit. Is there a safe way to get it back?15:07
nielsbusch joined15:07
ojacobson rudivs: it should be listed in 'git reflog'15:07
you can reset back to it15:07
yshh joined15:08
pfefferz joined15:08
daddio left15:08
AnimeCYC joined15:09
hatake left15:09
rudivs ojacobson, I can see it as HEAD@{2} - would the command then be git reset HEAD@{2}?15:09
senorflor left15:09
ojacobson Yes, or you can reset to the bare hash15:10
__BigO__ joined15:10
axl_ joined15:10
ojacobson The HEAD@{number} syntax (explained in man gitrevisions) is notation for "the n'th item of the reflog of HEAD"15:10
gitinfo the gitrevisions manpage is available at http://jk.gs/gitrevisions.html15:10
senorflor joined15:10
Kadma joined15:10
rmichnik left15:10
jamescarr left15:11
alkino left15:12
nielsbusch left15:12
rudivs thanks ojacobson15:12
johnpcamara joined15:13
znode left15:13
breck left15:13
beaky joined15:13
beaky hello15:13
how do I combine two git repos into one15:14
thatguycraig joined15:14
SeoFood joined15:15
daniel_- left15:15
datadevil joined15:15
_ikke_ beaky: !subtree15:15
gitinfo beaky: The subtree merge method is great for incorporating a subsidiary git repo into your current one with "unified" history. Read http://git-scm.com/book/en/Git-Tools-Subtree-Merging for more info, or try one of the !subtree_alternatives15:15
YoungFrog beaky: wait, did you just ask "how do I combine two universes into one" ?15:15
beaky ah thanks15:15
YoungFrog _ikke_: and did you just answer that straightforwardly ?15:15
beaky yep; git lets you become master of the universe15:15
Skaag i just git rm -f the wrong directory15:15
can i get it back from the master?15:15
i didn't commit yet15:16
datadevil If I it checkout master && git rebase someotherbranche15:16
does that rebase master onto someotherbranche or the other way round?15:16
beaky also, what is the best way to drop all uncommitted changes? 'git revert' or 'git reset' or 'git reset --hard' or something else?15:16
hatake joined15:16
_ikke_ Skaag: git checkout path/to/dir15:17
datadevil: It rebases master on someotherbranch15:17
YoungFrog datadevil: master is then rebased onto someotherbranche.15:17
_ikke_ beaky: the latter15:17
beaky ah thanks15:17
datadevil ok. Would that explain master saying it is ahead of the origin if I run a status on master?15:18
Skaag _ikke_: thanks, still learning the git :)15:18
nielsbusch joined15:18
jaequery left15:18
natechan joined15:18
Skaag _ikke_: it says doesn't match any files known to git15:19
TheJH joined15:19
_ikke_ Skaag: Does git status say the directory is removed?15:19
OOPMan joined15:19
YoungFrog datadevil: if you rebase master onto someother branch, you usually diverge from origin. So you're in a nice situation, where the only commits you changed were actually commits you had made yourself.15:19
datadevil: but yes, it can explain.15:20
isomorph joined15:20
flijten left15:20
johnny_rose left15:20
kpreid joined15:21
madewokherd joined15:21
datadevil YoungFrog: so how would I resolve that, rebase master on origin? The weirder thing seems to be that this master == origin, if I read it correctly15:21
arand datadevil: Well, master would now be diverged from origin/master, since you've rewritten it's history.15:21
ostree left15:21
tbmiller joined15:21
datadevil arand: makes sense15:21
nielsbusch left15:22
adamben joined15:22
zoonfafer left15:23
YoungFrog datadevil: you have your own master branch, which was intially a copy of origin/master (which itself is a copy of the true master branch at origin when you fetched it)15:23
Sulculac joined15:23
rudivs left15:23
arand datadevil: If origin has already been published, you would need to now merge your new master and origin/master and then push that, or as you said rebase master on top of origin/master. I'm not sure you want to do the rebase you did in the first place though if you intend to push stuff...15:24
datadevil arand: not quite sure yet why they thought of this workflow15:25
arand where did this "someotherbranch" come from, did it start off from the original master somewhere?15:25
nir joined15:25
datadevil arand: think so, but not quite sure tbh15:26
ErKa joined15:26
Sulculac left15:26
arand In that case it would make more sense to rebase someotherbranch on top of master, and then merge that into master (fast-forward) and push that...15:27
bootstrapper joined15:27
nielsbusch joined15:27
nir left15:27
nir joined15:27
alkino joined15:27
datadevil arand: yeah..or even get rid of the notion of remote master as the master I'm talking about has no real remote..think that is a configuration issue15:28
remote origin master...my head spins, sorry15:28
jatt left15:30
KevinSjoberg left15:32
nielsbusch left15:32
datadevil I do understand it all a bit better now, thanks for that15:33
fission6 joined15:34
thl0 left15:35
babilen left15:35
babilen joined15:35
hatake left15:35
rmichnik joined15:36
babilen left15:36
flijten joined15:36
saki007ster joined15:36
babilen joined15:37
hatake joined15:37
nielsbusch joined15:37
babilen left15:37
Chryyz left15:37
datadevil left15:37
SqREL joined15:38
matthewt left15:38
MrDHat joined15:38
letharion left15:39
babilen joined15:39
thl0 joined15:39
grn_ joined15:39
nir left15:39
eletuchy joined15:39
eletuchy left15:40
babilen left15:40
eletuchy joined15:40
kjetilho joined15:41
OOPMan left15:41
arand left15:41
bauruine left15:41
MetaCosm I am curious about best practices for maintain multiple changesets on top of an open-source project (hosted on github in this case). We have general improvements that might be merged into the upstream proejct, then we have system specific changes that never will be merged. Is there a well-worn pattern for this?15:41
nielsbusch left15:42
moore_ joined15:42
MetaCosm We are just using topic branches at the moment, but I sense there is a better way.15:42
hatake left15:42
kjetilho left15:42
hatake joined15:43
OOPMan joined15:43
babilen joined15:44
_ikke_ 1Well. there is very little better than topic branches, to keep a set of changes seperate15:44
shezbaig_wk left15:44
pfefferz left15:44
jphillips joined15:44
Pugnax left15:45
jerikl joined15:45
JPeterson left15:45
[1]JPeterson joined15:45
sirdancealot joined15:46
tomswartz07 joined15:46
tomswartz07 hey all, i have a question, but i'm uncertain of the terms for what I'm looking to do.15:46
_ikke_ tomswartz07: Well, try to explain it15:47
agile left15:47
tomswartz07 i would like to automatically configure my git commit messages to include a 'tested-on:" field, that could be filled out at the time of commit. As in, this commit was tested on this device15:47
is there a way to do this?15:47
nielsbusch joined15:47
hatake left15:47
_ikke_ tomswartz07: Look at the commit-msg hook in man githooks15:48
gitinfo tomswartz07: the githooks manpage is available at http://jk.gs/githooks.html15:48
_ikke_ though, hooks need to be set up by each developer themselfs15:48
hatake joined15:48
hatake left15:49
thl0 left15:49
hatake joined15:49
tomswartz07 _ikke_: i see- theres a similar thing for gerrit as well. I've never worked with hooks before; what should i know before i begin?15:49
thl0_ joined15:49
CodeShark joined15:50
chrisgeorge joined15:51
mikeym_ left15:51
_ikke_ tomswartz07: Very little, they're just executables that get run on certain events15:51
agile joined15:51
tomswartz07 i see- after digging in that page, it seems that there's a git commit.template option15:51
_ikke_ Ah. I meant prepare-commit-msg15:51
ah ok15:52
nielsbusch left15:52
papegaaij left15:52
tomswartz07 would the template do what i need?15:52
_ikke_ tomswartz07: Most likely, yes15:52
amigojapan_ joined15:52
saki007ster left15:52
amigojapan left15:53
mikeym_ joined15:53
MrDHat left15:54
tomswartz07 whats the difference between prepare-commit-msg and a commit template?15:54
_ikke_ tomswartz07: The one is static, the other dynamic15:54
tomswartz07 _ikke_: template is static, and prepare is dynamic?15:55
_ikke_ aye15:55
CodeShark left15:55
kristofers joined15:55
_ikke_ The template is just a file that's the base for the commit message, the hook can then do the things it want to the message15:56
hatake left15:56
tomswartz07 excellent. I think the template is exactly what i need! thanks _ikke_15:56
oposommeoposomme|away15:57
nielsbusch joined15:57
wasanzy left15:58
tomswartz07 one last question: when using git templates in conjunction with gerrit configs, will the gerrit.createchangeid hook still operate as expected?15:59
L0cky joined15:59
Remram joined15:59
thl0_ left16:02
thl0 joined16:02
_ikke_ tomswartz07: I don't know16:02
tomswartz07 ok- i guess i'll have to play with it and see.16:04
thanks again.16:04
tomswartz07 left16:04
JDuke128 left16:05
JDuke128 joined16:05
yshh left16:05
infynyxx joined16:05
yshh joined16:06
GeertV left16:06
aero1 left16:07
GeertV joined16:07
johnpcamara_ joined16:08
maletor joined16:08
znode joined16:09
alunduil joined16:10
yshh left16:11
aartist joined16:11
GeertV left16:11
nielsbusch left16:12
johnpcamara left16:12
tPl0ch left16:12
bioman left16:13
rchavik left16:13
jonshea left16:14
thl0 left16:14
thl0 joined16:14
Kicer86 joined16:14
Noldorin joined16:14
netiul left16:15
znode left16:15
itatitat joined16:17
cbreak-work left16:17
nielsbusch joined16:17
arand joined16:20
maestrojed joined16:20
alunduil left16:20
alunduil joined16:21
mishok13 left16:21
jerikl left16:21
nielsbusch left16:22
LeMike left16:22
marhaban joined16:23
psoo left16:24
boze joined16:24
oposomme|awayoposomme16:24
oposomme left16:25
flijten left16:25
matthewt joined16:26
jfdi_maverick left16:26
ThomasLocke left16:27
thl0 left16:28
nielsbusch joined16:28
thl0 joined16:29
thl0 left16:29
thl0_ joined16:29
bootstrapper left16:30
Kicer86 left16:31
hays_ joined16:32
LeMike joined16:32
Sky[x] joined16:33
RaceCondition left16:35
Jackneill joined16:35
Jackneill left16:35
Jackneill joined16:35
rath left16:35
tim left16:37
Cromulent joined16:38
h0bbit joined16:39
fsvend joined16:40
jxpx777 left16:40
willob left16:41
OOPMan left16:41
johnpcamara_ left16:41
johnpcamara joined16:42
thl0_ left16:42
Gentlecat_ joined16:42
thl0 joined16:42
lifelike left16:43
thl0 left16:43
johnpcamara left16:43
thl0 joined16:43
lifelike joined16:43
johnpcamara joined16:43
Gentlecat left16:43
madewokherd left16:43
johnpcamara left16:43
OOPMan joined16:44
jpcamara joined16:44
madewokherd joined16:44
Kicer86 joined16:45
lifelike left16:46
lifelike joined16:46
bootstrapper joined16:46
jensenc joined16:47
lifelike left16:47
LeMike left16:48
lifelike joined16:48
jonshea joined16:48
oriba joined16:49
RaceCondition joined16:49
JohnBat26 left16:50
bauruine joined16:50
local joined16:50
bioman joined16:50
bioman Hep16:50
agileadam joined16:50
bioman trying git revert : "error: 'revert' is not possible because you have unmerged files". What does this mean and how can I "fix" this *please* ?16:51
agileadam I have the pleasure of trying to determine which files a colleague has modified. The code has a git repo with about 15 commits. The commits contain a LOT of garbage… he didn't know what he was doing. Is there a way I can export a diff of the changes made to all files EXCLUDING certain directories?16:52
charon bioman: !eekaconflict16:52
gitinfo bioman: Merge conflicts are a natural part of collaboration. When facing one, *don't panic*. Read "How to resolve conflicts" in man git-merge. Carefully go through the conflicts. Picking one side verbatim is not always the right choice!16:52
jast bioman: your pull/merge still isn't complete. you'd know this if you'd read the message it gave to you. ;)16:52
I gotta go... good luck16:53
TonyM I've just started getting this message when using git on github: /data/github/shell/bin/gh-environment: line 84: /etc/ghrc-secrets: Permission denied16:54
thl0 left16:54
fobban joined16:54
TonyM anyone know whether it's my fault or just something awry on github?16:54
thl0 joined16:55
sfalcon joined16:55
thl0 left16:55
thl0 joined16:55
_iron joined16:56
milki lol probably not16:56
to 116:57
check statuspage?16:57
jaequery joined16:57
rideh joined16:57
texasmynsted joined16:58
tonymet joined17:00
sluther joined17:00
lavaman joined17:00
texasmynsted So when I do a push (git 1.8.1.3) over https I get a gui prompt for credentials. How do I prevent a gui prompt? I checked here https://www.git-scm.com/docs/gitcredentials and found nothing about gui/non-gui. Any ideas?17:01
revyd left17:01
moore_ left17:02
robbyoconnor joined17:02
enr joined17:02
rtjure joined17:03
chisler left17:03
bioman Ok, read... Just don't understand anything. Infact, I've never understood git, I use basics17:03
ejd joined17:03
bioman Please help me... Q_Q17:03
wasanzy joined17:03
lov bioman: you're still in the middle of a merge.17:04
agileadam Nevermind. I've worked something out to determine modified files excluding certain directories17:04
lov are you trying to back out of the merge? "revert" is not the same as what you might be used to in, say, svn.17:04
thl0 left17:05
bioman lov: I have a commit that causes regression. On #nouveau, I've been said to use 'git revert <commi_that_causes_regression>17:05
thl0 joined17:06
thl0 left17:06
AdrienBrault left17:06
senorflor left17:06
thl0 joined17:06
lov right, that's fair. But you're in the middle of merging something, because there's a merge conflict.17:06
You need to resolve that before you can do anything else.17:06
So, your problem here is with a merge conflict, not reverting.17:06
boombatower joined17:07
howlymowly left17:07
AartBluestoke left17:07
bioman wonders why God has made him so dumb as regards git ;'(17:07
OOPMan left17:07
milki o.O17:07
skul left17:08
rmichnik left17:08
_ikke_ bioman: Have you read anything from !book?17:08
gitinfo bioman: There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable17:08
jargon left17:09
bioman lov: How can I "resolve" things that do not understand ? :(17:09
goshawk joined17:10
OOPMan joined17:10
rmichnik joined17:10
lov http://stackoverflow.com/questions/161813/how-do-i-fix-merge-conflicts-in-git17:10
also, !book17:10
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable17:10
lresende joined17:11
znode joined17:11
psoo joined17:12
tavist0 joined17:14
looper joined17:14
alorence left17:14
Skaag _ikke_: git status shows them as deleted17:15
_ikke_: how do I undo this removal and bring it back from git?17:16
thl0 left17:16
yshh joined17:16
thl0 joined17:17
_ikke_ Skaag: What command did you execute?17:17
znode left17:17
thl0 left17:17
willob joined17:17
Skaag ok i think i managed with git reset HEAD media17:17
then git checkout -- media17:17
thl0 joined17:17
natechan left17:17
gitinfo set mode: +v17:17
jensenc hi can git-p4 understand p4 branches ?17:18
texasmynsted anybody know how to prevent a gui prompt on push?17:18
spyroboy is it for an ssh password?17:18
fsvehla left17:18
lionel_ left17:19
spyroboy I think I've seen that of some distros. they spawn a gui for some password inputs on the command line.17:19
_ikke_ Skaag: Ooh, did you git add it?17:19
scorphus joined17:19
texasmynsted hmm. yes, I guess the remote.origin.url is ssh at a third party17:21
yshh left17:21
bioman lov: I've launched git mergetool. Now I'm in the twilight zone... I'm not a developer, I know nothing at all about this. I'm just a linux user that try to maintain his distro... How can I quit this tool please ?17:22
natechan joined17:23
rob_w left17:23
itatitat left17:23
_ikke_ you're probably in vimdiff?17:24
Melrian joined17:24
swiety joined17:24
grawity try Esc Esc :qa! Enter17:24
dhruvasagar left17:24
blackmat` left17:25
tewecske joined17:25
blackmat` joined17:25
kevwil joined17:25
bioman grawity: thank you.17:26
jaequery left17:26
fRAiLtY- left17:27
texasmynsted is there no way to prevent the gui prompt?17:27
bioman If I understand correctly, a basic linux user will never manage to merge conflicts in git isn't it ?17:27
thl0 left17:27
grawity bioman: a basic linux user can merge conflicts using their favourite text editor17:27
the mergetool is just a convenience – and there are many better ones than vimdiff17:28
thl0 joined17:28
grawity e.g. meld, kdiff17:28
thl0 left17:28
thl0 joined17:28
Shusshu joined17:29
Chillance joined17:29
breakingthings left17:30
edude03 joined17:30
Shusshu left17:31
jaequery joined17:31
tureba joined17:31
Cromulent left17:32
francisfish left17:32
bioman grawity: I see lines of code, how do you want me to solve a conflict ???17:32
spuz left17:32
adamben left17:33
jarr0dsz joined17:33
Chryyz joined17:35
hyperair left17:35
grawity ask #nouveau guys, they told you to use `git revert` and it's their code in the first place17:35
oriba_ joined17:35
kogent left17:35
texasmynsted hmm. looks like it could be an ssh problem and not specifically a git problem17:35
oriba left17:35
grawity I can't imagine that many situations in which a basic linux user will encounter merge conflicts in code they don't understand a thing about17:36
Skaag _ikke_: initially yes17:36
dhruvasagar joined17:36
Skaag _ikke_: it was added, then I realized the mistake and added it to .gitignore17:36
_ikke_: I didn't know git rm -r would also delete the physical files :)17:36
grawity either they have to merge their own changes with upstream's changes (which means they know enough about the code to have changed & committed it...)17:36
subhojit777 left17:36
amigojapan_ left17:36
grawity or they run a command that was given by the developers on IRC (which means the same developers should be helping with the failed command, too)17:37
sq-one left17:37
sq-one joined17:37
bioman grawity: I've asked them, there I'm know as "bothering bioman". They won't help me anymore17:38
esc does git already have a stage command?17:38
never versions17:38
thl0 left17:38
fsvend left17:38
esc just correcting an exam, a student reckons he can use 'git stage' to stage a file17:38
thl0 joined17:38
grawity esc: No, afaik it has always been called `git add`.17:38
protux joined17:39
grawity oh, wait a moment17:39
thl0 left17:39
esc maybe he had a newer version on his machine, so i better double check17:39
grawity apparently `git stage` exists and is a synonym for that17:39
thl0 joined17:39
esc !man stage17:39
man git stage17:39
gitinfo the git-stage manpage is available at http://jk.gs/git-stage.html17:39
protux left17:40
esc wow17:40
YoungFrog same here, git stage works. git v1.8.1.217:40
bremner get off my lawn you kids17:40
grawity `git stage` was added in v1.6.1, commit 11920d28da1ac117:40
oriba_ left17:40
lolwhut joined17:41
bremner really?17:41
I don't have it in 1.7.10.417:41
YoungFrog I have it in 1.7.2.5 on a Debian17:41
hatake joined17:41
ozette left17:41
YoungFrog (Debian squeeze)17:42
bremner oh, I have it, just not zsh completion17:42
senorflor joined17:42
Corren joined17:42
protux joined17:42
protux left17:42
YoungFrog What, zsh does not scan source code to make its completion list ? That is disappointing.17:43
protux joined17:44
suy left17:44
senorflor left17:45
pppaul joined17:45
shezbaig_wk joined17:46
lavaman1 joined17:46
lavaman left17:46
mmitchell left17:46
texasmynsted fwiw, the problem was an ssh related issue.17:49
jceb left17:49
texasmynsted left17:49
thl0 left17:51
thl0 joined17:52
thl0 left17:52
thl0_ joined17:52
opus joined17:53
techhelp joined17:54
lavaman joined17:54
OliverJAsh joined17:55
tsdh joined17:56
betz joined17:57
jjore joined17:57
dhruvasagar left17:57
codertux joined17:57
lavaman1 left17:58
maxmanders left17:58
erichynds joined17:59
bbloom left18:00
jcromartie left18:00
Desproges left18:00
kkwak joined18:00
kkwak left18:01
thiago joined18:01
thl0_ left18:02
daniel_- joined18:02
daniel_- left18:02
daniel_- joined18:02
P4C0 Hello, when doing git diff between commits, is there an easy way to apply that?18:02
thl0 joined18:03
thl0 left18:03
RaceCondition left18:03
thl0 joined18:03
P4C0 (my making a patch mabye, or a command to overwrite current file with the one on commit x?18:03
grawity what do you actually want to achieve?18:03
hatake left18:04
grawity the first line sounds like you're asking for `git apply` or `git am` or `git cherry-pick`18:04
but the second line sounds like you want `git checkout`18:04
P4C0 grawity: yes I just checked the man page for git checkout, that's what I need, with -p option18:05
senorflor joined18:05
JDuke128 left18:05
fsvehla joined18:05
esc YoungFrog: have fun implementing this :)18:06
YoungFrog :)18:06
P4C0 grawity: oh, but it failed, since my file is not merged :( (ignoring unmerged:)18:06
Melrian left18:06
Kadma left18:06
fly9 joined18:07
opus left18:07
alp82 joined18:07
pr0ton joined18:07
NaN joined18:08
asker joined18:08
NaN what is a best practice after doing a merge? git diff <current branch> <new branch>?18:08
fobban left18:08
wasanzy left18:09
tureba left18:09
joshsmith joined18:10
pr0ton left18:10
dreiss joined18:10
P4C0 can format-patch be used only in one file? it doesn't seem to be the case :(18:10
pr0ton joined18:10
grawity so are you going to explain what you're trying to achieve by running random patch-related commands?18:11
infynyxx left18:11
undecim joined18:11
diegoviola left18:11
khmarbaise_ joined18:12
znode joined18:12
opus joined18:12
mihamina joined18:13
thl0 left18:13
thl0 joined18:13
thl0 left18:14
khmarbaise left18:14
khmarbaise_khmarbaise18:14
thl0 joined18:14
relipse left18:16
ozette joined18:16
fobban joined18:16
kumbayo joined18:17
NaN left18:17
Correnkenperkins18:17
znode left18:17
mikeym_ left18:19
marthinal left18:19
P4C0 Is it possible to squash 2 commits together, but using the commit log of the first one?18:19
glaksmono joined18:19
sq-one left18:20
techhelp left18:20
mikeym_ joined18:20
gyre008 joined18:20
techhelp joined18:20
jerikl joined18:22
pfefferz joined18:22
etcetera left18:22
kit joined18:22
hyperair joined18:22
kevinfagan left18:22
gyre007 left18:24
sh42 joined18:24
thl0 left18:24
sh42 left18:24
sh42 joined18:24
thl0 joined18:24
marthinal joined18:24
thl0 left18:24
thl0 joined18:25
gyre008 left18:25
etcetera joined18:25
howlymowly joined18:25
robbyoconnor left18:26
wasanzy joined18:26
ferdev left18:26
tango_ P4C0: use the fixup keyword instead of squash during the interactive rebase18:26
HardDisk_WP joined18:27
HardDisk_WP Hi18:27
robbyoconnor joined18:27
HardDisk_WP In a repository, I have created a file with >100 commits18:27
P4C0 tango_: what's the difference? I'm not 100% sure18:27
HardDisk_WP Now, the time has come to move this and another file into its own repository18:27
How do i do this without losing history?18:27
I'm not concerned about the other files affected by the commits18:28
tango_ P4C0: squash asks you for the commit message. fixup uses the first commit message18:28
P4C0 tango_: thanks :)18:28
betz left18:28
garbagecollectio left18:28
tango_ HardDisk_WP: you probably want something like filter-branch or something with the subtrees, but I can't give you specific incantations18:28
HardDisk_WP k18:29
h0bbit left18:30
senorflor left18:31
asker left18:32
jaequery left18:32
esc so, the exam question was: Describe a common work-flow (series of a few commands) when using git18:33
jaequery joined18:33
mike_pizza left18:33
esc someone wrote: I use the github APP, it has a nice GUI18:33
kumbayo left18:34
esc man git synchronize18:34
gitinfo the git manpage is available at http://jk.gs/git.html18:34
kumbayo joined18:34
tallest_red joined18:34
P4C0 what's the difference between edit and reword? is amending different than editing the commit message?18:34
EmpiresBane joined18:34
Sigma left18:35
breakingthings joined18:35
Cromulent joined18:35
thl0 left18:36
zenx left18:36
punknology joined18:36
PaulCapestany joined18:36
thl0 joined18:36
thl0 left18:36
thl0 joined18:37
hatake joined18:37
chisler joined18:37
mikeym_ left18:37
whyrusleeping joined18:37
mikeym_ joined18:38
whyrusleeping is there a way to make a repo automatically checkout a new branch that i push to it? (for publishing a website)18:38
kumbayo left18:38
tjadc left18:39
kumbayo joined18:39
alexbligh left18:39
system64 joined18:40
Rhonda whyrusleeping: ikiwiki does that18:40
jceb joined18:41
robbyoconnor left18:41
alkino left18:42
bzyx joined18:42
kumbayo_ joined18:43
kumbayo left18:44
Cromulent left18:45
chimay left18:46
senorflor joined18:46
jaequery left18:46
maxmanders joined18:46
marhaban left18:46
whyrusleeping isnt it just using hooks?18:47
maestrojed left18:48
protux left18:48
achadwick left18:48
snql joined18:48
Sicp joined18:48
bremner whyrusleeping: see also !deploy18:49
gitinfo whyrusleeping: Git is not a deployment tool. You can build one around it for simple environments. http://sitaramc.github.com/the-list-and-irc/deploy.html18:49
snql left18:49
Rhonda whyrusleeping: In theory, yes.18:49
snql joined18:49
maestrojed joined18:49
hatake left18:49
AdrienBrault joined18:49
_goTAN left18:50
rakl joined18:51
baba left18:51
zoresvit left18:51
snql left18:51
snql joined18:52
chuckharmston left18:52
cebor left18:52
shezbaig_wk left18:52
pr0ton left18:53
ryez left18:53
whyrusleeping alright, thanks!18:53
cebor joined18:54
pr0ton joined18:54
thl0 left18:55
thl0 joined18:55
thl0 left18:55
thl0 joined18:56
pfefferz left18:56
pfefferz joined18:56
ferdev joined18:57
LeMike joined18:57
anderse left18:57
jonshea left18:58
jonshea joined18:58
Vampire0 left18:58
jaequery joined18:58
senorflor left19:00
diegoviola joined19:00
tonymet left19:00
tureba joined19:01
sh42zeroSignal19:01
tonymet joined19:01
ARNHOE joined19:01
Vampire0 joined19:03
Parhs joined19:03
babilen left19:06
alorence joined19:06
jensenc left19:07
opus left19:07
diegoviola left19:07
etcetera left19:08
infynyxx joined19:08
garbagecollectio joined19:09
chisler left19:09
rjc joined19:10
etcetera joined19:11
EmpiresBane left19:12
pantsman joined19:12
pantsman left19:12
pantsman joined19:12
kumbayo_ left19:13
leeN joined19:13
znode joined19:13
hobodave joined19:13
thl0 left19:13
thl0 joined19:14
maestrojed left19:14
thl0 left19:14
thl0 joined19:14
blackmat` left19:14
kevinfagan joined19:16
kevinfagan left19:16
kevinfagan joined19:16
maestrojed joined19:16
garbagecollectio hey19:16
lacrymology joined19:17
garbagecollectio git push says everything is up to date19:17
after i did git add19:17
git commit -m19:17
and git push19:17
within a branch19:17
??19:18
kogent joined19:18
znode left19:18
rlubke joined19:18
bremner garbagecollectio: probably that branch is not present in the remote repo.19:19
cebor left19:19
jaequery left19:19
garbagecollectio how do i make it present19:19
i did git checkout -b 'name'19:19
bremner git push remotename branchname19:19
jaequery joined19:20
garbagecollectio git push name-of-remote-repo-that-isnt-present local-branch19:20
??19:20
bremner ummn. What is the name of your remote, origin?19:21
garbagecollectio yeah19:21
well how do i find out to be sure19:21
bremner git remote -v19:21
garbagecollectio says origin and then a url19:21
bremner ok, so git push origin branchname19:22
Saby joined19:22
Saby left19:22
Saby joined19:22
garbagecollectio so anytime i cut a branch locally i need to do a git push origin branchname?19:22
nelsn joined19:24
thl0 left19:24
thl0 joined19:25
thl0 left19:25
mklappstuhl left19:25
thl0_ joined19:25
jpcamara left19:26
canton7 garbagecollectio, that's a good thing, trust me19:26
garbagecollectio i didn't have to do that at my old shop19:26
Ziggy_ joined19:26
canton7 if you want, you can 'git config --global alias.pushit "push -u origin HEAD"'19:26
shezbaig_wk joined19:26
canton7 then 'git pushit' will push the currently-checked-out branch to origin19:27
bioman left19:27
Cassiel joined19:27
__BigO__ left19:27
Ziggy` left19:27
canton7 also, if you can, grab a git 1.8, which has push.default set to 'simple' (or if you've got a recent git, set it to 'simple' yourself)19:28
__BigO__ joined19:28
garbagecollectio 2h3n eo3w i5 eo 5hq5?19:28
when does it do that?19:28
canton7 what?19:28
__BigO__ left19:28
garbagecollectio like when does it push19:28
at the time of branch creation?19:28
Ziggy` joined19:29
canton7 my alias? when you run 'git pushit'19:29
like I said19:29
garbagecollectio yeah but why at my old shop did it not work19:29
sdeboey left19:29
garbagecollectio did it push19:29
Tommy[D]_Tommy[D]19:29
garbagecollectio automatically19:29
canton7 I don't know what your old shop is, what you were trying to do, and what didn't work19:29
garbagecollectio so i can use git push from now on after running git pushit once19:30
Ziggy_ left19:31
kevinfagan left19:31
chuckharmston joined19:32
antonishen joined19:33
kogent_ joined19:33
cbreak garbagecollectio: new branches need to be pushed explicitly.19:33
canton7 yeah19:34
Vampire0 left19:34
canton7 once a branch has been pushed once, it's pushed automatically from then on19:35
read push.default in man git-config19:35
gitinfo the git-config manpage is available at http://jk.gs/git-config.html19:35
apok joined19:35
kogent left19:37
kogent_kogent19:37
thl0_ left19:37
thl0 joined19:38
mklappstuhl joined19:38
thl0 left19:38
enr left19:38
opus joined19:38
leeN left19:40
garbagecollectio right so i can do git push after pushing it once19:40
PaulCapestany left19:40
garbagecollectio after doing the pushit command19:41
leeN joined19:42
IntricateRuin left19:42
alexbligh joined19:42
ncd|leeN joined19:42
thegattaca joined19:43
R1KRDO left19:43
sebuba left19:44
satiricon joined19:44
dvide joined19:46
bnason joined19:46
leeN left19:47
przemoc left19:47
ferdev left19:48
jpcamara joined19:49
axl_ left19:49
CodeShark joined19:49
bnason Is there a way to get an existing dir setup to use an existing repo without effecting any of the files? IE our vendor setup a new tier and I need to get some of the code under git, so I need to get it to the state where it thinks its checkout out the master branch without modifying any of the existing files. Should I just copy the .git folder from an existing tier?19:49
jpcamara left19:49
jpcamara joined19:50
bnason hope that makes sense lol19:50
cbreak you can git init19:50
then git remote add and git fetch19:51
... you can just copy the .git dir... but that might not work...19:51
you'll notice if it does not work.19:51
axl_ joined19:51
bnason then how do I get it to think it has already checked out master, or conversely, how do I check out master actually without effecting any files heh19:52
mishok13 joined19:52
system64 left19:52
cbreak hmm...19:52
just move the files away19:52
and move them back after the checkout19:53
bnason yea i was just thinking about doing all this in another dir and moving over the .git folder then19:53
the_cybersphinx left19:53
the_cybersphinx joined19:55
Cromulent joined19:55
kevwil left19:55
Noldorin left19:55
przemoc joined19:56
przemoc left19:56
przemoc joined19:56
ostree joined19:56
bbloom joined19:56
kevwil joined19:56
bnason bah now to figure out the best way to get the repo over there... stupid firewalls and multiple nets heh19:57
cbreak bnason: zip it up19:58
scp it over19:58
SirCmpwn joined19:58
cbreak got a hard disk fedexed from the states a few days ago19:58
Vampire0 joined19:58
bnason well I need to be able to fetch as well19:59
ill have to get them to open up some ports or nat it19:59
cbreak bnason: ssh reverse proxy20:00
an easy way to get a backdoor into a network that contains a server you control :)20:00
bnason: or take a look at git bundles20:00
bnason thanks20:00
tonymet left20:02
kermit left20:03
opus left20:03
bbloom left20:03
kermit joined20:03
Gentlecat_ left20:04
mmitchell joined20:05
jarr0dsz left20:05
normanrichards left20:06
sStewie joined20:06
tsdh left20:08
nicoulaj joined20:08
jkremser left20:08
pfefferz left20:08
pr0ton left20:10
tavist0 left20:11
tallest_red left20:11
chrisgeorge_ joined20:11
Cromulent left20:11
Sonderblade joined20:12
Sonderblade left20:12
Sonderblade joined20:12
dankest joined20:13
skoop joined20:13
i42n joined20:13
tavist0 joined20:13
fsvend joined20:13
chrisgeorge left20:14
WorkeD joined20:14
Bankzilla joined20:15
Bankzilla left20:15
Bankzilla joined20:15
infynyxx left20:15
juril joined20:16
CreativeEmbassy left20:17
PaulCapestany joined20:17
jarr0dsz joined20:18
infynyxx joined20:19
cilly joined20:20
kevinfagan joined20:20
relipse joined20:21
beaky left20:21
rmichnik left20:23
ErKa left20:24
jamescarr joined20:24
fsvend left20:26
gianmarco joined20:27
phiwo left20:27
zackiv31 joined20:27
sdeboey joined20:27
phiwo joined20:27
joshsmith left20:27
mtk left20:27
heytrav joined20:28
n3m joined20:28
chrisgeorge_chrisgeorge20:29
gianmarco left20:29
ferdev joined20:30
Kartagis joined20:30
gianmarco joined20:31
dijonyummy joined20:32
dijonyummy left20:32
gianmarco left20:33
relipse left20:34
TheJH left20:34
glaksmono left20:34
Sigma joined20:35
thegattaca left20:35
dijonyummy joined20:35
ARNHOE left20:36
Squarism2 joined20:37
john_anderson joined20:37
tibs01 joined20:37
john_anderson left20:37
relipse joined20:38
kogent left20:38
WorkeD left20:38
chuckharmston left20:39
n3m left20:39
shezbaig_wk left20:42
fsvend joined20:43
archonix joined20:44
i42n left20:44
i42n joined20:44
i42n left20:45
ghoti joined20:45
sq-one joined20:46
MrKMG joined20:46
erichynds left20:48
carandraug joined20:48
thatguycraig left20:49
_iron left20:49
glaksmono joined20:50
nelsn left20:50
snkcld joined20:50
Squarism2 left20:50
snkcld why do i have to constantly re add all my files when i do a commit?20:50
scampbell left20:51
carandraug hi! I have been playing with filter branch and trying to also remove merges that are actually empty commits. --prune-empty does not do it (as the documentation says), but I couldn't find a link for a clear explanation on how to do it. Could someone help me out, please?20:51
lov snkcld: because you may not want to commit all of the files that you changed.20:51
Actually, I just performed the exception that proved the rule; I added via --patch to only add part of one file to a commit20:52
bbloom joined20:52
relipse left20:52
snkcld lov, that makes perfect sense. thanks. so its part of a typical git workflow that you "git add" prior to all "git commits"?20:52
lov in other news, git add --patch makes my heart sing20:52
snkcld: effectively, though there's a -a (I think?) arg for git commit which will automatically add everything20:52
diegoviola joined20:52
lov the idea that you tell git what you actually want to commit (including parts of files instead of the whole file) is a feature, not a bug.20:53
pr0ton joined20:53
snkcld lov, agreed20:53
scampbell joined20:53
snkcld so 'git add' is a command which is directly related to commits20:53
cbreak snkcld: you do not have to add files20:53
you have to add changes20:53
snkcld it has nothing to do with branches20:53
?20:53
lov it has nothing to do with branches.20:54
cbreak it is completely unrelated to branching.20:54
it stages things for commit20:54
lov although files are what you're changing 99% of the time.20:54
bbloom left20:55
relipse joined20:55
archonix left20:55
jwmann joined20:55
maletor left20:56
gamja9e joined20:58
nicoulaj left20:58
Kartagis hi20:59
gitinfo Kartagis: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.20:59
sfalcon left21:00
Noldorin joined21:00
Kartagis I've committed, and pushed; but they don't show21:00
juril left21:00
AdrienBrault left21:00
Kartagis how can I trace?21:00
martyl joined21:00
cbreak show?21:01
beastd joined21:01
dreiss left21:01
lov You'll have to be more specific. "they don't show" where?21:02
relipse left21:02
martyl left21:02
Kartagis lov: http://drupal.org/project/tcmb21:02
it says my last commit was 1 day ago21:02
I did one 10 minutes ago, and it doesn't show21:03
cbreak git log21:03
note the sha of the commit21:03
git ls-remote remotename21:03
is the sha in the branch you want it to be?21:03
relipse joined21:03
antonishen left21:03
protux joined21:04
protux left21:05
huoxito left21:05
HardDisk_WP left21:05
jpcamara left21:06
chuckharmston joined21:06
opus joined21:06
Jackneill left21:06
lacrymology left21:07
jwmann left21:07
Kartagis yes, but my commit from 10 minutes ago doesn't show21:08
peteski joined21:09
cbreak then the thing you use to show it is broken21:10
mtk joined21:10
cbreak use git to show it21:10
then it'll work21:10
hacktose joined21:10
Nneon joined21:11
Kartagis I used git to show it21:11
Cassiel left21:12
protux joined21:12
cbreak how?21:12
__BigO__ joined21:13
Kartagis git show21:13
cbreak where?21:13
Kartagis in the directory where .git is21:14
Sicp left21:14
cbreak that's the wrong place21:14
you have to do it on the server21:14
where you pushed to21:15
zeroSignal left21:15
apok left21:15
Kartagis I have no SSH access there21:15
to it*21:15
cbreak then you can't push21:15
of course you can't see the commits21:16
bzyx left21:16
HardDisk_WP joined21:16
HardDisk_WP left21:16
HardDisk_WP joined21:16
kevinfagan left21:16
bzyx joined21:16
nkr left21:16
punknology left21:17
jpcamara joined21:18
Kartagis cbreak: I could push to this day21:18
Saby left21:18
maletor joined21:18
jpcamara left21:18
punknology joined21:18
punknology left21:18
_FrnchFrgg_ joined21:19
jpcamara joined21:19
punknology joined21:19
punknology left21:19
lresende_ joined21:19
punknology joined21:20
punknology left21:20
bigkm joined21:20
punknology joined21:20
punknology left21:20
hacktose left21:20
sdeboey left21:21
tinti left21:21
punknology joined21:21
punknology left21:21
punknology joined21:22
punknology left21:22
punknology joined21:23
punknology left21:23
RaceCondition joined21:23
lresende left21:23
lresende_lresende21:23
punknology joined21:23
punknology left21:23
s0ber_ joined21:24
jphillips left21:24
punknology joined21:24
punknology left21:24
youf joined21:24
protux left21:24
punknology joined21:25
lov I want to create a new remote branch based on a certain commit, rather than my HEAD. How would I go about doing this? I'm just confused about what to use for the refspec21:25
punknology left21:25
kevinfagan joined21:25
punknology joined21:25
lov nevermind, got it21:25
punknology left21:26
protux joined21:26
s0ber_s0ber21:26
cbreak lov: git branch blah blabhabhla21:26
picoguy left21:26
punknology joined21:26
punknology left21:26
cbreak lov: git push -u origin blabhabhla21:26
dankest left21:26
lov cbreak: thanks.21:27
jceb left21:27
lov actually, it was the blahblahblah I was asking about21:27
punknology joined21:27
punknology left21:27
jwmann joined21:27
RonScagz joined21:27
cbreak that happens a lot21:27
swiety left21:28
punknology joined21:28
bzyx left21:28
jarr0dsz left21:29
jarr0dsz joined21:29
jarr0dsz left21:29
Davey joined21:29
b1rkh0ff left21:30
tinti joined21:30
RaceCondition left21:31
cagedwisdom joined21:31
ErKa joined21:31
ferdev left21:32
rakl left21:32
ferdev joined21:33
sdeboey joined21:33
peteski left21:34
alorence left21:35
tallest_red joined21:35
gustavnils left21:36
jamesez left21:36
kit left21:37
normanrichards joined21:37
rideh left21:37
itatitat joined21:38
Hounddog joined21:39
skipm joined21:40
b1rkh0ff joined21:41
P4C0 left21:41
diamonds joined21:41
diamonds http://pastie.org/pastes/6258003/text21:41
I committed, had one extra file I didn't mean to commit21:41
jaequery left21:42
diamonds reset --soft HEAD~ && git add ... && git commit; now I have the proper commit & the messed up one as a little "branch"?21:42
skipm left21:42
diamonds so I want to go back, discard all those commits...21:43
wasanzy left21:43
diamonds basically how do I destroy an index21:43
hoschi left21:44
RonScagz left21:44
fsvend left21:44
alexbligh left21:44
tbmiller left21:46
asaf left21:47
GothAlice joined21:47
asaf1 joined21:47
GothAlice How do I rebase a branch based off of my current branch, without switching to the branch I'm rebasing?21:47
geekbri left21:47
fission6 left21:47
GothAlice (I'm in an environment where switching branches is a Serious Thing™.)21:47
bnason Does anyone have recommendations for project deployment? My predecessor set us up where we are actually deploying with git.21:47
ojacobson GothAlice: nil.21:47
diamonds here's an image from gitk of my issue http://screencast.com/t/9IY5X78EQ21:47
ojacobson You could do the rebase in a scratch repo, though21:48
diamonds I want to discard those last two tips21:48
bnason GothAlice, make a copy of the repo?21:48
GothAlice bnason: I also deploy using Git. https://github.com/marrow/WebCore-Template is an example of the base for apps developed using my web framework.21:48
bnason bah beat me hehe21:48
Skipp_OSX joined21:48
GothAlice If a rebase is not an option (other than making a new clone), is merging the current branch into another local branch an option?21:49
fission6 joined21:49
_ikke_ GothAlice: merge and rebase result in the same code, only the history looks different21:49
diamonds I'd reset --hard but I'm concerned about losing my changes21:49
Skipp_OSX hello, is there a way to get git to give you a warning if you acidentally commit nothing, that is if you commit without adding any files or git screws up?21:49
freeed left21:49
diamonds obviously reset is not the command I should be using21:50
_ikke_ Skipp_OSX: That's default behaviour21:50
ojacobson Skipp_OSX: that would be 'git commit''s default behaviour.21:50
Skipp_OSX I just lost a commit and I'm so angry at myself for it21:50
infynyxx left21:50
_ikke_ Skipp_OSX: What do you mean, lost a commti?21:50
lresende left21:50
GothAlice bnason: We then have GitHub push notify the app server of updates. https://gist.github.com/amcgregor/11d78f5ed471376a0ee7#file-updater-py is a naive implementation of this.21:50
_ikke_ Skipp_OSX: It's very hard in git to loose commits21:50
ojacobson loose/lose21:50
lresende joined21:50
_ikke_ :)21:50
Skipp_OSX I added files, did a git commit, wrote a commit message, added some more files, another commit message, but when I pushed, the first commit was not there, only the second21:51
Nevik s/loo/s\//21:51
er21:51
Skipp_OSX and all the changes were in the second commit21:51
Nevik s/loo/s\/loo/21:51
eimajenthat joined21:51
protux left21:51
tonymet joined21:51
_ikke_ Skipp_OSX: Then you didn't commit the first time21:51
Skipp_OSX which was really the first commit as there was only one commit...21:51
_ikke_, yeah, apparently. I'm just not sure how that happened21:52
sdeboey left21:52
_ikke_ !repro?21:52
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session. This will help immensely with troubleshooting.21:52
eimajenthat Okay, I'm trying to setup a pre-commit hook, but it doesn't appear to be running. Looking at the sample pre commit hook, it says it is run when you run "git commit" with no arguments. Does this mean that if I use -m for my commit message, the pre-commit hook won't run? Is there a workaround?21:53
Skipp_OSX unfortunately I closed the term window so that's gone now21:53
_ikke_ eimajenthat: is the pre-commit hook executable?21:53
bnason GothAlice, I'll probably have to setup something custom to get what I'm looking for. Essentially I want a 'guided deploy' (at least if I stick with git deployment). Where each step is reported on and the user can Stop or Continue with the deployment based on the results. I'm not confortable with automated deployment yet at least.21:53
ojacobson 'git-commit' won't even prompt for a message if it's not going to allow the commit21:53
kogent joined21:53
ojacobson pre-commit and emptiness checking both happen first21:53
bbloom joined21:53
dankest joined21:54
kogent left21:54
eimajenthat _ikke_: Derp, probably not. I'll check21:54
_ikke_ Skipp_OSX: Did you remove the commits message and saved + closed the editor?21:54
Skipp_OSX I'm trying to reproduce what I did21:54
kogent joined21:54
Nneon left21:54
Skipp_OSX _ikke_, I believe that I did21:54
Nevik Skipp_OSX: your shell probably keeps a history file somewhere21:54
you can look at that21:54
_ikke_ Skipp_OSX: when the commit message is empty, git aborts the commit21:54
Skipp_OSX _ikke_, I know, maybe I did a q! instead of a wq ???21:56
(vim)21:56
satiricon left21:56
jaequery joined21:56
GothAlice bnason: We are pretty strict about our pre-commit hooks and use of git flow to ensure only QA-approved commits get into master.21:56
Skipp_OSX It's possible I suppose...21:56
todd_dsm joined21:56
GothAlice bnason: e.g.: https://github.com/amcgregor/snippits/tree/hooks21:57
Nevik Skipp_OSX: if no one has based work off your published commit, you can split it in two by rebasing interactively21:57
eimajenthat _ikke_: that was it, thanks21:57
Skipp_OSX Nevik, unfortunately I've already pushed to a public repo so it's too late to rewrite history non-destructively21:57
Nevik Skipp_OSX: as i said, if no one's based anything off it, it wont hurt anyone if you rewrite21:58
lifelike left21:58
Skipp_OSX I could perhaps do a revert and then recommit21:58
Nevik since you say that was the first commit at all, it's probably unlikely someone has done anything with it21:58
lifelike joined21:58
satiricon joined21:58
Skipp_OSX Nevik, yeah but the history would be rewritten21:58
pandeiro joined21:58
_ikke_ Skipp_OSX: Doing a revert only makes things more complicated21:58
Nevik Skipp_OSX: so?21:59
SirCmpwn left21:59
_ikke_ Skipp_OSX: It's only a problem if someone has committed his changes on top of that history21:59
Skipp_OSX Nevik, so if somebody has pulled from that branch and I rewrite history their local tree will diverge from origin...21:59
opus left22:00
Nevik Skipp_OSX: is it *likely* that someone has pulled in the meantime?22:00
Skipp_OSX Nevik, yes, it is likely, big project22:00
I can't say for certain though22:00
Nevik well, then just leave it as it is22:00
Skipp_OSX I'm less concerned with fixing this though and more concerned with preventing future occurances22:01
protux joined22:01
Nevik well, git wont lose commits22:01
so it was probably your own fault :)22:01
_ikke_ Skipp_OSX: Better read the output from git to see what actually happened22:01
Nevik exactly22:01
git will always report when it does something22:01
jxpx777 joined22:02
Skipp_OSX _ikke_, well, the commit log shows 1 commit with all files added22:02
I'm guessing what happened is there was an error in my first commit, perhaps git warned me and I didn't see it.22:02
_ikke_ Skipp_OSX: Yes, you probably aborted the first commit22:02
yes, indeed22:02
opus joined22:02
honschu_ joined22:03
Octalot joined22:04
adamben joined22:04
SirCmpwn joined22:04
asaf1 left22:05
rtjure left22:05
GothAlice left22:05
Skipp_OSX it looks like it does warn you if you abort a commit22:06
_ikke_ It does22:06
Skipp_OSX darn, I wish I didn't close my session...22:06
aha!22:07
simesy joined22:07
ojacobson Skipp_OSX: this is why my terminal prompt has an exit status indicator in it :)22:07
I don't close windows that end with :-(22:07
_ikke_ lol22:07
Nevik ha22:07
Skipp_OSX I just got the following error while testing: error: There was a problem with the editor 'vim'. Please supply the message using either -m or -F option.22:07
honschu left22:07
kevinfagan left22:07
ojacobson https://gist.github.com/ojacobson/500011322:07
_ikke_ ojacobson: bash?22:08
ojacobson _ikke_: I'm sure oh-my-zsh has something similar you can use.22:08
_ikke_ right22:08
kevwil left22:08
_ikke_ Does bash call ps1_status itself?22:09
Skipp_OSX okay, this might be a vim problem22:09
ojacobson it does22:09
The single-quoted form there stops bash from calling it while defining the prompt22:09
the result is that a literal $(...) sequence appears in PS1, which then gets evaluated when PS1 is rendered for a prompt22:10
AaronMT left22:11
_ikke_ That's not really hard to build22:12
sfalcon joined22:12
infynyxx joined22:13
Skipp_OSX okay, this is interesting, if I do a git commit, edit the commit message in vim, do a :q and vim will yell at me that there are unsaved changes, then I do a :wq and vim writes and exits, but, git does not perform the commit and I get no warning22:14
_ikke_ hmm22:14
ojacobson Skipp_OSX: What's the command and the full output from git? pastebin please22:14
howlymowly left22:14
Michael__ joined22:14
Skipp_OSX if I then do an echo $? I get 1 indicating that there was a non-zero exit code22:15
sh4rm4 joined22:15
znode joined22:15
jpcamara left22:16
_ikke_ Skipp_OSX: Your vim is bust22:17
somehow22:17
Skipp_OSX http://pastebin.com/VGPD1Uxx22:18
I got a warning this time though22:18
osse Skipp_OSX: are you sure you have staged files?22:18
ahh, never mind22:19
grzlwopf joined22:19
Skipp_OSX lemme try zsh to see if it warns me, might not have used bash22:19
youf left22:19
FernandoBasso joined22:19
znode left22:20
Skipp_OSX the first commit I did :q then :wq, and it failed, the second commit I did :wq and it succeeded22:20
osse Skipp_OSX: do you get the output of 'git status' in the editor?22:20
jhford anyone have any ideas why a commit id can be rev-parsed but not used in git log? http://pastebin.mozilla.org/216223422:20
Skipp_OSX osse, yes22:20
dsantiago joined22:20
fobban left22:20
ojacobson jhford: rev-parse doesn't actually try to read the object22:20
afaik22:20
git-log does.22:20
I can run git rev-parse 4c760023217ec7ae1a55e20993e28efe2cff6f01 in a repo I have here that has no such commit, for example. :)22:21
(it behaves identically)22:21
jhford hmm, the weird thing is that the object definatey exists on github :S https://github.com/mozilla-b2g/gaia/commit/4c760023217ec7ae1a55e20993e28efe2cff6f0122:21
bgerber left22:21
ojacobson But is it reachable from any refs on github?22:21
(github runs git gc somewhat lazily)22:22
Skipp_OSX okay, I'm not able to reproduce not getting the warning so I assume that I must have just ignored it... but I've still got a vim problem here22:22
j416 left22:22
dreiss joined22:22
ojacobson (un-gc'd but unreachable objects can remain available on github for quite a while even though 'git fetch' will no longer retrieve them.)22:22
pandeiro left22:22
ojacobson git fetch; git branch --contains <hash> --all22:22
ncd|leeN left22:22
Skipp_OSX I think I've figured it out: http://tooky.co.uk/2010/04/08/there-was-a-problem-with-the-editor-vi-git-on-mac-os-x.html22:22
engla ojacobson: so github also exposes unreachable objects?22:23
jhford ojacobson: sorry for the hassle, i needed to git fetch22:23
jhford feels like a dummy22:23
jhford i have a script that's supposed to do that22:23
engla: they cache the html for the objects22:23
ojacobson engla: if you happen to have the URL of, say, a commit that has since become unreachable, yes, that URL will remain valid for "a while"22:23
engla ok22:23
ojacobson the unreachable object will eventually be GCed and become unavailable from github22:23
there's also HTML caching22:24
jhford i had lots of fun learning about that :)22:24
Fissure joined22:24
engla I've done some experiments recently that should have created a lot of garbage on github so I wondered about gc too. good to know that they at least to it at some point22:25
Carlitos__ left22:25
engla do the gc/prune22:25
osse Skipp_OSX: does your vimrc contain errors?22:25
Anders_J left22:25
bgerber joined22:25
ojacobson engla: I know that in github enterprise all repos are created with the reflog enabled22:25
Skipp_OSX osse, not that vim complains about...22:25
ojacobson so there's at least a 2-week window where the unreachable object will remain available22:25
dsantiago left22:25
ojacobson that's probably also true of real github22:25
_ikke_ ojacobson: afaik, the 2 week has nothing to do with the reflog22:25
ojacobson _ikke_: I thought the default reflog expiry was 2 wk22:25
engla reflog would be 90 days22:26
ojacobson oop22:26
poor memory on my part, then22:26
hellopat left22:26
_ikke_ git prune doesn't remove objects younger than 14 days22:26
engla 2 weeks is for loose objects22:26
_ikke_ afaik22:26
skorgon left22:26
_FrnchFrgg_ left22:26
Skipp_OSX I put the following in my .bash_profile and it fixed it GIT_EDITOR='/usr/bin/vim -f'22:27
agile left22:27
Skipp_OSX well, with export in front of that...22:27
agile joined22:27
dankest left22:27
duosrx joined22:27
Dooom joined22:28
osse Skipp_OSX: weird you should need -f, is it gvim/macvim you're using?22:28
engla does anyone here use expiring stash? I can't get it to expire after a fixed time (What I see, either it lives forever, or git gc kills it directly)22:29
asaf joined22:29
jhford ojacobson: do you know how lazy the github gc'ing is?22:29
Skipp_OSX osse, it's vim on a Mac, but just regular vim22:29
scampbell left22:29
agileadam left22:29
protux left22:30
ferdev left22:30
_ikke_ Skipp_OSX: Does it open in graphic window?22:30
Skipp_OSX the one that comes with the system (10.6)22:30
_ikke_, no, terminal22:30
tevfik left22:30
bnason So I've inherited a not well maintained repo. We just did a fresh install of the base software without any of our customizations. Is there a way I can make a new fresh repo, and apply the changes I want from the old repo on it?22:30
Kartagis idk what I did, but my commits are showing now22:31
_ikke_ bnason: Where does this base version come from?22:31
osse Skipp_OSX: weird. According to the manpage -f shouldn't have any effect on terminal vim.22:31
oh well22:31
protux joined22:31
bnason _ikke_, vendor installation22:31
_ikke_ bnason: And these changes? How do they relate to that vendor installation?22:31
protux left22:32
Skipp_OSX it looks like the vim that comes with 10.6 is slightly broken in that way from what I read22:32
smw joined22:32
bnason _ikke_, they modify the files created by the vendor install.22:32
_ikke_ bnason: Create a new repo, commit the base version22:32
osse Skipp_OSX: if you have macvim you can use that as a replacement for the regular vim by using mvim -v, or making a symlink from vim to mvim22:33
_ikke_ bnason: create patches for the changes, and apply them to the new repo22:33
osse Skipp_OSX: it's newer and more fully featured (I've heard)22:33
ferdev joined22:33
Skipp_OSX osse, good advice22:33
osse Skipp_OSX: a lot of people aren't aware that macvim also works in the terminal :)22:34
jhford ojacobson: it seems that my issue is that fetching from an on disk repository wasn't fetching the commit22:34
Skipp_OSX I certainly wasn't22:34
jhford curious why fetching from a repo that has that commit wouldn't give me the commit22:34
bnason _ikke_, thanks. Just gonna take some time. I definitely like my history to not be full of crap commits ;)22:35
osse Skipp_OSX: another soul saved!22:35
Skipp_OSX well, thank you all for your help22:35
HardDisk_WP In a repository, I have created a file with >100 commits22:35
_ikke_ bnason: another way would be to fetch from the old repo, and to cherry-pick22:35
HardDisk_WP Now, the time has come to move this and another file into its own repository22:35
How do i do this without losing history?22:35
_ikke_ HardDisk_WP: with filter-branch afaik22:36
dreiss left22:36
_ikke_ man git filter-branch22:36
gitinfo the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html22:36
_ikke_ depending on whether those files are in their own directory22:36
bnason _ikke_, yea the old commits are all 'commit missing file' type commits heh22:37
but a lot of random files22:37
dankest joined22:37
HardDisk_WP _ikke_, file #1 is examples/ftpfs.php, but in the examples/ directory there are other files which should not be exported22:37
Kartagis left22:39
skorgon joined22:39
_ikke_ HardDisk_WP: Not sure if it would work, but maybe you can experiment by moving those files in a seperate directory, comitting that, and then use git filter-branch with the --subdirectory-filter22:40
arand HardDisk_WP: Create a clone and use something like "git filter-branch --index-filter rm {all except wanted files}"22:41
HardDisk_WP ok22:41
adamben left22:41
HardDisk_WP first the subdir filter to remove the non-examples stuff22:41
arand _ikke_: I think you can't make it forget directory history like that.22:41
HardDisk_WP then the index-filter rm to remove the unneeded exaples22:41
arand HardDisk_WP: That's probably the quickes, yeah.22:41
HardDisk_WP: Make sure to do this in a copy of the mmain repo ;)22:42
HardDisk_WP sure :D22:42
_ikke_ arand: It shouldn't forget history22:42
HardDisk_WP the project is on github anyway^^22:42
j^2 joined22:42
danillonunes left22:42
ferdev left22:42
trungqtran left22:43
arand _ikke_: if ever a file was in that dir, I think ---subdir would still keep it.22:43
_ikke_ arand: In what dir?22:43
ferdev joined22:43
arand _ikke_: the one you suggested moving stuff out from.22:44
_ikke_ arand: I mean he should create a new dir22:44
But not sure if the subdir filter follows renames22:44
arand I don't think it does, given the wording in the manpage22:44
"history which touches the given subdirectory"22:45
Gitzilla joined22:45
sdeboey joined22:45
Gentlecat_ joined22:46
HardDisk_WP hmm22:46
the git subdir filter worked22:46
fission6 left22:46
HardDisk_WP git filter-branch -f --index-filter "rm example_1.php"22:46
Rewrite 12d4130db6181fb2fb5117a1e72d7da06fd4d18f (1/59)rm: cannot remove `example_1.php': No such file or directory22:46
CausaMortis joined22:47
_ikke_ --ignore-unmatch22:47
arand 1. Use "git rm --cached" 2. use --ignore-unmatch22:47
Skipp_OSX left22:48
rwestphal joined22:48
juvenal left22:48
dreiss joined22:48
avjpl joined22:49
boze I moved my head back locally ... I want the commits I made to the server to disapear, but when I try to push it says non-fast-forward updates were rejected. How can I force it?22:49
_ikke_ git push -f22:49
!rewrite applies22:49
gitinfo [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to). If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://git-scm.com/docs/git-rebase.html#_recovering_from_upstream_rebase22:49
HardDisk_WP ok, now the files were removed22:50
very good22:50
but git log still shows "bad" commits22:50
boze _ikke_: thank you22:50
infynyxx left22:50
HardDisk_WP "bad" as in "these commits have not touched the file"22:51
_ikke_ HardDisk_WP: In what way are they bad?22:51
HardDisk_WP: Well, they probably have touched those other files22:51
HardDisk_WP there are a number of commits which are before ftpfs.php was created!22:51
_ikke_ You need to prune them22:51
HardDisk_WP how?22:51
arand HardDisk_WP: --prune-empty22:51
psoo left22:51
sdeboey left22:51
dsantiago joined22:52
sdeboey joined22:53
HardDisk_WP Ran git filter-branch -f --prune-empty -- --all22:53
, didn't help22:53
also, how do I remove all the refs and branches?22:53
relipse left22:53
dreiss left22:54
RaceCondition joined22:54
_ikke_ HardDisk_WP: Did git give a message?22:54
HardDisk_WP Yeah, something about warning: ignoring duplicate parent, and some warning: ref xxx is unchanged22:55
zoonfafer joined22:56
eimajenthat_ joined22:56
_ikke_ I'm not sure22:56
alp82 wow, finally found a nice gui for git in linux22:56
_ikke_ alp82: What?22:56
HardDisk_WP: Can you check if those commits are actually empty?22:56
git show <commit>22:56
alp82 _ikke_: smartgithg22:56
_ikke_ hmmm...22:57
Sounds interesting22:57
soypirate joined22:57
bbloom left22:58
HardDisk_WP _ikke_, yeah the commit shows up there22:58
but a git checkout 6c4bacd555194bffb42e811d0d4c4c6904990d72 followed by ls -lah shows no files except .git/22:58
damienbrz joined22:58
fsvehla left22:58
alunduil left22:59
breakingthings left22:59
eimajenthat left22:59
eimajenthat_eimajenthat22:59
_ikke_ HardDisk_WP: Well, git considers a commit "empty", when the diff with the previous commits is empty, not when the tree is empty22:59
jdunck left22:59
HardDisk_WP ok22:59
well 6c4bacd555194bffb42e811d0d4c4c6904990d72 is the first commit22:59
fisted left23:00
HardDisk_WP aah, and the next commit is the one where I created the file.23:00
_ikke_ you probably need to rebase --root23:00
simesy left23:00
_ikke_ and leave out that first commit23:00
HardDisk_WP Oh, crap23:00
_ikke_ ?23:00
HardDisk_WP I can't get back to HEAD23:00
simesy joined23:01
_ikke_ HardDisk_WP: You are always on HEAD ;)23:01
arand --prune-empty ignores merge points, I think.23:01
_ikke_ arand: it does23:01
simesy left23:01
HardDisk_WP after git checkout $firstcommit I got You are in 'detached HEAD' state. You can look around, make experimental23:01
opus left23:01
_ikke_ correct23:01
simesy joined23:01
fisted joined23:01
HardDisk_WP how do I get back to the "old" HEAD?23:01
_ikke_ if you want to go back, git checkout -23:01
jdunck joined23:01
HardDisk_WP ah :)23:01
arand HardDisk_WP: or "git checkout master", if you were on master23:02
avjpl left23:02
_ikke_ Well, I don't think all the refs got rewritten23:02
AartBluestoke joined23:02
_ikke_ but the reflog has you covered ;)23:02
hwrd|work joined23:02
dreiss joined23:03
HardDisk_WP hmm strange23:03
_ikke_ HardDisk_WP: What is?23:03
HardDisk_WP I did git rebase --root --onto=4eb48fe2ab0aeb4dcce96d91ab2f7adbac0599a823:03
but the first commit in git log still is 6c4bacd555194bffb42e811d0d4c4c6904990d7223:03
_ikke_ you probably want to use git rebase -i --root23:04
TonyM left23:04
nickn left23:05
_ikke_ because 6c4bacd555194bffb42e811d0d4c4c6904990d72 is probably a child of the root commit, I guess it's a noop23:05
lausi left23:05
HardDisk_WP _ikke_, now this is bad, neither the old root, nor 4eb48fe2ab0aeb4dcce96d91ab2f7adbac0599a8 show up in the editor23:05
lausi joined23:05
anonymuse left23:05
HardDisk_WP only that what was the 3rd commit is now the 1st commit to show in the editor23:05
_ikke_ remove all23:06
(ie, abort the rebase)23:06
ojacobson left23:06
HardDisk_WP But the comment line says # Rebase 5d2032d onto 4eb48fe23:06
texasmynsted joined23:06
pierre1_ joined23:07
opus joined23:07
AnimeCYC left23:07
HardDisk_WP _ikke_, can I safely proceed?23:07
_ikke_ HardDisk_WP: Not sure23:08
AnimeCYC joined23:08
HardDisk_WP ah well i'll just try it and redo if I mess up :D23:08
jamescarr left23:08
texasmynsted what is the simplest way to uncommit some changes to a submodule? In error some changes were made in a submodule and they were committed. I think it should be possible to remove the submodules and re-add them but it seems like it should also be possible to rebase or something23:08
j^2 left23:08
pr0ton left23:09
_ikke_ i g2g23:09
nite23:09
nevyn texasmynsted: reset?23:09
pr0ton joined23:09
HardDisk_WP wthf, the edited commit messages show up just fine23:09
jonshea left23:10
dreiss left23:10
HardDisk_WP but there's still the wrong root23:10
giallu left23:10
texasmynsted oops yes I mean reset. I guess this should work for for the changes to a submodule also23:11
thank you nevyn23:11
bnason left23:12
theRoUS left23:12
bmac_ joined23:13
bmac_ left23:13
Hounddog left23:13
NiallIain joined23:13
oren1 joined23:13
apok joined23:15
arand left23:16
nanun joined23:16
ThePawnBreak left23:17
j^2 joined23:17
v0n left23:17
honschu_ left23:18
oren1 left23:18
Caraes_Naur joined23:18
owen1 joined23:18
HardDisk_WP ah craaap, now I totally messed up...23:18
Caraes_Naur left23:18
owen1 how to delete master branch and replace it with foo ?23:18
mikeym_ left23:21
maqr left23:21
maqr joined23:22
SamB_ joined23:22
diamonds left23:23
fly9 left23:24
dankest left23:24
bauruine left23:24
damienbrz left23:25
jpcamara joined23:25
__BigO__ left23:26
tewecske left23:26
marhaban joined23:29
HardDisk_WP hmm, ok now I got it to a state where git log -p shows a ton of empty commits as beginning23:30
how to delete or squash them? git rebase fails, it says "cant apply..."23:30
macrover joined23:31
jarr0dsz joined23:31
kristofers left23:31
diegoviola left23:32
lalaland joined23:32
lalaland left23:32
natechan left23:33
aartist left23:33
carandraug HardDisk_WP, filter-branch with --prune-empty ?23:34
pantsman left23:34
soypirate left23:34
lolwhut left23:35
HardDisk_WP doesn't do all the work23:35
https://github.com/msmuenchen/php-ftpfs/commits/master?page=223:35
simesy left23:35
HardDisk_WP I want https://github.com/msmuenchen/php-ftpfs/commit/4eb48fe2ab0aeb4dcce96d91ab2f7adbac0599a8 as root23:36
instead of https://github.com/msmuenchen/php-ftpfs/commit/6c4bacd555194bffb42e811d0d4c4c6904990d7223:36
beastd left23:36
sStewie left23:36
AaronMT joined23:36
simesy joined23:37
macabre left23:37
chrisgeorge left23:37
dankest joined23:37
chrisgeorge joined23:37
AaronMT left23:38
nanun left23:38
prsn joined23:38
willob left23:39
willob joined23:39
relipse joined23:39
AdrienBrault joined23:40
juvenal joined23:41
PaulCapestany left23:41
etcetera left23:42
Element9 left23:43
daniel_-_ joined23:43
chrisgeorge left23:44
RaceCondition left23:45
carandraug HardDisk_WP, is that a merge point?23:45
mastro left23:45
HardDisk_WP nope23:45
RaceCondition joined23:45
HardDisk_WP 6c4 is the commit where the directory got created23:45
carandraug HardDisk_WP, if you only have 4 commits, why don't you export them, and use them to start a new repo?23:46
HardDisk_WP carandraug, this is page 2 :D23:46
should be 39 commits23:46
NiallIain left23:46
HardDisk_WP or such23:46
lavaman left23:46
carandraug HardDisk_WP, ah! ok23:46
daniel_- left23:46
carandraug HardDisk_WP, I don't know. I'm having problems myself rewriting the history because I can't get rid of empty commits because they are merges23:47
sq-one left23:47
prsn hi all. For some reason, starting about a week ago, pulling from our repo results in all local files being -rw-r--r-- and owned by the person pulling. These permissions are then maintained when pushed, with annoying results when files are checked out directly from origin/master into a shared directory23:47
carandraug It seems that I have to play with parent-filter but the documentation is chinese to me23:48
zoonfafer left23:48
etcetera joined23:49
opus left23:49
carandraug prsn, what filesystem?23:49
prsn carandraug: um, the shared dir is on a debian box, some of us are on osx, some windows23:50
carandraug prsn, tell windows devs to use "git config core.filemode false"23:50
hobodave left23:51
carandraug prsn, or anyone that keeps their files in funny behaving filesystems such as FAT. Not sure what happens in NTFS23:51
dankest left23:51
etcetera left23:52
carandraug prsn, can't you check on the log --stat which commit changed it the first time?23:53
prsn carandraug: that sounds useful, how will it be noted? there have been a LOT of commits since then23:53
eddd joined23:54
nanun_ joined23:55
_jmg joined23:55
kermit left23:56
AnimeCYC left23:56
bmac_ joined23:56
tvw joined23:56
kermit joined23:57
breakingthings joined23:58
carandraug prsn, "git log --summary | grep -C 10 -iP "mode change" " or something like that23:58
normanrichards left23:59
duosrx left23:59

Logs Search ←Prev date Next date→ Channels Documentation