title
Git Commands With Examples | Top Git Commands with Examples | Git add, pull, branch, merge | Edureka

description
๐Ÿ”ฅ DevOps Training (Use Code "๐˜๐Ž๐”๐“๐”๐๐„๐Ÿ๐ŸŽ") : https://www.edureka.co/devops-certification-training This Edureka Git video on "Git Commands with Example" ( Git Blog series: https://goo.gl/XS1Vux ) will explain all the basic Git commands. You will learn about the commands like git add, git init, git pull, git branch etc. Here is the link to Git Tutorial Video: https://goo.gl/NRJYTs Check our complete DevOps playlist here: http://goo.gl/O2vo13 DevOps Tutorial Blog Series: https://goo.gl/2iV2py ๐Ÿ”ด ๐„๐๐ฎ๐ซ๐ž๐ค๐š ๐Ž๐ง๐ฅ๐ข๐ง๐ž ๐“๐ซ๐š๐ข๐ง๐ข๐ง๐  ๐š๐ง๐ ๐‚๐ž๐ซ๐ญ๐ข๐Ÿ๐ข๐œ๐š๐ญ๐ข๐จ๐ง๐ฌ ๐Ÿ”ต DevOps Online Training: http://bit.ly/3VkBRUT ๐ŸŒ• AWS Online Training: http://bit.ly/3ADYwDY ๐Ÿ”ด ๐„๐๐ฎ๐ซ๐ž๐ค๐š ๐‘๐จ๐ฅ๐ž-๐๐š๐ฌ๐ž๐ ๐‚๐จ๐ฎ๐ซ๐ฌ๐ž๐ฌ ๐Ÿ”ต DevOps Engineer Masters Program: http://bit.ly/3Oud9PC ๐ŸŒ• Cloud Architect Masters Program: http://bit.ly/3OvueZy ๐Ÿ”ด๐„๐๐ฎ๐ซ๐ž๐ค๐š ๐”๐ง๐ข๐ฏ๐ž๐ซ๐ฌ๐ข๐ญ๐ฒ ๐๐ซ๐จ๐ ๐ซ๐š๐ฆ๐ฌ ๐ŸŒ• Professional Certificate Program in DevOps with Purdue University: https://bit.ly/3Ov52lT ๐Ÿ“ข๐Ÿ“ข ๐“๐จ๐ฉ ๐Ÿ๐ŸŽ ๐“๐ซ๐ž๐ง๐๐ข๐ง๐  ๐“๐ž๐œ๐ก๐ง๐จ๐ฅ๐จ๐ ๐ข๐ž๐ฌ ๐ญ๐จ ๐‹๐ž๐š๐ซ๐ง ๐ข๐ง 2023 ๐’๐ž๐ซ๐ข๐ž๐ฌ ๐Ÿ“ข๐Ÿ“ข โฉ NEW Top 10 Technologies To Learn In 2023 - https://youtu.be/udD_GQVDt5g ๐Ÿ“Œ๐“๐ž๐ฅ๐ž๐ ๐ซ๐š๐ฆ: https://t.me/edurekaupdates ๐Ÿ“Œ๐“๐ฐ๐ข๐ญ๐ญ๐ž๐ซ: https://twitter.com/edurekain ๐Ÿ“Œ๐‹๐ข๐ง๐ค๐ž๐๐ˆ๐ง: https://www.linkedin.com/company/edureka ๐Ÿ“Œ๐ˆ๐ง๐ฌ๐ญ๐š๐ ๐ซ๐š๐ฆ: https://www.instagram.com/edureka_learning/ ๐Ÿ“Œ๐…๐š๐œ๐ž๐›๐จ๐จ๐ค: https://www.facebook.com/edurekaIN/ ๐Ÿ“Œ๐’๐ฅ๐ข๐๐ž๐’๐ก๐š๐ซ๐ž: https://www.slideshare.net/EdurekaIN ๐Ÿ“Œ๐‚๐š๐ฌ๐ญ๐›๐จ๐ฑ: https://castbox.fm/networks/505?country=IN ๐Ÿ“Œ๐Œ๐ž๐ž๐ญ๐ฎ๐ฉ: https://www.meetup.com/edureka/ ๐Ÿ“Œ๐‚๐จ๐ฆ๐ฆ๐ฎ๐ง๐ข๐ญ๐ฒ: https://www.edureka.co/community/ Subscribe to our channel to get video updates. Hit the subscribe button above. #GitCommands #gitEdureka #Edureka #GitHub #DevOpsTraining #DevOpsTutorial #DevOpsGit #Git #GitHub #GitTutorial #GitTutorialforBeginners #GitRebase #GitAdd #GitBranching #GitMerge #GitBash #GitCommit #GitClone #GitCommands #GitCheckout #GitConfig About the DevOps Course Edurekaโ€™s DevOps online training is designed to help you master key tools of Devops lifecycle like Docker, Puppet, Jenkins, Nagios, GIT, Ansible, SaltStack and Chef used by a DevOps Engineer for automating multiple steps in SDLC. During this course, our expert DevOps instructors will help you: 1. Understand the concepts and necessities of DevOps 2. Understand the need for DevOps and the day-to-day real-life problems it resolves 3. Learn installation and configuration of common infrastructure servers like Apache, and Nginx for the Enterprise 4. Learn popular DevOps tools like Jenkins, Puppet, Chef, Ansible, SaltStack, Nagios and GIT 5. Implement automated system update, installations and deployments 6. Learn Virtualization Concepts 7. Configuration deployment and packaging, continuous integration using GIT 8. Fine tune Performance and set-up basic Security for Infrastructure 9. Manage server operations using Code which is popularly known as Infrastructure as a Code 10. Understand the need for and concepts of Monitoring and Logging. - - - - - - - - - - - - - - Who should go for this course? DevOps practitioners are among the highest paid IT professionals today, and the market demand for them is growing rapidly. With emergence of new job roles around DevOps philosophy, anyone aspiring to get into these new roles, can take up this DevOps course. Some of these roles are: 1. DevOps Architect 2. Automation Engineer 3. Software Tester 4. Security Engineer 5. Integration Specialist 6. Release Manager - - - - - - - - - - - - - - For more information, please write back to us at sales@edureka.co or call us at IND: 9606058406 / US: 18338555775 (toll-free). Customer Reviews: Ankur Kashyap, DevOps, Build & Release says: โ€œI was enrolled into Devops training from Edureka On a professionalism, they provide a great presentation on the topic that helps to understand the indepth of Devops technology. Good knowledgeable staff, provide recorded sessions with life time warranty. Also technical team is really helpful if you stuck in some demo sessions. Keep it up !! โ€

