Page 1 of 1

how to update esp-idf?

Posted: Tue Sep 12, 2017 6:03 am
by amazone
hi there,

I already have esp-idf v2.1 installed.

git clone https://github.com/espressif/esp-idf.git esp-idf-v2.1
cd esp-idf-v2.1 /
git checkout v2.1
git submodule update --init --recursive


How do I use the git command to update commit and newly added files to esp-idf?

Re: how to update esp-idf?

Posted: Tue Sep 12, 2017 6:59 am
by ESP_Angus
To change to the master branch (current development), then pull latest changes and update submodules:

Code: Select all

git checkout master
git pull
git submodule update --init --recursive
Use "git checkout v2.1" to go back to the v2.1 release.

There are a number of good online git resources to explain the exact meaning of these commands (and also good git UI tools for Windows & OS X to make it easier to see what is happening behind the scenes in git.)