Templates are only stored as files in the file system. They are not stored in the database so there is no core functionality for versioning template files. When you make changes, the file is overwritten with the changes.
The easiest route would be to use an existing version control solution (SVN,CVS,Git,Hg, etc.) and maintain the versioning separate from WordPress.
Related Posts:
- Git: How do I force “git pull” to overwrite local files?
- Differences between git pull origin master & git pull origin/master
- How do I rename a local Git branch?
- How do I discard unstaged changes in Git?
- Git: How to squash all commits on branch
- Undo git pull, how to bring repos to old state
- Undo git pull, how to bring repos to old state
- Versioning and your WordPress site?
- Is it better to create a Git repository at the root level or in the WordPress theme directory?
- How to make changes on WordPress site locally on live site?
- How to change version numbers in themes from Official repository?
- Checking for a new version from WP Repos
- When developing entire sites for clients, is it viable to version control the entire site? [duplicate]
- WordPress project under Mercurial, what’s an appropriate .hgignore file?
- WordPress and Git: How does Git interact with your IDE? [closed]
- If you already have a copy of the code, is there any reason to create a feature branch?
- How do I delete a Git branch locally and remotely?
- How do I delete a Git branch locally and remotely?
- How do I undo the most recent local commits in Git?
- How can I switch to another branch in git?
- How do I discard unstaged changes in Git?
- Git: How do I force “git pull” to overwrite local files?
- Download single files from GitHub
- How can I revert multiple Git commits (already pushed) to a published repository?
- What does “Git push non-fast-forward updates were rejected” mean?
- What is the difference between ‘git pull’ and ‘git fetch’?
- Git: cannot do a partial commit during a merge (SourceTree)
- Git: How do I force “git pull” to overwrite local files?
- What is the meaning of git reset –hard origin/master?
- How can I reset or revert a file to a specific revision?
- Else clause on Python while statement
- Delete all local git branches
- Why does ‘git commit’ not save my changes?
- How can I undo git reset –hard HEAD~1?
- Set up git to pull and push all branches
- Get changes from master into branch in Git
- Invalid VCS root mapping – 3 errors on my project
- Updates were rejected because the remote contains work that you do not have locally
- how to reset develop branch to master
- Do I commit the package-lock.json file created by npm 5?
- Rebasing remote branches in Git
- How can I see the changes in a Git commit?
- What is the Git equivalent for revision number?
- How can I delete all Git branches which have been merged?
- difference between git merge origin/master and git pull
- What’s a good (free) visual merge tool for Git? (on windows)
- Best practice for versioning wp-config.php?
- Dev, Stage and Production Deployment for WordPress Sites?
- Getting Started with Subversion, Git, or similar Version Control System to keep a History of my Files? [closed]
- How can I keep the content of my pages version controlled?
- Solution for database version control and deployment?
- How do I add version control to my workflow?
- Version Control: Entire site or just pieces?
- Should I use SVN or Git?
- Any way to create a revision of a post ONLY with a new button in the Meta Box?
- WordPress Health Tool reporting version control as a critical issue
- Subversion, github, etc.. version control systems/repositories
- Using source control with WordPress
- WordPress Workflow – version control, deployment = database issue
- What is the best way to setup wordpress development environment for freelancers with version control?
- storing database in version control
- How do I get Version of all active plugins programmatically?
- Setting up SVN for teamwork on WordPress custom theme development
- Using Subversion to deploy WordPress
- How do you manage your theme versions when privately distributing?
- Pull latest stable release via git [closed]
- Plugin updates, version dependencies, and backwards compatibility
- How do I implement a .diff changeset from core.trac.wordpress.org locally?
- Manage base theme with version control?
- How should I be handling my theme version numbering?
- WordPress script file version numbers changing in live environment
- How can I edit commit messages in my wp-hosted plugin repo?
- Version control with a team of non-developers
- Updating WordPress core with zero downtime – I mean zero
- How can I perform high-level database merging for WordPress within continues delivery?
- Is there any good way to use SVN for uploads directory?
- Painless way to track remote Git repo for WordPress updates
- WordPress pages creation work distribution & then combining – Localhost XAMPP
- WordPress multisite – What’s the ideal setup for development/staging/production environments?
- Setting up Version Control for WordPress plugin development
- Questions about Git and WordPress [duplicate]
- How to revert back to older WordPress version?
- TwentyTwelve child theme style.css?ver=3.8.1
- How to rename the wp-config.php file once under version control?
- What is the best way to setup WordPress for version control and PhpStorm while allowing updates
- Newest version of javascript
- Does WordPress check for updates of a plugin via plugins root folder name?
- How to use one git (github) repository for version control for multiple themes
- Is there a plugin for versioning files in the theme (style , .js and .php files)?
- Updating a WP Plugin SVN not showing on WordPress Website or Zip
- WordPress site auto updates for no reason
- version control for wordpress? (wordpress folder and database at same time)
- Revision History for Entire WordPress Site
- What is the proper way to manage versions (with svn) of a theme we create?
- what is the cache directory for in my theme? (version control it?)
- Is Explicit Versioning a better alternative to Semantic Versioning for wordpress?
- How to continuously developing a WP site that is already deployed in production without damaging it during development
- What solutions exist to allow the use of revision control for server configuration files? [closed]
- How to remove pop up on website (css changes not visible)?
- Busting Browser Cache when updating stylesheet of WordPress website