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
0 votes
1 answer
97 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.
  • 537
0 votes
1 answer
60 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
101 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] ...
  • 66
0 votes
2 answers
63 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 ...
  • 1,392
0 votes
0 answers
91 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,034
0 votes
1 answer
925 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 ...
2 votes
1 answer
228 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 ...
  • 419
0 votes
0 answers
150 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
1 answer
134 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
17 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
86 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
200 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 ...
0 votes
0 answers
54 views

How to install git in magento 2.3.4?

I have problem in remove extension, How to install git in magento 2?
  • 145
0 votes
2 answers
745 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
2 answers
912 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
39 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 ...
  • 704
0 votes
2 answers
208 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
196 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
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 ...
1 vote
1 answer
145 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 ...
0 votes
1 answer
61 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 ...
0 votes
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 ...
  • 325
1 vote
1 answer
77 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....
  • 652
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 ...
  • 101
3 votes
1 answer
27k 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
3 answers
468 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: ...
  • 13
0 votes
1 answer
250 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. ...
0 votes
2 answers
743 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....
  • 95
2 votes
0 answers
90 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 ...
  • 532
0 votes
0 answers
749 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, ...
  • 5,342
0 votes
1 answer
100 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<...
  • 784
2 votes
2 answers
124 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 ...
  • 2,104
0 votes
3 answers
809 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. ...
  • 27
2 votes
1 answer
62 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 ...
1 vote
1 answer
417 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
1 answer
848 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 ...
  • 382
3 votes
4 answers
226 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
1 answer
895 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
20 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
2 answers
944 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 ...
  • 2,869
4 votes
2 answers
2k 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,869
2 votes
2 answers
477 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 ...
  • 577
3 votes
1 answer
647 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 ...
  • 628
1 vote
1 answer
251 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 ...
  • 409
3 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.
  • 379
0 votes
0 answers
179 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
0 answers
85 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
0 answers
80 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 ...
  • 409
4 votes
2 answers
2k 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
1 answer
76 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 ...
  • 534