{"id":27450184,"url":"https://github.com/jamesallman/powershell-gitaliases","last_synced_at":"2026-05-05T21:32:13.899Z","repository":{"id":286828660,"uuid":"961658684","full_name":"jamesallman/PowerShell-GitAliases","owner":"jamesallman","description":"PowerShell implementation of zsh-style Git aliases for Windows users. Complete collection of Git shortcuts that streamline common Git operations in PowerShell.","archived":false,"fork":false,"pushed_at":"2025-04-08T14:38:13.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T09:13:59.645Z","etag":null,"topics":["aliases","command-line","developer-tools","git","powershell","productivity","windows"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamesallman.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-07T00:33:01.000Z","updated_at":"2025-04-08T14:38:16.000Z","dependencies_parsed_at":"2025-04-08T15:42:11.123Z","dependency_job_id":"9cfef07c-1024-4f4d-a691-6670125ea2b8","html_url":"https://github.com/jamesallman/PowerShell-GitAliases","commit_stats":null,"previous_names":["jamesallman/powershell-gitaliases"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesallman%2FPowerShell-GitAliases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesallman%2FPowerShell-GitAliases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesallman%2FPowerShell-GitAliases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesallman%2FPowerShell-GitAliases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesallman","download_url":"https://codeload.github.com/jamesallman/PowerShell-GitAliases/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249040141,"owners_count":21202826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aliases","command-line","developer-tools","git","powershell","productivity","windows"],"created_at":"2025-04-15T09:14:12.424Z","updated_at":"2026-05-05T21:32:13.832Z","avatar_url":"https://github.com/jamesallman.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerShell-Git-Aliases\n\nPowerShell implementation of zsh-style Git aliases for Windows users. Complete collection of Git shortcuts that streamline common Git operations in PowerShell.\n\n## Overview\n\nThis repository contains a PowerShell script (`Install-GitAliases.ps1`) that configures your PowerShell profile with Git aliases similar to those available in zsh/oh-my-zsh. If you're familiar with Git aliases in zsh and want the same functionality in PowerShell, this script sets up everything for you with a single command.\n\n## Features\n\n- 150+ Git aliases ported from zsh\n- Helper functions for branch detection\n- Proper PowerShell syntax and parameter handling\n- Easy installation process\n- Familiar commands for users switching between zsh and PowerShell\n\n## Prerequisites\n\n- Windows with PowerShell 5.1+ or PowerShell Core 6.0+\n- Git for Windows installed and available in PATH\n\n## Installation\n\n1. Clone or download this repository\n2. Open PowerShell\n3. Navigate to the repository folder\n4. Run the script:\n\n```powershell\n.\\Install-GitAliases.ps1\n```\n\nThe script will:\n- Check if your PowerShell profile exists and create it if needed\n- Add the Git aliases and helper functions to your profile\n- Offer to load the aliases in the current session\n- Show example commands to get you started\n\n## Common Aliases\n\nHere are some of the most commonly used Git aliases included:\n\n| Alias | Git Command |\n|-------|------------|\n| g | git |\n| ga | git add |\n| gaa | git add --all |\n| gst | git status |\n| gco | git checkout |\n| gcb | git checkout -b |\n| gcm | git checkout main |\n| gcd | git checkout develop |\n| gl | git pull |\n| gp | git push |\n| gpsup | git push --set-upstream origin $(git_current_branch) |\n| gcmsg | git commit --message |\n| gd | git diff |\n| gf | git fetch |\n| gfa | git fetch --all --tags --prune |\n| glog | git log --oneline --decorate --graph |\n| grh | git reset |\n| grhh | git reset --hard |\n\nFor a complete list of all aliases with descriptions, see the [CHEATSHEET.md](CHEATSHEET.md).\n\n## Customization\n\nYou can modify your PowerShell profile directly to add, remove, or customize any of the Git aliases:\n\n```powershell\nnotepad $PROFILE\n```\n\n## Troubleshooting\n\n### Execution Policy\n\nIf you encounter execution policy errors:\n\n```powershell\nSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser\n```\n\n### Reloading Profile\n\nTo reload your profile after making changes:\n\n```powershell\n. $PROFILE\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- The oh-my-zsh project for the original Git aliases\n- The PowerShell community for best practices and guidance\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesallman%2Fpowershell-gitaliases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesallman%2Fpowershell-gitaliases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesallman%2Fpowershell-gitaliases/lists"}