Appium Appium 的 master 分支已经是 1.5 的代码了!

恒温 · 2016年02月24日 · 最后由 songz 回复于 2016年02月24日 · 1238 次阅读

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.

  1. Ensure you have no local changes or commits you want to save. (If you do, get them in a branch).
  2. Figure out what your Appium remote branch is called. For me it is 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.
  3. git checkout master
  4. git reset --hard fbbb126 -- this will get you to a place in the git history prior to the divergence
  5. git pull <remote> master -- this will get all the new code
  6. You might also need to rm -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 的人注意了!别掉坑里。

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
共收到 3 条回复 时间 点赞
1楼 已删除

1.5 据说是调整了架构. 不知道是不是会更容易的编写插件.

总算认为稳定了吗,不错不错

The Appium 1.5 milestone will make it super easy to support multiple sessions without having to set a bunch of environment variables or handle multiple ports manually.
不知道这一点有没有完善

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册