Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 1.71 KB

README.md

File metadata and controls

42 lines (35 loc) · 1.71 KB

fast_commit_push

커밋 메시지를 입력하고, stage, unstage로 현재 브랜치에 push하는 프로그램.

입니다만 안전한 커밋을 위해서 사용하지 않기로 했습니다..

download

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Ssuamje/my_git_tools/main/download.sh)"

사용 흐름 예시

Usage : gfc [-d : direct] <commit_string>
gfc는 git fast commit을 의미합니다.
-d 옵션을 통해, 현재 브랜치의 모든 작업사항을 <commit_string>을 커밋 메시지로 설정, push합니다.
Feb-20-2023 17-51-27

구체적인 사용법

-d 옵션을 넣지 않았다면, 다음과 같이 작동합니다.

1 - git status를 보여주고, 다음 단계(브랜치와 커밋 메시지 체크)로 넘어갑니다. Feb-20-2023 18-25-01

2 - 브랜치명과 현재 설정한 커밋 메시지를 확인하고, 변경할 수 있습니다(n 입력시). Feb-20-2023 18-25-02

3 - 우선적으로 "git add ."이 진행된 상태에서, 특정 파일을 unstage, stage 할 수 있습니다.
(y : yes / q : quit / [filename] : file unstage / a [filename] : add file to stage / c : undo / s : stop with commit). to_push

4 - 현재 작업 중인 브랜치로 스테이징한 사항을 커밋, 푸시합니다.