Setting up automatic Git sync on Mac
I’m working on a React Native iOS project and have a specific workflow setup. I write most of my code on a Windows machine and use a MacBook to run the iOS simulator.
Here’s what I’m currently doing:
- Writing code on Windows PC
- Pushing changes to GitHub repository
- Manually running
git fetchandgit pullon my Mac - Testing the updates in the iOS simulator
This manual process is getting tedious. I want to automate the pulling process so that whenever I push new commits to the main branch from my Windows machine, my Mac automatically downloads those changes.
Is there a way to set up automatic git pulling on macOS? I’ve looked around but couldn’t find Mac-specific solutions that work reliably.