LoginSignup
0
1

More than 5 years have passed since last update.

git 設定事項リストと諸々のメモ

Last updated at Posted at 2017-09-29

description

たまに確認するための自分用メモ

新しいリポジトリを作成した時

when created new repository
about remote repository

git remote -v #check remote repository
git remote add origin REMOTE-REPO-URL

新しい環境にgitをインストールした時

when installed git on new environment

to configure

git config --global user.name "YOUR USER NAME"
git config --global user.email "YOUR@EMAIL"

#not needed because vim is usually default and the best / vimは至高
git config --global core.editor vim 

#change diff-tool to vimdiff
git config --global merge.tool vimdiff 
git config --global color.ui auto

# force --no-ff option when merge command is used / mergeの時、デフォルトで--no-ffが適用されるようにする
# -ff merge is only allowed for pull / ff関係にある時にpullのみ-ffを許可
git config --global --add merge.ff false
git config --global --add pull.ff only

to check configuration

git config --list
git config {key}
0
1
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
1