přidán skript, pro aktualzaci repozitářů
This commit is contained in:
		
							
								
								
									
										16
									
								
								update_repos.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								update_repos.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Fetch latest changes from upstream
 | 
				
			||||||
 | 
					git fetch upstream
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Switch to main branch
 | 
				
			||||||
 | 
					git checkout main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Merge upstream changes into main
 | 
				
			||||||
 | 
					git merge upstream/main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Push changes to GitHub
 | 
				
			||||||
 | 
					git push origin main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Push changes to Gitea
 | 
				
			||||||
 | 
					git push gitea main
 | 
				
			||||||
		Reference in New Issue
	
	Block a user