Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On 24/11/10 21:42, Julien Nabet wrote:
Hello,

I'm a little lost with git again now.
Yesterday, i made first patches by using :
git commit -a

git format-patch HEAD~1


Now i do :
bin/g pull -r

and i got this :
===== components =====
usage: git merge-base [-a|--all] <commit> <commit>...

    -a, --all             outputs all common ancestors

usage: git merge-base [-a|--all] <commit> <commit>...

    -a, --all             outputs all common ancestors
...

You are not currently on a branch, so I cannot use any
'branch.<branchname>.merge' in your configuration file.
Please specify which remote branch you want to use on the command
line and try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.


I don't understand why it talks about "branch". I don't want to merge
anything, i just want to fetch the last version of the main repository.

You should be on the "master" branch. Sounds like something's gone
wrong. Type "git branch" where you are, to see what's going on.

Could anybody help me ?

Does that help a bit? To fix things further, you shouldn't be doing your
changes on master - it makes life a little difficult :-)

Go to http://wiki.documentfoundation.org/Development and look at
"Managing git branches". Do *all* your development on a feature branch,
they're incredibly cheap performance-wise, and they make it so much
easier when  you're faffing about with patches. And if you mess up,
they're so much easier to throw away! :-) You don't need to wipe your
development directory and re-pull the entire thing :-)

Cheers,
Wol

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.