Is it possible to get a general idea of the commands you ran push local
commits?  I am no git ninja so I want to be sure I don't push any local
commits.

As a side, I have what I hope is a very conservative development model
below.  If I am doing something dangerous, please let me know!

to work on a jira:

git checkout trunk
git checkout -b FLUME-XXXX
git commit -m "commit message"
git commit -m "commit message"
git commit -m "commit message"
git merge trunk
git diff --no-prefix trunk > /tmp/FLUME-XXXX.patch

and to commit something to trunk

git checkout trunk
patch -p0 --dry-run < /tmp/FLUME-XXXX.patch
patch -p0 < /tmp/FLUME-XXXX.patch
mvn test
git status
git diff
git commit -m "commit message"

Brock

On Thu, Aug 16, 2012 at 2:35 AM, Juhani Connolly <
[email protected]> wrote:

> The local commits of mine that were pushed were just me applying the same
> patches that were applied to the trunk, just in a slightly different order.
> I did do a diff against the trunk  before pushing, and the only difference
> was the contents of the patch. The final state of the trunk should  be
> consistent with what it was before + the changes from 1382.I was under the
> false assumption I had grokked git from using it internally but clearly
> missed some details. Seeing as this apparently cannot easily be reversed I
> will take extra care in the future.
>
>
> On 08/15/2012 05:25 PM, Hari Shreedharan wrote:
>
>> Don't worry about it. We don't seem to have lost any data, just that
>> there are some local commits of yours which you probably didn't intend to
>> push. I am hoping this will be fixed soon, so we can reopen trunk for
>> commits.
>>
>>
>> Hari
>>
>>
>


-- 
Apache MRUnit - Unit testing MapReduce - http://incubator.apache.org/mrunit/

Reply via email to