All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Piquesel <piquesel@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] application make file
Date: Sat, 19 Jun 2010 20:20:10 +0200	[thread overview]
Message-ID: <4C1D0A5A.5020102@domain.hid> (raw)
In-Reply-To: <A06A3D41-9246-4973-92E4-97BB33A92468@domain.hid>

Piquesel wrote:
> Le 19 juin 2010 à 13:02, Gilles Chanteperdrix a écrit :
> 
>> Bruno Rouchouse wrote:
>>> Hi Gilles,
>>> 
>>> I do understand your point an mostly agrees with it. What you say
>>> is really common sense.
>>> 
>>> However, I would object 2 points: first it's everyone's freedom
>>> to help someone or not even if it is a dummy question. In fact,
>>> due to my knowledge, I can help only on those ;)
>>> 
>>> Second, it's not so easy when you start using a technology to
>>> find all the right pointers and have all the answers. For
>>> instance, I'm still struggling with lot's of git features and
>>> workflow although everything is documented. Reading all man pages
>>> does not really help me for every use case.
>> Well maybe for git, a simple approach is to set-up some git
>> repository locally, then try git commands, without any risk to
>> break anything. You can also set-up a bare repository to play with
>> push and fetch.
>> 
> Yes that's what I did in fact. I guess I can post this use case here
> because it may be of some interest to some other xenomai users.
> 
> My workflow is quite standard I think and I did find a way to handle
> it. Not sure it is the best one though.
> 
> I clone locally from xenomai git repository. I create also my own
> branch on my local repository but I also need a git repository on
> github in order to access to my tree from different machines.
> 
> In terms of git commands, here's what I did:
> 
> * Cloned Xenomai repository on my local machine git clone
> git://xenomai.org/xenomai-head.git and created from there my own
> branch : git branch benchlib
> 
> * Pushed once this local copy to github in order to populate my
> remote repository (git push)
> 
> The thing I'm not sure about is now how to handle update process of
> my local and github repositories when xenomai-head evolves. I need to
> keep both in sync with Xenomai development tree. Makes sense?
> 
> What I do (on my local rep) currently is: (on my local repository) 
> git checkout master git pull (on my local rep) to update my tree with
> the latest xenomai commits git checkout benchlib git rebase master
> (in order to have my branch in sync with the latest release)
> 
> Here comes a first pain: I get plenty of conflicts due to Makefile.in
> changes. So what I did is just launching the bootstrap script to
> update them in my tree and then do a: git rebase --continue

You probably have conflicts because you made change locally, the answer
is simple: if you want to make changes locally, use the same version of
autotools as me, that is:
autoconf 2.65
automake 1.10.1

> 
> Finally, when my tree is up to date, I still need to update my githup
> repository and I'm not so clear on how to do that.
> 
> When I use git push git@domain.hid, I
> get some non-fast forward errors. I found some explanations on
> different forums. I'm not sure I really understand what I'm doing
> here but I get around this problem like this:
> 
> git fetch origin
> 
> and then I can push via git push -f
> git@domain.hid
> 
> Well, I don't know if I'm very clear :-) I'll draw a diagram if
> needed.

No, I do not get it here. As soon as you rebase, you modify your branch'
history and have to use push -f. There is nothing wrong with that.

-- 
					    Gilles.



      reply	other threads:[~2010-06-19 18:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-17  8:28 [Xenomai-help] application make file Everett Wang
2010-06-17  9:40 ` Gilles Chanteperdrix
2010-06-17 11:16   ` Gilles Chanteperdrix
2010-06-17 15:39     ` Everett Wang
2010-06-17 15:46       ` Gilles Chanteperdrix
     [not found]       ` <C159A093-EA69-4903-8114-145C4355A0C0@domain.hid>
2010-06-19  7:34         ` Everett Wang
2010-06-19  9:02           ` Wolfgang Grandegger
2010-06-19  9:43           ` Gilles Chanteperdrix
     [not found]             ` <2DD1EFE4-AE92-4F78-9BAF-7441D7D0DB3E@gmail.com>
2010-06-19 10:45               ` Gilles Chanteperdrix
2010-06-19 16:05                 ` Piquesel
2010-06-19 18:14                   ` Gilles Chanteperdrix
2010-06-19 11:02               ` Gilles Chanteperdrix
2010-06-19 15:00                 ` Everett Wang
2010-06-19 18:08                   ` Gilles Chanteperdrix
2010-06-19 15:55                 ` Piquesel
2010-06-19 18:20                   ` Gilles Chanteperdrix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C1D0A5A.5020102@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=piquesel@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.