Skip to content

Instantly share code, notes, and snippets.

@antoinefortin
Last active May 11, 2018 18:03
Show Gist options
  • Save antoinefortin/c931685ba05ea4dca250b9dfcdb701ef to your computer and use it in GitHub Desktop.
Save antoinefortin/c931685ba05ea4dca250b9dfcdb701ef to your computer and use it in GitHub Desktop.
[my-usefull-terminal]
# Delete files
find . -name "*.bak" -type f -delete
# List files
find . -name "*.bak" -type f
# Scpr local to remote repo
scp -r ./uploads [email protected]:/var/www/provencherroy.stage.havasmtl.ca/public/wp-content/
php ./stuff.php -h 127.0.0.1 -u root -p '' -n provencher-local -s "http://www.test.dev.com/provencherroy-main" -r "http://localhost:12345"
Exemple :
git checkout master
git pull origin master
git add --all
git commit -am "Description"
git push origin master
git checkout stage
git pull origin stage
git merge master
git push origin stage
git push stage stage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment