Git add

1 개요[ | ]

git add
  • 작업디렉토리에서 스테이징영역으로 파일을 추가하는 git 명령어

2 실습[ | ]

root@zetawiki:~# mkdir -p workspace/hello
root@zetawiki:~# cd workspace/hello/
root@zetawiki:~/workspace/hello# git init
Initialized empty Git repository in /root/workspace/hello/.git/
root@zetawiki:~/workspace/hello# echo 'hello world' > greet.txt
root@zetawiki:~/workspace/hello# git status
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	greet.txt

nothing added to commit but untracked files present (use "git add" to track)
root@zetawiki:~/workspace/hello# git add greet.txt 
root@zetawiki:~/workspace/hello# git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

	new file:   greet.txt

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}