Skip to content

Instantly share code, notes, and snippets.

@rodesousa
Last active September 30, 2016 08:19
Show Gist options
  • Select an option

  • Save rodesousa/d33ae7a5408b0b323b82 to your computer and use it in GitHub Desktop.

Select an option

Save rodesousa/d33ae7a5408b0b323b82 to your computer and use it in GitHub Desktop.
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

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