<br><br><div class="gmail_quote">On Tue, Dec 28, 2010 at 3:47 PM, Art Hunkins <span dir="ltr"><<a href="mailto:abhunkin@uncg.edu">abhunkin@uncg.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
James,<br>
<br>
Thanks for your wonderful, clear and understandable instructions. They work wonderfully and all my problems are gone.<br>
<br>
BTW, your procedure is *much* more user-friendly (and simpler) than any of the git material on the wiki. It would really be helpful to have your easy step-by-step available online: perhaps one procedure for initial commit, and one for followups (like for my case). Of all the challenges I've faced with Linux/Sugar, perhaps gitorious has been the greatest and most frustrating.<br>
</blockquote><div><br>Can you tell me where in the wiki you were finding confusing instructions so we can update them?<br><br>-walter<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Please advise me on one point: once the local repo is established (filemix.git), what's the simplest way to copy all my (revised) activity files (including subdirectory) to filemix.git? When preparing a new push, I've often forgotten just which files I've modified, and don't wish to omit any (and so would use git add . for the following step). Let's say that the source files were in FileMix.activity and that both FileMix.activity and filemix.git were in the Activities folder.<br>
<br>
Once again, many thanks.<br>
<br>
Art Hunkins<br>
<br>
----- Original Message ----- From: "James Cameron" <<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>><br>
To: "Art Hunkins" <<a href="mailto:abhunkin@uncg.edu" target="_blank">abhunkin@uncg.edu</a>><br>
Cc: <<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a>><br>
Sent: Monday, December 27, 2010 11:09 PM<br>
Subject: Re: [Sugar-devel] git problems (reprise)<div><div></div><div class="h5"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Mon, Dec 27, 2010 at 10:27:26PM -0500, Art Hunkins wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
then:<br>
git init<br>
</blockquote>
<br>
This is where you went wrong. You've created an entirely new repository<br>
instead of cloning the existing one.<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
git add <the three changed files - as listed below><br>
git status<br>
<everything looks good><br>
<br>
the console output then picks up and tells the rest of the story:<br>
<br>
[liveuser@localhost FileMix.activity]$ git commit -a -m"Version 4<br>
changes: ObjectChooser and Sugar-version ID reworked"<br>
[master (root-commit) 3b7e345] Version 4 changes: ObjectChooser and<br>
Sugar-version ID reworked<br>
3 files changed, 494 insertions(+), 0 deletions(-)<br>
create mode 100755 FileMixReadMe.txt<br>
create mode 100755 activity/<a href="http://activity.info" target="_blank">activity.info</a><br>
create mode 100755 filemix.py<br>
[liveuser@localhost FileMix.activity]$ git push<br>
gitorious@git.sugarlabs.org:filemix/mainline.git<br>
To gitorious@git.sugarlabs.org:filemix/mainline.git<br>
! [rejected] master -> master (non-fast-forward)<br>
error: failed to push some refs to<br>
'gitorious@git.sugarlabs.org:filemix/mainline.git'<br>
To prevent you from losing history, non-fast-forward updates were rejected<br>
Merge the remote changes before pushing again. See the 'non-fast-forward'<br>
section of 'git push --help' for details.<br>
</blockquote>
<br>
As you guess, the push is where the problem happened. The cause<br>
of this error is that you are trying to push from a repository that<br>
doesn't have the same history of change. This is because your new local<br>
repository is totally unrelated to the remote repository. It is<br>
unrelated because it was created with "git init" instead of "git clone".<br>
<br>
You might do one of these things:<br>
<br>
1. clone into a new directory, copy those changed files into it,<br>
commit, and push again,<br>
<br>
2. understand the difference between the history of your local<br>
repository and the remote repository, and adjust it somehow, such as<br>
with a merge before a push.<br>
<br>
I recommend (1) above. I don't recommend (2), although it is possible,<br>
it is not necessary.<br>
<br>
I'm happy to try to help you through this, and I've cloned the<br>
repository git://<a href="http://git.sugarlabs.org/filemix/mainline.git" target="_blank">git.sugarlabs.org/filemix/mainline.git</a> so that I can be<br>
prepared to answer questions.<br>
<br>
Expanding on (1) above:<br>
<br>
git clone gitorious@git.sugarlabs.org:filemix/mainline.git filemix.git<br>
cd filemix.git<br>
cp ${THOSE_FILES} .<br>
git add FileMixReadMe.txt activity/<a href="http://activity.info" target="_blank">activity.info</a> filemix.py<br>
git commit -m 'Version 4 changes: ObjectChooser and Sugar-version ID reworked'<br>
git push<br>
<br>
-- <br>
James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a> <br>
</blockquote>
<br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Walter Bender<br>Sugar Labs<br><a href="http://www.sugarlabs.org">http://www.sugarlabs.org</a><br><br>