How to Overwrite Local Files with Git Pull.

If you feel the need to discard all your local changes and just reset/overwrite everything with a copy from the remote branch, then you should follow this guide. Important: If…

Read more »

How to install Git on Ubuntu/Linux.

To install Git on Linux/Ubuntu you have to Run the below commands Step 1 :- First check that your packages are updated or not : sudo apt update Step 2…

Read more »

What is Git and Bitbucket?

What is Git? Version Control Systems are tools which help manage the code for a project as it changes over time. They allow past versions of the project to be…

Read more »

Security practices for using git repository in production for deployment

Many times, people use the git repository to host websites in productions by clone-push-pull but it has one drawback, it appears the .git directory is accessible via the web. How…

Read more »

How to Clone Bitbucket Repository to your Local system using Sourcetree?

Here you are going to learn about how to clone, pull and push file using sourctree. so for this process you have already install gitbash and also should install sourctree….

Read more »

Git Errors and Solutions Database

Git Error: How do I remove files saying “old mode 100644 new mode 100755” from unstaged changes in Git? Git Error: -Git Polling Log java.io.IOException: error=2, No such file or…

Read more »

Git Command Tutorials Guide with Example

Git Commands Tutorials and Example: Git Clean – How to clean git workspace? Git Commands Tutorials and Example: Git Reset – Git Revert Git Commands Tutorials and Example: Git Fetch…

Read more »

Git Error: How do I remove files saying “old mode 100644 new mode 100755” from unstaged changes in Git?

How I got this error:I had to take a pull in my project directoryI tried to take the pull by running the below commandscd <My Project Directory>sudo git pull The…

Read more »

Git Interview Questions and Answer Part – 9

Which section of GitHub can you use to track tasks? (Not Include in Questions)* Issues (Ans) Pages Pages Pages Work Items Which operation in GitHub for Windows will automatically commit…

Read more »

Git Interview Questions and Answer Part – 8

What are the fundamental concepts in Git’s object model? Commits, trees and leaves Commits, files and branches Commits, tags and branches Commits, snapshots, and references (Ans) What are the characteristics…

Read more »

Git Interview Questions and Answer Part – 10

Where can HEAD point? To a branch To a branch or nowhere To a branch or a commit (Ans) To a branch, a commit, a tree, or a blob How…

Read more »

Git Interview Questions and Answer Part – 7

How to Compute object ID and optionally creates a blob from a file? git hash-object (Ans) git cat-file git update-ref git count-objects How to Update the object name stored in…

Read more »

Git Commands Example and Tutorials Complete Reference

Git Reset – Git Revert Git Clean – How to clean git workspace? Git Fetch – Update remote branch before merge to local branch

Read more »

Git Interview Questions and Answer Part – 1

Q1. What is GIT? Git is a distributed version control system and source code management (SCM) system with focus to handle small and large projects source code versions in the…

Read more »

Git Interview Questions and Answer Part – 5

What is the function of ‘git rm’? What is the function of ‘git checkout’ in git? What is the use of ‘git log’? Explain what is commit message? How to…

Read more »

Git Interview Questions and Answer Part – 4

What is Version control system or Source code manager? Benefits of VCS or SCM? What is Git and What is a repository in GIT? Diffrence between Git and SVN? Two…

Read more »

Git Interview Questions and Answer Part – 3

What is GIT ? What is difference between GIT & Github ? Why we use GIT ? What is SCM & VCS ? What are the process of pushing the…

Read more »

Git Interview Questions and Answer Part – 2

What is the difference between git pull and git pull? what is ‘working tree’? what is ‘staging area’? How do you resolve git conflicts? What is the difference between git reset and git reverse? In what…

Read more »

Best Branching and Merging strategies in git

Best Branching and Merging strategies in git Step 1 – First you need to learn the needs of branches. This is very good read. https://docs.microsoft.com/en-us/vsts/repos/tfvc/branching-strategies-with-tfvc?view=vsts Step 2 – Now time…

Read more »