Tbpgr Blog

元エンジニア 人事 tbpgr(てぃーびー) のブログ

GitHub | 新規リポジトリの作成手順

概要

新規リポジトリの作成手順

詳細

新規リポジトリの作成手順について

手順

GitHub手順
  • 画面右上のメニューの「+」アイコンをクリック
  • Repository nameに任意の名前を入力
  • Descriptionに任意の説明を入力
  • Public/Privateを選択
  • READMEを生成したい場合は、Initialize this repository with a READMEにチェック
  • .gitignoreのひな形が欲しい場合は、 Add .gitignore のリストから対象言語を選択
  • LICENSEファイルが欲しい場合は、Add a license のリストから対象のライセンスを選択
ローカル環境手順
git clone git@github.com:tbpgr/github_sample.git
  • ローカル編集。hoge.txtを追加してgitに追加
$ echo hoge > hoge.txt
$ git add -A
$ git commit -m "add hoge.txt"
  • 変更をpushします
$ git push

画像

新規リポジトリ作成画面

実際に作成されたリポジトリ

.gitignoreのひな形(Ruby選択時)

*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/test/tmp/
/test/version_tmp/
/tmp/

## Specific to RubyMotion:
.dat*
.repl_history
build/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalisation:
/.bundle/
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# Gemfile.lock
# .ruby-version
# .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

LICENSEファイル

The MIT License (MIT)

Copyright (c) 2014 tbpgr

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

README

github_sample
=============

github_sample_description