git status 명령어로 현재 상태를 출력 한다
Chages to be committed :
파일 들이 현재 추적 되며 스테이지(stage) 상태 이다
이것들을 Untracked fileds 로 옮기면 더이상 추적되지 않는다
git add 취소와 같다
git restore --staged <file명>을 사용하면 file을 untracked 상태로 변경한다
git restore --staged * 을 실시할시 현재
Chages to be committed에 있는 모든 파일들이 unstage 상태가 된다
*gitignore 파일에 추가할시 untracked 된다
D:\bit\workspace\springboot\JavaPracticeProblem\src>git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: .idea/misc.xml
new file: .idea/modules.xml
new file: .idea/uiDesigner.xml
new file: .idea/vcs.xml
new file: JavaPracticeProblem.iml
Untracked files:
(use "git add <file>..." to include in what will be committed)
out/production/JavaPracticeProblem/.idea/uiDesigner.xml
out/production/JavaPracticeProblem/Action.class
out/production/JavaPracticeProblem/ActionExample.class
out/production/JavaPracticeProblem/BasicAPIClass/
out/production/JavaPracticeProblem/Cat.class
out/production/JavaPracticeProblem/Chapter10/
out/production/JavaPracticeProblem/Chapter4/
out/production/JavaPracticeProblem/Chapter5/
out/production/JavaPracticeProblem/Chapter6/
out/production/JavaPracticeProblem/Chapter9/
out/production/JavaPracticeProblem/DaoExample.class
out/production/JavaPracticeProblem/DataAccessObject.class
out/production/JavaPracticeProblem/Dog.class
out/production/JavaPracticeProblem/MySqlDao.class
out/production/JavaPracticeProblem/OracleDao.class
out/production/JavaPracticeProblem/SoundAble.class
out/production/JavaPracticeProblem/SoundableExample.class
out/production/JavaPracticeProblem/com/
D:\bit\workspace\springboot\JavaPracticeProblem\src>git restor --staged
git: 'restor' is not a git command. See 'git --help'.
The most similar commands are
restore
remote
D:\bit\workspace\springboot\JavaPracticeProblem\src>git restore --staged
fatal: you must specify path(s) to restore
D:\bit\workspace\springboot\JavaPracticeProblem\src>git restore --staged *
D:\bit\workspace\springboot\JavaPracticeProblem\src>git status
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
JavaPracticeProblem.iml
out/production/JavaPracticeProblem/.idea/uiDesigner.xml
out/production/JavaPracticeProblem/Action.class
out/production/JavaPracticeProblem/ActionExample.class
out/production/JavaPracticeProblem/BasicAPIClass/
out/production/JavaPracticeProblem/Cat.class
out/production/JavaPracticeProblem/Chapter10/
out/production/JavaPracticeProblem/Chapter4/
out/production/JavaPracticeProblem/Chapter5/
out/production/JavaPracticeProblem/Chapter6/
out/production/JavaPracticeProblem/Chapter9/
out/production/JavaPracticeProblem/DaoExample.class
out/production/JavaPracticeProblem/DataAccessObject.class
out/production/JavaPracticeProblem/Dog.class
out/production/JavaPracticeProblem/MySqlDao.class
out/production/JavaPracticeProblem/OracleDao.class
out/production/JavaPracticeProblem/SoundAble.class
out/production/JavaPracticeProblem/SoundableExample.class
out/production/JavaPracticeProblem/com/
nothing added to commit but untracked files present (use "git add" to track)
'단축키와 유용한 팁' 카테고리의 다른 글
우테코 피드백 (0) | 2021.11.21 |
---|---|
variable initializer is redundant (0) | 2021.09.05 |
Eclipse 단축키 (0) | 2021.08.24 |
윈도우 가상 데스크톱 (0) | 2021.08.10 |