What's the proper way to update an extension?

I know the Accents project is underway, but for now, how do I update my
extensions?

For example, I need to update Gallery from 0.7.12 to 0.7.10. I tried
‘git clone […]’ into my ‘vendor/extensions’ directory, but I get an
error saying that the “destination directory already exists”.

I’m sure its simple, but I’m still a newbie.

Did you type that correctly?

You’re going from 0.7.12 to 0.7.10? (I’m not a user of this extension)

if you’ve already cloned the git repository for the extension, cd into
that directory:

cd vendor/extensions/gallery

and do ‘git pull’

Jim G. wrote:

Did you type that correctly? You’re going from 0.7.12 to 0.7.10? (I’m not a user of this extension)

Haha, you are correct, I accidentally swapped the version numbers.

if you’ve already cloned the git repository for the extension, cd into
that directory:

cd vendor/extensions/gallery

and do ‘git pull’

Tried this, and got “You asked me to pull without telling me which
branch you want to merge with”. Do I have to edit some settings, or
should this be automatic?

Ben,

If you did a plain clone originally, run git pull origin master.

Sean

Sean C. wrote:

If you did a plain clone originally, run git pull origin master.

Tried this and I got a list of all the files followed by “: needs
update”. Then the final output line was “fatal: Entry ‘README’ not
uptodate. Cannot merge.”.

Checking my Extensions page in the admin UI, it seems Gallery is still
at 0.7.10.

In terms of pulling down repos and updating a cloned repo, git is more
trouble than its worth. Tolerable nonetheless.

Sean C. wrote:

Ben,

If you did a plain clone originally, run git pull origin master.

Sean