.. index:: single: gitpush gitpush ======= Add and commit all the edited file to git with the commit message as the variadic arguments without quotes -------------- :: File Name : gitpush.ps1 Author : Adewale Azeez - iamthecarisma@gmail.com Date : Jan-03-2020 -------------- A short compact command to quickly add all edited files to a commit with the commit messages and push the changes to the currently active branch. This command does not force push to remote, to force a push to remote regardless of remote changes, use the ‘gitfpush’ command. Syntax ------ .. code:: powershell gitpush [[-args] ] [] Parameters ---------- -args :String[] ~~~~~~~~~~~~~~~ =========================== ===== attr value =========================== ===== Required? false Position? 1 Default value Accept pipeline input? false Accept wildcard characters? false =========================== ===== CommonParameters ~~~~~~~~~~~~~~~~ This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). Inputs ------ System.String[] Outputs ------- some text and analysis I don’t need EXAMPLE 1 --------- :: gitpush from here is the commit message your changes will be commit with the message “from here is the commit message”. The command is equivalent to git add .; git commit -m “from here is the commit message”; git push origin HEAD EXAMPLE 2 --------- :: gitpush This will commit your changes without any messages. git add .; git commit -m ““; git push origin HEAD Related links ------------- - https://thecarisma.github.io/Cronux - https://git-scm.com/docs/git-add - https://git-scm.com/docs/git-commit - https://git-scm.com/docs/git-push