courses:programming:git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

courses:programming:git [2017/08/23 13:09]
tatyana.berlenko created
courses:programming:git [2022/12/10 09:08]
Line 1: Line 1:
-====== Простейшие команды для работы в консоли Linux с git ====== 
  
- 
-<​code>​ 
-git clone <​ссылка_на_репозиторий>​ // Клонирование удаленного репозитория на локальную машину 
- 
-git checkout -b new_branch // Создать новую ветку new_branch и переключиться на неё 
- 
-git checkout new_branch // Переключиться на существующую ветку new_branch 
- 
-git add main.c // Добавить файл main.c в индекс 
- 
-git rm main.c // Удалить файл main.c из репозитория и из индекса 
- 
-git commit -m "add main.c file" // Создать коммит с сообщением "add main.c file" ​ 
- 
-git push origin new_branch // Отправить ветку new_branch в главный репозиторий origin 
- 
-git pull origin new_branch // Извлекает и затем сливает данные из удалённой ветки new_branch в вашу текущую ветку 
- 
-</​code>​ 
courses/programming/git.txt · Last modified: 2022/12/10 09:08 (external edit)