oslab

Lab 4

Clone a remote repository

git clone <repository-url>

Go into the directory

cd <repository-name>

Create a new file, add it to the repository, and commit it

vi <file-name>.txt
git add <file-name>.txt
git commit -m "Added <file-name>.txt"

Push the changes to the remote repository

git push origin main

If the branch does not exist, try master

git push origin master

LAB 5

HOME