Закрыть
×
=0) { let js = text.slice(pos1, pos2); + '<\/' + "script" + '>'; arrText.push(js); // next pos1 = pos2; continue; } } } break; } return arrText; } function OpenDialog(parentDiv, urlContent) { parentDiv = document.getElementById('modal-background'); // new !!!!!!! parentDiv.appendChild(document.getElementById('modal-template')); document.getElementById('modal-background').style.display = "flex"; // !!!!! block document.getElementById('modal-template').style.display = "flex"; // !!!!! document.getElementById('modal-body').innerHTML = ""; post_url(urlContent, "", function(text_from_server) { var element = document.getElementById('modal-body'); element.innerHTML = text_from_server; // add scripts var arrJSText = get_scripts(text_from_server); for (var i=0; i
dir.by
Праздники ...
Праздники ...
День Октябрьской революции (7 Ноября)
Концерты, выставки ...
Концерты, выставки ...
Спектакль "Волки и овцы"|||г. Минск 15 сентября, 27 октября 2026
Афишу
Спорт занятия ...
Спорт занятия ...
Клуб оздоровительной гимнастики для детей от 3-8 лет
Спорт занятие
Компьютер, программы...
Компьютер, программы...
Объявления ...
Объявления ...
Механизм рулевой с распределителем 64229-3400010
Объявление
Новости ...
Новости ...
Форум ...
Форум ...
обсуждение...
Поиск
Концерты
Спорт
Форум
Компьютер
Компьютер, программы
→
Git (Project Versioning, Modified File History) | Git Extensions | GitHub.com | git in Team Explorer for Visual Studio 2017
Что означают папки "branches" и "trunk" в git репозитории ?
посмотрели
7207
раз
обновлено: 20 November 2020
Ответ
Самым первым репозиторем был
svn репозиторий
.
Потом появился
git репозиторий
.
Когда мы в командной строке вызываем:
>
git svn clone ...
то есть делаем копию
svn репозитория
то появляются папки:
trunk
это
главная ветка
главная ветка
в
svn
репозитории это
trunk
ветка
главная ветка
в
git
репозитории это
master
ветка
branches
это
отдельные ветки
отдельные ветки
обычно используются для разработки программы.
Например, программист делает задачу в
отдельной ветке
, а когда сделает выложит в
главную ветку
.
На заметку!
До того, как
git
стал популярным, многие люди использовали
svn
.
svn
репозиторий является линейным то есть нет ветвлений.
Пример svn репозитория:
MyProjectBookLibray
trunk
AddBook.js
ListBooks.js
...
branches
MyBranch1
AddBook.js
ListBooks.js
...
MyBranch2
AddBook.js
ListBooks.js
...
...
tags
v12.5
AddBook.js
ListBooks.js
...
v13.0
AddBook.js
ListBooks.js
...
...
← Previous topic
Azure DevOps. Commit files to git using Team Explorer in Visual Studio 2017
Your feedback ... Comments ...
Your Name
Your comment
(www links can only be added by a logged-in user)
+ Picture
Объявления
Объявления
Git Extensions
•
Git Extensions. Download and install Git Extensions for Windows
.gitignore (hide files)
•
.gitignore | Hide files in Git Extensions
araxis to compare changes
•
Using araxis to compare changes in Git Extensions
stash change repository
•
Saving new files to stash using Git Extensions
Tag
•
Tag | How to search tag in the Git Extensions
Creating a Repository. Working with Commit and Push files
•
Creating a Repository on Git Extensions for Windows
•
Commit and Push in Git Extensions for Windows
Branch in Git Extensions
•
Branch | Switch to branch | Git Extensions
•
Create a branch on Git Extensions for Windows
•
Take the latest changes from the master branch to our branch. Git Extensions for Windows
•
Upload the files to our branch. Git Extensions for Windows
Merging into my branch
•
Merge to my branch (take the latest changes from another branch to my branch) | Merge remote branch into current branch | Git Extensions
Put Our Branch in the Master Branch
•
Option 1 (using Cherry pick commit). Put our branch into the master branch. Git Extensions for Windows
•
Option 2 (use Rebase, Reset). Put our branch into the master branch. Git Extensions for Windows
GitHub.com
•
Register on GitHub.com
•
Create an empty Repository on GitHub.com
•
How to make a GitHub Repository private
•
Download Repository from GitHub.com to your PC using the Console
•
Download Repository from GitHub.com to your PC with Git Extensions
•
Add files to the Repository on your computer, then upload the files to GitHub using Git Extensions
•
Removing the repository from the GitHub.com
•
Formatting a README.md file to GitHub.com
Git console (working with GitHub.com)
•
Git console. Download and install the Git console for Windows
•
git init (create a new empty repository in the Git console)
•
git remote (see, add the path where the remote repository is located in the Git console)
•
git clone (copy of the remote repository in the Git console)
•
git add & git commit (add files to a local repository in the Git console)
•
git push (push local changes to a remote repository in the Git console)
***
•
My bat files to work with git console with GitHub.com
***
•
git remote prune origin (remove the inormation from your local repository)
•
git svn clone (copy of the remote repository svn)
•
I was given the folder .git and no source code. To get the files, run git clone. For packaging, use git clone --bare
Team Expolorer for git
•
Azure DevOps. Commit files to git using Team Explorer in Visual Studio 2017
Additional topics, questions
•
What do the "branches" and "trunk" folders mean in the git repository?
Ваши вопросы присылайте по почте:
info@dir.by