https://git-scm.com/docs/git-rebase に記載されている説明を、厳密な正確性よりも分かりやすさを優先して書き換えたものです。 git reabse の使い方に悩む方々の参考になればと思い公開します。
git rebase [--onto 接続先] 上流ブランチ [対象ブランチ]
- 対象ブランチ: 省略時はカレントのブランチが対象となる。
https://git-scm.com/docs/git-rebase に記載されている説明を、厳密な正確性よりも分かりやすさを優先して書き換えたものです。 git reabse の使い方に悩む方々の参考になればと思い公開します。
git rebase [--onto 接続先] 上流ブランチ [対象ブランチ]
| // wrapper functions to fix C4996 on VS2019 | |
| //#include <string.h> | |
| //#include <stdlib.h> | |
| //#include <stdio.h> | |
| //#include <wchar.h> | |
| //#include <tchar.h> | |
| template <typename T> T* malloc_array(rsize_t size) { | |
| return static_cast<T*>(malloc(sizeof(T) * size)); | |
| } |
| macro name | target | |
| ---------------|------------- | |
| _AFX | MFC classes | |
| __CSTRINGT_H__ | CString | |
| __AFXSTR_H__ | MFC's CString | |
| __ATLSTR_H__ | ATL's CString | |
| #include <import.h> |
| en_US 0x409 | |
| ja_JP 0x411 | |
| zh_CN 0x804 | |
| zh_TW 0x404 | |
| ko_KR 0x412 |
| git clone https://[email protected]/who/proj.git | |
| cd proj | |
| # set remote mirror URL | |
| git remote add --mirror=push mirror1 https://[email protected]/who/proj.git | |
| git remote add --mirror=push mirror2 https://[email protected]/who/proj.git | |
| # push to remote-mirrors | |
| git push mirror1 | |
| git push mirror2 | |
| # push to direct-URL | |
| git push --mirror https://[email protected]/who/proj.git |
| /** GitBuckect 4.3x's User-defined CSS にて gitbucket-print-ready.js と同等の印刷結果を得る */ | |
| /* コードブロックの背景色とボーダ設定が上書きされているので、さらに上書きする. */ | |
| div.markdown-body pre.prettyprint { | |
| border: 1px solid #888!important; | |
| background-color: #f5f5f5; | |
| } | |
| @media print { | |
| /* コードブロックのスクロールバーは印刷時には無意味なので、行折り返しに変更する */ | |
| div.markdown-body pre.prettyprint { |
| # fuzzy chdir for bash | |
| # USAGE: cdx <part-of-folder-names> | |
| # HOW TO INSTALL: append "source cdx.sh" to your ".bashrc" | |
| cdx() | |
| { | |
| for dir in $* $1* ../$1* ../../$1*; do | |
| if [ -d "$dir" ]; then | |
| pushd "$dir" | |
| return | |
| fi |
| set enc=utf-8 | |
| set fencs=ucs-bom,iso-2022-jp,euc-jp,sjis,utf-8 | |
| set fileformats=unix,dos,mac | |
| set laststatus=2 | |
| set statusline=%<%F%h%m%r\ [%Y][%{&ff}][%{&fenc!=''?&fenc:&enc}:0x\%02.6B]%=%l,%c%V\ %P | |
| " FROM <http://www.kawaz.jp/pukiwiki/?vim> | |
| " if fenc is iso-2022-jp and buffer is ascii only then change fenc as enc | |
| " if this failed, do :e ++enc=utf-8 | |
| if has('autocmd') |
*.xls diff=xdoc2txt
| @echo off | |
| for /D %%f in ("%1*" "..\%1*" "..\..\%1*") do if exist "%%f" chdir "%%f" & goto :EOF |