📜  git force sync with remote - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:25.664000             🧑  作者: Mango

代码示例1
#fetch last commit from remote
git fetch origin 
#pipe commands
&&
#force reset
git reset --hard origin/master
#clean repo from untraced file "NOT Recommended"
git clean -f -d