Skip to content

Instantly share code, notes, and snippets.

@pedrorvidal
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save pedrorvidal/06a790fdf21f099a43aa to your computer and use it in GitHub Desktop.

Select an option

Save pedrorvidal/06a790fdf21f099a43aa to your computer and use it in GitHub Desktop.
#GIT#
git checkout -b branch-name master
git status
git add <some-file>
git commit
git push -u origin branch-name
git checkout master
git pull
git diff
git merge --no-ff branch-name
git push origin master
#Comandos úteis#
git branch -d branch-name ==>Delete local branch
git push origin --delete branch-name ==>Delete remote branch
git rm $(git ls-files --deleted) ==>Files deleted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment