0
0

Git CLIでの操作

Posted at

Git CLIでの操作

GUIを最近使用しており、コマンドを忘れてしまっていたので、備忘録

ブランチについて

  • ブランチを確認

    git branch
    
  • リモートのブランチも確認

    git branch -a
    
  • ブランチ作成

    git branch {$ブランチ名}
    
  • フェッチ

    git fetch
    
  • チェックアウト

    git checkout {$ブランチ名}
    
  • 新規ブランチをチェックアウト

    git checkout -b {$ブランチ名}
    
  • 新しいブランチをpush

    git push -u origin {$リモートブランチ名} 
    
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