Coder Social home page Coder Social logo

git-hooks's People

Contributors

rogarithm avatar

Watchers

 avatar

git-hooks's Issues

커밋 메시지에 작업하는 화면 정보 포함하기

커밋 메시지를 쓸 때 어떤 화면을 바꾸는/만드는 커밋인지 표시해놓으려고 화면 이름을 자주 적어놓는다.
나는 feature branch 기반으로 작업하니까, 커밋할 때 작업 중인 브랜치 이름을 기반으로 커밋 메시지에 작업 화면 정보를 포함해주면 써야 할 커밋 메시지도 간단해져서 좋을 것 같다.

만들려면

  • 처음에 브랜치에 맞는 화면 정보를 저장하는 건 스크립트 안 로직으로 작성
  • 화면 정보는 해시 타입으로, 키:값은 브랜치 이름:화면 정보 정도로
  • 화면 정보는 별도의 파일로 두고 변경할 때나 커밋 메시지 만들 때마다 접근하도록 구현
  • prepare-commit-msg 훅으로 연결해서 커밋할 때마다 실행

rebase 커밋 개수 편하게 설정하기

보통 다음과 같이 리베이스한다:
git rebase -i @~4

하지만 이미 remote에 올라가 있는 커밋을 포함할 경우 문제가 된다.

git rebase -i $(x origin/develop 3)
위와 같이 하면 origin/develop의 마지막 커밋 이후 세 커밋에 대해 리베이스하도록 할 수 있는 명령어를 구현하자.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.