ak-cli
ak-cli copied to clipboard
:bookmark: Collection of useful cli commands
Add `-f` flag information in tail command https://github.com/arshadkazmi42/ak-cli/blob/master/commands/linux/tail-multiple-files.md
``` kubectl scale deployment --replicas=1 {SERVICE_NAME] -n {NAMESPACE} ```
Add branch rename command ``` git branch -m ```
``` docker run -p 127.0.0.1:3306:3306 --name=mysql-server -e MYSQL_ROOT_PASSWORD=root -d mysql ```
``` # save your working copy changes git diff > some.patch # re-apply it later git apply some.patch ```
``` git diff master..feature_branch ``` Ref: https://devconnected.com/how-to-compare-two-git-branches/
https://stackoverflow.com/a/30029351