IRCloggy #git 2013-11-06

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-11-06

groglogic left00:00
abelsiqueira joined00:01
CreativeEmbassy joined00:01
pasky_ left00:02
pasky_ joined00:03
lun__ left00:03
DANtheBEASTman joined00:04
lun__ joined00:04
benpicco left00:06
ezio joined00:06
ezio left00:06
ezio joined00:06
Destos joined00:06
kriks left00:06
woollyams joined00:06
pasky_ left00:07
motto left00:08
hyperair left00:08
lun__ left00:09
ezioa joined00:09
ezio left00:10
mfulz left00:11
decotii left00:11
Misan left00:12
spaceonline left00:13
Destos left00:14
rabbite left00:14
Destos joined00:14
reim left00:14
thiago left00:15
reim joined00:15
deryni osse: https://gist.github.com/deryni/732869900:16
ezioa left00:16
pfFredd left00:17
Watabou left00:17
bwreilly left00:19
SporkWitch left00:21
AaronMT left00:21
SporkWitch joined00:21
SporkWitch left00:22
SporkWitch joined00:22
simesy left00:24
simesy joined00:24
primitive left00:24
deryni And the answer appears to be because 'describe --contains' is just 'name-rev (--peel-tag) --name-only --no-undefined' + appropriate options.00:25
echo-area left00:26
ezio joined00:26
ezio left00:26
ezio joined00:26
simesy_ joined00:26
eaj joined00:27
infynyxx left00:27
delasteve left00:27
amcsi left00:28
hashpuppy left00:28
lavaman left00:28
simesy left00:28
pitzips left00:29
cesarkawakami joined00:29
Chwing joined00:29
Chwing left00:29
Chwing joined00:30
delasteve joined00:30
alan5_ left00:33
eaj left00:33
MatRoo left00:34
dyng joined00:35
CKyle left00:37
defaultro joined00:38
joelmo left00:38
ezio left00:39
SynthesizerPatel left00:39
joelmo joined00:39
nurey joined00:39
Gavrisim_ left00:40
hashpuppy joined00:41
pasky_ joined00:42
threesome joined00:43
joelmo left00:44
marhaban left00:44
blahdodo joined00:44
Gamecubic left00:45
Dougie187 joined00:46
mmlac-bv left00:46
pasky_ left00:47
koda left00:47
bwreilly joined00:48
canoon joined00:49
HelloShitty left00:51
hyperair joined00:51
gumble joined00:53
gitinfo set mode: +v00:53
pasky_ joined00:53
_iron left00:53
boombatower left00:53
gumble hey guys. git didn't work for me, so I gave my last version of a project to someone else who pushed the whole thing online. Now I did some more work and want to push it again. git tells me I need to pull first. But I don't want to, because I know that the files online are older then mines and will overwrite my files. thats just *****00:54
can anyone tell me what to do? how do I tell git that I am the one having the newest files00:54
acharlieh joined00:55
etcetera left00:55
Zarthus left00:55
hyperair left00:56
canoon gumble, git push -f00:57
cadabra left00:57
whunt left00:57
mae_tae joined00:58
mae_tae hello people....00:58
blahdodo git filter-branch -d /run/shm/git --prune-empty --subdirectory-filter drivers/net --tag-name-filter cat -- --all00:58
the git gc00:58
whunt joined00:58
skorgon gumble, push -f would !rewrite history00:58
gitinfo gumble: [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum00:58
blahdodo ^then00:58
gmac ls -la00:58
gah00:58
gumble canoon: I just found that out too. I did that but I can't see the push online at github00:59
skorgon gumble, you probably want to look at the 'ours' merge strategy if you really want to discard all work that has been done00:59
hwrd|work left00:59
blahdodo shouldnt that remove all files not in drivers/net00:59
mae_tae does basic configuration of github allow push &pull of repositories?00:59
etcetera joined00:59
blahdodo how come git checkout v3.0.1 puts all the other files back?00:59
etcetera left00:59
blahdodo bt ir removed refs/orgianal00:59
nurey left00:59
Robarelli left01:00
blahdodo btw I remove refs/originals01:00
canoon gumble, did it error out? maybe just needs some time to update the web ui?01:00
vipzrx joined01:00
blahdodo anuy ideas?01:00
etcetera joined01:00
dsdeiz joined01:00
gumble it's 2 o clock where I live and I have to get up early tomorrow :D I just want to make this commit and sleep. I am the only one uploading anything to that thing and git only thinks that someone else did a newer one because a collegue did it for me 2 days again01:00
etcetera left01:00
vipzrx left01:00
gumble no it said everything fine01:00
boombatower joined01:00
canoon gumble, are you looking at a different branch locally?01:01
etcetera joined01:01
gumble but the web ui normally was very fast01:01
master branch I am looking at01:01
everywhere01:01
canoon if you cat .git/config01:01
woollyams left01:01
canoon is it pushing to github?01:01
SamB gumble: did you update your local copy after colleage pushed?01:01
ehmatthes left01:02
dyng left01:02
dyng joined01:02
gumble canoon: remote origin is url = "github.com/...."01:02
joelroa joined01:02
gumble SamB: no I'm new to github should have pulled01:02
r0bby_ joined01:02
vipzrx joined01:03
SimonNa joined01:03
acharlieh left01:03
groglogi_ left01:04
gumble can I somehow see my commits with git to check if it's only the web ui? because github gave me: http://pastebin.com/LnvWckce01:04
hyperair joined01:04
gumble I mean git gave me01:04
nurey joined01:04
gumble which looks as if everything works. but on github again it looks as if nothing worked01:04
canoon wait gumble have you not commited locally?01:05
gumble I did git add, git add, git add, git commit -m "my message", git push origin master01:06
harish left01:06
gumble as it says in some beginner tutorial01:06
mae_tae does basic configuration of github allow push &pull request of repositories?01:06
richgilbank left01:06
canoon gumble, does git status show anything?01:06
mae_tae, yeah01:06
R1KRDO joined01:06
woollyams joined01:07
mae_tae canoon: with that free acount?01:07
gumble git status: http://pastebin.com/ACyBZXKW01:07
canoon mae_tae, free accounts just don't have private repos01:07
pasky left01:07
canoon so everyone can see your stuff01:07
gumble still says to be comitted01:08
canoon gumble, yeah you need to stage those deleted/modified files01:08
and then commit everything01:08
gumble damn. what is staging. ah this gonna be long :D01:08
asQuirreL left01:08
canoon gumble, see the git add/rm stuff01:09
git rm all those deleted files01:09
and git add the modified ones and the other ones you want in the repo01:09
and then just git commit01:09
Gamecubic joined01:09
rafaqueque left01:10
thiago joined01:11
mae_tae canoon: what do you mean by private repos? i mean if i build my own git server, does my other programmers able to participate or push/pull request from github with that free account01:11
dsdeiz left01:11
canoon mae_tae, wait your own git server and github?01:11
mizu_no_oto joined01:13
herdingcat left01:13
Freeman__ left01:14
mae_tae canoon: what do you mean by wait your own git server?01:14
gumble canoon: THANKS THANKS!!! you saved my sleep01:14
it worked01:14
thanks so much01:14
canoon gumble, nice, you'll have to let your coworker know you just overwrote his work though :p01:15
mae_tae canoon: got it private mean those request that were not shared publicly? is that what you mean?01:15
R1KRDO left01:15
gumble he just uploaded my stuff I gave him, I am the only one working on the project01:15
maestrojed left01:15
canoon mae_tae, there a repos on github which you can't see those are private01:16
ehmatthes joined01:16
Destos left01:16
SocalNick left01:16
maestrojed joined01:16
boombatower left01:17
str joined01:18
boombatower joined01:18
cenuij left01:18
mae_tae canoon: ok lastly for clarification, just my concern is that I just want that my peer can only able to push & pull request with that github free acount, is that only sufficient on my need?01:20
DonRichie left01:20
DonRichie joined01:20
canoon mae_tae, are you hosting your own git server?01:20
boombatower left01:21
kcj left01:21
mizu_no_oto left01:22
mae_tae canoon: yes, i want to install our own git server01:23
lithiumn joined01:23
oriba joined01:23
canoon mae_tae, github isn't relavent then01:23
you don't need a github account01:23
mae_tae canoon: but what them to have something web based or gui?01:24
Watabou joined01:24
canoon mae_tae, you can use a program with a web based ui on your private server, or you can host your repos on github01:25
PaulCapestany left01:25
canoon you can't view repos not hosted on github on github01:25
tinti left01:25
canoon mae_tae, or wait are you talking about using their gui client?01:26
kcj joined01:26
halu_ left01:27
EugeneKay jast - have I ever told you how fiendishly difficult it is to use the gitinfo source without any sort of documentation?01:27
thiago left01:27
ewnd9 joined01:28
penguin42 left01:28
Nicholas_Rishel joined01:28
mae_tae canoon: yes, i want them to have some tool that they can able to pull & push updates to the server01:28
zhost left01:28
Nicholas_Rishel left01:28
mae_tae left01:28
canoon mae_tae, yeah i don't know how their client works / if you can use it with other servers etc01:29
redrocket left01:29
chuckharmston joined01:29
Watabou left01:30
kermit left01:31
mae_tae joined01:31
kermit joined01:31
whunt left01:32
thiago joined01:32
Sigma[Mtp] left01:33
etcetera left01:34
kpreid joined01:36
Watabou joined01:36
ezio joined01:39
ezio left01:39
ezio joined01:39
jason237 joined01:39
mae_tae does this mean that if install/host my own git server, I dont need to use github? but require the programmers to used some any GUI client tool, is this that idea?01:39
thiago mae_tae: yes, no01:40
mae_tae: if you run your own server, you don't need someone else's server (github)01:40
whether you want to use a GUI client tool or not, it's up to you01:40
mae_tae i see, thats clear, hehe01:40
nwertman_ left01:41
etcetera joined01:41
etcetera left01:42
zarubin left01:42
ojacobson joined01:42
kukks left01:43
maestrojed left01:43
gumble left01:44
kwmiebach left01:45
vipzrx left01:45
dsdeiz joined01:45
kukks joined01:45
threesome left01:46
Davey joined01:46
vipzrx joined01:47
vipzrx left01:48
nettoweb joined01:48
CreativeEmbassy left01:49
etcetera joined01:51
Goplat joined01:51
tplaner joined01:51
bwreilly left01:51
snuffeluffegus joined01:52
CKyle joined01:52
daito joined01:54
tplaner left01:55
harish joined01:56
mmitchell joined01:56
kama joined01:57
vipzrx joined01:57
vipzrx left01:57
sgambino left01:58
jhulten_ left01:58
jhulten joined01:58
alvaro_o left01:59
freestyl1 joined01:59
nettoweb left01:59
bobdobbs joined01:59
freestyl3r left01:59
madewokherd joined02:01
kama left02:01
nettoweb joined02:01
weiyang joined02:02
bobdobbs I'm having trouble pushing a newly created project to a newly created repo on github02:02
jhulten left02:02
sgambino joined02:02
etcetera left02:02
intripoon joined02:02
bobdobbs I create the project on github, and then add the remote to the local project02:03
then I try and push02:03
I get: error: failed to push some refs to [myproject]02:03
thiago what was the error?02:03
etcetera joined02:03
bobdobbs error: failed to push some refs to [my remote project]02:03
etcetera left02:03
thiago pastebin the entire output02:04
bobdobbs http://hastebin.com/qimovepego.coffee02:04
etcetera joined02:04
etcetera left02:04
luc_ joined02:04
etcetera joined02:05
thiago "non-fast-forward" is the part I was looking for02:05
that project is not empty02:05
have you just created it?02:05
bobdobbs yes. created it without a readme or license, to avoid that problem02:05
thiago looks like it has stuff in it02:06
either merge it, or push -f to obliterate what's there02:06
bobdobbs ok02:06
intripoon_ left02:06
danmackay left02:06
vipzrx joined02:06
vipzrx left02:07
bobdobbs hm... push -f is hanging02:07
I can't tell if it's doing anything or not02:07
sgambino left02:07
_5kg left02:07
maqr left02:07
thiago wait02:08
vipzrx joined02:08
vipzrx left02:08
bobdobbs oh cool. the prompt returned. the push seems to have succeeded. checking github...02:09
yes! done!02:09
vipzrx joined02:10
qdii__ left02:12
felixsamora joined02:13
groglogic joined02:13
nettoweb left02:16
mae_tae im back, what's the good client tool for github? any suggestion02:16
kai__ left02:17
trusktr joined02:17
canoon mae_tae, git02:18
sourcetree?02:18
mae_tae canoon: git is something like textbased, is there any graphical?02:18
sourcetree, ok ill search it02:19
macabre joined02:19
dhruvasagar joined02:20
Hoksilato joined02:20
curvedmark joined02:21
mae_tae canoon: another thing, if i install a webbased ui something like github, do we have any alternative for github where i can install in my server?02:21
imMute mae_tae: gitolite02:21
Amadiro I'm looking through a fairly large, fairly high-traffic repo, searching for a file that I know was there at some point, but got deleted. I'd like to find the last revision in which the file was there, and get that version. I know the exact name of the file, but not the full path. Anyone got any good ideas?02:21
thiago mae_tae: there's gitlab, gitorious, gitolite02:22
the first two exist as services online too02:22
jfoy left02:22
canoon iirc gitolite is used by gitlab but its only the ssh frontend02:23
dsdeiz left02:23
woollyams left02:23
dsdeiz_ joined02:23
mae_tae i see, which is easier to setup among those being mentioned? how about gitlist?02:24
hashpuppy left02:24
imMute having only setup gitolite, it's pretty easy.02:24
woollyams joined02:25
Targen left02:25
siaW left02:25
Skrypter left02:25
deryni Amadiro: git log --name-status -- *name* ?02:26
Might take a while.02:26
Amadiro I got it loaded and hot in cache on an SSD, let me give it a shot :)02:26
wagle which git-log option for displaying changed files? I'm not seeing it in the docs02:26
mae_tae imMute: ok ill consider it installing gitolite02:26
CheckDavid joined02:27
deryni wagle: --stat or --name-only or --name-status depending on what you want exactly.02:27
Amadiro deryni, hm, came up empty immediately02:27
deryni With the wildcards in the pattern? Case right?02:28
Amadiro `git log --name-status -- *DefaultCreateWindow*`02:28
wagle deryni: thanks!02:29
raonyguimaraes left02:30
pen joined02:30
deryni Amadiro: That's the name of the file? If that's a string in the file then -S or -G might be more useful.02:31
m0viefreak left02:32
m0viefreak joined02:32
Amadiro deryni, should be the exact name of the file (well, it should be "DefaultCreateWindow.js". I'm looking for it because some other component tries to use it and barfs (but because of LAYERS AND LAYERS OF ENTERPRISEY INDIRECTION it's a PITA to figure out the full path from where it could want to include it)02:32
deryni Heh.02:32
If you've got a string that you know was in the file you could try -S/-G instead and see what you get.02:33
Amadiro It's not entirely un-possible it's in a different- or sub-repo, I'm running the query on all of those now.02:33
mizu_no_oto joined02:33
Amadiro Allright, I'll give that shot too02:33
r0bby_ left02:33
mae_tae thanks people.....02:34
special thanks to canoon, thiago02:34
canoon np02:34
hashpuppy joined02:35
dsdeiz joined02:36
Amadiro deryni, something like `git log -G '.*DefaultCreateWindow.*' look correct? I'm assuming that's the kind of syntax -G expects02:36
Hello71 man git log02:36
gitinfo the git-log manpage is available at http://jk.gs/git-log.html02:36
Amadiro (I'm fairly sure the string "DefaultCreateWindow" would occur in the file)02:36
mribeirodantas joined02:37
nettoweb joined02:37
deryni I don't think you need the wildcards for -G for this but yes.02:38
thiago -G takes a regexp02:38
but it's probably not anchored02:38
Amadiro right.02:38
deryni Right.02:38
dsdeiz_ left02:38
Vampire0 joined02:39
ezioa joined02:40
wagle odd: howcome "git branch" reports three branches, while the file ".git/config" has only two?02:41
imMute wagle: because branches aren't stored in .git/config02:41
sriracha joined02:42
deryni Upstream tracking information for branches is.02:42
MattMaker left02:42
imMute aye :)02:42
sriracha whenever I pull in my submodules, they always come in with HEAD detached. How can I lock in branch so that stops happening?02:42
Vampire0_ left02:42
hwrd|work joined02:43
hwrd|work left02:43
wbill joined02:43
wagle imMute: oh right.. its been a while02:43
hwrd|work joined02:43
ezio left02:43
MattMaker joined02:44
dhruvasagar left02:44
hashpuppy left02:44
yuwang left02:44
deryni sriracha: That's how submodules work. Though supposedly recent git can do branch tracking instead (I don't know anything about it).02:45
wagle problem is that branch "wild-goose-chase" is a fork of branch "the-real-thing", and the two branches are following each other around, when "the-real-thing" should have been left behind02:45
if i do a git branch, it puts a star on "wild-goose-chase"02:45
so what's going on? how do I tell?02:46
imMute wagle: the star indicates the current branch02:46
Reacto left02:46
deryni Which is explained in the first sentence of the git branch man page.02:47
wagle imMute: right, but "the-real-thing" is the same sha1 as "the-real-thing"02:47
imMute: right, but "the-real-thing" is the same sha1 as "wild-goose-chase"02:47
ezioa left02:47
guideX joined02:47
deryni If the two refs point to the same commit then git just picks one.02:47
Amadiro deryni, that found it after a few minutes, awesome!02:47
thanks a bunch02:47
deryni Welcome.02:48
So what was the filename?02:48
wagle I know what the star means, I dont understand why the two branches are tracking each other02:48
Amadiro The file was indeed called exactly what I thought it was (and, as expected, withhin a gorillion nested subfolders), so don't know why the other query did not catch it02:48
imMute wagle: are they both local branches? or is one of them a remote tracking branch?02:48
deryni Odd.02:48
wagle local branches02:48
deryni wagle: Are they tracking? Does changing one change the other?02:48
sriracha deryni: so there is no way to avoid this?02:48
deryni sriracha: Look into whatever the recent git feature for submodule branch tracking is. Maybe it does what you want or maybe you don't want submodules at all.02:49
wagle i created "wild-goose-chase", checked it out, and have been making commits exclusively to it02:49
guideX I have been using git for some time, and I have never figured out how to efficiently use the update command. I am not using the terminal, I'm using windows github. I usually just delete the older version of the repo and clone it all over again02:50
wagle but now the two branches point to the same sha102:50
vipzrx left02:50
guideX how would I more efficiently do it, with the tool i'm using02:51
Dougie187 guideX: what does the update command do? git doesn't have an actual update command. So that would have to be something in the github app.02:51
guideX well in svn, you right click a folder, and click update on an older repo02:51
Dougie187 git != svn02:51
guideX I want to learn how to do that in windows github02:51
Dougie187 I don't know what commands the windows github app has.02:52
mmitchell left02:52
Dougie187 But, in plain git terms, you either want to combine `git fetch` with `git reset` or, you want something like `git pull`02:52
guideX oic02:52
wagle deryni: commiting to "wild-goose-chase" causes "the-real-thing" pointer to change02:53
deryni git fetch + merge|rebase|reset02:53
guideX I appologize about the github windows part, the terminal is much harder to use02:53
Dougie187 guideX any or all of those02:53
etcetera left02:53
deryni guideX: Don't apologize. Use whatever works just realize people here don't necessarily know what a given UI looks like.02:54
Dougie187 or can do for that matter.02:54
deryni guideX: Update presumably fetches changes from the remote repo?02:54
guideX yeah02:54
well put simply, sometimes I work on my github repo from work, then I want to come home and work on it some more, but the copy i have at home is out of date02:54
deryni Yeah. You want whatever the option is to fetch and merge or rebase your working directory with those changes.02:55
wagle why might it do this?02:56
imMute wagle: I honestly can't think of a way where it would even be possible to set it up to do that intentionally02:57
CKyle left02:58
canoon wagle, sorry your commiting to one branch and it causes another branch to change?02:58
wagle canoon: apparently02:58
hashpuppy joined02:58
hwrd|work left02:58
canoon wagle, just happen once?02:59
what were the pointing to before / after?02:59
chrisss404 left02:59
hashpuppy left03:00
wagle the one that should't have moved, moved 8 commits up (according to gitk --all), to match the sha1 of the one that I was committing to03:00
intripoon_ joined03:00
deryni symbolic ref?03:00
bwreilly joined03:00
hwrd|work joined03:00
rudak left03:00
deryni Does one of those branches exist as a file in .git/ ?03:00
wagle both in .git/refs/heads03:02
freestyl1 left03:02
wagle the contents of the two files is the same sha1, the mtimes are 50 minutes apart.. i did use git stash at one point recently03:03
deryni Stash shouldn't cause this. If you commit again now does the other one change?03:03
canoon whats the time on the commit compared with the mtimes?03:03
intripoon left03:03
dpomerantz left03:04
hwrd|work left03:04
thiago the most likely scenario is that you did something else that caused it to move03:05
bwreilly left03:05
wagle canoon: the mtime matches the sha1 for "the-real-thing"03:05
BoyanYordanov left03:05
canoon sounds like thiago is right03:06
wagle thiago: yeah, I figure this happened once instead of tracking03:06
now that I remember the git stash thing..03:06
jokajak left03:06
wagle now its a issue of whether git stash is b0rked in my version, or pilot-error03:07
Skrypter joined03:07
wagle if i cant repeat it, then...03:07
kukks left03:07
ewnd9 left03:08
jhulten joined03:09
tmcmahon joined03:10
deryni I can't imagine how git stash can have done this. Other commands, sure, but not stash.03:11
canoon left03:12
undecim left03:13
echo-area joined03:13
undecim joined03:13
daito left03:13
daito joined03:14
jhulten left03:15
canoon joined03:15
nettoweb left03:16
abelsiqueira left03:16
Targen joined03:16
r0bby_ joined03:18
daito left03:18
RogerWS left03:19
wagle I went through my bash history, i didnt fork when I thought I did, I forked "recently" and haven't made any commits to the fork yet.. so no bugs to report03:20
btree joined03:20
felixsamora left03:21
deryni Heh.03:21
wagle what i get for vacationing for a week03:21
was trying to figure out where I was and got gibberish03:22
Snibble joined03:22
rm_workrm_work|away03:22
felixsamora joined03:22
Sigma[Mtp] joined03:22
felixsamora left03:23
felixsamora joined03:23
felixsamora left03:23
btree left03:24
felixsamora joined03:24
felixsamora left03:24
felixsamora joined03:25
PaulCapestany joined03:25
_5kg joined03:25
pdimitrov left03:25
pen left03:26
mizu_no_oto left03:27
sriracha left03:27
Sigma[Mtp] left03:27
pr0ggie left03:28
bwreilly joined03:28
CheckDavid left03:28
pdimitrov joined03:28
rhl joined03:31
_davetoo left03:32
shinnya left03:32
tplaner joined03:33
felixsamora left03:33
eletuchy left03:33
eletuchy joined03:34
_davetoo joined03:34
rurufufuss joined03:34
felixsamora joined03:34
felixsamora left03:34
felixsamora joined03:35
felixsamora left03:35
felixsamora joined03:36
felixsamora left03:36
r0bby_ left03:36
r0bby_ joined03:37
felixsamora joined03:37
felixsamora left03:37
felixsamora joined03:38
felixsamora left03:38
eletuchy left03:38
dyng left03:39
Hoksilato left03:39
dyng joined03:39
Hoksilato joined03:39
sriracha joined03:39
r0bby_ left03:42
pr0ggie joined03:42
sgambino joined03:42
z8z joined03:42
z8z left03:43
tmcmahon left03:43
z8z joined03:43
jokajak joined03:44
sqlnoob joined03:44
dyng left03:44
joelm left03:45
tplaner left03:46
lithiumn left03:49
ToxicFrog left03:50
YoungFrog left03:51
guideX hmm it says "fetch command not found" in the git bash03:52
ToxicFrog joined03:53
Hello71 joined03:53
daito joined03:54
guampa left03:54
oriba left03:54
wagle anyone having trouble with gitk (wish) freezing up from the mavericks/homebrew combo?03:55
mmlac-bv joined03:55
Destos joined03:55
pandeiro left03:55
FrodoTheHobbit joined03:57
FrodoTheHobbit left03:57
simesy_ left03:57
FrodoTheHobbit joined03:58
simesy joined03:58
trusktr left03:58
FrodoTheHobbit left03:58
FrodoTheHobbit joined03:59
JeremyWei joined03:59
trusktr joined03:59
bklane joined04:01
ezio joined04:01
ezio left04:01
ezio joined04:01
trusktr left04:01
simesy left04:03
rodrigovaldes joined04:05
_davetoo left04:05
sgambino left04:06
nurey left04:06
calcifea left04:07
roxtrongo left04:08
trusktr joined04:08
iamjarvo joined04:09
iamjarvo left04:10
iamjarvo joined04:11
SocalNick joined04:12
Hoksilato_ joined04:14
ewnd9 joined04:14
pixelgremlins_ba joined04:14
magnus^^p joined04:15
sonicblud joined04:15
ItSAN____ joined04:15
sword` joined04:15
_Norm_ joined04:16
titusjose_ joined04:16
Drool joined04:16
FatWreckord joined04:16
daito left04:16
acl__ joined04:16
vadviktor__ joined04:16
Nikoli_ joined04:17
daito joined04:17
acl__ left04:17
pdimitrov left04:17
simesy joined04:17
Tacker- joined04:17
M-ou-se_ joined04:18
iamtakin1iteasy joined04:18
ScottE_ joined04:18
ScottE_ left04:18
ScottE_ joined04:18
lusers joined04:18
Andre_work joined04:18
imMute^ joined04:19
imMute^ left04:19
imMute^ joined04:19
maroloccio2 joined04:19
tokkee_ joined04:19
kanzure_ joined04:19
onur_ joined04:19
iamjarvo left04:19
daivyk left04:19
iamjarvo joined04:20
pr0ggie left04:20
pdimitrov joined04:20
mastro left04:21
daito left04:21
ickyb0d- joined04:22
lep2 joined04:22
Invisible joined04:22
cworth` joined04:22
durarara_ joined04:22
Maelstrom joined04:22
spaceplu- joined04:22
jorj_ joined04:22
boblehest_ joined04:22
crazed- joined04:22
HedgeMage_ joined04:22
SirCmpwn_ joined04:22
macabre left04:23
z8z left04:23
Hoksilato left04:23
ojacobson left04:23
jason237 left04:23
ehmatthes left04:23
SimonNa left04:23
Norm__ left04:23
jorj left04:23
tpollard left04:23
zackiv31 left04:23
acl_ left04:23
nfroidure left04:23
Baluse left04:23
ItSANgo_ left04:23
jayrobot left04:23
imMute left04:23
scalability-junk left04:23
zorzar left04:23
Droolio left04:23
qwertz_ left04:23
leprechau left04:23
titusjose left04:23
deryni left04:23
maroloccio left04:23
boblehest left04:23
Alenah left04:23
sword left04:23
surfdue left04:23
ecube left04:23
antoks left04:23
NET||abuse left04:23
iamtakingiteasy left04:23
cworth left04:23
lazers left04:23
pixelgremlins left04:23
crazedpsyc left04:23
Nikoli left04:23
magnus^p left04:23
durarara left04:23
vadviktor_ left04:23
M-ou-se left04:23
onur left04:23
ashooby left04:23
MaelstromLocalPCGuy04:23
lep2leprechau04:23
spaceplu-spacepluk04:23
ezio left04:23
jorj_jorj04:23
ecube joined04:23
Baluse joined04:23
scalability-junk joined04:23
titusjose_titusjose04:24
ezio joined04:24
ezio left04:24
ezio joined04:24
SirCmpwn_SirCmpwn04:24
crazed-crazedpsyc04:24
deryni joined04:25
canoon left04:26
FatWreckord left04:26
chriswk left04:26
zero7 left04:26
milieu joined04:26
preflex_ joined04:26
guideX left04:27
preflex left04:28
preflex_preflex04:28
chriswk joined04:28
lavaman joined04:28
zero7 joined04:29
z8z joined04:29
ehmatthes joined04:30
jason237 joined04:30
qwertz_ joined04:30
CKyle joined04:30
SimonNa joined04:30
antoks joined04:30
ashooby joined04:30
zackiv31 joined04:31
tpollard joined04:31
nfroidure joined04:31
NET||abuse joined04:31
zorzar joined04:31
DrZaius joined04:31
JeremyWei left04:32
wafflejock_ left04:33
nwertman left04:33
pr0ggie joined04:33
CreativeEmbassy joined04:33
Drool left04:35
hyperboreean left04:36
Targen left04:38
acharlieh joined04:38
hyperboreean joined04:39
angelsl joined04:39
lacrosse_ left04:39
eletuchy joined04:40
SocalNick left04:41
PaulCapestany left04:41
calcifea joined04:41
CKyle left04:42
PaulCapestany joined04:42
R1KRDO joined04:42
acharlieh left04:43
sriracha left04:43
Snibble left04:43
R1KRDO left04:44
cesarkawakami left04:45
bklane left04:45
imMute^imMute04:47
str left04:47
dreiss joined04:49
Dougie187 left04:51
AlCoF__ joined04:51
AlCoF__ left04:51
sword`sword04:52
AlecTaylor joined04:53
AlecTaylor hi04:53
It's taking way too long to setup my build environment >.<04:53
Burer joined04:53
AlecTaylor has had to build make, coreutils, gcc, curl, nano, svn and is now building git04:53
yhager left04:54
milki svn is pretty big...04:54
AlecTaylor Yeah, only just fullfilled the dependencies04:54
gcc is also massive04:55
War2 joined04:55
AlecTaylor is currently running `tar xf git-1.8.5.rc0.tar.gz`04:55
wrouesnel joined04:55
luxgeek left04:56
nwertman joined04:57
eaj joined04:57
LuxuryMode joined04:57
snuffeluffegus left04:59
AlecTaylor "Git - the stupid content tracker" - https://code.google.com/p/git-core/04:59
dyng joined04:59
donmichelangelo left05:00
z8z left05:00
imMute also, IRC is not Twitter..05:00
CKyle joined05:00
AlecTaylor ?05:00
r0bby_ joined05:00
shoshin joined05:00
donmichelangelo joined05:01
yhager joined05:03
milki bitlee can connect to twitter just fine05:03
shoshin hello, i'm facing a little problem. I made changes to file main.py and create a commit A. I then modified other files and created a new commit, B. I then realised that i made a mistake in my main.py commit, i made changes to the file and rebased it to commit B instead of commit A. How do i add the change in commit A instead of commit B?05:03
i hope i was clear.05:03
i tried the following.05:03
milki shoshin: !fixup05:03
gitinfo shoshin: 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!05:03
mudmaste_ left05:04
mudmaster joined05:04
shoshin milki git checkout <bad-commit> then git commit --amend -v, it opened up an editor with the code. how do i make modifications to this code? how do i remove the part of code that i don't want?05:05
milki okay, will try it.05:05
dalbertom joined05:05
sword left05:06
shoshin but isn't fixup for merging the contents of 2 commits into one?05:06
i want to maintain them as separate commits. just shift the changes i made from commit A to commit B.05:06
milki the fixup term in an interactive rebase is not what that link is05:08
calcifea left05:08
yhager left05:08
dalbertom left05:09
calcifea joined05:09
daito joined05:11
Tommy[D] joined05:11
lavaman left05:11
AlecTaylor Please no errors!05:12
tar xf git-1.8.5.rc0.tar.gz && cd git-1.8.5.rc0 && ./configure --prefx=/home/student/96/42129796/opt/ && make && make install05:12
{$HOME} I think05:12
SocalNick joined05:13
dhruvasagar joined05:13
Tommy[D]_ left05:14
rchavik joined05:15
beautifulmind joined05:15
calcifea left05:16
Destos left05:17
iamjarvo left05:18
CKyle left05:18
Squarism2 joined05:19
jaimef left05:20
SocalNick left05:20
krixxkraxx left05:22
jaimef joined05:23
oojacoboo left05:23
yhager joined05:24
War2 left05:24
oojacoboo joined05:25
fionnan_ joined05:26
echo-area left05:29
dreiss left05:29
calcifea joined05:30
dreiss joined05:31
yhager left05:32
CKyle joined05:33
AlecTaylor Whooops, that's --prefix >.<05:33
dhruvasagar left05:34
dhruvasagar joined05:36
Xethron joined05:36
Xethron left05:36
Xethron joined05:36
maleknet joined05:37
AlecTaylor Aww man, I need to build OpenSSL for git05:37
joelrobichaud joined05:40
dhruvasagar left05:40
luxgeek joined05:41
dhruvasagar joined05:41
luxgeek left05:46
mj12albert joined05:48
matanya left05:52
nicedice left05:52
the_cybersphinx left05:54
LuxuryMode left05:54
yhager joined05:55
dreiss left05:55
Garen joined05:58
CKyle left05:59
h0bbit_ joined06:00
matanya joined06:01
danmackay joined06:01
yhager left06:03
takamichi joined06:04
juanmabc joined06:05
magu|q left06:05
SoftwareMechanic joined06:05
dreiss joined06:06
PaulCapestany left06:07
fridim_ left06:07
apipkin joined06:08
mribeirodantas left06:08
rhl hi, can anyone explain how to get gitweb to only display repositories in a specified file? also how does one specify to gitweb precisely where the local configuration file should be?06:08
cenuij joined06:09
cenuij left06:09
cenuij joined06:09
dhruvasagar left06:09
dhruvasagar joined06:10
fobius left06:10
arand__ joined06:10
leeN joined06:11
tpollard left06:11
apipkin I thought I'd check here since there are many knowledgable people in here :) I'm trying to ping a domain from my server (where the domain is hosted) and I am getting an unknown host error. I changed the DNS earlier today. Is this just a result of the DNS having not been propagated yet, or is there something else wrong. Other domains on this server are able to be pinged.06:13
dhruvasagar left06:13
jaseemabid joined06:14
ezio left06:15
ezio joined06:16
moritz apipkin: probably just typical DNS caching phenomenon06:17
groglogic left06:17
moritz apipkin: should be allright again after 1 day06:17
thiago why can't you ping? no reply or no resolution to the hostname?06:17
apipkin moritz: thanks! that's what I was hoping, but I couldn't find anything on the internet with a quick recursive search so I figured I'd ask :)06:18
thiago: no resolution06:18
kaictl joined06:18
apipkin I found the issue when i was trying to curl from one domain to another on the same server06:18
thiago apipkin: try resolving directly with the authoritative NS06:18
dyng_ joined06:18
dyng left06:18
Luke-Jr left06:19
irqq joined06:19
apipkin thiago: is that a script I can run or something?06:19
thiago host, dig, nslookup06:19
Luke-Jr joined06:19
thiago all of them can take a parameter saying which NS to query06:19
kcj left06:19
apipkin OH!! I'll give that a shot!06:20
dhruvasagar joined06:20
Search12 joined06:20
lite_ joined06:20
jnavila joined06:20
Search12 left06:21
apipkin Bummer. Plane is landing. Thanks! I'll do the force when I get on the ground if it's still not fixed :)06:22
svector joined06:22
apipkin left06:22
kaictl left06:23
ns5 joined06:24
kaictl joined06:24
JeremyWei joined06:26
TomyLobo joined06:28
daito left06:28
daito joined06:29
yacks left06:31
dhruvasagar left06:32
jnavila left06:32
kaictl left06:33
kaictl joined06:33
daito left06:34
mae_tae left06:35
JeremyWei left06:36
dhruvasagar joined06:37
pantsman joined06:39
juanmabc left06:40
ThomasLocke joined06:41
rchavik left06:41
marthinal joined06:41
kbart joined06:41
Skrypter left06:42
Skrypter joined06:42
joelroa left06:42
mdiers joined06:43
ezio left06:43
Guest22459raar06:43
raar left06:43
raar joined06:43
dhruvasagar left06:43
mr_red left06:43
mr_red joined06:44
dhruvasagar joined06:44
jargon joined06:44
thiago left06:45
MattMaker left06:45
AlecTaylor Damn06:45
http-push.c:17:19: fatal error: expat.h: No such file or directory06:45
rchavik joined06:46
War2 joined06:46
mdiers left06:46
MattMaker joined06:46
daito joined06:47
threesome joined06:47
JohnBat26 joined06:47
matanya left06:48
_RisH__ joined06:51
MattMake_ joined06:52
warbaque_ joined06:52
akher0n joined06:52
przemkov1 joined06:52
Cromulent joined06:53
luto1 joined06:53
zizzfizzix_ joined06:53
gonzzor_ joined06:53
uso_ joined06:53
xdbr_ joined06:53
wereHams1er joined06:54
Jordanw joined06:54
genehack_ joined06:54
chamunks left06:54
fling_ joined06:54
avarab joined06:55
luto left06:55
przemkovv left06:55
warbaque left06:55
fling left06:55
uso left06:55
gunthaa__ left06:55
gonzzor left06:55
dbr left06:55
wereHamster left06:55
kcj joined06:55
lun__ joined06:56
chamunks joined06:56
r0bby_ left06:56
Luke-Jr left06:56
MattMaker left06:56
madewokherd left06:56
MattMake_ left06:56
Luke-Jr joined06:57
Watabou left06:57
mmlac-bv left06:58
robbyoconnor joined06:58
Kabaka left06:59
jaimef left06:59
jaimef joined06:59
netsroht left07:00
uso_ left07:00
JeremyWei joined07:00
War2_ joined07:01
Squarism2 left07:01
pantsman left07:02
PaulCapestany joined07:02
War2 left07:03
Watabou joined07:04
dhruvasagar left07:04
Raging_Hog joined07:04
netsroht joined07:04
dhruvasagar joined07:04
Fandekasp hi there07:04
I want to git subtree add a repo tag, but it fails. Seems to only work with branches, and I can't create a branch with the same name as the tag07:05
How would you go around that limitation ? I really want to git subtree pull v1.0.0 etc, to keep track of my subtree versions07:05
saurabh joined07:06
mlechner joined07:07
soee joined07:08
angelsl left07:08
Sicp joined07:09
Sicp left07:10
deryni submodule?07:10
germanoak joined07:10
angelsl joined07:11
dhruvasagar left07:12
echo-area joined07:12
MattMaker joined07:13
MattMaker left07:13
MattMaker joined07:13
milki "keep track of subtree versions"07:14
o.O07:14
papegaaij joined07:14
milki if you cant do it easily, you're probably using the wrong tool07:14
JeremyWei left07:15
chuckharmston left07:15
_RisH__ left07:16
ciampix joined07:16
woollyams left07:16
ns5 left07:17
dhruvasagar joined07:18
angelsl left07:18
webguynow joined07:19
eijk joined07:19
Octalot joined07:20
nilg joined07:20
angelsl joined07:20
JeremyWei joined07:20
angelsl left07:21
matanya joined07:22
fling_fling07:22
angelsl joined07:23
Squarism joined07:24
Gamecubic left07:24
TomyLobo left07:25
freimatz joined07:25
zapb joined07:25
freimatz hi07:26
thevishy left07:26
mj12albert left07:27
galaris joined07:28
MattMaker left07:29
_iron joined07:30
cyphase left07:31
dhruvasagar left07:31
dhruvasagar joined07:32
halu joined07:32
cyphase joined07:32
Nibato left07:33
_RisH__ joined07:34
arand joined07:35
JeremyWei left07:35
jwmann left07:35
Abbas- left07:36
mastro joined07:36
eaj left07:36
eaj joined07:37
rudak joined07:37
galaris left07:38
Nibato joined07:38
robertnix joined07:38
dhruvasagar left07:39
jonez left07:39
dhruvasagar joined07:39
fRAiLtY- joined07:41
eaj left07:42
simesy left07:45
Cromulent left07:45
drizzd joined07:45
simesy joined07:45
Zarthus joined07:46
threesome left07:47
rafaqueque joined07:47
lite_ I accidentally comitted(and pushed) to the wrong branch - What do I do ?07:47
_ikke_ What do you want to happen?07:47
irqq left07:48
banisterfiend left07:48
joelrobichaud left07:48
GT4066 joined07:49
irqq joined07:49
lite_ I want to delete the commit(and the push) from the "wrong" branch and commit(and push) the changes to the right one07:49
Nibato left07:49
luto1luto07:49
h_kon joined07:50
simesy left07:50
joelroa joined07:50
JeremyWei joined07:50
dhruvasagar left07:51
dhruvasagar joined07:51
jonez joined07:52
rafaqueque left07:52
lite_ _ikke_: do you understand what im trying to accomplish or am I uexplaining it horribly?07:52
glosoli joined07:52
_ikke_ lite_: Do you know where the wrongly pushed branch pointed to before you pushed to it?07:53
War2_War207:53
War2 left07:53
War2 joined07:53
lite_ what do you mean?07:53
_Norm_ left07:53
lite_ I pushed to origin/master where i wanted to push to origin/release-branch07:53
deryni What revision was origin/master at before you pushed?07:54
arvind_khadri joined07:54
calcifea left07:55
lite_ HEAD ?07:55
leeN left07:56
_ikke_ HEAD is not a revision07:56
lite_ i dont know what you mean then.07:57
calcifea joined07:57
deryni Before you pushed your changes what would someone checking out master have gotten as the current revision?07:57
matanya left07:58
luckyruby joined07:58
Hoksilato_ left08:00
sonicblud left08:01
robertnix2 joined08:01
raar left08:02
aspiers left08:02
robertnix2 left08:02
lite_ By revision I understand a specific commit(Identified by SHA). I dont understand how this helps anyone.08:02
arand left08:02
drizzd left08:02
simesy joined08:03
jayrobot joined08:03
_ikke_ lite_: Because you need it to reset the branch back to where you want it08:03
intellix joined08:03
raar joined08:03
War2_ joined08:03
lite_ so the revision before the one I comitted is the one I need to get "back to"08:03
raarGuest1836408:03
War2 left08:04
_ikke_ lite_: if you made and pushed one commit, then yes08:04
deryni The revision of master before you pushed your changes, yes.08:04
robertnix left08:04
cenuij left08:06
lite_ I only made and pushed one commit, yes. so what do I do? My initial plan was git reset --soft HEAD^. then git checkout correct-branch and commit08:06
Finally do git revert HEAD08:06
would this be what I need?08:07
_ikke_ no, you don't need git revert08:07
lite_ oh08:08
_ikke_ If you made and pushed on commit, you do: git push -f origin HEAD^:master08:08
while on the master branch08:08
lite_: On what branch did you create the commit locally?08:08
lite_ master08:08
_ikke_ ok08:08
intellix left08:09
_ikke_ then that command should work08:09
lite_ ok. where will that leave the changes I need to commit to release branch ?08:09
_ikke_ lite_: Just in your master branch08:09
Do you want that commit in another branch locally?08:09
lite_ I want the "wrong" commit to be pushed onto the release branch and removed from master08:10
_ikke_ Also locally?08:10
lite_ sure?08:10
matanya joined08:11
lb1a joined08:11
renatow_ left08:11
chovy joined08:11
lite_ correction: yes, i do08:11
_ikke_ git branch <relase-branch>; git reset --hard HEAD^; git push -f origin master; git push -u origin <release-branch>08:11
reset --hard will remove any locally uncomitted changes though08:12
lite_ thats fine - there are none08:12
thierryp joined08:12
lite_ uhm08:12
m0viefreak left08:13
lite_ why are you doing git reset --hard HEAD^ on release branch ?08:13
deryni He isn't.08:13
DANtheBEASTman left08:13
luckyruby Hi, I'm looking for some advice on what to do if a series of commits were made by someone else in error. I made it worse by committing changes after the erroneous commits. What I would like is to rollback to the commit right before the first bad commit, then reapply all the later commits excluding the bad ones. Is that possible?08:13
deryni git branch doesn't change the active branch.08:13
dhruvasagar left08:13
DANtheBEASTman joined08:13
deryni You can revert all the bad ones if that's what you want, otherwise you want to rebase from the last known good commit and drop all the bad commits.08:13
dhruvasagar joined08:13
deryni Revert doesn't rewrite history, rebase does.08:14
lite_ i dont want to rewrite history. afaik thats bad practice and can cause issues when we're multiple developers workin on the same branch08:14
milki luckyruby: !fixup08:15
gitinfo luckyruby: 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:15
chovy i did a 'git init --bare' on a deploy server, how do I push my working git project to it?08:15
the working git project is a different repo.08:16
harobed_ joined08:16
lite_ _ikke_: what is being pushed to release branch here: git push -u origin <release-branch> ?08:16
Goplat left08:16
netiul joined08:16
netiul left08:16
netiul joined08:16
deryni The current location (since it was branched before you reset).08:16
shruggar joined08:16
deryni chovy: You have a local repo that you want to push to a newly created remote repo?08:17
lb1a luckyruby, !revert08:17
gitinfo luckyruby: That's a rather ambiguous question... options: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard uncommitted changes in the working tree [git reset --hard]; c) undo committing [git reset --soft HEAD^]; d) restore staged versions of files [git checkout -p]; e) move the current branch to a different point(possibly losing commits)[git reset --hard $COMMIT]?08:17
ecube left08:17
_ikke_ lite_: git branch <branch-name> creates a new branch based on the current commit08:17
lite_ deryni: when doing the git branch release-5.2 i get fatal: A branch named 'release-5.2.0' already exists.08:17
chovy deryni. yeah. i'm following the "Git" instructions here...http://clock.co.uk/tech-blogs/deploying-nodejs-apps but this assumes i'm starting fresh with a brand new repo for the project. I already have code written and is hosted on bitbucket. I want to use this deployment technique however.08:17
luckyruby deryni: thanks08:17
Watabou left08:17
_ikke_ lite_: So you already made that branch, and the commit needs to be moved?08:18
lite_ yes08:18
pantsman joined08:18
pantsman left08:18
pantsman joined08:18
deryni chovy: Add the new repo as a remote and push to it.08:18
_ikke_ lite_: ok08:18
lite_: hold on08:18
chovy deryni? that's it? it won't conflict with bitbucket?08:18
zorbash joined08:19
GT4066 left08:19
jceb__ joined08:19
deryni A repo can have multiple remotes.08:19
_ikke_ lite_: git checkout master; git branch tmp; git reset --hard HEAD^; git rebase --onto release-5.2 master tmp; git checkout release-5.2; git merge tmp; git branch -d tmp;08:20
lite_ _ikke_: but i dont want to rebase if I can avoid it.08:20
deryni You don't want to rebase master. You want to rebase changes from master to your release branch.08:21
galaris joined08:21
noname001 joined08:21
ixian left08:21
gerard0 left08:21
ixian joined08:21
chovy deryni: so then i just do git push origin live?08:22
_ikke_ lite_: Why do you want to avoid it? It's just a way to move commits08:22
lite_ ok08:22
_ikke_ and you are force pushing anyway08:22
arand joined08:22
batrick joined08:23
gerard0 joined08:23
lite_ _ikke_: mind walking me through what happens here :git rebase --onto release-5.2 master tmp08:24
deryni chovy: If live is your branch name, yes. Though you might need live:live and presumably you don't want to use origin if you want to keep bitbucket as origin.08:24
canton7 take everything between master and tmp, and rewrite it to sit on top of release-5.208:24
there's a nice graphical example in man git-rebase08:24
gitinfo the git-rebase manpage is available at http://jk.gs/git-rebase.html08:24
averell joined08:24
beautifulmind left08:25
johanhar joined08:25
chovy deryni: http://pastie.org/private/jg4j5wtqu8uuruqli7erq08:25
neither worked08:25
the first one is trying to push to bitbucket it seems.08:26
deryni Right, because neither of those is correct.08:26
lun__ left08:26
deryni git push <remote> <refspec>08:26
Your first was 'git push <remote> <remote>' and your second was 'git push <some-other-remote>'08:26
You need 'git push live <branch>'08:26
lun__ joined08:26
deryni Possible '<branch>:<branch>' I'm not sure.08:26
chovy what is <branch>08:27
deryni Your branch name.08:27
Probably master.08:27
johanhar Hi. I'm new to Git and need help with structuring my project. I have a library of code in a repository. Then I want to make various projects in each their repository, with a reference to the library. Is this possible with Git? Can I include a repository from a repository?08:27
chovy deryni: ok08:27
_ikke_ johanhar: !subprojects08:27
gitinfo johanhar: So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely separate. Otherwise your best options are "!submodule", "!gitslave", and "!subtree". Try those commands in this channel, or in a PM to avoid flooding.08:27
sparq_ joined08:27
juril joined08:28
sqlnoob left08:28
luckyruby deryni: if I revert the bad commit, but later want to reapply it, would I just revert the revert?08:29
PaulCapestany left08:30
pfFredd joined08:30
lun__ left08:32
matanya left08:32
sparq_ left08:32
moritz yes.08:32
aChatir joined08:32
moritz or cherry-pick the original commit08:32
deryni What he said.08:32
aChatir left08:32
matanya joined08:33
dhruvasagar left08:34
chovy is post-recieve hook gone?08:34
dhruvasagar joined08:34
chovy i don't see it.08:34
_ikke_ man githooks08:35
gitinfo the githooks manpage is available at http://jk.gs/githooks.html08:35
chovy i don't see a post-receive.sample08:36
i guess they don't include one?08:36
_ikke_ Correct08:37
cmpera joined08:39
jarr0dsz joined08:40
jarr0dsz left08:41
j0ran1 left08:42
tfnico left08:44
mancha Is there an easy way to take a set of commits and make a single patch out of them?08:44
j0ran1 joined08:44
Gonzo89 joined08:44
tfnico joined08:44
mancha some are mutually exlusive but others make changes to the same file so they would have to be "processed" in the order I give.08:45
johanhar left08:46
takamichi left08:46
eaj joined08:46
takamichi joined08:46
Sonderblade joined08:47
Sonderblade left08:47
pdimitrov left08:48
DANtheBEASTman left08:48
Sonderblade joined08:48
chrisss404 joined08:48
deryni Are they sequential commits?08:48
johanhar joined08:48
kewah joined08:49
moritz mancha: start a new branch, do an interactive rebase to get them in the order (and squash them) that you want them, and then use git format-patch08:49
mdiers joined08:49
pdimitrov joined08:50
mancha moritz: the git branch has hundreds of commits and i only need 6. won't this be a long way to do this?08:50
ayaz joined08:50
jatt joined08:51
moritz mancha: you can throw away those commits you don't need08:51
pr0ggie left08:51
moritz mancha: and you don't need to go back the whole branch, just before the first commit you want08:51
mancha right, but i would have to keep throwing away hundreds of commits, right?08:51
deryni "keep"?08:52
moritz mancha: you don't have to, unless you want to08:52
alorence joined08:52
kermit left08:53
pr0ggie joined08:54
dhruvasagar left08:54
mancha ok, so i checkout a temp branch, reset to before the 1st commit, and rebase interactively....08:54
thanks!08:54
pantsman left08:55
dhruvasagar joined08:55
konadr joined08:55
zapb left08:55
dhruvasagar left08:58
psoo joined08:58
Gavrisimo joined08:58
ngladitz joined09:00
dhruvasagar joined09:00
threesome joined09:00
cenuij joined09:00
cenuij left09:00
cenuij joined09:00
DANtheBEASTman joined09:01
bwreilly left09:01
SimonNa left09:01
lite_ _ikke_: after doing the git reset --hard HEAD^ i am now behind by 1 commit(obviously)09:02
dhruvasagar left09:02
lite_ (do you remember my original issue from a few hours ago) ?09:02
j0ran1 left09:03
_ikke_ After that, you need to push -f origin master09:03
Guest35083 left09:04
lite_ remote: permission denied to force push branch master09:04
dhruvasagar joined09:05
Rob___ joined09:05
ezekielnoob joined09:07
j0ran1 joined09:08
chinychinchin joined09:08
sebhoss joined09:08
hoschi joined09:09
weiyang left09:10
eaj left09:10
_ikke_ lite_: Then you have a problem :-/09:10
!rewrite09:10
gitinfo [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum09:10
jas4711 left09:12
Dev1L joined09:12
Norm_ joined09:12
gitinfo set mode: +v09:12
Dev1L I have 2 branches and I want to merge them but without the merge commit. --no-commit just leaves out all commits (even those that come with the merge)09:13
johanhar left09:13
mlechner left09:13
galaris left09:14
Dev1L I just want to "move" my work from one branch to another without creating any additional commits09:14
_ikke_ You have to create at least one commit09:14
Or do you only want them in you work tree?09:14
DANtheBEASTman left09:14
Dev1L Branch B is ahead of branch A with 3commits09:15
galaris joined09:16
Ziber left09:16
SamB left09:16
Dev1L I'd like to "move" those 3 commits to branch A and push. Without creating a merge commit. This isn't possible is it?09:16
_ikke_ Dev1L: You can rebase them09:16
Dev1L i didn't see a rebase flag for the merge?09:16
_ikke_ rebase is a different commadn09:17
command09:17
Ziber joined09:17
SamB joined09:17
Dev1L oh, i was used to pull --rebase, that's why09:17
echo-area left09:17
_5kg left09:17
_ikke_ yeah, that's because, by default, pull = fetch + merge. pull --rebase = fetch + rebase09:18
lite_ _ikke_: is there no way to simply "create a new commit" which in reality is HEAD^ and oush it ?09:19
push*09:19
dhruvasagar left09:19
bobdobbs hey guys. I'm looking for a video on git. I think it was from a meetup. It's presented by a woman, and she uses lots of postit notes.09:19
joelmo joined09:19
simesy left09:19
intellix joined09:19
simesy joined09:19
bobdobbs Does anyone know which video it is?09:19
dhruvasagar joined09:19
simesy left09:20
simesy joined09:20
JeremyWei left09:20
Misan joined09:20
rendar joined09:20
lidamao joined09:20
bobdobbs someone here gave me a link to it.09:21
ewnd9 left09:21
kwmiebach joined09:23
pasky_pasky09:23
lidamao left09:24
lite_ What does git push origin +HEAD do ?09:25
Dev1L _ikke_: i should be doing: "checkout branch B" (which is ahead of A) and then "rebase A" right?09:25
dreiss left09:25
Dev1L it says that Current branch B is already up-to-date, which is wierd because it should put B changes onto A?09:25
oh, no. I think I got this now09:27
LimeBlast joined09:27
aChatir joined09:27
buzzybron joined09:27
dhruvasagar left09:29
sgambino joined09:32
ItSAN____ left09:32
snql joined09:33
War2_ left09:34
MrKeys88 joined09:34
victorbjelkholm joined09:34
dhruvasagar joined09:35
raonyguimaraes joined09:36
marhaban joined09:37
valtido left09:38
maleknet left09:38
howlymowly joined09:39
Cerise left09:40
SergeyPenkin joined09:41
SergeyPenkin Is it correct way to look up all changes made to a file for the given branch: git log dev -- some/path/tofile?09:42
banisterfiend joined09:42
_ikke_ Almost, because it will not be limited to the dev branch this way09:42
SergeyPenkin _ikke_, what do you mean?09:43
pr0ggie left09:43
pdimitrov left09:43
pr0ggie joined09:43
pdimitrov joined09:43
xrogaan joined09:44
xrogaan left09:44
xrogaan joined09:44
danillonunes left09:44
joelroa left09:44
SergeyPenkin You mean also the branch from which dev was branched off?09:44
_ikke_ yes09:45
zarubin joined09:46
dhruvasagar left09:46
pfFredd left09:46
dhruvasagar joined09:46
takamichi left09:49
achadwick joined09:49
harish left09:49
msch joined09:50
jargon left09:50
msch is there a tool where I can easily look back further in the history when blaming?09:50
e.g. I see this line came from this commit, but where did the line it removed come frome?09:50
and so on09:50
luckyruby left09:51
maleknet joined09:52
m0ltar joined09:52
takamichi joined09:53
ItSANgo joined09:55
j0ran1 left09:55
j0ran1 joined09:55
whatwhatinthebut joined09:55
marhaban left09:56
YoungFrog joined09:56
jargon joined09:56
EvilDMP joined09:57
jast EugeneKay: no, but thanks for letting me know. ;)09:58
dhruvasagar left09:58
dhruvasagar joined09:59
spal left10:00
konadr left10:00
mlechner joined10:00
ewnd9 joined10:01
Radditz joined10:01
GT4066 joined10:01
Frank_qa joined10:01
kas84 joined10:02
kas84 hi10:02
Frank_qa can anyone tell does git fetch+git merge = git pull?10:02
mdiers left10:02
kas84 hey, I want to ignore all .idea folder an its subfolders10:02
Neptu hej if my branch is in the past and I want to discard all my changes (did some git add already) how can i do that10:02
kas84 how can i do that with gitignore10:02
I am doing .idea/** but it's not working10:03
Neptu git checkout will not fix it so far for me10:03
kas84 same thing with .DS_Store files10:03
YoungFrog Frank_qa: from my naive point of view, yes.10:03
germanoak left10:03
SergeyPenkin Frank_qa, "Incorporates changes from a remote repository into the current branch. In its default mode, git pull is shorthand for git fetch followed by git merge FETCH_HEAD."10:03
dhruvasagar left10:03
Abbas- joined10:03
germanoak joined10:03
germanoak left10:04
mdiers joined10:04
DanielFGray joined10:04
Frank_qa SergeyPenkin, so if i failed with git fetch, i will also fail with git fetch, right?10:05
SergeyPenkin No, fetch will download Git objects anyway.10:06
aChatir left10:06
darkangel joined10:06
jon_r joined10:06
darkangel Has anyone used stashing with EGit?10:06
marhaban joined10:06
rath joined10:06
galaris left10:06
davividal joined10:07
War2 joined10:07
Frank_qa left10:09
dhruvasagar joined10:09
darkangel I thought that stashing clears the working directory?10:10
YoungFrog framling: depends on where your typo is, actually. If you failed with git fetch, it'll fail with git pull -- but if you failed with git pull, git fetch might work fine (it jsut needs access to the remote...)10:10
framling: sorry, tab completion error10:10
mdiers left10:11
YoungFrog that was for Frank_qa but he left and I did not notice10:11
framling No worries10:11
galaris joined10:11
War2 left10:12
jast darkangel: normally it discards uncommitted changes, yes. of course it's possible that EGit does things differently; it doesn't use the standard implementation at all10:12
spal joined10:12
cmpera left10:13
ak5 joined10:13
darkangel jast: I tried using Git Bash on Windows as well, and it also doesn't work. :(10:13
asQuirreL joined10:13
Kabaka joined10:13
ak5 hi, I want to merge branch into master, however, I want to keep one file different in the branching I am merging into master. Do I need to merge twice if I want masters changes in that branch?10:14
/s/branching/branch10:14
cmpera joined10:15
simesy left10:15
simesy joined10:16
jon_r left10:17
PaulCapestany joined10:19
marhaban left10:19
jargon left10:19
simesy left10:20
cads left10:21
Radditz left10:21
tvw joined10:22
_5kg joined10:23
cads joined10:23
hyperair left10:23
galaris left10:23
galaris joined10:24
armin_w joined10:24
spaceonline joined10:25
dfanjul joined10:25
lite_ I am in branch A, and up to date with my remote. In this case - what would 'git revert HEAD' do ?10:25
Skrypter left10:25
ewnd9 left10:25
lb1a ak5, you cant keep anything different in a branch when you commit it to that branch, and merge it afterwards10:25
mdiers joined10:26
spaceonline_ left10:27
lun__ joined10:27
chovy how do i delete my cached username?10:27
_ikke_ cached username?10:27
lb1a chovy, what are you talking about?10:27
chovy well, its using the wrong username10:28
i think10:28
it keeps telling me my password is wrong.10:28
lb1a chovy, !repro10:28
gitinfo chovy: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting.10:28
SamB chovy: maybe you have the wrong URL?10:28
spaceonline left10:29
chovy oh nevermind.10:29
lb1a "it"... what is it? please provide more details10:29
chovy yeah i do.10:29
dhruvasagar left10:29
stodan joined10:30
dhruvasagar joined10:30
delasteve left10:31
lun__ left10:31
darkangel I want to clear local changes, so I do this: git checkout . (as mentioned here: http://stackoverflow.com/a/1146981/221528) but it doesn't do anything!!???10:32
Squarism left10:32
armin_w darkangel, #git10:33
darkangel armin_w: Huh?10:34
armin_w there is a git channel10:34
germanoak joined10:34
germanoak left10:34
darkangel armin_w: And we're in it?10:34
armin_w haha10:35
armin_w slaps himself10:35
darkangel lol10:35
armin_w not enough coffee today apparantly10:35
g3orge joined10:35
darkangel I think it's bc they are untracked files. I'm new to Git.10:35
chovy left10:35
armin_w yes that might be10:35
GT4066 left10:35
g3orge why is git grep so fast? do it assumes something that only exists in git repos or something??10:35
moritz darkangel: you can delete untracked files with git clean10:35
GT4066 joined10:36
Abbas- left10:36
darkangel moritz: Thanks, reading this: http://stackoverflow.com/questions/1090309/git-undo-all-working-dir-changes-including-new-files10:36
Abbas- joined10:36
moritz g3orge: well, first of all it doesn't have to do all the crazy directory traversal that recursive grep has to do, becuase it knows exactly what files are tracked10:36
mackanfkp joined10:37
lb1a darkangel, git clean -f ( careful, deletes things)10:37
moritz g3orge: and then it reads objects that are stored in compressed form, so it has to do less IO than normal grep10:37
jkremser joined10:37
jkremser left10:37
jkremser joined10:37
darkangel lb1a: Yep thanks.10:37
moritz darkangel: and maybe add -d if you need that (man git clean)10:37
gitinfo darkangel: the git-clean manpage is available at http://jk.gs/git-clean.html10:37
jargon joined10:38
lb1a darkangel, and to clear changes to tracked files use "git checkout -- <path>"10:38
darkangel Thanks.10:38
simesy joined10:38
g3orge thx moritz10:38
nnyk_ joined10:40
ezekielnoob left10:41
QoS joined10:41
luc_ left10:41
simesy left10:42
simesy joined10:42
user258467 left10:43
worblehat joined10:43
lugzer joined10:43
lugzer hi10:43
danillonunes joined10:45
AlecTaylor I'm getting an error when trying to `make` git:10:46
make: Fatal error: Unknown option `-C'10:46
Makefile:1793: recipe for target 'perl/perl.mak' failed10:46
AlecTaylor doesn't care about Perl, can he build without it?10:46
jargon left10:46
simesy left10:47
cmn left10:48
_ikke_ You may not care about perl, git does10:49
AlecTaylor Looks related to this - http://git.661346.n2.nabble.com/Compiling-fails-on-SunOS-td6063871.html10:49
But I am using GNU Make 4.0 :\10:49
joelmo left10:50
grawity the root Makefile has all options described in a comment – NO_PERL=1 should work10:50
jaimef left10:50
worblehat left10:50
cmn joined10:51
dhruvasagar left10:51
AlecTaylor grawity: That's: `make --NO_PERL=1`?10:51
dhruvasagar joined10:51
grawity no, `make NO_PERL=1`10:51
kenperkins_ joined10:52
_ikke_ it's an env variable10:52
AlecTaylor Thanks, it's building now10:52
grawity although I only see all makefiles using $(MAKE) -C, so I don't know why they should suddenly run anything other than the same `gmake` as originally ran10:52
kriks joined10:52
grawity (see the last post in that thread, for example)10:52
codemagician joined10:52
kenperkins left10:53
AlecTaylor mmm, and besides; I built my own make and that is the first link in PATH to make and gmake10:53
grawity maybe it's resetting PATH somewhere :/10:53
generally, use `gmake` :P10:53
AlecTaylor :\ - I set my PATH in .bash_profile10:53
codemagician if i checkout a feature branch 'features' and then do git checkout -b another, is 'another' a branch from the first branch or from master?10:53
nettoweb joined10:54
moritz it branches off of 'features'10:54
_ikke_ codemagician: It uses the current branch10:54
dsdeiz left10:55
dsdeiz_ joined10:55
grawity it only makes a difference when 'features' and 'master' are on different commits, of course10:55
LBV_User joined10:55
h_kon left10:55
flujan joined10:55
guampa joined10:56
codemagician i had a 'feature' branch on which I was working. I did a whole lot of changes. Then I needed to do a minor change to a single file, which I intended to change in isolation, so I did git checkout -b feature/minorchange and did the minor change. when i merged the feature/minorchange to the master branch i got all the work i'd done in the first branch10:56
grawity yes, that's the way it works10:57
flujan hello guys. A colleague by mistake, just pushed a lot of binaries to our repository.10:57
codemagician but when i type git branch -l i get a flat list10:57
flujan how can I completely remove this single commit from the repository?10:57
selckin codemagician: by default it branches of the current branch, you wanted to branch of master, not your branch10:57
grawity codemagician: there is no hierarchy in branches – the only thing that matters is what commit you started from10:57
codemagician i see10:58
moritz flujan: drop it in an interactive rebase, and then do a force-push10:58
grawity codemagician: and `git checkout -b <new branch>` just continues off the current HEAD10:58
Misan left10:58
moritz flujan: do that with all branches that reference this file10:58
lb1a https://help.github.com/articles/remove-sensitive-data10:58
grawity codemagician: (if you wanted to start fresh from master, you'd need to `git checkout -b <new branch> master` instead)10:58
codemagician is there a way to prevent branching whilst "inside" another topic branch?10:58
flujan moritz: do you have a reference/10:58
h_kon_ joined10:58
grawity codemagician: no, that absolutely doesn't make sense in Git10:58
lb1a flujan, https://help.github.com/articles/remove-sensitive-data10:58
QoS left10:58
qknight joined10:59
lb1a flujan, but in your case a simple (interactive) rebase and a push -f should do fine. ( what moritz said)10:59
codemagician so I guess I just have to be careful to checkout the master first and then start a new branch from there? I suppose git checkout -b feature/minorchange master ensure this10:59
grawity yes, `git checkout -b feature/minorchange master` means the new branch will start at the same commit as master.11:00
codemagician Does git checkout -b feature/minorchange master switch back to the master branch and then create the branch11:00
grawity codemagician: (in the future, using `tig --all` or `gitk --all` or `gitg --all` may make things clearer)11:00
flujan lb1a: moritz do you have a reference of this?11:00
the_cybersphinx joined11:00
grawity codemagician: no, it doesn't need to switch back to the master branch11:00
lb1a flujan, or if you feel uncomfortable about a rebase, you can reset (hard) to the commit before the bad one and do a force push11:00
simesy joined11:00
grawity codemagician: because creating a branch is nothing more than writing the commit SHA1 to a file in .git/refs/heads/feature/minorchange11:00
codemagician what will happen if there are uncommitted changes on the feature/majorchange checked out branch?11:01
grawity codemagician: so `git checkout -b` does that, and *then* it switches to the newly created branch11:01
codemagician i see11:01
grawity codemagician: uncommited changes remain if they don't conflict11:01
lb1a flujan, what else do you need?11:01
Ivo left11:01
lb1a it's just those 2 commands11:01
grawity codemagician: if they do conflict, git will just refuse to check out the new branch until you a) commit, or b) stash, those changes11:01
codemagician right i see11:01
flujan lb1a: but I don´t want to loose the newer commit. The wrong commit is 5 commits older.11:01
grawity !float11:01
gitinfo If you have made a change in your working directory and have NOT YET COMMITTED, you may "float" that change over to another (`git checkout oldbranch`) or new (`git checkout -b newbranch`) branch and commit it there. If the files you changed differ between branches, the checkout will fail. In that case, `git stash` then checkout, and `git stash apply` and go through normal conflict resolution.11:01
danillonunes left11:02
lb1a flujan, git rebase -i <sha of the commit before the bad one> ; mark the bad one as drop; complete the rebase; git push -f <repo> branch11:02
penguin42 joined11:02
codemagician grawity: but if i want to make sure my feature/minorchange doesn't include anything from my feature/majorchange then would it be a good idea to commit my changes, switch the master branch, then git checkout -b feature/minorchange in that order11:02
grawity codemagician: commit your changes, yes11:02
flujan lb1a: ok thanks I will give it a try.11:03
grawity codemagician: but the 2nd and 3rd steps do not need to be separate11:03
codemagician: `git checkout -b feature/minorchange master` will achieve the exact same thing11:03
raonyguimaraes left11:03
lb1a flujan, if you need help with rebase see the man git rebase manpage11:03
gitinfo flujan: the git-rebase manpage is available at http://jk.gs/git-rebase.html11:03
jceb joined11:03
codemagician grawity: so it's telling it explicitly to create the new branch from the master11:03
grawity codemagician: yes11:04
jcebGuest2110111:04
lb1a flujan, maybe this http://git-scm.com/book/en/Git-Tools-Rewriting-History or that https://help.github.com/articles/interactive-rebase helps11:04
codemagician if i were to graph my branches would i have master->major->minor i.e. a branch off of an existing topic branch?11:04
DanielFGray left11:04
germanoak joined11:04
grawity codemagician: Git does not track such information11:04
abrkn joined11:05
flujan lb1a: Just one last question, people that already pulled from my repo will need to clone again? Since I am rewriting history?11:05
cmpera left11:05
grawity codemagician: it only uses the commit history to determine what each branch 'looks like'11:05
abelsiqueira joined11:05
codemagician grawity: what would be a good way to prevent other developers in my team repeating this mistake?11:05
DANtheBEASTman joined11:05
lb1a flujan, not clone again, but they should be notified that your rewrite history and should bringt their repos up to the current state before working any further11:05
jceb__ left11:05
grawity flujan: they'll have to `git reset` (maybe `--hard`) to the new commit11:05
lb1a flujan, see !rewrite11:05
gitinfo flujan: [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum11:05
grawity codemagician: teach them how to undo it if it happens :)11:06
lb1a flujan, the link explains recovering from upstream11:06
codemagician i already merged my minor branch into the master11:06
grawity codemagician: and, looking at the branch's history after every merge is kind of a good idea11:06
flujan lb1a thank you.11:06
codemagician you mean git log and check the last few commit messages11:06
?11:07
grawity codemagician: more like tools like `gitk`, `tig`, `gitg`, or even `git log --graph --oneline --decorate` – optionally with `--all` to see all branches11:07
glosoli left11:07
grawity codemagician: in other words, to take a look at the actual commit graph, instead of the "flattened" history that a bare `git log` shows11:07
lb1a codemagician, !lol11:07
gitinfo codemagician: A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all11:07
tvw left11:08
buzzybron left11:08
xdbr_ left11:08
germanoak left11:09
dsdeiz joined11:09
kai__ joined11:10
dhruvasagar left11:10
spal left11:10
jatt left11:10
codemagician cool. thanks for your helps guys11:10
dhruvasagar joined11:11
dsdeiz_ left11:11
resmo joined11:12
Abbas- left11:12
danillonunes joined11:12
abelsiqueira left11:13
abelsiqueira joined11:13
lb1a codemagician, you can also setup an alias for that, if you're planning to use this more often. git config (--global) alias.lol log --oneline --graph --decorate --all11:13
codemagician good idea11:13
ItSANgo left11:14
donmichelangelo left11:15
banisterfiend left11:15
zarubin left11:15
dyng_ left11:16
donmichelangelo joined11:16
dyng joined11:17
ewnd9 joined11:17
simesy left11:18
simesy joined11:18
darkangel left11:20
PaulCapestany left11:20
daito left11:20
rob_w joined11:21
aard joined11:21
daito joined11:21
paulweb515 left11:21
Nibato joined11:22
armin_w left11:22
banisterfiend joined11:22
simesy left11:23
dhruvasagar left11:23
flujan left11:24
EvilDMP left11:24
lugzer left11:25
nnyk_ left11:25
osse deryni: technically there's no need to provide the sha in the output when you use --contains. I suppose that's why11:25
arvind_khadri left11:26
daito left11:26
kcj left11:26
maleknet left11:27
nnyk_ joined11:27
VictorCL joined11:28
asakura left11:28
dhruvasagar joined11:28
guampa left11:28
harobed_ left11:28
guampa joined11:29
konadr joined11:30
asakura joined11:30
johnw joined11:31
_RisH__ left11:31
noname001 left11:31
KeiKun_ joined11:32
KeiKun_KeiKun11:32
kewah left11:32
gitinfo set mode: +v11:32
Entomo left11:33
PeterBooker joined11:33
noname001 joined11:33
johnw left11:34
srji joined11:35
dyng left11:36
JohnBat26 left11:36
dyng joined11:36
lugzer joined11:36
dr_lepper left11:37
dr_lepper joined11:37
jargon joined11:37
rafeca joined11:38
netiul left11:38
Stygia joined11:39
dyng left11:40
str joined11:41
harobed_ joined11:42
rafeca left11:43
gitinfo set mode: +v11:43
ddr2 joined11:45
johanhar joined11:46
rafeca joined11:46
AlecTaylor YAY11:46
str left11:46
AlecTaylor $ git --version11:46
git version 1.8.5.rc011:46
lugzer left11:46
freestyl3r joined11:47
AlecTaylor Didn't need any of those NO_PERL stuff, just had to override SANE_TOOL_PATH11:47
halu left11:47
AlecTaylor ^ _ikke_, grawity ^11:47
asQuirreL left11:47
johanhar I have a submodule. I did some changes in the submodule but not from the repository that "hosts" the submodule, I did the changes in a working copy for that submodule, pushed the changes and I can see in github that the changes were made. Now when I'm in the working copy that "hosts" the submodule, I'm not able to pull or update or whatever those c11:48
hanges... I have tried "git submodule update", and "git merge origin/master". I have tried to go into the submodule folder and do "git pull". Nothing :(11:48
jaimef joined11:48
kwmiebach left11:49
kwmiebach joined11:49
maleknet joined11:50
dyng joined11:50
MrKeys88 left11:51
_ikke_ johanhar: What do you mean with, nothing11:51
Gavrisimo left11:51
Droolio joined11:52
simesy joined11:52
johanhar _ikke_: Nothing happens. But I found a ticket/thread on stackoverflow. I had to checkout master and then pull from within the sub, then go back to the "host" and commit and push changes.11:52
sebhoss left11:54
joelmo joined11:55
gitTom left11:58
konadr left11:58
konadr joined12:00
Intensity joined12:00
dyng left12:01
cbreak-work joined12:02
Intensity Hi. I'm trying to understand both why "git rebase -p origin/master" continues to repeat its efforts (multiple steps) when I run it again, and why a "git push origin featurex" seems to do nothing.12:02
dyng joined12:02
johanhar left12:02
banisterfiend left12:03
LBV_User left12:03
msch left12:03
Intensity Also, there seems to be no real log entries around those steps. I would have expected that once I've rebased, the processing wouldn't be repeated again (28 steps). And I'd expect that the push would send upstream the results of the rebase.12:04
chinychinchin left12:04
stepps joined12:04
chinychinchin joined12:04
stepps hi12:05
gitinfo stepps: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.12:05
stepps I am setting up it to work with an existing redmine and I have some issues getting the local clone of the repo to sync12:06
osse I'm using filter-branch to rewrite my commits to change my email address but my tags' author info aren't changed. How do I also rewrite the tags?12:06
dyng left12:06
stepps I have a bare repo locally, and I have tried "git --bare fetch --all" and "git fetch --all" but it looks like I am doing something wrong12:07
_ikke_ osse: use --tag-name-filter cat12:07
ddr2 left12:07
_ikke_ (while doing the rewriting)12:07
osse _ikke_: I am. I know the tag is rewritten because it points to the rewritten commit, but the "Tagger:" info still contains the old email address12:08
_ikke_ Are you using annotated tags?12:08
osse yes12:08
_ikke_ Not sure if git-filter-branch can rewrite annotated tags12:08
marhaban joined12:09
_ikke_ "Nearly proper rewriting of tag objects is supported."12:09
osse I suppose I could manually recreate the tags with the original date. Luckily there's only two of them.12:09
simesy left12:10
_ikke_ " There is also no support for changing the author or timestamp (or the tag message for that matter)."12:10
simesy joined12:10
_ikke_ So git filter-branch does not support it12:10
dhruvasagar left12:10
Takumo right I've created a new local branch using git-svn12:10
osse Ahh, ok. I didn't fully understand that part when I read it myself12:10
Takumo how would I then create and commit this branch back to the svn origin?12:11
alan5 joined12:12
johanhar joined12:12
johanhar As a SVN user trying Git. What is the difference between git checkout and git pull? Which should I use to update changes?12:13
selckin checkout is like svn revert12:13
svn checkout is like git clone12:13
johanhar Is it? So I will lose all changes?12:13
_ikke_ johanhar: git is distributed, that means that nearly all operations happen locally12:13
marhaban left12:14
pandeiro joined12:14
selckin 'like' its not the same, but should help you at the start12:14
tokkee_ left12:14
_ikke_ johanhar: git checkout <branch> would refuse if it had to overwrite uncomitted changes12:14
lb1a left12:14
_ikke_ johanhar: git checkout is a local operation12:14
johanhar Ok12:14
tokkee joined12:14
_ikke_ gitinfo: So it doesn't contact the remote12:14
simesy left12:15
KeiKun left12:15
pfFredd joined12:15
johanhar I see, it is something you use when you want to switch between branches? Or did I completely miss the point of checkout?12:15
selckin git pull --rebase == svn update12:15
sorta12:15
_ikke_ johanhar: git pull = git fetch (which downloads new history from the remote) + git merge12:15
johanhar Ah, ok12:15
So pull will be like svn update? I see.12:15
_ikke_ johanhar: git checkout has multiple uses12:15
Takumo so using git-svn how do I commit a locally created branch back to svn?12:15
stodan left12:16
Jackneill joined12:17
Jackneill left12:17
Jackneilll joined12:17
moritz Takumo: to a new svn branch?12:19
selckin Takumo: could be an easier way, but, create the branch in svn (with svn client), git svn fetch --all, rebase your branch on top of the svn branch, and dcommit12:19
ak5 left12:19
moritz if yes, I guess you have to create it first with 'git svn branch ...'12:19
and then dcommit12:19
rafeca left12:20
banisterfiend joined12:20
SporkWitch left12:21
daito joined12:21
rafeca joined12:21
avolz joined12:22
armin_w joined12:23
frgtn joined12:23
mtk left12:24
focusn1k joined12:25
Misan joined12:25
Takumo moritz: done `git svn branch foo` but git svn dcommit still tries to commit to trunk12:25
crankharder joined12:26
selckin your commits need to be on top of the svn branch commits and not have svn-id12:26
ewnd9 left12:26
selckin so you also need a rebase at least12:26
Misan left12:27
kai__ left12:27
mtk joined12:27
snql left12:27
Intensity Maybe I'll start with the question about "git rebase". When I do that, and do it again, the work seems to repeat itself. Is this normal?12:28
lun__ joined12:28
selckin define work12:28
Misan joined12:28
crankharder this is odd and start recently. I leave my dev machine for a while (overnight, usually) and come back and my repo is doing this: https://gist.github.com/crankharder/0d232d45f484a153f55c12:28
dsdeiz left12:29
leeN joined12:29
selckin crankharder: something is moving or renaming the dir, or maybe remounting external drive?12:29
moritz crankharder: is the repo on some network file system?12:29
crankharder it's @github.com, private repo12:30
had it for a while now12:30
selckin thats not relevant12:30
daito left12:30
selckin its filesystem error12:30
crankharder and no, i can't imagine anything is moving the repo12:30
moritz crankharder: I meant your local copy12:30
_ikke_ crankharder: Has nothing to do with git12:30
moritz or maybe some nightly backup job creating havoc12:30
_ikke_ crankharder: This happens when you are in a directory that no longer exists12:30
konadr left12:31
nilg left12:31
moritz complain to your admin :-)12:31
crankharder okay, very odd, nothing i know of would be moving it. dont have backups running on this machine. it's a VM, I can rebuild it pretty easily12:31
thanks12:32
chimay joined12:32
j0ran1 left12:32
lun__ left12:32
gunthaa__ joined12:33
whatwhatinthebut left12:34
przemkov1 left12:35
j0ran1 joined12:35
thierryp left12:35
thierryp joined12:36
przemkovv joined12:36
germanoak joined12:36
oojacoboo left12:37
Pullphinger joined12:37
marhaban joined12:40
thierryp left12:40
simesy joined12:41
grilix joined12:41
marhaban left12:44
yacks joined12:44
khushildep joined12:45
yacks left12:45
renatow joined12:45
yacks joined12:46
kas84 left12:47
sgambino left12:47
bobdobbs I do: "git push -u origin master", and I get back "ranch master set up to track remote branch master from origin"12:49
but nothing gets pushed12:49
simesy left12:49
moritz so maybe origin/master is already up to date?12:50
bobdobbs hmmm12:50
I was just about to say "no, because I just made some changes"12:51
sriracha joined12:51
bobdobbs but perhaps I don't actually know what it means that "origen/master is already up to date"12:51
maleknet left12:51
moritz it means there's nothing to push12:52
tonyj joined12:52
moritz do a 'git log master' and a 'git log origin/master' and compare if the first commit of each is identicaly12:52
bobdobbs ok12:52
moritz if yes, it means the branches are identical, and a push does nothing, and all is fine.12:52
bobdobbs oh, I get it12:53
fuzzybunny69y1 joined12:53
gasbakid joined12:53
bobdobbs slaps own forehead12:53
bobdobbs I hadn't actually updated master12:54
bobdobbs returns to noob corner12:54
SporkWitch joined12:55
yacks left12:55
fuzzybunny69y1yargy12:55
SporkWitch left12:56
SporkWitch joined12:56
yargy left12:56
yargy joined12:56
ThomasCle joined12:57
mizu_no_oto joined12:59
kewah joined13:00
frgtn left13:00
gasbakid_ joined13:00
frgtn joined13:01
kas84 joined13:01
frgtn left13:01
frgtn joined13:01
gasbakid left13:02
bitkiller joined13:02
zapb_ joined13:03
nettoweb left13:03
bandroidx left13:03
oso96_2000 left13:04
gasbakid_ left13:05
davividal left13:05
Squarism joined13:05
davividal joined13:06
rabbite joined13:06
luxgeek joined13:06
gasbakid_ joined13:07
dyng joined13:07
yargy left13:08
gasbakid_ left13:09
BiggFREE left13:10
harish joined13:10
gasbakid_ joined13:11
amortimer left13:11
Fandekasp left13:11
cannonball joined13:12
gasbakid_ left13:13
ItSANgo joined13:13
asQuirreL joined13:13
Intensity I did a "git rebase origin/master", and yet "git diff master" shows differences.13:14
sebhoss joined13:14
moritz Intensity: sure, if you have commits in addition to origin/master13:14
nettoweb joined13:15
moritz rebase != reset13:15
gasbakid joined13:15
Intensity Yep - yeah sorry I withdraw that last comment. My earlier issues are still outstanding though.13:15
gasbakid left13:16
rouf left13:17
sriracha left13:17
rouf joined13:18
gasbakid joined13:18
yargy joined13:19
grilix_ joined13:20
avarabavar13:20
SergeyPenkin Is there any graphical tool to view git diff?13:20
bandroidx joined13:21
gasbakid left13:21
_ikke_ gitk or git gui?13:21
konadr joined13:22
moritz or gitweb + browser, for that matter13:22
johanhar left13:22
grilix left13:22
_ikke_ But it won't get any more graphical than it already is13:22
halu joined13:23
HedgeMage_HedgeMage13:23
_ikke_ You can also try meld as a difftool13:23
oso96_2000 joined13:23
yargy left13:23
gasbakid joined13:23
surfdue joined13:23
SergeyPenkin __ikke_, I mean a diff produced by the git-diff command. I would like to view all changes made in a particular branch, I run git diff dev...some_branch. Now I have to feed produced diff to some graphical tool for a nice look.13:24
BiggFREE joined13:24
GT4066 left13:25
Gavrisimo joined13:25
gasbakid left13:25
tvw joined13:27
gua_ould joined13:28
gasbakid joined13:28
frgtn left13:28
jdahlin joined13:28
jdahlin left13:28
selckin git difftool13:28
frgtn joined13:28
halu left13:29
GT4066 joined13:29
_ikke_ selckin: Define nice look?13:30
natechan joined13:30
Snibble joined13:30
h0bbit_ left13:30
gasbakid left13:30
SergeyPenkin selckin, yeah, define it13:30
halu joined13:30
selckin SergeyPenkin: fuck you too13:31
nnyk_ left13:31
konadr left13:31
SergeyPenkin Ha ha ha, what a jerk13:31
nnyk_ joined13:31
marhaban joined13:31
marhaban left13:31
gasbakid joined13:32
frgtn left13:33
focusn1k left13:33
bklane joined13:33
_ikke_ I obviously mean SergeyPenkin13:33
meant13:33
and selckin !fsck13:33
gitinfo [!profanity] Hey! This is a family-safe channel, so keep it frakking clean you fierfekker!13:33
selckin if you think frakking is cleaner then fuck you should have that looked at13:34
lite_ left13:34
ChanServ set mode: +o13:34
tommcdo left13:34
_ikke_ set mode: +q13:34
_ikke_ set mode: -o13:35
lite_ joined13:35
m0viefreak joined13:35
gasbakid left13:36
nnyk_ left13:36
tplaner joined13:37
gasbakid joined13:38
selckin left13:38
germanoak left13:38
Vinnie1991 joined13:39
chuckharmston joined13:39
ak5 joined13:39
ChanServ set mode: +o13:39
_ikke_ set mode: -q13:39
_ikke_ set mode: -o13:39
lite_ left13:40
nettoweb left13:40
breakingthings joined13:40
deryni osse: --abbrev=0 removes the '-#-gXXXXX' from the resulting tag. I would have expected it do the same for the '~#' in the name-rev output.13:41
osse: It doesn't. That's not a big deal it just surprised me.13:41
rouf_ joined13:42
matteo joined13:42
Vinnie1991 left13:44
rouf left13:44
glosoli joined13:45
macabre joined13:45
simesy joined13:46
decotii joined13:46
jast the -gXXXXX is just extra information for someone looking at the output, whereas the ~# actually adds more information that would otherwise be lost13:46
dsdeiz joined13:46
nettoweb joined13:46
TheBrainWork joined13:46
Ivo joined13:47
echo-area joined13:48
freimatz left13:48
simesy left13:50
SporkWitch left13:51
AlecTaylor left13:51
Hoksilato joined13:52
amortimer joined13:54
danillonunes left13:55
dhruvasagar joined13:55
takamichi left13:56
danillonunes joined13:57
sgambino joined13:57
Sigma joined13:57
yacks joined13:57
nettoweb left13:58
takamichi joined13:59
CheckDavid joined14:00
CheckDavid left14:00
CheckDavid joined14:00
g3orge left14:00
m0ltar left14:00
knigitz left14:01
AaronMT joined14:02
ewnd9 joined14:03
frgtn joined14:03
wrouesnel left14:04
devoldmx joined14:05
jerius joined14:05
FernandoBasso joined14:07
ojacobson joined14:07
delasteve joined14:07
delasteve left14:07
Syrit joined14:07
Syrit left14:07
joelmo left14:08
delasteve joined14:08
delasteve left14:09
BiggFREE left14:10
tplaner left14:10
phile joined14:10
danillonunes left14:11
johanhar joined14:12
swair joined14:12
shinnya joined14:12
nnyk_ joined14:12
danillonunes joined14:13
FernandoBasso left14:13
sobersabre hi.14:13
how can I know at which revision I am standing right now ?14:14
nurey joined14:14
sobersabre git show ?14:14
mizu_no_oto left14:14
m0viefreak sobersabre: you want the SHA1 of your current HEAD?14:14
sobersabre I'm not sure it is HEAD.14:15
FernandoBasso joined14:15
sobersabre I tried git show, and it seems to be at the correct revision.14:15
_ikke_ You are *always* on HEAD14:15
sobersabre isn't HEAD - the last revision of the repo ?14:15
m0viefreak that ^14:15
_ikke_ no14:15
m0viefreak git rev-parse HEAD14:15
sobersabre ok.14:15
m0viefreak will give you just the SHA114:15
joelmo joined14:15
_ikke_ It's the rivision you are currently on14:15
m0viefreak but git-show will give you the same of course14:15
devoldmx left14:16
ayaz left14:16
sobersabre ok. cool.14:16
dyng left14:16
dyng joined14:16
Olipro left14:17
worblehat joined14:18
alan5 left14:18
asQuirreL left14:18
Snibble git branch -v has some pretty useful info related to current branch and commit SHA.14:19
Olipro joined14:20
dyng left14:21
dyng joined14:22
bluesm Does big corporations dont use git because they are afraid that one hold whole copy of code ?14:22
hs366 joined14:22
chimay left14:22
ItSANgo left14:23
_ikke_ Ask them :-)14:23
dougsland joined14:23
_ikke_ Even with centralized version control, one holds a whole copy of the code14:24
hholtmann joined14:24
hellopat joined14:24
JeremyWei joined14:24
jhottenstein left14:24
fuzzybunny69y left14:24
codezomb joined14:25
Olipro left14:25
pixelgremlins_ba left14:25
shoshin left14:26
dyng left14:27
grawity yeah, it is trivial to svnsync the entire repo to your own PC14:27
deryni You don't actually. I believe P4, for example, lets you limit read access to parts of a project.14:27
pixelgremlins_ba joined14:27
grawity likewise, Git lets you limit read access to specific repositories :)14:27
VictorCL left14:27
deryni Sure.14:28
grawity with some SCMs you might end up having one huge repo, and managing access by subtree14:28
with others, you have several smaller repos14:28
deryni Indeed.14:28
cebor left14:29
fdel joined14:29
takamichi left14:30
rullie left14:30
cebor joined14:30
LuxuryMode joined14:30
gregsmith joined14:30
gregsmith left14:30
joshbetz joined14:30
gregsmith joined14:30
bwreilly joined14:30
glosoli left14:31
[emmajane]emmajane14:32
fdel I use git grep '->foo' and I get an error: " error: unknown switch `>'" and the usage page14:32
grawity because options start with '-', yes14:32
use `git grep -- '->foo'` to avoid thi14:32
this*14:32
takamichi joined14:33
moritz (another reason to hate perl 5's method calls with ->)14:34
grawity facepalms14:34
fdel well there's worse with PHP I guess (the \ for package separator or similar)14:34
deryni '-e ->foo' is probably better.14:35
Oishikatta joined14:35
mmitchell joined14:35
moritz fdel: somehow PHP always manges to be worse in some aspect :-)14:36
Sigma[Mtp] joined14:36
Destos joined14:37
Sigma left14:37
CKyle joined14:38
Dougie187 joined14:38
joelmo left14:38
deryni I very nearly vomited on the stop when I first saw that PHP package separator.14:38
stormwild joined14:38
_ikke_ package seperator? You mean namespace14:39
neo1691 joined14:39
fdel yeah that, couldn(t come on the name14:39
Olipro joined14:39
dyng joined14:40
neo1691 left14:40
joelmo_ joined14:40
whaley joined14:40
dyng left14:41
SoftwareMechanic left14:41
dyng joined14:42
dyng left14:42
dyng joined14:42
Stygia left14:43
asQuirreL joined14:43
gasbakid left14:44
gasbakid_ joined14:45
pixelgremlins_ba left14:45
ska-fan left14:46
zarubin joined14:46
simesy joined14:46
ska-fan joined14:46
alan5 joined14:47
halu_ joined14:48
hwrd|work joined14:48
CKyle left14:48
nettoweb joined14:49
nettoweb left14:49
kukks joined14:49
kukks left14:49
kukks joined14:49
hwrd|work left14:50
simesy left14:50
CKyle joined14:50
halu left14:51
soee left14:51
fdel left14:51
m0ltar joined14:52
Dev1L left14:53
johanhar left14:53
mizu_no_oto joined14:53
jonatasnona joined14:54
pdimitrov left14:54
pr0ggie left14:55
pr0ggie joined14:55
abrkn left14:55
jaseemabid left14:56
droogans joined14:56
tplaner joined14:56
neo1691 joined14:57
rudak left14:57
bamj0rb joined14:57
gitinfo set mode: +v14:57
osse deryni: here the -gXXXX thing is never present, even if I do --abbrev=7 or 40. So in a way there's nothing to remove. Or do you see the -gXXXX when --abbrev != 0 ?14:57
CKyle left14:58
Stygia joined14:58
donmichelangelo left15:00
abrkn joined15:00
donmichelangelo joined15:00
mikecmpbll joined15:02
Sigma[Mtp]Sigma15:03
macabre left15:03
macabre joined15:04
Olipro left15:04
h_kon_ left15:05
deryni With --contains? No. -gXXX is a non-contains thing. But the suffix for describe is two pieces -# and -gXXXX. --abbrev=0 removes both. The --contains suffix is ~# and --abbrev=0 doesn't remove it.15:05
armin_w left15:05
johnnyfuchs joined15:06
iamjarvo joined15:06
saurabh left15:06
Sigma[Mtp] joined15:07
catcher joined15:07
galaris left15:07
nnyk_ left15:07
richgilbank joined15:07
Sigma left15:07
Sigma[Mtp]Sigma15:07
RogerWS joined15:07
macabre left15:08
freimatz joined15:09
paulweb515 joined15:09
pdimitrov joined15:09
papegaaij left15:09
freimatz is there a channel for sourcetree15:10
mdiers left15:11
robbyoconnor left15:11
rabbite left15:11
svector left15:11
Olipro joined15:12
catcher I'm using rebase to remove a commit. However, I'm only trying to remove the last commit, which means the message will be empty, and thus aborted.15:12
How do I get around this?15:13
bklane left15:13
nnyk_ joined15:13
_ikke_ catcher: Just rebase one extra15:13
or just do git reset --keep HEAD^15:14
danillonunes left15:14
hyperair joined15:14
catcher _ikke_, ah, rebase 2 and pick the 2nd, makes sense15:14
dyng left15:14
axl_ joined15:14
paulweb515 left15:15
catcher I tried it with a single commented line, and now I have "no such file" on msgnum and end15:15
dyng joined15:15
catcher ah, rebase --abort15:15
Matt_R joined15:15
alexander__b does anyone have an idea on how to print a huge red "-------------------------" at the end/beginning of every prompt in git add -p? sometimes the chunks are so big and plenty that I have to spend time figuring out what's a part of the new chunk and what's old15:15
DaisyTheCow joined15:16
CheckDavid left15:16
user258467 joined15:16
Shapeshifter left15:16
_ikke_ alexander__b: afaik, there is no way15:16
alexander__b _ikke_: seems like I need to consider writing a patch for git15:17
skered- left15:18
Chwing left15:19
iamjarvo left15:19
ThomasCle left15:20
Norm_ left15:20
thiago joined15:21
matanya left15:21
g0bl1n joined15:24
nettoweb joined15:25
rchavik left15:25
bwreilly left15:25
glosoli joined15:25
glosoli left15:25
SocalNick joined15:26
glosoli joined15:26
germanoak joined15:26
halu_ left15:27
paulweb515 joined15:27
thierryp joined15:28
natechan left15:28
brandonw left15:29
Khisanth left15:29
snql joined15:29
richgilbank left15:29
jerius left15:30
halu joined15:30
rikko left15:30
kbart left15:30
rikko joined15:30
CheckDavid joined15:31
matanya joined15:31
rikko left15:31
brandonw joined15:32
jerius joined15:33
marhaban joined15:33
phryk joined15:34
brandonw left15:34
BoyanYordanov joined15:34
brandonw joined15:34
richgilbank joined15:34
RogerWS left15:34
Guest63169 joined15:36
VictorCL joined15:37
Targen joined15:37
Guest63169 left15:37
marhaban left15:37
Olipro left15:37
Cerise_ joined15:38
macabre joined15:39
m0viefreak left15:39
harobed_ left15:41
dreiss joined15:41
CheckDavid left15:41
rabbite joined15:42
snag joined15:42
FernandoBasso left15:43
Olipro joined15:43
Khisanth joined15:43
joelmo_ left15:43
CheckDavid joined15:46
simesy joined15:47
hs366 left15:47
dyng left15:47
mlechner left15:47
dyng joined15:48
asQuirreL left15:50
rabbite1 joined15:51
m8 joined15:51
avolz left15:51
M-ou-se_M-ou-se15:51
simesy left15:52
Raging_Hog left15:52
ThomasLocke left15:52
dyng left15:52
fridim_ joined15:52
rabbite left15:52
M-ou-se Hey, Is there an easy way to clone/checkout a single file from a (remote) git repository (without cloning the entire tree or history)? i read about git archive, but that doesn't seem to work with github.15:53
Gamecubic joined15:53
iamjarvo joined15:53
alindeman M-ou-se: You can use raw.github.com, like https://raw.github.com/github/hub/master/README.md15:54
Gavrisimo left15:54
Stygia left15:54
hyperair left15:54
shruggar note that raw.github *is* specifically a github option, not general git, but that sounds like what you need15:54
alindeman M-ou-se: In that URL, master is the branch name15:54
harobed_ joined15:54
M-ou-se it's a private repo, that https://-interface has no authentication, right?15:54
(and of course it would be better if there was a generic (not github-specific) way to do this.)15:55
alindeman M-ou-se: There definitely is not a generic git way15:56
shruggar not the one there. I looked into grabbing a single file from a private repo the other day, but eventually I cloned the whole thing (as I needed the whole thing later in the process)15:56
less efficient, but fit my needs well enough15:56
M-ou-se damnit. i'm helping people to move from svn, but they're using 'svn export' at some point to get a single file. seems like i can't migrate that properly15:56
alindeman M-ou-se: You can use the GitHub API authenticated. http://developer.github.com/v3/repos/contents/#get-contents15:57
M-ou-se if i'm going to do github-specific stuff, i'll use the github svn interface and svn export.15:57
alindeman M-ou-se: svn is also a decent option, yah15:57
M-ou-se i was hoping for a generic git way.15:57
shruggar M-ou-se, if a single file makes sense to operate on all by itself, maybe that single file ought to be in its own repository15:57
alindeman M-ou-se: Infrastructure wise, git as a decentralized vcs prevents that from working. You need some custom server component to pull out the relevant info. The GitHub API or the SVN bridge can do that, yah15:58
M-ou-se shruggar: yeah, i guess15:58
alindeman: makes sense15:58
Squarism left15:58
rabbite1 left15:58
rabbite joined15:58
danillonunes joined15:59
shruggar the most common problem I note when migrating repos from SVN to git is that things which were once considered to belong in the same repo, actually ought to be in separate repos (the other side of that is: sometimes it turns out that what were thought to be loosely-connected projects in a single repo, actually are the same project. It goes both ways during migrations)15:59
tplaner left16:00
calcifea left16:00
kermit joined16:00
MattMaker joined16:00
calcifea joined16:00
richgilbank left16:01
SocalNick left16:01
shruggar (though I have never seen that with a *single file*)16:02
BigBlueBacon joined16:02
g0bl1n left16:03
kevwil joined16:03
g0bl1n_ left16:03
shruggar ...what *is* the file?16:03
aisbaa_ joined16:03
jargon left16:04
rob_w left16:04
richgilbank joined16:04
threesome left16:06
pitzips joined16:06
shinnya left16:06
m0ltar left16:06
maestrojed joined16:06
Squarism2 joined16:07
dbs_bruv joined16:07
DaisyTheCow left16:07
thierryp left16:08
gasbakid__ joined16:08
gasbakid_ left16:08
shoshin joined16:08
thierryp joined16:08
dbs_bruv hellllo. gentleman. i have two copies of the same remote repo. they have both diverged (don't ask). i want to merge the commits from repo A into repo B and employ some proper branching. can i use cherry pick or something? how do you generally approach this?16:08
trusktr left16:08
Gardner joined16:08
shruggar how many people use each copy?16:09
("use" includes clone-from, fetch-from, etc)16:09
dbs_bruv it won't affect the users. at this stage it's all mine.16:09
basically, previous dev cloned a repo and created a bitbucket account for it. used it as a submodule and made commits to it but didn't track the master branch on github.16:10
so now i've pulled the up to date github version, am tracking the github version, but also have a remote on bitbucket to push changes to. but i want that guy's old commits!16:10
hope that makes it more clear and not less. :)16:10
shruggar why not just merge?16:10
freeed left16:11
dbs_bruv merge repos?16:11
quackgyver left16:11
shruggar merge one branch into another. like, a normal merge16:11
asQuirreL joined16:11
cbreak-work left16:12
dbs_bruv because there's commits on master on repo A16:12
and repo B is the actual dev version of the framework i want to use with commits on master.16:12
konadr joined16:13
shruggar there's some key part of this I'm not understanding. What would a merge do that you don't want, or what do you want that a merge wouldn't do?16:14
herdingcat joined16:14
cads left16:15
jumperswitch joined16:15
sebhoss left16:15
thiago left16:15
rabbite left16:16
galaris joined16:16
MAAVF8S joined16:17
rikko joined16:17
VictorCL left16:17
Gardner left16:18
dreiss left16:18
hashpuppy joined16:18
rm_work|awayrm_work16:18
robbyoconnor joined16:19
SoftwareMechanic joined16:20
dsdeiz left16:20
dbs_bruv left16:21
fridim_ left16:21
eaj joined16:21
rath left16:21
galaris left16:22
CreativeEmbassy left16:22
freimatz left16:23
richgilbank left16:23
neo1691 left16:23
jfinn joined16:25
boyan_yordanov joined16:26
abrkn left16:26
CaveJohnson left16:26
chinychinchin left16:27
chinychinchin joined16:27
ewnd9 left16:28
thegorn_ anyone got any recommendations on a gui for git on linux?16:28
ska-fan left16:28
d2dchat joined16:29
bremner I guess "none" isn't a helpful recommendation.16:29
YoungFrog I don't (I use git via command line a bit, and mostly via magit within emacs) but perhaps you should elaborate : what do you expect from a gui ?16:29
shruggar I haven't seen a git gui that I didn't hate16:31
thegorn_ my situation is that I have used git for a long time, and i've got a repository using submodules, etc.., and i have another guy i'm working with that has never really used ANY source control at all16:31
there's actually some decent ones for windows i've seen that I can stand helping people with (they haven't renamed every git concept), but this pretty much needs to work on linux16:31
SocalNick joined16:31
PerlJam thegorn_: so ... teach him git CLI ?16:31
kermit left16:32
joelmo joined16:32
dbuch joined16:32
CKyle joined16:32
herdingcat left16:33
thegorn_ PerlJam: i find git incredibly difficult to teach to people who give zero craps about source control16:33
shruggar what are your goals? If it just "He doesn't use anything, so get him to use git, because that's totes the best", or are there specific git features which you think he can benefit from the use of?16:33
richgilbank joined16:33
huli_ joined16:33
lavaman joined16:33
ska-fan joined16:34
thegladiator_ git is more or less unixish , means cli ...16:34
thegorn_ shruggar: no, i have a top-level project that uses submodules to pull in a specific version of linux kernel, u-boot, etc..16:34
one of the submodules is some userland code that he for the most part modifies, and for the last many years it has been under no source control16:34
BackEndCoder joined16:34
shruggar set up a literal git parable [ http://tom.preston-werner.com/2009/05/19/the-git-parable.html ], then eventually expose him to git as a handy tool to do all the things that he's already doing ;)16:34
natechan joined16:34
kerrick left16:35
noname001 left16:35
thegladiator_ yes the parable , but ofcourse u need an inclination to read it16:35
fobius_ joined16:35
Burer left16:35
mmlac-bv joined16:35
gua_ould left16:36
shruggar I'm not saying "read the thing", I'm saying "keep dated zip-files in directories"16:36
thegladiator_ totoisegit aint good?16:37
mutex_ left16:37
Robarelli joined16:37
ciampix left16:37
chinychinchin left16:37
ezio joined16:37
ezio left16:37
ezio joined16:37
zhost joined16:38
chinychinchin joined16:38
dbuch left16:39
alex-foo joined16:39
johto joined16:39
mutex joined16:39
alex-foo is there a reason why refs/heads is so named instead of refs/branches ?16:39
johto hi, I would like to get a list of all commits where the diff includes a certain pattern. is that possible?16:40
thegorn_ johto: git log -S<word>16:40
codemagician left16:41
thegorn_ git log -G<regex> too16:41
hyperair joined16:41
JeremyWei left16:42
psoo left16:42
shruggar alex-foo: because branch is a concept, and "head of branch" is a concept within that16:42
jast branches are implemented as a pointer to the head/tip of the branch16:42
which is stored in refs/heads/ :)16:42
shuaib joined16:43
alex-foo sure, it just seems to confuse everyone ever.16:43
jast that said, the name could just as well have been refs/branches/16:43
thegladiator_ yes its a one to one relation16:43
jast but it simply didn't develop that way16:43
thegladiator_ so interchangable16:43
alex-foo i like that the index is now being systematically renamed the 'stage' by most people16:43
jast and it's a bit late to change it16:43
Snibble left16:43
thegladiator_ it is staged now a days indexing doesnt make any sense16:43
staging makes more sense16:44
jast calling it 'index' still makes sense from a technical POV16:44
alex-foo as an aside, from where did the 'index' name come?16:44
jast it's an index of objects16:44
shruggar left16:44
alex-foo jast: isn't it just a tree?16:44
jerius left16:44
jast much like the index section of a book: names that are associated with objects16:44
nope. look at .git/index in a hex editor...16:45
it stores some additional information compared to tree objects16:45
neo1691 joined16:45
alex-foo for what purpose? optimization?16:45
jast that's one aspect of it16:46
ezio left16:46
alex-foo i thought i understood this - i thought a git add was just adding a blob and putting it in a temporary staging tree16:46
jast but there are some flags that can be stored in the index, too16:46
and also stages (the different versions of a file in a merge conflict)16:46
Octalot left16:46
ezio joined16:46
jast (examples of such flags: skip-worktree, assume-unchanged, intent to add)16:46
thegladiator_ yes it puts in a temporary tree , so commit doesnt spent time computing things perhaps!16:47
jast no, it doesn't16:47
simesy joined16:47
jast the tree is created as part of 'git commit'16:47
Matrixiumn joined16:47
jast tree object, I should say16:47
after all the index describes a tree of sorts, too, just in a different way16:48
thegladiator_ tree is static in way , no time stamps involved right ?16:48
sivano joined16:48
jast correct16:48
worblehat left16:48
alex-foo what are those flags' purposes? i've never heard of them before16:49
diegoviola joined16:49
jast they're documented in man git-update-index afaik16:49
gitinfo the git-update-index manpage is available at http://jk.gs/git-update-index.html16:49
aspiers joined16:49
jast they're not exactly vital features for most use cases :)16:49
matanya left16:49
jast stages, OTOH, are16:49
alex-foo i see16:49
kermit joined16:50
thegladiator_ git staging is a convenient way of doing things imo , not required but having helps you work more naturally16:50
jast plus you wouldn't want to write a new bunch of tree objects every single time someone runs 'git add'16:50
robbyoconnor left16:50
jast IMO that's enough of a rationale for the index16:50
thegladiator_ yes16:50
marthinal left16:50
alex-foo jast: so, an optimization then :)16:50
jast well, it also stores information that couldn't be stored anywhere else16:50
and while we're at it there are some more optimizations we do with it, too16:51
such as caching inode numbers and such, so we can do quick checks which files have been modified16:51
thegladiator_ gits are used by humans , who have slow IO , so staging is a type of amortized time16:51
alex-foo but conceptually it's OK to think of the stage as another tree, if not by that exact name - right?16:51
DaisyTheCow joined16:51
simesy left16:51
alex-foo i mean, this is how i teach others. whoops.16:51
jast sure, just stored completely differently16:52
alex-foo right, that'll do for me!16:52
jast implementation detail if you like16:52
alex-foo thanks16:52
m0ltar joined16:52
jast though if people ask what all this :2:foo business is about, you'll get a little problem with that explanation ;)16:52
or how git checkout --ours/--theirs work16:52
jaimef left16:53
alex-foo i just assume some magic metadata somewhere is pointing to the right objects... but ok i see16:53
jast sure, that describes pretty much all parts of git :}16:53
mizu_no_oto left16:53
bitkiller left16:54
thegladiator_ i shared the parable link within our company i found that very nice approach to teach git16:54
konadr left16:54
thegladiator_ thats how it should be taught and not via commands , its a education flaw if u teach commands16:54
alex-foo next question - when i push a branch to a remote server and then rebase, i'd like it if there was some warning that tells me i have 'published' the commits already and that it is unwise to rebase them. seems this should be possible by storing some metadata similar to refs/notes, no?16:54
jerius joined16:54
whunt joined16:55
Streward left16:55
thegladiator_ alex-foo, how can u say if its published definitively ? published is a tricky word16:55
alex-foo thegladiator_: sure, but in many common situations it's quite simply defined16:55
ehmatthes left16:55
cebor left16:56
thegladiator_ suppose you are sharing work with a colleague and he used your original commits and then he went his way16:56
alex-foo thegladiator_: i guess i am talking about public and private branches - in practice this is generally a remote and a local repo16:56
marthinal joined16:56
thegladiator_ git sees everything as distinct imo16:56
ianliu joined16:57
sgambino left16:57
alex-foo example, i could tack on a new remote.$name.published=true git config option - and then when rebase attempts to rebase a tracking branch which would cause it to lose the commits it has in common with its remote branch, it would warn you16:58
or something16:58
SergeyPenkin left16:58
cotton joined16:58
asakura left16:58
cebor joined16:58
jast that doesn't sound all that useful in practice... after all, you'll often start developing new things on top of the published things16:58
thegladiator_ i think it would be incredible complex16:58
jast and then when you rebase those, that is perfectly okay16:58
yet published is still set to true16:59
guampa left16:59
jaimef joined16:59
jast to make this really good, it'd have to check which commits are on the remote and which aren't16:59
Misan left16:59
jast as it is, right now 'git push' will complain at you when you try to push your altered history16:59
alex-foo jast: that would be done by looking at the remotes/$name/$branch ref no?16:59
CreativeEmbassy joined16:59
jast that's not sufficient, really... the remote could have changed in the meantime16:59
thegladiator_ git is distributed entirely , it supports you doing your work and no meta datas there16:59
rlubke joined17:00
user258467 left17:00
ianliu I did a bad rebase -i where I ended up loosing some commits. Is it possible to recover the lost commits? I did nothing after the bad rebase, so I'm hoping git keeps a backup for recovery?17:00
shoshin left17:00
konadr joined17:00
alex-foo ianliu: look at git reflog $branchname17:00
jerius left17:00
jast ianliu: sure does :) git log -g <your branch> shows you previous states your branch had17:00
konadr left17:00
shoshin joined17:00
jast you can simply reset --hard to the previous one (discarding all uncommitted changes)17:00
thegladiator_ metadatas are not the most intuitive thing to do unless its just commentish :)17:00
ewnd9 joined17:00
TomyLobo joined17:01
jast (-g shows the reflog, btw, so the two are mostly equivalent, except 'git reflog' shows them in reverse order, i.e. newest at the bottom. I don't find that very comfortable.)17:01
... and work day endeth. on my way home. bye! :)17:02
temptemp joined17:02
thegladiator_ cya17:02
mikecmpbll left17:02
alex-foo hm, my git reflog shows newest at top...17:03
axl_ left17:03
Syrit joined17:03
ianliu jast: thanks!17:03
alex-foo: thanks!17:04
LBV_User joined17:04
thierryp left17:04
mikecmpbll joined17:04
thegladiator_ dont know however about rebasing being published I will think about that!17:04
sgambino joined17:04
guampa joined17:04
shoshin left17:04
threesome joined17:04
thegladiator_ its a good question17:05
mmcdaris joined17:05
Syrit guys, i need some advice please, in my exiting app i created a new gem file, now there is a repo created automatically inside this newly created gem folder, and when i push to github, it's not accessible, i think it's been pushed as symlink, what can i do about this ?17:05
lmat left17:05
shoshin joined17:06
shoshin left17:06
thiago joined17:08
axl_ joined17:08
ehmatthes joined17:09
hoschi left17:09
Syrit in other words, how can i convert a git repo into a regular one ?17:10
nnyk_ left17:10
stormwild left17:10
alex-foo a regular what?17:11
yhager joined17:11
alex-foo also what do you mean by 'not accessible' - some github problem?17:11
devbug joined17:11
YoungFrog I have no idea what a gem file or a gem folder is. I don't have an idea either how a repo can be automatically created.17:11
EugeneKay Are you talking about submodules?17:12
rurufufuss left17:12
fobius_ left17:12
Syrit regular folder alex-foo17:12
alex-foo, it's visible as only a grey folder, can't open it in github ..17:12
Snibble joined17:13
Syrit EugeneKay, i don't know what my problem is called, have never faced this before17:13
EugeneKay So you have a symlink in your repo and you want it to be something else?17:13
notnot joined17:13
Skrypter joined17:13
Droolio left17:13
Syrit all i want is, when i push, that the actually content and the complete folder contents are pushed as well EugeneKay17:13
diegoviola left17:14
EugeneKay So you need to delete the symlink and then copy over the folder into your repo17:14
asakura joined17:15
neo1691 left17:15
Syrit EugeneKay, am really sorry but i don't get it .. :(17:15
yhager left17:15
arietis joined17:16
bwreilly joined17:16
swair left17:17
yhager joined17:17
Syrit how can i delete the symlink ? and what is it in the first place, is it the .git file ? EugeneKay?17:17
EugeneKay It's the folder in your work-tree17:17
johto left17:18
jerius joined17:18
cesarkawakami joined17:18
Syrit EugeneKay, i checkout a new branch, then copied the entier folder to a new folder called gems, then pushed, but that did not work17:19
EugeneKay You need to `git add` the folder, then `git commit` to reflect that change17:19
Syrit yes sure, i did `git add . `17:20
edwardly left17:20
Snibble left17:20
Syrit and git commit, then pushed, but it was again as a greyd folder in github17:20
Snibble joined17:20
YoungFrog are you s ure "greyd folder" means broken symlink ?17:20
nicedice joined17:20
grawity I think it can also mean a submodule that's not in .gitmodules17:20
arand left17:21
Syrit how can i make sure if it's a submodule or symlink ?17:21
whaley left17:22
rabbite joined17:22
DrShoggoth joined17:22
grawity git ls-tree HEAD17:22
ianliu left17:22
grawity regular files have '100644 blob' as type; symlinks have '120000 blob'; directories have '040000 tree'; submodules have '160000 commit'.17:22
howlymowly left17:23
Syrit oh i will try that grawity17:23
tang^ joined17:24
aspiers left17:24
Syrit grawity, it's a submodule 160000 commit !17:25
Gonzo89 left17:26
groglogic joined17:26
oso96_2000 left17:26
grawity so it probably shows up as a grey folder on Github because Github doesn't know where the submodule's contents are17:26
rabbite left17:26
bandroidx left17:27
srji left17:27
fRAiLtY- left17:27
rabbite joined17:27
srji joined17:27
Syrit grawity, and, what can i do to include it and push it to github ?17:28
acharlieh joined17:28
grawity first you need to push the submodule as a separate repository to Github17:28
then add its URL to the parent repository using `git submodule add ...`17:29
(it will be added to .gitmodules – that's how Github makes submodule links clickable)17:29
delasteve joined17:29
mikecmpbll left17:30
donmichelangelo left17:30
donmichelangelo joined17:30
Syrit Thank you grawity, and is it possible to simply merge that submodule into the parent branch ?17:30
neo1691 joined17:31
iamtakin1iteasy left17:31
grawity it's possible, yes17:31
although it takes several commands (see "subtree merge" https://help.github.com/articles/working-with-subtree-merge)17:31
Syrit git submodule deinit ?17:31
Thank you so much grawity17:31
Sonderblade left17:32
grawity (it *can* be done in a simpler way than the article says, though)17:32
snag left17:32
freestyl3r left17:32
King_Hual joined17:32
nettoweb left17:33
freestyl3r joined17:33
kewah left17:33
Syrit how? grawity?17:33
jasonp joined17:33
grawity on the second thought, nevermind me17:33
Dreamer3 left17:33
Syrit :D okay17:33
FrozenZia joined17:34
abelsiqueira left17:34
FrozenZia left17:35
nettoweb joined17:35
hs366 joined17:36
iamtakingiteasy joined17:37
juril left17:37
daito joined17:38
cenuij_ joined17:39
Goopyo joined17:39
Goopyo Thoughts? http://www.pnegahdar.com/git-push-to-multiple-remotes-asynchronouslysimultaneously/17:39
rabbite left17:40
fobius_ joined17:40
EugeneKay Pointless17:40
fobius_ left17:40
Goopyo Is there another way?17:40
EugeneKay man git-config; ctrl-f pushurl17:41
gitinfo the git-config manpage is available at http://jk.gs/git-config.html17:41
EugeneKay Add multiple entries; `git push` will do them in sequence. Works fine.17:41
No extra scripts needed17:41
Snibble left17:42
Goopyo I specifically mentioned that...17:42
cenuij left17:42
Goopyo that no scripts are needed for pushing in sequence17:42
duke_ joined17:42
abrkn joined17:42
daito left17:42
jhulten joined17:42
m0viefreak joined17:42
cenuij_ left17:43
EugeneKay You're doing it with url, not pushurl17:43
rafeca left17:43
Goopyo works with url too for me17:43
Syrit i am getting "You need to run this command from the toplevel of the working tree." when i run "git submodule deinit" ...17:43
EugeneKay `git fetch` won't ;-)17:43
harobed_ left17:43
EugeneKay There's a reason there are separate variables17:43
Goopyo ah17:44
duke_ hi, i'm having trouble getting rid of unstaged changes. even after git reset --hard the file still shows up as "modified"17:44
EugeneKay And that's why !blog posts suck17:44
gitinfo Blog posts, while helpful and informative, are quite often outdated, give bad advice, or are just plain wrong. Please don't rely solely upon them, or treat them as authoritative.17:44
_ikke_ duke_: !rlf17:44
gitinfo duke_: [!crlf] to fix problems with line endings on different platforms, check out http://line-endings.gitrecipes.de/17:44
ak5 left17:44
_ikke_ duke_: 9 out of 10 times, that's the problem17:44
duke_ _ikke_: ok, thanks17:45
Goopyo EugeneKay: http://www.pnegahdar.com/git-push-to-multiple-remotes-asynchronously/17:45
updated17:45
RogerWS_ joined17:45
EugeneKay That's better17:45
Goopyo thanks17:45
delasteve left17:46
tang^ left17:46
howlymowly joined17:46
tang^ joined17:46
Vampire0 left17:47
abelsiqueira joined17:47
rabbite joined17:47
delasteve joined17:47
simesy joined17:48
Vampire0 joined17:48
thomas_b left17:49
sgambino left17:49
netoholic joined17:50
mribeirodantas joined17:50
sgambino joined17:51
dfanjul left17:51
foucist joined17:52
simesy left17:52
jnavila joined17:52
jfoy joined17:52
arand joined17:53
dbuch joined17:53
foucist sometimes i have the stituation where i make a commit, do a git pull upstream master, and then i want to amend the commit that i just made17:53
ezrafree joined17:53
foucist since it won't really affect the git history etc (since it's just part of a future pull request)17:53
how do you handle that?17:53
boyan_yordanov left17:53
edwardly joined17:53
_ikke_ foucist: The merge makes it tricky17:53
foucist or i can make another commit, and then squash the two? but there's a pile of commits in between because of the git pull/merge17:53
rlubke left17:54
foucist i can reverse the merge too17:54
but it semes like this should be simpler17:54
seems like it'd be a common issue :P17:54
BoyanYordanov left17:54
foucist i'd really like to be able to squash/amend commits out of order sometimes17:54
_ikke_ get rebase17:55
git*17:55
stepps left17:55
_ikke_ git rebase -i to be exact17:55
netoholic left17:55
MatrixiumnCaveJohnson17:57
bwreilly left17:58
galaris joined17:59
YoungFrog left17:59
jumperswitch left17:59
delasteve left18:00
de-Vri-es hmm, why does git commit --fixup/--squash and rebase -i --autosquash use commit messages to idenfity commits, and not hashes?18:00
curvedmark left18:00
babylon9 joined18:00
de-Vri-es doesn't really make sense... with the hash you can be sure it uniquely identifies a commit18:00
h0bbit_ joined18:00
dreiss joined18:01
duke_ _ikke_: git rm --cached -r . did the trick18:01
grawity maybe because the message is easier to remember when doing `git commit -m 'fixup! foo'`18:01
DaisyTheCow left18:01
galaris left18:01
rabbite left18:02
galaris joined18:02
de-Vri-es You still have to remember the message exactly then (or atleast the start)18:02
thiago left18:02
joelm joined18:02
galaris left18:02
jfoy left18:03
Stygia joined18:03
de-Vri-es and you might unknowingly refer to the wrong commit because some other commit had a similar start18:03
galaris joined18:03
bremner it gives you the hash as well?18:03
alex69 joined18:03
de-Vri-es running git commit --fixup doesn;t add a hash :/18:04
delasteve joined18:04
de-Vri-es just the commit message of the referenced commit18:04
delasteve left18:04
alex69 left18:04
bremner ah, I see. I never use that.18:04
thiago joined18:04
eaj left18:04
delasteve joined18:04
decimad joined18:05
hellopat left18:05
M-ou-se fixup!<hash> does work for --autosquash18:05
de-Vri-es espeically since rebase -i --autosqiash does seem to accept hashes..18:05
eaj joined18:05
srji left18:05
hellopat joined18:05
M-ou-se it's surprising that commit --fixup doesn't use a hash. i just made 10 commits with the same message, and it indeed picks the wrong one after git commit --fixup and git rebase -i --autosquash :(18:05
MattMaker left18:06
M-ou-se (though, everybody who makes 10 commits with the same message should be shot)18:06
(unless it's to test something)18:06
de-Vri-es (like this)18:06
jfoy joined18:06
M-ou-se (don't shoot me)18:06
jfoy left18:06
rnsanchez joined18:06
MattMaker joined18:06
infynyxx joined18:06
mastro left18:07
rafaqueque joined18:07
skered- joined18:07
skered- left18:07
mdiers joined18:07
mmlac-bv left18:08
skered- joined18:08
alorence left18:08
jfoy joined18:08
eaj left18:08
hellopat left18:10
netoholic joined18:10
cenuij joined18:10
chineduu joined18:10
Snibble joined18:10
Intensity left18:12
darkangel joined18:12
delasteve left18:12
jfoy left18:12
dbuch left18:14
neo1691 left18:14
chinychinchin left18:14
kcj joined18:14
bwreilly joined18:14
Guest21101 left18:15
kirin` left18:15
kirin` joined18:16
ezio left18:16
ezio joined18:16
ezio left18:16
ezio joined18:16
delasteve joined18:17
Devastator_ left18:18
Devastator_ joined18:18
mfulz joined18:18
Devastator_Devastator18:18
banisterfiend left18:18
mfulz left18:19
banisterfiend joined18:20
jaimef left18:20
shoshin joined18:21
chineduu left18:21
lun__ joined18:21
chineduu joined18:21
asQuirreL left18:21
xerxas left18:22
akitada left18:22
heidar left18:22
zero7 left18:22
jab416171 left18:22
joelroa joined18:22
jmcantrell left18:22
oojacoboo joined18:22
ELLIOTTCABLE left18:22
caseydriscoll left18:22
mikef joined18:22
petey joined18:23
darkangel Can someone explain in simple terms what difficulties a dev would experience if I push an amended commit after they pulled?18:24
ThomasCompix left18:25
bwreilly left18:25
mehdi left18:25
colstrom left18:25
ChrisAnn left18:25
HeN left18:25
raghunayyar left18:25
thunderbolt left18:25
skelterjohn left18:25
beawesomeinstead left18:25
twisted` left18:25
mmlac-bv joined18:25
chineduu left18:26
dytrivedi left18:26
tfnico left18:26
canton7 darkangel, at some point they'd try to push, and that would fail as it wouldn't be a fast-forward push. so they'd pull, and that operation would merge together the version of the commit on his computer (the old one) and the new version from the remote. he probably wouldn't notice, would push, and then you've got history containing the two versions18:26
Misan joined18:27
darkangel canton7: I just want to change the Author field18:27
canton7 doesn't matter18:28
darkangel Does the same thing apply?18:28
ok18:28
canton7 it still changes the commit hash18:28
scalability-junk left18:28
jds left18:28
chriswk left18:28
titusjose left18:28
steme_jomps_ left18:28
pikpik left18:28
scottrowe_ left18:28
bluesm left18:28
_rgn left18:28
Roch_ left18:28
shennyg left18:28
GameGamer43 left18:28
martisj left18:28
xpirator left18:28
ggherdov left18:28
johnlcox left18:28
darkangel canton7: What can he do to fix this?18:28
canton7 darkangel, see "recovering from upstream rebase" in man git-rebase18:28
gitinfo darkangel: the git-rebase manpage is available at http://jk.gs/git-rebase.html18:28
bwreilly joined18:28
darkangel canton7: Okay, thanks.18:29
canton7 yours is probably the "easy case"18:29
hashpuppy left18:29
Artpicre joined18:30
hashpuppy joined18:30
goshawk joined18:30
sfz joined18:30
erichynds joined18:31
neo1691 joined18:31
_rgn joined18:31
banisterfiend left18:31
darkangel so confusing :(18:31
khushildep left18:32
canton7 try it with a couple of test repos18:32
codezomb left18:32
canton7 it all makes sense really :)18:32
matanya joined18:33
banisterfiend joined18:33
darkangel Ya I must do some time.18:33
drizzd joined18:33
ecube joined18:33
cworth`cworth18:33
intellix left18:35
tfnico joined18:35
infynyxx left18:35
matanya left18:36
beawesomeinstead joined18:36
anderse joined18:36
darkangel canton7: I actually think he hasn't pulled it. His branch (origin/hisname) is one commit before origin/master, does that sound right? I'm wanting to amend a merge commit.18:36
hellopat joined18:37
mizu_no_oto joined18:37
darkangel Since it's early days, I guess it's worth the risk. :)18:37
canton7 if his history doesn't contain that commit, you're fine18:37
pretty easy to check: 'git log <branch containing merge>'18:37
|PiP| joined18:38
cenuij left18:38
matanya joined18:38
hahuang65 joined18:38
alvaro_o joined18:39
snag joined18:39
rabbite joined18:39
darkangel ok18:39
angelsl left18:39
pandeiro left18:39
Roch_ joined18:40
dytrivedi joined18:40
jmcantrell joined18:40
SHyx0rmZ joined18:41
mikef_ joined18:42
thunderbolt joined18:42
emmajane[emmajane]18:42
cenuij joined18:42
cenuij left18:42
cenuij joined18:42
raonyguimaraes joined18:43
mikef_ left18:44
mikef left18:45
heidar joined18:45
infynyxx joined18:45
ELLIOTTCABLE joined18:46
Samual_Samual18:46
sriracha joined18:47
germanoak left18:47
HeN joined18:47
shruggar joined18:47
foucist M-ou-se: or it should just be automatically squashed :P18:47
BackEndCoder left18:48
simesy joined18:48
jab416171 joined18:48
tbmiller joined18:48
kas84 left18:49
shuaib left18:49
swair joined18:49
dbuch joined18:49
groglogic left18:50
kas84 joined18:50
brita_ joined18:51
delasteve left18:51
shuaib joined18:51
warthog19 joined18:52
simesy left18:52
jrnieder joined18:53
shennyg joined18:53
Pyrogerg joined18:54
lithiumn joined18:54
groglogic joined18:55
galaris left18:55
pikpik joined18:55
cfoellmann joined18:55
xerxas joined18:55
delasteve joined18:55
delasteve left18:57
Syrit left18:57
GameGamer43 joined18:57
ChrisAnn joined18:58
swair left18:58
GameGamer43 left18:58
GameGamer43 joined18:58
samholmes joined18:58
twisted` joined18:58
samholmes How do I bring up my merge conflicts tool again?18:58
scalability-junk joined18:58
cfoellmann left18:59
cbreak mergetool...18:59
BigBlueBacon left18:59
scottrowe_ joined18:59
caseydriscoll joined18:59
thomas_b joined19:00
rdnsget joined19:00
rdnsget left19:00
titusjose joined19:01
foucist i find it really irritating when doing "git checkout <SHA> <file>" to recover an older version of the file and having to "git reset HEAD <file>" every time19:01
it shouldn't assume i'm gonna commit with it right away :P19:01
johnlcox joined19:02
arietis left19:02
zero7 joined19:03
gdoteof joined19:03
kas84 left19:03
canton7 foucist, git show commit:path/to/file ;)19:03
ThomasCompix joined19:04
mfulz joined19:04
raghunayyar joined19:04
cbreak foucist: git checkout goes from the history through the index.19:04
gdoteof so i have a file that has some dev specific information in it, call it server.js it basicaly (among other things) points to which server it shoudl be pointed at.19:04
we are constantly overwriting each others as we work on it and point at different servers19:04
chriswk joined19:04
cbreak gdoteof: !config19:04
gitinfo gdoteof: [!configfiles] It is recommended to store local configuration data in a file which is not tracked by git, but certain deployment scenarios(such as Heroku) may require otherwise. See https://gist.github.com/1423106 for some ideas19:04
gdoteof and manually keep it out of commits19:04
mizu_no_oto left19:05
cbreak gdoteof: basically: remove that file from the repository19:05
gdoteof: there's zero point committing config files19:05
darkangel What message should you give to merge commits?19:05
shruggar left19:05
darkangel Is there some kind of convention/19:05
Is there some kind of convention/?19:05
canton7 darkangel, describe what feature you're merging in19:05
cbreak darkangel: try writing a different one for each. Describing what you merged19:05
kriks left19:05
darkangel Hmm, okay thanks.19:05
gdoteof cbreak: i tried that and absically agree. i have added it to my .gitignore and it still shows 'modified' when i do git status19:06
mfulz left19:06
kriks joined19:06
neo1691 left19:06
canton7 you can't ignore tracked files19:06
mfulz joined19:06
cbreak gdoteof: you have to do what I told you: remove it from the repository19:06
git rm --cached -f file19:06
gdoteof before, i removed it from the repo and it deleted it from other peoples repos when they pulled19:06
cbreak yes19:06
that's normal19:06
gdoteof so they just have to recreate it once19:06
and its fine forever19:06
cbreak correct.19:07
gdoteof ok19:07
cbreak unless they force add it19:07
oojacoboo left19:07
cbreak you can commit a template if you want19:07
banisterfiend left19:07
cbreak so they just have to copy that19:07
calcifea left19:07
cbreak (and change it, to fit their needs)19:07
darkangel Would it be like: Merge "commit message of commit" ... and what if there are multiple commits? ... Like "Merge "did this" and "did that" ... fk idk :P19:07
geekbri joined19:07
skelterjohn joined19:07
cbreak of course, if your program would create its own config file if it is missing, that'd be even better19:07
calcifea joined19:07
Narven joined19:07
quackgyver_ joined19:08
cbreak darkangel: "Merging the Pizza Branch" and after an empty line "Pizzas are the best food ever, how were we able to live without it?!"19:08
gdoteof cbreak: alright, thanks19:08
banisterfiend joined19:08
darkangel cbreak: "Merge branch/name" ... and then list the commits after an empty line?19:09
ewnd9 left19:09
bluesm joined19:09
akitada joined19:09
darkangel Let me give the exact data ...19:09
ggherdov joined19:09
darkangel I'm merging from origin/david (for example)19:10
Two commits ...19:10
ktosiek left19:10
warthog19 left19:10
darkangel "Replaced welcome page with splash page" and "Splash page button"19:10
cbreak darkangel: listing commits is worthless19:10
darkangel: give an overview of the changes that you merge. That's useful.19:10
alan5 left19:10
cbreak if someone wants the commits or the detail logs, they can use git log19:11
ktosiek joined19:11
|Freeman| joined19:11
jds joined19:11
germanoak joined19:11
dbuch left19:12
colstrom joined19:12
darkangel cbreak: Like "Merge origin/david: Splash page"19:12
abelsiqueira left19:12
martisj joined19:13
mehdi joined19:13
crazydiamond joined19:13
ShooterMG joined19:13
trungqtr_ joined19:13
galaris joined19:13
jfoy joined19:14
oojacoboo joined19:14
h0bbit_ left19:14
thiago left19:15
steme_jomps_ joined19:15
xpirator joined19:15
jaimef joined19:17
chuckharmston left19:18
chuckharmston joined19:18
apipkin joined19:19
hwrd|work joined19:19
tplaner joined19:20
warthog9 joined19:20
samholmes okay, I finished with the merge conflicts. However, there is one file that I need to make changes to manually because code was moved over there and the changes in REMOTE had to be added to this file that only existed on LOCAL. Soooo. How do I make sure these changes also get added to the merge commit?19:21
Snibble left19:21
osse samholmes: edit the file and git-add it before commiting19:21
Narven left19:22
neo1691 joined19:22
samholmes osse: Right. I figured as much. I keep forgetting, do I just `git commit` to finish the merge, or is there something extra I have to do? (sorry, I'm always a noob when it comes to merges)19:23
chuckharmston left19:23
ScottO_1 joined19:23
osse samholmes: git commit should seal the deal19:23
samholmes okay. Thanks19:23
calcifea left19:24
ScottO_ left19:24
calcifea joined19:24
shuaib left19:24
osse Heehee, from man git-commit: "Use git commit to seal the deal."19:25
gitinfo the git-commit manpage is available at http://jk.gs/git-commit.html19:25
nnyk_ joined19:25
osse shit, I meant the git-merge manpage19:25
kermit left19:25
pantsman joined19:26
pantsman left19:26
pantsman joined19:26
warthog9 left19:26
Remram ok this is the second time I stumble on nested conflict markers19:27
what is going on19:27
how should I read them19:27
gasbakid__ left19:27
jason237 left19:28
jfoy left19:28
jaimef left19:29
germanoak left19:29
shruggar joined19:29
jaimef joined19:29
foxmk joined19:29
nurey left19:30
oojacoboo left19:30
germanoak joined19:30
osse Remram: the stuff between <<<< and ==== is the contents of the file in the current branch. The stuff between ==== and >>>> is the contents coming from the other branch19:30
gasbakid__ joined19:31
osse Remram: maybe git-mergetool can help19:31
cenuij left19:32
nurey joined19:32
kermit joined19:32
osse Remram: http://git-scm.com/book/ch3-2.html#Basic-Merge-Conflicts19:32
oojacoboo joined19:33
halu_ joined19:33
jfoy joined19:33
oojacoboo left19:33
foxmk left19:34
foxmk joined19:35
tvw left19:35
lresende joined19:35
rpg joined19:35
halu left19:36
oojacoboo joined19:37
alan5 joined19:37
raonyguimaraes left19:38
gua_ould joined19:39
krixxkraxx joined19:39
Snibble joined19:39
galaris left19:40
lresende left19:40
robbyoconnor joined19:40
achadwick left19:41
apipkin left19:41
Stygia left19:41
Mode-M joined19:42
h0bbit_ joined19:43
lun__ left19:43
mizu_no_oto joined19:43
Ziantos joined19:44
lun__ joined19:44
Snibble left19:44
swair joined19:45
darkangel left19:46
r0bby_ joined19:47
SHyx0rmZ left19:48
DolphinDream can you merge a branch onto another branch while you are in yet a different branch ?19:49
simesy joined19:49
robbyoconnor left19:49
breakingthings left19:50
SHyx0rmZ joined19:50
bremner not really19:50
cesarkawakami left19:50
bremner it you 100% know it will be fast forward, you can.19:50
osse DolphinDream: no. I've heard some chatter about "in-memory merges", but maybe those voice were in my head19:51
DolphinDream :) osse u should get urself checked19:51
gitinfo set mode: +v19:51
takamichi left19:52
Snibble joined19:52
DolphinDream kewl.. just curious.. many times i'm on a branch and i need to switch back to master to merge the branch i'm on and then go back tot he branch19:52
osse it would be useful in several scenarios: performing merges in a bare repo; trivial merges, such as merging foo with origin/foo for a lot of different values of foo, etc.19:52
moritz no, that's quite normal for programmers19:52
DolphinDream it would have saved me some keystrokes to be able to merge branch onto master while i'm on the branch ;) perhaps it's best not to have this "feature" anyway19:53
oso96_2000 joined19:53
elasticdog joined19:53
d2dchat_ joined19:53
simesy left19:53
tonyj_ joined19:53
Bigcheese_ joined19:53
groglogic left19:54
tonyj left19:54
d2dchat left19:54
Remram osse: I have nested markers19:55
kamal__ joined19:55
Remram in the "merged parents" part, I have markers for "temporary branch 1"19:55
krixxkraxx left19:55
galaris joined19:55
init joined19:55
axl_ left19:56
Remram << HEAD || merged common ancestors << Temporary merge branch 1 || merged common ancestors == >> Temporary merge branch 2 == >> otherbranch19:56
mikaelj_ joined19:56
etcetera joined19:57
etcetera left19:57
armenb_ joined19:58
Remram my guess is that there are multiple bases somehow19:58
etcetera joined19:58
JakePee_ joined19:59
osse oh, I haven't encountered those before. Are you merging more than two branches?20:00
matteo left20:00
Remram no, just two20:00
itamz_ joined20:00
Remram but there are branches that have been merged separately into them20:00
apipkin joined20:01
Cromulent joined20:01
maloik_ joined20:02
itamz left20:03
mk_io_ joined20:03
JerseyMilker joined20:04
itamz_itamz20:04
plasticb1y joined20:04
rabbite left20:05
kennon_ joined20:05
BiggFREE joined20:05
jceb_ joined20:05
akurilin2 joined20:06
akurilin2 Hey folks, quick sanity check. Do most people use git pull --rebase when pulling? Seems like that'd end up with the cleanest history, right?20:07
Bucciarati_ joined20:07
notnot left20:07
temptemp left20:07
canton7 it's certainly not uncommen20:08
there's a couple of config options to make it the default iirg20:08
max_well1r joined20:08
dserodio_ joined20:08
Remram I don't use git-pull, ever20:09
eaj joined20:09
Snibble I agree w/canton7. I don't know the exact breakdown, but I'd call git pull —rebase "not uncommon". Different workflows (like maybe Remram's) handle the same idea differently, though.20:09
Norm_ joined20:09
lun__ left20:09
Bigcheese left20:09
MrDHat left20:09
drf joined20:09
drf ng again in the new folder?20:09
ugh...20:09
MrDHat joined20:09
kamal_ left20:09
drf I have moved all of the files on my server to a new folder. Now I can't do git pull anymore. I'm wondering what I need to do to re-initialize the repo so that I can pull from the remote20:09
bandroidx joined20:09
mikaelj left20:09
drf Anyone in here?20:09
drf left20:09
armenb left20:09
Nazca left20:09
tjj left20:09
tjj joined20:09
alindeman left20:09
Nazca joined20:09
MrDHat left20:09
Bucciarati left20:09
maloik left20:09
JTAA7UJY joined20:09
plasticboy left20:09
dserodio left20:09
cwillu_at_work left20:09
tchan left20:09
bandroidx left20:09
Philonous left20:09
BiggFREE92AAASC1P20:09
dpwrussell joined20:09
joel_falcou left20:09
tjj_ joined20:09
tjj left20:09
max_weller left20:09
alindeman joined20:09
jfoy left20:09
FernandoBasso joined20:09
cwillu_at_work joined20:09
Nazca left20:09
Nazca joined20:09
alindeman left20:09
alindeman joined20:09
BoyanYordanov joined20:09
osse Remram: can you post a snippet showing the markers? You can also write a mail to the mailing list20:09
joel_falcou joined20:10
Remram I think I solved the conflict somehow but hmm I'm really not sure what happened20:10
aspiers joined20:10
hashpuppy left20:10
krixxkraxx joined20:10
BoyanYordanov left20:11
hwrd|work left20:11
galaris left20:12
droogans left20:12
droogans joined20:12
apipkin left20:13
jfoy joined20:13
dserodio_dserodio20:13
dserodio left20:13
dserodio joined20:13
lavaman left20:13
neo1691 left20:14
gua_ould left20:15
eaj left20:15
marthinal left20:16
JerseyMilker left20:17
GT4066 left20:17
jas4711 joined20:18
foxmk left20:18
victorbjelkholm left20:18
Ziantos left20:18
jonatasnona left20:19
foxmk joined20:19
jonatasnona joined20:20
kcj left20:20
joki left20:20
r0bby_ left20:21
undecim left20:21
foxmk left20:22
raonyguimaraes joined20:22
brita_ left20:23
Chiftin joined20:24
groglogic joined20:25
joki joined20:25
wrouesnel1 joined20:26
rabbite joined20:26
jumperswitch joined20:27
mribeirodantas left20:27
rafaqueque left20:27
Bosox20051 left20:28
axl_ joined20:28
paulweb515 left20:30
neo1691 joined20:31
joelroa left20:31
harobed joined20:31
harobed left20:31
harobed joined20:32
harobed left20:32
harobed joined20:32
jrobichaud joined20:33
jrobichaud left20:34
snql left20:34
luxgeek left20:35
foxmk joined20:35
r0bby_ joined20:36
foxmk left20:36
Misan left20:36
Misan joined20:36
foxmk joined20:36
Mode-M left20:36
foxmk left20:37
h0bbit_ left20:37
foxmk joined20:37
plato joined20:37
tang^ left20:38
zarubin left20:38
foxmk left20:38
plato hi guys. up until yesterday my repo was on a personal EC2 instance. Yesterday I bought a private repo on github.com and used git push --mirror https://github.com/... to copy over the entire repo from EC220:38
tang^ joined20:38
foxmk joined20:38
plato on my local machine, I have some unstaged changes, and it is still pointing at EC220:39
joelrobichaud joined20:39
plato how do I change the target for 'git push' and 'git pull' to point to the new repo, and could that screw up my unstaged changes?20:39
lavaman joined20:40
chrisirc joined20:40
_ikke_ plato: You use git remote set-url <remote> <url>20:40
plato cool, that will persist? i should only have to do it once?20:40
_ikke_ And it does nothing with your unstaged changes20:40
plato: correct20:40
robbyoconnor joined20:40
plato what is <remote> in that command? master ?20:41
_ikke_ most often origin20:41
plato rgr, how can I confirm that it is?20:41
Jackneilll left20:41
r0bby_ left20:41
_ikke_ git remote show origin20:41
rabbite left20:41
chrisirc Hello. git status --short shows the paths relative to the CWD, which is what I want. git status -z shows the paths from the repository root, not what I want (but is a safe encoding). The man page says, that -z defaults to --porcelain *unless a different format is given*,20:41
chuckharmston joined20:42
plato ok, thanks _ikke_20:42
chrisirc but, git status -z --short still does not behave like --short does.20:42
axl_ left20:42
chrisirc Is this a bug?20:42
krixxkraxx left20:42
chrisirc Any way to get what I want?20:42
galaris joined20:42
abrkn left20:42
_ikke_ try git status -z .20:43
Snibble left20:43
chrisirc _ikke_, still prints paths from root20:43
Although at least it restricts the listing to paths below CWD.20:44
Is there a way to get the path *to* CWD, from the working dir root?20:45
lavaman1 joined20:45
lavaman left20:45
chrisirc So that I could strip it away myself safely.20:45
ezio left20:47
chrisirc ah, git rev-parse --show-prefix20:47
rabbite joined20:47
jerius left20:47
zarubin joined20:48
lavaman1lavaman20:48
chrisirc (Sigh, consistency is really not a strenth of git. There's no -z flag for git rev-parse, for example.)20:48
krimreaper joined20:49
ulkesh_work joined20:49
jerius joined20:50
ulkesh_workulkesh20:50
krimreaper is there a way to download a git repo that is being served via https ??? git clone says the repository is not found, but the .git dir and all it's files are definetely there20:50
ToxicFrog Are you sure you gave git clone the right URL?20:51
Can you view it in a browser, i.e. is the server actually serving it?20:51
lcoddocl joined20:51
harobed left20:51
nwertman left20:51
chrisirc krimreaper, serving over a standard http(s) server needs an index to be built (forgot which git command).20:52
spudz left20:52
chrisirc git update-server-info I guess20:52
el3ctron_ joined20:52
asakura left20:52
chrisirc yep20:52
tdm00 joined20:52
spudz joined20:52
calcifea_ joined20:53
krimreaper chrisirc, I don't have access to the server hosting the git repo to run that20:53
calcifea left20:54
alan5 left20:54
Cromulent left20:54
zarubin left20:55
jrnieder krimreaper: you can run it locally20:55
hwrd|work joined20:55
jrnieder and then copy your files to the server with ftp or whatever as usual20:55
galaris left20:55
krixxkraxx joined20:56
asakura joined20:56
krimreaper I don'y have the files, I am simply trying to download the files contained on the server in the ".git" dir which are being served via https20:57
alan5 joined20:57
robbyoconnor left20:57
chrisirc krimreaper, well you could use wget -m -np to get the files, then clone from that locally.20:58
SoftwareMechanic left20:58
rabbite left20:58
chrisirc krimreaper, or you could ask the person who uploaded the files to fix them.20:58
SoftwareMechanic joined20:59
chrisirc (wget will download everything, unlike git which would use the (missing) index file to determine which files to retrieve.)21:00
acharlieh left21:00
krimreaper would wget work without a directory listing ?21:01
mmcdaris left21:01
Stygia joined21:01
chrisirc No, it needs apache or whatever style index.html files21:01
well, "foo/" contents listings.21:01
DaisyTheCow joined21:01
paulweb515 joined21:02
occup4nt joined21:02
foxmk left21:02
delasteve joined21:02
str joined21:02
krimreaper hmmm thats not going to work21:03
chrisirc Or more to the point, it basically just needs any html file returned from the URL you provide,21:03
it will then just follow links in that file, as long as it's links to below that url.21:03
breakingthings joined21:03
occupant left21:04
juanmabc joined21:04
krimreaper is there a script out there able to build a dir listing of all the files I need to download based on the files the git repo is expected to have ?21:05
hashpuppy joined21:05
frgtn left21:05
mfulz left21:05
mfulz joined21:06
thiago joined21:06
frgtn joined21:06
tplaner left21:06
ezio joined21:06
howlymowly left21:06
juanmabc you could git tar, and tar tvf21:06
resmo left21:07
chrisirc Probably such a script is not possible in general. Also, it sounds like you're doing something illegal.21:07
jonatasnona left21:07
ulkesh left21:07
Snibble joined21:07
LBV_User left21:07
_Harm_B_ joined21:07
jonatasnona joined21:08
apipkin joined21:08
Syrit joined21:08
Robarelli left21:08
robbyoconnor joined21:09
Abbas- joined21:09
Abbas- left21:09
Abbas- joined21:09
VictorCL joined21:09
axl_ joined21:09
EugeneKay man git-clone21:09
gitinfo the git-clone manpage is available at http://jk.gs/git-clone.html21:09
thegorn_ krimreaper: without git update-server-info and directory listings, you are just out of luck21:09
erichynds left21:10
EugeneKay You could read .git/HEAD and then through .git/objects, but you'd need at least a minimal ls to find the packfiles listing21:10
My advice? Contact the server admin21:10
frgtn left21:10
Squarism2 left21:10
Simon-- joined21:11
thegorn_ you could brute force every possible pack file name </sarcasm>21:11
Pyrogerg left21:11
jonatasnona left21:12
eaj joined21:12
Syrit left21:12
r0bby_ joined21:13
krimreaper thegorn_, lol21:13
Simon-- trying to find remotes that contain a commit, git branch -a --contains <commit> isn't listing anything, but "git log <commit>" shows we're aware of the commit from somewhere.. derp?21:13
rpg_ joined21:13
axl__ joined21:14
robbyoconnor left21:15
Xethron left21:15
rpg left21:15
axl_ left21:16
axl__axl_21:16
kaictl left21:16
shuaib joined21:16
shuaib left21:16
nnyk_ left21:17
grilix_ left21:17
zapb_ left21:17
mmcdaris joined21:17
banisterfiend left21:18
Philonous joined21:18
babylon9 left21:18
arand left21:18
Philonous left21:18
dhruvasagar left21:18
admin_ joined21:18
nnyk_ joined21:19
juanmabc left21:19
rpg_ left21:19
eaj left21:19
warthog9 joined21:19
abelsiqueira joined21:19
Dougie187 left21:19
simesy joined21:19
resmo joined21:20
calcifea_ left21:20
nwertman joined21:20
Jeroi left21:21
eijk left21:22
galaris joined21:22
lithiumn left21:22
r0bby_ left21:22
krixxkraxx left21:23
[emmajane]emmajane21:23
iamjarvo_ joined21:23
iamjarvo_ left21:23
bamj0rb Simon--: Why not from *there*. Or from a no longer existent remote?21:24
akurilin2 Hey folks. Is there a good resource to find out more about healthy git practices? I've been using the tool for years and have most of the basics done, and could probably use tips to make the most of it.21:24
simesy left21:24
jceb_ left21:24
SamB what's a good name for a dummy file just to make a directory exist?21:24
ulkesh_work joined21:25
bamj0rb akurilin2: It's largely personal preference. I like this: http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg39091.html.21:25
krimreaper left21:25
bekks SamB: "mkdir shinydirectoryname".21:25
Hello71 .gitignore21:25
bekks SamB: You dont need a file in there for a directory to exist.21:25
bamj0rb SamB: __EMPTY__?21:25
Hello71 README21:25
bamj0rb bekks: You do for Git to track the directory.21:25
Hello71 "this directory is for ..."21:25
bamj0rb bekks: More precisely, Git doesn't track files or directories. It tracks trees and blobs. It cannot track a "directory" without something inside of it.21:26
iamjarvo left21:26
Abbas- left21:27
salamanderrake left21:27
Abbas- joined21:27
gasbakid__ left21:27
bamj0rb Of course, you could always generate the directory at build time instead.21:27
ulkesh_workulkesh21:28
Stygia left21:28
Simon-- bamj0rb: why not from *there*? not sure what you mean..21:29
nilg joined21:29
Simon-- bamj0rb: just trying to find out which of all of my remote branches have a particular commit..21:29
bamj0rb Simon--: You seem to think the change must have come from a remote. Why can't it have originated in the current repo?21:29
Simon--: git log <commit> only tells you that the commit exists in your current repo. Not that it exists in any remote branches.21:30
Simon-- only because I know the author pushed it to his tree ;)21:30
his public tree..21:30
PeterBooker left21:30
bamj0rb I suppose you could loop over remote branches and see if the commit exists on them? I would expect your git branch command to work though. :-/21:30
Simon-- yah, this is why I'm confused21:30
bamj0rb Perhaps you need to fetch?21:31
calcifea_ joined21:31
Simon-- git fetch --all has no changes ... in theory, if git branch -a --contains <x> lists nothing, git gc should nuke it?21:31
User458764 left21:32
f0ster joined21:32
oojacoboo left21:32
f0ster i have an old version of a public repo i am trying to update, for some reason there are conflicts, and i really dont care about anything in my local repo, how can I just completely reset to what is on the master head ?21:33
bamj0rb Only if no refs reference it or its decendents at all. Also, by default it only prunes up to like 2 weeks back.21:33
You mean the remote master?21:33
lavaman left21:33
bamj0rb f0ster: git checkout $branch && git reset --hard $remote/$branch # WARNING: --hard will happily throw away any and all changes in your working directory or index.21:34
salamanderrake joined21:34
str left21:34
esc sorry, I only ever come here with weird error messages, but21:34
http://bp.zetatech.org/705f6e521:34
tpollard joined21:34
f0ster bamj0rb: perfect doesn't matter what is my working directory/index21:34
pfFredd left21:35
f0ster bamj0rb: it says i have file si need to merge first (because i already tried to pull from origin master), error: you need to resolve your current index first21:35
oojacoboo joined21:35
lavaman joined21:35
bamj0rb o_O With --hard? Perhaps you need to just reset --mixed first (the default for reset)?21:35
danillonunes left21:36
johnnyfuchs left21:36
pfFredd joined21:36
neo1691 left21:37
bamj0rb f0ster: (Of course, if you really want to just throw everything away and get a pure clone of upstream you can always rm -fR $path && git clone $url $path # ;)21:37
victorbjelkholm joined21:37
neo1691 joined21:37
f0ster hmm okay21:38
cenuij joined21:39
bamj0rb Protip: Perhaps quote $path to be safe. ;)21:39
cenuij left21:39
cenuij joined21:39
f0ster yeah not sure why it's working, guess ill do it the fast way :)21:39
Bosox20051 joined21:39
ezio left21:39
bamj0rb I think there's a merge --abort too.21:40
abrkn joined21:40
cfoellmann joined21:41
abbas3 joined21:42
Abbas- left21:42
mizu_no_oto left21:43
t0r joined21:43
takamichi joined21:44
cfoellmann left21:44
tbmiller left21:46
tdm00 left21:46
ngladitz left21:46
Snibble left21:46
kirin` left21:46
benizi left21:47
takamichi left21:47
Stygia joined21:48
Snibble joined21:49
benizi joined21:49
AWinterman joined21:50
Dougie187 joined21:50
nnyk_ left21:50
kirin` joined21:50
Bosox20051 left21:51
swair left21:52
m0ltar left21:53
trungqtr_ left21:53
kriks left21:53
trungqtran joined21:53
abrkn left21:54
acharlieh joined21:54
jnavila left21:54
ciampix joined21:55
ulkesh left21:55
geekbri_ joined21:55
bamj0rb esc: Good luck. ;) I don't know anything about that. Is git-annex just a plain branch or is it actually related to git annex (which I forget what it does...)?21:56
geekbri_ left21:56
kriks joined21:56
joelrobichaud left21:56
geekbri left21:57
neo1691 left21:57
simesy joined21:57
SimonNa joined21:58
bremner that branch is special21:59
spaceonline joined21:59
tchan joined22:00
trungqtran left22:01
amcsi joined22:03
calcifea_ left22:03
mribeirodantas joined22:05
Robarelli joined22:07
warthog9 left22:09
infynyxx left22:11
Snibble left22:12
jhermann joined22:12
Matt_R left22:13
neo1691 joined22:14
johnnyfuchs joined22:14
calcifea joined22:15
eaj joined22:15
trungqtran joined22:15
LuxuryMode left22:16
bakers joined22:16
bakers How do I list my local branches, and what they track (if anything) upstream22:17
init left22:18
Exio4 joined22:18
matanya left22:19
koptein left22:19
apipkin left22:19
infynyxx joined22:19
trungqtran left22:19
phile left22:19
adam_ joined22:20
banisterfiend joined22:20
jrnieder bakers: "git for-each-ref --format='%(refname) %(upstream)' refs/heads", maybe22:20
resmo left22:20
jrnieder bakers: perhaps with :short, as in "git for-each-ref --format='%(refname:short) %(upstream:short)' refs/heads". Is this for use in a script or just to get an overview for yourself?22:21
eaj left22:21
bakers jrnieder: For myself22:22
Destos left22:22
bakers it seems like something like22:22
jrnieder bakers: ok, also see something like "git branch -vv"22:22
bakers git branch -v would include that22:22
jrnieder: Oh -vv has it22:22
nice22:22
alan5 left22:23
ciampix left22:23
fuzzybunny69y joined22:24
staafl left22:25
jhermann left22:25
hellopat left22:25
crazydiamond left22:26
joelmo left22:27
catcher left22:27
snag left22:28
breakingthings left22:28
droogans left22:28
wintrmute joined22:29
jumperswitch left22:29
donmichelangelo left22:30
wintrmute id like to host git repos on my physical linux server for certain sensitive projects. any suggestions on gitosis vs. gitolite (or others)?22:30
crazydiamond joined22:30
donmichelangelo joined22:30
m8 left22:30
TomyLobo left22:31
bremner !gitosis22:31
gitinfo gitosis is no longer maintained and supported by the author; we usually recommend gitolite instead which has much better documentation and more features: http://github.com/sitaramc/gitolite -- if you're already stuck with gitosis we'll try to help, but no promises!22:31
jhermann joined22:31
wintrmute bremner, that would do it. thx22:31
tomaw joined22:32
Neptu joined22:32
wintrmute bremner, ive also seen gitorious and gitalist mentioned, any thoughts on those?22:32
asQuirreL joined22:33
bremner gitorious is more focussed on web front end. gitalist I don't know.22:33
jokajak left22:34
neo1691 left22:34
lmat joined22:35
lmat I do git checkout -b remote branch22:35
Then, git svn dcommit --dry-run and it says "Committing to <trunk url>"22:35
What gives ?22:35
I also tried git checkout --track -b <remote branch>22:35
oh... git checkout -b <local name> <remote name>22:36
sheesh22:36
yeah, that's it... maybe someday I'll get it22:37
DaisyTheCow left22:39
bamj0rb wintrmute: If it's just for personal use then SSH is probably good enough.22:39
matanya joined22:39
tang^ wintrmute: but do try out gitolite22:40
treat your machine as a server and you'll be used to server/desktop differences22:40
wintrmute bamj0rb, it is and thats probably sufficient... but its also a learning exercise and i cant resist ;)22:41
tang^, will do22:41
SocalNick left22:41
bamj0rb Indeed. Just ... if you have trouble getting gitosis setup you can just get it working the easy way. ;)22:41
s/gitosis/gitolite/22:41
leeN left22:42
Snibble joined22:43
ojacobson left22:43
kcj joined22:44
d2dchat_ left22:44
lmat I'm trying to grab up two commits (they aren't adjacent) and apply them to my working tree as one commit.22:45
Which command should I be looking at?22:45
Snibble left22:45
lmat I've looked a bit at cherry-pick and rebase, but which one is best ? Is there a better way?22:45
bakers Is there a single command, that will create a local branch AND set it up to track the remote branch with the same name?22:45
tang^ lmat: cherry-pick --no-commit22:45
bakers right now I create the branch, push it, and then do --set-upstream22:45
lmat tang^: Thanks.22:45
germanoak left22:45
Pyrogerg joined22:45
SamB bakers: I think "git checkout <name>"22:46
JSharpe left22:46
shuaib joined22:46
bakers SamB: error: pathspec 'blah' did not match any file(s) known to git.22:46
SocalNick joined22:46
SamB hmm, what version of git is that?22:46
tang^ bakers: git checkout -b <branch>22:47
bakers: git push --set-upstream-to=origin <branch>22:47
lmat tang^: jackpot. Leaving out -n[o-commit] will have cherry-pick commit each one separately, right ?22:47
tang^ lmat: yes22:47
aard left22:48
canton7 bakers, !local_branch_from_remote22:49
gitinfo bakers: The following commands are all equivalent, assuming <branch> doesn't yet exist: 'git checkout -b <branch> <remote>/<branch>', 'git checkout -t <remote>/<branch>', 'git checkout <branch>'. The latter invokes some magic.22:49
JSharpe joined22:49
lmat tang^: Thanks, thanks22:49
anderse left22:50
canton7 all of those will set the new branch to track the remote one, assuming the remote one is a remote-tracking branch, and not another local branch22:50
chuckharmston left22:50
JSharpe_ joined22:50
tang^ the latter invokes some magic if your branch only exists in one remote22:50
got caught by that one recently22:50
canton7 hence the caveat "assuming <branch> doesn't yet exist"?22:50
glosoli left22:51
DonRichie left22:51
bakers canton7: http://www.fpaste.org/52236/13837782/22:51
canton7 bakers, there's also push -u22:51
alan5 joined22:51
canton7 bakers, output of 'git branch -a' ?22:51
tang^ canton7: branch did not exist... but I had two remotes with the same branch I was interested in22:51
jokajak joined22:52
bakers canton7: http://www.fpaste.org/52237/13837783/22:52
JSharpe left22:52
canton7 tang^, ah yeah, it'll start with origin then fail iirc?22:52
bakers I just want to create a new branch locally, that's ALSO tracked remotely22:52
without three commands22:52
DonRichie joined22:52
canton7 bakers, aah. I see what you mean22:52
emmajane[emmajane]22:52
canton7 create the branch, then push -u22:52
you're not going to get it below 2 commands: one to create and checkout the branch, the second to push it and set it as the upstream branch22:53
tang^ canton7: no, I created a brand new local branch with that name22:53
I -> it22:53
bakers Ok that makes sense22:53
dougsland left22:53
lmat left22:53
canton7 tang^, based on what?22:53
Pyrogerg left22:54
jerius left22:54
kermit left22:54
tang^ canton7: based on standard for git branch <branch> when you have no remotes22:54
canton7 so HEAD? I find that really hard to believe22:54
Nickeeh joined22:54
Nickeeh left22:55
tang^ well, let me test that out again22:55
canton7 I'm willing to bet it picked origin/<branch> as the starting point22:55
anyways, bedtime22:55
kermit joined22:56
wintrmute ack, 2-4gb ram for a gitorious server? maybe i will start with gitolite instead22:57
Dreamer3 joined22:58
hedho joined22:59
MattMaker left22:59
hedho hi there could someone tell me how to fix this http://pastebin.com/261fNq8222:59
tang^ canton7: nope, git checkout -b <branch> (which was in both origin and private) created a new <branch> off HEAD23:00
harobed_ joined23:00
pantsman left23:00
hedho left23:00
hedho joined23:00
apipkin joined23:01
nwertman left23:01
seanz Random question: I've got a directory checked into a branch, but when I switch to a different branch, the directory appears as an untracked resource. Why would that happen?23:02
nwertman joined23:02
sfz_ joined23:02
rafaqueque joined23:02
tang^ seanz: switching branches doesn't remove files unless the new branch knows/knew about them23:02
natechan left23:02
tang^ hedho: psychic debugging suggests that you haven't set up a SSH key for whatever git host you're trying to clone from23:03
_ikke_ tang^: are you sure?23:03
danillonunes joined23:03
groglogic left23:03
Nickeeh joined23:03
seanz tang^: Yes, but this directory is tracked in a different branch. git should be cleaning it up when switching to a different branch, like it does for all other files and dirs.23:03
hobodave joined23:03
RogerWS_ left23:03
tang^ _ikke_: well, now I'm not. I seem to have noticed that behaviour and it made sense this way23:03
bamj0rb left23:04
TheBrainWork left23:04
_ikke_ afaik, git removes files and dirs if they aren't present in another branch23:04
seanz _ikke_: Exactly. So I'm wondering why it isn't doing so for this one.23:05
tang^ actually, we have some tools that have been taking this effect into account... switch branches git clean -dxf to get rid of files left behind23:05
acharlieh left23:05
sfz left23:05
tang^ because git is constantly leaving files untouched if the new branch doesn't know about them23:05
groglogic joined23:05
_ikke_ Hard to tell without details23:06
drizzd left23:07
sfz joined23:07
rendar left23:07
sfz_ left23:07
seanz _ikke_: Yeah, I hear you. I'm not sure what details to give.23:08
delasteve left23:08
_ikke_ Are you sure it is tracked in the other brach, and not ignored?23:08
seanz _ikke_: When I checkout the other branch, the directory and all related files reappear.23:08
I should mention I moved the dir in question out first, then checkout out the branch where it is tracked.23:09
It was back.23:09
macabre left23:09
_ikke_ And when you go to the other branch, they are untracked again?23:09
MacWinner joined23:09
seanz NOW they're gone.23:09
After I moved the "untracked" version out.23:09
So it's "fixed", but I don't know why it was broken.23:10
_ikke_ me neither23:10
If it keeps happening, you might want to take it to the !mailing_list23:10
gitinfo The mailing list can be reached via [email@hidden.address] You don't need to subscribe to the list, you will always be put in cc on reply. Read archives at http://j.mp/gitlist23:10
seanz _ikke_: Well, thanks for trying. :) I guess I'll revisit this if it happens again.23:10
_ikke_: Thanks. Will do.23:10
SimonNa left23:11
zorbash left23:11
delasteve joined23:11
Fandekasp joined23:12
gregsmith left23:12
devbug left23:13
jasonp left23:13
sfz_ joined23:13
luxgeek joined23:13
sfz left23:14
mmlac-bv left23:14
eijk joined23:15
alan5 left23:15
tvw joined23:15
pigeon joined23:15
hholtmann left23:16
undecim joined23:16
VictorCL left23:16
mmitchel_ joined23:16
Pullphinger left23:17
felixsamora joined23:18
felixsamora left23:18
eaj joined23:18
frgtn joined23:19
ktosiek left23:20
mmitchell left23:20
mmitchel_ left23:21
rudi_s Hi. Can I ignore certain paths when running git diff a..b ?23:21
kaictl joined23:21
sgambino left23:23
ktosiek joined23:23
grilix joined23:23
pfFredd left23:24
pfFredd joined23:24
CKyle left23:25
eaj left23:25
nwertman left23:27
hs366 left23:29
felixsamora joined23:30
felixsamora left23:30
hyperair left23:30
nurey left23:30
felixsamora joined23:31
occup4nt left23:31
felixsamora left23:31
Misan left23:31
johnnyfuchs left23:32
DrShoggoth left23:32
felixsamora joined23:32
felixsamora left23:32
felixsamora joined23:33
felixsamora left23:33
threesome left23:33
nwertman joined23:33
felixsamora joined23:34
zarubin joined23:34
felixsamora left23:34
MattMaker joined23:35
etcetera left23:35
occupant joined23:35
crazydiamond left23:35
etcetera joined23:35
alvaro_o left23:36
melee left23:37
alvaro_o joined23:37
eijk left23:37
MacWinner left23:39
felixsamora joined23:39
felixsamora left23:40
melee joined23:40
felixsamora joined23:40
felixsamora left23:40
delasteve left23:41
Artpicre left23:41
felixsamora joined23:41
felixsamora left23:41
madewokherd joined23:42
felixsamora joined23:42
Gamecubic left23:42
felixsamora left23:42
chuckharmston joined23:43
sriracha left23:43
Zeam joined23:43
Gamecubic joined23:44
Zeam I am trying to commit some files in my repo and am getting a warning LF will be replaced by CRLF in ... then after a bunch of files it says "fatal: unable to read 9c186... really long hash"23:45
abbas3 the warning is harmleess23:45
Zeam How do I fix it? I don't see a file anywhere with the hash name...23:45
abbas3 need more info unable to read part23:45
Zeam thats all it says...23:46
crazydiamond joined23:46
nwertman left23:46
Zeam "fatal: unable to read <insert hash here>"23:46
abbas3 hmm .. maybe it cant connect to the remote repo23:46
I'm new to git myself so u have to wait for some pro23:47
felixsamora joined23:47
nwertman joined23:47
pitzips left23:47
felixsamora left23:47
Zeam it is a local repo23:47
jrnieder Zeam: !repro :)23:47
gitinfo Zeam: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting.23:47
felixsamora joined23:47
hedho left23:48
Zeam jrnieder: there isn't anything else to post...23:48
jrnieder you run "git commit" and the only output is "fatal: unable to read 9c186... really long hash"?23:48
and I can reproduce this in a new repository, by simply running "git commit"?23:49
Zeam it comes after a bunch of warnings about LF being replaced by CRLF23:49
jrnieder right, what I abbreviated with the !r* thing23:49
kenperkins_kenperkins23:49
jrnieder was that the details are incredibly important if you want people to help you23:49
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html explains this better than I can23:50
even when you're not reporting a bug, or just a usability bug :)23:50
abbas3Abb_s23:50
Zarthus left23:50
Zeam jrnieder: I don't think it is a bug, just trying to figure out how I can get past the error23:51
Neozonz left23:51
amcsi left23:51
jrnieder anyway, I've said what I wanted to. hopefully someone else can help23:51
DonRichie left23:51
grilix left23:51
DonRichie joined23:52
King_Hual` joined23:52
King_Hual` left23:53
trusktr joined23:54
King_Hual left23:54
SoftwareMechanic left23:56
jason237 joined23:56
kwmiebach left23:57
mmlac-bv joined23:57
kwmiebach joined23:58
cenuij left23:58
Bosox20051 joined23:58
CreativeEmbassy left23:59

Logs Search ←Prev date Next date→ Channels Documentation