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.
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
II.Choose the third option i.e. ignore all the files which starts with .metadata
III.Now we take only those file which are part of untracked file by choosing the option UnTracked files
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.
V.Provide the comments and proceed with committing the files.
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.
VII. After successfully check-in/pushing the files to GIT you are able to see all the files in Server.