LoginSignup
0
0

More than 3 years have passed since last update.

gitignore_grobalを使おう 他

Posted at

gitignore_grobalを使おう

参考:
https://qiita.com/elzup/items/4c92a2abdab56db3fb4e

.gitigonoreはプロジェクトで共有すべきものなので
個人的なもの、環境的なものは書くべきでない。

ブランチ移動したときに漏れたりもするので、
別に分けて書いておいたほうがいい。

git addする時、git statusするときにも聞いてくるので

参考その2:
https://github.com/github/gitignore

ここに一般的に.gitignore対象になるものが
まとめてある

git addしたあとやり直す時

git reset ファイル名でステージング解除できるので
基本その後編集して、ステージングをやり直す。

git addは基本、commit直前に

個人的に、git addはcommitする直前にやろう。
commit前の目視確認も、git diffでやりやすいし、

dotfilesを導入

ドットファイル増えたし、
これを機に入れてみました。

参考:
https://qiita.com/okamos/items/7f5461814e8ed8916870

kugyu10のdotfiles:
https://github.com/kugyu10/dotfiles

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