我是bitbucket的新手。我想将项目从Linux上传到bitbucket。成功我创建了一个bitbucket帐户并做了以下
1)创建一个存储库名称' testadmin'
2)使用命令行cd /var/www/myname/myprojectname
git init
git remote add origin https://username@bitbucket.org/user/testadmin.git
git pull origin master
然后我得到
Password for 'https://user@bitbucket.org':
From https://bitbucket.org/user/testadmin
* branch master -> FETCH_HEAD
Merge made by the 'recursive' strategy.
README.md | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
但我没有从bitbucket获得我的项目。请帮助我
答案 0 :(得分:0)
www
中。就像项目文件夹名称是project_1一样,它应该在var/www/html/project_1
然后打开终端并转到文件夹project_1
cd /var/www/html/project_1
然后因为您已经启动了git并添加了远程源,所以您只需要将代码推送到repo。
为此,请按照下列步骤操作:
1)您需要将所有文件添加到提交存储桶以在repo上传。为此,
git add -A (it will add all the files of the folder project_1)
2)提交带有消息的文件以跟踪您上传的作品
git commit -m "First time uploading project 1" // The commit message will be for your reference.
3)现在推送提交的代码:
`git push origin master` // this command will push the code to master branch which is the default branch in a repo. You can create any branches on Bitbucket and add their name after origin to push to that particular branch.
在这3个命令之后,检查你的回购。你应该看到你的项目。
评论是否需要进一步的帮助。