Questions tagged [git]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
75 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 ...
antdev's user avatar
  • 135
0 votes
0 answers
29 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 ...
Zico123's user avatar
1 vote
1 answer
206 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 ...
Lee's user avatar
  • 173
1 vote
1 answer
51 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 ...
Tyssen's user avatar
  • 653
5 votes
1 answer
825 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 ...
Álvaro Franz's user avatar
1 vote
1 answer
53 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 ...
Jamie's user avatar
  • 111
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 ...
Matthias Redl-Mann's user avatar
1 vote
1 answer
426 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 ...
MoritzLost's user avatar
  • 11.3k
2 votes
2 answers
216 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/...
Tyssen's user avatar
  • 653
1 vote
2 answers
687 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
maxfenton's user avatar
3 votes
1 answer
664 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 ...
Third_Hyperion's user avatar
2 votes
1 answer
586 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 ...
user147793's user avatar
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 ...
userAW's user avatar
  • 176
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/...
Magnus's user avatar
  • 171
0 votes
1 answer
275 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) ...
quixoticduck's user avatar
3 votes
1 answer
374 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?
Leah's user avatar
  • 441
1 vote
1 answer
277 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/...
carlcs's user avatar
  • 36.2k
3 votes
1 answer
545 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 ...
Jeremy P. Beasley's user avatar
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 ...
jnowland's user avatar
  • 846
9 votes
4 answers
579 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 ...
jnowland's user avatar
  • 846
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, ...
CreateSean's user avatar
  • 1,973