Skip to content

Instantly share code, notes, and snippets.

@ngtuan96lc
Last active October 22, 2018 03:25
Show Gist options
  • Save ngtuan96lc/a0549e79b3528dbe8fa0eefdd724ddfe to your computer and use it in GitHub Desktop.
Save ngtuan96lc/a0549e79b3528dbe8fa0eefdd724ddfe to your computer and use it in GitHub Desktop.

Git Commands

git clone --branch <branch_name> git@github.com/<reponame> <folder>

Reset commit pushed to remote

git reset HEAD~1 --soft

//Update commit as wish after that commit

git push -f <remote_name> <branch_name>

MySql Commands

Import DB

zcat path/to/file.sql.gz | mysql -h <hostname> -u <username> -p <db_name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment