LoginSignup
1
0

More than 5 years have passed since last update.

Gitで最初に覚えておくと便利な内容

Last updated at Posted at 2018-07-24

git入門時の備忘録。ちなみにgitの開発者はlinusと日本人のお方。しゅごい。

基本的な操作(GUI、CUIどちらでも)

git init
git checkout

git add
git commit
git push

git clone
git pull (= git fetch & git merge)

開発を始めたら下記コマンドもよく使う。

git rebase
git cherry-pick

GUIを使うのが分かりやすくておすすめ。
Source Treeとか。
Rebaseの処理は、GitUPが使いやすいように感じる。

".gitignore"というファイルの役割

コンパイルされてできたもの(.class)ファイルなどは無視する。

コンフリクトの際の処理

マージツールを使うと楽だがなんだかんだ手で修正するのが早い気もしている。

IntelliJでも、右クリックから Git->Resolve Conflictsみたいな感じでマージツール起動できる

sshkeyの登録

httpsを使う場合、毎回パスワード入力するの面倒なので、sshを使うと楽。

ブランチの役割とかコミットの整理とか

Git Flow, GitHub Flow

良記事

1
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
1
0