A
A
Andrey2021-08-26 23:32:35
git
Andrey, 2021-08-26 23:32:35

How to create a new branch and work with it?

Such a question:
I create a new branch: git checkout -b remastered (thus I switched to it) I

add files: git add .

Commic: git commit -m "New files"

I get this:
On branch remastered
nothing to commit, working tree clean

In addition, please tell me how to create a new branch, add files to it and upload to the repository.
I will be very grateful in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2021-08-27
@Varikorek

git checkout -b remastered
So they create a new branch and immediately go to it
git add .
that's right, you add changed files to tracking git commit -m "
New files "

E
EgorSvinarev, 2021-08-27
@EgorSvinarev

Check for indexed files via
git status
Your error says that there are no files in the commit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question