-
Notifications
You must be signed in to change notification settings - Fork 0
use git
Andrey Vakhterov edited this page Jul 14, 2017
·
2 revisions
ws git can:
- clone remote repo
- checkout branch or commit
- fetch changes from remote repo
- authorize by login:pass
- show list of branches
- show log
- remove git repo
ws git can not:
- create local repo
- create branches
- add or show remotes
- create local branches
- commit and push
all commands works in selected workspace folder (use /ws set (name) to change workspace)
-
/ws git clone (url) [name]
clone repository to new workspace folder
with cli:git clone $url $name -
/ws git branch [remote|all]
show list of branches
with cli:git branchorgit branch --remoteorgit branch --all -
/ws git log [ref]
show log
with cli:git log --pretty=oneline --allorgit log --pretty=oneline $ref -
/ws git checkout (ref)
checkout local or remote branch or commit
with cli:git checkout $ref -
/ws git fetch (remote)
fetch command. It does not change your HEAD with cli:git fetch $remote -
/ws git delete [name]
remove git repo
with cli:rm -rf $name/.git