Advertisement
kkarpieszuk

git wpml cheat sheet

Jan 13th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. 1. First, save and hide temporarely all your changes:
  2. $ git stash
  3.  
  4. 2. then, update your repository:
  5. $ git pull
  6.  
  7. 3. after that, create a new local branch and change to it (all in one command)
  8. $ git checkout -b new_branch_name
  9.  
  10. 4. recover all your changes:
  11. $ git stash pop
  12.  
  13. 5. check if is all right:
  14. $ git diff
  15.  
  16. 6. Add the new files and commit it (to add files instead of -a you can use git add modified/added/filename)
  17. $ git commit -a -m "my cool commit"
  18.  
  19. 7. push your local branch to the remote server
  20. $ git push origin new_branch_name
  21.  
  22. 8. Go to git.icanlocalize.com and create a merge request
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement