Re: git problems
- From: Claude Paroz <claude 2xlibre net>
- To: Tirumurti Vasudevan <agnihot3 gmail com>
- Cc: GNOME i18n <gnome-i18n gnome org>
- Subject: Re: git problems
- Date: Sat, 11 Sep 2010 12:24:50 +0200
Le samedi 11 septembre 2010 à 15:35 +0530, Tirumurti Vasudevan a écrit :
> in an attempt to update the gnome-color-manager of gnome 2.32 which is
> spoiling my statistics i tried and failed.
> pl see the msg and suggest what to do.
> regards
> drtv
> ------------------------------
>
> drtv narayana:~/git$ cd ..
> drtv narayana:~$ cd gnome-color-manager/po
> drtv narayana:~/gnome-color-manager/po$ git branch
> * master
> drtv narayana:~/gnome-color-manager/po$ git checkout --track
> origin/gnome-2-30
> error: You have local changes to 'po/ta.po'; cannot switch branches.
As the message states, you have changes in po/ta.po. Now it depends on
what are those changes:
- if po/ta.po changes are not significant (maybe an intltool-update
result), just drop the changes with "git checkout po/ta.po" that will
restore the original committed file.
- if po/ta.po contains important changes you want to commit on a branch,
just copy the file under a new name (cp po/ta.po po/ta-tmp.po), reset
the original file (git checkout po/ta.po), checkout the new branch and
restore the file (mv po/ta-tmp.po po/ta.po).
Just a note for those who could have suggested to stash the changes,
depending on the origin of the po file (maybe a merge on
l10n.gnome.org), reapplying the stash in a branch might reveal almost
impossible.
HTH,
Claude
> drtv narayana:~/gnome-color-manager/po$ git checkout --track
> origin/gnome-2-32
> error: You have local changes to 'po/ta.po'; cannot switch branches.
> drtv narayana:~/gnome-color-manager/po$ git branch -a
> * master
> remotes/origin/HEAD -> origin/master
> remotes/origin/gnome-2-30
> remotes/origin/gnome-2-32
> remotes/origin/master
> drtv narayana:~/gnome-color-manager/po$ git push origin gnome-2-32
> error: src refspec gnome-2-32 does not match any.
> error: failed to push some refs to
> 'ssh://vasudeven git gnome org/git/gnome-color-manager'
> drtv narayana:~/gnome-color-manager/po$
>
> --
> http://www.swaminathar.org/
> http://aanmikamforyouth.blogspot.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]