# Git Tips and Practice ### Delete all local branches except develop and master > git branch | grep -v "develop" | grep -v "master" | xargs git branch -D ### Revert a single file > git checkout [commit ID] -- path/to/file > git commit -m 'commit message'
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up