Skip to content

Instantly share code, notes, and snippets.

View eugene-usenko's full-sized avatar

eugene-usenko

View GitHub Profile
@eugene-usenko
eugene-usenko / Git.md
Last active June 23, 2024 19:10
Git tips

Git Tips

Tags

# add tag
git tag -a <tagname>
git push origin --tags

# list tags

Batch operation on files (Linux shell)

Batch svn operations:

svn status | grep "^\!" | awk -F"\!" '{print $2}' | while read f; do svn remove "$f"; done

Batch rename:

ls -1 | awk -F"!" '{print $1}' | while read f; do mv "$f" "$f.mp3"; done