Useful Git snippets Post date October 31, 2018 Post categories In EN, TIL – Today I learned, Web development Git snippets cheatsheet # Git apply diff pbpaste | git apply # Nice Git log with tags git log --oneline --decorate # Log after specific date git log --after="2018-09-27 10:00" # Search files with grep git ls-files | grep png # Clean untracked files and directories git clean -dfx output # Safer `git push --force` git push --force-with-lease # Ignore local changes of tracked file git update-index --assume-unchanged my_file # Track changes again git update-index --no-assume-unchanged my_file # List all "assume-unchanged" files from current directory git ls-files -v | grep -E "^[a-z]" git ls-files -v | grep '^h' # Empty commit git commit --allow-empty -m "Trigger build" NewsletterLevel up your skills with useful web development & UX tips via e-mail. E-mail address Name (optional) Send me updates about DamianWajer.com articles, products, and services. Privacy Policy Tags Git Post navigation←Previous post:Mobile first & progressive enhancement [PL] →Next post:Dostępność gier – „nie trzeba wiele” [PL] CommentsIf you have any thoughts, please contact me on LinkedIn or see the contact page for more options.
Comments
If you have any thoughts, please contact me on LinkedIn or see the contact page for more options.