Githubがうまく上がらない

下記のエラーが出てしまう

Permission denied

プロジェクトディレクトリにおいて、

git add . 

を行うと、下記のエラーがでてしまう。

error: open("docker/mysql/data/#innodb_temp/temp_1.ibt"): Permission denied
error: unable to index file 'docker/mysql/data/#innodb_temp/temp_1.ibt'
fatal: updating files failed

sudo chmod -R 777 docker/*

すればよいかもしれない。

git push origin main

したところ、下記のエラーが出た。

To github.com:yuuzaki2000/fashionably-late.git
 ! [rejected]        main -> main (fetch first)
error: failed to push some refs to 'github.com:yuuzaki2000/fashionably-late.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

強制的にプッシュした

git push --force origin main

コメント

タイトルとURLをコピーしました