Skip to content

Instantly share code, notes, and snippets.

@lucasbuetto
lucasbuetto / git-local-clear-and-update.md
Last active June 4, 2020 14:46
Git local clear and update

Limpeza e atualização do histórico do git

IMPORTANTE! Antes de executar essas ações, garanta que seu trabalho já tenha sido enviado para o servidor.

Remove a pasta .git

  • rm -rf .git

Reinicia o git

  • git init
@lucasbuetto
lucasbuetto / Update-branch.md
Created January 12, 2020 16:44 — forked from santisbon/Update-branch.md
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

/*
* Mixin: Material Shadow
* By: Lucas Buetto De Angelis
* Url: https://gist.github.com/lucasbuetto/19532920b36e70a52f9dba62d8838985 (provisory)
*/
@mixin materialShadow($level, $type) {
$black: #000000;
@if $type == "text" {
@if $level == 1 {
text-shadow: 0 1px 3px rgba($black, 0.12), 0 1px 2px rgba($black, 0.24);
@lucasbuetto
lucasbuetto / .htaccess
Created June 28, 2018 20:51
.htaccess for publish Angular 2x on Apache in folder after domain
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /foldername/index.html [L]
</IfModule>
@lucasbuetto
lucasbuetto / .htaccess
Created June 28, 2018 20:46
.htaccess for publish Angular 2x on Apache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>