LoginSignup
0
0

More than 3 years have passed since last update.

Git補完 ~その1~

Posted at

Gitを使う際に地味に知っておくと良いコマンド

エイリアスをつける

alias
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
git config --global alias.co checkout
#この様にエイリアスを設定しておくとコマンドを効率よく打つことができる

※もし、--globalをつけないと現在のプロジェクトに対してのみconfigファイルに設定される

Gitで管理したくない情報の管理について

gitでバージョン管理したくないファイルを管理する方法
バージョン管理したくないファイルとは
例:パスワードやサーバ情報、キャッシュなど自動生成されるファイル
.gitigonreファイルに書く

index.html
#指定したファイルを除外したい時

/root.html
#ルートディレクトリを指定したい時

dir/
#ディレクトリ以下を除外したい時

//.css など
#/以外の文字列にマッチさせる場合
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