Contents tagged with git
-
Find an Azure Function's repository to clone it locally
Open the Azure Function. Open Function App Settings. Go to App Service Settings. The Git Clone URL is listed in the Overview. more
-
Git Daily Use
The locations: Working Directory <---> Staging <---> Local Repo <---> Remote Repo The most important verbs, in order of importance: git clone Bring down the remote repo to … more
-
ASP.NET Core to Azure from the Command Line with Git and VS Code.
Directory Structure Program.cs project.json web.config Program.cs using System.IO; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; public … more
-
Review a merge commit - how did the destination branch change?
After merging feature into master, answer the following questions. What files did feature modify? Look at the difference between master and the first parent of master (which in this case is the … more
-
Git: List branches that contain a word.
List branches that contain a word.\> git branch --list *some-word* my-branch-some-word-goes-here another-branch-some-word-9879 your-branch-some-word-rebased List branches that contain one … more
-
git blame - Suppress the filename and commit hash.
In this case, 105 is the length of the stuff we want to suppress. Tweak it as appropriate. (git blame some/file.cs)|%{$i=40;$_.Substring($i, $_.Length-$i)} more
-
How to revert a merge commit (that you pushed)
Bits: The merge-commit has two parents. The resultant revert-commit needs to know which parent is the mainline. This is why the --mainline option exists. After reverting a merge-commit, we cannot … more
-
Purge all files from every directory that has a specified prefix.
Run this command, replacing resized with your target directory prefix. git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch *\*\resized**\*' --prune-empty --tag-name-filter cat … more
-
Two Git Deployments to Azure: One for Static Files, Another for Full Builds
The goal is to have two deployments types. One for static files only. The other for a full build. Both will use KuduSync to copy files. A wonderful thing about KuduSync is that (if we use it as … more
-
Git Deploy to Azure Web App While Keeping Assemblies out of Version Control
Visual Studio - GitHub - Azure Web App How do we keep all assemblies (dll files) and other build results out of version control? Sure, we can do this... git rm --cached *.dll git rm --cached bin\* … more