• S sverchok
  • Информация о проекте
    • Информация о проекте
    • Активность
    • Метки
    • Участники
  • Репозиторий
    • Репозиторий
    • Файлы
    • Коммиты
    • Ветки
    • Теги
    • Участники
    • Диаграмма
    • Сравнение
  • Задачи 148
    • Задачи 148
    • Список
    • Доски
    • Спринты
  • Запросы на слияние 21
    • Запросы на слияние 21
  • CI/CD
    • CI/CD
    • Конвейеры
    • Задания
    • Расписания
  • Развертывания
    • Развертывания
    • Окружения
    • Релизы
  • Пакеты и реестры
    • Пакеты и реестры
    • Реестр пакетов
    • Реестр контейнеров
  • Мониторинг
    • Мониторинг
    • Инциденты
  • Аналитика
    • Аналитика
    • Поток ценности
    • CI/CD
    • Репозиторий
  • Wiki
    • Wiki
  • Сниппеты
    • Сниппеты
  • Активность
  • Диаграмма
  • Создать новую задачу
  • Задания
  • Коммиты
  • Доски с задачами
Свернуть панель
  • nikitronn
  • sverchok
  • Wiki
  • Git Practices

Git Practices · Изменения

История страницы
Created Git Practices (markdown) создал Июн 16, 2017 по автору Dealga McArdle's avatar Dealga McArdle
Показать
Построчно Рядом
Git-Practices.md 0 → 100644
Просмотреть страницу @76a6a3ca
### Git instructions
This page is primarily aimed at Git novices. If that's you, keep reading. Else feel free to correct the info.
#### Use a branch
Never edit code directly in Master. Never? Never! If you want to make changes do it in a branch.
<sub>- side note: Main developers might sometimes change things directly in Master. That doesn't mean it's a good idea, and certainly doesn't mean you should adopt that bad habit.</sub>
#### Proper procedure
The proper procedure to editing code for the first time is:
1. `git checkout master` ( if you aren't in master already)
2. `git pull` (get all recent changes... do it anyway.. it will just say it's up to date if no changes are found )
3. `git checkout some_new_branch_name`
4. edit the code.
5. hit F8 if Blender is running, to test the changes.
#### returning to your branch at a later stage
One you have edited code in a previous session, and want to continue editing make sure you don't have any uncommitted code. It's easy to forget to commit code. Git won't let you change branches if you have uncommitted code. This is great because it's a reminder that there's code you need to commit before doing anything else.
- Write down the name of the current branch.
- do `git status`. This will tell you if you have uncommitted code in your current branch.
if you have uncommitted code, then you have several options but let's stick to just committing and pushing.
- `git commit -am 'post code commit'
- `git push`
Now you are free to keep editing code.
\ No newline at end of file
Клонировать репозиторий
  • Custom Defaults
  • Macros
  • Contributing
    • Git practices

Sverchok Node Tutorial (multi page)