A
A
Alexey Kostyukhin2020-01-17 15:47:46
git
Alexey Kostyukhin, 2020-01-17 15:47:46

How to add folders with layouts to a repository on gitHub?

Good laziness. I have a github account. I created a repository on it and named it makests.
How do I add layout FOLDERS to this repository?
I usually did this:
1) cd /home/user/makets/test-makets
2)git init
3)git add .
4)git commit -m "The "footer" block has been added
5)git push https://github.com/test-user/makets master
Everything works here, but files and subfolders are added (index.html, style.css) And I need to add the test-makets folder itself

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
Gleb Starkov, 2020-01-17
@colonel

Create a repository one level up, in /home/user/makets

N
Noir, 2020-01-17
@PolarBearGG

git add -A
git commit -a -m"comment"
git push
git status

K
Konstantin Zhikhor, 2020-01-17
@shevchenko__k

https://andreyex.ru/linux/ignorirovanie-fajlov-ik...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question