Several-git-commands

原文转载自 「GIT95.COM」 ( https://git95.com/post/several-git-commands/ ) By git95.com

预计阅读时间 0 分钟(共 0 个字, 0 张图片, 0 个链接)

Everyday Git in twenty commands or so 1 git help everyday Show helpful guides that come with Git 1 git help -g Search change by content 1 git log -S '<a term in the source>' Show changes over time for specific file 1 git log -p <file_name> Remove sensitive data from history, after a push 1 git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch <path-to-your-file>' --prune-empty --tag-name-filter cat -- --all && git push origin --force --all Sync with remote, overwrite local changes 1 git fetch origin && git reset --hard origin/master && git clean -f -d
more_vert