/
bear
/
my_snippets
Обзор
Документация
Войти
/
bear
/
my_snippets
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
data/git_snippets.xml
12 строк
1 KB
Nikita Kalitin
add(snippets): git rm ...
20 янв 2020, 17:14
20 янв 2020, 17:14
dbcb537
Код
Авторство
О чём код?
<templateSet group="git_snippets"> <template name="git update-index" value="git update-index should do what you want #This will tell git you want to start ignoring the changes to the file git update-index --assume-unchanged path/to/file #When you want to start keeping track again git update-index --no-assume-unchanged path/to/file" description="exclude file from index" toReformat="false" toShortenFQNames="true"> <context> <option name="Bash" value="true" /> </context> </template> <template name="git rm" value="# 1.If you want to push a deleted file to remote git add 'deleted file name' git commit -m'message' git push -u origin branch # 2. If you want to delete a file from remote and locally git rm 'file name' git commit -m'message' git push -u origin branch # 3. If you want to delete a file from remote only git rm --cached 'file name' git commit -m'message' git push -u origin branch" description="delete from repository" toReformat="false" toShortenFQNames="true"> <context> <option name="Bash" value="true" /> </context> </template> </templateSet>