The list of Git commands that tackle most everyday routines. Branches The commands to work with local and remote branches. Pull and rebase 
		
		
			
			
			
			
				
					
				|  | git pull --rebase=i origin feature-1 | 
				
			 
		 
 Commit difference between branches 
		
		
			
			
			
			
				
					
				|  | git log origin/develop..origin/master --oneline | 
				
			 
		 
 Overwrite remote branch with local branch 
		
		
			
			
			
			
				
					
				|  | git checkout local-feature-branch git push -f origin HEAD:remote-feature-branch | 
				
			 
		 
 Useful when it’s need to do restore from local branch. Commits count between branches 
		
		
			
			
			
			
				
					
				|  | git rev-list --left-right --count origin/branch-1...origin/branch-2 | cut -f1 | 
				
			 
		 
 –no-merges parameter allow to… 
						 
																Read More