Skip to content

Instantly share code, notes, and snippets.

View lbrealdev's full-sized avatar
🏠
Selassie is the almighty !

akae lbrealdev

🏠
Selassie is the almighty !
  • High Places Of Anu
View GitHub Profile
@lbrealdev
lbrealdev / desfazendo-push.md
Created March 30, 2020 09:39 — forked from davidalves1/desfazendo-push.md
Desfazendo um git push

Desfazendo um git push

Não é possível desfazer um push diretamente, como é feito com o commit utilizando o comando $ git reset --soft|mixed|hard hash-do-penultimo-commit

Para desfazer um push são necessários 3 passos:

  1. Utilizar o comando $ git reset --mixed hash-do-penultimo-commit e em seguida utilizar o comando $ git stash
  2. Utilizar o comando $ git revert hash-do-ultimo-commit
  3. Utilizar o comando $ git stash apply
@lbrealdev
lbrealdev / terraform-ssh-remote-exec.tf
Created February 21, 2020 00:24 — forked from toshimaru/terraform-ssh-remote-exec.tf
How to connect to server via SSH and use remote-exec provisioner.
resource "digitalocean_droplet" "web" {
image = "ubuntu-16-04-x64"
name = "web-1"
region = "sgp1"
size = "512mb"
ssh_keys = [12345]
connection {
type = "ssh"
user = "root"