Skip to content

Instantly share code, notes, and snippets.

View SamTobias's full-sized avatar

Samuel Tobias SamTobias

  • Brazil
  • 00:44 (UTC -03:00)
View GitHub Profile
<pre>system('cat /var/www/acesso.txt')</pre>
@SamTobias
SamTobias / delete-merged-branches.sh
Created June 13, 2024 14:59
Git - Delete merged branches from remote
git branch -r --merged master | grep -Ev "(^\*|master|main|develop)" | sed 's/origin\///' | xargs -n 1 git push --delete origin
@SamTobias
SamTobias / flutter-package-publishing.md
Last active May 20, 2022 17:52
Flutter Alternate Package Publishing

Flutter Alternate Package Publishing

Introduction

The standard way of publishing a Flutter/Dart package is publishing it publicly on pub.dev, but what if you need to create a private package to reuse code in yours apps, or if a company wants to share common code between its proprietary apps?

TL;DR

  • Same product: Keep packages in the same repository
  • Company-wide: Use different Git repositories or pay for a private package repository server