git pullコマンドが追跡されていないワークツリーファイルを上書きする場合
git pullコマンドを使用してgitリポジトリにアップロードされたコミットを取得します.
$ git pull origin master
もちろんgithubのIDとパスワードを聞きます.
Username for ‘ https://github.com’ : xxxxx
Password for ‘ https://[email protected]’ :
次のコマンドでほとんど問題を解決できます.
では、もう一度引いてください
$ git pull origin master
もちろんgithubのIDとパスワードを聞きます.
Username for ‘ https://github.com’ : xxxxx
Password for ‘ https://[email protected]’ :
remote: Counting objects: 6, done.
remote: Total 6 (delta 5), reused 6 (delta 5), pack-reused 0
Unpacking objects: 100% (6/6), done.
From https://github.com/xxxxx/xxx
* branch master -> FETCH_HEAD
Updating 531a1fe..445eb5f
でも引っ張ってきた時に次のようなエラーが発生しました.error: The following untracked working tree files would be overwritten by merge:
오류 발생한 파일 위치 및 이름
Please move or remove them before you can merge.
Aborting
現在の状況では、追跡されていないworktree fileに問題があります.次のコマンドでほとんど問題を解決できます.
$ git clean -d -f -f
コマンドを実行しても応答メッセージはありません.では、もう一度引いてください
Reference
この問題について(git pullコマンドが追跡されていないワークツリーファイルを上書きする場合), 我々は、より多くの情報をここで見つけました https://velog.io/@rhdxoals/git-pull-명령-시에-untracked-working-tree-files-overwritten-나올-때テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol