function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mayank PandyaMayank Pandya 

How to move developer sandbox changes via ANT and Github

I am new admin and our company use ANT and GitHub for moving changes from developer sandbox to another sandbox.

I have my own Sandbox where i do all declarative changes. I retrive my declrative changes via ANT -Retrive to local Ant/Stage folder. Here is my main issue. I need to only select or copy affected metadata files from Ant/Stage folder and paste to my local github repo than move my local repo to our remote  repo branch via github.

My only problem at this point is " How to find those files that got changed due to declarative changes from my sandbox" ?

For example : I added new lead source picklist value in my sandbox and retrive my sandbox via ANT retrive command. Now ANT/Stage folder is containing that change. How to find all those effected file due to that change in state folder ? e.g. Lead source changed file is in " StandardValueSet Metadata object-> Retrieved files: LeadSource.standardValueSet: " . I google this and copied that file but i was not aware that i need to copy another file from Object->Lead folder too. Is there any tool or process which can help me on cutting down this part ? 

Same way i am worked on another task : Create new queue and add user to queue and created new email-to case too. Now all these changes are in ANT/Stage folder but i do not know what are all those necessary files that got changed due to this declrative change .

Apologies for long post and i tried to give my painpoint .
Raj VakatiRaj Vakati
Refer this link

https://www.jitendrazaa.com/blog/salesforce/continuous-integration-in-salesforce-using-jenkins-and-git-video-tutorial/
https://www.slideshare.net/developerforce/df121281-patterson
https://andyinthecloud.com/2013/09/24/deploy-direct-from-github-to-salesforce/
https://medium.com/slalom-technology/ant-vs-salesforce-dx-a-completed-guide-to-automated-deployments-using-salesforce-cli-ce2b1e2ff770
https://medium.com/@clickdeploy_team/setup-modern-salesforce-release-management-in-5-minutes-d8c549ca4a11
http://iandrosov.github.io/Community-ANT-Deployment/
NagendraNagendra (Salesforce Developers) 
Hi Mayank,

As you are using git, you should use the git compare option to see the differences between your version and GitHub and that should help
see this useful blog post on how to do that:
  • https://bluecanvas.io/blog/2017-01-09-metadata-refreshes-and-compare-salesforce-orgs
Once you get the git compare results you should identify which changes were yours

you can also use the 'monitor setup changes' feature (https://help.salesforce.com/articleView?id=admin_monitorsetup.htm) on the org, however that does not capture 100% of changes, so for me, the git compare is the better option.

Thanks,
Nagendra