Skip to content

Instantly share code, notes, and snippets.

View armenio's full-sized avatar
🎯
Focusing

Rafael Armênio armenio

🎯
Focusing
  • São Paulo / Curitiba - Brasil
View GitHub Profile
@armenio
armenio / git-update-fork.sh
Created August 20, 2020 16:22 — forked from rdeavila/git-update-fork.sh
Git: como atualizar um fork com as mudanças do original?
#!/bin/bash
# Adicione um novo remote; pode chamá-lo de "upstream":
git remote add upstream https://github.com/usuario/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream
@armenio
armenio / User.php
Created August 10, 2021 13:24 — forked from Ocramius/User.php
Doctrine 2 ManyToMany - the correct way
<?php
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity()
* @ORM\Table(name="user")
*/
class User