Giter Site home page Giter Site logo

black-codher's Introduction

black-codher

Black Codher Unit 1 - Command Line & Git assessment

Assessment Steps

Open a terminal window and check you are in the main directory of your repository.

To capture the terminal session and all the commands entered into the terminal, enter the following command:

Term=dumb script output.txt

This will record all commands entered in to your terminal and save them to a file called output.txt.

Windows users: To record a script using the Linux script command, you will need to have the Windows Subsystem for Linux installed and Windows Terminal configured to use the Ubuntu shell.

Once the capture session has started, run through the following steps in a terminal:

  1. Create a directory that you will use as a local repository later on (/unit01-assessment-git)
  2. Create two directories inside that directory called folder1 and folder2.
  3. Create three files called file1.txt, file2.txt and file3.txt.
  4. Move file1.txt into the folder1 directory.
  5. Move file2.txt into the folder2 directory.
  6. Change directory by navigating to folder1.
  7. List the current directory files and folders.
  8. In folder1, confirm the present working directory.
  9. Navigate back to the parent directory and delete the file file3.txt.
  10. To end the session, type exit into the terminal window.
  11. Move output.txt file from root directory to folder in step 1.
  12. Initialse the folder you created in step 1.
  13. Use"git add ..." to include in what will be committed to remote repository. > git add folder1 folder2 output.txt
  14. Use git commit -m "adding folder 1, 2 & output.txt to main" to commit your modified files & attach a commit message
  15. Use git remote add origin https://github.com/MarieObi/black-codher.git to set up your remote repo & connect your local repo to it.
  16. Always use git status to check your progress in the gitflow
  17. Use git push -u origin main to push your local content (local repo) to your remote repo (Github).
  18. Input your Github UN & PW when requested and view your files in your repo hosted on Github.

black-codher's People

Contributors

marieobi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.