WOONO's Blog

'Windows7/Tip'에 해당되는 글 2건

  1. 2019.01.02 git command
  2. 2011.04.19 파일 오른쪽메뉴에 Portable용 프로그램과 아이콘 등록하는방법 3




git command

2019. 1. 2. 12:51 : Windows7/Tip

Command line instructions 

 

˙ Git global setup 

 

git config --global user.name "Jin-Hee, Lee" 

git config --global user.email "selfix1123@gmail.com" 

 

˙ Create a new repository 

 

cd test 

touch README.md 

git add README.md 

git commit -m "add README" 

git push -u origin master 

 

˙ Existing folder 

 

cd existing_folder 

git init 

git remote add origin https://gitlab.com/citus_kt/sandbox.git 

git add . 

git commit -m "Initial commit" 

git push -u origin master 

 

˙ Existing Git repository 

 

cd existing_repo 

git remote rename origin old-origin 

git remote add origin https://gitlab.com/citus_kt/sandbox.git 

git push -u origin --all 

git push -u origin --tags 

 

˙ rebase 

$ git reset --hard HEAD~ 

$ git branch -i XXXX 

git checkout issue3 

 

########################################################################################  

  

git config 파일에 저장  

  

########################################################################################  

  

#git config ollehlog : git olog  

  

git config --global alias.olog "log --decorate --pretty=format:'%C(bold red)* gitlab%C(reset) : https://gitlab.com/citus_kt/ollehnavi/commit/%h%n%C(bold blue)* title  : %s%C(reset) : %C(bold cyan)%ai%C(reset)%n%C(bold yellow)* author : [%an]-<%ce>%C(reset)%n%n' --abbrev-commit --date=relative 

  

  

  

#git config enginelog : git elog  

  

git config --global alias.elog "log --decorate --pretty=format:'%C(bold red)* gitlab%C(reset) : https://gitlab.com/citus_kt/engine/commit/%h%n%C(bold blue)* title  : %s%C(reset) : %C(bold cyan)%ai%C(reset)%n%C(bold yellow)* author : [%an]-<%ce>%C(reset)%n%n' --abbrev-commit --date=relative 

  

  

  

#commit config daudiolog : git dlog  

  

git config --global alias.dlog "log --decorate --pretty=format:'%C(bold red)* gitlab%C(reset) : https://gitlab.com/citus_kt/daudio/commit/%h%n%C(bold blue)* title  : %s%C(reset) : %C(bold cyan)%ai%C(reset)%n%C(bold yellow)* author : [%an]-<%ce>%C(reset)%n%n' --abbrev-commit --date=relative 

  

  

  

########################################################################################  

 

 

˙ git log all shell script 

 

gitalog 

 

#!/bin/bash 

 

git log --decorate --pretty=format:'%C(bold red)* hash   : %H%C(reset)%n%C(bold green)* gitlab : https://gitlab.com/citus_kt/'${PWD##*/}'/commit/%h%C(reset)%n%C(bold cyan)* date   : %C(bold blue)%ai%C(reset)%n%C(bold yellow)* author : %an <%ce>%C(reset)%n%C(bold white)* title  : %B%C(reset)%n%n' --abbrev-commit --date=relative 

 

  

git log 출력  

  

########################################################################################  

  

#git log ollehlog : git olog  

  

  

  

git log --decorate --pretty=format:'%C(bold red)* gitlab%C(reset) : https://gitlab.com/citus_kt/ollehnavi/commit/%h%n%C(bold blue)* title  : %s%C(reset) : %C(bold cyan)%ai%C(reset)%n%C(bold yellow)* author : [%an]-<%ce>%C(reset)%n%n 

  

  

  

#commit config enginelog : git elog  

  

  

  

git log --decorate --pretty=format:'%C(bold red)* gitlab%C(reset) : https://gitlab.com/citus_kt/engine/commit/%h%n%C(bold blue)* title  : %s%C(reset) : %C(bold cyan)%ai%C(reset)%n%C(bold yellow)* author : [%an]-<%ce>%C(reset)%n%n 

  

  

  

#commit config daudiolog : git dlog  

  

  

  

git log --decorate --pretty=format:'%C(bold red)* gitlab%C(reset) : https://gitlab.com/citus_kt/daudio/commit/%h%n%C(bold blue)* title  : %s%C(reset) : %C(bold cyan)%ai%C(reset)%n%C(bold yellow)* author : [%an]-<%ce>%C(reset)%n%n 

  

   

  

########################################################################################  

  

git log graphic   

  

########################################################################################  

  

git config --global alias.logall "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative 

 

 

˙ git fetch 

 

git fetch --progress --prune 

 


˙ git branch create 

 

git branch name 

 

git branch delete 

 

git branch -D feature-01 

 

git 연동 

 

git branch --set-upstream-to origin/feature-01 

 

 

˙ git checkout and create local branch 


git checkout -t origin/eventsource 

 

 

˙ git diff and log author

 

git diff -L 10,100:xxx.java 



Posted by woono
1. 아래 첨부된 NotePad.reg 파일을 받고 NotePad로 오픈합니다.

NotePad.reg
NotePad.reg


2. NotePad로 오픈한 파일에 경로와 아이콘의 경로등을 지정해줍니다.

Windows Registry Editor Version 5.00
-> Windows용 레지스트리 파일임을 표시하는 헤더입니다. (모르시면 그냥 그대로 적으시면됩니다)

[HKEY_CLASSES_ROOT\*\shell\NotePad++]
-> 모든파일(*) 에 대해서 NotePad++ 메뉴가 활성화 되도록 합니다.
 
@="NotePad++(&P)"
-> 메뉴에 표시될 제목을 적습니다.
     &P 는 ALT 키를 눌렀을때 단축키 입니다.
 
 
"Icon"="F:\\PortableApp\\Edit & Reader\\Notepad++Portable\\Notepad++Portable.exe"
-> Icon의 경로를 적어줍니다.  (아이콘 파일은 ico, icl, exe, dll 등을 지원한다)

[HKEY_CLASSES_ROOT\*\shell\NotePad++\command]
-> 실제로 명령이 수행될 명령어 키를 기재해주는 곳입니다.
 
@="F:\\PortableApp\\Edit & Reader\\Notepad++Portable\\Notepad++Portable.exe %1"
-> %1 현재 마우스로 선택한 파일명을 NotePad++ (파일의 경로와 실행파일명)으로 오픈 한다는 뜻입니다.

3. 파일경로와 아이콘의 경로를 수정하고 저장한 다음 NotePad.reg 파일을 더블클릭해서 실행하면 다음과 같은 메뉴를 보실 수 있습니다.



4. 프로그램이나 명령어도 응용하시면 등록이 가능합니다.


'Windows7 > Tip' 카테고리의 다른 글

git command  (0) 2019.01.02
Posted by woono