1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VScodeのリポジトリの初期化を元に戻したい

Last updated at Posted at 2021-05-25

経緯について

MAMPでリポジトリを作成し全てGithubにあげようとした際、変更が多すぎてエラー発生。
MAMPディレクトリ内のhtdocs以降のみにしようとhtdocsからVScodeで開いたが、MAMP全体の変更が表示された。
image.png image.png

動作環境

・MacOS big Sur
・Visual Studio Code バージョン: 1.56.2
・git version 2.31.0

試したこと

・そのままhtdocsだけプッシュ    → 変更が残っているのが気持ち悪かった
・htdocsのみ別ディレクトリにコピペ → 今後の二度手間はなるべく避けたい

リポジトリの初期化をやり直したい。

リポジトリの初期化について

ローカルリポジトリを作成する際の基準となるディレクトリの指定?

リポジトリの初期化を元に戻す方法

1.ソース管理の・・・でソース管理リポジトリをチェック
2.出てきたソース管理リポジトリの中にあるリポジトリを右クリック、リポジトリを閉じる。
3.リポジトリの初期化が出るので指定したいディレクトリに移動しリポジトリを初期化。

image.png

とりあえず個人的にやり直す分にはこれでいいのかも。

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?