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
23 votes
4 answers
2k views

Version Control for Module Development

I'm wondering whether there are any good conventions, as far as version control goes, for developing a module that you are using both in a single Magento instance and also are wanting to release as a ...
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 ...
0 votes
1 answer
1k views

Should pub/media directories be included in the gitignore?

I've inherited a Magento 2 codebase and the .gitignore file matches the one in the Magento 2.3 repo. I downloaded the latest copy of the database and the /pub/media folder from the live site for my ...
1 vote
1 answer
1k views

How to setup same GIT repository for development, build and production

As stated in Magento Docs for Development System and in Magento Docs for Build and Production System (Quote from Build Server explanation): All Magento code is under source control in the same ...
0 votes
1 answer
2k views

Git Workflow - "untracked working tree files would be overwritten by checkout"

thanks in advance for taking your time to help me and others that may be stuck at the same point. I've installed Magento on my machine, created .gitignore following documentation, made change on a ...
0 votes
2 answers
1k 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 ...
0 votes
0 answers
63 views

Do we need to maintain the app/code/Magento/ in git after 2.4.6-p1 upgrade

There is one untracked folder app/code/Magento/ from git after upgrading the Magento site to the latest version of 2.4.6-p1. Do we need to maintain this in git?
0 votes
2 answers
41 views

Magento 2 - Database values to push in production using Git

I want to move system Configuration values and values stored in database to production server using Git. Can anyone let me know how can I push Admin Changes to Production using Git. Is it possible ...
3 votes
1 answer
30k views

Autoload error: Vendor autoload is not found. Please run 'composer install' under application root directory in Magento 2

I've cloned a gitlab project into the local system in Windows. When I run the project, it shows this error: Vendor autoload is not found. Please run 'composer install' under the application root ...
0 votes
2 answers
2k views

How to create an Integration environment in Magento Cloud?

I have the Production and Staging environments in my Magento Cloud, but I don't see any Integration environment. Checking this link I see that it's supposed to exits. https://devdocs.magento.com/cloud/...
0 votes
1 answer
320 views

how to create aws instance and setup magento 2

I want to use aws EC2 service and RDS for database and going to setup magento 2 project using gitLab so anyone have idea then please share with me. Thanks in advance.
0 votes
1 answer
200 views

Magento2.4: fatal:no submodule mapping found in .gitmodules for path public_html/vendor/ezyang/htmlpurfier

On running git pull command, I get this error. Could you please help fix this?
0 votes
1 answer
192 views

magento2 custom module installation from git using composer

how to install my custom module on another magento2 project from git using composer I tried with composer config ->this works fine. when I run composer require its shows an error [RuntimeException] ...
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 ...
0 votes
0 answers
260 views

Best practices for Magento 2 Pipeline Deployment, upgrading, using git

I'm currently running a Magento 2.3.4 Community Edition site on a set of dedicated servers. We use several third-party extensions and have also developed our theme and a few extensions for our ...
0 votes
2 answers
97 views

How to configure Magento 2 to have personal/private develpment extensions just for myself

I have several development tools which I personally use like: https://github.com/ho-nl/magento2-Ho_Templatehints https://github.com/mage2tv/magento-cache-clean Is it possible to somehow configure ...
3 votes
1 answer
801 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 ...
0 votes
0 answers
130 views

Magento 2 : Custom extension install and update composer require using public and private key

I have created the custom extension for my client and the client want to install and update the custom extension like Amasty and Aheadworks. So can anyone give any reference URL and how can I do the ...
2 votes
1 answer
320 views

Magento 2 - Every module as Git Repository, bad?

Our online business operates on a Magento 2.4.x installation which now has nearly 100 in-house modules that deliver features and functionality specific to our business. Every module has its own Git ...
0 votes
1 answer
4k views

unmerge css and js files on magento admin back-end

I've made some changes on my local. then when i git push my changes to dev environment I don't see them. When I was inspecting my code I noticed that the css on my local are different because the css ...
0 votes
1 answer
168 views

