Forum Discussion
Im not an expert and i only used git with readyapi! briefly so i cant help from a readyapi! perspective, but i think your push button isnt enabled cos your remote changes are ahead of yours.
If you open a git command line terminal you could do following:
1. Make sure you navigate to your relevant checkout branch
2. Run 'git stash' (stashes off your local changes)
3. 'git pull' (pulls down the remote changes)
4. 'git stash pop' (which unstashes your local changes)
At this point id restart your readyapi instance. Your local branch should be the same as your remote branch (except your local changes) so i reckon your push button should be available at this point.
Ta
Rich
- Stalsy4 years agoContributor
Hi Rich, I did what you suggested and after restarting ReadyAPI I committed but nothing changed. The Push button is still disabled and the "Branch is ahead by n commits" message was still there. I did a few more changes, closed ReadyAPI, repeated the steps that you suggested and added a "git push". When I do "git status" I get "On branch master. Your branch is up-to-date with 'origin/master'" and if I repeat "git push" I get "Everything up-to-date". Inside ReadyAPI the Pull Changes button became enabled and when I clicked it I got an error pop-up "Unable to pull changes because local and remote projects are different projects"
So I had a look at Integrations/Git/Manage/Test Connection. In this form there are 2 "Test Connection" buttons, one for my test project and one for my real project and both of them point to the same remote: ssh://git@stash:7999/racqatf/openbanking.git
When I click on each of the "Test connection" buttons I get "Successfully connected". I went on to deleted the Git account and re-create it and re-attach my project to it, but I still get the same message "Unable to pull changes because local and remote projects are different projects" and still "Branch is ahead by n commits"!
Related Content
- 3 years ago
- 4 years ago
- 3 years ago
- 2 years ago
Recent Discussions
- 19 hours ago
- 17 days ago