<albacker>Â Â Â if someone does a checkout(he gets foo.txt, bar.txt), removes everything, adds extra stuff (foobar.txt), commits, and than pushes, will only foobar.txt be online?
<cbreak>Â Â Â online?
<cbreak>Â Â Â if someone commits a deletion and some new files, the new commit will not have the deleted stuff but the new stuff
<cbreak>Â Â Â obviously…
<albacker>Â Â Â cbreak, “online” ![]()
<albacker>Â Â Â thanks
<cbreak>Â Â Â online has no meaning in git
<albacker>Â Â Â i know.
<m1sc>Â Â Â albacker: but it stays in the odb
<albacker>Â Â Â what is the odb?
<cbreak>Â Â Â history
<albacker>Â Â Â cool
<albacker>Â Â Â cbreak, should i say “master branch” instead of “online” ?
<cbreak>Â Â Â no
<cbreak>Â Â Â say what you mean, not random words
<albacker>Â Â Â well obviously you can understand that i’m a git newbie… i hope.
<cbreak>Â Â Â man gitglossary
<cbreak>Â Â Â it explains many of the words used when talking about git
*Â Â Â NapDragon is now known as Spyro
<sitaram>Â Â Â yeah but that’s alphabetical; I think http://sitaramc.github.com/concepts/0-terminology.html may be better for rank newbies
<sitaram>Â Â Â albacker: ^
<albacker>Â Â Â thanks sitaram
*Â Â Â michael_mbp_ is now known as michael_mbp
*Â Â Â Anxi80_ is now known as Anxi80
<sitaram>Â Â Â you’re welcome!
*Â Â Â khmarbaise_ is now known as khmarbaise
<sitaram>   I remember first reading gitglossary and getting confused even more. Like learning to speak English from a dictionary ![]()
<jast>Â Â Â man/faq re-enabled
<amgarchIn9>Â Â Â “git log HEAD..FETCH_HEAD| grep commit| wc -l” says there are 7 new commits. How do I advance working copy one-by-one?
<thiago>Â Â Â amgarchIn9: do you really want to do it one by one? Why?
<amgarchIn9>Â Â Â I have to record incremental changes in darcs
<thiago>Â Â Â git merge each commit, in order
<amgarchIn9>Â Â Â git branch -a doesnt show the remote branch. Am I confusing something? I did git fetch already
<thiago>Â Â Â how did you run git fetch?
<amgarchIn9>Â Â Â git fetch alias master, where alias is username@host:/path
<thiago>Â Â Â that doesn’t save to alias/master
<thiago>Â Â Â that only saves in FETCH_HEAD
<amgarchIn9>Â Â Â will “git merge commit-id” do it?
<thiago>Â Â Â amgarchIn9: do what?
<amgarchIn9>Â Â Â when I do gitk FETCH_HEAD everything is linear, only master lable is at position -7
<thiago>Â Â Â amgarchIn9: ok
<amgarchIn9>Â Â Â do the merge, I learned git merge expects a *branch*, not a commit
<thiago>Â Â Â git merge expects a “committish”
<thiago>Â Â Â anything that can be resolved to a commit
<thiago>Â Â Â a branch can be resolved to a commit
<amgarchIn9>Â Â Â is it reasonable to advance master one by one? Is it doable?
<thiago>Â Â Â a git user would never do that
<thiago>Â Â Â but it’s doable
<amgarchIn9>Â Â Â if I git checkout FETCH_HEAD~7 will it advance master label?
<thiago>Â Â Â no
<thiago>Â Â Â it will check out that commit
<amgarchIn9>Â Â Â so the best way is to advance one-by-one is to do “git merge commit-id” 7 times?
<thiago>Â Â Â yes
<thiago>Â Â Â if you want something to happen 7 times, do it 7 times
<amgarchIn9>Â Â Â ok, thanks. Tedious but works.
*Â Â Â ChanServ gives voice to romahagen
<romahagen>Â Â Â test
<romahagen>Â Â Â hi guys. I would be very thankful if you help me to clarify the following issue. I’ve googled a lot but with no luck. The problem is as follwing. I have my git so called super project. there are several submodules. the project is hosted at github. i use it for syncronization of my home and office computer. the modules that I have in the super-project are some read-only git repositories for me. now, I want to add some
<romahagen>Â Â Â changes to a submodule and push it somehow to github. so the time I do pull at the office it will pull the submodule ADD add my home changes ON TOP of it. how that can be done, if at all? thanks!
<romahagen>Â Â Â ADD=AND*
<SethRobertson>Â Â Â cd submodule; git checkout master; echo change> file; git commit -a -m change; git push; cd ..; git add submodule; git commit -m “change in submodule”
<romahagen>Â Â Â SethRobertson: note, I’m not able to push into submodules, they are readonly to me.
<SethRobertson>   You can explore gitslave as a possibly simpler (but non-standard) method. It is better for some workflows and for your home directory workcase, probably not worse
<SethRobertson>Â Â Â romahagen: Then make your own github copies of the repos and repoint the superproject to get the URLs from there
<jast>Â Â Â if you can’t push into the submodules, the best you could do is to create a clone of the submodule somewhere and get the other people to use your clone as a submodule instead
<romahagen>Â Â Â jast, SethRobertson hm.. yes, that’s the simplest and the ugliest solutions.. that one I had also in mind, but I thought git can solve it in direct way without creating additional repos.
<Marquel>Â Â Â morning.
<Marquel>Â Â Â after solving a conflict, do i need to tell git i did or does git realize on its own, the conflict is resolved?
<SethRobertson>Â Â Â romahagen: You could pull directly from the home/office repo and avoid the server
<tango_>Â Â Â Marquel: git add the files to tell git you did it
<romahagen>Â Â Â SethRobertson: unfortunately this is not possible as I cannot reach home from office.
<romahagen>Â Â Â SethRobertson: wouldn’t be this a nice feature to have? As I imagine a lot of people maintain _personal_ patches to the third-party code they use.
<SethRobertson>Â Â Â What feature do you think git is missing?
<SethRobertson>Â Â Â If you want to pull everything into the same repo, use git subtree merge.
<SethRobertson>Â Â Â If you want to pull changes directly, feel free (your inability to do so is not git’s fault)
<SethRobertson>Â Â Â If you want to store the changes elsewhere, feel free.
<SethRobertson>Â Â Â If you want to push the changes to the master repo, feel free (again the permission problem is not git’s fault)
<romahagen>Â Â Â SethRobertson: you are of course right. sorry, I’ve studied git for two days only. I have the following use case in mind. there is a submodule in the project. the submodule repository is read-only to the developers of the project. one of them performs a change in a submodule. he works in his private repo. now he wants to push changes to some public repo from which the other developers would be able to pull. yes, it’s
<romahagen>Â Â Â possible, that they pull directly from him, but pushing changes to the “central” public repo will make them explicitly visible for all.
<SethRobertson>   The local master is pretty common. That’s why you can fork repos in github
<romahagen>Â Â Â SethRobertson: so the common practice in this case is to fork and push changes to forked submodules?
<SethRobertson>Â Â Â yes
<SethRobertson>Â Â Â Or if the real master or local master is not on github, just create a new repo and add a remote and push to it
<romahagen>Â Â Â SethRobertson: ok, thank you very much. I just thought it would be “nicer” not to have this level of indirection. but if all the others like it then I’ll also like it
thanks again!
*Â Â Â EugeneSleep is now known as EugeneKay
*Â Â Â Spyro is now known as Spyraway
<bn_>   hi, I’m using v1.7.4.4 on Ubuntu and recently upgrade the distro from v8.10 to v9.04. After the upgrade I noticed “git commit –interactive” no longer seemed to work complaining that it couldn’t find the Error.pm PERL module (even though I appear to have several copies of it scattered around, some even under the paths searched). I did a “sudo cp /usr/share/perl/5.10/CPANPLUS/Error.pm /usr/share/perl/5.10/.” and that resolved that error but I no
<FauxFaux>Â Â Â a) You got cut off, b) why did you upgrade to a two and a half year old version of Ubuntu?
<bn_>   FauxFaux: a) where did it cut off at? b) because I was on my to v10 but you have to go through v9.04 first
<bn_>Â Â Â FauxFaux: b)Â s/my/my way/
<SethRobertson>Â Â Â and that resolved that error but I now
<SethRobertson>   Why not keep upgrading and *then* fix any remaining problems?
<bn_>Â Â Â FauxFaux:Â Everything worked fine at v8.10 but someone suggested I upgrade to 10 so I could get PHP v5.3.2
<bn_>Â Â Â here’s the rest of it:
<bn_>Â Â Â [2/3]Â … but I now seem to get “Can’t locate object method “throw” via package “Git” at /home/brian/share/perl/5.10.0/Git.pm line 321.” Â Does anyone know how to resolve this? Â I’ve tried re-building & re-installing git (thinking the upgrade may have overwritten git (or changed the statically linked PERL libs)) but it didn’t seem to make a difference. Â I also tried to check the git FAQ but …
<bn_>   [3/3] …it appears https://git.wiki.kernel.org/index.php/GitFaq is down?  Google isn’t helping much either  Help!
<bn_>   SethRobertson: I’m not too keen on continuing to upgrade. In fact, the original problem that gave the impetus to upgrade has now been resolved by other means (by using a PHP v5.2.X compatible syntax). Also, upgrading would mean I will not be able to debug/work on our legacy prod env, so it may be best if I stay at v9.04 (at least for now until I get/setup another machine and have more time)
<FauxFaux>Â Â Â 9.04 is out of security support…
<SethRobertson>Â Â Â Your problem is using Error.pm from an older perl release I fear
<SethRobertson>Â Â Â Install a more recent Error package from cpan
<bn_>   SethRobertson: I’ve heard that PERL also has multiple modules called Error.pm (see 2nd comment on http://stackoverflow.com/questions/3303641/why-do-i-get-this-module-error-cant-locate-error-pm-in-inc). I’m assuming git needs the one in core or from CPAN?
<SethRobertson>Â Â Â Error.pm isn’t in core for my, but I am running perl 5.12.3
<SethRobertson>Â Â Â My Error.pm (defining throw) is from SHLOMIF Version 0.17016
<bn_>Â Â Â SethRobertson:Â SHLOMIF?
<SethRobertson>Â Â Â The module author
<SethRobertson>Â Â Â http://search.cpan.org/~shlomif/
*Â Â Â Spyraway is now known as Spyro
<bn_>   SethRobertson: It looks like that was the one I needed to install. Once I did “sudo cpan Error” (and read everything the autoconfigure stuff did) it worked! Thanks for guiding me in the right direction ![]()
*Â Â Â ChanServ gives voice to qFox
<qFox>Â Â Â is there a way to remove a branch on the server?
<SethRobertson>Â Â Â git push –delete
<SethRobertson>Â Â Â The server must allow it
<qFox>Â Â Â does github?
<qFox>Â Â Â if you have write xs ofc..
<SethRobertson>Â Â Â yes
*Â Â Â ChanServ gives voice to pixelmuerto
<pixelmuerto>Â Â Â hi
<pixelmuerto>Â Â Â I make a script for save the git remotes in .gitremotes file http://j.mp/gitRemote
<qFox>Â Â Â SethRobertson, thanks
<systemclient>Â Â Â is there some way to export a “diff –color-words” for someone who does not use the terminal at all?
<systemclient>Â Â Â Like a PDF with colors or so?
<canton7>Â Â Â systemclient, pipe it to ansi2html?
<systemclient>Â Â Â canton7: that sounds like a plan
<CannedCorn>Â Â Â is it possible to reference a commit in a issue comment
<CannedCorn>Â Â Â i know it’s possible to reference an issue in a commit
<CannedCorn>Â Â Â but can you do the reverse?
<CannedCorn>Â Â Â or how would i amend my commit message to have reference the issue
*Â Â Â ChanServ gives voice to cxreg
<systemclient>Â Â Â canton7: Works like a charm ![]()
<datadevil>Â Â Â hi. I’m trying to figure out the best way of working with the following scenario: we have several branches for projects at the same time, which at some time need to merge into master at some point. Within those projects we’d like to share subdirectories like lib and common already, but not have to merge all the other code into eachothers projects yet, in order to be able to merge them into master at different times and not having the other p
<datadevil>Â Â Â I’ve looked at subtrees, but not sure if that is the best solution yet
<cbreak>Â Â Â submodules
<thiago>Â Â Â invert the hierarchy
<thiago>Â Â Â make the libs and common as submodules of the rest
<datadevil>Â Â Â mm..reading about submodules again then. Some things in pro-git made me afraid of submodules
<datadevil>Â Â Â I don’t get the revert the hierarchy btw..can you explain?
*Â Â Â Spyro is now known as NapDragon
<sorin>Â Â Â Why doesn’t git diff –no-ext-diff –no-index <(curl “foo”) <(curl “bar”) work? error: /dev/fd/18: unsupported file type
<sorin>Â Â Â regular diff supports that with complaining.
<monokrome>Â Â Â Then use regular diff? :/
<thiago>Â Â Â sorin: no one said git diff supported anything but regular files
<r3b00tx>Â Â Â hi, i have made some changes to few files but now i dont want them and revert back to last commit. how can i do this. plz help
<j416>Â Â Â r3b00tx: git reset –hard kthx
<possibilities>Â Â Â i’m working on a new project where i have to change some files for development but i don’t want to include them when i do pull requests. is there some way to have a feature branch based on a local branch but based on master when pushed? or some other way git can help me?
<CareBear\>Â Â Â possibilities : ignore your local files?
<r3b00tx>Â Â Â j416: thanks btw one more doubt, whats the actual diff between git reset –hard HEAD and just issuing git reset –hard
<j416>Â Â Â r3b00tx: no difference.
<possibilities>Â Â Â i’m changing files in the repo
<r3b00tx>Â Â Â j416: great, thanks buddy ![]()
<j416>Â Â Â r3b00tx: HEAD is implied.
<r3b00tx>Â Â Â j416: ye ye got it
<CareBear\>Â Â Â possibilities : why? what are the files?
<possibilities>   one, for instance, is a Gemfile… it needs to be changed in master also but i can’t wait for that to happen before i start creating pull requests
*Â Â Â NapDragon is now known as Spyro
<knittl>Â Â Â hi. can i use multiple merge-strategy options?
<knittl>Â Â Â i’d like to do a subtree merge with renormalization
<knittl>Â Â Â ignore-space-change would be enough
<behelit>Â Â Â is it possible to, per command, or w/o commit, exclude files from git-archive?
<bremner>Â Â Â man gitattributes
<jast>Â Â Â *automatic message* the ‘gitattributes’ manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
*Â Â Â tj is now known as Guest49585
<VladGh>Â Â Â does anyone have a logwatch configuration for varnish?
<VladGh>Â Â Â sorry
<CareBear\>Â Â Â Â Â iiiiiiiiiiiiiii
<CareBear\>Â Â Â oh – sorry!
<milki>Â Â Â i/o error again?
<empity>Â Â Â anyone knows a good way to centralize the management of many projects?
<empity>Â Â Â all the projects for example that work with some revision control systems
<empity>Â Â Â which might be not always git
<empity>Â Â Â for example zc.buildout+mr.developer might do what I need, but only for python projects
<txxt>Â Â Â how do i “connect” an existing folder with lots of code, to an existing (and empty) repo ?
<cmn>Â Â Â txxt: git add -A .; git commit -m “initial commit”; git push user@somewhere:/path/to/repo.git ? or what king of connection are you looking for?
<cmn>Â Â Â s/king/kind/
<txxt>Â Â Â cmn: make that folder the repo and import the existing code to the repo
<cmn>Â Â Â then what I wrote is what you want
<txxt>Â Â Â cmn: no new to git new repo , or something before starting to do add’s ?
<txxt>Â Â Â so i need only to git push git@myrepo:repo and can add the folder(s) later?
<cmn>Â Â Â you need to have at least one commit in order to push
<txxt>Â Â Â ah!
<txxt>Â Â Â that i didn’t know
<txxt>Â Â Â tks cmn ;
<txxt>Â Â Â ![]()
<cmn>Â Â Â what were you trying to push then?
<txxt>Â Â Â nothing ![]()
<txxt>Â Â Â sorry, starting with git recently ![]()
<txxt>Â Â Â from svn
<txxt>Â Â Â still no adapted
<cmn>Â Â Â !book
<jast>Â Â Â *automatic message* ‘Pro Git’ is a complete book about git that is available online for free: http://progit.org/book/
<cmn>Â Â Â that answers almost any question about what you should do if you’re starting out
<cmn>Â Â Â and many more besides
<txxt>Â Â Â cmn: thanks for the recommendation. was thinking about get that book soon
<txxt>Â Â Â cmn: it seems i cannot “add” anything ==>Â fatal: Not a git repository (or any parent up to mount parent /Users)
<cmn>Â Â Â you need to create the repository then
<txxt>Â Â Â that is what i was wondering before
<txxt>Â Â Â if no need to create empty repo or something
<cmn>Â Â Â yes, before you can do anything on a repo, you need to initialise it
<cmn>Â Â Â if you already know where you’re going to push, clone that repo
<cmn>Â Â Â otherwise run git init
<peterhil`>Â Â Â Hi! I can’t understand why I can’t get my new branch to show up on Github.
<txxt>Â Â Â the repo is empty
<txxt>Â Â Â so git init i think is what i need. thanks cmn
<peterhil`>Â Â Â Doing git push or git push origin just says everything is up-to-date after a while.
<peterhil`>Â Â Â Should I use ‘git remote set-branches –add mybranch’ to get it show up?
<txxt>Â Â Â cmn: sorry, last question, already added, now i was trying to push, but ==> Perhaps you should specify a branch such as ‘master’.
<cmn>Â Â Â that will happen if there are no matching branches
<cmn>Â Â Â do what it says
<txxt>Â Â Â cmn: yes, i wanted. but don’t hknow hot to sepecify a branch yet
<cmn>Â Â Â man git push
<jast>Â Â Â *automatic message* the ‘git-push’ manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-push.html
<cmn>Â Â Â and where it tells you to put the branch name, put a branch name
<txxt>Â Â Â cmn: jast : not found ![]()
<cmn>Â Â Â or maybe that manpage only speaks about refspecs, put it tere
<txxt>Â Â Â cmn: tks. checking the man
<cmn>Â Â Â you have man pages locally, though
<ShadeHawk>   Can anyone (qFox maybe) remove announcement about “Git User’s Survey 2011″ from #git channel topic? The survey has been closed since 3 October 2011.
*Â Â Â sorin is now known as Guest18706
<rslifka>Â Â Â hey guys, i have a pull request against my repo, i’d like to check out the pull request locally and run tests, etc. before merging
<rslifka>Â Â Â How do I get a handle to it?
<rslifka>Â Â Â https://github.com/rslifka/elasticity/pull/1
<shirt>Â Â Â should i name git branches with-dash or with_underscore ? or mixedCase?
<canton7>Â Â Â shirt, entirely your call
<rslifka>Â Â Â i.e. how do i check out the pull request?
<bob2>Â Â Â rslifka, not #github
<bob2>Â Â Â rslifka, you can check out the upstream branch and ‘git cherry-pick -x’ each of the revids in the pull request I guess
<osxorgate>Â Â Â hi guys i have an odd problem, git can ‘see’ a file that was deleted when i look at status, but it cannot see the file when i want to remove it from the repo: http://pastebin.com/qVwaK5W2
<shirt>Â Â Â canton7: what is the recommended style?
<rslifka>Â Â Â bob2 – thanks Bob, I sometimes get confused where git stops and github begins ![]()
<canton7>Â Â Â cherry-picking here is entirely unnecessary
<canton7>Â Â Â git remote add wouter https://github.com/wouter/elasticity.git; git fetch wouter; git checkout -b wouter_master wouter/master
<canton7>Â Â Â (although there is a way to do the same without adding wouter as a remote, but it escapes me)
<rslifka>Â Â Â canton7: awesome man, thank you!
<bob2>Â Â Â ah, didn’t notice they were contiguous
<canton7>Â Â Â bob2, commits in github pull requests are always a branch
<bob2>Â Â Â canton7, ahhh, thank you
<canton7>Â Â Â it just looks at where the submitted branch diverges from the branch it should be merged into, and sticks those commits into the pull request ![]()
<canton7>Â Â Â osxorgate, sorry you got lost in the noise. the filename’s got a space in it. git ls-files isn’t quoting the filename or escaping the space
<osxorgate>Â Â Â canton7: when i run “git ls-files -d” it does have “” around the filename though
<osxorgate>Â Â Â mybe the problem is the \264 ?
<canton7>Â Â Â well your pastebin shows that git is trying to delete a file with a name that ends just where the space is… although there is an opening quote, it’s true
<canton7>Â Â Â try a straight git rm “JSONs/Boni…..txt” ?
<osxorgate>Â Â Â ok i will try
<osxorgate>Â Â Â same error, pathspec did not match any files
<osxorgate>Â Â Â im not too experienced in bash, but putting quotes around a filename should take care of spaces and such, right?
<canton7>Â Â Â i’m not too hot on bash either, but i would have assumed so. unless that backslash is mucking things up like you suggested
<osxorgate>Â Â Â i can get it to stage a remove when i use ‘ instead of \264, but then it is still listed as \264
<canton7>Â Â Â git add -A is another approach ![]()
<osxorgate>Â Â Â ill have to check what that does, seeing that smiley
<canton7>Â Â Â add -A stages all adds, as well as all rms
<osxorgate>Â Â Â well that did the trick. thanks for the help canton7
<osxorgate>Â Â Â so -A is like the simple way of adding and removing whatever happened? I have this folder where files are generated and removed from time to time so i’d like to just bulk add/rm in one go
<canton7>Â Â Â yeah that’s the one
<canton7>Â Â Â add . adds new and stages changes; add -u stages changed only; add -A stages changed, adds new and stages removed
<osxorgate>Â Â Â cool , sounds just like what i need
<cbreak>Â Â Â add . doesn’t add new and stages
<cbreak>Â Â Â it adds the current folder
<canton7>Â Â Â sorry, unclear. it adds new and changed in the current folder?
<cbreak>Â Â Â it adds every file that is still in the current folder
<osxorgate>Â Â Â hm back to school for me then
<osxorgate>Â Â Â i was under the impression that “git add .” adds and stages all files in all subfolders also
<cbreak>Â Â Â only if they are part of the current directory…
<canton7>Â Â Â all of them work just in the current directory and subfolders, though
<cbreak>Â Â Â by default
<NickASloan>Â Â Â we have a repo on our development server that is like the shared, main development copy, and I have my own working copy on the server. I have set up ssh to use my key, so pulling and committing to my repo works just fine
<NickASloan>Â Â Â but when I try to pull the main copy, it’s using my creds, and that copy was originally pulled by another developer
<NickASloan>Â Â Â how do I make this work?
<sh1mmer>Â Â Â Sorry for the stupid question, but if I pull from a remote and I am up to date why is diff giving me a diffs back?
<sh1mmer>Â Â Â https://gist.github.com/1274420
*Â Â Â spearce_ is now known as spearce
<kevlarman>Â Â Â sh1mmer: git pull won’t touch your local changes
<sh1mmer>Â Â Â sure
<sh1mmer>Â Â Â but I don’t think I’ve touched those files
<EugeneKay>Â Â Â canton7 – git fetch <remotespec>, I believe
<canton7>Â Â Â EugeneKay, nice. And just use FETCH_HEAD?
<EugeneKay>Â Â Â I do believe
<canton7>Â Â Â EugeneKay, cheers! :0
<canton7>Â Â Â * ![]()
<ries>Â Â Â hello, I am propely overseeing something, but this isn’t working : git filter-branch –tree-filter ‘changeAll.sh’ –all
<ries>Â Â Â git comes back with Usage: git filter-branch……..
<ries>Â Â Â did I miss something?
<ries>Â Â Â I.. I had to add HEAD
<muhoo>Â Â Â i have a question.
<muhoo>Â Â Â i have a merge conflict
<muhoo>Â Â Â i attempt to resolve the conflict by editing the file, and committing it
<muhoo>Â Â Â but it won’t let me commit it because i’m “in the middle of a conflicted merge”
<muhoo>Â Â Â wtf
<muhoo>Â Â Â Â cannot do a partial commit during a merge.
<muhoo>Â Â Â so i have huge list of unpushed commits to svn from git
<muhoo>Â Â Â i don’t want to push all that ccrap. just a clean patch, is all i want
<bob2>Â Â Â you forgot to git add
<muhoo>Â Â Â git add what?
<muhoo>Â Â Â what file?
<muhoo>Â Â Â the one i merged? oh, hmm. lessee
<bob2>Â Â Â the file you fixed the merge conflict in
<bob2>Â Â Â git status
<muhoo>Â Â Â ah, thanks
<bob2>Â Â Â (it did tell you that as part of the HI I HIT A CONFLICT message, I believe)
<muhoo>Â Â Â it said “you forgot to git add”, but it didn’t say WHAT to add, but i got that now, thanks
<muhoo>Â Â Â this is the next hurdle: http://pastie.org/2668516
<muhoo>Â Â Â i want to squash EVERYTHING between line 1 and line 32, thgat whole branch
<muhoo>Â Â Â i tried git rebase -i but it seems to always not show that first commit
<bob2>Â Â Â what?
<bob2>Â Â Â why?
<muhoo>Â Â Â because thos commit messages are stuopid
<muhoo>Â Â Â those were just thrash on private branches
<muhoo>Â Â Â experimenting, testing etc
<bob2>Â Â Â meh
<muhoo>Â Â Â i do NOT want to push all that garbage up
<bob2>Â Â Â who cares then?
<muhoo>Â Â Â just one nice clean patch
<bob2>Â Â Â suspect you’re mixing things up
<muhoo>Â Â Â the customer cares ![]()
<bob2>Â Â Â the merge commit is “just one nice clean patch”
<muhoo>Â Â Â ah, ok, cool.
<muhoo>Â Â Â but doesn’t git svn dcommit push ALL the interim commits?
<muhoo>Â Â Â the man page says it does, it flattens it out
<muhoo>Â Â Â if this were just git, i wouldn’t worry, but git-svn says it tries to undo what i’ve just done
<bob2>Â Â Â “I’m using git-svn” <- relevant
<muhoo>Â Â Â cool
<bob2>Â Â Â don’t know, only used git-svn long enough to migrate coworkers
<muhoo>   this is one of those things, the git users don’t care about svn enough to knw about this, and the svn users don’t care enogh about git to know abotu it either
<muhoo>Â Â Â (damn lag losing carachters)
<bob2>Â Â Â well, you can use rebase to squash the whole thing if you want to
<muhoo>Â Â Â i tried
<muhoo>Â Â Â git rebase doesn’t show any commits i want to keep, it only shows the ones to squash, then it says that i can’t squash them all.
<muhoo>Â Â Â http://pastie.org/2668531
<muhoo>   (that’s with using the commit for rebase as the last one before the trees diverged
<muhoo>Â Â Â ah, wait, i got it
<muhoo>Â Â Â bob2: thanks, it looks like it worked
<ries>Â Â Â Gents, how do ai remove a complete directory from my git repo? it contained copyrighted stuff I need to remove
<nb>Â Â Â ries, look at man git filter-branch
<jast>Â Â Â ries: *automatic message* the ‘git-filter-branch’ manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html
<ries>Â Â Â nb: that link doesn’t work, but I know what’s in there…
<ries>Â Â Â I was reading that you need to do more then just run a rm -rf ‘my directory’ to get it really removed
<nb>Â Â Â ries, sorry, i don’t remember the exact syntax, but git filter-branch will do it
<nb>Â Â Â and then you’ll have to do git push –force (and have receive.denyFastforwards set to false)
<ries>Â Â Â I made a little bash script that does the rm work for me
<ries>Â Â Â then I run : git filter-branch –tree-filter ‘changeAll.sh’ HEAD –all
<nb>Â Â Â ries, oh ok
<nb>Â Â Â nice
<ries>Â Â Â nb: when I do for example git checkout dbf5293867534ea5536ffa8af11eb17a471970bc
<ries>Â Â Â then I d see the directory back I wanted to have removed..
*Â Â Â Spyro is now known as NapDragon
*Â Â Â miguet is now known as robotek`
*Â Â Â robotek` is now known as group
*Â Â Â group is now known as miguet
<Cowmoo>Â Â Â I committed something I shouldn’t have, how do I ‘delete’ the commit and take working tree back to previous one?
<kevlarman>Â Â Â Cowmoo: have you pushed the change yet?
<Cowmoo>Â Â Â no, there is nowhere to push to
<Cowmoo>Â Â Â git revert HEAD maybe?
<kevlarman>Â Â Â that will generate a commit that undoes the change
<Cowmoo>Â Â Â hm ok, not exactly what I want
<kevlarman>Â Â Â git reset HEAD^ will remove the commit and leave your working tree intact
<kevlarman>Â Â Â git reset –hard HEAD^ will remove the commit and make your working tree match HEAD^
<Cowmoo>Â Â Â is HEAD^ same as HEAD~1?
*Â Â Â cytrinox_ is now known as cytrinox
<JakeyChan>Â Â Â can git show the difference between two branch ?
<bob2>Â Â Â sure
<bob2>Â Â Â exactly the way you’d expect – git diff whatever…whocares
<JakeyChan>Â Â Â thans !
<JakeyChan>Â Â Â thanks
<JakeyChan>Â Â Â super easy ![]()
*Â Â Â JakeyChan_ is now known as JakeyChan
<JakeyChan>   how to select merge tool ? git mergetool tool_name ??
<JakeyChan>Â Â Â git mergetool –tool=tool
<JakeyChan>Â Â Â aha, I found it
<sitaram>   bob2: you used 3 dots in your “whatever…whocares”. Clearly you don’t (care) but git will.
<sitaram>Â Â Â JakeyChan: 3 dots is not what you want, you want 2 dots
<bob2>Â Â Â oops
<bob2>Â Â Â sorry, i mix them up
<sitaram>Â Â Â ![]()
<JakeyChan>Â Â Â it’s ok
<JakeyChan>Â Â Â I merged ![]()
<JakeyChan>Â Â Â but now it has conflict
<JakeyChan>Â Â Â I need good tool, do you have any suggestion ?
<JakeyChan>Â Â Â for merge tool ?
<EugeneKay>Â Â Â git shutupanddowhatiwantyoustupidcli
<bob2>Â Â Â http://stackoverflow.com/questions/5256249/git-diff-doesnt-show-enough/5257065#5257065 <- relevant
*Â Â Â aidenhong_ is now known as aidenhong
<lorfds>Â Â Â i am working with another person, and they pushed two commits to github that i want to delete completely
<lorfds>Â Â Â i also have some local commits on my machine, that i then want to push to github
<lorfds>Â Â Â how do i do this
<shachaf>Â Â Â lorfds: Well, you *could* just push –force. Be careful, though — I’m not sure if that’s what you want.
<lorfds>Â Â Â i want to remove the last two commits
<lorfds>Â Â Â so how do i force those to go away?
<lorfds>Â Â Â you mean if i force push, it will copy my working tree to gitthub
<lorfds>Â Â Â but will that destroy all the history logged in github
<JakeyChan>Â Â Â hi
<JakeyChan>Â Â Â I want to remove the file that generated when merge, but it is too much do you have any quick method to delete them ?
<slonopotamus_>Â Â Â JakeyChan: git clean?
<JakeyChan>Â Â Â let me try it
<JakeyChan>Â Â Â cool!
<JakeyChan>Â Â Â git clean -f
<JakeyChan>Â Â Â but use this command careful, it will delete all the file that not be tracked
*Â Â Â ChanServ gives voice to ShawnMcCool
<ShawnMcCool>   my understanding of git on github is that i can fork a project, such as a development framework. then i can write my site using that project while still being able to pull down updates to the framework directly into my project. my understanding is that github has created the term ‘fork’ and that it’s actually more or less just branching. i’ve done some google searching but haven’t really found a resource that makes me understand it. what is
<ShawnMcCool>Â Â Â the correct terminology for this (so that i can use it to search) and does anyone know a good resource to use to find out best practices for this?
<voot545>Â Â Â is core.filemode purely a local variable, or does it ever get transferred along with a repository push/pull ?
<toralf>Â Â Â I added “git remote add remote_stable git://git.kernel.org/…/table/linux-stable.git” to my local clone of Linus’ repo – does a “git pull” now automatically fetch+pull from both remote repos ?
<deanc[work]>Â Â Â git checkout –track -b <local branch> <remote>/<tracked branch>
<deanc[work]>Â Â Â Is it possible to track a local branch also?
<deanc[work]>Â Â Â so:
<deanc[work]>Â Â Â git checkout –track -b <local branch> <local tracked branch>
<Jckf>Â Â Â Can I force git to use IPv4 when pulling from a repo?
<cbreak-work>Â Â Â Jckf: give it an ipv4 ip address? ![]()
<rue>Â Â Â (Or an alias to an ipv4)
<Jckf>Â Â Â I’d prefer using the remote’s FQDN, but okay
<Jckf>Â Â Â (the FQDN has AAAA records)
<cbreak-work>Â Â Â well, then both should work
<Jckf>Â Â Â Not the case for Assembla. They have a different fingerprint for their IPv6 SSH server
<Jckf>Â Â Â So the same address has two fingerprints
<cbreak-work>Â Â Â how pecular.
<Jckf>Â Â Â Indeed. Someone should give them a slap about that
<cbreak-work>Â Â Â you could use a different hostname for it
<cbreak-work>Â Â Â like adding a dot (.) at the end
<cbreak-work>Â Â Â maybe ssh will add a new key entry for it
<Jckf>Â Â Â I won’t know when my machine decides to use IPv4 or 6 though
<cbreak-work>Â Â Â true.
<cbreak-work>Â Â Â I wonder who decides that
<cbreak-work>Â Â Â it must be something inside git
<Jckf>Â Â Â Or something the people in #debian would know =p
<Jckf>Â Â Â I’ll go with using the IP address though. Easiest way out it seems
<cbreak-work>Â Â Â Jckf: you use ssh, right?
<Jckf>Â Â Â Yes
<cbreak-work>Â Â Â so you could set up an alias in the config file
<cbreak-work>Â Â Â (and use that instead of the raw ip)
<Jckf>Â Â Â The repository’s config?
<Jckf>Â Â Â No
<Jckf>Â Â Â Sorry, do not know which file you’re talking about
<semarj>   Hey, I have a local repo on my machine, and I would like to push that up to github or google code. I’ve searched for this, but must be using the wrong terms. Can anyone tell me what command I’m looking for, or a tutorial?
<Jckf>Â Â Â semarj: git remote add origin g...@github.com:caius/foo.git
<Jckf>Â Â Â That’s from here http://caiustheory.com/adding-a-remote-to-existing-git-repo
<Jckf>Â Â Â Which was the first hit on Google
<Jckf>Â Â Â Please deposit 5 dollars for the next Jckf Google proxy search
<semarj>Â Â Â well, I must not have used the right search terms, because all my results were about converting from svn to git or other things
<Jckf>Â Â Â I searched for “git add origin” without quotes
<semarj>Â Â Â well I had no notion of this add origin thing you speak of.
<semarj>Â Â Â Thanks so much by the way
<Jckf>Â Â Â No problem ![]()
<semarj>Â Â Â and sorry for the preposition ending sentence
<Jckf>Â Â Â Haha
<djh>Â Â Â Morning.
<djh>Â Â Â We have a repository. It has 89k comits, 89k annotated tags, 6k branches.
<FauxFaux>Â Â Â Cool story bro.
<djh>Â Â Â Doing a git clone on it is particularly slow. Where should we start looking?
<wereHamster>Â Â Â djh: an annotated tag for each commit?
<djh>Â Â Â FauxFaux: :p ;o)
<wereHamster>Â Â Â that’s insane
<djh>Â Â Â wereHamster: Okay. The reason we did it was for mapping from an old version control system. Is there a better way?
<FauxFaux>Â Â Â git repack -adf the repo.
<wereHamster>Â Â Â djh: notes
<wereHamster>Â Â Â djh: http://progit.org/2010/08/25/notes.html
<djh>Â Â Â wereHamster: Thanks. How do we get hold of the sha for a given note?
<wereHamster>Â Â Â notes are attached to a commit
<djh>Â Â Â FauxFaux: Thanks. Is that substantially different from git gc?
<wereHamster>Â Â Â or you write the sha into the note itself
<djh>Â Â Â wereHamster: Forgive my misunderstanding: I have a tag FOO.CBL_15.231 right now. So I can git co FOO.CBL_15.231 or do a diff on it, etc. How would I do the same with a note?
<crashanddie>Â Â Â djh, I had roughly the same issue, but with 23k .tar.gz files that I automagically imported into git. We tried working with it for a while, but it became a very painful process very quickly. We decided to leave the repository on the server for future reference (and all devs usually clone it once), but work from a “fresh” repository (last version from previous system imported as initial release), or a few dozen most important r
<crashanddie>Â Â Â eleases.
<djh>Â Â Â crashanddie: This is a bit more practical, though – these are individual code files.
<djh>Â Â Â Correction – these are just tags, not annotated tags.
<wereHamster>Â Â Â for the clone process it doesn’t matter. They are refs, and there’s a lot of them.
<djh>Â Â Â wereHamster: Okay – so whether it’s anontated or not, it’s going to be similar for clone.
<djh>Â Â Â Correction again: ;o) These had -m supplied, so they’re annotated. They don’t need to be, though.
<djh>Â Â Â I wonder if it’s worth de-messaging them.
<wereHamster>Â Â Â no
<djh>Â Â Â wereHamster: Okay – thanks.
<djh>Â Â Â Nearly finished running a git repack -adf on my clone.
<djh>Â Â Â And we’ll test again from that.
<djh>Â Â Â wereHamster: Is it possible that the 6k branches are a bigger problem than the tags?
<wereHamster>Â Â Â djh: no. both tags and branches are refs.
<djh>Â Â Â wereHamster: Okie doke.
<djh>Â Â Â wereHamster: I got all excited that “lightweight” tags would solve my problem
(
<djh>Â Â Â wereHamster: I’ll see if I can find a way to reduce the number of tags.
<wereHamster>Â Â Â djh: can’t you have one file where you put the mapping?
<djh>Â Â Â wereHamster: Could do. Was trying to avoid it so everything can be pure git.
<djh>Â Â Â wereHamster: e.g. git diff RAOPEN.CBL_15.1712..RAOPEN.CBL_15.1899
<wereHamster>Â Â Â ah, I see
<wereHamster>Â Â Â you could unpack the tag map after clone though
<djh>Â Â Â wereHamster: The clone isn’t our biggest problem, even.
<djh>Â Â Â wereHamster: tab-completion becomes non-functional, git log takes a hell of a time, and pushing is more painful than … I’ll stop that analogy before it gets too bad (pun intended)
<wereHamster>Â Â Â ah, well, there you go. I don’t see any solutino to your problem
<djh>Â Â Â wereHamster: Would we have this problem with *just* 89k commits, and only a few branches and <100 tags ?
<djh>Â Â Â wereHamster: In other words, is 89k tags and 6k branches *likely* to be the problem?
<djh>Â Â Â Certainly for tab-completion, I would imagine.
<wereHamster>Â Â Â djh: no
<wereHamster>Â Â Â djh: commits don’t matter
<wereHamster>Â Â Â only refs do (branches, tags)
<djh>Â Â Â wereHamster: Thank you. I’d have your hamsterlings for giving that answer!
*Â Â Â Sico is now known as SicoWork
<evildmp>Â Â Â i did “git branch video” instead of “git checkout video” – how do I destroy this silly local branch that i have lumbered myself with?
<deanc[work]>Â Â Â git branch -d <branch>
<deanc[work]>Â Â Â deletes a branch
<masterkorp>Â Â Â evildmp: -D if don’t have it merged
<evildmp>Â Â Â thank you both
<wereHamster>Â Â Â masterkorp: by definition, if he just did ‘git branch video’ then the branch is already merged
<masterkorp>Â Â Â wereHamster: yeah, just giving the other possible future cases info :p
<evildmp>Â Â Â if I checkout a remote branch (checkout origin/<branch> it puts my local git into a detached HEAD state – whereas what I want is that remote branch in a local branch
<evildmp>Â Â Â should i create it locally, then check out the remote one?
<ngulden>Â Â Â evildmp: You can create a tracked local branch for the remote one: git branch –track <local name> <remote branch>
<evildmp>Â Â Â thanks ngulden
<djh>Â Â Â wereHamster: One further question: On a clone of that repo I was talking about, is it possible to remove all tags and branches, perhaps?
<wereHamster>Â Â Â djh: git tag/branch -d
<djh>Â Â Â wereHamster: That deletes *all* branches and tags?
<djh>Â Â Â wereHamster: (Any danger it might delete master too?)
<endra>Â Â Â Hey
<fishguy>Â Â Â hi
<endra>Â Â Â How are you
*Â Â Â ChanServ gives voice to lnx-hatt
<lnx-hatt>Â Â Â I’m using filter-branch with subdirectory-filter, but only some of my merge commits are preserved while other merges are flattened. any ideas what can cause this?
<evildmp>Â Â Â i would like my local repo to point at both my github version of it and someone else’s, so I can switch between them for testing – I have added a [remote] section to git config, with the url = <his git repo>
<evildmp>Â Â Â is that the correct way to do it?
<nevyn>Â Â Â evildmp: usualy you’d do it with git remote add his url
<evildmp>Â Â Â ah
<g0to>Â Â Â hello
<g0to>Â Â Â I’m trying to set up a git repository on my server but have lots of doubts
<evildmp>Â Â Â nevyn: git remote add -f –tags stefan <url> – now how do I switch to the “stefan” version?
<g0to>Â Â Â I want to store git projects under /var/www/git, but that means I need root access to add or modify any file under
<deavid>Â Â Â g0to: no, just change the owner/group of that folder
<bremner>Â Â Â or use symbolic links
*Â Â Â TheDaniel0108 is now known as Danile0018
<deavid>Â Â Â for example, add a “git” user, and do “chown git /var/www/git -R”
*Â Â Â Danile0018 is now known as Daniel0108
<deavid>Â Â Â when doing a “git archive” command, i can tell GIT to place an extra file into the zip or tar, containing the project version as in “git describe”?
<g0to>Â Â Â deavid: I don’t know if this will work when I decide to use gitweb on that directory
<g0to>Â Â Â because Apache (www-data user) need to own served directory
<bremner>   g0to: no, it just needs read access
<bremner>Â Â Â g0to: a typical trick is to make everything group readable and add www-data to group git
<g0to>Â Â Â bremner: good! I’m gonna play with that workaround ![]()
<bremner>Â Â Â deavid: I don’t think there are hooks for git-archive. Of course you can just use tar to add a file. Maybe an alias/script to archive then add
<deavid>Â Â Â bremner: and if i wanted to use zip instead? has zip any similar command as tar to append a file?
<bremner>Â Â Â I’m pretty sure it does
<deavid>Â Â Â ok ![]()
<nevyn>Â Â Â evildmp: git remote update
<nevyn>Â Â Â then git checkout stefan/master
<ndim>Â Â Â deavid: For the tarballs, IIRC git archive encodes some git information into the tarball in some way.
<ndim>Â Â Â Not as a tarred file, though.
<bremner>Â Â Â ndim: really? I’m curious about that.
<bremner>Â Â Â ah, it’s in the man page
<deavid>Â Â Â i’m interested in getting version information *after* the tar or zip has been uncompressed
<rhalff>Â Â Â hi, I have a very complex problem
<rhalff>Â Â Â i need to revert my file to the last commit state… ![]()
<rhalff>Â Â Â how to do this ?
<ndim>   deavid: I use automake and “make dist” for those kinds of tarballs ![]()
<ndim>Â Â Â rhalff: git checkout filename?
<rhalff>Â Â Â ah I tried fetch and pull
<rhalff>Â Â Â ndim, thanks for that vital information, I tried reset also before
<rhalff>Â Â Â which I’m not sure what that did
<evildmp>Â Â Â nevyn: well – i now have a remote called “stefan”, pointing at his repo on github, which contains a branch master: https://github.com/stefanfoulis/django-widgetry
<evildmp>Â Â Â but git checkout stefan/master reports that “pathspec ‘stefan/master’ did not match any file(s) known to git”
<nevyn>Â Â Â hrm
<nevyn>Â Â Â did you run git remote update first?
<evildmp>Â Â Â yes
<nevyn>Â Â Â does git branch -a show stefan’s branches?
<evildmp>Â Â Â I don’t think so – it only shows them at “origin”
<evildmp>Â Â Â which is mine
<evildmp>Â Â Â neither does git branch -r, but maybe that is expected
<evildmp>Â Â Â git remote shows origin and stefan
<ndim>Â Â Â Have you fetched?
<ndim>Â Â Â git fetch -v –all?
<evildmp>Â Â Â ndim: yes
<deavid>Â Â Â what is the reverse of “git describe”? i mean, something like: git which-commit-is $(git describe “a1234″ ) -> “a1234…”
<evildmp>Â Â Â it says (and said previously after git remote update): Fetching stefan
<deavid>Â Â Â something that returns the commit-id from a tag, branch name, or any output from “git describe”
<b_jonas>Â Â Â deavid: just take the hexadecimal number after the last “-g” from the output of git describe
<deavid>Â Â Â ok, don’t mind
<deavid>Â Â Â i was doing a mistake
<deavid>Â Â Â i was getting an error on git log $DESCRIBED_COMMIT , but because it included something different
<fortysixandtwo>Â Â Â Hi! Newbie question. I have two branches master and develop. On my server I have to seperate folders, one named develop and one production. Is it enough to simply checkout “develop” branch in my develop folder and run git pull to just update from the develop branch? And vica versa for master/production
<thiago>Â Â Â fortysixandtwo: no
<thiago>Â Â Â fortysixandtwo: you need to add the remote for the other repository
<fortysixandtwo>Â Â Â Ah, that i have
<fortysixandtwo>Â Â Â when i type git branch on server, it says master and develop
<thiago>Â Â Â so you have two repositories in the server, each with two branches?
<fortysixandtwo>Â Â Â yes
<fortysixandtwo>Â Â Â Should I do it any different?
<thiago>Â Â Â not really
<fortysixandtwo>Â Â Â Ok, great.
<fortysixandtwo>Â Â Â Thanks ![]()
<thiago>Â Â Â it just depends on whether you wanted that and won’t get confused by having develop/master, develop/develop, master/master and master/develop
<fortysixandtwo>Â Â Â There is only two branches, but the repository is cloned in two seperate folders.
<thiago>Â Â Â so there are four branches
<fortysixandtwo>Â Â Â But they both track the same origin branch?
<fortysixandtwo>Â Â Â folder “production” tracks origin master, and origin develop, and the same for folder “develop” ?
<fortysixandtwo>Â Â Â ah, sorry
<fortysixandtwo>Â Â Â My mistake
<fortysixandtwo>Â Â Â I see what you tried to explain to me..
*Â Â Â ChanServ gives voice to freddy
<freddy>Â Â Â Hi all
<freddy>Â Â Â is there a place for asking some question to the git community ? It’s about thinking to some workflow, i’d like to read the opinion from other git users, but i couldn’t find some forums or whatever to ask my question
<tuxx->Â Â Â ask it here, and wait for reply ![]()
<tuxx->Â Â Â lots of git users here that can probably help you
<tuxx->Â Â Â win 15]
<freddy>Â Â Â ok, thank you for your answer
so i try to organize my ideas to ask the good question :p
<ksinkar>Â Â Â hi guys
<ksinkar>Â Â Â i am guys
<evildmp>Â Â Â ksinkar: well, everyone’s welcome here
<ksinkar>Â Â Â evildmp: pardon for that typo
<ksinkar>Â Â Â I am using git 1.6.0.4 and i am unable to checkout to a particular branch
<thiago>Â Â Â ksinkar: why not?
<ksinkar>Â Â Â thiago: i am unable to figure that out, when i do git branch -r i can see that branch in the list of branches displayed
<ksinkar>Â Â Â but I am not able to checkout to that branch
<thiago>Â Â Â ksinkar: why aren’t you able?
<ksinkar>Â Â Â thiago: this is the erro that i get
<ksinkar>Â Â Â error: pathspec ‘takeover-intellecash’ did not match any file(s) known to git.
<thiago>Â Â Â ksinkar: so you typed: git checkout takeover-intellecash ?
<ksinkar>Â Â Â yes
<ksinkar>Â Â Â thiago: yes
<thiago>Â Â Â ksinkar: what did git branch -r list?
<ksinkar>Â Â Â thiago: it listed all possible branches
<thiago>Â Â Â what did it say about takeover-intellecash ?
<freddy>Â Â Â ksinkar, with some prefix ?
<freddy>Â Â Â sorry, thiago
<thiago>Â Â Â ksinkar: my guess is you forgot the prefix that git branch -r showed
<ksinkar>Â Â Â origin/takeover-intellecash
<thiago>Â Â Â ksinkar: you forgot the “origin/” part
<thiago>Â Â Â also note that you cannot check out a remote branch
<thiago>Â Â Â if you try that, you’ll check out the commit that the remote branch points to. You will be in no branch.
<freddy>Â Â Â ksinkar, if you checkout a remote branch this way, that’s typically for inspecting it
<freddy>Â Â Â ksinkar, you will need to create a local branch which can track your remote branch, in order to add some work in it
<masterkorp>Â Â Â how can i merge only 1 commit from on brach?
<thiago>Â Â Â masterkorp: is it the first commit on that branch from the point you’re at?
<masterkorp>Â Â Â which happens to be the first in history line =
<FauxFaux>Â Â Â masterkorp: cherry-pick
<thiago>Â Â Â masterkorp: git merge thatcommithere
<arvind_khadri>Â Â Â Hi, what actually happens when I do a checkout -b ? Will it affect the remote?
<thiago>Â Â Â arvind_khadri: no, it will not
<Silex>Â Â Â if I have a repo that wasn’t pushed but has origin correctly set, then I copy that repo and push it from somewhere else, but in the meantime the original repo adds more commits, what will happen when I do git pull on the original repo?
<arvind_khadri>Â Â Â thiago, oh ok ![]()
<masterkorp>Â Â Â thiago: i would do that from the master bracnh (which is the branch i want to merge the commit too ) ?
<Silex>Â Â Â it’ll just be aware that origin/master points at commit X in history?
<thiago>Â Â Â masterkorp: yes
<masterkorp>Â Â Â thanks
<thiago>Â Â Â Silex: sorry, I got lost with three repos
<thiago>Â Â Â Silex: give them names A (the origin), B and C
<thiago>Â Â Â Silex: then try again
<Silex>Â Â Â ok
<Silex>Â Â Â A is origin and is empty atm. B is the repo where you do the original import of stuffs and is ready to be pushed to A but the push didn’t happen yet. Repo C is a manual copy (cp -r) of B to some other computers. One week passes, repo C is pushed to A. Then repo B does some commits, and eventually does a “git pull origin master”
<thiago>Â Â Â Silex: then let’s stop at “A is empty”
<thiago>Â Â Â Silex: why are you cloning empty repositories?
<Silex>Â Â Â I’m not!
<thiago>Â Â Â Silex: then try again without “A is empty”
<Silex>Â Â Â A: git init –bare B: git add somefiels, git remote add origin someurl
<Silex>Â Â Â where someurl points at A
<thiago>Â Â Â huh?
<thiago>Â Â Â git init –bare B?
<Silex>Â Â Â A: git init –bare
<thiago>Â Â Â oh, ok
<Silex>Â Â Â B: git add somefiles; git remote add origine A_URL
<solofight>Â Â Â people is there a git UI tool which i can use in windows, linux and mac os
<solofight>Â Â Â ?
<thiago>Â Â Â ok, go on
<solofight>Â Â Â apart from smart git
<Silex>Â Â Â B: git commit && modify_files && git commit etc (no push yet)
<solofight>Â Â Â any good tool which is more intuitive
<thiago>Â Â Â Silex: ok, so far so good
<Silex>Â Â Â C: cp -r B C; cd C; git push origin master
<Silex>Â Â Â B: modify_files && git commit && modify_files && git pull
<Silex>Â Â Â what happens to B?
<thiago>Â Â Â Silex: nothing. It works properly
<Silex>Â Â Â it’ll just set origin/master to the correct commit?
<thiago>Â Â Â Silex: yes
<Silex>Â Â Â alright. Thanks!
<Tak>Â Â Â partway through a merge, can I reset a file to its just-merged state?
<Silex>Â Â Â solofight: maybe emacs with magit
<Tak>Â Â Â as in: git merge blah; somefile has conflicts; resolve conflicts in somefile; test; realize conflicts in somefile were resolved incorrectly
<Silex>Â Â Â solofight: or vim with fugitive
<Silex>Â Â Â solofight: the portability precondition reduces your choices a lot
<ksinkar>Â Â Â freddy, thiago: thanx for your help. i created a new branch locally and then pulled the remote branch into it
*Â Â Â evildmp_ is now known as evildmp
<Tak>Â Â Â aha @ checkout –merge
*Â Â Â ChanServ gives voice to dirker
<dirker>Â Â Â Hi all, is there a way to setup a transparent git proxy that caches repositories locally when a user executes git-receive-pack?
<cbreak-work>Â Â Â dirker: I don’t think so
<cmn>Â Â Â dirker: you can use gitolite to backup or replicate repos
<cbreak-work>Â Â Â unless you manage to hack the server, the client, or ssh
<JeffJohnson>Â Â Â howdy
<cmn>Â Â Â or you can do fetch on a cronjob
*Â Â Â ChanServ gives voice to freddy
<JeffJohnson>Â Â Â i create branches for work on some features, after this is rebase the branch on to the master… After this I cant use the rebased branch anymore to add more commits and rebase again with the master, the historys seem to have diverged. Is there a way to still work with the branch and rebase commits on the master(without using git push –force)?
<cbreak-work>Â Â Â rebase rewrites history
<cbreak-work>Â Â Â either don’t rebase, or force push the new, rewritten history
<PerlJam>Â Â Â the former is best.
<canton7>Â Â Â (pushing rewritten history has some bad consequences if you’re working with other people, though)
<cbreak-work>Â Â Â just declare all feature branches private
<JeffJohnson>Â Â Â thats the reason why i dont want to do this:=)
<canton7>Â Â Â so, merge?
<JeffJohnson>Â Â Â cbreak-work: declare private?
<cbreak-work>Â Â Â JeffJohnson: correct!
<JeffJohnson>Â Â Â cbreak-work: how? or do you mean simple name the branch private?:)
<cbreak-work>Â Â Â JeffJohnson: just tell all your coworkers “If you clone this branch, be aware that I WILL rewrite it, so don’t commit on it, and don’t base your own stuff on it, unless you know what you’re doing”
<PerlJam>Â Â Â JeffJohnson: why so much rebase?
<FauxFaux>Â Â Â Rebase is good and awesome.
<JeffJohnson>Â Â Â PerlJam: to merge multiple commits and edit commit messages
<bremner>Â Â Â so are sawzalls
<bremner>Â Â Â but you can cut off your foot with both
<cbreak-work>Â Â Â JeffJohnson: if you want to rewrite history, live with the consequences ![]()
<JeffJohnson>Â Â Â cbreak-work: mmh k, If I thing about it git push –force shouldnt be a problem, the branch is read-only for others and If i would make an force push other who cloned the repository should automatically have the new correct version of the branch after a git-pull, right?
<cbreak-work>Â Â Â (and be careful to not kill your father)
<JeffJohnson>Â Â Â :E
<cbreak-work>Â Â Â time travel is dangerous
<rane_>Â Â Â JeffJohnson: wrong
<JeffJohnson>Â Â Â rane_: :/
<rane_>Â Â Â unless git has changed
<rane_>Â Â Â they have to pull with rebase
<cbreak-work>Â Â Â JeffJohnson: they have to either reset or pull –rebase
<canton7>Â Â Â JeffJohnson, there are examples of what will happen if you push –force and they pull on man git-rebase
<jast>Â Â Â JeffJohnson: *automatic message* the ‘git-rebase’ manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html
<cbreak-work>Â Â Â depending on if they commit or not
<JeffJohnson>Â Â Â mmh yes
<dirker>Â Â Â cmn: the gitolite replication is “instant”?
<PerlJam>Â Â Â JeffJohnson: I use rebase all the time for the very reasons you cited, but I never have any problems sharing because I only rewrite my local history.
<JeffJohnson>Â Â Â ok, simply solution seems to be create a new branch with another name after the rebase ![]()
<cmn>Â Â Â dirker: IIRC you can set it up to be instant, yes, the docs will say how
<JeffJohnson>Â Â Â PerlJam: u dont push your branch to the server?
<cbreak-work>Â Â Â JeffJohnson: why do other people have to access the branch?
<dirker>Â Â Â cmn: ok thanks, I will check it out
<cbreak-work>Â Â Â I just declare my branches private
<PerlJam>   JeffJohnson: I do push my branch. I just don’t rebase stuff I’ve already pushed.
<cbreak-work>Â Â Â so everyone who uses them knows
<JeffJohnson>Â Â Â cbreak-work: they dont have to, but I want to have an backup for the branch and need to clone and work on it on other machines
<solofight>Â Â Â Silex, emacs, vim are becoming base installers and git is depending on them here. Any other way to eliminate that ?
<solofight>Â Â Â any stand alone installations ?
<cbreak-work>Â Â Â JeffJohnson: doesn’t sound like a problem
<JeffJohnson>Â Â Â PerlJam: after you rebased your branch with the master you will create a new branch and delete the old?
<PerlJam>Â Â Â JeffJohnson: no.
<cbreak-work>Â Â Â as long as all who use it know they have to pull –rebase
<solofight>Â Â Â Silex, or any package which bundles and delivers these as a single executable which less computer literate users can utilize to install ?
<cbreak-work>Â Â Â why delete a branch? that sounds dumb
<solofight>Â Â Â Silex, sorry for late reply
<JeffJohnson>Â Â Â PerlJam: than whats the trick to still work on the branch?
<PerlJam>Â Â Â cbreak-work: that’s what svn does ![]()
<cmn>Â Â Â solofight: what platform are you on?
<PerlJam>Â Â Â JeffJohnson: see that’s the thing .. there is no trick.
<cbreak-work>Â Â Â PerlJam: I rest my case
<JeffJohnson>Â Â Â PerlJam: after i do this i have a diverged history, and another rebase on to the master from this branch have weird results
<solofight>Â Â Â cmn, work in both windows and linux regularly and rarely on mac
<PerlJam>Â Â Â JeffJohnson: just don’t rewrite history you’ve already shared.
<solofight>Â Â Â cmn, in windows itself work both in xp and win 7
<JeffJohnson>Â Â Â PerlJam: how do you apply the master version to the branch?
<Silex>Â Â Â solofight: what? I don’t understand your question
<PerlJam>Â Â Â JeffJohnson: or, if you really must share “incomplete” work, do as cbreak-work said.
<cmn>Â Â Â solofight: I mean where you have your problem; on windows, you need to get the mingw/msys environment, there isn’t really a way around it
<JeffJohnson>Â Â Â PerlJam: or didnt you update the branch to the master revision?
<cbreak-work>Â Â Â what I do is not for sharing
<cbreak-work>Â Â Â it’s for backup
<cbreak-work>Â Â Â we have the master branch, and private/feature branches
<cbreak-work>Â Â Â only the person who makes the feature branch is supposed to work with it
<cbreak-work>Â Â Â so they are essentially private
<cbreak-work>Â Â Â you have to force push to the server if you want to update them
<JeffJohnson>Â Â Â PerlJam: how do you keep your branch after the rebase uptodate with the master?
<PerlJam>   apply the master version to the branch” for one thing. I use merge.
<PerlJam>Â Â Â oops
<solofight>Â Â Â Silex, you said we can use magit and fugitive right, these are for emacs and vim. my question is do we have a standalone whichreally not depending on other packages like vim or emacs
<cmn>Â Â Â solofight: on any Linux distro, the git or git-core packages should provide the base packages
<PerlJam>   JeffJohnson: I don’t use rebase to “apply the master version to the branch” for one thing. I use merge.
<cbreak-work>Â Â Â JeffJohnson: just rebase onto master again and again
<JeffJohnson>Â Â Â PerlJam: yes ok
<cbreak-work>Â Â Â until you’re ready to integrate it
<Silex>Â Â Â solofight: no
<cbreak-work>Â Â Â then fast forward merge it into master (or non-fast-forward if you like)
<solofight>Â Â Â cmn, the problem is different UI in different environment. so was wondering is there a UI tool which can work on all 3 OS
<cbreak-work>Â Â Â after it’s integrated, I usually delete it
<cbreak-work>Â Â Â because then it’s no longer useful
<Silex>Â Â Â solofight: gitk?
<Silex>Â Â Â or git gui
<JeffJohnson>Â Â Â cbreak-work: after rebasing my branch to the master, I also want to have all other master commits in the branch, that seems to be the problem
<cmn>Â Â Â solofight: as Silex says, gitk should run on almost anything (though I’m not sure about Windows) and kdiff3 should be portable to any platform because of Qt
<Silex>Â Â Â it runs on windows
<cmn>Â Â Â good
<PerlJam>Â Â Â JeffJohnson: Why don’t you use merge?
<JeffJohnson>Â Â Â PerlJam: when? To update the branch?
<cbreak-work>Â Â Â JeffJohnson: nah
<cbreak-work>Â Â Â that’s no problem
<JeffJohnson>Â Â Â its my problem:P
<cbreak-work>Â Â Â after rebasing onto master, you have all master commits
<PerlJam>   JeffJohnson: for anything appaerently ![]()
<cbreak-work>Â Â Â after rebasing onto master, all of master is your branch’s ancestor
<cbreak-work>Â Â Â so you have all its commits too
<JeffJohnson>Â Â Â cbreak-work: mmh ok, I missed that, than i have no problem:)
<JeffJohnson>Â Â Â thx
*Â Â Â NapDragon is now known as Spyro
<freddy>Â Â Â so, sorry for my poor skills in english :
<iivvoo>Â Â Â a colleague (web designer) has messed up my branch, doing some strange merges and reverts
<iivvoo>Â Â Â I know commit xyz is ok. can I git reset xyz to fix things?
<solofight>Â Â Â thank you Silex cmn
<lnx-hatt>Â Â Â iivvoo: git reset –hard xyz
<FauxFaux>   iivvoo: Sure. You might want to tag the old stuff first so it’s easier to get back if yuo want it.
<freddy>Â Â Â In my company, we are working on 4-5 differents websites which are made of many modules. We are in charge of these modules, and each module is managed by maven. We have some maven projects wich represent the differents website and set up the dependencies for each website. (SiteA needs moduleA in its version 2.3, moduleB in its version 3.1, etc)
*Â Â Â iivvoo seems to finally grasp git (and reset) ![]()
<freddy>Â Â Â For the moment, everything is versionned with subversion, in a single repository which contains many subdirectories, one per module. The real problem that we have with this architecture is to manage different versions of each module for each website on which we can deploy them. For exemple, WebsiteA needs the version 2.3 of moduleA, but WebsiteB needs the version 3.4 …
<freddy>Â Â Â It’s a bit complicated to make them consistant. As a git user, i’m trying to think about a workflow that would allow us to “think different” and manage all our constraints in the best way.
<freddy>Â Â Â (sorry again for the english…)
<iivvoo>Â Â Â and everything will work with other remote tracking branches if I push things back?
<rue>Â Â Â You may stop apologising now
<canton7>Â Â Â freddy, that, for once, actually sounds like the exact scenario for which git submodules were developed
<canton7>Â Â Â freddy, if each submodule is its own git repo, with whatever branches/tags you need to sort out the versioning
<canton7>Â Â Â freddy, then each project can require, as git submodules, whatever versions of whatever submodules it needs
<freddy>Â Â Â canton7, yes, i’ve heard about submodules. So I bought the book “Pro Git” in order to understand well how to use them, but i didn’t understand the way for keeping the “super repo” up to date
<freddy>Â Â Â therefore, i was thinking that was perhaps the wrong way to do
<canton7>Â Â Â what exactly do you mean by “up to date”?
<freddy>Â Â Â canton7, “aware” of its children evolutions
<canton7>Â Â Â freddy, that isn’t done automatically, but you can update all submodules with a single command
<iivvoo>Â Â Â hmm, I need to pull before I can push, and pulling is redoing the fauly commits again
<freddy>Â Â Â so each developper have to share his work in submodules, then afterthat, to share the updated super-repo ?
<canton7>Â Â Â yeah. it’s a slight pain, granted, but it means that the supermodule can guarantee exactly what commit (and therefore version) each of its submodules is at
<iivvoo>Â Â Â I guess I need rebase
<freddy>Â Â Â canton7, ok i see… What if a developper decide to checkout a branch in a submodule and update the supermodule after that ? It will refer to the branch head of the submodule ? Can’t it be confusing ?
<canton7>Â Â Â freddy, the supermodule only tracks the commit that the submodule is at. if the submodule was checked out at af23d45, and the developed checkes out master (of which the tip is af23d45), the supermodule won’t notice any difference
<freddy>Â Â Â canton7, yes i understand. Thank you for your answer. It’s a little complicated but I’ll continue to investigate that way
<freddy>Â Â Â canton7, so you advise me to make one super-repo for each website ?
<canton7>Â Â Â freddy, without knowing more that’s what I’d suggest, yeah
<freddy>Â Â Â canton7, ok, thanks a lot ![]()
<canton7>Â Â Â freddy, git submodules *are* more confusion that svn externals. But with that added complexity, you get more power at the end of the day. People often don’t need that power, which is why submodules get the label of being overly-confusing, but it sounds like you do
<freddy>Â Â Â canton7, ok I see. Does a supermodule (which is made of many submodules) have its own history ?
<canton7>Â Â Â freddy, sure. a supermodule is just a normal repo. the key point is that in addition to tracking files and folders, it can also track submodules
<iivvoo>Â Â Â this is harder than I thought
<iivvoo>Â Â Â I’m working on a remote tracking branch, revering locally doesn’t fix anything
<freddy>Â Â Â canton7, so an update in a submodule adds an entry to the supermodule history ?
<iivvoo>Â Â Â simplest solution would probably to checkout the known-good commit, branch from it and develop from there
<iivvoo>Â Â Â but it would be cleaner to somehow reset the original branch
<canton7>Â Â Â freddy, an update in a submodule will show up as an unstaged change in the supmodule, just as if you’d changed the contents of a file. you can then choose to add and commit that change, whereupon the supermodule will update its record of what commit the submodule should be at
<freddy>Â Â Â canton7, wow sounds great, I love this idea
<canton7>Â Â Â freddy, it does make sense, doens’t it?
P
<canton7>Â Â Â * ![]()
<canton7>Â Â Â yes, it’s a pain if you need to change the submodule, as you also need to change the supermodule… but you get that added level of control, which lets you decide “actually no, i don’t want this particular supermodule to point to my new commit in the submodule”
<freddy>Â Â Â canton7, yes, the concept is pleasant, i’m not sure i will be able to use it the right way, but i will try
<canton7>Â Â Â freddy, it’s worth setting up a few test repos and experimenting before trying to do anything with production code
<freddy>Â Â Â canton7, yes, that is what i’m going to do. Thanks again for your explanation
<canton7>Â Â Â freddy ok cool, no worries
<canton7>Â Â Â it’s worth re-reading the pro git stuff on submodules
<freddy>Â Â Â oui
<canton7>Â Â Â but give us a shout if you hit any big problems. submodules are a pretty common question
<freddy>Â Â Â yes*
<iivvoo>Â Â Â anyone? Please? How can I get my reverted branch in sync with the remote branch?
<iivvoo>Â Â Â eh.. reset branch
<freddy>Â Â Â ok, i won’t hesitate, thank you
<canton7>Â Â Â iivvoo, did you revert or reset?
<iivvoo>Â Â Â cantoma, reset
<iivvoo>Â Â Â reset –hard <good-commit>
<iivvoo>Â Â Â but now I’m behind the remote branch and need to pull to get back in sync, basically undoing the reset
<canton7>Â Â Â iivvoo, then you’ve got two choices. you can either push –force, which will be rewriting public history, and everyone else tracking the repo will have to reset that branch. or you can revert instead of reset (revert creates a commit which undoes the changes from antoher commit)
<iivvoo>Â Â Â revert sounds like what I need then
<canton7>Â Â Â reset yoruself back to where you were before the first commit (reset –hard origin/master, for example), then do the revert
<canton7>Â Â Â *before the first RESET, even
<iivvoo>Â Â Â reset + revert?
<iivvoo>Â Â Â I don’t really understand it – to what should I reset
<canton7>Â Â Â the reset is to undo the first reset you did, so it’s as if you never did it. then the revert is to do effectively what the reset did, but in a more history-friendly way
<iivvoo>Â Â Â right.. but pulling will also undo the reset
<canton7>Â Â Â true in this case, yes
<canton7>Â Â Â good point
<canton7>Â Â Â so just pull
<canton7>Â Â Â then revert
<iivvoo>Â Â Â ok, makes sense
<iivvoo>Â Â Â thanks
<sitaram>   dirker: instead of caching a repo locally, turn it around. Tell the user to push to the local (server) and in it you place a couple of lines as ‘post-receive’ that does ‘git push –mirror …’ to your second server. Done. (This is how gitolite mirroring works but you don’t need all of gitolite if this is all you want to do)
*Â Â Â ontologiae is now known as Montaigne
<dirker>Â Â Â sitaram: thanks, so basically all repositories in the master have a post-receive hook that immediately pushes to the mirrors
*Â Â Â Montaigne is now known as ontologiae
*Â Â Â ChanServ gives voice to ontologiae
<ontologiae>Â Â Â hello everyone
<ontologiae>Â Â Â sorry fo the traditionnal beginner question, i just would like to create a central repo on a server. It’s for a empty repo
<ontologiae>Â Â Â and all the tuorial i try failed
<iivvoo>Â Â Â canton7 things seem to be ok again, many thanks for the help ![]()
<m1sc>Â Â Â ontologiae: git init –bare ?
<Silex>Â Â Â a collaborator has to push a big repository (700Mb) over ssh, and it failed. We don’t have the error message so no clue… is this a known problem?
<Silex>Â Â Â is all we can do to ask to retry and give us the error message?
<ontologiae>Â Â Â m1sc : i made a git init –bare firstly on the server, i made a git config file for xinetd (9418 port), and when i’m trying to clone it don’t find it : “does not appear to be a git repository”
<canton7>Â Â Â iivvoo, ok sweet!
<canton7>Â Â Â Silex, stick GIT_TRACK=1 in front of the command
<cmn>Â Â Â isn’t it GIT_TRACE?
<canton7>Â Â Â yeah, typo
<canton7>Â Â Â sorry
<FauxFaux>Â Â Â Keys are right next to each other.
<canton7>Â Â Â my fingers have a mind of their own, and just go for a nearby word either than nearby keys
<canton7>Â Â Â *rather than
<canton7>Â Â Â ^^ as demostrated ![]()
<lnx-hatt>Â Â Â heh
<FauxFaux>Â Â Â Haha.
*Â Â Â FauxFaux does that, would like to see a good description of what’s actually going on inside my haed.
<canton7>Â Â Â agreed! I’m tempted to learn Cokemak, and see if re-training my fingers solves the problem
<canton7>Â Â Â *Colemak. Argh this is getting annoying
*Â Â Â FauxFaux is using colemak right now, on an unfamiliar keyboard, however, as my nice keyboard died this morning and I don’t keep spares in the office.
<canton7>Â Â Â ![]()
<Silex>Â Â Â canton7: cool, thanks for the tip
<cmn>Â Â Â Silex: if all else fails, you could ask him to send you a bundle over FTP or something else that’s resumable
<bgy>Â Â Â hi
<bgy>Â Â Â How could remove a file from a previous commit?
<FauxFaux>Â Â Â Fix it then git commit –amend.
<shruggar>Â Â Â bgy: describe your situation in more detail, please
<bgy>Â Â Â I created a branch, mobile_device, I commited some changes, some files, I’ve a total of 3 commits, in the first commit I added a file Version123, and in my last commit I added a file Version456 I want to rebase all thoses commit before rebasing master, and I’d like to remove the Version123 file which I don’t want to be in my repository
<sitaram>   dirker: something like that. If you’re asking about *gitolite* mirroring it’s a lot more complex than that but at the bottom of it all is still that same basic idea
<ontologiae>Â Â Â and gitolite just remove gl-easy-install
<bgy>Â Â Â shruggar: FauxFaux: well I got rebase + edit and amend my commit worked well, thanks anyway
<ontologiae>Â Â Â “sudo git-daemon –base-path=/home/git –verbose
<ontologiae>Â Â Â fatal: unable to allocate any listen sockets on port 9418″
<ontologiae>Â Â Â is it normal ?
*Â Â Â wyang is now known as Guest87267
<FauxFaux>   ontologiae: a) Why the hell are you running that as root? b) netstat -an | grep 9418
<ontologiae>Â Â Â FauxFaux: ok it’s a mistake, i discover sudo sv stop git-daemon works, but i dunno what is it
<bremner>Â Â Â sigh. It’s a foolishness with the Debian/Ubuntu git-daemon-run package
<bremner>Â Â Â it uses runit, which is a replacement for the standard init system
<wereHamster>Â Â Â why don’t they use upstart (in ubuntu)?
<bremner>Â Â Â did I mention I thought using runit for one package was foolish?
<drizztbsd>Â Â Â runit is not a replacement
<bremner>Â Â Â then wtf does it edit /etc/inittab for?
*Â Â Â lnx-hatt is now known as lnx
*Â Â Â bremner is still slightly scarred from his runit experience
<kaimi>Â Â Â is there a way to push to a git repo via https/gitweb like with hg and hgweb?
<bremner>Â Â Â gitweb no, https, yes.
<bremner>Â Â Â but I don’t know how well it works
<kaimi>Â Â Â bremner, where can i find documentation for this?
<bremner>Â Â Â kaimi: http://progit.org/2010/03/04/smart-http.html
<kaimi>Â Â Â thanks
<Kaapa>Â Â Â hey there
<Kaapa>Â Â Â when we do a git tag, does it automatically “pushes” that info to remotes?
*Â Â Â tj is now known as Guest26405
<Kaapa>Â Â Â cause after tagging, I do a git push and get a “everything up to date”
<milki>Â Â Â no it doesnt
<Kaapa>Â Â Â how do I push it?
<milki>Â Â Â well
<milki>Â Â Â it could
<milki>Â Â Â –tags?
<Kaapa>Â Â Â ah!
<Kaapa>Â Â Â perfect, thanks
<milki>Â Â Â np
<thiago>Â Â Â Kaapa: depends on where the tag is
<thiago>Â Â Â Kaapa: tags are pushed along with the commits that the tag points to
<thiago>Â Â Â Kaapa: if you tagged a commit that the remote already has, the tag won’t be pushed
<Kaapa>Â Â Â thiago: yeah, guess it was the case
<thiago>Â Â Â Kaapa: if you tagged a commit that is outside the branches you’re pushing, it won’t go either
<Kaapa>Â Â Â cause I just sent 2 tags now
<leeping>Â Â Â Hi there – is it a good or bad idea to set up a git repository in my home directory to keep track of a large number of files – not specifically for a software package, but just a collection of scripts and files that I’d like to keep synchronized?
<leeping>Â Â Â for instance, because I have access to many computers and want to keep a uniform set of commands, I’d like to have a git repository on my workstation and simply type “git pull” on the workstation to update all of my scripts
<leeping>   I am also curious, if I set up two git repositories, one in my home directory and one in a subdirectory, does this lead to strange conflicts? is this ill-advised or does it not matter?
<m1sc>Â Â Â leeping: you shouldn’t nest repos. a lot of people keep their dotfiles/scripts/.. in git repos, but probably it’s better not to make your home dir a repo.
<nkuttler>Â Â Â leeping: i just have a ~/dev/system/ that contains my stuff. run make install, done. different hosts need different files
<yrlnry>   nesting repos has always worked okay for me. Whats the concern?
<m1sc>Â Â Â yrlnry: you ignored the subrepos?
<yrlnry>Â Â Â I think Git ignored them automatically.
<yrlnry>Â Â Â It seemed to me that if you had a dir/.git directory in your working tree, Git would just ignore dir/ completely, and not look in there for changes.
<leeping>Â Â Â yrlnry, interesting .. so if I have $HOME/.git and $HOME/sub_dir/.git, the git repository in $HOME will ignore the changes in $sub_dir?
<yrlnry>   I think that’s what happens. That’s what has seemed to happen for me.
<leeping>Â Â Â Sorry my computer crashed .. if you guys answered my question, can you paste it? if not, no worries.
<leeping>   Ideally, I could have two git repositories, one in $HOME and one in $HOME/sub_dir, and I would be able to control their files independently. But I don’t know if this is a reasonable or logical thing to ask for
<bremner>Â Â Â leeping: there are lots of setups for managing dotfiles using symlinks or detached work trees.
<cbreak>Â Â Â leeping: you can have as many git repositories as you wan
<cbreak>Â Â Â twant
<EugeneKay>Â Â Â Almost all of them end in pain and suffering
<shirt>Â Â Â leeping: btw, channel logs in topic
<cbreak>Â Â Â and unless you bind them together with mechanics such as submodules, they are completely independent
<mrtazz>Â Â Â leeping: I usually just manage specific subfolders (.zsh or .vim) in git and symlink the toplevel rc files, which works quite good for me
<mrtazz>Â Â Â leeping: of course it’s a bit more to set up than just `git pull`
<leeping>Â Â Â mrtazz, I see what you mean.
that is very helpful.
<leeping>Â Â Â shirt, thanks!
*Â Â Â ries_ is now known as ries
*Â Â Â Praise- is now known as Praise
<j4cbo>Â Â Â is there an option to gitk that will make it show *all* commits, even those not on any branch?
<j4cbo>Â Â Â gitk –all shows all branches, but not everything
<FauxFaux>Â Â Â j4cbo: gka() { gitk –all $(git log -g –format=”%h” -50) “$@”; }; gka
<davegb3>   can i change the date of the last commit – commit –amend and rebase -i don’t seem to have any affect on the date. I’d like the date to be “now”.
<FauxFaux>Â Â Â j4cbo: Or with git fsck –unreachable or whatever the flag is.
*Â Â Â |davegb3| is now known as davegb3
<EugeneKay>Â Â Â davegb3 – revert back, commit again?
<EugeneKay>Â Â Â Er, reset*
<davegb3>   EugeneKay: ah, ok. do you happen to know which form of reset I’d need?
<EugeneKay>Â Â Â Â soft
<davegb3>Â Â Â super, thank you!
<EugeneKay>Â Â Â Though if you have changed files, I believe it’d need to be –mixed
<EugeneKay>Â Â Â Consult the man page
<davegb3>Â Â Â nope, everything is committed, it’s just the date that’s wrong (I’ve squashed a lot of commits into one, and I’d like to the date to be now, rather than the date of the first commit)
<davegb3>Â Â Â I’m reading the man page now – many thanks.
<EugeneKay>Â Â Â Well, there you go then.
<davegb3>Â Â Â EugeneKay: that worked like a charm. And now i understand what reset –soft is for
 thanks again.
<EugeneKay>Â Â Â Works good for stashing-without-using-stash
<cbreak>Â Â Â stop spamming Liquid-Silence
<canton7>Â Â Â missed him ![]()
<ningia>Â Â Â hi all
<canton7>Â Â Â hi
<EugeneKay>Â Â Â Hola
*Â Â Â verto is now known as wyrd
<LeoJweda>Â Â Â hi, i know what origin in “git push origin master” is, but what’s master? is it the branch on my local repo that’s being pushed or is that the target branch in the remote repo?
<kevlarman>Â Â Â LeoJweda: both
<kevlarman>Â Â Â sort of
<LeoJweda>Â Â Â kevlarman: well, I’m starting a new project and I’m planning to use this model for my branching: http://nvie.com/posts/a-successful-git-branching-model/
<LeoJweda>Â Â Â kevlarman: basically, you develop in a “develop” branch then merge with master when you’re ready to deploy
<kevlarman>Â Â Â if master isn’t a tracking branch, then it’s used as both the local and remote branch name, otherwise it’ll use branch.master.merge instead
<LeoJweda>Â Â Â so I’m ready for my first push, how do I push to develop (not master)?
<kevlarman>Â Â Â git push -u origin develop
<kevlarman>Â Â Â (-u turns it into a tracking branch so you won’t have to specify the branch name/remote explicitly later on)
<LeoJweda>Â Â Â kevlarman: that’s what I thought
What about the local repo?
<kevlarman>Â Â Â what about it?
<LeoJweda>Â Â Â kevlarman: so I’ll basically be pushing from my local master to the remote develop?
<kevlarman>Â Â Â no
<kevlarman>Â Â Â from your local develop to remote
<LeoJweda>Â Â Â kevlarman: so it switches my local branch to develop too?
<kevlarman>Â Â Â no
<LeoJweda>Â Â Â kevlarman: well, right now all i did was an init and an add ., am i on master locally now?
<kevlarman>Â Â Â yes
<canton7>Â Â Â kevlarman, git push doesn’t use any tracking information by default, see https://gist.github.com/1053846
<canton7>Â Â Â (even if tracking info exists)
<LeoJweda>Â Â Â kevlarman: so what happens when I do git push origin develop since I don’t have a local develop? and is there a way to switch my local branch to develop too (if that’s what i need to do)
<canton7>Â Â Â LeoJweda, you might like github.com/nvie/gitflow
<kevlarman>Â Â Â LeoJweda: it won’t let you
<kevlarman>Â Â Â you’ll want to create the branch locally first
<rue>   (Activity Monitor sampler – no need to even GDB!)
<rue>Â Â Â Sorry, mischan.
<canton7>Â Â Â wrong window? ![]()
<canton7>Â Â Â heh
<LeoJweda>Â Â Â canton7: Thank you so much!
<LeoJweda>Â Â Â kevlarman: thanks for answering my questions, i now know what the parameters for git push are ![]()
<canton7>Â Â Â LeoJweda, it’s no replacement to knowing what’s going on under the hood, but it makes life easier by reducing typing
<LeoJweda>Â Â Â canton7: I understand the article completely, i’m just having trouble with the initial setup. i’ll give gitflow a shot ![]()
<kevlarman>Â Â Â annoying thing about git is that easy stuff seems harder than it should be at first
<kevlarman>Â Â Â awesome thing about git is that stuff that seems like it should be hard is as easy as the easy stuff once you know how it actually works
*Â Â Â ries_ is now known as ries
<Baribal>Â Â Â Hi. I used the instructions from Git Pro (http://progit.org/book/ch4-2.html) to create a blank ssh-accessible repository on a server. I also created a local repository and committed some code. I thought that now I could simply ‘git push ssh://username@host/~/my/project/directory.git/’, but this is what I get: http://paste2.org/p/1701301Â Â Â Â Â I’m very n00b when it comes to git, but isn’t master the branch to which everything gets committed
<Baribal>Â Â Â as long as I don’t branch? Or does the error message refer to a local branch? In which case, shouldn’t it default to the branch I’m on (which, as I haven’t checkout’ed anything, should be master, I guess)? What am I missing?
<sadmac>Â Â Â Baribal: I think you always have to specify a target branch for push.
<sadmac>Â Â Â Baribal: git push ssh://… master
<jakobm>Â Â Â Baribal: there is no matching branch (i.e. a branch with the same name as your currently checked out) on the remote, you have to explicitly specify it as suggested in the error message
<SamB>Â Â Â Baribal: try “git branch” to see what you’re actually on
*Â Â Â naee is now known as eean
<Baribal>Â Â Â Yup, it’s master, but it seems I really had to specify it explicitly. Thanks.
<canton7>Â Â Â Baribal, https://gist.github.com/1053846 might be interesting
<Baribal>Â Â Â jakobm, so… master gets created on the first commit, was that the problem?
<jakobm>Â Â Â in this case, yes, the gist canton7 linked explains the different default-pushing cases
<canton7>Â Â Â (and the confusing default, which definitely isn’t what people expect)
*Â Â Â dwmw2_gone is now known as dwmw2
*Â Â Â _psychic__ is now known as _psychic_
*Â Â Â d0k_ is now known as d0k
<arnpro>Â Â Â after I set up git serverand try to clone the gitosis-admin.git repo it keeps asking or a password, but I never enabled 1,in fact I did adduser with –disable-password param
<kevlarman>Â Â Â arnpro: 1) gitosis is deprecated, 2) that means your key isn’t set up properly
<m1sc>Â Â Â arnpro: !gitosis
<jast>Â Â Â arnpro: *automatic message* 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
<arnpro>Â Â Â oooo, that’s why then… how can I get rid of it?
<arnpro>Â Â Â heh I have tried so many things to get my git server to work, without success
<arnpro>Â Â Â kevlarman: when Im making my client rsa key, when trying to scp it, it keeps asking for a password I’m using this: scp ~/.ssh/git.pub git@hostname:git.pub
<kevlarman>Â Â Â arnpro: that’s not how you do it
<arnpro>Â Â Â kevlarman: may you tell me how? I’m afraid I might be following the wrong tutorials…
<kevlarman>Â Â Â arnpro: you add the key to your gitosis-admin
<kevlarman>Â Â Â or gl-admin or w/e
<kevlarman>Â Â Â (don’t use gitosis)
<arnpro>Â Â Â I removed gitosis
<arnpro>Â Â Â which key are you referring to? my server’s or my client’s?
<kevlarman>Â Â Â your client’s
<arnpro>Â Â Â ok, I read you firstneed to generate it, then scp it to the server, correct?
Oct 102011