Git clone on already existing Magento installationMagento connected to gitMagento 2- code-migration installation using gitCode Generation and Local Development Workflow in Magento 2Managing M2 projects with GIT (workflow)Magento 2 Custom Theme .gitignoreMagento2 - local / staging / production deployment & gitignoreMagento 2 Version Update Dilemma (Cloned from Git Repo)Clone Magento 2 respository from git causing installing new project not loading existingMoving Magento 2 to local system perform extremely slowMagento 2 and git, best practice for custom module development
In the Schrödinger equation, can I have a Hamiltonian without a kinetic term?
Help me, I hate squares!
Word for giving preference to the oldest child
Would people understand me speaking German all over Europe?
What is the range of a Drunken Monk's Redirect attack?
How do I respond appropriately to an overseas company that obtained a visa for me without hiring me?
Move arrows along a contour
What parameters are to be considered when choosing a MOSFET?
Why is the Searing Smite spell not listed in the Roll20 spell list?
How did Biff return to 2015 from 1955 without a lightning strike?
How to remove rebar passing through an inaccessible pipe
Why would an invisible personal shield be necessary?
What are these hats and the function of those wearing them? worn by the Russian imperial army at Borodino
Why does macOS create file mounts for each app?
Word for soundtrack music which is part of the action of the movie
My employer is refusing to give me the pay that was advertised after an internal job move
Was Donald Trump at ground zero helping out on 9-11?
How do discovery writers hibernate?
How can a class have multiple methods without breaking the single responsibility principle
How to structure presentation to avoid getting questions that will be answered later in the presentation?
Can living where Rare Earth magnetic ore is abundant provide any protection from cosmic radiation?
Adding a (stair/baby) gate without facing walls
What kind of horizontal stabilizer does a Boeing 737 have?
How can flights operated by the same company have such different prices when marketed by another?
Git clone on already existing Magento installation
Magento connected to gitMagento 2- code-migration installation using gitCode Generation and Local Development Workflow in Magento 2Managing M2 projects with GIT (workflow)Magento 2 Custom Theme .gitignoreMagento2 - local / staging / production deployment & gitignoreMagento 2 Version Update Dilemma (Cloned from Git Repo)Clone Magento 2 respository from git causing installing new project not loading existingMoving Magento 2 to local system perform extremely slowMagento 2 and git, best practice for custom module development
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
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 help developing some parts of it.
I thought that the best practice would be to install a local copy of Magento on its computer and then make a git clone
to download the custom parts. Is that the correct flow? I do like this I get a lot of untracked files..
magento-2.1 git
add a comment |
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 help developing some parts of it.
I thought that the best practice would be to install a local copy of Magento on its computer and then make a git clone
to download the custom parts. Is that the correct flow? I do like this I get a lot of untracked files..
magento-2.1 git
add a comment |
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 help developing some parts of it.
I thought that the best practice would be to install a local copy of Magento on its computer and then make a git clone
to download the custom parts. Is that the correct flow? I do like this I get a lot of untracked files..
magento-2.1 git
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 help developing some parts of it.
I thought that the best practice would be to install a local copy of Magento on its computer and then make a git clone
to download the custom parts. Is that the correct flow? I do like this I get a lot of untracked files..
magento-2.1 git
magento-2.1 git
asked Aug 19 '17 at 6:55
gianis6gianis6
74014 silver badges36 bronze badges
74014 silver badges36 bronze badges
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You can do this in two different method.
1. Clone from your existing repository:
Before cloning you have to check what are files are not included in .gitignore
file. If you want to clone the <magento_root_dir>/vendor
files you can remove from .gitignore
and automatically it will be cloned to the local directory. Otherwise if you want to exclude the <magento_root_dir>/vendor
files, add to .gitignore
and obviously you should run the composer install
command after doing this. After that you can able to push the changes to the cloud every time when you need.
2. Fork into new repository:
You can create new repository and fork from the existing repository. Then clone the files from newly forked repository as mentioned above. Your colleague can able to push the change to the new repository and from there he/she need to send the merge request and finally you can merge the files. So without your knowledge nobody can able to push the files directly.
add a comment |
since Magento uses composer you git clone the project to you local folder and the run from the command line in the root folder
composer install
After the remaining files are installed you run:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f189748%2fgit-clone-on-already-existing-magento-installation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can do this in two different method.
1. Clone from your existing repository:
Before cloning you have to check what are files are not included in .gitignore
file. If you want to clone the <magento_root_dir>/vendor
files you can remove from .gitignore
and automatically it will be cloned to the local directory. Otherwise if you want to exclude the <magento_root_dir>/vendor
files, add to .gitignore
and obviously you should run the composer install
command after doing this. After that you can able to push the changes to the cloud every time when you need.
2. Fork into new repository:
You can create new repository and fork from the existing repository. Then clone the files from newly forked repository as mentioned above. Your colleague can able to push the change to the new repository and from there he/she need to send the merge request and finally you can merge the files. So without your knowledge nobody can able to push the files directly.
add a comment |
You can do this in two different method.
1. Clone from your existing repository:
Before cloning you have to check what are files are not included in .gitignore
file. If you want to clone the <magento_root_dir>/vendor
files you can remove from .gitignore
and automatically it will be cloned to the local directory. Otherwise if you want to exclude the <magento_root_dir>/vendor
files, add to .gitignore
and obviously you should run the composer install
command after doing this. After that you can able to push the changes to the cloud every time when you need.
2. Fork into new repository:
You can create new repository and fork from the existing repository. Then clone the files from newly forked repository as mentioned above. Your colleague can able to push the change to the new repository and from there he/she need to send the merge request and finally you can merge the files. So without your knowledge nobody can able to push the files directly.
add a comment |
You can do this in two different method.
1. Clone from your existing repository:
Before cloning you have to check what are files are not included in .gitignore
file. If you want to clone the <magento_root_dir>/vendor
files you can remove from .gitignore
and automatically it will be cloned to the local directory. Otherwise if you want to exclude the <magento_root_dir>/vendor
files, add to .gitignore
and obviously you should run the composer install
command after doing this. After that you can able to push the changes to the cloud every time when you need.
2. Fork into new repository:
You can create new repository and fork from the existing repository. Then clone the files from newly forked repository as mentioned above. Your colleague can able to push the change to the new repository and from there he/she need to send the merge request and finally you can merge the files. So without your knowledge nobody can able to push the files directly.
You can do this in two different method.
1. Clone from your existing repository:
Before cloning you have to check what are files are not included in .gitignore
file. If you want to clone the <magento_root_dir>/vendor
files you can remove from .gitignore
and automatically it will be cloned to the local directory. Otherwise if you want to exclude the <magento_root_dir>/vendor
files, add to .gitignore
and obviously you should run the composer install
command after doing this. After that you can able to push the changes to the cloud every time when you need.
2. Fork into new repository:
You can create new repository and fork from the existing repository. Then clone the files from newly forked repository as mentioned above. Your colleague can able to push the change to the new repository and from there he/she need to send the merge request and finally you can merge the files. So without your knowledge nobody can able to push the files directly.
answered Aug 19 '17 at 9:10
sabarivenkatesankrishsabarivenkatesankrish
3091 silver badge10 bronze badges
3091 silver badge10 bronze badges
add a comment |
add a comment |
since Magento uses composer you git clone the project to you local folder and the run from the command line in the root folder
composer install
After the remaining files are installed you run:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
add a comment |
since Magento uses composer you git clone the project to you local folder and the run from the command line in the root folder
composer install
After the remaining files are installed you run:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
add a comment |
since Magento uses composer you git clone the project to you local folder and the run from the command line in the root folder
composer install
After the remaining files are installed you run:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
since Magento uses composer you git clone the project to you local folder and the run from the command line in the root folder
composer install
After the remaining files are installed you run:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
edited Aug 19 '17 at 10:20
Raghu
1,2731 gold badge5 silver badges22 bronze badges
1,2731 gold badge5 silver badges22 bronze badges
answered Aug 19 '17 at 8:03
Andrea D'UrsoAndrea D'Urso
681 silver badge12 bronze badges
681 silver badge12 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f189748%2fgit-clone-on-already-existing-magento-installation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown