| 2012-04-12 |
|
maestrojed
| CareBear\ you rock, got me fixed up. Thanks | 00:00 |
| ← maestrojed left | 00:01 |
| → sattu94 joined | 00:01 |
| ← mgpcoe left | 00:02 |
| → jalama joined | 00:02 |
| → acl_ joined | 00:03 |
| ← satyanash left | 00:04 |
| ← master-lincoln left | 00:05 |
|
CareBear\
| maestrojed : you're welcome | 00:05 |
| ← tqmz left | 00:05 |
| ← subh left | 00:06 |
| → mischat joined | 00:07 |
| kaen → Farva | 00:07 |
| Farva → kaen | 00:07 |
| → blackmatrix_ny joined | 00:08 |
| ← kevwil left | 00:08 |
| ← rrn left | 00:09 |
| ← dreiss left | 00:10 |
| → rrn joined | 00:10 |
| ← robotmay left | 00:10 |
| tizzo-afk → tizzo | 00:12 |
| → zivester joined | 00:12 |
| → slide23 joined | 00:12 |
| → kevwil joined | 00:13 |
| ← slide left | 00:14 |
| ← kevwil left | 00:15 |
| ← tvw left | 00:15 |
| → nif joined | 00:20 |
| → TeckniX joined | 00:20 |
| ← flavius left | 00:20 |
| → Bartzy joined | 00:20 |
| ← Chaser left | 00:25 |
| → aca20031 joined | 00:25 |
|
aca20031
| If I have one file with local changes and for just that one file i want to get the remote versions of it, how can I do that? Will git rm do it or will it actually delete the file from the repository? | 00:25 |
| ← SimonNa left | 00:26 |
|
CareBear\
| aca20031 : define remote versions | 00:27 |
|
| aca20031 : you can use git checkout commit filename to checkout a file from a previous commit | 00:27 |
|
aca20031
| local repository has changes to a file that i dont want, theres also a remote repository called "remote" that i added, i want to replace the file X.java with the same exact file in the remote | 00:27 |
| ← rrn left | 00:28 |
| → gchristensen joined | 00:28 |
|
aca20031
| i see, git checkout name/of/file.java did it | 00:29 |
| ← gchristensen left | 00:29 |
| ← harish left | 00:29 |
| → rrn joined | 00:29 |
| → gerard0 joined | 00:30 |
|
aca20031
| i get confused as to gits distinction between "push/pull" and "commit/checkout" | 00:31 |
|
kevlarman
| aca20031: sorry confuse you even more, but pull is not the inverse of push | 00:32 |
|
| fetch is | 00:32 |
| → macmartine joined | 00:33 |
| ← Bartzy left | 00:33 |
|
aca20031
| i hate you a little | 00:33 |
|
| lol | 00:33 |
| ← the_drow left | 00:33 |
| → Goplat joined | 00:36 |
| ← beatak left | 00:36 |
| → macrover joined | 00:36 |
| ← machine2 left | 00:36 |
|
CareBear\
| aca20031 : I recommend !book | 00:37 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable | 00:37 |
| ← bolt left | 00:37 |
| → pfFredd joined | 00:38 |
| ← ryden left | 00:38 |
| ← rrn left | 00:40 |
|
aca20031
| I should, but im just using it for pet projects not professionally atm so im curerently under motivated to learn it as well as i should | 00:40 |
| → cooloney joined | 00:40 |
|
CareBear\
| either you want to learn to use the tool or you do not | 00:41 |
| → machine2 joined | 00:41 |
| → alberto56 joined | 00:42 |
|
CareBear\
| if you don't want to learn ("meh" included) then better not use the tool at all | 00:42 |
|
| if you do want to learn then do it right, or you're just wasting your time (and ours to some degree) | 00:42 |
| → rrn joined | 00:42 |
|
aca20031
| yeah yeah | 00:42 |
|
| sorry, but thank you. | 00:42 |
|
CareBear\
| I'm happy to help, but maybe less so if someone isn't actually interested in learning :) | 00:42 |
|
| but it *is* a fair bit to learn! | 00:43 |
|
| the best is to just use it | 00:43 |
|
| as you are | 00:43 |
|
| and read a bit on how to do things you want | 00:43 |
|
aca20031
| im interested in learning, just not -everything- at the moment considering my limited usage | 00:43 |
|
CareBear\
| sure | 00:43 |
|
aca20031
| hard to pick and choose pieces from a book, if i do that im going to learn it in much depth | 00:43 |
|
CareBear\
| don't have to read the whole book right away :) | 00:43 |
|
| the book is not very heavy | 00:43 |
|
aca20031
| if it helps, i googled pull vs fetch | 00:43 |
|
| makes sense :) | 00:43 |
| → MrJones98 joined | 00:43 |
|
CareBear\
| I also recommend man pages to learn about what the different commands do, as well as the details of each come time to go in depth | 00:44 |
|
SethRobertson
| We even have a trigger on that: !pull | 00:44 |
|
gitinfo
| pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/ | 00:44 |
|
aca20031
| im actually using git bash in windows | 00:44 |
|
| no man pages :( | 00:44 |
| → fission6 joined | 00:44 |
|
CareBear\
| man git | 00:44 |
|
gitinfo
| the git manpage is available at http://jk.gs/git.html | 00:44 |
|
aca20031
| oh nice | 00:44 |
|
| bookmarked | 00:44 |
|
SethRobertson
| git help; git pull help, etc | 00:44 |
|
| built in man pages | 00:44 |
| ← ocharles left | 00:45 |
|
SethRobertson
| I assume even for windows | 00:45 |
|
CareBear\
| ass-u-me! | 00:45 |
|
SethRobertson
| Am I wrong? | 00:45 |
| → hobbyist joined | 00:45 |
|
CareBear\
| there's not even a termianl | 00:45 |
|
| terminal | 00:45 |
|
aca20031
| it opens a web brower, so no youre not wrong | 00:45 |
| ← lonewulf` left | 00:45 |
|
SethRobertson
| git bash *is* a terminal. | 00:45 |
|
aca20031
| git pull help opens file:///C:/Program%20Files%20(x86)/Git/doc/git/html/git-pull.html | 00:45 |
| ← rrn left | 00:46 |
|
CareBear\
| SethRobertson : which one? | 00:46 |
| gitinfo set mode: +v | 00:46 |
|
MrJones98
| so i am having a really difficult time deleting some files from my history... these were deleted many commits ago and filter-branch --index-filter 'git rm -rf --cached --ignore-unmatch' doesn't seem to get rid of them | 00:46 |
| → subh joined | 00:46 |
|
SethRobertson
| Dunno. I can type commands. I have command line editing. I have perl. Seems terminalish | 00:46 |
|
CareBear\
| MrJones98 : it seems like filter-branch should do what you need | 00:46 |
|
MrJones98
| CareBear\: I thought so also | 00:47 |
|
CareBear\
| SethRobertson : is it running in cmd? | 00:47 |
|
MrJones98
| CareBear\: but i've tried it with tree-filter and index-filter and the files are still in my history | 00:47 |
| → gchristensen joined | 00:47 |
| → rrn joined | 00:47 |
| ← gchristensen left | 00:48 |
| → gchristensen joined | 00:48 |
|
SethRobertson
| CareBear\: Huh? When you ask for git bash you get a bash shell. | 00:48 |
|
| MrJones98: How do you know? !repro | 00:48 |
|
gitinfo
| MrJones98: Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting. | 00:48 |
|
MrJones98
| SethRobertson: let me clean a session up and paste it for you | 00:49 |
|
CareBear\
| SethRobertson : sorry yes, I mean the cmd command interpreter window | 00:49 |
| ← Guest28280 left | 00:49 |
|
SethRobertson
| MrJones98: Did you use the --all flag to do it to all branches, if you have multiple branches? Did you use --tag-filter cat if you have tags? | 00:49 |
|
MrJones98
| SethRobertson: yes, i have used --all | 00:49 |
|
SethRobertson
| CareBear\: No, typically you have a new option in your explorer shell right button menu which brings up a window which might make you believe for a few blissful moments is on a sane OS | 00:50 |
| ← macrover left | 00:51 |
|
SethRobertson
| MrJones98: Yes, please pastebin an example command line and output and the method you determined that the file was still in history. | 00:51 |
| → dbgster joined | 00:51 |
|
MrJones98
| SethRobertson: here's a link https://gist.github.com/2363855 | 00:51 |
|
| SethRobertson: i will work from a new copy of the repos so you can see the output also | 00:52 |
| → lonewulf` joined | 00:52 |
| → jsutri joined | 00:52 |
|
SethRobertson
| MrJones98: You don't need to be a new copy. Doing it on the old copy is just fine. For an example SHA1 returned by git-log, please run `git branch --contains SHA1` and `git tag --contains SHA1` | 00:53 |
| ← joaoh82 left | 00:53 |
| → joaoh82 joined | 00:54 |
| → bolt joined | 00:54 |
| → rgwu joined | 00:54 |
| → ferdna joined | 00:55 |
| → subbyyy joined | 00:55 |
|
MrJones98
| SethRobertson: hmm, perhaps it is deleted then since the command doesn't return anything | 00:55 |
| → Qoidnef joined | 00:55 |
| ← subh left | 00:56 |
|
SethRobertson
| MrJones98: Also, running `git checkout SHA1; git rm -rf --cached --ignore-unmatch env/; git status` might be interesting as well. | 00:56 |
| → CannedCorn joined | 00:56 |
|
SethRobertson
| Declare victory and press forward | 00:56 |
| ← pfFredd left | 00:56 |
| ← Mowsh left | 00:56 |
| ← AaronMT left | 00:57 |
| → Mowsh joined | 00:57 |
| → satyanash joined | 00:58 |
| ← w0ng left | 00:58 |
| ← joaoh82 left | 00:59 |
| ← usmanity left | 00:59 |
| → troulouliou_dev joined | 00:59 |
|
MrJones98
| SethRobertson: my repository is still extremely large and i found a script online that prints out the largest blobs and the files are still there | 00:59 |
|
CareBear\
| man git gc | 00:59 |
|
gitinfo
| the git-gc manpage is available at http://jk.gs/git-gc.html | 00:59 |
| → w0ng joined | 00:59 |
|
troulouliou_dev
| hi is it normal that after cloning and adding the upstream for github , i type "git fetch upstream master" | 00:59 |
| ← ziggles left | 00:59 |
|
SethRobertson
| MrJones98: Ah, now that is completely different. Step one: `git clone file:/path/to/repo othername | 00:59 |
|
CareBear\
| MrJones98 : try cloning it into a new directory. see if they come along. | 00:59 |
|
troulouliou_dev
| but git branch -r do not show me the upstram/master branch | 00:59 |
| ← Guest87934 left | 01:00 |
|
CareBear\
| troulouliou_dev : git branch -a should definitely show it | 01:00 |
|
SethRobertson
| MrJones98: That will tell us whether the repo can be shrunk to the size you expect. You could use that repo, but more likely you will want to fix your current one. See the bottom of the man git-filter-branch man page which tells you how to shrink...assuming the git-clone shrinks | 01:00 |
|
gitinfo
| MrJones98: the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html | 01:00 |
| ← KyleXY left | 01:00 |
| ← sattu94 left | 01:01 |
|
SethRobertson
| troulouliou_dev: Did you `git remote update upstram`? | 01:01 |
| → mgpcoe joined | 01:01 |
| ← mgpcoe left | 01:01 |
|
troulouliou_dev
| CareBear\, didn't too , i dont want to do "git fetch upstream"" without master caus ethere are tons of branch that i don't want | 01:01 |
|
| SethRobertson, why ? | 01:01 |
| ← ColKurtz left | 01:02 |
|
troulouliou_dev
| when i type git fetch upstream master it says | 01:02 |
|
| branch master -> FETCH_HEAD | 01:02 |
|
SethRobertson
| troulouliou_dev: You cannot really get only one branch. Certainly not under upstam/branchname | 01:02 |
|
| Yes, don't use the four argument version of git-fetch or git-pull. It only ends in tears. You *can* use FETCH_HEAD instead of upstram/master | 01:03 |
|
| But it will end in tears. It always does. | 01:03 |
| ← Qoidnef left | 01:04 |
| → brngardner joined | 01:04 |
|
troulouliou_dev
| SethRobertson, i have to fetch all the branches ? | 01:04 |
| → Qoidnef joined | 01:04 |
|
SethRobertson
| I recommend it, to avoid tears you know. Are you afraid of namespace pollution? | 01:05 |
| ← MrJones98 left | 01:05 |
|
SethRobertson
| You could try changing remote.upstream.fetch refspec | 01:06 |
|
| You would probably want to also disable tag fetching for that remote as well. | 01:06 |
| → ryden joined | 01:07 |
|
CareBear\
| ooh I want that | 01:07 |
|
| ! | 01:07 |
| ← berserkr left | 01:08 |
|
CareBear\
| This? remote.<name>.tagopt Setting this value to --no-tags disables automatic tag following when fetching from remote <name> | 01:08 |
|
SethRobertson
| remote.<name>.tagopt | 01:08 |
|
CareBear\
| lovely | 01:08 |
|
SethRobertson
| I'd like for the git-devs to get tag remotes namespace working. They were toying with it for a while | 01:08 |
|
CareBear\
| can I get rid of them after the fact? simply tag -d ? | 01:09 |
|
SethRobertson
| Sure, if you can distinguish the bad'uns from the good'uns | 01:09 |
|
CareBear\
| sure | 01:09 |
| ← dbgster left | 01:09 |
|
CareBear\
| the bad'uns are all called r[0-9]+ | 01:09 |
|
SethRobertson
| Actually what would be nice is a refspec like thing for which tags you want to accept | 01:10 |
| → barrbrain joined | 01:10 |
|
SethRobertson
| Or even better, glob or REs. for the fetch spec as well. Dreaming, I know | 01:10 |
| ← Vampire0 left | 01:11 |
| → KyleXY_ joined | 01:11 |
| → MrJones98 joined | 01:11 |
|
CareBear\
| I did git tag|egrep|xargs git tag -d | 01:11 |
| gitinfo set mode: +v | 01:11 |
|
CareBear\
| awesome | 01:12 |
|
| thanks | 01:12 |
| ← SegFaultAX|work left | 01:12 |
|
MrJones98
| SethRobertson: looks like it might've shrunk | 01:12 |
|
| trying it on a clean veersion since i think i might've mucked it up | 01:12 |
| ← whyking_ left | 01:12 |
| ← dhruvasagar left | 01:13 |
| KyleXY_ → KyleXY | 01:13 |
| → dhruvasagar joined | 01:14 |
| ← apok left | 01:15 |
| → Guest87934 joined | 01:15 |
| → apok joined | 01:15 |
| → mwrosen joined | 01:17 |
| ← timoxley left | 01:18 |
| → cccaldas joined | 01:18 |
| → Vert joined | 01:22 |
| → xiangfu joined | 01:22 |
| → harish joined | 01:23 |
| → NickPresta joined | 01:24 |
|
NickPresta
| I have a project that is itself, a git repository. It depends on code that is checked into another repository (a library). Does it make sense to manage this dependency using git submodules (the library is a submodule for the main project)? | 01:24 |
| → timoxley joined | 01:24 |
| ← borodon left | 01:24 |
| ← lottadot left | 01:24 |
| → Vampire0 joined | 01:25 |
| ← fisted_ left | 01:26 |
| ← lonewulf` left | 01:26 |
| → Fandekasp joined | 01:26 |
| → fisted joined | 01:26 |
| → Paradox2000 joined | 01:27 |
| ← troulouliou_dev left | 01:28 |
| → eletuchy joined | 01:29 |
| ← gchristensen left | 01:29 |
| → brar joined | 01:29 |
| ← dstorrs left | 01:30 |
| ← TeckniX left | 01:30 |
| ← eletuchy_ left | 01:31 |
| → maestrojed joined | 01:32 |
| → robbyoconnor joined | 01:32 |
| ← illusi left | 01:37 |
| → mritz joined | 01:38 |
| ← MrJones98 left | 01:41 |
| → setmeaway2 joined | 01:42 |
| ← acl_ left | 01:42 |
| → ehks` joined | 01:43 |
| → iori joined | 01:44 |
| ← setmeaway left | 01:45 |
| → Davey joined | 01:46 |
| ← DrNick left | 01:46 |
| ← el2ro left | 01:47 |
| ← ehks left | 01:47 |
| ← setmeaway2 left | 01:48 |
| ← Davey left | 01:48 |
| → joaoh82 joined | 01:50 |
| → gchristensen joined | 01:51 |
| → Davey joined | 01:52 |
| ← kaen left | 01:52 |
| ← jalama left | 01:53 |
| ← alberto56 left | 01:53 |
| ← zivester left | 01:54 |
| ← CannedCorn left | 01:55 |
| ← ghvandoorn left | 01:56 |
| ← oriba left | 01:57 |
| → neurodrone joined | 01:57 |
| → setmeaway joined | 01:58 |
| → distg joined | 01:59 |
| → PigeonFriend joined | 02:00 |
| ← agile left | 02:01 |
| → ajaykools joined | 02:02 |
| → thursday joined | 02:02 |
|
SethRobertson
| NickPresta: That is one of your options. See also !subprojects | 02:03 |
|
gitinfo
| NickPresta: So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely seperate. Otherwise your best options are "!submodule" "!gitslave" and "!subtree" Try typing those commands into this IRC channel. | 02:03 |
| → chrisshattuck joined | 02:03 |
| → dbgster joined | 02:03 |
|
NickPresta
| SethRobertson: thank you. I ended up just installing the library as a Python package. | 02:03 |
| ← bielewelt left | 02:03 |
| → agile joined | 02:04 |
| → bielewelt joined | 02:08 |
| → d2dchat joined | 02:11 |
| → ChaoWang joined | 02:12 |
| ← cooloney left | 02:12 |
| → cooloney joined | 02:12 |
| → fling joined | 02:12 |
| → zivester joined | 02:13 |
| ← NickPresta left | 02:13 |
| → intripoon joined | 02:15 |
| ← orafu left | 02:16 |
| → orafu joined | 02:16 |
| ← Nibato left | 02:16 |
| → el2ro joined | 02:18 |
| ← intripoon_ left | 02:18 |
| ← zivester left | 02:19 |
| ← bartman left | 02:19 |
| ← jsutri left | 02:19 |
| ← Paradox2000 left | 02:19 |
| → Paradox2000 joined | 02:19 |
| ← PigeonFriend left | 02:19 |
| ← ChaoWang left | 02:20 |
| ← cooloney left | 02:20 |
| → duckxx joined | 02:21 |
| ← Paradox2000 left | 02:22 |
| → Nibato joined | 02:23 |
| ← williamcotton left | 02:23 |
| → Paradox2000 joined | 02:23 |
| ← Paradox2000 left | 02:23 |
| → Paradox2000 joined | 02:23 |
| → webflo1 joined | 02:24 |
| ← webflo left | 02:24 |
| ← LimeBlast left | 02:25 |
| → kingx joined | 02:26 |
| → bartman joined | 02:26 |
|
kingx
| hello | 02:26 |
|
gitinfo
| kingx: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 02:26 |
| ← thelazydeveloper left | 02:26 |
| → cooloney joined | 02:27 |
|
kingx
| first time working with version control, just wanted to get something simple figured out. I have a small project (simple html files), that I want to maintain with git. So I can edit the files on one computer and commit them to run on another. | 02:27 |
|
SethRobertson
| Read !book | 02:27 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable | 02:27 |
| ← mwrosen left | 02:28 |
|
CareBear\
| kingx : moving files around (deployment) is somehow orthogonal to version control | 02:28 |
|
SethRobertson
| There is !web but... | 02:28 |
|
gitinfo
| [!website] Git is not a website deployment tool, but can sometimes play one in sufficiently simple/lax environments with a little help. One example of help is: http://toroid.org/ams/git-website-howto and another approach: https://gist.github.com/1714235 | 02:28 |
|
kingx
| well what i was thinking is (maybe i am wrong), I simply dont want to move files around every time I make a change. | 02:28 |
|
CareBear\
| kingx : I like http://joemaller.com/990 for using git with web | 02:28 |
|
kingx
| so maybe I can commit to a git repo and then clone the git where i want the files running | 02:29 |
|
CareBear\
| kingx : the term for what you want is automated deployment | 02:29 |
|
kingx
| or that makes no sense lol | 02:29 |
|
CareBear\
| kingx : but it's important that you keep in mind that deployment is orthogonal to version control | 02:29 |
|
| kingx : that said, there are a couple of popular ways to script around git, so that you *can* in fact deploy also using git commnads | 02:29 |
|
| commands | 02:30 |
|
kingx
| ah i see | 02:30 |
|
| now that makes sense | 02:30 |
|
CareBear\
| recommend check out the links and simply try it out | 02:30 |
| → zivester joined | 02:31 |
| ← Araxia left | 02:31 |
|
CareBear\
| I like the joemaller.com/990 solution although it's slightly more complicated, because it allows to work also on the server should that be neccessary | 02:31 |
| ← MestreLion left | 02:31 |
|
CareBear\
| but you may want to try out the simpler solutions first | 02:31 |
| → Slix` joined | 02:31 |
|
CareBear\
| I recommend experimenting with a dummy site | 02:31 |
| → gavin_huang joined | 02:31 |
|
CareBear\
| just to quickly try out the different methods | 02:31 |
| ← mxweas_ left | 02:32 |
|
CareBear\
| then decide on which one you like, and implement it for your real files | 02:32 |
| → jalama joined | 02:32 |
|
kingx
| yeh thats what i have going on, this web-focused git workflow seems like what i need | 02:32 |
|
| i'll start reading the links you mentioned, thanks for pointing em out :) | 02:33 |
| → apok_ joined | 02:33 |
|
CareBear\
| you're welcome, SethRobertson also helped | 02:33 |
|
| later! | 02:33 |
| ← hobbyist left | 02:35 |
| ← mister_m left | 02:36 |
| → pastime joined | 02:36 |
| ← apok_ left | 02:37 |
| ← apok left | 02:38 |
| → pantsman joined | 02:39 |
| ← dhruvasagar left | 02:39 |
| ← legnaleurc left | 02:41 |
| → stkrzysiak joined | 02:41 |
| ← zivester left | 02:42 |
| ← d2dchat left | 02:42 |
| → dhruvasagar joined | 02:42 |
| → maletor joined | 02:43 |
| → mwrosen joined | 02:44 |
| ← timoxley left | 02:44 |
| ← marass_ left | 02:44 |
| → marass joined | 02:44 |
| ← dhruvasagar left | 02:44 |
| ← nif left | 02:45 |
| ← subbyyy left | 02:46 |
| → dhruvasagar joined | 02:46 |
| ← jim0203 left | 02:48 |
| ← pantsman left | 02:48 |
| ← jalama left | 02:49 |
| ← fukushima left | 02:51 |
| → Nightfire034 joined | 02:52 |
|
bigkitty
| HI | 02:53 |
|
| can not use git clone right now:( | 02:53 |
|
| what's wrong? | 02:53 |
|
SethRobertson
| !repro | 02:53 |
|
gitinfo
| Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting. | 02:53 |
|
imMute
| nah, it's the moon phase messing with things. try again in 13.3 minutes | 02:54 |
| → Yuuhi`` joined | 02:54 |
| ← btanaka left | 02:55 |
| → zivester joined | 02:55 |
| ← Yuuhi` left | 02:56 |
| ← gavin_huang left | 02:57 |
| ← maestrojed left | 02:57 |
|
bigkitty
| http://iyanwu.com/pastebin/showthread.php?tid=30 | 02:59 |
| → fukushima joined | 03:00 |
| ← ybit left | 03:02 |
|
SethRobertson
| Ah, well it looks like you have upgraded perl but not git | 03:02 |
|
| What OS are you running? | 03:02 |
|
| distrobution | 03:02 |
| → gavin_huang joined | 03:03 |
| → pjn_oz_ joined | 03:04 |
| ← cccaldas left | 03:04 |
| → scottrigby joined | 03:04 |
| → DrNick joined | 03:04 |
| → cjs joined | 03:04 |
| → mister_m joined | 03:05 |
| ← marowit left | 03:05 |
| → williamcotton joined | 03:05 |
|
bremner
| bigkitty: also, please be precise about what command you typed. It looks much more like "git svn clone" than "git clone" | 03:05 |
| ← Paradox2000 left | 03:06 |
|
bigkitty
| bremner i am running git svn clone:) | 03:06 |
|
thiago
| bigkitty: install your Perl SVN libraries | 03:07 |
|
bigkitty
| thiago how to install it? | 03:09 |
| ← subrosa left | 03:09 |
|
bremner
| umm. it depends. | 03:10 |
| → ybit joined | 03:10 |
|
bremner
| ask your OS support buddy? | 03:10 |
| ← williamcotton left | 03:10 |
| → marowit_ joined | 03:11 |
| ← travisfischer left | 03:12 |
| → jrots_ joined | 03:13 |
| → pjn_oz joined | 03:13 |
| ← dbgster left | 03:13 |
| → travisfischer joined | 03:13 |
| ← gavin_huang left | 03:14 |
| → mxweas_ joined | 03:14 |
| ← Contex left | 03:14 |
|
bigkitty
| bremner i ask u now:) | 03:14 |
| → mattsa joined | 03:14 |
| ← pjn_oz_ left | 03:14 |
|
bremner
| bigkitty: I don't even know what OS you are running. It looks kindof old and crufty; perl 5.8 is pretty obsolete. | 03:16 |
|
thiago
| bigkitty: this is #git, not #perl. Please check with your OS or Perl vendor how to install those. | 03:16 |
|
| bigkitty: also, it's about the SVN libraries. Make sure you installed them from wherever you get Subversion. | 03:16 |
| → gavin_huang joined | 03:20 |
| ← mattsa left | 03:20 |
| ← jrots_ left | 03:21 |
| → jrots joined | 03:21 |
| ← gavin_huang left | 03:21 |
| ← mxweas_ left | 03:24 |
|
bigkitty
| thiago i am using centos 5.3 now:) | 03:25 |
|
thiago
| bigkitty: try asking in #centos | 03:25 |
| → mxweas_ joined | 03:25 |
| ← ferdna left | 03:26 |
|
jpalmer
| bigkitty: hint: the first thing #centos will do, is make fun of you for being on an ancient version. | 03:26 |
|
| You'd be better off in #RHEL, #centos isn't a very pleasant channel. | 03:27 |
| ← jrots left | 03:27 |
| ← mxweas_ left | 03:28 |
| → gavin_huang joined | 03:28 |
| ← Nightfire034 left | 03:28 |
| → philoserf joined | 03:30 |
| → jrots joined | 03:30 |
| ← scottrigby left | 03:30 |
| ← philoserf left | 03:34 |
| → philoserf joined | 03:34 |
| → timoxley joined | 03:34 |
| → michaelmartinez joined | 03:35 |
| ← jrots left | 03:36 |
| → jrots joined | 03:36 |
| → maestrojed joined | 03:37 |
| ← maestrojed left | 03:38 |
| ← skoop left | 03:39 |
| → glennpratt joined | 03:41 |
| ← gavin_huang left | 03:42 |
| → maestrojed joined | 03:42 |
| ← jameswarren left | 03:43 |
| → literal_username joined | 03:44 |
| ← jrots left | 03:45 |
| → ericmuyser joined | 03:45 |
| → gavin_huang joined | 03:46 |
| ← eletuchy left | 03:47 |
|
literal_username
| Hi all, I have a file with 0400 permissions that belongs to the system user that is used to run the application in my repo. I want to include the file with the repo, but git can't stat it under my account. So my options seem to be to use git as my app's system user, which seems wrong, or to just not version the file at all, even though it belongs in there, or... any ideas? | 03:47 |
| → dr0id joined | 03:48 |
| → yasar joined | 03:48 |
|
literal_username
| I could give it 0440 permissions, but that's a minor security concern. | 03:48 |
| → Fullmoon joined | 03:49 |
| ← brngardner left | 03:49 |
|
yasar
| how do I see diff between staged file and last commited version of that file? | 03:49 |
|
jpalmer
| depending on the OS, you could also use acl's to gran your git user read perms in addition to the system users read perms. | 03:49 |
|
literal_username
| jpalmer: It's Linux. That sounds plausible. | 03:50 |
|
jpalmer
| literal_username: man setfacl, man getfacl | 03:52 |
|
rgwu
| yasar: git diff HEAD | 03:53 |
|
literal_username
| jpalmer: Sweet. This is new to me, so I really appreciate the knowledge. Thanks! | 03:53 |
| ← elnn left | 03:53 |
|
rgwu
| yasar: or git diff HEAD filename | 03:54 |
|
jpalmer
| literal_username: keep in mind, I don't know your environment, so this may not be the *best* answer. it only answers your immediate question. pesonally, I'd look for a workflow where you can utilize the traditional "ugo" permissions model. | 03:54 |
| → elnn joined | 03:54 |
|
thiago
| literal_username: note that git might decide to erase and recreate that file | 03:54 |
|
| literal_username: it will reset to regular permissions (no ACL, 0666 | ~umask) | 03:54 |
| → BiggFREE joined | 03:54 |
|
thiago
| 0666 & ~umask, I mean | 03:55 |
|
jpalmer
| ^^ what thiago said | 03:55 |
|
literal_username
| Oh. | 03:55 |
| → ketas joined | 03:55 |
|
thiago
| literal_username: if you don't want git to touch the file, don't track it | 03:56 |
| → archdori joined | 03:56 |
|
literal_username
| I don't really mind if git touches it, but changing its permissions is undesirable. | 03:56 |
|
jpalmer
| literal_username: also, depending on which linux (saying "Linux" is kinda vague in this regard) you may have to enable kernel modules, or remount your filesystems to utilize the extended permissions/attributes. | 03:57 |
|
literal_username
| Arch, ext4 fwiw | 03:57 |
|
thiago
| literal_username: "touch" means rewrite | 03:57 |
|
| literal_username: Git never writes to an existing file. It only creates a new one and replaces the old. | 03:58 |
|
| jpalmer isn't familiar with selinux on arch, so I'll defer you to the docs ;) | 03:58 |
| ← enmand left | 03:58 |
| ← chrisshattuck left | 03:59 |
|
literal_username
| thiago: I get that. I don't follow the need to change permissions from the original on re-create, though. | 03:59 |
| ← madewokherd left | 03:59 |
|
thiago
| literal_username: because it's a new file | 03:59 |
|
| literal_username: it gets the default permissions | 03:59 |
|
literal_username
| So even if I give this file 0440, and it gets updated, then git gives it 0666 & ~umask | 04:00 |
|
thiago
| no | 04:00 |
|
| your operating system does | 04:00 |
| ← Fandekasp left | 04:00 |
|
thiago
| git doesn't care. It creates a new file. | 04:00 |
| → acl_ joined | 04:00 |
|
literal_username
| So user and group are not retained either. | 04:00 |
|
thiago
| it's the OS that chooses what the permissions, owner and group will be. | 04:00 |
|
| correct | 04:00 |
| ← gchristensen left | 04:00 |
| → hagabaka joined | 04:01 |
| ← hagabaka left | 04:01 |
| → hagabaka joined | 04:01 |
|
literal_username
| Sure. I follow the logic, it just seems sorta annoying. | 04:01 |
|
thiago
| git can be configured to force the permissions | 04:01 |
|
| but not user or group | 04:01 |
|
| especially not user. chown requires root. | 04:01 |
|
literal_username
| Why do files get replaced instead of updated? | 04:03 |
| ← hyperair left | 04:03 |
| ← aca20031 left | 04:04 |
| → skylamer` joined | 04:04 |
| → legnaleurc joined | 04:04 |
| → tonesfrommars joined | 04:08 |
| ← Internet13 left | 04:11 |
| ← superdmp left | 04:11 |
| → superdmp joined | 04:11 |
| ← ajaykools left | 04:13 |
| ← ryden left | 04:13 |
| ← coyotebush left | 04:13 |
| ← b1lly left | 04:16 |
| → Internet13 joined | 04:16 |
| ← mwrosen left | 04:16 |
| → gchristensen joined | 04:19 |
| ← krz left | 04:19 |
| ← rgwu left | 04:19 |
| ← gchristensen left | 04:19 |
| → dstorrs joined | 04:21 |
| ← iamjarvo left | 04:23 |
| → brando753 joined | 04:25 |
| → ehsan joined | 04:29 |
| ← timoxley left | 04:31 |
| → richo joined | 04:31 |
| ← richo left | 04:31 |
| → richo joined | 04:31 |
|
richo
| I'm having a brainfart, for a given commit, how do I extract it's commit message? | 04:32 |
| → envi_ joined | 04:32 |
|
offby1
| "git show" | 04:32 |
|
richo
| it seems insistent to show me the diff too | 04:33 |
|
| all I want is the commit message | 04:33 |
|
cehteh
| git log -1 and some pretty format works for sure | 04:35 |
| → timoxley joined | 04:35 |
|
cehteh
| git cat-file commit $hash and some mangling may work too (but thats plumbing) | 04:35 |
| → zamN joined | 04:36 |
|
cehteh
| as well git-show with pretty format works | 04:36 |
|
richo
| plumbing is probably ok | 04:36 |
|
| i tried git show --pretty=format:"%s" HEAD | 04:37 |
|
| but that still shows me the diff | 04:37 |
| → FreeArtMan joined | 04:37 |
|
cehteh
| try git log -1 then | 04:38 |
| → beautifulmind joined | 04:38 |
|
cehteh
| is the full body of the message | 04:38 |
| ← Internet13 left | 04:38 |
|
richo
| git log -1 works great, thanks :) | 04:39 |
|
cehteh
| (did you see that percentB .. my client takes that as bold formatting, stupid) | 04:39 |
| ← timoxley left | 04:40 |
| → dvide_ joined | 04:41 |
| ← estevocastro left | 04:41 |
| ← yasar left | 04:41 |
| ← dvide left | 04:43 |
| ← lyddonb left | 04:43 |
| ← pastime left | 04:43 |
| → jameswarren joined | 04:44 |
| → Internet13 joined | 04:44 |
|
brando753
| I followed the documentation for getting git to publish to my webs document root, though the files publish to the git repo they dont seem to update the documentation root, Im using gitolite as the git server | 04:44 |
| ← gavin_huang left | 04:44 |
|
brando753
| http://toroid.org/ams/git-website-howto | 04:44 |
| → eletuchy joined | 04:45 |
|
richo
| cehteh: Yup, all sorted thankyou :) | 04:47 |
| → Error404NotFound joined | 04:48 |
| → timoxley joined | 04:48 |
| ← jameswarren left | 04:48 |
| ← Error404NotFound left | 04:49 |
| → gavin_huang joined | 04:51 |
| ← dstorrs left | 04:52 |
| → cime joined | 04:52 |
| → mbrochh joined | 04:52 |
|
mbrochh
| hey all. do I understand it correctly that "git push" tries to push all my branches? | 04:52 |
|
| I often step into pifalls because of this, wouldn't it be much more intuitive if "git push" would only push the active branch? "git push -all" should push all branches. | 04:53 |
| → dvide joined | 04:53 |
| ← dvide_ left | 04:56 |
| ← maestrojed left | 04:57 |
| → apok joined | 04:57 |
| → thirdknife joined | 05:00 |
|
wereHamster
| mbrochh: man git-config -> push.default | 05:01 |
|
gitinfo
| mbrochh: the git-config manpage is available at http://jk.gs/git-config.html | 05:01 |
| ← diegoviola left | 05:02 |
|
mbrochh
| wereHamster: many thanks! super helpful!! | 05:02 |
| → _sundar_ joined | 05:03 |
| → maestrojed joined | 05:05 |
| → akiress joined | 05:06 |
| ← BiggFREE left | 05:09 |
| ← jhford left | 05:09 |
| ← yoklov left | 05:10 |
| ← electrogeek left | 05:10 |
| ← jrockway left | 05:10 |
| ← staticsafe left | 05:10 |
| ← magcius left | 05:10 |
| → electrogeek joined | 05:10 |
| ← electrogeek left | 05:10 |
| → electrogeek joined | 05:10 |
| → jrockway joined | 05:12 |
| ← ceej left | 05:14 |
| → magcius joined | 05:15 |
| ← Qoidnef left | 05:15 |
| ← thiago left | 05:16 |
| ← philoserf left | 05:17 |
| ← hotwings left | 05:17 |
| ← duckxx left | 05:18 |
| → harshpb joined | 05:18 |
| → rurufufuss joined | 05:18 |
| ← macmartine left | 05:18 |
| → philoserf joined | 05:19 |
| ← philoserf left | 05:21 |
| → jhford joined | 05:21 |
| → staticsafe joined | 05:22 |
| ← staticsafe left | 05:22 |
| → staticsafe joined | 05:22 |
| ← gavin_huang left | 05:22 |
| → macmartine joined | 05:23 |
| ← ology left | 05:24 |
| ← kukks left | 05:24 |
| ← tatsuya_o left | 05:26 |
| ← pom left | 05:26 |
| → tatsuya_o joined | 05:26 |
| → philoserf joined | 05:26 |
| ← flippo left | 05:26 |
| → replore_ joined | 05:27 |
| → gavin_huang joined | 05:27 |
| ← xiangfu left | 05:28 |
| → xiangfu joined | 05:29 |
| ← project2501b left | 05:29 |
| ← thirdknife left | 05:30 |
| → tewecske joined | 05:31 |
| ← tewecske left | 05:31 |
| ← envi_ left | 05:34 |
| → dreiss joined | 05:34 |
| → thirdknife joined | 05:34 |
| → Sigma joined | 05:34 |
| → caseymcg joined | 05:35 |
| → JohnBat26 joined | 05:36 |
| → notola joined | 05:36 |
|
sitaram
| brando753: try adding 'unset GIT_DIR' at the top of the post-receive hook; without digging much deeper into details that's the only thing I can think of | 05:38 |
| ← kingx left | 05:38 |
| ← notola left | 05:40 |
| → ajaykools joined | 05:40 |
| → notola joined | 05:41 |
| ← brokenshakles left | 05:42 |
| → tewecske joined | 05:43 |
| ← tewecske left | 05:43 |
| ← xiangfu left | 05:43 |
| → sandstrom joined | 05:43 |
| ← sandstrom left | 05:43 |
| → sandstrom joined | 05:43 |
| → DofLeFou joined | 05:44 |
|
milki
| brando753: !website | 05:44 |
|
gitinfo
| brando753: Git is not a website deployment tool, but can sometimes play one in sufficiently simple/lax environments with a little help. One example of help is: http://toroid.org/ams/git-website-howto and another approach: https://gist.github.com/1714235 | 05:44 |
|
milki
| brando753: people suggest the second method | 05:44 |
| → brokenshakles joined | 05:46 |
| ← notola left | 05:46 |
| ← richo left | 05:46 |
| → pfFredd joined | 05:46 |
| ← tatsuya_o left | 05:47 |
| ← macmartine left | 05:47 |
| ← beautifulmind left | 05:47 |
| → tatsuya_o joined | 05:47 |
| → subbyyy joined | 05:48 |
| → mishok13 joined | 05:48 |
| ← luke-jr left | 05:50 |
| → luke-jr joined | 05:50 |
| ← Goplat left | 05:51 |
| ← neurodrone left | 05:52 |
| ← mister_m left | 05:52 |
| → hyperair joined | 05:53 |
| ← tatsuya_o left | 05:54 |
| → tatsuya_o joined | 05:54 |
| ← Davey left | 05:54 |
| → psoo joined | 05:55 |
| → akraut joined | 05:57 |
| → mxweas_ joined | 05:58 |
| → airborn joined | 05:59 |
| ← OOPMan left | 06:00 |
| → fayaz joined | 06:02 |
| ← ben225 left | 06:02 |
| → flijten joined | 06:03 |
| ← smw left | 06:03 |
| → macmartine joined | 06:03 |
| ← RobertLaptop left | 06:03 |
| ← dhruvasagar left | 06:04 |
| → patrakov joined | 06:04 |
| → beautifulmind joined | 06:05 |
| → dhruvasagar joined | 06:06 |
| ← macmartine left | 06:06 |
|
patrakov
| Hi. I made a commit, then was asked to revert it (with the motivation "not now, and this piece of your code can be simplified"), reverted. | 06:06 |
| ← The-Compiler left | 06:07 |
|
patrakov
| Now I want to work on this again. How to revert the revert so that the result is not a commit but rather something that I can further edit and then commit? | 06:07 |
| → awkward joined | 06:07 |
| ← thierryp left | 06:07 |
| ← fayaz left | 06:07 |
| ← ericmuyser left | 06:08 |
| ← philoserf left | 06:10 |
| → ThomasLocke joined | 06:10 |
| ← ormaaj left | 06:11 |
| → Dave^| joined | 06:12 |
| ← sandstrom left | 06:12 |
| → cbreak-work joined | 06:13 |
| → tsdh joined | 06:14 |
|
brando753
| milki, how do I get that second one to copy the files to the web root? | 06:15 |
|
| it wasnt commented | 06:15 |
| → sacback joined | 06:15 |
|
patrakov
| ok, "git revert --no-commit e5979d184c" did almost what I wanted. The diff is in "git diff --cached" | 06:15 |
| → dpino joined | 06:15 |
| → Shusshu joined | 06:16 |
| ← agile left | 06:16 |
| → OOPMan joined | 06:17 |
| ← ajaykools left | 06:17 |
| → agile joined | 06:17 |
| → richo joined | 06:18 |
|
richo
| I'm trying to fetch just the content of an annotated tag, ie git [something] tag_name, I'm assuming I'll need git log -1 magic again? | 06:19 |
| → glcrazy joined | 06:19 |
|
milki
| brando753: you modify the rsync command | 06:19 |
| ← acl_ left | 06:20 |
| → RobertLaptop joined | 06:20 |
| → The-Compiler joined | 06:20 |
| → iocor joined | 06:20 |
| → lonewulf` joined | 06:23 |
| ← hyperair left | 06:23 |
| → Qoidnef joined | 06:25 |
| → slide_ joined | 06:26 |
| → ormaaj joined | 06:27 |
| ← gdoteof left | 06:27 |
| ← michaelmartinez left | 06:28 |
|
brando753
| milki, I changed the line "rsync --delete -rlpgocv lib/ /web/geekcruises-secure/lib-ng/" to "rsync --delete -rlpgocv lib/ /srv/www/mywebsite/" but it still does not show up there | 06:29 |
| ← maestrojed left | 06:29 |
| ← slide23 left | 06:29 |
| ← maletor left | 06:30 |
| ← mishok13 left | 06:31 |
| → chayin_ joined | 06:32 |
|
milki
| you need to modify lib/ to be the dir you want to copy over as well | 06:33 |
|
| man rsync | 06:33 |
| → giallu joined | 06:34 |
| → hyperair joined | 06:34 |
| → chayin__ joined | 06:35 |
| → mastro joined | 06:35 |
| ← k0rnel left | 06:35 |
| ← chayin left | 06:36 |
| → Sitethief joined | 06:36 |
| → magn3ts joined | 06:36 |
|
magn3ts
| How can I move my working tree 'back in time' | 06:36 |
|
| I want to equivalent of "git checkout 1532a3d4a1a70f594c64d1196b2252ba4b302844" | 06:37 |
|
| can I do something like that? | 06:37 |
|
EugeneKay
| magn3ts - of course. You probably want to create a branch when you checkout. | 06:37 |
|
magn3ts
| EugeneKay: you're just every fucking where. | 06:38 |
|
EugeneKay
| eg, git checkout -b goingback 1532a3d4 | 06:38 |
|
magn3ts
| EugeneKay: I explicitly do plan on modifying the code at all. | 06:38 |
|
EugeneKay
| More places than you know ;-) | 06:38 |
|
magn3ts
| so I don't want to branch or rebase I don't think. | 06:38 |
|
| do not*** | 06:38 |
|
| magn3ts dammit | 06:38 |
| ← ipalaus_ left | 06:38 |
|
EugeneKay
| What are you trying to do? Android stuff? | 06:38 |
| ← chayin_ left | 06:38 |
|
magn3ts
| No, we introduced a bug over the last days in a project I'm on and I need to track down which commit caused it | 06:39 |
|
EugeneKay
| Ah, OK. | 06:39 |
|
| Is it something you can test at various points? | 06:39 |
| → orkz joined | 06:39 |
|
magn3ts
| yes but only if the code's checked out | 06:40 |
|
EugeneKay
| Right | 06:40 |
| ← awkward left | 06:40 |
|
EugeneKay
| Create a new branch, call it 'test', from wherever you are now. | 06:40 |
|
| Then use reset --hard $ID to move that branch around(and update your working-tree to match) to each suspected point | 06:41 |
| ← joaoh82 left | 06:41 |
|
EugeneKay
| You can use !lol to get the various SHAs you want to try | 06:41 |
|
gitinfo
| git config --global alias.lol "log --oneline --graph --decorate" | 06:41 |
|
magn3ts
| after switching to the branch of course :) | 06:41 |
| ← yrlnry left | 06:41 |
|
EugeneKay
| 'git checkout -b Foo HEAD' will create Foo from wherever you are now, and check it out. | 06:41 |
| → pantsman joined | 06:42 |
| ← pantsman left | 06:42 |
| → pantsman joined | 06:42 |
|
EugeneKay
| Shortcuts ftw | 06:42 |
|
magn3ts
| oh, I see. | 06:42 |
| ← FabTG left | 06:42 |
|
magn3ts
| I'll work on that then, thanks sir. | 06:42 |
|
EugeneKay
| As you'll be reset --hard'ing it a bunch it probably isn't important that your stuff is pushable. | 06:42 |
|
| Just so you can find the problem | 06:42 |
| → sandstrom joined | 06:42 |
| ← sandstrom left | 06:43 |
| → sandstrom joined | 06:43 |
| → ph^ joined | 06:43 |
| → deebo joined | 06:43 |
|
deebo
| how do i reset the current index and checkout from .git directory? | 06:43 |
| ← zamN left | 06:44 |
|
deebo
| i moved the .git directory into a blank directory to get a "blank checkout" easily, but it wasnt that easy after all :P | 06:44 |
| → maletor joined | 06:44 |
|
EugeneKay
| deebo - !fixup, or man git-reset | 06:44 |
|
gitinfo
| deebo: the git-reset manpage is available at http://jk.gs/git-reset.html | 06:44 |
| ← OPK left | 06:44 |
|
EugeneKay
| !fixup | 06:44 |
|
gitinfo
| 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. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info) | 06:44 |
|
EugeneKay
| Stupid bot. | 06:44 |
| ← airborn left | 06:45 |
|
deebo
| ah yeah, reset to HEAD did it, thanks | 06:45 |
| → ben225 joined | 06:45 |
| → dc5ala joined | 06:46 |
| → wilmoore joined | 06:46 |
| ← wilmoore left | 06:47 |
| → rendar joined | 06:47 |
| ← barrbrain left | 06:49 |
| → airborn joined | 06:49 |
|
magn3ts
| EugeneKay: So if I delete the branch before doing a commit, it won't be pushed ever though right, or does doing a hard reset create a new "history point"? | 06:49 |
|
EugeneKay
| magn3ts - the branch shouldn't be pushed anyway, as it isn't a "tracked" branch. | 06:49 |
|
magn3ts
| EugeneKay: oh. does a first commit on a new branch cause it to be tracked then I assume? | 06:50 |
|
EugeneKay
| reset --hard force-moves the branch pointer to the commit you specify and checks it out | 06:50 |
| → marthinal joined | 06:50 |
|
EugeneKay
| No, --track(when checking out a remotes/foo/branch) or set-upstream cause it to be tracked. | 06:50 |
| ← Mowsh left | 06:51 |
|
magn3ts
| So if I didn't do that when I started... would I have to just do `git checkout --track branch` again? | 06:51 |
| → arvind_k joined | 06:51 |
|
magn3ts
| (theoretically, I don't want to do it here obviously) | 06:51 |
| ← giallu left | 06:51 |
|
EugeneKay
| I would use set-upstream | 06:51 |
|
| Which is a branch subcommand | 06:51 |
|
magn3ts
| okay. I see. thanks | 06:51 |
|
EugeneKay
| WHY it doesn't have --, I don't know. Git's stupid porcelain needs a reworking. | 06:52 |
| → maestrojed joined | 06:52 |
| ← ben225 left | 06:52 |
| ← bartman left | 06:52 |
| ← tonesfrommars left | 06:53 |
| ← thirdknife left | 06:53 |
| → resmo_ joined | 06:53 |
| → jceb joined | 06:53 |
| arvind_k → arvind_khadri | 06:54 |
| ← arvind_khadri left | 06:54 |
| → arvind_khadri joined | 06:54 |
|
milki
| maybe its not using the same library to parse options | 06:55 |
| ← Fullmoon left | 06:55 |
|
EugeneKay
| No, it's a case of unintelligent design. | 06:55 |
|
| Actually, set-upstream DOES use --. I'm thinking of "set-url", which is git-remote. | 06:55 |
| ← mritz left | 06:56 |
| ← sacback left | 06:56 |
|
| EugeneKay rambles for a bit about things that are terrible, but offers no comprehensive solutions to improving them | 06:56 |
| → Fandekasp joined | 06:57 |
| → netiru joined | 06:58 |
| → bartman joined | 06:59 |
|
magn3ts
| I almost want to create a script that will do a binary search for a bug. I can tell it two points, one where there was a bug, and one before it that didn't have the bug. It will do checkouts in a binary fashion and allow me to say if the bug was present at each checkout... | 06:59 |
|
EugeneKay
| man git-bisest | 06:59 |
|
IcePic
| bisect* | 06:59 |
|
EugeneKay
| man git-bisect | 06:59 |
|
gitinfo
| the git-bisect manpage is available at http://jk.gs/git-bisect.html | 06:59 |
| → syphar joined | 06:59 |
|
magn3ts
| :{ | 06:59 |
|
| awesome. I'm enjoying my gitfu expanding | 07:00 |
| ← jweinberg left | 07:01 |
|
EugeneKay
| I've never used it, it kinda scares me. | 07:01 |
| ← archdori left | 07:01 |
| → Element9 joined | 07:01 |
| ← WillMarshall left | 07:02 |
| ← machine2 left | 07:02 |
| ← blackmatrix_ny left | 07:04 |
| → giallu joined | 07:05 |
| → AlexeiKozlov joined | 07:05 |
| ← welly left | 07:05 |
| → sq-one joined | 07:05 |
| ← airborn left | 07:05 |
| → tewecske joined | 07:06 |
| ← FreeArtMan left | 07:06 |
|
brando753
| milki, No what I dont understand is what lib/ is supposed to be to copy the file? I want it to post the entire repo into the web root, I understand rsync is syncing the two repos, however what do I identify as the whole directory for git? Is it just / ? | 07:07 |
| ← AlexeiKozlov left | 07:07 |
|
EugeneKay
| brando753 - are you trying to !deploy ? | 07:08 |
|
gitinfo
| brando753: [!website] Git is not a website deployment tool, but can sometimes play one in sufficiently simple/lax environments with a little help. One example of help is: http://toroid.org/ams/git-website-howto and another approach: https://gist.github.com/1714235 | 07:08 |
| ← iocor left | 07:08 |
|
brando753
| EugeneKay, yes, and Im having trouble getting it to sync to the web root | 07:08 |
| → FabTG joined | 07:08 |
| ← webflo1 left | 07:09 |
|
EugeneKay
| I would recommend using the approach outlined in that gist, rather than the --work-tree approach you typically see in !blog posts. | 07:09 |
|
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. | 07:09 |
| ← dreiss left | 07:10 |
|
brando753
| EugeneKay, thats the one Im using now, though I am not sure what to change the rsync command to, it has no comments | 07:10 |
|
EugeneKay
| man rsync ;-) | 07:10 |
| ← Slix` left | 07:11 |
| → yrlnry joined | 07:11 |
| → AlexeiKozlov joined | 07:11 |
| gitinfo set mode: +v | 07:11 |
| ← maestrojed left | 07:11 |
|
brando753
| EugeneKay, again Im unsure on how to reference the root git directory | 07:11 |
|
AlexeiKozlov
| hi every1. i have a question about installing gitolite. i got this mesasge from gl-system-install ->git describe failed -- your git is probably too old . what i suppose to do? | 07:12 |
| → slide23 joined | 07:12 |
|
EugeneKay
| In that example, git-archive is being used to "check out" the root of the git dir into a tmp directory, and then it is being CDed into. | 07:12 |
|
| If you wanted to rsync the whole directory you would use ./ | 07:12 |
|
| s/directory/repo/ | 07:12 |
|
| If I was to build such a hook I would lay it out differently | 07:13 |
| → especially-corn joined | 07:15 |
|
especially-corn
| hello | 07:15 |
|
gitinfo
| especially-corn: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 07:15 |
| ← slide_ left | 07:15 |
|
brando753
| EugeneKay, ya, its still not working, here is my rsync command in that hook " rsync --delete -rlpgocv ./ /srv/www/mysite/" and the hook is just pre-receive | 07:15 |
|
especially-corn
| i just did a repo init thing and its receiving from the repo, shouldn't i see the files it receives? | 07:16 |
|
EugeneKay
| brando753 - like I said, I'd build a radically different hook; it's provided mostly as an example. ;-) | 07:16 |
|
| Scripting your own hook for this sort of thing is a good learn-by-fumbling experience. I advise you to just go for it. | 07:17 |
|
AlexeiKozlov
| i have fail in record_version sub in gl-system-install. it says "git describe failed -- your git is probably too old" . help me please. | 07:17 |
| ← mxweas_ left | 07:17 |
| → pro_metedor joined | 07:17 |
| ← brokenshakles left | 07:17 |
| → jweinberg_ joined | 07:18 |
|
brando753
| im just trying to get it to work at this point :( I also tried the earlier example of "GIT_WORK_TREE=/srv/www/mysite git checkout -f" but that didnt work either ... Im trying to find if there is another reason both these methods fail to work ... | 07:18 |
| → [[thufir]] joined | 07:19 |
| ← jweinberg_ left | 07:20 |
|
[[thufir]]
| can I make n commits, then one push to github, and have each of those commits show up individually? Or, does it just show as one push? | 07:20 |
| → jweinberg joined | 07:20 |
| → rtuin joined | 07:21 |
| → SimonNa joined | 07:21 |
|
sq-one
| each show up individually | 07:23 |
|
EugeneKay
| [[thufir]] - github would show it as 1 push of N commits, in the dashboard thing. You can push them individually if you want, but there's no real gain except lots of spam. | 07:23 |
|
AlexeiKozlov
| someone can help me in that message "git describe failed -- your git is probably too old" ? | 07:23 |
|
EugeneKay
| AlexeiKozlov - git --version | 07:23 |
|
[[thufir]]
| and if I want to rollback (?) to commit x, it's just as easy either way? | 07:24 |
|
AlexeiKozlov
| it says 1.7.5.1 | 07:24 |
|
EugeneKay
| Depends how you want to rollback. !revert | 07:24 |
|
gitinfo
| "Revert" is a heavily overloaded term. Do you mean: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard the uncommitted changes in the working tree [git checkout -- .]; c) undo committing [git reset --soft HEAD^, but type !rewriting_public_history] ? | 07:24 |
|
EugeneKay
| Do you mean to move backwards in time, or to make your repo as it was in the past? | 07:25 |
| ← meejah left | 07:25 |
| → vdv joined | 07:25 |
| → meejah joined | 07:25 |
|
AlexeiKozlov
| EugeneKay it says 1.7.5.1 | 07:25 |
|
[[thufir]]
| as it was in the past. | 07:25 |
|
EugeneKay
| [[thufir]] - then you're making a new commit which just happens to have the same tree as an older one. It still coutns as going forward, so it'd show as aregular commit. | 07:26 |
|
| AlexeiKozlov -- well, that's interesting. What's your OS? | 07:26 |
|
AlexeiKozlov
| EugeneKay my OS windows 2008 R2 and cygwin | 07:26 |
|
EugeneKay
| Oh | 07:27 |
|
AlexeiKozlov
| ) | 07:27 |
|
EugeneKay
| cygwin git is known to be..... well, terrible. | 07:27 |
|
AlexeiKozlov
| it works meanwhile | 07:27 |
|
| but not latest version | 07:27 |
| → teotwaki joined | 07:27 |
|
EugeneKay
| I would be really surprised if you manage to get gitolite running on it. I can't say I recommend it, at all. | 07:27 |
|
AlexeiKozlov
| really? | 07:27 |
|
| i did this but | 07:27 |
|
| not latest version. git works fine in cygwin. no bugs. | 07:28 |
| ← beautifulmind left | 07:28 |
|
EugeneKay
| My advice is to use "git for windows"(formerly msysgit), and to run gitolite on a proper *nix box. | 07:28 |
|
| Inside of a VM is just fine. | 07:28 |
|
AlexeiKozlov
| when v2.1 comes out it makes install very hard :( before 2.1 i do every install wery well. | 07:29 |
| ← thursday left | 07:30 |
|
AlexeiKozlov
| EugeneKay can you help about gl-system-install.pm ? | 07:30 |
|
| this code fails sub record_version { # this is really much easier in plain shell :( if ( system("git rev-parse --is-inside-work-tree >/dev/null 2>&1") ) { # for system() calls, perl 'true/success' is shell 'false/fail', which # means the command failed; we are not in a git work tree -f "conf/VERSION" or system("echo '(unknown)' > conf/VERSION"); } else { system("git describe --tags --long | 07:30 |
|
EugeneKay
| I cannot. I use a packaged version of gitolite which has the nice property of 'just working'. | 07:31 |
| ← maletor left | 07:31 |
|
AlexeiKozlov
| ) lucku | 07:31 |
|
| y | 07:31 |
|
EugeneKay
| sitaram might be able to give you some pointers with some proper error messages, but that's a pretty big "maybe" - Windows is NOT a supported OS ;-) | 07:31 |
| → mishok13 joined | 07:31 |
|
AlexeiKozlov
| is anybody knows perl ? i need help with gl-system-intall.pm | 07:31 |
|
| EugeneKay i wrote him some emails) he doesnt want to help after word "cygwin" :( | 07:32 |
| ← Sitethief left | 07:32 |
|
AlexeiKozlov
| and word "windows" | 07:33 |
|
EugeneKay
| I am completely unsurprised. | 07:33 |
| → maletor joined | 07:33 |
| → Sitethief joined | 07:33 |
|
EugeneKay
| It's a *nix app, and, well, Windows. | 07:34 |
|
AlexeiKozlov
| ) | 07:34 |
|
| its perl case) not a windows or cygwin | 07:34 |
| → brokenshakles joined | 07:34 |
|
deebo
| cygwin + git on windows is so much more usable than msysgit (or whatever its called now) | 07:35 |
|
AlexeiKozlov
| deebo ur right) i m noot using msysgit. | 07:35 |
|
| i have gitolite(v.2.0) +git+cygwin works well on windows 2008 r2. | 07:35 |
| → blacktulip joined | 07:36 |
|
AlexeiKozlov
| but someone can help in perl for me? | 07:36 |
|
| this if ( system("git rev-parse --is-inside-work-tree >/dev/null 2>&1") ) works bugly | 07:36 |
| ← subbyyy left | 07:36 |
| → williamcotton joined | 07:36 |
|
AlexeiKozlov
| if i run this command myself i get "git@NP4 /tmp/share/gitolite $ git rev-parse --is-inside-work-tree true" | 07:37 |
| ← richo left | 07:37 |
| → skoop joined | 07:37 |
| ← skoop left | 07:37 |
|
AlexeiKozlov
| there is true! but it doesnt recognized by perl | 07:37 |
| ← pantsman left | 07:38 |
| → skoop joined | 07:39 |
|
AlexeiKozlov
| there says "# for system() calls, perl 'true/success' is shell 'false/fail', which # means the command failed; we are not in a git work tree" | 07:39 |
| → Lujeni joined | 07:40 |
|
AlexeiKozlov
| if i run "git rev-parse --is-inside-work-tree" from shell it returns "true" | 07:40 |
| → mastroWork joined | 07:42 |
|
AlexeiKozlov
| hm. perl says that : system(..) returns true. | 07:42 |
| ← tatsuya_o left | 07:44 |
| ← eeadc left | 07:44 |
| → weiyang joined | 07:44 |
| → eeadc joined | 07:44 |
| ← mastro left | 07:45 |
| ← comcor left | 07:45 |
| → comcor joined | 07:46 |
| ← williamcotton left | 07:48 |
| ← especially-corn left | 07:48 |
| ← matthiaskrgr left | 07:48 |
|
AlexeiKozlov
| help please. how i can change permission on everything in folder/ | 07:49 |
|
| ? | 07:49 |
| ← Cope left | 07:50 |
| → Chaser joined | 07:50 |
| → arietis joined | 07:52 |
| ← legnaleurc left | 07:52 |
| ← maletor left | 07:54 |
| → Desproges joined | 07:55 |
|
sitaram
| AlexeiKozlov: you can remove the code that generates that message. For the rest, ask frogonwheels if he is here; he's the only guy I know who has managed to install gitolite on cygwin. I personally do not want to encourage such foolishness :-) | 07:56 |
| ← Nugget left | 07:56 |
|
sitaram
| deebo: cygwin+git may be *usable* but installing cygwin is a pain the rear-end. And for a *client*, msysgit is quite good; I'd argue it's better than cygwin | 07:57 |
|
AlexeiKozlov
| oo nice | 07:57 |
| ← hagabaka left | 07:57 |
| → shruggar joined | 07:57 |
|
AlexeiKozlov
| suprised) | 07:57 |
|
sitaram
| AlexeiKozlov: or you can remove the "--dirty=dt" or whatever part of that command | 07:57 |
|
AlexeiKozlov
| thank i try it now. | 07:57 |
|
sitaram
| AlexeiKozlov: that was added so that you can know if you're running a "dirty" (i.e., locally modified) gitolite | 07:57 |
|
AlexeiKozlov
| oh! ok i got thanks for explanation) | 07:58 |
| ← netiru left | 07:58 |
| → eijk joined | 07:58 |
|
sitaram
| AlexeiKozlov: you wrote me some emails? when? | 07:58 |
|
AlexeiKozlov
| yeah i wrote) | 07:58 |
|
| wait 1 min | 07:58 |
| ← brokenshakles left | 07:59 |
|
sitaram
| but yeah if the subject line is cygwin I probably don't want to spend time. It's usually a waste | 07:59 |
|
| (or windows) | 07:59 |
|
AlexeiKozlov
| Hi. i got gitolite 2.2 version and have one question about customized setup | 07:59 |
|
sitaram
| AlexeiKozlov: the problem is this: whatever problems you have are likely to be specific to your env, and since I dont have that (and never will), there's no point | 07:59 |
|
AlexeiKozlov
| this subject) | 07:59 |
| → Bartzy joined | 07:59 |
|
AlexeiKozlov
| ok ok) but its specific to perl . not cygwin i think. | 08:00 |
|
Bartzy
| How can I print the hash that git gave to a blob object (file) ? | 08:00 |
|
sitaram
| AlexeiKozlov: same thing; it works fine in a proper unix | 08:00 |
| → pmatthews joined | 08:00 |
|
AlexeiKozlov
| how to prefix nickname | 08:00 |
|
sitaram
| Bartzy: man git hash-object | 08:00 |
|
gitinfo
| Bartzy: the git-hash-object manpage is available at http://jk.gs/git-hash-object.html | 08:00 |
|
AlexeiKozlov
| ? | 08:00 |
|
sitaram
| AlexeiKozlov: "prefix nickname"? I have no idea what you are talking about | 08:00 |
| → brokenshakles joined | 08:01 |
|
AlexeiKozlov
| in irc chat ) | 08:01 |
| → ben225 joined | 08:01 |
| → niro joined | 08:01 |
|
sitaram
| AlexeiKozlov: usually, type the first 2-3 characters, hit tab | 08:01 |
|
Bartzy
| Thank you. | 08:01 |
| → Nugget joined | 08:01 |
|
Bartzy
| why git hash-object and sha1sum gives me different results ? What Git is using for the hash besides the file itself ? | 08:02 |
| → netiru joined | 08:02 |
|
sitaram
| AlexeiKozlov: the other reason I won't *directly* help is that I am seriously prejudiced against both the proprietary OSs in popular use | 08:02 |
|
niro
| git status | 08:02 |
|
| excuse me | 08:02 |
| → jlebrech joined | 08:03 |
| → francisfish joined | 08:03 |
|
AlexeiKozlov
| sitaram )) i only need help for perl) i do install now. report feedback later in 10 minutes | 08:03 |
|
niro
| I get the error, git-am is in progress. cannot rebase. What do I need to do to rebase? | 08:03 |
| ← glcrazy left | 08:03 |
|
sitaram
| AlexeiKozlov: if you need help for perl to use *gitolite*, that is *proof* that you are using a crappy OS | 08:03 |
| → TomyLobo joined | 08:03 |
|
sitaram
| AlexeiKozlov: no one needs to know perl to use gitolite, except some bare minimum syntax to add entries to ~/.gitolite.rc | 08:04 |
|
| s/crappy OS/crappy git setup, possibly due to crappy OS/ | 08:04 |
| ← Shusshu left | 08:05 |
| → alanp_ joined | 08:05 |
| ← alanp left | 08:05 |
|
EugeneKay
| Bartzy - man git-hash-object | 08:07 |
|
gitinfo
| Bartzy: the git-hash-object manpage is available at http://jk.gs/git-hash-object.html | 08:07 |
| → subbyyy joined | 08:07 |
|
AlexeiKozlov
| sitaram yeah) but i need some help) it not crappy OS. ots crappy cygwin env. ) | 08:07 |
| ← netiru left | 08:07 |
|
sitaram
| AlexeiKozlov: <sigh> think about what is the *root* cause of your troubles | 08:08 |
| → thierryp joined | 08:08 |
|
EugeneKay
| AlexeiKozlov - And we've given you about all the advice we're capable of / willing to give. You are advised to use gitolite in a *nix environment or figure it out for yourself. If you have a problem with this, well, go away. | 08:08 |
|
AlexeiKozlov
| sitaram not a windows) belive me)) | 08:08 |
| → elijah joined | 08:08 |
|
sitaram
| AlexeiKozlov: prove that it happens on Linux or BSD and I will help :) | 08:08 |
|
AlexeiKozlov
| EugeneKay why? i only need to know about recordversion sub in gl-system-install. | 08:08 |
| ← brokenshakles left | 08:09 |
|
AlexeiKozlov
| i dont want u help to setup it in cygwin ) i want only knowledge about gl-system-install | 08:09 |
|
EugeneKay
| AlexeiKozlov - it's self-documenting. Read the source / learn perl. | 08:09 |
|
AlexeiKozlov
| i dont want to learn perl ) its crappy language ) | 08:09 |
|
sitaram
| AlexeiKozlov: and you expect help from me after saying perl is a crappy language? | 08:10 |
|
AlexeiKozlov
| what you for i you adivce me to learn everything by myself? | 08:10 |
|
EugeneKay
| Learning is important. Please go do some. | 08:10 |
|
AlexeiKozlov
| ahaha))) sitarem | 08:10 |
| → netiru joined | 08:10 |
|
AlexeiKozlov
| but what for this channel when? | 08:10 |
| ← weiyang left | 08:10 |
|
AlexeiKozlov
| send someone away? | 08:11 |
|
sitaram
| AlexeiKozlov: I already told you how to get past that error by removing the "--dirty=-dt" bit in the git describe. | 08:11 |
|
AlexeiKozlov
| to learn, yeahh?)) | 08:11 |
|
| sitaram yeah ! and i say thank you and now i go next step very well | 08:12 |
| ← ben225 left | 08:13 |
|
AlexeiKozlov
| sitaram and about perl. if its not crappy than ist not true cross-platform lang. right? ;) | 08:14 |
|
| than=then | 08:14 |
| neersighted → neersighted|AFK | 08:14 |
| → robotmay joined | 08:14 |
| ← Matrixium left | 08:15 |
|
sitaram
| AlexeiKozlov: I don't take kindly to people who say negative things about perl while they use *Windows* as their OS. You, sir, are a ...<never mind>... | 08:15 |
| ← caseymcg left | 08:15 |
|
| EugeneKay hands sitaram a $INTOXICATING_BEVERAGE | 08:15 |
|
AlexeiKozlov
| ^) | 08:15 |
|
tango_
| lol | 08:16 |
|
AlexeiKozlov
| ))) | 08:16 |
|
cbreak-work
| cross platform? | 08:16 |
|
| perl works on OS X, kind of. | 08:16 |
|
| and the other unixes :) | 08:16 |
|
AlexeiKozlov
| or yeah ) but percent of mac os worldwide how much is ? :) | 08:16 |
|
cbreak-work
| 100% of the mac os worldwide | 08:17 |
|
AlexeiKozlov
| )) | 08:17 |
|
cbreak-work
| it comes preinstalled. | 08:17 |
| ← superdmp left | 08:17 |
| ← netiru left | 08:17 |
|
AlexeiKozlov
| beside, i m from russia, hello every1 ) | 08:17 |
|
| in russia mac os its nothing :) | 08:18 |
| → xiangfu joined | 08:18 |
|
AlexeiKozlov
| is nothing | 08:18 |
|
cbreak-work
| must be a coold and unfriendly place. | 08:18 |
| → Stava joined | 08:18 |
|
rue
| In Soviet Russia, you own Apples? | 08:19 |
|
cbreak-work
| evidently not. | 08:19 |
|
AlexeiKozlov
| yeah ) in soviet russia) | 08:19 |
|
| in our country | 08:19 |
|
Stava
| git pull informs me that it would overwrite one file and it aborts because of that. Little does it know that I actually want to overwrite this file. Can I force the pull? | 08:19 |
|
AlexeiKozlov
| apples not a computer))) | 08:19 |
| ← francisfish left | 08:20 |
|
AlexeiKozlov
| biside Russia now is only Russia. Not a Soviet Russia) | 08:20 |
|
cbreak-work
| Stava: just check out the file if it's tracked | 08:20 |
|
| or delete it if it's untracked | 08:20 |
|
tango_
| Stava: remove the file | 08:20 |
| ← SunilThaha left | 08:20 |
|
Stava
| It is untracked | 08:20 |
|
| tango_, cbreak-work that worked, thanks | 08:21 |
| → LimeBlast joined | 08:22 |
|
rue
| AlexeiKozlov: I know, it's just a Slashdot meme | 08:22 |
| ← harshpb left | 08:23 |
|
AlexeiKozlov
| rue doent know about Slashdot | 08:24 |
| → overbythere joined | 08:25 |
| → tqmz joined | 08:25 |
|
AlexeiKozlov
| pls help me about bash | 08:25 |
|
| it my bin gitolite folder home\git\bin how to write PATH in bashrc to make this folder accessiable/ | 08:26 |
|
| ? | 08:26 |
|
cbreak-work
| accessible? | 08:26 |
| ← __main__ left | 08:26 |
|
AlexeiKozlov
| yeah PATH to access files from home\git\bin folder | 08:27 |
| → SunilThaha joined | 08:27 |
| → netiru joined | 08:29 |
| → SkAzZ joined | 08:29 |
| → kpreid joined | 08:30 |
| → thirdknife joined | 08:31 |
|
AlexeiKozlov
| nevermind , i done .thanks | 08:31 |
| → marcogmonteiro joined | 08:31 |
| → superdmp joined | 08:36 |
| ← lausi left | 08:39 |
| → brokenshakles joined | 08:39 |
| ← mattalexx left | 08:39 |
| → lausi joined | 08:39 |
| ← sq-one left | 08:39 |
| ← arvind_khadri left | 08:40 |
| → tatsuya_o joined | 08:40 |
| → ipalaus_ joined | 08:41 |
| → __main__ joined | 08:42 |
| ← dhruvasagar left | 08:43 |
| → dhruvasagar joined | 08:45 |
| ← mastroWork left | 08:45 |
|
AlexeiKozlov
| and one more time) | 08:47 |
|
| system("mkdir", "-p", "$repo.git") and die "$ABRT mkdir $repo.git failed: $!\n"; | 08:47 |
| → tcurdt joined | 08:48 |
|
AlexeiKozlov
| can somebody explain? | 08:48 |
| ← tcurdt left | 08:48 |
| ← pfFredd left | 08:48 |
|
AlexeiKozlov
| if first fail when do die? | 08:49 |
|
wereHamster
| AlexeiKozlov: do you know perl? | 08:50 |
| → Advocation joined | 08:50 |
| → pfFredd joined | 08:50 |
|
wereHamster
| and do you know unix? | 08:51 |
| → Chib joined | 08:51 |
| ← jargon- left | 08:52 |
|
AlexeiKozlov
| no i dont. i run some script . and it gets me errors. i try to explain | 08:52 |
| → noisebleed joined | 08:52 |
| ← mischat left | 08:53 |
|
AlexeiKozlov
| try to solve) | 08:53 |
| → williamcotton joined | 08:54 |
| → jrots joined | 08:54 |
|
wereHamster
| haha, just read sitarams last message. Good luck. | 08:54 |
| → ryden joined | 08:54 |
|
AlexeiKozlov
| hm | 08:56 |
|
| sad | 08:56 |
|
| what for this channel? | 08:56 |
|
| sad sad | 08:56 |
|
wereHamster
| for people who respect other peoples choices | 08:56 |
|
AlexeiKozlov
| really? | 08:57 |
| ← tokiya_ left | 08:57 |
|
AlexeiKozlov
| why sitaram doesnt respects my choice? | 08:57 |
|
| he did it first | 08:57 |
|
| so? | 08:58 |
| ← harish left | 08:58 |
|
AlexeiKozlov
| dont belive me? | 08:58 |
| → mastroWork joined | 08:58 |
|
AlexeiKozlov
| ask sitaram ) | 08:58 |
|
| or scroll chat | 08:58 |
| ← Guest83854 left | 08:59 |
| ← elijah left | 09:00 |
| ← JEEB left | 09:00 |
|
BinGOs
| why is that shelling out to make a directory ? | 09:00 |
| → elijah joined | 09:00 |
| zendeavr → zendeavor | 09:00 |
| ← elijah left | 09:00 |
| → JEEB joined | 09:00 |
| ← JEEB left | 09:01 |
|
sitaram
| BinGOs: because in that version I did not want to use File::Path | 09:01 |
|
BinGOs
| oh right. | 09:01 |
| → elijah joined | 09:01 |
| → JEEB joined | 09:01 |
| → kronos joined | 09:02 |
|
BinGOs
| for the record, I got gitolite installed on cygwin fine. | 09:02 |
| ← elijah left | 09:02 |
|
BinGOs
| I didn't proceed to add any repos though. | 09:02 |
|
AlexeiKozlov
| oo hince | 09:02 |
|
| can u help me/ | 09:02 |
| ← babilen left | 09:02 |
|
sitaram
| BinGOs: then you can help this ... person (for lack of a better word) | 09:02 |
|
BinGOs
| I have paid $work to do right now. | 09:03 |
|
AlexeiKozlov
| i too got gitolite isntalled but v2.0 not 2.1 where setup process has changed | 09:03 |
|
BinGOs
| I just cloned the gitolite repo and ran the instructions from the Quick-Install. | 09:03 |
|
charon
| isn't that the version that accidentally *cough* doesn't work on windows at all ;) | 09:04 |
|
BinGOs
| I have removed everything now, as I didn't have a dedicated account and was using my own account. | 09:04 |
|
AlexeiKozlov
| charon dont get u | 09:04 |
|
| BinGOs so u cant help me? | 09:04 |
|
BinGOs
| I have paid work to do. A load of powershell scripts to write :( | 09:05 |
|
AlexeiKozlov
| ? | 09:05 |
| → matthiaskrgr joined | 09:05 |
| ← apok left | 09:06 |
| ← syphar left | 09:06 |
| → mcepl joined | 09:06 |
|
BinGOs
| When I have some spare tuits I'll have a go at setting up gitolite properly. But it won't be today. | 09:07 |
| → syphar joined | 09:08 |
|
charon
| AlexeiKozlov: just poking fun at sitaram, he posted something on G+ about accidentally making it impossible to run gitolite on windows in one version (i guess it's fixed now) | 09:08 |
|
mcepl
| I know this is a bit off-topic but could somebody tell me the right command for ReviewBoard's post-review? When I try | 09:08 |
|
| post-review --parent master --guess-summary --guess-description --tracking-branch giteng/master --username=something --password=xxxx | 09:08 |
|
| I get error diff is empty (but when I run --output-diff I get a nice long diff). | 09:08 |
|
sitaram
| sadly yes | 09:08 |
|
BinGOs
| sitaram: I'll feed back to you if I encounter anything out of the ordinary. | 09:08 |
|
AlexeiKozlov
| charon dotn know about G+ | 09:09 |
|
| BinGOs & | 09:09 |
| → mintux joined | 09:09 |
|
sitaram
| BinGOs: please join the mailing list and send feedback there; someone who cares might read it ;-) | 09:09 |
|
AlexeiKozlov
| )) | 09:09 |
|
sitaram
| charon: the "master" branch, however, is not of that "accidentally not working on Windows" version ;-) | 09:09 |
|
BinGOs
| I'll just fork and fix >:) | 09:10 |
|
| BinGOs & # really this time. | 09:10 |
|
AlexeiKozlov
| i installed v2.1 and above at home. here cant. some errors in perl code in system command. | 09:10 |
| → ignazioc joined | 09:10 |
|
mintux
| how can I define remote (pull)? when I run git remote -v I saw> web ssh://<ip>/<name.git> (push) | 09:10 |
|
jast
| mintux: and you just want to change the URL? | 09:11 |
| → jargon- joined | 09:11 |
|
charon
| sitaram: i have a perpetual inverse "problem" here: our windows using students tend to submit programs with system("pause") in them to the automated tester/grader. the security module promptly kills them for attempting to fork() | 09:11 |
| → marhaban joined | 09:11 |
| ← subbyyy left | 09:11 |
|
mintux
| jast:no in eclipse when I click on pull it said to me fatal: No remote repository specified. .. but push worked | 09:11 |
| ← ipalaus_ left | 09:11 |
| → ipalaus_ joined | 09:12 |
| ← marhaban left | 09:12 |
| → marhaban1 joined | 09:12 |
| → berserkr joined | 09:12 |
|
sitaram
| charon: there's a "pause" command? (or is that in Windows?) | 09:12 |
|
jast
| sitaram: windows | 09:12 |
| ← dr_win left | 09:12 |
| → BiggFREE joined | 09:12 |
|
charon
| sitaram: windows users apparently need it to hold open the 'cmd' window so they can see the output | 09:13 |
| ← marhaban1 left | 09:13 |
| → marhaban joined | 09:13 |
|
jast
| mintux: do you have tracking info configured for the current branch? (does git branch -vv show something like [web/yourbranch] for your branch?) | 09:13 |
| → dr_win joined | 09:13 |
|
FauxFaux
| charon: Train them to use getchar() / System.in.read() / whatever? | 09:13 |
|
jast
| charon: yeah, iff they don't run it from the console in the first place :) | 09:13 |
|
| it'd be kind of the same on any other system | 09:13 |
| ← marhaban left | 09:13 |
| → marhaban joined | 09:13 |
| ← brando753 left | 09:14 |
|
mintux
| jast:it's my output > * master 315db99 ABout group completed | 09:14 |
| → marhaban1 joined | 09:14 |
| ← marhaban left | 09:14 |
| → Araxia joined | 09:14 |
| gitinfo set mode: +v | 09:15 |
|
FauxFaux
| mintux: It's not interested in the /url/ of the remote, it's interested in which branch you want from the remote, which you need to specify. On the command line, you just add it to the end. Nobody knows how it works in Eclipse. | 09:15 |
| ← marhaban1 left | 09:15 |
| → marhaban joined | 09:15 |
| gitinfo set mode: +v | 09:15 |
| ← wbednarski left | 09:16 |
| ← marhaban left | 09:16 |
|
mintux
| I use egit in eclipse . in command line it works ... but I don't know why it said you don't have remote | 09:16 |
| → marhaban joined | 09:16 |
|
magnus_
| hey. while doing an interactive rebase of my branches, it says "[detached HEAD <sha>] as it applies one of the commits. whats wrong? | 09:16 |
| ← marhaban left | 09:16 |
| → WillMarshall joined | 09:16 |
| → marhaban joined | 09:17 |
| ← blacktulip left | 09:17 |
| ← marhaban left | 09:17 |
| → Qoidnef_ joined | 09:17 |
|
sitaram
| charon: oh ok | 09:17 |
| ← Qoidnef left | 09:18 |
| → _iron joined | 09:18 |
| → iocor joined | 09:20 |
| → arvind_khadri joined | 09:21 |
| ← arvind_khadri left | 09:21 |
| → arvind_khadri joined | 09:21 |
| → papegaaij joined | 09:21 |
|
AlexeiKozlov
| i got! something! system("mkdir", "-p", "$repo.git") this has "permission denied" because it wants create folder in \ not in ~ . i wrote system("mkdir", "-p", "/home/git/$repo.git") and it works now. how can i fix it globally? may be in perl some switch ? | 09:21 |
| → babilen joined | 09:23 |
|
AlexeiKozlov
| sitaram any ideas? u should know i suppose :) | 09:23 |
| ← hyperair left | 09:24 |
| → f0i joined | 09:25 |
| ← WillMarshall left | 09:25 |
|
jast
| mintux: oh, actually, I missed part of what you said earlier... "git remove -v" shows *only* the push line? | 09:25 |
|
ignazioc
| hi | 09:25 |
|
gitinfo
| ignazioc: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 09:25 |
|
mintux
| jast: yes | 09:25 |
|
ignazioc
| hi everyone, i need an help. I have a git project, i made a branch for some test (git checkout -b newbranch) today i want to discard this test so i write git checkout master but nothing happened in my working copy…the filesystem remain the same…how can i revert my working copy to the "master" version? | 09:26 |
|
jast
| mintux: okay. and you want to pull from the same URL? | 09:26 |
|
mintux
| jast: (push) and (fetch) | 09:26 |
|
| jast: yes | 09:26 |
|
jast
| mintux: oh. okay. the "fetch" one applies to pull, too (pull is fetch+merge) | 09:26 |
| ← joeytwiddle left | 09:27 |
|
mintux
| jast: is it possible to define pull only not alone fetch ? because EGIT doesn't understand it and said you don't have remote error: fatal: No remote repository specified. Please, specify either a URL or a | 09:27 |
|
| remote name from which new revisions should be fetched. | 09:27 |
|
jast
| mintux: git only has "fetch" and "push" specifications, and any git software that isn't completely stupid and braindead knows that | 09:28 |
|
mintux
| hmm | 09:28 |
| → hyperair joined | 09:28 |
|
jast
| mintux: my guess is that egit uses the remote "origin" by default... but you don't have that, yours is called "web" | 09:28 |
|
| mintux: you can try explicitly telling it what to use, like this: git branch --set-upstream master web/master | 09:28 |
| ← xiangfu left | 09:29 |
|
ignazioc
| git checkout modify my working copy? | 09:29 |
|
jast
| ignazioc: the stuff that didn't change, is that uncommitted stuff? | 09:30 |
|
ignazioc
| committed in the other branch | 09:30 |
|
jast
| well in that case checkout should switch the affected files over to the version in master | 09:31 |
|
| does "git status" say anything about the files in question? | 09:31 |
|
ignazioc
| when i switch branch so my working copy remain unchanged? | 09:31 |
|
jast
| well | 09:31 |
|
| 'git checkout', when switching branches, sets all files to the committed version from the target branch, except if uncommitted changes are involved | 09:32 |
| rvsjoen_ → rvsjoen | 09:32 |
|
jast
| those are preserved if possible, otherwise checkout aborts before it does anything | 09:32 |
| ← Qoidnef_ left | 09:32 |
|
jast
| in that case it gives you an error message | 09:32 |
| → Qoidnef joined | 09:32 |
|
ignazioc
| and for new files? | 09:33 |
|
| checkout "remove" them? | 09:33 |
| ← FACEFOX left | 09:34 |
| ← kpreid left | 09:35 |
| → kpreid joined | 09:35 |
|
AlexeiKozlov
| i got solve my problem!!!! o my god! it so simple! then it command executes it tries to access some path that git user have no access! | 09:35 |
| → arti_t joined | 09:36 |
| ← ryden left | 09:36 |
|
jast
| ignazioc: if they were committed to the other branch, then yes | 09:36 |
|
| if they weren't... nope :) | 09:36 |
|
| checkout will only overwrite/delete files if no data will be lost | 09:36 |
| → kanzie joined | 09:36 |
|
AlexeiKozlov
| this folder is out of cygwin :) that why it cant | 09:37 |
|
jast
| in the standard form, anyway (checkout can also be made to do other, more destructive things) | 09:37 |
| → cortana2 joined | 09:37 |
| → FACEFOX joined | 09:37 |
| ← FACEFOX left | 09:37 |
| → Qoidnef_ joined | 09:37 |
| → joeytwiddle joined | 09:37 |
| → batmanian joined | 09:38 |
| ← teknoid left | 09:38 |
| → teknoid joined | 09:39 |
| → FACEFOX joined | 09:39 |
| → tvw joined | 09:39 |
| ← FACEFOX left | 09:39 |
| ← Qoidnef left | 09:39 |
| → JPohlman1 joined | 09:39 |
|
AlexeiKozlov
| sitaram !! it works very well!!))) i got installed gitolite )) | 09:39 |
|
| on win 2008 R2 x64 cygwin | 09:40 |
|
ignazioc
| i tried those commands: | 09:40 |
|
| git init | 09:40 |
|
| echo "one" > fileone.txt | 09:40 |
|
| git add . | 09:40 |
|
| git commit -m "first commit" | 09:40 |
|
| git checkout -b newbranch | 09:40 |
|
| echo "two" > filetwo.txt | 09:40 |
|
| git checkout master | 09:40 |
| ← mpenz left | 09:40 |
| ← JPohlman1 left | 09:40 |
| → mpenz joined | 09:40 |
|
jast
| ignazioc: yeah, in that case the file won't be changed back because you didn't commit the change | 09:40 |
|
| in fact the file is completely untracked in both branches | 09:41 |
|
ignazioc
| but after checkout master there are two files fileone.txt and filetwo.txt this is the standard behavior | 09:41 |
|
| ? | 09:41 |
| → FACEFOX joined | 09:41 |
| ← FACEFOX left | 09:41 |
|
jast
| so git will leave it well alone | 09:41 |
| ← LucasTizma left | 09:41 |
|
jast
| you never even told git to care about the file. why should it delete it? | 09:41 |
| → mastroDani joined | 09:42 |
|
ignazioc
| because in "master" branch this file wasn't. | 09:42 |
|
| ok ok | 09:42 |
|
| i understood | 09:43 |
| → FACEFOX joined | 09:43 |
|
kanzie
| If I have a local master and I want to add new remote branch. How can I set this up? | 09:43 |
|
ignazioc
| before i revert on my branch i need to commit | 09:43 |
| → LucasTizma joined | 09:43 |
| ← coredumb left | 09:44 |
| ← iocor left | 09:44 |
| ← mastroWork left | 09:45 |
| ← orkz left | 09:46 |
| ← AlexeiKozlov left | 09:47 |
| ← Qoidnef_ left | 09:47 |
| → Qoidnef joined | 09:47 |
|
jast
| kanzie: create new local branch, do whatever you like in it, git push origin yourbranch | 09:47 |
| → coredumb joined | 09:48 |
| → Qoidnef_ joined | 09:48 |
| → legnaleurc joined | 09:48 |
| ← ignazioc left | 09:49 |
| ← replore_ left | 09:49 |
|
kanzie
| jast: trying to figure out how to add new remote branch | 09:49 |
| → iocor joined | 09:50 |
| ← Qoidnef left | 09:52 |
| → thelazydeveloper joined | 09:52 |
| → replore_ joined | 09:52 |
| ← Lujeni left | 09:53 |
| ← replore_ left | 09:53 |
| → Qoidnef joined | 09:54 |
| ← Qoidnef_ left | 09:54 |
|
wereHamster
| kanzie: add a remote? git remote add ... | 09:55 |
| ← Qoidnef left | 09:55 |
|
kanzie
| but how do I specify a remote branch to pull from | 09:56 |
|
wereHamster
| kanzie: through tracking info | 09:56 |
|
| kanzie: man git-branch -> --set-upstream | 09:56 |
|
gitinfo
| kanzie: the git-branch manpage is available at http://jk.gs/git-branch.html | 09:56 |
| → ocharles joined | 09:56 |
| → Qoidnef joined | 09:56 |
| ← timoxley left | 09:57 |
| ← arti_t left | 09:57 |
| → archdori joined | 09:58 |
| ← netiru left | 10:00 |
| → jds joined | 10:01 |
| ← Fandekasp left | 10:02 |
| → harish joined | 10:02 |
| ← williamcotton left | 10:04 |
| ← kadoban left | 10:05 |
| → mabrand joined | 10:06 |
| ← dr_win left | 10:06 |
| → alamaiso` joined | 10:09 |
| → flavius joined | 10:10 |
| ← alamaison left | 10:11 |
| → jatt joined | 10:11 |
| → netiru joined | 10:12 |
| → arti_t joined | 10:14 |
| ← alamaiso` left | 10:14 |
| → sdeboey joined | 10:14 |
| → pastime joined | 10:16 |
|
jast
| kanzie: sorry, to me your question meant: how do I create a new branch in the remote repository :) | 10:16 |
| → williamcotton joined | 10:16 |
|
kanzie
| np | 10:18 |
|
| I got it now | 10:18 |
| ← hyperair left | 10:18 |
| → angelsl joined | 10:19 |
|
nimesh_accenture
| git ls-remote shows me one of the branches as "refs/heads/master" , so if i want to clone that particular branch is this the right command : "git clone http://git.gitorious.or.bla.bla -b master" ? | 10:21 |
| ← stroll2 left | 10:22 |
| → achadwick joined | 10:22 |
|
FauxFaux
| nimesh_accenture: Yes? | 10:22 |
| → falena joined | 10:22 |
| → mischat joined | 10:22 |
|
nimesh_accenture
| Fauxfaus: so you mean to say that is the right command? | 10:22 |
|
jast
| nimesh_accenture: you know it clones all branches by default, right? | 10:22 |
|
nimesh_accenture
| nopes ... i dodnt know that ! | 10:23 |
|
jast
| so now you do :) | 10:23 |
|
nimesh_accenture
| yup! | 10:23 |
|
| so is there a way to just clone a particular branch that i want? | 10:23 |
|
jast
| it just doesn't show you all of them after cloning (it creates local mirrors but not standard branches that you can work in), but you can still use "git checkout" to get 'em (which creates a standard local branch and sets things up correctly) | 10:24 |
|
nimesh_accenture
| and is above the right way? | 10:24 |
|
jast
| nimesh_accenture: you can do that, but why bother? the overhead due to extra branches is usually pretty low | 10:24 |
|
| (and no, -b will just determine which one is checked out during cloning) | 10:24 |
|
nimesh_accenture
| ok... so the source code that i see will be the source code of that branch? | 10:25 |
|
jast
| yes | 10:25 |
|
nimesh_accenture
| ok.. cool | 10:26 |
|
| thx jast | 10:26 |
|
jast
| master is typically the default, so chances are you don't even need to specify it | 10:26 |
|
| the person maintaining the upstream repository specifies a default branch that you'll see if you don't use any extra arguments | 10:26 |
|
| in 99% of cases it's master | 10:26 |
|
nimesh_accenture
| ya but there are other repositaries where i might want to check out one specific to my hardware | 10:27 |
| → OPK joined | 10:27 |
|
jast
| sure | 10:27 |
|
nimesh_accenture
| thx jast | 10:27 |
|
jast
| if you end up specifying the wrong one, you can always just checkout a different one after cloning | 10:27 |
|
nimesh_accenture
| ok... | 10:28 |
|
jast
| just to clarify: "git checkout foo" switches to branch foo, without fetching anything via the network | 10:28 |
|
nimesh_accenture
| ok! | 10:28 |
|
| thx dude | 10:29 |
| → sbell joined | 10:30 |
| → whyking_ joined | 10:32 |
|
Advocation
| hey, I'm getting the message "-bash: git: command not found" when I type git into the command line | 10:32 |
|
| have I broke it?! | 10:32 |
| → jalama joined | 10:34 |
| → Xizor joined | 10:34 |
| → dbgster joined | 10:34 |
| → oehman joined | 10:35 |
| → ryden joined | 10:36 |
| → enmand joined | 10:36 |
| ← enmand left | 10:36 |
|
m1sc
| Advocation: what says "which git"? | 10:40 |
| ← kyconquers left | 10:40 |
|
Advocation
| m1sc: sorry? | 10:41 |
| → mastroWork joined | 10:41 |
|
m1sc
| Advocation: probably git isn't installed or not in your PATH -- execute "which git" to check | 10:42 |
| → gjaldon joined | 10:42 |
|
Advocation
| "which git" returns nothing | 10:43 |
|
| it was working, then I installed rbenv which is working fine, but git isn't now | 10:43 |
|
| I wonder if my PATH is messed up | 10:43 |
| ← dhruvasagar left | 10:43 |
|
Advocation
| m1sc: echo $PATH returns - /Users/Advocation/.rbenv/shims:/Users/Advocation/.rbenv/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin | 10:44 |
|
| I'm guessing there should be a reference to Git in there... | 10:44 |
| ← kanzie left | 10:45 |
| ← mastroDani left | 10:45 |
| ← deebo left | 10:45 |
| ← cjs left | 10:45 |
| → Superlokkus joined | 10:45 |
| → Alexei joined | 10:45 |
| gitinfo set mode: +v | 10:45 |
|
Alexei
| hi every1 again ) | 10:46 |
| → dhruvasagar joined | 10:46 |
| ← ldlework left | 10:46 |
|
Alexei
| i setup gitolite well on windows 2008 R2 x64 in cygwin . works very well across all domain machines through SSH ) | 10:46 |
|
| so the question is " how i can add my repos into gitolite repo_base folder"? | 10:46 |
| → hyperair joined | 10:47 |
| → honschu_ joined | 10:47 |
| → beautifulmind joined | 10:47 |
|
Alexei
| i already have some repos and now i need to move them to gitolite repo_base folder | 10:47 |
| → felgru joined | 10:48 |
| ← sbell left | 10:48 |
| → sbell joined | 10:48 |
|
Alexei
| please? | 10:48 |
|
FauxFaux
| Alexei: Push them. | 10:49 |
|
m1sc
| Alexei: create those repos within gitolite-admin, add a new remote gitolite in each of the existing repos, push | 10:49 |
| ← sbell left | 10:49 |
| → ldlework joined | 10:49 |
| ← honschu left | 10:50 |
| → Anubisss joined | 10:51 |
| → dubd joined | 10:54 |
| gitinfo set mode: +v | 10:55 |
|
Alexei
| oh really | 10:55 |
|
| so simple) | 10:55 |
|
| my history will be saved? | 10:55 |
| → Kaisyu joined | 10:56 |
|
bigkitty
| hi all | 10:56 |
|
| how to enable git command autocompletation on centos? | 10:57 |
| → Kaisyu2 joined | 10:57 |
|
dubd
| bigkitty: im using zsh with oh-my-zsh and autocompletion works quite nice for git | 10:58 |
| → whitman joined | 10:58 |
| → mauror joined | 10:58 |
| → _Qman joined | 10:59 |
| ← ehsan left | 10:59 |
| ← f0i left | 10:59 |
|
bigkitty
| dubd but i want to use bash:( | 10:59 |
|
jast
| well you'll have to use the bash-completion then | 11:00 |
|
| if centos doesn't install it for you, you can grab it from git's own repository, somewhere in contrib/ | 11:00 |
| ← arvind_khadri left | 11:00 |
|
jast
| don't ask me how to set it up, though... probably all you'll have to do is source it in your profile | 11:01 |
| ← Kaisyu left | 11:01 |
|
Alexei
| one more Q: how i can refresh keys in authorized_keys from keydir ? | 11:02 |
|
m1sc
| you can just link the file from /etc/bash_completion.d/ | 11:02 |
|
sitaram
| Alexei: are you AlexeiKozlov? | 11:02 |
|
Alexei
| sitaram yeah | 11:02 |
|
sitaram
| hmm ok | 11:02 |
|
Alexei
| lazy to type ) | 11:02 |
|
| sitaram, do u help me? | 11:02 |
|
sitaram
| no | 11:03 |
|
| the gitolite master TOC at http://sitaramc.github.com/gitolite/master-toc.html | 11:03 |
|
Alexei
| why? | 11:03 |
|
sitaram
| ^ | 11:03 |
| ← _Qman left | 11:03 |
|
Alexei
| ) | 11:03 |
|
| ok i see | 11:03 |
|
| can u teel me that mmm | 11:04 |
|
| where is that in TOC/ | 11:04 |
|
| & | 11:04 |
|
| ? | 11:05 |
|
| hard to find there | 11:05 |
| → mcluskyd_ joined | 11:05 |
|
sitaram
| Alexei: (1) you changed your nick in a way that -- to me -- looks unnecessary (and gets around my /ignore). (2) you made code changes that should not have been necessary, to gitolite, so I expect other things to go wrong and you to keep coming back. But since I don't consider Windows usable as a server (despite success stories), I can't/won't help | 11:05 |
| ← mcluskydodallas left | 11:07 |
|
Alexei
| sitaram about (2) i revert changes back ) gitolite setup dont need this changes. | 11:07 |
|
| it goes well w/o changes. | 11:07 |
|
| hm . sad. u think that i get around your ignore? very sad. i change my nick because i access this channel through web. | 11:08 |
|
| somebody please help in that Q: how i can refresh keys in authorized_keys from keydir ? | 11:09 |
| ← elnn left | 11:09 |
| → elnn joined | 11:10 |
| → Vortex34 joined | 11:10 |
|
Alexei
| i know how to do this by hands. i want auto | 11:11 |
|
| and gl-setup-authkeys can do this. but working directory is unknown | 11:12 |
| → timoxley joined | 11:13 |
| → ph^_ joined | 11:14 |
| → williamcotton_ joined | 11:14 |
| → iamjarvo joined | 11:14 |
|
sitaram
| Alexei: http://sitaramc.github.com/gitolite/index.html#rtfm | 11:15 |
| ← _Vi left | 11:15 |
| ← williamcotton left | 11:15 |
| williamcotton_ → williamcotton | 11:15 |
| ← patrakov left | 11:16 |
| → sbell joined | 11:17 |
| ← ph^ left | 11:17 |
|
sitaram
| and I already gave you a link to http://sitaramc.github.com/gitolite/master-toc.html -- did you at least *attempt* to find what you want in there? | 11:17 |
| → master-lincoln joined | 11:17 |
|
wereHamster
| IOW, Y U no read documentation? | 11:18 |
|
Alexei
| sitaram yeah i did. i find about gl-setup-authkeys | 11:20 |
|
| and didnt found | 11:21 |
|
wereHamster
| find | 11:22 |
|
sitaram
| Alexei: gl-setup-authkeys is not mentioned anywhere in the docs except in the *developer notes* so stop bluffing. You went to the source code | 11:22 |
|
Alexei
| hm | 11:23 |
| → blackmatrix_ny joined | 11:23 |
| ← hyperair left | 11:23 |
|
sitaram
| Alexei: I'm sorry but I am at work and I do not have time for unproductive conversations with people who lie; you'll probably change your nick again but I'll burn that bridge when I come to it | 11:23 |
| ← sandstrom left | 11:23 |
|
Alexei
| omg sitaram) | 11:23 |
| → arvind_khadri joined | 11:23 |
| ← arvind_khadri left | 11:23 |
| → arvind_khadri joined | 11:23 |
|
Alexei
| i m too on work | 11:23 |
| ← mcepl left | 11:23 |
|
Alexei
| i asked u kindly | 11:24 |
|
| if u dont want the do not | 11:24 |
| ← sdeboey left | 11:25 |
| → EtgarDizz joined | 11:25 |
| → setmeaway2 joined | 11:25 |
|
wereHamster
| then | 11:25 |
| → sdeboey joined | 11:25 |
|
Alexei
| yeah) mistype | 11:25 |
|
wereHamster
| you | 11:25 |
| ← archdori left | 11:25 |
|
Alexei
| aga | 11:26 |
| → f0i joined | 11:26 |
| ← setmeaway left | 11:27 |
|
Alexei
| sitaram read this book "you body cries for water" very useful book. its my advice. | 11:28 |
| ← pfFredd left | 11:29 |
| ← Sitethief left | 11:29 |
| ← master-lincoln left | 11:29 |
| → master-lincoln joined | 11:30 |
|
Bartzy
| How can I check if a local branch in my repo was pushed to a remote branch ? | 11:30 |
|
Alexei
| later i publish manual on russia about gitolite on cygwin and windows. it will be my second publish about that/ | 11:30 |
|
Bartzy
| git remote show origin ? | 11:30 |
|
| will only show for origin :| | 11:30 |
| ← _AlbireoX left | 11:31 |
| ← iocor left | 11:31 |
|
wereHamster
| Bartzy: what you can do is to check whether a local branch points to the same commit as a branch in a remote repo | 11:31 |
|
| but git does not keep track of who pushed what where | 11:31 |
| ← jalama left | 11:33 |
| → enmand joined | 11:33 |
| → jalama joined | 11:33 |
| ← gjaldon left | 11:34 |
| ← OOPMan left | 11:34 |
| → sbell_ joined | 11:35 |
| → iocor joined | 11:36 |
| ← iocor left | 11:36 |
| → _AlbireoX joined | 11:37 |
| ← sbell left | 11:37 |
| sbell_ → sbell | 11:37 |
| → hyperair joined | 11:38 |
|
Bartzy
| wereHamster: How can I check that ? rev-parse ? | 11:39 |
| ← sbell left | 11:39 |
|
Alexei
| bb every1 | 11:39 |
| ← Alexei left | 11:39 |
| → crippa joined | 11:40 |
|
crippa
| hi. question: I've cloned a repo, I edited a file, and run "git commit". If I pull the repo, the file is not changed. why? | 11:41 |
| ← f0i left | 11:41 |
|
wereHamster
| Bartzy: yes, rev-parse local branches, ls-remote to check the remote | 11:43 |
| → fayimora joined | 11:45 |
|
bremner
| crippa: are the changes in the local repo (git log)? where are you pulling from and to? | 11:45 |
| → ph^ joined | 11:45 |
| ← cortana2 left | 11:46 |
| ← oehman left | 11:46 |
|
crippa
| bremner: I have a local dir called "repo" and I pull from there to another dir. | 11:47 |
| ← zub left | 11:47 |
|
crippa
| if I edit a file, then run git commit, it says " Not currently on any branch." "no changes added to commit (use "git add" and/or "git commit -a")" | 11:48 |
| ← ph^_ left | 11:48 |
|
canton7
| crippa, for a start, checkout a branch: git checkout branchname | 11:48 |
|
crippa
| and # modified: settings.xml | 11:48 |
|
| I don't know if there is any branch actually | 11:49 |
|
canton7
| crippa, 'git branch' ? | 11:49 |
|
crippa
| * (no branch) master | 11:49 |
| ← JohnBat26 left | 11:49 |
|
canton7
| then you've got one branch, called master. | 11:49 |
|
crippa
| ok.. | 11:49 |
| → JohnBat26 joined | 11:49 |
| → cccaldas joined | 11:49 |
|
canton7
| you currently don't have that checked out, however, which means that any commits you make could be lost | 11:49 |
| ← juvenal left | 11:49 |
| ← arti_t left | 11:50 |
|
canton7
| 'git checkout master' to check it back out | 11:50 |
| ← babilen left | 11:50 |
|
crippa
| M settings.xml | 11:50 |
|
| Switched to branch 'master' | 11:50 |
| → Superlokkus_ joined | 11:50 |
|
crippa
| this is what I have if I run the checkout | 11:51 |
|
| so I think it's already checked out, right? | 11:51 |
|
| and it recognize settings.xml as locally modified | 11:51 |
|
| or not? | 11:51 |
|
canton7
| hrm? It thinks you have uncommitted changes to settings.xml | 11:51 |
| ← Superlokkus left | 11:52 |
| Superlokkus_ → Superlokkus | 11:52 |
|
crippa
| yes, I modified the file. | 11:52 |
|
| I tried to commit these changes by typing git commit -m blablabla | 11:52 |
|
canton7
| you need to stage it first. 'git add settings.xml' | 11:52 |
|
| (or stage all uncommitted changes and commit in one go with 'git commit -a -m "Message"' | 11:52 |
|
crippa
| but I get the message: # Changes not staged for commit: | 11:53 |
|
| # (use "git add <file>..." to update what will be committed) | 11:53 |
|
| # (use "git checkout -- <file>..." to discard changes in working directory) | 11:53 |
|
| # | 11:53 |
|
| # modified: settings.xml | 11:53 |
|
| # | 11:53 |
|
| # Untracked files: | 11:53 |
|
| # (use "git add <file>..." to include in what will be committed) | 11:53 |
|
| # | 11:53 |
|
| # settings.xml~ | 11:53 |
|
| no changes added to commit (use "git add" and/or "git commit -a") | 11:53 |
|
zokko
| use pastebin | 11:53 |
|
canton7
| please use a pastebin for long pastes | 11:53 |
|
crippa
| sorry.. | 11:53 |
|
canton7
| crippa, as git explicitely tells you, settings.xml isn't staged for commit. Use 'git add <file>' to update what will be committed | 11:54 |
| → jsoa joined | 11:54 |
|
crippa
| ok that's the problem: if I run git add, and then commit, everything works. | 11:56 |
|
canton7
| yup. Looks like you need to read up on git a bit. !book is good | 11:56 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable | 11:56 |
| → especially-corn joined | 11:57 |
|
especially-corn
| hello, what can i do if a download freezes? | 11:57 |
|
crippa
| But I'm trying to use jenkins to pull from the repo, and as I do that the local files are overwritten by the 'old' version in the repo... | 11:57 |
|
wereHamster
| especially-corn: what does that have to do with git? | 11:57 |
|
especially-corn
| it happened 3 times in a row Receiving objects: 14% (2787/19735), 295.14 MiB | 430 KiB/s | 11:57 |
| ← iori left | 11:57 |
|
especially-corn
| well i guess it does have something to do | 11:57 |
|
wereHamster
| especially-corn: ah, you're trying to *clone* a repo | 11:57 |
|
| or *fetch* | 11:58 |
|
especially-corn
| not sure | 11:58 |
|
| i just repo sync | 11:58 |
|
cbreak-work
| what's that? | 11:58 |
|
wereHamster
| git: 'repo' is not a git command. See 'git --help'. | 11:58 |
|
canton7
| it's an android thing | 11:58 |
|
cbreak-work
| oh, that mobile thing | 11:58 |
|
especially-corn
| yes | 11:58 |
|
wereHamster
| crippa: I don't think it makes sense to have local changes in jenkins | 11:58 |
|
cbreak-work
| I would not try to clone/fetch hundreds of megabytes over celular networks | 11:58 |
|
especially-corn
| cbreak, neither would i | 11:59 |
| ← jsoa left | 11:59 |
|
crippa
| wereHamster: what do you mean? | 11:59 |
| ← ph^ left | 11:59 |
|
especially-corn
| it always freezes at about 14-16% | 11:59 |
| → Ryback_ joined | 11:59 |
| ← Ryback_ left | 11:59 |
| → Ryback_ joined | 11:59 |
|
wereHamster
| crippa: why do you have local changes? | 11:59 |
|
especially-corn
| anything i can do to keep whatever it downloaded? | 11:59 |
|
wereHamster
| no | 11:59 |
| → ph^ joined | 11:59 |
|
especially-corn
| because if i kill the process it goes back to (0/19735) and reattempts to download everything | 12:00 |
|
wereHamster
| yes | 12:00 |
|
cbreak-work
| especially-corn: git doesn't really have resumable communication | 12:00 |
|
| you can try to fetch branches one by one in the hope to get less data at a time | 12:00 |
|
especially-corn
| so there is no pause, resume | 12:00 |
|
cbreak-work
| but that's it | 12:00 |
|
crippa
| wereHamster: I pulled from a repo, made changes and wrote back to the repo. If I then ask jenkins to 'checkout' the repo, I get the old (unmodified') version of the files | 12:00 |
| → erichynds joined | 12:00 |
|
wereHamster
| especially-corn: is that an initial clone or are you trying to update an existing repository? | 12:01 |
|
canton7
| crippa, where is jenkins pulling from? | 12:01 |
|
especially-corn
| wereHamster, initial | 12:01 |
|
wereHamster
| !bundler | 12:01 |
|
gitinfo
| https://bundler.caurea.org/ will create a bundle of a repository that you can download using resumable transfer mechanisms, and then clone. This helps with slow or broken networks. | 12:01 |
| gitinfo set mode: +v | 12:01 |
|
crippa
| the git repo | 12:01 |
|
canton7
| crippa, which git repo? The one on your machine, or the one you cloned from? | 12:01 |
|
EtgarDizz
| having trouble fetching from remote, getting "error: unable to find 177......". anyone? | 12:01 |
|
wereHamster
| crippa: are you sure your changes made it to the repo that jenkins is pulling from? | 12:01 |
|
crippa
| wereHamster: I'm pretty sure | 12:02 |
|
canton7
| EtgarDizz, please paste the command you ran and the full output into a pastebin | 12:02 |
|
| crippa, do you understand what 'distributed' means in the context of git? | 12:02 |
|
wereHamster
| crippa: so what's preventing jenkins from updating its working tree? | 12:02 |
| ← master-lincoln left | 12:02 |
|
crippa
| canton7: no.. | 12:02 |
| → xiangfu joined | 12:03 |
|
crippa
| wereHamster: I have no clue, it should work right? | 12:03 |
|
canton7
| crippa, do you understand that if you clone from a repo, then commit, no changes are made to the repo you pulled from? | 12:03 |
|
wereHamster
| crippa: simple question: did you push after you committed the changes? | 12:03 |
|
EtgarDizz
| canton7, http://pastebin.com/bq2CGE1y | 12:03 |
|
wereHamster
| EtgarDizz: the remote repo is corrupted. restore from backup | 12:03 |
| ← tango_ left | 12:03 |
| ← especially-corn left | 12:03 |
|
crippa
| here we are. | 12:04 |
|
| I did not, I thought commiting was enough | 12:04 |
|
| thanks a lot | 12:04 |
|
wereHamster
| you thought. hm. | 12:04 |
|
| crippa: go read !book | 12:04 |
|
gitinfo
| crippa: There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable | 12:04 |
| → tango_ joined | 12:04 |
|
crippa
| I should, yes.. thanks | 12:05 |
| ← dr_lepper left | 12:05 |
|
wereHamster
| but you won't. for some reason.. | 12:05 |
| ← ldlework left | 12:05 |
| → cannonball joined | 12:05 |
| → dr_lepper joined | 12:07 |
| ← dr_lepper left | 12:07 |
| → dr_lepper joined | 12:07 |
|
EtgarDizz
| canton7, you mean there's no way to find the cause and fix it? I'm pretty sure I know which commit caused it, can that help? | 12:07 |
| → cortana2 joined | 12:07 |
| ← stkrzysiak left | 12:08 |
| ← thirdknife left | 12:08 |
|
canton7
| EtgarDizz, what did that commit do? | 12:08 |
|
wereHamster
| the cause is irreleant. The repo is corrupted. You need to restore it. | 12:08 |
|
| irrelevant even. | 12:08 |
|
EtgarDizz
| canton7, wereHamster: don't understand the question, it's just the last commit that was made, before it all was good. of course cause it irrelevant, just wondering if it's possible to pinpoint the problematic files and erase/restore them, instead of the whole repo | 12:09 |
|
canton7
| EtgarDizz, have you done anything unusual in your local repo? Have you had any problems with the remote at all? tbh I'm not sure whether the problem is client- or server-side | 12:11 |
| ← dpino left | 12:11 |
| → griotspeak joined | 12:12 |
| ← nimesh_accenture left | 12:12 |
| ← pjn_oz left | 12:14 |
|
EtgarDizz
| canton7, I've had some trouble w/ permissions, not able to push stuff, so went to repo and did "chmod -R g+w ." and added appropriate users to the group | 12:14 |
| → FernandoBasso joined | 12:15 |
|
canton7
| hrm, might a failed push cause this? I thought those things were atomic, but that might fall down when permission issues get involves | 12:16 |
| → apok joined | 12:17 |
| ← Qoidnef left | 12:17 |
| ← Advocation left | 12:17 |
| → nimesh_accenture joined | 12:18 |
|
EtgarDizz
| canton7, I thought it's atomic too... I also thought that if the pushing user is in group w/ write permission to the objects folder, it should be enough. wrong? | 12:19 |
| → jim0203 joined | 12:19 |
| → thiago_ joined | 12:20 |
| ← griotspeak left | 12:20 |
| → griotspeak joined | 12:20 |
| → thirdknife joined | 12:21 |
| ← xGambit left | 12:21 |
|
canton7
| EtgarDizz, my guess is that a failed push *before* you resolved the permissions might have caused this | 12:21 |
| ← griotspeak left | 12:21 |
|
EtgarDizz
| canton7, is it possible to "re-push" the problematic commit from the local copy in which it was made? | 12:22 |
| → n1x joined | 12:22 |
| ← n1x left | 12:25 |
| ← thiago_ left | 12:25 |
| → thiago joined | 12:25 |
| gitinfo set mode: +v | 12:25 |
| ← iamjarvo left | 12:26 |
|
crippa
| I pull, modify a file, "git add" it, "git status" says "# Changes to be committed: myfile", "git commit" says " 1 files changed", but when I push it says "Everything up-to-date | 12:26 |
|
| why?? | 12:27 |
|
cbreak-work
| you didn't commit? | 12:27 |
|
canton7
| EtgarDizz, I honestly have no idea. Worth a try I guess. You'll need someone who's familiar with the internals of git's fetch/push mechanisms to answer that properly | 12:28 |
|
sajbar
| cbreak-work: if you just add a file it isn't commited. | 12:28 |
|
cbreak-work
| I know. | 12:28 |
|
crippa
| I did. after having run "git commit" it says "" 1 files changed", | 12:28 |
|
sajbar
| make that a reply to crippa | 12:28 |
|
| crippa: then you can git push whereever | 12:28 |
|
cbreak-work
| crippa: and git log shows your commit? | 12:29 |
| ← SunilThaha left | 12:29 |
|
crippa
| and so I did, but it replies with a "everything is up to date" | 12:29 |
|
| so teh file is not pushed | 12:29 |
|
cbreak-work
| what did you push? the branch you committed in? | 12:29 |
|
| git doesn't push files anyway | 12:29 |
|
| only pushes history | 12:29 |
|
sajbar
| crippa: git push whereever branchname | 12:29 |
| → SunilThaha joined | 12:29 |
| → ToBeFree joined | 12:30 |
|
crippa
| should I always specify the branchname? I only have 1 branch,the master | 12:30 |
| gitinfo set mode: +v | 12:31 |
| → Advocation joined | 12:31 |
|
cbreak-work
| you don't need to in all cases. | 12:31 |
| ← mintux left | 12:32 |
|
crippa
| ok, so "git push" would be enough right? | 12:33 |
| → dr_leppe1 joined | 12:35 |
| → iocor joined | 12:35 |
| ← nimesh_accenture left | 12:35 |
| ← gavin_huang left | 12:35 |
| ← dr_lepper left | 12:37 |
| ← noisebleed left | 12:37 |
| → gavin_huang joined | 12:38 |
| → jsoa joined | 12:38 |
| → noisebleed joined | 12:38 |
| ← noisebleed left | 12:38 |
| → noisebleed joined | 12:38 |
| → d0k joined | 12:39 |
| → martinjlowm joined | 12:40 |
| → mastroDani joined | 12:41 |
| → t4nkd joined | 12:43 |
| ← erichynds left | 12:44 |
| → freeed joined | 12:44 |
| ← mastroWork left | 12:45 |
| → master-lincoln joined | 12:45 |
| ← apok left | 12:45 |
| → oriba joined | 12:47 |
| → chrisshattuck joined | 12:49 |
| ← blackmatrix_ny left | 12:50 |
| → subbyyy joined | 12:51 |
| ← subbyyy left | 12:51 |
| → subbyyy joined | 12:51 |
| ← subbyyy left | 12:51 |
| gitinfo set mode: +v | 12:53 |
| → duckxx joined | 12:54 |
| → babilen joined | 12:54 |
| ← chrisshattuck left | 12:55 |
| → erichynds joined | 12:56 |
| ← dc5ala left | 12:57 |
| → TeckniX joined | 12:57 |
| ← iocor left | 12:57 |
| → juvenal joined | 12:58 |
| → gchristensen joined | 12:58 |
| ← gchristensen left | 12:58 |
| → macabre joined | 12:58 |
| → revagomes joined | 12:58 |
| ← Guest87934 left | 13:00 |
| → judaz joined | 13:00 |
| ← pastime left | 13:01 |
| → bartek joined | 13:02 |
|
judaz
| hello people, I need some help with git submodule. I've added a submodule locally and pushed it to the repo (github). At github I see that the .gitmodules has been updated, and it's exactly as mine locally. But, When I do a git clone --recursive the new submodule is not cloned AND when I check the .gitmodules files, my submodule does not exist. Any idea how to debug this or what can it be? | 13:02 |
| → AaronMT joined | 13:03 |
| → iamjarvo joined | 13:03 |
|
judaz
| also, in a git submodule status, the new module does not exist | 13:03 |
| → glcrazy joined | 13:03 |
|
judaz
| I see now that when I do a git submodule init, the submodule appears.. | 13:03 |
|
| but I need it to work on the clone --recursive | 13:04 |
| ← teratoma left | 13:05 |
| ← ph^ left | 13:05 |
| → Radium_ joined | 13:07 |
| ← Radium left | 13:08 |
| ← hyperair left | 13:08 |
|
PerlJam
| judaz: is your clone a mirror or bare? | 13:08 |
|
judaz
| PerlJam: you lost me there, I don't know the difference | 13:08 |
| → nimesh_accenture joined | 13:09 |
|
PerlJam
| judaz: then it's probably not relevant :) | 13:09 |
|
judaz
| PerlJam: hehe | 13:09 |
|
PerlJam
| judaz: If you "git clone --mirror" or "git clone --bare", even with --recursive, you won't get submodules initialized | 13:09 |
| → bauruine joined | 13:09 |
|
judaz
| PerlJam: oh!, no.. I'm not doing none of them | 13:10 |
|
PerlJam
| judaz: so you did "git clone --recursive URL" and that's it? | 13:10 |
|
judaz
| PerlJam: true | 13:10 |
|
PerlJam
| weird | 13:10 |
| ← nimesh_accenture left | 13:10 |
| → cholin joined | 13:10 |
|
judaz
| PerlJam: indeed | 13:10 |
|
| oh wait.. I've tried doing a clone at my machine and worked | 13:11 |
| → hyperair joined | 13:11 |
|
judaz
| but the problem exists on the server (ec2) | 13:11 |
| → OOPMan joined | 13:11 |
| ← Chib left | 13:11 |
| ← dvide left | 13:11 |
| ← dhruvasagar left | 13:11 |
| ← rchavik left | 13:11 |
|
PerlJam
| judaz: maybe it's running a really old git client? | 13:12 |
| ← cooloney left | 13:12 |
| → dhruvasagar joined | 13:12 |
|
judaz
| PerlJam: ill check | 13:12 |
|
| but the thing is | 13:12 |
|
| the project has several submodules | 13:12 |
|
| and it's not cloning only ONE of them | 13:12 |
|
| I mean, the problem i've described happens only in one of them, but the other 5 works | 13:13 |
| → dpino joined | 13:13 |
|
PerlJam
| Hmm. | 13:13 |
|
judaz
| and the url of the submodule is public and over https: | 13:13 |
|
PerlJam
| Then ... what's different about that one? :) | 13:13 |
| ← d3vic3 left | 13:13 |
| → kyconquers joined | 13:14 |
|
judaz
| PerlJam: whats the difference between clone --recursive and git submodule init/update | 13:14 |
|
| ? | 13:14 |
|
| cus, when I do an init and update | 13:14 |
|
| the submodules is added | 13:14 |
|
| but not during the clone | 13:14 |
| tizzo → tizzo-afk | 13:15 |
| → d3vic3 joined | 13:15 |
| tizzo-afk → tizzo | 13:15 |
| → martinjlowm-lptp joined | 13:15 |
| → mastroWork joined | 13:15 |
| ← w0ng left | 13:17 |
| → chrisshattuck joined | 13:18 |
| → w0ng joined | 13:18 |
| → neurodrone joined | 13:19 |
| ← mastroDani left | 13:19 |
| → v0n joined | 13:20 |
| → beatak joined | 13:21 |
| → orkz joined | 13:23 |
| → jim0203_ joined | 13:25 |
|
judaz
| PerlJam: I see a difference at the last module | 13:26 |
|
| it also has a submodule | 13:26 |
|
| so is | 13:26 |
|
| MAIN -> submodule -> submodule 2 | 13:26 |
|
| although, it works here at my machine, but not at EC2 | 13:26 |
| ← teknoid left | 13:26 |
| ← BiggFREE left | 13:26 |
| → andrewvos joined | 13:27 |
| ← duckxx left | 13:27 |
|
andrewvos
| how do I `git checkout -b meh` and not fail if the branch *does* exist? | 13:27 |
| → adhawkins joined | 13:27 |
|
wereHamster
| andrewvos: if branch exists then checkout else checkout -b | 13:27 |
| → mattdipasquale joined | 13:27 |
| ← mattdipasquale left | 13:27 |
| → mattdipasquale joined | 13:28 |
|
andrewvos
| wereHamster: I'm doing this in code | 13:28 |
| ← tonyj_ left | 13:28 |
|
andrewvos
| Oh wait | 13:28 |
|
| -B looks interesting | 13:28 |
|
wereHamster
| 'in code'? | 13:28 |
| ← jim0203 left | 13:28 |
| jim0203_ → jim0203 | 13:28 |
| ← kermit left | 13:28 |
| ← jim0203 left | 13:28 |
| → tonyj joined | 13:29 |
|
andrewvos
| yay -B worked | 13:29 |
|
| wereHamster: I'm writing a script. | 13:29 |
| → kermit joined | 13:30 |
|
wereHamster
| you can check the presence of a branch in a script.. | 13:30 |
| ← bauruine left | 13:30 |
| → mrwalker joined | 13:31 |
| → gchristensen joined | 13:33 |
| → mantic0 joined | 13:33 |
| → jim0203 joined | 13:33 |
| → Vortex35 joined | 13:33 |
| → ceej joined | 13:34 |
| → tyatpi joined | 13:35 |
| → FreeArtMan joined | 13:35 |
| ← Vortex34 left | 13:36 |
| ← gchristensen left | 13:37 |
| → _Vi joined | 13:37 |
| tizzo → tizzo-afk | 13:37 |
| → fisted_ joined | 13:37 |
| ← fisted left | 13:37 |
| ← tonyj left | 13:38 |
| → pandeiro joined | 13:38 |
| → Davey joined | 13:41 |
| → iamjarvo1 joined | 13:41 |
| ← iamjarvo left | 13:42 |
| ← iamjarvo1 left | 13:43 |
| → iamjarvo joined | 13:43 |
| → mastroDani joined | 13:43 |
| ← marthinal left | 13:44 |
| ← Advocation left | 13:44 |
| ← kpreid left | 13:45 |
| → codewrangler joined | 13:46 |
| ← w0ng left | 13:47 |
| ← mastroWork left | 13:47 |
| → cakehero joined | 13:47 |
| → w0ng joined | 13:47 |
| → tonyj joined | 13:48 |
| ← mattdipasquale left | 13:50 |
| → aristidesfl joined | 13:51 |
| → dv310p3r joined | 13:51 |
| → oehman joined | 13:52 |
| → mattdipasquale joined | 13:52 |
| → Nightfire034 joined | 13:52 |
| → eagles0513875 joined | 13:52 |
| ← oriba left | 13:52 |
| ← tonyj left | 13:53 |
|
eagles0513875
| hey guys what does one need to do to merge a particular branch | 13:53 |
|
cbreak-work
| switch to the destination branch and type git merge sourcebranch | 13:53 |
| ← DofLeFou left | 13:53 |
| ← [[thufir]] left | 13:53 |
| ← andrewvos left | 13:53 |
| → dfr|mac joined | 13:53 |
| → marthinal joined | 13:54 |
| ← Maccer left | 13:54 |
|
eagles0513875
| cbreak-work: destination branch in my case master then git merge BRANCH NAME | 13:55 |
|
| of the branch you want to merge right | 13:55 |
| → ehsan joined | 13:55 |
| digiv|afk → digiv | 13:56 |
| ← dv310p3r left | 13:56 |
| → chepre joined | 13:57 |
| ← swappoke left | 13:57 |
| ← mischat left | 13:57 |
| → dfr|mac_ joined | 13:57 |
| → nadavoid joined | 13:58 |
| ← glcrazy left | 13:58 |
| → juanfer joined | 13:58 |
| → gchristensen joined | 13:59 |
| ← robbyoconnor left | 13:59 |
| → wbednarski joined | 14:00 |
| → kpreid joined | 14:00 |
|
ironfroggy
| why cant i do "git branch -D origin/branch" ? | 14:00 |
| → Maccer joined | 14:00 |
| ← dfr|mac left | 14:00 |
|
SethRobertson
| I don't know. Why can't you? !repro | 14:01 |
|
gitinfo
| Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting. | 14:01 |
|
cbreak-work
| ironfroggy: don't mess with remote tracking branches | 14:01 |
|
SethRobertson
| git remote prune origin | 14:01 |
|
ironfroggy
| i need to, its wrong. somehow a remote tracked branch is not what it really is on the remote. | 14:01 |
|
eagles0513875
| ironfroggy: its just git branch -D BRANCH NAME | 14:01 |
|
bremner
| eagles0513875: no | 14:01 |
| → d2dchat joined | 14:02 |
|
ironfroggy
| when i checkout the branch, it includes changes from a local branch i never pushed | 14:02 |
| ← Kaisyu2 left | 14:02 |
|
cbreak-work
| ironfroggy: doesn't matter. | 14:02 |
| → mischat joined | 14:02 |
|
cbreak-work
| ironfroggy: git remote update first if you want to change it | 14:02 |
|
| (to the current state of the remote) | 14:02 |
|
SethRobertson
| ironfroggy: git remote update -p origin; Then if you still think it is bad we can compare | 14:02 |
|
| ironfroggy: git rev-parse origin/branch; git ls-remote origin | grep branch | 14:03 |
| ← pandeiro left | 14:03 |
| ← mischat left | 14:05 |
| → mischat joined | 14:06 |
| ← JohnBat26 left | 14:07 |
| ← dfr|mac_ left | 14:08 |
| → dfr|mac joined | 14:08 |
| ← chrisshattuck left | 14:08 |
|
ironfroggy
| SethRobertson: it does not LOOK like it has this other branch | 14:08 |
|
| but when i check it out, inevitably, the same changes are always there | 14:08 |
| ← ehsan left | 14:09 |
|
adhawkins
| I created a branch locally, then pushed it up to a repository. Is this branch now bring tracked correctly or do I need to do something else to track it? | 14:09 |
|
SethRobertson
| You are not being clear. What was the result of the rev-parse/ls-remote commands I mentioned? | 14:09 |
|
adhawkins
| How can I tell which branches are being tracked and which aren't? | 14:09 |
|
SethRobertson
| adhawkins: git branch -vv Look in [] | 14:09 |
| → lyddonb joined | 14:09 |
|
jast
| adhawkins: git branch -vv. chances are that didn't magically set tracking info, unless you used -u with push. | 14:09 |
|
SethRobertson
| adhawkins: If you did not push with -u, you didn't change anything | 14:09 |
|
ironfroggy
| SethRobertson: they both show the same hash, the head of the remote branch i'm trying to checkout | 14:10 |
|
adhawkins
| I did a git push origin branchname, which has created the branch at the remote, but it doesn't appear to be tracked | 14:10 |
|
| andy@atom:~/software/libmusicbrainz/libmusicbrainz.git$ git branch -vv | 14:10 |
|
| * bug-fixing-2012-04 ead2865 Update NEWS in preparation for new release | 14:10 |
|
| master df0ce24 [origin/master] Remove README.txt | 14:10 |
|
ironfroggy
| it is the branch that i was on when i originally checked it out, with a clean working copy | 14:10 |
|
SethRobertson
| ironfroggy: So what makes you think they are not the same if the two hashes are identical? You just don't *think* that is what is on the branch? | 14:10 |
|
jast
| adhawkins: yeah, so use -u next time, or just branch --set-upstream | 14:10 |
| → macrover joined | 14:10 |
| ← Vert left | 14:11 |
| → brngardner joined | 14:11 |
|
adhawkins
| git branch --set-upstream bug-fixing-2012-04 origin/bug-fixing-2012-04 | 14:11 |
|
| Seems to have done it | 14:11 |
|
| That correct? | 14:11 |
|
SethRobertson
| ironfroggy: Remember that master, origin/master, and origin's master are three different branches | 14:11 |
|
ironfroggy
| i know this | 14:12 |
|
SethRobertson
| So why do you think origin/master and origin's master are different? | 14:12 |
|
ironfroggy
| the problem is that when i do "git branch origin/master origin/branch" i see changes that i have personally made in another branch and never pushed to origin yet | 14:12 |
|
jast
| adhawkins: looks good | 14:12 |
|
| I gotta go | 14:12 |
|
adhawkins
| Excellent, thanks | 14:13 |
|
jast
| see y'alls later | 14:13 |
|
SethRobertson
| ironfroggy: whoa whoa. If you are doing command like you said, you are making a major mistake. Do `git branch` Do you see anything like origin/ in the output? `git branch | grep origin/` | 14:13 |
| → tonyj joined | 14:13 |
|
SethRobertson
| The command you mention makes a local branch with a remote name. A major major problem. | 14:14 |
|
ironfroggy
| SethRobertson: typo! | 14:14 |
|
| i meant diff, not branch | 14:14 |
|
SethRobertson
| Well, do that `git branch| grep origin/` anyway. It might explain things | 14:14 |
| ← mischat left | 14:14 |
|
ironfroggy
| no origin in there | 14:15 |
| → mischat joined | 14:15 |
| ← gavin_huang left | 14:15 |
|
eagles0513875
| hey guys how will i know that a branch has been merged i did git branch and the branch i merged is still listed there | 14:15 |
|
| once the branch has been merged can it be deleted? | 14:15 |
|
bremner
| eagles0513875: that is why git branch -d exists | 14:15 |
|
SethRobertson
| ironfroggy: So...perhaps you made a mistake and pushed it anyway? the default setting of push.default in current git will cause branches other than the one you are on to be pushed as well. | 14:15 |
|
| eagles0513875: You can run `gitk --all --date-order` to see what happened too | 14:16 |
|
ironfroggy
| if i did i dont know how it would end up in some else's branch, but i'll look closer | 14:16 |
|
eagles0513875
| bremner: ok | 14:16 |
|
jepler
| I cloned a repository with --shared, and later realized this was not desirable in my use case. What do I do to "un-share" the repository? | 14:17 |
| ← fisted_ left | 14:17 |
| ← mischat left | 14:18 |
| → mischat joined | 14:18 |
|
eagles0513875
| hey guys how do i remove trackign on a remote branch | 14:21 |
|
| remote server | 14:21 |
|
SethRobertson
| jepler: Just chmod the directory recursively and delete core.shared man git-config | 14:22 |
|
gitinfo
| jepler: the git-config manpage is available at http://jk.gs/git-config.html | 14:22 |
|
jepler
| git clone -s is the one that sets up objects/info/alternates, not the one that sets core.sharedRepository | 14:22 |
| → chrisshattuck joined | 14:22 |
|
jepler
| (that's exactly the mistake I made) | 14:22 |
|
SethRobertson
| eagles0513875: Can you restate your desire? Possibly `git remote remove` or possibly something else. I could not understand | 14:22 |
|
| jepler: Oh, that shared. `git repack -Ad` I think | 14:23 |
| → envi_ joined | 14:23 |
| → chrisgeorge joined | 14:23 |
| → duckxx joined | 14:23 |
| → mikepack joined | 14:23 |
|
eagles0513875
| SethRobertson: i have a repository i merged with master and deleted how do i remove said reposityr on the remote from being tracked | 14:23 |
|
jepler
| SethRobertson: ah yes | 14:24 |
|
SethRobertson
| You want to remove origin/foo? You cannot. You can remove origin's foo and then do a pruning remote update | 14:24 |
|
jepler
| now I can delete alternates and git fsck is happy | 14:24 |
|
| thank you SethRobertson | 14:24 |
| → gavin_huang joined | 14:24 |
| ← Nightfire034 left | 14:25 |
|
eagles0513875
| SethRobertson: git push origin :BRANCH NAME <--- then what does that do from what i looked up that removes the trackign on the remote | 14:25 |
|
adhawkins
| If I delete a remote branch (git push origin :branchname) presumably all its history is still maintained? | 14:25 |
| ← tqmz left | 14:26 |
| → Nightfire034 joined | 14:26 |
|
eagles0513875
| git push origin username:BRANCH NAME <-- is that right assumption adhawkins | 14:26 |
|
adhawkins
| eagles0513875: Don't ask me questions, I'm still a newbie :) | 14:27 |
|
eagles0513875
| wait | 14:27 |
|
| this is the error i get SethRobertson error: src refspec jaquilina does not match any. error: failed to push some refs to 'jaquilina@git.eagleeyet.net:/home/jaquilina/intradev' | 14:27 |
|
| does that mean the merge also merged the remote tracking for me into master? | 14:28 |
| ← gchristensen left | 14:28 |
|
SethRobertson
| eagles0513875: `git push --delete origin foo` will delete branch foo on origin. Then `git remote update -p origin` will update your copy of origin and delete stale branches like origin/foo | 14:28 |
| → airborn joined | 14:28 |
|
eagles0513875
| SethRobertson: doesnt this do the same thing git push origin jaquilina:djangoAndSouthSetupScript | 14:28 |
| → mischat_ joined | 14:28 |
|
SethRobertson
| You can use `git ls-remote origin` to see what branches are still on origin. | 14:28 |
| ← mischat left | 14:29 |
| mischat_ → mischat | 14:29 |
|
SethRobertson
| No, that does something completely different. It does not delete djangoAnd... it uploads jaquilina to the branch named djangoAnd... on origin | 14:29 |
|
eagles0513875
| Branch ls-remote set up to track remote branch master from origin. SethRobertson when i run git ls-remote origin | 14:29 |
| ← envi_ left | 14:30 |
|
SethRobertson
| Um, you didn't run that command then. You ran some other command. !repro | 14:30 |
|
gitinfo
| Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting. | 14:30 |
| → fayaz joined | 14:32 |
| tizzo-afk → tizzo | 14:32 |
| ← rrn left | 14:32 |
| ← brentdanley_ left | 14:32 |
| ← chrisshattuck left | 14:32 |
|
adhawkins
| If I delete a remote branch (git push origin :branchname or git push --delete origin branchname) presumably all its history is still maintained? | 14:33 |
| → ericmuyser joined | 14:34 |
| → rrn joined | 14:34 |
| → bloony joined | 14:35 |
|
shruggar
| adhawkins: on the remote? not much, no | 14:35 |
|
adhawkins
| Even if I've been pushing the branch up to the remote? | 14:35 |
| → envi_ joined | 14:35 |
|
bloony
| whats the best way of looking at a previous file? eg. how the file looked 5 commits back | 14:35 |
| → pandeiro joined | 14:36 |
|
shruggar
| adhawkins: it removes the remote reference, which means the remote will consider it okay-to-delete next time gc runs | 14:36 |
|
SethRobertson
| adhawkins: For a while. Eventually, if no other ref points to those commits, the unreferenced history will go away | 14:36 |
|
eagles0513875
| SethRobertson: :D problem git push --delete origin BRANCH NAME :D did the trick | 14:36 |
|
SethRobertson
| shruggar: After a few weeks | 14:36 |
| ← duckxx left | 14:36 |
| → duckxx joined | 14:37 |
|
adhawkins
| shruggar, SethRobertson: Ok, I assumed that it would still retain the history from when that branch was being worked upon. | 14:37 |
| → danielpunt joined | 14:37 |
|
adhawkins
| Or will that history be present in the merges back to the main branch (master in this case)? | 14:37 |
|
SethRobertson
| adhawkins: If you merged the branch, then there is still a reference to it, and the history will not be lost | 14:38 |
| → fisted joined | 14:38 |
|
adhawkins
| Ah ok, that makes sense. | 14:38 |
| ← mischat left | 14:38 |
|
SethRobertson
| Until such time as you delete the reference to the branch you merged it into | 14:38 |
| → mischat joined | 14:38 |
|
SethRobertson
| Unless you merged that. etc | 14:38 |
|
adhawkins
| SethRobertson: Well, the merge will go into 'master' which won't get deleted. | 14:38 |
| → psoo_ joined | 14:38 |
| → pastime joined | 14:38 |
| ← psoo left | 14:38 |
| → Radium joined | 14:39 |
| → chrisshattuck joined | 14:40 |
| ← macrover left | 14:40 |
| ← Radium_ left | 14:40 |
|
eagles0513875
| thanks for your patience and help with me SethRobertson :D | 14:40 |
| ← psoo_ left | 14:40 |
| → ology joined | 14:41 |
| → alexisabril joined | 14:41 |
| → mastroWork joined | 14:42 |
| ← mischat left | 14:42 |
| → macrover joined | 14:43 |
| → mischat joined | 14:43 |
| ← duckxx left | 14:44 |
| ← beautifulmind left | 14:44 |
| → duckxx joined | 14:44 |
| ← SimonNa left | 14:45 |
| ← brokenshakles left | 14:45 |
| ← mastroDani left | 14:45 |
| → ceej_ joined | 14:46 |
| ← lyddonb left | 14:46 |
| ← ceej left | 14:46 |
| ceej_ → ceej | 14:46 |
| → storrgie joined | 14:47 |
| ← duckxx left | 14:47 |
| → duckxx joined | 14:47 |
| ← w0ng left | 14:48 |
| neersighted|AFK → neersighted | 14:48 |
| ← eagles0513875 left | 14:48 |
| → lyddonb joined | 14:48 |
| ← danielpunt left | 14:48 |
| → w0ng joined | 14:49 |
| ← Strogg left | 14:49 |
| ← ehks` left | 14:50 |
| → Strogg joined | 14:50 |
| ← mattdipasquale left | 14:52 |
| → brokenshakles joined | 14:52 |
| harish → harish_afk | 14:53 |
| → lacrymology joined | 14:53 |
| → pfFredd joined | 14:54 |
| ← pandeiro left | 14:55 |
| ← storrgie left | 14:56 |
| → storrgie joined | 14:56 |
| ← xiangfu left | 14:57 |
| → Stone44 joined | 14:57 |
| ← __main__ left | 14:57 |
| ← giallu left | 14:58 |
| → __main__ joined | 14:59 |
| ← EricInBNE left | 14:59 |
| ← mikepack left | 14:59 |
| → saml joined | 14:59 |
|
saml
| how can I list the files taht's version controlled? do I export? | 15:00 |
| ← __main__ left | 15:00 |
| → joaoh82 joined | 15:00 |
| → stuntmachine joined | 15:01 |
| → __main__ joined | 15:02 |
| → gusnan joined | 15:03 |
| ← neurodrone left | 15:03 |
|
bremner
| saml: man git ls-files | 15:03 |
|
gitinfo
| saml: the git-ls-files manpage is available at http://jk.gs/git-ls-files.html | 15:03 |
|
bremner
| or, if doing something weird, see man git-ls-tree | 15:04 |
|
gitinfo
| the git-ls-tree manpage is available at http://jk.gs/git-ls-tree.html | 15:04 |
|
saml
| whoa didn'tk now... it's not under git help | 15:05 |
| → coyotebush joined | 15:05 |
| ← jatt left | 15:05 |
| ← ThomasLocke left | 15:05 |
| → rye_ joined | 15:06 |
| → Zenopus_ joined | 15:06 |
| → negev joined | 15:07 |
| ← brar left | 15:07 |
|
negev
| hi, is there a simple way to select which submodules you want to check out in a given repo? we were thinking of having a bunch of optional modules for our application as git submodules, but it seems that the submodule concept in git tends towards having /all/ the submodules checked out rather than just the ones you want | 15:08 |
| → zealiod joined | 15:08 |
| ← Zenopus left | 15:08 |
| Zenopus_ → Zenopus | 15:08 |
|
zealiod
| is it possible just to allow a user only access to one directory of a repo? | 15:08 |
|
shruggar
| zealiod: no | 15:08 |
|
bremner
| not easily | 15:08 |
|
shruggar
| not at all | 15:08 |
|
bremner
| gitolite can fake it, iirc | 15:08 |
|
zealiod
| cool | 15:09 |
|
shruggar
| gitolite can fake it for writes, not reads, afaik | 15:09 |
|
bremner
| but probably, ask yourself why you are doing this? | 15:09 |
| → ehsan joined | 15:09 |
| ← nickcooley left | 15:09 |
| → broonie joined | 15:09 |
| → mikepack joined | 15:10 |
|
bremner
| since it is mostly like better and easier to seperate out things into different repos. | 15:10 |
| ← Stone44 left | 15:10 |
| ← broonie left | 15:10 |
| → spiette joined | 15:10 |
|
bremner
| shruggar: hmm. That makes sense. I only remember some trick involving temporary repos; but absent running filter-branch, it does sound hard to accomplish, | 15:11 |
| ← dfr|mac left | 15:12 |
|
shruggar
| it sounds like more of an explanation as to why it's not possible :) | 15:13 |
| → cgrage joined | 15:13 |
|
bremner
| well, you know, you could pay gnomes to type in some content from that branch ane email it to you, but I agree that might not count as git at that point. | 15:14 |
| ← wolog left | 15:14 |
| ← rye_ left | 15:14 |
|
shruggar
| everything can be solved with a large enough budget and mechanical turk, provided you're okay with high response time | 15:15 |
| → francisfish joined | 15:16 |
| → psakrii joined | 15:17 |
|
zealiod
| hmm | 15:17 |
|
| i just want one of our team just to be able to read and write to part of the repo… mainly because I don't want him looking at all the other code in there | 15:17 |
| → iocor joined | 15:17 |
| → Carraway joined | 15:18 |
|
bremner
| make a submodule or use gitslave for that part | 15:18 |
| ← zealiod left | 15:19 |
|
bremner
| or not | 15:19 |
| → stkrzysiak joined | 15:19 |
| → wolog joined | 15:20 |
| → TheHaven joined | 15:20 |
| ← stkrzysiak left | 15:20 |
| → Vert joined | 15:20 |
| → stkrzysiak joined | 15:20 |
| ← flijten left | 15:21 |
| → aleray joined | 15:21 |
| ← resmo_ left | 15:22 |
| ← noisebleed left | 15:22 |
|
aleray
| hi, can I create a branch for which starting point is an old revision of master ? | 15:22 |
| ← tsdh left | 15:23 |
|
shruggar
| aleray: of course. git checkout -b <new name> <starting-point> | 15:23 |
| ← pfFredd left | 15:23 |
|
shruggar
| <starting-point> can be any commitish | 15:23 |
| → zamba joined | 15:23 |
|
aleray
| shruggar, nice, easy :) | 15:23 |
|
zamba
| is gitosis still used? | 15:23 |
|
shruggar
| !gitosis | 15:24 |
|
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 | 15:24 |
|
zamba
| thanks :) | 15:24 |
| ← negev left | 15:24 |
|
zamba
| but not a deb package :p | 15:24 |
|
cortana2
| should be an easy backport | 15:25 |
|
| in fact, 2.0.3 is in squeeze-backports :) | 15:25 |
|
zamba
| what i want is the following: two developers working on a web project.. php code and mysql database.. one of the developers are using windows and the other is using linux.. and then we have the production web server where the project should be running.. | 15:26 |
|
| gitolite good for this? | 15:26 |
|
cortana2
| well... git is a component of such a setup, but you would need other stuff | 15:26 |
|
| i will say this right now... if your project is going to be deployed on linux, then the devlopers must use linux too | 15:26 |
|
| same goes for windows, etc | 15:26 |
|
zamba
| ok.. | 15:26 |
|
| but what other stuff are you talking about? | 15:27 |
|
cortana2
| anything else will just drain your sanity in the long run | 15:27 |
| → marhaban joined | 15:27 |
|
cortana2
| well, i was thinking of a system for deploying the code to the web server, etc... a lot of people manage to misuse git for that with some success :) | 15:27 |
| ← codewrangler left | 15:27 |
|
zamba
| what kind of system for deploying the code do you suggest then? | 15:27 |
|
| i was thinking of just using git there directly | 15:28 |
|
| git update or whatever | 15:28 |
|
canton7
| zamba, !deploy | 15:28 |
|
gitinfo
| zamba: [!website] Git is not a website deployment tool, but can sometimes play one in sufficiently simple/lax environments with a little help. One example of help is: http://toroid.org/ams/git-website-howto and another approach: https://gist.github.com/1714235 | 15:28 |
|
cortana2
| ah that factoid is more useful than i remember :) | 15:29 |
| ← juanfer left | 15:29 |
| ← pro_metedor left | 15:30 |
| ← infogulch_ left | 15:30 |
| → noisebleed joined | 15:30 |
| ← noisebleed left | 15:30 |
| → noisebleed joined | 15:30 |
|
zamba
| i like that first approach | 15:30 |
| → mritz joined | 15:31 |
|
zamba
| though i don't fully understand git remote | 15:31 |
|
| or the distributed model here :p | 15:31 |
|
| basically both developers need to commit/checkout from the same central repository | 15:31 |
| ← FACEFOX left | 15:32 |
|
cortana2
| uh huh. that much is easy to set up | 15:33 |
|
| see chapter 4 of the user guide, or chapter 3 of the git community book | 15:34 |
| → theCole joined | 15:34 |
| → kenperkins joined | 15:34 |
|
cortana2
| http://schacon.github.com/git/user-manual.html and http://book.git-scm.com/ respectively | 15:34 |
| ← joaoh82 left | 15:34 |
| → t4nkd`workin joined | 15:35 |
| ← oehman left | 15:36 |
| ← pastime left | 15:36 |
| ← OOPMan left | 15:37 |
| → iqueeee joined | 15:37 |
| ← gavin_huang left | 15:38 |
| ← t4nkd left | 15:38 |
| ← iqueeee left | 15:39 |
| ← Vampire0 left | 15:39 |
| → juanfer joined | 15:39 |
| → giallu joined | 15:39 |
| ← juanfer left | 15:40 |
| → qos joined | 15:40 |
| → cccaldas_ joined | 15:40 |
| → neurodrone joined | 15:40 |
| → SimonNa joined | 15:41 |
| ← papegaaij left | 15:42 |
| ← _sundar_ left | 15:42 |
| ← arvind_khadri left | 15:42 |
| ← rtuin left | 15:43 |
| ← cccaldas left | 15:43 |
| ← t4nkd`workin left | 15:43 |
| → kukks joined | 15:44 |
| → t4nkd joined | 15:44 |
| ← angelsl left | 15:45 |
| ← batmanian left | 15:50 |
| → JohnBat26 joined | 15:51 |
| ← chepre left | 15:52 |
| ← Poapfel left | 15:53 |
| → Vampire0 joined | 15:53 |
| → Poapfel joined | 15:54 |
| → xou joined | 15:54 |
| ← Poapfel left | 15:54 |
| → Poapfel joined | 15:54 |
| ← mastroWork left | 15:56 |
| → ziggles joined | 15:57 |
| ← lyddonb left | 15:57 |
| → notola joined | 15:57 |
| ← brngardner left | 15:57 |
| → lyddonb joined | 15:59 |
| → ShadesofGraylin| joined | 16:00 |
| → n1x joined | 16:00 |
| → subh joined | 16:00 |
| ← kermit left | 16:00 |
| → juanfer joined | 16:01 |
| → hagabaka joined | 16:01 |
| ← hagabaka left | 16:01 |
| → hagabaka joined | 16:01 |
| → t4nkd`workin joined | 16:01 |
| ← n1x left | 16:01 |
| ← ShadesofGraylin| left | 16:02 |
| ← qos left | 16:02 |
| ← t4nkd left | 16:03 |
| t4nkd`workin → t4nkd | 16:03 |
| ← shruggar left | 16:03 |
| ← jceb left | 16:03 |
| → CannedCorn joined | 16:04 |
| ← t4nkd left | 16:04 |
| ← fisted left | 16:04 |
| ← EtgarDizz left | 16:04 |
| → t4nkd joined | 16:05 |
| ← kenperkins left | 16:05 |
|
SethRobertson
| jast? | 16:05 |
| ← gusnan left | 16:05 |
| ← whitman left | 16:05 |
|
SethRobertson
| jast: .trigger_edit fetch4 Don't use the four argument version of `git fetch <repo> <branch>` or `git pull <repo> <branch>`. It will only end in tears. It updates FETCH_HEAD instead of <repo>/<branch> and always seems to utterly confuse anyone who is foolish enough to use it. | 16:05 |
| ← thirdknife left | 16:06 |
| ← mishok13 left | 16:07 |
|
SethRobertson
| jast: Also, it would be nice if someone said "Please see !last." if gitinfo would strip "." if it didn't match (or perhaps even better did de-suffixing as a second pass if that didn't match) | 16:08 |
| → shruggar joined | 16:08 |
| ← Sigma left | 16:09 |
| ← jrots left | 16:10 |
| → maestrojed joined | 16:10 |
| ← mritz left | 16:11 |
| → brngardner joined | 16:11 |
|
jast
| SethRobertson: what about the first one? | 16:11 |
| ← kpreid left | 16:11 |
| ← comcor left | 16:11 |
| → comcor joined | 16:11 |
|
jast
| (I'll do that . thing when I find time) | 16:11 |
| ← robotmay left | 16:11 |
|
SethRobertson
| jast: It doesn't allow [0-9] | 16:11 |
| ← TheHaven left | 16:12 |
|
canton7
| hmm, I raised the "fetch4" issue on the git ML a little back, and Junio and peff are in favour, and peff's even got a patch. I just haven't had the time to figure out why it breaks the tests it does... If anyone's got time, please http://thread.gmane.org/gmane.comp.version-control.git/192252 | 16:12 |
|
jast
| SethRobertson: oh, right. will take care of that, too, then. | 16:12 |
| ← flaguy48 left | 16:13 |
| ← thierryp left | 16:13 |
| → ph^ joined | 16:13 |
| ← dr0id left | 16:14 |
| → macmartine joined | 16:14 |
| → joaoh82 joined | 16:14 |
| ← matthiasgorgens left | 16:14 |
| ← noisebleed left | 16:15 |
| → SegFaultAX|work joined | 16:15 |
| → kermit joined | 16:17 |
| → Advocation joined | 16:17 |
| → eph3meral joined | 16:17 |
| ← RobertLaptop left | 16:18 |
| ← orkz left | 16:18 |
| → maletor joined | 16:19 |
| ← Desproges left | 16:19 |
| → mritz joined | 16:19 |
| → dr_win joined | 16:19 |
| → DarkAR joined | 16:20 |
| → dfr|mac joined | 16:21 |
| → dfr|mac_ joined | 16:21 |
| ← macrover left | 16:22 |
| → Sigma joined | 16:23 |
| ← Sigma left | 16:23 |
| → Sigma joined | 16:23 |
| → RobertLaptop joined | 16:23 |
| ← adhawkins left | 16:23 |
| neersighted → neersighted|AFK | 16:24 |
| ← Advocation left | 16:24 |
| → noisebleed joined | 16:24 |
| ← noisebleed left | 16:24 |
| → noisebleed joined | 16:24 |
| ← pmatthews left | 16:24 |
| → michaelmartinez joined | 16:25 |
| ← michaelmartinez left | 16:25 |
| ← theCole left | 16:25 |
| ← dfr|mac left | 16:25 |
| → mxweas_ joined | 16:26 |
| ← niro left | 16:27 |
| → Mizoa joined | 16:28 |
| → johnkpaul joined | 16:28 |
| ← wbednarski left | 16:28 |
|
johnkpaul
| does anyone have a good resource for understanding why git push origin :branchname deletes the branch | 16:28 |
|
| I vaguely know that the way you name a branch means something | 16:29 |
|
| but what the colon does, I want to learn | 16:29 |
|
canton7
| johnkpaul, http://progit.org/book/ch9-5.html | 16:29 |
|
johnkpaul
| great, thank you canton7 | 16:29 |
|
sitaram
| shruggar, bremner: gitolite can fake out read-restrictions using a "partial copy" repo but only for branches not for directories. http://sitaramc.github.com/gitolite/g3/non-core.html#partial-copy | 16:29 |
|
canton7
| johnkpaul, also there's git push --delete, which is a nicer alias for the same | 16:29 |
|
SethRobertson
| johnkpaul: localname:remotename If the localname is empty, you are saying push nothing there, or delete it | 16:29 |
| → kenperkins joined | 16:29 |
|
shruggar
| syntax for git push: git push <where> <local-object>:<remote-ref> | 16:29 |
| → dreiss joined | 16:30 |
| → usmanity joined | 16:30 |
| → nbigaouette joined | 16:30 |
| → jehoshua02 joined | 16:30 |
|
johnkpaul
| ooh I see | 16:30 |
| ← whyking_ left | 16:30 |
|
johnkpaul
| awesome, that's simpler than I thought | 16:30 |
| ← mxweas_ left | 16:30 |
|
shruggar
| the "colon" means "I didn't specify anything to push to the remote ref" | 16:30 |
|
johnkpaul
| git push has a lot of different ways to use it | 16:30 |
|
jehoshua02
| I need to restore a file back to where it was in a previous commit. | 16:30 |
|
canton7
| jehoshua02, checkout in file mode: git checkout HEAD^ -- path/to/file | 16:31 |
|
| (or HEAD, if you haven't committed yet) | 16:31 |
|
johnkpaul
| so when you say "remote ref" a ref is a particular branch? | 16:31 |
|
canton7
| branches are refs. Some other things are refs, too (like tags) | 16:31 |
| → revagomes_ joined | 16:32 |
|
shruggar
| a ref is a ref. It's a pointer to an object. Usually this is a commit object, but it could be a tag or a blob | 16:32 |
|
johnkpaul
| oh ok, I'm looking at the progit info | 16:33 |
| ← dfr|mac_ left | 16:33 |
| ← revagomes left | 16:33 |
|
shruggar
| or a tree…. though I can't think of why one would do that | 16:33 |
| → oriba joined | 16:33 |
|
jehoshua02
| Thanks. | 16:33 |
| ← jehoshua02 left | 16:33 |
| → ISF joined | 16:33 |
| → dfr|mac joined | 16:33 |
| neersighted|AFK → neersighted | 16:33 |
| ← glennpratt left | 16:34 |
| → raatiniemi joined | 16:35 |
| ← oriba left | 16:35 |
|
johnkpaul
| thanks shruggar and canton7, definitely learning a lot | 16:36 |
| ← jargon- left | 16:36 |
| → oriba joined | 16:36 |
| ← jlebrech left | 16:37 |
|
nbigaouette
| Hi all, I'm using git for my code which outputs a lot of data to "output/". There's nothing in that folder managed by git except .gitignore (which contain only "*") and .kdev_ignore (which tells Kdevelop to ignore the content). The problem is that I want to keep my data centralized and organized. I thus remove the "output" folder and create a link instead. But then git cannot do some operations like rebase. | 16:37 |
|
| Doing "git checkout -- output/.gitignore" deletes the symbolic link and re-create the folder, breaking all my running simulations... | 16:38 |
| → gerard0` joined | 16:38 |
|
nbigaouette
| Is it possible to have the "output" folder tracked by git (so a clone will create the folder with .gitignore * and .kdev_ignore) but then ignore everything done to it? | 16:39 |
| ← Mizoa left | 16:40 |
| ← gerard0 left | 16:40 |
| ← kenperkins left | 16:40 |
|
shruggar
| nbigaouette: why not have your "output" folder get created by your build process, including moving a gitignore template into place? | 16:41 |
| ← asakura left | 16:42 |
| → kpreid joined | 16:42 |
| → flaguy48 joined | 16:42 |
| → jrots joined | 16:42 |
|
eph3meral
| is there a way to share the results of rerere ? | 16:43 |
|
nbigaouette
| shruggar: Yes could be. That still leave the git question unanswered though... I wish I knew hwo to stash/rebase without breaking my running simulations... | 16:43 |
| ← Sigma left | 16:43 |
| → jargon- joined | 16:43 |
|
eph3meral
| as in, it appears that after running a merge with rerere enabled, I now have a .git/rr-cache folder (which I presume contains the results of my decisions and merging) | 16:43 |
| → asakura joined | 16:44 |
|
eph3meral
| but I have multiple people working with me on the same topic branch, and if one of them wants to rebase, we don't want them to have to re-make the same decisions that I made | 16:44 |
|
shruggar
| nbigaouette: it answers the question. It says: "Problem with tracking a file in git? Then don't track that file in git" | 16:44 |
|
thiago
| rebased commits are your own | 16:45 |
|
| you don't share those commits, which means that other people won't rebase them | 16:45 |
|
| accordingly, the rerere cache is your own too | 16:45 |
| ← daaku left | 16:45 |
| ← overbythere left | 16:46 |
| → mintux joined | 16:46 |
|
mintux
| when I want push my repo to the server on internet the speed is too low. i use ssh to connect to remote | 16:46 |
|
| it's to slow | 16:47 |
| ← notola left | 16:47 |
| ← ipalaus_ left | 16:47 |
| → brentdanley_ joined | 16:47 |
|
bremner
| sitaram: ah, memory corruption on my part, not too surprising. | 16:47 |
|
SethRobertson
| mintux: So...get a faster network connection? Ship git-bundles via fedex? | 16:48 |
|
nbigaouette
| shruggar: Putting the "not using git" solution aside, I think the issue here is with the symbolic link. I remember having read some things about it but maybe I can get a clearer picture here. I understand git can have issue with tracking a symbolic link versus the content of the file, but what about links to folders? | 16:48 |
| → Araxia_ joined | 16:48 |
| → ipalaus_ joined | 16:48 |
|
SethRobertson
| nbigaouette: Git can use symlinks with whatever destination just fine. Not all OSen can use symlinks of course | 16:49 |
|
nbigaouette
| What's the reason for not following the link and keeping track of the folder pointed to? | 16:49 |
|
mintux
| SethRobertson: i only this connection here. my ftp upload speed is 60 KB/s but in git is 5 | 16:49 |
|
SethRobertson
| nbigaouette: Git tracks the symlink. If you want to track the destination you need to track that in the same or different repo. Note that git does not track directories, only files in directories | 16:49 |
| ← cakehero left | 16:49 |
|
mintux
| but here I have this connection | 16:49 |
| ← judaz left | 16:50 |
|
nbigaouette
| With symbolic links, I mean "track that folder, then change the folder with a symolic link to another." I though git should have tracked the files in the linked folder just fine. | 16:50 |
|
SethRobertson
| mintux: If you have a linux system as your ssh destination/git server, try `dd if=/dev/zero bs=8k count=8k | ssh destination time dd of=/dev/null` and see how fast that is. | 16:50 |
|
nbigaouette
| But then some operations (like checkout -- folder/file) will delete the link and put back the folder... | 16:50 |
|
mintux
| SethRobertson: run it on my local repo or server remote ? | 16:51 |
|
SethRobertson
| nbigaouette: Exactly so. Perhaps you should try using --bind mounts. | 16:51 |
| ← revagomes_ left | 16:51 |
| → revagomes_ joined | 16:52 |
|
tango_
| stupid google, if I search for 'gitolite wildcard repositories' I want the sitaramc page, not everything else BUT | 16:52 |
|
SethRobertson
| mintux: Run that command locally. It measures the speed of ssh to the remote server, in case ssh is being traffic-shaped or something | 16:52 |
| → slide joined | 16:52 |
|
tango_
| sheesh | 16:52 |
|
nbigaouette
| SethRobertson: bind mounts are a good idea. They require root though or setting sudoers... | 16:52 |
| ← revagomes_ left | 16:52 |
| → revagomes_ joined | 16:53 |
| ← tewecske left | 16:53 |
| ← revagomes_ left | 16:53 |
|
nbigaouette
| Again, if git tracks files and not folders, why is it deleting the symbolic link to replace it with a folder? Shouldn't it be able to just traverse the link and work with the file in the pointed-to folder? | 16:53 |
| → revagomes joined | 16:53 |
|
SethRobertson
| If you are treating the symbolic link like a directory, git is treating it like a directory and feels free to replace the link with a directory. Trying to fool git never ends well | 16:54 |
|
mintux
| SethRobertson: I run this : dd if=/dev/zero bs=8k count=8k | ssh 85.17.235.94 -p 2233 time dd of=/dev/null the cursor is blinking | 16:54 |
| → tewecske joined | 16:55 |
| ← tewecske left | 16:55 |
| ← slide23 left | 16:55 |
| → pastime joined | 16:56 |
|
mintux
| SethRobertson: what should I see in output ? | 16:56 |
|
| SethRobertson: it doesn't finish | 16:56 |
| → JEntrep joined | 16:56 |
|
nbigaouette
| Is there a technical reason why git wouldn't be able to follow the links and work with the files there instead of going inside the folder? | 16:56 |
| → Sigma joined | 16:56 |
|
nbigaouette
| I'm just trying to understand how git "thinks" so I don't loose my data again | 16:56 |
| → slide23 joined | 16:57 |
|
SethRobertson
| Then lower "count=8k" to "count=1k" or something. You should get a duration and possibly a rate. If you don't get a rate you need to multiple 8k*1k (or whatever the count is) and then *8/(minutes*60+seconds) to get a bitrate | 16:57 |
| → Mowsh joined | 16:57 |
| ← dreiss left | 16:57 |
| ← cortana2 left | 16:58 |
| → apok joined | 16:58 |
|
SethRobertson
| nbigaouette: Git will track a symbolic link as an object to be tracked. Git will track a file as an object to be tracked. Git will track a subrepository as an weird object to be tracked. It also understands directories as path components. That is all | 16:58 |
| → whyking_ joined | 16:59 |
| → michaelmartinez joined | 16:59 |
| → orkz joined | 16:59 |
| ← slide left | 16:59 |
|
SethRobertson
| However, when someone clones the repo, they are going to get a directory, not a symbolic link to somewhere not necessarily present on their system. When you switch branches and the new working tree no longer has that object, what do you expect to happen? | 17:00 |
|
| There are many technical reasons why what you want to do would be confusing to any VCS | 17:00 |
| ← fission6 left | 17:00 |
| → tewecske joined | 17:01 |
|
nbigaouette
| Ok, I think I get it. I tell git to track path/file, but then is sees symlink/file. Because it treats links as files, it will not follow "symlink" to track "file", it will think "symlink" is a new file to track. Thus, using "git checkout -- symlink/file", it sees "symlink" in the way of "file" instead of following it and replace the link with a folder. | 17:01 |
|
SethRobertson
| Not exactly. But the take-away is, "don't do that" | 17:02 |
| → glcrazy joined | 17:03 |
|
nbigaouette
| Except that git does not work with that now, why? | 17:03 |
| ← JEntrep left | 17:03 |
| → theCole joined | 17:04 |
|
nbigaouette
| I mean, I still think that technically it should be possible. Tell git to track folder/file. Replace "folder" with "symlink", "file" is present in "symlink" too. Git should just follow symlink to get to file. | 17:04 |
| ← d3vic3 left | 17:05 |
|
nbigaouette
| I understand that adding "symlink/file" to the repo the first time would be confusing. But this is not what I'm doing. | 17:05 |
| → lindenle_ joined | 17:06 |
| gitinfo set mode: +v | 17:06 |
| → mishok13 joined | 17:06 |
| → d3vic3 joined | 17:06 |
|
SethRobertson
| It does. But it also feels free to remove the symlink because you didn't ask to track it. | 17:06 |
| → alvaro_o joined | 17:06 |
|
SethRobertson
| That is why I said "not exactly" | 17:06 |
| ← alvaro_o left | 17:07 |
| → slide joined | 17:07 |
| ← tewecske left | 17:08 |
| → leavittx joined | 17:08 |
| → chinopozo joined | 17:08 |
| ← lacrymology left | 17:09 |
| ← slide23 left | 17:09 |
|
mintux
| SethRobertson: I got some result so what should I do now? | 17:09 |
| ← tyatpi left | 17:09 |
|
SethRobertson
| pastebin them if you don't want to do what I said | 17:10 |
|
| Along with the command | 17:10 |
| ← lasers left | 17:11 |
| → dstorrs joined | 17:11 |
| → tewecske joined | 17:11 |
|
nbigaouette
| Hum ok thanks for the clarifications. | 17:11 |
| ← sdeboey left | 17:12 |
| ← shruggar left | 17:13 |
|
mintux
| SethRobertson http://codepad.org/eNHrpUXZ | 17:13 |
| ← ajpiano left | 17:15 |
| → ajpiano joined | 17:16 |
| ← chinopozo left | 17:17 |
| → daaku joined | 17:17 |
| → slide23 joined | 17:17 |
| → qt-x joined | 17:17 |
|
SethRobertson
| OK, 46kb/s. Now you need to test git. On the server, `git init --bare /tmp/testrepo` and on the client `git clone server:/tmp/testrepo` then `cd testrepo; dd if=/dev/urandom count=1k bs=8k of=randomfile; git add randomfile; git commit -m randomfile; time git push -v --progress` You might want to run the "time git push" command under `script` so that you can more easily upload the output, but whatever. | 17:17 |
|
mintux
| SethRobertson the ssh connection is too slow . is it possible git protocol instead of it ? | 17:18 |
| ← jargon- left | 17:18 |
|
SethRobertson
| mintux: You can do the same test except have the "server" and "client" be on the same system and use "localhost" as the "server" name in the git-clone command. It should be blazingly fast unless your disks are stupid. | 17:19 |
| ← slide left | 17:19 |
| ← dfr|mac left | 17:20 |
| → dfr|mac joined | 17:20 |
|
mintux
| SethRobertson:on local network is too fast but I though the ISP do something on ssh speed so if I can use another protocol such as http or git my problem be solved | 17:21 |
| ← glcrazy left | 17:21 |
| ← DarkAR left | 17:22 |
|
SethRobertson
| mintux: We observed that your ssh speed is 46 kb/s. I thought you said ftp got 50 kb/s. Do you expect a faster speed? | 17:22 |
|
nbigaouette
| For the posterity, my "output" folder is now created from the makefile using "order-only prerequisite". See "Types of Prerequisites" @ http://www.gnu.org/software/make/manual/make.html#Prerequisite-Types | 17:22 |
|
mintux
| SethRobertson: no 50 KB/s | 17:22 |
|
SethRobertson
| For the posterity, you said that in the wrong channel. | 17:22 |
|
mintux
| SethRobertson: and download is 150 or 200 KB/s | 17:22 |
| ← marcogmonteiro left | 17:23 |
|
SethRobertson
| mintux: Ah, well dd said 46 kB/s anyway. Or 370kb/s | 17:23 |
|
| In other words, the same speed | 17:24 |
| → mxweas_ joined | 17:24 |
| ← achadwick left | 17:24 |
| → dfr|mac_ joined | 17:25 |
| ← brngardner left | 17:25 |
| ← dfr|mac left | 17:26 |
| → dfr|mac__ joined | 17:26 |
| → Chillance joined | 17:26 |
| → dfr|mac joined | 17:26 |
| → TikaL joined | 17:26 |
| → arvind_khadri joined | 17:27 |
| ← JohnBat26 left | 17:27 |
| → whitman joined | 17:27 |
| ← mintux left | 17:27 |
| ← ipalaus_ left | 17:28 |
| → rzec joined | 17:29 |
| → slide joined | 17:29 |
| ← dfr|mac_ left | 17:29 |
| → krz joined | 17:29 |
| ← dfr|mac__ left | 17:30 |
| → ejb joined | 17:30 |
| ← slide23 left | 17:31 |
| ← ajpiano left | 17:31 |
| → frnkkpp joined | 17:32 |
| → ajpiano joined | 17:32 |
|
ejb
| Hi, can I have git repos within git repos? For example, if I have foo/* in a repo. But foo/bar/ be a different repo? | 17:32 |
| → glcrazy joined | 17:33 |
| ← pppaul left | 17:33 |
| → brngardner joined | 17:33 |
| ← leavittx left | 17:33 |
| → pppaul joined | 17:34 |
|
ejb
| Can I just put foo/bar/ in .gitignore and treat it as separate? | 17:34 |
| eagles0513875_ → eagles0513875 | 17:34 |
|
offby1
| ejb: that's called a "submodule" | 17:35 |
| ← pastime left | 17:35 |
|
FauxFaux
| It'll automatically add itself to the secret gitignore. | 17:35 |
|
m1sc
| ejb: !subrepos | 17:35 |
|
gitinfo
| ejb: [!subprojects] So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely seperate. Otherwise your best options are "!submodule" "!gitslave" and "!subtree" Try typing those commands into this IRC channel. | 17:35 |
| → pastime joined | 17:35 |
|
FauxFaux
| I thought. | 17:35 |
| → fission6 joined | 17:35 |
|
ejb
| great, thank you | 17:35 |
| → lacrymology joined | 17:37 |
| ← revagomes left | 17:37 |
| → revagomes joined | 17:37 |
| ← tatsuya_o left | 17:38 |
| ← Bartzy left | 17:39 |
| → rockets joined | 17:40 |
| → pfFredd joined | 17:40 |
| → knapper_tech joined | 17:40 |
| → dreiss joined | 17:40 |
| ← aleray left | 17:41 |
| gitinfo set mode: +v | 17:41 |
|
knapper_tech
| how can i get old files out of the COMMIT_EDITMSG without committing the change to the rest of the version control? | 17:41 |
| → btanaka joined | 17:44 |
| ← hagabaka left | 17:44 |
| ← erichynds left | 17:45 |
|
m1sc
| knapper_tech: why do you want to touch this file and what problem do you try to solve? | 17:45 |
| ← alexisabril left | 17:46 |
| ← master-lincoln left | 17:47 |
| → Russell^^ joined | 17:48 |
| → kadoban joined | 17:48 |
| → spaceonline joined | 17:48 |
| ← zackiv31 left | 17:49 |
| ← dr_leppe1 left | 17:49 |
| ← orkz left | 17:50 |
| → dr_lepper joined | 17:50 |
| ← dr_lepper left | 17:50 |
| → dr_lepper joined | 17:50 |
| ← tvw left | 17:51 |
| ← nbigaouette left | 17:51 |
| → ThePendulum1 joined | 17:51 |
| gitinfo set mode: +v | 17:51 |
|
ThePendulum1
| Greetings | 17:51 |
|
eph3meral
| is there a better way to share merge conflict recordings other than sharing .git/rr-cache folders? | 17:51 |
| ← txomon|home left | 17:51 |
| → daaku_ joined | 17:51 |
|
ThePendulum1
| I have been using git for quite a while now, but only personally. I now want to work with two people using Bitbucket. How do I allow him to push to Bitbucket? | 17:52 |
| → webflo joined | 17:52 |
| → pandeiro joined | 17:52 |
| ← cyphase left | 17:52 |
| ← daaku left | 17:53 |
| daaku_ → daaku | 17:53 |
| → cakehero joined | 17:53 |
| → txomon|home joined | 17:53 |
| ← txomon|home left | 17:53 |
| → txomon|home joined | 17:53 |
|
| charon checks if there is a #bitbucket | 17:53 |
| → leavittx joined | 17:54 |
|
eph3meral
| ThePendulum1, go to the admin tab of your repo (at the top) | 17:54 |
|
m1sc
| eph3meral: interesting question. afaik no (don't even use rerere), maybe you want to ask on the ML | 17:54 |
|
eph3meral
| ThePendulum1, then go to the "access management" menu item in the left menu | 17:54 |
| ← marhaban left | 17:54 |
| ← dstorrs left | 17:54 |
|
eph3meral
| ThePendulum1, then you can add users, there will be a search box and some buttons [read] [write] [admin] to give that level of access to said users | 17:54 |
| ← whyking_ left | 17:55 |
| → Advocation joined | 17:55 |
|
eph3meral
| ThePendulum1, if you want to give them write access, they must checkout the repo using SSH (not using HTTP) | 17:55 |
|
ThePendulum1
| eph3meral: Thanks a lot! I feel quite retarded for not figuring that out myself. | 17:55 |
|
eph3meral
| m1sc, yeah, rerere is awesome :) | 17:55 |
|
ThePendulum1
| eph3meral: What exactly is the difference between checkout and pull? | 17:55 |
| → the_cybersphinx joined | 17:56 |
| → aristidesfl1 joined | 17:56 |
| ← tewecske left | 17:56 |
| → erichynds joined | 17:56 |
| → whyking_ joined | 17:57 |
|
eph3meral
| ThePendulum1, sounds like you're probably coming from subversion, yes? | 17:57 |
| ← srcerer left | 17:57 |
| ← mischat left | 17:58 |
|
ThePendulum1
| eph3meral: I've used subversion for about a week a few years ago. I just haven't used git for more than pulling in the morning, committing during the day, and pushing in the evening, lol | 17:58 |
|
eph3meral
| ThePendulum1, you could probably benefit from essentially throwing away everything you used to know about subversion, and reading this http://progit.org/book/ | 17:58 |
| ← alex__c2022 left | 17:58 |
|
cbreak
| checkout is for branch switching, pull is for fetching+merging in one command | 17:58 |
|
eph3meral
| ThePendulum1, ok, well checkout is how you change branches | 17:58 |
| ← Nightfire034 left | 17:58 |
| → kenperkins joined | 17:58 |
| ← jfelchner left | 17:58 |
| ← cybersphinx left | 17:58 |
|
eph3meral
| ThePendulum1, pull is for retrieving other people's changes from a remote repo | 17:58 |
| → mischat joined | 17:59 |
|
eph3meral
| ThePendulum1, actually retrieving and merging said changes, because as cbreak just mentioned, pull is actually an alias for: git fetch; git merge; | 17:59 |
| ← aristidesfl left | 17:59 |
|
eph3meral
| ThePendulum1, honestly, you should really read http://progit.org/book/ ... I've been using git for a few years now, but hadn't ever read that book, and I wish I had read that book much earlier | 17:59 |
| ← daaku left | 17:59 |
|
eph3meral
| ThePendulum1, it's actually pretty short, and you'll actually understand what you're doing :) | 18:00 |
| ← theCole left | 18:00 |
| → mischat_ joined | 18:00 |
|
ThePendulum1
| eph3meral: Thanks for the link, I've been looking for that book for a while :p | 18:00 |
| → daaku joined | 18:00 |
| → n1x joined | 18:01 |
|
eph3meral
| ThePendulum1, if you've been using git for a while, you can skip some of chapter one, i.e. the sections on installing and first time setup etc, but the history and basics sections are almost critical because git doesn't work like other repos, so understanding how git thinks about your files and changes will be very useful down the road | 18:01 |
|
| ThePendulum1, really, if you read chapters 1-3 (which you can certainly do in under an hour I think), you'll be good to go, read the other ones later at your leisure | 18:02 |
|
knapper_tech
| m1sc: Every time I commit the number of "deleted" files is gigantic (30k). These files don't exist anywhere in the repo, they just have some history information | 18:02 |
|
ThePendulum1
| eph3meral: I think 2, 3 and 5 are the most relevant now | 18:03 |
| ← mischat left | 18:03 |
| mischat_ → mischat | 18:03 |
|
m1sc
| knapper_tech: meaning "I don't what to have all the old file in each commit"? | 18:03 |
| ← netiru left | 18:04 |
| ← pandeiro left | 18:04 |
| ← eicto left | 18:04 |
| → eicto joined | 18:05 |
| ← btanaka left | 18:05 |
| → tewecske joined | 18:06 |
|
m1sc
| ..want..files.. | 18:06 |
|
FauxFaux
| s/files/penis/ | 18:06 |
| ← tewecske left | 18:06 |
| ← ISF left | 18:07 |
|
ThePendulum1
| Hmm... so if I continue working on a project that is hosted on Bitbucket, and someone may have made changes, what should be the first thing I do? | 18:07 |
| ← glcrazy left | 18:07 |
|
| RichiH looks at FauxFaux | 18:07 |
| ← cenuij left | 18:07 |
|
ThePendulum1
| Checkout? Pull? | 18:07 |
|
eph3meral
| ThePendulum1, you won't be able to push until you pull | 18:07 |
| → glcrazy joined | 18:07 |
|
eph3meral
| ThePendulum1, so, you won't really have to worry about that | 18:07 |
| → cenuij joined | 18:07 |
| → dstorrs joined | 18:07 |
|
eph3meral
| ThePendulum1, stop thinking in terms of subversion, checkout is a subversion thing | 18:07 |
|
RichiH
| ThePendulum1: pull | 18:08 |
| ← cenuij left | 18:08 |
| → cenuij joined | 18:08 |
|
eph3meral
| ThePendulum1, git checkout is very different from subversion checkout | 18:08 |
|
RichiH
| that will fetch & merge (if possible) | 18:08 |
|
| then, you resolve conflicts, if any | 18:08 |
|
| commit the resolution | 18:08 |
|
ThePendulum1
| eph3meral: I don't even know why I started about checkout, I've never used it and I just thought I should do so | 18:08 |
|
RichiH
| hack hack hack | 18:08 |
| → cyphase joined | 18:08 |
|
RichiH
| and push | 18:08 |
|
ThePendulum1
| So I shouldn't be using checkout? | 18:08 |
| → infogulch_ joined | 18:08 |
|
RichiH
| no | 18:08 |
|
ThePendulum1
| Okay | 18:08 |
| → tewecske joined | 18:09 |
|
RichiH
| well, yes | 18:09 |
|
ThePendulum1
| oh | 18:09 |
| ← tewecske left | 18:09 |
|
RichiH
| argh | 18:09 |
|
| let's say "correct" | 18:09 |
|
eph3meral
| ThePendulum1, until you know what it is | 18:09 |
|
| ThePendulum1, no, you don't need checkout | 18:09 |
|
RichiH
| "So I shouldn't be using checkout?" -> "that is correct" | 18:09 |
|
eph3meral
| ThePendulum1, you only need commit, push and pull... now please, just read chapters 2 and 3 of progit.org | 18:09 |
|
| RichiH hates negated questions | 18:09 |
| → pandeiro joined | 18:09 |
|
ThePendulum1
| If I am working on a project with a friend of mine, all we do is pull from bitbucket when we start working, commit every now and then, and push it to bitbucket as soon as it is worthy | 18:09 |
|
RichiH
| eph3meral: arguably, add will come in handy, as well | 18:10 |
| → estevocastro joined | 18:10 |
|
eph3meral
| RichiH, hence why he should read progit.org before asking further questions | 18:10 |
| ← bartek left | 18:10 |
|
ThePendulum1
| That's what I was about to do anyway, I don't think I'm missing any information | 18:10 |
|
RichiH
| eph3meral: there's that | 18:10 |
|
eph3meral
| ThePendulum1, we are a manual supplement, not a manual replacement :) | 18:10 |
|
ThePendulum1
| I just got confused because I thought someone told me I should use checkout, lol | 18:10 |
|
RichiH
| ThePendulum1: the short version is that git is hard to grasp at first and you just have to dive in headfirst | 18:10 |
|
eph3meral
| yeah so stop it, and just read the book, kthx bye | 18:10 |
|
ThePendulum1
| I don't get what's going on now. I was already doing what I should be doing, so what's the point of reading the book once again? | 18:11 |
| → ISF joined | 18:11 |
| ← freeed left | 18:11 |
|
RichiH
| the longer version is that you need to at least skim the book, think about it, and then skim it again, slower this time | 18:11 |
|
ThePendulum1
| I have read it multiple times | 18:11 |
|
RichiH
| ah | 18:11 |
| → bemson joined | 18:11 |
| → bartek joined | 18:12 |
| ← FreeArtMan left | 18:12 |
|
ThePendulum1
| That's why I came here with a question about checkout, because I couldn't recall how it was relevant to what I was willing to do. Turns out I don't need to use if after all, so I'm back to where I was. | 18:12 |
| ← fmilo left | 18:12 |
| → tktiddle joined | 18:13 |
|
tktiddle
| How can i give a user permissions to push to a repo? | 18:14 |
|
_ikke_
| tktiddle: !context | 18:14 |
|
gitinfo
| tktiddle: Without giving us more context, it's impossible to tell what's going on. Please provide details about what your situation is. (!repro) | 18:14 |
|
tktiddle
| I have a git repo and i want to add another user to it, so that can push to the repo, currently there is a perission denied error when they try to push | 18:15 |
| → adhawkins joined | 18:15 |
|
_ikke_
| tktiddle: git itself doesn't handle authorization | 18:16 |
|
| tktiddle: How do they access the repo? | 18:16 |
|
tktiddle
| i think its a gitolite server, i.e over ssh | 18:16 |
|
_ikke_
| tktiddle: Ah | 18:16 |
| → wicchan joined | 18:16 |
|
_ikke_
| tktiddle: Do you have admin access? | 18:16 |
|
tktiddle
| sorry didnt explain | 18:16 |
| → Bass10 joined | 18:17 |
| → rosascarlatta joined | 18:17 |
|
tktiddle
| yeah i can sudo on the server | 18:17 |
| → sq-one joined | 18:17 |
|
_ikke_
| Do you have the gitolite-admin repository? | 18:17 |
| ← rosascarlatta left | 18:17 |
| ← Vert left | 18:18 |
| ← JEEB left | 18:18 |
|
tktiddle
| hmm, looks like not | 18:19 |
| ← mxweas_ left | 18:19 |
| → JEEB joined | 18:19 |
| → aristidesfl joined | 18:20 |
| → fmilo joined | 18:20 |
|
tktiddle
| Ive got some packages galled gitk and gitweb installed | 18:20 |
| → mdhopkins joined | 18:20 |
|
tktiddle
| dosn't look like a gitolite atall | 18:20 |
| ← mischat left | 18:20 |
|
_ikke_
| tktiddle: Who set up gitolite? | 18:20 |
| ← Danielpk left | 18:21 |
| ← aristidesfl1 left | 18:21 |
| ← rurufufuss left | 18:21 |
| → marcogmonteiro joined | 18:21 |
| ← glcrazy left | 18:21 |
|
tktiddle
| commander | 18:21 |
|
| on holiday | 18:21 |
|
_ikke_
| http://sitaramc.github.com/gitolite/adminpush.html | 18:21 |
|
ThePendulum1
| Thanks for your support, cheers! | 18:21 |
| → glcrazy joined | 18:21 |
| ← ThePendulum1 left | 18:21 |
|
_ikke_
| tktiddle: gitolite is administered through the gitolite-admin repo | 18:21 |
| ← osX64 left | 18:22 |
|
tktiddle
| its not here, what other type of git server could it be? | 18:22 |
| → Vert joined | 18:23 |
| ← jefferai left | 18:23 |
|
_ikke_
| tktiddle: git doesn't require a server | 18:23 |
| → glennpratt joined | 18:23 |
|
_ikke_
| tktiddle: repositories are normally just accessed through ssh | 18:23 |
| ← cbreak left | 18:23 |
|
tktiddle
| cool | 18:23 |
| → cbreak joined | 18:24 |
|
tktiddle
| wish i could work it though | 18:24 |
|
_ikke_
| tktiddle: Although I can recommend using gitolite | 18:24 |
| ← whyking_ left | 18:24 |
| → mastro joined | 18:25 |
|
_ikke_
| tktiddle: But gitolite doesn't have to be installed through the package manager | 18:25 |
| → jefferai joined | 18:25 |
| → pantsman joined | 18:26 |
| ← pantsman left | 18:26 |
| → pantsman joined | 18:26 |
| → zackiv31 joined | 18:27 |
| → Ky0sh1r0 joined | 18:28 |
| → hagabaka joined | 18:29 |
| ← hagabaka left | 18:29 |
| → hagabaka joined | 18:29 |
|
adhawkins
| I'm sure this is an FAQ, but a quick google isn't giving much help. | 18:30 |
|
| What's the closest equivalent to $Id$ in git? | 18:30 |
|
_ikke_
| man gitattributes | 18:30 |
|
gitinfo
| the gitattributes manpage is available at http://jk.gs/gitattributes.html | 18:30 |
|
adhawkins
| I'm interested in the committer and commit date in particular | 18:30 |
|
| What does ident provide? | 18:30 |
|
_ikke_
| adhawkins: But what do you want to achieve? | 18:31 |
|
adhawkins
| To show when a file was last changed, and who did it | 18:31 |
|
| In the file itself | 18:31 |
|
| It's more a convention thing to be honest! | 18:31 |
| ← maestrojed left | 18:32 |
| ← jefferai left | 18:32 |
|
_ikke_
| Do you really need that information in the file? | 18:33 |
|
| with gith it's extremely easy to find out | 18:33 |
|
adhawkins
| I'm thinking more for people who just download the 'release' tarball. | 18:33 |
| ← raatiniemi left | 18:33 |
| → whyking_ joined | 18:34 |
|
_ikke_
| Well, see that gitattributes page | 18:34 |
| → jefferai joined | 18:34 |
|
adhawkins
| But all ident does it put the hash in isn't it? | 18:35 |
| ← Davey left | 18:35 |
|
adhawkins
| That's the bit I'm least interested in :) | 18:35 |
|
_ikke_
| Hmm | 18:35 |
|
| I guess you'd have to create such a filter yourself then | 18:36 |
| → tqmz joined | 18:37 |
| → tatsuya_o joined | 18:37 |
| ← tatsuya_o left | 18:37 |
| → Ontolog joined | 18:37 |
| → tatsuya_o joined | 18:37 |
| → marhaban joined | 18:37 |
|
flavius
| is it possible to view all files under revision control, preferably as a tree? (as in "the tree command") | 18:38 |
|
Ontolog
| During a rebase sometimes i get mysterious conflicts for files that I'm only working on in the branch that is being rebased. How can I tell git to just accept the code in the branch that is being rebased for certain files? | 18:39 |
| → mxweas_ joined | 18:39 |
|
adhawkins
| _ikke_ Ok, thanks | 18:39 |
| ← TikaL left | 18:39 |
|
_ikke_
| flavius: git ls-tree -r HEAD | 18:39 |
|
flavius
| _ikke_: thanks | 18:41 |
| → ColKurtz joined | 18:41 |
|
Ontolog
| For example, I have a branch 'foo' off of 'develop'. I run `git rebase develop` while foo is the current branch. I get a conflict for a while that I'm only working on in `foo`. How do I tell git to accept foo's version of the file? | 18:42 |
|
| (Without manually editing the merge markers) | 18:42 |
| ← storrgie left | 18:43 |
| → master-lincoln joined | 18:43 |
| ← koo3 left | 18:43 |
| → sdeboey joined | 18:44 |
| → ThePendulum1 joined | 18:44 |
| → koo3 joined | 18:45 |
| gitinfo set mode: +v | 18:46 |
|
ThePendulum1
| What if someone committed a change and pushed it to Bitbucket the rest of the team can't agree on, can I just work from the previous version and still push it to Bb? | 18:46 |
|
surfdue
| Quick question I just merged the dev branch into master and now on my master testing if I try to pull I have many conflicts. What command can I run to retreieve the latest content and force merge using the remote repo (theirs) ignoring mine completely, but still ignoring all the files/folders in the gitignore. | 18:46 |
|
ThePendulum1
| 'the rest of the team can't agree on' should be after 'a change' | 18:46 |
| ← jrots left | 18:46 |
|
FauxFaux
| You can work from wherever you want and fix it later, sure. You can't push over their change without !rewriting , though. | 18:46 |
|
gitinfo
| [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config) | 18:46 |
| ← spaceonline left | 18:46 |
| ← brentdanley_ left | 18:46 |
| → fisted joined | 18:47 |
|
_ikke_
| ThePendulum1: You might better work via pull requests | 18:47 |
|
| in the future | 18:47 |
|
ThePendulum1
| _ikke_: That's my issue exactly. If I pull from Bitbucket, I will have his ... well, 'ruined' version? | 18:47 |
|
_ikke_
| ThePendulum1: Does everybody commit to master? | 18:48 |
|
ThePendulum1
| Yeah | 18:48 |
|
| Well, not yet, though | 18:48 |
|
_ikke_
| ThePendulum1: I could recommend githubs workflow | 18:48 |
|
ThePendulum1
| I am just trying to solve some issues before they occur | 18:48 |
| ← Araxia_ left | 18:48 |
|
_ikke_
| ThePendulum1: Everybody works on topic branches | 18:48 |
|
| and makes pull requests to get them merged into master | 18:49 |
|
| Only if someone else approves, it get's merged into master | 18:49 |
| → linguini joined | 18:49 |
| ← glcrazy left | 18:49 |
| → glcrazy joined | 18:49 |
| → Danielpk joined | 18:49 |
| ← Advocation left | 18:49 |
| → brentdanley_ joined | 18:50 |
| → Advocation joined | 18:50 |
|
ThePendulum1
| _ikke_: So the other guy should just work on another branch, and I will merge it as soon as I like it? | 18:50 |
| ← Gentlecat left | 18:50 |
|
_ikke_
| ThePendulum1: Yes | 18:50 |
| ← superdmp left | 18:50 |
|
ThePendulum1
| _ikke_: How exactly am I supposed to do the latter? Pull from the topic branch, and then push it to the master one? | 18:50 |
|
surfdue
| FauxFaux: what do you think is the best way, I didnt intend to do what i did last night what i was trying to do is merge the two branches (same except the changes/adds/deletes), i was hoping to keep the log on master so basically i imagined it saying master - | 18:50 |
| → aleray joined | 18:50 |
|
surfdue
| commit "Pull dev into master" with all the changes | 18:51 |
| → gchristensen joined | 18:51 |
| ← Ontolog left | 18:51 |
|
FauxFaux
| surfdue: Not you. | 18:51 |
|
surfdue
| FauxFaux: and advice on how to properly merge the two branches? | 18:51 |
|
_ikke_
| ThePendulum1: Bitbucker supports pull requests | 18:51 |
| → osX64 joined | 18:51 |
| ← brngardner left | 18:52 |
|
ThePendulum1
| _ikke_: So the other developer shoots a pull request, and I approve, correct? | 18:52 |
|
_ikke_
| ThePendulum1: Yes | 18:52 |
|
ThePendulum1
| How do I prevent the other developer from pushing to the master branch? | 18:53 |
|
knapper_tech
| m1sc: yes. as it is, the list of modified files is useless | 18:53 |
|
surfdue
| ThePendulum1: you can't but dont create a hook. | 18:53 |
|
knapper_tech
| m1sc: this is bad becuase i usually read through it to remember changes | 18:53 |
|
surfdue
| you can reverse the commits and discipline them | 18:53 |
|
| ThePendulum1: or if your using gitolite you can give access to certain branches | 18:53 |
| ← n1x left | 18:53 |
| ← adhawkins left | 18:54 |
| → drizzd joined | 18:54 |
|
ThePendulum1
| surfdue: So I just tell the guy not to push to the master, and if he does, I can revert it? | 18:54 |
| ← tktiddle left | 18:54 |
|
_ikke_
| ThePendulum1: yes | 18:54 |
|
ThePendulum1
| Alright, thanks for the information :) | 18:55 |
| ← francisfish left | 18:55 |
|
surfdue
| and beat his ass | 18:56 |
|
ThePendulum1
| So the other developer just cloned my project. What does he have to do to start working on his own branch now? He has already made some changes now, but he hasn't staged or committed anything yet | 18:56 |
| ← subh left | 18:57 |
| → umc joined | 18:57 |
|
surfdue
| So the question really is how do I properly merge the current changes in the dev branch into the master branch and then update the master git repository with the least amount of downtime. | 18:57 |
|
_ikke_
| ThePendulum1: git checkout -b new_branch | 18:57 |
|
| ThePendulum1: where new_branch is the name of his branch | 18:57 |
|
ThePendulum1
| Okay, so that's where checkout comes in! | 18:57 |
|
| I figured new_branch, but what exactly is -b? | 18:57 |
|
_ikke_
| ThePendulum1: checkout is quite versatile | 18:57 |
|
| ThePendulum1: -b creates a new branch in stead of trying to check out an existing one | 18:58 |
|
ThePendulum1
| Ah, okay, makes sense | 18:58 |
| ← aristidesfl left | 18:58 |
| → aristidesfl joined | 18:58 |
|
_ikke_
| ThePendulum1: normally you make a branch with git branch <new_branch> | 18:58 |
|
ThePendulum1
| Does he have to do this before staging and comitting? | 18:58 |
|
_ikke_
| ThePendulum1: Before committing, yes | 18:58 |
|
ThePendulum1
| _ikke_: Okay, I'll remember that. | 18:58 |
|
_ikke_
| ThePendulum1: Not before staging | 18:59 |
| ← williamcotton left | 18:59 |
|
ThePendulum1
| Okay, thanks :) | 18:59 |
|
_ikke_
| ThePendulum1: but git checkout -b is a convenient shortcut | 18:59 |
|
ThePendulum1
| So he actually should've created a new branch before cloning the project? Or how was he supposed to get the files from bitbucket initially? | 18:59 |
|
_ikke_
| ThePendulum1: No | 18:59 |
|
odin_
| is there an easy way to check what a .gitignore/.gitattributes file-spec matches in my working tree ? | 19:00 |
| ← rzec left | 19:00 |
| ← thiago left | 19:00 |
|
ThePendulum1
| _ikke_: Okay | 19:00 |
| → mister_m joined | 19:00 |
|
_ikke_
| ThePendulum1: He clones the project, creates a new branch, and makes his changes, commits, and then pushes | 19:00 |
|
| and then he makes a pull request | 19:00 |
|
ThePendulum1
| _ikke_: Okay. Why should he make a pull-request after pushing? | 19:01 |
| → nightlycoder joined | 19:01 |
|
ThePendulum1
| _ikke_: So as soon as he has created a branch using checkout, how does he properly push it to bitbucket? | 19:01 |
| → thierryp joined | 19:01 |
|
_ikke_
| ThePendulum1: That way he communicates to you that his changes are finished and wants them merged in | 19:01 |
|
| ThePendulum1: just git push origin branch_name | 19:02 |
|
ThePendulum1
| _ikke_: Oh, indeed, I am sorry I read just pulling it, rather than making a pull-request. My bad, hehe! | 19:02 |
| → thiago joined | 19:02 |
|
ThePendulum1
| _ikke_: It's pretty easy I see, thanks a lot for explaining! | 19:02 |
| ← martinjlowm-lptp left | 19:03 |
| → PElshoff joined | 19:04 |
| → krzkrzkrz joined | 19:06 |
| ← macmartine left | 19:06 |
| → Araxia_ joined | 19:07 |
| ← krz left | 19:08 |
| krzkrzkrz → krz | 19:08 |
| → brngardner joined | 19:08 |
| → snearch joined | 19:09 |
| ← ThePendulum1 left | 19:10 |
| ← txomon left | 19:11 |
| ← txomon|home left | 19:11 |
| ← stuntmachine left | 19:12 |
| → axl___ joined | 19:13 |
| ← mdhopkins left | 19:13 |
| → txomon|home joined | 19:13 |
| ← txomon|home left | 19:13 |
| → txomon|home joined | 19:13 |
| ← txomon|home left | 19:14 |
| ← LucasTizma left | 19:15 |
| ← axl_ left | 19:16 |
| axl___ → axl_ | 19:16 |
| → subh joined | 19:16 |
| ← n3m left | 19:17 |
| → n3m joined | 19:17 |
| → francisfish joined | 19:18 |
| → project2501b joined | 19:19 |
| ← koo3 left | 19:20 |
| ← estevocastro left | 19:21 |
| → es joined | 19:22 |
| → SABH9VM joined | 19:22 |
| → estevocastro joined | 19:23 |
| ← francisfish left | 19:23 |
| → Laibsch joined | 19:24 |
| → williamcotton joined | 19:24 |
| → ceej_ joined | 19:25 |
|
Laibsch
| I have more than one remote branch locally. When I push tags to one of the remote branches, the remote repo is polluted from tags from the other remote repos. Is there a way to avoid this? | 19:25 |
| ← ceej_ left | 19:26 |
|
offby1
| Laibsch: I suspect that you can be more specific. E.g., "git push remote tagname" should push just that one tag | 19:26 |
| ← es left | 19:27 |
|
Laibsch
| offby1: I'll try that. Any way to generally exclude certain tags? | 19:27 |
| ← _Vi left | 19:27 |
| ← EditThat left | 19:28 |
|
offby1
| can't think of one | 19:28 |
| → Edit_ joined | 19:28 |
| ← ceej left | 19:28 |
| → lo0m joined | 19:29 |
| → shruggar joined | 19:29 |
| → _Vi joined | 19:29 |
|
canton7
| one way we will have namespaced tags, and things will be nicer... | 19:30 |
| ← daaku left | 19:30 |
|
Laibsch
| OK, thanks. It doesn't quite seem right for git to push tags that point to a commit that is not available in that particular repo. | 19:30 |
| ← qt-x left | 19:30 |
|
Laibsch
| git does have the information to do the right thing on its own. | 19:30 |
| → martinjlowm-lptp joined | 19:31 |
| → kerrick joined | 19:33 |
| ← brngardner left | 19:33 |
| ← bartek left | 19:33 |
| → bartek joined | 19:33 |
| ← mcluskyd_ left | 19:34 |
| ← Araxia_ left | 19:35 |
| → Araxia_ joined | 19:36 |
| ← psakrii left | 19:36 |
| ← bemson left | 19:37 |
| ← lonewulf` left | 19:37 |
| → ceej joined | 19:38 |
| ← vdv left | 19:39 |
| → vdv joined | 19:39 |
| ← subh left | 19:39 |
| → lonewulf` joined | 19:40 |
| ← Ky0sh1r0 left | 19:43 |
| ← kpreid left | 19:44 |
| → krzkrzkrz joined | 19:44 |
| ← _Vi left | 19:44 |
| ← krz left | 19:46 |
| krzkrzkrz → krz | 19:46 |
| ← glcrazy left | 19:46 |
| → ThePendulum1 joined | 19:46 |
| → TikaL joined | 19:46 |
| → |apriori| joined | 19:46 |
|
|apriori|
| hey guys | 19:47 |
|
| does anyone know why two clients interoping with svn via git svn dont have the same SHA1 for e.g. HEAD? | 19:47 |
| → xsbeats joined | 19:47 |
|
_ikke_
| |apriori|: Because each commit gets rewritten with the svn id in it | 19:48 |
| ← toothr left | 19:48 |
|
|apriori|
| _ikke_: and the svn id is? not the revision? | 19:48 |
|
| or how should that differ across clients? | 19:48 |
| → aristidesfl1 joined | 19:48 |
|
_ikke_
| |apriori|: It's a string written in the commit message | 19:49 |
|
| |apriori|: git-svn-id: ... | 19:49 |
|
|apriori|
| _ikke_: yes, but that doesnt really answer my question.. | 19:49 |
| ← martinjlowm-lptp left | 19:49 |
| ← falena left | 19:49 |
|
|apriori|
| that ID is the same everywhere.. | 19:49 |
|
| its pointing to the exact same repository | 19:50 |
|
| and it includes a SHA1sum + repo url + repo rev | 19:50 |
|
_ikke_
| Yes, but the commit date changes because the commit is rewritten | 19:50 |
|
|apriori|
| ah | 19:50 |
|
| so two clients wanting to match the results of git svn rebase.. would actually have to do it at the exact same time :/ | 19:50 |
| ← aristidesfl left | 19:50 |
|
canton7
| it's generally a bad idea to have a git repo, which uses git-svn, talk to any other git repos | 19:51 |
| → whitey`` joined | 19:51 |
|
canton7
| since things end up getting rewritten so often | 19:51 |
| ← mastro left | 19:51 |
|
|apriori|
| canton7: yes, because of the "issue" I mentioned | 19:52 |
|
_ikke_
| |apriori|: because of the way SVN works | 19:52 |
|
|apriori|
| canton7: would also explain why pulling from such a repo would result in a full pull of all objects | 19:52 |
|
canton7
| |apriori|, and other. Such as git having to rebase everything all the time to play by svn's rules | 19:52 |
|
| *others | 19:52 |
|
_ikke_
| |apriori|: SVN only knows lineair history, so everything would have to be rebased to create that | 19:53 |
| ← Dulak left | 19:53 |
| ← w0ng left | 19:53 |
|
|apriori|
| I know why I hate svn :P | 19:53 |
|
canton7
| and every time you dcommit a commit, that commit has to get rewritten... | 19:53 |
| → Dulak joined | 19:53 |
| → w0ng joined | 19:54 |
| → macabre^ joined | 19:54 |
| ← sdeboey left | 19:55 |
| → mastro joined | 19:56 |
| → kpreid joined | 19:57 |
| → toothr joined | 19:58 |
| ← macabre left | 19:58 |
| ← Dulak left | 19:59 |
| → brngardner joined | 20:00 |
| → hashpuppy joined | 20:00 |
| ← w0ng left | 20:01 |
| ← whitey`` left | 20:01 |
| ← brngardner left | 20:01 |
| → Davey joined | 20:01 |
|
hashpuppy
| stupid question. let's say we develop on develop and merge to master. what happens when a user develops on master. doesn't merge the changes into develop. then another user develops on develop and merges those changes into master? we need to somehow catch this and manually merge master to develop? | 20:01 |
| ← skylamer` left | 20:02 |
|
hashpuppy
| or will we get a warning when trying to merge develop to master now? | 20:02 |
| ← umc left | 20:02 |
| ← marcogmonteiro left | 20:02 |
| → w0ng joined | 20:02 |
| → marcogmonteiro joined | 20:02 |
| gitinfo set mode: +v | 20:02 |
| → kaen joined | 20:02 |
|
ThePendulum1
| So another developer is working on a project, and he has his own branch. How do I pull from his branch so I can have a look? | 20:02 |
| ← kaen left | 20:03 |
| → kaen joined | 20:03 |
| ← thierryp left | 20:03 |
| ← vdv left | 20:05 |
| ← pppaul left | 20:05 |
|
_ikke_
| ThePendulum1: He could push his branch to the shared repo | 20:05 |
|
ThePendulum1
| That's what he did, but his branch is exactly the same for some reason | 20:05 |
|
lo0m
| hashpuppy: youll get a warning if theres a merge conflict.. | 20:05 |
|
ThePendulum1
| He did make changes, but they seem to have been disappeared | 20:05 |
|
hashpuppy
| ok, thanks :) | 20:06 |
| → tvw joined | 20:06 |
|
lo0m
| but youll have to merge master to develop nevertheless | 20:06 |
|
proq
| I'm trying to erase a commit that shouldn't have happened. when I do git reset --soft HEAD~1 and then git revert HEAD, I get the error: "fatal: Your local changes would be overwritten by revert. Please, commit your changes or stash them to proceed." but git diff shows no changes. how do I finish reverting the commit? | 20:06 |
| → pppaul joined | 20:06 |
|
|apriori|
| proq: e.g. by stashing | 20:06 |
|
toothr
| ThePendulum1, did he commit his changes? | 20:07 |
| → jrots joined | 20:07 |
|
ThePendulum1
| I told him to do so, I guess he missed something | 20:07 |
|
proq
| |apriori|: aha, thanks. | 20:08 |
| ← jrots left | 20:08 |
| → Kobaz joined | 20:08 |
|
_ikke_
| proq: Why do you do it that way? | 20:08 |
| ← webflo left | 20:08 |
|
hashpuppy
| i guess my question is, if you have a master and development, how do you guys keep an eye on development to make sure it doesn't get out of sync w/ master (for example, when someone commits directly to master)? | 20:08 |
|
|apriori|
| proq: its quite simple.. use git stash before trying the deletion, and git stash pop to get your stashed changes back after you're done | 20:08 |
|
Kobaz
| how would i list all the commit numbers in between two commits | 20:08 |
|
| like, what's the log history between master and origin/master | 20:08 |
|
proq
| _ikke_: that was the first hit on google when I was looking for instructions (http://nakkaya.com/2009/09/24/git-delete-last-commit/) | 20:09 |
|
|apriori|
| hashpuppy: e.g. by enforcing fast-forward only | 20:09 |
|
_ikke_
| proq: Have you shared them? | 20:09 |
|
proq
| _ikke_: what do you mean? | 20:09 |
|
lo0m
| when someone commits directly to master we chop his hands off :-) | 20:09 |
|
_ikke_
| proq: Those are two alternatives | 20:09 |
|
| git reset and git revert | 20:09 |
| → sdeboey joined | 20:09 |
|
proq
| _ikke_: oh, I see | 20:09 |
|
hashpuppy
| ok, this just happened to me. i cloned the repository and it defaults to master. i didn't think about it and wound up committing there | 20:10 |
|
_ikke_
| Have you pushed that commit? | 20:10 |
| ← pastime left | 20:10 |
| → alberto56 joined | 20:10 |
|
hashpuppy
| me? yeah. not really worried about it cause we have a small team | 20:10 |
|
_ikke_
| no proq | 20:10 |
| ← mauror left | 20:10 |
|
proq
| _ikke_: no. I'm only experimenting with pulling commits atm | 20:10 |
| → jrots joined | 20:10 |
| → khmarbaise joined | 20:10 |
| ← __class__ left | 20:11 |
| → m15k joined | 20:11 |
|
_ikke_
| proq: git reset --hard (will remove any uncommited changes) | 20:11 |
|
proq
| where by pulling I mean erasing :) | 20:11 |
|
|apriori|
| btw. , is there any sane way one could setup a git interop server for a svn repository? | 20:12 |
|
| or would that make things even much worse? | 20:12 |
| → __class__ joined | 20:12 |
|
_ikke_
| |apriori|: You just cooperate through svn | 20:12 |
|
m15k
| I try to create a signed tag, but I got a gpg: signing failed: secret key not available | 20:12 |
| ← marthinal left | 20:12 |
|
proq
| _ikke_: thanks, I didn't know such a useful feature existed | 20:12 |
| → LucasTizma joined | 20:12 |
|
proq
| and potentially dangerous! hehe | 20:13 |
|
_ikke_
| yes | 20:13 |
| → j416 joined | 20:13 |
| → pastime joined | 20:13 |
|
_ikke_
| proq: normally you would do git reset --hard HEAD~1 | 20:13 |
| → mischat joined | 20:13 |
| ← pppaul left | 20:13 |
| ← fahi left | 20:13 |
| → fahi joined | 20:14 |
| → pppaul joined | 20:14 |
| ← mischat left | 20:14 |
| → mcluskydodallas joined | 20:14 |
|
|apriori|
| _ikke_: assume you got several devs working on a project who actually know git.. and would rather use that (e.g. use branches, push & pull from each other) and have e.g. autopush to svn from svn... | 20:15 |
| → lusers joined | 20:15 |
|
|apriori|
| _ikke_: is that any sane or would one just enter another hell with that? | 20:15 |
| → glcrazy joined | 20:16 |
|
|apriori|
| (and say its not an option to port the repo over to git).. | 20:16 |
|
ThePendulum1
| Is it possible to remove a remote branch, when the local branch no longer exists? | 20:17 |
|
|apriori|
| ThePendulum1: didnt try it.. but create a local remote tracking branch.. and delete that with the remote one | 20:18 |
| ← pppaul left | 20:18 |
| → pppaul joined | 20:19 |
| → jargon- joined | 20:19 |
| ← enmand left | 20:20 |
| ← j416 left | 20:20 |
|
_ikke_
| |apriori|: Any history that is not dcommitted to svn yet can just be used normally | 20:20 |
| ← lusers left | 20:20 |
| ← __class__ left | 20:20 |
| → __class__ joined | 20:21 |
| ← jsoa left | 20:21 |
| ← Davey left | 20:22 |
| → robinds joined | 20:22 |
| → btanaka joined | 20:22 |
| ← pastime left | 20:23 |
| → adhawkins joined | 20:23 |
| ← coyotebush left | 20:23 |
| ← Ryback_ left | 20:24 |
| ← arietis left | 20:24 |
| ← ThePendulum1 left | 20:24 |
| ← SkAzZ left | 20:24 |
| ← pppaul left | 20:24 |
| → EricInBNE joined | 20:24 |
| → j416 joined | 20:24 |
|
Laibsch
| Does Junio hang around here? | 20:24 |
| ← axl_ left | 20:24 |
|
_ikke_
| Laibsch: afaik, not | 20:24 |
|
Laibsch
| Ok, thanks | 20:25 |
| ← j416 left | 20:25 |
| → pppaul joined | 20:25 |
| → axl_ joined | 20:25 |
| → j416 joined | 20:25 |
| → ipalaus_ joined | 20:26 |
| → Davey joined | 20:26 |
| → pastime joined | 20:26 |
| ← TikaL left | 20:26 |
| → ThePendulum1 joined | 20:27 |
| ← ThePendulum1 left | 20:28 |
| ← ziggles left | 20:28 |
| ← sq-one left | 20:28 |
| → diegoviola joined | 20:28 |
| → Adys_ joined | 20:28 |
| ← juvenal left | 20:28 |
| → mdhopkins joined | 20:29 |
| ← lonewulf` left | 20:29 |
| ← Adys left | 20:29 |
| ← ericmuyser left | 20:29 |
| → Tasser joined | 20:30 |
| ← glcrazy left | 20:30 |
| ← pppaul left | 20:30 |
|
Tasser
| http://sprunge.us/OGhH ups? | 20:30 |
| → pppaul joined | 20:30 |
| ← whyking_ left | 20:31 |
| ← mdhopkins left | 20:31 |
|
Laibsch
| Can somebody please help me understand the case Junio gives in http://thread.gmane.org/gmane.comp.version-control.git/195360/focus=195361 ? | 20:31 |
| ← pastime left | 20:31 |
| → _class_ joined | 20:31 |
| → maestrojed joined | 20:31 |
|
Laibsch
| sounds like linear history to me and I can't come to the conclusion he gave | 20:31 |
| ← Soliton left | 20:32 |
| ← __class__ left | 20:32 |
|
Laibsch
| I think I understand better now, but to me it sounds like the information is there in git but just not in "git push" | 20:33 |
| → Soliton joined | 20:33 |
|
milki
| does git push --tags only push tags and not relevant objects as well? | 20:34 |
| → mastroWork joined | 20:34 |
| → marcogmonteiro_ joined | 20:34 |
|
Kobaz
| hmm | 20:34 |
|
| so is there a way to get the log entries between revs or is diffing the only way | 20:34 |
| _class_ → __class__ | 20:35 |
| → jfelchner joined | 20:35 |
|
milki
| should work, see refspec | 20:35 |
| ← EricInBNE left | 20:35 |
| → cagedwisdom joined | 20:35 |
| ← pppaul left | 20:35 |
|
charon
| Kobaz: man gitrevisions, specifying ranges | 20:36 |
|
gitinfo
| Kobaz: the gitrevisions manpage is available at http://jk.gs/gitrevisions.html | 20:36 |
|
Kobaz
| k | 20:36 |
| ← robinds left | 20:36 |
| → pppaul joined | 20:36 |
|
Vinnie_win
| after I issue git reset --hard HEAD^ how do I push the rollback to the remote? git push says "Everything up-to-date" | 20:36 |
|
Kobaz
| oh cool | 20:37 |
|
| nice | 20:37 |
| ← marcogmonteiro left | 20:38 |
| marcogmonteiro_ → marcogmonteiro | 20:38 |
| → coyotebush joined | 20:38 |
| → robbyoconnor joined | 20:39 |
| ← iamjarvo left | 20:40 |
| → QiBala joined | 20:40 |
| → aristidesfl joined | 20:42 |
|
milki
| Vinnie_win: if its not a tracked branch, you need to specify it manually | 20:42 |
| → dv310p3r joined | 20:42 |
| → _Vi joined | 20:45 |
| ← aristidesfl1 left | 20:45 |
| → amcsi joined | 20:46 |
| ← jrots left | 20:46 |
| ← Tianon left | 20:46 |
|
proq
| how do I wipe out an entire branch with several months worth of fixes from another branch, without prompting or merge conflicts? | 20:47 |
| ← hagabaka left | 20:47 |
| → BW^- joined | 20:47 |
| ← mister_m left | 20:48 |
|
_ikke_
| wipe out? | 20:48 |
| ← Sigma left | 20:48 |
| → boondog joined | 20:48 |
| ← __class__ left | 20:48 |
| → brngardner joined | 20:49 |
|
BW^-
| in a git repo, say that i have a bunch of big file commits that i want to get rid off completely, as not to take up unnecessary space neitehr on my harddrive, nor on github's, nor on anyone else's . Does git have features for listing all commits in total in it incl filenames, and, Does git have the feature to permanently erase a commit, and to propagate this permanent erasure also on pull/push, so that what I asked for now is fully accomplished? | 20:49 |
|
| it's an app that generates C files needed for compilation, they're super big, but you only need the latest version of them, and the version from major app versions. all intermediary take hudnreds of megabytes, so iw ant to erase them completely. | 20:49 |
|
milki
| git log filename | 20:49 |
|
| and you can use filter-branch to edit those commits | 20:50 |
|
BW^-
| ..from everyone's disks, it'd be completely unrealistic to have them around | 20:50 |
|
| milki: how? | 20:50 |
| → _class_ joined | 20:50 |
|
milki
| man filter-branch | 20:50 |
|
BW^-
| milki: i'm asking this on behalf of someone else, so i need sth clear to say | 20:50 |
|
proq
| _ikke_: yes. wipe out as in replace one branch with all the changes from another | 20:50 |
|
milki
| BW^-: theres an example there | 20:51 |
|
BW^-
| aha | 20:51 |
|
| ok | 20:51 |
|
milki
| you can also refer to github's remove sensitive files faq | 20:51 |
|
BW^-
| aha cool | 20:51 |
|
_ikke_
| proq git checkout other; git branch -f one | 20:51 |
| ← PElshoff left | 20:51 |
|
BW^-
| milki: wait, git filter-branch you mean right? | 20:52 |
|
| not the os app filter-branch? | 20:52 |
| → jrots joined | 20:52 |
|
BW^-
| _ikke_: that was to me? | 20:52 |
|
milki
| no clue what os app is | 20:52 |
|
BW^-
| OS as in operating system | 20:52 |
|
_ikke_
| BW^-: No, to proq | 20:52 |
|
BW^-
| k | 20:52 |
| ← robbyoconnor left | 20:53 |
| ← erichynds left | 20:53 |
| ← pandeiro left | 20:53 |
| ← boondog left | 20:54 |
|
milki
| o | 20:54 |
|
| right | 20:54 |
|
| its git | 20:54 |
| ← _class_ left | 20:54 |
| → mister_m joined | 20:54 |
| ← pppaul left | 20:56 |
| ← ipalaus_ left | 20:56 |
| → aspotashev joined | 20:56 |
| → pppaul joined | 20:56 |
| ← p0t4t0 left | 20:57 |
| ← chrisshattuck left | 20:57 |
| → ThePendulum1 joined | 20:57 |
| gitinfo set mode: +v | 20:58 |
|
ThePendulum1
| I pulled from someone's branch, but now I can't pull from the master because it's "Already up-to-date" because the guy's branch is ahead of the master | 20:58 |
|
| How do I pull from the master anyway? | 20:58 |
|
_ikke_
| ThePendulum1: !pull | 20:58 |
|
gitinfo
| ThePendulum1: pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/ | 20:58 |
| → enmand joined | 20:58 |
| → lonewulf` joined | 20:59 |
| ← macabre^ left | 20:59 |
| → ipalaus_ joined | 20:59 |
| → macabre joined | 20:59 |
|
Laibsch
| I want to merge upstream branch into master, but there are conflicts. I want uptream to have the upper hand. So I did "git merge -s recursive -Xtheirs upstream" as detailed in "git help merge", but the conflicts still prevail. What am I doing wrong? | 21:00 |
| ← cannonball left | 21:01 |
| ← fahi left | 21:01 |
|
ThePendulum1
| _ikke_: What should I be looking at to avoid the 'Already up-to-date'? | 21:01 |
| → wbednarski joined | 21:01 |
|
_ikke_
| ThePendulum1: It means you already have all history locally | 21:01 |
|
| ThePendulum1: But it may not be merged in | 21:01 |
|
ThePendulum1
| I accidently pulled his topic branch into my master :| | 21:01 |
| ← brentdanley_ left | 21:02 |
| → felgru_ joined | 21:03 |
| → ObseLeTe joined | 21:03 |
|
ObseLeTe
| Hi | 21:04 |
|
gitinfo
| ObseLeTe: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 21:04 |
|
ObseLeTe
| Can i go to back before a git pull? | 21:04 |
| ← airborn left | 21:04 |
|
milki
| if you remember which commit it was yes | 21:04 |
|
| reflog might help | 21:04 |
| ← pppaul left | 21:04 |
|
ObseLeTe
| i want back to before the first git pull | 21:05 |
| → pppaul joined | 21:05 |
| → PElshoff joined | 21:05 |
| ← felgru left | 21:06 |
| → wicchan_ joined | 21:06 |
| ← whitman left | 21:07 |
| ← snearch left | 21:07 |
| → snearch joined | 21:07 |
| ← bartek left | 21:07 |
| → Superlokkus_ joined | 21:07 |
| → mikepack_ joined | 21:08 |
| → PerlPilot joined | 21:08 |
| → ybit2 joined | 21:08 |
| → el2ro_ joined | 21:08 |
| ← sdeboey left | 21:08 |
| ← wicchan left | 21:08 |
| ← btanaka left | 21:08 |
| ← NimeshNeema left | 21:08 |
| ← el2ro left | 21:08 |
| ← cbreak-work left | 21:08 |
| ← andres left | 21:08 |
| ← merkosh left | 21:08 |
| ← PerlJam left | 21:08 |
| ← Superlokkus left | 21:08 |
| ← n2diy left | 21:08 |
| ← narthollis left | 21:08 |
| ← luka12345 left | 21:08 |
| ← dhoss left | 21:08 |
| ← mikepack left | 21:08 |
| ← ybit left | 21:08 |
| Superlokkus_ → Superlokkus | 21:08 |
| → andres_f joined | 21:08 |
| → merkosh joined | 21:08 |
| → cbreak-work joined | 21:08 |
| → n2diy joined | 21:09 |
| ← marhaban left | 21:09 |
| → narthollis joined | 21:09 |
| → luka12345 joined | 21:09 |
| → NimeshNeema joined | 21:10 |
| → abetaha joined | 21:10 |
| ← alberto56 left | 21:10 |
| → dhoss joined | 21:10 |
| ← abetaha left | 21:10 |
| ← mantic0 left | 21:11 |
|
proq
| I'm trying to overwrite all files in one branch (master) with another branch (nu). when I use "git checkout master; git branch -f nu" it doesn't change anything in master. I tried the other way around and saw no results either. | 21:11 |
|
lo0m
| reset before the pull like "git reset --hard master@{12:15}" should work, ObseLeTe | 21:12 |
| ← rendar left | 21:12 |
| → MestreLion joined | 21:12 |
| ← tatsuya_o left | 21:12 |
|
|apriori|
| lo0m: whats that syntax? master@{12:15} ? | 21:13 |
|
| ist that a commit number range? | 21:13 |
|
| *is | 21:13 |
| → tatsuya_o joined | 21:13 |
|
lo0m
| |apriori|: it's time.. even master@{"2 hours ago"} should work | 21:13 |
| ← ThePendulum1 left | 21:13 |
| → alberto56 joined | 21:14 |
|
|apriori|
| lo0m: oh, ok | 21:14 |
| ← PerlPilot left | 21:14 |
|
lo0m
| man git-rev-parse | 21:14 |
|
gitinfo
| the git-rev-parse manpage is available at http://jk.gs/git-rev-parse.html | 21:14 |
|
MestreLion
| Ok, tricky one (for me): after some rebases/add -p/etc, I noticed I lost a block of code. I was able to find it in a commit in the reflog. Is there a way to show all diffs from all commits, including the reflog, so I can look if that code ended up elsewhere? | 21:14 |
| ← jrots left | 21:14 |
| → PerlJam joined | 21:14 |
| → jrots joined | 21:15 |
| → acl_ joined | 21:15 |
| → sdeboey joined | 21:15 |
| → jlebrech joined | 21:15 |
|
MestreLion
| Something like git magic --all-descendants-of <commit> --include-reflog | grep "my list code" ? | 21:15 |
|
| lost* | 21:16 |
| → brentdanley_ joined | 21:16 |
| → ThePendulum1 joined | 21:17 |
| → __class__ joined | 21:17 |
| gitinfo set mode: +v | 21:17 |
| ← kpreid left | 21:17 |
|
ThePendulum1
| Is it possible to ignore an entire folder at once? | 21:17 |
|
MestreLion
| ThePendulum1: add dir/ to .gitignore | 21:17 |
| ← PElshoff left | 21:17 |
| → tewecske joined | 21:18 |
| ← cgrage left | 21:18 |
| ← tewecske left | 21:18 |
|
MestreLion
| assuming you dir/ and all of its files are currently untracked | 21:18 |
|
ThePendulum1
| Meh. It indeed ignores the folder, but it shows itself as to be added | 21:18 |
| → martinjlowm-lptp joined | 21:18 |
| ← pppaul left | 21:18 |
| ← dv310p3r left | 21:18 |
|
MestreLion
| ThePendulum1: are they part of any commit, or just the staging? | 21:18 |
| ← Superlokkus left | 21:19 |
|
proq
| nevermind, I needed to git checkout master after my last step :P | 21:19 |
|
ThePendulum1
| It's a subdirectory that shouldn't be part of git at all | 21:19 |
|
| It's not staged yet | 21:19 |
| → pppaul joined | 21:19 |
|
ThePendulum1
| (and shouldn't be) | 21:19 |
|
MestreLion
| ThePendulum1: was it ever part of any commit? | 21:19 |
|
ThePendulum1
| MestreLion: It has never been part of anything regarding git, I just added the folder | 21:20 |
|
| The folder seems to be ignored now | 21:20 |
|
| But git shows .gitignore itself as an untracked file | 21:20 |
|
| Should that one be added? | 21:20 |
| ← kerrick left | 21:20 |
|
MestreLion
| so the .gitignore trick should work... currently they are untracked files, correct? git add . or git show will not list them | 21:20 |
|
ThePendulum1
| Correct | 21:21 |
|
| But it does list the .gitignore file itself, so I'm wondering if I have to add that to git? | 21:21 |
|
eph3meral
| ThePendulum1, if you haven't set .gitignore to be tracked, then yes it will be listed as untracked, and you should track it by running: git add .gitignore | 21:21 |
|
MestreLion
| yes, I reccomend you to add the .gitinore to git | 21:21 |
|
ThePendulum1
| eph3meral: Okay, I just wasn't sure I had to track it, hehe | 21:21 |
|
MestreLion
| you don't *have* to for it to work... | 21:21 |
| → smw joined | 21:21 |
|
ThePendulum1
| I figured | 21:21 |
|
eph3meral
| ThePendulum1, strictly speaking, no you don't have to, but if you don't want cruft in your project, you should probably track it so other users don't commit crufty files | 21:22 |
|
ThePendulum1
| ^ | 21:22 |
|
MestreLion
| but since this .gitignore will be useful for anyone using the project, it makes sense to make it a part of the repo | 21:22 |
| → dv310p3r joined | 21:23 |
| ← mxweas_ left | 21:23 |
|
MestreLion
| ThePendulum1: classic examples are ignoring po/*.mo files, build/ , etc... | 21:23 |
|
| so, guys... any help on my "magic command" ? | 21:24 |
| → s0ber_ joined | 21:24 |
|
MestreLion
| git magic --all-descendants-of <commit> --include-reflog | grep "my lost code" ? | 21:24 |
|
| if need to find out if a piece of code I've found in the reflog ended up in any other commit | 21:25 |
| ← arvind_khadri left | 21:25 |
| ← Maccer left | 21:25 |
| → p3rror joined | 21:25 |
| → notola joined | 21:25 |
| ← notola left | 21:25 |
| ← s0ber left | 21:26 |
| s0ber_ → s0ber | 21:26 |
| → LongBeach joined | 21:26 |
| ← snearch left | 21:26 |
| ← legnaleurc left | 21:26 |
| ← brentdanley_ left | 21:26 |
| → kpreid joined | 21:27 |
|
lo0m
| MestreLion: i guess you can use bisect to pinpoint the commit where it went missing | 21:28 |
| ← kpreid left | 21:28 |
| ← m15k left | 21:28 |
| → kpreid joined | 21:29 |
| → Tianon joined | 21:29 |
| ← Tianon left | 21:29 |
| → Tianon joined | 21:29 |
| ← __class__ left | 21:29 |
|
MestreLion
| lo0m: I don't need to know where it went missing.. I've already found it in the reflog. I did some "extreme makeover" with rebases, so I may have screwep up... no big deal since I've found it. I just want to know If it was erroneusly added to another commit/branch | 21:29 |
| ← pppaul left | 21:29 |
| ← kpreid left | 21:29 |
| → pastime joined | 21:30 |
| → kpreid joined | 21:30 |
| ← p3rror left | 21:30 |
| ← kpreid left | 21:31 |
| → pppaul joined | 21:31 |
| → kpreid joined | 21:31 |
|
lo0m
| MestreLion: oh, ok, my bad ;-) | 21:31 |
|
MestreLion
| lo0m: So I would like to "scan" all commits since a given ancestor and grep for my code. If It's not anywhere, good, It was deleted and I can cherry-pick it from reflog | 21:32 |
| ← spiette left | 21:32 |
| ← kpreid left | 21:32 |
| ← _iron left | 21:32 |
| ← saml left | 21:32 |
| → kpreid joined | 21:32 |
|
MestreLion
| I want want to avoid the embarrassment of cherry-picking the lost code from reflog and later find out that it was already present in a completely unrelated branch | 21:33 |
| ← shruggar left | 21:33 |
| ← dstorrs left | 21:33 |
| ← j416 left | 21:33 |
| ← Element9 left | 21:34 |
|
lo0m
| MestreLion: would love to know that, cant help... | 21:34 |
| → aalex joined | 21:34 |
|
MestreLion
| do you know how to show a diff from all commits since <commit> ? | 21:34 |
|
| that would be a start | 21:34 |
| → Pupeno_W_ joined | 21:35 |
| ← pppaul left | 21:35 |
| → p3rror joined | 21:36 |
| → pppaul joined | 21:37 |
| ← Pupeno_W left | 21:38 |
| Pupeno_W_ → Pupeno_W | 21:38 |
| ← ThePendulum1 left | 21:39 |
| ← sdeboey left | 21:39 |
| ← cbreak-work left | 21:40 |
| ← BW^- left | 21:40 |
| → dstorrs joined | 21:40 |
|
lo0m
| cant find anything useful | 21:40 |
|
MestreLion
| i'm trying git log --since=v0.30c --all | 21:41 |
| → __class__ joined | 21:41 |
| → marhaban joined | 21:41 |
| ← ipalaus_ left | 21:41 |
| ← pppaul left | 21:41 |
| ← yoh left | 21:41 |
| → pppaul joined | 21:43 |
| ← beatak left | 21:43 |
| → Maccer joined | 21:44 |
| → Bartzy joined | 21:45 |
|
lo0m
| you can add -S "taht code" .. or not? | 21:47 |
| ← pastime left | 21:49 |
|
MestreLion
| yessssss | 21:49 |
|
| :D | 21:49 |
|
| git log --all -S"mycode" | 21:49 |
| andres_f → andres | 21:49 |
|
lo0m
| i love git :-) | 21:49 |
| ← rudi_s left | 21:50 |
| ← __class__ left | 21:50 |
| ← jrots left | 21:51 |
| ← timoxley left | 21:51 |
| ← pppaul left | 21:51 |
| → pppaul joined | 21:51 |
| → __class__ joined | 21:52 |
| ← macabre left | 21:52 |
| ← ObseLeTe left | 21:52 |
| ← marhaban left | 21:52 |
| → barr5790 joined | 21:53 |
| ← dv310p3r left | 21:53 |
| ← cime left | 21:54 |
| → williamcotton_ joined | 21:54 |
| ← knapper_tech left | 21:54 |
|
MestreLion
| hummm, not quite right | 21:54 |
| ← Dave^| left | 21:54 |
| ← pppaul left | 21:55 |
|
MestreLion
| --all only scans from branch tips | 21:55 |
| ← crash\ left | 21:55 |
| → ghickman joined | 21:55 |
| → pppaul joined | 21:55 |
|
MestreLion
| and -S only works for commits that *introduced* (or removed) that code | 21:55 |
| → crash\ joined | 21:55 |
|
MestreLion
| so if my code was inserted in a non-tip commit, it won't show | 21:55 |
| ← __class__ left | 21:56 |
|
FauxFaux
| MestreLion: "git diff sometag" will show you the diff with the tag. -S with --all will show all commits reachable from branches. Try --tags if your code is only in a tag? | 21:56 |
| → tonesfrommars joined | 21:56 |
| ← williamcotton left | 21:57 |
| williamcotton_ → williamcotton | 21:57 |
| ← brentdanley left | 21:57 |
| → __class__ joined | 21:58 |
|
MestreLion
| FauxFaux: actually, I'm using -S because I don't know where the code is, IF it is somewhere | 21:59 |
| → Nightfire034 joined | 22:00 |
| ← Davey left | 22:00 |
|
FauxFaux
| Well, if you can't find it with -S with --all or --tags, you probably don't have it. | 22:00 |
| ← crash\ left | 22:00 |
|
MestreLion
| FauxFaux: I did a quick test with git log --all -S"my code", and it only found commits that were tips of a branch | 22:00 |
| → Francisc joined | 22:00 |
| → _class_ joined | 22:01 |
| → iamjarvo joined | 22:01 |
|
Francisc
| 1.7.10 is latest version, right? | 22:01 |
| → crash\ joined | 22:02 |
|
FauxFaux
| Francisc: Topic. | 22:02 |
|
Francisc
| Thank you. | 22:02 |
|
FauxFaux
| MestreLion: "git log --oneline --all -S. | wc -l" prints 14055 here. I'm reasonably sure I don't have 14055 branches. | 22:02 |
| ← t4nkd left | 22:02 |
| ← _class_ left | 22:02 |
| ← LongBeach left | 22:02 |
| ← __class__ left | 22:02 |
| ← kermit left | 22:02 |
| ← martinjlowm-lptp left | 22:03 |
| ← revagomes left | 22:03 |
| → kermit joined | 22:03 |
|
MestreLion
| git log --oneline --all -S"XDG_DATA_HOME" shows only 2 commits (both are tips) | 22:03 |
|
| it fails to find a 3rd commit that I can see here | 22:04 |
| → __class__ joined | 22:04 |
| ← juanfer left | 22:04 |
| ← aristidesfl left | 22:04 |
| → mischat joined | 22:04 |
| ← lonewulf` left | 22:05 |
| ← duckxx left | 22:05 |
| ← lacrymology left | 22:05 |
| ← marcogmonteiro left | 22:06 |
| ← __class__ left | 22:06 |
| → aristidesfl joined | 22:06 |
| → brentdanley joined | 22:06 |
| ← Francisc left | 22:07 |
| → Nikoli_ joined | 22:07 |
| → eeanm joined | 22:07 |
| ← acl_ left | 22:07 |
| → mxweas_ joined | 22:07 |
| ← ISF left | 22:07 |
|
MestreLion
| FauxFaux: actually, no... out of (at least) 3 commits, it is finding 2, 1 is a tip, the other is not, and he missed one that is a tip | 22:08 |
| ← Nikoli left | 22:08 |
| ← DrNick left | 22:08 |
| ← aleray left | 22:08 |
| tizzo → tizzo-afk | 22:09 |
| → _class_ joined | 22:09 |
| ← eean left | 22:09 |
|
lo0m
| and with -g option? | 22:10 |
| ← chrisgeorge left | 22:11 |
|
MestreLion
| oh... ignore whitespaces | 22:11 |
|
| i guess that's why | 22:11 |
|
FauxFaux
| Hmm? | 22:11 |
| _class_ → __class__ | 22:13 |
|
MestreLion
| the commit log is not finding | 22:13 |
|
| if you grep that commit, the particular like introduces only whitespace | 22:13 |
|
| line* | 22:14 |
| → thatryan joined | 22:14 |
|
MestreLion
| so maybe that's it | 22:14 |
| → ericmuyser joined | 22:14 |
| ← lo0m left | 22:14 |
| ← Carraway left | 22:14 |
|
MestreLion
| care to test with my repo FauxFaux ? It's only 4MB | 22:14 |
|
| then I could show how git log is missing at least one commit | 22:15 |
|
| and this is really puzzling me | 22:15 |
|
| git://github.com/MestreLion/singularity.git | 22:16 |
| ← fisted left | 22:16 |
| ← cccaldas_ left | 22:16 |
|
MestreLion
| Or I could paste a terminal session | 22:16 |
| ← ehsan left | 22:17 |
| ← mxweas_ left | 22:17 |
| → lonewulf` joined | 22:18 |
| → Eridius joined | 22:18 |
| ← barr5790 left | 22:18 |
|
variable
| I frequently do "git branch --contains <foo>" and then git checkout the one and only branch returned | 22:18 |
|
| is there a way to do that in one step? | 22:18 |
|
MestreLion
| FauxFaux: http://sprunge.us/BZNR | 22:19 |
|
| FauxFaux: first 2 lines are git log --oneline --all -S"XDG_DATA" | 22:20 |
| → williamcotton_ joined | 22:20 |
| → _class_ joined | 22:20 |
|
MestreLion
| FauxFaux: and the rest is git show f11d302b0e81 | 22:20 |
| → sdeboey joined | 22:20 |
| ← iamjarvo left | 22:20 |
|
MestreLion
| you can clearly see that this 3rd commit has "XDG_DATA" code | 22:20 |
|
| but still git log didn't list it... any ideas why? | 22:21 |
| ← sj` left | 22:21 |
| → mxweas_ joined | 22:21 |
| → DrNick joined | 22:21 |
| ← d0k left | 22:22 |
| johnkpaul → johnkpaul-afk | 22:22 |
| ← williamcotton left | 22:22 |
| williamcotton_ → williamcotton | 22:22 |
| ← __class__ left | 22:23 |
| → lo0m joined | 22:23 |
| _class_ → __class__ | 22:23 |
|
MestreLion
| Humm, I know why :) | 22:24 |
|
FauxFaux
| git rev-list --all | grep f11d302b0e81 | 22:24 |
|
MestreLion
| looks like pickaxe is a bit picky about "introduces chances"... if file has the string both before and after the commit, it does not show it | 22:25 |
|
| even if git diff mentions it | 22:25 |
| → jonash joined | 22:25 |
| ← TeckniX left | 22:26 |
| → localhost joined | 22:26 |
|
jonash
| git ls-tree <commit> shows type 'commit' for some <commit>. What's the reason for having references to a commit instead of a blob/tree? | 22:26 |
| → fisted joined | 22:27 |
| → srcerer joined | 22:28 |
|
jast
| jonash: submodules | 22:28 |
| ← brentdanley left | 22:28 |
| ← zeom left | 22:28 |
| ← FernandoBasso left | 22:30 |
| → spatulasnout joined | 22:30 |
|
jonash
| jast: could you elaborate a bit more on that? what does it mean if a tree entry references a commit? | 22:30 |
| ← lo0m left | 22:30 |
| ← dbgster left | 22:30 |
| → SkAzZ joined | 22:30 |
|
jast
| it means that there's a submodule in that place, and that that commit uses that commit of the submodule in that place | 22:30 |
| ← tqmz left | 22:31 |
|
jonash
| that makes sense | 22:31 |
|
| what if I didn't use submodules in that particular repo? | 22:31 |
| ← Laibsch left | 22:32 |
| → Dulak joined | 22:32 |
| ← nightlycoder left | 22:32 |
| → ceej_ joined | 22:32 |
|
jast
| then something is funky | 22:33 |
| → erichynds joined | 22:33 |
| ← lyddonb left | 22:33 |
| ← stkrzysiak left | 22:33 |
|
jonash
| so I'm walking through a repo's history using dulwich (a Python binding). From dulwich's control flow I can say that that particular tree is a 'legacy' object | 22:34 |
| ← ceej left | 22:34 |
| ceej_ → ceej | 22:34 |
|
jonash
| I don't know how many 'legacy' there though | 22:34 |
|
| and if that is related somehow? | 22:34 |
| → stkrzysiak joined | 22:35 |
| ← Xizor left | 22:35 |
| ← Vinnie_win left | 22:35 |
| ← martinjlowm left | 22:37 |
| ← frnkkpp left | 22:37 |
| → Vinnie_win joined | 22:38 |
| → brentdanley joined | 22:38 |
| → ptw joined | 22:39 |
| ← MestreLion left | 22:40 |
| ← sdeboey left | 22:40 |
| ← mxweas_ left | 22:40 |
| ← mikepack_ left | 22:41 |
| ← SkAzZ left | 22:41 |
| ← alester left | 22:41 |
| → mikepack joined | 22:41 |
| → mxweas_ joined | 22:41 |
| → sdeboey joined | 22:41 |
| ← Spockz left | 22:42 |
| → duckxx joined | 22:43 |
| → subrosa joined | 22:44 |
| ← ghickman left | 22:45 |
| ← dstorrs left | 22:46 |
| ← mister_m left | 22:46 |
| ← ology left | 22:48 |
| → yoh joined | 22:48 |
| ← fayimora left | 22:48 |
| → macrover joined | 22:50 |
|
jonash
| jast: still here? | 22:50 |
| → imaginationac joined | 22:50 |
| → SkAzZ joined | 22:51 |
|
jast
| jonash: well, I can't tell you what happened because the only way a commit can legitimately be referenced from a tree is if it's for a submodule | 22:51 |
|
jonash
| jast: okay, thanks. I'll go and double-check I really didn't use any submodules for that repo. | 22:52 |
|
| thanks a lot! | 22:52 |
| ← jonash left | 22:53 |
| ← eijk left | 22:53 |
| ← imaginationac left | 22:54 |
| → knapper_tech joined | 22:54 |
| ← estevocastro left | 22:54 |
| → ben225 joined | 22:55 |
| ← dr_win left | 22:55 |
| ← Russell^^ left | 22:55 |
| → blackmatrix_ny joined | 22:55 |
| ← crash\ left | 22:55 |
| ← ben_alman left | 22:56 |
| → crash\ joined | 22:56 |
| → chrisgeorge joined | 22:57 |
| ← ToBeFree left | 22:58 |
| ← Nightfire034 left | 22:58 |
| → zeom joined | 22:58 |
| ← felgru_ left | 22:58 |
| → guns joined | 23:01 |
| → timoxley joined | 23:03 |
| ← cakehero left | 23:03 |
| → ben_alman joined | 23:05 |
| → Spockz joined | 23:05 |
| ← mxweas_ left | 23:07 |
| ← nadavoid left | 23:08 |
| → whyking_ joined | 23:08 |
| → welly joined | 23:09 |
| → acl_ joined | 23:09 |
| ← berserkr left | 23:11 |
| ← toothr left | 23:12 |
| → tewecske joined | 23:12 |
| → berserkr joined | 23:12 |
| ← tewecske left | 23:12 |
| ← joaoh82 left | 23:13 |
| ← pantsman left | 23:13 |
| → pastime joined | 23:13 |
| → mister_m joined | 23:14 |
| → dstorrs joined | 23:14 |
| → joaoh82 joined | 23:15 |
| → toothr joined | 23:15 |
| ← kpreid left | 23:15 |
| → rgwu joined | 23:16 |
| ← mtkd_ left | 23:16 |
| ← gchristensen left | 23:17 |
| ← erichynds left | 23:17 |
| ← d2dchat left | 23:18 |
| ← enmand left | 23:19 |
| ← drizzd left | 23:19 |
| ← fission6 left | 23:20 |
| ← giallu left | 23:20 |
| → devth joined | 23:20 |
| → fission6 joined | 23:20 |
| → kpreid joined | 23:20 |
| variable → const | 23:21 |
| ← acl_ left | 23:22 |
| → enmand joined | 23:23 |
| → iamjarvo joined | 23:23 |
| → cccaldas joined | 23:24 |
| ← enmand left | 23:24 |
| ← |apriori| left | 23:25 |
| → thedangler joined | 23:25 |
| ← fission6 left | 23:25 |
|
thedangler
| Anyone using sourcetree? if so how do you create a local branch that is the same as the remote one? | 23:26 |
| ← dpino left | 23:26 |
| → Nightfire034 joined | 23:27 |
|
thedangler
| got it. nvm | 23:27 |
| ← alberto56 left | 23:34 |
| ← TomyLobo left | 23:35 |
| → fayimora joined | 23:36 |
| ← michaelmartinez left | 23:36 |
| ← fayimora left | 23:36 |
| ← williamcotton left | 23:37 |
| → mailson joined | 23:38 |
| ← Chillance left | 23:43 |
| ← stkrzysiak left | 23:43 |
| ← pfFredd left | 23:44 |
| → rchavik joined | 23:44 |
| ← iocor left | 23:45 |
| ← duckxx left | 23:46 |
| ← sdeboey left | 23:47 |
| ← eph3meral left | 23:48 |
| → Per4u3e joined | 23:50 |
| ← mritz left | 23:50 |
| → madewokherd joined | 23:51 |
| → fission6 joined | 23:52 |
| ← madewokherd left | 23:56 |
| → madewokherd joined | 23:56 |
| ← madewokherd left | 23:58 |
| ← maestrojed left | 23:58 |
| → ISF joined | 23:59 |
| → madewokherd joined | 23:59 |