Uncategorized

Git pull when local changed

think that the best way to do this is.

stash your local changes

git stash

update the branch to the latest code

git pull

Merge your local changes into the latest code

git stash apply

Add, commit and push your changes

git add
git commit
git push 
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s