Pushing code to Remote Repository (GITHUB)

Tejasvi Hegde
A free video tutorial from Tejasvi Hegde
Test Automation Enthusiast
4.3 instructor rating • 7 courses • 29,537 students

Learn more from the full course

REST API Automation:REST Assured,Serenity BDD Framework

Build a robust REST API test automation framework/CI environment using Serenity BDD, Jenkins, Git

05:28:09 of on-demand video • Updated May 2020

  • Build reusable methods ,write different types of tests
  • Create Data Driven Tests
  • Execute Tests Faster by running them in parallel
  • Run selective tests JUnit using Tags
  • Publish amazing reports with logging of Request & Response Information
  • Write Cucumber Scenarios integrated with Serenity BDD
  • Commit code to Github
  • Implement CI by integrating project with Jenkins & GIT
English [Auto] This lecture we be learning how to create a remote repository and get up. We also learn how to push our code that is present at the local repository onto the remote repository and get her. This is the homepage of Good Hope. So you are in the Get up rotgut. So why do you need to lose your need to sign up on a guitar. If you already have one then it's fine. If not you can just create an account. And next year to basically signing on I'm just going to sign it. So when you sign up for the first time this is all the landing page will look to create a repository. All you need to do is to start a new project and this project now you'll have the option to create a new repository so this is a puzzle to us. Serenity tutorial just your description. There are two settings here. One is the public setting and one is the directory. So by default the setting will be in public because Tabitha co-chairing platform for collaboration allows for sharing. So whatever projects you are creating on get up there will be available to anyone. So they have yet to get her Abidi they can go and look at their product. The other option is private. So if you choose private then you're basically how to pay some amount to get up. So when you select a private getup account in this case the court won't be one or two other people that are repositories are not protected unless you get access. Nobody can come and look at the court. So for our case we'll just be using the public setting idling companies we wouldn't be actually using to get tobacco rather so would be hosted internally. So only you can access the code within the network and not outside skip this particular step and click on Create repository and once we do this we'll get some instructions on how to actually import the local repository to them or that is how to basically push the code from our local to the getups repository. So these are the instructions. So that does not follow this. The first one is basically when are doing it for the first time that is when you create a new local repository and then you are trying to basically come at this particular look at the positive to get up then you need to follow these steps. But in our case we already created the local depositary and we need to not push this to the limit. So it pushed us to that in what capacity we need to use this particular command that is get more at our region. And this is the you are a let me just copy this and here it was clear this and if I hit enter I should have been prompted with the username and password that is venue and this particular come the first time prompted by the username and password you provide the same username and password that you use to log in to get tab. So when you hit enter you will be asked with that username and password so provide those two details. And once you do that you'll be ready to push your code to the remote repository. So before that this recording itself I had accidently entered the username and password and hence it did not prompt me. So just don't be confused the first time and ask for the username and password. Just provide the get a name and password. The next step is to basically push the court in what capacity not to do that. This copy does get Bush minus you origin musta hit enter. It basically push on the Find that are on my local city to the remote Depository know if I go back and if I just open this depositary Now you can see that the student up Project is committed to the reward depositary all the funds represented. These are all the source files. So this is how we basically parse all the code that is present in our local repository to the remote repository and get up on the first example what we did was we created the local Depository and we pushed all the code into a repository. There can be cases very are actually new to the project and you might have to get that project onto your local or politically clone the remote repository. How do we do that in order to do that. What do you need to do is go to the project and your always is how you are there for cloning. So just copy this you are in and open up on the terminal and create a new directory. So I don't want to just navigate to the desktop right here. Create another directory just call this I set it to the now let me navigate to this directory and I'm in the Serenity remote directory. So what I'm going to do now is I'm basically going to clone this particular project onto this sensitive remote directory so all the court files will be downloaded onto this folder along with the docket for that also will be created. There is a local Depository they used a clone right. Before that we should say get Gitlow and I just need to provide you I don't know FIRE-TENDER you know it's cloning this particular project onto this directory and I was to Alice minus it. You can see here that the Productus displayed the biggest navigate his can do in this minus the so inside this you can see the dark it was also present. So we have one more for that. So if you navigate inside just for that you have the project as well as the local depositary. So I think the lectures on kittenhood are complete.