Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web-based git commit tool

Maybe I'm lacking some google search skills, but, before I start building one from scratch,

Is there a ready-made web-based git commit tool?

What I need it to do is allow the user, from a web interface, to:

  1. have the list from "git status"
  2. pick the files he wants to commit (maybe also see a diff) - this will do git add on each file
  3. commit with a message
  4. push to remote

This is so I can enable people without command line skills to push their template changes

Thanks

like image 561
Mecca Avatar asked Nov 04 '11 21:11

Mecca


People also ask

Is git web based?

This git extension is a standalone web based user interface for git repositories. It comes with history and tree browsing. You may also use it to commit as it comes with an UI to review local changes and the ability to stage / unstage code.

How do I remote commit?

To push the commit from the local repo to your remote repositories, run git push -u remote-name branch-name where remote-name is the nickname the local repo uses for the remote repositories and branch-name is the name of the branch to push to the repository. You only have to use the -u option the first time you push.

What is Gitweb?

Gitweb provides a web interface to Git repositories. Its features include: Viewing multiple Git repositories with common root. Browsing every revision of the repository. Viewing the contents of files in the repository at any revision.

Do Web developers use git?

The most popular VCS (at least among web developers) is Git, along with GitHub, a site that provides hosting for your repositories and several tools for working with them.


2 Answers

It shouldn't be to complicated to make one.

I just checked it, if you have a recent git version (I think a git 1.7.x will do), here are the commands:

# 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=-

If someone does make one, please put it up on github so we can all use it.

And don't forget to put a password-system on it to prevent just about anyone changing your code.

UPDATE: I've created a small web-based commit tool:

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

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

like image 114
Lennie Avatar answered Oct 15 '22 03:10

Lennie


I haven't tried all of these, but surely one of the GUI or web interfaces in this gigantic list will fit your needs or come close enough for you to customize yourself.

like image 30
Karl Bielefeldt Avatar answered Oct 15 '22 03:10

Karl Bielefeldt