Forum Discussion
Hello,
I am using Ready API 3.20.1 and using GIT.
In Ready API GIT panel , I don't see option to do cherry pick or undo any one of the change. There is only Discard all changes.
Please suggest if I am missing something.
yeah Hellotest - obviously I wasn't clear - I said use GitBash or other Git command line utility to sort what you need.
I've just had another look at the Git menu (in ReadyAPI v3.20.0 on my work machine) and it's expanded since I last used Git in ReadyAPI.
If you click on the project level and right click - the context menu launches and you can see there are a number of options within the Git sub menu.
Looking at the menu options available you can probably do this mixing some ReadyAPI embedded functionality with a bit of git console (you might be able to do it entirely in ReadyAPI), but I cant advise on that cos I cant replicate to give you the step by step instructions via ReadyAPI. If you havent got git console installed - you can do it via ReadyAPI (which will certainly help).
as I say - I can't trial this out on my own machine unfortunately - so I'm gonna give you the instructions to do it via Git Console.
So - you've got 3 tests and you only want 2 of them with the updated changes - right?
Within ReadyAPI:
1.Right click on the project to launch the context menu and select 'Git' >> 'Setup Git Console' (follow the instructions to complete Git console setup)
2. Within ReadyAPI:- delete the one test - leaving only the 2 tests
3. Close ReadyAPI (leaving the 2 updated tests not added/committed or pushed yet)
4. Launch the Git console and navigate to the folder that contains your local repo and will be pointing to your local branch. Input the command the following commands in sequence:
4a. 'git checkout -b newLocalBranchName' <--- creates a new local branch
4b. 'git add .' <--- moves the changes from your working directory to the index/staging area
4c. 'git commit .' <--- moves the changes from the index/staging to your HEAD
4d. 'git push --set-upstream origin newLocalBranchName' <--- pushes the changes to remote creating a copy of your local branch back up on the remoteServer
4e. 'git checkout previousBranchName' <--- here you're switching back to the original branch
4f. 'git reset --hard' <--- reverts any changes to the original branch
4g. 'git clean -fd' <--- cleans everything up - untracked files and any temp directories
4h. 'git pull origin newLocalBranchName' <-- this essentially merges the changes from the new branch (the new updated files) with the previous branch - the previous branch has 3 unchanged tests - the new branch had 2 updated tests and 1 missing test - so you'll be merging the updates to the 2 tests and the deleted test back into your current branch
I think you can probably do above with a mix of the embedded functionality plus a tiny bit of console - but I cant be sure.
Cheers,
Rich
- Hellotest3 years agoContributor
Hi Richie,
Through Ready API for me , Enable Verison Control is disabled.
With GIT console (Right click on project) , observing screen like this below. Not sure where to enter GIT commands.
Related Content
- 2 years ago
- 2 years ago
- 6 years ago
- 8 years ago
Recent Discussions
- 13 hours ago