Setup Menus in Admin Panel

How to add Web Project to GITHUB server using SourceTree?

In case if your not downloaded the Sourcetree client, go through the “How to access github using git client

Step 1). We have created a Web project using Maven plugin and now we wanted to check-in this web project in GitHUB server.

Step 2). Once we clone a git repository, we can see a three options in sourcetree  i.e. “File Status Working Copy” , “Branches “, “Tags”, “Remote” as highlighted in below screen.

SourceTree_Step1

Step 3). Click on the Working Copy. You can see all the files as a untracked files for newly created web project and which is not available in gitserver.

Note : Before adding the files,  we create a ignore file list which are not required to check-in into server such as .metadata generated by eclipse and RemoteSystemsTempFiles if it created during git checkout.We can add these files to ignore list by following below steps

I. Click on file you wanted to add into ignore list

SourceTree_Step2

 

II.Choose the third option i.e. ignore all the files which starts with .metadata

 

SourceTree_Step2

III.Now we take only those file which are part of untracked file by choosing the option UnTracked files

 

SourceTree_Step3

 

IV. Click on the Top Checkbox to select all the file and now it also holding .gitignore file which contains the pattern of ignoring the files and after that click on Add button and click on commit to check-in the files to local repository.

 

SourceTree_Step4

 

V.Provide the comments and proceed with committing the files.

 

SourceTree_Step5

 

VI.After successfully commit the file to local git, you can see the red icon with count 1 is displayed at Push button which indicates for pushing/check-in the file to GIT server.

SourceTree_Step6

 

VII. After successfully check-in/pushing the files to GIT you are able to see all the files in Server.

SourceTree_Step8

January 7, 2016

0 responses on "How to add Web Project to GITHUB server using SourceTree?"

Leave a Message

Your email address will not be published. Required fields are marked *

About Us

Pradeep Academy is an online & Training institute To make learning easy, interesting, affordable and accessible to millions of learners across the Globe. To create an alternative learning platform, using a unique learning methodology of live online interactive courses along with 24x7 support. We aim to empower our customers with skills which will help them get an edge in their careers and improve their lives.

Contact Us

Address :

PradeepIT Consulting Services Pvt Ltd

205,Brigade gardens, No.19 Church Street , Bangalore – 560001, Karnataka, India

Email : [email protected]
Ph No: 08047363377
Web: https://academy.pradeepit.com
top
© Pradeep Academy.  Design & Developed by