Git
Git and GitHub Commands for Collaborators
Initial Setup and Branch Management
Forking the Repository
No direct command; done via the GitHub interface.
Opening with Gitpod
No direct command; performed in the Gitpod interface.
Cloning a Repository
Creating a New Branch
Staging Changes for Commit
orCommitting Changes
Pushing Changes to a Remote Repository
Opening a Pull Request
No direct command; done via the GitHub interface.
Syncing and Updating Branches
Syncing the Fork with the Upstream Repository
Configuring a Remote for the Upstream Repository:
Fetching from the Upstream Repository: Merging Changes into Your Local Main Branch: Pushing Changes to Your Local Fork on GitHub:Updating Your Local Main Branch
Updating Your Personal Branch in the Fork
Additional Useful Git Commands
Switching Between Branches
Merging a Branch into Main (or Master)
Deleting a Branch
Locally:
Remotely:Viewing Branches and Their Status
Viewing Commit History
Stashing Changes Temporarily
Resolving Merge Conflicts
Manual resolution in the affected files