{"id":450,"date":"2016-12-20T18:44:37","date_gmt":"2016-12-20T09:44:37","guid":{"rendered":"http:\/\/okamurax.com\/?p=450"},"modified":"2025-09-21T11:44:45","modified_gmt":"2025-09-21T02:44:45","slug":"git%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=450","title":{"rendered":"Git\u30e1\u30e2"},"content":{"rendered":"<p>\u203b\u8ffd\u8a18<\/p>\n<p>\u30fb\u30ed\u30fc\u30ab\u30eb\u30d5\u30a9\u30eb\u30c0\u3092\u5b89\u5168\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u3066\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5<br \/>\ngit config &#8211;global &#8211;add safe.directory &#8220;G:\\Dropbox\\Workspace\\xxx&#8221;<\/p>\n<p>\u30fb\u8a2d\u5b9a\u78ba\u8a8d<br \/>\ngit config &#8211;global &#8211;get-all safe.directory<\/p>\n<h2>\u6700\u521d\u306b<\/h2>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u30ea\u30e2\u30fc\u30c8\u3068\u30ed\u30fc\u30ab\u30eb\u304c\u3042\u308b\u3002\u901a\u5e38\u3001\u30ed\u30fc\u30ab\u30eb\u3067\u306e\u4f5c\u696d\u3002<br \/>\n\u30ed\u30fc\u30ab\u30eb\u3067\u5909\u66f4\u3092\u4fdd\u5b58\u3059\u308b\u306e\u304c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u2192\u30b3\u30df\u30c3\u30c8\u3002<br \/>\n\u30ea\u30e2\u30fc\u30c8\u3078\u306f\u30d7\u30c3\u30b7\u30e5\u3001\u30d7\u30eb\u3002<\/p>\n<p>\u540d\u79f0\u306eorigin, master\u3068\u3044\u3046\u306e\u306f<br \/>\n<span style=\"color: #0000ff;\">origin = \u30ec\u30dd\u30b8\u30c8\u30ea\u306e\u5225\u540d<\/span><br \/>\n<span style=\"color: #0000ff;\">master = \u30d6\u30e9\u30f3\u30c1\u306e\u540d\u524d<br \/>\n<span style=\"color: #333333;\">\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u540d\u79f0\u3002<\/span><\/span><\/p>\n<p><span style=\"color: #0000ff;\">git clone https:\/\/xxx<\/span><br \/>\n\u3067\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u306e\u5909\u66f4\u5c65\u6b74\u3082\u542b\u3081\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u4fdd\u5b58\u3055\u308c\u308b\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git * , git add xxx<\/span> \u3067\u7d22\u5f15\u306b\u767b\u9332<br \/>\n<span style=\"color: #0000ff;\">git commit -m &#8220;\u30b3\u30e1\u30f3\u30c8&#8221;<\/span>\u3000\u3067\u30b3\u30df\u30c3\u30c8\u3059\u308b\u3002(\u3053\u306e\u6bb5\u968e\u3067\u306f\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u4fdd\u5b58\u3055\u308c\u3066\u3044\u306a\u3044\u3002)<\/p>\n<p>\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30d7\u30c3\u30b7\u30e5<br \/>\n<span style=\"color: #0000ff;\">git push \u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u540d \u30d6\u30e9\u30f3\u30c1\u540d<\/span><\/p>\n<p>\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001<br \/>\n<span style=\"color: #0000ff;\">git remote add origin xxx<\/span>\u3067\u767b\u9332\u3067\u304d\u308b\u3002<\/p>\n<p>\u73fe\u5728\u306e\u30ed\u30fc\u30ab\u30eb\u3068\u3001\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5dee\u304c\u751f\u307e\u308c\u308b\uff08\u5171\u6709\u306f\u4ed6\u304b\u3089push\u3055\u308c\u308b\uff09<br \/>\n\u30ed\u30fc\u30ab\u30eb\u3092\u6700\u65b0\u306b\u3059\u308b\u306e\u304cgit pull<\/p>\n<h2>\u7c21\u5358\u306a\u4f7f\u3044\u65b9<\/h2>\n<p><span style=\"color: #0000ff;\">git clone https:\/\/github.com\/okamurax\/vba_to_sqlserver.git<\/span><br \/>\n<span style=\"color: #0000ff;\">cd vba_to_sqlserver<\/span><br \/>\n<span style=\"color: #0000ff;\">git add .<\/span><br \/>\n<span style=\"color: #0000ff;\">git commit -m &#8220;first commit&#8221;<\/span><br \/>\n<span style=\"color: #0000ff;\">git push https:\/\/github.com\/okamurax\/vba_to_sqlserver.git master<\/span><\/p>\n<h2>\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9<\/h2>\n<p><span style=\"color: #0000ff;\">sudo apt-get install git<\/span><br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p><span style=\"color: #0000ff;\">git config &#8211;global user.name &#8220;okamura&#8221;<\/span><br \/>\n<span style=\"color: #0000ff;\"> git config &#8211;global user.email &#8220;mail@xxx.com&#8221;<\/span><br \/>\n\u57fa\u672c\u8a2d\u5b9a<\/p>\n<p><span style=\"color: #0000ff;\">git config &#8211;global color.ui true<\/span><br \/>\n\u30ab\u30e9\u30fc\u8868\u793a<\/p>\n<p><span style=\"color: #0000ff;\">git config &#8211;global alias.co checkout<\/span><br \/>\n\u5225\u540d<\/p>\n<p><span style=\"color: #0000ff;\">git config -l<\/span><br \/>\n\u30b3\u30f3\u30d5\u30a3\u30b0\u4e00\u89a7<\/p>\n<p><span style=\"color: #0000ff;\">git init<\/span><br \/>\n\u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f7f\u3046\u5ba3\u8a00<\/p>\n<p>.git\u7b49\u304c\u4f5c\u6210\u3055\u308c\u308b\u3002<br \/>\n\u3053\u306e.git\u3068\u540c\u968e\u5c64\u4ee5\u4e0b\u304c\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u306b\u306a\u308b\u5370\u3067\u3001.git\u3092\u624b\u52d5\u3067\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git add index.rb<\/span><br \/>\n<span style=\"color: #0000ff;\">git add .<\/span> (\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u3092\u5168\u3066add\u3059\u308b)<br \/>\n\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3078<\/p>\n<p><span style=\"color: #0000ff;\">git commit<\/span><br \/>\n<span style=\"color: #0000ff;\"> git commit -m &#8220;xxx&#8221;<\/span><br \/>\n\u30b9\u30c6\u30fc\u30b8\u304b\u3089\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea<\/p>\n<p><span style=\"color: #0000ff;\">git show xxx(id)<\/span><br \/>\n\u30b3\u30df\u30c3\u30c8\u306e\u5185\u5bb9\u304c\u307f\u308c\u308b\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git log<\/span><br \/>\n\u30b3\u30df\u30c3\u30c8\u306e\u30ed\u30b0\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3002(\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u306e\u4e2d\u306b\u3044\u306a\u3044\u3068\u30c0\u30e1)<\/p>\n<p><span style=\"color: #0000ff;\">git log &#8211;oneline<\/span><br \/>\n\u4e00\u884c\u3067\u8868\u793a\u3057\u305f\u3044<\/p>\n<p><span style=\"color: #0000ff;\">git log &#8211;stat<\/span><br \/>\n\u5909\u66f4\u30d5\u30a1\u30a4\u30eb\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb<\/p>\n<p><span style=\"color: #0000ff;\">git log -p<\/span><br \/>\n\u5909\u66f4\u7b87\u6240\u3092\u8868\u793a\u3059\u308b<\/p>\n<p><span style=\"color: #0000ff;\">git status<\/span><br \/>\n\u30d5\u30a1\u30a4\u30eb\u306e\u72b6\u614b\u3002<\/p>\n<p>modified\u3068\u8868\u793a\u3055\u308c\u308b\u3068\u5909\u66f4\u3055\u308c\u3066\u3044\u3066\u3001<br \/>\nchanges not staged for commit \u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u306b\u3082\u30b3\u30df\u30c3\u30c8\u306b\u3044\u306a\u3044\u3068\u3044\u3046\u610f\u5473\u3002<br \/>\nchanges to be commited \u3068\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u306b\u3044\u3066\u30b3\u30df\u30c3\u30c8\u3055\u308c\u3066\u3044\u306a\u3044\u72b6\u614b\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git checkout &#8212; index.rb<\/span><br \/>\n\u30b3\u30df\u30c3\u30c8\u3057\u3066\u3044\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u3001\u30b3\u30df\u30c3\u30c8\u3057\u305f\u60c5\u5831\u306b\u623b\u3059\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git diff<\/span><br \/>\n\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u4e0a\u304c\u3063\u3066\u3044\u306a\u3044\u3082\u306e\u3092\u6bd4\u8f03\u3067\u304d\u308b<br \/>\n(\u30ed\u30fc\u30ab\u30eb\u3068\u30b9\u30c6\u30fc\u30b8\u306e\u5dee\u5206)<\/p>\n<p><span style=\"color: #0000ff;\">git diff &#8211;cached<\/span><br \/>\n\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u306b\u4e0a\u304c\u3063\u305f\u3042\u3068\u306f &#8211;cached<br \/>\n(\u30b9\u30c6\u30fc\u30b8\u3068\u30b3\u30df\u30c3\u30c8\u306e\u5dee\u5206)<\/p>\n<p><span style=\"color: #0000ff;\">git rm index.html<\/span><br \/>\n\u3067\u6d88\u3059<\/p>\n<p><span style=\"color: #0000ff;\">git mv index.html<\/span><br \/>\n\u3067\u79fb\u52d5<\/p>\n<p><span style=\"color: #0000ff;\">vim .gitignore<\/span><br \/>\n\u3067\u5bfe\u8c61\u5916\u3092\u7ba1\u7406\u3067\u304d\u308b\u3002<br \/>\n*.log\u7b49\u3092\u66f8\u3044\u3066\u304a\u304f\u3068\u3001\u5bfe\u8c61\u5916\u3068\u3059\u308b\u3002<br \/>\n.gitignore\u3092\u7f6e\u3044\u305f\u968e\u5c64\u3068\u3001\u4ee5\u4e0b\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u306b\u6709\u52b9\u306b\u306a\u308b\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git commit &#8211;amend<\/span><br \/>\n\u76f4\u524d\u306e\u30b3\u30df\u30c3\u30c8\u3092\u5909\u66f4\u3002\u5c65\u6b74\u304c\u5897\u3048\u306a\u3044\u3002<br \/>\n\u30b3\u30df\u30c3\u30c8\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u901a\u5e38\u901a\u308a\u3001add\u3057\u3066commit\u3059\u308b<br \/>\n\u305d\u306e\u3068\u304d\u306b\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3067&#8211;amend\u3092\u4ed8\u3051\u308b<br \/>\n\u305d\u3046\u3059\u308b\u3068\u3001\u76f4\u524d\u306e\u30b3\u30df\u30c3\u30c8\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u5909\u66f4\u3067\u304d\u308b\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git reset &#8211;hard HEAD<\/span><br \/>\n\u76f4\u524d\u306e\u30b3\u30df\u30c3\u30c8\u306b\u623b\u3059\u5834\u5408\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git reset &#8211;hard HEAD^<\/span><br \/>\n\u76f4\u524d\u306e\u30b3\u30df\u30c3\u30c8\u306e\u4e00\u3064\u524d\u306b\u623b\u308b<\/p>\n<p><span style=\"color: #0000ff;\">git reset &#8211;hard xxxxxxxxxxxxxx<\/span><br \/>\n\u3067\u3082\u623b\u308c\u308b\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git reset &#8211;hard ORIG_HEAD<\/span><br \/>\n\u6700\u65b0\u306e\u72b6\u614b\u304b\u3089\u4ee5\u524d\u306e\u30b3\u30df\u30c3\u30c8\u306b\u4e00\u5ea6\u623b\u3057\u3066\u3001<br \/>\n\u3084\u3063\u3071\u308a\u6700\u65b0\u306e\u72b6\u614b\u3067\u826f\u304b\u3063\u305f\u5834\u5408\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git branch<\/span><br \/>\n\u30d6\u30e9\u30f3\u30c1\u306e\u4e00\u89a7\u53d6\u5f97<\/p>\n<p><span style=\"color: #0000ff;\">git branch hoge<\/span><br \/>\n\u30d6\u30e9\u30f3\u30c1\u4f5c\u308b<\/p>\n<p><span style=\"color: #0000ff;\">git checkout hoge<\/span><br \/>\n\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u3078\u79fb\u52d5\u3059\u308b\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u3001\u8ffd\u52a0\u306a\u3069\u30d6\u30e9\u30f3\u30c1\u3054\u3068\u306e\u72b6\u614b\u304c\u7dad\u6301\u3055\u308c\u308b\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git checkout -b hoge<\/span><br \/>\n\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3057\u3064\u3064\u305d\u306e\u30d6\u30e9\u30f3\u30c1\u79fb\u52d5\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git merge hoge<\/span><br \/>\n\u30d6\u30e9\u30f3\u30c1\u306e\u5909\u66f4\u3092\u53d6\u308a\u8fbc\u3080\u3002<br \/>\nhoge\u3067\u306e\u5909\u66f4\u304c\u3088\u304b\u3063\u305f\u306e\u3067\u3001\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u53d6\u308a\u8fbc\u3080\u3002<br \/>\n\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u3082\u7d50\u5408\u3055\u308c\u308b\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git branch -d hoge<\/span><br \/>\n\u30d6\u30e9\u30f3\u30c1\u6d88\u3059<\/p>\n<p><span style=\"color: #0000ff;\">git tag<\/span><br \/>\n\u30bf\u30b0\u306e\u4e00\u89a7<\/p>\n<p><span style=\"color: #0000ff;\">git tag xxx<\/span><br \/>\n\u3053\u308c\u3067\u76f4\u8fd1\u306e\u30b3\u30df\u30c3\u30c8\u306bxxx\u3068\u3044\u3046\u30bf\u30b0\u304c\u3064\u304f\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git tag yyy xxxx<\/span><br \/>\n\u3053\u308c\u3067xxx\u3068\u3044\u3046id\u306e\u30b3\u30df\u30c3\u30c8\u306byyy\u3068\u3044\u3046\u30bf\u30b0\u304c\u3064\u304f\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git tag -d xxx<\/span><br \/>\n\u30bf\u30b0\u3092\u6d88\u3059\u3002<\/p>\n<p>\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u3082\u30ed\u30fc\u30ab\u30eb\u3068\u540c\u3058\u3067\u3001<br \/>\n***.git \u306e\u3088\u3046\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3057\u3001\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u306e\u4e2d\u3067\u3001<br \/>\n<span style=\"color: #0000ff;\">git init &#8211;bare<\/span><br \/>\n\u3092\u5b9f\u65bd\u3059\u308b\u3002<br \/>\nbare\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u3068\u3001<br \/>\n\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3001\u5909\u66f4\u7b49\u3057\u306a\u3044\u3068\u3044\u3046\u610f\u5473\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git remote add origin xxx.git<br \/>\n<\/span>(\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u5834\u6240)<\/p>\n<p>\u5225\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u767b\u9332<br \/>\n\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u306b\u3057\u305f\u3044\u5834\u6240\u3067\u5b9f\u884c\u3059\u308b\u3002<br \/>\n\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u306f\u307e\u305agit init\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u30c0\u30e1\u3002<br \/>\n(clone\u306f\u5927\u4e08\u592b\u306a\u306e\u3067\u6ce8\u610f)<\/p>\n<p>URL\u306b&#8221;origin&#8221;\u3068\u3044\u3046\u77ed\u7e2e\u540d(\u30cb\u30c3\u30af\u30cd\u30fc\u30e0)\u3092\u4ed8\u3051\u308b\u3068\u8003\u3048\u308c\u3070OK\u3002<\/p>\n<p>\u7a7a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067git init\u3057\u3066\u3001remote add\u3057\u3066\u3082\u7279\u306b\u30d5\u30a1\u30a4\u30eb\u306f\u30b3\u30d4\u30fc\u3055\u308c\u306a\u3044\u3002<br \/>\n(clone\u306f\u30b3\u30d4\u30fc\u3055\u308c\u308b)<\/p>\n<p>git init\u3057\u305f\u3060\u3051\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u306f\u30d6\u30e9\u30f3\u30c1\u304c\u306a\u3044\u3002<br \/>\n\u6700\u521d\u306e\u30b3\u30df\u30c3\u30c8\u3067\u30d6\u30e9\u30f3\u30c1\u304c\u3067\u304d\u308b\u3002<\/p>\n<p><span style=\"color: #0000ff;\">git remote rm origin<\/span><br \/>\n\u767b\u9332\u3057\u305f\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u524a\u9664<\/p>\n<p><span style=\"color: #0000ff;\">git push ox master<\/span><br \/>\n\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u3092\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u3078\u767b\u9332\u3002<br \/>\nox\u3068\u3044\u3046\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5411\u304b\u3063\u3066master\u30d6\u30e9\u30f3\u30c1\u3092\u767b\u9332\u3059\u308b\u3002<\/p>\n<p>push\uff1a\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<br \/>\nox\uff1a\u30ea\u30e2\u30fc\u30c8\u306e\u30b5\u30fc\u30d0\u540d\u306e\u77ed\u7e2e\u540d\uff08\u76f4\u63a5URL\u3067\u3082OK\uff09<br \/>\nmaster\uff1a\u30d6\u30e9\u30f3\u30c1\u540d<\/p>\n<p>master\u306e\u90e8\u5206\u306f\u6b63\u78ba\u306b\u306fmaster:master\u3068\u306a\u308b\u3002<br \/>\n(\u30ed\u30fc\u30ab\u30eb\u306emaster\u3092\u30ea\u30e2\u30fc\u30c8\u306emaster\u306b\u53cd\u6620)<\/p>\n<p><span style=\"color: #0000ff;\">git clone xxx.git<\/span><br \/>\n\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30b3\u30d4\u30fc<\/p>\n<p><span style=\"color: #0000ff;\">git pull origin master<\/span><br \/>\n\u5171\u6709\u304b\u3089\u6301\u3063\u3066\u6765\u3066\u30ed\u30fc\u30ab\u30eb\u3067\u30de\u30fc\u30b8\u3055\u308c\u308b\u3002<br \/>\n\u30de\u30fc\u30b8\u306a\u306e\u3067\u3001\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u30ed\u30fc\u30ab\u30eb\u3067\u306e\u5909\u66f4\u7b87\u6240\u304c\u4e00\u7dd2\u3060\u3068\u3001\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u3059\u308b\u3002<\/p>\n<h2>\u30ea\u30e2\u30fc\u30c8rep\u306e\u4f5c\u308a\u65b9\u3002\u30ed\u30fc\u30ab\u30eb\u306e\u5834\u5408\u3002<\/h2>\n<p>Ubuntu\u5074\u3067Samba\u3067\u5171\u6709\u3057\u3066\u3044\u308b\u30d5\u30a9\u30eb\u30c0\u3067<br \/>\n<span style=\"color: #0000ff;\">git init &#8211;bare &#8211;shared<\/span><br \/>\n\u3092\u3059\u308b\u3002<\/p>\n<p>&#8211;shared\u3057\u3066\u3082\u30c0\u30e1\u3067Samba\u306e\u30d5\u30a9\u30eb\u30c0\u306a\u306e\u3067\u3001<br \/>\n<span style=\"color: #0000ff;\">sudo chown -R nobody:nogroup \u30d5\u30a9\u30eb\u30c0\u540d<\/span><br \/>\n\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<p>\u65e2\u306b\u30ea\u30e2\u30fc\u30c8rep\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u5834\u5408\u3001<br \/>\n<span style=\"color: #0000ff;\">\u30c1\u30fc\u30e0\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9 &gt;<\/span> <span style=\"color: #333333;\"><span style=\"color: #0000ff;\">\u63a5\u7d9a\u7ba1\u7406 &gt; \u8907\u88fd<\/span><br \/>\n<\/span>\u304b\u3089\u3001\u30ea\u30e2\u30fc\u30c8rep\u306e\u5834\u6240\u3068\u30ed\u30fc\u30ab\u30ebrep\u306e\u5834\u6240\u3092\u6307\u5b9a\u3002<\/p>\n<p>\u30ea\u30e2\u30fc\u30c8rep\u3082\u30ed\u30fc\u30ab\u30ebrep\u30821\u7b87\u6240\u3067\u8907\u6570\u306e\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u7ba1\u7406\u3067\u304d\u308b\u3002<\/p>\n<h2>\u30ed\u30fc\u30ab\u30eb\u3067\u4f7f\u3046\u5834\u5408(Win)<\/h2>\n<p>\u9069\u5f53\u306a\u30d5\u30a9\u30eb\u30c0(git_remote)\u3067<br \/>\n<span style=\"color: #0000ff;\">git init &#8211;bare &#8211;shared<\/span><\/p>\n<p>\u9069\u5f53\u306a\u30d5\u30a9\u30eb\u30c0\u3067\u4f5c\u696d<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u203b\u8ffd\u8a18 \u30fb\u30ed\u30fc\u30ab\u30eb\u30d5\u30a9\u30eb\u30c0\u3092\u5b89\u5168\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u3066\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5 git config &#8211;global &#8211;add safe.directory &#8220;G:\\Dropbox\\Workspac &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=450\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Git\u30e1\u30e2&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-450","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=450"}],"version-history":[{"count":14,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/450\/revisions"}],"predecessor-version":[{"id":6868,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/450\/revisions\/6868"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}