From dcfc6e60be6b890c0aa78d166a50c52682cd8c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20=C3=96zdemircili?= Date: Tue, 27 Aug 2013 10:53:49 +0200 Subject: [PATCH 1/2] Added mount cheatsheet --- cheatsheets/mount | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cheatsheets/mount diff --git a/cheatsheets/mount b/cheatsheets/mount new file mode 100644 index 0000000..cf8012e --- /dev/null +++ b/cheatsheets/mount @@ -0,0 +1,5 @@ +# To mount / partition as read-write in repair mode: +mount -o remount,rw / + +#To mount Usb disk as user writable: +mount -o uid=username,gid=usergroup /dev/sdx /mnt/xxx From 63bd132a9bedd8937768755bf03dff8c67b8cac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20=C3=96zdemircili?= Date: Tue, 27 Aug 2013 10:56:53 +0200 Subject: [PATCH 2/2] Added git cheats --- cheatsheets/git | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cheatsheets/git b/cheatsheets/git index 89e2e6b..0923d7d 100644 --- a/cheatsheets/git +++ b/cheatsheets/git @@ -16,3 +16,12 @@ git push origin master # To push to a specified repository: git push git@github.com:username/project.git + +# To sync a fork with the master repo: +git remote add upstream git@github.com:name/repo.git (Set a new repo) +git remote -v (Confirm new remote repo) +git fetch upstream (Get branches) +git branch -va (List local - remote branches) +git checkout master (Checpkout local master branch) +git merge upstream/master (Merge remote into local repo) +