Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [version-control]

Use it for the management of changes to documents and other information stored as computer files.

1
vote
2answers
43 views

Should modules be in source code management?

I am new to Drupal and I am using Drupal 7.61. Should the Drupal modules folder be git ignored or included in the source code management for best practices and continuous integration sake?
0
votes
1answer
54 views

Problem with .gitignore

I installed Drupal on ubuntu 16.04 via composer and I'm trying to implement continuous integration with Jenkins. So, I would like to be able to work from another location (for example from a Windows ...
-1
votes
2answers
58 views

Create a setting.*.php file for every stage of the website

I understand that my question could be opition-based and that it depends on the comfort of every drupal developer so please do not flag it as so ! For every Drupal 8 website i start, i use the below ...
0
votes
2answers
42 views

How to properly perform a patch so that the correct directory is used?

I attempted to make a patch using Making a Drupal patch with Git and ran into one issue after creating the patch. For some reason, I cannot get the proper location to be stored in the patch. How can ...
12
votes
3answers
2k views

Should I ignore the vendor directory in git for Drupal 8?

I'm finally trying to get on board with using Drupal 8 and want to know if I should ignore the vendor directory in git with .gitignore. I would assume not, but I've seen a few example .gitignore files ...
0
votes
0answers
21 views

Drupal.org issue tags: ciandt-contrib

Noticed the following tag being used on Drupal.org: ciandt-contrib. Either I'm completely missing something but I can't figure out what the ciandtabbreviation stands for. And when it should be used. ...
0
votes
2answers
206 views

What parts go under source code version control?

I am wondering what the best practices are for putting Drupal code under version control. I'll be mostly using core and standard Drupal modules. I'll be developing a custom theme, and one or two ...
1
vote
0answers
279 views

How to disable expose drupal(like drupal version in browser) and jquery version [closed]

I work on drupal7, My website work file in all environment, I want to disable expose version of drupal and jquery. i also signature off on server. Please suggest.
0
votes
0answers
137 views

Trouble with revisions - sometimes not visible at all, sometimes tagged with wrong user

