- Clone the repository to your local machine using the command:
git clone https://github.com/volodymyr-Vedula/new-project.git
- Navigate to the local repository on your machine using the command:
cd new-project
- Make sure you are on the 'development' branch by using the command:
git branch
If the output shows the 'development' branch with an asterisk (*), you are currently on the 'development' branch. If not, switch to it using the command:
git checkout development
-
Make changes to the code or files in the repository as needed.
-
Once you have made changes, stage them for committing using the command:
git add .
- Commit the changes with a meaningful commit message using the command:
git commit -m "Meaningful commit message"
- Push the changes to the 'development' branch using the command:
git push origin development
- If you encounter merge conflicts, resolve them before pushing your changes to the 'development' branch.
- If you want to fetch the latest changes from the remote repository, use the command:
git fetch
- If you want to merge the latest changes from the 'main' branch into your 'development' branch, use the command:
git merge origin/main
- If you are ready to merge your changes from the 'development' branch into the 'main' branch, first ensure that the 'development' branch is up to date with the latest changes from the 'main' branch. You can do this by following steps 9 and 10 above.
- Once the 'development' branch is up to date, switch to the 'main' branch using the command:
git checkout main
- Merge the changes from the 'development' branch into the 'main' branch using the command:
git merge development
- Push the changes to the 'main' branch using the command:
git push origin main