Z
Z
zaychonok_lisa2021-11-09 12:42:08
git
zaychonok_lisa, 2021-11-09 12:42:08

How to push branches to github?

We were given the task to create 5 branches
Then push them to github How to push

them?
git push only pushes files, not branches
GitHub shows only one branch

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mureevms, 2021-11-09
@zaychonok_lisa

# Создать новую локальную ветку
git checkout -b branche_name
# внести изменения в файлы, затем добавить их и закоммитить
git add *
git commit -m 'Commit message'
# запушить новую локальную ветку в репу
git push origin branche_name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question