Skip to content
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Corona Virus Stats (Covid-19)
  • Work with us
  • FB
  • LinkedIn
  • Twitter
  • Instagram.com
Tekraze

Tekraze

Dive Into Technology

  • Guides
    • Developer Guide
    • PC Guide
    • Web Guide
    • Android Guide
    • Music
    • Tutorials
  • Feed
    • Tech News
    • Shared Tech
    • Gaming Videos
    • Unboxing videos
  • Forums
    • Android Apps
    • Angular Npm Packages
    • Useful Site Links
    • Tech Queries
    • Windows OS Help
    • Web Guide and Help
    • Android Os And Rooting
    • Jhipster Discussion
    • Git & GitHub forum
    • Open Source Forum
  • Work with us
  • Toggle search form
Linux Terminology basics you need to know

Git Elements – Post 2

Posted on March 3, 2018March 29, 2022 By Gaurav Raheja No Comments on Git Elements – Post 2

So back here again with another post on Git Elements, as promised. In the Git Elements – Post 1, I have discussed about the Git Objects. Today, i will discuss about the common operation that is performed with GIT. That is pull, push, fetch, merge, rebase, clone. First of all, I will discuss about pull, fetch, clone because three terms seems similar and then will go over push, and then merge and rebase.

Table of Contents

  • Clone
  • Pull
  • Fetch
  • Push
  • Merge
  • Rebase

Clone

You can easily infer the meaning of clone operation of git by the word. Clone operation create a new instance or copy of the remote repository into your local machine. You can correlate it with the download. Whenever you download something to your system from a server or website, you create a new copy of that file to your system.

Pull

Pull operations copies the entire changes along with git objects from the remote repository to the local machine, i.e. at your computer. To remember the function of pull you can correlate it with update. As you update anything in your system only the changes get downloaded to your system. Pull not only performs the updating process but also merges them to your main repository.

Fetch

Fetch operations does action similar to pull, it copies the changes from the remote repository. But doesn’t merges them into your main branch or the branch you are currently in.

 

Push

Push operation copy the entire changes along with git objects to the remote server from your local system. Correlate it with upload. But it is not quite similar to upload that you normally does. If you have ever uploaded the similar file to a remote repository you might have seen that it always create new copy to their server. Push operation only add new git objects (Read it in previous post) to the server, but data and files are not always newly created.

Merge

Git Rebase
Git Merge

In the last post, i have told you about branch object. Your repository can have many branch object but when you are done with the testing of the feature that you are doing in another branch. You want to update those changes to your main branch. This is performed by merge operation. Merging is adding changes of one branch into another generally to master branch(in pull operation).

 

Rebase

Git Rebsing
Git Rebasing

Rebase is similar to the merge. That is it add the changes of one branch to the another branch but it does it in a different manner, what it does is it moves the branch that is to be merged(feature branch in above picture) in another branch(master branch in above picture) base and reassign the head of feature branch as the the head of master branch

That’s it for today thank you for reading the post. Another post will be published on 18th of March, 2018

 

Content Protection by DMCA.com
Git and GitHub, Developer Guide Tags:Git, Github

Post navigation

Previous Post: Female Founded StartUps
Next Post: Biggest Innovation Since internet – Blockchains

Related Posts

  • How to Install PHP XAMPP 1
    How to Install PHP XAMPP PHP Tutorials
  • free graphic design websites for graphic designers banner in 2021
    30 Free Graphic Design Websites for Graphic Designers in 2023 Developer Guide
  • Synaptic package manager in linux basics linux guide part 3 banner
    Synaptic package manager in Linux infographics basic Linux tools guide part 3 Developer Guide
  • Pro. Web Developer - I hope You might know these things 2
    Pro. Web Developer – I hope You might know these things Developer Guide
  • Common Docker Commands you must know Tekraze
    Common Docker Commands you must know Developer Guide
  • Benefits of Providing Cyber Security Training to Your Employees Banner
    13 Benefits of Providing Cyber Security Training to Employees Emerging Startups

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Advertisements

Subscribe to updates

Enter your email below to subscribe





Posts by Categories

Advertisements
  • Things you need to know to be a Developer 3
    Things you need to know to be a Developer Developer Guide
  • As the student passed matriculation examination, lots of institution advertisements and call to the students, to join the institution to crack JEE main exams. As the sheep moves in a herd and we being dumb, as a kid with no proper guidance saw huge dreams that if i will join the institution i will be in best university in the India.
    Computer Science Engineering – Buzz Word or Bamboozle Developer Guide
  • 12 Tips on How to Extend the Life of Your Laptop
    13 Tips on How to Extend the Life of Your Laptop easily Tech News
  • Tekraze front end design components
    Front End Design components Developer Guide
  • Tekraze Web development
    The Absolute Beginners Guide for Learning Web Development in 2018 Developer Guide
  • 5 best apps for Android privacy 4
    5 best apps for Android privacy Android Guide
  • Common Mac Issues and Ways to fix them
    6 Common Mac Issues & Easy Ways to Fix Them PC Guide
  • Google Map JSON Parser 5
    Google Map JSON Parser Developer Guide

Affliate Links

Sell with Payhip

Earn with Magenet

Sell and Buy with Adsy

GainRock affiliate Program

Automatic Backlinks

Advertise with Anonymous Ads

accessily tekraze verificationIndian Blog Directory

Copyright © 2023 Tekraze.

Powered by PressBook News WordPress theme