Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
  • 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
    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
You can’t perform that action at this time.