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.

44 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
Cyclonecode's user avatar
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 ...
Dinesh's user avatar
  • 552
2 votes
2 answers
137 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 ...
Haim's user avatar
  • 2,144
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
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
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
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
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
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 ...
abu abu's user avatar
  • 744
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 ...
Creepin's user avatar
  • 335
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....
PauGNU's user avatar
  • 722
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 ...
tardisdriver's user avatar
1 vote
0 answers
98 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 ...
mileven's user avatar
  • 419
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
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
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
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
1 vote
1 answer
988 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
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
1 vote
1 answer
306 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 ...
mileven's user avatar
  • 419
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?
Ramanathan M R's user avatar
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?
CodeForGood's user avatar
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] ...
Ajith's user avatar
  • 66
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 ...
Akif's user avatar
  • 1,551
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 ...
Kushal Dani's user avatar
  • 2,114
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 ...
Laura Robson's user avatar
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 ...
Peter Wood's user avatar
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 ...
Noury Micron's user avatar
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....
tarek fellah's user avatar
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!!
Jaydip Patel's user avatar
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 ...
WP Learner's user avatar
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?
zus's user avatar
  • 175
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 ...
Antonio's user avatar
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....
S.Venky's user avatar
  • 115
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, ...
snh_nl's user avatar
  • 5,452
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
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
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
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
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
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
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
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 ...
Greg's user avatar
  • 2,729