Skip to content

Latest commit

 

History

History
109 lines (67 loc) · 2.18 KB

03-Practice-Test-Remote-Repositories.md

File metadata and controls

109 lines (67 loc) · 2.18 KB

Practice Test - Remote Repositories

Solutions to practice test - Remote Repositories

  • Run cd /home/sarah/story-blog; git log

    $ cd /home/sarah/story-blog
    $ git log --oneline
    
  • Count the number of stories in the master branch

    $ ls
    
  • Login to UI with given credentials. Click on + sign to create new repository. Add Repository Name:story-blog and keep other options default. Then click on Create repository

  • Run cd /home/sarah/story-blog; git remote add origin http://git.example.com/sarah/story-blog.git

    $ cd /home/sarah/story-blog
    $ git remote add origin http://git.example.com/sarah/story-blog.git
    $ git remote -v
    
  • Syntax: git push

    $ git push origin master
    
  • Simply run git push origin master to push and input login credentials

    $ git push origin master
    
  • Looking at the remote repository on Gitea can you identify the total disk space consumed by this repository?

    20KiB
    
  • In the top menu bar select Explore -> Users

    From GUI --> Explore --> Users ( Count the users)
    
  • In the top menu bar select Explore -> Repositories and count the number of repositories for each user.

    From GUI --> Explore --> Repositories
    
  • In the top menu bar select Explore -> Repositories -> tej/ecommerce and look at the number of commits.

    From GUI --> Explore --> Repositories --> tej/ecommerce
    
  • Go to story-bloggg repository in GUI and click on settings. Scroll all the way down and click on Delete This Repository option. Then follow the instructions.

    From GUI --> Repositories --> sarah/story-bloggg --> "Delete this repository"