Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,837
Community Members
 
Community Events
168
Community Groups

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

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

Hi! 

  • exclude in gitignore
  • do changes 
  • do commit
  • and return back the gitignore file changes

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events