LoginSignup
0
0

More than 5 years have passed since last update.

"git status"まとめ

Posted at

git status

最もよく多用して、最もバラエティに乏しいコマンド

  • git status
  • git status -s

オプション付きの方は簡易的な表示をしてくれます。

よく見るステータスは下記の通り

git status は、特によく使うので
エイリアスを設定して楽をしましょう。

エイリアスの設定方法

.bashrc

'g' 一文字で 'git' と認識させます。

$ echo 'alias g='git'' >> ~/.bashrc

.gitconfig

"[alias]" で git の各コマンドをオプション付きで設定しておきます。

$ vim ~/.gitconfig

終わり

基本は, g s ですが、リモートとのコミット差など、詳しい情報がほしい時は git statusを使ってます。

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