I am currently experiencing a strange mix of problems with revisions on a D8 intranet platform. I have a custom content type with around 200 nodes. For some of those nodes, revisions (and the revision ...
0
votes
1answer
616 views

How to use Git with Drupal 8 when using composer

I am working on an OpenSocial project and its installed via composer. I am having a folder structure as below: - composer.json - composer.lock - html (Drupal Installation.) - vendor (...
0
votes
1answer
17 views

Core patching and version controlling across multiple versions of the same site

How can I propagate core updates from an installation of a Drupal site to other installations of the same site? I maintain a private Drupal site which the owners now want to make public. As a result, ...
0
votes
1answer
27 views

Put blocks, views, etc in git for other developers

Keep in mind that I'm fairly inexperienced with drupal! I use a docker based setup for my development environment for docker 7. I'm building a site that involves a front page that will be changed ...
1
vote
1answer
632 views

How to use settings.local.php with Drupal 7?

I couldn't find answer from previous questions nor drupal.org/pantheon.io. I don't know that how to get local Drupal to use settings.local.php? There isn't a settings.php if I clone the repo from ...
0
votes
1answer
45 views

Featurize user roles and permissions can't update

I have added user roles and permissions to feature which I use to featurize general site configurations and theme settings. In the past I believe this worked just fine, however, with my latest push ...
1
vote
1answer
149 views

Error applying patch with Git

I have read different SE posts and Drupal.org posts about applying patches using git but I am getting an error message whenever I try any of the following methods. the error is: error: modules/...
0
votes
0answers
27 views

Drupal.ORG's Git Branch Model

There are many different git workflow branching models proposed. While I try to determine the best one for my project, I want to know what the Drupal.org community uses for Drupal Core development. I'...
0
votes
1answer
30 views

Composer generated installation can't be completely cloned

I have a Drupal 8 installation where I removed all Composer generated folders from the root .gitignore, so that I can make a complete clone of the installation. The problem is that module folders ...
3
votes
1answer
51 views

Reestablishing development workflow with GIT after doing it wrong

At one point, I had the following proper Drupal development workflow: local development environment (using Mamp), dev server for testing and a production server, and I used GIT to deploy the changes ...
1
vote
1answer
87 views

Incorrect branch when adding modules with composer

Edit: Gist of my complete composer.json I'm seeing some confusing behaviour with Drupal branch names when adding modules using composer - specifically I seem to be getting the 7.x version of the ...
2
votes
0answers
35 views

Configuration Management together with git-flow [duplicate]

Using multiple branch/developers strategy for developing features causes some issues with built-in Drupal configuration management. Our scenario is the following: Create new feature and export ...
1
vote
0answers
51 views

Using Drupal console, can I gitignore console folder?

I'm working on a Drupal 8 project, and installed Drupal console globally on my system. The command drupal init created a console folder at the root of Drupal. It seems to be used as a cache ...
3
votes
1answer
77 views

How to keep Drupal site code in version control in sync with production code when using drush updates on servers?

I have 50 D7 sites I support (none are multisite). We do local development for changes to themes and modules tied to new functionality and bug fixes. Once the update works locally, we check that into ...
1
vote
0answers
141 views

Access rights by cloning a Drupal sandbox repository [closed]

I try to clone a new Drupal sandbox project: git clone --branch 8.x-1.x username@git.drupal.org:sandbox/username/projectnumber.git directory I receive the following error message: ...
1
vote
2answers
136 views

Using 2 code repos, one Acquia and one private gitlab server for Drupal code base tracking

I run a few drupal 7 sites on acquia and I also have a separate gitlab server for sites that are not on Acquia. Is it possible to push to both repositories on Acquia and Gitlab?
4
votes
1answer
418 views

Development with git branches/ gitflow and new modules

I wonder if somebody found a solution for the following issue related to Drupal 8 development with Git branches: You work on a new feature in a local feature branch for that you activate a ...
0
votes
1answer
424 views

How to correctly start a website using Git/Drush/Composer workflow?

I am trying to follow this article to start a D8 site: https://www.drupal.org/node/803746 The article is for D7 but I think there are no much differences. These are the steps I followed so far: ...
3
votes
1answer
1k views

What is the purpose of key_value_expire table?

In Drupal8, what purpose does the key_value_expire table data serve? Can that be excluded from a database backup? I ask because, during development, I backup the database using "drush sql-dump --...
0
votes
0answers
117 views

How to handle .git directory inside vendor/commerceguys/zone?

I have installed new drupal 8 and committed all files to git. I have installed commerce guys module in drupal 8 using composer. Vendor/commerceguys/zone library also got download from composer as a ...
0
votes
0answers
65 views

Install Drush in remote server

I'm workin drupal proyect locally, but now I have to import my proyect to remote server, I intalled acquia to run my proyect locally, and i'm using drush to make DB back up, I don't experince with ...
0
votes
1answer
57 views

Deploy to production with git using Acquia like localserver

I'm using Acquia to export my local proyect to production proyect but when I did git push just the code was saved, the changes that I did in UI was not saved for example I created a user in local UI ...
0
votes
1answer
17 views

Admin permissions wiped out after git branching

I've encountered a strange issue whereby creating a new git branch on a Drupal 7 site and switching to it causes admin users' permissions to seemingly disappear. After performing the git branch, all ...
0
votes
0answers
535 views

Git Pull Origin Master - not working?

Me and my friend share a pantheon site that we are pulling / pushing from together. However when I go to the Dev site and I noticed some changes (like a page being empty) and on my local, that same ...
1
vote
2answers
116 views

Using Git with a Drupal site

May we use git with a Drupal Site ? Because I'm trying to use Git with a Drupal site and it seems that not all the information that are pushed !!! Thank you
0
votes
0answers
49 views

Git hangs when pushing to Drupal.org repo

I have been added as a maintainer to the Competition module so that I can help with the 8.x port. My problem: When I attempt to push progress to our 8.x-1.x branch, git will hang with no response. ...
3
votes
1answer
41 views

When making a new core release, how do mantainers tag the core modules and update their info files?

When Drupal maintainers make a new core release, how do they tag the core modules and update their info files? I have noticed that all the core modules of Drupal 7.43 have a section in their info ...
0
votes
1answer
589 views

How to use Gitlab server as a central staging server for Drupal8? Making the 1st push to Gitlab?

I just installed a Gitlab instance on my LAN. I want to use it as the central repository for a Drupal dev->test->prod staging setup. So, 1st step, I want to push my local "dev" workspace to the ...
0
votes
1answer
110 views

How can I download code from Github?

I'm still running some Drupal 6 sites (because I'm waiting for the Migrate module to work properly in Drupal 8), and I notice that there are some modules in rupal D6 (like Views) which are still ...
0
votes
1answer
56 views

Version control on Entity form type submissions

A project collecting data from multiple entity forms was handed over to me. My client requested the implementation of a review mechanism for the data that are stored in entity form submissions. The ...
4
votes
1answer
108 views

How do I ignore a module .git directory?

I've got a Drupal 8 installation that I manage with Drush 8.1.2, with nothing in that installation in Git except a custom module I am writing (module directory = location of .git directory = /sites/...
1
vote
2answers
394 views

Using git to fetch changes from testing version to live website

I am maintaining and developing a drupal website and have a testing/development version of the site in a subfolder of drupal instalation. I started to learn git and I am wondering about how could I ...
2
votes
1answer
586 views

Configuration management import error

I use a CMI workflow with Git. I made configuration changes on Dev pulled them into Production now when I go to admin/config/development/configuration and try to import All I get this error: The ...
1
vote
1answer
146 views

Drupal 8 installation (bash) script. I want the latest stable v8 version each time. But how?

My Drupal 7 script utilised a make file which specified '7.x' as the Drupal version to install, drush make would fetch the correct core files. My current Drupal 8 script uses git to clone and then ...
19
votes
2answers
871 views

How to use the Features module in a 3 dev environnement?

Working on a project, making heavy use of Features, there is sometimes 3 devs for this application. We have tried a few approaches, but when we merge our git branches it seems we often 'over-write'...
1
vote
1answer
127 views

Coming from Drupal 7, which files should I be versioning with git in Drupal 8 projects?

So, having read through: What are all the directories for in the new Drupal 8 structure? https://drupal.stackexchange.com/questions/126660/how-do-the-seasoned-oo-php-people-go-about-setting-up-a-...
1
vote
1answer
853 views

Cloning site and $config_directories

On my local Drupal 8 multisite environment in sites/default/settings.php I have: $config_directories['staging'] = 'sites/default/config/staging'; $config_directories = array(); Because the default ...
3
votes
0answers
119 views

Git workflow and Acquia Dev Desktop .dd files

Using Acquia Dev Desktop I created a multisite setup. All working fine. I added all files to a local Git repository I added a .gitignore file I pushed all the files to a central remote repo I want ...
0
votes
0answers
223 views

Drupal 8 Multisite configuration directories of subsides

I set up a local Drupal 8 multisite, using Acquia dev desktop. Its working fine. I added all Drupal 8 core files to my local repository and pushed them to a central remote repository. in sites/...
-1
votes
2answers
419 views

Creating platform based upon git repo keeps failing

Creating a platform based upon a git repo within Aegir keeps failing. I cloned the repo myself and did a drush make, which succeeded, so I'm not sure what is going wrong. It keeps failing on: /usr/...
3
votes
1answer
32 views

Features - keeping Git up to date when changing features on production

I have a Drupal 7 site with a UAT version and Production version. Most of the features on production have been overridden. I want to keep my repository up to date in case anything happens to my ...
-1
votes
1answer
58 views

Git local repo in combination with Acquia Cloud Dev repo adding contributed modules with Drush

I try to add contributed modules to my local repo following this article. curl https://ftp.drupal.org/files/projects/admin_toolbar-8.x-1.14.tar.gz | tar fz Its not placing the .tar.gz file in my ...