2022 Developer Survey is open! Take survey.

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
0 answers
15 views

Magento: ignore everything except just one file

I've been having the entry /public_html/feeds in my Magento project's root directory so that none of the contents in feeds directory is tracked. But I need to track one file here which is .PHP file. ...
user avatar
  • 175
0 votes
0 answers
20 views

Why Magento 2 Does not Ignore Install, Update, and Dev Directories?

As you know in Magento 2 installation, a default .gitignore file is installed with the project which makes tracking repository changes easier and more focused. However, among the directories which are ...
user avatar
0 votes
1 answer
26 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?
user avatar
  • 175
0 votes
1 answer
42 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] ...
user avatar
  • 1
0 votes
2 answers
28 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 ...
user avatar
  • 1,280
0 votes
0 answers
75 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 ...
user avatar
  • 1,873
0 votes
1 answer
521 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 ...
user avatar
1 vote
1 answer
95 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 ...
user avatar
  • 379
0 votes
0 answers
94 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 ...
user avatar
0 votes
1 answer
99 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 ...
user avatar
0 votes
0 answers
11 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....
user avatar
0 votes
2 answers
40 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!!
user avatar
0 votes
2 answers
155 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 ...
user avatar
0 votes
0 answers
46 views

How to install git in magento 2.3.4?

I have problem in remove extension, How to install git in magento 2?
user avatar
  • 103
0 votes
1 answer
190 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/...
user avatar
0 votes
2 answers
479 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?
user avatar
1 vote
0 answers
35 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 ...
user avatar
  • 694
0 votes
2 answers
147 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 ...
user avatar
1 vote
2 answers
158 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?
user avatar
0 votes
1 answer
1k 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 ...
user avatar
1 vote
1 answer
104 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 ...
user avatar
0 votes
1 answer
58 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 ...
user avatar
0 votes
1 answer
889 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 ...
user avatar
  • 195
1 vote
1 answer
62 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....
user avatar
  • 652
1 vote
1 answer
796 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 ...
user avatar
  • 81
3 votes
1 answer
24k views

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

I cloned one gitlab project into the local system in windows. When I am running the project it shows the error like this. Vendor autoload is not found. Please run 'composer install' under the ...
user avatar
0 votes
3 answers
397 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: ...
user avatar
  • 13
0 votes
1 answer
177 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. ...
user avatar
0 votes
2 answers
579 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....
user avatar
  • 95
2 votes
0 answers
58 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 ...
user avatar
  • 482
0 votes
0 answers
625 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, ...
user avatar
  • 5,312
0 votes
1 answer
90 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<...
user avatar
  • 749
2 votes
2 answers
101 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 ...
user avatar
  • 2,084
0 votes
3 answers
618 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. ...
user avatar
  • 27
2 votes
1 answer
60 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 ...
user avatar
1 vote
1 answer
258 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 ...
user avatar
0 votes
1 answer
731 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 ...
user avatar
  • 360
3 votes
4 answers
178 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 ,
user avatar
4 votes
1 answer
869 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 ...
user avatar
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 ...
user avatar
0 votes
2 answers
741 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 ...
user avatar
  • 2,739
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’...
user avatar
  • 2,739
2 votes
2 answers
369 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 ...
user avatar
  • 577
3 votes
1 answer
574 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 ...
user avatar
  • 600
1 vote
1 answer
223 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 ...
user avatar
  • 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.
user avatar
  • 359
0 votes
0 answers
178 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.
user avatar
1 vote
0 answers
76 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 ...
user avatar
1 vote
0 answers
72 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 ...
user avatar
  • 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?
user avatar