Add work dir changes
Fix using == when should've used bit check
Add some index functions
Add repo:Commit()