-
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
-
Rename git branch
git branch -m <newname>
-
Git cherry pick apply single commit from another branch (tag: cherry-pick, git)
git cherry-pick <commit>
-
Buildkit specify platform for the node: moby/buildkit#550
-
Docker Exec into swarm service (tags: ssh docker swarm service exec)
docker container exec $(docker ps --filter name={service name} -q) {command}
-
Git push tag tags:
- Git push origin tag_name
-
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"
-
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