├── README.md ├── gitdisk-update.applescript ├── gitman.png ├── gitwatchWORDS.png ├── resources ├── 1.png ├── 2.png ├── 3.png ├── 4.png ├── 5.png ├── 6.png ├── gitman01.png ├── mas01.png ├── mas02.png └── mas03.png └── screenshot.png /README.md: -------------------------------------------------------------------------------- 1 | 8 | 9 | Mac App Store下载:https://itunes.apple.com/cn/app/gitman/id1274940707?mt=12 10 | 11 | # 需求背景 12 | 13 | 设计师MM需要给开发GG切图,产品MM要给开发GG和设计师MM各种PRD文档,如何方便快速地同步文件呢?抛开QQ微信等IM和Email等传统方式,基于文件夹的现有解决方案有: 14 | 15 | 1. 各种国内盘 16 | 2. Dropbox 17 | 3. BitTorrent Sync 18 | 19 | 这3种解决方案都不够理想: 20 | 21 | 1. 国内盘的问题有3:信息的隐私安全,没有企业级部署方案,成本太高。 22 | 2. Dropbox在国内无法正常使用,要让所有参与者都使用VPN是不现实的。 23 | 3. BitTorrent Sync可以说是目前最好的选择了:局域网P2P同步,没有隐私安全问题,普通免费版就够日常开发使用了,而且速度快。但我们在使用过程中发现总是出现丢文件的问题,个人怀疑是P2P的技术架构的问题导致,无法从根本上避免。 24 | 25 | 在使用了一年多BitTorrent Sync以后,在~~今天~~5月11日吃晚饭的时候终于决定自己开发一款满足以下需求的产品: 26 | 27 | 1. 隐私安全,局域网同步 28 | 2. 稳定,不丢文件 29 | 3. 速度快 30 | 4. 操作简单,不需要懂太多技术 31 | 32 | 而这就是[GitMan](https://github.com/amoblin/gitman)。 33 | 34 | # [GitMan:基于Git的网盘式文件同步工具](https://github.com/amoblin/gitman) 35 | 36 | GitMan是一款基于Git的网盘式文件同步工具,配合局域网Gitlab作为数据交换中心,文件同步速度快。因为基于Git,所以可以保证数据的稳定可靠,不丢文件,并且可访问文件修改历史。使用起来也极为简单,启动GitMan以后,把需要同步的文件夹拖拽到GitMan界面中,然后文件夹里的任何文件修改或添加都会自动同步到远端Git库中,开发就可以像拉取代码一样方便的获取到产品原型图PRD文档、设计标注图、资源切图等。一旦文件有了更新,开发可以实时获取通知提醒,大大降低了沟通成本,提高了工作效率。配合公司内部Gitlab使用,可保障数据的隐私安全。 37 | 38 | ![](./resources/gitman01.png) 39 | 40 | GitMan的特点如下: 41 | 42 | 1. 基于Git库做同步 43 | 2. 稳定,不丢文件,可访问历史 44 | 3. 配合局域网Gitlab等,同步速度快 45 | 4. 操作简单,只需要拖拽文件到文件夹里即可 46 | 47 | 好处: 48 | 49 | 1. 降低生产各环节沟通成本。使产品、交互、设计、开发、测试的信息流动更高效。 50 | 2. 数据隐私安全,信息不泄露。配合公司内部Gitlab使用,可保障数据的隐私安全。 51 | 52 | 不足: 53 | 54 | 0. 目前只支持OSX系统 55 | 56 | 具体如何使用呢?且看下文。 57 | 58 | ## Gitlab和Git配置(这一步由开发GG来协助,这是一劳永逸的配置) 59 | 60 | 在产品MM或设计师MM的电脑上配置好公私钥对,以及Gitlab账号的访问权限,确保能够免密进行push。 61 | 62 | ## Git库初始化(这一步由开发GG来协助,每个Git库配置一次即可) 63 | 64 | 在Gitlab上创建一个git库,用于存放产品文档或切图等资源 65 | 66 | git clone下来上述git库,注意使用ssh协议,以保证接下来可以直接push更新仓库。 67 | 68 | 这些开发GG都懂滴~好机会注意把握哦~ 69 | 70 | ## 下载安装GitMan 71 | 72 | https://itunes.apple.com/cn/app/gitman/id1274940707?mt=12 73 | 74 | 下载安装启动后,把上述文件夹拖入GitMan。 75 | 76 | 配置完毕,接下来就是日常使用了。 77 | 78 | ## GitMan使用(产品MM或设计师MM操作) 79 | 80 | 向Git库文件夹中添加文件即可,方式随意。 81 | 82 | ## 工程师获取文件更新 83 | 84 | ``` 85 | git pull 86 | ``` 87 | 88 | 就酱紫~ 89 | 90 | GitMan GitHub地址:https://github.com/amoblin/gitman 91 | 92 | 欢迎star, fork or pull request or giving suggestion! 93 | -------------------------------------------------------------------------------- /gitdisk-update.applescript: -------------------------------------------------------------------------------- 1 | (* Copyright (C) 2016 amoblin *) 2 | 3 | property dialog_timeout : 30 -- set the amount of time before dialogs auto-answer. 4 | 5 | on adding folder items to this_folder after receiving added_items 6 | try 7 | tell application "Finder" 8 | set current_path to (POSIX path of (target of front window as alias)) 9 | do shell script ("cd \"" & current_path & "\"; /usr/local/bin/gitdisk-update") 10 | end tell 11 | on error the_error 12 | display dialog the_error buttons {"OK"} with icon caution with title "Error" 13 | end try 14 | end adding folder items to 15 | -------------------------------------------------------------------------------- /gitman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoblin/gitman/3f88b6845a95b94f8fe20c1a0ba0887fce3cc807/gitman.png -------------------------------------------------------------------------------- /gitwatchWORDS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoblin/gitman/3f88b6845a95b94f8fe20c1a0ba0887fce3cc807/gitwatchWORDS.png -------------------------------------------------------------------------------- /resources/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoblin/gitman/3f88b6845a95b94f8fe20c1a0ba0887fce3cc807/resources/1.png -------------------------------------------------------------------------------- /resources/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoblin/gitman/3f88b6845a95b94f8fe20c1a0ba0887fce3cc807/resources/2.png -------------------------------------------------------------------------------- /resources/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoblin/gitman/3f88b6845a95b94f8fe20c1a0ba0887fce3cc807/resources/3.png -------------------------------------------------------------------------------- /resources/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoblin/gitman/3f88b6845a95b94f8fe20c1a0ba0887fce3cc807/resources/4.png -------------------------------------------------------------------------------- /resources/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoblin/gitman/3f88b6845a95b94f8fe20c1a0ba0887fce3cc807/resources/5.png -------------------------------------------------------------------------------- /resources/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoblin/gitman/3f88b6845a95b94f8fe20c1a0ba0887fce3cc807/resources/6.png -------------------------------------------------------------------------------- /resources/gitman01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoblin/gitman/3f88b6845a95b94f8fe20c1a0ba0887fce3cc807/resources/gitman01.png -------------------------------------------------------------------------------- /resources/mas01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoblin/gitman/3f88b6845a95b94f8fe20c1a0ba0887fce3cc807/resources/mas01.png -------------------------------------------------------------------------------- /resources/mas02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoblin/gitman/3f88b6845a95b94f8fe20c1a0ba0887fce3cc807/resources/mas02.png -------------------------------------------------------------------------------- /resources/mas03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoblin/gitman/3f88b6845a95b94f8fe20c1a0ba0887fce3cc807/resources/mas03.png -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoblin/gitman/3f88b6845a95b94f8fe20c1a0ba0887fce3cc807/screenshot.png --------------------------------------------------------------------------------