M
M
ma4t2019-02-11 09:25:32
git
ma4t, 2019-02-11 09:25:32

How to upload files to gitlub?

Hello, I can't figure out how to load my index.html style.css files and others.
Those. here they are in my folder, how to throw them into the project and connect them?
here is the instruction after creating the project
git clone https://gitlab.com/user-name/user_project.git
cd user_project
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
but for example after clone command error warning: you appear to have an empty repository
In general, help, where to start

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitsliputsli, 2019-02-11
@ma4t

It's just a warning that you've checked out an empty repository, if you've just created it, then it's perfectly normal. Do everything according to your instructions:

git add index.html 
git add style.css
git commit -m "new project"
git push -u origin master

L
LODIII, 2019-02-11
@LODIII

replace user_name and user_project with real ones.
In the web browser, does this directory show empty or real storage?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question