-
-
Save bungasnail/78e42aa97be08fea8464f74015aaef2d to your computer and use it in GitHub Desktop.
test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aasdfasdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gistの使い方のメモ | |
Gistを使い始めて気がついた点をメモした。 Gistはこのようなメモや短いコードをバージョン管理しながら公開するのに便利。 | |
特にこのメモでは、画像を同一ディレクトリに置いて、 それGFMファイル内に挿入する方法を解説。 | |
このメモにはgitコマンドの使い方の解説はない。 このメモは随時更新される予定。 Tipsなどのコメントを乞う。 | |
gitコマンドで手もとにcloneできる | |
例えば git clone https://gist.github.com/9580883.git HowToGist もしくは git clone [email protected]:9580883.git HowToGist とすればHowToGistというディレクトリが作られ、 その中にHowToGist.mdなどいくつかのファイルがcloneされる。 | |
Gistのwebエディタ Ace は特に日本語の編集に難があるので、Gistの文章は手もとで編集してgit pushするのが便利である。 | |
1つのエントリーに複数のファイルを置くことができる | |
1つのエントリーには1つのディレクトリが割り当てられ、そこに複数のファイルを置くことができる。 複数のファイルの表示順序は ASCIIbetical order との こと。 | |
.gitignoreはローカルだけに置く | |
Gistに.gitignoreを置くと見せたいファイルより ASCIIbetical order で前にきてしまって、.gitignoreが前面に出てきてしまう。 Gist用の.gitignoreはローカルだけに置くことにする。 その場合.gitignoreの中に.gitignoreも書く。 例えば https://gist.github.com/t-nissie/9771048 のための.gitignoreはこんなかんじ: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment