Git bash how to upload a project to a bit bucket?

2019-07-09 03:00发布

问题:

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.

If you have any information, please share it.

回答1:

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://username@your.bitbucket.domain:7999 /yourproject/repo.git)



回答2:

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



回答3:

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


标签: git bitbucket