Someone set up a project in a GitHub repository for me to modify.
I did the following steps:
I created a new folder on my laptop.
cd to it and ran: git init
went to github: it gave me an option to download a zip file of the repository set up for me.
I downloaded the zip file and extracted it into my new folder.
updated and tested changes I made to source code.
I did a 'git status' but it doesn't show me the files that I have modified.
Did I set up the project wrong locally?
What is the correct procedure?
Thx,
Jim
i tried git status, but it didn't show me any modified files.
Related
I have a over 100 mb csv file that i would like to upload to github using lfs. However, i am facing this issue (Screenshot added). I have put the csv file in the local folder where the repository is located.
enter image description here
You have to init a new repository or clone an existing repository first.
The directory must have a .git folder to be able to run git commands. To create one, run git init and then you would be able to continue.
I'm new at GitHub and I'm having this issue: I created three private repositories for my project, all fine. On the fourth one, for some reason GitHub desktop included the node_modules folder (its an angular cli app), so I deleted the repository from GitHub.com and from GitHub desktop. When I try to recreate it, it is "cached" on my Mac, even if I copy everything to another folder, and it tries to upload the node_module files.
I also changed the name of the repository, copied all the files but node_modules folder to another folder. Same happens over and over.
I couldn't find anything on internet about this. Sorry if its a newbie question.
You could try to delete the git folder that it's being hidden by default.
Go to in file explore -Views- select "Hidden Items" and try to remove the git folder from here. After that set up your .gitignore file and pass node_modules before you use git init
Use this in your terminal, if you are using VS Code use this in the same folder you are having the problem : git config --global core.excludesfile '~/.gitignore'
I am about to throw my laptop through a wall, and am hoping for help before reaching that point. For reference, I am following these instructions exactly - https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/.
I have a directory ".../path/thisdir". Inside of thisdir are (1) a file called Demo.R and (2) a directory called sportVU. sportVU is a directory with ~15 files in it.
When I follow the instructions in that link, my github repo looks like this:
https://github.com/NicholasCanova/packageSportVU
Notice that the sportVU directory link cannot be clicked in github, and when I download the repo, sportVU is an empty folder. Why is this happening? This shouldn't be so tough.
EDIT: this is what the repo looks like in my local machine, I'm 100% sure it's not empty:
It could be that you have two .git folder in your directory. View hidden folders to see.
Similar questions:
What does a grey icon in remote GitHub mean
Why can I not open my folder in GitHub?
Since Git doesn't store empty folders the steps you should follow exactly are:
Delete the old repo and start again following exactly my steps.
git clone <repo url>
Inside the folder of the cloned repo create a directory manually and name it as you want i.e sportVU.
Drag and Drop all the files you want in the sportVU direcrory.
cd to Myrepo/sportVU and type git add *
type git commit -m "added some files"
git push -u origin master.
and you should be all set
I am new to git. I downloaded the desktop version (for Windows). I dragged the folder containing my project into the big window, "Get started by adding a repository." All the files showed up in the left window. Then I clicked on "Publish Repository". It then shows 143 files have changed, with 0 unsynced.
But when I go to my account on the git website, the repository is empty. The only files in it are .gitattributes and .gitignore. The whole idea here is that I want to share this project with other people.
Help out a git newbie and explain how I get the entire solution into git?
Thanks!
As you already have the remote repository at GitHub, you should use the clone option first to clone your repository locally.
This will create a folder (your repository clone) on the default location containing those two files.
Then you can copy your project files to this folder and try to sync again.
I can't figure out why I can't get a working copy from a git repository into Eclipse PHP Explorer.
I think to have followed the steps I have been reading:
http://wiki.eclipse.org/EGit/User_Guide#Cloning_Remote_Repositories
http://www.vogella.com/tutorials/EclipseGit/article.html
But at the end of the procedure I don't have the code at the PHP Explorer. But the way, at Git perspective I can see the git repository.
The only options I can see at Team context-menu, are:
Apply Patch
Share code
By "share Code" option, the project files are moved into the git repository folder. By doing this:
the project tree parent has detected the git repository, I can see at the root tree [gitpoject git]
at the project properties, on Git section, I can see the Git repository data correctly
The Team contextual-menu has now the expected Git commands
If I do a commit from the root-tree, the Commit windows is shown and wants to add the Eclipse project structure.
But I can't see the code holded into the git repository into the project.
I tried to clone the git repository with "Git Bash" by one side, and import this folder into an existing project without luck.
Anyone could help? Thanks in advance.
Even if this not responds completely the problem I have explained, the only way I can have a working copy into the Eclipse PHP Explorer is by:
Make a git clone through Git Bash
Create a new project (PHP Project) and select "Create project at exisiting location" for Contents
By selecting the directory I have the repository cloned, I can see the contents of this repo now at the PHP Explorer and use the Git tools.
If someone could clarify why the procedure I have followed has not worked I will appreciate to understand it.