IRCloggy #git 2013-02-07

Logs Search ←Prev date Next date→ Channels Documentation

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

2013-02-07

mmitchell left00:00
mithro- joined00:04
Chillance left00:04
mmitchell joined00:05
russt left00:05
leeN left00:05
rakl left00:06
x82_nicole left00:06
aartist joined00:08
soypirate joined00:08
Orbitrix left00:09
pppaul joined00:09
mmitchell left00:09
LeMike left00:10
kevwil left00:10
macabre left00:11
Ksg89 left00:14
rakl joined00:14
rakl left00:14
gyre007 left00:15
gamja9e joined00:15
snql left00:16
rakl joined00:17
eletuchy left00:17
gamja9e left00:18
natechan left00:18
normanrichards left00:19
main joined00:20
sluther left00:20
dvide joined00:21
lavaman left00:24
HumanSky joined00:25
kogent left00:26
jcromartie left00:27
Liir joined00:28
Guest66543 left00:30
AnimeCYC left00:32
hyperair left00:32
Fandekasp joined00:32
yshh left00:34
Fels joined00:34
bmac_ left00:35
boombatower left00:36
gyre007 joined00:36
natechan joined00:36
timj joined00:37
Raydiation left00:39
FernandoBasso left00:39
karupanerura left00:40
mattt_ joined00:40
eletuchy joined00:40
mattt_ How can I have git diff pipe to "vim -" by default, rather than less?00:40
pity joined00:41
JoeHazzers joined00:41
karupanerura joined00:42
JoeHazzers none of you would happen to know of any fairly "flashy" frontend for git, would you?00:42
SBoudrias left00:43
SBoudrias joined00:44
svm_invictvs left00:44
trungqtran joined00:45
AaronMT left00:46
nickpresta joined00:47
natechan left00:47
alunduil joined00:48
jjang_ joined00:49
AaronMT joined00:49
jjang_ left00:50
jjang left00:50
rchavik joined00:50
jjang joined00:50
infynyxx left00:50
pgokeeffe joined00:51
gamja9e joined00:52
gamja9e left00:52
lethjakman left00:52
kaen joined00:54
main left00:55
bremner zsh?00:56
mattt_ snap00:56
opus left00:57
mattt_ Is it possible to delete one file and rename another as the deleted file in a single commit?00:57
bremner mattt_: sure, just do the appropriate git rm and git add00:57
it won't be detected as a rename though00:57
mattt_ shazam00:57
:O00:58
hm.. what if i did it in two commits?00:58
bremner then the rename should be detected. I'm not actually 100% about the first case.00:58
mattt_ it won't be detected even if i did a git mv?00:58
they're both tracked files00:59
hrm.. jeeze, this is what branching is for. duh.00:59
normanrichards joined00:59
cmmagid joined01:00
mattt_ sort of, I guess. Didn't wanna refactor this class, I just rewrote it.01:00
gyre007 left01:01
apok joined01:03
fuzzybunny69y left01:04
fuzzybunny69y joined01:06
dreiss left01:06
bootstrapper left01:06
pxdr left01:07
pxdr joined01:07
btanaka left01:07
decotii left01:07
infynyxx joined01:08
boombatower joined01:08
nickpresta left01:09
mattt_ left01:10
hyperair joined01:12
aantix left01:12
tjbiddle_ joined01:13
yshh joined01:14
BiggFREE joined01:16
hwrd|work left01:17
tjbiddle left01:17
tjbiddle_ left01:18
trungqtran left01:18
Liir left01:19
juril left01:19
pgokeeffe left01:23
jcao219 left01:24
pgokeeffe joined01:26
_br_ left01:26
Guest43828 left01:26
fuzzybunny69y left01:29
_br_ joined01:29
amccloud left01:30
apok left01:31
abf left01:31
_br_ left01:31
fuzzybunny69y joined01:32
R1KRDO joined01:33
tinti_ left01:33
dhruvasagar joined01:34
Yuuhi` joined01:34
_br_ joined01:35
opus joined01:35
Yuuhi left01:36
JDuke128 joined01:36
breck_ left01:36
fuzzybunny69y left01:36
pseut joined01:36
pgokeeffe left01:37
Imaginativeone joined01:37
pgokeeffe joined01:37
R1KRDO left01:39
R1KRDO joined01:39
iSaleK left01:40
Anders_J left01:40
yann|work left01:40
cods joined01:41
v0n joined01:41
iSaleK joined01:42
normanrichards left01:42
iSaleK left01:42
jxpx777 left01:44
infynyxx left01:44
pseut left01:45
NiteRain left01:45
Fandekasp left01:46
soypirate left01:46
jcao219 joined01:47
Targen joined01:48
glebd left01:48
trungqtran joined01:51
Orbitrix joined01:51
yann|work joined01:53
jxpx777 joined01:56
stliu joined01:56
Yuuhi` left01:56
pseut joined01:57
Davey joined01:58
thiago left01:59
DrHouse|WKSTN1 joined02:00
kpreid left02:00
kpreid joined02:00
jaequery left02:03
pseut left02:03
luc_ joined02:04
luc_ left02:05
luc_ joined02:06
hafeez3000 joined02:07
hwrd|work joined02:08
dwmw2dwmw2_gone02:08
pseut joined02:09
jalama left02:10
tjbiddle joined02:10
rideh joined02:11
breck joined02:12
erkules_ joined02:12
trungqtran left02:14
danmackay left02:15
peppyheppy left02:15
erkules left02:15
tjbiddle left02:16
chuckharmston left02:17
cannonball left02:17
rideh left02:17
bootstrapper joined02:17
Vampire0 joined02:18
jdyin joined02:18
daniel_- left02:19
bootstrapper left02:19
danmackay joined02:20
cmmagid left02:20
Vampire0_ left02:20
bmac_ joined02:21
pfefferz left02:21
goshawk left02:22
khmarbaise left02:22
R1KRDO1 joined02:23
eydaimon joined02:23
eydaimon how can I easily diff a file in one branch against the head of another?02:23
aberrant left02:24
eydaimon or just viewing the same file in a different branch will suffice for what I'm trying02:24
R1KRDO left02:25
R1KRDO1 left02:27
pfefferz joined02:27
engla eydaimon: the syntax is branch:path/to/file.c02:29
jcromartie joined02:29
engla you can use it with git show or with diff02:29
eydaimon engla: thank you02:30
engla to be honest, I use path limiting more often.. git diff branch -- path/to/file.c02:31
eydaimon cool. the latter one worked02:31
fuzzybunny69y joined02:31
eydaimon couldn't get the first syntax to work02:31
git diff routes/index.coffee master:routes/index.coffee02:31
fatal: master:routes/index.coffee: no such path in the working tree.02:32
engla maybe it still needs the path from the root of the repo02:32
anyway, that's not the convenient way anyway02:32
unless you want to diff two different files with each other02:33
eydaimon yeah, the git diff branch -- worked well02:33
now I'll just need to forget it and have to dig through my IRC log a few times to remember it :P02:34
philsturgeon joined02:34
philsturgeon hey, im trying to use git svn to import this repo: https://svn.php.net/repository/phpdoc/en/trunk/02:34
jdunck left02:34
philsturgeon I've tried this git svn clone https://svn.php.net/repository/phpdoc/modules/doc-en --no-metadata -t phpdoc/en/tags -b phpdoc/en/branches -T phpdoc/en/trunk phpdoc-en02:34
engla eydaimon: all the commands (ok maybe not all) work the same way, you can path limit on git log for example or even git commit02:35
dhruvasagar left02:35
engla git log -p path/to/file.c02:35
philsturgeon sorry i mean this git svn clone https://svn.php.net/repository/phpdoc/modules/doc-en --no-metadata -t phpdoc/modules/doc-en/tags -b phpdoc/modules/doc-en/branches -T phpdoc/modules/doc-en/trunk phpdoc-en02:36
http://d.pr/i/RWYF02:36
bmac_ left02:36
philsturgeon can anybody tell me what im getting wrong?02:36
dhruvasagar joined02:37
eydaimon engla: good to know. thank you :)02:37
looper left02:37
deadman1 joined02:38
eydaimon engla: actually I knew you could path limit, but not that you could do it like that across branches for diff02:38
i suppose it didn't occur to diff a whole branch02:38
deadman1 left02:38
sysadminAli left02:38
ddman joined02:39
ddman how do i connect to github (https) through a proxy ?02:39
git config https.proxy isn't working ?02:39
ErKa left02:39
looper joined02:40
wrouesnel joined02:40
bob2 what does "isn't working" mean?02:41
cgcardona joined02:41
philsturgeon left02:42
bob2 http.proxy does work02:42
Goplat joined02:42
cgcardona I'm getting the following error when I try to `git fetch origin master` 'error: insufficient permission for adding an object to repository database .git/objects' - The permissions on the .git/object directory are 755. Do I need to make them 775, 757, or 777? Is that unsafe in any way? thanks02:44
megha joined02:44
opus left02:45
bremner cgcardona: if you have to ask if 777 permissions are unsafe...02:46
jonshea left02:46
NiteRain joined02:48
glennpratt joined02:49
bremner cgcardona: are you trying to share a git repo between multiple users?02:49
ddman bob2, it is trying to connect to port 443 of the host instead of proxy02:50
fission6 left02:52
megha left02:52
jxpx777 left02:52
pseut left02:55
AaronMT left02:55
leeN joined02:57
lresende joined02:57
breck left02:58
psoo joined02:58
ddman git clone https://github.com//openstack/cinder /opt/stack/cinder02:58
Cloning into /opt/stack/cinder...02:58
error: Failed connect to github.com:443; Connection refused while accessing https://github.com//openstack/cinder/info/refs02:58
bob2 we can't see your config02:59
pseut joined02:59
breck joined03:00
cryosphere joined03:01
ddman http.proxy=http://proxy.com:8088/03:01
https.proxy=http://proxy.com:8088/03:01
core.repositoryformatversion=003:01
core.filemode=true03:01
core.bare=false03:01
core.logallrefupdates=true03:01
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*03:01
remote.origin.url=http://github.com/openstack-dev/devstack.git03:01
branch.master.remote=origin03:01
branch.master.merge=refs/heads/master03:02
i changed the proxy.com to my proxy03:02
cgcardona bremner: I've got a git repo on github and I'm trying to push and pull to/from it. so `git push origin master` works but `git pull origin master` gives me the error that I pasted above03:03
milki cgcardona: similar to !fetch4 probably03:03
gitinfo cgcardona: [!fetchfour] Never use the four-word version of git-fetch or git-pull (e.g. git fetch <remote> <refspec>). It always ends in tears. Yes, if you understand the implications of FETCH_HEAD it can technically be done, but really it is easier to just fetch the whole remote (or perhaps edit the fetchspec if you never want other bits). If you must, see !fetch4why03:03
cgcardona 'error: insufficient permission for adding an object to repository database .git/objects'03:03
rakl left03:03
milki o, but that error isnt related to the blurb03:04
cgcardona also `git fetch` gives me the same error03:04
it's related to the permissions of .git/objects.03:04
I'm googling around of course03:04
milki who made the repo?03:04
cgcardona i just thought something might jump out to someone in here.03:04
i did03:04
milki huh03:04
cgcardona i created it on github and then cloned it03:05
milki shouldnt have problems on fresh clones03:05
Dreamer3 left03:05
yakko left03:05
milki doesnt know03:05
cgcardona ok no prob03:06
milki blames filesystem or os03:06
cgcardona i ran the clone without sudo. perhaps thats it.03:06
milki which is fine. you shouldnt need root to clone...03:06
cgcardona I can of course just check out a fresh copy. I don't have any local changes. But I really need to figure it out.03:06
thanks anyway03:06
milki: Yea I didn't think I did03:06
what *should* the permissions on the .git/objects directory be?03:06
Milossh left03:07
cgcardona i'm checking google03:07
glennpratt left03:07
milki depends. default is probably 755 if you have umask 02203:07
bob2 very likely you used sudo03:08
breck left03:09
Noldorin joined03:09
d2dchat joined03:09
Milossh joined03:11
cgcardona bob2: I didn't use sudo to do the initial clone.03:12
i can bring up the command in my history from last night03:13
jonshea joined03:14
jaequery joined03:14
jaequery left03:15
bob2 how on earth did you end up with the perms broken then?03:15
d2dchat left03:15
bootstrapper joined03:17
bootstrapper left03:18
bootstrapper joined03:18
cgcardona i'm unclear on that03:19
i just created a repo from my github account. went to terminal and 'git clone [email@hidden.address] which pulled it down to my local machine. I then made local changed and committed and pushed back to github. That part worked. But then I merged in some changes from a friend and attempted to `git fetch` them to my local machine and got the fail03:20
Jahm left03:20
cgcardona Even though I don't need to use sudo to push or pull do i need to be using it to switch branches, add/remove, and commit?03:21
Jahm joined03:21
trungqtran joined03:21
adamben left03:22
bob2 unless you're on some crappy filesystem or something03:22
Progster joined03:23
pgokeeffe left03:23
cgcardona so yes I do need to be using sudo to switch branches, add/remove, and commit but don't use sudo to push/pull? Also FWIW I'm on OSX03:23
eli joined03:24
infynyxx joined03:24
aartist left03:25
svetlyak40wt joined03:25
infynyxx left03:25
thiago joined03:26
weiyang joined03:26
jalama joined03:26
bob2 no of course you don't need sudo for any of that03:28
cgcardona interesting. So I probably don't need sudo to use vim either (I realize it's off topic.) Yea I need to change my user's status on this machine.03:28
jaequery joined03:28
cgcardona thanks bob203:28
trungqtran left03:30
tavist0 joined03:30
virako joined03:31
bob2 what03:31
BiggFREE left03:32
cgcardona ok i found the issue. I've been using sudo to use vim and to switch between branches, add/remove, and commit. This is what the issue was. When I make a fresh checkout and don't use sudo for any of those it works fine.03:33
sweet03:33
hafeez3000_ joined03:33
pppaul left03:34
bob2 yes don't use sudo if you don't know why you'd want to use sudo03:35
hafeez3000 left03:35
hafeez3000_hafeez300003:35
ajc_ joined03:35
JDuke128 left03:36
amigojapan joined03:37
cgcardona the situation is I just left my job of a year and a half and am migrating back on to my personal mac. I haven't really touched the box in about a year and a half and I vaguely remember needing to use sudo to use vim. Anyway it doesn't really matter I've got it figured out now.03:38
R1KRDO joined03:40
hwrd|work left03:41
jaseemabid joined03:41
Milossh left03:43
pfefferz left03:44
Progster left03:45
wrouesnel left03:45
bootstrapper left03:46
dmarkham joined03:46
khmarbaise joined03:47
jaseemabid left03:49
sgambino joined03:49
ErickLan_ joined03:50
pfefferz joined03:51
engla left03:51
mdszy joined03:53
tureba left03:53
tjbiddle joined03:53
mdszy Whenever I have this git post-receive hook run a git command in another directory, I keep getting "Not a git repostitory '.' errors".03:53
Anyone have any idea why?03:53
tureba joined03:54
mdszy I tried cding into the directory through the script, and setting the GIT_WORK_TREE variable.03:54
cgcardona left03:54
fuzzybunny69y left03:54
bob2 bpaste.net the script03:54
virako left03:54
mdszy http://sprunge.us/cDjF?sh03:55
fission6 joined03:56
bob2 yeah03:57
those commands require a repository03:57
you probably don't want merge either03:57
mdszy bob2, I know that, and whenever I run them by hand inside of the repo they work fine. But not in the script.03:57
bob2 sine it'll preserve local mods isntead of nuking them03:57
mdszy what do you suggest I do, then?03:57
fuzzybunny69y joined03:57
bob2 'ls -a /home/pi/statsapp'03:58
mdszy .git is in there.03:58
ErickLan_ left03:58
mdszy Like I said, if the commands are run by hand -- outside of the script -- they work03:58
if I run the script by hand, they work03:58
tinocos joined03:58
mdszy but if the script is run as a hook, they don't03:58
cryosphere if I have a merge conflict - how do I keep my (local, current branch) version03:58
rather than resolve line by line03:58
Fels left04:00
tchan left04:00
jcromartie left04:01
EugeneKay cryosphere - git checkout HEAD -- file.txt04:01
cryosphere - you may also be interested in the -Xours option in man git-merge04:01
gitinfo cryosphere: the git-merge manpage is available at http://jk.gs/git-merge.html04:01
dreiss joined04:04
myx left04:04
jiku left04:05
shakes808 joined04:05
gitinfo set mode: +v04:06
bootstrapper` joined04:06
jcromartie joined04:06
tchan joined04:06
tchan left04:06
tchan joined04:06
mdszy any ideas as to what might be my issue?04:09
weiyang left04:09
Bankzilla left04:12
beautifulmind joined04:13
bootstrapper` left04:13
HumanSky left04:14
m0ltar left04:14
lavaman joined04:15
guns joined04:15
breck joined04:16
rakl joined04:17
SBoudrias left04:17
__class__ joined04:17
prudnikov left04:18
skorgon left04:18
Praise left04:18
SeoZ-work[AWAY]SeoZ04:19
mdszy left04:19
dmarkham left04:19
thesisus left04:20
skorgon joined04:20
herdingcat joined04:21
normanrichards joined04:22
Praise joined04:22
pierceray joined04:25
the_cybersphinx left04:25
R1KRDO1 joined04:28
glennpratt joined04:28
sangi joined04:29
R1KRDO left04:30
diegoviola joined04:31
Noldorin left04:31
arvind_khadri left04:32
goshawk joined04:33
Goles left04:33
hafeez3000 left04:35
shakes808 left04:37
wrouesnel joined04:38
breck left04:38
R1KRDO1 left04:39
glennpratt left04:41
hatake left04:41
fuzzybunny69y left04:41
Fandekasp joined04:41
hatake joined04:41
glennpratt joined04:41
amigojapan left04:43
mikewintermute joined04:45
hinst joined04:45
pierceray left04:45
pppaul joined04:45
tinocos left04:47
eletuchy left04:47
gitinfo set mode: +v04:47
eletuchy joined04:48
Davey left04:49
rakl left04:50
aspiers left04:50
fuzzybunny69y joined04:52
jaequery left04:52
lavaman left04:52
Zombie__ joined04:53
gmc_ joined04:55
aspiers joined04:55
infynyxx joined04:55
schoos left04:56
jaequery joined04:57
gmc_ left04:57
pppaul left04:57
glennpratt left05:00
wroathe joined05:00
preflex left05:01
preflex_ joined05:01
lavaman joined05:02
hinst left05:02
preflex_preflex05:02
cagedwisdom_ joined05:02
tjbiddle left05:04
ping-pong left05:05
rastar joined05:05
wroathe left05:05
gmc_ joined05:07
gmc_ left05:08
leeN left05:11
Noldorin joined05:11
dhruvasagar left05:12
ISF left05:12
wrouesnel1 joined05:12
dhruvasagar joined05:13
fuzzybunny69y left05:15
jaseemabid joined05:17
citizen-stig joined05:17
goshawk left05:17
marc_kdab_ left05:18
DrHouse|WKSTN1 left05:18
marc_kdab_ joined05:18
pretty_function joined05:21
Zombie__ left05:22
monk3y left05:24
a-l-e joined05:25
hwrd|work joined05:25
Saby left05:26
wrouesnel1 left05:26
OOPMan left05:26
hellopat left05:27
OOPMan joined05:27
kill-9_ left05:29
svetlyak40wt left05:30
Caelum can I change the comment at the bottom of commit messages?05:31
I want it to just show the modified: file lines, without the instructions05:31
pgokeeffe joined05:31
OOPMan left05:32
ping-pong joined05:34
ISF joined05:34
jaseemabid left05:35
private joined05:36
privateGuest3682205:36
thiago Caelum: why?05:39
Noldorin left05:40
OOPMan joined05:41
sluther joined05:42
tjbiddle joined05:43
nafg_ joined05:45
Err404NotFound left05:46
zivester left05:46
fuzzybunny69y joined05:46
Err404NotFound joined05:47
zivester joined05:49
Caelum thiago: because I email the commit message05:50
lavaman left05:50
Caelum thiago: along with the comment05:50
herdingcat left05:50
breck joined05:50
lun_ joined05:51
herdingcat joined05:52
archdori joined05:53
marc_kdab_ left05:53
TheJH joined05:53
marc_kdab_ joined05:53
breck left05:55
breck joined05:55
douglarek left05:55
maleknet joined05:56
Fandekasp left05:56
lun_ left05:58
huoxito left05:58
dhruvasagar left05:58
dmarkham joined05:58
lun_ joined05:59
lpapp joined05:59
nigelb left05:59
jsec left05:59
lpapp left05:59
lpapp joined05:59
hwrd|work left05:59
nigelb joined05:59
lpapp hi, how can one modify the commit creating time/date? Used to have an option because an acquaintance implemented it few years ago, but cannot recall anymore.05:59
creation*06:00
hwrd|work joined06:00
eletuchy left06:00
resmo_ left06:00
ivan` joined06:01
OOPMan left06:02
jsec joined06:02
infynyxx left06:02
maleknet left06:03
CareBear\ left06:04
jaseemabid joined06:04
babilen left06:04
babilen joined06:05
lpapp left06:06
ryao joined06:06
noyb joined06:07
lamarus left06:07
lamarus joined06:07
TheJH left06:09
WinstonSmith left06:10
ryao left06:11
WinstonSmith joined06:12
ryao joined06:12
sluther left06:13
ISF left06:15
subhojit777 joined06:15
maleknet joined06:15
amesha joined06:16
asaf left06:17
bgerber left06:17
hatakedaenglinuxx06:17
ryao left06:17
ryao joined06:18
amesha hi everyone, i have a repository which has a set of files in it that i would like to track with version control for my own use, but i would also like to publish the repository publicly without those files06:18
lun_ left06:19
amesha could anyone point me in the direction of a good strategy for accomplishing something like that?06:19
thiago either you track or you don't06:19
amesha so it's not possible in one repository?06:19
thiago so my recommendation is that you keep two branches06:19
one without the files and one with06:19
amesha ah okay06:19
amigojapan joined06:19
amesha thanks, thiago06:20
madewokherd left06:21
frogonwheels amesha: it also depends on the relationship. you could have just those files in a sep repository (design it to be in a sep dir)06:21
fphilipe left06:21
frogonwheels amesha: .. or if they are config files that need to be in the same dir, symlink them in from a separate repo.06:21
shruggar joined06:22
fuzzybunny69y left06:22
ryao left06:23
Tritania left06:24
ryao joined06:24
Fretta joined06:24
etcetera joined06:24
Tritania joined06:25
Err404NotFound left06:25
fuzzybunny69y joined06:25
lun_ joined06:25
jcao219 left06:26
citizen-stig left06:28
ryao left06:29
jjang_ joined06:30
v0n left06:30
ryao joined06:30
jjang_ left06:33
jjang left06:34
tjbiddle left06:34
jaseemabid left06:35
ryao left06:35
ISF joined06:35
Error404NotFound joined06:36
nevyn so first perforce now visualstudio...06:36
win.06:36
aberrant joined06:36
ryao joined06:36
amesha left06:37
breck left06:37
amesha joined06:37
asaf joined06:39
lun_ left06:40
LeMike joined06:41
Cromulent joined06:41
ryao left06:41
ryao joined06:42
lun_ joined06:44
ryao left06:44
breck joined06:45
Fretta left06:45
milki dows06:45
ruskie joined06:45
grummund left06:46
Goplat left06:47
lun_ left06:49
marc_kdab_ left06:49
soee joined06:49
etcetera left06:50
herdingcat left06:51
Caelum you mean the VCS ms wrote?06:52
how is it06:52
Sigma joined06:53
skorgon left06:54
jjang joined06:54
nevyn http://blogs.msdn.com/b/bharry/archive/2013/01/30/git-init-vs.aspx06:55
Caelum: it's now git ;)06:55
infynyxx joined06:56
shruggar left06:56
tewecske left06:56
nafg_ left06:56
fission6 left06:57
breck left06:57
herdingcat joined06:58
breck_ joined06:58
fbdystang left06:58
lirt joined06:58
amesha left06:58
amesha joined06:59
Bass10 left06:59
skorgon joined07:00
pantsman joined07:01
lun_ joined07:02
sajan left07:02
nafg joined07:03
JohnBat26 joined07:03
system64 joined07:04
papegaaij joined07:05
jaseemabid joined07:07
Fandekasp joined07:07
jaseemabid left07:08
psoo left07:09
lun_ left07:10
lun__ joined07:10
khmarbaise left07:10
pseut left07:10
archdori left07:10
jaseemabid joined07:12
infynyxx left07:12
arvind_khadri joined07:12
jcromartie left07:14
PaulCapestany left07:16
robustus left07:17
thehandler joined07:18
cbreak-work joined07:18
breck_ left07:19
smirn0v joined07:19
thehandler left07:19
ThomasLocke joined07:19
breck joined07:19
beliveyourdream joined07:20
robustus joined07:20
skyxxx joined07:20
amesha left07:20
thehandler joined07:20
Sigma left07:21
mishok13 left07:21
dhruvasagar joined07:21
amesha joined07:21
OOPMan joined07:23
rath joined07:24
Ertac left07:24
Cromulent left07:25
WorkeD joined07:27
Milossh joined07:27
jkremser joined07:29
CareBear\ joined07:30
chrisgwardchrisward07:30
jjang left07:31
nilg joined07:32
fRAiLtY- joined07:32
beautifulmind left07:32
marthinal joined07:33
shruggar joined07:34
toothrot left07:34
noyb left07:34
tsdh joined07:36
revyd left07:36
toothr joined07:37
GeertV joined07:38
cheater left07:39
Sebo left07:39
lifelike left07:40
lifelike joined07:40
clone1018 left07:41
amesha left07:42
amesha joined07:43
segher left07:44
hyperboreean left07:44
fphilipe joined07:45
jaseemabid left07:46
hoschi joined07:46
normanrichards left07:47
TonyM joined07:48
main joined07:48
mishok13 joined07:50
Sigma joined07:50
btree joined07:51
gerryvdm_mbp joined07:52
gerryvdm_mbp left07:53
btree left07:53
arvind_khadri left07:54
arvind_khadri joined07:54
lresende left07:55
lun__ left07:55
dc5ala joined07:55
amir_ left07:56
jjang joined07:58
lun_ joined07:58
tbosua joined07:58
fphilipe left07:59
GarethAdams joined07:59
jaseemabid joined07:59
tjadc joined08:01
amesha left08:02
sangi left08:03
amesha joined08:03
smirn0v left08:03
tPl0ch joined08:04
thiago left08:04
LeMike left08:04
yewton left08:04
jaseemabid left08:05
yewton joined08:05
smirn0v joined08:07
pppaul joined08:07
jargon joined08:08
flijten joined08:09
rzs joined08:10
Milossh left08:12
rzs I have a git repo with mutiple subdirectories. I want to migrate two subdirectories into a git repo of their own. Im able to migrate a single subdirectory by following the instructions given at http://www.geekaholic.org/2010/02/splitting-git-repo.html08:12
Can i migrate more than one subdirectory into a separate git repo ?08:12
WillMarshall joined08:13
lng joined08:14
lng Hi! After `git submodule add`, I add it to .gitignore, right?08:15
alexwhitman left08:15
timj1 joined08:15
lng because now I see it as new file08:15
horatio_cromwell joined08:16
alexwhitman joined08:16
yshh left08:16
jast lng: nah, that's the plan. you can 'git add' the submodule to record a changed revision in the submodule (remember that submodules are versioned, i.e. there's always a specific revision associated with any given state of the main project)08:16
Zer000 joined08:16
shruggar left08:17
lng jast: I see thanks!08:17
guns left08:17
jast rzs: you can do the same procedure multiple times08:17
bauruine left08:17
letharion_ left08:17
jast rzs: side note, the --index-filter approach in the last step is indeed _much_ faster than the --tree-filter approach08:17
Zer000 So I committed and pushed something I regret - some rather large media files that shouldn't even be in the project. How do I undo the last commit locally and on the remote?08:17
jast also, don't bother doing gc/prune etc. before you're all done08:17
timj left08:18
jast the steps for that aren't quite right in that post, anyway08:18
Sonderblade joined08:18
system64 left08:18
yshh joined08:18
jast Zer000: !fixit08:18
gitinfo Zer000: [!fixup] So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history!08:18
Milossh joined08:19
main left08:19
lethjakman joined08:20
dmarkham left08:20
cheater joined08:21
Zer000 jast that helps thank you!08:22
dreiss left08:22
lxsameer joined08:22
amesha left08:22
lxsameer how can i fetch all the remote refs?08:22
amesha joined08:23
rzs jast: but if i do those steps then the new repo contains the contents of the project i filtered rather than the filtered project directory08:23
jceb_ joined08:23
Zer000 There's something I don't get though, If my local repo = my remote repo at the moment, I do "git reset HEAD^" then make my changes, commit, then push, what happens to remote?08:23
rzs jast: so if i run the steps again for another project wont it mix the contents of that project with the previous one ?08:23
Milossh left08:23
Zer000 ah, it says I cannot push08:24
shruggar joined08:24
tavist0 left08:25
shruggar left08:25
dougmencken joined08:25
dougmencken hi guys!08:25
jjang left08:25
dougmencken after 'git reset', there're no "renamed --->", but "deleted" and "untracked"08:26
how to turn them back to "renamed"?08:26
Milossh joined08:26
GarethAdams dougmencken: from what I can tell, the rename detection only happens on `add`ed files08:28
acrocity_ joined08:28
JoeHazzers left08:28
swair joined08:28
Nevik well, it must be a *matching* delete and add08:28
adamben joined08:28
dougmencken hmm, it was a rename, then I modified08:28
Nevik matching as in git's content compare says "yep, that's probably a rename"08:29
dougmencken: dont modify and rename in the same commit08:29
dougmencken new file: and deleted: now :(08:29
Nevik split those actions up into two commits08:29
acrocity left08:29
acrocity_acrocity08:29
dougmencken Nevik: but other files won't find renamed header then08:29
yshh left08:29
yshh_ joined08:29
dougmencken Nevik: and this will be broken un-buildable commit08:29
Nevik so you have two choices now:08:30
1) live with it (have the working build and forget about the rename detection)08:30
2) revert either the rename or the content changes manually, make an intermediate commit, then make the reverted change again and commit08:30
stash can come in helpful in some of those cases08:31
in choice 2, you can do it easy and produce one broken build for the intermediate commit, or if you'Re really pedantic, you can go and fix the code for it08:32
jast Zer000: there's a --force option for push08:32
Nevik that's all up to you, dougmencken08:32
lirt left08:32
Zer000 jast, I think I got it to work!08:32
good night08:32
Zer000 left08:32
lirt joined08:33
jast rzs: 1) create copy of original; run filter-branch to reduce to subdir a. 2) create another copy of original; run filter-branch to reduce to subdir b. and so on. finally, remove all those subdirs from original.08:33
LeMike joined08:33
wolfmitchell left08:34
BadDesign joined08:34
BadDesign left08:34
BadDesign joined08:34
SeoZSeoZ-work[AWAY]08:34
AdrienBrault joined08:35
boombatower left08:35
amesha left08:35
amesha joined08:36
wolfmitchell joined08:36
Fels joined08:37
rzs jast: thanks for reply. i want to keep my original repo as it is. If i understand u correctly, i create a copy of original repo and do filter branch to reduce to a. Then create another copy of original and run filter branch to reduce to b. So, now i have two copies of original A and B respectively. Can i push them to my new repo such that the new repo contains A and B subdirectories separate instead of the contents of both mixed ?08:38
pppaul left08:38
francisfish joined08:38
jast rzs: you _could_, but I don't see the big advantage over having two separate repositories08:39
rzs jast: A and B wont be repos in themselves they would just be part of the new repository08:39
Caelum figured out my prepare-commit-msg hook: perl -ni -e 'print unless /^#.+/ && !/^#\t[^:]+:/' $108:41
jast oh, so you want to have a/ and b/ in there?08:41
rzs jast: yeah08:41
jast might not be possible with the standard subdirectory-filter, then08:41
this is going to be trickier08:41
smirn0v left08:42
rzs jast:ok, plz let me know if u have any ideas08:42
jast I think it involves a more complex --index-filter, one in which you delete everything _but_ a and b08:42
that'll require a certain amount of shell scripting skills08:42
smirn0v joined08:42
dougmencken Nevik: okay, let's choose 1: rename detection is just useful thing, not a must :)08:42
Nevik jast: wouldnt merging the two (A and B) repos work though?08:42
after extracting them separately, jast08:42
dougmencken: okay :D08:43
jast I suppose... if you don't mind the weird history08:43
dougmencken thanks for help, see you08:43
dougmencken left08:43
Nevik i dont know what history filter-branch for subdirs produces. will it keep the original hashes? hmmmm no, it would produce new commits, right?08:43
maxmanders joined08:43
jaequery left08:44
grawity Any kind of filtering will produce new commits08:44
Nevik damn, then no, merging will be ugly08:44
jast also how do you tell merge to move the files back into subdirs08:45
subdirectory-filter promotes them to the top level08:45
heroux left08:45
Nevik ah, see, didnt know that. kay, i'll shut up now :P08:45
x82_nicole joined08:46
weltall left08:46
weltall joined08:46
pantsman left08:47
svetlyak40wt joined08:48
sobhan joined08:48
anderse joined08:49
dreiss joined08:50
hwrd|work left08:50
main joined08:51
WorkeD left08:53
francisfish left08:54
lng I'm on master branch and have 'remotes/origin/HEAD -> origin/master', but I also have 'remotes/origin/2.0' - I need to checkout this branch. How do I do it? I forgot...08:54
hwrd|work joined08:55
lng do I git checkout -b remotes/origin/2.0?08:55
cmn you can create a local branch of the same name, git checkout -t origin/2.008:55
and that starting point08:55
letharion_ joined08:56
jast with recent gits, 'git checkout 2.0' will do the trick08:56
cmn as long as the name is unique enough08:56
jast sure08:57
francisfish joined08:57
lng yes!!08:57
git checkout 2.0!08:57
jast: thanks!08:57
memoryleak joined08:57
lng cmn: why origin/2.0? locally I had only master08:57
cmn precisely because of that08:58
lng ah08:58
cmn it's a remote-tracking branch08:58
lng yes08:58
rzs When i run git subtree split -P subdirname -b foo i get 'git subtree command not found'. Do i need to install subtree separately ?08:58
cmn what I don't like about the magic jast showed is that it gives the impression of checking out the remote-tracking branch, which is not quite what's happening08:58
xxc_michael joined08:58
cmn rzs: it's in contrib/ and many packagers don't install it by default08:59
rzs cmn: ok, im on a ubuntu machine. how can i install it ?08:59
cmn make install under contrib/ in the git source09:00
giallu joined09:00
spuz joined09:01
xiangfu left09:01
leeN joined09:02
FernandoBasso joined09:02
cmn rather, contrib/subtree/ or whatever its subdir is09:02
amesha left09:03
rzs cmn: alright thanks09:03
amesha joined09:03
jlopez joined09:04
anderse left09:04
DeviantPeer joined09:04
hyperboreean joined09:05
valgrind joined09:05
blackmat` joined09:06
swair left09:06
TeamColtra left09:06
swair_ joined09:06
jdav_gone left09:06
swair_ left09:06
gitinfo set mode: +v09:06
blackmat` helo09:06
frsk left09:06
Xethron joined09:07
LimeBlast joined09:08
cheater_ joined09:08
Iszak left09:09
blubberdiblub left09:09
dreiss left09:10
cheater left09:11
Fels left09:13
adhawkins-awayadhawkins09:13
lifelike left09:14
DeviantPeer if I have a branch (master) with a long history of commits, is it possible to create a new branch (publish, or public) where most of the commits from master would show up as squashed?09:14
alkino joined09:14
DeviantPeer I looked into checkout --orphan but it's too looks like it's too drastic (as if starting a completly new commit history).09:15
Vile left09:15
acrocity_ joined09:15
acrocity left09:16
acrocity_acrocity09:16
DeviantPeer So it would be something like master:a-B-C-D-E-F-G... ; and in publish:D-F...09:16
laurav joined09:17
GarethAdams DeviantPeer: do you know about `rebase -i`?09:17
Anders_J joined09:18
DeviantPeer GarethAdams: I though I did. :) So I would start with a "publish" branch created from the first commit, and then rebase -i from there?09:18
x82_nicole left09:19
segher joined09:19
DeviantPeer GarethAdams: or branch publish from master:HEAD and rebase in the publish branch?09:19
lifelike joined09:19
Iszak joined09:20
Cromulent joined09:21
fphilipe joined09:22
koskoz joined09:23
koskoz hi09:23
is is possible to show all the modifications made to a file on all branches, not just a specific one?09:23
pgokeeffe left09:23
jdav_gone joined09:25
ozette joined09:25
howlymowly joined09:25
buibex joined09:25
hwrd|work left09:27
marhaban joined09:27
pgokeeffe joined09:28
cmn --all and filter by that path09:28
b1rkh0ff left09:28
amesha left09:30
amesha joined09:31
Fels joined09:31
Sebo joined09:33
koskoz cmn: with which command?09:35
Imaginativeone left09:35
cmn log09:35
the one that walks through history09:35
pxdr ping cmn09:35
m1au_ hi,09:37
does anyone use gitlab with puppet modules?09:37
and have problems of files directory not displaying the content in gitlab?09:37
nigelb left09:38
PaulePanter left09:38
amesha left09:39
cmn you should ask the gitlab people09:40
smirn0v left09:41
myx joined09:41
smirn0v joined09:42
koskoz thanks cmn, now I have to find what to do with my commit sha109:43
WillMarshall left09:43
cmn what to do with it?09:43
m1au_ cmn: do they have official channel?09:44
cmn I believe so09:44
sobhan left09:44
m1au_ there are 24 ppl on #gitlab with no topic.09:44
cmn http://gitlabhq.com/community/09:44
m1au_ does not look like one.09:44
cmn we don't know about gitlab-specific issues09:44
Vile joined09:45
m1au_ yes, saw forum, wiki but no irc on that page09:45
cmn then they don't offer IRC support09:45
m1au_ oh well, gotta write in their forum then09:45
netiul left09:45
zoresvit joined09:46
diegoviola left09:47
koskoz cmn: I wanna show the file in this commit09:47
cmn then use show or similar09:47
koskoz yeah, just saw that on google09:47
appart from add, commit, checkout, branch, pull, push and reset I'm noob09:47
alexO left09:48
cmn read !book09:48
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 !parable09:48
dreixel joined09:48
pgokeeffe left09:49
marhaban left09:50
snql joined09:50
dreixel my git merge failed. As in, completely: if I edit the (very minor) conflicts and try to commit, it's just a new commit. I don't want this because it'll make future merges impossible... what can I do?09:51
bauruine joined09:51
cmn a merge will always be a new commit09:51
pity left09:52
cmn and why would this make future merges impossible?09:52
Gentlecat_ left09:52
Ksg89 joined09:52
dreixel well, it becomes a single new commit. So it doesn't preserve the fact that it's actually hundreds of old commits09:52
BiggFREE joined09:52
dreixel my git merge ends with "Merge with strategy octopus failed."09:53
and not with "Automatic merge failed; fix conflicts and then commit the result."09:53
jatt joined09:53
cmn this is not true09:54
dreixel well, I've never seen this behaviour before. perhaps I've done something wrong, but I don't know what.09:54
chisler joined09:54
cmn first of all, don't do octopus merges09:55
merge whatever branches are appropriate one by one and fix whatever conflicts09:55
and read up on what merges are09:55
Sebo left09:55
swair joined09:56
marhaban joined09:56
dreixel ah, nice and friendly.09:56
jast in any case, don't use octopus merges09:58
they're really more of a curiosity and, as you noticed, they don't work nearly as reliably as normal merges09:59
dreixel it's not like I chose to. I just did "git merge origin master"09:59
jast yeah, so now you know to not make that mistake again :}09:59
netiul joined10:00
dreixel but what's wrong with that?10:00
cmn you're asking it to merge two different branches10:00
dreixel oh, maybe that doesn't mean what I think it does...10:00
right.10:00
so git merge master is what I want, I guess.10:01
marhaban left10:01
georg joined10:01
jast dreixel: or git merge origin/master10:01
'origin master' is only valid in push/fetch/pull, because those accept a remote and a refspec as arguments. merge doesn't. it wants a ref.10:02
dreixel jast: alright, that must be where I got confused...10:02
that clears it up, thanks.10:02
Chiku|dc joined10:03
Xeno joined10:03
PaulePanter joined10:04
xxthink left10:04
anderse joined10:05
dreixel left10:05
_br_ left10:05
nigelb joined10:06
danielfilho left10:07
daniel_- joined10:07
marhaban joined10:08
jmd joined10:08
marhaban left10:08
jmd how can I do git <something> on all files whose names match a pattern?10:09
pgokeeffe joined10:09
_br_ joined10:09
marhaban joined10:10
jast unless you want to use shell script, that would depend on the <something>10:10
BiggFREE left10:11
kristofers joined10:11
Guest36822 left10:12
Xeno left10:13
anderse left10:13
daenglinuxxterlalu10:13
anderse joined10:14
wasanzy joined10:14
Goles joined10:15
suy joined10:15
arkiver joined10:15
_br_ left10:16
_br_ joined10:18
swair left10:20
beautifulmind joined10:21
FernandoBasso left10:21
exoon joined10:21
iflista_ left10:21
_br_ left10:22
aberrant left10:22
anderse left10:22
_br_ joined10:23
mklappstuhl joined10:24
Chiku|dc does env GIT_PROXY_COMMAND just for git:// ? what about https:// ?10:25
SeoZ-work[AWAY]SeoZ10:25
clone1018 joined10:25
angelsl joined10:26
jast I don't know GIT_PROXY_COMMAND, but chances are http(s) uses the standard http(s)_proxy env var10:26
ISF left10:28
terlalublackjack10:29
e66 joined10:29
Chiku|dc I use this for SOCKS10:31
Fels left10:31
dwmw2_gonedwmw210:32
luc_ left10:32
herdingcat left10:33
shruggar joined10:33
Fandekasp left10:33
guampa left10:36
Hounddog joined10:37
Element9 joined10:37
rastar left10:37
gain joined10:39
babilen left10:39
stliu left10:39
Goles_ joined10:39
Orphis left10:40
Fels joined10:40
Goles left10:40
maleknet left10:42
rootcoma left10:42
Orphis joined10:43
txomon|home joined10:44
asakura left10:46
tystr left10:49
psoo joined10:49
AdrienBrault left10:50
ankurankan joined10:50
wrouesnel1 joined10:50
djsecilla left10:51
jdyin left10:51
AdrienBrault joined10:52
asakura joined10:52
tystr joined10:52
pity joined10:52
m0viefreak left10:55
Xethron left10:56
avjpl joined10:56
Xethron joined10:56
buibex left10:56
avjpl left10:57
txomon|home left10:57
h0bbit joined10:58
txomon|home joined10:59
gyre007 joined10:59
alkino left10:59
fisted left11:01
Sebo joined11:01
jargon left11:01
Ksg89 left11:02
fisted joined11:02
joeytwiddle left11:03
maleknet joined11:03
rastar joined11:04
yshh_ left11:05
buibex joined11:05
jatt left11:07
joeytwiddle joined11:07
babilen joined11:08
ostree left11:09
Tommy[D] left11:09
asakura left11:09
FernandoBasso joined11:09
Tommy[D] joined11:10
bgerber joined11:10
eletuchy joined11:11
eletuchy_ joined11:12
eletuchy left11:12
alkino joined11:13
smirn0v left11:14
maleknet left11:15
zerba joined11:15
Nevik osse: Trying SHA 00000000000000000000000000000000000f4241; covered 0.0000000000000000000000000000000000000001% of search space; step: 0.540s; ETA: 25025712967994912512904150712367479521280.000000 years11:16
smirn0v joined11:16
hyperair left11:16
iSaleK joined11:16
Nevik osse: i dont think we're gonna see the completion of that algorithm :P11:16
fphilipe left11:17
Infiltrator left11:18
Nevik oh that wasnt quite correct11:18
osse: it's only ~2.5e34 years11:19
Merwin left11:20
the_cybersphinx joined11:20
chisler left11:20
Merwin joined11:20
wrouesnel1 left11:21
asakura joined11:21
Fandekasp joined11:21
Progster joined11:22
milStaja joined11:23
FabTG left11:23
lethjakman left11:24
dermoth|home left11:25
aberrant joined11:25
Infiltrator joined11:26
dermoth|home joined11:26
anderse joined11:26
shwaiil joined11:27
shwaiil hi11:27
Xethron left11:27
JohnBat26 left11:27
maleknet joined11:28
shwaiil Q: I had to git checkout some files to an older version. Wondering if I could do a git reset HEAD to make sure everything is sync with master. I've tried reset head but didn't worked ?! :T11:29
Thanks for looking!11:29
bmac_ joined11:29
bauruine left11:29
marhaban left11:30
warthog9 joined11:30
bauruine joined11:30
apeiros_ joined11:30
quazimodo joined11:31
apeiros_ hi there. `git diff --summary A..B` only shows created, deleted and mode-changed files - is there a way to also get modified files?11:32
(git version is 1.8.1)11:32
shwaiil btw, I did git reset HEAD --hard11:33
erkules_erkules11:33
whowantstolivefo https://github.com/refinery/refinerycms/pull/2176#issuecomment-13225888 <<< what can i do ? for right put my files to git ?11:33
smirn0v left11:34
gavin_huang joined11:35
sallesao left11:35
avtobiff left11:35
sveajobb shwaiil, then the changes should have been removed, are you sure you didn't change where HEAD i.e. checked out another commit instead11:36
smirn0v joined11:36
Sonderblade left11:36
rastar1 joined11:36
shwaiil sveajobb: tks for looking! I'm making sure I've merged the branches I want to see, and cleaning the cache, because I think everything was done properly :Z just a sec11:37
rastar left11:37
zoresvit left11:38
gavin_huang left11:38
sveajobb shwaiil, well if you did a merge, then you actually moved the HEAD to a new commit which is the merge, try to see this visualized in gitk for example. in order to remove the changes you can do git reset --hard THE_OLD_BRANCH_OR_REF11:38
gavin_huang joined11:39
ajc_ left11:40
gavin_huang left11:40
curvedmark joined11:40
osa1 joined11:40
shwaiil sveajobb: In local I merged several branches to master. in a different server I pulled master (everything fine). there was two files that I had to revert back, so I did git checkout hash path/file. Everything was up to date, but not this files I reverted.11:40
I had to merge more local changes to the master. In the other server, I've pulled, but it's not like in the local master, the files I've reverted previously remain in that state.11:41
mattcen left11:42
mattcen joined11:42
sveajobb and the changes you made, are they commited?11:43
what does git status say on the servers ? do they differ?11:43
shwaiil sveajobb: nice ehh just a sec11:43
JohnBat26 joined11:43
shwaiil only some untracked files are present11:44
adamben left11:44
shwaiil I'l just do it manually it's fine I guess, just wondering if git reset HEAD --hard should have worked11:44
osa1 left11:44
looper left11:44
sveajobb yeah well, if nothing shows up in git status, then git reset --hard won't really do anything11:45
roland joined11:45
sveajobb buy yeah, if you checkout an old version of a file and later on git reset --hard, that should work11:45
engla joined11:45
shwaiil ok thanks : )11:46
nafg left11:47
robotmay joined11:48
marhaban joined11:48
marhaban left11:48
marhaban joined11:49
ankurankan left11:49
lirt left11:49
Sonderblade joined11:49
lxsameer left11:50
lirt joined11:50
marhaban left11:53
shwaiil sveajobb: I did git checkout hash path/file(s) and its fine now11:54
main left11:54
rwestphal joined11:55
zoresvit joined11:55
weltall left11:56
huoxito joined11:56
weltall joined11:58
sveajobb shwaiil, nice :)12:02
untrothy joined12:02
jalama left12:04
horatio_cromwell left12:05
SeoZSeoZ-work[AWAY]12:07
alkino left12:07
Error404NotFound left12:08
gusnan joined12:12
giallu left12:12
Asenar joined12:12
fphilipe joined12:14
wrouesnel ok running git mergetool with meld gives me local, base and remote files --- which one do I have to actually merge into ?12:15
Putr[alt] left12:15
aberrant left12:17
Error404NotFound joined12:21
alkino joined12:21
ostree joined12:22
amigojapan left12:22
csmrfx joined12:22
adamben joined12:23
rwestphal left12:23
csmrfx Is there a flag for "dry-run" with git pull?12:23
untrothy left12:23
KevinSjoberg joined12:23
csmrfx ie. not really doing anything, just to see what might change12:23
rwestphal joined12:23
pity left12:28
lirt left12:28
BadDesign left12:28
smirn0v left12:29
valgrind left12:29
bmac_ left12:29
lirt joined12:29
francisfish left12:30
keller left12:30
smirn0v joined12:30
STenyaK2 joined12:30
Error404NotFound left12:31
megha joined12:32
bremner csmrfx: you can use git fetch or git remote update, but predicting the outcome of merges is harder in most casees.12:32
gitinfo set mode: +v12:32
STenyaK2 How can I view a summary of all changes between two specific commits, in similar format as a "git status" does for changes in working copy? Thanks!12:32
bremner STenyaK2: man git diff12:32
gitinfo STenyaK2: the git-diff manpage is available at http://jk.gs/git-diff.html12:32
jaseemabid joined12:33
acrocity left12:36
keller joined12:38
fuzzybunny69y left12:38
yshh joined12:39
acrocity joined12:41
fphilipe left12:41
OOPMan left12:42
Ksg89 joined12:42
Fels left12:43
xiangfu joined12:43
Error404NotFound joined12:44
fphilipe joined12:45
warthog9 left12:45
Tommy[D]_ joined12:48
Tommy[D] left12:48
fphilipe left12:48
picoguy joined12:49
n4irc left12:50
Goles_ left12:51
marc_kdab_ joined12:51
Goles joined12:51
aldskf3 joined12:51
Targen left12:53
Noldorin joined12:53
cheater_ hi12:54
gitinfo set mode: +v12:55
alkino left12:55
cheater_ cmn: hi, are you around?12:56
Goles test12:56
Oh I have voice now :)12:56
cheater_ well done12:56
Goles I was wondering how can I download a submodule for my git project … I added a repo as submodule, commited to my master branch and pushed. If I then clone my repo, the submodule dir is (of course) empty. How can I fetch the submodule?12:56
guampa joined12:56
blue-0x joined12:56
jcao219 joined12:56
buibex left12:56
dhruvasa1ar joined12:56
Nevik Goles: see http://git-scm.com/book/en/Git-Tools-Submodules12:57
Goles: and after that, man git submodule for the technical details12:57
gitinfo Goles: the git-submodule manpage is available at http://jk.gs/git-submodule.html12:57
cannonball joined12:58
Goles thanks guys12:58
Nevik that's blog is neat12:58
Nevik Goles: that's the Pro Git book12:58
it's generally a recommended read for all git users12:59
Goles Nevik cool! I've been exploring git more these days… have been using it in "basic" mode for a couple of years… just discovered 'rebase'12:59
thyseus_ joined12:59
Nevik :)12:59
samuel02 joined12:59
thyseus left13:01
mihamina left13:01
kill-9_ joined13:02
jcao219 left13:03
Progster left13:03
ncd|leeN joined13:04
yshh left13:04
smirn0v left13:04
Cromulent left13:04
looper joined13:04
leeN left13:04
Noldorin left13:05
Mannequin joined13:05
daniel_- left13:05
NiteRain left13:05
adamben left13:06
jcromartie joined13:06
m0ltar joined13:06
smirn0v joined13:07
alkino joined13:08
sgambino left13:10
keller left13:10
txomon|home left13:10
adamben joined13:11
cheater_ hey guys, i did some history rewriting on a page. first i tried filter-branch with --tree-filter, then (on a separate copy) with --index-filter, and i ran git reflog to expire caches and i ran gc --aggressive.. the files were removed from the checkouts, but "git verify-pack -v .git/objects/pack/pack-*.idx | grep -v chain" still shows those files. why does it show them? i am afraid that the files didn't get "really removed"13:11
toothrtoothrot13:13
Shurakai joined13:13
geekbri joined13:13
Ksg89 left13:14
eliasp left13:14
millun joined13:14
jast cheater_: there's a checklist for shrinking repositories in man git-filter-branch... (by far the easiest way to get rid of them is to clone the filtered repo into a new one)13:14
gitinfo cheater_: the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html13:14
whowantstolivefo hey guys anyone online!?!>?13:14
blue-0x left13:15
whowantstolivefo when i type " git rebase -i HEAD^^ " i get the following error " /usr/lib/git-core/git-rebase: 1: eval: sublime1: not found Could not execute editor " but i already typed " git config --global core.editor "sublime1 --wait" " it dosnt help13:16
guy joined13:16
jcromartie left13:16
guy These are my firewall rules, though I am not able to establish connection with Git over SSH.13:16
https://gist.github.com/gajus/de69403b579fb3ca0a6313:16
any clue what is missing?13:16
adamben left13:17
jast whowantstolivefo: it's complaining that sublime1 doesn't exist or can't be found, so if you configure it to use that, it's not a huge surprise that it fails. you may need to give it a full path to the editor (if it's installed).13:18
whowantstolivefo just i made it as my first text editor. when i do in console " sublime1 . " and it is opening all file folder as IDE13:18
arkiver left13:18
whowantstolivefo i try to configure with that command >>>>>>>>>>>> git config --global core.editor "sublime1 --wait" <<<<<<<<<<<<<<13:19
jast try to give it the full path to the editor13:19
juvenal joined13:19
jast guy: when you try it, what happens? timeout?13:20
roger_padactor joined13:20
guy Yes13:20
ssh: connect to host github.com port 22: Connection timed outfatal: The remote end hung up unexpectedly13:20
adamben joined13:20
jast iptables -L -v might help you see where the packets get stuck13:20
roger_padactor slightly confused by git lingo… I have a developer branch that is currently checkout… I'm using sourceTree app. when I want to merge dev into master I'm confused because it says merge master into developer which doesn't sound right.13:21
jast oh hey, you didn't include port 22 in the "outgoing" rules13:21
roger_padactor: you can only merge into the checked out branch13:22
roger_padactor ok thanks13:22
guy Thank you jast13:23
guy left13:24
jsoa joined13:25
tmcmahon joined13:25
prudnikov joined13:25
Exio left13:25
alunduil left13:27
sint joined13:27
KevinSjoberg left13:27
h0bbit left13:30
OOPMan joined13:30
thesisus joined13:30
dhruvasagar left13:31
dhruvasa1ar left13:31
LORDs_diakonos joined13:32
jxpx777 joined13:32
heroux joined13:33
amir joined13:33
kurkale6ka joined13:33
rzs left13:33
kurkale6ka Hi, when using git log can I grep for a word appearing inside the patches?13:34
juvenal left13:35
charon kukks: -G13:35
netzmonster joined13:35
chaw joined13:35
charon or -S if you know that the word was introduced or removed (-G is much slower than -S)13:36
kurkale6ka charon: cheers13:36
fphilipe joined13:37
Exio joined13:37
blackmat` left13:38
chaw hey.. good day/night.. I have a Q regarding using Git + SVN13:39
My coworker set up the initial Git Repo (hosted on github, private) from our internal SVN server13:39
chisler joined13:39
chaw so he set up the initial git repo from SVN.. and has all of that set up on his machine13:39
meaning if he dcommits, it will commit to SVN13:40
buibex joined13:40
chaw and if he rebases it will pull from SVN to the GH Repo (which he can then sync upstream to GitHub)13:40
I'm trying to set up the same for myself here.. and it seems I find like 1000 different ways of going about it.. and all of them seem messy13:40
tmcmahon left13:41
decotii joined13:41
xiangfu left13:42
chaw I did find one guide, which looks promising.. my only issue is that I am not setting this stuff up from scratch13:43
glennpratt joined13:43
pretty_function left13:43
juvenal joined13:45
chaw I guess I'll give it another try and report back with specific issues :)13:47
sajan joined13:47
giallu joined13:48
Dreamer3 joined13:49
subhojit777 left13:49
itatitat joined13:50
curvedmark left13:50
cheater joined13:50
itatitat left13:50
sgambino joined13:51
prudnikov left13:52
xiangfu joined13:52
cheater_ left13:53
freeed joined13:53
HumanSky joined13:54
lifelike left13:54
lifelike joined13:55
lifelike left13:56
Targen joined13:56
lifelike joined13:57
Hounddog left13:57
Hounddog joined13:57
lifelike left13:58
sixcorners joined13:58
prudnikov joined13:58
lifelike joined13:58
wolog left13:59
lifelike left13:59
normanrichards joined13:59
megha left13:59
lifelike joined13:59
arkiver joined14:00
georg left14:00
hoschi left14:00
megha joined14:01
lng left14:01
erichynds joined14:01
relipse left14:01
__BigO__ joined14:02
normanrichards left14:03
x4rlos joined14:04
AaronMT joined14:04
beautifulmind left14:04
fphilipe_ joined14:05
fphilipe_ left14:05
fphilipe left14:05
LORDs_diakonos left14:06
x4rlos Hi all. I am looking to set up a git repository for internal use for our software. I have checked online for methods of creating a repository, and it seems people use all different methods. Do i go along the git-daemon route? or just the git-init --bare route? Gitweb is mentioned a few times, but i think that the commandline is enough.14:06
RaceCondition joined14:06
fphilipe joined14:06
x4rlos Anyone got any practical advice?14:06
trungqtran joined14:06
wolog joined14:06
blackjack left14:07
thesisus left14:08
cheater jast: thanks, looking14:08
adhawkinsadhawkins-away14:09
Sebo left14:09
breakingthings joined14:09
Sebo joined14:09
xxc_michael left14:10
rideh joined14:11
lirt left14:11
paulweb515 x4rlos: how will the repo be shared by your team? Does everybody have a userid on the hosting server?14:11
netzmonster left14:12
lirt joined14:12
siriuz joined14:12
x4rlos I could certainly make it that way if this changes things.14:13
thatguycraig joined14:13
rcu joined14:13
alkino left14:14
cheater jast: hmm ok14:14
jast: i must be doing something wrong...14:14
paulweb515 x4rlos: you need to do something to allow your team to write to the shared repo.14:14
koderde joined14:14
scampbell joined14:14
yshh joined14:14
Zombie__ joined14:15
Targen left14:15
paulweb515 x4rlos: some projects use one of the git* daemons to do it. Our project uses SSH and userids to manage it, as well as Gerrit (a review system that manages the userids, and only gerrit writes to the repo)14:15
x4rlos paulweb515: then yes :-) Sorry, i interpreted the way you was asking like there was an option :-) Yes, i can create user account (with or without login ability)14:15
paulweb515 x4rlos: it just depends on which methods is 1) easiest to set up, 2) complies with whatever security guidelines your company or orginization supports and 3) meets your team's workflow14:16
scorphus left14:16
kevwil joined14:17
macabre joined14:17
Chappo joined14:17
milStaja left14:17
maleknet left14:18
x4rlos Gerrit i have come across before, and it is pretty good (from a user perspective). Security-wise isn't a large concern as it will be internal only (backup & version control) and workflow, it's mainly 1 programmer and a couple of people who will help out from time to time.14:20
yshh left14:20
Noldorin joined14:21
x4rlos So given this, i guess i'm looking at the git init --bare, setting up the accounts, and then integrating gerrit. That simple? :-)_14:21
Jackneill joined14:24
Jackneill left14:24
Jackneill joined14:24
mmitchell joined14:24
Targen joined14:24
dharrigan left14:25
paulweb515 x4rlos: that will give you a decent setup, especially for part time contributors14:26
dharrigan joined14:26
farciarz84 joined14:26
dharrigan left14:26
alunduil joined14:26
x4rlos cool. I shall have a look. What ports does git need open to operate? Given its over ssh 22 is obvious one, as is gerrit on 80 - but any others for uploading? Or all done over the ssh protocol?14:26
AnimeCYC joined14:27
farciarz84 hi, I'm new to git. I've done commit which was bad, how to restore to previous version?14:27
alkino joined14:27
dharrigan joined14:27
dharrigan left14:27
dharrigan joined14:27
csmrfx farciarz84: checkout the previous commit?14:28
yshh joined14:28
csmrfx http://stackoverflow.com/questions/927358/undo-last-git-commit14:28
farciarz84 csmrfx: what are the commits names?14:28
csmrfx farciarz84: in git, each commit is given a hash14:29
jast cheater: to be fair, it's pretty easy to get wrong14:29
jackyyll left14:29
csmrfx farciarz84: you can see the list with git log14:29
farciarz84 csmrfx: ok I got this hash,14:30
csmrfx farciarz84: You really want to go through git basics. Search google for: git visual reference14:30
dharrigan left14:30
lamarus left14:31
dharrigan joined14:31
jperry2 joined14:31
R1KRDO joined14:31
csmrfx or, youtube for introduction to git - or git power workflow14:32
farciarz84: ^14:32
FernandoBasso left14:32
farciarz84 ok so in my instance I need to git checkout hash, where hash one before last hash in log hist14:33
security joined14:33
farciarz84 csmrfx: am I right?14:34
megha left14:34
csmrfx http://stackoverflow.com/questions/2007662/rollback-to-an-old-commit-using-git14:34
tvw joined14:34
csmrfx farciarz84: there are several ways to your end...14:34
amigojapan joined14:34
NiteRain joined14:34
tvw left14:36
tvw joined14:36
thl0 joined14:37
thl0 left14:37
tvw left14:37
rabellamy joined14:37
thl0 joined14:37
RaceCondition left14:38
RaceCondition joined14:39
farciarz84 csmrfx: it works, you've helped me a lot thx14:39
danielfilho joined14:39
TeckniX joined14:39
rabellamy left14:40
tvw joined14:41
csmrfx farciarz84: gl!14:41
NiteRain left14:41
paulweb515 x4rlos: if you use SSH, then you just use the defaults. If you use Gerrit, it supports SSH and https on a higher port, ex, ours is configured: ssh://git.eclipse.org:29418/platform/eclipse.platform.ua. They'll discuss configuration and ports in the Gerrit docs, I'm sure14:42
dhruvasagar joined14:42
thl0 left14:43
dhruvasa1ar joined14:43
thl0 joined14:43
dsantiago left14:43
tvw left14:44
tvw joined14:44
ojacobson joined14:45
Guest86070 joined14:45
Guest86070 left14:46
dsantiago joined14:46
lb left14:47
adamben left14:47
yshh left14:47
x4rlos paulweb515: cool, thanks. You been a good help :-)14:47
jkeiper joined14:48
axl_ joined14:48
paulweb515 x4rlos: we're just digging ourselves out from our own transition to git now :-)14:48
x4rlos good luck :-)14:48
jkeiper hey folks. i merged my fork with upstream master but ended up with a bunch of baloney in a resulting pull request. i know rebasing is the answer, but can someone tell me how to rebase without the ridiculous pile of files in the previous merge? will they just go away?14:49
aberrant joined14:49
cmmagid joined14:49
TheJH joined14:49
HumanSky left14:50
Guest98299 joined14:51
swair joined14:51
swair left14:51
sint left14:52
hinst joined14:53
v0n joined14:54
thl0 left14:55
Ksg89 joined14:56
Chappo left14:57
breck left14:57
natechan joined14:57
soee left14:57
whowantstolivefo when i type " git rebase -i HEAD^^ " i get the following error " /usr/lib/git-core/git-rebase: 1: eval: sublime1: not found Could not execute editor " but i already typed " git config --global core.editor "sublime1 --wait" " it dosnt help i try to configure with that command >>>>>>>>>>>> git config --global core.editor "sublime1 --wait" <<<<<<<<<<<<<<14:57
breck joined14:57
jast whowantstolivefo: so you ignored my previous suggestion. good to know.14:57
marthinal left14:57
whowantstolivefo jast: i did how u say also14:58
marthinal joined14:58
whowantstolivefo jast: https://gist.github.com/whowantstolivefo/473143214:58
jakob left14:59
thehandler left14:59
jast are you sure that's the full path to the executable? it looks more like a directory15:00
asker joined15:00
banister`gone joined15:00
banister`gone left15:00
axl_ left15:00
banisterfiend joined15:00
banisterfiend hi what does: git cherry-pick A..B do?15:00
whowantstolivefo jast: http://www.technoreply.com/how-to-install-sublime-text-2-on-ubuntu-12-04-unity/ <<< i installed sublimetext2 as it says here15:01
banisterfiend it doesnt appear to be cherry-picking that rnage of commits15:01
gitinfo set mode: +v15:01
asker hey guys, im new to git and im trying to save my login credential15:01
git config --global credential.helper cache <-- done15:01
rastar1 left15:01
Guest98299 left15:01
asker it shows me that credential-cache is not a git command, what im doing wrong?15:02
JDuke128 joined15:02
m1sc left15:02
eletuchy_ left15:02
eletuchy joined15:03
normanrichards joined15:03
caitp joined15:03
grawity asker: if you're using msysgit, the "cache" helper hasn't been ported to Windows yet15:04
asker ya i do15:04
so i installed winstore and tried it with winstore15:05
Bass10 joined15:05
asker the same error15:05
grawity Where did you install the winstore helper?15:05
asker just run the exe and it asked me whether i want to install it, i submited15:05
txomon|home joined15:06
asker where does it install it in? where the setup exe is?15:06
srcerer_ joined15:06
lb_ joined15:07
jakob joined15:07
fr33domlover joined15:07
fr33domlover Question to GitHub users: TRUE or FALSE: for a free software activist/supporter/enthusiast, using github would count as hypocricy because the github software isn't free (unlike the gitorius software, for example)15:07
dsantiago left15:08
danielfilho left15:08
asker grawity: you lead me to the right trace, i had to install it in the git/cmd dir, now it works fine, ty15:08
axl_ joined15:08
srcerer left15:08
danielfilho joined15:08
m1sc joined15:08
ISF joined15:08
grawity fr33domlover: FileNotFound15:08
alunduil left15:08
Bombe FILE_NOT_FOUND, please.15:08
Also, the question totally sucks.15:09
fr33domlover I'm not criticizing15:09
just want to understand15:09
Bombe No, you don’t. Please go away.15:09
ciphergoth joined15:10
caitp anyone used sed to replace a git commit sha in a text file?15:10
ciphergoth A Google search for "git meld" finds lots of ways of using Git with GNU Meld, some of them pretty old. What's the current best way to do it? Is it this? https://github.com/wmanley/git-meld15:10
caitp i think [a-z0-9]\{40\} should be good enough, but something I'm doing is wrong .v.15:10
fr33domlover @Bombe someobe must have a better answer15:11
*someone15:11
Bombe caitp, what are you doing, what happens, what did you expect?15:11
fr33domlover, why? The question is outright bad.15:11
caitp I'm writing an update shell script for a 3rd party library in mozilla, which should update the README file to reference the correct commit id15:11
securitymegha15:12
caitp so, nothing happens because the search in my sed expression is not matched (which I think it should be)15:12
breck left15:12
prudnikov left15:12
jonshea left15:12
Bombe caitp, test your regular expression with grep -c, it helps you narrow down why it doesn’t work.15:13
ciphergoth Or, what's your favourite tool for viewing diffs under Unix in git?15:13
fr33domlover @Bombe the question "is it okay to kill people is the name of peace" has a lot to think about.. so it my question about github15:13
whowantstolivefo jast: i just went to my ~.gitconfig file and change sublimetext with the nano and it is work now15:13
Bombe fr33domlover, no. Your question mixes up totally different groups of people and then ignores the fact that essentially all hardware is non-free.15:14
caitp https://gist.github.com/caitp/3532692a8cbc3f705777 it looks like so, currently, but lets see15:14
oh right, I keep forgetting gist doesn't do GFM15:15
derp15:16
ciphergoth Wow, normally it's really easy to get opinions on IRC. It looks like it's easier here to get an opinion on whether one should kill for peace than how to diff with git :)15:16
ChanServ set mode: +o15:16
caitp git diff oldcommit newcomment <specific files if desired>?15:16
what are you trying to do?15:16
ciphergoth caitp: I was hoping to get a GUI diff. As I say, Google gives me lots of answers, but I was hoping to get opinions on what's currently preferred15:17
under Unix15:17
EugeneKay changed the topic to: Latest version: 1.8.1.2 | http://git-scm.com | Help with git and #git: http://jk.gs/git/ | git-chainsaw: just remember not to remove the branch you're on | Getting "Cannot send to channel" or unable to change nick? /msg gitinfo .voice15:17
BadDesign joined15:17
BadDesign left15:17
BadDesign joined15:17
EugeneKay set mode: +v15:17
EugeneKay set mode: -o15:17
caitp oh, not sure15:17
bugzilla and github are the diff uis i tend to use15:17
fr33domlover @Bombe non-free hardware don't justify anything15:17
mikecmpbll joined15:18
Bombe fr33domlover, but non-free software does? How so?15:18
ciphergoth caitp OK thanks15:18
acuzio joined15:18
shashin left15:18
thl0 joined15:18
fr33domlover @Bombe I didn't say it does, I don't use github. I'm neutral, just asking an interesting question15:18
HumanSky joined15:19
jcp_ joined15:19
jcp_ i did commit . without thinking and need to uncommit two specific files. is it just git checkout HEAD -- file15:20
prudnikov joined15:21
machty joined15:21
_ikke_ jcp_: commit . or add .?15:21
machty is there something fundamentally different between github/bitbucket where bitbucket doesn't automatically fetch remote branches for you?15:22
jcp_ commit .15:22
i added the specific files i wanted to commit then did a commit .15:22
_ikke_ jcp_: And what is it that you want to achieve?15:22
Bombe fr33domlover, that question is not interesting.15:22
jcp_ _ikke_: i want to uncommit two files that i didn't mean to commit15:23
joephilly machty, auto fetch remote branches? Why would it do that?15:23
rcu left15:23
machty joephilly: maybe i'm being a foolish clown but i feel like when i do a git fetch on a github repo i see all the diffferent little branches that have been created since my last fetch15:24
not the case for bitbucket, but i could be confused15:24
gitinfo set mode: +v15:24
protagoras271 @ciphergoth: use tig15:24
joephilly machty, are you doing "git fetch origin" or specifying a branch?15:24
todd_dsm joined15:25
shashin joined15:25
psoo left15:25
ciphergoth protagoras271, this tig? http://jonas.nitro.dk/tig/15:25
Sonderblade left15:25
banisterfiend left15:25
ciphergoth I was hoping for something more GUIish, like meld15:25
or kdiff315:25
protagoras271 @ciphergoth: thats the one, Its useful when you need something a bit more powerful than the native commands. If you are looking for things less powerful and moar pretty check out gitk, qgit, gitg, and git-gui15:27
I think git also ships with a native gui15:27
jast fr33domlover: I'll go with false15:27
alunduil joined15:28
ciphergoth protagoras271, I've got gitg, I quite like it, but the diff viewer isn't all that compared to something like GNU meld http://upload.wikimedia.org/wikipedia/commons/3/30/Meld_file1.png15:29
protagoras271 @ciphergoth: I do like how the sides flow into eachother... I don't think I have seen a git gui client that does that.15:30
_ikke_ jcp_: Easiest way is to do git reset --soft HEAD^, git reset -- file1 file2; git commit15:31
ciphergoth protagoras271, I don't think it's the job of the git client. Instead, git can defer to an external merge tool. So eg git-meld makes meld work with git https://github.com/wmanley/git-meld15:31
thl0 left15:31
ciphergoth But since the integration looks a bit complex, I wanted to check whether eg the latest versions of git make git-meld unnecessary15:31
axl_ left15:33
thl0 joined15:33
Mannequin left15:33
acuzio ladies.. - and gents : I have a branch that contains some changes and now i move back to the "master" ., when doing so , git asks me to specifically commit the change or risk losing it , why does this happen ? I thought you could simply go from one branch to the other and git would maintain "state"15:34
axl_ joined15:34
caitp if it's not staged, and you checkout something else, it can be lost15:34
you can stage it without commiting15:34
acuzio caitp: hmm , interesting - i am assuming i can also stash it then15:35
caitp stash is what i meant to say actually15:35
i haven't had my coffee yet ;p15:35
acuzio caitp: :-) - i haven;t seen this before - is this new ?15:35
caitp it was new at some point15:35
acuzio caitp: thanks - i am going to go and check what version that happened - i had an old version of git and don;t remember seeing this feature -15:36
skul joined15:36
dsantiago joined15:40
jcp_ _ikke_: thanks15:40
fr33domlover left15:40
Xeno joined15:41
hellopat joined15:41
hellopat left15:41
Goplat joined15:41
ciphergoth top tip: type "git mergetool"15:41
hellopat joined15:42
artagnon joined15:42
artagnon How do I configure a repository to always push to remote "mine", but merge from "origin" when pulling? This is a very common fork case.15:42
I can only see branch.<branchname>.remote, which is for both pushing and pulling.15:43
thl0 left15:44
shashin left15:44
joephilly artagnon, I think its a default setting15:44
BadDesign left15:45
PerlJam artagnon: Just always specify the remote when you push. "git push mine"15:45
jcp_ left15:45
chuckharmston joined15:45
artagnon Ugh. I can't believe such a simple configuration option doesn't exist.15:45
joephilly: Pardon?15:45
thiago joined15:46
lov artagnon: you can set the configuration for this, though I don't recall how offhand.15:46
(at least I think you can!)15:46
dhruvasa1ar left15:46
artagnon Could you look it up? I've been going through the manpage and trying to figure this out for sometime now.15:46
lov artagnon: I'm pretty new to git, so I'm not the person to ask :<15:47
jaequery joined15:47
_ikke_ artagnon: You can set a different fetch and push url for a remote15:47
EugeneKay artagnon - man git-config; branch.<name>.merge, in particular the last sentence.15:47
gitinfo artagnon: the git-config manpage is available at http://jk.gs/git-config.html15:47
mklappstuhl left15:48
PerlJam artagnon: git config remote.origin.pushurl <URL> # maybe that'll work for you?15:48
lirt left15:48
Noldorin left15:48
dhruvasagar left15:48
PerlJam artagnon: same remote, but pushes and pulls are to different repos15:48
EugeneKay That's another ay to do it15:48
jackyyll joined15:48
artagnon Ugh, pushurl is gross imo.15:49
EugeneKay But it can(will) give you problems when somebody else has pushed to your fork15:49
artagnon looks at .merge15:49
jonshea joined15:49
lirt joined15:49
keller joined15:49
TheJH left15:49
chisler left15:50
padhah joined15:50
bootstrapper joined15:51
dvide left15:51
breck joined15:51
artagnon If you wish to setup 'git pull' so that it merges into <name> from another branch in the local repository, you can point branch.<name>.merge to the desired branch, and use the special setting `.` (a period) for branch.<name>.remote.15:51
How is this relevant?15:51
I don't want to merge one branch into another local branch.15:52
Goles left15:52
padhah left15:52
padhah joined15:52
jkeiper left15:53
jkeiper joined15:53
EugeneKay You can abuse your fetchspec to do just that15:53
padhah left15:53
PaulCapestany joined15:53
jragon joined15:53
jragon left15:53
jragon joined15:53
jaequery left15:53
padhah joined15:54
artagnon I think pushurl is useful if I have a server that's configured to have one high-availability read-only anongit.* url, and another less-available committer-only url.15:54
EugeneKay Set remote.upstream.fetch to something like +refs/heads/*:refs/heads/upstream/*15:54
skorgon left15:54
EugeneKay Instead of refs/remotes/upstream/*15:54
jdunck joined15:54
cmmagid left15:54
EugeneKay Then your branch.foo.merge to upstream/foo ;-)15:54
cmmagid joined15:55
adamben joined15:55
EugeneKay It craps up your 'git branch' output a bit, but chances are you want to see the upstream branches anyway, so it really saves you using -a15:55
thl0 joined15:55
JohnBat26 left15:55
jmd left15:55
ErKa joined15:55
skorgon joined15:56
anish[1] joined15:56
artagnon ! This is a *really* bad hack.15:57
yshh joined15:57
artagnon The refs/remotes namespace is for remote branches, from which to merge. refs/heads is for local branches only.15:58
So, you're proposing creating a local branch called "upstream/<branchname>" and fetching into that.15:58
kojul left15:58
skyxxx left15:59
tvw left15:59
kojul joined15:59
artagnon And you're merging from that local branch.15:59
tvw joined15:59
buibex left15:59
shashin joined16:00
artagnon So far so good. Won't pushes go to "upstream/foo" (as opposed to "foo" on the remote?16:00
CodeShark left16:00
buibex joined16:00
artagnon ... and where in this entire process do I push to the remote "mine"?16:00
pluto joined16:01
juvenal left16:01
LuxuryMode joined16:01
artagnon EugeneKay: What you said doesn't make sense.16:01
bauruine left16:02
artagnon starts writing a remotes.<branchname>.remotepush configuration option16:02
polymar joined16:02
yshh left16:03
netiul left16:03
iSaleK left16:03
jsoa` joined16:03
normanrichards left16:03
iSaleK joined16:03
Noldorin joined16:03
apeiros_ left16:04
aldskf3 left16:04
kevwil left16:04
pluto hi all. i have a question about removing from bare git repo a 'unnamed danling history'. please look for example at http://pastebin.com/76CwMvCU16:04
infynyxx joined16:04
pluto i'd like to drop commits fedb87e, 7c604de in simple way16:04
Exio left16:05
cmmagid left16:05
todd_dsm left16:05
artagnon pluto: You could try `rebase -i -p` as a preliminary step.16:05
If it doesn't work, you'll have to rewind history, rewrite, and recreate the merge yourself.16:05
tvw left16:05
cheater jast: yeah :\16:06
thesisus joined16:06
jsoa left16:06
tvw joined16:06
cmmagid joined16:07
kevwil joined16:07
smirn0v left16:07
tvw left16:07
mikewintermute left16:07
fRAiLtY- left16:08
kojul left16:08
thl0 left16:08
tvw joined16:08
exoon left16:08
todd_dsm joined16:08
Exio joined16:08
picoguy left16:08
thl0 joined16:09
alunduil left16:09
tvw left16:09
pluto artagnon: 1. rebase doesnt work in bare repo. 2. i just want to only drop two dangling commits.16:09
TheJH joined16:09
dharrigan left16:09
tvw joined16:09
dharrigan joined16:09
dharrigan left16:09
dharrigan joined16:09
artagnon pluto: Attach a worktree to it!16:09
ojacobson_ joined16:10
jast if they're dangling, how is rebase going to make any difference?16:10
ojacobson left16:11
juvenal joined16:11
lirt left16:12
flijten left16:13
kevwil left16:13
Xeno left16:13
lirt joined16:13
jdunck left16:13
asker left16:14
hyperair joined16:14
padhah left16:14
ThomasLocke left16:15
chisler joined16:15
alunduil joined16:16
dreiss joined16:16
Saby joined16:16
Saby left16:16
Saby joined16:16
rath left16:16
millun left16:17
kevwil joined16:18
alunduil left16:18
thl0 left16:19
m0viefreak joined16:19
wasanzy left16:19
m0viefreak left16:20
m0viefreak joined16:20
alunduil joined16:20
cagedwisdom_ left16:20
rideh left16:21
lethjakman joined16:21
picoguy joined16:22
sirdancealot7 left16:22
dc5ala left16:22
kenperkins joined16:22
aberrant left16:22
bootstrapper left16:23
hatake joined16:23
aberrant joined16:23
cheater left16:23
samuel02 left16:23
Noldorin left16:24
infynyxx left16:24
main joined16:24
infynyxx joined16:25
thesisus left16:26
lun_ left16:27
gustavnils joined16:27
sluther joined16:29
beliveyourdream left16:29
todd_dsm left16:30
thiago left16:31
shashin left16:32
ckoch786 left16:32
rastar joined16:32
lun_ joined16:33
normanrichards joined16:33
ciphergoth left16:34
shashin joined16:35
Jackneill left16:35
pongeboll joined16:35
jaseemabid left16:35
pongeboll left16:35
sirdancealot7 joined16:36
berserkr joined16:36
rchavik left16:36
marthinal left16:37
tvw left16:38
NiteRain joined16:38
tvw joined16:38
bootstrapper joined16:39
kermit left16:39
sobhan joined16:40
kermit joined16:40
fission6 joined16:40
rideh joined16:41
tbosua left16:41
cbreak-work left16:41
Goplat left16:41
marthinal joined16:41
amccloud joined16:41
xiangfu left16:42
corimarisol left16:43
Sebo left16:43
ckoch786 joined16:45
lirt left16:46
sniffells joined16:46
lirt joined16:47
tPl0ch left16:47
lavaman joined16:48
kojul joined16:49
Targen left16:49
fibsifan joined16:49
hatake left16:49
svetlyak40wt left16:49
a-l-e left16:50
thl0 joined16:50
jaequery joined16:50
fibsifan left16:50
hyperair left16:50
Cromulent joined16:50
skyxxx joined16:52
clone1018 left16:53
mikef_ joined16:53
clone1018 joined16:53
LeMike left16:54
sixcorners left16:54
aartist joined16:55
cogitos joined16:55
skul left16:56
PaulCapestany left16:57
fobban joined16:57
sysadminAli joined16:58
tsdh left16:58
exoon joined16:58
thl0 left16:58
LeMike joined16:58
chrisgeorge joined16:58
BradLilley joined16:59
relipse joined16:59
samuel02 joined16:59
arkiver left17:00
samuel02 left17:00
dmarkham joined17:01
JDuke128 left17:01
Ksg89 left17:01
koskoz left17:01
cryosphere left17:02
lirt left17:02
RaceCondition left17:02
GeertV left17:03
arvind_khadri left17:03
lirt joined17:03
GeertV joined17:03
daniel_- joined17:04
chisler left17:04
gumnos joined17:04
AdrienBrault left17:04
jxpx777 left17:04
abcdefg_ joined17:05
gumnos Is there an easy way to mark a branch as "a merge should never come *from* this branch"? Perhaps some hook/script place?17:05
LeMike left17:05
BradLilley left17:05
chisler joined17:05
soypirate joined17:05
boombatower joined17:06
artagnon left17:07
sobhan left17:07
BradLilley joined17:07
GeertV left17:08
thesisus joined17:09
Fretta joined17:09
Hounddog left17:10
jaseemabid joined17:10
TZer0 joined17:10
pluto left17:10
kevwil left17:11
srcerer_srcerer17:11
vansonhk_ joined17:11
kevwil joined17:11
lresende joined17:11
gitinfo set mode: +v17:12
TZer0 Quick question... how do I refer to a variable in my git config within a config file or file in a project?17:12
jceb_ left17:12
memoryleak left17:12
tjbiddle joined17:13
spuz left17:13
hwrd|work joined17:13
ojacobson_ however you want to17:14
sitaram LOL!17:14
thl0 joined17:14
TZer0 ojacobson_: well, say I have a config value user.something in my config.17:14
And I'd like to refer to that value in .gitsubmodules17:15
jaequery left17:15
TZer0 oops, meant a key associated with a value17:15
samuel02 joined17:15
Cromulent left17:16
m0viefreak thats not possible17:16
why would you want to do that, anyways?17:16
smirn0v joined17:17
soypirate left17:17
TZer0 m0viefreak: we have a server where we have sperate users, but access to the same folder.17:17
fphilipe left17:17
mikecmpbll left17:18
mikewintermute joined17:18
m0viefreak ?17:18
aantix joined17:19
TZer0 so I'd like to be able to run git config --global user.whatever myusernameonthatserver17:19
soypirate joined17:19
TZer0 and then refer to user.whatever in the config files.17:19
m0viefreak why would you want to refer to that in config files17:19
the user.name / user.email is used for committing17:19
not for some server related stuff17:19
TZer0 This is for pulling a submodule.17:19
Sigma left17:19
TZer0 Look. It is simple17:20
ojacobson_ Give the submodule a single, stable canonical URL.17:20
TZer0 we're three people17:20
we are using a stable URL17:20
we have three different users on the server17:20
ojacobson_ Use URL rewriting, SSH host aliases, or whatever else you like to do per-user customization of the URL.17:20
TZer0 same path, whatever17:20
ojacobson_ (eg. to inject different usernames into it)17:20
TZer0 mh, true17:20
polymar left17:21
eli left17:22
angelsl left17:22
TZer0 ojacobson_: thanks, that works17:22
cryosphere joined17:24
bryanstedman joined17:24
tjbiddle_ joined17:25
thl0 left17:25
j416 joined17:27
tjbiddle left17:27
tjbiddle_tjbiddle17:27
goshawk joined17:27
cryosphere left17:28
juril joined17:29
infynyxx left17:29
buibex left17:29
kpreid left17:29
thl0 joined17:29
smirn0v left17:30
rakl joined17:30
Dreamer3 left17:30
jaequery joined17:31
jaequery left17:31
g0bl1n joined17:32
LimeBlast left17:33
maletor joined17:33
apeiros_ joined17:33
dreiss left17:33
kurkale6ka left17:34
swiety joined17:35
juvenal left17:35
mikef_ left17:35
asker joined17:35
JohnBat26 joined17:35
gitinfo set mode: +v17:35
bgerber left17:35
private joined17:36
asker hey guys, im wondering whether i can remove files from git when they r missing on my workspace17:36
privateGuest2506717:36
jkeiper left17:36
asker lets say i delete like 20 random files in my project, do i have to list them all in git rm??17:37
osse you can list them with git ls-files --deleted17:37
m0viefreak git update -u17:38
should work, too17:38
uhm17:38
git add -u17:38
rideh left17:38
mishok13 left17:39
asker yah that worked out, thank you ;)17:39
any downside of using git add -u instead of listing all files manually?17:39
beside you staging all deleted files?17:40
m0viefreak well, it would stage everything else, too (like other modified files)17:40
but usually this is what you want17:40
and its probably easier to add -u everything17:41
and then unstage 1 file you changed, if you dont want that17:41
STenyaK2 left17:41
asker oh ofc thats ok ;) ty17:41
mb one more thing, now i rollback to the lastest commit?17:41
without listing all commitS?17:42
trypwire joined17:42
joephilly head~1 ?17:42
nm, didnt read the whole thing17:42
m0viefreak git revert HEAD or git reset --hard HEAD~1 ?17:42
Noldorin joined17:42
m0viefreak or what do you mean?17:42
joephilly throw away changes?17:43
asker joephilly: yap17:43
trypwire hey guys. I have a pretty situational question: suppose I fork a repo, make a new branch, write some bug-fixin' code, and push that code up to my branch on my forked repo. I'd like to issue a pull request (github), but stuff has changed on the main repository… I would like to rebase, but I already pushed my code to my forked repo… what can I do?17:43
PaulCapestany joined17:43
pgokeeffe left17:43
juvenal joined17:44
trypwire ideally i would have done `git pull --rebase` before pushing any of my new commits. but I didn't :(17:44
RonScagz joined17:44
joephilly asker, want to keep staged changes or not?17:44
asker no17:44
everything to the last commit17:44
empty stage17:44
RonScagz left17:45
joephilly git reset --hard head <-- something like that?17:45
asker HEAD is poiting to the last commit?17:45
osse yes17:45
joephilly head is the tip of the branch I think?17:46
kermit left17:46
osse most of the time. It points to what will be the parent if you make a new one17:46
bgerber joined17:46
lirt left17:46
asker git reset --hard head worked out ty :D17:46
osse you could also probably do 'git checkout .' which may make more sense17:47
checkout the directory (again) instead of this weird "reset" monkey business17:47
warez joined17:47
ojacobson_ trypwire: if you're reasonably sure nobody has pulled your changes yet, you can rebase them and re-push them (git push --force to the same github remote and branch)17:47
asker doesnt work17:47
aberrant left17:47
asker git checkout head...17:47
ojacobson_ or leave it as-is17:47
m0viefreak git checkout -- .17:48
asker no17:48
eletuchy left17:48
osse asker: the dot was part of the command17:48
ThePeach left17:48
asker oh k ;)17:48
lirt joined17:48
asker yap thats worked out, nice, thank you guys17:48
trypwire ojacobson_: i'm positive nobody pulled my changes. but will rebasing now recognize the point at which I started making changes? If my commits are already pushed?17:48
asker make one more think: how to get the commit where head is poiting to17:49
lirt left17:49
osse asker: 'git show'17:49
asker: well, 'git show HEAD' but it defaults to HEAD if you don't specify a commit17:49
you can 'show' any commit, btw17:50
thiago joined17:50
asker aaaaight, rly nice, thanks (new to this version managment stuff, thats why kind of silly quastions)17:50
osse new git or to version control in general?17:50
lirt joined17:50
g0bl1n left17:50
m0viefreak if you want HEAD's sha1: git rev-parse HEAD17:50
asker version control17:50
never used it17:50
osse well, you picked the right tool to learn it with17:50
lirt left17:51
asker yap seems rly reseanable to use it17:51
osse (not really, because any other tool will frustrate you)17:51
sdboyer left17:51
asker and the doc on the git side with them grafics is rly nice to understand the whole idea of that17:51
lun_ left17:51
Liir joined17:51
Sigma joined17:52
Asenar left17:52
asker i have read about this rebasing stuff, what are you using more often, merge or rebase?17:52
trypwire ojacobson_: ah, yea it worked :) cheers17:52
Cromulent joined17:52
asker aaah i have something more i want to know that i didnt understand:17:53
Iszak left17:53
joephilly I rebase a lot17:53
asker tags and branches... why to use tags if you have branches?17:53
lun_ joined17:53
joephilly I hate automatic merge commits17:53
m0viefreak branches move, tags are fixed17:53
asker ok, so i will learn more about rebasing17:53
joephilly tag never moves17:53
asker thats the diff?17:53
m0viefreak yes17:53
cmn asker: branches is where you develop17:54
a tag is saying you're sticking a name to a particular version17:54
asker but you can go to a tag and dev there too17:54
cmn no, you can't17:54
cilly joined17:54
asker oh i see, if i go to a tag and dev, then commit -> tag wont showing on the lastest commit17:54
mikef_ joined17:55
jaequery joined17:55
joephilly tag doesn't automatically move to the next commit like a branch does17:55
cmn what do you mean showing?17:55
if you checkout a tag, you'll detach HEAD17:55
trypwire left17:55
asker if i checkout a tag17:55
the commit is loaded17:55
meghababa17:55
zoresvit left17:56
zoresvit joined17:56
alkino left17:56
joephilly tags are for marking a specific spot in the timeline17:56
that spot wont change17:56
ojacobson_ojacobson17:56
cmn loaded? when you do the checkout, that commit is checked out, yes17:57
but you detach HEAD17:57
asker ok, i will probably get it all better when i actually use it in real dev and not just in example projects17:57
detach HEAD? what does that mean?17:57
cmn !detach17:58
gitinfo [!detached] A detached HEAD(aka "no branch") occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach17:58
maxmanders left17:58
cheater joined17:58
rideh joined17:58
asker ok i think i got it ;)17:59
jlopez left17:59
asker i will just use git to get it better, theory is good but practise is better17:59
breakingthings left17:59
edoceo joined18:00
_br_ left18:01
babagia18:01
CodeShark joined18:01
asker thank you have a nice evening!18:01
asker left18:01
giababa18:01
aberrant joined18:02
lacrymology joined18:02
JohnBat26 left18:02
j416 left18:02
Nevik pokes osse18:03
osse je suis18:03
anderse left18:03
Nevik osse: check out my changes :>18:03
NiteRain left18:03
osse :O18:04
_br_ joined18:04
chaw left18:04
osse nice work18:04
JohnBat26 joined18:04
apeiros_ is `git symbolic-ref --short HEAD` the proper way to get the currently checked out branch?18:05
CodeShark left18:05
_br_ left18:06
alunduil left18:06
osse apeiros_: is it perl?18:06
apeiros_ osse: hu? this is plain shell18:06
_br_ joined18:06
_br_ left18:06
osse apeiros_: if it's interactive then the shortest way I know is 'git branch' and look for the line with the asterisk18:07
milki apeiros_: looks right18:07
osse Nevik: about bytes vs ints and so on. CPUus typically work fastest when working with word-sized data (e.g. ints)18:07
apeiros_ osse: ah, well, yes, I will use it to shell out18:08
_br_ joined18:08
edoceo I've pushed a branch to a repo that has a lot of noise in it, sauasge lets say and I need to clean it18:08
milki edoceo: !sausage18:08
apeiros_ and no, it's ruby. I wanted to use grit, but grit doesn't seem to have commands for `git checkout`.18:08
gitinfo edoceo: [!sausage_making] Some developers like to "hide the sausage making", transforming their commits before presenting them to the outside world. See http://sethrobertson.github.com/GitBestPractices/#sausage and !perfect18:08
osse apeiros_: then $(git symbolic-ref --short HEAD) is better :P18:08
shruggar left18:08
milki liked grit18:08
milki apeiros_: if you want python, go with dulwich18:08
edoceo milki: yes, I've read that numerous times and followed it but I still don't "get it"18:08
alunduil joined18:08
apeiros_ osse: not sure I understand - I used `` to delimit the command. it isn't meant to be part of the command18:09
edoceo When I make a new branch from my sploppy one - do I need to rebase?18:09
Nevik osse: i hope that the compiler does a bit of magic on that18:09
apeiros_ osse: or in what way is surrounding the command with $() better?18:09
osse Nevik: the compiler can't do anything about it.18:09
milki edoceo: depends on what you want to do18:09
Nevik osse: this is what the output currently looks like: http://pastie.org/private/eldhslpor9vf5tm7ym2lpa (there's a button on the top right that make the display wider)18:09
milki edoceo: is the new branch going to be the cleaned up one?18:09
osse apeiros_: is it meant for a script?18:09
alunduil left18:09
milki edoceo: while you keep the sloppy one just for an old reference?18:09
Lutt joined18:09
edoceo yes, I basically need to hide two comits where I did stupid things18:09
apeiros_ osse: yes. I will use it within a ruby script.18:10
edoceo Eventtaully we'll kill the slop18:10
Nevik osse: is there a specific part of the code you are referring to with that?18:10
alunduil joined18:10
milki edoceo: on the new branch then, you can use interactive rebase to clean the new branch up18:10
edoceo: and you shouldnt touch the sloppy branch anymore18:10
osse Nevik: not really. Afaik manipulating ints is just generally faster than manipulating data types smaller than int18:10
on any modern CPU18:11
edoceo Do I checkout the new from the old? That is `git checkout -b user/edoceo/12345-clean` while on user/edoceo/12345` ?18:11
osse apeiros_: ahh ok. Never mind me then.18:11
edoceo Then `git rebase master` interactively ?18:11
ozette left18:11
osse apeiros_: I thought it was a shell script18:11
whowantstolivef1 joined18:11
milki that would create a new branch using HEAD as starting point, so it will work18:11
Nevik osse: we can do comparison tests at some point18:11
apeiros_ osse: ok18:11
milki edoceo: no, just git rebase -i to mess with the current branch18:11
Nevik squeezing more efficiency out of that is only in our favour18:11
Zombie__ left18:12
swiety left18:12
edoceo Huh!? In user/edoceo/12345 I just say `git rebase -i`18:12
tvw left18:12
milki edoceo: no, git rebase -i in the branch you want to clean18:12
edoceo: o, and the number of commits you want to change18:12
lirt joined18:12
edoceo Ok, I'll repeat this to make sure I'm getting it right...18:13
milki edoceo: something like git rebase -i HEAD~5 to mess with the last 5 commits18:13
Lutt left18:13
thl0 left18:13
edoceo Oh, I need to mess with more, it took me like two weeks to get this right18:13
jxpx777 joined18:13
milki edoceo: maybe HEAD@{2 weeks ago} will work too18:13
apeiros_ is there a nicer way to extract a directory at a specific revision from a repository than this? https://gist.github.com/apeiros/473291318:13
thl0 joined18:13
danielfilho left18:13
edoceo So, I'm on the old branch user/edoceo/12345; and I'll `git checkout -b user/edoceo/12345-new` - step one18:14
Then on user/edoceo/12345-new is when I `git rebase -i HEAD@{2 weeks ago}` ?18:14
milki apeiros_: could also check it out to ta different working tree18:14
osse Nevik: http://stackoverflow.com/a/1148505/124968018:15
milki edoceo: ya, though i dont know if @{2 weeks ago} will work or is sufficient18:15
edoceo Could I say `master` with out being to dangerous?18:15
apeiros_ milki: oooh, thats now possible? won't that be a lot slower for cases where the changeset is small?18:15
milki no, that would be a different meaning18:15
edoceo I want it to clean merge with the current master at the end of this18:15
babilen left18:15
thl0_ joined18:15
milki apeiros_: its always been possible to checkout to a different worktree18:15
apeiros_: GIT_WORK_TREE stuff18:16
thl0 left18:16
satiricon left18:16
milki edoceo: no, a rebase with a different branch name means something different18:16
edoceo So, I should find the reference hash for when I split out user/edoceo/12345 - and rebase to that one?18:16
apeiros_ milki: so, `GIT_WORK_TREE /to/some/other/dir git checkout SOME_REVISION`, like that?18:16
d2dchat joined18:16
milki apeiros_: depends on your shell, bash probably needs an = there18:16
bgerber left18:17
apeiros_ ah right, yes18:17
cilly left18:17
apeiros_ got to try that18:17
thl0_ left18:17
thl0 joined18:17
caitp left18:17
Nevik osse: it's on the to-do list. but i have finals on monday and tuesday and just worked on it a bit today during study breaks18:18
edoceo !perfect18:18
gitinfo [!postproduction] So, you want to make your commit history look pretty before pushing? http://sethrobertson.github.com/GitPostProduction talks you through how to use 'rebase -i' to do this.18:18
balls2thewall joined18:18
jcromartie joined18:18
osse Nevik: So I can just revert the commit where you changed size_t to uint8_t? :D18:18
Nah18:18
eletuchy joined18:18
apeiros_ milki: funny, but it still changes the current working directory (deletes all files in the directory I check out)18:19
Noldorin left18:19
Nevik osse: you could, but i think that is one place where it doesnt matter so much, since we only use our own loops in the reporting/printing functions18:20
GarethAdams left18:20
Nevik osse: what happens often is the memcmp and the main loop, so that's where we gotta tweak18:20
m0viefreak left18:21
apeiros_ I did: `GIT_WORK_TREE=/foo git checkout MY_TAG -- dir/in/repo`, that deleted all files in dir/in/repo, and created dir/in/repo with the files of the specified revision in /foo. that's almost what I want. if I could get git to not modify the current workdir, that'd be awesome…18:21
osse Nevik: true18:21
Cromulent left18:21
thl0 left18:22
dreiss joined18:22
blackmat` joined18:22
zoresvit left18:22
balls2thewall left18:22
d2dchat left18:23
Desproges joined18:24
svetlyak40wt joined18:24
EugeneKay apeiros_ - have ou read !deploy ?18:24
gitinfo apeiros_: 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:24
apeiros_ EugeneKay: nice of you to draw conclusions of what I intend to do. No, I don't try to use git to deploy.18:25
kini left18:25
sirdancealot7 left18:25
kini joined18:25
EugeneKay I assumed no such thing. It just gives good info about GIT_WORK_TREE ;-)18:26
cmn it is extremely rare that such a question isn't about deployment18:26
tjbiddle left18:26
apeiros_ I use git to do what it was designed to do - get an older revision and compare it to a newer revision. it's serialized data. I try to load the data as efficiently as possible without affecting the working directory.18:26
EugeneKay Which is very close to doing a deployment, if yu think about it18:27
kini left18:27
cmn it's the same, just under a different name, really18:27
EugeneKay You may be interested in man git-archive for obtaining a copy of path/to/dir/ in a sane format18:27
gitinfo the git-archive manpage is available at http://jk.gs/git-archive.html18:27
osse apeiros_: if you want a complete copy of a partical commit then perhaps you want git archive18:27
EugeneKay (which is also covered under deployment)18:27
osse damn18:27
milki apeiros_: that i dont know o.O, certainly not a problem when its a bare repo18:27
cmn but if you want to compare, then diff seems like a much simpler way18:27
smirn0v joined18:28
cmn also, if you override the worktree, you also should override the gitdir18:28
milki o?18:28
eydaimon left18:28
lun_ left18:28
bauruine joined18:28
zortnac joined18:28
grizwako joined18:29
cmn they have odd interactions if you don't set them both18:29
smirn0v left18:29
tplaner joined18:29
bootstrapper left18:29
lirt left18:29
NiteRain joined18:30
rath joined18:30
jdunck joined18:30
lun_ joined18:31
Vert joined18:31
rabellamy_ joined18:32
kini joined18:32
__BigO__ left18:32
anish[1] left18:32
Vile left18:32
bootstrapper joined18:33
infynyxx joined18:33
TheComrade joined18:33
bgerber joined18:34
marthinal left18:34
marthinal joined18:34
padhah joined18:35
cworth` joined18:35
TheComrade left18:35
jaseemabid left18:36
tjbiddle joined18:36
Liir left18:37
erkules left18:37
yakko joined18:37
smirn0v joined18:37
erkules joined18:38
sirdancealot7 joined18:38
cworth left18:38
thl0 joined18:40
Archdude joined18:40
cheater left18:41
shesek joined18:41
__BigO__ joined18:41
shesek what could be causing that: http://pastie.org/6089048 ?18:41
bootstrapper left18:42
Archdude If me and a coworker are working on the same 'master' branch and he merges a file into master that I'm working on in my branch - what's the proper way to sync up?18:42
MistuhKurtz joined18:42
Chillance joined18:42
Archdude it's saying there are conflicts18:43
hatake joined18:43
osse merge your two branches18:43
apeiros_ osse, milki: sorry, had to answer the door, forgot to write here that I'm afk18:43
vansonhk_ left18:44
dreiss left18:44
gumnos I tried asking earlier but didn't get a response. Is there an easy way to mark a branch as "a merge should never come *from* this branch"? Perhaps some hook/script place? I want to prevent merging changes from a customer-specific branch (yeah, I know it's somewhat bad practice to do that, but this is a whatever-pays-the-bills case) back into other dev/master branches.18:44
Archdude osse: merge my work branch into master? or can I merge master into mine for now?18:44
apeiros_ osse, milki: the point is, I only need one directory of the repo. i.e. the repo might be rather big. the serialized data chunk is rather small. so if I can somehow only check out the specific directory at that revision, that'd be awesome.18:45
I'm more worried about not affecting the working directory, though18:45
i.e., I want to change revision, load data, restore working dir18:46
smirn0v left18:46
apeiros_ but that process already requires a clean working dir, which sucks :-/18:46
osse Archdude: yuo can do both if you want. What makes sense is up to you. Are you done with whatever task you're working on in your branch? If yes you can merge into master and be done. If no it's probably a good idea to merge from master into yours so that you're "up-to-date" on what happens in master.18:46
cworth` left18:46
Archdude osse: thanks18:46
laurav left18:47
apeiros_ EugeneKay: ok @ good info. sorry if I got jumpy18:47
osse If it's something you're gonna be working on for a longer time I recommend you merge from master to your branch from time to time18:47
exoon left18:47
apeiros_ EugeneKay: git-archive without the archive bit would be awesome… :-S18:48
osse apeiros_: git archive | tar -xf - :)18:48
daniel_-_ joined18:48
HG` joined18:48
apeiros_ osse: that hurts me physically wrt efficiency :)18:48
osse why?18:48
it's a plain tar. there is no compression involved18:49
apeiros_ taring the whole thing just to untar it again?18:49
papegaaij left18:49
apeiros_ ah, true, at least it's not compressed18:49
osse a plain tar file is basically just all files concatenated18:49
there is very little metadata18:49
daniel_- left18:49
osse as far as I know18:49
shwaiil left18:49
osse To quote Wikipedia on the issue: "Tar is modified pitch produced primarily from the wood and roots of pine by destructive distillation under pyrolysis."18:50
hmm18:50
adamben left18:50
robbyoconnor left18:50
robotmay left18:51
mikef_ left18:51
daniel_-_ left18:52
svetlyak40wt left18:53
Liir joined18:53
EugeneKay I think you may have the wrong page18:53
osse :P18:53
apineda_ joined18:54
babilen joined18:54
apok joined18:54
osse Lookinigg at the *correct* article, it looks like there is a 512 byte header for each file18:54
Looking18:54
I say "correct", which is not to say that the other article is wrong :P18:54
Sebo joined18:55
apineda left18:55
jjore joined18:55
sirdancealot7 left18:56
suy left18:56
mikewintermute left18:56
MistuhKurtz hey guys I have a little something I'm confused about. "git status" is showing that 1 clone of a repo is ahead of origin/master by 14 commits. Another clone is showing it's ahead by 2 commits. But git log seems to show that they all have the same commits18:57
tewecske joined18:57
apeiros_ osse, EugeneKay: ok, the following seems to be relatively efficient and leave the working directory unaffected:18:57
git archive --format=tar SOME_REVISION DIR_IN_REPO | tar -xf EXTERNAL_DIR18:57
amccloud left18:57
shashin left18:57
apeiros_ thanks for the help :)18:57
MistuhKurtz how can I determine what's going on here?18:58
canton7 MistuhKurtz, with the same commit hashes?18:58
osse MistuhKurtz: git log starts listing the current branch. Run git log --all or git log origin/master to see the rest18:58
drizzd joined18:58
jmzc joined18:58
jmzc hi18:58
gitinfo jmzc: 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.18:58
osse apeiros_: you can leave out --format=tar if you want to :)18:58
apeiros_ I prefer to be explicit18:59
not that some change in default renders it not working18:59
EugeneKay It's a good policy. Defaults should never be trusted18:59
osse apeiros_: and do you mean tar -C EXTERNAL_DIR -xf - ?18:59
jmzc i'm newbie with git and I'd like to know what is the difference between master and origin/master branch , when is printed in logs18:59
apeiros_ `-f -` is actually a default too18:59
prudnikov left18:59
MistuhKurtz osse, they're both in master. canton7 can I just read the last 4 digits to compare or is there a tool I can use to definitively compare the two?18:59
apeiros_ I think tar's defaults are stable, though :)18:59
EugeneKay jmzc - master is your local branch; origin/master is your copy of the master branch as it exists on the remote named origin.18:59
rabellamy joined19:00
osse apeiros_: sure, but EXTERNAL_DIR comes right after -f :O19:00
apeiros_ osse: no, I have no -f in there?19:00
thl0 left19:00
apeiros_ ah, whoops19:00
copy & paste mistake19:00
smirn0v joined19:00
thl0 joined19:00
apeiros_ git archive --format=tar SOME_REVISION DIR_IN_REPO | tar -xC EXTERNAL_DIR19:00
canton7 MistuhKurtz, last few are fine19:00
osse Woohoo!19:00
zortnac left19:00
jmzc EugeneKay: ok, thanks ...but they don't have to store the same contents, right ?19:01
MistuhKurtz yep they're the same canton719:01
pantsman joined19:01
thl0 left19:02
osse MistuhKurtz: you might want to give git log --all -decorate --oneline --graph a spin. It gives a better overview of what is going on19:02
jmzc EugeneKay: my doubt is cause of when i make a 'git pull' , the next log is printed : "master -> origin/master"19:02
thl0 joined19:02
MistuhKurtz okay git log origin/master is showing differences now19:02
mikef_ joined19:02
jmzc EugeneKay: but i think that it should be in the reverse way19:02
netzmonster joined19:03
tewecske left19:03
amccloud joined19:04
canton7 jmzc, git pull first does a fetch. this stores the remote's 'master' branch in 'origin/master'19:04
so the 'master' in that output is the remote's master, not your local one19:04
jmzc canton7: so, remote brach is 'master' ? EugeneKay told me that " master is your local branch; origin/master is your copy of the master branch as it exists on the remote named origin."ç19:05
canton7 he's right19:05
normanrichards left19:05
rondon joined19:05
rabellamy left19:05
canton7 a repo exists on the remote machine, known here as 'origin', which has a master branch19:06
MistuhKurtz osse, so one of them shows a commit with (origin/master, origin/HEAD) in front of the message, and the other doesn't19:06
canton7 origin/master is a local record of the state of that remote branch. so when you 'git fetch', you update origin/master to match the master branch in the remote repo19:06
francisfish joined19:06
osse MistuhKurtz: and another commit later on shows (master, HEAD) right?19:06
kogent joined19:06
canton7 and then you've got a local branch 'master'19:07
MistuhKurtz (HEAD, master), yep19:07
canton7 MistuhKurtz, 'origin/HEAD' has very little meaning19:07
it's the default branch that's checked out when you clone a repo19:07
prudnikov joined19:07
canton7 (most of the time)19:07
osse MistuhKurtz: if you do a plain 'git log' it will show the commit log from HEAD and backwards19:07
MistuhKurtz: which explains why you didn't see the commits you where looking for19:07
were19:08
maxmanders joined19:09
MistuhKurtz sorry I'm not fully following the implications19:09
jmzc canton7: what a mess :-P19:09
canton7 jmzc, it makes an awful lot of sense :P19:09
sirdancealot7 joined19:09
canton7 every time you want to compare your local master and the remote's master, you probably don't want to go fetching data from the remote repo19:10
osse MistuhKurtz: techincally the master branch you have on your computer and the master branch on wherever origin is are different.19:10
jmzc canton7: you said " git pull first does a fetch. this stores the remote's 'master' branch in 'origin/master'" , but isnt origin the remote repo?19:10
osse MistuhKurtz: the implication is that the master branch at origin is ahead of yours. Work has been done that you have not incorporated into your own master branch (yet)19:11
svetlyak40wt joined19:11
canton7 jmzc, origin is the name you've given to the remote repo, yes. 'git pull' is shorthand for 'git fetch && git merge' (with appropriate flags and arguments)19:11
Plouj- joined19:11
MistuhKurtz even though it says the two repos are ahead of origin/master osse ?19:11
EugeneKay jmzc - your repo keeps a local copy of the branches as they exist on the remote repo; this is so you can do operations "offline"19:11
howlymowly left19:11
iSaleK left19:12
anderse joined19:12
EugeneKay jmzc - these "remote-tracking" branches are stored in your local repo, and can be viewed with 'git branch -a'19:12
JaredMiller joined19:12
osse MistuhKurtz: I lost oversight. What did the git status message say again?19:12
Plouj- left19:12
Plouj joined19:12
EugeneKay jmzc - when you do a 'git fetch, the status of the remote-tracking branches19:12
Plouj hi19:12
does anyone know what's the format of a remote git notes ref given a remote called 'origin' and a notes namespace called 'mine'? Eg: what's the remote equivalent or refs/notes/mine ?19:12
EugeneKay is synchronized19:12
thesisus left19:12
JaredMiller left19:12
dreiss joined19:12
MistuhKurtz osse, the one with the (origin/master, origin/HEAD) in front of the commit says it's ahead of origin/master by 2 commits19:12
kermit joined19:12
MistuhKurtz the other one says it's ahead by 14 commits19:12
grawity Plouj: I don't think git fetches refs/notes/* by default19:13
canton7 jmzc, you've grocked that 'origin/master' is the name of a local branch? if you look in .git/refs/remotes you'll see it19:13
thl0 left19:13
grawity Plouj: See remote.origin.fetch in .git/config19:13
Plouj grawity: What if I've already fetched the notes refs?19:13
osse MistuhKurtz: I'm not following. Can you pastebin the output of git status and git log --all --etc ?19:13
MistuhKurtz ya 1 sec19:13
AnimeCYC left19:13
canton7 Plouj, where did you fetch it to?19:13
jmzc EugeneKay, canton7: ok, thanks19:14
grawity Plouj: If you don't specify a local ref, then FETCH_HEAD is used19:14
canton7 jmzc, !book offers from good reading19:14
gitinfo jmzc: There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable19:14
Plouj I just did 'git fetch origin refs/notes/mine:refs/notes/mine'19:14
scorphus joined19:14
grawity Plouj: well19:14
canton7 particularly cs and bottomup19:14
ojacobson Then they're in refs/notes/mine19:14
grawity Plouj: then it fetched refs/notes/mine to refs/notes/mine19:14
opus joined19:14
mikef_ left19:14
Nevik left19:14
Plouj oh, then there's no separate 'origin' ref, like origin/branch vs branch?19:14
canton7 you could fetch to origin/refs/notes/mine19:15
Plouj yeah19:15
grawity Plouj: you explicitly specified the target ref19:15
osse MistuhKurtz: oh you're dealing with two different clones? That makes more sense. Run 'git fetch' in both and now origin/master should point at the same commit in both19:15
canton7 your 'normal' fetchspecs do that. e.g. remote.origin.fetch = +refs/heads/*:refs/remotes/origin/*19:15
j416 joined19:15
Plouj grawity: Ok, I see what happened.19:15
grawity Plouj: refs/remotes/origin/branch is created only becau—————what canton7 said19:15
CodeShark joined19:15
archonix joined19:16
rondon left19:16
MistuhKurtz osse, http://pastebin.com/krxcx8gs19:16
Plouj would something like +refs/notes/*:refs/remotes/origin/notes/* work for fetching notes?19:16
canton7 MistuhKurtz, go into staging, 'git fetch'19:16
MistuhKurtz no args?19:16
zerba left19:17
canton7 'git fetch origin' if you want19:17
n3m joined19:17
ojacobson Plouj: from git-fetch's point of view, notes are no different from any other constellation of objects19:17
canton7 can't remember what the default behaviour of 'git fetch' is if there's more than one remote...19:17
ojacobson the name transformations and whatnot are as given in man git-fetch19:17
gitinfo the git-fetch manpage is available at http://jk.gs/git-fetch.html19:17
osse MistuhKurtz: perhaps the staging repo doesn't have a remote configured.19:17
MistuhKurtz remotes are configured correctly19:17
canton7 Plouj, sure19:17
jcromartie left19:17
MistuhKurtz git remote -v matches19:17
thesisus joined19:17
canton7 aha19:17
R1KRDO left19:17
breakingthings joined19:17
canton7 MistuhKurtz, 'git config remote.origin.fetch' in both?19:18
R1KRDO joined19:18
Plouj thanks!19:18
for the sanity checks :)19:18
canton7 it's all so simple when you know it :P19:18
MistuhKurtz canton7, they both match19:18
+refs/heads/*:refs/remotes/origin/*19:19
francisfish left19:19
jcromartie joined19:19
MistuhKurtz after running 'git fetch' in staging I don't see the "ahead of origin by x commits" message anymore19:19
Plouj canton7: indeed19:19
canton7 MistuhKurtz, cool. so the problem is that in staging origin/master is way behind, or that it doesn't exist at all?19:19
osse MistuhKurtz: git fetch apparently hasn't been run in staging for a long time, which means the information about the status of origin/master there is outdated19:20
MistuhKurtz it's on github and their front-end log looks like it matches too19:20
WinstonSmith left19:21
MistuhKurtz yep same last commit with the same hash19:21
gain left19:21
khmarbaise joined19:22
osse run git fetch often. it can't hurt19:23
MistuhKurtz okay, and that's run along with 'pull' too? should I just stick to fetch -> merge instead of 'pull' so I can make sure everything's alright beforehand?19:23
osse MistuhKurtz: stick to fetch and merge unless you *know* what the result of the merge will be beforehand19:24
grawity would `git pull --ff-only` be safe in this case?19:25
osse MistuhKurtz: if you make a "pull mistake" it's fixable, so in practice it's no big deal. I think it's easier to not lose track of what's going on if you fetch first though19:25
especially because git status will tell you19:25
MistuhKurtz osse, thanks for the advice. I think I agree it's best. what's beautiful about git is how confident I can (usually) be19:26
so anything that helps improve confidence is good practice in my book19:26
h0bbit joined19:26
osse grawity: yeah I think so if what you were going to do was to fast-forward if possible anyway.19:27
MistuhKurtz osse, so I can safely go ahead and do a 'git fetch' on my production as well?19:27
WinstonSmith joined19:27
osse MistuhKurtz: git fetch only updates the <remote>/* branches. So yes.19:27
MistuhKurtz: what it casically does is update the information about what the status is at the remote19:28
daniel_- joined19:28
grawity hmm19:29
canton7 (unless you configured your repo as a mirror, or fiddled with the fetchspecs)19:29
MistuhKurtz alright, git status says working dir is clean19:29
I'll take it everything is settled?19:29
marc_kdab_ left19:29
MistuhKurtz one last git log..19:30
osse It can say that even if master and origin/master are different.19:30
But if it *ONLY* says that then master and origin/master are probably equal19:30
rath left19:30
MistuhKurtz yep everything matches up19:30
both clones say this for the last commit:19:30
Chinorro left19:30
MistuhKurtz * 5c8a332 (HEAD, origin/master, origin/HEAD, master) Changed Media Coverage design to reflect new specs19:31
what does that all mean?19:31
canton7 the currently-checkout-out branch, the local copy of the remote master branch, the default branch on origin, and the local master all point to the same commit19:31
(in that order)19:31
skyxxx left19:31
thatguycraig left19:32
Nevik joined19:32
shashin joined19:32
wlonk joined19:32
hobodave joined19:33
MistuhKurtz HEAD represents the state at the last commit of the currently checked out branch, right?19:34
osse Also the media coverage design has been chagned19:34
MistuhKurtz I thought origin/master was the default branch on origin canton7 ?19:34
osse MistuhKurtz: not last commit; any commit19:34
canton7 MistuhKurtz, origin/master is the local record of the 'master' branch on origin19:35
origin/HEAD is the branch that's checked out by default when you clone the remote repo19:35
HEAD is the commit that's currently checked out. so if you 'git commit', the commit pointed ot by HEAD will be the new commit's parent19:35
well, HEAD is strictly the branch which is currently checked out. cat .git/HEAD and you'll see19:37
rabellamy joined19:37
spyro left19:37
canton7 similarly cat .git/refs/heads/master while you're at it ;)19:37
MistuhKurtz trying to wrap my head around origin/HEAD still19:37
canton7 don't worry about it19:37
spyro joined19:37
canton7 all git repos have a HEAD. when the repo has a working tree, i.e. it's not bare, HEAD has a lot of meaning19:38
osse MistuhKurtz: if you make a new clone, that commit will be checked out in the new clone. That's about all it means.19:38
fphilipe joined19:38
canton7 in a bare repo, it doesn't mean much, since there's no working tree. it just indicates to git which commit should be checked out when you clone the repo19:38
s/which commit/which branch19:38
Cromulent joined19:38
canton7 (although 'which commit' is *strictly* more accurate I guess....)19:38
berserkr left19:38
MistuhKurtz haha19:38
bootstrapper joined19:39
osse canton7: "well, HEAD is strictly the branch which is currently checked out" No I think you were right the first time that HEAD is which commit. Hence detached heads19:39
rastar left19:39
canton7 side point: if 'master' and 'develop' point to the same commit, and HEAD points to 'develop', you might get 'master' checked out when you clone the repo19:39
due to a limitation in the git protocol19:39
melee joined19:39
MistuhKurtz so origin/HEAD just means that what's currently checked out matches the HEAD of origin?19:40
canton7 that's what I was referring to with by 'strictly' comment19:40
thl0 joined19:40
canton7 MistuhKurtz, origin/HEAD is a pointer to a commit, just like any branch19:40
it's shown up in 'git log' because you passed --all19:40
MistuhKurtz it's a pointer to a commit on the remote origin?19:41
eletuchy left19:41
eletuchy joined19:41
cmmagid left19:41
mikef_ joined19:41
cmmagid joined19:41
n3m left19:41
osse MistuhKurtz: "so origin/HEAD just means that what's currently checked out matches the HEAD of origin?" No. If you check something else out, 'origin/HEAD' will still appear next to the same commit.19:41
cmmagid left19:42
cmmagid_ joined19:42
rabellamy_ left19:43
lun_ left19:43
dreiss left19:44
lun_ joined19:44
dreiss joined19:44
breck left19:45
rabellamy left19:45
shruggar joined19:45
amccloud left19:45
rabellamy joined19:45
NiteRain left19:46
MistuhKurtz oh whoops osse sorry that was a bad question19:46
adhawkins-awayadhawkins19:46
lun_ left19:46
lun_ joined19:46
netzmonster left19:46
osse Not really. The answer just happened to be no :)19:46
MistuhKurtz haha19:47
so origin/HEAD is the default branch on origin. What's the 'default' branch?19:47
_br_ left19:47
canton7 the branch which is checked out by default when you clone the repo19:47
(yet again...)19:47
bootstrapper left19:48
MistuhKurtz Think I got it19:48
sorry for the repetitiveness, thanks for beating it into my brain canton7 :)19:48
and you too osse, really appreciate the help.19:48
canton7 heh, no worries :)19:48
marc_kdab_ joined19:48
dogarrhea left19:48
osse MistuhKurtz: make a commit on master. Then check out some old commit at random, then run the log command again. Now you'll see these labels at different commits19:49
_br_ joined19:49
MistuhKurtz ahhhhhhhhh19:50
AHHHHHHH19:50
osse :O:O:O:O19:50
MistuhKurtz :D19:50
hinst left19:51
MistuhKurtz my new coworker and I are diving into git together and are thoroughly enjoying it. before hiring him as my new team member I had pretty much just developed alone. we're having a blast. I look forward to being able to be as helpful as you two someday!19:51
osse did you just have a a-ha moment?19:52
MistuhKurtz oh yes19:52
osse do you need to... clean up?19:52
MistuhKurtz hahaha19:52
kevwil left19:52
thl0 left19:52
sq-one joined19:52
howlymowly joined19:53
MistuhKurtz yeah but only in my brain. I'll get the janitor up there right on it19:53
thelodger joined19:53
_br_ left19:53
d2dchat joined19:54
_br_ joined19:54
_br_ left19:54
cbreak !cs19:54
gitinfo "Git for Computer Scientists" is a quick introduction to git internals for people who are not scared by phrases like Directed Acyclic Graph. http://eagain.net/articles/git-for-computer-scientists/ See also !concepts !bottomup19:54
svetlyak40wt left19:55
juril left19:56
francisfish joined19:57
rabellamy left19:57
scorphus left19:58
_br_ joined19:58
looper left19:58
rabellamy joined19:58
rabellamy left19:58
looper joined20:00
fission6 git pull, will pull and merge respective branches correct20:01
MistuhKurtz yep20:01
fetch & merge, rather20:01
kevwil joined20:02
scorphus joined20:02
jkremser left20:02
odwalla joined20:02
juril joined20:02
d2dchat left20:04
fission6 if i have a local branch which i have pushed upstream but doesn't seem to track it how od i set that up MistuhKurtz20:04
paulweb515 fission6: will fetch from the remote, and then merge the checked out branch only20:04
fission6 i get this when i do git pull http://dpaste.org/SFX7I/20:04
paulweb515 fission6: use a git push -u20:04
philips_ left20:04
canton7 fission6, or git branch --set-upstream20:05
Mayq joined20:05
canton7 or --set-upstream-to in newer git20:05
paulweb515 fission6: i.e. git push -u origin myBranch20:05
danielfilho joined20:05
fission6 paulweb515: i did that and get To prevent you from losing history, non-fast-forward updates were rejected20:05
paulweb515 fission6: you've made changes to your local branch and someone has pushed updates to the remote branch?20:06
canton7 and the message goes on to tell you waht to do?20:06
fission6 ok i think i got it20:07
so how do i update and track all remote branches20:07
svetlyak40wt joined20:07
maletor left20:07
paulweb515 fission6: git fetch && git merge --rebase origin/myBranch; Then you can push and -u20:07
Milossh left20:07
fission6 how do i pull down and track all remote branches20:08
PerlJam fission6: "git fetch" will get them all.20:08
exoon joined20:08
fission6 i seem them listed with git branch -a20:08
but just the remote refs20:08
PerlJam fission6: tracking them all locally is weird unless you're going to contribute back to every one of them on a regular basis.20:09
paulweb515 fission6: you would only track them if you checked out a local branch of the same name20:09
fission6 well basically i have a repo on unfuddle, i want to move it over to github, so i want to have the entire repo then push it to github right20:09
opus left20:09
d2dchat joined20:10
AnimeCYC joined20:10
grawity hmm, I wonder if you could push github refs/remotes/origin/*:refs/heads/*20:10
Chillance left20:10
philips_ joined20:10
philips_ left20:10
Chillance joined20:10
d2dchat left20:10
PerlJam fission6: you could "git clone --mirror" and then switch remotes and "git push --all" (or something like that)20:11
jsoa` left20:11
fission6 hmmm20:12
avjpl joined20:12
avjpl left20:12
grawity I just tested my `git push` line, and yes, it works20:14
WorkeD joined20:15
MrSaku joined20:16
shruggar left20:16
sdboyer joined20:16
grawity I wish I remembered it last week :/20:16
MrSaku How to repeat holocaust, fast20:16
Whats difference between nigger and barrel of shit? its the barrel hhaahaha@!20:16
sdboyer left20:16
grizwako left20:17
amigojapan left20:17
MrSaku left20:17
esreskkesketske joined20:17
LeMike joined20:17
philips_ joined20:18
machty left20:18
osse What a nice man20:18
etcetera joined20:18
Mayq left20:18
JohnBat26 left20:18
canton7 he jumped into a load of other channels too. ah well, I'll ban him next time20:18
sysadminAli left20:18
jbroome joined20:19
ChanServ set mode: +o20:19
osse I've seen worse20:19
jbroome left20:19
osse I've seen thing you people wouldn't believe20:19
Attack ships on fire off the shoulder of Orion20:20
sdboyer joined20:20
cbreak I've seen blade runner too.20:20
osse Many people have, I suppose20:20
lahwran joined20:20
cbreak hmm... I forgot how to ban people...20:21
ah well20:21
cbreak set mode: -o20:21
sysadminAli joined20:21
bootstrapper joined20:21
osse I feel safer now20:22
normanrichards joined20:22
cmmagid joined20:22
machty joined20:23
cmmagid left20:23
cmmagid joined20:24
cmmagid left20:24
cmmagid_ left20:24
cmmagid joined20:24
hyperair joined20:24
robbyoconnor joined20:25
Cromulent left20:26
razieliyo joined20:26
razieliyo #github20:26
huh20:26
fail20:26
lol20:26
jcromartie left20:26
beepbeep_ joined20:27
scorphus left20:27
opus joined20:27
beepbeep_ .random20:27
gitinfo Using rebase -i a lot to shape history? Look at rebase.autosquash and git commit --fixup. [11]20:27
beepbeep_ .random20:28
gitinfo <cbreak> password generator: <cbreak> dd if=/dev/random bs=512 count=8 | openssl base64 [2]20:28
razieliyo I want to keep backup of my config files, and I've started a git repo in ~/, just to push the config files/folders I want, do you think this may be a problem in the future?20:28
Natureshadow left20:29
_ikke_ look at !etc20:29
gitinfo [!fetchfour] Never use the four-word version of git-fetch or git-pull (e.g. git fetch <remote> <refspec>). It always ends in tears. Yes, if you understand the implications of FETCH_HEAD it can technically be done, but really it is easier to just fetch the whole remote (or perhaps edit the fetchspec if you never want other bits). If you must, see !fetch4why20:29
_ikke_ arg20:29
!etckeeper20:29
gitinfo etckeeper is a collection of tools to let /etc be stored in a git, mercurial, darcs, or bzr repository. It hooks into various package managers. http://kitenet.net/~joey/code/etckeeper/20:29
Natureshadow joined20:29
_ikke_ razieliyo: sorry, not really relevant20:29
razieliyo: Although git can be used for it, it's not really an ideal solution20:30
AdrienBrault joined20:30
\etc\ left20:31
infynyxx left20:33
grawity cbreak: openssl rand 100 -base6420:34
asaf left20:35
sysadminAli left20:35
bgerber left20:35
tsdh joined20:36
beepbeep_ .random20:36
gitinfo Things aren't working or working badly? Blaming Java, PHP or Rails is a good default. [20]20:36
beepbeep_ .random20:37
gitinfo DOUGH -- 200 g saw dust, 800 g flour, 590 millichopins water, 40 g yeast, 1 pinch of salt, 1 tbsp olive oil, 1 tbsp camphor. SAUCE -- 1 can minced tomatoes, 118 millichopins petroleum ether, 50 g laburnum (dried), 50 g repulsion gel, salt/pepper. TOPPINGS -- fish-shaped sediment, 100 g zombie flesh, 20 g rhubarb, 200 g cheese. Bake at 130 °Rø for 103.97 Sothic nanocycles. Enjoy! [1]20:37
beepbeep_ .random20:37
gitinfo Things aren't working or working badly? Blaming Java, PHP or Rails is a good default. [20]20:37
alunduil left20:39
sysadminAli joined20:41
aberrant left20:42
Milossh joined20:42
shruggar joined20:42
whowantstolivef1 left20:43
n3m joined20:43
cbreak beepbeep_: you could try to whisper to gitinfo20:44
_ikke_ But then we wouldn't share the fun20:44
WorkeD left20:44
Milossh left20:46
wlonk left20:46
rabellamy joined20:46
na3r joined20:47
bgerber joined20:48
jakemp joined20:48
Milossh joined20:49
Milossh left20:49
jakemp is there an email frontend for git?20:49
seanh_ joined20:50
Milossh joined20:50
fphilipe left20:50
Milossh left20:50
shruggar left20:50
Shusshu joined20:50
jakemp so repos are made for each email address, a directory for each subject, and allowing versioning using the attachments.20:51
Milossh joined20:51
Milossh left20:52
Shusshu left20:52
timj1 left20:52
gajop left20:52
thl0 joined20:53
Milossh joined20:53
seanh_ left20:53
laurav joined20:53
esreskkesketske_ joined20:54
oojacoboo left20:55
Nevik jakemp: ive not heard of any such thing, but it's probably not too hard to implement20:56
once you work out the details20:56
esreskkesketske left20:56
svetlyak40wt left20:57
thl0 left20:57
shruggar joined20:57
maxmanders left20:57
jakemp yeah, I can script it pretty easily, just wanted to make sure I wasn't reinventing the wheel.20:57
amccloud joined20:57
jakemp thanks for the input.20:58
wget joined20:58
na3r left20:59
oojacoboo joined20:59
nicekiwi joined21:00
smirn0v left21:00
nicekiwi there are files on my remote repo that are not in the repo on github, how can I get rid of them without messing up stuff?21:00
Gentlecat_ joined21:00
nicekiwi ive been doing pull requests from git hub on my remote server21:01
maxmanders joined21:01
shashin left21:02
thl0 joined21:02
dmatt joined21:02
milki nicekiwi: my basic guess is your remote repo is a non-bare repo. you could reset --hard or clean21:02
adhawkinsadhawkins-away21:02
blackmat` left21:02
opus left21:03
nicekiwi milki: hmm ok..21:03
aantix_ joined21:06
wlonk joined21:07
Noldorin joined21:08
gajop joined21:08
gustavnils left21:09
aantix left21:09
aantix_aantix21:09
Ahti333 joined21:09
Goles joined21:10
rabellamy left21:10
kanzure is .mailmap a git feature?21:10
Ahti333 i have a merge conflict with a pretty large file, is there any way i can get a copy of both versions in two different files (eg original file is a, i want to have something like a.mine and a.theirs)21:10
lresende left21:11
kanzure Ahti333: you can check out those files separately with "git checkout" iirc21:11
Ahti333 using --mine etc? wouldnt that check them out overwriting the conflicted file and marking the merge as resolved?21:12
Tommy[D]_Tommy[D]21:14
grawity kanzure: yes, see `man git shortlog`21:14
gitinfo kanzure: the git-shortlog manpage is available at http://jk.gs/git-shortlog.html21:14
Ahti333 ah okay, it does not mark the merge resolved, so i can first checkout --ours myfile, then copy that aside and then checkout --theirs21:14
n3m left21:15
beepbeep_ left21:15
juvenal left21:16
chuckharmston left21:16
revyd joined21:18
marthinal left21:18
sysadminAli left21:19
ncd|leeN left21:19
j416 left21:19
picoguy left21:19
mikef_ left21:20
ErKa left21:20
fobban left21:21
ryanplas joined21:21
tsdh left21:22
marhaban joined21:22
wget Hello guys. I'm looking if there is a way to display an old version of a file under version control, that has been committed and published for ages, but without checking it out or reverting the repo to the previous version of the file. I tried git diff but it displays nothing.21:22
PerlJam wget: git help show21:22
wget: git show <commit>:path/to/file # IIRC, but I rarely do this so it doesn't stick in my brain too well21:23
thl0 left21:23
dmatt left21:23
mishok13 joined21:23
wget PerlJam: Thanks a lot! ;-)21:24
p4tux left21:24
eletuchy left21:25
francisfish left21:25
chuckharmston joined21:26
wget PerlJam: Remembering the command name is always a tricky process compared to checking out its description with the man pages.21:26
etcetera left21:26
etcetera joined21:27
shruggar left21:27
jmzc hi21:27
roger_padactor left21:28
etcetera left21:29
jmzc when I talk about 'local repository' , is this repository a real copy of sources in my machine? I don't mean my workspace, but the 'local repository'21:29
or 'local repository' only has got control data ?21:29
ajacom joined21:30
ajacom is there a command to automatically fetch a branch and merge it with the current ?21:30
bremner jmzc: can you give some context?21:30
PerlJam jmzc: I'm not quite sure what you're asking. The local repo has everything needed to recreate a working copy.21:30
snql left21:30
jmzc bremner: first, the context is I'm newbie :-)21:30
Seveas local repository is the result of 'git clone'. A bare repo (somename.git) is a local repository. A non-bare repo (somename/.git) is a repo with a checkedout working directory21:31
ajacom, git pull <remote> <branch>21:31
_iron joined21:31
jmzc I want to know how many copies of my source files there are21:31
PerlJam jmzc: why?21:32
ajacom Seveas, git pull heroku master ... or git pull heroku/master current-branch ?21:32
Seveas ajacom, with an origin named heroku and a remote branch named master: git pull heroku master21:33
jmzc if I delete all my wokspace and drop remote repo, do ? have lost all my files ?21:33
ajacom thanks21:33
Seveas jmzc, unless someone else has a copy21:33
cbreak jmzc: drop?21:33
marthinal joined21:33
jmzc drop o become unaccessible21:34
desapear21:34
ajacom left21:34
cbreak if you delete a repository, then that repository is gone21:34
the history it had might be in other repositories too21:34
jmzc Seveas: so, administrative area is only meta-data of my workspace21:35
cbreak for example if you fetched from it, or pushed the history somewhere else21:35
bgerber left21:35
cbreak the working directory is not part of history21:35
glebd joined21:35
bremner what "administrative area"?21:35
Seveas jmzc, no, if you have a .git, you have your entire repo.21:35
cbreak you can delete it as much as you want, git won't care21:35
danielfilho left21:35
cbreak (until you commit :)21:35
jmzc Seveas: so, I've got my workspace copy, my .git copy and my remote repo copy ?21:36
ryanplas left21:36
e66 left21:36
jmzc I talk about FILES21:36
physically21:36
cbreak git doesn't store files21:36
chuckharmston left21:36
Seveas jmzc, err.... the .git dir contains files :-)21:36
Remram left21:36
jmzc Seveas: source files ?21:36
e66 joined21:36
cbreak git just stores snapshots of history21:36
jmzc cbreak: ok21:37
cbreak i.E. the content of files21:37
siriuz left21:37
Seveas jmzc, let's take a step back. Why don't you tell us what the actual problem is you're having instead of being vague?21:37
marthinal left21:37
ankurankan joined21:37
Seveas Did you do rm -rf in your workdir but want your files back?21:37
cbreak git can recreate files from history21:37
jmzc i'm being vague because I'm newbie in git and I don't speak English very well ...2 problems in 121:38
Seveas jmzc, both those problems are not easily solved. So let's focus on the easier problems :)21:38
laurav left21:38
lacrymology left21:38
siriuz joined21:38
thl0 joined21:38
cbreak well, english isn't that hard if you already know a germanic language21:38
and it is quite simple overall21:38
tjbiddle_ joined21:39
Seveas spanish isn't germanic though :-)21:39
jmzc i don't have any specific problem ...I only want to know where are my files , and what is .git ...for my, .git folder is a black box21:39
Seveas jmzc, ok. Start with reading !cs and maybe pro git then21:40
gitinfo jmzc: "Git for Computer Scientists" is a quick introduction to git internals for people who are not scared by phrases like Directed Acyclic Graph. http://eagain.net/articles/git-for-computer-scientists/ See also !concepts !bottomup21:40
jmzc Spanish is easer ...i swear :-P21:40
recurrence joined21:40
jmzc ok, thanks21:40
skywalkerhere left21:41
Seveas jmzc, basically, in .git/objects, you'll see a lot of files. The contents of these represent all states of all files in your repository. That link above explains it in some more detail, pro git (it's a book) explains a lot more even21:41
aantix left21:41
laurav joined21:42
aantix joined21:42
Remram joined21:42
jmzc ok, i'll read ... I don't know if i'll learn English or git on first21:42
tjbiddle left21:43
jmzc thanks git-ers !!!21:43
tjbiddle_tjbiddle21:43
bgerber joined21:45
Chinorro joined21:46
cbreak jmzc: objects might not be there21:46
there are also pack files, and if you're playing with fire, alternates21:46
xiong Hi, I seem to have done stupid, then compounded my mistake: http://imgur.com/ATcPGNG21:47
I merged in error; release-1.0.1 was not quite okay. I wanted to undo the merge, leaving the branches in the states with the green circles; and dropping entirely what is now the top three commits.21:49
padhah left21:49
ISF left21:49
xiong Now when I try to switch out of trunk back into the release-1.0.1, git complains of uncommitted changes.21:49
cbreak xiong: did you push already?21:49
tjadc left21:50
thl0 left21:50
cbreak and which branch do you want to change?21:50
laurav left21:51
etcetera joined21:51
lun__ joined21:52
_iron left21:52
chuckharmston joined21:52
lun_ left21:53
xiong I did not push since the pushes shown. So GitHub is at 1.0.0 on devel and trunk.21:53
abcdefg_ left21:53
geekbri left21:54
simesy left21:54
lun__ left21:54
lun_ joined21:54
abf joined21:54
xiong I don't want to retain anything after the branch heads shown. That is, devel should be where devel is, release-1.0.1 should be where that is, trunk should be where that is. I just want to back entirely out of the merge and be on the release branch.21:55
As a bonus, I'd like to know how to back out of a merge *before* I add to the cock-up with git-reset.21:55
freeed left21:55
cbreak xiong: so you ... want that everything is as it is?21:56
xiong No; I want not to have those top three commits.21:57
cbreak you don't have them in history21:57
they are just in stashes21:57
tjbiddle left21:57
cbreak the stash will vanish if you do git stash drop or so21:57
xiong Actually, I realize now it's worse than shown. Notice that 'trunk' itself is no longer at 'remotes/origin/trunk'.21:57
jashsu left21:58
cbreak yeah, and? maybe your GUI doesn't show it21:58
I like !lol more21:58
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all21:58
xiong Let's try to break the problem up into sub-issues. Can I get trunk to point where the remote is?21:58
cbreak where is it now?21:59
kanzure grawity: thank you21:59
cbreak pastebin !lol output or so21:59
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all22:00
xiong If you like, I can do the decorated log instead. This is clearer in my mind.22:00
'trunk' is now way back at 0.1.422:00
opus joined22:00
cbreak maybe you reset it back.22:00
you can probably git checkout it and then just git pull22:00
tjbiddle joined22:00
xiong I did indeed. I got into this mess by trying to back out of the merge using git reset and git stash.22:00
cbreak that will work.22:00
your merge is no longer referenced by it22:01
xiong Ah, but it did not... the way I did it.22:01
cbreak you just see stash because your GUI shows it22:01
but it's no longer history (in trunk)22:01
xiong Yes, I'm hoping that git gc will make the unreferenced commits go away.22:01
dijonyummy left22:01
xiong Please, one issue at a time.22:01
__BigO__ left22:01
infynyxx joined22:01
amccloud left22:01
mklappstuhl joined22:02
xiong First issue: I want to move 'trunk' up to where it is on the remote. I realize that since it *is* the remote branch, I could pull. But I'd rather not rely on that as a backup.22:02
yshh joined22:03
xiong The commit labeled 'remotes/origin/trunk' is not missing from my local repo yet, right?22:03
cbreak you can also reset --hard if you don't like pull22:03
or you can just merge22:03
since you don't need the fetch part of pull22:03
xiong Whoa.22:03
cbreak gitk shows it, so it's not missing22:03
xiong One thing, please. I want to move 'trunk' up to where it belongs.22:03
cbreak then do it.22:03
thl0 joined22:03
cbreak plenty of ways to do it :)22:03
xiong Don't understand.22:03
jmzc left22:04
yshh left22:04
xiong One way, please, without involving the remote.22:04
bootstrapper left22:04
yshh joined22:04
cbreak git checkout trunk && git merge origin/trunk22:04
xiong I don't want to do another merge.22:05
cbreak do it anyway.22:05
thesisus left22:05
cbreak you can add --ff-only to merge too, if you want to be sure that it will not make a merge commit, but it should not create one in such a situation.22:05
since it should be fast forwardable22:05
xiong I don't want to create a new commit under any circumstances.22:05
dmarkham left22:05
xiong I want to *label* the commit as 'trunk'. I want trunk to be there.22:05
amccloud joined22:06
xiong Um, git-reset but forward, not backward.22:06
thesisus joined22:06
Vile joined22:06
revyd left22:06
dmarkham joined22:06
csmrfx isn't "trunk" technically used for what git knows as "branches"22:06
+?22:06
xiong 'trunk' = 'remotes/origin/trunk'22:06
cbreak xiong: do what I said22:06
xiong: all will do the same thing22:06
xiong Sorry csmrfx; not sure I quite understand.22:06
cbreak csmrfx: trunk is just the name of a branch22:07
xiong cbreak, I'm already checked out on trunk.22:07
I do not want to involve the remote at all.22:07
cbreak yeah, don't care22:07
git merge origin/master22:07
origin/trunk of course22:08
xiong I can't depend on having the commit I fumbled already pushed to GitHub.22:08
cbreak that will do what you want... as I told you many times already22:08
xiong Call me fussy.22:08
axl_ can i undo a commit from my log that hasn't been pushed to the repo ? I don't want to revert it, just remove the commit and undo those changes, as though they were never done22:08
cbreak axl_: yes.22:08
xiong I will have this problem again and I don't want to waste anybody's time asking for the solution again because I don't have a remote to save my butt.22:09
cbreak axl_: git reset --soft HEAD~122:09
xiong: so, do it...22:09
xiong Do *what*?22:09
cbreak xiong: merges are local only22:09
do what I said... duh...22:09
axl_ cbreak: should i pass the SHA instead of the HEAD~1 ?22:09
cannonball left22:09
cbreak axl_: what ever you want. both will work22:09
tjbiddle_ joined22:09
axl_ cbreak: awesome! thanks22:09
xiong Let's try again. How do I arbitrarily set the branch tip to an arbitrary sha?22:10
csmrfx IMO "label" is known in git as a "tag"22:10
cbreak axl_: (the sha1 of the commit you want to be at)22:10
xiong: git reset, as I told you already...22:10
yshh_ joined22:10
cbreak xiong: but you don't need arbitrary.22:10
csmrfx axl_: yes you can, be our guest22:10
cbreak you just need fast forward22:10
yshh left22:10
MistuhKurtz left22:10
francisfish joined22:11
axl_ cbreak: wait… i don't want to uncommit all commits until that commit… just that one commit22:11
csmrfx xiong: your question doesn't make sense to me22:11
xiong The most general solution, yes, probably, git-reset. I have only ever used it to go backwards in time with HEAD^.22:11
axl_ csmrfx: ?22:11
laurav joined22:11
cbreak axl_: you can only remove the newest commit that way22:11
breakingthings left22:11
cbreak axl_: if it's not the newest, then ask again :)22:11
jcao219 joined22:11
csmrfx how about googling "how to revert to previous commit git"22:11
axl_ cbreak: even though the commits on top of it aren't dependent on it?22:12
cbreak axl_: all commits are dependent on their parent22:12
francisfish left22:12
axl_ csmrfx: thats, not what i am asking22:12
xiong csmrfx, I showed a shot of gitk in its current state.22:12
csmrfx axl_: depends on what you want to do22:12
axl_ cbreak: all right… i guess that makes sense.22:12
drizzd_ joined22:12
cbreak axl_: if you want to remove an earlier commit, then that's history rewriting22:12
erichynds left22:12
thesisus left22:13
cbreak axl_: see man git-rebase -i22:13
gitinfo axl_: the git-rebase manpage is available at http://jk.gs/git-rebase.html22:13
tjbiddle left22:13
tjbiddle_tjbiddle22:13
axl_ cool22:13
cbreak it can do that easily, but it will rewrite history22:13
axl_ will look into it22:13
cbreak which will cause a huge pile of trouble if you pushed already22:13
axl_ haven't pusehd22:13
pushed*22:13
cbreak it's also harder to use.22:14
axl_ thanks a bunch guys22:14
thl0 left22:14
cbreak axl_: see !cs for the details of what it does22:14
gitinfo axl_: "Git for Computer Scientists" is a quick introduction to git internals for people who are not scared by phrases like Directed Acyclic Graph. http://eagain.net/articles/git-for-computer-scientists/ See also !concepts !bottomup22:14
axl_ interesting22:15
machty left22:15
drizzd left22:15
xiong Okay; I have used $ git reset --hard <sha> to get the tip of the trunk pointing to the correct commit. Now local and remote trunk are at the same place.22:15
razieliyo left22:15
cbreak xiong: you don't know where the real remote trunk is at until you fetch from the remote22:16
xiong But I cannot switch out of the trunk branch back to the release branch because there are uncommitted changes.22:16
cbreak xiong: your remotes/origin/trunk is just a tracking branch22:16
xiong I'm the only author.22:16
cbreak it'll be where you fetched last22:16
xiong: there should not be any uncommitted changes22:16
since you just did a git reset --hard22:16
xiong Ah, but there are.22:16
cbreak can you look at git status/git diff to get the details?22:16
maybe you use windows22:16
archonix left22:17
xiong Three files that were untracked, created in the work done in the devel branch.22:17
jrex left22:17
csmrfx well, either check out the version overwriting or commit?22:17
xiong No, it's linux.22:17
cbreak if they are untracked, then just delete them.22:17
csmrfx (or gitignore, or mv files to safety, or merge, or...)22:17
yshh joined22:18
xiong I understand that I can manually rm those files and presumably, switch to the release branch and find them back where they were.22:18
yshh_ left22:18
xiong I'm trying to learn how to do things cleanly, though.22:18
cbreak delete them...22:18
user12 joined22:19
cbreak you can use git clean if you want git to do it for you. but read the man page of that command...22:19
just plain rm is faster though22:19
xiong reads22:19
milStaja joined22:19
axl_ left22:19
csmrfx well cleaning up mess is rm22:19
sq-one left22:19
xiong Ah. That's much better.22:19
john_anderson joined22:20
osse Doing things cleanly doesn't necessarily mean that everything you type in the sheel should start with 'git ' :P22:20
git cd ..22:20
git make install22:20
R1KRDO left22:20
n4irc joined22:21
Element9 left22:21
jragon left22:21
OMGOMG there should be a git zsnes though22:21
breck joined22:21
user12 left22:21
drizzd_ left22:22
lamont left22:22
OMGOMG sometimes 100 savestates isn't enough22:22
mishok13 left22:22
jonshea left22:22
yshh left22:22
perlstein left22:22
breck left22:23
yshh joined22:23
soypirate left22:23
exoon left22:24
yshh left22:24
yshh_ joined22:25
Dooom joined22:25
x82_nicole joined22:25
Shurakai left22:25
shruggar joined22:26
xiong Okay: http://imgur.com/mpSWSyW22:26
So here's what I did:22:27
$ git reset --hard <sha> # to fix the tip of 'trunk'22:27
$ git clean -f # to drop the untracked files22:27
\etc\ joined22:27
LuxuryMode left22:28
xiong -- then I checked out the 'release' branch --22:28
yshh joined22:28
xiong $ git stash drop22:28
$ git gc22:28
csmrfx xiong: should that be "head" instead of "tip"?22:28
xiong Now everything seems okay... in git. The underlying issue with my code is another thing, of course.22:28
lamont joined22:29
xiong How many HEADs are there, csmrfx? I'm a bit confused about that myself.22:29
I thought there was only ever one HEAD.22:29
csmrfx one single head for each branch22:29
its just a "pointer"22:29
bremner no, just one HEAD22:29
xiong That's why I say 'tip'.22:29
TeamColtra joined22:30
csmrfx http://stackoverflow.com/questions/2304087/what-is-git-head-exactly22:30
yshh_ left22:30
csmrfx if you say "tip" on #git, people wont get shit22:30
mishok13 joined22:30
HumanSky left22:30
xiong I don't know exactly what to call them. I think of them as pseudo-tags or branch tags. As you see, I rarely make explicit tags.22:30
csmrfx I always thought one is supposed to call it (them) head22:31
xiong If anybody has a canonical word for these, please let me know. It doesn't work for me to call them 'branches', since I think of a branch as being all the commits in that line.22:31
shruggar left22:32
esreskkesketske_ left22:32
bremner well, git disagrees ;)22:32
ojacobson left22:32
yshh left22:32
xiong Okay, bremner; so you call a 'branch' only the most recent commit? What I've been calling the tip of the branch?22:32
yshh joined22:33
bremner I guess "heads" is semi-blessed by the implementation, since they all live unfer refs/heads22:33
charon xiong: that's a bit of a dangerous mindset to get into, because the set of commits in a branch can change at any time, commits may be part of no branches, etc. commits don't have an intrinsic branch membership22:33
bremner xiong: a branch is a symbolic-ref (pointer to a commit)22:33
bgerber left22:33
charon (not that there's anything wrong with referring to a "topic branch" but really meaning the three commits not in master but on that branch)22:33
xiong Maybe not, charon; but logically, they're connected. If you have a better word for that, fine; I'll try to adopt that.22:33
csmrfx that SO thread says "When you switch branches with git checkout, the HEAD revision changes to point to the tip of the new branch.22:33
+" - so they use 'tip' too, but the thing is -- HEAD *points* to the tip22:33
ack?22:33
csmrfx beware the detached head22:33
megha joined22:34
asaf joined22:34
aartist left22:34
charon HEAD points to the branch. symbolically.22:34
gyre007 left22:34
charon that is, HEAD points to the ref that constitutes a branch, by full name (refs/heads/X usually)22:34
csmrfx http://marklodato.github.com/visual-git-guide/commit-master.svg.png22:34
bremner oh, right, I am muddying the water, sorry. Branches are not symbolic refs, just refs.22:34
Goles left22:34
baba left22:35
cmmagid left22:35
xiong I realize history isn't always this neat. But consider the sequence of 6 commits from Now that's peculiar to Fix POD coverage on Cookbook. The most recent commit of those 6 is feature-cover.22:35
csmrfx xiong: in git, "branches" mean the branches, so you call branches "branches"22:35
eletuchy joined22:35
csmrfx singular: "branch"22:35
breck joined22:36
xiong I consider all those 6 commits as belonging to the feature-cover branch and the most recent its tip. If that's poor jargon, what should I call these?22:36
dwmw2dwmw2_gone22:36
EugeneKay In high-level terms, a "branch" is a line of development.22:36
csmrfx well if you made branches in your repo, then you would have named them22:36
charon xiong: you don't have to defend yourself :) "dangerous mindset" was a bit of a strong choice of words. we'd also call that "the feature-cover branch". it's just important that you are aware that there's nothing in the commits _per se_ that ties them to that branch22:36
mint joined22:36
mint left22:36
EugeneKay And the "head"(or "tip") is the last commit which was made on a particular branch.22:36
charon xiong: so that you're not surprised if you wake up in the morning and the branch is something completely new.22:36
pgokeeffe joined22:36
charon (the same branch, that is)22:37
xiong charon, the only thing that ties them together is the history that one commit followed another. I understand that.22:37
bgerber joined22:37
csmrfx "$ git branch" lists the branches22:37
xiong EugeneKay, you seem to be endorsing my usage of branch and tip.22:37
I didn't *think* it was all that wacky. -22:37
EugeneKay That's because it isn't ;-)22:37
mint joined22:37
charon agreed22:37
nafg joined22:37
[Araelium]Seth joined22:37
EugeneKay The terminology is just very, very messy and there is no man gitdictionary22:37
xiong But if there's a better term for "sequence of commits leading to a branch" then I'll use it.22:38
EugeneKay Actually22:38
man gitglossary22:38
gitinfo the gitglossary manpage is available at http://jk.gs/gitglossary.html22:38
bremner xiong: but it isn't necc. a sequence22:38
xiong And I'll use "branch" to apply exclusively to what I've been calling a "tip".22:38
EugeneKay It even has an entry on branch which is remarkably close to hat I just said22:38
So there ;-)22:38
aartist joined22:38
charon i suppose the real issue is that in speaking of "foo branch", there's an implicit base commit assumed to be known to everyone22:38
xiong A "branch" is an active line of development. The most recent commit on a branch is referred to as the tip of that branch.22:38
csmrfx git concepts chapter of the user-manual file:///usr/share/doc/git-doc/user-manual.html#git-concepts22:39
charon people are usually surprised when they find out that a) git doesn't know anything about base commits and b) they didn't know either22:39
or some such.22:39
xiong Thanks, EugeneKay.22:39
DeviantPeer left22:39
alegen_ left22:39
csmrfx $ man git22:39
gitinfo the git manpage is available at http://jk.gs/git.html22:39
xiong Perhaps if I run into this quibble again I can switch from "branch" and "it's tip" to "chain" and "branch".22:39
s/it's/its/22:40
juril left22:40
bremner well, it isn't necessarily a chain either22:40
xiong Fascinating as this is, guys; I still have to go and fix my code.22:40
EugeneKay Code is for the weak of mind22:40
xiong Thanks for all the help sorting out my repo.22:40
bremner non-linear history. get used to it.22:40
;)22:40
EugeneKay Real men will the computer to do its bidding22:40
csmrfx only fixes other peoples code22:40
pgokeeffe left22:41
gitinfo set mode: +v22:41
eletuchy left22:41
HG` left22:42
[Araelium]Seth [newb] I have git repo for my website. At the top level I have two directories which we'll call /resources and /site. Resources contains all of the raw photoshop files, and big bulky assets. /site contains my actual website's (rails) application.22:43
When deploying I want to "checkout" (in svn terms) only the /site directory so I don't have to download all of the contents of /resources. According to Internet Wisdom this is what a "sparse checkout" is in git, yet when I try it, it still downloads all of /resources and /site into the .git/objects directory, but in the working copy only /site is shown. That kind of misses the whole point. Can I prevent it?22:43
eletuchy joined22:43
dijonyummy joined22:43
cbreak [Araelium]Seth: git doesn't work that way22:43
lresende joined22:43
cbreak a clone contains the full history, including every version of every file ever committed22:43
[Araelium]Seth The Internet has lied to me. :(22:43
cbreak you can do sparse checkouts, but you still will have every version of every file ever committed in git22:44
and sparse checkouts are not really supported22:44
[Araelium]Seth And seem useless22:44
thl0 joined22:44
[Araelium]Seth I don't understand the point then, if they don't prevent the download of the other directories22:44
cbreak in general, it is a bad idea to commit big binary files22:44
mishok13 left22:45
cbreak [Araelium]Seth: someone probably requested the feature22:45
[Araelium]Seth They're not gigantic, but it's stuff I do want versioned. Hmm.22:45
bremner [Araelium]Seth: for source code, the .git directory is typically much smaller than the checkout22:45
well, sometimes anyway.22:45
[Araelium]Seth I guess the only way then is two separate repositories.22:45
dijonyummy left22:45
[Araelium]Seth +submodules, which I can read up on now.22:45
cbreak those are one way22:46
but submodules are usually used for external things22:46
charon !annex22:46
gitinfo git-annex and git-media are two solutions to the !binary problem. They work by keeping the blobs outside of the repo, storing a reference to the blob in the repo instead. See http://git-annex.branchable.com/ and https://github.com/schacon/git-media22:46
cbreak maybe git slave is better for your situation22:46
charon !binary22:46
gitinfo Storing binary files in git causes repo balloon, because they do not compress/diff well. In other words, each time you change a file the repo will grow by the size of the file. See !annex for some solutions22:46
charon hum, no other solutions? bah22:47
bremner svn ;)22:47
[Araelium]Seth heh.22:47
Thanks. I'll read about all of this.22:47
cbreak charon: well... if you tell git to track them, then git will track them.22:47
dijonyummy joined22:48
csmrfx [Araelium]Seth: deploy post-commit22:48
+in a hook22:48
shruggar joined22:49
revagomes left22:50
__BigO__ joined22:50
Fels joined22:51
banisterfiend joined22:51
banisterfiend hi, i dont quite understand the help description of "git log -S"22:51
can someone fill me in?22:51
samir left22:52
thl0_ joined22:52
farciarz84 left22:52
ankurankan left22:52
[Araelium]Seth csmrfx: can you elaborate?22:53
csmrfx banisterfiend: stop trolling22:53
real people need real help here22:53
adamben joined22:54
hobodave left22:54
bronsen left22:54
csmrfx banisterfiend: lol. did you see the man page already?22:55
maletor joined22:55
csmrfx suppose it iterates from earliest commit grepping for the string argument22:55
cwillu_at_work left22:55
yshh left22:56
thl0 left22:56
xiong -S or -s?22:56
banisterfiend xiong: -S22:56
samir joined22:56
FUZxxl left22:56
FUZxxl joined22:56
banisterfiend csmrfx: of course, i still dont quite get it22:56
xiong I admit, I can't find that parameter in the manpage. It must be a parameter because when issued by itself it demands a value.22:56
banisterfiend -S<string>22:57
Look for differences that introduce or remove an instance of <string>.22:57
mint left22:57
cwillu_at_work joined22:57
banisterfiend ah22:58
i get it22:58
nm22:58
csmrfx your man page looks different from mine22:58
banisterfiend read "differences" as "diff" and it makes sense22:58
pppaul joined22:58
csmrfx -S<string> Look for differences that introduce or remove an instance of <string>. Note that this is different than the string simply appearing in diff output; see the pickaxe entry in gitdiffcore(7) for more details22:58
xiong I think -S should be listed under the 'Commit Limiting' section, then; but doesn't seem to be.22:58
csmrfx has flag for string-match, iterates from earliest commit of the branch (I guess) grepping all files for string, makes log every time string-match state toggles22:59
eletuchy left23:00
banisterfiend does -S also look at the commit message?23:00
or just the diffs?23:00
xiong Perhaps -S is undocumented in the manpage?23:00
csmrfx See my paste on the line above starting "-S<str"23:00
myx left23:00
natechan left23:00
fisted left23:01
jwmann left23:01
mmitchell left23:01
xiong Ah. Finally saw it. Listed under 'COMMON DIFF OPTIONS'.23:01
csmrfx It matches or greps *each* commit, each file, for the string argument23:01
fisted joined23:02
csmrfx not the diff23:02
alegen joined23:02
csmrfx hm, should have written "each commits every file"23:03
Guest25067 left23:03
lavaman left23:03
natechan joined23:03
dmarkham left23:03
xiong In other news, Error-Base-v1.0.0 is merged, pushed, uploaded to CPAN, and awaiting fresh smoke. Thanks guys, couldn't have done it without you.23:04
csmrfx banisterfiend: it seems rather pointless as both removing a string instance in a file or making new both cause commit to appear23:05
banisterfiend csmrfx: no idea what you're talking about homie23:05
dmarkham joined23:05
csmrfx git log -S output23:05
trungqtran left23:06
eletuchy joined23:06
TheJH left23:06
samuel02 left23:08
revyd joined23:08
pgokeeffe joined23:08
axl_ joined23:09
maqr joined23:10
SeoZ-work[AWAY]SeoZ23:10
scampbell left23:11
mklappstuhl left23:12
thl0_ left23:13
pgokeeffe left23:14
GSpotAssassin joined23:15
ISF joined23:15
GSpotAssassin How do I search the commit history of 1 file to see when a line matching some grep was removed?23:15
milStaja left23:15
n3m joined23:16
shesek anyone know what could be causing that: http://pastie.org/6089048 ?23:16
howlymowly left23:18
grawity GSpotAssassin: git log -G"line" -- file23:19
csmrfx GSpotAssassin: maybe --S and --pickaxe-all23:19
pgokeeffe joined23:19
jdav_gone left23:19
grawity shesek: the first command does not pull origin/master to your own master branch23:19
csmrfx banisterfiend: me neither, btw23:20
grawity shesek: it only fetches it to FETCH_HEAD, I think23:20
csmrfx A pull is the same as fetch and .. ?23:20
grawity I think !fetch4 explains it somewhat23:21
gitinfo [!fetchfour] Never use the four-word version of git-fetch or git-pull (e.g. git fetch <remote> <refspec>). It always ends in tears. Yes, if you understand the implications of FETCH_HEAD it can technically be done, but really it is easier to just fetch the whole remote (or perhaps edit the fetchspec if you never want other bits). If you must, see !fetch4why23:21
SBoudrias joined23:21
wlonk left23:21
shesek !fetch4why23:21
gitinfo The four-word version of git-fetch doesn't update remote-tracking branches and tags. It fetches into FETCH_HEAD only; you probably don't want to have to deal with that. Pull in four-word form automatically uses FETCH_HEAD, but your remote-tracking will still be outdated. Even updating them manually with 'git fetch origin master:remotes/origin/master' (clunky) still doesn't update tags.23:21
shesek grawity, thanks. and how should I do that?23:22
grawity Use "git pull <remote>" or "git pull"23:22
glebd I have a mirror repository. Can I turn it into a normal, non-mirror, repository? Is it enough just to write mirror=false into my local clone and push to the mirror, or is anything more needed?23:24
laurav left23:24
grawity You need to also fix the refspec in remote.origin.fetch23:25
danielfilho joined23:25
ojacobson joined23:25
etcetera left23:25
mklappstuhl joined23:26
shesek grawity, I'll look into that. thanks23:26
alegen left23:27
lun_ left23:27
Xethron joined23:28
mutoso left23:28
h0bbit left23:29
lb_lb23:30
[Araelium]Seth left23:30
mutoso joined23:30
infynyxx left23:31
jdav_gone joined23:31
thasmo joined23:31
apeiros_ left23:31
machty joined23:32
alegen joined23:35
bgerber left23:35
SeoZ left23:36
Fels left23:37
m0viefreak joined23:37
rabellamy joined23:37
m0viefreak left23:38
m0viefreak joined23:38
SeoZ joined23:39
n3m left23:39
hwrd|work left23:40
amccloud left23:42
normanrichards left23:43
__BigO__ left23:43
Mannequin joined23:43
looper left23:44
chisler left23:46
maxmanders left23:46
infynyxx joined23:46
cworth joined23:46
bgerber joined23:46
fuzzybunny69y joined23:47
tjbiddle_ joined23:47
decotii left23:48
thasmo left23:48
tjbiddle left23:48
tjbiddle_tjbiddle23:48
machty left23:48
fuzzybunny69y left23:48
hwrd|work joined23:49
dunpeal joined23:51
dunpeal Hi. What's the best way to have git just print the name of the current branch, and nothing else?23:51
banisterfiend dunpeal: git name-rev HEAD23:51
dunpeal ah, right, thanks.23:52
banisterfiend dunpeal: not quite, it also shows HEAD23:52
dunpeal: try this: git name-rev --name-only HEAD23:53
dunpeal yup, thanks.23:53
ojacobson There's also 'git symbolic-ref --short HEAD'23:53
Ksg89 joined23:53
segher left23:53
ojacobson (which will puke in predictable ways if HEAD is not a symbolic ref, i.e., when you have a detatched HEAD)23:54
natechan left23:54
darklajid left23:55
skyxxx joined23:55
chuckharmston left23:57
kevwil left23:58
hwrd|work left23:58
TonyM left23:58
segher joined23:59
hwrd|work joined23:59

Logs Search ←Prev date Next date→ Channels Documentation