PSGitDotfiles

PowerShell module for managing dotfiles with Git

MIT License

Stars
8

PSGitDotfiles

A simple Git-based dotfiles approach.

What is it?

This approach 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.

Install-Module -Name PSGitDotfiles

Starting from scratch

# 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.cson

Invoke-GitDotfiles commit -m 'adding first files'
Invoke-GitDotfiles push -u origin master

Copying to another computer

Install-GitDotfiles -Uri 'https://github.com/username/dotfiles.git'

Removing the repo

Uninstall-GitDotfiles
Badges
Extracted from project README
PowerShell Gallery