Xeno Innovations' DevOps (Development Operations) command line tool provides users a quick-set of Git command helpers and project configs to increase your productivity via PowerShell.
The Git helpers provide shortcuts for popular commands such as, gitpull
, gitpush
, gitcommit
, so you don't have to remember switches. Also provides, gitsync
, which synchronizes your current branch with develop
(by default) or a branch of our choosing.
The devops
command provides project configurations to ensure all projects stay aligned with the same ruleset.
Since our primary focus is on projects made with Visual Studio and VS Code, the rule sets cover a wide range of C# for Xamarin/MAUI, desktop and ASP.NET Core, as well as C/C++ (including Arduino).
This project started as an internal tool used by Xeno Innovations and Suess Labs - hence the focus on git and the default develop
branch. We'll do our best to keep things generic for the open source community.
- Download or clone the repo your local folder (i.e.
C:\BuildTools\
) - Set your
Path
Environment Variables to your extracted folder. - Close and re-open any open command prompts
- Enjoy!
- Install / update Xeno-DevOps from CLI
- Create new project folder template
- Makes standard folder structure, readme, MSBuild, rules, etc.
`.---.` ``.---.
`:ohmmNNNNNmho. `-+osysoo+oyh:
.ohyo/:---:+ymNNm+ `/shy+:.` .dm`
`+h+-` .+dNNhhs:. /Nm.
`ys- `sNNd. `oNNo`
`y+` /hsdNh` `+dNd+`
os` .hh:`yNo `:ymNh+.
.h- /ms. `dd- `./ohmdy+-`
:y` ```+Nh:-:oNhosyyys+/-`
`+h/+oo-.. ydNmysosms:-..`
`:osyhd+/::--...`.dNo` :d/` .`
`+hs:-`-h` /NN+`oh: s:
`yd:` `+` sNNhhs- `d-
/Ns oNNm/` oy`
+Nm/` `-ohmNNh. `oh-
-hNNdo:.`````.:+ydy/.:dNNNs-` `/yo.
.smNNNNNNNNNNmy+-` .smNNNNdhyyhh+-
`:+ossso+:-` `:+syyyo/-`
-- Xeno Innovations --
Synchronizes (merge
) your current branch with another branch; using develop
by default.
Syncing your branch with the latest develop branch.
[feature/MyBranch]> GitSync
Sync complete!
[feature-MyBranch]> git checkout develop
[develop]> git pull
[develop]> git checkout feature-MyBranch
[feature-MyBranch]> git merge develop
Checks out your branch in the following execution order
- Attempt locally
- Attempt on
origin
- Fetch, then try
origin
again.
Note: In the future we will provide the option for a different remote
GitCheckout MyBranch
GitCheckout feature/MyBranch
GitCheckout "feature/MyBranch"
Commits changes with provided message. Optionally push
es up branch.
GitCommit "My message" -push
GitCommit "My message" -push
Fetch and prune your repository.
GitPrune ; Fetch and prune
Pushes your branch to origin
without the annoying prompt when you're not tracking
GitPush
- Pushes your branch without tracking current branchGitPush -track
Pushes up branch and sets to track your branch, giving accessibility togit push
in the future.
Report stats about your current branch
GitStatus
Results ===========================================
Name Value
---- -----
Branch-Name: feature/VsTemplates
Ahead-Count: 0
Ahead: False
Untracked: False
Added-Files: 0
Modified-Files: 0
Deleted: 1
GitStatus completed.
get-executionpolicy
get-executionpolicy -list
get-executionpolicy -scope currentuser
Sets a policy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Sponsored by, Suess Labs