Github SetUp

 

Let’s see how we can setup GitHub for Subversioning

Login in to github.com and click on sign up

Git Hub Setup

 

Provide the username and password

Git Hub Setup

 

Verify link that will be send on registered email, click on verify Account and continue to login

 

Create a new repository

Git Hub Setup

 

Git Hub Setup

 

 

Repository is created as mulesoft-cicd-sample

Git Hub Setup

 

Next step is to clone the repository on local

Download the git client from below URL and install the git client on local machine

https://git-scm.com/download/gui/windows

Once the installation complete, open git bash
Git Hub Setup

Run the below command to clone the repository on local
Git Hub Setup

 

git clone repository-name(copy the git repository url)
Git Hub Setup
Repository created in local folder, you can continue add the project files in this repository

 

 

Create a sample mule project and add the files in git repository,use the below commands to add,commit and push files in git repository

  • git status: This command will show you all the files that have been added, changed, or deleted

  • git add . this command will select all the available files for saving.

  • git commit -m “<commit message>”: this will commit the files in git repo

  • git push: once you’ve added and committed all your files, run this command to push all your commits to your repo

  • git status: check the final status to cross verify if all the files are added etc.

 

Files are added in repository as shown below

  
Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.
 
For any latest updates or posts on our website, you can follow us on LinkedIn. Look forward to connecting with you there.


Share this:
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments