mirror of
https://github.com/cheat/cheat.git
synced 2024-11-16 17:08:29 +01:00
Merge branch 'master' of https://github.com/ozdemircili/cheat into ozdemircili-master
* 'master' of https://github.com/ozdemircili/cheat: Added git cheats Added mount cheatsheet
This commit is contained in:
commit
9e8294b566
2 changed files with 14 additions and 0 deletions
|
@ -16,3 +16,12 @@ git push origin master
|
||||||
|
|
||||||
# To push to a specified repository:
|
# To push to a specified repository:
|
||||||
git push git@github.com:username/project.git
|
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)
|
||||||
|
|
||||||
|
|
5
cheatsheets/mount
Normal file
5
cheatsheets/mount
Normal file
|
@ -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
|
Loading…
Reference in a new issue