Git: nothing added to commit but untracked files present

814    Asked by AnishaDalal in Salesforce , Asked on Feb 23, 2021
Answered by Anisha Dalal

For this question, you have two options

1. Add the untracked files to your git repository

2. Add the files to the .gitignore file If you want git to ignore them.

For adding the untracked files you could use :

git add Optimization/language/languageUpdate.php

git add email_test.php

And to ignore the files you need to add the following lines to your .gitignorefile:

/Optimization/language/languageUpdate.php

/email_test.php

These two options will allow the git pull to succeed.



Your Answer

Interviews

Parent Categories