2017-12-05 22 views
0

에서 업로드 프로젝트를 가져올 수 없습니다 명령 줄 cd /var/www/myname/myprojectname내가 bitbucket.I의 새로운 내가 작성한의 bitbucket 계정을 bitbucket.successfully 리눅스에서 프로젝트를 업로드하려는 오전 다음</p> <p>1) 저장소 이름을 만들 '을 TestAdmin'한의 bitbucket

git init 
git remote add origin https://[email protected]/user/testadmin.git 
git pull origin master 

를 사용 2) 그때

Password for 'https://[email protected]': 
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

Bitbucket의 저장소에 코드를 추가 했습니까? –

+0

@HimanshuUpadhyay : 이제 하나의 파일이 있습니다 README.md –

+0

그래서 저장소에 프로젝트 코드가 없으면 어떻게 거기에서 프로젝트를 가져올 수 있습니까? 당신이 당기면 거기에서 readme.md 파일을 얻었을 것입니다. 그렇지? –

답변

0

다음에 www에 프로젝트 폴더를 보관할 것을 권합니다. 프로젝트 폴더의 이름은 다음 project_1 경우처럼 그것은 var/www/html/project_1

열기 터미널에서하고있는 폴더를 project_1 cd /var/www/html/project_1과 도달해야 당신이 이미 자식을 시작하고 방금에 코드를 밀어 필요하므로 원격 원을 추가로 repo. 이렇게하려면 다음 단계를 따르십시오.

1) 모든 파일을 커밋 버킷에 추가하여 repo에 업로드해야합니다. 이 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. 

을 확인 :이를 위해

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) 지금 최선을 다하고 코드를 밀어을 추적하는 메시지와 함께 파일을 커밋 당신의 레포. 프로젝트가 보일 것입니다.

추가 도움이 필요한 경우 댓글.