detail
{'title': 'Git Commands With Examples | Top Git Commands with Examples | Git add, pull, branch, merge | Edureka', 'heatmap': [{'end': 886.164, 'start': 843.317, 'weight': 0.702}, {'end': 1064.029, 'start': 1037.912, 'weight': 0.725}, {'end': 1206.204, 'start': 1181.233, 'weight': 0.797}, {'end': 1332.98, 'start': 1252.623, 'weight': 1}, {'end': 1543.334, 'start': 1506.903, 'weight': 0.982}], 'summary': 'Tutorial covers git commands from basics to advanced, including git init, add, commit, branch, merge, clone, push, pull, stash, log, rebase, and revert. it provides practical demonstrations and examples, emphasizing best practices and repository operations.', 'chapters': [{'end': 172.086, 'segs': [{'end': 45.631, 'src': 'embed', 'start': 17.457, 'weight': 1, 'content': [{'end': 19.297, 'text': "So we'll start with git init command.", 'start': 17.457, 'duration': 1.84}, {'end': 23.519, 'text': 'Now git init is basically to turn a directory into an empty git repository.', 'start': 19.557, 'duration': 3.962}, {'end': 27.701, 'text': 'Now the first thing that you need, you need a local repository to work with.', 'start': 23.919, 'duration': 3.782}, {'end': 30.763, 'text': "For those of you who don't know what exactly local repository is.", 'start': 28.101, 'duration': 2.662}, {'end': 36.526, 'text': 'It is basically a private copy of the whole repository, of the whole shared repository that you have,', 'start': 31.243, 'duration': 5.283}, {'end': 42.049, 'text': 'and users can perform many operations with this repository, such as add file, remove file, rename file, move file.', 'start': 36.526, 'duration': 5.523}, {'end': 45.631, 'text': 'You can come at changes and you can do a lot of things with your local repository.', 'start': 42.069, 'duration': 3.562}], 'summary': 'Using git init creates an empty git repository in a directory for local operations.', 'duration': 28.174, 'max_score': 17.457, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I17457.jpg'}, {'end': 143.909, 'src': 'embed', 'start': 115.66, 'weight': 0, 'content': [{'end': 118.061, 'text': "Now git doesn't track each and every modified file.", 'start': 115.66, 'duration': 2.401}, {'end': 123.162, 'text': 'So, whenever you do the commit operation, git looks for the files present in the staging area.', 'start': 118.341, 'duration': 4.821}, {'end': 127.523, 'text': 'only those files present in the staging area are considered for commit and not all the modified files.', 'start': 123.162, 'duration': 4.361}, {'end': 134.785, 'text': 'So the first thing you need to do is put all the modified files all the changes that you have done into the staging area and then from staging area.', 'start': 127.983, 'duration': 6.802}, {'end': 136.145, 'text': 'You can go ahead and make a comment.', 'start': 134.965, 'duration': 1.18}, {'end': 140.707, 'text': 'Right So the first thing is to add your files to the staging area, which is pretty easy.', 'start': 136.704, 'duration': 4.003}, {'end': 143.909, 'text': 'All I have to do is type in git add in the file name.', 'start': 141.267, 'duration': 2.642}], 'summary': "Git only commits files in staging area, not all modified files. use 'git add' to add files to staging area.", 'duration': 28.249, 'max_score': 115.66, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I115660.jpg'}], 'start': 0.089, 'title': 'Git commands overview', 'summary': 'Covers the basics of git and github, including the git init command for creating a git repository and the git add command for staging files, with practical demonstrations and examples.', 'chapters': [{'end': 172.086, 'start': 0.089, 'title': 'Git commands overview', 'summary': 'Covers the basics of git and github, including the git init command to turn a directory into an empty git repository, and the git add command to add files to the staging area for git, with practical demonstrations and examples.', 'duration': 171.997, 'highlights': ['The chapter covers the basics of git and GitHub, including the git init command to turn a directory into an empty git repository. Discusses the purpose and functionality of git init, emphasizing the transformation of a directory into an empty git repository.', 'The git add command adds all the files to the staging area for git, allowing for selective file tracking during the commit operation. Explains the significance of git add in placing modified files into the staging area for selective tracking during the commit operation.']}], 'duration': 171.997, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I89.jpg', 'highlights': ['The git add command adds all the files to the staging area for git, allowing for selective file tracking during the commit operation.', 'The chapter covers the basics of git and GitHub, including the git init command to turn a directory into an empty git repository.']}, {'end': 452.725, 'segs': [{'end': 230.673, 'src': 'embed', 'start': 193.683, 'weight': 0, 'content': [{'end': 197.544, 'text': 'So this will add all the files that are there in my local repository to the staging area.', 'start': 193.683, 'duration': 3.861}, {'end': 199.465, 'text': 'So this was all about git add.', 'start': 198.084, 'duration': 1.381}, {'end': 202.406, 'text': "Let me just quickly open my slides and we'll see which is the next command.", 'start': 199.505, 'duration': 2.901}, {'end': 204.126, 'text': 'We are going to discuss now.', 'start': 202.426, 'duration': 1.7}, {'end': 205.987, 'text': "We're going to see the git commit command.", 'start': 204.166, 'duration': 1.821}, {'end': 210.968, 'text': 'So git commit basically records the changes made to the files in a local repository.', 'start': 206.007, 'duration': 4.961}, {'end': 213.909, 'text': 'So you have all the modified files in the staging area.', 'start': 211.008, 'duration': 2.901}, {'end': 219.171, 'text': 'So when you make a commit it will basically record the changes that you have made to the files in that local repository.', 'start': 213.929, 'duration': 5.242}, {'end': 220.891, 'text': 'And for easy difference.', 'start': 219.731, 'duration': 1.16}, {'end': 226.512, 'text': 'each commit has a unique ID and it is a good practice to always give a commit message, right?', 'start': 220.891, 'duration': 5.621}, {'end': 230.673, 'text': 'So that helps you in understanding what change was done in this particular comment, right?', 'start': 226.532, 'duration': 4.141}], 'summary': 'Introduction to git add and git commit, emphasizing the process of staging and recording changes with unique ids and commit messages.', 'duration': 36.99, 'max_score': 193.683, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I193683.jpg'}, {'end': 284.153, 'src': 'embed', 'start': 253.705, 'weight': 2, 'content': [{'end': 255.507, 'text': 'edureka dot py right?', 'start': 253.705, 'duration': 1.802}, {'end': 256.968, 'text': 'So this is the log for it.', 'start': 255.547, 'duration': 1.421}, {'end': 259.991, 'text': 'Let me just clear the terminal and go back to my slides again.', 'start': 257.309, 'duration': 2.682}, {'end': 262.935, 'text': "Let's talk about a git status now.", 'start': 260.992, 'duration': 1.943}, {'end': 267.039, 'text': 'So git status returns the current state of the repository.', 'start': 263.936, 'duration': 3.103}, {'end': 270.3, 'text': 'Get status will return the current working branch.', 'start': 267.637, 'duration': 2.663}, {'end': 277.867, 'text': 'if a file is in staging area but not committed, it shows with get status or if there are no changes, it will return nothing to commit.', 'start': 270.3, 'duration': 7.567}, {'end': 278.968, 'text': 'working directory is clean.', 'start': 277.867, 'duration': 1.101}, {'end': 284.153, 'text': "Right? So let me just open my virtual machine again and I'll show you practically how this works.", 'start': 279.549, 'duration': 4.604}], 'summary': 'Git status returns current repository state, working branch, and file status.', 'duration': 30.448, 'max_score': 253.705, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I253705.jpg'}, {'end': 409.975, 'src': 'embed', 'start': 380.214, 'weight': 4, 'content': [{'end': 387.099, 'text': "These values set what email address and name commits will be from on a local computer and it's very easy to do that.", 'start': 380.214, 'duration': 6.885}, {'end': 395.725, 'text': "Let me just quickly open my VM and I'll show you that now there are two things either I can run the git config command globally,", 'start': 387.939, 'duration': 7.786}, {'end': 399.507, 'text': 'or I can run the git config command on the current repository settings.', 'start': 395.725, 'duration': 3.782}, {'end': 401.549, 'text': 'So let me show you how you can do it globally.', 'start': 399.567, 'duration': 1.982}, {'end': 409.975, 'text': "So I'll just type in here git config hyphen hyphen global user dot name and the name of the user.", 'start': 402.169, 'duration': 7.806}], 'summary': 'Setting email and name for commits globally or per repository in git.', 'duration': 29.761, 'max_score': 380.214, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I380214.jpg'}], 'start': 172.086, 'title': 'Git basics and configurations', 'summary': "Covers the basics of git add and git commit, including adding specific files and all files to the staging area and recording changes with a unique id and commit message, with an example of two files changed and five insertions. it also covers the usage of 'git status' to track changes in the repository and 'git config' to set username and user email address globally or locally, with examples provided.", 'chapters': [{'end': 253.705, 'start': 172.086, 'title': 'Git add and commit basics', 'summary': 'Covers the basics of git add and git commit, including adding specific files and all files to the staging area, and recording changes with a unique id and commit message, with an example of two files changed and five insertions.', 'duration': 81.619, 'highlights': ["The git commit command records the changes made to the files in a local repository, with each commit having a unique ID and a commit message for understanding the changes made, as demonstrated by 'first commit' with two files changed and five insertions.", "The git add command is used to add changes to the staging area, with the ability to add specific files, such as 'edureka.py', or all files in the local repository, as illustrated by adding all files with 'git add .'."]}, {'end': 452.725, 'start': 253.705, 'title': 'Understanding git status and git config', 'summary': "Covers the usage of 'git status' to track changes in the repository and 'git config' to set username and user email address globally or locally, with examples provided. 'git status' returns the current state of the repository and 'git config' allows setting username and user email address globally or locally.", 'duration': 199.02, 'highlights': ["git status returns the current state of the repository and the current working branch, showing if a file is in the staging area but not committed or if there are no changes, it returns 'nothing to commit.' ", "Demonstrated practical usage of 'git status' by adding a file to the staging area and displaying the status changes, providing a clear understanding of its functionality. ", "Explanation of 'git config' for setting username and user email address globally or locally, with practical examples shown for both methods. "]}], 'duration': 280.639, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I172086.jpg', 'highlights': ["The git commit command records changes with a unique ID and commit message, demonstrated by 'first commit' with two files changed and five insertions.", 'The git add command adds changes to the staging area, with the ability to add specific files or all files in the local repository.', 'git status returns the current state of the repository and working branch, showing if a file is in the staging area but not committed or if there are no changes.', "Practical usage of 'git status' by adding a file to the staging area and displaying the status changes.", "Explanation of 'git config' for setting username and user email address globally or locally, with practical examples."]}, {'end': 842.656, 'segs': [{'end': 505.233, 'src': 'embed', 'start': 452.745, 'weight': 0, 'content': [{'end': 457.506, 'text': "Let me quickly open my slides again and we'll see which command we are going to execute next.", 'start': 452.745, 'duration': 4.761}, {'end': 460.187, 'text': "So we've seen how a git config works.", 'start': 458.146, 'duration': 2.041}, {'end': 462.267, 'text': "Let's discuss about git branching now.", 'start': 460.387, 'duration': 1.88}, {'end': 467.009, 'text': 'Now, before I proceed, let me tell you that there will be a separate tutorial video on git branching,', 'start': 462.907, 'duration': 4.102}, {'end': 469.749, 'text': 'where we are going to discuss in detail about it here.', 'start': 467.009, 'duration': 2.74}, {'end': 471.79, 'text': "I'll just give you a quick introduction to branching.", 'start': 469.769, 'duration': 2.021}, {'end': 478.472, 'text': 'So the first question is why do we need branch right? So branches are used to create another line of development.', 'start': 472.77, 'duration': 5.702}, {'end': 481.195, 'text': 'And by default git has a master branch.', 'start': 479.193, 'duration': 2.002}, {'end': 484.437, 'text': 'So usually a branch is created to work on a new feature.', 'start': 481.455, 'duration': 2.982}, {'end': 489.641, 'text': "So if you're working on a web application, you might want to work on the card service, right for that.", 'start': 484.877, 'duration': 4.764}, {'end': 492.904, 'text': "You'll create a new feature branch or any name that you want to give to your branch.", 'start': 489.661, 'duration': 3.243}, {'end': 500.609, 'text': 'And once the feature is completed, it is merged back with the master branch and we delete the feature branch and every branch is referenced by head,', 'start': 493.324, 'duration': 7.285}, {'end': 502.371, 'text': 'which points to the latest commit in the branch.', 'start': 500.609, 'duration': 1.762}, {'end': 505.233, 'text': 'Whenever you make a commit head is updated with the latest comment.', 'start': 502.651, 'duration': 2.582}], 'summary': 'Git branching is used to create separate lines of development for new features, merged with the master branch after completion.', 'duration': 52.488, 'max_score': 452.745, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I452745.jpg'}, {'end': 711.259, 'src': 'embed', 'start': 687.173, 'weight': 1, 'content': [{'end': 694.298, 'text': "I'll quickly create one more branch and I'll show you again how these things are happening, because there might be some confusion still.", 'start': 687.173, 'duration': 7.125}, {'end': 700.623, 'text': "so I'll just show you again how to create a branch, how to check into that branch, how to make some changes in your local repository,", 'start': 694.298, 'duration': 6.325}, {'end': 704.046, 'text': 'add that to the staging area, make a commit and then merge it with the master branch.', 'start': 700.623, 'duration': 3.423}, {'end': 711.259, 'text': "So now what I'm going to do is I'm going to delete my feature branch because I've told you earlier as well.", 'start': 705.456, 'duration': 5.803}], 'summary': 'Demonstrating branch creation, changes, and merging in git.', 'duration': 24.086, 'max_score': 687.173, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I687173.jpg'}, {'end': 792.232, 'src': 'embed', 'start': 750.035, 'weight': 6, 'content': [{'end': 756.501, 'text': "but this is not the preferred option and it's not safe as well, because if you have some unmerged changes, then also it will delete the branch.", 'start': 750.035, 'duration': 6.466}, {'end': 762.306, 'text': 'Whereas if you type in here a lowercase D it will show you a error that will say that you have some unmerged changes.', 'start': 756.521, 'duration': 5.785}, {'end': 770.466, 'text': 'Right so always prefer hyphen small d and then feature hyphen small d and then the name of the branch that you want to delete right.', 'start': 762.904, 'duration': 7.562}, {'end': 780.149, 'text': "So now I'm going to show you one more way to create a branch which is called the git checkout hyphen B and you can give the name to your branch right.", 'start': 770.506, 'duration': 9.643}, {'end': 786.23, 'text': 'So probably I want to name my branch again as a new let the name of my branch be new.', 'start': 780.189, 'duration': 6.041}, {'end': 787.791, 'text': 'So git checkout hyphen be new.', 'start': 786.25, 'duration': 1.541}, {'end': 792.232, 'text': 'So this will not only create a branch called new but it will also check into that branch.', 'start': 788.211, 'duration': 4.021}], 'summary': "Prefer 'git branch -d' over 'git branch -d' for safe deletion of branches.", 'duration': 42.197, 'max_score': 750.035, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I750035.jpg'}], 'start': 452.745, 'title': 'Git branching and workflow', 'summary': 'Covers the introduction to git branching, creation, deletion, and use cases, along with the git workflow, demonstrating the process of staging, committing, and merging branches. it also explains git branching commands such as creating and deleting branches, with an emphasis on best practices.', 'chapters': [{'end': 623.276, 'start': 452.745, 'title': 'Introduction to git branching', 'summary': 'Introduces the concept of git branching, explaining its purpose, creation, deletion, and use cases, emphasizing the process of creating, checking out, making changes, and staging files in a new branch.', 'duration': 170.531, 'highlights': ['The purpose of branches is to create another line of development, typically used to work on new features in git, with the master branch being the default.', "Detailed explanation of the process of creating, checking out, making changes, and staging files in a new branch, with a demonstration of using git commands such as 'git branch', 'git checkout', and file modification.", "Explanation of how branches are referenced by 'head', pointing to the latest commit, and the process of merging completed features back to the master branch.", "Demonstration of creating, listing, and deleting branches in git, providing practical examples using commands like 'git branch', 'git checkout', and file modification.", 'Overview of the need for branches, their typical use for working on new features in git, and the process of merging completed features back to the master branch.']}, {'end': 704.046, 'start': 623.837, 'title': 'Git workflow and branching', 'summary': 'Explains the process of adding changes to the staging area, making a commit, and merging branches in git, with a demonstration of creating, checking out, making changes, adding to staging, committing, and merging a branch.', 'duration': 80.209, 'highlights': ['The process of adding changes to the staging area, making a commit, and merging branches in Git is demonstrated, emphasizing the ease of merging branches with the master branch.', 'Demonstrates creating a branch, checking out the branch, making changes, adding changes to the staging area, making a commit, and merging the branch with the master branch.']}, {'end': 842.656, 'start': 705.456, 'title': 'Git branching commands', 'summary': "Covers how to delete a feature branch using 'git branch -d', highlighting the preferred option to avoid deleting branches with unmerged changes, and also demonstrates creating a new branch using 'git checkout -b', emphasizing the process of switching to and making changes in the newly created branch.", 'duration': 137.2, 'highlights': ["The safest way to delete a feature branch is by using 'git branch -d' followed by the branch name, ensuring that it deletes the branch without risking unmerged changes.", "The less preferred option of deleting a branch using 'git branch -D' can be unsafe as it may delete the branch even if there are unmerged changes, leading to potential data loss.", "Creating a new branch can be achieved using 'git checkout -b' followed by the desired branch name, allowing seamless switching to and making changes in the newly created branch."]}], 'duration': 389.911, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I452745.jpg', 'highlights': ['Covers introduction to git branching, creation, deletion, and use cases, along with git workflow', 'Demonstrates process of staging, committing, and merging branches in git', 'Explains purpose of branches for creating another line of development in git', 'Demonstrates creating, listing, and deleting branches in git with practical examples', 'Emphasizes best practices for creating and deleting branches in git', 'Demonstrates adding changes to staging area, making a commit, and merging branches in git', 'Explains safest and less preferred ways of deleting feature branches in git', "Demonstrates creating a new branch using 'git checkout -b' for seamless switching"]}, {'end': 1173.789, 'segs': [{'end': 873.611, 'src': 'embed', 'start': 843.317, 'weight': 1, 'content': [{'end': 847.159, 'text': "Now what I'm going to do is I'm going to show you how to connect to a remote repository.", 'start': 843.317, 'duration': 3.842}, {'end': 849.301, 'text': 'So I have a remote repository that GitHub account.', 'start': 847.199, 'duration': 2.102}, {'end': 850.802, 'text': "I've created a repository there.", 'start': 849.381, 'duration': 1.421}, {'end': 855.525, 'text': 'So if I want to connect to that repository, what I need to do is I need to add that origin.', 'start': 851.262, 'duration': 4.263}, {'end': 864.21, 'text': "So I'll just type in here get remote add origin and the SSH link that I will just show you where you can find it.", 'start': 856.005, 'duration': 8.205}, {'end': 868.413, 'text': 'So this is my GitHub account guys and this is my repository that is git commands.', 'start': 864.65, 'duration': 3.763}, {'end': 873.611, 'text': 'If I want to copy the SSH link, I can just go ahead copy this and paste it here.', 'start': 868.893, 'duration': 4.718}], 'summary': 'Demonstrating how to connect to a remote repository on github using ssh link.', 'duration': 30.294, 'max_score': 843.317, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I843317.jpg'}, {'end': 886.164, 'src': 'heatmap', 'start': 843.317, 'weight': 0.702, 'content': [{'end': 847.159, 'text': "Now what I'm going to do is I'm going to show you how to connect to a remote repository.", 'start': 843.317, 'duration': 3.842}, {'end': 849.301, 'text': 'So I have a remote repository that GitHub account.', 'start': 847.199, 'duration': 2.102}, {'end': 850.802, 'text': "I've created a repository there.", 'start': 849.381, 'duration': 1.421}, {'end': 855.525, 'text': 'So if I want to connect to that repository, what I need to do is I need to add that origin.', 'start': 851.262, 'duration': 4.263}, {'end': 864.21, 'text': "So I'll just type in here get remote add origin and the SSH link that I will just show you where you can find it.", 'start': 856.005, 'duration': 8.205}, {'end': 868.413, 'text': 'So this is my GitHub account guys and this is my repository that is git commands.', 'start': 864.65, 'duration': 3.763}, {'end': 873.611, 'text': 'If I want to copy the SSH link, I can just go ahead copy this and paste it here.', 'start': 868.893, 'duration': 4.718}, {'end': 876.694, 'text': 'So we have successfully added the origin.', 'start': 874.972, 'duration': 1.722}, {'end': 878.536, 'text': 'Now, let me just clear my terminal.', 'start': 876.754, 'duration': 1.782}, {'end': 882.28, 'text': 'So we have connected our local repository with the GitHub account.', 'start': 879.157, 'duration': 3.123}, {'end': 886.164, 'text': 'If you face any issues with that, you can go ahead and refer my git installation video.', 'start': 882.38, 'duration': 3.784}], 'summary': 'Demonstrates how to connect to a remote repository on github and add the origin using ssh link.', 'duration': 42.847, 'max_score': 843.317, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I843317.jpg'}, {'end': 955.479, 'src': 'embed', 'start': 924.146, 'weight': 0, 'content': [{'end': 926.848, 'text': 'cloning is the equivalent of git in it.', 'start': 924.146, 'duration': 2.702}, {'end': 933.032, 'text': 'when working with a remote repository, git will create a directory locally with all the files in repository history.', 'start': 926.848, 'duration': 6.184}, {'end': 937.635, 'text': "So I'll just open my virtual machine and I'll quickly show you how you can do that.", 'start': 934.293, 'duration': 3.342}, {'end': 938.596, 'text': 'All right.', 'start': 937.656, 'duration': 0.94}, {'end': 942.139, 'text': "So what I'm going to do is I'm first going to create one more directory.", 'start': 938.636, 'duration': 3.503}, {'end': 955.479, 'text': "So let that be mkdir and the name of the directory, let it be git-repo, right? And let's move into this git-repo repository.", 'start': 942.239, 'duration': 13.24}], 'summary': 'Cloning with git creates local directory with repository history.', 'duration': 31.333, 'max_score': 924.146, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I924146.jpg'}, {'end': 1064.029, 'src': 'heatmap', 'start': 994.918, 'weight': 2, 'content': [{'end': 1003.405, 'text': 'Let me clear my terminal and now I can go ahead and pull whatever changes I made to the file that is there in my GitHub account.', 'start': 994.918, 'duration': 8.487}, {'end': 1005.726, 'text': 'So let me just show you how to do that.', 'start': 1003.885, 'duration': 1.841}, {'end': 1010.049, 'text': 'Suppose if I have a file Edureka and let me just make some changes here.', 'start': 1006.247, 'duration': 3.802}, {'end': 1015.812, 'text': "I'll just type in here.", 'start': 1014.852, 'duration': 0.96}, {'end': 1019.555, 'text': 'My name is Saurabh.', 'start': 1017.133, 'duration': 2.422}, {'end': 1023.237, 'text': 'So let it be like this.', 'start': 1021.636, 'duration': 1.601}, {'end': 1026.898, 'text': "So let's come and change this.", 'start': 1023.257, 'duration': 3.641}, {'end': 1031.705, 'text': 'So yeah now it will be reflected in my repository.', 'start': 1028.903, 'duration': 2.802}, {'end': 1037.31, 'text': "Now what I want is I want all the changes that I've been made in my remote repository in my local machine.", 'start': 1032.547, 'duration': 4.763}, {'end': 1043.897, 'text': "So for that I'll just type in here git pull origin master and here we go.", 'start': 1037.912, 'duration': 5.985}, {'end': 1047.326, 'text': 'So it says it has successfully done that.', 'start': 1045.626, 'duration': 1.7}, {'end': 1050.367, 'text': 'That means we have pulled all the files that are there in a report repository.', 'start': 1047.586, 'duration': 2.781}, {'end': 1055.308, 'text': 'So if I check so I have here edureka and readme.md files.', 'start': 1050.987, 'duration': 4.321}, {'end': 1064.029, 'text': "So if I go ahead and type in gedit edureka, let's see or all right, so I can see that the changes have been reflected.", 'start': 1055.868, 'duration': 8.161}], 'summary': 'Demonstrating pulling changes from github to local repository using git pull command.', 'duration': 60.39, 'max_score': 994.918, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I994918.jpg'}, {'end': 1110.226, 'src': 'embed', 'start': 1074.618, 'weight': 3, 'content': [{'end': 1082.783, 'text': "So if I go ahead and make some changes or if I create a file, let's say I create a file, touch git.py.", 'start': 1074.618, 'duration': 8.165}, {'end': 1086.025, 'text': 'Let that be git1.py.', 'start': 1083.584, 'duration': 2.441}, {'end': 1100.474, 'text': "So if I make some changes to this particular file, I'll write here print I love git, save it, close it right?", 'start': 1086.085, 'duration': 14.389}, {'end': 1107.084, 'text': 'So now, before we push to the remote repository, we need to add these changes to the staging area.', 'start': 1101.121, 'duration': 5.963}, {'end': 1110.226, 'text': 'We need to make a commit and then only we can push it right.', 'start': 1107.124, 'duration': 3.102}], 'summary': 'To push changes, add to staging, commit, then push to remote repository.', 'duration': 35.608, 'max_score': 1074.618, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I1074618.jpg'}], 'start': 843.317, 'title': 'Cloning and pushing in git', 'summary': 'Covers connecting local and remote repositories, cloning remote repositories, and performing git clone, push, and pull operations, with step-by-step instructions and successful demonstrations.', 'chapters': [{'end': 971.725, 'start': 843.317, 'title': 'Connecting and cloning remote repositories', 'summary': "Demonstrates how to connect a local repository to a remote repository using 'git remote add origin' and how to clone a remote repository using 'git clone', providing steps and examples.", 'duration': 128.408, 'highlights': ["The chapter demonstrates how to clone a remote repository using 'git clone' to create a local working copy of an existing remote repository. The chapter explains the process of creating a local working copy of an existing remote repository using 'git clone', which downloads the repository to a local computer.", "The process of connecting a local repository to a remote repository is illustrated using 'git remote add origin' and the SSH link, providing a practical demonstration of the connection procedure. The practical demonstration of connecting a local repository to a remote repository is given using 'git remote add origin' and the SSH link, showcasing the process of adding the origin and connecting the local repository with the GitHub account."]}, {'end': 1173.789, 'start': 972.445, 'title': 'Performing git clone and push operations', 'summary': 'Covers the process of cloning files from a git repository, making changes, pulling these changes to the local machine, adding, committing, and pushing the changes to the remote repository, with successful demonstrations of each step.', 'duration': 201.344, 'highlights': ["Successfully demonstrating the process of cloning files from a git repository and making changes, with a specific example of adding 'My name is Saurabh' to a file, reflecting the changes in the local repository.", 'Successfully showcasing the process of pulling changes from the remote repository to the local machine, with a specific demonstration of pulling all files from the repository and verifying the changes in the local environment.', "Effectively demonstrating the process of adding changes to the staging area, making a commit, and pushing the changes to the remote repository, with a specific example of adding and pushing a file named 'git1.py' with the message 'remote'."]}], 'duration': 330.472, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I843317.jpg', 'highlights': ["The chapter demonstrates how to clone a remote repository using 'git clone' to create a local working copy of an existing remote repository.", "The process of connecting a local repository to a remote repository is illustrated using 'git remote add origin' and the SSH link, providing a practical demonstration of the connection procedure.", "Successfully demonstrating the process of cloning files from a git repository and making changes, with a specific example of adding 'My name is Saurabh' to a file, reflecting the changes in the local repository.", "Effectively demonstrating the process of adding changes to the staging area, making a commit, and pushing the changes to the remote repository, with a specific example of adding and pushing a file named 'git1.py' with the message 'remote'.", 'Successfully showcasing the process of pulling changes from the remote repository to the local machine, with a specific demonstration of pulling all files from the repository and verifying the changes in the local environment.']}, {'end': 1449.041, 'segs': [{'end': 1213.685, 'src': 'heatmap', 'start': 1181.233, 'weight': 0, 'content': [{'end': 1186.517, 'text': "Now, let's talk about few advanced git commands focus on git stash git log git rebase and git revert.", 'start': 1181.233, 'duration': 5.284}, {'end': 1192.4, 'text': "So I'll quickly open my virtual machine and I will explain you there only so guys let's discuss about git stash first.", 'start': 1187.017, 'duration': 5.383}, {'end': 1197.283, 'text': 'So to save changes made when they are not in a state to commit them to a repository you use git stash.', 'start': 1192.76, 'duration': 4.523}, {'end': 1200.243, 'text': 'This will store the work and give a clean working directory.', 'start': 1197.822, 'duration': 2.421}, {'end': 1206.204, 'text': "If I have to give you an example, imagine when you're working on a new feature that's not complete but an urgent bug needs attention.", 'start': 1200.643, 'duration': 5.561}, {'end': 1207.744, 'text': "So that's when you can use git stash.", 'start': 1206.244, 'duration': 1.5}, {'end': 1210.164, 'text': 'Let me just quickly show you how you can use it.', 'start': 1208.084, 'duration': 2.08}, {'end': 1213.685, 'text': "So the first thing I'm gonna do is create a new file.", 'start': 1211.065, 'duration': 2.62}], 'summary': 'Introduction to advanced git commands: git stash, git log, git rebase, and git revert.', 'duration': 32.452, 'max_score': 1181.233, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I1181233.jpg'}, {'end': 1332.98, 'src': 'heatmap', 'start': 1252.623, 'weight': 1, 'content': [{'end': 1256.206, 'text': 'So what I can do is I can put all the uncommitted changes to a stash.', 'start': 1252.623, 'duration': 3.583}, {'end': 1262.241, 'text': 'Let me show you how can do that get stash hyphen you and here we go.', 'start': 1256.246, 'duration': 5.995}, {'end': 1267.745, 'text': 'Now go ahead and type get status nothing to do working directory clean.', 'start': 1263.122, 'duration': 4.623}, {'end': 1273.609, 'text': 'So it has converted my dirty directory to a pretty clean one, right with the help of git stash.', 'start': 1267.805, 'duration': 5.804}, {'end': 1278.633, 'text': 'right now the modification stashed away by this command can be listed with git stash list.', 'start': 1273.609, 'duration': 5.024}, {'end': 1282.015, 'text': "So I'll just type in here git stash list.", 'start': 1279.213, 'duration': 2.802}, {'end': 1283.056, 'text': 'Here we go.', 'start': 1282.656, 'duration': 0.4}, {'end': 1294.474, 'text': 'And if you want to inspect it so you can just go ahead and type git stash and show so you can inspect it here, right? Let me clear my terminal now.', 'start': 1283.657, 'duration': 10.817}, {'end': 1295.834, 'text': "So now I'm done.", 'start': 1295.054, 'duration': 0.78}, {'end': 1301.416, 'text': "I've fixed my bug and now I'm ready to you know, work on what exactly I was doing before fixing that bug right?", 'start': 1295.914, 'duration': 5.502}, {'end': 1308.739, 'text': 'So what I can do is I just want to type in here git stash apply and here we go.', 'start': 1301.897, 'duration': 6.842}, {'end': 1315.042, 'text': 'And now if I type git status, you can see that I again got the dirty directory back.', 'start': 1309.74, 'duration': 5.302}, {'end': 1317.635, 'text': 'So guys we have seen how git stash works.', 'start': 1315.874, 'duration': 1.761}, {'end': 1318.875, 'text': "Now what I'm going to do.", 'start': 1318.155, 'duration': 0.72}, {'end': 1326.598, 'text': "I'm going to show you how a git log and git revert works, right? So for that I'll quickly create a new repository.", 'start': 1318.935, 'duration': 7.663}, {'end': 1327.378, 'text': 'So let me do that.', 'start': 1326.638, 'duration': 0.74}, {'end': 1332.98, 'text': "I'll just type in here mkdir git hyphen log.", 'start': 1327.438, 'duration': 5.542}], 'summary': 'Demonstration of using git stash to manage uncommitted changes and its impact on the working directory.', 'duration': 80.357, 'max_score': 1252.623, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I1252623.jpg'}, {'end': 1408.336, 'src': 'embed', 'start': 1368.337, 'weight': 2, 'content': [{'end': 1372.257, 'text': "Now I'm gonna add it here, git add, and then finally commit it.", 'start': 1368.337, 'duration': 3.92}, {'end': 1374.778, 'text': 'Hyphen m.', 'start': 1372.277, 'duration': 2.501}, {'end': 1378.043, 'text': 'Just give a message and it is done now.', 'start': 1375.982, 'duration': 2.061}, {'end': 1381.704, 'text': 'So what I did I created a directory initialize it then I what I did.', 'start': 1378.523, 'duration': 3.181}, {'end': 1384.484, 'text': 'I made a file inside that in that file.', 'start': 1381.924, 'duration': 2.56}, {'end': 1388.086, 'text': 'I added that to my staging area that file has been added to my staging area.', 'start': 1384.645, 'duration': 3.441}, {'end': 1391.407, 'text': 'And then finally I made a comment right so till now there is no problem.', 'start': 1388.126, 'duration': 3.281}, {'end': 1394.227, 'text': 'Now, if I type here get log.', 'start': 1391.907, 'duration': 2.32}, {'end': 1396.148, 'text': 'let me show you what comes.', 'start': 1394.227, 'duration': 1.921}, {'end': 1397.828, 'text': 'so you can see that when I type git log,', 'start': 1396.148, 'duration': 1.68}, {'end': 1403.31, 'text': "there's a commit hash right there as a comment that has been made by author Shubham on this particular date and day, right?", 'start': 1397.828, 'duration': 5.482}, {'end': 1405.535, 'text': 'So this is what basically git log is.', 'start': 1403.894, 'duration': 1.641}, {'end': 1408.336, 'text': 'It shows the chronological commit history for a repository.', 'start': 1405.615, 'duration': 2.721}], 'summary': 'Performed git operations: initialized directory, added file to staging area, and made a commit. displayed commit history with git log.', 'duration': 39.999, 'max_score': 1368.337, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I1368337.jpg'}], 'start': 1173.809, 'title': 'Advanced git commands and repository operations', 'summary': 'Introduces advanced git commands including git stash, log, rebase, and revert, and explains the usage of git stash to store uncommitted work for later use. it also covers creation of new files, basic repository operations, and understanding the git log command for chronological commit history display.', 'chapters': [{'end': 1262.241, 'start': 1173.809, 'title': 'Git stash, log, rebase, and revert', 'summary': 'Introduces advanced git commands including git stash, log, rebase, and revert, highlighting the usage of git stash to store uncommitted work for later use, with an example of creating a new file, making changes, and using git stash to maintain a clean working directory.', 'duration': 88.432, 'highlights': ["The git stash command is used to store changes made when they are not in a state to commit them to a repository, providing a clean working directory, for example when working on a new feature that's not complete but an urgent bug needs attention.", 'Demonstrating the usage of git stash by creating a new file, making changes, adding it to the staging area, and then using git stash to put all uncommitted changes to a stash.']}, {'end': 1391.407, 'start': 1263.122, 'title': 'Using git stash and basic repository operations', 'summary': 'Explains the use of git stash to clean working directory and apply changes, followed by creating a new repository, adding files to staging area, and making a commit.', 'duration': 128.285, 'highlights': ['The chapter demonstrates using git stash to clean the working directory and apply changes with git stash apply, resulting in a clean working directory. It also shows how to list stashed modifications with git stash list and inspect them with git stash show.', 'The process of creating a new repository, adding a file to the staging area, and making a commit is explained, showcasing the steps of initializing, creating files, adding to staging area, and committing.', 'The detailed steps of using git stash, including commands like git stash list, git stash show, and git stash apply, are highlighted, demonstrating the process of stashing and applying changes in the working directory.', 'The steps for creating a new repository, initializing it, creating files, adding to staging area, and making a commit are elaborated, providing a comprehensive understanding of basic repository operations.']}, {'end': 1449.041, 'start': 1391.907, 'title': 'Understanding git log command', 'summary': 'Explains the git log command, which displays the chronological commit history for a repository, showing commit hashes, author names, and dates, and can be tailored to display commits based on specific parameters like author and date.', 'duration': 57.134, 'highlights': ['The git log command displays commit history, including commit hashes, author names, and dates, providing context and history for a repository.', 'It is immediately available on a recently cloned repository to view the commit history.', 'The git log command can be customized by providing parameters such as author name and date to filter the commit history based on specific criteria.']}], 'duration': 275.232, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I1173809.jpg', 'highlights': ["The git stash command is used to store changes made when they are not in a state to commit them to a repository, providing a clean working directory, for example when working on a new feature that's not complete but an urgent bug needs attention.", 'The detailed steps of using git stash, including commands like git stash list, git stash show, and git stash apply, are highlighted, demonstrating the process of stashing and applying changes in the working directory.', 'The git log command displays commit history, including commit hashes, author names, and dates, providing context and history for a repository.', 'The process of creating a new repository, adding a file to the staging area, and making a commit is explained, showcasing the steps of initializing, creating files, adding to staging area, and committing.']}, {'end': 1792.786, 'segs': [{'end': 1543.334, 'src': 'heatmap', 'start': 1506.903, 'weight': 0.982, 'content': [{'end': 1513.426, 'text': 'So in order to go back to the previous commit what I have to do is just type in here get log hyphen hyphen one line.', 'start': 1506.903, 'duration': 6.523}, {'end': 1514.667, 'text': 'This will give me one line.', 'start': 1513.507, 'duration': 1.16}, {'end': 1524.132, 'text': "So this was my last commit I want to go back right? So for that, I'm just going to type in here get revert and the hash commit hash and here we go.", 'start': 1515.027, 'duration': 9.105}, {'end': 1535.086, 'text': 'So it says that revert last commit so it has already done that now if I go ahead and check my edureka.1.py file.', 'start': 1525.757, 'duration': 9.329}, {'end': 1538.229, 'text': 'So it only says master new technologies at edureka.', 'start': 1535.546, 'duration': 2.683}, {'end': 1543.334, 'text': 'So this is how you can even perform the revert operation just by using in the commit hash.', 'start': 1538.269, 'duration': 5.065}], 'summary': "The process to revert to the previous commit was demonstrated by using 'git log --oneline' and 'git revert' commands, resulting in successful reversion of the commit.", 'duration': 36.431, 'max_score': 1506.903, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I1506903.jpg'}, {'end': 1620.971, 'src': 'embed', 'start': 1594.644, 'weight': 0, 'content': [{'end': 1598.646, 'text': 'then I use git revert with the hash commit to go back to the previous commit.', 'start': 1594.644, 'duration': 4.002}, {'end': 1604.132, 'text': "Right so with that I got only master new technologies at Edureka this one I didn't get at that time.", 'start': 1599.207, 'duration': 4.925}, {'end': 1605.337, 'text': 'Then what I did.', 'start': 1604.716, 'duration': 0.621}, {'end': 1609.04, 'text': 'I showed you git revert head, which will basically take the last commit right.', 'start': 1605.337, 'duration': 3.703}, {'end': 1613.985, 'text': 'it will revert the last commit, and the last commit was nothing but the revert operation that happened.', 'start': 1609.04, 'duration': 4.945}, {'end': 1618.789, 'text': 'that actually made my file, edureka1.py, to go back to the previous version.', 'start': 1613.985, 'duration': 4.804}, {'end': 1620.971, 'text': 'So that was my last commit right.', 'start': 1619.089, 'duration': 1.882}], 'summary': 'Using git revert, i reverted the last commit to go back to the previous version of edureka1.py.', 'duration': 26.327, 'max_score': 1594.644, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I1594644.jpg'}, {'end': 1678.714, 'src': 'embed', 'start': 1634.795, 'weight': 2, 'content': [{'end': 1636.777, 'text': "There's not a lot of things to understand here.", 'start': 1634.795, 'duration': 1.982}, {'end': 1637.697, 'text': "It's very basic.", 'start': 1636.937, 'duration': 0.76}, {'end': 1640.099, 'text': "So let's talk about rebase now.", 'start': 1638.278, 'duration': 1.821}, {'end': 1645.224, 'text': 'So basically rebase is again one more way of combining the work between different branches.', 'start': 1640.68, 'duration': 4.544}, {'end': 1650.508, 'text': 'So what rebasing does it will take a set of comments copy them and store them outside your repository.', 'start': 1645.784, 'duration': 4.724}, {'end': 1655.092, 'text': 'The advantage of rebasing is that it can be used to make linear sequence of comments.', 'start': 1651.149, 'duration': 3.943}, {'end': 1660.076, 'text': 'All right to the commit log or history of the repository stays clean if rebasing is done.', 'start': 1655.592, 'duration': 4.484}, {'end': 1663.362, 'text': 'Right? So let me just show you how it is done.', 'start': 1660.78, 'duration': 2.582}, {'end': 1665.564, 'text': 'If I just type in here get rebase master.', 'start': 1663.402, 'duration': 2.162}, {'end': 1669.847, 'text': 'Let me just go ahead and do that get rebase master.', 'start': 1665.584, 'duration': 4.263}, {'end': 1672.389, 'text': 'So the current master is up to date.', 'start': 1670.608, 'duration': 1.781}, {'end': 1673.871, 'text': "That's what the message pops up.", 'start': 1672.77, 'duration': 1.101}, {'end': 1678.714, 'text': 'So basically this command will move all our work from current branch to the master branch.', 'start': 1674.691, 'duration': 4.023}], 'summary': 'Rebase combines work between branches, creating linear sequence, keeping commit log clean.', 'duration': 43.919, 'max_score': 1634.795, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I1634795.jpg'}], 'start': 1449.601, 'title': 'Git reversion and rebase', 'summary': "Demonstrates reverting to the previous commit in git using commit hash and 'git revert head', resulting in a rollback, and explains how to use git rebase to combine work between branches and create a linear sequence of commits.", 'chapters': [{'end': 1634.635, 'start': 1449.601, 'title': 'Reverting to previous commit in git', 'summary': "Demonstrates how to revert to the previous commit in git, using both commit hash and 'git revert head', resulting in a rollback to the previous version of the file, reflecting as a commit itself.", 'duration': 185.034, 'highlights': ["The chapter explains how to revert to the previous commit in Git, first by using 'git revert' with the commit hash, resulting in only the changes reflected in the previous commit, and then by using 'git revert head', which reverts the last commit, showcasing the rollback to the previous version of the file.", "The chapter provides step-by-step instructions for using 'git revert' with the commit hash to go back to the previous commit and demonstrates the use of 'git revert head' to revert the last commit, resulting in the file reflecting the changes made in the previous commit as a new commit."]}, {'end': 1792.786, 'start': 1634.795, 'title': 'Understanding git rebase', 'summary': 'Explains how to use git rebase to combine work between different branches, keeping the commit log clean and creating a linear sequence of commits, demonstrated with an example of rebasing a branch onto the master branch.', 'duration': 157.991, 'highlights': ['Rebase is a way of combining work between different branches by creating a linear sequence of commits. Rebasing allows for a clean commit log and the appearance of sequential development, even if the work was done in parallel.', "Using the command 'git rebase master' moves all work from the current branch to the master branch. The command 'git rebase master' is used to move all work from the current branch to the master branch, creating the appearance of sequential development.", 'The chapter concludes with an invitation to explore other videos in the playlist and subscribe to the Edureka channel for further learning. The chapter ends with an invitation to explore other videos in the playlist and subscribe to the Edureka channel for further learning.']}], 'duration': 343.185, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/b5oQZdzA37I/pics/b5oQZdzA37I1449601.jpg', 'highlights': ["The chapter explains how to revert to the previous commit in Git, first by using 'git revert' with the commit hash, resulting in only the changes reflected in the previous commit, and then by using 'git revert head', which reverts the last commit, showcasing the rollback to the previous version of the file.", "The chapter provides step-by-step instructions for using 'git revert' with the commit hash to go back to the previous commit and demonstrates the use of 'git revert head' to revert the last commit, resulting in the file reflecting the changes made in the previous commit as a new commit.", 'Rebase is a way of combining work between different branches by creating a linear sequence of commits. Rebasing allows for a clean commit log and the appearance of sequential development, even if the work was done in parallel.', "Using the command 'git rebase master' moves all work from the current branch to the master branch. The command 'git rebase master' is used to move all work from the current branch to the master branch, creating the appearance of sequential development."]}], 'highlights': ['The git add command adds all the files to the staging area for git, allowing for selective file tracking during the commit operation.', "The git commit command records changes with a unique ID and commit message, demonstrated by 'first commit' with two files changed and five insertions.", 'The chapter covers the basics of git and GitHub, including the git init command to turn a directory into an empty git repository.', "The process of connecting a local repository to a remote repository is illustrated using 'git remote add origin' and the SSH link, providing a practical demonstration of the connection procedure.", "The git stash command is used to store changes made when they are not in a state to commit them to a repository, providing a clean working directory, for example when working on a new feature that's not complete but an urgent bug needs attention.", 'Rebase is a way of combining work between different branches by creating a linear sequence of commits. Rebasing allows for a clean commit log and the appearance of sequential development, even if the work was done in parallel.']}