mod .gitignore file ,add method to check avialable space of internal