A little lookup for commands I use frequently
- Commit all edited files and add a message
git commit -a -m "My commit"
- Add all new files
git add .
| ################################## | |
| ### SCROLL DOWN FOR AN EXAMPLE ### | |
| ################################## | |
| module Enumerable | |
| # your each_with_position method | |
| def each_pos &block | |
| EachWithPosition.each(self, &block) | |
| end | |
| end |
| //To fetch a branch, you simply need to: | |
| git fetch origin | |
| //This will fetch all of the remote branches for you. With the remote branches | |
| //in hand, you now need to check out the branch you are interested in, giving | |
| //you a local working copy: | |
| git checkout -b test origin/test |
A little lookup for commands I use frequently
git commit -a -m "My commit"
git add .
Let's look at an example of how to launch a Kubernetes cluster from scratch on DigitalOcean, including kubeadm, an Nginx Ingress controller, and Letsencrypt certificates.
We'll be creating a four-node cluster (k8s-master, k8s-000...k8s-002), load balancer, and ssl certificates.