Skip to content

Help a beginner to add existing files and a folder to repository #109355

Discussion options

You must be logged in to vote

Ohh I see,

  • Open the GitHub web interface and click on the "+" button to create a new repository.
  • Name your repository (e.g., "test") and provide an optional description.
  • Choose whether to make the repository private or public.
  • Do not add a README file at this stage.
  • Click on "Create repository."
  • Once created, you'll see a link like this: https://github.com/<YOUR_USERNAME>/test.git. Copy this link.

Now, in your terminal (command prompt):

Navigate to the directory where you want to initialise your local repository. For example:
cd D:/test/src

Initialize a Git repository in this directory:
git init

Stage your initial files and commit them:

git add .
git commit -m "Initial commit"

Link you…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@NipulM
Comment options

Answer selected by Nummuliitti
@Nummuliitti
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage GitHub Desktop Sync your code to your computer with a simple desktop app New User Help ❓ New User help
3 participants