Hi @Raj Vishakh ,
Thank you for posting query in Microsoft Q&A Platform.
When you configure ADF with Git repo then best practice is always implement changes in worker branch and then merge changes with master branch and then publish to live mode. Its not recommended to directly publish to live mode from outside when you configured git repo.
Still by any chance if we directly deployed to live mode and wants to import them to repo then we should do it complete import of resources as we do first time when we configure repo. Click here to know about connecting with Git repo.
Click here to know about Best practices for Git Integration.
Click here to know about Switching to a different Git repo.
Hope this will help. Please let us know if any further queries.
------------
Please consider hitting Accept Answer
button. Accepted answers helps community as well.