Skip to content

ajoberstar/PSGitDotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSGitDotfiles

PowerShell Gallery

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

About

PowerShell module for managing dotfiles with Git

Topics

Resources

License

Stars

Watchers

Forks