This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| scripting:netdevops [2021/01/14 20:18] – jotasandoku | scripting:netdevops [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | LEAN:\\ | + | Search for '' |
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | Nick Russo tuto: | ||
| + | * LEAN | ||
| * WIP: Work In Process. In relation to ' | * WIP: Work In Process. In relation to ' | ||
| * JIT: Fast and frequent delivery, | * JIT: Fast and frequent delivery, | ||
| Line 8: | Line 17: | ||
| yamllint | yamllint | ||
| - | git pull vs git fetch: pull puts it in your working directory. Pull is just a Macro: | + | |
| - | {{: | + | Do not pull, just fetch and merge (and check the diff).[[https://longair.net/ |
| + | git fetch && git merge origin/ | ||
| + | {{: | ||
| + | * git fetch to know the changes done in the remote repo/branch since your last pull. This is useful to allow for checking before doing an actual pull | ||
| + | |||
| + | git fetch | ||
| + | git diff ...origin | ||
| + | git merge origin/ | ||
| + | |||
| + | Also we normally use push but it really means: | ||
| + | git push origin mylocalbranch | ||
| + | |||
| + | \\ | ||
| + | Concept of master (my local one) origin/ | ||
| + | |||
| \\ | \\ | ||
| Line 15: | Line 39: | ||
| git add . ! rechech this in my bastion notes | git add . ! rechech this in my bastion notes | ||
| - | \\ | + | |
| - | -- vim | + | ---- |
| + | |||
| + | |||
| + | vim | ||
| :e :bn in vim seems to go tabs before and after!! | :e :bn in vim seems to go tabs before and after!! | ||
| \\ | \\ | ||
| git pull: git fetch + git merge | git pull: git fetch + git merge | ||
| - | git fetch -p | + | git fetch -p # -p is to prune the remote branch |
| - | git branch -all | + | git branch -a # shows both local and remote branches |
| \\ | \\ | ||
| - | -- merge | + | |
| + | |||
| + | ---- | ||
| + | |||
| + | MERGE IN FOUR STEPS | ||
| + | |||
| + | git fetch -p | ||
| git checkout master | git checkout master | ||
| - | git merge origin master | + | git merge origin/master |
| - | git branch -d test | + | git branch -d test # delete (local) brach. No needed, just merged in! |
| | | ||
| + | |||
| ---- | ---- | ||
| + | |||
| ansible | ansible | ||
| Line 37: | Line 72: | ||
| - | ---- | + | |
| ---- | ---- | ||
| - | -- vim | + | |
| + | vim | ||
| :e :bn in vim seems to go tabs before and after!! | :e :bn in vim seems to go tabs before and after!! | ||
| - | --- | + | |
| + | ---- | ||
| | | ||
| git pull: git fetch + git merge | git pull: git fetch + git merge | ||
| Line 52: | Line 91: | ||
| git branch -all | git branch -all | ||
| - | -- merge | + | |
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | merge | ||
| git checkout master | git checkout master | ||
| git merge origin master | git merge origin master | ||
| git branch -d test | git branch -d test | ||
| - | --- | + | |
| + | ---- | ||
| git checkout -- . # quick rollback? | git checkout -- . # quick rollback? | ||