Git-AddCommit

Git-AddCommit
NAME
    Git-AddCommit
    
SYNOPSIS
    Adds file to the index and records change to the repository.
    
    
SYNTAX
    Git-AddCommit [-CommitMessage] <String> [[-File] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
    
    
DESCRIPTION
    Adds file to the index and records change to the repository.
    

PARAMETERS
    -CommitMessage <String>
        Commit message with default value if not provided.
        
        Required?                    true
        Position?                    1
        Default value                Nooooo... Comment :(
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -File <String>
        File to commit. By default it is current active file tab.
        
        Required?                    false
        Position?                    2
        Default value                (split-path $psISE.CurrentFile.FullPath -leaf)
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -WhatIf [<SwitchParameter>]
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -Confirm [<SwitchParameter>]
        
        Required?                    false
        Position?                    named
        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
    
OUTPUTS
    
NOTES
    
    
        Name			 : Sebastian Ziółkowski
        Github			 : github.com/ziolkowsky
        Website			 : ziolkowsky.wordpress.com
    
    -------------------------- EXAMPLE 1 --------------------------
    
    PS>Git-AddCommit "Commit message"
    
    
    
    
    
    
    -------------------------- EXAMPLE 2 --------------------------
    
    PS>Git-AddCommit "Commit message" TestFile
    
    
    
    
    
    
    
RELATED LINKS
    https://ziolkowsky.wordpress.com/2022/04/17/git-addcommit
    https://github.com/ziolkowsky/ShellPowerFramework

0 Comments on “Git-AddCommit

Dodaj komentarz

Twój adres e-mail nie zostanie opublikowany.

*