Integrating Github With Eclipse

The Cherno · Intermediate ·📰 AI News & Updates ·12y ago

Key Takeaways

The video demonstrates how to integrate a GitHub repository with Eclipse using the EGit plugin, including installing the plugin, cloning a repository, and setting up a Java project.

Full Transcript

Hey, what's up guys? My name is Aerno. Welcome to another GitHub tutorial. So, today we're going to talk about integrating a GitHub repository with Eclipse. Okay, so to do that, um, basically what the first thing you'll need is to go to help and then install new software. And the reason I'm on Windows, by the way, is because, um, I've already got it all set up on Mac. And, uh, in order to demonstrate this, I'd have to, you know, unset it and do the I'll do the whole thing over again. So I thought it'd be easy to do it on Windows. So the directory that we're going to work with is called egit. So um that's what it looks like. So you'll have to hit add, then type in egit and then the uh URL which is right over here. And again the link to that will be in the description. So egit basically allows you it's a plugin for Eclipse and it allows you to uh integrate git with uh Eclipse which is obviously immensely useful. So once you type that in um or once you select that website hit uh select all and then next and then I've already got it installed but if you don't keep hitting next accept the agreement blah blah blah uh then it will download and install and then you'll be prompted to restart Eclipse and hit yes and then once you do restart Eclipse you should get to this view. Okay so this is a blank new workspace as well. I haven't done anything here at all. Um so to set this up what we'll have to do is uh basically import it from Eclipse uh sorry import it from GitHub directly. So to do that hit file and then actually first of all hit window go to show view and then other and then you'll have this tab here called git uh this folder here. So I expand that and there'll be a um a view here called git repository. So hit that and hit okay and it'll pop up over here. Okay. And essentially what we're going to do is clone a git repository. But just in case you don't see this or if you've already got some, what you'll have to do is probably hit file and then import or you can actually just right click here in in package explorer or navigator and hit import. And then you'll see this t folder here called git. So you want to click on that and then projects from git. If you got the github plugin, it'll just say github over here as well as this. And that makes a lot easier because then you can just type in churn chat and it'll find it for you. But in case you don't, projects from git right here. Hit next. Hit URI. Hit next. And then what you'll have to do is copy the URI of this. So it's not this link. Okay. What you'll have to do over here is um come over here and copy the actual HTTP HTTPS here. So copy clipboard. There's a button and then paste it over here. So it's essentially the same except it's got a dot kit extension on the end. So uh once you paste that in, it should automatically detect all the settings. So then you don't need authentication of course. It's a public repository. Then hit next. You'll get the remote branches. Uh there'll be one called master which is should be the only one there. So grab that. Okay. So make sure that that's selected. Then hit next and it'll set up a directory for you. You can change that to whatever you want by default. I think it' be on Windows your username then git and then the name of the project. So journey chat in this case. Uh grab that, hit next. And then what you'll have to do once it detects this is because the repository does not have a project file, you'll have to import it as a general project. Make sure that you do that. Okay. So then hit next. And then when that's done, hit finish. And as you can see, it's imported here. Now, that's brilliant. And if you go over here, you can go to source, you can go to com j chat, login, whatever. It's all there, which is great. Now, the problem you might run, you might run into, in fact, you probably will, is if you try and debug it, you'll uh this will show up. So, the selection cannot be launched and there are no recent launches. Now, the reason this shows up is because this this project that is imported, it's not a Java project. It's just a general project and Eclipse doesn't know how to run it. Okay. So, we need to tell Eclipse how to run it. Okay. And one thing you might notice as well here is this get repositories tab and this has all of your um stuff like the working directory with all the source code as well as the remote addresses which is where you'll be able to actually uh fetch the latest changes but we'll talk about that in another episode. Um okay. So, how do we set this up as an Eclipse project as a Java project? Now, to do that, the best way to do is the best the best thing to do is actually delete it. So, let's right click on it and hit delete. Make sure you don't delete the project contents. Do not do that. Okay. And take note of the location because you're going to need that. In fact, I'm just going to copy that if I can. I'm not sure if that's copyable, but hit okay. So, now it's gone. Okay. Now, we want to go file, new Java project. Make sure you hit Java project. And uh the default location, paste in that thing. Luckily, it did copy. And then, whoops, churn chat. And then type the project name Cherno chat as well. Okay. So, hit finish. It'll get imported right here. And if we go to the source over here and expand it login Java, you'll see that if we run it, it will show up. Now, this don't worry about the uh the style of it. Unfortunately, when I pushed it, it didn't push the UI manager stuff that we added in episode 3 yet. So, that's why it doesn't have UI manager set up properly. That's why it looks weird. But the point is, it works. Now, you can probably notice here that it's not connected to GitHub anymore because it doesn't have that little master thing or whatever. Um to set that up, it's really it's really simple. We just need to right click on the project name, hit team, and then share project. Uh under git, hit next. It should automatically detect it because we've already got agit folder here. So just hit finish. You can see it detects it. And then this will all appear here. And then you'll actually be able to fetch um pretty much anything you want. So there's nothing to fetch. Everything is up to date. Okay. And that's how that works. So I hope you guys enjoyed this video. So, if you did, please hit the like button and I'll see you guys next time. Goodbye. [Music]

