{"id":16731478,"url":"https://github.com/skratchdot/git-diff-build-script","last_synced_at":"2025-07-11T20:31:01.403Z","repository":{"id":1540204,"uuid":"1850618","full_name":"skratchdot/Git-Diff-Build-Script","owner":"skratchdot","description":"A shell script to create \"deploy\" and \"restore\" folders based off of a git diff of 2 branches.","archived":false,"fork":false,"pushed_at":"2011-06-05T17:06:36.000Z","size":152,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T08:27:09.373Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skratchdot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-06-05T15:19:42.000Z","updated_at":"2020-07-20T18:41:37.000Z","dependencies_parsed_at":"2022-08-16T13:40:37.270Z","dependency_job_id":null,"html_url":"https://github.com/skratchdot/Git-Diff-Build-Script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skratchdot/Git-Diff-Build-Script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2FGit-Diff-Build-Script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2FGit-Diff-Build-Script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2FGit-Diff-Build-Script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2FGit-Diff-Build-Script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skratchdot","download_url":"https://codeload.github.com/skratchdot/Git-Diff-Build-Script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2FGit-Diff-Build-Script/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264892066,"owners_count":23679217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T23:37:30.812Z","updated_at":"2025-07-11T20:31:00.067Z","avatar_url":"https://github.com/skratchdot.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Diff Build Script #\r\n\r\n### Summary: ###\r\n\r\nA shell script to create \"deploy\" and \"restore\" folders based off of a git diff of 2 branches.\r\n\r\n### Instructions (running from bash): ###\r\n\r\n1) Open up a shell terminal, and make a new directory:\r\n\r\n    mkdir new_folder  \r\n\r\n2) Now move to that directory:\r\n\r\n    cd new_folder\r\n\r\n3) Checkout the project from git:\r\n\r\n    git clone git://github.com/skratchdot/Git-Diff-Build-Script.git\r\n\r\n4) Now move to the build directory:\r\n\r\n    cd Git-Diff-Build-Script/build/\r\n\r\n5) Run the shell script:\r\n\r\n    git_diff_build.sh\r\n\r\n6) When prompted, enter the following information:\r\n\r\n    Input the name of the build directory:\r\n    my_build\r\n    Input the name of the source/deployment branch:\r\n    origin/dev\r\n    Input the name of the destination/restore branch:\r\n    origin/prod\r\n\r\n7) Now the \"DEPLOY\" and \"RESTORE\" directories have been created. Check them out:\r\n\r\n    cd my_build\r\n    ls -la\r\n\r\n### Instructions (running from Eclipse/Ant): ###\r\n\r\n1) Make sure you have Eclipse with eGit installed.  Clone the following repository:\r\n\r\n    git://github.com/skratchdot/Git-Diff-Build-Script.git\r\n\r\nNOTE: instructions for eGit are found here:\r\n\r\n    http://wiki.eclipse.org/EGit/User_Guide#Starting_from_existing_Git_Repositories\r\n\r\n2) Once the project is checked out in Eclipse, expand the \"build\" directory.\r\n\r\n3) Open the git_diff_build.xml file.  Make sure \"bash\" property is set correctly, and save the file:\r\n\r\n    Win32: \t\u003cproperty name=\"bash\" value=\"C:\\Program Files\\Git\\bin\\sh.exe\" description=\"Path to sh.exe\" /\u003e\r\n    Win64: \t\u003cproperty name=\"bash\" value=\"C:\\Program Files (x86)\\Git\\bin\\sh.exe\" description=\"Path to sh.exe\" /\u003e\r\n    UNIX: \t\u003cproperty name=\"bash\" value=\"sh\" description=\"Path to sh\" /\u003e\r\n\r\n4) Now you can run the ant build.  For the \"Eclipse Refresh\" to work properly, you\r\nneed to run the build in the same JRE as Eclipse.  To do this:\r\n\r\n    a) right-click on the \"git_diff_build.xml\" file.\r\n    b) Choose \"Run As\"-\u003e\"External Tools Configurations\".\r\n    c) In the new window that pops open, click on the \"JRE\" tab.\r\n    d) Click the radio button: \"Run in the same JRE as the workspace\".\r\n    e) Now click the \"RUN\" button.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskratchdot%2Fgit-diff-build-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskratchdot%2Fgit-diff-build-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskratchdot%2Fgit-diff-build-script/lists"}