If I’m working on whole project for a client (WP install + custom theme + plugins), I put everything in one repository. My thinking is that I created one “solution” based on WP + some existing plugins + my added code, and thus I should track it as one solution. When WP or a plugin is updated I need to test it on a dev and/or staging environment anyway, so it’s better to know the version control status of the whole project.
If I’m working on one plugin, I put it outside the WP directory and use symlinks from multiple installations to simplify testing. The repository is then only the plugin. The only problem there is that __FILE__
won’t work, so I work with a define()
to simulate my path.
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
- WordPress and Git: How does Git interact with your IDE? [closed]
- How do I delete a Git branch locally and remotely?
- How do I delete a Git branch locally and remotely?
- How do I rename a local Git branch?
- 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 make git accept a self signed certificate?
- 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
- git push to specific branch
- 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)
- Getting Started with Subversion, Git, or similar Version Control System to keep a History of my Files? [closed]
- Best way to version control WordPress template files?
- Should I use SVN or Git?
- WordPress Health Tool reporting version control as a critical issue
- storing database in version control
- Versioning and your WordPress site?
- Pull latest stable release via git [closed]
- How to make changes on WordPress site locally on live site?
- How should I be handling my theme version numbering?
- Version control with a team of non-developers
- Painless way to track remote Git repo for WordPress updates
- Questions about Git and WordPress [duplicate]
- How to change version numbers in themes from Official repository?
- Checking for a new version from WP Repos
- How to rename the wp-config.php file once under version control?
- 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?
- How to use one git (github) repository for version control for multiple themes
- version control for wordpress? (wordpress folder and database at same time)
- Revision History for Entire WordPress Site
- If you already have a copy of the code, is there any reason to create a feature branch?
- Git: Message ‘src refspec master does not match any’ when pushing commits in Git
- How to upgrade Git on Windows to the latest version
- How do I push a new local branch to a remote Git repository and track it too?
- ‘git’ is not recognized as an internal or external command
- git: fatal: Could not read from remote repository
- Windows git “warning: LF will be replaced by CRLF”, is that warning tail backward?
- Untrack files from git temporarily
- You have not concluded your merge (MERGE_HEAD exists)
- git – pulling from specific branch
- How to copy commits from one branch to another?
- What’s the difference between git switch and git checkout
- gpg failed to sign the data fatal: failed to write commit object
- How to resolve git’s “not something we can merge” error
- Git nothing added to commit but untracked files present – even with those files added to gitignore
- git: How to ignore all present untracked files?
- Move existing, uncommitted work to a new branch in Git
- Git Update Local Branch with remote Master
- How can I delete all of my Git stashes at once?
- What are the differences between “git commit” and “git push”?
- Repository is not clean. Please commit or stash any changes before updating In Angular 8
- How to resolve git status “Unmerged paths:”?
- Github Windows ‘Failed to sync this branch’
- git add only modified changes and ignore untracked files
- How to get Git to clone into current directory
- How do you merge two Git repositories?
- GIT_DISCOVERY_ACROSS_FILESYSTEM not set
- key_load_public: invalid format
- WordPress master + child themes + Git workflow
- Enable automatic minor core updates when root of site is a git repository
- Different color admin bars for dev, staging and production
- best practice on pushing staging development (database/uploads) to the live server
- How can I edit commit messages in my wp-hosted plugin repo?
- Automatic updates and merging manual changes
- Can plugin2 uninstall plugin1 at the very beginning of plugin2’s installation?
- Contact Form 7 – Replace database configured form template with a static file
- theme continuous deployment from bitbucket to windows azure
- how can I create a WP offline environment before releasing the websites? [closed]
- How to update WordPress plugins properly using git?