Инструменты пользователя

Инструменты сайта


git:sozdanie_vetok

Создание веток

anchikin@outlook.com@Asus MINGW64 /d/apache/htaccess/www (master)
$ git branch branch2 #Создаем ветку branch2
 
anchikin@outlook.com@Asus MINGW64 /d/apache/htaccess/www (master)
$ git branch -v #Просмотр всех веток
  branch2 daa7ef2 other user
* master  daa7ef2 other user
 
anchikin@outlook.com@Asus MINGW64 /d/apache/htaccess/www (master)
$ git checkout branch2 #Переключемся на ветку branch2
Switched to branch 'branch2'
 
anchikin@outlook.com@Asus MINGW64 /d/apache/htaccess/www (branch2)
$ git branch -v #Смотрим в какой я ветке
* branch2 daa7ef2 other user
  master  daa7ef2 other user
 
anchikin@outlook.com@Asus MINGW64 /d/apache/htaccess/www (branch2)
$ git checkout -b branch3 #Второй способо создания ветки
Switched to a new branch 'branch3'
 
anchikin@outlook.com@Asus MINGW64 /d/apache/htaccess/www (branch3)
$ git branch -v #Смотрим в какой я ветке
  branch2 daa7ef2 other user
* branch3 daa7ef2 other user
  master  daa7ef2 other user
 
anchikin@outlook.com@Asus MINGW64 /d/apache/htaccess/www (branch3)
$ git checkout master #Переключемся на ветку master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
 
anchikin@outlook.com@Asus MINGW64 /d/apache/htaccess/www (master)
$ git branch -v #Смотрим в какой я ветке
  branch2 daa7ef2 other user
  branch3 daa7ef2 other user
* master  daa7ef2 other user
git/sozdanie_vetok.txt · Последние изменения: 2023/01/12 12:18 (внешнее изменение)