Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

Git Tutorial 20 – Untracked File Vs Unstaged File

Posted on 02/19/2025 By admin

As a part of GIT Tutorials End To End, we will learn about the difference between Untracked and Unstanged files of GIT in this post.

I will expect that you are aware of the basic concepts and commands of GIT. But if you are a beginner in GIT then I strongly recommend you to refer GIT Basic Commands and Concepts section on my blog first.

Did you know that I have started a YouTube channel as well and I need your support to make it successful. Please do watch content then comment, like, share, and obviously subscribe.

Let’s run some commands first. I will create a git repository using the git init command.

I will create a new file in the above git directory. You can use the Linux command or file directory to create a file.

Let’s run the git status command which will give us information about the state of the working directory.

So we have encountered the term “Untracked file”. The newly created file is shown as an Untracked file.

We know Git is a version tracking tool where a version is something how a file is changed periodically. Git will never start tracking a file until we specifically ask Git to do so. We created a new file named FileA in a Git repository i.e. “untrackedUnstaged” but Git will not track FileA by default. Git is just showing FileA as untracked. If you do any changes in FileA then also it will remain untracked till we use the git add command.

Let’s use the git add command to ask Git to track FileA.

Now FileA is no more Untracked. Let’s modify the content of FileA. Again you can use the Linux command or open the file using File Directory and add some changes.

Now run the git status command.

Git is tracking changes in FileA. When we used the git add command the first time after creating FileA then FileA became a tracked or staged file with the current content/version of FileA. When we add a new line in FileA then the content of FileA is changed and Git explicitly required a confirmation from us to stage the FileA with updated content. At this point, FileA is an unstaged file. You need to use again the same git add command to mark an unstaged file to staged.

If you have any doubt, feel free to comment below.
If you like my posts, please like, comment, share and subscribe to my YouTube channel.
#ThanksForReading
#HappyLearning

Uncategorized

Post navigation

Previous Post: Are You Getting NullPointerException For Second TestNG Test While Running As A Suite?
Next Post: Git Tutorial 24 – Ignore Files Using .gitignore

Related Posts

implicitwait – Make Selenium Easy Uncategorized
How To Launch Firefox Browser in Selenium WebDriver – Java Uncategorized
image – Make Selenium Easy Uncategorized
Advanced Selenium Concepts – Custom Select Class – Select Value Containing Specific Text in Drop down | Make Selenium Easy Uncategorized
Postman Tutorial Part 11 – Sending DELETE Request in Postman Uncategorized
LeetCode – 100 Programs Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark