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.
Related
I have currently made a repository on GitHub and I am using react redux to make a small app example.
I have installed the necessary requirements that it works for me, but if I clone my app, I get a warning, react-scripts: command not found. I am a little confused at what I have done wrong. Surely if I installed yarn into my project, shouldn't it be available for someone to immediately look at it using yarn start?
If your node_modules folder is in .gitignore file then you have to re-install the dependencies.
After cloning the repository,make sure to enter into the cloned directory using:-
cd cloned-directory
And then run:-
yarn
And then run:-
yarn start
Am trying to download node_modules from github inorder to install it in an offline machine,
What i did was just froked a repository and deleted the .gitignore file and tried downoad the zip file again,but still not getting node modules
Is it possible to download ignored folders from github?
No. The node_modules folder, as it is ignored, is not even saved in git. There's nothing you can do to download it with the rest of the repository, just run npm install or yarn. As the machine in question isn't connected, you'll naturally have to do this on an internet-connected machine.
Enviroment
I did setup an test enviroment for git-lfs. This includes Git 1.9.5, Eclipse 4.6.2 and EGit 4.4.0/4.6.0. git-lfs is installed and works. Eclipse shows the right git configuration parameters set by git lfs install (Preferences->Team->Git->Configuration->User Settings). Git-lfs is available in the PATH of git bash and the windows CMD.
Git and Git-LFS just works fine throught git bash.
Problem
It's important that it's possible to use git throught Eclipse Plugins, which is currently EGit. EGit usually seems to support git-lfs, but in my case I am not able to clone nor stage (cloned throught git bash).
Clone:Execution of filter command 'git-lfs smudge -- 'SW/xy.jar'' on file 'SW/xy.jar' failed with return code '2', message on stderr: 'Downloading 'SW/xy.jar' (289.10 KB)
Stage: Execution of filter command 'git-lfs clean -- 'SW/xy.jar'' on file 'SW/xy.jar' failed
Questions
Does someone have any suggestion what am I doing wrong?
Why is git-lfs clean executed throught adding/staging?
Thanks in advance! Any help will be appreciated!
Updating from GIT 1.9.5 to the current Version (2.11.1) helped!
I try to work on a yeoman project with a team. After generating the angularjs code with > yo angular and pushed the folder to github
git add .
git push
git commit origin master
and when I clone the code from git github I have this error
Fatal error: Unable to find local grunt.
If you're seeing this message, either a Gruntfile wasn't found or
grunt hasn't been installed locally to your project. For more
information about installing and configuring grunt, please see the
Getting Started guide:
http://gruntjs.com/getting-started
so I deleted every thing from .gitignore and pushed everything again, I had this warning
The file will have its original line endings in your working
directory.
So I am quite sure it's not going to work and it's not the best way to do it. Can someone help me on how to upload the yeoman project ?
I think that angular generator for Yeoman already creates a package.json file with grunt defined as dependency along with all its task. So the correct way to compile a project after the clone is to install all npm dependencies locally using:
npm install
then run grunt to compile everything:
grunt
Of course you must have grunt-cli globally installed, which is used to run grunt locally. To install it you have to use the following command where -g defined the global install (default is local):
npm install -g grunt-cli
First of all, i think you have a typo in your question, you have mixed commit and push commands:
git add .
git commit -m 'commit message' // message is optional
git push origin master
First message appears because you don't have an installed Grunt. Install it in your working directory:
npm install grunt --save-dev
Starting with Grunt v0.4, you should never install Grunt itself
globally. For more information about why, please read this. Source: grunt-cli docs.
If it is alredy listed in the devDependencies, just run:
npm install
The second one is caused by line-endings. It is a good practice to include .gitattributes file in your repo. File's content should be:
* text=auto
Read about this file: docs. Or there is another method. It is described in this question.
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