Gentoo Portage Cheat Sheet
Daily maintenance
Update the Gentoo repository
Gentoo uses rsync to update the repository. Portage proves a front-end for this:
root ~ # emerge --sync
When the connections are restricted by administrators or firewalls, Gentoo repository can be updated by fetching the latest snapshot using:
root ~ # emerge-webrsync
emerge-webrsync also gu...
Git Cheat Sheet
Create new repository
Create a new repository on the command line
git init
git commit -m "first commit"
git remote add origin git@github.com:username/repo-name.git
git push -u origin master
Push an existing repository from the command line
git remote add origin git@github.com:username/repo-name.git
git push -u origin master
Branch
Basic ...