Github command that you should definitely know

πŸ§΅πŸ§΅πŸ‘‡πŸ‘‡
01. Git config

this command is used to set up a name or email that is associated with your GitHub account and link-local machine to Github.

syntax :
git config –-global user.name β€œ[name]”
git config -–global user.email β€œ[email address]”

πŸ‘‡πŸ‘‡
02. Git Init & GIt add

cd // used to change directory

git init [repository name] // used to initalisize your repository

git add [file] // used to add your repo into a staging area

git add . // used to add all files
03. Git commit

git commit -m β€œ[ Type in the commit message]”

// used to add commit your changes into a staging area like file addition, deletion, etc.
04. Git log & Git status

git log //used to check the history of the current branch

git status // used to see the list of files that have to be committed
05. Git branch

git branch // used to list all branches

git branch [branch name] // used to create branch

git branch -d [branch name] // used to delete branch

git checkout [branch name] // used to switch from one branch to other

git merge [branch ] // merge branches
06. Git remote

git remote add [variable name ] [Remote Server Link]

// used to connect local repository to a remote server
07. Git push & Git pull

git push [variable name] master

// used to send the local commit to the remote repository

git pull [Repository Link]

// used to fetch servers commit to local commit.
if you found this thread useful like and retweet the full thread so it helps others also.

πŸ‘‡πŸ‘‡

β€’ β€’ β€’

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

Keep Current with Ravi Kumar

Ravi Kumar 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 @ravikmmr

12 Jul
Projects to brush up on your Html skills
(only HTML)

πŸ§΅πŸ§΅πŸ‘‡πŸ‘‡ Image
1. HTML personal website

create your portfolio website and use as many tags as possible for your portfolio like <table> tag , <img> tag,<hr> tag etc.

demo projects snapshot

πŸ‘‡πŸ‘‡ Image
2. Documentation page

create your own documentation page for your notes and report with your own functionality and practice all links, heading, and paragraph tags.

demo project snapshot

πŸ‘‡πŸ‘‡ Image
Read 7 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!

:(