From: Jan Wielemaker <wielemak@science.uva.nl>
To: git list <git@vger.kernel.org>
Subject: Some git mv questions
Date: Tue, 16 Oct 2007 17:33:49 +0200 [thread overview]
Message-ID: <200710161733.49185.wielemak@science.uva.nl> (raw)
Hi,
For the impatient, start [HERE].
I'm about to start shuffling files and directories around in a big project,
while others keep working on their files. This is a bit scary as I
still feel pretty much newbie in the GIT world :-)
I did a little test as follows. Given a shared repository sandbox.git
with a file in there I did the following, which worked fine.
* [player one] clone the DB, edit the file, commit and push
* [player two] clone the DB
- git branch shuffle
- git checkout shuffle
- mkdir SomeDir
- git mv file SomeDir
- edit SomeDir/file
- git commit -a
* Sofar so good, now merge:
- git checkout master
- git pull (get player 1 changes)
- git merge shuffle
- git branch -d shuffle
- git commit -a
- git push
Sofar so good, but during the tests I had two times problems:
* Instead of "git mv file SomeDir" I simply used "mv file SomeDir"
and git-add. Now I end up with two files and of course the changes
are not merged. I can understand that.
[HERE]
* On a somewhat bigger test I moved a large directory using
"git mv dir newdir" (where newdir is an existing directory).
Now "git status" gives a lot of new and deleted files!? I
guess I'm going to have a big mess if that happens in the
real project. Moving some smaller test directories simply
showed a series of renames.
Can this be explained? Is this a bug?
Thanks --- Jan
next reply other threads:[~2007-10-16 15:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-16 15:33 Jan Wielemaker [this message]
2007-10-16 16:05 ` Some git mv questions Lars Hjemli
2007-10-16 17:34 ` Linus Torvalds
2007-10-16 21:09 ` Jan Wielemaker
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=200710161733.49185.wielemak@science.uva.nl \
--to=wielemak@science.uva.nl \
--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).