Adding a function to check git status