We recently swapped Appium branches so that the old 1.5
branch is now master
. This is great! Unless you already have a local copy of Appium master
checked out and want to do a git pull
. Unfortunately since we have reset master
this is no longer possible. Here's how you do it.
upstream
, for you it might be origin
. Below, I will call this <remote>
and you should replace it with the reality for your own local checkout.git checkout master
git reset --hard fbbb126
-- this will get you to a place in the git history prior to the divergencegit pull <remote> master
-- this will get all the new coderm -rf submodules/
in order to have a clean checkout, since we no longer track submodules in the Appium git repo.That's it! Happy hacking.
各位要 hack 的人注意了!别掉坑里。