Git add command: Track a new file

git
version-control
software-engineering

(Team) #1

In this article, we will explore how Git tracks new files using the git add command.

In a git repository, we realize that we want to add a new file into that repository called opengenus_project. So let us add this new file to the repository by typing touch rockets.txt.


This is a companion discussion topic for the original entry at http://iq.opengenus.org/git-track-a-new-file/