Skip to content

This repository contains my personal dotfiles. These dotfiles are managed using a bare Git repository.

Notifications You must be signed in to change notification settings

ViniciusNyp/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

This repository contains my personal dotfiles. These dotfiles are managed using a bare Git repository.

Installation

To install the dotfiles, follow these steps:

  1. Clone this repository to your local machine:

    git clone --bare https://github.com/ViniciusNyp/dotfiles $HOME/.dotfiles
  2. Define an alias for the dotfiles repository:

    alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
  3. Configure the dotfiles repository to not show untracked files:

    dotfiles config --local status.showUntrackedFiles no
  4. Checkout the dotfiles:

    dotfiles checkout

    If you encounter any errors, make sure your home directory is clean and try again.

  5. Set up the dotfiles repository to track the remote branch:

    dotfiles branch --set-upstream-to=origin/main main
  6. Pull the latest changes:

    dotfiles pull

Usage

To manage your dotfiles, use the dotfiles alias defined above. Here are some common commands:

  • Add a new dotfile:

    dotfiles add <file>
  • Add all already tracked dotfiles:

    dotfiles add -u
  • Commit changes:

    dotfiles commit -m "Commit message"
  • Push changes to the remote repository:

    dotfiles push
  • Pull changes from the remote repository:

    dotfiles pull

About

This repository contains my personal dotfiles. These dotfiles are managed using a bare Git repository.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published