{"id":20383,"date":"2024-01-09T22:51:00","date_gmt":"2024-01-09T13:51:00","guid":{"rendered":"https:\/\/www.hiro345.net\/blogs\/hiro345\/?p=20383"},"modified":"2024-01-09T22:51:00","modified_gmt":"2024-01-09T13:51:00","slug":"%e5%88%86%e6%95%a3%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e7%ae%a1%e7%90%86%e3%82%b7%e3%82%b9%e3%83%86%e3%83%a0-fossil","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/20383.html","title":{"rendered":"\u5206\u6563\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0 fossil"},"content":{"rendered":"<p>\u5206\u6563\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0 <a href=\"https:\/\/fossil-scm.org\/\">fossil<\/a> \u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308b\u3068\u77e5\u3063\u305f\u306e\u3067\u3001\u7c21\u5358\u306b\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n<!--more--><br \/>\nUbuntu \u3067\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\napt-get update &amp;&amp; apt-get -y upgrade\r\napt-get -y install curl sqlite3\r\ncurl -sLJO https:\/\/www.fossil-scm.org\/home\/uv\/fossil-linux-x64-2.23.tar.gz\r\nif [ ! -e ${HOME}\/.local\/bin ]; then\r\n  mkdir -p ${HOME}\/.local\/bin\r\nfi\r\ntar xf fossil-linux-x64-2.23.tar.gz -C ${HOME}\/.local\/bin\/\r\n<\/pre>\n<p>apt \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u306a\u3089\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\napt-get update &amp;&amp; apt-get -y upgrade &amp;&amp; apt-get -y install fossil\r\n<\/pre>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u65b0\u898f\u4f5c\u6210\u3002Git \u304c\u308f\u304b\u308b\u4eba\u306a\u3089\u3001\u3053\u308c\u306f\u30d9\u30a2\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u4f5c\u6210\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nfossil new proj001.fossil\r\n<\/pre>\n<p>\u30ef\u30fc\u30ad\u30f3\u30b0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u7528\u610f\u3002Git \u304c\u308f\u304b\u308b\u4eba\u306a\u3089\u3001\u3053\u308c\u306f\u30d9\u30a2\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089 HEAD \u3092 checkout \u3059\u308b\u306e\u306b\u8fd1\u3044\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nfossil open proj001.fossil --workdir proj001\r\n<\/pre>\n<p>\u3053\u308c\u3067\u3001\u30ef\u30fc\u30ad\u30f3\u30b0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea proj001 \u304c\u7528\u610f\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30ef\u30fc\u30ad\u30f3\u30b0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u306f\u3001\u3069\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089 open \u3057\u305f\u304b\u306e\u60c5\u5831\u3092\u4fdd\u6301\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30ef\u30fc\u30ad\u30f3\u30b0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea proj001 \u3067\u958b\u767a\u4f5c\u696d\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\ncd proj001\r\nnpm init -y\r\nnpm exec -y --package=@angular\/cli -- \\\r\n  ng new \\\r\n    --interactive false \\\r\n    --defaults true \\\r\n    --skip-git \\\r\n    --minimal true \\\r\n    app-sample-minimal\r\n<\/pre>\n<p>\u7121\u8996\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u767b\u9332<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nmkdir .fossil-settings\/\r\ntouch .fossil-settings\/ignore-glob\r\necho &quot;node_modules&quot; &gt;&gt; .fossil-settings\/ignore-glob\r\n<\/pre>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u30ef\u30fc\u30ad\u30f3\u30b0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3064\u3064 fossil add \u3067\u8ffd\u52a0\u3002\u8ffd\u52a0\u3068\u524a\u9664\u306e\u4e21\u65b9\u304c\u3067\u304d\u308b fossil addremove \u3068\u3044\u3046\u306e\u3082\u3042\u308b\u3002<\/p>\n<p>add \u30b3\u30de\u30f3\u30c9\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u73fe\u5728\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u8ffd\u52a0\u3002\u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u65e2\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u3001\u66f4\u65b0\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nfossil add [\u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d]\r\n<\/pre>\n<p>addremove \u30b3\u30de\u30f3\u30c9\u306f\u3001add \u30b3\u30de\u30f3\u30c9\u306e\u6a5f\u80fd\u306b\u52a0\u3048\u3066\u3001\u8ffd\u52a0\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u524a\u9664\u3082\u53ef\u80fd\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nfossil addremove [\u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d]\r\n<\/pre>\n<p>add \u3082 addremove \u3082\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308b\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n-b\uff1a\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\u6271\u3046\u3068\u304d\u306b\u6307\u5b9a\r\n-m\uff1a\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u6307\u5b9a\r\n-R\uff1a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u518d\u5e30\u7684\u306b\u8ffd\u52a0\u3059\u308b\u3068\u304d\u306b\u6307\u5b9a\r\n<\/pre>\n<p>\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306e sample.png \u3092\u8ffd\u52a0\u3057\u3064\u3064\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u300cadd sammple.png\u300d\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306e\u30b3\u30de\u30f3\u30c9\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nfossil add -b -m &quot;add sample.png&quot; sample.png\r\n<\/pre>\n<p>\u4ed6\u306b\u306f fossil extras \u30b3\u30de\u30f3\u30c9\u3082\u3088\u304f\u4f7f\u3046\u3002\u3053\u308c\u306f\u73fe\u5728\u306e\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u306b\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u89a7\u8868\u793a\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nfossil extras\r\n<\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u73fe\u5728\u306e\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u958b\u59cb\u3057\u3001\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u5e30\u7684\u306b\u691c\u7d22\u3002<\/p>\n<p>extras \u30b3\u30de\u30f3\u30c9\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n-R\uff1a\u6307\u5b9a\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u518d\u5e30\u7684\u306b\u691c\u7d22\r\n-i\uff1a\u6307\u5b9a\u3055\u308c\u305f\u30d1\u30bf\u30fc\u30f3\u306b\u4e00\u81f4\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u7121\u8996\r\n-r\uff1a\u51fa\u529b\u3092\u76f8\u5bfe\u30d1\u30b9\u3067\u8868\u793a\r\n<\/pre>\n<p>fossil add\u3001addremove\u3001extras \u3092\u4f7f\u3063\u3066 proj001 \u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nfossil extras\r\nfossil extras --dotfiles\r\nfossil add package.json\r\nfossil addremove\r\nfossil addremove --dotfiles\r\n<\/pre>\n<p>&#8211;dotfiles \u306f . \u3067\u59cb\u307e\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u7279\u5225\u306b\u6271\u3046\u305f\u3081\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3002<\/p>\n<p>\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066\u30b3\u30df\u30c3\u30c8<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nfossil status\r\nfossil commit -m &quot;add&quot;\r\n<\/pre>\n<p>Web \u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5\u3002http:\/\/localhost:8080\/ \u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068 Issue \u6a5f\u80fd\u3084 Wiki \u6a5f\u80fd\u304c\u4f7f\u3048\u308b Web \u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u304c\u7528\u610f\u3055\u308c\u308b\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nfossil ui proj001.fossil \r\n<\/pre>\n<p>http:\/\/localhost:8080\/ \u306b\u3042\u308b\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3002<br \/>\nrepo \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7528\u610f\u3057\u3066\u3001\u305d\u3053\u3067 fossil clone \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nmkdir repo\r\ncd repo\r\nfossil clone http:\/\/localhost:8080\/ --workdir proj001 proj001.fossil\r\n<\/pre>\n<p>\u3053\u308c\u3067\u3001repo\/proj001.fossil \u306b proj001 \u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u30af\u30ed\u30fc\u30f3\u3055\u308c\u3001\u30ef\u30fc\u30ad\u30f3\u30b0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc repo\/proj001 \u3082\u4f5c\u6210\u3055\u308c\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5206\u6563\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0 fossil \u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308b\u3068\u77e5\u3063\u305f\u306e\u3067\u3001\u7c21\u5358\u306b\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1451],"class_list":["post-20383","post","type-post","status-publish","format-standard","hentry","category-linux","tag-fossil"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/20383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/comments?post=20383"}],"version-history":[{"count":2,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/20383\/revisions"}],"predecessor-version":[{"id":20385,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/20383\/revisions\/20385"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=20383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=20383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=20383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}