forking a project from GitHub - github

I want to fork a suggester for elasticsearch from Github.
I'm following the steps on the website, I'm asked to run the following code:
git://github.com/spinscale/elasticsearch-suggest-plugin.git
Which class shall I run it in ? and shall I create a new project for it or shall I run it in my current project?
I'm working with eclipse and play framework.

The only line where I see "git://github.com/spinscale/elasticsearch-suggest-plugin.git" at the GitHub elasticsearch-suggest-plugin page is:
If you want to work on the repository
Clone this repo with git clone git://github.com/spinscale/elasticsearch-suggest-plugin.git
Run: gradle clean assemble zip – this does not run any unit tests, as they take some time. If you want to run them, better run gradle clean build zip
Install the plugin: /path/to/elasticsearch/bin/plugin -install elasticsearch-suggest -url file:///$PWD/build/distributions/elasticsearch-sugges
So this line is about cloning locally that repo to run the plugin.
It is not about a "class to run". It is an address that the DVCS (Distributed Version Control System) Git must use to clone the repo.
git clone git://github.com/spinscale/elasticsearch-suggest-plugin.git

Related

Creating Spring Initializr Project for existing Git repository in Eclipse

I'm confused how to setup my project correct. There is already a existing git repository named "DatabaseHub" which is only containing the README.md after my first commit. Then I have there my Spring Initializr zip which I want to use for this repository. I named it databaseHub as well. It's a Gradle project.
When I'm trying to create the project with this zip in Eclipse in my git project I fail.
What I tried: Cloned the git repo (so it is in the project explorer), tried to import the extracted initializr zip with the option "Existing Gradle project" but this won't work cause of the name collision.
I don't get what's the right attempt to start this. Just putting all the files manually in the repo doesn't let Eclipse know that it's even a project now.
Eclipse version is 2019-09.
Try and unzip that project elsewhere on your disk.
Then go to your local Git repository (the one with the single README) and do:
cd /path/to/local/Git/repo
git --work-tree=/path/to/unzipped/project add .
git restore -- .
git commit -m "Import project"
The git restore -- . step (with Git 2.23+, August 2019) will make sure your imported files are checked out and visible within your local repository.
Finally, import the Gradle project: Eclipse should detect the Git repository in it (if not, do a Team > Share)

Unable to integrate Github with Pycharm

I have created a repository on Github. I am using Windows 7 64 bit and Pycharm Community edition. I want to integrate the Github repository with pycharm but I am getting the error
Couldn't get the list of GitHub repositories
Connect to api.github.com:443 [api.github.com/192.30.252.127] failed: connect timed out
Although I am able to clone he same repository from command prompt using git clone command.
I had the same issue.
Configure your proxy if using one:
File->Settings->System Settings->HTTP Proxy
Another thing to try is to clone the project locally then add as new project in Pycharm. Afterwards I was able to do all git operations under VCS->git including add/commit/push for my project.
try to check whether you have given the path to Git executable correctly by testing it using test button next to it...(file>settings>version control>Git>path to Git Executable)
make sure you have given the git client path correctly..
C:\Program Files\Git\cmd\git.exe

Use a Go GitHub repo

I have Go installed, setup, and running hello world; I followed these directions. My workspace is organized as follows:
gocode/
bin/
pkg/
src/
github.com/
my_username/
hello/
hello.go
anomalyzer/
algorithms.go
...
README.md
I would like to start using Go code from a forked GitHub repo, lytics/anomalyzer. How can I do this? I forked the repo and setup a local clone in github.com/anomalyzer/ as shown above. But from the github.com/anomalyzer/ dir I try go install and get the error message algorithms.go:5:2: cannot find package "github.com/drewlanenga/govector" in any of: ...(lists my GOPATH). It looks like I need to also clone the github.com/drewlanenga/govector, do I? Is there an automated way to get all the package dependencies?
To fetch remote packages, run the go get command. Because the go get command automatically fetches dependencies and does not fetch a package that already have have, you can run
go get github.com/lytics/anomalyzer
to get everything setup including the github.com/drewlanenga/govector package.

which file should I run in Git Repositories?

I'm using eclipse. I created a git repository and pulled some code from a url. I want to run that code but when I try to run, I get this error:
Select what to run:
Ant Build
Ant Build...
Is the code in git repository not executable?
How can I run this project? Any help is appreciated.
A git repo doesn't know about the nature of the text files it stores: it just make sure they are replicated exactly the same.
Once clone, you need to check haw the project work, independently of Git.
In this case, see "Eclipse: Running Ant buildfiles", or use the Ant view in Eclipse.
You can make one of the ant target run automatically too.
If this isn't an ant project, see:
"what is this ANT build?".
make sure your java project as a builder (if not, by default, Eclipse proposes ant), as in "Eclipse won't compile/run java file"

Install: GitHub gamejs

I started today working with gamejs for a small project. I saw that most project are repository files on github dot com, so I downloaded the github for windows and the git bash.
Then I used git bash to clone gamejs repository. I proceed the same with some repository stuff. However, it seems that I forget to install something... because I cannot start the server, I have gjs-server.sh or .cmd missing. The bash doesnt recognize the command. What will I do?
Since you cloned the code instead of downloading the release tarball you need to build GameJS first:
Change into the GameJs directory
cd gamejs
Get all needed submodules with git:
git submodule init git submodule update
Compile RingoJs:
ant -f ./server/ringojs/build.xml jar
EDIT: Prior to building you need to install Apache Ant build tool. Since it is a Java application to install it just download the binary distribution from their download page and unzip it.