2018年4月3日 星期二

git

[下載篇]
$ git clone https:/xxx./xxx.git
$ git checkout dev

[提交篇]
$ git add <file>
$ git status
$ git commit -m "description"
$ git push

建立dns_caa branch
$ git checkout -b dns_caa
($ git branch dns_caa)
($ git checkout dns_caa)

[合併篇]
branch: master / dev / dns_caa
dns_caa branch合併到dev branch
$ git checkout dev
Already on 'dev'
Your branch is up-to-date with 'origin/dev'.
$ git merge dns_caa
($ git merge origin/dns_caa)
Performing inexact rename detection: 100% (92832/92832), done.
Auto-merging host/doc/Makefile.in
CONFLICT (content): Merge conflict in host/doc/Makefile.in
Automatic merge failed; fix conflicts and then commit the result.
git status

[還原篇]
A->B->C->D->E
某個檔案要還原到之前C版本
$ git log -p <file>
$ git checkout <commit id> <file>

要還原到之前C版本
$ git log
$ git revert <commit id>

commit id: XXXXXX
e.g. 7478a4

2018年4月2日 星期一

Public DNS Reslover


CloudFlare Public DNS: 1.1.1.1 / 1.0.0.1 (APNIC)
    https://blog.cloudflare.com/announcing-1111/
    https://www.ithome.com.tw/news/122204
Google Public DNS: 8.8.8.8 / 8.8.4.4
Quad 9: 9.9.9.9
    https://www.quad9.net/
    IBM、Global Cyber Alliance和Packet Clearing House

OpenDNS208.67.222.222 / 208.67.220.220
    OpenDNS Family: 208.67.222.123 / 208.67.220.123
⇨ Comodo Secure: 156.154.70.22 (NeuStar) / 156.156.71.22 (AFNIC)
⇨ DNS Advantage: 156.154.70.1 / 156.154.71.1 (NeuStar)
⇨ Norton DNS: 198.153.192.1 / 198.153.194.1 (Symantec)
⇨ DigitalOcean DNS
    https://www.digitalocean.com/community/tutorials/an-introduction-to-digitalocean-dns