Open githubteacher opened 3 years ago
git branch -a
git status
git checkout <branch-name>
or git switch <branch-name>
to switch to a different (already-existing) branch
git checkout -b <branch-name>
to create a new branch Assume you have already cloned this repository on your local machine, you clone with git clone
and you have a working feature branch on GitHub and on your local machine.
If you need to create a new branch, you can do so with the "Branch: master" button in the Code
tab OR create locally with git checkout -b BRANCHNAME
Assuming you're also working in a team and not just by yourself in a repo
main
branch because someone might have make updates while you're away/ sleeping: Make sure you're on the main
branch, do git pull
on master branch to get your local master branch updated git checkout FEATURE-BRANCH-NAME
and then do a reverse merge git merge main
git add
, git commit -m
git push
git checkout main
git pull --prune
git branch -d FEATURE-BRANCH-NAME
Agenda
Day 1
Day 1 Meeting recording Access Passcode: hi6%=BJS
Day 2
Day 2 Meeting recording Access Password: ?h23MpF*
Post any questions you may have here during the training.