Created
          October 13, 2022 12:13 
        
      - 
      
 - 
        
Save srsholmes/7e542686402f50e740ff5f7d5c1278d9 to your computer and use it in GitHub Desktop.  
    Git add, commit and push all in one line.
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function p() { | |
| bnch=$(git branch | grep \* | cut -d ' ' -f2) | |
| git add . && git commit -m "$1" && git push -u origin $bnch | |
| } | |
| # Usage: p 'here is a commit message' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment