Skip to content

Instantly share code, notes, and snippets.

@ninja-webdev
Forked from jpalala/git_pull_script.sh.md
Created June 1, 2017 05:31
Show Gist options
  • Save ninja-webdev/e230a3af2b8d90a788c08d783199ab91 to your computer and use it in GitHub Desktop.
Save ninja-webdev/e230a3af2b8d90a788c08d783199ab91 to your computer and use it in GitHub Desktop.
create a simple deploy script by issuing git pull on the directory of the folder

#simple- cd to directory with the git initialized and pull origin develop or master echo "Running deployment" cd /var/www/html git pull origin develop echo "Repo updated with develop"`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment