# Basic Workflow

1. Status

Command will display the untracked files from the repository. These files can be added to our repository.

```bash
git status
```

2. Add File&#x20;

The git add command is used to add file contents to the Index (Staging Area).

```bash
git add
Ex: git add filename
```

```bash
git add . or git add *
```

```bash
git add test.txt
```

3. Commit

It is used to record the changes in the repository. It is the next command after the git add.

```bash
git commit
```

```bash
git commit -m “msg”
Ex: git commit -m “First file”
```

4. Remove File

```bash
git rm
```

git rm is used to remove a file from a Git repository.

```bash
git rm test.txt 
git rm -r test.txt
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devops-3.gitbook.io/devops/docs/module-5-vcs/git-commands/basic-workflow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
