LoginSignup
0
0

More than 5 years have passed since last update.

pullRequest対応時のエラー対処メモ

Posted at

開発環境

  • MacOS High Sierra
  • XCode9.3

XCodeからGitHubにあげたソースのpullRequestの対応で、以下のエラーが起きたので対処した際の記録
なお、当初はXcodeのGUI操作でやろうとしたがやり方が分からなかった為、コンソールで該当プロジェクト直下に移動して実行している。

$git fetch origin
fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository.

originというremoteがないという意味らしい。

Git push: “fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository.”

上記リンクの方法で解決。要するに、remoteの名前をoriginという名前で設定し直しただけ。
これでコマンドが打てる環境になったと思ったら次のエラーが出る

$ git pull ttps://github.com/XXXXXXXXXXXXX
The following untracked working tree files would be overwritten by merge:

GitHubにあるソースとローカルにあるソースのリポジトリに差異がある?

[Git]エラー:The following untracked working tree files would be overwritten by merge:

$ git reset --hard FETCH_HEAD

これ実行してようやく、ローカルでブランチのソースを実行出来て、マージもして最後に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