After you clone the repository the default remote is origin
and it refers to your fork on Github. You must keep track of the changes made to the original repository by setting up another remote named upstream
.
- Open terminal in your repository and type
git remote add origin https://github.com/YOUR_USERNAME/abnd-track-pomodoro-timer-app.git
- Type
git remote add upstream https://github.com/google-udacity-india-scholars/abnd-track-pomodoro-timer-app.git
to add upstream. - Type
git remote -v
and you should see
origin https://github.com/YOUR_USERNAME/abnd-track-pomodoro-timer-app.git (fetch)
origin https://github.com/YOUR_USERNAME/abnd-track-pomodoro-timer-app.git (push)
upstream https://github.com/google-udacity-india-scholars/abnd-track-pomodoro-timer-app.git (fetch)
upstream https://github.com/google-udacity-india-scholars/abnd-track-pomodoro-timer-app.git (push)
To now update your local copy type
git fetch upstream
git merge upstream/master
git push
- Checkout to the master branch
git checkout master
- Sync
git pull
- Start a new branch with a suitable name
git checkout -b branch_name
- Develop a new feature or solve an existing issue
- Add the changed files
git add file_name
- Commit with a suitable message
git commit -m " Changes made "
- Push
git push origin branch_name
- Go to the Github Repository and create a pull request according to the PULL_REQUEST_TEMPLATE.