Assignment 6 error

63 views
Skip to first unread message

Yuyang Li

unread,
Dec 10, 2020, 7:07:36 PM12/10/20
to cmpt-295-sfu
SFU ID: 301342618
Github username: yuyangl74
Github: g...@github.com:CMPT-295-SFU/assignment-6-yuyangl74.gitLine and file: 
Expected behavior:
Observed behavior:fatal: not a git repository (or any of the parent directories): .git
Question: When I write git add -f run.sh, it's failed. Can you tell me how to fix itiShot2020-12-10 15.45.43.png

Parmida Vahdatnia

unread,
Dec 10, 2020, 10:41:14 PM12/10/20
to cmpt-295-sfu

this happens when you are writing git commands in a repository that does not have a .git file. meaning you're in the wrong repository. 

Yuyang Li

unread,
Dec 10, 2020, 11:00:47 PM12/10/20
to cmpt-295-sfu

Can you tell me what should I do, do I need to delete the previous Assignment 6 and clone the new one?

Parmida Vahdatnia

unread,
Dec 11, 2020, 12:59:03 AM12/11/20
to cmpt-295-sfu
just use the git commands in the repository in which you cloned the assignment, use  ls -a  to find the .git file  
Reply all
Reply to author
Forward
0 new messages