0
0

More than 3 years have passed since last update.

超個人的Gitコマンドメモ(備忘録)

Last updated at Posted at 2021-02-15

よく使うgitコマンド

ブランチを確認する

git branch

「AAA」というブランチを作成する

git branch AAA
※作成だけで切り替えはしないため注意

ブランチを確認する(できたか)

git branch
⇒出来ていたらこんな感じになる。
 AAA
* master

ブランチを切り替える

git checkout AAA

念のためgit branchするとこうなる。↓
* AAA
 master

コミットした後

masterブランチへ移動

git checkout master

git pullでmasterを最新に

git pull origin master

開発用ブランチへ移動

git checkout BBB

mergeコマンドでmaserの内容を取り込む

git merge origin master
⇒「BBB」に最新にしたばっかの「master」ブランチ情報を取り込む

0
0
1

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