posh-git
GitVersion
Our great sponsors
posh-git | GitVersion | |
---|---|---|
17 | 12 | |
7,390 | 2,739 | |
- | 1.1% | |
0.0 | 9.7 | |
about 2 months ago | 6 days ago | |
PowerShell | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
posh-git
-
The bash book to rule them all
PowerShell: https://github.com/dahlbyk/posh-git/blob/master/src/GitPromp...
I believe this is clean Bash code and clean PowerShell code, and a script with a certain complexity. The functions inside the Bash script are documented using comments, the ones inside the PowerShell script are documented using "structured comments" (similar to javadoc/xmldoc/...). The parameters of the functions inside the PowerShell script also contain metadata which is used to provide completion on the commandline and similar functionality as the command line flags you demonstrated.
I just learned about 'getopts' in Bash, which you can actually also use to implement parameters to a Bash function. So what you are showing on a script level, can also be applied for functions. Did not know about that.
Still, not saying PowerShell is better than Bash in a Linux context, but it seems a lot of Linux users have a gut reaction to right out reject PowerShell. I think it does have some advantages for certain use cases, like more complex scripts, a cross-platform context, ... and of course, for someone with a .NET background it's easier to program more complex things with it.
- Stuck trying to execute a ps1 from my github repo
-
Kitsch-Prompt - golang based cross-platform shell prompt
Starship is pretty slick, but I feel like it's lacking in the customization department. It's easy to get it to display whatever you want, but hard to get it to show it exactly how you want it. If you want a "powerline" style prompt, that's basically impossible in Starship (although it's one of the most upvoted feature requests). Or using color gradients on the prompt - I have this 16.7M color display, why am I limited to flat colors? Finally I'm a big fan of posh git, and Starship doesn't have the ability to display anything like this natively. I used a custom command to run a modified version of posh-git for a long time, but it wasn't very fast.
-
What is the name of the cli tool that shows your current branch and changes you've made?
If you're on Windows, I've used posh-git in the past.
- Repos and PowerShell
- posh-git
- Adding Git autocomplete to PowerShell (Windows)
-
I just discovered aliases and I'm looking for more.
The Posh-Git module for showing Git repo details in the prompt.
-
How to increase productivity at work with a pretty Windows Terminal and smart Powerline tools
Install Posh-Git using this command:
-
A Deno-licious Workflow
an autocompletion tool for your terminal, e.g. oh-my-zsh for the zsh shell or posh-git for PowerShell
GitVersion
-
Golang RESTAPI boilerplate repository
Gitversion: It reads your commit history and generates a semver version out of it. Say you are compiling main branch and have a tag 1.0. Then, you squash 3 PRs. When you build this version, the new version number will be 1.0.3. You can configure it to be smarter about increasing major, minor, patch fields. I typically use prefix on the commit messages so that it generates versions correctly. See more at https://gitversion.net/docs/
-
Deploying Flutter applications to Google Play using Github actions
GitVersion is not available by default and needs to be installed beforehand if we want to use the features it offers. The action is available here.
-
How to automate the versioning of projects?
Check this out https://gitversion.net/docs/
-
Wrote a CLI application to increase .NET's projects version by Semver
At work we use https://gitversion.net/docs/ in our devops pipelines. Similaf to git-semver it generates a version based on what's published previously.
-
Managing Embedded SW revs?
Under Linux I use gitflow and gitversion. The former helps me with branch and tags management, the latter keep tracks of the semantic version in a semi-automatic fashion (given a branch/commit/tag it generate a semver automatically based on the repo log). Gitflow should be supported by GUI tools too, but I'm more a CLI guy.
-
How do you track which version of microservice is deployed on a stage at any given point
Iām not sure about in Bitbucket, but our pipeline has installed GitVersion which ups the build version based on SemVer. https://gitversion.net/docs/ We have a HealthCheck endpoint to return this version.
-
Automating release notes with conventional commits
I know that GitVersion exists, which I think can automatically calculate the version number for me. But it's not entirely clear to me that it will do this. Also it doesn't seem to have a nbgv set-version equivalent that will just create a tag based on the calculated version number.
-
Kuberentes CI/CD
Kind of like you mention though, I tend to still create a build script using gitversion then just have the GitHub Action kick off the script. I find value in being able to create artifacts on a developer machine so having a simple script to run makes that as painless as possible and when I last looked a year or so ago there wasn't a good way of running GitHub Actions on your development machine.
-
Constant merge conflicts on csproj files
Self promotion: I made Verlite for this purpose, tho something like GitVersion might be more suitable for your workflow.
- New to cloud CI infrastructure (Bitbucket Pipelines in my case). What is the proper way to make a release?
What are some alternatives?
oh-my-posh - The most customisable and low-latency cross platform/shell prompt renderer
semantic-release - :package::rocket: Fully automated version management and package publishing
Git Credential Manager for Windows
NUKE - š The AKEless Build System for C#/.NET
GitExtensions - Git Extensions is a standalone UI tool for managing git repositories. It also integrates with Windows Explorer and Microsoft Visual Studio (2015/2017/2019).
LibGit2Sharp - Git + .NET = ā¤
GitLink - Making .NET open source accessible!
Bonobo Git Server - Bonobo Git Server for Windows is a web application you can install on your IIS and easily manage and connect to your git repositories. Go to homepage for release and more info.