切换到本地app-inspector目录中
mac:app-inspector mac$ git remote -v
origin https://github.com/CodeToSurvive1/app-inspector.git (fetch)
origin https://github.com/CodeToSurvive1/app-inspector.git (push)
mac:app-inspector mac$ git remote add upstream https://github.com/macacajs/app-inspector.git
mac:app-inspector mac$ git remote -v
origin https://github.com/CodeToSurvive1/app-inspector.git (fetch)
origin https://github.com/CodeToSurvive1/app-inspector.git (push)
upstream https://github.com/macacajs/app-inspector.git (fetch)
upstream https://github.com/macacajs/app-inspector.git (push)
如果不小心添加错了,可以删除
mac:app-inspector mac$ git remote remove upstream
mac:app-inspector mac$ git fetch upstream
From https://github.com/macacajs/app-inspector
* [new branch] fix-bounds-parse -> upstream/fix-bounds-parse
* [new branch] gh-pages -> upstream/gh-pages
* [new branch] master -> upstream/master
* [new branch] support-real-device -> upstream/support-real-device
mac:app-inspector mac$ git checkout master
Already on \'master\'
Your branch is up-to-date with \'origin/master\'.
mac:app-inspector mac$ git merge upstream/master
Updating e0695e8..6f8c6a7
Fast-forward
.gitignore | 1 +
.npmignore | 1 +
assets/components/index.jsx | 6 +++---
assets/components/screen.jsx | 11 ++---------
assets/components/tree.less | 2 +-
assets/index.less | 1 +
assets/libs/bounds.js | 51 ++++++++++-----------------------------------------
lib/android.js | 19 +++++++++++--------
lib/ios.js | 63 +++++++++++++++++++++++++++++++++++++++++----------------------
package.json | 3 ++-
public/dist/index.js | 8 --------
11 files changed, 73 insertions(+), 93 deletions(-)
delete mode 100644 public/dist/index.js
mac:app-inspector mac$
mac:app-inspector mac$ git push origin master
Everything up-to-date
mac:app-inspector mac$