I have created a sitemaps for my django project but the sitemaps.py file doesn't reflect in the git repository even after i push.
i tried creating the file from git but the changes are still not reflecting
Related
:~/portfolio$ ls README.md venvxz
My Django project isn't showing up under my repo in the terminal when i want to deploy with AWS! Ive tried "git push origin master", git remote add origin. i think last time i had it working, i pushed my project under a certain branch on GitHub.
I have tried git merge, git checkout, my project on GitHub is currently under git master. If i try git branch, it shows 'main'
I cannot deploy my website because of this.
`:~/portfolio$ git branch
main`
Hello Stackoverflow and hello to all the developers .
Sir actually i am running in a problem .
I've hosted my new blog website on a linux vps , and when i hosted that it was just a bare minimum ,
now it's running perfectly on that vps and on my computer i am trying to add more features to it . but there is a problem when i push all changes to github and pull that changes to that vps it will changing my settings file , which is extremely important . now i am looking for a solution that i can pull single file changes not entire .
for example
i made image responsive in style.css file okay and push that change to github
how can i download that single change, single file change or that single file (style.css) to that vps?
if you will help me i will be very gladful to you
git fetch --all
git checkout origin/master -- <your_file_path>
git add <your_file_path>
git commit -m "<your_file_name> updated"
First checkout to branch from where you want to pull.
This is similar to this question: Git: How to pull a single file from a server repository in Git?
So..
git fetch
then
git checkout (-p|--patch) [] [--] […]
see https://git-scm.com/docs/git-checkout
I am new to the heroku ,git and postman. I have created a simple python program that performs create, delete, update and get operations in a json file containing employee data. I have deployed my project folder in heroku by using following commands,
heroku login
git init
git add .
git commit -m "first commit"
heroku git:remote --app
git push heroku master
The project is deployed successfully. But the thing is when I send the create operation request from postman api, it successfully gives response but data is not getting update in my json file. I tried this command,
git pull https://git.heroku.com/<my_app>.git
I want to pull changes to my json file which is in my computer.
I have my Django project in a Bitbucket repo that I want to merge with my newly created Digital Ocean server. The server directory contains a few basic files for a Django project for my server like env, static and manage.py. The Bitbucket repo has all my project apps etc. I've already done git remote add origin https://user#bitbucket.org/user/project.git from the server directory. So I then perform git merge master but it says Already up-to-date.. I've tried git pull master but it says:
fatal: 'master' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Any idea what I can try?
The git pull command is used like
git pull [options] [<repository> [<refspec>...]]
That means, that you if you are not using any [options] you use
git pull <repository>
which in your case would end up being
git pull origin
If you want to specify the branch then you can do it like this (for master)
git pull origin master
The command you used (git pull master) will not work, because you are telling git to pull from the repository master, which does not exist in your remotes. You can already tell my the error message 'master' does not appear to be a git repository.
If you want to get the changes and merge yourself you can use the git fetch command, which is being used my pull anyways.
Say I have deployed a django website on heroku through a github repository. (For deployment I simply clicked on the deploy button here - https://github.com/AmmsA/theresumator#theresumator---using-django-resumator.) I now update the repository with new commits.
Q: How can I make changes in the deployed website from the repository without losing the data already present on the repository.
When you are pushing the fresh commits git push heroku master or via git hook git push origin master -- these nothing to do with heroku database.
But this will run this command when build python manage.py migrate so if you are changed something in the migrations definetly db schema get alter not the values stored in there.
Just set your remote project:
heroku git:remote -a
And then, push your project on Heroku:
git push heroku main
I've written an article on it. You can see that. https://medium.com/#sreebash/how-to-update-previous-deployed-project-on-heroku-c778d555cd8a