Stack Exchange Network

Stack Exchange network consists of 175 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 [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 [tag: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.

0
votes
0answers
19 views

M2 | How can we use same code base among all team members via Git?

We are a team of developers and wanted to share same codebase (DB, Configuration, Magento instance). We are using Magento 2 Image for Docker. Individually we are working fine with docker. Now we want ...
2
votes
0answers
20 views

Git integration For Magento2

I committed my project files from one development member finely. When another developer tried to pull files and push his changes to git. It is adding some code. For example bootstrap.php file the ...
0
votes
0answers
18 views

Magento 2: why does .gitignore — ignore all vendor files? M2 Default .gitignore

we are using the Magento default .gitignore for development. https://devdocs.magento.com/guides/v2.3/config-guide/prod/config-reference-gitignore.html (b.t.w. a similar version can be found here, ...
0
votes
1answer
55 views

How to install git patch of Authorize.net Direct Post Signature Key?

I am using Magento2.3 and download the Authorize.net Direct Post Signature Key Patch file and put it to magento's root directory then go to the putty and run below command: patch --p0<...
2
votes
2answers
34 views

Composer merge conflicts

We have a develop branch. Every new feature gets created on a branch that runs off the develop branch. Then a pull request is made to the develop branch. This triggers our CI/CD and slowly but ...
0
votes
0answers
36 views

Magento 2: Manual Rollback via Git

I've been wondering what the best way to restore a large Magento 2 store would be. I don't want to use the setup:backup and setup:rollback commands as they seem to result in a lot of unnecessary ...
0
votes
3answers
47 views

How to make a copy of my magento site to my computer

I am making a copy of our Magento website using FTP file transfer. My goal is to set a copy of the website and start making changes offline and start using git to keep the site backed up and updated. ...
0
votes
0answers
16 views

Any reason not to gitignore setup, dev and lib directories?

Assuming that you have vendor in your .gitignore, is there any reason not to also add setup, dev and lib? These will be created by Composer when the Magento core package is installed, so having them ...
2
votes
1answer
46 views

Is there a good way to ignore comment-only changes in Magento version upgrades?

Since Magento changes the year in the comments of ever single file, does anyone have a recommended or battle-tested way to properly audit the actual changes for each version? Ideally a solution using ...
0
votes
1answer
44 views

Magento Cloud Upload changes to master without re-deploy everything?

On Magento Cloud, we noticed that each time we upload a code change to the master branch, running something like: git push magento master It runs some process and commands, and it takes many ...
0
votes
1answer
48 views

Instructions to update extension in Magento 1.9

I'm relatively new to Magento and am currently using version 1.9.3.9. Out payment system providers (Adyen) have recently provided a new version of their extension with better security (on gitlab this ...
2
votes
1answer
42 views

All necessary commands for Using Magento 2 - For beginner

ALL Basic Commands I am new in Magento 2 but require I necessary commands including bash commands and git command to working with Linux based system ,
4
votes
0answers
191 views

Structure project using Vue Storefront and Magento 2

Right now I have a magento 2 installation which is run through a customized vagrant box, and I would like to use VS for the frontend, but I’m a little confused on how to best handle deployment to ...
1
vote
1answer
19 views

Efficiently upgrading multiple environments to 2.2.5

We are a multi-environment shop where each dev has their own environment, then we have a development, staging, and production. I am trying to find the cleanest, most efficient way for each dev to be ...
0
votes
2answers
129 views

How to set up .gitignore file?

What is the best approach to set up a .gitignore file to ignore everything except: /app/ composer.lock Something like this: # IGNORE * # DONT IGNORE !/app !composer.lock I only want to version ...
4
votes
2answers
357 views

Version Control Magento 2 on Git

What is the best way to version control Magento 2 store on Git? How should I set up the repo/s to be flexible and reliable in a long run? I use composer to install all third party modules (when that’...
2
votes
1answer
66 views

Changing from a git to a composer installation

I'm afraid, I've got a Magento 2 installation which has been done via git. I'm not a developer and would like to upgrade simply via composer update. Is it somehow possible to move or migrate from one ...
2
votes
1answer
182 views

Magento 2 and git, best practice for custom module development

I have trouble wrapping my head around a very particular issue concerning a development setup for magento 2. I have read a lot about using composer and git. It makes a lot of sense to NOT include the ...
1
vote
1answer
122 views

Proper way to replicate Magento 2 Project from git

I have worked on some Magento 2 Projects, the main problem is when I pull every Magento 2 projects from git and load the project in the browser it always asks me to do the fresh installation, even ...
3
votes
1answer
460 views

Magento 2 - AWS automatic codeDeploy via GitHub webhook

Can u please suggest me how effective is AWS codeDeploy for Magento 2 ? Is there any problems i need to overcome? Sharing your experience would be helpful for me. Thankyou.
0
votes
0answers
54 views

How to integrate Magento 2 auto deploy with Bitbucket Pipelines? [duplicate]

I have some servers which I use SSH to deploy, each time manually, I'd like to implement Bitbucket Pipelines to do an auto deploy.
1
vote
0answers
52 views

How to use Git with Magento 2 for development and deployment [closed]

Hello beautiful people I started developing an ecommerce page locally and I would love to use Git in order to add another stage to the development process and be able to make changes to the page from ...
1
vote
0answers
24 views

Clone Magento 2 respository from git causing installing new project not loading existing

I cloned my magento 2 project from git to a new folder and install and configure the latest database from server, but when i open the magento 2 page in browser it's showing the first step of ...
3
votes
2answers
827 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?
1
vote
1answer
31 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 ...
0
votes
1answer
164 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....
1
vote
1answer
205 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 ...
1
vote
1answer
239 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 ...
5
votes
2answers
1k 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 ...
2
votes
3answers
325 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....
0
votes
1answer
424 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 ...
3
votes
1answer
1k 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 ...
1
vote
0answers
77 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 ...
0
votes
1answer
96 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 ...
1
vote
3answers
354 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 ...
0
votes
2answers
542 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 ...
2
votes
0answers
150 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....
8
votes
2answers
3k 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 ...
0
votes
2answers
91 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 ...
3
votes
1answer
376 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 ...
15
votes
1answer
2k 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 ...
3
votes
1answer
620 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 ...
1
vote
0answers
81 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 ...
1
vote
1answer
439 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 ...
2
votes
0answers
21 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?
0
votes
0answers
231 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 ...
3
votes
0answers
968 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 ...
13
votes
1answer
4k 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 ...
1
vote
0answers
248 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-...
2
votes
1answer
115 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 ...