jojacafe
10/2/2017 - 7:12 AM

Git Cheat Sheet

List all existing branches
	git branch -av

Switch HEAD branch
	git checkout <branch>
	
Create a new branch based on your current HEAD
	git branch <new-branch>
	
You can also revert uncommitted changes only to particular file or directory:
  git checkout [some_dir|file.txt]
  
Cambios que se subirán
  git add .
  
Commit
  git commit -m "Commit message"
  
Subir los cambios
  git push origin PLA-1234
  
Merge entre ramas
  git merge <branch>
  
Merge branch text
  :wq