Giter VIP home page Giter VIP logo

gittutorial's Introduction

GitTutorial

Список корисних команд для роботи з git

  1. git clone - копіює репозиторій(папку з файлами) на компютер
  2. git branch "branchName" - створює гілку з назвою "branchName"
  3. git checkout "branchName" - переходить на гілку з назвою "branchName"
  4. git checkout -b "branchName" - створюємо гілку з назвою "branchName" і переходимо на неї
  5. git add . - зберігаємо зміни в файлах
  6. git commit -m "commit message" - підписуємо збереженні зміни в файлах
  7. git push - відправляємо зміни на сайт github
  8. git pull - отримуємо останні зміни з сайту github
  9. git status - показуємо статус проекту
  10. git branch - показуємо список гілок в проекті
  11. git branch -r - показуємо список гілок на сайті github
  12. git branch -a - показуємо список гілок на компютері та на сайті github
  13. git fetch - отримуємо зміни з сайту github
  14. git stash - зберігаємо не збережені зміни в файлах і кладемо їх в буфер обміну
  15. git stash apply - вставляємо збережені зміни з буфера обміну
  16. git merge "banchName" - зливаємо гілку з назвою "branchName" в поточну гілку
  17. git merge --abort - відміняємо зливання гілок
  18. git branch -d branchName - видаляє гілку локально з проекту
  19. git push origin --delete name - видаляє гілку з сайту github
  20. git diff - показує відрізки рядків між двома версіями файлу (між двома комітами)
  21. git log - показує історію комітів
  22. cd gitTutorial - переходимо в папку gitTutorial

Для того щоб вийти з режиму перегляду комітів використовуйте клавішу q (стосується команди №20 і №21)

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.