0
Jenkins 상자에서 실행중인 쉘 스크립트가 있습니다. 여기에서 HTTP를 통해 저장소를 복제하고 HTTP를 통해 이미 존재하는 원격 분기로 일부 변경 사항을 푸시하려고합니다.GIT- 원격 저장소로 푸시 할 수 없습니다.
그러나 나는 계속 참조를 푸시하지 못했습니다. 오류가 발생하고 --verbose
을 추가해도 실제로 오류가 발생하는 이유는 알 수 없습니다. 저장소를 복제하는 데 사용 된 사용자가 내부 gitlab 저장소에서 마스터 권한을 가지고 있기 때문에 사용자 권한 문제라고 생각하지 않습니다.
+ git status
On branch npm_publish
Your branch is ahead of 'origin/npm_publish' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
//Grepping the remote branches to make sure npm_publish is there
+ grep npm_publish
+ git branch -a
* npm_publish
remotes/origin/npm_publish
+ git pull
Already up-to-date.
+ git push -u origin npm_publish --verbose
Pushing to https://<username>:<password>[email protected]<internal repository>/quality/test.git
error: failed to push some refs to 'https://<username>:<password>[email protected]<internal repository>/quality/test.git'
UPDATE : 그래서이 단계 전에 내가
rm -r node_modules
을 할 경우는 잘 밀어 밀어 전에
npm install
npm install grunt-cli
을한다. npm 모듈을 설치해야하는 이유
'git pull'을 사용하여 리모컨에서 repo를 업데이트하려고 시도 할 수 있습니까? 귀하의 Repo가 tp date가 아닐 것 같습니다 – Flows
@Flows 어떤 차이도 없었습니다. git pull 명령문 출력으로 내 질문을 업데이트했습니다. – user3626708