MyTetra Share
Делитесь знаниями!
Unstaging a file
Время создания: 19.04.2017 18:15
Раздел: git - Git Mastering Version Control
Запись: xintrea/mytetra_db_mcold/master/base/1492614927zh0tonqd02/text.html на raw.githubusercontent.com

### 1. Unstaging a file


```sh

git add NewFile.txt

# to back the file in the untracked status

# перевод из состояния staged -> modified

{{c1::git reset HEAD NewFile.txt}}

```



### Unstaging rm


```sh

C:\Users\mcold\Dropbox\Git Projects\Exercises\Ch1-1>git status

On branch master


Initial commit


Changes to be committed:

new file: first.txt

new file: second.txt


# to back the file in the untracked status

# file second.txt

{{c2::git rm --cached second.txt}}

```

 
MyTetra Share v.0.60
Яндекс индекс цитирования