Загрузка страницы

Git Branching and Merging with Example

Git Branching and merging help us to have multiple parallel development without impacting/disturbing the main code repository or the current production deployed code.
Agenda for Today

1. Learn Branching with Example (Pictorial Representation)
2. What are branches
3. How to create branch
4. How to checkout branch
5. How to merge branch to master

Branching and Merging Commands
---------------------------------------------------------

Command 1: Creating a Branch
git branch “branch name”

Command 2: Seeing all the Branches
git branch

Command 3: Moving to another branch
git checkout “branch name”

Command 4: Checking work done on a file into stage
Git add “files to be staged”

Command 5: Committing data into Git
Git commit –m “comment on the file changes”

Command 5: see the difference/changes between the branches
git diff master “new branch name”

Command 6: Merge new branch in master branch
git merge “branch name”

Command 7: Delete branch
git branch -d “branch name”
Website – https://helpmecoder.com

------------ Follow ------------
Facebook – https://www.facebook.com/groups/helpmecoder/
Twitter – https://twitter.com/HelpMeCoder
YouTube - https://www.youtube.com/helpmecoder

#git
#gitbranching
#gitmerging
#gitbranch
#gitmerge
#gitcheckout
#github
#gitpull

Видео Git Branching and Merging with Example канала helpmecoder
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
9 мая 2019 г. 20:05:15
00:14:56
Яндекс.Метрика