# My Git Cheat Sheet

How to merge upstream changes to my branch

```bash
git remote add upstream git@gitlab.com:CentOS/automotive/demos/ffi-demo.git

git fetch upstream
git checkout a_branch
git rebase upstream/a_branch
```

Reference

[https://www.atlassian.com/git/tutorials/git-forks-and-upstreams](https://www.atlassian.com/git/tutorials/git-forks-and-upstreams)
