How do I move up and down the directory branch?

Jessica Steel 40 Reputation points
2024-06-27T09:34:10.1866667+00:00

In step 4 of Unit 3 from Introduction to Version Control with Git, it states the below, highlighted in yellow -it does not explain how to do this. I was 2 folders deep in the branch Cats/CSS. How do I move from being in CSS to being back in the main Cats directory? It does not explain how I should do that.

User's image

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,209 questions
{count} votes

Accepted answer
  1. pnaroju 1,965 Reputation points Microsoft Vendor
    2024-06-27T12:12:09.0366667+00:00

    Hi Jessica Steel,

    We appreciate your engagement with us on the Microsoft Q&A forum.

    Thank you for your feedback regarding step 4 of the 'Replace a file' section in Unit 3's 'Exercise - Make changes and track them with Git.'

    To address your query about navigating back to the main Cats directory from Cats/CSS, here is a simplified explanation:

    To return to the main Cats directory from Cats/CSS, you can use the following methods:

    1. Using the cd command:
      • Open your terminal and type cd .., then press Enter. This command moves you up one directory level, placing you back in the Cats directory.
    2. Using terminal autocompletion:
      • Start typing cd Cats and press Tab. If the Cats directory exists, the terminal will autocomplete the path. Press Enter to confirm and navigate to the Cats directory.

    Both methods achieve the same result. cd .. is a standard command for moving up one level in the directory structure, while autocompletion provides a quicker option if you remember part of the directory name.

    If you have any further questions or need additional assistance, please feel free to ask. We are here to assist you.

    If you find this explanation helpful, we kindly encourage you to indicate your acknowledgment by using the "Upvote" and "Accept Answer" buttons on the post.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful