Git Product home page Git Product logo

test_ipis_rep's Introduction

test_ipis_rep

Part 1

// Создаём репозиторий
curl -H "Authorization: token YOUR_TOKEN" --data '{"name":"your_name_rep"}' https://api.github.com/user/repos

// Создаём локальный репозиторий (Инструкция на GitHub)

mkdir your_name_rep

cd your_name_rep

git init

git commit -m "Initial commit"

git branch -M main

// Связываем локальный и реп с origin
git remote add origin https://github.com/YOUR_NICKNAME/your_name_rep.git

git push -u origin main

// Пишем в hello_world.cpp

git add .

git commit -m "Hello Word"

// Добавляем в hello_world.cpp ввод и вывод

git add .

git commit -m "Hello Word with input and output"

git push

// Проверяем коммиты на GitHub

Part 2

git checkout -b path1

git add .

// Чёт исправляем хз

git commit -m "Fix cringe"

git push // set-upstream ...

// Пулл реквест руками

// Пишем комменты

git add .

git commit "Add comments"

git push

// Мерж пулл реквеста ручками, после жмём на кнопку удаления ветки

git switch main

git pull

// Проверяем, что смержилось
git log

// Удаляем
git branch -d patch1

Part 3

git checkout -b path2

// code style mozilla
clang-format --style=Mozilla hello_world.cpp

git add .

git commit -m "Format code style mozilla"

git push

// Пулл реквест вручную

git switch main

// Наводим суету, меняем комент, чтобы вызвать конфликт

git add .

git commit -m "Edit comment"

git push

// Чекаем, что в пулл реквесте конфикты

git switch patch2

git pull

git rebase main

// Вот тут у нас конфликты появляются, ресолвим их

git rebase --continue

// Проверям, что конфликты разрешились

// Вливаем пулл реквест в main

Report

// Или можно создать отдельную ветку и потом смержить
git switch main

#echo "# your_name_rep" >> README.md

// Пишем репорт

git add .

git commit -m "Add README"

git push

test_ipis_rep's People

Contributors

starproxima avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.