基于Web的git提交工具

Mec*_*cca 14 git web-based git-commit

也许我缺乏一些谷歌搜索技能,但是,在我开始从头开始构建之前,

是否有现成的基于Web的git提交工具?

我需要它做的是允许用户从Web界面:

  1. 有"git status"列表
  2. 选择他想要提交的文件(也可能看到差异) - 这将对每个文件执行git add
  3. 提交消息
  4. 推到远程

这样我就可以让没有命令行技能的人推动他们的模板更改

谢谢

Len*_*nie 5

制作一个并不复杂.

我刚检查过,如果你有一个最近的git版本(我认为git 1.7.x会这样做),这里是命令:

# get list of files changed (porcelain output is machine parsable with status information per file):
git status --porcelain

# get diff of file
git diff $FILE

# add file to index/cache to commit
git add $FILE

# do dry-run before commit
git commit --dry-run --porcelain

# commit file(s) 
git commit --file=/tmp/commit.message
# or commit message from stdin:
git commit --file=-
Run Code Online (Sandbox Code Playgroud)

如果有人做了一个,请把它放在github上,这样我们都可以使用它.

并且不要忘记在其上放置密码系统以防止任何人更改您的代码.

更新:我已经创建了一个基于Web的小型提交工具:

https://github.com/Lennie/git-webcommit
Run Code Online (Sandbox Code Playgroud)

https://github.com/Lennie/git-webcommit