Git Push and Pull Request | Bondar Academy
Course: Git and GitHub Fundamentals
Module: Working with Git and GitHub
Instructor: Artem Bondar
Lesson Summary
In this lesson, we will learn how to authorize Visual Studio Code with your GitHub account, push code to GitHub, and create a pull request. Authorization Steps To authorize Visual Studio Code: Open Visual Studio Code and click on the accounts icon. Select Backup and Sync Settings . Click Sign In and choose GitHub . Enter your GitHub username and password in the browser and authorize Visual Studio Code. Pushing Code to GitHub Once authorized, you can push your code branch: Use the command git push . If prompted with an error about the upstream branch, set it using: git push --set-upstream origin first-code Authorize again if needed. Creating a Pull Request After pushing, navigate to your GitHub repository: Click on Compare and Create Pull Request . Provide a title and description for your pull request. Good descriptions help reviewers understand your changes. Reviewing Commits In the pull request, you can: View all commits and changes made. Provide feedback or ask questions on specific lines. Merging Changes Once reviewed, you can: Merge the pull request if there are no conflicts. Delete the branch if it is no longer needed. Updating Local Repository To sync your local master branch with remote: Switch to the master branch using git checkout master . Run git pull to fetch the latest changes. This concludes the process of pushing a branch to GitHub, creating a pull request, and merging changes into the master branch.