rodesousa
9/11/2015 - 11:23 AM

commande git

commande git

mettre ds le même commit un add tardif

git commit --amend

###TAG

add et push

  • git tag v1.4 ou git tag -a v1.4 -m 'my version 1.4'
  • git push origin v1.5 ou git push origin --tags

remove

  • git tag -d 12345 && git push origin :refs/tags/12345

clean

git clean -n -d

rebase

accept repo changes

git checkout --theirs foo/bar.java

submodule

git submodule add blah@blah.com:repos/blah.git lib/blah