GitHub folder appears empty

Asked 2 years ago, Updated 2 years ago, 107 views

What do you want to do

Want to manage source code

I don't know why it doesn't work, so please let me know.
I'm a beginner. Nice to meet you!

Prerequisites

vue-calendar/
└- Backend/#Rails Project
└- frontend /#Vue.js Project

Commands executed until occurrence

Add Existing Repository...

Enter a description of the image here

create a repository

Enter a description of the image here

history

Enter a description of the image here

Enter a description of the image here

Error Occurred

On GitHb

backend
frontend

The file is empty

github github-desktop

2022-09-30 16:13

3 Answers

As far as I read the message on the screenshot, it seems that I have not been able to upload my environment to GitHub in the first place.Furthermore, your environment is not version controlled by Git.

First of all, please use Git to manage the version of your environment, commit your files, and git push to GitHub.


2022-09-30 16:13

When you write and build a program normally, multiple types of files are generated.

  • Source files (for example, human-written fileshoge.c)
  • Intermediate files (for example, compiler generated files hoge.o)
  • Final product (for example, files generated by linkers, etc.)

The Source Code Management Tool (SCM) manages only the source files listed above.If you only have the source file, you can build the intermediate file or the final product.So the first step to start using SCM, including git, is

  • Create RepositoryGit initetc
  • Write the intermediate file name that the SCM ignores in .gitignore
  • Add only source files to SCM such as git add

That's right. The second and subsequent parts are completely missing, so the repository is empty.The evidence says, "There are no changes.US>Only unmanaged files exist.Therefore, the first step is to git add, when the human being makes a decision like "This file is the source file, this file is the intermediate file" and fill in .gitignore. let's try!


2022-09-30 16:13

Perhaps you are working on an app called GitHub Desktop, and you will need to "commit" to actually register what you have done.

reference:
Commit or review changes to your project

Push commit message entry and changes

Once you have decided what changes you want to include in the commit, type a commit message to push the changes.


2022-09-30 16:13

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.