-

GIT – What Is GIT Origin Master ?
What Is GIT Origin Master? Table Of Contents: What Is GIT Origin ? What Is GIT Master ? How To Use GIT Origin Master? (1) What Is GIT Origin ? The term ‘origin’ refers to the remote location repository. You will have your local repository in your working system and a remote repository in the server. To avoid confusion on which repository you are sending commands ‘origin’ helps us to resolve that. (2) What Is GIT Master ? ‘Master’ refers to the default branch of your repository. When you create a repository the ‘master’ branch will come with it. In
-

GIT – What Is GIT Head ?
What Is GIT Head? Table Of Contents: What Is GIT Head ? How To Use GIT Head ? What Is Detached Head ? (1) What Is GIT Head? In Git, HEAD is like a pointer that tells you where you currently are in your project’s history. It usually points to the latest commit in the branch you are working on. Think of HEAD as a bookmark that Git uses to track your current position in the repository. The ‘HEAD’ can be understood as the “current branch.” When you switch branches with ‘checkout,’ the ‘HEAD’ is transferred to the new branch.
-

GIT – What Is GIT Fork ?
What Is GIT Fork? Table Of Contents: What Is Forking In GIT? How To Fork In GIT? (1) What Is Forking In GIT? Forking a repository means, copying the repository on the server side only. While cloning a repository means, copying it into the local system. Most commonly, forks are used to propose changes to someone else’s project or use someone else’s project as a starting point for your own idea. (2) How To Fork In GIT? There is no explicit Git command is used to fork a repository. If you have a Git repository on your personal computer, you
-

GIT – How To Ignore Files From Repository?
How To Ignore Files From Repository? Table Of Contents: What Is GIT Ignore? How To Ignore Files In GIT. Examples Of GIT Ignore. (1) What Is GIT Ignore ? Sometimes you don’t want some of the files to be tracked by the GIT. These files you generated may be for demo or testing purposes only. These files may only for your reference purpose only. Then you can ignore those files so that they won’t be tracked by the GIT. (2) How To Ignore Files In GIT ? ‘.gitignore’ file is used to ignore files from your repository. You need to
-

GIT – How To Clone A Repository ?
How To Clone A Repository ? Table Of Contents: What Is GIT Cloning? How To Clone A Repository? (1) What Is GIT Cloning ? GIT cloning is the method of making a copy of a target repository. This target repository can be a remote or a local one. When you are new to an existing project, the first step is to clone the project repository, so that you can work in your local system. (2) How To Clone A Repository ? Use the below command to clone an entire repository. git clone <repository URL> Example-1: If You Are Using BitBucket
-

GIT – How To Check The Previous Commits ?
How To Check The Previous Commits ? Table Of Contents: How To Check The Previous Commits? How To Count The Number Of Commits? (1) How To Check The Previous Commits? To check the previous commits you have done, use the below command. git log – raw Note: Here you can see the number of commits you have done and the files that you have committed. (2) How To Count The Number Of Commits? To count the commits for the branch you are on: git rev-list – count HEAD To count the commits for the particular branch git rev-list – count
-

GIT – How To Commit Your Changes ?
How To Commit Your Changes Table Of Contents: What Is GIT Commit? How To Commit Your Changes. Examples Of Committing Your Changes. (1) What Is GIT Commit ? When you are confirmed that whatever the changes you made are correct, it’s time for you to commit the changes to the ‘git’ repository. GIT Commit will ensure that, whatever changes you have made to the file system, will be persisted by the GIT. If you did some mistake in future, you can always roll back to the previous commits. (2) How To Commit Your Changes ? Method-1 git commit Note: A
-

GIT – How To Check Status Of Your Files?
How To Check Status Of Your Files? Table Of Contents: What Is The Status Of A File? How To Check The Status Of Files? Examples Of Checking Status. (1) What Is The Status Of A File? By knowing the status of a file we can see, which changes have been staged, which haven’t, and which files aren’t being tracked by Git. It will just show you, in which state the files are. (2) How To Check Status Of Files? To check the status of the file run the below command. git status (3) Examples Of Checking Status Example-1: Initial State
-

GIT – How To Add Files To Stagging Area?
How To Add Files To Stagging Area? Table Of Contents: What Is A Staging Area? Adding Files To Staging Area? Examples Of Adding Files. (1) What Is A Staging Area ? A stage is something where people come for an audition, or performance being judged by the judges and gets selected. Likewise in ‘GIT’ , a staging area is something where you put your files for GIT to track, and you review what are the changes you have done. After you finalize the files, then you can commit them to the ‘git’ repository. (2) Adding Files To The Staging Area.
-

GIT – Adding Files To Project.
Adding Files To Project Table Of Contents: Adding Files To Project. Checking The Status Of The Repository. (1) Add Files To Your Project: After you initialize your GIT repository, it’s time to add files to your project folder. Whatever files, folders, or images you add to your project, GIT will be able to track it. (2) Checking Status Of The Repository To check the status of the GIT repository run the below command. git status Note: Here you can see, It is showing ‘Untracked Files’. That means these files are still in your local folder. To be able to track
