From: Matthieu Stigler <matthieu.stigler@gmail.com>
To: git@vger.kernel.org
Subject: How to push properly a la subversion
Date: Wed, 29 Jul 2009 20:32:46 +0200 [thread overview]
Message-ID: <4A7095CE.8030307@gmail.com> (raw)
Hi
I'm discovering git switchig from svn, so I'm still confused... I want
actually to use git but keeping this idea of one common/public repo that
different users push/pull from.
I tried just by cloning A to B, changing/commiting B and the pushing to
A but: then on A the last log is integrated but I have this message with
gitk "local changes checked in to index but not commited", and those
local changes are actually the version of A before the commit from B
:-( What I expected with svn mentality is that A is changed and updated...
So 2 questions:
-how to remedy?
-hot to avoid?
I could remedy on A by git reset --hard, but ideally I would not need to
remedy to that...
Should I enter a specifical push option? Or rather work on section
"Setting up a shared repository"? in
http://www.kernel.org/pub/software/scm/git/docs/gitcvs-migration.html ?
I tried to do it entering:
$ mkdir /pub/my-repo.git
$ cd /pub/my-repo.git
$ git --bare init --shared
$ git --bare fetch /home/alice/myproject master:master
but then I get also this message "local changes checked in to index but
not commited" and especially there are many git files appearing that we
would not want to see.... And furthermore it seems there are complicated
permissions/ssh issues that I don't need (I'm doing for now only locally).
So can those new files be avoided? What is the best way to set-up git to
have kind of central repo?
Thanks for your precious help!!
Matthieu Stigler
next reply other threads:[~2009-07-29 18:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-29 18:32 Matthieu Stigler [this message]
2009-07-29 19:12 ` How to push properly a la subversion Avery Pennarun
2009-07-29 19:50 ` Dmitry Potapov
[not found] ` <111060c20907300111u4345b1f1x784229c066fb3f88@mail.gmail.com>
2009-07-30 11:54 ` Dmitry Potapov
2009-08-04 7:17 ` Matthieu Stigler
2009-08-04 12:04 ` Dmitry Potapov
2009-08-04 21:15 ` Nanako Shiraishi
-- strict thread matches above, loose matches on Subject: below --
2009-07-30 10:11 Matthieu Stigler
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A7095CE.8030307@gmail.com \
--to=matthieu.stigler@gmail.com \
--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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).