How to Use AI to Automate Git Commits and Push Specific Content from a Folder

Motivation:

You want to use AI to automate Git commits and push specific contents from a folder.

Suggestions:

  1. Create a GitHub repository.
  2. Install Git.
  3. Prepare local_tools.txt with the path to the Git executable.
  4. Prepare github_info.txt containing your GitHub access information.
  5. Install Claude Code.
  6. Open claude and provide these instructions:
    • Initialize git, create a .gitignore file, then commit and push the .gitignore file.
    • List all folders in this directory without including subfolders.
    • Add, commit, and push all top-level PPTX files in these folders, excluding files inside subfolders.
    • Create a script to automate committing and pushing these contents every 2 hours on this Windows machine.

More instructions:

  • List all the Quizzes folders located just inside each folder at this level.
  • Modify the files in .meta to include all of the Quizzes folders and their contents, including every file and folder inside them, in the git commit and push.
  • Output the prompts, with grammar corrections, to a .txt file in the docs/ folder.

 

 

 

(Visited 22 times, 1 visits today)

Leave a Reply