Using EclipseGit

satya - 1/19/2018, 2:35:35 PM

Once you have installed Egit in Eclipse search for EGit User Guide

Once you have installed Egit in Eclipse search for EGit User Guide

satya - 1/19/2018, 2:36:06 PM

Look for


Getting StartedBasic Tutorial: Adding a project to version control

satya - 1/19/2018, 2:37:59 PM

EGit: Use or create repository in parent folder of the project, problems

EGit: Use or create repository in parent folder of the project, problems

Search for: EGit: Use or create repository in parent folder of the project, problems

I am not able to use this option. There is a warning indicating there is some sort of a catch here!!

satya - 1/19/2018, 2:39:17 PM

When I give the same project directory as my eclipse project the complaint is:

Cannot move project aspire to target location C:\satya\data\codebase\aspire_jsdk23_eclipse\aspire, as this location overlaps with location C:\satya\data\codebase\aspire_jsdk23_eclipse, which contains a .project file

satya - 1/19/2018, 2:41:46 PM

.project file and egit

.project file and egit

Search for: .project file and egit

satya - 1/19/2018, 2:50:13 PM

What is working tree in egit configure git repository

What is working tree in egit configure git repository

Search for: What is working tree in egit configure git repository

satya - 1/19/2018, 3:03:31 PM

what does * stars mean in egit?

what does * stars mean in egit?

Search for: what does * stars mean in egit?

satya - 1/19/2018, 3:05:21 PM

here is a quick image for SOF

satya - 1/19/2018, 3:05:59 PM

From SOF an explanation of the above

dirty (folder) - At least one file below the folder is dirty; that means that it has changes in the working tree that are neither in the index nor in the repository.

tracked - The resource is known to the Git repository.

untracked - The resource is not known to the Git repository.

ignored - The resource is ignored by the Git team provider. Here only the preference settings under Team -> Ignored Resources and the "derived" flag are relevant. The .gitignore file is not taken into account.

dirty - The resource has changes in the working tree that are neither in the index nor in the repository.

staged - The resource has changes which are added to the index. Not that adding to the index is possible at the moment only on the commit dialog on the context menu of a resource.

partially-staged - The resource has changes which are added to the index and additionally changes in the working tree that are neither in the index nor in the repository.

added - The resource is not yet tracked by but added to the Git repository.

removed - The resource is staged for removal from the Git repository.

conflict - A merge conflict exists for the file.

assume-valid - The resource has the "assume unchanged" flag. This means that Git stops checking the working tree files for possible modifications, so you need to manually unset the bit to tell Git when you change the working tree file. This setting can be switched on with the menu action Team->Assume unchanged (or on the command line with git update-index --assume-unchanged).

satya - 1/19/2018, 3:06:13 PM

SOF link

SOF link

satya - 1/19/2018, 3:28:43 PM

In the confusion I have hidden all the files :(

Apparently there is no way using right click in windows to unhide those files!! You have to choose the menu item on top called "View" and then turn ON the hidden files checkbox!!

However, they are not really hidden to begin with for I have wrongly chosen that. So I have to now change the attributes to unhidden.

However, again, this may have inadvertently exposed the files that were meant to be "hidden" to begin with!!!

satya - 1/19/2018, 3:40:31 PM

egit home page

egit home page

Search for: egit home page

satya - 1/19/2018, 3:40:54 PM

egit homepage

egit homepage

satya - 1/19/2018, 3:45:54 PM

Jgit and egit?

Jgit and egit?

Search for: Jgit and egit?

satya - 1/19/2018, 3:54:21 PM

egit documentation doesn't match in eclipse Oxygen

egit documentation doesn't match in eclipse Oxygen

Search for: egit documentation doesn't match in eclipse Oxygen

satya - 1/22/2018, 1:54:19 PM

Madness of directories...

Madness of directories...

satya - 1/22/2018, 1:58:20 PM

At a very high level


*****************
#High level
*****************
/satya/data -- Contains all assets
/satya/data/codebase -- Code, Git Repos etc.

*****************
#Eclipse Oxygen ws
*****************
/satya/data/eclipse-ws/oxygen/aspire
  -- Old eclipse projects
  -- akc-sqlserver
  -- aspire 

/satya/data/eclipse-ws/oxygen/git
  -- eclipse projects that are git repos
  -- or that are targetd for git

satya - 1/22/2018, 3:47:47 PM

So work spaces are kept outside of codebase: /satya/data

So work spaces are kept outside of codebase: /satya/data

satya - 1/22/2018, 3:50:35 PM

What is in the codebase: /satya/data/codebase?


/satya/data/codebase/
  -- ack
  -- aspire -- previous non git code

/satya/data/codebase/git
  -- Moved aspire temporarily to see
  -- if eclipse git can use it

/satya/data/codebase/git-repo
  -- Looks like I need to create a sep repo
  -- Not sure yet if need the "git" then

satya - 1/22/2018, 3:51:31 PM

The Unix HOME directory: looks like EGit needs a unix home setting


HOME=/satya/data/codebase/git-repo/git-home

satya - 4/9/2018, 5:38:00 PM

How do I specify a destination git repository in egit: URI, Host, Path?

How do I specify a destination git repository in egit: URI, Host, Path?

Search for: How do I specify a destination git repository in egit: URI, Host, Path?

satya - 4/9/2018, 5:40:05 PM

what is the URI of a git repo?

what is the URI of a git repo?

Search for: what is the URI of a git repo?

satya - 4/9/2018, 5:41:51 PM

Git and Egit for beginers: wiki page

Git and Egit for beginers: wiki page

satya - 4/9/2018, 5:42:32 PM

Format of a github git uri

Format of a github git uri

Search for: Format of a github git uri

satya - 4/9/2018, 5:46:37 PM

Here are various formats of Git URIs

Here are various formats of Git URIs

satya - 4/9/2018, 5:46:59 PM

should I use https or ssh for github push?

should I use https or ssh for github push?

Search for: should I use https or ssh for github push?

satya - 4/9/2018, 5:53:21 PM

what is reject non fast forward in git?

what is reject non fast forward in git?

Search for: what is reject non fast forward in git?

satya - 4/9/2018, 6:01:35 PM

How can I connect a local git repo to a remote repo in egit?

How can I connect a local git repo to a remote repo in egit?

Search for: How can I connect a local git repo to a remote repo in egit?

satya - 4/9/2018, 6:25:17 PM

what are working sets in eclipse?

what are working sets in eclipse?

Search for: what are working sets in eclipse?

satya - 4/9/2018, 6:27:58 PM

It has been largely a disaster trying to go from local to remote

I gave up

EGit or Git is way too many acronyms....

Tried to go from a local repo to a remote

Just pain in the ass...

Had to go from remote to local to see if that works

satya - 4/9/2018, 6:34:23 PM

How to choose an open source license

How to choose an open source license

satya - 4/9/2018, 6:37:06 PM

This seem to work better


Login
Create a repo
Recognize its URL
https://github.com/SatyaKomatineni/aspire

Comeback to egit/eclipse
Start fresh
Clone using the above
you will need userid/password

//Copy files
Now copy your java directories
including eclipse .project file

//add to index
Individually add to index first
directory by directory

Do the same for .project file

//Commit and push
right click
push
Use commit and push

//I see the files in github now
Who knows what next!!