#!/bin/bash pushd ~/Work for i in */.git; do ( echo $i; cd $i/..; git restore .; git clean -d -fx; git submodule foreach –recursive git restore .; git submodule foreach –recursive git clean -d -xf; ); done popd
|
||||||
|
#!/bin/bash pushd ~/Work for i in */.git; do ( echo $i; cd $i/..; git restore .; git clean -d -fx; git submodule foreach –recursive git restore .; git submodule foreach –recursive git clean -d -xf; ); done popd untracked 파일 제거
워킹트리 원복
* 참조 : reset 옵션 –soft : index 보존, 워킹트리 보존. 즉 모두 보존. –mixed : index 취소, 워킹트리만 보존 (기본 옵션) –hard : index 취소, 워킹트리 취소. 즉 모두 취소. |
||||||
|
Copyright © 2025 anydragon - All Rights Reserved Powered by WordPress & Atahualpa |
||||||