2014-11-30 2 views
2

Bitbucket 지점에서 물건을 밀어 달라는 요청을 받았습니다. 내가 important2/B2에 내 물건을 밀어하도록 요청하고힘내 : bitbucket 지점이 푸시되고 있지 않습니다.

  • master
  • important1/B1
  • important1/B2
  • important2/B1
  • important2/B2

:이 5 가지가있다. 그래도 URL이 https://******@bitbucket.org/important/important.git 인 저장소를 복제하면 하드 디스크에 important1/B1important1/B2 만 복제되지만 다른 두 개의 디렉토리는 복제되지 않습니다.

그런 다음 몇 가지 체크 아웃 명령을 사용하여 시도한 결과 나는 important2/B2 만 복제 할 수 있었으며이를 밀어 내려고 시도했지만 더 이상 커밋하지 않기로했습니다. 하지만 bitbucket을 확인하면 파일이 없습니다.

브랜치를 복제하고 다시 푸시해야하는 정확한 명령은 무엇입니까? 시간이 없어. 그래서 여기서 물어야했습니다. 그건 그렇고, 나는 힘과 Bitbucket의 새로운 사용자이기도하다.

+0

홈 행에있는 문자 대신 실제 사용자 이름을 만들 수 있습니다. 둘째,'git branch -a'의 결과는 무엇입니까? – R0MANARMY

답변

0

가이 작업을 수행하는 방법에는 여러 가지 있지만, 여기에 한 가지 방법입니다 : 마지막 명령이 실패하면 변화가 마지막에 그들을 뽑아 시간 동안 원격 이루어 졌기 때문에 즉,

git clone https://******@bitbucket.org/important/important.git # if you already have a clone, just run git pull to get things up to date 
git checkout -b important2/B2 --track origin/important2/B2 # will create a branch importan2/B2 locally and track the remote important2/B2 on origin (https://******@bitbucket.org/important/important.git) 
# edit files 
git status # check which files have been edited 
git commit -m "COMIT_MESSAGE" -a # alternatively use git add per file before commit and no -a 
git push origin important2/B2 # push your changes up to remote 

. git pull --rebase을 실행 한 다음 충돌이 없다고 가정하면이 문제를 해결할 수 있습니다.

관련 문제