This is the new title
-
clone
: "Downloading" a repository from cloud to our local computer- You only need to do this once just like the
init
command
- You only need to do this once just like the
-
branch <name>
: Create a branch calledcheckout <name>
orswitch <name>
: To moveHEAD
(i.e. switch) to that branchpush <branch>
pull <branch>
: Need to be mindful of which branch we need to push/pullcheckout -b <name>
: This will create and checkout the branch at the same time
-
Pull Request or PR: Also called merge request is the way to merge branches in the Web UI (e.g. GitHub, BitBucket)
- This is also where you choose which branch you are going to merge into (default is
master
) - In here there is a conversation and "files change" tab where you perform code review
- When you're ready, click the green "merge pull request" button
- Don't forget to delete your branch afterward
- This is also where you choose which branch you are going to merge into (default is
-
Update our local PC
- Make sure you are on the
master
branch - Updte your system with
git pull origin master
git fetch --prune --all
: This will clean up all your references on all your remotesbranch -d <branch_name>
: This will delete a branch
- Make sure you are on the
-
Merging branches locally
merge <branch>
: Merges the<branch>
to the current branch
-
Title removal in the master branch