반응형
SMALL

[1]  bandit30@bandit:~$ ls -al

[2]  bandit30@bandit:~$ mkdir /tmp/band31

[3] bandit30@bandit:~$ cd /tmp/band31

[4] bandit30@bandit/tmp/band31$ git clone ssh://bandit30-git@localhost:2220/home/bandit30-git/repo 엔터치고

     중간에 yes 누르고

    마지막에 bandit30 password 복사해서 붙여넣기

bandit30 -> bandit31

[5] bandit30@bandit/tmp/band31$ ls -al

     repo 파일 확인

[6] bandit30@bandit/tmp/band31$ cd repo

[7] bandit30@bandit/tmp/band31/repo$ ls -al

bandit30 -> bandit31

[8] bandit30@bandit/tmp/band31$ cat README.md

     just an epmty file...

[9] bandit30@bandit/tmp/band31$ git branch -a

     master 확인

bandit30 -> bandit31

[10] bandit30@bandit/tmp/band31$ git show-ref

       xxxxxxxxxx refs/tags/secret 확인해 보자

bandit30 ->bandit31

[11] bandit30@bandit/tmp/band31$ git show xxxxxxxxxxx

       bandit31 비밀번호 확인

 

 

반응형
LIST
반응형
SMALL

bandit29 ->

[1] bandit29@bandit:~$ ls -al

     파일을 확임함

    bandit29@bandit:~$ mkdir /tmp/band30

    bandit29@bandit:~$ cd /tmp/band30

    bandit29@bandit/tmp/band30$ ls -al

    파일 확인 특별한게 없다.

[2] bandit29@bandit/tmp/band30$ git clone ssh://bandit29-git@lcoalhost:2220/hom/bandit29-git /repo

bandit29 ->bandit30

[3]  Yes 

bandit29 ->bandit30

[4] bandit29@bandit/tmp/band30$ ls -al

     repo 파일 확인

bandt29 -> bandit30

[5] bandit29@bandit/tmp/band30$ cd repo

[6] bandit29@bandit/tmp/band30/repo$ ls -al

     README.md 확인됨

[7] bandit29@bandit/tmp/band30/repo$ cat README.md

     # Bandit Notes

        Some notes for bandit30 of bandit.

bandit29 -> bandit30

[8] bandit29@bandit/tmp/band30/repo$  git branch -a

     remotes/origin/HEAD -> origin/master

     dev branch 변경

[9] bandit29@bandit/tmp/band30/repo$ git chekout dev 

[8] bandit29@bandit/tmp/band30/repo$ git branch -a

bandit29 -> bandit30

[9] (HEAD detached at origin/dev)

[10] bandit29@bandit/tmp/band30/repo$ git log

bandit29 -> bandit30

    commit : xxxxxxxx  확인됨

bandit29 -> bandit30

[9] bandit29@bandit/tmp/band30/repo$ git show xxxxxxxxxxx  

bandit29 -> bandit30

[10] bandit30 비밀번호 확인

반응형
LIST

+ Recent posts