git push がエラーで失敗する

問題

git push すると、次のエラーが表示される。

remote: error: insufficient permission for adding an object to repository database objects
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To ssh://user@host/repo.git
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'ssh://user@host/repo.git'
原因

リモートリポジトリーのディレクトリーにユーザーの書き込み権限が無かったため。

対処

リモートリポジトリーのディレクトリーにユーザーの書き込み権限を付加する。

$ chmod  -R  o+w  repo.git

evdev とは

Linux カーネル内の汎用の入力イベントインターフェース。 デバイスドライバーからの低次の入力イベントを標準化して、/dev/input/ ディレクトリーのキャラクターデバイスとして利用可能にする。

参考文献

error: unable to create file path/to/file: Invalid argument

問題

git clone 実行中に次のエラーが表示される

error: unable to create file path/to/file: Invalid argument
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

エラー: ファイル path/to/file を作成できません: 無効な引数
致命的: ワーキングツリーをチェックアウトできません
警告: クローンは成功しましたが、チェックアウトは失敗しました。
'git status' でチェックアウトされたものを点検して、
'git checkout -f HEAD' でチェックアウトをリトライできます
環境
  • Git 2.10.22
  • Widnows 7 Professional 64-bit
原因

チェックアウトするファイルの名前に Windows では使えない文字が含まれているため。

解決方法

該当するファイルの名前を変更する、または不要なファイルであればリポジトリーから削除する。

Parentheses expected, signal

問題

ビルド時に次のエラーが発生する。

コード

connect(this, SIGNAL(trigger), this, SLOT(onTrigger));

エラー

Object::connect: Parentheses expected, signal <クラス名>::<シグナル名> in ..\<ファイル名>:<行番号>

Object::connect: 丸括弧が予期される, signal <クラス名>::<シグナル名> in ..\<ファイル名>:<行番号>
原因

シグナル名/スロット名の後ろに丸括弧を書いていないため。

解決方法

シグナル名/スロット名の後ろに丸括弧を書く。

connect(this, SIGNAL(trigger()), this, SLOT(onTrigger()));