Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 1.01 KB

2019-Feb.md

File metadata and controls

20 lines (18 loc) · 1.01 KB

February 2019

  1. Kubernetes, KUBECONFIG variable

    • KUBECONFIG environment variable defines the config file which contains kubernetes data to access a cluster
    • Command kubectl config view is used to view the config
  2. Rename git branch

    • git branch -m <newname>
  3. Git cherry pick apply single commit from another branch (tag: cherry-pick, git)

    • git cherry-pick <commit>
  4. Buildkit specify platform for the node: moby/buildkit#550

  5. Docker Exec into swarm service (tags: ssh docker swarm service exec)

    • docker container exec $(docker ps --filter name={service name} -q) {command}
  6. Git push tag tags:

    • Git push origin tag_name
  7. To run WSL Bash in git-bash create a windows shortcut with "C:\Program Files\Git\usr\bin\mintty.exe" --exec /usr/bin/winpty "C:\Windows\System32\bash.exe" -c "cd ~; $SHELL --login -i"

  8. grep show other lines multiple lines

    • -A n Shown n number of lines before
    • -B n Shows n number of lines after
    • -C n == -A n -B n