Skip to content

Instantly share code, notes, and snippets.

View matiasah's full-sized avatar

Matías Hermosilla matiasah

View GitHub Profile
@matiasah
matiasah / ssh-user.md
Last active January 30, 2021 02:31
Crear cuenta SSH con clave privada RSA
  1. Crear cuenta de usuario "pipeline":
sudo adduser --disabled-password **pipeline**
  1. Crear carpeta .ssh en usuario "pipeline":
sudo mkdir /home/**pipeline**/.ssh
@matiasah
matiasah / squash-pull-request.md
Last active January 30, 2021 02:35
Squash Pull Request

Reset the current branch to the commit just before the last 12:

git reset --hard HEAD~12

HEAD@{1} is where the branch was just before the previous command.
This command sets the state of the index to be as it would just
after a merge from that commit:

git merge --squash HEAD@{1}