Skip to content

Instantly share code, notes, and snippets.

View mstuttgart's full-sized avatar
🏠
Working from home

Michell Stuttgart mstuttgart

🏠
Working from home
View GitHub Profile
@mstuttgart
mstuttgart / tutorial.md
Last active July 13, 2024 12:38
[Bloquiar edição de arquivo] Bloqueia a edição de arquivo via senha #linux

Para bloquear um arquivo:

chattr +i arquivo

Para bloquear um diretório:

chattr +i diretorio/

Para liberar um arquivo:

@mstuttgart
mstuttgart / git-tag-delete-local-and-remote.sh
Last active February 6, 2023 17:44 — forked from mobilemind/git-tag-delete-local-and-remote.sh
[How to delete a git tag] How to delete a git tag locally and remote #git
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName