Compare commits
5 commits
dev-1-gitc
...
main
Author | SHA1 | Date | |
---|---|---|---|
9ac736317a | |||
edd17a7628 | |||
ebc3f10d93 | |||
57ff5c0fb3 | |||
d5bad0e154 |
2 changed files with 137 additions and 7 deletions
43
.gitconfig
43
.gitconfig
|
@ -7,33 +7,62 @@
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
cg = config --global
|
cg = config --global
|
||||||
aliases = !git config --get-regexp alias | sed -re 's/alias\\.(\\S*)\\s(.*)$/\\1 = \\2/g'
|
|
||||||
ci = commit
|
|
||||||
co = checkout
|
co = checkout
|
||||||
st = status
|
st = status
|
||||||
lg = log --graph --date=relative --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset'
|
f = fetch
|
||||||
|
|
||||||
|
m = merge
|
||||||
|
ma = merge --abort
|
||||||
|
mc = merge --continue
|
||||||
|
|
||||||
|
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset' --abbrev-commit --decorate=full
|
||||||
|
aliases = !git config --get-regexp alias | sed -re 's/alias\\.(\\S*)\\s(.*)$/\\1 = \\2/g'
|
||||||
|
|
||||||
oops = commit --amend --no-edit
|
oops = commit --amend --no-edit
|
||||||
|
|
||||||
|
p = push
|
||||||
pfl = push --force-with-lease
|
pfl = push --force-with-lease
|
||||||
adda = add --a
|
|
||||||
|
rh = git reset --hard HEAD~1
|
||||||
|
rs = git reset --soft HEAD~1
|
||||||
uncommit = reset --soft HEAD~1
|
uncommit = reset --soft HEAD~1
|
||||||
untrack = rm --cache --
|
untrack = rm --cache --
|
||||||
|
unstage = reset --
|
||||||
|
|
||||||
rb = rebase
|
rb = rebase
|
||||||
rbc = rebase --continue
|
rbc = rebase --continue
|
||||||
rba = rebase --abort
|
rba = rebase --abort
|
||||||
rbi = rebase --interactive origin/main
|
rbi = rebase --interactive origin/main
|
||||||
|
|
||||||
|
adda = add --a
|
||||||
|
ci = commit
|
||||||
cim = commit -m
|
cim = commit -m
|
||||||
cima = commit -a -m
|
cima = commit -a -m
|
||||||
|
|
||||||
br = branch
|
br = branch
|
||||||
bra = branch -a
|
bra = branch -a
|
||||||
|
brd = branch -d
|
||||||
|
brdd = branch -D
|
||||||
|
|
||||||
[fetch]
|
cp = cherry-pick
|
||||||
prune = true
|
cpa = cherry-pick --abort
|
||||||
pruneTags = True
|
cpc = cherry-pick --continue
|
||||||
|
|
||||||
|
s = stash
|
||||||
|
sp = stash pop
|
||||||
|
sa = stash apply
|
||||||
|
sd = stash drop
|
||||||
all = true
|
all = true
|
||||||
|
|
||||||
[pull]
|
[pull]
|
||||||
rebase = true
|
rebase = true
|
||||||
[push]
|
[push]
|
||||||
|
# for git >= 2.37
|
||||||
autoSetupRemote = true
|
autoSetupRemote = true
|
||||||
|
# for git < 2.37
|
||||||
|
default = current
|
||||||
|
|
||||||
followTags = true
|
followTags = true
|
||||||
[commit]
|
[commit]
|
||||||
verbose = true
|
verbose = true
|
||||||
|
|
101
.vimrc
101
.vimrc
|
@ -1 +1,102 @@
|
||||||
|
" Disable compatibility with vi which can cause unexpected issues
|
||||||
set nocompatible
|
set nocompatible
|
||||||
|
|
||||||
|
" Enable type file detection. Vim will be able to try to detect the type of file in use
|
||||||
|
filetype on
|
||||||
|
" Enable plugins and load plugin for the detected file type
|
||||||
|
filetype plugin on
|
||||||
|
" Load an indent file for the detected file type
|
||||||
|
filetype indent on
|
||||||
|
" Turn syntax highlighting on
|
||||||
|
syntax on
|
||||||
|
" Auto indent
|
||||||
|
set ai
|
||||||
|
" Smart indent
|
||||||
|
set si
|
||||||
|
|
||||||
|
|
||||||
|
" Add numbers to each line on the left-hand side.
|
||||||
|
set number
|
||||||
|
" Highlight cursor line underneath the cursor horizontally
|
||||||
|
set cursorline
|
||||||
|
" Highlight cursor line underneath the cursor vertically
|
||||||
|
" set cursorcolumn
|
||||||
|
|
||||||
|
|
||||||
|
" Set shift width to 4 spaces
|
||||||
|
set shiftwidth=2
|
||||||
|
" Set tab width to 2 columns
|
||||||
|
set tabstop=2
|
||||||
|
" Use space characters instead of tabs
|
||||||
|
set expandtab
|
||||||
|
|
||||||
|
|
||||||
|
" While searching though a file incrementally highlight matching characters as you type
|
||||||
|
set incsearch
|
||||||
|
" Show the mode you are on the last line
|
||||||
|
set showmode
|
||||||
|
" Show matching words during a search
|
||||||
|
set showmatch
|
||||||
|
" Use highlighting when doing a search
|
||||||
|
set hlsearch
|
||||||
|
" Ignore case when searching
|
||||||
|
set ignorecase
|
||||||
|
" When searching try to be smart about cases
|
||||||
|
set smartcase
|
||||||
|
|
||||||
|
" For regular expressions turn magic on
|
||||||
|
set magic
|
||||||
|
|
||||||
|
" Set 7 lines to the cursor - when moving vertically using j/k
|
||||||
|
set so=7
|
||||||
|
|
||||||
|
" Use highlighting when doing a search
|
||||||
|
set hlsearch
|
||||||
|
" Make wildmenu behave like similar to Bash completion
|
||||||
|
set wildmode=list:longest
|
||||||
|
" There are certain files that we would never want to edit with Vim.
|
||||||
|
" Wildmenu will ignore files with these extensions.
|
||||||
|
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx,*/.git/*
|
||||||
|
|
||||||
|
" Configure backspace so it acts as it should act
|
||||||
|
set backspace=eol,start,indent
|
||||||
|
set whichwrap+=<,>,h,l
|
||||||
|
|
||||||
|
" Sets how many lines of history VIM has to remember
|
||||||
|
set history=500
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
" PLUGINS ---------------------------------------------------------------- {{{
|
||||||
|
|
||||||
|
" Plugin code goes here.
|
||||||
|
|
||||||
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
|
" MAPPINGS --------------------------------------------------------------- {{{
|
||||||
|
|
||||||
|
" Mappings code goes here.
|
||||||
|
|
||||||
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
|
" VIMSCRIPT -------------------------------------------------------------- {{{
|
||||||
|
|
||||||
|
" This will enable code folding.
|
||||||
|
" Use the marker method of folding.
|
||||||
|
augroup filetype_vim
|
||||||
|
autocmd!
|
||||||
|
autocmd FileType vim setlocal foldmethod=marker
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
" More Vimscripts code goes here.
|
||||||
|
|
||||||
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
|
" STATUS LINE ------------------------------------------------------------ {{{
|
||||||
|
|
||||||
|
" Status bar code goes here.
|
||||||
|
|
||||||
|
" }}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue