|
|
### Git instructions
|
|
|
## Git instructions
|
|
|
|
|
|
This page is primarily aimed at Git novices. If that's you, keep reading. Else feel free to correct the info.
|
|
|
|
... | ... | @@ -38,11 +38,16 @@ if you have uncommitted code, then you have several options but let's stick to j |
|
|
|
|
|
Now you are free to change branch to master (and pull) or to keep editing code.
|
|
|
|
|
|
### Tips
|
|
|
Howto install blender addons from github with one command. Usage `LNaddon git@github.com:nortikin/sverchok.git`
|
|
|
## Tips
|
|
|
|
|
|
### Howto install blender addons from github with one command, use alias (~/.bashrc file)
|
|
|
|
|
|
for ~/src directory blender 2.9:
|
|
|
```
|
|
|
alias LNaddon='{ read -r url&&cd ~/src&&git clone $url&&bn=$(basename $url .git)&&cd $bn&&d=$(pwd)&&us=$(users)&&ln -s $d /home/$us/.config/blender/2.93/scripts/addons/&&echo "2.93 linked" ;} <<< '
|
|
|
```
|
|
|
Usage `LNaddon git@github.com:nortikin/sverchok.git`
|
|
|
|
|
|
### Howto discard changes
|
|
|
If you do not want to commit changes and not need them, than discard:
|
|
|
`git checkout -- .` |