$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsa
$ sudo add-apt-repository ppa:git-core/ppa -y
$ sudo apt update
$ sudo apt install git -y
$ git version
$ git config --list --show-origin
# Add remote upstream
$ git remote add upstream https://github.com/original/repository.git
$ git fetch upstream
$ git rebase upstream/master (or git merge upstream/master)
# Update fork from original repo
$ git pull upstream master
# Push the updates to fork
$ git push -f origin master
$ git remote add upstream https://github.com/original/repository.git
$ git fetch upstream
$ git rebase upstream/master
$ git checkout upstream/master
$ git checkout -b new-feature
...Make changes...
$ gc -am "Add a new feature"
$ git push -u origin new-feature
$ cd /tmp && touch aaa && gpg --sign aaa && rm aaa aaa.gpg && cd -
$ git config --file=.gitmodules -l | grep branch
$ git config --file=.gitmodules submodule.Submod.branch development
$ git submodule sync
$ git submodule update --init --recursive --remote