SSH 免密
$ mkdir ~/.ssh
$ chmod +700 ~/.ssh
$ cd ~/.ssh
$ ssh-keygen -t rsa -C "yuzhouwan@email.com"
$ ssh -T git@github.com
Hi asdf2014! You've successfully authenticated, but GitHub does not provide shell access. '
$ git remote -v
origin https://github.com/asdf2014/yuzhouwan (fetch)
origin https://github.com/asdf2014/yuzhouwan (push)
$ git remote set -url origin git@github.com:asdf2014/yuzhouwan.git
$ git remote -v
origin git@github.com:asdf2014/yuzhouwan.git (fetch)
origin git@github.com:asdf2014/yuzhouwan.git (push)
Github 加速
192.30 .253.112 github.com
151.101 .56.133 assets-cdn.github.com
192.30 .253.116 api.github.com
192.30 .253.121 codeload.github.com
192.30 .253.112 github.com
151.101 .100.133 assets-cdn.github.com
192.30 .253.116 api.github.com
192.30 .253.121 codeload.github.com
Github Fetch
Normal
https://github.com/apache/superset
https://github.com/asdf2014/superset (forked from apache/superset)
$ git init
$ git remote add origin https://github.com/asdf2014/superset.git
$ git remote -v
origin https://github.com/asdf2014/superset.git (fetch)
origin https://github.com/asdf2014/superset.git (push)
https://github.com/apache/superset/pull/2136 (Fix werkzeug instance was created twice in Debug Mode (
$ git fetch https://github.com/apache/superset.git master:tmp
$ git diff tmp
$ git merge tmp
$ git branch -d tmp
$ git fetch --tags
$ git checkout tags/release-3.4 .6
$ git checkout master
Previous HEAD position was 1285 c982... ZooKeeper 3.4 .6 release.
Switched to branch 'master'
Git Tag
Create tag
$ git tag v0.0.1
$ git tag -a v0.0.2 -m "v0.0.2"
$ git show v0.0.2
$ git tag -a v0.0.3 6 d23400
Submit tag
$ git push origin v0.0.2
$ git push origin –tags
Pull with specific tag
$ git clone
$ git tag -l
$ git checkout tags/<tag_name>
$ git checkout tags/<tag_name> -b <branch_name>
Delete tag
$ git tag -d v3.4.6 .0
Deleted tag 'v3.4.6.0' (was 0 e48a03a)
$ git push origin :refs/tags/v3.4.6 .0
To http://github.com/asdf2014/zookeeper.git
- [