(Legacy) Feb 20, 2023 1 min read git / linux Git Snippet Git Snippet# move branch to another commit (not recommand)# git branch --force <branch name> <commit id>plaintext list changed filename# git diff --name-only HEADplaintext ref: stackoverflow ↗