{"id":7113,"date":"2019-11-18T22:16:13","date_gmt":"2019-11-18T13:16:13","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=7113"},"modified":"2023-05-27T19:01:37","modified_gmt":"2023-05-27T10:01:37","slug":"%e3%80%90git%e3%80%91%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%a7git%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%82%92%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=7113","title":{"rendered":"\u3010Git\u3011Git\u306e\u57fa\u672c\u3001Git\u306e\u8a2d\u5b9a"},"content":{"rendered":"<p>Git\u306f\u3001<span style=\"color: #ff0000;\"><strong>SVN\u306b\u5909\u308f\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u3001IT\u696d\u754c\u3067\u3082\u6628\u4eca\u5927\u4eba\u6c17\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2<\/strong><\/span>\u3067\u3059\u304c\u3001\u79c1\u306f\u307e\u3060\u3042\u307e\u308a\u77e5\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u4f53\u7cfb\u7684\u306a\u77e5\u8b58\u3092\u6574\u7406\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001IT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u696d\u754c\u3060\u3051\u3067\u306a\u304f\u3001<span style=\"color: #ff0000;\"><strong>Web\u30c7\u30b6\u30a4\u30f3\u7b49\u306eWeb\u696d\u754c\u3067\u3082\u3001\u6628\u4eca\u306f\u6d41\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h2>Git<\/h2>\n<p>2005\u5e74\u306bLinux\u306e\u958b\u767a\u8005\u304c\u958b\u767a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u5c65\u6b74\u3092\u8a18\u9332\u3067\u304d\u308b<span style=\"color: #ff0000;\"><strong>\u5206\u6563\u578b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0<\/strong><\/span>\u3067\u3059\u3002\u306a\u304a\u3001SVN\u3084CVS\u7b49\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u306f<span style=\"color: #ff0000;\"><strong>\u96c6\u4e2d\u578b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0<\/strong><\/span>\u3068\u5bfe\u6bd4\u3057\u3066\u547c\u3070\u308c\u307e\u3059\u3002<\/p>\n<h3>\u5206\u6563\u578b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u306e\u7279\u5fb4<\/h3>\n<ul>\n<li>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3057\u306a\u304f\u3066\u3082\u3001\u500b\u4eba\uff30\uff23\u3067\u4f5c\u696d\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\uff08\u30aa\u30d5\u30e9\u30a4\u30f3\u4f5c\u696d\u304c\u53ef\u80fd\uff09<\/li>\n<li>\u4efb\u610f\u306e\u500b\u4eba\u306e\u597d\u304d\u306a\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u540c\u671f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\uff08\u4ed6\u4eba\u306b\u5f71\u97ff\u304c\u53ca\u3070\u305a\u8272\u3005\u691c\u8a3c\u304c\u3067\u304d\u308b\u3002\uff09<\/li>\n<li>GitHub\u7b49\u306e<span style=\"color: #ff0000;\"><strong>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3092\u4ecb\u3057\u3066<\/strong><\/span>\u7686\u304c\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306a\u300c\u4e2d\u592e\u30ea\u30dd\u30b8\u30c8\u30ea\u300d\u3092\u7528\u610f\u3059\u308b\u3053\u3068\u3067<span style=\"color: #ff0000;\"><strong>\u3044\u3064\u3067\u3082\u3069\u3053\u3067\u3082\u52b9\u7387\u3088\u304f\u958b\u767a\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/li>\n<\/ul>\n<p>GitHub\u306b\u3064\u3044\u3066\u306f\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"tNfM687oWR\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=6228\">\u3010Git\u3011\u300c\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea(GitHub\u7b49)\u300d\u3001\u300cBitbucket\u300d\u306e\u6982\u8981\u3001GitHub\u306e\u8a8d\u8a3c\u3001GitHub Actions<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=6228&#038;embed=true#?secret=tNfM687oWR\" data-secret=\"tNfM687oWR\" width=\"500\" height=\"282\" title=\"&#8220;\u3010Git\u3011\u300c\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea(GitHub\u7b49)\u300d\u3001\u300cBitbucket\u300d\u306e\u6982\u8981\u3001GitHub\u306e\u8a8d\u8a3c\u3001GitHub Actions&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h2>Git\u306eSubversion\u3068\u6bd4\u3079\u305f\u5834\u5408\u306e\u5229\u70b9<\/h2>\n<ul>\n<li>\u51e6\u7406\u901f\u5ea6\u304c\u65e9\u3044\u3002<\/li>\n<li>\u30de\u30fc\u30b8\u6a5f\u80fd\u304c\u512a\u308c\u3066\u3044\u308b\u3002<\/li>\n<li>\u30aa\u30d5\u30e9\u30a4\u30f3\u4f5c\u696d\u304c\u3057\u3084\u3059\u3044\u3002<\/li>\n<\/ul>\n<h2>Git\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30bd\u30d5\u30c8<\/h2>\n<h3>CUI\u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/h3>\n<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067Git\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u3067\u3059\u3002GUI\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u6bd4\u3079\u308b\u3068\u3068\u3063\u3064\u304d\u306b\u304f\u3044\u3067\u3059\u304c<span style=\"color: #ff0000;\"><strong>Git\u306e\u5168\u3066\u306e\u64cd\u4f5c\u3092\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<h3>GUI\u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/h3>\n<p>\u30c4\u30fc\u30eb\u306b\u3088\u3063\u3066\u306f\u3067\u304d\u306a\u3044\u64cd\u4f5c\u304c\u3042\u308b\u3002<\/p>\n<h4>SourceTree<\/h4>\n<p>GUI\u3067\u76f4\u611f\u7684\u306bGit\u3092\u64cd\u4f5c\u3067\u304d\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u7121\u6599\u3067\u3001\u65e5\u672c\u8a9e\u5bfe\u5fdc\u3001Windows\/Mac\u4e21\u65b9\u5bfe\u5fdc\u3001Bitbucket\u3084GitHub\u3068\u3082\u9023\u643a\u53ef\u80fd<\/strong><\/span>\u306a\u306e\u3067\u3001\u521d\u5fc3\u8005\u306b\u3082\u5b89\u5fc3\u3067\u3059\u3002<\/p>\n<p>Git\u3082\u540c\u6642\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4>GitHub Desktop<\/h4>\n<h2>.git\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/h2>\n<p>.git\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306fGit\u306b\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u4e00\u5f0f\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<h3>\u69cb\u6210\u8981\u7d20<\/h3>\n<table>\n<tbody>\n<tr>\n<th>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>HEAD<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>branches<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>config<\/td>\n<td>Git\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>description<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>hooks<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>info<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>objects<\/td>\n<td><span style=\"color: #ff0000;\"><strong>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u672c\u4f53<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002\u300c\u5727\u7e2e\u30d5\u30a1\u30a4\u30eb\u300d\u3001\u300c\u30c4\u30ea\u30fc\u30d5\u30a1\u30a4\u30eb\u300d\u3001\u300c\u30b3\u30df\u30c3\u30c8\u300d\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>refs<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>git-secrets<\/h2>\n<h3>\u7528\u9014<\/h3>\n<ul>\n<li>AWS\u306e\u30a2\u30af\u30bb\u30b9\u30ad\u30fc(\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\uff09<\/li>\n<li>\u30b5\u30fc\u30d0\u30fc\u306eID\/password<\/li>\n<\/ul>\n<p>\u7279\u306b\u3001\u300cgit-secrets\u300d\u306fAWS\u304c\u958b\u767a\u3057\u3066\u3044\u308b\u3060\u3051\u3042\u3063\u3066AWS\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3068\u306f\u76f8\u6027\u304c\u826f\u3044\u3067\u3059\u3002<\/p>\n<h4>\u305d\u3082\u305d\u3082\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3068\u306f\uff1f<\/h4>\n<p>ID\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u306e\u8a8d\u8a3c\u60c5\u5831\u306a\u3069\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<h3>\u4ed5\u7d44\u307f<\/h3>\n<p>git\u3067commit\u3057\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u4e8b\u524d\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u3044\u305f\u6b63\u898f\u8868\u73fe\u306b\u30de\u30c3\u30c1\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u542b\u307e\u308c\u3066\u3044\u305f\u3089\u305d\u306e\u30b3\u30df\u30c3\u30c8\u3092\u5f3e\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"lang:default decode:true\">brew install git-secrets<\/pre>\n<h2>Git\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/h2>\n<pre class=\"lang:default decode:true\">git config<\/pre>\n<h3>\u30aa\u30d7\u30b7\u30e7\u30f3<\/h3>\n<table>\n<tbody>\n<tr>\n<th width=\"150\">\u30aa\u30d7\u30b7\u30e7\u30f3\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>--global<\/td>\n<td>\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e.gitconfig\u306b\u8a2d\u5b9a\u304c\u4fdd\u5b58\u3055\u308c<span style=\"color: #ff0000;\"><strong>PC\u5168\u4f53\u306e\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<\/strong><\/span>\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u306a\u3044\u5834\u5408\u306f\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8a2d\u5b9a\u306e\u307f\u306b\u8a2d\u5b9a\u304c\u53cd\u6620\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u7279\u5b9a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3060\u3051\u3067\u306a\u304f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5171\u901a\u306e\u8a2d\u5b9a\u3092\u3057\u305f\u3044\u5834\u5408\u7b49\u306b\u4f7f\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>--list<\/td>\n<td>\u8a2d\u5b9a\u5024\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>--unset<\/td>\n<td>\u8a2d\u5b9a\u3092\u524a\u9664\u3067\u304d\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u8a2d\u5b9a\u5024<\/h3>\n<table>\n<tbody>\n<tr>\n<th>\u8a2d\u5b9a\u5024<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>user.name<\/td>\n<td>Git\u306e\u30e6\u30fc\u30b6\u30fc\u540d<\/td>\n<\/tr>\n<tr>\n<td>user.email<\/td>\n<td>Git\u306eemail\u30a2\u30c9\u30ec\u30b9<\/td>\n<\/tr>\n<tr>\n<td>http.proxy<\/td>\n<td>\u30d7\u30ed\u30ad\u30b7\u3001\u4f1a\u793e\u7b49\u3067\u30d7\u30ed\u30ad\u30b7\u7d4c\u7531\u3067\u30cd\u30c3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u6307\u5b9a\u3059\u308b\u5834\u5408\u304c\u3042\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>core.editor<\/td>\n<td>\u5229\u7528\u3059\u308b\u30a8\u30c7\u30a3\u30bf<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4f7f\u7528\u4f8b<\/h2>\n<h3>Git\u306b\u8a2d\u5b9a\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/h3>\n<p>\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u767b\u9332\u3059\u308b\u5834\u5408\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">git config --global user.name tanakataro<\/pre>\n<h3>\u7279\u5b9a\u306e\u8a2d\u5b9a\u5024\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/h3>\n<p>\u4f8b\u3048\u3070\u3001\u7279\u5b9a\u306e\u8a2d\u5b9a\u5024<span style=\"color: #ff0000;\"><strong>\u300cuser.name\u300d<\/strong><\/span>\u3068\u3044\u3046\u8a2d\u5b9a\u5024\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">git config user.name<\/pre>\n<h3>\u7279\u5b9a\u306e\u8a2d\u5b9a\u5024\u3092\u524a\u9664\u3059\u308b\u3002<\/h3>\n<pre class=\"lang:default decode:true  \">git config --global --unset \u8a2d\u5b9a\u9805\u76ee\u5024<\/pre>\n","protected":false},"excerpt":{"rendered":"Git\u306f\u3001SVN\u306b\u5909\u308f\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u3001IT\u696d\u754c\u3067\u3082\u6628\u4eca\u5927\u4eba\u6c17\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u304c\u3001\u79c1\u306f\u307e\u3060\u3042\u307e\u308a\u77e5\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u4f53\u7cfb\u7684\u306a\u77e5\u8b58\u3092\u6574\u7406\u3057\u3066\u307f\u307e\u3059\u3002 \u307e\u305f\u3001IT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u696d\u754c\u3060\u3051\u3067\u306a\u304f\u3001Web\u30c7\u30b6\u30a4\u30f3\u7b49\u306eWe [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[32],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/7113"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7113"}],"version-history":[{"count":13,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/7113\/revisions"}],"predecessor-version":[{"id":20199,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/7113\/revisions\/20199"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7113"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}