This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| scripting:netdevops [2021/01/16 16:28] – jotasandoku | scripting:netdevops [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Nick Russo tuto:\\ | + | Search for '' |
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | Nick Russo tuto: | ||
| * LEAN | * LEAN | ||
| * WIP: Work In Process. In relation to ' | * WIP: Work In Process. In relation to ' | ||
| Line 10: | Line 18: | ||
| - | 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 && git merge origin/ | ||
| {{: | {{: | ||
| Line 16: | Line 24: | ||
| git fetch | git fetch | ||
| - | git diff ...origin | + | 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/ | Concept of master (my local one) origin/ | ||
| + | |||
| + | |||
| \\ | \\ | ||
| Line 33: | Line 48: | ||
| \\ | \\ | ||
| 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/ | + | git merge origin/ |
| - | git branch -d test | + | git branch -d test # delete (local) brach. No needed, just merged in! |
| | | ||