How to Combine multiple Commits in Git

The ability to combine multiple commits in Git is a huge plus. Combining commits requires “rebasing” which will essentially rewrite the project history appending commits onto the last commit (by default) in a different branch, or even to an earlier commit in the same branch. Rebasing can have some damaging effects, so be careful when

read more

How to Change Branch Name in Git (Local and Remote)

Changing a branch’s name in Git is a common task and fortunately very easy to do. Changing the name of a local branch: git -m newBranchName If you are not on the branch being renamed, you must specify this branch in the command: git -m oldBranchName newBranchName There is no direct way to rename a

read more

Git – How to Push Local Branch to Remote Repo (like GitHub)

Branching is a common task when working with Git. However new branches on your local machine aren’t automatically added to your remote repository. You will need to explicitly push your local branch to your remote repository. You can do this on the command line using:

Remote repositories often have the alias “origin”. So if

read more

Add a Shared Directory (Data Volume) to your Docker Container

Adding a data volume to your Docker container creates a shared directory between the container and your host file system. Data in volumes is readable and writeable to any number of containers. Data in volumes is designed to persist regardless of a containers life cycle, so deleting a container will not delete or change the

read more

Create a Docker group Linux

When working with Docker in Linux, you may find yourself using sudo before every Docker command. This is because the docker daemon binds to a Unix socket (which by default is owned by the root user) rather than a TCP port. Thus the reason for always needing to use sudo. A good way to avoid

read more