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

╄→гoц情女王★ 提交于 2019-12-13 15:16:40

问题


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


来源:https://stackoverflow.com/questions/44005119/git-bash-how-to-upload-a-project-to-a-bit-bucket

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!