Skip to content

Instantly share code, notes, and snippets.

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:

  • Commit the tracked files

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

  • Push to repo


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.