Skip to content

Instantly share code, notes, and snippets.

View Reactiver's full-sized avatar
💡
Focusing

Dmitry Reactiver

💡
Focusing
View GitHub Profile
@Reactiver
Reactiver / git
Last active January 22, 2020 07:09
@ === HEAD
.git/ORIG_HEAD - save the last commit hash after merge
git branch BRANCH_NAME - create new branch
git branch BRANCH_NAME [COMMIT_HASH || EXIST_BRANCH] - create branch on commit with COMMIT_HASH or on exist branch
git branch -d BRANCH_NAME - delete branch
git branch -D BRANCH_NAME - delte branch(force)
git branch BRANCH_NAME COMMIT_HAST - reset deleted branch
git checkout COMMIT_HASH || BRANCH_NAME - checkout to this commit
@Reactiver
Reactiver / .vimrc
Last active January 3, 2020 14:41
vim configuration
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', {'on' : 'NERDTreeToogle'}
"colorscheme"
Plug 'morhetz/gruvbox'
call plug#end()
syntax on
colorscheme gruvbox