Original Description

EGit Plugin: http://download.eclipse.org/egit/updates My Github Account: https://github.com/TheCherno Cherno Chat code repository: https://github.com/TheCherno/ChernoChat BEST laptop for programming! ► http://geni.us/pakTES My FAVOURITE keyboard for programming! ► http://geni.us/zNhB FAVOURITE monitors for programming! ► http://geni.us/Ig6KBq ---------------------------------------------------------------------------------------------------------------- Website: http://www.thecherno.com Twitter: http://www.twitter.com/thecherno Facebook: http://www.facebook.com/thecherno Subreddit: http://www.reddit.com/r/thecherno/ Steam Group: http://www.steamcommunity.com/groups/thecherno ---------------------------------------------------------------------------------------------------------------- Outro music is by Approaching Nirvana: http://www.youtube.com/approachingnirvana
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from The Cherno · The Cherno · 0 of 60

← Previous Next →
1 3D Game Programming - Episode 1 - Window
3D Game Programming - Episode 1 - Window
The Cherno
2 3D Game Programming - Episode 2 - Game Loop
3D Game Programming - Episode 2 - Game Loop
The Cherno
3 3D Game Programming - Episode 3 - Arrays
3D Game Programming - Episode 3 - Arrays
The Cherno
4 3D Game Programming - Episode 4 - Drawing Pixels!
3D Game Programming - Episode 4 - Drawing Pixels!
The Cherno
5 3D Game Programming - Episode 4.5 - How Rendering Works
3D Game Programming - Episode 4.5 - How Rendering Works
The Cherno
6 3D Game Programming - Episode 5 - Playing with Pixels!
3D Game Programming - Episode 5 - Playing with Pixels!
The Cherno
7 3D Game Programming - Episode 6 - Performance Boosting
3D Game Programming - Episode 6 - Performance Boosting
The Cherno
8 3D Game Programming - Episode 7 - FPS Counter
3D Game Programming - Episode 7 - FPS Counter
The Cherno
9 3D Game Programming - Episode 8 - Alpha Support and More
3D Game Programming - Episode 8 - Alpha Support and More
The Cherno
10 3D Game Programming - Episode 9 - Beginning 3D
3D Game Programming - Episode 9 - Beginning 3D
The Cherno
11 3D Game Programming - Episode 10 - Floors and Animation
3D Game Programming - Episode 10 - Floors and Animation
The Cherno
12 3D Game Programming - Episode 11 - Rotation
3D Game Programming - Episode 11 - Rotation
The Cherno
13 3D Game Programming - Episode 12 - User Input
3D Game Programming - Episode 12 - User Input
The Cherno
14 3D Game Programming - Episode 13 - Render Distance Limiter!
3D Game Programming - Episode 13 - Render Distance Limiter!
The Cherno
15 3D Game Programming - Episode 14 - Basic Mouse Movement
3D Game Programming - Episode 14 - Basic Mouse Movement
The Cherno
16 3D Game Programming - Episode 15 - Textures + More!
3D Game Programming - Episode 15 - Textures + More!
The Cherno
17 3D Game Programming - Episode 16 - Walking, Crouching, Sprinting + More
3D Game Programming - Episode 16 - Walking, Crouching, Sprinting + More
The Cherno
18 3D Game Programming - Episode 16.5 - Exporting Runnable Jars
3D Game Programming - Episode 16.5 - Exporting Runnable Jars
The Cherno
19 3D Game Programming - Episode 17 - Small Adjustments + Birthday!
3D Game Programming - Episode 17 - Small Adjustments + Birthday!
The Cherno
20 3D Game Programming - Episode 17.5 - Creating an Applet
3D Game Programming - Episode 17.5 - Creating an Applet
The Cherno
21 3D Game Programming - Episode 18 - The Beginning of Walls
3D Game Programming - Episode 18 - The Beginning of Walls
The Cherno
22 3D Game Programming - Episode 18.1 - A Few More Things
3D Game Programming - Episode 18.1 - A Few More Things
The Cherno
23 Episode 18.5 - Creating an EXE File in Java
Episode 18.5 - Creating an EXE File in Java
The Cherno
24 3D Game Programming - Episode 19 - Rendering Walls
3D Game Programming - Episode 19 - Rendering Walls
The Cherno
25 3D Game Programming - Episode 20 - Continuing Walls, Fixing Bugs, and Managing Crashes
3D Game Programming - Episode 20 - Continuing Walls, Fixing Bugs, and Managing Crashes
The Cherno
26 3D Game Programming - Episode 21 - Texturing Walls, Fixing Clipping, and Fixing the Mouse
3D Game Programming - Episode 21 - Texturing Walls, Fixing Clipping, and Fixing the Mouse
The Cherno
27 3D Game Programming - Episode 22 - Random Level Generator + Properly Fixing Clipping
3D Game Programming - Episode 22 - Random Level Generator + Properly Fixing Clipping
The Cherno
28 3D Game Programming - Episode 23 - Graphical User Interface (GUI) Launcher
3D Game Programming - Episode 23 - Graphical User Interface (GUI) Launcher
The Cherno
29 3D Game Programming - Episode 24 - Making Our Launcher Work
3D Game Programming - Episode 24 - Making Our Launcher Work
The Cherno
30 3D Game Programming - Episode 25 - Writing and Reading Files
3D Game Programming - Episode 25 - Writing and Reading Files
The Cherno
31 3D Game Programming - Episode 26 - Custom Resolutions
3D Game Programming - Episode 26 - Custom Resolutions
The Cherno
32 3D Game Programming - Episode 27 - Decorating the Launcher
3D Game Programming - Episode 27 - Decorating the Launcher
The Cherno
33 3D Game Programming - Episode 28 - Continuing our Custom Launcher!
3D Game Programming - Episode 28 - Continuing our Custom Launcher!
The Cherno
34 3D Game Programming - Episode 29 - Launching The Game
3D Game Programming - Episode 29 - Launching The Game
The Cherno
35 3D Game Programming - Episode 30 - Colour Processing In-Depth
3D Game Programming - Episode 30 - Colour Processing In-Depth
The Cherno
36 3D Game Programming - Episode 31 - Sprites!
3D Game Programming - Episode 31 - Sprites!
The Cherno
37 3D Game Programming - Episode 32 - Sprite Mapping
3D Game Programming - Episode 32 - Sprite Mapping
The Cherno
38 3D Game Programming - Episode 33 - High Resolution Rendering
3D Game Programming - Episode 33 - High Resolution Rendering
The Cherno
39 3D Game Programming - Episode 34 - Entities
3D Game Programming - Episode 34 - Entities
The Cherno
40 Genesis - My Game for Ludum Dare 24
Genesis - My Game for Ludum Dare 24
The Cherno
41 Vlog + Ludum Dare Results
Vlog + Ludum Dare Results
The Cherno
42 Game Programming - Episode 1 - Resolution
Game Programming - Episode 1 - Resolution
The Cherno
43 Game Programming - Episode 2 - Threads
Game Programming - Episode 2 - Threads
The Cherno
44 Game Programming - Episode 3 - Game Loop
Game Programming - Episode 3 - Game Loop
The Cherno
45 Game Programming - Episode 4 - Window
Game Programming - Episode 4 - Window
The Cherno
46 Episode 5 - Buffer Strategy
Episode 5 - Buffer Strategy
The Cherno
47 Game Programming - Episode 6 - Graphics Initialized
Game Programming - Episode 6 - Graphics Initialized
The Cherno
48 Game Programming - Episode 7 - Buffered Image and Rasters
Game Programming - Episode 7 - Buffered Image and Rasters
The Cherno
49 Game Programming - Episode 8 - The Screen Class
Game Programming - Episode 8 - The Screen Class
The Cherno
50 Game Programming - Episode 9 - Rendering Pixels
Game Programming - Episode 9 - Rendering Pixels
The Cherno
51 Game Programming - Episode 10 - Clearing the Screen
Game Programming - Episode 10 - Clearing the Screen
The Cherno
52 Game Programming - Episode 11 - "Out of Bounds, Baby!"
Game Programming - Episode 11 - "Out of Bounds, Baby!"
The Cherno
53 Game Programming - Episode 12 - Negative Bounds
Game Programming - Episode 12 - Negative Bounds
The Cherno
54 Game Programming - Episode 13 - Timer
Game Programming - Episode 13 - Timer
The Cherno
55 Game Programming - Episode 14 - FPS Counter
Game Programming - Episode 14 - FPS Counter
The Cherno
56 Episode 15 - Tiles
Episode 15 - Tiles
The Cherno
57 Game Programming - Episode 16 - The Map
Game Programming - Episode 16 - The Map
The Cherno
58 The Walls 2 - Minecraft PvP Survival Map
The Walls 2 - Minecraft PvP Survival Map
The Cherno
59 Game Programming - Episode 17 - Key Input
Game Programming - Episode 17 - Key Input
The Cherno
60 Game Programming - Episode 18 - Controlling The Map
Game Programming - Episode 18 - Controlling The Map
The Cherno

This video teaches how to integrate GitHub with Eclipse using the EGit plugin, enabling version control and collaboration in software development projects.

Key Takeaways
  1. Install EGit plugin in Eclipse
  2. Clone a Git repository
  3. Set up a Java project in Eclipse
  4. Configure Git repository settings
  5. Share project with Git
💡 The EGit plugin allows for seamless integration of Git version control with Eclipse, streamlining software development workflows.

Related AI Lessons

AI: Energy Taker or Energy Maker
Learn how rising data center energy demands can catalyze a clean energy transition and why it matters for sustainable AI development
Medium · AI
When AI Asks for More Electricity Than a Country Can Imagine
AI's increasing power consumption is causing concerns, learn why it matters for data centers and energy supply
Medium · AI
You Are Not Behind. The World Is.
You're not behind, the world is still adapting to AI, and it's okay to take your time to learn and grow
Medium · AI
Career choice with the advent of AI - pure Computer Science or learn software with a background of core engineering area
Learn how to choose between a Computer Science and Engineering career path or combining programming with a core engineering background in the age of AI
Dev.to AI
Up next
Generative AI
Alea IT Solutions
Watch →