0% found this document useful (0 votes)
30 views6 pages

Software Engineering 2: 1. Add Any Four Files in The Folder

The document outlines steps for managing files in a Git repository: 1) Create files in a folder and initialize a local Git repo. 2) Change the path to the folder. 3) Rename one file using Git mv. 4) Delete a file using Git rm. 5) Commit the changes to the local repo. 6) Create a GitHub repo and copy the URL. 7) Clone the GitHub repo to the local system and change the path. 8) Check the status of files using Git status.

Uploaded by

Haneen Fa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views6 pages

Software Engineering 2: 1. Add Any Four Files in The Folder

The document outlines steps for managing files in a Git repository: 1) Create files in a folder and initialize a local Git repo. 2) Change the path to the folder. 3) Rename one file using Git mv. 4) Delete a file using Git rm. 5) Commit the changes to the local repo. 6) Create a GitHub repo and copy the URL. 7) Clone the GitHub repo to the local system and change the path. 8) Check the status of files using Git status.

Uploaded by

Haneen Fa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

SOFTWARE ENGINEERING 2

NAME : HANEEN FARAJ MOHAMMAD ID:438804669

1. Add any four files in the folder:


➢ We create a new folder on the desktop

➢ We name it after whatever we want ill name it (Haneen)

➢ Create 4 folder inside the folder (Haneen)


➢ Create A repository of the file we just created using GIT BASH

➢ Then we make the repository the main route using git init

➢ Then we add the files using git add


2. Chang the path to your folder location
➢ We change the path using cd command and write the path to the folder we made

3. Change the name of any one of the files


➢ Use the command git mv to rename the folder by writing the original folder’s name and what
you want to change it to.

4. Delete any file from folder


➢ Delete a file using the git rm -f
5. Save all the operations that you have performed
➢ We save it using the command git commit

6. Create a repository in github


➢ We go to their website www.github.com
➢ We create an account
➢ We create a repository

7. Make a copy of git repository


➢ After creating a repository we click on copy
➢ We copy the link using the HTTPS

➢ We use the command git clone to access it on our desktop

➢ Change the repository to its new path


8. Check the status of your files

➢ We check the status using the command git status

You might also like