.gitignore file is missing in new package?

According to rust book , whenever we create a new package with

cargo new hello_world

the directory should contain a gitignore file and a .git metadata sub dir, but its not there when i create a package with above command

How are you looking for it?

just typing

ls -la

Is it possible you are already inside a git repository? Some tools create one for your home directory.

1 Like

Yes, your are right, i was creating a new package inside a repo..Thanks pal