{"id":418888,"date":"2021-03-18T16:21:46","date_gmt":"2021-03-18T08:21:46","guid":{"rendered":"http:\/\/4563.org\/?p=418888"},"modified":"2021-03-18T16:21:46","modified_gmt":"2021-03-18T08:21:46","slug":"github-%e5%85%ac%e5%8f%b8%e5%92%8c%e4%b8%aa%e4%ba%ba%e5%b8%90%e5%8f%b7%e5%88%86%e7%a6%bb","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=418888","title":{"rendered":"github \u516c\u53f8\u548c\u4e2a\u4eba\u5e10\u53f7\u5206\u79bb"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  github \u516c\u53f8\u548c\u4e2a\u4eba\u5e10\u53f7\u5206\u79bb               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wellhome <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u6709\u597d\u7684\u89e3\u51b3\u65b9\u6848\u5417\uff1f<br \/>terminal \u7aef\u9700\u8981\u5728 ssh \u4e0b\u914d\u7f6e\u4e24\u4e2a\u4e0d\u540c\u7684\u4e3b\u673a\u3002<br \/>web gui \u53c8\u6ca1\u6709\u597d\u7684\u5207\u6362\u5e10\u53f7\u7684\u8f6f\u4ef6\u3002      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>20<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5584830\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Dvel <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Web \u4e0a\u53ef\u4ee5\u7528 Firefox \u7684 Multi-Account Containers                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584831\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dzdh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u4e2a ff \u4e00\u4e2a chrome \u8868\u793a\u6ca1\u5565\u95ee\u9898 :doge:                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584832\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ayase252 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             IncludeIf<\/p>\n<p>https:\/\/ayase.moe\/2021\/03\/09\/customized-git-config\/                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584833\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : redtea <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f04\u4e24\u53f0\u7535\u8111\uff0c\u5426\u5219\u8fdf\u65e9\u51fa\u4e8b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584834\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Takamine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u6211\u662f\u5728.config \u6587\u4ef6\u91cc\u9762\u8bbe\u7f6e\u4e86\u4e0d\u540c\u7684\u8def\u7531\uff0c\u4f46\u662f\u8ba4\u8bc1\u4fe1\u606f\u53d1\u73b0\u8fd8\u662f\u6709\u95ee\u9898\u3002<br \/>\u2026\u2026\u53ea\u80fd\u6bcf\u6b21\u4e8c\u6b21\u786e\u8ba4\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584835\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wbd31 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u662f\u7528 ed25519 \u548c rsa \u7b97\u6cd5\u751f\u6210\u4e86\u4e24\u4e2a key \u5728 ~\/.ssh \u4e0b\u3002<br \/>\u8fd9\u6837\u53ef\u4ee5\u5206\u522b\u5de5\u4f5c\uff0c\u867d\u7136\u6ca1\u7406\u89e3\u539f\u7406\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584836\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vision1900 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             VM \u6216\u8005 WSL                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584837\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : BeautifulSoap <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b49\u7b49\uff0clz \u7684 github \u5230\u5e95\u6307\u7684\u662f git \u4e0d\u540c\u8d26\u53f7\uff0c\u8fd8\u662f\u6d4f\u89c8\u5668\u91cc github \u767b\u9646\u4e0d\u540c\u8d26\u53f7\uff1f<\/p>\n<p>\u6d4f\u89c8\u5668 github \u8d26\u53f7\u7684\u8bdd\u5c31\u7528 firefox\uff0cfirefox \u7684 container \u662f\u771f\u7684\u975e\u5e38\u597d\u7528\uff0cfirefox \u7684\u51e0\u4e2a\u4f18\u52bf\u529f\u80fd\u4e4b\u4e00<\/p>\n<p>git \u7684\u7684\u8bdd\u4e0d\u60f3\u7ea0\u7ed3\u914d\u7f6e\u53ea\u60f3\u70b9\u9f20\u6807\u7684\u8bdd\uff0c\u53ef\u4ee5\u4f7f\u7528 fork \u8fd9\u4e2a git \u7684 gui\uff0c\u80fd\u8f7b\u677e\u5728\u51e0\u4e2a\u8d26\u53f7\u95f4\u5207\u6362                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584838\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : renmu123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7ec8\u7aef\u8bbe\u7f6e\u597d ssh.config \u5c31\u53ef\u4ee5\u4e86\uff0c\u6d4f\u89c8\u5668\u7684\u8bdd\u53ef\u4ee5\u5f00\u4e24\u4e2a\u4e0d\u540c\u7684\u5206\u522b\u767b\u5f55                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584839\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DogBear <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ${HOME}\/.ssh\/config \u6307\u5b9a\u4e0d\u540c host \u4ee5\u53ca\u5bf9\u5e94\u8eab\u4efd\u548c\u79c1\u94a5<br \/>web \u7aef\u7528\u4e24\u4e2a\u6d4f\u89c8\u5668\u5206\u522b\u767b\u5f55\u4e0d\u540c\u8d26\u53f7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584840\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liuzhaowei55 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u516c\u53f8\u7684\u7528 SSH\uff0c\u4e2a\u4eba\u7684\u4f7f\u7528 HTTP \u65b9\u5f0f\u5c31\u53ef\u4ee5\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584841\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SjwNo1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             `ssh-add -k your_rsa_path`                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584842\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xingheng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Host github github.com<br \/> HostName github.com<br \/> User git<br \/> PreferredAuthentications publickey<br \/> IdentityFile ~\/.ssh\/github<br \/> IdentitiesOnly yes<\/p>\n<p>Host github-guest github.com<br \/> HostName github.com<br \/> User git<br \/> PreferredAuthentications publickey<br \/> IdentityFile ~\/.ssh\/github-guest<br \/> IdentitiesOnly yes                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584843\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ClericPy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ssh \u7684 config \u6587\u4ef6\u4e0d\u597d\u5417, \u6211\u597d\u51e0\u4e2a\u7535\u8111\u7684\u4e0d\u540c\u7cfb\u7edf\u5171\u7528\u4e00\u5957 config, \u867d\u7136\u8fc7\u51e0\u5929\u516c\u53f8\u8981\u6539\u6210\u7edf\u4e00\u7528\u8df3\u677f\u673a\u4e0d\u77e5\u9053\u5bf9 git \u6709\u6ca1\u6709\u5f71\u54cd<\/p>\n<p>\u6682\u65f6\u662f\u4e0d\u540c\u516c\u53f8\u4e0d\u540c\u6587\u4ef6\u5939, \u53cd\u6b63\u9876\u5c42 Include ~\/.ssh\/company1\/config \u4e00\u5806\u5b50\u6587\u4ef6\u5939\u4e0b\u7684 config+.pub \u8fd8\u662f\u633a\u597d\u7528\u7684, \u76f8\u5bf9\u8def\u5f84\u8fd8\u662f\u9999                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584844\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : quxiangxuanqxx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6bcf\u4e2a\u9879\u76ee\u90fd\u53ef\u4ee5\u5355\u72ec\u8bbe\u7f6e .git config \u4f60\u7684\u9700\u6c42\u5b8c\u5168\u53ef\u4ee5\u5b9e\u73b0\uff0c\u9879\u76ee\u7684 config \u4f18\u5148\u7ea7\u9ad8\u4e8e\u5168\u5c40\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u6211\u8fd8\u662f\u5efa\u8bae\u81ea\u5df1\u79c1\u4eba\u9879\u76ee\u4e0d\u8981\u4f7f\u7528\u516c\u53f8\u8d22\u4ea7\uff08\u5982\u679c\u7535\u8111\u662f\u516c\u53f8\u53d1\u7684\uff09\uff0c\u4e0a\u73ed\u65f6\u95f4\u4f7f\u7528\u516c\u53f8\u8d22\u4ea7\u7684\u4ee3\u7801\u4ea7\u51fa\u6240\u5c5e\u6743\u5f52\u516c\u53f8\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584845\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dvaknheo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528 pageant \u90a3\u4e2a\u5c0f\u4e1c\u897f\u7ba1\u7406 \u4e0d\u540c\u7684\u5bc6\u94a5\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584846\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jiangzm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u540c\u4e00\u4e2a git \u670d\u52a1\u4e3a\u4ec0\u4e48\u8981\u5206\u5f00\uff1f <br \/>\u5982\u679c\u4f60\u516c\u53f8\u7528\u7684\u662f github \u4f01\u4e1a\u7248\u90a3\u5c31\u662f\u4e24\u4e2a\u4e0d\u540c\u7684 git \u670d\u52a1\uff0c\u53ef\u4ee5\u7528~\/.ssh\/config \u533a\u5206\u4e0d\u540c host \u4f7f\u7528\u4e0d\u540c\u7684 pub_key \u3002<br \/>\u5982\u679c\u4f60\u516c\u53f8\u7528\u7684\u4e5f\u662f\u793e\u533a\u7248\uff0c\u90a3\u5c31\u628a\u516c\u53f8\u90ae\u7bb1\u52a0\u5230\u4f60\u4e2a\u4eba\u8d26\u6237\u7684 emails \u91cc\u9762\u5c31\u597d\u4e86\uff0c\u7136\u540e\u672c\u5730\u9ed8\u8ba4\u914d\u7f6e\u4e2a\u4eba\u90ae\u7bb1\u6216\u8005\u516c\u53f8\u90ae\u7bb1\uff0c\u4f46\u662f\u975e\u9ed8\u8ba4\u914d\u7f6e\u90ae\u7bb1\u7684\u9879\u76ee\u9700\u8981\u8bbe\u7f6e\u4e0b\u9879\u76ee\u7ea7\u522b\u7684 email \u548c username \u5c31\u597d\u4e86(\u6216\u8005\u7528 includeIf \u533a\u5206\u76ee\u5f55\u52a8\u6001\u914d\u7f6e)\u3002<\/p>\n<p>\u5982\u679c\u5df2\u7ecf\u6709\u4e24\u4e2a github \u8d26\u6237\u5bf9\u5e94\u4e2a\u4eba\u548c\u516c\u53f8\u7684\u9879\u76ee\uff0c\u90a3\u5c31\u5176\u4e2d\u4e00\u4e2a\u8d26\u6237\u7684 github \u5730\u5740\u7528\u522b\u540d\u597d\u4e86\u3002<br \/>\u6bd4\u5982~\/.ssh\/config \u914d\u7f6e\u4e3a:<br \/>&#8220;`<br \/>Host github.com<br \/> HostName github.com<br \/> PreferredAuthentications publickey<br \/> IdentityFile ~\/.ssh\/id_rsa_github1<br \/> User gituser1<\/p>\n<p>Host github2.com<br \/> HostName github.com<br \/> PreferredAuthentications publickey<br \/> IdentityFile ~\/.ssh\/id_rsa_github2<br \/> User gituser2<br \/>&#8220;`<br \/>\u4f7f\u7528\u7684\u552f\u4e00\u5dee\u522b\u5c31\u662f\u4e0b\u8f7d\u4ee3\u7801\u7684\u65f6\u5019\u8bb0\u5f97\u628a\u516c\u53f8\u9879\u76ee\u7684 ssh \u5730\u5740 github.com \u6539\u6210 github2.com \uff08\u6216\u8005\u5176\u4ed6\u522b\u540d\uff09<\/p>\n<p>\u53e6\u5916\u4f7f\u7528 includeIf \u533a\u5206\u4e0d\u540c\u76ee\u5f55\u4f7f\u7528\u4e0d\u540c.gitconfig\uff0c\u9700\u8981\u672c\u5730 git \u7248\u672c\u662f 2.13.0 \u4ee5\u4e0a\u624d\u652f\u6301<br \/>\u5728~\/\u76ee\u5f55\u4e0b\u9762\u5b58\u5728\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c<br \/>.gitconfig \/\/ \u5168\u5c40\u901a\u7528\u914d\u7f6e\u6587\u4ef6<br \/>.gitconfig-my \/\/ \u4e2a\u4eba\u5de5\u7a0b\u914d\u7f6e\u6587\u4ef6<br \/>.gitconfig-work \/\/ \u516c\u53f8\u5de5\u7a0b\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>\u5168\u5c40~\/.gitconfig \u914d\u7f6e\u5982\u4e0b<br \/>&#8220;`<br \/>[user]<br \/> name = yourname<br \/> email = [email&#160;protected]<br \/>[includeIf &#8220;gitdir:~\/myspace\/&#8221;]<br \/> path = .gitconfig-my<br \/>[includeIf &#8220;gitdir:~\/workspace\/&#8221;]<br \/> path = .gitconfig-work<br \/>&#8220;`<br \/>\u4e2a\u4eba.gitconfig-my \u914d\u7f6e\u5982\u4e0b<br \/>&#8220;`<br \/>[user]<br \/> name = gituser1<br \/> email = [email&#160;protected]<br \/>&#8220;`<br \/>\u516c\u53f8.gitconfig-work \u914d\u7f6e\u5982\u4e0b<br \/>&#8220;`<br \/>[user]<br \/> name = gituser2<br \/> email = [email&#160;protected]<br \/>&#8220;`                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584847\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ETiV <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3a\u5565\u975e\u8981\u8d70 ssh \u534f\u8bae\uff0chttps+token \u4e5f\u662f\u53ef\u4ee5\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584848\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SenLief <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0a\u73ed\u7684\u65f6\u5019\u4e3a\u4ec0\u4e48\u8981\u7528\u4e2a\u4eba\u7684\uff0c\u4e0a\u73ed\u65f6\u95f4\u4ea7\u51fa\u90fd\u7b97\u4f5c\u516c\u53f8\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5584849\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : wellhome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7edf\u4e00\u56de\u590d\u4e00\u4e0b\u3002\u6211\u6709\u4e00\u4e9b\u4e2a\u4eba\u6280\u5de7\uff0c\u4ec5\u81ea\u5df1\u770b\u3002\u662f\u653e\u5728\u81ea\u5df1\u7684 repo \u91cc\u3002\u4e0d\u662f\u7f16\u7801\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>github \u516c\u53f8\u548c\u4e2a\u4eba\u5e10\u53f7\u5206\u79bb &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/418888"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=418888"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/418888\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=418888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=418888"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=418888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}