Open vovs03 opened 5 years ago
локально:
git branch -D master
git branch -D stage
на удалённом репозитории:
git push origin --delete <branchName>
git push origin --delete stage
:mega: https://github.com/OsArts/Bible-study
stage
git pull https://github.com/Adventech/sabbath-school-lessons stage
git push -u origin stage
git commit -m "Add: :ru: ru/2019-02/05/teacher-comments.md :memo: - :zero::five:"
git commit -m "Add: :ru: ru/2019-02/07/inside-story.md :dove: - :zero::seven:"
git log --pretty --graph --date=short
https://githowto.com/ru/aliases
:heart: gb = git --no-pager branch / Просмотр списка веток в терминале
gb
git --no-pager branch
git hist hist = log --pretty --graph --date=short
git hist
log --pretty --graph --date=short
gcm = git checkout master
gcm
git checkout master
gcd = git checkout develop
gcd
git checkout develop
git commit -m "Add: :ru: 2019-03/08/teacher-comments.md :memo: - :zero::eight:"
Работа с git
⚠️ Удаление веток
локально:
git branch -D master
git branch -D stage
на удалённом репозитории:
git push origin --delete <branchName>
git push origin --delete stage
:heart: 2018-12-28как работать в git с форком
:mega: https://github.com/OsArts/Bible-study
нужно в ветке :warning:
stage
выполнить:git pull https://github.com/Adventech/sabbath-school-lessons stage
git push -u origin stage
git commit -m "Add: :ru: ru/2019-02/05/teacher-comments.md :memo: - :zero::five:"
git commit -m "Add: :ru: ru/2019-02/07/inside-story.md :dove: - :zero::seven:"
удаление последнего коммита
git log --pretty --graph --date=short
Алиасы
https://githowto.com/ru/aliases
:heart:
gb
=git --no-pager branch
/ Просмотр списка веток в терминалеgit hist
hist =log --pretty --graph --date=short
gcm
=git checkout master
gcd
=git checkout develop