Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajoberstar/psgitdotfiles
PowerShell module for managing dotfiles with Git
https://github.com/ajoberstar/psgitdotfiles
dotfiles git powershell
Last synced: 27 days ago
JSON representation
PowerShell module for managing dotfiles with Git
- Host: GitHub
- URL: https://github.com/ajoberstar/psgitdotfiles
- Owner: ajoberstar
- License: mit
- Created: 2017-11-05T01:33:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-13T17:35:12.000Z (about 2 years ago)
- Last Synced: 2024-08-02T13:34:25.281Z (3 months ago)
- Topics: dotfiles, git, powershell
- Language: PowerShell
- Homepage:
- Size: 14.6 KB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# PSGitDotfiles
[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/PSGitDotfiles.svg)](https://www.powershellgallery.com/packages/PSGitDotfiles)
A simple Git-based dotfiles approach.
## What is it?
[This approach](https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/) is based on using a bare Git repository in your home directory and an alias to make it easy to work with that repository.
## How do I use it?
### Installation
Use PowershellGet to install from PowerShell Gallery.
```powershell
Install-Module -Name PSGitDotfiles
```### Starting from scratch
```powershell
# The Uri can be ommitted if you want to add the remote later (or don't plan to use one)
Initialize-GitDotfiles -Uri 'https://github.com/username/dotfiles.git'# You can use "dot" instead of "Invoke-GitDotfiles"
Invoke-GitDotfiles add .gitconfig
Invoke-GitDotfiles add .atom/config.csonInvoke-GitDotfiles commit -m 'adding first files'
Invoke-GitDotfiles push -u origin master
```### Copying to another computer
```powershell
Install-GitDotfiles -Uri 'https://github.com/username/dotfiles.git'
```### Removing the repo
```powershell
Uninstall-GitDotfiles
```