12-14-2023, 02:00 PM
I solved a major problem in the Django app that involved scheduling the signals. I made another model manager and named it PublishedManager. In that I over rode the queryset and solved the problem. Now I am trying to commit the code files to github repository:
I made changes to .gitignore but it is not being reflected when I check with git status.
Make changes in .gitignore file.
Run git rm -r --cached . command.
Run git add . command
git commit -m "Commit message" or just git commit or continue working.
Now again check with git status.
Code:
git init
git config --global push.default simple
git add *
git add .gitignore
git status
git config --global user.email "youremail@umich.edu"
git config --global user.name "Your X. Name"
git config --global credential.helper cache # Optional but convienent
git config --global credential.helper 'cache --timeout=604800' # Optional but convienent
git commit -m "first commit"
git remote add origin https://github.com/--your-github-acct--/django_projects.git
git push -u origin main
(enter id and password for git)
I made changes to .gitignore but it is not being reflected when I check with git status.
Make changes in .gitignore file.
Run git rm -r --cached . command.
Run git add . command
git commit -m "Commit message" or just git commit or continue working.
Now again check with git status.
Subscribe My YouTube Channel:
https://www.youtube.com/channel/UCUE7VPo...F_BCoxFXIw
Join Our Million Dollar Trading Challenge:
https://www.doubledoji.com/million-dolla...challenge/