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.

Filter by
Sorted by
Tagged with
0
votes
0answers
28 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
1answer
26 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
0answers
50 views

Git: When running cherry pick command on branch I want to apply commit, I am getting an error

I am trying to cherry pick a single commit from a branch into my local branch. I am getting the following message when doing so. What am I doing wrong? MBP:magento2 RS$ git cherry-pick ...
0
votes
0answers
20 views

Git - bin/magento setup:upgrade ruining my branches

each time I create a new module, I understand I have to run bin/magento setup:upgrade to make it work. Thing is, this modifies a ton of files in my branch making it unusable. It is filled with ...
0
votes
1answer
47 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
0answers
19 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....
1
vote
1answer
95 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 ...
1
vote
1answer
2k 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 ...
0
votes
3answers
63 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: ...
0
votes
1answer
64 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
2answers
195 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....
0
votes
0answers
104 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 on MacOS. Individually we are working fine with docker. ...
2
votes
0answers
28 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
123 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
79 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
49 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
3answers
113 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. ...
2
votes
1answer
53 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
1answer
120 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
195 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 ...
3
votes
2answers
72 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
1answer
413 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
292 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
821 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
2answers
159 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
315 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
151 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
873 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
120 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
57 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
49 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 ...
4
votes
2answers
1k 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
38 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
228 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
251 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
251 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
441 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
676 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
98 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
159 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
4answers
543 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
2answers
881 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
1answer
264 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....
11
votes
2answers
4k 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
118 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
414 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 ...