pushing a zip file to GitHub repository - github

I am pretty new to GitHub and I have lots of problems working with that. I have created a repository in my GitHub account and then a folder named "Data Set" in the repository. Now i want to push a zip file to this folder. what should I do? i have Git Bash on my windows too.

Related

How to upload foders using Github desktop

I'm very new to Github and I'm trying to create a new repository that contains 2 folders ("server" and "utalk").
The "utalk" folder is my front-end and the "server" folder is my backend.
But when I use Github Desktop, it seems I only push the server folder and cant push the utalk folder.
I don't know how to push all my folders.
my Project Folder:
my GitHub repository:
First, in your file explorer, enable View hidden files
Then check if you see a .git in the utalk folder. That would make it a nested git repository, mostly ignored by your parent folder.
Switch to command-line and do a git status in utalk-project to know more about your current situation.

How do you replace all the files in a Github repo with completely new files?

New to GitHub: we're using Appgyver (https://www.appgyver.com/) which generates a new zip file with the project files every time a new build is created.
We're using Github to store our project files and Cloudflare pages uses the files in our repo to host our website.
When creating a new build, the files are very different to the files in our old builds: how would we easily replace all the existing files in our repo with our new files (so the new build is hosted) whenever we want to release a new build?
You can:
git clone --no-checkout https://github.com/<me>/myProject your repository: you will get a myProject/.git folder, with no actual files checked out.
generate your files in a separate build folder.
For each build, you would do, from anywhere:
git --git-dir=/path/to/myProject/.git --work-tree=/path/to/build add .
git --git-dir=/path/to/myProject/.git commit -m "new build"
git --git-dir=/path/to/myProject/.git push
That would automatically add/modify/delete any file from the previous HEAD in order to match the new build working tree.
This assumes the build is done locally, and then pushed to GitHub.

Github desktop caches deleted local repository

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'

what Git Ignore field means in github desktop while creating a new repository

see the Git Ignore option in the below image.What I have to choose, I am creating an ionic-framework repository.
https://i.stack.imgur.com/pBvkd.png
.gitignore is a file which, Git uses to determine which files and directories to ignore, before you make a commit. These files/directories will not be pushed into the repository.
If you have any files or directories that don't need to be pushed into the repository, then you can include them. (a simple example : log files)
If there is no ionic option, you can ignore it, and create it locally on your repo, then push it back to your GitHub repo.
To create it, see https://www.gitignore.io/api/ionic3
It does generate an Ionic .gitignore for you.

Publishing to github results in an empty repository

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.