Git/Github cheatsheet for Every Programmer

A Thread🧵
🔹git init
This will create .git repository in your project
🔹git add .
If you want to add everything from the project folder to the staging area
🔹git status
Shows what has already been added to the staging area and what files have been changed that need to be added to the staging area.
🔹 git commit -m "Description"
Takes the files from your staging area and commits them your local repository. In quotes try to describe the commit in brief details
🔹git branch <branch-name>
It will create a new branch
🔹git checkout <branch name>
This command is used for switching the branch
🔹git push origin <branch-name>
This will push the local repository to your remote repository.
🔹git clone <repo-url>
If you don't have your project on the computer this will allow you to clone the project into the directory you are working.
🔹git diff
It shows the difference between your current branch and another branch you are merging into
🔹git pull <remote> <branchname>
If you are working on the same codebase with other people, this command will allow you to pull the latest version from the remote repository and update your local version
🔹git merge
It lets you take the independent lines of development created by git branch and integrate them into a single branch.
🔹git log
It gives you information about the commit history for the repository
🔹git revert <unwanted commit hash>
Create new commit that undoes all of the changes made in<commit>, then apply it to the current branch.
🔹git reset <file>
Remove <file> from the staging area, but leave the working directory unchanged. This unstaged a file without overwriting any changes.
🔹git clean -n
Shows which files would be removed from the working directory. Use the -f flag in place of the -n flag to execute the clean.
Enjoyed the thread🧐

I'm sure you did✅
Now don't forget to follow @Vinaystwt to get more Developer Resources and threads

Also, Turn that Notifications icon on so that you will not miss it next time when I upload something Really amazing posts🤯

• • •

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

Keep Current with Vinay Sharma

Vinay Sharma 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 @Vinaystwt

31 Oct
7 Websites you Won’t Believe Exist 🤯

These Websites are very important for you if you are a Web Developer or App Developer

Including One *BONUS* Resource!!

A Thread↓
1⃣Who can use
It's a tool that brings attention and understanding to how color contrast can affect different people with visual impairments.

🔗whocanuse.com Image
2️⃣Screen Size Map
A comparison chart of popular viewport sizes in device-independent pixel.

🔗screensizemap.com Image
Read 11 tweets
31 Oct
Learn Programming by Playing Games

A Thread🧵
🔹Codingame: CodinGame is a challenge-based training platform for programmers where you can improve your coding skills with fun exercises
codingame.com
🔹Screeps: Screeps is a fun game and has a unique angle to it. Using actual programming instead of a pseudo-language actually allows the players to focus on better coding
screeps.com
Read 11 tweets
11 Oct
7 Websites you Won’t Believe Exist 🤯

These Websites are very important for you if you are a Web Developer or App Developer

Including One *BONUS* Resource!!

A Thread↓
1⃣Apption
Turn any HTML codes into Notion embeddable

🔗apption.co
2⃣Poet .so
Create beautiful Images of your Twitter Posts

🔗poet.so
Read 11 tweets
10 Oct
Crypto Terminology, Netflix Strategy, Hacks to improve brainpower, ReactJS tools

A Meta Thread↓
Read 16 tweets
25 Sep
How to become a Developer, Blockchain, How Google search works, Design Resources

A Meta Thread ↓
How To Become a Developer - Without Stressing Yourself Out
@TheJackForge

Story of A 27-year-old dyslexic ADHD deadbeat turns $10k into $600,000,000
@jspujji

Read 17 tweets
25 Sep
Expanded Widget 🆚 Flexible Widgets in Flutter

A Thread 🧵
Both Expanded widget and Flexible widget are used in Row, column to expand and fill the available space

But Both seem to be the same, But Let's Learn the difference
🔹Expanded Widget expands a child of a Row, Column, or Flex so that the child fills the available space.

The expanded widget takes the entire available space.
Read 10 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

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

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(