Skip to content

Instantly share code, notes, and snippets.

@kitsuyui
Last active August 29, 2015 14:16
Show Gist options
  • Save kitsuyui/1310d16078f927c19fa1 to your computer and use it in GitHub Desktop.
Save kitsuyui/1310d16078f927c19fa1 to your computer and use it in GitHub Desktop.
ローカルの Git リポジトリ消して大丈夫? を確かめる ref: http://qiita.com/kitsuyui/items/e9f04013078e0d31be5a
Bitbucket や GitHub に複製があれば良いので、しばらく使っていない不要なローカルリポジトリは消してしまおうかな。
でも「全ての必要なファイルは復旧できること」「消してしまうファイルは不要なものだけであること」はちゃんと確認したいな。
$ git status --porcelain
$
$ git log --branches --not --remotes=origin
$
$ git log --branches --not --remotes=origin --remotes=origin2
$
$ find . -type f -print | xargs git check-ignore
./.DS_Store
./.python-version
./bin/.DS_Store
./bin/__pycache__/main.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment