git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: nicofari64 <nicola.farina@info-line.it>
To: git@vger.kernel.org
Subject: Help with subtree pull / push
Date: Tue, 27 May 2014 06:55:58 -0700 (PDT)	[thread overview]
Message-ID: <1401198958683-7611751.post@n2.nabble.com> (raw)

Hi
I am new to git, trying to see if I can use it at my work place to replace
Starteam.
There is only one Starteam feature that I miss, comparing it to git: shared
files.
Most projects, here, use lot of shared files, and Starteam handle these
pretty easily.
You just check in (commit + push in git terms) these files in Starteam
central repo and every project that "share" them see these as "out-of-date"
(so you know you have to "check out" (pull)). 
Very handy.
For every other aspect (not least ... ehm .. the price) Git seems better to
me: it handles much better moving and creating files, and I like the
distributed and "tree-oriented" approach better.
But shared files are a problem.
After lot of google search I came to the idea of using git subtree, to
achieve the same results of Starteam shared files.
So I have created 4 remote bare repositories, 1 for the main app and 3 for
the shared files parts.
After making some changes in shared files though I got in trouble:
subtree push keeps give me this error:

error: failed to push some refs to
'//vm2003test/OuvertureWebShared/Ouverture'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Obviously I have already made the pull command (as suggested in the message)
and it says to me
that everything is up to date.

On SO there is the very same question
(http://stackoverflow.com/questions/13756055/git-subtree-subtree-up-to-date-but-cant-push)
but I was unable to try the proposed solution since my git client
(GitExtensions on windows) does not support apparently the grave accent.
Moreover I don't actually understand that workaround.
Thanks for any help
Bye
Nicola



--
View this message in context: http://git.661346.n2.nabble.com/Help-with-subtree-pull-push-tp7611751.html
Sent from the git mailing list archive at Nabble.com.

                 reply	other threads:[~2014-05-27 13:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1401198958683-7611751.post@n2.nabble.com \
    --to=nicola.farina@info-line.it \
    --cc=git@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).