Git
Add SSH key to the ssh-agent:
$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsaUpdate to latest version:
$ sudo add-apt-repository ppa:git-core/ppa -y
$ sudo apt update
$ sudo apt install git -y
$ git versionShow global origin config:
$ git config --list --show-originPull Requests
Syncing a forked repository:
# 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 masterWorking with a repository during a pull request:
Signing Git Commits
Cache passphrase in gpg agent (dirty):
Submodules
Edit submodule branch:
Last updated