in Education by
I am using MacOS Monterey 12.3. Once I initialize git for my Python (Python3.9) project, if I set up virtualenv, all of the sudden, git can no longer track any changes made in the given directory. To see if initializing git and virtualenv in the same directory causes any issue, I first created a directory "directory_above" and ran git init there. Then, I created a sub directory "directory_below" in "directory_above", and I set up virtualenv in the sub directory. Even without activating vurtialnenv in the sub directory, git cannot track any changes made in the directory. git status simply gives me nothing to commit As far as I remember, this kind of setup worked fine before, and recently, git started to fail to work with virtualenv. Has anyone encountered the same issue in the past? If so, how did you solve the issue? I spent some time looking the same issue and solution, but I couldn't find it on here. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
it sounds like you ran virtualenv . -- but you probably want virtualenv venv or some other subdirectory virtualenv writes a .gitignore file which contains the following contents: $ cat venv/.gitignore # created by virtualenv automatically * that * there will cause all of the contents to be ignored either delete that file (not recommended) or make your virtualenv in a subdirectory of your project

Related questions

0 votes
    Which tab will you click to use the Track Changes feature? Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Which command helps you track the revisions of your revisions in Git? A. Git reflog B. Git logref C. Git track D. Git revision trak...
asked Dec 24, 2022 in Technology by JackTerrance
0 votes
    Git keeps track of all the submodules and their paths in the project in _____________ (1).gitmodules file (2).git folder (3).gitmodule file (4)Remote repository...
asked Jun 1, 2021 in Technology by JackTerrance
0 votes
    How to push a new local branch to a remote Git repository and track it too?...
asked Jan 7, 2021 in Technology by JackTerrance
0 votes
    How does android track the application on process?...
asked Jan 14, 2021 in Technology by JackTerrance
0 votes
    How does a Scrum Master track Sprint progress?...
asked Nov 19, 2020 in Technology by Editorial Staff
0 votes
    What is the Git command to skip staging and commit the changes directly? A. git skip stage B. git commit C. git commit -a -m “message” D. git add changes...
asked Dec 21, 2022 in Technology by JackTerrance
0 votes
    What is the Git command to view all the changes since the last commit ? A. git clean B. git status C. git changes D. git commit...
asked Dec 21, 2022 in Technology by JackTerrance
0 votes
    What is the Git command to blow away all the changes in a file in the working area, since the previous commit? A. ... git log filename C. git checkout filename D. git rm filename...
asked Dec 21, 2022 in Technology by JackTerrance
0 votes
    When you run git fetch from your local repo, it will update your local changes in working area? A. True – ... It updates local repo only and does not affect the working area...
asked Dec 20, 2022 in Education by JackTerrance
0 votes
    My git workspace is dirty, there are some local modifications. When I use the command git pull origin master it ... Ansible git module? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I started some work on a new feature and after coding for a bit, I decided this feature should be on its ... on the new feature. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I have created a branch named dev. I have done a pull request to send dev code to master, when I do ... to resolve these conflicts. Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    How do I discard changes in my working copy that are not in the index? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    How can we make ignore file mode (chmod) changes in git?...
asked Jan 8, 2021 by JackTerrance
...