스택 생성 날짜 가져오기
언제 재고가 생성되었는지 알 수 있는 방법이 있습니까?
git stash list
스택만 나열됩니다.git stash show XXXXXX
에는 모든 파일 및 변경 사항이 표시되지만, 저장소 생성 날짜는 표시되지 않습니다.
시도:
git stash list --date=local
다음과 같은 내용이 인쇄됩니다.
stash@{Thu Mar 21 10:30:17 2013}: WIP on master: 2ffc05b Adding resource
를 사용하여 이 작업을 수행할 수 있습니다.예를 들어, 상대 시간이 포함된 스택 목록이 생성됩니다.
git stash list --pretty=format:"%C(red)%h%C(reset) - %C(dim yellow)(%C(bold magenta)%gd%C(dim yellow))%C(reset) %<(70,trunc)%s %C(green)(%cr) %C(bold blue)<%an>%C(reset)"
저는 이 세트를 가지고 있습니다.[alias]
내 섹션~/.gitconfig
파일, 단순한 파일에 바인딩할 수 있습니다.sl
명령:
[alias]
co = checkout
lg = log --graph --pretty=format:\"%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset\" --abbrev-commit
rl = reflog --pretty=format:\"%Cred%h%Creset %C(auto)%gd%Creset %C(auto)%gs%C(reset) %C(green)(%cr)%C(reset) %C(bold blue)<%an>%Creset\" --abbrev-commit
sl = stash list --pretty=format:\"%C(red)%h%C(reset) - %C(dim yellow)(%C(bold magenta)%gd%C(dim yellow))%C(reset) %<(70,trunc)%s %C(green)(%cr) %C(bold blue)<%an>%C(reset)\"
(나도 비슷한 마크업을 하고 있음을 알 수 있습니다.log
그리고.reflog
)
다음은 다음과 같습니다.
상대 시간이 아닌 실제 날짜를 표시하려면 대체%(cr)
와 함께%(ci)
.
git show stash@{0}
또한 다른 정보와 함께 날짜를 출력합니다.
언급URL : https://stackoverflow.com/questions/15551618/get-the-creation-date-of-a-stash
'programing' 카테고리의 다른 글
ABC를 사용하는 것과 ABC를 사용하는 것 사이에 차이점이 있습니까? (0) | 2023.05.04 |
---|---|
React Native를 사용할 때 데이터를 저장하기 위한 옵션은 무엇입니까? (iOS 및 Android) (0) | 2023.05.04 |
if-statement에서 파이썬의 &&(논리적-and)에 해당하는 것은 무엇입니까? (0) | 2023.05.04 |
고유 값을 카운트하는 단순 피벗 테이블 (0) | 2023.05.04 |
이클립스 오류 "ADB 서버가 확인하지 못했습니다. 데몬을 시작하지 못했습니다." (0) | 2023.04.29 |