Just a few pointers / steps / useful commands if you're new to git (ME) and want to maintain a repo of your tilde.town home directory. I may be wrong, might not be best practice or whatever (let me know!), but this works for me :}
git config user.name "username" to add your username (can be whatever), andgit config user.email "emailaddress" to add the E-mail address you use to log-in to Github.git init to initialise the repo/* which excludes everything, than I've told it exactly what I do want added. In my case !bin/(the ! makes it not ignore that directory / file), !public_html/, !publc_gopher/, !.gitignore, !README.md, etc.git add . adds everything in your work directory to the queue to go to the repo (called staging). Instead of using a . you can dod it for individual files or w/e.git commit -m "message" where message is a brief description of what you're changing.git remote add origin PASTEURLHERE to add the location.git push origin master will send off all your changes D:Some other useful things:
git status will print a list of things you've changed that have not yet been staged.&& to chain things together!This little script I made to remind myself of git things: git-reminder
#!/bin/bash
# Little reminders for mundane git commands
echo '>> git status'
echo ' Get list of files changed but not stages'
echo '>> git add .'
echo ' Stages everything, considering .gitignore'
echo ' Otherwise specifcy specific files / dirs'
echo '>> git commit -m "message"'
echo ' Commit message to add to pushed files'
echo '>> git push origin master'
echo ' Sends stuff on its way~'