This merges the changes from Bob’s “master” branch into Alice’s current branch. If Alice has made her own changes in the meantime, then she may need to manually fix any conflicts. This creates a new directory “myrepo” containing a clone of Alice’s repository. The clone is on an equal footing with the original project, possessing its own copy of the original project’s history. This tutorial explains how to import a new project into Git, make changes to it, and share changes with other developers. Anyone with basic UNIX command-line skills but no previous knowledge of Git will find this Git tutorial useful. This is the original Git-SCM open source website maintained by the Git community.

It should output “Your branch is up to date with ‘origin/main’. Go back to your terminal or if you’re using Visual Studio Code you can open the built-in terminal by pressing Ctrl + ` . You’ll notice that is now shown as not staged or committed. In this example, we will open the directory in Visual Studio Code by using the command code . You should see an entry for your “Add hello_world.txt” commit. You will also see details on the author who made the commit and the date and time of when the commit was made.

We’ve heard your feedback. You can now pay just once and get full access to every course on Educative.

Shows a list of all the changes that Bob made since he branched from Alice’s master branch. This operation is safe even if Alice has uncommitted local changes. The range notation “HEAD..FETCH_HEAD” means “show everything that is reachable from the FETCH_HEAD but exclude anything that is reachable from HEAD”. Alice already knows git fundamentals everything that leads to her current state , and reviews what Bob has in his state that she has not seen with this command. Note that in general, Alice would want her local changes committed before initiating this “pull”. Which will automatically notice any modified files, add them to the index, and commit, all in one step.

git fundamentals lessons

This is a short course with just 1.5 hours of content but really useful to get up to speed in a quick time. If you are just starting with Git, then this is an excellent resource, to begin with. This is another free course to learn Git and Github from Udemy, and particularly useful for beginners and junior developers. I have used this site previously to learn Algorithms, Docker, Kubernetes, Jenkins, and many more things. It has also got some of the best courses to learn Git and Github like The Git Fundamentals by James Kovacs, which covers Git in depth. Literally a game changer if you’re learning on your own. Don’t just watch or read about someone else coding — write your own code live in our online, interactive platform.


This will display the URL of the repository you created on GitHub, which is the remote for your local copy. Go from complete novice to expert in Git and GitHub using step-by-step, no-assumptions learning. This is another excellent, comprehensive course on Git from Udemy. The course starts with explaining about core concepts of Git and then guide you to download and install Git on your machine. After that, you will explore how to clone a repository, and how to create branching. You’ll then make your way to some more advanced concepts like Git stash, cherry-picking, working with multiple repositories, pushing code, and a lot more. Hello guys, if you want to learn git in 2022 and looking for the best websites then you have come to the right place.

How do I really learn Git?

  1. Udemy.
  2. Introduction to Git and GitHub [Coursera]
  3. Learn Git on CodeCademy [FREE]
  4. Pluralsight [Free Trial]
  5. Git Tutorial by BitBucket.
  6. Learn Git Branching.
  7. git — the simple guide.
  8. Git and GitHub — Step by Step for Beginners (Udemy)