Jump to content

How do you connect an Forge Eclipse workspace to GitHub?


Recommended Posts

Posted (edited)

You have a couple different options you can use git command line or use a client such as GitHub Desktop (Free) or GitKraken (GitKraken is free if you have the GitHub Student Pack). If you are new to git I recommend using a client as it is easier to learn.

  1. Login to Github 
  2. Go to the location of your project
  3. Open up the folder in Terminal or Command Prompt or Git client
  4. Initialize using the command bellow or the client the repository this will create a new repository on Github 
    git init
  5. Commit the files and Push them to git using the client or with the commands below.
git commit -a
git push origin your_branch_name

 

I recommend you add a git ignore so you don't push some of the project files that eclipse creates as these should be regenerated for each user.

 

also never directly push to master as only code you know works should be there so create a new branch.

 

Edited by MDW01
  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.