GitHug 한 걸음 한 걸음 게시물 클리어하기 (1)

4564 단어
일단 Terminal 아래로 잘라주세요.
게임 sudogem 설치 githug
LiGuicaideMacBook-Pro:~ Guicai$ gem install githug
Fetching: mime-types-1.25.1.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
LiGuicaideMacBook-Pro:~ Guicai$ sudo gem install githug
Password:
Fetching: mime-types-1.25.1.gem (100%)
Successfully installed mime-types-1.25.1
Fetching: diff-lcs-1.2.5.gem (100%)
Successfully installed diff-lcs-1.2.5
Fetching: grit-2.3.0.gem (100%)
Successfully installed grit-2.3.0
Fetching: thor-0.14.6.gem (100%)
Successfully installed thor-0.14.6
Fetching: githug-0.4.2.gem (100%)
Successfully installed githug-0.4.2
Parsing documentation for mime-types-1.25.1
Installing ri documentation for mime-types-1.25.1
Parsing documentation for diff-lcs-1.2.5
Installing ri documentation for diff-lcs-1.2.5
Parsing documentation for grit-2.3.0
Installing ri documentation for grit-2.3.0
Parsing documentation for thor-0.14.6
Installing ri documentation for thor-0.14.6
Parsing documentation for githug-0.4.2
Installing ri documentation for githug-0.4.2
5 gems installed

처음 사용하기 때문에, 직접 githug를 두드리기
LiGuicaideMacBook-Pro:~ Guicai$ githug
********************************************************************************
*                                    Githug                                    *
********************************************************************************
No githug directory found, do you wish to create one? [yn]  y
Welcome to Githug!

Name: init
Level: 1
Difficulty: *

A new directory, `git_hug`, has been created; initialize an empty repository in it.

화려한 분할선은 이때부터 게임의 여행을 시작했다
첫 번째 문제:git_로 전환hug 디렉터리에서 초기화
LiGuicaideMacBook-Pro:git_hug Guicai$ git init

완성 후 githug play 입력
LiGuicaideMacBook-Pro:git_hug Guicai$ githug play
********************************************************************************
*                                    Githug                                    *
********************************************************************************
Congratulations, you have solved the level!

Name: config
Level: 2
Difficulty: *

Set up your git name and email, this is important so that your commits can be identified.

두 번째 문제: 이름과 메일박스 설정
LiGuicaideMacBook-Pro:git_hug Guicai$ git config --global user.name "Guicai.Li"
LiGuicaideMacBook-Pro:git_hug Guicai$ git config --global user.email [email protected]
LiGuicaideMacBook-Pro:git_hug Guicai$ githug play
********************************************************************************
*                                    Githug                                    *
********************************************************************************
What is your name? Guicai.Li
What is your email? [email protected]
Your config has the following name: Guicai.Li
Your config has the following email: [email protected]
Congratulations, you have solved the level!

Name: add
Level: 3
Difficulty: *

There is a file in your folder called `README`, you should add it to your staging area
Note: You start each level with a new repo. Don't look for files from the previous one.

세 번째: Git에 README 파일 추가
LiGuicaideMacBook-Pro:git_hug Guicai$ git add README
LiGuicaideMacBook-Pro:git_hug Guicai$ githug play
********************************************************************************
*                                    Githug                                    *
********************************************************************************
Congratulations, you have solved the level!

Name: commit
Level: 4
Difficulty: *

The `README` file has been added to your staging area, now commit it.

네 번째 문제: README 제출
LiGuicaideMacBook-Pro:git_hug Guicai$ git commit -a -m 'Hello,GitHug'
[master (root-commit) 3ad4189] Hello,GitHug
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 README
LiGuicaideMacBook-Pro:git_hug Guicai$ githug play
********************************************************************************
*                                    Githug                                    *
********************************************************************************
Congratulations, you have solved the level!

Name: clone
Level: 5
Difficulty: *

Clone the repository at https://github.com/Gazler/cloneme.

좋은 웹페이지 즐겨찾기