Team Rules and Management - vinishamanek/vinis-vehicles GitHub Wiki
Repository Management with Git
Here are some common Git commands to manage the repository.
Branch Management
Creating a new branch:
git branch [branch-name]
Switching to a branch:
git checkout [branch-name]
Creating a new branch and switching to it:
git checkout -b [branch-name]
Code Changes
Adding changes to the staging area:
git add .
Committing changes:
git commit -m "[commit message]"
Pushing changes to a remote repository:
git push origin [branch-name]
Merging Changes
Before merging, ensure you're on the branch you want to merge into:
git checkout [target-branch]
To merge changes from another branch into the current branch:
git merge [source-branch]
Remember to regularly pull changes from the remote repository to keep your local copy up to date:
git pull origin [branch-name]