-
Notifications
You must be signed in to change notification settings - Fork 0
GitSync
Damian edited this page Apr 3, 2020
·
2 revisions
Merges your current branch with another branch.
As a general rule of thumb, always sync up your branch with develop
prior to the Pull Request. So we converted 4 commands into one so you no longer have to keep typing nonsense.
[feature/MyBranch]> GitSync
Sync complete!
[feature-MyBranch]> git checkout develop
[develop]> git pull
[develop]> git checkout feature-MyBranch
[feature-MyBranch]> git merge develop
Use wants to sync their current branch with...
[feature/MyBranch]> GitSync
[feature/MyBranch]> GitSync -p
Merge strategy: feature/MyBranch
<< feature/TeammateBranch
[feature/MyBranch]> GitSync -syncBranch "feature/TeammateBranch"
Let's say your friend's branch is on GitLab but not GitHub and you need it merged into yours.
[feature/MyBranch]> GitSync -remote "gitlab" - syncBranch "feature/FriendsBranch"
Boom! Synced ;)
Git Commands
DevOps Helpers