Skip to main content


Welcome to Daily Updates

*** Happy Learning***

Quick Links


==> Online Fun Games hub

==>Daily Job Updates IT and Non IT

==>Every month Current Affairs

==>Every month Dividend, Bonus Issue and Stock Split information

==> JAVASCRIPT QUIZ

==>AADHAAR download, Date of birth,name and Address correction, PVC card and more links

==> MICROSOFT EXCEL TUTORIAL

==> SQL Editor - For Practice

Git Commands Cheat Sheet + Interactive Git Playground

Ultimate Git Commands Tutorial & Interview Questions Guide

Ultimate Git Commands Guide

Master Git from beginner to advanced with commands, interview questions and interactive Git playground.

What is Git?

Git is a distributed version control system used for tracking code changes, collaboration and DevOps workflows.

Most Important Skill for Developers & QA Engineers

Git Commands with Description

git init

Creates a new Git repository inside current project folder.

git init

git clone

Downloads an existing remote repository into your local machine.

git clone https://github.com/user/repo.git

git status

Shows modified, staged and untracked files in repository.

git status

git add .

Adds all changed files into staging area before commit.

git add .

git commit -m

Creates snapshot of staged changes with commit message.

git commit -m "Added login automation"

git push

Uploads local commits to remote repository server.

git push origin main

git pull

Downloads latest changes and merges them into local branch.

git pull

git fetch

Downloads repository updates without merging changes.

git fetch

git branch

Displays available branches in repository.

git branch

git checkout -b

Creates and switches to a new branch.

git checkout -b feature-login

git merge

Combines one branch into another branch.

git merge feature-login

git stash

Temporarily saves unfinished changes without commit.

git stash

git rebase

Moves branch commits onto another base branch.

git rebase main

git cherry-pick

Copies selected commit from one branch into another branch.

git cherry-pick a1b2c3

git reset --hard

Deletes commits and removes changes permanently.

git reset --hard HEAD~1

git log

Displays repository commit history.

git log

Most Used Git Commands Table

Command Description
git init Initialize repository
git clone Clone repository
git add . Add all files
git commit Create commit
git push Upload changes
git pull Download latest changes
git stash Temporary save changes
git rebase Reapply commits
git cherry-pick Copy commit

Git Interview Questions & Answers

1. What is Git?

Git is a distributed version control system used for tracking and managing source code changes.

2. Difference between Git and GitHub?

Git is a version control software while GitHub is a hosting platform for Git repositories.

3. What is staging area?

Staging area is an intermediate area where changes are prepared before commit.

4. What is branching in Git?

Branching allows developers to work independently on features without affecting main branch.

5. What is merge conflict?

Merge conflict occurs when multiple branches modify same lines differently.

6. Difference between pull and fetch?

Fetch downloads changes only while pull downloads and merges automatically.

7. What is Git stash?

Git stash temporarily stores unfinished changes without committing them.

8. What is HEAD in Git?

HEAD points to latest commit in current branch.

9. What is Git rebase?

Git rebase reapplies commits on another branch to maintain clean history.

10. Difference between reset and revert?

Reset removes commits while revert safely creates reverse commit.

11. What is cherry-pick?

Cherry-pick copies a selected commit into another branch.

12. What is .gitignore?

.gitignore excludes unnecessary files from Git tracking.

13. What is detached HEAD state?

Detached HEAD means Git points directly to commit instead of branch.

14. What is upstream branch?

Upstream branch is linked remote tracking branch for local branch.

15. Explain Git workflow.

Modify files → Add changes → Commit changes → Push to remote repository.

Interactive Git Playground

Practice Git commands directly inside browser.

Welcome to Interactive Git Playground Try Commands: git init git status git add . git commit -m git push git branch git stash git log

Comments

Popular posts from this blog

JNTUK R16 SGPA and CGPA calculator for Lateral entry b.tech

Lateral entry students those are joined directly engineering by completing polytechnic, they may or may not appeared for ECET for getting seat in engineering course. that is B.Tech students studied course in 4 years but lateral entry students studied course is 3 years, that one year spend in polytechnic course. Lateral entry students strong in Technically than regular students. for SGPA calculator -   click here NOTE: IF ANYONE WANT CALCULATE UPTO SOME SEMISTERS(LIKE UPTO 3-2) FOR PLACEMENTS CAN PROVIDE REMAINING SGPAS AND TOTAL CREDITS AS ZEROS(0) THEN WILL GET ACCURATE CGPA TILL THAT PARTICULAR SEMISTER. FOR LATERAL ENTRY SCHEME B.TECH CGPA IS... FIRST SEMISTER SGPA    total credits   SECOND SEMISTER SGPA    total credits   THIRD SEMISTER SGPA    total credits   FOURTH SEMISTER SGPA    total credits  ...

JNTUK Convocation VIII for 2018-19 and 2019-20 batch OD apply

JNTUK Convocation VIII for 2018-19 and 2019-20 batch, who have taken the PC in the period of 01/01/2019 to 31/12/2020 For more details Click here last Date to apply - 18-12-2021 Required Documents: 1. PC 2. CMM (For UG ) 3. SSC 4. Recent Photo  5. For PG courses - Sem wise mark sheets 6. Adhaar front and back scanned copy 7. Bank challan or Payment - Those made offline payment should submit hard copies of above documents at the university examination Fee - Rs.2000/- Process to apply: 1. Register with Hall ticket number and email Id(user name) - Click here 2. Login with user name(E-mail ID) and password - click here 3. Enter the details and next step will be payment  Note: Updation of payment status into complete status may take 2-3 days 4. Then need to attach the required documents 5. Next step is to check the details and everything and then click on check box by agreeing that there information was furnished by you is true. 6. There will be no Submit option that is only downlo...

JNTUK R16, R19 SGPA CALCULATOR

JNTUK R16, R19 SGPA calculator, it is calculated as the sum of multiple of grade point with credit and then division with sum of credits to that semister. SGPA gives the marks in points out of 10 in the particular semister. Grade - Grade points 1. O - 10 2. S - 9 3. A - 8 4. B - 7 5. C - 6 6. D - 5 7. F - FAIL NOTE: IF ANY SEMISTER HAVE LESS THAN 9 SUBJECTS THEN PLACE ZEROS REMAINING BOXES IN GARDE POINT AS WELL AS CREDT BOX PLACE ZEROS. ACCURATE SGPA WILL COME. CALCULATE SGPA : FIRST SUBJECT Grade points    Credits   SECOND SUBJECT Grade points    credits   THIRD SUBJECT Grade points     credits   FOURTH SUBJECT Grade points    credits   FIFTH SUBJECT Grade points    credits   SIXTH SUBJECT Grade points    credits   SEVENTH SUBJECT Grade points     c...