Cheatography
                https://cheatography.com
            
        
        
    
                   
                            
                    
        
        
            
    
        
                            
        
                
        
            
                                
            
                
                                                | Branch
                        
                                                                                    
                                                                                            | gb | git branch -vv |  
                                                                                            | gba | git branch -a -v |  
                                                                                            | gbda | delete all branches merged in current HEAD |  
                                                                                            | ggsup | git set upstream to origin/current-branch |  Checkout
                        
                                                                                    
                                                                                            | gco | git checkout |  
                                                                                            | gcod | git checkout develop |  
                                                                                            | gcom | git checkout master |  
                                                                                            | gcb | git checkout -b |  Commit
                        
                                                                                    
                                                                                            | gc | git commit -v |  
                                                                                            | gc! | git commit -v --amend |  
                                                                                            | gcn! | git commit -v --no-edit --amend |  
                                                                                            | gca | git commit -v -a |  
                                                                                            | gca! | git commit -v -a --amend |  
                                                                                            | gcan! | git commit -v -a --no-edit --amend |  
                                                                                            | gcm | git commit -m |  
                                                                                            | gcam | git commit -a -m |  Push & Pull
                        
                                                                                    
                                                                                            | gl | git pull |  
                                                                                            | ggl | pull origin current-branch |  
                                                                                            | gup | git pull --rebase |  
                                                                                            | gp | git push |  
                                                                                            | gp! | git push --force-with-lease |  
                                                                                            | ggp | push origin current-branch |  
                                                                                            | gpoat | push all + tags to origin |  
                                                                                            | ggpnp | pull & push origin current-branch |  |  | Everything Else
                        
                                                                                    
                                                                                            | g | git |  
                                                                                            | ga | git add |  
                                                                                            | gaa | git add --all |  
                                                                                            | gapa | git add --patch |  
                                                                                            | gcf | list git configuration |  
                                                                                            | gcl | git clone |  
                                                                                            | gclean | pristine working directory: reset and force clean |  
                                                                                            | gcp | git cherry-pick |  
                                                                                            | gd | git diff |  
                                                                                            | gdca | git diff --cached |  
                                                                                            | gdv | pipe git diff to 'view' command |  
                                                                                            | gignore | git update-index --assume-unchanged |  
                                                                                            | gignored | list temporary ignored files |  
                                                                                            | gf | git fetch |  
                                                                                            | gfa | git fetch --all --prune |  
                                                                                            | gfo | git fetch origin |  
                                                                                            | gm | git merge |  
                                                                                            | gmt | git mergetool --no-prompt |  
                                                                                            | grh | git reset HEAD |  
                                                                                            | grhh | git reset HEAD --hard |  
                                                                                            | grt | cd into the top of the current repository or submodule |  
                                                                                            | gsh | git show |  
                                                                                            | gsd | git svn dcommit |  
                                                                                            | gsr | git svn rebase |  
                                                                                            | gss | git status -s |  
                                                                                            | gst | git status |  
                                                                                            | gunignore | git update-index --no-assume-unchanged |  | 
            
                            
            
            
        
        
        
        
        
            
    
        
          
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by UltimatePancake