0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ブランチの作成、一覧の表示

Last updated at Posted at 2023-06-21

ファイルを作成して、ステージする

*********@mbp SportsFest % vim program.txt
*********@mbp SportsFest % git add program.txt
春の大運動会

* 開会式
* 閉会式

コミットする

********@mbp SportsFest % git commit -m 'プログラム作成開始'
[master (root-commit) c4e4ddf] プログラム作成開始
 1 file changed, 5 insertions(+)
 create mode 100644 program.txt

現在あるブランチの一覧

********@mbp SportsFest % git branch
* master

ファイルの内容を編集

********@mbp SportsFest % vim program.txt
春の大運動会

* 開会式
* 玉入れ
* 大玉転がし
* 閉会式

ステージして、コミット

********@mbp SportsFest % git add -u
********@mbp SportsFest % git commit -m '玉関係の競技を加えた'
[master 2d98513] 玉関係の競技を加えた
 1 file changed, 2 insertions(+)

新たなブランチを作成、ブランチの一覧を表示

********@mbp SportsFest % git branch proc
********@mbp SportsFest % git branch
* master
  proc
********@mbp SportsFest % git branch -v
* master 2d98513 玉関係の競技を加えた
  proc   2d98513 玉関係の競技を加えた

感想

  • ソースツリーのGUIでコミットをしていたが、CUIでコミットをした。慣れていなかったことをした。
  • ブランチの作成、一覧の表示。
  • 久々にVimを使った。これからまだまだ。

出典

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?