Skip to content
Leonid Fedorenchik's Website
  • Books
Leonid Fedorenchik's Website

Category: Tooltips

git: permanently store https credentials

Posted 05/06/201705/06/2017 Leonid V. FedorenchikLeave a commentPosted in Tooltips

$ git config –global credential.helper store

git remote: change URL

Posted 30/09/201526/03/2017 Leonid V. FedorenchikLeave a commentPosted in Tooltips

$ git remote set-url <remote-name> <new-url> $ git remote set-url origin https://github.com/user/repo.git

git push renamed branch

Posted 28/09/201526/03/2017 Leonid V. FedorenchikLeave a commentPosted in Tooltips

Push local branch to remote with different name: $ git push <remote> <local_branch_name>:<remote_branch_name> $ git push remote1 branch1:dev/test1

git show diff of stash

Posted 26/09/201526/03/2017 Leonid V. FedorenchikLeave a commentPosted in Tooltips

$ git stash list -p

git undo last commit

Posted 22/09/201526/03/2017 Leonid V. FedorenchikLeave a commentPosted in Tooltips

Undo last local (not pushed) commit: $ git reset –soft HEAD~1

Disable automounting in GNOME

Posted 03/09/201526/03/2017 Leonid V. FedorenchikLeave a commentPosted in Tooltips

$ gsettings set org.gnome.desktop.media-handling automount-open false $ gsettings set org.gnome.desktop.media-handling automount false

grub GUI: Grub Customizer

Posted 24/06/201526/03/2017 Leonid V. FedorenchikLeave a commentPosted in Tooltips

Install: $ sudo add-apt-repository ppa:danielrichter2007/grub-customizer $ sudo apt-get update $ sudo apt-get install grub-customizer Run: $ grub-customizer

Enter grub bootloader menu

Posted 22/06/201526/03/2017 Leonid V. FedorenchikLeave a commentPosted in Tooltips

Press and hold [Shift] during computer boot untill grub menu shows up.

Start shell in chroot environment

Posted 20/06/201526/03/2017 Leonid V. FedorenchikLeave a commentPosted in Tooltips

$ sudo chroot /path/to/chroot/dir Example: $ sudo chroot /home/user/vm

sshfs mount with full root access

Posted 16/06/201526/03/2017 Leonid V. FedorenchikLeave a commentPosted in Tooltips

1. Enable root login in sshfs. 2. Mount: $ sudo sshfs -o allow_other,default_permissions root@remote_host:/ /mount/dir

Posts navigation

1 2 … 4 Next
Copyright 2015 © Leonid V. Fedorenchik