git reset –hard # Revert uncommitted changes in index
git clean -fxd # Remove newly created files that not in index
git reset; git checkout .; git reset --hard HEAD; git clean -fdx;
git fetch --all; git fetch --all --tags; git pull;
git pull --recurse-submodules
use "git restore <file>..." to discard changes in working directory
use "git restore --staged <file>..." to unstage
Code Example |
---|
Shell :: linux count lines csv files |
:: |
:: how to install uvicorn |
:: linux dig command all dns records |
:: find ubuntu usb port tty |
:: |
Shell :: |
Shell :: |
Shell :: |
Shell :: |
Shell :: gitkraken stuck on opening repo |
:: npm install tough-cookie |
:: rsync exclude empty directories |
:: remove file from repo |
:: magento 2.4 install command line |
:: |
Shell :: ionic icon dimensions |
Shell :: |
:: how to remove one file from git history |
Shell :: curl trust self signed certificate |
Shell :: |
:: git show whole file at commit |
:: |
Shell :: github start |
Shell :: folder open command in linux |
:: remove .idea from git |
Shell :: ghost in the shell full movie |
:: yum install redis cli |
Shell :: |
:: bash shell for windows |