How Do I Make A Bash Script for Git Checkin/Checkout?

Posted by ServerChecker on Server Fault See other posts from Server Fault or by ServerChecker
Published on 2011-06-25T17:30:04Z Indexed on 2011/06/26 0:23 UTC
Read the original article Hit count: 249

Filed under:
|

I was thinking of bringing up a git service on an Ubuntu server. However, the way me and another programmer operate -- we really want to try and stick to one person working on a project at a time.

How would I make a Bash script to create a check in and check out with git? We want to prevent anyone from checking in code that hasn't already been checked in, and it should error out with the name of the person who has the code checked out.

EDIT: I'm not really interested in using Git with its fantastic diff features. I move 100mph and don't have time to play diff games with the other developers. That's why we're using Git. If the other developers want to play the diff game, they can still do so. But when I check something out, I want it locked to everyone until I check it back in again.

© Server Fault or respective owner

Related posts about bash

Related posts about git