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

2019-07-09 03:33发布

enter image description here

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.

标签: git bitbucket
3条回答
等我变得足够好
3楼-- · 2019-07-09 03:53

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
查看更多
兄弟一词,经得起流年.
4楼-- · 2019-07-09 04:04

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)

查看更多
登录 后发表回答