[Version Control System] Git Summary

2025. 1. 21. 16:22·Background/Development

 

좋은 강의를 발견해서 git 사용법에 대해서 요약했습니다. 

 

Commit

single commit same topic

partial staging : git add -p => [y/n] is enough
good commit messages: constist of subject and body

 

Branching strategies

Long-Running branches -> master node
Short lived branches -> features, bug fixes, refactor, experiments.

 

Pull request

purpose: communicating about and reviewing code
fork first original and make branch and make changes then, open pull reqeust
$ git branch test && git checkout test; ....
$ git push --set-upstream origin test
test is branch name

 

Merge confilcts

When conflicts occur?
When integrating commits from different sources
git merge, git rebase, git pull, git cherry-pick, git stash apply
More specifically, when contradictory changes happen..
$ git merge develop => CONFLICT!!
$ git status => you can see unmerged parts.
How to solve the merge CONFILT?
simply clean up the file
method 1) $ git merge --abort

 

Merge vs Rebase

[1] Merge: common ancestor, last commit on branch-A, last commit on branch-B
[1.1] 3 way merge - git merge branch --no-ff
[1.2] fast forward [default] - git merge branch -ff
purpose of merge commit: connecting two branches each other

 


[2] Rebase
[2.1] git rebase branch
[2.2] CONFICTS?
method 1) git rebase --abort
method 2) modification -> git add -> git rebase --continue

Usefule command
git reset: unstaging, remove commit ( e.g., git reset --hard [hash], git reset --soft [hash]

 

 

https://youtu.be/Uszj_k0DGsg?si=0-A7_nmfNWrgpPz1

 

저작자표시 비영리 변경금지 (새창열림)

'Background > Development' 카테고리의 다른 글

[Network] Host Ordering and Network Ordering  (0) 2026.05.16
SVF Internals  (0) 2026.01.06
OOP 다형성  (0) 2025.02.08
[Compiler] How to build LLVM  (0) 2025.01.21
'Background/Development' 카테고리의 다른 글
  • [Network] Host Ordering and Network Ordering
  • SVF Internals
  • OOP 다형성
  • [Compiler] How to build LLVM
zeroone-kr
zeroone-kr
  • zeroone-kr
    What is the target?
    zeroone-kr
  • 공지사항

    • 게시된 정보를 악용하여 발생하는 모든 책임은 악용한 사용자⋯
  • 전체
    오늘
    어제
    • 분류 전체보기 (38)
      • Security Engineering (4)
        • RedTeam (7)
        • Web, Mobile Security (7)
        • System Security (4)
        • Embedded Security (0)
      • Security Research (4)
        • Fuzzing (1)
        • Program analysis (0)
        • Embedded Security (3)
        • Artificial Intelligence (0)
      • Background (0)
        • Development (5)
        • Algorithm (2)
        • SQL (0)
      • Book (1)
      • CTF Writeup (3)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • About Me
    • emfp (study member)
    • 학식
  • 인기 글

  • 태그

    srop
    Static Analysis
    CTF
    HardwareHacking
    codeql
    byteordering
    WebHacking
    Embedded
    Greedy
    llvm
    rehosting
    angr
    Fuzzing
    SVF
    sysprog
    Command Injection
    wanictf
    EmbeddedHacknig
    burp
    VCS
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
zeroone-kr
[Version Control System] Git Summary
상단으로

티스토리툴바