Skip to content

Instantly share code, notes, and snippets.

View alexandr-san4ez's full-sized avatar
🧑‍💻

Alexandr K. alexandr-san4ez

🧑‍💻
View GitHub Profile

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@alexandr-san4ez
alexandr-san4ez / fix-git.sh
Created November 30, 2016 18:09 — forked from artzub/fix-eol.sh
List of tips on all cases of life
#!/bin/sh
git config --global alias.co checkout
git config --global alias.cb "checkout -b"
git config --global alias.chm "checkout master"
git config --global alias.st status
git config --global alias.ai "add -i"
git config --global alias.pofm "push origin +master"
git config --global alias.po "push origin"
git config --global alias.gg 'log --oneline --abbrev-commit --all --graph --decorate --color'
git config --global alias.ggs 'log --color --date-order --graph --oneline --decorate --simplify-by-decoration --all'