Skip to content

KUR-creative/my-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git config --global core.quotepath off

git config --global alias.ca 'commit --amend -a'
git config --global alias.cm 'commit -m'
git config --global alias.cam 'commit -a -m'
git config --global alias.caam 'commit --amend -a -m'
git config --global alias.cp 'commit -p'
git config --global alias.cap 'commit -p --amend'

git config --global alias.lo 'log --oneline'
git config --global alias.ls '!git log --oneline --reverse; git status'
git config --global alias.ld '!git log -n 52 --oneline --reverse; git status; git diff'

git config --global alias.df 'diff'
git config --global alias.dc 'diff --cached'

git config --global alias.ch 'checkout'
git config --global alias.b 'branch'

git config --global alias.ls '!git log -n 52 --oneline --reverse; git status'  (LAB-MACHINE)
git log -(n) 보여주는 수 제한하기

git config --global core.autocrlf true
윈도에서는 CRLF 를 사용하므로 저장소에서 가져올 때 LF 를 CRLF 로 변경하고 저장소로 보낼 때는 CRLF 를 LF 로 변경하도록 true 로 설정한다.
(https://www.lesstif.com/pages/viewpage.action?pageId=20776404)

git config credential.helper store
git config --global credential.helper 'cache --timeout 7200'
https://stackoverflow.com/questions/6565357/git-push-requires-username-and-password

----
Git 브랜치 자동완성하기
https://medium.com/fusionqa/autocomplete-git-commands-and-branch-names-in-terminal-on-mac-os-x-4e0beac0388a
https://apple.stackexchange.com/questions/55875/git-auto-complete-for-branches-at-the-command-line

1.
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
2.
~/.bash_profile에 
if [ -f ~/.git-completion.bash ]; then
  . ~/.git-completion.bash
fi
3.
u+x ~/.git-completion.bash
4. restart all terminals or..
source ~/.bash_profile

----
xnote timer
autohotkey

----
My current git+hub flow

master / dev / issue-branches

0. dev 브랜치를 default 브랜치로 settings에서 설정하셈. 중요함.
1. [h]깃헙에서 이슈 생성
2. [l]로컬에서 브랜치b 생성
3. [l]로컬에서 문제 해결, 커밋
4. [l]로컬에서 테스트
5. [l->h]로컬에서 깃헙으로 브랜치 푸시
6. [h]깃헙에서 풀리퀘스트 생성(PR "코멘트"에서 Resovle/Fix #x 로 이슈 닫아야 함. 제목으로는 안 됨)
7. [h]풀리퀘 머지(내가 짠거면 rebase)
8. [l]dev로 브랜치b 머지
9. [l,h]터미널에서 로컬 브랜치, 리모트 브랜치 모두 삭제      git push origin -d <br-name> && git branch -d <br-name>

릴리즈하고 싶을 때 dev -> master로 머지.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published