Partial, half-baked, or otherwise incomplete work is inevitable in the lifespan of a developer. Fortunately, git offers a few ways out-of-the-box to manage temporary work you’re not quite ready to commit. First, a few definitions: Stash – a unit of temporarily uncommitted/staged changes Pop – apply a stash and delete the stash Apply – apply… Read more Git stash, pop, and apply in Visual Studio
Month: October 2019
Cloning Git Repositories in Visual Studio Team Explorer
There are endless code repositories out there, and you can access them with a simple URL. For example, a repo hosted on Github might look like: https://github.com/PowerShell/PowerShell.git Note the .git extension at the end. That URL is the location of a repository i.e. a bunch of code and history of commits/developers that have worked on… Read more Cloning Git Repositories in Visual Studio Team Explorer
Git branch on the command line
At some point, you’ll probably want to switch context within a project and work on something else. Git branches are a possible strategy. What happens when you have to fix a bug after you’ve branched, and you don’t want to step on your feature? In this article, we will discuss commands to: Create a branch… Read more Git branch on the command line
How to git on the command line
In this article, we’ll run through some simple scenarios that may apply to your work at some point. We will: Initialize (create) a new repository, Add a file, Commit our work This is, by no means, a comprehensive guide to git’ing on the command line. I’d encourage you to read the git documentation for a… Read more How to git on the command line
Using posh-git in PowerShell
Ever forgot the state of your git repo at the command line? Posh-git helps you remember!