In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:
- You can separate the code into different repositories.
``` | |
alias dev="git checkout dev" | |
alias master="git checkout master" | |
alias add="git add ." | |
alias pull="git pull" | |
alias push="git push" | |
alias fe="git fetch" | |
alias s="git status" | |
git config --global alias.superlog "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all" | |
git config --global alias.c checkout |
// based on Алексей Сердюков's answer at Stackoverflow (https://stackoverflow.com/a/50837219/1143392) | |
import { | |
Directive, | |
Input, | |
OnDestroy, | |
OnInit | |
} from '@angular/core'; | |
import { MediaObserver } from '@angular/flex-layout'; | |
import { MatGridList } from '@angular/material'; |
#! /bin/bash | |
sudo apt-get install gnutls-bin | |
gnutls-cli -p 443 github.com | |
# If status certificate is not trusted >>> Status: The certificate is trusted. | |
sudo dpkg-reconfigure ca-certificates |
Press minus + shift + s
and return
to chop/fold long lines!
Long ago, the first time I read "The Pragmatic Programmer", I read some advice that really stuck with me.
"Don't Use Manual Procedures".
This in the chapter on Ubiquitous Automation. To summarize, they want you to automate all the things.
The trouble was that I hadn't much of an idea how to actually go
Create an empty git repo or reinitialize an existing one
$ git init
alias dev="git checkout dev" | |
alias master="git checkout master" | |
alias pull="git pull" | |
alias push="git push" | |
alias fe="git fetch" | |
git config --global alias.superlog "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(rese$ | |