I want to clone a project from GitHub, but only some portion of it because the project gets too complicated for me. Is this possible?
Project Link: ExoPlayer
This is the portion what I want to clone: Targated Portion
Note: I have no problem cloning the entire project
download github desktop https://desktop.github.com/
create a folder in your drive named github
open github desktop and go to create new repository
give your repository the name of your project and give the path
of your created folder(drive github).
copy your project from its package where it stored
paste it in the folder(drive github)
go to github desktop and simply Push the origin
Related
I had downloaded the Android Studio 4.0.1 and the same version for OpenCV Library.
I made a random Java project just to set the library, but when I select the library (the path is correct -"C:\opencv-4.0.1-android-sdk\OpenCV-android-sdk\sdk\java") they don't show it and let me finish this action (please see the image below).
Why I can't select the library? I am watching an Youtube video for this (beginner here) and the guy can see it totally different.
You don't need to select library. Add this module then do this steps:
Open Project Structure-> Dependencies-> app -> Add module dependency-> select opencv module.
You can access opencv classes right now.
For me the import project functionality also doesn't work, but what worked is to create a new empty project, clears its artifacts, and copy the OpenCV library artifacts from OpenCV-android-sdk\sdk\java\ folder. There are 6 steps:
copy AndroidManifest.xml to src/main
copy sources to src/main/java
copy res folder to src/main
copy libs folder from OpenCV-android-sdk\sdk\native\libs to src/main and rename it to jniLibs
create folder src\main\aidl and move file src\main\java\org\opencv\engine\OpenCVEngineInterface.aidl to folder src\main\aidl\org\opencv\engine\
in build.gradle set project as library by specifying plugins { id 'com.android.library'}
You can refer to the image in order to see the final project tree:
project structure image
I've just finished a java course and a project in which we made a small java application. In the project we used github, but since we're all pretty much beginners to java and github this was a rather confusing process.
Therefore I might have made my NetBeansProjects folder, which is NetBeans' default folder for new projects, a repository to our project on github.
At least what happens is that every time I create a new project in NetBeans, it's automatically connected to our project on github.
I'd really like that my NetBeansProjects folder isn't connected to any remote github projects.
I have tried the git remote remove origin which resets the config by the looks of it but it doesn't solve the problem and any projects I create in NetBeans will still connect to our project on github.
Any suggestions to what might help?
If you don't need to keep track of anything in the Netbeans folder anymore, then you can just erase the .git folder which keeps all the git related data (you will lose everything that hasn't been pushed to github repo as well). The .git directory is hidden, procedure to make it visible (/display & erase it) depends on the OS you are using.
If you want to keep using git, you can add the folders you don't want to have in github repo into .gitignore file.
I read around to see how to load an existing project into GitHub but I later got really confused. So in the end I did the following:
Created a project which uses the GitHub Repository I have (Library-Tracker) as the location.
Dragged existing Java files into src folder
Committed and pushed
The files showed up on github fine but is this the correct way to load projects onto Github?
Edit: I used eclipse for all of the above
Ye, I think it's fine.
Another one is to create repo using
git init
and then
git remote add origin https://github.com/user/repo.git
I am kinda new to cloning GitHub repository using Eclipse.
One can open the GitHub Project repository from Eclipse using Git view (Window->ShowView->Others...->Git).
After cloning the GitHub project on my local working set folder, I am not able to find any Java Code file or project files under Package Explorer pane.
Here are the steps I am following:
Step 1: I created a local git repository which has working copy of my Eclipse Java Project.
Step 2: Then I synced it up to GitHub. I can see my repository in GitHub
Step 3: Next I tried to clone it on to my working set folder in Eclipse using Git View by using GitHub repository URI ( working set is a different local folder for my java project. It is not the same folder as my local master repository. Essentially I kind of downloaded my project files from GitHub in to working set folder on local drive)
Step 4: I clicked on "Git Repositories" pane
Step 5: Now I was expecting to see the Java Project loaded in the upper left top of the Eclipse Luna in the Package Explorer area. I see on the top section in the Package Explorer.
However I do not see any Java project in the Package Explorer area.I only see empty "Other projects" Working set. What must be going wrong ?
I have also faced same problem. I have followed following steps to resolve this issue:
Select workset in which you wants to clone project
Right click on workset > Click "Import" option
A small window will be open name "Import".
Go To Git Option and expand it. Then click "project from Git" and click next.
or
just type "Project from Git" in filter text box then select "Project from Git" and click next.
Use "GitHub" if project cloning from GitHub else use "URI"
Next ... Configurations ....
In the end you may get option to select workset.
Then Finish
If still not contains project, refresh workset.
Remember: In workspace, project should not contains same name as GitHub project. Only new/different name project will be check out.
I have a java project which I work on using Eclipse ide.
I have renamed my project. This updated my .project file and I pushed it to GitHub.
But GitHub still shows old project name.
Is there any way to change name of project on GitHub?
I am using GitBash on windows to interact with Git
Changing your project name locally does not mean anything to Git or Github, you have to rename your project on Github itself and then update the references to your remote origin at the .git/config file in your local project.