1. Pushing a branch to a new branch in remote. ```bash git push --set-upstream ``` 2. Remove uncommited changes. ```bash git restore . ```