How can i integrate Magento 2 server with GitHub?

I'm new to Magento. I would like to create and design my online Marketplace by using Magento2. I installed and configured two servers with Magento 2.4 (Community Edition), the first server is a test ...
0 votes
0 answers
27 views

Apply github commits programmatically

I have a customer Magento 2 website, created, i don't know by composer command or with web wizard method, in the root folder, there's a git folder, I would like to apply those commits https://github....
0 votes
2 answers
112 views

Magento 2 Project How to setup in git via local

i have magento 2 project and i want to setup in local via git and after setup how to run git command like commit , push or else any tutorial or video available for that ? Thanks!!
0 votes
2 answers
248 views

Receiving this error class XSLTProcessor does not exists

I am receiving this error. I tried with the followings: Changing the file permission in generated folder Tried removing cache and page_cache in var folder Then tried removing generated folder as well ...
4 votes
1 answer
2k 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
0 answers
60 views

How to install git in magento 2.3.4?

I have problem in remove extension, How to install git in magento 2?
3 votes
4 answers
299 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 ,
1 vote
2 answers
2k views

How to clone directly from Magento Cloud?

I have a project and I don't have access to the Bitbucket repo but I have master access to the Magento Cloud project. How could I clone the project to my local environment?
1 vote
0 answers
50 views

Install Magento 2 in AWS with Git

How to install Magento 2 in AWS with git? I am using linux mint as my local OS. Now I would like to install Magento 2 in AWS with git. So that I can push code to AWS after working on file from my ...
1 vote
1 answer
130 views

Why default Magento2 .gitignore file ignores composer.json, Gruntfile.js?

It's a simple question: why does Magento ignore by default package.json, Gruntfile.js and grunt-config.js files? https://devdocs.magento.com/guides/v2.3/config-guide/prod/config-reference-gitignore....
0 votes
2 answers
279 views

How to stash a single untracked file out of a group of hundreds of both modified and untracked files in the git?

I did an upgrade to Magento 2.3.5 resulting in hundreds of files being modified while some were newly added. I added another untracked file not related to the upgrade in anyway, and know exactly what ...
1 vote
2 answers
227 views

Magento 2: I want to clone the Media folder as well while cloning the Magento 2 GIT repository

How can I clone the Media folder while cloning the Magento 2 GIT repository?
0 votes
2 answers
892 views

Magento Cloud : Fixing Merge Conflict

I am working on a project based on Magento Commerce Cloud. I am trying sync code from master to Staging branch but i am getting failure message.And when i view the logs,i am seeing merge conflict w.r....
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 ...
4 votes
1 answer
959 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
1 answer
207 views

Magento 2 files to keep in repository

I started a new Magento 2 project and i always keep my projects in bitbucket... When i added the files to push i got like 200Mb of files is it really necessary to keep a Magento 2 project in a ...
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 ...
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 ...
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....
0 votes
1 answer
71 views

clean server .gitgnore [closed]

Hello I want to add these files to .gitgnore in order to clean the server how can I do that The files are robots.txt robots/ .gitgnore is on project directory Sorry I am still beginner at that ...
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 ...
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 ...
1 vote
1 answer
1k views

Magento2: How to add dependency in composer for private Gitlab modules?

I'm installing a custom module in M2 using composer from my private Gitlab repo and it is working fine. After I've added the dependency of other modules(using composer require) in my custom module ...
0 votes
3 answers
504 views

How to deploy to production server customizations made in vendor folder?

So, We have 3 environments: development, staging and production. .gitignore file includes "vendor" folder and it has been working fine for us fine. Once We pull changes in Staging We would just run: ...
2 votes
2 answers
540 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 ...
0 votes
1 answer
448 views

setting up local environment from private git

I started a new project and am pretty new to Magento 2. The person gave me access to there personal git repo with there magento that they use fro production. They also gave a dump of the database. ...
2 votes
0 answers
130 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 ...
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?
0 votes
0 answers
1k 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
1 answer
103 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<...