Git Branch, switching between two branches, git merge

Published: 06 May 2024
on channel: Technology with Kiran
23
1

Use a branch to isolate development work without affecting other branches in the repository. Each repository has one default branch, and can have multiple other branches. You can merge a branch into another branch using a pull request.
333 touch 2.txt
334 vi 2.txt
335 cat 2.txt
336 git status
337 git add .
338 git status
339 git commit -m "2.txt added to kiran branch"
340 git status
341 git log
342 git push -u origin1 kiran
343 ls
344 git checkout master
345 ls
346 git merge kiran master
347 ls
348 vi 1.txt
349 git status
350 git diff 1.txt
351 git add .
352 ls
353 git status
354 git restore --staged 1.txt
355 git status
356 git restore 1.txt
357 vi 1.txt
358 history


Watch video Git Branch, switching between two branches, git merge online without registration, duration hours minute second in high quality. This video was added by user Technology with Kiran 06 May 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 23 once and liked it 1 people.