. . .

How to initialize Git?

After downloading git, we will initialize it within few steps:

Firstly

we will log in to bitbucket account.

Secondly

We will create a new repository by clicking the add button also have to give a repository name & click on the create repository button.

Thirdly

A new link will generate & we have to use this link in git.

Fourthly

We have to go into the directory containing the project. After that, we will initialize git by right click.

Fifthly

We have to click on the gitbash here option.

Sixthly

We will write some codes here to push the directory file/project in the bitbucket repository.

git init
git config –global user.email “suman.sb30@gmail.com”
git config –global user.name “Suman Bhattacharjee”
git remote add origin (https://sumansb30@bitbucket.org/sumansb30/template_imperia_club.git)
git add.
git status
git commit -am “Initial Commit”
git push -u origin –all
git push -uf origin –all

only this git remote origin must be used as per local Git repository on Bitbucket.

Seventhly

Now the file is added to the bitbucket repository…Click on refresh & you can see it.

Please share the article
Posted in Git

Leave a Reply

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

two × 5 =