git - I've renamed directory, commited it and i cant do a push -


sorry, question can bit noob dont have experience git. i've renamed directory "build" "build1", comited changes , cant push, got message:

counting objects: 11, done. delta compression using 4 threads. compressing objects: 100% (6/6), done. writing objects: 100% (6/6), 514 bytes | 0 bytes/s, done. total 6 (delta 4), reused 0 (delta 0) remote: /git/rololo remote:    8432750..b53923c  master     -> origin/master remote: error: local changes following files overwritten merge: remote:         build/build.html remote:         build/build.unity3d remote: please, commit changes or stash them before can merge. remote: aborting remote: updating 1d2fa90..b53923c 

what should perform push?

you can several things @ point.

1. stash changes -> update branch -> pop stashed changes

stash changes by:

git stash save <message> 

then pull

git pull origin master 

and pop stashed changes

git stash pop <stash> 

or

2. commit changes new branch -> update master -> merge new branch master

checkout new branch:

git checkout -b <new_branch> 

commit changes new branch:

git commit -m <commit message> 

checkout master , pull changes in:

git checkout master git pull origin master 

merge new branch has directory deleted:

git merge <new_branch> 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -