Skip to main content

Questions tagged [git]

Git is an open-source distributed version control system (DVCS). Use this tag for questions related to Git usage and workflows. DO NOT USE the [github] tag for Git-related issues simply because a repository happens to be hosted on GitHub. Also, do not use this tag for general programming questions that happen to involve a Git repository.

Filter by
Sorted by
Tagged with
4 votes
2 answers
3k views

Magento2 : Committing vendor folder in Git Repository

Is it good practice to push vendor folder into git repository? Is there any pros and cons of it?
Aniruddha A Deshpande's user avatar
1 vote
1 answer
86 views

Testing Pull Requests and Patches from Magento 2's GitHub

I'd like to test the following patch applied by the community. As seen here, https://github.com/magento/magento2/pull/13359/files. Since I've always installed Magento via composer, is there an easy ...
Rob's user avatar
  • 534
0 votes
1 answer
298 views

Magento 2.2: Git deploy error following composer installation

When cloning CE and deploying on Gandi servers, following their own instructions, the process is aborted with the error mentioned in the title. Preconditions Magento 2.2.1 CE PHP7.1 MySQL 5.6 Gandi....
Muckee's user avatar
  • 699
1 vote
1 answer
423 views

Magento 2 - Git workflow

I am brand new with Magento 2 and I've been thinking about version control (git specifically) in M2. We know that installing modules is a critical thing in Magento. So, I would like to know if there ...
Rafael Padovani's user avatar
1 vote
1 answer
259 views

Magento 1.9.3.7 / SUPEE-10415: PHP "Cannot redefine" and "Cannot redeclare" errors after merge

If you have Magento 1.9.2.4 (this may apply to other versions too), apply the SUPEE-10415 security patch, and then use Git to merge the result into a branch with Magento 1.9.3.7 in it, then your site ...
Toon Spin's user avatar
7 votes
2 answers
3k views

How to secure Magento version control systems

Magento version control systems such as Git and Subversion store their metadata in hidden folders. Someone access my directory and mail me. I think I am not protecting my GIT. can anyone tell me how ...
Pratik Kamani's user avatar
2 votes
3 answers
845 views

Magento 2.1.9 Composer error

