There’s a good article at WP Tavern that suggests some good methods. There is also a plugin called WP Pusher.
With regard to using the different domains, like dev, staging, production, etc. you could set up different remote repos for dev, staging, production, etc. And then you can push to them individually depending on what stage of development you are in.
However, if you are using Ubuntu locally, I would set up a quick LAMP stack for your development environment. That way, you could see changes live without needing to push to your remote repo each time you make a change.
Related Posts:
- WordPress database synch between dev and prod
- How to sync staging to production but keep plugin settings
- WordPress Staging Site
- Where do I build my updated website?
- How to: Easily Move a WordPress Install from Development to Production?
- Database synchronization between dev/staging and production
- Ways of managing staging and production wordpress sites?
- Migrate Changes from a Staging Site to Production
- Staging a WordPress site with WP-Deploy
- Maintaining synced staging/production WP sites
- Syncing production with staging
- How do you add pages on a staging server, and then move them over to production
- What actions affect files, DB, or both?
- Different color admin bars for dev, staging and production
- Best practice differences in DB options and wp-config between live, staging and local WordPress environments?
- Using second site as staging area
- Create brand-new re-designed site without affecting live site?
- Staging environment for pages only
- Multiple users working on WordPress admin at the same time [closed]
- WordPress & WooCommerce: Localhost, Staging and production environments and how to sync them without losing data
- Published site reverts without changes to theme
- Staging only for Theme Files and Changes
- Staging Sites: What to push through?
- What are some tools for password protecting a staging site?
- Publishing WordPress from stage to production server
- production site routes to staging site after cloning
- How best to keep my localhost on Http while my Remote production is on Https
- Push from staging to live site?
- Staging site offline
- Merging new theme and plugins from development site to production
- Locked out when attempting a migratoin
- how to move particular functionality to staging server
- Theme/Plugin/Widget Data and Staging/Production Servers
- Graphic design changes on Staging before moving to Production?
- Staging/production deployment on WordPress MultiSite
- Development to production, how to move a development site from http + dev.example.com to a production site https + example.com?
- git add only modified changes and ignore untracked files
- Best way to initiate a class in a WP plugin?
- Keeping WP database synced across multiple developers using git
- How do you avoid caching during development?
- DB connection error after copying a WordPress Multisite instance to a second location
- How do I add version control to my workflow?
- Staging sites, how do you manage synchronising updates in the DB?
- How to edit an existing WordPress theme? [closed]
- Pushing changes from localhost to live server?
- WordPress Active and Development server best practices
- Change management solution for BP-based site?
- Cloning and syncing a WordPress website
- Is it possible to import a wordpress backup from a single site in to a multi-site configuration?
- Staging setup for multisite installation
- Best Practice for Syncing Local Development With Staging Development [closed]
- Clone plugins (and settings) to new installation?
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- WordPress as thesaurus/dictionnary: what approach?
- Can I develop a WordPress site without a domain?
- Staging sites era: does it still makes sense to develop locally?
- WordPress Multisite – configuring a local development copy
- Override database config for WordPress multiblog
- Get Current Menu Location inside Nav_Walker
- Move first half of posts to one parent page, second half to the other page
- Migrating hosts, 500 errors and plugin issues
- Localhost to Staging to Development Dynamic WP-CONFIG
- Setup 3 Sites To Connect To 1 Database and Share Data
- Is there a way to test my code quickly in WordPress environment?
- Setting up a local copy from a production site
- How to clean up the theme for production?
- Custom links in menus not working in multiple environments
- Clone WordPress site from development server to live server
- Custom Post Types database persistance. Why not?
- How to add testimonials with an image?
- Show shipping class on product admin page
- How do I change the wpstaging.com domain to new domain without damaging the website?
- How to stage a redesigned site on a new webhost while the original site is still live? [closed]
- Select parent page and all its child page but exclude one specific child page
- What is the correct way to set up a staging server and use github for version control?
- wp-insert-post execute from server?
- How to fix mime-type and (after disabling nosniff) 404 errors for css and js files in staging site
- Cloning production site down to local?
- WordPress Staging site is redirecting to live and lost the child theme
- Staging Session Randomly Switched from Secure (https) to Not Secure
- Bedrock WordPress retro-porting to standard WP installation: is this allowed?
- Scripts/styles not loading on cloned WP Site when logged in
- How to query a staging database?
- How do I quickly move between 2 local installations and keep them in sync?
- Creating WordPress staging environment software
- Migrating site from stage to production server without particular dev. plugins?
- Update WooCommerce product price periodically
- How to set up a development/staging site to make major changes to the theme then update on the live site?
- Settings > Permalinks – mod_rewrite ineffective if expression not preceded by /index.php/
- Hide my staging subdomains from search results without impacting the visibility of the root domain
- Export Woocomerce Image Product URL
- How to restrict product access to personal user uploads in WordPress
- Why WP CLI command is not visible in VIP CLI
- How to maintain development losing any user’s data
- How do I setup my cpanel site backup on a local host?
- Top-level staging-site URL redirects to a different site
- Styles not showing up in WordPress site
- Staging site on subdomain – all links dont work except home page
- Live site menu links pointing to staging site pages
- Dynamic PHP content in Block Theme template file