Meet Jain🦅(🛠️,⛓️) Profile picture
Oct 31, 2021 18 tweets 5 min read Read on X
Git keywords every programmer should know

A thread 🧵
🔸Repository
A repository is like a folder for your project. It contains the collection of the file as well as the history of the changes made to those files. Sometimes Github users shorten this as 'repo'
🔸Branch
A branch is a parallel version of a repository. It is contained within the repository but does not affect the primary or master branch allowing you to work freely without disrupting the 'live' version.
Also, you can merge your branch back into the master branch when you are ready to publish your changes.
🔸Master
The primary branch of all repositories. All committed and accepted changes should be on the master branch. You can work directly from the master branch, or create other branches.
🔸Checkout
The git checkout command is used to switch branches in a repository. git checkout master would drop you into the master branch.
🔸Commit
A commit or revision is like saving; an updated file to its original folder. It is used to record the changes in the repository.
🔸Push and pull
Push updates a remote branch with the commits made to the current branch. You are literally “pushing” your changes onto the remote.
While pull is used to receive data from Github.
🔸Merge
Taking the changes from one branch and adding them into another (traditionally master) branch. These commits are usually first requested via pull request before being merged by a project maintainer.
🔸Pull Request
If someone has changed code on a separate branch of a project and wants it to be reviewed to add to the master branch, that someone can put in a pull request.

Continued ↓
Pull requests ask the repo maintainers to review the commits made, and then, if acceptable, merge the changes upstream. A pull happens when adding the changes to the master branch.
🔸Clone
It is used to make a copy of the target repository or clone it, but you can't push changes to the original repo if you are not the project owner.
🔸Fork
A fork is a rough copy of another user's repository. Forking a repository allows you to freely test and debug with changes without affecting the original project.
📌Difference between fork and clone
This video explains it simply -
When you fork a repository, you create a copy of the original repository (upstream repository) but the repository remains on your GitHub account.
Whereas, when you clone a repository, the repository is copied onto your local machine with the help of Git.
🔸Cherry picking
Cherry-picking is the act of picking a commit from a branch and applying it to another.
If you liked this, make sure to:

1. Follow me @meetjain74

2. Retweet the first tweet

3. Turn on the notifications to never miss these amazing tweets.

Thanks so much for getting to the end of the thread! Let me know your thoughts below

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Meet Jain🦅(🛠️,⛓️)

Meet Jain🦅(🛠️,⛓️) Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @meetjain74

Aug 2, 2022
Consensus Mechanism in Blockchain

A thread🧵
📌Blockchain
Blockchain is a distributed decentralized network that provides immutability, privacy, security, and transparency. There is no central authority present to validate and verify the transactions.
Hence we require some consensus protocol.
📌What does consensus means?
A general agreement that is accepted by all people in a group.

In Blockchain, consensus refers to that all nodes in the network reach a particular agreement about the blocks in the blockchain
Read 18 tweets
Mar 24, 2022
NFT Use cases

A thread🧵 Image
🎵Music
Your unique musical artwork can be sold in the form of NFT to anyone. The owner has the right to determine how the composition is used.
🎮Gaming
NFTs have the best use case in the gaming world. Unique characters or avatars or items in the game can be bought and sold using NFTs. Example - purchasing weapons for the game via an NFT marketplace to play in the game.
Read 20 tweets
Feb 25, 2022
What are DApps?

A mega thread🧵
Most of the apps today run on centralized networks i.e they are controlled by a single authority. For example, social media networks, banks, and streaming services hold all of our data on centralized servers.
When you access any of these apps, a request is sent to the server and you gets a response back. Suppose you entered your credentials details to login into that system as a request and the response comes in form of access to the website or not(in case of invalid credentials).
Read 31 tweets
Feb 24, 2022
What is Defi?

A mega thread🧵 Image
Defi stands for 'Decentralized finance'. It refers to financial applications built on blockchain technology that enable digital transactions between multiple parties.

Before diving into it further, let us first understand centralized or traditional finance.
📌Example scenario
Suppose a person named Luv has some money and he wants to earn interest on that money. What will he do?

You are right!
He will deposit it in any bank and earn interest on that.
Read 92 tweets
Feb 22, 2022
What is the metaverse?

A mega thread🧵
Imagine that you and your friend physically far apart attending a 'Justin Bieber' concert 'virtually' with thousands of fans from across the globe together.

No, I don’t mean being part of an online concert of the like we have all attended in the pandemic times.
I am talking of virtual concerts in the Metaverse, which will be much more immersive than listening to a live video.

How do these events take place?

The event organizers can imagine how the concert would look…they will transport you to a beach, the moon, or some fantasy world.
Read 29 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(