赞
踩
先上一个流程图
git clone https://github.com/wxxiong6/phpstorm-stubs.git
查看远程版本
git remote -v
结果
origin https://github.com/wxxiong6/phpstorm-stubs.git (fetch)
origin https://github.com/wxxiong6/phpstorm-stubs.git (push)
只能看到自己Github
git remote add phpstorm https://github.com/JetBrains/phpstorm-stubs.git
再次查看
git remote -v
结果
origin https://github.com/wxxiong6/phpstorm-stubs.git (fetch)
origin https://github.com/wxxiong6/phpstorm-stubs.git (push)
phpstorm https://github.com/JetBrains/phpstorm-stubs.git (fetch)
phpstorm https://github.com/JetBrains/phpstorm-stubs.git (push)
git fetch phpstorm
结果
remote: Counting objects: 595, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 595 (delta 241), reused 244 (delta 241), pack-reused 350
Receiving objects: 100% (595/595), 206.25 KiB | 147.00 KiB/s, done.
Resolving deltas: 100% (301/301), completed with 65 local objects.
From https://github.com/JetBrains/phpstorm-stubs
* [new branch] master -> phpstorm/master
* [new tag] 2018.1.2 -> 2018.1.2
查看分支
git branch -av
结果
* master 8005fdd Update yaf_namespace.php
remotes/origin/HEAD -> origin/master
remotes/origin/master 8005fdd Update yaf_namespace.php
remotes/origin/pr/117 306cc3c introduced first module - standard
remotes/origin/revert-333-patch-2 0d74e4b Revert "Fix date() $timestamp default value"
remotes/phpstorm/master d7f7ad6 Fixed rdkafka extension folder name to be compatible with "Sync Extensions with Interpreter" action
master
git merge phpstorm/master
结果
Updating 8005fdd..d7f7ad6
Fast-forward
.travis.yml | 19 +
CONTRIBUTING.md | 4 +
Core/Core.php | 29 +-
Core/Core_c.php | 37 +-
git push -u origin master
就算完成了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。