Skip to content

Instantly share code, notes, and snippets.

@noelworden
Last active August 8, 2020 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noelworden/428d48de30a12ee0be5666b9ceec4d04 to your computer and use it in GitHub Desktop.
Save noelworden/428d48de30a12ee0be5666b9ceec4d04 to your computer and use it in GitHub Desktop.
#helpers

Moved and updating as README of the config file repo

  • Use entire Home Directory as Git Repo

    • cd ~
    • git init
  • Push all files to .gitignore

    • echo "*" > .gitignore
  • Check repo status, nothing should be tracked

    • git status
  • Start pulling files from .gitignore

    • git add -f .bashrc
    • git add -f .vimrc
  • Current file list:

    .atom/
    .bash_profle
    .bashrc
    .customgitmsg.txt
    .gitconfig
    .profile
    .tmux.conf
    .vimrc
    .vim
    .vscode
    com.googlecode.iterm2
    
  • Commit the tracked files

    • git commit -m "clever message here"
  • Create repo

  • Push to repo

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment