{"id":949,"date":"2022-02-02T06:52:20","date_gmt":"2022-02-02T06:52:20","guid":{"rendered":"https:\/\/oimi.me\/?p=949"},"modified":"2022-02-02T06:52:20","modified_gmt":"2022-02-02T06:52:20","slug":"upgit-%e5%8f%af%e4%bb%a5%e5%bf%ab%e6%8d%b7%e5%9c%b0%e5%b0%86%e6%96%87%e4%bb%b6%e4%b8%8a%e4%bc%a0%e5%88%b0-github-%e4%bb%93%e5%ba%93%e5%b9%b6%e5%be%97%e5%88%b0%e5%85%b6%e7%9b%b4%e9%93%be","status":"publish","type":"post","link":"https:\/\/myya.net\/index.php\/2022\/02\/02\/upgit-%e5%8f%af%e4%bb%a5%e5%bf%ab%e6%8d%b7%e5%9c%b0%e5%b0%86%e6%96%87%e4%bb%b6%e4%b8%8a%e4%bc%a0%e5%88%b0-github-%e4%bb%93%e5%ba%93%e5%b9%b6%e5%be%97%e5%88%b0%e5%85%b6%e7%9b%b4%e9%93%be\/","title":{"rendered":"Upgit \u53ef\u4ee5\u5feb\u6377\u5730\u5c06\u6587\u4ef6\u4e0a\u4f20\u5230 Github \u4ed3\u5e93\u5e76\u5f97\u5230\u5176\u76f4\u94fe"},"content":{"rendered":"<h1 dir=\"auto\"><a href=\"https:\/\/camo.githubusercontent.com\/f1da1c71d25d1af542d5206ceed481bdbced516b12a8c11002158de14448a5a0\/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f706c757665746f2f75706769742f6c6f676f2e706e67\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-950 alignleft\" title=\"68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f706c757665746f2f75706769742f6c6f676f2e706e67\" src=\"https:\/\/oimi.me\/wp-content\/uploads\/2022\/02\/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f706c757665746f2f75706769742f6c6f676f2e706e67.jpg\" alt=\"68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f706c757665746f2f75706769742f6c6f676f2e706e67\" width=\"226\" height=\"73\" \/><\/a><\/h1>\n<p dir=\"auto\"><em>Upgit<\/em> \u53ef\u4ee5\u5feb\u6377\u5730\u5c06\u6587\u4ef6\u4e0a\u4f20\u5230 Github \u4ed3\u5e93\u5e76\u5f97\u5230\u5176\u76f4\u94fe\u3002<\/p>\n<p dir=\"auto\">\u53ef\u4f5c\u4e3a <a href=\"https:\/\/support.typora.io\/Upload-Image\/#image-uploaders\" rel=\"nofollow\">Typora<\/a> \u7684\u81ea\u5b9a\u4e49\u4e0a\u4f20\u5668\u4f7f\u7528\u3002<\/p>\n<p dir=\"auto\"><strong>\u592a\u957f\u4e0d\u770b<\/strong>\uff1a\u7b80\u8a00\u4e4b\uff0c\u5bf9\u4e8e Windows \u7528\u6237\uff0c\u672c\u7a0b\u5e8f\u914d\u5408 AHK \u53ef\u4ee5\u5e2e\u52a9\u4f60\u4e00\u952e\u5b8c\u6210\u622a\u56fe\u3001\u4e0a\u4f20\u3001\u590d\u5236\u94fe\u63a5\u7684\u64cd\u4f5c\u3002<\/p>\n<h2 dir=\"auto\"><a id=\"user-content-\u7279\u70b9\" class=\"anchor\" href=\"https:\/\/github.com\/pluveto\/upgit\/blob\/main\/docs\/README.zh-CN.md#%E7%89%B9%E7%82%B9\" aria-hidden=\"true\"><\/a>\u7279\u70b9<\/h2>\n<p><!--more--><\/p>\n<ul dir=\"auto\">\n<li>\u652f\u6301\u591a\u5e73\u53f0\uff0c\u5305\u62ec Linux\u3001Windows macOS<\/li>\n<li>\u4e0d\u9650\u5236\u6587\u4ef6\u7c7b\u578b<\/li>\n<li>\u652f\u6301\u4ece<strong>\u526a\u8d34\u677f\u4e0a\u4f20<\/strong><\/li>\n<li>\u81ea\u5b9a\u4e49<strong>\u81ea\u52a8\u91cd\u547d\u540d<\/strong>\u89c4\u5219\uff08\u5305\u62ec\u8def\u5f84\uff09<\/li>\n<li>\u53ef\u901a\u8fc7\u66ff\u6362\u89c4\u5219\u5b9e\u73b0<strong>CDN<\/strong>\u52a0\u901f<\/li>\n<li>\u53ef\u901a\u8fc7<strong>\u73af\u5883\u53d8\u91cf<\/strong>\u914d\u7f6e<\/li>\n<li>\u5c06 URL \u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\/<strong>\u526a\u8d34\u677f<\/strong>\uff0c\u652f\u6301 Markdown \u683c\u5f0f<\/li>\n<\/ul>\n<h2 dir=\"auto\"><a id=\"user-content-\u5f00\u59cb\u4f7f\u7528\" class=\"anchor\" href=\"https:\/\/github.com\/pluveto\/upgit\/blob\/main\/docs\/README.zh-CN.md#%E5%BC%80%E5%A7%8B%E4%BD%BF%E7%94%A8\" aria-hidden=\"true\"><\/a>\u5f00\u59cb\u4f7f\u7528<\/h2>\n<h3 dir=\"auto\"><a id=\"user-content-\u4e0b\u8f7d\" class=\"anchor\" href=\"https:\/\/github.com\/pluveto\/upgit\/blob\/main\/docs\/README.zh-CN.md#%E4%B8%8B%E8%BD%BD\" aria-hidden=\"true\"><\/a>\u4e0b\u8f7d<\/h3>\n<p dir=\"auto\">\u4ece<a href=\"https:\/\/github.com\/pluveto\/upgit\/releases\">Release<\/a> \u4e0b\u8f7d.<\/p>\n<blockquote>\n<p dir=\"auto\">\u5982\u679c\u4e0d\u77e5\u9053\u4e0b\u8f7d\u54ea\u4e00\u4e2a\uff1a<\/p>\n<ul dir=\"auto\">\n<li>\u5bf9\u4e8e\u5927\u591a\u6570 Windows\u7528\u6237\uff0c\u8bf7\u9009\u62e9 <code>upgit_win_amd64.exe<\/code><\/li>\n<li>\u5bf9\u4e8e\u5927\u591a\u6570 macOS\u7528\u6237\uff0c\u8bf7\u9009\u62e9 <code>upgit_macOS_arm64<\/code><\/li>\n<\/ul>\n<\/blockquote>\n<p dir=\"auto\">\u4e0b\u8f7d\u540e\u5c06\u5176\u91cd\u547d\u540d\u4e3a<code>upgit<\/code>\uff08\u5bf9\u4e8eWindows\u7528\u6237\uff0c<code>upgit.exe<\/code>\uff09\uff0c\u4fdd\u5b58\u5230\u67d0\u5904\u3002\u82e5\u8981\u4ece\u4efb\u4f55\u5730\u65b9\u8bbf\u95ee\u5b83\uff0c\u8bf7\u5c06\u5176\u76ee\u5f55\u6dfb\u52a0\u5230 <code>PATH<\/code> \u73af\u5883\u53d8\u91cf\u4e2d\u3002<\/p>\n<p dir=\"auto\"><strong>\u63d0\u9192\uff1a<\/strong> \u6b64\u7a0b\u5e8f\u4e0d\u4f1a\u81ea\u52a8\u68c0\u67e5\u66f4\u65b0\u3002\u5982\u679c\u4f60\u5173\u5fc3\u672c\u7a0b\u5e8f\u7684\u65b0\u529f\u80fd\uff0c\u53ef\u4ee5\u70b9\u53f3\u4e0a\u89d2\u7684 &#x2b50;star \u6536\u85cf\u3002<\/p>\n<h3 dir=\"auto\"><a id=\"user-content-\u914d\u7f6e\" class=\"anchor\" href=\"https:\/\/github.com\/pluveto\/upgit\/blob\/main\/docs\/README.zh-CN.md#%E9%85%8D%E7%BD%AE\" aria-hidden=\"true\"><\/a>\u914d\u7f6e<\/h3>\n<p dir=\"auto\">\u5728\u7a0b\u5e8f\u7684\u540c\u4e00\u76ee\u5f55\u521b\u5efa <code>config.toml<\/code> \u6587\u4ef6\uff0c\u5185\u5bb9\u6309\u7167<a href=\"https:\/\/github.com\/pluveto\/upgit\/blob\/main\/config.sample.zh-CN.toml\">\u6b64\u793a\u4f8b\u914d\u7f6e\u6587\u4ef6<\/a> \u586b\u5199\u5373\u53ef.<\/p>\n<h3 dir=\"auto\"><a id=\"user-content-\u4f7f\u7528\" class=\"anchor\" href=\"https:\/\/github.com\/pluveto\/upgit\/blob\/main\/docs\/README.zh-CN.md#%E4%BD%BF%E7%94%A8\" aria-hidden=\"true\"><\/a>\u4f7f\u7528<\/h3>\n<p dir=\"auto\">\u6bd4\u5982\u4e0a\u4f20 <code>logo.png<\/code> \u5e76\u81ea\u52a8\u4f7f\u7528\u91cd\u547d\u540d\u89c4\u5219\uff0c\u6267\u884c\uff1a<\/p>\n<div class=\"highlight highlight-source-shell position-relative overflow-auto\">\n<pre>.\/upgit logo.png\n<span class=\"pl-c\"># for windows: .\\upgit.exe logo.png<\/span><\/pre>\n<p dir=\"auto\">\u7136\u540e\u4f1a\u770b\u5230\u4e00\u4e2a\u6307\u5411 <code>logo.png<\/code> \u7684\u76f4\u94fe\u3002<\/p>\n<p dir=\"auto\">\u6bd4\u5982\u4e0a\u4f20 <code>logo.png<\/code> \u5230\u8fdc\u7a0b\u6587\u4ef6\u5939 <code>\/my_images\/demo<\/code>\uff0c\u6267\u884c\uff1a<\/p>\n<div class=\"highlight highlight-source-shell position-relative overflow-auto\">\n<pre>.\/upgit logo.png -t \/my_images\/demo\n<span class=\"pl-c\"># \u5bf9\u4e8e Windows: .\\upgit.exe logo.png -t \/my_images\/demo<\/span><\/pre>\n<p dir=\"auto\">\u6709\u5173\u66f4\u591a\u5e2e\u52a9\uff0c\u8bf7\u952e\u5165\u201c-h\u201d\u53c2\u6570<\/p>\n<div class=\"highlight highlight-source-shell position-relative overflow-auto\">\n<pre>Upload anything to github repo and <span class=\"pl-k\">then<\/span> get its link.\nFor more information: https:\/\/github.com\/pluveto\/upgit\n\nUsage: upgit.exe [--target-dir TARGET-DIR] [--verbose] [--size-limit SIZE-LIMIT] [--wait] [--clean] [--raw] [--no-log] [--output-type OUTPUT-TYPE] [--output-format OUTPUT-FORMAT] FILE [FILE ...]\n\nPositional arguments:\n  FILE                   <span class=\"pl-k\">local<\/span> file path to upload. :clipboard <span class=\"pl-k\">for<\/span> uploading clipboard image\n\nOptions:\n  --target-dir TARGET-DIR, -t TARGET-DIR\n                         upload file with original name to given directory. <span class=\"pl-k\">if<\/span> not set, will use renaming rules\n  --verbose, -V          when set, output more details to <span class=\"pl-c1\">help<\/span> developers\n  --size-limit SIZE-LIMIT, -s SIZE-LIMIT\n                         <span class=\"pl-k\">in<\/span> bytes. overwrite default size limit (5MiB). 0 means no limit\n  --wait, -w             when set, not <span class=\"pl-c1\">exit<\/span> after upload, util user press any key\n  --clean, -c            when set, remove <span class=\"pl-k\">local<\/span> file after upload\n  --raw, -r              when set, output non-replaced raw url\n  --no-log, -n           when set, disable logging\n  --output-type OUTPUT-TYPE, -o OUTPUT-TYPE\n                         output type, supports stdout, clipboard [default: stdout]\n  --output-format OUTPUT-FORMAT, -f OUTPUT-FORMAT\n                         output format, supports url, markdown and your customs [default: url]\n  --help, -h             display this <span class=\"pl-c1\">help<\/span> and <span class=\"pl-c1\">exit<\/span><\/pre>\n<h3 dir=\"auto\"><a id=\"user-content-\u914d\u5408-typora-\u4f7f\u7528\" class=\"anchor\" href=\"https:\/\/github.com\/pluveto\/upgit\/blob\/main\/docs\/README.zh-CN.md#%E9%85%8D%E5%90%88-typora-%E4%BD%BF%E7%94%A8\" aria-hidden=\"true\"><\/a>\u914d\u5408 Typora \u4f7f\u7528<\/h3>\n<blockquote>\n<p dir=\"auto\">\u5047\u8bbe <em>upgit<\/em> \u7a0b\u5e8f\u4fdd\u5b58\u5728<code>\u201cC:\\repo\\upgit\\upgit.exe<\/code>\u3002<\/p>\n<\/blockquote>\n<p dir=\"auto\">\u9009\u62e9 <em>\u6587\u4ef6 &gt; \u9996\u9009\u9879<\/em><\/p>\n<p dir=\"auto\"><a href=\"https:\/\/camo.githubusercontent.com\/5fdc932762162056d2ec58e8f2bf26a52069d5ce0b581080f64a307dc51da216\/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f706c757665746f2f30696d61676573406d61737465722f323032322f30312f75706769745f32303232303132385f313634333337333836332e706e67\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-951\" title=\"68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f706c757665746f2f30696d61676573406d61737465722f323032322f30312f75706769745f32303232303132385f313634333337333836332e706e67\" src=\"https:\/\/oimi.me\/wp-content\/uploads\/2022\/02\/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f706c757665746f2f30696d61676573406d61737465722f323032322f30312f75706769745f32303232303132385f313634333337333836332e706e67.jpg\" alt=\"68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f706c757665746f2f30696d61676573406d61737465722f323032322f30312f75706769745f32303232303132385f313634333337333836332e706e67\" width=\"284\" height=\"607\" \/><\/a><\/p>\n<p dir=\"auto\">\u8f6c\u5230 <em>Image<\/em>\u3002\u9009\u62e9<em>\u81ea\u5b9a\u4e49\u547d\u4ee4<\/em>\u4f5c\u4e3a<em>\u56fe\u50cf\u4e0a\u4f20\u5668<\/em>\u3002<\/p>\n<p dir=\"auto\">\u5728<em>\u547d\u4ee4<\/em>\u6587\u672c\u6846\u4e2d\u8f93\u5165<em>upgit<\/em> \u7a0b\u5e8f\u4f4d\u7f6e\u3002<\/p>\n<blockquote>\n<p dir=\"auto\">\u4f60\u53ef\u4ee5\u70b9\u51fb<em>\u6d4b\u8bd5\u4e0a\u4f20<\/em>\u6309\u94ae\u6765\u786e\u4fdd\u5b83\u5de5\u4f5c\u6b63\u5e38\u3002<\/p>\n<\/blockquote>\n<p dir=\"auto\"><a href=\"https:\/\/camo.githubusercontent.com\/b08209aed3c959db9b92348f591ca152867e0841b5685280444fdfffa350716d\/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f706c757665746f2f30696d61676573406d61737465722f323032322f30312f75706769745f32303232303132385f313634333337333836382e706e67\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-952\" title=\"68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f706c757665746f2f30696d61676573406d61737465722f323032322f30312f75706769745f32303232303132385f313634333337333836382e706e67\" src=\"https:\/\/oimi.me\/wp-content\/uploads\/2022\/02\/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f706c757665746f2f30696d61676573406d61737465722f323032322f30312f75706769745f32303232303132385f313634333337333836382e706e67.jpg\" alt=\"68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f706c757665746f2f30696d61676573406d61737465722f323032322f30312f75706769745f32303232303132385f313634333337333836382e706e67\" width=\"693\" height=\"545\" \/><\/a><\/p>\n<p dir=\"auto\">\u7136\u540e\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86\u3002<\/p>\n<h3 dir=\"auto\"><a id=\"user-content-\u4e0a\u4f20\u526a\u8d34\u677f\u56fe\u50cf\" class=\"anchor\" href=\"https:\/\/github.com\/pluveto\/upgit\/blob\/main\/docs\/README.zh-CN.md#%E4%B8%8A%E4%BC%A0%E5%89%AA%E8%B4%B4%E6%9D%BF%E5%9B%BE%E5%83%8F\" aria-hidden=\"true\"><\/a>\u4e0a\u4f20\u526a\u8d34\u677f\u56fe\u50cf<\/h3>\n<p dir=\"auto\">\u4f7f\u7528 <code>:clipboard<\/code> \u5360\u4f4d\u7b26\u653e\u7f6e\u526a\u8d34\u677f\u56fe\u50cf\u3002\uff08\u4ec5\u652f\u6301<strong>png<\/strong>\u683c\u5f0f\uff09<\/p>\n<div class=\"highlight highlight-source-shell position-relative overflow-auto\">\n<pre>.\/upgit :clipboard<\/pre>\n<p dir=\"auto\">\u622a\u56fe\u5feb\u6377\u952e\uff1a<\/p>\n<ul dir=\"auto\">\n<li>\u5728 macOS \u4e0a\uff0c\u4f7f\u7528 <code>Ctrl+Shift+Cmd+4<\/code><\/li>\n<li>\u5728 Linux\/Ubuntu \u4e0a\uff0c\u4f7f\u7528 <code>Ctrl+Shift+PrintScreen<\/code><\/li>\n<li>\u5728 Windows \u4e0a\uff0c\u4f7f\u7528 <code>Shift+Win+s<\/code><\/li>\n<\/ul>\n<h3 dir=\"auto\"><a id=\"user-content-\u5c06-url-\u4fdd\u5b58\u5230\u526a\u8d34\u677f\" class=\"anchor\" href=\"https:\/\/github.com\/pluveto\/upgit\/blob\/main\/docs\/README.zh-CN.md#%E5%B0%86-url-%E4%BF%9D%E5%AD%98%E5%88%B0%E5%89%AA%E8%B4%B4%E6%9D%BF\" aria-hidden=\"true\"><\/a>\u5c06 URL \u4fdd\u5b58\u5230\u526a\u8d34\u677f<\/h3>\n<p dir=\"auto\">\u4f7f\u7528\u53c2\u6570 <code>--output-type clipboard<\/code>:<\/p>\n<div class=\"highlight highlight-source-shell position-relative overflow-auto\">\n<pre>.\/upgit logo.png --output-type clipboard\n<span class=\"pl-c\"># or .\\upgit.exe :clipboard -o clipboard<\/span><\/pre>\n<h4 dir=\"auto\"><a id=\"user-content-\u590d\u5236\u4e3a-markdown-\u683c\u5f0f\" class=\"anchor\" href=\"https:\/\/github.com\/pluveto\/upgit\/blob\/main\/docs\/README.zh-CN.md#%E5%A4%8D%E5%88%B6%E4%B8%BA-markdown-%E6%A0%BC%E5%BC%8F\" aria-hidden=\"true\"><\/a>\u590d\u5236\u4e3a Markdown \u683c\u5f0f<\/h4>\n<p dir=\"auto\">\u589e\u52a0\u53c2\u6570 <code>--output-format markdown<\/code>:<\/p>\n<div class=\"highlight highlight-source-shell position-relative overflow-auto\">\n<pre>.\/upgit logo.png --output-type clipboard --output-format markdown\n<span class=\"pl-c\"># or .\\upgit.exe :clipboard -o clipboard -f markdown<\/span><\/pre>\n<p dir=\"auto\">\u7136\u540e\u4f1a\u5728\u526a\u8d34\u677f\u4e0a\u5f97\u5230\u4e00\u4e2a Markdown \u56fe\u7247\u94fe\u63a5\uff0c\u6bd4\u5982\uff1a<\/p>\n<div class=\"highlight highlight-source-lisp position-relative overflow-auto\">\n<pre>![logo.png]\uff08!https:\/\/cdn.jsdelivr.net\/gh\/pluveto\/upgit\/logo.png)<\/pre>\n<h3 dir=\"auto\"><a id=\"user-content-ahk-\u7684\u6700\u4f73\u5b9e\u8df5\" class=\"anchor\" href=\"https:\/\/github.com\/pluveto\/upgit\/blob\/main\/docs\/README.zh-CN.md#ahk-%E7%9A%84%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5\" aria-hidden=\"true\"><\/a>AHK \u7684\u6700\u4f73\u5b9e\u8df5<\/h3>\n<p dir=\"auto\">\u5bf9\u4e8e Windows \u7528\u6237\uff1a<\/p>\n<ol dir=\"auto\">\n<li>\u5b89\u88c5AHK<\/li>\n<li>\u521b\u5efa\u8fd9\u4e2a\u811a\u672c <code>upload_clipboard.ahk<\/code> \u5e76\u8fd0\u884c\uff1a\n<div class=\"highlight highlight-source-ahk position-relative overflow-auto\">\n<pre><span class=\"pl-c\">; Press Ctrl + F9 to upload clipboard image<\/span>\n<span class=\"pl-en\">^F9<\/span>::\n<span class=\"pl-c1\">RunWait<\/span>, <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>upgit.exe<span class=\"pl-pds\">\"<\/span><\/span> :<span class=\"pl-c1\">clipboard<\/span> <span class=\"pl-k\">--<\/span>output<span class=\"pl-k\">-<\/span><span class=\"pl-c1\">type<\/span> <span class=\"pl-c1\">clipboard<\/span> <span class=\"pl-k\">--<\/span>output<span class=\"pl-k\">-<\/span>format markdown\n<span class=\"pl-k\">return<\/span><\/pre>\n<\/div>\n<\/li>\n<li>\u7136\u540e\u6309 <kbd>Win<\/kbd><kbd>Shift<\/kbd><kbd>S<\/kbd> \u622a\u56fe\uff0c\u6309 <kbd>Ctrl<\/kbd><kbd>F9<\/kbd>\u4e0a\u4f20\u5e76\u5c06\u5176\u94fe\u63a5\u590d\u5236\u5230\u526a\u8d34\u677f<\/li>\n<\/ol>\n<h2 dir=\"auto\"><a id=\"user-content-\u914d\u7f6e\u6587\u4ef6\u8bf4\u660e\" class=\"anchor\" href=\"https:\/\/github.com\/pluveto\/upgit\/blob\/main\/docs\/README.zh-CN.md#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E8%AF%B4%E6%98%8E\" aria-hidden=\"true\"><\/a>\u914d\u7f6e\u6587\u4ef6\u8bf4\u660e<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u952e<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>username<\/td>\n<td>\u60a8\u7684 Github \u7528\u6237\u540d\uff0c\u4f8b\u5982 <code>pluveto<\/code><\/td>\n<\/tr>\n<tr>\n<td>repo<\/td>\n<td>\u60a8\u7684 Github \u5b58\u50a8\u5e93\u540d\u79f0\uff0c\u4f8b\u5982 <code>upgit<\/code><\/td>\n<\/tr>\n<tr>\n<td>branch<\/td>\n<td>\u4fdd\u5b58\u6587\u4ef6\u7684\u5206\u652f\uff0c\u4f8b\u5982 <code>master<\/code> \u6216 <code>main<\/code><\/td>\n<\/tr>\n<tr>\n<td>pat<\/td>\n<td>\u4e2a\u4eba\u8bbf\u95ee\u4ee4\u724c\u3002 \u8bbf\u95ee <a href=\"https:\/\/docs.github.com\/en\/authentication\/keeping-your-account-and-data-secure\/creating-a-personal-access-token\">GitHub \u6587\u6863<\/a> \u4e86\u89e3\u66f4\u591a\u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td>rename<\/td>\n<td>\u91cd\u547d\u540d\u89c4\u5219\u3002\u4e0d\u5b58\u5728\u7684\u8def\u5f84\u76ee\u5f55\u5c06\u88ab\u521b\u5efa\u3002 \u652f\u6301\u4e0b\u5217\u5360\u4f4d\u7b26\uff1a<\/td>\n<\/tr>\n<tr>\n<td>&#8212; <code>{year}<\/code><\/td>\n<td>&#8212; \u5e74\u4efd\uff0c\u5982 <code>2006<\/code><\/td>\n<\/tr>\n<tr>\n<td>&#8212; <code>{month}<\/code><\/td>\n<td>&#8212; \u6708\uff0c\u5982 <code>01<\/code><\/td>\n<\/tr>\n<tr>\n<td>&#8212; <code>{day}<\/code><\/td>\n<td>&#8212; \u65e5\uff0c\u5982 <code>02<\/code><\/td>\n<\/tr>\n<tr>\n<td>&#8212; <code>{unix_ts}<\/code><\/td>\n<td>&#8212; \u4ee5\u79d2\u8ba1\u7684 Unix \u65f6\u95f4\u6233\uff0c\u5982 <code>1643373370<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>&#8212; <code>{ext}<\/code><\/td>\n<td>&#8212; \u6269\u5c55\u540d\uff0c\u5982 <code>.png<\/code>\uff0c\u82e5\u6587\u4ef6\u65e0\u6269\u5c55\u540d\uff0c\u5219\u4e3a\u7a7a\u4e32<\/td>\n<\/tr>\n<tr>\n<td>&#8212; <code>{file_name}<\/code><\/td>\n<td>&#8212; \u539f\u59cb\u6587\u4ef6\u540d\uff0c\u5982 <code>logo<\/code> \uff08\u4e0d\u542b\u6269\u5c55\u540d\uff09<\/td>\n<\/tr>\n<tr>\n<td>&#8212; <code>{file_name_hash}<\/code><\/td>\n<td>&#8212; <code>{file_name}<\/code>\u7684 MD5 \u6563\u5217\u503c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p dir=\"auto\">\u8fd9\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<div class=\"highlight highlight-source-toml position-relative overflow-auto\">\n<pre><span class=\"pl-smi\">pat<\/span> = <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>ghp_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<span class=\"pl-pds\">\"<\/span><\/span>\n<span class=\"pl-smi\">rename<\/span> = <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>{year}\/{month}\/upgit_{year}{month}{day}_{unix_ts}{ext}<span class=\"pl-pds\">\"<\/span><\/span>\n<span class=\"pl-smi\">repo<\/span> = <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>repo-name<span class=\"pl-pds\">\"<\/span><\/span>\n<span class=\"pl-smi\">username<\/span> = <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>username<span class=\"pl-pds\">\"<\/span><\/span><\/pre>\n<h3 dir=\"auto\"><a id=\"user-content-\u81ea\u5b9a\u4e49\u8f93\u51fa\u683c\u5f0f\" class=\"anchor\" href=\"https:\/\/github.com\/pluveto\/upgit\/blob\/main\/docs\/README.zh-CN.md#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%BE%93%E5%87%BA%E6%A0%BC%E5%BC%8F\" aria-hidden=\"true\"><\/a>\u81ea\u5b9a\u4e49\u8f93\u51fa\u683c\u5f0f<\/h3>\n<p dir=\"auto\">\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u65b9\u5f0f\u81ea\u5b9a\u4e49\u8f93\u51fa\u683c\u5f0f\uff1a<\/p>\n<div class=\"highlight highlight-source-toml position-relative overflow-auto\">\n<pre>[<span class=\"pl-en\">output-formats<\/span>]\n<span class=\"pl-smi\">\"bbcode\"<\/span> = <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>[img]{url}[\/img]<span class=\"pl-pds\">\"<\/span><\/span>\n<span class=\"pl-smi\">\"html\"<\/span> = <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>&lt;img src=\"{url}\" \/&gt;<span class=\"pl-pds\">'<\/span><\/span>\n<span class=\"pl-smi\">\"markdown-simple\"<\/span> = <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>![]({url})<span class=\"pl-pds\">\"<\/span><\/span><\/pre>\n<p dir=\"auto\">\u4f7f\u7528\u65b9\u6cd5\u793a\u4f8b\uff1a<\/p>\n<div class=\"snippet-clipboard-content position-relative overflow-auto\">\n<pre><code>upgit :clipboard -o clipboard -f bbcode<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Upgit \u53ef\u4ee5\u5feb\u6377\u5730\u5c06\u6587\u4ef6\u4e0a\u4f20\u5230 Github \u4ed3\u5e93\u5e76\u5f97\u5230\u5176\u76f4\u94fe\u3002 \u53ef\u4f5c\u4e3a Typora \u7684\u81ea\u5b9a\u4e49\u4e0a\u4f20\u5668\u4f7f\u7528 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":950,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[63,176,301],"class_list":["post-949","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lab","tag-cdn","tag-markdown","tag-upgit"],"_links":{"self":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/posts\/949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/comments?post=949"}],"version-history":[{"count":0,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/posts\/949\/revisions"}],"wp:attachment":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/media?parent=949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/categories?post=949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/tags?post=949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}