user7996880
user7996880

Reputation:

Git bash how to upload a project to a Bitbucket?

Git bash terminal

I'm now ready to use git with the git init command.

This is the problem after that.

I'm not sure about the git add command.

What exactly should I add to add a file?

Do I have to upload my modified file?

Not only that, but I do not know how to upload a project to a bit bucket.

If you have a link that has been described in detail,

will not you give me that link?

There is not much data to refer to in Korea.

Upvotes: 0

Views: 4130

Answers (3)

Vimal
Vimal

Reputation: 51

If GIT is not initialized

git init

In the question the git is already initialized

Try to find out the status with

git status

and if you find any files which has to be added for committing use

git add .

commit with

git commit -m "comment"

Add repository path

git remote add origin URL

URL - Project repository url

and push with

git push

Upvotes: 0

Bogdan Kobylynskyi
Bogdan Kobylynskyi

Reputation: 1220

From the BitBucket official doc:

git init
git add --all
git commit -m "Initial Commit"
git remote add origin ORIGIN_URL 
git push -u origin master

Where ORIGIN_URL is your repository url (e.g. https://[email protected]:7999 /yourproject/repo.git)

Upvotes: 4

CaptRespect
CaptRespect

Reputation: 2055

Bitbucket has instructions on how to do this: https://confluence.atlassian.com/bitbucket/set-up-a-repository-877174034.html

Upvotes: -1

Related Questions