Skip to main content

Questions tagged [git]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
97 views

Deployment strategy that removes tables from uninstalled plugins

I have read the following article best practices for deployments. https://craftcms.com/knowledge-base/deployment-best-practices here the following is recommended: git pull composer install php craft ...
0 votes
0 answers
37 views

Best Approach for Merging Two Craft CMS Sites with Database Changes to Avoid Data Loss?

I'm currently in the process of merging two Craft CMS websites into one. To achieve this, I've made several changes directly to the database locally, rather than managing these changes through Git and ...
2 votes
2 answers
220 views

Applying project config changes with post-receive git hook

I site I'm working on uses a post-receive git hook for deploying changes to the server. At the moment, it looks like this: #!/bin/sh # default cpanel stuff branch=$(/usr/local/cpanel/3rdparty/bin/...
1 vote
1 answer
54 views

Git GUI for interacting with changes to files on remote server

I work on a site that is set up with the staging site being the main site where changes are made and then the database and all files are copied over to the production site when those changes are ready ...
1 vote
1 answer
234 views

changedFieldIndicator change on every commit

When we're making changes to the Craft config, changedFieldIndicator is often the culprit of many changes, and makes pull requests "larger" or more complicated than they need to be. Is this ...
5 votes
1 answer
870 views

Multiple developers working on the same site - Project config issues

I am working on a site with other three developers. We are all working on different features for the same site. We are having conflicts with project config files, since we are merging our changes into ...
1 vote
1 answer
55 views

Git workflow and upgrading application

Currently on my project, we are updating to react 17 and the testing library we use(enzyme to react testing library). In this process will we need to update multiple tests and files. However I don't ...
2 votes
1 answer
42 views

GIT shows multiple changes in project config, only line breaks are different (Mac)

Whenever I change something locally (Mac) in Craft (running in Nitro) which modifies my project-config, GIT (in PhpStorm) shows me many more changes in the change-list than necessary: Files are ...
1 vote
2 answers
701 views

Should delta.yaml be committed to git?

Getting started with CraftCMS 3.1's project config files and I can't find any documentation about whether storage/config-deltas/delta.yaml should be committed to git
1 vote
1 answer
432 views

How to prevent inconsistent comments in generated project config YAML files

We're using Project Config to enable a decentralised, git-based workflow. One issue we have is that sometimes the generated YAML files will include a specific comment, and sometimes it won't. In ...
3 votes
1 answer
690 views

Correct setup for Craft 3 and Git

New to Craft and general novice full stop. I'm not sure about the correct way to use craft and git together. I currently use BitBucket for version control and have been using ExpressionEngine... so ...
2 votes
1 answer
606 views

How to Deploy CraftCMS to Dreamhost w/Github

I was recently able to get Craft CMS installed on my local server and I am using MAMP to host locally as I develop the site. I have never set up a site on my own, so I was hoping someone could give ...
2 votes
4 answers
2k views

Recommended workflow when developing new websites

A common workflow for me when building a web page is the following. I'm getting a PSD-file (Photoshop) from a external advertising agency Build the site in Webflow and then export to plain html/css/...
2 votes
1 answer
1k views

Git configuration for CraftCMS

Please excuse this newbie question (newbie to Git that is). I'm trying to set up my CraftCMS environments with Git and wonder about best practices and how others configure your repositories. In ...
0 votes
1 answer
276 views

Craft database and Github - using multiple computers. Issue

I have Craft set up and am using it for the first time. It seems to be ok. I am using git to back up my project to Github and push/pull it between computers as I partly work on my desktop (Windows) ...
3 votes
1 answer
375 views

Gitignore pattern to remove image transforms

Not sure on the gitignore pattern I need to add to ignore craft's image transforms it automatically generates. Any ideas?
1 vote
1 answer
279 views

Plugin in subfolder for github?

Is it possible to have Craft plugins in subfolders of craft/plugin/ instead of having them right in that folder? So that I can have a parent directory that is my git repository craft/plugin/...
3 votes
1 answer
551 views

Updating Craft cause broken git and merge conflict

I've got a local db and install of Craft as well as a remote. I'm pushing to bitbucket from my local Mamp environment then pulling from bitbucket to my server via ssh. I recently updated Craft by ...
8 votes
1 answer
1k views

Dealing with Upgrades and Git Workflow

Craft updates come fast and frequent which introduces a problem when working with lots of people in a team. Don't get me wrong, this is a good problem to have! How are dev shops handling the update ...
9 votes
4 answers
582 views

What are the Pros and Cons to each image transform technique?

In Craft you can do two types of image transforms: 1. Control Panel Transforms: Via: Settings → Assets → Image Transforms 2. Inline Transforms in your Templates I’m currently using 100% inline ...
16 votes
1 answer
6k views

Git Workflow and Multi Environment - how to approach

I'd like to be able to use git version control with Craft. Is this possible and if it is what is the best approach to ensure that all files/assets and the database are properly synced across local, ...