Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [] EGit Guidelines


I've tried to recover a lost commit via EGit, by creating a new branch, doing a commit and resetting the branch to a previous commit.

I haven't found a way/option along the GUI it provides (Eclipse Views, Commits editor, etc) to recover it.

For command line users, I've found some interesting info here [1]

I was able to recover said commit following the guide


Best Regards,

El 29/07/2011 16:24, Ed Willink escribió:
HI Axel

Once again, I've not received one of your mailing list messages... Fortunately it was appended to Larent's message.

I definitely succeeded in switching to the remote tracking branch. So far, this seems reasonable because I may only wish to review it.

However thereafter I managed to make changes. At no point did I create a similar local branch, which the list of local branches confirms.

I certainly committed changes from/to somewhere, and I'm fairly sure that it was on the local tracking branch, though after so many
resets and rebases I could have made a mistake.

Anyway, at least I've learnt another lesson without losing any significant code.



On 29/07/2011 15:15, Laurent Goubet wrote:
On 29/07/2011 15:44, Axel Uhl wrote:
If you checked out "bug/....." then you're on your local branch. A remote branch probably wouldn't even allow you to commit to it. I presume, your changes should be in your local bug/..... branch.

Not sure I understand your second question. When you fetch a remote branch into a local tracking branch, there should be two branch tags: remote/origin/bug/..... and bug/..... where the former is the tag for the remote branch which AFAIK only is modified by fetch/push operations, and the latter is your local branch which will be advanced, e.g., by commit, merge and rebase operations.

Usually, you work away on your local bug/..... branch by doing commits. At some point you may push the local branch to the remote (e.g., origin) which will automatically update your remote/origin/bug/..... tag to match the remote repository's bug/..... tag.

-- Axel

_______________________________________________ mailing list

Open Canarias, S.L.
Adolfo Sánchez-Barbudo Herrera
C/Elías Ramos González, 4, ofc. 304
Tel.: +34 922 240231

Back to the top