I'm getting the following error using Magento 2.1.9: "Package magento/composer's source key should be specified as {"type": ..., "url": ..., "reference": ...}, {"type":"git","url":"https:\/\/github....
aksly's user avatar
  • 21
1 vote
1 answer
1k views

How to set up .gitignore for a fresh Magento 2 (v2.2.0) site?

When I install Magento (v.2.2.0), only things set up in .git are /pub and /update directories. I obviously want to expand the theme, and add new modules to it, so why are these the only ones set up to ...
Vladimir Despotovic's user avatar
4 votes
1 answer
3k views

GIT deployment and what files are required in production environment

At the moment development is done on a local server to myself. The site is not live but testing is done on what is to be on production server and a git push from development triggers a webhook that ...
harri's user avatar
  • 5,495
1 vote
0 answers
152 views

Magento 2: Install module from multiple repositories

Today I've stumbled into a fairly intriguing issue. At the moment I'm building a module for a client and possibly I'll use it for future clients. Now, I would like to keep the core code in a ...
riofriz's user avatar
  • 11
0 votes
1 answer
1k views

There has been an error processing your request - could not read auth.json (composer issue)

I can still access my website through its domain but when I try to access the admin panel, it asks for my login but as soon as I login I receive the error: There has been an error processing your ...
James's user avatar
  • 103
1 vote
4 answers
999 views

Magento 2 Version Update Dilemma (Cloned from Git Repo)

In my first Magento 2 project I followed an guide for installation which recommended in clone git repo to install. Later only found this is disastrous!!! Obviously now I cannot simply use Composer ...
Ethan Wan's user avatar
  • 163
2 votes
2 answers
2k views

Git clone on already existing Magento installation

I am developing an e-shop with Magento 2.1.x. I am using git as version control and the .gitignore file shipped with the installation of Magento 2. Now, a colleague of mine, will join the project to ...
giani.sim's user avatar
  • 1,473
2 votes
1 answer
412 views

Git and Nexcess Hosting

I am aware about using basic GIT and running basic commands but dont know how to start. Start meaning dont know how to integrate on local with online. https://docs.nexcess.net/article/what-is-git....
Sharma's user avatar
  • 123
15 votes
2 answers
7k views

Magento2 - local / staging / production deployment & gitignore

This could be one kind of discussion more than a question. I'd like to know which deployment policy you follow with Magento2 & local > staging > production environments After some tries we've ...
Raul Sanchez's user avatar
  • 3,125
0 votes
2 answers
245 views

Magento 2 Custom Theme .gitignore

I am starting the development of a new custom theme for Magento 2.1.x. I would like to commit on my git repository only the files related to the theme and to the custom module which I will create for ...
giani.sim's user avatar
  • 1,473
3 votes
1 answer
473 views

Module development workflow with GIT and modman

This question is a follow up of this one: Magento 1: improving my module development workflow (Modman, composer, git) Reminder: I am using a bunch of extensions that me and the team I'm working ...
Raphael at Digital Pianism's user avatar
18 votes
1 answer
3k views

app/etc/config.php in VCS or not

I have a question related with file app/etc/config.php. This file described here and defined: Magento base dir/app/etc/config.php, which contains the list of installed modules, themes, and ...
osrecio's user avatar
  • 1,628
5 votes
1 answer
922 views

Managing M2 projects with GIT (workflow)

I'm developing Magento projects for different merchants and I don't know if I'm working right, also have some doubts, any advice is welcome. I'll share my workflow. Initialize the project I install ...
Marc Pont's user avatar
  • 1,453
1 vote
0 answers
95 views

Magento 2 installation to use Extensions

i know is a bit boring ... How I have to install magento 2 that I can simple use the Extension Manager? If I try to use the Extension Manager I get these errors: Check Updater Application ...
brackets web's user avatar
3 votes
1 answer
639 views

How to use Magento2 when cloned from git repo?

There is a warning in the Magento2 installation instructions that I don't understand. It says: If you clone the Magento 2 GitHub repository, you cannot use the Magento software in a production ...
peedee's user avatar
  • 713
2 votes
0 answers
23 views

Compare Magento repository and production

I have to compare my production vs repository because there are much difference between both, but I do not know how to compare all files. Please suggest me how to do?
mohamet monte's user avatar
0 votes
0 answers
360 views

Magento 2: Maintain Database Changes on Git Versioning

I'm using Magento 2 CE Version 2.1.2. As we are multiple users are working on Same Project. We have Main Copy of Code + DB on Our Server. We have done git clone <repository url> so everybody ...
Jackson's user avatar
  • 9,939
3 votes
0 answers
1k views

Recommended continuous integration tools for Magento 2 [closed]

For companies deploying Magento 2, what CI (continuous integration) tools do you recommend? We use GitHub and commonly deploy to AWS Beanstalk instances, but some of our clients use Linux VMs on ...
jtherkel's user avatar
15 votes
1 answer
8k views

How to manage config.php in Magento 2

First of all it is maybe an already answered question but I did not find anything about that subject. It is not an issue but a question about the best way to manage the file config.php in Magento ...
Matthéo Geoffray's user avatar
1 vote
0 answers
283 views

A faster route to deploying static content in Magento 2? Dev to Live etc?

Massive bounty on this guys. Wanted to get some attention here. Maybe move it here instead.. https://stackoverflow.com/questions/38589283/a-faster-route-to-deploying-static-content-in-magento-2-dev-...
TheBlackBenzKid's user avatar
2 votes
1 answer
137 views

Is it possible to install using checkout from existing SVN?

Now I'm trying to install Magento2 using existing repository on Windows server. So the more specified questions are followed : If possible, then what files I have to modify? Is there a refined ...
Jason Park's user avatar
0 votes
0 answers
390 views

How do you manage dev/tools/grunt/configs/themes.js file with version control in magento2?

The themes.js file contains important configuration and without it you cannot run grunt tasks for your theme: #dev/tools/grunt/configs/themes.js mytheme: { area: 'frontend', ...
Claudiu Creanga's user avatar
2 votes
2 answers
790 views

Deploy Magento 2 website on Staging server and Composer

I installed Magento 2 locally using Composer I use Git to track my code I need to deploy my local Magento 2 site to a staging server (shared hosting) 1) For what do I need Composer anyway on Staging ...
meez's user avatar
  • 417
1 vote
1 answer
989 views

Magento 2 .gitignore template in combination with Deploybot and Git workflow

I installed Magento 2 using composer locally (on my local Dev environment using MAMP). I added my custom theme and did all my frontend work on my local Dev site. I want my code and changes to be ...
meez's user avatar
  • 417
2 votes
1 answer
896 views

Magento 2 deployment from Dev to Staging using Git

I have a local Dev environment and installed Magento 2 using composer I initialized the local /magneto2/ folder as a Git repo I added this .gitignore file to the root of my /magneto2/ folder I have a ...
meez's user avatar
  • 417
2 votes
1 answer
522 views

Install Magento 2 and add to Git and deploy and install on Staging server

