2016-06-21 20 views
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モジュールをインストールするのですか

+0

プッシュするために 'git pull'を使用してリモートからリポジトリを更新しようとしてください。あなたのレポはtp日付ではないようです – Flows

+0

@Flowsそれは何の違いもありませんでした。 git pullステートメント出力で質問を更新しました。 – user3626708

答えて

0

これはあなたが直面している同様の問題だと思います。あなたの必要性に合うかどうか見てください。

Push a tag to a remote repository

よろしく。

関連する問題