Bootstrap : Auto-switch to main.
This commit is contained in:
parent
527de61cf6
commit
539f64a4fc
10
.README.md
10
.README.md
|
@ -12,10 +12,6 @@ For references, go to the [doc directory](src/branch/main/.doc).
|
|||
curl -s https://git.voronind.com/voronind/linux/raw/branch/master/.bootstrap.sh | bash && source .bashrc
|
||||
```
|
||||
|
||||
# Load Gnome settings.
|
||||
|
||||
To load Gnome settings run `dconf_load`.
|
||||
|
||||
# Conventions.
|
||||
|
||||
## File namings.
|
||||
|
@ -23,9 +19,3 @@ To load Gnome settings run `dconf_load`.
|
|||
Directory names are `snake_case` so you don't have to release the Shift key 10 times per second when tabing deep for directory.
|
||||
|
||||
File names are `PascalCase` to differ from directories, also it works nice with things like my archives where underscore and dash separate extra file data.
|
||||
|
||||
## Bash scripting.
|
||||
|
||||
### Variable names.
|
||||
|
||||
Use `SNAKE_CASE_UPPERCASE` for global vars *(careful!)* and `snake_case` for function local vars. For private vars and functions append upperscode like this: `_foo`.
|
||||
|
|
|
@ -13,4 +13,6 @@ git fetch &> /dev/null
|
|||
git reset origin/main &> /dev/null
|
||||
# git checkout -t origin/main
|
||||
git reset --hard HEAD &> /dev/null
|
||||
git checkout main &> /dev/null
|
||||
git branch --set-upstream-to=origin/main main &> /dev/null
|
||||
git branch -D master &> /dev/null
|
||||
|
|
Reference in a new issue