Skip to content

Instantly share code, notes, and snippets.

@acucchieri
acucchieri / bump-version.sh
Last active March 15, 2024 13:34
Bump git tag
#!/bin/bash
# The bump is performed only on the "main" or "master" branch unless a branch is specified with the -b argument
# Example :
# bump-version -b staging
# Check that HEAD is not detached
DETACHED=`git branch --show-current | wc -l`
if [ $DETACHED -eq 0 ]; then
@acucchieri
acucchieri / Document.php
Last active February 6, 2017 05:59
Symfony Doctrine Uplodable with relation
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* Document
*