Go to Post 1 alliance wins a given tournament but all teams teams have a chance to define, chart, and create their own success. - PayneTrain [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 22-01-2015, 22:39
blu28 blu28 is offline
Registered User
FRC #0151
 
Join Date: Aug 2008
Location: Nashua, NH
Posts: 10
blu28 is an unknown quantity at this point
How to use github with eclipse.

We have been trying to use github with eclipse and have been totally failing. Does anyone know step by step instructions for getting started with github and eclipse? I keep finding partial instructions or old instructions that don't match what things look like now. We just want to have a repository on Github where we can upload the current software each night and then be able to download it the next day, possibly on a different computer to continue working. I saw something somewhere that was specific to FRC that mentioned using relative paths so the user name wouldn't be in the project files, but now I can't find it. But it doesn't matter, we haven't gotten anywhere near to that step. Is there anyone that has gotten this to work?

Brian Utterback
  #2   Spotlight this post!  
Unread 22-01-2015, 23:27
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Re: How to use github with eclipse.

Push: https://help.github.com/articles/add...-command-line/

Pull: https://help.github.com/articles/fetching-a-remote/

Here's an illustration of the workflow so you can get started.


Because I don't understand what your specific problem is, this is all I can help you with.
Attached Thumbnails
Click image for larger version

Name:	sYiyfJQ5nHYlZKED5FmPpnA.png
Views:	152
Size:	11.8 KB
ID:	17953  
__________________
College sux yo
  #3   Spotlight this post!  
Unread 22-01-2015, 23:46
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 238
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: How to use github with eclipse.

So pull your repository to wherever, then in eclipse Import-> projects from eclipse -> local repos -> find the repo you want. Then, whenever you want to commit and push, go to terminal and type git commit -a (you may have to use git add [file names] first).
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
  #4   Spotlight this post!  
Unread 23-01-2015, 05:10
dcarr's Avatar
dcarr dcarr is offline
#HoldStrong
AKA: David Carr
FRC #3309 (Friarbots)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2009
Location: Anaheim
Posts: 955
dcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond repute
Re: How to use github with eclipse.

Brian, when you say "use github with eclipse," are you looking for visual git integration within the IDE itself?

Git can be used without the IDE having any knowledge of its existence, but many IDEs offer functionality (built-in or through plugins) that make commits, diffs, resolving merge conflicts, etc potentially easier than using the standard command line interface.
__________________
Team 3309
2016 Los Angeles Chairman's Award Winner
2016 Orange County Regional Winner with 3476 & 6220
Team3309.org
Orange County Robotics Alliance
  #5   Spotlight this post!  
Unread 23-01-2015, 09:09
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 443
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: How to use github with eclipse.

Our team has used github and eclipse for the past three seasons.

This year we are trying out smartgit as ouour git client and so far I like it a lot.
In the past we have used egit, git command line, and the git GUI.

If there's interest, I can make some videos outlining the installation and setup process using eclipse and smartgit, unfortunately I won't be able to have them available until early next week.
__________________
http://team2168.org
  #6   Spotlight this post!  
Unread 23-01-2015, 12:02
blu28 blu28 is offline
Registered User
FRC #0151
 
Join Date: Aug 2008
Location: Nashua, NH
Posts: 10
blu28 is an unknown quantity at this point
Re: How to use github with eclipse.

I am well acquainted with revision control. I use mercurial in my day job, for instance. But so far I have not been able to get Eclipse and egit installed to the point that I can push or clone a repository on Github.
  #7   Spotlight this post!  
Unread 23-01-2015, 17:13
dcarr's Avatar
dcarr dcarr is offline
#HoldStrong
AKA: David Carr
FRC #3309 (Friarbots)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2009
Location: Anaheim
Posts: 955
dcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond repute
Re: How to use github with eclipse.

Aside from trying to get egit working, Atlassian SourceTree is an excellent visual git client that you might want to look at. GitHub has an official client for Mac and Windows as well but it's less powerful.
__________________
Team 3309
2016 Los Angeles Chairman's Award Winner
2016 Orange County Regional Winner with 3476 & 6220
Team3309.org
Orange County Robotics Alliance
  #8   Spotlight this post!  
Unread 23-01-2015, 22:02
blu28 blu28 is offline
Registered User
FRC #0151
 
Join Date: Aug 2008
Location: Nashua, NH
Posts: 10
blu28 is an unknown quantity at this point
Re: How to use github with eclipse.

Okay, I downloaded and installed Atlassian SourceTree. I presume that I use this separately, not from within Eclipse. Do you have an example to get me started. I think I have GIT set up okay. I have a project I created with RobotBuilder in Eclipse and a repository set up on Github. How do I bring them together?
  #9   Spotlight this post!  
Unread 25-01-2015, 03:15
dcarr's Avatar
dcarr dcarr is offline
#HoldStrong
AKA: David Carr
FRC #3309 (Friarbots)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2009
Location: Anaheim
Posts: 955
dcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond repute
Re: How to use github with eclipse.

Quote:
Originally Posted by blu28 View Post
Okay, I downloaded and installed Atlassian SourceTree. I presume that I use this separately, not from within Eclipse.
Yes

Quote:
Do you have an example to get me started. I think I have GIT set up okay. I have a project I created with RobotBuilder in Eclipse and a repository set up on Github. How do I bring them together?
Essentially what you need to do is initialize a new git repository in the directory where your project is located, and then add your repository on GitHub as a remote.

To do this in SourceTree, create a new repository and set the path to the directory where your project is located.

Then, choose Add Remote from the Repository menu and add the URL for your repo on GitHub.
__________________
Team 3309
2016 Los Angeles Chairman's Award Winner
2016 Orange County Regional Winner with 3476 & 6220
Team3309.org
Orange County Robotics Alliance
  #10   Spotlight this post!  
Unread 25-01-2015, 06:52
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: How to use github with eclipse.

+1 for SourceTree.

My only complaint with SourceTree (and an issue I have with all git clients) is that I haven't found a good way to support multiple users on one machine. We have far more programmers than we have computers, so when students have to share computers they rarely end up using their own git account.
__________________
Team 2052- KnightKrawler
Mentor and volunteer
  #11   Spotlight this post!  
Unread 26-01-2015, 01:08
dcarr's Avatar
dcarr dcarr is offline
#HoldStrong
AKA: David Carr
FRC #3309 (Friarbots)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2009
Location: Anaheim
Posts: 955
dcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond repute
Re: How to use github with eclipse.

Quote:
Originally Posted by Tanis View Post
+1 for SourceTree.

My only complaint with SourceTree (and an issue I have with all git clients) is that I haven't found a good way to support multiple users on one machine. We have far more programmers than we have computers, so when students have to share computers they rarely end up using their own git account.
You could make different user accounts on the machine and each would have a unique git user attached to it.
__________________
Team 3309
2016 Los Angeles Chairman's Award Winner
2016 Orange County Regional Winner with 3476 & 6220
Team3309.org
Orange County Robotics Alliance
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi