text
This commit is contained in:
		@@ -137,13 +137,19 @@ git rm <path/to/submodule>
 | 
			
		||||
## Фиксация
 | 
			
		||||
 | 
			
		||||
| Команда | Ключи | Описание |
 | 
			
		||||
| ---- | ------ | ------------ |
 | 
			
		||||
| ---- | ---- | ------------ |
 | 
			
		||||
| `git add`    | `<filename>`                | Подготовить файл `<filename>` к фиксации                     |
 | 
			
		||||
| `git commit` |                             | Зафиксировать подготовленные файлы |
 | 
			
		||||
| `git commit` | `-a`                        | Зафиксировать все отслеживаемые файлы, которые были изменены |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Удаление
 | 
			
		||||
 | 
			
		||||
| Команда | Ключи | Описание |
 | 
			
		||||
| ---- | ---- | ------------ |
 | 
			
		||||
| `git rm` | `<filename>`                | Удалить файл из индекса и рабочего каталога |
 | 
			
		||||
| `git rm` | `-f <filename>`             | Force deletion of files from disk |
 | 
			
		||||
| `git rm` | `--cached <filename>`    | Untrack file (without deleting) |
 | 
			
		||||
| `git rm` | `-f <filename>`             | Принудительное удаление файла |
 | 
			
		||||
| `git rm` | `--cached <filename>`    | Удаление файла из проекта, но не из рабочего каталога |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Информация
 | 
			
		||||
@@ -155,45 +161,33 @@ git rm <path/to/submodule>
 | 
			
		||||
| `git ls-files` |             | Вывод списка отслеживаемых и подготовленных файлов |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## $push branches (see tags for pushing tags)
 | 
			
		||||
## Удалённый репозиторий
 | 
			
		||||
 | 
			
		||||
| Команда | Ключи | Описание |
 | 
			
		||||
| ---- | ------ | ------------ |
 | 
			
		||||
| `git push`    | `<remotename> <branchname>`     | Push branch to remote |
 | 
			
		||||
| `git push`    | `<remotename> --all`            | Push all branches to remote |
 | 
			
		||||
| `git push`    | `--d <remotename> <branchname>` | `--delete` remote branch |
 | 
			
		||||
| ---- | ---- | ------------ |
 | 
			
		||||
| `git remote` | `-v`                         | Список адресов удалённых репозиториев |
 | 
			
		||||
| `git branch` | `-r`                         | Список веток в удалённых репозиториях  |
 | 
			
		||||
| `git remote` | `add <name> <url>`           | Создать ссылку `<name>` на удалённый репозиторий, находящийся по адресу `<url>` |
 | 
			
		||||
| `git remote` | `rename <old> <new>` | Переименовать ссылку `<old>` на `<new>` |
 | 
			
		||||
| `git remote` | `rm <name>`                  | Удалить ссылку `<name>` |
 | 
			
		||||
 | 
			
		||||
## $remote
 | 
			
		||||
* Обращение к удалённому репозиторию осуществляется по ссылке, создаваемой командой `git remote`
 | 
			
		||||
* Команда `git clone` автоматически создаёт ссылку `origin`
 | 
			
		||||
 | 
			
		||||
- Remote connections are like bookmarks named after remote repos
 | 
			
		||||
- `git clone` automatically creates a remote connection usually called `origin`
 | 
			
		||||
## Отправка изменений
 | 
			
		||||
 | 
			
		||||
| Команда | Ключи | Описание |
 | 
			
		||||
|---------|-------|----------|
 | 
			
		||||
| `git remote` | `-v`                         | List remote repository endpoints |
 | 
			
		||||
| `git branch` | `-r`                         | List remote repository branches |
 | 
			
		||||
| `git remote` | `add <name> <url>`           | Create namespaced connection to a remote repository |
 | 
			
		||||
| `git remote` | `rename <oldname> <newname>` | Rename connection |
 | 
			
		||||
| `git remote` | `rm <name>`                  | Remove connection |
 | 
			
		||||
| `git remote`  | `add origin <url>` | Set remote origin |
 | 
			
		||||
| ---- | ---- | ------------ |
 | 
			
		||||
| `git push`    | `<remote> <branch>`        | Отправить ветку `<branch>` в удалённый репозиторий `<remote>` |
 | 
			
		||||
| `git push`    | `<remote> --all`          | Отправить все ветки в удалённый репозиторий `<remote>` |
 | 
			
		||||
| `git push`    | `--d <remote> <branch>` | Удалить ветку `<branch>` из удалённого репозитория `<remote>` |
 | 
			
		||||
 | 
			
		||||
Reference: https://git-scm.com/docs/git-remote
 | 
			
		||||
 | 
			
		||||
**Remove remote origin:**
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
# Remove `origin` settings from .git/config
 | 
			
		||||
git remote rm origin
 | 
			
		||||
 | 
			
		||||
# Remove `FETCH_HEAD` which still points to remote
 | 
			
		||||
git rm .git/FETCH_HEAD
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## $fetch-pull
 | 
			
		||||
## Получение изменений
 | 
			
		||||
 | 
			
		||||
| Команда | Ключи | Описание |
 | 
			
		||||
|---------|-------|----------|
 | 
			
		||||
| `git fetch`     | `<remote>`     | Fetch all branches from remote (without merge) |
 | 
			
		||||
| ---- | ---- | ------------ |
 | 
			
		||||
| `git fetch`     | `<remote>`     | Получить изменения из всех веток репозитория `<remote>`, но не выполнять слияние |
 | 
			
		||||
| `git fetch`     | `<remote> <branch>`     | Fetch specific branch |
 | 
			
		||||
| `git merge`     | `<remote>/<branch>`     | Merge fetched remote |
 | 
			
		||||
| `git pull`      | `<remote>`     | Fetch and merge in one command |
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user