Luís Fernando
Luís Fernando

Reputation: 29

How add Manifest.xml on gitignore to not push

I'm creating a project with react-native and have the folder android, inside there's file android/app/src/main/AndroidManifest.xml where I have my google api key and I don't want to push this file just once, when I import to project, then I add this path on .gitignore but it doesn't ignore.

how should I put the path on the file gitignore to not push this file ?

Upvotes: 2

Views: 1031

Answers (2)

Prateek Jain
Prateek Jain

Reputation: 1552

In your project level .gitignore file add the following line:

android/app/src/main/AndroidManifest.xml

Upvotes: 2

You need to add this to the project level .gitignore and then push

Upvotes: 0

Related Questions