보관함

azure ubuntu 설치 ver 2022

TimeZone Setting ls -l /etc/localtime cd /etc sudo rm -rf localtime sudo ln -s /usr/share/zoneinfo/Asia/Seoul localtime # time changed UTC -> KST date package update sudo apt update sudo apt upgrade do-release-upgrade sudo apt autoclean sudo apt autoremove Util Install & Setting # install Utils sudo apt install build-essential sudo apt install net-tools colordiff […]

git 특정 디렉토리 하에 있는 모든 폴더를 cleanup (submodule 까지)

#!/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

git 특정 디렉토리 하에 있는 모든 폴더를 pull (submodule 까지)

#!/bin/bash pushd ~/Work for i in */.git; do ( echo $i; cd $i/..; git pull; git submodule update –recursive; ); done popd