Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロジェクトを ant から maven に移行しようとしたときに、誤って悪い状態のレポを取得してしまいました。ここで、レポをクリアして最初からやり直したいと思います。私は git を初めて使用するので、少し用心深く、チェックアウトしてすべてのファイルとフォルダーをローカルで削除し、リモート リポジトリにプッシュするだけでよいのか、それとも実際に非常に悪い考えだったのか確信が持てません。何らかの理由で、Google で正しい質問をするのに苦労しています。:D
ローカル.gitディレクトリを削除し、サーバーからレポを削除します (github の場合は、レポ -> 設定 -> 削除)。
.git
次に、サーバーに新しいリポジトリを作成し、ローカルで次のようにします。
git init git remote add origin git@github.com:user/project.git git add . git commit -m "Initial commit" git push -u origin master