For my client I have to install Magento 2 on a Staging server from a Git remote repo (on Beanstalk). So all the Magento code has to be deployable. I see all kind of different approaches (comparing to ...
meez's user avatar
  • 417
0 votes
1 answer
233 views

Can you fork Magento CE 1.9.x? [closed]

Very simple question, can you fork Magento CE 1.9.x?
Acornia's user avatar
  • 25
5 votes
4 answers
4k views

Magento 2 local development environment

I have always used MAMP PRO to configure my Magento sites for local dev, but with Magento 2 requiring mysql 5.6, I haven't had much luck setting up site successfully on local server with MAMP...plus I'...
frshjb373's user avatar
  • 466
1 vote
1 answer
255 views

Setting up a local development environment on xampp for magento

Currently we are using an ec2 as a development server, and using rds as a mysql db, we are using git as version control, but I am looking at using git to download and install a local version of the ...
Chris Gaffney's user avatar
2 votes
0 answers
2k views

Installing Data-Migration-Tool with Composer: git not found error

when I try to install the Data-Migration-Tool with Composer: composer config repositories.data-migration-tool git https://github.com/magento/data-migration-tool composer require magento/data-...
Guest's user avatar
  • 363
0 votes
0 answers
41 views

Magento adding products locally and migrating it to production

I have setup a test Magento environment locally and i push the changes to production using a git repository. However when i add products using the production admin dashboard the product images doesn't ...
Lakshin Karunaratne's user avatar
0 votes
1 answer
29 views

Magento 2 project

I it advised to store all magento files in project?
Marty Wallace's user avatar
2 votes
2 answers
2k views

Why is the Magento2 .gitignore file ignoring itself?

Line 61 of the .gitignore file reads /*.* which includes itself so the .gitignore file is not committed. Is there a reason behind this? https://github.com/magento/magento2-community-edition/...
notebox's user avatar
  • 23
0 votes
1 answer
188 views

Version Control for Magento mainly for the looks

We have a Magento webshop version 1.9.2, and I am trying to achieve the following scenario, please advice on the best way to achieve this: Having a local test environment, connected to a version ...
techhighlands's user avatar
0 votes
2 answers
3k views

Magento 2- code-migration installation using git

I have got the link for the tool to migrate code of Magento 1.x to Magento 2.x. But have no idea how to execute it. https://github.com/magento/code-migration I have tried following command in cmd ...
DEEP JOSHI's user avatar
1 vote
1 answer
236 views

Magento connected to git

I installed magento on my ubuntu local machine, and I connected that to github, when I make changes to the magento CMS for example, on my local machine I changed the content of the home page, I ...
techhighlands's user avatar
17 votes
5 answers
2k views

What is the preferred structure of a Magento 2 project under VCS?

When I start a new M2 project, the first thing I would do is to install the core via composer: composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition I ...
fmrng's user avatar
  • 3,398
2 votes
3 answers
383 views

Which branch should be cloned for a production site?

From the install guide: You can clone either a release branch or the develop branch: Release branches like 2.0 or .2.0.1 are more stable develop is more recent. Currently, the develop branch is ...
Luis Garcia's user avatar
  • 1,639
1 vote
0 answers
156 views

magento 1.9.x Modman vs modgit

I'm looking for best practice in order to manage magento submodules, my plan was to use modman but I've heard about modgit. Is there any benchmark modman vs modgit? Advantages / disadvantages or ...
Sabri Zouari's user avatar
2 votes
1 answer
659 views

Magento2 custom module downloaded by composer at two places

I have hosted my custom module on bitbucket, and using satis proxy between comopser and bitbucket. The problem is, when i use the command composer require vendor/module, it downloads the module at two ...
Taral Patoliya's user avatar
2 votes
1 answer
907 views

Multiple magento-2 modules in single git repository

I am trying to host my magento 2 extensions in a bitbucket repository. each extension will be a branch of that repository. The problem is that, we need to create tag for particular version of the ...
Taral Patoliya's user avatar
5 votes
1 answer
5k views

composer install magento 2 module fails

I am trying to install a module which i created in magento 2 via composer, I have hosted the module on the bitbucket repository, and added the repository url in magento's composer.json, When i try to ...
Taral Patoliya's user avatar
12 votes
4 answers
14k views

Magento 2 .gitignore template for new project

I've installed magento2 via composer. I couldn't find any information about common gitignore files for magento2 and the the file structure is still strange to me. Can someone share a common ...
Claudiu Creanga's user avatar
0 votes
1 answer
322 views

Merge changes from remote magento repos get aborting

Today went to to get new changes from the Magento repo in the develop branch. I'm using phpstorm. Commands I used git remote add mageblob [email protected]:magento/magento2.git git fetch mageblob git ...
mrtuvn's user avatar
  • 3,283