TGViewer
Coding Interview Resources Coding Interview Resources @crackingthecodinginterview ยท 52.1K subscribers
Post #1050 7.41K
๐—š๐—ถ๐˜ ๐—˜๐˜€๐˜€๐—ฒ๐—ป๐˜๐—ถ๐—ฎ๐—น๐˜€: ๐—ฌ๐—ผ๐˜‚๐—ฟ ๐—ฐ๐—ต๐—ฒ๐—ฎ๐˜ ๐˜€๐—ต๐—ฒ๐—ฒ๐˜ ๐—ณ๐—ผ๐—ฟ ๐—บ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด ๐˜ƒ๐—ฒ๐—ฟ๐˜€๐—ถ๐—ผ๐—ป ๐—ฐ๐—ผ๐—ป๐˜๐—ฟ๐—ผ๐—น ๐Ÿ‘จ๐Ÿ’ป


Whether you're a seasoned developer or just starting out, Git is an essential tool for seamless collaboration and efficient workflows. Here's a quick recap of the most common Git commands to keep you on track:

โœจ๐—š๐—ฒ๐˜๐˜๐—ถ๐—ป๐—ด ๐—ฆ๐˜๐—ฎ๐—ฟ๐˜๐—ฒ๐—ฑ:
git init: Initializes a new Git repository.
git clone <repo_url>: Clones an existing repository to your local machine.

๐Ÿ“„๐—ง๐—ฟ๐—ฎ๐—ฐ๐—ธ๐—ถ๐—ป๐—ด ๐—–๐—ต๐—ฎ๐—ป๐—ด๐—ฒ๐˜€:
git status: Checks the status of files in your working directory.
git add <file> or git add .: Stages files for commit.

โœ…๐—–๐—ผ๐—บ๐—บ๐—ถ๐˜๐˜๐—ถ๐—ป๐—ด ๐—ช๐—ผ๐—ฟ๐—ธ:
git commit -m "message": Commits staged changes with a descriptive message.

๐Ÿ”€๐—•๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต๐—ถ๐—ป๐—ด ๐—ฎ๐—ป๐—ฑ ๐— ๐—ฒ๐—ฟ๐—ด๐—ถ๐—ป๐—ด:
git branch: Lists existing branches.
git branch <new_branch>: Creates a new branch.
git checkout <branch>: Switches to a different branch.
git merge <branch>: Merges changes from one branch into another.
git checkout -b <new_branch>: Creates and switches to a new branch.

๐Ÿ‘จ๐Ÿ’ป๐—ฅ๐—ฒ๐—บ๐—ผ๐˜๐—ฒ ๐—–๐—ผ๐—น๐—น๐—ฎ๐—ฏ๐—ผ๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป:
git remote -v: Lists remote repositories.
git fetch origin <branch>: Fetches changes from a remote branch.
git merge origin/<branch>: Merges fetched changes into the current branch.
git push origin <branch>: Pushes local changes to a remote branch.

๐Ÿ”Ž๐—ง๐—ฟ๐—ฎ๐—ฐ๐—ธ๐—ถ๐—ป๐—ด ๐—›๐—ถ๐˜€๐˜๐—ผ๐—ฟ๐˜†:
git log: Shows a list of commits.
git log --oneline: Displays a condensed commit history.

โช๐—จ๐—ป๐—ฑ๐—ผ๐—ถ๐—ป๐—ด ๐— ๐—ถ๐˜€๐˜๐—ฎ๐—ธ๐—ฒ๐˜€:
git revert <commit>: Reverses a specific commit.
git reset --hard HEAD: Resets the working directory to the last commit (use with caution!).

๐—ง๐—ฎ๐—ด๐—ด๐—ถ๐—ป๐—ด ๐— ๐—ถ๐—น๐—ฒ๐˜€๐˜๐—ผ๐—ป๐—ฒ๐˜€:
git tag: Lists existing tags.
git tag -a v1.0 -m "tag": Creates a new tag for a specific commit.

โš™๐—–๐—ผ๐—ป๐—ณ๐—ถ๐—ด๐˜‚๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป:
git config --global user. name "name": Sets your global Git username.
git config --global user. email "email": Sets your global Git email.
  • ๐Ÿ‘ 11
  • ๐Ÿ‘ 3
More from @crackingthecodinginterview
  1. Oct 17, 2026๐—œ๐—•๐—  ๐—™๐—ฅ๐—˜๐—˜ ๐—ง๐—˜๐—–๐—› ๐—–๐—ข๐—จ๐—ฅ๐—ฆ๐—˜๐—ฆ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ! ๐ŸŽ“ Explore IBM Cognitive Class and buildโ€ฆ
  2. Oct 16, 2026๐——๐—ฎ๐˜๐—ฎ ๐˜€๐—ฐ๐—ถ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ช๐—ถ๐˜๐—ต ๐—”๐—œ๐Ÿ˜ Future Ready Data Scienโ€ฆ
  3. Oct 16, 2026If you're working with data pipelines, these repositories are very useful: ๐Ÿš€๐Ÿ“Š ibis: A Pyโ€ฆ
  4. Oct 13, 2026๐—ง๐—ข๐—ฃ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ข๐—จ๐—ฅ๐—ฆ๐—˜๐—ฆ ๐—ง๐—ข ๐—•๐—ข๐—ข๐—ฆ๐—ง ๐—ฌ๐—ข๐—จ๐—ฅ ๐—ฆ๐—ž๐—œ๐—Ÿ๐—Ÿ๐—ฆ ๐—œ๐—ก ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ! Explorโ€ฆ
  5. Oct 12, 2026๐Ÿš€ ๐—ช๐—ต๐—ถ๐—ฐ๐—ต ๐—ง๐—ฒ๐—ฐ๐—ต ๐—ฆ๐—ธ๐—ถ๐—น๐—น ๐—ช๐—ถ๐—น๐—น ๐—ฌ๐—ผ๐˜‚ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ? Want to builโ€ฆ
  6. Oct 9, 2026๐Ÿ”ฅ SQL Interview Case Studies (Advanced Business Scenarios) ๐Ÿ’ฏ ๐Ÿง  Case Study 1: Find Repeaโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’