Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to track an ignored file and commit it as modified file?

Parthiban Sekar April 3, 2020

Hello,

 

I have had a filed marked as ignore in my gitignore as below.

solution/database/script.sql

 

Now when I make some changes and commit them against that file as given, it is showing up as entirely new file. So, the question is how I can push it as a modified file with only the changes I made as highlighted as it usually happens for other tracked files?

1 answer

1 accepted

0 votes
Answer accepted
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 8, 2021

Hi! 

  • exclude in gitignore
  • do changes 
  • do commit
  • and return back the gitignore file changes
Parthiban Sekar January 10, 2021

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events