Skip to content

Instantly share code, notes, and snippets.

@cristopher-rodrigues
Last active February 7, 2017 02:21
Show Gist options
  • Save cristopher-rodrigues/71b5ab9e5d49f9bde90a to your computer and use it in GitHub Desktop.
Save cristopher-rodrigues/71b5ab9e5d49f9bde90a to your computer and use it in GitHub Desktop.
SUPER VERY BIG MASTER simple git deploy (FUCK CI/OPS =P)

Create repo to deploy your project

Create on bitbucket or github

Add your repo on local project

git remote add origin [email protected]

Init git on project path

cd /project/path && git init

Add your modifications/files on git stage to prepare commit

git add .

Commit your files on git stage and add message

git commit -m "My first deploy"

Push your commit to HEAD origin (DEFAULT BRANCH MASTER)

git push origin master

Login in your host And enter you password

ssh user@host

Create/Open build DIR on host

cd /var/www

Clone your project repo ON HOST

git clone [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment