DEV Community

Cover image for Git Simple Terms
Ibrahim S
Ibrahim S

Posted on

1

Git Simple Terms

Git

is a distributed version control system for tracking changes in source code during software development.

Feature of Git:

  1. It keeps track of the past.
  2. It's open-source and free.
  3. Non-linear development is encouraged.
  4. Backups are created.
  5. Scalable.
  6. Encourages teamwork.
  7. Development that is dispersed.

There are three stages to the Git workflow:

Working directory - Make changes to the files in your current working directory.

Staging area (Index) - Arrange the files in your staging area and take photographs of them.

Git repository (directory) - Make a commit to save the snapshots to your Git directory indefinitely. Make modifications to any existing version, stage them, and commit.

Below some git commands 👇

Core:

• git init
• git clone
• git add
• git commit
• git status
• git diff
• git checkout
• git reset
• git log
• git show
• git tag
• git push
• git pull

Branching:

• git branch
• git checkout -b
• git merge
• git rebase
• git branch --set-upstream-to
• git branch --unset-upstream
• git cherry-pick

Merging:

• git merge
• git rebase

Stashing:

• git stash
• git stash pop
• git stash list
• git stash apply
• git stash drop

Remotes:

• git remote
• git remote add
• git remote remove
• git fetch
• git pull
• git push
• git clone --mirror

Configuration:

• git config
• git global config
• git reset config

Plumbing:

• git cat-file
• git checkout-index
• git commit-tree
• git diff-tree
• git for-each-ref
• git hash-object
• git ls-files
• git ls-remote
• git merge-tree
• git read-tree
• git rev-parse
• git show-branch
• git show-ref
• git symbolic-ref
• git tag --list
• git update-ref

Porcelain:

• git blame
• git bisect
• git checkout
• git commit
• git diff
• git fetch
• git grep
• git log
• git merge
• git push
• git rebase
• git reset
• git show
• git tag

Alias:

• git config --global alias.

Hook:

• git config --local core.hooksPath

GitHub is just a service provider for a tech called GIT. Git is a source/version control technology.

GitHub is one of the biggest service provider.

Several risks associated using Git

  1. Data loss
  2. Security
  3. Merge conflicts
  4. Misuse of branch management
  5. Open-source risk

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay