Git Index implementation

PR to implement the git index functionality and merge it back to development.