I am trying to push my project changes with the push button like this:
but the only result I get is a never-ending "pushing" notification,
but if I use the terminal to do the push, all works perfectly.
Does anyone have any clue what could be wrong?
Related
I'm really new to using git so this might be a dumb issue, but somehow my colleague also doesn't know how to fix it.
So i pushed my code which worked without a problem.
When trying to commit i kept having an issue where it came out that the node.js version was too old.
My colleague fixed the issue and updated the node.js version.
However when i try to "Rerun failed jobs" it is still giving me the same issue as before.
I tried to push the code again and commit again but it obviously tells me that everything is already up-to-date.
When trying to pull the code again i just get the code that i already pushed.
My next try would be to push the wrong code again just to immediately push the right one afterwards, but i feel like there has to be a better way. Has anyone experienced this before and knows a fix for this problem?
The described behavior is how Azure DevOps works.
In order to get a run with your new code you should create a new run using the -> Run Pipeline button. This will checkout your new code. When using rerun failed job, the Azure DevOps will keep the same code, settings and will try to rerun the same job. That's why your pipeline fails.
The same apply with the releases. Every time you need to get a new Release (after you updated your pipeline) you should use the Create Release button and not run the previous failed one.
To conclude you should first commit your changes with the updated node version and then run a new pipeline.
I have my project in Pycharm but I want to push the complete project on git in one go. Is there any way to do it
It is difficult to understand the exact problem. But you need to be a little more detailed so that we can understand the problem. In general, under the VCS you need to map the git repo where you want to push your code. Then you will get the option to push or pull under git suboption.
Try https://www.jetbrains.com/help/pycharm/commit-and-push-changes.html
I have a sever on heroku. I'm making changes on my project (for ex. adding something inside my JSON file). I'm pushing my changes on heroku/master branch like this:
git add .
git commit -am "changes in json file"
git push heroku master
I'm getting "Everything up-to-date". When I'm reloading the server the changes that I made don't appear, it makes sense because if I'm trying to push to my heroku master brench I'm gerring "Everything up-to-date" but I'm expecting to show me the changes and to restart the server automatically.
Can you help me?
For any additional informations please ask me!
It works!
I don't know what I did to solve the problem, it solved after I made a new project following this tutorial: https://www.youtube.com/watch?v=P86N9FqNqso&list=LL69VX7JLGdfJjh-p8M1RzVw&index=2&t=0s
It might be possible due to the fact that I wasn't in the right folder, I didn't check the folder I was in, I'm not saying that that was my problem but I consider it a possibility.
It works now, thanks for helping and if you have the same problem I can suggest to you rechecking if you are in the right folder, your project folder, or check the tutorial I linked above.
another little issue with my current choice of IDE , Bluej. I have set it up to be able to share a project (namely to commit and push changes) using GIT,and specifically through a gitlab repository.
After the first couple of successful pushes and commits(two weeks ago), I changed some code today, tried to do exactly the same procedure, and alas, the button OK in bluej to actually push the changes, is not active!
I have checked connection by entering password, all looks fine. Also, commits are happening fine locally, but when I try to push them through the TeamWorks of Bluej, the OK button remains inactive.
ps: a restart of the program did not solve the issue.
In that case:
switch to the command-line,
go to your repository folder,
and do a git fetch + git status
That should show you why a simple git push is not possible (possibly because you need to pull first)
I have a GIT repo for an application. The application starts a long running process that I want to keep running in the background.
When I make a change to any of the application config files, commit those changes, and then git-push those changes, everything works fine. The long running process picks up the config changes I've pushed.
Sometimes though, I make a mistake in the commit history and purge those commits with a rebase. I then use git push -f to force the purged changes through. Doing so kills the long running process.
Why would that be?
As I understand it, when I git-push commits, it will only change the lines of code that I have edited.
Am I right in thinking that using git push -f instead changes more than just the lines in the commits I've purged? I suspect the git push -f command is also refreshing (though not changing) other application files in the repo, if not all of them, and that's why the process dies on a rollback attempt...
Does anyone have a definitive answer?
Though I still have my suspicions, I think the issue may have just been caused by a careless commit that overwrites the file that the process is based on.
If I discover anything new (as likely as that might be), then I will update the answer.
Thanks for the help.
Update:
I'm pretty sure that it's not GIT now. It was because the long running process prints out messages to the terminal. When I was testing the GIT hook, I always had an SSH terminal open, so the program ran fine. But when I closed the terminal and made an upstream push from my remote machine, the application had no terminal to print messages to...
Doh.
Accounting for this appears to work.