×
Home Discussions Write at Opengenus IQ
×
  • DSA Cheatsheet
  • HOME
  • Track your progress
  • Deep Learning (FREE)
  • Join our Internship 🎓
  • RANDOM
  • One Liner

git

A collection of 26 posts

Software Engineering

Git vs GitHub [Differences Explained]

Git and GitHub are widely used tools in the field of software development. While Git is a distributed version control system, GitHub is a web-based hosting service for Git repositories.

Ayush Jaiswal
git

A Comprehensive Guide to Git - All you need for VCS

Our Git cheat sheet covers everything from the basics, such as creating a new repository, committing changes, and branching and merging code, to more advanced tasks like resolving merge conflicts and rebasing code.

Shreyas Sukhadeve Shreyas Sukhadeve
git

75 Interview Questions on Git

In this article, we have brought you 75 interview questions on Git covering types like Multiple Choice Questions(MCQs) and Descriptive questions.

Suraj Kumar Suraj Kumar
git

Git delete master branch

In this article, we have presented the technical details why deleting a master branch is not straight-forward and presented the commands to delete the master branch of any Git repository (local or remote) and also, covered the case when the repository is hosted at GitHub, GitLab or BitBucket.

Benjamin QoChuk, PhD Benjamin QoChuk, PhD
git

Git delete remote branch [2 methods]

In this article, we have explored 2 different ways to delete a remote branch in Git repository.

Benjamin QoChuk, PhD Benjamin QoChuk, PhD
git

Git delete local branch [3 methods]

In this article, we have presented 3 methods to delete local git branches along with git branch diagrams so that you can visualize the process. We have explained the case of deleting main local branches as well.

Benjamin QoChuk, PhD Benjamin QoChuk, PhD
git

push declined due to email privacy restrictions [FIXED]

In this article, we have explored the reason behind the error "push declined due to email privacy restrictions" along with two approaches to fix this issue while pushing your code changes on GitHub.

Geoffrey Ziskovin Geoffrey Ziskovin
git

See changes in a specific Git commit

In this article, we have presented how to see the code changes in a specific Git commit using "git diff" command.

Geoffrey Ziskovin Geoffrey Ziskovin
Software Engineering

Viewing the history of git commits (git log)

In this article, we have explored how we can view the history of git commits that is using git log. We have explored several different options that can be used along with "git log".

Nikita Masand Nikita Masand
Software Engineering

Undoing Local Changes in Git when in the Working area or Staging area

In this article, we have explored how to can undo Local Changes in Git when in the Working area or Staging area. We have demonstrated this with example and complete understanding.

Nikita Masand Nikita Masand
Software Engineering

Gerrit vs GitHub vs GitLab

The main advantage of Gerrit as compared to GitHub and GitLab is that it has only features which are absolutely necessary which makes it a perfect fit for professional use.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Ultimate Guide to use Gerrit

We have gone through the basic ideas, commands and work flow of Gerrit so that you can get comfortable using Gerrit at your first attempt.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Steps to create a pull request at GitHub

In this guide, we will walk you through the process of creating a pull request at any GitHub project and will involve followed practices like branches

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Exploring .git folder of TensorFlow

We will explore the .git folder TensorFlow along with .github folder and .gitignore file. You will learn that TensorFlow will not accept commits with "WIP" text and much more

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

What is Git's description file?

Git generates a file named description which contains the name of the repository as set by the user. It is located at .git/description.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Install Git on any operating system

We have covered the commands to install git for the following operating systems: Ubuntu, RHEL, OpenSUSE/ SLES/ SLED, Windows, MacOS and Fedora. Following the installation, you need to configure git to add your username and email id to get started.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Git: git remote add command

git remote add command is a basic git command which add a remote repository as an origin of your local repository. The basic idea is that the remote repository is the final working repository which is considered by everyone and your local repository is your local copy holding your changes

OpenGenus Tech Review Team OpenGenus Tech Review Team
git

Git: git commit command

git commit is a basic git command which saves the staged changes made to your local repository. We have explored how we can skip the add command and the information provided by the commit command of Git

OpenGenus Tech Review Team OpenGenus Tech Review Team
git

Git diff command

Git diff command show changes between the working tree and the index or a tree, changes between the index and a tree, changes between two trees, changes between two blob objects, or changes between two files on disk.

OpenGenus Tech Review Team OpenGenus Tech Review Team
git

Git add command: track a new file

In this article, we learnt how to track a new file in a project using Git. In the process, we explored the git add command to add a new file to tracking, touch command to create a new file and git status command on two different occasions to explore the status of the content tracked by Git.

OpenGenus Tech Review Team OpenGenus Tech Review Team
git

Git Status command: File stages in Git

In this article, we have explored the various stages that a file assumes in Git. In the process, we came across tracked and untracked files and committed, modified and staged files and the significance of each stage in relation to git status.

OpenGenus Tech Review Team OpenGenus Tech Review Team
git

Git: git status command

In this article, we have explored the git status command which gives us information regarding our current branch, remote repository, changes that have been staged for commit and changes that have not been staged for commit. In the process, we have explored the clear command as well.

OpenGenus Tech Review Team OpenGenus Tech Review Team
git

Git: Initialize a Git repository

In this article, we have explored the procedure to initializing a new Git repository. In the process, we have explored the cd (change directory) command, git init command, cd .git command and ls command to explore the hidden files in the .git folder.

OpenGenus Tech Review Team OpenGenus Tech Review Team
git

Git is a Map and SHA1 hash

Git is exactly a map data structure or more precisely a persistent map which maps blobs to hashes. We have demonstrated how Git is simply a hash map and with this view, its working is simplified.

OpenGenus Tech Review Team OpenGenus Tech Review Team
git

Git is an Onion

Git version control is like an onion and has 4 layers namely a Distributed Revision Control System, a Revision Control System, a Simple Content Tracker and a Persistent Map. We have demonstrated its working based on the layers

OpenGenus Tech Review Team OpenGenus Tech Review Team
OpenGenus IQ © 2025 All rights reserved â„¢
Contact - Email: team@opengenus.org
Primary Address: JR Shinjuku Miraina Tower, Tokyo, Shinjuku 160-0022, JP
Office #2: Commercial Complex D4, Delhi, Delhi 110017, IN
Top Posts LinkedIn Twitter
Android App
Apply for Internship