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
buyan thyagarajanbuyan thyagarajan 

Sample ant scripts to commit and pull files from github

We have a need to retrieve all metadata and apex classes from a salesforce org and push to a git hub repository hosted on bitbucket using ant. I have used the ant migration tool which helps to retrieve all metadata and apex from the sandbox. I am struggling to create an ant task which would retrieve files from a github repository and commit to it. Do you guys have sample ant build files which can retrieve from github, push, commit and where do we store the login information for github? Thanks Buyan
You can take a look at the Solenopsis project [1].  This uses a series of ANT scripts to move data from disk.  Additionally, you can look at this blog post [2] on how to use Solenopsis with TravisCI to move data from github to a Salesforce instance.