새 분기 AAA가 마스터를 기반으로 만들어 졌으므로 이제 로컬 컴퓨터로 가져 오기/가져 오기를 수행하려고합니다. 그것을하는 방법?새 분기를 가져 오지 못했습니다.
디렉토리가 다르다는 점에 유의하십시오. 앱 폴더에 AAA를 가져오고 싶습니다. 새로운 지점을 잡는 올바른 단계는 무엇입니까?
--in app/myproject
$ git remote show origin
Password for 'https://[email protected]:8443':
* remote origin
Fetch URL: https://[email protected]:8443/scm/s.git
Push URL: https://[email protected]:8443/scm/s.git
HEAD branch: master
Remote branches:
M-10125 tracked
feature/AAA new (next fetch will store in remotes/origin)
master tracked
release-0.0.0.0 tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (local out of date)
-- in app directory
$ git fetch feature/AAA
fatal: Not a git repository (or any of the parent directories): .git
$ git fetch AAA
fatal: Not a git repository (or any of the parent directories): .git
$ git fetch origin/AAA
fatal: Not a git repository (or any of the parent directories): .git
감사
및 모든 출력이 같은 디렉토리에 있습니까? – dubes
예, 동일한 디렉토리를 사용하고 있습니다. – user1615666
모든 것이 "기본값으로"설정되어 있고'git remote show ... '와'git fetch' 사이에서 디렉토리를 변경하지 않으면'git fetch' (인자없이) 올바른 일을해야합니다! –