Hi
I've currently got a PB application which already has GIT setup locally for it.
I've created an Azure DevOps repo to host the master and configured the PB application with the source control options on the workspace.
My Git commit to master and Push work ok.
When I test a GIT pull and I'm receiving the following error.
---------- Source Control
Git pull
Git client is pulling workspace. Please wait...
Git detail error info: Cannot locate remote-tracking branch 'origin/master'
Git client error code: Requested object could not be found. Because of invalid value in Author, Email, username, password, or local branch name, etc.
Failed to update: E:\allan\Documents\Software\PB\v190\timentry
Failed to do Git pull.
Git pull completed.
---------- Done Source Control
I'm fairly new to GIT so not sure what I'm missing here.
Any idea what else I need to configure to get the pull to work?
Thanks in advance
Allan
I am not sure exactly how did you set up your environment. It seems some branch tracking information is missing in your setup. I suggest that you upload source code to the repository according to the exact step described in the following link:
https://docs.appeon.com/pb2019r3/pbug/ch01s03.html#git_add
And then, if you need to connect from another machine or another directory, you can use the steps in the following link:
https://docs.appeon.com/pb2019r3/pbug/ch01s03.html#git_get
Regards,
Tom Jiang
Thanks for your reply, I've now got this to work.
I was the missing the step to initialise the Azure Dev Ops repository to create the initial branch (in Azure Dev Ops)
I'll list the steps I've gone through in case it's of use to someone else
After creating and initialising the Azure Dev Ops repo, I used Git Bash to clone the repo back to my desktop to create the PB master folder.
I then copied the PB objects into the folder and used Git Bash to Git Add *, Git commit -m "Initial Commit", Git Push as per the video to push the PB objects up to the repo.
I then opened the workspace and added the GIT properties to the Source Control.
Via the PB system tree, I initiated a commit -> master which did the initial ws_objects commit, then a push to the remote. Ran a pull to make sure it worked, and error free this time round.
I was then able to clone to my laptop.
Thanks
Allan