git 101

基本
 git checkout -b dev_branch_name origin/master
 作業する
 git pull origin/master (差分を取り込んでおく)
 [[git rebase]] master
 (if conflict happens, resolve it)
 git add conflict_resovled_file
 [[git rebase]] --continue
 (until resolve all conflicts, then)
 git add your_new_files
 git commit -m "message"
 git push (-f) (-u origin) dev_branch_name

その他、よくあるケース
 git checkout file_name (file_name のadd前の変更を戻す)
 [[git reset]] file_name (file_nameのadd後、commit前の変更を戻す)

タグ:

git
最終更新:2019年08月10日 13:54