The key lies in when you create the project in eclipse.
First step, you create the Java project in eclipse. Right click on the project and choose Team > Share>Git.
N.B: Eclipse will give you a warning about putting git repositories in your workspace. So when you create your project, set your project directory outside the default workspace.
Related Posts:
- ‘cannot open git-upload-pack’ error in Eclipse when cloning or pushing git repository
- How do I set up Eclipse/EGit with GitHub?
- How to solve could not create the virtual machine error of Java Virtual Machine Launcher?
- How to solve could not create the virtual machine error of Java Virtual Machine Launcher?
- Editor does not contain a main type
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- Eclipse: Enable autocomplete / content assist
- java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
- “insufficient memory for the Java Runtime Environment ” message in eclipse
- Control an Arduino with Java
- How do I resolve the “java.net.BindException: Address already in use: JVM_Bind” error?
- Opening JSF Facelets page shows “This XML file does not appear to have any style information associated with it.”
- web.xml is missing and
is set to true - The program can’t start because cygwin1.dll is missing… in Eclipse CDT
- Eclipse C++ : “Program “g++” not found in PATH”
- Unbound classpath container in Eclipse
- “Server Tomcat v7.0 Server at localhost failed to start” without stack trace while it works in terminal
- java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
- “Server Tomcat v7.0 Server at localhost failed to start” without stack trace while it works in terminal
- web.xml is missing and
is set to true – web.xml is there and can’t edit deployment assembly - eclipse won’t start – no java virtual machine was found
- How to solve “Plugin execution not covered by lifecycle configuration” for Spring Data Maven Builds
- Eclipse returns error message “Java was started but returned exit code = 1”
- Ant “JAVA_HOME does not point to the JDK” – but it does
- Program “make” not found in PATH
- Eclipse internal error while initializing Java tooling
- web.xml is missing and
is set to true - How to clear console in Java – Eclipse
- Eclipse keyboard shortcut to indent source code to the left?
- eclipse for chrome?
- Can eclipse be configured to automatically fix missing Imports?
- Program “make” not found in PATH
- Importing Maven project into Eclipse
- How to show the Project Explorer window in Eclipse?
- Avoiding “resource is out of sync with the filesystem”
- Eclipse Mars vs Luna
- How to open an existing project in Eclipse?
- Importing a GitHub project into Eclipse
- CodePro Analytix: Where to find the plugin
- Eclipse EGit Checkout conflict with files: – EGit doesn’t want to continue
- How to open Console window in Eclipse?
- Some projects cannot be imported because they already exist in the workspace error in Eclipse
- Java error no lwjgl64 in path?
- GitHub – error: failed to push some refs to ‘[email protected]:myrepo.git’
- GitHub Error Message – Permission denied (publickey)
- Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
- How to uninstall Eclipse?
- How to solve SSL certificate: self signed certificate when cloning repo from github?
- How can I determine the URL that a local Git repository was originally cloned from?
- How can I give access to a private GitHub repository?
- Can I share my private GitHub repository by link?
- “g++” is not recognized as an internal or external command, MinGW
- How to rename a directory/folder on GitHub website?
- Download a single folder or directory from a GitHub repo
- Why Maven project is tied to J2SE-1.5 by default?
- How do I rename a repository on GitHub?
- Git: Installing Git in PATH with GitHub client for Windows
- Github “Updates were rejected because the remote contains work that you do not have locally.”
- Git Push ERROR: Repository not found
- My new Github page isn’t showing up
- Why does Git tell me “No such remote ‘origin'” when I try to push to origin?
- The declared package does not match the expected package “”
- Why does Git say my master branch is “already up to date” even though it is not?
- SourceTree keeps asking for Github password
- Eclipse error: indirectly referenced from required .class files?
- Java can’t find file when running through Eclipse
- How to change the license for a project at Github?
- How to resolve the “ADB server didn’t ACK” error?
- “The public type <
> must be defined in its own file” error in Eclipse [duplicate] - “Multiple definition”, “first defined here” errors
- Git lfs – “this exceeds GitHub’s file size limit of 100.00 MB”
- Installing WindowBuilder on Eclipse Neon
- Github Authentication Failed – … GitHub does not provide shell access
- How to update a branch with master on GitHub
- How do I pull files from remote without overwriting local files?
- Git push existing repo to a new and different remote repo server?
- Unreachable code in eclipse
- Can I arrange repositories into folders on Github?
- Superscript in markdown (Github flavored)?
- How to resolve Unable to load authentication plugin ‘caching_sha2_password’ issue
- How to discard local changes and pull latest from GitHub repository
- Android Emulator: Unfortunately App has stopped
- Resolving File paths – ‘File not found’ error in Eclipse
- Can you get the number of lines of code from a GitHub repository?
- Eclipse IDE – Error: Build path specifies execution environment Java SE 1.7
- Eclipse IDE – Error: Build path specifies execution environment Java SE 1.7
- An error occurred while installing json (1.8.1), and Bundler cannot continue – Rails
- Git: Where exactly is the “working directory”?
- How to enable the Java keyword assert in Eclipse program-wise?
- Why “no projects found to import”?
- User Operation is waiting for “Building Workspace”
- How to handle a GitHub webhook POST request?
- How to use github to update my plugin
- Why doesn’t the “Press This” bookmarklet work on GitHub?
- Generate WordPress Theme from GitHub Repository
- GitHub plugins safe to use in my website?
- WordPress GitHub Workflow
- Can I upload my self hosted WordPress website on GitHub as a project? [closed]
- Git ignore everything except custom theme directory