README.md
and .gitignore
file.1. If using a Terminal/BlueJ,
% git clone <URL clone link>
2. If using VS Code, click on Source Control → Clone Repository and paste in URL.git switch main
, then git pull
to update the main
branch.git merge main
to get your branch up to date with the origin.Once you've made changes on your own development branch:
git add .
to stage the filesgit commit -m "description goes here"
to make a local commitgit push
to update your branch on GitHub.When you're ready to try to add your development into the main branch:
git switch main
to get onto the main branchgit pull
to update your main branch with any recent changes that your partner might have madegit merge <branchname>
to try to bring in your work from the development branchgit push
to update the GitHub server.main
branch: git switch <branchname>
and then git merge main