#author("2022-05-19T00:20:53+00:00","default:admin","admin") -[[Git 全コマンド一覧 早見表:https://note.com/yukinooffice/n/ncd00b17d0656]] *現状確認 [#j040f7be] ***git status [#n09f4438] **git コマンドのバージョン確認 [#xe0d7347] $ git --version **設定確認 [#bdf7ae3a] $ git config -l *リモートから取得 [#a6b8cdcb] -[[【Git】リモートブランチをローカルにチェックアウトしようとするとエラーになる場合の対処法:https://reasonable-code.com/git-remote-checkout-error/]] -[[Git リモートのブランチが見えない:https://www.rough-and-cheap.jp/linux/git-remote-branch-not-show/]] -リモートブランチから最新情報を取得する $ git fetch --prune -リモートブランチの一覧を確認する $ git branch -r -リモートブランチの develop をローカルにチェックアウトする $ git checkout -b develop origin/develop *リポジトリの整理 [#d788a9f8] **追跡されていないファイルの確認 [#h7cad074] -[[Git の管理対象外のファイルのみ表示する方法:https://gotohayato.com/content/510/]] $ git ls-files --others --exclude-standard -これで表示されるファイルは削除しても Git は無視してくれる **git clean [#j867c8fe] -[[untracked fileを削除するためにはgit cleanを使う:https://qiita.com/tmyn470/items/c8359e4ec92d1f462bdf]] -[[意外と知らない? git clean のオプションについて調べた:https://iucstscui.hatenablog.com/entry/2019/07/25/080000]] -[[git clean のオプションについてのまとめ:https://gotohayato.com/content/104/]]