LoginSignup
3
3

More than 5 years have passed since last update.

GitHubのWikiを始める小さなメモ(sshでgit push)

Posted at

手順

1 First Page作成
Wikiタブで「Create the first page」を押下し、保存、作成

ScreenClip.png

2 git clone
以下の例ではHTTPSでclone。あとでoriginを書き換える

$ git clone https://github.com/[user]/[RepoName].wiki.git

※sshでcloneしても可

$ git@github.com:${ユーザー名}/${リポジトリ名}.wiki.git

3 編集

$ cd [repoName].wiki/
$ vim Home.md

4 PUSH

$ git add Home.md
$ git status
$ git commit -m "Update"
$ git remote -v
$ git remote set-url origin git@github.com:${ユーザー名}/${リポジトリ名}.wiki.git
$ git push origin master

参考

【GitHub】GitHubのWikiを書く | AdMax Tech Blog http://tech.admax.ninja/2014/10/08/how-to-write-wiki-of-github/

GitHubにSSHでgit pushする方法 - 毎日Learning http://yoshiyoshifujii.hatenablog.com/entry/2014/08/12/230144

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3