Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Компьютеры » Программы » FAR Manager (часть 6)

Модерирует : gyra, Maz

Maz (26-09-2022 12:52): FAR Manager (часть 7)  Версия для печати • ПодписатьсяДобавить в закладки
На первую страницук этому сообщениюк последнему сообщению

   

Alexyz21



Silver Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору

Код:
:    GIT
{
:    Add object into the repository
     git add "!\!.!"
:    Remove file from the repository
     git rm --cached "!\!.!"
:    Remove file from the repository and directory
     git rm "!\!.!"
:    Status of the repository
     git status > "%TEMP%\~gitstatus.txt"
     edit: "%TEMP%\~gitstatus.txt"
:    Show files into repository
     git log --name-status > "%TEMP%\~gitlog.txt"
     edit: "%TEMP%\~gitlog.txt"
:    Show not staged changes into the files
     git diff > "%TEMP%\~gitdiff.txt"
     edit: "%TEMP%\~gitdiff.txt"
:    Show staged changes into the files
     git diff --cached > "%TEMP%\~gitdiff.txt"
     edit: "%TEMP%\~gitdiff.txt"
:    Commit (refresh) files into the repository
     git commit -a -m "!?$GitComment$Enter commit description:?!"
:    Commit and join to the most recent commit
     git commit --amend -m "!?$GitComment$Enter commit description:?!"
--:  
:    Initialize a new repository in the current directory
     git init
:    Initialize a new repository in the given directory
     git init !?$GitProject$Enter project name:?project!
:    Clone a repository
     git clone !?$GitRepository$Enter repository name:?git@https://github.com/username/projectname.git!
:    Remove untracked files form the repository
     git clean -f
:    Garbage collect and compact the repository
     git gc
--:  
:    Push everything to the remote repository
     git push origin
:    Push master to the remote repository
     git push origin master
:    Push the current branch to the remote repository
     git push origin HEAD
:    Pull everything from the remote repository
     git pull origin
:    Pull master from the remote repository
     git pull origin master
:    Pull the current branch from the remote repository
     git pull origin HEAD
:    Fetch everything from the remote repository
     git fetch origin
:    Fetch master from the remote repository
     git fetch origin master
:    Fetch the current branch from the remote repository
     git fetch origin HEAD
--:  
:    Logs && Status
{
:    Blame of the '!.!'
     git blame "!\!.!" > "%TEMP%\~gitblame.txt"
     edit: "%TEMP%\~gitblame.txt"
:    Change log of the '!.!'
     git log "!\!.!" > "%TEMP%\~gitlog.txt"
     edit: "%TEMP%\~gitlog.txt"
:    Change log of the repository
     git log > "%TEMP%\~gitlog.txt"
     edit: "%TEMP%\~gitlog.txt"
:    Change log (detailed) of the repository
     git log --patch > "%TEMP%\~gitlog.txt"
     edit: "%TEMP%\~gitlog.txt"
:    Change log statistics of the repository
     git log --stat > "%TEMP%\~gitlog.txt"
     edit: "%TEMP%\~gitlog.txt"
:    Change log (pretty) of the repository
     git log --date=format:"%Y-%m-%d" --pretty=format:"%ad %H %an %s" > "%TEMP%\~gitlog.txt"
     edit: "%TEMP%\~gitlog.txt"
:    Status of the repository
     git status > "%TEMP%\~gitstatus.txt"
     edit: "%TEMP%\~gitstatus.txt"
:    Show specified commit details
     git show !?$GitCommit$Enter commit hash or tag:?<commit>!
}
:    Checkout && Branches
{
:    Checkout to master
     git checkout master
:    Checkout to local branch
     git checkout !?$GitBranch$Enter branch name:?branch!
:    Checkout to any branch
     git checkout -b !?$GitBranch$Enter branch name:?branch!
:    Checkout to specified commit
     git checkout !?$GitCommit$Enter commit hash or tag:?<commit>!
--:  
:    List of my branches
     git branch > "%TEMP%\~gitbranch.txt"
     edit: "%TEMP%\~gitbranch.txt"
:    List of all branches
     git branch -a > "%TEMP%\~gitbranch.txt"
     edit: "%TEMP%\~gitbranch.txt"
:    Create a new branch
     git branch !?$GitBranch$Enter branch name:?branch!
:    Merge specified branch into the current branch
     git merge !?$GitBranch$Enter branch name:?branch!
:    Rename the current branch
     git branch -m !?$GitBranch$Enter branch name:?branch!
:    Delete specified branch (safe delete after merge)
     git branch -d !?$GitBranch$Enter branch name:?branch!
:    Delete specified branch (force unsafe delete)
     git branch -D !?$GitBranch$Enter branch name:?branch!
}
:    Stash
{
:    Stash current changes
     git stash
:    Stash current changes with the given message
     git stash save "!?$GitStashMessage$Enter stash message:?My stash!"
:    Apply stash changes
     git stash apply
:    Apply the specified stash
     git stash apply !?$GitStash$Enter stash name:?stash@{0}!
:    Show stash list
     git stash clear > "%TEMP%\~gitstash.txt"
     edit: "%TEMP%\~gitstash.txt"
:    Clear stash list
     git stash clear
}
:    Revert
{
:    Revert local changes
     git checkout -f
:    Revert last commit
     git revert HEAD
:    Revert specified commit
     git revert !?$GitCommit$Enter commit hash or tag:?<commit>!
:    Soft reset repository to specified commit (files not changed)
     git reset --soft !?$GitCommit$Enter commit hash or tag:?<commit>!
:    Hard reset repository to specified commit (files changed)
     git reset --hard !?$GitCommit$Enter commit hash or tag:?<commit>!
}
}
 

Всего записей: 3484 | Зарегистр. 16-06-2007 | Отправлено: 17:55 06-02-2020
   

На первую страницук этому сообщениюк последнему сообщению

Компьютерный форум Ru.Board » Компьютеры » Программы » FAR Manager (часть 6)
Maz (26-09-2022 12:52): FAR Manager (часть 7)


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.B0ard
© Ru.B0ard 2000-2024

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru