GithubHelp home page GithubHelp logo

mrpandey01 / dotfiles-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from makeyourownmaker/dotfiles

0.0 0.0 0.0 24 KB

My dotfiles - managed as a bare git repository

Shell 11.78% R 33.31% Vim Script 54.91%

dotfiles-1's Introduction

Dotfiles

Instructions for the dotfiles repository at https://github.com/makeyourownmaker/dotfiles.

Introduction

The dotfiles in this repository are installed using a bare Git repository. This method does not use symlinks (like most other dotfile repositories).

After the installation, all the dotfiles will be physically present in your home folder, yet, you will still have them under full version control.

Installation

  • Clone the dotfiles repository to a bare Git repository into ~/.dotfiles
  • Move your existing dotfiles to ~/.dotfiles.backup
  • Check out all the dotfiles (and dot-directories) to your home directory

If you don't need your old dotfiles anymore, you can safely delete the ~/.dotfiles.backup directory.

Usage

Now all the dotfiles from the repository are installed in your home directory. However, as mentioned, you still have them under full version control via the bare Git repository in ~/.dotfiles.

To interact with the bare Git repository, you need the following alias:

alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'

Note: the .bash_aliases file in the dotfiles repository already contains this alias, so you're good to go.

With the dotfiles alias, you can now manage the dotfiles via the bare Git repository, just as you would with the git command:

Edited your dotfiles? No problem, commit and push the changes:

dotfiles add ~/.vimrc
dotfiles commit -m "Edit .vimrc"
dotfiles push

Pushed changes to the remote repository from another machine? Easy, just pull down the new version:

dotfiles pull

Want to know what's going on?

dotfiles status

Don't want to see untracked files:

dotfiles config status.showUntrackedFiles no

References

Using a bare Git repository is described here:

This README.md is a simplified version of https://gist.github.com/weibeld/869f723063811e5088708a9386bf52bf

dotfiles-1's People

Contributors

makeyourownmaker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.