Commands and examples:
-
Git CLI help menu
./gitcli.py -h
-
Clone repo to the directory
./gitcli.py -clone --repourl <SSH/HTTPS repo URL> --repodir <repo_name>
./gitcli.py -clone --repourl https://github.com/h0st/test_git_repo.git --repodir test_repo2
-
Create branch by name
./gitcli.py -createbranch --branchname develop
-
Switch to the branch by name
./gitcli.py -switchbranch --branchname develop
-
Commit all changes
./gitcli.py -commit --commitmsg "commit message"
-
Push changes to the branch
./gitcli.py -push --branchname develop
-
Repo status info
./gitcli.py -status