mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Move the hooks section to the commit section.
It doesn't make much sense to have a separate section for hooks right now because we only have a pre-commit hook at the moment and we should have it setup before making the first commit. We can probably create a separate section for hooks again when we have other types of hooks.
This commit is contained in:
		@@ -89,6 +89,16 @@ git remote set-url --push upstream no_push
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
### Committing changes to your fork
 | 
					### Committing changes to your fork
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Before committing any changes, please link/copy these pre-commit hooks into your .git
 | 
				
			||||||
 | 
					directory. This will keep you from accidentally committing non-gofmt'd go code.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```sh
 | 
				
			||||||
 | 
					cd kubernetes/.git/hooks/
 | 
				
			||||||
 | 
					ln -s ../../hooks/pre-commit .
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Then you can commit your changes and push them to your fork:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```sh
 | 
					```sh
 | 
				
			||||||
git commit
 | 
					git commit
 | 
				
			||||||
git push -f origin myfeature
 | 
					git push -f origin myfeature
 | 
				
			||||||
@@ -203,16 +213,6 @@ It is sometimes expedient to manually fix the /Godeps/godeps.json file to minimi
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Please send dependency updates in separate commits within your PR, for easier reviewing.
 | 
					Please send dependency updates in separate commits within your PR, for easier reviewing.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Hooks
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Before committing any changes, please link/copy these hooks into your .git
 | 
					 | 
				
			||||||
directory. This will keep you from accidentally committing non-gofmt'd go code.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
```sh
 | 
					 | 
				
			||||||
cd kubernetes/.git/hooks/
 | 
					 | 
				
			||||||
ln -s ../../hooks/pre-commit .
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Unit tests
 | 
					## Unit tests
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```sh
 | 
					```sh
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user