Skip to content

Instantly share code, notes, and snippets.

@donchan922
Last active October 14, 2018 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donchan922/ff29634239dfedf5d4fa2c75d4439d5a to your computer and use it in GitHub Desktop.
Save donchan922/ff29634239dfedf5d4fa2c75d4439d5a to your computer and use it in GitHub Desktop.
$ cd github-flow-practice # リポジトリがあるディレクトリに移動する
$ git branch # 現在のブランチを確認する
* master
$ git checkout -b mod-readme # ブランチを作成&移動する
Switched to a new branch 'mod-readme'
github-flow-practice $ git branch
master
* mod-readme
$ echo "Hello World" > README.md # README.mdを編集する
$ git add README.md # 変更をaddする
$ git commit -m "modify README.md" # 変更をcommitする
$ git push origin mod-readme # リモートリポジトリのmod-readmeブランチにpushする
To https://github.com/donchan922/github-flow-practice.git
* [new branch] mod-readme -> mod-readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment