Docsity

Git Branching and Merging: A Practical Guide, Study notes of Engineering

Partial preview of the text

Download Git Branching and Merging: A Practical Guide and more Study notes Engineering in PDF only on Docsity!

GIT NOTES

1.Push git merge origin/master --allow-unrelated-histories Resolve conflict, then git add -A. git commit -m "Commit message" git push origin master or git push -f origin master OR 2.Pull git pull -f origin master //The -f flag stands for force 3.Switch Branch git checkout -t origin/develop git pull origin develop 4.Create New Branch git checkout -b <new-branch>