Git Clean

Tasks

  1. Navigate to the Git repository located at /usr/src/kodekloudrepos/cluster on the Storage server.

  2. Remove any untracked files and directories (files that are not committed to Git).

  3. Do not add or push any new files.

  4. Ensure that git status shows a clean working tree (no changes, no untracked files).

Steps

1

SSH to storage server and switch to root if needed

ssh natasha@ststor01
sudo su -
2
cd /usr/src/kodekloudrepos/cluster
3

Check for untracked files

git status
4

Remove all untracked files and directories

git clean -fd
5

Verify it says: "nothing to commit, working tree clean"

git status

Last updated