how to update git l...
 
Notifications
Clear all

how to update git local master from remote to work on new ticket without refreshing dev sandbox

2 Posts
1 Users
0 Likes
185 Views
Posts: 205
 CWL
Admin
Issue starter
(@cwl)
Member
Joined: 11 years ago

Instead of refreshing your developer sandbox every time you work on a new ticket, how can you use a dev repo to update your sandbox so you have the latest code from everyone else too?

Issue Tags
1 Reply
Posts: 205
 CWL
Admin
Issue starter
(@cwl)
Member
Joined: 11 years ago

When you want to work on a new jira ticket, change from branch to local master. Then do a:

git fetch

git reset --hard origin/master

Remember this will replace all your local changes from remote master keeping you up to date with remote master. Make sure you don't loose any needed local changes so be sure to add/commit/stash any work-in-progress first or make sure you have pushed your local changes to remote already. Then do a:

sf project deploy start

to deploy the latest files to your default dev sandbox.

Reply
Share: