Skip to content

Instantly share code, notes, and snippets.

View guimaluf's full-sized avatar

Guilherme Maluf Balzana guimaluf

View GitHub Profile
# Object files
*.o
# Libraries
*.lib
*.a
# Shared objects (inc. Windows DLLs)
*.dll
*.so
@guimaluf
guimaluf / certgen
Last active June 13, 2017 18:30
Simple bash script for generating self-signed certificates with wildcard
#!/bin/bash
function usage {
echo "usage: $0 hostname"
exit 0
}
HOSTNAME=$1
[ -z ${HOSTNAME} ] && usage
@guimaluf
guimaluf / Git Workflow.md
Last active July 3, 2019 11:54
Simple beginner to master git workflow; Simple mastering git

git Workflow

git is a wonderful SCM, so is extremely important know about its right use. Spent some time reading the articles below contributes to a good code repository.

I know nothing about git

Start with github code school where you'll learn the basics commands for using git. If you want to understand in detail what each commands does read the official documentation

I'm used to git, but the only branch I know is master

Git Workflow Resumo

  • Toda alteração no git deve preceder de uma branch. Essa é sua branch privada (dev/master)$ git checkout -b dev/nova_feat dev/master ou (dev/master)$ git checkout -b dev/novo_bug dev/master
  • Na sua branch local dê vários commits para registrar seu trabalho e entender o que vc mesmo está fazendo (dev/nova_feat)$ git commit -am "linhas duplicadas no exemplo"
    • Se precisar mande sua branch para o servidor (dev/nova_feat)$ git push origin dev/nova_feat
  • Quando concluir a funcionalidade mescle ela na branch pública(master ou dev) e seja bem descritivo em um único commit. (dev/master)$ git merge --squash dev/nova_feat