Skip to content

Instantly share code, notes, and snippets.

@roschacker
Created April 24, 2017 08:27
Show Gist options
  • Save roschacker/f863ab167ea5c1d3da06965baf7c6071 to your computer and use it in GitHub Desktop.
Save roschacker/f863ab167ea5c1d3da06965baf7c6071 to your computer and use it in GitHub Desktop.
manually run deploy with git fetch and checkout at production shell from remote BitBucket origin
cd /var/www/html/example.com/
sudo git fetch --all #Fetching origin
# remote: Counting objects: 6, done.
# remote: Compressing objects: 100% (6/6), done.
# remote: Total 6 (delta 3), reused 0 (delta 0)
# Unpacking objects: 100% (6/6), done.
# From bitbucket.org:username/example.com
# 41caa14..6ffbedd master -> origin/master
sudo git checkout --force origin/master
# Previous HEAD position was 41caa14... default.css added img path changed added bg.jpg
# HEAD is now at 6ffbedd... added bg_header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment