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, 2018June 20, 2023 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

  • Linux Terminology basics you need to know
    Git Elements – Post 1 Git and GitHub
  • Linux Terminology basics you need to know
    Git Terminologies Post 3 Developer Guide
  • Aftermath of Taking Over Git by Microsoft 1
    Aftermath of Taking Over Git by Microsoft Tech News
  • How Bounty Hunting changed from web2 to web3 Bounty X hunter
    How Bounty Hunting changed from Web2 to Web3 with Bounty X Hunter Developer Guide

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
  • A New Book in the Hood Javascript Grammar by JS Tut Banner
    A New Book in the Hood Javascript Grammar by JS Tut Developer Guide
  • Google Map JSON Parser 2
    Google Map JSON Parser Developer Guide
  • Editing Tools to level up your social media Banner
    4 Editing Tools to Level Up Your Social Media Posts Web Guide
  • How to Install PHP XAMPP 3
    How to Install PHP XAMPP PHP Tutorials
  • Tekraze Plural Sight courses
    Learn with Plural – Learn with Google Tutorials
  • Learn Git like You are five 4
    Learn Git like You are five Developer Guide
  • Easy to use AI image generator Banner
    3 Easy-to-Use AI Image Generator: A Sure Way to Artistic Photos Web Guide
  • Benefits of Providing Cyber Security Training to Your Employees Banner
    13 Benefits of Providing Cyber Security Training to Employees Emerging Startups

Affliate Links

Sell with Payhip

Earn with Magenet

Sell and Buy with Adsy

GainRock affiliate Program

Automatic Backlinks

Advertise with Anonymous Ads

Crypto Blogs

  • Blurt
  • Hive
  • Serey
  • Nostr

accessily tekraze verificationIndian Blog Directory

Copyright © 2023 Tekraze.

Powered by PressBook News WordPress theme