Skip to content

Instantly share code, notes, and snippets.

@radinreth
Last active November 22, 2016 17:31
Show Gist options
  • Save radinreth/2c240cb280fd978beab2 to your computer and use it in GitHub Desktop.
Save radinreth/2c240cb280fd978beab2 to your computer and use it in GitHub Desktop.
git checkout master
git fetch
git reset --hard origin/master
git checkout -b new-structure-data
git merge --squash structured-data-for-search-results
(resolve conflict & add .)
git rebase -i HEAD~2
git push -f origin new-structure-data
-- credit : bong Borey Lim
branch new-customer
branch master
1. merge master into new-customer
2. resolve conflict
3. git ci
4. git co master
5. git co -b aa
6. git merge --squash new-customer
7. git ci
8. type 'v' -> down arrow(for selection in vim)
9. type 'd' to delete selected content
10. type the one commit
11. remove old branch "new-customer"
12. git co -b new-customer
13. git push -u origin new-customer -f
-- bong mony
@radinreth
Copy link
Author

git config --global core.editor /usr/bin/vim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment