티스토리 뷰

about Git-Hub

1. 깃텁(Git-Hub) 왕기초

뚜비콩 2017. 12. 6. 20:28
Press Enter to submit, or type 'help' and press Enter for info on using the console
 
$ help
 

You can type in these commands and hit enter:

Command Instructions
help print this message
next go to the next challenge
previous go to the previous challenge
clear clear the console
answer show you the answer to this challenge (-75 points)



$ git help
 

usage: git [--version] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
[-c name=value] [--help]
<command> [<args>]

The most commonly used git commands are:
add Add file contents to the index
bisect Find by binary search the change that introduced a bug
branch List, create, or delete branches
checkout Checkout a branch or paths to the working tree
clone Clone a repository into a new directory
commit Record changes to the repository
diff Show changes between commits, commit and working tree, etc
fetch Download objects and refs from another repository
grep Print lines matching a pattern
init Create an empty git repository or reinitialize an existing one
log Show commit logs
merge Join two or more development histories together
mv Move or rename a file, a directory, or a symlink
pull Fetch from and merge with another repository or a local branch
push Update remote refs along with associated objects
rebase Forward-port local commits to the updated upstream head
reset Reset current HEAD to the specified state
rm Remove files from the working tree and from the index
show Show various types of objects
status Show the working tree status
tag Create, list, delete or verify a tag object signed with GPG

See 'git help <command>' for more information on a specific command.



$ git help config

$ git config --global user.name "Any Name" to set your user name

$ git init

$ git satus    // committing files not yet

$ git add <file>

ex) $ git add index.html


$ git push origin master 

// 'master'부분을 원하는 다른 가지 이름으로 바궈주면 다른 가지가 발행된다. 


'about Git-Hub' 카테고리의 다른 글

0. 깃텁 배워보기! (git-hub tutorial)  (0) 2017.12.06
댓글