{"action":"opened","issue":{"url":"https://api.github.com/repos/kanlidy/kanlidy.github.io/issues/6","repository_url":"https://api.github.com/repos/kanlidy/kanlidy.github.io","labels_url":"https://api.github.com/repos/kanlidy/kanlidy.github.io/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/kanlidy/kanlidy.github.io/issues/6/comments","events_url":"https://api.github.com/repos/kanlidy/kanlidy.github.io/issues/6/events","html_url":"https://github.com/kanlidy/kanlidy.github.io/issues/6","id":409604713,"node_id":"MDU6SXNzdWU0MDk2MDQ3MTM=","number":6,"title":"使用git subtree管理项目中的子库 | 人生苦短，及时行乐","user":{"login":"kanlidy","id":5557262,"node_id":"MDQ6VXNlcjU1NTcyNjI=","avatar_url":"https://avatars3.githubusercontent.com/u/5557262?v=4","gravatar_id":"","url":"https://api.github.com/users/kanlidy","html_url":"https://github.com/kanlidy","followers_url":"https://api.github.com/users/kanlidy/followers","following_url":"https://api.github.com/users/kanlidy/following{/other_user}","gists_url":"https://api.github.com/users/kanlidy/gists{/gist_id}","starred_url":"https://api.github.com/users/kanlidy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanlidy/subscriptions","organizations_url":"https://api.github.com/users/kanlidy/orgs","repos_url":"https://api.github.com/users/kanlidy/repos","events_url":"https://api.github.com/users/kanlidy/events{/privacy}","received_events_url":"https://api.github.com/users/kanlidy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-02-13T03:11:37Z","updated_at":"2019-02-13T03:11:37Z","closed_at":null,"author_association":"OWNER","body":"https://www.wayearn.com/%E4%BD%BF%E7%94%A8git%20subtree%E7%AE%A1%E7%90%86%E9%A1%B9%E7%9B%AE%E4%B8%AD%E7%9A%84%E5%AD%90%E5%BA%93/ \n\n 背景最近工作中遇到了一个问题：随着项目越来越多，很多项目依赖同一个模板或是配置文件想同一管理，又不想分开维护，所以只能互相引用，或是各自维护，导致了后续的很多麻烦。 场景一： 很多公司手机端和pc同时开发，引用同一套模板，或者通用的组件库。 场景二：用gulp、webpack来打包，或是用node来开发会有一些通用的配置文件需要统一管理。 1.可以使用git submodule方法，来建立一个子模"}}
{"actor":{"display_login":"kanlidy"}}