LoginSignup
0
0

More than 5 years have passed since last update.

gitでpushがうまく行われなかった対処法

Last updated at Posted at 2017-07-21

gitでpushができなかった

エラー内容
fatal: 'master' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

masterがないのはどう考えてもおかしい!!!

調べてみると鍵の設定を行っていないため出るエラーらしい...

masterがないのはどう考えてもおかしい!!!

ステータス見てみる
 $ git status

#       ../../.bash_history
#       ../../.bash_logout
#       ../../.bash_profile
#       ../../.bashrc
etc

管理してる範囲が違うんじゃないかな?
うっかりgit initする場所間違ってる!(・ω<)

解決

管理範囲の変更
 $ rm -rf .git
 $ cd [管理におきたいディレクトリ]
 $ git clone [git@...]

で無事にpushできるはず。
コードレビューしてくれる人がいるのは幸せだな。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0