Before doing the following steps first add your shh key in bitbucket.

1. Create a Repository in the bitbucket account.

2. Navigate to Magento root directory.

3. initialize git by using the following command

git init

4.add the repository using the command.

git remote add origin your_git_url

5.create a .gitignore file in the root directory.

6.run the commands

git add .
git config core.fileMode false
git config --global user.email "your_email_address"
git config --global user.name "Your Name"
git commit -m "First Git Command"
git push origin master

Categories: Magento

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *