# git clone "project_url" # git pull # git status # git add "conflict_file_name" # git commit -m "Merge master" # git status # git reset --hard # git checkout master # git checkout -b "task_name" # git fetch # git checkout "task_name" # git fetch # git merge origin/master # git add file_list # git commit -m "Commit message" # git push # git checkout master # git pull # git merge "branch name" --squash . All changes from our branch will appear as local, but already in the main branch. Look what we navyali. See the changes - point 3. Commit - point 8, send to the server - point 9. You can not make a squash commit to the main branch, but start a new one, make a squash commit into it and make a merge into the main one (see the next item). # git checkout master # git pull # git merge "branch name" Source: https://habr.com/ru/post/337196/
All Articles