Added some useful info about branches and force pushes
This commit is contained in:
		
							parent
							
								
									ab01a4ed7d
								
							
						
					
					
						commit
						b617a92a28
					
				| 
						 | 
					@ -11,3 +11,12 @@ then you can pmossibly change the commit message
 | 
				
			||||||
then you can push
 | 
					then you can push
 | 
				
			||||||
git log
 | 
					git log
 | 
				
			||||||
exists as a log of what happened
 | 
					exists as a log of what happened
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if you're on another branch, you can get the changes from main by using this command:
 | 
				
			||||||
 | 
					git pull -r origin (Branch) 
 | 
				
			||||||
 | 
					e.g. git pull -r origin main
 | 
				
			||||||
 | 
					Then you can pull that and fix the conflicts to then merge them again.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					how to force push (dark arts, don't do that on master branch, ever)
 | 
				
			||||||
 | 
					git push -f
 | 
				
			||||||
 | 
					--> this says "No, my local history is correct. Delete everything else"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue