Re: Question about git



On Mon, May 25, 2009 at 12:59 PM, Tirumurti Vasudevan
<agnihot3 gmail com> wrote:
> running into similar problem again i resolved it following the advice
> offered here.
> i post this here so that anyone with similar problem can benefit
>
> ---
> drtv narayana:~$ cd git/gedit/po
> drtv narayana:~/git/gedit/po$ git status
> # On branch master
> # Changed but not updated:
> #   (use "git add <file>..." to update what will be committed)
> #
> #       modified:   ../AUTHORS
> #       modified:   ../BUGS
> blah blah many lines...
> #       modified:   ../data/gedit.pc.in

This is extremely weird. Files such as 'AUTHORS', 'BUGS' are rarely changed.
I cannot understand how it is possible for these files to get modified when you
simply use 'git' commands in the repository.
Even if you compiled 'gedit', these files should not be affected in any way.

It would be very helpful if you could provide a list of commands that
can reproduce
this situation where you get all those 'modified' files.
That is, starting from

git clone ssh://vasudeven git gnome org/git/gedit

In addition, since git claims that a file such as 'AUTHORS' is modified,
you can request from git to show the modifications. You can do

git diff AUTHORS

I am really puzzled as to what the changes might be.

Finally, could you please run

git --version

in order to identify the version of git that you are using.

Cheers,
Simos

> drtv narayana:~$ cd git/gedit/po git pull --rebase
> gedit/dialogs/gedit-encodings-dialog.h: needs update
> ....blah blah... some 500 strings
>
> win32/README: needs update
> win32/gedit.iss.in: needs update
> refusing to pull with rebase: your working tree is not up-to-date
>
> drtv narayana:~/git/gedit/po$ git reset --hard
>
> HEAD is now at 472f028 Updated Tamil translation
>
> drtv narayana:~/git/gedit/po$ git pull --rebase
> remote: Counting objects: 302, done.
> remote: Compressing objects: 100% (163/163), done.
> remote: Total 247 (delta 207), reused 99 (delta 84)
> Receiving objects: 100% (247/247), 49.54 KiB | 11 KiB/s, done.
> Resolving deltas: 100% (207/207), completed with 55 local objects.
> From ssh://vasudeven git gnome org/git/gedit
>   15cbac4..a2f55e0  master     -> origin/master
> First, rewinding head to replay your work on top of it...
> Applying Updated Tamil translation
>
> drtv narayana:~/git/gedit/po$ git commit ta.po -m "Updated Tamil translation"
>
> (looks like this was not needed)
>
> # On branch master
> # Untracked files:
> #   (use "git add <file>..." to include in what will be committed)
> #
> #       ta.po~
> nothing added to commit but untracked files present (use "git add" to track)
>
> drtv narayana:~/git/gedit/po$ git push
> Counting objects: 7, done.
> Compressing objects: 100% (4/4), done.
> Writing objects: 100% (4/4), 2.76 KiB, done.
> Total 4 (delta 3), reused 0 (delta 0)
>
> To ssh://vasudeven git gnome org/git/gedit
>   a2f55e0..ecf3af2  master -> master
> drtv narayana:~/git/gedit/po$
> --
>
> done! whew!
>
> On Sun, May 24, 2009 at 9:32 PM, Tirumurti Vasudevan <agnihot3 gmail com> wrote:
>> When you are in doubt, it is good to clean up your local repository and make it
>>> match to what is available on git.gnome.org. That is 'git reset
>>> --hard' and then 'git up' (see below).
>>
>> ok noted.
>
>
>
> --
> My blogs: [all in Tamil]
> http://anmikam4dumbme.blogspot.com/
> http://chitirampesuthati.blogspot.com/ photo blog now with english text too!
> http://kathaikathaiyaam.blogspot.com/
>
> BE HAPPY! LIFE IS TOO SHORT TO BE UNHAPPY!
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]