【文件属性】:
文件名称:geogit:自动定位您的提交
文件大小:74KB
文件格式:ZIP
更新时间:2021-05-20 23:21:57
JavaScript
乔吉特
将地理位置消息添加到您的提交中,因为查看代码的来源很有趣
这是它的样子
得到它
Geogit是一个git钩子,用于特定项目的.git / hooks / commit-msg文件。 安装
touch /myproject/.git/hooks/commit-msg
chmod +x /myproject/.git/hooks/commit-msg
然后将以下内容放入/myproject/.git/hooks/commit-msg
#!/bin/sh
GEOGIT_MSG=$(curl -s geo-git.herokuapp.com/locate/geogit)
grep -qs "^$GEOGIT_MSG" "$1" || echo "-----------------\n$GEOGIT_MSG" >> "$1"
完毕!
【文件预览】:
geogit-master
----geogit.css(31B)
----private()
--------commit-msg(147B)
--------example.png(75KB)
----packages()
--------ipgeocoder()
----geogit.html(219B)
----README.md(650B)
----.gitignore(18B)
----server()
--------routes.js(981B)
----.meteor()
--------.finished-upgraders(262B)
--------packages(307B)
--------.id(324B)
--------release(15B)
--------platforms(15B)
--------versions(959B)
--------.gitignore(6B)
----geogit.js(85B)