Replace sensitive information before committing PowerShell scripts using Git Clean and Smudge Filters

The git filter option isn’t well documented, but its very useful for removing sensitive information you don’t want appearing in your public repo. This post provides an example of replacing the Azure TenantID and AppID with dummy values during the git commit process for a PowerShell script. ...

August 20, 2023 · 4 min · GD

GIT edge cases

Most of the time in GIT we are working at the file level. It is possible to get more granualar and work with hunks which are parts of a file e.g. a number of lines. ...

July 4, 2021 · 2 min · GD

GitHub - Contribute to a repo using Fork, Clone, Push and Pull Requests

GitHub hosts open source projects that have multiple contributors. Only a few maintainers have read-write access to the repository, so how do people contribute suggested changes? The answer is by copying the repo to their own GitHub account, making changes and submitting a pull request to the maintainers of the original project. This post explains the steps. ...

June 30, 2021 · 6 min · GD

GIT branches - merging, rebasing and squashing commits

This article focuses on common GIT actions that affect branches, such as merging, rebasing branches and squashing local commits. ...

June 27, 2021 · 10 min · GD

GIT storage - understanding the stash, working, index, repo

GIT commands move data between four areas of the object database. This article explores the four areas and the common commands that affect them. See the earlier post on How GIT stores information for information on the GIT object database. ...

June 24, 2021 · 9 min · GD