GitHub is a web-based service that uses the Git revision control system to manage sourcecodes.
In the tutorial, JavaSampleApproach will guide you through the steps of configuring GitHub repository with SpringToolSuite for development.
I. Techonologies
– GitHub
– SpringToolSuite
II. Practices
Step to do:
– Register GitHub account
– Create a GitHubRepository
– Configure GitHub for SpringToolSuite
– Create & Share a project to GitHub
1. Setup GitHub account
Go to https://github.com/, then SignUp:
Press the button Sign up for GitHub, we go to next panel: Welcome to GitHub
Here having 2 options for choosing:
– Unlimited public repositories for free
– Unlimited private repositories ($7/month)
For starting, you should choose the first option.
Press Continue.
We go to next panel: Tailor your experience.
In here, you have some checkboxes to describes about you. Then press Submit.
Right now, a GitHub message will be sent to your mail account to verify the register.
Click to the link: Verify email address for done the registration.
2. Create a GitHub repository
Now go to Create a new repository page by following the link: github.com/new
Fill info about: Repository name, Description (option).
We have 2 mode for choosing: Public & Private
– Public: Anyone can see this repository. You choose who can commit.
– Private: You choose who can see and commit to this repository. But having money for the mode ()
For starting, we choose Public mode.
Check a option: Initialize this repository with a README.
Press Create repository button. JavaSampleApproach/tutorials is created successfully.
3. Configure GitHub for SpringToolSuite
Open SpringToolSuite, go to: Window-> Show view -> Others -> Git Repositories.
Choose Clone URI. Then fill data: uri – username/password
Note: we got URI at the Clone or download button of the tutorial repository as below image:
Press Next, go to Branch Selection, choose master,
Press Next, go to Local Destination Configuration, edit Directory, then press Finish:
Now, We have finished the GitHub setup for SpringToolSuite.
4. Create a project & Commit to GitHub
4.1 Create and Share project to GitHub
Create a simple SpringStartProject: GitHubHelloworld.
Right click on the project, go to Team->Share, fill needed info about GitHub repository:
Press Finish button, the result as below image:
4.2 Commit Sourcecode
Go to the project’s folder, modify .gitignore file:
Replace the old content of .gitignore file with the new content:
.mvn/ .settings/ bin/ target/ .classpath .project mvnw*
Add to Index: right click on the project, go to Team -> Add to Index.
Commit: right click on the project, go to -> Commit
Press Commit & Push, then provides authentication info:
The result after done:
Problems: we need deleted files: .mvn/wrapper and mvnw,
mvnw.cmd.
=> How to do it?
Just open .gitignore file, change content of the file to:
.mvn/wrapper/ mvnw mvnw.cmd .settings/ bin/ target/ .classpath .project
Then delete the files from project: .mvn/wrapper/ & mvnw, mvnw.cmd. Righ click on the project, go to Team -> Add to Index.
Commit again:
Righ click on the project, go to Team -> Commit. Add comment:
modify .gitignore file & remove .jar & mvn* file
Now press Commit & Push, see the results:
466711 206529Im agitated all these article directories. It positive would be good to have every article directory that instantly accepts articles. 93976
401813 283231I believe other web site owners should take this site as an model, very clean and superb user genial style and style . 695807
81474 228788Hey! Do you use Twitter? Id like to follow you if that would be ok. Im surely enjoying your weblog and look forward to new updates. 52310
I love the efforts you have put in this, regards for all the great blog posts.
This is a interesting line of content, very nice article. Thanks for sharing this post, good way of bring this subject to discussion. Keep up the great work !
You really should take part in a contest for starters of the finest blogs over the internet. I am going to recommend this page!
Simply want to say your article is as amazing. The clearness in your post is just spectacular and i can assume you’re an expert on this subject. Well with your permission let me to grab your feed to keep updated with forthcoming post. Thanks a million and please continue the gratifying work.
Hiya, I’m really glad I’ve found this info. Today bloggers publish only about gossips and net and this is really annoying. A good website with interesting content, that’s what I need. Thanks for keeping this web site, I will be visiting it. Do you do newsletters? Can not find it.
Oh my goodness! an amazing post dude. Thanks a lot Even so We are experiencing problem with ur rss . Do not know why Can not sign up for it. Could there be anyone finding identical rss issue? Anybody who knows kindly respond. Thnkx
After i open up your own Feed it offers myself with many different garbled text message, could be the concern on my small conclusion?
787162 649079of course data entry services are really expensive that is why always make a backup of your files 105536